Repository navigation
fix(snapshot): revalidate Apple runner payloads with the producer's fold policy - #4700
Conversation
…old policy (#4654) A regular tvOS snapshot refused the whole home screen: the focused cell's content is scaled by the tvOS focus effect past its row, and the host revalidated the already presented payload with the cursor clip it does not use. The runner compiles its fold policy per runtime, so the host now reads that policy from the same Apple OS leaf instead of defaulting to cursor-projected. Finite viewport, clipping, and actionable-point checks stay.
Size Report
Startup median (7 runs, lower is better):
|
This comment has been minimized.
This comment has been minimized.
|
The fold-policy change at b2dff79 needs live tvOS evidence before it can merge. It changes how the host validates the runner's live snapshot payload on tvOS and visionOS, which is a device-facing capture path, and the PR body lists live tvOS evidence as not run. The only tvOS evidence today is the reporter's raw geometry replayed through fixtures (snapshot-presentation.ts#L223). Fixtures cannot show that the real runner payload (hittable bits, quality payload, viewport evidence, system-surface residue) now passes every host check beyond the one clip the reporter hit. The base refusal came from the first violated invariant, so another tvOS invariant could be hiding behind it. Until a real tvOS capture succeeds, #4654 stays unproven, and docs/agents/pull-requests.md asks for live evidence on device-facing changes. Please run on a tvOS Simulator (boot an Apple TV 4K from the tvOS 27.0 runtime) with the PR head build. Use an app whose screen is rows of focusable collection-view cells, or the tvOS home screen if its tiles scale. Both Not blocking, and you can take or leave these: The 17 checks at b2dff79 are all passing. Draft PRs skip device lanes, so that does not cover live tvOS. There are no known conflicts. Before merge, the live tvOS evidence above needs to land in the PR body. |
|
Live tvOS evidence for head Environment: macOS 27.2.1, Xcode 27.2 (27B52), Node 26.13.1, Apple TV 4K (3rd generation) Simulator, tvOS 27.2 (24K150), Every command ran as Result: the refusal is gone, but the regular output does not show or follow the focus.
The second half of the requested live case fails:
So on this home, Excerpts (labels and identifiers replaced)Head {"index": 9, "type": "Other", "label": "<tile 1>", "rect": {"x": 96, "y": 210, "width": 333.6, "height": 501}, "hittable": true, "parentIndex": 8}
{"index": 13, "type": "Other", "label": "<tile 3>", "rect": {"x": 787, "y": 210, "width": 333.6, "height": 501}, "hittable": true, "parentIndex": 12}Head {"index": 58, "type": "Other", "label": "<tile 3>", "rect": {"x": 787, "y": 210, "width": 333.5, "height": 501}, "focused": true, "hittable": true, "parentIndex": 57}
{"index": 57, "type": "Other", "label": "<tile 3>", "rect": {"x": 787, "y": 210, "width": 333.6, "height": 501}, "hittable": true, "parentIndex": 56}
{"index": 56, "type": "Cell", "identifier": "<cell id>", "rect": {"x": 787, "y": 210, "width": 333.6, "height": 501}, "hittable": true, "parentIndex": 21}
{"index": 21, "type": "CollectionView", "rect": {"x": 0, "y": 210, "width": 1920, "height": 501}, "hittable": true, "parentIndex": 20}Not covered: other screens and rows, tvOS 18.5, and a base-SHA build of the CLI (npm 0.21.39 stands as the control). |
|
One request before merge: the fixture in |
|
Thanks, @nstfn. The two fixture identifiers are now synthetic, and neither original appears in the tracked tree at Could you rerun the same tvOS 27.2 case with the CLI and runner built from |
|
Thanks for the update. a5eda40 addresses the earlier review, but one piece of evidence is still missing. The code change itself looks consistent. 16 checks pass or are skipped, and the remaining one is a review check. The live tvOS 27.2 run on the earlier head showed regular Not blocking, take or leave: the conformance harness re-implements the runner's parent re-mapping around Once the live tvOS capture is in the PR body, this is ready to merge from my side. |
Apex Sentinel · ✅ Approve · review of
|
| Command | What it does |
|---|---|
@apex-sentinel-staging note <context> |
Adds context; Sentinel re-checks the cited code |
@apex-sentinel-staging pivot <why> |
Says the finding is wrong; Sentinel re-checks the cited code |
@apex-sentinel-staging like |
Marks the finding as useful |
@apex-sentinel-staging dislike <why> |
Marks it as not useful, so it is not raised again |
On this conversation, comment @apex-sentinel-staging review to run a full review once again.
|
Live tvOS evidence for head Environment: macOS 27.2.1, Xcode 27.2 (27B52), Node 26.13.1, Apple TV 4K (3rd generation) Simulator, tvOS 27.2 (24K150), Every command ran as
Focused node lines (labels replaced, rects rounded to 4 decimals): The regular views carry the focus on the outer Not covered: other screens and rows, tvOS 18.5, and iOS (not re-run here). |
|
Thanks for the live run. It covers what the a5eda40 review asked for. On a tvOS 27.2 Simulator with the CLI and runner built from this head, all nine captures exit 0. Each regular view has exactly one focused, hittable tile, matching the tile |
|
Closing out my side of this: the merged head is the maintainer's rework, and the live evidence this review asked for is already in the body from @nstfn's run at The two non-blocking notes, dispositioned against
One note on my superseded candidate: my branch also made |
Summary
Fixes the tvOS snapshot refusal and missing tile focus in #4654. Host validation uses the runner’s plain-viewport fold. On the tvOS regular tree route, Swift retains the reported focus bit on the parent tile when it collapses a same-identity child wrapper into that parent. The fixture uses synthetic identifiers. This PR touches 18 files. Refusal index provenance is tracked in #4701.
Validation
b2dff79348ca989ab7a00a6ebb18ec9356d119a3. The control was npm0.21.39. Both regular modes succeeded on that candidate. Raw followed focus. Both regular modes omitted it.a5eda40287a66bdb95e66d3251ac84aed1ea738d, it passes three focus positions through Swift, host presentation, and ref publication. The differential suite, XCTest selection, and generic tvOS Simulator runner build passed.pnpm check:affected --run --head a5eda40287a66bdb95e66d3251ac84aed1ea738dpassed withexactCommit: true(receiptrun-SlV1gH). GitHub owns the skipped CI checks.Live tvOS retest
The reporter built the CLI and runner at
a5eda40287a66bdb95e66d3251ac84aed1ea738dand tested on an Apple TV 4K (3rd generation) Simulator, tvOS 27.2, with fresh state and runner paths. Nine captures and two right presses succeeded. Both regular modes reported exactly one focused, hittable tile per position, matching the raw capture at each stop.snapshotindexsnapshot -iindexThe regular views preserve focus on the surviving outer wrapper. The report includes the anonymized node excerpts. Live evidence
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.