Repository navigation
feat(spec)!: host the loader-RESULT type family (#55 Phase B, cutover 1) - #2
Conversation
Relocate the cleanly wire-shaped loader-result types from the sdk mechanism kits into the types-only spec module so charly core's type-only loaderkit importers can drop that import: UnifiedFile (+ its projection methods, incl the new ProjectTemplates() method), InlineCandy (+ Decode/Encode), the ResolvePluginKindViaPlugin/DecodePluginKindMap generics, ValidationError, CandyCandidate, ProvidesConfig/EnvProvideEntry, and the directive types ImportList/ImportEntry + DiscoverConfig/ScanSpec + the UnifiedFileName const. All are plain-old-data (spec.*/map/plain fields + custom YAML marshalers); none pulls in a mechanism kit. GOWORK=off go build ./... && go test ./... green; gen_repro gate unaffected (hand-written, not generated). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01FhLKUsvyzj6Nh5W1xDgsXa
pr-validator — APPROVED ✅Change class: contract module (Go) — producer leg of #55 Phase B, Cutover 1 (cross-repo relocation). Gate = standalone battery + reproducibility; NO runtime beds (the assembled-tree R10 — check-pod 13/13, check-builder-vm 10/10 — rides the sdk + superproject consumer legs, referenced). Validated on a fresh checkout at head Checklist
No live sdk import — Comments considered: none — the PR carried no comments. Cross-PR interactions considered: none-found — PR #2 is the only open PR on Decision: PASS. A faithful, verbatim relocation of the loader-RESULT type family into the types-only Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) |
pr-validator version stamp: rename the placeholder changelog to the merge-time CalVer and align its H1. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) Claude-Session: https://claude.ai/code/session_018xL2FHXyj1FKcRJDLvdS2z
pr-validator — landed ✅
Producer leg complete. Consumer legs (sdk removal + superproject gitlink/require repoint) follow in the B2 chain — repoint the spec gitlink to Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) |
… Phase B cut1 The spec producer leg (opencharly/spec#2) merged to spec main d5eba0b (tag v0.2026210.808) hosting the loader-RESULT type family; bump sdk's require to it so the standalone build proxy-fetches the module carrying UnifiedFile/ValidationError/CandyCandidate + closure. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
…ale onto the named def Moving the inline ephemeral block into #EphemeralRuntime dropped the comments that explained it: the block-level provenance (candy/plugin-deploy/ephemeral.go's RegisterEphemeralLifecycle / persistEphemeralRuntime, the FINAL/K5 unit 6a lifecycle) and the deploy_address rationale (the CLI-addressable identity, distinct from the dc.Deploy map key, RCA #2). Both are restored verbatim on the named def. A relocation that loses the reason a field exists is a deletion wearing a move's clothes, and the diff should not read as one. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…d mirror (#378) * feat(schema): mirror the two drifted VM state fields and gate the hand mirror spec/hand_state_types.go states its own contract in its header: every field of the hand-written #VmDeployState mirror has a matching CUE field. Nothing enforced it, and it was already false -- the Go struct carried key_injection_resolved and snapshot, and schema/deploy.cue carried neither. This adds the three hand-mirrored records as named, @go(-)'d defs (#VmKeyInjectionResolved, #VmSnapshotState, #EphemeralRuntime; the ephemeral block was inline), points #VmDeployState at them, and adds the two missing fields. It also adds schema/hand_state_lockstep_test.go, which compares each def's field names against its Go struct's yaml tags in BOTH directions, so the mirror cannot drift again. Row 2.3 closes here as correctly hand-written: the @go(-) exceptions are not debt but the only faithful shape, and this change makes that claim executable rather than prose. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs(schema): state the real reason the three state records are @go(-) The comment above the hand-mirrored records said all four are @go(-) because the open tail of #VmDeployState degrades gengotypes output. That is true of #VmDeployState alone. The three records are @go(-) for a different and more specific reason: their Go types are hand-written, so the annotation suppresses generation, and it is load-bearing -- measured when the annotation was absent, cue-gen emitted the three types and the build failed on the redeclaration. The comment now states each sentence for what it covers, and names the measurement instead of the inference. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * fix(schema): carry the ephemeral provenance and deploy_address rationale onto the named def Moving the inline ephemeral block into #EphemeralRuntime dropped the comments that explained it: the block-level provenance (candy/plugin-deploy/ephemeral.go's RegisterEphemeralLifecycle / persistEphemeralRuntime, the FINAL/K5 unit 6a lifecycle) and the deploy_address rationale (the CLI-addressable identity, distinct from the dc.Deploy map key, RCA #2). Both are restored verbatim on the named def. A relocation that loses the reason a field exists is a deletion wearing a move's clothes, and the diff should not read as one. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) --------- Co-authored-by: aitrawog <dsh-opencharly@local>
#55 Phase B, Cutover 1 (producer) — spec hosts the loader-result wire-type family
Relocates the cleanly-wire-shaped loader-RESULT types from sdk's kits into
opencharly/spec, so charly'stype-only loaderkit importers can drop the loaderkit dependency (Phase B = eliminate mechanism-kit imports
from core). Build-proven by an RDD spike + this assembled-tree implementation.
Types now hosted here (
spec/spec/loadmodel.go)UnifiedFile+InlineCandy(+ Decode/EncodeInlineCandy + the ResolvePluginKindViaPlugin/DecodePluginKindMapgenerics),
ValidationError,CandyCandidate, and the field-closure they require:ImportList/ImportEntry,DiscoverConfig/ScanSpec(was sdk/kit),ProvidesConfig/EnvProvideEntry(was sdk/deploykit). All plainwire data — no mechanism dragged in (verified no cycle).
Explicitly NOT moved (boundary-law ruling)
loaderkit.ResolveOptsembeds*buildkit.{Init,Distro,Builder}Config— heavy MECHANISM config(ResolveDistro/ExpandPackageInheritance), which can never enter the wire contract. So ResolveOpts stays in
loaderkit; it's a named Phase-B follow-on (the buildkit/mechanism-seam track), not residue.
Verification
GOWORK=off go build ./... && go test ./...green (spec hosts the types, no cycle);gofmt -lclean;task cue:genreproducible. Consumers (sdk + superproject) land next in the B2 chain, R10-proven on theassembled tree (check-pod 13/13, check-builder-vm 10/10).
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)