Repository navigation
Description
Filed unassigned by the domain:skills os-dev seat while landing #10392 (H21, the negation-window row). Recording, not claiming — it is a different defect class from that card's, and it surfaced as a by-product of that card's corpus measurement.
Dedup-searched over open and closed issues (closing keyword commit message, guard reads only PR body, commit message surface): the nine related cards (#8293, #7949, #8476, #9755, #9711, #9595, #9575) are all PR-body-scoped or about the cross-repo closer. No card covers this surface.
The gap
Every closing-keyword guard in this repo reads the pull request body:
h7PartOfWithClosingKeywordand the newh21NegatedClosingKeywordinscripts/pm/check-half-states.mjsare handed a PR object and readpr.body.scripts/check-partof-closing-keyword.mjs— the blocking gate — is handedPR_BODYby.github/workflows/partof-closing-keyword-guard.yml.
GitHub's closing-keyword parser acts on two surfaces, not one: the PR body, and the commit messages of commits that land on the default branch. This repo squash-merges, so every PR contributes exactly one commit message to main, and that message is authored separately from the body and is never checked by anything.
Two consequences that do not exist on the body surface:
- A body-clean PR can still close a card, if the closing keyword lives only in the commit message. The blocking gate goes green and nothing else looks.
- Backticks do not help. A commit message is not markdown, so the
stripMarkdownCodeprotection that makes "quote the keyword to neutralise it" correct advice for bodies is false for commit messages. An author who has internalised the body-surface remedy will apply it here and it will not work.
Measured
Over all 1,418 squash commit messages on main (2026-08-11 … 2026-08-21), read with the repo's own extractors:
- 228 closing-keyword+
#Nbindings across 197 commit messages. - 6 commit messages carry
Part of #Nand a closing keyword bound to that same#N— the exact contradiction shapeH7exists to report, on a surfaceH7cannot see:
0c24898c0 fix(metadata-protocol): judge a package publish against the batch's own pending declarations
d7283250d fix(metadata-protocol): per-item publish re-binds runtime consumers and finds env-wide drafts
af2a989be fix(pm): dispatch-gates derives its own change set from the merge base
3db37957c fix(cloud-connection): move install-local outside the cloud ternary in README example
7e06f51ee fix(example-crm): bind sales positions to crm_sales_user permission set
30536e37c fix(runtime): actionLooksDestructive classifies on declared semantics only
main unguarded, not six adjudicated incidents. Whether any specific card was closed wrongly depends on what its PR body separately declared and on whether a human closed it deliberately; that adjudication is deliberately not attempted here, and no state was touched. The generalisable fact is that all six passed every closing-keyword guard this repo has, because none of those guards reads this surface.
The strongest evidence is that it happened to this seat, on this card
While writing the commit message for the #10392 PR — a commit whose entire subject is this defect class — the first draft quoted the specimen sentence verbatim. That message bound a past-tense closing keyword to card #10240, which had just been reopened by triage after being lost to this same class. Merging it would have closed that card a second time.
Nothing in the repo would have caught it. It was caught only because that PR happened to be building a predicate and the author ran the draft message through it by hand. An author landing an ordinary change has no such step.
Suggested shape (not costed — this is an observation)
The cheap version is a CI step that runs the existing predicates over the commit messages a PR contributes, rather than only over its body — the same functions, a different input, no new grammar. Worth deciding first:
- Which messages. For a squash-merge repo the message that lands is composed at merge time and may not equal any commit on the branch, so checking branch commits is a proxy; checking the merge-queue message would be exact but arrives late.
- The remedy text must differ from the body-surface remedy. "Put it in backticks" is correct for bodies and wrong here; the only fix on this surface is to reword so no keyword sits adjacent to a number. A guard that hands authors the body remedy on this surface would be actively misleading.
- Whether this belongs to the blocking gate or to the report-only patrol. The A "filed, not fixed" sentence silently closed a real card — partof-closing-keyword-guard's trigger is narrower than its own rationale #10392 numbers argue for measuring the commit-message surface's false-positive rate on its own before any blocking posture, exactly as that card required for the body surface.
Ref: #10392 (the negation-window row, where this was found) · #8293 (the body-surface mechanism, measured) · #7949 · #8476 (the body-surface blocking promotion) · #9755
Generated by Claude Code
Activity
os-zhuang commentedon Aug 22, 2026
First-touch grading, concentrated round (skills seat, session
session_01MsbKEG4LtERSLaDrbehM3e):finding→pm:queue. Scope, deliberately measure-first (the same posture the negation-window row took): a REPORT-ONLY patrol row running the existing extractors over squash commit messages, measuring the false-positive rate on its own surface before any blocking posture; the remedy text must be surface-correct (reword — backticks do not neutralise a commit message). Deliberately NOT folded into the H8 family: different surface, different maturation discipline. Blocking promotion, if ever, is a later card on its own baseline.Generated by Claude Code
os-zhuang commentedon Aug 22, 2026
Claim: session_01MsbKEG4LtERSLaDrbehM3e branch=claude/issue-10942-commit-message-surface
skills 车道执行席认领,单卡派发。裁定重读完毕:定级评论(2026-08-22 15:34)即执行边界——report-only 巡逻行(新 H 行入 check-half-states.mjs,复用既有提取器读 squash 提交信息面)、先量本面误报率、⛔ 不做 blocking、补救文案必须面正确(改写措辞而非反引号——提交信息不是 markdown)。前提仍然成立:H21/#11107 落地后各守卫仍只读 PR body。热文件 check-half-states.mjs 已随 #11107 合入空闲,基于最新 main 动笔。
Generated by Claude Code
feat(pm): report the closing-keyword contradiction on the squash-comm…
os-zhuang commentedon Aug 22, 2026
os-dev-report
{ "issue": 10942, "status": "done", "branch": "claude/issue-10942-commit-message-surface", "pr": "https://github.com/objectstack-ai/objectstack/pull/11117", "premise_still_valid": true, "commits": ["827971d1b feat(pm): report the closing-keyword contradiction on the squash-commit surface (H23)"], "gates": [ "dispatch-gates re-derived with NO hand-fed paths at 827971d1b (its own no-path mode, off merge base aea1e6467) -> 10 families, all run, all exit 0", "check:pm-half-states -> 'check-half-states self-test: 879 cases pass.' (was 838; +41)", "check:partof-closing-keyword -> 'check-partof-closing-keyword self-test: 28 cases pass.'", "check-closing-keyword-parity -> '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 6438 tracked file(s), all registered).'", "check:entry-guard -> 'check:entry-guard: 136 scripts/ file(s) - every entry guard goes through invoked-as.mjs; 94 export bindings, 84 of them inert on import'", "check:parse-guard -> 'check:parse-guard: 135 scripts/ file(s) - every TypeScript parse goes through ts-parse.mjs.'", "check:cross-package-test-inputs -> 'OK: 13 package(s) read outside themselves, all declared, and turbo.json hashes every declared glob.' (self-test: 'All 104 self-test cases passed.')", "check-ci-filter-parity -> 'OK: all 86 declared cross-package glob(s) (74 unique) are covered by core or crosspkg, every crosspkg entry still covers one, and the test job if: still names both filters.'", "exit codes captured BEFORE any pipe (cmd > file 2>&1; EXIT=$?), never off a tail", "lint: DECLARED NARROWING, not a skipped run. (1) population from ESLint's own config - isPathIgnored('scripts/pm/check-half-states.mjs') = false; (2) count from --format json - 1 file linted, 0 errors, 0 warnings, exit 0; (3) invariance - calculateConfigForFile reports parserOptions.project = null and eslint.config.mjs states it never enables type-aware linting for ANY file, so a one-file diff cannot move an untouched file's verdict", "control-byte scan: grep -naP over the changed file -> no match, exit 1" ], "tests": "All at 827971d1b, working tree clean. (1) Self-test 879 cases pass, +41 new: the six measured specimen shapes, the surface asymmetry in BOTH directions, the remedy-text pins, the PR-correlation property, the clean directions, and the summary-line coverage clause. (2) Corpus validation - the SHIPPED predicate driven over the real 1,546-message corpus in the REST row shape the sweep passes in: fires on exactly the six specimens, correlates each to the right PR, reports '270 binding(s) across 234 message(s)'. Corpus window pinned as full ISO instants after discovering that git log --since with a bare date is an approxidate that fills time-of-day from now - two runs twelve minutes apart returned 1,443 and 1,441 messages for what read as one window; that hazard is now documented in the docblock. (3) ABLATION, two legs, both predicted before running, mutation proved ON DISK by grep -cF marker counts (deleted marker 1->0, injected marker 0->1 on each leg), restore under trap EXIT INT TERM. No build/dist step is involved - this file is run directly as a script, not resolved through a package's exports, so there is no dist copy that could hold a stale mutation; the on-disk proof is the whole proof. LEG A (drop the surface asymmetry, read the commit surface as markdown): predicted the two asymmetry cases red and the six specimen cases GREEN; observed exactly that, 2 red of 879. That direction is the measured point - the six specimens do not distinguish the two readings (270 bindings and 6 findings either way), so the asymmetry cases are the only thing pinning the surface distinction. LEG B (copy H7's body-surface remedy tail into H23's sentence): predicted the three remedy pins red; observed exactly that, 3 red of 879. RESTORE PROOF: 0 ablation markers on disk, git status --porcelain empty on the file, self-test back to 879 green.", "deviations": [], "open_questions": [], "out_of_scope_findings": [ "filed as #11118: H8's merged-PR window is justified by a ~18 merges/day figure in listRecentlyMergedPullRequests' docblock; the measured rate is ~132/day (1,546 first-parent commits in 11.7 days, 1,545 of them carrying a squash marker), so two pages cover ~1.5 days rather than the ~11 the sentence implies - the row's stated boundary is ~7x tighter than its own justification. No labels; PM triage.", "filed as #11119 (finding): per-commit card trailers are concatenated by the squash, so a branch that mixes a closing trailer and a Part-of trailer lands a self-contradictory message even though no single commit was contradictory - 6 of 6 measured specimens share exactly that generator, and neither AGENTS.md nor os-dev.md says trailers do not stay per-commit. #10942 delivers the detector; this is the authoring half." ], "summary": "Added H23 to scripts/pm/check-half-states.mjs: a REPORT-ONLY patrol row that runs the repo's existing extractors over the squash commit messages recently landed on the default branch and reports the H7 contradiction shape (Part of #N plus a closing keyword bound to the same #N) on a surface no closing-keyword reader in this repo touched. The extractors gained one option - markdown: false - selecting the SURFACE rather than a strictness: a commit message is not markdown, so a quoted keyword binds there exactly like one in prose, and the default is unchanged so every pre-existing caller keeps byte-identical output. The finding sentence names the commit sha, the bound card and the correlated PR, and prescribes REWORDING rather than H7's backtick remedy, which is false on this surface; the self-test pins that difference in both directions because the realistic regression is someone copying H7's tail across. The summary line now carries H23's own coverage numbers (messages read, bindings, messages carrying bindings) with absent counts degrading to 0. Live mode reads a bounded three-page REST window of the default branch rather than git log, because the patrol runner checks out with actions/checkout at the default fetch-depth of 1 - git log there would read one message and report a clean surface forever. Measured stage-1 over 1,546 first-parent messages (pinned window 2026-08-11T00:00Z to 2026-08-22T18:00Z): 270 bindings across 234 messages, 6 carrying the contradiction, reproducing the card's six specimens exactly; all six are squash assemblies of a branch that mixed the two trailer spellings. H21's negation window was deliberately NOT ported - it flags 0 of the 270 on this surface - and the asymmetry's honest accounting is reported rather than oversold: raw and stripped readings agree exactly on this corpus (270 either way), and it is not clean for lack of opportunity (1,064 messages carry markdown code, 487 with a #N inside it, 361 with a keyword word inside it, 0 with the two adjacent). Report-only, no blocking gate, no workflow change. NOTE: the shared checkout's history was deepened via git fetch --deepen to reach the measurement window (it had arrived shallow at 375 commits); that is additive shared state and leaves dispatch-gates better off, not worse. CI not waited on, per the draft-PR contract." }Generated by Claude Code
feat(pm): report the closing-keyword contradiction on the squash-comm…