Repository navigation
Description
What
Nothing in the org catches a downgrade of a compiled-in plugin module pin. The pins
this issue is about are not gitlinks: they are require lines in charly/go.mod whose
modules are LINKED INTO the binary, so the pinned version IS the binary's behaviour.
$ grep -n "plugin-check" charly/go.mod
21: github.com/opencharly/plugin-check/candy/plugin-check v0.2026298.205
A gitlink pin is audited from the index — the umbrella's pin contract judges every pin it
declares, and a pin that does not match its intent is a named failure. A module pin has no
such audit. The one workflow in this repo that TRIGGERS on the file that carries the pin
asserts nothing about it:
$ grep -n "charly/go.mod\|pin-currency-proof\|pin-current\|self-test" .github/workflows/pin-currency.yml
38: - 'charly/go.mod'
78: run: ./bin/charly task pin-currency-proof
81: run: python3 -I scripts/measure-pin-cadence.py --self-test
84: run: ./bin/charly task pin-current
pin-currency.yml runs on exactly charly/go.mod and its three assertions are the
currency proof, a script self-test, and charly task pin-current — and pin-current is
about the box/* gitlinks only ("asks whether every box/* gitlink is at the …",
line 3). Not one assertion in the org compares a compiled-in module pin against a floor.
The RCA
- Mechanism. A module pin is a version string in a
requireline, and a version
string has no direction.v0.2026298.205→v0.2026295.2128is a legalgo.mod
edit, it compiles, and the binary silently loses whatever behaviour the newer version
carried. Nothing in the change class "a module pin carried into a product binary"
looks at the direction of the move. - The missed control. There are THREE places a floor could live, and each is empty:
- The pin contract. The umbrella's
pins:block declares apin_mapwith six
ENTRIES, all of them gitlink edges (distro-arch→box/arch, …distro-ubuntu→
box/ubuntu). There is no module pin anywhere in the contract, so there is no
declared floor to compare a module pin against. - The repo's own CI.
pin-currency.ymltriggers oncharly/go.modand asserts
onlybox/*gitlinks (above). - The one literal version assertion in the org. The
check-wave-pinsbed
(charly.yml:4998-5065) greps for hand-copied version strings
(plugin-build/candy/plugin-build v0.2026286.1121,plugin-vm/candy/plugin-vm v0.2026286.856). It is referenced by no plan —git grep check-wave-pinsin
this repo finds only its own definition (lines 4998, 5023, 5026, 5032, 5034) — so
no live lane runs it, and its expectations are a wave stale. See
check-wave-pins — the declared R10 gate for a pin wave — cannot serve as one: its qualified invocation fails to resolve, and its pin expectations are a wave stale #958, which carries that bed's unusability as a pin wave's R10
gate; this issue is the other half: even a repaired bed that asserts the
adopted versions proves nothing about a DOWNGRADE, because a downgrade is a
coherent pin story too.
- The pin contract. The umbrella's
- A capable control EXISTS and is dormant.
verb:module-pins
(plugin-task/candy/plugin-task/verbs.go:1616-1680) is exactly the right shape: in
mode: checkit asserts that every module matching a glob carries the SAME pin as a
sourcego.mod'srequire. But no repo uses it —
grep -rn "module-pins" --include=charly.yml .finds only plugin-task's own
self-check that the verb is DECLARED. And note what it asserts: EQUALITY with a source
go.mod, not a FLOOR — a coordinated downgrade (source and lockstep set together)
passes it. Equality is a different guarantee from "never moves backwards", and only the
second one catches this. - The blast radius. Any future change that lowers a compiled-in module pin passes
this repo's CI unchanged, and the binary silently loses the behaviour that pin carried.
Forplugin-checkthat behaviour is the three-state bed verdict (check-runner: SKIP counts as PASS in the bed summary — a bed can mint a green acceptance record that proves nothing (false green) #904)
— the change that motivated this issue is the one that made the pin matter, and it is
also the one that made a silent downgrade consequential.
The evidence
The org's own readers of a compiled-in module pin, and what each of them asserts:
| surface | what it asserts about a module pin |
|---|---|
.github/workflows/pin-currency.yml:78,81,84 |
box/* GITLINKS only; nothing about charly/go.mod's requires |
the umbrella's pins: → pin_map: (6 entries) |
six gitlink edges; no module pin exists to judge |
check-wave-pins (charly.yml:4998-5065) |
two hand-copied version strings; no plan runs it; a wave stale |
verb:module-pins (mode check) |
EQUALITY with a source go.mod; declared, implemented, and used by no repo |
The symmetry that makes this a gap: a gitlink pin that moves backwards is reported by
charly task pins --param MODE=currency as a pin that "is not at the ref its intent
names". A module pin has no equivalent question to ask, because no intent is declared
anywhere for it.
The root fix
A committed control that asserts every compiled-in module pin is at least at a
declared floor, where:
- the floor is DATA, declared in one place (the pin contract, or an equivalent in this
repo) rather than a hand-copied string — the failure modecheck-wave-pins's own
comment names ("a hand-copied string would pass a diff that never moved the pin"); - the control runs on the
charly/go.modtrigger thatpin-currency.ymlALREADY has, so
the workflow needs no new event wiring; - the comparison is a FLOOR, not an equality — a downgrade must fail even when every
module moves together.
verb:module-pins in mode: check is the mechanism that already exists for the
equality half; it needs a source of truth that is floored, and it needs a repo to run it.
What closes this
Two halves, closeable together: (1) the pin contract declares a module pin for each
compiled-in plugin, with a FLOOR; (2) a control asserts every compiled-in module pin is at
least at that floor, running on the charly/go.mod trigger pin-currency.yml already
has. verb:module-pins in mode: check is the dormant mechanism for the equality half,
and it needs a floored source of truth to become a floor. The proof is a fixture that
lowers a module pin and shows the control red — a test that cannot fail is invalid.
Notes
- Adjacent, different scope. check-wave-pins — the declared R10 gate for a pin wave — cannot serve as one: its qualified invocation fails to resolve, and its pin expectations are a wave stale #958 is about the
check-wave-pins
bed being unusable as a pin wave's R10 gate (its qualified invocation fails to resolve,
and its expectations are a wave stale). Fixing that bed gives a wave a working gate;
it does not, on its own, give the org a downgrade control, because a repaired bed that
reads the adopted versions from the pin graph still has no module pin to read — the
graph declares six gitlink edges and zero module pins. The two should be closed
together, and this issue is the declaration half. - Where this came from. This is the R1 disposition of a non-blocking observation the
charly/pr-validatorraised on chore(deps): adopt plugin-check v0.2026298.205 — a skipped check is not a pass #1071 (the consumer leg of
check-runner: SKIP counts as PASS in the bed summary — a bed can mint a green acceptance record that proves nothing (false green) #904): "The behavioral proof is a one-off live differential, not CI
coverage; a future downgrade of the pin would not be caught bycharly/...tests. This
is disclosed and partly filed (feat(core)!: K3 ready-now opener — dissolve alias residue + calamares_types + dead code #137 covers the report-FAIL branch) … Disclosed, so not a
block." The downgrade half was disclosed and NOT filed; this is it, with its RCA. The
full disposition is on that PR's thread.
Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)
Activity