Repository navigation
feat(core): K3 wire-to-spec Path 1 — pure import repoint (5 files) - #140
Merged
Merged
Conversation
Five charly/*.go files used ONLY deploykit/kit types that a prior wave (SDK envelope relocation, task #13) already moved to sdk/spec as Go type aliases (deploykit.InstallPlan/EmitOpts/DeployExecutor = spec.X in sdk/deploykit/steps.go; kit.LabelDescriptionSet/LabeledDescription = spec.X in sdk/kit/planrun.go). Repoint each to import spec directly instead of deploykit/kit — a same-type swap with byte-identical runtime behavior (these were literal Go type aliases, not distinct types), so no bed re-run is needed for this change class. - deploy_preresolve.go: deploykit.InstallPlan -> spec.InstallPlan - deploy_substrate_lifecycle.go: InstallPlan/EmitOpts/DeployExecutor -> spec.* - layer_artifacts.go: DeployExecutor/EmitOpts -> spec.* - plugin_grpc.go: DeployExecutor -> spec.DeployExecutor - description_collect.go: kit.LabelDescriptionSet/LabeledDescription -> spec.* Identified via a K1/wire-to-spec classification spike of the remaining 25 type-only files off charly/*.go's kit-import list: these 5 retire for free (Path 1); ~11-12 need real coordinated type migrations (Path 2, next); ~7-8 hold Go interfaces/function-value hooks structurally excluded from CUE generation, tracked separately (Path 3, task #21). Metric: charly/*.go kit-importing files 150 -> 145. R10 gate for this change class (orchestrator-ruled, per R10's own "run only the gate that exercises the change" principle): deploykit.X/kit.X here were literal Go type ALIASES of spec.X, so no runtime path can differ — a bed gate cannot fail on this change. go build/go vet/go test ./... (88s, full pass) + golangci-lint (0 issues) is the exhaustive, non-wasteful gate. Assisted-by: Claude Sonnet 5 (analysed on a live system)
Renamed placeholder CHANGELOG/2026.198.0311.md to the actual merge-time CalVer (evaluator step, computed via `date -u` per the #47 lesson — never `git show --date=format` in the commit's local TZ). Assisted-by: Claude Sonnet 5 (analysed on a live system)
Contributor
Author
Independent PR validation — PASSFresh worktree, trusting no author/orchestrator claims. Confirmed:
Tier: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of changes
Five
charly/*.gofiles were importingsdk/deploykit/sdk/kitfor ONLYsymbols that a prior wave ("SDK envelope relocation", task #13) already moved
to
sdk/specas literal Go type aliases (sdk/deploykit/steps.go:InstallPlan/EmitOpts/DeployExecutor=spec.X;sdk/kit/planrun.go:LabelDescriptionSet/LabeledDescription=spec.X). This is Path 1 of aK1/wire-to-spec classification spike of the 25 remaining "projection-only"
(type-only) files off
charly/*.go's kit-import list: these 5 needed no newCUE schema work — just an import repoint, since the underlying spec type
already exists.
charly/deploy_preresolve.go—deploykit.InstallPlan→spec.InstallPlan; drop thedeploykitimport.charly/deploy_substrate_lifecycle.go—deploykit.InstallPlan/EmitOpts/DeployExecutor→spec.*(thesubstrateLifecycleinterface); drop thedeploykitimport.charly/layer_artifacts.go—deploykit.DeployExecutor/EmitOpts→spec.*; dropdeploykit, addspec.charly/plugin_grpc.go—deploykit.DeployExecutor→spec.DeployExecutor; dropdeploykit, addspec(kept thepbalias on the proto import unchanged).charly/description_collect.go—kit.LabelDescriptionSet/LabeledDescription→spec.*; drop thekitimport (one accurate historical comment mentioningkit.MergeDeployDescriptions— a genuinely different function that stays inkit— is left as-is).CHANGELOG/2026.198.0311.md— new entry (placeholder CalVer).Metric:
charly/*.gokit-importing files 150 → 145.Change class
charly Go (core-minimization import repoint; zero behavior change).
How R10-tested — exact gate, commands, and pasted output
deploykit.X/kit.Xwere literal Go type ALIASES ofspec.X(type InstallPlan = spec.InstallPlan, etc., insdk/deploykit/steps.go+sdk/kit/planrun.go), so no runtime code path can behave differently before/after this change — a disposable-bed gate cannot fail on it (R10's own "run only the gate that exercises the change" principle; a gate that can't fail proves nothing). The exhaustive, correct gate for this class isgo build/go vet/go test ./...+golangci-lint run ./..., proving the identical-type swap compiles and every existing test (which exercises real production code, not mocks) still passes. This was the orchestrator's (team-lead, this multi-agent session) explicit ruling for this exact change class, reached independently and cross-checked against the R10 gate-by-change-class principle before I executed.deploykit/kitvsspec) a symbol is read through, since both names resolve to the identical Go type. (The prior K3 cutover this Path-1 spike grew out of, PR feat(core)!: K3 build-engine core-minimization — reentry-class + render-seam + feature-command #139, DID runcharly check run check-pod— 12/12 steps, 217s, fresh-rebuild gate included — for its own behavior-changing content; this PR carries none.)go build ./...below);charly versionunaffected (no version-relevant code touched).CollectDescriptions,deployPreresolver/wireDeployPreresolver, thesubstrateLifecycleinterface plumbing,RetrieveCandyArtifacts/retrieveOne/waitForArtifactPath,grpcProvider.InvokeWithExecutor) are exercised by the existinggo test ./...suite (88s, full pass, real production code paths — not--dry-run, not a bare compile). No CLI/bed-level invocation ran, since none would exercise a difference (see gate justification above).Attribution tier
analysed on a live system— the realgo test ./...suite ran and its output is pasted above; no dry-run, no bed/CLI invocation (none would exercise a difference for this change class per the gate justification above).Harness rulebook compliance
/charly-internals:go+/charly-internals:strict-policyloaded before touchingcharly/*.gosource (already loaded earlier in this multi-turn session for the K3 cutover this spike grew out of).git grep -n "deploykit\.\|kit\." charly/deploy_preresolve.go charly/deploy_substrate_lifecycle.go charly/layer_artifacts.go charly/plugin_grpc.go charly/description_collect.goreturns only the one accurate historical comment indescription_collect.go(kit.MergeDeployDescriptions, a genuinely different function that stays inkit) — verified before committing.git status/git diff --submodulechecked before switching worktree branches; no destructive action taken.go build ./...confirms the binary builds from this source.= spec.Xaliases were confirmed live insdk/deploykit/steps.go/sdk/kit/planrun.gobefore any file was touched, and the orchestrator independently spot-checked this claim. ADE/SDD: N/A — no candy/schema touched.golangci-lint run ./...= 0 issues;go vet ./...clean;go test ./...green (pasted above).CHANGELOG/2026.198.0311.mdstaged (placeholder CalVer).Assisted-by: Claude Sonnet 5 (analysed on a live system)