Skip to content

fix(deps)!: adopt the sdk bed-cross-ref fix; sidecar [config] unblocked, group bed green - #1304

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/sidecar-bed-proof
Nov 27, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
fix/sidecar-bed-proof

Conversation

@aitrawog

@aitrawog aitrawog commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Android/JetKVM retirement's charly leg (#1298) owed one bed proof it could not run: charly check run check-sidecar-pod died at [config] because deploykit.PersistBedDeployOverrides wrote a bed's deploy-level from: member to the per-host overlay without its cross-reference, the next load dropped the entry as degraded, and the sdk save guard then refused the following write. #1299 RCA'd it and opencharly/sdk#651 fixed it (merged; tag v0.2026331.1243). This PR is that consumer adoption, and it carries the bed evidence the earlier leg owed.

What moves. github.com/opencharly/sdk v0.2026331.837 to v0.2026331.1243, in charly/go.mod and in the three in-repo tools/* modules that carry the same pin, aligned by charly task mods-tidy. The testdata build-cache fixture at charly/testdata/plugin-buildcache-project/candy/plugin-example-kind/go.mod stays where it is: it sits outside the lockstep by construction, whose globs are candy/*/go.mod and tools/*/go.mod:

$ sed -n "30,50p" tools/gomod-canonical/gomod_canonical_test.go
// module that is not a plugin, and no longer under candy/ at all) and the `tools/golden-*`
// fixture modules, and all three were found broken by exactly that blind spot. The shim was
// MOVED into a directory this glob already covers precisely so the move could not
// re-open it.
func lockstepModules(t *testing.T) []string {
	t.Helper()
	var out []string
	for _, pat := range []string{
		filepath.Join("..", "..", "candy", "*", "go.mod"),
		filepath.Join("..", "..", "tools", "*", "go.mod"),
	} {
		found, err := filepath.Glob(pat)
		if err != nil {
			t.Fatal(err)
		}
		for _, m := range found {
			b, err := os.ReadFile(m)
			if err != nil {
				t.Fatalf("%s: %v", m, err)
			}
			if contractRequireRe.MatchString(string(b)) {
[end]

Nothing else moves. Between the two sdk tags the only source difference is one field on one code path plus its new round-trip test, so this pin cannot reach the three steps that stay red:

$ diff -rq [email protected] [email protected]
Only in [email protected]/CHANGELOG: 0.2026331.837.md
Files [email protected]/deploykit/bed_session.go and [email protected]/deploykit/bed_session.go differ
Only in [email protected]/deploykit: bed_session_test.go
[end]
$ diff -u [email protected]/deploykit/bed_session.go [email protected]/deploykit/bed_session.go | grep -E "^[+-][^+-]" | grep -v "^[+-][[:space:]]*//"
-		Ports:         node.Port,
-		SetPorts:      len(node.Port) > 0,
-		Volume:        node.Volume,
-		Env:           node.Env,
-		CleanEnv:      true,
-		Tunnel:        node.Tunnel,
-		Security:      node.Security,
-		Network:       node.Network,
-		Box:           node.Image,
-		Target:        node.Target,
+		Ports:    node.Port,
+		SetPorts: len(node.Port) > 0,
+		Volume:   node.Volume,
+		Env:      node.Env,
+		CleanEnv: true,
+		Tunnel:   node.Tunnel,
+		Security: node.Security,
+		Network:  node.Network,
+		Box:      node.Image,
+		Target:   node.Target,
+		VmCrossRef:    node.From,
[end]

The bed proof, before and after. The pre-fix failure is the record from the earlier leg's own run on this bed (worktree retire-closure/charly, run 2026.331.1146):

$ grep -n "refusing to write" .check/check-sidecar-pod/2026.331.1146/config.log; grep -E "^charly check run check-sidecar-pod: \[config\]" .check/check-sidecar-pod/2026.331.1146/runner.stderr.log
10:charly: error: command "config": deploy:pod config: InvokeProvider deploy:pod op=config-setup: rpc error: code = Unknown desc = persisting project-declared volumes: refusing to write /tmp/charly-bed-cfg-check-sidecar-pod-1873845398/charly.yml — it holds 2 deploy entr(y|ies) but only 1 load; this binary would erase the 1 a degraded load dropped (fix the config first, e.g. `charly migrate`, or remove it to regenerate)
charly check run check-sidecar-pod: [config] START (charly config; log: .check/check-sidecar-pod/2026.331.1146/config.log)
charly check run check-sidecar-pod: [config] FAIL after 42.615s: exit 1: charly subcommand exited 1 (log: .check/check-sidecar-pod/2026.331.1146/config.log)
[end]

