Repository navigation
fix(spec)!: retire the orphaned LocalPkgInstallStep.Version (sdk#315's spec half) - #208
Conversation
…s spec half) Closes #204. The field has had no writer since opencharly/sdk#354 deleted deploykit/install_build.go's `Version: img.EffectiveVersion` (whose producer, deploykit.ComputeEffectiveVersions, died in sdk#313), and it has no reader anywhere either: downloadLocalPkg obtains the format's stable-latest `download_template`, never a versioned URL, so the in-proc field and its view round-trip are pure residue. Deleted in this cutover: - spec/install_step_vocab.go — the `LocalPkgInstallStep.Version` field AND the doc that claimed a behaviour the code never had ("Version is the release CalVer (e.g. "2026.225.1200") to download") — the R5 half and the guidance half of the same removal. - spec/install_step_view.go — both round-trip assignments (StepToView / StepFromView), so the wire no longer pretends to carry a version. - spec/install_step_vocab_test.go, spec/install_step_view_test.go — the fixtures that set it (the step-IR round-trip test stays green). Not touched, and named rather than silently dropped: the wire view's own `version?: string @go(Version)` in spec/schema/deploy.cue (#InstallStepView) is now written by nothing and read by nothing, but spec/schema/* is another owner's surface in this wave, so it is reported to the Lead rather than edited here. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Review — BLOCKHead SHA: Change class: code — Go contract module Blocks
Comment intake0 comments in the thread — nothing to disposition. Verdict: BLOCK ollama-cloud/deepseek-v4.1-flash — action-review. |
Review — PASSHead SHA: Security screen: PASS (no injection, no secrets/egress, no weakened guardrails, no supply-chain change; not security machinery, so no maintainer sign-off required). Verdict: PASS ollama-cloud/deepseek-v4.1-flash — action-review. |
…ained The validator's R1/R5 finding is correct and the divergence was introduced by this hunk: one event — "the field lost its only writer" — was attributed three ways (sdk#315 in the new comment, sdk#313 in the new error string directly beneath it, and sdk#354 in the PR body), and the guard-adding PR was attributed to #354. Measured, rather than picked from the three: - #315 does NOT resolve as a pull request; it is the ISSUE, now CLOSED: "deploykit: install_build.go still assigns the now-unpopulated EffectiveVersion (dead after sdk#313)". - the assertion this change replaces — the retained evidence, itself tagged sdk#315 — said the box's EffectiveVersion "lost its only writer in sdk#313". - opencharly/spec#208 is the spec-side PR of that retirement (the field and its view round-trip), which is what this change adapts to. - #354 is a loaderkit fix ("the candy-manifest fallback runs the one desugar step (#323, #315)"), not the field's retirement, so naming it as the writer's deleter or the guard's author was false. The comment and the error string now both say the same thing: the writer was already lost in sdk#313; the retirement is tracked by ISSUE sdk#315 and landed on the spec side as spec#208. No PR number is invented for the guard: the commit that added it could not be measured from this checkout (`git log -S` on its text finds nothing here), so the text names the issue instead of guessing a number. Refs #315, opencharly/spec#208 Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
…egs) (#358) * chore(deps): adopt spec v0.2026280.2244 (the sdk#315 and sdk#253 consumer legs) Bumps `require github.com/opencharly/spec` v0.2026276.0 -> v0.2026280.2244 via `go get` + `go mod tidy` (the toolchain, never a hand-pin) and adapts the two consumer surfaces the adopted range changes: 1. spec#208 removed `spec.LocalPkgInstallStep.Version` (with its view round-trip) after #354 deleted the field's only writer. The dead-vestige guard added in that PR asserted the field was EMPTY, which no longer typechecks; it now asserts STRUCTURALLY that the type has no `Version` field at all — a reinstated assignment is a compile error, and the reflection check keeps the vestige from creeping back as a field without a writer. 2. spec#202 made a ref's identity its PROJECT identity, not the enclosing repository (the fix for the false import back-edge sdk#253 measured as three namespace failures). `loaderkit.RepoIdentity` is a plain alias of `spec.RepoIdentity`, so the stale expectation in `TestRepoIdentity` is updated to the project identity and the reason is recorded at the assertion: stripping `@github.com/o/r/candy/x:v1.2.3` to `github.com/o/r` is the PRE-#202 behaviour. This closes the residual the sdk#253 dossier named — "sdk's own go.mod still pins spec v0.2026276.0 (a pin bump, not the defect)" — in the same range. Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated) * docs(deploykit): reconcile one retirement's provenance to what is retained The validator's R1/R5 finding is correct and the divergence was introduced by this hunk: one event — "the field lost its only writer" — was attributed three ways (sdk#315 in the new comment, sdk#313 in the new error string directly beneath it, and sdk#354 in the PR body), and the guard-adding PR was attributed to #354. Measured, rather than picked from the three: - #315 does NOT resolve as a pull request; it is the ISSUE, now CLOSED: "deploykit: install_build.go still assigns the now-unpopulated EffectiveVersion (dead after sdk#313)". - the assertion this change replaces — the retained evidence, itself tagged sdk#315 — said the box's EffectiveVersion "lost its only writer in sdk#313". - opencharly/spec#208 is the spec-side PR of that retirement (the field and its view round-trip), which is what this change adapts to. - #354 is a loaderkit fix ("the candy-manifest fallback runs the one desugar step (#323, #315)"), not the field's retirement, so naming it as the writer's deleter or the guard's author was false. The comment and the error string now both say the same thing: the writer was already lost in sdk#313; the retirement is tracked by ISSUE sdk#315 and landed on the spec side as spec#208. No PR number is invented for the guard: the commit that added it could not be measured from this checkout (`git log -S` on its text finds nothing here), so the text names the issue instead of guessing a number. Refs #315, opencharly/spec#208 Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)
Summary
Closes #204 — the spec-side half of opencharly/sdk#315, and the last leg of that
cutover (the sdk half landed first, producer-first: opencharly/sdk#354, squash-merged
c2b7a1fc,tag
v0.2026280.2222).spec.LocalPkgInstallStep.Versionhas had no writer since that merge deleteddeploykit/install_build.go'sVersion: img.EffectiveVersion, whose own producer(
deploykit.ComputeEffectiveVersions) died in sdk#313 — and it has no reader anywhere either:downloadLocalPkgobtains the format's stable-latestdownload_template, never a versioned URL. It ispure residue, and it is also a guidance defect: its doc claimed a behaviour the code never had.
Deleted in this cutover: the in-proc field (
spec/install_step_vocab.go) and the doc line thatpromised a versioned download; both round-trip assignments (
spec/install_step_view.go,StepToView/StepFromView), so the wire no longer pretends to carry a version; and the two fixtures that set it(
spec/install_step_vocab_test.go,spec/install_step_view_test.go).Named, not silently dropped — and proven, not asserted. The wire view's own
version?: string @go(Version)(spec/schema/deploy.cue:711, inside#InstallStepView) is now written bynothing and read by nothing, and both halves are executed output rather than a claim. Written by nothing:
the only writer was
StepToView'sv.Version = s.Version, deleted here. Read by nothing — every.Versionread in the module, classified:None of those hits is an
InstallStepView: they are the merged-config struct (merge), ref provenance(
refs), a candy ref (candy_ref_entry), a distro def (distro_config_methods) andInstallPlan.Version(
install_plan_view); the consumer repos have zeroStepView.Version/step.Versionreads.The named exit for that residual is task-5 (cluster C9, owner
wire-types) — the Lead has handed thespec/schema/deploy.cuedeletion (plus itscharly task cue-genregeneration) to that owner, becausespec/schema/*is their surface this wave. So this PR retires everything the field needed in the surfacesit owns, and the one remaining surface has a named owner and a named batch; #204 closes as scoped, and it
says so.
How tested
The module's own committed CI, DISCOVERED at
origin/main(.github/workflows/ci.yml:go build ./...,go test ./..., gofmt, golangci-lint), executed on this head:The step-IR round-trip test is the coverage that matters here (
StepFromView(StepToView(s))must stayDeepEqualtosfor every kind); removing a field from both the concrete step and its view keeps itgreen, and removing it from only one side would not compile — which is exactly the invariant the pair
exists to hold.
The no-reader/no-writer claim is proven by executed output, on
origin/mainbefore this change:That block is the pre-fix state and it names its own witness: line 223 populated
LocalPkgInstallStep.Version— it IS the writer this cutover removes, in the sibling repo, and it wasstill on sdk
origin/mainwhen that paste was taken. Re-measured after opencharly/sdk#354 merged(
git -C sdk fetch origin main), the same greps on the CURRENT sdkorigin/main:Line 223 is GONE and the surviving line 55 is
InstallPlan.Version— a different struct (InstallPlan,the plan as a whole). The charly hits are a type switch that reads no field; the two view lines are the
round-trip this PR deletes.
The claim-keyed sweep for a surface still promising a versioned
LocalPkgInstallStep:The single
release CalVerhit is a different claim about a different thing (the charly BINARY'sin-development CalVer on
DeployExecutor), not the deleted field's versioned download — so no surfacestill promises a versioned
LocalPkgInstallStep."no live hit for either (the deleted doc line was the only one)
Head
4a76d4644fa7f093e70c2029f807155e3d62d264Rulebook compliance
/charly-internals:goand/charly-internals:plugin(the spec IR + per-plugin/wire contract),/charly-internals:git-workflow(before any git/PR action, with its pre-validator self-audit),
/charly-internals:strict-policy(R1/R2/R3/R5 + RDD),
/charly-internals:install-plan(the step IR and its view bridge).origin/mainand is pasted above, not assumed; noanomaly was silenced. The one divergence this fix surfaces (a false doc comment) is deleted with the
field rather than left standing.
one commit. The single residual — the CUE-sourced view field in
spec/schema/deploy.cue— is namedin the Summary and in spec: LocalPkgInstallStep.Version has no reader — delete the orphaned field, its view round-trip and the doc that claims a versioned download #204's close, with the reason it is not edited here (another owner's surface),
and it is reported to the Lead rather than parked as "out of scope".
bridge it documents itself to be.
above (
grep -rn 'LocalPkgInstallStep' --include='*.go' . | grep -i version→ no live hit).git status --shortis empty after the commit; no reset, no force-push, no hook bypass.that asserts
StepFromView(StepToView(s))DeepEqualssfor every step kind passes, and it cannotcompile if only one side of the pair is edited — the pair is self-guarding.
the contract module.
StepToViewno longer writesVersion, so a serialized step view is identical minus an always-empty key. Proven by theround-trip test and by the module suite.
module's own CI is the gate.
/charly-check:checkreferences/beds-and-r10.md:a Go module with no
charly.ymlproject and nodisposable: trueentity — no bed can exist here), sothe gate is this module's own committed CI, green on this head and pasted in full above.
line, deleted with it; the sweep above shows no other surface promises a versioned
LocalPkgInstallStep, and the one surface that does still declare aversionkey (the CUE view def)is named with its file and its owner rather than left to drift silently.
Change classification
Code — Go source plus tests in the
speccontract module, removing an exported field, so this is abreaking change for any consumer of
spec.LocalPkgInstallStep.Version(marker!). Not a docs-onlychange, so
documentation reviewedwould be invalid; the tier below is the one the pasted evidencesupports: the module's own CI (build, test with zero failures, gofmt, golangci-lint 0 issues) on this
head, plus the executed no-writer/no-reader proof and the claim-keyed sweep.
Agent: loader-paths
Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)