Skip to content

chore: re-pin sdk to v0.2026277.352 (tolerate an absent substrate ledger on a first deploy) - #785

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/sdk-pin-2026277.352-atomic
Oct 4, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/sdk-pin-2026277.352-atomic

Conversation

@aitrawog

@aitrawog aitrawog commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Summary

Re-pins charly's github.com/opencharly/sdk require from v0.2026276.1822 to
v0.2026277.352 — the tag-on-merge tag for opencharly/sdk#343.

What the pin buys. charly deploy add into a newly created VM hard-failed before this
pin. Two Via guards in sdk's kit/install_ledger.go treated any read error of the
target's venue ledger as fatal, including the not-found case — but a fresh guest legitimately
has no ~/.config/charly/charly.yml yet. sdk#343 narrows both guards to the not-found case,
and deletes deploykit's duplicate isMissingArtifactFile in favour of the newly exported
kit.IsNotFound.

Scope. go.mod/go.sum version swaps only, across all four lockstep modules
(charly/, tools/generate-packages, tools/golden-cloudinit, tools/golden-compile). No
Go 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.1822
sum lines land together, so no intermediate revision of this branch carries the retired
hashes.

Deliberately not claimed. This pin unblocks charly#730's check-kubevirt-vm
deploy-add step only. That bed still fails later, at bring-up-members, on a separate
producer defect — opencharly/plugin-vm#68 (charly vm build --container-disk emits a
containerDisk KubeVirt cannot boot: missing /usr/bin/container-disk). This PR does not
make 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 (26130369 re-pin, then
af0195f7 prune) split the atomic change, and collapsing a pushed branch would require a
force-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.

$ git -C .worktrees/readme-truth/charly-sdkpin rev-parse HEAD^{tree}
8d288a0abeb42b6091b1a25fd65048e6465ab57c
$ git -C .worktrees/readme-truth/charly-sdkpin rev-list --count acf67e6b..HEAD
1
$ git -C .worktrees/readme-truth/charly-sdkpin diff --stat acf67e6b HEAD
 charly/go.mod                  | 2 +-
 charly/go.sum                  | 4 ++--
 tools/generate-packages/go.mod | 2 +-
 tools/generate-packages/go.sum | 4 ++--
 tools/golden-cloudinit/go.mod  | 2 +-
 tools/golden-cloudinit/go.sum  | 4 ++--
 tools/golden-compile/go.mod    | 2 +-
 tools/golden-compile/go.sum    | 4 ++--
 8 files changed, 12 insertions(+), 12 deletions(-)

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-group is an existing disposable: true
bed (charly/charly.yml:1375 — vm: from: eval-vm, disposable: true), and its
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 — .check/check-group/2026.277.0443/summary.yml:

bed: check-group
calver: 2026.277.0443
total_seconds: 1563
diagnostics:
  errors: 0
  warnings: 0
  advisories: 0
  advisories_fatal: false
ok: true

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:

bed: check-group
calver: 2026.277.0248
total_seconds: 362
diagnostics:
  errors: 1
ok: false

its step list terminating at deploy-add, whose log (2026.277.0248/deploy-add.log:25)
reads:

charly: error: command "deploy": deploy-dispatch add: deploy plugin: deploy-dispatch:
venue ledger deploy record: ssh cat ~/.config/charly/charly.yml: exit status 1
(stderr: cat: /home/arch/.config/charly/charly.yml: No such file or directory)

The pin's own green deploy-add.log matches none of those error patterns. Stated
precisely, since it matters: that pre-pin run is on #762's head 24832128, which is not
an ancestor of this tree (git merge-base --is-ancestor 24832128 33c7a73b is false), so it
also carries a newer plugin-distro v0.2026276.1457 (this tree has v0.2026272.29). The
confound 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):

// A substrate with no ledger yet is not a failure: the file is legitimately
// absent on a fresh guest, and mutateRemoteLedger builds a fresh document
// from the empty bytes while the `mkdir -p` write below creates the file.
// Only a REAL read failure (permission denied, broken channel) is fatal.
if err != nil && !IsNotFound(err) {
	return err
}

with the twin exec.GetFile(ctx, remoteFile, …) guard at :615-620. The tag
v0.2026277.352 is commit c80ed63 fix(kit): tolerate an absent substrate ledger on a first deploy into a fresh VM (#343), whose diff is kit/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) and kit/is_not_found_test.go (+46), and rewrites
deploykit/artifact_retrieve.go and kit/walk.go.

The core Go gate, and the pin actually resolving:

$ cd charly && go build ./...                                    # exit 0
$ cd charly && go vet ./...                                      # exit 0
$ cd charly && go test ./...
ok  	github.com/opencharly/charly/charly	147.883s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	75.013s
$ cd charly && go list -m github.com/opencharly/sdk
github.com/opencharly/sdk v0.2026277.352

github.com/opencharly/charly/charly is the module that owns the changed charly/go.mod.
The repo-root go.work lists the charly module and the candies but no tools/ module, so
./... there covers exactly that module — 2 packages, 0 failures. The three tools/ modules
this diff also bumps sit outside the workspace and are gated with GOWORK=off:

tools/generate-packages    build=0 vet=0 | sdk=v0.2026277.352
tools/golden-cloudinit     build=0 vet=0 | sdk=v0.2026277.352
tools/golden-compile       build=0 vet=0 | sdk=v0.2026277.352

Lockstep — all four modules carry the shared pin:

.                           github.com/opencharly/sdk v0.2026277.352 // indirect
../tools/generate-packages  github.com/opencharly/sdk v0.2026277.352
../tools/golden-cloudinit   github.com/opencharly/sdk v0.2026277.352
../tools/golden-compile     github.com/opencharly/sdk v0.2026277.352

R5 — no retired sum lines survive:

$ grep -rn 'v0.2026276.1822' charly/go.sum tools/*/go.sum
(no output)

A1 — the fields this change class requires. Disposable target: the check-group bed's
own charly-check-group VM guest (created fresh by the vm-create step). Fresh rebuild:
the bed's in-tree binary is 2026.277.0437, and the bed's own rebuild-ready and
check-live-rebuild steps ran green. Live execution of the changed path: yes — the run log
records the host build being handed to the guest for the deploy
(.check/check-group/2026.277.0443/deploy-add.log:22):

guest charly absent/outdated; host charly provided at /tmp/charly-2026.277.0437-225b6d9fe40a4f04 for deploy use

so the deploy-add venue-ledger read that the pre-pin A/B above fails is the same code,
compiled from this tree, executing in-guest.

Rulebook compliance

  • R0 — /charly-internals:git-workflow loaded before any git action.
  • R1 — no anomaly classified away. The one divergence found while preparing this change,
    charly#730's bed failing at bring-up-members, is root-caused to plugin-vm#68 (a
    producer defect in the emitted containerDisk), filed in its owning repo, and stated in
    this body rather than deferred.
  • R2 — the whole cutover is in this one commit. Every one of the four lockstep modules
    moves, and the retired v0.2026276.1822 lines are gone from all four pairs at once; no
    module is left half-migrated and no follow-up is implied.
  • R3 — no duplicated mechanism. The duplicate isMissingArtifactFile is deleted by the
    pinned tag in favour of the single exported kit.IsNotFound.
  • R4 / R4a — no workaround. The pin is adopted through charly's own task surface
    (go get in charly/, then charly task mods-tidy, whose check step asserts every
    lockstep module carries the shared pins) — never a hand-edited version line.
  • R5 — the retired v0.2026276.1822 sum lines are removed, and removed in the same
    commit as the bump (grep above).
  • R6 — git status inspected before the branch was cut; no force-push, no pushed-history
    rewrite, no hook bypass, no direct push to main.
  • R7 / R7a — the changed path executed live with retained output and exit codes (above);
    the coverage that fails without the change ships in the pinned tag. No live-service
    boundary is faked anywhere in this change.
  • R8 — N/A, and stated rather than skipped silently: this change emits no artifact. It
    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.
  • R9 — the bed ran against the in-tree CalVer-stamped worktree build
    (scripts/bootstrap-charly.sh → 2026.277.0437), not a shared binary.
  • R10 — the gate the change class selects was run on the final committed tree, on an
    explicit disposable: true target, after a complete fresh rebuild.

Change classification

  • Change class: dependency pin bump — go.mod/go.sum version swaps only (non-docs;
    no Go code, docs, workflow, or config-with-logic).
  • Verification gate: the change class's required gate — a fresh disposable: true bed
    exercising 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 bed
    and step.
  • Attribution tier: fully tested and validated.

Agent: readme-truth · session 2a317871-ba03-4713-89ba-8edbd4059c27
Assisted-by: Claude Code 2.1.288 deepseek-v4.1-flash:cloud (fully tested and validated)

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

github-actions Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 33c7a73b54f382fc07a17b66149a13561a5d169c (branch: feat/sdk-pin-2026277.352-atomic)

Change class: dependency pin bump — go.mod/go.sum version swaps across the four lockstep modules (8 files, 12/12).
Security screen: PASS — no T1–T4 findings (no secrets/egress, no guardrail weakening, org-owned module re-pin, no embedded directives).
Checklist: All applicable rules PASS or NA. Diff is a pure version swap consistent with the body (identical new h1 across all four go.sum; unchanged go.mod hash consistent with a source-only sdk delta); single atomic commit satisfies R5/R2/B15; R5 prune reproduces against the diff; body ends with the required Assisted-by: line; the disclosed pre-pin A/B confound and the plugin-vm#68 deferral are named tasks, not forbidden framing. No comments to disposition.

Verdict: PASS


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

View action run

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.

2 participants