Skip to content

Consume snapshotPhaseInput in runProviderPhase #135

@VincentShipsIt

Description

@VincentShipsIt

Parent: #126

What

Change runProviderPhase signature to accept PhaseInput (frozen read-only snapshot) instead of full mutable PipelineContext. Providers can no longer mutate orchestrator state.

Scope

  • packages/pipeline/src/pipeline/runtime.tsrunProviderPhase signature change
  • All callers of runProviderPhase in planning-phases.ts and execution-phases.ts — call snapshotPhaseInput(context) before passing
  • Post-call mutations (telemetry push, model resolution) stay on orchestrator side via return value

Estimate

~30 lines. Low risk — PhaseInput and snapshotPhaseInput already exist and are exported.

Depends on

Nothing — can be done independently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request
    No fields configured for Feature.

    Projects

    Status

    Deferred

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions