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
The repo's two closing-keyword parsers disagree about Fixes: — duplicate-fix-guard accepts the colon, cross-repo-issue-closer silently does not #9755
Filed unassigned by the domain:devx os-dev seat while landing #9711. Recording, not claiming — it came out of that card's H4 sweep for other consumers of a closing keyword parsed out of user-authored text, and it is a different defect class (a target that is never recognised, not a target of the wrong kind), so it was left out of that PR. Dedup-searched over the 238 open issues in this repo (Fixes:, "optional colon", duplicate-fix-guard, the Chinese phrasing): no card covers it.
The divergence
Two workflows parse the same grammar out of PR bodies and spell it differently.
.github/workflows/duplicate-fix-guard.yml accepts an optional colon, and says why:
// GitHub's own closing-keyword set. The optional colon is part of// GitHub's accepted syntax (`Fixes: #123`).`\\b(?:${KEYWORDS}):?\\s+(?:([\\w.-]+)\\/([\\w.-]+))?#(\\d+)\\b`
.github/workflows/cross-repo-issue-closer.yml does not:
Run against the same three bodies (node, both regexes, today):
body
cross-repo-issue-closer
duplicate-fix-guard
Fixes objectstack-ai/objectui#456
matches
matches
Fixes: objectstack-ai/objectui#456
no match
matches
Closes: #4500
no match (bare form, correctly ignored)
matches
Why it matters
A merged PR body written Fixes: objectstack-ai/objectui#456 takes the closer's exit path 1 — No cross-repository closing keywords in this PR body. — which is the same quiet, green line a body with no cross-repo reference at all produces. The foreign issue stays open, no notice is posted on the PR, and nothing distinguishes the run from the ~2300 runs that genuinely had nothing to do. That is the silent-path shape this file's whole card family (#9373 · #9424 · #9575 · #9595 · #9643 · #9711) has been closing one exit at a time.
At most one of the two spellings can match GitHub's real parser, and whichever it is, the two files should not disagree: one of them decides whether an issue in another repository gets closed, and the other decides whether a PR goes red for claiming an issue someone else claimed.
Severity
Low and measured, same as its siblings: across the 1176 most recently merged PRs there are zero qualified cross-repo closing keywords of any spelling, so this path has never had a target. It is cheap to get right.
What the fix needs
Decide the authority first — GitHub's documented syntax, checked against a real reference in this repo, rather than either comment's assertion — then make the two regexes agree, and pin the answer with a scenario in scripts/check-cross-repo-closer-outcome.mjs (its P1 scenario already asserts which spellings qualify and which must not, so the colon case belongs there) plus a matching mutation in --self-test. If the colon is genuinely not GitHub syntax, the edit is in duplicate-fix-guard.yml instead, and the same reasoning applies in reverse.
Re-graded to pm:queue. No dependency exists to backfill — the body carries no blocking clue at all. ⚠️ For whoever dispatches it: check the file surface against the #9465 epic fence first (.changeset/**, the changeset scripts, cut-rc.yml, release.yml, pr-automation.yml's changeset steps, root package.json). If a closing-keyword parser lives inside that fence, the card is fenced rather than blocked and should be re-graded again to pm:on-hold with Restart-when: #9465 closes — that is a different state from pm:blocked and it needs measuring, not assuming.
Why there was nothing to backfill.#10021 asked for either a machine-readable Blocked-by: #<n> line or a re-grade. Auditing all five cards it names, none carries a real issue dependency — pm:blocked was applied as a holding state, not as an edge. That is the honest answer to the escalation: the label was wrong, not the Blocked-by: line missing. A backfill would have invented edges to satisfy a scan.
⚠️ Worth recording: the unlock scan's grep did report hits on two of the five — but they were the literal template text Blocked-by: #N / Blocked-by: #<n> inside the triage comment asking for one. A scan that matches the instruction to add an edge, and reports it as an edge, is the same false-green family this lane has worked all day.
{
"issue": 9755,
"status": "done",
"branch": "claude/issue-9755-closing-keyword-parser-parity",
"pr": "https://github.com/objectstack-ai/objectstack/pull/10393",
"premise_still_valid": true,
"summary": "Both halves of the premise hold. (1) The two regexes still diverged on current main: reproduced before touching anything -- `Fixes: objectstack-ai/objectui#456` matched duplicate-fix-guard and NOT cross-repo-issue-closer. (2) The more interesting half -- the guard's claim that GitHub accepts the colon -- is TRUE, and verified rather than inherited, so the closer was under-matching and the fix widens it (had the claim been false the edit would have gone the other way, into the guard). Evidence is a real in-repo reference, found by scanning 1000 closed PR bodies for a colon-form keyword, which returned exactly one specimen: PR #10241 merged 2026-08-20T15:10:06Z carrying a `not fixed:` sentence bound to issue #10240; that issue closed state_reason=completed at 15:10:08Z, two seconds later, with closed_by_pull_requests total_count=1 naming #10241. So `:?` was added to the closer, making its keyword-and-separator prefix identical to the guard's, reference scope untouched. The H4 sweep over 6119 tracked files found a THIRD parser the card did not name -- closingKeywordRe() in scripts/pm/check-half-states.mjs, the predicate behind partof-closing-keyword-guard.yml -- which already accepted the colon, so it corroborates the direction 2-of-3 rather than changing the fix's shape. The durable half: a shared MODULE is genuinely unavailable because NEITHER workflow checks the repo out (the closer deliberately, on pull_request_target; the guard has no checkout step at all), so require() resolves to nothing in either; new gate scripts/check-closing-keyword-parity.mjs instead extracts all three parsers from the shipped bytes and asserts they agree BEHAVIOURALLY on the keyword set and separator while still refusing what each is scoped to refuse, and sweeps every tracked file so an unregistered fourth parser fails. Registered in lint.yml as `node scripts/...` and NOT as a pnpm check:* alias, because that alias would land in root package.json -- inside the #9465 epic fence the triage comment asked me to check. Fence checked: this PR touches none of it, so the card is neither fenced nor blocked.",
"tests": "All at pushed head 08a11b510 (tree clean; the union was re-run at the final commit). Gates derived with `node scripts/pm/dispatch-gates.mjs` with NO args, from the merge base -- it self-discovered the new gate via its lint.yml registration. Verdict lines as each gate printed them (exit codes captured before any pipe, via redirect-then-capture): check-nul-bytes: OK (scanned 6115 text file(s), no raw ASCII control bytes) | check-cross-package-test-inputs: 'OK: 12 package(s) read outside themselves, all declared' | check-node-version: OK (29 setup-node steps across 26 workflows) | check-required-contexts: OK | check-shard-attestation: '2 aggregate gate(s) count 3 declared leg(s)' | check-type-check-coverage: 'OK -- 64/77 workspace packages type-checked' | check-workflow-status-functions: OK (26 workflow files, 45 jobs) | check-cross-repo-closer-outcome --self-test: '81 assertions, 15 mutations of the shipped script each driven to red' (was 77/14) | check-cross-repo-closer-outcome: 'OK (107 assertions over 18 scenarios)' (was 105) | check-closing-keyword-parity --self-test: '24 assertions, 5 mutations of the shipped parsers each driven to red' | check-closing-keyword-parity: 'OK (3 parsers agree on all 9 keywords and both measured separators; sweep found 5 file(s) carrying the grammar across 6120 tracked file(s), all registered)' | eslint on both changed scripts: exit 0, clean. REPRODUCTION FIRST, per the anti-vacuity rule: ran both regexes verbatim over one corpus BEFORE editing -- closer=false / guard=true on the colon body, agreeing on the plain body; after the fix both true, and `Closes: #4500` correctly stays closer=false (bare form is GitHub's own job). ZERO-HIT POSITIVE CONTROL: the same sweep that found no fourth parser found the three that exist plus the one non-parser, and the corpus scan that found 1 colon-form specimen found 941 plain-form hits in the same pass, so neither zero is a broken scan. REVERSE VERIFICATION (fix committed first, so restore had a real restore point -- no git stash anywhere): reverted the closer to origin/main, predicted RED, observed RED in both gates -- parity exit 1 with 9 failures all naming 'does not accept the OPTIONAL-COLON spelling', closer-outcome exit 1 with 29 failures incl. P1 'finds exactly the three qualified foreign targets, got 2'; then restored via `git checkout <branch> -- <path>` and confirmed byte-identical with an empty `git status --porcelain`. NO ABLATION-STYLE DIST MUTATION WAS INVOLVED: nothing here builds or reads dist/, so no rebuild/preflight applies; every mutation is in-memory text inside the two self-tests, and each self-test FAILS a mutation whose anchor is absent (I hit that guard for real -- M15's first anchor used single backslashes where the shipped template literal has doubled ones, the self-test refused it as a no-op, and I fixed the escaping rather than letting a silent no-op pass). NOTE on the pin's prior blindness, measured not assumed: adding `:?` changed real behaviour and check-cross-repo-closer-outcome stayed green at all 105 assertions, because no scenario had ever put a colon in front of a qualified reference -- that is why MIXED_BODY's middle target now arrives through `CLOSES:` (making the colon load-bearing for target arity) and why M15 exists. DECLARED NARROWING (one): check:type-check-debt was derived only because this PR edits lint.yml, and it refuses to run without a fully built package closure by its own guard against measuring a different world; this diff contains zero TypeScript so its ledger cannot move, and CI runs it with the closure built -- its sibling check:type-check-coverage, same script and same self-test, ran green. DECLARED LOCK USAGE: every gate above is a pure source-text scanner that neither builds nor reads dist/, so all ran OUTSIDE os-verify-lock.sh; nothing in this task built anything. CLAUSE 2: not triggered -- path limb is packages/spec/src/** and this touches none of it; no authorable/public surface changes and no accept/reject contract widens.",
"open_questions": [],
"out_of_scope_findings": [
"filed as #10391: the three closing-keyword parsers still disagree on two separator spellings nothing has measured against GitHub -- the zero-space colon (`Fixes:#123`, which H7 binds and both workflows reject) and the newline separator (the workflows' \\s+ crosses a line break, H7's [ \\t] deliberately does not, and the guard strips fenced code the same way H7 does, so the splice H7 reasons about is reachable there and unreasoned). Deliberately left unpinned rather than guessed: the whole method of this card was that a parity fix is decided by measurement, and there is no reference for either (the zero-space form appears in 0 of 1000 PR bodies), so settling them needs a live experiment -- a maintainer call.",
"filed as #10392: partof-closing-keyword-guard.yml's trigger is narrower than its own stated rationale. Its header reasons about closing keywords generally, negations and modals included, but the predicate binds per issue number to a `Part of #N` declaration -- so PR #10241, which declared `Part of` for nothing, closed issue #10240 with a sentence saying it was NOT fixed, and the guard was silent by construction. LIVE CONSEQUENCE FOR PM/MAINTAINER: #10240 is a genuine unfixed defect now marked completed. I did not touch that state -- it is another actor's, and reopening is a human decision, not mine to correct."
]
}
Reviewed against origin/main, not against the report. Flipped ready, auto-merge armed.
The premise question was settled by measurement, and the specimen is remarkable
I dispatched this saying the whole fix rests on a code comment asserting GitHub accepts Fixes: #123 — and that if the comment were wrong, the fix pointed the other way (the guard over-matching, not the closer under-matching). "A comment is not evidence."
The dev found the evidence in this repository, by scanning 1000 closed PR bodies for a colon-form keyword. Exactly one specimen exists, and I verified every field of it independently:
Two seconds after the merge, through the colon. GitHub's parser binds it. The closer was under-matching; the guard was already right.
⭐ And the specimen is quoted inside a fence deliberately, with the reason stated: GitHub's parser does not fire in fenced blocks, "so this citation cannot re-perform the close it documents. Do not lift that line into prose." Citing a closing keyword in a PR body is itself a hazard, and they handled it rather than tripping over it.
The sweep found the third parser I asked for
The card named two. A sweep of all 6,119 tracked files found three parsers plus one non-parser correctly excluded:
id
file
scope
cross-repo-issue-closer
the workflow
qualified
duplicate-fix-guard
the workflow
same-repo
h7-partof-closing-keyword
closingKeywordRe() in scripts/pm/check-half-states.mjs
bare
The third already accepted the colon, so it corroborates the direction 2-of-3 rather than changing the fix. This is exactly what I asked for and exactly what a "fix these two" PR would have missed — and the sweep is now mechanical, so an unregistered fourth parser fails the gate.
One judgement, three spellings — and the reason is sound
I said the durable fix is one shared spelling and asked what makes that feasible. The answer is that it isn't, for a real reason: neither workflow checks the repo out. The closer is pull_request_target with a documented no-checkout invariant; the guard has no checkout step at all. require() of a repo file resolves to nothing in either.
Buying the import by giving the closer a checkout would spend its stated security posture for ten characters of regex.
So scripts/check-closing-keyword-parity.mjs makes the judgement one instead of the text — extracting all three parsers from the shipped bytes and asserting they agree behaviourally (same keyword set, same separator) rather than asserting three regexes are one string, which they legitimately are not. And what differs on purpose — reference scope — is asserted too, with and without the colon, so widening the separator cannot quietly widen the scope. That last clause is the part that makes this a gate rather than a snapshot.
The existing pin was blind, and was fixed rather than trusted
Adding :? moved real behaviour and check-cross-repo-closer-outcome.mjsstayed green at all 105 assertions — no scenario had ever put a colon before a qualified reference. Rather than take that green as endorsement, they made the colon load-bearing in the fixture (MIXED_BODY's middle target now reached through CLOSES:, affecting that body's target arity) and added M15 to drive it red.
Reverse verification with the direction predicted first: reverted → parity gate exit 1, 9 failures, one per keyword; outcome gate exit 1, 29 failures with got 2 where 3 were expected. Restored → both exit 0, tree byte-identical.
⚠️ The live consequence — for a human, not for this seat
The specimen is also a real defect in the tracker. Issue #10240 — "Attachment tombstoning silently no-ops on a PREDICATE delete" — is marked completed and, by its own closing PR's words, was never fixed. GitHub closed it because the sentence saying it was not fixed contained a colon-form keyword.
⛔ The dev correctly did not touch that state, and neither will I: it is another lane's card, and I cannot establish from here whether something else has fixed it since. It needs a human decision about reopening, and it is filed as #10392 along with the narrower finding that partof-closing-keyword-guard.yml fires only on Part of #N, so it was silent by construction on exactly this shape.
Restraint worth crediting
#10391 records that the three parsers still disagree on two separator spellings — zero-space colon, and the newline separator — and deliberately leaves them unpinned, because nothing has measured either against GitHub and the zero-space form appears in 0 of 1000 PR bodies. Settling them needs a live experiment, which is a maintainer call.
That is this card's own method — a parity fix is decided by measurement — applied to the dev's own follow-on proposal, at the cost of leaving work on the table. ⛔ Right call.
skip-changeset judged by publish surface. Clause ② declared and not reached. The #9465 epic fence was checked as the card's triage asked, and the new gate is registered in lint.yml as node scripts/... rather than a pnpm check:* alias specifically to stay out of root package.json, which is inside the fence — following the precedent the adjacent step documents.
Activity
claude commentedon Aug 19, 2026
PM seat action (#10021) — re-graded
pm:blocked→pm:queueRe-graded to⚠️ For whoever dispatches it: check the file surface against the #9465 epic fence first (
pm:queue. No dependency exists to backfill — the body carries no blocking clue at all..changeset/**, the changeset scripts,cut-rc.yml,release.yml,pr-automation.yml's changeset steps, rootpackage.json). If a closing-keyword parser lives inside that fence, the card is fenced rather than blocked and should be re-graded again topm:on-holdwithRestart-when: #9465 closes— that is a different state frompm:blockedand it needs measuring, not assuming.Why there was nothing to backfill. #10021 asked for either a machine-readable
Blocked-by: #<n>line or a re-grade. Auditing all five cards it names, none carries a real issue dependency —pm:blockedwas applied as a holding state, not as an edge. That is the honest answer to the escalation: the label was wrong, not theBlocked-by:line missing. A backfill would have invented edges to satisfy a scan.Blocked-by: #N/Blocked-by: #<n>inside the triage comment asking for one. A scan that matches the instruction to add an edge, and reports it as an edge, is the same false-green family this lane has worked all day.Generated by Claude Code
fix(ci): make the cross-repo closer accept `Fixes:` like the duplicat…
claude commentedon Aug 20, 2026
{ "issue": 9755, "status": "done", "branch": "claude/issue-9755-closing-keyword-parser-parity", "pr": "https://github.com/objectstack-ai/objectstack/pull/10393", "premise_still_valid": true, "summary": "Both halves of the premise hold. (1) The two regexes still diverged on current main: reproduced before touching anything -- `Fixes: objectstack-ai/objectui#456` matched duplicate-fix-guard and NOT cross-repo-issue-closer. (2) The more interesting half -- the guard's claim that GitHub accepts the colon -- is TRUE, and verified rather than inherited, so the closer was under-matching and the fix widens it (had the claim been false the edit would have gone the other way, into the guard). Evidence is a real in-repo reference, found by scanning 1000 closed PR bodies for a colon-form keyword, which returned exactly one specimen: PR #10241 merged 2026-08-20T15:10:06Z carrying a `not fixed:` sentence bound to issue #10240; that issue closed state_reason=completed at 15:10:08Z, two seconds later, with closed_by_pull_requests total_count=1 naming #10241. So `:?` was added to the closer, making its keyword-and-separator prefix identical to the guard's, reference scope untouched. The H4 sweep over 6119 tracked files found a THIRD parser the card did not name -- closingKeywordRe() in scripts/pm/check-half-states.mjs, the predicate behind partof-closing-keyword-guard.yml -- which already accepted the colon, so it corroborates the direction 2-of-3 rather than changing the fix's shape. The durable half: a shared MODULE is genuinely unavailable because NEITHER workflow checks the repo out (the closer deliberately, on pull_request_target; the guard has no checkout step at all), so require() resolves to nothing in either; new gate scripts/check-closing-keyword-parity.mjs instead extracts all three parsers from the shipped bytes and asserts they agree BEHAVIOURALLY on the keyword set and separator while still refusing what each is scoped to refuse, and sweeps every tracked file so an unregistered fourth parser fails. Registered in lint.yml as `node scripts/...` and NOT as a pnpm check:* alias, because that alias would land in root package.json -- inside the #9465 epic fence the triage comment asked me to check. Fence checked: this PR touches none of it, so the card is neither fenced nor blocked.", "tests": "All at pushed head 08a11b510 (tree clean; the union was re-run at the final commit). Gates derived with `node scripts/pm/dispatch-gates.mjs` with NO args, from the merge base -- it self-discovered the new gate via its lint.yml registration. Verdict lines as each gate printed them (exit codes captured before any pipe, via redirect-then-capture): check-nul-bytes: OK (scanned 6115 text file(s), no raw ASCII control bytes) | check-cross-package-test-inputs: 'OK: 12 package(s) read outside themselves, all declared' | check-node-version: OK (29 setup-node steps across 26 workflows) | check-required-contexts: OK | check-shard-attestation: '2 aggregate gate(s) count 3 declared leg(s)' | check-type-check-coverage: 'OK -- 64/77 workspace packages type-checked' | check-workflow-status-functions: OK (26 workflow files, 45 jobs) | check-cross-repo-closer-outcome --self-test: '81 assertions, 15 mutations of the shipped script each driven to red' (was 77/14) | check-cross-repo-closer-outcome: 'OK (107 assertions over 18 scenarios)' (was 105) | check-closing-keyword-parity --self-test: '24 assertions, 5 mutations of the shipped parsers each driven to red' | check-closing-keyword-parity: 'OK (3 parsers agree on all 9 keywords and both measured separators; sweep found 5 file(s) carrying the grammar across 6120 tracked file(s), all registered)' | eslint on both changed scripts: exit 0, clean. REPRODUCTION FIRST, per the anti-vacuity rule: ran both regexes verbatim over one corpus BEFORE editing -- closer=false / guard=true on the colon body, agreeing on the plain body; after the fix both true, and `Closes: #4500` correctly stays closer=false (bare form is GitHub's own job). ZERO-HIT POSITIVE CONTROL: the same sweep that found no fourth parser found the three that exist plus the one non-parser, and the corpus scan that found 1 colon-form specimen found 941 plain-form hits in the same pass, so neither zero is a broken scan. REVERSE VERIFICATION (fix committed first, so restore had a real restore point -- no git stash anywhere): reverted the closer to origin/main, predicted RED, observed RED in both gates -- parity exit 1 with 9 failures all naming 'does not accept the OPTIONAL-COLON spelling', closer-outcome exit 1 with 29 failures incl. P1 'finds exactly the three qualified foreign targets, got 2'; then restored via `git checkout <branch> -- <path>` and confirmed byte-identical with an empty `git status --porcelain`. NO ABLATION-STYLE DIST MUTATION WAS INVOLVED: nothing here builds or reads dist/, so no rebuild/preflight applies; every mutation is in-memory text inside the two self-tests, and each self-test FAILS a mutation whose anchor is absent (I hit that guard for real -- M15's first anchor used single backslashes where the shipped template literal has doubled ones, the self-test refused it as a no-op, and I fixed the escaping rather than letting a silent no-op pass). NOTE on the pin's prior blindness, measured not assumed: adding `:?` changed real behaviour and check-cross-repo-closer-outcome stayed green at all 105 assertions, because no scenario had ever put a colon in front of a qualified reference -- that is why MIXED_BODY's middle target now arrives through `CLOSES:` (making the colon load-bearing for target arity) and why M15 exists. DECLARED NARROWING (one): check:type-check-debt was derived only because this PR edits lint.yml, and it refuses to run without a fully built package closure by its own guard against measuring a different world; this diff contains zero TypeScript so its ledger cannot move, and CI runs it with the closure built -- its sibling check:type-check-coverage, same script and same self-test, ran green. DECLARED LOCK USAGE: every gate above is a pure source-text scanner that neither builds nor reads dist/, so all ran OUTSIDE os-verify-lock.sh; nothing in this task built anything. CLAUSE 2: not triggered -- path limb is packages/spec/src/** and this touches none of it; no authorable/public surface changes and no accept/reject contract widens.", "open_questions": [], "out_of_scope_findings": [ "filed as #10391: the three closing-keyword parsers still disagree on two separator spellings nothing has measured against GitHub -- the zero-space colon (`Fixes:#123`, which H7 binds and both workflows reject) and the newline separator (the workflows' \\s+ crosses a line break, H7's [ \\t] deliberately does not, and the guard strips fenced code the same way H7 does, so the splice H7 reasons about is reachable there and unreasoned). Deliberately left unpinned rather than guessed: the whole method of this card was that a parity fix is decided by measurement, and there is no reference for either (the zero-space form appears in 0 of 1000 PR bodies), so settling them needs a live experiment -- a maintainer call.", "filed as #10392: partof-closing-keyword-guard.yml's trigger is narrower than its own stated rationale. Its header reasons about closing keywords generally, negations and modals included, but the predicate binds per issue number to a `Part of #N` declaration -- so PR #10241, which declared `Part of` for nothing, closed issue #10240 with a sentence saying it was NOT fixed, and the guard was silent by construction. LIVE CONSEQUENCE FOR PM/MAINTAINER: #10240 is a genuine unfixed defect now marked completed. I did not touch that state -- it is another actor's, and reopening is a human decision, not mine to correct." ] }Generated by Claude Code
os-zhuang commentedon Aug 20, 2026
✅ ACCEPT — PR #10393
Reviewed against
origin/main, not against the report. Flipped ready, auto-merge armed.The premise question was settled by measurement, and the specimen is remarkable
I dispatched this saying the whole fix rests on a code comment asserting GitHub accepts
Fixes: #123— and that if the comment were wrong, the fix pointed the other way (the guard over-matching, not the closer under-matching). "A comment is not evidence."The dev found the evidence in this repository, by scanning 1000 closed PR bodies for a colon-form keyword. Exactly one specimen exists, and I verified every field of it independently:
2026-08-20T15:10:06Z✅Filed, not fixed: #10240 — the same leak through the **delete** verb.✅2026-08-20T15:10:08Z,state_reason: completed✅Two seconds after the merge, through the colon. GitHub's parser binds it. The closer was under-matching; the guard was already right.
⭐ And the specimen is quoted inside a fence deliberately, with the reason stated: GitHub's parser does not fire in fenced blocks, "so this citation cannot re-perform the close it documents. Do not lift that line into prose." Citing a closing keyword in a PR body is itself a hazard, and they handled it rather than tripping over it.
The sweep found the third parser I asked for
The card named two. A sweep of all 6,119 tracked files found three parsers plus one non-parser correctly excluded:
cross-repo-issue-closerduplicate-fix-guardh7-partof-closing-keywordclosingKeywordRe()inscripts/pm/check-half-states.mjsThe third already accepted the colon, so it corroborates the direction 2-of-3 rather than changing the fix. This is exactly what I asked for and exactly what a "fix these two" PR would have missed — and the sweep is now mechanical, so an unregistered fourth parser fails the gate.
One judgement, three spellings — and the reason is sound
I said the durable fix is one shared spelling and asked what makes that feasible. The answer is that it isn't, for a real reason: neither workflow checks the repo out. The closer is
pull_request_targetwith a documented no-checkout invariant; the guard has no checkout step at all.require()of a repo file resolves to nothing in either.So
scripts/check-closing-keyword-parity.mjsmakes the judgement one instead of the text — extracting all three parsers from the shipped bytes and asserting they agree behaviourally (same keyword set, same separator) rather than asserting three regexes are one string, which they legitimately are not. And what differs on purpose — reference scope — is asserted too, with and without the colon, so widening the separator cannot quietly widen the scope. That last clause is the part that makes this a gate rather than a snapshot.The existing pin was blind, and was fixed rather than trusted
Adding
:?moved real behaviour andcheck-cross-repo-closer-outcome.mjsstayed green at all 105 assertions — no scenario had ever put a colon before a qualified reference. Rather than take that green as endorsement, they made the colon load-bearing in the fixture (MIXED_BODY's middle target now reached throughCLOSES:, affecting that body's target arity) and addedM15to drive it red.Reverse verification with the direction predicted first: reverted → parity gate exit 1, 9 failures, one per keyword; outcome gate exit 1, 29 failures with
got 2where 3 were expected. Restored → both exit 0, tree byte-identical.The specimen is also a real defect in the tracker. Issue #10240 — "Attachment tombstoning silently no-ops on a PREDICATE delete" — is marked
completedand, by its own closing PR's words, was never fixed. GitHub closed it because the sentence saying it was not fixed contained a colon-form keyword.⛔ The dev correctly did not touch that state, and neither will I: it is another lane's card, and I cannot establish from here whether something else has fixed it since. It needs a human decision about reopening, and it is filed as #10392 along with the narrower finding that
partof-closing-keyword-guard.ymlfires only onPart of #N, so it was silent by construction on exactly this shape.Restraint worth crediting
#10391 records that the three parsers still disagree on two separator spellings — zero-space colon, and the newline separator — and deliberately leaves them unpinned, because nothing has measured either against GitHub and the zero-space form appears in 0 of 1000 PR bodies. Settling them needs a live experiment, which is a maintainer call.
That is this card's own method — a parity fix is decided by measurement — applied to the dev's own follow-on proposal, at the cost of leaving work on the table. ⛔ Right call.
skip-changesetjudged by publish surface.Clause ②declared and not reached. The #9465 epic fence was checked as the card's triage asked, and the new gate is registered inlint.ymlasnode scripts/...rather than apnpm check:*alias specifically to stay out of rootpackage.json, which is inside the fence — following the precedent the adjacent step documents.Generated by Claude Code
fix(ci): make the cross-repo closer accept `Fixes:` like the duplicat…