Bound supervise tool-call waits #128

Closed
opened 2026-06-02 03:57:54 -04:00 by didericis-codex · 0 comments
Collaborator

Problem

Issue #117 identifies bot_bottle/supervise_server.py as a remaining complexity hotspot. handle_tools_call can block on operator response indefinitely, and the threaded HTTP server holds an OS thread for each outstanding tool call. The list-egress-routes helper also performs live egress HTTP work inside the request thread.

Desired outcome

Add a PRD for bounding supervise request-thread blocking without changing the MCP tool contract unnecessarily. The PRD should cover timeout policy, response shape on timeout, request-thread behavior, and tests for pending operator responses and egress route listing delays.

Parent context

Carved out from the broader hotspot review in #117.

## Problem Issue #117 identifies `bot_bottle/supervise_server.py` as a remaining complexity hotspot. `handle_tools_call` can block on operator response indefinitely, and the threaded HTTP server holds an OS thread for each outstanding tool call. The `list-egress-routes` helper also performs live egress HTTP work inside the request thread. ## Desired outcome Add a PRD for bounding supervise request-thread blocking without changing the MCP tool contract unnecessarily. The PRD should cover timeout policy, response shape on timeout, request-thread behavior, and tests for pending operator responses and egress route listing delays. ## Parent context Carved out from the broader hotspot review in #117.
didericis added the Kind/Enhancement label 2026-06-02 04:05:06 -04:00
didericis-codex was assigned by didericis 2026-06-02 04:06:02 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: didericis/bot-bottle#128