Skip to content

feat(spec): add opt-in entrypoint/cmd OCI packaging fields to #Box/#ResolvedBox/#ResolvedBoxView - #23

Merged
atrawog merged 3 commits into
mainfrom
feat/box-oci-entrypoint
Aug 12, 2026
Merged

atrawog merged 3 commits into
mainfrom
feat/box-oci-entrypoint

Conversation

@atrawog

@atrawog atrawog commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Summary of changes

Adds the opt-in entrypoint:/cmd: OCI packaging surface to the box wire types — the first repo of the three-repo fix (spec → sdk → main, B6 producer→consumer order) for the AgentTeams manager container crash-loop.

Root cause being fixed: the AgentTeams controller spawns child manager/worker containers directly from their baked OCI config (dockerCreatePayload sends no Cmd/Entrypoint), with no charly deploy in the loop to inject the init command — and charly images baked none. The spawned manager therefore ran bare bash (the base image's default /usr/bin/bash), exited 0, and restarted forever. Two secondary defects compounded it: $(hostname) evaluated empty inside the pod (no hostname(1) binary), and the container's default hex-ID hostname was not resolvable on the charly network.

Concrete edits (all 5 files accounted for):

  • schema/box.cue (#Box): opt-in entrypoint?/cmd? — empty by default (a normal charly image bakes no command; the deploy-time init is injected instead). cmd: [] clears a base image's inherited default command; a declared entrypoint with no cmd is auto-cleared at emission so it runs bare.
  • schema/resolvedbox.cue (#ResolvedBox) + schema/resolvedproject.cue (#ResolvedBoxView): the same fields on the resolved forms, so the plugin-build resolve leg re-emits them without the live candy graph.
  • spec/cue_types_gen.go: regenerated via task cue:gen (re-run on the committed tree is a no-op; TestGenReproducible green). CUE-sourced per SDD — no hand-written wire struct.
  • spec/box_oci_packaging_test.go: TestBox_OCIPackagingFields (YAML unmarshal) + TestResolvedBox_OCIPackagingWire (JSON wire round-trip) — both fail without the new fields.
  • CHANGELOG/2026.224.0344.md: staged (placeholder CalVer, finalized at merge).

Change class

charly-or-sdk Go (wire/contract repo), cross-repo: opencharly/spec → opencharly/sdk → opencharly/charly (B6 producer→consumer landing order). The sdk PR (OCI ENTRYPOINT/CMD emission + quadlet HostName= parity) and the main PR (manager box entrypoint: + ${HOSTNAME} + --hostname parity + submodule gitlink pins) are NOT yet open — they depend on this merge + tag.

How R10-tested — exact gate, commands, and pasted output

  • The gate for this change class: the downstream composing disposable bed charly check run check-agentteams-pod (main repo, disposable: true) — the R10-gate-by-change-class matrix maps a wire-shape contract change onto the bed that composes it, because the schema only has observable behavior through the sdk emitter + the main box that consumes it.
  • Eval beds run — the EXACT beds + per-bed results:
    • check-agentteams-pod | pod | ok | 13 steps | 399s (run calver 2026.224.0319, binary 2026.223.2215 — the worktree-local bin/charly rebuilt with the full three-repo tree, so the spec schema fields reached the emitter). The update step ran a fresh charly update and check-live-rebuild + feature-run-rebuild re-verified the fresh deployment.
  • Fresh rebuild: task build:binary rebuilt the worktree bin/charly (charly version = 2026.223.2215) from this tree; the bed ran on it, then on a fresh charly update — ZERO warnings across every log.
  • Did the CHANGED code path execute live? YES. The manager box declared entrypoint: [supervisord, -n, -c, /etc/supervisord.conf], the sdk emitter (consuming these fields) baked it into the manager image's OCI config (ENTRYPOINT ["supervisord","-n","-c","/etc/supervisord.conf"] + CMD [], verified via charly box inspect), the controller spawned the manager from that image through the bound rootless podman socket, and the manager reached "phase":"Running" — the exact failure mode this schema fixes. Two earlier runs show the pre-fix state: 2026.224.0211 (ok: false — manager REST API unreachable, the crash-loop symptom) and 2026.224.0302 (start step ok: false — the quadlet Hostname= unsupported-key unit-skip, root-caused and fixed in the sdk leg).
  • Concurrency: N/A — this change touches no shared-state path in the spec repo (pure wire fields); the bed ran on the combined tree with no surfaced failure.
$ ./bin/charly check run check-agentteams-pod
charly check run check-agentteams-pod: [image-build] PASS after 1m3.581s (log: .check/check-agentteams-pod/2026.224.0319/image-build.log)
charly check run check-agentteams-pod: [check-image] PASS after 24.699s
charly check run check-agentteams-pod: [deploy-add] PASS after 24.852s
charly check run check-agentteams-pod: [config] PASS after 18.973s
charly check run check-agentteams-pod: [start] PASS after 24.706s
charly check run check-agentteams-pod: [bring-up-members] PASS after 48ms
charly check run check-agentteams-pod: [check-live] PASS after 41.806s
charly check run check-agentteams-pod: [feature-run] PASS after 24.347s
charly check run check-agentteams-pod: [update] PASS after 1m34.066s
charly check run check-agentteams-pod: [check-live-rebuild] PASS after 39.934s
charly check run check-agentteams-pod: [feature-run-rebuild] PASS after 24.25s
charly check run check-agentteams-pod: [cleanup] PASS after 17.579s
charly check run check-agentteams-pod: [cleanup-members] PASS after 0s
charly check run check-agentteams-pod: PASS (steps=13)

$ grep 'agentteams-manager-running' .check/check-agentteams-pod/2026.224.0319/check-live.log
  PASS  check the controller spawns the default manager and it reaches Running phase (proves the manager image is in the host store under AGENTTEAMS_MANAGER_IMAGE and the controller can spawn it through the bound podman socket)  [agentteams-manager-running]  exit=0

# Zero warnings confirmed across every bed log (grep -E '^(WARN|.*\[WARN)|warning:|WARNING' on all *.log, excluding baked label content → empty).

# Standalone battery (this repo):
$ go build ./... && go test -count=1 ./...
ok  	github.com/opencharly/spec/spec  ...  # TestBox_OCIPackagingFields PASS, TestResolvedBox_OCIPackagingWire PASS, TestGenReproducible PASS (not skipped)
$ task cue:gen && git status --short   # no-op on the committed tree (SDD reproducible)
$ gofmt -l . ; go vet ./... ; golangci-lint run ./...   # empty / clean / 0 issues

Attribution tier

fully tested and validated — the cutover's NEW code path executed live against the fresh rebuild: the schema fields reached the sdk emitter, the manager image carried the baked ENTRYPOINT+CMD [], the controller spawned it through the bound rootless socket, and agentteams-manager-running PASSed (exit 0) on the check-agentteams-pod bed — 13 steps, zero warnings, on disposable: true, plus a fresh charly update re-verification leg. Output pasted above.

Harness rulebook compliance — state HOW each is satisfied (or N/A — <reason>)

  • R0 skills: SDD/CUE conventions from /charly-internals:go + /charly-internals:plugin (CUE is the single source; @go(Entrypoint, type=[]string)/@go(Cmd, type=[]string) consistent with sibling slice annotations; [...(string & !="")] matches the enabled_plugins pattern); /charly-check:check R10-gate-by-change-class; /charly-internals:git-workflow two-step landing.
  • R1 RCA + zero warnings: the manager crash-loop was root-caused across three repos (no baked OCI command from the controller's dockerCreatePayload + charly images baking none; $(hostname) empty; unresolvable hex-ID hostname). The bed shows zero warnings; the two earlier failed runs (2026.224.0211, 2026.224.0302) are the documented pre-fix states, each RCA'd in the sdk/main legs.
  • R2 no out-of-scope: every issue surfaced during this cutover is fixed in one of the three cutover commits — none parked as pre-existing/follow-up.
  • R3 no duplication: the fields exist on three SEPARATE CUE defs (#Box, #ResolvedBox, #ResolvedBoxView) that each legitimately carry them (the resolved view needs them for the plugin-build resolve leg); doc comments are tailored per def; no <name>-host/<name>-pod siblings.
  • R4 no workaround: no sleep/retry/magic-number/env-shim; the fix is an explicit opt-in schema surface, not an image-level hack.
  • R5 hard cutover + grep: no identifiers removed; no transitional/dual-mode path in the final code.
  • R6 git safety: N/A — no destructive git action; the branch advanced by adding commits only (no force-push).
  • R7 runtime gate: the change ran the end-to-end bed gate (charly check run check-agentteams-pod, 13 steps, exit 0) — not just go test.
  • R8 artifact invariants: N/A for this repo (wire/contract — emits no Containerfile/labels); the emitted-artifact assertion lives in the sdk leg (ENTRYPOINT/CMD Containerfile sections + charly box inspect).
  • R9 binary == source + deps: the consuming main binary was rebuilt (charly version = 2026.223.2215) and ran the bed; no new runtime OS deps.
  • R10 disposable + coverage: proven on disposable: true (check-agentteams-pod), fresh rebuild, zero warnings; the new tests (TestBox_OCIPackagingFields, TestResolvedBox_OCIPackagingWire) FAIL without the change.
  • RDD / ADE / SDD: SDD at 100% — CUE single source, spec/cue_types_gen.go regenerated, task cue:gen re-run is a no-op on the committed tree, TestGenReproducible PASS (re-runs the full concat→gengotypes→retag pipeline, not skipped). RDD: the composition-at-latest-versions assumption was bed-proven (check-agentteams-pod). ADE: N/A — no candies in the spec repo.
  • Hard cutover: ONE atomic commit per repo; no Phase-2/TODO/deferred left in scope.
  • Kernel/plugin boundary law: N/A for this repo — the spec repo is the wire-shape layer (CUE-first); adding opt-in fields to the box defs is the correct layer, no kernel/concrete-kind placement involved.
  • Disposable-only autonomy: the only autonomous destroy/rebuild was on the disposable: true bed.
  • Clean architecture + Go gates: gofmt -l . empty, go vet ./... clean, golangci-lint run ./... = 0 issues, go test ./... green (re-run independently).
  • CHANGELOG: CHANGELOG/2026.224.0344.md staged (placeholder CalVer, finalized by the pr-validator at merge).

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)

…esolvedBox/#ResolvedBoxView

The OCI ENTRYPOINT/CMD surface for direct-spawn images: #Box, #ResolvedBox and
#ResolvedBoxView (separate CUE defs) gain opt-in entrypoint:/cmd: fields that
the Containerfile emitter bakes into the image's OCI config. Empty by default —
a normal charly image bakes no command and the deploy-time init is injected
instead; declared only when something spawns the image directly from its baked
OCI config with no charly deploy in the loop (e.g. the AgentTeams controller
spawning child manager/worker containers through a runtime socket). cmd: []
clears a base image's inherited default command; a declared entrypoint with no
cmd is auto-cleared at emission so the entrypoint runs bare.

Regenerated via task cue:gen (TestGenReproducible no-op); wire round-trip
guarded by TestBox_OCIPackagingFields + TestResolvedBox_OCIPackagingWire.

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
@atrawog

atrawog commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator verdict: FAIL — do not merge

Fresh, independent validation of this PR against the active harness rulebook and the org PR template. The technical content is sound and I verified it independently, but the landing ceremony requirements are not met. Two blocking findings.

Blocking findings

1. PR body does not follow the org PR template (item 1 FAIL).
The body is a partial fill. Missing sections required by opencharly/.github/.github/PULL_REQUEST_TEMPLATE.md:

  • ## Change class
  • ## How R10-tested — exact gate, commands, and pasted output (the ## Evidence section summarizes but pastes nothing)
  • ## Attribution tier
  • ## Harness rulebook compliance (R0–R10, each answered with HOW)
  • The body does not end with the italicized *Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)* footer (it ends with "Part of the AgentTeams Unit 3 three-repo cutover…"). The commit trailer carries the footer, but the PR-body footer is a separate check.

2. No CHANGELOG entry staged (item 18 FAIL).
The diff (5 files) contains no CHANGELOG/<CalVer>.md. The prior spec merge (5130501, tag v0.2026223.1350) staged CHANGELOG/2026.223.1350.md, establishing the convention. This is a runtime-tier change (charly-or-sdk Go contract repo); a CHANGELOG entry is required.

What I verified independently (PASS)

  • go build ./... and go test -count=1 ./... green; TestGenReproducible PASS; task cue:gen re-run is a no-op (SDD reproducibility — generated spec/cue_types_gen.go is CUE-sourced, not hand-edited).
  • gofmt -l, go vet, golangci-lint clean.
  • The downstream consumer bed check-agentteams-pod (main repo), run 2026.224.0319: 13 steps, exit 0, zero warnings. The changed path executed live — check the controller spawns the default manager and it reaches Running phase PASS (exit=0).
  • The two earlier failed runs (2026.224.0211, 2026.224.0302) are the pre-fix crash-loop state this cutover fixes (0211 shows the manager REST API unreachable — the exact symptom); the final green run proves the fix.
  • No cross-PR interactions: only PR feat(spec): add opt-in entrypoint/cmd OCI packaging fields to #Box/#ResolvedBox/#ResolvedBoxView #23 open in spec; none in sdk/charly/plugins. No comments on this PR.
  • No CalVer/tag conflict: latest tag v0.2026223.1350; current UTC 2026.224.0344.

How to fix

  1. Rewrite the PR body to the org template: add ## Change class, ## How R10-tested with pasted output, ## Attribution tier, ## Harness rulebook compliance (R0–R10 with HOW), and end with the *Assisted-by: …* footer.
  2. Stage a CHANGELOG/<CalVer>.md placeholder (finalized at merge).

Push the fix commits to the feat/ branch; the status resets and I re-run.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)

@atrawog

atrawog commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — CHANGES REQUESTED ❌

Change class: charly-or-sdk Go (contract repo), cross-repo (spec → sdk → main, B6 order)

Head SHA validated: 482243fdf479a4f07598c1984f79a9b48d9ae753

Checklist

  • [PASS] 0. Security & anti-tampering (T1–T4). No exfiltration, no scope mismatch (diff matches the description), no weakened guardrails, no supply-chain change, no embedded directive aimed at the validator. Diff is 5 files: 3 CUE schema defs, regenerated spec/cue_types_gen.go, and a new wire test.
  • [FAIL] 1. Description complete. The body does not follow the org-wide PR template (opencharly/.github/.github/PULL_REQUEST_TEMPLATE.md). Missing: a ## Change class section, a ## How R10-tested section with the exact gate + pasted output, an ## Attribution tier section, the ## Harness rulebook compliance section, and the required *Assisted-by: …* footer at the end of the body (the body ends with "Part of the AgentTeams Unit 3 three-repo cutover…"). The template is explicit that a body that "pastes no R10 output" FAILS.
  • [FAIL] 2. Change-class gate matches pasted evidence. The body claims the check-agentteams-pod R10 bed passed (exit 0, 13 steps, zero warnings) but pastes no command/output. I cross-checked the claim on disk: .check/check-agentteams-pod/2026.224.0319/summary.yml exists, ok: true, 13 steps all ok: true, total_seconds: 399 — the gate itself is real, but the PR must supply the pasted evidence per the template.
  • [FAIL] 3. Attribution tier justified by proof. The commit trailer claims fully tested and validated, but the PR body supplies no pasted R10 output to justify it. The bed evidence on disk supports the claim, but the burden is on the PR to present it.
  • [PASS] 4. R0 skills honored. The change honors the SDD/CUE conventions (/charly-internals:go, /charly-internals:plugin): fields optional (?), empty by default, @go(Entrypoint, type=[]string) / @go(Cmd, type=[]string) consistent with sibling slice annotations (@go(EnabledPlugins,type=[]string), @go(PortRelay,type=[]int)); [...(string & !="")] matches the enabled_plugins pattern.
  • [PASS] 5. R1 RCA + zero warnings. No failures/warnings in the evidence; the bed summary shows all steps ok: true.
  • [PASS] 6. R2 no out-of-scope split. No surfaced issue deferred.
  • [PASS] 7. R3 no duplication. The three defs (#Box, #ResolvedBox, #ResolvedBoxView) are separate CUE defs that each legitimately carry the fields; doc comments are tailored per def.
  • [PASS] 8. R4 no workaround. No sleep/retry/magic-number/env-shim.
  • [PASS] 9. R5 hard cutover + grep. No identifiers removed; no transitional/dual-mode path.
  • [N/A] 10. R6/R8/R9. R6: no destructive git action. R8/R9: the spec contract repo emits no Containerfile/labels and no deployed binary.
  • [PASS] 11. R10 disposable + coverage. Verified on disk: check-agentteams-pod bed ok: true, 13 steps, zero warnings, on a disposable: true bed. The new tests (TestBox_OCIPackagingFields, TestResolvedBox_OCIPackagingWire) fail without the change (they assert the new fields survive YAML load and JSON wire round-trip). (The body must still paste this output — item 1/2.)
  • [PASS] 12. RDD / ADE / SDD. SDD at 100%: CUE is the single source; spec/cue_types_gen.go regenerated; task cue:gen re-run is a no-op (clean git status after); TestGenReproducible PASS (re-runs the full concat→gengotypes→retag pipeline and diffs against committed files — not skipped). No hand-edited generated file. ADE: N/A (no candies in the spec repo).
  • [PASS] 13. Concurrency mandate. N/A — the change touches no shared-state path in the spec repo; the bed ran on the combined tree with no surfaced failure.
  • [PASS] 14. Hard cutover — one atomic commit. The PR carries exactly one commit.
  • [PASS] 15. Architecture gate. Placement CORRECT: the spec repo is the wire-shape layer (CUE-first); adding opt-in fields to #Box/#ResolvedBox/#ResolvedBoxView is the right layer. No alias, no kit import, no core/candy placement issue.
  • [PASS] 16. Disposable-only autonomy. The bed ran on a disposable: true target.
  • [PASS] 17. Clean architecture + Go gates. Re-run myself: gofmt -l . empty, go vet ./... clean, go test ./... green, golangci-lint run ./... = 0 issues (isolated GOLANGCI_LINT_CACHE).
  • [FAIL] 18. CHANGELOG present. A runtime-tier change must stage a CHANGELOG/<CalVer>.md entry (placeholder CalVer is fine — the validator finalizes it at merge). The PR stages none. The immediately-preceding spec PR (5130501, the current base) included CHANGELOG/2026.223.1350.md, establishing the per-PR convention.

Comments considered

None — the PR carried no comments.

Cross-PR interactions considered

None open — gh pr list returns no other open PRs in opencharly/spec, opencharly/sdk, or opencharly/charly.

Decision

FAIL — not merged. The technical content is sound (all tests green, cue:gen reproducible, schema conventions consistent, R10 bed verified on disk), but two blocking process gates are unmet:

  1. CHANGELOG entry missing (item 18) — stage CHANGELOG/<placeholder>.md (any valid YYYY.DDD.HHMM placeholder; the validator finalizes it at merge).
  2. PR body does not follow the org-wide template (item A.1) — add the ## Change class, ## How R10-tested (with the pasted bed output), ## Attribution tier, and ## Harness rulebook compliance sections, and end the body with the *Assisted-by: <Harness> <Provider Full Model Name> (<confidence>)* footer.

Fix on the same feat/box-oci-entrypoint branch (append a commit, push fast-forward — no force-push), and the status resets for a fresh validation run.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)

…ng fields

Placeholder CalVer (2026.224.0344), finalized by the pr-validator at merge.
Establishes the per-PR CHANGELOG convention for this cutover (spec → sdk → main).

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
…int/cmd OCI packaging cutover

Renames the staged CHANGELOG placeholder to the merge-time CalVer (one stamp
for the changelog and the v0.2026224.403 tag).

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
@atrawog
atrawog merged commit 9e52340 into main Aug 12, 2026
@atrawog
atrawog deleted the feat/box-oci-entrypoint branch August 12, 2026 04:06
@atrawog

atrawog commented Aug 12, 2026

Copy link
Copy Markdown
Contributor Author

pr-validator — APPROVED ✅

Change class: charly-or-sdk Go (wire/contract repo), cross-repo (spec → sdk → main, B6 producer→consumer order)

Head SHA validated: 3767f74130959699efacc2c03c4e3b870b486bc9 (branch feat/box-oci-entrypoint, commits 482243f + 3767f74)

This PR was merged by a concurrent pr-validator session (merge commit 9e52340, tag v0.2026224.403) while I independently re-validated it. My independent review reached PASS on all checklist items, and I verified the emitted merge artifact satisfies the attribution/tagging contract (below).

Checklist

  • [PASS] 0. Security & anti-tampering (T1–T4). No exfiltration, no scope mismatch (all 6 diff files named in the body; the "(all 5 files accounted for)" parenthetical is a cosmetic count off-by-one, every file is in fact accounted for), no weakened guardrails, no supply-chain change, no embedded directive aimed at the validator.
  • [PASS] 1. Description complete. Body follows the org template: Summary of changes (root cause + concrete edits), Change class, How R10-tested (exact gate, per-bed results, fresh rebuild, changed-path execution, concurrency N/A), pasted output, Attribution tier, Harness rulebook compliance (every rule answered with HOW or N/A — <reason>), and ends with the *Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)* footer.
  • [PASS] 2. Change-class gate matches pasted evidence. The R10-gate-by-change-class matrix maps a wire-shape contract onto the composing bed: charly check run check-agentteams-pod (main repo, disposable: true). Cross-checked on disk: .check/check-agentteams-pod/2026.224.0319/summary.yml exists, ok: true, 13/13 steps ok: true, total_seconds: 399 — matches the pasted table. Binary 2026.223.2215 matches the worktree bin/charly version.
  • [PASS] 3. Attribution tier justified. fully tested and validated is earned: the changed path (schema → sdk emitter → baked ENTRYPOINT/CMD [] → controller-spawned manager reaching Running) executed live, proven by [agentteams-manager-running] exit=0 in the fresh-rebuild check-live leg. Identity Claude Code deepseek-v4-flash:cloud verified against the authoring runtime.
  • [PASS] 4. R0 skills honored. SDD/CUE conventions (/charly-internals:go + /charly-internals:plugin): optional (?) fields, [...(string & !="")] @go(Entrypoint/Cmd, type=[]string) matches sibling annotations (builder.cue, deploy.cue, box.cue), CUE single-source.
  • [PASS] 5. R1 RCA + zero warnings. The two earlier failed runs are the documented pre-fix states: 2026.224.0211 (check-live ok: false — crash-loop symptom), 2026.224.0302 (start ok: false — quadlet Hostname= unsupported-key, fixed in the sdk leg). Final run zero warnings (grep across all step logs, excluding baked-label content, is clean).
  • [PASS] 6. R2 no out-of-scope split. All surfaced issues covered across the three-repo cutover; nothing parked.
  • [PASS] 7. R3 no duplication. Fields on three separate CUE defs (#Box, #ResolvedBox, #ResolvedBoxView) that each legitimately carry them; doc comments tailored per def.
  • [PASS] 8. R4 no workaround. No sleep/retry/magic-number/env-shim; explicit opt-in schema surface.
  • [PASS] 9. R5 hard cutover + grep. Zero deletions; no transitional/dual-mode path; no removed identifiers.
  • [PASS/N/A] 10. R6/R8/R9. R6: no destructive git action. R8/R9: N/A — wire/contract repo emits no Containerfile/labels and no deployed binary; the consuming main binary was rebuilt (2026.223.2215, verified) and ran the bed.
  • [PASS] 11. R10 disposable + coverage. Bed is disposable: true (verified in charly.yml); fresh charly update leg ran; zero warnings. Coverage proven by mutation test: at base 5130501, the new tests fail to build (b.Entrypoint undefined, unknown field Entrypoint in struct literal of type ResolvedBox) — they cannot pass without the change.
  • [PASS] 12. RDD / ADE / SDD. SDD at 100%: task cue:gen re-run on the committed tree is a no-op (clean git status after — verified), TestGenReproducible PASS (0.39s, not skipped), generated spec/cue_types_gen.go is CUE-sourced (no hand-edit, no @go(-)). ADE: N/A (no candies). RDD: composition-at-latest bed-proven.
  • [PASS/N/A] 13. Concurrency mandate. N/A — pure wire fields, no shared-state path in the spec repo; bed ran on the combined tree with no surfaced failure.
  • [PASS] 14. Hard cutover — one atomic phase. Two commits on feat/ (schema + CHANGELOG review-round fix) collapse to ONE squash commit on main; no Phase-2/TODO left.
  • [PASS] 15. Architecture gate — placement CORRECT. The spec repo is the wire-shape layer (CUE-first); adding opt-in fields to the box wire defs is the correct layer. No alias, no kit import, no core/candy placement issue. Per-item trace: no charly/*.go staged (contract repo — no core files touched).
  • [PASS] 16. Disposable-only autonomy. The only autonomous destroy/rebuild was on the disposable: true bed.
  • [PASS] 17. Clean architecture + Go gates. Re-run myself: go build ./... + go test -count=1 ./... green (all packages), gofmt -l . empty, go vet ./... clean, golangci-lint run ./... = 0 issues (isolated GOLANGCI_LINT_CACHE).
  • [PASS] 18. CHANGELOG present. CHANGELOG/2026.224.0344.md staged — valid CalVer filename, H1 byte-equal, placeholder free on main (no CHANGELOG/2026.224.0344.md, no v0.2026224.* tag at validation time).

Phase 1b (documentation scrutiny): cold reader skipped with reason — the diff contains no reader-facing narrative page (CHANGELOG history + schema/code only).

Comments considered

  • Round-1 FAIL verdict (atrawog): raised a non-template PR body + missing CHANGELOG. verified-non-blocking at the current head — both findings are fixed at 3767f74 (template-compliant body with pasted output + footer; CHANGELOG/2026.224.0344.md staged), and I verified the fixes independently.
  • Round-2 FAIL verdict (atrawog): same two findings, detailed checklist. verified-non-blocking at the current head — identical resolution, independently re-verified.

Cross-PR interactions considered

None open — gh pr list returns no other open PRs in opencharly/spec, opencharly/sdk, opencharly/charly, or opencharly/plugins. No coordination comments needed.

Decision

PASS. This PR was merged by a concurrent validator at 2026-08-12T04:06:21Z (squash commit 9e52340f29f3046ee075caaad909c3549a8b9e23, feat/ branch deleted) and tagged v0.2026224.403. I verified the emitted artifact:

  • merged-commit trailer parses exactly to Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated);
  • CHANGELOG/2026.224.0403.md present at merge with H1 # 2026.224.0403 — opt-in entrypoint/cmd OCI packaging fields on the box wire types (filename↔H1 byte-equal);
  • tag v0.2026224.403 (Go-module scheme v0.<YYYYDDD>.<HHMM stripped> — 0403→403) points at the merged commit, which is main HEAD.

Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)

atrawog added a commit to opencharly/charly that referenced this pull request Aug 12, 2026
…nd the pod bed (Unit 3)

The main-repo leg of the three-repo fix (spec → sdk → main, B6 producer→consumer order) for the AgentTeams manager container crash-loop, landing **Unit 3** of the AgentTeams integration: the controller candy, the top composition, the manager image, and the `check-agentteams-pod` bed. Consumes the opt-in `entrypoint:`/`cmd:` box wire fields (spec v0.2026224.403, PR opencharly/spec#23) and the sdk's OCI ENTRYPOINT/CMD emission + quadlet `HostName=` parity (sdk v0.2026224.422, PR opencharly/sdk#129).

**Root cause being fixed:** the AgentTeams controller spawns child manager/worker containers **directly from their baked OCI config** (`dockerCreatePayload` sends no Cmd/Entrypoint), with no charly deploy in the loop to inject the init command — and charly images baked none. The spawned manager therefore ran bare `bash` (the base image's default `/usr/bin/bash`), exited 0, and restarted forever. The fix lands the box-authored OCI packaging end to end: the `agentteams-manager` box declares `entrypoint: [supervisord, -n, -c, /etc/supervisord.conf]`, the sdk emitter bakes it into the image's OCI config, and the controller's spawn now boots supervisord.

**Concrete edits (all 15 files accounted for):**
- `candy/agentteams-controller/charly.yml` (new): builds `agentteams-controller` + `agt` from the pinned AgentTeams v1.2.2 source tarball, downloads kube-apiserver v1.31.3, installs the CRD manifests + builtin agent trees, and runs the controller as a rootless supervisord service on :8090 with the kine-backed embedded kube-apiserver. The charly-owned `start-controller.sh` resolves the shared credentials from the `/data` volume and execs the controller — no upstream install script, no root.
- `candy/agentteams/charly.yml` (new): the top composition — the five foundation candies (minio, matrix, element, higress, controller) into one box.
- `candy/agentteams-manager/charly.yml` (new): the manager image (`tag: manager`) — the openclaw gateway runtime built from the pinned upstream source commit, plus mc and the agt REST client, with the box-level `entrypoint:` that fixes the crash-loop.
- `charly.yml`: the `agentteams` box + `agentteams-manager` box + the `check-agentteams-pod` bed (replaces `check-agentteams-core-pod`): binds the host rootless podman socket into the box, pins `AGENTTEAMS_MANAGER_IMAGE` to the pre-built manager image, and adds the manager-spawn check — the controller creates the default Manager CR and the check polls `/api/v1/managers` until the manager reaches `"phase":"Running"`.
- `candy/plugin-deploy-pod/config_setup_helpers.go`: the direct-run `charly start` argv now emits `--hostname <name>` — parity with the quadlet `HostName=` key (the sdk leg's fix), so the in-container hostname = the charly-network DNS name on BOTH deploy paths.
- `candy/plugin-box/inspect_list.go` + test: the `listServices` root-cause fix — the predicate now reads `init_systems` (non-empty = at least one init system triggers) instead of the dead `has_init` aggregate the resolution pipeline never populates.
- `candy/agentteams-minio/charly.yml` + `candy/agentteams-matrix/charly.yml`: small fixes surfaced during the Unit-3 bed runs (minio health-check path, matrix env).
- `charly/go.mod` + `candy/plugin-deploy-pod/go.mod`: `require github.com/opencharly/spec` bumped to `v0.2026224.403` (the merged spec tag).
- `sdk` + `spec` submodule gitlinks: pinned to the merged SHAs (`b49946e`, `9e52340`).
- `CHANGELOG/2026.224.0510.md` (new): the Unit-3 release entry (CalVer stamped at merge).

Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant