Repository navigation
feat(pod,deploy): DEPLOY-wave pod-lifecycle CLI port to candy/plugin-pod - #165
Conversation
…3 dedup (DEPLOY wave prep) Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…LOY wave prep) quadlet.go's remaining functions (quadletDir/systemdUserDir/quadletFilename*/ serviceName*/quadletExists*) were pure path/naming logic with callers split between W1 pod-deploy scope (moving to candy/plugin-deploy-pod) and P13-kernel files staying core (bundle_add_cmd.go, bundle_cmd.go, bundle_from_box_cmd.go, preempt.go). Relocated to sdk/kit (mirroring the existing ContainerName/ sidecar-naming precedent) so both sides call it directly with zero duplication and zero P13-kernel logic changes — every call site repointed to kit.*. Also fixes a pre-existing gap in volume_cp_tags_cmd_test.go left over from the prior sidecar-naming R3 dedup: it still referenced the bare (deleted) SidecarContainerNameInstance instead of kit.SidecarContainerNameInstance, caught by `go vet ./...` in workspace mode. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…LOY wave prep) stopPodService/startPodService (start.go) had two consumer families: the resource arbiter's preemption stop/restore path (preempt.go, P13-kernel — out of this wave's scope) and the pod-deploy lifecycle (moving to candy/plugin-deploy-pod). Relocated to sdk/deploykit.StopPodService / .StartPodService, mirroring the container_resolve.go / box_engine.go precedent already established for this exact split-consumer shape. preempt.go and arbiter_host.go's reference comment are the only touches outside W1/W2 scope, and both are import-qualifier-only — zero arbiter logic changed. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…tripURLScheme (R5, DEPLOY wave prep) kit.StripURLScheme was already relocated from charly/remote_image.go in an earlier K4 wave (per its own doc comment), but the core duplicate definition and its bare (unqualified) call sites were never swept — an incomplete cutover (R5). Found while surveying start.go's RestartCmd dependencies ahead of the CLI-struct port. Deleted the duplicate, repointed every call site (build.go, commands.go, config_image.go, ensure_image.go, image.go, shell.go, start.go) to kit.StripURLScheme, moved its test to sdk/kit. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…y/plugin-pod (DEPLOY wave)
New candy candy/plugin-pod (compiled-in, option B per orchestrator ruling —
the CLI sibling of candy/plugin-deploy-pod, mirroring the plugin-vm/
plugin-deploy-vm split; deploy:pod stays out-of-process, untouched): hosts
command:start/stop/restart as independent top-level words (mirrors
candy/plugin-authoring's multi-command-per-candy pattern), dispatched IN-PROC
via Invoke(OpRun) (mirrors candy/plugin-bundle's command.go/host_seams.go
template exactly).
- RestartCmd is NOT registry-bound (no ResolveTarget/plugin-loader need) —
its body moved wholesale, calling sdk/deploykit.RestartPodService directly.
- StartCmd/StopCmd ARE registry-bound (ResolveTarget, the plugin loader — a
core Mechanism a plugin cannot import or hold), so they forward their
authored flags via hostPodSeam("pod-start"/"pod-stop") to
host_build_pod_start.go/host_build_pod_stop.go, which reconstruct the
original core orchestration as podStartCmd/podStopCmd (start.go) and run
their Run() bodies VERBATIM — mirroring host_build_deploy_add.go exactly.
start.go's resolution kernel it left behind (buildStartArgs/
resolveEntrypointFromMeta/stopTunnelForImage) plus pod_lifecycle_{resolve,
dispatch,verb}.go/agent_forward.go/oci_step_emit.go/config_write_host.go
(1,130 non-test LOC total) are registered TRACKED P13-KERNEL EXIT migration
inventory — they need core-only types/the provider registry a plugin cannot
hold, so they move through the ONE venue-scoped-executor-session seam
alongside bundle's own resolver kernel when that wave builds it, never a
permanent core residence (pod_lifecycle_resolve.go's header updated
accordingly; the prior "STAYS HOST-SIDE" framing corrected to name the exit).
Deleted the 3 obsoleted plugin_command_{start,stop,restart}.go dedicated-
provider shims. provider_command_test.go updated: start/stop/restart removed
from TestCommandProviders_DeployLifecycleCommands (the old dedicated-provider
assertion) and covered by a new TestCommandCompileIn_PodInProc (the dynamic
in-proc bridge assertion), mirroring TestCommandCompileIn_StatusInProc.
Live-verified end-to-end on the built binary (not just unit tests): `charly
restart <box>` and `charly stop <box>` against a nonexistent container both
correctly reach the real podman/plugin-deploy-pod error path with the exact
expected exit codes — proof the full plugin-pod → HostBuild seam →
LifecycleTarget → plugin-deploy-pod chain dispatches correctly.
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
LogsCmd is registry-bound (dispatchLifecycleTarget/LifecycleTarget — core
Mechanisms), so it forwards via hostPodSeam("pod-logs") to new
host_build_pod_logs.go, which reconstructs the original core orchestration as
podLogsCmd (commands.go) and runs its Run() body VERBATIM — same shape as
start/stop. Deleted the obsoleted plugin_command_logs.go shim; updated
provider_command_test.go the same way as the previous checkpoint (removed
from the old dedicated-provider assertion, added to
TestCommandCompileIn_PodInProc).
Live-verified: `charly logs nonexistent-test-box` reaches the real
journalctl/engine-logs resolution path (exit 0, "No entries" — no
registry/seam error).
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
RemoveCmd is deeply core-type-coupled (BoxMetadata/ExtractMetadata/sidecar
resolution/deploykit.CleanDeployEntry) rather than registry-bound, but the
seam shape is identical: forwards via hostPodSeam("pod-remove") to new
host_build_pod_remove.go, which reconstructs the original core orchestration
as podRemoveCmd (commands.go) and runs its Run() body VERBATIM. Deleted the
obsoleted plugin_command_remove.go shim; updated provider_command_test.go
the same way as prior checkpoints.
Live-verified: `charly remove nonexistent-test-box` correctly executed the
real quadlet-mode teardown path (file removal + systemd daemon-reload),
proving the seam reaches the full core orchestration.
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
ShellCmd is registry-bound (dispatchLifecycleTarget/LifecycleTarget.Attach —
core Mechanisms), same shape as start/stop/logs — forwards via
hostPodSeam("pod-shell") to new host_build_pod_shell.go, which reconstructs
the original core orchestration as podShellCmd (shell.go) and runs its
Run() body VERBATIM. Deleted the obsoleted plugin_command_shell.go shim;
updated provider_command_test.go the same way as prior checkpoints.
Live-verified: `charly shell nonexistent-test-box -c "echo hi"` correctly
reached device auto-detection + full image resolution, erroring with the
expected "image not found in local storage" — proof the seam reaches the
real LifecycleTarget.Attach pipeline.
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
ServiceCmd's four leaves (start/stop/status/restart) all share the identical
resolveServiceInit + execInitCommand host-side body (registry-bound via
dispatchLifecycleTarget, plus core-type-coupled resolution: BoxMetadata/
ExtractMetadata/resolveInitDefFromMeta) — unified behind ONE
HostBuild("pod-service") seam with an Operation discriminator rather than
four separate seams, avoiding duplicating the shared resolution four times.
host_build_pod_service.go reconstructs podServiceCmd (service.go) and runs
its Run() body VERBATIM. Deleted the obsoleted plugin_command_service.go
shim; updated provider_command_test.go the same way as prior checkpoints.
Live-verified: both `charly service status` and `charly service start
<box> <service>` correctly reach the shared resolveServiceInit path,
erroring with the expected "container ... is not running" for both
operations — proof the Operation discriminator threads correctly.
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…DEPLOY wave) VolumeCmd (list/reset) and CpCmd needed NO core-only type or registry access — only kit.ResolveBoxName/deploykit.ResolveBoxEngineForDeploy/ deploykit.ResolveContainer/deploykit.ResolveSidecarContainer, all already SDK-portable. Moved wholesale into candy/plugin-pod with zero HostBuild seam, repointing the bare core helpers to their SDK equivalents. R1 finding (not yet actioned — flagging for its own thematic batch, spans the CHECK/android waves' files, out of DEPLOY's scope): container.go's resolveContainer/resolveSidecarContainer and commands.go's resolveBoxName are themselves incomplete-cutover duplicates of deploykit.ResolveContainer/ResolveSidecarContainer/kit.ResolveBoxName — sdk/deploykit/container_resolve.go's own doc comment falsely claims "charly core's remaining callers... now import deploykit directly," but check_members.go, check_endpoint_resolve.go, cmd.go, check_venue.go, check_cmd.go, host_build_check_run.go, pod_lifecycle_resolve.go, and android_deploy_cmd.go all still call the bare core versions. Left untouched here since these callers are outside this wave's scope; the bare helpers stay in core for them. Deleted the obsoleted plugin_command_cp.go / plugin_command_volume.go shims; updated provider_command_test.go the same way as prior checkpoints. Live-verified: charly volume list nonexistent-test-box and charly cp nonexistent-test-box :/etc/hostname /tmp/x both correctly reached their real resolution logic (no seam needed). Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…loses out CLI port)
BoxConfigCmd's 6 subcommands (Setup/Status/Mount/Unmount/Passwd/Remove,
config_image.go) are deeply core-type-coupled (BundleConfig/ResolvedSidecar/
enc*/deploykit.CleanDeployEntry) and, critically, BoxConfigSetupCmd is ALSO
constructed directly by its exact unchanged name from bundle_from_box_cmd.go
and host_build_deploy_from_box.go (both P13-kernel, out of this wave's
scope) — so unlike every other command ported this wave, the core structs
could not be renamed or moved. config_image.go is untouched by this commit.
New ConfigCmd grammar in candy/plugin-pod mirrors BoxConfigCmd's shape
exactly, including the default:"withargs" Kong mechanism that lets bare
`charly config <box>` route to Setup. Each of the 6 leaves forwards via its
own HostBuild("pod-config-<leaf>") seam (host_build_pod_config.go) to a
reconstructed, UNCHANGED core struct, run VERBATIM. Six new CUE-sourced wire
types since each subcommand's body is distinct (no shared resolution to
bundle behind one discriminator, unlike service).
Deleted the obsoleted plugin_command_config.go shim; updated
provider_command_test.go the same way as prior checkpoints — this is also
the FINAL update to that test for this wave, since every pod-lifecycle leaf
command now lives in candy/plugin-pod.
Live-verified both paths: `charly config <box>` (no subcommand, exercising
default:"withargs") correctly reached device auto-detection + full image
resolution; `charly config status <box>` correctly reached encStatus and
printed its real output. This closes out the DEPLOY wave's CLI-struct port
entirely — all 10 pod-lifecycle commands (start/stop/restart/logs/remove/
shell/service/volume/cp/config) now live in candy/plugin-pod.
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
The build-context check: step now verifies the candy's required files actually exist (go.mod, plugin.go, command.go, pod_cmd.go) rather than an unconditional pass — a genuine deterministic check per the ADE mandate. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…wave) quadlet_pod.go's 4 functions were pure kit.PodName/SidecarContainerName formatting with no core-only dependency, even though both callers (config_image.go's BoxConfigSetupCmd, commands.go's podRemoveCmd) stay core — moved to sdk/kit, repointed both callers to the kit-qualified names. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
….ResolveAgentForwarding (R1) kit.ResolveAgentForwarding already existed (an earlier K4-lane-B wave), but the core duplicate charly/agent_forward.go was never deleted and its 3 call sites in pod_lifecycle_resolve.go still used the bare name. Deleted the duplicate + its test (the one test it carried that kit's copy lacked, TestResolveGPGAgentForward_ContainerHome, folded into sdk/kit), repointed all 3 call sites to kit.ResolveAgentForwarding. This also resolves part of team-lead's W1 pure-logic-moves priority ruling: agent_forward.go's body was already 100% SDK-portable (only kit. ResolvedRuntime/spec.BundleNode as inputs) despite its only caller (pod_lifecycle_resolve.go) staying core-side — the earlier wave had already done the real work, this just completes the sweep. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…t (R1) sdk/deploykit/provides.go already carried FilterOwnProvides/AcceptedEnvSet/ ResolveTemplate/ValidateProvidesTemplate/PortMapFromMappings with full test coverage (an earlier wave), but the core duplicate charly/provides.go was never deleted. filterOwnProvides/validateProvidesTemplate/substPortTemplate/ stripPortTemplate had zero live callers (dead); AcceptedEnvSet/ resolveTemplate/PortMapFromMappings were still called bare by config_image.go and pod_lifecycle_resolve.go — repointed all three to deploykit.*. Also repointed the local MCPProvideEntry alias (provides.go's own `type MCPProvideEntry = spec.MCPProvideEntry`) to spec.MCPProvideEntry directly at its 4 remaining call sites. Trimmed provides_test.go to match: removed the tests for deleted functions (all already covered by sdk/deploykit/provides_test.go), kept everything unrelated to provides.go (port allocation, pod-aware provides tests). This continues team-lead's W1 pure-logic-moves priority ruling: like agent_forward.go, an earlier wave had already done the real relocation work — this completes the sweep of the leftover core duplicate. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
… rulings Adds "TRACKED <WAVE> EXIT" header notes (never "STAYS CORE") to every file whose stay-set/reassignment verdict was confirmed this audit, replacing ambiguous framing with the specific wave that owns each exit: - bundle_members.go: split-inventory — fold/validate are loader-phase (FINAL/K5), bringUp/tearDown consumed by P13-KERNEL + the CHECK-wave bed runner. - local_spec.go: FINAL/K5 (calls LoadUnified directly — an enabler gap, not a permanence claim). - ephemeral_lifecycle.go, layer_artifacts.go: P13-KERNEL (consumers are deploy_add_cmd_*.go / deploy_del_cmd*.go / deploy_add_cmd.go). - layer_secrets.go, enc.go, secrets.go: FINAL/K5 (provider-registry-bound — ResolveCredential/DefaultCredentialStore/providerRegistry.resolve — confirmed via call-graph, not assumed; the InvokeProvider rewrite is registered inventory, not attempted without its own review). - data.go, network.go: REASSIGNED to P13-KERNEL (their only callers, BoxConfigSetupCmd/pod_lifecycle_resolve.go, are P13-KERNEL inventory). - shell_profile.go: P13-KERNEL (confirmed-dead functions verified by grep against production + test callers; sdk/kit/profile.go already carries the live equivalents consumed by kit.WalkPlans; the two still-live functions' callers are P13-KERNEL). Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
…able remainder)
UpdateCmd (commands.go's Update half + update_deploy_dispatch.go's
dispatchByDeployTarget half, the last W2 remainder team-lead flagged as
possibly free) is the same shape as start/stop/logs: a thin ~7-field Kong
struct with no external constructors, backed by a registry-bound kernel
(resolveTreeRoot/loadDeployPlugins/ResolveTarget — the project loader +
provider registry). Ported using the established pattern: UpdateCmd's
grammar moved to candy/plugin-pod (command:update), forwarding via
hostPodSeam("pod-update") to new host_build_pod_update.go, which
reconstructs the renamed core body (podUpdateCmd) and runs it VERBATIM.
Deleted the obsoleted plugin_command_update.go shim; updated
provider_command_test.go the same way as every prior checkpoint — this is
the true final update to that test, closing out both the DEPLOY wave's
CLI-struct port AND the W2 bundle-cone's movable remainder.
Live-verified: `charly update nonexistent-test-box` correctly reached
resolveTreeRoot/resolveUpdateDeployNode with the real "no deploy named"
error.
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system)
# Conflicts: # sdk
pr-validator — CHANGES REQUESTED ❌Change class: code (charly core Go + a new compiled-in candy Head verified at Checklist
The blocking findingNo
This is a runtime-tier code cutover (a new compiled-in candy + 19 deleted/8 new/dozens of modified Fix: add Non-blocking note (not this cutover's fault — logged, not fixed here)
ARCHITECTURE GATE — placement reviewplacement: CORRECT Per-item trace (every
The P13-KERNEL/FINAL-K5 "stays core" set is consistent with this program's prior orchestrator-verified precedent (the deploy-dispatch kernel behind Verification (independently re-run, not taken on the author's word)Comments consideredNone — the PR carries no comments ( Cross-PR interactions considered
DecisionFAIL — item 18 (CHANGELOG present). Every other checked item passes, including an independent re-run of the full gate battery and byte-level cross-check of all 4 claimed disposable-bed runs against durable on-disk state. The single blocking gap is mechanical and narrow: this runtime-tier cutover stages no Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system) |
…ator fix) pr-validator round-1 flagged the missing CHANGELOG/<placeholder>.md — narrates the pod-lifecycle CLI port, the reassignment ledger, the estimator RCA, both LOC axes, and the R10 bed verdicts already covered in the PR body. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
|
Fixed: added Fix commit: c3ceb55 (pushed fast-forward, no force-push). Ready for round-2 validation. |
pr-validator (round 2) — CHANGES REQUESTED ❌Change class: code (charly core Go + new compiled-in candy Head verified via Round-1 finding: RESOLVEDRound 1 (comment) FAILED solely on checklist item 18 (no CHANGELOG staged). The fix commit
Item 18 → PASS. Round 1's other 17 items: independently re-verified where in scope, adopted by reference where notFast gates re-run at The full battery ( NEW finding this round — R1/R5 stale-reference sweep (blocking)Independently re-ran the R5 grep self-test on every identifier this PR deletes (
I traced this: Sibling-set (same claim, same-key sweep required by R1/R5):
Contrast with the two genuinely non-blocking instances (confirmed unchanged from round 1's classification, still correct): Fix required: rewrite the four stale Comments considered
Cross-PR interactions considered
DecisionFAIL — new R1/R5 finding (stale Assisted-by: Claude Code (Anthropic Claude Sonnet 5; analysed on a live system) |
… site (#165 validator round-2 fix) pr-validator round 2 flagged 4 comments claiming Secret=<name>,type=env,target=<var> emission lives at "quadlet.go:100-106"/"quadlet.go:writeSecretsSection" — false even before this PR's deletions (the old charly/quadlet.go never held that logic). Independently re-verified (never trust a validator's relay either): the validator's own suggested fix (ProvisionPodmanSecrets in charly/secrets.go) is ALSO wrong — that function only provisions the podman secret STORE entry, it never emits the Secret= directive. The real emission is sdk/deploykit/quadlet.go's emitContainerSection (the for-loop over cfg.Secrets, line 174), pre-existing since commit 94956cd. No function named writeSecretsSection exists anywhere in the tree. Fixed all 4: charly/config_image.go:524,1664 and charly/secrets_test.go:93-94,514 now point at sdk/deploykit/quadlet.go's emitContainerSection. Verified: R5 grep self-test (git grep -n 'quadlet\.go' -- '*.go') now returns only the 4 corrected, true claims; gofmt clean; go build/vet clean; the two directly affected tests (TestQuadletSecretEnvDirectives, TestMergedSecretsIncludeCredentialBacked) pass. Comment-only change, no behavior touched. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
|
Fixed round-2 finding: the 4 stale One correction to the validator's own trace: it suggested the real implementation is All 4 sites ( Verified: Fix commit: 6892cc5 (pushed fast-forward, no force-push). Ready for round-3. |
pr-validator (round 3) — APPROVED ✅Change class: code (charly core Go + compiled-in candy Head verified via Round-2 finding: RESOLVED — delta verified
All 4 corrected pointers now read "the
R5-style sweep, re-run independently on the final tree: Exactly the 4 named locations survive, all now TRUE claims (verified against the actual Fast gates re-run at
|
…dator round-3) Rename the placeholder CHANGELOG/2026.201.1200.md to the merge-time CalVer 2026.201.1228, generated at the moment of pr-validator round-3 approval, per the git-workflow CalVer-at-merge rule. Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
|
Gated-action outcome (status POST): Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated) |
|
Merge + tag outcome — ALLOWED, zero denials:
This cutover is landed. Thank you for 3 rounds of real fixes — the CHANGELOG gap and the stale Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated) |
…rve (#1144) `charly task sync` in this repo advanced exactly three of its six pins, and they are the three that block the umbrella's distro pins: box/cachyos 4907fc2d8f -> c7fe3d9110 (distro-cachyos origin/main) box/fedora a152cafb22 -> 9211accabd (distro-fedora origin/main) box/omarchy d1040b2097 -> 8bc25c2a1b (distro-omarchy origin/main) Each new pin is the tip its remote serves, which is what the pin contract's `upstream:main` intent names — no hand-pin, and no checkout was committed. Why it matters beyond this repo: the umbrella's `distro-cachyos`, `distro-fedora` and `distro-omarchy` pins are derived-from this repo, so they are blocked-by `charly:box/<distro>` until these gitlinks move. With them advanced, the next umbrella wave can collect the three, and `box/cachyos` at c7fe3d9110 carries the openwebui 0.13.3 pin chain (pod-openwebui v2026.317.2036, the bed assertion, and the plugin round-trip bed) that landed through distro-cachyos#164/#165/#166. The gate this repo declares for a pin change, `charly task pin-current`, now reads: currency: 0 of 6 pin(s) NOT current [6 cur]; producer-first legs: none — every pin is at the ref its intent names Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)
Summary
DEPLOY wave (W1+W2) of the core-minimization program: ports the 11 pod-lifecycle CLI
commands (
start/stop/restart/logs/remove/shell/service/volume/cp/config/update) out of hardcoded core Kong structs into a new compiled-in plugincandy,
candy/plugin-pod, using three seam shapes proven live on the built binary:VolumeCmd/CpCmd(+ their List/Reset leaves) carryno host/registry/loader coupling and moved wholesale.
start/stop/logs/remove/shell/updateeachkeep a thin Kong grammar in the candy that forwards authored flags via
sdk.Executor.HostBuild(ctx, "pod-<word>", reqJSON)to a host-registered builder(
charly/host_build_pod_*.go) that reconstructs the original core orchestrationstruct (now renamed
pod<Word>Cmd, header-noted "TRACKED P13-KERNEL EXIT") and runsits unchanged
.Run()body — needed because that body holds the provider registryand/or project loader, which a plugin cannot hold.
service/configcollapse their former4-/6-way dedicated-CommandProvider shims into one Kong leaf group each, dispatching
through a single
HostBuildseam keyed by anoperation!:discriminator on theCUE-sourced wire request.
Companion sdk-repo leg (opencharly/sdk#78, MERGED —
b0627c4640233a1c09a83a09380bdf3f552dfbfa,tagged
v0.2026201.1135) added the 13 CUE-sourced wire-type pairs these seams carry,2 genuine relocations completing prior waves' incomplete cutovers
(
sdk/kit/quadlet_paths.go,sdk/deploykit/pod_service.go), and an R1 archaeologysweep (1 missing test folded in, 2 header comments corrected after a validator-round-1
FAIL surfaced 2 more identical premature-claim instances beyond the one flagged — all
4 fixed same-commit).
This charly-repo leg additionally deletes 11 obsoleted dedicated-CommandProvider shim
files (
plugin_command_*.go) now superseded by the new candy's single provider, andcompletes an R1 dedup sweep started during implementation:
charly/provides.go(duplicate of
sdk/deploykit/provides.go),charly/agent_forward.go(+ its test,duplicate of
sdk/kit/agent_forward.go), andcharly/quadlet.go/quadlet_pod.go(+ tests, relocated to
sdk/kit/quadlet_paths.go) are deleted with every callerrepointed to the sdk equivalent.
Both LOC axes (vs
origin/mainpost-external-merge tip)charly/core LOC (non-test.go)charly/core file count (non-test.go)host_build_pod_*.go×8)candy/plugin-podborn19
charly/files deleted total (16 non-test + 3 test:agent_forward_test.go,quadlet_test.go,quadlet_pod_test.go); 8 newcharly/files (allhost_build_pod_*.goHostBuild seams).P13-KERNEL / FINAL-K5 reassignment ledger
Files the wave's original scope estimate counted as movable, ruled by the orchestrator
to STAY core (each header-noted with its tracked-exit wave, not silently kept):
P13-KERNEL (needs the provider registry / project loader / live
*Configgraph —exits only once P13-KERNEL's own wave builds the seam that lets a plugin reach those):
bundle_members.go(bringUp/tearDown half),commands.go,data.go,ephemeral_lifecycle.go,layer_artifacts.go,network.go,pod_lifecycle_resolve.go,service.go,shell.go,shell_profile.go,start.go(the retained
pod<Word>Cmd.Run()bodies +buildStartArgs/resolveEntrypointFromMeta/stopTunnelForImage),update_deploy_dispatch.go.FINAL/K5 (credential-sensitive
providerRegistry/connectPluginByWorddirectcoupling — deliberately not attempted without its own dedicated review):
bundle_members.go(fold/validate half),enc.go,layer_secrets.go,local_spec.go,secrets.go.Estimator-RCA (declared mid-wave by the orchestrator)
Root cause: the wave's initial movable-surface estimate classified files by
caller-location proximity (which core file happened to reference the helper) rather
than by verifying the actual mechanism coupling. That over-counted several files as
portable when they in fact hold direct
providerRegistry/LoadUnified/live*Config-graph dependencies only core can hold today.Remedy applied going forward: every classification decision in this wave was
re-verified by concrete mechanism check (grep-confirmed registry calls, loader calls,
external-constructor references) before being accepted as portable — never assumed
from caller location alone. This methodology correction was itself first caught and
fixed on
agent_forward.go(initially believed core-bound, re-verified as a purehost-probe with zero registry/loader coupling, and moved) and then applied rigorously
to every subsequent file, producing the P13-KERNEL/FINAL-K5 ledger above.
Tracked-exit header inventory
Every file kept in core carries a header note naming its tracked-exit wave (never a
silent "stays core" with no exit path):
bundle_members.go,commands.go,data.go,ephemeral_lifecycle.go,layer_artifacts.go,network.go,pod_lifecycle_resolve.go,service.go,shell.go,shell_profile.go,start.go,update_deploy_dispatch.go.bundle_members.go,enc.go,layer_secrets.go,local_spec.go,secrets.go.Verification
go build ./...(charly module, via workspace) — clean.go vet ./...(charly module) — clean.go test ./...(charly module) — clean, 93.9s.GOWORK=off go build ./...+GOWORK=off go test ./...(sdk module, standalone) —clean, all packages pass.
gofmt -l— clean acrosscharly/,sdk/,candy/plugin-pod/.golangci-lint run ./...— 0 issues (charly module, sdkkit/deploykit/spec,candy/plugin-pod).task cue:gen— verified true no-op (zero diff on a fresh run acrosssdk/spec+every plugin's
params/cue_types_gen.go).charly box validate(built from this branch) — exit 0.before the sdk merge + external-main-advance rebase (a rebuild+
go testcovers thedelta since — see below):
check-exampledeploy: PASS (steps=6), 139s, exit 0check-charly-vm: PASS (steps=8), 336s, exit 0 — the worktree-builtopencharly-git(carrying all 11 ported commands) pacman-installed fresh in thedisposable guest
check-sidecar-pod: PASS (steps=12), 437s, exit 0check-group: PASS, 408s, exit 0Delta since the bed roster: merged
origin/main's external advance(2 commits, touching
box/*gitlinks,charly/go.mod,charly/main_repo_test.go,charly/refs.go,charly/refs_fresh_test.go) + repointed thesdkgitlink andcharly/go.mod'sgithub.com/opencharly/sdkrequire to the merged sdk#78(
v0.2026201.1135) + 2 header-comment fixes from the sdk validator round. Overlapbetween the external merge's touched files and this wave's W1/W2 file set is EMPTY,
so per the risk-proportional delta re-gate a rebuild + full test/lint/cue:gen/validate
battery (all re-run and pasted above, all green) covers the delta — no bed re-run
required.
Test plan
go build ./.../go vet ./.../go test ./...clean (charly module)GOWORK=off go build ./.../go test ./...clean (sdk module)gofmt -lclean across all three touched treesgolangci-lint runcleantask cue:genreproducibility verified (zero drift)charly box validateexit 0battery per the empty-overlap risk-proportional re-gate
Companion sdk PR: opencharly/sdk#78 (MERGED →
v0.2026201.1135).Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)
https://claude.ai/code/session_018QNXbstqVZTfyD4w9TZmjF