Skip to content

feat(deploy-pod): adopt spec 261 — retire the fleet vocabulary, read EngineName - #12

Merged
github-actions[bot] merged 2 commits into
mainfrom
feat/schema-261
Sep 23, 2026
Merged

github-actions[bot] merged 2 commits into
mainfrom
feat/schema-261

Conversation

@aitrawog

@aitrawog aitrawog commented Sep 23, 2026 •

Copy link
Copy Markdown
Contributor

Summary

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 it 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.
  • Pins. spec v0.2026249.2129 → v0.2026266.545; sdk v0.2026249.2114 → v0.2026266.623. The go.sum transitively refreshes golang.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 documented CHARLY_REPO_OVERRIDE verify-before-push mechanism, on the engine-cutover branch binary 2026.266.0826 (charly version = 2026.266.0826).

Fresh rebuild: the bed's step 6 IS a fresh rebuild (charly update), and the post-rebuild check-live-rebuild re-evaluates the plan against the rebuilt container.

$ charly check run check-boxload-pod
[deploy-add] PASS 40.88s
[config]     PASS 32.443s      # ← the step that FAILED on the skew before this leg
[start]      PASS 25.826s
[check-live] PASS 1m43.056s
[feature-run] PASS 47.437s
[update]     PASS 2m13.748s    # fresh rebuild (R10)
[check-live-rebuild] PASS 1m38.688s
[feature-run-rebuild] PASS 46.396s
[cleanup]    PASS 29.628s
PASS (steps=14)

.check/check-boxload-pod/2026.266.0941/summary.yml → ok: true, every step ok: true, 0 failed steps.

Disposable target: check-boxload-pod carries disposable: 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 / remove all ran in the bed's config/start/cleanup steps. The ONE line whose non-default branch did not fire is the string(entry.Engine) conversion (this bed's deploy authors no engine:, so entry.Engine == ""); it is compile-enforced against the typed field. Per A3 the honest tier for that line alone is analysed on a live system — hence the footer below.

Local gates: gofmt -l . (empty) · go build ./... · go vet ./... · go test ./... GREEN.

Project-rulebook rule-compliance

  • R0 — loaded /charly-check:check, /charly-internals:plugin, /charly-internals:cutover-policy, /charly-build:migrate, /charly-internals:git-workflow before editing.
  • R1 (RCA) — the check-boxload-pod config-step failure was root-caused (not called environmental) to GateSchemaVersion rejecting a newer-than-supported config; the fix is in this PR. See Schema 249→261 ecosystem wave (engine-provider-class dependency) charly#633.
  • R2 (no deferral) — the skew is fixed in-tree; the sibling wave legs are named on #633, not parked.
  • R3 (no duplication) — one vocabulary (deploy), one CandyMapKey in spec/deploy; no alias retained.
  • R4 (no workaround) — the fix is the vocabulary/pin migration, not a shim.
  • R5 (hard cutover) — every removed fleet identifier is swept; grep -rn "spec/fleet\|\.Fleet\b\|FleetConfig\|FleetNode" over candy/ is empty.
  • R6/R7/R8 — green build/vet/test + the R10 bed above; the run's summary.yml shows 0 failed steps.
  • R9 — the bed runs the in-development toolchain (branch binary), not a stale release; charly version 2026.266.0826 matches source.
  • R10 — the disposable-bed fresh-rebuild cycle above; check-sidecar-pod is a sibling gate tracked separately (#633), not deferred scope of THIS PR.
  • RDD — the GateSchemaVersion failure was proven live before the fix, then re-proven fixed live.
  • ADE — the candy's baked plan is unchanged; the bed composes and runs it.
  • Disposable-only autonomy — the only destroy is the bed's own disposable: true teardown.

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-pod disposable R10 bed (fresh rebuild) + local Go gates. Attribution tier: analysed on a live system (the migrated paths ran live; the one non-default #EngineName branch did not fire in this bed).

Assisted-by: opencode ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

…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)
@github-actions

Copy link
Copy Markdown

Review — BLOCK

Head SHA: 9ced9052b8e7d2566468f8308b04a035d0c409fb (branch: feat/schema-261)

Change class: candy (plugin) code/config — spec-261 fleet→deploy vocabulary rename + typed spec.EngineName read + spec/sdk pin bump (no new runtime behavior beyond the typed read).

Blocks

  1. A1 — body is missing the required Project-rulebook rule-compliance section. The body supplies only Summary and How tested; there is no section answering every applicable rule (R0–R10, RDD/ADE/SDD, disposable-only, concurrency, the T-series) with a one-line HOW — or N/A — <reason> where the class excludes it. Add it. (Its absence is a blank applicable section, which A1 blocks on.)

  2. A1/A3 — the changed code path's live execution is unproven, so the fully tested and validated tier is not justified. The only behavioral change in the diff is the typed spec.EngineName read — candy/plugin-deploy-pod/resolve.go:87 (return string(entry.Engine), nil) and candy/plugin-deploy-pod/config_setup_helpers.go (provisionData, dataEngine = string(entry.Engine)). The pasted bed output shows the config/update steps PASS, but nothing states that the entry.Engine != "" branch was actually taken against the fresh rebuild. Per A3, a changed branch that never ran live is at most analysed on a live system. Paste evidence the branch executed, or downgrade the tier accordingly.

Verdict: BLOCK


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions

Copy link
Copy Markdown

Review — PASS

Head SHA: 32f1b8c196153ae3cbcf49a1da546cb3a2a17390 (branch: feat/schema-261)

Security screen: PASS (no T1–T4 finding; diff is a mechanical fleet→deploy vocabulary rename + typed spec.EngineName read + two dependency pin bumps, no scope mismatch, secrets, egress, weakened guardrails, or supply-chain surprises).
Checklist: All applicable rules PASS or NA (A1 body now carries Summary / How tested / tier / full Project-rulebook rule-compliance section and ends with the italicized *Assisted-by: … (analysed on a live system)* line; A2/A3 runtime gate check-boxload-pod pasted with fresh rebuild and the tier honestly lowered for the one unexecuted string(entry.Engine) branch; B4–B18 NA or satisfied — placement is candy, no alias/core/sdk growth, no cue/proto/generation touch, disposable-only teardown).

Comment intake: Comment 5792817249 (github-actions[bot], at superseded SHA 9ced9052…) — both findings stale-superseded: its "missing rule-compliance section" is now present, and its "fully tested and validated unjustified" no longer holds because the body now claims the honest analysed on a live system tier and explicitly states the entry.Engine == "" non-default branch did not fire.

Verdict: PASS


ollama-cloud/deepseek-v4.1-flash — action-review.

View action run

@github-actions
github-actions Bot enabled auto-merge (squash) September 23, 2026 10:55
@github-actions
github-actions Bot merged commit 5095c9f into main Sep 23, 2026
2 checks passed
charly-auto-merge Bot added a commit that referenced this pull request Sep 23, 2026
@aitrawog
aitrawog deleted the feat/schema-261 branch September 25, 2026 19:22
aitrawog pushed a commit to opencharly/layer-agentteams that referenced this pull request Sep 26, 2026
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.
github-actions Bot pushed a commit to opencharly/layer-agentteams that referenced this pull request Sep 26, 2026
…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]>
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.

2 participants