Repository navigation
feat(sdk)!: adopt the spec strict-cleanup contract — repoint every sdk import onto the sliced module - #145
Merged
Conversation
…k import onto the sliced module The spec module's cutover (stale-doc fixes, R3 duplication unification, R5 legacy deletion, SDD CUE-sourcing, and the spec/spec slice into granular packages) landed as the merged producer; this change adopts it — repointing every sdk import site onto the sliced/retyped symbols (calver, matchers, merge, shellquote, loader, poll, fleet, http, proc) and the typed spec.StepContract — and bumps the require to the strict-cleanup tag v0.2026232.520, dropping the temporary local replace. sdk consumers compile unchanged via re-export. R5 deletions adopted: CandyReader.LocalPkg/LocalPkgFormats adapter methods, the ResolveTunnelConfig forwarder, the install_template fallback (via spec.FormatPhaseTemplate/BuilderPhaseTemplate phase-cell accessors), the DeployTarget→EmitTarget re-export, and the ForwardSSHAgent/VmSsh/SSHPort casing. Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
Contributor
Author
pr-validator — APPROVED ✅Change class: code/config (sdk Go module — spec strict-cleanup adoption) Head SHA validated: Checklist
Factual claims re-derived against the merged spec tree
Comments considered: none (0 comments, 0 reviews). Cross-PR interactions considered: none open on Decision: PASS — the PR is in full compliance. Proceeding to merge-time CalVer finalization, squash-merge, and tag. Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system) |
Rename the placeholder CHANGELOG entry to the merge-time CalVer and rewrite its H1 to match. Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)
atrawog
added a commit
that referenced
this pull request
Aug 20, 2026
…tTarget R5 follow-up to the strict-cleanup adoption (2026.232.0552, PR #145): the `DeployTarget` → `EmitTarget` rename repointed every code identifier and the deploykit re-export, but the R5 stale-reference sweep missed seven COMMENT mentions of the old name in `deploykit/install_build.go` (six) and `deploykit/compile_construct_step.go` (one). **Comment-only; no behavior change.** ## Verification - `gofmt -l .` — nothing (comment-only edits). - R5 self-test: `git grep -n '\bDeployTarget\b' HEAD -- '*.go'` → no matches; whole-repo grep returns only `CHANGELOG/`. - Documentation-only change class; `documentation reviewed` tier. Assisted-by: Claude Code deepseek-v4-flash:cloud (documentation reviewed)
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.
Cutover
The sdk consumer leg of the cross-repo strict-cleanup sequence spec → sdk → charly. The spec
module's cutover (W1–W5: stale-doc fixes, R3 duplication unification, R5 legacy deletion, SDD
CUE-sourcing, and the spec/spec slice into granular packages) landed as the merged producer; this
change adopts it — repointing every sdk import site onto the sliced/retyped symbols — and bumps
the
requireto the new spec tag.The slice repoints (sdk consumers compile unchanged via re-export)
calver/—ParseCalVer/MustCalVer/CompareCalVer/LatestSchemaCalVer/SchemaFloorCalVer/ParsedCalVer(kit/calver.go,kit/calver_compare.go,loaderkit/refs_collect.go).matchers/—MatchAll/MatchValueString/MatchValueStrings(theMatcher/MatcherListvalue types stay inspec/spec; the engine + its private helpers moved, testscarried).
merge/—MergeUnified(loaderkit/materialize_project.go).shellquote/—ShellQuote(8 sites acrosskit,deploykit,buildkit).loader/—FindEntityDirs/DiscoverSkipDir/DirExists/FileExists(
kit/loader_discover.go).poll/—PollCondition+ the poll/readiness subsystem (kit/exec_aliases.go,vmshared/poll_reexport.go);kit.PollCondstays as the consumer-facing re-export alias ofpoll.PollCondition.fleet/—HostRooted/IsVmVenue/IsContainerVenue/DeployNestedLocalChildren+ the17 deploy-fleet helpers (
deploykit/deploy_fleet_ops_aliases.go,deploykit/bed_session.go,deploykit/fleet_members.go,deploykit/member_dns_preflight.go);SortedMemberKeys/VmDomainIdentity/FleetDelArgvstay inspec/spec.http/—HTTPClientFor/DoHTTPRequest/FormatHTTPHeaders(kit/http_do.go).proc/—EnvMapToPairs(kit/env.go).The typed StepContract (R3)
The three-form
StepContractcollapsed to the single typedspec.StepContract(
Scope/Venue/Gate/Emits); the string-formcapability.StepContractis deleted.schema.gore-exports the typed form and marshals it intopb.StepContract(Scope viaScope.String(), Venue int32, Gate as the wire string) — the plugin call sites compile unchanged.The R5 deletions adopted
LocalPkg— the deletedCandyReader.LocalPkg/LocalPkgFormatsadapter methods indeploykit/spec_candy_adapter.goare removed (the deploykitCandyModelnever declared them;zero callers; the IR already emits
LocalPkgInstallStepfromPackaging()).install_template— the removed#Format/#Builderfield is adopted via the newspec.FormatPhaseTemplate(format, phase, venue)/spec.BuilderPhaseTemplate(builder, phase, venue)phase-cell accessors (no fallback arm):deploykit/candy_steps.goreadsphase.install.container,buildkitre-exports the accessors, and the render tests assert theno-fallback behavior. The retained
LocalPkgDef.InstallTemplate(#LocalPkg.install_template)is untouched.
ResolveTunnelConfig— deleted with zero production callers; its sdk forwarder is removed,TunnelConfigFromMetadatastays.DeployTarget→EmitTarget— the sdk root re-export repointed; zero sdk users.ForwardSshAgent→ForwardSSHAgent(kit/agent_forward.go,deploykit/deploy_state.go),VmSSH→VmSsh(vmshared/cloud_init_render.go,vmshared/spec_aliases.go),SshPort→SSHPort(deploykit/vm_deploy_addressing.go,vmshared/libvirt_helpers.go,vmshared/qemu_render.go+ the vmsharedVmRuntimeParamsfield).go.mod
require github.com/opencharly/specbumped fromv0.2026230.2020to the strict-cleanup taglanded by the spec leg's validator; the temporary local
replaceused to compile the repointagainst the unmerged spec tree is dropped — the sdk builds against the published module exactly
as shipped.
Verification (final tree)
go build ./...,go vet ./...,go test ./...— all packages okgofmt -l .— nothing;golangci-lint run ./...— 0 issues;golangci-lint fmt --diff—nothing
VmSSH,ForwardSshAgent,\bSshPort\b,capability.StepContract,LocalPkgFormats,spec.IsVmVenue/spec.IsContainerVenue/spec.DeployNestedLocalChildren/spec.HostRooted,spec.ShellQuote,spec.EnvMapToPairs,spec.MergeUnified,spec.MatchAll,spec.PollCond,exec.PollCondall CLEAN in.gofiles;PollCondreturns only theretained
kit.PollCondre-export alias;ResolveTunnelConfigonly the migration help-text;InstallTemplateonly the retainedLocalPkgDef.InstallTemplatefield.The charly consumer leg (the version/readiness/fleet/http/loader repoints, the embedded
build-vocabulary
install_template→phases:migration, and the spec submodule pointer bump)lands next against this merged producer.
CHANGELOG:
2026.231.0001(placeholder; the pr-validator finalizes it at merge).Assisted-by: Claude Code deepseek-v4-flash:cloud (analysed on a live system)