Repository navigation
Nemotron Super video: retryable 503 for a spent decode allowance; tests decode under the ceiling - #1871
Merged
Conversation
bothClipsPlanAndDecodeAtTheirGrid failed with .limit on a loaded Darkbloom VM (run 42299987412, attempt 1). The run's coverage counters show one decoder wait that outlasted the decode allowance, then a stopped reader: no reader failed and no reader was replaced, so the retry from #1851 did not run. The allowance is wall time sized for an idle M3 Ultra (about 6 s for these clips), and the same shard ran its sibling test 3.4 times slower than its median. The plan-and-decode test and the reader-retry tests check frames and plans, not timing; they now decode under maximumDecodeAllowance, the named 120 s ceiling of decodeAllowance. The allowance keeps its own tests. A new test holds one read past the allowance: the decode ends as .limit, no failed pass is reported, and the reader is not replaced; with allowance to spare, the same slow read gives the same frames. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The decode allowance is wall time on the provider, and the plan's decoded pixels already bound the movie's work. A valid video that outlasts it on a slow or loaded Mac is the provider's fault, but it left as invalid_media (400), which the coordinator does not send elsewhere. A spent allowance is now NemotronSuperVideoDecode.Failure.decodeAllowanceSpent, which SuperHTTPErrors.map refuses as requestRejected: the retryable 503 (capacity) that transient decoder faults use. Failure.limit keeps the movie's own limits (frame size, grid, source frames, control markers, decoded pixels), still invalid_media (400). The GLM 5.3, MiMo V2.6 and Qwen4 decoders have no wall-clock decode budget, so nothing else changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refactor pass for the decode allowance refusal. The direct-mode row said the video's byte limits stay invalid_media (400), but a video over the Super body bound is media_too_large. The row now names the limits that throw NemotronSuperVideoDecode.Failure.limit, as the changelog does. Two test doc comments are rewrapped. No code changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 of 15 tasks
This was referenced Nov 9, 2026
jonathan308
added a commit
that referenced
this pull request
Nov 10, 2026
… becomes 413/415 #1922's review items 2 and 3: - protocol-messages.md and inference.md said the coordinator requires `native_media_controls` during rollout. Only a coordinator with platform #729 (on platform dev, not yet in production) does; without it such requests reach any Super Mac and a Mac without this build refuses them. Both now name #729 with a pinned link to `BuildNeedsNativeMediaControls`. - #1871's fragment shipped in 0.10.11 saying a video's own limits stay `invalid_media` (400). That fragment is removed by the 0.10.12 release branch's master merge, so editing it would conflict; #1922's own fragment now says those limits, like the rest, were `invalid_media` (400) before. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Cause
NemotronSuperOpenRouterVideoTests.bothClipsPlanAndDecodeAtTheirGrid()failed withCaught error: .limitin run 42299987412, attempt 1, job 128176836877 (Darkbloom VM, shard 1). Attempt 2 of the same run passed.NemotronSuperVideoDecode.Failure.limit, thrown fromFrames.next()while the test decodes the sampled frames. It is the decode allowance (decodeAllowance), not a frame, byte, pixel or memory limit. (Before this PR,.limitcovered both; this PR gives the allowance its own case,decodeAllowanceSpent.) The inspect limits are fixed for these committed clips, andinspect,encodedVideoPlanand the reservation passed on every other run.provider.profdataartifact. No other video-decode suite ran in shard 1. InSerialReader:nextSamplehas counts[3946, 1]: 3946 reads were delivered and 1 wait timed out.expire()ran once, andearlyEndreturned the expired branch once.reopenAfterFailurewas called once. It returned at itsstoppedguard ([1, 0, 0]), so no reader was replaced and no failed pass was reported.bothClipsServeOnTheInstalledFixturetook 75.2 s against a 22.2 s median, so the machine was about 3.4 times slower than usual. The failing test took 33.2 s, the longest on record, against a 21–22 s median.#1851 did not cause it. The retry did not run: no reader failed and none was reopened. The only change #1851 made on the path that ran is a nil test-hook call before each read. The same test also failed before #1851 merged (run 42135074979, 00:28Z). That failure was
.inconsistentFrames, not.limit: a reader that ended early, which is the failure #1851 addresses.Spread
bothClipsPlanAndDecodeAtTheirGridin every Provider Unit Tests job of CI (dev) and CI (master) runs (PR and push) created since 2026-11-05: 204 runs, 166 executions.b0fadbb9.inconsistentFrames)b0fadbb9b0fadbb9.limit)Fix
bothClipsPlanAndDecodeAtTheirGridand the reader-retry tests'frameshelper now decode undermaximumDecodeAllowance. These tests check plans and frames, not timing. All their assertions are unchanged. The allowance keeps its own tests inNemotronSuperVideoDecodeTests(decodeAllowanceStopsTheReader,givingUpOnAReadNeverRacesTheReader).NemotronSuperVideoDecode.maximumDecodeAllowancegives a name to the existing 120 s ceiling ofdecodeAllowance. Behavior is unchanged.aReadThatOutlastsTheAllowanceSpendsItAndIsNotRetried. It holds the first read for 0.5 s with a 100 ms allowance:decodeAllowanceSpent;NemotronSuperVideoDecode.Failure.decodeAllowanceSpent.SuperHTTPErrors.maprefuses it asrequestRejected("inline video decoder outlasted its decode allowance; retry on another provider"). That is the retryable 503 (failure codecapacity) that Decode a video again when its reader fails, and keep the cause #1851 uses for transient decoder faults.Failure.limitnow covers only the movie's own limits (frame size, frame grid, source frames, control markers, decoded pixels), and those stayinvalid_media(400).mlx-swift-lmat the pinned commit, and their ProviderCore ingress) have no wall-clock decode budget. Their limits are byte, pixel, frame and duration bounds of the input, so their mapping is unchanged.NemotronSuperVideoBindingTests.spentDecodeAllowanceIsARetryableRefusalchecks thatdecodeAllowanceSpentmaps torequestRejectedand then to (capacity, 503), and that.limitstill maps to (invalid_media, 400). The allowance tests inNemotronSuperVideoDecodeTestsand the new slow-read test now expectdecodeAllowanceSpent; the pixel-budget test still expects.limit.docs/architecture/inference.md(the allowance paragraph, the video mapping sentence and a troubleshooting row),docs/provider/direct-mode.md(a refusal row) and the fragmentchangelog.d/nemotron-video-decode-allowance-retryable.md.Production impact
Real requests can hit a spent allowance only when a provider's decoder wait for a clip exceeds it. For a short clip that is about 6 s, and it needs a slowdown of about 10 times against an idle M3 Ultra (for example a stalled media service or a heavily loaded Mac). Before this PR, such a request got
invalid_media(400) for a valid video, and the coordinator did not re-route it. With this PR, it getscapacity(503), and the coordinator can send it to another provider.Contract note: this changes the provider's refusal class for one failure, from
invalid_media(400) tocapacity(503). It uses an existing class and adds no new wire value. PerAGENTS.md, the platform owner should review it.Risk: a movie built to decode slowly could cost each provider it reaches up to its allowance (at most 120 s), across the coordinator's retries. The plan's decoded-pixel budget still bounds the movie's work.
Validation
endingbecamereading(through:)).🤖 Generated with Claude Code