huskies: merge 1100 bug Multiple LLM agents can run concurrently on the same story (coder + mergemaster + others) — enforce one-agent-per-story invariant

This commit is contained in:
dave
2026-05-15 20:19:35 +00:00
parent 9f4f493486
commit 4216ced493
7 changed files with 429 additions and 13 deletions
+4
View File
@@ -209,6 +209,10 @@ pub(crate) fn spawn_tick_loop(
{
crate::slog!("[reconcile] Running periodic reconcile pass.");
run_reconcile_pass(r, &agents, done_retention).await;
// Stop LLM agents whose pipeline stage no longer matches the
// story's current canonical stage. Cleans up stale agents left
// behind after a stage transition (story 1100).
agents.reconcile_canonical_agents(r).await;
}
}
});