Skip to content

Reject overflowing occupancy before recording solo throughput - #938

Closed
Gajesh2007 wants to merge 2 commits into
masterfrom
refactor/coordinator-attribution
Closed

Gajesh2007 wants to merge 2 commits into
masterfrom
refactor/coordinator-attribution

Conversation

@Gajesh2007

@Gajesh2007 Gajesh2007 commented Sep 12, 2026 •

Copy link
Copy Markdown
Member

A provider can report running/waiting counts whose sum overflows an integer. soloSampleEligible previously interpreted the wrapped total as an uncontended box and admitted its observed decode rate into the solo sample pool used by quality-cap estimates.

Compare each count with the remaining one-request allowance before addition. The accumulator stays bounded to zero or one, busy samples cannot wrap into eligibility, and ordinary idle/single-request behavior is preserved. Heartbeat still records valid load-inclusive rates and requires a running decode in the slot before donating a solo sample.

Before:

flowchart LR
  H[Heartbeat capacity] --> N[Clamp negative slot counts]
  N --> S[soloSampleEligible adds running plus waiting]
  S --> O[Large positive counts overflow]
  O --> E[Busy box appears uncontended]
  E --> R[RecordSolo contaminates quality sample pool]
  H --> L[Record load-inclusive observed rate]
Loading

After:

flowchart LR
  H[Heartbeat capacity] --> N[Same negative count clamp]
  N --> S[soloSampleEligible compares each count with remaining allowance]
  S --> B[More than one request rejects solo donation]
  S --> E[At most one request remains eligible]
  E --> D[Running sampled slot required]
  D --> R[RecordSolo retains uncontended sample policy]
  H --> L[Same load-inclusive observed rate]
Loading

The broader operation review covered all nine request/attempt profiling, trait gating, TTFT calibration/shadow and TPS-cache source files. Their ownership, sample acceptance, numeric policies, bounds and routing defaults remain unchanged; this PR only fixes the proven occupancy overflow. This adds four production lines rather than claiming a line-count reduction.

Validation:

  • New real-heartbeat tests reproduce three overflowing count combinations on unchanged master; a direct negative-plus-busy case also exposes the prior addition problem.
  • GOTOOLCHAIN=go1.25.0 go test -race ./coordinator/registry -count=1 passes (24.089s).
  • Existing request/attempt, trait, calibration, shadow, median-cache and solo resolver/seed test assertions were reviewed. Checked-in deployment values are read by existing tests; this PR changes no deployment configuration.
  • Independent source/test review found no blocker. Documentation lint passes for all 278 pages.
  • No model, live coordinator, deployment, numerical tuning or performance benchmark execution.

@vercel

vercel Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d-inference Ready Ready Preview Sep 12, 2026 12:22am UTC
d-inference-console-ui-dev Ready Ready Preview Sep 12, 2026 12:22am UTC
d-inference-landing Ready Ready Preview Sep 12, 2026 12:22am UTC

Request Review

@Gajesh2007

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 12, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-12T00:29:19.860378Z adba553 Draft marked ready
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Hooray!

Reviewed commit: adba553053

ℹ️ 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".

@Gajesh2007

Copy link
Copy Markdown
Member Author

Superseded by #1051, which carries this change and its regression coverage into the coordinator subsystem layout. The replacement passed the relevant local race tests, build/lint checks, and independent source review.

Please review #1051; closing this older implementation to keep one active version of the change. The branch and review history are retained. No change has been merged to master by this closure.

@Gajesh2007 Gajesh2007 closed this Sep 14, 2026
jonathan308 added a commit that referenced this pull request Nov 13, 2026
…e 9B does not (red)

The owner (11:20Z): Qwen 3.8 27B on by default once a central kill path
exists. darkbloom-platform #938 (EIGENINFERENCE_STRICT_TOOLS_UNMARK_MODELS)
forwards a listed build's tools without strict, which turns the grammar off
for it on every Mac. The default table becomes the MoE builds and
qwen3.8-27b; the 9B (also qwen3_5) stays opt-in. Red by assertion: the
default setting is still [qwen3_5_moe], Qwen 3.8 is not enabled by default,
and the scheduler serves its strict request unconstrained.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jonathan308 added a commit that referenced this pull request Nov 13, 2026
… 27B

The owner (11:20Z): Qwen 3.8 on by default once a central kill path exists.
darkbloom-platform #938 (EIGENINFERENCE_STRICT_TOOLS_UNMARK_MODELS, Stage 7)
forwards a listed build's tools without strict, which turns the grammar off
for that build on every Mac with no provider change. The default builds are
now qwen3_5_moe (Qwen 3.6, Qwen 3.5 35B) and qwen3.8-27b (defaultBuilds, read
as a list entry: a model_type or a model-id part); the 9B (also qwen3_5)
stays opt-in. GPU on Qwen 3.8 (STRICT-GRAMMAR): a lone strict answer decodes
at ~50 instead of ~120 tok/s (no MTP while constrained); with two or more
rows MTP barely drafts anyway; nested strict set 38/40 -> 40/40, repaired
strict requests 50/50, Tau2 all-strict 42/42 valid. Docs: inference,
configuration, changelog fragment, LaunchAgent note.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch had an error being deployed

1 failed and 3 active deployments
Preview – d-inference — adba5530 Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-console-ui-dev — adba5530 Deployed Sep 12, 2026 by vercel[bot]
Preview – d-inference-landing — adba5530 Deployed Sep 12, 2026 by vercel[bot]
benchmarks — adba5530 Deployed Sep 12, 2026 by Gajesh2007 via E2E Benchmarks #1012
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