Skip to content

SEP-020: Missing tests for investigation to code-change plan transition #10

@samudzi

Description

@samudzi

Summary

The investigation protocol involves: diagnostic question → block → re-submit → investigation plan → ExitPlanMode → investigate → findings → EnterPlanMode for fix → code-change plan. The test suite tests investigation mode activation and tool blocking, but not the full cycle including the transition to a subsequent code-change plan.

Motivation

The specific risk: does clear_workflow_keys properly reset diagnostic_mode when EnterPlanMode fires for the fix cycle? clear_workflow_keys includes diagnostic_mode in its key list, so it should work — but it's not tested end-to-end.

Proposed Change

Add an end-to-end test covering the full investigation → code-change plan transition:

  1. Activate investigation mode
  2. Complete investigation
  3. Enter plan mode for fix
  4. Verify diagnostic_mode is properly reset
  5. Verify code-change plan workflow works normally after investigation

Acceptance Criteria

  • Full investigation → code-change cycle is tested end-to-end
  • diagnostic_mode reset is verified at each transition point
  • Test passes with current implementation (validates existing behavior)

Metadata

Metadata

Assignees

No one assigned

    Labels

    SEPSoftware Evolution ProposalenhancementNew feature or requesttest-coverageTest coverage gaps

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions