Repository navigation
fix(mimo): learn target prefill with bounded idle admission - #1285
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Threat model review — advisoryReviewed head Review not completed for this head. Previous findings are superseded, not confirmed resolved. Reviewers: anthropic/claude-opus-5.5: incomplete (review unavailable); openai/gpt-6-astra: incomplete (review unavailable) Scan incomplete: 1 file(s) could not be fully read as text. Binary, Git LFS and submodule changes require manual review. Models: anthropic/claude-opus-5.5, openai/gpt-6-astra. Findings require human validation; this review never requests changes or blocks merging. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 98083de158
ℹ️ 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".
|
@codex review Please review final head |
|
Codex Review: Didn't find any major issues. 🚀 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 3f1fde8709
ℹ️ 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".
Summary
Fix native MiMo first-token admission so short-text prefill rates do not stand in for measured native-media target performance. SDK #208 is merged. The submodule is pinned to SDK
maincommite31a1732462ff702428692cc758abe4609559b5f; its source tree is identical to the tested candidate23332c3.Companion coordinator media-token accounting PR #1286 is merged and included in the updated base. This PR does not hardcode a global MiMo token multiplier, change production configuration, bump a version, or publish a provider release.
Production evidence
The original failing cohort included coordinator estimates of 309/1,511 tokens versus provider-prepared counts of 1,095/3,604. One subsequent successful request under the temporary longer SLA had 4,045 prepared tokens and 2.912 seconds of media preparation. Its predictor used 155.136 tokens/sec (26.074 seconds projected target work), while actual target prefill took 4.848 seconds (~834 tokens/sec), and first content arrived at 8.305 seconds. That is one observed sample, not a universal speedup or a calibrated error envelope.
Before
After
flowchart LR A["Owner-sealed native prompt"] --> B["Whole-Mac + posture guard"] B --> C{"Fresh observed native range?"} C -->|yes| D["SDK prices only target at native rate"] C -->|no| E{"Idle + bootstrap permit + capacity?"} E -->|yes| F["One observation under original deadline"] E -->|no| G["Capacity refusal"] D --> H["Real prompt-completion receipt"] F --> H H --> I["Separate native samples and numeric buckets"] H --> J["Release ownership only at real retirement"] K["retainAfterFailedDrain"] --> L["Reservation retains shared activity"] L -->|invalidate| B classDef input fill:#dbeafe,stroke:#2563eb,color:#111827 classDef process fill:#ede9fe,stroke:#7c3aed,color:#111827 classDef outcome fill:#dcfce7,stroke:#16a34a,color:#111827 class A input class B,C,D,E,F,K,L process class H,I,J outcomeValidation
swift build --target ProviderCore -j 4andswift build --build-tests -j 4passed with the signed SDK candidate; the tested candidate23332c3and merged main pine31a173have identical source trees.swift test --skip-build --no-parallel --filter 'nativeMedia|EngineDeadlineRetirementBridgeTests|EngineV2FirstTokenDeadlineAdmissionTests|EngineV2PrefillSamplingTests'.python3 scripts/test-provider-ci-workflow.py: 19 tests passed, including the actual wrapper with a long regex/suite-path selector and preserved nonzero, no-skip and failure-exit checks. CI now explicitly selects all three new provider deadline/learning cases and the complete SDK native-media deadline suite.23332c3, including target-versus-queued-text rates, stale/range/guard checks, bootstrap idle/busy/in-flight checks, physical capacity, original-clock expiry, post-commit cancellation and real retirement.make docs-impact-check BASE=origin/master,make docs-check(324 files) andgit diff --checkpassed.Tests use synthetic tiny BF16 native fixtures and a source-matched metallib, not a full-size MiMo production benchmark. Native tests preserve real physical/allocator/OS observations and normal memory floors; only the nominal power-history input is controlled for deterministic admission. Hosted CI and review remain separate gates.
Native fixture selection, after building and staging the source-matched metallib (set
MIMO_V26_SERIAL_LOAD_FIXTURESto the directory produced byscripts/prepare-mimo-provider-fixtures.py):The SDK merge dependency is resolved. The branch includes current d-inference
master(1e4b2d885), with both changelog entries retained. Hosted checks for the latest head still determine merge readiness.Both initial review findings were fixed in signed commit
a391babc0, with regressions for ordinary-sample retirement ownership and snapshot consistency. The final 36 focused tests and 11 native ingress cases passed after those fixes.The previous provider CI failure was
mktemp: File name too longfor the expanded native filter.run-nested-suite.shnow uses a fixed temporary-file prefix and passes the original filter unchanged; no test selection or success/skip gate is weakened.Latest review follow-up
b79c693a6binds late media-drain failures to their own retained shared activity, with the real SDK failure callback covered after preparation ends.swift build --build-tests -j 4passed; 64 Swift Testing + 12 XCTest cases passed in the focused deadline/media-reservation selection; 11 native media ingress cases passed.make docs-impact-check BASE=origin/master,make docs-check(324 files), andgit diff --checkpassed.Telemetry and rollout
native_media_prefillis an additional closed workload phase. No prompt text, media bytes, URLs, token IDs or cache keys are retained. The bootstrap uses existingnot_attempted/unmeasured_prefilldiagnostic vocabulary, carries actual bounded token work and omits any fabricated predicted duration or rate. Go ingestion accepts those existing fields; there is no new profiler wire field or database migration.SDK #208 is merged and pinned. A provider release is required to activate the new learner/admission path. Older coordinators discard only the unknown workload diagnostic phase. Production SLA changes and later release qualification are separate operations.