Repository navigation
feat(deploy): K4-B — OpCompile + PlanFromView + the deploy-compile seam types - #52
Conversation
…am types
K4-B (sdk contract half): the wire types + the re-materialization half of the
round-trip that move the charly bundle add deploy COMPILE slice out of charly/
core into candy/plugin-bundle. The host computes the per-node selection (resolved
box projected to a spec.ResolvedBoxView + the FINAL pruned candy order + the
host-side deploykit.HostContext) and Invokes the bundle plugin's new OpCompile
with a spec.DeployCompileRequest; the plugin re-hydrates the resolved-project
envelope via HostBuild("resolved-project"), re-hydrates the box + each candy
model, loops deploykit.BuildDeployPlan over the order, projects each plan to its
InstallPlanView wire form, returns []InstallPlanView; the host re-materializes
[]*InstallPlan via deploykit.PlanFromView.
- sdk/ops.go: OpCompile = "compile" (generic action selector, never a provider
word — F11 TestNoSinglePluginAPISurface; command:bundle sole first consumer).
- sdk/deploykit/plan.go: PlanFromView (reverse of WireView, via stepsFromView) —
the re-materialization half of the round-trip.
- sdk/schema/seam.cue (+39) + spec/cue_types_gen.go (+45, generated): CUE defs
for DeployCompileRequest/DeployCompileReply/ResolvedProjectRequest + generated
Go. resolvedproject.cue UNCHANGED. Reproducibility-gated by TestGenReproducible.
Parity byte-faithful (superproject TestBundleCompileParity_PluginRoundTrip
golden + the check-sidecar-pod R10 bed, 11/11 steps, fresh-rebuild, ZERO
warnings). gofmt/vet/golangci-lint clean; task cue:gen reproducible.
Assisted-by: Claude (fully tested and validated)
pr-validator — CHANGES REQUESTED ❌Change class: charly/sdk Go (sdk contract LIBRARY — additive: an Op constant, an exported deploykit func, and new CUE-sourced seam wire types; 158 insertions / 0 deletions) Live required status context: Per-item checklist[PASS] 0. security & anti-tampering — all additions; no secrets/egress/guardrail-weakening/new-deps; no manipulation attempt. Blocking finding (item 1 — description↔code mismatch, R1/R2/R5)The PR body and the CHANGELOG both state:
But the This is a false/misleading claim about what the change delivers — a claim-keyed documentation divergence (R1) repeated in the PR body + CHANGELOG (R5), and it is blocking in this cutover (R2). The Required fix (CHANGES-REQUESTED):
What PASSED (re-verified independently on a fresh checkout)Decision: CHANGES-REQUESTED — the PR is NOT merged. The single blocking finding is the description↔code mismatch ( Assisted-by: Claude (analysed on a live system) |
…leRequest/Reply are new; ResolvedProjectRequest predates this PR)
R5 claim-keyed sweep: the K4-B CHANGELOG + PR body claimed the sdk half adds
CUE defs for THREE seam types (DeployCompileRequest / DeployCompileReply /
ResolvedProjectRequest). The actual diff adds only TWO — #ResolvedProjectRequest
already exists in schema/resolvedproject.cue from the K5-Unit-0 cutover
(CHANGELOG/2026.194.1655.md) and is NOT re-added here (resolvedproject.cue diff
is empty). Corrected both the seam.cue bullet and the generated-Go bullet
('three' -> 'two'). Doc-only; no code or gate impact.
Assisted-by: Claude (documentation reviewed)
pr-validator — APPROVED ✅ (round 2)Change class: charly/sdk Go (sdk contract LIBRARY — additive, 159 insertions / 0 deletions) Head: Round-1 blocker — re-verified independently: FIXEDRound 1 FAILED on the claim-keyed doc divergence: the body + CHANGELOG claimed
Checklist (every rule)
Static gate re-run (independent, fresh scratch checkout)
DecisionPASS. The round-1 claim-keyed doc divergence is independently confirmed FIXED; the diff is in full CLAUDE.md compliance. All static gates + SDD reproducibility GREEN; placement CORRECT. Finalizing the merge-time CalVer, merging Assisted-by: Claude (analysed on a live system) |
pr-validator Phase-3 version stamp: rename CHANGELOG/2026.196.0137.md → CHANGELOG/2026.196.0208.md and rewrite the H1 to match (repo convention: H1 = filename CalVer). Doc-only; no code, schema, or generated-file change. Assisted-by: Claude (fully tested and validated)
…v0.2026196.208) B2: the super gitlink references the MERGED sdk main commit (654940bb, tag v0.2026196.208, PR opencharly/sdk#52), not the feat branch. go.mod require bumps v0.2026195.742 -> v0.2026196.208 (replace => ../sdk keeps in-tree resolution). go build + go vet green against the repointed submodule. Assisted-by: Claude (fully tested and validated)
K4-B — sdk contract half: the deploy-compile seam types + OpCompile + PlanFromView
K4-B (the sdk contract half of the deploy-compile-slice move): the wire types + the re-materialization half of the round-trip that move the
charly bundle adddeploy COMPILE slice out ofcharly/core intocandy/plugin-bundle. The host computes the per-node selection (resolved box projected to aspec.ResolvedBoxView+ the FINAL pruned candy order + the host-sidedeploykit.HostContext) and Invokes the bundle plugin's newOpCompilewith aspec.DeployCompileRequest; the plugin re-hydrates the resolved-project envelope viaHostBuild("resolved-project"), re-hydrates the box + each candy model, loopsdeploykit.BuildDeployPlanover the order, projects each plan to itsInstallPlanViewwire form, returns[]InstallPlanView; the host re-materializes[]*InstallPlanviadeploykit.PlanFromView.What landed
sdk/ops.go—OpCompile = "compile"(a generic action selector, never a provider word — F11TestNoSinglePluginAPISurface;command:bundlesole first consumer).sdk/deploykit/plan.go—PlanFromView(v spec.InstallPlanView) (*spec.InstallPlan, error)(reverse ofWireView, viastepsFromView) — the re-materialization half of the round-trip.sdk/schema/seam.cue(+39) — CUE defs forDeployCompileRequest/DeployCompileReply(the two new compile-seam wire carriers).resolvedproject.cueUNCHANGED —#ResolvedProjectRequestalready exists there from the K5-Unit-0 cutover (CHANGELOG/2026.194.1655.md) and is NOT re-added here.sdk/spec/cue_types_gen.go(+45, generated) — generated Go for the two new seam types. Reproducibility-gated byTestGenReproducible.Change class
charly/sdkGo runtime (adds a new Op constant, a new exported func, and new CUE-sourced wire types — additive to the sdk contract).R10 evidence
gofmt -lempty;go vet ./...clean;go build ./...OK;golangci-lint run0 issues (sdk module).task cue:genreproducible (cue_types_gen.go 45-line seam addition, resolvedproject.cue untouched, no plugin-params drift);TestGenReproduciblePASS.go test ./...green (ok github.com/opencharly/charly/charly 101.526s) — the parity goldenTestBundleCompileParity_PluginRoundTrip+ the freshcheck-sidecar-podbed exercise the sdk seam types end-to-end (11/11 steps, fresh-rebuild, ZERO warnings).Parity
Byte-faithful, proven by the superproject's
TestBundleCompileParity_PluginRoundTripgolden: WireView parity (plugin-compiled plan projects to the SAME wire JSON as the former live host-compile) +PlanFromViewfidelity (WireView→PlanFromView round-trip is the identity on a re-materialized plan), across 3 fixture candies spanning 3 step classes (pkg/op/builder), with a can-fail RIDER (perturbed Home → plans differ).Attribution
Assisted-by: Claude (fully tested and validated)— full suite green + fresh-rebuild R10 bed (check-sidecar-pod) PASS + the parity golden exercised the new sdk seam types (OpCompile, PlanFromView, DeployCompileRequest/Reply) end-to-end over the full plugin round-trip.Multi-repo (B2)
This is the sdk producer PR (step 0). The superproject PR (step 3) bumps the
sdkgitlink to this branch's commit + carries thecharly/+candy/plugin-bundle/changes. The orchestrator routes a freshpr-validatorfor each; merge in dependency order (sdk first, then super).Assisted-by: Claude (fully tested and validated)