Skip to content

Report opt-in occupancy on MCP dispatch refusals - #1542

Open
zzet wants to merge 1 commit into
mainfrom
fix/dispatch-refusal-occupancy-report
Open

zzet wants to merge 1 commit into
mainfrom
fix/dispatch-refusal-occupancy-report

Conversation

@zzet

@zzet zzet commented Nov 23, 2026

Copy link
Copy Markdown
Owner

Refs #1013.

Adds opt-in dispatcher occupancy to typed JSON-RPC busy refusals. With GORTEX_MCP_DISPATCH_OCCUPANCY=1, the response reports the refusal reason, lane, queue depth, slot use, and a fixed set of anonymous categories for current holders. Occupancy and eligibility come from the same scheduler snapshot. The new data includes no request arguments or session identifiers.

The default response, admission policy, queue deadlines, and retry behavior are unchanged. This adds diagnostic evidence for investigating refusals. It makes no latency or acceptance claim.

Verification on this commit

  • Eight focused Make race tests passed with the default and acceptance tags.
  • Formatting, whitespace, safe CGO flags, module integrity and tidiness, both full vet profiles, and both golangci-lint 2.14.0 profiles passed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant