Skip to content

fix: the agentteams manager/worker entrypoint execs a candy ref, not supervisord - #445

Merged
github-actions[bot] merged 2 commits into
mainfrom
fix/supervisord-init-warnings
Aug 29, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
fix/supervisord-init-warnings

Conversation

@atrawog

@atrawog atrawog commented Aug 29, 2026

Copy link
Copy Markdown
Contributor

Summary

charly box validate emitted 10 warnings of this shape:

warning: box "agentteams" resolves init "supervisord", which depends on the "supervisord" candy,
but no candy of that name is in this project's scanned set — nothing was injected, so the image
will declare init "supervisord" with no supervisord binary and fail at start.

Four are charly's own boxes. Two of those turned out to be a live defect, not a missing
reference.

The defect

agentteams-manager and agentteams-worker both had:

entrypoint:
    - '@github.com/opencharly/layer-supervisord:v2026.239.1300'
    - -n
    - -c
    - /etc/supervisord.conf

The first element of an OCI entrypoint is the binary to exec. A candy ref is not a binary, so
these two images would try to exec a file literally named
@github.com/opencharly/layer-supervisord:v2026.239.1300 and die at start. The same slip is why
the warning fired at all: the ref sat in entrypoint: rather than candy:, so layer-supervisord
was never composed either. One mistake, two failures.

The box's own comment states the intent — "the box bakes the supervisord init as its OCI
entrypoint"
— so both halves are fixed: the entrypoint execs supervisord, and the ref moves to
candy: where it composes.

agentteams and check-boxload-app are the plain case (init resolves, candy never referenced);
each gets the ref in its candy: list, which is the remedy the warning names and the form
sibling boxes already use.

How tested

Two-way on this tree, final committed state, clean worktree:

$ git stash && charly box validate | grep -cE '^warning: box .* resolves init'
10
$ git stash pop && charly box validate | grep -cE '^warning: box .* resolves init'
6
$ charly box validate ; echo $?      # exit 0 in both states
0
$ go test -count=1 ./...
ok  	github.com/opencharly/charly/charly                     97.435s
ok  	github.com/opencharly/charly/charly/internal/pluginsgen  27.483s
exit=0

All four of charly's own warning boxes are cleared.

The remaining 6 — in flight, not deferred

They are boxes in the box/fedora submodule (check-pod, composition-app,
composition-source, selftest-image, selftest-layer, tutorial-shell), fixed in
distro-fedora#42 by the same remedy. They clear here when that merges and the gitlink
advances. This is a live sibling PR, not a routed batch.

Rulebook compliance

  • R1 — the warnings were not silenced; two of them turned out to name a real
    start-time failure, which is what the warning exists to catch, and the RCA is the fix.
  • R4 — no workaround: no warning is allowlisted or filtered, and no init is changed to dodge
    the dependency.
  • Rule 5 / Pin discipline — layer-supervisord:v2026.239.1300 is the merged tag these boxes
    already referenced; no new version is introduced.
  • R7 / R10 — measured on the final committed tree, both states pasted, full suite green.
  • Rule 1 — charly's own charly.yml only; no submodule edited.

Change classification

  • Class: two malformed entrypoints corrected; one candy ref added to four boxes.
  • Verification gate: charly box validate warning count two-way (10 → 6, exit 0 both ways)
    plus go test -count=1 ./... on the final committed tree.
  • Attribution tier: analysed on a live system — the warning path and the validation gate ran
    live with retained output, and the entrypoint defect is proven from the file itself. No
    disposable bed run is included for the two agentteams boxes (their beds need the AgentTeams
    stack), so I am not claiming fully tested and validated.

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

…supervisord

charly box validate emitted 10 "resolves init supervisord ... no candy of that name
is in this project's scanned set" warnings. Four are charly's own boxes, and two of
those turned out to be a live defect rather than a missing reference.

agentteams-manager and agentteams-worker had this:

    entrypoint:
        - '@github.com/opencharly/layer-supervisord:v2026.239.1300'
        - -n
        - -c
        - /etc/supervisord.conf

The first element of an OCI entrypoint is the binary to exec. A candy ref is not a
binary, so these two images would try to exec a file literally named
"@github.com/opencharly/layer-supervisord:v2026.239.1300" and die at start. The same
mistake also meant layer-supervisord was never composed - the ref was sitting in
entrypoint:, not candy: - which is exactly what the warning was reporting.

The box's own comment says "the box bakes the supervisord init as its OCI
entrypoint", so the intent is clear. Fixed both halves: entrypoint execs
`supervisord`, and the candy ref moves to candy: where it composes.

