Repository navigation
Description
Is there an existing issue for the same bug?
- I checked existing issues. Bug: run cancellation does not reach active MCP calls and can leave ownership unsettled #1016 tracks broader cancellation propagation and end-to-end settlement; this issue does not claim to close that work.
Version and environment
Reproduced while using Astra Server with an authenticated request-scoped MCP gateway and Edge provider on Linux ARM64. Original deployment revision: 13fc11ed611a839461b495322f36eb38e405461a; the affected paths remain present on main at 22f94ceedf35675ce7c3ec1165b307d831f379a8.
Actual behavior
- Agent Binding MCP
tools/calluses a fixed 120-second response wait even when the authenticated gateway admits longer operations. A legitimate long build can outlast the transport deadline. - Edge registration/finalization storage failures are emitted as
edge_auth_error, although the credentials have not been rejected. This can stop the existing Edge reconnect lifecycle. - A root run whose tool approval cannot reach a parent loses the original policy reason and reports only the approval-delivery failure. The agent cannot identify the guarded operation to correct it.
Expected behavior
The authenticated gateway can explicitly declare a bounded tool-call response budget. Undeclared budgets retain 120 seconds; invalid declarations fail admission. Discovery and cancellation settlement keep their own existing budgets. A cancellation acknowledgement alone never proves that execution stopped.
Registration storage failures keep the connection unpublished and use retryable unavailability; authoritative authentication failures still reject credentials. Approval failures retain both the policy reason and delivery error while continuing to deny execution.
Steps to reproduce
- Bind an authenticated MCP gateway with a legitimate tool operation that takes more than 120 seconds and observe the fixed response deadline.
- Make the Edge registry return a storage error during registration or finalization, then connect an authenticated Edge client and inspect the WebSocket failure frame.
- Execute a guarded Git command from a root run with no parent approval recipient and inspect the denied tool result.
These paths can also be reproduced deterministically with loopback HTTP/WebSocket services and the existing permission integration fixture, without a live model or database credentials.
Additional information
This concerns transport budgets and failure classification, not a build-specific workflow, a permission bypass, or a database-performance fix. Database EOF/latency root-cause investigation and full independent build stability acceptance are separate work. Related: #1016.
Activity
fix(runtime): bound gateway waits and preserve failure reasons (#1094)