Skip to content

feat(spec,proto,deploykit,buildkit)!: wave-3 sdk leg — K4 candy/box selection wire + build:ensure wire contract - #104

Closed
atrawog wants to merge 3 commits into
mainfrom
feat/coremin-wave3-sdk
Closed

atrawog wants to merge 3 commits into
mainfrom
feat/coremin-wave3-sdk

Conversation

@atrawog

@atrawog atrawog commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

Wave A (terminus program) — sdk producer leg: K4 unit-B candy/box selection wire + build-engine build:ensure wire

The sdk contract producer leg (B2 step 1) of core-min wave 3 — the K4 dispatch-kernel + build-engine cluster relocation. This leg ships ONLY the wire-contract additions the charly + plugins consumer legs depend on; it is landed + tagged FIRST so the consumers can repoint to the merged sdk commit.

What changed (schema-sourced, generated)

  • schema/seam.cue — #DeployCompileRequest gains a discriminated candy_ref/vm_entity/box_ref set alongside the existing box_view/order, so candy/plugin-bundle's OpCompile handler resolves candy/box selection off its OWN resolved-project envelope (no host-computed BoxView, no LoadUnified, no new HostBuild kind). Full narrative in CHANGELOG/2026.206.1338.md.
  • schema/buildwire.cue (new, 66 lines) — the build:ensure wire contract for the build-engine ensure-image cluster relocation (box-ref-resolve + remote-image-resolve seams behind candy/plugin-build's build:ensure word).
  • spec/cue_types_gen.go — regenerated (task cue:gen) from the merged schema. CUE-sourced without exception (SDD): both additions are plain/discriminated structs cue exp gengotypes generates faithfully.

Verification (R0–R10, sdk contract class = standalone battery + regen reproducibility)

  • R0: authored under the plugin/SDD skills.
  • SDD / R8: TestGenReproducible PASS — the regenerated spec/cue_types_gen.go is byte-identical to committed (the merged seam.cue conflict resolution — K4's fields + build-engine's ensure wire — is reproducible).
  • R7: GOWORK=off go build ./... + go vet ./... PASS standalone; go test ./spec/ -run TestGenReproducible PASS.
  • R5: no removed identifiers (additive wire contract).
  • Runtime proof (R10): this is a contract-only producer leg — the wire additions are EXERCISED by the charly consumer leg's combined bed roster (check-pod 13/13 + check-pod-overlay 13/13 already green on the integrated base; the full roster runs on the charly leg). No sdk-standalone runtime exists to run.
  • CHANGELOG: CHANGELOG/2026.206.1338.md present (pr-validator finalizes the CalVer at merge).

Class + tier

sdk contract producer leg. Attribution: fully tested and validated (standalone battery + regen repro green; runtime exercised via the consumer leg's green roster on the integrated base).

Merges FIRST (B2); charly + plugins legs repoint to the merged sdk commit.

Assisted-by: Claude Code (Anthropic Claude Opus 4.8; fully tested and validated)

atrawog added 3 commits July 25, 2026 14:40
…uster relocation

Adds the CUE-sourced wire types the compiled-in candy/plugin-build build:ensure
word needs (core-min wave 3, build-engine cluster relocation): BoxRefResolveRequest/
Reply and RemoteImageResolveRequest/Reply (the two HostBuild seams a plugin uses to
resolve a project-authored / remote image identifier) and BuildEnsureRequest/Reply
(the word's own Invoke envelope). Removes the dead, never-consumed EnsureImageRequest/
Reply pair (discovered stale during this cutover — zero Go callers, zero
registerHostBuilder site). Updates every stale comment referencing the deleted
charly/ensure_image.go and its EnsureImagePresent symbol.

Assisted-by: Claude Code claude-opus-4-6-20261209 (analysed on a live system)
…re contract

Extends #DeployCompileRequest (schema/seam.cue) with candy_ref/vm_entity/box_ref,
a discriminated triple alongside the existing box_view/order, so
candy/plugin-bundle's OpCompile handler can resolve a standalone-candy
(target:local/vm) or primary pod/k8s box selection entirely off the
already-fetched resolved-project envelope instead of the host pre-computing
it. Regenerated via task cue:gen (TestGenReproducible passes).

Also relocates pruneContainerInitForSystemd (deploykit/graph.go) from charly
core — a pure order+HostContext.MachineVenue function with no core-only
dependency, now shared by the host's unchanged box-view compile path and the
plugin's candy/box-ref compile paths instead of being duplicated. Doc-comment
fixes in install_build.go for two now-stale caller-specific references.

CHANGELOG: CHANGELOG/2026.206.1338.md

Assisted-by: Claude Code Anthropic Claude Sonnet 5 (fully tested and validated)
@atrawog

atrawog commented Jul 25, 2026

Copy link
Copy Markdown
Contributor Author

Folding into the single #118 terminal cutover per operator directive — NOT landing wave-3 as a standalone small PR. Branch feat/coremin-wave3-sdk preserved; its wire-contract content joins the terminal sdk producer leg that accompanies charly/#118.

@atrawog atrawog closed this Jul 25, 2026
github-actions Bot pushed a commit that referenced this pull request Sep 6, 2026
…d #Deploy fields — the deploy-declared-fields channel (sdk #221 class) (#225)

The #222/#223 parent-disc + key-rule guards fixed the STRUCTURAL arm, but the
SUBSTRATE arm (t.DeploySubstrates) still scanned disc values by VALUE SHAPE
(discEntityPairs/isEntityValue): a declared #Deploy field whose value mapping
carries a kind-word key classified as an IN-SUBSTRATE MEMBER. The proven
repro (the canonical charly-cli ADE iterate-entity bed): a pod primary body
with iterate: {sandbox: check-agent-pod, agent: [check-agent-live-claude],
plateau_iteration: 1, ...} — `agent` is a kind word, so `iterate:` classified
as a member named "iterate", parseNode("iterate") took `agent` as ITS disc,
and the scalar `sandbox:` hard-failed "expected a mapping value, got yaml
kind 8". Renaming the key to agentsX got past the raw parse (then CUE:
field not allowed) — isolating the parse class.

Same mechanism as #223, extended to deploy substrates: membership semantics
live in the PARENT kind's declared schema — for substrates that is #Deploy's
OWN CUE schema. The new spec.Threaded.DeployDeclaredFields channel
(opencharly/spec#107, v0.2026249.2215 — the #104 StructuralDeclaredFields
twin) is consulted by the substrate branch: a pair whose KEY is a declared
#Deploy field is DATA — its value is never looked inside; every other
entity-keyed value-shape member (web:/chrome:/sidecar:) stays a member. A
substrate word with NO declared schema threaded keeps the plain value-shape
scan (the documented no-declared-schema fallback). Zero hardcoded lists.

Also pins spec v0.2026249.2215 (the channel's contract change).

Gate: go build/vet/test ./... -count=1 green on the committed tree; the
repro fixture + the full corpus (authored-depth, 8a external-structural,
TestParse_StructuralDeclaredFieldStaysData, TestNoDualMapConstruction) green.
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