Repository navigation
fix(coordinator): account for native MiMo media prompt work - #1286
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) Models: anthropic/claude-opus-5.5, openai/gpt-6-astra. Findings require human validation; this review never requests changes or blocks merging. |
Summary
Replace legacy flat media costs for concrete native MiMo requests with bounded metadata estimates from the exact verified processor configuration. This is the coordinator accounting half of the deadline investigation; provider/SDK rate calibration is separate in #1285 and Layr-Labs/mlx-swift-lm#208.
config.jsonin the existing background artifact cache. Recheck the active model artifact before and after accounting.Evidence
Recent production traces had 309 estimated versus 1,095 prepared tokens and 1,511 versus 3,604 prepared tokens. Under the separately authorized temporary SLA, 11/11 requests completed HTTP 200, including four media requests. One 256 GiB provider predicted 26.07 seconds of target prefill but measured 4.85 seconds; that rate issue is not claimed fixed by this PR.
The local operator-owned OpenRouter fixtures now estimate 1,082 and 282 image tokens, and 3,590 and 4,032 video tokens. These include media wrappers/timestamp/audio estimates and exclude surrounding text/template tokens. Fixture bytes are not committed.
Before
After
Validation
go build ./coordinator/...— passed.go test ./coordinator/mediawork— passed.go test -race ./coordinator/mediawork ./coordinator/promptcontract -run 'Test(NativeMedia|Encoded|Provisioner)' -count=1— passed.go test -race ./coordinator/api -run 'Test(NativeMedia|ResolveRemoteMedia|MediaFetch|BillingEstimate|DetectMediaRequirement|FirstContentSLA)' -count=1— passed.go test ./coordinator/mediawork -run '^$' -fuzz FuzzNativeMediaMetadata -fuzztime=10s -parallel=2— passed, 567,711 executions.TestNativeMediaCapturedFixtures— all four passed; optionalDARKBLOOM_TEST_MEDIA_FIXTURESpoints to local files. Repeated against the actual publishedconfig.json(SHA-25635b6e3d4543b65e6fa9d6174e2260d9ac1d3ea1e5acb9955d9fe9f2b815d13d4, matched to the live manifest); all four counts agree.make docs-impact-check BASE=origin/master— passed.make docs-check— passed, 324 files.git diff --check— passed.Limits / rollout
No production changes, provider release, version bump, database schema or new environment setting in this PR. Ordinary nonfragmented MP4/MOV and the listed image/WAV formats are covered; unknown formats retain fallback. Metadata accounting does not certify decoder acceptance or replace native memory checks. Timestamp text uses a byte upper estimate, and ordinary text/template counts remain heuristic. No media bytes, dimensions, URLs or prompt content are added to telemetry. The next deployment remains held pending review and the related fixes.
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.