Skip to content

Print what the display says before writing to it (#459) - #502

Merged
superuser404notfound merged 1 commit into
mainfrom
diag/ae459-panel-readout
Sep 6, 2026
Merged

superuser404notfound merged 1 commit into
mainfrom
diag/ae459-panel-readout

Conversation

@superuser404notfound

Copy link
Copy Markdown
Owner

Does not close #459. This round is an instrument, not a fix.

The reporter's box answers no HDR reading in 12116ms (max headroom 1.00, 47 samples) and stays at
1.00 across a genuine SDR to HDR mode switch, so the readout the routing gate depends on is silent
there. He cannot downgrade to 26.x to date that against tvOS 27 beta, so the next measurement has to
come off the same hardware.

One line per criteria event, before the engine writes or clears anything:

[DisplayCriteria] panel readout before apply: currentEDR=1.20 potentialEDR=1.00 switching=no matching=on hdrEligible=yes provenHDR=yes

potentialEDRHeadroom is in there at his suggestion and against my own measurement. It read a flat
1.00 on an Apple TV 4K 3rd gen on tvOS 26.5 while currentEDRHeadroom read 1.20 on the same
UIScreen in the same moment, which is why it was written off. One box, one OS, and the box in
question already disagrees on the other property, so both get printed and a second panel decides.

Placement matters twice. At apply it goes before the Match Content guard, because a box with matching
off is exactly the configuration nothing else in the log describes. And it is not routed through
observeHeadroom: latching the HDR proof from a diagnostic would change routing, and this round is
meant to measure.

3 tests pin the line shape, so the grep a reporter is handed stays valid across releases. Full suite
green on both runners (XCTest 606, swift-testing 2674 in 368 suites, REAL EXIT=0) plus a local tvOS
Simulator build, which is the half swift test on macOS never compiles.

🤖 Generated with Claude Code

https://claude.ai/code/session_014tQ8MerNbZQdWBpDStitoD

The panel-mode question in #459 has no answer left on the reporter's box: `currentEDRHeadroom`
stays 1.00 through 12 seconds of HDR content and through a real SDR to HDR mode switch. He cannot
downgrade to 26.x to date that, so the next measurement has to come from the same box.

One line per criteria event, in a fixed shape, emitted BEFORE the engine writes or clears anything,
because a write is what makes a later reading unattributable:

    [DisplayCriteria] panel readout before apply: currentEDR=1.20 potentialEDR=1.00 switching=no
    matching=on hdrEligible=yes provenHDR=yes

`potentialEDRHeadroom` is in there at his suggestion and against my own measurement, which is the
point of including it. It read a flat 1.00 on an Apple TV 4K 3rd gen on tvOS 26.5 while
`currentEDRHeadroom` read 1.20 on the same UIScreen in the same moment, so it looked like a property
tvOS does not maintain. That was one box on one OS, and the box this issue is about answers
differently on the other property. Printing both and letting a second panel decide is cheaper than
carrying my own result as a rule.

At apply it sits before the Match Content guard, since a box with matching off is exactly the
configuration nothing else in the log describes. Deliberately not routed through `observeHeadroom`:
a diagnostic that also latched the HDR proof would change routing, and this round measures.

Diagnostic only, no behaviour change. 3 tests on the line shape, so the grep a reporter is given
stays valid. Full suite green on both runners (XCTest 606, swift-testing 2674 in 368 suites, exit 0)
plus a local tvOS Simulator build, which is the half `swift test` on macOS does not compile.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Claude-Session: https://claude.ai/code/session_014tQ8MerNbZQdWBpDStitoD
@superuser404notfound
superuser404notfound merged commit c9432f6 into main Sep 6, 2026
5 checks passed
@superuser404notfound
superuser404notfound deleted the diag/ae459-panel-readout branch September 6, 2026 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stats report wrong current display mode: HDR10+ -> SDR (when display is HDR locked)

1 participant