Skip to content

Stats can name Dolby Vision when the output is parked in 4K HDR: the capability table answers what the panel CAN present, not what it is presenting #535

Closed as not planned

Description

@superuser404notfound

Split out of #459, which is closed: the defect that issue was filed on (HDR and Dolby Vision titles labelled as converted to SDR on a box whose output is locked to HDR) is fixed in 6.82.0 and confirmed on two boxes. This is the residual classicjazz found while running the full matrix on build 30, and it is the opposite direction: a label that claims MORE than the HDMI output carries.

The case

Apple TV 4K, output parked in 4K HDR (not 4K Dolby Vision), Match Dynamic Range off, Match Frame Rate on, source is Dolby Vision Profile 7, panel is a DV-capable LG OLED.

The TV reports HDR10 for the title. Stats read Dolby Vision P7, with no arrow. By the label's own rule the honest value is Dolby Vision P7 -> HDR10.

Why it happens

The Dolby Vision term in the capability clamp is AVPlayer.availableHDRModes, which answers what the DISPLAY can present. It does not follow the box's current output-format setting, exactly as eligibleForHDRPlayback does not: the pair of force-quit readouts on #459 read byte-identical with the output locked to 4K Dolby Vision and to 4K SDR, two configurations whose correct answers are opposite.

effectiveVideoFormat therefore resolves .dolbyVision, and the acceptance readout added in 6.82.0 cannot supply the missing half. Acceptance proves the panel presents HDR, never which HDR mode: with the output parked in 4K HDR the Apple TV takes the Dolby Vision master and converts it, so there is no -11868 refusal to read. Compare a panel with no Dolby Vision in its EDID at all (Samsung HDR10+, DrHurt): the table names no .dolbyVision, the clamp resolves .hdr10, and the arrow appears correctly.

So the row names the best format the chain can carry, and in this one configuration that is one step above what leaves the HDMI port.

Why the obvious narrowing is not the fix

Publishing the base layer whenever the HDR proof came only from acceptance would relabel every Dolby Vision title on a box parked in 4K Dolby Vision with Match Dynamic Range off. That is the configuration both reporters on #459 actually run, and most likely the common one. It trades a rare wrong arrow for a frequent one.

