mirror of
https://github.com/heygen-com/hyperframes.git
synced 2026-11-16 06:19:21 +00:00
## What - cap static-dedup verification at 15 seconds of wall-clock time - disable the optimization and continue normal capture when the verification budget is exhausted - add a regression that models the reported 350-second / ~8,400-frame alpha render ## Why Static-frame verification uses full-page screenshots. Its existing screenshot-count budget still scales with composition duration, so a long composition can spend minutes proving an optimization before frame capture starts. The reported 350.35-second ProRes alpha render spent about eight minutes in this phase before safely disabling dedup. ## How The verifier now records a deadline before seeking verification frames. It checks the deadline before every full-page capture and returns the existing fail-closed `budgetExhausted` result when time is exhausted. This keeps the existing density-based safety checks while bounding their startup cost. ## Test plan - [x] Unit tests added/updated - [ ] Manual testing performed - [ ] Documentation updated (not applicable) - [x] Focused engine test: 9/9 passed - [x] Engine typecheck passed - [x] Pre-commit lint, format, tracked-artifact, fallow, and typecheck gates passed - [x] Full engine suite: 988 passed, 3 skipped; 2 pre-existing environment failures because host FFmpeg 4.2 lacks `-fps_mode`