perf(ios): decide Simulator AX bridge viability (GO, Node-direct guest reader)
Summary
Concludes the Simulator accessibility bridge decision for #2192 with a GO for the narrow Node-direct route.
- drives the pinned idb v1.5.2
SimulatorFrameworkBridgedirectly over its private UNIX socket; the supplied executable is SHA-256 verified before launch, and no Python,idb_companion, or gRPC client remains - pairs every timed relaunch read with an independent readiness observation for the exact app PID generation and expected screen anchor: 20 samples on each of 6 representative screens
- splits bridge process/connection/resource ownership from request/response adaptation (290 and 237 lines)
- reports Simulator preference apply/restore evidence and the private-interface compatibility risk; production routing is unchanged
The readable result stays in-tree at docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md. Raw artifacts are held on evidence/ios-snapshot at immutable tag evidence/ios-snapshot/44995806ea, evidence commit f8b2fab28b8604f20094785c16e16a79fdc651a3, with hashes in that branch's README.
The retained 3,645-line tooling diff is: 1,941 lines of private wire decoding, validation, bounds, adaptation, process ownership, and their tests; 966 lines of fail-closed decision/report generation and tests; 733 lines of live bootstrap/relaunch/recovery orchestration and instructions; 5 lines of repository wiring. A smaller wrapper would not independently validate the unsupported wire shape, target generation, lifecycle recovery, or resource bounds that make the decision auditable.
Validation
- rebased onto
origin/main941ca0e7e08f50960dc90d3fdafa572355b030a0 pnpm check:affected --run— all runnable checks passed- focused verifier suite — 18 tests passed; planted generation/hash violations observed red
- live post-rebase run from clean commit
44995806ea3be09f3c48ceac50ac3cab18462c35on dedicated iOS 26.2 Simulatorad-2237-axbridge - relaunch: 120/120, 6/6 screens, 0 generation mismatches, worst per-screen p95 234.7 ms (<500 ms)
- bootstrap: 5/5, p95 1136.6 ms (<2000 ms); resources: 129/129 measured, max CPU 220 ms, max RSS 89,407,488 bytes
- recovery 4/4; hierarchy depth 29; preference apply/restore passed; Simulator shut down with no bridge process remaining