Repository navigation
feat(agentteams): foundation candies + core box + R10 bed (Unit 1) - #244
Conversation
The first three candies of the AgentTeams full-integration cutover — minio, matrix, element — composed into the agentteams-core-app box on the cachyos base, plus the check-agentteams-core-pod disposable R10 bed. Candies (all rootless — every service runs as the image user, uid 1000, against the /data volume; all start scripts are charly-owned write: steps, never upstream install scripts): - agentteams-minio: minio + mc extracted from higress/minio|mc:20260216 (extract:), S3 API :9000 + console :9001, mc-mirror storage initializer (bucket + agentteams-config mirror). Root password self-provisions (env wins, else persisted /data/minio/.root-password). - agentteams-matrix: tuwunel static binary extracted from higress/tuwunel:20260216, Matrix homeserver :6167 with the CONDUWUIT_* env the controller expects. Registration token self-provisions. - agentteams-element: element-web static files extracted from higress/element-web:20260216, served by a rootless nginx :8088 (charly-owned config + start script regenerating config.json from env). Box: agentteams-core-app (base: cachyos.cachyos). Bed: check-agentteams-core-pod (disposable: true) — pod steady state + all three component health probes, all as uid 1000 against /data. Cross-repo (B2, producers landed first): this commit bumps ONLY the spec gitlink to 5130501 (v0.2026223.1350, spec#22's DeployTargetRebuildOpts.Tag) + the charly/go.mod spec require to v0.2026223.1350. The sdk (e14cf3b7) and plugins (413745a) gitlinks are already at their merged mains on charly main via the k8s→kubernetes rename leg (#242): sdk#128's identifier rename + sdk#127's download-creates-dest-dir fix ride in sdk e14cf3b7, and plugins#150's regenerated image/layer skills (the extract: row, the download: behavior, the charly-owned start scripts section) ride in plugins 413745a. Also in-tree: - plugin-box/validate_rules.go: HasExtract counts as an install file for ADE validation (extract:-only candies — agentteams is the first consumer). - plugin-deploy-pod/lifecycle.go + plugin-check/bed_run.go: the update/rebuild tag threading pins the per-run bed tag so the fresh-rebuild gate (check-live-rebuild) verifies the JUST-BUILT image, never a stale cached one (the tag-CalVer tiebreak fix). The charly dispatch leg (charly/update_deploy_dispatch.go) lands in the follow-up commit on this branch — the pre-rename charly module cannot lint against the post-rename spec pin until the k8s→kubernetes rename leg (#242) is merged. - candy/charly-image/charly.yml: the extract:/download:/charly-owned-scripts doc hunks the plugins skills were regenerated from. - candy/plugin-{box,check,deploy-pod}/go.mod: spec require bumped to v0.2026223.1018 — the post-rename sdk's graph minimum, the same bump the k8s→kubernetes rename leg applies to all 88 candy go.mods. These three are the modules this cutover touches, so the pre-commit gate passes pre-rebase. R10 gate: charly check run check-agentteams-core-pod (disposable) — PASS (run 2026.223.1239, steps=13, zero warnings), all three self-provisioning checks PASS exit=0 in both check-live and check-live-rebuild; 26/26 checks on the pinned per-run image. Fresh-rebuild re-verified after commit. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
The charly dispatch leg of the update/rebuild tag threading: pins the per-run bed tag through DeployTargetRebuildOpts.Tag so the fresh-rebuild gate (check-live-rebuild) verifies the JUST-BUILT image, never a stale cached one (the tag-CalVer tiebreak fix). The candy legs (plugin-deploy-pod/lifecycle.go + plugin-check/bed_run.go) landed in the preceding commit; this leg was split out because the pre-rename charly module could not lint against the post-rename spec pin until the k8s→kubernetes rename leg (#242) merged. Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
plugins#150 (regenerated image/layer skills from the charly-image candy docs, incl. the Agent Driven Evaluation (ADE) expansion) merged as 6a089de. The charly repo's plugins submodule now points at the merged skills so the regenerated docs match the candy-doc source this Unit-1 commit carries. The sdk gitlink is deliberately NOT bumped to 2d01e8a (sdk#127): that squash was based on pre-rename sdk main and reverted the vmshared K8s* rename, so it fails to build against the post-rename spec pin in the charly workspace (spec.K8s* undefined). The download-fix producer needs a follow-up sdk PR re-applying the fix on post-rename main. Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
charly/pr-validator verdict: FAIL (CHANGES REQUESTED) — do not mergeA fresh, independent evaluation of #244 (head The ONE blocking finding — A.1: PR body is template-incompleteThe PR body does not follow the required template and fails the mandatory completeness check:
This is exactly what the template header forbids: "FILL EVERY SECTION with EVIDENCE, not promises — the pr-validator FAILS a body that leaves any applicable section blank, answers a rule with a bare checkbox instead of HOW it was satisfied, or pastes no R10 output." The evidence exists and is strong — it just needs to be written into the body in the template's shape. Checklist
Comments consideredNone (no reviewer comments on the PR at validation time). Cross-PR interactionsNone — To unblockRewrite the PR body to the template with the evidence you already have: the exact gate recipe + pasted output for Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
charly/pr-validator verdict: PASS — mergingRe-validation of #244 at head A.1 (previously FAILING) — now PASS
Claim cross-checks (all verified independently)
Full checklist: 19/19 PASS(0 security, 1 A.1 body completeness, 2 change-class gate, 3 attribution tier, 4 R0, 5 R1, 6 R2, 7 R3, 8 R4, 9 R5, 10 R6/R8/R9, 11 R10, 12 RDD/ADE/SDD, 13 concurrency, 14 atomic, 15 boundary placement, 16 disposable-only, 17 clean architecture + Go gates, 18 CHANGELOG.) Actions taken
Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) |
Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)
charly/pr-validator — landedMERGED via squash. Final state:
One noted observation (non-blocking, surfaced for the author): the body's Change-class section describes an R2-tracked follow-up sdk PR to "re-apply the download fix on post-rename main." Verified independently that this is not needed — sdk main is already at Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated) |
pr-validator — APPROVED ✅ (already merged by prior validator session)Change class: code/config (candy + box + bed + one core dispatch line) This is a FRESH, independent validation of #244 at head Checklist (all PASS):
Comments considered:
Cross-PR interactions considered: none-found — no other open PRs in opencharly/charly, spec, sdk, or plugins at validation time. Decision: PASS. The PR is fully compliant. It was already merged as Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
Summary of changes
Unit 1 of the AgentTeams full-integration cutover: the first three foundation candies (minio, matrix/tuwunel, element-web), composed into the
agentteams-core-appbox on thecachyosbase, plus thecheck-agentteams-core-poddisposable R10 bed. Every service runs rootless — as the image user (uid 1000) against the/datavolume, no root anywhere — and every start script is charly-owned (write:steps in the candies), never an upstream AgentTeams install script.candy/agentteams-minio/charly.yml— minio + mc extracted fromhigress/minio|mc:20260216(extract:), S3 API:9000+ console:9001, mc-mirror storage initializer (bucket + agentteams-config mirror). Root password self-provisions (env wins, else persisted/data/minio/.root-password).candy/agentteams-matrix/charly.yml— Tuwunel static binary extracted fromhigress/tuwunel:20260216, Matrix homeserver:6167with theCONDUWUIT_*env the controller expects. Registration token self-provisions.candy/agentteams-element/charly.yml— element-web static files extracted fromhigress/element-web:20260216, served by a rootless nginx:8088(charly-owned config + start script regeneratingconfig.jsonfrom env).charly.yml— theagentteams-core-appimage node (base: cachyos.cachyos+ the three candies) + thecheck-agentteams-core-podbed (disposable: true).candy/plugin-box/validate_rules.go—HasExtractcounts as an install file for ADE validation (extract:-only candies — agentteams is the first consumer).candy/plugin-deploy-pod/lifecycle.go+candy/plugin-check/bed_run.go+charly/update_deploy_dispatch.go— the update/rebuild tag threading pins the per-run bed tag throughDeployTargetRebuildOpts.Tagso the fresh-rebuild gate (check-live-rebuild) verifies the JUST-BUILT image, never a stale cached one (the tag-CalVer tiebreak fix).candy/charly-image/charly.yml— the extract:/download:/charly-owned-scripts doc hunks the plugins skills were regenerated from.CHANGELOG/2026.223.1239.md— the Unit-1 changelog (placeholder CalVer).specgitlink →5130501(v0.2026223.1350, spec#22'sDeployTargetRebuildOpts.Tag) +charly/go.modspec require → v0.2026223.1350.pluginsgitlink →6a089de(v2026.223.1424, plugins#150's regenerated image/layer skills from this commit's candy-doc source — the ADE expansion rides in both).Change class
candy/box-config + charly Go + cross-repo (gitlink bumps). The touched code path is the composing pod bed (
check-agentteams-core-pod) + the update/rebuild tag threading (plugin-deploy-pod lifecycle + plugin-check bed_run + charly update dispatch). Cross-repo landing order: producers merged first (spec#22 →5130501, plugins#150 →6a089de), then this consumer bumps the gitlinks. Thesdkgitlink is deliberately NOT bumped: sdk#127's merge2d01e8awas based on pre-rename sdk main and reverted the vmshared K8s→Kubernetes rename, so it fails to build against the post-rename spec pin in the charly workspace (spec.K8s*undefined) — the download-fix producer needs a follow-up sdk PR re-applying the fix on post-rename main (R2-tracked).How R10-tested — exact gate, commands, and pasted output
charly check run check-agentteams-core-pod— the composing disposable bed for the new candies + the changed plugin/check/deploy-pod/charly dispatch code path (per /charly-check:check "R10 gate by change class": a candy →charly box validate+ build + the composing bed; a changed Go code path → the bed that exercises it).check-agentteams-core-pod | pod | ok | 13 steps | 2026.223.2017— the FINAL-TREE run (head9f285530, post-plugins-bump), binary2026.223.1958.check-agentteams-core-pod | pod | ok | 13 steps | 2026.223.2001— the post-rebase run (head8e6908fe+348412f4), same binary.Both runs: image-build / check-image / deploy-add / config / start / bring-up-members / check-live / feature-run / update / check-live-rebuild / feature-run-rebuild / cleanup / cleanup-members all PASS, zero warnings, R10_EXIT=0. check-live + check-live-rebuild each 26/26 (all three self-provisioning checks exit=0); feature-run + feature-run-rebuild each 22/22, 0 skipped.
task build:binary,charly version= 2026.223.1958) and the gate ran on a FRESHcharly update— theupdatestep +check-live-rebuild+feature-run-rebuildverify the JUST-BUILT image via the per-run bed tagcheck-agentteams-core-pod-2026.223.2017threaded through update.log (never a stale cached one).updatestep +check-live-rebuild+feature-run-rebuild(the per-run tag is threaded through update.log);HasExtractADE rule ran incheck-image(charly check box) against the extract:-only candies;Attribution tier
fully tested and validated— the cutover's NEW/CHANGED code paths (the three candies, the composing bed, theHasExtractADE rule, the update/rebuild tag threading) all EXECUTED against the fresh rebuild on the affected disposable target, with the complete fresh-rebuild R10 passing at zero warnings and both outputs pasted above.Harness rulebook compliance — state HOW each is satisfied
/charly-image:layer(candy authoring),/charly-image:image(box composition),/charly-check:check(the bed + ADE),/charly-internals:plugin(the plugin-side tag threading),/charly-internals:git-workflow(landing). All honored: candies are compact name-first nodes with mandatoryversion:/description:/plan:+check:; the bed isdisposable: true; the dispatch change is plugin-side + a core-private dispatch call.e14cf3b7. Gate output has ZERO warnings on both R10 runs.DeployTargetRebuildOpts.Tag) applied across the three surfaces it logically covers (deploy-pod lifecycle, check bed_run, charly dispatch); no<name>-host/<name>-podsibling candies.charlyCLI end to end; the tag-CalVer tiebreak is a real fix (per-run tag), not a retry.charly check run check-agentteams-core-pod), not justgo test— both R10 runs above.candy/charly-image/charly.yml) regenerated the plugins skills (verified at 6a089de — extract row SKILL.md:222, start-scripts SKILL.md:791);charly box labelsverified the box identity, candy versions, baked plan, 4 services, ports, /data volume, uid/gid 1000.task build:binary,charly version= 2026.223.1958) and the gate ran on it; no new runtime OS deps (all components areextract:ed binaries — nothing added topkg/arch/PKGBUILD).disposable: trueonly, fresh rebuild, zero warnings. Coverage that fails without the change: the bed's 26/26 + 22/22 checks (would fail without the candies/box),TestBedRunImageTag(would fail if the per-run tag formula regressed), and theHasExtractADE rule (would fail without the extract:-only candies).description:+plan:with ≥1 deterministiccheck:(charly box validatepasses, exit=0). SDD — no.cueschema edit in this change;task cue:genis a no-op (clean tree after regeneration).plugin-deploy-pod/plugin-check); the only core change is a private dispatch call threading the tag throughDeployTargetRebuildOpts.Tag— no concrete-kind schema/switch/per-kind-map leaked into the kernel;charly/import_purity_test.gostill passes (charly imports onlyspec/*).disposable: truecheck-agentteams-core-podtarget.gofmt -l .empty,golangci-lint run ./...= 0 issues,go vetclean,go test ./...green (85.979s) — all on the final head.CHANGELOG/2026.223.1239.mdstaged with a placeholder CalVer (the pr-validator finalizes the merge-time version).Assisted-by: Claude Code deepseek-v4-flash:cloud (fully tested and validated)