Repository navigation
Description
Category
category:delivery
Type
type:fix
Remedy / files the remedy will touch
charly/go.mod's plugin-pod pin (v0.2026274.652 -> a tag carrying opencharly/plugin-pod#32, commit 1d37ee989) and the check-sidecar-pod bed step service-status-output-present (reconcile its stdout/exit assertion with the new serviceStatusVerdict semantics)
Cited design decision or org-rulebook rule (or none)
AGENTS.md R1 (a filed non-blocking finding) and R7 (the bed step is the only control asserting the verb's output)
Classification
Non-blocking — genuinely separable; left unclaimed for a later session to pick up.
Evidence (verified: commands with output, file:line, measurements)
Evidence — charly service status prints nothing on the pinned plugin-pod
Run: charly check run check-sidecar-pod, bed run 2026.331.1254, from the worktree
/home/atrawog/claude3/opencharly/.worktrees/retire-closure/charly-beds, binary
2026.331.1233 (worktree-local scripts/bootstrap-charly.sh build), tree at
charly/go.mod sdk v0.2026331.1243 / plugin-pod v0.2026274.652.
The observed verdict
$ sed -n '29p' .check/check-sidecar-pod/2026.331.1254/check-live.log
FAIL check charly service status reprints the in-container supervisorctl output — the keepalive program RUNNING — proving the K4 service move (charly service → LifecycleTarget.Shell → the pod plugin's OpShell captured exec) carries the container command's output back through the host. A swallowing capture bug yields EMPTY output and FAILS this step; the host-resolved `<engine> exec <ctr> supervisorctl status` argv is executed IN the pod plugin over the served executor, not by core. [service-status-output-present] stdout: expected to contain "keepalive" (got: )
The step declares exit_status: 0 and stdout: contains keepalive / contains RUNNING; the
failure is the STDOUT conjunct only — the command exited 0 and printed nothing. The bed's own
[check-live] step list records 27 passed, 3 failed for the phase (check-live.log last line:
30 steps: 27 passed, 3 failed, 0 skipped).
The pinned plugin's service status never prints
$ grep -n "func (c \*ServiceStatusCmd) Run" -A 8 \
/home/atrawog/go/pkg/mod/github.com/opencharly/plugin-pod/candy/[email protected]/pod_cmd.go
249:func (c *ServiceStatusCmd) Run() error {
250- argv, err := buildServiceArgv(cmdCtx, c.Box, c.Instance, "status", "")
251- if err != nil {
252- return err
253- }
254- return hostPodLifecycle("service", c.Box, c.Instance, lifecycleNode(c.Box, c.Instance), spec.PodServicePayload{Argv: argv})
255-}
hostPodLifecycle (host_seams.go:92-98) returns hostPodSeam(...)'s error and DISCARDS the
reply, so the captured table never reaches the process's stdout.
The host already hands the table back
$ grep -n "return spec.PodLifecycleReply{ExitCode: code, Output: out}, nil" \
charly/host_build_pod_lifecycle_dispatch.go
259: return spec.PodLifecycleReply{ExitCode: code, Output: out}, nil
So the host side (op service) captures supervisorctl status and returns it in the reply; the
pinned plugin consumer is what drops it.
Upstream already fixed it
plugin-pod main, candy/plugin-pod/pod_cmd.go:262-274:
func (c *ServiceStatusCmd) Run() error {
argv, meta, err := buildServiceArgvMeta(cmdCtx, c.Box, c.Instance, "status", "")
if err != nil {
return err
}
reply, err := hostPodLifecycleReply("service", c.Box, c.Instance, lifecycleNode(c.Box, c.Instance), spec.PodServicePayload{Argv: argv})
if reply.Output != "" {
// A host that captures the table leaves printing to us; one that does not (an older
// charly) printed it already and sends no output — print only what we were handed.
fmt.Print(reply.Output)
}
return serviceStatusVerdict(meta, reply, err)
}
Commit (merged 2026-11-25), opencharly/plugin-pod 1d37ee989:
$ gh api repos/opencharly/plugin-pod/commits/1d37ee989 --jq '.commit.message' | head -12
fix(service): judge the status table, not the init tool's aggregate exit code (#32)
...
`charly service status` exited non-zero on a healthy deployment whose image
declares a run-to-completion service: ...
The host reports a `service` op's exit code in the reply instead of as an error,
so start/stop/restart turn it back into one here (`serviceRunVerdict`); without
that, moving the code into the reply would make a failing restart exit 0. A reply
with no output (an older host) leaves today's behaviour untouched.
Deps: spec v0.2026329.803 (the reply's `output`), sdk v0.2026328.2210.
The tree's pins already satisfy the fix's dependency floors: spec v0.2026331.808,
sdk v0.2026331.1243 (charly/go.mod). The plugin-pod pin is the only stale leg:
$ grep -n 'plugin-pod/candy/plugin-pod' charly/go.mod
54: github.com/opencharly/plugin-pod/candy/plugin-pod v0.2026274.652
Blast radius beyond the bed
charly service status is the operator-facing verb, so on this pin it prints nothing on ANY
deployment, not just the bed — the bed step is simply the only control that asserts the table.
Mechanism
The pinned plugin-pod (v0.2026274.652) ServiceStatusCmd.Run() calls the error-only hostPodLifecycle (pod_cmd.go:249-255; host_seams.go:92-98), which discards the pod-lifecycle seam reply. Charly core already returns the captured supervisorctl table in the reply (charly/host_build_pod_lifecycle_dispatch.go:259 PodLifecycleReply{ExitCode, Output}), so the host half works and the pinned plugin consumer drops it: charly service status exits 0 printing nothing.
Missed control
No gate runs check-sidecar-pod against charly main: it was blocked at [config] by the sdk VmCrossRef regression from 2026-09-30 until opencharly/sdk#651, and no unit test asserts the CLI stdout of the service verb; the bed step is the only control on the operator-facing table.
Blast radius
Every charly service status on the pinned plugin-pod prints nothing, on any deployment (not just the bed); the check-sidecar-pod step service-status-output-present fails with exit 0 + empty stdout.
Root fix
Advance the plugin-pod pin to the tag carrying plugin-pod#32 (1d37ee989), which prints reply.Output and judges the table via serviceStatusVerdict, then re-run check-sidecar-pod and reconcile that bed step's assertion with the new verdict (it now fails a row that is not RUNNING and not a declared run-to-completion service).
Spike (its result, or none with the reason)
none — the mechanism is a code-path read on both the pinned module and upstream main plus the live bed verdict (exit 0, empty stdout); no high-risk assumption is unproven, and the pin advance's own proof is the re-run of check-sidecar-pod.
Agent: retire-closure · Claude Code session 71fef01d-a7c7-4bed-8517-016cc2df4432
Assisted-by: Claude Code deepseek-v4.1-flash:cloud (analysed on a live system)
Activity