Repository navigation
Restore static-by-default long Video Pack extraction; gate agentic mode and cap benchmark dispatches - #2926
Merged
Conversation
Contributor
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: groupthinking <154503486+groupthinking@users.noreply.github.com>
groupthinking
approved these changes
Dec 4, 2026
Contributor
🔍 PR Validation |
Contributor
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
groupthinking
requested review from
groupthinking
and
a max review from Copilot
December 4, 2026 17:23
groupthinking
approved these changes
Dec 4, 2026
Contributor
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
SDK retries and auxiliary model calls can bypass the dispatch cap, and some budget-exhaustion errors incorrectly trigger further retries.
3 open issues
What changed in this PR
Restores static shards as UVAI’s default for long Video Pack extraction, keeping agentic processing experimental while validation remains pending under #2818.
Changes:
- Requires
EXTRACT_LONG_VIDEO_AGENTIC=1for long-video agentic extraction. - Adds optional
maxModelDispatchesaccounting for benchmark video-runner calls. - Updates routing, retry-guard, and Jev wiring tests.
| File | Description |
|---|---|
apps/web/src/lib/video-pack-extractor.ts |
Adds agentic opt-in and dispatch accounting. |
apps/web/src/lib/__tests__/video-pack-extractor.test.ts |
Tests static defaults, agentic opt-in, and dispatch exhaustion. |
apps/web/src/lib/__tests__/video-pack-extractor-jev.test.ts |
Explicitly enables agentic mode in Jev wiring tests. |
Review effort: Max
Comment on lines
+989
to
+991
| const runVideoInteractionBase = deps.runVideoInteraction ?? runShardVideoInteraction; | ||
| const runVideoInteraction = | ||
| maxModelDispatches !== undefined |
| return async (call: ShardVideoCall) => { | ||
| if (dispatchCount >= maxModelDispatches) { | ||
| throw new VideoPackExtractError( | ||
| `benchmark attempt limit reached at ${maxModelDispatches} dispatches`, |
Comment on lines
+1000
to
+1001
| dispatchCount += 1; | ||
| return runVideoInteractionBase(call); |
Contributor
✅ E2E Test Results: ALL TESTS PASSED
Test Output |
This branch was successfully 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.

Canonical issue
Issue linking is handled by automation.
Outcome
Long Video Pack extraction no longer assumes synchronous one-call agentic processing by default. Routing now aligns with the validation requirement: static shards remain the production baseline, and agentic long-video mode is explicit and bounded for benchmark use.
Scope
- **Routing policy**: long-video agentic path now requiresEXTRACT_LONG_VIDEO_AGENTIC=1; otherwise long videos use static shard extraction.- **Benchmark guard**:extractVideoPackSpecacceptsmaxModelDispatchesto hard-stop repeated model dispatches with a terminal benchmark-attempt-limit error.- **Regression coverage**: tests updated to enforce static-by-default behavior, explicit agentic opt-in behavior, and guarded dispatch behavior under retry conditions.- Live Gemini benchmark matrix execution- Provider cost/latency/quality claims- Rollout/deployment policy changesRisk
EXTRACT_LONG_VIDEO_AGENTIC=1where agentic long-video extraction is intentionally required.Verification
List exact automated and manual checks, tied to the current head SHA.
Head SHA:
888ab9bProduction evidence
Not applicable for this change set. This PR adjusts extraction routing/guard behavior and test coverage; no production provider acceptance evidence is claimed here.
Agent handoff
Security dependency evidence
Not applicable (no advisory-driven dependency changes).