Problem
The bug-investigator workflow documents that DP-5 escalation is allowed only after at least three failed fix attempts.
However, the generic state command currently allows callers to persist DP-5 state fields (for example, dp_5_result, dp_5_timestamp, and related evidence fields) without enforcing that requirement.
This can allow an execution agent to enter DP-5 prematurely.
Expected behavior
DP-5 should only be persisted through a guarded escalation path after all of the following are true:
- At least three distinct failed fix attempts have been recorded.
- Every attempt contains structured failure evidence.
- The evidence belongs to the current execution plan.
- The workflow is in an eligible debugging state.
- The user explicitly confirms the escalation.
Important distinction
A failed Wave code review and a failed debugging fix attempt are different events. A Wave Review failure count should not automatically satisfy the DP-5 debugging-attempt requirement.
Suggested direction
- Add a structured debugging-attempt ledger.
- Add guarded commands such as
ssf debug attempt record/show and ssf debug escalate --confirm.
- Prevent the generic state command from directly writing protected DP-5 fields.
- Extend audit checks to detect DP-5 records that are not backed by valid evidence.
- Preserve compatibility for legacy state while reporting unsupported escalation records.
Suggested tests
- Reject escalation with zero, one, or two failed attempts.
- Allow escalation after three distinct valid failed attempts and explicit confirmation.
- Reject duplicate evidence.
- Reject evidence from a stale execution plan.
- Reject direct writes to protected DP-5 state fields.
- Verify that a Wave Review failure does not count as a debugging fix attempt.
- Detect unsupported legacy DP-5 records during audit.
Problem
The
bug-investigatorworkflow documents that DP-5 escalation is allowed only after at least three failed fix attempts.However, the generic state command currently allows callers to persist DP-5 state fields (for example,
dp_5_result,dp_5_timestamp, and related evidence fields) without enforcing that requirement.This can allow an execution agent to enter DP-5 prematurely.
Expected behavior
DP-5 should only be persisted through a guarded escalation path after all of the following are true:
Important distinction
A failed Wave code review and a failed debugging fix attempt are different events. A Wave Review failure count should not automatically satisfy the DP-5 debugging-attempt requirement.
Suggested direction
ssf debug attempt record/showandssf debug escalate --confirm.Suggested tests