fix: separate video agent phase and persistence deadlines - #28
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.
Four production research reruns completed every transcript analysis but lost synthesis at its 20-second ceiling. This gives routing/research an admission-based 40-second limit and finalization its own continuous 40-second limit starting at handoff. Synthesis starts immediately when research finishes.
Terminal saving leaves the model-phase timer and uses a separate 30-second persistence timeout. Validation failure restores the original finalization deadline so a repair cannot reset its budget. The Durable Object no longer rejects a ready answer merely because the old model deadline has passed; inactive/canceled runs remain protected. Billing settlement is bounded, idempotent, and retains watchdog retries. The processing watchdog now accounts for both 40-second phases. Total client-observed time can exceed 80 seconds while persistence finishes.
The external phase timer controls AgentCore, avoiding a second SDK loop timer cutting off saving. Clarification saving is bounded too. Persistence timeouts have their own diagnostic classification. Documentation and the local smoke-test polling window are updated. No change to the five-finding limit, model, output budget, or compact response schema.
Validation:
Started from main synced with origin/main at 68fab61. No production deployment or post-change production test was performed. Production replay follows merge and deployment.