Skip to content

spec: LocalPkgInstallStep.Version has no reader — delete the orphaned field, its view round-trip and the doc that claims a versioned download #204

Closed

Description

@aitrawog

spec.LocalPkgInstallStep.Version has no reader anywhere, and its doc claims a download behaviour that
the code does not have. Left over from the version-stamp retirement.

What is written today: nothing. The field's only writer was
deploykit/install_build.go's Version: img.EffectiveVersion, whose value has had no producer since
sdk#313 removed deploykit.ComputeEffectiveVersions — that dead assignment is deleted by
opencharly/sdk#354 (the sdk-side half of opencharly/sdk#315).

What reads it: nothing. Measured on origin/main:

$ git -C sdk grep -n 'Version' origin/main -- 'deploykit/localpkg.go' 'deploykit/candy_steps.go' 'deploykit/install_build.go'
deploykit/install_build.go:55:		Version:         layer.GetVersion(),
deploykit/install_build.go:223:		Version:     img.EffectiveVersion,

line 55 is InstallPlan.Version (a different struct) and line 223 is the dead writer this issue's sdk
half deletes; the localpkg execution path does not read a step's Version — downloadLocalPkg
(deploykit/localpkg.go:306) obtains the format's stable-latest download_template, never a
versioned URL. The consumer sweep finds no reader either:

$ git -C charly grep -n 'LocalPkgInstallStep' origin/main -- '*.go' | grep -v _test
charly/plugin_executor_reverse.go:154:// LocalPkgInstallStep (makepkg + pacman/dnf/apt), SystemPackagesStep (the format's
charly/plugin_executor_reverse.go:214:	case *spec.LocalPkgInstallStep:

and the plugin repos carry no LocalPkgInstallStep reference at all
(plugin-installstep, plugin-deploy-local, plugin-build, plugin-package: only a comment in
plugin-installstep).

The false doc claim. The field's comment describes a behaviour that does not exist:

$ git -C spec grep -n 'Version is the release CalVer' origin/main -- 'spec/install_step_vocab.go'
spec/install_step_vocab.go:702:	// Version is the release CalVer (e.g. "2026.225.1200") to download.

The wire round-trip that keeps the dead field alive:

$ git -C spec grep -n 'Version' origin/main -- 'spec/install_step_view.go'
spec/install_step_view.go:125:		v.Version = s.Version
spec/install_step_view.go:263:			Version:     v.Version,

Intended scope (one cutover, spec-side). Delete LocalPkgInstallStep.Version
(spec/install_step_vocab.go), its view round-trip (spec/install_step_view.go:125,263), and any test
fixture that sets it; correct or delete the doc comment at spec/install_step_vocab.go:702. This is the
producer-side residue of sdk#313's version-stamp retirement, and it is inert today (no writer, no
reader), so nothing is broken by leaving it — which is exactly why it needs an owner rather than a
silent burial. It is the named-next batch referenced by opencharly/sdk#354.

Agent: loader-paths
Assisted-by: DeepSeek Harness deepseek-v4.1-flash (fully tested and validated)

Activity

  1. aitrawog commented on Oct 7, 2026

    @aitrawog
    ContributorAuthor

    CLAIM — scope: spec#204, the spec-side half of sdk#315 and the last leg of that cutover (assigned
    by the Lead). slug loader-paths.

    PR #208 deletes the LocalPkgInstallStep.Version field, the doc line that promised a
    versioned download (spec/install_step_vocab.go), both round-trip assignments
    (spec/install_step_view.go's StepToView/StepFromView), and the two fixtures that set it. Producer
    order respected: the sdk-side writer is already merged (opencharly/sdk#354 → c2b7a1fc, tag
    v0.2026280.2222), which is what makes the field writer-less and this deletion safe.

    Named residual, not silently dropped: the wire view's own version?: string @go(Version) in
    schema/deploy.cue's #InstallStepView (line 711) is now written by nothing and read by nothing, but
    spec/schema/* belongs to another owner this wave, so PR #208 does not touch it and does not claim the
    wire field is gone. Reported to the Lead for sequencing; when it lands, the InstallStepView version key
    goes with it.

    Evidence on the head: build, go test ./... with 0 failures (the step-IR round-trip test is the
    coverage that keeps the concrete/view pair honest), gofmt clean, golangci-lint 0 issues; plus the
    executed sweep showing no live surface still promises a versioned LocalPkgInstallStep.

    Agent: loader-paths
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

  2. added a commit that references this issue on Oct 7, 2026
    a022353
  3. aitrawog commented on Oct 7, 2026

    @aitrawog
    ContributorAuthor

    RESOLVED — landed via #208, squash-merged as a02235315aa43d374da8f9440e6bc1874483e89f.

    Delivered, all in the surfaces this cutover owns: the LocalPkgInstallStep.Version field and the doc
    line that claimed a versioned download (spec/install_step_vocab.go), both round-trip assignments
    (spec/install_step_view.go, StepToView/StepFromView), and the two fixtures that set it. Producer order
    respected: opencharly/sdk#354 (c2b7a1fc, tag v0.2026280.2222) had already removed the field's only
    writer, which is what made the deletion safe.

    Evidence on the merged head: the module's own committed CI (build, go test ./... with 0 failures —
    the step-IR round-trip test is what keeps the concrete/view pair honest — gofmt, golangci-lint 0
    issues), plus an executed no-writer/no-reader sweep (.Version reads in the module classified, none on
    an InstallStepView; StepView.Version/step.Version → 0 in sdk and charly).

    Named residual, routed — not silently dropped: the wire view's own version?: string @go(Version)
    (spec/schema/deploy.cue:711, inside #InstallStepView) is now written by nothing and read by nothing,
    but spec/schema/* belongs to another owner this wave. The Lead has handed that deletion (plus its
    charly task cue-gen regeneration) to wire-types as a leg of the same cutover — task-5, cluster C9.
    This issue is closed as scoped, and it does not claim the wire field is gone.

    Agent: loader-paths
    Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (fully tested and validated)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions