Skip to content

feat(pins): install the pin-currency control and advance box/ubuntu to the served ref - #1050

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/pin-currency-control
Oct 23, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/pin-currency-control

Conversation

@aitrawog

Copy link
Copy Markdown
Contributor

Closes #1048

Summary

Head f6c6ec2a32068f4ce60f6ddfe695570b8fe8481f — 8 files changed, 604 insertions(+), 2 deletions(-).

charly's own gate never asked the currency question over charly's own box/* 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 advances box/ubuntu in the same cutover — the two things #1048 asks for.

The control. 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. charly task pin-currency-proof proves the control can fail — it 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 goes red, the same pin advanced recently passes.

The correction to the criterion (R4). #1048 asks for "a gate step in charly that fails when a box/* twin is behind the ref its own .gitmodules declares". 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.py re-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 871cb35ea5e7 for box/ubuntu. That is no longer the ref distro-ubuntu's served main carries — the served tip is 028fd26e7ccadef3774c98b6d7e2e744d1d60faa — 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 through charly task sync and lands at the served ref, and the umbrella's distro-ubuntu edge, 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: a pull_request trigger for the answer while the change is open, and a daily schedule for the merge that happened with no PR at all. charly.yml carries the STALE_AFTER parameter, the pin-current wrapper, the pin-currency-proof task, and the bed step that runs the proof end to end through verb:task. scripts/check-pin-currency.sh is the control's own proof; scripts/measure-pin-cadence.py re-derives the bound. AGENTS.md states the control and the measurement. charly/go.mod moves plugin-task to the release that carries the opt-in stale_after bound the control reads. box/ubuntu moves f23f751 → 028fd26e.

How tested

The change class is hook / workflow scripts — the new .github/workflows/pin-currency.yml — together with candy / box config — this repo's charly.yml task surface and the box/ubuntu gitlink. 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:

=== 0. the tree this gate runs on ===
$ git rev-parse HEAD
f6c6ec2a32068f4ce60f6ddfe695570b8fe8481f
$ git status --porcelain
(empty above = the working tree IS the committed tree)

=== 1. the R9 build: the worktree-local, CalVer-stamped binary ===

--- bootstrap (R9)
$ bash scripts/bootstrap-charly.sh
bootstrap-charly: regenerating compiled-in plugin wiring
bootstrap-charly: building bin/charly
bootstrap-charly: built ./bin/charly (2026.296.2227)
exit=0

--- the generated wiring is clean
$ bash scripts/check-generated-clean.sh

exit=0

--- the binary is the worktree-local build
$ bash -c ./bin/charly version
2026.296.2227
exit=0

=== 2. the core Go gate (charly/) ===

--- go vet ./...
$ bash -c cd charly && go vet ./...

exit=0

--- go test ./...
$ env TMPDIR=/tmp/charly-ci GOTMPDIR=/tmp/charly-ci bash -c cd charly && go test ./...
ok  	github.com/opencharly/charly/charly	196.176s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	130.394s
exit=0

=== 3. the tools/* sweep ===
$ for d in tools/*/; do ( cd $d && GOWORK=off go test -count=1 ./... ); done
  tools/generate-packages/: ?   	github.com/opencharly/charly/candy/generate-packages/cmd/serve	[no test files]
  tools/golden-cloudinit/: ?   	github.com/opencharly/charly/tools/golden-cloudinit	[no test files]
  tools/golden-compile/: ?   	github.com/opencharly/charly/tools/golden-compile	[no test files]
  tools/gomod-canonical/: ok  	github.com/opencharly/charly/tools/gomod-canonical	0.001s
  tools/ledger-validate/: ok  	github.com/opencharly/charly/tools/ledger-validate	0.002s
exit=0

=== 4. the formatter + linter gate ===

--- gofmt -l charly tools
$ bash -c out=$(gofmt -l charly tools); [ -z "$out" ] || { echo "$out"; exit 1; }

exit=0

--- golangci-lint fmt --diff (charly/)
$ bash -c cd charly && GOTOOLCHAIN=go1.26.8 "$(go env GOPATH)/bin/golangci-lint" fmt --diff

exit=0

--- golangci-lint run (charly/)
$ bash -c cd charly && GOTOOLCHAIN=go1.26.8 "$(go env GOPATH)/bin/golangci-lint" run ./...
0 issues.
exit=0
$ for d in tools/*/; do ( cd $d && GOWORK=off golangci-lint run ./... ); done
  tools/generate-packages/: 0 issues.
  tools/golden-cloudinit/: 0 issues.
  tools/golden-compile/: 0 issues.
  tools/gomod-canonical/: 0 issues.
  tools/ledger-validate/: 0 issues.
exit=0

=== 5. the manifest ===

--- charly box validate
$ ./bin/charly box validate
charly box validate: OK — checked 603 candies, 122 boxes, 49 deploys, 7 distros, 7 builders; 0 warnings, 0 errors
exit=0

=== 6. the control and its own proof ===

--- the control, live over this repo's own six twins
$ ./bin/charly task pin-current
task pin-current: 1 step(s), 0 failed
  [pass] run — ask whether every box/* pin is current, within this repo's own bound on neglect
      currency: 2 of 6 pin(s) NOT current [2 behind, 4 cur]; intents: 6 upstream leaf/leaves (6 implicit), 0 derived-from edge(s); NOT CURRENT: box/cachyos: behind; intent upstream:main (implicit: .gitmodules branch=); recorded 42a3f078ac; served 1893455d3a (branch); box/fedora: behind; intent upstream:main (implicit: .gitmodules branch=); recorded b3c35d4de6; served ee558d4d97 (branch); producer-first legs: box/cachyos (42a3f078ac -> 1893455d3a) -> box/fedora (b3c35d4de6 -> ee558d4d97)
exit=0

--- the control's own proof — that it can fail
$ ./bin/charly task pin-currency-proof
task pin-currency-proof: 1 step(s), 0 failed
  [pass] check — the control bites on a neglected pin and stands down on a churned one
      exit=0
exit=0

=== 7. the mutation differential: the coverage must FAIL without the change ===
$ MUT: the control's question removed (mode: "${MODE}" -> "verify") — the proof must go red
== the control: a pin NEGLECTED past the bound must FAIL ==
FAIL: a pin neglected since 2020-01-01T00:00:00Z must fail the bound
task pin-current: 1 step(s), 0 failed
  [pass] run — ask whether every box/* pin is current, within this repo's own bound on neglect
      verify: 0 policy pin(s) hold across 1 submodule(s); 1 checkout(s) clean at their gitlink
exit=1  (non-zero = the proof caught the neutered control)

=== 8. the R5 sweep: the legacy criterion, claimed nowhere in the tree ===
--- 8a. the predicate is CALIBRATED against the known positive (issue #1048's own sentence)
$ grep -inE 'fails? (when|if) [^.]{0,30}twin is behind' /tmp/legacy-criterion.txt
1:Install the control: a gate step in `charly` that fails when a `box/*` twin is behind the ref its own `.gitmodules` declares.
exit=0  (0 = the predicate catches the legacy claim; 1 = the predicate is useless)
--- 8b. the same predicate over every shipped file
$ git grep -inE 'fails? (when|if) [^.]{0,30}twin is behind' -- '*.md' '*.yml' '*.sh' '*.py' '*.go'
exit=1  (1 = the legacy criterion is in no shipped file)
--- 8c. the BROADER co-occurrence sweep — every hit, read and classified
$ git grep -inE '[^.]{0,60}\b(fails?|failing|failed|red)\b[^.]{0,60}\bbehind\b|[^.]{0,60}\bbehind\b[^.]{0,60}\b(fails?|failing|failed|red)\b' -- '*.md' '*.yml' '*.sh' '*.py'
AGENTS.md:77:  one twin was behind — so a gate on the distance would be red roughly three days out
AGENTS.md:105:  which pins are behind and which are neglected; only a neglected pin turns it red.
AGENTS.md:108:  `charly.yml`** — a pin behind its served ref and un-advanced since 2020 must go red,
CHANGELOG/2026.278.0912.md:304:own `summary.yml`, and the defect behind the red was reported to the owner that could fix it:
CHANGELOG/2026.278.0912.md:2435:- **Block 2 — the reds were dispositioned with framings this project forbids.** Verbatim from the verdict: "`origin/ma
charly.yml:4111:    description: Ask whether every box/* pin is at the ref its intent names, bounded by this repo's own neglect bound (fails only on a
charly.yml:4132:    description: Prove the pin-currency control can fail — a pin behind its served ref AND un-advanced past the bound must be reported
scripts/check-pin-currency.sh:181:  echo "FAIL: the recent arm's pin must still be reported behind — otherwise the two" >&2
scripts/measure-pin-cadence.py:5:WHY THIS EXISTS. `charly task pin-current` fails on NEGLECT: a twin that is behind
scripts/measure-pin-cadence.py:22:                     that fails on "behind" is red on exactly these days, which is
scripts/measure-pin-cadence.py:167:          "  (a gate that fails on 'behind' is red on these days)")
exit=0  (every hit above is classified in the PR body)

=== 9. the derivation of the bound (the criterion is measured, not chosen) ===
$ python3 -I scripts/measure-pin-cadence.py --since 2026-09-22 --until 2026-10-23 --bound-hours 168
box/arch       behind on 24/32 days, stale on  7
box/cachyos    behind on 27/32 days, stale on  3
box/debian     behind on 25/32 days, stale on  7
box/fedora     behind on 26/32 days, stale on  5
box/ubuntu     behind on 26/32 days, stale on  7
box/omarchy    behind on 17/32 days, stale on  6

window: 32 days, 2026-09-22 .. 2026-10-23   bound: 168h
behind_day_rate: 28/32 = 87.5%  (a gate that fails on 'behind' is red on these days)
stale_day_rate:  11/32 = 34.4%  (the criterion the control ships)

longest gap WITHIN the bound (ordinary operation): 6.4 d  (box/cachyos, 2026-07-09 -> 2026-07-16)
gaps PAST the bound (lapses): 25  — shortest 8.0 d, longest 25.1 d
exit=0

$ python3 -I scripts/measure-pin-cadence.py --since 2026-10-15 --until 2026-10-23 --bound-hours 168 --list-days
box/arch       behind on  6/9 days, stale on  2
box/cachyos    behind on  7/9 days, stale on  1
box/debian     behind on  7/9 days, stale on  2
box/fedora     behind on  7/9 days, stale on  2
box/ubuntu     behind on  8/9 days, stale on  2
box/omarchy    behind on  5/9 days, stale on  4

window: 9 days, 2026-10-15 .. 2026-10-23   bound: 168h
behind_day_rate: 8/9 = 88.9%  (a gate that fails on 'behind' is red on these days)
stale_day_rate:  6/9 = 66.7%  (the criterion the control ships)

longest gap WITHIN the bound (ordinary operation): 6.4 d  (box/cachyos, 2026-07-09 -> 2026-07-16)
gaps PAST the bound (lapses): 25  — shortest 8.0 d, longest 25.1 d

every STALE day in the window, with the age that made it stale:
    2026-10-15  box/arch       age   8.7 d  (bound 7.0 d)
    2026-10-15  box/debian     age   8.7 d  (bound 7.0 d)
    2026-10-15  box/fedora     age   8.7 d  (bound 7.0 d)
    2026-10-15  box/ubuntu     age   8.7 d  (bound 7.0 d)
    2026-10-16  box/arch       age   9.7 d  (bound 7.0 d)
    2026-10-16  box/cachyos    age   7.5 d  (bound 7.0 d)
    2026-10-16  box/debian     age   9.7 d  (bound 7.0 d)
    2026-10-16  box/fedora     age   9.7 d  (bound 7.0 d)
    2026-10-16  box/ubuntu     age   9.7 d  (bound 7.0 d)
    2026-10-18  box/omarchy    age  11.7 d  (bound 7.0 d)
    2026-10-19  box/omarchy    age  12.7 d  (bound 7.0 d)
    2026-10-20  box/omarchy    age  13.7 d  (bound 7.0 d)
    2026-10-21  box/omarchy    age  14.7 d  (bound 7.0 d)
exit=0

GATE_FAILED=0
GATE_RC=0

The bed — check-task is the bed that composes the changed surface, and it runs the new proof step end to end through verb:task. It ran on the same committed tree, after the last edit:

charly check run check-task: [deploy-add] START (charly deploy add; log: .check/check-task/2026.296.2234/deploy-add.log)
charly check run check-task: [deploy-add] PASS after 1m34.919s (log: .check/check-task/2026.296.2234/deploy-add.log)
charly check run check-task: [bring-up-members] START
charly check run check-task: [bring-up-members] PASS after 0s
charly check run check-task: [check-live] START (charly check live; log: .check/check-task/2026.296.2234/check-live.log)
charly check run check-task: [check-live] PASS after 2m5.951s (log: .check/check-task/2026.296.2234/check-live.log)
charly check run check-task: [update] START (charly update; log: .check/check-task/2026.296.2234/update.log)
charly check run check-task: [update] PASS after 1m19.989s (log: .check/check-task/2026.296.2234/update.log)
charly check run check-task: [cleanup] START (charly deploy del; log: .check/check-task/2026.296.2234/cleanup.log)
charly check run check-task: [cleanup] PASS after 1m7.863s (log: .check/check-task/2026.296.2234/cleanup.log)
charly check run check-task: [cleanup-members] START
charly check run check-task: [cleanup-members] PASS after 0s
charly check run check-task: PASS (steps=6)
Pruned 1 old check run artifact(s) (keep_check_runs=3)
BED_EXIT=0

The new step, inside the bed's own check-live step list — the proof step that this change adds, and the run's own count:

  PASS  check the pin-currency CONTROL's own proof runs end to end through verb:task — a neglected pin must be reported STALE and fail, the same pin advanced recently must pass  [task-pin-currency-proof-runs]  exit=0
  PASS  check command=charly task --output prints the FINAL step's captured stdout RAW on stdout, the human report diverted to stderr (the hand-off a workflow `$id.stdout` ref reads)  [task-output-captured]  exit=0
  PASS  check --output and --json are rejected TOGETHER with the NAMED error (never a silent precedence, never a half-formatted stdout)  [task-output-json-exclusive]  exit=1
  PASS  check a task's params — the defaulted one AND the supplied one — resolve through the task env (the same self-check FAILS on a wrong value and SKIPS on an unresolved name, so a pass is never vacuous)  [task-params-resolved]  exit=0
  PASS  check a MISSING required param is still the NAMED error the moved workflowkit helper produces (never a silent empty value the step runs with)  [task-params-required-named]  exit=1
  PASS  check a depends_on CYCLE is still the NAMED error naming the WHOLE chain (the moved workflowkit closure helper) — never a hang, never a silent truncation to a shorter order  [task-helpers-cycle-named]  exit=1
  PASS  check piped stdin reaches a task's steps as TASK_STDIN and as the TASK_STDIN_FILE path — both ALWAYS defined in non-TTY mode, both carrying the piped bytes  [task-stdin-visible]  exit=0

10 steps: 10 passed, 0 failed, 0 skipped

The bed's own summary, as it lands on disk:

bed: check-task
calver: 2026.296.2234
driver: /home/atrawog/Sync/Atrapub/a/claude/opencharly/.worktrees/light-init/charly/bin/charly
driver_version: 2026.296.2227
driver_size: 54074422
driver_mtime: 2026-10-23T22:29:23Z
runner_stderr: runner.stderr.log
steps:
  - name: deploy-add
    duration_seconds: 95
    ok: true
    skipped: 0
  - name: bring-up-members
    duration_seconds: 0
    ok: true
    skipped: 0
  - name: check-live
    duration_seconds: 126
    ok: true
    skipped: 0
  - name: update
    duration_seconds: 80
    ok: true
    skipped: 0
  - name: cleanup
    duration_seconds: 68
    ok: true
    skipped: 0
  - name: cleanup-members
    duration_seconds: 0
    ok: true
    skipped: 0
total_seconds: 369
diagnostics:
  errors: 0
  warnings: 0
  advisories: 0
  allowlisted: 0
  errors_fatal: true
  warnings_fatal: false
  advisories_fatal: false
  cache_ratio: not-applicable-no-build-steps
ok: true

The R5 hits, classified. The broader co-occurrence sweep in the gate above returns 11 hits, and each one is read here:

  • 3 in AGENTS.md and 2 in charly.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.
  • 3 in scripts/measure-pin-cadence.py and 1 in scripts/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.
  • 2 in 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:

$ git rev-parse HEAD
f6c6ec2a32068f4ce60f6ddfe695570b8fe8481f

Rulebook compliance

  • R0 — skills first. The skills this area selects were loaded before the first edit: /charly-internals:git-workflow (the landing mechanics), /charly-internals:go and /charly-internals:go-quality (this repo's Go gate recipe and the lint surface), /charly-internals:strict-policy and /charly-internals:root-cause-analyzer (the discipline and the anomalies), /charly-internals:plugin and /charly-internals:disposable (placement and the disposable targets), /charly-check:check (the R10 matrix), and this repo's own AGENTS.md.
  • R1 — every anomaly got a root-cause analysis, and every finding is fixed or filed. (a) The charly.yml comment 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 for v0.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 in charly.yml and one bullet in AGENTS.md. Root fix: both now state that the bound is this repo's own number, and scripts/measure-pin-cadence.py re-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: the charly.yml comment, the AGENTS.md bullets, 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 the tools/* 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 in AGENTS.md and one comment block in charly.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 own box/* leaves — is charly's nested box/ubuntu gitlink is behind the ref its own .gitmodules declares AGAIN — the #1035 recurrence, and the control that would have caught it was never installed #1048, closed by this PR.
  • R2 — no duplication. The control is ONE operation: charly task pins MODE=currency with STALE_AFTER; sync and pin-current are thin wrappers over it, and the proof script reads the shipped wiring out of charly.yml rather than restating it. The bound is stated once, as the STALE_AFTER parameter; AGENTS.md and the workflow header describe it in prose, and scripts/measure-pin-cadence.py re-derives it from this repo's own history instead of a second hand-kept list.
  • R3 — no workaround. Nothing is retried, slept, suppressed, or worked around. The control is the product's own pins verb, and the advance is the product's own sync — never a hand-pin, a branch checkout, or a git update-index behind the verb's back.
  • R4 — the product first, then the prose. The control is installed, and the two false statements are corrected in the same change: the criterion fires on neglect-by-age rather than on "behind", and the advance lands at the served ref 028fd26e7ccadef3774c98b6d7e2e744d1d60faa rather than the issue's now-stale 871cb35ea5e7. No prose in this change documents a behaviour the product does not have.
  • R5 — the legacy is gone, with the claim-keyed grep pasted. The sweep in ## 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.
  • R6 — user work and git safety. git status was read before the first edit; the change is two commits on feat/pin-currency-control, cut from fresh origin/main; no history was rewritten, no force-push, no amend after a push, no hook bypass, and no direct push to main. No submodule was edited: box/ubuntu was advanced inside this repo's own tree through charly task sync, and the umbrella's gitlink is not touched by this PR.
  • R7 — the coverage fails without the change. The mutation differential in the gate above: the control's own question is removed from the shipped charly.yml and 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.
  • R8 — live or skip. No service is crossed and none is mocked: the control, the proof, the measurement and the advance are the product's own verbs over real local git repositories and the real remote tips.
  • R9 — binary equals source. The gate used the worktree-local build — charly version reports the CalVer of this commit — and the binary's module set carries the plugin-task release this change pins. The shared host install was never used.
  • R10 — a fresh, on-commit proof. The gate and the bed both ran on the committed tree this PR pushes, with zero warnings, and the workflow's own three steps — build the worktree-local binary, run the control's proof, run the control — ran in the workflow's own order on that tree. The org-wide charly/pr-validator is the merge gate.

Change classification

Hook / workflow scripts (the new .github/workflows/pin-currency.yml) plus candy / box config (this repo's charly.yml task surface and the box/ubuntu gitlink) — 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, the tools/* sweep, gofmt, and golangci-lint over charly/ and every tools module). All of it is pasted above, run on the committed tree this PR pushes, with zero warnings. The tier earned is fully tested and validated.

Filed issues

Agent: charly

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

…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)
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Correctness (diff vs. claimed behaviour)

The diff does exactly what the body states, and the file-level claims reconcile with the diff:

  • File count / churn. 8 files, additions 73+52+1+91+1+2+193+191 = 604, deletions 1 (box/ubuntu) + 1 (go.mod) = 2 — matches "604 insertions(+), 2 deletions(-)". No hidden files.
  • The control. charly.yml gains STALE_AFTER on the pins task (stale_after: "${STALE_AFTER}"), the pin-current wrapper (param: [MODE=currency, STALE_AFTER=168h]), the pin-currency-proof task (command: bash scripts/check-pin-currency.sh, stdout contains PIN-CURRENCY-PROOF-OK), and the bed step task-pin-currency-proof-runs plus a contains: guard. All present in the diff.
  • The proof (scripts/check-pin-currency.sh) extracts the pins:/pin-current: wiring from the real charly.yml, asserts the extracted wrapper carries STALE_AFTER=168h, builds a two-arm fixture differing only in the recording-commit date, and asserts the neglected arm reports STALE pin(s)/has not advanced it for/(bound 168h) while the recent arm stays green yet still reports behind. The extract_entity awk correctly stops at the next column-0 non-comment key and trims trailing comments, so it grabs the wiring (not prose) and cannot drift from the shipped control.
  • The derivation (scripts/measure-pin-cadence.py) takes --since/--until/--bound-hours/--list-days, computes behind/stale day sets and advance-gap lapses from real history, and re-derives the cited figures.
  • The advance. box/ubuntu moves f23f751… → 028fd26e…, exactly the served ref the body names; go.mod bumps plugin-task to v0.2026296.2153 with a matching go.sum pair (both h1: and /go.mod lines present).

Body honesty / internal consistency

The measurement numbers are internally coherent:

  • 32-day window 2026-09-22 .. 2026-10-23 = 32 days; per-twin behind counts 24/27/25/26/26/17 ⇒ "17 to 27"; 28/32 = 87.5 % at-least-one-behind; 11/32 = 34.4 % stale. ✓
  • 9-day window 2026-10-15 .. 2026-10-23 = 9 days; 6/9 = 66.7 % stale; 8/9 = 88.9 % behind. The 13 listed stale twin-days collapse to the 6 distinct dates (10-15, 10-16, 10-18, 10-19, 10-20, 10-21), matching per-twin stale counts 2+1+2+2+2+4 = 13. ✓
  • Ages step +1.0/day within each lapse (8.7→9.7; 11.7→12.7→13.7→14.7), each < its lapse length (10.2 d, 15.3 d), and the 7.5 d cachyos age sits inside the 8.1 d lapse. The R1(e) correction (7.5 d not 8.7 d, inside the 8.1 d cachyos lapse) is reflected verbatim in both AGENTS.md and charly.yml. ✓
  • Bound logic "only whole-day bound strictly between 6.4 d and 8.0 d = 7 d" is arithmetically correct.
  • The R5 sweep is internally consistent: 8c lists 11 hits, and the classification (3 AGENTS + 2 charly.yml + 3 measure + 1 check-pin + 2 CHANGELOG) sums to 11, with the pre-existing CHANGELOG hits correctly labelled as history.
  • R1's self-reported false claims (the "producer README documents the bound" line, the sliding window, the drifted bed tree, the missed tools/* sweep, the 8.7-vs-7.5 age) are each described as fixed, and the current prose matches the fixes — honest self-correction, not a stale assertion.

Tests

The 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 (mode: "${MODE}" -> "verify" mutation → proof exits 1), and it is exercised both as a standalone task and end-to-end through verb:task in the check-task bed (task-pin-currency-proof-runs), with a contains: guard so a missing surface turns the bed red. The green arm is non-vacuous (asserts behind is still reported while STALE pin(s) is absent).

Security

permissions: contents: read; pull_request (not pull_request_target); constant path interpolation in both scripts; GIT_CONFIG_GLOBAL/SYSTEM=/dev/null isolation in the fixture; mktemp -d + trap rm -rf. No secrets, no untrusted-input shell interpolation in CI-executed paths.

Scope & cleanliness

Coherent single cutover: control + wrapper + proof + derivation + docs + plugin-task bump + the box/ubuntu advance. No duplicated control (the proof reads the shipped wiring rather than restating it), no dead legacy path.

Comments

There 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

  • The workflow YAML has not been observed running under actual GitHub Actions (the body shows the three steps run locally in order). Standard for a new workflow file — it will validate on this PR's pull_request trigger — and the body does not over-claim a CI run.
  • measure-pin-cadence.py treats any pin != tip as "behind" rather than testing ancestry; a reasonable measurement approximation for a dev tool, and the control's own ancestry logic is what ships.

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.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) October 23, 2026 23:03
@github-actions
github-actions Bot merged commit 5001ff6 into main Oct 23, 2026
5 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Oct 23, 2026
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

This PR landed — squash 5001ff6904102916f083a9cf488740388d574a8c, merge-time tag v2026.296.2303, merged 2026-10-23T23:03:47Z. The umbrella's distro-ubuntu edge is unblocked by the box/ubuntu advance it carries, and #1048 is closed with its RESOLVED record.

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 "behind AND un-advanced", while the producer's staleEligible (plugin-task v0.2026296.2153, candy/plugin-task/verbs.go:981-991) makes a pin STALE when it is behind, not-on-the-served-line or differs AND un-advanced.

The squash was cut from f6c6ec2a, the head this PR was validated on, and the fix was still an unpushed local commit when the merge landed — so the merged tree carries the sentence, and the repo's own proof still exercises only the behind class. The control's behaviour is right (measured on a squash-shaped fixture it reports 1 of 1 pin(s) NOT current [1 not-on-the-served-line], marks the pin STALE and exits 1); the sentence and the proof's class coverage were not.

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)

github-actions Bot pushed a commit that referenced this pull request Oct 24, 2026
…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)
github-actions Bot pushed a commit that referenced this pull request Oct 24, 2026
… 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)*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant