Skip to content

Reset phase-specific context fields between pipeline transitions #129

@VincentShipsIt

Description

@VincentShipsIt

Parent: #126

Problem

Phase-specific fields on PipelineContext (e.g., stabilizationFeedback, testOutput, previousPlanRawOutput) persist across transitions. Some are manually nulled, but there's no systematic reset — fields from phase N can leak into phase N+1.

Solution

Add resetPhaseState(context, nextPhase) call at each phase transition point. Clears fields that are phase-scoped:

  • stabilizationFeedback → only for verification
  • testOutput → only for testing/test-fix
  • previousPlanRawOutput → only for revision
  • Other phase-local fields identified during implementation

Files

  • packages/pipeline/src/pipeline/context.ts — new resetPhaseState function
  • packages/pipeline/src/pipeline/planning-phases.ts — call at transitions
  • packages/pipeline/src/pipeline/execution-phases.ts — call at transitions
  • packages/pipeline/src/types.ts — document which fields are phase-scoped

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions