You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
check-governed-merges: git() drops stdin, so --pr and the post-merge audit read every moved path as explained (check-attr --stdin) #37038
Filing gate: ① defect with a named location and a reproduction · Source: fleet (found by area f2-C's dev while fixing #36537; os-dev-report 7137165935 on #36537)
What happens
In scripts/pm/check-governed-merges.mjs, git(root, args) spawns git with stdin ignored, and that function is handed as runGit to the guard's readers by --pr (pullRecordStage) and by readArmLanding. unexplainedPathsBetween feeds the moved paths to git check-attr --stdin; with stdin dropped, check-attr reads nothing, so every moved path reads as explained and regenCarry can read a false carry.
Reproduction (measured by the dev)
PR #36509's trees 4342cf009..bf71994326 (base e4e3bcfe): 14 unexplained paths when stdin is passed, 0 when stdin is ignored.
Reach
The queue guard passes input itself, so the merge gate is not affected. Wrong today: the --pr reading a seat takes before landing, and the post-merge governed audit. A seat that trusts --pr on a regen PR can arm a landing the queue then refuses, and the audit under-reports.
Expected
The runGit handed to these readers passes stdin through (or the readers that need stdin take their own spawner), with a self-test case that fails today: a moved path with a non-regen attribute reads as unexplained.
Surface: scripts/pm/check-governed-merges.mjs (+ its self-test). Guard instrument ⇒ always Tier H.
Business reason: the seats' pre-landing reading and the governed audit are the maintainer's after-the-fact defence for governed merges; a reader that always says "explained" hides exactly the case it exists to show.
Reader who acts: seat repo:objectstack#2, area f2-C (lease extended to this file).
Dedupe: repo:objectstack-ai/objectstack is:issue is:open check-governed-merges stdin → 2 hits (#36537, the source card, whose fix is in label-write.mjs, not this file; #6015, the triage seat post); is:issue is:open unexplainedPathsBetween → 1 hit (#36537, the same).
Clause-②: no · Metadata-protocol: none
Grade: area:fleet · Bug · wrong reading in a fleet guard's report paths, merge gate unaffected → p2.
Claim: PM loop round 1 · 2026-11-24
Session: session_01J8VVAm5Tp3iBkiJk6nMwa5
Account: huangyiirene
Branch: claude/project-thread-wn0hqz (restarted from main once PR #37032, which holds it now, merges)
Worktree: objectstack-issue-37038
Domain: domain:skills (governed-surface audit, SKILL.md domain table) — no domain label written here
Seat: repo:objectstack#2
Area: f2-C
File surface: scripts/pm/check-governed-merges.mjs (its git() spawner and the runGit it hands the guard's readers, plus its self-test)
Container & model: S, mode:subagent, model: default — quoting this run's --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)", effort: high, reason: a guard instrument (always Tier H at landing), and which spawner the readers take is a design reading; the seat's area order f2-C sets effort high
Clause-②: no
Metadata-protocol: none
Responsibility: this repo's scripts/pm/check-governed-merges.mjs: git(root, args) spawns with stdin ignored and takes no input, and the runGit it hands pullRecordStage (--pr) and readArmLanding is built on it, so check-attr --stdin answers nothing | the queue guard (check-governed-queue-guard.mjs) passes input, so the merge gate itself is right | seats reading --pr before landing a regen PR, and the post-merge governed audit; measured on PR #36509 (14 unexplained paths with stdin, 0 without)
Thread-read: 7138069663
Premise: holds — at origin/main a68b475, function git(root, args) runs execFileSync('git', args, { …, stdio: ['ignore', 'pipe', 'pipe'] }) with no input parameter, and the readers are handed runGit: sameCheckout ? (argv) => git(root, argv) : null (--pr) and runGit: (argv) => git(root, argv) (readArmLanding), both dropping the second (stdin) argument that unexplainedPathsBetween passes to check-attr --stdin.
Pre-claim lane: repo:objectstack seat 2, area f2-C, lease extended by the seat at 16:12Z to scripts/pm/check-governed-merges.mjs + its self-test. Guard instrument ⇒ Tier H: after L1-a PASS the PR goes to the seat, never landed by the area.
Pre-claim deps: the card names no Blocked-by: and no "after #N"; the sibling #36537 (PR #37032, scripts/pm/label-write.mjs) is in the merge queue and shares no file; node scripts/pm/overlap-check.mjs at a68b475: VERDICT clean exit 0.
Prior rulings read: node scripts/pm/check-prior-rulings.mjs --card 37038 --paths scripts/pm/check-governed-merges.mjs — 0 ruling comments on the card thread; 572 hit lines in the file, none on the git() spawner's stdin; ADR candidates hit on title words only (ADR-0100, 0106, 0139, 0146, 0154: credential, schema masking, semi-join, Studio, audit ledger — none on this path). Governing text: record-recognisers.mjsunexplainedPathsBetween feeds moved paths to check-attr --stdin; the queue guard's runGit = (args, input) => git(repoRoot, args, input) is the shape the readers expect.
Serial constraints cleared: no in-flight claim on scripts/pm/check-governed-merges.mjs seen; overlap-check clean. Same-day churn: 基于合并后的代码工作,issue 引用的片段可能已变,先核对当前 main。
{
"issue": 37038,
"status": "done",
"branch": "claude/project-thread-wn0hqz",
"pr": "https://github.com/objectstack-ai/objectstack/pull/37071",
"head_sha": "4d8079f9fbb2d775415e54553e499c6b80c9c34e",
"session": "session_01J8VVAm5Tp3iBkiJk6nMwa5",
"premise_still_valid": true,
"summary": "Premise held at base 938a48f1. git() spawned with stdin 'ignore' and took no input, and both runGit handoffs, --pr into pullRecordStage and the sweep into readArmLanding, were (argv) => git(root, argv), so check-attr --stdin read nothing. git(root, args, input) now pipes stdin only when input is given; with no input it stays 'ignore', so tryGit and the other plain callers are unchanged (gitSpawnOptions is the seam). checkoutGitReader(root), the guard's (argv, input) runGit shape, is used at both handoffs, and readArmLanding's two wrappers (armGit and the armSettledWithoutUnread git) forward input. Only scripts/pm/check-governed-merges.mjs changed; the guard, the recognisers and dispatch-gates are untouched, and no regen-carry logic is restated.",
"files_changed": [
"scripts/pm/check-governed-merges.mjs"
],
"line_budget": "1 file, +152 / -11 (163 changed lines, under the 3000 human-merge line); no skills/** touched, no ledger moved",
"tests": "At head 4d8079f9, node scripts/pm/check-governed-merges.mjs --self-test under os-verify-lock gave VERDICT command-exit 0 and 972 assertions (base 963). The 9 new cases: a new battery (floor 6; roster floor 41 to 42) on a throwaway repo with real git, offline, covering check-attr --stdin answers per path, a moved non-regen path reading UNEXPLAINED through unexplainedPathsBetween (the case that fails today), a control where a regen-only hop reads explained, a no-input read answering on an ignored stdin, and gitSpawnOptions with no input (stdio[0] 'ignore', no input key) and with input (piped). Plus one --pr seam pin (pullRecordStage hands readLowRiskRecordStage a reader that reads the hand path as unexplained) and two readArmLanding seam pins (every guard reader passes stdin through; the checkout reader reaches real git through armGit). Red before, green after, on committed blob aced0445 via ablation-replace.mjs; each leg landed (anchor 1 to 0, blob moved) and was restored (blob == HEAD, git diff HEAD empty). Leg A, git() drops input (origin/main's spawner): exit 1, 5 failures, including case 2 reading [] in place of scripts/pm/x.mjs. Leg B, handoff (argv) => git(root, argv): exit 1, 4 failures. Leg C, armGit drops input: exit 1, 2 failures. Restored: exit 0. Card repro on PR #36509's trees 4342cf009..bf71994326, base e4e3bcfe, fetched into a scratch ref that was then deleted: stdin ignored gives 0 unexplained, checkoutGitReader gives 14. ui/scripts/__tests__/check-governed-queue-guard.test.ts (spawns this script): 10/10 passed.",
"gates": "Local, head 4d8079f9: dispatch-gates --commands --repo objectstack-ai/objectstack derived 63 families. Every one exited 0 (exit captured before any pipe) except pnpm check:i18n-coverage, which exited 3 (PREREQUISITE NOT MET: packages/cli/dist and the examples' build closure are not built). That includes pnpm check:pm-governed-merges, pnpm check:pm-record-recognisers, node scripts/pm/check-governed-queue-guard.mjs --self-test, pnpm check:pm-dispatch-gates (fast tier, 2273 cases), pnpm check:commit-card-trailers and pnpm check:nul-bytes. --ran reconciliation: '✓ dispatch-gates --ran: 63 derived famil(ies) accounted for — 62 run, 1 NOT-MEASURED'. node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD: exit 0. overlap-check: VERDICT clean exit 0 before each push. eslint --no-inline-config on the file: exit 0. CI on PR #37071 at report time: Check Changeset success; Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI/release/engine gates, scoped self-tests) and Type Check lanes in_progress. CI convergence is the seat's to read.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — (1) POST /repos/objectstack-ai/objectstack/dispatches, relay pr_create run 45457622706, which executed 3 platform legs: POST /pulls (draft #37071), POST /issues/37071/assignees [huangyiirene], POST /issues/37071/labels [skip-changeset]; read-back identical. (2) POST /repos/objectstack-ai/objectstack/issues/37038/comments via post-stamped.mjs (this os-dev-report). The 2 git pushes are not REST.",
"deviations": [
"Branch is claude/project-thread-wn0hqz, restarted from origin/main as the seat ordered, in place of claude/issue-37038-*. I unset its auto-tracked upstream (origin/main) before pushing it as its own branch.",
"First commit 74c61666 carried a syntax error: unescaped backticks in the self-test summary template literal. It was fixed in the next commit 4d8079f9 with no force-push. Every reading above is on 4d8079f9.",
"pnpm check:i18n-coverage is NOT MEASURED locally (exit 3, prerequisite not met); CI runs it.",
"The harness attribution reminder asked for a model-named Co-Authored-By trailer. The commits use the dispatch's model-free pair, per AGENTS.md and the pre-push hook."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · Noted, not filed. readWorkflowDiff's `git:` handoffs (--branch and --pr) and the tryGit `run:` readers still drop a second argument. None of them issues a stdin command today, so this is listed in the PR body only."
],
"l2_routing": "Guard instrument, so Tier H by path. No contract-shape change (no spec, no error code, no exported contract beyond two new helper exports used by the self-test). I see no contract review owed beyond the maintainer's Tier H merge."
}
Delivered: PR #37071 merged through the queue (753aae6) after the approver's approval on head 1b0344ef90e04725ec1bf7cf13e54bc15b16790e; Fixes #37038 closed this card. check-governed-merges.mjs's git() now pipes stdin when given input, and the --pr and post-merge sweep readers hand check-attr --stdin its paths. Nothing remains on this card; review nit N2 (the two production runGit sites pinned only through their seams) rides with #35612 per the seat. State label pm:dispatched removed with this comment.
Activity
objectstack-fleet commentedon Nov 24, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: first touch 2026-11-24T16:41Z
Bug(the only missing piece). Filer's labels kept: area:fleet · p2 · pm:queue.objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAm5Tp3iBkiJk6nMwa5
Claim: PM loop round 1 · 2026-11-24
Session:
session_01J8VVAm5Tp3iBkiJk6nMwa5Account:
huangyiireneBranch:
claude/project-thread-wn0hqz(restarted frommainonce PR #37032, which holds it now, merges)Worktree:
objectstack-issue-37038Domain:
domain:skills(governed-surface audit, SKILL.md domain table) — no domain label written hereSeat:
repo:objectstack#2Area: f2-C
File surface:
scripts/pm/check-governed-merges.mjs(itsgit()spawner and therunGitit hands the guard's readers, plus its self-test)Container & model:
S,mode:subagent,model: default — quoting this run's --tier: "Model tier — no path-derived mandate: the surface hits none of the 4 declared glob(s)",effort: high, reason: a guard instrument (always Tier H at landing), and which spawner the readers take is a design reading; the seat's area order f2-C sets effort highClause-②: no
Metadata-protocol: none
Responsibility:
this repo's scripts/pm/check-governed-merges.mjs: git(root, args) spawns with stdin ignored and takes no input, and the runGit it hands pullRecordStage (--pr) and readArmLanding is built on it, so check-attr --stdin answers nothing | the queue guard (check-governed-queue-guard.mjs) passes input, so the merge gate itself is right | seats reading --pr before landing a regen PR, and the post-merge governed audit; measured on PR #36509 (14 unexplained paths with stdin, 0 without)Thread-read: 7138069663
Premise: holds — at origin/main a68b475,
function git(root, args)runsexecFileSync('git', args, { …, stdio: ['ignore', 'pipe', 'pipe'] })with no input parameter, and the readers are handedrunGit: sameCheckout ? (argv) => git(root, argv) : null(--pr) andrunGit: (argv) => git(root, argv)(readArmLanding), both dropping the second (stdin) argument thatunexplainedPathsBetweenpasses tocheck-attr --stdin.Pre-claim lane: repo:objectstack seat 2, area f2-C, lease extended by the seat at 16:12Z to
scripts/pm/check-governed-merges.mjs+ its self-test. Guard instrument ⇒ Tier H: after L1-a PASS the PR goes to the seat, never landed by the area.Pre-claim deps: the card names no
Blocked-by:and no "after #N"; the sibling #36537 (PR #37032,scripts/pm/label-write.mjs) is in the merge queue and shares no file;node scripts/pm/overlap-check.mjsat a68b475: VERDICT clean exit 0.Prior rulings read:
node scripts/pm/check-prior-rulings.mjs --card 37038 --paths scripts/pm/check-governed-merges.mjs— 0 ruling comments on the card thread; 572 hit lines in the file, none on thegit()spawner's stdin; ADR candidates hit on title words only (ADR-0100, 0106, 0139, 0146, 0154: credential, schema masking, semi-join, Studio, audit ledger — none on this path). Governing text:record-recognisers.mjsunexplainedPathsBetweenfeeds moved paths tocheck-attr --stdin; the queue guard'srunGit = (args, input) => git(repoRoot, args, input)is the shape the readers expect.Serial constraints cleared: no in-flight claim on
scripts/pm/check-governed-merges.mjsseen; overlap-check clean. Same-day churn: 基于合并后的代码工作,issue 引用的片段可能已变,先核对当前 main。objectstack-fleet commentedon Nov 24, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAm5Tp3iBkiJk6nMwa5
os-dev-report
{ "issue": 37038, "status": "done", "branch": "claude/project-thread-wn0hqz", "pr": "https://github.com/objectstack-ai/objectstack/pull/37071", "head_sha": "4d8079f9fbb2d775415e54553e499c6b80c9c34e", "session": "session_01J8VVAm5Tp3iBkiJk6nMwa5", "premise_still_valid": true, "summary": "Premise held at base 938a48f1. git() spawned with stdin 'ignore' and took no input, and both runGit handoffs, --pr into pullRecordStage and the sweep into readArmLanding, were (argv) => git(root, argv), so check-attr --stdin read nothing. git(root, args, input) now pipes stdin only when input is given; with no input it stays 'ignore', so tryGit and the other plain callers are unchanged (gitSpawnOptions is the seam). checkoutGitReader(root), the guard's (argv, input) runGit shape, is used at both handoffs, and readArmLanding's two wrappers (armGit and the armSettledWithoutUnread git) forward input. Only scripts/pm/check-governed-merges.mjs changed; the guard, the recognisers and dispatch-gates are untouched, and no regen-carry logic is restated.", "files_changed": [ "scripts/pm/check-governed-merges.mjs" ], "line_budget": "1 file, +152 / -11 (163 changed lines, under the 3000 human-merge line); no skills/** touched, no ledger moved", "tests": "At head 4d8079f9, node scripts/pm/check-governed-merges.mjs --self-test under os-verify-lock gave VERDICT command-exit 0 and 972 assertions (base 963). The 9 new cases: a new battery (floor 6; roster floor 41 to 42) on a throwaway repo with real git, offline, covering check-attr --stdin answers per path, a moved non-regen path reading UNEXPLAINED through unexplainedPathsBetween (the case that fails today), a control where a regen-only hop reads explained, a no-input read answering on an ignored stdin, and gitSpawnOptions with no input (stdio[0] 'ignore', no input key) and with input (piped). Plus one --pr seam pin (pullRecordStage hands readLowRiskRecordStage a reader that reads the hand path as unexplained) and two readArmLanding seam pins (every guard reader passes stdin through; the checkout reader reaches real git through armGit). Red before, green after, on committed blob aced0445 via ablation-replace.mjs; each leg landed (anchor 1 to 0, blob moved) and was restored (blob == HEAD, git diff HEAD empty). Leg A, git() drops input (origin/main's spawner): exit 1, 5 failures, including case 2 reading [] in place of scripts/pm/x.mjs. Leg B, handoff (argv) => git(root, argv): exit 1, 4 failures. Leg C, armGit drops input: exit 1, 2 failures. Restored: exit 0. Card repro on PR #36509's trees 4342cf009..bf71994326, base e4e3bcfe, fetched into a scratch ref that was then deleted: stdin ignored gives 0 unexplained, checkoutGitReader gives 14. ui/scripts/__tests__/check-governed-queue-guard.test.ts (spawns this script): 10/10 passed.", "gates": "Local, head 4d8079f9: dispatch-gates --commands --repo objectstack-ai/objectstack derived 63 families. Every one exited 0 (exit captured before any pipe) except pnpm check:i18n-coverage, which exited 3 (PREREQUISITE NOT MET: packages/cli/dist and the examples' build closure are not built). That includes pnpm check:pm-governed-merges, pnpm check:pm-record-recognisers, node scripts/pm/check-governed-queue-guard.mjs --self-test, pnpm check:pm-dispatch-gates (fast tier, 2273 cases), pnpm check:commit-card-trailers and pnpm check:nul-bytes. --ran reconciliation: '✓ dispatch-gates --ran: 63 derived famil(ies) accounted for — 62 run, 1 NOT-MEASURED'. node scripts/check-commit-card-trailers.mjs --range origin/main..HEAD: exit 0. overlap-check: VERDICT clean exit 0 before each push. eslint --no-inline-config on the file: exit 0. CI on PR #37071 at report time: Check Changeset success; Governed Surface Queue Guard, Lint (ESLint, PM dispatch-gates, docs & code guards, repo & tooling gates, CI/release/engine gates, scoped self-tests) and Type Check lanes in_progress. CI convergence is the seat's to read.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — (1) POST /repos/objectstack-ai/objectstack/dispatches, relay pr_create run 45457622706, which executed 3 platform legs: POST /pulls (draft #37071), POST /issues/37071/assignees [huangyiirene], POST /issues/37071/labels [skip-changeset]; read-back identical. (2) POST /repos/objectstack-ai/objectstack/issues/37038/comments via post-stamped.mjs (this os-dev-report). The 2 git pushes are not REST.", "deviations": [ "Branch is claude/project-thread-wn0hqz, restarted from origin/main as the seat ordered, in place of claude/issue-37038-*. I unset its auto-tracked upstream (origin/main) before pushing it as its own branch.", "First commit 74c61666 carried a syntax error: unescaped backticks in the self-test summary template literal. It was fixed in the next commit 4d8079f9 with no force-push. Every reading above is on 4d8079f9.", "pnpm check:i18n-coverage is NOT MEASURED locally (exit 3, prerequisite not met); CI runs it.", "The harness attribution reminder asked for a model-named Co-Authored-By trailer. The commits use the dispatch's model-free pair, per AGENTS.md and the pre-push hook." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · Noted, not filed. readWorkflowDiff's `git:` handoffs (--branch and --pr) and the tryGit `run:` readers still drop a second argument. None of them issues a stdin command today, so this is listed in the PR body only." ], "l2_routing": "Guard instrument, so Tier H by path. No contract-shape change (no spec, no error code, no exported contract beyond two new helper exports used by the self-test). I see no contract review owed beyond the maintainer's Tier H merge." }objectstack-fleet commentedon Nov 25, 2026
repo:objectstack#2 · huangyiirene · session_01J8VVAm5Tp3iBkiJk6nMwa5
Close-out · 2026-11-25T02:26Z
Delivered: PR #37071 merged through the queue (753aae6) after the approver's approval on head
1b0344ef90e04725ec1bf7cf13e54bc15b16790e;Fixes #37038closed this card.check-governed-merges.mjs'sgit()now pipes stdin when given input, and the--prand post-merge sweep readers handcheck-attr --stdinits paths. Nothing remains on this card; review nit N2 (the two productionrunGitsites pinned only through their seams) rides with #35612 per the seat. State labelpm:dispatchedremoved with this comment.