Repository navigation
mcpx: relay client elicitation answers upstream; surface answer refusals (#8922 family 1) - #11188
Conversation
…als (#8922) Family 1 of the #8922 conformance remainder. The daemon ask-answers route carries only the downstream client's own elicitation results (its sole poster is the MCP relay), but Broker.Respond Answers validated them against the requestedSchema (the #1954 gate) and daemonAsker.Reply discarded the route's problems map, so a refused answer left the question pending and the ask loop re-pushed it until AskRounds ran out (tools-call-elicitation failing in three server legs). Now: answers arriving via the ask-answers route are marked Relayed and skip the schema gate (the upstream judges its own answers, as on a direct connection; the gate still applies to cli/api/dashboard answers, and the null-content and sampling-shape refusals still apply to all), and Reply surfaces the problems map as an error so any remaining refusal fails the call fast with its reason. Regression tests at both layers. Verified against the official suite at the pinned ref: server-2025-06-18 56/0 (was 55/1), server-2025-11-25 80/0 (was 69/3 — the unasked sep1034/sep1330 scenarios shared this root cause), server-all SEP-2322 failures cleared; tasks-family failures remain and continue in task 20361.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 12 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Task 20361, Family 1 of the #8922 conformance remainder (root cause and semantics decision recorded on #8922 before this PR, per the packet's acceptance).
What
The elicitation relay loop: the daemon ask-answers route (
POST /v1/ask/{id}/answers) carries only the downstream client's own elicitation results — its sole poster is the MCP relay (daemonAsker.Reply) — butBroker.Respondvalidated those answers against therequestedSchema(the #1954 gate) andReplydiscarded the route'sproblemsmap. A refused answer left the question pending, so the ask loop re-pushed the same question, got the same answer, and burned allAskRoundsbefore failing the call with -32603 (tools-call-elicitationfailing in server-2025-06-18, server-2025-11-25 and server-all).Relayed;Broker.Respondskips the mcpx: elicitation storage is readable by any local user and never pruned; elicitation UI and response validation rows #1954 schema gate for them — the upstream judges its own answers, as on a direct connection. The gate still applies to answers entered on mcpx's own surfaces (cli/api/dashboard), and the null-content and sampling-shape refusals still apply to every source.daemonAsker.Replynow surfaces the route'sproblemsmap as an error, so any remaining refusal (unknown question, unparseable answer, overdue) fails the call fast with its reason instead of looping.TestRespondRelayedAnswerSkipsSchemaGate/TestRespondRelayedAnswerStillNeedsContent(elicit) andTestDaemonAskerReplySurfacesRefusals/TestDaemonAskerReplyAcceptsCleanReceipt(cli).Verification (official suite, pinned ref 7169291ec0b68eb370fddcd9947313ab0d5e4156, via scripts/conformance.sh)
go test ./internal/elicit/ -count=1and the new cli Reply tests pass; the full cli/config/openapi suites run before merge.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.