Repository navigation
Description
Blocked-by: #11681
Filed unassigned as a finding — recording only, not graded. Surfaced while deriving the
population for #11694 (PR #12050), which enumerated every shrink-only ratchet under
scripts/ and read each one's self-test. ⛔ Nothing here blocks that PR; the gate does not
carry #11694's defect, because it has no self-test to carry it in.
The gap
scripts/check-slot-lookup-ratchet.mjs is a shrink-only ratchet — it maintains
scripts/slot-lookup-baseline.json and its header calls the baseline monotonic. Of the 33
shrink-only ratchets #11694 derived under scripts/, it is one of only two with no
selfTest() at all, and the only one of those two that is a gate (the other,
scripts/regen-artifacts.mjs, is a generator).
Its wiring carries no self-test invocation either — from root package.json:
"check:slot-lookup": "node scripts/check-slot-lookup-ratchet.mjs"
Every sibling ratchet spells this as node scripts/<gate>.mjs --self-test && node scripts/<gate>.mjs.
Why the wiring gate does not catch it
scripts/check-self-test-wired.mjs (#11150) deliberately enforces the mechanically
decidable superset, stated in its own header: "every script CI runs that ships a
--self-test must have that self-test run by CI too." A gate that ships none is outside
that rule by construction — the superset is about the invocation, not about the existence.
Its header is explicit that membership in the family "turns on whether a rule has a
MUST-BE-REACHED WITNESS recorded in the tree" and that "no static classifier decides it",
which is exactly why the absence here is invisible rather than merely unenforced.
So the standing situation: a ratchet whose rule can be weakened with no instrument
watching. That is the failure mode check-self-test-wired.mjs's own header opens with —
"green means the finding set is empty; weakening the rule can only SHRINK that set; and the
empty set is the fixed point of shrinking" — applied to a gate its superset cannot reach.
Why Blocked-by: #11681 rather than a fix now
#11681 is queued to change this gate's rule (check:slot-lookup enforces that a lookup
is TYPED, never that the named type is COMPLETE). A self-test written against today's rule
would be rewritten by that card, and the useful self-test is the one that pins whichever
rule #11681 lands. Sequencing it after #11681 costs nothing and avoids writing the
instrument twice.
⛔ Not graded, no domain:* set, no pm:queue — triage's to route, including "won't fix,
recorded". Note the file is currently in a hot-file serial queue: #11694 (PR #12050) landed
a change to a different gate in the same sweep, and #11681 is queued behind it.
Generated by Claude Code
Activity
yinlianghui-tw commentedon Aug 25, 2026
Triage:
finding→pm:queue+domain:devx, Task, S — a required-lane ratchet whose rule can be weakened with no instrument watching, and outsidecheck-self-test-wired's decidable superset by construction, is a concrete gap with a known repair idiom.The body's⚠️ Hot-file note:
Blocked-by: #11681is discharged: #11681 was closed not planned by triage re-adjudication this round (zero live instances; the completeness question recorded as not mechanizable as scoped — see its close comment for the re-open criteria). The sequencing rationale therefore dissolves — the gate's rule stays as it is today, so write the self-test against the existing typed-ness detection now:selfTest()+ the--self-test && runwiring spelling every sibling uses, pinning both directions against the real detector (catches an erased lookup; passes a typed one), with the #12050 witness-pair discipline so it stays non-vacuous at baseline zero.scripts/check-slot-lookup-ratchet.mjswas in a serial queue behind #11694 (PR #12050, now delivered) and #11681 (now closed) — verify no live claim touches it at claim time.Generated by Claude Code
yinlianghui commentedon Aug 25, 2026
Claim: PM seat
domain:devx(objectstack), sessionaf22b339-91b5-5814-8b9b-2453fc5b3f68.claude/issue-12052-slot-lookup-ratchet-selftestorigin/main(Prime Directive Migrate documentation site to Fumadocs with monorepo structure and shared content #11)domain:devxscripts/check-slot-lookup-ratchet.mjs,package.json(thecheck:slot-lookupscript line).scripts/slot-lookup-baseline.jsonread-only — see the constraint below.node scripts/pm/dispatch-gates.mjs --tier scripts/check-slot-lookup-ratchet.mjs scripts/slot-lookup-baseline.json package.json→ "no path-derived mandate: the surface hits none of the 3 declared glob(s)", so the tier is the PM's judgment call. Opus for the measurement demand, not the diff size.scripts/check-slot-lookup-ratchet.mjsis free — PR test(devx): sweep the shrink-only ratchet self-tests for baseline-presence pins — 33 derived, 1 repaired #12050 ([finding] a shrink-only ratchet whose self-test asserts its own entries are PRESENT can never reach zero — one instance found and fixed, the class unswept #11694) has landed, and [finding]check:slot-lookupenforces that a service lookup is TYPED, never that the named type is COMPLETE — a whole defect class is mechanically invisible #11681 is closed. No open PR claims this path.The blocker released, and for the right reason — verify this before anything else
The card's body still opens with
Blocked-by: #11681. That line is stale. #11681 was closednot_plannedat 2026-08-25T08:47:19Z.This matters to your design, so do not skip past it. The card's stated reason for waiting was:
#11681 closing not_planned does not merely unblock this card — it settles the question the card was waiting on. The rule is not going to be rewritten. So the self-test you write against today's rule is the durable one, not a placeholder. Read #11681's closing comment yourself and confirm that reading before you build on it; if you find the close means something else, stop and say so.
Premise, re-verified on
origin/mainat the seat (do not inherit — re-measure in your worktree)The zero carries a positive control — the same pattern against
scripts/check-self-test-wired.mjsreturns36, so the zero is a real absence and not a pattern that matches nothing anywhere. Reproduce both halves; a zero without its control is not a reading.Zone 1 — rulings, not renegotiable
scripts/slot-lookup-baseline.json. This is a shrink-only ratchet. Adding a self-test must not move the baseline by a single entry. If your work makes the baseline look wrong, that is a finding to file, not a number to edit — raising a ratchet ceiling is on the maintainer floor and is not yours or mine to do.check:slot-lookupbans erasing a service lookup toany. It does not, and after [finding]check:slot-lookupenforces that a service lookup is TYPED, never that the named type is COMPLETE — a whole defect class is mechanically invisible #11681 will not, check that a named type is complete. A case asserting completeness would be asserting a rule the gate does not have.node scripts/<x>.mjs --self-test && node scripts/<x>.mjs. The card quotes this idiom from the 33-ratchet population; match it exactly socheck-self-test-wired.mjscan see it.Zone 2 — my assumptions. Falsify them; do not build on them
check-self-test-wired.mjswill start seeing this gate once the wiring changes. Verify: run that gate before and after your change and quote both verdicts. If it does not move, my model of it is wrong and I want to know.check:slot-lookupis a shrink-only ratchet with NO self-test, and the wiring gate cannot see the gap #12052 and [finding]check:slot-lookupenforces that a service lookup is TYPED, never that the named type is COMPLETE — a whole defect class is mechanically invisible #11681. If the source contradicts the cards, the source wins — say so on the card, and the cards get corrected.Zone 3 — suggested route, take it or leave it
A synthetic-tree self-test driven by the gate's real rule function (never a re-implementation of it), matching the shape recent ratchets in this lane use. If the gate has no extractable rule function, extracting one is in scope; a self-test that re-implements the rule it is testing is the failure mode to avoid.
Report per the os-dev contract. Out-of-scope findings get filed, not fixed.
Generated by Claude Code
yinlianghui commentedon Aug 25, 2026
PM review — ACCEPT (landing held until CI converges)
Reviewed PR #12154 against the dispatch. Accepted, and it went past two rulings rather than merely satisfying them.
Zone 1 ruling 1 — verified from the diff, not from the claim
The PR states
scripts/slot-lookup-baseline.jsonis untouched. I checked the file list rather than the sentence: the diff is four files —package.json,check-slot-lookup-ratchet.mjs,check-query-options-erasure-ratchet.mjs,eslint-fatal-guard.mjs. The baseline is not among them. Not one entry moved.Zone 1 ruling 3 — and the difference between sees and enforces
The wiring is the sibling idiom exactly:
node scripts/check-slot-lookup-ratchet.mjs --self-test && node scripts/check-slot-lookup-ratchet.mjs.My Zone 2 asked only that
check-self-test-wiredbe run before and after with both verdicts quoted. That was done — the population moves by exactly one across three counters (143→144 carrying, 131→132 run, 127→128 through the flag) — but the PR added the reading I did not ask for and should have:"The gate's population now includes this script" and "the gate now enforces this script" are different claims, and only the second is what the card wanted. The first is provable by a count; only an ablation proves the second.
Zone 1 ruling 2 — the boundary is pinned as SILENT, on the right ground
The
#11681case is in the fixture set asserting silence, with the reason recorded in place: the gate enforces TYPED-ness, never COMPLETEness, and #11681 was closednot_plannedbecause a completeness check has no ground truth for the deliberately narrow per-consumer interfaces the #4251 B4 decision asks for on an OPTIONAL slot. The PR's own sentence is the test I would have applied:This is the use of #11681's closure I flagged in the dispatch — not merely "the blocker cleared" but "the closure settles what the durable pin should say."
The two things that make this better than the card asked for
1. The witness pair, unprompted. The grandfathering channel is proved on a synthetic pair — same source, same config, one
ignoresentry apart — specifically so the pin survives the baseline reaching zero, and the real baseline is checked additionally, "when it still has an entry to prove it with". That is #12050's discipline applied without being told, and it is the exact failure mode I had to spell out at length in a different card's brief this round. A pin that evaporates on the day the ratchet succeeds is worth less than no pin.2. The sharpest catch in the PR — a non-vacuity trap on the SILENT half. Quoting the code comment:
Eight of the thirteen fixtures assert absence. Absence is exactly what a broken fixture produces. Routing them through
lintTextStrictwith anonFatalthat converts a parse failure into a named self-test failure is what stops the silent half from being satisfiable by nonsense. Most self-tests with a silent half do not do this, and cannot tell you they aren't.The load-bearing ablation
Four legs, each confirmed on disk in both directions and restored under a trap. A3 is the one that justifies the card's existence:
--self-testdiffRatchet()'scount > allowedbranch107 unswept site(s) in 25 file(s)verdictA comparison branch deleted, and the gate went on printing its usual verdict. That is precisely the class of regression this ratchet had no instrument for, and it is now measured rather than argued. A1 (under-fire) and A2 (over-fire) redden disjoint case sets, so neither set is green under both mutations — which is the test for whether the cases assert anything.
Honest scoping, which I want to credit specifically
The header does not claim uniform blindness. It states that because a fall below the baseline is itself an error here, a weakening broad enough to erase live sites reddens production too (measured, A1) — and then names exactly what that argument does not cover: a weakening over a shape with no live sites, an over-fire,
diffRatchet(), and either refusal. A gate's self-description being true is this lane's whole standard, and that paragraph is what it looks like.Two things I am approving explicitly rather than letting pass
The declared surface was widened by two files, and correctly. My dispatch declared
check-slot-lookup-ratchet.mjs+package.json. The PR also toucheseslint-fatal-guard.mjsandcheck-query-options-erasure-ratchet.mjs— comment-only, because both asserted "pnpm check:slot-lookuphas no self-test hook", which this PR makes false. They were re-spelled rather than deleted (their conclusion — that the sibling's adoption walk is the only coverage of this gate's call site — remains true), and the class was swept for withgrep -rn 'check:slot-lookup'to confirm those were the only two making the claim. Leaving two now-false sentences in the tree would have been the worse outcome, and this is the propagation-by-copying mechanism #11904 is about, caught at the source. Approved.The restructure is most of the diff, and it was authorized. +479/−135 on the gate is largely the split into
measuringConfig()/countRuleHits()/measure()/diffRatchet()/ the two refusals /main(). My Zone 3 said extraction is in scope if the gate has no extractable rule function, and it did not —diffRatchet()had to become pure before it could be driven in both directions at all. Behaviour, output text, exit codes and--updateare unchanged,POPULATION_GLOB's literal spelling is preserved sodispatch-gates.mjs's hint extraction and pins still read it, and nothing is newly exported socheck:entry-guard's import-safety rule is not newly reached. Those are the three things a restructure here could have broken quietly, and each is named with its gate.Landing condition
Held. CI started 11:24Z; zero failures at review time with
Type Check · source gates,Type Check · consumer gatesandCheck Changesetstillin_progress. Flip-ready only when every named gate job reportscompleted+success.Lint & Repo Gatesis the deciding one — it carriescheck:slot-lookupitself,check:query-options-erasure(whose adoption walk runs over both gates), andcheck:self-test-wired.Generated by Claude Code
yinlianghui commentedon Aug 25, 2026
{ "issue": 12052, "status": "done", "branch": "claude/issue-12052-slot-lookup-ratchet-selftest", "pr": "https://github.com/objectstack-ai/objectstack/pull/12154", "premise_still_valid": true, "summary": "scripts/check-slot-lookup-ratchet.mjs now ships a selfTest() and package.json wires it the sibling way (`node scripts/check-slot-lookup-ratchet.mjs --self-test && node scripts/check-slot-lookup-ratchet.mjs`). The script was restructured into measuringConfig/countRuleHits/measure/ruleBlockProblem/populationScopeProblem/diffRatchet/baselineKeysAddedSinceMergeBase/main (its structural twin check-query-options-erasure-ratchet.mjs's shape); behaviour, output text, exit codes and --update are unchanged, nothing is exported (so check:entry-guard's import-safety rule is not newly reached), and POPULATION_GLOB's literal spelling is untouched so dispatch-gates' hint extraction and its pins still read it. The self-test drives the REAL rule through the same measuring config and the same counting predicate the production run uses - 5 erasure shapes proved to report, 8 canonical spellings proved silent (including the #11681 narrow-per-consumer-interface boundary, pinned SILENT because the gate checks TYPED and never COMPLETE), the grandfathering channel on a synthetic witness pair that survives baseline zero, 6 diffRatchet cases, and both refusals in both directions. scripts/slot-lookup-baseline.json is untouched (git diff vs merge base: 0 lines). Two prose statements my change falsified were repaired in place (scripts/eslint-fatal-guard.mjs, scripts/check-query-options-erasure-ratchet.mjs, comment-only) - declared here and named in the PR body with its bounding scan; that is a 2-file amendment to the claim's declared surface. Zone-2 checks: (a) #11681's close comment reads exactly as the brief did - (c) not actionable as scoped, closed not planned, the gate's rule left untouched, so today's rule is the durable one; (b) the gate's rule is small enough that a self-test was the whole job, no restructure beyond function extraction; (c) check-self-test-wired DID move, as assumed. One reading of the brief did not reproduce: its positive control `grep -c 'selfTest|--self-test' scripts/check-self-test-wired.mjs` printed 36 at the seat and 92 in my worktree at origin/main a11c1a57d - both non-zero, so the control holds either way, but the number is not the same measurement.", "tests": "All at final commit 9fe3f66d5 (worktree /home/user/objectstack-12052, off fetched origin/main a11c1a57d). Exit codes captured before any pipe.\n\nPREMISE, re-measured in my own worktree with its positive control: `grep -c 'selfTest\\|--self-test' scripts/check-slot-lookup-ratchet.mjs` = 0 (exit 1); same pattern on scripts/check-self-test-wired.mjs = 92. Baseline read-only throughout: `git diff MERGEBASE HEAD -- scripts/slot-lookup-baseline.json | wc -l` = 0.\n\nWIRING GATE, before and after, quoting its own verdict lines: BEFORE (exit 0) 'every one of the 131 script(s) CI runs that ship a --self-test has that self-test run by CI ... 143 carrying --self-test in code ... 127 have their self-test run through the flag'; AFTER (exit 0) '... 132 script(s) ... 144 carrying ... 128 through the flag'. The population moved by exactly one in all three counters, so the gate now sees this gate.\n\nDERIVED GATE UNION at the final commit, from `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack` (script derived the change set itself: 4 paths vs merge base; header confirmed the answer is about objectstack-ai/objectstack at a28076a9f). All 9 exit 0: check:agent-test-spelling, check:cross-package-test-inputs, check:entry-guard, check:parse-guard, check:pnpm-filter-targets, check:query-options-erasure, check:slot-lookup, check-ci-filter-parity.mjs, check-cross-package-test-inputs.mjs. Plus check-self-test-wired.mjs (exit 0) and check:nul-bytes (exit 0, 'scanned 6734 text file(s) ... no raw ASCII control bytes'). Verdict lines: 'check-slot-lookup-ratchet --self-test: the live rule reports all 5 erasure shape(s) and stays silent on all 8 canonical spelling(s) ...' then 'slot-lookup ratchet holds: 107 unswept site(s) in 25 file(s), none new ... baseline key set verified against a11c1a5: no files added.'; 'query-options-erasure ratchet holds: 67 unswept non-test site(s) in 17 file(s)' whose self-test also re-proved guard adoption over BOTH gates ('every counted lint call in both gates AND in the closures they import routed through it'); 'check:entry-guard: 161 scripts/ file(s) ... 117 export bindings, 115 of them inert on import (2 known-unsafe)'. Heavy runs went through `bash scripts/pm/os-verify-lock.sh -c ...` (VERDICT command-exit 0, held 47s / 95s).\n\nDECLARED NARROWING of repo-wide `pnpm lint`: ran `eslint --no-inline-config --format json` over the three changed .mjs files instead - 3 files linted, 0 errors, 0 warnings, counts read from ESLint's own JSON output and all three returned as linted results rather than ignored. Sound because this repo enables no type-aware linting (`project:` appears nowhere in eslint.config.mjs), so a change confined to scripts/*.mjs cannot move the verdict of any file it does not contain. CI runs the full farm regardless.\n\nABLATIONS - four legs, both directions, each restored by `trap 'git checkout -- THEFILE' EXIT INT TERM`, each confirmed ON DISK by grepping the injected AND the deleted text before and after (counts below). NO BUILD STEP EXISTS FOR THESE: the gate, the rule and the fixtures are plain Node/ESM under scripts/ and eslint.config.mjs, loaded from source at run time with no dist/ in the path, so there is nothing to rebuild and no stale-artifact false green available; the on-disk confirmation is the whole of the evidence and it was taken every leg.\nA0 unwire (package.json, --self-test invocation removed): deleted-text 1 -> 0. check-self-test-wired RED, exit 1, '[self-test-not-run] scripts/check-slot-lookup-ratchet.mjs'. Restore confirmed 1.\nA1 UNDER-FIRE (eslint.config.mjs, SLOT_LOOKUPS narrowed to ['resolveService']): injected 0 -> 1, deleted 1 -> 0. --self-test RED, 7 failures (the getService/getRequestKernelService report shapes plus the grandfathering pair). Production ALSO RED, 25 problems, all ratchet-DOWN. Restore confirmed 0/1.\nA2 OVER-FIRE (eslint.config.mjs, selector 3's TSAnyKeyword type-argument test relaxed to any type argument): injected 0 -> 1, deleted 1 -> 0. --self-test RED, 2 failures - a DIFFERENT, disjoint set: 'a typed lookup is the whole point' and the #11681 narrow-interface boundary case. Production not run for this leg. Restore confirmed 0/1.\nA3 VERDICT, the load-bearing one (diffRatchet's `count > allowed` branch deleted): injected 0 -> 1, deleted 1 -> 0. Production GREEN, exit 0, same line 'slot-lookup ratchet holds: 107 unswept site(s) in 25 file(s), none new'; --self-test RED, 1 failure, 'diffRatchet: growth in a baselined file fails - expected 1 error(s), got 0'. That is the regression class this gate had no instrument for. Restore confirmed 0/1.\nNo case is green under both A1 and A2, and the A1/A2 red sets are disjoint.\n\nOBSERVED DIRECTION NOTE, reported rather than templated: this gate is NOT uniformly blind. Because a fall below the baseline is itself an error, a weakening broad enough to erase live sites reddens the production run too (A1 measured RED/RED). The blindness is real for a weakening over a shape with no live sites, for over-fire, for diffRatchet (A3), and for both refusals. The script header states this rather than claiming a uniform blindness.", "open_questions": [], "out_of_scope_findings": [] }Generated by Claude Code
yinlianghui commentedon Aug 25, 2026
os-dev-report
(Re-post of #12052 (comment) — its leading
os-dev-reportHTML-comment marker did not survive GitHub's body sanitizer, so the marker is literal text here. Same payload, byte for byte.){ "issue": 12052, "status": "done", "branch": "claude/issue-12052-slot-lookup-ratchet-selftest", "pr": "https://github.com/objectstack-ai/objectstack/pull/12154", "premise_still_valid": true, "summary": "scripts/check-slot-lookup-ratchet.mjs now ships a selfTest() and package.json wires it the sibling way (`node scripts/check-slot-lookup-ratchet.mjs --self-test && node scripts/check-slot-lookup-ratchet.mjs`). The script was restructured into measuringConfig/countRuleHits/measure/ruleBlockProblem/populationScopeProblem/diffRatchet/baselineKeysAddedSinceMergeBase/main (its structural twin check-query-options-erasure-ratchet.mjs's shape); behaviour, output text, exit codes and --update are unchanged, nothing is exported (so check:entry-guard's import-safety rule is not newly reached), and POPULATION_GLOB's literal spelling is untouched so dispatch-gates' hint extraction and its pins still read it. The self-test drives the REAL rule through the same measuring config and the same counting predicate the production run uses - 5 erasure shapes proved to report, 8 canonical spellings proved silent (including the #11681 narrow-per-consumer-interface boundary, pinned SILENT because the gate checks TYPED and never COMPLETE), the grandfathering channel on a synthetic witness pair that survives baseline zero, 6 diffRatchet cases, and both refusals in both directions. scripts/slot-lookup-baseline.json is untouched (git diff vs merge base: 0 lines). Two prose statements my change falsified were repaired in place (scripts/eslint-fatal-guard.mjs, scripts/check-query-options-erasure-ratchet.mjs, comment-only) - declared here and named in the PR body with its bounding scan; that is a 2-file amendment to the claim's declared surface. Zone-2 checks: (a) #11681's close comment reads exactly as the brief did - (c) not actionable as scoped, closed not planned, the gate's rule left untouched, so today's rule is the durable one; (b) the gate's rule is small enough that a self-test was the whole job, no restructure beyond function extraction; (c) check-self-test-wired DID move, as assumed. One reading of the brief did not reproduce: its positive control `grep -c 'selfTest|--self-test' scripts/check-self-test-wired.mjs` printed 36 at the seat and 92 in my worktree at origin/main a11c1a57d - both non-zero, so the control holds either way, but the number is not the same measurement.", "tests": "All at final commit 9fe3f66d5 (worktree /home/user/objectstack-12052, off fetched origin/main a11c1a57d). Exit codes captured before any pipe.\n\nPREMISE, re-measured in my own worktree with its positive control: `grep -c 'selfTest\\|--self-test' scripts/check-slot-lookup-ratchet.mjs` = 0 (exit 1); same pattern on scripts/check-self-test-wired.mjs = 92. Baseline read-only throughout: `git diff MERGEBASE HEAD -- scripts/slot-lookup-baseline.json | wc -l` = 0.\n\nWIRING GATE, before and after, quoting its own verdict lines: BEFORE (exit 0) 'every one of the 131 script(s) CI runs that ship a --self-test has that self-test run by CI ... 143 carrying --self-test in code ... 127 have their self-test run through the flag'; AFTER (exit 0) '... 132 script(s) ... 144 carrying ... 128 through the flag'. The population moved by exactly one in all three counters, so the gate now sees this gate.\n\nDERIVED GATE UNION at the final commit, from `node scripts/pm/dispatch-gates.mjs --repo objectstack-ai/objectstack` (script derived the change set itself: 4 paths vs merge base; header confirmed the answer is about objectstack-ai/objectstack at a28076a9f). All 9 exit 0: check:agent-test-spelling, check:cross-package-test-inputs, check:entry-guard, check:parse-guard, check:pnpm-filter-targets, check:query-options-erasure, check:slot-lookup, check-ci-filter-parity.mjs, check-cross-package-test-inputs.mjs. Plus check-self-test-wired.mjs (exit 0) and check:nul-bytes (exit 0, 'scanned 6734 text file(s) ... no raw ASCII control bytes'). Verdict lines: 'check-slot-lookup-ratchet --self-test: the live rule reports all 5 erasure shape(s) and stays silent on all 8 canonical spelling(s) ...' then 'slot-lookup ratchet holds: 107 unswept site(s) in 25 file(s), none new ... baseline key set verified against a11c1a5: no files added.'; 'query-options-erasure ratchet holds: 67 unswept non-test site(s) in 17 file(s)' whose self-test also re-proved guard adoption over BOTH gates ('every counted lint call in both gates AND in the closures they import routed through it'); 'check:entry-guard: 161 scripts/ file(s) ... 117 export bindings, 115 of them inert on import (2 known-unsafe)'. Heavy runs went through `bash scripts/pm/os-verify-lock.sh -c ...` (VERDICT command-exit 0, held 47s / 95s).\n\nDECLARED NARROWING of repo-wide `pnpm lint`: ran `eslint --no-inline-config --format json` over the three changed .mjs files instead - 3 files linted, 0 errors, 0 warnings, counts read from ESLint's own JSON output and all three returned as linted results rather than ignored. Sound because this repo enables no type-aware linting (`project:` appears nowhere in eslint.config.mjs), so a change confined to scripts/*.mjs cannot move the verdict of any file it does not contain. CI runs the full farm regardless.\n\nABLATIONS - four legs, both directions, each restored by `trap 'git checkout -- THEFILE' EXIT INT TERM`, each confirmed ON DISK by grepping the injected AND the deleted text before and after (counts below). NO BUILD STEP EXISTS FOR THESE: the gate, the rule and the fixtures are plain Node/ESM under scripts/ and eslint.config.mjs, loaded from source at run time with no dist/ in the path, so there is nothing to rebuild and no stale-artifact false green available; the on-disk confirmation is the whole of the evidence and it was taken every leg.\nA0 unwire (package.json, --self-test invocation removed): deleted-text 1 -> 0. check-self-test-wired RED, exit 1, '[self-test-not-run] scripts/check-slot-lookup-ratchet.mjs'. Restore confirmed 1.\nA1 UNDER-FIRE (eslint.config.mjs, SLOT_LOOKUPS narrowed to ['resolveService']): injected 0 -> 1, deleted 1 -> 0. --self-test RED, 7 failures (the getService/getRequestKernelService report shapes plus the grandfathering pair). Production ALSO RED, 25 problems, all ratchet-DOWN. Restore confirmed 0/1.\nA2 OVER-FIRE (eslint.config.mjs, selector 3's TSAnyKeyword type-argument test relaxed to any type argument): injected 0 -> 1, deleted 1 -> 0. --self-test RED, 2 failures - a DIFFERENT, disjoint set: 'a typed lookup is the whole point' and the #11681 narrow-interface boundary case. Production not run for this leg. Restore confirmed 0/1.\nA3 VERDICT, the load-bearing one (diffRatchet's `count > allowed` branch deleted): injected 0 -> 1, deleted 1 -> 0. Production GREEN, exit 0, same line 'slot-lookup ratchet holds: 107 unswept site(s) in 25 file(s), none new'; --self-test RED, 1 failure, 'diffRatchet: growth in a baselined file fails - expected 1 error(s), got 0'. That is the regression class this gate had no instrument for. Restore confirmed 0/1.\nNo case is green under both A1 and A2, and the A1/A2 red sets are disjoint.\n\nOBSERVED DIRECTION NOTE, reported rather than templated: this gate is NOT uniformly blind. Because a fall below the baseline is itself an error, a weakening broad enough to erase live sites reddens the production run too (A1 measured RED/RED). The blindness is real for a weakening over a shape with no live sites, for over-fire, for diffRatchet (A3), and for both refusals. The script header states this rather than claiming a uniform blindness.", "open_questions": [], "out_of_scope_findings": [] }Generated by Claude Code
yinlianghui commentedon Aug 25, 2026
Addendum — the dev caught a methodological error in my dispatch's positive control
The report flags this, and it is worth writing down properly because the dev was right and the failure is subtle:
Re-run at the seat just now, both patterns against the same tree:
The cause: I ran the control with a narrower pattern than the measurement. The target was measured with
selfTest\|--self-test; the control was run withselfTestalone. My dispatch then presented36as the control for that measurement, which it is not — it is the control for a different one.Why it matters even though the conclusion survives. The target reads
0under both patterns, so the finding is unaffected and the card was correctly premised. But the purpose of a positive control is to prove that the pattern you used can find something. Mine proved that a different pattern could. Had the--self-testhalf of my alternation been malformed — a mis-escaped pipe, a shell-quoting slip — the target would still have printed0, my control would still have printed36, and I would have reported a confidently wrong zero with what looked like evidence behind it.That is the exact failure mode the positive-control rule exists to prevent, and I reintroduced it inside the control. A control that does not exercise the measurement's own pattern is decoration.
⇒ Rule for this seat, recorded: a positive control must run byte-identical to the measurement, changing only the subject. Not a similar pattern, not a simpler one.
This joins the seat's error list (#6023 §4) as entry (11), and it is the same family as (4) and (9) already there — a partial reading presented as a complete one. Three of eleven now share that shape, which is the useful signal.
Credit where it is due: the dev did not have to report this. Both numbers were non-zero, the conclusion was unaffected, and quietly using their own reading would have gone unnoticed. Reporting a discrepancy in the dispatcher's evidence, with both numbers and the tree they came from, is exactly the behaviour that makes a Zone 2 "falsify my assumptions" instruction mean anything.
The ACCEPT above stands unchanged.
Generated by Claude Code