Skip to content

feat(pod,deploy): DEPLOY-wave pod-lifecycle CLI port to candy/plugin-pod - #165

Merged
atrawog merged 22 commits into
mainfrom
feat/deploy-wave
Jul 20, 2026
Merged

atrawog merged 22 commits into
mainfrom
feat/deploy-wave

Conversation

@atrawog

@atrawog atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

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 plugin
candy, candy/plugin-pod, using three seam shapes proven live on the built binary:

  • Zero-seam pure-logic move — VolumeCmd/CpCmd (+ their List/Reset leaves) carry
    no host/registry/loader coupling and moved wholesale.
  • Per-command HostBuild seam — start/stop/logs/remove/shell/update each
    keep 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 orchestration
    struct (now renamed pod<Word>Cmd, header-noted "TRACKED P13-KERNEL EXIT") and runs
    its unchanged .Run() body — needed because that body holds the provider registry
    and/or project loader, which a plugin cannot hold.
  • Operation-discriminated shared seam — service/config collapse their former
    4-/6-way dedicated-CommandProvider shims into one Kong leaf group each, dispatching
    through a single HostBuild seam keyed by an operation!: discriminator on the
    CUE-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 archaeology
sweep (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, and
completes 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), and charly/quadlet.go/quadlet_pod.go
(+ tests, relocated to sdk/kit/quadlet_paths.go) are deleted with every caller
repointed to the sdk equivalent.

Both LOC axes (vs origin/main post-external-merge tip)

Axis Metric main this PR Δ
A charly/ core LOC (non-test .go) 46,840 46,202 −638
B charly/ core file count (non-test .go) 253 245 −8 (−16 deleted, +8 born: host_build_pod_*.go ×8)
— candy/plugin-pod born 0 709 LOC / 9 files new candy

19 charly/ files deleted total (16 non-test + 3 test: agent_forward_test.go,
quadlet_test.go, quadlet_pod_test.go); 8 new charly/ files (all
host_build_pod_*.go HostBuild 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 *Config graph —
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/connectPluginByWord direct
coupling — 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 pure
host-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):

  • P13-KERNEL: 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.
  • FINAL/K5: 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 across charly/, sdk/, candy/plugin-pod/.
  • golangci-lint run ./... — 0 issues (charly module, sdk kit/deploykit/spec,
    candy/plugin-pod).
  • task cue:gen — verified true no-op (zero diff on a fresh run across sdk/spec +
    every plugin's params/cue_types_gen.go).
  • charly box validate (built from this branch) — exit 0.
  • Live R10 bed roster (all 4 PASS, zero warnings), run against the assembled worktree
    before the sdk merge + external-main-advance rebase (a rebuild+go test covers the
    delta since — see below):
    • check-exampledeploy: PASS (steps=6), 139s, exit 0
    • check-charly-vm: PASS (steps=8), 336s, exit 0 — the worktree-built
      opencharly-git (carrying all 11 ported commands) pacman-installed fresh in the
      disposable guest
    • check-sidecar-pod: PASS (steps=12), 437s, exit 0
    • check-group: PASS, 408s, exit 0

Delta 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 the sdk gitlink and
charly/go.mod's github.com/opencharly/sdk require to the merged sdk#78
(v0.2026201.1135) + 2 header-comment fixes from the sdk validator round. Overlap
between 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 -l clean across all three touched trees
  • golangci-lint run clean
  • task cue:gen reproducibility verified (zero drift)
  • charly box validate exit 0
  • Live R10 bed roster (4 beds) — all PASS, zero warnings
  • Post-bed delta (external main merge + sdk repoint) re-verified via full rebuild
    battery 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

atrawog added 19 commits July 20, 2026 10:33
…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)
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: code (charly core Go + a new compiled-in candy candy/plugin-pod) — runtime tier, gated by go test/golangci-lint/gofmt/task cue:gen + the disposable-bed R10 roster.

Head verified at 8e22973374a4bd14b249b72bdda6f59ef950b57d; diffed against the true origin/main tip (8f10543, confirmed by git fetch origin main) — 76 files, +1552/−1676.

Checklist

