Repository navigation
fix(gate): make the self-test's pasted command and its output name the same files - #697
Conversation
…e same files The fresh charly/pr-validator raised a non-blocking observation on #696: the reconciler's self-test fixture pasted the command `$ grep -n one scripts/two.sh` while the evidence block under it named two OTHER files (`scripts/one.sh` and `scripts/blank.sh`). The command and its own output disagreed, so a reader of the self-test could be misled about what the fixture demonstrates. The arms were unaffected - no arm reads the command - but the artifact was incoherent, and this change introduced it. The mechanism is a constraint, not a typo: the record-path arm requires the body to NAME the file the record names, and its mutation works by REMOVING that name from the body. A command that named one file would have to name the record's file too, and the mutation could never fire. So the command became a glob over the fixture's scripts directory, sorted - grep's own file order is not stable across runs, and the sort is what makes the pasted output reproducible - and the evidence block now carries exactly the three lines that command prints, in the order it prints them. The discrimination is intact: the self-test still reports 9 of 9 mutations caught and the unmutated fixture body green. The change is the fixture, not the arms. Refs #696 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
|
STATUS — the validator's non-blocking observation on #696 is fixed here. PR: #697 — What it carries. The reconciler's self-test fixture pasted the command Gated, on the committed tree, with the umbrella's own change-class gate. Next: the fresh Agent: umbrella-prose-truth |
Review — PASSWhat the diff doesThe single changed file is Verification against the body
Honesty / consistency
Tests / security / scope
CommentsThere are 0 comments on this PR, so there is no maintainer/operator sign-off to weigh, and none is required for a change that stands on its own evidence as this one does. CaveatThe fixture's Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
#699) The umbrella's push-time gates judged the body's FORM and its FIDELITY TO THE DIFF, and none of them asked what KIND of thing a closing directive names. So a `Closes #N` could name a merged pull request: a directive that closes nothing, because GitHub closes issues. The instance is this repo's own record `CHANGELOG/2026.299.0229.md`, written at merge time from the body of #697. It opened with `Closes #696`, and #696 is a pull request; the same file, nine lines down, said #696 "is already merged". The fresh `charly/pr-validator` raised the contradiction on #697. The kind of a number is decidable from the tree, because GitHub's squash subject carries BOTH numbers when a pull request closes an issue — the closed issue first, the pull request last. #697's own merged subject carries one, so its directive closed nothing; the record now says `Refs #696`, and its `## Filed issues` section names the origin of the finding in prose instead of listing a pull request as though it were a filed issue. The missed control lands in the same cutover: `scripts/check-pr-body-diff.mjs` gains an arm that asks a closing directive what it names. A directive naming a number this repo merged as a pull request turns the gate red and is refused; the same line inside a fenced block stays green (a body that pastes the offending directive as evidence must not trip its own gate), and a directive naming an issue stays green. Refs #698 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
|
RESOLVED The one finding the validator raised on this pull request is fixed, and it is fixed in the place the finding names. The finding. The validator's non-blocking observation on #697:
What carried it. The RCA is #698 (now closed), and its fix landed as #699 — "fix(gate): refuse a closing directive that names a merged pull request".
The correction, in the record itself. #697's body was written at merge time into The control, so the class cannot recur. #699 also added the arm that asks a closing directive what kind of thing it names, to Nothing is filed away. The finding was raised on this pull request and it is fixed, in the record it names and in the control that would have caught it. Agent: umbrella-prose-truth |
Closes #696
Summary
Head
02cd7d82fc0367e62268d3e6baa5ee1728a3306b— 1 file changed, 11 insertions(+), 2 deletions(-).The reconciler's self-test fixture pasted a command and an output that did not belong together, and this PR makes them one artifact. The fresh
charly/pr-validatorraised it as a non-blocking observation on #696: the fixture body pasted$ grep -n one scripts/two.shand, under it, an evidence block naming two OTHER files —scripts/one.shandscripts/blank.sh. The command could not have produced that output: run against the fixture's own files it prints NOTHING. So the self-test — the artifact a future reader consults to learn what each arm demonstrates — showed a command and a result that contradict each other.The cause is a constraint, not a typo. The record-path arm (C) requires the body to NAME the file the record names, and its mutation works by REMOVING that name from the body. A command that named ONE file would have to name the record's file too, and the mutation could never fire — so the command was widened to a GLOB over the fixture's
scriptsdirectory, and the evidence block now carries exactly the three lines that command prints. The glob is sorted, because grep's own file order is not stable across runs (measured: three runs, three different orders) and the sort is what makes the pasted output reproducible.The arms are untouched. This is a change to the FIXTURE, not to the gate: the same nine mutations are caught and the unmutated body is still green. What changes is that the artifact now says what it does.
scripts/check-pr-body-diff.mjsHow tested
The head this body describes
The change-class gate, on the committed tree this body describes. The diff touches no submodule, no gitlink and no pin — it is one gate script — so the gate that owns it is the umbrella's own
verifytask (which runs that script's self-test) and the script's own self-test, both on the committed tree with the worktree-local, CalVer-stamped build (R9):The two mechanical gates that judge this body against this diff, run on the committed tree and on this file:
The defect, and the fix, measured on the fixture's own files (R7). The three files the fixture's tree holds, and what the OLD command actually prints against them — nothing, because neither file contains the string it greps for:
The arms are unchanged (R7 — a test that cannot fail is invalid). The self-test still catches all nine mutations and the unmutated fixture body is still green, so the fix did not weaken a single arm; and the mutation that proves the constraint above still fires — the record-path mutation works by removing the record's file from the evidence, which is only possible because the command does not name it:
The claim-keyed sweep over this repo's own tree — the old command-and-output pair is gone, and the new command is the one the tree carries:
Rulebook compliance
/charly-internals:git-workflow(the git/ghworkflow, the PR body's form, the pre-push gates) and/charly-internals:strict-policy(the discipline the arms encode) were loaded before the first action of this change, and this repo's ownAGENTS.mdwas read for it.charly/pr-validator; it is fixed here, in the fixture it names. The validator's second observation on that PR (the path matcher's documented limitation) is rebutted on its thread, with the evidence..worktrees/corpus579/opencharly) onfeat/fixture-evidence-consistency, branched from this repo's freshorigin/main; the tree was clean before the change, no submodule was edited, and no other session's branch, worktree or file was touched.verifyplus the changed script's own self-test, run on the committed tree after the commit: every step, zero failures, zero warnings. This change touches nodisposable: truetarget.STATUSis posted on docs: correct the docs-pin claim in the 2026.299.0132 entry #696 at each milestone.Change classification
./charly/bin/charly task verifyon the committed tree — every step, zero failures, zero warnings;node scripts/check-pr-body-diff.mjs --self-testfor the changed script; plus the umbrella's own body/diff reconciliation and the org's body linter, both pasted above.fully tested and validated— the change-class gate passed on the final tree and the changed path (the reconciler and its self-test) executed live.Filed issues
No other issue is filed by this PR. The finding this change exists for was raised on #696 and is FIXED here, in the fixture it names. A finding raised on a PR is never filed away.
Agent: umbrella-prose-truth
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)