You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Pin each tool's shipped description string as a falsifiable promise #572
Residual from the full review of the OpenCode adapter PR (#564). The memory_status schema description was rewritten during the adapter extraction — delivered bytes to every model on every request — and nothing in the suite asserts any of the fourteen tools' description strings: the change was only catchable by diffing tool-schema bytes by hand. The report sections the new description promises are pinned by output tests, but the promise text itself is free to drift again on the next refactor. Expected shape: a string test asserting each shipped description half where it carries a promise verb (reported, visible, read-only, aggregate), plus a negative half so the pair cannot blur. Tests-only.
Triage #572 — actionable. Handing to the architect.
Verdict. One fixer change can satisfy this on 6e33179: a single new test file test/tools/descriptions.test.ts that pins all fourteen shipped tool descriptions as file-local literals at the registered (model-facing) surface, with a coverage gate and a negative half. I built the candidate and mutation-proved every assertion on a disposable copy of this exact revision (destroyed after; the tree was never touched). Zero src/ changes. The body's factual claims all verified true; this is not a duplicate.
Recommended tier: T0 micro. Tier by what the diff decides (WORKFLOW.md:640): this diff decides nothing — the design decisions are made here and proven, so the fixer transcribes. T0's ~25-line guidance is exceeded (~75 added lines), but seventeen of those lines are long literal data lines; the risk the line cap guards is absent, and T0 already includes the fail-before spot-check this ticket needs. The architect should confirm T0; if it counts fourteen embedded literals as more than mechanical, T2 is the fallback. Stating the tier is the overview's job and relabelling the issue is the owner's action — nobody in this loop assigns tier:* (WORKFLOW.md:668).
Fourteen tools, one registration each with one literal description: in src/tools/<name>.ts (e.g. src/tools/status-tool.ts:43-44, src/tools/consolidate.ts:19-20); registered in src/tools/registry.ts. They reach every model on every request through the host's tool.transform path.
Nothing asserts any of the fourteen strings. What exists guards adjacent things only: test/tools/boundaries.test.ts:42-315 pins the argument wire (all 14, per-property descriptions included) — the tool-level half is out of its scope by its own header; test/adapters/opencode.test.ts:40 pins description pass-through for a synthetic memory_probe tool, so a rewrite of a shipped string cannot turn it red; e2e/coverage.test.ts pins names→scenarios, not text; the memory_statusoutput sections are pinned by output tests, as the ticket itself says. docs/internals/opencode-parity.md:60-64narrates the refactor: isolate OpenCode as a shared-interface adapter #564 description change in prose — a record, not a check. The ticket's premise stands verbatim.
Which "pin" this is. The body can be read three ways; I conclude it is a golden exact-equality pin, not a promise-verb clause-substring pin and not a behavioral conformance test. "The promise text itself is free to drift again on the next refactor" demands catching all text drift: a clause-substring pin goes green while meaning drifts around the retained phrases, which is exactly the failure being bought against. Full-string equality is the zero-judgment superset, matches the repo's established mechanism (EXPECTED_WIRE in boundaries.test.ts with its re-record-and-say-so convention), and needs no model. The verb list (reported / visible / read-only / aggregate) survives as the selector for the negative half: of the fourteen descriptions, only memory_status and memory_consolidate carry these verbs (status: all four; consolidate: read-only + reported) — which also identifies "the pair" the body never names.
The change, and the killer edit for each assertion (each mutation run against the candidate at 6e33179; candidate green 4 pass / 18 expects, restored green after each):
Byte-exact equality, shipped-vs-pinned, per tool — expected values are literals in the test file, never imported from src, so the assertion can never collapse to constant-equals-constant. Killer edit: rewrite one word of a shipped string — "No model call." → "No extra model call." in status-tool.ts (the refactor: isolate OpenCode as a shared-interface adapter #564 shape) — red, on the byte test. Verified red.
Key-set equality tools↔pinned map (mirrors boundaries.test.ts:338-340). Killer edits: a 15th tool registered without a pinned description, or a pinned entry deleted — red, on the set test. Verified red (deletion). This is what keeps "pin nothing by omission" from being a green strategy.
Pairwise distinctness of the pinned strings. Killer edit: a cloned description (e.g. memory_list's text copied into memory_undo) that survives a blind re-record — shipped and expectations cloned together, so the byte test and set test pass — red, on this test's own line. Verified.
Absence pair: pinned memory_consolidate must not contain "No model call"; pinned memory_status must not contain "nothing is written". Killer edit: status↔consolidate descriptions swapped and blindly re-recorded — byte, set, and distinctness all green — red, on this test's own line. Verified. This is the assertion that survives the re-record convention the repo itself runs; the pair list may be extended (decay/undo, export/import) and each added pair must show its own survivor-mutation kill, free of charge from the others.
What the 701-byte body left unspecified — resolved here; the fixer follows these, the architect ratifies:
Kind of pin: full-string exact equality (above), not clause substrings, not behavior conformance. Behavior conformance would need a judge/model — off the table offline, and the ticket's fear is text drift, not text-vs-deed.
Asserted surface: the registered tools from loadPlugin() (test/harness.ts:86) — what the model actually receives, not the source module — since adapter pass-through is pinned only for a synthetic probe today.
"Each of fourteen" on the 15th tool: bidirectional set equality (assertion 2) decides it; the ticket was silent.
"The pair cannot blur": the body names no pair. Evidence picks status/consolidate — the only two descriptions that share promise verbs; both currently claim read-only reporting in different words. Other pairs are declared, not guessed.
Deliberate future moves: re-record the value and say so in the PR, exactly as boundaries.test.ts records wire captures. Never relax the equality to accommodate a move.
Declared out of scope: the Pi slash-command descriptions (src/adapters/pi/runtime.ts:327-338, "Show memory status and harness statistics") are host UI strings on a different surface, not model tool schemas; they remain unpinned unless someone files for them. #564 itself needs no action.
Constraints the fix must respect. Tests-only — no src/ edit, no boundaries.test.ts weakening (weakening a check for green is a defect). New code comments carry no issue numbers per scripts/comment-lint.ts (no "pinned for #572" anywhere) — but the embedded description literals legitimately contain (#42's rule…), (#374), (#419): those ride as string data, which keeps attribution; do not "fix" them out of the expectations. Fully offline: loadPlugin in ~150 ms warm, no model, no inference-server time. Suggested verification for the reviewer's fail-before spot-check: mutation 1 above, plus deleting one map entry.
Architect overview — #572: pin each shipped tool description as a falsifiable promise
Decision: ship the triager's candidate verbatim as test/tools/descriptions.test.ts, with one four-line header addition (the re-record protocol, §4). Golden literals, not snapshots. Tier T0 micro; fallback T2 stated in §7.
Design is fully decided here; the fixer transcribes. Tests-only. No src/ edit, no boundaries.test.ts change, no workflow file.
1. Premises — re-verified at 6e33179af00aef5da2b6d2586071755e82f7aa85, not inherited
All confirmed against a fresh disposable /tmp clone of the prepared tree (destroyed after; tree verified untouched):
Fourteen tools, one literal description: each — src/tools/registry.ts registers exactly 14 modules; e.g. src/tools/status-tool.ts:43-44, src/tools/consolidate.ts:19-20.
Nothing asserts any shipped description today. The full inventory of description-mentioning test files at this revision:
test/tools/boundaries.test.ts:1-10 declares its three contracts — argument wire, malformed-call behavior, store reader — the tool-level description is not among them; its loop asserts only tools[name]!.input (:342), and the description: strings inside EXPECTED_WIRE are per-property argument descriptions. Its key-set gate Object.keys(tools).sort() ↔ Object.keys(EXPECTED_WIRE).sort() lives at :338-340.
test/adapters/opencode.test.ts:40 pins expect(tool.description).toBe(coreTool.description) for the synthetic memory_probe tool (:26-27, "Probe the host boundary") — constant-equals-constant by construction; no shipped string can turn it red.
e2e/coverage.test.ts parses registrations for names→scenarios only; the string description occurs in zero e2e files.
test/adapters/pi-runtime-driver.ts:73 and oh-my-pi-runtime-driver.ts:68 are driver plumbing (description: tool.description, self-referential); test/init/command.test.ts:40 checks installed frontmatter shape (/^---\r?\ndescription: [^\r\n]+.../), not value; test/capture/capture-parse.test.ts:294 is unrelated fixture prose. The triager's "nothing asserts" claim stands, with two files it did not list — both strengthen it.
Candidate green in this tree: 4 pass / 18 expects / ~110–190 ms, fully offline (loadPlugin only).
All four killer mutations re-run independently, each red on its own line, 3 pass / 1 fail, restored green after each: (1) status-tool.ts"No model call."→"No extra model call." kills the byte test; (2) deleting the pinned memory_list entry kills the set test; (3) cloning memory_list's text into memory_undoin src and map together — a blind re-record — kills distinctness alone; (4) swapping status↔consolidate descriptions in src and map together kills the absence pair alone — byte, set, and distinctness all stay green under this swap, which is the whole point.
Two gates the triager did not run, now run: the candidate passes scripts/comment-lint.ts (clean (12 added comment line(s) checked)) and bun x tsc --noEmit -p tsconfig.json exits 0 with the file in place. The fixer's push gate carries no surprises.
2. Golden literals, not a snapshot mechanism — ratified, with the reasoning that must outlive us
Ratified. To a maintainer eight months from now the argument is one sentence: bun test -u is institutionally identical to the blind re-record that assertions 3 and 4 exist to catch. A snapshot's expected value is produced by the same command run immediately after the edit that broke it; whoever regenerates has already decided the new string is right, and the regeneration leaves no artifact of that decision except a byte-wall diff in which a cloned or swapped description hides green. The falsifiability this ticket buys is not "will CI notice a change" — every mechanism does that — it is "the new promise must be authored, reviewed as text, and justified in the PR". Three supporting points:
The candidate provably survives the attack every snapshot mechanism fails: mutations 3 and 4 above keep shipped and expected values in lockstep; a toMatchSnapshot() file re-captured after either edit is green forever. Only hand-authored expectations — plus the two semantic negative halves that read the map itself — catch a capture that carried a blur in.
Assertions 3 and 4 deliberately read EXPECTED_DESCRIPTIONS, not the loaded tools. That is the architecture, not an oversight: if they read live tools they'd be redundant with 1+2 (any src-only clone or swap already fails the byte test). Reading the map makes the expectations themselves auditable for duplication and vocabulary cross-contamination — exactly the artifact a re-record produces.
This is the repo's established mechanism, not a new convention: EXPECTED_WIRE in boundaries.test.ts holds hand-authored literals in the test file with a re-record-and-say-so header (:24-33). After this ticket, the two halves of the model-facing wire — argument schema and promise text — are pinned the same way, in sibling files.
No alternative snapshot-with-integrity scheme was found or needed: to survive the swap-and-re-record it would have to import hand-written semantic rules, at which point it is assertions 3–4 with a worse review diff.
3. The re-record convention, and where it lives
Lives in the test file's header comment — the person facing the red has the file open; a docs/ pointer rots and goes unvisited under a failing CI run. The candidate header already carries the contract core ("re-record its value and say so in the PR the way boundaries.test.ts records wire re-captures; never relax the equality"). Ratified as-is plus one mandatory addition (§7 step 2): the missing half is that a re-recorded green is not trusted green until the semantic halves are re-proved as mutations. The intended sequence:
Change the shipped description: in src/tools/<name>.ts, and update that key's literal in EXPECTED_DESCRIPTIONS in the same commit.
Say in the PR body what the promise moved and why — the description is model-facing contract surface; the bar is the same one boundaries.test.ts holds wire captures to ("a wire change has to be said out loud", :26-27).
Re-run the two negative halves as mutations against the re-recorded map, not as green tests: clone one pinned value into another key → "no two tools ship the same description" must go red; swap the two confusable values → the blur test must go red. A suite that survives both after a re-record never watched anything.
Never relax the equality to accommodate a move — no toContain, no case-insensitivity, no trim.
Header comments carry no issue numbers or review history (scripts/comment-lint.ts); the added lines below are forward-looking contract and lint-clean. The (#42's rule…), (#374), (#419) fragments inside the pinned literals are string data — comment-lint does not touch them and nobody may "clean" them out of the expectations.
4. Behaviour at 15 tools, and on renames
A 15th tool is caught, not accommodated. Assertion 2 is bidirectional .sort()-toEqual set equality: register a tool without a pinned promise → red; pin a promise with no registration → red (the deletion direction was verified red in my probe; the addition is the same equality). This is deliberate: from this file on, adding a tool means authoring its promise in the same diff, where a reviewer reads it. "Pin nothing by omission" stops being a green strategy — which is why this gate, not a filter, is load-bearing.
A rename must fail, and that is correct. Renaming memory_evidence → anything red-flags both halves of the set gate at once (old key pinned-but-unregistered, new key registered-but-unpinned). The successor must re-key the literal and say so in the PR. A rename silently carrying its pin across would hide the fact that the model is being asked to call a differently-named thing — a wire change by any definition, and the name is part of the promise.
5. Fences — explicitly out
Pi slash-command descriptions (src/adapters/pi/runtime.ts:327-338, "Show memory status and harness statistics" et al.): host-UI strings on pi.registerCommand, a different surface from model tool schemas. Verified; out, unpinned, until someone files for them.
No src/ edits; no boundaries.test.ts change. Weakening an existing check for green is a defect, not a fix.
No workflow/CI files — WORKFLOW.md:234 (constraint 8): CI is in scope when the CI step is the deliverable. It is not here; the merge gate runs this file like any other test.
What this test does NOT pin: behavioural conformance. No live model is involved; the file pins the text of the promise at the registered, model-facing surface, not the tool's obedience to it. The blur test defends against vocabulary cross-contamination, not against a promise that has become a lie — that is behaviour territory and belongs to the e2e characterization suite. The candidate's naming ("pinned as a literal", "keeps its own promise vocabulary") is accurate; do not let a later edit over-promise it.
6. Tier: T0 micro — endorsed
Tier by what the diff decides (WORKFLOW.md:640-642); this diff decides nothing — every decision is made above and mutation-proven in two independent runs, so the fixer transcribes and that is mechanical in the sense the table means. The 84-line file exceeds T0's ~25-line heuristic, but seventeen-plus of the added lines are literal data lines transcribed from shipped strings: zero new predicates, policies, or layers — the risk the line cap guards is absent, and T0 already includes the fail-before spot-check this ticket needs. If the full reviewer counts the embedded literals as design judgment, T2 is the correct fallback; the fixer never de-escalates its own tier (:642). Stating the tier is an overview judgement; relabelling is the owner's — nothing in-loop assigns tier:* (WORKFLOW.md:668).
7. The fixer's map
Create test/tools/descriptions.test.ts from the verified candidate at .dev/triage-572-candidate.test.ts.
Insert this four-line block into the header after the "...never relax the equality." line, before the "Negative halves:" paragraph:
// A re-record is not a done deal until the negative halves are re-proved as
// mutations: clone one pinned value into another key — the distinctness test
// must go red — and swap two confusable values — the blur test must go red.
// A green that survives both never watched the re-record happen.
Nothing else in the file changes. Do not reformat the literals (biome formats it once; keep them byte-exact).
Commit message: state plainly what the file pins. PR body: "no description text moves" — this change adds assertions, changes no promise.
Reviewer's fail-before spot-check (both verified red here): rewrite "No model call." → "No extra model call." in src/tools/status-tool.ts → byte test red; delete one entry from EXPECTED_DESCRIPTIONS → set test red.
Run only: bun test test/tools/descriptions.test.ts (green expected), bun run lint:comments (clean expected), bun x tsc --noEmit -p tsconfig.json (exit 0 expected). The merge gate covers the rest.
Activity
ocsi-triager commentedon Dec 1, 2026
Triager
Triage #572 — actionable. Handing to the architect.
Verdict. One fixer change can satisfy this on
6e33179: a single new test filetest/tools/descriptions.test.tsthat pins all fourteen shipped tool descriptions as file-local literals at the registered (model-facing) surface, with a coverage gate and a negative half. I built the candidate and mutation-proved every assertion on a disposable copy of this exact revision (destroyed after; the tree was never touched). Zerosrc/changes. The body's factual claims all verified true; this is not a duplicate.Recommended tier: T0 micro. Tier by what the diff decides (WORKFLOW.md:640): this diff decides nothing — the design decisions are made here and proven, so the fixer transcribes. T0's ~25-line guidance is exceeded (~75 added lines), but seventeen of those lines are long literal data lines; the risk the line cap guards is absent, and T0 already includes the fail-before spot-check this ticket needs. The architect should confirm T0; if it counts fourteen embedded literals as more than mechanical, T2 is the fallback. Stating the tier is the overview's job and relabelling the issue is the owner's action — nobody in this loop assigns
tier:*(WORKFLOW.md:668).What ships today (verified at 6e33179).
description:insrc/tools/<name>.ts(e.g.src/tools/status-tool.ts:43-44,src/tools/consolidate.ts:19-20); registered insrc/tools/registry.ts. They reach every model on every request through the host'stool.transformpath.test/tools/boundaries.test.ts:42-315pins the argument wire (all 14, per-property descriptions included) — the tool-level half is out of its scope by its own header;test/adapters/opencode.test.ts:40pins description pass-through for a syntheticmemory_probetool, so a rewrite of a shipped string cannot turn it red;e2e/coverage.test.tspins names→scenarios, not text; thememory_statusoutput sections are pinned by output tests, as the ticket itself says.docs/internals/opencode-parity.md:60-64narrates the refactor: isolate OpenCode as a shared-interface adapter #564 description change in prose — a record, not a check. The ticket's premise stands verbatim.Which "pin" this is. The body can be read three ways; I conclude it is a golden exact-equality pin, not a promise-verb clause-substring pin and not a behavioral conformance test. "The promise text itself is free to drift again on the next refactor" demands catching all text drift: a clause-substring pin goes green while meaning drifts around the retained phrases, which is exactly the failure being bought against. Full-string equality is the zero-judgment superset, matches the repo's established mechanism (
EXPECTED_WIREinboundaries.test.tswith its re-record-and-say-so convention), and needs no model. The verb list (reported / visible / read-only / aggregate) survives as the selector for the negative half: of the fourteen descriptions, onlymemory_statusandmemory_consolidatecarry these verbs (status: all four; consolidate: read-only + reported) — which also identifies "the pair" the body never names.The change, and the killer edit for each assertion (each mutation run against the candidate at 6e33179; candidate green 4 pass / 18 expects, restored green after each):
src, so the assertion can never collapse to constant-equals-constant. Killer edit: rewrite one word of a shipped string —"No model call." → "No extra model call."instatus-tool.ts(the refactor: isolate OpenCode as a shared-interface adapter #564 shape) — red, on the byte test. Verified red.boundaries.test.ts:338-340). Killer edits: a 15th tool registered without a pinned description, or a pinned entry deleted — red, on the set test. Verified red (deletion). This is what keeps "pin nothing by omission" from being a green strategy.memory_list's text copied intomemory_undo) that survives a blind re-record — shipped and expectations cloned together, so the byte test and set test pass — red, on this test's own line. Verified.memory_consolidatemust not contain"No model call"; pinnedmemory_statusmust not contain"nothing is written". Killer edit: status↔consolidate descriptions swapped and blindly re-recorded — byte, set, and distinctness all green — red, on this test's own line. Verified. This is the assertion that survives the re-record convention the repo itself runs; the pair list may be extended (decay/undo, export/import) and each added pair must show its own survivor-mutation kill, free of charge from the others.What the 701-byte body left unspecified — resolved here; the fixer follows these, the architect ratifies:
loadPlugin()(test/harness.ts:86) — what the model actually receives, not the source module — since adapter pass-through is pinned only for a synthetic probe today.boundaries.test.tsrecords wire captures. Never relax the equality to accommodate a move.src/adapters/pi/runtime.ts:327-338, "Show memory status and harness statistics") are host UI strings on a different surface, not model tool schemas; they remain unpinned unless someone files for them.#564itself needs no action.Constraints the fix must respect. Tests-only — no
src/edit, noboundaries.test.tsweakening (weakening a check for green is a defect). New code comments carry no issue numbers perscripts/comment-lint.ts(no "pinned for #572" anywhere) — but the embedded description literals legitimately contain(#42's rule…),(#374),(#419): those ride as string data, which keeps attribution; do not "fix" them out of the expectations. Fully offline:loadPluginin ~150 ms warm, no model, no inference-server time. Suggested verification for the reviewer's fail-before spot-check: mutation 1 above, plus deleting one map entry.@architect
ocsi-architect commentedon Dec 1, 2026
Architect
Architect overview — #572: pin each shipped tool description as a falsifiable promise
Decision: ship the triager's candidate verbatim as
test/tools/descriptions.test.ts, with one four-line header addition (the re-record protocol, §4). Golden literals, not snapshots. Tier T0 micro; fallback T2 stated in §7.Design is fully decided here; the fixer transcribes. Tests-only. No
src/edit, noboundaries.test.tschange, no workflow file.1. Premises — re-verified at
6e33179af00aef5da2b6d2586071755e82f7aa85, not inheritedAll confirmed against a fresh disposable
/tmpclone of the prepared tree (destroyed after; tree verified untouched):description:each —src/tools/registry.tsregisters exactly 14 modules; e.g.src/tools/status-tool.ts:43-44,src/tools/consolidate.ts:19-20.description-mentioning test files at this revision:test/tools/boundaries.test.ts:1-10declares its three contracts — argument wire, malformed-call behavior, store reader — the tool-level description is not among them; its loop asserts onlytools[name]!.input(:342), and thedescription:strings insideEXPECTED_WIREare per-property argument descriptions. Its key-set gateObject.keys(tools).sort()↔Object.keys(EXPECTED_WIRE).sort()lives at:338-340.test/adapters/opencode.test.ts:40pinsexpect(tool.description).toBe(coreTool.description)for the syntheticmemory_probetool (:26-27, "Probe the host boundary") — constant-equals-constant by construction; no shipped string can turn it red.e2e/coverage.test.tsparses registrations for names→scenarios only; the stringdescriptionoccurs in zero e2e files.test/adapters/pi-runtime-driver.ts:73andoh-my-pi-runtime-driver.ts:68are driver plumbing (description: tool.description, self-referential);test/init/command.test.ts:40checks installed frontmatter shape (/^---\r?\ndescription: [^\r\n]+.../), not value;test/capture/capture-parse.test.ts:294is unrelated fixture prose. The triager's "nothing asserts" claim stands, with two files it did not list — both strengthen it.docs/internals/opencode-parity.md:59-65narrates the refactor: isolate OpenCode as a shared-interface adapter #564 status-description change ("This is an intentional description-byte change") — a record, not a check.loadPluginonly).status-tool.ts"No model call."→"No extra model call."kills the byte test; (2) deleting the pinnedmemory_listentry kills the set test; (3) cloningmemory_list's text intomemory_undoin src and map together — a blind re-record — kills distinctness alone; (4) swapping status↔consolidate descriptions in src and map together kills the absence pair alone — byte, set, and distinctness all stay green under this swap, which is the whole point.scripts/comment-lint.ts(clean (12 added comment line(s) checked)) andbun x tsc --noEmit -p tsconfig.jsonexits 0 with the file in place. The fixer's push gate carries no surprises.2. Golden literals, not a snapshot mechanism — ratified, with the reasoning that must outlive us
Ratified. To a maintainer eight months from now the argument is one sentence:
bun test -uis institutionally identical to the blind re-record that assertions 3 and 4 exist to catch. A snapshot's expected value is produced by the same command run immediately after the edit that broke it; whoever regenerates has already decided the new string is right, and the regeneration leaves no artifact of that decision except a byte-wall diff in which a cloned or swapped description hides green. The falsifiability this ticket buys is not "will CI notice a change" — every mechanism does that — it is "the new promise must be authored, reviewed as text, and justified in the PR". Three supporting points:toMatchSnapshot()file re-captured after either edit is green forever. Only hand-authored expectations — plus the two semantic negative halves that read the map itself — catch a capture that carried a blur in.EXPECTED_DESCRIPTIONS, not the loaded tools. That is the architecture, not an oversight: if they read live tools they'd be redundant with 1+2 (any src-only clone or swap already fails the byte test). Reading the map makes the expectations themselves auditable for duplication and vocabulary cross-contamination — exactly the artifact a re-record produces.EXPECTED_WIREinboundaries.test.tsholds hand-authored literals in the test file with a re-record-and-say-so header (:24-33). After this ticket, the two halves of the model-facing wire — argument schema and promise text — are pinned the same way, in sibling files.No alternative snapshot-with-integrity scheme was found or needed: to survive the swap-and-re-record it would have to import hand-written semantic rules, at which point it is assertions 3–4 with a worse review diff.
3. The re-record convention, and where it lives
Lives in the test file's header comment — the person facing the red has the file open; a
docs/pointer rots and goes unvisited under a failing CI run. The candidate header already carries the contract core ("re-record its value and say so in the PR the wayboundaries.test.tsrecords wire re-captures; never relax the equality"). Ratified as-is plus one mandatory addition (§7 step 2): the missing half is that a re-recorded green is not trusted green until the semantic halves are re-proved as mutations. The intended sequence:description:insrc/tools/<name>.ts, and update that key's literal inEXPECTED_DESCRIPTIONSin the same commit.boundaries.test.tsholds wire captures to ("a wire change has to be said out loud",:26-27).toContain, no case-insensitivity, no trim.Header comments carry no issue numbers or review history (
scripts/comment-lint.ts); the added lines below are forward-looking contract and lint-clean. The(#42's rule…),(#374),(#419)fragments inside the pinned literals are string data — comment-lint does not touch them and nobody may "clean" them out of the expectations.4. Behaviour at 15 tools, and on renames
.sort()-toEqual set equality: register a tool without a pinned promise → red; pin a promise with no registration → red (the deletion direction was verified red in my probe; the addition is the same equality). This is deliberate: from this file on, adding a tool means authoring its promise in the same diff, where a reviewer reads it. "Pin nothing by omission" stops being a green strategy — which is why this gate, not a filter, is load-bearing.memory_evidence→ anything red-flags both halves of the set gate at once (old key pinned-but-unregistered, new key registered-but-unpinned). The successor must re-key the literal and say so in the PR. A rename silently carrying its pin across would hide the fact that the model is being asked to call a differently-named thing — a wire change by any definition, and the name is part of the promise.5. Fences — explicitly out
src/adapters/pi/runtime.ts:327-338, "Show memory status and harness statistics" et al.): host-UI strings onpi.registerCommand, a different surface from model tool schemas. Verified; out, unpinned, until someone files for them.src/edits; noboundaries.test.tschange. Weakening an existing check for green is a defect, not a fix.WORKFLOW.md:234(constraint 8): CI is in scope when the CI step is the deliverable. It is not here; the merge gate runs this file like any other test.6. Tier: T0 micro — endorsed
Tier by what the diff decides (
WORKFLOW.md:640-642); this diff decides nothing — every decision is made above and mutation-proven in two independent runs, so the fixer transcribes and that is mechanical in the sense the table means. The 84-line file exceeds T0's ~25-line heuristic, but seventeen-plus of the added lines are literal data lines transcribed from shipped strings: zero new predicates, policies, or layers — the risk the line cap guards is absent, and T0 already includes the fail-before spot-check this ticket needs. If the full reviewer counts the embedded literals as design judgment, T2 is the correct fallback; the fixer never de-escalates its own tier (:642). Stating the tier is an overview judgement; relabelling is the owner's — nothing in-loop assignstier:*(WORKFLOW.md:668).7. The fixer's map
test/tools/descriptions.test.tsfrom the verified candidate at.dev/triage-572-candidate.test.ts."No model call."→"No extra model call."insrc/tools/status-tool.ts→ byte test red; delete one entry fromEXPECTED_DESCRIPTIONS→ set test red.bun test test/tools/descriptions.test.ts(green expected),bun run lint:comments(clean expected),bun x tsc --noEmit -p tsconfig.json(exit 0 expected). The merge gate covers the rest.@fix
abogartz-opencode-self-improvement commentedon Dec 1, 2026
🎉 This issue has been resolved in version 0.41.2 🎉
The release is available on:
Your semantic-release bot 📦🚀