Skip to content

mcpx: relay client elicitation answers upstream; surface answer refusals (#8922 family 1) - #11188

Merged
dezren39 merged 1 commit into
mainfrom
queue/20361-mcpx-conformance
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20361-mcpx-conformance

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

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) — but Broker.Respond validated those answers against the requestedSchema (the #1954 gate) and Reply discarded the route's problems map. A refused answer left the question pending, so the ask loop re-pushed the same question, got the same answer, and burned all AskRounds before failing the call with -32603 (tools-call-elicitation failing in server-2025-06-18, server-2025-11-25 and server-all).

  • Answers arriving via the ask-answers route are marked Relayed; Broker.Respond skips 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.Reply now surfaces the route's problems map as an error, so any remaining refusal (unknown question, unparseable answer, overdue) fails the call fast with its reason instead of looping.
  • Regression tests at both changed layers: TestRespondRelayedAnswerSkipsSchemaGate / TestRespondRelayedAnswerStillNeedsContent (elicit) and TestDaemonAskerReplySurfacesRefusals / TestDaemonAskerReplyAcceptsCleanReceipt (cli).

Verification (official suite, pinned ref 7169291ec0b68eb370fddcd9947313ab0d5e4156, via scripts/conformance.sh)


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

…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.
@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 09:52
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-17T09:52:30.007651Z
We couldn’t complete this review. Comment @codex review to try again.
186b081 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Nov 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You'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.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: ad968a14-2c16-4738-a8f4-d28ae4269059
Commits

Reviewing files that changed from the base of the PR and between 7fa7e13 and 186b081.

Files selected for processing: 5

  • pkgs/mcpx/internal/cli/serve_ask.go
  • pkgs/mcpx/internal/cli/serve_ask_reply_test.go
  • pkgs/mcpx/internal/daemon/routes_proto.go
  • pkgs/mcpx/internal/elicit/elicit.go
  • pkgs/mcpx/internal/elicit/relayed_answer_test.go
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

Share

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@dezren39
dezren39 merged commit 2e1be5b into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20361-mcpx-conformance branch November 17, 2026 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

main-broken: developing-today/code mcpx conformance @1858531 — full (main tier): client-2025-06-18

1 participant