GeezerVison is showing github.com — mcpx: review-first elicit surface — domain line, punycode warn, schema defaults, masked confirm (#1678) by dezren39 · Pull Request #3011 · developing-today/code
Conversation
dezren39
commented
Oct 31, 2026
•
edited by blacksmith-sh
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Implements #1678 (Phase 3 of #1675, queue task 3662) — the review-first mcpx elicit surface, per the decisions settled in triage task 1886.
What
- URL questions (
renderQuestion): full URL unchanged, plus a domain <eTLD+1> line (golang.org/x/net/publicsuffix, host fallback on error). A punycode (xn--) or non-ASCII host also prints both host forms — host münchen.de (xn--mnchen-3ya.de) — and the warn line host uses punycode; check the domain is the one you expect. Plain ASCII hosts get no warn. No ANSI.
- Form questions:
describeSchema carries declared defaults (default: <json> in the field detail) and exampleFor emits the declared default instead of "...". Field order is now sorted (was map order) so fixtures are deterministic.
elicit answer review: when content is present, the mode is form, stdin is a terminal, and --yes (new, long form only; applies to answer/accept) is absent, the parsed answer is rendered back with credential-shaped values masked as (set)/(not set) and relayed only on an explicit y/yes; declining or EOF exits non-zero and sends nothing. --yes and non-interactive stdin are byte-for-byte the old behaviour; the existing e2e TestElicitationsCanBeListedAndAnsweredFromTheCommandLine passes unchanged.
- One masking heuristic:
elicit.IsSensitiveField(name, format) is exported from internal/elicit (format=password + name substrings) and Route now routes through it — the CLI review uses the same helper, no second copy.
- Conformance: the six elicit-ui gaps (
elicitation-app-review-modify-responses, …-client-form-review-modify-responses, …-client-url-show-domain-and-consent, …-client-handle-urls-carefully, …-client-highlight-domain, …-client-warn-punycode) are retired and registered as covered by the new cli tests; their rows in docs/spec/conformance-matrix.md are updated to match. The remaining fix(id): coalesce LogSync ingest batches (#241) #255 server gap text no longer claims world-readable storage (owner-only since mcpx: Phase 1 of #1675 — owner-only elicitation broker store (0700 dir, 0600 files, migration on open) #1676).
golang.org/x/net becomes a direct dependency (already in go.sum via tailscale; go.sum unchanged, so the nix vendorHash is unaffected).
Matrix regeneration note
TestMatrix cannot complete on current main: LoadAuthSplit fails on unrelated authz rows (authz-*/server does not bind mcpx) — reproduced on clean main, already filed as #2695 / #2716. The matrix rows for this change were produced with the real Render/Evaluate code (only the unrelated authsplit validation bypassed) and applied surgically to the 13 rows this PR owns, so the PR carries no unrelated matrix churn; the summary counts and input digest in the committed file remain as on main until #2695 is fixed. Both substantive TestMatrix subtests pass: every-reference-names-a-real-test and every-applicable-requirement-is-tested-or-a-gap.
Tests (laptop)
Remaining #1954 slice: evidence comment posted on #1954 naming elicitation-server-validate-received-data as the remaining server-relay validation work (broker-side form validation is in flight separately in PR #2646); #1954 is not closed by this PR.
Queue task 3662 · lane C
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Need help on this PR? Tag @codesmith-bot with what you need.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
…a defaults, masked confirm (#1678)
coderabbitai
Bot
commented
Oct 31, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
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 42 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:
b4e85cd8-34d2-40b6-9254-69d8e6786692
Commits
-
Reviewing files that changed from the base of the PR and between 8e94292 and f626032.
Files selected for processing: 7
-
pkgs/mcpx/docs/spec/conformance-matrix.md
pkgs/mcpx/go.mod
pkgs/mcpx/internal/cli/elicit.go
pkgs/mcpx/internal/cli/elicit_test.go
pkgs/mcpx/internal/cli/flagindex_generated.go
pkgs/mcpx/internal/conformance/coverage_clientfeatures.go
pkgs/mcpx/internal/elicit/elicit.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
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-10-31T10:54:09.908191Z |
f626032 |
Manual request |
ℹ️ 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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ff55530479
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…lts in review (#1678)
Codex P1 (PR 3011): schema defaults are server-controlled; renderQuestion embedded their JSON in literal single quotes, so an apostrophe broke the suggested command and a crafted default could inject shell. The whole generated JSON is now shell-quoted at the rendering boundary (shellQuote).
Codex P2: the relay applies schema defaults to omitted fields (mcpclient.applyDefaults), so renderAnswerReview now includes effective defaults for omitted fields, sensitive ones still masked as (set)/(not set).
Regression tests: TestRenderQuestionShellQuotesDefaults, TestRenderAnswerReviewIncludesEffectiveDefaults.
|
@codex review — P1 and P2 addressed in e49aa20 (shellQuote at the rendering boundary; effective defaults in the answer review), threads replied and resolved.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e49aa20f11
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
@codex review — both P2s on e49aa20 are fixed in f626032 (hostname lowercased for the publicsuffix lookup; confirmation read is now context-cancellation-aware and the answer path re-checks ctx before Respond). Threads replied + resolved, regression tests added for both. Please re-review the new head.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Hooray!
Reviewed commit: f6260328a3
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 3, 2026
Uh oh!
There was an error while loading. Please reload this page.
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|