fix(ios): capture the lit panel on foldable Apple devices
Summary
A foldable Apple device (iPhone Duo, iOS 27.1) lights one of its two integrated panels at a time, and simctl io screenshot/recordVideo name the highest screen ID when no display is given — on a closed Duo that is the dark inner panel, so the capture exited 0 with an all-black PNG and every consumer trusted it.
Each iOS simulator capture now resolves the CoreDevice display table, names the lit panel, and normalizes density with that panel's own pointScale. Panel power comes from backlightState, because active is absent from real payloads (a single-panel iPhone 17 reports only backlightState). A multi-panel device always names a display: an ambiguous read falls back to primary with an apple_display_capture_ambiguous diagnostic rather than the black-producing default. Pose is derived only (closed/fully-open/unknown); no official host API sets it, so no command pretends to — agent-device help foldable says so.
agent-device screenshot --platform ios --device "iPhone Duo" # 466x678 (lit outer), was 669x951 black
agent-device help foldable
15 files, +1340/-17 (637 test, 213 docs, 490 production). Gross churn is above the 1,000-line budget; say the word and I will split recording out.
Validation
Tested at 83308f7a8: pnpm check exit 0, pnpm check:affected --run passed.
Live on a booted iPhone Duo: capture went from 669x951 @1x mean luma 0.09 to 466x678 @1x mean luma 65.8; iPhone 17 unchanged at 402x874, so no single-panel regression. On the examples/test-app dev build: snapshot -i returned 41 nodes, tap @e189 dismissed the dev-menu sheet, and a Catalog tap settled +19 -15.
Unresolved: open-pose frames, inner-panel tap routing, and the XCUIScreen.main runner fallback need an operator-folded device (ADR 0025 records both gaps).