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
For url-mode elicitation under MRTR, the spec notes that a round-2 retry "may need to block until the request is fulfilled," but it does not define a bounded, non-blocking idiom for "not done yet," nor a timeout/cancel verb.
Problem
A server that brokers an out-of-band flow (OAuth consent, credential entry, payment, external approval) often should not hold the round-2 request open until the user finishes — that ties up a connection for an unbounded time and doesn't compose with stateless/HTTP deployments. The server needs a sanctioned way to answer a premature retry with "still waiting, try again."
Server Requirement #6 already permits returning an InputRequiredResult with the same requestState and no new inputRequests, which is the natural "still waiting" signal. But it is not named or recommended as the idiom, so:
implementers don't know it's the blessed pattern (vs. blocking, vs. an error),
there's no guidance on client retry/backoff bounds, so clients either hammer or give up,
there's no standard cancel verb for the user abandoning the out-of-band flow.
Request
Explicitly bless the state-only InputRequiredResult (same requestState, empty/absent inputRequests) as the canonical "still waiting" response for an in-progress out-of-band interaction.
Add client guidance on retry cadence / backoff bounds for that response (and clarify whether notifications/elicitation/complete is the preferred wake signal vs. polling).
Specify a cancel/abandon path (verb or inputResponses action) for when the user dismisses the out-of-band flow, so the server can release requestState deterministically rather than relying on TTL.
Context
Implemented the host side of MRTR url-mode and hit exactly this ambiguity: the state-only-refresh response works, but whether it's the intended idiom, how aggressively to retry, and how to signal cancellation are all left to implementer guesswork.
I think #2919 helps sharpen the lifecycle question here: "still waiting" is transport/progress state; it should not itself imply anything about the authorization/decision outcome.
For an out-of-band approval flow, I would make that distinction testable with a small set of conformance cases:
Pending retry preserves identity — a state-only InputRequiredResult keeps the same requestState and does not synthesize a new tools/call.
Cancel is terminal for that continuation — after the client abandons/cancels the flow, the suspended operation cannot later resume because an approval arrives late.
Expiry is not a human answer — timeout/expiry should terminate or transition the lifecycle explicitly; it should not be encoded as a successful input response.
Completion resumes at most once — if a completion notification races with a poll/retry, the original suspended operation must not execute twice.
Pending has no execution side effect — repeated "still waiting" polls cannot reach the tool handler.
The last two seem especially important for state-changing tools: otherwise a perfectly reasonable polling/wakeup implementation can accidentally turn a lifecycle ambiguity into duplicate execution.
This also keeps the layering clean: #2919 can make namespaced request/response types extensible for things that are not approvals (e.g. host resource reads), while this issue can define the generic MRTR waiting/cancel behavior that any long-running out-of-band interaction needs.
If the intended semantics already guarantee terminal cancellation and at-most-once resume, documenting those as explicit invariants/tests would remove a lot of implementation guesswork.
I implemented the server side of an out-of-band brokered flow (OAuth consent / credential entry) under MRTR url-mode and hit this exact ambiguity, so a few concrete recommendations from that experience:
1. Bless the state-only result explicitly, and name it. The same-requestState, no-new-inputRequests response (Server Requirement #6) is the right "still waiting" signal, but because it isn't named as the canonical idiom, implementers reasonably reach for blocking or for an error instead. Blocking is the worst of the three for stateless/HTTP deployments — it pins a connection for an unbounded human-latency wait and doesn't survive a load-balanced redeploy. Naming the state-only refresh as the blessed pattern would settle this.
2. Prefer event-driven wake over polling, with a bounded fallback. Where the transport supports it, a completion notification is far better than client polling for a human-latency flow (consent can take minutes). I'd suggest the guidance be: wake on notification when available; otherwise retry with capped exponential backoff and an explicit ceiling, rather than an unbounded tight loop. A concrete default range in the spec (e.g. a documented min/max) would stop clients from either hammering or giving up.
3. The lifecycle invariants above are the important part for stateful tools. I strongly endorse framing cancel/expiry/at-most-once-resume as testable invariants. From a connector perspective the two that bite in production are: pending has no execution side effect (a "still waiting" poll must never reach the tool handler) and completion resumes at most once (a completion racing a poll must not double-execute). These are exactly the cases where a reasonable-looking implementation silently turns a lifecycle gap into a duplicate external effect (a second charge, a second ticket, a second approval). Documenting them as MUST-level invariants with conformance vectors would prevent a whole class of real bugs.
4. Cancel needs a deterministic verb, not TTL. Relying on requestState TTL to clean up an abandoned flow means the server can't distinguish "user walked away" from "user is slow." An explicit cancel/abandon action lets the server release state deterministically and lets a downstream approval system record "abandoned" rather than "expired."
This and #2919 layer cleanly: #2919 makes the request/response vocabulary extensible; this issue defines the generic waiting/cancel lifecycle any long out-of-band interaction needs.
Disclosure: I drafted this with AI assistance and reviewed it; the position and experience are my own.
Activity
hippoley commentedon Oct 3, 2026
I think #2919 helps sharpen the lifecycle question here: "still waiting" is transport/progress state; it should not itself imply anything about the authorization/decision outcome.
For an out-of-band approval flow, I would make that distinction testable with a small set of conformance cases:
InputRequiredResultkeeps the samerequestStateand does not synthesize a newtools/call.The last two seem especially important for state-changing tools: otherwise a perfectly reasonable polling/wakeup implementation can accidentally turn a lifecycle ambiguity into duplicate execution.
This also keeps the layering clean: #2919 can make namespaced request/response types extensible for things that are not approvals (e.g. host resource reads), while this issue can define the generic MRTR waiting/cancel behavior that any long-running out-of-band interaction needs.
If the intended semantics already guarantee terminal cancellation and at-most-once resume, documenting those as explicit invariants/tests would remove a lot of implementation guesswork.
priyankanmehta commentedon Oct 20, 2026
I implemented the server side of an out-of-band brokered flow (OAuth consent / credential entry) under MRTR url-mode and hit this exact ambiguity, so a few concrete recommendations from that experience:
1. Bless the state-only result explicitly, and name it. The same-
requestState, no-new-inputRequestsresponse (Server Requirement #6) is the right "still waiting" signal, but because it isn't named as the canonical idiom, implementers reasonably reach for blocking or for an error instead. Blocking is the worst of the three for stateless/HTTP deployments — it pins a connection for an unbounded human-latency wait and doesn't survive a load-balanced redeploy. Naming the state-only refresh as the blessed pattern would settle this.2. Prefer event-driven wake over polling, with a bounded fallback. Where the transport supports it, a completion notification is far better than client polling for a human-latency flow (consent can take minutes). I'd suggest the guidance be: wake on notification when available; otherwise retry with capped exponential backoff and an explicit ceiling, rather than an unbounded tight loop. A concrete default range in the spec (e.g. a documented min/max) would stop clients from either hammering or giving up.
3. The lifecycle invariants above are the important part for stateful tools. I strongly endorse framing cancel/expiry/at-most-once-resume as testable invariants. From a connector perspective the two that bite in production are: pending has no execution side effect (a "still waiting" poll must never reach the tool handler) and completion resumes at most once (a completion racing a poll must not double-execute). These are exactly the cases where a reasonable-looking implementation silently turns a lifecycle gap into a duplicate external effect (a second charge, a second ticket, a second approval). Documenting them as MUST-level invariants with conformance vectors would prevent a whole class of real bugs.
4. Cancel needs a deterministic verb, not TTL. Relying on requestState TTL to clean up an abandoned flow means the server can't distinguish "user walked away" from "user is slow." An explicit cancel/abandon action lets the server release state deterministically and lets a downstream approval system record "abandoned" rather than "expired."
This and #2919 layer cleanly: #2919 makes the request/response vocabulary extensible; this issue defines the generic waiting/cancel lifecycle any long out-of-band interaction needs.
Disclosure: I drafted this with AI assistance and reviewed it; the position and experience are my own.