Skip to content

plan.variable discards its default_value; the surface documents a default that never propagates #857

Open

Description

@David-Noble-at-work

What happens

Provider.Variable(name, defaultValue, field) in pkg/op/provider/plan/provider.go reads:

_ = defaultValue // Phase 3 wires default propagation into the parameter surface.
return &op.Variable{Name: name, Field: field}

The default is dropped on the floor. plan.variable("x", default_value=1.0) behaves exactly like plan.variable("x"): the variable surface never sees the default, and the graph document's variable binding carries {name, field} and nothing else. The "Phase 3" the comment defers to was phase-8 13.0(n)'s, long closed; 3.5.3-plan-provider.md lists Variable as implemented and describes the default as part of the surface. A stub that answers as if it worked (CLAUDE.md verification checklist: "no stub functions return success without implementation").

Found 2026-09-07 while checking #712's acceptance criterion "plan.Variable(default=1.0) survives save and reload with its type intact": there is nothing to survive, because the default never reaches the document.

Expected

Evidence of completion

  • plan.variable("x", default_value=1.0) with no x supplied resolves to 1.0 at dispatch
  • The default is in the document, enveloped; save/reload keeps its type (JSON and YAML)
  • A supplied variable overrides the default
  • 3.5.3-plan-provider.md describes the propagation

Plan and design documents

Kind Document
Plan no branch has opened; the plan arrives with it
Design docs/architecture/3.5.3-plan-provider.md
Design docs/architecture/5-graph-trace-integrity.md

Activity

  1. added 2 commits that reference this issue on Sep 8, 2026
  2. David-Noble-at-work commented on Nov 9, 2026

    @David-Noble-at-work
    ContributorAuthor

    star github triage sweep added this issue to Triage: devlore, for the rule it breaks:

    • severity: a Bug whose Severity is blank; a bug is Critical, High, Medium or Low
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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions