GeezerVison is showing github.com — mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) · Issue #2438 · developing-today/code
mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438DescriptionPhase 3 of design #2434 (mcpx error honesty, finished). Design doc: files/designs/code-mcpx-error-honesty.md in the keep-the-four-repos-healthy goal workspace. Gated on Phase 1 (#2435) — relayed requiredCapabilities must survive the gateway intact before this phase produces more of them. The decision is recorded on #2434.
Scope
-32021 exactly when waiting is not an answer, at the ask seam (internal/mcpserver/ask.go, canAsk ~L85):
- When a question would go to the broker because the requesting peer did not declare the capability the question needs, AND the broker's routing for that question has no audience that can answer it (no default audience, no routed audience for its kind/server — cf. ask.go:~196 "the default audience can answer, so waiting is right"; this phase is exactly the case where that premise fails), the request fails instead of waiting:
- modern peer →
-32021 with data.requiredCapabilities naming the missing capability, in the same shape missingTasks (tasks.go:199) and listen.go:138 already emit; HTTP 400 via the existing modernStatus mapping;
- legacy peer → the existing broker-less failure behaviour for that surface (no new code coined for legacy; -32021 is a 2026 construction).
- When any audience CAN answer, nothing changes: the broker fallback remains the deliberate alternative ERR-08 records.
- If the broker cannot today answer "does any audience exist for this question" truthfully, add that signal first — never guess it.
Truth-up (same phase)
- Retire the three gap rows in
internal/conformance/coverage_messages.go: errors-local-errors-not-mistaken-for-peer, errors-method-not-found-for-unadvertised-capability, mrtr-missing-capability-error-32021 (each replaced by the passing conformance claim or narrowed to any remainder with its reason).
- Update ERR-08 in
pkgs/mcpx/docs/compare/register/errors.md and record conflict Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 3e4d218 #8's disposition in pkgs/mcpx/docs/spec/revision-conflicts.md as this design's rule (broker-if-answerable, -32021-if-required) — coordinate with mcpx: spec-revision choice, finished — every conflict gets a disposition, the predicates get callers, and the policy is demonstrated end to end #2209's classification pass if it has not landed, so the conflicts doc gets one disposition, not two.
- Evidence comments on mcpx: smaller conformance gaps -- user identity, annotation trust, rate limits, cursors, URI encoding, prompt validation, restart, invalidation #1957 (its
accept-unadvertised + 32021-broker-fallback keys are split out to design(mcpx): error honesty, finished — peer errors relayed as peer errors, unadvertised methods refused, -32021 when a capability is truly required #2434 and now landed/retired) and on the Phase 8: open design items, retention, multi-device, and views #206 origin thread.
Acceptance
- A modern peer that declared no elicitation, whose tool call needs elicitation, with no broker audience able to answer, receives -32021 with
data.requiredCapabilities (HTTP 400) instead of an indefinite broker wait — covered by a test
- The same call WITH an answerable broker audience behaves exactly as today (broker question opens)
- Legacy peers see no -32021 and no behaviour change
- The three coverage gap rows are retired or explicitly narrowed; ERR-08 and conflict Bump build/buck/preludes/buck2-prelude from
3a02ea3 to 3e4d218 #8 carry the recorded disposition
- Evidence comments posted on mcpx: smaller conformance gaps -- user identity, annotation trust, rate limits, cursors, URI encoding, prompt validation, restart, invalidation #1957 and the Phase 8: open design items, retention, multi-device, and views #206 origin
- Tests run via CI per fleet policy (no builds on the sandbox)
Out of scope: Phases 1-2 mechanics, ERR-09/ERR-13 (they belong to #2209's classification), #1948's fixture-shaped items.
Acceptance criteria
- At the ask seam: when a question would go to the broker for a capability the requesting peer did not declare AND no broker audience can answer it, modern peers receive -32021 with
data.requiredCapabilities naming the missing capability (HTTP 400 via the existing modernStatus mapping); legacy peers keep the existing broker-less failure behaviour.
- When an audience CAN answer, behaviour is unchanged (the request waits as today).
- The error-register truth-up named in this issue is applied, and tests cover both the no-audience failure and the audience-exists wait. (Gated on Phase 1, mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435.)
Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026 🤖 agent-note:v1 — design-architect pass 16 (2026-10-29). Phase 3 of design #2434, gated on Phase 1 (#2435) — labelled status/blocked accordingly. Triage packet enqueued: pilot task 3648 (queue=repo-health-code-pilot, status=queued, verified). Triage: record the gate state, confirm the broker no-audience signal exists or scope it as the phase's first step, and enqueue the implementation follow-up with the acceptance criteria intact. dezren39 commented on Oct 30, 2026 Intake review (fleet monitor, 2026-10-29 run):
dezren39 commented on Nov 10, 2026 🤖 Agent note · parked — awaiting dependency (Phase 1 gate)
- Agent: queue worker (repo-worker-code), lane code-w
- Session / ID: task 14376, repo-queue-worker-shift-w 2026-11-10 run
- State: parked. Fresh check: issue mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438 OPEN, no hard-stop labels, no
status/needs-triage, assigned_lane=direct. Gate still unmet: Phase 1 issue mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435 OPEN and its PR mcpx: structured upstream-error carriage + local-error origin marker (#2435) #7885 OPEN, unmerged — Phase 3 of design(mcpx): error honesty, finished — peer errors relayed as peer errors, unadvertised methods refused, -32021 when a capability is truly required #2434 is explicitly gated on Phase 1 landing.
- Resume: when PR mcpx: structured upstream-error carriage + local-error origin marker (#2435) #7885 merges and issue mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435 closes, resume task 14376 and implement per issue mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438's scope.
dezren39 commented on Nov 11, 2026
Lane code-x pickup of task 14376 (issue #2438) — state: claimed, revalidating. Working direct (#8187).
This task is the replacement for task 3979, which was falsely completed as already_done during the 2026-11-09 GraphQL outage; per that correction, nothing from 3979 is trusted and the phase-3 work is verified from scratch here. Checking the gates first: Phase 1 (#2435) landed?, #2209 classification pass state (conflict #8 disposition coordination), and the current ask-seam / coverage-row / ERR-08 state at main. dezren39 commented on Nov 11, 2026
Lane code-x verification for task 14376 (issue #2438) — state: verified, dependency-blocked on PR #7885.
Verified fresh at main 786ee93:
- Phase 3 is NOT done: the three gap rows (errors-local-errors-not-mistaken-for-peer, errors-method-not-found-for-unadvertised-capability, mrtr-missing-capability-error-32021) are still in pkgs/mcpx/internal/conformance/coverage_messages.go, and ERR-08 in pkgs/mcpx/docs/compare/register/errors.md still reads "never used; the broker answers instead".
- The Phase 1 gate is NOT satisfied: issue mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438 is gated on mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435 (relayed requiredCapabilities must survive the gateway intact), and mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435's remainder — PR mcpx: structured upstream-error carriage + local-error origin marker (#2435) #7885 "mcpx: structured upstream-error carriage + local-error origin marker (mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435)", opened by lane code-p under task 13847 — is still OPEN, unmerged. (mcpx: spec-revision choice, finished — every conflict gets a disposition, the predicates get callers, and the policy is demonstrated end to end #2209's classification pass, the conflict-Bump build/buck/preludes/buck2-prelude from
3a02ea3 to 3e4d218 #8 coordination point, HAS landed: mcpx: spec-revision choice, finished — every conflict gets a disposition, the predicates get callers, and the policy is demonstrated end to end #2209 is CLOSED.)
- The ask seam is where the issue says it is: pkgs/mcpx/internal/mcpserver/ask.go canAsk at L88, the "default audience can answer, so waiting is right" premise at ~L217.
Action: task 14376 is dependency-blocked on PR #7885 (--blocked-by-pr #7885). When #7885 merges, the broker returns this task to the pool and the claiming lane implements phase 3 per the issue (ask-seam -32021 when no broker audience can answer, truth-up of the three gap rows + ERR-08 + conflict #8 in pkgs/mcpx/docs/spec/revision-conflicts.md, evidence comments on #1957 and the #206 origin thread). dezren39 commented on Nov 16, 2026
agent-note:v1
state: parked (Phase 1 gate cleared this shift; Phase 3 build unblocked, awaiting a dedicated build claim)
Fresh revalidation 2026-11-16 (this shift):
- The Phase 1 gate is SATISFIED. PR mcpx: structured upstream-error carriage + local-error origin marker (#2435) #7885 was closed 2026-11-14 as SUPERSEDED (note by task 17273, lane code-d): the same work landed via PR mcpx: structured upstream-error carriage on the ask path + local-error origin marker (#2435) #9038 (mcpx: structured upstream-error carriage on the ask path + local-error origin marker), MERGED 2026-11-12T22:48:13Z (merge sha ca0b691); issue mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435 closed completed at the same time. Verified fresh this shift: PR mcpx: structured upstream-error carriage on the ask path + local-error origin marker (#2435) #9038 MERGED, issue mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435 CLOSED, PR mcpx: structured upstream-error carriage + local-error origin marker (#2435) #7885 CLOSED unmerged.
- Phase 3 is NOT done: no PR references issue mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438 (search, all states, empty), and the prior lane's verification at main 786ee93 stands — the three gap rows in pkgs/mcpx/internal/conformance/coverage_messages.go are still gap rows.
- Issue mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438 OPEN, no hard-stop labels. Worktree/branch for the build: queue/14376-2438-mcpx-phase3 was created this shift from origin/main (82b519e) at ~/git/fleet/14376-2438-mcpx-phase3 on the laptop — no edits made; the next build claim can reuse or recreate it.
Action this shift:
dezren39 commented on Nov 16, 2026
Task 14376 parked by lane code-a (2026-11-16): Phase 1 gate confirmed cleared; Phase 3 build seam analysis completed — the broker has no truthful no-audience signal today, and that signal is the build's first step.
Fresh verification this shift:
Seam analysis for the next build claim (all verified in-tree this shift):
- The peer-facing seam is
canAsk/viaAsk in internal/mcpserver/ask.go: a peer that declared neither elicitation nor sampling gets canAsk=false and the direct path; its questions are answered daemon-side by Registry.answerServer -> elicitViaBroker/sampleViaBroker (internal/daemon/hooks.go), which OpenRequest + Await on the broker with defaults.ElicitTTL expiry.
elicit.Route (elicit.go:890) ALWAYS yields an audience (ToAgent/ToHuman) — it routes by question kind, it does not know whether any answerer exists. There is NO answerer-presence registry in elicit.Broker (OpenRequest/Await/Respond/Pending only; external answerers — mcpx elicit, the plugin consumer — poll Pending out-of-process and are invisible to the daemon).
- Therefore the issue's own precondition binds: "If the broker cannot today answer 'does any audience exist for this question' truthfully, add that signal first — never guess it." The build's step 1 is that signal (candidate shapes: broker-side answerer-presence derived from Pending polls per audience, or an explicit serve-config declaration of which audiences are served); step 2 is admitting modern non-declaring peers to the ask path so
viaAsk can answer -32021 (shape per listen.go:138 / tasks.go missingTasks, HTTP 400 via modernStatus) when the signal says no audience, while legacy peers keep the direct path untouched.
- Worktree
~/git/fleet/14376-2438-mcpx-phase3 (branch queue/14376-2438-mcpx-phase3, base 82b519e, no edits) is reusable.
Why parked, not built here: the remaining work is a dedicated Go build session (new broker signal + ask-path admission change + tests + the coverage/ERR-08/conflict-#8 truth-up + evidence comments on #1957 and the #206 origin). Two prior lanes reached the same boundary; this note moves the start line to the signal decision instead of re-deriving the gate a fourth time.
dezren39 commented on Nov 16, 2026
state: parked — step 1 of 4 DONE and merged this shift (task 14376, lane code-a)
PR #10720 MERGED (77c6906): the broker no-audience signal now exists.
- elicitation_answerers presence table in the broker store; Broker.NoteAnswerer heartbeats from answerer-facing surfaces only (mcpx elicit list/watch, daemon handleElicitList); Respond heartbeats on a real answer (expiry does not).
- Broker.HasAudience(request, window) / AnswererSeen: routes unrouted questions like Pending does; store errors report presence (never invent an absence). DefaultAudienceWindow = 2m.
- Tests: internal/elicit/presence_test.go (5 tests, oracle = presence iff heartbeat/answer recorded for that audience inside the window). go test ./internal/elicit/ ./internal/cli/ ./internal/daemon/ + go build ./... passed on the laptop before merge. Codex review was usage-limit-blocked with zero inline findings (noted on the PR).
Exact resume for the next build claim (steps 2-4):
2. Ask-seam wiring: in daemon elicitViaBroker/sampleViaBroker, when Broker.HasAudience(req, DefaultAudienceWindow) is false at OpenRequest time, fail fast instead of Await-ing the full TTL, minting a -32021-shaped error (requiredCapabilities naming elicitation/sampling, same shape as mcpserver tasks.go missingTasks / listen.go:138) that Phase 1's structured carriage (PR #9038) relays to a modern requesting peer; legacy peers keep today's direct-path behaviour. Admission side: mcpserver canAsk still excludes non-declaring peers — the daemon-side fail-fast is the seam that covers the gateway/direct path those peers actually take.
3. coverage_messages.go truth-up: retire the three gap rows (errors-local-errors-not-mistaken-for-peer, errors-method-not-found-for-unadvertised-capability, mrtr-missing-capability-error-32021) as each phase's evidence lands; ERR-08 + revision-conflicts #8 disposition = broker-if-answerable, -32021-if-required.
4. Evidence comments on #1957 (keys accept-unadvertised + 32021-broker-fallback) and the #206 origin.
Worktree ~/git/fleet/14376-2438-mcpx-phase3 (branch queue/14376-2438-mcpx-phase3, merged) is reusable. dezren39 commented on Nov 16, 2026
Agent note — claimed (openchamber scheduled lane, 2026-11-16 ~13:47Z)
- Agent: repo-worker-code, lane
any-o (OpenChamber scheduled lane, origin openchamber-scheduled-lane)
- Task: 14376 (small_fix) for issue mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438 — mcpx Phase 3 of design(mcpx): error honesty, finished — peer errors relayed as peer errors, unadvertised methods refused, -32021 when a capability is truly required #2434
- Gate re-verified fresh this shift: PR mcpx: structured upstream-error carriage on the ask path + local-error origin marker (#2435) #9038 MERGED (ca0b691), issue mcpx: Phase 1 of #2434 — structured upstream-error carriage through the gateway + local-error origin marker #2435 CLOSED, PR mcpx: structured upstream-error carriage + local-error origin marker (#2435) #7885 CLOSED unmerged/superseded — Phase 1 is satisfied. Step 1 (broker answerer-presence signal, PR feat(mcpx): broker answerer-presence signal — truthful no-audience answer for the ask seam (#2438) #10720, 77c6906) is MERGED.
- Starting from the exact resume recorded above: steps 2-4. Step 2 = daemon
elicitViaBroker/sampleViaBroker fail-fast when Broker.HasAudience(req, DefaultAudienceWindow) is false, minting a -32021-shaped error (requiredCapabilities naming elicitation/sampling) for the structured carriage to relay; legacy peers keep the direct path. Step 3 = retire the three gap rows in coverage_messages.go + ERR-08 / conflict Bump build/buck/preludes/buck2-prelude from 3a02ea3 to 3e4d218 #8 disposition. Step 4 = evidence comments on mcpx: smaller conformance gaps -- user identity, annotation trust, rate limits, cursors, URI encoding, prompt validation, restart, invalidation #1957 and the Phase 8: open design items, retention, multi-device, and views #206 origin thread.
- Worktree:
~/git/fleet/14376-2438-mcpx-phase3 (branch queue/14376-2438-mcpx-phase3, fast-forwarded to origin/main 62213c8).
- Timebox: ~25 min of build in this run; if the PR cannot be finished, this task is parked with the branch/checkpoint preserved.
dezren39 commented on Nov 16, 2026
Agent note — PR opened, task complete (steps 1-2 of 4 landed)
- Agent: repo-worker-code, lane
any-o (OpenChamber scheduled lane), task 14376 for issue mcpx: Phase 3 of #2434 — -32021 when no broker audience can answer + error-register truth-up (ERR-08, conflict #8, three gap rows) #2438.
- PR: mcpx: ask seam refuses with -32021 when no answerer is present (#2438) #10771 — mcpx: ask seam refuses with -32021 when no answerer is present.
- What landed:
mcpclient.CodedError carries data (and RPCData), rpcErrorFor relays it, MissingCapabilityError mints -32021 with requiredCapabilities; daemon.elicitViaBroker / sampleViaBroker check Broker.HasAudience(req, elicit.DefaultAudienceWindow) before OpenRequest and answer -32021 (naming elicitation or sampling) when no answerer is present, leaving nothing pending. A store error still reports presence.
- Tests:
go build ./..., go vet, and go test ./internal/daemon/ ./internal/mcpclient/ ./internal/elicit/ ./internal/cli/ all pass. The daemon tests that answer through the broker now record answerer presence (that is what they simulate); new tests pin no-answerer → -32021 + requiredCapabilities + no row, and presence → the ordinary path.
- Remaining on this issue (steps 3-4, a fresh small_fix claim from this note):
internal/conformance/coverage_messages.go: retire the three gap rows (errors-local-errors-not-mistaken-for-peer, errors-method-not-found-for-unadvertised-capability, mrtr-missing-capability-error-32021) as each phase's evidence lands; ERR-08 in docs/compare/register/errors.md and the corresponding docs/spec/revision-conflicts.md item become broker-if-answerable, -32021-if-required (this PR is the -32021 half).
- Evidence comments on mcpx: smaller conformance gaps -- user identity, annotation trust, rate limits, cursors, URI encoding, prompt validation, restart, invalidation #1957 (accept-unadvertised + 32021-broker-fallback) and the Phase 8: open design items, retention, multi-device, and views #206 origin thread, citing PR mcpx: structured upstream-error carriage on the ask path + local-error origin marker (#2435) #9038 (Phase 1) and PR mcpx: ask seam refuses with -32021 when no answerer is present (#2438) #10771 (this).
- Labels: claim labels removed; issue stays OPEN with
status:in-review for the PR.
dezren39 commented on Nov 18, 2026
state: parked
task: 20711 (repo-health-code-pilot, lane oc-code-03)
issue: #2438 — mcpx Phase 3 remainder (steps 3-4)
Fresh check 2026-11-18: #2438 OPEN. Steps 1-2 landed via PR #10771 (task 14376). Steps 3-4 are the coverage-gap row retirement, the ERR-08 and conflict #8 truth-up, and evidence comments on #1957 (OPEN) and #206 (MERGED). This needs a docs and ledger PR with a reviewed truth-up, which this unattended lane does not open.
Resume brief: take steps 3-4 in a dedicated session, after re-verifying PR #10771 and the coverage rows. Parked; no packet filed here. dezren39 commented on Nov 18, 2026 OpenChamber lane revalidation (2026-11-18, queue task 20711): #2438 is still OPEN and assigned to dezren39; no matching open PR was found. The Phase 3 steps 3–4 follow-up was not started because ownership remains with the assignee.
Resume when Drew explicitly releases or hands off #2438; then revalidate the register rows, ERR-08/conflict #8, and evidence-comment targets before proceeding. No worktree or source files were changed. dezren39 commented on Nov 18, 2026 agent-note:v1
lane: oc-code-05 (openchamber scheduled), worker repo-worker-code, task 20711
state: blocked (escalated-to-user)
reason: #2438 is assigned to dezren39 and has no open PR. Steps 3-4 are not started, to avoid a parallel change on owned work.
decision needed: explicit release or handoff of #2438 from dezren39, then this task can resume. dezren39 commented on Nov 22, 2026 Merged work, still open. Every pull request that references this issue has merged (#10720, #10771, #11230, #11329) and none is open, but the issue kept status:in-review. Tasks that name it as a blocker have been waiting on it.
status:in-review is removed. Whoever takes this next: run the issue's done check against main. Close the issue if it passes; if not, list what is left here and carry on with it (AGENTS.md, "Finishing work").
By: Claude, 2026-11-22 flow review.
Generated by Claude Code dezren39 commented on Nov 22, 2026 agent-note:v1
lane: oc-code-02
worker: repo-worker-code
task: 20711
state: claimed (openchamber-scheduled-lane)
origin: openchamber-scheduled-lane
Fresh check: #2438 remains OPEN; Phase 1/2/3 implementation PRs #9038, #2873, #10720 and #10771 are merged. Main already has the three coverage rows explicitly settled, the ERR-08 detail and conflict-8 disposition; the ERR-08 summary table still says the broker always answers. The issue has no human hold label, so the stale assignee/release gate is not applicable. I am truthing up the summary row, then will verify and post the requested evidence to #1957 and PR #206. dezren39 commented on Nov 22, 2026 Progress: the ERR-08 table now records the broker-if-answerable / -32021-if-no-answerer disposition, consistent with section E item 8; no additional conflict-doc edit was needed because that disposition is already recorded there. Evidence comments are posted on #1957 and the verified origin dezren39/darwin-nix#206. Docs PR #12308 is open; CI checks pass. Verification: go test ./internal/conformance, go test ./internal/mcpserver, and go test ./internal/daemon passed. dezren39 commented on Nov 22, 2026 Done-check: #2438 implementation landed in #10720 and #10771; this truth-up landed in #12308. The three coverage gap rows are now test-backed/retired, ERR-08 and section E item 8 state broker-if-answerable and -32021 when no audience can answer, and evidence comments are on #1957 and dezren39/darwin-nix#206. Local verification passed: go test ./internal/conformance, go test ./internal/mcpserver, go test ./internal/daemon; PR CI passed 2/2. Closing the completed phase.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|