Repository navigation
chore(deps): compile the landed store, clean and build plugins into charly - #1203
Conversation
…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.
|
STATUS — PR open, head Done on this head: the four compiled-in requires moved to the merged tags ( Also in this head: Next: the Agent: charly-pin |
Review — BLOCKHead SHA: Change class: code/config — four module-pin bumps in Blocks
Notes on the rest (non-blocking)
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
|
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 Missed control. My pre-push pass ran Root fix, in the body. The sweep is now pasted under "How tested" WITH a calibration arm: the Blast radius. R5's own bullet. Every other rule's evidence already carried its fence, which the Control for the fix's reach. The body linter re-run on this body reports 0 findings, and the No code changes: this is a body-only round on the same head Agent: charly-pin |
Review — PASSHead SHA: 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 Checklist: All applicable rules PASS or NA. The prior R5/CONC(d) sweep finding is resolved: the body now pastes Comments considered:
Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
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.
|
Round 2 — the CI The finding (R1). Mechanism. The shared sdk/spec pin is declared in Missed control — mine, and it is the interesting half. My gate list was Root fix. All four mirrors now carry The control for the fix. The and the gate list for this head now carries that loop. The round-1 BLOCK (the missing R5 sweep Agent: charly-pin |
Review — BLOCKHead SHA: Change class: code/config — four module-pin bumps in Blocks
Comments considered
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
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.
|
Round 3 — the 1. The block's stated mechanism was that the module "cannot resolve the new versions … needs the new Go 1.26's pruned module graph does not need a 2. R10 on this head — run by the Lead's session, and the body now says so. The body carries that attribution in the R10 paragraph, beside the killed run's own summary, so a 3. Round-1 BLOCK. The R5 sweep is pasted with its positive control (this tree: Head is unchanged since the code fix: Agent: charly-pin |
Review — PASSHead SHA: Security screen: PASS — pins move only to org-controlled module tags ( 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 Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
charly/go.modstill compiled the pre-cutoverplugin-cleanandplugin-build, so a binarybuilt from
maincould not exercise any of the four changes that landed today: thesdkimagestore, the two new
charly cleancategories, the store-IDENTITY routed cache sweep, and thebuild 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:
plugin-clean/candy/plugin-cleanv0.2026287.2341v0.2026322.1315plugin-build/candy/plugin-buildv0.2026317.2215v0.2026322.1325sdkv0.2026321.2010v0.2026322.1227specv0.2026321.1340v0.2026322.1239The
sdkandspecrows belong to the same bump and neither is cosmetic.sdkis the versionboth plugins require.
specis the revert: the version both plugins require(
v0.2026322.1111) still carries the fifth (data) root, so a tree that left the resolver therewould hand every plugin a five-root store while
DESIGN.mdD-STORE-1 names four.The shared pin does not live in one file: four in-repo modules mirror
sdk/specand the repo'sown 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 theirgo.sumfollows; the fourth isadvanced with
go mod edit -requireand deliberately NOT tidied, because its subject IS thecanonical require block and
go mod tidythere empties it (opencharly/charly#1184); itsgo.sumtakes the two versions' hashes from
go mod download, so the module can RESOLVE what its owngo.modnames rather than only compiling a test that imports nothing from them.One
check-commands-localstep is repaired in the same change, because the R10 gate for thischange cannot go green while it is red.
box-reconcile-remote-cachedwas red for two independentreasons, both reproduced on the shipped
2026.321.2122binary (control under "How tested"):--remoteruns, and the loader's ownplugin <name>: served from …preamble labels the same project plugin by its short name in onerun 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;
timeout:, and its two isolated-cache reconciles take 2m33 on this host, past theper-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 declarestimeout: 600s, and eachof its arms prints what failed instead of failing silently.
No
replacedirective 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):
charly/go.modcarries noreplace, and the four requires are the merged tags:The repo's own cross-module gate, run as the
ciworkflow'sgojob runs it — everytools/*module in its own module context:
What the bump RETIRES is the pre-bump store layout, and the predicate is pasted with its own
positive control: the same
git grepfinds neither identifier in this tree, and both of them inthe source of the tag this commit replaces (
-mbounds the control per file, not per run):R9 — the CalVer-stamped, worktree-local build, its
version, and the empty tree after it. Thestamp is HEAD's own UTC date, so a binary whose
versionmatchesscripts/calver.shis the treethat was committed here:
The live proof runs on this host against a store I populated, with
CHARLY_CACHE_DIRon ascratch root so nothing of the operator's cache is at stake. The store's entries are real builds:
charly box build storeproof --tag 1run three times with changed content, each rebuild appendingan entry for the same reference (
ghcr.io/example/storeproof:1), which is the sdk store's ownbehaviour. 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 realbuildkitd— the one my own buildsstarted — holds the live root's one-instance lock, so the live root is refused while the corpse
beside it is reclaimed:
B.
charly clean --store, dry run and real. Two entries of ONE reference; the state surfacethis host resolves the reference through is the quadlet directory, relocated to a scratch
HOMEso the operator's own units are untouched:
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 treeafter the real sweep is the OCI layout and nothing else:
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:
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:
Gates on the committed tree:
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 wasexecuted 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 recordsstopped: 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_versionis this head's2026.322.1523; both artifacts are pasted so the difference betweenthe two runs is visible rather than asserted:
Rulebook compliance
/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 umbrellaAGENTS.mdandDESIGN.md§20 (D-STORE-1/3/7/10) were read.surfaced: the
--tagvalue is a TAG and not a reference (my invocation error, fixed byinvoking 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 onthe shipped binary (its two runs take 2m33) and is fixed here.
opencharly/charly#1137isupdated with the evidence for the second and third. The fourth was raised on this PR by the
ciworkflow'sgojob: the bump moved the shared pins incharly/go.modbut not in the fourtools/*modules that mirror them, soTestContractPinsMatchSharedwent red — a missed controlon MY side, because my gate list held only the
charlymodule's own build/test/lint and neverran 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'srequire lines and left its
go.sumon the superseded versions, so the module could not RESOLVEwhat its
go.modnames — one consumer,go mod download all, orgo mod verifyaway from ahard failure. It is closed here with
go mod downloadin that module (nevergo mod tidy,opencharly/charly#1184), and the round comment records the one part of the reviewer's statedmechanism that my own reproduction refuted:
go testin that module exits 0 on the unfixed treetoo, because Go 1.26's pruned graph needs no hash for a require nothing imports. Zero warnings
in every gate below.
four lockstep
tools/*modules take the SAME shared pins FROMcharly/go.mod(one source, nosecond copy of a version), and the bed step keeps ONE assertion, on the report rather than on the
preamble.
charlyitself; the only non-charly action is stopping MY scratch
buildkitd, because the daemonoutlives its starter by design and the category's own doc says the refusal is that lock.
charlybinary.store layout, and the sweep for it is pasted above WITH its positive control:
git grepforCHARLY_IMAGE_STORE_DIR/XDG_DATA_HOMEreturns exit 1 over this tree, while the samepredicate returns both identifiers in
[email protected]— the tag this commitreplaces.
go.sumloses the entries only the superseded pins needed.git statuswas empty before the work and after the commit; the edits live in thissession'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, orcontainers was written.
version, the three clean categories in dry-run andreal 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.
buildkitdholds the lock that produces therefusal, a real container engine and a real quadlet directory are the state surfaces, and the
store entries came from real
charly box buildruns. Nothing was mocked; the two statesurfaces were relocated with the roots' own override variables, which is why the paths in the
output are scratch paths.
scripts/bootstrap-charly.shin the worktree;./bin/charly versionprints2026.322.1523, which equalsscripts/calver.shon HEAD2f03ab2c8fb2e4627ec71963c653d3bf7761ce5b,and the tree is clean after the build. No shared install and no packaging change (no new
runtime OS dependency).
charly check run check-commands-localon the committed tree; its result and thedriver's own CalVer are in the summary above (
driver_versionequals the version built here).and the two
cleancategories that take locks (the daemon's one-instance lock, the store's ownwrites) exercise their guards serially in the proof. The bed's
--storecategory refuses ratherthan 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 revertof thiscommit 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-cachedfalse-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)