Repository navigation
mcpx conformance: harness daemons run with writePolicy allow (#8922) - #10985
Conversation
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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
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 43 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. |
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:
every tools/call waited out the ask and died as a 30s scenario-timeout.
tools-list/initialize/ping passed; every tools-call-* scenario failed.
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:
all 9 failures the known OAuth set.
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.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.