Repository navigation
feat(live): an arm that prices fastZap's bounded start against the holdback (AE#594) - #601
Merged
Merged
Conversation
…ldback (AE#594) The bounded start serves once two segments exist plus a clamped grace, and that window can be shallower than the holdback the same manifest advertises. The trade was deliberate and had never been priced. AETHER_BOUNDED_START_FLOOR=1 skips the bounded branch, so the wait ends at the full cushion or at the outer deadline. It is a measurement arm rather than a policy, read once per process so a run cannot change arms midway. Measured, two passes per cell, three cadences: the floor costs one more segment minus the grace, +0.04s at a 1s cut, +1.21s at 3s, +4.26s at 6s, and +0.00 / +0.01 / +2.07s at the first picture. No -16832 appeared in either arm at any cadence, but this harness joins at the head of the served window rather than seeking to edge-minus-holdback, so it cannot price the harm the floor would buy. Table and that limit are in docs/cli.md. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f
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.
Closes #594 as a measurement. The policy is not changed: the arm is env-gated and off.
What the arm is
AETHER_BOUNDED_START_FLOOR=1skips the bounded branch inwaitForFirstLiveSegment, so the wait ends at the full3 x TDcushion or at the 30 s outer deadline. It arrives as an init parameter onVideoSegmentProvider(boundedStartFloorsAtHoldback) rather than a global, so the tests set it per instance, and the engine reads the environment once per process so a run cannot change arms midway.The price
hlsfixtureorigin of pre-cut GOP-aligned segments,play --live --fast-zap --seconds 45, two passes per cell (three for 6 s / A):-16832Arm A serves short at every cadence, and the shortfall grows with the cut, which is the defect the issue describes: 12 s of window against an 18 s holdback at a 6 s cut.
The floor costs one more segment minus the grace, and the gate deltas say exactly that: +0.04 s at 1 s (the 1.0 s grace already covers the wait), +1.21 s at 3 s, +4.26 s at 6 s where the grace clamps to 2.0 s. At the picture, +0.00 / +0.01 / +2.07 s.
Why the policy is not changed
The benefit half is not measured, and the table would be misread as measuring it.
-16832never appeared, in either arm, at any cadence, across thirteen runs. That is not evidence the shallow window is safe: on this harness the session joins at the HEAD of the served window and advances 1x from there, instead of seeking to edge-minus-holdback, so the state the issue is about is never entered.edge=andbehind=cannot be used to check that either, with or without--dvr-window:edgestays pinned at its first value for the whole run andbehindis derived from it.So what ships here is the instrument and the price, and the recommendation is to leave the trade alone until a field capture or an origin that reproduces the seek can price the other side. The arm stays because it is what made the price readable, and it is what a future repro would be driven with.
Tests
Issue594BoundedStartFloorTests, XCTest, RED first against an inert parameter:Three cases: the floor holds a strict-realtime origin past the grace, the floor is free on a backlog origin (the control, and the hypothesis at unit scale, 0.005 s), and arm A still serves at the grace so the A/B moves one thing. Both runners green afterwards: XCTest 629, swift-testing 3334 in 449 suites.
docs/cli.mdcarries the table and the limitation.🤖 Generated with Claude Code
https://claude.ai/code/session_014AVNwe8YDG9EQM7uHdjT3f