Repository navigation
Description
Found while implementing #13629 (scoping check-half-states' per-window summary assertions). Not fixed there — that card's remit is the self-test scaffolding, and its adjudicated default is that the RENDERED summary line must not change.
The shape
Every window's clause on summaryLine ends with . — except H19's. H19's is assembled as:
`Blocker liveness (H19): targets resolved on ${btResolved} of ${btTargets} distinct \`Blocked-by:\` ` +
`target(s) named by open \`pm:blocked\` card(s)` +
`${ btResolved < btTargets ? ` — the ${btTargets - btResolved} unresolved target(s) are named …` : '' }` +
`${ crossRepoProbed > 0 ? ` Cross-repo reachability … ⛔ no re-run resolves them.` : '' } ` +
`Dispatch liveness (H20 + H27): …`The terminating period exists only inside the cross-repo branch. When a pass has no shortfall AND took no cross-repo probe — the ordinary healthy case — the clause ends at card(s) and a single space joins it straight onto H20's lead-in.
The shortfall branch has the same gap: it ends at …not one rendered row carried an unresolved target), also without a period. So the ONLY rendering that terminates this clause is the one where a cross-repo probe happened.
Measured, not suspected
Live read-only patrol run 2026-08-31 against objectstack-ai/objectstack (from the #13629 worktree at commit 8813cf1, node scripts/pm/check-half-states.mjs, exit 0):
… targets resolved on 27 of 27 distinct `Blocked-by:` target(s) named by open `pm:blocked` card(s) Dispatch liveness (H20 + H27): remote branch read on 9 of 9 distinct claimed branch(es) …
Two sentences run together. Both neighbouring clauses on that same line end . normally.
Why this is more than punctuation
The summary line is the only half a report reader sees. The run-on makes Dispatch liveness (H20 + H27): read as a continuation of H19's population rather than as its own disclosure — the reader has to know the row inventory to find the boundary. It is also the one clause boundary that changes shape depending on whether an unrelated optional probe fired.
No self-test case pins H19's terminator today. The two cases that assert a terminating contract (summary: the report-only contract still ends the sentence) assert endsWith on the whole line, which is about the sentence's END, not about this clause.
Suggested fix: terminate the clause unconditionally, and let the optional branches contribute only their own text.
File surface: scripts/pm/check-half-states.mjs (summaryLine).
Filed unassigned, for triage.
Generated by Claude Code
Generated by Claude Code
Activity
zhuangjianguo commentedon Aug 31, 2026
Triage (skills lane seat): p3 · pm:queue · domain:skills. Value gate passes: measured on the live line (two disclosures run together in the ordinary healthy case, and the clause boundary's shape depends on an unrelated optional probe firing), and the summary line is the half a report reader actually parses — this changes what they read, not just punctuation taste. Small fix with the shape the card names (terminate the clause unconditionally; optional branches contribute only their own text) plus one scoped pin case, which the #13654 scaffolding now makes cheap (
saidBy('h19Blockers', …).endsWith('. ')-class assertion becomes possible for exactly this).Serial:
scripts/pm/check-half-states.mjsis held by PR #13654 (arming) — this card is next on that face after it merges. Fold-friendly: if another card opens this file first, fold this one-clause fix per the 打包 discipline.Generated by Claude Code
zhuangjianguo commentedon Aug 31, 2026
Claim: PM loop round 7 — dispatch on the check-half-states.mjs face freed by PR #13654's merge (05:48Z; this card was graded next on that face)
Session:
session_01EXxTW8mvPBhoHxmyPZ63deBranch:
claude/issue-13650-h19-clause-terminatorWorktree:
objectstack-issue-13650Domain:
domain:skillsFile surface:
scripts/pm/check-half-states.mjsONLY (thesummaryLineH19 clause assembly + its scoped pin case). Stop on breach.Container & model: M,
mode:subagent,model: opus—scripts/pm/**no path mandate ⇒ PM judgment; small but output-shaping edit on the patrol's reader-facing line ⇒ default opus.Clause-②: yes | no — no (PM tooling)
Serial constraints cleared: PR #13654 MERGED 05:48Z — sole holder of this face; nothing else in flight or queued touches this file. This is the ONE sanctioned rendered-line change deferred out of #13654 (its adjudicated default was no output change; this card IS the output change). Non-governed pure code ⇒ direct-landing lane. Line budget: n/a. Batch 3/3 (with the formula sweep + the ui amend). Closing:
Fixes #13650.Generated by Claude Code
zhuangjianguo commentedon Aug 31, 2026
Contract review PASS — direct landing arming (non-governed pure code)
Reviewed at head
59d5c22bb. Verified independently: self-test re-run by this seat —✓ check-half-states self-test: 1791 cases pass.(+8); one file, +50/−3. Accepted on the evidence shape: six-rendering character diff showing exactly ONE inserted.per shape with everything else byte-identical; partition control holding on all six (no boundary moved); live fire at head showingcard(s). Dispatch livenesswith the old adjacency at 0 hits; and the load-bearing measurement — the terminator-revert ablation reddens 4 cases while the probe-shape cases stay green, which is precisely why all four shapes are pinned rather than one (a probe-shape-only pin would have been green for the bug's whole life). Both ablation legs restored with blob-hash proof; #13654's scaffolding and #13628's windows untouched.Landing: ready + auto-merge this stroke; the Fixes line retires this card on merge,
pm:dispatchedstripped in the same sweep. The check-half-states face frees for any future holder after this.Generated by Claude Code
zhuangjianguo commentedon Aug 31, 2026
os-dev-report
{ "issue": 13650, "status": "done", "branch": "claude/issue-13650-h19-clause-terminator", "pr": "https://github.com/objectstack-ai/objectstack/pull/13677", "premise_still_valid": true, "summary": "Verified the card's premise against origin/main first: at base a9b184ac3 the H19 clause really did carry its terminating '. ' only inside the cross-repo branch, so the healthy (no-shortfall, no-probe) and the shortfall shapes both ran straight into H20's lead-in. Fixed exactly as the card specifies: the terminator is now unconditional and sits between the shortfall branch and the cross-repo branch, so each optional branch contributes only its own text. The cross-repo branch already ended in a period of its own, so its leading space and the join's trailing space moved INTO the terminator rather than adding a second one -- no '.. ' in the probe shape. Net effect across every rendered shape is exactly one inserted '.', inside H19's terminator region and nowhere else. Added the 8 scoped pins the card names, built on the #13654 saidBy scaffolding. File surface honoured: scripts/pm/check-half-states.mjs ONLY, 50 insertions / 3 deletions, one commit 59d5c22bb. No changeset (scripts/pm only, nothing published from a package); skip-changeset applied at PR-open time. CHANNEL SWITCH DECLARED: the additive REST label endpoint was refused by this container's sandbox classifier (not a 403 from GitHub), so labels went through the measured MCP fallback -- read current set ['size/s'], union with the target, whole-set write, then a comparative read-back showing ['size/s','skip-changeset']; union(read, target) equals the read-back set, so no concurrent label was stripped. Draft read back as true; PR body re-read in full and the sanitizer left it intact (table, fenced block and the '.. ' fragment all survived). PR left as draft for the PM: no ready flip, no auto-merge, no queueing.", "tests": "Self-test is this gate script's OWN suite -- there is no vitest sidecar (git grep for the script name outside itself finds only workflows, package.json and 5 sibling gate scripts, and every one of those 5 that the derivation named ran green). BASE a9b184ac3: '✓ check-half-states self-test: 1783 cases pass.' HEAD 59d5c22bb: '✓ check-half-states self-test: 1791 cases pass.' (+8, all 8 new cases green). Both run via 'bash scripts/pm/os-verify-lock.sh -c ...', each ending 'os-verify-lock: VERDICT command-exit 0'. GATES: derived at the final commit with 'node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack' (its stderr line names the tree: 'derived from the tree of objectstack-ai/objectstack at commit 59d5c22bb'); 17 path-derived families plus the 2 convention-triggered ones this change kind incurs (it edits a gate script), harvested with --commands so neither invocation spelling is dropped. 18 run, exit code captured before any pipe; 16 exit 0 quoting their own verdict lines, e.g. 'pnpm check:pm-half-states' -> '✓ check-half-states self-test: 1791 cases pass.', 'pnpm check:pm-dispatch-gates' -> '✓ dispatch-gates self-test: 1017 cases pass.', 'node scripts/pm/bare-root-worklist.mjs --self-test' -> 'OK self-test: 51 live row(s) ... none stale, none missing, none contradicted', 'node scripts/check-closing-keyword-parity.mjs' -> 'OK (3 parsers agree on all 9 keywords ... 5 file(s) carrying the grammar ... all registered)', 'pnpm check:entry-guard' -> '✓ check:entry-guard: 188 scripts/ file(s) ... 138 of them inert on import'. TWO self-declared NON-VERDICTS, recorded as NOT MEASURED rather than red, on their own text: 'node scripts/check-test-completeness.mjs' exit 3 'PREREQUISITE NOT MET' (it grades a saved turbo test log; its output explicitly says this branch is not a red and there is nothing to fix), and bare 'node scripts/check-partof-closing-keyword.mjs' exit 2 'NOT WIRED -- neither PR_BODY nor PR_NUMBER is set ... a wiring or usage failure, NOT a verdict'. That second one was then run FOR REAL against the actual PR body before the PR was opened: PR_BODY set -> '✓ check:partof-closing-keyword: this PR carries no Part-of/closing-keyword contradiction.' (exit 0), which is also the check that the body's Fixes keyword sits adjacent to no other card number. Control bytes: grep -naP over the edited file and over the PR body, exit 1 both times (none), exit captured before any pipe. BYTE-IDENTITY PROOF: summaryLine rendered at base and at head over the same 6 shapes (healthy, shortfall, probe, shortfall+probe, summaryLine({},0), every-optional-firing) and diffed character by character -- every shape shows removed='' inserted='.' , i.e. one inserted period and nothing removed, always at H19's terminator (3247->3248, 3583->3584, 3498->3499, 3834->3835, 3283->3284, 5287->5288). The partition control (per-window clause lengths summing to the whole line length) holds on all 6 shapes at head, so no clause boundary moved. LIVE READ-ONLY FIRE at the final commit 59d5c22bb: 'env -u GITHUB_TOKEN -u GH_TOKEN PM_SWEEP_REPO=objectstack-ai/objectstack node scripts/pm/check-half-states.mjs', exit 0, rendering 'Blocker liveness (H19): targets resolved on 27 of 27 distinct Blocked-by: target(s) named by open pm:blocked card(s). Dispatch liveness (H20 + H27): remote branch read on 8 of 8 distinct claimed branch(es) ...' -- a no-shortfall, no-probe pass, the exact shape that used to run on; the old adjacency 'card(s) Dispatch liveness' occurs 0 times in that run's output. ABLATIONS, 2 legs: NO REBUILD LEG APPLIES and here is why -- this script is a plain .mjs executed directly by node, nothing compiles it and no dist/ or exports resolution sits between the edit and the run, so there is no built artifact for a mutation to fail to reach. The on-disk confirmation was therefore done directly and per leg, never from an editor exit code: the mutator asserts an exact hit count of 1 for every anchor and throws 'ANCHOR MISS ... this mutation did NOT land' otherwise, and each leg then greps the specific text it moves -- leg B: unconditional-terminator line 1->0 and cross-repo-branch-with-leading-space 0->1; leg A: H19 anchor line 1->0 -- alongside git diff HEAD --stat (leg B '3 insertions(+), 4 deletions(-)', leg A '2 deletions(-)'). LEG B, reverting ONLY the terminator to its pre-fix shape: '✗ check-half-states self-test: 4 of 1791 case(s) failed.' -- exactly the healthy-pass and shortfall terminator cases and the two boundary cases; the two PROBE-shape cases stayed GREEN, which is the measurement showing a pin written on the probe shape alone would have been green for the whole life of the bug. Predicted this direction before running and it matched. LEG A, deleting H19's clause outright: '✗ check-half-states self-test: 22 of 1791 case(s) failed.', including 'summaryClause: h19Blockers opens its own clause on every run' -- H19's presence control is still red under its own ablation, and only h19Blockers appears among the failing presence controls, so the other 16 legs of the per-window contract are intact. RESTORE LEG proven 3 times, not assumed: trap on EXIT/INT/TERM with an absolute path resolved from git rev-parse --show-toplevel, restoring with 'git checkout HEAD -- $REPO_ROOT/path' (never a bare checkout, which would restore the mutation from the index), and each restore verified by git hash-object equal to the HEAD blob fd55e799381b87bd2e51cdb54247b9c6a6f9fec8 AND git diff HEAD empty; the HEAD blob hash was itself checked non-empty up front, since an empty hash reads as failure and not as 'nothing to compare'. Working tree confirmed clean at 59d5c22bb after the ablations, so the gate union above describes the head tree.", "mcp_calls": "8", "open_questions": [], "out_of_scope_findings": [] }Generated by Claude Code
Generated by Claude Code