Repository navigation
refactor(sdk)!: consume loader-result types from opencharly/spec (#55 Phase B cut1) - #107
Conversation
…utover 1)
The loader-result type family moved to the types-only spec module; delete the
definitions here and repoint every use to spec.X.
Deleted (moved to github.com/opencharly/spec/spec): loaderkit/unified_file.go +
loaderkit/templates_project.go (whole files); UnifiedFile/InlineCandy/
Decode+EncodeInlineCandy/ResolvePluginKindViaPlugin/DecodePluginKindMap/
ValidationError/CandyCandidate; the kit directive types ImportList/ImportEntry/
DiscoverConfig/ScanSpec + the UnifiedFileName const; the deploykit
ProvidesConfig/EnvProvideEntry types.
Kept: PickCandyVersion (needs kit semver/CalVer), AnchorScanSpecs (retargeted
onto spec.ScanSpec), the deploykit provides PIPELINE. ProjectTemplates is now a
spec.UnifiedFile method (uf.ProjectTemplates()). Added
deploykit.ProjectBundleConfig(uf) free function (the one projection that returns
*deploykit.BundleConfig, so it can't live in types-only spec) — replaces the
uf.ProjectBundleConfig() method.
loaderkit.ResolveOpts STAYS: it embeds *buildkit.{Init,Distro,Builder}Config
mechanism config, which spec can never import (spec<-buildkit cycle) — correctly
placed loader mechanism, not a wire type; a named Phase-B follow-on for the
buildkit/mechanism-seam track.
Assembled workspace: go build/vet/test ./... green; gofmt -l clean on touched
files.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
Claude-Session: https://claude.ai/code/session_01FhLKUsvyzj6Nh5W1xDgsXa
… 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)
pr-validator — APPROVED ✅Change class: contract-adjacent Go module (sdk) — gate = sdk STANDALONE battery ( Validated on a fresh standalone clone at head Checklist
Battery (fresh clone,
|
… B cut1) Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)
pr-validator — landed ✅
Consumer leg next: the superproject bumps the Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) |
#55 Phase B cutover 1 (sdk consumer leg)
sdk's loaderkit/kit/deploykit stop OWNING the loader-RESULT wire-type family (UnifiedFile + InlineCandy + Decode/Encode + generics, ValidationError, CandyCandidate, ImportList/ImportEntry, DiscoverConfig/ScanSpec, ProvidesConfig/EnvProvideEntry) and CONSUME them from
opencharly/spec(merged spec#2, main d5eba0b, tag v0.2026210.808).spec.X.ProjectBundleConfig()method →deploykit.ProjectBundleConfig(uf *spec.UnifiedFile)free function (spec cannot import deploykit).Verification
GOWORK=off go build/vet/test ./...green (proxy-fetches the new spec);gofmt -lclean;golangci-lint0. Producer-first B2: spec merged first; the superproject consumer leg (charly + plugins) lands next, R10-proven on the assembled tree (check-pod 13/13, check-builder-vm 10/10).Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system)