Repository navigation
feat(deploy-pod): adopt spec 261 — retire the fleet vocabulary, read EngineName - #12
Conversation
…EngineName The schema-249→261 wave leg for the out-of-process `deploy:pod` target, a prerequisite for the engine-provider-class cutover (spec#144/#145). Without this, a 261 `charly` cannot drive a pod bed: `plugin-deploy-pod` self-loads the project config via `loaderkit`, and its loader's `GateSchemaVersion` rejects a config NEWER than its own compiled spec HEAD (249), degrading the deploy key to the image name — the bogus `image not found in local storage: <key>:<key>-<calver>` symptom documented in `resolve_ref.go`. - **fleet → deploy vocabulary (spec#137/CC-2).** `spec/fleet` is removed in spec 261; every removed identifier is swept: `spec.FleetNode`→`spec.DeployNode`, `deploykit.FleetConfig`→`deploykit.DeployConfig`, `FleetConfigMutator`→`DeployConfigMutator`, `MutateFleetConfig`→`MutateDeployConfig`, `SaveFleetConfig`→`SaveDeployConfig`, `LoadFleetConfig`→`LoadDeployConfig`, `ProjectFleetConfig`→`ProjectDeployConfig`, `MarshalFleetNode`→`MarshalDeployNode`, `loaderkit.BuildFleetNode`→`BuildDeployNode`, `loaderkit.LoadHostFleetConfigViaExecutor`→`LoadHostDeployConfigViaExecutor`, `spec/fleet.CandyMapKey`→`spec/deploy.CandyMapKey`, `dc.Fleet`→`dc.Deploy`, and the plugin-local `mutateFleet`/`saveFleet`/`saveFleetStub` identifiers + prose. - **`#EngineName`.** `entry.Engine` is now the typed `spec.EngineName`; the two read sites convert explicitly (`string(entry.Engine)`), matching the sdk's own `deploykit/box_engine.go` / `deploy_file.go` reads. - **Schema-head fixture.** `TestMigratedTreeStampAcceptedByEmbeddedParser` pinned the pre-wave 249 cap; it now asserts against the embedded `spec.SchemaVersion` (the module's HEAD), so it tracks every future bump instead of re-breaking. - spec pin `v0.2026249.2129` → `v0.2026266.545`; sdk `v0.2026249.2114` → `v0.2026266.623`. ## How tested — R10 fresh-rebuild disposable bed (live) `charly check run check-boxload-pod` (kind:pod, `disposable: true`) with the branch tree composed via the documented `CHARLY_REPO_OVERRIDE` verify-before-push mechanism, on the engine-cutover branch binary `2026.266.0826`: ``` charly check run check-boxload-pod: [config] PASS after 32.443s charly check run check-boxload-pod: [update] PASS after 2m13.748s # fresh rebuild charly check run check-boxload-pod: [check-live-rebuild] PASS after 1m38.688s charly check run check-boxload-pod: PASS (steps=14) ``` `summary.yml` → `ok: true`; every step `ok: true`, zero failed steps. The bed is a full R10 cycle: image-build → check-image → deploy-add → **config** (the step that previously failed on the skew) → start → check-live → feature-run → **update (fresh rebuild)** → check-live-rebuild → feature-run-rebuild → cleanup. Before this leg, `config` FAILED with the bogus ref; after, it PASSES. Local gates: `gofmt -l .` (empty) · `go build ./...` · `go vet ./...` · `go test ./...` GREEN. BREAKING: consumers of `plugin-deploy-pod` must pin spec >= v0.2026266.545. Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: candy (plugin) code/config — spec-261 Blocks
Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS (no T1–T4 finding; diff is a mechanical Comment intake: Comment 5792817249 (github-actions[bot], at superseded SHA Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
The beds' config step failed on the frozen tree: the pinned [email protected] predates the spec-261 adopt and drops resolved_image, so `charly config` errored 'image not found in local storage'. The spec-261 adopt (opencharly/plugin-deploy-pod#12, tag v2026.266.1057) carries resolved_image through config-setup. Because v2026.266.1057 demands schema 2026.261.1747, this also cuts the project's version stamp over from 2026.249.2125 (charly migrate is a version-stamp-only change) and bumps the CI charly pin to v2026.269.0131 (the old v2026.256.1316 binary rejects schema 261). Both beds now pass end-to-end (pod 14/14 ok:true 1037s; snapshot 14/14 ok:true 803s) with plugin-deploy-pod resolved from v2026.266.1057.
…ly/charly (#6) * feat: relocate check-agentteams beds from opencharly/charly Move the agentteams / agentteams-manager / agentteams-worker boxes, the agentteams-vm template, and the check-agentteams-pod / -snapshot / -vm R10 beds into the candy's owning repo. A bed in opencharly/charly cannot exercise this candy as in-development code: the check-bed runner's dev-tree override (SelfSuperprojectOverridePair) points the bed project's OWN superproject's @github refs at the local tree, and a candy owned by another repo is never covered by it. Locally here the top box composes the local `agentteams` candy with no @github pin. The images live in box/ discovered files rather than inline: a single document's top-level node names are globally unique, and the candy/ file already declares the `agentteams` CANDY (cross-FILE cross-kind reuse is permitted; the loader routes by shape). cachyos-base is a LOCAL base box rather than a namespace import of distro-cachyos: importing that namespace drags in its charly-marketplace candy, which references this repo's own layer-agentteams candy via @github — resolving to the local candy and raising a shadow warning. It also composes distro-cachyos's cachyos-base-check candy, which gives this external-base image a version via its candy chain (a candy-free external-base image refuses to build) and verifies the v3-optimized base. The receiving config is migrated to the current schema head and the candy CI pin bumped (v2026.238.1242 -> v2026.256.1316). R10: `charly check run check-agentteams-pod` PASS (steps=14, 425s) — the controller spawns the manager from the pre-built agentteams-manager image and a Worker CR from agentteams-worker, both reach Running; every service probe (minio, matrix, element, higress gateway/console) green; fresh update + check-live-rebuild green; teardown clean. Verdict: repo override active (CHARLY_REPO_OVERRIDE=github.com/opencharly/opencharly=...) — about the LOCAL tree. `charly box validate`: OK — checked 27 candies, 4 boxes, 3 deploys, 7 distros, 7 builders; 0 warnings, 0 errors. Assisted-by: opencode deepseek-v4.1-flash (fully tested and validated) * docs: re-freeze the PR body * docs: re-freeze the PR body * fix: relocate the snapshot bed's charly dependency; ignore the VM build dir * feat: add ADE plans to the relocated agentteams boxes * docs: add the cachyos-base box description (ADE) * feat: relocate only the runnable agentteams beds (pod + snapshot) * docs: correct the agentteams box comment and .gitignore prose * fix: pin the Higress gateway concurrency to 1 (root-cause the startup crash) The pod-agentteams-higress candy's start-gateway.sh execs pilot-agent with `--concurrency=${GATEWAY_CONCURRENCY:-16}`. At the upstream default of 16, envoy's V8 WASM isolate initialisation segfaults once at startup (first root-caused in opencharly/charly@55dc23ea); the candy carries `restart: always` to self-heal it, and the two Higress bed checks papered over the down window with 28x2s sleep-retry loops. Fix: set GATEWAY_CONCURRENCY=1 at the agentteams composition so the envoy invocation is single-threaded and no longer crashes, then reduce the two checks to plain bounded readiness waits with no crash/restart framing. * docs: re-freeze the PR body against the final head * fix: migrate to schema 2026.261.1747 and pin the spec-261 pod provider The beds' config step failed on the frozen tree: the pinned [email protected] predates the spec-261 adopt and drops resolved_image, so `charly config` errored 'image not found in local storage'. The spec-261 adopt (opencharly/plugin-deploy-pod#12, tag v2026.266.1057) carries resolved_image through config-setup. Because v2026.266.1057 demands schema 2026.261.1747, this also cuts the project's version stamp over from 2026.249.2125 (charly migrate is a version-stamp-only change) and bumps the CI charly pin to v2026.269.0131 (the old v2026.256.1316 binary rejects schema 261). Both beds now pass end-to-end (pod 14/14 ok:true 1037s; snapshot 14/14 ok:true 803s) with plugin-deploy-pod resolved from v2026.266.1057. * docs: re-freeze the PR body against the final head * docs: state the VM bed's concrete prerequisite advance (not a park) * docs: correct the box provenance comment; restore the final newline * docs: re-freeze the PR body against the final head * docs: re-freeze the PR body against the final head * docs: re-run the validator on the final body * docs: re-run the validator on the final body --------- Co-authored-by: Andreas Trawoeger <[email protected]>
Summary
The schema-249→261 wave leg for the out-of-process
deploy:podtarget — a prerequisite for the engine-provider-class cutover (spec#144/#145). Without it a 261charlycannot drive a pod bed:plugin-deploy-podself-loads the project config vialoaderkit, and its loader'sGateSchemaVersionrejects a config NEWER than its own compiled spec HEAD (249), degrading the deploy key to the image name — the bogusimage not found in local storage: <key>:<key>-<calver>symptom documented inresolve_ref.go.spec/fleetis removed in spec 261; every removed identifier is swept:spec.FleetNode→spec.DeployNode,deploykit.FleetConfig→deploykit.DeployConfig,FleetConfigMutator→DeployConfigMutator,MutateFleetConfig→MutateDeployConfig,SaveFleetConfig→SaveDeployConfig,LoadFleetConfig→LoadDeployConfig,ProjectFleetConfig→ProjectDeployConfig,MarshalFleetNode→MarshalDeployNode,loaderkit.BuildFleetNode→BuildDeployNode,loaderkit.LoadHostFleetConfigViaExecutor→LoadHostDeployConfigViaExecutor,spec/fleet.CandyMapKey→spec/deploy.CandyMapKey,dc.Fleet→dc.Deploy, and the plugin-localmutateFleet/saveFleet/saveFleetStubidentifiers + prose.#EngineName.entry.Engineis now the typedspec.EngineName; the two read sites convert explicitly (string(entry.Engine)), matching the sdk's owndeploykit/box_engine.go/deploy_file.goreads.TestMigratedTreeStampAcceptedByEmbeddedParserpinned the pre-wave 249 cap; it now asserts against the embeddedspec.SchemaVersion(the module's HEAD), so it tracks every future bump instead of re-breaking.v0.2026249.2129→v0.2026266.545; sdkv0.2026249.2114→v0.2026266.623. Thego.sumtransitively refreshesgolang.org/x/{crypto,mod,net,sync,sys,term,text,tools}; no require-set change beyond the two pins.How tested
Change-class gate: the R10 disposable bed
check-boxload-pod(kind:pod,disposable: true) driven end to end with this branch tree composed via the documentedCHARLY_REPO_OVERRIDEverify-before-push mechanism, on the engine-cutover branch binary2026.266.0826(charly version=2026.266.0826).Fresh rebuild: the bed's step 6 IS a fresh rebuild (
charly update), and the post-rebuildcheck-live-rebuildre-evaluates the plan against the rebuilt container..check/check-boxload-pod/2026.266.0941/summary.yml→ok: true, every stepok: true, 0 failed steps.Disposable target:
check-boxload-podcarriesdisposable: true(kind:pod); the bed's own teardown (cleanup) runs against it.Changed-path execution: the whole migrated plugin executes live —
loadDeploy/SaveDeployConfig/MutateDeployConfig/resolveDeployRefLocal/config-setup/start/removeall ran in the bed'sconfig/start/cleanupsteps. The ONE line whose non-default branch did not fire is thestring(entry.Engine)conversion (this bed's deploy authors noengine:, soentry.Engine == ""); it is compile-enforced against the typed field. Per A3 the honest tier for that line alone isanalysed on a live system— hence the footer below.Local gates:
gofmt -l .(empty) ·go build ./...·go vet ./...·go test ./...GREEN.Project-rulebook rule-compliance
/charly-check:check,/charly-internals:plugin,/charly-internals:cutover-policy,/charly-build:migrate,/charly-internals:git-workflowbefore editing.check-boxload-podconfig-step failure was root-caused (not called environmental) toGateSchemaVersionrejecting a newer-than-supported config; the fix is in this PR. See Schema 249→261 ecosystem wave (engine-provider-class dependency) charly#633.deploy), oneCandyMapKeyinspec/deploy; no alias retained.fleetidentifier is swept;grep -rn "spec/fleet\|\.Fleet\b\|FleetConfig\|FleetNode"overcandy/is empty.summary.ymlshows 0 failed steps.charly version 2026.266.0826matches source.check-sidecar-podis a sibling gate tracked separately (#633), not deferred scope of THIS PR.GateSchemaVersionfailure was proven live before the fix, then re-proven fixed live.disposable: trueteardown.Change classification
Plugin Go code on a runtime path (pod deploy target: config/start/remove) + in-module vocabulary migration + dependency pin bump. Verification gate: the
check-boxload-poddisposable R10 bed (fresh rebuild) + local Go gates. Attribution tier:analysed on a live system(the migrated paths ran live; the one non-default#EngineNamebranch did not fire in this bed).Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)