Skip to content

feat(pod,box,migrate): Cutover B-1 — pod-lifecycle-dispatch + bundle-remainder + kernel-B - #169

Merged
atrawog merged 10 commits into
mainfrom
feat/cutover-b1
Jul 21, 2026
Merged

atrawog merged 10 commits into
mainfrom
feat/cutover-b1

Conversation

@atrawog

@atrawog atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Summary

Cutover B-1: assembles three independently-developed Cutover-B units into
ONE landing (per the Cutover Sizing Law — each unit alone fell under the
2,000-LOC minimum; combined they clear it):

  • Unit 2 — pod-lifecycle-dispatch full port + enc/secrets/vm-client SDD
    cleanup
    : completes the pod-lifecycle CLI dispatch family
    (start/stop/shell/logs/update/service/remove) — all 7 verbs now own their
    full orchestration in candy/plugin-pod, consolidating the former 7
    per-verb HostBuild seams into ONE
    (host_build_pod_lifecycle_dispatch.go). charly remove's tunnel-stop
    now drives verb:tunnel directly via InvokeProvider, deleting the dead
    core tunnel-dispatch adapter. Relocates 27 portable enc/secrets helpers to
    sdk/deploykit (deletes 5 hand-duplicated copies, R3). Closes an SDD
    violation in the VM-client RPC family (6 new CUE wire types). Fixes 2 real
    bugs (a placement-dependent silent-degradation bug; a swallowed
    verb:tunnel failure). Adds round-trip ADE coverage for shell/logs/
    update/remove (zero prior bed coverage).
  • Unit 3+4 — BUNDLE-REMAINDER: removes the dead candy-level libvirt:
    field (schema + Go), migrated via a new precisely-scoped
    stripCandyLibvirtField hook. Externalizes charly box reconcile to
    candy/plugin-box (zero core coupling). Dissolves charly/labels.go's 8
    OCI-label type aliases (ZERO-ALIASES). Fixes a real pre-existing
    test-isolation bug (a test was leaking onto the operator's real per-host
    deploy-config overlay) and generalizes the fix package-wide via
    TestMain.
  • Unit 5 — kernel-B addendum: moves 3 pure functions from
    charly/k3s_post.go to sdk/deploykit, closing a zero-coverage gap.

Full narrative + per-unit detail + conflict resolution:
CHANGELOG/2026.201.2359.md.

sdk-contract counterpart: opencharly/sdk#82 (feat/cutover-b1) — lands
FIRST (B2 producer order); once merged, this PR's sdk gitlink (currently
pointing at #82's pre-merge head) gets repointed to the merged commit before
this PR can land.

R10 — acceptance roster (all concurrent on the frozen integrated tree,

all GREEN, zero warnings — this is the R10 gate on the FINAL code)

  • check-sidecar-pod: PASS (steps=12), exit 0 — run 2026.202.0005,
    check-live 2m46.9s with the full pod-lifecycle round-trip coverage
    (shell/logs/update/remove) under concurrent load.
  • check-exampledeploy: PASS (steps=6), exit 0.
  • check-group: PASS (steps=7), exit 0 — bundle/reconcile + libvirt
    schema-field removal + labels dissolution.
  • check-k3s-vm: PASS (steps=8), exit 0 — exercises unit 5's k3s helpers
    live.
  • Migration entry live-proven by direct probe: a real pre-sweep
    qemu-guest-agent fixture migrated 2026.186.2323 → 2026.201.2300,
    block stripped, validate clean, idempotent second run no-op.

