Skip to content

no committed control catches a downgrade of a compiled-in module pin — pin-currency.yml triggers on charly/go.mod and asserts nothing about it #1072

Open

Description

@aitrawog

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 require line, and a version
    string has no direction. v0.2026298.205 → v0.2026295.2128 is a legal go.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:
    1. The pin contract. The umbrella's pins: block declares a pin_map with 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.
    2. The repo's own CI. pin-currency.yml triggers on charly/go.mod and asserts
      only box/* gitlinks (above).
    3. The one literal version assertion in the org. The check-wave-pins bed
      (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-pins in
      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.
  • 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: check it asserts that every module matching a glob carries the SAME pin as a
    source go.mod's require. 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.
    For plugin-check that 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 mode check-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.mod trigger that pin-currency.yml ALREADY 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

Agent: charly
Assisted-by: Claude Code minimax/minimax-m3.1-flash:cloud (fully tested and validated)

Activity

  1. self-assigned this
    on Oct 25, 2026
  2. added
    category:governance
    type:fix
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category:governancetype:fix

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions