fix: restore video agent research budget and finalizer handoff - #27
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
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.
Research calls regressed after the per-video finding ceiling increased from five to twenty. In a controlled live GLM comparison using the same transcript, restoring only that ceiling reduced average analyst latency from 27.1s to 16.8s. This restores the five-finding limit while preserving dynamic final-answer scope and the compact response format.
Forced finalization previously started inside the research phase. In an observed production run, the research cutoff canceled synthesis after 5.7s, then recovery started another call that also timed out. The agent now hands off before forced synthesis starts, giving it one continuous finalization phase bounded by the existing 20s limit and overall deadline, with 1.5s reserved for persistence. The handoff is logged. Slow synthesis still returns the existing partial-evidence fallback; this does not extend the 60s run limit.
Validation:
The branch was created after fast-forwarding main to origin/main at 4cb76b2. Two focused commits separate the extraction limit and finalization handoff. No production deployment or post-fix production test has been performed; those follow merge and deployment.