On this tree the same bed reaches and passes [config], [deploy-add], [bring-up-members] and ephemeral-register-roundtrip, and its check-live phase is still red on three checks:

$ grep -E "^charly check run check-sidecar-pod:" /tmp/bed-sidecar.log
charly check run check-sidecar-pod: [vm-build-check-sidecar-pod-ephvm] START (charly vm build; log: .check/check-sidecar-pod/2026.331.1254/vm-build-check-sidecar-pod-ephvm.log)
charly check run check-sidecar-pod: [vm-build-check-sidecar-pod-ephvm] PASS after 1m12.974s [advisories=1] (log: .check/check-sidecar-pod/2026.331.1254/vm-build-check-sidecar-pod-ephvm.log)
charly check run check-sidecar-pod: [image-build] START (charly box build; log: .check/check-sidecar-pod/2026.331.1254/image-build.log)
charly check run check-sidecar-pod: [image-build] PASS after 1m32.453s [advisories=5] (log: .check/check-sidecar-pod/2026.331.1254/image-build.log)
charly check run check-sidecar-pod: [check-image] START (charly check box; log: .check/check-sidecar-pod/2026.331.1254/check-image.log)
charly check run check-sidecar-pod: [check-image] PASS after 52.942s [advisories=1] (log: .check/check-sidecar-pod/2026.331.1254/check-image.log)
charly check run check-sidecar-pod: [deploy-add] START (charly deploy add; log: .check/check-sidecar-pod/2026.331.1254/deploy-add.log)
charly check run check-sidecar-pod: [deploy-add] PASS after 1m36.136s [advisories=7] (log: .check/check-sidecar-pod/2026.331.1254/deploy-add.log)
charly check run check-sidecar-pod: [config] START (charly config; log: .check/check-sidecar-pod/2026.331.1254/config.log)
charly check run check-sidecar-pod: [config] PASS after 52.31s [advisories=1] (log: .check/check-sidecar-pod/2026.331.1254/config.log)
charly check run check-sidecar-pod: [start] START (charly start; log: .check/check-sidecar-pod/2026.331.1254/start.log)
charly check run check-sidecar-pod: [start] PASS after 42.272s [advisories=1] (log: .check/check-sidecar-pod/2026.331.1254/start.log)
charly check run check-sidecar-pod: [wait-ready] START
charly check run check-sidecar-pod: [wait-ready] PASS after 1.646s
charly check run check-sidecar-pod: [bring-up-members] START
charly check run check-sidecar-pod: [bring-up-members] PASS after 3m17.846s
charly check run check-sidecar-pod: [check-live] START (charly check live; log: .check/check-sidecar-pod/2026.331.1254/check-live.log)
charly check run check-sidecar-pod: [check-live] FAIL after 9m35.679s: exit 2: charly subcommand exited 2 (log: .check/check-sidecar-pod/2026.331.1254/check-live.log)
charly check run check-sidecar-pod: [cleanup] START (charly remove; log: .check/check-sidecar-pod/2026.331.1254/cleanup.log)
charly check run check-sidecar-pod: [cleanup] PASS after 33.772s [advisories=1] (log: .check/check-sidecar-pod/2026.331.1254/cleanup.log)
charly check run check-sidecar-pod: [cleanup-members] START
charly check run check-sidecar-pod: [cleanup-members] PASS after 1m48.106s
charly check run check-sidecar-pod: FAIL (steps=11, skipped_checks=3) — check-image: declared check plan:candy:github.com/opencharly/layer-supervisord:5 did not run: context [runtime] not active in box mode; check-image: declared check plan:candy:github.com/opencharly/pod-check-keepalive:3 did not run: context [runtime] not active in box mode; check-image: declared check os-bash-service-running did not run: context [runtime] not active in box mode
[end — 23 step lines; the run's own phase log is .check/check-sidecar-pod/2026.331.1254/runner.stderr.log]
$ grep -E "^  FAIL" .check/check-sidecar-pod/2026.331.1254/check-live.log
  FAIL  check charly service status reprints the in-container supervisorctl output — the keepalive program RUNNING — proving the K4 service move (charly service → LifecycleTarget.Shell → the pod plugin's OpShell captured exec) carries the container command's output back through the host. A swallowing capture bug yields EMPTY output and FAILS this step; the host-resolved `<engine> exec <ctr> supervisorctl status` argv is executed IN the pod plugin over the served executor, not by core.  [service-status-output-present]  stdout: expected to contain "keepalive" (got: )
  FAIL  run charly update rebuilds/redeploys the artifact through dispatchByDeployTarget (update_deploy_dispatch.go — the irreducible loadDeployPlugins+ResolveTarget leg pair since K-wave 2 cone CONTESTED; the deploy-node resolution moved plugin-side) — proves the update path still works after the consolidation.  [plan:deploy-local:check-sidecar-pod:8]  probe killed by never-hang ceiling after 2m21.71s (no exit status — the process was signalled, not returned); command: /home/atrawog/claude3/opencharly/.worktrees/retire-closure/charly-beds/bin/char…
  FAIL  check after remove→start the pod is running again — the round-trip's final assertion, proving the FULL consolidated pod-lifecycle-dispatch family (start/stop/shell/logs/update/remove/service) composes end-to-end, not just each verb in isolation.  [sidecar-pod-roundtrip-final]  exit=1, want 0 (stderr: plugin plugin-example-structkind: served from /home/atrawog/.cache/charly/plugin-build/views/plugin-example-structkind-8408bb195d4f6668 (build sha256:2da1045a9d9c0f0c50dfbac2…
[end]
$ for b in check-sidecar-pod/2026.331.1254 check-group/2026.331.1320; do echo "== $b =="; grep -E "^(ok|status|skipped_checks|total_seconds):" .check/$b/summary.yml; done
== check-sidecar-pod/2026.331.1254 ==
total_seconds: 1326
skipped_checks: 3
ok: false
status: FAIL
== check-group/2026.331.1320 ==
total_seconds: 754
skipped_checks: 0
ok: true
status: PASS
[end]

The three red checks, each with its disposition:

  1. plan:deploy-local:check-sidecar-pod:8 (charly update check-sidecar-pod) is killed by the never-hang ceiling at 2m21.71s with no exit status. The step declares no timeout:, so it inherits the ~2m ceiling: the never-hang class of batch: bed steps under concurrent-host load — the never-hang ceiling kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls #650, where this measurement is recorded.
  2. sidecar-pod-roundtrip-final (charly start check-sidecar-pod && charly status --json) returns exit=1, want 0. RCA'd and settled live on a HEALTHY pod: charly remove <pod> --keep-deploy drops the generated run plan, so the next start refuses with plugin-deploy-pod start: resolve plan: not configured; run 'charly config <pod>' first. The never-hang kill that preceded it in the bed run is not the cause, because the same sequence fails with no kill and no load. Filed as fix(pod): remove --keep-deploy drops the run plan, so the next start refuses with "not configured" #1305, whose evidence carries the repro transcript.
  3. service-status-output-present (charly service status) exits 0 with EMPTY stdout, which is a different mechanism: the pinned plugin-pod (v0.2026274.652) calls the error-only hostPodLifecycle, discarding the captured table the host already returns. Verified, unreachable by this diff, and filed as fix(pod): the pinned plugin-pod never prints the captured table, so charly service status outputs nothing #1303.

check-group on the same tree: PASS (steps=16).

$ grep -E "^charly check run check-group:" /tmp/bed-group.log
charly check run check-group: [vm-build] START (charly vm build; log: .check/check-group/2026.331.1320/vm-build.log)
charly check run check-group: [vm-build] PASS after 45.256s [advisories=1] (log: .check/check-group/2026.331.1320/vm-build.log)
charly check run check-group: [vm-create] START (charly vm create; log: .check/check-group/2026.331.1320/vm-create.log)
charly check run check-group: [vm-create] PASS after 30.765s [advisories=1] (log: .check/check-group/2026.331.1320/vm-create.log)
charly check run check-group: [wait-ready] START
charly check run check-group: [wait-ready] PASS after 50.375s
charly check run check-group: [deploy-add] START (charly deploy add; log: .check/check-group/2026.331.1320/deploy-add.log)
charly check run check-group: [deploy-add] PASS after 39.676s [advisories=1] (log: .check/check-group/2026.331.1320/deploy-add.log)
charly check run check-group: [deploy-check-group-member] START (charly deploy add; log: .check/check-group/2026.331.1320/deploy-check-group-member.log)
charly check run check-group: [deploy-check-group-member] PASS after 44.582s [advisories=3] (log: .check/check-group/2026.331.1320/deploy-check-group-member.log)
charly check run check-group: [bring-up-members] START
charly check run check-group: [bring-up-members] PASS after 2ms
charly check run check-group: [check-live] START (charly check live; log: .check/check-group/2026.331.1320/check-live.log)
charly check run check-group: [check-live] PASS after 33.887s [advisories=1] (log: .check/check-group/2026.331.1320/check-live.log)
charly check run check-group: [check-live-check-group-member] START (charly check live; log: .check/check-group/2026.331.1320/check-live-check-group-member.log)
charly check run check-group: [check-live-check-group-member] SKIPPED after 38.111s: no plan steps resolved for deployment check-group.check-group-member: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110) (log: .check/check-group/2026.331.1320/check-live-check-group-member.log)
charly check run check-group: [update] START (charly update; log: .check/check-group/2026.331.1320/update.log)
charly check run check-group: [update] PASS after 3m53.426s [advisories=5] (log: .check/check-group/2026.331.1320/update.log)
charly check run check-group: [rebuild-ready] START
charly check run check-group: [rebuild-ready] PASS after 289ms
charly check run check-group: [redeploy-check-group-member] START (charly deploy add; log: .check/check-group/2026.331.1320/redeploy-check-group-member.log)
charly check run check-group: [redeploy-check-group-member] PASS after 1m9.25s [advisories=1] (log: .check/check-group/2026.331.1320/redeploy-check-group-member.log)
charly check run check-group: [check-live-rebuild] START (charly check live; log: .check/check-group/2026.331.1320/check-live-rebuild.log)
charly check run check-group: [check-live-rebuild] PASS after 44.402s [advisories=1] (log: .check/check-group/2026.331.1320/check-live-rebuild.log)
charly check run check-group: [check-live-rebuild-check-group-member] START (charly check live; log: .check/check-group/2026.331.1320/check-live-rebuild-check-group-member.log)
charly check run check-group: [check-live-rebuild-check-group-member] SKIPPED after 50.339s: no plan steps resolved for deployment check-group.check-group-member: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110) (log: .check/check-group/2026.331.1320/check-live-rebuild-check-group-member.log)
charly check run check-group: [cleanup-check-group-member] START (charly deploy del; log: .check/check-group/2026.331.1320/cleanup-check-group-member.log)
charly check run check-group: [cleanup-check-group-member] PASS after 38.182s [advisories=1] (log: .check/check-group/2026.331.1320/cleanup-check-group-member.log)
charly check run check-group: [cleanup] START (charly vm destroy; log: .check/check-group/2026.331.1320/cleanup.log)
charly check run check-group: [cleanup] PASS after 34.999s [advisories=1] (log: .check/check-group/2026.331.1320/cleanup.log)
charly check run check-group: [cleanup-members] START
charly check run check-group: [cleanup-members] PASS after 0s
charly check run check-group: PASS (steps=16) — check-live-check-group-member: asserted nothing: no plan steps resolved for deployment check-group.check-group-member: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110); check-live-rebuild-check-group-member: asserted nothing: no plan steps resolved for deployment check-group.check-group-member: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110)
[end — 33 step lines; the run's own phase log is .check/check-group/2026.331.1320/runner.stderr.log]
$ grep -E "^charly check run check-group: \[.*SKIPPED" /tmp/bed-group.log
charly check run check-group: [check-live-check-group-member] SKIPPED after 38.111s: no plan steps resolved for deployment check-group.check-group-member: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110) (log: .check/check-group/2026.331.1320/check-live-check-group-member.log)
charly check run check-group: [check-live-rebuild-check-group-member] SKIPPED after 50.339s: no plan steps resolved for deployment check-group.check-group-member: this phase asserted nothing, so it is recorded as a SKIP and not as a pass (opencharly/plugin-check#110) (log: .check/check-group/2026.331.1320/check-live-rebuild-check-group-member.log)
[end]

The two member phases the runner itself records as SKIPPED (opencharly/plugin-check#110, no plan steps resolved) are the runner's honest SKIP verdict, not a pass; the other 14 stepped phases all report PASS in the pasted step list.

Relates to opencharly/opencharly#1318, the umbrella programme issue this charly-leg bed proof belongs to (context, not a blocker: nothing in #1318 waits on this PR).
Relates to #1299 (closed).

How tested

Head of the pushed branch, and the diff it carries:

$ head=$(git rev-parse HEAD); echo "$head"; git status --porcelain
ec9a523cbceebd3bfb2d4d3be56672737e029e0a
$ git log --oneline origin/main...HEAD; git diff --stat origin/main...HEAD
ec9a523c fix(deps)!: adopt the sdk bed-cross-ref fix; sidecar [config] unblocked, group bed green
 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(-)

Formatting, build, vet and the module suite on that tree:

$ gofmt -l .
[gofmt rc=0, listed=0 file(s)]
$ go build ./... && go vet ./...
[build+vet rc=0]
$ go test -count=1 ./...
ok  	github.com/opencharly/charly/charly	238.457s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen	141.212s
[exit 0]

The three in-repo tools modules carry the same pin and their own suite (tools/gomod-canonical's TestContractPinsMatchShared polices the lockstep):

$ for d in tools/*/; do [ -f "$d/go.mod" ] || continue; ( 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.002s
== tools/ledger-validate/ ==
ok  	github.com/opencharly/charly/tools/ledger-validate	0.003s
[tools sweep rc=0]

The project's authoring gate:

$ ./bin/charly box validate 2>&1 | tail -1
charly box validate: OK — checked 346 candies, 102 boxes, 51 deploys, 6 distros, 7 builders; 0 warnings, 0 errors
[validate rc=0]

The R9 binary under test is this worktree's own CalVer build, not a shared install. The CalVer string 2026.331.1233 names the SOURCE commit's time rather than the build's, so the proof that the new pin is inside the tested binary is its build info:

$ ./bin/charly version
2026.331.1233
$ go version -m ./bin/charly | grep -E "opencharly/(sdk|spec)"
	dep	github.com/opencharly/sdk	v0.2026331.1243	h1:q7ZT+1K1c+TkzohA32KfLFbC2wVnLnnK6daNZoodR40=
	dep	github.com/opencharly/spec	v0.2026331.808	h1:wkN+YZHhpMIMHiL0p/Zfy7qgjABBehQJWzPaSGtMCrk=
[end]

The R10 beds, run by name through charly check run with no scope-shrinking flag, on disposable: true targets (check-sidecar-pod's pod and its ephemeral VM member, check-group's eval VM), whose step lists, failing-check lines and summary.yml verdicts are pasted above: check-group PASS, check-sidecar-pod red on the three checks disposed of in the summary.

Spike

R12's candidate set for the RCA's cause (the [config] refusal):

  1. Adopt the sdk fix (chosen, and the diff implements it). fix(deploykit)!: persist a bed member's from: cross-reference sdk#651 sets VmCrossRef: node.From, and its deploykit/bed_session_test.go round-trips a from: member through persist then load. Proven live here: [config] PASS, [deploy-add] PASS, [bring-up-members] PASS and ephemeral-register-roundtrip PASS, all pasted above, against the same bed that refused to write in the pre-fix fence.
  2. A local workaround in charly (write the cross-ref in the bed runner, or patch the overlay after persist) was refused: it duplicates the sdk mechanism (R2) and routes around a library defect (R3), and the earlier leg's own CHANGELOG/2026.331.1233.md already records the root fix as one line in the sdk.
  3. Relaxing the sdk save guard was refused: that guard is what caught the degraded load; weakening it trades a loud refusal for silent entry loss.

Nothing beyond the winning candidate was implemented: the diff is exactly the pin move that candidate needs.

Rulebook compliance

  • R0: skills loaded before the first edit or git action, in the dispatcher's order: charly-internals:git-workflow, charly-internals:go, charly-internals:cutover-policy, charly-internals:strict-policy, charly-internals:disposable, then charly-check:check and charly-internals:agents before the bed and the PR work.
  • R1: every anomaly got an RCA before remediation, and the gates are zero-warning: charly box validate reports "0 warnings, 0 errors" (pasted above) and each bed phase's diagnostics record errors: 0, warnings: 0. The bed runs' advisories are the resolver's INFO-tier multi-tag notices, naming box=githubrunner and box=arch-coder @github refs that this diff does not touch. Findings: two verified and filed (fix(pod): the pinned plugin-pod never prints the captured table, so charly service status outputs nothing #1303 for the empty service status output, fix(pod): remove --keep-deploy drops the run plan, so the next start refuses with "not configured" #1305 for the remove --keep-deploy plan loss) and one added to batch: bed steps under concurrent-host load — the never-hang ceiling kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls #650 (the never-hang kill).
  • R2: no duplication. The fix is adopted from the sdk, one field in one home, rather than re-implemented here, and the four module pins move through the ONE charly task mods-tidy task instead of four hand edits.
  • R3: no workaround. No sleep, no retry loop, no hand-written pin and no ad-hoc engine command: both beds ran through the owning charly check run verb, and nothing was preempted or hand-started.
  • R4: product before prose. This diff changes no prose and routes around no defect; the commands this body documents (charly check run, charly box validate, charly task mods-tidy) are the binary's own verbs.
  • R5: the superseded pin survives only as history. git grep for it returns three lines, each inside CHANGELOG/, the permitted historical class:
$ git grep -n v0.2026331.837
CHANGELOG/2026.331.1233.md:9:- **Contract bump (`charly/go.mod`, `go get` + `go mod tidy`)** — `spec` v0.2026330.2134 → **v0.2026331.808**; `sdk` v0.2026328.1805 → **v0.2026331.837**; and the five compiled-in plugin modules whose producers changed: `plugin-fleet` → **v0.2026331.847**, `plugin-loader` → **v0.2026331.902**, `plugin-box` → **v0.2026331.902**, `plugin-status` → **v0.2026331.916**, `plugin-substrate` → **v0.2026331.933**.
CHANGELOG/2026.331.1233.md:106:`check-sidecar-pod` (the substrate-consumer bed) gets most of the way — the ephvm builds, the pod image builds and checks, and `deploy-add` brings the tree up — then FAILS at `[config]`. Its `[deploy-add] [warnings=1]` is the SAME symptom, not a separate one: `Warning: could not save to charly.yml: refusing to write …/charly.yml — it holds N deploy entr(y|ies) but only N load; this binary would erase the N a degraded load dropped` — the ephvm member's degraded load, RCA'd by #1299 (it is NOT a `check-group` warning; every `check-group` step is `warnings: 0`). Root cause (verified by RCA, opencharly/charly#1299): the AUTHORED bed def is correct (`check-sidecar-pod-ephvm` carries `from: eval-vm`, and the serializer preserves it), but the PERSIST drops it: `deploykit.PersistBedDeployOverrides` (`deploykit/bed_session.go:63`, `sdk v0.2026331.837`) builds `SaveDeployStateInput{Box: node.Image, …}` and never sets `VmCrossRef`, so a `from:` vm member persists with no source and the degraded load drops it; the NEW SDK save guard (`deploykit/deploy_file.go:233`) then refuses. `deploy_state.go:519` already supports `entry.From` from `input.VmCrossRef`, so the root fix is one line — `VmCrossRef: node.From` — in the **opencharly/sdk** `deploykit`. That is an SDK leg, **not the Android retirement** and not charly+plugin-check; it is owned by opencharly/charly#1299 (ephvm half) and is not widened into this PR.
[end]
  • R6: git status --porcelain listed exactly the eight pin files before the commit and prints nothing after it (pasted above); no force-push, no direct push to main, no history rewrite.
  • R7: the module suite, the tools sweep and both beds ran against the committed content; the changed path executed live, with [config] PASS where the pre-fix run failed.
  • R8: no live service is mocked. The beds deploy real containers and a real libvirt VM, and the skipped phases are the runner's own SKIP verdict rather than a substitute for a live run.
  • R9: the binary under test is this worktree's CalVer build (scripts/bootstrap-charly.sh), 2026.331.1233, pasted above; that CalVer encodes the SOURCE commit's time rather than the build's, which is why its build info is pasted beside it to prove the binary embeds the adopted contract version. No runtime OS dependency was added, so packaging: needs nothing.
  • R10: the change class is a Go module pin move, whose gate is the module suite plus the beds on disposable: true targets. Both beds were run by name on this tree with no scope-shrinking flag. check-group PASSED; check-sidecar-pod reaches and passes the phase this PR fixes and stays red on three steps the pin cannot reach, each disposed of as filed evidence (batch: bed steps under concurrent-host load — the never-hang ceiling kills legitimately-slow probes (status fan-out, cold box pull) and resolution stalls #650, fix(pod): the pinned plugin-pod never prints the captured table, so charly service status outputs nothing #1303, fix(pod): remove --keep-deploy drops the run plan, so the next start refuses with "not configured" #1305).
  • R11: no DESIGN shape, field, kind, verb or capability changes. This is a dependency pin move, so no D- id is touched and nothing moves away from the contract.
  • R12: the spike round is ### Spike above: three candidates, two refused for a stated rule, and the working winner is the diff.

Change classification

Class: library consumer pin move. Go module requirements only; no Go source, no schema, no authored YAML, no workflow, no hook.

Breaking change + rollback: consumer-visible on the charly binary. The bed-session persist now writes a deploy-level member's from: cross-reference, so a per-host bed overlay loads more entries than before: previously the template-backed entry was written sourceless, dropped on load, and the save guard refused the next write. Nothing is removed from any authored surface, meaning no YAML field, CLI flag, capability label or wire shape. Rollback: revert this commit. The four pins return to v0.2026331.837 and charly check run check-sidecar-pod fails at [config] again with holds 2 deploy entr(y|ies) but only 1 load, which the pre-fix fence above pastes.

Filed issues

A3 — the trailer names the model the harness reports for this session (deepseek-v4.1-flash:cloud); the org validator's own signature reads ollama-cloud/deepseek-v4.1-flash. Harness: Claude Code.

Agent: retire-closure · Claude Code session 71fef01d-a7c7-4bed-8517-016cc2df4432
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

…ed, group bed green

github.com/opencharly/sdk v0.2026331.837 -> v0.2026331.1243 (opencharly/sdk#651,
tag v0.2026331.1243): deploykit.PersistBedDeployOverrides now persists
SaveDeployStateInput.VmCrossRef (node.From), so a bed's deploy-level `from:`
member keeps its same-kind source when it is written to the per-host overlay.

Before (recorded at .check/check-sidecar-pod/2026.331.1146/config.log:10, main
without this pin): `charly check run check-sidecar-pod` failed at [config] with
"refusing to write /tmp/charly-bed-cfg-check-sidecar-pod-.../charly.yml — it
holds 2 deploy entr(y|ies) but only 1 load".

After: [config] PASS; [deploy-add] PASS; [bring-up-members] PASS;
ephemeral-register-roundtrip PASS.

The same pin moves in the three in-repo tools modules that carry it, aligned with
`charly task mods-tidy`; tools/gomod-canonical's TestContractPinsMatchShared
polices the lockstep.

Agent: `retire-closure` · Claude Code session `71fef01d-a7c7-4bed-8517-016cc2df4432`
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
@github-actions

Copy link
Copy Markdown
Contributor

Review — BLOCK

Head SHA: ec9a523cbceebd3bfb2d4d3be56672737e029e0a (branch: fix/sidecar-bed-proof)
Change class: library consumer pin move — 4 go.mod + 4 go.sum, no Go source, no schema, no authored YAML, no workflow.
Placement: CORRECT — dependency pin only; no code placed in core/sdk/candy.
Comments: none (0).

Blocks

  1. R1 / CONC — a red bed check is dismissed as an "observation" to be settled by a future run. In ## Summary item 2, sidecar-pod-roundtrip-final fails (exit=1, want 0) and is disposed of as "recorded as an OBSERVATION, not a finding … The bed's next run produces the update's own output and settles it." This is the forbidden rerun-and-see framing: the failure has no RCA and no entry under ## Filed issues (the #650 thread mention covers the never-hang kill in item 1, not this check). Per R1 every surfaced failure is fixed in-tree or filed as a real issue; a blocking finding labelled "not a finding" is itself a BLOCK. Fix it, or RCA it and list it under ## Filed issues — do not defer it to a next run.

  2. R9 / R10 — the binary evidence does not show the new pin is in the tested binary. The R9 proof is ./bin/charly version → 2026.331.1233, but that string does not evidence the sdk pin, and the body's own R5 grep shows CHANGELOG/2026.331.1233.md:9 shipped sdk v0.2026331.837 (the OLD pin), while the adopted tag is v0.2026331.1243 and 2026.331.1233 (12:33) predates it (12:43). As pasted, the [config] PASS cannot be confidently attributed to the new sdk. Supply go version -m ./bin/charly (or the rebuild command) showing github.com/opencharly/sdk v0.2026331.1243, and confirm the binary was rebuilt from the final pinned tree after the tag was adopted.

Non-blocking note: the body says "Relates to opencharly/opencharly#1318"; if this PR is what unblocks #1318, COORD expects a WAITING/HOLDING comment naming both sides. If it is merely context, ignore.

Verdict: BLOCK


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

View action run

@aitrawog

Copy link
Copy Markdown
Contributor Author

STATUS

STATUS — round 2: both blocks answered, with their RCAs and the missed controls named.

Block 1 (R1: a red check dismissed as an "observation"). Correct — and the RCA is now finished instead of deferred. Mechanism: sidecar-pod-roundtrip-final fails because charly remove <pod> --keep-deploy drops the generated run plan, so the next start refuses with plugin-deploy-pod start: resolve plan: not configured; run 'charly config <pod>' first (rc=1). Settled live on a healthy pod, no kill and no load, in an isolated per-host overlay: the same sequence fails, so the never-hang kill that preceded it is not the cause. Filed as #1305, whose evidence carries the repro transcript; the body now disposes of all three red checks as filed evidence (#650, #1303, #1305). Missed control: my pre-push self-audit accepted "unverified" as a disposition and deferred the mechanism to the next run, which is exactly the forbidden rerun-and-see framing. Root fix in the control: an unnamed mechanism on a red check gets a bounded repro on the disposable target BEFORE the body is written — R1's own "run the instrument that settles it".

Block 2 (R9/R10: the binary does not evidence the new pin). Correct. Mechanism: charly version prints a CalVer that encodes the SOURCE commit's time (the branch base, 12:33), not the build's, so it says nothing about the module graph; the binary was built at 12:47 from a tree that already carried the adopted pin. The body now pastes go version -m ./bin/charly, whose build info shows dep github.com/opencharly/sdk v0.2026331.1243. Missed control: my R9 self-audit checked the version string only, although R9's claim ("binary equals source") is about the module graph for a pin move. Root fix in the control: the R9 evidence for any dependency-pin change is the version line PLUS the moved module's build-info line.

Non-blocking note (COORD). opencharly/opencharly#1318 is context, not a blocker: this PR is that programme issue's charly-leg bed proof, and nothing in #1318 waits on it, so no WAITING/HOLDING is owed on either thread. The body now says so where it names #1318.

The head is unchanged (ec9a523cbceebd3bfb2d4d3be56672737e029e0a) — this round is body-only, so the gate is re-run on the same head through the REST re-run path.

Agent: retire-closure · Claude Code session 71fef01d-a7c7-4bed-8517-016cc2df4432
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

Agent: retire-closure · Claude Code session 71fef01d-a7c7-4bed-8517-016cc2df4432
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)

@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: ec9a523cbceebd3bfb2d4d3be56672737e029e0a (branch: fix/sidecar-bed-proof)

Security screen: PASS — no injection, no secrets, no guardrail weakening, no scope mismatch. The supply-chain pin move is the stated scope, and the pasted sdk-tag diff (VmCrossRef: node.From + a round-trip test) matches it exactly; the go.sum h1:q7ZT… hash is identical across all four modules and matches the pasted go version -m build info.
Checklist: All applicable rules PASS or NA — A1/A2/A3, R0–R12, ARCH placement: CORRECT (dependency pin only), DISP/QUAL/CONC, COORD. The three red check-sidecar-pod checks are each RCA'd and filed (#650 never-hang ceiling, #1303 empty service status, #1305 remove --keep-deploy plan loss), satisfying R1 "fix it or file it" and CONC's named-filed-issue requirement; check-group is ok: true. The advisories=N entries are the runner's INFO-tier notices, not warnings, and are internally consistent with the pasted step/summary output.
Comments:

Verdict: PASS


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

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) November 27, 2026 14:08
@github-actions
github-actions Bot merged commit 5299697 into main Nov 27, 2026
7 of 8 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Nov 27, 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