Skip to content

Commit 21909da

Browse files
Yeachan-Heoclaude
andcommitted
Implement startup-no-evidence evidence bundle + classifier (US-001)
Adds typed worker.startup_no_evidence event with evidence bundle when worker startup times out. The classifier attempts to down-rank the vague bucket into specific failure classifications: - trust_required - prompt_misdelivery - prompt_acceptance_timeout - transport_dead - worker_crashed - unknown Evidence bundle includes: - Last known worker lifecycle state - Pane/command being executed - Prompt-send timestamp - Prompt-acceptance state - Trust-prompt detection result - Transport health summary - MCP health summary - Elapsed seconds since worker creation Includes 6 regression tests covering: - Evidence bundle serialization - Transport dead classification - Trust required classification - Prompt acceptance timeout - Worker crashed detection - Unknown fallback Closes Phase 1.6 from ROADMAP. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac45bbe commit 21909da

2 files changed

Lines changed: 371 additions & 1 deletion

File tree

rust/crates/runtime/src/recovery_recipes.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,9 @@ impl FailureScenario {
4848
WorkerFailureKind::TrustGate => Self::TrustPromptUnresolved,
4949
WorkerFailureKind::PromptDelivery => Self::PromptMisdelivery,
5050
WorkerFailureKind::Protocol => Self::McpHandshakeFailure,
51-
WorkerFailureKind::Provider => Self::ProviderFailure,
51+
WorkerFailureKind::Provider | WorkerFailureKind::StartupNoEvidence => {
52+
Self::ProviderFailure
53+
}
5254
}
5355
}
5456
}

0 commit comments

Comments
 (0)