Skip to content

chore(deps): compile the landed store, clean and build plugins into charly - #1203

Merged
github-actions[bot] merged 3 commits into
mainfrom
feat/pin-clean-store
Nov 18, 2026
Merged

github-actions[bot] merged 3 commits into
mainfrom
feat/pin-clean-store

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Summary

charly/go.mod still compiled the pre-cutover plugin-clean and plugin-build, so a binary
built from main could not exercise any of the four changes that landed today: the sdk image
store, the two new charly clean categories, the store-IDENTITY routed cache sweep, and the
build drive that writes built images into that store. The compiled-in requires now name the
merged module tags, read from the module proxy rather than from the brief:

require was now
plugin-clean/candy/plugin-clean v0.2026287.2341 v0.2026322.1315
plugin-build/candy/plugin-build v0.2026317.2215 v0.2026322.1325
sdk v0.2026321.2010 v0.2026322.1227
spec v0.2026321.1340 v0.2026322.1239

The sdk and spec rows belong to the same bump and neither is cosmetic. sdk is the version
both plugins require. spec is the revert: the version both plugins require
(v0.2026322.1111) still carries the fifth (data) root, so a tree that left the resolver there
would hand every plugin a five-root store while DESIGN.md D-STORE-1 names four.

The shared pin does not live in one file: four in-repo modules mirror sdk/spec and the repo's
own consistency gate compares each against charly/go.mod, so the same change advances them too
(tools/generate-packages, tools/golden-cloudinit, tools/golden-compile,
tools/gomod-canonical). The first three are tidied so their go.sum follows; the fourth is
advanced with go mod edit -require and deliberately NOT tidied, because its subject IS the
canonical require block and go mod tidy there empties it (opencharly/charly#1184); its go.sum
takes the two versions' hashes from go mod download, so the module can RESOLVE what its own
go.mod names rather than only compiling a test that imports nothing from them.

One check-commands-local step is repaired in the same change, because the R10 gate for this
change cannot go green while it is red. box-reconcile-remote-cached was red for two independent
reasons, both reproduced on the shipped 2026.321.2122 binary (control under "How tested"):

  • it compared the whole stdout of its two --remote runs, and the loader's own
    plugin <name>: served from … preamble labels the same project plugin by its short name in one
    run and by its module path in the next, in map order — so two runs whose reconcile report was
    byte-identical went red. The step now compares the report, which is what "agree with the first"
    means;
  • it carried no timeout:, and its two isolated-cache reconciles take 2m33 on this host, past the
    per-step never-hang ceiling — so the probe was killed mid-step and the shell carried on against
    a truncated capture (opencharly/charly#1137). The step now declares timeout: 600s, and each
    of its arms prints what failed instead of failing silently.

No replace directive exists in the tree after the bump, and none is introduced.

How tested

The tags the bump lands, discovered from the module proxy (not taken from the brief):

$ go list -m -versions github.com/opencharly/plugin-clean/candy/plugin-clean | tr " " "\n" | tail -3
v0.2026296.854
v0.2026322.1216
v0.2026322.1315
exit=0
$ go list -m -versions github.com/opencharly/plugin-build/candy/plugin-build | tr " " "\n" | tail -3
v0.2026317.2215
v0.2026319.1655
v0.2026322.1325
exit=0

charly/go.mod carries no replace, and the four requires are the merged tags:

$ go mod edit -json | python3 -c "import json,sys; d=json.load(sys.stdin); print(\"Replace:\", d.get(\"Replace\") or [])"
Replace: []
exit=0
$ grep -nE "opencharly/(plugin-clean/candy|plugin-build/candy|sdk |spec )" go.mod
16:	github.com/opencharly/plugin-build/candy/plugin-build v0.2026322.1325
22:	github.com/opencharly/plugin-clean/candy/plugin-clean v0.2026322.1315
71:	github.com/opencharly/sdk v0.2026322.1227
144:	github.com/opencharly/spec v0.2026322.1239
exit=0

The repo's own cross-module gate, run as the ci workflow's go job runs it — every tools/*
module in its own module context:

$ git rev-parse HEAD   # the tree this loop runs on
2f03ab2c8fb2e4627ec71963c653d3bf7761ce5b
$ for d in tools/*/; do [ -f "$d/go.mod" ] || continue; echo "== $d =="; ( cd "$d" && GOWORK=off go test -count=1 ./... ) || fail=1; done; echo "fail=${fail:-0}"
== 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
fail=0

What the bump RETIRES is the pre-bump store layout, and the predicate is pasted with its own
positive control: the same git grep finds neither identifier in this tree, and both of them in
the source of the tag this commit replaces (-m bounds the control per file, not per run):

$ git grep -n -e CHARLY_IMAGE_STORE_DIR -e XDG_DATA_HOME
exit=1
$ grep -rn -m 4 -e CHARLY_IMAGE_STORE_DIR -e XDG_DATA_HOME /home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/buildkit.go:8:// CHARLY IMAGE STORE (one engine-neutral OCI layout at $XDG_DATA_HOME/charly/images — see
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/charly.yml:18:            CHARLY IMAGE STORE (one OCI layout at $XDG_DATA_HOME/charly/images, see imagestore.go),
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/imagestore.go:5:// One OCI image layout at `$XDG_DATA_HOME/charly/images/` — `oci-layout` + ONE `index.json` +
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/imagestore.go:43:	imageStoreDirEnv = "CHARLY_IMAGE_STORE_DIR"
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/imagestore.go:79:// The store lives under the DATA root (`$XDG_DATA_HOME/charly/images`), not the cache root: a
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/imagestore.go:84:// this file resolves `$XDG_DATA_HOME` itself. When RootData lands, this function becomes
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-build/candy/[email protected]/imagestore_live_test.go:29:// the default is a temp dir; a caller that already exported CHARLY_IMAGE_STORE_DIR (a disposable
exit=0

R9 — the CalVer-stamped, worktree-local build, its version, and the empty tree after it. The
stamp is HEAD's own UTC date, so a binary whose version matches scripts/calver.sh is the tree
that was committed here:

$ bash scripts/bootstrap-charly.sh
bootstrap-charly: regenerating compiled-in plugin wiring
bootstrap-charly: building bin/charly
bootstrap-charly: built ./bin/charly (2026.322.1523)
exit=0
$ ./bin/charly version
$ ./bin/charly version
2026.322.1523
exit=0
$ bash scripts/calver.sh
2026.322.1523
exit=0
$ git status --short
exit=0

The live proof runs on this host against a store I populated, with CHARLY_CACHE_DIR on a
scratch root so nothing of the operator's cache is at stake. The store's entries are real builds:
charly box build storeproof --tag 1 run three times with changed content, each rebuild appending
an entry for the same reference (ghcr.io/example/storeproof:1), which is the sdk store's own
behaviour. Its 391 MiB BuildKit state root is the daemon's, and the two buildkitd.broken-*
siblings beside it are the quarantine SHAPE the category reclaims — nothing in the tree writes the
suffix, deliberately, so a corpse is created here the way an operator's recovery would: one is a
copy of the daemon root's files, the other a full copy whose snapshot dirs carry the rootless
container's mapped UIDs.

A. charly clean --build-cache, dry run and real. A real buildkitd — the one my own builds
started — holds the live root's one-instance lock, so the live root is refused while the corpse
beside it is reclaimed:

$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/clean-store/charly/bin/charly clean --build-cache --dry-run
build-cache live: SKIPPED — a running buildkitd holds /tmp/cs/sp-cache/buildkitd/buildkitd.lock (it answers on /tmp/cs/sp-run/charly/buildkitd.sock), so a build may be writing this store; stop the daemon or wait for the build to finish, then re-run
build-cache dead: would remove 1 quarantined root(s) (196.1 KiB)
  cannot be removed — /tmp/cs/sp-cache/buildkitd.broken-1794801825 holds 390.9 MiB and /tmp/cs/sp-cache/buildkitd.broken-1794801825/runc-overlayfs/snapshots/snapshots/5/work/work: owned by uid 1000 and cannot be enumerated (open /tmp/cs/sp-cache/buildkitd.broken-1794801825/runc-overlayfs/snapshots/snapshots/5/work/work: permission denied); the tree is left whole
  would remove /tmp/cs/sp-cache/buildkitd.broken-1794802600 (196.1 KiB)
exit=0

$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/clean-store/charly/bin/charly clean --build-cache
build-cache live: SKIPPED — a running buildkitd holds /tmp/cs/sp-cache/buildkitd/buildkitd.lock (it answers on /tmp/cs/sp-run/charly/buildkitd.sock), so a build may be writing this store; stop the daemon or wait for the build to finish, then re-run
build-cache dead: removed 1 quarantined root(s) (196.1 KiB)
  cannot be removed — /tmp/cs/sp-cache/buildkitd.broken-1794801825 holds 390.9 MiB and /tmp/cs/sp-cache/buildkitd.broken-1794801825/runc-overlayfs/snapshots/snapshots/5/work/work: owned by uid 1000 and cannot be enumerated (open /tmp/cs/sp-cache/buildkitd.broken-1794801825/runc-overlayfs/snapshots/snapshots/5/work/work: permission denied); the tree is left whole
  removed /tmp/cs/sp-cache/buildkitd.broken-1794802600 (196.1 KiB)
exit=0

B. charly clean --store, dry run and real. Two entries of ONE reference; the state surface
this host resolves the reference through is the quadlet directory, relocated to a scratch HOME
so the operator's own units are untouched:

$ grep -E "^Image=" /tmp/cs/sp-home/.config/containers/systemd/charly-storeproof.container
Image=ghcr.io/example/storeproof:1
exit=0

$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/clean-store/charly/bin/charly clean --store --dry-run
store state container engine: 0 ref(s) (podman ps -a)
store state quadlet units: 1 ref(s) (/tmp/cs/sp-home/.config/containers/systemd)
store /tmp/cs/sp-cache/registry: 2 entry(ies); 1 kept by state, 1 would evict
  kept    ghcr.io/example/storeproof:1  sha256:4b3d9ca9844f…  (referenced by quadlet units: ghcr.io/example/storeproof:1 resolves here)
  evict   ghcr.io/example/storeproof:1  sha256:9f6859ecb763…  (superseded: ghcr.io/example/storeproof:1 is referenced by quadlet units and the store resolves it to sha256:4b3d9ca9844f…)
store budget: 82.5 MiB held of 32.0 GiB — the real run measures what the evicted entries leave behind
store reclaim: would free 0 B of already-unreferenced blob(s), and each evicted entry's own layers with them
exit=0

$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/clean-store/charly/bin/charly clean --store
store state container engine: 0 ref(s) (podman ps -a)
store state quadlet units: 1 ref(s) (/tmp/cs/sp-home/.config/containers/systemd)
store /tmp/cs/sp-cache/registry: 2 entry(ies); 1 kept by state, 1 evicted
  kept    ghcr.io/example/storeproof:1  sha256:4b3d9ca9844f…  (referenced by quadlet units: ghcr.io/example/storeproof:1 resolves here)
  evict   ghcr.io/example/storeproof:1  sha256:9f6859ecb763…  (superseded: ghcr.io/example/storeproof:1 is referenced by quadlet units and the store resolves it to sha256:4b3d9ca9844f…)
store budget: retained 82.5 MiB of 32.0 GiB (within budget)
store reclaim: freed 6.5 KiB of blobs no surviving entry reaches
exit=0

C. charly clean --cache, dry run and real. The image store is swept by the storekit reader —
the line reads cache registry (storekit): …, which is the half #27 broke — and the store tree
after the real sweep is the OCI layout and nothing else:

$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/clean-store/charly/bin/charly clean --cache --dry-run
cache materialized (spec/cache): 10 live entry(ies); would remove 0 unreferenced blob(s) (0 B)
cache plugin-build (storekit): 1 live entry(ies); would remove 0 unreferenced blob(s) (0 B)
cache project (spec/cache): 3 live entry(ies); would remove 0 unreferenced blob(s) (0 B)
cache registry (storekit): 2 live entry(ies); would remove 0 unreferenced blob(s) (0 B)
cache submodules (spec/cache): 1 live entry(ies); would remove 0 unreferenced blob(s) (0 B)
cache retired images: absent at /tmp/cs/sp-cache/images (already swept)
exit=0

$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/clean-store/charly/bin/charly clean --cache
cache materialized (spec/cache): 10 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache plugin-build (storekit): 1 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache project (spec/cache): 3 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache registry (storekit): 2 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache submodules (spec/cache): 1 live entry(ies); removed 0 unreferenced blob(s) (0 B)
cache retired images: absent at /tmp/cs/sp-cache/images (already swept)
exit=0

$ find /tmp/cs/sp-cache/registry -mindepth 1 -maxdepth 1 -printf "%f\n" | sort
blobs
index.json
oci-layout
exit=0

$ find /tmp/cs/sp-cache/registry -name "*.lock" -o -name "locks" | wc -l
0
exit=0

The control that the bump is what produced this: the shipped binary has neither category, so on
the same host the new flags do not exist at all:

$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/charly/bin/charly version
2026.321.2122
exit=0
$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/charly/bin/charly clean --build-cache --dry-run
charly: error: command "clean": flag provided but not defined: -build-cache
exit=1
$ /home/atrawog/Sync/Atrapub/a/dsh/opencharly/charly/bin/charly clean --store --dry-run
charly: error: command "clean": flag provided but not defined: -store
exit=1

The bed step's repair, proved on the SHIPPED binary's own two runs (so the defect and its fix are
both independent of this bump): the assertion as it was says the two runs disagree, the assertion
as committed says they agree, and the diff names why — the loader's preamble, not the report:

$ run1=$(sed -n "1,73p" /tmp/cs/reconcile-shipped.log)
$ run2=$(sed -n "74,\$p" /tmp/cs/reconcile-shipped.log)
exit=0
$ old() { grep -vE "^charly: (fetching git metadata|git metadata cached)"; }    # the assertion as it was
$ [ "$(old "$run1")" = "$(old "$run2")" ] && echo EQUAL || echo DIFFER
DIFFER
$ new() { awk '/^(already reconciled|would rewrite [0-9]+ pin\(s\):)/{on=1} on'; }    # what the step now compares
$ [ "$(new "$run1")" = "$(new "$run2")" ] && echo EQUAL || echo DIFFER
EQUAL
$ diff <(old "$run1") <(old "$run2") | sed "s/ served from .*//"
1,2c1,2
< plugin plugin-example-kind:
< plugin github.com/opencharly/plugin-example-structkind/candy/plugin-example-structkind:
---
> plugin github.com/opencharly/plugin-example-kind/candy/plugin-example-kind:
> plugin plugin-example-structkind:
exit=0

Gates on the committed tree:

$ go build ./...
exit=0

$ gofmt -l .
exit=0

$ golangci-lint --version
golangci-lint has version 2.13.2 built with go1.26.8 from (unknown, modified: ?, mod sum: "h1:bCyq3E4vo9qwzifjpzJqYndEt7Ncva80qkk8G2B4TXU=") on (unknown)
exit=0
$ golangci-lint run ./...
0 issues.
exit=0

$ go test -count=1 ./...
ok  	github.com/opencharly/charly/charly	404.542s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	148.113s
exit=0

$ ./bin/charly box validate
charly box validate: OK — checked 548 candies, 107 boxes, 51 deploys, 6 distros, 7 builders; 0 warnings, 0 errors
exit=0

R10 — the assembled disposable bed for this change class, run by its ONE gate (charly check run,
never check live), against this head's binary. Attribution, stated plainly: the run below was
executed by the Lead's session as a managed job, NOT by me.
My own attempt on this head
(2026.322.1526) was killed with its parent process when my turn ended — its summary records
stopped: true / in_flight_step: check-live — so it produced no verdict and is not R10 evidence.
The Lead re-ran the same bed on the same worktree and the same binary, which is why the summary's
driver_version is this head's 2026.322.1523; both artifacts are pasted so the difference between
the two runs is visible rather than asserted:

$ ls -d .check/check-commands-local/*/
.check/check-commands-local/2026.322.1456/
.check/check-commands-local/2026.322.1526/
.check/check-commands-local/2026.322.1535/
exit=0
$ grep -E "^(stopped|stopped_reason|in_flight_step|ok|status):" .check/check-commands-local/2026.322.1526/summary.yml
stopped: true
stopped_reason: "process shutdown hook fired (SIGTERM/SIGINT/SIGHUP or an explicit shutdown) while the run was still in flight"
in_flight_step: check-live
ok: false
status: FAIL
exit=0
$ sed -n "1,7p" .check/check-commands-local/2026.322.1535/summary.yml; grep -E "^(total_seconds|skipped_checks|ok|status):" .check/check-commands-local/2026.322.1535/summary.yml
bed: check-commands-local
calver: 2026.322.1535
driver: /home/atrawog/Sync/Atrapub/a/dsh/opencharly/.worktrees/clean-store/charly/bin/charly
driver_version: 2026.322.1523
driver_size: 55461153
driver_mtime: 2026-11-18T15:25:36Z
runner_stderr: runner.stderr.log
total_seconds: 637
skipped_checks: 0
ok: true
status: PASS
exit=0
$ grep -E "PASS after|FAIL after" .check/check-commands-local/2026.322.1535/runner.stderr.log
charly check run check-commands-local: [deploy-add] PASS after 43.583s (log: .check/check-commands-local/2026.322.1535/deploy-add.log)
charly check run check-commands-local: [bring-up-members] PASS after 5ms
charly check run check-commands-local: [check-live] PASS after 7m53.754s (log: .check/check-commands-local/2026.322.1535/check-live.log)
charly check run check-commands-local: [update] PASS after 1m1.156s (log: .check/check-commands-local/2026.322.1535/update.log)
charly check run check-commands-local: [cleanup] PASS after 58.05s (log: .check/check-commands-local/2026.322.1535/cleanup.log)
charly check run check-commands-local: [cleanup-members] PASS after 0s
exit=0
$ grep -E "steps: [0-9]+" .check/check-commands-local/2026.322.1535/check-live.log
10 steps: 10 passed, 0 failed, 0 skipped
exit=0

Rulebook compliance

  • R0 — the skills the dispatcher selects were loaded before the first tool call:
    /charly-internals:go, :plugin, :git-workflow, :strict-policy, :root-cause-analyzer,
    :cutover-policy, /charly-check:check, /charly-internals:disposable, /charly-core:clean;
    charly/AGENTS.md, the umbrella AGENTS.md and DESIGN.md §20 (D-STORE-1/3/7/10) were read.
  • R1 — every anomaly got an RCA before remediation, and each was classified blocking. Four
    surfaced: the --tag value is a TAG and not a reference (my invocation error, fixed by
    invoking it as documented); the bed step's whole-stdout comparison, which reproduces on the
    shipped binary and is fixed here; and the same step's missing timeout:, which reproduces on
    the shipped binary (its two runs take 2m33) and is fixed here. opencharly/charly#1137 is
    updated with the evidence for the second and third. The fourth was raised on this PR by the
    ci workflow's go job: the bump moved the shared pins in charly/go.mod but not in the four
    tools/* modules that mirror them, so TestContractPinsMatchShared went red — a missed control
    on MY side, because my gate list held only the charly module's own build/test/lint and never
    ran the repo's cross-module loop; the fix is in this change, and the loop is in the gate list
    above. The fifth was the round-2 fix's own tail: the advance edited tools/gomod-canonical's
    require lines and left its go.sum on the superseded versions, so the module could not RESOLVE
    what its go.mod names — one consumer, go mod download all, or go mod verify away from a
    hard failure. It is closed here with go mod download in that module (never go mod tidy,
    opencharly/charly#1184), and the round comment records the one part of the reviewer's stated
    mechanism that my own reproduction refuted: go test in that module exits 0 on the unfixed tree
    too, because Go 1.26's pruned graph needs no hash for a require nothing imports. Zero warnings
    in every gate below.
  • R2 — no new code path: the requires move to the tags that already carry the behaviour, the
    four lockstep tools/* modules take the SAME shared pins FROM charly/go.mod (one source, no
    second copy of a version), and the bed step keeps ONE assertion, on the report rather than on the
    preamble.
  • R3 — no workaround, no sleep, no retry. The proof drives the categories through charly
    itself; the only non-charly action is stopping MY scratch buildkitd, because the daemon
    outlives its starter by design and the category's own doc says the refusal is that lock.
  • R4 — no documented command changed. Nothing here needs anything but the charly binary.
  • R5 — nothing in this tree is renamed or deleted; what the bump retires is the pre-bump
    store layout, and the sweep for it is pasted above WITH its positive control: git grep for
    CHARLY_IMAGE_STORE_DIR / XDG_DATA_HOME returns exit 1 over this tree, while the same
    predicate returns both identifiers in [email protected] — the tag this commit
    replaces. go.sum loses the entries only the superseded pins needed.
  • R6 — git status was empty before the work and after the commit; the edits live in this
    session's worktree (.worktrees/clean-store/charly), no pinned submodule checkout was touched,
    no force-push, no --no-verify, and nothing of the operator's cache, quadlet units, or
    containers was written.
  • R7 — the changed path executed live: version, the three clean categories in dry-run and
    real runs, the store's own decisions, the refusal, and the reclaimed corpse above. The bed
    step's fix is proved in both directions (old assertion DIFFER, new assertion EQUAL) on the
    same captured runs, and the pre-bump binary rejects both new flags, so the coverage fails
    without the change.
  • R8 — the live boundaries ran live: a real buildkitd holds the lock that produces the
    refusal, a real container engine and a real quadlet directory are the state surfaces, and the
    store entries came from real charly box build runs. Nothing was mocked; the two state
    surfaces were relocated with the roots' own override variables, which is why the paths in the
    output are scratch paths.
  • R9 — built by scripts/bootstrap-charly.sh in the worktree; ./bin/charly version prints
    2026.322.1523, which equals scripts/calver.sh on HEAD 2f03ab2c8fb2e4627ec71963c653d3bf7761ce5b,
    and the tree is clean after the build. No shared install and no packaging change (no new
    runtime OS dependency).
  • R10 — charly check run check-commands-local on the committed tree; its result and the
    driver's own CalVer are in the summary above (driver_version equals the version built here).
  • CONC — no concurrency is introduced: the bump changes which module versions are compiled,
    and the two clean categories that take locks (the daemon's one-instance lock, the store's own
    writes) exercise their guards serially in the proof. The bed's --store category refuses rather
    than racing a build with an in-flight entry.

Change classification

Breaking change + rollback: none — the pointers move to module tags the org has already
merged, the CLI surface gains two category flags and loses none, and a git revert of this
commit restores the previous pins with no consumer-visible change.

Filed issues

  • opencharly/charly#1137 — updated with this leg's RCA and fix: box-reconcile-remote-cached
    false-reds on two independent mechanisms (a whole-stdout comparison over a nondeterministic
    loader preamble, and a 2m33 step under the never-hang ceiling); the ceiling half is that
    issue's own scope and its timeout: fix here is the check skill's prescribed remedy.

Agent: charly-pin
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

…harly

charly/go.mod still required the pre-cutover plugin-clean and plugin-build, so every
binary built from main had none of the four changes that landed today: the sdk image
store, the `charly clean` categories that reclaim it, the store-IDENTITY routed cache
sweep and the build drive that writes built images into it. This moves the compiled-in
requires onto the merged module tags:

  plugin-clean  v0.2026287.2341 -> v0.2026322.1315  (--build-cache, --store, D-STORE-7)
  plugin-build  v0.2026317.2215 -> v0.2026322.1325  (a built image lands in the store)
  sdk           v0.2026321.2010 -> v0.2026322.1227  (storekit image store; both require it)
  spec          v0.2026321.1340 -> v0.2026322.1239  (fifth data root REVERTED: four stand)

spec is not cosmetic: the version both plugins require (v0.2026322.1111) still carries
the fifth (data) root, so leaving the resolver there would restore a five-root tree that
DESIGN.md D-STORE-1 no longer has.

The same commit repairs check-commands-local's box-reconcile-remote-cached step, which
was red for two independent reasons, both reproduced on the shipped 2026.321.2122 binary:

  * it compared the WHOLE stdout of the two --remote runs, and the loader's own
    "plugin <name>: served from ..." preamble labels the same project plugin by its short
    name in one run and by its module path in the next, and prints it in map order - so
    two runs whose reconcile report was byte-identical went red. The step now compares
    the report, which is what "agree with the first" means;
  * it carried no timeout:, and the two isolated-cache reconciles it needs take 2m33 on
    this host, past the per-step never-hang ceiling - so the probe was killed mid-step
    and the shell carried on against a truncated capture (charly#1137). It now declares
    timeout: 600s, and every arm prints what failed instead of failing silently.
@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS — PR open, head 668b93989c6188c7f2f43ff0b6f267ef42916375, feat/pin-clean-store → main, based on current origin/main (473e0ecf295ba1fb6c6eec9fe61b174133fb7f04).

Done on this head: the four compiled-in requires moved to the merged tags (plugin-clean v0.2026322.1315, plugin-build v0.2026322.1325, sdk v0.2026322.1227, spec v0.2026322.1239 — the last is the four-root revert, not the five-root build the two plugins still require); go.sum reconciled with no replace anywhere; R9 build 2026.322.1424 (HEAD's own CalVer) with a clean tree; the three clean categories proved live on this host against a store populated by real charly box build runs; check-commands-local PASS (steps=6) with check-live 7m48.994s and 10/10 checks; gates go build ./..., go test ./..., gofmt -l . empty, golangci-lint v2.13.2 (0 issues), charly box validate (0 warnings, 0 errors).

Also in this head: box-reconcile-remote-cached repaired on two independent red mechanisms, both reproduced on the shipped 2026.321.2122 binary and both detailed on #1137.

Next: the charly/pr-validator verdict on this head. No further pushes are planned unless the verdict names a finding.

Agent: charly-pin
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 668b93989c6188c7f2f43ff0b6f267ef42916375 (branch: feat/pin-clean-store)

Change class: code/config — four module-pin bumps in charly/go.mod (+ go.sum reconciliation) plus a check-commands-local step repair in charly.yml.

Blocks

  1. R5 / CONC(d) — unexecuted sweep claim. The body's R5 line asserts "the retired CHARLY_IMAGE_STORE_DIR and $XDG_DATA_HOME layout appear nowhere in charly/", but the entire "How tested" section pastes no grep command and no grep output for those identifiers (it only greps go.mod for the pin module paths). CONC(d) is explicit: a sweep/dead-code claim requires actually-executed command output pasted in the body, and "I grepped and found none" is not evidence — it is a FRAUD-class finding when the body relies on it for compliance. Fix: paste the real command (e.g. grep -rn 'CHARLY_IMAGE_STORE_DIR\|XDG_DATA_HOME' charly/) and its real output, or, if a hit survives, sweep it in the same commit.

Notes on the rest (non-blocking)

  • The box-reconcile-remote-cached repair is internally coherent: the awk report extractor (/^(already reconciled|would rewrite [0-9]+ pin\(s\):)/{on=1} on), the cmp -s equality on the two reports, the non-empty-first-report arm, and the added timeout: 600s all match the described defect (nondeterministic loader preamble, 2m33 step), and the old-DIFFER / new-EQUAL proof is consistent. The preserved fetching git metadata guard is intact.
  • The spec four-root revert (pinning v0.2026322.1239 over the plugins' required v0.2026322.1111) is consistent with the diff, the go.sum entries, the Replace: [] output, and the OCI-layout find result; MVS resolution is plausible and gates (go build, go test, box validate) are green.
  • Comment 6981838302 (@aitrawog, STATUS) is coordination metadata; its claims (head SHA, four requires, build 2026.322.1424, check-commands-local PASS, gates) re-derive cleanly from the current body/diff — verified-non-blocking.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

Round 1 — the one BLOCK is fixed; the body now carries the sweep it claimed.

RCA (R1). Mechanism: the body's R5 bullet asserted that CHARLY_IMAGE_STORE_DIR and the
$XDG_DATA_HOME layout "appear nowhere in charly/" and pasted no command for it. The claim was
true, but a compliance bullet is not where a reader can check it.

Missed control. My pre-push pass ran marketplace/scripts/pr_body_lint.py, got 0 findings, and
I read that as "the body is complete". The linter's claims rule is deliberately narrow — it keys
on "only occurrence", "was/were checked|verified|swept|confirmed" and "match(es) <x>" — and an
absence phrased as "appear nowhere" matches none of them, so it stayed silent. The rule I did know
and did not apply is the rulebook's own instrument checklist: an absence claim must name the
positive its predicate catches, and must paste both halves. 0 linter findings is evidence about
the linter's reach, never about the body's completeness.

Root fix, in the body. The sweep is now pasted under "How tested" WITH a calibration arm: the
same git grep -n -e CHARLY_IMAGE_STORE_DIR -e XDG_DATA_HOME returns exit 1 over this tree, and
the same predicate returns both identifiers in [email protected] — the tag this commit
replaces, i.e. the source the retired layout lived in. A grep that matches nothing is only evidence
when it matches the positive somewhere.

Blast radius. R5's own bullet. Every other rule's evidence already carried its fence, which the
verdict confirms (verified-non-blocking).

Control for the fix's reach. The body linter re-run on this body reports 0 findings, and the
R5 bullet now points at the fence above it instead of restating the claim bare.

No code changes: this is a body-only round on the same head
668b93989c6188c7f2f43ff0b6f267ef42916375, so the required workflow is re-run on that head via
the REST re-run rather than a new commit.

Agent: charly-pin
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 668b93989c6188c7f2f43ff0b6f267ef42916375 (branch: feat/pin-clean-store)

Security screen: PASS — the four pins move to org-controlled module tags (plugin-build/plugin-clean/sdk/spec), no new external dependency, no secret/egress, no guardrail weakened; the charly.yml edit strictly strengthens the step (adds timeout: 600s, keeps the fetching git metadata guard, adds a non-empty-report arm and named failure messages) and fixes a false-red. No self-modifying-security concern.

Checklist: All applicable rules PASS or NA. The prior R5/CONC(d) sweep finding is resolved: the body now pastes git grep -n -e CHARLY_IMAGE_STORE_DIR -e XDG_DATA_HOME → exit 1 with a positive control that finds both identifiers in [email protected]. Internal consistency holds — the go.sum additions/removals match the four required versions, spec v0.2026322.1239 outranks the plugins' v0.2026322.1111 under MVS (four-root revert), Replace: [], the OCI-layout find result, and the build/bed CalVer chain (2026.322.1424 build = calver.sh = driver_version).

Comments considered:

  • @aitrawog STATUS (6981838302) — verified-non-blocking: head SHA, four requires, build, bed PASS, gates re-derive from the current body/diff.
  • @github-actions[bot] BLOCK (6981940261) — stale-superseded: the R5 sweep it demanded is now pasted with its positive control in the current body; the finding no longer reproduces.
  • @aitrawog Round 1 (6982000306) — verified-non-blocking: the RCA names the missed control (the body linter's narrow claims rule) and the body now carries the calibrated sweep; body-only round on the same head, no code delta to re-gate.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

The bump moved the shared pins in charly/go.mod, but four in-repo modules mirror them and
the repo's own consistency gate (tools/gomod-canonical's TestContractPinsMatchShared, run by
the `ci` workflow's `go` job) compares each against charly/go.mod:

  tools/generate-packages   sdk v0.2026321.2010 -> v0.2026322.1227, spec v0.2026321.1340 -> v0.2026322.1239
  tools/golden-cloudinit    same
  tools/golden-compile      same
  tools/gomod-canonical     same

The three importing modules are tidied so their go.sum follows. tools/gomod-canonical is
advanced with `go mod edit -require` ONLY and deliberately NOT tidied: its subject IS the
canonical require block, and `go mod tidy` there empties it (#1184). Its
38-line block is intact after the edit.

Measured before this commit, the CI job's own loop:
  tools/gomod-canonical  FAIL TestContractPinsMatchShared (4 modules, 8 findings)
and after it: every module green.
@aitrawog

Copy link
Copy Markdown
Contributor Author

Round 2 — the CI go job's red was a REAL finding against this change, and it is fixed in the new
head 77d76407d588a32c12535ac768f96fe363ac9b2a.

The finding (R1). ci / go failed in its Test tools modules step:
tools/gomod-canonical's TestContractPinsMatchShared reported 8 findings over 4 modules —
requires sdk v0.2026321.2010, but the shared sdk pin is v0.2026322.1227 and the same for spec
in tools/generate-packages, tools/golden-cloudinit, tools/golden-compile and
tools/gomod-canonical itself.

Mechanism. The shared sdk/spec pin is declared in charly/go.mod and MIRRORED by four in-repo
Go modules. My bump moved the source of truth and left the mirrors behind, so the repo's own
consistency control went red — a genuine defect of this change, not of the tool.

Missed control — mine, and it is the interesting half. My gate list was go build ./...,
go test ./..., gofmt -l ., golangci-lint, charly box validate, plus the R10 bed: every one
of those runs inside the charly module, and the cross-module loop the ci workflow runs
(for d in tools/*/; do ( cd "$d" && GOWORK=off go test -count=1 ./... ) ) was not on it. The repo
declares the gate for exactly this — charly task verify composes the mods-tidy task — and I did
not run it. A green local go test ./... says nothing about modules the workspace does not
include; "the tests pass" was true and insufficient.

Root fix. All four mirrors now carry sdk v0.2026322.1227 / spec v0.2026322.1239. The three
importing modules are tidied so their go.sum follows. tools/gomod-canonical is advanced with
go mod edit -require and NOT tidied, deliberately: its subject IS the canonical require block,
and go mod tidy there empties it (opencharly/charly#1184, still open). Its 38-line block is
intact, and the module's own test is green.

The control for the fix. The ci job's own loop, run locally on this head:

$ for d in tools/*/; do [ -f "$d/go.mod" ] || continue; echo "== $d =="; ( cd "$d" && GOWORK=off go test -count=1 ./... ) || fail=1; done; echo "fail=${fail:-0}"
== 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.002s
== tools/ledger-validate/ ==
ok  	github.com/opencharly/charly/tools/ledger-validate	0.002s
fail=0

and the gate list for this head now carries that loop. The round-1 BLOCK (the missing R5 sweep
fence) was fixed in the body and its re-run on the old head came back SUCCESS; the body for the
new head keeps that fix and adds this round's evidence. Everything else — R9 build
2026.322.1453, the live clean proofs, the R10 bed PASS (steps=6) — was re-run on THIS head,
not carried over.

Agent: charly-pin
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: 77d76407d588a32c12535ac768f96fe363ac9b2a (branch: feat/pin-clean-store)

Change class: code/config — four module-pin bumps in charly/go.mod/go.sum, the four lockstep tools/* module pins, and a check-commands-local step repair in charly.yml.

Blocks

  1. R10 / R1 / CONC(d) — the pasted cross-module loop cannot be the committed tree's output.
    Commit 77d76407 advances tools/gomod-canonical/go.mod to sdk v0.2026322.1227 / spec v0.2026322.1239, but tools/gomod-canonical/go.sum is not in the 10 changed files — it still carries only the superseded versions' hashes. A GOWORK=off go test -count=1 ./... inside that module loads the go.mod of every module in its require list and needs the new versions' /go.mod hashes in go.sum; without them it fails with missing go.sum entry ... to add it: go mod download <module>. Yet the body (and comment 6982646034) pastes:

    == tools/gomod-canonical/ ==
    ok  	github.com/opencharly/charly/tools/gomod-canonical	0.002s
    

    That green line is the "control for the fix" of the round-2 CI-red finding, and it is irreconcilable with the committed diff: either the loop was run before go mod edit -require touched that module (so the exact step that went red in ci / go was never actually re-run on this head), or go.sum was advanced on disk and the entry was dropped from the commit. Both leave the committed tree failing the very loop the body claims is fail=0.

    Fix: add the github.com/opencharly/sdk v0.2026322.1227 and github.com/opencharly/spec v0.2026322.1239 entries to tools/gomod-canonical/go.sum — via go mod download github.com/opencharly/sdk github.com/opencharly/spec in that module, not go mod tidy (which empties the canonical require block, per mods-tidy runs go mod tidy on tools/gomod-canonical and deletes the require block that IS its purpose #1184) — then re-run the loop on this head and paste its real output. Until then the fully tested and validated claim is inflated for this head.

Comments considered

  • @aitrawog STATUS (6981838302) — stale-superseded: head-specific numbers (668b9398, build 2026.322.1424) no longer match the current head; the surviving claims re-derive.
  • @github-actions[bot] BLOCK (6981940261) — stale-superseded: the R5 sweep it demanded is now pasted with a positive control in the current body; no longer reproduces.
  • @github-actions[bot] PASS (6982069763) — verified-non-blocking: it predates the tools/* commit, so it says nothing about the finding above; its sweep/MVS/Replace: [] observations still hold against the current body.
  • @aitrawog Round 2 (6982646034) — verified-blocking as to its loop claim: the pasted ok ... gomod-canonical is contradicted by the unchanged go.sum in the diff (see Block 1). Its RCA of the missed control (gate list lacked the cross-module loop) is sound.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

The pin advance edited that module's require lines but left its go.sum carrying only the
superseded versions, so the module could not RESOLVE the two modules its go.mod names: anything
that imports from them, "go mod download all", or "go mod verify" hits a missing go.sum entry.
"go mod download github.com/opencharly/sdk github.com/opencharly/spec" in that module adds the
four entries; "go mod tidy" is still NOT run there, because it empties the canonical require
block that IS the module's subject (#1184).

Measured on 77d7640 before this commit: "GOWORK=off go test -count=1 ./..." in that module exits
0, so the round-2 loop output was a REAL run on that tree — Go 1.26's pruned module graph does not
need a hash for a require that nothing imports. The hole was real all the same, one consumer
away, and this commit closes it.
@aitrawog

Copy link
Copy Markdown
Contributor Author

Round 3 — the go.sum inconsistency is closed, and the bed on this head is stated with its true
attribution.

1. tools/gomod-canonical/go.sum — closed, and the finding's mechanism does not reproduce.
The advance had edited that module's require lines and left go.sum on the superseded versions. I
added the two versions with GOWORK=off go mod download github.com/opencharly/sdk github.com/opencharly/spec in that module (never go mod tidy — it empties the canonical block,
opencharly/charly#1184), and the module still holds its 38-line block.

The block's stated mechanism was that the module "cannot resolve the new versions … needs the new
versions' /go.mod hashes", which would mean my round-2 loop could not have printed its green. I
measured that on a PRISTINE EXPORT of the unfixed head 77d76407 (not my working tree), four arms,
every one of which a missing go.sum entry would have broken:

$ git rev-parse HEAD  # the tree under test (pristine export)
77d76407d588a32c12535ac768f96fe363ac9b2a
$ GOWORK=off go test -count=1 ./...   # arm 1: the loop command the body pasted
ok  	github.com/opencharly/charly/tools/gomod-canonical	0.003s
exit=0
$ GOWORK=off go mod verify            # arm 2
all modules verified
exit=0
$ GOWORK=off go mod download all      # arm 3
exit=0
$ GOWORK=off go list -m all           # arm 4: walks the whole module graph
… (lists the graph, exit 0)
exit=0

Go 1.26's pruned module graph does not need a go.sum hash for a require that nothing imports, so
the round-2 green WAS a real run of that tree — neither a pre-edit run nor a dropped file. I am not
conceding a defect I did not have: the state was inconsistent (a go.mod naming versions its
go.sum did not carry) and that is fixed; the failure the finding predicted is not reachable in
any arm I could construct for this module, and I will not assert a failing consumer I cannot show.

2. R10 on this head — run by the Lead's session, and the body now says so.
My own attempt on 2f03ab2c (2026.322.1526) was KILLED with its parent when my turn ended; its
summary records stopped: true, in_flight_step: check-live, so it produced no verdict and is not
evidence. The Lead re-ran the same bed, in my worktree, against this head's binary —
driver_version: 2026.322.1523, which is scripts/calver.sh on 2f03ab2c — and it is green:

charly check run check-commands-local: [check-live] PASS after 7m53.754s
charly check run check-commands-local: [update] PASS after 1m1.156s
charly check run check-commands-local: PASS (steps=6)
check-live: 10 steps: 10 passed, 0 failed, 0 skipped
total_seconds: 637   ok: true   status: PASS   skipped_checks: 0

The body carries that attribution in the R10 paragraph, beside the killed run's own summary, so a
reader sees who invoked what rather than a claim that would have been false.

3. Round-1 BLOCK. The R5 sweep is pasted with its positive control (this tree: git grep exit
1; [email protected]: both identifiers), and the re-run on the then-head came back
SUCCESS.

Head is unchanged since the code fix: 2f03ab2c8fb2e4627ec71963c653d3bf7761ce5b. This round moves
the body only; the required workflow is re-run on the same head.

Agent: charly-pin
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 2f03ab2c8fb2e4627ec71963c653d3bf7761ce5b (branch: feat/pin-clean-store)

Security screen: PASS — pins move only to org-controlled module tags (plugin-build, plugin-clean, sdk, spec); the charly.yml edit strictly strengthens the step (adds timeout: 600s, keeps the fetching git metadata guard, adds a non-empty-report arm and named failures) and repairs a false-red; no secret/egress, no guardrail weakened, no new external direct dependency.

Checklist: All applicable rules PASS or NA. Prior-round findings are resolved against the CURRENT state: the R5 sweep is pasted with its positive control (round-1 BLOCK), all four tools/* mirrors now carry the shared sdk/spec pins (round-2 CI red), and tools/gomod-canonical/go.sum now carries sdk v0.2026322.1227 / spec v0.2026322.1239 with hashes matching the other modules (round-3 BLOCK). Internal consistency holds — go.mod requires equal go.sum hashes across all five modules, Replace: [], the four-root spec v0.2026322.1239 outranks the plugins' v0.2026322.1111 under MVS, and the build/bed CalVer chain (2026.322.1523 = calver.sh = driver_version) is coherent. The bed's killed attempt is disclosed with its stopped: true summary and correctly excluded as non-evidence, replaced by the Lead's green run — not an R1 dismissal of a product failure.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 18, 2026 16:03
@github-actions
github-actions Bot merged commit a5948a0 into main Nov 18, 2026
6 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant