swarm: native interruptibility for dispatched agent workers #107

Merged
will.anderson merged 1 commits from worktree-agent-a6177cda24c71d1df into dev 2026-08-15 19:57:11 +00:00
Owner

Preserving uncommitted work found in an open worktree during a worktree audit. Cancellation-token control channel checked at every step boundary lets a coordinator PAUSE/RESUME/REDIRECT/KILL a running worker mid-task instead of waiting for the whole (possibly wrong) plan to finish. Bounded purviews mean no half-committed state to unwind on interrupt. Includes a proof harness comparing a broken non-interruptible worker against the new one under identical kill/redirect/pause timing. Note: distinct from the already-preserved wt/swarm-ccr orchestrator (PR #102, fan-out/converge dispatch) — this is single-worker interruptibility, a complementary mechanism, not a duplicate.

Preserving uncommitted work found in an open worktree during a worktree audit. Cancellation-token control channel checked at every step boundary lets a coordinator PAUSE/RESUME/REDIRECT/KILL a running worker mid-task instead of waiting for the whole (possibly wrong) plan to finish. Bounded purviews mean no half-committed state to unwind on interrupt. Includes a proof harness comparing a broken non-interruptible worker against the new one under identical kill/redirect/pause timing. Note: distinct from the already-preserved wt/swarm-ccr orchestrator (PR #102, fan-out/converge dispatch) — this is single-worker interruptibility, a complementary mechanism, not a duplicate.
will.anderson added 1 commit 2026-08-15 19:26:00 +00:00
Add native interruptibility for dispatched agent workers
El SDK CI - dev / build-and-test (pull_request) Failing after 14m43s
708722b7ff
Cancellation-token control channel checked at every step boundary lets a
coordinator PAUSE/RESUME/REDIRECT/KILL a running worker mid-task instead of
waiting for the whole (possibly wrong) plan to finish. Bounded purviews
mean no half-committed state to unwind on interrupt. Includes a proof
harness (proof.el, run.sh) comparing a broken non-interruptible worker
against the new one under identical kill/redirect/pause timing.

Distinct from the already-preserved swarm-ccr orchestrator (fan-out/
converge dispatch): this is single-worker interruptibility, a
complementary mechanism, not a duplicate.
will.anderson merged commit d4a04bb944 into dev 2026-08-15 19:57:11 +00:00
Sign in to join this conversation.