Skip to content

Slot gate covers only delegate_task: create_threads, thread launch, scheduled runs and remote delegation are not gated #706

Closed

Description

@scuttletoby

Found while reviewing #705 (lens A). The slot gate counts and limits only delegate_task. These routes that start an agent have never passed the gate:

  • create_threads
  • t3_thread_launch
  • scheduled runs (run-now, and runs on a schedule)
  • remote and peer delegation arriving from another machine

So an agent can start more threads than the slot limit allows through any of these routes. The limit exists because too many agents at once has killed agents on small hosts.

Decide for each route whether it should go through the same gate (same count, same refusal), and add tests showing each one is refused when slots are full. Remote delegation probably needs the receiving machine's gate rather than the sender's.

State question: runs again, stops half-way between the gate and the launch, old or empty store.

🤖 Generated with Claude Code

Activity

  1. 1 remaining item

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions