story-kit: merge 262_story_bot_error_notifications_for_story_failures

This commit is contained in:
Dave
2026-03-17 15:26:15 +00:00
parent bf5d9ff6b1
commit 96779c9caf
4 changed files with 98 additions and 0 deletions

View File

@@ -50,6 +50,14 @@ pub enum WatcherEvent {
/// Triggers a pipeline state refresh so the frontend can update agent
/// assignments without waiting for a filesystem event.
AgentStateChanged,
/// A story encountered a failure (e.g. merge failure).
/// Triggers an error notification to configured Matrix rooms.
MergeFailure {
/// Work item ID (e.g. `"42_story_my_feature"`).
story_id: String,
/// Human-readable description of the failure.
reason: String,
},
}
/// Return `true` if `path` is the root-level `.story_kit/project.toml`, i.e.