Repository navigation
vision: admission budgets: per-request rows (400) and in-flight rows (503 + Retry-After) (ported from Enntity) - #236
Merged
Merged
Conversation
2 of 3 tasks
AzeezIsh
force-pushed
the
stack/dflash-warm-ctx
branch
from
October 29, 2026 05:50
5e8f472 to
26a7c63
Compare
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 05:50
bdc9c03 to
0ead7cb
Compare
1 of 3 tasks
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 07:13
0ead7cb to
79e9093
Compare
AzeezIsh
changed the base branch from
stack/dflash-warm-ctx
to
stack/video-timestamps
October 29, 2026 07:13
AzeezIsh
force-pushed
the
stack/video-timestamps
branch
from
October 29, 2026 07:19
24e509f to
e6386f6
Compare
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 07:19
79e9093 to
63d7c29
Compare
AzeezIsh
force-pushed
the
stack/video-timestamps
branch
from
October 29, 2026 07:20
e6386f6 to
6b2cf43
Compare
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 07:20
63d7c29 to
339ea06
Compare
AzeezIsh
force-pushed
the
stack/video-timestamps
branch
from
October 29, 2026 07:29
6b2cf43 to
ea4e068
Compare
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 07:29
339ea06 to
eda90fe
Compare
AzeezIsh
force-pushed
the
stack/video-timestamps
branch
from
October 29, 2026 07:30
ea4e068 to
53e9c2d
Compare
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 07:30
eda90fe to
13b85cc
Compare
AzeezIsh
marked this pull request as ready for review
October 29, 2026 07:39
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 07:40
13b85cc to
b15cc3d
Compare
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
Contributor
Author
|
Defect found on the pair. This PR's admission is never wired at runtime. Every production caller passes
Upstream's What the stack-top check on
The fix wires |
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
AzeezIsh
force-pushed
the
stack/video-timestamps
branch
from
October 29, 2026 08:54
53e9c2d to
27629e0
Compare
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 08:54
e535188 to
2d377ef
Compare
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
…b(super), remote_image paths)
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
…ission test to use #236's own path + drop useless conversion (500-LoC cap, clippy)
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 11:03
63939ae to
11e7dd2
Compare
…3+Retry-After) Port of Enntity/atlas 7d33dd4 + b060f98 + 060199e (AGPL-3.0-only). --vision-max-request-rows (32768): a vision request's rows over the bound is a 400 before any fetch/decode. --vision-max-inflight-rows (65536): rows all requests hold at once; a spent budget is a 503 with Retry-After. Within both bounds, requests are byte-identical. vision_limits::VisionRowLimits + vision_budget::VisionRowBudget + api/chat/vision_admit.rs::Admission; begin after collect_message_media, note per item at pad_count, admit+attach each VisionItem. Model's vision_row_bounds (encoder window + request bound) feeds VisionRowLimits::resolve at startup. 060199e: Anthropic errors carry the typed status (overloaded_error for 503) + pass Retry-After through.
…ng (500-LoC cap, no logic edits)
…ission test to use #236's own path + drop useless conversion (500-LoC cap, clippy)
AzeezIsh
force-pushed
the
stack/vision-admission
branch
from
October 29, 2026 11:09
11e7dd2 to
0a313f9
Compare
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
…b(super), remote_image paths)
…test (verified on reiner)
…ture (PIL output trips a strict CRC check; verified on reiner)
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
…b(super), remote_image paths)
AzeezIsh
added a commit
that referenced
this pull request
Oct 29, 2026
3 of 4 tasks
AzeezIsh
pushed a commit
that referenced
this pull request
Nov 1, 2026
…ll syntax Blocking cut GLM content at any unquoted native opener (SparkGLM's "The delimiter <tool_call> opens a tool invocation." came back as "The delimiter"). For literal-XML carriers (glm5_next, qwen4_exp) the orphan cut now needs call syntax after the opener (a name with <arg_key>, arguments or a close, JSON, or a function marker); other models still cut at the opener. Reasoning cleanup strips a leaked closing tag at its own position, so a quoted copy before it survives. The GLM literal-XML stream tests (glm_literal_xml_tests, qwen_literal_xml_tests, the native-literal and Poolside header cases) were in a module nothing included since the stack's file split, and their fixture tokens were gone. They run again on SparkGLM's fixture, with end-to-end blocking/stream checks of the native opener in prose. The #236 vision-cap test in that module fails once wired; it is marked ignored for its owner. Ported from Enntity/atlas 0ce591b, 095ff22, 17e5c92 and adb7a5b's tests (AGPL-3.0-only). Co-Authored-By: Claude Opus 5.5 <[email protected]>
AzeezIsh
pushed a commit
that referenced
this pull request
Nov 1, 2026
The reasoning-leak opener scan maps its match (and_then(Some) -> map), as Enntity/atlas 095ff22 has it, and the #236 vision test drops a useless String conversion; both surfaced once the test module compiled again. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.
Stack: … ← #234 ← this.
Summary
7d33dd4c,b060f987,060199eb) with credit, on top of main's Qwen vision: per-request row cap (CEILING_MAX_PATCHES 16384) makes multi-image agent histories unservable; over-cap requests get retried forever #180 scheduler 400.--vision-max-request-rows(32768): a request over budget gets a 400 at admit time, before any media fetch or decode.--vision-max-inflight-rows(65536): when the in-flight budget is spent, the response is a 503 withRetry-After: 2.invalid_request_error/overloaded_error.Model::vision_row_limits, plusVisionItemholding its row permit.VISION_MAX_GRID_ITEMSfrom 1024 to 8192 (theirs, for hour-long video item counts).Test plan (vs parent #234)
vision_admit9/9,vision_limits15/15,msg_entry20/20,refusal24/24 (reiner). The entry-builder tests are trimmed until the media split lands in the next PR.Tracking: #220.
Generated with Devin