…nt resolved-project envelope fetch
Companion to the `charly` superproject's K1-alpha blocking regression fix
(task #13): `charly bundle add --add-candy <ref>` / a deploy's
`add_candy: [<ref>]` failed at TWO independent resolved-project envelope
fetch sites for a candy never reachable from any box's own image closure
(e.g. `@github.com/opencharly/charly/candy/pod-addcandy-marker:vTAG`):
1. `bundle compile: candy "<name>" not in resolved-project envelope
(order=[...])` — the STANDARD `--add-candy` compile path
(`candy/plugin-bundle`'s `compileDeployPlans`).
2. `OCITarget.Emit(<name>): candy "<name>" not found` — the
add_candy-ON-POD-OVERLAY deploy path, e.g. `check-addcandy-pod`
(`candy/plugin-installstep`'s `getGenerator`).
Both plugins re-fetch the resolved-project envelope independently via
`HostBuild("resolved-project")`, using only the project directory — never
the add-candy ref the host's own widened scans (`scanCandiesForRef`,
`hostBuildOverlay`'s `ResolveOpts.ExtraCandyRefs`) already discovered.
Adds `extra_candy_refs?: [...string] @go(ExtraCandyRefs)` to
`#ResolvedProjectRequest` (schema/resolvedproject.cue),
`#DeployCompileRequest` (schema/seam.cue), and `#BuildEnv`
(schema/buildwire.cue) — mirroring the existing `ResolveOpts.ExtraCandyRefs`
contract (R3) — so a compile/build-emit caller can widen these plugins'
independent envelope re-fetches the same way.
`spec/cue_types_gen.go` regenerated via `task cue:gen` (reproducible, zero
drift). Standalone battery green: `go build`/`go vet`/`go test ./...`,
`golangci-lint run ./...` (0 issues), `gofmt` delta clean, `go mod tidy`/
`verify` clean. This is a pure wire-shape addition (no sdk-side behavior of
its own); the runtime bed proof (`check-addcandy-pod`,
`check-stepkind-emit-pod`) rides the charly consumer leg
(`feat/k1-unblock-wave1`), which threads these fields through
`hostBuildResolvedProject`/`compileDeployPlans`/`compileSelectionViaPlugin`
and `dispatchOCIStep`/`plugin-installstep`'s `getGenerator`.
Assisted-by: Claude Code (Anthropic Claude Opus 4.5; analysed on a live system)
Summary
Third P4 unit — introduces
sdk/deploykitand moves the InstallPlan step VOCABULARY verbatim out of charly: the 13 concreteInstallStepimplementations (SystemPackagesStep/BuilderStep/OpStep/FileStep/ServicePackagedStep/ServiceCustomStep/ShellHookStep/ShellSnippetStep/RepoChangeStep/ApkInstallStep/LocalPkgInstallStep/RebootStep/ExternalPluginStep) + their field-structs (RepoSpec/CacheMountSpec/ArtifactRef) + the pure classification helpers (reverseFileKindForinternal;OpStepScope/PathIsSystemScopedexported for charly).deploykitimports onlysdk/spec(the IR enums +InstallStepinterface +InstallPlancontainer). Each concrete step implementsspec.InstallStepstructurally. The plugin-dispatchexternalStepcluster (externalStep/externalStepKindPrefix/isExternalStepKind) stays charly-side (kernel-coupled).InstallPlan+wireView+ResolveHomestay charly for now (P4-unit-4 moves them, now that the structs they type-switch on are here).Change class
sdk Go — new library package + moved step vocabulary (no schema surface → no schema-version bump).
How R10-tested
check-builder-localPASS 4/4 +check-localPASS 4/4, golangci 0 both repos, zero warnings.Attribution tier
fully tested and validated
Compliance
Assisted-by: Claude (fully tested and validated)