Repository navigation
chore: re-pin sdk to v0.2026277.352 (tolerate an absent substrate ledger on a first deploy) - #785
Conversation
…ger on a first deploy) The sdk module is the contract surface charly resolves from the Go proxy at a pinned `require`. v0.2026277.352 is the tag-on-merge tag for `opencharly/sdk#343`, which narrows both `Via` guards in `kit/install_ledger.go` to the not-found case so that a fresh guest — where `~/.config/charly/charly.yml` legitimately does not exist yet — no longer hard-fails the FIRST `charly deploy add` into a newly created VM, and deletes deploykit's duplicate `isMissingArtifactFile` in favour of the newly exported `kit.IsNotFound`. ONE atomic commit: the require bump in all four lockstep modules and the R5 prune of the retired `v0.2026276.1822` sum lines land together, so no intermediate revision carries the retired hashes. Adopted with charly's own task surface, never a hand-pinned line: `go get` in `charly/`, then `charly task mods-tidy`, whose check step asserts that every lockstep module carries the shared sdk/spec pins. R10: `check-group` — an existing `disposable: true` bed whose `deploy-add` step is a first deploy into a freshly created guest, i.e. exactly the `kit.AddCandyDeploymentVia` -> `GetFile` venue-ledger read this pin makes tolerant. Green on this tree; the pre-pin tree fails the same step with the missing-ledger error. The pasted A/B is in the PR body.
Review — PASSHead SHA: Change class: dependency pin bump — Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
Summary
Re-pins charly's
github.com/opencharly/sdkrequire fromv0.2026276.1822tov0.2026277.352— the tag-on-merge tag foropencharly/sdk#343.What the pin buys.
charly deploy addinto a newly created VM hard-failed before thispin. Two
Viaguards in sdk'skit/install_ledger.gotreated any read error of thetarget's venue ledger as fatal, including the not-found case — but a fresh guest legitimately
has no
~/.config/charly/charly.ymlyet. sdk#343 narrows both guards to the not-found case,and deletes
deploykit's duplicateisMissingArtifactFilein favour of the newly exportedkit.IsNotFound.Scope.
go.mod/go.sumversion swaps only, across all four lockstep modules(
charly/,tools/generate-packages,tools/golden-cloudinit,tools/golden-compile). NoGo code, docs, workflow, or config-with-logic. 8 files, 12 insertions / 12 deletions.
One atomic commit. The require bump and the R5 prune of the retired
v0.2026276.1822sum lines land together, so no intermediate revision of this branch carries the retired
hashes.
Deliberately not claimed. This pin unblocks
charly#730'scheck-kubevirt-vmdeploy-addstep only. That bed still fails later, atbring-up-members, on a separateproducer defect —
opencharly/plugin-vm#68(charly vm build --container-diskemits acontainerDisk KubeVirt cannot boot: missing
/usr/bin/container-disk). This PR does notmake that bed green, and does not depend on it.
Supersedes #782 and #784. Both carried this identical change and both are blocked by a
body/evidence defect rather than by the change: #782's body predated the R5 prune, and #784
now cannot pass at all, because its two non-changelog commits (
26130369re-pin, thenaf0195f7prune) split the atomic change, and collapsing a pushed branch would require aforce-push, which R6 forbids. Both predecessors' findings are fixed here in one commit.
How tested
Every command below was run on the final committed tree.
Tree identity — the bed proof transfers exactly, not by analogy.
8d288a0a…is the same tree object as the head of the superseded PR #784(
af0195f7), so the bed run below was executed on precisely this tree.R10 — the change class's required gate.
check-groupis an existingdisposable: truebed (
charly/charly.yml:1375—vm: from: eval-vm,disposable: true), and itsdeploy-addstep is a first deploy into a freshly created guest — i.e. exactly thekit.AddCandyDeploymentVia→GetFilevenue-ledger read this pin makes tolerant.Green, on this tree —
.check/check-group/2026.277.0443/summary.yml:12/12 steps
ok: true:vm-build,vm-create,deploy-add(duration_seconds: 203),bring-up-members,check-live,rebuild-members-down,update,re-bring-up-members,rebuild-ready,check-live-rebuild,cleanup,cleanup-members.Pre-pin A/B — the same bed, the same step, red with the exact missing-ledger error —
.check/check-group/2026.277.0248/summary.yml:its step list terminating at
deploy-add, whose log (2026.277.0248/deploy-add.log:25)reads:
The pin's own green
deploy-add.logmatches none of those error patterns. Statedprecisely, since it matters: that pre-pin run is on
#762's head24832128, which is notan ancestor of this tree (
git merge-base --is-ancestor 24832128 33c7a73bis false), so italso carries a newer
plugin-distro v0.2026276.1457(this tree hasv0.2026272.29). Theconfound is irrelevant because the failure text names this pin's own path.
The guard, at the pinned revision (
[email protected],kit/install_ledger.go:559-565):with the twin
exec.GetFile(ctx, remoteFile, …)guard at:615-620. The tagv0.2026277.352is commitc80ed63 fix(kit): tolerate an absent substrate ledger on a first deploy into a fresh VM (#343), whose diff iskit/install_ledger.go,kit/walk.go,deploykit/artifact_retrieve.go— the failing path, changed by the commit this pin pins.R7 — coverage that fails without the change. Carried by the tag itself: sdk#343 adds
kit/install_ledger_test.go(+81) andkit/is_not_found_test.go(+46), and rewritesdeploykit/artifact_retrieve.goandkit/walk.go.The core Go gate, and the pin actually resolving:
github.com/opencharly/charly/charlyis the module that owns the changedcharly/go.mod.The repo-root
go.worklists the charly module and the candies but notools/module, so./...there covers exactly that module — 2 packages, 0 failures. The threetools/modulesthis diff also bumps sit outside the workspace and are gated with
GOWORK=off:Lockstep — all four modules carry the shared pin:
R5 — no retired sum lines survive:
A1 — the fields this change class requires. Disposable target: the
check-groupbed'sown
charly-check-groupVM guest (created fresh by thevm-createstep). Fresh rebuild:the bed's in-tree binary is
2026.277.0437, and the bed's ownrebuild-readyandcheck-live-rebuildsteps ran green. Live execution of the changed path: yes — the run logrecords the host build being handed to the guest for the deploy
(
.check/check-group/2026.277.0443/deploy-add.log:22):so the
deploy-addvenue-ledger read that the pre-pin A/B above fails is the same code,compiled from this tree, executing in-guest.
Rulebook compliance
/charly-internals:git-workflowloaded before any git action.charly#730's bed failing atbring-up-members, is root-caused toplugin-vm#68(aproducer defect in the emitted containerDisk), filed in its owning repo, and stated in
this body rather than deferred.
moves, and the retired
v0.2026276.1822lines are gone from all four pairs at once; nomodule is left half-migrated and no follow-up is implied.
isMissingArtifactFileis deleted by thepinned tag in favour of the single exported
kit.IsNotFound.(
go getincharly/, thencharly task mods-tidy, whose check step asserts everylockstep module carries the shared pins) — never a hand-edited version line.
v0.2026276.1822sum lines are removed, and removed in the samecommit as the bump (grep above).
git statusinspected before the branch was cut; no force-push, no pushed-historyrewrite, no hook bypass, no direct push to
main.the coverage that fails without the change ships in the pinned tag. No live-service
boundary is faked anywhere in this change.
moves a module require; no label, plan, config, schema or generated file is produced or
altered by it, and the bed that exercises the changed path asserts the emitted guest
plan/ledger as its own steps.
(
scripts/bootstrap-charly.sh→2026.277.0437), not a shared binary.explicit
disposable: truetarget, after a complete fresh rebuild.Change classification
go.mod/go.sumversion swaps only (non-docs;no Go code, docs, workflow, or config-with-logic).
disposable: truebedexercising the first-deploy venue-ledger read on the final committed tree (
check-group),ok: true, no failed step, zero warnings, pasted above, with a pre-pin A/B on the same bedand step.
fully tested and validated.Agent:
readme-truth· session2a317871-ba03-4713-89ba-8edbd4059c27Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (fully tested and validated)