Repository navigation
subtitle-resolution: state the retained contiguous determination span (#276) - #278
Merged
Merged
Conversation
The #250 statement could express every truth class its consumer needed except one: "empty because nothing was ever authored before this point". Adjudicating that as determined emptiness rather than a dead pipeline needs coverage back to track start, and `coveredFrom` resets to `target - backscan` on every discontinuity. The pre-seek line does carry the bound, but under the previous seekGen, and combining across the fence is what the fence exists to forbid. The determination itself does survive the seek. `reanchorSubtitleOverlays` leaves a drained channel's cues in place by design and rebuilds only the decoder and the stale-arrival gate; what was missing was the record of it. `SubtitleDrainCursor` now carries a `Retention` (floor plus a high-water of the determined end) that a reset folds into instead of overwriting, and the line states its floor as `retainedFrom=`. Two things a naive build gets wrong: - The outgoing run's determined end cannot be fetched at the reset tick. By then `seekGeneration` has advanced and the prefetch frontier no longer passes its own fence, so the value is banked on the tick that produced it, while it was live. The drain tick therefore builds one statement per decoding tick whether or not the line is printed. - The runs join only when the new window opens INSIDE the retained span. A forward seek past the determined end leaves a hole the 15 s backscan does not reach over, and a backward seek starting below the floor leaves two disjoint intervals; both restart the run rather than span the gap. An idle tick decoded nothing and banks nothing, so unobserved frontier growth is never folded in. `coveredFrom` is unchanged: the two are separate claims, seek-fenced and load-fenced respectively, and neither substitutes for the other. 12 tests in Issue276RetainedCoverageTests, one per way the field could lie, plus the field in the #250 line-shape contract. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01HX5zV3Fcf7Nzq4DYGdXvQE
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 nothing yet: #276 stays open until the reporter's harness has retested.
The gap
The #250 statement can express every truth class the reporter's conformance harness needs except one: "empty because nothing was ever authored before this point". On a PGS track whose first display set is at 88.380, a seek to 30 correctly renders nothing, but adjudicating that as determined emptiness rather than a dead pipeline needs coverage reaching back to track start, the earliest point that could change the answer.
coveredFromcannot carry that: it is the last reset's window start, so after a far seek it readstarget - 15. The load-time line does carrycoveredFrom=-15.00, but under the previousseekGen, and combining across the fence is exactly what the fence exists to forbid.What was actually missing
Not the state, the record of it.
reanchorSubtitleOverlaysdeliberately leaves a drained channel's cues in place across a seek and rebuilds only the decoder and the PGS stale-arrival gate. The determination survives;SubtitleDrainCursor.coverageStartjust overwrites its own history at every.resetAndDecode.The change
SubtitleDrainCursorgains aRetention(a floor plus a high-water of the run's determined end). A reset folds the fresh window into it instead of overwriting, and the line states the floor as a newretainedFrom=field, placed next tocoveredFrombecause they are read as a pair.coveredFromis untouched. The two are separate claims:coveredFromis seek-fenced,retainedFromdeliberately outlives a seek generation because it is the engine reconciling runs it fenced itself, and it dies with the drain cursor, which every track switch and every teardown clears. So it is still load-fenced.Two things a naive build gets wrong
seekGenerationhas advanced and the prefetch frontier no longer passes its own fence, so asking for it there would be the cross-generation combination the fence forbids. It is banked on the tick that produced it, while it was live. The drain tick therefore builds one statement per decoding tick whether or not the line is printed, and reuses it for the emission.Not built, and why
retainedFromit is redundant.via=pumpis the weak state in Expose a generation-fenced subtitle-resolution statement (absolute coveredFrom/resolvedThrough on the source axis) #250.Known limit
Seek to 30 before the reader ever passed 15 and
retainedFromreads 15. That is correct rather than a miss: the span between them was genuinely never decoded, and the backscan does not fill it.Verification
swift test), including 12 new inIssue276RetainedCoverageTests, one per way the field could lie.xcodebuild -scheme AetherEngine -destination 'generic/platform=tvOS Simulator' buildclean, no new warnings.swift build -Xswiftc -strict-concurrency=completeclean.🤖 Generated with Claude Code
https://claude.ai/code/session_01HX5zV3Fcf7Nzq4DYGdXvQE