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
pm(dispatch-gates): changedPathsFromGit reads paths without -z, so a non-ASCII governed path is missed at dispatch #33847
domain:skillsDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
Filing gate: ① (a defect found by at-tier review of PR #33804, records 6893545108 and 6893808803, outside that PR's surface).
scripts/pm/dispatch-gates.mjschangedPathsFromGit (it feeds --tier and --commands) lists changed paths without -z, and nothing sets core.quotePath=false. Git prints a path with a non-ASCII or control character C-quoted ("skills/x/\346\226\207.md"), which matches no prefix, so a dispatch tier or a derived gate list can miss a governed or gated path. The landing gates now read such paths right (PR #33804), so this is a dispatch-time hole, not a landing hole.
Claim: PM loop round 1
Session: session_01ADHkmPd7uRqHauEehGPr19
Account: os-steve
Branch: claude/project-thread-xes6db
Thread session: session_01ADHkmPfzYmYaFdzt3TJ9w2
Worktree: objectstack-issue-33847
Domain: domain:skills
Seat: domain:skills#1
File surface: scripts/pm/dispatch-gates.mjs (changedPathsFromGit and any shared reader it uses), scripts/pm/dispatch-gates.self-test.mjs (stop on breach; explain in the report)
Container & model: S–M, mode:thread, model: opus (default tier; dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: n/a — PM tooling, not a defect in a product package
Thread-read: 6894759070
Premise: holds (origin/main 895783a: the three gitLines reads in changedPathsFromGit carry no -z)
Serial constraints cleared: none in flight on these files; #33848 (same files, different defect) waits for this PR to merge, not folded.
Order: standard order /mnt/project-files/skills-seat/standard-order.md + delta /mnt/project-files/skills-seat/33847-delta.md (project files). Ruling-ref: the maintainer's 「尽快把 p1 p2 卡处理完」 (project "objectstack skills spec ui", 2026-11-15T14:15Z). Claimed 2026-11-15T14:22Z.
{
"issue": 33847,
"status": "done",
"branch": "claude/project-thread-xes6db",
"pr": "https://github.com/objectstack-ai/objectstack/pull/33998",
"session": "session_01ADHkmPfzYmYaFdzt3TJ9w2",
"premise_still_valid": true,
"summary": "changedPathsFromGit's three path lists (committed, uncommitted, untracked) and changedLinesFromGit's untracked fallback now read through one reader, gitPathList, which splices -z in after the subcommand and splits on NUL, untrimmed; the old gitLines (no other caller) is gone. Premise measured on a real repo at 895783a1 before the fix: a committed and an untracked skills/x/ file named in Chinese derived tier null and the untracked one counted as 1 unreadable file; after, both raw, tier CONTRACT_REVIEW_TIER, 0 unreadable. core.quotePath=false was not used (a newline name still splits).",
"tests": "node scripts/pm/dispatch-gates.mjs --self-test (both tiers) on acb82a3e under os-verify-lock: 2520 cases pass, VERDICT command-exit 0 (2515 before + 5 new). New real-git scenario 'quoted-names' (fixture sets core.quotePath true): CONTROL plain read quotes all three names, tier null, 0 families; derived set lists committed+uncommitted Chinese names and an untracked newline name raw (1/1/1); tier CONTRACT_REVIEW_TIER, 3 hits; check:skill-* families named; untracked counted from disk (0 unreadable, +3). Ablation via scripts/ablation-replace.mjs, restored blob == HEAD 6343de57fbce and git diff HEAD empty after each leg: leg 2 (whole old gitLines body restored: no -z, newline split, trim) -> VERDICT command-exit 1, exactly the 4 new non-control rows red; leg 1 (only -z dropped) -> 12 red (the 4 plus 8 older real-git derivation rows, since the NUL split then returns one name). Before/after runs cited in the PR body.",
"gates": "Local subset on acb82a3e: dispatch-gates --commands --repo objectstack-ai/objectstack derived 30 commands; all 30 exit 0 (captured before any pipe; full list with exit codes in the PR body). --ran with ':: exit N' annotations: 30 derived, 30 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). check:pm-dispatch-gates (fast tier, 2205 cases) in the 30. Rule-5 suites: no *.test.ts imports the script (6 git-grep hits are comments only); the only external caller of changedPathsFromGit is check-dispatch-gates.mjs, run in the 30. No package touched: no build closure, no package test owed. CI check-runs: in_progress at report time, not awaited.",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "4 — mcp__github__issue_read (get, get_comments x2), mcp__github__pull_request_read (get); all reads, no MCP write",
"api_writes": "3 relay dispatches' worth — (1) git push of claude/project-thread-xes6db (not REST); (2) pr_create via with-fleet.sh --via dispatch: POST /repos/objectstack-ai/objectstack/dispatches -> relay POST pulls (#33998, draft), POST issues/33998/assignees (os-steve), POST issues/33998/labels (skip-changeset), read-back 8055 bytes sent == stored; (3) this os-dev-report comment via post-stamped.mjs (relay POST issues/33847/comments)",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · derivationProvenance prints one path per stderr line, so a newline-named path now prints raw across two stderr lines; display only (stdout, tier and gate list unaffected). Noted in the PR Acceptance notes, not filed."
],
"files_changed": [
"scripts/pm/dispatch-gates.mjs (+25/-6)",
"scripts/pm/dispatch-gates.self-test.mjs (+66/-0)"
],
"line_budget": "diff +91/-6 (GitHub additions/deletions), 2 files, under the 3000 human-merge line; no ratchet surface touched (scripts/pm only, not .claude/skills/pm-dispatch, not skills/)",
"deviations": [
"The first gate run started while ablation leg 1 had the mutated dispatch-gates.mjs on disk; I stopped my own runner (only its first two gates had finished, before the mutation) and re-ran all 30 after both legs restored. Every exit code reported is from that re-run on the clean acb82a3e tree.",
"Two ablation legs instead of one: leg 2 is the card-specified revert; leg 1 is reported for what it shows (the -z and the NUL split cannot be separated).",
"The harness checked the card branch out in the shared clone, so the worktree was made with git checkout --detach there and git worktree add ../objectstack-issue-33847 claude/project-thread-xes6db."
]
}
Served-tier: CONTRACT_REVIEW_TIER
Head-sha: acb82a3e2d384412d64b3479350cdfde4d391b7c
Local-runs: none
Scope: scripts/pm/dispatch-gates.mjs (gitPathList, changedPathsFromGit, the untracked fallback of changedLinesFromGit, the removed gitLines) + scripts/pm/dispatch-gates.self-test.mjs
① Derived judgments
Read from the tree at the head (net diff against main: 2 files, +91/-6), the card and its 3 comments, and the head's check-runs. Nothing was built, run or re-run.
The card's ask is met. All four path reads go through gitPathList, which builds [subcommand, '-z', ...rest], splits on NUL, does not trim, and drops empty entries.
-z placement is right for all three calls.
diff -z --name-only --no-renames MERGE_BASE HEAD
diff -z --name-only --no-renames HEAD
ls-files -z --others --exclude-standard
In each, -z follows the subcommand and precedes the revisions. No caller passes a -- pathspec, so no option lands after one.
Path shapes. Under -z git emits every name verbatim, so non-ASCII, newline, tab, quote, backslash and leading or trailing space all arrive as on disk. The old .trim() is gone, so edge spaces survive.
Trailing NUL. The empty last entry is removed by filter(Boolean); an empty listing yields an empty array.
Renames and deletes.--no-renames is kept on both diff reads, so a move still contributes both names and a delete its one name.
Untracked directory. Unchanged: without --directory, ls-files --others lists the files inside it one by one. A nested repo still prints as dir/ and is counted unreadable, as before.
The model tier holds for every shape above. All four mandatory tier globs and the one suspect glob are prefix-judged (startsWith), which a newline cannot defeat.
gitLines has no remaining reference anywhere in the repo at the head. Of the 11 other scripts that import the module, none uses either reader; the only external user of changedPathsFromGit is the CLI path in the same file.
The new rows are sound by reading.
The fixture is a temp repo under mkdtempSync(tmpdir()), removed in a finally.
The expected values check out by hand: counts 1/1/1, 3 tier hits, +3 additions, 0 unreadable.
The CONTROL reads the same branch the old way and must come back quoted, so the rows cannot pass on a fixture that never reproduced the defect.
The ablation claim is credible from the structure.
Old body restored: the three names come back quoted, so the four non-control rows fail and the CONTROL stays green.
Only -z dropped: the NUL split returns the whole listing as one name, which also reddens the older rows that assert paths.includes.
The head blob of dispatch-gates.mjs is 6343de57, matching the restore the dev reports.
Check-runs on the head: no failure, 8 still pending.
Pending: Lint · PM dispatch-gates, Lint · CI release and engine gates, Lint · docs and code guards, Lint · repo and tooling gates, Test Core (1/8), Type Check · workspace, Type Check · consumer gates, Type Check · debt ledger.
Completed and green include Check Changeset, Check PR Size, PR-body guards and Governed Surface Queue Guard.
② Semver level
skip-changeset, Clause-②: no. Confirmed.
Both files are under scripts/pm/; no package and no published surface is touched.
The PR carries the skip-changeset label and Check Changeset is green.
No accept set is widened or narrowed.
③ Boundary flags
PR author:objectstack-fleet[bot], attributed to os-steve. The head branch claude/project-thread-xes6db matches the claim. The PR is still a draft.
File surface: the two claimed files and nothing else.
Dev deviations: all three are process-only and answered.
The gate run that overlapped an ablation leg was re-run on the clean tree; the head blob matches.
The second ablation leg is extra evidence.
The detached checkout has no effect on the tree.
Open questions: none raised.
SQL push-down: n/a.
Escalated: the five new rows are measured by no check-run on this head.
They sit in the slow(...) real-git section, and per check-dispatch-gates.mjs the PR and merge-queue events run the fast tier only.
Their only measurement is the dev's local both-tier run (2520 cases), which I did not repeat. Lint · PM dispatch-gates completing will not cover them.
Escalated, outside the diff (read, not reviewed): the matcher still misses one newline case.
triggerPatternRegex turns ** into .* with no dotAll flag, so a pattern-judged hint or a workflow paths: trigger with an interior ** does not match a path whose newline sits in a segment that ** spans.
Example: packages/**/x.ts against a directory name holding a newline.
Before this PR such a path matched nothing at all, so this is a residue, not a regression. It has no carrier and needs its own card.
Served tier:record-recognisers --template --paths on this file list reads the declaration face (TIER_DEFAULT, no Scope, no ④). This record is served at CONTRACT_REVIEW_TIER as dispatched, which over-serves.
④ Design judgment
No must-fix, no should-fix.
One reader that owns the -z and the NUL split together is the right shape. It matches trackedFiles in the same file and the -z reader in check-platform-checklist.mjs, and call sites cannot drift apart. Leaving --numstat unquoted is sound: parseNumstat reads only the two leading counts.
N1 (nit) — The out-of-scope note understates the display effect.
It says only stderr is affected. The stdout hit lines of tierLines and the matched via lines of the human mode print the raw path too, so a newline name splits a stdout line.
It is still display only: no reader in the repo parses those lines, the Model tier headline is intact, and --json escapes.
The PR's acceptance note should say stdout hit lines as well.
N2 (nit) — Three claims of the new reader are pinned by no row.
"Never trim": no fixture name has a leading or trailing space, so restoring .trim() beside -z would stay green.
Tab, quote and backslash names are not in the fixture; they ride the same mechanism as the pinned non-ASCII and newline names.
The changedLinesFromGit fallback hunk is reached by no caller and no test: every call passes untracked.
N3 (nit) — The gate-family row is satisfied by any one path.
It asserts some(check:skill-*) over the three paths together, so it does not show the newline name alone naming a family.
The tier row (3 hits) does cover the newline name.
N4 (nit) — runGit decodes as UTF-8, so a name that is not valid UTF-8 arrives with replacement characters.
It still takes its tier by prefix, but an untracked one is counted unreadable.
This is the same as trackedFiles and better than the quoted form before.
N5 (nit) — The fixture's git helper does not isolate global or system config.
The one key the new rows depend on, core.quotePath, is pinned in the repo's local config, and identity and signing are passed with -c.
A hostile global setting such as an ignore rule for *.md fails red, never falsely green.
The newline-named fixture file cannot be created on Windows.
N6 (nit) — gitPathList assumes element 0 is the subcommand and a one-name-per-record format.
A future caller passing a global option first, or a two-field format such as --name-status, would be mis-read.
domain:skillsDomain lane — seat card indexed by label:pm:seatfindingRecorded observation — held, not dispatchable until the findings triage round grades itpriority:p2Medium: important, M3toolingFix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface
Activity
objectstack-fleet commentedon Nov 15, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Path: none
Triage: first touch →
domain:skills· p2 · 2026-11-15T13:05Z⛔ Not a claim.
dispatch-gates reads paths without
-z, the same class as #33620 (pm tooling). p2.objectstack-fleet commentedon Nov 15, 2026
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19
Claim: PM loop round 1
Session:
session_01ADHkmPd7uRqHauEehGPr19Account:
os-steveBranch:
claude/project-thread-xes6dbThread session:
session_01ADHkmPfzYmYaFdzt3TJ9w2Worktree:
objectstack-issue-33847Domain:
domain:skillsSeat:
domain:skills#1File surface:
scripts/pm/dispatch-gates.mjs(changedPathsFromGitand any shared reader it uses),scripts/pm/dispatch-gates.self-test.mjs(stop on breach; explain in the report)Container & model:
S–M,mode:thread,model: opus(default tier;dispatch-gates --tier: no path-derived mandate),effort: highClause-②: no
Metadata-protocol: none
Responsibility:
n/a — PM tooling, not a defect in a product packageThread-read: 6894759070
Premise: holds (origin/main 895783a: the three
gitLinesreads inchangedPathsFromGitcarry no-z)Serial constraints cleared: none in flight on these files; #33848 (same files, different defect) waits for this PR to merge, not folded.
Order: standard order
/mnt/project-files/skills-seat/standard-order.md+ delta/mnt/project-files/skills-seat/33847-delta.md(project files). Ruling-ref: the maintainer's 「尽快把 p1 p2 卡处理完」 (project "objectstack skills spec ui", 2026-11-15T14:15Z). Claimed 2026-11-15T14:22Z.objectstack-fleet commentedon Nov 15, 2026
domain:skills#1 · os-steve · session_01ADHkmPfzYmYaFdzt3TJ9w2
os-dev-report
{ "issue": 33847, "status": "done", "branch": "claude/project-thread-xes6db", "pr": "https://github.com/objectstack-ai/objectstack/pull/33998", "session": "session_01ADHkmPfzYmYaFdzt3TJ9w2", "premise_still_valid": true, "summary": "changedPathsFromGit's three path lists (committed, uncommitted, untracked) and changedLinesFromGit's untracked fallback now read through one reader, gitPathList, which splices -z in after the subcommand and splits on NUL, untrimmed; the old gitLines (no other caller) is gone. Premise measured on a real repo at 895783a1 before the fix: a committed and an untracked skills/x/ file named in Chinese derived tier null and the untracked one counted as 1 unreadable file; after, both raw, tier CONTRACT_REVIEW_TIER, 0 unreadable. core.quotePath=false was not used (a newline name still splits).", "tests": "node scripts/pm/dispatch-gates.mjs --self-test (both tiers) on acb82a3e under os-verify-lock: 2520 cases pass, VERDICT command-exit 0 (2515 before + 5 new). New real-git scenario 'quoted-names' (fixture sets core.quotePath true): CONTROL plain read quotes all three names, tier null, 0 families; derived set lists committed+uncommitted Chinese names and an untracked newline name raw (1/1/1); tier CONTRACT_REVIEW_TIER, 3 hits; check:skill-* families named; untracked counted from disk (0 unreadable, +3). Ablation via scripts/ablation-replace.mjs, restored blob == HEAD 6343de57fbce and git diff HEAD empty after each leg: leg 2 (whole old gitLines body restored: no -z, newline split, trim) -> VERDICT command-exit 1, exactly the 4 new non-control rows red; leg 1 (only -z dropped) -> 12 red (the 4 plus 8 older real-git derivation rows, since the NUL split then returns one name). Before/after runs cited in the PR body.", "gates": "Local subset on acb82a3e: dispatch-gates --commands --repo objectstack-ai/objectstack derived 30 commands; all 30 exit 0 (captured before any pipe; full list with exit codes in the PR body). --ran with ':: exit N' annotations: 30 derived, 30 run, 0 NOT-MEASURED, 0 UNRUN (derived zero). check:pm-dispatch-gates (fast tier, 2205 cases) in the 30. Rule-5 suites: no *.test.ts imports the script (6 git-grep hits are comments only); the only external caller of changedPathsFromGit is check-dispatch-gates.mjs, run in the 30. No package touched: no build closure, no package test owed. CI check-runs: in_progress at report time, not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "4 — mcp__github__issue_read (get, get_comments x2), mcp__github__pull_request_read (get); all reads, no MCP write", "api_writes": "3 relay dispatches' worth — (1) git push of claude/project-thread-xes6db (not REST); (2) pr_create via with-fleet.sh --via dispatch: POST /repos/objectstack-ai/objectstack/dispatches -> relay POST pulls (#33998, draft), POST issues/33998/assignees (os-steve), POST issues/33998/labels (skip-changeset), read-back 8055 bytes sent == stored; (3) this os-dev-report comment via post-stamped.mjs (relay POST issues/33847/comments)", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · derivationProvenance prints one path per stderr line, so a newline-named path now prints raw across two stderr lines; display only (stdout, tier and gate list unaffected). Noted in the PR Acceptance notes, not filed." ], "files_changed": [ "scripts/pm/dispatch-gates.mjs (+25/-6)", "scripts/pm/dispatch-gates.self-test.mjs (+66/-0)" ], "line_budget": "diff +91/-6 (GitHub additions/deletions), 2 files, under the 3000 human-merge line; no ratchet surface touched (scripts/pm only, not .claude/skills/pm-dispatch, not skills/)", "deviations": [ "The first gate run started while ablation leg 1 had the mutated dispatch-gates.mjs on disk; I stopped my own runner (only its first two gates had finished, before the mutation) and re-ran all 30 after both legs restored. Every exit code reported is from that re-run on the clean acb82a3e tree.", "Two ablation legs instead of one: leg 2 is the card-specified revert; leg 1 is reported for what it shows (the -z and the NUL split cannot be separated).", "The harness checked the card branch out in the shared clone, so the worktree was made with git checkout --detach there and git worktree add ../objectstack-issue-33847 claude/project-thread-xes6db." ] }Stamped 2026-11-15T15:43Z.
objectstack-fleet commentedon Nov 15, 2026
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19
Contract review
Served-tier:
CONTRACT_REVIEW_TIERHead-sha:
acb82a3e2d384412d64b3479350cdfde4d391b7cLocal-runs: none
Scope:
scripts/pm/dispatch-gates.mjs(gitPathList,changedPathsFromGit, the untracked fallback ofchangedLinesFromGit, the removedgitLines) +scripts/pm/dispatch-gates.self-test.mjs① Derived judgments
Read from the tree at the head (net diff against
main: 2 files, +91/-6), the card and its 3 comments, and the head's check-runs. Nothing was built, run or re-run.gitPathList, which builds[subcommand, '-z', ...rest], splits on NUL, does not trim, and drops empty entries.-zplacement is right for all three calls.diff -z --name-only --no-renames MERGE_BASE HEADdiff -z --name-only --no-renames HEADls-files -z --others --exclude-standard-zfollows the subcommand and precedes the revisions. No caller passes a--pathspec, so no option lands after one.-zgit emits every name verbatim, so non-ASCII, newline, tab, quote, backslash and leading or trailing space all arrive as on disk. The old.trim()is gone, so edge spaces survive.filter(Boolean); an empty listing yields an empty array.--no-renamesis kept on both diff reads, so a move still contributes both names and a delete its one name.--directory,ls-files --otherslists the files inside it one by one. A nested repo still prints asdir/and is counted unreadable, as before.startsWith), which a newline cannot defeat.gitLineshas no remaining reference anywhere in the repo at the head. Of the 11 other scripts that import the module, none uses either reader; the only external user ofchangedPathsFromGitis the CLI path in the same file.mkdtempSync(tmpdir()), removed in afinally.-zdropped: the NUL split returns the whole listing as one name, which also reddens the older rows that assertpaths.includes.dispatch-gates.mjsis6343de57, matching the restore the dev reports.② Semver level
skip-changeset, Clause-②: no. Confirmed.
scripts/pm/; no package and no published surface is touched.skip-changesetlabel andCheck Changesetis green.③ Boundary flags
objectstack-fleet[bot], attributed toos-steve. The head branchclaude/project-thread-xes6dbmatches the claim. The PR is still a draft.slow(...)real-git section, and percheck-dispatch-gates.mjsthe PR and merge-queue events run the fast tier only.Lint · PM dispatch-gatescompleting will not cover them.triggerPatternRegexturns**into.*with no dotAll flag, so a pattern-judged hint or a workflowpaths:trigger with an interior**does not match a path whose newline sits in a segment that**spans.packages/**/x.tsagainst a directory name holding a newline.record-recognisers --template --pathson this file list reads the declaration face (TIER_DEFAULT, no Scope, no ④). This record is served atCONTRACT_REVIEW_TIERas dispatched, which over-serves.④ Design judgment
No must-fix, no should-fix.
One reader that owns the
-zand the NUL split together is the right shape. It matchestrackedFilesin the same file and the-zreader incheck-platform-checklist.mjs, and call sites cannot drift apart. Leaving--numstatunquoted is sound:parseNumstatreads only the two leading counts.tierLinesand thematched vialines of the human mode print the raw path too, so a newline name splits a stdout line.Model tierheadline is intact, and--jsonescapes..trim()beside-zwould stay green.changedLinesFromGitfallback hunk is reached by no caller and no test: every call passesuntracked.some(check:skill-*)over the three paths together, so it does not show the newline name alone naming a family.runGitdecodes as UTF-8, so a name that is not valid UTF-8 arrives with replacement characters.trackedFilesand better than the quoted form before.core.quotePath, is pinned in the repo's local config, and identity and signing are passed with-c.*.mdfails red, never falsely green.gitPathListassumes element 0 is the subcommand and a one-name-per-record format.--name-status, would be mis-read.Implemented-by:
claude/project-thread-xes6dbReviewed-by:
session_01ADHkmPd7uRqHauEehGPr19VERDICT: PASS
objectstack-fleet commentedon Nov 15, 2026
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19
Landed: PR #33998 MERGED at
a3aa1d29a321b8d73fbad684f64877833693467c(merge queue).merged_at/ merge commita3aa1d29a321b8d73fbad684f64877833693467cFixes #33847代关)状态变更:摘
pm:dispatched;卡已由 Fixes 关,无剩余物。Recorded 2026-11-15T16:26Z.fix(pm): dispatch-gates derives the change set with -z, so a non-ASCI…