You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agent slot gate: routes that wake an idle thread are still ungated #711
Follow-up to #706 / #710. #710 puts create_threads, t3_thread_launch and scheduled runs behind the same agent slot gate as delegate_task. These routes still start an agent run in an existing idle thread without taking a slot:
t3_thread_send to an idle thread
t3_thread_transfer when it forks the thread
wait deliveries (wait_for etc.) that wake an idle thread
A person typing in the composer is left ungated on purpose (a person decides).
Decide per route: gate it (refuse or hold with the same plain reason), or document why it stays open. Mind that a woken parent that is refused must not lose the wake-up (it should start when a slot frees, like refused scheduled runs in #710).
One more ungated start, found in the last review round of #710:
What happens: a scheduled task is bound to a thread whose run is active, so it only queues its prompt there and takes no slot. If that run ends in the few milliseconds between the "is it running" check and the send (mode: "queue"), the send starts one new run without a slot: on an idle thread, a queued send starts at once.
Effect: nothing is lost and nothing runs twice, but there is one start over the limit.
Fix: it is the same case as "t3_thread_send to an idle thread" above, and closes with it, when the send itself asks the gate for an idle thread.
Activity
agent slots: a refused scheduled run waits for a slot, never lost (#706)
agent slots: a refused direct webhook delivery is stored, so a restar…
scuttletoby commentedon Nov 21, 2026
One more ungated start, found in the last review round of #710:
mode: "queue"), the send starts one new run without a slot: on an idle thread, a queued send starts at once.t3_thread_sendto an idle thread" above, and closes with it, when the send itself asks the gate for an idle thread.🤖 Generated with Claude Code
Agent slots: every route that starts an agent goes through the slot g…
Fork: slot gate for the remaining wake-up routes; count each held wak…
fork seams: announce the slot lines on t3_thread_send and its attachm…
Agent slots: every route that starts an agent goes through the slot g…
fork seams: announce the slot lines on t3_thread_send and its attachm…
Fork: gate agent messages and wait wake-ups that start a run in an id…
Agent slots: every route that starts an agent goes through the slot g…
fork seams: announce the slot lines on t3_thread_send and its attachm…
Fork: gate agent messages and wait wake-ups that start a run in an id…
Agent slots: every route that starts an agent goes through the slot g…
fork seams: announce the slot lines on t3_thread_send and its attachm…
Fork: gate agent messages and wait wake-ups that start a run in an id…
Agent slots: every route that starts an agent goes through the slot g…
fork seams: announce the slot lines on t3_thread_send and its attachm…
Fork: gate agent messages and wait wake-ups that start a run in an id…
Agent slots: every route that starts an agent goes through the slot g…
fork seams: announce the slot lines on t3_thread_send and its attachm…
Fork: gate agent messages and wait wake-ups that start a run in an id…
feat(server): Antigravity limits from the CLI's own /usage report (#1149
Pin the wait worker's shared slot-gated delivery in its source test
Review rounds by code, part 2: a lens report takes the round's next s…