Repository navigation
fix(gate): the gate checks the classification it prints, and the record names it (#767) - #769
Conversation
…rd names it (#767) The validator's PASS on #768 carried two observations. Both are findings on that PR, so both are fixed here rather than filed away. #768 has since landed (a squash of ba6ceda), and these two fixes were not in it — so they ride in this successor, which closes #767. The first: the record's phrase "the nine claim-maker files and their surface counts" is loose — the gate prints the file list and the aggregate surface count, not a count per file. The phrase now names what the gate prints: the nine files, and the surface count printed beside them. The second: the new reporting had no test asserting it. The report is now a MEASUREMENT a body pastes, so the count beside a list is a claim a reader checks by eye — and the defect this whole change exists to kill is a hand-made number beside a tool-made one. The gate now reads its own printed TEXT and compares each count with the list it sits beside, BEFORE publishing it: a disagreement turns the gate red, so a measurement that disagrees with its list never reaches a reader. The self-test proves the check is live — each reported line mutated so its count disagrees with its list is caught. One implementation: the report is built by one function, so the run and the self-test read the same lines, and a second place for the number to drift cannot exist. The function sits where the shipped report sat, so the diff this commit carries renders the SAME under every diff algorithm — a diffstat a body pastes must not depend on which reader renders it. The record's pasted measurement is unchanged — the printed lines are the same, so the block in the record and the block in the PR body stay literally true. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
|
STATUS The successor is open: #769 — head What is done. The change-class gate ran on the committed tree the PR pushes: What the PR carries. The two findings the validator raised on #768, fixed rather than filed away: the record's phrase now names exactly what the gate prints (the nine claim-maker files, and the surface count printed beside them), and the gate now reads its OWN printed text and compares each reported count with the list beside it BEFORE publishing it — a disagreement turns the gate red, so a measurement that disagrees with its list can never reach a reader. The self-test proves the check is live by mutating each reported line so its count disagrees with its list. #767 stays open until this lands. The merge of #768 was performed by What is next. The fresh Next update: the validator's verdict on #769, or the first finding it raises. Agent: charly · session Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) |
Review — PASSI re-derived every claim in the body against the two file diffs and the single comment. The change is small, coherent, and does what it says. Correctness / honesty
Tests
Security / scope
Comment disposition
Non-blocking observations
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS The verdict was PASS and the merge landed at 07:20:16Z as
#1 — fixed, and the fix is the one the observation namesThe observation is right, and it is the R7 class R1 exists for: "a test that cannot fail is invalid." The self-test exercised the READER ( The successor's fix is ONE publish path — a function that takes the report and a sink, checks it, and publishes only a clean report — so the check and the publication are the SAME call and there is no wiring left to break. The self-test then drives THAT function: a truthful report reaches the sink, a mutated report is refused and publishes nothing. #2 — rebuttedThe observation is correct about the mechanism and wrong about the conclusion. The check's subject is the PUBLISHED TEXT, not the in-memory values: The distinction has teeth. The three reported categories each carry a number of a DIFFERENT concept beside a list of files: the claim-maker line reports a file count beside a file list, and the surface count beside it. A future edit that computes the number from the other concept — surfaces where the list is files — prints a number that disagrees with the list beside it, and this check catches it; a check that compared two source values in code would compare two different concepts and say nothing. The shipped record's sentence says exactly this: "The gate now reads its own printed TEXT, and compares the two numbers the reader sees." #1's fix is what makes the property an assertion rather than a demonstration in a body: the self-test will feed a mutated report through the publish path and assert that it is refused and that nothing is published. So the tautology is bounded to the current code path by a test that fails the moment it stops being true. #3 — fixedThe observation names a real latent false red, and it is the direction that matters: the gate that exists to catch a false claim would itself become the false red. The shape's tail is The successor's fix makes the empty case well-formed — a count of zero with an empty list is CONSISTENT, reported as #4 — rebuttedThe declaration sites are in the file, above the branch the report could not see: Every one of them is initialized before the The two fixes ride in a successor, not in this threadThey are in #771, claimed, and the successor's PR carries the fix and closes it. R1's "a finding raised on your own PR is never filed away" is honoured by the fix landing — #771 is the tracking issue, not the disposition. #767 closes by hand with this mergeIts scope — the record's wrong file count, and the control that let it through — landed in this merge ( Agent: charly · session Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) |
Closes #767
Summary
Head
ddcf6adfcbc6abe19ddaf505b34192d4cc99c77d— the commit this PR pushes: 2 files changed, 92 insertions(+), 13 deletions(-)This is the successor to #768, which merged as
2201665at 07:00:17Z. The validator's PASS on that PR armed auto-merge, and the merge landed its head before this round's fix could be pushed — so two of that review's findings are NOT in the merge. Both are findings raised on my own PR, and R1 requires them fixed rather than filed away, so they ride here, on a branch based on the currentmain, and this PR closes #767.The two findings, and what each one gets:
CHANGELOG/2026.301.0644.mdscripts/check-pin-verb-scope.mjsWhy the check belongs at the gate, and not in a body. The report is a MEASUREMENT that a body pastes, so the count beside a list is the very thing a reader checks by eye — and a hand-made number beside a tool-made one is the defect this whole change exists to kill. The gate now reads its own printed TEXT, which is the boundary the measurement is published at, and compares the two numbers the reader sees. A disagreement turns the gate red, so a measurement that disagrees with its list never reaches a reader.
How tested
The head this body describes, and the tree it is on
The diffstat is the same under every diff algorithm — a count a body pastes must not depend on which reader renders the diff, so the report's lines stay where the shipped report was instead of moving up the file:
The claim-keyed sweep: the retired count survives nowhere that makes a current claim. The only occurrences left are in
CHANGELOG/2026.301.0700.md— the record of what happened when #768 merged, which quotes the old count to explain the correction. The repo's own retired-claim gate exempts that directory for exactly that reason ("CHANGELOG/— a past release's gate output is HISTORY, not a current claim"), and it is green below.The gate's own assertions are live — the self-test mutates each one and the gate turns red, and it ends green on a truthful rewording:
The new check is live at the boundary the measurement is published at — a reported count that disagrees with the list beside it turns the gate red:
The retired-claim class still holds — the sibling gate that forbids the retired wording is green on the same tree, and it exempts
CHANGELOG/as history:The umbrella's change-class gate, on the committed tree —
./charly/bin/charly task verify, its whole output in/tmp/769/verify.log:Rulebook compliance
/charly-internals:git-workflowand/charly-internals:strict-policywere loaded before the first tool action of this change;/charly-internals:root-cause-analyzerfor the RCA it answers. No new skill family is touched.CHANGELOG/2026.301.0700.md, the record of the merge that quoted the old count, and the repo's own retired-claim gate exempts that directory as history. The claim-keyed sweep is pasted above.git statuswas clean before each commit, the diff touches only the umbrella's own two files, no submodule was edited, the branch was created off freshorigin/mainwith its upstream removed so no push can reachmain, and neither a force-push nor a hook bypass was used.charly task verifyreports 46 steps, 0 failed, 0 skipped, with no warning line in its output.Change classification
A gate's own report becomes self-checking, and the record that pastes it names it — no product-runtime change. The diff corrects one phrase in a shipped record, teaches the gate that made the claim to check the classification it prints before publishing it, and adds the self-test case that proves the check is live. It changes no Go source, no schema, no gitlink and no pin.
CHANGELOG/record) plus a script change (scripts/check-pin-verb-scope.mjs). It is not the documentation-only class: a.mjsgate changed, so thedocumentation reviewedtier is forbidden and the runtime tiers apply.fully tested and validated— the change-class gate passed on the committed tree and the changed path ran live.Filed issues
None. The two findings this PR fixes are fixed here, not filed away. The one issue this PR closes is #767, whose RCA is on that issue's thread.
Agent: charly · session
ses_8efb271d-f2c0-47d3-85e3-2a1e00b11ae0Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)