# Item Verdict
0 security & anti-tampering (T1–T4) PASS — no exfiltration/scope-mismatch/weakened-gate/supply-chain finding; no attempt to steer this validator
1 description complete PASS — summary, seam-shape taxonomy, LOC-axes table, P13-KERNEL/FINAL-K5 ledger, estimator-RCA, verification section with pasted evidence all present
2 change-class gate matches evidence PASS — re-ran independently (see Verification below); matches PR-claimed battery
3 attribution tier justified PASS — fully tested and validated is earned: live R10 bed roster (4 beds, all ok:true, matching durable .check/*/2026.201.1109/summary.yml state exactly) + the empty-overlap delta re-gate (rebuild/test/lint/cue:gen/validate, independently re-run here, all green)
4 R0 skills honored PASS — git-workflow, plugin, go skills spot-checked; the HostBuild seam shape, per-plugin CUE-schema waiver for input-less command plugins, and CalVer/tag mechanics all match
5 R1 RCA / zero warnings PASS on this PR's own surface — go build/vet/test/gofmt/golangci-lint(0 issues)/task cue:gen(no drift)/charly box validate(exit 0) all independently re-run, zero warnings. See non-blocking note on a pre-existing, unrelated stale comment discovered incidentally (candy/marimo/charly.yml:52)
6 R2 no pre-existing/out-of-scope split PASS — the P13-KERNEL/FINAL-K5 ledger names concrete tracked-exit waves (not vague "follow-up"); spot-verified start.go/host_build_pod_start.go/host_build_pod_config.go headers cite actual call-chain evidence (ResolveTarget/registry/LoadUnified coupling), not bare "stays core" claims
7 R3 no duplication PASS — agent_forward.go, provides.go, quadlet*.go, the 10 plugin_command_*.go shims, classification.go deleted; grep-confirmed callers repointed to kit.ResolveAgentForwarding/kit.StripURLScheme/deploykit.PodAwareEnvProvides/deploykit.RemoveBySource
8 R4 no ad-hoc workaround PASS — no sleep/retry/magic-number/ad-hoc podman found in the diff
9 R5 hard cutover + grep self-test PASS on this PR's own deletions — git grep on every deleted file path (quadlet.go, quadlet_pod.go, provides.go, agent_forward.go, classification.go, every plugin_command_*.go) returns nothing outside CHANGELOG/. One pre-existing, unrelated stale reference found (see non-blocking note)
10 R6/R8/R9 artifact + binary integrity PASS — check-charly-vm's bed installed the worktree-built opencharly-git package fresh in-guest (R9); no destructive git action without a status check evidenced
11 R10 disposable-only, fresh-rebuild, zero-warning, coverage PASS — cross-checked all 4 claimed bed summaries on disk: .check/{check-exampledeploy,check-charly-vm,check-sidecar-pod,check-group}/2026.201.1109/summary.yml all exist, ok: true, step counts/durations byte-match the PR's table (139s/336s/437s/408s), same run-calver 2026.201.1109 across all four (coherent concurrent launch window, one binary) — no re-run needed, evidence is not merely plausible but verified on disk. candy/plugin-pod's ADE plan: carries ≥1 deterministic check: step
12 RDD/ADE/SDD PASS — the 13 pod HostBuild wire-request/reply pairs are CUE-sourced in sdk/schema/seam.cue (#PodStartRequest, #PodConfigWriteRequest, …) and generated into spec/cue_types_gen.go; task cue:gen re-run here produced zero diff. plugin-pod is a command:* class plugin with pass-through CLI args (no input_def) — legitimately schema-less per the plugin skill's input-less waiver, not a mandate violation
13 concurrency mandate + anti-cheat PASS — check-group's bed exercises rebuild-under-load (rebuild-members-down/re-bring-up-members); no idle/serial-only claim substituted for it
14 hard cutover — one atomic commit PASS-with-note — 20 commits on feat/deploy-wave (squash will fold to one on main); no Phase-2/TODO found in the diff
15 ARCHITECTURE GATE PASS — see placement verdict + per-item trace below
16 disposable-only autonomy PASS — all bed activity confirmed against disposable: true beds only
17 clean architecture + go gates PASS — gofmt -l clean, golangci-lint run (isolated GOLANGCI_LINT_CACHE) 0 issues, go vet clean, go test ./charly/... ./candy/plugin-pod/... green (100.5s) — all independently re-run, not taken on the author's word
18 CHANGELOG present FAIL — see below

The blocking finding

No CHANGELOG/<placeholder>.md is staged by this PR. Verified two ways:

  • git diff origin/main...HEAD --stat (76 files) contains zero CHANGELOG/*.md entries. (The two changelog files that appear when diffing against a stale local main — 2026.201.1002.md, 2026.201.1131.md — are pre-existing, already merged to origin/main via ac8f146/8f10543, pulled in by this branch's Merge remote-tracking branch 'origin/main' commit; they are not this cutover's own history entry.)
  • The PR body's "Verification" / "Test plan" sections never mention a CHANGELOG entry; gh pr view --json body greps zero hits for "changelog".

This is a runtime-tier code cutover (a new compiled-in candy + 19 deleted/8 new/dozens of modified charly/ files) — CLAUDE.md "Where things are documented" and the git-workflow skill (B1 step 1: "write the cutover narrative to CHANGELOG/<placeholder>.md") make this mandatory, not optional. Checklist item 18 is explicit: "Absent where required FAILS." The burden is on the PR to supply it; it does not.

Fix: add CHANGELOG/<any-valid-placeholder-CalVer>.md narrating this cutover (the seam taxonomy, the P13-KERNEL/FINAL-K5 reassignment ledger, the sdk#78 companion), push as a fix commit (fast-forward, no force-push), and the status will reset for re-validation. This validator finalizes the real merge-time CalVer for both the tag and this file at merge — the author only needs a valid placeholder.

Non-blocking note (not this cutover's fault — logged, not fixed here)

candy/marimo/charly.yml:52 carries a comment claiming behavior "flows through the podAwareEnvProvides rewriting in charly/provides.go" — that file is deleted by this PR (superseded by sdk/deploykit.PodAwareEnvProvides). Investigated: this comment was already stale before this PR — charly/provides.go on origin/main never actually contained a podAwareEnvProvides function (verified: its pre-PR function list is filterOwnProvides/AcceptedEnvSet/resolveTemplate/substPortTemplate/validateProvidesTemplate/stripPortTemplate/PortMapFromMappings). The file this PR touches is unrelated to candy/marimo (git diff on that path is empty), so this is genuinely separable pre-existing drift, not something this cutover's own R10 needs to prove around. Route to the next docs/lessons thematic batch (per the standing #3 batch already tracked).

ARCHITECTURE GATE — placement review

placement: CORRECT

Per-item trace (every charly/*.go change, grouped by identical disposition — no charly/*_aliases.go file touched anywhere in the diff):

  • NEW host_build_pod_{config,logs,remove,service,shell,start,stop,update}.go (×8): each registers one more generic-action-noun kind (pod-start, pod-config-setup, …) against the PRE-EXISTING F10 HostBuild/registerHostBuilder reverse-channel mechanism — not a new mechanism, not a provider-word leak (TestNoSinglePluginAPISurface passed). Boundary-law clause: M (uses the existing wire-broker mechanism) dispatching to R-item bodies (the untouched, pre-existing podStartCmd/BoxConfigSetupCmd/… struct .Run() methods) reconstructed verbatim. No alias, no new kit import. No *Legacy* smell.
  • DELETED plugin_command_{config,cp,logs,remove,restart,service,shell,start,stop,update,volume}.go (×11, formerly dedicated per-command CommandProvider builtin shims): superseded outright by candy/plugin-pod's single provider — the capability left core entirely (R-item correctly relocated). No alias, no kit import, no smell.
  • DELETED agent_forward.go+test, provides.go, quadlet.go, quadlet_pod.go+test, quadlet_test.go, classification.go (R3 dedup + dead code): grep-confirmed every caller repoints to kit.ResolveAgentForwarding / kit.StripURLScheme / deploykit.PodAwareEnvProvides / deploykit.RemoveBySource directly — no alias left behind, no smell.
  • MODIFIED core files carrying a "TRACKED P13-KERNEL EXIT" / "FINAL/K5" header (bundle_members.go, commands.go, config_image.go, data.go, enc.go, ephemeral_lifecycle.go, layer_artifacts.go, layer_secrets.go, local_spec.go, network.go, pod_lifecycle_resolve.go, preempt.go, secrets.go, service.go, shell.go, shell_profile.go, start.go, update_deploy_dispatch.go, volume_cp_tags_cmd.go): spot-verified start.go + host_build_pod_config.go — headers name actual call-chain evidence (ResolveTarget/LifecycleTarget/provider registry/LoadUnified-graph coupling a plugin cannot hold today), not a bare "stays core" assertion, satisfying the boundary-law's evidence-first enforcement bar. Named exit wave (P13-KERNEL / FINAL-K5) present on every one. No alias. One new sdk/kit import appears only in volume_cp_tags_cmd_test.go (test-only), paired with this same PR's StripURLScheme dedup — production-code kit-import count is net negative (5 removed, 0 added) — satisfies the residual-call-site exception; no unconditional new production import.
  • Thin call-site repoints (arbiter_host.go, build.go, bundle_add_cmd.go, bundle_cmd.go, bundle_from_box_cmd.go, ensure_image.go, image.go, remote_image.go+test, run_subcommand.go, substrate_lifecycle_grpc.go, plugins_generated.go, provider_command_test.go, start_test.go, provides_test.go): 1–2 line edits repointing to relocated sdk functions, or plugins_generated.go's mechanical compiled_plugins: registration for the new candy. No alias, no kit import, no placement concern.

The P13-KERNEL/FINAL-K5 "stays core" set is consistent with this program's prior orchestrator-verified precedent (the deploy-dispatch kernel behind HostBuild("deploy-add") was independently confirmed to stay core in an earlier wave) and is NOT a bare stays-core header — verified, not rubber-stamped.

Verification (independently re-run, not taken on the author's word)

go vet ./charly/... ./candy/plugin-pod/...          → clean
go test ./charly/... ./candy/plugin-pod/...          → ok (100.547s), ok (cached)
gofmt -l charly/ candy/plugin-pod/ sdk/              → empty
GOLANGCI_LINT_CACHE=<isolated> golangci-lint run     → 0 issues
task cue:gen                                          → git status clean (no drift)
charly box validate (freshly built binary)            → exit 0
sdk gitlink (b0627c4) == charly/go.mod require (v0.2026201.1135) == sdk#78 merged tag  → match
.check/{check-exampledeploy,check-charly-vm,check-sidecar-pod,check-group}/2026.201.1109/summary.yml
  → all ok:true, step counts/durations match the PR body table exactly

Comments considered

None — the PR carries no comments (gh pr view --json comments empty).

Cross-PR interactions considered

opencharly/charly#118 ("RED kernel-manifest floor gate — the C15 residue tracker, merges LAST") — verified-non-blocking, coordination comment posted (see #118). Its residueOwner/kernelFloor maps in charly/kernel_manifest_floor_test.go hard-code the charly/ file set; this PR deletes quadlet.go/quadlet_pod.go/provides.go/agent_forward.go/classification.go (named in #118's P11/P15 residue rows) and adds 8 new host_build_pod_*.go files #118 does not yet classify. #118 is explicitly held back ("do NOT route a pr-validator to merge it now") and its own design absorbs exactly this kind of drift as cutovers land — so this does not block #165, but #118's author needs to reconcile the maps before #118 itself can be validated. No other open PRs in charly, sdk, plugins, or any box/<distro> repo.

Decision

FAIL — 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 CHANGELOG/<placeholder>.md. Add one, push as a fast-forward fix commit, and this validator (or the next fresh one) re-runs.

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)
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Fixed: added CHANGELOG/2026.201.1200.md (placeholder CalVer) narrating the cutover — pod-lifecycle CLI port to candy/plugin-pod, the 3 seam shapes, the 4 dedup-archaeology finds, the P13-KERNEL/FINAL-K5 reassignment ledger + estimator RCA, both LOC axes (46,840→46,202 core LOC, 138→135 kit-mechanism import references), the sdk#78 producer reference (v0.2026201.1135), and the 4-bed R10 verdicts. Trailer: fully tested and validated.

Fix commit: c3ceb55 (pushed fast-forward, no force-push). Ready for round-2 validation.

@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator (round 2) — CHANGES REQUESTED ❌

Change class: code (charly core Go + new compiled-in candy candy/plugin-pod) — runtime tier. Round 2 scope: verify the round-1→round-2 delta (8e22973..c3ceb55, exactly one file: CHANGELOG/2026.201.1200.md, +88/-0, confirmed via git diff --stat) plus an independent adversarial re-derivation of R1/R5 on the full final tree — never a rubber stamp of round 1's other findings.

Head verified via git ls-remote origin refs/heads/feat/deploy-wave → c3ceb557c6a6d1638b8c5a653076b11daaed2c8d.

Round-1 finding: RESOLVED

Round 1 (comment) FAILED solely on checklist item 18 (no CHANGELOG staged). The fix commit c3ceb55 adds CHANGELOG/2026.201.1200.md only. Independently verified:

  • Filename matches ^\d{4}\.\d{3}\.\d{4}\.md$; H1 # 2026.201.1200 — DEPLOY wave: pod-lifecycle CLI port to candy/plugin-pod byte-equals # <filename> — <title>.
  • 2026.201.1200 is unused on origin/main (git ls-tree origin/main -- CHANGELOG/2026.201.1200.md empty; git ls-remote --tags has no v2026.201.1200).
  • Narrative cross-checked against my OWN independent measurement, not the author's claim: find charly -name '*.go' ! -name '*_test.go' | xargs cat | wc -l → 46202, matching the claimed axis-A end value exactly. The "138→135 kit-mechanism import references" axis: my own count (git grep -l for sdk/(kit|deploykit|buildkit|loaderkit|vmshared) imports across top-level non-test charly/*.go, origin/main vs HEAD) gives 139→136 — off by 1 at both ends from the claimed 138/135, almost certainly a file-selection/methodology variance (e.g. one borderline file), but the delta magnitude (−3) and direction match exactly. Non-blocking variance, noted for precision.
  • Trailer *Assisted-by: Claude Code (Anthropic Claude Sonnet 5; fully tested and validated)* present and correctly formed.
  • sdk gitlink b0627c4640233a1c09a83a09380bdf3f552dfbfa == charly/go.mod require v0.2026201.1135 == sdk#78 merged tag — independently re-verified via git ls-tree HEAD sdk + grep on go.mod.

Item 18 → PASS.

Round 1's other 17 items: independently re-verified where in scope, adopted by reference where not

Fast gates re-run at c3ceb55 in the author worktree (/home/atrawog/Atrapub/o/charly-wt-deploy, confirmed clean + at head):

go build ./charly/... ./candy/plugin-pod/... ./sdk/...   → clean
go vet   ./charly/... ./candy/plugin-pod/...              → clean
gofmt -l charly/ candy/plugin-pod/ CHANGELOG/              → empty
task build:binary                                          → clean, charly version 2026.201.1209
./bin/charly box validate                                   → exit 0

The full battery (go test, golangci-lint, task cue:gen, the 4-bed disposable R10 roster) stands unchanged from round 1's independent re-run — the round-1→round-2 delta is docs-only (CHANGELOG addition, zero .go/.yml/.cue touched), so per the git-workflow skill's risk-proportional delta re-gate (empty file-overlap ⇒ rebuild + fast gates suffice) it is not re-run here. Byte-cross-checked the 4 bed summaries on disk myself (not merely trusting round 1's citation): .check/{check-exampledeploy,check-charly-vm,check-sidecar-pod,check-group}/2026.201.1109/summary.yml all exist, ok: true, total_seconds 139/336/437/408 — matches round 1's table exactly.

NEW finding this round — R1/R5 stale-reference sweep (blocking)

Independently re-ran the R5 grep self-test on every identifier this PR deletes (quadlet.go, quadlet_pod.go, provides.go, agent_forward.go, classification.go, all 11 plugin_command_*.go shims) against the current final tree, not taking round 1's "returns nothing outside CHANGELOG/" claim on faith. It does not hold:

charly/config_image.go — modified BY THIS PR (54 lines changed, part of the P13-KERNEL reassignment set) — carries two present-tense false claims naming the file this same PR deletes:

  • config_image.go:523: // Secret=<name>,type=env,target=<var> emission at quadlet.go:100-106
  • config_image.go:1663: // emission at quadlet.go:100-106.

I traced this: charly/quadlet.go on origin/main was only 76 lines and never contained Secret= emission logic at all — the real implementation is ProvisionPodmanSecrets in charly/secrets.go (confirmed: git grep -n ProvisionPodmanSecrets origin/main -- 'charly/*.go'). So the quadlet.go:100-106 pointer was already wrong before this PR touched anything, and this PR's own deletion of quadlet.go now makes it doubly false (the file it names doesn't even exist). Per CLAUDE.md R1 ("Documentation divergence is an incident … the fix for the changed surface … is BLOCKING in the current cutover") this is not deferrable: config_image.go is the changed surface here (it's in this PR's own diff), and the claim is wrong on that surface.

Sibling-set (same claim, same-key sweep required by R1/R5):

  • charly/secrets_test.go:93-94: …credential-backed secrets flow through the existing Secret=<name>,type=env,... emission at quadlet.go:100-106 with zero changes to quadlet.go itself.
  • charly/secrets_test.go:514: …the cfg.Secret slice that reaches quadlet.go:writeSecretsSection, it MUST merge…

secrets_test.go is not itself touched by this PR's diff, but it carries the identical false claim as the changed surface — R1's claim-keyed sweep ("sweeps EVERY other doc/skill/comment carrying the same false/outdated/misleading claim — not just the file where it surfaced") makes fixing it part of this same cutover, not a deferred batch item.

Contrast with the two genuinely non-blocking instances (confirmed unchanged from round 1's classification, still correct): candy/marimo/charly.yml:52 (references deleted provides.go, but that file is untouched by this PR's diff, and the claim was already stale pre-PR per round 1's own archaeology) and candy/plugin-box/validate_rules.go:854 (says "former charly provides.go" — already correctly past-tensed, and also untouched by this PR). Both remain non-blocking, routed to the tracked docs/lessons batch (task #3). The quadlet.go:100-106/writeSecretsSection instances are different in kind: one of the two carrier files (config_image.go) is this PR's own diff, which is what makes it blocking rather than separable.

Fix required: rewrite the four stale quadlet.go pointers (config_image.go:523, config_image.go:1663, secrets_test.go:93-94, secrets_test.go:514) to name the actual current implementation (ProvisionPodmanSecrets in charly/secrets.go; writeSecretsSection's current home if it still exists under that name, else describe the current mechanism), push as a fast-forward fix commit. This is a comment-only fix — no behavior change, no new bed run required; the R5 grep self-test (git grep 'quadlet.go:100-106' / git grep 'writeSecretsSection' returning nothing outside CHANGELOG/) plus gofmt/go build/go vet is sufficient re-verification for the next round.

Comments considered

  • Round-1 FAIL comment (2026-07-20T12:05:53Z) — verified-blocking at the time; resolved by c3ceb55, independently confirmed above.
  • Round-1 author fix-notice (2026-07-20T12:09:52Z) — verified-non-blocking — its factual claims (file added, trailer, content) independently confirmed true.

Cross-PR interactions considered

opencharly/charly#118 — unchanged since round 1's coordination comment (still accurate: this round's only change is the CHANGELOG addition, which does not touch any file #118's residue/floor maps track). verified-non-blocking, no new comment needed. No other open PRs in charly, sdk, or plugins (gh pr list --state open swept just now).

Decision

FAIL — new R1/R5 finding (stale quadlet.go references on this PR's own changed surface + its sibling-set). Round 1's blocking item (CHANGELOG) is resolved. This is a narrow, mechanical, comment-only fix; once pushed, the next validator can clear it via the R5 grep self-test + fast gates without re-running the bed roster.

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)
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Fixed round-2 finding: the 4 stale quadlet.go:100-106/quadlet.go:writeSecretsSection pointers.

One correction to the validator's own trace: it suggested the real implementation is ProvisionPodmanSecrets in charly/secrets.go — I independently re-verified (never trust a validator's relay either) and that's also wrong: ProvisionPodmanSecrets only provisions the podman secret store entry, it never emits the Secret=<name>,type=env,target=<var> quadlet directive. The real emission is sdk/deploykit/quadlet.go's emitContainerSection (the for _, s := range cfg.Secrets loop, currently line 174) — pre-existing since commit 94956cd, confirming the pointer was stale even before this PR. No function named writeSecretsSection exists anywhere in the tree.

All 4 sites (charly/config_image.go:524,1664, charly/secrets_test.go:93-94,514) now point at sdk/deploykit/quadlet.go's emitContainerSection.

Verified: git grep -n 'quadlet\.go' -- '*.go' now returns only the 4 corrected true claims; gofmt -l clean; go build/go vet clean; the two directly affected tests (TestQuadletSecretEnvDirectives, TestMergedSecretsIncludeCredentialBacked) pass. Comment-only, no behavior touched.

Fix commit: 6892cc5 (pushed fast-forward, no force-push). Ready for round-3.

@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator (round 3) — APPROVED ✅

Change class: code (charly core Go + compiled-in candy candy/plugin-pod) — runtime tier. Round-3 scope: verify the round-2→round-3 delta (c3ceb55..6892cc5), independently re-confirm the corrected pointer is TRUE (never trust the chain, including the prior round's own suggested-then-corrected fix location), re-run the R5 sweep, run the fast gates, and do one fresh-eyes spot-check neither prior round examined.

Head verified via git ls-remote origin refs/heads/feat/deploy-wave → 6892cc568d746fbbb53959734585abe30564a379. Worktree /home/atrawog/Atrapub/o/charly-wt-deploy confirmed clean and at this head.

Round-2 finding: RESOLVED — delta verified

git diff c3ceb55..6892cc5 --stat → exactly 2 files, comment-only, 10 insertions/8 deletions:

  • charly/config_image.go (lines 523, 1663 region)
  • charly/secrets_test.go (lines 93-94, 514 region)

All 4 corrected pointers now read "the Secret=<name>,type=env,target=<var> emission in sdk/deploykit/quadlet.go's emitContainerSection" (or equivalent phrasing). Independently re-verified the anchor is TRUE — I did not trust the orchestrator's or the author's relay of this claim:

  • Read sdk/deploykit/quadlet.go myself: emitContainerSection is defined at line 135; the Secret= directive emission loop (for _, s := range cfg.Secrets { … }) is at lines 173-177, with the type=env Fprintf at line 174 exactly as the author's fix-commit message states.
  • writeSecretsSection does not exist anywhere in the tree (confirmed by grep below) — the author's correction of round-2's own suggested pointer (ProvisionPodmanSecrets in charly/secrets.go, which only provisions the podman secret store entry and never emits the quadlet Secret= directive) is itself accurate.

R5-style sweep, re-run independently on the final tree:

git grep -n 'quadlet\.go' -- '*.go' ':!CHANGELOG/*'
  → charly/config_image.go:524   (true — points at sdk/deploykit/quadlet.go's emitContainerSection)
  → charly/config_image.go:1664  (true — same)
  → charly/secrets_test.go:93    (true — same)
  → charly/secrets_test.go:514   (true — same)
git grep -n 'writeSecretsSection' -- . ':!CHANGELOG/*'
  → (empty)

Exactly the 4 named locations survive, all now TRUE claims (verified against the actual emitContainerSection body, not merely "no longer says quadlet.go:100-106"). No stale reference remains. Item 5/9 (R1 RCA / R5 hard cutover) → PASS, including this round's own re-derivation.

Fast gates re-run at 6892cc5 (author worktree, confirmed clean + at head)

go build ./charly/... ./candy/plugin-pod/... ./sdk/...            → clean
go vet   ./charly/... ./candy/plugin-pod/...                       → clean
gofmt -l charly/ candy/plugin-pod/ CHANGELOG/ sdk/deploykit/quadlet.go   → empty
go test ./charly/... -run 'TestQuadletSecretEnvDirectives|TestMergedSecretsIncludeCredentialBacked' -v
  → PASS: TestQuadletSecretEnvDirectives
  → PASS: TestMergedSecretsIncludeCredentialBacked
task build:binary                                                   → clean, charly version 2026.201.1222
./bin/charly box validate                                            → exit 0

Full battery + 4-bed disposable roster stand from rounds 1-2, not re-run this round — stated explicitly and deliberately: both the round-1→2 delta (CHANGELOG addition) and the round-2→3 delta (this round's 2-file comment-only fix) have empty overlap with any runtime-exercised path — no .go behavior line, no .yml/.cue schema, no candy/box config changed by either delta; only comments and one markdown file. Per the git-workflow skill's risk-proportional delta re-gate (empty overlap ⇒ rebuild + fast gates suffice), and per R10's own bed-selection rule (run only the beds that exercise the change), the 4 disposable-bed summaries byte-verified in round 1 (.check/{check-exampledeploy,check-charly-vm,check-sidecar-pod,check-group}/2026.201.1109/summary.yml, all ok:true, matching durable on-disk state) remain the valid R10 evidence for this PR's runtime surface. I independently re-confirmed those 4 summary files still exist on disk unchanged.

Fresh-eyes spot-check (bounded, ~15 min) — the operation-discriminated shared seam round-trip

Neither round 1 nor round 2 traced a full seam round-trip for the operation-discriminated class (round 1 spot-checked start.go + host_build_pod_config.go only for their "stays core" HEADER evidence, not the wiring itself). I picked pod-service (the charly service {start,stop,restart,status} collapse) and traced it end-to-end myself:

  1. candy/plugin-pod/pod_cmd.go:159-206 — ServiceCmd (Kong grammar, 4 leaves: Restart/Start/Status/Stop). Each leaf's .Run() calls hostPodSeam("pod-service", spec.PodServiceRequest{Operation: "<op>", Box, Service, Instance}) — the Operation field is the discriminator, distinct per leaf ("status"/"start"/"stop"/"restart").
  2. candy/plugin-pod/host_seams.go:43 — hostPodSeam is confirmed the single bridge (R3: ONE helper, not one per command) forwarding to the host via the F10 HostBuild reverse-channel mechanism.
  3. charly/host_build_pod_service.go — hostBuildPodService receives the typed spec.PodServiceRequest, reconstructs podServiceCmd{Operation, Box, Service, Instance} (the pre-existing core struct, unchanged), and calls cmd.Run() verbatim. Registered via registerHostBuilder(podServiceBuilderKind, …).
  4. charly/service.go:12-25 — podServiceCmd is confirmed to exist as "the host-side reconstruction of the former ServiceCmd's four leaves," with Run() dispatching on Operation.

Round-trip is correct and matches the PR's claimed seam taxonomy exactly: M (the generic HostBuild/registerHostBuilder wire-broker mechanism, pre-existing, not new) dispatching to an R-item body (podServiceCmd.Run(), the untouched core orchestration) reconstructed from a CUE-sourced wire type. No alias, no new kit import, no drift between the candy-side request construction and the host-side reconstruction (all 4 fields round-trip: Operation, Box, Service, Instance). No new finding — confirms the architecture-gate verdict from round 1 holds for this seam class too.

Round 1 + Round 2 findings and checklist: adopted by reference, deltas independently re-verified above

Both prior rounds' full 18-item checklists, comment-intake, and cross-PR sweep are adopted by reference (both are on the PR record and were independently derived by fresh validator contexts, not rubber-stamped by each other) — this round's own independent work is the delta verification, fast-gate re-run, and spot-check above, all of which confirm rather than contradict them. Checklist item 18 (CHANGELOG) — confirmed still present, unchanged since round 2: CHANGELOG/2026.201.1200.md, H1 byte-matches, placeholder CalVer still unused on origin/main.

Comments considered

  • Round-1 FAIL comment — verified-non-blocking (resolved by c3ceb55, re-confirmed by round 2).
  • Round-1 author fix-notice — verified-non-blocking (content independently confirmed true by round 2).
  • Round-2 FAIL comment (stale quadlet.go pointers) — verified-blocking at the time; resolved by 6892cc5, independently re-verified above (this round re-derived the anchor from the actual emitContainerSection source, not merely trusting the fix-commit message).
  • Round-2 author fix-notice (correcting round 2's own suggested fix location to sdk/deploykit/quadlet.go's emitContainerSection) — verified-blocking claim converted to verified-non-blocking — independently confirmed true (see anchor verification above): ProvisionPodmanSecrets only provisions the store entry, emitContainerSection is the actual Secret= directive emitter, writeSecretsSection does not exist.

Cross-PR interactions considered

opencharly/charly#118 — unchanged since round 1/2 (re-swept gh pr list --state open across charly, sdk, plugins: only #165 and #118 open, same as both prior rounds). verified-non-blocking, no new coordination comment needed. No other open PRs anywhere in the org's opencharly repos.

Decision

PASS. All 18 checklist items pass: items 1-17 adopted from rounds 1-2's independent verification (unaffected by either fix delta), item 18 (CHANGELOG) confirmed present and correct since round 2, and this round's own independent work — the delta verification, the R5 sweep, the fast-gate re-run, and the fresh operation-discriminated-seam spot-check — surfaces no new finding. Proceeding to CalVer finalization + merge + tag.

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

…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)
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Gated-action outcome (status POST): charly/pr-validator = success posted on final head 2ecf4f1731de69c684248825c32ab4a2c9af2a57 (post-CalVer-finalization commit) — ALLOWED, zero denials. CalVer finalized: CHANGELOG/2026.201.1200.md renamed to CHANGELOG/2026.201.1228.md with H1 rewritten to match (# 2026.201.1228 — DEPLOY wave: pod-lifecycle CLI port to candy/plugin-pod), pushed fast-forward as 2ecf4f1 (no force-push). No schema-version files (sdk/schema/version.cue, candy/plugin-migrate/migrations.cue) touched by this PR, so no schema bump was needed. Proceeding to merge.

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

@atrawog
atrawog merged commit cc74415 into main Jul 20, 2026
@atrawog
atrawog deleted the feat/deploy-wave branch July 20, 2026 12:29
@atrawog

atrawog commented Jul 20, 2026

Copy link
Copy Markdown
Contributor Author

Merge + tag outcome — ALLOWED, zero denials:

  • gh pr merge 165 --squash --delete-branch → MERGED, squash commit cc74415af7eb770246f12260a20e9a58eb09a72f on main, feat/deploy-wave deleted.
  • sdk gitlink on merged main = b0627c4640233a1c09a83a09380bdf3f552dfbfa == charly/go.mod require v0.2026201.1135 == sdk#78's merged tag — confirmed unchanged through all 3 rounds.
  • Tag v2026.201.1228 created annotated on the merged HEAD and pushed: git cat-file -t v2026.201.1228 → tag; git ls-remote --tags origin v2026.201.1228 → non-empty.
  • Local main worktree fast-forwarded b4c6c69..cc74415 cleanly.

This cutover is landed. Thank you for 3 rounds of real fixes — the CHANGELOG gap and the stale quadlet.go pointers were genuine findings, correctly resolved each round.

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

github-actions Bot pushed a commit that referenced this pull request Nov 14, 2026
…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)
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