Repository navigation
fix(pm): the queue guard refuses a same-head PASS record that names an open must-fix or should-fix - #33736
Conversation
…en must-fix or should-fix A Tier S entry now clears only on a clean PASS: one VERDICT line reading PASS, no FAIL spelled anywhere else on the comment (heading, lower-case or bulleted key, bare line), VERDICT lines above the heading counted, and no must-fix or should-fix the record names. One reader, contractReviewRecordReading beside contractReviewVerdictLines; a grade it cannot attribute fails closed. Co-Authored-By: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: PR #33736, card #33604. Read: the card body and its four comments (triage 6888140724, scope add 6890614201, claim 6891015523, os-dev-report 6891841860), the PR body and three-file list, the net diff against merge base Check-runs on the head when this was written: 52 runs; 26 success, 23 skipped, 0 failed, 3 still in progress ( ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentMeasured on the real records (would the record clear the new guard, read on its own head):
Held: the taught shapes (
No must-fix. S1, S2 and S3 each earn a delta review of their fix; S1 and S2 move the head, S3 does not. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T08:49Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
… graded findings, and reads every verdict-bearing FAIL Review 6891926185 on PR #33736: S1, a delta record's citation of the prior record, a named finding whose line says closed, and 'No new should-fix' read clean; S2, a heading-led key, a table cell, words before the key, a dash, a bare FAIL with a full stop and a second heading read FAIL, and a comma no longer carries a denial. Co-Authored-By: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: DELTA review from Check-runs on the head when this was written: 53 runs, all completed, NONE pending; 31 success, 22 skipped, 0 failed. Success include ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentPrior findings, by id:
New at this head:
Did the delta break anything else: no. The eight taught open shapes (bulleted, bold, numbered, quoted, No must-fix. S1 of this record earns a delta review of its fix and moves the head. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T09:24Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
…AIL spellings refuse Review 6892305129 on PR #33736, S1: a finding whose title opens with 'closed' or 'none' (closed in part, Closed PRs ..., none of ...) stays open; only closing emphasis, a full stop or semicolon, or the measured tails may follow the state word. N2: Verdict: FAILED, Verdict is FAIL, Verdict (delta): FAIL, a reversed table row, FAIL! and a late FAIL in a heading tail now read FAIL. Co-Authored-By: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb Contract reviewServed-tier: DELTA review from Below, GRADE stands for the hyphenated word of the middle grade, left unspelled in quoted lines so that this record reads clean under the reader it reviews. Check-runs on the head when this was written: 53 runs, all completed, NONE pending; 31 success, 22 skipped, 0 failed. Success include ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentPrior findings, by id:
The real-record measurement, each record read on its own head:
Does the allowance for a new sentence after a bold-title full stop re-open the original defect: no. The defect was a TITLE that merely opens with the state word; under the allowance the title must BE the state word and stop. What remains is N1. New at this head, all nits:
Did the delta break anything else: no. The eight taught open shapes (bulleted, bold, numbered, quoted, No must-fix, no should-fix. Four nits; nits alone end the round. Implemented-by: VERDICT: PASS Adopted by the seat 2026-11-15T10:00Z · isolated sub-agent at CONTRACT_REVIEW_TIER (served model verified by the seat) · Ruling-ref: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb, option A, tapped 2026-11-14T15:37Z |
|
domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb 席位核对Verdict: ACCEPT, seat lands (ungoverned, scripts/pm/)** · head
|
…-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line (objectstack-ai#33731) <!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XSd2LdkGDq79ihifNMPq7ZQ)_ domain:skills#1 · os-project-manager · session_01FEkQ5nz1BoBSawC99X5UqM Fixes objectstack-ai#33718 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:复审的后续事项改成每个 PR 一张清单卡(标题 `review follow-ups of PR #N`,后来的 delta 或追溯复审往里追加);p3 文案和文档小问题并进该区已有的 loose ends 卡;复审立卡前先按 PR 号和文件路径查重,同一发现就追加;代码 PR 欠的 skills/ADR 文本改成每个 PR 一张卡;分诊轮次记录每 3 小时报一次 24 小时的开卡、关卡、净变、合并 PR 数、open p1 和引契约复审的新卡数。 - 为什么改:维护者 2026-11-15 选了 B(「b」,记录 6891082225):复审默认做法不变,只改后续事项变成卡的形态,减少一个 PR 拆出多张卡和重复卡。 - 风险与回滚:只动三份 pm-dispatch 参考文件和行数棘轮的两行上限;「仅 nit 即终轮」的默认、每个缺陷一张卡的配额行、队列守卫都没动。回滚即还原本 PR。 - 先看:`.claude/skills/pm-dispatch/references/filing-gate.md` 新增的三行(配额行之后);`references/triage-duties.md` 第 16 行和第 74 行;`references/contract-review.md` 第 41-42 行和第 57 行。 - 两分钟验证:`node scripts/pm/check-skill-line-ratchet.mjs`,预期全部 ✓,filing-gate.md 82 行(上限 82)、triage-duties.md 104 行(上限 104)。 - 需要你做的:无,席位落地(Tier S)。 ## What changes All four items of the card's "What lands", under ruling B (record 6891082225, the maintainer's 「b」, 2026-11-15). The review default is unchanged. - **`references/filing-gate.md`, three lines after the quota line (one home for items 1 to 3).** - Item 1: review follow-ups (nits, accepted deviations, same-lane findings outside the diff) go into one card per reviewed PR, titled `review follow-ups of PR #N`, ticked item by item; a later review of the same PR appends and files nothing new. - Item 2: a p3 copy or docs nit goes into the area's `AREA loose ends` card, and one is opened only when none exists. - Item 3: before a review files, it searches open cards for `PR #N` and the file path, and appends a repeat of the same finding. - The quota line (one card per defect, objectstack-ai#25687) is untouched, and the exception says so in place (「① 缺陷仍各立」): a real gate ① defect found outside the diff keeps its own card and is not a tick item. The dedupe step merges only repeats of the same finding. - **`references/contract-review.md`, two in-place edits (0 lines).** The nit clause now sends nits to the PR's follow-up card (「转 PR 后续卡」), which points to the filing rule. The landed-head must-fix line says 「立卡」 instead of 「立新卡」, so a search hit on the same finding is appended rather than filed again. One character (「才」) moved from L42 to L41 to keep both lines within 120 bytes. - **`references/contract-review.md` L51, carried for objectstack-ai#33604 (PR objectstack-ai#33736), in place (0 lines):** the landing pre-check's ① now reads 「现 head 同形达档 PASS 在案,无前两级」, matching objectstack-ai#33736's queue guard, which refuses a same-head PASS that still lists an open must-fix or should-fix. To fit 120 bytes, 「过则 Tier S 入队、Tier H 等人批」 became 「过则 S 入队、H 等人批」 (the tier letters in the same sentence). - **`references/triage-duties.md`.** - L74, the 11-11 carve-out (ruling 6797014134), changed in place: skills/ADR text owed by a code PR is now one `domain:skills` card per PR, not one per finding. - L16, new: the round record states the 24h flow every 3 hours (issues created, closed, net; PRs merged; open p1; new cards citing a contract review). The card says the triage patrol prompt already carries this. No rule text did, and a patrol routine is deleted when its seat goes off duty (`seat-lifecycle.md`), so the rule text is the durable home. - **`scripts/pm/check-skill-line-ratchet.mjs`, two CEILINGS rows.** An ordinary ruled raise under the ratchet header's rule (ruling 6184799323): the ruling of record that orders this text is **6891082225**. Measured deltas: `filing-gate.md` **79 → 82 (+3)**, `triage-duties.md` **103 → 104 (+1)**. Each row moves by exactly its delta, with a comment that names the ruling. Neither file has a whole line that restates another file, so paying by deletion would have dropped a live rule. The dispatch order first said not to raise. The seat then ruled raise A for both files, citing this ruling. ## Tests No test file changes. The ratchet script's own self-test was run because the diff edits its CEILINGS map (results under Verification). ## Acceptance notes - **Review round 1 (at-tier PASS with S1):** S1 fixed at `afffd197`: filing-gate.md L35-36 now states that a ① defect keeps its own card, with no new line (「接受的偏差」 to 「接受偏差」, 「合一卡」 to 「一卡」, 「后轮复核」 to 「后轮」 paid the bytes). N2 (point contract-review.md L42 at filing-gate.md) was not taken: L41 and L42 both sit at 120 bytes, and the pointer would cost about 7 bytes of rule content. N3 and N4 were accepted as they are. The L51 carry for objectstack-ai#33604 landed at `51787fa6` and is part of the same delta review. - **Out of surface, carried elsewhere:** `references/landing-operations.md` L13 (a retro review's findings 「立新卡」 to 「发现照立卡门入卡」) is in PR objectstack-ai#33732's diff (objectstack-ai#33647 PR 2). objectstack-ai#33732 also edits `check-skill-line-ratchet.mjs` on other rows; whichever lands second merges `origin/main`. - **Reading chosen:** the per-PR checklist card carries what the card's item 1 lists (nits, accepted deviations, same-lane findings outside the diff). A must-fix on a landed head stays one card per finding, graded by finding (contract-review.md L57), and is deduped by the same search. That keeps item 3's 「the per-defect rule still holds for real defects」. - **Not added:** the card mentions spec wording next to skills/ADR in the carve-out. The 11-11 ruling covers ADR and skills text only, so L74 names those two. Adding spec would widen that ruling. - **Execution-time carve-out untouched:** `execution-duties.md` L110 (an implementation card's file surface excludes ADR/skills paths, 「各立 `domain:skills` 卡」) is the dispatch-time split, not a review follow-up, and stays as is. - **No gate or recogniser checks the follow-up filing shape:** `grep` over `scripts/` and `.github/` for 「转后续卡」, 「立新卡」, 「折清单卡」, 「携带注记」, `follow-ups of PR` and `loose ends` finds no hit, so no recogniser or lint pins the old text and no gate was added. - Serial note: objectstack-ai#33716 (contract-review.md) waits for this PR. ## Verification On head `afffd197` (the full derived list; `51787fa6` changes only contract-review.md L51, and its re-run subset is listed at the end of this section) (branch `claude/project-thread-7lnz38`, merge base `origin/main` `48e69596`), each exit code captured before any pipe: - `node scripts/pm/check-skill-line-ratchet.mjs`: exit 0. `filing-gate.md` 82 lines (ceiling 82), `triage-duties.md` 104 (ceiling 104), `contract-review.md` 63 (ceiling 63); no line over 120 bytes. - `node scripts/pm/check-skill-line-ratchet.mjs --self-test`: exit 0, 「164 cases pass」. - `node scripts/pm/dispatch-gates.mjs --tier`: **no path-derived mandate** (the surface hits none of the 4 declared globs); 29 changed lines, under the 3000 threshold. - `node scripts/pm/check-governed-merges.mjs --branch HEAD`: **GOVERNED, Tier S** (`.claude/**` x3; `scripts/pm/check-skill-line-ratchet.mjs` not on the register). The owning seat lands it after an at-tier contract review PASS on the current head. - Derived gates (`node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack`, 40 families, after `pnpm --filter "@objectstack/lint..." build` under the lock, exit 0): all 40 exit 0. `--ran`: 「40 derived famil(ies) accounted for — 40 run, 0 NOT-MEASURED」. <details><summary>Derived gate run (40 of 40 exit 0)</summary> ```text node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs :: exit 0 node scripts/check-declaration-mirrors.mjs --self-test :: exit 0 node scripts/check-self-test-wired.mjs :: exit 0 node scripts/check-self-test-wired.mjs --self-test :: exit 0 node scripts/check-self-test-workflow-commands.mjs :: exit 0 node scripts/check-self-test-workflow-commands.mjs --self-test :: exit 0 node scripts/check-whole-set-label-write.mjs :: exit 0 node scripts/check-whole-set-label-write.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0 node scripts/pm/check-harness-current.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:agent-test-spelling :: exit 0 pnpm check:bash32-floor :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cli-command-ids :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:entry-guard :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:parse-guard :: exit 0 pnpm check:pm-dispatch-gates :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-half-states :: exit 0 pnpm check:pm-label-write :: exit 0 pnpm check:pm-record-recognisers :: exit 0 pnpm check:pm-skill-id-lint :: exit 0 pnpm check:pm-skill-ratchet :: exit 0 pnpm check:pnpm-filter-targets :: exit 0 pnpm check:pnpm-flag-spellings :: exit 0 pnpm check:ratchet-remedy-authority :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:scripts-symbol-anchors :: exit 0 pnpm check:skill-frame-sync :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` </details> Re-run on `51787fa6` (contract-review.md L51 only; ratchet still 63/63, no line over 120 bytes), all exit 0: ```text pnpm check:pm-skill-ratchet :: exit 0 node scripts/pm/check-skill-line-ratchet.mjs --self-test :: exit 0 pnpm check:pm-record-recognisers :: exit 0 pnpm check:pm-skill-id-lint :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-half-states :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:skill-frame-sync :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 ``` Label: `skip-changeset` (only `.claude/**` and `scripts/pm/**` change; neither ships). <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5nz1BoBSawC99X5UqM --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…s of PR objectstack-ai#33736 (objectstack-ai#34054) <!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9D6Ata4zFXZo4ihyDbwSe9K)_ Fixes objectstack-ai#33770 Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:合并队列守卫读复审记录用的那一个读取器(`contractReviewRecordReading`),把 PR objectstack-ai#33736 末轮复审留下的四个 nit 全部收口:自相矛盾的“已关闭”发现、标题折行、几种漏读的 FAIL 写法、几种被误判为 FAIL 的干净文字。 - 为什么改:守卫靠这个读取器判断“同 head 的 PASS 记录是否干净”;前三项是放行方向的漏洞(本该拒的记录会被放行),第四项是误拒(干净记录要重贴)。 - 风险与回滚:只动 `scripts/pm/` 两个文件,不发布任何包;18 条真实复审记录新旧读法逐条一致(9 放行、9 拒绝)。回滚即还原本 PR。 - 先看:`scripts/pm/check-half-states.mjs` 中 `contractReviewFindingContinues` 与 `CONTRACT_REVIEW_GRADE_NAMED_STATE`(N1/N2 的结构性收紧),其次 `CONTRACT_REVIEW_FAIL_KEYED` / `CONTRACT_REVIEW_FAIL_CELL` 与显式 PASS 行也过 keyed 读法的那一处(N3/N4 与第 2 轮 S1),最后守卫自测里改动的一行。 - 两分钟验证:`node scripts/pm/check-half-states.mjs --self-test`,预期最后一行 `5287 cases pass`,其中带 `objectstack-ai#33770` 的 9 行全绿。 - 需要你做的:无,席位落地。 ## What changes One reader, `contractReviewRecordReading` in `scripts/pm/check-half-states.mjs` (the queue guard and `record-recognisers.mjs` keep reading through that one export; no second parser). Each of the card's four items, from review 6892689104: 1. **N1 — a self-contradicting finding no longer clears.** The round-3 allowance (a full stop closing a bold title, then a new sentence on the same line) is removed from `CONTRACT_REVIEW_GRADE_NAMED_STATE`, and with it the `__` title, the tab and the unpaired closing mark it also took. A grade-carrying finding now reads closed only when the state word ends the line AND the finding ends there: `contractReviewFindingContinues` looks at the next line, and a body under the finding (indented, a lazy continuation, a quoted continuation, a nested bullet) keeps it OPEN. Without that second half the same contradiction would only move to the next line. A finding with a body closes by id alone (`S1: closed.`), which is what `BRIEF_GRADE_LINES` already teaches. 2. **N2 — a title wrapped right after the state word stays open**, bold or plain: the next line is its continuation, read by the same `contractReviewFindingContinues`. 3. **N3 — the FAIL spellings named on the card now read FAIL** beside one PASS line: a FAIL cell under a header row's verdict column (the only piece of table state, `tableVerdictColumn`, reset when the table ends); `Verdict: PASS → FAIL` (also `->`, `⇒`, `⟶`); `Verdict: ~~PASS~~ FAIL`; `Verdict was FAIL`; `verdict is: FAIL`; `Verdict -FAIL`; a mark before the cell's word (`| Verdict | ❌ FAIL |`); key and value in one cell (`| Verdict: FAIL |`); title or lower case in a heading tail (`— Fail`, `— fail`). 4. **N4 — the clean text named on the card reads clean.** The fail-safe idiom is not a verdict word: as a value only hyphenated or as `fails closed` (narrowed in round 2, item 5), and in a heading tail any `fail`/`fails`/`failed` + `closed` when it is not the tail's verdict word (`PASS, prior FAIL closed`). A bare `FAILED` line is no longer a spelling (a bare `FAIL` still is). Fail-closed side kept: `Verdict: FAIL closed`, a `| FAIL closed |` cell and a heading tail opening `FAIL closed` still read FAIL (pinned). 5. **Round 2 (review 6898558527 of this PR, S1, S2 and the nit).** - S1: the explicit reader stops at its first word, so the template's own all-caps line `**VERDICT: PASS → FAIL**` (and the ASCII arrow) read as one clean PASS; round 1's arrow reading covered only the keyed spellings, which never saw that line. An explicit PASS line is now ALSO read by `CONTRACT_REVIEW_FAIL_KEYED`, so it states PASS and a FAIL spelling and never clears. Pinned in all-caps, ASCII, bare and quoted forms. - S2: round 1 read `must-fix: none` directly over `should-fix: none` (no bullets) as OPEN, because a next line led by a grade with no id did not end the finding. `contractReviewFindingContinues` now ends a finding at any line `CONTRACT_REVIEW_GRADE_NAMED` reads as a finding lead, beside the id-led one; both lines clear, as at base. Pinned with a control: a body under `must-fix: none` still keeps it open. - Nit: as a verdict VALUE (the key's, the cell's), only the prose idiom is excused now — hyphenated (`fail-closed`, `fails-closed`, `failed-closed`) or `fails closed` with one space. `Verdict: FAILED closed`, `Verdict: FAILED - closed` and `Verdict: FAIL - closed` read FAIL (pinned). ## Why Review 6892689104 (PASS on PR objectstack-ai#33736's head `38cc292a`, nits only) left N1-N4; ruling B on objectstack-ai#33718 collects them on this one checklist card. N1-N3 are the open direction of a gate (a record that contradicts itself, or states FAIL in a form the reader missed, clears beside its one PASS line); N4 is the closed direction (a repost cures it). ## Tests - New rows in the H43 battery's objectstack-ai#33604 block of `check-half-states.mjs --self-test`, nine of them: N1 (nine spellings that must refuse), N2 (two), an N1/N2 control (seven closed findings that end and must clear), N3 (twelve spellings that must read FAIL), N4 (six clean lines that must not), an N4 control (three verdict values that keep reading FAIL, two that never did); round 2: r2 S1 (four explicit PASS-then-FAIL lines, two controls), r2 S2 (three grade-led next lines that end the finding, one body that does not), r2 nit (three values that read FAIL, two idioms that do not). - **Forced test edits, named:** - `check-half-states.mjs`, the `objectstack-ai#33604 r3 (review 6892305129)` row: its fifth cell, `- **S1 (should-fix): closed.** Every knock names a key.`, now reads `S1:should-fix|0` (OPEN) instead of clean. That cell pinned the allowance N1 removes; the row's title says so. - `check-governed-queue-guard.mjs`, self-test only: the same line leaves the `stateEnds` control (`objectstack-ai#33604-r3-CONTROL-closed-that-ends-the-finding-CLEARS`, renamed from `…-or-the-bold-title-CLEARS`) and a new assertion, `⛔ objectstack-ai#33770-N1-a-closed-bold-title-with-a-body-after-it-stays-OPEN-and-REFUSES`, pins it and `… closed.** Reopened by this delta.` as refusals through the guard. This is outside the claim's file surface; it is the one pin the guard holds on the removed allowance, so it could not be avoided. Nothing else in that file changes. - Self-tests at head `e9e17977`: `check-half-states` 5287 cases pass (5278 at base), `check-governed-queue-guard` 535 pass (534 at base), `record-recognisers` 399 pass (this PR does not touch it; `main`'s own change to it moved the count). <details><summary>Ablations (five, each turned only its own new row red; restored to the HEAD blob, `git diff HEAD` empty)</summary> Both through `node scripts/ablation-replace.mjs --delete`, at commit `1ea9e6bf`, blob `f06d1258`: - Anchor `contractReviewFindingContinues(line, lines[at + 1]) ? undefined : ` (x1 → x0): `check-half-states --self-test` exit 1, `2 of 5284 case(s) failed` — `objectstack-ai#33770 N1` (the next-line cells read clean) and `objectstack-ai#33770 N2` (`|0,|0`). Restore: blob after = blob at HEAD = `f06d1258`. - Anchor ` || underVerdictColumn` (x1 → x0): exit 1, `1 of 5284 case(s) failed` — `objectstack-ai#33770 N3` (the header-row column cell reads `0`). Restore proven the same way. Round 2, at commit `af85cdbe`, blob `43d9d99f`, each restored to that blob with `git diff HEAD` empty: - `--delete` of the line that reads an explicit PASS line with the keyed reader (x1 → x0): `1 of 5287 case(s) failed` — `objectstack-ai#33770 r2 S1`. - `--delete` of ` || CONTRACT_REVIEW_GRADE_NAMED.test(s)` (x1 → x0): `1 of 5287 case(s) failed` — `objectstack-ai#33770 r2 S2`. - `--replacement` of the FAILED value alternative back to round 1's `[ \t-]+closed` lookahead (anchor x1 → x0, replacement x0 → x1): `1 of 5287 case(s) failed` — `objectstack-ai#33770 r2 nit` (got `0,0,1,0,0`). </details> <details><summary>Real records (18), read by the base reader and by this head</summary> The 17 records review 6892689104 measured plus that record itself, fetched to scratch and read by `contractReviewRecordReading` at base `0ff3b146` and at this head (re-measured after round 2): every one lands on the same side with the same counts. CLEAR (9): 6890432656, 6890532571, 6891083453, 6891576194, 6891542450, 6891987837, 6892490875, 6892612604, 6892689104. REFUSED (9): 6890622635, 6890939010, 6890932729, 6891274033, 6891667603, 6891926185, 6892058186, 6892305129, 6892622399. No real record closes a finding with its grade word and a body, so the N1/N2 narrowing moves none of them. </details> ## Acceptance notes - New refusals of clean text, on the closed side and by design: a grade-carrying closed finding followed on its line or the next by any body, including a harmless one (`- **S1 (should-fix): closed.** Every knock names a key.`; `S1 (should-fix): closed here.` directly followed, with no blank line, by a plain paragraph line such as `No must-fix.`). The remedy is the taught form, closing by id alone, or a blank line. None of the 18 real records does either. - Lower-case `fail` anywhere in a heading's tail now reads FAIL (N3 asked for title and lower case); prose in a heading tail that uses the word for something else refuses, `fail-open` included. No real record has a heading tail. - On a keyed verdict line, an arrow anywhere before a FAIL word now reads FAIL, even late in prose after a PASS value (`Verdict: PASS (an older read -> FAIL)`); and a struck FAIL value reads FAIL (`Verdict: ~~FAIL~~ PASS`). Both refuse clean text on the closed side; a repost cures it. - As a value, `fails closed` with one space stays excused as the prose idiom, so `Verdict: FAILS closed` reads clean; every other spaced form reads FAIL. - Still outside the reader, unchanged by this PR: a finding kept open by id alone with no grade word (accepted as N2 of record 6891926185), and anything spelled across a table whose verdict column header is not the first row of the table. ## Verification - Head `e9e17977`: round-1 fix `1ea9e6bf`, round-2 fix `af85cdbe`, `origin/main` `529ed7d9` merged in (the derivation warned STALE TREE before that merge; no `main` commit since the base touches either file of this PR). - `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` on that head: 48 commands, each run, each `exit 0`; `--ran` reconciliation: `48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED`. The derivation includes `node scripts/pm/check-governed-queue-guard.mjs --self-test`; `node scripts/pm/record-recognisers.mjs --self-test` was run as well (exit 0, 399 cases). - `skip-changeset`: `scripts/pm/**` only, nothing published. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (not touched) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` is not run locally, CI owns that run. - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing: `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (not touched) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. - [x] The *Before Submitting* list in CONTRIBUTING.md is done. <!-- signed: domain:skills#1 · os-steve · session_01ADHkmQopcLwxooyvT2Kxvu --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Requested by Leehom · project thread
Fixes #33604
domain:skills#1 · os-project-manager · session_01FEkQ5pJkb8Rbcrj6yEXfiA
Clause-②: no
Metadata-protocol: none
维护者速读
VERDICT:行也计数。同一 head 上后一条把它们关掉的 delta 记录才放行(引用前一条记录的等级、写明 closed 的不算未结)。规则文字的一句(contract-review.md ①)由 pm-dispatch: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line #33731 带,本 PR 不碰该文件。S1 (should-fix)或No must-fix, no should-fix.的写法落记录,简报模板已同步写明。回滚即 revert。scripts/pm/check-half-states.mjs的contractReviewRecordReading(唯一读法);scripts/pm/check-governed-queue-guard.mjs的recordPassVerdict;record-recognisers.mjs的BRIEF_GRADE_LINES(教复核者的写法)。node scripts/pm/check-governed-queue-guard.mjs --self-test && node scripts/pm/check-half-states.mjs --self-test && node scripts/pm/record-recognisers.mjs --self-test,预期三个全绿(526 / 5268 / 389 例)。What changes
contractReviewRecordReading(scripts/pm/check-half-states.mjs, besidecontractReviewVerdictLines, on the same regexes; ⛔ no second parser). For a comment with a## Contract reviewheading it returns:verdicts: every explicitVERDICT:line's word, over the WHOLE comment (N3: lines above the heading count).contractReviewVerdictLinesis now a view of this.failSpellings: lines that read FAIL outside the explicit form (N2), in every verdict-bearing shape measured: a caps FAIL anywhere in any## Contract reviewheading's tail; averdictkey in any case under a heading mark, quote, bullet or emphasis, after up to two words (Overall verdict:), with a parenthetical (Verdict (delta):), with:, a dash,=oris, reading FAIL, FAILED or FAILS; a table row with a verdict cell and a FAIL cell in either order; a bareFAILline followed only by a separator, a full stop or!. Prose that merely mentions FAIL (- Newest FAIL over an older PASS,FAIL, none or two refuse) is not one.findings: per mention of the hyphenated grade word:open(named with its grade at the line's lead:**S1 (should-fix) — …**,- **S2 (should-fix) — …**,M1 (must-fix, …),- should-fix: …);closed(a named finding whose line goes on to say closed and ENDS there: only closing emphasis,.,;oron this head/at this head/heremay follow, and a full stop that closes the bold title may lead a new sentence:- **S1 (should-fix): closed.**);none(must-fix: none, same terms); a title that merely opens with either word (closed in part,Closed PRs …,none of …) stays OPEN;cited(inside(record ID: …), the measured delta preamble); negated (No must-fix, no should-fix.,No new should-fix.,Neither must-fix nor should-fix.,0 must-fix, a second grade carried byoror/; after a comma orandthe second grade needs its ownno); orunreadable(any other mention, e.g.Two should-fix, both …orNo must-fix, should-fix S1 and S2 below.).recordPassVerdict, every Tier S leg including the low-risk arm): after the existing one-PASS-line rule, a record also refuses (not-pass, naming the comment id) when it carries a FAIL spelling, names an open must-fix or should-fix, has an unattributable grade, or its reading lacks the grade fields (fail closed). The recogniser loader now requiresreading(re-exported byrecord-recognisers.mjs) in place ofverdictLines. A later same-head delta record that cites the prior record's grades, names what it closes (S1: closed,S1 (should-fix): closed) and raises nothing new clears, because the locator already reads the newest same-head record. The unattributable refusal names the shapes the reader takes; it never asks for a sentence the record may already carry.record-recognisers.mjsBRIEF_GRADE_LINES, +3 lines): spell a findingS1 (should-fix) — …, a clean roundNo must-fix, no should-fix., and close by id alone.Acceptance notes
S1 (should-fix): closed in part, still open for X,**S2 (should-fix) — Closed PRs are still read as merged…**,- **S2 (should-fix) — none of the three ablations ran…**,S1 (should-fix) — closed on the prior head, reopened by this deltaand- should-fix: none of S1, S2 is fixedcleared; the state word must now end the finding, and each of those six refuses again (pinned, with a control thatclosed here., a closed bold title followed by a sentence, andclosed;still clear). N2 (cheap ones taken):Verdict: FAILED,Verdict is FAIL,Verdict (delta): FAIL,| FAIL | Verdict |,FAIL!and a late FAIL in a heading tail (— PASS withdrawn, FAIL) now refuse. Not taken: a verdict column carried by a header row (needs table state). Accepted nits N1, N3, N4 unchanged; N3's- Leg verdict: fail-closed …refusal stands (fail closed).(record 6891274033: PASS, should-fix S3, nits N7 and N8); citations, named-and-closed lines andNo new should-fix.now read clean, pinned on the measured preamble. S2:### VERDICT: FAIL,## Verdict: FAIL,| Verdict | FAIL |,Overall verdict: FAIL,Verdict — FAIL,FAIL.and**FAIL.**now refuse beside one PASS line, andNo must-fix, should-fix S1 and S2 below.is unreadable (fail closed), one pin each. Nits taken: N1 (Neither … nor,0 must-fix,must-fix: none,- should-fix: noneread clean), N3 (every heading's tail is read). Not taken: N2 (the grade is read off the hyphenated word only; the brief spells it and every measured record uses it), N4 (a prose bullet opening- FAIL — …refuses; fail closed, a repost cures it).- **S1: closed.**, no grade word), but it raises S3 (should-fix, the seat's, no head change) on the PR body → refused. If pm-dispatch: charter the merge-queue seat (queue#N) and register its seat word #33688 is still queued when this lands, it needs a later same-head record closing S3.No must-fix. Two should-fix, both …(unreadable) → refused; delta 6891274033 raises S3 → refused; delta 6891542450 (cites the prior grades, closes S3,No must-fix. No should-fix.) → clears.contract-review.mdto pm/skills: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, and a dedupe step for retro reviews #33718 (PR pm-dispatch: one checklist card per reviewed PR for its review follow-ups, p3 copy nits into area loose-ends cards, a dedupe step, and the 24h flow line #33731) mid-round, so this PR leaves it untouched. The sentence the rule owes, measured to fit line 51 in place (63/63 lines, 119/120 bytes, paid by dropping 「两条」 and the second 「Tier」):- 请审/求批与落地前检,过则 Tier S 入队、H 等人批:① 现 head 同形达档 PASS 在案,无前两级。(前两级 = must-fix/should-fix, the term line 45 already uses).check-skill-line-ratchetwas green with it on an earlier head (148b0ce6, dropped).the should-fix rule says …) is refused as unreadable. The brief now names the two shapes the reader accepts; a seat can always repost a clean record.contractReviewVerdictOf, first match under the heading) andcheck-owed-reviews.mjsstill read no grades; that is follow-up F1 of record 6890532571, not this card.git diff HEADempty): the state-word tail reverted to(closed|none)\b→ the r3 titled-open row red (all six CLEARED); the heading-tail caps FAIL deleted → the r3 N2 row red.git diff HEADempty): citation off → the measured-delta row red; closed/none state off → 2 rows red; table-cell regex off → the S2 FAIL-forms row red; comma carrying the denial → the S2 comma row red.scripts/ablation-replace.mjs, run, restored;git diff HEADempty after each): open-grade branch off → 3 pm: a same-head PASS record that still lists an open should-fix clears the queue guard #33604 rows red; FAIL-spelling branch off → 2 N2 rows red; unattributable branch off → 1 row red; reading below the heading only → the N3 row red.Verification
dispatch-gates --tier: no path-derived model mandate (floor sonnet, default opus); built on the claim's default.check-governed-merges --branch claude/project-thread-78jrbs: NOT governed (0 of 3 paths on the register;scripts/pm/**is not a row); 190 changed lines, under 3000. Ordinary queue landing.check-governed-queue-guard --self-test526 pass;check-half-states --self-test5268 pass (11 new H43 rows);record-recognisers --self-test389 pass (1 new cross-tool pin: the brief's shapes are the guard's).Derived gate list on head 38cc292: 49 derived, 49 run green, 0 NOT MEASURED
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackon head 38cc292 (round 3, after mergingorigin/mainagain at 34c6eec; main's nine new commits touch none of the three files), each exit captured before any pipe;--ranreconciliation: "49 derived famil(ies) accounted for — 49 run, 0 NOT-MEASURED".check:doc-formula-expressionsran afterpnpm --filter "@objectstack/lint..." buildunder the verify lock. The twocheck-closing-keyword-parityruns overlapped a five-second ablation window of the reader, a file they do not read; both were re-run on the restored tree, exit 0.contract-review.mdline, since dropped) was stopped at 41 of 55, all green.Generated by Claude Code