Any real fix needs the value no public API exposes: the output mode the box is currently in. isDisplayCriteriaMatchingEnabled is a single combined flag covering Match Dynamic Range and Match Frame Rate, so it cannot even tell the two configurations apart, and currentEDRHeadroom is measured silent on a parked box (#459, three boxes, three OS versions).

What would confirm the mechanism

One diagnostic line, taken with the output locked to 4K HDR on a DV-capable panel:

[HLSVideoEngine] serving on ... (dvModeAvailable=... effectiveDvMode=... useMaster=...)

dvModeAvailable=true there is the table answering capability rather than presentation, which is what this issue assumes.

Status

Known limitation rather than work in flight. Tightening one thing this line overstated: no Feedback Assistant number is recorded here or anywhere in the repo, and nobody has said on #459 that a report went in, so the section below is data ready for one rather than an anchor to a report that exists. The route was discussed there as one to take from a box that reproduces it, which is not this one. What otherwise keeps this open is the measurement nobody has taken: Match Dynamic Range off with the output parked in 4K HDR on a DV-capable panel, which needs a by-hand Settings flip on physical hardware. Nothing here affects the picture: the Apple TV converts, and the title plays in the mode the output is parked in either way.

Activity

  1. added
    bug
    on Sep 15, 2026
  2. cmcpherson274 commented on Sep 16, 2026

    @cmcpherson274

    Data for the Feedback Assistant report, not a second reading of the defect above — and first, what we cannot give you.

    Your diagnostic line wants that serving on … line taken with the output locked to 4K HDR on a DV-capable panel, in a case whose other half is Match Dynamic Range off. Match Dynamic Range is on here — matching=on on 88 of our 91 distinct panel readouts is your combined flag, and the Dynamic Range half of it shows in the panel engaging the engine's HDR criteria — so the output follows the source and there is nothing for the table to diverge from. Our closest leg is a P8.4 title, served as master.m3u8 with dvModeAvailable=true: the engine wrote SET: format=dolbyVision codec=dvh1 rate=default(24) extensions=HDR and the panel took it — panel proven to engage HDR (headroom 1.20), then switch settled via modeSwitchEnd (… panel 24.001Hz, the requested rate). That is the configuration your issue contrasts with, not the one it is about. Turning Match Dynamic Range off is a by-hand tvOS Settings flip on a shared bench box that no driver of ours can script; we have not run it.

    What we do hold is the same property reading two different answers, twice, on one Apple TV.

    Bench: Apple TV 4K gen 3, tvOS 26.6 (23L773), a DV-capable panel, AetherEngine 6.81.0 (c7e7adb5), measured 2026-09-12. Upstream is 7.1.0 today; every anchor below is opened at both tags.

    Corpus, recounted for this comment: 58 retained device slices from that bench session, carrying 103 [DisplayCapabilities] observed: lines. 102 read hdr=true hdr10=true hlg=false dv=true; one reads all-false. The slices overlap (our harness keeps re-cuts), so deduplicated that is 75 distinct readings against the one. matching= reads on 122 / off 4 raw, 88 / 3 deduplicated — the three off readings are the two episodes below.

    Episode A — 12:51, across a process boundary

    The outgoing process, mid-teardown:

    09-12 12:51:13.752  [session] app → background
    09-12 12:51:16.283  audio route died — in-place Aether reload at position (budget-free)
    09-12 12:51:16.290  [DisplayCapabilities] observed: hdr=true hdr10=true hlg=false dv=true
    09-12 12:51:16.396  [DisplayCriteria] panel readout before apply: currentEDR=1.00 potentialEDR=1.00 headroomLimit=unspecified switching=no matching=off hdrEligible=no provenHDR=no
    

    Same process, 106 ms apart, both sites reading the identical expression — AVPlayer.eligibleForHDRPlayback at AetherEngine.swift:1325, feeding supportsHDR: at :1328, composed once per load at :3516 and printed at :3523; and the same expression again at Display/DisplayCriteriaController.swift:1185. At 7.1.0 the read, the compose and the emit are byte-identical (:1352, :3659, :3666), and so is the criteria readout (:1209). The one line that moved is :1328 — the table is assembled elsewhere now, below.

    The next process — a fresh launch whose first log line is 10.4 s after that background, tuning at .309 — read all-false. Our own call to AVPlayer.availableHDRModes had come back EMPTY 85 ms earlier, from a second call site in our process rather than a second source (one of its 69 readings in the corpus, and its only false one):

    09-12 12:51:24.280  display DV capability: false (G-HDR7 — drives the DOVI advertisement); display HDR modes present: false (drives the P2 HDR-remux reroute)
    09-12 12:51:24.365  [DisplayCapabilities] observed: hdr=false hdr10=false hlg=false dv=false
    09-12 12:51:24.418  [AetherEngine] load url=… source-format=dolbyVision effective-format=sdr rate=59.940
    09-12 12:51:24.421  [DisplayCriteria] panel readout before apply: … headroomLimit=unspecified switching=no matching=off hdrEligible=no provenHDR=no
    09-12 12:51:24.425  [HLSVideoEngine] serving on …/media.m3u8 (dvModeAvailable=false effectiveDvMode=false panelIsHDR=false displaySupportsHDR=false matchContent=true sourceIsHDR=true useMaster=false videoRange=pq dvVariant=profile5 audioLang=none)
    

    A Profile 5 title clamped to effective-format=sdr and served media-direct, master withheld, on a box that reads dv=true on the other 102 readings. The item itself still reported #1 item videoFormat=dolbyVision subType='dvh1' transfer=SMPTE_ST_2084_PQ — P5 carries its DV in-band. What mode the panel was actually in is unmeasured; the frame we captured cannot say.

    Episode B — four hours earlier, one process, an HDR10+ title

    One launch, no second process, and the flip falls either side of the background transition:

    09-12 08:49:54.184  [DisplayCapabilities] observed: hdr=true hdr10=true hlg=false dv=true
    09-12 08:49:54.235  [DisplayCriteria] panel readout before apply: … headroomLimit=unspecified switching=no matching=on hdrEligible=yes provenHDR=no
    09-12 08:53:24.129  [session] app → background
    09-12 08:53:26.526  audio route died — in-place Aether reload at position (budget-free)
    09-12 08:53:26.539  [DisplayCapabilities] observed: hdr=true hdr10=true hlg=false dv=true
    09-12 08:53:26.616  [DisplayCriteria] panel readout before apply: … headroomLimit=unspecified switching=no matching=off hdrEligible=no provenHDR=yes
    

    The first readout is 0.4 s after launch, the last 3 m 32 s later; the closing pair is 77 ms apart, and that readout contradicts itself on its own line — hdrEligible=no provenHDR=yes. Both loads resolve source-format=hdr10 effective-format=hdr10.

    What does and does not explain it

    headroomLimit reads unspecified on all 126 readouts in the corpus (91 distinct) — never active, never inactive — so the term you print for precisely this class says nothing here. Your own doc block, quoting the header, names an app's windows being in the background as a case where HDR headroom use is disabled, and an ACTIVE limit as what caps the headroom properties (Display/DisplayCriteriaController.swift:641-644 at 6.81.0; the same text at :669-672 at 7.1.0).

    7.1.0 moves it neither way. DisplayCapabilities.observedPerModeTable (PlayerState.swift:295-298) floors HDR10 and HLG on eligibility, so on an all-false reading it computes false || false twice and the table is byte-identical to 6.81.0's; and supportsHDR: hdrEligible was already the rule at 6.81.0, so an || floor can only add.

    The bracket the two same-process contradictions share: each sits inside an audio-route-death reload that opened 2.53 s (A) and 2.40 s (B) after [session] app → background. Episode B is the sharper half — matching=on hdrEligible=yes at its first load, matching=off hdrEligible=no after it backgrounded, one process, one expression. Two candidates, neither established: (a) a backgrounded or not-yet-frontmost app being answered for its own UI state rather than for the display; (b) an HDMI re-handshake after the previous session's teardown-time criteria reset.

    The corpus's third route-death reload (11:58:28.878) is the nearest thing to a control, and not a clean one. Its process launched 9.8 s after the previous leg's app → background — Episode A's shape — and read hdr=true at both call sites (.796 ours, .896 yours); the reload 4.3 s later read hdr=true again, with no backgrounding inside that process. So the launch shape alone does not produce the all-false reading. But that leg ran under our own JF_AETHER_CRITERIA=matcher rig — the host asserts panelIsInHDRMode, you answer panelReadout=suppressed, the slice carries no hdrEligible term at all — so criteria ownership differs from both episodes and we do not read it as a control.

    What we did not read. We emit app → background (50 distinct lines) and no foreground or active counterpart anywhere in the corpus, so neither episode can be placed against our own lifecycle at the instant; and we never read the panel's actual mode.

    Not a reproduction. One box, two episodes, one day. A leg is queued for our next bump: a deep-link tune 2–15 s after a backgrounded teardown, the capability line read against app lifecycle lines we have to add first, repeated enough to say whether it recurs. The real-world analogue is live in our Release build — a Top Shelf tevemate://play/<id> deep link during a cold launch, where an HDR title would start media-direct. We will report either way.

  3. superuser404notfound commented on Sep 17, 2026

    @superuser404notfound
    OwnerAuthor

    Thank you, this is useful well beyond what the issue asked for. Every anchor checks out at both tags: c7e7adb5 is 6.81.0, and the read, compose and emit sit at :1325/:3516/:3523 there and :1352/:3659/:3666 at 7.1.0, with DisplayCriteriaController.swift:1185 → :1209. Understood on Match Dynamic Range: with it on there is no parked output to diverge from, and your P8.4 master leg is the contrasting case. #535 stays as it was, waiting on that one line.

    On the two episodes, one term in your own readouts narrows the candidates more than the eligibility flip does: matching=off.

    isDisplayCriteriaMatchingEnabled answers a tvOS Settings preference. An HDMI re-handshake has no way to change it, and nobody changed it by hand. Yet across your 91 distinct readouts it reads off only 3 times, and all 3 sit in your two episodes, each next to hdrEligible=no: Episode A's outgoing readout, the fresh process in Episode A, and Episode B after the background transition. When a user preference and a display property flip together, the display didn't change. What changed is whether the process is allowed to ask. That points at candidate (a), the app being answered for its own non-frontmost state, and away from (b). It doesn't settle it: the fresh process in Episode A still has no lifecycle line.

    Two more details from the same lines:

    • In both episodes the flip lands mid-load, not between loads. The engine's [DisplayCapabilities] observed: line read hdr=true dv=true (A .290, B .539), and the criteria readout of the same load read hdrEligible=no matching=off 106 ms and 77 ms later. Both sit about 2.4 to 2.5 s after app → background. So the revocation lags the transition by a couple of seconds and doesn't happen at the notification. A read taken right at didEnterBackground would probably still see the old answers.
    • Episode B never reached routing. Its load composed from the true reading and resolved hdr10 → hdr10. Only Episode A's fresh process composed from an all-false table, which is how a Profile 5 title ended up effective-format=sdr and media-direct.

    The engine side of this, stated plainly: on tvOS, a video session that exists at didEnterBackground (no PiP) is torn down, and the host is expected to reload on return. A load() issued after that, while still backgrounded, isn't caught by that policy. It composes its route and applies criteria from whatever the platform answers in that state, and nothing re-reads the table at didBecomeActive. Episode B's route-death reload is exactly that shape. I'm not changing behaviour on one box and one day. If your queued leg shows the all-false reading recurring on a load issued before the app is active, that gap is where the fix goes, in the engine and not in a host.

    For that leg, the term that decides it is UIApplication.shared.applicationState (or the scene's activationState) read on the same run loop turn as each capability read, not just lifecycle notifications around it. A notification can only tell you a transition happened. It can't tell you whether a read 30 ms after launch came before activation. A control with the app already frontmost when the deep link arrives would separate "launched by a deep link" from "read before active".

  4. cmcpherson274 commented on Sep 18, 2026

    @cmcpherson274

    The line is in. And before the leg meant to exercise it ran, the transient recurred on its own.

    Bench: Apple TV 4K gen 3, tvOS 26.6 (23L773), a DV-capable panel; pin 7.1.3 (13a86172), measured 2026-09-17. Corpus: 57 retained device slices at 7.1.3 — 88 [DisplayCapabilities] observed: lines, 87 panel readout before apply lines (104 readouts of both kinds), 58 app → background, 2 audio route died — plus 5 slices from a 6.81.0 control build of our app, run on the same box the same afternoon (dev-e7-control.stdout.log:3, revision": "c7e7adb5). Unlike the E-6 corpus, these slices do not overlap: for all four line types above the raw and deduplicated counts are equal.

    1. The lifecycle line exists. App/RootView.swift:203 emits app → active (fresh process) when scenePhase goes .active with no recorded background transition. 56 of the 57 slices at 7.1.3 carry exactly one, none carries two, and the 57th is 0 bytes — our harness lost that launch. The five 6.81.0 control slices carry none. Examples: DEV-E7-440-rejoin-u12.log:340 at 15:27:27.898, DEV-E7-sdrvod-attempt.log:148 at 14:33:40.714.

    Its limit is the one you named. In the slice below, that process's first capability read is ours at 14:54:19.755 (App/DisplayModeMatcher.swift:315, off the AVPlayer.availableHDRModes query at :307), your [DisplayCapabilities] observed: follows 90 ms later, and the lifecycle line lands at 14:54:20.645 — 890 ms after the first read. A notification cannot bracket a read that early.

    2. The same-turn state read is not wired. grep -rn 'applicationState\|activationState' App/ returns one hit, App/DisplayModeMatcher.swift:93, a scene lookup for AVDisplayManager — not a read beside our own capability read at App/DisplayModeMatcher.swift:307. It is queued with the leg (a deep-link tune 2–15 s after a backgrounded teardown, repeated, plus the already-frontmost control). None of that ran this session.

    3. It recurred at 7.1.3, incidentally rather than by design. One process, in DEV-E7-audiosync-reset-a.prev-145735.log, during an audio-sync leg. The app backgrounded at 14:54:35.095 — the log does not say what backgrounded it, and our next leg did not launch until 14:55:20 (DEV-E7-audiosync-reset-b.prev-145835.meta) — and the route died 696 ms later (App/AetherPlayerEngine.swift:1787 guards oldDeviceUnavailable, :1799 emits the line):

    09-17 14:54:35.095  [session] app → background
    09-17 14:54:35.791  audio route died — in-place Aether reload at position (budget-free)
    09-17 14:54:35.793  [DisplayCapabilities] observed: hdr=false hdr10=false hlg=false dv=false
    09-17 14:54:35.814  [DisplayCriteria] panel readout before apply: … headroomLimit=unspecified switching=no matching=off hdrEligible=no provenHDR=no
    09-17 14:54:35.814  [DisplayCriteria] skipped: Match Content disabled (both Dynamic Range AND Frame Rate off)
    

    Those are :159, :169, :175, :190, :191. One engines: line in the file (:3), so everything from :3 on is one process; 15.9 s before that all-false read the same process had read hdr=true hdr10=true hlg=true dv=true (:32) and matching=on hdrEligible=yes (:50), and served a master (:75). A second reload at 14:54:37.910, our own audio-delay correction, read all-false again (:280, :298). Deltas from app → background: +696 ms, +698 ms, +719 ms. The two episodes were +2.53 s and +2.40 s, so the lag is not fixed at a couple of seconds, and here the answers were already revoked at ~0.7 s.

    And it came back. The same process logged app → active (backgrounded 37s) at 14:55:12.569 — DEV-E7-audiosync-reset-b.prev-145835.log:3; that slice's first 146 lines are still this process, the next engines: is :147, and the (backgrounded 37s) form renders only when a background transition was recorded inside the same process (App/RootView.swift:193-195). 8 ms after it, the panel readout before reset reads matching=on hdrEligible=yes (:6); 133 ms after it, hdr=true hdr10=true hlg=true dv=true (:29). One process, one expression, revoked while backgrounded and reading true again 133 ms after the app came back — both directions in one process, which the E-6 episodes could not give. When it was restored is unread: the 34.8 s between the last false read and that one carries no capability read at all.

    The control the E-6 corpus lacked. The other route death at 7.1.3 — DEV-E7-dv-p5.log:192, 15:48:21.634 — sits 28.7 s after its own process's app → active (fresh process) (:68), with no background transition inside that process before it (the slice opens with the previous process's background at :1; this process begins at :14). It reads hdr=true hdr10=true hlg=true dv=true (:198) and matching=on hdrEligible=yes provenHDR=yes (:211). And the sweep behind it: across the 58 app → background lines in the 57 slices, exactly one process took any [DisplayCapabilities] observed: read while backgrounded — no app → active and no engines: in between — and it took two, both all-false, at +0.698 s and +2.82 s after the transition. The other 86 split three ways against our own lifecycle lines, and the largest part is unread: 38 follow an app → active line in the same slice; the other 48 are taken 0.66–0.87 s before their own process's app → active (fresh process) (median 0.795 s, 0 exceptions) — the window your applicationState term is for, and one a lifecycle line cannot resolve. All 86 read hdr=true hdr10=true hlg=true dv=true. Consistent with candidate (a); one box, and not the reproduction.

    What the revoked flag is taken to mean. Every matching=off readout we hold — 2 at 7.1.3, 4 raw / 3 distinct in the 09-12 corpus, none in the five 6.81.0 control slices — is followed on the same millisecond or the next by [DisplayCriteria] skipped: Match Content disabled (both Dynamic Range AND Frame Rate off). The revoked read is consumed as the user's setting.

    4. There are two capability reads on a native load, and twice they disagreed. On "Episode B never reached routing": the table you print is composed at AetherEngine.swift:3516 (6.81.0), :3659 (7.1.0), :3669 (7.1.3) — and AetherEngine+Loading.swift:739, that same line at all three tags, re-reads Self.displayCapabilities for the HLS session it constructs inside loadNative (:674 at 7.1.3), printing only its derived dvModeAvailable= and displaySupportsHDR=. A load that never reaches the HLS server takes only the first read — §6's three software-route loads. Two E-6 loads disagree across that pair. The first is Episode B: 08:53:26.539 observed: … dv=true → 08:53:26.742 serving on …/media.m3u8 (dvModeAvailable=false … displaySupportsHDR=false … sourceIsHDR=true useMaster=false videoRange=pq …), 203 ms apart (DEV-E6-rewound-hold.prev-121530.log:2649/:2715) — so that HDR10+ title did lose its master. The second is 11:58:28.938 → 11:58:29.477, 539 ms apart (DEV-E6-hdr-after-matcher.log:211/:270) — the matcher-rig leg, whose criteria ownership differs and which we do not read as a control; it kept its master (useMaster=true), and nothing above depends on it. On tvOS displaySupportsHDR is inert for that decision — builtInPanelEngagesOnDemand is false, HLSVideoEngine.swift:1997-2003 — so the withheld master follows panelIsHDR=false; what the second read does change on tvOS is dvModeAvailable (AetherEngine+Loading.swift:744), false there on a box reading dv=true on 102 of 103 lines that day.

    5. AE#459's HLG floor, on one panel. 86 of the 88 readings at 7.1.3 are hlg=true; the other two are the all-false pair. 14:08:35.023 through 15:51:23.743. The five 6.81.0 control slices, same panel, straddled in time by those, read hlg=false 6 of 6, 14:44:23.296 to 14:49:02.262. observedPerModeTable (PlayerState.swift:291-299, byte-identical at 7.1.0 and 7.1.3) against 6.81.0's AetherEngine.swift:1327-1332. Nothing we ran turns on it, and your own doc block says why: PlayerState.swift:287-290 records that supportsHLG is consulted only for a DV source with an HLG base layer — Profile 8.4 — and that a plain HLG title was never clamped by any of it. Recorded as a reading, not a report.

    6. The E-6 gate and 6.82.0's attempt at 7.1.3. panelIsInHDRMode not asserted … 59 times across the 7.1.3 slices (plus 6 in the 6.81.0 controls — it is our gate, not the engine's, so it reads the same at both pins); the only three assertions are our own assert / matcher rig legs. The unproven-panel attempt does fire on ordinary SDR VOD here — 09-17 14:33:39.956 [DisplayCriteria] panel unproven but HDR-eligible: serving the master and letting AVPlayer answer (refusal costs one in-place media fallback) (DEV-E7-sdrvod-attempt.log:52), 54 lines, none of them in the 6.81.0 control slices. The route is unchanged on all 54, by three paths: 51 reach routing and every one of them is videoRange=sdr, 49 of those already forced to the master by the audio rendition and 2 by videoCodecNeedsMasterSignaling (HEVC, HLSVideoEngine.swift:1964; DEV-E7-axis-seek-4200.log:55→:89, DEV-E7-axis-cues-pgs.log:68→:105, both audioLang=none); the other 3 never reach the HLS server at all and take the software route (DEV-E7-vod-hevc.log:66 with :84, DEV-E7-escape-native.log:222 with :237, DEV-E7-escape-real2.log:212 with :224). HLSVideoEngine.swift:2064-2065 carries all three terms. It is absent on live (DEV-E7-live-attempt-control.log, 0 hits; panelIsHDR=false … useMaster=false on media.m3u8 at :180). Neither refusal line (AetherEngine.swift:2326, :2342) appears in the device corpus — both do appear on the simulator, in our own assert / matcher rig legs: 12:53:46.491 panel refused an HDR master (code=-11868); this process routes HDR sources media-direct until it restarts → .492 AVPlayer rejected the master (code=-11868); falling back to media playlist … at 0.00s (SIM-E7-hdr-assert-matcher.log:170/:171). The eleven -11868 lines in the 7.1.3 slices, plus the one in the 6.81.0 control (DEV-E7-ctrl-vod-hdr10-dts.log:285), are all failedToPlayToEndTime 'Cannot open' at leg teardown, e.g. DEV-E7-vod-hdr10plus-eac3.log:260, with t+70.11s on :262, 466 ms before app → background (:263).

    The leg still owes you the applicationState read on the same run-loop turn as the capability read. We will report either way.

  5. superuser404notfound commented on Sep 18, 2026

    @superuser404notfound
    OwnerAuthor

    Your §4 is a defect, and it was mine, not the platform's. Shipped in 7.5.0 (36d4d2b7).

    The two reads are one read now. You anchored it exactly: AetherEngine.swift:3669 composes the table, AetherEngine+Loading.swift:739 re-read the property for the session it builds, and the comment over that second read said it was the first one's table. It was not, and the comment over the FIRST read is worse, because it states the guarantee outright: "Composed once, so the format clamp below and the served DV route cannot disagree about the same display." Two reads of a property that answers at call time are not one table, and your Episode B is what that costs: observed: … dv=true at 08:53:26.539, dvModeAvailable=false displaySupportsHDR=false … useMaster=false at .742. The table now travels as a loadNative parameter, so the compiler asks every caller which table it means, and a second read beside the session is a red test rather than a comment that lies again.

    The rebuild routes on the load's table. Your 7.1.3 recurrence is the case I said the fix would go into, and it arrived with more than I asked for: one process, both directions, revoked at +0.696 s and reading hdr=true hdr10=true hlg=true dv=true again 133 ms after app → active (backgrounded 37s). That is the same shape AE#541 already settled for the panel readout, one level down, so it follows the same rule: an in-place rebuild is not a fresh look at the display, and it composes from the table its load composed. When the carried table and a read taken now differ, the rebuild says so:

    [DisplayCapabilities] AE#535 rebuild routes on the load's table: hdr=true hdr10=true hlg=true dv=true (reading now: hdr=false hdr10=false hlg=false dv=false)
    

    That second read exists for that line and never for the route. Your two audio-sync reloads at 14:54:35.793 and 14:54:37.910 are exactly where it should appear.

    What this does not reach, stated plainly so the next leg is not spent on it: a process whose FIRST read falls in that window. Episode A's fresh process has nothing behind it to carry, and no table to fall back on. The real-world analogue you named, a Top Shelf deep link into a cold launch, is that case and not this one.

    Two things in your data changed my reading of it.

    matching=off and the all-false table are now measured moving together in one process and coming back together, which is as close to settling candidate (a) as a single box gets. An HDMI re-handshake cannot restore a Settings preference 133 ms after a foreground transition and leave it alone for the 34.8 s before.

    And the window is narrower than "before the process is active". All 48 of your reads taken 0.66 to 0.87 s BEFORE their own app → active (fresh process) read hdr=true, with no exceptions. So a read that merely precedes activation is not revoked. The only revoked reads in 104 readouts sit inside a process that had backgrounded. That distinction matters for the leg: the control worth running is not "before active" but "launched without ever being frontmost", which is what a deep-link tune after a backgrounded teardown produces and what an already-frontmost launch does not. If applicationState reads .background on the same turn as an all-false table and .inactive on the same turn as a true one, that is the whole answer and the fix has a place to sit.

    On your §5, the HLG reading: observedPerModeTable floors HLG on eligibility since 6.82.0, so a panel that read hlg=false at 6.81.0 and hlg=true at 7.1.3 with eligibility true is the floor working, not the panel changing its mind. Nothing routes on it for a non-DV source, as the doc block says, so I read your six control lines the same way you filed them: a reading.

    On §6, the unproven-panel attempt firing on SDR VOD: the route being unchanged on all 54 is the intended shape rather than a lucky one. The attempt only ever moves panelIsHDR, and an SDR source resolves videoRange=sdr either way. It is noise in the log on those legs and I would rather have it than gate the line on a term that would hide the case it exists for.

    #535 stays open, on your queued leg. Nothing in this release touches Match Dynamic Range being off, which is still what the issue itself is about.

  6. cmcpherson274 commented on Sep 23, 2026

    @cmcpherson274

    The read is wired, it is compiled into Release, and on 356 launches the state it reports is inactive —
    never background — on all 350 that read before activation. The thing your fix line was aimed at did not fire
    on our bench at all, with a denominator, below. And four route-death reloads did recur, two of them in a
    process that was never backgrounded, which is the half of this I would read first.

    Two pins, each measurement labelled with its own. Our applicationState field is ours, in our app, and
    landed in the same change set as the 7.1.3 → 7.7.1 carrier move, so it was live for every leg at both bench
    pins: 7.7.1 (fa67d586), measured 2026-09-19 and again on 09-21, and 7.8.1 (b89240af), measured
    2026-09-21/22 — the pin we have adopted (our main has carried it since 2026-09-22, with this field in it). Office2,
    Apple TV 4K (3rd gen) — AppleTV14,1, 5 active CPUs, 3.88 GB, tvOS 26.6 (23L773) (read off a tvOS
    diagnostic report of 2026-09-19), a DV-capable panel; plus the Apple TV 4K (3rd generation) simulator
    on tvOS 26.5 (23L470), which reports no HDR modes at all, so its table is all-false by construction and
    is never a revocation. Our app rebuilt on Xcode 27.0 / Swift 6.4.

    Every slice below is labelled by the pin its own binary carried — read from the install marker of the build
    that wrote it, never from which directory it sits in.
    Two arms would be mis-filed by the directory: our
    7.7.1 hold ran two legs on a 7.1.3 control build of our own main as it stood on 09-19, in the same hour on the same box; and a
    7.7.1 arm on 09-21 — three device legs and one simulator leg — wrote into the 7.8.1 hold's log directory. Each is excluded from the pin it is
    filed under and counted only at the pin its own binary carried.

    Engine source line numbers are at 7.8.1. At 7.7.1 each one below sits 27 lines earlier in
    AetherEngine+Loading.swift and 38 earlier in AetherEngine.swift (44 for load(url:…)); at 7.14.0 — read, not
    run — the two passages §4 walks are byte-identical to 7.8.1's, 33 and 82 lines later. Our own app line
    numbers are at commit d0e0656f. App/DisplayModeMatcher.swift's executable code is byte-identical in every
    field-carrying build the legs below ran on, so its line numbers move between those builds and its code does not;
    the §3 guard in App/AetherPlayerEngine.swift and the App/RootView.swift lines §5 cites are unchanged across
    them, and in the 7.1.3 control build as well. Counts are over the
    retained corpus as it stood at 2026-09-22 08:05 EDT. Prefixes trimmed, tails and inner clauses elided
    (…); the rest verbatim. Bare :N are lines in the named log.

    1. The same-turn read

    One file, App/DisplayModeMatcher.swift. One private helper, one statement, one appended field:

    private static func applicationStateToken() -> String {
        guard Thread.isMainThread else { return "off-main" }
        return MainActor.assumeIsolated {
            switch UIApplication.shared.applicationState {
            case .active: return "active"
            case .inactive: return "inactive"
            case .background: return "background"
            @unknown default: return "unknown"
            }
        }
    }

    :331-341. The capability query is let modes = AVPlayer.availableHDRModes at :362; the state read is
    let appState = Self.applicationStateToken() at :397; the line is at :405, still gated on change at
    :403-404. Both statements sit in the same synchronous computed property static var current (:353)
    with no await, no Task and no completion handler between them, so "same run-loop turn" is structural
    rather than a timing result; the helper adds no suspension point either — MainActor.assumeIsolated runs its
    closure inline on the calling thread.

    The bridge is there because the two halves disagree about isolation: UIApplication is NS_SWIFT_UI_ACTOR
    and applicationState takes no NS_SWIFT_NONISOLATED (tvOS 27 SDK, UIApplication.h:84 and :137; the
    opt-out is two lines below, on backgroundTimeRemaining at :139), while DeviceCapabilities.current is
    nonisolated and is genuinely reached from a nonisolated context (a stored-property default in a struct with
    no actor annotation). off-main is a reading, not a failure: it would say the capability read did not happen
    on the main thread and UIKit could not be asked.

    It is compiled into Release — there is no #if DEBUG anywhere in the file and the logger is
    unconditional. That is a code reading, not an observation: every build on this bench is Debug, so we have not
    watched the line come out of a Release binary. It is a log field with no viewer-visible effect and no new
    branch in any decision; its marginal cost is one Thread.isMainThread, the executor check inside MainActor.assumeIsolated and one property read, on a statement
    that already pays for AVPlayer.availableHDRModes. The cadence is per tune, per audio or subtitle pick, per
    negotiation, per panel build and per detail-screen appearance — plus a SwiftUI body pass of an
    already-open panel, which is added to that list rather than replacing it and which pays the read twice. Never
    a decode loop, never a frame callback: the drivers are discrete presses, and the two surfaces that could tick
    do not (the drawer owns its focus state privately and the player's clock is deliberately unsubscribed). We
    have not micro-benchmarked it and are not claiming a number for it.

    The line, byte-identical up to the new field:

    NOTE [playback] display DV capability: true (G-HDR7 — drives the DOVI advertisement); display HDR modes present: true (drives the P2 HDR-remux reroute); applicationState: inactive (#535)
    NOTE [playback] display DV capability: false (…); display HDR modes present: false (…); applicationState: active (#535)
    NOTE [playback] display DV capability: false (…); display HDR modes present: false (…); applicationState: background (#535)
    

    The first two are measured on the bench (counts below). background has not occurred, and neither have
    off-main or unknown; that third rendering is what the code would print, not something we have seen.

    2. What 356 launches say

    The population is every process that reaches a negotiation and takes the capability read — the change
    gate then makes that the process's first read and no other. (The exception is our own forced-DV rig: 10
    simulator processes at each pin take an early return at :356-361 that queries nothing, and log
    display DV capability: FORCED on (JF_FORCE_DV) with no field. They are not in what follows.) Across the two
    pins, 356 readings in 356 distinct processes, no duplicates:

    n applicationState the table it was taken beside
    Office2 @ 7.8.1 100 inactive 100 true / true, 100
    Office2 @ 7.7.1 69 inactive 69 true / true, 69
    simulator @ 7.8.1 93 inactive 90, active 3 false / false, 93
    simulator @ 7.7.1 94 inactive 91, active 3 false / false, 94

    All 356 paired activations are app → active (fresh process) — no backgrounded resume anywhere in the
    corpus — and the token agrees with the timestamp ordering 356 of 356: every inactive reading precedes
    its own process's activation, and the six active ones follow it.

    Four of those six are the control you asked for on 09-17 — "a control with the app already frontmost
    when the deep link arrives"
    . Three simulator legs, twice each, and they are not the same shape, so it is
    worth being exact about which is which. Two of the three are your control precisely: the driver launches the
    full app with no deep link at all, waits for the Home tab, and only then sends tevemate://play/<id> into
    the already-up process — and the read follows activation by 2.354 s (SIM-E8-tc14-023.log:34 and
    SIM-E8-tc14-023-restart.log:34; the same two at 7.7.1 at −2.362 and −2.350 s). Neither of those two is a
    fault: one carries no fault rig at all, and in the other our engine-stop rig does not fire until :168,
    12.3 s after the read. The third is not your control and we are not offering it as one — it is a
    guide open launched with a rig env rather than a deep link, whose read simply lands 0.738 s after
    activation (SIM-E8-pig.log:50; −0.768 s at 7.7.1). So the token separates "launched by a deep link" from
    "read before active" exactly as you framed it on 09-17 — though on the simulator, whose table is
    constructionally all-false, that is all it can separate. These four are not the control your 09-18 note named as
    the one worth running, "launched without ever being frontmost": they are the already-frontmost launches you set
    against it, so they show the token's active side, and that leg is §6's.

    The window, as a distribution rather than the single 890 ms example in our last comment — app → active
    minus the read:

    n min median max
    Office2 @ 7.8.1 100 +0.807 s +0.881 s +0.958 s
    Office2 @ 7.7.1 69 +0.854 s +0.880 s +0.925 s
    simulator @ 7.8.1 (inactive) 90 +0.191 s +0.595 s +0.685 s
    simulator @ 7.7.1 (inactive) 91 +0.215 s +0.600 s +0.664 s

    One reading in full, the first launch that ever carried the field (simulator, 7.7.1,
    SIM-E8-build1-vod-harm.log):

    09-19 16:22:09.713  engines: AVPlayer + Aether (linked)
    09-19 16:22:09.887  display DV capability: false (…); display HDR modes present: false (…); applicationState: inactive (#535)
    09-19 16:22:10.486  app → active (fresh process)
    

    :2, :14, :85 — 599 ms before activation, in inactive. Its 7.8.1 twin is 494 ms
    (SIM-E8-build5-vod-harm.log:16/:81, 09-22 06:41:17.439 → .933).

    And one on the device where your own read sits beside ours
    (DEV-E8-hdr-after-audioswitch-shipped.log, 7.8.1):

    09-21 18:31:11.550  engines: AVPlayer + Aether (linked)
    09-21 18:31:11.670  display DV capability: true (…); display HDR modes present: true (…); applicationState: inactive (#535)
    09-21 18:31:11.763  [Aether] panelIsInHDRMode not asserted — the engine owns display criteria and reads the panel itself …
    09-21 18:31:11.765  [DisplayCapabilities] observed: hdr=true hdr10=true hlg=true dv=true
    09-21 18:31:12.275  [DisplayCriteria] panel readout before apply: … matching=on hdrEligible=yes provenHDR=no
    09-21 18:31:12.544  app → active (fresh process)
    

    :2, :13, :28, :31, :71, :74. Ours and yours 95 ms apart, same answer; activation 874 ms after
    ours.

    What that does and does not settle. It confirms your narrowing empirically, on a much larger sample than
    the 48 reads it was made on: a read that merely precedes activation is not a revoked read. All 169 device
    first-reads were taken before activation and every one read a true table, and across those same 169 device
    launches the engine's own composed table read hdr=true hdr10=true hlg=true dv=true on all 288
    [DisplayCapabilities] observed: lines — 179 at 7.8.1 and 109 at 7.7.1, not one all-false and not one mixed
    reading at either pin. (291 if the two 7.1.3 control processes are counted; they carry no applicationState
    field, so they are not among the 169.) It also names the state that window actually is: inactive, never
    background, 350 of 350.

    It does not give you the pairing you asked for. We have no background reading at all, so we have no
    .background-beside-an-all-false-table half, and the 187 all-false tables we do hold are the simulator's
    display, not a revocation — they read false identically in inactive (181) and in active (6), which is
    what tells a constructional false from a transient one.

    3. The limit of our own line, stated before the null

    Two limits, both ours:

    1. It is change-gated on the DV answer, not per read (:403-404), so a later read in the same process
      whose DV answer had flipped would emit a second line. On our bench it is a first-read instrument anyway,
      and limit 2 is why.
    2. On the shipped path it cannot see a reload's read at all — which matters more. The one
      DeviceCapabilities.current our wrapper takes while building a load's options is
      App/AetherPlayerEngine.swift:970, and it is behind
      if hdrClaimed, options.suppressDisplayCriteria || panelHDRRig == "assert" at :969. With criteria
      engine-owned that read is not taken, and the else if at :975-976 says so out loud —
      [Aether] panelIsInHDRMode not asserted …, 102 lines across 97 of the 100 device slices that carry a
      capability read at 7.8.1
      and 71 across 66 of the 69 at 7.7.1; at both pins the other three are the same
      three legs, our own assert and matcher rigs, and at both pins no device slice without a capability
      read carries one
      , so the partition is exact at both. (The only two device processes anywhere in the
      corpus that log this line with no field of ours beside it are the two legs run on the 7.1.3 control build,
      which predates the field — which is a check on the labelling rather than an exception to it.) A route-death rebuild on
      the shipped path therefore takes no capability read of ours to attach a state token to. Your AE#535
      line is the instrument for that case, not ours.

    4. AE#535 did not fire, with the denominator

    Zero occurrences. 0 across the 139 scored 7.8.1-build leg slices, and 0 across every retained log at both
    pins — our own census over all 208 app-log slices whose binary carried 7.8.1 and all 175 that carried 7.7.1, taken
    with Python rather than a driver's summary count.

    That is the absence of a trigger, and here is how small the opportunity was. The emit sits in
    reloadWithAudioOverride (AetherEngine+Loading.swift:2278-2286 at 7.8.1; :2251-2259 at 7.7.1), and
    reloadAtCurrentPosition() reaches that function only on its isCustomSource branch
    (AetherEngine.swift:4796, calling it at :4816); a URL-backed session goes to load(url:…) at :4870
    instead. So of the 83
    #460: reload applying … corrections the engine logged at 7.8.1 (69 slices), none reached it. The whole
    7.8.1 corpus entered that function three times — every one an in-place audio-track switch
    (selectAudioTrack: scheduling switch … → reload begin: audioStream=2 …) — of which two took the
    native branch that can emit:

    09-21 18:31:40.632  [AetherEngine] reload begin: audioStream=2 resumeAt=325.10s …
    09-21 18:31:40.637  [DisplayCriteria] AE#541 reload routes on the load's panel answer: panelIsHDR=true (hostAsserts=false readoutAtLoad=true eligible=true refusedLatch=false)
    09-21 18:31:41.164  [AetherEngine] reload: loadNative done (529ms)
    

    DEV-E8-hdr-after-audioswitch-shipped.log:224, :228, :281. AE#541's emit (:2263) and AE#535's
    (:2280) sit in the same function with only the table compose between them — reloadDisplayCapabilities
    at :2269-2272 and the second read at :2276-2277 — and no early exit, and reload: loadNative done
    (:2313) is below both; so both native rebuilds provably ran the AE#535 gate, and on neither did
    displayCapsNow differ from reloadDisplayCaps. On the one above, the load composed its table at
    18:31:11.765 and the rebuild read it again 28.87 s later and got the same answer.
    At 7.7.1 the same shape: three entries, two native, AE#535 0, AE#541 1. (A fourth reload begin
    in that hold's logs is the 7.1.3 control build and is not counted.)

    A null, and only a null. Two opportunities is not a test of the fix. What it does rule out is that we
    silently had the case and missed the line.

    5. What did recur — four route-death reloads, and two of them never backgrounded

    This is the part we did not go looking for. Across the two pins, four audio route died reloads on the
    device, and a perfect one-to-one correspondence with matching=off: of every line carrying matching= in
    the device corpus — 192 at 7.8.1 (190 on, 2 off) and 120 at 7.7.1 (118 on, 2 off) — all four
    off readouts sit inside their own leg's route-death reload, 99 ms to 554 ms after it, and each route death
    has exactly one.

    All four processes run the identical arc. First readout of the process
    currentEDR=1.00 … matching=on hdrEligible=yes provenHDR=no; then
    panel proven to engage HDR (headroom 1.20); …; then switch settled via modeSwitchEnd (… the requested rate); then the route death; then:

    09-21 19:37:24.858  audio route died — in-place Aether reload at position (budget-free)
    09-21 19:37:24.911  [Aether] option correction → audioBridgeMode=surroundCompat (route max 2ch) — session-preserving reload (#460)
    09-21 19:37:24.912  [DisplayCapabilities] observed: hdr=true hdr10=true hlg=true dv=true
    09-21 19:37:24.957  [DisplayCriteria] panel readout before apply: currentEDR=1.20 potentialEDR=1.00 headroomLimit=unspecified switching=no matching=off hdrEligible=no provenHDR=yes
    09-21 19:37:24.957  [DisplayCriteria] skipped: Match Content disabled (both Dynamic Range AND Frame Rate off)
    09-21 19:37:24.965  [HLSVideoEngine] serving on …/master.m3u8 (dvModeAvailable=true effectiveDvMode=true panelIsHDR=true displaySupportsHDR=true … useMaster=true …)
    

    DEV-E8-dv-p5.log:150, :152, :157, :170, :171, :194 at 7.8.1. Three things in it:

    • The composed table did not move. observed: reads all-true 54 ms after the route death, and the
      readout reads matching=off hdrEligible=no 45 ms after that. That is Episode A's shape again — the
      capability table reading true and the criteria readout reading revoked inside one load, 106 ms apart
      there and 45 ms here — but with the table on the true side. The route decision held: all four served
      master.m3u8 with panelIsHDR=true … useMaster=true. The master itself did not. On three of the four —
      both at 7.8.1 and one of the two at 7.7.1 — AVPlayer failed the item with -11868 'Cannot open', 19 and
      22 ms after the serving on line at 7.8.1 and 74 ms after it at 7.7.1; your engine logged panel refused an HDR master (code=-11868); this process routes HDR sources media-direct until it restarts and fell back
      to the media playlist at the same position, where each fallback item reached readyToPlay with a PQ video
      track (DEV-E8-dv-p5.log:234/:240, DEV-E8-hdr-after-engine.log:274/:284,
      p771/DEV-E8-dv-p81-dvh1.log:245/:259). The fourth, the 7.7.1
      p771/DEV-E8-hdr-after-audioswitch-assert.log, ends 79 ms after its serving on line (:494), so its
      outcome is unread.
    • currentEDR=1.20 beside hdrEligible=no, on both 7.8.1 cases. The panel's measured headroom says it
      is in HDR on the same line that says the process is not eligible for HDR playback. The two 7.7.1 cases read
      currentEDR=1.00 there, as all three episodes of our two earlier comments did (two at 6.81.0, one at 7.1.3).
    • provenHDR=yes on all four, but the proof is not what served the master. Every one of these loads
      logs skipped: Match Content disabled, and apply() clears lastCriteriaWasHDR ahead of that guard
      (Display/DisplayCriteriaController.swift:711, the guard at :724-726; the file is byte-identical at
      both pins), so criteriaAttribution cannot return .engineHDR (:263-264) and panelPresentsHDR
      never consults the proof (:258-259). At 7.8.1 currentPanelIsHDR() answered from the live headroom —
      the readout line reads currentEDR=1.20 — and neither load logs an unproven-panel attempt or a host
      assertion. At 7.7.1, with the headroom at 1.00, it answered false on both: one load served on your
      unproven-panel attempt (p771/DEV-E8-dv-p81-dvh1.log:192), whose eligibility term is the composed table
      (observedDisplayCaps.supportsHDR), not the readout's hdrEligible=no, and the other on our own assert
      rig, whose host-assertion line reads panelReadout=false (p771/DEV-E8-hdr-after-audioswitch-assert.log:470).

    And two of the four were never backgrounded. The 7.7.1 pair sits either side of your 2.4–2.5 s lag —
    app → background at p771/DEV-E8-dv-p81-dvh1.log:160 then the route death at :170, +2.325 s (75 ms
    under your range); and p771/DEV-E8-hdr-after-audioswitch-assert.log:420 → :432, +2.481 s (inside
    it). The 7.8.1 pair has no app → background
    anywhere before it
    : one engines: line in the slice, app → active (fresh process) at
    DEV-E8-dv-p5.log:56 and the route death at :150 +2.645 s after activation, and
    DEV-E8-hdr-after-engine.log:74 → :172 +3.646 s after activation. So on this bench matching=off with
    hdrEligible=no is reachable in a process that had already reached .active and was never backgrounded,
    which our 6.81.0 and 7.1.3 corpora did not show. The common term across all four is the route death and the mode switch that precedes it, not
    the backgrounding.

    It does not follow that the app was in .active at that instant, and one detail says it probably was not.
    Both 7.8.1 slices carry a second app → active (fresh process) later in the same process — :385 at
    19:37:33.597 and :438 at 18:27:54.472 — with no engines: and no app → background between. Our
    emitter prints that form only when scenePhase reaches .active with no background transition recorded
    (App/RootView.swift:192-205, with .inactive falling to default: break at :205), so each of those
    processes left .active and returned without backgrounding, and the revoked readout falls inside that
    window. We do not log .inactive, so when inside it is unread. One number bounds how ordinary that is:
    a second in-process activation occurs in 2 of 100 device processes at 7.8.1 — exactly these two — and in
    0 of 69 at 7.7.1. So it is rare, and it is not necessary — the 7.7.1 pair revoked without one. Whether it is
    sufficient this corpus cannot say: the one other process in it that re-activated without backgrounding, a 7.1.3
    control leg on 09-19, took no panel readout after doing so.

    The control for the mode switch is in the same corpus: switch settled via modeSwitchEnd occurs 17 times at
    each pin, and of the readouts taken after a settle in the same process, six at 7.8.1 and five at 7.7.1 read
    matching=on against two off at each. A mode switch alone does not produce it.

    We are not claiming a cause. What the four say is that on this box the matching=off / hdrEligible=no
    revocation travels with an audio-route death that follows a display mode switch, that it happens in a process
    that was never backgrounded as well as in one that was, and that a composed true table and provenHDR=yes
    did not keep the master through it: on three of the four, all three on the shipped path, AVPlayer refused
    the master and the process latched panelRefusedHDRMaster — twice at 7.8.1, in the two processes that were
    never backgrounded. The case your 7.5.0 note excludes is still the one where the table itself would be
    wrong: a process whose first read falls in such a window and has no table to carry. These four carried a
    true table, and three of them lost the master all the same.

    6. What is not run, and a correction to our own sizing

    The dedicated leg — the one your 09-18 note calls the control worth running, "launched without ever being
    frontmost"
    , which repeated deep-link tunes after a backgrounded teardown produce, beside already-frontmost
    launches — has not run. Before it is bought, a correction to our own sizing, which we never sent you: our internal
    planning figure was "about 25 launches for a 9-in-10 chance", which needs roughly one clean signature in eleven
    launches. The measured rate does not support it. Taking the signature as a process whose composed table came
    back all-false, and counting every device process whose composed table we logged at all, each at the pin its
    own binary carried — processes, not slices, since the 09-12 slices overlap and two of them ran a 6.66.0 build that cannot print the table: 1 in 56 at 6.81.0 (51 in the
    2026-09-12 corpus of our first comment, plus the five 6.81.0 control processes our second one named), 1 in 58
    at 7.1.3 (56 in the 09-17 corpus of our second, plus the two 7.1.3 control legs named above), and 0 in 169 at
    7.7.1 and 7.8.1 — 288 device observed: lines, every one all-true. That is 1.79 % per launch at the most
    favourable pin and 0.71 % pooled over all four, so 25 launches buys 36 % at best and 16 % pooled, and
    nine-in-ten needs N ≈ 128 to 325. That is a device window we have not booked and is not ours to schedule
    unilaterally, so we are not promising that run.

    What we can say is that the deterministic half arrives on every launch, including N = 1, and is in this
    comment: what state the app is in when it takes its first capability read, beside the table it took.

    And the issue's own question is still not ours to answer. Match Dynamic Range is on here; we have never run
    the output parked in 4K HDR with it off, and nothing above changes that.

  7. superuser404notfound commented on Sep 23, 2026

    @superuser404notfound
    OwnerAuthor

    Your §5 is a defect, and the fix is up as #612.

    The latch took a refusal that the window fully explains. panelRefusedHDRMaster answers "does this output configuration accept an HDR master", and that question only exists while the display is eligible for HDR at all. On your four route-death reloads the readout 45 ms before the refusal says hdrEligible=no, so AVPlayer's -11868 (no compatible alternate) is exactly what an ineligible display produces. It said nothing about the panel, and the engine latched it for the process anyway. The AE#588 clear only runs on a real return from the background, so on your two 7.8.1 processes that never backgrounded, the latch would still have held on 7.10.1 and later, and every later HDR title in the session would have gone media-direct, taking the DV signalling and the subtitle renditions with it.

    The AE#588 doc comment already stated the premise this breaks: "the latch can only be set while eligibleForHDRPlayback is true". That was an assumption, and your corpus measured it false. #612 enforces it: the latch now also needs AVPlayer.eligibleForHDRPlayback to read true at the moment of the refusal. The item still takes its in-place media fallback either way. A refusal that does not latch says so:

    [DisplayCriteria] AE#535 HDR master refused (code=-11868) while the display reads hdrEligible=no; this item falls back, the process does not latch the refusal
    

    So on your bench, a route death after a mode switch should now cost that one item its master and nothing after it. The next HDR load asks the display again.

    A correction to my 18 September note. I wrote that your two audio-sync reloads "are exactly where [the AE#535 rebuild routes on the load's table line] should appear". Your §4 is right that they cannot: reloadAtCurrentPosition() reaches reloadWithAudioOverride only on a custom source, and a URL-backed session, which is what both of our apps run, goes through a full load(url:) that reads the display fresh. The 7.5.0 carry is real, but on your shipped path it only covers the in-place audio-track switch, which is the two native entries you counted. Your null is the correct null for that reason.

    On §2: 350 of 350 pre-activation reads in .inactive, never .background, on a table that read true on every device launch. That settles the narrowing from our side, and I am not reading anything more into the two backgrounded revocations of the earlier corpora until one shows up with the state beside it.

    On §6: agreed with your arithmetic, and I am not asking for the 128 to 325 launch run. The first-read-in-the-window case stays documented as unexplained rather than bought at that price.

    #535 stays open. Match Dynamic Range being off, with the output parked in 4K HDR, is still the issue's own question and nothing here touches it.

  8. superuser404notfound commented on Sep 23, 2026

    @superuser404notfound
    OwnerAuthor

    The refusal-latch fix from #612 is released in 7.15.1 (b93f9c4b): a master refused while eligibleForHDRPlayback reads false no longer latches, and the unlatched refusal says so in the log.

  9. cmcpherson274 commented on Sep 24, 2026

    @cmcpherson274

    Thank you for #612, and for going back over your 18 September note.

    No audio route death hit an HDR title while it played on our 7.15.1 Office2 run, so there is no after arm yet. We have the before arm at 7.15.0, where the latch cost the rest of a sitting its master; one -11868 refusal at 7.15.1 under our assert rig, after a leg's end, which logged your new line; and the simulator's flip.

    Pins, each reading labelled with its own: our app on 7.15.0 (654d0f2c) and on 7.15.1 (b93f9c4b), both Debug builds, run on 2026-09-23 on Office2 (tvOS 26.6 (23L773), read from AVPlayer's User-Agent in both vod-hdr10-dts logs) and on the tvOS simulator. Engine line numbers are at the tag written beside them. Prefixes trimmed, elisions marked …; bare :N are lines in the named log.

    Before: 7.15.0, one process, never backgrounded

    Our vod-hdr10-dts leg: a 4K HEVC HDR10 Matroska title resumed at 300 s, no rig. One engines: line (:2), app → active (fresh process) at :41, the display mode switch settled at :153, started at :173. Then two audio route deaths, 21.4 s apart:

    10:16:07.673  audio route died … in-place Aether reload at position (budget-free)
    10:16:07.739  [DisplayCapabilities] observed: hdr=true hdr10=true hlg=true dv=true
    10:16:08.239  [DisplayCriteria] panel readout before apply: currentEDR=1.00 … matching=off hdrEligible=no provenHDR=yes
    10:16:08.240  [DisplayCriteria] panel unproven but HDR-eligible: serving the master and letting AVPlayer answer …
    10:16:08.283  [HLSVideoEngine] serving on …/master.m3u8 (… panelIsHDR=true … useMaster=true …)
    10:16:08.303  [NativeAVPlayerHost] #2 item.status=failed err=AVFoundationErrorDomain/-11868 'Cannot open'
    10:16:08.307  [DisplayCriteria] panel refused an HDR master (code=-11868); this process routes HDR sources media-direct until it restarts
    10:16:08.307  [AetherEngine] AVPlayer rejected the master (code=-11868); falling back to media playlist … at 310.20s
    10:16:29.033  audio route died … in-place Aether reload at position (budget-free)
    10:16:29.043  [DisplayCapabilities] observed: hdr=true hdr10=true hlg=true dv=true
    10:16:29.539  [DisplayCriteria] panel readout before apply: currentEDR=1.00 … matching=off hdrEligible=no provenHDR=yes
    10:16:29.579  [HLSVideoEngine] serving on …/media.m3u8 (… panelIsHDR=false … useMaster=false …)
    

    DEV-E9-vod-hdr10-dts.log at 7.15.0: :208, :214, :248, :250, :273, :307, :312, :313, :426, :430, :464, :488.

    • The readout said hdrEligible=no 64 ms before AVPlayer failed the item and 68 ms before the latch line.
    • The first reload reached the master through the unproven-panel attempt (:250). Its eligibility term is the composed table (observedDisplayCaps.supportsHDR, AetherEngine.swift:4298 at 7.15.0), which read hdr=true inside the window (:214).
    • The second reload logged no attempt and served media.m3u8 with panelIsHDR=false. It read the same table and the same readout as the first (:430, :464), and our attempt option stays at your default, true, so the term that turned the attempt off is the latch set at :312 (AetherEngine.swift:4295-4299 and AetherEngine+Probe.swift:910 at 7.15.0).
    • The fallback item (#3) and the second reload's item (#4) both played, a PQ video track in each (:352, :353; :533, :537). There is no app → background before :650, the leg's own end. The second app → active (fresh process) at :595 comes 19.3 s after the second route death, the same ordering our two 7.8.1 processes showed.

    So the cost you described, on a later load of the same title: after the first refusal, the one later reload went media-direct.

    After: 7.15.1, the same leg, no route death

    Same deep link, same title, same resume point, the same mode switch settling (:153), started at :161, and one serve, on the master with panelIsHDR=true (:102). No audio route death in the 55.7 s from started to the leg's end (:262); at 7.15.0 the first came 9.9 s after started. The log ends as the same leg's did at 7.8.1, on a -11868 failedToPlayToEndTime 0.5 s before the background (:259) and an item-death reload that has not served yet (:275), with no refusal line in either spelling (DEV-E9-vod-hdr10-dts.log at 7.15.1; DEV-E8-vod-hdr10-dts.log:254, :267 at 7.8.1, 2026-09-21, which had no route death either). We cannot make that route death happen on demand, and we are not substituting a rig for the missing arm.

    The one -11868 refusal Office2 logged at 7.15.1 has the shape of our §5's fourth case: our JF_AETHER_PANEL_HDR=assert rig and a route death after the leg had gone to the background (DEV-E9-hdr-after-assert.log:30, :259, :273). It logged your unlatched line (DEV-E9-hdr-after-audioswitch-shipped.log:8; that log's first 33 lines are the end of this process). The same leg's same tail latched at 7.15.0 (DEV-E9-hdr-after-assert.log at 7.15.0: :260, :275, :376). It is a rig reading taken after the leg's end, not a viewer's sitting, and the next leg's launch replaced that process 8.9 s later, so it does not test "the next HDR load asks the display again".

    Simulator: both of our forcing arms flip

    The simulator reports no HDR modes, so its readout says hdrEligible=no: 85 of 85 readouts in our two 7.15.1 simulator batteries. Our two arms that force the master there (JF_FORCE_DV=1 with JF_AETHER_CRITERIA=matcher or with JF_AETHER_PANEL_HDR=assert, on a DV Profile 5 title, each leg a fresh process) went from the latched line at 7.15.0 to the unlatched one at 7.15.1:

    7.15.0  [DisplayCriteria] panel refused an HDR master (code=-11868); this process routes HDR sources media-direct until it restarts
    7.15.1  [DisplayCriteria] AE#535 HDR master refused (code=-11868) while the display reads hdrEligible=no; this item falls back, the process does not latch the refusal
    

    7.15.0 → 7.15.1: SIM-E9-hdr-assert-matcher.log :163 → :162, SIM-E9-hdr-assert-ab.log :167 → :167. The media fallback line beside it is unchanged at both pins, and so is the -11833 on the fallback item (the simulator's AVPlayer cannot decode HEVC).

    Next

    When a route death hits an HDR title while it plays, on any of our legs at 7.15.1 or later, we will post here which line fired at each refusal and what each later reload served, with its pin. From the code (AetherEngine.swift:2461-2475, :4316-4320 and :3749 at 7.15.1), we expect the unlatched line at the first refusal and, since the composed table read hdr=true at the 7.15.0 second reload (DEV-E9-vod-hdr10-dts.log:430), a second route death in the same window to offer the master again. At the second refusal: the unlatched line again with its own fallback; an accepted master, if eligibility has come back; or, if eligibility has come back and the master is still refused, the latched line in its new spelling. That is an expectation, not a reading.

  10. superuser404notfound commented on Sep 24, 2026

    @superuser404notfound
    OwnerAuthor

    Thank you. Keeping the arms apart and not letting a rig stand in for the missing one is exactly the right call.

    Your expectation matches 7.15.1 as I read it. At a refusal while AVPlayer.eligibleForHDRPlayback reads false, the process does not latch, so the next reload in the same window goes through sessionRoutesAsHDRPanel again. The composed table read hdr=true inside the window at 7.15.0, so that reload is offered the master again, and a second refusal costs that item its own in-place fallback and nothing after it. The latched line only fires when eligibility reads true at the refusal, and its current spelling is … routes HDR sources media-direct until it returns from the background (#588).

    The -11868 failedToPlayToEndTime 0.5 s before the leg's background goes through the item-death path, not the master-rejection path. That item had already been accepted and was playing, so no refusal line in either spelling is the expected reading there, at 7.8.1 and at 7.15.1.

    Nothing to do on my side until the after arm shows up. #535 stays open for its original question.

  11. cmcpherson274 commented on Oct 11, 2026

    @cmcpherson274

    The after arm has shown up in our ordinary runs five times since your note of 24 September, at 7.17.1, 7.24.0 (twice), 7.27.3 and 7.28.3 (the same Apple TV 4K, tvOS 26.6, Debug builds, no rig on the display path). Each time an HDMI audio route death hit a playing HDR title about a second in, our app reloaded in place (the #460 correction to surroundCompat, route max 2 ch), the reload was served the master as the first load had been, and AVPlayer refused it with -11868. Each refusal logged the unlatched form and was the item's own media fallback. Nothing here is about the original question (the stats label on a parked output): Match Dynamic Range is on in our setup, and each of these processes read matching=on at its first load.

    Setup. Each process started its title on the master after a mode switch that settled, and played. The route died, our app reloaded, and the readout quoted below is the one the reload took before the master was served again. Positions are the fallback's own at …s; the start mark is our app's own line and the times are the log's timestamps.

    engine title route death after our start mark the reload's panel readout the refusal what followed
    7.17.1 (26 September) the 4K HDR10 title of our before arm, resumed at 300 s 0.47 s currentEDR=1.20 … matching=off hdrEligible=no provenHDR=yes 0.62 s after the route death, 62 ms after the readout, in that version's wording: AE#535 HDR master refused (code=-11868) while the display reads hdrEligible=no; this item falls back, the process does not latch the refusal media fallback at 300.60 s; a later seek stayed on the media playlist; no further master load
    7.24.0 (1 October) the same title, resumed at 300 s 0.16 s the same readout 0.63 s after the route death, 72 ms after the readout: HDR master refused (code=-11868) while the display reads hdrEligible=no switching=no (#535, #667); this item falls back, the process does not latch the refusal media fallback at 300.40 s; no further load
    7.24.0 (6 October) the same title, resumed at 300 s 1.01 s the same readout 0.62 s after the route death, 73 ms after the readout; the same line media fallback at 300.80 s; played on; no further load
    7.27.3 (6 October) a Dolby Vision profile 8.1 film, joined 2108.82 s in 0.95 s currentEDR=1.20 … matching=on hdrEligible=yes provenHDR=yes (the criteria write skipped as unchanged) 0.19 s after the route death, 166 ms after the readout; the same line media fallback at 2109.36 s; no further load
    7.28.3 (8 October) a 4K HDR10 film, resumed at 300 s 0.79 s currentEDR=1.20 … matching=on hdrEligible=yes provenHDR=yes (the write skipped as unchanged) 0.11 s after the route death, 73 ms after the readout; the same line media fallback at 300.48 s; no further load

    What it shows: a refusal on a route-death reload cost the item one in-place media fallback, and the item played on. Every refusal line read hdrEligible=no, so the engine logged each one as not latched, as #612 says. On the 7.27.3 and 7.28.3 reloads the panel readout still read hdrEligible=yes 166 ms and 73 ms before the refusal line read no; on the three 7.17.1 / 7.24.0 reloads it already read no (with matching=off, during the route change). What it does not show: the next load in the same process being offered the master again, because no process on record loaded a master again after its refusal (each run ended, seeked on the media playlist, or went to the background first). No latched -11868 refusal appears at any pin from 7.15.1 on in the 672 device logs of our last five rounds; the latched line does appear there on -11848 refusals only (two SDR titles' masters at 7.15.1 and 7.17.1).

    7.28.3 is our app's engine pin as of today (2026-10-11).

  12. superuser404notfound commented on Oct 12, 2026

    @superuser404notfound
    OwnerAuthor

    Thank you, that closes the after arm: five refusals on route-death reloads, each unlatched and each costing only its own item's media fallback, which is what #612 was meant to do. That on 7.27.3 and 7.28.3 the readout still said hdrEligible=yes 73 to 166 ms before the refusal line read no is useful too: the eligibility read at the refusal is the one that has to decide, not the one the reload took.

    The aside about the latched line on two SDR titles' -11848 refusals is a real defect. The latch site checked the code and the display, never what the refused master advertised, so a refusal of a VIDEO-RANGE=SDR master routed every later HDR title in that process media-direct until the next background. #749 requires the served master to have been HDR before it latches, and an SDR refusal now logs its own line:

    [DisplayCriteria] SDR master refused (code=-11848); this item falls back, an SDR refusal does not latch the HDR route (#535)
    

    That leaves the SDR refusals themselves unexplained. If the two logs are still at hand, the serving on … line before each refusal (its videoRange, dvVariant and codec) and the title's codec and level would say why AVPlayer refused an SDR master at all.

  13. added a commit that references this issue on Oct 12, 2026
  14. cmcpherson274 commented on Oct 13, 2026

    @cmcpherson274

    Both logs are at hand. With four more like them they are the six -11848 refusals of an SDR master in the 672 device logs our aside counted (eight earlier ones, at 7.1.3 to 7.8.1, are on the same Arbitrage file). Same Apple TV 4K (3rd generation, AppleTV14,1, tvOS 26.6), Debug builds of our app, our loopback route. The serving on line before each refusal, and the first one of the accepted run below, read the same apart from its port and path:

    [HLSVideoEngine] serving on http://127.0.0.1:<port>/<path>/master.m3u8 (dvModeAvailable=true effectiveDvMode=true panelIsHDR=true displaySupportsHDR=true matchContent=true sourceIsHDR=true useMaster=true videoRange=sdr dvVariant=none audioLang=eng)
    

    The line carries no codec; the master's CODECS does:

    title engine runs CODECS (VIDEO-RANGE=SDR in every run) the title's video result
    Arbitrage (an older file) 7.15.1 4 hvc1.1.6.L186.b0,fLaC (3), hvc1.1.6.L186.b0,ec-3 (1, a test setting of ours) HEVC Main, level 186 (6.2), SDR refused (-11848, -15517), latched, media fallback
    13 7.17.1 2 hvc1.1.6.L186.b0,fLaC HEVC Main, level 186 (6.2), SDR the same
    13 7.24.0 1 hvc1.1.6.L153.b0,fLaC the same file accepted; no fallback, no latch

    So AVPlayer refused these masters for the HEVC level they declared, the #674 case. Each refusal came after only the two playlists were requested, before any init segment, and the 13 pair is row 1 of our 2 October reading on #674: the same file's master, refused at 7.17.1 and accepted at 7.24.0 eleven minutes later, its tag lines differing only in L186 → L153. The Arbitrage file left our library on 24 September, before 7.23.2 was released, so we have no capped run of it.

    A correction to our aside: two more of the latched -11848 lines it counted, both at 7.17.1, were on an HDR master, the Dolby Vision profile 7 title in row 2 of that reading (VIDEO-RANGE=PQ, also declared level 6.2), which 7.24.0 accepted.

    7.28.3 is our app's engine pin as of today (2026-10-12); 7.35.1 is the candidate under test.

  15. superuser404notfound commented on Oct 14, 2026

    @superuser404notfound
    OwnerAuthor

    Thank you, that answers it. The SDR refusals were the declared level, not the range: L186 is above what AVPlayer accepts in a master's CODECS, and #674 has capped the declared level at 153 (5.1) since 7.23.2, for plain HEVC and for the DV base layer alike. The 13 pair (refused at 7.17.1, accepted at 7.24.0 with only L186 → L153 changed) shows exactly that.

    The correction matters too. The two latched lines on the Dolby Vision profile 7 master at 7.17.1 were the same level refusal, and the latch had no way to tell it from a panel refusal: -11848 is AVPlayer's generic "cannot decode", and on an eligible display serving an HDR master it reads like the panel saying no. Since 7.23.2 that refusal no longer happens, so the latch's premise holds again for the titles we know of. If a latched line ever shows up again on a display that reads hdrEligible=yes, the CODECS of the refused master is the first thing worth posting.

    #749 (an SDR master's refusal no longer latches the HDR route) is released in 7.36.0.

    Nothing else to do on my side here. #535 stays open for its original question.

  16. superuser404notfound commented on Oct 14, 2026

    @superuser404notfound
    OwnerAuthor

    Closing this as a known limitation.

    The original question has no fix on the engine side today: with Match Dynamic Range off and the output parked in 4K HDR, the capability table answers what the panel can present, and tvOS exposes nothing that says which mode it is presenting right now. Until it does, the stats label can name Dolby Vision on a parked HDR10 output.

    Everything that grew out of this thread is done:

    Thank you to everyone who measured here, @cmcpherson274 in particular for keeping every arm separate and pinned. Anything new in this area is best opened as its own issue, with the serving on … line, the panel readout and the master's CODECS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions