Repository navigation
feat(deploykit)!: plugin-declared DeployTraits unify into the descent descriptor (P9 sdk half) - #26
Conversation
… descriptor (P9 sdk half)
A substrate's venue behaviour becomes PLUGIN-DECLARED data — a #DeployTraits the
substrate plugin advertises over Describe — unified INTO the existing loader-stamped
descent descriptor (R3: one mechanism, no parallel word->transport table). The deploy
Mechanism consults the stamped trait off node.Descent, never a switch on the substrate
kind word (the boundary law's incomplete-seam).
- proto: DeployTraits {venue, image_backed, image_context, machine_venue,
exclusive_venue, leaf_only} + deploy_traits=11 on ProvidedCapability (regenerated pb).
- CUE: #DeployTraits embedded into #DescentDescriptor (transport/host_rooted stay the
DERIVED nesting view); regenerated spec.
- schema.go: ProvidedCapability.DeployTraits; BuildCapabilities marshals it.
- kit/descent.go: DELETE the descentForTarget word->transport switch; StampDescent +
DescentFromTraits derive transport/host_rooted generically (byte-preserved).
- deploykit/deploy_tree.go: DELETE the dead post-order teardown walk
(WalkDeploymentTreePostOrder + DeriveChildExecutor + containerChildExecutor +
containerNameForNode) whose switch node.Target the trait-based flat-path chain
(AppendHopForFlatPath) supersedes for both deploy AND teardown (S2). VmChildExecutor
stays (the live flat-path visitor hops through it for a vm venue).
- deploykit/install_build.go: machine-venue is a MachineVenue bool off the trait, not a
HostContext.Target string compared to "vm" (a dead arm).
- deploykit/deploy_state.go: BedCheckLiveRefs android-skip reads the venue trait;
findVmDeploy keeps the persisted-Target read (the state STRIPS node.Descent on save),
allowlisted in the consumer's word-switch gate with a tracked persist-descent follow-up.
Behaviour-neutral: descent-derived transport/host_rooted byte-preserved (unit test proves
all former words). go test ./... green; golangci-lint run+fmt clean; gofmt/vet clean; gen
reproducible. Proven on the consumer's disposable check-charly-vm vm bed (7/7 steps, incl.
the fresh update gate) + check-substrate (all 5 kinds) + check-group (pod+vm+android+teardown).
Assisted-by: Claude (fully tested and validated)
pr-validator — APPROVED ✅Change class: charly/sdk Go — deploy-Mechanism de-branching (plugin-declared Independently re-derived against R0–R10 + the boundary law / SDD / install-plan skills. Toolchain re-run LIVE from the sdk tree at the PR head:
Checklist (every rule):
R10 evidence verified coherent (consumer disposable beds, via Note (non-blocking): one historical Decision: APPROVED. Behaviour-neutral de-branching: the deploy Mechanism ( Assisted-by: Claude (analysed on a live system) |
pr-validator finalizes the merge-time CalVer for #26: renames the CHANGELOG placeholder 2026.192.2004 -> 2026.192.2018 and rewrites its H1 to match. Assisted-by: Claude (fully tested and validated)
… not the kind word (P9 consumer) (#63) The superproject (consumer) half of P9 — traits/descent de-branching. Every deploy/check CONSULT site that branched on HOW a substrate behaves (venue, machine-ness, chain-leaf) now reads the plugin-declared #DeployTraits stamped onto node.Descent, never a switch/== on the concrete substrate kind word, closing the boundary-law incomplete-seams. - candy/plugin-substrate declares the canonical per-word DeployTraits table (the single source kit.StampDescent stamps from). - plugin_provider_common.go/install_plan.go: capMeta.traits + declaredDeployTraits() + deployTraitsCarrier. - deploy_tree.go: deployTraitsFor/effectiveTarget/nodeTraits/deployTraitDescent; stampBundleDescents via kit.StampDescent. - Consult sites de-branched to read the trait, not node.Target == "<word>". - no_substrate_word_switch_gate_test.go: an AST gate over BOTH charly/*.go and sdk/deploykit/*.go that FAILS on any regrown .Target word behaviour-branch. Review-round fix (196257f): external DEPLOY-class substrates (deploy:<word>, e.g. exampledeploy) resolve to the external-in-place Venue:"none" trait via the isExternalDeploySubstrate registry-recognition D-item, and checkLocalTarget host-routes the none venue alongside shell/parent — restoring host-side check probing without regrowing a kind-word switch. Proven on the check-exampledeploy disposable bed (check-live now green). Producer: opencharly/sdk#26 (merged + tagged v0.2026192.2018); sdk submodule + charly/go.mod bumped. Assisted-by: Claude (fully tested and validated) Claude-Session: https://claude.ai/code/session_01W8GPhuyWWs5XwJyJYtCaxE
Summary
The sdk half of P9 (traits/descent de-branching). A substrate's venue behaviour becomes plugin-declared data — a
#DeployTraitsthe substrate plugin advertises over Describe — unified INTO the existing loader-stamped descent descriptor (R3: ONE mechanism, no parallel word→transport table). The deploy Mechanism consults the stamped trait offnode.Descent, never aswitchon the substrate kind word (the boundary law's incomplete-seam).plugin.proto+ regeneratedplugin.pb.go):DeployTraits {venue, image_backed, image_context, machine_venue, exclusive_venue, leaf_only}+deploy_traits = 11onProvidedCapability.schema/deploy.cue→spec/cue_types_gen.go):#DeployTraitsembedded into#DescentDescriptor(transport/host_rooted stay the loader-DERIVED nesting view).schema.go:ProvidedCapability.DeployTraits;BuildCapabilitiesmarshals it.kit/descent.go: DELETE thedescentForTargetword→transport switch;StampDescent+DescentFromTraitsderive transport/host_rooted generically (byte-preserved).deploykit/deploy_tree.go: DELETE the dead post-order teardown walk (WalkDeploymentTreePostOrder+DeriveChildExecutor+containerChildExecutor+containerNameForNode) whoseswitch node.Targetthe trait-based flat-path chain (AppendHopForFlatPath) supersedes for both deploy AND teardown (S2).VmChildExecutorstays (live flat-path hop for a vm venue).deploykit/install_build.go:MachineVenuebool off the trait (retires the deadHostContext.Target=="vm"arm).deploykit/deploy_state.go:BedCheckLiveRefsandroid-skip → venue trait;findVmDeploykeeps the persisted-Targetread (the state STRIPSnode.Descenton save), allowlisted in the consumer's word-switch gate with a tracked persist-descent follow-up.Change class
SDK Go — deploy Mechanism de-branching. Behaviour-neutral (the descent-derived transport/host_rooted is byte-preserved).
R10 evidence
DescentFromTraitsderives the same transport/host_rooted the deleteddescentForTargetswitch did — unit test (kit/descent_test.go) proves all former substrate words.CHARLY_REPO_OVERRIDEon the local tree):check-charly-vm(vm) — PASS 7/7, total 229s: vm-build · vm-create · deploy-add · bring-up-members · check-live · update (99s, the R10 fresh-rebuild gate) · cleanup. Exercises vm descent +findVmDeploy+ deploy/teardown.check-substrate(all 5 substrate kinds) ·check-group(pod+vm+android+teardown, live) ·check-structkind·check-local— all PASS.go test ./...green;golangci-lint run0 issues +golangci-lint fmt --diffclean;gofmt -l/go vetclean; gen (proto:gen+cue:gen) reproducible.CLAUDE.md rule compliance
descentForTargetwas the dup).descentForTarget, the dead post-order walk, andHostContext.Targetare DELETED;git grepon each returns only CHANGELOG. The dead-code deletion (S2) removed the teardown word-switch entirely, superseded by the flat-path chain.updaterebuild; gen artifacts reproducible..Target == "<substrate>"behaviour-branch, teeth-verified on both trees.Assisted-by: Claude (fully tested and validated)