You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
subtitle-resolution: expose the retained contiguous determination span (or a first-successor proof) under the active seek generation #276
Add a same-generation positive claim about retained subtitle determination — either
a field on the existing [SubtitleResolution] line (e.g. retainedFrom=) reporting an upper bound on the session store's contiguous determined-from point after the store and the post-seek drainer have been reconciled — i.e. a value that may legitimately stay ≤ 0 across a seek when the store genuinely retains the from-start run; or
an equivalent first-successor proof: a fenced statement that the earliest undecoded display set at-or-after the covered floor sits at PTS X (for our fixture, 88.380), with the floor itself reported.
Either form would ride the same emit-on-transition philosophy the statement already follows (a line when the reconciled floor changes, plus the existing tick). The fence semantics you shipped in #250 (stamped post-reposition, requesting generation) are exactly right as-is — this is purely an additional claim, not a change to coveredFrom. For our gate's purposes, renaming or clamping coveredFrom, or inferring from packet-store lifetime, wouldn't help: the emitted statement itself has to carry the claim.
Motivating media or use case
The #250subtitle-resolution statement has been running in our combined seek-stopwatch harness since 6.0.2, and one truth class turns out to be structurally unprovable from the current fields: "empty because nothing was ever authored before this point."
On a PGS track whose first display set sits at 88.380 s, a seek to 30 s renders (correctly) nothing. To adjudicate that as determined emptiness rather than a dead pipeline, our gate needs coverage reaching back to track start — the earliest point that could change the answer. The statement's coveredFrom reports the post-reset drain window (≈ target − 15 after any far seek), and per your close it is an unclamped upper bound on where the contiguous decoded run begins — so a post-seek value of ~15 can neither affirm nor refute track-start coverage. The pre-seek line (coveredFrom=-15.00 at load) does carry the needed bound, but under the previous seekGen — and cross-generation combination is exactly what the fence exists to forbid.
Net: the state is rendered correctly, the pipeline is live (fenced via=prefetch lines resolve through the evaluated time), and the claim we need is one the statement cannot currently make. Our adjudicator has to score the target "apparatus-inexpressible" rather than pass or fail it.
Area
Other
Host app / integration context
(tvOS Jellyfin client) — external QA/conformance harness, same integration as #240/#250. tvOS 26.5, Apple TV 4K 3rd gen, wired.
The field is inserted between coveredFrom= and resolvedThrough=, since the two floors are read as a pair. A key-based parser needs no change; a positional one does.
Why the claim is real rather than optimistic bookkeeping
The determination already survived the seek, it just was not recorded. reanchorSubtitleOverlays deliberately leaves a drained channel's cues in place across a seek and rebuilds only the decoder and the PGS stale-arrival gate. What overwrote the history was SubtitleDrainCursor.coverageStart, which is reset at every .resetAndDecode by design (it is coveredFrom, and that is exactly what it should say). The cursor now carries a second value, the retained run: a floor plus a high-water of that run's determined end. A reset folds its window into it instead of replacing it.
So retainedFrom is the union of decoded runs, not newly measured coverage, which is what makes it fenceable at all.
Two constraints worth knowing when reading it
It is deliberately not seek-fenced, and that is not a hole in the fence. By the time a reset tick runs, seekGeneration has already advanced, so the outgoing run's frontier no longer passes its own fence. Asking for it there would be precisely the cross-generation combination the fence forbids. Instead each run's determined end is banked on the tick that produced it, while it was still live. The engine is stamping its own history at the moment it was valid, not combining two numbers after the fact. The value dies with the drain cursor, which every track switch and every session teardown clears, so it is still load-fenced.
The runs join only when the new window opens inside the retained span. Two rejections, both silent over-claims otherwise:
A forward seek past the retained determined end leaves a hole the 15 s backscan does not reach over. The run restarts.
A backward seek whose window opens below the retained floor leaves two disjoint intervals until the new run climbs back up. The run restarts there too, and the old ceiling goes with it.
An idle drain tick decoded nothing and banks nothing, so frontier growth nobody decoded over is never folded in. A lagging high-water reads as a gap at the next reset and under-claims, which is the safe direction for a field an adjudicator scores on.
The one case where it will read as no proof
Seek to 30 before the reader ever passed 15 and the line will say retainedFrom=15.00. That is correct rather than a miss: the span between the frontier and the new window was genuinely never decoded, and the backscan does not fill it. On the fixture as described (first display set at 88.380, playback established before the seek) the load run's determined end is well past 15, so the fold holds and the floor stays below zero.
Two properties the harness can assert on: retainedFrom is never later than coveredFrom, and it is unclamped for the same reason coveredFrom is, so a container with start_time != 0 does not get coverage claimed below its first PTS. It reads none when a channel has decoded no run at all.
On form 2
Not built, and worth saying why rather than leaving it as an omission. The first-successor proof does not close the case on its own: the covered floor after the seek is 15, so a display set at 5 stays unrefuted, and once retainedFrom is on the line the successor adds nothing. Real store harvest coverage ("the store was filled from track start") would have been the other tempting shape and is unfounded, since the producer tap has no read-position surface at all. That is the same reason via=pump is the weak state in #250.
12 new tests in Issue276RetainedCoverageTests, one per way the field could lie, including both rejection cases above.
Leaving this open for the retest. Thanks for the precise write-up, naming the truth class and the two acceptable shapes made this a short investigation.
Deciding this one rather than leaving it cold for an eighth week: we are not going to run the retest, and we think it can be closed.
Pins and bench for the readings below, each labelled with its own: our app at AetherEngine 7.8.1 (b89240af) on 2026-09-21, at 7.7.1 (fa67d586) on 2026-09-19, and the comparable leg at 7.1.3 (13a86172) on 2026-09-17. Device legs on Office2, Apple TV 4K (3rd gen)AppleTV14,1, tvOS 26.6 (23L773), our app built on Xcode 27.0 / Swift 6.4; the rest on the tvOS simulator. Prefixes trimmed, tails and inner clauses elided (…); the rest verbatim. Bare :N are lines in the named log.
retainedFrom= is shipped, it is unmoved, and it is in our logs — what has not happened is the adjudication it was for.Sources/AetherEngine/Diagnostics/SubtitleResolutionStatement.swift (sha256 8b5f777798e130e1…) and Sources/AetherEngine/AetherEngine+SubtitleResolution.swift (97145f5f0714ab80…) are byte-identical at 7.1.3, 7.8.1, 7.11.0, 7.12.0, 7.13.0 and 7.14.0, and Tests/AetherEngineTests/Issue276RetainedCoverageTests.swift is present and identical at every one of those tags. The field reaches our logs on the legs that resolve a subtitle track: 46 statements across 8 leg logs at 7.8.1 and 50 across 8 at 7.7.1 — one device leg and seven simulator legs at each pin — plus 11 in the comparable device leg at 7.1.3: 107 in all, every one carrying retainedFrom=. Both of the properties you offered the harness hold across those 107. retainedFrom is never later than coveredFrom in any of them; and it arrives unclamped — 14 of the 107 read coveredFrom=-15.00 retainedFrom=-15.00 at a playhead of 0.00 (7 at 7.8.1, 7 at 7.7.1, 0 at 7.1.3). Those negatives are the 15 s backscan at the head of a file rather than a container with start_time != 0, so the start-time half of that sentence is untested here. The none reading never arises in this population: 0 of 107. One PGS leg (a 5737.7 s title, deep link ;s=2;t=900, then seeks to 800 / 700 / 600) shows both halves of what you wrote:
DEV-E8-axis-cues-pgs.log:152, :185, :424 at 7.8.1 — the fold holding the floor at 885.00 while coveredFrom walks forward, then the run restarting when the backward seek opens a window below that floor, which is the second of the two rejections you documented. That is a read of the line, not an adjudication: nothing of ours has scored anything on it.
What has not run is the gate. No code of ours reads the field — retainedFrom appears zero times in 26,099 files under our app, our packages and our scripts. Our conformance instrument parses the statement key-by-key (C5WitnessLine.parse, HWAcceptanceInstrument.swift:2644) and the grammar in its own doc comment at :2619-2620 is still the pre-6.4.4 one; because that parse is key-based and not positional — exactly as you predicted — the new token was absorbed in silence and nothing ever failed, which is most of the reason seven weeks went by. The driver behind it reads coveredFrom at hw_acceptance_driver.py:5797 and maps it at :5901; of the nine fields your statement carries it reads eight — every one except retainedFrom. And the cell that would pose your truth class is one our own signed pre-registration has excluded since 2026-08-08, in these words: "EXCLUDED-PRE-RUN — engine-expressible at this pin (#276 retainedFrom=, ≥6.4.4); the frozen apparatus does not consume the field … FOURTH consecutive signed run without a target-30 claim — a cumulative coverage gap, stated, not buried." That gate last posed its seek cell on 2026-08-26 (targets 302 / 600 / 640 — not 30), was not posed at all in the run after it, and on 2026-08-28 we ruled the whole acceptance regime to re-engage at a milestone rather than per pin. That milestone was reached the same day, and the successor run it keys to has still not happened; re-entering an excluded cell takes a pre-execution amendment to the signed set, not just a run.
Our ordinary batteries did keep running, and some of their landings may sit inside your truth class — unadjudicated. They are what produced the 107 lines above, and none of them was designed to pose the class; but the sim legs' seek targets are 120 / 180 / 300 / 1800 / 2400 s, and the low ones land where the class could live. SIM-E8-seek-lastbig seeks to 120 s and then 180 s: both landings deliver nothing — #357 subtitle-delivery … packets=0 events=0 cues=0 admitted=0 published=0 held=0 recon=1 outcome=empty at :339 and :403 — and the statement reads coveredFrom=105.16 retainedFrom=105.16 and then 165.12 / 165.12, a floor that does not reach back to track start, which is your "will read as no proof" case. The first cue drawn anywhere in that leg is :514aether cue + id=0 image t=2401.48-2404.57 …, after the 2400 s seek; the 7.7.1 twin reproduces it (logs/p771/SIM-E8-seek-lastbig.log:351-352, :411-412, first cue :521 at the same t=2401.48). The other four sim legs that seek play the same title and the same PGS track, and each delivers nothing on landing at 120 s or 300 s, at both pins. That track is authored before 180 s, though: other runs of these same legs decoded cues on it that start at 169.920 s and 172.757 s, and whether a 120 s landing decodes them before the next seek four seconds later varies from run to run on the same build. So the 180 s and 300 s landings are not your class; whether anything is authored before the 120 s landings is what we cannot tell you, and that is exactly the question the retest was meant to settle. Nothing scored any of it. The one fixture we have staged for the class is the frozen apparatus's own, whose first display set sits at 88.380.
So the honest position is that you built what we asked for on the day we asked, it behaves as you documented across the 107 statements we hold at three pins, and the apparatus that would have scored it has not been pointed at it. Please close it. If that cell reopens we will amend the instrument to read the field then; and if anything turns out to be wrong with retainedFrom at that point, we will file it fresh rather than wake this thread.
Closing as requested, thanks for taking the time to decide it rather than let it sit.
One note for whenever that cell reopens, since it bears on the SIM-E8-seek-lastbig readings: retainedFrom=105.16 at the 120 s landing and 165.12 at the 180 s landing are both the forward-seek rejection, not a missed fold. In each case the new window opened above the determined end of the run before it (the 180 s seek came about four seconds after the 120 s one, so that run had nowhere near 165 s decoded), which leaves a hole the backscan does not bridge, and the run restarts. So both lines are correctly "no proof" rather than a claim about the track head, which matches what you concluded.
For the record, the three files you hashed are also unchanged on current main (after 7.15.0), so an amended instrument can read the field against any pin from 6.4.4 on. If retainedFrom turns out to be wrong once something scores it, a fresh issue is exactly right.
Activity
Merge pull request #278 from superuser404notfound/feat/276-retained-c…
superuser404notfound commentedon Aug 2, 2026
Shipped in 6.4.4 (
22ee29fd, PR #278, CI green on macOS / tvOS / iOS). Went with form 1: a newretainedFrom=field on the existing line.The field is inserted between
coveredFrom=andresolvedThrough=, since the two floors are read as a pair. A key-based parser needs no change; a positional one does.Why the claim is real rather than optimistic bookkeeping
The determination already survived the seek, it just was not recorded.
reanchorSubtitleOverlaysdeliberately leaves a drained channel's cues in place across a seek and rebuilds only the decoder and the PGS stale-arrival gate. What overwrote the history wasSubtitleDrainCursor.coverageStart, which is reset at every.resetAndDecodeby design (it iscoveredFrom, and that is exactly what it should say). The cursor now carries a second value, the retained run: a floor plus a high-water of that run's determined end. A reset folds its window into it instead of replacing it.So
retainedFromis the union of decoded runs, not newly measured coverage, which is what makes it fenceable at all.Two constraints worth knowing when reading it
It is deliberately not seek-fenced, and that is not a hole in the fence. By the time a reset tick runs,
seekGenerationhas already advanced, so the outgoing run's frontier no longer passes its own fence. Asking for it there would be precisely the cross-generation combination the fence forbids. Instead each run's determined end is banked on the tick that produced it, while it was still live. The engine is stamping its own history at the moment it was valid, not combining two numbers after the fact. The value dies with the drain cursor, which every track switch and every session teardown clears, so it is still load-fenced.The runs join only when the new window opens inside the retained span. Two rejections, both silent over-claims otherwise:
An idle drain tick decoded nothing and banks nothing, so frontier growth nobody decoded over is never folded in. A lagging high-water reads as a gap at the next reset and under-claims, which is the safe direction for a field an adjudicator scores on.
The one case where it will read as no proof
Seek to 30 before the reader ever passed 15 and the line will say
retainedFrom=15.00. That is correct rather than a miss: the span between the frontier and the new window was genuinely never decoded, and the backscan does not fill it. On the fixture as described (first display set at 88.380, playback established before the seek) the load run's determined end is well past 15, so the fold holds and the floor stays below zero.Two properties the harness can assert on:
retainedFromis never later thancoveredFrom, and it is unclamped for the same reasoncoveredFromis, so a container withstart_time != 0does not get coverage claimed below its first PTS. It readsnonewhen a channel has decoded no run at all.On form 2
Not built, and worth saying why rather than leaving it as an omission. The first-successor proof does not close the case on its own: the covered floor after the seek is 15, so a display set at 5 stays unrefuted, and once
retainedFromis on the line the successor adds nothing. Real store harvest coverage ("the store was filled from track start") would have been the other tempting shape and is unfounded, since the producer tap has no read-position surface at all. That is the same reasonvia=pumpis the weak state in #250.12 new tests in
Issue276RetainedCoverageTests, one per way the field could lie, including both rejection cases above.Leaving this open for the retest. Thanks for the precise write-up, naming the truth class and the two acceptable shapes made this a short investigation.
feat(subtitles): state the retained contiguous determination span (su…
diag(subtitles): state the post-seek coverage crossing when it happens (
cmcpherson274 commentedon Sep 23, 2026
Deciding this one rather than leaving it cold for an eighth week: we are not going to run the retest, and we think it can be closed.
Pins and bench for the readings below, each labelled with its own: our app at AetherEngine 7.8.1 (
b89240af) on 2026-09-21, at 7.7.1 (fa67d586) on 2026-09-19, and the comparable leg at 7.1.3 (13a86172) on 2026-09-17. Device legs on Office2, Apple TV 4K (3rd gen)AppleTV14,1, tvOS 26.6 (23L773), our app built on Xcode 27.0 / Swift 6.4; the rest on the tvOS simulator. Prefixes trimmed, tails and inner clauses elided (…); the rest verbatim. Bare:Nare lines in the named log.retainedFrom=is shipped, it is unmoved, and it is in our logs — what has not happened is the adjudication it was for.Sources/AetherEngine/Diagnostics/SubtitleResolutionStatement.swift(sha2568b5f777798e130e1…) andSources/AetherEngine/AetherEngine+SubtitleResolution.swift(97145f5f0714ab80…) are byte-identical at 7.1.3, 7.8.1, 7.11.0, 7.12.0, 7.13.0 and 7.14.0, andTests/AetherEngineTests/Issue276RetainedCoverageTests.swiftis present and identical at every one of those tags. The field reaches our logs on the legs that resolve a subtitle track: 46 statements across 8 leg logs at 7.8.1 and 50 across 8 at 7.7.1 — one device leg and seven simulator legs at each pin — plus 11 in the comparable device leg at 7.1.3: 107 in all, every one carryingretainedFrom=. Both of the properties you offered the harness hold across those 107.retainedFromis never later thancoveredFromin any of them; and it arrives unclamped — 14 of the 107 readcoveredFrom=-15.00 retainedFrom=-15.00at a playhead of 0.00 (7 at 7.8.1, 7 at 7.7.1, 0 at 7.1.3). Those negatives are the 15 s backscan at the head of a file rather than a container withstart_time != 0, so the start-time half of that sentence is untested here. Thenonereading never arises in this population: 0 of 107. One PGS leg (a 5737.7 s title, deep link;s=2;t=900, then seeks to 800 / 700 / 600) shows both halves of what you wrote:DEV-E8-axis-cues-pgs.log:152,:185,:424at 7.8.1 — the fold holding the floor at 885.00 whilecoveredFromwalks forward, then the run restarting when the backward seek opens a window below that floor, which is the second of the two rejections you documented. That is a read of the line, not an adjudication: nothing of ours has scored anything on it.What has not run is the gate. No code of ours reads the field —
retainedFromappears zero times in 26,099 files under our app, our packages and our scripts. Our conformance instrument parses the statement key-by-key (C5WitnessLine.parse,HWAcceptanceInstrument.swift:2644) and the grammar in its own doc comment at:2619-2620is still the pre-6.4.4 one; because that parse is key-based and not positional — exactly as you predicted — the new token was absorbed in silence and nothing ever failed, which is most of the reason seven weeks went by. The driver behind it readscoveredFromathw_acceptance_driver.py:5797and maps it at:5901; of the nine fields your statement carries it reads eight — every one exceptretainedFrom. And the cell that would pose your truth class is one our own signed pre-registration has excluded since 2026-08-08, in these words: "EXCLUDED-PRE-RUN — engine-expressible at this pin (#276 retainedFrom=, ≥6.4.4); the frozen apparatus does not consume the field … FOURTH consecutive signed run without a target-30 claim — a cumulative coverage gap, stated, not buried." That gate last posed its seek cell on 2026-08-26 (targets 302 / 600 / 640 — not 30), was not posed at all in the run after it, and on 2026-08-28 we ruled the whole acceptance regime to re-engage at a milestone rather than per pin. That milestone was reached the same day, and the successor run it keys to has still not happened; re-entering an excluded cell takes a pre-execution amendment to the signed set, not just a run.Our ordinary batteries did keep running, and some of their landings may sit inside your truth class — unadjudicated. They are what produced the 107 lines above, and none of them was designed to pose the class; but the sim legs' seek targets are 120 / 180 / 300 / 1800 / 2400 s, and the low ones land where the class could live.
SIM-E8-seek-lastbigseeks to 120 s and then 180 s: both landings deliver nothing —#357 subtitle-delivery … packets=0 events=0 cues=0 admitted=0 published=0 held=0 recon=1 outcome=emptyat:339and:403— and the statement readscoveredFrom=105.16 retainedFrom=105.16and then165.12 / 165.12, a floor that does not reach back to track start, which is your "will read as no proof" case. The first cue drawn anywhere in that leg is:514aether cue + id=0 image t=2401.48-2404.57 …, after the 2400 s seek; the 7.7.1 twin reproduces it (logs/p771/SIM-E8-seek-lastbig.log:351-352,:411-412, first cue:521at the samet=2401.48). The other four sim legs that seek play the same title and the same PGS track, and each delivers nothing on landing at 120 s or 300 s, at both pins. That track is authored before 180 s, though: other runs of these same legs decoded cues on it that start at 169.920 s and 172.757 s, and whether a 120 s landing decodes them before the next seek four seconds later varies from run to run on the same build. So the 180 s and 300 s landings are not your class; whether anything is authored before the 120 s landings is what we cannot tell you, and that is exactly the question the retest was meant to settle. Nothing scored any of it. The one fixture we have staged for the class is the frozen apparatus's own, whose first display set sits at 88.380.So the honest position is that you built what we asked for on the day we asked, it behaves as you documented across the 107 statements we hold at three pins, and the apparatus that would have scored it has not been pointed at it. Please close it. If that cell reopens we will amend the instrument to read the field then; and if anything turns out to be wrong with
retainedFromat that point, we will file it fresh rather than wake this thread.superuser404notfound commentedon Sep 23, 2026
Closing as requested, thanks for taking the time to decide it rather than let it sit.
One note for whenever that cell reopens, since it bears on the
SIM-E8-seek-lastbigreadings:retainedFrom=105.16at the 120 s landing and165.12at the 180 s landing are both the forward-seek rejection, not a missed fold. In each case the new window opened above the determined end of the run before it (the 180 s seek came about four seconds after the 120 s one, so that run had nowhere near 165 s decoded), which leaves a hole the backscan does not bridge, and the run restarts. So both lines are correctly "no proof" rather than a claim about the track head, which matches what you concluded.For the record, the three files you hashed are also unchanged on current
main(after 7.15.0), so an amended instrument can read the field against any pin from 6.4.4 on. IfretainedFromturns out to be wrong once something scores it, a fresh issue is exactly right.