Skip to content

test: load_pod_substrate_test.go still marshals spec.Pod, which spec#304 unit 3 deletes #33

Open

Description

@aitrawog

What

opencharly/plugin-substrate#32 moved the kind: pod body into this repo's CUE module
(candy/plugin-substrate/schema/pod.cue) and retargeted the plugin's own resolve.go off
spec.Pod. One reader was left in a TEST file:

$ git -C plugin-substrate grep -n 'spec\.Pod' origin/main -- candy/
origin/main:candy/plugin-substrate/load_pod_substrate_test.go:275:	tmpl, err := json.Marshal(spec.Pod{Box: "sandbox-img", EnvDefaults: map[string]string{"PORT": "8080"}})
origin/main:candy/plugin-substrate/resolve.go:42:		// `var p spec.Pod` plus field-by-field copy existed only because the authored body
origin/main:candy/plugin-substrate/resolve.go:45:		// already said the kernel "never" reads a spec.Pod.

The resolve.go mentions are prose recording the deletion. The test one is CODE, and it names
a type that opencharly/spec#304 unit 3 leg 2 (the opencharly/spec PR that follows
plugin-substrate#32) deletes from the contract module.

Why it is filed rather than fixed here

It is test-only: this repo's BUILD, its served schema and its kind capability are clean, which
is why the consumer legs of the same cutover (sdk, plugin-check, charly) do not depend on
it. But it is not harmless: the moment this repo's own spec require advances past unit 3 leg
2, go test ./... stops compiling, and the failure will look like a spec defect rather than a
leftover here.

Fix

Decode into spec.ResolvedPod — the same target resolve.go's pod arm already uses, and the
reason leg 1 deleted the field-by-field copy:

tmpl, err := json.Marshal(spec.ResolvedPod{Box: "sandbox-img", EnvDefaults: map[string]string{"PORT": "8080"}})

The spec require in candy/plugin-substrate/go.mod should advance in the same commit (the
usual producer-before-consumer order), so the fix and the pin are one change rather than a
follow-up.

Assisted-by: DeepSeek Harness ollama-cloud/deepseek-v4.1-flash (analysed on a live system)

Activity

  1. added
    category:delivery
    type:fix
    on Nov 23, 2026
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

    category:deliverytype:fix

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions