Repository navigation
feat(sdk)!: land deploy/IR machinery — deploykit + kit + spec + sshx (P4) - #14
Conversation
…(P4)
Moves the whole deploy/IR machinery out of charly core into the sdk so any
plugin importing the sdk can compile deploy plans, construct executors, walk
deploy trees, and read/write the deploy ledger.
- deploykit: BuildDeployPlan compiler (reads candies via the new CandyModel
interface — the concrete runtime Candy stays in charly), the InstallStep
vocabulary + step_view, deploy tree/chain, deploy-state model, plan,
provides, bundle_derive. Charly-coupled legs inject as seams
(CompileActOp / CompileServiceSteps / OpInContext). ResolvedBox from buildkit.
- kit: executor implementations, install_ledger, reverse_ops, builder_run,
runtime_config store, pure helpers (env/envfile/http_fetch/ports/transfer/
engine/container_name/readiness).
- spec: the IR E-envelope (install_plan, deploy_executor).
- sshx: ssh_client + ssh_tunnel, re-homed from vmshared.
BREAKING CHANGE: vmshared.SSH{Client,Tunnel} move to the new sshx package;
the deploy/IR machinery now lives in deploykit/kit/spec.
Assisted-by: Claude (fully tested and validated)
Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
pr-validator — CHANGES REQUESTED ❌Change class: charly/sdk Go (library move — deploy/IR machinery into the sdk) Independent re-verification (trusted nothing; re-ran every gate):
Gates I re-ran in the sdk repo:
Blocking finding (item 17 / R1 / clean-architecture)
Decision: Not merged; Assisted-by: Claude (analysed on a live system) |
golangci-lint `unused`: `var sortStrings = kit.SortStrings` in deploykit/candy_field_aliases.go is referenced nowhere — deploykit sorts nothing; the alias was added anticipating a Candy-struct move that the CandyModel-interface approach made unnecessary (Candy stayed in charly). Delete it. Sweep the stale sdk/kit/descent.go comment to the surviving exported name AppendHopForFlatPath (R5). golangci-lint run ./... → 0 issues. (Fixup on feat/sdk-deploykit-p4 addressing PR #14's failed validation; force-push is banned, so this lands as an added commit — squash-merge to keep the cutover atomic.) Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
pr-validator — CHANGES REQUESTED ❌ (re-validation of d9f053e)Change class: charly/sdk Go (deploy/IR machinery move) Round-1 blocker: FIXED ✅The dead
New blocker: the fixup's R5 sweep is incomplete (R1 sibling-set / R5 grep self-test)
The real symbol is
Two acceptable fixes (either resolves it)
Heads-up on merge mechanics (for the eventual PASS)
Decision: Not merged; Assisted-by: Claude (analysed on a live system) |
…e + gen) Round-1 fixup swept the stale lowercase `appendHopForFlatPath` doc-comment to the exported `AppendHopForFlatPath` in kit/descent.go, but the IDENTICAL claim lived in its sibling-set — schema/deploy.cue:51 and its generated spec/cue_types_gen.go:1035. R1 requires the whole sibling-set fixed in the same cutover. Edit the CUE source comment + regenerate via task cue:gen (comment-only, behavior-neutral: vocab/version unchanged, TestGenReproducible passes, golangci-lint 0). `git grep appendHopForFlatPath` in sdk now returns only CHANGELOG. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
…/IR machinery move — deploykit + kit + spec + sshx, P4) Merge-time CalVer generated by the pr-validator at merge (never author-time). Renames the placeholder CHANGELOG/2026.190.0755.md to the merge minute. Assisted-by: Claude (fully tested and validated) Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_01RNACjWQyGHG7QXtWGuWjtP
pr-validator — APPROVED ✅ (re-validation of a3ddd09)Change class: charly/sdk Go (deploy/IR machinery move: deploykit + kit + spec + sshx) Both prior blockers are resolved and independently re-verified:
Gates I re-ran on the final code myself:
R10: the behavioral change (the deploy-machinery move) was gated by the full superproject 17-bed disposable roster with fresh-rebuild Boundary law: charly-coupled compiler legs are injected as seams ( Merge: rebase (repo is rebase-only: Decision: all R0–R10 + pillars satisfied; merging via Assisted-by: Claude (fully tested and validated) |
golangci-lint `unused`: `var sortStrings = kit.SortStrings` in deploykit/candy_field_aliases.go is referenced nowhere — deploykit sorts nothing; the alias was added anticipating a Candy-struct move that the CandyModel-interface approach made unnecessary (Candy stayed in charly). Delete it. Sweep the stale sdk/kit/descent.go comment to the surviving exported name AppendHopForFlatPath (R5). golangci-lint run ./... → 0 issues. (Fixup on feat/sdk-deploykit-p4 addressing PR #14's failed validation; force-push is banned, so this lands as an added commit — squash-merge to keep the cutover atomic.) Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
Summary
P4 of the core-minimization program: moves the whole deploy/IR machinery out of
charly core into the sdk so any plugin importing the sdk can compile deploy plans,
construct executors, walk deploy trees, and read/write the deploy ledger — the literal
form of "a plugin can do EVERYTHING" (kernel/plugin boundary law).
BuildDeployPlancompiler (reads candies via the newCandyModelinterface; the concrete runtime
Candystays in charly and implements it — zerotest-fixture churn), the InstallStep vocabulary +
step_view, deploy tree/chain,deploy-state model,
plan,provides,bundle_derive. Charly-coupled legs inject asseams (
CompileActOp/CompileServiceSteps/OpInContext);ResolvedBoxfrombuildkit.install_ledger,reverse_ops,builder_run, theruntime_configstore, and the pure helpers (env/envfile/http_fetch/ports/transfer/engine/container_name/readiness).
install_plan,deploy_executor).ssh_client+ssh_tunnel, re-homed fromvmshared.BREAKING:
vmshared.SSH{Client,Tunnel}→ newsshxpackage; deploy/IR machinery nowlives in
deploykit/kit/spec. In-tree consumers (charly via thereplacedirective)are updated in the paired superproject PR.
Change class
charlyGo code / sdk library move — behavior-neutral. The sdk is consumed in-tree viareplace github.com/opencharly/sdk => ../sdk, so the superproject disposable R10 bedroster IS the sdk's runtime gate.
R10 evidence — full roster, all 17 disposable beds green (fresh-rebuild
updateincluded)go test ./...green both repos;gofmt -lclean both repos. Every bed'ssummary.ymlreports
ok: truewith its fresh-charly update/ rebuild step passing (e.g. check-pod:image-build214s +update44s +feature-run-rebuild8s; check-k3s-vm:update78s;check-k8s-deploy:
update-image+check-live-rebuild).Tier
fully tested and validated— full 17-bed roster green with fresh-rebuild gates, both reposgo testgreen, gofmt clean.R0–R10
ok: true)CandyModelinterface, alias re-exports, no duplicationcharly/{install_build,deploy_chain,deploy_executor*,env,envfile,http_fetch,install_ledger,reverse_ops,runtime_config,step_view}.goDELETED in the paired superproject commit;git grepfinds moved identifiers only via alias re-exports + CHANGELOGAssisted-by: Claude (fully tested and validated)