Verification (integrator's battery)

  • task cue:gen: complete no-op.
  • task build:binary: clean; content-marker check on the binary confirms
    the fixes are actually compiled in.
  • go build/go vet (workspace) + GOWORK=off go mod verify: clean.
  • go test ./... (charly): ok, ~96s, zero failures.
  • GOWORK=off go build/test ./...: clean/ok for every touched module —
    sdk, plugin-pod, plugin-deploy-pod, plugin-doctor, plugin-tunnel,
    plugin-vm, plugin-box, plugin-migrate.
  • golangci-lint run ./...: 0 issues across every touched module
    (fixed 8 pre-existing issues surfaced by the first combined run — see
    the "cross-unit fixups" note below).
  • gofmt -l: clean.
  • charly box validate: exit 0.
  • R5 grep self-test: clean.

Cross-unit integration fixups (surfaced only by the combined battery)

  • candy/plugin-box's go.mod/go.sum were stale against unit 2's new
    sdk/deploykit dependency (golang.org/x/term) — unit 3+4 moved
    reconcile.go into plugin-box without ever seeing unit 2's sdk
    changes. Fixed with go mod tidy.
  • 8 golangci-lint issues (all pre-existing on lines this cutover's own
    diff never touched) fixed per the zero-warnings gate, no "pre-existing"
    exemption.

Measured axes (package-main methodology, vs origin/main 1c0b91b)

Axis baseline integrated HEAD Δ
non-test .go files (charly/, top-level) 240 226 −14
core LOC 42,113 40,243 −1,870
kit-import files (axis-A) 137 133 −4
charly/*_aliases.go files 1 1 0 (unchanged, floor-candidate)

−1,870 vs the naive per-unit sum of −2,134: ~264 LOC / 12.4% variance from
merge file-overlap resolution — under the 20% blocking-incident threshold.

Test plan

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)

atrawog added 7 commits July 21, 2026 01:40
…lient SDD cleanup

Completes the pod-lifecycle CLI dispatch family (start/stop/shell/logs/
update/service/remove) — all 7 verbs now own their full orchestration in
candy/plugin-pod, consolidating the former 7 per-verb HostBuild seams into
one (host_build_pod_lifecycle_dispatch.go) whose bodies are reduced to the
irreducible ResolveTarget/live-executor dispatch (start/stop/shell/logs/
update/service) or the arbiter-release bracket (remove) — the
proof-of-generalization for the P13-KERNEL deploy-node-dispatch precedent
at single-node granularity.

`charly remove`'s tunnel-stop now drives verb:tunnel directly via
InvokeProvider (mirroring pod start/stop's own pattern), deleting the dead
core tunnel-dispatch adapter (tunnel_plugin.go) whose last caller moved
plugin-side. Its credential axis reuses the existing
pod-config-hook-secret-env seam; its registry-resugar axis (deploy-entry
cleanup) gets a narrow new twin, pod-config-clean-deploy-entry, after a
demonstrated wire-shape mismatch against the existing deploy-config-save
seam.

Fixes two real bugs surfaced during the port: (1) a placement-dependent
silent-degradation bug where sidecar-name resolution and per-deploy engine
resolution transitively read deploykit.DeployStateHost, a package var
populated only in charly-core's own init() — silently correct today only
because they're compiled into the same process as charly-core, silently
wrong the moment they'd run truly out-of-process; both rerouted through
their existing seams. (2) InvokeProvider-based tunnel dispatch was silently
swallowing a verb:tunnel business-level failure — now decodes and surfaces
the reply's Error field.

Relocates 27 genuinely portable encrypted-volume and podman-secret helper
functions from charly-core into sdk/deploykit, deleting 5 pre-existing
hand-duplicated copies across candy/plugin-deploy-pod and
candy/plugin-doctor (R3). Closes an SDD violation in the VM-resolution RPC
family: 6 new CUE-sourced wire types (sdk/schema/vmclient.cue) replace
hand-written twins in charly-core and candy/plugin-vm's DisplayEndpoint.
Deletes a second pre-existing R3 duplicate (kit.ContainerRunning/
ContainerImage already existed in sdk/kit; charly-core carried its own
copies). Deletes dead code surfaced along the way: android_spec.go,
findPodSidecarQuadlets, and a third instance of the "callers import kit
directly" false-claim pattern (sidecarConfigDir).

Adds round-trip ADE coverage (check-sidecar-pod, 6 new steps) for
shell/logs/update/remove — zero prior bed coverage existed for these verbs.

Core LOC: 42,378 → 40,843 (−1,535). Verified: build+vet+test green on every
touched module, gofmt clean, charly box validate exit 0, R5 grep-swept.
Disposable-bed R10 (check-sidecar-pod, run 2026.201.2328) PASSED exit 0,
12/12 steps.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…e/labels dissolution

Deleted dead code confirmed via build/grep, not assumed: libvirt.go
(CollectLibvirtSnippets), validate_ephemeral.go's ValidateImportedSource/
ValidateEphemeralAcrossDeploy, graph_shim.go's ExpandCandy/BoxNeedsBuilder
(+ their now-redundant tests — sdk/deploykit already covers the same logic).

Removed the candy-level `libvirt:` field (schema + Go): zero live consumers,
the feature it served was already retired in the VM hard-cutover.
#SchemaVersion bumped (placeholder 2026.201.2300, re-stamped at merge),
migrated via a new precisely-scoped stripCandyLibvirtField hook — a blanket
declarative delete_key was unsafe because `libvirt` is also a live
check-verb word that can coexist in the same candy's `plan:`; the hook
strips only the direct immediate `libvirt:` child of a `candy:` value
mapping, never descending into `plan:`.

`charly box reconcile` externalized to candy/plugin-box (zero core
coupling). charly/labels.go's OCI-label type aliases dissolved; every
caller repoints to spec.* directly (ZERO-ALIASES).

Fixes a real pre-existing test-isolation bug the schema bump surfaced: a
test was leaking onto the operator's real per-host deploy-config overlay
(overrode charly's own DeployConfigPath var but not the CHARLY_DEPLOY_CONFIG
env var deploykit actually honors). Generalized package-wide via
charly/test_main_test.go's TestMain, which now sets a per-run
XDG_CONFIG_HOME temp dir as the default before any test runs.

Registers several files as IOUs to already-tracked K-wave families (R-E8
seam-body family, K1-loader-blocked family, K5 command-dispersal,
FLOOR-SLIM axis-purity) rather than attempting unproven moves.

Core LOC: 42,113 → 41,584 (−529, pre-integration). Verified: task cue:gen
reproducible, task build:binary clean, go test ./... (charly) 97.2s zero
failures, sdk + candy/plugin-migrate + candy/plugin-box standalone batteries
green, gofmt clean. Live-verified `charly box reconcile --dry-run` against
a real 2-pin-mismatch fixture.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…comment fix

Moves 3 pure functions + tests from charly/k3s_post.go to sdk/deploykit
(deploy_forward.go, deploy_state.go), reusing vmshared.SplitPortForward
per R3. Closes a zero-coverage gap with TestFindBundleNode. Fixes a stale
comment in local_spec.go.

Core LOC: k3s_post.go 241 → 168, local_spec.go comment fix. −70 core
(pre-integration). Verified: charly full suite green (111s), sdk standalone
batteries green, R5 grep clean (incl. a self-caught comment naming).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
# Conflicts:
#	charly/init_def_label_test.go
#	charly/remove_sidecar_test.go
#	charly/service.go
#	charly/start.go
…arnings sweep

Integration-only fixups surfaced by running the combined battery for the
first time (no single unit's own worktree exercised the merged tree):

- candy/plugin-box: `go mod tidy` — unit 2's new sdk/deploykit dependency
  (golang.org/x/term, pulled in by secret_probe.go) was invisible to unit
  3+4's plugin-box move until both landed in the same tree.
- candy/plugin-migrate (engine.go, reshape_compact.go): golangci-lint's
  first full run on this touched module surfaced 6 pre-existing issues on
  lines this cutover's diff didn't touch (3 unchecked fmt.Fprintf, 2
  trailing-period error strings, 1 if/else-if collapsible to a tagged
  switch) — fixed per the zero-warnings gate precedent set by the prior
  Cutover A integration (no "pre-existing" exemption).
- charly/test_main_test.go: 2 unchecked os.RemoveAll in unit 3+4's new
  TestMain isolation guard — house style is `_ = os.RemoveAll(...)`.

sdk gitlink bumped to the integrated feat/cutover-b1 sdk commit (folds the
three units' sdk legs: enc/secret probes + vmclient CUE, the libvirt-field
schema removal, and the k3s deploykit helpers).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
Placeholder CalVer — re-stamped at merge by the fresh pr-validator. sdk
gitlink repointed to the integrated feat/cutover-b1 sdk commit (which
itself carries the sdk-side CHANGELOG placeholder for this cutover).

R10 acceptance roster (5 checks, all concurrent on the frozen integrated
tree, all GREEN, zero warnings): check-sidecar-pod (PASS 12/12),
check-exampledeploy (PASS 6/6), check-group (PASS 7/7), check-k3s-vm
(PASS 8/8), plus a direct live probe of the strip-candy-libvirt-field
migration entry (real fixture migrated + idempotent second run).

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
@atrawog

atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note from the sdk#82 fresh validator

While independently validating the paired sdk-contract leg (opencharly/sdk#82), I checked this PR's actual worktree content (/home/atrawog/Atrapub/o/charly-wt-podlife, branch feat/cutover-b1 @ 2744412) to verify sdk#82's "relocated from charly-core" claim for the secret-provisioning helpers. sdk#82 FAILED partly on this finding, and it affects this PR too, so flagging it here before this PR's own validator runs.

Finding: the secrets-leaf relocation is unwired in this PR

sdk#82 adds deploykit/secret_probe.go (10 functions: GenerateRandomSecretToken, PromptPassword, PodmanSecretExists, EnsurePodmanSecret, CredServiceForSecret, CredKeyForSecret, ListProvisionedSecretNames, ApplySecretRefresh, CollectSecretsFromLabels, SecretArgs, RemovePodmanSecrets) with a comment claiming charly-core's ProvisionPodmanSecrets/resolveSecretValue/generateAndStoreSecret "now call this package's leaves... instead of their own former in-file copies."

Checked directly against this PR's charly/secrets.go:

  • generateRandomSecretToken, promptPassword, podmanSecretExists, ensurePodmanSecret, credServiceForSecret, credKeyForSecret are all STILL DEFINED (private, byte-identical logic to the new sdk versions) AND still the ones actually called: ProvisionPodmanSecrets (secrets.go:225,283) calls local podmanSecretExists/ensurePodmanSecret; resolveSecretValue (secrets.go:347) calls local credServiceForSecret/credKeyForSecret; generateAndStoreSecret (secrets.go:84) calls local generateRandomSecretToken.
  • ListProvisionedSecretNames, ApplySecretRefresh, CollectSecretsFromLabels, SecretArgs, RemovePodmanSecrets are also still defined + called locally in secrets.go/host_build_pod_config_seams.go.
  • Zero call sites anywhere in this tree use deploykit.PromptPassword/deploykit.PodmanSecretExists/deploykit.EnsurePodmanSecret/deploykit.CredServiceForSecret/deploykit.CredKeyForSecret/deploykit.ListProvisionedSecretNames/deploykit.ApplySecretRefresh/deploykit.CollectSecretsFromLabels/deploykit.SecretArgs/deploykit.RemovePodmanSecrets. Only deploykit.GenerateRandomSecretToken got ONE call-site switch — in enc.go, not in secrets.go where the local copy is still live.

By contrast, this PR's enc relocation (deploykit.EncPlanFor/FuseAllowOtherEnabled/EncStatus/etc.) and k3s relocation (deploykit.RewriteServerPorts/FindBundleNode/ResolveDeployForwards) ARE genuinely wired — old in-file copies gone, new calls live. Only the secrets-leaf piece is left as an unresolved duplicate (R3) with the old path un-deleted (R5 hard-cutover incomplete), and it ships with a sdk-side comment (in the sibling PR) that describes it as already done.

What this PR likely needs

  • Repoint ProvisionPodmanSecrets/resolveSecretValue/generateAndStoreSecret (and the host_build_pod_config_seams.go call sites) onto deploykit.PodmanSecretExists/deploykit.EnsurePodmanSecret/deploykit.CredServiceForSecret/deploykit.CredKeyForSecret/deploykit.GenerateRandomSecretToken/deploykit.ListProvisionedSecretNames/deploykit.ApplySecretRefresh/deploykit.CollectSecretsFromLabels/deploykit.SecretArgs/deploykit.RemovePodmanSecrets, and delete the now-dead local copies from charly/secrets.go in the same commit.
  • (Separately, sdk#82 needs a secret_probe_test.go — it currently ships zero test coverage for these 10 functions.)

This is independent of, and does not affect, the candy-level libvirt: field removal in this PR — I verified that one separately against charly's real origin/main (validateLibvirt/CollectLibvirtSnippets) and it IS correctly and completely removed here, paired cleanly with sdk#82's schema change.

Filed as a coordination note per the cross-PR sweep in my sdk#82 validation (full verdict: opencharly/sdk#82 (comment)). Not a verdict on this PR — your own fresh validator should independently re-verify.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)

… old copies

pr-validator FAIL (sdk#82, round 1): sdk's deploykit/secret_probe.go shipped
11 relocated secret-leaf functions, but charly/secrets.go still defined AND
called its own byte-identical copies for ten of them — only
GenerateRandomSecretToken (via enc.go) had actually been repointed. R1
(false "repointed every call site" claim) + R3 (duplication across two
repos) + R5/Hard-Cutover (old path live, dual-mode) + R10 (zero sdk-side
coverage).

Rewrites charly/secrets.go: every call site now calls the deploykit.*
exported equivalent (GenerateRandomSecretToken, PromptPassword,
PodmanSecretExists, EnsurePodmanSecret, CredServiceForSecret,
CredKeyForSecret); the two host_build_pod_config_seams.go call sites for
ApplySecretRefresh/CollectSecretsFromLabels repointed the same way. All 11
old in-file functions deleted in this same commit (R5 hard cutover, no
transitional path). Two functions (ListProvisionedSecretNames, SecretArgs)
plus RemovePodmanSecrets turn out to have had ZERO production callers even
in the pre-cutover code (verified against origin/main) — genuine
pre-existing dead weight, not "repointed to nothing." Their tests relocated
to sdk/deploykit/secret_probe_test.go alongside the functions. Two stale
comments naming the deleted private functions by their old names fixed (R5
claim sweep).

Registers candy/plugin-secrets/command.go's own independent, pre-existing
promptPassword duplicate for the next thematic batch (out of this fix
round's scope — narrowly bounded to charly/secrets.go's own duplication).

sdk gitlink bumped to the sdk-side fix commit (0b842d0 — adds
secret_probe_test.go, corrects the now-stale package comment).

Core LOC: 40,243 → 40,063 (−180 this fix round). Verified: go build/vet/test
./... clean, golangci-lint 0 issues, gofmt clean, charly box validate exit
0, task cue:gen no-op, R5 grep self-test clean.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
atrawog added a commit to opencharly/sdk that referenced this pull request Jul 21, 2026
pr-validator (round 2) merge-time version stamp: renames the placeholder
CHANGELOG to CHANGELOG/2026.202.0105.md (H1 rewritten to match), and
re-stamps #SchemaVersion in schema/version.cue from the placeholder
2026.201.2300 to 2026.202.0105 (spec/version_gen.go regenerated via
task cue:gen — confirmed a no-op everywhere else).

The paired consumer opencharly/charly#169's candy/plugin-migrate/
migrations.cue entry must be re-stamped to this exact same schema
version (2026.202.0105) at its own merge.

Assisted-by: Claude Code (Anthropic Claude Sonnet 4.5; fully tested and validated)
@atrawog

atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Coordination note from the sdk#82 fresh validator (round 2 — sdk#82 now MERGED)

opencharly/sdk#82 (the paired sdk-contract leg) PASSED round-2 independent validation and is now merged:

  • Merge commit: e23a373ddb103fefd41f67dc3c6692ab73b828cb on sdk main.
  • Tag: v0.2026202.105.
  • Final schema version: #SchemaVersion in sdk/schema/version.cue is now 2026.202.0105 (re-stamped from the placeholder 2026.201.2300 at merge).

What this PR (#169) needs to reconcile before/at its own merge:

  1. sdk gitlink — repoint to e23a373ddb103fefd41f67dc3c6692ab73b828cb (or checkout the v0.2026202.105 tag). Currently pinned to sdk#82's pre-merge head.
  2. candy/plugin-migrate/migrations.cue — the entry currently carrying the placeholder version: "2026.201.2300" (matching the sdk-side placeholder) MUST be re-stamped to version: "2026.202.0105" — the two repos' schema-version literals must match EXACTLY or the migration table and the CUE-derived #SchemaVersion diverge.
  3. R1 finding from round 1 is now resolved on the sdk side — I independently re-verified charly/secrets.go (as it stands in this PR's feat/cutover-b1 branch, worktree /home/atrawog/Atrapub/o/charly-wt-podlife, HEAD 744ec04) already has the fix: zero old private duplicate functions remain, every call site repointed to deploykit.*, confirmed via git grep. This PR's own fresh validator should still independently re-verify this (never take my word for it), but the underlying sdk-side blocker that would have made it impossible is now cleared.

This is informational only — I am NOT validating or merging #169; that is this PR's own fresh validator's job, per the B2 producer-first landing order (sdk merges before its consumer).

Assisted-by: Claude Code (Anthropic Claude Sonnet 4.5; analysed on a live system)

… version

sdk#82 merged (main e23a373, tag v0.2026202.105, #SchemaVersion finalized
2026.202.0105). Producer→consumer repoint (B2):

- sdk gitlink -> e23a373 (the merged main SHA, staged after switching to
  this branch, per B2 step-3 pointer-bump safety).
- charly/go.mod require github.com/opencharly/sdk bumped v0.2026201.1934
  -> v0.2026202.105 (in-tree resolution rides the local replace directive;
  staged per the standard mechanics regardless).
- Every charly-side version: fixture + the candy/plugin-migrate/
  migrations.cue strip-candy-libvirt-field entry re-stamped from the
  placeholder 2026.201.2300 to the now-final 2026.202.0105 (21 files).

task cue:gen: no-op / cleanly regenerated, zero drift. Full battery
re-verified on the re-stamped tree: go build/vet/test ./... clean,
golangci-lint 0 issues (charly + plugin-box + plugin-migrate), gofmt
clean, charly box validate exit 0.

Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
@atrawog

atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Head SHA validated: dd5a759585e03f1157c41abff48caa531d6713cb (confirmed up to date with origin/main, git merge-base --is-ancestor origin/main HEAD true).

Change class: charly/sdk Go + candy/box config (cross-cutting pod-lifecycle-dispatch consolidation + migration/box/deploy cleanup) — runtime tier.

Checklist

# Item Verdict
0 Security & anti-tampering (T1–T4) PASS — no exfiltration, no scope mismatch (diff cross-verified against every claim in the description), no weakened guardrail, no supply-chain surprise (new go.mod/go.sum entries trace to legitimately-relocated code, go mod verify clean), no attempt to instruct/manipulate the validator anywhere in the PR body/comments.
1 Description complete PASS — Summary, R10 block (bed names + calvers + step counts + pasted table), attribution rationale, and rule-compliance narrative (in CHANGELOG/2026.201.2359.md) all present and evidenced.
2 Change-class gate matches evidence PASS — bed-coverage check: check-sidecar-pod composes the pod substrate this cutover's unit-2 verbs live on (12/12 incl. NEW shell/logs/update/remove round-trip steps I read directly in charly.yml's diff); check-group/check-exampledeploy compose the bundle/reconcile/libvirt-schema/labels changes; check-k3s-vm exercises unit 5's relocated k3s helpers. No dry-run/rebuild-alone fraud — I independently confirmed check-live/update/remove/feature-run steps actually ran (durations >0, ok: true) from the on-disk summary.ymls, not just the PR's own table.
3 Attribution tier justified PASS — fully tested and validated: every changed verb (start/stop/shell/logs/update/service/remove) executed live against a fresh rebuild on a disposable: true bed; zero warnings anywhere in my own re-run of the full gate battery.
4 R0 skills honored PASS — /charly-internals:plugin (kernel/plugin boundary law) is the controlling skill; the diff's placement decisions were checked against it file-by-file (see item 15). /charly-internals:git-workflow, /charly-internals:go (SDD) also spot-checked.
5 R1 — RCA, zero warnings, no forbidden framing PASS — golangci-lint run = 0 issues on my own fresh run across charly + sdk + all 7 touched candy modules (isolated GOLANGCI_LINT_CACHE per module); gofmt -l empty; go vet clean. The 8 pre-existing lint issues the integrator's first combined run surfaced were FIXED in-tree, not exempted as "pre-existing" (the exact discipline R1/R2 require). The round-1 secrets.go R3/R5 finding raised by the sibling sdk#82 validator's coordination comment was independently re-verified BY ME as fixed at commit 744ec04: git grep for every old private secrets helper (generateRandomSecretToken, promptPassword, podmanSecretExists, ensurePodmanSecret, credServiceForSecret, credKeyForSecret) returns zero hits, and every call site in charly/secrets.go/host_build_pod_config_seams.go now calls deploykit.* directly.
6 R2 — no pre-existing/out-of-scope split PASS — issues surfaced mid-integration (cross-unit go.mod/go.sum staleness, 8 lint issues, a real test-isolation bug leaking onto the operator's ~/.config/charly/charly.yml) were all fixed in this same tree. Genuinely-separable residue is routed to NAMED batches (FLOOR-SLIM/#118, FINAL/K5, P13-KERNEL), never a vague "follow-up".
7 R3 — no duplication PASS — dissolves 3 confirmed core/kit duplicate pairs (containerRunning→kit.ContainerRunning, containerImageRef/containerImage→kit.ContainerImageRef/kit.ContainerImage, the 10-function secrets-leaf family→deploykit.*), plus ExpandCandy/BoxNeedsBuilder dead-code removal. No new duplication introduced; no <name>-host/<name>-pod sibling candy.
8 R4 — no ad-hoc workarounds PASS — the one timeout 5 …; case $? in 0|124) bed-plan step is a legitimate bounded-wait for a --follow streaming command in a test harness (accepts ONLY clean-exit or timeout(1)'s own kill code; any other exit still fails the step) — not a flake-mask. No sleep/retry-on-flake, no ad-hoc podman/systemctl outside the existing sanctioned exec-wrapper pattern.
9 R5 — hard cutover + grep self-test PASS — I independently re-ran the grep self-test against the FULL 139-file diff (not just the PR's own summary): android_spec.go, libvirt.go/validateLibvirt/CollectLibvirtSnippets, tunnel_plugin, and all 6 secrets-leaf private functions return zero live hits. No transitional/dual-mode path found in the final tree.
10 R6/R8/R9 R6 N/A — no destructive git action in the evidence beyond ordinary commits. R8 N/A — no Containerfile/OCI-label generation semantics changed (the labels.go dissolution is a straight type X = spec.X → spec.X repoint, byte-identical labels, confirmed by diff). R9 PASS — binary rebuilt in the worktree (content + calver consistent with source HEAD); no new runtime OS dependency introduced (nothing new exec'd beyond already-packaged tools).
11 R10 — disposable, fresh-rebuild, coverage PASS — cross-checked every claimed bed against its on-disk summary.yml, not the PR's word: check-exampledeploy (2026.202.0005, 6/6 steps, ok: true), check-group (2026.202.0005, 7/7), check-k3s-vm (2026.202.0005, 8/8), check-sidecar-pod (2026.202.0005, 12/12, check-live 167s ≈ the claimed "2m46.9s") — all four share the SAME run-calver (a genuine concurrent launch window), plus a targeted check-sidecar-pod re-verify at 2026.202.0048 (post the secrets.go fix, still 12/12). Step counts, durations, and ok:true all match the PR's table exactly. New functionality (shell/logs/update/remove round-trip) has bed coverage that would fail without the consolidation working (verified the actual plan-step bodies in the charly.yml diff).
12 RDD/ADE/SDD PASS — ADE: charly box validate exit 0 (enforces description:+plan:+check: on every touched candy). SDD: I independently re-ran task cue:gen on the committed tree — complete no-op, git status clean after. spec.VmResolveResult (the new wire type check_endpoint_resolve.go now uses) confirmed CUE-sourced (schema/vmclient.cue → generated in cue_types_gen.go, not hand-written). No hand-edited generated file found in the diff. RDD: the high-risk composition claim (all 3 units integrated together) is proven by the concurrent 4-bed roster, not asserted on a doc reading.
13 Concurrency mandate + anti-cheat PASS — the primary roster ran all 4 beds concurrently at the SAME calver (2026.202.0005), not serially; no "passes on idle/serial" dismissal anywhere; no unresolved concurrency-surfaced failure.
14 Hard cutover — one atomic commit PASS — lands as one squash commit; no "Phase 2/TODO" left inside this cutover's own scope; every deferred item is a named, already-tracked batch.
15 ARCHITECTURE GATE PASS — placement: CORRECT. See per-item trace below.
16 Disposable-only autonomy PASS — every destructive/rebuild action in the evidence ran against the disposable: true check-bed targets; no non-disposable resource touched.
17 Clean architecture + go gates PASS — gofmt -l . empty (both repo-root and charly/); golangci-lint run ./... = 0 issues on my own re-run for charly, sdk, and all 7 touched candy modules (plugin-pod, plugin-deploy-pod, plugin-doctor, plugin-tunnel, plugin-vm, plugin-box, plugin-migrate), each with an isolated GOLANGCI_LINT_CACHE; go vet ./... clean; go test ./... — charly ok 98.06s (fresh, -count=1) + sdk/all 7 modules GOWORK=off go build/vet/test all green.
18 CHANGELOG present PASS — CHANGELOG/2026.201.2359.md: filename matches ^\d{4}\.\d{3}\.\d{4}\.md$, H1 byte-equals # 2026.201.2359 — …, and the placeholder CalVer collides with neither an existing CHANGELOG/*.md nor a v* tag on main.

ARCHITECTURE GATE — per-item trace (staged charly/*.go non-test changes)

  • charly/host_build_pod_lifecycle_dispatch.go (NEW, 133 LOC) — consolidates the 7 deleted host_build_pod_{start,stop,shell,logs,update,service,remove}.go files into ONE. Each handler wraps ONLY dispatchLifecycleTarget/ResolveTarget (pre-existing, UNCHANGED core code — not introduced by this PR) or the arbiter-release bracket (releaseResourceClaim). Imports sdk/deploykit for deploykit.DeployKey — NOT a new pattern: deploykit.DeployKey is already imported in 10+ other charly/*.go files (config_image.go, deploy.go, update_deploy_dispatch.go, ports.go, pod_lifecycle_verb.go, …); the axis-A "kit-import files" measurement went −4 net across this whole cutover, so this file's addition is well within that net reduction, not a growth. No new alias. Boundary-law placement: M (wraps the pre-existing wire-broker/kind-decode-materialize dispatch), consistent with the file's own header, which explicitly frames it as reused existing core Mechanism, not a new claim of permanence.
  • charly/host_build_pod_{logs,remove,service,shell,start,stop,update}.go (DELETED, 233 LOC) — thick per-verb orchestration bodies, now either consolidated above (the irreducible dispatch call) or fully relocated to candy/plugin-pod (pod_cmd.go, remove_orchestration.go, remove_tunnel.go, service_resolve.go). R-item, correctly moved out.
  • charly/service.go, charly/shell.go, charly/start.go (DELETED) — same pattern: thick verb bodies (podServiceCmd/podShellCmd/podStartCmd/podStopCmd) fully relocated to the plugin; the handful of still-needed helpers (isTerminal, containerExists, resolveShellImageRef→kit.ResolveShellImageRef, exec_LookPath) were individually relocated to commands.go/host_build_hostprobe.go or replaced by the pre-existing kit.* equivalent — R5-swept, R3-deduplicated.
  • charly/tunnel_plugin.go (DELETED) — the dead core tunnel-dispatch adapter; its last caller (charly remove's tunnel-stop) moved to driving verb:tunnel directly via InvokeProvider inside candy/plugin-pod. Correct R-item removal.
  • charly/labels.go (DELETED) — 8 type X = spec.X aliases dissolved; capabilities.go/config_secret_migration.go callers repointed to spec.* directly. ZERO-ALIASES compliant.
  • charly/android_spec.go, charly/libvirt.go (DELETED) — confirmed dead (doc-comment-only; already-dead CollectLibvirtSnippets) via my own git grep, not merely asserted.
  • charly/reconcile.go/reconcile_test.go → candy/plugin-box/reconcile.go/reconcile_test.go (MOVED, R063/R092) — zero core coupling confirmed by reading the moved file's imports (sdk/deploykit, sdk/kit, sdk/spec, gopkg.in/yaml.v3 only). Correct R-item externalization.
  • charly/enc.go (narrowed, −346/+30 net) — every genuinely-portable state-probe/plan-building function moved to sdk/deploykit (enc_probe.go); the remaining registry/credential-coupled core (encExecViaPlugin, resolveEncPassphrase*) is explicitly registered FINAL/K5 inventory in the CHANGELOG, not claimed permanent.
  • charly/k3s_post.go (narrowed) — 3 pure functions moved to sdk/deploykit; the remaining LoadUnified-coupled orchestration is framed "K1-permanent per R-E2" — consistent with the already-established (memory-confirmed) K1-spike finding that LoadUnified/materialize is a genuine clause-M keystone, not a fresh unverified claim.
  • charly/local_spec.go (comment-only change) — reframes a PRIOR "TRACKED FINAL/K5 EXIT... enabler gap" claim to "STAY... K1-permanent per R-E2", but explicitly defers final permanence + any feat(gate): RED kernel-manifest floor gate — the C15 residue tracker (merges LAST) #118 floor-allowlist addition to a FLOOR-SLIM decision, not asserted here — correctly framed as an open claim, not settled permanence, per this validator's mandate.
  • charly/graph_shim.go — deletes ExpandCandy/BoxNeedsBuilder (dead thin wrappers over already-relocated deploykit.* equivalents, zero callers). Correct dead-code removal, not a placement change.
  • charly/capabilities.go, charly/config_secret_migration.go, charly/check_endpoint_resolve.go, charly/deploy.go, charly/ensure_image.go, charly/image.go, charly/gpu_shim.go, charly/android_deploy_cmd.go, charly/bundle_add_cmd.go, charly/deploy_target_external.go, charly/candy_chain.go — all mechanical repoints from a local alias/duplicate to the already-relocated spec.*/kit.*/deploykit.* symbol (no new residue, no placement change).
  • No new or grown charly/*_aliases.go — the sole pre-existing vmshared_aliases.go is untouched (disclosed honestly in the PR's own axis table as "0, unchanged, floor-candidate").

Verdict: placement: CORRECT. Every new/moved piece is either a legitimate reuse of an already-established core Mechanism (never newly claimed), or an R-item correctly externalized to its owning plugin/kit, with residue consistently framed as tracked, named migration inventory (not settled permanence) — exactly what the boundary law and this validator's "claims, never settled permanence" mandate require.

Comments considered

  • atrawog (round 1, IC_kwDOTLuyLM8AAAABK70Png) — coordination note from the sdk#82 fresh validator flagging that the secrets-leaf relocation (ProvisionPodmanSecrets/resolveSecretValue/generateAndStoreSecret) was unwired at commit 2744412. Disposition: verified-blocking at the time raised, now resolved — independently re-confirmed by me at HEAD (dd5a759, fix landed at 744ec04): zero old private secrets-helper functions remain; every call site repoints to deploykit.*. Does not block this verdict.
  • atrawog (round 2, IC_kwDOTLuyLM8AAAABK8E6cA) — sdk#82 merged (e23a373, tag v0.2026202.105, #SchemaVersion 2026.202.0105); lists 3 reconciliation items for feat(pod,box,migrate): Cutover B-1 — pod-lifecycle-dispatch + bundle-remainder + kernel-B #169 (gitlink repoint, migrations.cue re-stamp, re-verify the secrets fix). Disposition: verified-non-blocking — I independently confirmed all 3: git ls-tree HEAD sdk = e23a373... (a real commit on sdk's origin/main, tagged v0.2026202.105), go.mod requires v0.2026202.105, candy/plugin-migrate/migrations.cue's strip-candy-libvirt-field entry = "2026.202.0105" (exact match), and the secrets fix (see above).

Cross-PR interactions considered

Decision

All 19 checklist items PASS on my own independent re-derivation (build/vet/test/lint/gofmt/cue:gen/box-validate re-run myself; R5 grep self-test re-run against the full 139-file diff; every claimed bed cross-checked against its on-disk summary.yml; the sdk gitlink/tag/schema-version chain independently verified end-to-end; architecture placement traced file-by-file). No security or anti-tampering finding. Proceeding to Phase 3 (merge-time CalVer, merge, tag).

Assisted-by: Claude Code (Anthropic Claude Sonnet 4.5; analysed on a live system)

Fresh pr-validator finalization: rename the CHANGELOG placeholder to the
merge-time CalVer and rewrite its H1 to match (byte-equal). Schema version
stays at 2026.202.0105 (already finalized at the paired sdk#82 merge) — this
stamp covers only the CHANGELOG filename + the superproject release tag.

Assisted-by: Claude Code (Anthropic Claude Sonnet 4.5; analysed on a live system)
@atrawog
atrawog merged commit c78ac6a into main Jul 21, 2026
@atrawog
atrawog deleted the feat/cutover-b1 branch July 21, 2026 01:31
@atrawog

atrawog commented Jul 21, 2026

Copy link
Copy Markdown
Contributor Author

Merge outcome — ALLOWED, no denials

Assisted-by: Claude Code (Anthropic Claude Sonnet 4.5; analysed on a live system)

atrawog added a commit that referenced this pull request Jul 21, 2026
atrawog added a commit that referenced this pull request Jul 21, 2026
Merged origin/main (#169, c78ac6a) into the P16 branch and re-derived the
floor/residue classification from the actual tree per #169's fresh-validator
coordination note, never from file header comments.

Pruned 15 stale residueOwner entries for files #169 deleted/moved:
android_spec.go, labels.go, libvirt.go, reconcile.go (→ candy/plugin-box),
service.go, shell.go, start.go, tunnel_plugin.go, and the 7 superseded
host_build_pod_{logs,remove,service,shell,start,stop,update}.go files.

Classified the 1 new file host_build_pod_lifecycle_dispatch.go as P11
residue (pod-deploy-surface, consolidating the 7 files above): every
handler only CALLS a floor Mechanism (dispatchLifecycleTarget) or P15
residue (releaseResourceClaim) — the defines-vs-calls test makes this an
R-item, not a Mechanism, matching the identical precedent already set for
its 7 predecessor files despite the file's own header echoing a
STAYS-CORE-style framing (never trusted per standing policy).

Gate output (verbatim, post-reconcile): FLOOR 64 / RESIDUE 162 / 0 unowned /
0 stale floor / 0 stale residue. Still intentionally RED — do not route a
pr-validator to merge.

Assisted-by: Claude Code (Anthropic Claude Opus 4.5; analysed on a live system)
atrawog added a commit that referenced this pull request Aug 15, 2026
…d attributions

opencharly/marketplace#169 merged as f6f39bbd (tag v2026.227.1031), carrying the
regenerated helm page with the five polish fixes. The gitlink moves off
b1f685a1 onto it, which closes the deliberately-red drift gate: marketplace
drift is now clean (399 artifacts) and box validate exits 0.

Two non-blocking wording items from #169's validator, both about round
attribution in this entry's own prose:

- "that specific confusion produced blockers in three separate rounds" was
  loose. Counted precisely: TWO rounds produced blocking findings (#168 round 5
  B1, #274 round 5 B2), a third filed one under Blocking findings but softened
  it to a recommendation, and a fourth produced non-blocking notes. Defensible
  under one reading, not under the natural one.
- "#274's first validation round found five polish items" mis-attributed their
  origin: they surfaced in #168 round 6, and #274 round 5 is what ruled the
  batch routing wrong.

Neither changes a technical claim; both are the same class this cutover has
been correcting throughout — a true-enough sentence that does not survive
someone checking it.

Assisted-by: Claude Code claude-opus-5[1m] (documentation reviewed)
atrawog added a commit that referenced this pull request Aug 15, 2026
…ts 2-3 never got

Factory unit 4 — the docs catch-up. Two things land together because they
cannot honestly be split: the north-star revision, and the Skill Dispatcher rows
for capability units 2 and 3 already shipped. A row naming a skill that does not
exist is a false claim, so the rows land with the skill that makes them resolve.

PROGRAM/factory-north-star.md — revised claim by claim against the tree. A new
Trust boundaries section; units 2-3 recorded as landed; the charly mcp serve
scoping restated as a named gap rather than a prompt-level promise. The unit list
renumbers 6 -> 9: charly box load (unit 5) and charly mcp serve --disposable-only
(unit 7) were named as load-bearing in the prose but had no unit and no measured
state, so neither was anyone's work.

Three defects were caught by that audit rather than published: helm_chars: was a
typo for the real deploy field helm_charts:; the kubeconfig claim was stated as a
fixed path when it is a precedence chain; and the Trust boundaries section
asserted the forge MCP endpoint binds loopback/stdio, which is false — charly mcp
serve --listen defaults to :18765, binding every interface. A binding document
describing a security property the code lacks is worse than silence.

candy/charly-kubernetes/charly.yml — a new helm-skill: entity (the
/charly-kubernetes:helm recipe card) and its trigger. candy/agentteams and
candy/plugin-agentteams — triggers: on the two agentteams skills.
candy/charly-hooks — the charly-kubernetes marketplace description named only the
kube: verb while README named the helm words. CLAUDE.md + AGENTS.md regenerated
between the GENERATED SKILL DISPATCHER markers; the table is generated from
triggers:, never hand-edited.

The plugins gitlink advances to 664d2456, the merged head of the regeneration
chain (#168 -> #169 -> #170). A skill: source edit and its generated projection
are one cutover across two repos: landing either half alone leaves main
inconsistent, and this merge closes the last of it. The docs gitlink tracks main;
what remains deferred is the mirror content, not the pointer.

Assisted-by: Claude Code claude-opus-5[1m] (documentation reviewed)
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