agentteams and check-boxload-app were the plain case - init supervisord resolved,
candy never referenced - so each gets the ref in its candy: list, the remedy the
warning names and the form sibling boxes already use.

Measured on this tree:

    main:   10 "resolves init" warnings
    branch:  6
    charly box validate: exit 0 both ways
    go test -count=1 ./...: exit 0

The remaining 6 are boxes in box/fedora (check-pod, composition-app,
composition-source, selftest-image, selftest-layer, tutorial-shell). They are fixed
in distro-fedora#42 and clear here when that merges and the gitlink advances - not
deferred, already in flight.
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: 254e426b0010 (branch: fix/agentteams-entrypoint-candy-ref)

Security screen: PASS — no scope mismatch (all 4 box changes accounted for in the body), no secrets/exfiltration, no weakened guardrails, no supply-chain change (pinned layer-supervisord:v2026.239.1300 already referenced by these boxes).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body fully accounts for the diff (entrypoint fix on agentteams-manager/agentteams-worker, candy ref added to 4 boxes). How-tested names the exact gate (charly box validate two-way 10→6, exit 0, plus go test), pasted output is internally consistent. Attribution tier analysed on a live system is honest and not inflated (no disposable bed run claimed; body explicitly declines fully tested and validated). Assisted-by: footer present in correct form.
  • R1/R2 — RCA is the fix (entrypoint first element is the exec'd binary; candy ref is not a binary). The 6 remaining warnings are in the box/fedora submodule (separate repo, not touched by this PR) and are routed to a named sibling PR distro-fedora#42 — a named task, not a vague deferral. No forbidden framing.
  • R3/R4/R5 — No duplication, no ad-hoc workaround, no transitional/legacy paths; one atomic commit.
  • R10 — charly box validate is the correct gate for a charly.yml config change; all 4 of charly's own warning boxes cleared; output internally consistent (10−4=6 remaining, named boxes match).
  • B16 placement — config change confined to charly.yml box definitions; correct layer. No core/sdk/candy placement issue.
  • B13/B14/B17/B18 — N/A (no candy/schema/cue changes, no concurrency failures, no autonomous destroy, no Go code).

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) August 29, 2026 08:58
@github-actions

Copy link
Copy Markdown
Contributor

Review — PASS

Head SHA: e512659169ec (branch: fix/supervisord-init-warnings)

Security screen: PASS — no scope mismatch (all 4 box changes accounted for in the body), no secrets/exfiltration, no weakened guardrails, no supply-chain change (pinned layer-supervisord:v2026.239.1300 already referenced by these boxes).

Checklist: All applicable rules PASS or NA.

  • A1/A2/A3 — Body fully accounts for the diff: entrypoint fix on agentteams-manager/agentteams-worker (candy ref → supervisord binary, ref moved to candy:), candy ref added to agentteams and check-boxload-app. How-tested names the exact gate (charly box validate two-way 10→6, exit 0, plus go test), pasted output internally consistent (10−4=6 remaining, named boxes match). Attribution tier analysed on a live system is honest — body explicitly declines fully tested and validated since no disposable bed ran for the agentteams boxes. Assisted-by: footer present in correct form.
  • R1/R2 — RCA is the fix (first element of an OCI entrypoint is the exec'd binary; a candy ref is not a binary). The 6 remaining warnings live in the box/fedora submodule (separate repo, untouched here) and are routed to a named sibling PR distro-fedora#42 — a named task, not a vague deferral. No forbidden framing.
  • R3/R4/R5 — No duplication, no ad-hoc workaround, no transitional/legacy paths; one atomic fix commit (the second commit is a main merge, not a separate change).
  • R10 — charly box validate is the correct gate for a charly.yml config change; all 4 of charly's own warning boxes cleared; output internally consistent.
  • B16 placement — config change confined to charly.yml box definitions; correct layer. No core/sdk/candy placement issue.
  • B13/B14/B17/B18 — N/A (no candy/schema/cue changes, no concurrency failures, no autonomous destroy, no Go code).

Note (non-blocking): the git stash/git stash pop two-way methodology is only coherent if run before committing; the body's "final committed state, clean worktree" phrasing is ambiguous on this point. The core claim (10→6, exit 0) is arithmetically consistent and the defect/fix is proven directly from the diff, so this does not rise to a block.

Verdict: PASS


ollama/deepseek-v4-flash — pi-review-action.

View action run

@github-actions
github-actions Bot merged commit c148454 into main Aug 29, 2026
3 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Aug 29, 2026
@aitrawog
aitrawog deleted the fix/supervisord-init-warnings branch September 25, 2026 19:06
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