pub fn evaluate_layer3(
project_root: &Path,
phase: u32,
git_flow: &GitFlowConfig,
) -> Result<AgentResult, ResultError>Expand description
Layer 3: Last resort — agent process is gone.
Split per D-02/D-03 case 3 (17-03): “process gone, commits exist” stays
Unknown — unverified but there is SOMETHING to account for, and Plan
04’s never-advance dispatch gates it downstream (D-04) rather than
reclassifying it here. “Process gone, zero commits, nothing declared” is
no longer a blanket advanceable Unknown — it is reclassified to
Failed so a vanished agent that produced and declared nothing cannot
masquerade as ambiguous-but-fine; the reason flags that human review is
needed. This only fires when neither Layer 1 nor Layer 2 produced a
definitive result.