Repository navigation
fix(pins): state the control's criterion as "not current", not "behind" - #1052
Conversation
The pin-currency control landed in #1050 (5001ff6, v2026.296.2303) with a criterion its own prose mis-stated: "behind AND un-advanced". The producer (plugin-task v0.2026296.2153, candy/plugin-task/verbs.go:981-991) judges the SET {behind, not-on-the-served-line, differs} — and the class the prose omits, not-on-the-served-line, is what a squash-merged upstream produces, which is how this org merges, and is the shape of the #1035 recurrence. The control is right and the sentence was not: measured on a squash-shaped fixture the shipped control reports `1 of 1 pin(s) NOT current [1 not-on-the-served-line]`, marks the pin STALE, and exits 1. The fix is one cutover, in three parts: * the criterion is stated as "not current AND un-advanced", naming the three classes, in charly.yml, AGENTS.md, the workflow header and both scripts; * scripts/measure-pin-cadence.py now classifies every (day, twin) pair with the SAME ancestry test the control uses, instead of the `pin != tip` proxy, and prints the class tally. The numbers do not move — over the 32-day window all 145 not-current pairs are the `behind` class — but they are now shown rather than assumed. The classifier is PROVED, by a --self-test on a scratch twin: the old proxy calls a squash-advanced pin `behind`, and the self-test is what says the difference is real; * scripts/check-pin-currency.sh gains FOUR more arms — the two SQUASH-shaped ones and the two with NO CHECKOUT at all — so the repo's own proof covers every class the criterion names, not just the first. The third pair also proves the control's verdict does not depend on the tree shape: on a tree that materializes nothing, a pin that is not current is still reported not current, and still goes red when it is neglected. The control's own gate now carries the classifier's proof as a step, and its pull_request trigger covers the two proof scripts — a change to the proof must re-run the proof. A false claim in a cutover's own new prose is blocking (R1), and the missed control was that the prose was never read back against the producer's definition while the proof exercised one class of it. Closes #1051 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
… class
The change's own surfaces disagreed with each other about the control's
scope, and the proof did not cover every class the classifier can return.
* scripts/check-pin-currency.sh said "TWO twin shapes" while the file's
own header, charly.yml and AGENTS.md all said three, and
scripts/measure-pin-cadence.py said "the three shapes" and "all four"
in one sentence while its arm list had four entries. The same defect
class this change exists to fix: a stated scope that is narrower than
the scope implemented.
* The classifier's self-test covered four of the five classes
classify() can return: `unjudgeable` (a pair whose commits the twin's
object store does not carry, so the ancestry question is undecidable)
had no arm, and the neglect-eligible set excluded it — while the
producer's own `ancestryClass` has no rc=128 branch and so folds an
absent object into `not-on-the-served-line`, a neglect-eligible
class (opencharly/plugin-task#32). A measurement that dropped the
class would under-count the control's red days.
Root fixes, in the control and not only in the prose:
* The arms live in ONE table, and the counts the surfaces state are
DERIVED from it; the proof now checks every surface that states the
control's scope against the numbers the proof actually ran, and turns
red when one disagrees. That check is what was missing: nothing ever
read the surfaces against each other.
* The self-test carries one arm per class the classifier can return,
and asserts each class's neglect-eligibility against an independent
expectation — not derived from the set it checks, so it can fail.
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
|
STATUS The complete verbatim transcripts of the two runs whose decisive lines are pasted in the PR body. The body carries the filtered account (every section, every command, every exit status, every differential's verdict, every Both runs are on the committed tree this PR pushes, The change-class gate, verbatim: The Agent: charly Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) |
Review — PASSWhat the change isA prose/proof/measurement correction in the repo that owns the pin-currency control. The control itself (the Verification against the diff and body
CommentsThe single thread (comment 6377373849 by @aitrawog) is the author's own STATUS comment pasting the two verbatim transcripts. It is consistent with the body's filtered account and with the diffs (e.g. the step-9 output Minor, non-blocking observationThe body's §8c "broader co-occurrence sweep" says it "returns 24 hits, and every one is read here", but the four classification bullets sum to 23 — the The The change does what it claims, the tests fail without it (four differentials), and the evidence is internally consistent and reproduced by the diff. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Closes #1051
Summary
Head
6da62b2b7fd73414d774f677c87949154057f386— 5 files changed, 515 insertions(+), 102 deletions(-).charly's pin-currency control landed in #1050 (squash5001ff6904102916f083a9cf488740388d574a8c, tagv2026.296.2303) with a criterion its own prose mis-stated, and with a proof that covered one class of the three the criterion names. This is the fix, in the repo that owns the control.The false claim, in the merged tree.
charly.yml(thepin-currentandpin-currency-prooftask descriptions),AGENTS.md(the control's bullet and the proof's bullet) and the.github/workflows/pin-currency.ymlheader all say the control fails on a pin that is "behind AND un-advanced". The producer does not judge one class.plugin-taskv0.2026296.2153— the release this repo pins (charly/go.mod:141) — judges the set {behind,not-on-the-served-line,differs} (candy/plugin-task/verbs.go:981-991,staleEligible), and its own ancestry test names the same classes (verbs.go:916-929).The class the prose omits is the class this org produces.
not-on-the-served-lineis what a squash-merge upstream produces: the served ref does not descend from the recorded commit, so the pin is not an ancestor of what is served. The producer says so itself (squashWhy: "a squash-merged branch advances without descending from its previous head, and a hand-pin looks identical; advance the pin either way"), and the org merges by squash incharlyandlayer-charly-internalsamong others — so this is the ordinary class for a squash-merged twin, and it is the shape of the #1035 recurrence. The third class,differs, is a pin with no checkout to judge: the shape a light tree produces, where the umbrella's own plan is heading (a working set instead of 431 checkouts).The control is right and the sentence was not. Measured on a squash-shaped fixture, the shipped control reports the class, marks the pin STALE and exits non-zero — the coverage was real and the sentence under it was not. The repo's own proof could not have caught the mismatch, because it built one twin shape and ran two arms over it: the proof, the sentence and the fixture all agreed, and all three were wrong about the control's scope. The measurement was wrong in the same direction — it treated "the pin is not the tip" as "behind", which is the proxy that cannot see a squash-advanced pin at all.
The fix, in four parts.
charly.yml,AGENTS.md, the workflow header, and both scripts.scripts/check-pin-currency.shgains four more arms: a squash-shaped twin (a served ref that does not descend from the recorded pin) and a twin with no checkout at all, each in a neglected/recent pair. The third pair also proves the control's verdict does not depend on the tree shape — on a tree that materializes nothing, a not-current pin is still reported not current, and still goes red when it is neglected.scripts/measure-pin-cadence.pynow decides each (day, twin) pair withmerge-base --is-ancestor— the control's test — instead of thepin != tipproxy, and prints the class tally. The numbers do not move: over the 32-day window all 145 not-current pairs are thebehindclass, so "not current" and "behind" coincide in this repo's history — now shown, not assumed. The classifier is proved by a--self-teston a scratch twin, and the old proxy fails that self-test (the gate below runs the mutant).cur,behind,not-on-the-served-line,unmergedandunjudgeable— and asserts each class's neglect-eligibility against an independent expectation.The files.
charly.yml(two task descriptions and the derivation's comment),AGENTS.md(the control's bullet, the proof's bullet, and a new one for the classifier's proof),.github/workflows/pin-currency.yml(header, one new step, and thepull_requesttrigger now covering the two proof scripts — a change to the proof must re-run the proof),scripts/check-pin-currency.sh(six arms over three twin shapes, from one table, and the surfaces check),scripts/measure-pin-cadence.py(the ancestry classifier, the class tally, the--self-test).How tested
The change class is hook / workflow scripts —
.github/workflows/pin-currency.yml— together with candy / box config — this repo'scharly.ymltask surface — and the repo's own maintenance scripts. The class's gate is therefore: every changed script executed live,charly box validate, and the bed that composes the changed surface.The gate, run on the committed tree this PR pushes:
The bed —
check-taskis the bed that composes the changed surface, and it runs the widened proof end to end throughverb:task. It ran on the same committed tree, after the last edit:The two transcripts above are the runs' decisive lines: every section, every command, every exit status and every differential's verdict. The complete verbatim transcripts — 37,968 and 13,775 characters — are this PR's first comment, because the two together do not fit a PR body (the platform's limit is 65,536 characters). Nothing is dropped from the account of either run: the filter keeps every line that carries a verdict, and the generator asserts that each differential's verdict and each run's terminator survives it.
The bed's own
check-livestep list — the step this change widens (the pin-currency control's own proof, now six arms over three twin shapes), and the run's own count:The bed's own summary, as it lands on disk (
.check/check-task/2026.297.0002/summary.yml):The R5 sweep, claim-keyed. The claim is "the false criterion is stated in no current surface of this repo". The gate's own sweep (§8b) is keyed on the legacy sentence and finds it only in the published changelog of the merged PR — the file the tag
v2026.296.2303points at. The same two predicates over the tree withoutCHANGELOG/return nothing:Every hit, read and classified. The gate's broader co-occurrence sweep (§8c) returns 24 hits, and every one is read here:
AGENTS.mdand 2 incharly.yml— this change's own text: the sentence that a reported-but-not-current pin is not a failure, the control's task description and the proof's, and the derivation's comment. Each now carries the conjunction (not current AND un-advanced) that the false claim lacked, and names the three classes.scripts/measure-pin-cadence.py— the measurement's own subject (the old proxy's blind spot, "the pin is not the tip, so it is behind") and its counterfactual ("the legacy criterion: a gate that fails on 'behind' is red on these days").CHANGELOG/2026.278.0912.md— history, where "behind" is spatial and "the red" is a check failure rather than the criterion.CHANGELOG/2026.296.2303.md— the published record of the merged PR feat(pins): install the pin-currency control and advance box/ubuntu to the served ref #1050, whose own body carried the false claim, quoted back at the charly's nestedbox/ubuntugitlink is behind the ref its own.gitmodulesdeclares AGAIN — the #1035 recurrence, and the control that would have caught it was never installed #1048 sentence it corrects. It is not edited here: that file is the content of the tagv2026.296.2303, and rewriting it would rewrite a published artifact (R6);CHANGELOG/is history by the rulebook's own rule, and this PR's own changelog — written at merge from this body — states the criterion correctly and names the correction.The anchor — every pasted line above belongs to this commit:
Rulebook compliance
/charly-internals:git-workflow(the landing mechanics),/charly-internals:goand/charly-internals:go-quality(this repo's Go gate recipe and the lint surface),/charly-internals:strict-policyand/charly-internals:root-cause-analyzer(the discipline and the anomalies),/charly-internals:pluginand/charly-internals:disposable(placement and the disposable targets),/charly-check:check(the R10 matrix), and this repo's ownAGENTS.md.staleEligible(plugin-taskv0.2026296.2153,candy/plugin-task/verbs.go:981-991) makes a pin STALE when it isbehind,not-on-the-served-lineordiffersAND un-advanced. A squash-advanced pin — the class the org's own squash merges produce, and the shape of the charly's nestedbox/ubuntugitlink is behind the ref its own.gitmodulesdeclares, so the umbrella'sdistro-ubuntuedge reportsblocked-by charly:box/ubuntu (behind)#1035 recurrence — therefore read as uncovered. Missed control: the prose was never read back against the producer's own definition, and the repo's proof exercised only thebehindclass, so no in-repo evidence could have caught the mismatch; the validator's review named the neighbouring symptom (the measurement treatingpin != tipas "behind" rather than testing ancestry) without connecting it to the criterion. Blast radius:charly.yml,AGENTS.md, the workflow header,scripts/check-pin-currency.sh,scripts/measure-pin-cadence.py, and the PR body of feat(pins): install the pin-currency control and advance box/ubuntu to the served ref #1050. Root fix: the criterion is stated as "not current AND un-advanced", naming the three classes, on every surface; the proof covers every eligible class (six arms over three twin shapes); and the measurement classifies with the control's own ancestry test, prints the class tally, and is proved by a--self-testthat the old proxy fails. The finding was raised on feat(pins): install the pin-currency control and advance box/ubuntu to the served ref #1050, so it was never filed away — it is fixed here, against the merged tree, as the pin-currency control's criterion is stated as 'behind AND un-advanced', but the producer judges 'not current' — three classes, one proven #1051. (b) The gate's own first two runs were invalidated by a mid-gate edit: the tree moved under a running gate, so the gate was no longer executing the committed tree. Missed control: the gate was started before the last edit. Blast radius: the gate evidence itself. Root fix: each gate run is on a committed tree, and the gate's own first section prints that tree's SHA and its status; the runs that were invalidated were stopped, not pasted. (c) The self-test's fourth arm asserted the wrong thing on its first run — the recorded pin AHEAD of the served ref was expected to beunmerged, and the classifier saidnot-on-the-served-line, because the fixture's "ahead" commit was an orphan and so descended from nothing. Missed control: the arm was written from the class's name and not from the ancestry it describes. Blast radius: one arm of the new self-test. Root fix: the fixture now holds a commit that genuinely descends from the served one, and the arm asserts that. (d) The third gate run failed itstools/*lint leg with exit 127 —golangci-lint: command not found: the gate's own script called the linter unqualified while thecharly/legs called it as"$(go env GOPATH)/bin/golangci-lint", so the fivetools/*modules were never linted at all; the same two legs also failed to accumulate a per-module failure the way the repo's CI does, so a module that failed before the last one would have been reported green. Missed control: the gate script was written by hand instead of derived from the repo's ownci.yml, and nothing checked that each leg's command exists. Blast radius: thetools/*legs of that run — the lint never happened. Root fix: the gate now mirrorsci.ymlexactly (the PATH-qualified binary,GOWORK=off, per-modulefail=1), and the run pasted above is a fresh, complete gate from the first step. (e) This change's own surfaces disagreed with each other about the control's scope.scripts/check-pin-currency.shsaid "TWO twin shapes" while the file's own header,charly.ymlandAGENTS.mdall said three, andscripts/measure-pin-cadence.pysaid "the three shapes" and "all four" in one sentence while its arm list had four entries. Missed control: the counts were restated by hand on every surface, and nothing read one surface against another — the R5 sweep is claim-keyed, and it has no key for a count. Blast radius: the two files' own statements of what the control covers, and every reader who took them at face value. Root fix: the counts are no longer restated freely — the arms live in ONE table, the counts are derived from it, and the proof now reads every surface that states the control's scope and turns red when one disagrees with the numbers the proof actually ran (MUT-D below shows that check is not vacuous). (f) The classifier's proof did not cover every class the classifier can return. The self-test had four arms for a classifier with five outputs:unjudgeable— a pair whose commits the twin's object store does not carry, so the ancestry question is undecidable and git answers 128 — had none. Missed control: the arms were written from the classes the criterion NAMES, not from the classes the classifier can PRODUCE, and nothing compared the two sets. Blast radius: the class tally the measurement prints, and thediffersclass the control names for a pin with no checkout — the shape the criterion's third class has. Root fix: the self-test now carries one arm per class the classifier can return. (g) The measurement's neglect-eligible set did not carry the producer's judgement.STALE_ELIGIBLEexcludedunjudgeable, while the producer'sancestryClass(plugin-taskv0.2026296.2153,candy/plugin-task/verbs.go:916-929) has no rc=128 branch at all: it folds an absent object intonot-on-the-served-line, a neglect-eligible class, and prints a causal explanation it never measured (currency mode: an unrun ancestry test is printed as a judged class, with a causal mechanism attached (exit 128 collapsed into exit 1) plugin-task#32 asks for the 128 to be told apart). A measurement that dropped the class would under-count the control's red days. The classifier's docstring also claimed such a pair was "never folded into a verdict", while the code counted it into the not-current tally. Missed control: the set was asserted to mirror the producer's own definition, and nothing read it against the producer. Blast radius: thestale_day_ratethe bound is derived from — unchanged in this window, which holds no unjudgeable pair, but the set itself was wrong. Root fix: the class is in the set, the docstring says what the class does, and the self-test asserts the set against an independent expectation (MUT-C below). (h) The PR body was over the platform's limit, and the generator had no size guard. The firstgh pr createfailed with "Body is too long (maximum is 65536 characters)" — after the branch was pushed, so the branch existed with no PR. Missed control: the body generator assembled whatever the two transcripts held and never compared the result against the platform's limit, so the failure could only surface at the one step that cannot be repeated cheaply. Blast radius: the PR's first creation attempt; nothing was lost (the branch and the commit are unchanged). Root fix: the generator now asserts the assembled body against the limit before it writes it, so an over-long body fails before anything is pushed; the body carries the runs' decisive lines and the complete verbatim transcripts are the PR's first comment; and the generator asserts that every differential's verdict and each run's terminator survives the filter, so the shorter account cannot become a false one. None of the eight findings was filed away: (a) is this PR, (b), (c), (e), (f) and (g) are fixed in the tree and re-proved by the run above, (d) is fixed in the gate and re-run in full, and (h) is fixed in the generator that assembles this body.charly task pins MODE=currencywithSTALE_AFTER;syncandpin-currentare thin wrappers over it, and the proof script reads the shipped wiring out ofcharly.ymlrather than restating it. The classifier is ONE implementation, in the measurement script, and the self-test exercises that one — it does not restate the classification in a second place. The proof's arms are ONE table, and the scope counts every surface states are derived from that table instead of restated beside it. The self-test's expected neglect-eligibility is deliberately NOT derived from the set it checks — a test that recomputed the expected value from the code under test could not fail. The bound is stated once, as theSTALE_AFTERparameter.pinsverb, and the classes are the producer's own — the fix changes what this repo says and proves, never how the product behaves.CHANGELOG/, both return nothing (exit=1); over the whole tree, the legacy sentence survives only inCHANGELOG/2026.296.2303.md, the published record of the merged PR, which is not edited (R6) — and the broad sweep's 24 hits are each classified above.git statuswas read before the first edit; the change is one commit onfix/pin-criterion-classes, cut from freshorigin/main; no history was rewritten, no force-push, no amend after a push, no hook bypass, and no direct push tomain. The previous PR's merge is not touched: this is a new branch off the mergedmain, not an edit of published history.charly.ymland the proof goes red, so the coverage cannot pass without the control. MUT-B: the classifier is put back to the oldpin != tipproxy and the new--self-testgoes red on the arms the proxy cannot classify — so the change's own behavioural part (the ancestry classifier) is covered by a test that fails without it, and the six-arm proof covers every class the criterion names rather than one. MUT-C: the measurement's neglect-eligible set withunjudgeabledropped from it, and the self-test goes red — so the eligibility assertion cannot pass vacuously. MUT-D: a surface's stated scope drifted from the proof's (AGENTS.mdsays "four twin shapes" where the proof runs three), and the control's own proof goes red — so the scope check cannot pass vacuously either.charly versionreports the CalVer of this commit — and the binary's module set carries theplugin-taskrelease this repo pins. The shared host install was never used.charly/pr-validatoris the merge gate.Change classification
Hook / workflow scripts (
.github/workflows/pin-currency.yml) plus candy / box config (this repo'scharly.ymltask surface) plus the repo's own maintenance scripts (scripts/check-pin-currency.sh,scripts/measure-pin-cadence.py) — so the class's gate is: every changed script executed live,charly box validate, the bed that composes the changed surface (check-task), and this repo's own CI shape (the worktree-local build, the generated-wiring check,go vet,go test, thetools/*sweep,gofmt, andgolangci-lintovercharly/and every tools module). All of it is pasted above, run on the committed tree this PR pushes, with zero warnings. The tier earned isfully tested and validated.Filed issues
golangci-lintunderstands gets 12 spurioustypecheckfailures on a clean tree. The lint leg of this change's gate therefore ran underGOTOOLCHAIN=go1.26.8, the toolchain this repo'sgo.modnames — the one CI selects throughgo-version-file. The defect is in the umbrella's hook, not in this repo's code, and it is genuinely separable from this change, so it is filed rather than fixed here.ancestryClasshas no rc=128 branch, so a pair whose commits the twin's object store does not carry is folded intonot-on-the-served-lineand printed with a causal explanation it never measured. This change's measurement keepsunjudgeableas its own class — the direction that issue asks for — while keeping the producer's judgement, and the absent-object path is driven by a test that fails without it. The evidence is on the issue: currency mode: an unrun ancestry test is printed as a judged class, with a causal mechanism attached (exit 128 collapsed into exit 1) plugin-task#32 (comment)Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)