GeezerVison is showing github.com — mcpx conformance: rate limits for sampling and elicitation requests (split of #1957) · Issue #2192 · developing-today/code
mcpx conformance: rate limits for sampling and elicitation requests (split of #1957) #2192DescriptionSplit from #1957 (cluster 2 of 3) by queue worker triage routing (task 2890, 2026-10-29). #1957 stays the set tracker.
Problem (rate-limits cluster, ~7 conformance rows)
Conformance matrix rows sampling-client-rate-limit (every spec section) and elicitation-client-rate-limit are gaps citing #257: there is no per-server or per-session limit on sampling requests an upstream server can make of the client, and no per-server limit on elicitation requests. Verified on main 478797c: sampling/elicitation handling exists across internal/mcpclient (modern.go) and internal/daemon (input_required.go, consumer.go) with no rate limiting.
Acceptance criteria
- Sampling requests from an upstream server are limited per server and per session (limit values as settings, with sane defaults, per the settings registry pattern).
- Elicitation requests are limited per server.
- Over-limit requests fail clearly (error surfaced, not silent drops), and legitimate traffic under the limit is unaffected.
- The
sampling-client-rate-limit / elicitation-client-rate-limit conformance rows pass or are updated in pkgs/mcpx/docs/spec/conformance-matrix.md.
pkgs/mcpx go test ./... green in CI, including new limit tests (burst refused, under-limit passes, per-server isolation).
Parent tracker: #1957. Siblings: the annotation-trust and prompt-validation splits filed the same day. Activitydeveloping-today commented on Oct 29, 2026 dezren39 commented on Oct 29, 2026
ADOPTED as Phase 1 of design #2333 (filed today; this issue is linked as its sub-issue and labelled source/design-architect). Triage: do NOT re-file, re-scope or split this issue — record the phase structure instead. Design #2333 narrows this issue's open mechanism points with recorded decisions: enforcement at Client.answer (internal/mcpclient/modern.go:288) before the handler; per-server key = the pool's CONFIGURED name (never self-reported ServerInfo.Name), per-session = the Client; a question counts when admitted, refusals don't count, each 2026 inputRequests entry counts separately; fixed per-minute windows, in memory, no new dependency; settings proto.samplingPerMinute (default 60), proto.samplingSessionPerMinute (default 20), proto.elicitationPerMinute (default 30), 0 disables; refusal = named -32603 error + c.warn, and for elicitation an error, never a fabricated {action: "cancel"}. Phase 2 of the design is #2334 (register truth-up + evidence on #1957), gated on this issue landing. Full design doc: files/designs/code-mcpx-upstream-question-rate-limits.md in the keep-the-four-repos-healthy goal workspace. dezren39 commented on Oct 30, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), Lane D shift
- Session / ID: queue task 3278
- Found via: queue claim
- Task: Implement per-server/per-session rate limits for sampling requests and per-server limits for elicitation requests in pkgs/mcpx, with registry settings + defaults, clear over-limit errors, new tests, and conformance-matrix row updates for
sampling-client-rate-limit and elicitation-client-rate-limit.
- Expectation: effort m; done = PR opened (branch
queue/3278-2192-rate-limits) with CI green or parked for CI, task completed with structured result.
- Links: mcpx: smaller conformance gaps -- user identity, annotation trust, rate limits, cursors, URI encoding, prompt validation, restart, invalidation #1957 (parent split)
dezren39 commented on Oct 30, 2026 🤖 Agent note · picked up, re-parked (budget)
- Agent: queue worker (repo-worker-code), Lane B shift
- Session / ID: queue task 3278
- Found via: queue claim
- Task: Revalidated fresh: mcpx conformance: rate limits for sampling and elicitation requests (split of #1957) #2192 OPEN, no hard-stop labels; prior lane's scoping stands (verified stage, insertion points recorded in the task checkpoint: settings registry limit settings, limiter at mcpclient server-request handling, conformance-matrix rows, tests; clean worktree ~/git/fleet/3278 on branch queue/3278-2192-sampling-elicitation-rate-limits at origin/main, no code changed yet).
- Decision: this is a full implementation pass and this shift has ~45 minutes left — starting it now would guarantee a mid-implementation park with half-written limiter code. Parked for the next full-budget shift instead; resume from the verified checkpoint, do not re-scope.
dezren39 commented on Oct 30, 2026 dezren39 commented on Oct 30, 2026 dezren39 commented on Nov 2, 2026 🤖 Agent note · done (already done on revalidation)
- Agent: queue worker (repo-worker-code), Lane G shift
- Session / ID: queue task 2199 · 2026-11-02 claim
- Found via: queue claim (parked-escalate follow-up to task 2188)
- Task: Remove stale rotation-blocked label, verify no rotation in flight, post close-out for mcpx conformance: rate limits for sampling and elicitation requests (split of #1957) #2192.
- Verification (fresh, this pass): issue mcpx conformance: rate limits for sampling and elicitation requests (split of #1957) #2192 is CLOSED (2026-10-30T21:02:58Z); PR mcpx: rate-limit upstream sampling and elicitation requests (#2192) #2706 is MERGED (merge commit
3a3d59b96780f76187eadabb05f9444875bfb2b0, 2026-10-30T21:01:57Z) implementing the rate limits under task 3278. Current labels on mcpx conformance: rate limits for sampling and elicitation requests (split of #1957) #2192 are only kind/bug, priority/normal, app/mcpx, source/design-architect — no rotation-blocked label, and no queue/*, status/*, or work/* labels remain, so there is no stale label to remove and no rotation in flight on this issue.
- Expectation: done — task 2199 completed as already_done with this evidence.
- Links: PR mcpx: rate-limit upstream sampling and elicitation requests (#2192) #2706 · queue task 2199
dezren39 commented on Nov 2, 2026 🤖 Agent note · correction to the note above
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|