Skip to content

mcpx conformance: harness daemons run with writePolicy allow (#8922) - #10985

Merged
dezren39 merged 1 commit into
mainfrom
queue/20239-8922-conf-policy
Nov 17, 2026
Merged

dezren39 merged 1 commit into
mainfrom
queue/20239-8922-conf-policy

Conversation

@dezren39

@dezren39 dezren39 commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Conformance harness: stop asking a human who does not exist in CI

Refs #8922 (partial — see "Remaining" below)

The write-policy gate (policy.write, default "ask", #1979) intercepts every
write-classified tool call and opens a broker confirmation that only an
answer of {"confirm": true} satisfies. The conformance daemons were started
with no per-server policy, so:

  • Server legs: the suite's client cannot answer a broker question at all, so
    every tools/call waited out the ask and died as a 30s scenario-timeout.
    tools-list/initialize/ping passed; every tools-call-* scenario failed.
  • Client legs: officialclient answers broker questions with Accept and empty
    content {} (deliberate, to exercise schema-default filling), which the gate
    reads as not-confirmed, so the one non-OAuth call in the leg was refused:
    "conf.add_numbers may be destructive and was not confirmed: the answer was
    accept". client-2025-06-18 measured 2 passed / 10 failed against the
    workflow's expected 3 / 9.

Fix: give the harness daemons' servers "writePolicy": "allow" — in
scripts/conformance.sh's start_daemon config (demo + tasks) and in the
config internal/conformance/officialclient writes for its daemon. The gate
itself is product behaviour for interactive use, stays at its default
everywhere else, and is covered by the daemon's unit tests
(write_policy_test.go, destructive_test.go). No conformance scenario is
skipped or weakened; the harness simply stops putting a consent prompt on
the call path it is measuring.

Verified locally against the official suite at the workflow's pinned ref
(7169291), patched build:

  • client-2025-06-18: 3 passed / 9 failed — exactly the workflow EXPECT,
    all 9 failures the known OAuth set.
  • server-2025-06-18: 55 passed / 1 failed (was 44 / 11 in run 43998867899).

Remaining (separate bug, follow-on task enqueued): tools-call-elicitation
still fails in server legs. The fixture's test_elicitation requests a schema
requiring a string field "response"; the suite client answers accept with
its canned {username, email} content. The broker refuses that answer
(schema validation of relayed answers, #1954), the refusal is reported only
in the /v1/ask answers response's "problems" map, daemonAsker.Reply drops
it, and the mcpserver ask loop re-pushes the same question until AskRounds
(8) and fails the call: "tools/call was still asking for input after 8
rounds". Reproduced standalone in ~40ms with the daemon + fixture run by
hand. That is a product-semantics fix (validation of relayed answers, and
surfacing refused answers instead of re-asking), not a harness setting, so
it is deliberately not in this PR.


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

@dezren39
dezren39 requested a review from a team as a code owner November 17, 2026 05:02
@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-17T05:02:17.826469Z
We couldn’t complete this review. Comment @codex review to try again.
afb643c 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.

@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.

@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 43 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: 2848b36a-0f16-45ff-8b43-8492b8084f1f
Commits

Reviewing files that changed from the base of the PR and between 6d4194d and afb643c.

Files selected for processing: 2

  • pkgs/mcpx/internal/conformance/officialclient/main.go
  • pkgs/mcpx/scripts/conformance.sh
  • 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

@dezren39
dezren39 merged commit 4009442 into main Nov 17, 2026
1 check passed
@dezren39
dezren39 deleted the queue/20239-8922-conf-policy branch November 17, 2026 05:06
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.

1 participant