Repository navigation
fix(pm): the contract-review record reader closes the four review nits of PR #33736 - #34054
Conversation
…our nits A grade-carrying finding reads closed only when the state word ends the finding: no sentence after a closed bold title, and no body or wrapped title on the next line. FAIL now reads in a header row's verdict column, after an arrow or a struck word, with `was`, `is:` or an unspaced dash, after a mark in a cell, with key and value in one cell, and in any case in a heading tail. The fail-safe idiom (`fail-closed`, `fails closed`, `PASS, prior FAIL closed`) and a bare FAILED line no longer read FAIL. Claude-Session: https://claude.ai/code/session_01ADHkmQopcLwxooyvT2Kxvu Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19 Contract reviewServed-tier: First review of PR #34054 on this head, card #33770. Read: the card body and its three comments (triage 6893167834, the claim 6898065682, the os-dev-report 6898438400), records 6891926185, 6892305129 and 6892689104 of PR #33736, the PR body, the two-file list, the net diff against main (+90 -24), the head blobs of both files around the reader and the guard's Below, the two upper grade words are spelled only on the lines that name a finding, so that this record reads as it means under the reader it reviews. Check-runs on the head, snapshot 2026-11-15T17:37Z: 53 runs; 26 success, 23 skipped, 0 failed, 4 STILL RUNNING: ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgmentN1/N2 against the brief: the new rule does refuse a realistic closed finding whose title fits on one line and is followed by an ordinary explanation, on the same line or the next, when the line carries the grade word. That is what the brief teaches and no more: N4: Findings:
Did the change break anything else: no. The taught open shapes still read open, the denial forms are untouched, the r3 and round-1 FAIL forms all still match the widened regexes, and the twelve N3 pins, six N4 pins and five N4 controls read as the rows expect when traced by hand. No must-fix. S1 and S2 each earn a delta review of their fix; both move the head. The four nits can ride the same commit or a follow-up card. Implemented-by: VERDICT: PASS |
…ding at a grade-led line An explicit `VERDICT: PASS` line is also read by the keyed reader, so `**VERDICT: PASS → FAIL**` is a FAIL spelling. A next line led by a grade with no id (`should-fix: none`) ends the finding above it. As a verdict value only the prose idiom is excused: `FAILED closed` and `FAILED - closed` read FAIL. Claude-Session: https://claude.ai/code/session_01ADHkmQopcLwxooyvT2Kxvu Co-authored-by: Claude <noreply@anthropic.com>
|
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19 Contract reviewServed-tier: DELTA review from Below, the two upper grade words are left unspelled except in the closing denial, so that this record reads as it means under the reader it reviews. Check-runs on the head, snapshot 2026-11-15T18:05Z: 54 runs; 31 success, 22 skipped, 0 failed, 1 STILL RUNNING: ① Derived judgments
② Semver levelUnchanged: ③ Boundary flags
④ Design judgmentPrior findings, by id:
The four real records of round 1, traced again on this head: 6897840089, 6897742597 and 6892689104 clear; 6898215827 refuses, as at base and at the prior head, for its count line alone. Each carries one plain template verdict line with nothing after the word, no keyed line valued with the past form, and no grade-led line with a state, so none of the three changes reaches them. New at this head, nits only:
Did the delta break anything else: no. Every round-1 pin row is unchanged in the delta and its cells read the same through the changed alternation (the N4 cells use the hyphenated and one-space plural forms, both still excused; the control cells use the bare word before a space, still read). No must-fix, no should-fix. Two new nits; nits alone end the round. Implemented-by: VERDICT: PASS |
|
domain:skills#1 · os-steve · session_01ADHkmPd7uRqHauEehGPr19 席位核对 · ACCEPT · head
|
Requested by Steve · project thread
Fixes #33770
Clause-②: no
Metadata-protocol: none
维护者速读
contractReviewRecordReading),把 PR fix(pm): the queue guard refuses a same-head PASS record that names an open must-fix or should-fix #33736 末轮复审留下的四个 nit 全部收口:自相矛盾的“已关闭”发现、标题折行、几种漏读的 FAIL 写法、几种被误判为 FAIL 的干净文字。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,其中带#33770的 9 行全绿。What changes
One reader,
contractReviewRecordReadinginscripts/pm/check-half-states.mjs(the queue guard andrecord-recognisers.mjskeep reading through that one export; no second parser). Each of the card's four items, from review 6892689104: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:contractReviewFindingContinueslooks 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 whatBRIEF_GRADE_LINESalready teaches.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.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).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 anyfail/fails/failed+closedwhen it is not the tail's verdict word (PASS, prior FAIL closed). A bareFAILEDline is no longer a spelling (a bareFAILstill is). Fail-closed side kept:Verdict: FAIL closed, a| FAIL closed |cell and a heading tail openingFAIL closedstill read FAIL (pinned).Round 2 (review 6898558527 of this PR, S1, S2 and the nit).
**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 byCONTRACT_REVIEW_FAIL_KEYED, so it states PASS and a FAIL spelling and never clears. Pinned in all-caps, ASCII, bare and quoted forms.must-fix: nonedirectly overshould-fix: none(no bullets) as OPEN, because a next line led by a grade with no id did not end the finding.contractReviewFindingContinuesnow ends a finding at any lineCONTRACT_REVIEW_GRADE_NAMEDreads as a finding lead, beside the id-led one; both lines clear, as at base. Pinned with a control: a body undermust-fix: nonestill keeps it open.fail-closed,fails-closed,failed-closed) orfails closedwith one space.Verdict: FAILED closed,Verdict: FAILED - closedandVerdict: FAIL - closedread FAIL (pinned).Why
Review 6892689104 (PASS on PR #33736's head
38cc292a, nits only) left N1-N4; ruling B on #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
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).check-half-states.mjs, the#33604 r3 (review 6892305129)row: its fifth cell,- **S1 (should-fix): closed.** Every knock names a key., now readsS1: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 thestateEndscontrol (#33604-r3-CONTROL-closed-that-ends-the-finding-CLEARS, renamed from…-or-the-bold-title-CLEARS) and a new assertion,⛔ #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.e9e17977:check-half-states5287 cases pass (5278 at base),check-governed-queue-guard535 pass (534 at base),record-recognisers399 pass (this PR does not touch it;main's own change to it moved the count).Ablations (five, each turned only its own new row red; restored to the HEAD blob, `git diff HEAD` empty)
Both through
node scripts/ablation-replace.mjs --delete, at commit1ea9e6bf, blobf06d1258:contractReviewFindingContinues(line, lines[at + 1]) ? undefined :(x1 → x0):check-half-states --self-testexit 1,2 of 5284 case(s) failed—#33770 N1(the next-line cells read clean) and#33770 N2(|0,|0). Restore: blob after = blob at HEAD =f06d1258.|| underVerdictColumn(x1 → x0): exit 1,1 of 5284 case(s) failed—#33770 N3(the header-row column cell reads0). Restore proven the same way.Round 2, at commit
af85cdbe, blob43d9d99f, each restored to that blob withgit diff HEADempty:--deleteof the line that reads an explicit PASS line with the keyed reader (x1 → x0):1 of 5287 case(s) failed—#33770 r2 S1.--deleteof|| CONTRACT_REVIEW_GRADE_NAMED.test(s)(x1 → x0):1 of 5287 case(s) failed—#33770 r2 S2.--replacementof the FAILED value alternative back to round 1's[ \t-]+closedlookahead (anchor x1 → x0, replacement x0 → x1):1 of 5287 case(s) failed—#33770 r2 nit(got0,0,1,0,0).Real records (18), read by the base reader and by this head
The 17 records review 6892689104 measured plus that record itself, fetched to scratch and read by
contractReviewRecordReadingat base0ff3b146and 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.Acceptance notes
- **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 asNo must-fix.). The remedy is the taught form, closing by id alone, or a blank line. None of the 18 real records does either.failanywhere 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-openincluded. No real record has a heading tail.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.fails closedwith one space stays excused as the prose idiom, soVerdict: FAILS closedreads clean; every other spaced form reads FAIL.Verification
e9e17977: round-1 fix1ea9e6bf, round-2 fixaf85cdbe,origin/main529ed7d9merged in (the derivation warned STALE TREE before that merge; nomaincommit since the base touches either file of this PR).node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackon that head: 48 commands, each run, eachexit 0;--ranreconciliation:48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED. The derivation includesnode scripts/pm/check-governed-queue-guard.mjs --self-test;node scripts/pm/record-recognisers.mjs --self-testwas run as well (exit 0, 399 cases).skip-changeset:scripts/pm/**only, nothing published.Human Minimum
packages/specholds no runtime logic. (not touched)pnpm lintis not run locally, CI owns that run.main, one pull request.skip-changeset)packages/spectouched: its generated artifacts are regenerated and committed. (not touched)content/docs/references/,packages/*/CHANGELOG.mdorcontent/docs/releases/.