GeezerVison is showing github.com — mcpx: Phase 3 of #1834 — reviewable sampling in mcpx elicit + matrix/register truth-up + nix#256 evidence · Issue #1837 · developing-today/code
mcpx: Phase 3 of #1834 — reviewable sampling in mcpx elicit + matrix/register truth-up + nix#256 evidence #1837DescriptionPhase 3 of #1834 — reviewable sampling in mcpx elicit + truth-up + nix#256 evidence
Design: #1834 (mcpx sampling trust boundary). Design doc: files/designs/code-mcpx-sampling-trust-boundary.md in the keep-the-four-repos-healthy goal workspace. Origin: dezren39/darwin-nix#256. Gated on Phase 2 of #1834 (the rendering shows the validated shapes, and the truth-up needs both earlier phases' as-built state).
Problem
A person cannot review a sampling request, because the prompt is not shown. Sampling questions are broker rows whose Message is the request's system prompt (or "<server> asks for a model completion") and whose Schema field carries the full CreateMessageRequest — but renderQuestion (pkgs/mcpx/internal/cli/elicit.go) renders Schema as a JSON Schema: describeSchema looks for properties, a sampling request has none, so the messages render as nothing and the answer example offered is '{}'. elicit.Route (internal/elicit/elicit.go ~L502-503) also sends every Sample question to the agent audience unconditionally. Gaps: sampling-app-review-ui, sampling-app-view-edit-prompts, sampling-app-review-responses, sampling-client-user-approval-controls in pkgs/mcpx/internal/conformance/coverage_clientfeatures.go.
Scope — the existing surface learns sampling (no new UI)
renderQuestion for a Sample question renders it as sampling: requesting server, system prompt, and the message list (role + content per message, text verbatim) — not via describeSchema. mcpx elicit show gives the full request JSON.
- The answer example for a Sample question is a real
CreateMessageResult skeleton (role/model/content/stopReason), not '{}'.
- CLI help/docs for Sample questions state the review story plainly: a pending question can be inspected and answered/overridden by a person through list/show/answer; answered results are recorded on the broker row and visible via
mcpx elicit result <id>. Do NOT claim a pre-delivery staging state exists — building one is an open question on mcpx: design — sampling trust boundary (reviewable, validated, honestly error-coded) #1834, not part of this phase.
- Existing approval controls (audience routing, policy, decline) stay as they are; no new gate is invented.
Truth-up
pkgs/mcpx/docs/spec/conformance-matrix.md rows for all seven scoped #256 gaps updated to as-built — retired, or explicitly partial per row where the as-built state only partially meets the row (the review rows in particular: claim only what the rendering/routing changes actually deliver).
- Compare-register sampling rows touched by this design (SMP-05, SMP-06, SMP-10 in
pkgs/mcpx/docs/compare/register/sampling.md) updated to as-built.
- Completion evidence comment on mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) dezren39/darwin-nix#256 against each of its four acceptance bullets with the landing PRs; close nix#256 if and only if every bullet is met, naming any that is not.
Out of scope: validation or error-code changes (Phases 1–2), a pre-delivery staging hold, sampling rate limits (nix#257), elicitation rendering (that is #1675 Phase 3's ground — reuse its patterns, don't redo it).
Acceptance criteria
Activitydeveloping-today commented on Oct 28, 2026 dezren39 commented on Oct 28, 2026
Phase 3 of design #1834, filed by the design architect (2026-10-28), status/blocked gated on Phase 2 (#1836). Triage packet enqueued to repo-health-code-pilot as task 2720 (verified: queue=repo-health-code-pilot, status=queued, last_error=null). dezren39 commented on Oct 28, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane B shift
- Session / ID: queue task 2853 (triage of mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) #1955)
- Found via: queue claim (triage of the relocated mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) #1955)
- Task: mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) #1955 (the mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) dezren39/darwin-nix#256 relocation) has been closed as a duplicate of the mcpx: design — sampling trust boundary (reviewable, validated, honestly error-coded) #1834 set. This issue (mcpx: Phase 3 of #1834 — reviewable sampling in mcpx elicit + matrix/register truth-up + nix#256 evidence #1837) is the named home for its human-review acceptance item, and its truth-up already carries the nix#256 evidence; mcpx: Phase 1 of #1834 — typed sampling errors (-1 on rejection, -32602 tool-shape, expiry stays -32603) #1835 covers the error-mapping rows and mcpx: Phase 2 of #1834 — sampling message + result validation at the broker (pairing, era shape, no silent fill-in) #1836 the validation rows. No scope moved or shrunk — the pointer is recorded on mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) #1955 and mcpx: design — sampling trust boundary (reviewable, validated, honestly error-coded) #1834.
- Expectation: Nothing new asked of this issue; this note is the dedupe pointer from the mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) #1955 side.
- Links: mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) #1955 (closed, duplicate), mcpx: design — sampling trust boundary (reviewable, validated, honestly error-coded) #1834, mcpx: Phase 1 of #1834 — typed sampling errors (-1 on rejection, -32602 tool-shape, expiry stays -32603) #1835, mcpx: Phase 2 of #1834 — sampling message + result validation at the broker (pairing, era shape, no silent fill-in) #1836
dezren39 commented on Nov 10, 2026
agent-note: task 14379 picked up by lane code-v (direct assignment). Resume, not restart: this task already owns PR #8132 (branch queue/14379-1837-reviewable-sampling, commit f710a7f) implementing reviewable sampling in mcpx elicit for issue #1837, with files matching the issue scope (elicit.go, elicit_test.go, coverage, conformance matrix, sampling register). Fresh check: issue #1837 OPEN, no hard-stop labels, no status/needs-triage; PR #8132 OPEN, CI checks pending (none failed at check time). Parked 1200s for CI on PR #8132; resume condition: CI settles, then Codex gate and merge criteria. dezren39 commented on Nov 10, 2026
🤖 Agent note · parked — CI pending on PR #8132
dezren39 commented on Nov 10, 2026
🤖 Agent note · parked — CI pending on PR #8132
- Agent: repo queue worker, lane code-v (repo-worker-code), task 14379
- Verified fresh: issue mcpx: Phase 3 of #1834 — reviewable sampling in mcpx elicit + matrix/register truth-up + nix#256 evidence #1837 OPEN, no hard-stop labels, no status/needs-triage; PR feat(mcpx): reviewable sampling in mcpx elicit (#1837) #8132 OPEN/MERGEABLE, head f710a7f, files match scope; mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) dezren39/darwin-nix#256 CLOSED.
- Tests (laptop, worktree queue-14379):
go test ./internal/cli/ PASS (cached). go test ./internal/conformance/ FAIL — TestStatefulServer (tasks expiresAt schema) + TestUtilitiesServer (completion-max-100); the same failures reproduce on a non-PR tree and the PR touches none of those servers, so they are pre-existing and unrelated to PR feat(mcpx): reviewable sampling in mcpx elicit (#1837) #8132.
- CI: basic-tier checks on PR feat(mcpx): reviewable sampling in mcpx elicit (#1837) #8132 still pending since 2026-11-10T07:05Z (fleet-wide basic-tier stall). Codex: review failed to run (usage limits), zero inline findings — nothing to disposition.
- Resume: when PR feat(mcpx): reviewable sampling in mcpx elicit (#1837) #8132 checks settle green, merge and complete task 14379 as fixed_merged.
dezren39 commented on Nov 10, 2026
🤖 Agent note · done — PR #8132 merged
- Agent: repo queue worker, lane code-y (repo-worker-code), task 14379
- Outcome: PR feat(mcpx): reviewable sampling in mcpx elicit (#1837) #8132 MERGED — merge commit 0d72888 (head f710a7f, branch queue/14379-1837-reviewable-sampling). Resumed at awaiting_ci per §10.4, did not restart the work.
- Verified fresh this shift: PR feat(mcpx): reviewable sampling in mcpx elicit (#1837) #8132 mergeable=true; changed files match the issue scope (elicit.go, elicit_test.go, coverage_clientfeatures.go, conformance matrix, sampling register docs); mcpx: sampling relay -- human review, validation of results, error mapping (8 conformance rows) dezren39/darwin-nix#256 CLOSED (evidence leg).
- Tests:
go test ./internal/cli/ PASS on the laptop worktree (recorded by lanes code-y/code-v); conformance failures pre-existing, reproduced off-PR.
- Reviews: Codex review failed to run (usage limits) with zero inline findings — nothing to disposition; CodeRabbit rate-limited, no findings.
- CI: the 7 basic checks were still QUEUED in the fleet CI stall at merge time; merged under the standing merge authority (CI runs on main; verified PRs do not wait). Closing issue mcpx: Phase 3 of #1834 — reviewable sampling in mcpx elicit + matrix/register truth-up + nix#256 evidence #1837 as the Phase 3 scope is fully delivered; task 14379 completes as fixed_merged.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|