huskies: merge 1211 story Deterministic crash notification when the agent PTY dies mid-turn

This commit is contained in:
Huskies Agent
2026-07-18 11:00:28 +00:00
parent 153333d055
commit 71f3fa09c4
8 changed files with 315 additions and 6 deletions
+14
View File
@@ -138,4 +138,18 @@ pub enum WatcherEvent {
/// Identifier of the sled that observed the recovery.
host_id: String,
},
/// An agent's PTY child process died before completing its current turn
/// (no `"result"` event was observed) — a crash, kill, or watchdog
/// termination rather than a clean finish (story 1211).
/// Triggers a deterministic crash notification to configured chat rooms.
AgentCrashed {
/// Work item ID the agent was working on.
story_id: String,
/// Name of the agent whose process died.
agent_name: String,
/// Child process exit code, when available.
exit_code: Option<u32>,
/// Last non-empty line emitted by the child before it died, if any.
last_error_line: Option<String>,
},
}