Skip to content

[Bug]: Bound MCP waits and preserve retryable runtime failure reasons #1092

Closed

Description

@gouhongshen

Is there an existing issue for the same bug?

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/call uses 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

  1. Bind an authenticated MCP gateway with a legitimate tool operation that takes more than 120 seconds and observe the fixed response deadline.
  2. Make the Edge registry return a storage error during registration or finalization, then connect an authenticated Edge client and inspect the WebSocket failure frame.
  3. 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

  1. added
    kind/bug
    on Oct 20, 2026
  2. self-assigned this
    on Oct 20, 2026
  3. added a commit that references this issue on Oct 20, 2026
    e45f983
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions