Repository navigation
Description
What happened?
On a live loopback session, hasFirstFrameReadyForDisplay and state == .playing both go true while AVPlayer is still in waitingToPlay(.toMinimizeStalls) — the presented first frame then HOLDS STATIC for 1.55–2.81 s before rate rolls, and the host has no lever over that wait.
Measured on real hardware across 11 consecutive live tunes (raw-TS /stream.ts from Jellyfin
10.11, h264 1080p59.94 + AAC, loopback route, liveJoinProfile = .fastZap), millisecond
logs + HDMI capture at 10 fps:
- Your own host log shows the shape on every tune, e.g.:
#3 layer.isReadyForDisplay=true t+1.10s→
#3 timeControlStatus=waitingToPlay reason=AVPlayerWaitingWhileEvaluatingBufferingRateReason→
#3 timeControlStatus=waitingToPlay reason=AVPlayerWaitingToMinimizeStallsReason→
#3 timeControlStatus=playing reason=- t+3.91s— 2.54 s between first frame and rate roll. - 9 of the 11 tunes held 1.55–2.81 s; on glass the frame is bit-static through the window
(max per-pixel delta ≤ 1 at 10 fps on 192×108 gray), i.e. a real user-visible freeze, not
a reporting artifact. - The engine's clock advances through the window and
statereads.playing, so every
start signal a host can key chrome on fires seconds before motion. We shipped a
host-side hold keyed oncurrentAVPlayerItem.timebaserate (works), but the WAIT itself
stands: warm channel-change press-to-motion measures 6.4–6.6 s against our 5–7 s product
bar — at the ceiling, and the wait is the largest single share we cannot touch. - Not a fix:
preferredForwardBufferDuration = 2.0on the published item, applied before
the roll — measured inert (A/B on device, five warm zaps each way; identical
press-to-motion distributions). The wait is rate evaluation, not buffer-target-bound.
The engine sets neither automaticallyWaitsToMinimizeStalls nor uses
playImmediately(atRate:) anywhere (checked at both 6.21.0 and cb3baaf/6.50.1), so
AVPlayer's default policy decides the join tail on a path whose whole point
(.fastZap) is join latency.
Two asks, either resolves it (both would be better):
- A join option to shorten/skip the wait on live loopback —
playImmediately-class, or
exposure ofautomaticallyWaitsToMinimizeStallsscoped to the live join (the
.fastZapdoc already prices "one early -16832 or a short rebuffer" as an acceptable
trade; this is the same trade's other half). - Roll-aligned signaling: a published edge for "rate actually rolling" (we derive it from
the item timebase today; a first-class signal would let hosts key chrome honestly
without reaching into the item).
Steps to reproduce
- Serve a live MPEG-TS stream (Jellyfin
/Videos/<id>/stream.ts, h264 + AAC) and load it
withisLive: true,liveJoinProfile: .fastZap, native/loopback route. - Watch the NativeAVPlayerHost transitions:
layer.isReadyForDisplay=true→
waitingToPlay(EvaluatingBufferingRate)→waitingToPlay(ToMinimizeStalls)→
playing1.5–2.8 s later. The presented frame is static for that whole span. - Optionally point an external capture at the output: the frame freeze is on-glass, with
every host-visible start signal already fired.
AetherEngine version or commit SHA
Measured at 6.21.0 (87868c1); code re-checked at 6.50.1 (cb3baaf) — no
waits/playImmediately handling exists there either, so the mechanism is presumed
unchanged (the measurement itself is 6.21.0).
Host app
Custom / my own integration
Platform
tvOS
OS version
tvOS 26.5
Device / chip
Apple TV 4K (3rd generation), AppleTV14,1 — real hardware, not simulator. HDMI capture
(Elgato 4K X) used for the on-glass verification.
Playback path
Native AVPlayer
Source media (for playback bugs)
Live TV channel via Jellyfin 10.11 raw MPEG-TS (/stream.ts): h264 High 1920×1080
59.94fps progressive + AAC-LC stereo. Reproduces on every channel of this shape we
tried (7 distinct channels, 11 tunes).
Error codes / log lines
No errors — that is the point: the hold is silent. Representative sequence quoted above;
full millisecond logs of all 11 tunes plus the 10 fps frame-difference tables available
on request.
Anything else
The freeze cost us a P1 in our own device battery: our chrome dropped its spinner on
your start signals ~2.7 s before motion, which read as "stuck" to a viewer. We work
around it host-side now, but every AetherEngine host keying on
hasFirstFrameReadyForDisplay/.playing for live will inherit the same trap.
Activity
fix(live): report the phase on motion, and offer to stop waiting
superuser404notfound commentedon Aug 28, 2026
Thanks for this one. The measurement carried it: millisecond logs, 11 tunes, and an HDMI capture to
separate a reporting artefact from a real freeze is exactly what makes a policy question answerable
instead of arguable. Both asks are addressed on
feat/ae440-live-join-roll(24f43e00), but the twohalves have very different answers, so it is worth being precise about which is which.
Ask 2 first, because half of it was a real defect on this side
There already is a published edge for "the rate is actually rolling":
$playbackPhase. It is documentedas the single source of truth for what playback is doing, and it folds the transport status the host
mirrors. It was also broken in precisely the way reported, one level down.
stateis transport INTENT. Every autostart writes.playingthe momentplay()has been called, whichis the documented behaviour and is why the startup ladder deliberately ends at
.presentingrather thanat
.playing. The phase simply followedstate, so it inherited the same gap, and AVPlayer's pre-play.pausedstatus arriving after the autostart added a millisecond of.pausedon top of it. Measured onthe loopback harness before the change:
So keying on the phase would have dropped the spinner at 70 ms rather than at 2.7 s. Different number,
same trap.
The phase now folds a fourth axis, whether this load's transport has rolled once, and reports
.loadinguntil it has. After:
Two edges, no flicker, on both AVPlayer-backed paths.
stateis unchanged, so nothing that keys on itmoves. A paused mount stays
.pausedrather than looking like a session still arriving, and the pathsthat publish no transport status credit the roll with their host, so their phase is bit-identical to
before.
That means no new API for this half: observe
$playbackPhaseand it is honest about motion.hasFirstFrameReadyForDisplaykeeps meaning what it says, that a picture exists rather than that it ismoving, and it and
statenow both carry that warning indocs/api.md. Deriving it from the item timebase, as donedownstream today, was the correct read of a broken signal.
Ask 1: a lever, not a fix, and deliberately off
LoadOptions.liveJoinStartsImmediatelycuts the first such hold of a live session short withplayImmediately(atRate:). Four guards, each of which is a way this is otherwise the wrong call:AVPlayerWaitingToMinimizeStallsReason, never forEvaluatingBufferingRate, whichAVPlayer.hdescribes as a brief monitoring period and explicitly says not to show waiting UI for.Firing there would preempt an evaluation that was about to start playback by itself.
AVPlayer.hsays the call "will act as if the buffer became empty during playback", and a stall withthe player not waiting to minimize stalls is the shape that resets rate to 0 and never resumes. That is
not hypothetical here. Setting
automaticallyWaitsToMinimizeStalling = falseon the shared player wastried in May 2026 and reverted the same day (
35fa16d0): rate dropped to 0 right afterasset.loadand never came back. Hence a one-shot over a proven buffer rather than a policy on the player, which
also answers the "expose the property" half of the ask, in the safer shape.
It is spent once the join has either been started by hand or rolled on its own, so every later hold in
the session keeps AVPlayer's own policy and a mid-stream rebuffer is untouched.
Why it ships off by default, and what would settle that
The hold does not reproduce here at all. Six window geometries against the raw-TS fixture at
--realtime --preroll 0/3/6/12/30, from a first window shallower than its own holdback to one entered ona full backlog, 1 s and 5 s source GOPs:
Loopback answers at memory speed, so the buffering-rate evaluation concludes immediately and there is
nothing to cut short. That is a limit of this harness rather than a counter-measurement, and it is the
reason this is an opt-in: a policy change nobody on this side can observe has no business being on for
every host. If the A/B on real hardware says it is strictly better, making it the default (or an internal
policy for live joins, with no flag at all) is the obvious next step and the numbers would decide it.
aetherctl play --live --fast-zap --live-start-immediatelydrives the engine end, andplaynow printsa
PHASE <phase> t+Nsline on every phase edge, stamped on the same clock as the first-frame line, sothe two are readable against each other at millisecond resolution.
One measurement that would sharpen this, and one question
The lever only fires while AVPlayer reports the item's buffer as non-empty. Sampling
currentItem.isPlaybackBufferEmptyandcurrentItem.loadedTimeRangesacross the hold would thereforesay in advance whether it can fire at all, and it also discriminates the two candidate mechanisms:
a forward buffer that keeps growing through the hold means AVPlayer has the data and is waiting on its
own estimate, which is what this addresses; a forward buffer pinned near zero means it is genuinely
starved at the edge, and cutting the wait short would trade a frozen frame for an immediate stall. Worth
knowing before the A/B rather than after it.
The other question is about the rest of the budget. Warm channel-change press-to-motion of 6.4 to 6.6 s
with 1.5 to 2.8 s of it in this hold leaves roughly 4 s elsewhere, and on a Jellyfin
/stream.tsroute agood part of that is usually the server opening the upstream before the engine ever connects. The
first live manifest served after ...line prints what the join gate itself held, andstartupProgress.checkpointseparates the demux probe (streamsProbed) from the display handshake(
routed) from that gate (sessionConstructed). If most of the remaining 4 s sits before the engine'sfirst byte, there may be more to win there than in this tail.
superuser404notfound commentedon Aug 28, 2026
Released in 6.52.0.
playbackPhaseis the roll-aligned signal now (.loadinguntil the transport has moved once,.playingon the roll), andLoadOptions.liveJoinStartsImmediatelyis the opt-in lever. Leaving this open for the device A/B: the buffer sampling across the hold is what says in advance whether the lever can fire at all.cmcpherson274 commentedon Aug 28, 2026
Device A/B done on 6.53.0, and the lever earns its keep.
Setup. Same tvOS device (AppleTV14,1), Jellyfin
stream.tsroute, the D-3 chain shape from the original report: launch, five channel-changes down across different channels, four back up — the up-legs and mid-chain revisits are the warm zaps (origin open ≈15 ms, source first byte ≈1.1 s). Two runs, identical shape, ~10 min apart: control, thenliveJoinStartsImmediately: trueon every live load. HDMI capture rolling both runs; press epochs stamped; frame analysis at 10 fps.Control (defaults). Every warm zap reproduced the report's shape: first frame at ~2.3–2.6 s after load, then the transport sat in
AVPlayerWaitingToMinimizeStallsReasonfor 2.6–2.9 s before the rate rolled (our timebase watcher's hold numbers). Camera-measured press→moving-picture on the clean warm zaps: 6.4 / 6.5 / 7.2 s.Lever. On three of the five warm zaps the hold never arms at all — the timebase is already rolling by the time our first-frame predicate passes — and on the rest it releases in 0.3–0.5 s. Camera-measured warm press→moving-picture: 4.3 / 4.8 / 5.1 / 5.6 s. First-PICTURE latency is unchanged (~3.4–3.9 s both runs) — the lever removes exactly the frozen-frame tail, which is what the original issue was about.
The trade did not materialize. Per-channel session stats: dropped 0, stalls 0, on 10/10 zaps in BOTH runs; no reopen ladder, no errors. Cold zaps (tuner spin-up inside the first byte, ~6.5 s) are identical in both runs — the guards keep the lever out of the starved case, as designed.
Your buffer question, answered on hardware. We now sample
isPlaybackBufferEmpty+ the forwardloadedTimeRangesspan at ~1 Hz while our roll-hold stands. Every hold in the control run readsempty=false, ahead=3.7–4.9sfor its whole duration — AVPlayer holds ~4 s of data while it waits on its own estimate. On this stack the hold is always your first mechanism (waiting on the rate evaluation), never edge starvation, which is presumably why cutting it cost nothing.Whether we ship it on is our owner's call (the evidence above is the case for it); from the engine side this measurement is what the opt-in was waiting for, so closing from our end unless you want the raw bundles.
tschuegy commentedon Aug 28, 2026
Field data from a second host: on our loopback live joins the new option cannot fire, because the hold lands before the first manifest exists.
Setup: Syravo on tvOS, AetherEngine 6.54.0, Apple TV 4K (3rd gen) / tvOS 26.6. Sources are Xtream raw MPEG-TS behind a redirect chain (720p50 h264 + AAC on the channels below),
liveJoinProfile = .fastZap,liveBlockingReload = false,maxConcurrentSourceRequests = 1.We put
LoadOptions.liveJoinStartsImmediatelybehind a flag and ran a paired A/B on the device: 8 tunes, same channels, same order, one run per arm.Result: the option never fired. Zero
AE#440 live join: cutting the stall-avoidance wait shortlines in the armed run, while our own controller logged the option as set on all 8 loads.The timings show why. Per native tune, seconds after load start, both arms identical in shape:
AVPlayer reports the hold roughly a second before the engine serves a playable manifest, so at that instant the item has fetched nothing.
playIntentis set (#1 rate=1.0precedes the hold) and the reason string matches, which leaves!playbackBufferEmptyas the only guard that can refuse — and it refuses correctly: that is exactly the empty-buffer shapeAVPlayer.hwarns about. Nothing to fix in the guard.What differs from the original report is where the first frame sits. There,
layer.isReadyForDisplay=trueat t+1.10 s with the roll at t+3.91 s — a bit-static picture for 2.5 s. On our sessions the layer goes ready at t+3.70–4.13 s and the roll follows 50–110 ms later, so there is no static tail to cut. Same option, same loopback path, but our join never opens a window in which the lever may legally fire. Reported not as a defect, but so the option's reach is on record: it covers a join that is holding on buffered media, and a join can also be waiting for the playlist itself.Where our join time actually goes (native path, 3 channels × 2 runs): ~0.8 s to open the origin (redirect chain, first data after ~650 ms), then 2.2–3.5 s producing the initial playlist, then ~0.1 s for AVPlayer. The gating line is always this one:
Which raises a question I would rather ask than assume: the producer cuts 2.000 s segments on these sources (61 of 63 finalized segments in the run; the first of each session is 0.500 s, from the
targetDur=0.500sinit), yet the servedTARGETDURATIONis 3 s, so the holdback is 3 × 3 = 9 s and we wait for 5 segments / 10 s of media before anything is served at all. AtTARGETDURATION 2the same rule would ask for 6 s. Is the 3 s a floor, or does it carry over from the 0.5 s init value somewhere? For us that holdback is the zap budget on this path —.fastZapalready brought it from 18 s down to 9 s, and the remaining 9 s of media is what the viewer sits through.One more data point from the same run, in case it helps place the path: 5 of the 8 channels are 1080i25 and route
dispatch → software. Those reach motion in 0.67–1.01 s. On our hardware the loopback/native path is the slow join, not the software one.Happy to run a patched build or dump full per-tune logs if either of those would help.
superuser404notfound commentedon Aug 28, 2026
Shipped in 6.55.0:
LoadOptions.liveJoinStartsImmediatelydefaults totruenow, on the strength of the device A/B (press to moving picture 6.4 / 6.5 / 7.2 s to 4.3 / 4.8 / 5.1 / 5.6 s, press to first picture unchanged, stalls and dropped frames zero in both arms).Three guards moved with the default: the lever requires 1.5 s of contiguous buffer ahead of the playhead rather than a merely non-empty one, it is evaluated when the waiting REASON changes rather than only on a transport-status change, and the readings behind the decision are one batched off-main read. Hosts that want AVPlayer's own join policy set the option
false.superuser404notfound commentedon Aug 28, 2026
Recorded, and the reach is exactly as described: the option covers a join that is holding on buffered media, and this one is waiting for the playlist itself. Three things worth adding.
The guard got stricter in 6.55.0, not looser. With the default flip the lever now requires 1.5 s of contiguous buffer ahead of the playhead rather than a merely non-empty one, and it is evaluated when the waiting REASON changes rather than only on a transport-status change. On these timings (ToMinimizeStalls at 2.52 to 2.97 s, first manifest served at 3.66 to 4.09 s) it will keep refusing, and that is the right answer rather than a gap to close: over an empty buffer
playImmediately(atRate:)is documented to act as if the buffer had emptied during playback, which is the shape that drops rate to 0 and does not recover.The half of that join which is actually payable has moved. The gating line quoted here,
first live manifest served after 2.940s: 5 segments / 10.000s >= 9.000s holdback (TARGETDURATION 3s), is #447, and the answer there turned out to be four separate reasons why a 2.000 s source ends up serving TARGETDURATION 3, two of which were the engine measuring its own wait rather than the origin's cadence. Fixed onmain, details in that issue. Against the other numbers in this report (about 0.8 s to open the origin, 2.2 to 3.5 s producing the initial playlist), that gate is most of what a warm zap costs on this path, so it is the right place for the next second to come from.One data point here is worth more than it looks. 1080i25 channels routing
dispatch -> softwarereaching motion in 0.67 to 1.01 s while the loopback path is the slow join inverts the usual assumption, and it is not something that can be seen from this side. If the software path keeps winning on that hardware across more channels, that is its own issue and a welcome one.Thanks for running a paired A/B and reporting a negative result. A measurement that says "the option cannot fire here, and here is the window in which it may legally fire" is worth more than one that says it did.
tschuegy commentedon Aug 29, 2026
Re-ran the A/B on
origin/main(5d35d58) withliveJoinStartsImmediatelyat its newtruedefault, Apple TV 4K, 8 channels, two runs. My earlier "ineffective on this stack" verdict was measured against 6.54.0's guards, so it needed re-taking. It survives, and the new line says why on each tune:Two different reasons, and both look correct to me:
The frozen tail you measured is real, but on this stack it is not where the join time goes. Press to first picture and press to motion sit within ~50-110 ms of each other on every native tune:
Both numbers are downstream of the first-serve gate, which opened at 3.335 / 2.792 / 2.450 s. So the join cost here is the manifest hold, which is #447 — and that one did not move, for a reason I have written up there (
ceilover an accumulated float landsmaxEXTINFone ulp above 2.0). Nothing here argues against the default; it just does not reach this shape of source.superuser404notfound commentedon Aug 29, 2026
Re-taking an A/B against a changed guard and reporting that it now refuses is exactly what the new line was added for, so thanks for going back for it. Both refusals read correctly from here, and only one of them is interesting.
The empty ones are the reach, and they are unchanged
ToMinimizeStallsat 2.5 to 3.0 s against a first serve at 3.3 to 4.1 s means the item has fetched nothing at the instant the decision is taken, soahead 0.00s, empty=trueis the honest reading of that join andplayImmediately(atRate:)there is the documented way to set rate 0 and not get it back. That half is the same conclusion as the last round, now with the number printed instead of inferred.Tune #4 is the only case in either host's data where the lever met its own mechanism and still refused
0.76 s ahead on a 0.960 s cut, on the one channel whose gate opens early (
sealed at 1s, served after 1.033 s under the fastZap bounded start). Media had been served and some of it was down, so that hold is the buffered mechanism rather than edge starvation, and the floor is the only thing that turned it away.What I would keep, and why the floor rather than the number:
empty=falseexactly as a four second cushion does, its upper end by the cushion the admitting case actually measured, 3.7 to 4.9 s throughout every hold. 0.76 s is a fifth of that, and below one arrival interval on that source. Nothing in either data set constrains the value between those two ends, so defending 1.5 specifically would be inventing precision.So the old rule was not better there, it was only luckier if it happened not to stall. Worth having on record either way.
One limit worth naming while it is on the table
The decision is re-taken when the transport status changes and when the waiting reason changes, and nothing else re-reads the buffer. A refusal does not spend the one-shot, so a later edge can still fire and would print its own line, but a hold that begins below the floor and crosses it while the reason stands still gets no second look.
Nothing in either report shows that shape yet. On this stack the rate rolls 50 to 110 ms after the first data, so there is no window to look into, and on the original one the cushion reads 3.7 s and up from the first edge. If a tune ever shows
ToMinimizeStallsstanding for several hundred ms while the forward buffer climbs past 1.5 s, that is the case for re-reading during the hold rather than only at its edges, and I would build it on that evidence.The one number that would sharpen tune #4
Its press to first picture and press to motion, the way tunes 1 to 3 are tabled. If that gap is also 50 to 110 ms, the refusal cost nothing measurable and the floor never has to be argued again on this source. If it is a second or more, the crossing-during-the-hold case above just acquired its first real example.
And agreed on where the join time is: everything in that table is downstream of the first-serve gate, which is #447, answered there this morning.
tschuegy commentedon Aug 29, 2026
Retested on 6.56.0 on the device, and the answer here changed as a side effect of #447 rather than of anything in this issue. Reporting it because "the lever is out of reach on this source" was my conclusion twice, and it no longer holds.
The lever fires now
Two of the four native tunes of the run:
Under 6.55.0 this path fired 0 of 8, always
ahead 0.00s, empty=true. The mechanism is exactly the one both of us named: the decision is taken atToMinimizeStalls, and whether the item holds anything by then is decided by the first-serve gate. A 9 s holdback served at 3.3 to 4.1 s, after the decision; a 6 s holdback serves at 1.2 s, before it, and the item then holds 5.97 s. So the empty refusals were never a property of this source, they were the holdback.The other two tunes of the same run still read
buffer ahead 0.00s, empty=true, floor 1.50sand still refuse. Their gate served at 2.4 and 2.5 s, which is still after the decision. Same source, same session, both readings within four minutes of each other, which is the cleanest evidence I have that the guard is reading the item correctly and not the source.The number you asked for, and why it is not here
Press to first picture and press to motion on the 0.960 s channel, tabled like the others. I could not take it: that session never rolled at all.
No
isReadyForDisplay=true, noitem.audioTrack, noplaying. Twelve seconds without a picture and I left the channel. Note the reading itself:ahead 0.00s, empty=false, where the run that produced the last round readahead 0.76s, empty=falseon the same channel. So this join was in a worse state than that one at the same point, and the origin then confirmed it.The origin was poor throughout this session: fourteen
[AVIOReader] slow readevents in seven minutes, 2.8 s to 14.0 s. I will take that measurement again on a healthy run rather than argue the floor from a join whose source was already failing.One thing that moved into view behind this
On the two tunes where the lever fired, it fired 17 ms before
playing, and 0.8 s after the item had reachedreadyToPlaywith its first frame on the panel. What held those 0.8 s was not AVPlayer but the engine's own display-criteria gate spending its full 2 s cap. So on this stack the wait this issue is about now sits behind a larger one; I have filed that as #449. It does not change anything here, but it does mean the lever's remaining headroom on this source is smaller than the raw refusal counts suggest.superuser404notfound commentedon Aug 29, 2026
That is the split I did not have a way to take: same source, same session, four minutes apart, and the only difference between the two readings is whether the gate had served before
ToMinimizeStallsor after it. So the refusals were the holdback, and the guard was reading the item correctly the whole time. Good that it was re-taken against a changed gate rather than left standing.The decision point is fixed relative to the join, which means the only lever on the two tunes that still refuse is the gate in front of it, not anything in this issue.
ahead 0.00s, empty=falseis the item holding a range with nothing ahead of the playhead, which is exactly the state the floor exists to refuse.The 0.960 s numbers can wait for a healthy origin. That join was already failing when the reading was taken, and the source confirmed it eight seconds later, so a floor argued from it would be argued from the outage.
On #449, that one is fixed on
mainin5b461b07: the gate reads the panel per tick now, so a rate-only write for a rate the display already runs settles instead of spending the cap. It does not move the gate this issue is about, but it does mean the remaining headroom here gets measured against a criteria gate that is no longer 2 s wide.One correction that belongs on this thread too, since the reasoning here leaned on it: the
measured floor none yetin those seal lines meant there is no cadence meter on that source at all, not that the meter had nothing yet. The meter is built only for ingest sources that hand over finished segments; raw MPEG-TS is cut inside the engine. The line says so onmainnow (44f5dbd7).superuser404notfound commentedon Aug 29, 2026
Going back for the second half of this: the retest holds up, and reading it against what shipped alongside it turns the open question here into a prediction that can be measured rather than argued.
The reading that is already in those logs
The two tunes that still refuse are the interesting half now. Their gate served at 2.4 and 2.5 s, after the decision, so the refusal is correct at the instant it was taken. What is not in the tables is what the hold did next, and three timestamps per tune settle it, all of them already captured:
waitingToPlay reason=ToMinimizeStallsfirst live manifest served after ...timeControlStatus=playingIf
playinglands 50 to 110 ms after the serve, the way it does on the tunes that never held, then AVPlayer re-evaluates by itself the moment media arrives and there is nothing here left to cut. If it stands several hundred ms past the point where the buffer must have crossed 1.5 s, that is the shape I said I would build on, and it now has its first candidate.Why the counts in the next run will look worse, and should
Worth saying before that run rather than after it. The lever fired on those two tunes for a reason that is about to disappear: the display-criteria gate was spending its full 2 s cap in front of
play(). Tune 1 has the whole chain visible.The 5.97 s was bought by that cap. The criteria gate held
play()for 0.86 s past the first serve, and the item spent that time fetching. With #449 settling a rate-only write at once,rate=1.0moves to roughlyreadyToPlay, which on a 1.2 s gate is about a second BEFORE the media the guard measures. So the same joins should start readingempty=trueand refusing, while press to motion stays the same or improves, because the second that gate no longer spends in front of the picture is a second the item spends fetching either way.That is the same mechanism this thread already established, seen from the other side: the reading is decided by where the rate write falls relative to the first serve, and both gates in front of it just moved.
What is on
mainfor itbc20a309, observation only. A refused hold is now sampled every 250 ms for up to 5 s, which outlives both measured holds (1.55 to 2.81 s) and resolves inside the shortest, and exactly one line reports which of three things happened:All three speak, including both negatives, because a witness that is silent when it finds nothing cannot be told from one that never ran. The sample it reports as a crossing is the guard's own verdict, asked through the same function, so the witness cannot drift away from the decision it is evidence for.
It deliberately does not start playback on that crossing. A cushion that has just passed 1.5 s and is still climbing can be outrun by a 1x playhead, which is exactly what the floor is there to refuse, and I would rather have the measurement than the bet. If the line shows holds standing well past the crossing, deciding during the hold instead of only at its edges is a small change and the evidence for it will be in hand.
Not released. On the next build, that line per refused tune is the one thing worth capturing here, and the three timestamps above can come from the run that is already on disk.
superuser404notfound commentedon Aug 29, 2026
Shipped in 6.56.1 (
bc20a309), the witness for a refused hold.Per refused tune it emits exactly one line, and all three outcomes speak, so the absence of a crossing is reported rather than inferred from silence. That plus the three timestamps already in this morning's logs (
ToMinimizeStalls,first live manifest served,timeControlStatus=playingon the two refusing tunes) is what decides whether deciding during a hold is worth building.The same release carries the #449 fix, so the prediction in the comment above applies to the next run:
rate=1.0moves to roughlyreadyToPlay, ahead of the first manifest on a fast gate, and the lever should start refusing where it fired on 6.56.0, at the same or better press to motion. A drop in the fire count there is the mechanism working, not a regression.tschuegy commentedon Aug 29, 2026
Field capture on 6.56.1: the flip happened as predicted, and the witness spoke on 1 of 3
Apple TV 4K (3rd gen), tvOS 26.6, one two-minute run, six native live joins. With the criteria cap gone (#449)
rate=1.0now lands about two seconds earlier, and the lever divides the run exactly along the line you drew.Refused, all three joins whose first manifest took 1.2 to 1.9 s:
Fired, all three joins where the buffer was already there:
Tune 4 is a fast gate and a fast origin together: the wait arrives at
t+0.08swith 1.92 s already ahead, the lever cuts it, andtimeControlStatus=playingfollows att+0.12s. Tunes 5 and 6 are the two 25 fps joins that still spend the full criteria cap, so byt+2.05sthe window has 5.61 and 6.00 s in it and the cut is not really a bet at all; playing follows 45 and 30 ms later.So the guard is doing what you said: it refuses where the join genuinely begins starved, and the "0 of 8" from the 6.55.0 run has become 3 of 6 in a run whose origin was faster on half the channels.
The finding: the witness is silent on two of the three refusals
Only tune 3 produced a follow-up line:
That one is exactly what it was built for, and it answers its own question nicely: the hold ended 17 ms after the cushion reached the floor, so the refusal cost nothing on that join. The 1.28 s is the size of the bet the floor declined, and AVPlayer took it anyway at the same instant.
Tunes 1 and 2 printed nothing after the refusal:
10:39:18.683,timeControlStatus=playingat10:39:20.683. Exactly 2.000 s, so eight 250 ms samples inside a 5 s budget.10:39:37.425, playing at10:39:38.653. 1.228 s, so four samples.Neither produced "the cushion reached the floor", "the hold ended first" or "the budget ran out". By your own reasoning in the release note, that is the one outcome the sampler was supposed to make impossible: a witness silent about its own negative cannot be told from one that never ran, and from out here I cannot say whether the sampler did not arm on those two, or ended in a state that has no line.
Grepping the whole capture for the three phrasings returns only the single tune 3 line, so it is not a case of my filter missing it.
If it helps narrow it: the difference I can see is timing. On #1 and #2 the content arrives late and then all at once, so the buffer goes from empty to well past the 1.50 s floor and the hold ends within the same sampling tick; on #3 the floor was crossed 17 ms before the hold ended, which is also inside one tick but happened to be observed. If the line only prints when a sample catches the two events in different states, then a tick that sees both at once would fall through silently, and that would explain 2 of 3.
Context from the same run
The origin was mixed: six
[AVIOReader] slow readevents in two minutes, the two largest 2972 ms and 3942 ms, both on tune 5. That same tune is where #446 fired in the field again:which is the shorter-fuse case you flagged on #447 landing on a real channel and being answered.
superuser404notfound commentedon Aug 29, 2026
The witness defect is real, it is mine, and it is the exact failure the round-3 note said the sampler was built to make impossible. Fixed on
mainin90cb9938.What silenced it
Your reading is close and the shape you inferred from the timing is right, but the mechanism is narrower than "a tick that sees both at once". The loop had two exits that returned without a line, and one of them was the ordinary ending.
The one-shot is spent on the
.playingedge, deliberately: past the join, AVPlayer's stall policy is the right one, so the override has to be unable to reach a mid-stream rebuffer. That makes the rate rolling and the one-shot being spent the same event, written by the same observer callback one line apart. The sampler's first guard read the spend as "this witness no longer applies" and returned silently, and it sat above the guard that reports the hold ending. So.holdEndedwas reachable only by a pause, and every refusal that ended the way refusals normally end said nothing.Tune 3 escaped it for the reason your timing suggests: the cushion crossed 17 ms before the roll, so the sample landed while the hold was still up and took the
.crossedbranch before either half of that edge existed. Tunes 1 and 2 rolled between samples, and the next sample hit the silent exit. 8 samples and 4 samples respectively, all of them working, the last one discarding its own result.The second silent exit was an item replaced under the witness, which is a join abandoned rather than resolved and is worth telling apart from both negatives.
What it does now
The ending is a pure decision with every branch emitting, and two of them are new because they were previously borrowing a wrong sentence:
One more per-load bug fell out of it:
liveJoinHoldWitnessStartedwas documented as one witness per load and never actually reset, so on the path where the host is reused across loads the second live join would have armed no witness at all. Your run tore the host down between tunes, which is why you saw tune 3 arm at all.On the run itself
3 of 6 firing, split exactly along the manifest arrival, is the guard working rather than a threshold that happens to fit. The three refusals genuinely began starved, and tune 3 is the interesting one: the refusal cost nothing, because AVPlayer took the same bet 17 ms after the floor was crossed. That is one sample of the case the floor exists to decline, and it says the floor declined it by 17 ms rather than by a wide margin. A handful more of those and the argument for deciding during a hold rather than at its edges starts to have evidence behind it, which is what the witness is for.
Tunes 5 and 6 firing at 5.61 s and 6.00 s ahead is the 25 fps criteria cap donating the buffer, so those two will change shape once #449 round 2 lands. Worth knowing before the next capture reads like a regression.
Not released yet. Leaving this open for the retest of the new lines.
2 remaining items
tschuegy commentedon Aug 29, 2026
Timing note, since 6.56.2 went out nine minutes before I posted the round-2 capture above: that retest is the retest of the release. I measured against
mainatc4c7aa77, andis empty. The tag is that commit plus the release-prep commit, so the four refusals with four witness lines, and the three of four that ended without the cushion reaching the floor, are readings of exactly what shipped. Nothing further is needed from a device for this one.
Syravo is pinned to 6.56.2 as of now, both simulator builds and both unit suites green.
Still open on your side from that comment, so they do not get lost behind the release: the single
empty=falserefusal on tune 4, and whether the AE#446 rejoin swap, which is the host-reuse path your per-load note described, should have anything to say through the witness. Neither blocks anything here.superuser404notfound commentedon Aug 29, 2026
Four refusals, four lines, and three of them the ordinary ending that used to say nothing. That is the negative round 3 was written for, and your reading of it as a set is the part that matters: three of four never got near the floor, so the 17 ms case from the 6.56.1 capture is the exception rather than the shape. Thank you for measuring it against
mainbefore the release rather than after.Both of the things you flagged were real, and neither of them is AVPlayer's.
The reading you could not account for is mine
Tune 4's witness line is not a measurement. The sampler initialises its "last reading" to
empty=true, ahead 0.00sand checks for an ending before taking a sample of its own, so a hold that ends inside the first 250 ms interval reports the placeholder. Your tune 4 ended at 0.26 s, one interval in, which is why it is the only line in either capture that contradicts the refusal above it.The reading is optional now and the line names the absence instead of inventing a value. Same class of error as the one round 3 was about, one layer down: a value that was never measured must not be printed in the shape of one.
What stands from that tune is the refusal's own
empty=false, ahead 0.00s, and that pair is coherent. They come from different places:aheadis measured fromloadedTimeRangesagainstcurrentTime(), whileisPlaybackBufferEmptyis AVPlayer's own statement about the item. An item that has fetched segments but has not yet placed them on its timeline reads exactly that way, and on a live join the placement is the later of the two. A fetch is not a placement.The rejoin path was not a deliberate exclusion, it was disarmed
You were right to flag it rather than claim it, and the answer is worse than the guess. The lever is armed per load from the load's arguments, and
reloadStalledConsumerItemcalls the host'sloadwith the item arguments only. So do the other five in-place swap sites. Every one of them re-declares the session with whatever the parameter defaults say: not live, no HTTP headers, the loopback forward buffer, no readiness deadline, no carriage probe.A swap replaces the item under a session that stays whole, so it is the one caller with no business re-deciding any of that. The same
isLive: falsealso reaches the AE#287 premature-end recovery, which is gated on that flag, on a live session that had just closed a window with ENDLIST and therefore has a finite duration to fall short of. Your capture has five ENDLIST handovers in it, so that is a reachable sequence rather than a hypothetical one.The contract is a value the host holds for the session now, and swaps carry it forward instead of restating it, so there is no argument left to forget. On the remote-HLS bypass the same fix restores the origin's auth headers, the adaptive forward buffer, the readiness deadline and the carriage probe across a recovery reload.
And even armed, your two swaps would have printed nothing
The decision's buffer reading is asynchronous. A hold that ends while it is in flight has to be left alone, because deciding on a state that no longer exists is the failure the recheck exists to prevent, and your swaps rolled about 70 ms after entering the wait. That exit was silent, which is the third of the three, and from outside it is indistinguishable from a lever that was never armed. It says so now, with the time the reading took and whether the rate had rolled.
On the 25 fps tunes, your correction is right and mine was wrong
The origins handing over 5 to 8 finished segments in 13 to 53 ms is a much better explanation than the cap donating buffer, and it is testable in the same capture, which mine was not. Worth keeping in view for the next round: the cushion those joins read says nothing about either gate, so they are not evidence about the floor in either direction.
Shipped in 6.56.3 (
487a88c8,4190c695).Expected shape on a retest: a
#446rejoin should now produce an AE#440 line rather than nothing. On a 70 ms hold that will usually be the new "the hold was over by the time the buffer reading came back" line rather than a decision, which is the honest outcome for a wait that short. A rejoin whose hold actually stands should read as a decision, with a cushion that is genuinely there, since the runway survives the swap.Merge fix/ae440-pause-before-first-roll: a pause the host asked for l…
superuser404notfound commentedon Sep 9, 2026
Follow-up defect from this issue's own fix, found on my end, fixed on
mainin936277a2(not in a release yet).The roll gate this issue introduced suppresses every
.pausedtransport reading before the session's first rate roll. That is right for the reading it was written for: AVPlayer delivers the mount's outgoing status after the autostart has already written.playing, and latching it published a millisecond of.pausedon every native start. But a session that is asked to pause before it has rolled produces the same status with the opposite meaning, and the gate swallowed that one too.The shape it showed up in is a host that reloads at the current position and holds the result paused, which is what my tvOS client does on a return from the background:
stopInternal, sohasTransportRolledis back tofalse.state = .playing..waitingToPlayAtSpecifiedRatearrives after that pause and re-declares.playing..pausedthat follows is dropped by the roll gate.That leaves
state == .playingwithhasTransportRolled == falseon a transport that is standing still, which is exactly whatPlaybackPhase.derivereports as.loading. Permanently, because a paused transport never rolls, so the correction never comes. On screen: a spinner over black that only a Play press could clear, sinceplay()rolls the rate and latches the gate.What separates the two readings is not the roll, it is whose intent the status carries. The durable #122 transport intent already answers that: an explicit pause has cleared it, a mount that means to play has not. New pure rule, wired into both native transport sinks:
Second half of the same defect, in the remote-HLS bypass sink: it wrote the pause only out of
state == .playing, but that path autostarts without writing.playing(the sink does that when AVPlayer renders), so it sits at.loadingfor its whole startup and a pause landing there had nowhere to settle..loadingis now a source state there as well..seekingstays untouched, the seek finalize owns it.Nothing about this issue's own case changes: during a normal start the intent is playing, so the pre-roll
.pausedstays suppressed. That is pinned inHostPauseBeforeFirstRollTestsalongside the regression case, and the whole suite is green.Worth knowing for anyone reproducing it: this does not appear on a macOS loopback run. The defect lives entirely in the pre-roll window, and a loopback origin answers at memory speed, which closes that window. It took a device round on an Apple TV 4K (tvOS 26.6) to see it and to confirm the fix.
The retest still pending here is untouched by this, and this thread stays open for it.
superuser404notfound commentedon Sep 9, 2026
The follow-up defect from this issue's fix is released in 6.76.1 (
5dfe5bbe). A pause the host asks for before the first rate roll now lands, so a session that returns from the background shows the paused frame instead of a spinner over black.The live-join wait this issue is actually about is unchanged, and the retest for it still stands.
fix(player): a pause the host asked for lands before the first roll (s…
cmcpherson274 commentedon Sep 16, 2026
A second stack's reading. Office2 (Apple TV 4K gen 3, tvOS 26.6 / 23L773), engine 6.81.0 (
c7e7adb5), measured 2026-09-12, posted 09-16; our live arm is a raw MPEG-TS spool through a custom IOReader,liveJoinStartsImmediatelyset on every live load. You are eleven releases past our pin (6.82.0 → 7.1.0) and pinned both consumers to 6.88.0 on the 15th ("Both consumers are pinned to it", 5676162328).Channel 999 is our fixture —
aetherctl live --serve-only --seed hln-seed-2a.ts --realtime --freeze-after 60 --unfreeze-after 12, a 91.05 s h264 + 2×AAC loop relayed into Jellyfin — so the origin genuinely stops and nothing is injected into the engine.The arc (
DEV-E6-440-rejoin-u12.log, one leg, at 6.81.0)The source was quiet 13.43 s in all (
live seg-93 finalized12:28:31.506 →seg-9412:28:44.938). The swap seam, excerpted — of the lines elided between the first and last below, none is an AE#440 line and the only status edge is a second.playingat.683:AE#440 lines carrying
#2: 0 — and not a shrug. It was armed:swapItem(NativeAVPlayerHost.swift:399-401) handsloadthe retained session contract,loadre-arms the one-shot at:426in the AE#440 block:425-434, before the#2 load url=emit at:444, and host#1's two lines are the standing proof. What answered instead:.682,#2's first status edge. The swap keeps transport intent (:405-410), so the reused player hands the fresh item.playing— the display-layer line above it carries in the same way. The observer sets the mirror and calls the lever (:672,:673), andif timeControlStatus == .playing { liveJoinImmediateStartSpent = true; return }(:1236-1239) spends the one-shot before any wait exists..697, the hold it was written for.AVPlayerWaitingToMinimizeStallsReason— the one reason:1245admits — arrives 15 ms after the spend and stands 219 ms, to.916.guard … !liveJoinImmediateStartSpent(:1235) refuses it ahead of the async probe, so round 5'sliveJoinDecisionAbandonedline (:1265-1274), written for this exact "no line at all" complaint, sits downstream of where the path stopped. (The.683.playing,.684pause and.684WaitingWhileEvaluatingBufferingRateedges hit the same spent guard; the last two also fail:1244and:1245.)That the waiting-reason observer at
:653was called beside those edges is a code read; thetimeControlStatuscalls are in the emits above. By your own doc the branch behaved correctly — it "spends it silently once the rate rolls on its own, so the override can never reach a mid-stream rebuffer" (:1230-1233) — and an in-place swap presents as exactly that: the runway survives it, your reason for expecting a decision, but a carried.playingreads like a rate that rolled mid-stream. Is the silent spend intended on a rejoin, should it reach past the carry, or should it at least say so? Every anchor above was read at 6.81.0;NativeAVPlayerHost.swiftis not among the 79 files in6.81.0...7.1.0.stats Δ10s [aether] … stalls +1 (total 1), 12:29:01.461), through your stall-recovery ladder, the#65lines above; no reconnect, 0 matches forlive source reset|fresh re-tune|reconnect. And it is one rung — our driver breaks when anAE#440 live joinline and aswapping the itemline both appear in the slice, which host#1's join lines satisfy on their own, so--unfreeze-after 18and25never ran.Dated: 6.87.0 / 6.88.0 rewrote the close that produced this
Our control leg (
DEV-E6-446-absorbed.log,--unfreeze-after 4) printed the positive form you named on #520 —missed its cadence, thennever closed, no ENDLIST between them (5615113287); 0 item swaps as well:That is the string
VideoSegmentProvider.swift:1828-1835builds at 6.81.0, verbatim. At 7.1.0 the emit is:1891-1902and reports the episode's widest silence and lowest depth instead — "… the consumer never fell below Ns of playable depth against the Ns a close would have needed); no ENDLIST and no item swap …". The reading survives; the grep does not.And the u12 recipe would now be absorbed. For our fixture (TARGETDURATION 2, cadence 1.11 s), read out of the 7.1.0 source, unmeasured: patience
1.5 × 2= 3.0 s (:104); latemin(max(3.0, 1.11 × 1.25), 32.0)= 3.0 s (:114,:195-200); ceilingmax(3.0, 35 − 3.0)= 32.0 s (:169-174,HLSSegmentProducer.swift:581); reserve1.0 × 2= 2.0 s (:134-136); close whenlate && depth ≤ 2.0orsilence > 32.0(:248-250,:1907-1909,:1833-1836). Our silence peaked at 13.43 s and the close printed 18.3 s of runway: neither 7.1.0 bound is met — no ENDLIST, no swap, no rejoin to read AE#440 off.:1934-1939), so ours fell 4.7 s in 3.04 s of silence while AVPlayer kept fetching (23.0 s at quiet 4.03 s → 18.3 s at quiet 7.07 s). At 7.1.0depth = runway + buffered(:1841), so fetching moves seconds between the terms instead of spending them: depth falls at playout rate, that 18.3 s is a floor on it, and the 2.0 s reserve arrives around 23.4 s of total silence, later by whatever buffer was in hand. A retest wants a freeze past the mid-20s — 12 s and 18 s short, 25 s marginal. Our arm is in scope for the depth half: this tune runs onNativeAVPlayerHost(started (route loopback, 0.4s)), and at 7.1.0 the mirror is written only underplaybackBackend == .native(LiveTelemetrySampler.swift:296,:324).A 5½-minute edge hold (
DEV-E6-hln-edge-hold.log, real HLN, 6.81.0)#1 load url=12:32:54.162,started (route loopback, 4.7s)12:32:58.353, log to 12:38:31.177. ENDLIST 0 / swaps 0 /-128880 /missed its cadence0 /never closed0. One#524, 17 ms after the load:Byte-identical at 7.1.0 (
AetherEngine+Live.swift:502→:513). The u12 leg's four#104 live edge verdictlines re-spell but do not change hands: 6.86.0 madeisAtEdgestored state settled bysettleEdgeVerdict(tracking:)withedgeExitSlack = 2.0(7.1.0LiveWindow.swift:148,:151,:158-161, against 6.81.0's computed:97) and addedtrackingCadence=andexitAbove=to the emit (:473,:475). The slack widens only the EXIT, which ourBEHINDreadings (13.02 s, 23.06 s) clear either way;:175-176still putstargetDurationSecondsahead of the new cadence term, sotolerance=4.00sholds andbehind=3.95sstill lands 0.05 s inside it — all four verdicts stand. Arithmetic on our readings against the 7.1.0 source, unmeasured.The
lead=reading you offered on #446 (DEV-E6-cold-tune.log, HLN)4505 ticks at 90 kHz = 0.0501 s — your explanation holds for our source. (The rejoin leg's own join reads 4504.)
What did not run
The 6.80.0 35 s no-cut join abandon is unreachable on our live arm by construction (a code read of our own side): no start patience on our live sites, a 20 s first-tune budget, an 8/8/12 reconnect ladder — our terminal fires first. The other half of your #520 ask is unmeasured here: a flat count of Atmos relocks wants a channel that starves the same way and carries EAC3+JOC; neither of ours does —
source probe:readsaudio=[1:aac,2:aac]on the fixture andaudio=[1:aac]on HLN.Open on our side: nothing on #440.
Merge fix/440-carried-playing: a playing status carried onto a swappe…
superuser404notfound commentedon Sep 17, 2026
Not intended. The silent spend is right for the case it was written for and wrong for this one, and the read in the report is exact: the
.playingat.682is not this item's rate rolling, it is the reused player's status carried onto an item that is 1 ms old and cannot play anything yet. Treating it as a roll spent the one-shot before the rejoin's ownToMinimizeStallshold existed, so the hold at.697met the spent guard and nothing downstream of it ran, including the round 5 abandon line.Fixed on
maininc0459eb6(mergeb3590e3e), not in a release yet.An item cannot roll before it is ready, so readiness is what separates the carry from the roll:
A
.playingedge now spends the one-shot only whenplayerItem.status == .readyToPlay. The carried edge leaves it armed, so the hold that follows reaches the decision. The reason the spend exists stays intact: the readyToPlay sink asks again while the status mirror still reads.playing, so a carry that never changes status on its way to motion is still spent before any later hold could be a mid-stream rebuffer. A first join is unaffected, becauseunloadCurrentItempauses and drops the item on a non-swap load, so there is no carry to read. Both cases are pinned inIssue440LiveJoinRollTests, full suite green on both runners, tvOS build clean.One correction to my own expectation from 5461790856, which the fix makes visible rather than resolves. I wrote that a rejoin whose hold stands should read as a decision "with a cushion that is genuinely there, since the runway survives the swap". The runway survives in the window, not in the item. The lever reads the fresh item's
loadedTimeRanges, and 15 ms after the load that item has placed nothing, so the likely shape on your u12 seam is now a line where there was none, but a refusal (ahead 0.00s, empty=true) or, for a 219 ms hold, the abandon line, not a cut. That is the lever behaving as designed on a swap that re-fetches, and I would rather say it now than have the retest read as a second defect.On the retest itself, agreed that the u12 recipe no longer reaches a swap from 7.1.x on, since the close no longer fires at 13.43 s of silence against that depth. I have not re-derived your mid-20s figure, so treat that as your arithmetic, not a confirmation.
Thanks for the
lead=4505reading. That settles the 0.05 s question for your stack.This stays open for the retest.
superuser404notfound commentedon Sep 17, 2026
Released in 7.1.2 (
77cab2b7), which carriesc0459eb6. Sodalite and AetherPlayer are both pinned to it now. Still open for the retest.fix(native): a playing status carried onto a swapped item does not sp…
cmcpherson274 commentedon Sep 18, 2026
The retest passes. Office2 (Apple TV 4K gen 3, tvOS 26.6 / 23L773), app at 7.1.3 (
13a86172), installed 15:22:56 EDT on 2026-09-17; same live arm as before — a raw MPEG-TS spool through a custom IOReader,liveJoinStartsImmediatelyset on every live load. One correction to our own evidence first: the ch-999 fixture'saetherctlbinary is built from 7.1.0 (2119d9f9), not from our app's pin, so the stimulus check is empirical rather than by version — the widest producer gap on the u12 rung is 13.42 s here against 13.43 s at 6.81.0, the sameseg-93→seg-94pair at the same media start times (91.896 s → 92.897 s).One fresh process per rung, fixture restarted per rung with
aetherctl live --serve-only --seed hln-seed-2a.ts --realtime --origin-lead 2 --preroll 30 --freeze-after 60 --unfreeze-after <U>(--origin-lead 2and--preroll 30are your own defaults —main.swift:522and:513— passed explicitly so the fixture log records them).AE#440#1/#2-12888stats finaldropped 0 stalls 0dropped 0 stalls 1dropped 1 stalls 3dropped 0 stalls 0stalls +1)Silence is the widest gap between⚠️ u32 joined 3.0 s deeper than its siblings —
live seg-N finalizedstamps; it runs 0.8–2.9 s over the nominal freeze on every rung, so the measured figure is the one quoted.live clock baseline 7.3sagainst 4.3 s — and its consumer reads69 of 90at the cadence miss where the other three read70 of 94; the four rungs are not one stimulus varying only in--unfreeze-after.The u32 seam (
DEV-E7-440-rejoin-u32.log, excerpted)15 lines of the 150 in
:429–:578; log prefix trimmed, the[NativeAVPlayerHost]tag dropped from the#Nlines, the loopback URL and the ENDLIST line's closing clause elided with…, every quoted line otherwise verbatim. Between:541and:578the block carries everytimeControlStatusline and the only transportrate=line.Load → the carried
.playing1 ms; carry → theToMinimizeStallshold 30 ms; hold → the refusal 3 ms; load →item.status=readyToPlay191 ms. The carry is exactly your description — the reused player's status reaching an item one millisecond old — and it arrives twice on both pins, either side ofrate=1.0(here.711/.712; at 6.81.0.682/.683). Here both land before the item is ready, so neither spends the one-shot: the refusal at.744could only fire pastguard … !liveJoinImmediateStartSpent(:1238). We read the spend as landing at.901, where the item becomes ready and the next.playingedge arrives in the same millisecond — by the readyToPlay sink's re-ask (NativeAVPlayerHost.swift:621) or by that edge itself, which the log cannot separate (a code read; the spend is not logged, and none of the fourAE#440emitters can fire twice in a load — three carry a one-per-load flag, and the cut spends the one-shot at:1307, before its own emit at:1313)..994is the round-3 hold witness's report, not a second decision. The refusal's own tail states the fact the new gate reads: the item's own status has not left unknown. That clause is not new — it builds at 6.81.0 too (:1568there,:1585at 7.1.3) — it simply could not be reached at this seam.The shape is the one you predicted rather than a cut: a refusal with
ahead 0.00s, empty=true, then the hold witness's own account 250 ms later — the first of the two shapes you named. The abandon line (the hold was over … no decision was taken on it) is 0 across all four rungs: the buffer reading came back 3 ms into the hold, so the refusal branch answered instead. The runway did survive in the window — the playlist the swapped-in item loaded lists61 segment(s) listed from seg64(:551) and the placement audit readsitem clock 28.77s in item range 0.00..55.02s … -> session 99.11s(:577), the place it held — and none of it was in the item at.744.The same seam at 6.81.0 (
DEV-E6-440-rejoin-u12.log, the leg posted on the 16th; excerpted, URL elided)grep -c '#2 AE#440'= 0 for that whole slice, which is what makes the excerpt fair. Of the 34 lines from:640to:673, the status and rate edges are a secondtimeControlStatus=playingat.683(:644), threerate=lines (1.0:643, 0.0:645, 1.0:648), apausededge, the#65spurious-pause rung and aWhileEvaluatingBufferingRatewait; the rest is the swapped-in item's own setup and the playlist and segment traffic behind it. Not one of them is anAE#440line. The hold arrived 15 ms after the carried edge and produced nothing.playingSpendsLiveJoinOneShotappears nowhere at 7.1.0 or 7.1.1, and on two lines ofNativeAVPlayerHost.swiftat 7.1.2 and 7.1.3 (:1240call,:1330definition) plus two inIssue440LiveJoinRollTests; the gate those two#2lines rest on first exists at 7.1.2 (c0459eb6, mergeb3590e3e, released as77cab2b7), it is absent at 7.1.0 and 7.1.1, and at 6.81.0 the same seam measured 0. That they are the swap's own item rather than a later load: the counter behindsessionIDis type-level (:249, assigned per load at:435-436) and the whole u32 slice holds exactly twoNativeAVPlayerHost] #N load url=lines,:111(#1) and:541(#2), withlive source reset/in-place recovery/engine demoteall 0.One shape difference worth naming, not a defect: at 7.1.3 the
#65ladder's first two rungs ran before the swap (15:34:48.687spurious pause,15:34:51.402nudge seek) and the post-swap item came up clean atrate=1.0— its third,nudge did not revive the consumer; reloading item, is the swap itself on both pins; at 6.81.0 the spurious-pause rung ran after the swap, on#2.Our mid-20s figure, against the measured close
We wrote that the 2.0 s reserve would arrive "around 23.4 s of total silence" and that 25 s was marginal. You said you had not re-derived it, and it was ours to check; measured, it was about six seconds early. The close landed at 29.23 s of quiet (
15:34:19.173last finalize →15:34:48.406, matching the line's ownquiet 29.23s), and the 25 s rung absorbed with 5.8 s of depth still in hand. The mechanism the figure rested on does hold: depth falls at playout rate. Between each rung's cadence-miss line and its verdict — u12 6.1 s of depth over 6.06 s of quiet, u25 19.5 s over 20.16 s, u32 22.8 s over 25.19 s — within 0.7 s of playout rate on u12 and u25, and 2.4 s slow on u32, whose window carries two counted stalls (stats Δ10s … stalls +2, 15:34:49.082); a stalled consumer spends no depth. That last step is our inference, not something the log states.One arithmetic note in case it saves you a re-derivation: an absorbed rung's
at the widestfigure is not the producer's gap, because it is read at the consumer's last playlist poll before the source came back, and those polls are the-12888stamps. u12's 10.09 s lands 28 ms from its third-12888, u25's 24.20 s 23 ms from its sixth, the control's 4.03 s 35 ms from its only one. The polls run 3.03 s apart and back off (u32: 3.03, 3.03, 4.04, 5.04, 5.02), and u32's close lands 5.01 s after its last-12888— the poll whose answer carried the ENDLIST. Stamp arithmetic on our side, not a line the engine prints.What u12 cost instead, and what did not run
At 7.1.3 the 13.4 s freeze that closed the window at 6.81.0 is absorbed: no ENDLIST, no second
NativeAVPlayerHostload, no#65ladder, no stall and no dropped frame, the same#1host playing through. The whole cost is three-12888errorLog entries (Playlist File unchanged for longer than 1.5 * target duration) 3.04 s apart against 6.81.0's one — records, not failures;item.status=failedis 0. On the viewer's side that is a swap and a counted stall bought back.u45 never ran, by design. The ladder was 12 / 25 / 32 / 45 and stopped on its first positive; the stop condition is the one our last post's limit called for — an
AE#440 live joinline below the swap carrying the generation the swap's own load came up under, where E-6's condition (anAE#440line anywhere plus a swap anywhere) took the first join's own two lines for itsAE#440half and cost us the middle rungs. u45 was written to crossliveSourceStarvationTimeoutSeconds(35 s,HLSSegmentProducer.swift:581) and reach#446 … the source read is already given up(AetherEngine.swift:2604), which this bench has never produced; u32's 34.86 s of producer silence came within 0.2 s of that number on our own measure and did not trip it (given up= 0 on all four rungs). We can run u45 on request — otherwise it stays unmeasured here.Open on our side: nothing. The retest passes; #440 can be closed as far as we are concerned.
superuser404notfound commentedon Sep 18, 2026
Thank you for taking this all the way to a seam that actually produced the shape, including the rung ladder that had to be re-cut because the old stop condition matched the first join's own lines. Four rungs, one of them the positive, and an explicit note that they are not one stimulus varying in a single parameter, is a better retest than the one I asked for.
Closing this. The reading matches mine at 7.1.3 and at today's tip:
playingSpendsLiveJoinOneShotis called atNativeAVPlayerHost.swift:1240and defined at:1330, first present in 7.1.2 (c0459eb6), absent at 7.1.0 and 7.1.1, which is why the same seam measured 0 at 6.81.0.liveJoinImmediateStartSpentat:1307before its own emit. All of them are reset inload(:426-434), which a swap runs through with the retained contract, so#2gets its own set..901is not separable from the log, and both candidates spend it: the readyToPlay sink re-asks while the mirror still reads.playing(:621), and a.playingedge arriving at or after readiness spends it directly. Either way the one-shot is gone before any later hold could be a mid-stream rebuffer, which is the property the spend exists for.One thing the measurement makes structural rather than hypothetical, and I would rather write it down here than have it rediscovered. On a swap the decision now runs, but it runs before the item can answer: 3 ms into the hold against 191 ms to
readyToPlay, and the refusal's own tail says so (the item's own status has not left unknown). So on a rejoin the lever will refuse by construction, not because the cushion was judged thin. That is harmless at the holds measured here, 219 ms at 6.81.0 and about 190 ms at 7.1.3, since there is nothing in them worth cutting. It stops being harmless if a rejoin hold ever stands past readiness while the forward buffer crosses the 1.5 s floor, because the bound is read only at the hold's edges and nothing looks again. That is the same shape round 3 named as the trigger for making the witness decide instead of report, and a swap is now the likeliest way to produce it. The witness already samples it at 250 ms out to 5 s, so the evidence would arrive as a witness line saying the floor was reached while the hold still stood. None of the four rungs shows one.Taking the correction on the mid-20s figure as given, with the mechanism intact: 29.23 s of quiet at the close, 5.8 s of depth still in hand at 25 s. The note about an absorbed rung's widest figure being read at the consumer's last playlist poll is worth having on the record, since those polls are the
-12888stamps and the arithmetic reads like the producer's gap otherwise.u45 is not needed here. 34.86 s of producer silence against a 35 s starvation timeout that did not trip is a coherent reading on its own, and a rung written to cross it would be measuring the timeout rather than this issue.
The
#524line 17 ms after the load belongs to that thread and stays open there: at that moment nothing has been fetched and the edge reads 0.00 s, so it is a non-measurement in the shape of a measurement, the same class of defect as the witness printing its initial value in round 5. The flag behind it does rearm, at the branch that returns when the runway is back above the floor, so a session that recovers and thins again speaks twice.diag(live): a thin runway is a decay, not a mount (superuser404notfou…