Repository navigation
refactor(core)!: charly + plugins consume loader-result types from opencharly/spec (#55 Phase B cut1) - #193
Conversation
#55 Phase B, Cutover 1) The loader-result type family moved to the types-only spec module (spec + sdk legs land first, producer-first B2). charly core + the candy plugins repoint every loaderkit.X / kit.X (closure) / deploykit.X (provides) reference to spec.X, and the type-only charly files drop their sdk/loaderkit import. Repoints: loaderkit.{UnifiedFile,InlineCandy,Decode/EncodeInlineCandy, ResolvePluginKindViaPlugin,DecodePluginKindMap,ValidationError,CandyCandidate}, kit.{UnifiedFileName,ImportList,ImportEntry,DiscoverConfig,ScanSpec}, deploykit.{ProvidesConfig,EnvProvideEntry} -> spec.X; uf.ProjectBundleConfig() -> deploykit.ProjectBundleConfig(uf); loaderkit.ProjectTemplates(uf) -> uf.ProjectTemplates(). Result: charly sdk/loaderkit importers 71 -> 52 (19 files dropped). Mechanism callers (LoadUnified/Materialize/Walk/... and the loaderkit.ResolveOpts constructors) keep loaderkit; only their TYPE refs repointed. Scope is Option A (operator-ruled): loaderkit.ResolveOpts STAYS (it embeds *buildkit.{Init,Distro,Builder}Config mechanism config, an unavoidable spec<-buildkit cycle) — correctly-placed loader mechanism, a named Phase-B follow-on, not residue. Verification (assembled workspace): go build/go test ./... green across charly+sdk+spec+every touched candy; golangci-lint 0 issues; charly box validate exit 0 (root + box/fedora); task cue:gen reproducible (0 drift); grep-clean of the moved types' old homes. spec/sdk gitlinks point at the Phase-B feat commits here; the landing chain re-points them to the merged commits. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (analysed on a live system) Claude-Session: https://claude.ai/code/session_01FhLKUsvyzj6Nh5W1xDgsXa
spec → d5eba0b (v0.2026210.808, loader-result types); sdk → 836f9586 (v0.2026210.828, consumes them). charly/go.mod requires bumped. Forward-pins for the B2 consumer leg.
…sumer) The sdk gitlink bump to merged 836f9586 (which requires spec v0.2026210.808) created a version skew — the plugins' go.mod still required spec v0.2026210.518. go mod tidy across all 85 plugins + charly reconciles the module graph to spec 808 (RCA: check-pod image-build failed 'go mod tidy needed' building plugin-mcp/plugin-example-builder). go.mod/go.sum only.
pr-validator — APPROVED ✅Change class: charly/sdk Go — superproject consumer leg of #55 Phase B, Cutover 1 (module-path refactor, runtime class). Producer legs Validated independently on head Checklist
placement: CORRECT. Moves the loader-RESULT type family ( per-item trace (charly/*.go):
Comments considered: none (PR carried no comments). Cross-PR interactions considered: charly — only #193 open (no overlap). sdk/spec — none open. plugins — #110 (docs) + #113 (policy) touch the DecisionEvery rule verified from the diff + my own re-run. The change is a compile-identical type relocation from a mechanism kit to the pure wire-contract module: build/vet/test green, golangci 0, cue:gen reproducible, and the fresh-rebuild Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated) |
Merge-time CalVer finalization by pr-validator. Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)
pr-validator — landing outcome ✅
This completes #55 Phase B, Cutover 1 (spec#2 → sdk#107 → charly#193). Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated) |
…ent, and three stale figures B1 — command.go still described driftCmd as "the CI gate" and "(the docs:drift model)", the two claims this cutover measured false and removed everywhere else. It contradicted generate.go's own comment ten lines away, inside the same diff. The per-repo sweep found exactly one surviving site, in the superproject only — the one file no projection carries, which is why no downstream review met it. B3 — the entry said "Four plugins legs". Six carried this cutover's prose: #186, #187, #188, #190, #193, #194. The line was authored in the final commit, after all six had landed. Enumerating by `git log | grep '(#N)'` is unreliable here: #186, #187 and #190 have squash subjects that carry no PR-number suffix, so the count came from the merged-PR list instead. B4 — the reference index still called status-absence on a known head "a false negative" while the section it indexes now says it "proves nothing". Those are different claims: one asserts the thing is real but unseen, the other that the observation is uninformative. B6 — the tag invariant placed 2026.215.1207 both in the untagged set ("at or before") and inside the tagged 67-for-67 run. It is untagged, and is the latest untagged entry, so the run opens above it. Assisted-by: Claude Code Anthropic Claude Opus 5 (analysed on a live system)
#55 Phase B, Cutover 1 (superproject consumer leg)
charly core + plugins consume the loader-RESULT wire-type family from
opencharly/spec(merged spec#2 v0.2026210.808) instead of sdk's kits — 19 charly files drop thesdk/loaderkitimport entirely (the first Phase-B win: eliminating mechanism-kit imports from core).loaderkit.UnifiedFile/InlineCandy/ValidationError/CandyCandidate+ closure →spec.X;ProjectBundleConfig()→deploykit.ProjectBundleConfig(uf)free func.ResolveOptsstays in loaderkit (embeds *buildkit mechanism config → would cycle) — named Phase-B follow-on, not residue.R10 (assembled tree, merged gitlinks)
check-pod13/13 +check-builder-vm10/10 (artifact-backed). A go.mod version skew surfaced by the gitlink bump (plugins on spec 518 vs merged sdk requiring 808) was RCA'd + fixed by retidying all 85 plugins to 808.go build/vet/test ./...green,golangci-lint0,charly box validateexit 0,task cue:genreproducible.Producer-first B2: spec#2 + sdk#107 merged first.
Assisted-by: Claude Code Anthropic Claude Opus 4.8 (fully tested and validated)