Skip to content

fix(pm): the queue guard refuses a same-head PASS record that names an open must-fix or should-fix - #33736

Merged
objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-78jrbs
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 6 commits into
mainfrom
claude/project-thread-78jrbs

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Leehom · project thread

Fixes #33604

domain:skills#1 · os-project-manager · session_01FEkQ5pJkb8Rbcrj6yEXfiA

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:合并队列守卫对 Tier S 的复核记录多读三件事:记录虽写 PASS 但同时列着未结的 must-fix 或 should-fix,不放行;记录别处(任一标题、小写/列表/表格/标题里的 verdict 行、单独一行 FAIL)写着 FAIL,不放行;题头之上的 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 不碰该文件。
  • 为什么改:规则说 should-fix 要先做 delta 复核再落地,守卫却只认 PASS 这个词,带着未结 should-fix 的 PASS 记录能直接入队(卡 pm: a same-head PASS record that still lists an open should-fix clears the queue guard #33604,加上 pm: the queue guard's Tier S record leg reads the verdict and the record's author #33687 复核记录 6890532571 的 N2、N3)。
  • 风险与回滚:只收紧放行面,不放宽:原来清不了的照样清不了。读不懂的等级一律不放行(fail closed),复核者要按 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

  1. One reader, contractReviewRecordReading (scripts/pm/check-half-states.mjs, beside contractReviewVerdictLines, on the same regexes; ⛔ no second parser). For a comment with a ## Contract review heading it returns:
    • verdicts: every explicit VERDICT: line's word, over the WHOLE comment (N3: lines above the heading count). contractReviewVerdictLines is 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 review heading's tail; a verdict key 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, = or is, reading FAIL, FAILED or FAILS; a table row with a verdict cell and a FAIL cell in either order; a bare FAIL line 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, ., ; or on this head / at this head / here may 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 by or or /; after a comma or and the second grade needs its own no); or unreadable (any other mention, e.g. Two should-fix, both … or No must-fix, should-fix S1 and S2 below.).
  2. The guard decides (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 requires reading (re-exported by record-recognisers.mjs) in place of verdictLines. 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.
  3. The brief teaches the grammar (record-recognisers.mjs BRIEF_GRADE_LINES, +3 lines): spell a finding S1 (should-fix) — …, a clean round No must-fix, no should-fix., and close by id alone.

Acceptance notes

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.
  • Self-tests on the final head 38cc292: check-governed-queue-guard --self-test 526 pass; check-half-states --self-test 5268 pass (11 new H43 rows); record-recognisers --self-test 389 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/objectstack on head 38cc292 (round 3, after merging origin/main again at 34c6eec; main's nine new commits touch none of the three files), each exit captured before any pipe; --ran reconciliation: "49 derived famil(ies) accounted for — 49 run, 0 NOT-MEASURED". check:doc-formula-expressions ran after pnpm --filter "@objectstack/lint..." build under the verify lock. The two check-closing-keyword-parity runs 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.

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-issue-citations.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs :: exit 0
node scripts/check-platform-checklist-watchdog.mjs --self-test :: exit 0
node scripts/check-release-section-coverage.mjs :: exit 0
node scripts/check-release-section-coverage.mjs --strict :: 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/ci/scheduled-full-run.mjs --self-test :: exit 0
node scripts/pm/bare-root-worklist.mjs --self-test :: exit 0
node scripts/pm/board-snapshot.mjs --self-test :: exit 0
node scripts/pm/check-governed-queue-guard.mjs --self-test :: exit 0
node scripts/pm/sweep-closed-cards.mjs --self-test :: exit 0
node scripts/render-release-coverage-anchor.mjs --self-test :: 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:closing-target-claim :: exit 0
pnpm check:commit-card-trailers :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:entry-guard :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:issue-citations :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:parse-guard :: exit 0
pnpm check:partof-closing-keyword :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:pm-dispatch-gates :: exit 0
pnpm check:pm-half-states :: exit 0
pnpm check:pm-post-stamped :: exit 0
pnpm check:pm-record-recognisers :: 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:single-claim-paths :: exit 0
pnpm check:watch-hint-literal :: exit 0
  • Rounds 1 and 2 ran the same 49 on bbe4fba and 7c2fb52, all green; an earlier pass on 148b0ce6 (with the contract-review.md line, since dropped) was stopped at 41 of 55, all green.
  • Every family CI runs beyond the derived list: read off this PR's check-runs.

Generated by Claude Code

…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>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: bbe4fbad5753e4e16e165a7d7d500137180a82cf
Local-runs: probe — the head's contractReviewRecordReading and its regexes, copied verbatim into scratch, read the nine real records and a list of break spellings; the brief asks which real records clear, and regexes this dense are not reliably read by eye. Nothing built, no self-test, no gate re-run.
Scope: none (ungoverned; reviewFace returns no hits) + scripts/pm/check-governed-queue-guard.mjs, scripts/pm/record-recognisers.mjs, scripts/pm/check-half-states.mjs (judged as the contract files, per the brief)

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 ee627c67 (3 files, +171 -19), and the check-runs on this head. Records measured: 6890432656 (#33686), 6890532571 (#33687), 6890622635 and 6890939010 (#33688), 6890932729, 6891274033 and 6891542450 (#33711), 6891083453 (#33720), 6891576194 (#33726).

Check-runs on the head when this was written: 52 runs; 26 success, 23 skipped, 0 failed, 3 still in progress (Test Core (1/8), Lint · PM dispatch-gates, Live half-state sweep). Concluded success include Governed Surface Queue Guard, Lint · scoped · tooling self-tests, Lint · repo & tooling gates, Check Changeset, Check PR Size, the PR-body guards and the three type-check families. The three pending runs are the seat's to read before landing.

① Derived judgments

  • Tier S record leg, accept set NARROWS: after the one-PASS-line rule, recordPassVerdict also refuses (not-pass, naming the comment) a record with a FAIL spelling elsewhere, an open graded finding, an unattributable grade mention, or a reading without the grade fields. Right against the ruling "the guard decides". Both legs reach it: lowRiskRecordVerdict ends in recordPassVerdict, and runGuard sends every other Tier S entry straight to it.
  • contractReviewVerdictLines WIDENS what it counts: explicit lines above the heading now count (N3). Toward refusal only (a second line refuses). Its only callers in the head tree are the guard path through the reading, and self-tests. Right.
  • Loader: verdictLines is replaced by reading, required; missing makes the set unavailable. Fail closed. No other reader of recognisers.verdictLines exists in the head tree. The open PR pm: the governed-merges sweep lists low-risk arm landings apart and judges each on a same-head at-tier PASS record #33711 calls guard.lowRiskRecordVerdict, not the removed key, so it inherits the new reading without a break. Right.
  • record-recognisers.mjs export surface: contractReviewRecordReading added beside contractReviewVerdictLines; nothing removed. Right.
  • One reader: the new function sits beside contractReviewVerdictLines, reuses CONTRACT_REVIEW_HEADING_MARKER, CONTRACT_REVIEW_VERDICT_EXPLICIT and CONTRACT_REVIEW_VERDICT_INLINE, and the old function is now a view of it. No second parser. Right.
  • Different-head records: the locator reads only records naming the current head, so a PASS that raised a finding on an older head does not block a later head that has its own record. A record CARRIED over a prose-only hop is read by the same function, so a carried record with an open graded finding now refuses; that is the consistent reading, and it is why the rule sentence in ③ matters.

② Semver level

skip-changeset, and Check Changeset concluded success. The diff touches scripts/pm/** only; nothing published. Right. Clause-②: no — agreed: no package surface, no metadata protocol.

③ Boundary flags

④ Design judgment

Measured on the real records (would the record clear the new guard, read on its own head):

Held: the taught shapes (S1 (should-fix) — …, bulleted, bold, SF1, S1 [..], S1 — grade:, upper case, numbered list) read open; a table row, a heading, a count line, a quoted sentence of the rule read unattributable and refuse; No must-fix, no should-fix., No must-fix. No should-fix., no must-fix or should-fix, Nits only: no should-fix, no must-fix. clear; **S1: closed.** and S1, S2 and N1 of record N are closed on this head clear; two explicit lines, a fenced or quoted second line, and a line above the heading refuse. The docblocks of recordPassVerdict and the guard header agree with the code. quote flattens what it echoes.

  • S1 (should-fix) — a delta record that names the grade of what it closes is refused, and the measured delta records do exactly that. Contract: the later record that closes the findings clears; a finding mentioned as closed must not block; a nits-only record must clear. Two of the three real delta records open with DELTA review from SHA (record N: PASS, should-fix S3, nits N7 and N8) to this head, which the reader files as unattributable; 6891542450 is clean and is refused for that line alone. The natural closing spellings - **S1 (should-fix): closed.** and S1 (should-fix) — closed on this head are read as OPEN S1, and No new should-fix. / No open should-fix. as unattributable. The refusal then tells the seat to state no should-fix, which that record already does. The PR body's "grammar measured" stopped at 6890932729 and missed both pm: the governed-merges sweep lists low-risk arm landings apart and judges each on a same-head at-tier PASS record #33711 deltas. Fix either side, and pin it with the measured preamble: the reader admits a citation of a prior record and a named finding whose line says closed, or BRIEF_GRADE_LINES and the refusal say outright that a delta record never spells the grade word of a finding it closes or cites.
  • S2 (should-fix) — N2 is not closed for every verdict-bearing form, and one negation reads the wrong way. Ruling: a FAIL anywhere verdict-bearing never clears beside one PASS line. Beside the template PASS line these still clear: a heading-led key (### VERDICT: FAIL, ## Verdict: FAIL), a table cell (| Verdict | FAIL |), Overall verdict: FAIL, Verdict — FAIL, and a bare FAIL. or **FAIL.** line (the separator set has no full stop). The docblock's "a line keyed verdict: in any case" is therefore wider than CONTRACT_REVIEW_LINE_LEAD, which admits no # and no words before the key. Separately, CONTRACT_REVIEW_GRADE_NEGATED takes a bare comma or and as carrying the negation: No must-fix, should-fix S1 and S2 below. reads as no grade at all, and with findings listed by id alone the record clears. That is the fail-open direction on an ambiguous line; the ruling says unreadable fails closed. Require the second no after a comma or and (keep or and /), widen the lead and the bare separator, one self-test row each.
  • S3 (should-fix, the seat's, prose face, no head change) — the card closes with its rule sentence unowned. The card's own acceptance is "and the rule text says which". The rule needs it for the guard to be honest: line 51 ① reads "现 head 同形达档 PASS 在案", and line 52 lets the original record carry over a prose-only hop; the guard now refuses both when that record names a graded finding, including one closed on the PR body with the head unchanged. The proposed in-place sentence ("PASS 在案,无前两级") is sufficient and I would take it as written. But this PR says Fixes #33604, and 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 (the file's owner) does not carry the sentence. Either 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 takes the line before this lands, or the card stays open until it does. The path for a finding closed on the prose face is stated only in the refusal text and the brief line (a later full record on the same head, at tier, signed, one PASS line, closing by id alone); the rule sentence is where a seat will look.
  • N1 (nit) — clean statements outside the two taught shapes refuse: Neither must-fix nor should-fix., 0 must-fix, 0 should-fix, must-fix: none; and - should-fix: none is reported as an open unnumbered finding. Fail closed, remedy is a repost; a follow-up if it bites.
  • N2 (nit) — the grade is read off the hyphenated word only. S1 (should fix), a non-breaking hyphen, or a finding listed by id with no grade word reads as nothing. The brief spells the word three times and all nine real records use it; accepted as the cost of closing by id alone.
  • N3 (nit) — only the FIRST heading's tail is read for an inline FAIL; a second ## Contract review — FAIL heading lower in the comment is not. No real record has two headings.
  • N4 (nit) — a break-list bullet that opens - FAIL — … or FAIL: … in ④ prose refuses the record as a FAIL spelling. Fail closed; the brief could say so in a word.

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: claude/project-thread-78jrbs
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 7c2fb525133fc94d6d46477f7ec94e879d37021e
Local-runs: probe — the head's contractReviewRecordReading with its regexes, copied verbatim from scripts/pm/check-half-states.mjs at this head into scratch, read the thirteen real records and a list of break spellings wrapped in a template record; the brief asks which real records clear, and these regexes are not reliably read by eye. Nothing built, no self-test, no gate re-run.
Scope: none (ungoverned; reviewFace returns no hits) + scripts/pm/check-governed-queue-guard.mjs, scripts/pm/check-half-states.mjs, scripts/pm/record-recognisers.mjs (judged as the contract files, per the brief)

DELTA review from bbe4fbad5753e4e16e165a7d7d500137180a82cf (record 6891926185) to this head, PR #33736, card #33604. Read: the card body and its five comments (round-2 os-dev-report 6892238275 among them), the PR file list (three files), the net change of those three files between the two heads (one commit of the PR's own, 7c2fb525; the rest of the range is origin/main merged in and is not judged), record 6891926185, and the check-runs on this head. Between the heads check-half-states.mjs and check-governed-queue-guard.mjs change; record-recognisers.mjs is byte-identical.

Check-runs on the head when this was written: 53 runs, all completed, NONE pending; 31 success, 22 skipped, 0 failed. Success include Governed Surface Queue Guard, Lint · scoped · tooling self-tests, Lint · PM dispatch-gates, Lint · repo & tooling gates, Live half-state sweep, Test Core (1/8), Test Core (2/8), Check PR Size, both PR-body guards and the four type-check families.

① Derived judgments

  • The reader's CLEAN set WIDENS in the delta (four new shapes: a record citation, a named finding whose line says closed, a grade valued none, a qualified denial), and its FAIL-spelling set widens toward refusal. The first is the accept direction of a gate, so each new shape was tried for a record that should refuse and now clears; see ④.
  • recordPassVerdict: only the words of the unattributable refusal change. Its order of checks and its accept set are untouched. Right.
  • CONTRACT_REVIEW_GRADE_NAMED gains a capture group; both readers of its groups (namedAt, the open push) moved to group 3. No other reader of that regex exists in the head tree. Right.
  • Every heading line is now read for an inline tail and is exempt from the keyed and bare readers; the explicit VERDICT: reader still runs on it. No verdict line is lost by the exemption. Right.
  • One reader still: no second parser, no new export, the loader contract unchanged.

② Semver level

Unchanged: skip-changeset, Clause-②: no, nothing published; scripts/pm/** only.

③ Boundary flags

④ Design judgment

Prior findings, by id:

New at this head:

  • S1 (should-fix) — the closed-or-none reading takes the first WORD after the grade, so a finding named in the taught shape clears whenever its title opens with that word. CONTRACT_REVIEW_GRADE_NAMED_STATE ends at (closed|none)\b and reads nothing after it. Measured on this head, each beside the template PASS line, each CLEARS: S1 (should-fix): closed in part, still open for X; - **S1 (should-fix) — closed in part; the table cell still clears.**; **S2 (should-fix) — Closed PRs are still read as merged by the audit.**; - **S2 (should-fix) — none of the three ablations ran on the committed head.**; S1 (should-fix) — closed on the prior head, reopened by this delta; - should-fix: none of S1, S2 is fixed. At bbe4fbad every one of these read OPEN and refused, so the delta turned a refusal into a clearance, on the exact shape the brief teaches for an open finding. It is the card's own defect (a PASS that lists an open finding of the upper grades clears) for the subset of titles that start with one of two ordinary words; findings about closed PRs and "none of the callers" titles are ordinary in this fleet. Fix in the one regex: after the state word admit only the end of the line, closing emphasis, a full stop or semicolon, or the measured tail (on this head, at this head, here); anything else leaves the finding open. Pin closed in part, none of … and a title opening Closed … as refusals beside the existing clean row. No effect on the thirteen measured records: none uses a closed line with a grade word.
  • N1 (nit) — the citation excuses everything inside its brackets, and the qualified denial denies only additions. S1 stays open (record 6891926185: should-fix, not fixed on this head). and No new should-fix. S1 of record 6891926185 stays open. clear. Both rest on a finding kept open by id alone with no taught line, which is the cost record 6891926185 accepted as its N2; the delta only stops such a line from tripping the unattributable net. The pinned control covers the realistic case (a named finding beside a citation).
  • N2 (nit) — verdict-bearing spellings still outside the reader, all exotic beside a template PASS line: Verdict: FAILED, Verdict is FAIL, Verdict (delta): FAIL, a table whose verdict column is a header row (| Tier | Verdict | over | … | FAIL |), | FAIL | Verdict |, a mark before the cell's word, FAIL!, and a heading tail reading — PASS withdrawn, FAIL (the inline reader stops at the first word). None is in any measured record.
  • N3 (nit) — refusals of clean text, toward closed: a prose line led by up to two words and the key, such as - Leg verdict: fail-closed reading holds., is now a FAIL spelling (the two-word allowance widened it); S1 (should-fix) is closed reads open; a ### Should-fix section heading over None. reads as an open unnumbered finding. Remedy is a repost.
  • N4 (nit) — BRIEF_GRADE_LINES still teaches only closing by id alone. The reader is now wider than the brief, which is the safe side; no change owed.

Did the delta break anything else: no. The eight taught open shapes (bulleted, bold, numbered, quoted, SF1, square bracket, upper case, heading-led) still read open; a table row and a count line still refuse; prose that mentions the word FAIL after a comma is still not a spelling.

No must-fix. S1 of this record earns a delta review of its fix and moves the head.

Implemented-by: claude/project-thread-78jrbs
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 38cc292ac87504dfa8d38f53bf85403019032806
Local-runs: probe — the head's contractReviewRecordReading with its regexes, copied verbatim from scripts/pm/check-half-states.mjs at this head into scratch (pr-33736e), read the seventeen real records and a list of break spellings wrapped in a template record, with the guard's order of checks applied to each reading; the brief asks which real records clear, and these regexes are not reliably read by eye. Nothing built, no self-test, no gate re-run.
Scope: none (ungoverned; reviewFace returns no hits) + scripts/pm/check-governed-queue-guard.mjs, scripts/pm/check-half-states.mjs, scripts/pm/record-recognisers.mjs (judged as the contract files, per the brief)

DELTA review from 7c2fb525133fc94d6d46477f7ec94e879d37021e (record 6892305129) to this head, PR #33736, card #33604. Read: the card body and its six comments (the round-3 os-dev-report 6892616102 among them), the PR body and three-file list, the net diff against main (3 files, +236 -20), the net change of those three files between the two heads (one commit of the PR's own, 38cc292a; the rest of the range is origin/main merged in at 34c6eeca and is not judged), records 6891926185 and 6892305129, and the check-runs on this head. Between the heads check-half-states.mjs (+30 -15) and check-governed-queue-guard.mjs (+7, self-test rows only) change; record-recognisers.mjs is byte-identical.

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 Governed Surface Queue Guard, Lint · scoped · tooling self-tests, Lint · PM dispatch-gates, Lint · repo & tooling gates, Live half-state sweep, Test Core (1/8), Test Core (2/8), Check PR Size, both PR-body guards and the four type-check families.

① Derived judgments

  • The reader's CLEAN set NARROWS in the delta: the closed-or-none state now clears a named finding only when the state word ends it. Every line the old regex opened on and the new one refuses moves toward refusal. The one accept-direction piece is the allowance for a full stop that closes a bold title followed by a new sentence; it is a subset of what the prior head cleared, so nothing clears now that refused at 7c2fb525. Tried for fail-open in ④.
  • The FAIL-spelling set WIDENS toward refusal only: a parenthetical after the key, is as the separator, FAILED and FAILS, a table row read cell by cell in either order, ! after a bare word, any caps word in a heading's tail. No spelling that refused at the prior head clears now (the fourteen forms of rounds 1 and 2 re-run, all refuse).
  • CONTRACT_REVIEW_FAIL_CELL changed from a regex to an object with a test method; its one caller calls .test(line) and no other reader of the name exists in the head tree. Right.
  • recordPassVerdict, the loader and the export surface are untouched by the delta. One reader still, no second parser.
  • The docblock of contractReviewRecordReading was moved with the code and agrees with it sentence by sentence, the PR body's item 1 likewise.

② Semver level

Unchanged: skip-changeset, Clause-②: no, nothing published; scripts/pm/** only.

③ Boundary flags

④ Design judgment

Prior findings, by id:

  • S1 of record 6892305129: closed. CONTRACT_REVIEW_GRADE_NAMED_STATE now requires, after the state word, an optional measured tail (on this head, at this head, here) and then either the end of the line past closing emphasis with at most one full stop or semicolon, or a full stop directly closing a double-mark bold title and a new sentence. Measured, each beside the template PASS line: the six lines of that record's finding all read open and refuse again (closed in part, still open for X; closed in part; the table cell still clears.; a title opening Closed PRs; none of the three ablations ran; closed on the prior head, reopened by this delta; none of S1, S2 is fixed under a bare grade key). Also refused: closed. Still open for X with no bold, closed here; still open for X, closed on this head except Y with and without a comma, closed here, not there, closed, reopened, closed-then-reopened, closed/open, closed?, closed!, not closed, closed heretofore, nested emphasis around the word inside a longer title, a full stop placed outside the bold, a single-star title, a table row. closed; S2 (GRADE) below stays open refuses twice over (S1 reads open, the second grade word is unattributable). A closed bold title whose body restates the grade word, on the same line or the next, refuses as unattributable. Clean controls clear: closed., closed;, closed here., closed on this head., Closed., a grade carrying a note inside its bracket, a quoted line, the square-bracket form, a closed bold title followed by a plain sentence. Pinned in both self-tests, with the ablation named in the PR body.
  • N2 of record 6892305129, the cheap spellings: taken, and each refuses beside one PASS line as a FAIL spelling. Measured: the key valued FAILED, the key with is, the key with a parenthetical, the reversed table row, the bare word with !, and a late caps word in a heading tail. One pin row in each self-test.
  • S1 and S2 of record 6891926185 stay closed: the measured delta preamble still cites, a new named finding beside a citation still refuses, the comma and and denials still need their own no, the eight FAIL forms of that round still refuse. S3 of that record was the seat's; its sentence is on this head through main (see ③).

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:

  • N1 (nit) — a bold title that reads exactly closed, followed by a body that takes it back without the grade word, clears: **S1 (GRADE) — closed.** Still open for the table cell, - **S1 (GRADE): closed.** Reopened by this delta., and the same with a citation of an earlier record in the body. The reader cannot weigh a sentence against a title, and a reviewer who holds the finding open does not title it closed; the realistic forms (a restated grade, a new named finding, a reopened id with its grade) all refuse. The allowance also takes a double-underscore title, a tab before the sentence, and an unpaired closing mark. No real record does any of this.
  • N2 (nit) — the reader is line-based, so a line break directly after the state word inside a title clears: a first line ending — closed with in part, the table cell still clears.** on the next. It needs a hard wrap at about column 26, the width of the lead; none of the seventeen records breaks a finding title across lines (measured: zero unclosed bold finding leads). This line read the same way at the prior head.
  • N3 (nit) — verdict-bearing spellings still outside the reader, each exotic beside a template PASS line: a verdict column carried by a header row; the key valued PASS → FAIL or a struck PASS and then the other word; Verdict was FAIL; verdict is: FAIL; a dash with no space after it; a mark before the cell's word; the key and value inside one cell; a title-case or lower-case word in a heading tail. Leaving the header-row column out is sound: reading it needs state across lines in a reader that is line by line by design, it fails open only on a record that contradicts its own single PASS line in a table, and no measured record carries a verdict table.
  • N4 (nit) — refusals of clean text, toward closed: a prose line led by up to two words, the key and is, such as The verdict is fail-closed.; a table row holding a cell with the word verdict and another cell opening fails closed; a heading tail such as PASS, prior FAIL closed; a bare caps FAILED line. None is in a measured record (6892612604 carries the caps word mid-sentence only and clears). Remedy is a repost.

Did the delta break anything else: no. The eight taught open shapes (bulleted, bold, numbered, quoted, SF1, square bracket, upper case, heading-led) still read open; a table row and a count line still refuse; the five denial forms still clear; | Verdict | PASS |, The verdict is PASS. and prose that mentions the caps word after other words are still not a spelling. BRIEF_GRADE_LINES is unchanged and still narrower than the reader, the safe side.

No must-fix, no should-fix. Four nits; nits alone end the round.

Implemented-by: claude/project-thread-78jrbs
Reviewed-by: session_01FEkQ5pjSPT7ui2EUcunaVb

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

@objectstack-fleet objectstack-fleet Bot mentioned this pull request Nov 15, 2026
4 tasks
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb

席位核对

Verdict: ACCEPT, seat lands (ungoverned, scripts/pm/)** · head 38cc292ac87504dfa8d38f53bf85403019032806 · card #33604 · round-3 report 6892616102 · at-tier contract review 6891926185 (first), delta 6892305129, and delta 6892689104 (PASS on this head, nits only; CONTRACT_REVIEW_TIER, served model verified by the seat; Ruling-ref for the in-seat review: Leehom card cmsg_01TenzsRopZj4jMbvjX8uz1XFhuiZmTH8VFgMmHRmpiGAb option A).

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 10:03
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 25c1d3c Nov 15, 2026
54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-78jrbs branch November 15, 2026 10:23
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…-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>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pm: a same-head PASS record that still lists an open should-fix clears the queue guard

1 participant