Repository navigation
feat(pins): install the pin-currency control and advance box/ubuntu to the served ref - #1050
Conversation
…o the served ref The #1035/#1048 recurrence had a root fix that was never installed: `charly`'s own gate never asked the currency question over `charly`'s own `box/*` leaves. This installs it — and the criterion it fires on is measured, not chosen. WHAT IT ASKS. `charly task pin-current` asks whether every `box/*` gitlink is at the ref this repo's own `.gitmodules` declares for it, and FAILS only on NEGLECT: a pin that is behind AND that this repo has not advanced for longer than its own bound (168 h). "Behind" alone is churn, not neglect. Measured over the 32 days from 2026-09-22 to 2026-10-23, each of the six twins was behind the ref it declares on 17 to 27 of those days, and on 28 of the 32 (88 %) at least one was behind — so a gate on the distance would be red roughly three days out of four, the permanently-red gate the org's own pin rule forbids. The bound is on the AGE of this repo's own last advance of that path. THE BOUND IS DERIVED, not tasted. Over this repo's own advance history — the gaps between the commits that recorded each twin's gitlink — the longest gap that stayed within a 7-day bound was 6.4 d, and 25 gaps ran past it, from 8.0 d to 25.1 d. 168 h (7 d) is the only whole-day bound strictly between those two. `scripts/measure-pin-cadence.py` re-derives every number here, with the window named by its dates. THE CONTROL PROVES IT CAN FAIL. `charly task pin-currency-proof` runs the SHIPPED wiring — extracted from this repo's own `charly.yml` — over a scratch fixture whose two arms differ only in the date of the commit that recorded the pin: a neglected pin must go red, the same pin advanced recently must pass. THE ADVANCE. `box/ubuntu` moves from f23f751 to 028fd26e through `charly task sync` — never a hand-pin — so it lands at the ref its own `.gitmodules` declares. The umbrella's `distro-ubuntu` edge, blocked on this gitlink, is unblocked and is carried by the umbrella's next pin wave. `charly/go.mod` moves plugin-task from v0.2026296.1911 to v0.2026296.2153, the release that carries the opt-in `stale_after` bound the control reads. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
The gate's own measurement contradicted two numbers this change wrote into its new prose: the stale ages run 7.5 d to 14.7 d, not 8.7 d to 14.7 d, and the 7.5 d event sits inside an 8.1 d lapse (box/cachyos, 2026-10-08 -> 2026-10-16), not inside one of the 10.2 d or 15.3 d lapses. A false claim in a cutover's own new prose is blocking (R1), so both surfaces are corrected in this change: `AGENTS.md` and `charly.yml` now carry the measured range and the three lapses the range falls inside. The measurement itself is unchanged — `scripts/measure-pin-cadence.py --list` prints every gap, and the corrected figures are re-derived from it. Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Review — PASSCorrectness (diff vs. claimed behaviour)The diff does exactly what the body states, and the file-level claims reconcile with the diff:
Body honesty / internal consistencyThe measurement numbers are internally coherent:
TestsThe change ships coverage that would fail without it: the proof script is a real gate that goes red when the control's question is removed ( Security
Scope & cleanlinessCoherent single cutover: control + wrapper + proof + derivation + docs + plugin-task bump + the CommentsThere are zero comment threads, so there is no maintainer sign-off to import; the change is required to stand on its own evidence, which it does. No stale comment claims to reconcile. Minor, non-blocking observations
None of these rises to a block: the change is correct, the body's claims are reproduced by the diff and internally consistent, the coverage is discriminating, and the security posture is sound. Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
|
STATUS This PR landed — squash One finding from this PR's own body was NOT in the squash, and it is a defect in the merged tree. The body carries R1(f): the change's own new prose named ONE of the three not-current classes the producer judges. It said the control fails on a pin " The squash was cut from So this finding is not filed away — it is fixed, in its own cutover, against the merged tree:
Next update: on #1051, when its PR is open. Agent: charly Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) |
…d" (#1052) * fix(pins): state the control's criterion as "not current", not "behind" 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) * fix(pins): derive the control's scope from one table, and cover every 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)
… provider path over to the renamed plugin repo (#1059) * chore(deps): adopt plugin-task v0.2026297.1542 (the task runner counts a step that ran nothing) `plugin-task` is compiled into the charly binary, so the pinned module version IS the behaviour of `charly task` — and of the `git-submodules` verb that `charly task sync` runs. At v0.2026296.2153 the task runner counts STEPS and FAILURES only. A step that ran nothing is neither: it is not a failure, so it is counted among the N steps, and it is not disclosed. A green task line can read "26 step(s), 0 failed" over a run in which six comparisons never happened. The org already owns the vocabulary for exactly this state — `sdk.CheckSkippedExitCode = 3` ("the phase RAN NOTHING — neither a pass nor a failure") — and the check runner honours it. The task runner had no equivalent. Two merged releases carry it: opencharly/plugin-task#45 (squash 7e26679, root tag v2026.297.1509, module tag candy/plugin-task/v0.2026297.1509) adds the third bucket, and opencharly/plugin-task#46 (squash c24c743d, root tag v2026.297.1542, module tag candy/plugin-task/v0.2026297.1542) carries the stderr-capture fix that #45's PASS asked for. This adopts the second. `charly/go.mod:141` moves `github.com/opencharly/plugin-task/candy/plugin-task` from `v0.2026296.2153` to `v0.2026297.1542`. `charly/go.sum` moves with it, derived by `go mod tidy`: the two superseded pairs (`v0.2026296.1911`, `v0.2026296.2153`) go and the one live pair (`v0.2026297.1542`) arrives. The `v0.2026296.1911` pair was already stale on this tree — #1050 added the `2153` pair without tidying — so the tidy also restores the invariant this repo's own precedent (#1045) holds: exactly ONE plugin-task version in `charly/go.sum`. The two versions' own `candy/plugin-task/go.mod` are byte-identical in their requirements (`sdk v0.2026276.1822`, `spec v0.2026276.1636`), so no `sdk`/`spec` move is behind this bump. The pin is stated once: `charly/charly.yml` names the compiled-in plugin WORD (`plugin-task`), never a version. Closes #1057 Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated) * chore(pins): cut the containerd provider path over to the renamed plugin repo The out-of-tree engine plugin was RENAMED `plugin-nerdctl` -> `plugin-containerd` (the engine word changed first; the repo name followed), and its module path moved with it: `candy/plugin-nerdctl` -> `candy/plugin-containerd`, module `github.com/opencharly/plugin-containerd/candy/plugin-containerd`. Three surfaces in this repo still named the pre-rename path: - `charly/plugin_corpus.txt:79` — the corpus entry for the plugin repo; - `charly/plugins_refs_generated.go` — the generated word->provider index, whose three containerd words still pointed at the old module path; - `charly/engine_word_cutover_test.go:106` — the guardrail's canonical ref. `charly/plugins_refs_generated.go` is a PROJECTION of the corpus's word->provider map: pluginsgen fetches each corpus repo at its default branch — deliberately, because the word->ref FACT lives in the plugin repos — and records where each word is served (internal/pluginsgen/main.go, collectWordRefs). A projection does not follow its source by itself, so the index was re-projected with the SAME pluginsgen invocation the build uses (scripts/bootstrap-charly.sh). The corpus entry and the guardrail's constant follow the rename; regenerating the index is the replacement for the three generated keys. This is what the repo's own gate demands: `TestPluginsRefsIndexSound` compares the committed index against what the corpus serves RIGHT NOW, and its own failure message says "the index is FALSE; regenerate and commit it". The gate had gone red for every checkout of this repo — including a fresh clone of main — because the corpus moved after the index was last committed. The build's `scripts/check-generated-clean.sh` deliberately classifies this file as `upstream` and RESTORES the tracked copy, so a build never leaves the tree carrying a fresh projection: the remedy is a commit here. The retired words (`engine:nerdctl`, `verb:nerdctl`, `command:nerdctl`) stay retired: the guardrail's negative arms still reject them. Refs: opencharly/opencharly#589 (the containerd programme's consumer legs). Agent: charly *Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)*
Closes #1048
Summary
Head
f6c6ec2a32068f4ce60f6ddfe695570b8fe8481f— 8 files changed, 604 insertions(+), 2 deletions(-).charly's own gate never asked the currency question overcharly's ownbox/*leaves, so the #1035/#1048 recurrence kept landing: a merge upstream, and no gate anywhere in this repo that asked whether the pin still pointed at it. This installs the control, and advancesbox/ubuntuin the same cutover — the two things #1048 asks for.The control.
charly task pin-currentasks whether everybox/*gitlink is at the ref this repo's own.gitmodulesdeclares for it, and fails only on NEGLECT: a pin that is behind AND that this repo has not advanced for longer than its own bound (168 h). "Behind" alone is churn.charly task pin-currency-proofproves the control can fail — it runs the shipped wiring, extracted from this repo's owncharly.yml, over a scratch fixture whose two arms differ only in the date of the commit that recorded the pin: a neglected pin goes red, the same pin advanced recently passes.The correction to the criterion (R4). #1048 asks for "a gate step in
charlythat fails when abox/*twin is behind the ref its own.gitmodulesdeclares". Measured over this repo's own history, that gate would be red on 28 of the last 32 days — each of the six twins is behind the ref it declares on 17 to 27 of those days, and on 28 of the 32 at least one is. That is the permanently-red gate the org's own pin rule forbids, so the shipped criterion is narrower, and says so in the file: behind AND un-advanced past this repo's own bound. The bound is derived from this repo's own advance history — the longest gap that stayed within a 7-day bound was 6.4 d, 25 gaps ran past it (8.0 d to 25.1 d), and 168 h (7 d) is the only whole-day bound strictly between those two.scripts/measure-pin-cadence.pyre-derives every one of those numbers, over a window named by its dates. Over the 9 days from 2026-10-15 to 2026-10-23 the shipped criterion is red on 6, at ages of 7.5 d to 14.7 d — every one inside a real lapse (8.1 d, 10.2 d or 15.3 d), and no red day on a healthy tree.The correction to the advance target (R4). #1048 names
871cb35ea5e7forbox/ubuntu. That is no longer the refdistro-ubuntu's servedmaincarries — the served tip is028fd26e7ccadef3774c98b6d7e2e744d1d60faa— so advancing to the SHA in the issue would have landed the very defect the issue is about, one commit later. The advance therefore goes throughcharly task syncand lands at the served ref, and the umbrella'sdistro-ubuntuedge, blocked on this gitlink, is unblocked for the umbrella's next wave.The files.
.github/workflows/pin-currency.yml(new) is the control's gate: apull_requesttrigger for the answer while the change is open, and a daily schedule for the merge that happened with no PR at all.charly.ymlcarries theSTALE_AFTERparameter, thepin-currentwrapper, thepin-currency-prooftask, and the bed step that runs the proof end to end throughverb:task.scripts/check-pin-currency.shis the control's own proof;scripts/measure-pin-cadence.pyre-derives the bound.AGENTS.mdstates the control and the measurement.charly/go.modmovesplugin-taskto the release that carries the opt-instale_afterbound the control reads.box/ubuntumovesf23f751→028fd26e.How tested
The change class is hook / workflow scripts — the new
.github/workflows/pin-currency.yml— together with candy / box config — this repo'scharly.ymltask surface and thebox/ubuntugitlink. The class's gate is therefore: every changed script executed live,charly box validate, and the bed that composes the changed surface.The R5 sweep is keyed on the legacy criterion itself: a repo-wide grep for it returns no matches, and the sweep — with the predicate calibrated against the known positive, so the grep is not vacuous — is pasted below. The broader co-occurrence sweep is in the same section, with every hit read and classified.
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 new proof step end to end throughverb:task. It ran on the same committed tree, after the last edit:The new step, inside the bed's own
check-livestep list — the proof step that this change adds, and the run's own count:The bed's own summary, as it lands on disk:
The R5 hits, classified. The broader co-occurrence sweep in the gate above returns 11 hits, and each one is read here:
AGENTS.mdand 2 incharly.yml— this change's own text, and each one carries the CONJUNCTION (behind AND un-advanced) that the legacy criterion lacks: the argument for the shipped criterion, the sentence that a reported-behind pin is not a failure, the proof's own requirement, and the control's and the proof's task descriptions.scripts/measure-pin-cadence.pyand 1 inscripts/check-pin-currency.sh— the measurement's own subject and its counterfactual ("a gate that fails on 'behind' is red on these days"), and the proof's assertion that the recent arm still reports the distance without staleness.CHANGELOG/2026.278.0912.md— history, where "behind" is spatial and "the red" is a check failure rather than the criterion.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.charly.ymlcomment claimed the 168 h bound "is the bound the producer's own README documents" — a grep of plugin-task, in the umbrella checkout and in the module cache forv0.2026296.2153, found no such bound: the producer's knob is opt-in and carries no default. Missed control: the claim was written into a shipped comment without being read back from the producer it cites. Blast radius: one comment incharly.ymland one bullet inAGENTS.md. Root fix: both now state that the bound is this repo's own number, andscripts/measure-pin-cadence.pyre-derives it. (b) The first measurement figures came from a narrower look, and the script's window was a day count that slid with the wall clock, so a re-run on another day produced numbers the prose did not claim. Missed control: a measurement whose window is not named cannot be re-derived. Blast radius: thecharly.ymlcomment, theAGENTS.mdbullets, the workflow header. Root fix: the script takes--since/--until, and every figure is now over a window named by its dates. (c) The first bed run's evidence was on a drifted tree — the file mtimes post-dated the bed's start. Missed control: the bed ran before the last edit. Root fix: the bed is re-run on the committed tree, and its output is pasted above. (d) The first gate run omitted thetools/*lint sweep that CI runs. Missed control: the gate did not read CI's shape before it was written. Root fix: the gate now carries the sweep, and the whole gate is re-run on the committed tree. (e) The gate's own measurement contradicted two numbers this change had written into its own new prose: the stale ages run 7.5 d to 14.7 d, not 8.7 d to 14.7 d, and the 7.5 d event sits inside an 8.1 d lapse (box/cachyos, 2026-10-08 → 2026-10-16), not inside one of the 10.2 d or 15.3 d lapses. Missed control: the figures were carried into the prose from an earlier run of the measurement and were never read back against the script that produces them. Blast radius: one bullet inAGENTS.mdand one comment block incharly.yml. Root fix: both surfaces carry the measured range and the three lapses it falls inside, and the whole gate — plus the bed — is re-run on the corrected tree. The product finding — that this repo's own gate never asked the currency question over its ownbox/*leaves — is 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, closed by this PR.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 bound is stated once, as theSTALE_AFTERparameter;AGENTS.mdand the workflow header describe it in prose, andscripts/measure-pin-cadence.pyre-derives it from this repo's own history instead of a second hand-kept list.pinsverb, and the advance is the product's ownsync— never a hand-pin, a branch checkout, or agit update-indexbehind the verb's back.028fd26e7ccadef3774c98b6d7e2e744d1d60faarather than the issue's now-stale871cb35ea5e7. No prose in this change documents a behaviour the product does not have.## How tested(above) is keyed on the legacy criterion; its predicate is calibrated against the known positive (the issue's own sentence) before it is run over the tree, and the broader co-occurrence sweep's hits are each read and classified there.git statuswas read before the first edit; the change is two commits onfeat/pin-currency-control, cut from freshorigin/main; no history was rewritten, no force-push, no amend after a push, no hook bypass, and no direct push tomain. No submodule was edited:box/ubuntuwas advanced inside this repo's own tree throughcharly task sync, and the umbrella's gitlink is not touched by this PR.charly.ymland the proof goes red, so the coverage cannot pass without the change. The proof is discriminating in its own right — the neglected arm fails and the recent arm passes, over a fixture whose two arms differ only in the date of the commit that recorded the pin.charly versionreports the CalVer of this commit — and the binary's module set carries theplugin-taskrelease this change pins. The shared host install was never used.charly/pr-validatoris the merge gate.Change classification
Hook / workflow scripts (the new
.github/workflows/pin-currency.yml) plus candy / box config (this repo'scharly.ymltask surface and thebox/ubuntugitlink) — 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.Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)