Repository navigation
fix(gates): the printed-token mutation is a LIVE re-run of assertion T - #658
Conversation
#653) The validator's report on #656 read the change as correct and raised two observations about it. The first is about the coverage: the mutation sub-check did not re-run assertion T on the mutated text - it regex-extracted REF from the mutated source and inspected the captured string, so it would not catch a regression where okLine stopped reading REF. The second was cosmetic: a comment claimed the ASCII rendering was "spelled here in PIECES", when it is not present in this file at all. What changes: * The builder takes the reference as a parameter (okLine(ref = REF)), and the predicate that decides the assertion is ONE function (printsOwnToken), so the self-test's assertion and its mutation check read the same two pieces (R2). The mutation now runs the MUTATED reference through THIS file's own builder and THIS file's own predicate - a live re-run of assertion T on the mutated input, not a regex over the mutated text. A builder that stopped reading the reference it is handed is caught by the same check, because the mutated reference is what it is handed. * The comment now says what is true: the ASCII rendering is not present in this file at all. Proof, before and after, on the SAME regression (okLine no longer reading the reference it is handed - the exact case the validator named), each run against this repo's own charly.yml: OLD (origin/main) + the regression -> exit 0, every assertion PASSES: the mutation check did not catch it. NEW (this change) + the same regression -> exit 1, "FAIL the printed-token assertion did NOT catch a reference that is not the product's own token". NEW (this change), unmutated -> exit 0, 8 PASS. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Review — BLOCKI read the full diff, the body, the commit, and the (empty) comment thread. The code change is sound; the body makes a closure claim the diff does not implement, and the body contradicts itself. What checks out (so the block is narrow)
Blocks
The substantive gate fix is correct and well-tested, but a merge under the current body would mark the docs-gitlink issue resolved while the diff does nothing to it. That must be reconciled before merge. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS The validator's BLOCK on this PR is FIXED, and its RCA follows. The finding was What the body says now. It states explicitly what this PR closes and what it does not:
Neither The RCA of this round's finding.
A note on the round's earlier false alarm, because it is the same shape. While Next
Next update due: when the validator's report lands. Agent: charly Assisted-by: Claude Code minimax/minax-m3.1-flash:cloud (fully tested and validated) |
Review — PASSI re-derived the PR from the current body, the single-file diff, the commit, and both comments. Code correctnessThe diff does exactly what the Summary claims:
I checked the failure modes the #656 validator named:
The Body honesty
Comments dispositioned
No remaining correctness, security, scope, or honesty defect. The change stands on its own evidence with coverage that fails without it. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
What this closes, and what it does not. #653 — the umbrella's
consumer leg of the ellipsis cutover — is discharged in three pieces: the two gitlinks
landed in #654, the gate's ASCII rendering and the printed-token
assertion landed in #656, and the assertion's LIVE re-run lands
here. This is the last piece, and the issue is closed with an explicit RESOLVED record
when this PR lands — a
Closeskeyword does not close it by itself, which is measured:#654 carried
Closes #653and merged, and #653 is still open.#655 — the umbrella's
docsgitlink behind the docs repo's mergedmain — was already resolved by #656, which carried that gitlink,
and it is closed with its RESOLVED record. This diff changes no gitlink, no submodule
pointer and no pin, so it claims nothing about it.
The validator's report on #656 read the change as correct and raised
three observations. Two are about the change itself, and they are fixed here; the third
is about the transcript, and it is rebutted with a measurement on that PR's own thread.
The fix — the mutation is a LIVE re-run of the assertion. #656's mutation sub-check did
not re-run assertion T on the mutated text: it regex-extracted
REFfrom the mutatedsource and inspected the captured string. That proves the mutated SOURCE lacks the token;
it does not prove the ASSERTION goes red on it, and it cannot catch a regression where the
line-builder stopped reading the reference it is handed. So the builder now takes the
reference as a parameter (
okLine(ref = REF)), the predicate that decides the assertion isONE function (
printsOwnToken), and the mutation hands the mutated reference to thebuilder and runs the same predicate over the result — a live re-run of assertion T on
the mutated input, not a regex over the mutated text.
The comment now says what is true. #656's comment claimed the ASCII rendering was
"spelled here in PIECES". It is not present in the file at all: the R5 sweep greps for that
literal, and the gate must not defeat its own sweep.
scripts/check-task-command-vars.mjsWhy this is a successor PR, and what happened to #656. A
charly/pr-validatorPASSarms native squash auto-merge, and GitHub merges as soon as the required context is green —
which the verdict itself makes green. #656's verdict landed at 2026-10-24T05:07:34Z and the
PR merged at 05:08:02Z, 28 seconds later, on the head the report had read. The round's
fix needed a new commit, a discriminating experiment, the change-class gate re-run on the
new committed tree, and the body re-keyed to the new head; none of that fits in
twenty-eight seconds. The fix lands here, and this PR names #656 as its predecessor. The
mechanism is filed as opencharly/.github#245.
The three observations on #656, each dispositioned.
regex-extracts
REFfrom the mutated source and checks the captured string lacks thetoken … it would not catch a hypothetical future regression where
okLinestopped readingREF." → fixed here. The mutated reference goes through this file's own builder andthis file's own predicate. The proof is the before/after experiment below, on the SAME
regression the observation names: the OLD coverage stays green over it, the NEW coverage
turns red.
reflected in the code — the ASCII rendering simply isn't present at all. Cosmetic." →
fixed here. The comment says what is true.
git submodule status docsdescribe is not obviously consistent withthe body's claim that the docs repo carries tag
v2026.297.0439on/behind the pinnedcommit … I do not treat it as a defect in this change." → rebutted, with the
measurement on fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656's thread:
git submodule statusdescribes withgit describewithout
--tags, so it sees only ANNOTATED tags, andv2026.297.0439is alightweight tag (object type
commit, nottag) that is present locally and on theremote; plain
describewalks past it to the last annotated tag,v2026.234.2355, 116commits back. The pinned commit
a5bd2445is the docs repo's current main head, andthe tag sits on its parent
bb4f006(the docs(corpus): advance the vendored corpus pin to the corpus that carries the ellipsis rule's form, and regenerate docs#182 merge commit). fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656's bodynow carries the measurement, so the transcript and the claim cannot be read as
contradicting each other.
How tested
The head and the base — the committed tree this body describes:
The worktree-local binary (R9 — binary equals source), never a shared install:
The changed gate, run live — the product prints the product's token, and the self-test
proves the claim:
The discriminating experiment — the SAME regression, before and after:
okLinenolonger reads the reference it is handed, which is the exact case the validator named. Each
run reads this repo's own
charly.yml.The OLD coverage stayed green over the regression; the NEW coverage turns red on it. That
is the "coverage that fails without the change" the rulebook asks for, measured rather
than asserted.
The umbrella's own gate, on the committed tree — every step, the whole plan:
The R5 claim-keyed sweep — the claim is "the ASCII rendering of the reference is not
present in the gate's file", and the sweep names every place the form still appears in the
tree:
The diff — one file, and the whole of it:
Rulebook compliance
/charly-internals:git-workflow(the branch, the commit, the PR body, the push), and/charly-internals:strict-policywith/charly-internals:root-cause-analyzer(the roundthat produced this change).
REBUTTED on that PR's thread with the measurement. The round's own RCA — why the fix
could not land on the PR that raised it — is posted on fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656's thread with the mechanism
named (a PASS arms auto-merge, and GitHub merged 28 seconds after the verdict), the missed
control (the pre-push gate ran the self-test, and the self-test's mutation sub-check was
never asserted to exercise the SAME predicate as the assertion it claims to prove), the
blast radius (every verdict-raised finding that needs a code change, in every repo whose
gate takes longer than the arming window) and the root fix (the mechanism is filed as
pr-validator: a PASS arms auto-merge within seconds and GitHub merges at once, so a finding raised BY the verdict can never be landed on the PR it was raised on .github#245; the coverage-of-coverage gap is closed in this change's own
self-test, and the before/after experiment above is the proof).
predicate that judges it is ONE function, so the self-test's assertion and its mutation
check read the same two pieces.
command. The experiment is a copy of the file in
/tmprun with the product's own--self-test, not a hand-written simulation of it.and the prose (the comment) follows what the code does.
names every place the ASCII rendering still appears in the tree.
git statuswas stated before the branch was cut and before the commit; thework is in the session worktree at
.worktrees/wave8/opencharly/on branchfeat/gate-assert-live-rerun, branched off freshorigin/main0696567afe59d067ef49945c4bce7fccf6c9e60f. No force-push,no amend after the push, no direct push to
main, no hook bypass, and no other session'sbranch, worktree or file touched. No submodule was edited: the umbrella records gitlinks
only.
fails without it: the before/after experiment above shows the OLD coverage green over the
regression and the NEW coverage red on it. The transcript is the product's own output,
pasted whole.
install.
steps and no warning:
charly task verify(the umbrella's whole plan) plus the changedgate's own
--self-test. Nodisposable: truetarget is affected: this change touchesno build, no deploy and no bed, and the umbrella declares no candy or box.
origin/main; every tracked submodule checkout stays at its gitlink.predecessor, and the coordination records are posted on the threads it touches.
Change classification
One gate's own coverage. The diff carries one file: the umbrella's own check script,
and only its assertion machinery — the line-builder, the predicate, the mutation re-run and
a comment. No submodule content, no Go source, no schema, no gitlink, no pin, no deploy and
no bed.
The gates that own this class are the changed script's own
--self-test(the coverage thischange adds) and the umbrella's
charly task verify(the aggregate gate, which runs thatscript's
--self-testamong its 30 steps) — both run on the committed tree above, and thechanged path itself ran live.
On the attribution tier. The tier is
fully tested and validated: the change-class gatepassed on the final tree with zero warnings, and the changed path itself ran live, with the
before/after experiment above retained in this body.
Filed issues
Closes #Ncan name an issue the diff cannot close #659 (filed and CLAIMed from this round's RCA — the validator'sBLOCK on this PR named it as the missed control) — a PR body's closure claims are never
reconciled against what the diff changes, so a
Closes #Ncan name an issue the diffcannot close. The evidence is this PR's own body: it opened with
Closes #653/Closes #655over a diff that changes one file and no gitlink, with the closure linescopied from the merged predecessor fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656, whose diff DID carry the
docsgitlink.auto-merge within seconds and GitHub merges at once, so a finding raised BY the verdict
cannot be landed on the PR it was raised on; the evidence is chore(pins): the umbrella's consumer leg of the ellipsis cutover — two gitlinks to their producers' merged mains, and the gate prints the product's own token #654's and fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656's own
timelines (19 seconds and 28 seconds from the PASS to the merge).
last piece — closed with an explicit RESOLVED record when this PR lands, not by a
keyword) — the umbrella's consumer leg of the ellipsis cutover.
docsgitlink is behind the docs repo's merged main — the wave's last consumer leg #655 (CLAIMed; resolved by fix(gates): the printed reference is asserted, and the docs gitlink advances to its merged main #656, which carried thedocsgitlink, and closed with its RESOLVED record — this PR changes no gitlink and does NOT
close it) — the umbrella's
docsgitlink behind the docs repo's merged main.umbrella's
hooks/pre-commitruns the charly-backed gate pair TWICE.charly task initnever materializes an ALREADY-materialized path's nested submoduleswhen that path is already AT its recorded gitlink.
charly task verify) for a gitlink diff — a member repo has no such task, and the umbrella's own pin gate iscurrency#648 (claimed; carried forward with this wave's evidence) —the org-wide rulebook sentence that names
./charly/bin/charly task verifyas the gatefor any diff touching a submodule, a gitlink or a pin names a verb that exists only in
this repo. This wave ran both the verify and the currency gate on the committed tree.
pre-push gate reads the LOCAL body from
$GITDIR/PR_BODY.mdwhile the validator readsthe PUBLISHED one.
Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)