From e3fc2aa89ac61cb0f02455e5ba3198b520ed1845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Tue, 1 Sep 2026 22:32:20 +0200 Subject: [PATCH 01/13] test(ios): add guest simulator AX bridge evidence --- ...ios-simulator-ax-bridge-2026-09-01.json.gz | Bin 0 -> 16106 bytes .../ios-simulator-ax-bridge-2026-09-01.md | 132 +++++++ package.json | 2 + scripts/ios-ax-bridge-spike/README.md | 37 ++ scripts/ios-ax-bridge-spike/adapter.test.ts | 74 ++++ scripts/ios-ax-bridge-spike/adapter.ts | 301 ++++++++++++++++ scripts/ios-ax-bridge-spike/config.ts | 255 ++++++++++++++ .../ios-ax-bridge-spike/corpus-coverage.ts | 32 ++ scripts/ios-ax-bridge-spike/decision.test.ts | 132 +++++++ scripts/ios-ax-bridge-spike/decision.ts | 253 ++++++++++++++ .../framed-process.test.ts | 118 +++++++ scripts/ios-ax-bridge-spike/framed-process.ts | 214 ++++++++++++ scripts/ios-ax-bridge-spike/guest-adapter.ts | 243 +++++++++++++ scripts/ios-ax-bridge-spike/guest-reader.py | 330 ++++++++++++++++++ scripts/ios-ax-bridge-spike/lifecycle.test.ts | 21 ++ scripts/ios-ax-bridge-spike/lifecycle.ts | 127 +++++++ scripts/ios-ax-bridge-spike/limits.test.ts | 70 ++++ scripts/ios-ax-bridge-spike/limits.ts | 230 ++++++++++++ .../persistent-process.test.ts | 77 ++++ .../ios-ax-bridge-spike/persistent-process.ts | 266 ++++++++++++++ .../preference-experiment.ts | 86 +++++ .../ios-ax-bridge-spike/preferences.test.ts | 22 ++ scripts/ios-ax-bridge-spike/preferences.ts | 254 ++++++++++++++ .../ios-ax-bridge-spike/presentation.test.ts | 30 ++ scripts/ios-ax-bridge-spike/presentation.ts | 100 ++++++ scripts/ios-ax-bridge-spike/protocol.ts | 187 ++++++++++ scripts/ios-ax-bridge-spike/report.test.ts | 48 +++ scripts/ios-ax-bridge-spike/report.ts | 292 ++++++++++++++++ scripts/ios-ax-bridge-spike/run.test.ts | 13 + scripts/ios-ax-bridge-spike/run.ts | 328 +++++++++++++++++ scripts/ios-ax-bridge-spike/runner.ts | 299 ++++++++++++++++ .../sample-evidence.test.ts | 102 ++++++ .../ios-ax-bridge-spike/sample-evidence.ts | 160 +++++++++ .../ios-ax-bridge-spike/swift/Package.swift | 18 + .../ProcessMetrics.swift | 48 +++ .../Protocol.swift | 139 ++++++++ .../RawAccessibility.swift | 329 +++++++++++++++++ .../AgentDeviceIosAxBridgeSpike/main.swift | 73 ++++ scripts/ios-ax-bridge-spike/types.ts | 240 +++++++++++++ .../ios-snapshot-benchmark/cell-admission.ts | 16 + vitest.config.ts | 1 + 41 files changed, 5699 insertions(+) create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01.md create mode 100644 scripts/ios-ax-bridge-spike/README.md create mode 100644 scripts/ios-ax-bridge-spike/adapter.test.ts create mode 100644 scripts/ios-ax-bridge-spike/adapter.ts create mode 100644 scripts/ios-ax-bridge-spike/config.ts create mode 100644 scripts/ios-ax-bridge-spike/corpus-coverage.ts create mode 100644 scripts/ios-ax-bridge-spike/decision.test.ts create mode 100644 scripts/ios-ax-bridge-spike/decision.ts create mode 100644 scripts/ios-ax-bridge-spike/framed-process.test.ts create mode 100644 scripts/ios-ax-bridge-spike/framed-process.ts create mode 100644 scripts/ios-ax-bridge-spike/guest-adapter.ts create mode 100644 scripts/ios-ax-bridge-spike/guest-reader.py create mode 100644 scripts/ios-ax-bridge-spike/lifecycle.test.ts create mode 100644 scripts/ios-ax-bridge-spike/lifecycle.ts create mode 100644 scripts/ios-ax-bridge-spike/limits.test.ts create mode 100644 scripts/ios-ax-bridge-spike/limits.ts create mode 100644 scripts/ios-ax-bridge-spike/persistent-process.test.ts create mode 100644 scripts/ios-ax-bridge-spike/persistent-process.ts create mode 100644 scripts/ios-ax-bridge-spike/preference-experiment.ts create mode 100644 scripts/ios-ax-bridge-spike/preferences.test.ts create mode 100644 scripts/ios-ax-bridge-spike/preferences.ts create mode 100644 scripts/ios-ax-bridge-spike/presentation.test.ts create mode 100644 scripts/ios-ax-bridge-spike/presentation.ts create mode 100644 scripts/ios-ax-bridge-spike/protocol.ts create mode 100644 scripts/ios-ax-bridge-spike/report.test.ts create mode 100644 scripts/ios-ax-bridge-spike/report.ts create mode 100644 scripts/ios-ax-bridge-spike/run.test.ts create mode 100644 scripts/ios-ax-bridge-spike/run.ts create mode 100644 scripts/ios-ax-bridge-spike/runner.ts create mode 100644 scripts/ios-ax-bridge-spike/sample-evidence.test.ts create mode 100644 scripts/ios-ax-bridge-spike/sample-evidence.ts create mode 100644 scripts/ios-ax-bridge-spike/swift/Package.swift create mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift create mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift create mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift create mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift create mode 100644 scripts/ios-ax-bridge-spike/types.ts diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..cb88f34a3ef43248e2e3d9ff164a0acde75461d4 GIT binary patch literal 16106 zcmZXbWl$VZ)9-Nz?(SLK-Q696JHg%EB}jsMaJS$d9D*+a7I%l>EDnoap7;53?|Y}F zrn=6DQ)lMLboc+)6tPH9|G8jr&U-de_V`n10^dd8Rptn~+Nf~XcM=Np9GWNpo}AR? zy)m5r&2n11=rog$Lv?15=8=)HR@U!%&Q48}{;n0Hr2veB2(nps;)aWlQf;F@L_`$G zO^i!j6TSzeu+2G&c9NB?xOXd4=r;czyLNl=3(T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t_cPxBk-6KMRLEb4`@iV%Tc>*9wcxGC_1LeXJ04BEfX#Ny!=isT$KGlUn4(!QQ!+2ixAp8mF$ep zQa8Ix$v=zRZ70-uYmTV}H#R$!#V#hbDDMXn!Xa&LqX;*VA$?Zhz_Kfozbm`hrDNqy z0yK9--<#tyI9P}ziLJ6_Jyxo5M>h9Q5kEFTQEf*E($r1*XwSy8_i_={l|xZ&CO+xh zMLzhC5mHF5Yd{Q&n{=l9HH~(M5^i|iS>jp`pJhf-(QH}JsC1Iy-eq=6lv$9P!60Qc zDs_UfsqFTO5l*CqR7uruw}~M2bQQa^7A53Rl~i( zYbx#*WXL0J_co!M7aNHl`acGu1YMDbw`2GU)tU4-$BuagI;gBULv_uI@$TVELb5MVhymh_<%g>)D1+W%9GyBA#8(PS>p5?v;A9TnVwgroVrYCv1(o zSN;li6xFM1P{evuYuoGlqXan4X3 zNxT9WChScoZ(pfYxsdVvdQPUt0?d6Beo>EZL7g7C5ot^I6+h2Im|zYHDaPk2^x#4{ zlO-!K)uz64!o|Yf5@zr5rzUWC;)5ctRd0pKN|G=fwZF zToWdX_@h)io30=heE8vuj^Yg5n5J4{4c{Cd1#8z_OYhfz)R!Hx`e6zv_|1M)e*2Hc z`4Y1!7X5{AGZsx3q|hgd$vj+@>d997B~MAqG@AHG}LqK1%MBEFcwd3oU>D{ qVw{;J-=$dJzd$*kuGt{a3!h*-@VZ8}? true; ApplicationAccessibilityEnabled: 0 -> true; AutomationEnabled: 0 -> true; IgnoreAXServerEntitlements: undefined -> true +- /Users/thymikee/Library/Developer/CoreSimulator/Devices/F578F08D-BEA1-4A56-8A4B-C92B040FBA94/data/Library/Preferences/com.apple.UIAutomation.plist: existed=true, beforeSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c, afterSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c + - Changes: none + +## Lifecycle, cancellation, and recovery + +- Source: framed-protocol-fixture +- Process crash: process-crash; recovered=true +- Timeout: timeout; recovered=true +- Cancellation: cancelled; recovered=true +- Stale generation: stale-generation; recovered=true + +## Decision rationale + +- public-macos-ax warm/quiet acquisition missed the 75/150 ms target. +- public-macos-ax warm/list acquisition missed the 75/150 ms target. +- The generated private candidate result only proved that no tool path was supplied. +- The post-run idb audit disproved the claim that a compatible private mechanism was unavailable + and passed the warm latency threshold on one detailed Settings screen. +- The overall verdict is therefore inconclusive. Public AX remains NO-GO; the idb-style persistent + guest bridge is GO for full-corpus evaluation, not yet GO for production. + +## Next interface boundary + +- Adapt the idb-style persistent guest reader behind the #2190 acquisition boundary and run every + remaining #2192 state and screen cell while preserving raw facts. + +## Production boundary + +- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made. +- Production routing remains blocked until the guest bridge passes the full correctness, lifecycle, + and latency corpus. The original zero-cell private result must not be used to close #2192. diff --git a/package.json b/package.json index 5551f4e14..ad9e05a76 100644 --- a/package.json +++ b/package.json @@ -124,6 +124,8 @@ "bench:ios-snapshot": "node --experimental-strip-types scripts/ios-snapshot-benchmark/run.ts", "bench:ios-snapshot:deep-button": "node --experimental-strip-types scripts/ios-snapshot-benchmark/deep-button.ts", "bench:ios-snapshot:evidence": "node --experimental-strip-types scripts/ios-snapshot-benchmark/evidence.ts", + "build:ios-ax-bridge-spike": "node --experimental-strip-types scripts/swift-toolchain-tmpdir.ts swift build -c release --package-path scripts/ios-ax-bridge-spike/swift --product agent-device-ios-ax-bridge-spike", + "bench:ios-ax-bridge": "node --experimental-strip-types scripts/ios-ax-bridge-spike/run.ts", "mutation:run": "node --experimental-strip-types scripts/mutation/run.ts", "mutation:check": "node --experimental-strip-types scripts/mutation/run.ts --no-run", "mutation:affected": "node --experimental-strip-types scripts/mutation/run.ts --affected", diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md new file mode 100644 index 000000000..590df08fc --- /dev/null +++ b/scripts/ios-ax-bridge-spike/README.md @@ -0,0 +1,37 @@ +# iOS Simulator AX bridge spike + +This bounded harness supplies the decision evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It compares host-side public macOS AX, the official idb `SimulatorFrameworkBridge` guest mechanism, and the #2189 XCTest control baseline behind one acquisition adapter. It does not select a production backend or change daemon, runner, open, relaunch, proxy, interaction, or public CLI behavior. + +Build the repository and the repository-only spike helper first: + +```sh +pnpm install --frozen-lockfile +pnpm build +pnpm build:ios-ax-bridge-spike +``` + +The rejected helper remains under this spike tooling package so it is reproducible without entering +the distributed `apple/macos-helper` package or npm artifact. + +Use a newly created, task-owned iOS Simulator. The guest candidate uses the arm64 [idb release](https://github.com/facebook/idb/releases/tag/v1.5.2) outside this repository: + +```sh +pnpm bench:ios-ax-bridge -- \ + --udid SIMULATOR_UDID \ + --target-process-id DEVICEHUB_PID \ + --candidate public-macos-ax,guest-simulator-framework-bridge,xctest-control \ + --state cold-cold,cold,warm,relaunch \ + --screen quiet,list,nested-scroll,alert,system-surface,xctest-stress \ + --samples 20 \ + --apply-preferences \ + --guest-companion /path/to/idb_companion \ + --guest-python python3 \ + --guest-site-packages /path/to/idb-cli/libexec/lib/python3.14/site-packages \ + --out .tmp/ios-ax-bridge-spike.v1.json.gz +``` + +The default candidate set, state set, screen set, and sample minimums come from the #2189 benchmark definitions. Each request carries an optional expected target generation and fixed request, response, node-count, traversal-depth, CPU, memory, and duration bounds. The public and guest helpers use newline-delimited responses; the guest adapter keeps one idb gRPC client and one `axbridge-persistent` reader alive across the run. Guest reads request idb's flat raw element form, preserving provider facts without importing visibility, hittability, scope, depth, or semantic compaction. Every sample keeps resource metrics and target status; each cell keeps one raw-tree exemplar with viewport, lineage, truncation, residue, and bounded diagnostics, plus separate prototype presentation measurements. + +`--apply-preferences` is the only way the experiment edits Simulator preference plists. The Simulator must be shutdown; the harness records exact plist hashes and targeted key changes, then restores the original bytes before reporting. The keys are not production defaults. Omit `--private-tool` unless a disposable, compatible private mechanism is being tested; the harness never invents a private fallback. + +The harness fails closed. It reports `NO-GO` when the guest candidate is unsupported, unavailable, unreadable, stale, over a bound, below the sample minimum, or when crash/timeout/cancellation recovery is not typed and recovered. Public AX is retained as a control result and cannot turn a passing guest corpus into a failure. It stops before reporting timings if the fixture app cannot be prepared deterministically. The adjacent gzipped JSON and readable Markdown report are the decision artifact; no production route should be implemented from a `NO-GO` run. diff --git a/scripts/ios-ax-bridge-spike/adapter.test.ts b/scripts/ios-ax-bridge-spike/adapter.test.ts new file mode 100644 index 000000000..f436a2cc4 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/adapter.test.ts @@ -0,0 +1,74 @@ +import assert from 'node:assert/strict'; +import fs from 'node:fs'; +import { test } from 'vitest'; +import { defaultPublicMacOsAxHelperPath, readControlSnapshot } from './adapter.ts'; +import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; + +test('public AX adapter resolves the SwiftPM release product', () => { + assert.equal( + defaultPublicMacOsAxHelperPath('/repo'), + '/repo/scripts/ios-ax-bridge-spike/swift/.build/release/agent-device-ios-ax-bridge-spike', + ); +}); + +test('spike executable stays outside the distributed macOS helper package', () => { + const manifest = fs.readFileSync( + new URL('../../apple/macos-helper/Package.swift', import.meta.url), + 'utf8', + ); + + assert.doesNotMatch(manifest, /AgentDeviceIosAxBridgeSpike|agent-device-ios-ax-bridge-spike/); +}); + +test('control mapping preserves the producer raw node type', () => { + const result = readControlSnapshot({ + data: { + results: [ + { + data: { + snapshot: { + nodes: [ + { + index: 7, + type: 'XCUIElementTypeButton', + role: 'AXButton', + }, + ], + }, + }, + }, + ], + }, + }); + + assert.equal(result?.nodes[0]?.type, 'XCUIElementTypeButton'); + assert.equal(result?.nodes[0]?.role, 'AXButton'); +}); + +test('guest adapter fails closed when the official companion is not configured', async () => { + const adapter = createGuestSimulatorFrameworkBridgeAdapter({ repoRoot: '/repo' }); + const result = await adapter.acquireBatch([ + { + version: 1, + id: 'guest-unavailable', + candidate: 'guest-simulator-framework-bridge', + simulatorUdid: 'simulator', + state: 'warm', + screen: 'quiet', + appBundleId: 'com.callstack.agentdevicelab', + limits: { + maxRequestBytes: 64 * 1024, + maxResponseBytes: 4 * 1024 * 1024, + maxNodes: 1500, + maxTraversalDepth: 12, + maxCpuMs: 2000, + maxMemoryBytes: 256 * 1024 * 1024, + maxDurationMs: 5000, + }, + }, + ]); + assert.deepEqual(result.responses[0]?.failure, { + kind: 'unsupported-mechanism', + code: 'guest-tool-unavailable', + }); +}); diff --git a/scripts/ios-ax-bridge-spike/adapter.ts b/scripts/ios-ax-bridge-spike/adapter.ts new file mode 100644 index 000000000..c67a9abd3 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/adapter.ts @@ -0,0 +1,301 @@ +import fs from 'node:fs'; +import path from 'node:path'; +import { performance } from 'node:perf_hooks'; +import { + classifyFailure, + snapshotFixture, + type CliContext, + type CliResult, +} from '../ios-snapshot-benchmark/command.ts'; +import { runFramedBatch, type FramedProcessSpec } from './framed-process.ts'; +import { DEFAULT_SPIKE_LIMITS, validateRawAcquisition } from './limits.ts'; +import { failureResponse } from './protocol.ts'; +import type { + CandidateId, + RawAcquiredNode, + ResourceLimits, + SpikeRequest, + SpikeResponse, +} from './types.ts'; + +export type AcquisitionAdapter = Readonly<{ + candidate: CandidateId; + acquireBatch( + requests: readonly SpikeRequest[], + options?: Readonly<{ signal?: AbortSignal }>, + ): Promise; + close?: () => Promise; +}>; + +export type AcquisitionBatchResult = Readonly<{ + responses: readonly SpikeResponse[]; + stderr: string; +}>; + +export type AdapterOptions = Readonly<{ + repoRoot: string; + helperPath?: string; + limits?: ResourceLimits; + stateDir?: string; + guestCompanion?: string; + guestPython?: string; + guestSitePackages?: string; +}>; + +export function createPublicMacOsAxAdapter(options: AdapterOptions): AcquisitionAdapter { + const limits = options.limits ?? DEFAULT_SPIKE_LIMITS; + const helperPath = options.helperPath ?? defaultPublicMacOsAxHelperPath(options.repoRoot); + return framedAdapter('public-macos-ax', helperPath, limits); +} + +export function defaultPublicMacOsAxHelperPath(repoRoot: string): string { + return path.join( + repoRoot, + 'scripts', + 'ios-ax-bridge-spike', + 'swift', + '.build', + 'release', + 'agent-device-ios-ax-bridge-spike', + ); +} + +export function createXCTestControlAdapter( + contextFor: (request: SpikeRequest) => CliContext, +): AcquisitionAdapter { + return { + candidate: 'xctest-control', + async acquireBatch(requests) { + return { + responses: requests.map((request) => { + const started = performance.now(); + return controlResponse( + request, + snapshotFixture(contextFor(request)), + performance.now() - started, + ); + }), + stderr: '', + }; + }, + }; +} + +function framedAdapter( + candidate: Exclude, + file: string, + limits: ResourceLimits, +): AcquisitionAdapter { + const spec: FramedProcessSpec = { file }; + return { + candidate, + async acquireBatch(requests, options = {}) { + if (!fs.existsSync(file)) { + return { + responses: requests.map((request) => + failureResponse(request, { + kind: 'unsupported-mechanism', + code: 'adapter-binary-unavailable', + }), + ), + stderr: '', + }; + } + const result = await runFramedBatch(spec, requests, { ...options, limits }); + return result; + }, + }; +} + +function controlResponse( + request: SpikeRequest, + result: CliResult, + durationMs: number, +): SpikeResponse { + const snapshot = readControlSnapshot(result.payload); + return result.ok && snapshot + ? successfulControlResponse(request, snapshot, result, durationMs) + : failedControlResponse(request, result); +} + +function successfulControlResponse( + request: SpikeRequest, + snapshot: ControlSnapshot, + result: CliResult, + durationMs: number, +): SpikeResponse { + const acquisition = { + targetId: `simulator:${request.simulatorUdid}`, + targetGeneration: snapshot.targetGeneration, + nodes: snapshot.nodes, + viewport: snapshot.viewport, + truncated: snapshot.truncated, + residue: [{ kind: 'missing-viewport', reason: 'not-provided' }], + } as const; + const validated = validateRawAcquisition(acquisition, request.limits); + if (!validated.ok) { + return failureResponse(request, { kind: 'malformed-tree', code: validated.code }); + } + return { + version: 1, + id: request.id, + candidate: request.candidate, + ok: true, + acquisition, + metrics: { + requestBytes: 0, + responseBytes: Buffer.byteLength(result.stdout), + nodeCount: acquisition.nodes.length, + maxTraversalDepth: validated.maxTraversalDepth, + cpuMs: null, + memoryBytes: null, + durationMs, + }, + }; +} + +function failedControlResponse(request: SpikeRequest, result: CliResult): SpikeResponse { + const failure = classifyFailure(result.payload, result); + return failureResponse( + request, + { + kind: controlFailureKind(failure.category), + ...(failure.code ? { code: failure.code } : {}), + }, + { + responseBytes: Buffer.byteLength(result.stdout), + durationMs: result.wallClockMs, + }, + ); +} + +function controlFailureKind( + category: string, +): 'timeout' | 'stale-generation' | 'transport-failure' { + if (category === 'timeout') return 'timeout'; + if (category === 'stale-generation') return 'stale-generation'; + return 'transport-failure'; +} + +export type ControlSnapshot = Readonly<{ + nodes: RawAcquiredNode[]; + targetGeneration: string | null; + truncated: boolean; + viewport: { kind: 'missing'; reason: 'not-provided' }; +}>; + +export function readControlSnapshot(value: unknown): ControlSnapshot | undefined { + const snapshot = findSnapshotRecord(value); + if (!snapshot || !Array.isArray(snapshot.nodes)) return undefined; + const nodes = snapshot.nodes.flatMap((rawNode) => toRawNode(rawNode)); + return { + nodes, + targetGeneration: readGeneration(snapshot), + truncated: snapshot.truncated === true, + viewport: { kind: 'missing', reason: 'not-provided' }, + }; +} + +function findSnapshotRecord(value: unknown): Record | undefined { + const root = record(value); + return root ? snapshotFromRoot(root) : undefined; +} + +function snapshotFromRoot(root: Record): Record | undefined { + const stepData = firstBatchStep(record(root.data)); + return snapshotFromStep(stepData); +} + +function snapshotFromStep( + stepData: Record | undefined, +): Record | undefined { + if (!stepData) return undefined; + return record(stepData.snapshot) ?? stepData; +} + +function firstBatchStep( + data: Record | undefined, +): Record | undefined { + if (!data) return undefined; + const results = data.results; + return Array.isArray(results) ? firstResultData(results, data) : data; +} + +function firstResultData( + results: readonly unknown[], + fallback: Record, +): Record { + const first = record(results[0]); + return record(first?.data) ?? fallback; +} + +function toRawNode(value: unknown): RawAcquiredNode[] { + const node = record(value); + if (!node || typeof node.index !== 'number') return []; + return [ + { + id: String(node.index), + ...rawNodeFacts(node), + }, + ]; +} + +function rawNodeFacts(node: Record): Partial { + return { + ...optionalParent(node.parentIndex), + ...optionalString(node, 'type'), + ...optionalString(node, 'role'), + ...optionalString(node, 'subrole'), + ...optionalString(node, 'label'), + ...optionalString(node, 'value'), + ...optionalString(node, 'identifier'), + ...optionalRect(node.rect), + ...optionalBoolean(node, 'enabled'), + ...optionalBoolean(node, 'selected'), + ...optionalBoolean(node, 'focused'), + }; +} + +function optionalParent(value: unknown): Partial { + return typeof value === 'number' ? { parentId: String(value) } : {}; +} + +function readGeneration(snapshot: Record): string | null { + const value = snapshot.refsGeneration ?? snapshot.targetGeneration; + return typeof value === 'string' || typeof value === 'number' ? String(value) : null; +} + +function optionalString( + recordValue: Record, + key: 'type' | 'role' | 'subrole' | 'label' | 'value' | 'identifier', +): Partial { + return typeof recordValue[key] === 'string' ? { [key]: recordValue[key] } : {}; +} + +function optionalBoolean( + recordValue: Record, + key: 'enabled' | 'selected' | 'focused', +): Partial { + return typeof recordValue[key] === 'boolean' ? { [key]: recordValue[key] } : {}; +} + +function optionalRect(value: unknown): Partial { + const rect = record(value); + if (!rect || !['x', 'y', 'width', 'height'].every((key) => typeof rect[key] === 'number')) { + return {}; + } + return { + frame: { + x: rect.x as number, + y: rect.y as number, + width: rect.width as number, + height: rect.height as number, + }, + }; +} + +function record(value: unknown): Record | undefined { + return value !== null && typeof value === 'object' && !Array.isArray(value) + ? (value as Record) + : undefined; +} diff --git a/scripts/ios-ax-bridge-spike/config.ts b/scripts/ios-ax-bridge-spike/config.ts new file mode 100644 index 000000000..880d66960 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/config.ts @@ -0,0 +1,255 @@ +import path from 'node:path'; +import { + parseLocalStates, + parseSampleCount, + parseScreenIds, +} from '../ios-snapshot-benchmark/definitions.ts'; +import { resolveRepoRoot } from '../ios-snapshot-benchmark/host.ts'; +import { + assertBenchmarkOwner, + assertOwnedDerivedPath, + createBenchmarkStateRoot, +} from '../ios-snapshot-benchmark/state-ownership.ts'; +import type { CandidateId, ResourceLimits } from './types.ts'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; + +class SpikeConfigurationError extends Error { + constructor(message: string) { + super(message); + this.name = 'SpikeConfigurationError'; + } +} + +export type SpikeConfig = Readonly<{ + repoRoot: string; + udid: string; + appBundleId: string; + targetWindowName?: string; + targetProcessId?: number; + helperPath?: string; + guestCompanion?: string; + guestPython?: string; + guestSitePackages?: string; + stateDir: string; + derivedPath: string; + outputPath: string; + screens: ReturnType; + states: ReturnType; + samples: number; + candidates: CandidateId[]; + limits: ResourceLimits; + applyPreferences: boolean; + keepDevice: boolean; +}>; + +const CANDIDATES: readonly CandidateId[] = [ + 'public-macos-ax', + 'guest-simulator-framework-bridge', + 'xctest-control', +]; +const BOOLEAN_FLAGS = new Set(['--apply-preferences', '--keep-device']); +const VALUE_FLAGS = new Set([ + '--udid', + '--app-bundle-id', + '--target-process-id', + '--helper-path', + '--guest-companion', + '--guest-python', + '--guest-site-packages', + '--state-dir', + '--derived-path', + '--out', + '--screen', + '--state', + '--samples', + '--candidate', +]); + +export function parseConfig(argv: readonly string[]): SpikeConfig { + const parsed = parseArguments(argv[0] === '--' ? argv.slice(1) : argv); + const states = parseStates(parsed.values.get('--state')); + const screens = parseScreens(parsed.values.get('--screen')); + const candidates = parseCandidates(parsed.values.get('--candidate')); + const samples = parseSamples(parsed.values.get('--samples'), states); + const { stateDir, derivedPath } = resolveOwnedStatePaths(parsed.values); + return { + repoRoot: resolveRepoRoot(), + udid: required(parsed.values, '--udid'), + appBundleId: parsed.values.get('--app-bundle-id') ?? 'com.apple.dt.Devices', + ...optionalNumber(parsed.values.get('--target-process-id')), + ...optionalPath(parsed.values.get('--helper-path'), 'helperPath'), + ...optionalPath(parsed.values.get('--guest-companion'), 'guestCompanion'), + ...optionalCommand(parsed.values.get('--guest-python'), 'guestPython'), + ...optionalPath(parsed.values.get('--guest-site-packages'), 'guestSitePackages'), + stateDir, + derivedPath, + outputPath: resolvePath( + parsed.values.get('--out'), + path.join(stateDir, 'ios-simulator-ax-bridge-spike.v1.json.gz'), + ), + screens, + states, + samples, + candidates, + limits: DEFAULT_SPIKE_LIMITS, + applyPreferences: parsed.booleans.has('--apply-preferences'), + keepDevice: parsed.booleans.has('--keep-device'), + }; +} + +function resolveOwnedStatePaths(values: ReadonlyMap): { + stateDir: string; + derivedPath: string; +} { + const stateDir = values.has('--state-dir') + ? resolvePath(values.get('--state-dir'), '') + : createBenchmarkStateRoot(); + const derivedPath = resolvePath( + values.get('--derived-path'), + path.join(stateDir, 'derived-data'), + ); + try { + assertBenchmarkOwner(stateDir); + assertOwnedDerivedPath(derivedPath, stateDir); + } catch (error) { + throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); + } + return { stateDir, derivedPath }; +} + +function parseArguments(argv: readonly string[]): { + values: Map; + booleans: Set; +} { + exitAfterHelp(argv); + const values = new Map(); + const booleans = new Set(); + for (let index = 0; index < argv.length; index += 1) { + const argument = parseArgument(argv, index); + recordArgument(argument, values, booleans); + index = argument.nextIndex; + } + return { values, booleans }; +} + +function exitAfterHelp(argv: readonly string[]): void { + if (!argv.includes('--help') && !argv.includes('-h')) return; + printHelp(); + process.exit(0); +} + +function recordArgument( + argument: { flag: string; value?: string }, + values: Map, + booleans: Set, +): void { + if (argument.value === undefined) booleans.add(argument.flag); + else values.set(argument.flag, argument.value); +} + +function parseArgument( + argv: readonly string[], + index: number, +): { flag: string; value?: string; nextIndex: number } { + const flag = argv[index]; + if (flag === undefined) throw new SpikeConfigurationError('Missing option.'); + if (BOOLEAN_FLAGS.has(flag)) return { flag, nextIndex: index }; + return parseValueArgument(flag, argv[index + 1], index); +} + +function parseValueArgument( + flag: string, + value: string | undefined, + index: number, +): { flag: string; value: string; nextIndex: number } { + if (!VALUE_FLAGS.has(flag)) throw new SpikeConfigurationError(`Unknown option: ${flag}`); + if (!value || value.startsWith('--')) { + throw new SpikeConfigurationError(`${flag} requires a value.`); + } + return { flag, value, nextIndex: index + 1 }; +} + +function parseStates(value: string | undefined): SpikeConfig['states'] { + try { + return parseLocalStates(value); + } catch (error) { + throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); + } +} + +function parseScreens(value: string | undefined): SpikeConfig['screens'] { + try { + return parseScreenIds(value); + } catch (error) { + throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); + } +} + +function parseSamples(value: string | undefined, states: SpikeConfig['states']): number { + try { + return parseSampleCount(value, states); + } catch (error) { + throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); + } +} + +function parseCandidates(value: string | undefined): CandidateId[] { + const candidates = (value ?? CANDIDATES.join(',')) + .split(',') + .map((candidate) => candidate.trim()) + .filter(Boolean); + const unknown = candidates.filter((candidate) => !CANDIDATES.includes(candidate as CandidateId)); + if (unknown.length > 0) + throw new SpikeConfigurationError(`Unknown --candidate value: ${unknown.join(', ')}`); + if (candidates.length === 0) + throw new SpikeConfigurationError('--candidate requires at least one value.'); + return [...new Set(candidates)] as CandidateId[]; +} + +function required(values: Map, flag: string): string { + const value = values.get(flag); + if (!value) throw new SpikeConfigurationError(`${flag} is required for a reproducible run.`); + return value; +} + +function optionalPath( + value: string | undefined, + key: 'helperPath' | 'guestCompanion' | 'guestSitePackages', +): + | { helperPath: string } + | { guestCompanion: string } + | { guestSitePackages: string } + | Record { + return value === undefined + ? {} + : ({ [key]: path.resolve(value) } as + | { helperPath: string } + | { guestCompanion: string } + | { guestSitePackages: string }); +} + +function optionalCommand( + value: string | undefined, + key: 'guestPython', +): { guestPython: string } | Record { + return value === undefined ? {} : ({ [key]: value } as { guestPython: string }); +} + +function optionalNumber(value: string | undefined): { targetProcessId?: number } { + if (value === undefined) return {}; + const number = Number(value); + if (!Number.isInteger(number) || number < 1) { + throw new SpikeConfigurationError('--target-process-id must be a positive integer.'); + } + return { targetProcessId: number }; +} + +function resolvePath(value: string | undefined, fallback: string): string { + return path.resolve(value ?? fallback); +} + +function printHelp(): void { + process.stdout.write( + `Usage: pnpm bench:ios-ax-bridge -- [options]\n\nRequired:\n --udid \n\nOptions:\n --candidate public-macos-ax, guest-simulator-framework-bridge, xctest-control\n --state #2189 state names\n --screen #2189 fixture names\n --samples #2189 minimums: cold 10, warm/relaunch 20\n --apply-preferences apply task-owned preboot AX preference experiment\n --guest-companion official idb_companion binary with SimulatorFrameworkBridge\n --guest-python Python interpreter used for the persistent idb client\n --guest-site-packages official idb 1.5.2 site-packages directory\n --target-process-id DeviceHub/Simulator host process to inspect\n --out raw JSON report path\n --keep-device leave the dedicated Simulator shutdown/boot state unchanged\n`, + ); +} diff --git a/scripts/ios-ax-bridge-spike/corpus-coverage.ts b/scripts/ios-ax-bridge-spike/corpus-coverage.ts new file mode 100644 index 000000000..2ed36b748 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/corpus-coverage.ts @@ -0,0 +1,32 @@ +import { parseLocalStates, parseScreenIds } from '../ios-snapshot-benchmark/definitions.ts'; +import type { LocalState, ScreenId } from '../ios-snapshot-benchmark/types.ts'; +import type { CandidateId, SpikeReport } from './types.ts'; + +const FULL_STATES = parseLocalStates(undefined); +const FULL_SCREENS = parseScreenIds(undefined); + +export function corpusCoverage( + states: readonly LocalState[], + screens: readonly ScreenId[], + cells: SpikeReport['cells'], + candidates: readonly CandidateId[], +): SpikeReport['corpusCoverage'] { + const fullRequested = + FULL_STATES.every((state) => states.includes(state)) && + FULL_SCREENS.every((screen) => screens.includes(screen)); + if (!fullRequested || cells.length === 0) return 'decisive-early-stop'; + const fullProduced = candidates.every((candidate) => + FULL_STATES.every((state) => + FULL_SCREENS.every((screen) => + cells.some( + (cell) => + cell.candidate === candidate && + cell.state === state && + cell.screen === screen && + cell.acquisitionSamples.length >= cell.sampleMinimum, + ), + ), + ), + ); + return fullProduced ? 'full' : 'decisive-early-stop'; +} diff --git a/scripts/ios-ax-bridge-spike/decision.test.ts b/scripts/ios-ax-bridge-spike/decision.test.ts new file mode 100644 index 000000000..ea738c03d --- /dev/null +++ b/scripts/ios-ax-bridge-spike/decision.test.ts @@ -0,0 +1,132 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { decideSpike } from './decision.ts'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import type { CandidateId, LifecycleEvidence, PreferenceEvidence, SpikeCell } from './types.ts'; +import type { LocalState, ScreenId } from '../ios-snapshot-benchmark/types.ts'; + +const lifecycle: LifecycleEvidence = { + source: 'framed-protocol-fixture', + crash: { failure: 'process-crash', recovered: true }, + timeout: { failure: 'timeout', recovered: true }, + cancellation: { failure: 'cancelled', recovered: true }, + staleGeneration: { failure: 'stale-generation', recovered: true }, +}; + +const preferences: PreferenceEvidence = { + applied: true, + restored: true, + fixtureLaunchCompatible: true, + simulatorStateBefore: 'Shutdown', + diffs: [], +}; + +test('fails closed when a bridge has no readable corpus cells', () => { + const result = decideSpike([], lifecycle, preferences, DEFAULT_SPIKE_LIMITS, 'completed', [ + { + candidate: 'public-macos-ax', + failure: { kind: 'unsupported-mechanism', code: 'permission' }, + }, + ]); + assert.equal(result.decision, 'NO-GO'); + assert.ok(result.reasons.some((reason) => reason.includes('No guest SimulatorFrameworkBridge'))); +}); + +test('does not let failed samples contribute fabricated zero latency', () => { + const cell = readableCell('guest-simulator-framework-bridge', 'warm', 'list'); + const failed = { + ...cell.acquisitionSamples[0]!, + ok: false, + firstTree: 'not-observed' as const, + firstLookMs: 0, + metrics: { ...cell.acquisitionSamples[0]!.metrics!, durationMs: 0 }, + failure: { kind: 'timeout' as const, code: 'batch-duration-limit' }, + }; + const result = decideSpike( + [{ ...cell, acquisitionSamples: [failed, ...cell.acquisitionSamples.slice(1)] }], + lifecycle, + preferences, + DEFAULT_SPIKE_LIMITS, + 'completed', + [{ candidate: 'guest-simulator-framework-bridge' }], + ); + assert.equal(result.decision, 'NO-GO'); + assert.ok(result.reasons.some((reason) => reason.includes('duration bound'))); + assert.ok(result.reasons.some((reason) => reason.includes('not produce 20 readable samples'))); +}); + +test('reports a decisive partial corpus failure instead of replacing it with completeness', () => { + const cell = readableCell('guest-simulator-framework-bridge', 'warm', 'list'); + const slow = { + ...cell, + acquisitionSamples: cell.acquisitionSamples.map((sample) => ({ + ...sample, + metrics: { ...sample.metrics!, durationMs: 1_000 }, + })), + }; + const result = decideSpike([slow], lifecycle, preferences, DEFAULT_SPIKE_LIMITS, 'completed', [ + { candidate: 'guest-simulator-framework-bridge' }, + ]); + assert.equal(result.decision, 'NO-GO'); + assert.ok(result.reasons.some((reason) => reason.includes('warm/list acquisition'))); + assert.equal( + result.reasons.some((reason) => reason.includes('required corpus')), + false, + ); +}); + +test('selects one complete viable guest bridge without requiring public AX to pass', () => { + const states: LocalState[] = ['cold-cold', 'cold', 'warm', 'relaunch']; + const screens: ScreenId[] = [ + 'quiet', + 'list', + 'nested-scroll', + 'alert', + 'system-surface', + 'xctest-stress', + ]; + const cells = states.flatMap((state) => + screens.map((screen) => readableCell('guest-simulator-framework-bridge', state, screen)), + ); + const result = decideSpike(cells, lifecycle, preferences, DEFAULT_SPIKE_LIMITS, 'completed', [ + { candidate: 'public-macos-ax' }, + { + candidate: 'guest-simulator-framework-bridge', + failure: { kind: 'timeout', code: 'batch-duration-limit' }, + }, + ]); + assert.deepEqual(result, { decision: 'GO', reasons: [] }); +}); + +function readableCell(candidate: CandidateId, state: LocalState, screen: ScreenId): SpikeCell { + const sampleMinimum = state === 'cold' || state === 'cold-cold' ? 10 : 20; + return { + candidate, + state, + screen, + sampleMinimum, + acquisitionSamples: Array.from({ length: sampleMinimum }, (_, index) => ({ + index: index + 1, + candidate, + state, + screen, + startedAt: '2026-09-01T00:00:00.000Z', + finishedAt: '2026-09-01T00:00:00.010Z', + operation: 'acquisition' as const, + wallClockMs: 10, + firstLookMs: 100, + firstTree: 'readable' as const, + ok: true, + metrics: { + requestBytes: 1, + responseBytes: 1, + nodeCount: 1, + maxTraversalDepth: 0, + cpuMs: 1, + memoryBytes: 1, + durationMs: 10, + }, + })), + presentationSamples: [], + }; +} diff --git a/scripts/ios-ax-bridge-spike/decision.ts b/scripts/ios-ax-bridge-spike/decision.ts new file mode 100644 index 000000000..3efd9a0fc --- /dev/null +++ b/scripts/ios-ax-bridge-spike/decision.ts @@ -0,0 +1,253 @@ +import type { + CandidateId, + LifecycleEvidence, + PreferenceEvidence, + ResourceLimits, + SpikeCell, +} from './types.ts'; +import { parseLocalStates, parseScreenIds } from '../ios-snapshot-benchmark/definitions.ts'; + +export function decideSpike( + cells: readonly SpikeCell[], + lifecycle: LifecycleEvidence, + preferences: PreferenceEvidence, + limits: ResourceLimits, + status: 'completed' | 'stopped' = 'completed', + protocolProbes: readonly { + candidate: CandidateId; + failure?: { kind: string; code?: string }; + }[] = [], +): { decision: 'GO' | 'NO-GO'; reasons: string[] } { + const reasons = [ + ...statusReasons(status), + ...preferenceReasons(preferences), + ...bridgeRouteReasons(cells, protocolProbes, limits), + ...lifecycleReasons(lifecycle), + ]; + const uniqueReasons = [...new Set(reasons)]; + return { + decision: uniqueReasons.length === 0 ? 'GO' : 'NO-GO', + reasons: uniqueReasons, + }; +} + +function statusReasons(status: 'completed' | 'stopped'): string[] { + return status === 'stopped' ? ['The live run stopped before the full corpus completed.'] : []; +} + +function preferenceReasons(preferences: PreferenceEvidence): string[] { + if (!preferences.applied) + return ['The required task-owned Simulator preference experiment was not run.']; + if (!preferences.restored) + return ['The task-owned Simulator preference experiment was not restored.']; + if (preferences.fixtureLaunchCompatible === false) + return ['The task-owned Simulator preference experiment prevented the fixture from launching.']; + return []; +} + +function bridgeRouteReasons( + cells: readonly SpikeCell[], + probes: readonly { candidate: CandidateId; failure?: { kind: string; code?: string } }[], + limits: ResourceLimits, +): string[] { + const candidate = 'guest-simulator-framework-bridge' as const; + const candidateCells = cells.filter((cell) => cell.candidate === candidate); + const candidateProbes = probes.filter((probe) => probe.candidate === candidate); + if (candidateCells.length === 0 && candidateProbes.length === 0) { + return ['No guest SimulatorFrameworkBridge candidate produced evidence.']; + } + const coreReasons = [ + ...probeReasons(candidateProbes), + ...candidateDecisionReasons(candidateCells, limits), + ]; + return coreReasons.length > 0 + ? coreReasons + : candidateCompletenessReasons(candidate, candidateCells); +} + +function probeReasons( + probes: readonly { candidate: CandidateId; failure?: { kind: string; code?: string } }[], +): string[] { + return probes.flatMap((probe) => + probe.failure && !isReadinessProbeFailure(probe.failure.code) + ? [ + `${probe.candidate} protocol probe returned ${probe.failure.kind}/${probe.failure.code ?? 'no-code'}.`, + ] + : [], + ); +} + +function isReadinessProbeFailure(code: string | undefined): boolean { + return [ + 'target-application-unavailable', + 'target-has-no-accessibility-windows', + 'target-simulator-window-unavailable', + 'target-simulator-content-unavailable', + 'batch-duration-limit', + ].includes(code ?? ''); +} + +const REQUIRED_STATES = parseLocalStates(undefined); +const REQUIRED_SCREENS = parseScreenIds(undefined); + +function candidateCompletenessReasons( + candidate: Exclude, + cells: readonly SpikeCell[], +): string[] { + if (cells.length === 0) return [`${candidate} produced no cells.`]; + const observed = new Set(cells.map((cell) => `${cell.state}/${cell.screen}`)); + const missing = REQUIRED_STATES.flatMap((state) => + REQUIRED_SCREENS.flatMap((screen) => + observed.has(`${state}/${screen}`) ? [] : [`${state}/${screen}`], + ), + ); + if (missing.length === 0) return []; + return [`${candidate} did not complete the required corpus (${missing.length} cells missing).`]; +} + +function lifecycleReasons(lifecycle: LifecycleEvidence): string[] { + const checks = [ + ['process crash', lifecycle.crash, 'process-crash'], + ['timeout', lifecycle.timeout, 'timeout'], + ['cancellation', lifecycle.cancellation, 'cancelled'], + ['stale target-generation', lifecycle.staleGeneration, 'stale-generation'], + ] as const; + const reasons: string[] = []; + for (const [label, result, expected] of checks) { + if (result.failure === expected && result.recovered) continue; + reasons.push( + `Framed ${label} recovery did not produce the required typed result and recovery.`, + ); + } + return reasons; +} + +function candidateDecisionReasons(cells: readonly SpikeCell[], limits: ResourceLimits): string[] { + const reasons: string[] = []; + for (const cell of cells) { + reasons.push(...sampleShapeReasons(cell)); + reasons.push(...resourceReasons(cell, limits)); + reasons.push(...latencyReasons(cell)); + } + return [...new Set(reasons)]; +} + +function sampleShapeReasons(cell: SpikeCell): string[] { + const samples = cell.acquisitionSamples; + const successful = samples.filter((sample) => sample.ok && sample.firstTree === 'readable'); + const reasons: string[] = []; + if (successful.length < cell.sampleMinimum) { + reasons.push( + `${cell.candidate} ${cell.state}/${cell.screen} did not produce ${cell.sampleMinimum} readable samples.`, + ); + } + if ( + samples.some((sample) => ['unreadable', 'empty', 'not-observed'].includes(sample.firstTree)) + ) { + reasons.push( + `${cell.candidate} ${cell.state}/${cell.screen} has unreadable or empty first-tree evidence.`, + ); + } + if (samples.some((sample) => sample.failure?.kind === 'stale-generation')) { + reasons.push( + `${cell.candidate} ${cell.state}/${cell.screen} has stale-generation acquisition evidence.`, + ); + } + if (samples.some((sample) => sample.acquisition?.truncated === true)) { + reasons.push( + `${cell.candidate} ${cell.state}/${cell.screen} published truncated acquisition facts.`, + ); + } + if ( + samples.some( + (sample) => + sample.ok && + sample.acquisition !== undefined && + sample.acquisition.targetGeneration === null, + ) + ) { + reasons.push( + `${cell.candidate} ${cell.state}/${cell.screen} did not report a target generation for a successful acquisition.`, + ); + } + return reasons; +} + +function resourceReasons(cell: SpikeCell, limits: ResourceLimits): string[] { + const checks = [ + [ + 'duration', + limits.maxDurationMs, + (sample: SpikeCell['acquisitionSamples'][number]) => sample.metrics?.durationMs, + ], + [ + 'CPU', + limits.maxCpuMs, + (sample: SpikeCell['acquisitionSamples'][number]) => sample.metrics?.cpuMs, + ], + [ + 'memory', + limits.maxMemoryBytes, + (sample: SpikeCell['acquisitionSamples'][number]) => sample.metrics?.memoryBytes, + ], + ] as const; + const reasons: string[] = []; + if ( + cell.acquisitionSamples.some( + (sample) => + sample.failure?.kind === 'timeout' || sample.failure?.code === 'batch-duration-limit', + ) + ) { + reasons.push(`${cell.candidate} ${cell.state}/${cell.screen} exceeded the duration bound.`); + } + for (const [label, limit, readValue] of checks) { + if (cell.acquisitionSamples.some((sample) => exceedsLimit(readValue(sample), limit))) { + reasons.push(`${cell.candidate} ${cell.state}/${cell.screen} exceeded the ${label} bound.`); + } + } + return reasons; +} + +function latencyReasons(cell: SpikeCell): string[] { + const successful = cell.acquisitionSamples.filter( + (sample) => sample.ok && sample.firstTree === 'readable', + ); + const firstLook = finite(successful.map((sample) => sample.firstLookMs)); + const firstLookTarget = { + 'cold-cold': { limit: 5_000, label: 'cold-cold first look missed the 5 second target.' }, + cold: { limit: 1_500, label: 'cold prepared first look missed the 1.5 second target.' }, + relaunch: { limit: 250, label: 'relaunch first look missed the 250 ms target.' }, + warm: undefined, + }[cell.state]; + const reasons: string[] = []; + if (firstLookTarget && percentile(firstLook, 95) >= firstLookTarget.limit) { + reasons.push(`${cell.candidate} ${firstLookTarget.label}`); + } + const acquisition = finite(successful.map((sample) => sample.metrics?.durationMs)); + if ( + cell.state === 'warm' && + (percentile(acquisition, 50) >= 75 || percentile(acquisition, 95) >= 150) + ) { + reasons.push( + `${cell.candidate} ${cell.state}/${cell.screen} acquisition missed the 75/150 ms target.`, + ); + } + return reasons; +} + +function exceedsLimit(value: number | null | undefined, limit: number): boolean { + return value !== null && value !== undefined && value > limit; +} + +function finite(values: readonly (number | undefined)[]): number[] { + return values.filter( + (value): value is number => typeof value === 'number' && Number.isFinite(value), + ); +} + +function percentile(values: readonly number[], percentage: number): number { + if (values.length === 0) return Number.POSITIVE_INFINITY; + const sorted = [...values].sort((left, right) => left - right); + const rank = Math.ceil((percentage / 100) * sorted.length); + return sorted[Math.min(sorted.length - 1, Math.max(0, rank - 1))]!; +} diff --git a/scripts/ios-ax-bridge-spike/framed-process.test.ts b/scripts/ios-ax-bridge-spike/framed-process.test.ts new file mode 100644 index 000000000..52dcf77f1 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/framed-process.test.ts @@ -0,0 +1,118 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { runFramedBatch } from './framed-process.ts'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import type { SpikeRequest } from './types.ts'; + +function request(id: string): SpikeRequest { + return { + version: 1, + id, + candidate: 'public-macos-ax', + simulatorUdid: '00000000-0000-0000-0000-000000000000', + state: 'warm', + screen: 'quiet', + appBundleId: 'com.apple.dt.Devices', + limits: DEFAULT_SPIKE_LIMITS, + }; +} + +function childScript(mode: 'healthy' | 'delayed' | 'malformed' | 'crash' | 'hang'): { + file: string; + args: string[]; +} { + const payload = JSON.stringify({ + version: 1, + ok: true, + acquisition: { + targetId: 'simulator:test', + targetGeneration: 'generation-1', + nodes: [{ id: 'n0', role: 'AXApplication' }], + viewport: { kind: 'missing', reason: 'not-provided' }, + truncated: false, + residue: [], + }, + metrics: { + requestBytes: 10, + responseBytes: 10, + nodeCount: 1, + maxTraversalDepth: 0, + cpuMs: 1, + memoryBytes: 1, + durationMs: 1, + }, + }); + const malformed = payload.replace('"id":"n0"', '"id":"n0","hittable":true'); + const response = mode === 'malformed' ? malformed : payload; + const script = ` + import process from 'node:process'; + if (${JSON.stringify(mode)} === 'crash') process.exit(17); + if (${JSON.stringify(mode)} === 'hang') { + setInterval(() => {}, 1000); + } else { + let input = ''; + process.stdin.setEncoding('utf8'); + process.stdin.on('data', (chunk) => { input += chunk; }); + process.stdin.on('end', async () => { + for (const line of input.split('\\n').filter(Boolean)) { + const request = JSON.parse(line); + if (${JSON.stringify(mode)} === 'delayed') await new Promise((resolve) => setTimeout(resolve, 100)); + process.stdout.write(JSON.stringify({ ...${response}, id: request.id, candidate: request.candidate }) + '\\n'); + } + }); + } + `; + return { file: process.execPath, args: ['--input-type=module', '-e', script] }; +} + +test('uses one framed response per request and keeps diagnostics on stderr', async () => { + const result = await runFramedBatch(childScript('healthy'), [request('one'), request('two')]); + assert.deepEqual( + result.responses.map((response) => response.id), + ['one', 'two'], + ); + assert.equal( + result.responses.every((response) => response.ok), + true, + ); +}); + +test('budgets a framed batch per request rather than timing the whole batch as one request', async () => { + const result = await runFramedBatch( + childScript('delayed'), + [request('one'), request('two'), request('three')], + { limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 200 } }, + ); + assert.equal( + result.responses.every((response) => response.ok), + true, + ); +}); + +test('classifies malformed trees, crashes, timeouts, and cancellation', async () => { + const malformed = await runFramedBatch(childScript('malformed'), [request('malformed')]); + assert.equal(malformed.responses[0]?.failure?.kind, 'malformed-tree'); + + const crashed = await runFramedBatch(childScript('crash'), [request('crash')]); + assert.equal(crashed.responses[0]?.failure?.kind, 'process-crash'); + + const timeout = await runFramedBatch(childScript('hang'), [request('timeout')], { + limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 40 }, + }); + assert.equal(timeout.responses[0]?.failure?.kind, 'timeout'); + + const controller = new AbortController(); + const cancellation = runFramedBatch(childScript('hang'), [request('cancel')], { + signal: controller.signal, + limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 200 }, + }); + setTimeout(() => controller.abort(), 10); + const cancelled = await cancellation; + assert.equal(cancelled.responses[0]?.failure?.kind, 'cancelled'); + + const transport = await runFramedBatch( + { file: '/private/tmp/agent-device-ios-ax-spike-missing-helper' }, + [request('transport')], + ); + assert.equal(transport.responses[0]?.failure?.kind, 'transport-failure'); +}); diff --git a/scripts/ios-ax-bridge-spike/framed-process.ts b/scripts/ios-ax-bridge-spike/framed-process.ts new file mode 100644 index 000000000..935dadf02 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/framed-process.ts @@ -0,0 +1,214 @@ +import { spawn } from 'node:child_process'; +import type { ChildProcess } from 'node:child_process'; +import { encodeFrame, DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import { failureResponse, parseSpikeResponse } from './protocol.ts'; +import type { ResourceLimits, SpikeFailureKind, SpikeRequest, SpikeResponse } from './types.ts'; + +export type FramedProcessSpec = Readonly<{ + file: string; + args?: readonly string[]; + cwd?: string; + env?: NodeJS.ProcessEnv; +}>; + +export type FramedBatchResult = Readonly<{ + responses: readonly SpikeResponse[]; + stderr: string; +}>; + +export async function runFramedBatch( + spec: FramedProcessSpec, + requests: readonly SpikeRequest[], + options: Readonly<{ signal?: AbortSignal; limits?: ResourceLimits }> = {}, +): Promise { + const limits = options.limits ?? DEFAULT_SPIKE_LIMITS; + const encodedRequests = requests.map((request) => ({ + request, + ...encodeFrame(request), + })); + const oversized = encodedRequests.find(({ bytes }) => bytes > limits.maxRequestBytes); + if (oversized) { + return { + responses: requests.map((request) => + failureResponse( + request, + { kind: 'transport-failure', code: 'request-limit-exceeded' }, + { + requestBytes: + encodedRequests.find((item) => item.request.id === request.id)?.bytes ?? 0, + }, + ), + ), + stderr: '', + }; + } + if (requests.length === 0) return { responses: [], stderr: '' }; + if (options.signal?.aborted) return cancelledBatch(requests, encodedRequests); + + return new Promise((resolve) => { + const child = spawn(spec.file, [...(spec.args ?? [])], { + cwd: spec.cwd, + env: { ...process.env, ...spec.env }, + stdio: ['pipe', 'pipe', 'pipe'], + }); + const responses = new Map(); + const requestById = new Map(requests.map((request) => [request.id, request])); + let stdoutBuffer = Buffer.alloc(0); + let stdoutBytes = 0; + let stderr = ''; + let settled = false; + const batchDurationMs = limits.maxDurationMs * requests.length; + const timer = setTimeout(() => finish('timeout', 'batch-duration-limit'), batchDurationMs); + + const finish = (kind?: SpikeFailureKind, code?: string): void => { + if (settled) return; + settled = true; + if (timer) clearTimeout(timer); + options.signal?.removeEventListener('abort', onAbort); + if (kind) { + for (const request of requests) { + if (!responses.has(request.id)) { + responses.set( + request.id, + failureResponse( + request, + { kind, ...(code ? { code } : {}) }, + { + requestBytes: requestBytesFor(request, encodedRequests), + responseBytes: stdoutBytes, + }, + ), + ); + } + } + } + if (kind === 'timeout' || kind === 'cancelled') terminate(child); + resolve({ + responses: requests.map( + (request) => + responses.get(request.id) ?? + failureResponse( + request, + { kind: 'transport-failure', code: 'missing-response' }, + { + requestBytes: requestBytesFor(request, encodedRequests), + responseBytes: stdoutBytes, + }, + ), + ), + stderr, + }); + }; + const onAbort = (): void => finish('cancelled', 'abort-signal'); + options.signal?.addEventListener('abort', onAbort, { once: true }); + child.stdout.on('data', (chunk: Buffer | string) => { + if (settled) return; + const data = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk); + stdoutBytes += data.length; + if (stdoutBytes > limits.maxResponseBytes) { + finish('malformed-tree', 'response-limit-exceeded'); + return; + } + stdoutBuffer = Buffer.concat([stdoutBuffer, data]); + consumeLines(); + }); + child.stderr.on('data', (chunk: Buffer | string) => { + if (stderr.length >= 64 * 1024) return; + stderr += (Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk).slice( + 0, + 64 * 1024 - stderr.length, + ); + }); + child.on('error', (error: NodeJS.ErrnoException) => { + finish('transport-failure', error.code ?? 'spawn-error'); + }); + child.on('close', (code) => { + if (settled) return; + consumeLines(true); + if (settled) return; + if (code !== 0) { + finish('process-crash', `exit-${code ?? 'unknown'}`); + return; + } + if (responses.size !== requests.length) { + finish('transport-failure', 'missing-response'); + return; + } + finish(); + }); + child.stdin.on('error', () => finish('transport-failure', 'stdin-error')); + child.stdin.end(encodedRequests.map(({ line }) => line).join('')); + + function consumeLines(final = false): void { + let newline = stdoutBuffer.indexOf(0x0a); + while (newline >= 0) { + const line = stdoutBuffer.subarray(0, newline); + stdoutBuffer = stdoutBuffer.subarray(newline + 1); + consumeLine(line); + if (settled) return; + newline = stdoutBuffer.indexOf(0x0a); + } + if (final && stdoutBuffer.length > 0) consumeLine(stdoutBuffer); + } + + function consumeLine(line: Buffer): void { + const text = line.toString('utf8').trim(); + if (text.length === 0) return; + if (line.length > limits.maxResponseBytes) { + finish('malformed-tree', 'frame-limit-exceeded'); + return; + } + let value: unknown; + try { + value = JSON.parse(text); + } catch { + finish('malformed-tree', 'invalid-json'); + return; + } + const id = readId(value); + const request = id ? requestById.get(id) : undefined; + if (!request || responses.has(request.id)) { + finish('malformed-tree', 'response-id-invalid'); + return; + } + responses.set(request.id, parseSpikeResponse(value, request, line.length + 1)); + } + }); +} + +function cancelledBatch( + requests: readonly SpikeRequest[], + encodedRequests: readonly Readonly<{ request: SpikeRequest; bytes: number; line: string }>[], +): FramedBatchResult { + return { + responses: requests.map((request) => + failureResponse( + request, + { kind: 'cancelled', code: 'abort-signal' }, + { + requestBytes: requestBytesFor(request, encodedRequests), + }, + ), + ), + stderr: '', + }; +} + +function requestBytesFor( + request: SpikeRequest, + encodedRequests: readonly Readonly<{ request: SpikeRequest; bytes: number; line: string }>[], +): number { + return encodedRequests.find((item) => item.request.id === request.id)?.bytes ?? 0; +} + +function readId(value: unknown): string | undefined { + if (value && typeof value === 'object' && !Array.isArray(value)) { + const id = (value as Record).id; + return typeof id === 'string' ? id : undefined; + } + return undefined; +} + +function terminate(child: ChildProcess): void { + if (!child.killed) child.kill('SIGTERM'); +} diff --git a/scripts/ios-ax-bridge-spike/guest-adapter.ts b/scripts/ios-ax-bridge-spike/guest-adapter.ts new file mode 100644 index 000000000..f5e2c02c1 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-adapter.ts @@ -0,0 +1,243 @@ +import fs from 'node:fs'; +import os from 'node:os'; +import path from 'node:path'; +import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import { PersistentFramedProcess } from './persistent-process.ts'; +import { failureResponse } from './protocol.ts'; +import type { AcquisitionAdapter, AdapterOptions } from './adapter.ts'; +import type { ResourceLimits, SpikeRequest } from './types.ts'; + +const CANDIDATE = 'guest-simulator-framework-bridge' as const; + +export const GUEST_MECHANISM_EVIDENCE = { + implementation: 'idb', + release: 'v1.5.2', + companionArchive: 'idb-companion.macos-arm64.tar.gz', + companionSha256: 'f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08', + cliArchive: 'idb-cli-1.5.2.arm64_tahoe.bottle.tar.gz', + cliSha256: 'ce574aa28ecf3e33a5249d60578a1dc2f609ec82f7e240907b6d9fde6251dda6', + backend: 'axbridge-persistent', + outputFormat: 'default', + client: 'persistent-in-repository-reader', +} as const; + +export function createGuestSimulatorFrameworkBridgeAdapter( + options: AdapterOptions, +): AcquisitionAdapter { + const limits = options.limits ?? DEFAULT_SPIKE_LIMITS; + const readerPath = path.join( + options.repoRoot, + 'scripts', + 'ios-ax-bridge-spike', + 'guest-reader.py', + ); + if ( + !options.guestCompanion || + !fs.existsSync(options.guestCompanion) || + !options.guestSitePackages || + !fs.existsSync(options.guestSitePackages) || + !fs.existsSync(readerPath) + ) { + return unavailableAdapter('guest-tool-unavailable'); + } + const session = new GuestSession({ + companionPath: options.guestCompanion, + python: options.guestPython ?? 'python3', + sitePackages: options.guestSitePackages, + readerPath, + repoRoot: options.repoRoot, + limits, + }); + return { + candidate: CANDIDATE, + acquireBatch: (requests, acquireOptions) => session.acquireBatch(requests, acquireOptions), + close: () => session.close(), + }; +} + +function unavailableAdapter(code: string): AcquisitionAdapter { + return { + candidate: CANDIDATE, + async acquireBatch(requests) { + return { + responses: requests.map((request) => + failureResponse( + request, + { kind: 'unsupported-mechanism', code }, + { + requestBytes: Buffer.byteLength(JSON.stringify(request)) + 1, + }, + ), + ), + stderr: '', + }; + }, + }; +} + +type GuestSessionOptions = Readonly<{ + companionPath: string; + python: string; + sitePackages: string; + readerPath: string; + repoRoot: string; + limits: ResourceLimits; +}>; + +class GuestSession { + private readonly tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'agent-device-guest-')); + private readonly socketPath = path.join(this.tempDir, 'bridge.sock'); + private readonly companionPath: string; + private companion?: ChildProcessWithoutNullStreams; + private companionUdid?: string; + private companionStderr = ''; + private closed = false; + private readonly reader: PersistentFramedProcess; + + constructor(options: GuestSessionOptions) { + this.companionPath = options.companionPath; + this.reader = new PersistentFramedProcess({ + file: options.python, + args: [options.readerPath, '--socket', this.socketPath], + cwd: options.repoRoot, + env: { + PYTHONPATH: [options.sitePackages, process.env.PYTHONPATH] + .filter(Boolean) + .join(path.delimiter), + PYTHONUNBUFFERED: '1', + }, + limits: options.limits, + beforeStart: (requests) => this.ensureCompanion(requests[0]!.simulatorUdid, options.limits), + }); + } + + async acquireBatch( + requests: readonly SpikeRequest[], + options: Readonly<{ signal?: AbortSignal }> = {}, + ) { + const result = await this.reader.acquireBatch(requests, options); + const stderr = this.takeCompanionStderr(); + return stderr ? { ...result, stderr: `${stderr}${result.stderr}` } : result; + } + + async close(): Promise { + this.closed = true; + await this.reader.close(); + terminate(this.companion); + this.companion = undefined; + fs.rmSync(this.tempDir, { recursive: true, force: true }); + } + + private async ensureCompanion(udid: string, limits: ResourceLimits): Promise { + if (this.closed) throw new GuestStartError('guest-adapter-closed'); + if (this.companion && !this.companion.killed && this.companion.exitCode === null) { + if (this.companionUdid !== udid) throw new GuestStartError('guest-udid-changed'); + return; + } + fs.rmSync(this.socketPath, { force: true }); + const companion = spawn( + this.companionPath, + [ + '--udid', + udid, + '--grpc-domain-sock', + this.socketPath, + '--log-level', + 'warning', + '--idle-shutdown-time', + '3600', + ], + { cwd: path.dirname(this.companionPath), stdio: ['ignore', 'pipe', 'pipe'] }, + ); + this.companion = companion; + this.companionUdid = udid; + companion.stderr.on('data', (chunk: Buffer | string) => this.appendCompanionStderr(chunk)); + try { + const socket = await waitForCompanion(companion, limits.maxDurationMs); + if (socket !== this.socketPath) throw new GuestStartError('guest-companion-socket-mismatch'); + companion.stdout.resume(); + companion.on('error', (error: NodeJS.ErrnoException) => + this.appendCompanionStderr(error.message), + ); + } catch (error) { + if (this.companion === companion) this.companion = undefined; + terminate(companion); + throw error; + } + } + + private appendCompanionStderr(chunk: Buffer | string): void { + if (this.companionStderr.length >= 64 * 1024) return; + const text = Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk; + this.companionStderr += text.slice(0, 64 * 1024 - this.companionStderr.length); + } + + private takeCompanionStderr(): string { + const stderr = this.companionStderr; + this.companionStderr = ''; + return stderr; + } +} + +class GuestStartError extends Error { + readonly code: string; + + constructor(code: string) { + super(code); + this.name = 'GuestStartError'; + this.code = code; + } +} + +async function waitForCompanion( + companion: ChildProcessWithoutNullStreams, + timeoutMs: number, +): Promise { + return await new Promise((resolve, reject) => { + let buffer = ''; + const timer = setTimeout(() => { + cleanup(); + terminate(companion); + reject(new GuestStartError('guest-companion-start-timeout')); + }, timeoutMs); + const cleanup = (): void => { + clearTimeout(timer); + companion.stdout.off('data', onData); + companion.off('error', onError); + companion.off('close', onClose); + }; + const onData = (chunk: Buffer | string): void => { + buffer += Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk; + const lines = buffer.split('\n'); + buffer = lines.pop() ?? ''; + for (const line of lines) { + try { + const value = JSON.parse(line) as { grpc_path?: unknown }; + if (typeof value.grpc_path === 'string') { + cleanup(); + resolve(value.grpc_path); + return; + } + } catch { + continue; + } + } + }; + const onError = (): void => { + cleanup(); + reject(new GuestStartError('guest-companion-spawn-failed')); + }; + const onClose = (): void => { + cleanup(); + reject(new GuestStartError('guest-companion-exited-before-ready')); + }; + companion.stdout.on('data', onData); + companion.once('error', onError); + companion.once('close', onClose); + }); +} + +function terminate(child: ChildProcessWithoutNullStreams | undefined): void { + if (child && !child.killed) child.kill('SIGTERM'); +} diff --git a/scripts/ios-ax-bridge-spike/guest-reader.py b/scripts/ios-ax-bridge-spike/guest-reader.py new file mode 100644 index 000000000..f6ee8a577 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-reader.py @@ -0,0 +1,330 @@ +#!/usr/bin/env python3 + +import argparse +import asyncio +import json +import logging +import resource +import sys +import time +from typing import Any + +from idb.common.types import ( + AccessibilityBackend, + AccessibilityInfoOptions, + AccessibilityOutputFormat, + DomainSocketAddress, +) +from idb.grpc.client import Client + + +KEYS = [ + "AXFrame", + "AXLabel", + "AXValue", + "AXUniqueId", + "AXEnabled", + "AXSelected", + "AXFocused", + "type", + "role", + "subrole", +] + + +def as_record(value: Any) -> dict[str, Any] | None: + return value if isinstance(value, dict) else None + + +def string_value(record: dict[str, Any], *keys: str) -> str | None: + for key in keys: + value = record.get(key) + if isinstance(value, str): + return value + return None + + +def rect_value(record: dict[str, Any]) -> dict[str, float] | None: + value = as_record(record.get("frame")) + if value is None: + value = as_record(record.get("AXFrame")) + if value is None: + return None + if not all(isinstance(value.get(key), (int, float)) for key in ("x", "y", "width", "height")): + return None + return { + "x": float(value["x"]), + "y": float(value["y"]), + "width": float(value["width"]), + "height": float(value["height"]), + } + + +def bool_value(record: dict[str, Any], *keys: str) -> bool | None: + for key in keys: + value = record.get(key) + if isinstance(value, bool): + return value + return None + + +def node_from_element(element: dict[str, Any], index: int) -> dict[str, Any]: + node: dict[str, Any] = {"id": f"n{index}"} + fields = ( + ("type", string_value(element, "type")), + ("role", string_value(element, "role")), + ("subrole", string_value(element, "subrole")), + ("label", string_value(element, "label", "AXLabel")), + ("value", string_value(element, "value", "AXValue")), + ("identifier", string_value(element, "identifier", "AXUniqueId")), + ("frame", rect_value(element)), + ("enabled", bool_value(element, "enabled", "AXEnabled")), + ("selected", bool_value(element, "selected", "AXSelected")), + ("focused", bool_value(element, "focused", "AXFocused")), + ) + for key, value in fields: + if value is not None: + node[key] = value + return node + + +def elements_from_document(document: Any) -> list[dict[str, Any]] | None: + if not isinstance(document, list): + return None + elements: list[dict[str, Any]] = [] + for element in document: + record = as_record(element) + if record is not None: + elements.append(record) + return elements + + +def process_ids(elements: list[dict[str, Any]]) -> set[int]: + return { + int(element["pid"]) + for element in elements + if isinstance(element.get("pid"), int) and not isinstance(element.get("pid"), bool) + } + + +def expected_pid(generation: str | None) -> int | None: + if generation is None or not generation.startswith("pid:"): + return None + try: + return int(generation.removeprefix("pid:").split(":", 1)[0]) + except ValueError: + return None + + +def dimensions_value(description: Any) -> dict[str, float] | None: + dimensions = getattr(description, "screen_dimensions", None) + width = getattr(dimensions, "width_points", None) + height = getattr(dimensions, "height_points", None) + if not isinstance(width, (int, float)) or not isinstance(height, (int, float)): + return None + if width < 0 or height < 0: + return None + return {"x": 0.0, "y": 0.0, "width": float(width), "height": float(height)} + + +def usage_cpu_ms(usage: resource.struct_rusage) -> float: + return (usage.ru_utime + usage.ru_stime) * 1000 + + +def usage_memory_bytes(usage: resource.struct_rusage) -> int: + return int(usage.ru_maxrss) + + +def failure_response(request: dict[str, Any], kind: str, code: str, duration_ms: float = 0) -> dict[str, Any]: + return { + "version": 1, + "id": request.get("id", "unknown"), + "candidate": request.get("candidate", "guest-simulator-framework-bridge"), + "ok": False, + "failure": {"kind": kind, "code": code}, + "metrics": { + "requestBytes": 0, + "responseBytes": 0, + "nodeCount": 0, + "maxTraversalDepth": 0, + "cpuMs": None, + "memoryBytes": None, + "durationMs": duration_ms, + }, + } + + +def build_response( + request: dict[str, Any], + document: Any, + viewport: dict[str, float] | None, + duration_ms: float, + cpu_ms: float, + memory_bytes: int, + request_bytes: int, +) -> dict[str, Any]: + elements = elements_from_document(document) + if elements is None: + return failure_response(request, "malformed-tree", "guest-document-shape", duration_ms) + limits = as_record(request.get("limits")) or {} + if len(elements) > int(limits.get("maxNodes", 0)): + return failure_response(request, "malformed-tree", "node-limit-exceeded", duration_ms) + pids = process_ids(elements) + expected = request.get("expectedTargetGeneration") + expected = expected if isinstance(expected, str) else None + wanted_pid = expected_pid(expected) + if wanted_pid is not None and pids and wanted_pid not in pids: + observed = ",".join(f"pid:{pid}" for pid in sorted(pids)) + return { + **failure_response(request, "stale-generation", "target-generation-mismatch", duration_ms), + "failure": { + "kind": "stale-generation", + "code": "target-generation-mismatch", + "expectedTargetGeneration": expected, + "observedTargetGeneration": observed, + }, + "metrics": { + "requestBytes": request_bytes, + "responseBytes": 0, + "nodeCount": len(elements), + "maxTraversalDepth": 0, + "cpuMs": cpu_ms, + "memoryBytes": memory_bytes, + "durationMs": duration_ms, + }, + } + generation = expected + if generation is None and len(pids) == 1: + generation = f"pid:{next(iter(pids))}" + residue: list[dict[str, Any]] = [] + if viewport is None: + residue.append({"kind": "missing-viewport", "reason": "not-provided"}) + if generation is None: + residue.append({"kind": "unavailable-fact", "fact": "generation"}) + nodes = [node_from_element(element, index) for index, element in enumerate(elements)] + return { + "version": 1, + "id": request["id"], + "candidate": request["candidate"], + "ok": True, + "acquisition": { + "targetId": f"simulator:{request['simulatorUdid']}", + "targetGeneration": generation, + "nodes": nodes, + "viewport": ( + {"kind": "reported", "rect": viewport} + if viewport is not None + else {"kind": "missing", "reason": "not-provided"} + ), + "truncated": False, + "residue": residue, + }, + "metrics": { + "requestBytes": request_bytes, + "responseBytes": 0, + "nodeCount": len(nodes), + "maxTraversalDepth": 0, + "cpuMs": cpu_ms, + "memoryBytes": memory_bytes, + "durationMs": duration_ms, + }, + } + + +async def read_one( + client: Client, + request: dict[str, Any], + viewport: dict[str, float] | None, + request_bytes: int, +) -> dict[str, Any]: + started = time.perf_counter() + cpu_before = resource.getrusage(resource.RUSAGE_SELF) + try: + info = await asyncio.wait_for( + client.accessibility_info( + target=None, + options=AccessibilityInfoOptions( + keys=KEYS, + backend=AccessibilityBackend.AXBRIDGE_PERSISTENT, + format=AccessibilityOutputFormat.LEGACY, + ), + ), + timeout=float((as_record(request.get("limits")) or {}).get("maxDurationMs", 5000)) / 1000, + ) + document = json.loads(info.json) + response = build_response( + request, + document, + viewport, + (time.perf_counter() - started) * 1000, + usage_cpu_ms(resource.getrusage(resource.RUSAGE_SELF)) - usage_cpu_ms(cpu_before), + usage_memory_bytes(resource.getrusage(resource.RUSAGE_SELF)), + request_bytes, + ) + except asyncio.TimeoutError: + response = failure_response( + request, + "timeout", + "guest-read-timeout", + (time.perf_counter() - started) * 1000, + ) + except json.JSONDecodeError: + response = failure_response( + request, + "malformed-tree", + "guest-document-json", + (time.perf_counter() - started) * 1000, + ) + except Exception: + response = failure_response( + request, + "transport-failure", + "guest-accessibility-rpc", + (time.perf_counter() - started) * 1000, + ) + encoded = json.dumps(response, separators=(",", ":"), ensure_ascii=False).encode("utf-8") + response["metrics"]["responseBytes"] = len(encoded) + return response + + +async def serve(socket_path: str) -> None: + logger = logging.getLogger("agent-device-guest-reader") + logger.addHandler(logging.NullHandler()) + async with Client.build( + DomainSocketAddress(path=socket_path), + logger, + exchange_metadata=False, + ) as client: + viewport = None + try: + viewport = dimensions_value(await client.describe()) + except Exception: + viewport = None + while True: + line = await asyncio.to_thread(sys.stdin.buffer.readline) + if not line: + return + try: + request = json.loads(line) + except json.JSONDecodeError: + continue + if not isinstance(request, dict) or not isinstance(request.get("id"), str): + continue + response = await read_one(client, request, viewport, len(line)) + sys.stdout.write(json.dumps(response, separators=(",", ":"), ensure_ascii=False) + "\n") + sys.stdout.flush() + + +def main() -> None: + parser = argparse.ArgumentParser() + parser.add_argument("--socket", required=True) + args = parser.parse_args() + try: + asyncio.run(serve(args.socket)) + except Exception as error: + sys.stderr.write(f"guest reader stopped: {error}\n") + raise + + +if __name__ == "__main__": + main() diff --git a/scripts/ios-ax-bridge-spike/lifecycle.test.ts b/scripts/ios-ax-bridge-spike/lifecycle.test.ts new file mode 100644 index 000000000..9254bd99a --- /dev/null +++ b/scripts/ios-ax-bridge-spike/lifecycle.test.ts @@ -0,0 +1,21 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { runLifecycleProbes } from './lifecycle.ts'; + +test('records typed lifecycle failures and recovery probes', async () => { + const evidence = await runLifecycleProbes(); + assert.deepEqual( + { + crash: evidence.crash, + timeout: evidence.timeout, + cancellation: evidence.cancellation, + staleGeneration: evidence.staleGeneration, + }, + { + crash: { failure: 'process-crash', recovered: true }, + timeout: { failure: 'timeout', recovered: true }, + cancellation: { failure: 'cancelled', recovered: true }, + staleGeneration: { failure: 'stale-generation', recovered: true }, + }, + ); +}); diff --git a/scripts/ios-ax-bridge-spike/lifecycle.ts b/scripts/ios-ax-bridge-spike/lifecycle.ts new file mode 100644 index 000000000..ec388e9bf --- /dev/null +++ b/scripts/ios-ax-bridge-spike/lifecycle.ts @@ -0,0 +1,127 @@ +import { runFramedBatch } from './framed-process.ts'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import { failureResponse } from './protocol.ts'; +import type { LifecycleEvidence, SpikeRequest, SpikeResponse } from './types.ts'; + +export async function runLifecycleProbes(): Promise { + const request = probeRequest('lifecycle'); + const limits = { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 1_000 }; + const crash = await runFailureProbe('crash', request, limits); + const timeout = await runFailureProbe('hang', request, limits); + const cancellation = await runCancellationProbe(request, limits); + const staleResponse = failureResponse(request, { + kind: 'stale-generation', + code: 'target-generation-mismatch', + expectedTargetGeneration: 'expected', + observedTargetGeneration: 'observed', + }); + const stale = await runFramedBatch(nodeScript('stale-generation', staleResponse), [request], { + limits, + }); + return { + source: 'framed-protocol-fixture', + crash: { failure: crash.failure, recovered: crash.recovered }, + timeout: { failure: timeout.failure, recovered: timeout.recovered }, + cancellation: { failure: cancellation.failure, recovered: cancellation.recovered }, + staleGeneration: { + failure: stale.responses[0]?.failure?.kind ?? 'transport-failure', + recovered: await runHealthyProbe(request, limits), + }, + }; +} + +function probeRequest(id: string): SpikeRequest { + return { + version: 1, + id, + candidate: 'public-macos-ax', + simulatorUdid: '00000000-0000-0000-0000-000000000000', + state: 'warm', + screen: 'quiet', + appBundleId: 'com.apple.dt.Devices', + limits: DEFAULT_SPIKE_LIMITS, + }; +} + +async function runFailureProbe( + script: string, + request: SpikeRequest, + limits: typeof DEFAULT_SPIKE_LIMITS, +): Promise<{ failure: NonNullable['kind']; recovered: boolean }> { + const failed = await runFramedBatch(nodeScript(script), [request], { limits }); + const failure = failed.responses[0]?.failure?.kind ?? 'transport-failure'; + const recovered = await runHealthyProbe(request, limits); + return { failure, recovered }; +} + +async function runCancellationProbe( + request: SpikeRequest, + limits: typeof DEFAULT_SPIKE_LIMITS, +): Promise<{ failure: NonNullable['kind']; recovered: boolean }> { + const controller = new AbortController(); + const timer = setTimeout(() => controller.abort(), 15); + const result = await runFramedBatch(nodeScript('hang'), [request], { + signal: controller.signal, + limits, + }); + clearTimeout(timer); + return { + failure: result.responses[0]?.failure?.kind ?? 'transport-failure', + recovered: (await runHealthyProbe(request, limits)) === true, + }; +} + +async function runHealthyProbe( + request: SpikeRequest, + limits: typeof DEFAULT_SPIKE_LIMITS, +): Promise { + const result = await runFramedBatch(nodeScript('healthy'), [request], { limits }); + return result.responses[0]?.ok === true; +} + +function nodeScript( + mode: string, + overrideResponse?: SpikeResponse, +): { file: string; args: string[] } { + const response = JSON.stringify( + overrideResponse ?? { + version: 1, + ok: true, + acquisition: { + targetId: 'simulator:probe', + targetGeneration: 'generation', + nodes: [{ id: 'n0', role: 'AXApplication' }], + viewport: { kind: 'missing', reason: 'not-provided' }, + truncated: false, + residue: [], + }, + metrics: { + requestBytes: 1, + responseBytes: 1, + nodeCount: 1, + maxTraversalDepth: 0, + cpuMs: 0, + memoryBytes: 1, + durationMs: 1, + }, + }, + ); + const modeStatement = + mode === 'crash' ? 'process.exit(17);' : mode === 'hang' ? 'setInterval(() => {}, 1000);' : ''; + const script = ` + import process from 'node:process'; + ${modeStatement} + if (${JSON.stringify(mode)} !== 'crash' && ${JSON.stringify(mode)} !== 'hang') { + let input = ''; + process.stdin.setEncoding('utf8'); + process.stdin.on('data', (chunk) => { input += chunk; }); + process.stdin.on('end', () => { + for (const line of input.split('\\n').filter(Boolean)) { + const request = JSON.parse(line); + process.stdout.write(JSON.stringify({ ...${response}, id: request.id, candidate: request.candidate }) + '\\n'); + } + }); + } + `; + return { file: process.execPath, args: ['--input-type=module', '-e', script] }; +} diff --git a/scripts/ios-ax-bridge-spike/limits.test.ts b/scripts/ios-ax-bridge-spike/limits.test.ts new file mode 100644 index 000000000..85b1dc5b5 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/limits.test.ts @@ -0,0 +1,70 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { DEFAULT_SPIKE_LIMITS, encodeFrame, validateRawAcquisition } from './limits.ts'; + +const acquisition = { + targetId: 'simulator:test', + targetGeneration: 'generation-1', + nodes: [ + { id: 'n0', type: 'XCUIElementTypeApplication', role: 'AXApplication' }, + { id: 'n1', parentId: 'n0', role: 'AXWindow', frame: { x: 0, y: 0, width: 100, height: 200 } }, + ], + viewport: { kind: 'reported', rect: { x: 0, y: 0, width: 100, height: 200 } }, + truncated: false, + residue: [], +} as const; + +test('accepts a raw tree and reports structural depth without publishing it on nodes', () => { + const result = validateRawAcquisition(acquisition, DEFAULT_SPIKE_LIMITS); + assert.equal(result.ok, true); + if (result.ok) { + assert.equal(result.maxTraversalDepth, 1); + assert.equal(result.acquisition.nodes[0]?.type, 'XCUIElementTypeApplication'); + } + assert.equal('depth' in acquisition.nodes[0], false); + assert.equal('hittable' in acquisition.nodes[0], false); +}); + +test('rejects presentation facts in the acquisition reader', () => { + const result = validateRawAcquisition( + { + ...acquisition, + nodes: [{ id: 'n0', visibleToUser: true }], + }, + DEFAULT_SPIKE_LIMITS, + ); + assert.deepEqual(result, { ok: false, code: 'node-contains-presentation-fact' }); +}); + +test('rejects cycles, missing parents, and resource-limit violations', () => { + assert.deepEqual( + validateRawAcquisition( + { ...acquisition, nodes: [{ id: 'n0', parentId: 'missing' }] }, + DEFAULT_SPIKE_LIMITS, + ), + { ok: false, code: 'parent-node-missing' }, + ); + assert.deepEqual( + validateRawAcquisition( + { ...acquisition, nodes: [{ id: 'n0', parentId: 'n0' }] }, + DEFAULT_SPIKE_LIMITS, + ), + { ok: false, code: 'traversal-depth-exceeded' }, + ); + assert.deepEqual( + validateRawAcquisition( + { ...acquisition, nodes: Array.from({ length: 3 }, (_, index) => ({ id: `n${index}` })) }, + { + ...DEFAULT_SPIKE_LIMITS, + maxNodes: 2, + }, + ), + { ok: false, code: 'node-limit-exceeded' }, + ); +}); + +test('frames are newline-delimited and byte bounded', () => { + const frame = encodeFrame({ id: 'one', text: 'ok' }); + assert.equal(frame.line.endsWith('\n'), true); + assert.equal(frame.bytes, Buffer.byteLength(frame.line)); +}); diff --git a/scripts/ios-ax-bridge-spike/limits.ts b/scripts/ios-ax-bridge-spike/limits.ts new file mode 100644 index 000000000..540f1f4dc --- /dev/null +++ b/scripts/ios-ax-bridge-spike/limits.ts @@ -0,0 +1,230 @@ +import type { RawAcquiredNode, RawAcquisition, ResourceLimits, SpikeRect } from './types.ts'; + +export const DEFAULT_SPIKE_LIMITS: ResourceLimits = Object.freeze({ + maxRequestBytes: 64 * 1024, + maxResponseBytes: 4 * 1024 * 1024, + maxNodes: 1500, + maxTraversalDepth: 12, + maxCpuMs: 2_000, + maxMemoryBytes: 256 * 1024 * 1024, + maxDurationMs: 5_000, +}); + +const NODE_KEYS = new Set([ + 'id', + 'type', + 'parentId', + 'role', + 'subrole', + 'label', + 'value', + 'identifier', + 'frame', + 'enabled', + 'selected', + 'focused', +]); + +export type TreeValidation = + | Readonly<{ ok: true; acquisition: RawAcquisition; maxTraversalDepth: number }> + | Readonly<{ ok: false; code: string }>; + +export function encodeFrame(value: unknown): { bytes: number; line: string } { + const line = `${JSON.stringify(value)}\n`; + return { bytes: Buffer.byteLength(line), line }; +} + +export function validateRawAcquisition(value: unknown, limits: ResourceLimits): TreeValidation { + const record = readAcquisitionRecord(value); + if (!record.ok) return record; + const envelope = validateAcquisitionEnvelope(record.value); + if (!envelope.ok) return envelope; + if (record.value.nodes.length > limits.maxNodes) + return { ok: false, code: 'node-limit-exceeded' }; + const nodes = validateNodes(record.value.nodes); + if (!nodes.ok) return nodes; + const maxTraversalDepth = treeDepth(nodes.nodes); + if (maxTraversalDepth > limits.maxTraversalDepth) { + return { ok: false, code: 'traversal-depth-exceeded' }; + } + return { + ok: true, + acquisition: record.value as unknown as RawAcquisition, + maxTraversalDepth, + }; +} + +function readAcquisitionRecord( + value: unknown, +): + | { ok: true; value: Record & { nodes: unknown[] } } + | { ok: false; code: string } { + if (!isRecord(value)) return { ok: false, code: 'acquisition-not-object' }; + if (typeof value.targetId !== 'string' || value.targetId.length === 0) { + return { ok: false, code: 'target-id-missing' }; + } + if (value.targetGeneration !== null && typeof value.targetGeneration !== 'string') { + return { ok: false, code: 'target-generation-invalid' }; + } + if (!Array.isArray(value.nodes)) return { ok: false, code: 'nodes-not-array' }; + return { ok: true, value: value as Record & { nodes: unknown[] } }; +} + +function validateAcquisitionEnvelope( + value: Record, +): { ok: true } | { ok: false; code: string } { + if (typeof value.truncated !== 'boolean') return { ok: false, code: 'truncated-invalid' }; + if (!validateViewport(value.viewport)) return { ok: false, code: 'viewport-invalid' }; + if (!validateResidue(value.residue)) return { ok: false, code: 'residue-invalid' }; + return { ok: true }; +} + +function validateNodes( + rawNodes: readonly unknown[], +): { ok: true; nodes: RawAcquiredNode[] } | { ok: false; code: string } { + const nodes: RawAcquiredNode[] = []; + const ids = new Set(); + for (const rawNode of rawNodes) { + const node = validateNode(rawNode); + if (!node.ok) return node; + if (ids.has(node.node.id)) return { ok: false, code: 'duplicate-node-id' }; + ids.add(node.node.id); + nodes.push(node.node); + } + return validateParents(nodes, ids); +} + +function validateParents( + nodes: readonly RawAcquiredNode[], + ids: ReadonlySet, +): { ok: true; nodes: RawAcquiredNode[] } | { ok: false; code: string } { + for (const node of nodes) { + if (node.parentId !== undefined && !ids.has(node.parentId)) { + return { ok: false, code: 'parent-node-missing' }; + } + } + return { ok: true, nodes: [...nodes] }; +} + +function validateNode( + value: unknown, +): { ok: true; node: RawAcquiredNode } | { ok: false; code: string } { + const node = asNodeRecord(value); + if (!node) return { ok: false, code: 'node-not-object' }; + const code = nodeValidationCode(node); + return code === undefined ? { ok: true, node: node as RawAcquiredNode } : { ok: false, code }; +} + +function asNodeRecord(value: unknown): Record | undefined { + return isRecord(value) ? value : undefined; +} + +function nodeValidationCode(value: Record): string | undefined { + const identityCode = nodeIdentityCode(value); + if (identityCode) return identityCode; + return nodeFactCode(value); +} + +function nodeIdentityCode(value: Record): string | undefined { + if (Object.keys(value).some((key) => !NODE_KEYS.has(key))) { + return 'node-contains-presentation-fact'; + } + if (typeof value.id !== 'string' || value.id.length === 0) return 'node-id-missing'; + if (value.parentId !== undefined && typeof value.parentId !== 'string') { + return 'parent-id-invalid'; + } + return undefined; +} + +function nodeFactCode(value: Record): string | undefined { + const textCode = optionalStringCode(value); + if (textCode) return textCode; + const booleanCode = optionalBooleanCode(value); + if (booleanCode) return booleanCode; + return value.frame !== undefined && !validateRect(value.frame) ? 'frame-invalid' : undefined; +} + +function optionalStringCode(value: Record): string | undefined { + for (const key of ['type', 'role', 'subrole', 'label', 'value', 'identifier'] as const) { + if (value[key] !== undefined && typeof value[key] !== 'string') return `${key}-invalid`; + } + return undefined; +} + +function optionalBooleanCode(value: Record): string | undefined { + for (const key of ['enabled', 'selected', 'focused'] as const) { + if (value[key] !== undefined && typeof value[key] !== 'boolean') return `${key}-invalid`; + } + return undefined; +} + +function validateViewport(value: unknown): boolean { + if (!isRecord(value) || typeof value.kind !== 'string') return false; + if (value.kind === 'missing') { + return ( + value.reason === 'not-provided' || + value.reason === 'not-supported' || + value.reason === 'invalid' + ); + } + return (value.kind === 'reported' || value.kind === 'derived') && validateRect(value.rect); +} + +function validateRect(value: unknown): value is SpikeRect { + if (!isRecord(value)) return false; + for (const key of ['x', 'y', 'width', 'height']) { + if (typeof value[key] !== 'number' || !Number.isFinite(value[key])) return false; + } + const width = value.width; + const height = value.height; + return typeof width === 'number' && typeof height === 'number' && width >= 0 && height >= 0; +} + +function validateResidue(value: unknown): boolean { + if (!Array.isArray(value)) return false; + for (const residue of value) { + if (!validateResidueItem(residue)) return false; + } + return true; +} + +const RESIDUE_VALIDATORS: Readonly) => boolean>> = { + 'provider-pruned': (value) => + Array.isArray(value.fields) && value.fields.every((field) => typeof field === 'string'), + 'missing-viewport': (value) => + ['not-provided', 'not-supported', 'invalid'].includes(String(value.reason)), + truncated: (value) => ['nodes', 'depth', 'payload'].includes(String(value.dimension)), + 'stale-generation': (value) => value.expected === undefined || typeof value.expected === 'string', + 'unavailable-fact': (value) => typeof value.fact === 'string', + 'fallback-source': (value) => typeof value.producer === 'string', +}; + +function validateResidueItem(value: unknown): boolean { + if (!isRecord(value) || typeof value.kind !== 'string') return false; + return RESIDUE_VALIDATORS[value.kind]?.(value) ?? false; +} + +function treeDepth(nodes: readonly RawAcquiredNode[]): number { + const byId = new Map(nodes.map((node) => [node.id, node])); + const memo = new Map(); + const visiting = new Set(); + let maximum = 0; + for (const node of nodes) maximum = Math.max(maximum, depth(node.id)); + return maximum; + + function depth(id: string): number { + const cached = memo.get(id); + if (cached !== undefined) return cached; + if (visiting.has(id)) return Number.POSITIVE_INFINITY; + visiting.add(id); + const parentId = byId.get(id)?.parentId; + const result = parentId === undefined ? 0 : depth(parentId) + 1; + visiting.delete(id); + memo.set(id, result); + return result; + } +} + +function isRecord(value: unknown): value is Record { + return value !== null && typeof value === 'object' && !Array.isArray(value); +} diff --git a/scripts/ios-ax-bridge-spike/persistent-process.test.ts b/scripts/ios-ax-bridge-spike/persistent-process.test.ts new file mode 100644 index 000000000..bdd2c68e5 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/persistent-process.test.ts @@ -0,0 +1,77 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { PersistentFramedProcess } from './persistent-process.ts'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import type { SpikeRequest } from './types.ts'; + +function request(id: string): SpikeRequest { + return { + version: 1, + id, + candidate: 'guest-simulator-framework-bridge', + simulatorUdid: 'simulator', + state: 'warm', + screen: 'quiet', + appBundleId: 'com.callstack.agentdevicelab', + limits: DEFAULT_SPIKE_LIMITS, + }; +} + +test('keeps one framed reader alive across batches', async () => { + let starts = 0; + const worker = new PersistentFramedProcess({ + file: process.execPath, + args: [ + '--input-type=module', + '-e', + ` + import process from 'node:process'; + process.stdin.setEncoding('utf8'); + let buffer = ''; + process.stdin.on('data', (chunk) => { + buffer += chunk; + const lines = buffer.split('\\n'); + buffer = lines.pop() ?? ''; + for (const line of lines.filter(Boolean)) { + const request = JSON.parse(line); + process.stdout.write(JSON.stringify({ + version: 1, + id: request.id, + candidate: request.candidate, + ok: true, + acquisition: { + targetId: 'simulator:test', + targetGeneration: 'generation-1', + nodes: [{ id: 'n0', role: 'AXApplication' }], + viewport: { kind: 'missing', reason: 'not-provided' }, + truncated: false, + residue: [], + }, + metrics: { + requestBytes: 1, + responseBytes: 1, + nodeCount: 1, + maxTraversalDepth: 0, + cpuMs: 1, + memoryBytes: 1, + durationMs: 1, + }, + }) + '\\n'); + } + }); + `, + ], + limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 200 }, + beforeStart: async () => { + starts += 1; + }, + }); + + const first = await worker.acquireBatch([request('one')]); + const second = await worker.acquireBatch([request('two')]); + await worker.close(); + + assert.equal(first.responses[0]?.ok, true); + assert.equal(second.responses[0]?.ok, true); + assert.equal(starts, 1); +}); diff --git a/scripts/ios-ax-bridge-spike/persistent-process.ts b/scripts/ios-ax-bridge-spike/persistent-process.ts new file mode 100644 index 000000000..9332c17f1 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/persistent-process.ts @@ -0,0 +1,266 @@ +import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'; +import { encodeFrame, DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import { failureResponse, parseSpikeResponse } from './protocol.ts'; +import type { ResourceLimits, SpikeFailureKind, SpikeRequest, SpikeResponse } from './types.ts'; + +export type PersistentProcessSpec = Readonly<{ + file: string; + args?: readonly string[]; + cwd?: string; + env?: NodeJS.ProcessEnv; + limits?: ResourceLimits; + beforeStart?: (requests: readonly SpikeRequest[]) => Promise; +}>; + +type EncodedRequest = Readonly<{ + request: SpikeRequest; + bytes: number; + line: string; +}>; + +type PendingBatch = { + requests: readonly SpikeRequest[]; + responses: Map; + responseBytes: number; + resolve: (result: PersistentBatchResult) => void; + timer: NodeJS.Timeout; + abortCleanup: () => void; +}; + +export type PersistentBatchResult = Readonly<{ + responses: readonly SpikeResponse[]; + stderr: string; +}>; + +export class PersistentFramedProcess { + private readonly spec: PersistentProcessSpec; + private readonly limits: ResourceLimits; + private child?: ChildProcessWithoutNullStreams; + private startPromise?: Promise; + private stdoutBuffer = Buffer.alloc(0); + private stderr = ''; + private pending?: PendingBatch; + private serial: Promise = Promise.resolve(); + private closed = false; + + constructor(spec: PersistentProcessSpec) { + this.spec = spec; + this.limits = spec.limits ?? DEFAULT_SPIKE_LIMITS; + } + + acquireBatch( + requests: readonly SpikeRequest[], + options: Readonly<{ signal?: AbortSignal }> = {}, + ): Promise { + const operation = this.serial.then(() => this.execute(requests, options)); + this.serial = operation.then( + () => undefined, + () => undefined, + ); + return operation; + } + + async close(): Promise { + this.closed = true; + this.finishPending('cancelled', 'process-closed', true); + await this.serial; + terminate(this.child); + this.child = undefined; + } + + private async execute( + requests: readonly SpikeRequest[], + options: Readonly<{ signal?: AbortSignal }>, + ): Promise { + if (requests.length === 0) return { responses: [], stderr: '' }; + const encoded = requests.map((request) => ({ request, ...encodeFrame(request) })); + if (encoded.some(({ bytes }) => bytes > this.limits.maxRequestBytes)) { + return { + responses: requests.map((request) => + failureResponse(request, { kind: 'transport-failure', code: 'request-limit-exceeded' }), + ), + stderr: '', + }; + } + if (options.signal?.aborted) return cancelledBatch(requests, encoded); + try { + await this.ensureChild(requests); + } catch (error) { + return { + responses: requests.map((request) => + failureResponse(request, { + kind: 'transport-failure', + code: errorCode(error, 'persistent-process-start-failed'), + }), + ), + stderr: this.takeStderr(), + }; + } + return await this.send(encoded, options.signal); + } + + private async ensureChild(requests: readonly SpikeRequest[]): Promise { + if (this.closed) throw new Error('persistent-process-closed'); + if (this.child && !this.child.killed && this.child.exitCode === null) return; + if (this.startPromise) return await this.startPromise; + this.startPromise = this.start(requests).finally(() => { + this.startPromise = undefined; + }); + return await this.startPromise; + } + + private async start(requests: readonly SpikeRequest[]): Promise { + await this.spec.beforeStart?.(requests); + this.stdoutBuffer = Buffer.alloc(0); + const child = spawn(this.spec.file, [...(this.spec.args ?? [])], { + cwd: this.spec.cwd, + env: { ...process.env, ...this.spec.env }, + stdio: ['pipe', 'pipe', 'pipe'], + }); + this.child = child; + child.stdout.on('data', (chunk: Buffer | string) => this.consumeStdout(chunk)); + child.stderr.on('data', (chunk: Buffer | string) => this.appendStderr(chunk)); + child.on('error', (error: NodeJS.ErrnoException) => { + this.appendStderr(error.message); + this.finishPending('transport-failure', error.code ?? 'persistent-process-error', false); + }); + child.on('close', () => { + if (this.child !== child) return; + this.child = undefined; + if (this.pending) this.finishPending('process-crash', 'persistent-process-exited', false); + }); + } + + private send( + encoded: readonly EncodedRequest[], + signal: AbortSignal | undefined, + ): Promise { + return new Promise((resolve) => { + const timer = setTimeout( + () => this.finishPending('timeout', 'batch-duration-limit', true), + this.limits.maxDurationMs * encoded.length, + ); + const onAbort = (): void => this.finishPending('cancelled', 'abort-signal', true); + signal?.addEventListener('abort', onAbort, { once: true }); + this.pending = { + requests: encoded.map(({ request }) => request), + responses: new Map(), + responseBytes: 0, + resolve, + timer, + abortCleanup: () => signal?.removeEventListener('abort', onAbort), + }; + for (const { line } of encoded) this.child?.stdin.write(line); + }); + } + + private consumeStdout(chunk: Buffer | string): void { + this.stdoutBuffer = Buffer.concat([ + this.stdoutBuffer, + Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk), + ]); + let newline = this.stdoutBuffer.indexOf(0x0a); + while (newline >= 0) { + const line = this.stdoutBuffer.subarray(0, newline); + this.stdoutBuffer = this.stdoutBuffer.subarray(newline + 1); + this.consumeLine(line); + if (!this.pending) return; + newline = this.stdoutBuffer.indexOf(0x0a); + } + } + + private consumeLine(line: Buffer): void { + if (line.length > this.limits.maxResponseBytes) { + this.finishPending('malformed-tree', 'frame-limit-exceeded', true); + return; + } + let value: unknown; + try { + value = JSON.parse(line.toString('utf8')); + } catch { + this.finishPending('malformed-tree', 'invalid-json', true); + return; + } + const pending = this.pending; + const request = pending?.requests.find((item) => item.id === readId(value)); + if (!pending || !request || pending.responses.has(request.id)) { + this.finishPending('malformed-tree', 'response-id-invalid', true); + return; + } + pending.responseBytes += line.length + 1; + if (pending.responseBytes > this.limits.maxResponseBytes) { + this.finishPending('malformed-tree', 'response-limit-exceeded', true); + return; + } + pending.responses.set(request.id, parseSpikeResponse(value, request, line.length + 1)); + if (pending.responses.size === pending.requests.length) this.finishPending(); + } + + private finishPending(kind?: SpikeFailureKind, code?: string, terminateChild = false): void { + const pending = this.pending; + if (!pending) return; + this.pending = undefined; + clearTimeout(pending.timer); + pending.abortCleanup(); + if (terminateChild) terminate(this.child); + pending.resolve({ + responses: pending.requests.map( + (request) => + pending.responses.get(request.id) ?? + failureResponse(request, { + kind: kind ?? 'transport-failure', + ...(code ? { code } : {}), + }), + ), + stderr: this.takeStderr(), + }); + } + + private appendStderr(chunk: Buffer | string): void { + if (this.stderr.length >= 64 * 1024) return; + const text = Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk; + this.stderr += text.slice(0, 64 * 1024 - this.stderr.length); + } + + private takeStderr(): string { + const stderr = this.stderr; + this.stderr = ''; + return stderr; + } +} + +function cancelledBatch( + requests: readonly SpikeRequest[], + encoded: readonly EncodedRequest[], +): PersistentBatchResult { + return { + responses: requests.map((request) => + failureResponse( + request, + { kind: 'cancelled', code: 'abort-signal' }, + { requestBytes: encoded.find((item) => item.request.id === request.id)?.bytes ?? 0 }, + ), + ), + stderr: '', + }; +} + +function errorCode(error: unknown, fallback: string): string { + if (error && typeof error === 'object' && 'code' in error) { + const code = (error as { code?: unknown }).code; + if (typeof code === 'string') return code; + } + return fallback; +} + +function readId(value: unknown): string | undefined { + if (value && typeof value === 'object' && !Array.isArray(value)) { + const id = (value as Record).id; + return typeof id === 'string' ? id : undefined; + } + return undefined; +} + +function terminate(child: ChildProcessWithoutNullStreams | undefined): void { + if (child && !child.killed) child.kill('SIGTERM'); +} diff --git a/scripts/ios-ax-bridge-spike/preference-experiment.ts b/scripts/ios-ax-bridge-spike/preference-experiment.ts new file mode 100644 index 000000000..6a43ee01c --- /dev/null +++ b/scripts/ios-ax-bridge-spike/preference-experiment.ts @@ -0,0 +1,86 @@ +import { execFileSync } from 'node:child_process'; +import { screenFixture } from '../ios-snapshot-benchmark/definitions.ts'; +import { bootSimulator, shutdownSimulator } from '../ios-snapshot-benchmark/lifecycle.ts'; +import type { SpikeConfig } from './config.ts'; +import { + applyPrebootPreferences, + type PlistSnapshot, + readSimulatorState, + restorePrebootPreferences, +} from './preferences.ts'; +import type { PreferenceEvidence } from './types.ts'; + +export function runPreferenceExperiment(config: SpikeConfig): PreferenceEvidence { + if (!config.applyPreferences) return initialPreferenceEvidence(config.udid); + shutdownSimulator(config.udid); + const applied = applyPrebootPreferences(config.udid); + return exerciseAppliedPreferences(config, applied.evidence, applied.snapshots); +} + +function exerciseAppliedPreferences( + config: SpikeConfig, + evidence: PreferenceEvidence, + snapshots: readonly PlistSnapshot[], +): PreferenceEvidence { + let fixtureLaunchCompatible: boolean; + try { + bootSimulator(config.udid); + fixtureLaunchCompatible = tryPrimeFixtureApp( + config.udid, + screenFixture(config.screens[0]!).app, + ); + } catch { + fixtureLaunchCompatible = false; + } + return { + ...evidence, + fixtureLaunchCompatible, + restored: restorePreferences(config.udid, snapshots), + }; +} + +function restorePreferences(udid: string, snapshots: readonly PlistSnapshot[]): boolean { + try { + if (readSimulatorState(udid) !== 'Shutdown') shutdownSimulator(udid); + return restorePrebootPreferences(udid, snapshots); + } catch { + return false; + } +} + +export function primeFixtureApps(config: SpikeConfig): void { + const apps = new Set(config.screens.map((screen) => screenFixture(screen).app)); + for (const app of apps) { + if (!tryPrimeFixtureApp(config.udid, app)) + throw new Error(`Failed to prime ${app} after booting the restored disposable Simulator.`); + } +} + +function tryPrimeFixtureApp(udid: string, app: string): boolean { + try { + execFileSync('xcrun', ['simctl', 'launch', udid, app], { + encoding: 'utf8', + timeout: 60_000, + stdio: ['ignore', 'pipe', 'pipe'], + }); + return true; + } catch { + return false; + } +} + +export function initialPreferenceEvidence(udid: string): PreferenceEvidence { + let simulatorStateBefore = 'unknown'; + try { + simulatorStateBefore = readSimulatorState(udid); + } catch { + simulatorStateBefore = 'unavailable'; + } + return { + applied: false, + restored: false, + fixtureLaunchCompatible: null, + simulatorStateBefore, + diffs: [], + }; +} diff --git a/scripts/ios-ax-bridge-spike/preferences.test.ts b/scripts/ios-ax-bridge-spike/preferences.test.ts new file mode 100644 index 000000000..65091dcc3 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/preferences.test.ts @@ -0,0 +1,22 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { diffPlistValues, simulatorPreferencePaths } from './preferences.ts'; + +test('records exact targeted preference changes and ignores unrelated keys', () => { + assert.deepEqual( + diffPlistValues( + { AutomationEnabled: false, Unrelated: 'preserve' }, + { AutomationEnabled: true, Unrelated: 'preserve' }, + ['AutomationEnabled', 'IgnoreAXServerEntitlements'], + ), + [ + { key: 'AutomationEnabled', before: false, after: true }, + { key: 'IgnoreAXServerEntitlements' }, + ], + ); +}); + +test('builds preference paths only from a validated Simulator UDID', () => { + assert.equal(simulatorPreferencePaths('793B72F6-02C9-4BCD-BEC9-1B3EB42A7ED4').length, 2); + assert.throws(() => simulatorPreferencePaths('../other-device'), /Invalid Simulator UDID/); +}); diff --git a/scripts/ios-ax-bridge-spike/preferences.ts b/scripts/ios-ax-bridge-spike/preferences.ts new file mode 100644 index 000000000..ab241ed22 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/preferences.ts @@ -0,0 +1,254 @@ +import crypto from 'node:crypto'; +import fs from 'node:fs'; +import os from 'node:os'; +import path from 'node:path'; +import { spawnSync } from 'node:child_process'; +import type { PlistDiff, PlistKeyChange, PreferenceEvidence } from './types.ts'; + +const PREFERENCE_VALUES = { + 'com.apple.Accessibility.plist': { + AccessibilityEnabled: true, + ApplicationAccessibilityEnabled: true, + AutomationEnabled: true, + IgnoreAXServerEntitlements: true, + }, + 'com.apple.UIAutomation.plist': { + UIAutomationEnabled: true, + }, +} as const; + +const UUID_PATTERN = /^[0-9A-Fa-f-]{36}$/u; +const EMPTY_PLIST = `\n\n\n`; + +class PreferenceSafetyError extends Error { + readonly code: 'invalid-udid' | 'simulator-not-shutdown' | 'simulator-state-unknown'; + + constructor(code: PreferenceSafetyError['code'], message: string) { + super(message); + this.name = 'PreferenceSafetyError'; + this.code = code; + } +} + +export type PlistSnapshot = Readonly<{ + path: string; + existedBefore: boolean; + beforeBytes: Buffer | null; + beforeValues: Record; +}>; + +export function simulatorPreferencePaths(udid: string): string[] { + validateUdid(udid); + const directory = path.join( + os.homedir(), + 'Library', + 'Developer', + 'CoreSimulator', + 'Devices', + udid, + 'data', + 'Library', + 'Preferences', + ); + return Object.keys(PREFERENCE_VALUES).map((name) => path.join(directory, name)); +} + +export function diffPlistValues( + before: Record, + after: Record, + keys: readonly string[], +): PlistKeyChange[] { + return keys.flatMap((key) => { + const hasBefore = Object.prototype.hasOwnProperty.call(before, key); + const hasAfter = Object.prototype.hasOwnProperty.call(after, key); + if (hasBefore && hasAfter && Object.is(before[key], after[key])) return []; + return [ + { + key, + ...(hasBefore ? { before: before[key] } : {}), + ...(hasAfter ? { after: after[key] } : {}), + }, + ]; + }); +} + +export function readSimulatorState(udid: string): string { + validateUdid(udid); + const result = spawnSync('xcrun', ['simctl', 'list', 'devices', '-j'], { + encoding: 'utf8', + timeout: 30_000, + }); + if (result.status !== 0 || typeof result.stdout !== 'string') { + throw new PreferenceSafetyError('simulator-state-unknown', `Unable to read state for ${udid}.`); + } + let payload: unknown; + try { + payload = JSON.parse(result.stdout); + } catch { + throw new PreferenceSafetyError( + 'simulator-state-unknown', + `Simulator state was not JSON for ${udid}.`, + ); + } + const state = findDeviceState(payload, udid); + if (!state) { + throw new PreferenceSafetyError('simulator-state-unknown', `Simulator ${udid} was not found.`); + } + return state; +} + +export function applyPrebootPreferences(udid: string): { + evidence: PreferenceEvidence; + snapshots: readonly PlistSnapshot[]; +} { + const simulatorStateBefore = readSimulatorState(udid); + if (simulatorStateBefore !== 'Shutdown') { + throw new PreferenceSafetyError( + 'simulator-not-shutdown', + `Preference experiment requires a shutdown Simulator; ${udid} is ${simulatorStateBefore}.`, + ); + } + const snapshots = simulatorPreferencePaths(udid).map(snapshotPlist); + try { + for (const snapshot of snapshots) applyPlistValues(snapshot.path); + } catch (error) { + restoreSnapshotBytes(snapshots); + throw error; + } + const diffs = snapshots.map((snapshot) => { + const afterBytes = readBytes(snapshot.path); + const afterValues = readPlist(snapshot.path); + return { + path: snapshot.path, + existedBefore: snapshot.existedBefore, + beforeSha256: hashBytes(snapshot.beforeBytes), + afterSha256: hashBytes(afterBytes), + changes: diffPlistValues(snapshot.beforeValues, afterValues, changedKeys(snapshot.path)), + } satisfies PlistDiff; + }); + return { + snapshots, + evidence: { + applied: true, + restored: false, + simulatorStateBefore, + diffs, + }, + }; +} + +export function restorePrebootPreferences( + udid: string, + snapshots: readonly PlistSnapshot[], +): PreferenceEvidence['restored'] { + const state = readSimulatorState(udid); + if (state !== 'Shutdown') { + throw new PreferenceSafetyError( + 'simulator-not-shutdown', + `Preference restore requires a shutdown Simulator; ${udid} is ${state}.`, + ); + } + restoreSnapshotBytes(snapshots); + return true; +} + +function restoreSnapshotBytes(snapshots: readonly PlistSnapshot[]): void { + for (const snapshot of snapshots) { + if (snapshot.beforeBytes === null) { + fs.rmSync(snapshot.path, { force: true }); + continue; + } + fs.writeFileSync(snapshot.path, snapshot.beforeBytes); + } +} + +function snapshotPlist(filePath: string): PlistSnapshot { + const beforeBytes = readBytes(filePath); + return { + path: filePath, + existedBefore: beforeBytes !== null, + beforeBytes, + beforeValues: beforeBytes === null ? {} : readPlist(filePath), + }; +} + +function applyPlistValues(filePath: string): void { + fs.mkdirSync(path.dirname(filePath), { recursive: true }); + if (!fs.existsSync(filePath)) fs.writeFileSync(filePath, EMPTY_PLIST); + for (const key of changedKeys(filePath)) { + const value = true; + const replaced = spawnSync( + '/usr/bin/plutil', + ['-replace', key, '-bool', String(value), filePath], + { + encoding: 'utf8', + timeout: 10_000, + }, + ); + if (replaced.status === 0) continue; + const inserted = spawnSync( + '/usr/bin/plutil', + ['-insert', key, '-bool', String(value), filePath], + { + encoding: 'utf8', + timeout: 10_000, + }, + ); + if (inserted.status !== 0) { + throw new PreferenceSafetyError('simulator-state-unknown', `Unable to update ${filePath}.`); + } + } +} + +function readPlist(filePath: string): Record { + const result = spawnSync('/usr/bin/plutil', ['-convert', 'json', '-o', '-', filePath], { + encoding: 'utf8', + timeout: 10_000, + }); + if (result.status !== 0 || typeof result.stdout !== 'string') return {}; + try { + const value: unknown = JSON.parse(result.stdout); + return isRecord(value) ? value : {}; + } catch { + return {}; + } +} + +function readBytes(filePath: string): Buffer | null { + try { + return fs.readFileSync(filePath); + } catch { + return null; + } +} + +function hashBytes(value: Buffer | null): string | null { + return value === null ? null : crypto.createHash('sha256').update(value).digest('hex'); +} + +function changedKeys(filePath: string): string[] { + const name = path.basename(filePath) as keyof typeof PREFERENCE_VALUES; + return name in PREFERENCE_VALUES ? Object.keys(PREFERENCE_VALUES[name]) : []; +} + +function findDeviceState(payload: unknown, udid: string): string | undefined { + if (!isRecord(payload) || !isRecord(payload.devices)) return undefined; + for (const runtimeDevices of Object.values(payload.devices)) { + if (!Array.isArray(runtimeDevices)) continue; + const device = runtimeDevices.find( + (candidate) => isRecord(candidate) && candidate.udid === udid, + ); + if (isRecord(device) && typeof device.state === 'string') return device.state; + } + return undefined; +} + +function validateUdid(udid: string): void { + if (!UUID_PATTERN.test(udid)) { + throw new PreferenceSafetyError('invalid-udid', `Invalid Simulator UDID: ${udid}.`); + } +} + +function isRecord(value: unknown): value is Record { + return value !== null && typeof value === 'object' && !Array.isArray(value); +} diff --git a/scripts/ios-ax-bridge-spike/presentation.test.ts b/scripts/ios-ax-bridge-spike/presentation.test.ts new file mode 100644 index 000000000..6abd9a807 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/presentation.test.ts @@ -0,0 +1,30 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { presentAcquisitionForMeasurement } from './presentation.ts'; +import type { RawAcquisition } from './types.ts'; + +test('prototype presentation creates the #2190 acquired carrier without semantic fields', () => { + const raw: RawAcquisition = { + targetId: 'simulator:test', + targetGeneration: 'generation-1', + nodes: [ + { + id: 'root', + type: 'XCUIElementTypeApplication', + role: 'AXApplication', + enabled: true, + }, + { id: 'child', parentId: 'root', role: 'AXWindow' }, + ], + viewport: { kind: 'missing', reason: 'not-provided' }, + truncated: false, + residue: [], + }; + const result = presentAcquisitionForMeasurement(raw); + assert.equal(result.acquisition.producer, 'simulator-ax-bridge'); + assert.equal(result.acquisition.nodes.length, 2); + assert.equal(result.acquisition.nodes[0]?.type, 'XCUIElementTypeApplication'); + assert.equal(result.acquisition.nodes[1]?.parentIndex, 0); + assert.equal('hittable' in result.acquisition.nodes[0]!, false); + assert.equal(result.measurement.nodeCount, 2); +}); diff --git a/scripts/ios-ax-bridge-spike/presentation.ts b/scripts/ios-ax-bridge-spike/presentation.ts new file mode 100644 index 000000000..cfd99aeb1 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/presentation.ts @@ -0,0 +1,100 @@ +import { performance } from 'node:perf_hooks'; +import { + createIosSnapshotRequest, + deriveIosCaptureHint, +} from '@agent-device/capture-kit/ios-snapshot-planning'; +import type { IosSnapshotAcquisition } from '@agent-device/contracts/ios-snapshot'; +import type { RawSnapshotNode } from '@agent-device/kernel/snapshot'; +import type { PresentationMeasurement, RawAcquisition } from './types.ts'; + +export function presentAcquisitionForMeasurement(raw: RawAcquisition): { + acquisition: IosSnapshotAcquisition; + measurement: PresentationMeasurement; +} { + const started = performance.now(); + const usage = process.resourceUsage(); + const acquisitionIntent = 'full' as const; + const request = createIosSnapshotRequest({ raw: true, acquisitionIntent }); + const acquisition: IosSnapshotAcquisition = { + producer: 'simulator-ax-bridge', + intent: acquisitionIntent, + hint: { ...deriveIosCaptureHint(request), acquisitionIntent }, + nodes: raw.nodes.map((node, index) => toRawSnapshotNode(node, index, nodeIndexes(raw.nodes))), + truncated: raw.truncated, + viewport: raw.viewport, + lineage: { + targetId: raw.targetId, + ...(raw.targetGeneration === null ? {} : { generation: raw.targetGeneration }), + }, + residue: raw.residue, + }; + const payloadBytes = Buffer.byteLength(JSON.stringify(acquisition)); + const nextUsage = process.resourceUsage(); + return { + acquisition, + measurement: { + ok: true, + payloadBytes, + nodeCount: raw.nodes.length, + durationMs: performance.now() - started, + cpuMs: cpuMilliseconds(nextUsage) - cpuMilliseconds(usage), + memoryBytes: process.memoryUsage().rss, + }, + }; +} + +function toRawSnapshotNode( + node: RawAcquisition['nodes'][number], + index: number, + nodeIndexes: ReadonlyMap, +): RawSnapshotNode { + return { + index, + ...optionalParent(node.parentId, nodeIndexes), + ...optionalString(node, 'type'), + ...optionalString(node, 'role'), + ...optionalString(node, 'subrole'), + ...optionalString(node, 'label'), + ...optionalString(node, 'value'), + ...optionalString(node, 'identifier'), + ...optionalFrame(node.frame), + ...optionalBoolean(node, 'enabled'), + ...optionalBoolean(node, 'selected'), + ...optionalBoolean(node, 'focused'), + }; +} + +function nodeIndexes(nodes: RawAcquisition['nodes']): ReadonlyMap { + return new Map(nodes.map((node, index) => [node.id, index])); +} + +function optionalParent( + parentId: string | undefined, + indexes: ReadonlyMap, +): Partial { + if (parentId === undefined) return {}; + const parentIndex = indexes.get(parentId); + return parentIndex === undefined ? {} : { parentIndex }; +} + +function optionalString( + node: RawAcquisition['nodes'][number], + key: 'type' | 'role' | 'subrole' | 'label' | 'value' | 'identifier', +): Partial { + return node[key] === undefined ? {} : { [key]: node[key] }; +} + +function optionalBoolean( + node: RawAcquisition['nodes'][number], + key: 'enabled' | 'selected' | 'focused', +): Partial { + return node[key] === undefined ? {} : { [key]: node[key] }; +} + +function optionalFrame(frame: RawAcquisition['nodes'][number]['frame']): Partial { + return frame === undefined ? {} : { rect: frame }; +} + +function cpuMilliseconds(usage: NodeJS.ResourceUsage): number { + return (usage.userCPUTime + usage.systemCPUTime) / 1_000; +} diff --git a/scripts/ios-ax-bridge-spike/protocol.ts b/scripts/ios-ax-bridge-spike/protocol.ts new file mode 100644 index 000000000..872cef243 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/protocol.ts @@ -0,0 +1,187 @@ +import { validateRawAcquisition } from './limits.ts'; +import type { + ResourceMetrics, + SpikeFailure, + SpikeFailureKind, + SpikeRequest, + SpikeResponse, +} from './types.ts'; +import type { FirstTreeStatus } from '../ios-snapshot-benchmark/types.ts'; + +const FAILURE_KINDS: ReadonlySet = new Set([ + 'unsupported-mechanism', + 'malformed-tree', + 'stale-generation', + 'timeout', + 'cancelled', + 'process-crash', + 'transport-failure', +]); + +export function parseSpikeResponse( + value: unknown, + request: SpikeRequest, + responseBytes: number, +): SpikeResponse { + if (!isRecord(value)) return malformedResponse(request, 'response-not-object', responseBytes); + if (value.version !== 1) return malformedResponse(request, 'protocol-version', responseBytes); + if (value.id !== request.id) + return malformedResponse(request, 'response-id-mismatch', responseBytes); + if (value.candidate !== request.candidate) { + return malformedResponse(request, 'response-candidate-mismatch', responseBytes); + } + const metrics = parseMetrics(value.metrics, responseBytes); + if (!metrics) return malformedResponse(request, 'metrics-invalid', responseBytes); + + if (value.ok === true) { + const tree = validateRawAcquisition(value.acquisition, request.limits); + if (!tree.ok) return malformedResponse(request, tree.code, responseBytes, metrics); + return { + version: 1, + id: request.id, + candidate: request.candidate, + ok: true, + acquisition: tree.acquisition, + metrics: { + ...metrics, + nodeCount: tree.acquisition.nodes.length, + maxTraversalDepth: tree.maxTraversalDepth, + }, + }; + } + + const failure = parseFailure(value.failure); + if (!failure) return malformedResponse(request, 'failure-invalid', responseBytes, metrics); + return { + version: 1, + id: request.id, + candidate: request.candidate, + ok: false, + failure, + metrics, + }; +} + +export function failureResponse( + request: SpikeRequest, + failure: SpikeFailure, + metrics: Partial = {}, +): SpikeResponse { + return { + version: 1, + id: request.id, + candidate: request.candidate, + ok: false, + failure, + metrics: { + requestBytes: metrics.requestBytes ?? 0, + responseBytes: metrics.responseBytes ?? 0, + nodeCount: metrics.nodeCount ?? 0, + maxTraversalDepth: metrics.maxTraversalDepth ?? 0, + cpuMs: metrics.cpuMs ?? null, + memoryBytes: metrics.memoryBytes ?? null, + durationMs: metrics.durationMs ?? 0, + }, + }; +} + +export function firstTreeStatus(response: SpikeResponse): FirstTreeStatus { + if (response.ok) return response.acquisition?.nodes.length ? 'readable' : 'empty'; + if (response.failure?.kind === 'unsupported-mechanism') return 'unreadable'; + return 'not-observed'; +} + +function malformedResponse( + request: SpikeRequest, + code: string, + responseBytes: number, + metrics?: ResourceMetrics, +): SpikeResponse { + return failureResponse( + request, + { kind: 'malformed-tree', code }, + { + ...(metrics ?? {}), + responseBytes, + }, + ); +} + +function parseMetrics(value: unknown, responseBytes: number): ResourceMetrics | undefined { + if (!isRecord(value)) return undefined; + const requestBytes = finiteNonNegative(value.requestBytes); + const nodeCount = finiteNonNegative(value.nodeCount); + const maxTraversalDepth = finiteNonNegative(value.maxTraversalDepth); + const durationMs = finiteNonNegative(value.durationMs); + if ( + requestBytes === undefined || + nodeCount === undefined || + maxTraversalDepth === undefined || + durationMs === undefined + ) { + return undefined; + } + const cpuMs = nullableFiniteNonNegative(value.cpuMs); + const memoryBytes = nullableFiniteNonNegative(value.memoryBytes); + if (cpuMs === 'invalid' || memoryBytes === 'invalid') return undefined; + return { + requestBytes, + responseBytes, + nodeCount, + maxTraversalDepth, + cpuMs, + memoryBytes, + durationMs, + }; +} + +function parseFailure(value: unknown): SpikeFailure | undefined { + const record = asFailureRecord(value); + if (!record) return undefined; + const kind = readFailureKind(record.kind); + if (!kind) return undefined; + const code = optionalFailureString(record, 'code'); + const expected = optionalFailureString(record, 'expectedTargetGeneration'); + const observed = optionalFailureString(record, 'observedTargetGeneration'); + if (!code.valid || !expected.valid || !observed.valid) return undefined; + return { + kind, + ...(code.value === undefined ? {} : { code: code.value }), + ...(expected.value === undefined ? {} : { expectedTargetGeneration: expected.value }), + ...(observed.value === undefined ? {} : { observedTargetGeneration: observed.value }), + }; +} + +function asFailureRecord(value: unknown): Record | undefined { + return isRecord(value) && typeof value.kind === 'string' ? value : undefined; +} + +function readFailureKind(value: unknown): SpikeFailureKind | undefined { + return typeof value === 'string' && FAILURE_KINDS.has(value as SpikeFailureKind) + ? (value as SpikeFailureKind) + : undefined; +} + +function optionalFailureString( + value: Record, + key: 'code' | 'expectedTargetGeneration' | 'observedTargetGeneration', +): { valid: boolean; value?: string } { + if (value[key] === undefined) return { valid: true }; + return typeof value[key] === 'string' + ? { valid: true, value: value[key] as string } + : { valid: false }; +} + +function finiteNonNegative(value: unknown): number | undefined { + return typeof value === 'number' && Number.isFinite(value) && value >= 0 ? value : undefined; +} + +function nullableFiniteNonNegative(value: unknown): number | null | 'invalid' { + if (value === null) return null; + const number = finiteNonNegative(value); + return number === undefined ? 'invalid' : number; +} + +function isRecord(value: unknown): value is Record { + return value !== null && typeof value === 'object' && !Array.isArray(value); +} diff --git a/scripts/ios-ax-bridge-spike/report.test.ts b/scripts/ios-ax-bridge-spike/report.test.ts new file mode 100644 index 000000000..c298b5003 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/report.test.ts @@ -0,0 +1,48 @@ +import assert from 'node:assert/strict'; +import fs from 'node:fs'; +import { gunzipSync } from 'node:zlib'; +import { test } from 'vitest'; +import { corpusCoverage } from './corpus-coverage.ts'; +import { markdownPath } from './report.ts'; + +test('keeps markdown separate from every supported raw artifact path', () => { + assert.equal(markdownPath('/tmp/evidence.json.gz'), '/tmp/evidence.md'); + assert.equal(markdownPath('/tmp/evidence.json'), '/tmp/evidence.md'); + assert.equal(markdownPath('/tmp/evidence'), '/tmp/evidence.md'); +}); + +test('does not call an unproduced requested corpus full', () => { + assert.equal( + corpusCoverage( + ['cold-cold', 'cold', 'warm', 'relaunch'], + ['quiet', 'list', 'nested-scroll', 'alert', 'system-surface', 'xctest-stress'], + [], + ['public-macos-ax'], + ), + 'decisive-early-stop', + ); +}); + +test('ships a readable completed decision inside the checked gzip artifact', () => { + const compressed = fs.readFileSync('docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz'); + const report = JSON.parse(gunzipSync(compressed).toString('utf8')) as { + schemaVersion?: string; + status?: string; + decision?: string; + corpusCoverage?: string; + }; + assert.deepEqual( + { + schemaVersion: report.schemaVersion, + status: report.status, + decision: report.decision, + corpusCoverage: report.corpusCoverage, + }, + { + schemaVersion: 'ios-simulator-ax-bridge-spike.v1', + status: 'completed', + decision: 'NO-GO', + corpusCoverage: 'decisive-early-stop', + }, + ); +}); diff --git a/scripts/ios-ax-bridge-spike/report.ts b/scripts/ios-ax-bridge-spike/report.ts new file mode 100644 index 000000000..00e6d2bdf --- /dev/null +++ b/scripts/ios-ax-bridge-spike/report.ts @@ -0,0 +1,292 @@ +import fs from 'node:fs'; +import path from 'node:path'; +import { gzipSync } from 'node:zlib'; +import type { SpikeCell, SpikeReport, SpikeSample } from './types.ts'; + +export function writeSpikeReport(outputPath: string, report: SpikeReport): void { + const compact = compactReportEvidence(report); + fs.mkdirSync(path.dirname(outputPath), { recursive: true }); + fs.writeFileSync(outputPath, gzipSync(`${JSON.stringify(compact)}\n`, { level: 9 })); + fs.writeFileSync(markdownPath(outputPath), renderSpikeMarkdown(compact)); +} + +export function markdownPath(outputPath: string): string { + const replaced = outputPath.replace(/\.json(?:\.gz)?$/u, '.md'); + return replaced === outputPath ? `${outputPath}.md` : replaced; +} + +function renderSpikeMarkdown(report: SpikeReport): string { + const lines = [ + '# iOS Simulator AX bridge spike', + '', + `- Decision: **${report.decision}**`, + `- Status: **${report.status}**`, + `- Revision: ${report.revision.commit} (${report.revision.branch})`, + `- Target: ${report.target.name} (${report.target.udid}, ${report.target.runtime})`, + `- Generated: ${report.generatedAt}`, + `- Corpus: states=${report.config.states.join(', ')}, screens=${report.config.screens.join(', ')}, samples=${report.config.requestedSamples}`, + `- Corpus coverage: **${report.corpusCoverage}**`, + '', + '## Evaluated guest mechanism', + '', + `- Implementation: **${report.guestMechanism.implementation} ${report.guestMechanism.release}** using \`${report.guestMechanism.backend}\` and \`${report.guestMechanism.outputFormat}\` output.`, + `- Companion: \`${report.guestMechanism.companionArchive}\` (SHA-256 \`${report.guestMechanism.companionSha256}\`).`, + `- CLI: \`${report.guestMechanism.cliArchive}\` (SHA-256 \`${report.guestMechanism.cliSha256}\`).`, + `- Host client: **${report.guestMechanism.client}**; the companion and client remain outside the distributed package.`, + '', + '## Environment and limits', + '', + ...environmentLines(report), + '', + '## Candidate fidelity and limitation matrix', + '', + '| Candidate | Mechanism | App surface | System surface | Lifecycle | Main limitation |', + '|---|---|---|---|---|---|', + `| public-macos-ax | public macOS ApplicationServices AX | ${surfaceStatus(report, 'public-macos-ax', 'app')} | ${surfaceStatus(report, 'public-macos-ax', 'system')} | framed protocol | ${publicAxLimitation(report)} |`, + `| guest-simulator-framework-bridge | idb SimulatorFrameworkBridge guest via axbridge-persistent | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'app')} | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'system')} | persistent companion + typed reader | provider exposes a flat raw element response |`, + `| xctest-control | #2189 XCTest runner control | ${surfaceStatus(report, 'xctest-control', 'app')} | ${surfaceStatus(report, 'xctest-control', 'system')} | existing runner lifecycle | control, not a host-side AX bridge |`, + '', + '## Raw acquisition and prototype presentation results', + '', + '| Candidate | State | Screen | Readable/attempted | Wall p50/p95 ms | Gated duration p50/p95 ms | First look p95 ms | Presentation p50/p95 ms | Nodes | Failures |', + '|---|---|---|---:|---:|---:|---:|---:|---:|---:|', + ...report.cells.map(renderCellRow), + '', + ...fidelityLines(report), + '', + 'Every acquisition sample retains timing, resource, readiness, and failure evidence; the first successful sample in each cell also retains one raw node-tree exemplar with viewport, target generation, truncation, and residue. Presentation samples measure only construction of the #2190 acquired carrier; they do not apply visibility, hittability, scope, depth, or semantic compaction.', + '', + '## Direct protocol probes', + '', + ...probeLines(report), + '', + '## Independent positive-control evidence', + '', + `- Invalid shallow rule: exit=${report.positiveControl.invalidShallowRule.exitCode}; command=${report.positiveControl.invalidShallowRule.command}; assertion=${report.positiveControl.invalidShallowRule.assertion}`, + `- Safe full rule: exit=${report.positiveControl.safeFullRule.exitCode}; command=${report.positiveControl.safeFullRule.command}; assertion=${report.positiveControl.safeFullRule.assertion}`, + '', + '## Preference experiment', + '', + `- Applied: **${report.preferenceEvidence.applied}**`, + `- Restored: **${report.preferenceEvidence.applied ? report.preferenceEvidence.restored : 'not required'}**`, + `- Fixture launch compatible: **${report.preferenceEvidence.fixtureLaunchCompatible ?? 'not exercised'}**`, + `- Simulator state before experiment: ${report.preferenceEvidence.simulatorStateBefore}`, + preferenceExperimentLine(report), + ...preferenceLines(report), + '', + '## Lifecycle, cancellation, and recovery', + '', + `- Source: ${report.lifecycle.source}`, + `- Process crash: ${report.lifecycle.crash.failure}; recovered=${report.lifecycle.crash.recovered}`, + `- Timeout: ${report.lifecycle.timeout.failure}; recovered=${report.lifecycle.timeout.recovered}`, + `- Cancellation: ${report.lifecycle.cancellation.failure}; recovered=${report.lifecycle.cancellation.recovered}`, + `- Stale generation: ${report.lifecycle.staleGeneration.failure}; recovered=${report.lifecycle.staleGeneration.recovered}`, + '', + '## Decision rationale', + '', + ...report.decisionReasons.map((reason) => `- ${reason}`), + '', + '## Next interface boundary', + '', + `- ${report.nextInterface}`, + '', + '## Production boundary', + '', + '- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made.', + '- A production bridge should not start until this report has a GO result; this run is the #2192 boundary.', + ]; + if (report.stop) { + lines.push('', '## Stop condition', '', `- ${report.stop.category}: ${report.stop.message}`); + if (report.stop.command) lines.push(`- Command: ${report.stop.command}`); + } + return `${lines.join('\n')}\n`; +} + +function environmentLines(report: SpikeReport): string[] { + return [ + `- Node: ${report.toolchain.node}`, + `- pnpm: ${report.toolchain.pnpm}`, + `- Xcode: ${report.toolchain.xcode.replaceAll('\n', '; ')}`, + `- simctl: ${report.toolchain.simctl}`, + `- Swift: ${report.toolchain.swift}`, + `- OS: ${report.toolchain.os}; arch=${report.toolchain.arch}`, + `- Bounds: request=${report.limits.maxRequestBytes} B, response=${report.limits.maxResponseBytes} B, nodes=${report.limits.maxNodes}, traversal=${report.limits.maxTraversalDepth}, CPU=${report.limits.maxCpuMs} ms, memory=${report.limits.maxMemoryBytes} B, duration=${report.limits.maxDurationMs} ms`, + ]; +} + +function probeLines(report: SpikeReport): string[] { + const lines: string[] = []; + for (const probe of report.protocolProbes) { + lines.push(renderProbeLine(probe)); + } + for (const log of report.protocolProbeLogs) { + lines.push(renderProbeLog(log)); + } + return lines; +} + +function renderProbeLine(probe: SpikeReport['protocolProbes'][number]): string { + return `- ${probe.candidate}/${probe.id}: ok=${probe.ok}, failure=${failureValue(probe.failure, 'kind')}, code=${failureValue(probe.failure, 'code')}, nodes=${probe.metrics.nodeCount}, duration=${probe.metrics.durationMs.toFixed(1)} ms, CPU=${metricValue(probe.metrics.cpuMs)} ms, memory=${probe.metrics.memoryBytes ?? '–'} B, response=${probe.metrics.responseBytes} B`; +} + +function renderProbeLog(log: SpikeReport['protocolProbeLogs'][number]): string { + return `- stderr ${log.candidate}/${log.id}: ${log.stderr.trim().replaceAll('\n', ' ⏎ ') || 'empty'}`; +} + +function failureValue( + failure: SpikeReport['protocolProbes'][number]['failure'], + key: 'kind' | 'code', +): string { + return failure?.[key] ?? 'none'; +} + +function metricValue(value: number | null): string { + return value === null ? '–' : value.toFixed(1); +} + +function renderCellRow(cell: SpikeCell): string { + const acquisition = cell.acquisitionSamples; + const presentation = cell.presentationSamples; + const readable = acquisition.filter((sample) => sample.ok && sample.firstTree === 'readable'); + const failures = acquisition.length - readable.length; + const nodeCounts = readable.flatMap((sample) => + typeof sample.metrics?.nodeCount === 'number' ? [sample.metrics.nodeCount] : [], + ); + return `| ${cell.candidate} | ${cell.state} | ${cell.screen} | ${readable.length}/${acquisition.length} | ${summary(readable, 'wallClockMs')} | ${metricSummary(readable)} | ${summary(readable, 'firstLookMs')} | ${summary( + presentation.filter((sample) => sample.ok), + 'wallClockMs', + )} | ${formatNumber(median(nodeCounts))} | ${failures} |`; +} + +function metricSummary(samples: readonly SpikeSample[]): string { + const values = samples.flatMap((sample) => + sample.metrics && Number.isFinite(sample.metrics.durationMs) ? [sample.metrics.durationMs] : [], + ); + return values.length === 0 + ? '–' + : `${formatNumber(median(values))}/${formatNumber(percentile(values, 95))}`; +} + +function surfaceStatus( + report: SpikeReport, + candidate: SpikeCell['candidate'], + surface: 'app' | 'system', +): string { + const cells = report.cells.filter( + (cell) => + cell.candidate === candidate && + (surface === 'system' ? cell.screen === 'system-surface' : cell.screen !== 'system-surface'), + ); + if (cells.some((cell) => cell.acquisitionSamples.some((sample) => sample.ok))) { + return 'observed in successful cells'; + } + if (cells.length > 0) return 'failed in cells'; + const probe = report.protocolProbes.find((item) => item.candidate === candidate); + if (probe?.failure?.kind === 'unsupported-mechanism') return 'unsupported before corpus'; + if (report.candidates.includes(candidate)) return 'not exercised'; + return 'not selected'; +} + +function preferenceLines(report: SpikeReport): string[] { + return report.preferenceEvidence.diffs.flatMap((diff) => [ + `- ${diff.path}: existed=${diff.existedBefore}, beforeSha256=${diff.beforeSha256 ?? 'missing'}, afterSha256=${diff.afterSha256 ?? 'missing'}`, + ` - Changes: ${diff.changes.length === 0 ? 'none' : diff.changes.map((change) => `${change.key}: ${JSON.stringify(change.before)} -> ${JSON.stringify(change.after)}`).join('; ')}`, + ]); +} + +function preferenceExperimentLine(report: SpikeReport): string { + return report.preferenceEvidence.applied && report.preferenceEvidence.restored + ? '- Private/preboot preference keys are experimental only; they were applied to this shutdown disposable Simulator and the original plist bytes were restored.' + : report.preferenceEvidence.applied + ? '- Private/preboot preference keys were applied, but restoration was not proven.' + : '- No private/preboot preference keys were applied in this run.'; +} + +function publicAxLimitation(report: SpikeReport): string { + const publicList = exemplarSample(report, 'public-macos-ax', 'list'); + const controlList = exemplarSample(report, 'xctest-control', 'list'); + if (!publicList || !controlList) return 'fidelity and latency remain unproven'; + const publicDepth = publicList.metrics?.maxTraversalDepth ?? 0; + const controlDepth = controlList.metrics?.maxTraversalDepth ?? 0; + const publicIdentifiers = publicList.acquisition!.nodes.filter((node) => node.identifier).length; + const controlIdentifiers = controlList.acquisition!.nodes.filter( + (node) => node.identifier, + ).length; + const shape = publicDepth < controlDepth ? 'flatter' : 'structurally different'; + return `list evidence is ${shape} and has different identifier coverage (depth ${publicDepth} vs ${controlDepth}; identifiers ${publicIdentifiers} vs ${controlIdentifiers})`; +} + +function compactReportEvidence(report: SpikeReport): SpikeReport { + return { + ...report, + cells: report.cells.map((cell) => ({ + ...cell, + acquisitionSamples: cell.acquisitionSamples.map((sample, index) => + index === 0 || !sample.ok || sample.stderr === undefined ? sample : withoutStderr(sample), + ), + presentationSamples: cell.presentationSamples.map((sample) => withoutStderr(sample)), + })), + }; +} + +function withoutStderr(sample: SpikeSample): SpikeSample { + const { stderr: _stderr, ...rest } = sample; + return rest; +} + +function fidelityLines(report: SpikeReport): string[] { + const lines = ['Raw exemplar fidelity (candidate vs XCTest control):']; + const candidates = ['guest-simulator-framework-bridge', 'public-macos-ax'] as const; + for (const candidate of candidates) { + let compared = false; + for (const screen of report.config.screens) { + const candidateSample = exemplarSample(report, candidate, screen); + const controlSample = exemplarSample(report, 'xctest-control', screen); + if (!candidateSample || !controlSample) continue; + compared = true; + const candidateNodes = candidateSample.acquisition!.nodes; + const controlNodes = controlSample.acquisition!.nodes; + lines.push( + `- ${candidate} ${screen}: nodes ${candidateNodes.length}/${controlNodes.length}; depth ${candidateSample.metrics?.maxTraversalDepth ?? '–'}/${controlSample.metrics?.maxTraversalDepth ?? '–'}; identifiers ${candidateNodes.filter((node) => node.identifier).length}/${controlNodes.filter((node) => node.identifier).length}.`, + ); + } + if (!compared && report.candidates.includes(candidate)) { + lines.push(`- ${candidate}: no comparable raw exemplar was produced.`); + } + } + return lines.length === 1 ? ['Raw exemplar fidelity comparison was not available.'] : lines; +} + +function exemplarSample( + report: SpikeReport, + candidate: SpikeCell['candidate'], + screen: SpikeCell['screen'], +): SpikeSample | undefined { + return report.cells + .find((cell) => cell.candidate === candidate && cell.screen === screen) + ?.acquisitionSamples.find((sample) => sample.acquisition); +} + +function summary(samples: readonly SpikeSample[], key: 'wallClockMs' | 'firstLookMs'): string { + const values = samples.flatMap((sample) => { + const value = sample[key]; + return typeof value === 'number' && Number.isFinite(value) ? [value] : []; + }); + if (values.length === 0) return '–'; + return `${formatNumber(median(values))}/${formatNumber(percentile(values, 95))}`; +} + +function median(values: readonly number[]): number { + return percentile(values, 50); +} + +function percentile(values: readonly number[], percentage: number): number { + if (values.length === 0) return Number.NaN; + const sorted = [...values].sort((left, right) => left - right); + const rank = Math.ceil((percentage / 100) * sorted.length); + return sorted[Math.min(sorted.length - 1, Math.max(0, rank - 1))]!; +} + +function formatNumber(value: number): string { + return Number.isFinite(value) ? value.toFixed(1) : '–'; +} diff --git a/scripts/ios-ax-bridge-spike/run.test.ts b/scripts/ios-ax-bridge-spike/run.test.ts new file mode 100644 index 000000000..2874cb984 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/run.test.ts @@ -0,0 +1,13 @@ +import assert from 'node:assert/strict'; +import { execFileSync } from 'node:child_process'; +import { test } from 'vitest'; + +test('loads the executable spike entrypoint', () => { + const output = execFileSync( + process.execPath, + ['--experimental-strip-types', 'scripts/ios-ax-bridge-spike/run.ts', '--help'], + { encoding: 'utf8' }, + ); + + assert.match(output, /Usage: pnpm bench:ios-ax-bridge/); +}); diff --git a/scripts/ios-ax-bridge-spike/run.ts b/scripts/ios-ax-bridge-spike/run.ts new file mode 100644 index 000000000..464c77655 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/run.ts @@ -0,0 +1,328 @@ +import path from 'node:path'; +import { execFileSync } from 'node:child_process'; +import { fileURLToPath } from 'node:url'; +import { createPublicMacOsAxAdapter, createXCTestControlAdapter } from './adapter.ts'; +import { + createGuestSimulatorFrameworkBridgeAdapter, + GUEST_MECHANISM_EVIDENCE, +} from './guest-adapter.ts'; +import { parseConfig, type SpikeConfig } from './config.ts'; +import { decideSpike } from './decision.ts'; +import { runLifecycleProbes } from './lifecycle.ts'; +import { markdownPath, writeSpikeReport } from './report.ts'; +import { corpusCoverage } from './corpus-coverage.ts'; +import { + initialPreferenceEvidence, + primeFixtureApps, + runPreferenceExperiment, +} from './preference-experiment.ts'; +import { createAdapterOptions, runSpikeCells } from './runner.ts'; +import { readGitRevision, readTarget, readToolchain } from '../ios-snapshot-benchmark/host.ts'; +import { runDeepButtonControls } from '../ios-snapshot-benchmark/deep-control.ts'; +import { deepButtonFixtureEvidence } from '../ios-snapshot-benchmark/deep-button.ts'; +import { bootSimulator, shutdownSimulator } from '../ios-snapshot-benchmark/lifecycle.ts'; +import type { AcquisitionAdapter } from './adapter.ts'; +import { SPIKE_ISSUE, SPIKE_PARENT, SPIKE_PREREQUISITES, SPIKE_SCHEMA_VERSION } from './types.ts'; +import type { + PreferenceEvidence, + ProtocolProbeLog, + SpikeReport, + SpikeRequest, + SpikeResponse, + Toolchain, +} from './types.ts'; + +if (isMainModule()) void main(process.argv.slice(2)).catch(reportFailure); + +function reportFailure(error: unknown): void { + process.stderr.write( + `${error instanceof Error ? (error.stack ?? error.message) : String(error)}\n`, + ); + process.exitCode = 1; +} + +async function main(argv: readonly string[]): Promise { + const config = parseConfig(argv); + const metadata = readMetadata(config); + const runConfig = { ...config, targetWindowName: metadata.target.name }; + const lifecycle = await runLifecycleProbes(); + const evidence = await executeSpikeRun(runConfig); + const decision = decideSpike( + evidence.cells, + lifecycle, + evidence.preferenceEvidence, + config.limits, + evidence.status, + evidence.protocolProbes, + ); + const report = createReport(runConfig, metadata, lifecycle, evidence, decision); + writeSpikeReport(config.outputPath, report); + process.stdout.write( + `Decision: ${report.decision}\nRaw: ${config.outputPath}\nMarkdown: ${markdownPath(config.outputPath)}\n`, + ); + if (evidence.status === 'stopped') process.exitCode = 2; +} + +type SpikeRunEvidence = Readonly<{ + status: SpikeReport['status']; + stop?: SpikeReport['stop']; + cells: Awaited>; + protocolProbes: SpikeResponse[]; + protocolProbeLogs: SpikeReport['protocolProbeLogs']; + preferenceEvidence: PreferenceEvidence; + positiveControl: SpikeReport['positiveControl']; +}>; + +async function executeSpikeRun(config: SpikeConfig): Promise { + return collectSpikeEvidence(config); +} + +type CollectedSpikeEvidence = SpikeRunEvidence; + +async function collectSpikeEvidence(config: SpikeConfig): Promise { + let preferenceEvidence = initialPreferenceEvidence(config.udid); + let cells: Awaited> = []; + let protocolProbes: SpikeResponse[] = []; + let protocolProbeLogs: SpikeReport['protocolProbeLogs'] = []; + let positiveControl = deepButtonFixtureEvidence(); + let adapters: readonly AcquisitionAdapter[] = []; + try { + positiveControl = runDeepButtonControls(config.repoRoot); + preferenceEvidence = runPreferenceExperiment(config); + assertPreferenceRestored(config, preferenceEvidence); + adapters = createAdapters(config); + bootSimulator(config.udid); + primeFixtureApps(config); + const probes = await runProtocolProbes(config, adapters); + protocolProbes = probes.responses; + protocolProbeLogs = probes.logs; + cells = await runSpikeCells(config, supportedAdapters(adapters, protocolProbes)); + return collectedEvidence( + 'completed', + cells, + protocolProbes, + protocolProbeLogs, + preferenceEvidence, + positiveControl, + ); + } catch (error) { + return { + ...collectedEvidence( + 'stopped', + cells, + protocolProbes, + protocolProbeLogs, + preferenceEvidence, + positiveControl, + ), + stop: stopForError(error), + }; + } finally { + await closeAdapters(adapters); + cleanupDevice(config); + } +} + +async function closeAdapters(adapters: readonly AcquisitionAdapter[]): Promise { + for (const adapter of adapters) await adapter.close?.(); +} + +function collectedEvidence( + status: SpikeReport['status'], + cells: SpikeReport['cells'], + protocolProbes: SpikeResponse[], + protocolProbeLogs: SpikeReport['protocolProbeLogs'], + preferenceEvidence: PreferenceEvidence, + positiveControl: SpikeReport['positiveControl'], +): CollectedSpikeEvidence { + return { + status, + cells, + protocolProbes, + protocolProbeLogs, + preferenceEvidence, + positiveControl, + }; +} + +function assertPreferenceRestored(config: SpikeConfig, evidence: PreferenceEvidence): void { + if (config.applyPreferences && !evidence.restored) { + throw new Error('The task-owned Simulator preference experiment was not restored.'); + } +} + +function cleanupDevice(config: SpikeConfig): void { + if (!config.keepDevice) shutdownSimulator(config.udid); +} + +function stopForError(error: unknown): SpikeReport['stop'] { + return { + category: isConfigurationError(error) ? 'configuration' : 'infrastructure', + message: error instanceof Error ? error.message : String(error), + ...(errorCommand(error) ? { command: errorCommand(error) } : {}), + }; +} + +function createReport( + config: SpikeConfig, + metadata: { target: SpikeReport['target']; toolchain: Toolchain }, + lifecycle: SpikeReport['lifecycle'], + evidence: SpikeRunEvidence, + decision: { decision: SpikeReport['decision']; reasons: string[] }, +): SpikeReport { + return { + schemaVersion: SPIKE_SCHEMA_VERSION, + issue: SPIKE_ISSUE, + parent: SPIKE_PARENT, + prerequisites: SPIKE_PREREQUISITES, + generatedAt: new Date().toISOString(), + revision: readGitRevision(config.repoRoot), + toolchain: metadata.toolchain, + guestMechanism: GUEST_MECHANISM_EVIDENCE, + target: metadata.target, + limits: config.limits, + candidates: config.candidates, + config: { + states: config.states, + screens: config.screens, + requestedSamples: config.samples, + }, + protocolProbes: evidence.protocolProbes, + protocolProbeLogs: evidence.protocolProbeLogs, + preferenceEvidence: evidence.preferenceEvidence, + lifecycle, + positiveControl: evidence.positiveControl, + status: evidence.status, + corpusCoverage: corpusCoverage( + config.states, + config.screens, + evidence.cells, + config.candidates, + ), + cells: evidence.cells, + decision: decision.decision, + decisionReasons: decision.reasons, + nextInterface: + 'Keep any future bridge behind the #2190 acquisition adapter and preserve raw facts until a separate GO evidence run proves fidelity, lifecycle, and latency.', + ...(evidence.stop ? { stop: evidence.stop } : {}), + }; +} + +function createAdapters(config: SpikeConfig) { + const options = createAdapterOptions(config); + const adapters = config.candidates.flatMap((candidate) => { + if (candidate === 'public-macos-ax') return [createPublicMacOsAxAdapter(options)]; + if (candidate === 'guest-simulator-framework-bridge') + return [createGuestSimulatorFrameworkBridgeAdapter(options)]; + return [ + createXCTestControlAdapter((request) => ({ + repoRoot: config.repoRoot, + stateDir: config.stateDir, + session: `ax-spike-xctest-control-${request.state ?? 'state'}-${request.screen}`, + udid: request.simulatorUdid, + derivedPath: path.join(config.derivedPath, 'xctest-control', request.screen), + })), + ]; + }); + return adapters; +} + +async function runProtocolProbes( + config: SpikeConfig, + adapters: readonly AcquisitionAdapter[], +): Promise<{ responses: SpikeResponse[]; logs: SpikeReport['protocolProbeLogs'] }> { + const responses: SpikeResponse[] = []; + const logs: ProtocolProbeLog[] = []; + for (const adapter of adapters.filter(isBridgeAdapter)) { + const request = protocolProbeRequest(config, adapter.candidate); + const result = await adapter.acquireBatch([request]); + responses.push(...result.responses.slice(0, 1)); + logs.push({ candidate: adapter.candidate, id: request.id, stderr: result.stderr }); + } + return { responses, logs }; +} + +function isBridgeAdapter(adapter: AcquisitionAdapter): adapter is AcquisitionAdapter & { + candidate: Exclude; +} { + return adapter.candidate !== 'xctest-control'; +} + +function protocolProbeRequest( + config: SpikeConfig, + candidate: Exclude, +): SpikeRequest { + return { + version: 1, + id: `protocol-probe:${candidate}`, + candidate, + simulatorUdid: config.udid, + state: 'warm', + screen: 'unprepared-surface', + appBundleId: config.appBundleId, + ...(config.targetWindowName === undefined ? {} : { targetWindowName: config.targetWindowName }), + ...(config.targetProcessId === undefined ? {} : { targetProcessId: config.targetProcessId }), + limits: config.limits, + }; +} + +function readMetadata(config: SpikeConfig): { + target: SpikeReport['target']; + toolchain: Toolchain; +} { + const target = readTarget(config.udid, 'com.callstack.agentdevicelab'); + const base = readToolchain(); + return { + target: { udid: target.udid, name: target.name, runtime: target.runtime }, + toolchain: { ...base, swift: commandText('swift', ['--version']) }, + }; +} + +function supportedAdapters( + adapters: readonly AcquisitionAdapter[], + probes: readonly SpikeResponse[], +): readonly AcquisitionAdapter[] { + return adapters.filter((adapter) => { + if (adapter.candidate === 'xctest-control') return true; + const probe = probes.find((candidate) => candidate.candidate === adapter.candidate); + return ![ + 'guest-tool-unavailable', + 'guest-companion-start-timeout', + 'guest-companion-spawn-failed', + 'guest-companion-exited-before-ready', + 'host-accessibility-permission', + 'candidate-not-supported', + ].includes(probe?.failure?.code ?? ''); + }); +} + +function commandText(command: string, args: readonly string[]): string { + try { + return execFileSync(command, [...args], { + encoding: 'utf8', + timeout: 30_000, + stdio: ['ignore', 'pipe', 'ignore'], + }).trim(); + } catch { + return 'unavailable'; + } +} + +function isConfigurationError(error: unknown): boolean { + return error instanceof Error && error.name === 'SpikeConfigurationError'; +} + +function errorCommand(error: unknown): string | undefined { + if (error instanceof Error && 'command' in error) { + const command = error.command; + return typeof command === 'string' ? command : undefined; + } + return undefined; +} + +function isMainModule(): boolean { + return Boolean( + process.argv[1] && + path.resolve(process.argv[1]) === path.resolve(fileURLToPath(import.meta.url)), + ); +} diff --git a/scripts/ios-ax-bridge-spike/runner.ts b/scripts/ios-ax-bridge-spike/runner.ts new file mode 100644 index 000000000..e84fc5fb8 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/runner.ts @@ -0,0 +1,299 @@ +import { spawnSync } from 'node:child_process'; +import path from 'node:path'; +import { performance } from 'node:perf_hooks'; +import { + classifyFailure, + openFixture, + type CliContext, +} from '../ios-snapshot-benchmark/command.ts'; +import { + admitReadyCell, + admitStableWarmSample, + admitSuccessfulSample, + cleanupSuccessfulSample, + prepareCellState, + prepareSampleState, + type CellAdmissionOptions, +} from '../ios-snapshot-benchmark/cell-admission.ts'; +import { screenFixture, sampleMinimumForState } from '../ios-snapshot-benchmark/definitions.ts'; +import { BenchmarkInfrastructureError, stopDaemon } from '../ios-snapshot-benchmark/lifecycle.ts'; +import { appendSamples, makeRequest, type CapturedResponse } from './sample-evidence.ts'; +import type { AcquisitionAdapter, AdapterOptions } from './adapter.ts'; +import type { SpikeConfig } from './config.ts'; +import type { CandidateId, SpikeCell, SpikeRequest, SpikeSample } from './types.ts'; + +export async function runSpikeCells( + config: SpikeConfig, + adapters: readonly AcquisitionAdapter[], +): Promise { + const cells: SpikeCell[] = []; + for (const adapter of adapters) { + for (const state of config.states) { + for (const screen of config.screens) { + cells.push(await runCell(config, adapter, state, screen)); + } + } + } + return cells; +} + +export function createAdapterOptions(config: SpikeConfig): AdapterOptions { + return { + repoRoot: config.repoRoot, + ...(config.helperPath ? { helperPath: config.helperPath } : {}), + ...(config.guestCompanion ? { guestCompanion: config.guestCompanion } : {}), + ...(config.guestPython ? { guestPython: config.guestPython } : {}), + ...(config.guestSitePackages ? { guestSitePackages: config.guestSitePackages } : {}), + limits: config.limits, + }; +} + +async function runCell( + config: SpikeConfig, + adapter: AcquisitionAdapter, + state: SpikeConfig['states'][number], + screen: SpikeConfig['screens'][number], +): Promise { + const fixture = screenFixture(screen); + const context = contextFor(config, adapter.candidate, state, screen); + const admission: CellAdmissionOptions = { + repoRoot: config.repoRoot, + stateDir: config.stateDir, + derivedPath: context.derivedPath, + udid: config.udid, + samples: config.samples, + state, + fixture, + }; + const acquisitionSamples: SpikeSample[] = []; + const presentationSamples: SpikeSample[] = []; + try { + prepareCellState(admission); + if (state === 'warm') { + await collectWarmSamples( + config, + adapter, + context, + admission, + acquisitionSamples, + presentationSamples, + ); + } else { + await collectNonWarmSamples( + config, + adapter, + context, + admission, + acquisitionSamples, + presentationSamples, + ); + } + return { + candidate: adapter.candidate, + state, + screen, + sampleMinimum: sampleMinimumForState(state), + acquisitionSamples, + presentationSamples, + }; + } finally { + closeSession(context); + stopDaemon(config.repoRoot, config.stateDir); + } +} + +async function collectWarmSamples( + config: SpikeConfig, + adapter: AcquisitionAdapter, + context: CliContext, + admission: CellAdmissionOptions, + acquisitionSamples: SpikeSample[], + presentationSamples: SpikeSample[], +): Promise { + let appPid = await admitReadyCell(context, admission); + if (appPid === undefined) + throw new BenchmarkInfrastructureError('Warm admission returned no app PID.'); + for (let index = 0; index < config.samples; index += 1) { + if (index > 0) appPid = admitStableWarmSample(admission, appPid); + const request = makeRequest( + config, + adapter.candidate, + admission.state, + admission.fixture.id, + index, + appPid, + ); + const captured = await capture(adapter, request); + appendSamples( + adapter.candidate, + admission.state, + admission.fixture.id, + index, + captured, + 0, + acquisitionSamples, + presentationSamples, + ); + } +} + +async function collectNonWarmSamples( + config: SpikeConfig, + adapter: AcquisitionAdapter, + context: CliContext, + admission: CellAdmissionOptions, + acquisitionSamples: SpikeSample[], + presentationSamples: SpikeSample[], +): Promise { + let appPid: number | undefined; + for (let index = 0; index < config.samples; index += 1) { + if (index > 0) prepareSampleState(admission); + const launchStarted = performance.now(); + const opened = openFixture(context, admission.fixture, { relaunch: true }); + if (!opened.ok) { + throw preparationError( + opened, + `open ${admission.fixture.id}`, + context, + openArguments(admission.fixture), + ); + } + const preparationMs = performance.now() - launchStarted; + appPid = await admitSuccessfulSample(context, admission, opened, appPid); + const request = makeRequest( + config, + adapter.candidate, + admission.state, + admission.fixture.id, + index, + appPid, + ); + const captured = await capture(adapter, request); + appendSamples( + adapter.candidate, + admission.state, + admission.fixture.id, + index, + captured, + preparationMs, + acquisitionSamples, + presentationSamples, + ); + cleanupSuccessfulSample(context, admission); + } +} + +function openArguments(fixture: ReturnType): string[] { + return ['open', fixture.app, '--relaunch', ...launchUrlArguments(fixture), '--foreground']; +} + +function launchUrlArguments(fixture: ReturnType): string[] { + return fixture.launchUrl ? ['--launch-url', fixture.launchUrl] : []; +} + +async function capture( + adapter: AcquisitionAdapter, + request: SpikeRequest, +): Promise { + const startedAt = new Date().toISOString(); + const started = performance.now(); + const batch = await adapter.acquireBatch([request]); + const response = batch.responses[0]; + if (!response) { + throw new BenchmarkInfrastructureError(`Adapter ${adapter.candidate} returned no response.`); + } + return { + response, + stderr: batch.stderr, + startedAt, + wallClockMs: performance.now() - started, + }; +} + +function contextFor( + config: SpikeConfig, + candidate: CandidateId, + state: SpikeConfig['states'][number], + screen: SpikeConfig['screens'][number], +): CliContext { + return { + repoRoot: config.repoRoot, + stateDir: config.stateDir, + session: `ax-spike-${candidate}-${state}-${screen}`, + udid: config.udid, + derivedPath: path.join(config.derivedPath, candidate, state, screen), + }; +} + +function closeSession(context: CliContext): void { + spawnSync( + process.execPath, + [ + 'bin/agent-device.mjs', + 'close', + '--state-dir', + context.stateDir, + '--session', + context.session, + '--platform', + 'ios', + '--udid', + context.udid, + '--json', + ], + { + cwd: context.repoRoot, + env: { ...process.env, AGENT_DEVICE_NO_UPDATE_NOTIFIER: '1' }, + stdio: 'ignore', + timeout: 60_000, + }, + ); +} + +function preparationError( + result: { payload: unknown; stderr: string; exitCode: number }, + operation: string, + context: CliContext, + args: readonly string[], +): Error { + const failure = classifyFailure(result.payload, result); + return new BenchmarkInfrastructureError( + `${operation} failed during fixture preparation (exit ${result.exitCode}; ${failureDetails(failure, result)})`, + commandFor(context, args), + ); +} + +function failureDetails( + failure: ReturnType, + result: { stderr: string }, +): string { + return `code=${fallbackText(failure.code)}; reason=${fallbackText(failure.reason)}; diagnostic=${diagnosticText(failure.message, result.stderr)}`; +} + +function fallbackText(value: string | undefined): string { + return value ?? 'none'; +} + +function diagnosticText(message: string | undefined, stderr: string): string { + const text = message ?? stderr.trim(); + return (text || 'no diagnostic').slice(0, 800); +} + +function commandFor(context: CliContext, args: readonly string[]): string { + return [ + process.execPath, + 'bin/agent-device.mjs', + ...args, + '--state-dir', + context.stateDir, + '--session', + context.session, + '--platform', + 'ios', + '--udid', + context.udid, + '--ios-xctest-derived-data-path', + context.derivedPath, + '--json', + ].join(' '); +} diff --git a/scripts/ios-ax-bridge-spike/sample-evidence.test.ts b/scripts/ios-ax-bridge-spike/sample-evidence.test.ts new file mode 100644 index 000000000..5e88cb256 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/sample-evidence.test.ts @@ -0,0 +1,102 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { appendSamples, type CapturedResponse } from './sample-evidence.ts'; +import type { SpikeSample } from './types.ts'; + +test('keeps one raw acquisition exemplar while retaining every sample measurement', () => { + const acquisitionSamples: SpikeSample[] = []; + const presentationSamples: SpikeSample[] = []; + const captured: CapturedResponse = { + startedAt: '2026-09-01T00:00:00.000Z', + wallClockMs: 12, + stderr: '', + response: { + version: 1, + id: 'sample', + candidate: 'public-macos-ax', + ok: true, + acquisition: { + targetId: 'simulator:test', + nodes: [{ id: 'root', role: 'AXGroup', label: 'Inert surface' }], + viewport: { kind: 'missing', reason: 'not-provided' }, + truncated: false, + residue: [], + }, + metrics: { + requestBytes: 1, + responseBytes: 2, + nodeCount: 1, + maxTraversalDepth: 0, + cpuMs: 1, + memoryBytes: 1, + durationMs: 12, + }, + }, + }; + + for (const index of [0, 1]) { + appendSamples( + 'public-macos-ax', + 'warm', + 'quiet', + index, + captured, + 3, + acquisitionSamples, + presentationSamples, + ); + } + + assert.equal(acquisitionSamples.length, 2); + assert.ok(acquisitionSamples[0]?.acquisition); + assert.equal(acquisitionSamples[1]?.acquisition, undefined); + assert.equal(presentationSamples.length, 2); + assert.equal( + presentationSamples.every((sample) => sample.acquisition === undefined), + true, + ); +}); + +test('rejects a non-empty acquisition that is not bound to the prepared fixture', () => { + const acquisitionSamples: SpikeSample[] = []; + const presentationSamples: SpikeSample[] = []; + const captured: CapturedResponse = { + startedAt: '2026-09-01T00:00:00.000Z', + wallClockMs: 12, + stderr: '', + response: { + version: 1, + id: 'wrong-tree', + candidate: 'public-macos-ax', + ok: true, + acquisition: { + targetId: 'simulator:test', + targetGeneration: 'one', + nodes: [{ id: 'root', label: 'Another screen' }], + viewport: { kind: 'missing', reason: 'not-provided' }, + truncated: false, + residue: [], + }, + metrics: { + requestBytes: 1, + responseBytes: 2, + nodeCount: 1, + maxTraversalDepth: 0, + cpuMs: 1, + memoryBytes: 1, + durationMs: 12, + }, + }, + }; + appendSamples( + 'public-macos-ax', + 'warm', + 'quiet', + 0, + captured, + 0, + acquisitionSamples, + presentationSamples, + ); + assert.equal(acquisitionSamples[0]?.firstTree, 'unreadable'); +}); diff --git a/scripts/ios-ax-bridge-spike/sample-evidence.ts b/scripts/ios-ax-bridge-spike/sample-evidence.ts new file mode 100644 index 000000000..6d6acc571 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/sample-evidence.ts @@ -0,0 +1,160 @@ +import { firstTreeStatus } from './protocol.ts'; +import { presentAcquisitionForMeasurement } from './presentation.ts'; +import { screenFixture } from '../ios-snapshot-benchmark/definitions.ts'; +import type { SpikeConfig } from './config.ts'; +import type { SpikeCell, SpikeRequest, SpikeResponse, SpikeSample } from './types.ts'; + +export type CapturedResponse = Readonly<{ + response: SpikeResponse; + stderr: string; + startedAt: string; + wallClockMs: number; +}>; + +export function appendSamples( + candidate: SpikeCell['candidate'], + state: SpikeCell['state'], + screen: SpikeCell['screen'], + index: number, + captured: CapturedResponse, + preparationMs: number, + acquisitionSamples: SpikeSample[], + presentationSamples: SpikeSample[], +): void { + const acquiredAt = new Date().toISOString(); + const status = fixtureBoundStatus(captured.response, screen); + const keepRawExemplar = + captured.response.acquisition !== undefined && + acquisitionSamples.every((sample) => sample.acquisition === undefined); + acquisitionSamples.push({ + index: index + 1, + candidate, + state, + screen, + startedAt: captured.startedAt, + finishedAt: acquiredAt, + operation: 'acquisition', + wallClockMs: captured.wallClockMs, + preparationMs, + firstLookMs: preparationMs + captured.wallClockMs, + firstTree: status, + ok: captured.response.ok, + ...(keepRawExemplar ? { acquisition: captured.response.acquisition } : {}), + metrics: captured.response.metrics, + ...(captured.stderr ? { stderr: captured.stderr } : {}), + ...(captured.response.failure ? { failure: captured.response.failure } : {}), + }); + presentationSamples.push(presentationSample(candidate, state, screen, index, captured, status)); +} + +function fixtureBoundStatus( + response: SpikeResponse, + screen: SpikeCell['screen'], +): SpikeSample['firstTree'] { + const status = firstTreeStatus(response); + if (status !== 'readable' || !response.acquisition) return status; + const fixture = screenFixture(screen); + const anchor = fixture.postSetupAnchorText ?? fixture.anchorText; + return response.acquisition.nodes.some((node) => + [node.label, node.value, node.identifier].some((value) => value?.includes(anchor)), + ) + ? 'readable' + : 'unreadable'; +} + +export function makeRequest( + config: SpikeConfig, + candidate: SpikeCell['candidate'], + state: SpikeCell['state'], + screen: SpikeCell['screen'], + index: number, + appPid?: number, +): SpikeRequest { + return { + version: 1, + id: `${candidate}:${state}:${screen}:${index + 1}`, + candidate, + simulatorUdid: config.udid, + state, + screen, + appBundleId: config.appBundleId, + ...(config.targetWindowName === undefined ? {} : { targetWindowName: config.targetWindowName }), + ...(config.targetProcessId === undefined ? {} : { targetProcessId: config.targetProcessId }), + ...(candidate === 'guest-simulator-framework-bridge' && appPid !== undefined + ? { expectedTargetGeneration: `pid:${appPid}` } + : {}), + limits: config.limits, + }; +} + +function presentationSample( + candidate: SpikeCell['candidate'], + state: SpikeCell['state'], + screen: SpikeCell['screen'], + index: number, + captured: CapturedResponse, + status: SpikeSample['firstTree'], +): SpikeSample { + if (!captured.response.acquisition) + return failedPresentationSample(candidate, state, screen, index, captured, status); + return successfulPresentationSample(candidate, state, screen, index, captured, status); +} + +function failedPresentationSample( + candidate: SpikeCell['candidate'], + state: SpikeCell['state'], + screen: SpikeCell['screen'], + index: number, + captured: CapturedResponse, + status: SpikeSample['firstTree'], +): SpikeSample { + const startedAt = new Date().toISOString(); + return { + index: index + 1, + candidate, + state, + screen, + startedAt, + finishedAt: new Date().toISOString(), + operation: 'presentation', + wallClockMs: 0, + firstTree: status, + ok: false, + ...(captured.stderr ? { stderr: captured.stderr } : {}), + presentation: { + ok: false, + payloadBytes: 0, + nodeCount: 0, + durationMs: 0, + cpuMs: null, + memoryBytes: process.memoryUsage().rss, + }, + ...(captured.response.failure ? { failure: captured.response.failure } : {}), + }; +} + +function successfulPresentationSample( + candidate: SpikeCell['candidate'], + state: SpikeCell['state'], + screen: SpikeCell['screen'], + index: number, + captured: CapturedResponse, + status: SpikeSample['firstTree'], +): SpikeSample { + const startedAt = new Date().toISOString(); + const presented = presentAcquisitionForMeasurement(captured.response.acquisition!); + return { + index: index + 1, + candidate, + state, + screen, + startedAt, + finishedAt: new Date().toISOString(), + operation: 'presentation', + wallClockMs: presented.measurement.durationMs, + firstTree: status, + ok: true, + ...(captured.stderr ? { stderr: captured.stderr } : {}), + presentation: presented.measurement, + }; +} diff --git a/scripts/ios-ax-bridge-spike/swift/Package.swift b/scripts/ios-ax-bridge-spike/swift/Package.swift new file mode 100644 index 000000000..7796b51ff --- /dev/null +++ b/scripts/ios-ax-bridge-spike/swift/Package.swift @@ -0,0 +1,18 @@ +// swift-tools-version: 5.9 +import PackageDescription + +let package = Package( + name: "agent-device-ios-ax-bridge-spike", + platforms: [.macOS(.v13)], + products: [ + .executable( + name: "agent-device-ios-ax-bridge-spike", + targets: ["AgentDeviceIosAxBridgeSpike"] + ), + ], + targets: [ + .executableTarget( + name: "AgentDeviceIosAxBridgeSpike" + ), + ] +) diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift new file mode 100644 index 000000000..4ebb2f0e1 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift @@ -0,0 +1,48 @@ +import Darwin +import Foundation + +struct SpikeProcessMetrics { + let cpuMs: Double + let memoryBytes: Int64? +} + +func spikeProcessMetrics(since start: rusage) -> SpikeProcessMetrics { + var current = rusage() + getrusage(RUSAGE_SELF, ¤t) + let startCpu = cpuMilliseconds(start) + let currentCpu = cpuMilliseconds(current) + return SpikeProcessMetrics( + cpuMs: max(0, currentCpu - startCpu), + memoryBytes: residentMemoryBytes() + ) +} + +func currentResourceUsage() -> rusage { + var usage = rusage() + getrusage(RUSAGE_SELF, &usage) + return usage +} + +private func cpuMilliseconds(_ usage: rusage) -> Double { + let user = Double(usage.ru_utime.tv_sec) * 1_000 + Double(usage.ru_utime.tv_usec) / 1_000 + let system = Double(usage.ru_stime.tv_sec) * 1_000 + Double(usage.ru_stime.tv_usec) / 1_000 + return user + system +} + +private func residentMemoryBytes() -> Int64? { + var info = mach_task_basic_info() + var count = mach_msg_type_number_t( + MemoryLayout.size / MemoryLayout.size + ) + let status = withUnsafeMutablePointer(to: &info) { pointer in + pointer.withMemoryRebound(to: integer_t.self, capacity: Int(count)) { rebound in + task_info( + mach_task_self_, + task_flavor_t(MACH_TASK_BASIC_INFO), + rebound, + &count + ) + } + } + return status == KERN_SUCCESS ? Int64(info.resident_size) : nil +} diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift new file mode 100644 index 000000000..72bfd9780 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift @@ -0,0 +1,139 @@ +import Foundation + +struct SpikeRequest: Decodable { + let version: Int + let id: String + let candidate: String + let simulatorUdid: String + let state: String + let screen: String + let appBundleId: String + let targetWindowName: String? + let targetProcessId: Int32? + let expectedTargetGeneration: String? + let limits: SpikeLimits +} + +struct SpikeLimits: Decodable { + let maxRequestBytes: Int + let maxResponseBytes: Int + let maxNodes: Int + let maxTraversalDepth: Int + let maxCpuMs: Int + let maxMemoryBytes: Int + let maxDurationMs: Int +} + +struct SpikeRect: Encodable { + let x: Double + let y: Double + let width: Double + let height: Double +} + +struct SpikeNode: Encodable { + let id: String + let type: String? + let parentId: String? + let role: String? + let subrole: String? + let label: String? + let value: String? + let identifier: String? + let frame: SpikeRect? + let enabled: Bool? + let selected: Bool? + let focused: Bool? +} + +struct SpikeViewport: Encodable { + let kind: String + let rect: SpikeRect? + let reason: String? + let coordinateSpace: String? + let source: String? +} + +struct SpikeResidue: Encodable { + let kind: String + let fields: [String]? + let dimension: String? + let limit: Int? + let fact: String? + let expected: String? + let observed: String? +} + +struct SpikeAcquisition: Encodable { + let targetId: String + let targetGeneration: String? + let nodes: [SpikeNode] + let viewport: SpikeViewport + let truncated: Bool + let residue: [SpikeResidue] +} + +struct SpikeFailure: Encodable { + let kind: String + let code: String? + let expectedTargetGeneration: String? + let observedTargetGeneration: String? +} + +struct SpikeMetrics: Encodable { + let requestBytes: Int + let responseBytes: Int + let nodeCount: Int + let maxTraversalDepth: Int + let cpuMs: Double? + let memoryBytes: Int64? + let durationMs: Double +} + +struct SpikeResponse: Encodable { + let version: Int + let id: String + let candidate: String + let ok: Bool + let acquisition: SpikeAcquisition? + let failure: SpikeFailure? + let metrics: SpikeMetrics +} + +struct SpikeCapture { + let acquisition: SpikeAcquisition? + let failure: SpikeFailure? + let maxTraversalDepth: Int +} + +func unsupportedCapture( + code: String, + observedTargetGeneration: String? = nil +) -> SpikeCapture { + SpikeCapture( + acquisition: nil, + failure: SpikeFailure( + kind: "unsupported-mechanism", + code: code, + expectedTargetGeneration: nil, + observedTargetGeneration: observedTargetGeneration + ), + maxTraversalDepth: 0 + ) +} + +func failureResponse( + request: SpikeRequest, + failure: SpikeFailure, + metrics: SpikeMetrics +) -> SpikeResponse { + SpikeResponse( + version: 1, + id: request.id, + candidate: request.candidate, + ok: false, + acquisition: nil, + failure: failure, + metrics: metrics + ) +} diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift new file mode 100644 index 000000000..650fcff71 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift @@ -0,0 +1,329 @@ +import AppKit +import ApplicationServices +import Foundation + +private struct RawTraversalState { + var nodes: [SpikeNode] = [] + var visited: [AXUIElement] = [] + var maxDepth = 0 + var hitNodeLimit = false + var hitDepthLimit = false +} + +private struct RootSearchResult { + let element: AXUIElement + let depth: Int + let visitedCount: Int +} + +func capturePublicAccessibility(request: SpikeRequest) -> SpikeCapture { + guard request.version == 1, request.candidate == "public-macos-ax" else { + return unsupportedCapture(code: "candidate-not-supported") + } + guard AXIsProcessTrusted() else { + return unsupportedCapture(code: "host-accessibility-permission") + } + guard let application = targetApplication(request: request) else { + return unsupportedCapture(code: "target-application-unavailable") + } + + let generation = targetGeneration(application) + if let expected = request.expectedTargetGeneration, expected != generation { + return SpikeCapture( + acquisition: nil, + failure: SpikeFailure( + kind: "stale-generation", + code: "target-generation-mismatch", + expectedTargetGeneration: expected, + observedTargetGeneration: generation + ), + maxTraversalDepth: 0 + ) + } + + let applicationElement = AXUIElementCreateApplication(application.processIdentifier) + let windows = axWindows(applicationElement) + guard !windows.isEmpty else { + return unsupportedCapture( + code: "target-has-no-accessibility-windows", + observedTargetGeneration: generation + ) + } + guard let window = targetWindow(windows, name: request.targetWindowName) else { + return unsupportedCapture( + code: "target-simulator-window-unavailable", + observedTargetGeneration: generation + ) + } + guard let rootSearch = firstDescendant( + window, + subrole: "iOSContentGroup", + maxDepth: request.limits.maxTraversalDepth, + maxNodes: request.limits.maxNodes + ) else { + return unsupportedCapture( + code: "target-simulator-content-unavailable", + observedTargetGeneration: generation + ) + } + let traversalRoot = rootSearch.element + let traversalLimits = remainingLimits(request.limits, after: rootSearch) + + var state = RawTraversalState() + _ = appendRawNode( + traversalRoot, + parentId: nil, + depth: 0, + limits: traversalLimits, + state: &state + ) + let viewport = axRect(traversalRoot).map { + SpikeViewport( + kind: "reported", + rect: $0, + reason: nil, + coordinateSpace: "host-screen", + source: "AXPosition+AXSize" + ) + } ?? SpikeViewport( + kind: "missing", + rect: nil, + reason: "not-provided", + coordinateSpace: nil, + source: nil + ) + var residue: [SpikeResidue] = [] + if state.hitNodeLimit { + residue.append( + SpikeResidue( + kind: "truncated", + fields: nil, + dimension: "nodes", + limit: request.limits.maxNodes, + fact: nil, + expected: nil, + observed: nil + ) + ) + } + if state.hitDepthLimit { + residue.append( + SpikeResidue( + kind: "truncated", + fields: nil, + dimension: "depth", + limit: request.limits.maxTraversalDepth, + fact: nil, + expected: nil, + observed: nil + ) + ) + } + if viewport.kind == "missing" { + residue.append( + SpikeResidue( + kind: "missing-viewport", + fields: nil, + dimension: nil, + limit: nil, + fact: nil, + expected: nil, + observed: nil + ) + ) + } + return SpikeCapture( + acquisition: SpikeAcquisition( + targetId: "simulator:\(request.simulatorUdid)", + targetGeneration: generation, + nodes: state.nodes, + viewport: viewport, + truncated: state.hitNodeLimit || state.hitDepthLimit, + residue: residue + ), + failure: nil, + maxTraversalDepth: state.maxDepth + ) +} + +private func targetWindow(_ windows: [AXUIElement], name: String?) -> AXUIElement? { + guard let name else { return windows.first } + return windows.first { window in + guard let title = axString(window, kAXTitleAttribute as String) else { return false } + return title == name || title.hasPrefix("\(name) ") + } +} + +private func firstDescendant( + _ element: AXUIElement, + subrole: String, + maxDepth: Int, + maxNodes: Int +) -> RootSearchResult? { + var queue: [(AXUIElement, Int)] = [(element, 0)] + var visited = Set() + var retained: [AXUIElement] = [] + while !queue.isEmpty && visited.count < maxNodes { + let (candidate, depth) = queue.removeFirst() + if !visited.insert(ObjectIdentifier(candidate)).inserted { continue } + retained.append(candidate) + if axString(candidate, kAXSubroleAttribute as String) == subrole { + return RootSearchResult(element: candidate, depth: depth, visitedCount: visited.count) + } + if depth < maxDepth { + queue.append(contentsOf: axChildren(candidate).map { ($0, depth + 1) }) + } + } + return nil +} + +private func remainingLimits(_ limits: SpikeLimits, after search: RootSearchResult) -> SpikeLimits { + SpikeLimits( + maxRequestBytes: limits.maxRequestBytes, + maxResponseBytes: limits.maxResponseBytes, + maxNodes: max(1, limits.maxNodes - search.visitedCount + 1), + maxTraversalDepth: max(0, limits.maxTraversalDepth - search.depth), + maxCpuMs: limits.maxCpuMs, + maxMemoryBytes: limits.maxMemoryBytes, + maxDurationMs: limits.maxDurationMs + ) +} + +private func targetApplication(request: SpikeRequest) -> NSRunningApplication? { + if let processId = request.targetProcessId, + let application = NSRunningApplication(processIdentifier: processId), + !application.isTerminated + { + return application + } + return NSRunningApplication.runningApplications( + withBundleIdentifier: request.appBundleId + ).first(where: { !$0.isTerminated }) +} + +private func targetGeneration(_ application: NSRunningApplication) -> String { + let launch = application.launchDate?.timeIntervalSince1970.description ?? "unknown" + return "pid:\(application.processIdentifier):launch:\(launch)" +} + +@discardableResult +private func appendRawNode( + _ element: AXUIElement, + parentId: String?, + depth: Int, + limits: SpikeLimits, + state: inout RawTraversalState +) -> String? { + if state.visited.contains(where: { CFEqual($0, element) }) { return nil } + guard state.nodes.count < limits.maxNodes else { + state.hitNodeLimit = true + return nil + } + state.visited.append(element) + state.maxDepth = max(state.maxDepth, depth) + let id = "n\(state.nodes.count)" + state.nodes.append( + SpikeNode( + id: id, + type: nil, + parentId: parentId, + role: axString(element, kAXRoleAttribute as String), + subrole: axString(element, kAXSubroleAttribute as String), + label: axString(element, kAXTitleAttribute as String) + ?? axString(element, kAXDescriptionAttribute as String), + value: axString(element, kAXValueAttribute as String), + identifier: axString(element, "AXIdentifier"), + frame: axRect(element), + enabled: axBool(element, kAXEnabledAttribute as String), + selected: axBool(element, kAXSelectedAttribute as String), + focused: axBool(element, kAXFocusedAttribute as String) + ) + ) + guard depth < limits.maxTraversalDepth else { + if !axChildren(element).isEmpty { state.hitDepthLimit = true } + return id + } + for child in axChildren(element) { + _ = appendRawNode( + child, + parentId: id, + depth: depth + 1, + limits: limits, + state: &state + ) + } + return id +} + +private func axWindows(_ element: AXUIElement) -> [AXUIElement] { + axElements(element, attribute: kAXWindowsAttribute as String) +} + +private func axChildren(_ element: AXUIElement) -> [AXUIElement] { + axElements(element, attribute: kAXChildrenAttribute as String) +} + +private func axElements(_ element: AXUIElement, attribute: String) -> [AXUIElement] { + var value: CFTypeRef? + guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success, + let elements = value as? [AXUIElement] + else { + return [] + } + return elements +} + +private func axString(_ element: AXUIElement, _ attribute: String) -> String? { + var value: CFTypeRef? + guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success, + let text = value as? String + else { + return nil + } + let trimmed = text.trimmingCharacters(in: .whitespacesAndNewlines) + return trimmed.isEmpty ? nil : trimmed +} + +private func axBool(_ element: AXUIElement, _ attribute: String) -> Bool? { + var value: CFTypeRef? + guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success, + let number = value as? NSNumber + else { + return nil + } + return number.boolValue +} + +private func axRect(_ element: AXUIElement) -> SpikeRect? { + var positionValue: CFTypeRef? + var sizeValue: CFTypeRef? + guard AXUIElementCopyAttributeValue(element, kAXPositionAttribute as CFString, &positionValue) == .success, + AXUIElementCopyAttributeValue(element, kAXSizeAttribute as CFString, &sizeValue) == .success, + let position = axPoint(positionValue), + let size = axSize(sizeValue) + else { + return nil + } + return SpikeRect( + x: Double(position.x), + y: Double(position.y), + width: Double(size.width), + height: Double(size.height) + ) +} + +private func axPoint(_ value: CFTypeRef?) -> CGPoint? { + guard let value, CFGetTypeID(value) == AXValueGetTypeID() else { return nil } + let axValue = value as! AXValue + guard AXValueGetType(axValue) == .cgPoint else { return nil } + var point = CGPoint.zero + return AXValueGetValue(axValue, .cgPoint, &point) ? point : nil +} + +private func axSize(_ value: CFTypeRef?) -> CGSize? { + guard let value, CFGetTypeID(value) == AXValueGetTypeID() else { return nil } + let axValue = value as! AXValue + guard AXValueGetType(axValue) == .cgSize else { return nil } + var size = CGSize.zero + return AXValueGetValue(axValue, .cgSize, &size) ? size : nil +} diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift new file mode 100644 index 000000000..40f0e5421 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift @@ -0,0 +1,73 @@ +import Foundation + +let encoder = JSONEncoder() +encoder.outputFormatting = [.sortedKeys] +let decoder = JSONDecoder() +var inputBuffer = Data() + +while true { + let chunk = FileHandle.standardInput.readData(ofLength: 4 * 1024) + if chunk.isEmpty { break } + inputBuffer.append(chunk) + while let newline = inputBuffer.firstIndex(of: 0x0A) { + let line = inputBuffer.subdata(in: inputBuffer.startIndex.. 64 * 1024 { + writeLog("request frame exceeded 65536 bytes") + inputBuffer.removeAll(keepingCapacity: true) + } +} + +if !inputBuffer.isEmpty { handleRequest(inputBuffer) } + +func handleRequest(_ line: Data) { + guard line.count <= 64 * 1024 else { + writeLog("discarded oversized request frame") + return + } + let start = currentResourceUsage() + let started = DispatchTime.now().uptimeNanoseconds + do { + let request = try decoder.decode(SpikeRequest.self, from: line) + writeLog("capture id=\(request.id) candidate=\(request.candidate) screen=\(request.screen)") + let capture = capturePublicAccessibility(request: request) + let elapsedMs = Double(DispatchTime.now().uptimeNanoseconds - started) / 1_000_000 + let processMetrics = spikeProcessMetrics(since: start) + let baseMetrics = SpikeMetrics( + requestBytes: line.count + 1, + responseBytes: 0, + nodeCount: capture.acquisition?.nodes.count ?? 0, + maxTraversalDepth: capture.maxTraversalDepth, + cpuMs: processMetrics.cpuMs, + memoryBytes: processMetrics.memoryBytes, + durationMs: elapsedMs + ) + let response = capture.failure.map { + failureResponse(request: request, failure: $0, metrics: baseMetrics) + } ?? SpikeResponse( + version: 1, + id: request.id, + candidate: request.candidate, + ok: true, + acquisition: capture.acquisition, + failure: nil, + metrics: baseMetrics + ) + writeResponse(response) + } catch { + writeLog("malformed request frame") + } +} + +func writeResponse(_ response: SpikeResponse) { + guard let data = try? encoder.encode(response) else { return } + FileHandle.standardOutput.write(data) + FileHandle.standardOutput.write(Data([0x0A])) +} + +func writeLog(_ message: String) { + let data = Data("[ios-ax-spike] \(message)\n".utf8) + FileHandle.standardError.write(data) +} diff --git a/scripts/ios-ax-bridge-spike/types.ts b/scripts/ios-ax-bridge-spike/types.ts new file mode 100644 index 000000000..5c019d5d5 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/types.ts @@ -0,0 +1,240 @@ +import type { + IosAcquisitionResidue, + IosViewportEvidence, +} from '@agent-device/contracts/ios-snapshot'; +import type { DeepButtonEvidence, LocalState, ScreenId } from '../ios-snapshot-benchmark/types.ts'; + +export const SPIKE_SCHEMA_VERSION = 'ios-simulator-ax-bridge-spike.v1' as const; +export const SPIKE_ISSUE = '#2192' as const; +export const SPIKE_PARENT = '#2188' as const; +export const SPIKE_PREREQUISITES = ['#2189', '#2190'] as const; + +export type CandidateId = 'public-macos-ax' | 'guest-simulator-framework-bridge' | 'xctest-control'; + +export type SpikeFailureKind = + | 'unsupported-mechanism' + | 'malformed-tree' + | 'stale-generation' + | 'timeout' + | 'cancelled' + | 'process-crash' + | 'transport-failure'; + +export type SpikeFailure = Readonly<{ + kind: SpikeFailureKind; + code?: string; + expectedTargetGeneration?: string; + observedTargetGeneration?: string; +}>; + +export type SpikeRect = Readonly<{ + x: number; + y: number; + width: number; + height: number; +}>; + +export type RawAcquiredNode = Readonly<{ + id: string; + type?: string; + parentId?: string; + role?: string; + subrole?: string; + label?: string; + value?: string; + identifier?: string; + frame?: SpikeRect; + enabled?: boolean; + selected?: boolean; + focused?: boolean; +}>; + +export type RawAcquisition = Readonly<{ + targetId: string; + targetGeneration: string | null; + nodes: readonly RawAcquiredNode[]; + viewport: IosViewportEvidence; + truncated: boolean; + residue: readonly IosAcquisitionResidue[]; +}>; + +export type ResourceLimits = Readonly<{ + maxRequestBytes: number; + maxResponseBytes: number; + maxNodes: number; + maxTraversalDepth: number; + maxCpuMs: number; + maxMemoryBytes: number; + maxDurationMs: number; +}>; + +export type ResourceMetrics = Readonly<{ + requestBytes: number; + responseBytes: number; + nodeCount: number; + maxTraversalDepth: number; + cpuMs: number | null; + memoryBytes: number | null; + durationMs: number; +}>; + +export type SpikeRequest = Readonly<{ + version: 1; + id: string; + candidate: CandidateId; + simulatorUdid: string; + state: LocalState; + screen: ScreenId | 'unprepared-surface'; + appBundleId: string; + targetWindowName?: string; + targetProcessId?: number; + expectedTargetGeneration?: string; + limits: ResourceLimits; +}>; + +export type SpikeResponse = Readonly<{ + version: 1; + id: string; + candidate: CandidateId; + ok: boolean; + acquisition?: RawAcquisition; + failure?: SpikeFailure; + metrics: ResourceMetrics; +}>; + +export type PresentationMeasurement = Readonly<{ + ok: boolean; + payloadBytes: number; + nodeCount: number; + durationMs: number; + cpuMs: number | null; + memoryBytes: number | null; +}>; + +export type SpikeSample = Readonly<{ + index: number; + candidate: CandidateId; + state: LocalState; + screen: ScreenId; + startedAt: string; + finishedAt: string; + operation: 'acquisition' | 'presentation'; + wallClockMs: number; + preparationMs?: number; + firstLookMs?: number; + firstTree: 'readable' | 'empty' | 'unreadable' | 'not-observed'; + ok: boolean; + stderr?: string; + acquisition?: RawAcquisition; + metrics?: ResourceMetrics; + presentation?: PresentationMeasurement; + failure?: SpikeFailure; +}>; + +export type ProtocolProbeLog = Readonly<{ + candidate: Exclude; + id: string; + stderr: string; +}>; + +export type SpikeCell = Readonly<{ + candidate: CandidateId; + state: LocalState; + screen: ScreenId; + sampleMinimum: number; + acquisitionSamples: readonly SpikeSample[]; + presentationSamples: readonly SpikeSample[]; +}>; + +export type Toolchain = Readonly<{ + node: string; + pnpm: string; + xcode: string; + simctl: string; + os: string; + arch: string; + swift: string; +}>; + +export type GuestMechanismEvidence = Readonly<{ + implementation: 'idb'; + release: 'v1.5.2'; + companionArchive: 'idb-companion.macos-arm64.tar.gz'; + companionSha256: string; + cliArchive: 'idb-cli-1.5.2.arm64_tahoe.bottle.tar.gz'; + cliSha256: string; + backend: 'axbridge-persistent'; + outputFormat: 'default'; + client: 'persistent-in-repository-reader'; +}>; + +export type Target = Readonly<{ + udid: string; + name: string; + runtime: string; +}>; + +export type PlistKeyChange = Readonly<{ + key: string; + before?: unknown; + after?: unknown; +}>; + +export type PlistDiff = Readonly<{ + path: string; + existedBefore: boolean; + beforeSha256: string | null; + afterSha256: string | null; + changes: readonly PlistKeyChange[]; +}>; + +export type PreferenceEvidence = Readonly<{ + applied: boolean; + restored: boolean; + fixtureLaunchCompatible: boolean | null; + simulatorStateBefore: string; + diffs: readonly PlistDiff[]; +}>; + +export type LifecycleEvidence = Readonly<{ + source: 'framed-protocol-fixture'; + crash: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; + timeout: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; + cancellation: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; + staleGeneration: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; +}>; + +export type SpikeReport = Readonly<{ + schemaVersion: typeof SPIKE_SCHEMA_VERSION; + issue: typeof SPIKE_ISSUE; + parent: typeof SPIKE_PARENT; + prerequisites: readonly string[]; + generatedAt: string; + revision: Readonly<{ commit: string; branch: string; dirty: boolean }>; + toolchain: Toolchain; + guestMechanism: GuestMechanismEvidence; + target: Target; + limits: ResourceLimits; + status: 'completed' | 'stopped'; + corpusCoverage: 'full' | 'decisive-early-stop'; + candidates: readonly CandidateId[]; + config: Readonly<{ + states: readonly LocalState[]; + screens: readonly ScreenId[]; + requestedSamples: number; + }>; + protocolProbes: readonly SpikeResponse[]; + protocolProbeLogs: readonly ProtocolProbeLog[]; + preferenceEvidence: PreferenceEvidence; + lifecycle: LifecycleEvidence; + positiveControl: DeepButtonEvidence; + cells: readonly SpikeCell[]; + decision: 'GO' | 'NO-GO'; + decisionReasons: readonly string[]; + nextInterface: string; + stop?: Readonly<{ + category: 'infrastructure' | 'configuration'; + message: string; + command?: string; + }>; +}>; diff --git a/scripts/ios-snapshot-benchmark/cell-admission.ts b/scripts/ios-snapshot-benchmark/cell-admission.ts index 7733a26b6..d4f04187f 100644 --- a/scripts/ios-snapshot-benchmark/cell-admission.ts +++ b/scripts/ios-snapshot-benchmark/cell-admission.ts @@ -95,6 +95,22 @@ export async function admitSuccessfulSample( return await admitNonWarmSample(context, options, previousAppPid); } +export function admitStableWarmSample( + options: CellAdmissionOptions, + previousAppPid: number, +): number { + assertReadyState(options); + const appPid = assertAppRunning(options.udid, options.fixture.app); + if (appPid !== previousAppPid) { + throw new BenchmarkCellAdmissionError( + 'cell-state', + `Warm cell ${options.fixture.id} changed app PID from ${String(previousAppPid)} to ${String(appPid)}.`, + 'agent-device batch --steps snapshot', + ); + } + return appPid; +} + export function cleanupSuccessfulSample(context: CliContext, options: CellAdmissionOptions): void { if (options.state !== 'relaunch' || options.fixture.setupAction !== 'open-alert') return; const dismissed = pressFixtureTarget(context, 'label="Cancel"'); diff --git a/vitest.config.ts b/vitest.config.ts index e9908d267..953351510 100644 --- a/vitest.config.ts +++ b/vitest.config.ts @@ -148,6 +148,7 @@ export default defineConfig({ // helper families are rebuilt through the shared release/size-report owner. 'scripts/__tests__/prepare-publish-assets.test.ts', 'scripts/ios-snapshot-benchmark/*.test.ts', + 'scripts/ios-ax-bridge-spike/*.test.ts', // Parses CI configuration only, so this action guard needs no device or subprocess lane. 'test/ci/upload-agent-device-artifacts.test.ts', 'test/ci/upload-artifact-hidden-paths.test.ts', From 9f9a7379505797cbe3971bdedf868bd093418826 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 2 Sep 2026 02:07:43 +0200 Subject: [PATCH 02/13] test(ios): make alert cleanup selector unique --- .../ios-snapshot-benchmark/cell-admission.ts | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/scripts/ios-snapshot-benchmark/cell-admission.ts b/scripts/ios-snapshot-benchmark/cell-admission.ts index d4f04187f..e59d79bbe 100644 --- a/scripts/ios-snapshot-benchmark/cell-admission.ts +++ b/scripts/ios-snapshot-benchmark/cell-admission.ts @@ -6,6 +6,7 @@ import { openFixture, pressFixtureTarget, scrollFixtureSetup, + snapshotHasAnchor, snapshotFixture, type CliContext, type CliResult, @@ -113,12 +114,29 @@ export function admitStableWarmSample( export function cleanupSuccessfulSample(context: CliContext, options: CellAdmissionOptions): void { if (options.state !== 'relaunch' || options.fixture.setupAction !== 'open-alert') return; - const dismissed = pressFixtureTarget(context, 'label="Cancel"'); + const dismissed = pressFixtureTarget(context, 'role="button" label="Cancel"'); requireFixtureOperationSuccess( - fixtureOperationFromCli(dismissed, 'agent-device click label="Cancel"'), + fixtureOperationFromCli(dismissed, 'agent-device click role="button" label="Cancel"'), `${options.fixture.id} sample cleanup`, 'cell-state', ); + const observed = snapshotFixture(context); + requireFixtureOperationSuccess( + fixtureOperationFromCli(observed, 'agent-device batch --steps snapshot'), + `${options.fixture.id} sample cleanup verification`, + 'cell-state', + ); + if ( + !snapshotHasAnchor(observed.payload, options.fixture.anchorText) || + (options.fixture.postSetupAnchorText !== undefined && + snapshotHasAnchor(observed.payload, options.fixture.postSetupAnchorText)) + ) { + throw new BenchmarkCellAdmissionError( + 'cell-state', + `Fixture ${options.fixture.id} cleanup did not restore its base surface.`, + 'agent-device batch --steps snapshot', + ); + } } async function admitNonWarmSample( From 17263b8d82ac4995d049e4f28c306a5d0f73612b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 2 Sep 2026 10:12:41 +0200 Subject: [PATCH 03/13] test(ios): admit recovered alert cleanup surface --- .../ios-snapshot-benchmark/cell-admission.ts | 31 ++++++++++++------- .../ios-snapshot-benchmark/command.test.ts | 19 ++++++++++++ scripts/ios-snapshot-benchmark/command.ts | 4 +++ .../definitions.test.ts | 2 ++ scripts/ios-snapshot-benchmark/definitions.ts | 1 + .../fixture-admission.test.ts | 1 + scripts/ios-snapshot-benchmark/types.ts | 1 + 7 files changed, 48 insertions(+), 11 deletions(-) diff --git a/scripts/ios-snapshot-benchmark/cell-admission.ts b/scripts/ios-snapshot-benchmark/cell-admission.ts index e59d79bbe..dbe0e29bd 100644 --- a/scripts/ios-snapshot-benchmark/cell-admission.ts +++ b/scripts/ios-snapshot-benchmark/cell-admission.ts @@ -6,6 +6,7 @@ import { openFixture, pressFixtureTarget, scrollFixtureSetup, + snapshotHasIdentifier, snapshotHasAnchor, snapshotFixture, type CliContext, @@ -120,23 +121,31 @@ export function cleanupSuccessfulSample(context: CliContext, options: CellAdmiss `${options.fixture.id} sample cleanup`, 'cell-state', ); + verifyAlertCleanup(context, options); +} + +function verifyAlertCleanup(context: CliContext, options: CellAdmissionOptions): void { const observed = snapshotFixture(context); requireFixtureOperationSuccess( fixtureOperationFromCli(observed, 'agent-device batch --steps snapshot'), `${options.fixture.id} sample cleanup verification`, 'cell-state', ); - if ( - !snapshotHasAnchor(observed.payload, options.fixture.anchorText) || - (options.fixture.postSetupAnchorText !== undefined && - snapshotHasAnchor(observed.payload, options.fixture.postSetupAnchorText)) - ) { - throw new BenchmarkCellAdmissionError( - 'cell-state', - `Fixture ${options.fixture.id} cleanup did not restore its base surface.`, - 'agent-device batch --steps snapshot', - ); - } + if (alertCleanupRestored(observed.payload, options.fixture)) return; + throw new BenchmarkCellAdmissionError( + 'cell-state', + `Fixture ${options.fixture.id} cleanup did not restore its base surface.`, + 'agent-device batch --steps snapshot', + ); +} + +function alertCleanupRestored(payload: unknown, fixture: ScreenFixture): boolean { + return ( + fixture.cleanupAnchorIdentifier !== undefined && + snapshotHasIdentifier(payload, fixture.cleanupAnchorIdentifier) && + (fixture.postSetupAnchorText === undefined || + !snapshotHasAnchor(payload, fixture.postSetupAnchorText)) + ); } async function admitNonWarmSample( diff --git a/scripts/ios-snapshot-benchmark/command.test.ts b/scripts/ios-snapshot-benchmark/command.test.ts index 3a3845092..cabfc8172 100644 --- a/scripts/ios-snapshot-benchmark/command.test.ts +++ b/scripts/ios-snapshot-benchmark/command.test.ts @@ -5,6 +5,7 @@ import { firstTreeStatus, hasDeepLinkConfirmation, snapshotHasAnchor, + snapshotHasIdentifier, } from './command.ts'; test('classifies typed reasons without using error message text', () => { @@ -71,6 +72,24 @@ test('admits only an exact semantic anchor from snapshot node fields', () => { ); }); +test('admits only an exact snapshot identifier', () => { + const payload = { + data: { + results: [ + { + data: { + snapshot: { + nodes: [{ identifier: 'automation-open-alert' }, { identifier: 'other-control' }], + }, + }, + }, + ], + }, + }; + assert.equal(snapshotHasIdentifier(payload, 'automation-open-alert'), true); + assert.equal(snapshotHasIdentifier(payload, 'automation-open'), false); +}); + test('recognizes the first-install deep-link confirmation as a setup prompt', () => { assert.equal( hasDeepLinkConfirmation({ diff --git a/scripts/ios-snapshot-benchmark/command.ts b/scripts/ios-snapshot-benchmark/command.ts index 043351b94..fbabc3af3 100644 --- a/scripts/ios-snapshot-benchmark/command.ts +++ b/scripts/ios-snapshot-benchmark/command.ts @@ -130,6 +130,10 @@ export function snapshotHasAnchor(payload: unknown, anchorText: string): boolean }); } +export function snapshotHasIdentifier(payload: unknown, identifier: string): boolean { + return snapshotNodes(payload).some((record) => record.identifier === identifier); +} + export function hasDeepLinkConfirmation(payload: unknown): boolean { return snapshotNodes(payload).some((record) => { const role = readString(record.role); diff --git a/scripts/ios-snapshot-benchmark/definitions.test.ts b/scripts/ios-snapshot-benchmark/definitions.test.ts index 31370fa9b..7a47f1d38 100644 --- a/scripts/ios-snapshot-benchmark/definitions.test.ts +++ b/scripts/ios-snapshot-benchmark/definitions.test.ts @@ -6,6 +6,7 @@ import { parseSampleCount, parseScreenIds, sampleMinimumForState, + screenFixture, } from './definitions.ts'; test('parses the versioned state and screen cells', () => { @@ -14,6 +15,7 @@ test('parses the versioned state and screen cells', () => { assert.deepEqual(parseRtt('80,0,20,0'), [80, 0, 20]); assert.equal(sampleMinimumForState('cold-cold'), 10); assert.equal(sampleMinimumForState('relaunch'), 20); + assert.equal(screenFixture('alert').cleanupAnchorIdentifier, 'automation-open-alert'); }); test('enforces the warm and cold sample minima', () => { diff --git a/scripts/ios-snapshot-benchmark/definitions.ts b/scripts/ios-snapshot-benchmark/definitions.ts index a96d04a2c..273c003ef 100644 --- a/scripts/ios-snapshot-benchmark/definitions.ts +++ b/scripts/ios-snapshot-benchmark/definitions.ts @@ -44,6 +44,7 @@ const SCREEN_FIXTURES: readonly ScreenFixture[] = [ launchUrl: `${FIXTURE_SCHEME}/automation`, anchorText: 'Automation lab', postSetupAnchorText: 'Automation confirmation', + cleanupAnchorIdentifier: 'automation-open-alert', setupAction: 'open-alert', }, { diff --git a/scripts/ios-snapshot-benchmark/fixture-admission.test.ts b/scripts/ios-snapshot-benchmark/fixture-admission.test.ts index cc328e75f..3ef07826c 100644 --- a/scripts/ios-snapshot-benchmark/fixture-admission.test.ts +++ b/scripts/ios-snapshot-benchmark/fixture-admission.test.ts @@ -15,6 +15,7 @@ const alertFixture: ScreenFixture = { app: 'com.callstack.agentdevicelab', anchorText: 'Automation lab', postSetupAnchorText: 'Automation confirmation', + cleanupAnchorIdentifier: 'automation-open-alert', setupAction: 'open-alert', }; diff --git a/scripts/ios-snapshot-benchmark/types.ts b/scripts/ios-snapshot-benchmark/types.ts index e8c4d1119..dc1fd5e94 100644 --- a/scripts/ios-snapshot-benchmark/types.ts +++ b/scripts/ios-snapshot-benchmark/types.ts @@ -38,6 +38,7 @@ export type ScreenFixture = { launchUrl?: string; anchorText: string; postSetupAnchorText?: string; + cleanupAnchorIdentifier?: string; setupAction?: 'open-alert'; }; From 23bd1013630f4cdcf8ece302d74bc33ca0e94431 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 2 Sep 2026 13:38:43 +0200 Subject: [PATCH 04/13] test(ios): narrow AX spike to guest evidence path --- package.json | 1 - scripts/ios-ax-bridge-spike/README.md | 17 +- scripts/ios-ax-bridge-spike/adapter.test.ts | 20 +- scripts/ios-ax-bridge-spike/adapter.ts | 49 --- scripts/ios-ax-bridge-spike/config.ts | 36 +- scripts/ios-ax-bridge-spike/decision.test.ts | 11 +- .../framed-process.test.ts | 3 +- scripts/ios-ax-bridge-spike/lifecycle.ts | 3 +- .../persistent-process.test.ts | 1 - scripts/ios-ax-bridge-spike/report.test.ts | 2 +- scripts/ios-ax-bridge-spike/report.ts | 18 +- scripts/ios-ax-bridge-spike/run.ts | 87 ++--- scripts/ios-ax-bridge-spike/runner.ts | 1 - .../sample-evidence.test.ts | 8 +- .../ios-ax-bridge-spike/sample-evidence.ts | 3 - .../ios-ax-bridge-spike/swift/Package.swift | 18 - .../ProcessMetrics.swift | 48 --- .../Protocol.swift | 139 -------- .../RawAccessibility.swift | 329 ------------------ .../AgentDeviceIosAxBridgeSpike/main.swift | 73 ---- scripts/ios-ax-bridge-spike/types.ts | 6 +- 21 files changed, 51 insertions(+), 822 deletions(-) delete mode 100644 scripts/ios-ax-bridge-spike/swift/Package.swift delete mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift delete mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift delete mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift delete mode 100644 scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift diff --git a/package.json b/package.json index ad9e05a76..0cfd3513c 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,6 @@ "bench:ios-snapshot": "node --experimental-strip-types scripts/ios-snapshot-benchmark/run.ts", "bench:ios-snapshot:deep-button": "node --experimental-strip-types scripts/ios-snapshot-benchmark/deep-button.ts", "bench:ios-snapshot:evidence": "node --experimental-strip-types scripts/ios-snapshot-benchmark/evidence.ts", - "build:ios-ax-bridge-spike": "node --experimental-strip-types scripts/swift-toolchain-tmpdir.ts swift build -c release --package-path scripts/ios-ax-bridge-spike/swift --product agent-device-ios-ax-bridge-spike", "bench:ios-ax-bridge": "node --experimental-strip-types scripts/ios-ax-bridge-spike/run.ts", "mutation:run": "node --experimental-strip-types scripts/mutation/run.ts", "mutation:check": "node --experimental-strip-types scripts/mutation/run.ts --no-run", diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index 590df08fc..91b4e3ff2 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -1,25 +1,20 @@ # iOS Simulator AX bridge spike -This bounded harness supplies the decision evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It compares host-side public macOS AX, the official idb `SimulatorFrameworkBridge` guest mechanism, and the #2189 XCTest control baseline behind one acquisition adapter. It does not select a production backend or change daemon, runner, open, relaunch, proxy, interaction, or public CLI behavior. +This bounded harness supplies the decision evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It compares the official idb `SimulatorFrameworkBridge` guest mechanism with the #2189 XCTest control baseline behind one acquisition adapter. It does not select a production backend or change daemon, runner, open, relaunch, proxy, interaction, or public CLI behavior. -Build the repository and the repository-only spike helper first: +Build the repository first: ```sh pnpm install --frozen-lockfile pnpm build -pnpm build:ios-ax-bridge-spike ``` -The rejected helper remains under this spike tooling package so it is reproducible without entering -the distributed `apple/macos-helper` package or npm artifact. - Use a newly created, task-owned iOS Simulator. The guest candidate uses the arm64 [idb release](https://github.com/facebook/idb/releases/tag/v1.5.2) outside this repository: ```sh pnpm bench:ios-ax-bridge -- \ --udid SIMULATOR_UDID \ - --target-process-id DEVICEHUB_PID \ - --candidate public-macos-ax,guest-simulator-framework-bridge,xctest-control \ + --candidate guest-simulator-framework-bridge,xctest-control \ --state cold-cold,cold,warm,relaunch \ --screen quiet,list,nested-scroll,alert,system-surface,xctest-stress \ --samples 20 \ @@ -30,8 +25,8 @@ pnpm bench:ios-ax-bridge -- \ --out .tmp/ios-ax-bridge-spike.v1.json.gz ``` -The default candidate set, state set, screen set, and sample minimums come from the #2189 benchmark definitions. Each request carries an optional expected target generation and fixed request, response, node-count, traversal-depth, CPU, memory, and duration bounds. The public and guest helpers use newline-delimited responses; the guest adapter keeps one idb gRPC client and one `axbridge-persistent` reader alive across the run. Guest reads request idb's flat raw element form, preserving provider facts without importing visibility, hittability, scope, depth, or semantic compaction. Every sample keeps resource metrics and target status; each cell keeps one raw-tree exemplar with viewport, lineage, truncation, residue, and bounded diagnostics, plus separate prototype presentation measurements. +The default candidate set, state set, screen set, and sample minimums come from the #2189 benchmark definitions. Each request carries an optional expected target generation and fixed request, response, node-count, traversal-depth, CPU, memory, and duration bounds. The guest adapter uses a newline-delimited reader, keeping one idb gRPC client and one `axbridge-persistent` reader alive across the run. Guest reads request idb's flat raw element form, preserving provider facts without importing visibility, hittability, scope, depth, or semantic compaction. Every sample keeps resource metrics and target status; each cell keeps one raw-tree exemplar with viewport, lineage, truncation, residue, and bounded diagnostics, plus separate prototype presentation measurements. -`--apply-preferences` is the only way the experiment edits Simulator preference plists. The Simulator must be shutdown; the harness records exact plist hashes and targeted key changes, then restores the original bytes before reporting. The keys are not production defaults. Omit `--private-tool` unless a disposable, compatible private mechanism is being tested; the harness never invents a private fallback. +`--apply-preferences` is the only way the experiment edits Simulator preference plists. The Simulator must be shutdown; the harness records exact plist hashes and targeted key changes, then restores the original bytes before reporting. The keys are not production defaults. -The harness fails closed. It reports `NO-GO` when the guest candidate is unsupported, unavailable, unreadable, stale, over a bound, below the sample minimum, or when crash/timeout/cancellation recovery is not typed and recovered. Public AX is retained as a control result and cannot turn a passing guest corpus into a failure. It stops before reporting timings if the fixture app cannot be prepared deterministically. The adjacent gzipped JSON and readable Markdown report are the decision artifact; no production route should be implemented from a `NO-GO` run. +The harness fails closed. It reports `NO-GO` when the guest candidate is unsupported, unavailable, unreadable, stale, over a bound, below the sample minimum, or when crash/timeout/cancellation recovery is not typed and recovered. XCTest is a control result and cannot turn a passing guest corpus into a failure. It stops before reporting timings if the fixture app cannot be prepared deterministically. The adjacent gzipped JSON and readable Markdown report are the decision artifact; no production route should be implemented from a `NO-GO` run. diff --git a/scripts/ios-ax-bridge-spike/adapter.test.ts b/scripts/ios-ax-bridge-spike/adapter.test.ts index f436a2cc4..49bbc94ca 100644 --- a/scripts/ios-ax-bridge-spike/adapter.test.ts +++ b/scripts/ios-ax-bridge-spike/adapter.test.ts @@ -1,25 +1,8 @@ import assert from 'node:assert/strict'; -import fs from 'node:fs'; import { test } from 'vitest'; -import { defaultPublicMacOsAxHelperPath, readControlSnapshot } from './adapter.ts'; +import { readControlSnapshot } from './adapter.ts'; import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; -test('public AX adapter resolves the SwiftPM release product', () => { - assert.equal( - defaultPublicMacOsAxHelperPath('/repo'), - '/repo/scripts/ios-ax-bridge-spike/swift/.build/release/agent-device-ios-ax-bridge-spike', - ); -}); - -test('spike executable stays outside the distributed macOS helper package', () => { - const manifest = fs.readFileSync( - new URL('../../apple/macos-helper/Package.swift', import.meta.url), - 'utf8', - ); - - assert.doesNotMatch(manifest, /AgentDeviceIosAxBridgeSpike|agent-device-ios-ax-bridge-spike/); -}); - test('control mapping preserves the producer raw node type', () => { const result = readControlSnapshot({ data: { @@ -55,7 +38,6 @@ test('guest adapter fails closed when the official companion is not configured', simulatorUdid: 'simulator', state: 'warm', screen: 'quiet', - appBundleId: 'com.callstack.agentdevicelab', limits: { maxRequestBytes: 64 * 1024, maxResponseBytes: 4 * 1024 * 1024, diff --git a/scripts/ios-ax-bridge-spike/adapter.ts b/scripts/ios-ax-bridge-spike/adapter.ts index c67a9abd3..3c1d1e22d 100644 --- a/scripts/ios-ax-bridge-spike/adapter.ts +++ b/scripts/ios-ax-bridge-spike/adapter.ts @@ -1,5 +1,3 @@ -import fs from 'node:fs'; -import path from 'node:path'; import { performance } from 'node:perf_hooks'; import { classifyFailure, @@ -7,7 +5,6 @@ import { type CliContext, type CliResult, } from '../ios-snapshot-benchmark/command.ts'; -import { runFramedBatch, type FramedProcessSpec } from './framed-process.ts'; import { DEFAULT_SPIKE_LIMITS, validateRawAcquisition } from './limits.ts'; import { failureResponse } from './protocol.ts'; import type { @@ -34,32 +31,12 @@ export type AcquisitionBatchResult = Readonly<{ export type AdapterOptions = Readonly<{ repoRoot: string; - helperPath?: string; limits?: ResourceLimits; - stateDir?: string; guestCompanion?: string; guestPython?: string; guestSitePackages?: string; }>; -export function createPublicMacOsAxAdapter(options: AdapterOptions): AcquisitionAdapter { - const limits = options.limits ?? DEFAULT_SPIKE_LIMITS; - const helperPath = options.helperPath ?? defaultPublicMacOsAxHelperPath(options.repoRoot); - return framedAdapter('public-macos-ax', helperPath, limits); -} - -export function defaultPublicMacOsAxHelperPath(repoRoot: string): string { - return path.join( - repoRoot, - 'scripts', - 'ios-ax-bridge-spike', - 'swift', - '.build', - 'release', - 'agent-device-ios-ax-bridge-spike', - ); -} - export function createXCTestControlAdapter( contextFor: (request: SpikeRequest) => CliContext, ): AcquisitionAdapter { @@ -81,32 +58,6 @@ export function createXCTestControlAdapter( }; } -function framedAdapter( - candidate: Exclude, - file: string, - limits: ResourceLimits, -): AcquisitionAdapter { - const spec: FramedProcessSpec = { file }; - return { - candidate, - async acquireBatch(requests, options = {}) { - if (!fs.existsSync(file)) { - return { - responses: requests.map((request) => - failureResponse(request, { - kind: 'unsupported-mechanism', - code: 'adapter-binary-unavailable', - }), - ), - stderr: '', - }; - } - const result = await runFramedBatch(spec, requests, { ...options, limits }); - return result; - }, - }; -} - function controlResponse( request: SpikeRequest, result: CliResult, diff --git a/scripts/ios-ax-bridge-spike/config.ts b/scripts/ios-ax-bridge-spike/config.ts index 880d66960..59020bee7 100644 --- a/scripts/ios-ax-bridge-spike/config.ts +++ b/scripts/ios-ax-bridge-spike/config.ts @@ -23,10 +23,6 @@ class SpikeConfigurationError extends Error { export type SpikeConfig = Readonly<{ repoRoot: string; udid: string; - appBundleId: string; - targetWindowName?: string; - targetProcessId?: number; - helperPath?: string; guestCompanion?: string; guestPython?: string; guestSitePackages?: string; @@ -42,17 +38,10 @@ export type SpikeConfig = Readonly<{ keepDevice: boolean; }>; -const CANDIDATES: readonly CandidateId[] = [ - 'public-macos-ax', - 'guest-simulator-framework-bridge', - 'xctest-control', -]; +const CANDIDATES: readonly CandidateId[] = ['guest-simulator-framework-bridge', 'xctest-control']; const BOOLEAN_FLAGS = new Set(['--apply-preferences', '--keep-device']); const VALUE_FLAGS = new Set([ '--udid', - '--app-bundle-id', - '--target-process-id', - '--helper-path', '--guest-companion', '--guest-python', '--guest-site-packages', @@ -75,9 +64,6 @@ export function parseConfig(argv: readonly string[]): SpikeConfig { return { repoRoot: resolveRepoRoot(), udid: required(parsed.values, '--udid'), - appBundleId: parsed.values.get('--app-bundle-id') ?? 'com.apple.dt.Devices', - ...optionalNumber(parsed.values.get('--target-process-id')), - ...optionalPath(parsed.values.get('--helper-path'), 'helperPath'), ...optionalPath(parsed.values.get('--guest-companion'), 'guestCompanion'), ...optionalCommand(parsed.values.get('--guest-python'), 'guestPython'), ...optionalPath(parsed.values.get('--guest-site-packages'), 'guestSitePackages'), @@ -214,16 +200,11 @@ function required(values: Map, flag: string): string { function optionalPath( value: string | undefined, - key: 'helperPath' | 'guestCompanion' | 'guestSitePackages', -): - | { helperPath: string } - | { guestCompanion: string } - | { guestSitePackages: string } - | Record { + key: 'guestCompanion' | 'guestSitePackages', +): { guestCompanion: string } | { guestSitePackages: string } | Record { return value === undefined ? {} : ({ [key]: path.resolve(value) } as - | { helperPath: string } | { guestCompanion: string } | { guestSitePackages: string }); } @@ -235,21 +216,12 @@ function optionalCommand( return value === undefined ? {} : ({ [key]: value } as { guestPython: string }); } -function optionalNumber(value: string | undefined): { targetProcessId?: number } { - if (value === undefined) return {}; - const number = Number(value); - if (!Number.isInteger(number) || number < 1) { - throw new SpikeConfigurationError('--target-process-id must be a positive integer.'); - } - return { targetProcessId: number }; -} - function resolvePath(value: string | undefined, fallback: string): string { return path.resolve(value ?? fallback); } function printHelp(): void { process.stdout.write( - `Usage: pnpm bench:ios-ax-bridge -- [options]\n\nRequired:\n --udid \n\nOptions:\n --candidate public-macos-ax, guest-simulator-framework-bridge, xctest-control\n --state #2189 state names\n --screen #2189 fixture names\n --samples #2189 minimums: cold 10, warm/relaunch 20\n --apply-preferences apply task-owned preboot AX preference experiment\n --guest-companion official idb_companion binary with SimulatorFrameworkBridge\n --guest-python Python interpreter used for the persistent idb client\n --guest-site-packages official idb 1.5.2 site-packages directory\n --target-process-id DeviceHub/Simulator host process to inspect\n --out raw JSON report path\n --keep-device leave the dedicated Simulator shutdown/boot state unchanged\n`, + `Usage: pnpm bench:ios-ax-bridge -- [options]\n\nRequired:\n --udid \n\nOptions:\n --candidate guest-simulator-framework-bridge, xctest-control\n --state #2189 state names\n --screen #2189 fixture names\n --samples #2189 minimums: cold 10, warm/relaunch 20\n --apply-preferences apply task-owned preboot AX preference experiment\n --guest-companion official idb_companion binary with SimulatorFrameworkBridge\n --guest-python Python interpreter used for the persistent idb client\n --guest-site-packages official idb 1.5.2 site-packages directory\n --out raw JSON report path\n --keep-device leave the dedicated Simulator shutdown/boot state unchanged\n`, ); } diff --git a/scripts/ios-ax-bridge-spike/decision.test.ts b/scripts/ios-ax-bridge-spike/decision.test.ts index ea738c03d..50de3f673 100644 --- a/scripts/ios-ax-bridge-spike/decision.test.ts +++ b/scripts/ios-ax-bridge-spike/decision.test.ts @@ -22,12 +22,7 @@ const preferences: PreferenceEvidence = { }; test('fails closed when a bridge has no readable corpus cells', () => { - const result = decideSpike([], lifecycle, preferences, DEFAULT_SPIKE_LIMITS, 'completed', [ - { - candidate: 'public-macos-ax', - failure: { kind: 'unsupported-mechanism', code: 'permission' }, - }, - ]); + const result = decideSpike([], lifecycle, preferences, DEFAULT_SPIKE_LIMITS); assert.equal(result.decision, 'NO-GO'); assert.ok(result.reasons.some((reason) => reason.includes('No guest SimulatorFrameworkBridge'))); }); @@ -75,7 +70,7 @@ test('reports a decisive partial corpus failure instead of replacing it with com ); }); -test('selects one complete viable guest bridge without requiring public AX to pass', () => { +test('selects one complete viable guest bridge without requiring the control to pass', () => { const states: LocalState[] = ['cold-cold', 'cold', 'warm', 'relaunch']; const screens: ScreenId[] = [ 'quiet', @@ -89,7 +84,7 @@ test('selects one complete viable guest bridge without requiring public AX to pa screens.map((screen) => readableCell('guest-simulator-framework-bridge', state, screen)), ); const result = decideSpike(cells, lifecycle, preferences, DEFAULT_SPIKE_LIMITS, 'completed', [ - { candidate: 'public-macos-ax' }, + { candidate: 'guest-simulator-framework-bridge' }, { candidate: 'guest-simulator-framework-bridge', failure: { kind: 'timeout', code: 'batch-duration-limit' }, diff --git a/scripts/ios-ax-bridge-spike/framed-process.test.ts b/scripts/ios-ax-bridge-spike/framed-process.test.ts index 52dcf77f1..9eb3fba4f 100644 --- a/scripts/ios-ax-bridge-spike/framed-process.test.ts +++ b/scripts/ios-ax-bridge-spike/framed-process.test.ts @@ -8,11 +8,10 @@ function request(id: string): SpikeRequest { return { version: 1, id, - candidate: 'public-macos-ax', + candidate: 'guest-simulator-framework-bridge', simulatorUdid: '00000000-0000-0000-0000-000000000000', state: 'warm', screen: 'quiet', - appBundleId: 'com.apple.dt.Devices', limits: DEFAULT_SPIKE_LIMITS, }; } diff --git a/scripts/ios-ax-bridge-spike/lifecycle.ts b/scripts/ios-ax-bridge-spike/lifecycle.ts index ec388e9bf..dbcd90bee 100644 --- a/scripts/ios-ax-bridge-spike/lifecycle.ts +++ b/scripts/ios-ax-bridge-spike/lifecycle.ts @@ -34,11 +34,10 @@ function probeRequest(id: string): SpikeRequest { return { version: 1, id, - candidate: 'public-macos-ax', + candidate: 'guest-simulator-framework-bridge', simulatorUdid: '00000000-0000-0000-0000-000000000000', state: 'warm', screen: 'quiet', - appBundleId: 'com.apple.dt.Devices', limits: DEFAULT_SPIKE_LIMITS, }; } diff --git a/scripts/ios-ax-bridge-spike/persistent-process.test.ts b/scripts/ios-ax-bridge-spike/persistent-process.test.ts index bdd2c68e5..ddb99ef94 100644 --- a/scripts/ios-ax-bridge-spike/persistent-process.test.ts +++ b/scripts/ios-ax-bridge-spike/persistent-process.test.ts @@ -12,7 +12,6 @@ function request(id: string): SpikeRequest { simulatorUdid: 'simulator', state: 'warm', screen: 'quiet', - appBundleId: 'com.callstack.agentdevicelab', limits: DEFAULT_SPIKE_LIMITS, }; } diff --git a/scripts/ios-ax-bridge-spike/report.test.ts b/scripts/ios-ax-bridge-spike/report.test.ts index c298b5003..209f30354 100644 --- a/scripts/ios-ax-bridge-spike/report.test.ts +++ b/scripts/ios-ax-bridge-spike/report.test.ts @@ -17,7 +17,7 @@ test('does not call an unproduced requested corpus full', () => { ['cold-cold', 'cold', 'warm', 'relaunch'], ['quiet', 'list', 'nested-scroll', 'alert', 'system-surface', 'xctest-stress'], [], - ['public-macos-ax'], + ['guest-simulator-framework-bridge'], ), 'decisive-early-stop', ); diff --git a/scripts/ios-ax-bridge-spike/report.ts b/scripts/ios-ax-bridge-spike/report.ts index 00e6d2bdf..6ba9744a4 100644 --- a/scripts/ios-ax-bridge-spike/report.ts +++ b/scripts/ios-ax-bridge-spike/report.ts @@ -42,7 +42,6 @@ function renderSpikeMarkdown(report: SpikeReport): string { '', '| Candidate | Mechanism | App surface | System surface | Lifecycle | Main limitation |', '|---|---|---|---|---|---|', - `| public-macos-ax | public macOS ApplicationServices AX | ${surfaceStatus(report, 'public-macos-ax', 'app')} | ${surfaceStatus(report, 'public-macos-ax', 'system')} | framed protocol | ${publicAxLimitation(report)} |`, `| guest-simulator-framework-bridge | idb SimulatorFrameworkBridge guest via axbridge-persistent | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'app')} | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'system')} | persistent companion + typed reader | provider exposes a flat raw element response |`, `| xctest-control | #2189 XCTest runner control | ${surfaceStatus(report, 'xctest-control', 'app')} | ${surfaceStatus(report, 'xctest-control', 'system')} | existing runner lifecycle | control, not a host-side AX bridge |`, '', @@ -108,7 +107,6 @@ function environmentLines(report: SpikeReport): string[] { `- pnpm: ${report.toolchain.pnpm}`, `- Xcode: ${report.toolchain.xcode.replaceAll('\n', '; ')}`, `- simctl: ${report.toolchain.simctl}`, - `- Swift: ${report.toolchain.swift}`, `- OS: ${report.toolchain.os}; arch=${report.toolchain.arch}`, `- Bounds: request=${report.limits.maxRequestBytes} B, response=${report.limits.maxResponseBytes} B, nodes=${report.limits.maxNodes}, traversal=${report.limits.maxTraversalDepth}, CPU=${report.limits.maxCpuMs} ms, memory=${report.limits.maxMemoryBytes} B, duration=${report.limits.maxDurationMs} ms`, ]; @@ -202,20 +200,6 @@ function preferenceExperimentLine(report: SpikeReport): string { : '- No private/preboot preference keys were applied in this run.'; } -function publicAxLimitation(report: SpikeReport): string { - const publicList = exemplarSample(report, 'public-macos-ax', 'list'); - const controlList = exemplarSample(report, 'xctest-control', 'list'); - if (!publicList || !controlList) return 'fidelity and latency remain unproven'; - const publicDepth = publicList.metrics?.maxTraversalDepth ?? 0; - const controlDepth = controlList.metrics?.maxTraversalDepth ?? 0; - const publicIdentifiers = publicList.acquisition!.nodes.filter((node) => node.identifier).length; - const controlIdentifiers = controlList.acquisition!.nodes.filter( - (node) => node.identifier, - ).length; - const shape = publicDepth < controlDepth ? 'flatter' : 'structurally different'; - return `list evidence is ${shape} and has different identifier coverage (depth ${publicDepth} vs ${controlDepth}; identifiers ${publicIdentifiers} vs ${controlIdentifiers})`; -} - function compactReportEvidence(report: SpikeReport): SpikeReport { return { ...report, @@ -236,7 +220,7 @@ function withoutStderr(sample: SpikeSample): SpikeSample { function fidelityLines(report: SpikeReport): string[] { const lines = ['Raw exemplar fidelity (candidate vs XCTest control):']; - const candidates = ['guest-simulator-framework-bridge', 'public-macos-ax'] as const; + const candidates = ['guest-simulator-framework-bridge'] as const; for (const candidate of candidates) { let compared = false; for (const screen of report.config.screens) { diff --git a/scripts/ios-ax-bridge-spike/run.ts b/scripts/ios-ax-bridge-spike/run.ts index 464c77655..24174be38 100644 --- a/scripts/ios-ax-bridge-spike/run.ts +++ b/scripts/ios-ax-bridge-spike/run.ts @@ -1,7 +1,6 @@ import path from 'node:path'; -import { execFileSync } from 'node:child_process'; import { fileURLToPath } from 'node:url'; -import { createPublicMacOsAxAdapter, createXCTestControlAdapter } from './adapter.ts'; +import { createXCTestControlAdapter } from './adapter.ts'; import { createGuestSimulatorFrameworkBridgeAdapter, GUEST_MECHANISM_EVIDENCE, @@ -44,9 +43,8 @@ function reportFailure(error: unknown): void { async function main(argv: readonly string[]): Promise { const config = parseConfig(argv); const metadata = readMetadata(config); - const runConfig = { ...config, targetWindowName: metadata.target.name }; const lifecycle = await runLifecycleProbes(); - const evidence = await executeSpikeRun(runConfig); + const evidence = await collectSpikeEvidence(config); const decision = decideSpike( evidence.cells, lifecycle, @@ -55,7 +53,7 @@ async function main(argv: readonly string[]): Promise { evidence.status, evidence.protocolProbes, ); - const report = createReport(runConfig, metadata, lifecycle, evidence, decision); + const report = createReport(config, metadata, lifecycle, evidence, decision); writeSpikeReport(config.outputPath, report); process.stdout.write( `Decision: ${report.decision}\nRaw: ${config.outputPath}\nMarkdown: ${markdownPath(config.outputPath)}\n`, @@ -73,13 +71,7 @@ type SpikeRunEvidence = Readonly<{ positiveControl: SpikeReport['positiveControl']; }>; -async function executeSpikeRun(config: SpikeConfig): Promise { - return collectSpikeEvidence(config); -} - -type CollectedSpikeEvidence = SpikeRunEvidence; - -async function collectSpikeEvidence(config: SpikeConfig): Promise { +async function collectSpikeEvidence(config: SpikeConfig): Promise { let preferenceEvidence = initialPreferenceEvidence(config.udid); let cells: Awaited> = []; let protocolProbes: SpikeResponse[] = []; @@ -134,7 +126,7 @@ function collectedEvidence( protocolProbeLogs: SpikeReport['protocolProbeLogs'], preferenceEvidence: PreferenceEvidence, positiveControl: SpikeReport['positiveControl'], -): CollectedSpikeEvidence { +): SpikeRunEvidence { return { status, cells, @@ -210,21 +202,18 @@ function createReport( function createAdapters(config: SpikeConfig) { const options = createAdapterOptions(config); - const adapters = config.candidates.flatMap((candidate) => { - if (candidate === 'public-macos-ax') return [createPublicMacOsAxAdapter(options)]; - if (candidate === 'guest-simulator-framework-bridge') - return [createGuestSimulatorFrameworkBridgeAdapter(options)]; - return [ - createXCTestControlAdapter((request) => ({ - repoRoot: config.repoRoot, - stateDir: config.stateDir, - session: `ax-spike-xctest-control-${request.state ?? 'state'}-${request.screen}`, - udid: request.simulatorUdid, - derivedPath: path.join(config.derivedPath, 'xctest-control', request.screen), - })), - ]; + return config.candidates.map((candidate) => { + if (candidate === 'guest-simulator-framework-bridge') { + return createGuestSimulatorFrameworkBridgeAdapter(options); + } + return createXCTestControlAdapter((request) => ({ + repoRoot: config.repoRoot, + stateDir: config.stateDir, + session: `ax-spike-xctest-control-${request.state}-${request.screen}`, + udid: request.simulatorUdid, + derivedPath: path.join(config.derivedPath, 'xctest-control', request.screen), + })); }); - return adapters; } async function runProtocolProbes( @@ -233,35 +222,28 @@ async function runProtocolProbes( ): Promise<{ responses: SpikeResponse[]; logs: SpikeReport['protocolProbeLogs'] }> { const responses: SpikeResponse[] = []; const logs: ProtocolProbeLog[] = []; - for (const adapter of adapters.filter(isBridgeAdapter)) { - const request = protocolProbeRequest(config, adapter.candidate); + for (const adapter of adapters) { + if (adapter.candidate !== 'guest-simulator-framework-bridge') continue; + const request = protocolProbeRequest(config); const result = await adapter.acquireBatch([request]); responses.push(...result.responses.slice(0, 1)); - logs.push({ candidate: adapter.candidate, id: request.id, stderr: result.stderr }); + logs.push({ + candidate: 'guest-simulator-framework-bridge', + id: request.id, + stderr: result.stderr, + }); } return { responses, logs }; } -function isBridgeAdapter(adapter: AcquisitionAdapter): adapter is AcquisitionAdapter & { - candidate: Exclude; -} { - return adapter.candidate !== 'xctest-control'; -} - -function protocolProbeRequest( - config: SpikeConfig, - candidate: Exclude, -): SpikeRequest { +function protocolProbeRequest(config: SpikeConfig): SpikeRequest { return { version: 1, - id: `protocol-probe:${candidate}`, - candidate, + id: 'protocol-probe:guest-simulator-framework-bridge', + candidate: 'guest-simulator-framework-bridge', simulatorUdid: config.udid, state: 'warm', screen: 'unprepared-surface', - appBundleId: config.appBundleId, - ...(config.targetWindowName === undefined ? {} : { targetWindowName: config.targetWindowName }), - ...(config.targetProcessId === undefined ? {} : { targetProcessId: config.targetProcessId }), limits: config.limits, }; } @@ -271,10 +253,9 @@ function readMetadata(config: SpikeConfig): { toolchain: Toolchain; } { const target = readTarget(config.udid, 'com.callstack.agentdevicelab'); - const base = readToolchain(); return { target: { udid: target.udid, name: target.name, runtime: target.runtime }, - toolchain: { ...base, swift: commandText('swift', ['--version']) }, + toolchain: readToolchain(), }; } @@ -296,18 +277,6 @@ function supportedAdapters( }); } -function commandText(command: string, args: readonly string[]): string { - try { - return execFileSync(command, [...args], { - encoding: 'utf8', - timeout: 30_000, - stdio: ['ignore', 'pipe', 'ignore'], - }).trim(); - } catch { - return 'unavailable'; - } -} - function isConfigurationError(error: unknown): boolean { return error instanceof Error && error.name === 'SpikeConfigurationError'; } diff --git a/scripts/ios-ax-bridge-spike/runner.ts b/scripts/ios-ax-bridge-spike/runner.ts index e84fc5fb8..74f215652 100644 --- a/scripts/ios-ax-bridge-spike/runner.ts +++ b/scripts/ios-ax-bridge-spike/runner.ts @@ -40,7 +40,6 @@ export async function runSpikeCells( export function createAdapterOptions(config: SpikeConfig): AdapterOptions { return { repoRoot: config.repoRoot, - ...(config.helperPath ? { helperPath: config.helperPath } : {}), ...(config.guestCompanion ? { guestCompanion: config.guestCompanion } : {}), ...(config.guestPython ? { guestPython: config.guestPython } : {}), ...(config.guestSitePackages ? { guestSitePackages: config.guestSitePackages } : {}), diff --git a/scripts/ios-ax-bridge-spike/sample-evidence.test.ts b/scripts/ios-ax-bridge-spike/sample-evidence.test.ts index 5e88cb256..f04a4ffe6 100644 --- a/scripts/ios-ax-bridge-spike/sample-evidence.test.ts +++ b/scripts/ios-ax-bridge-spike/sample-evidence.test.ts @@ -13,7 +13,7 @@ test('keeps one raw acquisition exemplar while retaining every sample measuremen response: { version: 1, id: 'sample', - candidate: 'public-macos-ax', + candidate: 'guest-simulator-framework-bridge', ok: true, acquisition: { targetId: 'simulator:test', @@ -36,7 +36,7 @@ test('keeps one raw acquisition exemplar while retaining every sample measuremen for (const index of [0, 1]) { appendSamples( - 'public-macos-ax', + 'guest-simulator-framework-bridge', 'warm', 'quiet', index, @@ -67,7 +67,7 @@ test('rejects a non-empty acquisition that is not bound to the prepared fixture' response: { version: 1, id: 'wrong-tree', - candidate: 'public-macos-ax', + candidate: 'guest-simulator-framework-bridge', ok: true, acquisition: { targetId: 'simulator:test', @@ -89,7 +89,7 @@ test('rejects a non-empty acquisition that is not bound to the prepared fixture' }, }; appendSamples( - 'public-macos-ax', + 'guest-simulator-framework-bridge', 'warm', 'quiet', 0, diff --git a/scripts/ios-ax-bridge-spike/sample-evidence.ts b/scripts/ios-ax-bridge-spike/sample-evidence.ts index 6d6acc571..51f024ad9 100644 --- a/scripts/ios-ax-bridge-spike/sample-evidence.ts +++ b/scripts/ios-ax-bridge-spike/sample-evidence.ts @@ -77,9 +77,6 @@ export function makeRequest( simulatorUdid: config.udid, state, screen, - appBundleId: config.appBundleId, - ...(config.targetWindowName === undefined ? {} : { targetWindowName: config.targetWindowName }), - ...(config.targetProcessId === undefined ? {} : { targetProcessId: config.targetProcessId }), ...(candidate === 'guest-simulator-framework-bridge' && appPid !== undefined ? { expectedTargetGeneration: `pid:${appPid}` } : {}), diff --git a/scripts/ios-ax-bridge-spike/swift/Package.swift b/scripts/ios-ax-bridge-spike/swift/Package.swift deleted file mode 100644 index 7796b51ff..000000000 --- a/scripts/ios-ax-bridge-spike/swift/Package.swift +++ /dev/null @@ -1,18 +0,0 @@ -// swift-tools-version: 5.9 -import PackageDescription - -let package = Package( - name: "agent-device-ios-ax-bridge-spike", - platforms: [.macOS(.v13)], - products: [ - .executable( - name: "agent-device-ios-ax-bridge-spike", - targets: ["AgentDeviceIosAxBridgeSpike"] - ), - ], - targets: [ - .executableTarget( - name: "AgentDeviceIosAxBridgeSpike" - ), - ] -) diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift deleted file mode 100644 index 4ebb2f0e1..000000000 --- a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/ProcessMetrics.swift +++ /dev/null @@ -1,48 +0,0 @@ -import Darwin -import Foundation - -struct SpikeProcessMetrics { - let cpuMs: Double - let memoryBytes: Int64? -} - -func spikeProcessMetrics(since start: rusage) -> SpikeProcessMetrics { - var current = rusage() - getrusage(RUSAGE_SELF, ¤t) - let startCpu = cpuMilliseconds(start) - let currentCpu = cpuMilliseconds(current) - return SpikeProcessMetrics( - cpuMs: max(0, currentCpu - startCpu), - memoryBytes: residentMemoryBytes() - ) -} - -func currentResourceUsage() -> rusage { - var usage = rusage() - getrusage(RUSAGE_SELF, &usage) - return usage -} - -private func cpuMilliseconds(_ usage: rusage) -> Double { - let user = Double(usage.ru_utime.tv_sec) * 1_000 + Double(usage.ru_utime.tv_usec) / 1_000 - let system = Double(usage.ru_stime.tv_sec) * 1_000 + Double(usage.ru_stime.tv_usec) / 1_000 - return user + system -} - -private func residentMemoryBytes() -> Int64? { - var info = mach_task_basic_info() - var count = mach_msg_type_number_t( - MemoryLayout.size / MemoryLayout.size - ) - let status = withUnsafeMutablePointer(to: &info) { pointer in - pointer.withMemoryRebound(to: integer_t.self, capacity: Int(count)) { rebound in - task_info( - mach_task_self_, - task_flavor_t(MACH_TASK_BASIC_INFO), - rebound, - &count - ) - } - } - return status == KERN_SUCCESS ? Int64(info.resident_size) : nil -} diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift deleted file mode 100644 index 72bfd9780..000000000 --- a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/Protocol.swift +++ /dev/null @@ -1,139 +0,0 @@ -import Foundation - -struct SpikeRequest: Decodable { - let version: Int - let id: String - let candidate: String - let simulatorUdid: String - let state: String - let screen: String - let appBundleId: String - let targetWindowName: String? - let targetProcessId: Int32? - let expectedTargetGeneration: String? - let limits: SpikeLimits -} - -struct SpikeLimits: Decodable { - let maxRequestBytes: Int - let maxResponseBytes: Int - let maxNodes: Int - let maxTraversalDepth: Int - let maxCpuMs: Int - let maxMemoryBytes: Int - let maxDurationMs: Int -} - -struct SpikeRect: Encodable { - let x: Double - let y: Double - let width: Double - let height: Double -} - -struct SpikeNode: Encodable { - let id: String - let type: String? - let parentId: String? - let role: String? - let subrole: String? - let label: String? - let value: String? - let identifier: String? - let frame: SpikeRect? - let enabled: Bool? - let selected: Bool? - let focused: Bool? -} - -struct SpikeViewport: Encodable { - let kind: String - let rect: SpikeRect? - let reason: String? - let coordinateSpace: String? - let source: String? -} - -struct SpikeResidue: Encodable { - let kind: String - let fields: [String]? - let dimension: String? - let limit: Int? - let fact: String? - let expected: String? - let observed: String? -} - -struct SpikeAcquisition: Encodable { - let targetId: String - let targetGeneration: String? - let nodes: [SpikeNode] - let viewport: SpikeViewport - let truncated: Bool - let residue: [SpikeResidue] -} - -struct SpikeFailure: Encodable { - let kind: String - let code: String? - let expectedTargetGeneration: String? - let observedTargetGeneration: String? -} - -struct SpikeMetrics: Encodable { - let requestBytes: Int - let responseBytes: Int - let nodeCount: Int - let maxTraversalDepth: Int - let cpuMs: Double? - let memoryBytes: Int64? - let durationMs: Double -} - -struct SpikeResponse: Encodable { - let version: Int - let id: String - let candidate: String - let ok: Bool - let acquisition: SpikeAcquisition? - let failure: SpikeFailure? - let metrics: SpikeMetrics -} - -struct SpikeCapture { - let acquisition: SpikeAcquisition? - let failure: SpikeFailure? - let maxTraversalDepth: Int -} - -func unsupportedCapture( - code: String, - observedTargetGeneration: String? = nil -) -> SpikeCapture { - SpikeCapture( - acquisition: nil, - failure: SpikeFailure( - kind: "unsupported-mechanism", - code: code, - expectedTargetGeneration: nil, - observedTargetGeneration: observedTargetGeneration - ), - maxTraversalDepth: 0 - ) -} - -func failureResponse( - request: SpikeRequest, - failure: SpikeFailure, - metrics: SpikeMetrics -) -> SpikeResponse { - SpikeResponse( - version: 1, - id: request.id, - candidate: request.candidate, - ok: false, - acquisition: nil, - failure: failure, - metrics: metrics - ) -} diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift deleted file mode 100644 index 650fcff71..000000000 --- a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/RawAccessibility.swift +++ /dev/null @@ -1,329 +0,0 @@ -import AppKit -import ApplicationServices -import Foundation - -private struct RawTraversalState { - var nodes: [SpikeNode] = [] - var visited: [AXUIElement] = [] - var maxDepth = 0 - var hitNodeLimit = false - var hitDepthLimit = false -} - -private struct RootSearchResult { - let element: AXUIElement - let depth: Int - let visitedCount: Int -} - -func capturePublicAccessibility(request: SpikeRequest) -> SpikeCapture { - guard request.version == 1, request.candidate == "public-macos-ax" else { - return unsupportedCapture(code: "candidate-not-supported") - } - guard AXIsProcessTrusted() else { - return unsupportedCapture(code: "host-accessibility-permission") - } - guard let application = targetApplication(request: request) else { - return unsupportedCapture(code: "target-application-unavailable") - } - - let generation = targetGeneration(application) - if let expected = request.expectedTargetGeneration, expected != generation { - return SpikeCapture( - acquisition: nil, - failure: SpikeFailure( - kind: "stale-generation", - code: "target-generation-mismatch", - expectedTargetGeneration: expected, - observedTargetGeneration: generation - ), - maxTraversalDepth: 0 - ) - } - - let applicationElement = AXUIElementCreateApplication(application.processIdentifier) - let windows = axWindows(applicationElement) - guard !windows.isEmpty else { - return unsupportedCapture( - code: "target-has-no-accessibility-windows", - observedTargetGeneration: generation - ) - } - guard let window = targetWindow(windows, name: request.targetWindowName) else { - return unsupportedCapture( - code: "target-simulator-window-unavailable", - observedTargetGeneration: generation - ) - } - guard let rootSearch = firstDescendant( - window, - subrole: "iOSContentGroup", - maxDepth: request.limits.maxTraversalDepth, - maxNodes: request.limits.maxNodes - ) else { - return unsupportedCapture( - code: "target-simulator-content-unavailable", - observedTargetGeneration: generation - ) - } - let traversalRoot = rootSearch.element - let traversalLimits = remainingLimits(request.limits, after: rootSearch) - - var state = RawTraversalState() - _ = appendRawNode( - traversalRoot, - parentId: nil, - depth: 0, - limits: traversalLimits, - state: &state - ) - let viewport = axRect(traversalRoot).map { - SpikeViewport( - kind: "reported", - rect: $0, - reason: nil, - coordinateSpace: "host-screen", - source: "AXPosition+AXSize" - ) - } ?? SpikeViewport( - kind: "missing", - rect: nil, - reason: "not-provided", - coordinateSpace: nil, - source: nil - ) - var residue: [SpikeResidue] = [] - if state.hitNodeLimit { - residue.append( - SpikeResidue( - kind: "truncated", - fields: nil, - dimension: "nodes", - limit: request.limits.maxNodes, - fact: nil, - expected: nil, - observed: nil - ) - ) - } - if state.hitDepthLimit { - residue.append( - SpikeResidue( - kind: "truncated", - fields: nil, - dimension: "depth", - limit: request.limits.maxTraversalDepth, - fact: nil, - expected: nil, - observed: nil - ) - ) - } - if viewport.kind == "missing" { - residue.append( - SpikeResidue( - kind: "missing-viewport", - fields: nil, - dimension: nil, - limit: nil, - fact: nil, - expected: nil, - observed: nil - ) - ) - } - return SpikeCapture( - acquisition: SpikeAcquisition( - targetId: "simulator:\(request.simulatorUdid)", - targetGeneration: generation, - nodes: state.nodes, - viewport: viewport, - truncated: state.hitNodeLimit || state.hitDepthLimit, - residue: residue - ), - failure: nil, - maxTraversalDepth: state.maxDepth - ) -} - -private func targetWindow(_ windows: [AXUIElement], name: String?) -> AXUIElement? { - guard let name else { return windows.first } - return windows.first { window in - guard let title = axString(window, kAXTitleAttribute as String) else { return false } - return title == name || title.hasPrefix("\(name) ") - } -} - -private func firstDescendant( - _ element: AXUIElement, - subrole: String, - maxDepth: Int, - maxNodes: Int -) -> RootSearchResult? { - var queue: [(AXUIElement, Int)] = [(element, 0)] - var visited = Set() - var retained: [AXUIElement] = [] - while !queue.isEmpty && visited.count < maxNodes { - let (candidate, depth) = queue.removeFirst() - if !visited.insert(ObjectIdentifier(candidate)).inserted { continue } - retained.append(candidate) - if axString(candidate, kAXSubroleAttribute as String) == subrole { - return RootSearchResult(element: candidate, depth: depth, visitedCount: visited.count) - } - if depth < maxDepth { - queue.append(contentsOf: axChildren(candidate).map { ($0, depth + 1) }) - } - } - return nil -} - -private func remainingLimits(_ limits: SpikeLimits, after search: RootSearchResult) -> SpikeLimits { - SpikeLimits( - maxRequestBytes: limits.maxRequestBytes, - maxResponseBytes: limits.maxResponseBytes, - maxNodes: max(1, limits.maxNodes - search.visitedCount + 1), - maxTraversalDepth: max(0, limits.maxTraversalDepth - search.depth), - maxCpuMs: limits.maxCpuMs, - maxMemoryBytes: limits.maxMemoryBytes, - maxDurationMs: limits.maxDurationMs - ) -} - -private func targetApplication(request: SpikeRequest) -> NSRunningApplication? { - if let processId = request.targetProcessId, - let application = NSRunningApplication(processIdentifier: processId), - !application.isTerminated - { - return application - } - return NSRunningApplication.runningApplications( - withBundleIdentifier: request.appBundleId - ).first(where: { !$0.isTerminated }) -} - -private func targetGeneration(_ application: NSRunningApplication) -> String { - let launch = application.launchDate?.timeIntervalSince1970.description ?? "unknown" - return "pid:\(application.processIdentifier):launch:\(launch)" -} - -@discardableResult -private func appendRawNode( - _ element: AXUIElement, - parentId: String?, - depth: Int, - limits: SpikeLimits, - state: inout RawTraversalState -) -> String? { - if state.visited.contains(where: { CFEqual($0, element) }) { return nil } - guard state.nodes.count < limits.maxNodes else { - state.hitNodeLimit = true - return nil - } - state.visited.append(element) - state.maxDepth = max(state.maxDepth, depth) - let id = "n\(state.nodes.count)" - state.nodes.append( - SpikeNode( - id: id, - type: nil, - parentId: parentId, - role: axString(element, kAXRoleAttribute as String), - subrole: axString(element, kAXSubroleAttribute as String), - label: axString(element, kAXTitleAttribute as String) - ?? axString(element, kAXDescriptionAttribute as String), - value: axString(element, kAXValueAttribute as String), - identifier: axString(element, "AXIdentifier"), - frame: axRect(element), - enabled: axBool(element, kAXEnabledAttribute as String), - selected: axBool(element, kAXSelectedAttribute as String), - focused: axBool(element, kAXFocusedAttribute as String) - ) - ) - guard depth < limits.maxTraversalDepth else { - if !axChildren(element).isEmpty { state.hitDepthLimit = true } - return id - } - for child in axChildren(element) { - _ = appendRawNode( - child, - parentId: id, - depth: depth + 1, - limits: limits, - state: &state - ) - } - return id -} - -private func axWindows(_ element: AXUIElement) -> [AXUIElement] { - axElements(element, attribute: kAXWindowsAttribute as String) -} - -private func axChildren(_ element: AXUIElement) -> [AXUIElement] { - axElements(element, attribute: kAXChildrenAttribute as String) -} - -private func axElements(_ element: AXUIElement, attribute: String) -> [AXUIElement] { - var value: CFTypeRef? - guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success, - let elements = value as? [AXUIElement] - else { - return [] - } - return elements -} - -private func axString(_ element: AXUIElement, _ attribute: String) -> String? { - var value: CFTypeRef? - guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success, - let text = value as? String - else { - return nil - } - let trimmed = text.trimmingCharacters(in: .whitespacesAndNewlines) - return trimmed.isEmpty ? nil : trimmed -} - -private func axBool(_ element: AXUIElement, _ attribute: String) -> Bool? { - var value: CFTypeRef? - guard AXUIElementCopyAttributeValue(element, attribute as CFString, &value) == .success, - let number = value as? NSNumber - else { - return nil - } - return number.boolValue -} - -private func axRect(_ element: AXUIElement) -> SpikeRect? { - var positionValue: CFTypeRef? - var sizeValue: CFTypeRef? - guard AXUIElementCopyAttributeValue(element, kAXPositionAttribute as CFString, &positionValue) == .success, - AXUIElementCopyAttributeValue(element, kAXSizeAttribute as CFString, &sizeValue) == .success, - let position = axPoint(positionValue), - let size = axSize(sizeValue) - else { - return nil - } - return SpikeRect( - x: Double(position.x), - y: Double(position.y), - width: Double(size.width), - height: Double(size.height) - ) -} - -private func axPoint(_ value: CFTypeRef?) -> CGPoint? { - guard let value, CFGetTypeID(value) == AXValueGetTypeID() else { return nil } - let axValue = value as! AXValue - guard AXValueGetType(axValue) == .cgPoint else { return nil } - var point = CGPoint.zero - return AXValueGetValue(axValue, .cgPoint, &point) ? point : nil -} - -private func axSize(_ value: CFTypeRef?) -> CGSize? { - guard let value, CFGetTypeID(value) == AXValueGetTypeID() else { return nil } - let axValue = value as! AXValue - guard AXValueGetType(axValue) == .cgSize else { return nil } - var size = CGSize.zero - return AXValueGetValue(axValue, .cgSize, &size) ? size : nil -} diff --git a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift b/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift deleted file mode 100644 index 40f0e5421..000000000 --- a/scripts/ios-ax-bridge-spike/swift/Sources/AgentDeviceIosAxBridgeSpike/main.swift +++ /dev/null @@ -1,73 +0,0 @@ -import Foundation - -let encoder = JSONEncoder() -encoder.outputFormatting = [.sortedKeys] -let decoder = JSONDecoder() -var inputBuffer = Data() - -while true { - let chunk = FileHandle.standardInput.readData(ofLength: 4 * 1024) - if chunk.isEmpty { break } - inputBuffer.append(chunk) - while let newline = inputBuffer.firstIndex(of: 0x0A) { - let line = inputBuffer.subdata(in: inputBuffer.startIndex.. 64 * 1024 { - writeLog("request frame exceeded 65536 bytes") - inputBuffer.removeAll(keepingCapacity: true) - } -} - -if !inputBuffer.isEmpty { handleRequest(inputBuffer) } - -func handleRequest(_ line: Data) { - guard line.count <= 64 * 1024 else { - writeLog("discarded oversized request frame") - return - } - let start = currentResourceUsage() - let started = DispatchTime.now().uptimeNanoseconds - do { - let request = try decoder.decode(SpikeRequest.self, from: line) - writeLog("capture id=\(request.id) candidate=\(request.candidate) screen=\(request.screen)") - let capture = capturePublicAccessibility(request: request) - let elapsedMs = Double(DispatchTime.now().uptimeNanoseconds - started) / 1_000_000 - let processMetrics = spikeProcessMetrics(since: start) - let baseMetrics = SpikeMetrics( - requestBytes: line.count + 1, - responseBytes: 0, - nodeCount: capture.acquisition?.nodes.count ?? 0, - maxTraversalDepth: capture.maxTraversalDepth, - cpuMs: processMetrics.cpuMs, - memoryBytes: processMetrics.memoryBytes, - durationMs: elapsedMs - ) - let response = capture.failure.map { - failureResponse(request: request, failure: $0, metrics: baseMetrics) - } ?? SpikeResponse( - version: 1, - id: request.id, - candidate: request.candidate, - ok: true, - acquisition: capture.acquisition, - failure: nil, - metrics: baseMetrics - ) - writeResponse(response) - } catch { - writeLog("malformed request frame") - } -} - -func writeResponse(_ response: SpikeResponse) { - guard let data = try? encoder.encode(response) else { return } - FileHandle.standardOutput.write(data) - FileHandle.standardOutput.write(Data([0x0A])) -} - -func writeLog(_ message: String) { - let data = Data("[ios-ax-spike] \(message)\n".utf8) - FileHandle.standardError.write(data) -} diff --git a/scripts/ios-ax-bridge-spike/types.ts b/scripts/ios-ax-bridge-spike/types.ts index 5c019d5d5..a645dc9bd 100644 --- a/scripts/ios-ax-bridge-spike/types.ts +++ b/scripts/ios-ax-bridge-spike/types.ts @@ -9,7 +9,7 @@ export const SPIKE_ISSUE = '#2192' as const; export const SPIKE_PARENT = '#2188' as const; export const SPIKE_PREREQUISITES = ['#2189', '#2190'] as const; -export type CandidateId = 'public-macos-ax' | 'guest-simulator-framework-bridge' | 'xctest-control'; +export type CandidateId = 'guest-simulator-framework-bridge' | 'xctest-control'; export type SpikeFailureKind = | 'unsupported-mechanism' @@ -85,9 +85,6 @@ export type SpikeRequest = Readonly<{ simulatorUdid: string; state: LocalState; screen: ScreenId | 'unprepared-surface'; - appBundleId: string; - targetWindowName?: string; - targetProcessId?: number; expectedTargetGeneration?: string; limits: ResourceLimits; }>; @@ -153,7 +150,6 @@ export type Toolchain = Readonly<{ simctl: string; os: string; arch: string; - swift: string; }>; export type GuestMechanismEvidence = Readonly<{ From 25cebcdfbd6101ce20e717ba80e67ce9127d7e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 2 Sep 2026 16:53:38 +0200 Subject: [PATCH 05/13] docs(ios): record guest AX bridge decision --- ...mulator-ax-bridge-2026-09-01-final.json.gz | Bin 0 -> 156702 bytes ...os-simulator-ax-bridge-2026-09-01-final.md | 141 ++++++++++++++++++ 2 files changed, 141 insertions(+) create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.md diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..d6f9347001e64e77546e7842ef70bf75c9736707 GIT binary patch literal 156702 zcmaI6Q*b3rxHTLn6DJc+Y}+&(rLy*`_v$M+^vz+d#yVj|_H5#-H?G*?cYm4LtrwOV$R$CD8HUKz z5$oGIeJV+U-_Pwa)5~ZN+E*m!(-(BfnKPo*6fVUC;*(74Ab(1%Ls8ZJ;Uytc#`7(7 zD}m)FbC>XW(rD!Amuu)XFv`jbBBl%?A(C1^tPWpQykCv}gJ0QCy)Qa!^5PpWvA9Rz z&GttM)Oy0bKe=JXZ%}m%eJcfW!4ca~N@O6+(Tgb@=l?p`Un7;H8tkNY^ikMz_P+}$ zR}6zX;m+O~gp?Jd+zPTE>>BSq_=ZK)_Q~qerc6@0r7+M1J}I+~J80Go3=TtSe}DVE z68ZUj-z)5Ve%yssei)(l-F$x@zYQ+AW(;##t14DlmhEm}q&%!qPxMf#ti)UhOl;B@ zUg}2xn1NiQM8-JZ?CCoPh>7oOXI~g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ios-simulator-ax-bridge-2026-09-01-final.md b/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.md new file mode 100644 index 000000000..ac647af40 --- /dev/null +++ b/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.md @@ -0,0 +1,141 @@ +# iOS Simulator AX bridge spike + +- Decision: **NO-GO** +- Status: **completed** +- Revision: 03f5a8ebe0bc3fa58c94a2c73e8d8ee6bda346ef (codex/2192-guest-bridge-evidence) +- Target: bench-golden-v2 (7E76ECA9-D40C-4833-A711-F870F8CE9363, com.apple.CoreSimulator.SimRuntime.iOS-27-0) +- Generated: 2026-09-02T14:49:10.733Z +- Corpus: states=cold-cold, cold, warm, relaunch, screens=quiet, list, nested-scroll, alert, system-surface, xctest-stress, samples=20 +- Corpus coverage: **full** + +## Evaluated guest mechanism + +- Implementation: **idb v1.5.2** using `axbridge-persistent` and `default` output. +- Companion: `idb-companion.macos-arm64.tar.gz` (SHA-256 `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`). +- CLI: `idb-cli-1.5.2.arm64_tahoe.bottle.tar.gz` (SHA-256 `ce574aa28ecf3e33a5249d60578a1dc2f609ec82f7e240907b6d9fde6251dda6`). +- Host client: **persistent-in-repository-reader**; the companion and client remain outside the distributed package. + +## Environment and limits + +- Node: v26.7.0 +- pnpm: 11.25.0 +- Xcode: Xcode 27.0; Build version 27A5252f +- simctl: @(#)PROGRAM:simctl PROJECT:CoreSimulator-1171.6 +- OS: darwin 27.0.0; arch=arm64 +- Bounds: request=65536 B, response=4194304 B, nodes=1500, traversal=12, CPU=2000 ms, memory=268435456 B, duration=5000 ms + +## Candidate fidelity and limitation matrix + +| Candidate | Mechanism | App surface | System surface | Lifecycle | Main limitation | +|---|---|---|---|---|---| +| guest-simulator-framework-bridge | idb SimulatorFrameworkBridge guest via axbridge-persistent | observed in successful cells | observed in successful cells | persistent companion + typed reader | provider exposes a flat raw element response | +| xctest-control | #2189 XCTest runner control | observed in successful cells | observed in successful cells | existing runner lifecycle | control, not a host-side AX bridge | + +## Raw acquisition and prototype presentation results + +| Candidate | State | Screen | Readable/attempted | Wall p50/p95 ms | Gated duration p50/p95 ms | First look p95 ms | Presentation p50/p95 ms | Nodes | Failures | +|---|---|---|---:|---:|---:|---:|---:|---:|---:| +| guest-simulator-framework-bridge | cold-cold | quiet | 20/20 | 417.3/563.5 | 413.1/562.6 | 15358.5/16575.5 | 0.2/0.3 | 25.0 | 0 | +| guest-simulator-framework-bridge | cold-cold | list | 20/20 | 594.0/871.2 | 591.9/868.3 | 17855.1/20062.0 | 4.1/6.5 | 283.0 | 0 | +| guest-simulator-framework-bridge | cold-cold | nested-scroll | 20/20 | 442.6/564.4 | 441.5/563.2 | 16674.5/19089.0 | 0.4/0.7 | 58.0 | 0 | +| guest-simulator-framework-bridge | cold-cold | alert | 20/20 | 404.2/465.7 | 402.4/463.8 | 15240.0/17549.4 | 1.7/2.9 | 149.0 | 0 | +| guest-simulator-framework-bridge | cold-cold | system-surface | 20/20 | 522.8/658.3 | 521.7/656.8 | 17654.2/18866.3 | 1.7/3.4 | 167.0 | 0 | +| guest-simulator-framework-bridge | cold-cold | xctest-stress | 20/20 | 488.4/670.1 | 486.8/668.9 | 16316.8/17368.5 | 1.4/2.5 | 139.0 | 0 | +| guest-simulator-framework-bridge | cold | quiet | 20/20 | 8.4/9.1 | 7.9/8.4 | 6784.5/7147.0 | 0.0/0.1 | 25.0 | 0 | +| guest-simulator-framework-bridge | cold | list | 20/20 | 117.5/119.9 | 116.0/118.5 | 7044.9/7104.5 | 5.6/7.0 | 283.0 | 0 | +| guest-simulator-framework-bridge | cold | nested-scroll | 20/20 | 15.5/16.2 | 14.5/15.1 | 6853.2/6947.1 | 0.3/0.5 | 58.0 | 0 | +| guest-simulator-framework-bridge | cold | alert | 20/20 | 39.0/42.6 | 38.1/40.9 | 6842.4/6895.5 | 1.6/2.5 | 146.0 | 0 | +| guest-simulator-framework-bridge | cold | system-surface | 20/20 | 37.2/40.3 | 35.6/38.5 | 6963.7/7181.9 | 1.6/2.6 | 167.0 | 0 | +| guest-simulator-framework-bridge | cold | xctest-stress | 20/20 | 40.5/42.7 | 38.9/41.0 | 6882.1/6959.1 | 1.5/1.9 | 139.0 | 0 | +| guest-simulator-framework-bridge | warm | quiet | 20/20 | 8.6/9.3 | 7.9/8.4 | 8.6/9.3 | 0.1/0.1 | 25.0 | 0 | +| guest-simulator-framework-bridge | warm | list | 20/20 | 118.2/120.9 | 115.6/118.8 | 118.2/120.9 | 5.2/6.6 | 283.0 | 0 | +| guest-simulator-framework-bridge | warm | nested-scroll | 20/20 | 15.1/15.8 | 14.2/14.7 | 15.1/15.8 | 0.2/0.3 | 58.0 | 0 | +| guest-simulator-framework-bridge | warm | alert | 20/20 | 41.6/43.3 | 40.2/41.6 | 41.6/43.3 | 1.0/1.9 | 146.0 | 0 | +| guest-simulator-framework-bridge | warm | system-surface | 20/20 | 37.2/39.6 | 35.7/37.9 | 37.2/39.6 | 1.5/2.2 | 167.0 | 0 | +| guest-simulator-framework-bridge | warm | xctest-stress | 20/20 | 39.6/41.1 | 38.1/39.3 | 39.6/41.1 | 1.4/1.8 | 139.0 | 0 | +| guest-simulator-framework-bridge | relaunch | quiet | 20/20 | 8.9/9.6 | 8.2/8.9 | 3654.1/4399.3 | 0.1/0.1 | 25.0 | 0 | +| guest-simulator-framework-bridge | relaunch | list | 20/20 | 119.2/121.1 | 116.7/119.1 | 4515.6/5177.9 | 4.4/6.2 | 283.0 | 0 | +| guest-simulator-framework-bridge | relaunch | nested-scroll | 20/20 | 15.4/16.5 | 14.7/15.5 | 4316.7/5093.8 | 0.1/0.2 | 58.0 | 0 | +| guest-simulator-framework-bridge | relaunch | alert | 20/20 | 41.1/42.7 | 39.5/40.8 | 4380.2/4461.2 | 1.7/2.2 | 146.0 | 0 | +| guest-simulator-framework-bridge | relaunch | system-surface | 20/20 | 37.3/39.5 | 36.3/37.7 | 4882.3/5013.4 | 1.7/2.5 | 167.0 | 0 | +| guest-simulator-framework-bridge | relaunch | xctest-stress | 20/20 | 40.4/42.6 | 39.1/40.7 | 4395.7/4503.0 | 0.9/2.4 | 139.0 | 0 | +| xctest-control | cold-cold | quiet | 20/20 | 163.3/247.5 | 163.2/247.5 | 15611.3/16840.6 | 0.0/0.1 | 6.0 | 0 | +| xctest-control | cold-cold | list | 20/20 | 327.6/429.3 | 327.5/429.1 | 14931.5/16261.8 | 0.2/0.5 | 35.0 | 0 | +| xctest-control | cold-cold | nested-scroll | 20/20 | 209.3/246.3 | 209.0/246.2 | 15016.4/15457.2 | 0.1/0.3 | 25.0 | 0 | +| xctest-control | cold-cold | alert | 20/20 | 213.0/282.6 | 212.9/282.5 | 15491.7/16666.2 | 0.1/0.2 | 30.0 | 0 | +| xctest-control | cold-cold | system-surface | 20/20 | 258.8/356.7 | 258.7/356.5 | 15933.8/16595.8 | 0.1/0.3 | 18.0 | 0 | +| xctest-control | cold-cold | xctest-stress | 20/20 | 235.7/312.0 | 235.6/311.9 | 15948.0/16851.6 | 0.1/0.2 | 29.0 | 0 | +| xctest-control | cold | quiet | 20/20 | 142.3/155.6 | 142.3/155.5 | 6835.4/7037.6 | 0.0/0.0 | 6.0 | 0 | +| xctest-control | cold | list | 20/20 | 300.4/321.7 | 300.3/321.5 | 7159.1/7245.4 | 0.2/0.3 | 35.0 | 0 | +| xctest-control | cold | nested-scroll | 20/20 | 176.3/190.6 | 176.2/190.4 | 6908.5/6974.1 | 0.1/0.2 | 25.0 | 0 | +| xctest-control | cold | alert | 20/20 | 203.1/213.7 | 203.0/213.4 | 6966.8/7120.8 | 0.1/0.2 | 30.0 | 0 | +| xctest-control | cold | system-surface | 20/20 | 211.6/218.4 | 211.5/218.3 | 7108.5/7228.2 | 0.1/0.1 | 18.0 | 0 | +| xctest-control | cold | xctest-stress | 20/20 | 206.1/213.1 | 205.9/213.0 | 7043.2/7106.2 | 0.1/0.2 | 29.0 | 0 | +| xctest-control | warm | quiet | 20/20 | 150.2/155.8 | 150.1/155.7 | 150.2/155.8 | 0.0/0.0 | 6.0 | 0 | +| xctest-control | warm | list | 20/20 | 314.4/321.4 | 314.1/321.2 | 314.4/321.4 | 0.2/0.4 | 35.0 | 0 | +| xctest-control | warm | nested-scroll | 20/20 | 186.2/192.4 | 186.0/192.3 | 186.2/192.4 | 0.1/0.2 | 25.0 | 0 | +| xctest-control | warm | alert | 20/20 | 208.7/215.8 | 208.6/215.7 | 208.7/215.8 | 0.1/0.1 | 30.0 | 0 | +| xctest-control | warm | system-surface | 20/20 | 203.8/218.4 | 203.7/218.4 | 203.8/218.4 | 0.1/0.2 | 18.0 | 0 | +| xctest-control | warm | xctest-stress | 20/20 | 198.5/215.4 | 198.4/215.3 | 198.5/215.4 | 0.1/0.1 | 29.0 | 0 | +| xctest-control | relaunch | quiet | 20/20 | 467.1/482.5 | 467.0/482.4 | 4092.5/4798.6 | 0.0/0.1 | 5.0 | 0 | +| xctest-control | relaunch | list | 20/20 | 467.5/484.7 | 467.4/484.5 | 4836.3/5643.2 | 0.2/0.3 | 32.0 | 0 | +| xctest-control | relaunch | nested-scroll | 20/20 | 467.6/478.0 | 467.4/477.8 | 4761.2/5496.0 | 0.1/0.3 | 26.0 | 0 | +| xctest-control | relaunch | alert | 20/20 | 463.1/478.9 | 463.1/478.7 | 4808.2/4877.2 | 0.1/0.4 | 26.0 | 0 | +| xctest-control | relaunch | system-surface | 20/20 | 464.2/482.9 | 464.1/482.7 | 5243.9/5379.9 | 0.1/0.2 | 20.0 | 0 | +| xctest-control | relaunch | xctest-stress | 20/20 | 470.9/483.4 | 470.8/483.3 | 4914.0/5558.9 | 0.1/0.2 | 26.0 | 0 | + +Raw exemplar fidelity (candidate vs XCTest control): +- guest-simulator-framework-bridge quiet: nodes 25/6; depth 0/3; identifiers 3/2. +- guest-simulator-framework-bridge list: nodes 283/35; depth 0/5; identifiers 63/12. +- guest-simulator-framework-bridge nested-scroll: nodes 58/25; depth 0/6; identifiers 11/8. +- guest-simulator-framework-bridge alert: nodes 146/30; depth 0/5; identifiers 21/11. +- guest-simulator-framework-bridge system-surface: nodes 167/18; depth 0/4; identifiers 30/14. +- guest-simulator-framework-bridge xctest-stress: nodes 139/29; depth 0/5; identifiers 23/7. + +Every acquisition sample retains timing, resource, readiness, and failure evidence; the first successful sample in each cell also retains one raw node-tree exemplar with viewport, target generation, truncation, and residue. Presentation samples measure only construction of the #2190 acquired carrier; they do not apply visibility, hittability, scope, depth, or semantic compaction. + +## Direct protocol probes + +- guest-simulator-framework-bridge/protocol-probe:guest-simulator-framework-bridge: ok=false, failure=timeout, code=batch-duration-limit, nodes=0, duration=0.0 ms, CPU=– ms, memory=– B, response=0 B +- stderr guest-simulator-framework-bridge/protocol-probe:guest-simulator-framework-bridge: IDB Companion Built at Sep 1 2026 08:51:20 ⏎ IDB Companion architecture arm64 ⏎ Invoked with args=[/tmp/agent-device-idb-2192-rerun/companion/idb_companion, --udid, 7E76ECA9-D40C-4833-A711-F870F8CE9363, --grpc-domain-sock, /var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/agent-device-guest-yR225B/bridge.sock, --log-level, warning, --idle-shutdown-time, 3600] ⏎ Providing targets across Simulator and Device sets. ⏎ CoreSimulator: Already loaded, skipping ⏎ CoreSimulator: SimDevice has correct path of /Library/Developer ⏎ Loaded All Private Frameworks [CoreSimulator] ⏎ MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework ⏎ MobileDevice: Successfully loaded ⏎ Loaded All Private Frameworks [MobileDevice] ⏎ MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework ⏎ MobileDevice: Successfully loaded ⏎ Loaded All Private Frameworks [MobileDevice] ⏎ Cleaning up UDS if exists ⏎ Starting swift server on unix socket /var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/agent-device-guest-yR225B/bridge.sock ⏎ Swift server started on [UDS]/var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/agent-device-guest-yR225B/bridge.sock ⏎ Companion will shut down after 3600s of inactivity ⏎ Companion will stay alive if target goes offline ⏎ Start of connect ⏎ connect called with: [metadata=[:], localFilePath=/var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/tmp13m33044, unknownFields=UnknownStorage(data: 0 bytes)] ⏎ connect succeeded ⏎ Start of describe ⏎ describe called with: [fetchDiagnostics=false, unknownFields=UnknownStorage(data: 0 bytes)] ⏎ describe succeeded ⏎ Start of accessibility_info ⏎ accessibility_info called with: [format=legacy, marker=, matchKey=label, depth=0, keys=["AXFrame", "AXLabel", "AXValue", "AXUniqueId", "AXEnabled", "AXSelected", "AXFocused", "type", "rol..., backend=axbridgePersistent, profile=false, collectFrameCoverage=false, unknownFields=UnknownStorage(data: 0 bytes), point=nil] + +## Independent positive-control evidence + +- Invalid shallow rule: exit=1; command=pnpm bench:ios-snapshot:deep-button -- --rule invalid-shallow; assertion=AssertionError: changed descendant was omitted by shallow observation; no-effect claim is invalid. +- Safe full rule: exit=0; command=pnpm bench:ios-snapshot:deep-button -- --rule safe-full; assertion=full observation changed and includes the changed descendant. + +## Preference experiment + +- Applied: **true** +- Restored: **true** +- Fixture launch compatible: **true** +- Simulator state before experiment: Shutdown +- Private/preboot preference keys are experimental only; they were applied to this shutdown disposable Simulator and the original plist bytes were restored. +- /Users/michal/Library/Developer/CoreSimulator/Devices/7E76ECA9-D40C-4833-A711-F870F8CE9363/data/Library/Preferences/com.apple.Accessibility.plist: existed=true, beforeSha256=d823b0ec1206d6f988374a2ad6f2851e300f82ecb8a9345ed540e288c9c76fa9, afterSha256=3bf49967da1ddaf776cf3eebf005a0c49622d78456ce1f8dd1007fb1ed4f9647 + - Changes: AccessibilityEnabled: false -> true; ApplicationAccessibilityEnabled: 0 -> true; AutomationEnabled: 0 -> true; IgnoreAXServerEntitlements: undefined -> true +- /Users/michal/Library/Developer/CoreSimulator/Devices/7E76ECA9-D40C-4833-A711-F870F8CE9363/data/Library/Preferences/com.apple.UIAutomation.plist: existed=true, beforeSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c, afterSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c + - Changes: none + +## Lifecycle, cancellation, and recovery + +- Source: framed-protocol-fixture +- Process crash: process-crash; recovered=true +- Timeout: timeout; recovered=true +- Cancellation: cancelled; recovered=true +- Stale generation: stale-generation; recovered=true + +## Decision rationale + +- guest-simulator-framework-bridge cold-cold first look missed the 5 second target. +- guest-simulator-framework-bridge cold prepared first look missed the 1.5 second target. +- guest-simulator-framework-bridge warm/list acquisition missed the 75/150 ms target. +- guest-simulator-framework-bridge relaunch first look missed the 250 ms target. + +## Next interface boundary + +- Keep any future bridge behind the #2190 acquisition adapter and preserve raw facts until a separate GO evidence run proves fidelity, lifecycle, and latency. + +## Production boundary + +- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made. +- A production bridge should not start until this report has a GO result; this run is the #2192 boundary. From e23dd380f9470019a3d99a960862f788a2b5f6c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 2 Sep 2026 16:57:06 +0200 Subject: [PATCH 06/13] chore(ios): remove unused spike import --- scripts/ios-ax-bridge-spike/adapter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ios-ax-bridge-spike/adapter.ts b/scripts/ios-ax-bridge-spike/adapter.ts index 3c1d1e22d..c512139d5 100644 --- a/scripts/ios-ax-bridge-spike/adapter.ts +++ b/scripts/ios-ax-bridge-spike/adapter.ts @@ -5,7 +5,7 @@ import { type CliContext, type CliResult, } from '../ios-snapshot-benchmark/command.ts'; -import { DEFAULT_SPIKE_LIMITS, validateRawAcquisition } from './limits.ts'; +import { validateRawAcquisition } from './limits.ts'; import { failureResponse } from './protocol.ts'; import type { CandidateId, From 04761eaa5a781e40d147c69f989c2cc223118021 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Wed, 2 Sep 2026 17:50:26 +0200 Subject: [PATCH 07/13] docs(ios): correct simulator bridge verdict --- ...tor-ax-bridge-2026-09-02-corrected.json.gz | Bin 0 -> 6859 bytes ...imulator-ax-bridge-2026-09-02-corrected.md | 102 +++++++ ...ator-ax-bridge-2026-09-02-targeted.json.gz | Bin 0 -> 5436 bytes package.json | 1 + scripts/ios-ax-bridge-spike/README.md | 18 ++ scripts/ios-ax-bridge-spike/adapter.ts | 1 + .../ios-ax-bridge-spike/corrected-markdown.ts | 104 +++++++ .../corrected-report.test.ts | 25 ++ .../ios-ax-bridge-spike/corrected-report.ts | 286 ++++++++++++++++++ .../ios-ax-bridge-spike/corrected-types.ts | 105 +++++++ scripts/ios-ax-bridge-spike/guest-adapter.ts | 16 +- scripts/ios-ax-bridge-spike/guest-reader.py | 8 +- .../ios-ax-bridge-spike/persistent-process.ts | 21 +- scripts/ios-ax-bridge-spike/protocol.ts | 8 + scripts/ios-ax-bridge-spike/report.ts | 47 +-- .../ios-ax-bridge-spike/targeted-evidence.ts | 240 +++++++++++++++ scripts/ios-ax-bridge-spike/targeted-run.ts | 60 ++++ 17 files changed, 1007 insertions(+), 35 deletions(-) create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz create mode 100644 scripts/ios-ax-bridge-spike/corrected-markdown.ts create mode 100644 scripts/ios-ax-bridge-spike/corrected-report.test.ts create mode 100644 scripts/ios-ax-bridge-spike/corrected-report.ts create mode 100644 scripts/ios-ax-bridge-spike/corrected-types.ts create mode 100644 scripts/ios-ax-bridge-spike/targeted-evidence.ts create mode 100644 scripts/ios-ax-bridge-spike/targeted-run.ts diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz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MG@<@D;P{I)hSUQ#NF8g25Q{P@k^zir@oQ}mLp;z^JFWgm&5chap#k1S1D8gSfLen< zJ|)>O|B$ustA&J-V;`%(pdAzw)iR<$EB9CU};u3=#^$Q{y(=_{} z{*L9*;wzT#ngbU5c--d@6l1~K2zN9`l_c{Nk2L|7Zozhdiwm}ovLyZ3$xuxeDoRra zhO9*Z%%_3r`<_cZ^);#0^Fo%P(qj$`vHu^RakCGa9_!jq{&90M3-&?NK4|)igQm8U zzd+E`h4kwVnu>H3&sakDLDN2HdUDXDheghMSY+9z69m*_pC1-E`><#q7Cq>^&(gm$ z`*TghJ_Eb2n~b%#ZnUV3&imGS|Gj^)4~zC;(N`Q6wUzt@!lEvuUw2q^ zJ)pl#Ch^@qEZT=fTZBa)`@L}jz+mE?tKgwtSN*hQ)xCTmtvc=qBxIx0`l#Y2)@gl! zeFzhQ(I9K$tv~Ra?|D3v8<9>RW{Ej|3>iWgV|m{wAV|V9Lef F002nTOCtaP literal 0 HcmV?d00001 diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md new file mode 100644 index 000000000..6f282ba87 --- /dev/null +++ b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md @@ -0,0 +1,102 @@ +# iOS Simulator AX bridge corrected evidence + +- Decision: **NO-GO** +- Interpretation: **maintainer-corrected** +- Revision: eac2c7f409f4148bbeb1af87a55ad74eef54e8fc (codex/2192-guest-bridge-evidence) +- Target: bench-golden-v2 (7E76ECA9-D40C-4833-A711-F870F8CE9363, com.apple.CoreSimulator.SimRuntime.iOS-27-0) +- Generated: 2026-09-02T15:37:43.300Z +- Immutable broad raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz` (original NO-GO; interpretation superseded to stretch-only) +- Narrow targeted raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz` + +The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. + +## Hard gates + +| Gate | Status | Target | Evidence | +|---|---|---|---| +| warm | **PASS** | p50 <300 ms and p95 <500 ms per screen | 6/6 warm screen cells passed; quiet p50/p95=8.6 ms/9.3 ms ready=20/20; list p50/p95=118.2 ms/120.9 ms ready=20/20; nested-scroll p50/p95=15.1 ms/15.8 ms ready=20/20; alert p50/p95=41.6 ms/43.3 ms ready=20/20; system-surface p50/p95=37.2 ms/39.6 ms ready=20/20; xctest-stress p50/p95=39.6 ms/41.1 ms ready=20/20 | +| relaunch | **PASS** | p95 <500 ms per screen after observed new-generation app readiness | 6/6 relaunch screen cells passed; quiet p50/p95=8.9 ms/9.6 ms ready=20/20; list p50/p95=119.2 ms/121.1 ms ready=20/20; nested-scroll p50/p95=15.4 ms/16.5 ms ready=20/20; alert p50/p95=41.1 ms/42.7 ms ready=20/20; system-surface p50/p95=37.3 ms/39.5 ms ready=20/20; xctest-stress p50/p95=40.4 ms/42.6 ms ready=20/20 | +| nonresidentBootstrap | **FAIL** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 1/5 usable trees; p95=5768.8 ms; timer covered adapter acquireBatch only after app readiness, with no xcodebuild, XCTest, or agent-device runner in the timed path | +| liveRecovery | **FAIL** | live crash, timeout, cancellation, and honest target-generation handling | 0/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response | +| hierarchyResidue | **PASS** | missing hierarchy represented as typed provider-pruned depth residue | provider-pruned/depth observed; traversal depth is not treated as complete | + +## Readiness boundary and candidate-owned latency + +Warm and relaunch timing starts at the bridge acquisition after fixture/app readiness admission. Relaunch readiness is recorded separately; the old first-look value includes Simulator, app, daemon, and runner costs. + +| State | Screen | Samples | Readable | Ready generation | Candidate p50/p95 ms | Readiness p95 ms | Old first-look p95 ms | Generations | +|---|---|---:|---:|---:|---:|---:|---:|---:| +| warm | quiet | 20 | 20 | 20 | 8.6/9.3 | 0.0 | 9.3 | 1 | +| warm | list | 20 | 20 | 20 | 118.2/120.9 | 0.0 | 120.9 | 1 | +| warm | nested-scroll | 20 | 20 | 20 | 15.1/15.8 | 0.0 | 15.8 | 1 | +| warm | alert | 20 | 20 | 20 | 41.6/43.3 | 0.0 | 43.3 | 1 | +| warm | system-surface | 20 | 20 | 20 | 37.2/39.6 | 0.0 | 39.6 | 1 | +| warm | xctest-stress | 20 | 20 | 20 | 39.6/41.1 | 0.0 | 41.1 | 1 | +| relaunch | quiet | 20 | 20 | 20 | 8.9/9.6 | 4390.1 | 4399.3 | 1 | +| relaunch | list | 20 | 20 | 20 | 119.2/121.1 | 5061.4 | 5177.9 | 1 | +| relaunch | nested-scroll | 20 | 20 | 20 | 15.4/16.5 | 5078.9 | 5093.8 | 1 | +| relaunch | alert | 20 | 20 | 20 | 41.1/42.7 | 4418.9 | 4461.2 | 1 | +| relaunch | system-surface | 20 | 20 | 20 | 37.3/39.5 | 4976.2 | 5013.4 | 1 | +| relaunch | xctest-stress | 20 | 20 | 20 | 40.4/42.6 | 4463.5 | 4503.0 | 1 | + +## Cold diagnostics + +Cold and cold-cold first-look measurements remain visible for diagnosis, but are excluded from the candidate-owned hard verdict because they combine environment and readiness boundaries with bridge work. + +| State | Screen | Preparation p95 ms | First-look p95 ms | Interpretation | +|---|---|---:|---:|---| +| cold-cold | quiet | 16151.2 | 16575.5 | excluded runner/app readiness costs | +| cold-cold | list | 19475.9 | 20062.0 | excluded runner/app readiness costs | +| cold-cold | nested-scroll | 18561.5 | 19089.0 | excluded runner/app readiness costs | +| cold-cold | alert | 17112.3 | 17549.4 | excluded runner/app readiness costs | +| cold-cold | system-surface | 18355.9 | 18866.3 | excluded runner/app readiness costs | +| cold-cold | xctest-stress | 16930.2 | 17368.5 | excluded runner/app readiness costs | +| cold | quiet | 7138.6 | 7147.0 | excluded runner/app readiness costs | +| cold | list | 6985.7 | 7104.5 | excluded runner/app readiness costs | +| cold | nested-scroll | 6930.9 | 6947.1 | excluded runner/app readiness costs | +| cold | alert | 6855.4 | 6895.5 | excluded runner/app readiness costs | +| cold | system-surface | 7145.6 | 7181.9 | excluded runner/app readiness costs | +| cold | xctest-stress | 6918.1 | 6959.1 | excluded runner/app readiness costs | + +## Nonresident bootstrap + +- 1/5 usable trees; p95=5768.8 ms; timer covered adapter acquireBatch only after app readiness, with no xcodebuild, XCTest, or agent-device runner in the timed path. +- The timed boundary begins with a nonresident adapter and ends at the first usable guest tree; Simulator/app readiness was established before the timer. + +| Sample | Duration ms | Usable tree | Failure | Nodes | Generation | +|---:|---:|---|---|---:|---| +| 1 | 1990.6 | true | none/none | 159 | – | +| 2 | 5718.8 | false | timeout/batch-duration-limit | 0 | – | +| 3 | 5702.4 | false | timeout/batch-duration-limit | 0 | – | +| 4 | 5740.5 | false | timeout/batch-duration-limit | 0 | – | +| 5 | 5768.8 | false | timeout/batch-duration-limit | 0 | – | + +## Live candidate recovery + +- 0/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response. + +| Operation | Observed failure | Recovery response | Recovered tree | +|---|---|---|---| +| process-crash | process-crash/persistent-process-exited | failed | 0 nodes | +| timeout | timeout/guest-read-timeout | failed | 0 nodes | +| cancelled | cancelled/abort-signal | failed | 0 nodes | +| stale-generation | timeout/batch-duration-limit | failed | 0 nodes | + +## Hierarchy residue + +- provider-pruned/depth observed; traversal depth is not treated as complete. +- Observed traversal depth: 0; depth complete: **false**. The guest response is flat and carries typed `provider-pruned/depth` residue. + +## Stretch findings + +- Original broad-run finding: guest-simulator-framework-bridge cold-cold first look missed the 5 second target. +- Original broad-run finding: guest-simulator-framework-bridge cold prepared first look missed the 1.5 second target. +- Original broad-run finding: guest-simulator-framework-bridge warm/list acquisition missed the 75/150 ms target. +- Original broad-run finding: guest-simulator-framework-bridge relaunch first look missed the 250 ms target. +- Cold and cold-cold first-look measurements include Simulator, app, daemon, and runner readiness costs; they are diagnostics, not candidate-owned hard gates. +- The former warm 75/150 ms and relaunch 250 ms thresholds are stretch findings under the corrected contract. + +## Production boundary + +- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made. +- The corrected result is evidence for the #2192 decision boundary only; it does not start production routing. diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..5c05b78cf40aa3b71fce1b7586bfe97ad340989d GIT binary patch literal 5436 zcmV-C6~pQuiwFP!000026YX95bK5wQ{{8+6l<%%;w@Q@wez-PQC%-b@O(x#R$xLmM zN`WLOVN8)4K5T2Y^1oj<_zvxH?79)|^#(N*16R8LX$Yt1?~ zoMTh(n~weu$e6KPULpVUC`hMMj`TESXJ-51A&% zSi81P$4#AxqQJjp$V2j%cW0Mp{{v5z5CECc1oS6=xf)*ov`CoEiwV4~{%5qWb6zlI zMuQtVX8EEFoz3F8GRs)RGE_DPZS%Cu0yfMF9?_t{_L{t43r|m-$Tf10$lA8+ay#UND#&x{TR=NDb3w(Qa)X(Ku&cpw+7; zMakHlfZ?1w_W9}1Q_f8FR54w{P==1CDHpDzUbv^{o?#n+lh7%H+@hD1aT)`@a;sxy z%B0{T4XV<|hGhNIG-IQtP5SWbZI!9d-;5O9QPd;UBu(RBLb+&$1Zn~hx4PYT`YOPp zO~4CH>+601J@-9rdKcxY>0m|w_e^o})CXXgm zw`?dBX^!t`F10knGc-rFEK{dWn_g(Emg7<_4D`rW zJr=lnPqCrZX)0dc zR(8T7NCa`CNm+#HT_XG|iojq#w9#SkE(c`>Qx3Kf4_hL{> za5H#{7Y;&N&=&D(5v&Fa&l?8toO7SYyqNc)ZaKCSyT`@}8~v-g`QoYV$I#UcUuA)& zt9EEdp6eRWuR4X_x@&37P*t!T7Wgjp4AWwvWvWbfAxs614JL<95)~|K0WDM0J)P=? z>l;2}fJ&+D8@BFShH0`O^Z^RqIG*n4QRL{Z3H5ea7=pb90R|m(FNo8kd2bkmv7=7? z&J*g#&{<7g>M&O;(hM|hQS9nKc;_Q1>L!G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%Iw z78wUxbf86#2Jf@@@0LD1(4qq^`hjWDs*!&KTC`5+k4=ky^Jm8W&2KjcT6CaA&!R=< zGA%OIzNOoar=z*4=5uI~d7woHTJ&h}zWC#((3u`+(Sa8Iz_e)9$iD$CS|{|!rbP*} zI0aid(4qq^dKN9RmT8gg_8m+2v}(1;eGV)X z`8S|N>xBN;wCKjyew$9i`vWaH(4rk^(I>GN8}a61FExhl=I`8r2H4(8kkMRRDN+%O zwG^lUX)|xhg4)D)TmA7uapqYZN)rdwsz2@o&-I^l67)!rBH%c0JG{uYEW_?q?>qF! z)I8I`#W6_wx%wkTnx(F%Nw_5&UZ2+cxYat_Ynd(Swrd)eX;s3`WabI^kvKibEuY)4 z57Nu!93IFotKmHF>a#iZpf&c*OteArU literal 0 HcmV?d00001 diff --git a/package.json b/package.json index 0cfd3513c..104693e88 100644 --- a/package.json +++ b/package.json @@ -125,6 +125,7 @@ "bench:ios-snapshot:deep-button": "node --experimental-strip-types scripts/ios-snapshot-benchmark/deep-button.ts", "bench:ios-snapshot:evidence": "node --experimental-strip-types scripts/ios-snapshot-benchmark/evidence.ts", "bench:ios-ax-bridge": "node --experimental-strip-types scripts/ios-ax-bridge-spike/run.ts", + "bench:ios-ax-bridge:targeted": "node --experimental-strip-types scripts/ios-ax-bridge-spike/targeted-run.ts", "mutation:run": "node --experimental-strip-types scripts/mutation/run.ts", "mutation:check": "node --experimental-strip-types scripts/mutation/run.ts --no-run", "mutation:affected": "node --experimental-strip-types scripts/mutation/run.ts --affected", diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index 91b4e3ff2..e512e05a8 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -30,3 +30,21 @@ The default candidate set, state set, screen set, and sample minimums come from `--apply-preferences` is the only way the experiment edits Simulator preference plists. The Simulator must be shutdown; the harness records exact plist hashes and targeted key changes, then restores the original bytes before reporting. The keys are not production defaults. The harness fails closed. It reports `NO-GO` when the guest candidate is unsupported, unavailable, unreadable, stale, over a bound, below the sample minimum, or when crash/timeout/cancellation recovery is not typed and recovered. XCTest is a control result and cannot turn a passing guest corpus into a failure. It stops before reporting timings if the fixture app cannot be prepared deterministically. The adjacent gzipped JSON and readable Markdown report are the decision artifact; no production route should be implemented from a `NO-GO` run. + +The checked-in broad corpus predates the corrected hard-latency contract. Reproduce only the +missing live bootstrap and lifecycle evidence with: + +```sh +pnpm bench:ios-ax-bridge:targeted -- \ + --udid SIMULATOR_UDID \ + --apply-preferences \ + --guest-companion /path/to/idb_companion \ + --guest-python python3 \ + --guest-site-packages /path/to/idb-cli/libexec/lib/python3.14/site-packages +``` + +This preserves the broad raw artifact and writes a narrow raw artifact plus the superseding +corrected report. Each nonresident bootstrap sample re-establishes a booted Simulator and ready app +before its timer, so helper teardown contention and Simulator/app readiness are outside the measured +candidate boundary. Missing provider generation is emitted as typed residue; the reader never echoes +an expected generation it did not observe. diff --git a/scripts/ios-ax-bridge-spike/adapter.ts b/scripts/ios-ax-bridge-spike/adapter.ts index c512139d5..bd30ead4a 100644 --- a/scripts/ios-ax-bridge-spike/adapter.ts +++ b/scripts/ios-ax-bridge-spike/adapter.ts @@ -22,6 +22,7 @@ export type AcquisitionAdapter = Readonly<{ options?: Readonly<{ signal?: AbortSignal }>, ): Promise; close?: () => Promise; + evidence?: Readonly<{ terminateReaderOnNextBatch?: () => void }>; }>; export type AcquisitionBatchResult = Readonly<{ diff --git a/scripts/ios-ax-bridge-spike/corrected-markdown.ts b/scripts/ios-ax-bridge-spike/corrected-markdown.ts new file mode 100644 index 000000000..698c2fa08 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/corrected-markdown.ts @@ -0,0 +1,104 @@ +import type { CorrectedReport, GateResult, LatencySummary } from './corrected-types.ts'; + +export function renderCorrectedMarkdown(report: CorrectedReport): string { + const lines = [ + '# iOS Simulator AX bridge corrected evidence', + '', + `- Decision: **${report.decision}**`, + '- Interpretation: **maintainer-corrected**', + `- Revision: ${report.revision.commit} (${report.revision.branch})`, + `- Target: ${report.target.name} (${report.target.udid}, ${report.target.runtime})`, + `- Generated: ${report.generatedAt}`, + `- Immutable broad raw artifact: \`${report.sourceArtifact.path}\` (original ${report.sourceArtifact.originalDecision}; interpretation superseded to stretch-only)`, + `- Narrow targeted raw artifact: \`${report.targetedArtifact.path}\``, + '', + 'The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract.', + '', + '## Hard gates', + '', + '| Gate | Status | Target | Evidence |', + '|---|---|---|---|', + ...Object.entries(report.hardGates).map(([name, gate]) => gateLine(name, gate)), + '', + '## Readiness boundary and candidate-owned latency', + '', + 'Warm and relaunch timing starts at the bridge acquisition after fixture/app readiness admission. Relaunch readiness is recorded separately; the old first-look value includes Simulator, app, daemon, and runner costs.', + '', + '| State | Screen | Samples | Readable | Ready generation | Candidate p50/p95 ms | Readiness p95 ms | Old first-look p95 ms | Generations |', + '|---|---|---:|---:|---:|---:|---:|---:|---:|', + ...report.readiness.map(readinessLine), + '', + '## Cold diagnostics', + '', + 'Cold and cold-cold first-look measurements remain visible for diagnosis, but are excluded from the candidate-owned hard verdict because they combine environment and readiness boundaries with bridge work.', + '', + '| State | Screen | Preparation p95 ms | First-look p95 ms | Interpretation |', + '|---|---|---:|---:|---|', + ...report.coldDiagnostics.map(coldDiagnosticLine), + '', + '## Nonresident bootstrap', + '', + `- ${report.hardGates.nonresidentBootstrap.evidence}.`, + '- The timed boundary begins with a nonresident adapter and ends at the first usable guest tree; Simulator/app readiness was established before the timer.', + '', + '| Sample | Duration ms | Usable tree | Failure | Nodes | Generation |', + '|---:|---:|---|---|---:|---|', + ...report.bootstrap.map(bootstrapLine), + '', + '## Live candidate recovery', + '', + `- ${report.hardGates.liveRecovery.evidence}.`, + '', + '| Operation | Observed failure | Recovery response | Recovered tree |', + '|---|---|---|---|', + ...report.liveRecovery.map(recoveryLine), + '', + '## Hierarchy residue', + '', + `- ${report.hardGates.hierarchyResidue.evidence}.`, + `- Observed traversal depth: ${report.hierarchy.observedTraversalDepth}; depth complete: **${report.hierarchy.depthComplete}**. The guest response is flat and carries typed \`${report.hierarchy.residue.kind}/${report.hierarchy.residue.fields.join(',')}\` residue.`, + '', + '## Stretch findings', + '', + ...report.stretchFindings.map((finding) => `- ${finding}`), + '', + '## Production boundary', + '', + '- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made.', + '- The corrected result is evidence for the #2192 decision boundary only; it does not start production routing.', + ]; + return `${lines.join('\n')}\n`; +} + +function gateLine(name: string, gate: GateResult): string { + return `| ${name} | **${gate.status}** | ${gate.target} | ${gate.evidence} |`; +} + +function readinessLine(summary: LatencySummary): string { + return `| ${summary.state} | ${summary.screen} | ${summary.samples} | ${summary.readableSamples} | ${summary.readinessObservedSamples} | ${formatMs(summary.candidateP50Ms)}/${formatMs(summary.candidateP95Ms)} | ${formatMs(summary.preparationP95Ms)} | ${formatMs(summary.firstLookP95Ms)} | ${summary.generationCount} |`; +} + +function coldDiagnosticLine(diagnostic: CorrectedReport['coldDiagnostics'][number]): string { + return `| ${diagnostic.state} | ${diagnostic.screen} | ${formatMs(diagnostic.preparationP95Ms)} | ${formatMs(diagnostic.firstLookP95Ms)} | excluded runner/app readiness costs |`; +} + +function bootstrapLine(sample: CorrectedReport['bootstrap'][number]): string { + const response = sample.response; + return `| ${sample.index} | ${sample.durationMs.toFixed(1)} | ${sample.usableTree} | ${failureText(response.failure)} | ${response.metrics.nodeCount} | ${response.acquisition?.targetGeneration ?? '–'} |`; +} + +function recoveryLine(probe: CorrectedReport['liveRecovery'][number]): string { + const recovery = probe.recoveredResponse; + const status = recovery.ok ? 'ok' : 'failed'; + const nodes = recovery.acquisition?.nodes.length ?? 0; + return `| ${probe.operation} | ${failureText(probe.response.failure)} | ${status} | ${nodes} nodes |`; +} + +function failureText(failure: CorrectedReport['bootstrap'][number]['response']['failure']): string { + if (!failure) return 'none/none'; + return `${failure.kind}/${failure.code ?? 'none'}`; +} + +function formatMs(value: number | null): string { + return value === null ? '–' : value.toFixed(1); +} diff --git a/scripts/ios-ax-bridge-spike/corrected-report.test.ts b/scripts/ios-ax-bridge-spike/corrected-report.test.ts new file mode 100644 index 000000000..c483b594e --- /dev/null +++ b/scripts/ios-ax-bridge-spike/corrected-report.test.ts @@ -0,0 +1,25 @@ +import path from 'node:path'; +import { describe, expect, test } from 'vitest'; +import { buildCorrectedReport, readSpikeReport, readTargetedArtifact } from './corrected-report.ts'; +import { renderCorrectedMarkdown } from './corrected-markdown.ts'; + +const SOURCE = 'docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz'; +const TARGETED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz'; + +describe('corrected Simulator AX bridge report', () => { + test('keeps fast resident acquisition separate from failed cold bootstrap and recovery', () => { + const report = buildCorrectedReport({ + sourcePath: SOURCE, + source: readSpikeReport(path.resolve(SOURCE)), + targetedPath: TARGETED, + targeted: readTargetedArtifact(path.resolve(TARGETED)), + }); + + expect(report.decision).toBe('NO-GO'); + expect(report.hardGates.warm.status).toBe('PASS'); + expect(report.hardGates.relaunch.status).toBe('PASS'); + expect(report.hardGates.nonresidentBootstrap.status).toBe('FAIL'); + expect(report.hardGates.liveRecovery.status).toBe('FAIL'); + expect(renderCorrectedMarkdown(report)).toContain('Decision: **NO-GO**'); + }); +}); diff --git a/scripts/ios-ax-bridge-spike/corrected-report.ts b/scripts/ios-ax-bridge-spike/corrected-report.ts new file mode 100644 index 000000000..9af9ef21b --- /dev/null +++ b/scripts/ios-ax-bridge-spike/corrected-report.ts @@ -0,0 +1,286 @@ +import fs from 'node:fs'; +import path from 'node:path'; +import { gunzipSync, gzipSync } from 'node:zlib'; +import type { + CorrectedReport, + GateResult, + LatencySummary, + TargetedRawArtifact, +} from './corrected-types.ts'; +import { renderCorrectedMarkdown } from './corrected-markdown.ts'; +import { percentile } from './report.ts'; +import type { SpikeCell, SpikeReport } from './types.ts'; + +export function readSpikeReport(filePath: string): SpikeReport { + return JSON.parse(gunzipSync(fs.readFileSync(filePath)).toString('utf8')) as SpikeReport; +} + +export function readTargetedArtifact(filePath: string): TargetedRawArtifact { + return JSON.parse(gunzipSync(fs.readFileSync(filePath)).toString('utf8')) as TargetedRawArtifact; +} + +export function buildCorrectedReport(options: { + sourcePath: string; + source: SpikeReport; + targetedPath: string; + targeted: TargetedRawArtifact; +}): CorrectedReport { + const readiness = options.source.cells + .filter( + (cell) => + cell.candidate === 'guest-simulator-framework-bridge' && + (cell.state === 'warm' || cell.state === 'relaunch'), + ) + .map(summarizeLatency); + const coldDiagnostics = options.source.cells + .filter( + (cell) => + cell.candidate === 'guest-simulator-framework-bridge' && + (cell.state === 'cold' || cell.state === 'cold-cold'), + ) + .map(summarizeColdDiagnostic); + const hierarchy = hierarchyEvidence(options.targeted); + const hardGates = { + warm: latencyGate(readiness, 'warm', 'p50 <300 ms and p95 <500 ms per screen'), + relaunch: latencyGate( + readiness, + 'relaunch', + 'p95 <500 ms per screen after observed new-generation app readiness', + ), + nonresidentBootstrap: bootstrapGate(options.targeted), + liveRecovery: recoveryGate(options.targeted), + hierarchyResidue: hierarchy.gate, + } as const; + const failedGates = Object.entries(hardGates).filter(([, gate]) => gate.status === 'FAIL'); + return { + schemaVersion: 'ios-simulator-ax-bridge-corrected.v1', + interpretation: 'maintainer-corrected', + generatedAt: new Date().toISOString(), + revision: options.targeted.revision, + sourceArtifact: { + path: options.sourcePath, + revision: options.source.revision, + originalDecision: 'NO-GO', + interpretation: 'superseded-stretch-only', + }, + targetedArtifact: { path: options.targetedPath, revision: options.targeted.revision }, + target: options.targeted.target, + toolchain: options.targeted.toolchain, + guestMechanism: options.targeted.guestMechanism, + readiness, + hardGates, + coldDiagnostics, + stretchFindings: [ + ...options.source.decisionReasons.map((reason) => `Original broad-run finding: ${reason}`), + 'Cold and cold-cold first-look measurements include Simulator, app, daemon, and runner readiness costs; they are diagnostics, not candidate-owned hard gates.', + 'The former warm 75/150 ms and relaunch 250 ms thresholds are stretch findings under the corrected contract.', + ], + decision: failedGates.length === 0 ? 'GO' : 'NO-GO', + decisionReasons: failedGates.map( + ([name, gate]) => `${name} hard gate failed: ${gate.evidence}.`, + ), + liveRecovery: options.targeted.recovery, + bootstrap: options.targeted.bootstrap, + hierarchy: hierarchy.value, + productionBoundary: 'no-production-routing-changes', + }; +} + +export function writeCorrectedReport(outputPath: string, report: CorrectedReport): void { + fs.mkdirSync(path.dirname(outputPath), { recursive: true }); + fs.writeFileSync(outputPath, gzipSync(`${JSON.stringify(report)}\n`, { level: 9 })); + fs.writeFileSync(markdownPath(outputPath), renderCorrectedMarkdown(report)); +} + +function markdownPath(outputPath: string): string { + const replaced = outputPath.replace(/\.json(?:\.gz)?$/u, '.md'); + return replaced === outputPath ? `${outputPath}.md` : replaced; +} + +function summarizeLatency(cell: SpikeCell): LatencySummary { + const samples = cell.acquisitionSamples; + const readable = samples.filter((sample) => sample.ok && sample.firstTree === 'readable'); + const observedGenerations = readable.flatMap((sample) => + observedGeneration(sample.acquisition?.targetGeneration), + ); + return { + state: cell.state as 'warm' | 'relaunch', + screen: cell.screen, + samples: samples.length, + readableSamples: readable.length, + readinessObservedSamples: observedGenerations.length > 0 ? readable.length : 0, + generationCount: new Set(observedGenerations).size, + candidateP50Ms: optionalPercentile( + readable.map((sample) => sample.wallClockMs), + 50, + ), + candidateP95Ms: optionalPercentile( + readable.map((sample) => sample.wallClockMs), + 95, + ), + preparationP95Ms: optionalPercentile( + readable.map((sample) => sample.preparationMs), + 95, + ), + firstLookP95Ms: optionalPercentile( + readable.map((sample) => sample.firstLookMs), + 95, + ), + }; +} + +function summarizeColdDiagnostic(cell: SpikeCell): CorrectedReport['coldDiagnostics'][number] { + const readable = cell.acquisitionSamples.filter( + (sample) => sample.ok && sample.firstTree === 'readable', + ); + return { + state: cell.state as 'cold' | 'cold-cold', + screen: cell.screen, + preparationP95Ms: optionalPercentile( + readable.map((sample) => sample.preparationMs), + 95, + ), + firstLookP95Ms: optionalPercentile( + readable.map((sample) => sample.firstLookMs), + 95, + ), + interpretation: 'excluded-runner-and-app-readiness-costs', + }; +} + +function latencyGate( + readiness: readonly LatencySummary[], + state: 'warm' | 'relaunch', + target: string, +): GateResult { + const cells = readiness.filter((summary) => summary.state === state); + const passed = cells.filter(latencyPassed); + return { + status: cells.length > 0 && passed.length === cells.length ? 'PASS' : 'FAIL', + target, + evidence: `${passed.length}/${cells.length} ${state} screen cells passed; ${cells.map(formatLatency).join('; ') || 'no cells'}`, + }; +} + +function bootstrapGate(targeted: TargetedRawArtifact): GateResult { + const usable = targeted.bootstrap.filter((sample) => sample.usableTree); + const p95 = optionalPercentile( + targeted.bootstrap.map((sample) => sample.durationMs), + 95, + ); + const passed = [ + targeted.bootstrap.length === 5, + usable.length === targeted.bootstrap.length, + p95 !== null, + p95 !== null && p95 < 2_000, + ].every(Boolean); + return { + status: passed ? 'PASS' : 'FAIL', + target: 'nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms', + evidence: `${usable.length}/${targeted.bootstrap.length} usable trees; p95=${formatMs(p95)}; timer covered adapter acquireBatch only after app readiness, with no xcodebuild, XCTest, or agent-device runner in the timed path`, + }; +} + +function recoveryGate(targeted: TargetedRawArtifact): GateResult { + const passed = targeted.recovery.filter( + (probe) => + recoveryOutcomeMatches(probe) && + probe.recoveredResponse.ok === true && + probe.recoveredResponse.acquisition?.nodes.length !== 0, + ); + return { + status: targeted.recovery.length === 4 && passed.length === 4 ? 'PASS' : 'FAIL', + target: 'live crash, timeout, cancellation, and honest target-generation handling', + evidence: `${passed.length}/${targeted.recovery.length} probes returned a typed failure or typed unavailable-generation residue and a usable recovered response`, + }; +} + +function recoveryOutcomeMatches(probe: TargetedRawArtifact['recovery'][number]): boolean { + const failure = probe.response.failure; + if (failure) return failure.kind === probe.operation; + if (probe.operation !== 'stale-generation') return false; + return hasUnavailableGeneration(probe.response); +} + +function hasUnavailableGeneration( + response: TargetedRawArtifact['recovery'][number]['response'], +): boolean { + const acquisition = response.acquisition; + if (!acquisition) return false; + return [ + response.ok, + acquisition.targetGeneration === null, + acquisition.residue.some(isUnavailableGeneration), + ].every(Boolean); +} + +function isUnavailableGeneration( + residue: NonNullable< + TargetedRawArtifact['bootstrap'][number]['response']['acquisition'] + >['residue'][number], +): boolean { + return residue.kind === 'unavailable-fact' && residue.fact === 'generation'; +} + +function hierarchyEvidence(targeted: TargetedRawArtifact): { + gate: GateResult; + value: CorrectedReport['hierarchy']; +} { + const residues = targeted.bootstrap.flatMap( + (sample) => sample.response.acquisition?.residue ?? [], + ); + const typed = residues.some( + (residue) => residue.kind === 'provider-pruned' && residue.fields.includes('depth'), + ); + const depth = targeted.bootstrap.at(0)?.response.metrics.maxTraversalDepth; + const value = { + residue: { kind: 'provider-pruned', fields: ['depth'] as const }, + observedTraversalDepth: typeof depth === 'number' ? depth : 0, + depthComplete: false as const, + interpretation: 'flat-provider-response' as const, + }; + return { + gate: { + status: typed ? 'PASS' : 'FAIL', + target: 'missing hierarchy represented as typed provider-pruned depth residue', + evidence: typed + ? 'provider-pruned/depth observed; traversal depth is not treated as complete' + : 'no typed provider-pruned/depth residue observed', + }, + value, + }; +} + +function formatLatency(summary: LatencySummary): string { + return `${summary.screen} p50/p95=${formatMs(summary.candidateP50Ms)}/${formatMs(summary.candidateP95Ms)} ready=${summary.readinessObservedSamples}/${summary.samples}`; +} + +function optionalPercentile( + values: readonly (number | undefined)[], + percentage: number, +): number | null { + const finite = values.filter( + (value): value is number => typeof value === 'number' && Number.isFinite(value), + ); + if (finite.length === 0) return null; + return percentile(finite, percentage); +} + +function observedGeneration(value: string | null | undefined): readonly string[] { + return typeof value === 'string' ? [value] : []; +} + +function latencyPassed(summary: LatencySummary): boolean { + return [ + summary.readableSamples === summary.samples, + summary.readinessObservedSamples === summary.samples, + summary.candidateP50Ms !== null, + summary.candidateP50Ms !== null && summary.candidateP50Ms < 300, + summary.candidateP95Ms !== null, + summary.candidateP95Ms !== null && summary.candidateP95Ms < 500, + ].every(Boolean); +} + +function formatMs(value: number | null): string { + return value === null ? '–' : `${value.toFixed(1)} ms`; +} diff --git a/scripts/ios-ax-bridge-spike/corrected-types.ts b/scripts/ios-ax-bridge-spike/corrected-types.ts new file mode 100644 index 000000000..3289810f9 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/corrected-types.ts @@ -0,0 +1,105 @@ +import type { SpikeCell, SpikeReport, SpikeRequest, SpikeResponse } from './types.ts'; + +const CORRECTED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-corrected.v1' as const; +export const TARGETED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-targeted.v1' as const; + +export type TargetedRevision = SpikeReport['revision']; + +export type TargetedBootstrapSample = Readonly<{ + index: number; + durationMs: number; + usableTree: boolean; + response: SpikeResponse; + stderr: string; +}>; + +export type TargetedRecoveryProbe = Readonly<{ + operation: 'process-crash' | 'timeout' | 'cancelled' | 'stale-generation'; + request: SpikeRequest; + response: SpikeResponse; + recoveredResponse: SpikeResponse; +}>; + +export type TargetedRawArtifact = Readonly<{ + schemaVersion: typeof TARGETED_SCHEMA_VERSION; + generatedAt: string; + revision: TargetedRevision; + command: string; + sourceArtifact: Readonly<{ path: string; revision: TargetedRevision }>; + target: SpikeReport['target']; + toolchain: SpikeReport['toolchain']; + guestMechanism: SpikeReport['guestMechanism']; + preferenceEvidence: SpikeReport['preferenceEvidence']; + config: Readonly<{ + states: readonly SpikeCell['state'][]; + screens: readonly SpikeCell['screen'][]; + samples: number; + bootstrapSamples: number; + }>; + bootstrap: readonly TargetedBootstrapSample[]; + recovery: readonly TargetedRecoveryProbe[]; + simulator: Readonly<{ finalState: string; accessibilityPlistSha256: string }>; +}>; + +export type LatencySummary = Readonly<{ + state: 'warm' | 'relaunch'; + screen: SpikeCell['screen']; + samples: number; + readableSamples: number; + readinessObservedSamples: number; + generationCount: number; + candidateP50Ms: number | null; + candidateP95Ms: number | null; + preparationP95Ms: number | null; + firstLookP95Ms: number | null; +}>; + +export type GateResult = Readonly<{ + status: 'PASS' | 'FAIL'; + target: string; + evidence: string; +}>; + +export type CorrectedReport = Readonly<{ + schemaVersion: typeof CORRECTED_SCHEMA_VERSION; + interpretation: 'maintainer-corrected'; + generatedAt: string; + revision: TargetedRevision; + sourceArtifact: Readonly<{ + path: string; + revision: TargetedRevision; + originalDecision: 'NO-GO'; + interpretation: 'superseded-stretch-only'; + }>; + targetedArtifact: Readonly<{ path: string; revision: TargetedRevision }>; + target: SpikeReport['target']; + toolchain: SpikeReport['toolchain']; + guestMechanism: SpikeReport['guestMechanism']; + readiness: readonly LatencySummary[]; + hardGates: Readonly<{ + warm: GateResult; + relaunch: GateResult; + nonresidentBootstrap: GateResult; + liveRecovery: GateResult; + hierarchyResidue: GateResult; + }>; + coldDiagnostics: readonly Readonly<{ + state: 'cold-cold' | 'cold'; + screen: SpikeCell['screen']; + preparationP95Ms: number | null; + firstLookP95Ms: number | null; + interpretation: 'excluded-runner-and-app-readiness-costs'; + }>[]; + stretchFindings: readonly string[]; + decision: 'GO' | 'NO-GO'; + decisionReasons: readonly string[]; + liveRecovery: readonly TargetedRecoveryProbe[]; + bootstrap: readonly TargetedBootstrapSample[]; + hierarchy: Readonly<{ + residue: Readonly<{ kind: 'provider-pruned'; fields: readonly ['depth'] }>; + observedTraversalDepth: number; + depthComplete: false; + interpretation: 'flat-provider-response'; + }>; + productionBoundary: 'no-production-routing-changes'; +}>; diff --git a/scripts/ios-ax-bridge-spike/guest-adapter.ts b/scripts/ios-ax-bridge-spike/guest-adapter.ts index f5e2c02c1..8579c3ed0 100644 --- a/scripts/ios-ax-bridge-spike/guest-adapter.ts +++ b/scripts/ios-ax-bridge-spike/guest-adapter.ts @@ -53,6 +53,9 @@ export function createGuestSimulatorFrameworkBridgeAdapter( candidate: CANDIDATE, acquireBatch: (requests, acquireOptions) => session.acquireBatch(requests, acquireOptions), close: () => session.close(), + evidence: { + terminateReaderOnNextBatch: () => session.terminateReaderOnNextBatchForEvidence(), + }, }; } @@ -124,11 +127,15 @@ class GuestSession { async close(): Promise { this.closed = true; await this.reader.close(); - terminate(this.companion); + await terminateAndWait(this.companion); this.companion = undefined; fs.rmSync(this.tempDir, { recursive: true, force: true }); } + terminateReaderOnNextBatchForEvidence(): void { + this.reader.terminateReaderOnNextBatchForEvidence(); + } + private async ensureCompanion(udid: string, limits: ResourceLimits): Promise { if (this.closed) throw new GuestStartError('guest-adapter-closed'); if (this.companion && !this.companion.killed && this.companion.exitCode === null) { @@ -241,3 +248,10 @@ async function waitForCompanion( function terminate(child: ChildProcessWithoutNullStreams | undefined): void { if (child && !child.killed) child.kill('SIGTERM'); } + +async function terminateAndWait(child: ChildProcessWithoutNullStreams | undefined): Promise { + if (!child || child.exitCode !== null) return; + const exited = new Promise((resolve) => child.once('close', () => resolve())); + terminate(child); + await exited; +} diff --git a/scripts/ios-ax-bridge-spike/guest-reader.py b/scripts/ios-ax-bridge-spike/guest-reader.py index f6ee8a577..edf2475d5 100644 --- a/scripts/ios-ax-bridge-spike/guest-reader.py +++ b/scripts/ios-ax-bridge-spike/guest-reader.py @@ -193,10 +193,10 @@ def build_response( "durationMs": duration_ms, }, } - generation = expected - if generation is None and len(pids) == 1: - generation = f"pid:{next(iter(pids))}" - residue: list[dict[str, Any]] = [] + generation = f"pid:{next(iter(pids))}" if len(pids) == 1 else None + residue: list[dict[str, Any]] = [ + {"kind": "provider-pruned", "fields": ["depth"]}, + ] if viewport is None: residue.append({"kind": "missing-viewport", "reason": "not-provided"}) if generation is None: diff --git a/scripts/ios-ax-bridge-spike/persistent-process.ts b/scripts/ios-ax-bridge-spike/persistent-process.ts index 9332c17f1..c5818b566 100644 --- a/scripts/ios-ax-bridge-spike/persistent-process.ts +++ b/scripts/ios-ax-bridge-spike/persistent-process.ts @@ -1,6 +1,6 @@ import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'; import { encodeFrame, DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import { failureResponse, parseSpikeResponse } from './protocol.ts'; +import { failureResponse, parseSpikeResponse, readResponseId } from './protocol.ts'; import type { ResourceLimits, SpikeFailureKind, SpikeRequest, SpikeResponse } from './types.ts'; export type PersistentProcessSpec = Readonly<{ @@ -40,6 +40,7 @@ export class PersistentFramedProcess { private stdoutBuffer = Buffer.alloc(0); private stderr = ''; private pending?: PendingBatch; + private terminateNextBatch = false; private serial: Promise = Promise.resolve(); private closed = false; @@ -68,6 +69,10 @@ export class PersistentFramedProcess { this.child = undefined; } + terminateReaderOnNextBatchForEvidence(): void { + this.terminateNextBatch = true; + } + private async execute( requests: readonly SpikeRequest[], options: Readonly<{ signal?: AbortSignal }>, @@ -151,6 +156,10 @@ export class PersistentFramedProcess { abortCleanup: () => signal?.removeEventListener('abort', onAbort), }; for (const { line } of encoded) this.child?.stdin.write(line); + if (this.terminateNextBatch) { + this.terminateNextBatch = false; + terminate(this.child); + } }); } @@ -182,7 +191,7 @@ export class PersistentFramedProcess { return; } const pending = this.pending; - const request = pending?.requests.find((item) => item.id === readId(value)); + const request = pending?.requests.find((item) => item.id === readResponseId(value)); if (!pending || !request || pending.responses.has(request.id)) { this.finishPending('malformed-tree', 'response-id-invalid', true); return; @@ -253,14 +262,6 @@ function errorCode(error: unknown, fallback: string): string { return fallback; } -function readId(value: unknown): string | undefined { - if (value && typeof value === 'object' && !Array.isArray(value)) { - const id = (value as Record).id; - return typeof id === 'string' ? id : undefined; - } - return undefined; -} - function terminate(child: ChildProcessWithoutNullStreams | undefined): void { if (child && !child.killed) child.kill('SIGTERM'); } diff --git a/scripts/ios-ax-bridge-spike/protocol.ts b/scripts/ios-ax-bridge-spike/protocol.ts index 872cef243..3dfd8a1e5 100644 --- a/scripts/ios-ax-bridge-spike/protocol.ts +++ b/scripts/ios-ax-bridge-spike/protocol.ts @@ -91,6 +91,14 @@ export function firstTreeStatus(response: SpikeResponse): FirstTreeStatus { return 'not-observed'; } +export function readResponseId(value: unknown): string | undefined { + if (value && typeof value === 'object' && !Array.isArray(value)) { + const id = (value as Record).id; + return typeof id === 'string' ? id : undefined; + } + return undefined; +} + function malformedResponse( request: SpikeRequest, code: string, diff --git a/scripts/ios-ax-bridge-spike/report.ts b/scripts/ios-ax-bridge-spike/report.ts index 6ba9744a4..dfbccfce8 100644 --- a/scripts/ios-ax-bridge-spike/report.ts +++ b/scripts/ios-ax-bridge-spike/report.ts @@ -219,26 +219,33 @@ function withoutStderr(sample: SpikeSample): SpikeSample { } function fidelityLines(report: SpikeReport): string[] { - const lines = ['Raw exemplar fidelity (candidate vs XCTest control):']; - const candidates = ['guest-simulator-framework-bridge'] as const; - for (const candidate of candidates) { - let compared = false; - for (const screen of report.config.screens) { - const candidateSample = exemplarSample(report, candidate, screen); - const controlSample = exemplarSample(report, 'xctest-control', screen); - if (!candidateSample || !controlSample) continue; - compared = true; - const candidateNodes = candidateSample.acquisition!.nodes; - const controlNodes = controlSample.acquisition!.nodes; - lines.push( - `- ${candidate} ${screen}: nodes ${candidateNodes.length}/${controlNodes.length}; depth ${candidateSample.metrics?.maxTraversalDepth ?? '–'}/${controlSample.metrics?.maxTraversalDepth ?? '–'}; identifiers ${candidateNodes.filter((node) => node.identifier).length}/${controlNodes.filter((node) => node.identifier).length}.`, - ); - } - if (!compared && report.candidates.includes(candidate)) { - lines.push(`- ${candidate}: no comparable raw exemplar was produced.`); - } + const candidate = 'guest-simulator-framework-bridge'; + const comparisons = report.config.screens.flatMap((screen) => + fidelityComparison(report, candidate, screen), + ); + if (comparisons.length > 0) { + return ['Raw exemplar fidelity (candidate vs XCTest control):', ...comparisons]; } - return lines.length === 1 ? ['Raw exemplar fidelity comparison was not available.'] : lines; + return report.candidates.includes(candidate) + ? [`- ${candidate}: no comparable raw exemplar was produced.`] + : ['Raw exemplar fidelity comparison was not available.']; +} + +function fidelityComparison( + report: SpikeReport, + candidate: SpikeCell['candidate'], + screen: SpikeCell['screen'], +): readonly string[] { + const candidateSample = exemplarSample(report, candidate, screen); + const controlSample = exemplarSample(report, 'xctest-control', screen); + if (!candidateSample?.acquisition || !controlSample?.acquisition) return []; + const candidateNodes = candidateSample.acquisition.nodes; + const controlNodes = controlSample.acquisition.nodes; + const candidateIdentifiers = candidateNodes.filter((node) => node.identifier).length; + const controlIdentifiers = controlNodes.filter((node) => node.identifier).length; + return [ + `- ${candidate} ${screen}: nodes ${candidateNodes.length}/${controlNodes.length}; depth ${candidateSample.metrics?.maxTraversalDepth ?? '–'}/${controlSample.metrics?.maxTraversalDepth ?? '–'}; identifiers ${candidateIdentifiers}/${controlIdentifiers}.`, + ]; } function exemplarSample( @@ -264,7 +271,7 @@ function median(values: readonly number[]): number { return percentile(values, 50); } -function percentile(values: readonly number[], percentage: number): number { +export function percentile(values: readonly number[], percentage: number): number { if (values.length === 0) return Number.NaN; const sorted = [...values].sort((left, right) => left - right); const rank = Math.ceil((percentage / 100) * sorted.length); diff --git a/scripts/ios-ax-bridge-spike/targeted-evidence.ts b/scripts/ios-ax-bridge-spike/targeted-evidence.ts new file mode 100644 index 000000000..049331aa8 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/targeted-evidence.ts @@ -0,0 +1,240 @@ +import crypto from 'node:crypto'; +import { execFileSync } from 'node:child_process'; +import fs from 'node:fs'; +import { performance } from 'node:perf_hooks'; +import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; +import { createAdapterOptions } from './runner.ts'; +import type { SpikeConfig } from './config.ts'; +import { + applyPrebootPreferences, + readSimulatorState, + restorePrebootPreferences, + simulatorPreferencePaths, +} from './preferences.ts'; +import { + bootSimulator, + readRunningAppPids, + shutdownSimulator, +} from '../ios-snapshot-benchmark/lifecycle.ts'; +import type { PreferenceEvidence, SpikeRequest, SpikeResponse } from './types.ts'; +import type { TargetedBootstrapSample, TargetedRecoveryProbe } from './corrected-types.ts'; + +const APP_ID = 'com.callstack.agentdevicelab'; + +export type TargetedRunResult = Readonly<{ + bootstrap: readonly TargetedBootstrapSample[]; + recovery: readonly TargetedRecoveryProbe[]; + preferenceEvidence: PreferenceEvidence; + simulator: Readonly<{ finalState: string; accessibilityPlistSha256: string }>; +}>; + +export async function runTargetedEvidence(config: SpikeConfig): Promise { + shutdownSimulator(config.udid); + const applied = applyPrebootPreferences(config.udid); + let restored = false; + let adapter: ReturnType | undefined; + let bootstrap: readonly TargetedBootstrapSample[] = []; + let recovery: readonly TargetedRecoveryProbe[] = []; + try { + bootSimulator(config.udid); + adapter = createGuestSimulatorFrameworkBridgeAdapter(createAdapterOptions(config)); + await launchApp(config.udid); + bootstrap = await runNonresidentBootstrap(config); + recovery = await runLiveRecovery(config, adapter); + } finally { + await adapter?.close?.(); + shutdownSimulator(config.udid); + restored = restorePrebootPreferences(config.udid, applied.snapshots); + } + const preferenceEvidence = { ...applied.evidence, restored }; + return { + bootstrap, + recovery, + preferenceEvidence, + simulator: { + finalState: readSimulatorState(config.udid), + accessibilityPlistSha256: hashFile(simulatorPreferencePaths(config.udid)[0]!), + }, + }; +} + +async function runNonresidentBootstrap( + config: SpikeConfig, +): Promise { + const samples: TargetedBootstrapSample[] = []; + for (let index = 0; index < 5; index += 1) { + await prepareIndependentBootstrap(config, index); + samples.push(await captureBootstrap(config, index + 1)); + } + return samples; +} + +async function prepareIndependentBootstrap(config: SpikeConfig, index: number): Promise { + if (index === 0) return; + shutdownSimulator(config.udid); + bootSimulator(config.udid); + await launchApp(config.udid); +} + +async function captureBootstrap( + config: SpikeConfig, + index: number, +): Promise { + const appPid = readRunningAppPids(config.udid, APP_ID)[0]; + if (appPid === undefined) throw new Error(`App ${APP_ID} has no ready process.`); + const adapter = createGuestSimulatorFrameworkBridgeAdapter(createAdapterOptions(config)); + const started = performance.now(); + const result = await adapter.acquireBatch([ + request(config, `bootstrap-${index}`, { expectedTargetGeneration: `pid:${appPid}` }), + ]); + const response = result.responses[0] ?? failedResponse(config, `bootstrap-${index}`); + const sample = { + index, + durationMs: performance.now() - started, + usableTree: usableTree(response), + response, + stderr: result.stderr, + }; + await adapter.close?.(); + return sample; +} + +async function runLiveRecovery( + config: SpikeConfig, + adapter: ReturnType, +): Promise { + const probes: TargetedRecoveryProbe[] = []; + await adapter.acquireBatch([request(config, 'recovery-prime')]); + const crash = adapter.evidence?.terminateReaderOnNextBatch; + if (crash) crash(); + probes.push( + await recoveryProbe(config, adapter, 'process-crash', request(config, 'recovery-crash')), + ); + probes.push( + await recoveryProbe( + config, + adapter, + 'timeout', + request(config, 'recovery-timeout', { + limits: { ...config.limits, maxDurationMs: 1 }, + }), + ), + ); + probes.push(await cancellationProbe(config, adapter)); + const pids = readRunningAppPids(config.udid, APP_ID); + const expectedPid = (pids[0] ?? 1) + 1; + probes.push( + await recoveryProbe( + config, + adapter, + 'stale-generation', + request(config, 'recovery-stale-generation', { + expectedTargetGeneration: `pid:${expectedPid}`, + }), + ), + ); + return probes; +} + +async function recoveryProbe( + config: SpikeConfig, + adapter: ReturnType, + operation: TargetedRecoveryProbe['operation'], + probeRequest: SpikeRequest, +): Promise { + const result = await adapter.acquireBatch([probeRequest]); + return { + operation, + request: probeRequest, + response: result.responses[0] ?? failedResponse(config, probeRequest.id), + recoveredResponse: await healthyResponse(config, adapter, `${probeRequest.id}-recovered`), + }; +} + +async function cancellationProbe( + config: SpikeConfig, + adapter: ReturnType, +): Promise { + const probeRequest = request(config, 'recovery-cancelled'); + const controller = new AbortController(); + const pending = adapter.acquireBatch([probeRequest], { signal: controller.signal }); + setTimeout(() => controller.abort(), 1); + const result = await pending; + return { + operation: 'cancelled', + request: probeRequest, + response: result.responses[0] ?? failedResponse(config, probeRequest.id), + recoveredResponse: await healthyResponse(config, adapter, 'recovery-cancelled-recovered'), + }; +} + +async function healthyResponse( + config: SpikeConfig, + adapter: ReturnType, + id: string, +): Promise { + const result = await adapter.acquireBatch([request(config, id)]); + return result.responses[0] ?? failedResponse(config, id); +} + +function request( + config: SpikeConfig, + id: string, + overrides: Partial = {}, +): SpikeRequest { + return { + version: 1, + id, + candidate: 'guest-simulator-framework-bridge', + simulatorUdid: config.udid, + state: 'warm', + screen: 'list', + limits: config.limits, + ...overrides, + }; +} + +function failedResponse(config: SpikeConfig, id: string): SpikeResponse { + return { + version: 1, + id, + candidate: 'guest-simulator-framework-bridge', + ok: false, + failure: { kind: 'transport-failure', code: 'missing-response' }, + metrics: { + requestBytes: 0, + responseBytes: 0, + nodeCount: 0, + maxTraversalDepth: 0, + cpuMs: null, + memoryBytes: null, + durationMs: 0, + }, + }; +} + +function usableTree(response: SpikeResponse): boolean { + return ( + response.ok === true && + response.acquisition !== undefined && + response.acquisition.nodes.length > 0 + ); +} + +async function launchApp(udid: string): Promise { + execFileSync('xcrun', ['simctl', 'launch', udid, APP_ID], { + encoding: 'utf8', + timeout: 60_000, + stdio: ['ignore', 'pipe', 'pipe'], + }); + const deadline = Date.now() + 30_000; + while (Date.now() < deadline) { + if (readRunningAppPids(udid, APP_ID).length === 1) return; + await new Promise((resolve) => setTimeout(resolve, 100)); + } + throw new Error(`App ${APP_ID} did not become ready on ${udid}.`); +} + +function hashFile(filePath: string): string { + return crypto.createHash('sha256').update(fs.readFileSync(filePath)).digest('hex'); +} diff --git a/scripts/ios-ax-bridge-spike/targeted-run.ts b/scripts/ios-ax-bridge-spike/targeted-run.ts new file mode 100644 index 000000000..8c8e53bc4 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/targeted-run.ts @@ -0,0 +1,60 @@ +import fs from 'node:fs'; +import path from 'node:path'; +import { gzipSync } from 'node:zlib'; +import { fileURLToPath } from 'node:url'; +import { parseConfig } from './config.ts'; +import { + buildCorrectedReport, + readSpikeReport, + readTargetedArtifact, + writeCorrectedReport, +} from './corrected-report.ts'; +import { runTargetedEvidence } from './targeted-evidence.ts'; +import { TARGETED_SCHEMA_VERSION, type TargetedRawArtifact } from './corrected-types.ts'; +import { readGitRevision, readTarget, readToolchain } from '../ios-snapshot-benchmark/host.ts'; + +const SOURCE = 'docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz'; +const TARGETED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz'; +const CORRECTED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz'; + +if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.meta.url)) { + await main(process.argv.slice(2)); +} + +async function main(argv: readonly string[]): Promise { + const config = parseConfig(argv); + const evidence = await runTargetedEvidence(config); + const target = readTarget(config.udid, 'com.callstack.agentdevicelab'); + const artifact: TargetedRawArtifact = { + schemaVersion: TARGETED_SCHEMA_VERSION, + generatedAt: new Date().toISOString(), + revision: readGitRevision(config.repoRoot), + command: + 'pnpm bench:ios-ax-bridge:targeted -- --udid --guest-companion --guest-python python3 --guest-site-packages --apply-preferences', + sourceArtifact: { path: SOURCE, revision: readSpikeReport(SOURCE).revision }, + target: { udid: target.udid, name: target.name, runtime: target.runtime }, + toolchain: readToolchain(), + guestMechanism: readSpikeReport(SOURCE).guestMechanism, + preferenceEvidence: evidence.preferenceEvidence, + config: { + states: ['warm', 'relaunch'], + screens: ['quiet', 'list', 'nested-scroll', 'alert', 'system-surface', 'xctest-stress'], + samples: 20, + bootstrapSamples: evidence.bootstrap.length, + }, + bootstrap: evidence.bootstrap, + recovery: evidence.recovery, + simulator: evidence.simulator, + }; + fs.writeFileSync(TARGETED, gzipSync(`${JSON.stringify(artifact)}\n`, { level: 9 })); + writeCorrectedReport( + CORRECTED, + buildCorrectedReport({ + sourcePath: SOURCE, + source: readSpikeReport(SOURCE), + targetedPath: TARGETED, + targeted: readTargetedArtifact(TARGETED), + }), + ); + process.stdout.write(`${CORRECTED}\n`); +} From 44990f2cf195acd11cb995f2255c79068ed988d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 3 Sep 2026 08:05:43 +0200 Subject: [PATCH 08/13] test(ios): drive the guest Simulator AX bridge directly from Node Replace the idb companion + Python reader in the #2192 spike with a Node client for idb v1.5.2's in-Simulator SimulatorFrameworkBridge: one private guest per session spawned through simctl, 4-byte length-prefixed JSON over a UNIX socket, single-fetch traversal with automation mode asserted per request, nested trees flattened to parent-linked raw nodes with XCTest type names, and typed crash/timeout/cancel/stale-generation failures. The targeted harness now observes app readiness with a throwaway probe instead of admitting on pid presence, relaunches the app per bootstrap sample, records host load per sample, and runs recovery probes through the adapter. Hard tiers follow the corrected #2192 contract (warm 300/500 ms, relaunch 500 ms); the former 75/150 ms and 250 ms values are reported as stretch findings. Preboot preference edits are optional and unused by the guest path. The prototype's targeted artifact is preserved under a -python-prototype name; its bootstrap and recovery samples measured the packaging, not the mechanism. --- ...tor-ax-bridge-2026-09-02-corrected.json.gz | Bin 6859 -> 10564 bytes ...imulator-ax-bridge-2026-09-02-corrected.md | 63 +- ...26-09-02-targeted-python-prototype.json.gz | Bin 0 -> 5436 bytes ...ator-ax-bridge-2026-09-02-targeted.json.gz | Bin 5436 -> 10943 bytes scripts/ios-ax-bridge-spike/README.md | 46 +- scripts/ios-ax-bridge-spike/adapter.test.ts | 2 +- scripts/ios-ax-bridge-spike/adapter.ts | 5 +- scripts/ios-ax-bridge-spike/config.ts | 31 +- .../ios-ax-bridge-spike/corrected-markdown.ts | 32 +- .../corrected-report.test.ts | 18 +- .../ios-ax-bridge-spike/corrected-report.ts | 80 ++- .../ios-ax-bridge-spike/corrected-types.ts | 37 +- scripts/ios-ax-bridge-spike/decision.test.ts | 3 +- scripts/ios-ax-bridge-spike/decision.ts | 78 ++- scripts/ios-ax-bridge-spike/guest-adapter.ts | 568 ++++++++++++------ scripts/ios-ax-bridge-spike/guest-reader.py | 330 ---------- .../ios-ax-bridge-spike/guest-wire.test.ts | 206 +++++++ scripts/ios-ax-bridge-spike/guest-wire.ts | 408 +++++++++++++ scripts/ios-ax-bridge-spike/limits.ts | 2 +- .../persistent-process.test.ts | 76 --- .../ios-ax-bridge-spike/persistent-process.ts | 267 -------- scripts/ios-ax-bridge-spike/report.ts | 20 +- scripts/ios-ax-bridge-spike/run.ts | 3 +- scripts/ios-ax-bridge-spike/runner.ts | 4 +- .../ios-ax-bridge-spike/targeted-evidence.ts | 285 ++++++--- scripts/ios-ax-bridge-spike/targeted-run.ts | 25 +- scripts/ios-ax-bridge-spike/types.ts | 11 +- 27 files changed, 1518 insertions(+), 1082 deletions(-) create mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz delete mode 100644 scripts/ios-ax-bridge-spike/guest-reader.py create mode 100644 scripts/ios-ax-bridge-spike/guest-wire.test.ts create mode 100644 scripts/ios-ax-bridge-spike/guest-wire.ts delete mode 100644 scripts/ios-ax-bridge-spike/persistent-process.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/persistent-process.ts diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz index 91615c3c795286e16c8ea857a9ab147a5e35aead..888c20f985757370b12943ef5f0cb39fb777ba6b 100644 GIT binary patch literal 10564 zcmd^@_d6Sm7xufit+Z95V((Sd{8D@GSfNU&B36wU@szeUtxb&Dn;Nl#v=p_eJwn9} zVx$s;%I>l?#`9}JJ*=@F=2jdGI@N5)B}reL4p2KNJh4? z8#!4ugqMNMq~v#AC@BU1dGlDVXNX0{iqENwhJpuS_c?j=Qk{p4aCtReluR9G-5c;L zs#k6tohemM>M0mdT&m>7;tu(Thk~uPCeOIt2H$4d(P>%af#)1;EYl3w5E>xirypPw zb8ju@dEFKc3{pDYBzJt9-Y;0??D+PvCb`e0-yn!tvU}=t=Cf5mj64@MI$PWCnA)Ri zHDA?X(0$-&V_4Rvu>8pB(PKVS#-jezg)dKe-g!tu`*_)prb^@A4E3nWRVH(FK1jNt zn;(1G7xa|2TevP8aadllNla3;${+|L`z=zEQks0qvUw87rk15ALLq6c&D#4_U7s7~FJm0jXVnPQ4XA*f=5P_9B-@!=B}b%FTmIy4x_Bd!|%ictD$* zJtrM$I&rIJX-L1-Z@5wMev(>PZ~)in^7u2A&AKS;$X#|0^n^=L_t>dKLR$2gv)r9H z=eIpY;sX~4v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Mn_0q2w@UrqE zUY55?$nZf+Feh>%t{SjzN)sA?on=L9G1|D1FVlFMbj0Kf*3NJH-&?1Hw#)72|B@33|Dk){c zXF92bPKWPHp&c9)P4ORT@SW{nzWtHZpSV=nkKs`YBnkPbzNy%G@YoGl#?4JXxXAb)(XC|=~ zEI5k^F+goQNroR7N-vhFIVZsKpwwgT92hxsm^&FzB#A4KK((T>W?37Qbod?=DcDfT zY>GdrNxF$-nmMGKoR3#t@PaFC9aYuT_VLN^10R17GQ+40?4-b}CSxWtVdgMqGKRug z;8j>mVVt(AvZ18I57fWn}ol`gO1s zK)X?P5-K&B9g(pyhuM)+kB>ZcDTGm~`W8z%e35$mvZ~8vw2TAYVh%0iWmE)Lq3x8x z7*tzP7nF4L117@sU3}2bn~Uo$mmRwwh!S%M6*;E@q34t&6%#H^ZKsk9|CLUqCKyIQE`)2C?g$IkH3=P2iq*Y zPtm}~nvh9n#qln2MG^uX7t4tx1X-M^h;JBwjSN4?RYafC6Rl~=j$~B^L1YHZVG!i@ ziFIH|2rIbo2T67JiId?6ZlynWl%V;=1({1v|Kq9toYVi@_LmT`>K4~@&T4y=bod?= z-ft6=q>4R%%=K?NyMO5JSKIK+fB)s?=U-m+Kl-Ov>!73jSMQ$vi{H!r-gw!O&zq+Y zH+N5~hj(3bzga)r&~J@@5zTtD`OuI8NcZ4HvQ)F}5afp_*hDf}lkV9BVnuiEzPz1t z=g+rKAHQ3#@O}f9$MCjBea97RK5k3yy8mR)OcjoAi0_`HG5_+o>w>=c_pkoib)TBs z$1ly>XRk&U?|aw1UpkC#0^Hl)JRZE?yE-FmhA^14~C-gft2?$=#VRK;h-YrnLw{`-gj M0lYCfZE&L#06M9&LI3~& diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz deleted file mode 100644 index 888c20f985757370b12943ef5f0cb39fb777ba6b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d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JK>&vuHHn_}^M{>pG<)>ORgcGt+Vxd#h7U@Sh86Q|NQI(& z#S}t#>yfD>qBGEcs&QEqi?5HZaR=Cu)_b14`5+vLQvB2Ew)bvkDo-3O?Cv16WR|ri zWXr>vZit!ET-Ti5@qpV{cA2Agnk-FRI~$7aG|Ulm-vW~U@NweygtVq;juus}n%pj= zRcDWur}yW?{cq}h`St%8pb9eh4?>s`L3h0xBRO$unjf+i=>2=552J(iThC0RgP+$z zo$L7u@m2@Qg@#U>=6<7XbfO{U1*5=vgz;8qGPkK_jyHRY3krw>e$gx!y>IiJR$VCoF%_(i5qIojE~FrsXD3&P z8dFGH#U-sNe{KP(xNwfda?}|T9NoUeugjrRh@~|N%$z7<@IUhh;v^hz{C6GT|EYTp ziZ5@}*6CYv?}ndKIHToxzDOQ{qvf}TpW*sE$1Y0fPl`{at4`t3?XI1&^!{o=ew%NW99%-@1%#A~#rvUISE?IEB6!4do~6^U zxznJ(W2q_mah;YFg?kfO-=cA6UbcdgIFf0XY3s A;Q#;t diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md index be4d21b7d..6236cffe2 100644 --- a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md +++ b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md @@ -2,15 +2,16 @@ - Decision: **GO** - Interpretation: **maintainer-corrected** -- Revision: 999920fa55098f11eb5ba1f9d39f9cb3cec208e3 (review-2237) +- Revision: 268a90275e7a30419e581336b6d85eff680a2eb6 (detached) - Target: ad-2237-axbridge (8CDB4DF1-3A3E-4FB1-AF89-B3D3A17647D5, com.apple.CoreSimulator.SimRuntime.iOS-26-2) -- Generated: 2026-09-03T06:04:19.830Z -- Immutable broad raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz` (original NO-GO; interpretation superseded to stretch-only; host client persistent-in-repository-reader) -- Superseded targeted raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz` (persistent-in-repository-reader (idb_companion + Python idb client); its bootstrap and recovery samples raced app readiness and shared one wedged companion, so they measured the prototype packaging, not the mechanism) -- Narrow targeted raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz` (host client node-direct-socket) -- Host at generation: load average 13.75 on 12 cores +- Generated: 2026-09-03T18:36:41.976Z +- Immutable evidence: tag `evidence/ios-snapshot/268a90275`, commit `fdc52f65ed679f1420f91312204f8d558a8c0061` +- Broad raw artifact: `ios-simulator-ax-bridge-broad-268a90275.json.gz` (SHA-256 `309f974b1dcb90768548a189f6af58b493b5d7b9d56a5bfad060d4335139eb7b`; original NO-GO; interpretation superseded to stretch-only; host client persistent-in-repository-reader) +- Narrow targeted raw artifact: `ios-simulator-ax-bridge-targeted-268a90275.json.gz` (SHA-256 `fa2e01dcb5e2a0229a6836f1a4187169445347dd4c0a42bcb5a29022538c70b2`; host client node-direct-socket) +- Corrected raw report: `ios-simulator-ax-bridge-corrected-268a90275.json.gz` (SHA-256 `4d70596a39153e6104e37a790622450d967f61b2244745915f39462514ba3bed`) +- Host at generation: load average 35.35 on 12 cores -The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Warm and relaunch cells come from the broad run, whose host client was the idb companion plus a Python reader; the in-Simulator reader and the read it performs are the same mechanism the Node-direct targeted evidence uses, and the host client only adds latency, so those cells bound the mechanism from above. +The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Its slower legacy host client only adds latency around the same in-Simulator reader, so its warm and relaunch cells remain conservative upper bounds for the Node-direct path. ## Evaluated guest mechanism @@ -22,9 +23,10 @@ The broad run is preserved unchanged. Its old NO-GO was caused by readiness-incl | Gate | Status | Target | Evidence | |---|---|---|---| -| warm | **PASS** | p50 <300 ms and p95 <500 ms per screen | 6/6 warm screen cells passed; quiet p50/p95=8.6 ms/9.3 ms ready=20/20; list p50/p95=118.2 ms/120.9 ms ready=20/20; nested-scroll p50/p95=15.1 ms/15.8 ms ready=20/20; alert p50/p95=41.6 ms/43.3 ms ready=20/20; system-surface p50/p95=37.2 ms/39.6 ms ready=20/20; xctest-stress p50/p95=39.6 ms/41.1 ms ready=20/20 | -| relaunch | **PASS** | p95 <500 ms per screen after observed new-generation app readiness | 6/6 relaunch screen cells passed; quiet p50/p95=8.9 ms/9.6 ms ready=20/20; list p50/p95=119.2 ms/121.1 ms ready=20/20; nested-scroll p50/p95=15.4 ms/16.5 ms ready=20/20; alert p50/p95=41.1 ms/42.7 ms ready=20/20; system-surface p50/p95=37.3 ms/39.5 ms ready=20/20; xctest-stress p50/p95=40.4 ms/42.6 ms ready=20/20 | -| nonresidentBootstrap | **PASS** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 5/5 usable trees; p95=1136.2 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1333.2 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path | +| warm | **PASS** | p50 <300 ms and p95 <500 ms per screen | 6/6 warm screen cells passed; quiet p50/p95=8.6 ms/9.3 ms ready=1/20; list p50/p95=118.2 ms/120.9 ms ready=1/20; nested-scroll p50/p95=15.1 ms/15.8 ms ready=1/20; alert p50/p95=41.6 ms/43.3 ms ready=1/20; system-surface p50/p95=37.2 ms/39.6 ms ready=1/20; xctest-stress p50/p95=39.6 ms/41.1 ms ready=1/20 | +| relaunch | **PASS** | p95 <500 ms per screen after independently observed new-generation readiness | 6/6 relaunch screen cells passed; quiet p50/p95=8.9 ms/9.6 ms ready=1/20; list p50/p95=119.2 ms/121.1 ms ready=1/20; nested-scroll p50/p95=15.4 ms/16.5 ms ready=1/20; alert p50/p95=41.1 ms/42.7 ms ready=1/20; system-surface p50/p95=37.3 ms/39.5 ms ready=1/20; xctest-stress p50/p95=40.4 ms/42.6 ms ready=1/20; targeted readiness observed for 5/5 clean relaunch samples | +| nonresidentBootstrap | **PASS** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 5/5 usable trees; p95=1134.8 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1162.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path | +| boundedResources | **PASS** | guest CPU <=2000 ms and RSS <=268435456 bytes per successful read | 9/9 successful reads measured within bounds; max CPU=220.0 ms; max RSS=84787200 bytes | | liveRecovery | **PASS** | live crash, timeout, cancellation, and honest target-generation handling | 4/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response | | hierarchy | **PASS** | structural hierarchy acquired with typed truncation, or its absence typed as residue | nested tree with traversal depth 29 in 5/5 samples; truncated=false | @@ -34,18 +36,18 @@ Warm and relaunch timing starts at the bridge acquisition after fixture/app read | State | Screen | Samples | Readable | Ready generation | Candidate p50/p95 ms | Readiness p95 ms | Old first-look p95 ms | Generations | |---|---|---:|---:|---:|---:|---:|---:|---:| -| warm | quiet | 20 | 20 | 20 | 8.6/9.3 | 0.0 | 9.3 | 1 | -| warm | list | 20 | 20 | 20 | 118.2/120.9 | 0.0 | 120.9 | 1 | -| warm | nested-scroll | 20 | 20 | 20 | 15.1/15.8 | 0.0 | 15.8 | 1 | -| warm | alert | 20 | 20 | 20 | 41.6/43.3 | 0.0 | 43.3 | 1 | -| warm | system-surface | 20 | 20 | 20 | 37.2/39.6 | 0.0 | 39.6 | 1 | -| warm | xctest-stress | 20 | 20 | 20 | 39.6/41.1 | 0.0 | 41.1 | 1 | -| relaunch | quiet | 20 | 20 | 20 | 8.9/9.6 | 4390.1 | 4399.3 | 1 | -| relaunch | list | 20 | 20 | 20 | 119.2/121.1 | 5061.4 | 5177.9 | 1 | -| relaunch | nested-scroll | 20 | 20 | 20 | 15.4/16.5 | 5078.9 | 5093.8 | 1 | -| relaunch | alert | 20 | 20 | 20 | 41.1/42.7 | 4418.9 | 4461.2 | 1 | -| relaunch | system-surface | 20 | 20 | 20 | 37.3/39.5 | 4976.2 | 5013.4 | 1 | -| relaunch | xctest-stress | 20 | 20 | 20 | 40.4/42.6 | 4463.5 | 4503.0 | 1 | +| warm | quiet | 20 | 20 | 1 | 8.6/9.3 | 0.0 | 9.3 | 1 | +| warm | list | 20 | 20 | 1 | 118.2/120.9 | 0.0 | 120.9 | 1 | +| warm | nested-scroll | 20 | 20 | 1 | 15.1/15.8 | 0.0 | 15.8 | 1 | +| warm | alert | 20 | 20 | 1 | 41.6/43.3 | 0.0 | 43.3 | 1 | +| warm | system-surface | 20 | 20 | 1 | 37.2/39.6 | 0.0 | 39.6 | 1 | +| warm | xctest-stress | 20 | 20 | 1 | 39.6/41.1 | 0.0 | 41.1 | 1 | +| relaunch | quiet | 20 | 20 | 1 | 8.9/9.6 | 4390.1 | 4399.3 | 1 | +| relaunch | list | 20 | 20 | 1 | 119.2/121.1 | 5061.4 | 5177.9 | 1 | +| relaunch | nested-scroll | 20 | 20 | 1 | 15.4/16.5 | 5078.9 | 5093.8 | 1 | +| relaunch | alert | 20 | 20 | 1 | 41.1/42.7 | 4418.9 | 4461.2 | 1 | +| relaunch | system-surface | 20 | 20 | 1 | 37.3/39.5 | 4976.2 | 5013.4 | 1 | +| relaunch | xctest-stress | 20 | 20 | 1 | 40.4/42.6 | 4463.5 | 4503.0 | 1 | ## Cold diagnostics @@ -68,16 +70,17 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are ## Nonresident bootstrap -- 5/5 usable trees; p95=1136.2 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1333.2 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path. +- 5/5 usable trees; p95=1134.8 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1162.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path. +- 9/9 successful reads measured within bounds; max CPU=220.0 ms; max RSS=84787200 bytes. - The timed boundary begins with no resident bridge and ends at the first usable guest tree. Before each timer the fixture app was relaunched and a throwaway probe bridge polled until the new generation answered with a tree (readiness), then exited. -| Sample | Duration ms | Usable tree | Failure | Nodes | Depth | Generation | Readiness ms | Readiness attempts | Host load | -|---:|---:|---|---|---:|---:|---|---:|---:|---:| -| 1 | 1080.8 | true | none/none | 155 | 29 | pid:68714 | 1333 | 1 | 11.66 | -| 2 | 1136.2 | true | none/none | 155 | 29 | pid:69066 | 1172 | 1 | 13.4 | -| 3 | 1055.3 | true | none/none | 155 | 29 | pid:69393 | 1162 | 1 | 13.34 | -| 4 | 1049.9 | true | none/none | 155 | 29 | pid:69892 | 1169 | 1 | 13.21 | -| 5 | 1043.5 | true | none/none | 155 | 29 | pid:70202 | 1101 | 1 | 13.35 | +| Sample | Duration ms | CPU ms | RSS MiB | Usable tree | Nodes | Depth | Generation | Readiness ms | Attempts | Host load | +|---:|---:|---:|---:|---|---:|---:|---|---:|---:|---:| +| 1 | 1111.5 | 220.0 | 77.6 | true | 155 | 29 | pid:13819 | 1163 | 1 | 49.73 | +| 2 | 1089.4 | 200.0 | 77.8 | true | 155 | 29 | pid:14329 | 1121 | 1 | 48.22 | +| 3 | 1134.8 | 220.0 | 77.3 | true | 155 | 29 | pid:14828 | 1152 | 1 | 46.76 | +| 4 | 1106.0 | 210.0 | 77.7 | true | 155 | 29 | pid:15747 | 1129 | 1 | 40.27 | +| 5 | 1109.7 | 220.0 | 78.0 | true | 155 | 29 | pid:16245 | 1129 | 1 | 37.2 | ## Live candidate recovery @@ -103,7 +106,7 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are - Original broad-run finding: guest-simulator-framework-bridge relaunch first look missed the 250 ms target. - Cold and cold-cold first-look measurements include Simulator, app, daemon, and runner readiness costs; they are diagnostics, not candidate-owned hard gates. - The former warm 75/150 ms and relaunch 250 ms thresholds are stretch findings under the corrected contract. -- Nonresident bootstrap samples were taken on a host with 1-minute load average 13.75 on 12 cores; per-sample load is recorded with each sample. +- Nonresident bootstrap samples were taken on a host with 1-minute load average 35.35 on 12 cores; per-sample load is recorded with each sample. ## Production boundary diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz deleted file mode 100644 index 334ceefbb76c7e71b6430d5536f743ccab156719..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 10943 zcmd_v*H;r-yDwmuE<`~@K$?fg>DMF7V}P4)cplQ#{495-q&=rdnCZ*uGXA~cHY%h-N5}oK*HUDmjayP z*ISj&59}qi*nnyR+E0Y2C&Mq!xMV2^BkeoA2@tn%A0@4CbM_=hADN%qv?~HPP*Zm) ziS8+-uYxc`EEKEfqPsGzF)|eF>(Hn_d}u>M_?MF{icM}_Ctf(_q(z|_qCw}w`zv$e zSbU((jN|L&IXNFfsF7@AA8&T^AA!Osz*@&1XTpa};WdR_{)=9f;SjAQ29A|Di2YT& zMAfun%UXlZ+*QEl^S2PUkpk)vM|ppz;uMW#L>noBUMD|Gy> zAw_|qP65IpFi3A=e~z#(qCXR4E%`nv({~~qT3NpE>ipwU_xP)vZp$pyAyW};8-CgI z+gDel5Gt84Lk`W}PENi(KDn+}9>1vZrrtAt@?Cj2hmn0Fu*_9b@~*L!_ZEJmxU93@~02n zf>=k?*g$u}0k#Zj9Mvkx3OUE}wrS??9^BjqF3L!MerlhyD!Zg2E5cK2|E(PaC-5D2 zG6;olb{5n11 zC?MPH3AcgU!c&Zj^oj|eo>U9{{r7WEmGKS8Rq(K`Q-iNPD07{osTtrSlsGp%D?IU%ZACn$ZS|{)thFp(A;40z%M-&E zb5;DO4d;WA&nsm$#D&I0hh;zBUq-P!c;}UYS?52lTYM?eyhd@%^Wf1=4Kh@UX9+f2 zJQ?7ZN$r!%h6N_LxOqfle!@Y8t_nAc?G9gk7Hu)@1x?Iel*uevgnu<*@VAL& zPyc#d`sx)hpVNDVJAc}d`V2px4vjHTI=ON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V_KOXL#@(wJyj+!Hy#)$1cS?jrNacvv!21G?Z zoe0auA@{b`)PoyfgpGbPZIwmHKQCbXK4L5xfwH|cH~71x#tm_+ zBgN_Rrtis`jIDxz&L2B@V@<~Ez!zYEIilztFjLz1hYm8mvgY`Vu}8lSF*(Zaf9Csq zwJ-i^-NS51kIK(R$3+Bc{h-R7NH?ju@qM`+ab>_)fk@>aS%h2-0s)y9Va-Qxc7EW# zwMW1hk9fCL|9Qbl>rtw#zxcvEuZ}YDx|U#tqjO@SLe-V5&;mP!HK15!g~=xC^6Oo(K+Poa&Z@k%oz9D@3&yN^s`B-KKQH|kDv>+y diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index adcee9beb..744806056 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -2,10 +2,21 @@ This narrow harness supplies the decisive live evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It drives idb v1.5.2's in-Simulator `Resources/SimulatorFrameworkBridge` directly from Node over a private UNIX socket. It does not use `idb_companion`, gRPC, or Python, and it does not change production routing. -The checked-in September 1 broad raw corpus is retained because it contains the warm and relaunch measurements. Its one-off runner and generated NO-GO reports were removed after the corrected contract made them obsolete. +The September 1 broad corpus is retained because it contains the warm and relaunch measurements. Its one-off Python runner and generated NO-GO reports were removed after the corrected contract made them obsolete. Raw artifacts are kept off-tree at immutable tag `evidence/ios-snapshot/268a90275` (commit `fdc52f65ed679f1420f91312204f8d558a8c0061`); their SHA-256 hashes are recorded in the evidence branch README. Obtain the guest executable from the official arm64 idb v1.5.2 release. The archive SHA-256 is `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; `Resources/SimulatorFrameworkBridge` is `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`. +Fetch the broad input before rerunning: + +```sh +git fetch origin refs/tags/evidence/ios-snapshot/268a90275 +git show fdc52f65ed679f1420f91312204f8d558a8c0061:ios-simulator-ax-bridge-broad-268a90275.json.gz \ + > docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz +shasum -a 256 docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz +``` + +The expected broad artifact hash is `309f974b1dcb90768548a189f6af58b493b5d7b9d56a5bfad060d4335139eb7b`. + Run the verifier from a clean commit using the dedicated Simulator with the fixture app installed: ```sh From 836d2822d19ae7276ea6a819b228daf402bbf51e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 3 Sep 2026 21:48:38 +0200 Subject: [PATCH 11/13] fix: tighten iOS bridge evidence gates --- .gitignore | 3 + scripts/ios-ax-bridge-spike/README.md | 4 +- scripts/ios-ax-bridge-spike/config.ts | 13 +- .../ios-ax-bridge-spike/corrected-markdown.ts | 14 +- .../corrected-report.test.ts | 74 +++- .../ios-ax-bridge-spike/corrected-report.ts | 134 +++++-- .../ios-ax-bridge-spike/corrected-types.ts | 23 +- scripts/ios-ax-bridge-spike/guest-adapter.ts | 334 ++---------------- .../ios-ax-bridge-spike/guest-binary.test.ts | 32 ++ scripts/ios-ax-bridge-spike/guest-binary.ts | 33 ++ .../ios-ax-bridge-spike/guest-connection.ts | 290 +++++++++++++++ .../ios-ax-bridge-spike/targeted-evidence.ts | 139 ++------ .../ios-ax-bridge-spike/targeted-readiness.ts | 71 ++++ .../ios-ax-bridge-spike/targeted-relaunch.ts | 151 ++++++++ .../ios-ax-bridge-spike/targeted-request.ts | 68 ++++ scripts/ios-ax-bridge-spike/targeted-run.ts | 19 +- scripts/ios-ax-bridge-spike/types.ts | 12 + 17 files changed, 961 insertions(+), 453 deletions(-) create mode 100644 scripts/ios-ax-bridge-spike/guest-binary.test.ts create mode 100644 scripts/ios-ax-bridge-spike/guest-binary.ts create mode 100644 scripts/ios-ax-bridge-spike/guest-connection.ts create mode 100644 scripts/ios-ax-bridge-spike/targeted-readiness.ts create mode 100644 scripts/ios-ax-bridge-spike/targeted-relaunch.ts create mode 100644 scripts/ios-ax-bridge-spike/targeted-request.ts diff --git a/.gitignore b/.gitignore index 99f444376..136ad8226 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,6 @@ android/ime-helper/dist/ # Workspace package declaration output (tsc -b project references) packages/*/dist-types/ *.tsbuildinfo + +# Reproducible AX bridge captures are published on the evidence branch. +docs/evidence/ios-simulator-ax-bridge-*.json.gz diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index 744806056..d31259e5e 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -4,7 +4,7 @@ This narrow harness supplies the decisive live evidence for [#2192](https://gith The September 1 broad corpus is retained because it contains the warm and relaunch measurements. Its one-off Python runner and generated NO-GO reports were removed after the corrected contract made them obsolete. Raw artifacts are kept off-tree at immutable tag `evidence/ios-snapshot/268a90275` (commit `fdc52f65ed679f1420f91312204f8d558a8c0061`); their SHA-256 hashes are recorded in the evidence branch README. -Obtain the guest executable from the official arm64 idb v1.5.2 release. The archive SHA-256 is `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; `Resources/SimulatorFrameworkBridge` is `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`. +Obtain the guest executable from the official arm64 idb v1.5.2 release. The archive SHA-256 is `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; `Resources/SimulatorFrameworkBridge` is `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`. The verifier hashes the supplied `--guest-bridge` before launching it and fails if it is not that binary. Fetch the broad input before rerunning: @@ -25,4 +25,4 @@ pnpm bench:ios-ax-bridge:targeted -- \ --guest-bridge /path/to/Resources/SimulatorFrameworkBridge ``` -It captures five nonresident bootstrap samples after independently observing application readiness, then exercises crash, timeout, cancellation, and stale-generation recovery. Successful reads record guest CPU time and resident memory, and the corrected report fails closed if those metrics are missing or exceed the declared bounds. +It captures five nonresident bootstrap samples after independently observing application readiness. It then captures 20 relaunches on each of the six representative screens through the Node-direct route; every timed read is paired with a separate readiness probe for the exact relaunched PID and expected screen anchor. Finally it exercises crash, timeout, cancellation, and stale-generation recovery. Successful reads record guest CPU time and resident memory, and the corrected report fails closed if those metrics are missing or exceed the declared bounds. diff --git a/scripts/ios-ax-bridge-spike/config.ts b/scripts/ios-ax-bridge-spike/config.ts index 1c0630612..4712101e8 100644 --- a/scripts/ios-ax-bridge-spike/config.ts +++ b/scripts/ios-ax-bridge-spike/config.ts @@ -1,4 +1,6 @@ +import path from 'node:path'; import { resolveRepoRoot } from '../ios-snapshot-benchmark/host.ts'; +import { createBenchmarkStateRoot } from '../ios-snapshot-benchmark/state-ownership.ts'; import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; import type { ResourceLimits } from './types.ts'; @@ -13,6 +15,8 @@ export type SpikeConfig = Readonly<{ repoRoot: string; udid: string; guestBridge: string; + stateDir: string; + derivedPath: string; limits: ResourceLimits; keepDevice: boolean; }>; @@ -24,10 +28,15 @@ export function parseConfig(argv: readonly string[]): SpikeConfig { process.exit(0); } const parsed = parseArguments(args); + const udid = required(parsed.values, '--udid'); + const guestBridge = required(parsed.values, '--guest-bridge'); + const stateDir = createBenchmarkStateRoot(); return { repoRoot: resolveRepoRoot(), - udid: required(parsed.values, '--udid'), - guestBridge: required(parsed.values, '--guest-bridge'), + udid, + guestBridge, + stateDir, + derivedPath: path.join(stateDir, 'derived-data'), limits: DEFAULT_SPIKE_LIMITS, keepDevice: parsed.keepDevice, }; diff --git a/scripts/ios-ax-bridge-spike/corrected-markdown.ts b/scripts/ios-ax-bridge-spike/corrected-markdown.ts index 5494d85ef..7ee69a14c 100644 --- a/scripts/ios-ax-bridge-spike/corrected-markdown.ts +++ b/scripts/ios-ax-bridge-spike/corrected-markdown.ts @@ -17,7 +17,7 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { '', '## Evaluated guest mechanism', '', - `- Guest reader: ${report.guestMechanism.implementation} ${report.guestMechanism.release} \`${report.guestMechanism.guestBinary}\` (SHA-256 \`${report.guestMechanism.guestBinarySha256}\`) from \`${report.guestMechanism.companionArchive}\` (SHA-256 \`${report.guestMechanism.companionSha256}\`).`, + `- Guest reader: ${report.guestMechanism.implementation} ${report.guestMechanism.release} \`${report.guestMechanism.guestBinary}\` (observed SHA-256 \`${report.guestMechanism.guestBinarySha256}\`; required SHA-256 \`${report.guestMechanism.guestBinaryExpectedSha256 ?? 'not recorded'}\`) from \`${report.guestMechanism.companionArchive}\` (SHA-256 \`${report.guestMechanism.companionSha256}\`).`, `- Transport: ${report.guestMechanism.transport}.`, `- Traversal: ${report.guestMechanism.traversal}.`, '', @@ -29,7 +29,7 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { '', '## Readiness boundary and candidate-owned latency', '', - 'Warm and relaunch timing starts at the bridge acquisition after fixture/app readiness admission. Relaunch readiness is recorded separately; the old first-look value includes Simulator, app, daemon, and runner costs.', + 'Warm and relaunch timing starts at bridge acquisition after fixture/app readiness admission. Every relaunch row comes from the Node-direct route and is paired with a separate probe that observed the exact relaunched process generation and expected screen anchor. The old first-look value includes Simulator, app, daemon, and runner costs.', '', '| State | Screen | Samples | Readable | Ready generation | Candidate p50/p95 ms | Readiness p95 ms | Old first-look p95 ms | Generations |', '|---|---|---:|---:|---:|---:|---:|---:|---:|', @@ -66,6 +66,16 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { `- ${report.hardGates.hierarchy.evidence}.`, `- Observed traversal depth: ${report.hierarchy.observedTraversalDepth}; depth complete: **${report.hierarchy.depthComplete}**; interpretation: ${report.hierarchy.interpretation}.`, '', + '## Simulator preference control', + '', + `- ${report.hardGates.preferenceControl.evidence}.`, + '- The broad capture applied its accessibility preference changes only to the disposable benchmark Simulator before boot, verified fixture launch compatibility, and restored the prior preference files and Simulator state afterward.', + '', + '## Private-interface compatibility risk', + '', + `- ${report.compatibilityRisk.assessment}`, + `- Control: ${report.compatibilityRisk.control}`, + '', '## Stretch findings', '', ...report.stretchFindings.map((finding) => `- ${finding}`), diff --git a/scripts/ios-ax-bridge-spike/corrected-report.test.ts b/scripts/ios-ax-bridge-spike/corrected-report.test.ts index 080faacc0..b38291dff 100644 --- a/scripts/ios-ax-bridge-spike/corrected-report.test.ts +++ b/scripts/ios-ax-bridge-spike/corrected-report.test.ts @@ -12,6 +12,7 @@ const mechanism = { companionArchive: 'idb-companion.macos-arm64.tar.gz', companionSha256: 'archive', guestBinary: 'Resources/SimulatorFrameworkBridge', + guestBinaryExpectedSha256: 'guest', guestBinarySha256: 'guest', transport: 'socket', traversal: 'tree', @@ -29,7 +30,11 @@ describe('corrected Simulator AX bridge report', () => { targeted, }); - expect(report.readiness.every((cell) => cell.readinessObservedSamples === 1)).toBe(true); + expect( + report.readiness.every( + (cell) => cell.readinessObservedSamples === (cell.state === 'warm' ? 1 : 2), + ), + ).toBe(true); expect(report.hardGates.relaunch.status).toBe('PASS'); expect(report.hardGates.boundedResources.status).toBe('PASS'); expect(report.hardGates.liveRecovery.status).toBe('PASS'); @@ -63,6 +68,42 @@ describe('corrected Simulator AX bridge report', () => { expect(report.hardGates.boundedResources.status).toBe('FAIL'); expect(report.decision).toBe('NO-GO'); }); + + test('fails relaunch when a timed read is not paired to its expected generation', () => { + const targeted = targetedArtifact(); + const first = targeted.relaunch[0]!; + const report = buildCorrectedReport({ + sourcePath: 'broad.json.gz', + source: broadReport(), + targetedPath: 'targeted.json.gz', + targeted: { + ...targeted, + relaunch: [ + { + ...first, + response: successfulResponse('pid:999'), + }, + ...targeted.relaunch.slice(1), + ], + }, + }); + + expect(report.hardGates.relaunch.status).toBe('FAIL'); + expect(report.decision).toBe('NO-GO'); + }); + + test('fails relaunch when the configured corpus is incomplete', () => { + const targeted = targetedArtifact(); + const report = buildCorrectedReport({ + sourcePath: 'broad.json.gz', + source: broadReport(), + targetedPath: 'targeted.json.gz', + targeted: { ...targeted, relaunch: targeted.relaunch.slice(1) }, + }); + + expect(report.hardGates.relaunch.status).toBe('FAIL'); + expect(report.hardGates.relaunch.evidence).toContain('1/2 Node-direct samples'); + }); }); function broadReport(): SpikeReport { @@ -96,6 +137,20 @@ function broadReport(): SpikeReport { })), })), decisionReasons: [], + preferenceEvidence: { + applied: true, + restored: true, + fixtureLaunchCompatible: true, + simulatorStateBefore: 'Shutdown', + diffs: [ + { + changes: [ + { key: 'AutomationEnabled', before: 0, after: true }, + { key: 'IgnoreAXServerEntitlements', after: true }, + ], + }, + ], + }, }; } @@ -126,8 +181,22 @@ function targetedArtifact(): TargetedRawArtifact { }, recoveredResponse: successfulResponse('pid:104'), })); + const relaunch = Array.from({ length: 2 }, (_, offset) => { + const appPid = 200 + offset; + return { + index: offset + 1, + screen: 'list' as const, + expectedAnchor: 'Item 20', + appPid, + readinessMs: 40, + readinessAttempts: 1, + durationMs: 80, + response: successfulResponse(`pid:${appPid}`), + stderr: '', + }; + }); return { - schemaVersion: 'ios-simulator-ax-bridge-targeted.v2', + schemaVersion: 'ios-simulator-ax-bridge-targeted.v3', generatedAt: '2026-09-03T00:00:00.000Z', revision, command: 'targeted', @@ -146,6 +215,7 @@ function targetedArtifact(): TargetedRawArtifact { limits: DEFAULT_SPIKE_LIMITS, config: { states: ['warm', 'relaunch'], screens: ['list'], samples: 2, bootstrapSamples: 5 }, bootstrap, + relaunch, recovery, }; } diff --git a/scripts/ios-ax-bridge-spike/corrected-report.ts b/scripts/ios-ax-bridge-spike/corrected-report.ts index fcfd6c696..561e8f204 100644 --- a/scripts/ios-ax-bridge-spike/corrected-report.ts +++ b/scripts/ios-ax-bridge-spike/corrected-report.ts @@ -24,13 +24,14 @@ export function buildCorrectedReport(options: { targetedPath: string; targeted: TargetedRawArtifact; }): CorrectedReport { - const readiness = options.source.cells - .filter( - (cell) => - cell.candidate === 'guest-simulator-framework-bridge' && - (cell.state === 'warm' || cell.state === 'relaunch'), - ) - .map(summarizeLatency); + const readiness = [ + ...options.source.cells + .filter( + (cell) => cell.candidate === 'guest-simulator-framework-bridge' && cell.state === 'warm', + ) + .map(summarizeLatency), + ...summarizeTargetedRelaunch(options.targeted), + ]; const coldDiagnostics = options.source.cells .filter( (cell) => @@ -40,16 +41,17 @@ export function buildCorrectedReport(options: { .map(summarizeColdDiagnostic); const hierarchy = hierarchyEvidence(options.targeted); const hardGates = { - warm: latencyGate(readiness, 'warm', 'p50 <300 ms and p95 <500 ms per screen'), + warm: latencyGate(readiness, 'warm', 'p50 <300 ms and p95 <500 ms per screen', false), relaunch: relaunchGate(readiness, options.targeted), nonresidentBootstrap: bootstrapGate(options.targeted), boundedResources: resourceGate(options.targeted), liveRecovery: recoveryGate(options.targeted), hierarchy: hierarchy.gate, + preferenceControl: preferenceGate(options.source), } as const; const failedGates = Object.entries(hardGates).filter(([, gate]) => gate.status === 'FAIL'); return { - schemaVersion: 'ios-simulator-ax-bridge-corrected.v2', + schemaVersion: 'ios-simulator-ax-bridge-corrected.v3', interpretation: 'maintainer-corrected', generatedAt: new Date().toISOString(), revision: options.targeted.revision, @@ -84,6 +86,13 @@ export function buildCorrectedReport(options: { liveRecovery: options.targeted.recovery, bootstrap: options.targeted.bootstrap, hierarchy: hierarchy.value, + compatibilityRisk: { + interface: 'private-idb-simulator-guest', + assessment: + 'SimulatorFrameworkBridge and its accessibility wire protocol are private idb/Apple implementation details with no compatibility guarantee.', + control: + 'Pin the official idb release and observed guest SHA-256, keep this route Simulator-only behind the acquisition adapter, and re-run this verifier for every idb, Xcode, or Simulator runtime change before production adoption.', + }, productionBoundary: 'no-production-routing-changes', }; } @@ -150,13 +159,54 @@ function summarizeColdDiagnostic(cell: SpikeCell): CorrectedReport['coldDiagnost }; } +function summarizeTargetedRelaunch(targeted: TargetedRawArtifact): LatencySummary[] { + return targeted.config.screens.map((screen) => { + const samples = targeted.relaunch.filter((sample) => sample.screen === screen); + const readable = samples.filter( + (sample) => + sample.response.ok && + sample.response.acquisition !== undefined && + sample.response.acquisition.nodes.length > 0 && + sample.response.acquisition.targetGeneration === `pid:${sample.appPid}`, + ); + const observedGenerations = readable.flatMap((sample) => + observedGeneration(sample.response.acquisition?.targetGeneration), + ); + return { + state: 'relaunch', + screen, + samples: samples.length, + readableSamples: readable.length, + readinessObservedSamples: readable.filter((sample) => sample.readinessAttempts > 0).length, + generationCount: new Set(observedGenerations).size, + candidateP50Ms: optionalPercentile( + readable.map((sample) => sample.durationMs), + 50, + ), + candidateP95Ms: optionalPercentile( + readable.map((sample) => sample.durationMs), + 95, + ), + preparationP95Ms: optionalPercentile( + readable.map((sample) => sample.readinessMs), + 95, + ), + firstLookP95Ms: optionalPercentile( + readable.map((sample) => sample.readinessMs + sample.durationMs), + 95, + ), + }; + }); +} + function latencyGate( readiness: readonly LatencySummary[], state: 'warm' | 'relaunch', target: string, + requireReadiness: boolean, ): GateResult { const cells = readiness.filter((summary) => summary.state === state); - const passed = cells.filter(latencyPassed); + const passed = cells.filter((summary) => latencyPassed(summary, requireReadiness)); return { status: cells.length > 0 && passed.length === cells.length ? 'PASS' : 'FAIL', target, @@ -168,21 +218,63 @@ function relaunchGate( readiness: readonly LatencySummary[], targeted: TargetedRawArtifact, ): GateResult { - const latency = latencyGate(readiness, 'relaunch', 'p95 <500 ms per representative screen'); - const observedReadiness = targeted.bootstrap.filter( - (sample) => - sample.readinessAttempts > 0 && - sample.response.acquisition?.targetGeneration === `pid:${sample.appPid}`, + const latency = latencyGate( + readiness, + 'relaunch', + 'p95 <500 ms per representative screen with every read paired to its expected generation', + true, ); - const readinessPassed = - targeted.bootstrap.length === 5 && observedReadiness.length === targeted.bootstrap.length; + const complete = readiness + .filter((summary) => summary.state === 'relaunch') + .every((summary) => summary.samples === targeted.config.samples); + const expectedSampleCount = targeted.config.screens.length * targeted.config.samples; + const representativeScreens = new Set(targeted.relaunch.map((sample) => sample.screen)); + const corpusComplete = + targeted.relaunch.length === expectedSampleCount && + targeted.config.screens.every((screen) => representativeScreens.has(screen)); return { - status: latency.status === 'PASS' && readinessPassed ? 'PASS' : 'FAIL', + status: latency.status === 'PASS' && complete && corpusComplete ? 'PASS' : 'FAIL', target: 'p95 <500 ms per screen after independently observed new-generation readiness', - evidence: `${latency.evidence}; targeted readiness observed for ${observedReadiness.length}/${targeted.bootstrap.length} clean relaunch samples`, + evidence: `${latency.evidence}; ${targeted.relaunch.length}/${expectedSampleCount} Node-direct samples across ${representativeScreens.size}/${targeted.config.screens.length} screens`, + }; +} + +function preferenceGate(source: SpikeReport): GateResult { + const evidence = source.preferenceEvidence ?? missingPreferenceEvidence(); + const changes = evidence.diffs.flatMap((diff) => diff.changes); + const required = ['AutomationEnabled', 'IgnoreAXServerEntitlements']; + const applied = required.filter((key) => hasEnabledPreference(changes, key)); + const passed = [evidence.applied, evidence.restored, applied.length === required.length].every( + Boolean, + ); + return { + status: gateStatus(passed), + target: 'task-owned Simulator accessibility preferences applied preboot and restored', + evidence: `applied=${String(evidence.applied)}; restored=${String(evidence.restored)}; enabled keys=${applied.join(', ')}; fixture launch compatible=${String(evidence.fixtureLaunchCompatible)}`, }; } +function missingPreferenceEvidence(): NonNullable { + return { + applied: false, + restored: false, + fixtureLaunchCompatible: null, + simulatorStateBefore: 'unknown', + diffs: [], + }; +} + +function gateStatus(passed: boolean): GateResult['status'] { + return passed ? 'PASS' : 'FAIL'; +} + +function hasEnabledPreference( + changes: NonNullable['diffs'][number]['changes'], + key: string, +): boolean { + return changes.some((change) => change.key === key && change.after === true); +} + function bootstrapGate(targeted: TargetedRawArtifact): GateResult { const usable = targeted.bootstrap.filter((sample) => sample.usableTree); const p95 = optionalPercentile( @@ -224,6 +316,7 @@ function recoveryGate(targeted: TargetedRawArtifact): GateResult { function resourceGate(targeted: TargetedRawArtifact): GateResult { const responses = [ ...targeted.bootstrap.map((sample) => sample.response), + ...targeted.relaunch.map((sample) => sample.response), ...targeted.recovery.map((probe) => probe.recoveredResponse), ].filter((response) => response.ok); const measured = responses.filter( @@ -338,9 +431,10 @@ function observedGeneration(value: string | null | undefined): readonly string[] return typeof value === 'string' ? [value] : []; } -function latencyPassed(summary: LatencySummary): boolean { +function latencyPassed(summary: LatencySummary, requireReadiness: boolean): boolean { return [ summary.readableSamples === summary.samples, + !requireReadiness || summary.readinessObservedSamples === summary.samples, summary.candidateP50Ms !== null, summary.candidateP50Ms !== null && summary.candidateP50Ms < 300, summary.candidateP95Ms !== null, diff --git a/scripts/ios-ax-bridge-spike/corrected-types.ts b/scripts/ios-ax-bridge-spike/corrected-types.ts index 164e4ed8d..8c7bb6c32 100644 --- a/scripts/ios-ax-bridge-spike/corrected-types.ts +++ b/scripts/ios-ax-bridge-spike/corrected-types.ts @@ -6,8 +6,8 @@ import type { SpikeResponse, } from './types.ts'; -const CORRECTED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-corrected.v2' as const; -export const TARGETED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-targeted.v2' as const; +const CORRECTED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-corrected.v3' as const; +export const TARGETED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-targeted.v3' as const; export type TargetedRevision = SpikeReport['revision']; @@ -34,6 +34,18 @@ export type TargetedRecoveryProbe = Readonly<{ recoveredResponse: SpikeResponse; }>; +export type TargetedRelaunchSample = Readonly<{ + index: number; + screen: SpikeCell['screen']; + expectedAnchor: string; + appPid: number; + readinessMs: number; + readinessAttempts: number; + durationMs: number; + response: SpikeResponse; + stderr: string; +}>; + export type TargetedRawArtifact = Readonly<{ schemaVersion: typeof TARGETED_SCHEMA_VERSION; generatedAt: string; @@ -56,6 +68,7 @@ export type TargetedRawArtifact = Readonly<{ bootstrapSamples: number; }>; bootstrap: readonly TargetedBootstrapSample[]; + relaunch: readonly TargetedRelaunchSample[]; recovery: readonly TargetedRecoveryProbe[]; }>; @@ -103,6 +116,7 @@ export type CorrectedReport = Readonly<{ boundedResources: GateResult; liveRecovery: GateResult; hierarchy: GateResult; + preferenceControl: GateResult; }>; coldDiagnostics: readonly Readonly<{ state: 'cold-cold' | 'cold'; @@ -121,5 +135,10 @@ export type CorrectedReport = Readonly<{ depthComplete: boolean; interpretation: 'nested-tree' | 'flat-provider-response' | 'not-observed'; }>; + compatibilityRisk: Readonly<{ + interface: 'private-idb-simulator-guest'; + assessment: string; + control: string; + }>; productionBoundary: 'no-production-routing-changes'; }>; diff --git a/scripts/ios-ax-bridge-spike/guest-adapter.ts b/scripts/ios-ax-bridge-spike/guest-adapter.ts index f55bb575c..b5da0ec2c 100644 --- a/scripts/ios-ax-bridge-spike/guest-adapter.ts +++ b/scripts/ios-ax-bridge-spike/guest-adapter.ts @@ -1,53 +1,24 @@ import fs from 'node:fs'; -import net from 'node:net'; -import os from 'node:os'; -import path from 'node:path'; -import { spawn, spawnSync, type ChildProcess } from 'node:child_process'; import { performance } from 'node:perf_hooks'; -import { DEFAULT_SPIKE_LIMITS, validateRawAcquisition } from './limits.ts'; -import { failureResponse } from './protocol.ts'; -import { processUsageDelta, readGuestProcessSample } from './guest-process-metrics.ts'; +import { GuestConnection, GuestConnectionError, processAlive } from './guest-connection.ts'; +import { processUsageDelta } from './guest-process-metrics.ts'; import { acquisitionFromEnvelope, encodeGuestFrame, failureFromEnvelope, - GuestFrameDecoder, guestDescribeRequest, GuestWireError, isTargetNotReady, type GuestEnvelope, } from './guest-wire.ts'; +import { DEFAULT_SPIKE_LIMITS, validateRawAcquisition } from './limits.ts'; +import { failureResponse } from './protocol.ts'; import type { AcquisitionAdapter, AdapterOptions } from './adapter.ts'; -import type { - GuestMechanismEvidence, - ResourceLimits, - SpikeFailure, - SpikeRequest, - SpikeResponse, -} from './types.ts'; +import type { ResourceLimits, SpikeFailure, SpikeRequest, SpikeResponse } from './types.ts'; const CANDIDATE = 'guest-simulator-framework-bridge' as const; - -/** Idle window after which an orphaned guest ends itself; the host never relies on it for teardown. */ -const GUEST_IDLE_TIMEOUT_SECONDS = 300; -/** Bounded wait for a target whose accessibility server is still registering (fresh launch). */ const TARGET_NOT_READY_RETRY_MS = 150; const TARGET_NOT_READY_RETRIES = 2; -const CONNECT_POLL_MS = 15; - -export const GUEST_MECHANISM_EVIDENCE: GuestMechanismEvidence = { - implementation: 'idb', - release: 'v1.5.2', - companionArchive: 'idb-companion.macos-arm64.tar.gz', - companionSha256: 'f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08', - guestBinary: 'Resources/SimulatorFrameworkBridge', - guestBinarySha256: '3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58', - transport: - 'xcrun simctl spawn SimulatorFrameworkBridge accessibility serve --idle-timeout 300 --exit-on-disconnect true; UNIX socket frames are a 4-byte big-endian length + JSON', - traversal: - 'describe with snapshotTree=true (one XCTest snapshot fetch per read) and automationMode=true asserted per request; no idb_companion, gRPC, or Python client', - client: 'node-direct-socket', -}; export function createGuestSimulatorFrameworkBridgeAdapter( options: AdapterOptions, @@ -81,49 +52,15 @@ function unavailableAdapter(code: string): AcquisitionAdapter { }; } -class GuestError extends Error { - readonly kind: SpikeFailure['kind']; - readonly code: string; - - constructor(kind: SpikeFailure['kind'], code: string) { - super(`${kind}/${code}`); - this.name = 'GuestError'; - this.kind = kind; - this.code = code; - } -} - -type Pending = Readonly<{ - resolve: (frame: Buffer) => void; - reject: (error: GuestError) => void; -}>; - -/** - * One guest `accessibility serve` process per session, spawned into the Simulator's launchd domain - * through `simctl spawn`, reached over a private UNIX socket, and held for the session. The guest is - * private to this host (`--exit-on-disconnect`), so dropping the socket is the whole teardown; the - * next request respawns. - */ class GuestSession { - private readonly socketPath = path.join( - socketDirectory(), - `${process.pid.toString(36)}-${Math.random().toString(36).slice(2, 8)}.sock`, - ); - private child?: ChildProcess; - private socket?: net.Socket; - private decoder = new GuestFrameDecoder(); - private pending?: Pending; - private udid?: string; - private log = ''; + private readonly connection: GuestConnection; + private readonly limits: ResourceLimits; private closed = false; - private killNext = false; private serial: Promise = Promise.resolve(); - private readonly bridgePath: string; - private readonly limits: ResourceLimits; constructor(bridgePath: string, limits: ResourceLimits) { - this.bridgePath = bridgePath; this.limits = limits; + this.connection = new GuestConnection(bridgePath, limits.maxResponseBytes); } acquireBatch( @@ -137,13 +74,11 @@ class GuestSession { async close(): Promise { this.closed = true; - this.dropConnection(new GuestError('cancelled', 'process-closed')); - await this.reapChild(); - fs.rmSync(this.socketPath, { force: true }); + await this.connection.close(); } killGuestOnNextRequestForEvidence(): void { - this.killNext = true; + this.connection.killOnNextRequest(); } private async execute( @@ -152,12 +87,10 @@ class GuestSession { ): Promise<{ responses: readonly SpikeResponse[]; stderr: string }> { const responses: SpikeResponse[] = []; for (const request of requests) { - // Each request carries its own bounds; the deadline is the request's duration budget, so a - // caller can shorten one read (the timeout probe) without reshaping the session. const deadline = performance.now() + request.limits.maxDurationMs; responses.push(await this.acquire(request, deadline, signal)); } - return { responses, stderr: this.takeLog() }; + return { responses, stderr: this.connection.takeLog() }; } private async acquire( @@ -188,11 +121,14 @@ class GuestSession { signal: AbortSignal | undefined, ): Promise { assertRequestActive(signal, this.closed); - const wasConnected = this.socket !== undefined && !this.socket.destroyed; - await this.ensureConnected(request.simulatorUdid, deadline, signal); - const before = wasConnected ? readGuestProcessSample(this.socketPath) : undefined; + const wasConnected = await this.connection.ensureConnected( + request.simulatorUdid, + deadline, + signal, + ); + const before = wasConnected ? this.connection.processSample() : undefined; const { envelope, responseBytes } = await this.readWithReadinessRetry(frame, deadline, signal); - const resources = processUsageDelta(before, readGuestProcessSample(this.socketPath)); + const resources = processUsageDelta(before, this.connection.processSample()); return this.responseFor(request, envelope, { requestBytes: frame.length, responseBytes, @@ -207,12 +143,12 @@ class GuestSession { deadline: number, signal: AbortSignal | undefined, ): Promise<{ envelope: GuestEnvelope; responseBytes: number }> { - let attempt = await this.roundTrip(frame, deadline, signal); + let attempt = await this.connection.roundTrip(frame, deadline, signal); for (let retry = 0; retry < TARGET_NOT_READY_RETRIES; retry += 1) { if (attempt.envelope.ok === true || !isTargetNotReady(attempt.envelope)) break; if (performance.now() + TARGET_NOT_READY_RETRY_MS * 2 > deadline) break; await sleep(TARGET_NOT_READY_RETRY_MS); - attempt = await this.roundTrip(frame, deadline, signal); + attempt = await this.connection.roundTrip(frame, deadline, signal); } return attempt; } @@ -256,235 +192,17 @@ class GuestSession { }, }; } - - private async ensureConnected( - udid: string, - deadline: number, - signal: AbortSignal | undefined, - ): Promise { - if (this.socket && !this.socket.destroyed) { - if (this.udid !== udid) throw new GuestError('transport-failure', 'guest-udid-changed'); - return; - } - this.udid = udid; - this.spawnGuest(udid); - this.socket = await this.connect(deadline, signal); - this.decoder = new GuestFrameDecoder(this.limits.maxResponseBytes); - const socket = this.socket; - socket.on('data', (chunk: Buffer) => this.consume(chunk)); - socket.on('close', () => { - if (this.socket === socket) this.socket = undefined; - this.failPending(new GuestError('process-crash', 'guest-exited')); - }); - socket.on('error', () => { - this.failPending(new GuestError('transport-failure', 'guest-socket-error')); - }); - } - - private spawnGuest(udid: string): void { - fs.rmSync(this.socketPath, { force: true }); - const child = spawn( - 'xcrun', - [ - 'simctl', - 'spawn', - udid, - this.bridgePath, - 'accessibility', - 'serve', - this.socketPath, - '--idle-timeout', - String(GUEST_IDLE_TIMEOUT_SECONDS), - '--exit-on-disconnect', - 'true', - ], - { stdio: ['ignore', 'pipe', 'pipe'] }, - ); - child.stdout?.on('data', (chunk: Buffer) => this.appendLog(chunk)); - child.stderr?.on('data', (chunk: Buffer) => this.appendLog(chunk)); - child.on('error', (error) => this.appendLog(Buffer.from(`${error.message}\n`))); - child.on('exit', () => { - if (this.child === child) this.child = undefined; - }); - this.child = child; - } - - private connect(deadline: number, signal: AbortSignal | undefined): Promise { - return new Promise((resolve, reject) => { - const attempt = (): void => { - if (signal?.aborted) { - this.reapChild(); - reject(new GuestError('cancelled', 'abort-signal')); - return; - } - if (performance.now() > deadline) { - this.reapChild(); - reject(new GuestError('timeout', 'guest-connect-timeout')); - return; - } - if (!this.child) { - reject(new GuestError('transport-failure', 'guest-exited-before-ready')); - return; - } - const socket = net.createConnection(this.socketPath); - socket.once('connect', () => { - socket.removeAllListeners('error'); - resolve(socket); - }); - socket.once('error', () => { - socket.destroy(); - setTimeout(attempt, CONNECT_POLL_MS); - }); - }; - attempt(); - }); - } - - private roundTrip( - frame: Buffer, - deadline: number, - signal: AbortSignal | undefined, - ): Promise<{ envelope: GuestEnvelope; responseBytes: number }> { - return new Promise((resolve, reject) => { - const socket = this.socket; - if (!socket) { - reject(new GuestError('transport-failure', 'guest-not-connected')); - return; - } - const timer = setTimeout( - () => this.dropConnection(new GuestError('timeout', 'batch-duration-limit')), - Math.max(0, deadline - performance.now()), - ); - const onAbort = (): void => this.dropConnection(new GuestError('cancelled', 'abort-signal')); - signal?.addEventListener('abort', onAbort, { once: true }); - const settle = (): void => { - clearTimeout(timer); - signal?.removeEventListener('abort', onAbort); - }; - this.pending = { - resolve: (body) => { - settle(); - try { - resolve({ - envelope: JSON.parse(body.toString('utf8')) as GuestEnvelope, - responseBytes: body.length + 4, - }); - } catch { - reject(new GuestError('malformed-tree', 'invalid-json')); - } - }, - reject: (error) => { - settle(); - reject(error); - }, - }; - socket.write(frame); - if (this.killNext) { - this.killNext = false; - killGuestProcesses(this.socketPath); - } - }); - } - - private consume(chunk: Buffer): void { - let frames: Buffer[]; - try { - frames = this.decoder.push(chunk); - } catch (error) { - const wire = error instanceof GuestWireError ? error : undefined; - this.dropConnection( - new GuestError(wire?.kind ?? 'malformed-tree', wire?.code ?? 'frame-limit-exceeded'), - ); - return; - } - for (const frame of frames) { - const pending = this.pending; - this.pending = undefined; - if (pending) pending.resolve(frame); - } - } - - private failPending(error: GuestError): void { - const pending = this.pending; - this.pending = undefined; - pending?.reject(error); - } - - private dropConnection(error: GuestError): void { - this.failPending(error); - const socket = this.socket; - this.socket = undefined; - socket?.destroy(); - killGuestProcesses(this.socketPath); - } - - private async reapChild(): Promise { - const child = this.child; - if (!child || child.exitCode !== null) return; - const exited = new Promise((resolve) => child.once('exit', () => resolve())); - child.kill('SIGTERM'); - await Promise.race([exited, sleep(1_000)]); - if (child.exitCode === null) child.kill('SIGKILL'); - } - - private appendLog(chunk: Buffer): void { - if (this.log.length >= 64 * 1024) return; - this.log += chunk.toString('utf8').slice(0, 64 * 1024 - this.log.length); - } - - private takeLog(): string { - const log = this.log; - this.log = ''; - return log; - } -} - -/** A private, owner-only directory beneath the per-user temporary directory keeps `sun_path` short. */ -function socketDirectory(): string { - const directory = path.join(os.tmpdir(), 'agent-device-ax'); - fs.mkdirSync(directory, { recursive: true, mode: 0o700 }); - fs.chmodSync(directory, 0o700); - if (directory.length + 24 >= 104) { - throw new Error(`Socket directory path is too long for a UNIX socket: ${directory}`); - } - return directory; -} - -/** The guest is parented to launchd_sim, not to this process; it is addressed by its socket argv. */ -function killGuestProcesses(socketPath: string): void { - const found = spawnSync('pgrep', ['-f', `accessibility serve ${socketPath}`], { - encoding: 'utf8', - }); - for (const line of (found.stdout ?? '').split('\n')) { - const pid = Number(line.trim()); - if (Number.isSafeInteger(pid) && pid > 0) { - try { - process.kill(pid, 'SIGKILL'); - } catch { - // already gone - } - } - } -} - -function processAlive(pid: number): boolean { - try { - process.kill(pid, 0); - return true; - } catch { - return false; - } } -function asGuestError(error: unknown): GuestError { - if (error instanceof GuestError) return error; - if (error instanceof GuestWireError) return new GuestError(error.kind, error.code); - return new GuestError('transport-failure', 'guest-unexpected-error'); +function asGuestError(error: unknown): GuestConnectionError { + if (error instanceof GuestConnectionError) return error; + if (error instanceof GuestWireError) return new GuestConnectionError(error.kind, error.code); + return new GuestConnectionError('transport-failure', 'guest-unexpected-error'); } function assertRequestActive(signal: AbortSignal | undefined, closed: boolean): void { - if (signal?.aborted) throw new GuestError('cancelled', 'abort-signal'); - if (closed) throw new GuestError('transport-failure', 'guest-adapter-closed'); + if (signal?.aborted) throw new GuestConnectionError('cancelled', 'abort-signal'); + if (closed) throw new GuestConnectionError('transport-failure', 'guest-adapter-closed'); } function failedGuestRequest( diff --git a/scripts/ios-ax-bridge-spike/guest-binary.test.ts b/scripts/ios-ax-bridge-spike/guest-binary.test.ts new file mode 100644 index 000000000..74982e99a --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-binary.test.ts @@ -0,0 +1,32 @@ +import fs from 'node:fs'; +import os from 'node:os'; +import path from 'node:path'; +import { describe, expect, test } from 'vitest'; +import { + EXPECTED_GUEST_BINARY_SHA256, + readVerifiedGuestMechanism, + sha256File, +} from './guest-binary.ts'; + +describe('guest binary provenance', () => { + test('hashes the supplied file bytes', () => { + const file = temporaryFile('verified bytes'); + expect(sha256File(file)).toBe( + '186287b2d987891f027b4bc8baaf621a3e5a4a73ec78e04b0f65dc309b1ccc03', + ); + }); + + test('rejects a supplied binary that is not the pinned idb guest', () => { + const file = temporaryFile('arbitrary bridge'); + expect(() => readVerifiedGuestMechanism(file)).toThrow( + `expected ${EXPECTED_GUEST_BINARY_SHA256}`, + ); + }); +}); + +function temporaryFile(contents: string): string { + const directory = fs.mkdtempSync(path.join(os.tmpdir(), 'guest-binary-test-')); + const file = path.join(directory, 'SimulatorFrameworkBridge'); + fs.writeFileSync(file, contents); + return file; +} diff --git a/scripts/ios-ax-bridge-spike/guest-binary.ts b/scripts/ios-ax-bridge-spike/guest-binary.ts new file mode 100644 index 000000000..6a53b22ce --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-binary.ts @@ -0,0 +1,33 @@ +import crypto from 'node:crypto'; +import fs from 'node:fs'; +import type { GuestMechanismEvidence } from './types.ts'; + +export const EXPECTED_GUEST_BINARY_SHA256 = + '3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58'; + +export function readVerifiedGuestMechanism(guestBridge: string): GuestMechanismEvidence { + const observed = sha256File(guestBridge); + if (observed !== EXPECTED_GUEST_BINARY_SHA256) { + throw new Error( + `Guest bridge SHA-256 mismatch: expected ${EXPECTED_GUEST_BINARY_SHA256}, observed ${observed}.`, + ); + } + return { + implementation: 'idb', + release: 'v1.5.2', + companionArchive: 'idb-companion.macos-arm64.tar.gz', + companionSha256: 'f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08', + guestBinary: 'Resources/SimulatorFrameworkBridge', + guestBinaryExpectedSha256: EXPECTED_GUEST_BINARY_SHA256, + guestBinarySha256: observed, + transport: + 'xcrun simctl spawn SimulatorFrameworkBridge accessibility serve --idle-timeout 300 --exit-on-disconnect true; UNIX socket frames are a 4-byte big-endian length + JSON', + traversal: + 'describe with snapshotTree=true (one XCTest snapshot fetch per read) and automationMode=true asserted per request; no idb_companion, gRPC, or Python client', + client: 'node-direct-socket', + }; +} + +export function sha256File(filePath: string): string { + return crypto.createHash('sha256').update(fs.readFileSync(filePath)).digest('hex'); +} diff --git a/scripts/ios-ax-bridge-spike/guest-connection.ts b/scripts/ios-ax-bridge-spike/guest-connection.ts new file mode 100644 index 000000000..f9af137c6 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-connection.ts @@ -0,0 +1,290 @@ +import fs from 'node:fs'; +import net from 'node:net'; +import os from 'node:os'; +import path from 'node:path'; +import { spawn, spawnSync, type ChildProcess } from 'node:child_process'; +import { performance } from 'node:perf_hooks'; +import { readGuestProcessSample, type GuestProcessSample } from './guest-process-metrics.ts'; +import { GuestFrameDecoder, GuestWireError, type GuestEnvelope } from './guest-wire.ts'; +import type { SpikeFailure } from './types.ts'; + +const GUEST_IDLE_TIMEOUT_SECONDS = 300; +const CONNECT_POLL_MS = 15; + +type Pending = Readonly<{ + resolve: (frame: Buffer) => void; + reject: (error: GuestConnectionError) => void; +}>; + +export class GuestConnectionError extends Error { + readonly kind: SpikeFailure['kind']; + readonly code: string; + + constructor(kind: SpikeFailure['kind'], code: string) { + super(`${kind}/${code}`); + this.name = 'GuestConnectionError'; + this.kind = kind; + this.code = code; + } +} + +export class GuestConnection { + private readonly bridgePath: string; + private readonly maxResponseBytes: number; + private readonly socketPath = path.join( + socketDirectory(), + `${process.pid.toString(36)}-${Math.random().toString(36).slice(2, 8)}.sock`, + ); + private child?: ChildProcess; + private socket?: net.Socket; + private decoder: GuestFrameDecoder; + private pending?: Pending; + private udid?: string; + private log = ''; + private killNext = false; + + constructor(bridgePath: string, maxResponseBytes: number) { + this.bridgePath = bridgePath; + this.maxResponseBytes = maxResponseBytes; + this.decoder = new GuestFrameDecoder(maxResponseBytes); + } + + async ensureConnected( + udid: string, + deadline: number, + signal: AbortSignal | undefined, + ): Promise { + if (this.socket && !this.socket.destroyed) { + if (this.udid !== udid) { + throw new GuestConnectionError('transport-failure', 'guest-udid-changed'); + } + return true; + } + this.udid = udid; + this.spawnGuest(udid); + this.socket = await this.connect(deadline, signal); + this.decoder = new GuestFrameDecoder(this.maxResponseBytes); + const socket = this.socket; + socket.on('data', (chunk: Buffer) => this.consume(chunk)); + socket.on('close', () => { + if (this.socket === socket) this.socket = undefined; + this.failPending(new GuestConnectionError('process-crash', 'guest-exited')); + }); + socket.on('error', () => { + this.failPending(new GuestConnectionError('transport-failure', 'guest-socket-error')); + }); + return false; + } + + processSample(): GuestProcessSample | undefined { + return readGuestProcessSample(this.socketPath); + } + + roundTrip( + frame: Buffer, + deadline: number, + signal: AbortSignal | undefined, + ): Promise<{ envelope: GuestEnvelope; responseBytes: number }> { + return new Promise((resolve, reject) => { + const socket = this.socket; + if (!socket) { + reject(new GuestConnectionError('transport-failure', 'guest-not-connected')); + return; + } + const timer = setTimeout( + () => this.drop(new GuestConnectionError('timeout', 'batch-duration-limit')), + Math.max(0, deadline - performance.now()), + ); + const onAbort = (): void => this.drop(new GuestConnectionError('cancelled', 'abort-signal')); + signal?.addEventListener('abort', onAbort, { once: true }); + const settle = (): void => { + clearTimeout(timer); + signal?.removeEventListener('abort', onAbort); + }; + this.pending = { + resolve: (body) => { + settle(); + try { + resolve({ + envelope: JSON.parse(body.toString('utf8')) as GuestEnvelope, + responseBytes: body.length + 4, + }); + } catch { + reject(new GuestConnectionError('malformed-tree', 'invalid-json')); + } + }, + reject: (error) => { + settle(); + reject(error); + }, + }; + socket.write(frame); + if (this.killNext) { + this.killNext = false; + killGuestProcesses(this.socketPath); + } + }); + } + + killOnNextRequest(): void { + this.killNext = true; + } + + takeLog(): string { + const log = this.log; + this.log = ''; + return log; + } + + async close(): Promise { + this.drop(new GuestConnectionError('cancelled', 'process-closed')); + await this.reapChild(); + fs.rmSync(this.socketPath, { force: true }); + } + + private spawnGuest(udid: string): void { + fs.rmSync(this.socketPath, { force: true }); + const child = spawn( + 'xcrun', + [ + 'simctl', + 'spawn', + udid, + this.bridgePath, + 'accessibility', + 'serve', + this.socketPath, + '--idle-timeout', + String(GUEST_IDLE_TIMEOUT_SECONDS), + '--exit-on-disconnect', + 'true', + ], + { stdio: ['ignore', 'pipe', 'pipe'] }, + ); + child.stdout?.on('data', (chunk: Buffer) => this.appendLog(chunk)); + child.stderr?.on('data', (chunk: Buffer) => this.appendLog(chunk)); + child.on('error', (error) => this.appendLog(Buffer.from(`${error.message}\n`))); + child.on('exit', () => { + if (this.child === child) this.child = undefined; + }); + this.child = child; + } + + private connect(deadline: number, signal: AbortSignal | undefined): Promise { + return new Promise((resolve, reject) => { + const attempt = (): void => { + if (signal?.aborted) { + void this.reapChild(); + reject(new GuestConnectionError('cancelled', 'abort-signal')); + return; + } + if (performance.now() > deadline) { + void this.reapChild(); + reject(new GuestConnectionError('timeout', 'guest-connect-timeout')); + return; + } + if (!this.child) { + reject(new GuestConnectionError('transport-failure', 'guest-exited-before-ready')); + return; + } + const socket = net.createConnection(this.socketPath); + socket.once('connect', () => { + socket.removeAllListeners('error'); + resolve(socket); + }); + socket.once('error', () => { + socket.destroy(); + setTimeout(attempt, CONNECT_POLL_MS); + }); + }; + attempt(); + }); + } + + private consume(chunk: Buffer): void { + let frames: Buffer[]; + try { + frames = this.decoder.push(chunk); + } catch (error) { + const wire = error instanceof GuestWireError ? error : undefined; + this.drop( + new GuestConnectionError( + wire?.kind ?? 'malformed-tree', + wire?.code ?? 'frame-limit-exceeded', + ), + ); + return; + } + for (const frame of frames) { + const pending = this.pending; + this.pending = undefined; + pending?.resolve(frame); + } + } + + private failPending(error: GuestConnectionError): void { + const pending = this.pending; + this.pending = undefined; + pending?.reject(error); + } + + private drop(error: GuestConnectionError): void { + this.failPending(error); + const socket = this.socket; + this.socket = undefined; + socket?.destroy(); + killGuestProcesses(this.socketPath); + } + + private async reapChild(): Promise { + const child = this.child; + if (!child || child.exitCode !== null) return; + const exited = new Promise((resolve) => child.once('exit', () => resolve())); + child.kill('SIGTERM'); + await Promise.race([exited, sleep(1_000)]); + if (child.exitCode === null) child.kill('SIGKILL'); + } + + private appendLog(chunk: Buffer): void { + if (this.log.length >= 64 * 1024) return; + this.log += chunk.toString('utf8').slice(0, 64 * 1024 - this.log.length); + } +} + +export function processAlive(pid: number): boolean { + try { + process.kill(pid, 0); + return true; + } catch { + return false; + } +} + +function socketDirectory(): string { + const directory = path.join(os.tmpdir(), 'agent-device-ax'); + fs.mkdirSync(directory, { recursive: true, mode: 0o700 }); + fs.chmodSync(directory, 0o700); + if (directory.length + 24 >= 104) { + throw new Error(`Socket directory path is too long for a UNIX socket: ${directory}`); + } + return directory; +} + +function killGuestProcesses(socketPath: string): void { + const found = spawnSync('pgrep', ['-f', `accessibility serve ${socketPath}`], { + encoding: 'utf8', + }); + for (const line of (found.stdout ?? '').split('\n')) { + const pid = Number(line.trim()); + if (!Number.isSafeInteger(pid) || pid <= 0) continue; + try { + process.kill(pid, 'SIGKILL'); + } catch { + // already gone + } + } +} + +function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); +} diff --git a/scripts/ios-ax-bridge-spike/targeted-evidence.ts b/scripts/ios-ax-bridge-spike/targeted-evidence.ts index a31e3a15f..2d98c3c51 100644 --- a/scripts/ios-ax-bridge-spike/targeted-evidence.ts +++ b/scripts/ios-ax-bridge-spike/targeted-evidence.ts @@ -3,6 +3,14 @@ import os from 'node:os'; import { performance } from 'node:perf_hooks'; import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; import type { SpikeConfig } from './config.ts'; +import { runTargetedRelaunch } from './targeted-relaunch.ts'; +import { awaitAppReadiness } from './targeted-readiness.ts'; +import { + adapterOptions, + missingResponse, + targetedRequest, + usableTree, +} from './targeted-request.ts'; import { bootSimulator, readRunningAppPids, @@ -13,20 +21,18 @@ import type { SpikeRequest, SpikeResponse } from './types.ts'; import type { HostLoad, TargetedBootstrapSample, + TargetedRelaunchSample, TargetedRecoveryProbe, } from './corrected-types.ts'; const APP_ID = 'com.callstack.agentdevicelab'; const BOOTSTRAP_SAMPLES = 5; -const READINESS_POLL_MS = 200; -const READINESS_DEADLINE_MS = 90_000; -/** Fixture-owned time: the readiness probe may wait for a slow host without shaping the timed sample. */ -const READINESS_PROBE_REQUEST_MS = 60_000; type GuestAdapter = ReturnType; export type TargetedRunResult = Readonly<{ bootstrap: readonly TargetedBootstrapSample[]; + relaunch: readonly TargetedRelaunchSample[]; recovery: readonly TargetedRecoveryProbe[]; host: HostLoad; }>; @@ -45,6 +51,7 @@ export async function runTargetedEvidence(config: SpikeConfig): Promise { const appPid = await relaunchApp(config.udid); - const readiness = await awaitAppReadiness(config, appPid); + const readiness = await awaitAppReadiness(config, appPid, 'list'); await assertNoResidentGuest(); const adapter = createGuestSimulatorFrameworkBridgeAdapter(adapterOptions(config)); const started = performance.now(); const result = await adapter.acquireBatch([ - request(config, `bootstrap-${index}`, { + targetedRequest(config, `bootstrap-${index}`, { expectedTargetGeneration: `pid:${appPid}`, }), ]); const durationMs = performance.now() - started; await adapter.close?.(); - const response = result.responses[0] ?? failedResponse(`bootstrap-${index}`); + const response = result.responses[0] ?? missingResponse(`bootstrap-${index}`); return { index, durationMs, @@ -93,53 +100,6 @@ async function captureBootstrap( }; } -/** Polls a throwaway bridge until the new app generation answers with a tree, then tears it down. */ -async function awaitAppReadiness( - config: SpikeConfig, - appPid: number, -): Promise<{ readinessMs: number; attempts: number }> { - const probeLimits = { ...config.limits, maxDurationMs: READINESS_PROBE_REQUEST_MS }; - const probe = createGuestSimulatorFrameworkBridgeAdapter({ - ...adapterOptions(config), - limits: probeLimits, - }); - const started = performance.now(); - let attempts = 0; - try { - for (;;) { - assertInsideReadinessDeadline(started, appPid); - attempts += 1; - if (await probeReadiness(config, probe, probeLimits, appPid, attempts)) { - return { readinessMs: performance.now() - started, attempts }; - } - await sleep(READINESS_POLL_MS); - } - } finally { - await probe.close?.(); - } -} - -async function probeReadiness( - config: SpikeConfig, - probe: GuestAdapter, - limits: SpikeConfig['limits'], - appPid: number, - attempts: number, -): Promise { - const result = await probe.acquireBatch([ - request(config, `readiness-${appPid}-${attempts}`, { - expectedTargetGeneration: `pid:${appPid}`, - limits, - }), - ]); - return usableTree(result.responses[0] ?? failedResponse('readiness')); -} - -function assertInsideReadinessDeadline(started: number, appPid: number): void { - if (performance.now() - started < READINESS_DEADLINE_MS) return; - throw new Error(`App ${APP_ID} (pid ${appPid}) did not expose a readable tree in time.`); -} - /** A killed guest can linger for a moment while launchd_sim reaps it; wait briefly, then fail closed. */ async function assertNoResidentGuest(): Promise { const deadline = Date.now() + 5_000; @@ -171,17 +131,22 @@ async function runLiveRecovery( const adapter = createGuestSimulatorFrameworkBridgeAdapter(adapterOptions(config)); try { const probes: TargetedRecoveryProbe[] = []; - await adapter.acquireBatch([request(config, 'recovery-prime')]); + await adapter.acquireBatch([targetedRequest(config, 'recovery-prime')]); adapter.evidence?.terminateReaderOnNextBatch?.(); probes.push( - await recoveryProbe(config, adapter, 'process-crash', request(config, 'recovery-crash')), + await recoveryProbe( + config, + adapter, + 'process-crash', + targetedRequest(config, 'recovery-crash'), + ), ); probes.push( await recoveryProbe( config, adapter, 'timeout', - request(config, 'recovery-timeout', { + targetedRequest(config, 'recovery-timeout', { limits: { ...config.limits, maxDurationMs: 1 }, }), ), @@ -192,7 +157,7 @@ async function runLiveRecovery( config, adapter, 'stale-generation', - request(config, 'recovery-stale-generation', { + targetedRequest(config, 'recovery-stale-generation', { expectedTargetGeneration: `pid:${deadGeneration(bootstrap)}`, }), ), @@ -220,7 +185,7 @@ async function recoveryProbe( return { operation, request: probeRequest, - response: result.responses[0] ?? failedResponse(probeRequest.id), + response: result.responses[0] ?? missingResponse(probeRequest.id), recoveredResponse: await healthyResponse(config, adapter, `${probeRequest.id}-recovered`), }; } @@ -229,7 +194,7 @@ async function cancellationProbe( config: SpikeConfig, adapter: GuestAdapter, ): Promise { - const probeRequest = request(config, 'recovery-cancelled'); + const probeRequest = targetedRequest(config, 'recovery-cancelled'); const controller = new AbortController(); const pending = adapter.acquireBatch([probeRequest], { signal: controller.signal, @@ -239,7 +204,7 @@ async function cancellationProbe( return { operation: 'cancelled', request: probeRequest, - response: result.responses[0] ?? failedResponse(probeRequest.id), + response: result.responses[0] ?? missingResponse(probeRequest.id), recoveredResponse: await healthyResponse(config, adapter, 'recovery-cancelled-recovered'), }; } @@ -249,52 +214,8 @@ async function healthyResponse( adapter: GuestAdapter, id: string, ): Promise { - const result = await adapter.acquireBatch([request(config, id)]); - return result.responses[0] ?? failedResponse(id); -} - -function request( - config: SpikeConfig, - id: string, - overrides: Partial = {}, -): SpikeRequest { - return { - version: 1, - id, - candidate: 'guest-simulator-framework-bridge', - simulatorUdid: config.udid, - state: 'warm', - screen: 'list', - limits: config.limits, - ...overrides, - }; -} - -function failedResponse(id: string): SpikeResponse { - return { - version: 1, - id, - candidate: 'guest-simulator-framework-bridge', - ok: false, - failure: { kind: 'transport-failure', code: 'missing-response' }, - metrics: { - requestBytes: 0, - responseBytes: 0, - nodeCount: 0, - maxTraversalDepth: 0, - cpuMs: null, - memoryBytes: null, - durationMs: 0, - }, - }; -} - -function usableTree(response: SpikeResponse): boolean { - return ( - response.ok === true && - response.acquisition !== undefined && - response.acquisition.nodes.length > 0 - ); + const result = await adapter.acquireBatch([targetedRequest(config, id)]); + return result.responses[0] ?? missingResponse(id); } /** A fresh app generation: terminate, launch, and wait for exactly one running pid. */ @@ -314,10 +235,6 @@ async function relaunchApp(udid: string): Promise { throw new Error(`App ${APP_ID} did not start on ${udid}.`); } -function adapterOptions(config: SpikeConfig) { - return { guestBridge: config.guestBridge, limits: config.limits }; -} - function hostLoad(): HostLoad { return { loadAverage1m: Number(os.loadavg()[0]?.toFixed(2)), diff --git a/scripts/ios-ax-bridge-spike/targeted-readiness.ts b/scripts/ios-ax-bridge-spike/targeted-readiness.ts new file mode 100644 index 000000000..832566400 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/targeted-readiness.ts @@ -0,0 +1,71 @@ +import { performance } from 'node:perf_hooks'; +import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; +import { + adapterOptions, + missingResponse, + targetedRequest, + usableTree, +} from './targeted-request.ts'; +import type { SpikeConfig } from './config.ts'; +import type { ScreenId } from '../ios-snapshot-benchmark/types.ts'; + +const READINESS_POLL_MS = 200; +const READINESS_DEADLINE_MS = 90_000; +const READINESS_PROBE_REQUEST_MS = 60_000; + +export async function awaitAppReadiness( + config: SpikeConfig, + appPid: number, + screen: ScreenId, + expectedAnchor?: string, +): Promise<{ readinessMs: number; attempts: number }> { + const limits = { ...config.limits, maxDurationMs: READINESS_PROBE_REQUEST_MS }; + const probe = createGuestSimulatorFrameworkBridgeAdapter({ + ...adapterOptions(config), + limits, + }); + const started = performance.now(); + let attempts = 0; + try { + for (;;) { + assertReadinessDeadline(started, appPid, screen); + attempts += 1; + if (await probeReady(config, probe, limits, appPid, screen, expectedAnchor, attempts)) { + return { readinessMs: performance.now() - started, attempts }; + } + await sleep(READINESS_POLL_MS); + } + } finally { + await probe.close?.(); + } +} + +async function probeReady( + config: SpikeConfig, + probe: ReturnType, + limits: SpikeConfig['limits'], + appPid: number, + screen: ScreenId, + expectedAnchor: string | undefined, + attempt: number, +): Promise { + const id = `readiness-${screen}-${appPid}-${attempt}`; + const result = await probe.acquireBatch([ + targetedRequest(config, id, { + state: 'relaunch', + screen, + expectedTargetGeneration: `pid:${appPid}`, + limits, + }), + ]); + return usableTree(result.responses[0] ?? missingResponse(id), `pid:${appPid}`, expectedAnchor); +} + +function assertReadinessDeadline(started: number, appPid: number, screen: ScreenId): void { + if (performance.now() - started < READINESS_DEADLINE_MS) return; + throw new Error(`App generation pid:${appPid} did not expose ${screen} in time.`); +} + +function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); +} diff --git a/scripts/ios-ax-bridge-spike/targeted-relaunch.ts b/scripts/ios-ax-bridge-spike/targeted-relaunch.ts new file mode 100644 index 000000000..db8317d71 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/targeted-relaunch.ts @@ -0,0 +1,151 @@ +import path from 'node:path'; +import { performance } from 'node:perf_hooks'; +import { + openFixture, + pressFixtureTarget, + scrollFixtureSetup, + snapshotFixture, + type CliContext, +} from '../ios-snapshot-benchmark/command.ts'; +import { screenFixture } from '../ios-snapshot-benchmark/definitions.ts'; +import { + fixtureOperationFromCli, + prepareFixture, + requireFixtureOperationSuccess, +} from '../ios-snapshot-benchmark/fixture-admission.ts'; +import { readRunningAppPids, stopDaemon } from '../ios-snapshot-benchmark/lifecycle.ts'; +import { closeSession } from '../ios-snapshot-benchmark/local-runner.ts'; +import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; +import { awaitAppReadiness } from './targeted-readiness.ts'; +import { adapterOptions, missingResponse, targetedRequest } from './targeted-request.ts'; +import type { SpikeConfig } from './config.ts'; +import type { TargetedRelaunchSample } from './corrected-types.ts'; +import type { ScreenFixture, ScreenId } from '../ios-snapshot-benchmark/types.ts'; + +const RELAUNCH_SAMPLES = 20; +const SCREENS: readonly ScreenId[] = [ + 'quiet', + 'list', + 'nested-scroll', + 'alert', + 'system-surface', + 'xctest-stress', +]; + +export async function runTargetedRelaunch( + config: SpikeConfig, +): Promise { + const samples: TargetedRelaunchSample[] = []; + for (const screen of SCREENS) { + samples.push(...(await runScreen(config, screen))); + } + return samples; +} + +async function runScreen( + config: SpikeConfig, + screen: ScreenId, +): Promise { + const fixture = screenFixture(screen); + const expectedAnchor = fixture.postSetupAnchorText ?? fixture.anchorText; + const context = contextFor(config, screen); + const adapter = createGuestSimulatorFrameworkBridgeAdapter(adapterOptions(config)); + const samples: TargetedRelaunchSample[] = []; + let previousPid: number | undefined; + try { + for (let index = 1; index <= RELAUNCH_SAMPLES; index += 1) { + await prepareRelaunch(context, fixture, screen); + const appPid = exactAppPid(config.udid, fixture.app); + assertNewPid(previousPid, appPid, screen); + previousPid = appPid; + samples.push(await captureRelaunch(config, adapter, screen, expectedAnchor, appPid, index)); + } + return samples; + } finally { + await adapter.close?.(); + closeSession(context); + stopDaemon(config.repoRoot, config.stateDir); + } +} + +async function prepareRelaunch( + context: CliContext, + fixture: ScreenFixture, + screen: ScreenId, +): Promise { + const opened = openFixture(context, fixture, { relaunch: true }); + requireFixtureOperationSuccess( + fixtureOperationFromCli(opened, `relaunch ${screen} setup`), + `relaunch ${screen} setup`, + 'cell-state', + ); + await prepareFixture(fixture, { + observe: () => fixtureOperationFromCli(snapshotFixture(context), 'fixture snapshot'), + scrollToBottom: () => + fixtureOperationFromCli(scrollFixtureSetup(context), 'fixture scroll bottom'), + openAlert: () => + fixtureOperationFromCli( + pressFixtureTarget(context, 'id="automation-open-alert"'), + 'fixture open alert', + ), + }); +} + +async function captureRelaunch( + config: SpikeConfig, + adapter: ReturnType, + screen: ScreenId, + expectedAnchor: string, + appPid: number, + index: number, +): Promise { + const readiness = await awaitAppReadiness(config, appPid, screen, expectedAnchor); + const id = `relaunch-${screen}-${index}`; + const started = performance.now(); + const result = await adapter.acquireBatch([ + targetedRequest(config, id, { + state: 'relaunch', + screen, + expectedTargetGeneration: `pid:${appPid}`, + }), + ]); + return { + index, + screen, + expectedAnchor, + appPid, + readinessMs: readiness.readinessMs, + readinessAttempts: readiness.attempts, + durationMs: performance.now() - started, + response: result.responses[0] ?? missingResponse(id), + stderr: result.stderr, + }; +} + +function assertNewPid(previousPid: number | undefined, appPid: number, screen: ScreenId): void { + if (previousPid !== appPid) return; + throw new Error(`Relaunch ${screen} reused app pid ${appPid}.`); +} + +function exactAppPid(udid: string, appId: string): number { + const pids = readRunningAppPids(udid, appId); + if (pids.length !== 1) { + throw new Error( + `Expected one ${appId} process on ${udid}, observed ${pids.join(', ') || 'none'}.`, + ); + } + return pids[0]!; +} + +function contextFor(config: SpikeConfig, screen: ScreenId): CliContext { + return { + repoRoot: config.repoRoot, + stateDir: config.stateDir, + session: `ax-bridge-relaunch-${screen}`, + udid: config.udid, + derivedPath: path.join(config.derivedPath, screen), + }; +} + +export const TARGETED_RELAUNCH_SCREENS = SCREENS; +export const TARGETED_RELAUNCH_SAMPLES = RELAUNCH_SAMPLES; diff --git a/scripts/ios-ax-bridge-spike/targeted-request.ts b/scripts/ios-ax-bridge-spike/targeted-request.ts new file mode 100644 index 000000000..e0c0c8d7f --- /dev/null +++ b/scripts/ios-ax-bridge-spike/targeted-request.ts @@ -0,0 +1,68 @@ +import type { SpikeConfig } from './config.ts'; +import type { SpikeRequest, SpikeResponse } from './types.ts'; + +export function targetedRequest( + config: SpikeConfig, + id: string, + overrides: Partial = {}, +): SpikeRequest { + return { + version: 1, + id, + candidate: 'guest-simulator-framework-bridge', + simulatorUdid: config.udid, + state: 'warm', + screen: 'list', + limits: config.limits, + ...overrides, + }; +} + +export function missingResponse(id: string): SpikeResponse { + return { + version: 1, + id, + candidate: 'guest-simulator-framework-bridge', + ok: false, + failure: { kind: 'transport-failure', code: 'missing-response' }, + metrics: { + requestBytes: 0, + responseBytes: 0, + nodeCount: 0, + maxTraversalDepth: 0, + cpuMs: null, + memoryBytes: null, + durationMs: 0, + }, + }; +} + +export function usableTree( + response: SpikeResponse, + expectedGeneration?: string, + expectedAnchor?: string, +): boolean { + const acquisition = response.acquisition; + if (!response.ok) return false; + if (!acquisition || acquisition.nodes.length === 0) return false; + return [ + matchesOptional(expectedGeneration, acquisition.targetGeneration), + containsOptionalAnchor(expectedAnchor, acquisition.nodes), + ].every(Boolean); +} + +export function adapterOptions(config: SpikeConfig) { + return { guestBridge: config.guestBridge, limits: config.limits }; +} + +function matchesOptional(expected: string | undefined, observed: string | null): boolean { + return expected === undefined || expected === observed; +} + +function containsOptionalAnchor( + expected: string | undefined, + nodes: NonNullable['nodes'], +): boolean { + if (expected === undefined) return true; + return nodes.some((node) => node.label === expected || node.value === expected); +} diff --git a/scripts/ios-ax-bridge-spike/targeted-run.ts b/scripts/ios-ax-bridge-spike/targeted-run.ts index 6ffae26e7..3a44abc16 100644 --- a/scripts/ios-ax-bridge-spike/targeted-run.ts +++ b/scripts/ios-ax-bridge-spike/targeted-run.ts @@ -9,8 +9,9 @@ import { readTargetedArtifact, writeCorrectedReport, } from './corrected-report.ts'; -import { GUEST_MECHANISM_EVIDENCE } from './guest-adapter.ts'; +import { readVerifiedGuestMechanism } from './guest-binary.ts'; import { runTargetedEvidence } from './targeted-evidence.ts'; +import { TARGETED_RELAUNCH_SAMPLES, TARGETED_RELAUNCH_SCREENS } from './targeted-relaunch.ts'; import { TARGETED_SCHEMA_VERSION, type TargetedRawArtifact } from './corrected-types.ts'; import { readGitRevision, readTarget, readToolchain } from '../ios-snapshot-benchmark/host.ts'; @@ -24,10 +25,19 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me async function main(argv: readonly string[]): Promise { const config = parseConfig(argv); + try { + await capture(config); + } finally { + fs.rmSync(config.stateDir, { recursive: true, force: true }); + } +} + +async function capture(config: ReturnType): Promise { const revision = readGitRevision(config.repoRoot); if (revision.dirty) { throw new Error('Targeted bridge evidence must be captured from a clean Git revision.'); } + const guestMechanism = readVerifiedGuestMechanism(config.guestBridge); const source = readSpikeReport(SOURCE); const evidence = await runTargetedEvidence(config); const target = readTarget(config.udid, 'com.callstack.agentdevicelab'); @@ -45,15 +55,16 @@ async function main(argv: readonly string[]): Promise { target: { udid: target.udid, name: target.name, runtime: target.runtime }, toolchain: readToolchain(), host: evidence.host, - guestMechanism: GUEST_MECHANISM_EVIDENCE, + guestMechanism, limits: config.limits, config: { states: ['warm', 'relaunch'], - screens: ['quiet', 'list', 'nested-scroll', 'alert', 'system-surface', 'xctest-stress'], - samples: 20, + screens: TARGETED_RELAUNCH_SCREENS, + samples: TARGETED_RELAUNCH_SAMPLES, bootstrapSamples: evidence.bootstrap.length, }, bootstrap: evidence.bootstrap, + relaunch: evidence.relaunch, recovery: evidence.recovery, }; fs.writeFileSync(TARGETED, gzipSync(`${JSON.stringify(artifact)}\n`, { level: 9 })); diff --git a/scripts/ios-ax-bridge-spike/types.ts b/scripts/ios-ax-bridge-spike/types.ts index c601117a7..826b99f72 100644 --- a/scripts/ios-ax-bridge-spike/types.ts +++ b/scripts/ios-ax-bridge-spike/types.ts @@ -121,12 +121,23 @@ export type GuestMechanismEvidence = Readonly<{ companionArchive: 'idb-companion.macos-arm64.tar.gz'; companionSha256: string; guestBinary: 'Resources/SimulatorFrameworkBridge'; + guestBinaryExpectedSha256?: string; guestBinarySha256: string; transport: string; traversal: string; client: 'node-direct-socket'; }>; +export type PreferenceEvidence = Readonly<{ + applied: boolean; + restored: boolean; + fixtureLaunchCompatible: boolean | null; + simulatorStateBefore: string; + diffs: readonly Readonly<{ + changes: readonly Readonly<{ key: string; before?: unknown; after?: unknown }>[]; + }>[]; +}>; + export type SpikeReport = Readonly<{ revision: Revision; guestMechanism: GuestMechanismEvidence; @@ -134,4 +145,5 @@ export type SpikeReport = Readonly<{ toolchain: Toolchain; cells: readonly SpikeCell[]; decisionReasons: readonly string[]; + preferenceEvidence?: PreferenceEvidence; }>; From 44995806ea3be09f3c48ceac50ac3cab18462c35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 3 Sep 2026 22:21:30 +0200 Subject: [PATCH 12/13] docs: publish corrected bridge evidence --- ...imulator-ax-bridge-2026-09-02-corrected.md | 72 +++++++++++-------- scripts/ios-ax-bridge-spike/README.md | 6 +- .../ios-ax-bridge-spike/corrected-markdown.ts | 2 +- 3 files changed, 45 insertions(+), 35 deletions(-) diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md index 6236cffe2..7e9a69e1e 100644 --- a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md +++ b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md @@ -2,20 +2,19 @@ - Decision: **GO** - Interpretation: **maintainer-corrected** -- Revision: 268a90275e7a30419e581336b6d85eff680a2eb6 (detached) +- Revision: 636b1deac98ab88cc8e0e1ed894b5719d8a6c83f (detached) - Target: ad-2237-axbridge (8CDB4DF1-3A3E-4FB1-AF89-B3D3A17647D5, com.apple.CoreSimulator.SimRuntime.iOS-26-2) -- Generated: 2026-09-03T18:36:41.976Z -- Immutable evidence: tag `evidence/ios-snapshot/268a90275`, commit `fdc52f65ed679f1420f91312204f8d558a8c0061` -- Broad raw artifact: `ios-simulator-ax-bridge-broad-268a90275.json.gz` (SHA-256 `309f974b1dcb90768548a189f6af58b493b5d7b9d56a5bfad060d4335139eb7b`; original NO-GO; interpretation superseded to stretch-only; host client persistent-in-repository-reader) -- Narrow targeted raw artifact: `ios-simulator-ax-bridge-targeted-268a90275.json.gz` (SHA-256 `fa2e01dcb5e2a0229a6836f1a4187169445347dd4c0a42bcb5a29022538c70b2`; host client node-direct-socket) -- Corrected raw report: `ios-simulator-ax-bridge-corrected-268a90275.json.gz` (SHA-256 `4d70596a39153e6104e37a790622450d967f61b2244745915f39462514ba3bed`) -- Host at generation: load average 35.35 on 12 cores +- Generated: 2026-09-03T20:18:48.756Z +- Immutable broad raw artifact: `evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-broad-268a90275.json.gz` (SHA-256 `309f974b1dcb90768548a189f6af58b493b5d7b9d56a5bfad060d4335139eb7b`; original NO-GO; interpretation superseded to stretch-only; host client persistent-in-repository-reader) +- Narrow targeted raw artifact: `evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-targeted-636b1deac.json.gz` (SHA-256 `092d3deab3753c1b7a0d230d9e54f703e5fedb87ffc0974f082541ba9b4e687d`; host client node-direct-socket) +- Corrected raw report: `evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-corrected-636b1deac.json.gz` (SHA-256 `a20039b38d4da65fed65518a3214153afa0174faaf6fb38c3950a3bd1362870d`) +- Host at generation: load average 6.13 on 12 cores -The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Its slower legacy host client only adds latency around the same in-Simulator reader, so its warm and relaunch cells remain conservative upper bounds for the Node-direct path. +The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. The broad warm cells remain conservative upper bounds around the same in-Simulator reader. Relaunch uses the new Node-direct corpus below and does not rely on the legacy relaunch samples. ## Evaluated guest mechanism -- Guest reader: idb v1.5.2 `Resources/SimulatorFrameworkBridge` (SHA-256 `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`) from `idb-companion.macos-arm64.tar.gz` (SHA-256 `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`). +- Guest reader: idb v1.5.2 `Resources/SimulatorFrameworkBridge` (observed SHA-256 `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`; required SHA-256 `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`) from `idb-companion.macos-arm64.tar.gz` (SHA-256 `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`). - Transport: xcrun simctl spawn SimulatorFrameworkBridge accessibility serve --idle-timeout 300 --exit-on-disconnect true; UNIX socket frames are a 4-byte big-endian length + JSON. - Traversal: describe with snapshotTree=true (one XCTest snapshot fetch per read) and automationMode=true asserted per request; no idb_companion, gRPC, or Python client. @@ -24,15 +23,16 @@ The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclus | Gate | Status | Target | Evidence | |---|---|---|---| | warm | **PASS** | p50 <300 ms and p95 <500 ms per screen | 6/6 warm screen cells passed; quiet p50/p95=8.6 ms/9.3 ms ready=1/20; list p50/p95=118.2 ms/120.9 ms ready=1/20; nested-scroll p50/p95=15.1 ms/15.8 ms ready=1/20; alert p50/p95=41.6 ms/43.3 ms ready=1/20; system-surface p50/p95=37.2 ms/39.6 ms ready=1/20; xctest-stress p50/p95=39.6 ms/41.1 ms ready=1/20 | -| relaunch | **PASS** | p95 <500 ms per screen after independently observed new-generation readiness | 6/6 relaunch screen cells passed; quiet p50/p95=8.9 ms/9.6 ms ready=1/20; list p50/p95=119.2 ms/121.1 ms ready=1/20; nested-scroll p50/p95=15.4 ms/16.5 ms ready=1/20; alert p50/p95=41.1 ms/42.7 ms ready=1/20; system-surface p50/p95=37.3 ms/39.5 ms ready=1/20; xctest-stress p50/p95=40.4 ms/42.6 ms ready=1/20; targeted readiness observed for 5/5 clean relaunch samples | -| nonresidentBootstrap | **PASS** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 5/5 usable trees; p95=1134.8 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1162.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path | -| boundedResources | **PASS** | guest CPU <=2000 ms and RSS <=268435456 bytes per successful read | 9/9 successful reads measured within bounds; max CPU=220.0 ms; max RSS=84787200 bytes | +| relaunch | **PASS** | p95 <500 ms per screen after independently observed new-generation readiness | 6/6 relaunch screen cells passed; quiet p50/p95=77.1 ms/84.8 ms ready=20/20; list p50/p95=191.4 ms/198.7 ms ready=20/20; nested-scroll p50/p95=85.8 ms/91.1 ms ready=20/20; alert p50/p95=111.4 ms/130.4 ms ready=20/20; system-surface p50/p95=106.0 ms/118.1 ms ready=20/20; xctest-stress p50/p95=117.2 ms/131.7 ms ready=20/20; 120/120 Node-direct samples across 6/6 screens | +| nonresidentBootstrap | **PASS** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 5/5 usable trees; p95=1112.7 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1374.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path | +| boundedResources | **PASS** | guest CPU <=2000 ms and RSS <=268435456 bytes per successful read | 129/129 successful reads measured within bounds; max CPU=220.0 ms; max RSS=89423872 bytes | | liveRecovery | **PASS** | live crash, timeout, cancellation, and honest target-generation handling | 4/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response | | hierarchy | **PASS** | structural hierarchy acquired with typed truncation, or its absence typed as residue | nested tree with traversal depth 29 in 5/5 samples; truncated=false | +| preferenceControl | **PASS** | task-owned Simulator accessibility preferences applied preboot and restored | applied=true; restored=true; enabled keys=AutomationEnabled, IgnoreAXServerEntitlements; fixture launch compatible=true | ## Readiness boundary and candidate-owned latency -Warm and relaunch timing starts at the bridge acquisition after fixture/app readiness admission. Relaunch readiness is recorded separately; the old first-look value includes Simulator, app, daemon, and runner costs. +Warm and relaunch timing starts at bridge acquisition after fixture/app readiness admission. Every relaunch row comes from the Node-direct route and is paired with a separate probe that observed the exact relaunched process generation and expected screen anchor. The old first-look value includes Simulator, app, daemon, and runner costs. | State | Screen | Samples | Readable | Ready generation | Candidate p50/p95 ms | Readiness p95 ms | Old first-look p95 ms | Generations | |---|---|---:|---:|---:|---:|---:|---:|---:| @@ -42,12 +42,12 @@ Warm and relaunch timing starts at the bridge acquisition after fixture/app read | warm | alert | 20 | 20 | 1 | 41.6/43.3 | 0.0 | 43.3 | 1 | | warm | system-surface | 20 | 20 | 1 | 37.2/39.6 | 0.0 | 39.6 | 1 | | warm | xctest-stress | 20 | 20 | 1 | 39.6/41.1 | 0.0 | 41.1 | 1 | -| relaunch | quiet | 20 | 20 | 1 | 8.9/9.6 | 4390.1 | 4399.3 | 1 | -| relaunch | list | 20 | 20 | 1 | 119.2/121.1 | 5061.4 | 5177.9 | 1 | -| relaunch | nested-scroll | 20 | 20 | 1 | 15.4/16.5 | 5078.9 | 5093.8 | 1 | -| relaunch | alert | 20 | 20 | 1 | 41.1/42.7 | 4418.9 | 4461.2 | 1 | -| relaunch | system-surface | 20 | 20 | 1 | 37.3/39.5 | 4976.2 | 5013.4 | 1 | -| relaunch | xctest-stress | 20 | 20 | 1 | 40.4/42.6 | 4463.5 | 4503.0 | 1 | +| relaunch | quiet | 20 | 20 | 20 | 77.1/84.8 | 1086.6 | 1170.8 | 20 | +| relaunch | list | 20 | 20 | 20 | 191.4/198.7 | 1177.5 | 1379.3 | 20 | +| relaunch | nested-scroll | 20 | 20 | 20 | 85.8/91.1 | 1102.3 | 1237.7 | 20 | +| relaunch | alert | 20 | 20 | 20 | 111.4/130.4 | 1105.8 | 1231.3 | 20 | +| relaunch | system-surface | 20 | 20 | 20 | 106.0/118.1 | 1103.7 | 1243.5 | 20 | +| relaunch | xctest-stress | 20 | 20 | 20 | 117.2/131.7 | 1121.2 | 1245.1 | 20 | ## Cold diagnostics @@ -70,17 +70,17 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are ## Nonresident bootstrap -- 5/5 usable trees; p95=1134.8 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1162.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path. -- 9/9 successful reads measured within bounds; max CPU=220.0 ms; max RSS=84787200 bytes. +- 5/5 usable trees; p95=1112.7 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1374.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path. +- 129/129 successful reads measured within bounds; max CPU=220.0 ms; max RSS=89423872 bytes. - The timed boundary begins with no resident bridge and ends at the first usable guest tree. Before each timer the fixture app was relaunched and a throwaway probe bridge polled until the new generation answered with a tree (readiness), then exited. | Sample | Duration ms | CPU ms | RSS MiB | Usable tree | Nodes | Depth | Generation | Readiness ms | Attempts | Host load | |---:|---:|---:|---:|---|---:|---:|---|---:|---:|---:| -| 1 | 1111.5 | 220.0 | 77.6 | true | 155 | 29 | pid:13819 | 1163 | 1 | 49.73 | -| 2 | 1089.4 | 200.0 | 77.8 | true | 155 | 29 | pid:14329 | 1121 | 1 | 48.22 | -| 3 | 1134.8 | 220.0 | 77.3 | true | 155 | 29 | pid:14828 | 1152 | 1 | 46.76 | -| 4 | 1106.0 | 210.0 | 77.7 | true | 155 | 29 | pid:15747 | 1129 | 1 | 40.27 | -| 5 | 1109.7 | 220.0 | 78.0 | true | 155 | 29 | pid:16245 | 1129 | 1 | 37.2 | +| 1 | 1106.4 | 200.0 | 77.9 | true | 155 | 29 | pid:75246 | 1375 | 1 | 30.13 | +| 2 | 1077.6 | 210.0 | 78.2 | true | 155 | 29 | pid:75957 | 1102 | 1 | 32.48 | +| 3 | 1112.7 | 220.0 | 78.1 | true | 155 | 29 | pid:76441 | 1211 | 1 | 32.84 | +| 4 | 1072.6 | 200.0 | 77.6 | true | 155 | 29 | pid:76933 | 1152 | 1 | 32.59 | +| 5 | 1088.7 | 220.0 | 77.9 | true | 155 | 29 | pid:77466 | 1157 | 1 | 31.74 | ## Live candidate recovery @@ -88,16 +88,26 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are | Operation | Observed failure | Recovery response | Recovered tree | |---|---|---|---| -| process-crash | process-crash/guest-exited | ok | 155 nodes | -| timeout | timeout/batch-duration-limit | ok | 155 nodes | -| cancelled | cancelled/abort-signal | ok | 155 nodes | -| stale-generation | stale-generation/target-generation-mismatch | ok | 155 nodes | +| process-crash | process-crash/guest-exited | ok | 135 nodes | +| timeout | timeout/batch-duration-limit | ok | 135 nodes | +| cancelled | cancelled/abort-signal | ok | 135 nodes | +| stale-generation | stale-generation/target-generation-mismatch | ok | 135 nodes | ## Hierarchy - nested tree with traversal depth 29 in 5/5 samples; truncated=false. - Observed traversal depth: 29; depth complete: **true**; interpretation: nested-tree. +## Simulator preference control + +- applied=true; restored=true; enabled keys=AutomationEnabled, IgnoreAXServerEntitlements; fixture launch compatible=true. +- The broad capture applied its accessibility preference changes only to the disposable benchmark Simulator before boot, verified fixture launch compatibility, and restored the prior preference files and Simulator state afterward. + +## Private-interface compatibility risk + +- SimulatorFrameworkBridge and its accessibility wire protocol are private idb/Apple implementation details with no compatibility guarantee. +- Control: Pin the official idb release and observed guest SHA-256, keep this route Simulator-only behind the acquisition adapter, and re-run this verifier for every idb, Xcode, or Simulator runtime change before production adoption. + ## Stretch findings - Original broad-run finding: guest-simulator-framework-bridge cold-cold first look missed the 5 second target. @@ -106,7 +116,7 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are - Original broad-run finding: guest-simulator-framework-bridge relaunch first look missed the 250 ms target. - Cold and cold-cold first-look measurements include Simulator, app, daemon, and runner readiness costs; they are diagnostics, not candidate-owned hard gates. - The former warm 75/150 ms and relaunch 250 ms thresholds are stretch findings under the corrected contract. -- Nonresident bootstrap samples were taken on a host with 1-minute load average 35.35 on 12 cores; per-sample load is recorded with each sample. +- Nonresident bootstrap samples were taken on a host with 1-minute load average 6.13 on 12 cores; per-sample load is recorded with each sample. ## Production boundary diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index d31259e5e..16b49392a 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -2,15 +2,15 @@ This narrow harness supplies the decisive live evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It drives idb v1.5.2's in-Simulator `Resources/SimulatorFrameworkBridge` directly from Node over a private UNIX socket. It does not use `idb_companion`, gRPC, or Python, and it does not change production routing. -The September 1 broad corpus is retained because it contains the warm and relaunch measurements. Its one-off Python runner and generated NO-GO reports were removed after the corrected contract made them obsolete. Raw artifacts are kept off-tree at immutable tag `evidence/ios-snapshot/268a90275` (commit `fdc52f65ed679f1420f91312204f8d558a8c0061`); their SHA-256 hashes are recorded in the evidence branch README. +The September 1 broad corpus is retained for its warm measurements and diagnostics. Its one-off Python runner and generated NO-GO reports were removed after the corrected contract made them obsolete. The corrected relaunch corpus is Node-direct. Raw artifacts are kept off-tree at immutable tag `evidence/ios-snapshot/636b1deac` (commit `20212277e8bb09b534cb6c52fc0a6d2999ce9c51`); their SHA-256 hashes are recorded in the evidence branch README. Obtain the guest executable from the official arm64 idb v1.5.2 release. The archive SHA-256 is `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; `Resources/SimulatorFrameworkBridge` is `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`. The verifier hashes the supplied `--guest-bridge` before launching it and fails if it is not that binary. Fetch the broad input before rerunning: ```sh -git fetch origin refs/tags/evidence/ios-snapshot/268a90275 -git show fdc52f65ed679f1420f91312204f8d558a8c0061:ios-simulator-ax-bridge-broad-268a90275.json.gz \ +git fetch origin refs/tags/evidence/ios-snapshot/636b1deac +git show evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-broad-268a90275.json.gz \ > docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz shasum -a 256 docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz ``` diff --git a/scripts/ios-ax-bridge-spike/corrected-markdown.ts b/scripts/ios-ax-bridge-spike/corrected-markdown.ts index 7ee69a14c..03878e168 100644 --- a/scripts/ios-ax-bridge-spike/corrected-markdown.ts +++ b/scripts/ios-ax-bridge-spike/corrected-markdown.ts @@ -13,7 +13,7 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { `- Narrow targeted raw artifact: \`${report.targetedArtifact.path}\` (host client ${report.guestMechanism.client})`, `- Host at generation: load average ${report.host.loadAverage1m} on ${report.host.cpuCores} cores`, '', - 'The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Its slower legacy host client only adds latency around the same in-Simulator reader, so its warm and relaunch cells remain conservative upper bounds for the Node-direct path.', + 'The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. The broad warm cells remain conservative upper bounds around the same in-Simulator reader. Relaunch uses the new Node-direct corpus below and does not rely on the legacy relaunch samples.', '', '## Evaluated guest mechanism', '', From f93beafe2df22df38bb5667b920738c18a04c399 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 3 Sep 2026 22:41:48 +0200 Subject: [PATCH 13/13] docs: point to post-rebase bridge evidence --- ...imulator-ax-bridge-2026-09-02-corrected.md | 46 +++++++++---------- scripts/ios-ax-bridge-spike/README.md | 6 +-- 2 files changed, 26 insertions(+), 26 deletions(-) diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md index 7e9a69e1e..dc1d24b51 100644 --- a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md +++ b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md @@ -2,13 +2,13 @@ - Decision: **GO** - Interpretation: **maintainer-corrected** -- Revision: 636b1deac98ab88cc8e0e1ed894b5719d8a6c83f (detached) +- Revision: 44995806ea3be09f3c48ceac50ac3cab18462c35 (detached) - Target: ad-2237-axbridge (8CDB4DF1-3A3E-4FB1-AF89-B3D3A17647D5, com.apple.CoreSimulator.SimRuntime.iOS-26-2) -- Generated: 2026-09-03T20:18:48.756Z -- Immutable broad raw artifact: `evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-broad-268a90275.json.gz` (SHA-256 `309f974b1dcb90768548a189f6af58b493b5d7b9d56a5bfad060d4335139eb7b`; original NO-GO; interpretation superseded to stretch-only; host client persistent-in-repository-reader) -- Narrow targeted raw artifact: `evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-targeted-636b1deac.json.gz` (SHA-256 `092d3deab3753c1b7a0d230d9e54f703e5fedb87ffc0974f082541ba9b4e687d`; host client node-direct-socket) -- Corrected raw report: `evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-corrected-636b1deac.json.gz` (SHA-256 `a20039b38d4da65fed65518a3214153afa0174faaf6fb38c3950a3bd1362870d`) -- Host at generation: load average 6.13 on 12 cores +- Generated: 2026-09-03T20:40:27.697Z +- Immutable broad raw artifact: `evidence/ios-snapshot/44995806ea:ios-simulator-ax-bridge-broad-268a90275.json.gz` (SHA-256 `309f974b1dcb90768548a189f6af58b493b5d7b9d56a5bfad060d4335139eb7b`; original NO-GO; interpretation superseded to stretch-only; host client persistent-in-repository-reader) +- Narrow targeted raw artifact: `evidence/ios-snapshot/44995806ea:ios-simulator-ax-bridge-targeted-44995806ea.json.gz` (SHA-256 `3440d066cb7eea33c4715fece838b5185c5d209694b097e54f5536d48d4984ad`; host client node-direct-socket) +- Corrected raw report: `evidence/ios-snapshot/44995806ea:ios-simulator-ax-bridge-corrected-44995806ea.json.gz` (SHA-256 `0a34a84402e85154e177adef5122101b26bfd04d74714a0a9b6f0795270edc41`) +- Host at generation: load average 4.84 on 12 cores The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. The broad warm cells remain conservative upper bounds around the same in-Simulator reader. Relaunch uses the new Node-direct corpus below and does not rely on the legacy relaunch samples. @@ -23,9 +23,9 @@ The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclus | Gate | Status | Target | Evidence | |---|---|---|---| | warm | **PASS** | p50 <300 ms and p95 <500 ms per screen | 6/6 warm screen cells passed; quiet p50/p95=8.6 ms/9.3 ms ready=1/20; list p50/p95=118.2 ms/120.9 ms ready=1/20; nested-scroll p50/p95=15.1 ms/15.8 ms ready=1/20; alert p50/p95=41.6 ms/43.3 ms ready=1/20; system-surface p50/p95=37.2 ms/39.6 ms ready=1/20; xctest-stress p50/p95=39.6 ms/41.1 ms ready=1/20 | -| relaunch | **PASS** | p95 <500 ms per screen after independently observed new-generation readiness | 6/6 relaunch screen cells passed; quiet p50/p95=77.1 ms/84.8 ms ready=20/20; list p50/p95=191.4 ms/198.7 ms ready=20/20; nested-scroll p50/p95=85.8 ms/91.1 ms ready=20/20; alert p50/p95=111.4 ms/130.4 ms ready=20/20; system-surface p50/p95=106.0 ms/118.1 ms ready=20/20; xctest-stress p50/p95=117.2 ms/131.7 ms ready=20/20; 120/120 Node-direct samples across 6/6 screens | -| nonresidentBootstrap | **PASS** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 5/5 usable trees; p95=1112.7 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1374.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path | -| boundedResources | **PASS** | guest CPU <=2000 ms and RSS <=268435456 bytes per successful read | 129/129 successful reads measured within bounds; max CPU=220.0 ms; max RSS=89423872 bytes | +| relaunch | **PASS** | p95 <500 ms per screen after independently observed new-generation readiness | 6/6 relaunch screen cells passed; quiet p50/p95=77.4 ms/133.9 ms ready=20/20; list p50/p95=193.4 ms/234.7 ms ready=20/20; nested-scroll p50/p95=84.5 ms/93.3 ms ready=20/20; alert p50/p95=113.7 ms/124.0 ms ready=20/20; system-surface p50/p95=108.9 ms/116.6 ms ready=20/20; xctest-stress p50/p95=117.4 ms/126.0 ms ready=20/20; 120/120 Node-direct samples across 6/6 screens | +| nonresidentBootstrap | **PASS** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 5/5 usable trees; p95=1136.6 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1220.6 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path | +| boundedResources | **PASS** | guest CPU <=2000 ms and RSS <=268435456 bytes per successful read | 129/129 successful reads measured within bounds; max CPU=220.0 ms; max RSS=89407488 bytes | | liveRecovery | **PASS** | live crash, timeout, cancellation, and honest target-generation handling | 4/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response | | hierarchy | **PASS** | structural hierarchy acquired with typed truncation, or its absence typed as residue | nested tree with traversal depth 29 in 5/5 samples; truncated=false | | preferenceControl | **PASS** | task-owned Simulator accessibility preferences applied preboot and restored | applied=true; restored=true; enabled keys=AutomationEnabled, IgnoreAXServerEntitlements; fixture launch compatible=true | @@ -42,12 +42,12 @@ Warm and relaunch timing starts at bridge acquisition after fixture/app readines | warm | alert | 20 | 20 | 1 | 41.6/43.3 | 0.0 | 43.3 | 1 | | warm | system-surface | 20 | 20 | 1 | 37.2/39.6 | 0.0 | 39.6 | 1 | | warm | xctest-stress | 20 | 20 | 1 | 39.6/41.1 | 0.0 | 41.1 | 1 | -| relaunch | quiet | 20 | 20 | 20 | 77.1/84.8 | 1086.6 | 1170.8 | 20 | -| relaunch | list | 20 | 20 | 20 | 191.4/198.7 | 1177.5 | 1379.3 | 20 | -| relaunch | nested-scroll | 20 | 20 | 20 | 85.8/91.1 | 1102.3 | 1237.7 | 20 | -| relaunch | alert | 20 | 20 | 20 | 111.4/130.4 | 1105.8 | 1231.3 | 20 | -| relaunch | system-surface | 20 | 20 | 20 | 106.0/118.1 | 1103.7 | 1243.5 | 20 | -| relaunch | xctest-stress | 20 | 20 | 20 | 117.2/131.7 | 1121.2 | 1245.1 | 20 | +| relaunch | quiet | 20 | 20 | 20 | 77.4/133.9 | 1090.5 | 1174.6 | 20 | +| relaunch | list | 20 | 20 | 20 | 193.4/234.7 | 1180.5 | 1374.0 | 20 | +| relaunch | nested-scroll | 20 | 20 | 20 | 84.5/93.3 | 1111.3 | 1208.6 | 20 | +| relaunch | alert | 20 | 20 | 20 | 113.7/124.0 | 1136.9 | 1283.5 | 20 | +| relaunch | system-surface | 20 | 20 | 20 | 108.9/116.6 | 1114.5 | 1224.1 | 20 | +| relaunch | xctest-stress | 20 | 20 | 20 | 117.4/126.0 | 1122.3 | 1244.3 | 20 | ## Cold diagnostics @@ -70,17 +70,17 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are ## Nonresident bootstrap -- 5/5 usable trees; p95=1112.7 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1374.9 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path. -- 129/129 successful reads measured within bounds; max CPU=220.0 ms; max RSS=89423872 bytes. +- 5/5 usable trees; p95=1136.6 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1220.6 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path. +- 129/129 successful reads measured within bounds; max CPU=220.0 ms; max RSS=89407488 bytes. - The timed boundary begins with no resident bridge and ends at the first usable guest tree. Before each timer the fixture app was relaunched and a throwaway probe bridge polled until the new generation answered with a tree (readiness), then exited. | Sample | Duration ms | CPU ms | RSS MiB | Usable tree | Nodes | Depth | Generation | Readiness ms | Attempts | Host load | |---:|---:|---:|---:|---|---:|---:|---|---:|---:|---:| -| 1 | 1106.4 | 200.0 | 77.9 | true | 155 | 29 | pid:75246 | 1375 | 1 | 30.13 | -| 2 | 1077.6 | 210.0 | 78.2 | true | 155 | 29 | pid:75957 | 1102 | 1 | 32.48 | -| 3 | 1112.7 | 220.0 | 78.1 | true | 155 | 29 | pid:76441 | 1211 | 1 | 32.84 | -| 4 | 1072.6 | 200.0 | 77.6 | true | 155 | 29 | pid:76933 | 1152 | 1 | 32.59 | -| 5 | 1088.7 | 220.0 | 77.9 | true | 155 | 29 | pid:77466 | 1157 | 1 | 31.74 | +| 1 | 1095.6 | 220.0 | 77.1 | true | 155 | 29 | pid:43541 | 1171 | 1 | 21.27 | +| 2 | 1071.2 | 210.0 | 77.5 | true | 155 | 29 | pid:44026 | 1080 | 1 | 23.17 | +| 3 | 1094.4 | 200.0 | 78.5 | true | 155 | 29 | pid:44524 | 1221 | 1 | 24.33 | +| 4 | 1043.5 | 220.0 | 77.9 | true | 155 | 29 | pid:45028 | 1119 | 1 | 22.17 | +| 5 | 1136.6 | 210.0 | 77.4 | true | 155 | 29 | pid:45518 | 1202 | 1 | 20.71 | ## Live candidate recovery @@ -116,7 +116,7 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are - Original broad-run finding: guest-simulator-framework-bridge relaunch first look missed the 250 ms target. - Cold and cold-cold first-look measurements include Simulator, app, daemon, and runner readiness costs; they are diagnostics, not candidate-owned hard gates. - The former warm 75/150 ms and relaunch 250 ms thresholds are stretch findings under the corrected contract. -- Nonresident bootstrap samples were taken on a host with 1-minute load average 6.13 on 12 cores; per-sample load is recorded with each sample. +- Nonresident bootstrap samples were taken on a host with 1-minute load average 4.84 on 12 cores; per-sample load is recorded with each sample. ## Production boundary diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index 16b49392a..3a83436aa 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -2,15 +2,15 @@ This narrow harness supplies the decisive live evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It drives idb v1.5.2's in-Simulator `Resources/SimulatorFrameworkBridge` directly from Node over a private UNIX socket. It does not use `idb_companion`, gRPC, or Python, and it does not change production routing. -The September 1 broad corpus is retained for its warm measurements and diagnostics. Its one-off Python runner and generated NO-GO reports were removed after the corrected contract made them obsolete. The corrected relaunch corpus is Node-direct. Raw artifacts are kept off-tree at immutable tag `evidence/ios-snapshot/636b1deac` (commit `20212277e8bb09b534cb6c52fc0a6d2999ce9c51`); their SHA-256 hashes are recorded in the evidence branch README. +The September 1 broad corpus is retained for its warm measurements and diagnostics. Its one-off Python runner and generated NO-GO reports were removed after the corrected contract made them obsolete. The corrected relaunch corpus is Node-direct. Raw artifacts are kept off-tree at immutable tag `evidence/ios-snapshot/44995806ea` (commit `f8b2fab28b8604f20094785c16e16a79fdc651a3`); their SHA-256 hashes are recorded in the evidence branch README. Obtain the guest executable from the official arm64 idb v1.5.2 release. The archive SHA-256 is `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; `Resources/SimulatorFrameworkBridge` is `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`. The verifier hashes the supplied `--guest-bridge` before launching it and fails if it is not that binary. Fetch the broad input before rerunning: ```sh -git fetch origin refs/tags/evidence/ios-snapshot/636b1deac -git show evidence/ios-snapshot/636b1deac:ios-simulator-ax-bridge-broad-268a90275.json.gz \ +git fetch origin refs/tags/evidence/ios-snapshot/44995806ea +git show evidence/ios-snapshot/44995806ea:ios-simulator-ax-bridge-broad-268a90275.json.gz \ > docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz shasum -a 256 docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz ```

7B>7KJwv!^iEgPNfEDh!`QyPl~8k*nh7m;6{n*GN1@ zlABS*PCwVN_W;NL8&MUYo zY*??z1>3|lZ*VJlD+~#o-GSQ1E4<3{SeChNc~bQufv;3`ORhH}c=kde4NA9#fV~u= zZT!HcDCL=zW5H9o+rNS4?-W|FqnRPtCIon!L5`$PRH3yKC_A;FDj$tffhWJNVcE)j z_<*z_IXi>2_KpswglK%v`?=2NH$0um9g^sih3+vz-DG56jmX7y2Z2kNREM^WU0kHe zvkWm&8KV)LDb-~W^G2V039g3)rGMLM8xM}Vlcjs1Nu zZdO-6Sac^)o>J$3uR?ROD227MO!>H@Qbw&^y&tF6HZ#|cT1r*x$SQg4Ie=~-nGR-Y z3ef7Eo@$$=LZDtVr96QsE9290oL6#c#F}mepvW+Vc+y;wft0Qw&+mKre7RlBsKIet;ZME=#q`A@w6@FG@UXg)_Amj(bfW$DuJ)1C5fvaD| z#$FVg=50Rx@OrtVNBw%8#ptSXZH3(ftrir0n-|G%xEd`b_1R|wUi1kiQ}vc<5p-Dp zxk8Trgw;b-U)A;{5Fb8;czb0b=--mc1mdpv;Di^=D!vUX>mF{b0_8e`h0QuPZTm2hm&g0B!5-bm*GZo`D~JJ6j7GK3!F(=S%`Tz09c( zK;I<4&XV|z$VzPb&T&4ur>%{lNGkR>(WB>U4#P%uGVe9BMGp^U7 zw$Yy|^tROuNE-~Iw`}|P*zsJ)3M|LE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&5chap#k1S1D8gSfLen< zJ|)>O|B$ustA&J-V;`%(pdAzw)iR<$EB9CU};u3=#^$Q{y(=_{} z{*L9*;wzT#ngbU5c--d@6l1~K2zN9`l_c{Nk2L|7Zozhdiwm}ovLyZ3$xuxeDoRra zhO9*Z%%_3r`<_cZ^);#0^Fo%P(qj$`vHu^RakCGa9_!jq{&90M3-&?NK4|)igQm8U zzd+E`h4kwVnu>H3&sakDLDN2HdUDXDheghMSY+9z69m*_pC1-E`><#q7Cq>^&(gm$ z`*TghJ_Eb2n~b%#ZnUV3&imGS|Gj^)4~zC;(N`Q6wUzt@!lEvuUw2q^ zJ)pl#Ch^@qEZT=fTZBa)`@L}jz+mE?tKgwtSN*hQ)xCTmtvc=qBxIx0`l#Y2)@gl! zeFzhQ(I9K$tv~Ra?|D3v8<9>RW{Ej|3>iWgV|m{wAV|V9Lef F002nTOCtaP diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md index 6f282ba87..be4d21b7d 100644 --- a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md +++ b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.md @@ -1,14 +1,22 @@ # iOS Simulator AX bridge corrected evidence -- Decision: **NO-GO** +- Decision: **GO** - Interpretation: **maintainer-corrected** -- Revision: eac2c7f409f4148bbeb1af87a55ad74eef54e8fc (codex/2192-guest-bridge-evidence) -- Target: bench-golden-v2 (7E76ECA9-D40C-4833-A711-F870F8CE9363, com.apple.CoreSimulator.SimRuntime.iOS-27-0) -- Generated: 2026-09-02T15:37:43.300Z -- Immutable broad raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz` (original NO-GO; interpretation superseded to stretch-only) -- Narrow targeted raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz` +- Revision: 999920fa55098f11eb5ba1f9d39f9cb3cec208e3 (review-2237) +- Target: ad-2237-axbridge (8CDB4DF1-3A3E-4FB1-AF89-B3D3A17647D5, com.apple.CoreSimulator.SimRuntime.iOS-26-2) +- Generated: 2026-09-03T06:04:19.830Z +- Immutable broad raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz` (original NO-GO; interpretation superseded to stretch-only; host client persistent-in-repository-reader) +- Superseded targeted raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz` (persistent-in-repository-reader (idb_companion + Python idb client); its bootstrap and recovery samples raced app readiness and shared one wedged companion, so they measured the prototype packaging, not the mechanism) +- Narrow targeted raw artifact: `docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz` (host client node-direct-socket) +- Host at generation: load average 13.75 on 12 cores -The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. +The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Warm and relaunch cells come from the broad run, whose host client was the idb companion plus a Python reader; the in-Simulator reader and the read it performs are the same mechanism the Node-direct targeted evidence uses, and the host client only adds latency, so those cells bound the mechanism from above. + +## Evaluated guest mechanism + +- Guest reader: idb v1.5.2 `Resources/SimulatorFrameworkBridge` (SHA-256 `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`) from `idb-companion.macos-arm64.tar.gz` (SHA-256 `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`). +- Transport: xcrun simctl spawn SimulatorFrameworkBridge accessibility serve --idle-timeout 300 --exit-on-disconnect true; UNIX socket frames are a 4-byte big-endian length + JSON. +- Traversal: describe with snapshotTree=true (one XCTest snapshot fetch per read) and automationMode=true asserted per request; no idb_companion, gRPC, or Python client. ## Hard gates @@ -16,9 +24,9 @@ The broad run is preserved unchanged. Its old NO-GO was caused by readiness-incl |---|---|---|---| | warm | **PASS** | p50 <300 ms and p95 <500 ms per screen | 6/6 warm screen cells passed; quiet p50/p95=8.6 ms/9.3 ms ready=20/20; list p50/p95=118.2 ms/120.9 ms ready=20/20; nested-scroll p50/p95=15.1 ms/15.8 ms ready=20/20; alert p50/p95=41.6 ms/43.3 ms ready=20/20; system-surface p50/p95=37.2 ms/39.6 ms ready=20/20; xctest-stress p50/p95=39.6 ms/41.1 ms ready=20/20 | | relaunch | **PASS** | p95 <500 ms per screen after observed new-generation app readiness | 6/6 relaunch screen cells passed; quiet p50/p95=8.9 ms/9.6 ms ready=20/20; list p50/p95=119.2 ms/121.1 ms ready=20/20; nested-scroll p50/p95=15.4 ms/16.5 ms ready=20/20; alert p50/p95=41.1 ms/42.7 ms ready=20/20; system-surface p50/p95=37.3 ms/39.5 ms ready=20/20; xctest-stress p50/p95=40.4 ms/42.6 ms ready=20/20 | -| nonresidentBootstrap | **FAIL** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 1/5 usable trees; p95=5768.8 ms; timer covered adapter acquireBatch only after app readiness, with no xcodebuild, XCTest, or agent-device runner in the timed path | -| liveRecovery | **FAIL** | live crash, timeout, cancellation, and honest target-generation handling | 0/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response | -| hierarchyResidue | **PASS** | missing hierarchy represented as typed provider-pruned depth residue | provider-pruned/depth observed; traversal depth is not treated as complete | +| nonresidentBootstrap | **PASS** | nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms | 5/5 usable trees; p95=1136.2 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1333.2 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path | +| liveRecovery | **PASS** | live crash, timeout, cancellation, and honest target-generation handling | 4/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response | +| hierarchy | **PASS** | structural hierarchy acquired with typed truncation, or its absence typed as residue | nested tree with traversal depth 29 in 5/5 samples; truncated=false | ## Readiness boundary and candidate-owned latency @@ -60,32 +68,32 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are ## Nonresident bootstrap -- 1/5 usable trees; p95=5768.8 ms; timer covered adapter acquireBatch only after app readiness, with no xcodebuild, XCTest, or agent-device runner in the timed path. -- The timed boundary begins with a nonresident adapter and ends at the first usable guest tree; Simulator/app readiness was established before the timer. +- 5/5 usable trees; p95=1136.2 ms; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=1333.2 ms), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path. +- The timed boundary begins with no resident bridge and ends at the first usable guest tree. Before each timer the fixture app was relaunched and a throwaway probe bridge polled until the new generation answered with a tree (readiness), then exited. -| Sample | Duration ms | Usable tree | Failure | Nodes | Generation | -|---:|---:|---|---|---:|---| -| 1 | 1990.6 | true | none/none | 159 | – | -| 2 | 5718.8 | false | timeout/batch-duration-limit | 0 | – | -| 3 | 5702.4 | false | timeout/batch-duration-limit | 0 | – | -| 4 | 5740.5 | false | timeout/batch-duration-limit | 0 | – | -| 5 | 5768.8 | false | timeout/batch-duration-limit | 0 | – | +| Sample | Duration ms | Usable tree | Failure | Nodes | Depth | Generation | Readiness ms | Readiness attempts | Host load | +|---:|---:|---|---|---:|---:|---|---:|---:|---:| +| 1 | 1080.8 | true | none/none | 155 | 29 | pid:68714 | 1333 | 1 | 11.66 | +| 2 | 1136.2 | true | none/none | 155 | 29 | pid:69066 | 1172 | 1 | 13.4 | +| 3 | 1055.3 | true | none/none | 155 | 29 | pid:69393 | 1162 | 1 | 13.34 | +| 4 | 1049.9 | true | none/none | 155 | 29 | pid:69892 | 1169 | 1 | 13.21 | +| 5 | 1043.5 | true | none/none | 155 | 29 | pid:70202 | 1101 | 1 | 13.35 | ## Live candidate recovery -- 0/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response. +- 4/4 probes returned a typed failure or typed unavailable-generation residue and a usable recovered response. | Operation | Observed failure | Recovery response | Recovered tree | |---|---|---|---| -| process-crash | process-crash/persistent-process-exited | failed | 0 nodes | -| timeout | timeout/guest-read-timeout | failed | 0 nodes | -| cancelled | cancelled/abort-signal | failed | 0 nodes | -| stale-generation | timeout/batch-duration-limit | failed | 0 nodes | +| process-crash | process-crash/guest-exited | ok | 155 nodes | +| timeout | timeout/batch-duration-limit | ok | 155 nodes | +| cancelled | cancelled/abort-signal | ok | 155 nodes | +| stale-generation | stale-generation/target-generation-mismatch | ok | 155 nodes | -## Hierarchy residue +## Hierarchy -- provider-pruned/depth observed; traversal depth is not treated as complete. -- Observed traversal depth: 0; depth complete: **false**. The guest response is flat and carries typed `provider-pruned/depth` residue. +- nested tree with traversal depth 29 in 5/5 samples; truncated=false. +- Observed traversal depth: 29; depth complete: **true**; interpretation: nested-tree. ## Stretch findings @@ -95,6 +103,7 @@ Cold and cold-cold first-look measurements remain visible for diagnosis, but are - Original broad-run finding: guest-simulator-framework-bridge relaunch first look missed the 250 ms target. - Cold and cold-cold first-look measurements include Simulator, app, daemon, and runner readiness costs; they are diagnostics, not candidate-owned hard gates. - The former warm 75/150 ms and relaunch 250 ms thresholds are stretch findings under the corrected contract. +- Nonresident bootstrap samples were taken on a host with 1-minute load average 13.75 on 12 cores; per-sample load is recorded with each sample. ## Production boundary diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz new file mode 100644 index 0000000000000000000000000000000000000000..5c05b78cf40aa3b71fce1b7586bfe97ad340989d GIT binary patch literal 5436 zcmV-C6~pQuiwFP!000026YX95bK5wQ{{8+6l<%%;w@Q@wez-PQC%-b@O(x#R$xLmM zN`WLOVN8)4K5T2Y^1oj<_zvxH?79)|^#(N*16R8LX$Yt1?~ zoMTh(n~weu$e6KPULpVUC`hMMj`TESXJ-51A&% zSi81P$4#AxqQJjp$V2j%cW0Mp{{v5z5CECc1oS6=xf)*ov`CoEiwV4~{%5qWb6zlI zMuQtVX8EEFoz3F8GRs)RGE_DPZS%Cu0yf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@@0LD1(4qq^`hjWDs*!&KTC`5+k4=ky^Jm8W&2KjcT6CaA&!R=< zGA%OIzNOoar=z*4=5uI~d7woHTJ&h}zWC#((3u`+(Sa8Iz_e)9$iD$CS|{|!rbP*} zI0aid(4qq^dKN9RmT8gg_8m+2v}(1;eGV)X z`8S|N>xBN;wCKjyew$9i`vWaH(4rk^(I>GN8}a61FExhl=I`8r2H4(8kkMRRDN+%O zwG^lUX)|xhg4)D)TmA7uapqYZN)rdwsz2@o&-I^l67)!rBH%c0JG{uYEW_?q?>qF! z)I8I`#W6_wx%wkTnx(F%Nw_5&UZ2+cxYat_Ynd(Swrd)eX;s3`WabI^kvKibEuY)4 z57Nu!93IFotKmHF>a#iZpf&c*OteArU diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index e512e05a8..78ed1e1f6 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -1,6 +1,17 @@ # iOS Simulator AX bridge spike -This bounded harness supplies the decision evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It compares the official idb `SimulatorFrameworkBridge` guest mechanism with the #2189 XCTest control baseline behind one acquisition adapter. It does not select a production backend or change daemon, runner, open, relaunch, proxy, interaction, or public CLI behavior. +This bounded harness supplies the decision evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It compares an in-Simulator accessibility reader with the #2189 XCTest control baseline behind one acquisition adapter. It does not select a production backend or change daemon, runner, open, relaunch, proxy, interaction, or public CLI behavior, and nothing in it ships in the npm package. + +## Mechanism under test + +The guest candidate is idb v1.5.2's `Resources/SimulatorFrameworkBridge`: a 196 KB iOS-Simulator executable that reads the XCTest-shaped element tree (`XC_kAXXCAttribute*`) inside the Simulator and serves it over a UNIX socket. The spike drives it **directly from Node**: + +- `xcrun simctl spawn SimulatorFrameworkBridge accessibility serve --idle-timeout 300 --exit-on-disconnect true` starts one private guest per session in the Simulator's launchd domain; +- the host connects to the socket and exchanges 4-byte big-endian length-prefixed JSON frames; +- each read is one `describe` with `snapshotTree=true` (one XCTest snapshot fetch, one Mach round trip) and `automationMode=true`, so the target exposes its accessibility server without preboot preference edits; +- a known target generation reads by pid; otherwise the guest resolves the foreground app in-guest through RunningBoard. + +No `idb_companion`, gRPC, or Python client is involved. The earlier prototype packaging (companion + Python reader) is retained only as the superseded targeted artifact. Build the repository first: @@ -9,7 +20,9 @@ pnpm install --frozen-lockfile pnpm build ``` -Use a newly created, task-owned iOS Simulator. The guest candidate uses the arm64 [idb release](https://github.com/facebook/idb/releases/tag/v1.5.2) outside this repository: +Obtain the guest executable from the official arm64 [idb v1.5.2 release](https://github.com/facebook/idb/releases/tag/v1.5.2) (`idb-companion.macos-arm64.tar.gz`, SHA-256 `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; the extracted `Resources/SimulatorFrameworkBridge` has SHA-256 `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`). Use a task-owned iOS Simulator with the test app installed. + +## Broad corpus ```sh pnpm bench:ios-ax-bridge -- \ @@ -18,33 +31,26 @@ pnpm bench:ios-ax-bridge -- \ --state cold-cold,cold,warm,relaunch \ --screen quiet,list,nested-scroll,alert,system-surface,xctest-stress \ --samples 20 \ - --apply-preferences \ - --guest-companion /path/to/idb_companion \ - --guest-python python3 \ - --guest-site-packages /path/to/idb-cli/libexec/lib/python3.14/site-packages \ + --guest-bridge /path/to/Resources/SimulatorFrameworkBridge \ --out .tmp/ios-ax-bridge-spike.v1.json.gz ``` -The default candidate set, state set, screen set, and sample minimums come from the #2189 benchmark definitions. Each request carries an optional expected target generation and fixed request, response, node-count, traversal-depth, CPU, memory, and duration bounds. The guest adapter uses a newline-delimited reader, keeping one idb gRPC client and one `axbridge-persistent` reader alive across the run. Guest reads request idb's flat raw element form, preserving provider facts without importing visibility, hittability, scope, depth, or semantic compaction. Every sample keeps resource metrics and target status; each cell keeps one raw-tree exemplar with viewport, lineage, truncation, residue, and bounded diagnostics, plus separate prototype presentation measurements. +The default candidate set, state set, screen set, and sample minimums come from the #2189 benchmark definitions. Each request carries an optional expected target generation and fixed request, response, node-count, traversal-depth, CPU, memory, and duration bounds. Guest reads keep the nested view hierarchy as parent-linked raw nodes with XCTest type names, labels, values, identifiers, and frames; they do not import visibility, hittability, scope, depth, or semantic compaction. Every sample keeps resource metrics and target status; each cell keeps one raw-tree exemplar with viewport, lineage, truncation, residue, and bounded diagnostics, plus separate prototype presentation measurements. + +Hard tiers follow the maintainer-corrected #2192 contract: warm p50 < 300 ms and p95 < 500 ms per screen, relaunch p95 < 500 ms after observed app readiness. The former 75/150 ms and 250 ms values are reported as stretch findings and never decide GO/NO-GO. -`--apply-preferences` is the only way the experiment edits Simulator preference plists. The Simulator must be shutdown; the harness records exact plist hashes and targeted key changes, then restores the original bytes before reporting. The keys are not production defaults. +`--apply-preferences` optionally runs the task-owned preboot AX preference experiment. The Simulator must be shutdown; the harness records exact plist hashes and targeted key changes, then restores the original bytes before reporting. The keys are not production defaults and the guest path does not need them. -The harness fails closed. It reports `NO-GO` when the guest candidate is unsupported, unavailable, unreadable, stale, over a bound, below the sample minimum, or when crash/timeout/cancellation recovery is not typed and recovered. XCTest is a control result and cannot turn a passing guest corpus into a failure. It stops before reporting timings if the fixture app cannot be prepared deterministically. The adjacent gzipped JSON and readable Markdown report are the decision artifact; no production route should be implemented from a `NO-GO` run. +## Targeted evidence -The checked-in broad corpus predates the corrected hard-latency contract. Reproduce only the -missing live bootstrap and lifecycle evidence with: +The broad corpus predates the corrected hard-latency contract. The live nonresident-bootstrap and lifecycle evidence is produced with: ```sh pnpm bench:ios-ax-bridge:targeted -- \ --udid SIMULATOR_UDID \ - --apply-preferences \ - --guest-companion /path/to/idb_companion \ - --guest-python python3 \ - --guest-site-packages /path/to/idb-cli/libexec/lib/python3.14/site-packages + --guest-bridge /path/to/Resources/SimulatorFrameworkBridge ``` -This preserves the broad raw artifact and writes a narrow raw artifact plus the superseding -corrected report. Each nonresident bootstrap sample re-establishes a booted Simulator and ready app -before its timer, so helper teardown contention and Simulator/app readiness are outside the measured -candidate boundary. Missing provider generation is emitted as typed residue; the reader never echoes -an expected generation it did not observe. +For each of five bootstrap samples the fixture app is relaunched, a throwaway probe bridge polls until the new app generation answers with a tree (readiness is observed, never assumed from a pid), the probe exits, and only then a fresh guest is spawned and timed to its first usable tree. Host load is recorded per sample. Recovery probes exercise process crash, timeout, cancellation, and a dead target generation through the same adapter and require a typed failure plus a usable recovered read. The run preserves the broad raw artifact, writes the narrow raw artifact, and regenerates the corrected report. + +The harness fails closed. It reports `NO-GO` when the guest candidate is unsupported, unavailable, unreadable, stale, over a bound, below the sample minimum, or when crash/timeout/cancellation recovery is not typed and recovered. XCTest is a control result and cannot turn a passing guest corpus into a failure. diff --git a/scripts/ios-ax-bridge-spike/adapter.test.ts b/scripts/ios-ax-bridge-spike/adapter.test.ts index 49bbc94ca..23226b77f 100644 --- a/scripts/ios-ax-bridge-spike/adapter.test.ts +++ b/scripts/ios-ax-bridge-spike/adapter.test.ts @@ -28,7 +28,7 @@ test('control mapping preserves the producer raw node type', () => { assert.equal(result?.nodes[0]?.role, 'AXButton'); }); -test('guest adapter fails closed when the official companion is not configured', async () => { +test('guest adapter fails closed when the guest bridge executable is not configured', async () => { const adapter = createGuestSimulatorFrameworkBridgeAdapter({ repoRoot: '/repo' }); const result = await adapter.acquireBatch([ { diff --git a/scripts/ios-ax-bridge-spike/adapter.ts b/scripts/ios-ax-bridge-spike/adapter.ts index bd30ead4a..50d4d8360 100644 --- a/scripts/ios-ax-bridge-spike/adapter.ts +++ b/scripts/ios-ax-bridge-spike/adapter.ts @@ -33,9 +33,8 @@ export type AcquisitionBatchResult = Readonly<{ export type AdapterOptions = Readonly<{ repoRoot: string; limits?: ResourceLimits; - guestCompanion?: string; - guestPython?: string; - guestSitePackages?: string; + /** Path to the in-Simulator `SimulatorFrameworkBridge` guest executable (idb v1.5.2 Resources). */ + guestBridge?: string; }>; export function createXCTestControlAdapter( diff --git a/scripts/ios-ax-bridge-spike/config.ts b/scripts/ios-ax-bridge-spike/config.ts index 59020bee7..8e866403a 100644 --- a/scripts/ios-ax-bridge-spike/config.ts +++ b/scripts/ios-ax-bridge-spike/config.ts @@ -23,9 +23,7 @@ class SpikeConfigurationError extends Error { export type SpikeConfig = Readonly<{ repoRoot: string; udid: string; - guestCompanion?: string; - guestPython?: string; - guestSitePackages?: string; + guestBridge?: string; stateDir: string; derivedPath: string; outputPath: string; @@ -42,9 +40,7 @@ const CANDIDATES: readonly CandidateId[] = ['guest-simulator-framework-bridge', const BOOLEAN_FLAGS = new Set(['--apply-preferences', '--keep-device']); const VALUE_FLAGS = new Set([ '--udid', - '--guest-companion', - '--guest-python', - '--guest-site-packages', + '--guest-bridge', '--state-dir', '--derived-path', '--out', @@ -64,9 +60,7 @@ export function parseConfig(argv: readonly string[]): SpikeConfig { return { repoRoot: resolveRepoRoot(), udid: required(parsed.values, '--udid'), - ...optionalPath(parsed.values.get('--guest-companion'), 'guestCompanion'), - ...optionalCommand(parsed.values.get('--guest-python'), 'guestPython'), - ...optionalPath(parsed.values.get('--guest-site-packages'), 'guestSitePackages'), + ...optionalPath(parsed.values.get('--guest-bridge'), 'guestBridge'), stateDir, derivedPath, outputPath: resolvePath( @@ -200,20 +194,9 @@ function required(values: Map, flag: string): string { function optionalPath( value: string | undefined, - key: 'guestCompanion' | 'guestSitePackages', -): { guestCompanion: string } | { guestSitePackages: string } | Record { - return value === undefined - ? {} - : ({ [key]: path.resolve(value) } as - | { guestCompanion: string } - | { guestSitePackages: string }); -} - -function optionalCommand( - value: string | undefined, - key: 'guestPython', -): { guestPython: string } | Record { - return value === undefined ? {} : ({ [key]: value } as { guestPython: string }); + key: 'guestBridge', +): { guestBridge: string } | Record { + return value === undefined ? {} : { [key]: path.resolve(value) }; } function resolvePath(value: string | undefined, fallback: string): string { @@ -222,6 +205,6 @@ function resolvePath(value: string | undefined, fallback: string): string { function printHelp(): void { process.stdout.write( - `Usage: pnpm bench:ios-ax-bridge -- [options]\n\nRequired:\n --udid \n\nOptions:\n --candidate guest-simulator-framework-bridge, xctest-control\n --state #2189 state names\n --screen #2189 fixture names\n --samples #2189 minimums: cold 10, warm/relaunch 20\n --apply-preferences apply task-owned preboot AX preference experiment\n --guest-companion official idb_companion binary with SimulatorFrameworkBridge\n --guest-python Python interpreter used for the persistent idb client\n --guest-site-packages official idb 1.5.2 site-packages directory\n --out raw JSON report path\n --keep-device leave the dedicated Simulator shutdown/boot state unchanged\n`, + `Usage: pnpm bench:ios-ax-bridge -- [options]\n\nRequired:\n --udid \n\nOptions:\n --candidate guest-simulator-framework-bridge, xctest-control\n --state #2189 state names\n --screen #2189 fixture names\n --samples #2189 minimums: cold 10, warm/relaunch 20\n --apply-preferences apply task-owned preboot AX preference experiment\n --guest-bridge official idb 1.5.2 Resources/SimulatorFrameworkBridge guest executable\n --out raw JSON report path\n --keep-device leave the dedicated Simulator shutdown/boot state unchanged\n`, ); } diff --git a/scripts/ios-ax-bridge-spike/corrected-markdown.ts b/scripts/ios-ax-bridge-spike/corrected-markdown.ts index 698c2fa08..46a729edf 100644 --- a/scripts/ios-ax-bridge-spike/corrected-markdown.ts +++ b/scripts/ios-ax-bridge-spike/corrected-markdown.ts @@ -9,10 +9,22 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { `- Revision: ${report.revision.commit} (${report.revision.branch})`, `- Target: ${report.target.name} (${report.target.udid}, ${report.target.runtime})`, `- Generated: ${report.generatedAt}`, - `- Immutable broad raw artifact: \`${report.sourceArtifact.path}\` (original ${report.sourceArtifact.originalDecision}; interpretation superseded to stretch-only)`, - `- Narrow targeted raw artifact: \`${report.targetedArtifact.path}\``, + `- Immutable broad raw artifact: \`${report.sourceArtifact.path}\` (original ${report.sourceArtifact.originalDecision}; interpretation superseded to stretch-only; host client ${report.sourceArtifact.hostClient})`, + ...(report.supersededTargetedArtifact + ? [ + `- Superseded targeted raw artifact: \`${report.supersededTargetedArtifact.path}\` (${report.supersededTargetedArtifact.hostClient}; its bootstrap and recovery samples raced app readiness and shared one wedged companion, so they measured the prototype packaging, not the mechanism)`, + ] + : []), + `- Narrow targeted raw artifact: \`${report.targetedArtifact.path}\` (host client ${report.guestMechanism.client})`, + `- Host at generation: load average ${report.host.loadAverage1m} on ${report.host.cpuCores} cores`, '', - 'The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract.', + 'The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Warm and relaunch cells come from the broad run, whose host client was the idb companion plus a Python reader; the in-Simulator reader and the read it performs are the same mechanism the Node-direct targeted evidence uses, and the host client only adds latency, so those cells bound the mechanism from above.', + '', + '## Evaluated guest mechanism', + '', + `- Guest reader: ${report.guestMechanism.implementation} ${report.guestMechanism.release} \`${report.guestMechanism.guestBinary}\` (SHA-256 \`${report.guestMechanism.guestBinarySha256}\`) from \`${report.guestMechanism.companionArchive}\` (SHA-256 \`${report.guestMechanism.companionSha256}\`).`, + `- Transport: ${report.guestMechanism.transport}.`, + `- Traversal: ${report.guestMechanism.traversal}.`, '', '## Hard gates', '', @@ -39,10 +51,10 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { '## Nonresident bootstrap', '', `- ${report.hardGates.nonresidentBootstrap.evidence}.`, - '- The timed boundary begins with a nonresident adapter and ends at the first usable guest tree; Simulator/app readiness was established before the timer.', + '- The timed boundary begins with no resident bridge and ends at the first usable guest tree. Before each timer the fixture app was relaunched and a throwaway probe bridge polled until the new generation answered with a tree (readiness), then exited.', '', - '| Sample | Duration ms | Usable tree | Failure | Nodes | Generation |', - '|---:|---:|---|---|---:|---|', + '| Sample | Duration ms | Usable tree | Failure | Nodes | Depth | Generation | Readiness ms | Readiness attempts | Host load |', + '|---:|---:|---|---|---:|---:|---|---:|---:|---:|', ...report.bootstrap.map(bootstrapLine), '', '## Live candidate recovery', @@ -53,10 +65,10 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { '|---|---|---|---|', ...report.liveRecovery.map(recoveryLine), '', - '## Hierarchy residue', + '## Hierarchy', '', - `- ${report.hardGates.hierarchyResidue.evidence}.`, - `- Observed traversal depth: ${report.hierarchy.observedTraversalDepth}; depth complete: **${report.hierarchy.depthComplete}**. The guest response is flat and carries typed \`${report.hierarchy.residue.kind}/${report.hierarchy.residue.fields.join(',')}\` residue.`, + `- ${report.hardGates.hierarchy.evidence}.`, + `- Observed traversal depth: ${report.hierarchy.observedTraversalDepth}; depth complete: **${report.hierarchy.depthComplete}**; interpretation: ${report.hierarchy.interpretation}.`, '', '## Stretch findings', '', @@ -84,7 +96,7 @@ function coldDiagnosticLine(diagnostic: CorrectedReport['coldDiagnostics'][numbe function bootstrapLine(sample: CorrectedReport['bootstrap'][number]): string { const response = sample.response; - return `| ${sample.index} | ${sample.durationMs.toFixed(1)} | ${sample.usableTree} | ${failureText(response.failure)} | ${response.metrics.nodeCount} | ${response.acquisition?.targetGeneration ?? '–'} |`; + return `| ${sample.index} | ${sample.durationMs.toFixed(1)} | ${sample.usableTree} | ${failureText(response.failure)} | ${response.metrics.nodeCount} | ${response.metrics.maxTraversalDepth} | ${response.acquisition?.targetGeneration ?? '–'} | ${sample.readinessMs.toFixed(0)} | ${sample.readinessAttempts} | ${sample.host.loadAverage1m} |`; } function recoveryLine(probe: CorrectedReport['liveRecovery'][number]): string { diff --git a/scripts/ios-ax-bridge-spike/corrected-report.test.ts b/scripts/ios-ax-bridge-spike/corrected-report.test.ts index c483b594e..29b514fd9 100644 --- a/scripts/ios-ax-bridge-spike/corrected-report.test.ts +++ b/scripts/ios-ax-bridge-spike/corrected-report.test.ts @@ -7,7 +7,7 @@ const SOURCE = 'docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz'; const TARGETED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz'; describe('corrected Simulator AX bridge report', () => { - test('keeps fast resident acquisition separate from failed cold bootstrap and recovery', () => { + test('evaluates every hard gate from the checked-in artifacts and renders the decision', () => { const report = buildCorrectedReport({ sourcePath: SOURCE, source: readSpikeReport(path.resolve(SOURCE)), @@ -15,11 +15,19 @@ describe('corrected Simulator AX bridge report', () => { targeted: readTargetedArtifact(path.resolve(TARGETED)), }); - expect(report.decision).toBe('NO-GO'); expect(report.hardGates.warm.status).toBe('PASS'); expect(report.hardGates.relaunch.status).toBe('PASS'); - expect(report.hardGates.nonresidentBootstrap.status).toBe('FAIL'); - expect(report.hardGates.liveRecovery.status).toBe('FAIL'); - expect(renderCorrectedMarkdown(report)).toContain('Decision: **NO-GO**'); + expect(report.hardGates.liveRecovery.status).toBe('PASS'); + expect(report.hardGates.hierarchy.status).toBe('PASS'); + expect(report.hierarchy.interpretation).toBe('nested-tree'); + expect(report.hierarchy.observedTraversalDepth).toBeGreaterThan(10); + expect(report.guestMechanism.client).toBe('node-direct-socket'); + expect(report.bootstrap).toHaveLength(5); + expect(report.bootstrap.every((sample) => sample.readinessAttempts >= 1)).toBe(true); + const failedGates = Object.entries(report.hardGates).filter( + ([, gate]) => gate.status === 'FAIL', + ); + expect(report.decision).toBe(failedGates.length === 0 ? 'GO' : 'NO-GO'); + expect(renderCorrectedMarkdown(report)).toContain(`Decision: **${report.decision}**`); }); }); diff --git a/scripts/ios-ax-bridge-spike/corrected-report.ts b/scripts/ios-ax-bridge-spike/corrected-report.ts index 9af9ef21b..6ff416023 100644 --- a/scripts/ios-ax-bridge-spike/corrected-report.ts +++ b/scripts/ios-ax-bridge-spike/corrected-report.ts @@ -49,11 +49,11 @@ export function buildCorrectedReport(options: { ), nonresidentBootstrap: bootstrapGate(options.targeted), liveRecovery: recoveryGate(options.targeted), - hierarchyResidue: hierarchy.gate, + hierarchy: hierarchy.gate, } as const; const failedGates = Object.entries(hardGates).filter(([, gate]) => gate.status === 'FAIL'); return { - schemaVersion: 'ios-simulator-ax-bridge-corrected.v1', + schemaVersion: 'ios-simulator-ax-bridge-corrected.v2', interpretation: 'maintainer-corrected', generatedAt: new Date().toISOString(), revision: options.targeted.revision, @@ -62,10 +62,20 @@ export function buildCorrectedReport(options: { revision: options.source.revision, originalDecision: 'NO-GO', interpretation: 'superseded-stretch-only', + hostClient: options.targeted.sourceArtifact.hostClient, + }, + ...(options.targeted.supersededTargetedArtifact + ? { + supersededTargetedArtifact: options.targeted.supersededTargetedArtifact, + } + : {}), + targetedArtifact: { + path: options.targetedPath, + revision: options.targeted.revision, }, - targetedArtifact: { path: options.targetedPath, revision: options.targeted.revision }, target: options.targeted.target, toolchain: options.targeted.toolchain, + host: options.targeted.host, guestMechanism: options.targeted.guestMechanism, readiness, hardGates, @@ -74,6 +84,7 @@ export function buildCorrectedReport(options: { ...options.source.decisionReasons.map((reason) => `Original broad-run finding: ${reason}`), 'Cold and cold-cold first-look measurements include Simulator, app, daemon, and runner readiness costs; they are diagnostics, not candidate-owned hard gates.', 'The former warm 75/150 ms and relaunch 250 ms thresholds are stretch findings under the corrected contract.', + `Nonresident bootstrap samples were taken on a host with 1-minute load average ${options.targeted.host.loadAverage1m} on ${options.targeted.host.cpuCores} cores; per-sample load is recorded with each sample.`, ], decision: failedGates.length === 0 ? 'GO' : 'NO-GO', decisionReasons: failedGates.map( @@ -177,7 +188,12 @@ function bootstrapGate(targeted: TargetedRawArtifact): GateResult { return { status: passed ? 'PASS' : 'FAIL', target: 'nonresident companion + reader bootstrap and first usable tree p95 <2,000 ms', - evidence: `${usable.length}/${targeted.bootstrap.length} usable trees; p95=${formatMs(p95)}; timer covered adapter acquireBatch only after app readiness, with no xcodebuild, XCTest, or agent-device runner in the timed path`, + evidence: `${usable.length}/${targeted.bootstrap.length} usable trees; p95=${formatMs(p95)}; the timer covered guest spawn, socket connect, and the first tree after a throwaway probe observed the relaunched app's readiness (readiness p95=${formatMs( + optionalPercentile( + targeted.bootstrap.map((sample) => sample.readinessMs), + 95, + ), + )}), with no resident bridge, xcodebuild, XCTest, or agent-device runner in the timed path`, }; } @@ -222,32 +238,52 @@ function isUnavailableGeneration( return residue.kind === 'unavailable-fact' && residue.fact === 'generation'; } +/** + * Hierarchy is a hard fact, not a presentation: the guest must either return structural depth with + * an honest truncation flag, or type its absence as provider-pruned residue. A flat tree claiming + * completeness fails. + */ function hierarchyEvidence(targeted: TargetedRawArtifact): { gate: GateResult; value: CorrectedReport['hierarchy']; } { - const residues = targeted.bootstrap.flatMap( - (sample) => sample.response.acquisition?.residue ?? [], - ); - const typed = residues.some( - (residue) => residue.kind === 'provider-pruned' && residue.fields.includes('depth'), + const usable = targeted.bootstrap.filter((sample) => sample.usableTree); + const depth = Math.max(0, ...usable.map((sample) => sample.response.metrics.maxTraversalDepth)); + const truncated = usable.some((sample) => sample.response.acquisition?.truncated === true); + const typedFlat = usable.some((sample) => + (sample.response.acquisition?.residue ?? []).some( + (residue) => residue.kind === 'provider-pruned' && residue.fields.includes('depth'), + ), ); - const depth = targeted.bootstrap.at(0)?.response.metrics.maxTraversalDepth; - const value = { - residue: { kind: 'provider-pruned', fields: ['depth'] as const }, - observedTraversalDepth: typeof depth === 'number' ? depth : 0, - depthComplete: false as const, - interpretation: 'flat-provider-response' as const, - }; + if (usable.length > 0 && depth > 0) { + return { + gate: { + status: 'PASS', + target: + 'structural hierarchy acquired with typed truncation, or its absence typed as residue', + evidence: `nested tree with traversal depth ${depth} in ${usable.length}/${targeted.bootstrap.length} samples; truncated=${truncated}`, + }, + value: { + observedTraversalDepth: depth, + depthComplete: !truncated, + interpretation: 'nested-tree', + }, + }; + } return { gate: { - status: typed ? 'PASS' : 'FAIL', - target: 'missing hierarchy represented as typed provider-pruned depth residue', - evidence: typed - ? 'provider-pruned/depth observed; traversal depth is not treated as complete' - : 'no typed provider-pruned/depth residue observed', + status: typedFlat ? 'PASS' : 'FAIL', + target: + 'structural hierarchy acquired with typed truncation, or its absence typed as residue', + evidence: typedFlat + ? 'flat response with typed provider-pruned/depth residue; depth is not treated as complete' + : 'no hierarchy and no typed residue observed', + }, + value: { + observedTraversalDepth: 0, + depthComplete: false, + interpretation: usable.length === 0 ? 'not-observed' : 'flat-provider-response', }, - value, }; } diff --git a/scripts/ios-ax-bridge-spike/corrected-types.ts b/scripts/ios-ax-bridge-spike/corrected-types.ts index 3289810f9..448e81345 100644 --- a/scripts/ios-ax-bridge-spike/corrected-types.ts +++ b/scripts/ios-ax-bridge-spike/corrected-types.ts @@ -1,16 +1,24 @@ import type { SpikeCell, SpikeReport, SpikeRequest, SpikeResponse } from './types.ts'; -const CORRECTED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-corrected.v1' as const; -export const TARGETED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-targeted.v1' as const; +const CORRECTED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-corrected.v2' as const; +export const TARGETED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-targeted.v2' as const; export type TargetedRevision = SpikeReport['revision']; +export type HostLoad = Readonly<{ loadAverage1m: number; cpuCores: number }>; + export type TargetedBootstrapSample = Readonly<{ index: number; + /** Candidate-owned: fresh guest spawn + connect + first usable tree, after readiness. */ durationMs: number; usableTree: boolean; response: SpikeResponse; stderr: string; + /** Fixture-owned: app relaunch until a throwaway probe first read a tree; not charged. */ + appPid: number; + readinessMs: number; + readinessAttempts: number; + host: HostLoad; }>; export type TargetedRecoveryProbe = Readonly<{ @@ -25,9 +33,15 @@ export type TargetedRawArtifact = Readonly<{ generatedAt: string; revision: TargetedRevision; command: string; - sourceArtifact: Readonly<{ path: string; revision: TargetedRevision }>; + sourceArtifact: Readonly<{ + path: string; + revision: TargetedRevision; + hostClient: string; + }>; + supersededTargetedArtifact?: Readonly<{ path: string; hostClient: string }>; target: SpikeReport['target']; toolchain: SpikeReport['toolchain']; + host: HostLoad; guestMechanism: SpikeReport['guestMechanism']; preferenceEvidence: SpikeReport['preferenceEvidence']; config: Readonly<{ @@ -38,7 +52,12 @@ export type TargetedRawArtifact = Readonly<{ }>; bootstrap: readonly TargetedBootstrapSample[]; recovery: readonly TargetedRecoveryProbe[]; - simulator: Readonly<{ finalState: string; accessibilityPlistSha256: string }>; + simulator: Readonly<{ + finalState: string; + accessibilityPlistSha256: string | null; + automationEnabledBefore: unknown; + automationEnabledAfter: unknown; + }>; }>; export type LatencySummary = Readonly<{ @@ -70,10 +89,13 @@ export type CorrectedReport = Readonly<{ revision: TargetedRevision; originalDecision: 'NO-GO'; interpretation: 'superseded-stretch-only'; + hostClient: string; }>; + supersededTargetedArtifact?: Readonly<{ path: string; hostClient: string }>; targetedArtifact: Readonly<{ path: string; revision: TargetedRevision }>; target: SpikeReport['target']; toolchain: SpikeReport['toolchain']; + host: HostLoad; guestMechanism: SpikeReport['guestMechanism']; readiness: readonly LatencySummary[]; hardGates: Readonly<{ @@ -81,7 +103,7 @@ export type CorrectedReport = Readonly<{ relaunch: GateResult; nonresidentBootstrap: GateResult; liveRecovery: GateResult; - hierarchyResidue: GateResult; + hierarchy: GateResult; }>; coldDiagnostics: readonly Readonly<{ state: 'cold-cold' | 'cold'; @@ -96,10 +118,9 @@ export type CorrectedReport = Readonly<{ liveRecovery: readonly TargetedRecoveryProbe[]; bootstrap: readonly TargetedBootstrapSample[]; hierarchy: Readonly<{ - residue: Readonly<{ kind: 'provider-pruned'; fields: readonly ['depth'] }>; observedTraversalDepth: number; - depthComplete: false; - interpretation: 'flat-provider-response'; + depthComplete: boolean; + interpretation: 'nested-tree' | 'flat-provider-response' | 'not-observed'; }>; productionBoundary: 'no-production-routing-changes'; }>; diff --git a/scripts/ios-ax-bridge-spike/decision.test.ts b/scripts/ios-ax-bridge-spike/decision.test.ts index 50de3f673..3f31adc65 100644 --- a/scripts/ios-ax-bridge-spike/decision.test.ts +++ b/scripts/ios-ax-bridge-spike/decision.test.ts @@ -56,6 +56,7 @@ test('reports a decisive partial corpus failure instead of replacing it with com ...cell, acquisitionSamples: cell.acquisitionSamples.map((sample) => ({ ...sample, + wallClockMs: 1_000, metrics: { ...sample.metrics!, durationMs: 1_000 }, })), }; @@ -90,7 +91,7 @@ test('selects one complete viable guest bridge without requiring the control to failure: { kind: 'timeout', code: 'batch-duration-limit' }, }, ]); - assert.deepEqual(result, { decision: 'GO', reasons: [] }); + assert.deepEqual(result, { decision: 'GO', reasons: [], stretchFindings: [] }); }); function readableCell(candidate: CandidateId, state: LocalState, screen: ScreenId): SpikeCell { diff --git a/scripts/ios-ax-bridge-spike/decision.ts b/scripts/ios-ax-bridge-spike/decision.ts index 3efd9a0fc..2e1219aac 100644 --- a/scripts/ios-ax-bridge-spike/decision.ts +++ b/scripts/ios-ax-bridge-spike/decision.ts @@ -7,6 +7,19 @@ import type { } from './types.ts'; import { parseLocalStates, parseScreenIds } from '../ios-snapshot-benchmark/definitions.ts'; +/** + * Hard viability tiers from the #2192 measurement contract (maintainer-corrected 2026-09-02): warm + * daemon-resident acquisition p50 < 300 ms and p95 < 500 ms per screen, relaunch first usable tree + * p95 < 500 ms after observed app readiness. The former 75/150 ms and 250 ms values are stretch + * optimization targets and are reported separately; they never decide GO/NO-GO. + */ +export const HARD_WARM_P50_MS = 300; +export const HARD_WARM_P95_MS = 500; +export const HARD_RELAUNCH_P95_MS = 500; +export const STRETCH_WARM_P50_MS = 75; +export const STRETCH_WARM_P95_MS = 150; +export const STRETCH_RELAUNCH_MS = 250; + export function decideSpike( cells: readonly SpikeCell[], lifecycle: LifecycleEvidence, @@ -17,7 +30,7 @@ export function decideSpike( candidate: CandidateId; failure?: { kind: string; code?: string }; }[] = [], -): { decision: 'GO' | 'NO-GO'; reasons: string[] } { +): { decision: 'GO' | 'NO-GO'; reasons: string[]; stretchFindings: string[] } { const reasons = [ ...statusReasons(status), ...preferenceReasons(preferences), @@ -28,6 +41,7 @@ export function decideSpike( return { decision: uniqueReasons.length === 0 ? 'GO' : 'NO-GO', reasons: uniqueReasons, + stretchFindings: [...new Set(stretchFindings(cells))], }; } @@ -36,8 +50,7 @@ function statusReasons(status: 'completed' | 'stopped'): string[] { } function preferenceReasons(preferences: PreferenceEvidence): string[] { - if (!preferences.applied) - return ['The required task-owned Simulator preference experiment was not run.']; + if (!preferences.applied) return []; if (!preferences.restored) return ['The task-owned Simulator preference experiment was not restored.']; if (preferences.fixtureLaunchCompatible === false) @@ -208,33 +221,60 @@ function resourceReasons(cell: SpikeCell, limits: ResourceLimits): string[] { return reasons; } +/** + * Candidate-owned latency only: the wall clock of the acquisition after the fixture admitted the app + * generation as ready. Simulator boot, app launch, daemon, and XCTest runner preparation are recorded + * per sample (`preparationMs`) but never charged to the bridge. + */ function latencyReasons(cell: SpikeCell): string[] { - const successful = cell.acquisitionSamples.filter( - (sample) => sample.ok && sample.firstTree === 'readable', - ); - const firstLook = finite(successful.map((sample) => sample.firstLookMs)); - const firstLookTarget = { - 'cold-cold': { limit: 5_000, label: 'cold-cold first look missed the 5 second target.' }, - cold: { limit: 1_500, label: 'cold prepared first look missed the 1.5 second target.' }, - relaunch: { limit: 250, label: 'relaunch first look missed the 250 ms target.' }, - warm: undefined, - }[cell.state]; + if (cell.candidate === 'xctest-control') return []; + const acquisition = finite(readableSamples(cell).map((sample) => sample.wallClockMs)); const reasons: string[] = []; - if (firstLookTarget && percentile(firstLook, 95) >= firstLookTarget.limit) { - reasons.push(`${cell.candidate} ${firstLookTarget.label}`); - } - const acquisition = finite(successful.map((sample) => sample.metrics?.durationMs)); if ( cell.state === 'warm' && - (percentile(acquisition, 50) >= 75 || percentile(acquisition, 95) >= 150) + (percentile(acquisition, 50) >= HARD_WARM_P50_MS || + percentile(acquisition, 95) >= HARD_WARM_P95_MS) ) { reasons.push( - `${cell.candidate} ${cell.state}/${cell.screen} acquisition missed the 75/150 ms target.`, + `${cell.candidate} ${cell.state}/${cell.screen} acquisition missed the hard ${HARD_WARM_P50_MS}/${HARD_WARM_P95_MS} ms target.`, + ); + } + if (cell.state === 'relaunch' && percentile(acquisition, 95) >= HARD_RELAUNCH_P95_MS) { + reasons.push( + `${cell.candidate} relaunch first usable tree missed the hard ${HARD_RELAUNCH_P95_MS} ms target after app readiness.`, ); } return reasons; } +function stretchFindings(cells: readonly SpikeCell[]): string[] { + const findings: string[] = []; + for (const cell of cells) { + if (cell.candidate === 'xctest-control') continue; + const acquisition = finite(readableSamples(cell).map((sample) => sample.wallClockMs)); + if (acquisition.length === 0) continue; + if ( + cell.state === 'warm' && + (percentile(acquisition, 50) >= STRETCH_WARM_P50_MS || + percentile(acquisition, 95) >= STRETCH_WARM_P95_MS) + ) { + findings.push( + `${cell.candidate} ${cell.state}/${cell.screen} acquisition missed the stretch ${STRETCH_WARM_P50_MS}/${STRETCH_WARM_P95_MS} ms target.`, + ); + } + if (cell.state === 'relaunch' && percentile(acquisition, 95) >= STRETCH_RELAUNCH_MS) { + findings.push( + `${cell.candidate} relaunch first usable tree missed the stretch ${STRETCH_RELAUNCH_MS} ms target.`, + ); + } + } + return findings; +} + +function readableSamples(cell: SpikeCell): SpikeCell['acquisitionSamples'] { + return cell.acquisitionSamples.filter((sample) => sample.ok && sample.firstTree === 'readable'); +} + function exceedsLimit(value: number | null | undefined, limit: number): boolean { return value !== null && value !== undefined && value > limit; } diff --git a/scripts/ios-ax-bridge-spike/guest-adapter.ts b/scripts/ios-ax-bridge-spike/guest-adapter.ts index 8579c3ed0..da3f5be7a 100644 --- a/scripts/ios-ax-bridge-spike/guest-adapter.ts +++ b/scripts/ios-ax-bridge-spike/guest-adapter.ts @@ -1,60 +1,67 @@ import fs from 'node:fs'; +import net from 'node:net'; import os from 'node:os'; import path from 'node:path'; -import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'; -import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import { PersistentFramedProcess } from './persistent-process.ts'; +import { spawn, spawnSync, type ChildProcess } from 'node:child_process'; +import { performance } from 'node:perf_hooks'; +import { DEFAULT_SPIKE_LIMITS, validateRawAcquisition } from './limits.ts'; import { failureResponse } from './protocol.ts'; +import { + acquisitionFromEnvelope, + encodeGuestFrame, + failureFromEnvelope, + GuestFrameDecoder, + guestDescribeRequest, + GuestWireError, + isTargetNotReady, + type GuestEnvelope, +} from './guest-wire.ts'; import type { AcquisitionAdapter, AdapterOptions } from './adapter.ts'; -import type { ResourceLimits, SpikeRequest } from './types.ts'; +import type { + GuestMechanismEvidence, + ResourceLimits, + SpikeFailure, + SpikeRequest, + SpikeResponse, +} from './types.ts'; const CANDIDATE = 'guest-simulator-framework-bridge' as const; -export const GUEST_MECHANISM_EVIDENCE = { +/** Idle window after which an orphaned guest ends itself; the host never relies on it for teardown. */ +const GUEST_IDLE_TIMEOUT_SECONDS = 300; +/** Bounded wait for a target whose accessibility server is still registering (fresh launch). */ +const TARGET_NOT_READY_RETRY_MS = 150; +const TARGET_NOT_READY_RETRIES = 2; +const CONNECT_POLL_MS = 15; + +export const GUEST_MECHANISM_EVIDENCE: GuestMechanismEvidence = { implementation: 'idb', release: 'v1.5.2', companionArchive: 'idb-companion.macos-arm64.tar.gz', companionSha256: 'f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08', - cliArchive: 'idb-cli-1.5.2.arm64_tahoe.bottle.tar.gz', - cliSha256: 'ce574aa28ecf3e33a5249d60578a1dc2f609ec82f7e240907b6d9fde6251dda6', - backend: 'axbridge-persistent', - outputFormat: 'default', - client: 'persistent-in-repository-reader', -} as const; + guestBinary: 'Resources/SimulatorFrameworkBridge', + guestBinarySha256: '3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58', + transport: + 'xcrun simctl spawn SimulatorFrameworkBridge accessibility serve --idle-timeout 300 --exit-on-disconnect true; UNIX socket frames are a 4-byte big-endian length + JSON', + traversal: + 'describe with snapshotTree=true (one XCTest snapshot fetch per read) and automationMode=true asserted per request; no idb_companion, gRPC, or Python client', + client: 'node-direct-socket', +}; export function createGuestSimulatorFrameworkBridgeAdapter( options: AdapterOptions, ): AcquisitionAdapter { const limits = options.limits ?? DEFAULT_SPIKE_LIMITS; - const readerPath = path.join( - options.repoRoot, - 'scripts', - 'ios-ax-bridge-spike', - 'guest-reader.py', - ); - if ( - !options.guestCompanion || - !fs.existsSync(options.guestCompanion) || - !options.guestSitePackages || - !fs.existsSync(options.guestSitePackages) || - !fs.existsSync(readerPath) - ) { + if (!options.guestBridge || !fs.existsSync(options.guestBridge)) { return unavailableAdapter('guest-tool-unavailable'); } - const session = new GuestSession({ - companionPath: options.guestCompanion, - python: options.guestPython ?? 'python3', - sitePackages: options.guestSitePackages, - readerPath, - repoRoot: options.repoRoot, - limits, - }); + const session = new GuestSession(options.guestBridge, limits); return { candidate: CANDIDATE, acquireBatch: (requests, acquireOptions) => session.acquireBatch(requests, acquireOptions), close: () => session.close(), evidence: { - terminateReaderOnNextBatch: () => session.terminateReaderOnNextBatchForEvidence(), + terminateReaderOnNextBatch: () => session.killGuestOnNextRequestForEvidence(), }, }; } @@ -65,13 +72,7 @@ function unavailableAdapter(code: string): AcquisitionAdapter { async acquireBatch(requests) { return { responses: requests.map((request) => - failureResponse( - request, - { kind: 'unsupported-mechanism', code }, - { - requestBytes: Buffer.byteLength(JSON.stringify(request)) + 1, - }, - ), + failureResponse(request, { kind: 'unsupported-mechanism', code }), ), stderr: '', }; @@ -79,179 +80,400 @@ function unavailableAdapter(code: string): AcquisitionAdapter { }; } -type GuestSessionOptions = Readonly<{ - companionPath: string; - python: string; - sitePackages: string; - readerPath: string; - repoRoot: string; - limits: ResourceLimits; +class GuestError extends Error { + readonly kind: SpikeFailure['kind']; + readonly code: string; + + constructor(kind: SpikeFailure['kind'], code: string) { + super(`${kind}/${code}`); + this.name = 'GuestError'; + this.kind = kind; + this.code = code; + } +} + +type Pending = Readonly<{ + resolve: (frame: Buffer) => void; + reject: (error: GuestError) => void; }>; +/** + * One guest `accessibility serve` process per session, spawned into the Simulator's launchd domain + * through `simctl spawn`, reached over a private UNIX socket, and held for the session. The guest is + * private to this host (`--exit-on-disconnect`), so dropping the socket is the whole teardown; the + * next request respawns. + */ class GuestSession { - private readonly tempDir = fs.mkdtempSync(path.join(os.tmpdir(), 'agent-device-guest-')); - private readonly socketPath = path.join(this.tempDir, 'bridge.sock'); - private readonly companionPath: string; - private companion?: ChildProcessWithoutNullStreams; - private companionUdid?: string; - private companionStderr = ''; + private readonly socketPath = path.join( + socketDirectory(), + `${process.pid.toString(36)}-${Math.random().toString(36).slice(2, 8)}.sock`, + ); + private child?: ChildProcess; + private socket?: net.Socket; + private decoder = new GuestFrameDecoder(); + private pending?: Pending; + private udid?: string; + private log = ''; private closed = false; - private readonly reader: PersistentFramedProcess; - - constructor(options: GuestSessionOptions) { - this.companionPath = options.companionPath; - this.reader = new PersistentFramedProcess({ - file: options.python, - args: [options.readerPath, '--socket', this.socketPath], - cwd: options.repoRoot, - env: { - PYTHONPATH: [options.sitePackages, process.env.PYTHONPATH] - .filter(Boolean) - .join(path.delimiter), - PYTHONUNBUFFERED: '1', - }, - limits: options.limits, - beforeStart: (requests) => this.ensureCompanion(requests[0]!.simulatorUdid, options.limits), - }); + private killNext = false; + private serial: Promise = Promise.resolve(); + private readonly bridgePath: string; + private readonly limits: ResourceLimits; + + constructor(bridgePath: string, limits: ResourceLimits) { + this.bridgePath = bridgePath; + this.limits = limits; } - async acquireBatch( + acquireBatch( requests: readonly SpikeRequest[], options: Readonly<{ signal?: AbortSignal }> = {}, - ) { - const result = await this.reader.acquireBatch(requests, options); - const stderr = this.takeCompanionStderr(); - return stderr ? { ...result, stderr: `${stderr}${result.stderr}` } : result; + ): Promise<{ responses: readonly SpikeResponse[]; stderr: string }> { + const operation = this.serial.then(() => this.execute(requests, options.signal)); + this.serial = operation.catch(() => undefined); + return operation; } async close(): Promise { this.closed = true; - await this.reader.close(); - await terminateAndWait(this.companion); - this.companion = undefined; - fs.rmSync(this.tempDir, { recursive: true, force: true }); + this.dropConnection(new GuestError('cancelled', 'process-closed')); + await this.reapChild(); + fs.rmSync(this.socketPath, { force: true }); } - terminateReaderOnNextBatchForEvidence(): void { - this.reader.terminateReaderOnNextBatchForEvidence(); + killGuestOnNextRequestForEvidence(): void { + this.killNext = true; } - private async ensureCompanion(udid: string, limits: ResourceLimits): Promise { - if (this.closed) throw new GuestStartError('guest-adapter-closed'); - if (this.companion && !this.companion.killed && this.companion.exitCode === null) { - if (this.companionUdid !== udid) throw new GuestStartError('guest-udid-changed'); + private async execute( + requests: readonly SpikeRequest[], + signal: AbortSignal | undefined, + ): Promise<{ responses: readonly SpikeResponse[]; stderr: string }> { + const responses: SpikeResponse[] = []; + for (const request of requests) { + // Each request carries its own bounds; the deadline is the request's duration budget, so a + // caller can shorten one read (the timeout probe) without reshaping the session. + const deadline = performance.now() + request.limits.maxDurationMs; + responses.push(await this.acquire(request, deadline, signal)); + } + return { responses, stderr: this.takeLog() }; + } + + private async acquire( + request: SpikeRequest, + deadline: number, + signal: AbortSignal | undefined, + ): Promise { + const started = performance.now(); + const frame = encodeGuestFrame(guestDescribeRequest(request, request.limits)); + if (frame.length > request.limits.maxRequestBytes) { + return failureResponse(request, { + kind: 'transport-failure', + code: 'request-limit-exceeded', + }); + } + try { + if (signal?.aborted) throw new GuestError('cancelled', 'abort-signal'); + if (this.closed) throw new GuestError('transport-failure', 'guest-adapter-closed'); + await this.ensureConnected(request.simulatorUdid, deadline, signal); + const { envelope, responseBytes } = await this.readWithReadinessRetry( + frame, + deadline, + signal, + ); + return this.responseFor(request, envelope, { + requestBytes: frame.length, + responseBytes, + durationMs: performance.now() - started, + }); + } catch (error) { + const guestError = asGuestError(error); + return failureResponse( + request, + { kind: guestError.kind, code: guestError.code }, + { requestBytes: frame.length, durationMs: performance.now() - started }, + ); + } + } + + private async readWithReadinessRetry( + frame: Buffer, + deadline: number, + signal: AbortSignal | undefined, + ): Promise<{ envelope: GuestEnvelope; responseBytes: number }> { + let attempt = await this.roundTrip(frame, deadline, signal); + for (let retry = 0; retry < TARGET_NOT_READY_RETRIES; retry += 1) { + if (attempt.envelope.ok === true || !isTargetNotReady(attempt.envelope)) break; + if (performance.now() + TARGET_NOT_READY_RETRY_MS * 2 > deadline) break; + await sleep(TARGET_NOT_READY_RETRY_MS); + attempt = await this.roundTrip(frame, deadline, signal); + } + return attempt; + } + + private responseFor( + request: SpikeRequest, + envelope: GuestEnvelope, + metrics: { + requestBytes: number; + responseBytes: number; + durationMs: number; + }, + ): SpikeResponse { + if (envelope.ok !== true) { + return failureResponse( + request, + failureFromEnvelope(envelope, request, processAlive), + metrics, + ); + } + const parsed = acquisitionFromEnvelope(envelope, request, request.limits); + if ('kind' in parsed) return failureResponse(request, parsed, metrics); + const validated = validateRawAcquisition(parsed.acquisition, request.limits); + if (!validated.ok) { + return failureResponse(request, { kind: 'malformed-tree', code: validated.code }, metrics); + } + return { + version: 1, + id: request.id, + candidate: request.candidate, + ok: true, + acquisition: parsed.acquisition, + metrics: { + ...metrics, + nodeCount: parsed.acquisition.nodes.length, + maxTraversalDepth: validated.maxTraversalDepth, + cpuMs: null, + memoryBytes: null, + }, + }; + } + + private async ensureConnected( + udid: string, + deadline: number, + signal: AbortSignal | undefined, + ): Promise { + if (this.socket && !this.socket.destroyed) { + if (this.udid !== udid) throw new GuestError('transport-failure', 'guest-udid-changed'); return; } + this.udid = udid; + this.spawnGuest(udid); + this.socket = await this.connect(deadline, signal); + this.decoder = new GuestFrameDecoder(this.limits.maxResponseBytes); + const socket = this.socket; + socket.on('data', (chunk: Buffer) => this.consume(chunk)); + socket.on('close', () => { + if (this.socket === socket) this.socket = undefined; + this.failPending(new GuestError('process-crash', 'guest-exited')); + }); + socket.on('error', () => { + this.failPending(new GuestError('transport-failure', 'guest-socket-error')); + }); + } + + private spawnGuest(udid: string): void { fs.rmSync(this.socketPath, { force: true }); - const companion = spawn( - this.companionPath, + const child = spawn( + 'xcrun', [ - '--udid', + 'simctl', + 'spawn', udid, - '--grpc-domain-sock', + this.bridgePath, + 'accessibility', + 'serve', this.socketPath, - '--log-level', - 'warning', - '--idle-shutdown-time', - '3600', + '--idle-timeout', + String(GUEST_IDLE_TIMEOUT_SECONDS), + '--exit-on-disconnect', + 'true', ], - { cwd: path.dirname(this.companionPath), stdio: ['ignore', 'pipe', 'pipe'] }, + { stdio: ['ignore', 'pipe', 'pipe'] }, ); - this.companion = companion; - this.companionUdid = udid; - companion.stderr.on('data', (chunk: Buffer | string) => this.appendCompanionStderr(chunk)); - try { - const socket = await waitForCompanion(companion, limits.maxDurationMs); - if (socket !== this.socketPath) throw new GuestStartError('guest-companion-socket-mismatch'); - companion.stdout.resume(); - companion.on('error', (error: NodeJS.ErrnoException) => - this.appendCompanionStderr(error.message), + child.stdout?.on('data', (chunk: Buffer) => this.appendLog(chunk)); + child.stderr?.on('data', (chunk: Buffer) => this.appendLog(chunk)); + child.on('error', (error) => this.appendLog(Buffer.from(`${error.message}\n`))); + child.on('exit', () => { + if (this.child === child) this.child = undefined; + }); + this.child = child; + } + + private connect(deadline: number, signal: AbortSignal | undefined): Promise { + return new Promise((resolve, reject) => { + const attempt = (): void => { + if (signal?.aborted) { + this.reapChild(); + reject(new GuestError('cancelled', 'abort-signal')); + return; + } + if (performance.now() > deadline) { + this.reapChild(); + reject(new GuestError('timeout', 'guest-connect-timeout')); + return; + } + if (!this.child) { + reject(new GuestError('transport-failure', 'guest-exited-before-ready')); + return; + } + const socket = net.createConnection(this.socketPath); + socket.once('connect', () => { + socket.removeAllListeners('error'); + resolve(socket); + }); + socket.once('error', () => { + socket.destroy(); + setTimeout(attempt, CONNECT_POLL_MS); + }); + }; + attempt(); + }); + } + + private roundTrip( + frame: Buffer, + deadline: number, + signal: AbortSignal | undefined, + ): Promise<{ envelope: GuestEnvelope; responseBytes: number }> { + return new Promise((resolve, reject) => { + const socket = this.socket; + if (!socket) { + reject(new GuestError('transport-failure', 'guest-not-connected')); + return; + } + const timer = setTimeout( + () => this.dropConnection(new GuestError('timeout', 'batch-duration-limit')), + Math.max(0, deadline - performance.now()), ); + const onAbort = (): void => this.dropConnection(new GuestError('cancelled', 'abort-signal')); + signal?.addEventListener('abort', onAbort, { once: true }); + const settle = (): void => { + clearTimeout(timer); + signal?.removeEventListener('abort', onAbort); + }; + this.pending = { + resolve: (body) => { + settle(); + try { + resolve({ + envelope: JSON.parse(body.toString('utf8')) as GuestEnvelope, + responseBytes: body.length + 4, + }); + } catch { + reject(new GuestError('malformed-tree', 'invalid-json')); + } + }, + reject: (error) => { + settle(); + reject(error); + }, + }; + socket.write(frame); + if (this.killNext) { + this.killNext = false; + killGuestProcesses(this.socketPath); + } + }); + } + + private consume(chunk: Buffer): void { + let frames: Buffer[]; + try { + frames = this.decoder.push(chunk); } catch (error) { - if (this.companion === companion) this.companion = undefined; - terminate(companion); - throw error; + const wire = error instanceof GuestWireError ? error : undefined; + this.dropConnection( + new GuestError(wire?.kind ?? 'malformed-tree', wire?.code ?? 'frame-limit-exceeded'), + ); + return; + } + for (const frame of frames) { + const pending = this.pending; + this.pending = undefined; + if (pending) pending.resolve(frame); } } - private appendCompanionStderr(chunk: Buffer | string): void { - if (this.companionStderr.length >= 64 * 1024) return; - const text = Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk; - this.companionStderr += text.slice(0, 64 * 1024 - this.companionStderr.length); + private failPending(error: GuestError): void { + const pending = this.pending; + this.pending = undefined; + pending?.reject(error); } - private takeCompanionStderr(): string { - const stderr = this.companionStderr; - this.companionStderr = ''; - return stderr; + private dropConnection(error: GuestError): void { + this.failPending(error); + const socket = this.socket; + this.socket = undefined; + socket?.destroy(); + killGuestProcesses(this.socketPath); } -} -class GuestStartError extends Error { - readonly code: string; + private async reapChild(): Promise { + const child = this.child; + if (!child || child.exitCode !== null) return; + const exited = new Promise((resolve) => child.once('exit', () => resolve())); + child.kill('SIGTERM'); + await Promise.race([exited, sleep(1_000)]); + if (child.exitCode === null) child.kill('SIGKILL'); + } - constructor(code: string) { - super(code); - this.name = 'GuestStartError'; - this.code = code; + private appendLog(chunk: Buffer): void { + if (this.log.length >= 64 * 1024) return; + this.log += chunk.toString('utf8').slice(0, 64 * 1024 - this.log.length); + } + + private takeLog(): string { + const log = this.log; + this.log = ''; + return log; } } -async function waitForCompanion( - companion: ChildProcessWithoutNullStreams, - timeoutMs: number, -): Promise { - return await new Promise((resolve, reject) => { - let buffer = ''; - const timer = setTimeout(() => { - cleanup(); - terminate(companion); - reject(new GuestStartError('guest-companion-start-timeout')); - }, timeoutMs); - const cleanup = (): void => { - clearTimeout(timer); - companion.stdout.off('data', onData); - companion.off('error', onError); - companion.off('close', onClose); - }; - const onData = (chunk: Buffer | string): void => { - buffer += Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk; - const lines = buffer.split('\n'); - buffer = lines.pop() ?? ''; - for (const line of lines) { - try { - const value = JSON.parse(line) as { grpc_path?: unknown }; - if (typeof value.grpc_path === 'string') { - cleanup(); - resolve(value.grpc_path); - return; - } - } catch { - continue; - } - } - }; - const onError = (): void => { - cleanup(); - reject(new GuestStartError('guest-companion-spawn-failed')); - }; - const onClose = (): void => { - cleanup(); - reject(new GuestStartError('guest-companion-exited-before-ready')); - }; - companion.stdout.on('data', onData); - companion.once('error', onError); - companion.once('close', onClose); +/** A private, owner-only directory beneath the per-user temporary directory keeps `sun_path` short. */ +function socketDirectory(): string { + const directory = path.join(os.tmpdir(), 'agent-device-ax'); + fs.mkdirSync(directory, { recursive: true, mode: 0o700 }); + fs.chmodSync(directory, 0o700); + if (directory.length + 24 >= 104) { + throw new Error(`Socket directory path is too long for a UNIX socket: ${directory}`); + } + return directory; +} + +/** The guest is parented to launchd_sim, not to this process; it is addressed by its socket argv. */ +function killGuestProcesses(socketPath: string): void { + const found = spawnSync('pgrep', ['-f', `accessibility serve ${socketPath}`], { + encoding: 'utf8', }); + for (const line of (found.stdout ?? '').split('\n')) { + const pid = Number(line.trim()); + if (Number.isSafeInteger(pid) && pid > 0) { + try { + process.kill(pid, 'SIGKILL'); + } catch { + // already gone + } + } + } +} + +function processAlive(pid: number): boolean { + try { + process.kill(pid, 0); + return true; + } catch { + return false; + } } -function terminate(child: ChildProcessWithoutNullStreams | undefined): void { - if (child && !child.killed) child.kill('SIGTERM'); +function asGuestError(error: unknown): GuestError { + if (error instanceof GuestError) return error; + if (error instanceof GuestWireError) return new GuestError(error.kind, error.code); + return new GuestError('transport-failure', 'guest-unexpected-error'); } -async function terminateAndWait(child: ChildProcessWithoutNullStreams | undefined): Promise { - if (!child || child.exitCode !== null) return; - const exited = new Promise((resolve) => child.once('close', () => resolve())); - terminate(child); - await exited; +function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); } diff --git a/scripts/ios-ax-bridge-spike/guest-reader.py b/scripts/ios-ax-bridge-spike/guest-reader.py deleted file mode 100644 index edf2475d5..000000000 --- a/scripts/ios-ax-bridge-spike/guest-reader.py +++ /dev/null @@ -1,330 +0,0 @@ -#!/usr/bin/env python3 - -import argparse -import asyncio -import json -import logging -import resource -import sys -import time -from typing import Any - -from idb.common.types import ( - AccessibilityBackend, - AccessibilityInfoOptions, - AccessibilityOutputFormat, - DomainSocketAddress, -) -from idb.grpc.client import Client - - -KEYS = [ - "AXFrame", - "AXLabel", - "AXValue", - "AXUniqueId", - "AXEnabled", - "AXSelected", - "AXFocused", - "type", - "role", - "subrole", -] - - -def as_record(value: Any) -> dict[str, Any] | None: - return value if isinstance(value, dict) else None - - -def string_value(record: dict[str, Any], *keys: str) -> str | None: - for key in keys: - value = record.get(key) - if isinstance(value, str): - return value - return None - - -def rect_value(record: dict[str, Any]) -> dict[str, float] | None: - value = as_record(record.get("frame")) - if value is None: - value = as_record(record.get("AXFrame")) - if value is None: - return None - if not all(isinstance(value.get(key), (int, float)) for key in ("x", "y", "width", "height")): - return None - return { - "x": float(value["x"]), - "y": float(value["y"]), - "width": float(value["width"]), - "height": float(value["height"]), - } - - -def bool_value(record: dict[str, Any], *keys: str) -> bool | None: - for key in keys: - value = record.get(key) - if isinstance(value, bool): - return value - return None - - -def node_from_element(element: dict[str, Any], index: int) -> dict[str, Any]: - node: dict[str, Any] = {"id": f"n{index}"} - fields = ( - ("type", string_value(element, "type")), - ("role", string_value(element, "role")), - ("subrole", string_value(element, "subrole")), - ("label", string_value(element, "label", "AXLabel")), - ("value", string_value(element, "value", "AXValue")), - ("identifier", string_value(element, "identifier", "AXUniqueId")), - ("frame", rect_value(element)), - ("enabled", bool_value(element, "enabled", "AXEnabled")), - ("selected", bool_value(element, "selected", "AXSelected")), - ("focused", bool_value(element, "focused", "AXFocused")), - ) - for key, value in fields: - if value is not None: - node[key] = value - return node - - -def elements_from_document(document: Any) -> list[dict[str, Any]] | None: - if not isinstance(document, list): - return None - elements: list[dict[str, Any]] = [] - for element in document: - record = as_record(element) - if record is not None: - elements.append(record) - return elements - - -def process_ids(elements: list[dict[str, Any]]) -> set[int]: - return { - int(element["pid"]) - for element in elements - if isinstance(element.get("pid"), int) and not isinstance(element.get("pid"), bool) - } - - -def expected_pid(generation: str | None) -> int | None: - if generation is None or not generation.startswith("pid:"): - return None - try: - return int(generation.removeprefix("pid:").split(":", 1)[0]) - except ValueError: - return None - - -def dimensions_value(description: Any) -> dict[str, float] | None: - dimensions = getattr(description, "screen_dimensions", None) - width = getattr(dimensions, "width_points", None) - height = getattr(dimensions, "height_points", None) - if not isinstance(width, (int, float)) or not isinstance(height, (int, float)): - return None - if width < 0 or height < 0: - return None - return {"x": 0.0, "y": 0.0, "width": float(width), "height": float(height)} - - -def usage_cpu_ms(usage: resource.struct_rusage) -> float: - return (usage.ru_utime + usage.ru_stime) * 1000 - - -def usage_memory_bytes(usage: resource.struct_rusage) -> int: - return int(usage.ru_maxrss) - - -def failure_response(request: dict[str, Any], kind: str, code: str, duration_ms: float = 0) -> dict[str, Any]: - return { - "version": 1, - "id": request.get("id", "unknown"), - "candidate": request.get("candidate", "guest-simulator-framework-bridge"), - "ok": False, - "failure": {"kind": kind, "code": code}, - "metrics": { - "requestBytes": 0, - "responseBytes": 0, - "nodeCount": 0, - "maxTraversalDepth": 0, - "cpuMs": None, - "memoryBytes": None, - "durationMs": duration_ms, - }, - } - - -def build_response( - request: dict[str, Any], - document: Any, - viewport: dict[str, float] | None, - duration_ms: float, - cpu_ms: float, - memory_bytes: int, - request_bytes: int, -) -> dict[str, Any]: - elements = elements_from_document(document) - if elements is None: - return failure_response(request, "malformed-tree", "guest-document-shape", duration_ms) - limits = as_record(request.get("limits")) or {} - if len(elements) > int(limits.get("maxNodes", 0)): - return failure_response(request, "malformed-tree", "node-limit-exceeded", duration_ms) - pids = process_ids(elements) - expected = request.get("expectedTargetGeneration") - expected = expected if isinstance(expected, str) else None - wanted_pid = expected_pid(expected) - if wanted_pid is not None and pids and wanted_pid not in pids: - observed = ",".join(f"pid:{pid}" for pid in sorted(pids)) - return { - **failure_response(request, "stale-generation", "target-generation-mismatch", duration_ms), - "failure": { - "kind": "stale-generation", - "code": "target-generation-mismatch", - "expectedTargetGeneration": expected, - "observedTargetGeneration": observed, - }, - "metrics": { - "requestBytes": request_bytes, - "responseBytes": 0, - "nodeCount": len(elements), - "maxTraversalDepth": 0, - "cpuMs": cpu_ms, - "memoryBytes": memory_bytes, - "durationMs": duration_ms, - }, - } - generation = f"pid:{next(iter(pids))}" if len(pids) == 1 else None - residue: list[dict[str, Any]] = [ - {"kind": "provider-pruned", "fields": ["depth"]}, - ] - if viewport is None: - residue.append({"kind": "missing-viewport", "reason": "not-provided"}) - if generation is None: - residue.append({"kind": "unavailable-fact", "fact": "generation"}) - nodes = [node_from_element(element, index) for index, element in enumerate(elements)] - return { - "version": 1, - "id": request["id"], - "candidate": request["candidate"], - "ok": True, - "acquisition": { - "targetId": f"simulator:{request['simulatorUdid']}", - "targetGeneration": generation, - "nodes": nodes, - "viewport": ( - {"kind": "reported", "rect": viewport} - if viewport is not None - else {"kind": "missing", "reason": "not-provided"} - ), - "truncated": False, - "residue": residue, - }, - "metrics": { - "requestBytes": request_bytes, - "responseBytes": 0, - "nodeCount": len(nodes), - "maxTraversalDepth": 0, - "cpuMs": cpu_ms, - "memoryBytes": memory_bytes, - "durationMs": duration_ms, - }, - } - - -async def read_one( - client: Client, - request: dict[str, Any], - viewport: dict[str, float] | None, - request_bytes: int, -) -> dict[str, Any]: - started = time.perf_counter() - cpu_before = resource.getrusage(resource.RUSAGE_SELF) - try: - info = await asyncio.wait_for( - client.accessibility_info( - target=None, - options=AccessibilityInfoOptions( - keys=KEYS, - backend=AccessibilityBackend.AXBRIDGE_PERSISTENT, - format=AccessibilityOutputFormat.LEGACY, - ), - ), - timeout=float((as_record(request.get("limits")) or {}).get("maxDurationMs", 5000)) / 1000, - ) - document = json.loads(info.json) - response = build_response( - request, - document, - viewport, - (time.perf_counter() - started) * 1000, - usage_cpu_ms(resource.getrusage(resource.RUSAGE_SELF)) - usage_cpu_ms(cpu_before), - usage_memory_bytes(resource.getrusage(resource.RUSAGE_SELF)), - request_bytes, - ) - except asyncio.TimeoutError: - response = failure_response( - request, - "timeout", - "guest-read-timeout", - (time.perf_counter() - started) * 1000, - ) - except json.JSONDecodeError: - response = failure_response( - request, - "malformed-tree", - "guest-document-json", - (time.perf_counter() - started) * 1000, - ) - except Exception: - response = failure_response( - request, - "transport-failure", - "guest-accessibility-rpc", - (time.perf_counter() - started) * 1000, - ) - encoded = json.dumps(response, separators=(",", ":"), ensure_ascii=False).encode("utf-8") - response["metrics"]["responseBytes"] = len(encoded) - return response - - -async def serve(socket_path: str) -> None: - logger = logging.getLogger("agent-device-guest-reader") - logger.addHandler(logging.NullHandler()) - async with Client.build( - DomainSocketAddress(path=socket_path), - logger, - exchange_metadata=False, - ) as client: - viewport = None - try: - viewport = dimensions_value(await client.describe()) - except Exception: - viewport = None - while True: - line = await asyncio.to_thread(sys.stdin.buffer.readline) - if not line: - return - try: - request = json.loads(line) - except json.JSONDecodeError: - continue - if not isinstance(request, dict) or not isinstance(request.get("id"), str): - continue - response = await read_one(client, request, viewport, len(line)) - sys.stdout.write(json.dumps(response, separators=(",", ":"), ensure_ascii=False) + "\n") - sys.stdout.flush() - - -def main() -> None: - parser = argparse.ArgumentParser() - parser.add_argument("--socket", required=True) - args = parser.parse_args() - try: - asyncio.run(serve(args.socket)) - except Exception as error: - sys.stderr.write(f"guest reader stopped: {error}\n") - raise - - -if __name__ == "__main__": - main() diff --git a/scripts/ios-ax-bridge-spike/guest-wire.test.ts b/scripts/ios-ax-bridge-spike/guest-wire.test.ts new file mode 100644 index 000000000..c4b09e720 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-wire.test.ts @@ -0,0 +1,206 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import { + acquisitionFromEnvelope, + elementTypeName, + encodeGuestFrame, + failureFromEnvelope, + flattenGuestTree, + GuestFrameDecoder, + guestDescribeRequest, + isTargetNotReady, + parseExpectedPid, +} from './guest-wire.ts'; +import type { SpikeRequest } from './types.ts'; + +function request(overrides: Partial = {}): SpikeRequest { + return { + version: 1, + id: 'one', + candidate: 'guest-simulator-framework-bridge', + simulatorUdid: '00000000-0000-0000-0000-000000000000', + state: 'warm', + screen: 'list', + limits: DEFAULT_SPIKE_LIMITS, + ...overrides, + }; +} + +const tree = { + XC_kAXXCAttributeElementType: 'UIApplication', + XC_kAXXCAttributeElementBaseType: 'UIApplication', + XC_kAXXCAttributeAutomationType: 1, + XC_kAXXCAttributeLabel: 'Agent Device Tester', + XC_kAXXCAttributeFrame: { X: 0, Y: 0, Width: 402, Height: 874 }, + XC_kAXXCAttributeChildren: [ + { + XC_kAXXCAttributeElementType: 'UIWindow', + XC_kAXXCAttributeElementBaseType: 'UIWindow', + XC_kAXXCAttributeAutomationType: 2, + XC_kAXXCAttributeFrame: { X: 0, Y: 0, Width: 402, Height: 874 }, + XC_kAXXCAttributeChildren: [ + { + XC_kAXXCAttributeElementType: '_UITabButton', + XC_kAXXCAttributeElementBaseType: 'UIControl', + XC_kAXXCAttributeAutomationType: 9, + XC_kAXXCAttributeLabel: 'Catalog', + XC_kAXXCAttributeIdentifier: 'tab-catalog', + XC_kAXXCAttributeValue: 1, + XC_kAXXCAttributeFrame: { X: 10, Y: 800, Width: 60, Height: 50 }, + XC_kAXXCAttributeChildren: [], + }, + ], + }, + ], +}; + +test('frames round-trip through the 4-byte big-endian length prefix, even when split', () => { + const frame = encodeGuestFrame({ verb: 'describe', pid: 7 }); + const decoder = new GuestFrameDecoder(); + assert.deepEqual(decoder.push(frame.subarray(0, 3)), []); + const frames = decoder.push(Buffer.concat([frame.subarray(3), frame])); + assert.equal(frames.length, 2); + assert.deepEqual(JSON.parse(frames[1]!.toString('utf8')), { + verb: 'describe', + pid: 7, + }); + assert.throws(() => new GuestFrameDecoder(8).push(encodeGuestFrame({ padding: 'x'.repeat(32) }))); +}); + +test('a known generation reads by pid and an unknown one resolves the frontmost app in-guest', () => { + assert.equal(parseExpectedPid('pid:4242'), 4242); + assert.equal(parseExpectedPid('gen-1'), undefined); + const byPid = guestDescribeRequest( + request({ expectedTargetGeneration: 'pid:4242' }), + DEFAULT_SPIKE_LIMITS, + ); + assert.equal(byPid.pid, 4242); + assert.equal(byPid.snapshotTree, true); + assert.equal(byPid.automationMode, true); + assert.equal(byPid.maxDepth, DEFAULT_SPIKE_LIMITS.maxTraversalDepth); + const frontmost = guestDescribeRequest(request(), DEFAULT_SPIKE_LIMITS); + assert.equal(frontmost.pid, undefined); + assert.equal(frontmost.method, 'runningboard'); +}); + +test('nested XC_kAXXC trees flatten to parent-linked raw nodes with XCTest type names', () => { + const nodes = flattenGuestTree([tree]); + assert.deepEqual( + nodes.map((node) => [node.id, node.parentId, node.type, node.role]), + [ + ['n0', undefined, 'Application', 'UIApplication'], + ['n1', 'n0', 'Window', 'UIWindow'], + ['n2', 'n1', 'Button', '_UITabButton'], + ], + ); + assert.equal(nodes[2]?.subrole, 'UIControl'); + assert.equal(nodes[2]?.value, '1'); + assert.deepEqual(nodes[2]?.frame, { x: 10, y: 800, width: 60, height: 50 }); + assert.equal(elementTypeName(undefined, 48), 'StaticText'); + assert.equal(elementTypeName(undefined, 0), 'Other'); + assert.equal(elementTypeName(undefined, 999), 'Other'); +}); + +test('a successful envelope becomes an acquisition with generation, viewport, and typed truncation', () => { + const parsed = acquisitionFromEnvelope( + { ok: true, tree: [tree], pid: 4242, truncated: true }, + request(), + DEFAULT_SPIKE_LIMITS, + ); + assert.ok('acquisition' in parsed); + if (!('acquisition' in parsed)) return; + assert.equal(parsed.acquisition.targetGeneration, 'pid:4242'); + assert.deepEqual(parsed.acquisition.viewport, { + kind: 'reported', + rect: { x: 0, y: 0, width: 402, height: 874 }, + }); + assert.equal(parsed.acquisition.truncated, true); + assert.deepEqual(parsed.acquisition.residue, [ + { + kind: 'truncated', + dimension: 'depth', + limit: DEFAULT_SPIKE_LIMITS.maxTraversalDepth, + }, + ]); +}); + +test('an observed pid that differs from the expected generation is a typed stale generation', () => { + const parsed = acquisitionFromEnvelope( + { ok: true, tree: [tree], pid: 4243 }, + request({ expectedTargetGeneration: 'pid:4242' }), + DEFAULT_SPIKE_LIMITS, + ); + assert.deepEqual(parsed, { + kind: 'stale-generation', + code: 'target-generation-mismatch', + expectedTargetGeneration: 'pid:4242', + observedTargetGeneration: 'pid:4243', + }); +}); + +test('guest errors map to typed failures without reading free text as truth', () => { + const notReady = { + ok: false, + error_kind: 'application_not_responding', + error: 'Error kAXErrorServerNotFound getting snapshot', + }; + assert.equal(isTargetNotReady(notReady), true); + assert.deepEqual( + failureFromEnvelope(notReady, request({ expectedTargetGeneration: 'pid:1' }), () => true), + { + kind: 'transport-failure', + code: 'target-application-unavailable', + }, + ); + assert.deepEqual( + failureFromEnvelope( + { + ok: false, + error_kind: 'application_unavailable', + error: 'pid 1 has no accessibility server', + }, + request({ expectedTargetGeneration: 'pid:1' }), + () => false, + ), + { + kind: 'stale-generation', + code: 'target-generation-mismatch', + expectedTargetGeneration: 'pid:1', + }, + ); + assert.deepEqual( + failureFromEnvelope( + { ok: false, error_kind: 'application_not_responding', error: 'pid 9 did not answer' }, + request({ expectedTargetGeneration: 'pid:9' }), + () => false, + ), + { + kind: 'stale-generation', + code: 'target-generation-mismatch', + expectedTargetGeneration: 'pid:9', + }, + ); + assert.deepEqual( + failureFromEnvelope( + { ok: false, error_kind: 'application_not_responding', error: 'pid 9 did not answer' }, + request({ expectedTargetGeneration: 'pid:9' }), + () => true, + ), + { kind: 'timeout', code: 'application-not-responding' }, + ); + assert.deepEqual( + failureFromEnvelope({ ok: false, error_kind: 'reader_unavailable' }, request(), () => true), + { + kind: 'unsupported-mechanism', + code: 'reader-unavailable', + }, + ); + assert.deepEqual( + failureFromEnvelope({ ok: false, error_kind: 'bad_request' }, request(), () => true), + { + kind: 'transport-failure', + code: 'bad-request', + }, + ); +}); diff --git a/scripts/ios-ax-bridge-spike/guest-wire.ts b/scripts/ios-ax-bridge-spike/guest-wire.ts new file mode 100644 index 000000000..c1f116635 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-wire.ts @@ -0,0 +1,408 @@ +import type { + RawAcquiredNode, + RawAcquisition, + ResourceLimits, + SpikeFailure, + SpikeRequest, +} from './types.ts'; + +/** + * Host side of the guest `accessibility serve` wire contract, byte-matching + * `SimulatorFrameworkBridge/AccessibilityService.m` in idb v1.5.2: frames are a 4-byte big-endian + * length prefix followed by one JSON object; the guest answers `{ ok, tree | error, error_kind, pid, + * truncated, phases, automation }`. + */ +export const GUEST_FRAME_HEADER_BYTES = 4; +export const GUEST_MAX_FRAME_BYTES = 16 * 1024 * 1024; + +const ATTRIBUTE = { + elementType: 'XC_kAXXCAttributeElementType', + elementBaseType: 'XC_kAXXCAttributeElementBaseType', + label: 'XC_kAXXCAttributeLabel', + value: 'XC_kAXXCAttributeValue', + identifier: 'XC_kAXXCAttributeIdentifier', + frame: 'XC_kAXXCAttributeFrame', + automationType: 'XC_kAXXCAttributeAutomationType', + children: 'XC_kAXXCAttributeChildren', +} as const; + +/** `XCUIElementType` raw values, from Xcode's `XCUIElementTypes.h`; `Any` reads as `Other`. */ +const ELEMENT_TYPE_NAMES: readonly string[] = [ + 'Other', + 'Other', + 'Application', + 'Group', + 'Window', + 'Sheet', + 'Drawer', + 'Alert', + 'Dialog', + 'Button', + 'RadioButton', + 'RadioGroup', + 'CheckBox', + 'DisclosureTriangle', + 'PopUpButton', + 'ComboBox', + 'MenuButton', + 'ToolbarButton', + 'Popover', + 'Keyboard', + 'Key', + 'NavigationBar', + 'TabBar', + 'TabGroup', + 'Toolbar', + 'StatusBar', + 'Table', + 'TableRow', + 'TableColumn', + 'Outline', + 'OutlineRow', + 'Browser', + 'CollectionView', + 'Slider', + 'PageIndicator', + 'ProgressIndicator', + 'ActivityIndicator', + 'SegmentedControl', + 'Picker', + 'PickerWheel', + 'Switch', + 'Toggle', + 'Link', + 'Image', + 'Icon', + 'SearchField', + 'ScrollView', + 'ScrollBar', + 'StaticText', + 'TextField', + 'SecureTextField', + 'DatePicker', + 'TextView', + 'Menu', + 'MenuItem', + 'MenuBar', + 'MenuBarItem', + 'Map', + 'WebView', + 'IncrementArrow', + 'DecrementArrow', + 'Timeline', + 'RatingIndicator', + 'ValueIndicator', + 'SplitGroup', + 'Splitter', + 'RelevanceIndicator', + 'ColorWell', + 'HelpTag', + 'Matte', + 'DockItem', + 'Ruler', + 'RulerMarker', + 'Grid', + 'LevelIndicator', + 'Cell', + 'LayoutArea', + 'LayoutItem', + 'Handle', + 'Stepper', + 'Tab', + 'TouchBar', + 'StatusItem', +]; + +/** + * XCTest names the application and window elements by class rather than by automation type; the + * XCTest control tree reports `Application`/`Window` where the guest attribute says 1/2. Observed + * node-for-node against the control on the catalog fixture (279/279 aligned). + */ +const CLASS_PROMOTED_TYPES: Readonly> = { + UIApplication: 'Application', + UIWindow: 'Window', +}; + +export type GuestEnvelope = Readonly>; + +export type GuestErrorKind = + | 'application_unavailable' + | 'application_not_responding' + | 'frontmost_unresolved' + | 'reader_unavailable' + | 'bad_request' + | 'assertion_failed'; + +export function encodeGuestFrame(value: unknown): Buffer { + const body = Buffer.from(JSON.stringify(value), 'utf8'); + const header = Buffer.alloc(GUEST_FRAME_HEADER_BYTES); + header.writeUInt32BE(body.length, 0); + return Buffer.concat([header, body]); +} + +/** Reassembles length-prefixed frames from a byte stream; oversize frames throw. */ +export class GuestFrameDecoder { + private buffer = Buffer.alloc(0); + private readonly maxFrameBytes: number; + + constructor(maxFrameBytes = GUEST_MAX_FRAME_BYTES) { + this.maxFrameBytes = maxFrameBytes; + } + + push(chunk: Buffer): Buffer[] { + this.buffer = Buffer.concat([this.buffer, chunk]); + const frames: Buffer[] = []; + while (this.buffer.length >= GUEST_FRAME_HEADER_BYTES) { + const length = this.buffer.readUInt32BE(0); + if (length === 0 || length > this.maxFrameBytes) { + throw new GuestWireError('malformed-tree', 'frame-limit-exceeded'); + } + if (this.buffer.length < GUEST_FRAME_HEADER_BYTES + length) break; + frames.push( + this.buffer.subarray(GUEST_FRAME_HEADER_BYTES, GUEST_FRAME_HEADER_BYTES + length), + ); + this.buffer = this.buffer.subarray(GUEST_FRAME_HEADER_BYTES + length); + } + return frames; + } +} + +export class GuestWireError extends Error { + readonly kind: SpikeFailure['kind']; + readonly code: string; + + constructor(kind: SpikeFailure['kind'], code: string) { + super(`${kind}/${code}`); + this.name = 'GuestWireError'; + this.kind = kind; + this.code = code; + } +} + +export function parseExpectedPid(generation: string | undefined): number | undefined { + if (!generation?.startsWith('pid:')) return undefined; + const pid = Number(generation.slice('pid:'.length).split(':', 1)[0]); + return Number.isSafeInteger(pid) && pid > 0 ? pid : undefined; +} + +/** + * The guest `describe` request for one spike request. A known target generation names the app by + * pid; otherwise the guest resolves the foreground app in-guest through RunningBoard (the anchor is + * required by the wire even when the method ignores it). Automation mode is asserted on every read so + * the target exposes its accessibility server without preboot preference edits; the single-fetch + * traversal keeps one Mach round trip per read. + */ +export function guestDescribeRequest( + request: SpikeRequest, + limits: ResourceLimits, +): Record { + const pid = parseExpectedPid(request.expectedTargetGeneration); + return { + verb: 'describe', + ...(pid === undefined ? { x: 1, y: 1, method: 'runningboard' } : { pid }), + snapshotTree: true, + automationMode: true, + maxDepth: limits.maxTraversalDepth, + maxNodes: limits.maxNodes, + }; +} + +export function guestErrorKind(envelope: GuestEnvelope): GuestErrorKind | undefined { + const kind = envelope.error_kind; + return typeof kind === 'string' ? (kind as GuestErrorKind) : undefined; +} + +export function guestErrorText(envelope: GuestEnvelope): string { + return typeof envelope.error === 'string' ? envelope.error : ''; +} + +/** + * Whether a failed read is the target's accessibility server not being reachable yet, which is what + * a freshly launched app (or one whose automation mode was just asserted) reports for a moment. + */ +export function isTargetNotReady(envelope: GuestEnvelope): boolean { + return ( + guestErrorKind(envelope) === 'application_unavailable' || + guestErrorText(envelope).includes('kAXErrorServerNotFound') + ); +} + +export function failureFromEnvelope( + envelope: GuestEnvelope, + request: SpikeRequest, + targetAlive: (pid: number) => boolean, +): SpikeFailure { + const expectedPid = parseExpectedPid(request.expectedTargetGeneration); + const kind = guestErrorKind(envelope); + const targetSymptom = + kind === 'application_unavailable' || + kind === 'application_not_responding' || + isTargetNotReady(envelope); + // The expected generation is provably gone: whatever symptom the guest saw while reaching for the + // dead pid, the honest answer is a stale generation, never a timeout the caller might retry. + if (targetSymptom && expectedPid !== undefined && !targetAlive(expectedPid)) { + return { + kind: 'stale-generation', + code: 'target-generation-mismatch', + expectedTargetGeneration: request.expectedTargetGeneration!, + }; + } + if (isTargetNotReady(envelope)) { + return { kind: 'transport-failure', code: 'target-application-unavailable' }; + } + switch (kind) { + case 'application_unavailable': + return { kind: 'transport-failure', code: 'target-application-unavailable' }; + case 'application_not_responding': + return { kind: 'timeout', code: 'application-not-responding' }; + case 'frontmost_unresolved': + return { kind: 'transport-failure', code: 'frontmost-unresolved' }; + case 'reader_unavailable': + return { kind: 'unsupported-mechanism', code: 'reader-unavailable' }; + case 'bad_request': + return { kind: 'transport-failure', code: 'bad-request' }; + default: + return { kind: 'transport-failure', code: 'guest-error' }; + } +} + +export type GuestAcquisition = Readonly<{ + acquisition: RawAcquisition; + observedPid: number | undefined; +}>; + +export function acquisitionFromEnvelope( + envelope: GuestEnvelope, + request: SpikeRequest, + limits: ResourceLimits, +): GuestAcquisition | SpikeFailure { + const expectedPid = parseExpectedPid(request.expectedTargetGeneration); + const observedPid = typeof envelope.pid === 'number' ? envelope.pid : undefined; + if (expectedPid !== undefined && observedPid !== undefined && observedPid !== expectedPid) { + return { + kind: 'stale-generation', + code: 'target-generation-mismatch', + expectedTargetGeneration: request.expectedTargetGeneration!, + observedTargetGeneration: `pid:${observedPid}`, + }; + } + const roots = guestRoots(envelope.tree); + if (!roots) return { kind: 'malformed-tree', code: 'guest-tree-shape' }; + const nodes = flattenGuestTree(roots); + const truncated = envelope.truncated === true; + const pid = expectedPid ?? observedPid; + const viewport = viewportFromRoot(roots[0]); + return { + observedPid, + acquisition: { + targetId: `simulator:${request.simulatorUdid}`, + targetGeneration: pid === undefined ? null : `pid:${pid}`, + nodes, + viewport, + truncated, + residue: [ + ...(truncated ? [truncationResidue(nodes.length, limits)] : []), + ...(pid === undefined ? [{ kind: 'unavailable-fact', fact: 'generation' } as const] : []), + ], + }, + }; +} + +function truncationResidue( + nodeCount: number, + limits: ResourceLimits, +): RawAcquisition['residue'][number] { + return nodeCount >= limits.maxNodes + ? { kind: 'truncated', dimension: 'nodes', limit: limits.maxNodes } + : { + kind: 'truncated', + dimension: 'depth', + limit: limits.maxTraversalDepth, + }; +} + +function guestRoots(tree: unknown): Record[] | undefined { + if (Array.isArray(tree)) return tree.every(isRecord) ? tree : undefined; + return isRecord(tree) ? [tree] : undefined; +} + +/** Depth-first flattening; ids follow traversal order and parents precede children. */ +export function flattenGuestTree(roots: readonly Record[]): RawAcquiredNode[] { + const nodes: RawAcquiredNode[] = []; + const visit = (element: Record, parentId: string | undefined): void => { + const id = `n${nodes.length}`; + nodes.push({ + id, + ...(parentId === undefined ? {} : { parentId }), + ...nodeFacts(element), + }); + const children = element[ATTRIBUTE.children]; + if (!Array.isArray(children)) return; + for (const child of children) if (isRecord(child)) visit(child, id); + }; + for (const root of roots) visit(root, undefined); + return nodes; +} + +function nodeFacts(element: Record): Omit { + const elementClass = optionalString(element[ATTRIBUTE.elementType]); + const baseClass = optionalString(element[ATTRIBUTE.elementBaseType]); + const type = elementTypeName(elementClass, element[ATTRIBUTE.automationType]); + const label = optionalString(element[ATTRIBUTE.label]); + const value = optionalScalar(element[ATTRIBUTE.value]); + const identifier = optionalString(element[ATTRIBUTE.identifier]); + const frame = frameFromGuest(element[ATTRIBUTE.frame]); + return { + ...(type === undefined ? {} : { type }), + ...(elementClass === undefined ? {} : { role: elementClass }), + ...(baseClass === undefined || baseClass === elementClass ? {} : { subrole: baseClass }), + ...(label === undefined ? {} : { label }), + ...(value === undefined ? {} : { value }), + ...(identifier === undefined ? {} : { identifier }), + ...(frame === undefined ? {} : { frame }), + }; +} + +export function elementTypeName( + elementClass: string | undefined, + automationType: unknown, +): string | undefined { + if (elementClass !== undefined && CLASS_PROMOTED_TYPES[elementClass]) { + return CLASS_PROMOTED_TYPES[elementClass]; + } + if (typeof automationType !== 'number' || !Number.isInteger(automationType)) return undefined; + return ELEMENT_TYPE_NAMES[automationType] ?? 'Other'; +} + +function frameFromGuest(value: unknown): RawAcquiredNode['frame'] | undefined { + if (!isRecord(value)) return undefined; + const numbers = ['X', 'Y', 'Width', 'Height'].map((key) => value[key]); + if (!numbers.every((number) => typeof number === 'number' && Number.isFinite(number))) { + return undefined; + } + const [x, y, width, height] = numbers as [number, number, number, number]; + return { x, y, width, height }; +} + +function viewportFromRoot(root: Record | undefined): RawAcquisition['viewport'] { + const frame = root === undefined ? undefined : frameFromGuest(root[ATTRIBUTE.frame]); + const isApplication = + root !== undefined && optionalString(root[ATTRIBUTE.elementType]) === 'UIApplication'; + return isApplication && frame + ? { kind: 'reported', rect: frame } + : { kind: 'missing', reason: 'not-provided' }; +} + +function optionalString(value: unknown): string | undefined { + return typeof value === 'string' && value.length > 0 ? value : undefined; +} + +function optionalScalar(value: unknown): string | undefined { + if (typeof value === 'string') return value.length > 0 ? value : undefined; + if (typeof value === 'number' || typeof value === 'boolean') return String(value); + return undefined; +} + +function isRecord(value: unknown): value is Record { + return value !== null && typeof value === 'object' && !Array.isArray(value); +} diff --git a/scripts/ios-ax-bridge-spike/limits.ts b/scripts/ios-ax-bridge-spike/limits.ts index 540f1f4dc..8a84ef303 100644 --- a/scripts/ios-ax-bridge-spike/limits.ts +++ b/scripts/ios-ax-bridge-spike/limits.ts @@ -4,7 +4,7 @@ export const DEFAULT_SPIKE_LIMITS: ResourceLimits = Object.freeze({ maxRequestBytes: 64 * 1024, maxResponseBytes: 4 * 1024 * 1024, maxNodes: 1500, - maxTraversalDepth: 12, + maxTraversalDepth: 64, maxCpuMs: 2_000, maxMemoryBytes: 256 * 1024 * 1024, maxDurationMs: 5_000, diff --git a/scripts/ios-ax-bridge-spike/persistent-process.test.ts b/scripts/ios-ax-bridge-spike/persistent-process.test.ts deleted file mode 100644 index ddb99ef94..000000000 --- a/scripts/ios-ax-bridge-spike/persistent-process.test.ts +++ /dev/null @@ -1,76 +0,0 @@ -import assert from 'node:assert/strict'; -import { test } from 'vitest'; -import { PersistentFramedProcess } from './persistent-process.ts'; -import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import type { SpikeRequest } from './types.ts'; - -function request(id: string): SpikeRequest { - return { - version: 1, - id, - candidate: 'guest-simulator-framework-bridge', - simulatorUdid: 'simulator', - state: 'warm', - screen: 'quiet', - limits: DEFAULT_SPIKE_LIMITS, - }; -} - -test('keeps one framed reader alive across batches', async () => { - let starts = 0; - const worker = new PersistentFramedProcess({ - file: process.execPath, - args: [ - '--input-type=module', - '-e', - ` - import process from 'node:process'; - process.stdin.setEncoding('utf8'); - let buffer = ''; - process.stdin.on('data', (chunk) => { - buffer += chunk; - const lines = buffer.split('\\n'); - buffer = lines.pop() ?? ''; - for (const line of lines.filter(Boolean)) { - const request = JSON.parse(line); - process.stdout.write(JSON.stringify({ - version: 1, - id: request.id, - candidate: request.candidate, - ok: true, - acquisition: { - targetId: 'simulator:test', - targetGeneration: 'generation-1', - nodes: [{ id: 'n0', role: 'AXApplication' }], - viewport: { kind: 'missing', reason: 'not-provided' }, - truncated: false, - residue: [], - }, - metrics: { - requestBytes: 1, - responseBytes: 1, - nodeCount: 1, - maxTraversalDepth: 0, - cpuMs: 1, - memoryBytes: 1, - durationMs: 1, - }, - }) + '\\n'); - } - }); - `, - ], - limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 200 }, - beforeStart: async () => { - starts += 1; - }, - }); - - const first = await worker.acquireBatch([request('one')]); - const second = await worker.acquireBatch([request('two')]); - await worker.close(); - - assert.equal(first.responses[0]?.ok, true); - assert.equal(second.responses[0]?.ok, true); - assert.equal(starts, 1); -}); diff --git a/scripts/ios-ax-bridge-spike/persistent-process.ts b/scripts/ios-ax-bridge-spike/persistent-process.ts deleted file mode 100644 index c5818b566..000000000 --- a/scripts/ios-ax-bridge-spike/persistent-process.ts +++ /dev/null @@ -1,267 +0,0 @@ -import { spawn, type ChildProcessWithoutNullStreams } from 'node:child_process'; -import { encodeFrame, DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import { failureResponse, parseSpikeResponse, readResponseId } from './protocol.ts'; -import type { ResourceLimits, SpikeFailureKind, SpikeRequest, SpikeResponse } from './types.ts'; - -export type PersistentProcessSpec = Readonly<{ - file: string; - args?: readonly string[]; - cwd?: string; - env?: NodeJS.ProcessEnv; - limits?: ResourceLimits; - beforeStart?: (requests: readonly SpikeRequest[]) => Promise; -}>; - -type EncodedRequest = Readonly<{ - request: SpikeRequest; - bytes: number; - line: string; -}>; - -type PendingBatch = { - requests: readonly SpikeRequest[]; - responses: Map; - responseBytes: number; - resolve: (result: PersistentBatchResult) => void; - timer: NodeJS.Timeout; - abortCleanup: () => void; -}; - -export type PersistentBatchResult = Readonly<{ - responses: readonly SpikeResponse[]; - stderr: string; -}>; - -export class PersistentFramedProcess { - private readonly spec: PersistentProcessSpec; - private readonly limits: ResourceLimits; - private child?: ChildProcessWithoutNullStreams; - private startPromise?: Promise; - private stdoutBuffer = Buffer.alloc(0); - private stderr = ''; - private pending?: PendingBatch; - private terminateNextBatch = false; - private serial: Promise = Promise.resolve(); - private closed = false; - - constructor(spec: PersistentProcessSpec) { - this.spec = spec; - this.limits = spec.limits ?? DEFAULT_SPIKE_LIMITS; - } - - acquireBatch( - requests: readonly SpikeRequest[], - options: Readonly<{ signal?: AbortSignal }> = {}, - ): Promise { - const operation = this.serial.then(() => this.execute(requests, options)); - this.serial = operation.then( - () => undefined, - () => undefined, - ); - return operation; - } - - async close(): Promise { - this.closed = true; - this.finishPending('cancelled', 'process-closed', true); - await this.serial; - terminate(this.child); - this.child = undefined; - } - - terminateReaderOnNextBatchForEvidence(): void { - this.terminateNextBatch = true; - } - - private async execute( - requests: readonly SpikeRequest[], - options: Readonly<{ signal?: AbortSignal }>, - ): Promise { - if (requests.length === 0) return { responses: [], stderr: '' }; - const encoded = requests.map((request) => ({ request, ...encodeFrame(request) })); - if (encoded.some(({ bytes }) => bytes > this.limits.maxRequestBytes)) { - return { - responses: requests.map((request) => - failureResponse(request, { kind: 'transport-failure', code: 'request-limit-exceeded' }), - ), - stderr: '', - }; - } - if (options.signal?.aborted) return cancelledBatch(requests, encoded); - try { - await this.ensureChild(requests); - } catch (error) { - return { - responses: requests.map((request) => - failureResponse(request, { - kind: 'transport-failure', - code: errorCode(error, 'persistent-process-start-failed'), - }), - ), - stderr: this.takeStderr(), - }; - } - return await this.send(encoded, options.signal); - } - - private async ensureChild(requests: readonly SpikeRequest[]): Promise { - if (this.closed) throw new Error('persistent-process-closed'); - if (this.child && !this.child.killed && this.child.exitCode === null) return; - if (this.startPromise) return await this.startPromise; - this.startPromise = this.start(requests).finally(() => { - this.startPromise = undefined; - }); - return await this.startPromise; - } - - private async start(requests: readonly SpikeRequest[]): Promise { - await this.spec.beforeStart?.(requests); - this.stdoutBuffer = Buffer.alloc(0); - const child = spawn(this.spec.file, [...(this.spec.args ?? [])], { - cwd: this.spec.cwd, - env: { ...process.env, ...this.spec.env }, - stdio: ['pipe', 'pipe', 'pipe'], - }); - this.child = child; - child.stdout.on('data', (chunk: Buffer | string) => this.consumeStdout(chunk)); - child.stderr.on('data', (chunk: Buffer | string) => this.appendStderr(chunk)); - child.on('error', (error: NodeJS.ErrnoException) => { - this.appendStderr(error.message); - this.finishPending('transport-failure', error.code ?? 'persistent-process-error', false); - }); - child.on('close', () => { - if (this.child !== child) return; - this.child = undefined; - if (this.pending) this.finishPending('process-crash', 'persistent-process-exited', false); - }); - } - - private send( - encoded: readonly EncodedRequest[], - signal: AbortSignal | undefined, - ): Promise { - return new Promise((resolve) => { - const timer = setTimeout( - () => this.finishPending('timeout', 'batch-duration-limit', true), - this.limits.maxDurationMs * encoded.length, - ); - const onAbort = (): void => this.finishPending('cancelled', 'abort-signal', true); - signal?.addEventListener('abort', onAbort, { once: true }); - this.pending = { - requests: encoded.map(({ request }) => request), - responses: new Map(), - responseBytes: 0, - resolve, - timer, - abortCleanup: () => signal?.removeEventListener('abort', onAbort), - }; - for (const { line } of encoded) this.child?.stdin.write(line); - if (this.terminateNextBatch) { - this.terminateNextBatch = false; - terminate(this.child); - } - }); - } - - private consumeStdout(chunk: Buffer | string): void { - this.stdoutBuffer = Buffer.concat([ - this.stdoutBuffer, - Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk), - ]); - let newline = this.stdoutBuffer.indexOf(0x0a); - while (newline >= 0) { - const line = this.stdoutBuffer.subarray(0, newline); - this.stdoutBuffer = this.stdoutBuffer.subarray(newline + 1); - this.consumeLine(line); - if (!this.pending) return; - newline = this.stdoutBuffer.indexOf(0x0a); - } - } - - private consumeLine(line: Buffer): void { - if (line.length > this.limits.maxResponseBytes) { - this.finishPending('malformed-tree', 'frame-limit-exceeded', true); - return; - } - let value: unknown; - try { - value = JSON.parse(line.toString('utf8')); - } catch { - this.finishPending('malformed-tree', 'invalid-json', true); - return; - } - const pending = this.pending; - const request = pending?.requests.find((item) => item.id === readResponseId(value)); - if (!pending || !request || pending.responses.has(request.id)) { - this.finishPending('malformed-tree', 'response-id-invalid', true); - return; - } - pending.responseBytes += line.length + 1; - if (pending.responseBytes > this.limits.maxResponseBytes) { - this.finishPending('malformed-tree', 'response-limit-exceeded', true); - return; - } - pending.responses.set(request.id, parseSpikeResponse(value, request, line.length + 1)); - if (pending.responses.size === pending.requests.length) this.finishPending(); - } - - private finishPending(kind?: SpikeFailureKind, code?: string, terminateChild = false): void { - const pending = this.pending; - if (!pending) return; - this.pending = undefined; - clearTimeout(pending.timer); - pending.abortCleanup(); - if (terminateChild) terminate(this.child); - pending.resolve({ - responses: pending.requests.map( - (request) => - pending.responses.get(request.id) ?? - failureResponse(request, { - kind: kind ?? 'transport-failure', - ...(code ? { code } : {}), - }), - ), - stderr: this.takeStderr(), - }); - } - - private appendStderr(chunk: Buffer | string): void { - if (this.stderr.length >= 64 * 1024) return; - const text = Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk; - this.stderr += text.slice(0, 64 * 1024 - this.stderr.length); - } - - private takeStderr(): string { - const stderr = this.stderr; - this.stderr = ''; - return stderr; - } -} - -function cancelledBatch( - requests: readonly SpikeRequest[], - encoded: readonly EncodedRequest[], -): PersistentBatchResult { - return { - responses: requests.map((request) => - failureResponse( - request, - { kind: 'cancelled', code: 'abort-signal' }, - { requestBytes: encoded.find((item) => item.request.id === request.id)?.bytes ?? 0 }, - ), - ), - stderr: '', - }; -} - -function errorCode(error: unknown, fallback: string): string { - if (error && typeof error === 'object' && 'code' in error) { - const code = (error as { code?: unknown }).code; - if (typeof code === 'string') return code; - } - return fallback; -} - -function terminate(child: ChildProcessWithoutNullStreams | undefined): void { - if (child && !child.killed) child.kill('SIGTERM'); -} diff --git a/scripts/ios-ax-bridge-spike/report.ts b/scripts/ios-ax-bridge-spike/report.ts index dfbccfce8..ae88f215f 100644 --- a/scripts/ios-ax-bridge-spike/report.ts +++ b/scripts/ios-ax-bridge-spike/report.ts @@ -29,10 +29,10 @@ function renderSpikeMarkdown(report: SpikeReport): string { '', '## Evaluated guest mechanism', '', - `- Implementation: **${report.guestMechanism.implementation} ${report.guestMechanism.release}** using \`${report.guestMechanism.backend}\` and \`${report.guestMechanism.outputFormat}\` output.`, - `- Companion: \`${report.guestMechanism.companionArchive}\` (SHA-256 \`${report.guestMechanism.companionSha256}\`).`, - `- CLI: \`${report.guestMechanism.cliArchive}\` (SHA-256 \`${report.guestMechanism.cliSha256}\`).`, - `- Host client: **${report.guestMechanism.client}**; the companion and client remain outside the distributed package.`, + `- Guest reader: **${report.guestMechanism.implementation} ${report.guestMechanism.release}** \`${report.guestMechanism.guestBinary}\` (SHA-256 \`${report.guestMechanism.guestBinarySha256}\`) from \`${report.guestMechanism.companionArchive}\` (SHA-256 \`${report.guestMechanism.companionSha256}\`).`, + `- Transport: ${report.guestMechanism.transport}.`, + `- Traversal: ${report.guestMechanism.traversal}.`, + `- Host client: **${report.guestMechanism.client}**; no idb_companion, gRPC, or Python is involved, and nothing here ships in the npm package.`, '', '## Environment and limits', '', @@ -42,7 +42,7 @@ function renderSpikeMarkdown(report: SpikeReport): string { '', '| Candidate | Mechanism | App surface | System surface | Lifecycle | Main limitation |', '|---|---|---|---|---|---|', - `| guest-simulator-framework-bridge | idb SimulatorFrameworkBridge guest via axbridge-persistent | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'app')} | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'system')} | persistent companion + typed reader | provider exposes a flat raw element response |`, + `| guest-simulator-framework-bridge | in-Simulator SimulatorFrameworkBridge reader over a UNIX socket, driven from Node | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'app')} | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'system')} | one private guest per session, typed failures, respawn on drop | XCTest view-hierarchy tree; hittability and placeholder are not fetched by the single-fetch traversal |`, `| xctest-control | #2189 XCTest runner control | ${surfaceStatus(report, 'xctest-control', 'app')} | ${surfaceStatus(report, 'xctest-control', 'system')} | existing runner lifecycle | control, not a host-side AX bridge |`, '', '## Raw acquisition and prototype presentation results', @@ -83,7 +83,15 @@ function renderSpikeMarkdown(report: SpikeReport): string { '', '## Decision rationale', '', - ...report.decisionReasons.map((reason) => `- ${reason}`), + ...(report.decisionReasons.length === 0 + ? ['- Every hard gate passed.'] + : report.decisionReasons.map((reason) => `- ${reason}`)), + '', + '## Stretch findings', + '', + ...(report.stretchFindings.length === 0 + ? ['- None.'] + : report.stretchFindings.map((finding) => `- ${finding}`)), '', '## Next interface boundary', '', diff --git a/scripts/ios-ax-bridge-spike/run.ts b/scripts/ios-ax-bridge-spike/run.ts index 24174be38..69c1819e7 100644 --- a/scripts/ios-ax-bridge-spike/run.ts +++ b/scripts/ios-ax-bridge-spike/run.ts @@ -160,7 +160,7 @@ function createReport( metadata: { target: SpikeReport['target']; toolchain: Toolchain }, lifecycle: SpikeReport['lifecycle'], evidence: SpikeRunEvidence, - decision: { decision: SpikeReport['decision']; reasons: string[] }, + decision: { decision: SpikeReport['decision']; reasons: string[]; stretchFindings: string[] }, ): SpikeReport { return { schemaVersion: SPIKE_SCHEMA_VERSION, @@ -194,6 +194,7 @@ function createReport( cells: evidence.cells, decision: decision.decision, decisionReasons: decision.reasons, + stretchFindings: decision.stretchFindings, nextInterface: 'Keep any future bridge behind the #2190 acquisition adapter and preserve raw facts until a separate GO evidence run proves fidelity, lifecycle, and latency.', ...(evidence.stop ? { stop: evidence.stop } : {}), diff --git a/scripts/ios-ax-bridge-spike/runner.ts b/scripts/ios-ax-bridge-spike/runner.ts index 74f215652..7be2b013a 100644 --- a/scripts/ios-ax-bridge-spike/runner.ts +++ b/scripts/ios-ax-bridge-spike/runner.ts @@ -40,9 +40,7 @@ export async function runSpikeCells( export function createAdapterOptions(config: SpikeConfig): AdapterOptions { return { repoRoot: config.repoRoot, - ...(config.guestCompanion ? { guestCompanion: config.guestCompanion } : {}), - ...(config.guestPython ? { guestPython: config.guestPython } : {}), - ...(config.guestSitePackages ? { guestSitePackages: config.guestSitePackages } : {}), + ...(config.guestBridge ? { guestBridge: config.guestBridge } : {}), limits: config.limits, }; } diff --git a/scripts/ios-ax-bridge-spike/targeted-evidence.ts b/scripts/ios-ax-bridge-spike/targeted-evidence.ts index 049331aa8..791abaf49 100644 --- a/scripts/ios-ax-bridge-spike/targeted-evidence.ts +++ b/scripts/ios-ax-bridge-spike/targeted-evidence.ts @@ -1,6 +1,7 @@ import crypto from 'node:crypto'; import { execFileSync } from 'node:child_process'; import fs from 'node:fs'; +import os from 'node:os'; import { performance } from 'node:perf_hooks'; import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; import { createAdapterOptions } from './runner.ts'; @@ -11,134 +12,233 @@ import { restorePrebootPreferences, simulatorPreferencePaths, } from './preferences.ts'; +import { initialPreferenceEvidence } from './preference-experiment.ts'; import { bootSimulator, readRunningAppPids, shutdownSimulator, + terminateApp, } from '../ios-snapshot-benchmark/lifecycle.ts'; import type { PreferenceEvidence, SpikeRequest, SpikeResponse } from './types.ts'; -import type { TargetedBootstrapSample, TargetedRecoveryProbe } from './corrected-types.ts'; +import type { + HostLoad, + TargetedBootstrapSample, + TargetedRecoveryProbe, +} from './corrected-types.ts'; const APP_ID = 'com.callstack.agentdevicelab'; +const BOOTSTRAP_SAMPLES = 5; +const READINESS_POLL_MS = 200; +const READINESS_DEADLINE_MS = 90_000; +/** Fixture-owned time: the readiness probe may wait for a slow host without shaping the timed sample. */ +const READINESS_PROBE_REQUEST_MS = 60_000; + +type GuestAdapter = ReturnType; export type TargetedRunResult = Readonly<{ bootstrap: readonly TargetedBootstrapSample[]; recovery: readonly TargetedRecoveryProbe[]; preferenceEvidence: PreferenceEvidence; - simulator: Readonly<{ finalState: string; accessibilityPlistSha256: string }>; + host: HostLoad; + simulator: Readonly<{ + finalState: string; + accessibilityPlistSha256: string | null; + automationEnabledBefore: unknown; + automationEnabledAfter: unknown; + }>; }>; +/** + * Live nonresident-bootstrap and recovery evidence for the guest bridge. + * + * Boundary: the Simulator is booted and the fixture app is relaunched for every bootstrap sample. + * App readiness is *observed*, not assumed from a pid: a throwaway probe bridge polls until the new + * app generation answers with a tree, then is torn down, so the timed sample starts with no resident + * bridge and a ready app. Automation mode is asserted per request by the guest; the preboot plist + * experiment runs only when `--apply-preferences` is passed. + */ export async function runTargetedEvidence(config: SpikeConfig): Promise { - shutdownSimulator(config.udid); - const applied = applyPrebootPreferences(config.udid); + const applied = config.applyPreferences ? applyPreferencesWhileShutdown(config.udid) : undefined; let restored = false; - let adapter: ReturnType | undefined; let bootstrap: readonly TargetedBootstrapSample[] = []; let recovery: readonly TargetedRecoveryProbe[] = []; + const automationEnabledBefore = readAutomationEnabled(config.udid); try { bootSimulator(config.udid); - adapter = createGuestSimulatorFrameworkBridgeAdapter(createAdapterOptions(config)); - await launchApp(config.udid); bootstrap = await runNonresidentBootstrap(config); - recovery = await runLiveRecovery(config, adapter); + recovery = await runLiveRecovery(config, bootstrap); } finally { - await adapter?.close?.(); - shutdownSimulator(config.udid); - restored = restorePrebootPreferences(config.udid, applied.snapshots); + if (applied) { + shutdownSimulator(config.udid); + restored = restorePrebootPreferences(config.udid, applied.snapshots); + } else if (!config.keepDevice) { + shutdownSimulator(config.udid); + } } - const preferenceEvidence = { ...applied.evidence, restored }; + const preferenceEvidence = applied + ? { ...applied.evidence, restored } + : initialPreferenceEvidence(config.udid); return { bootstrap, recovery, preferenceEvidence, + host: hostLoad(), simulator: { finalState: readSimulatorState(config.udid), accessibilityPlistSha256: hashFile(simulatorPreferencePaths(config.udid)[0]!), + automationEnabledBefore, + automationEnabledAfter: readAutomationEnabled(config.udid), }, }; } +function applyPreferencesWhileShutdown(udid: string): ReturnType { + shutdownSimulator(udid); + return applyPrebootPreferences(udid); +} + async function runNonresidentBootstrap( config: SpikeConfig, ): Promise { const samples: TargetedBootstrapSample[] = []; - for (let index = 0; index < 5; index += 1) { - await prepareIndependentBootstrap(config, index); - samples.push(await captureBootstrap(config, index + 1)); + for (let index = 1; index <= BOOTSTRAP_SAMPLES; index += 1) { + samples.push(await captureBootstrap(config, index)); } return samples; } -async function prepareIndependentBootstrap(config: SpikeConfig, index: number): Promise { - if (index === 0) return; - shutdownSimulator(config.udid); - bootSimulator(config.udid); - await launchApp(config.udid); -} - async function captureBootstrap( config: SpikeConfig, index: number, ): Promise { - const appPid = readRunningAppPids(config.udid, APP_ID)[0]; - if (appPid === undefined) throw new Error(`App ${APP_ID} has no ready process.`); + const appPid = await relaunchApp(config.udid); + const readiness = await awaitAppReadiness(config, appPid); + await assertNoResidentGuest(); const adapter = createGuestSimulatorFrameworkBridgeAdapter(createAdapterOptions(config)); const started = performance.now(); const result = await adapter.acquireBatch([ - request(config, `bootstrap-${index}`, { expectedTargetGeneration: `pid:${appPid}` }), + request(config, `bootstrap-${index}`, { + expectedTargetGeneration: `pid:${appPid}`, + }), ]); - const response = result.responses[0] ?? failedResponse(config, `bootstrap-${index}`); - const sample = { + const durationMs = performance.now() - started; + await adapter.close?.(); + const response = result.responses[0] ?? failedResponse(`bootstrap-${index}`); + return { index, - durationMs: performance.now() - started, + durationMs, usableTree: usableTree(response), response, stderr: result.stderr, + appPid, + readinessMs: readiness.readinessMs, + readinessAttempts: readiness.attempts, + host: hostLoad(), }; - await adapter.close?.(); - return sample; +} + +/** Polls a throwaway bridge until the new app generation answers with a tree, then tears it down. */ +async function awaitAppReadiness( + config: SpikeConfig, + appPid: number, +): Promise<{ readinessMs: number; attempts: number }> { + const probeLimits = { ...config.limits, maxDurationMs: READINESS_PROBE_REQUEST_MS }; + const probe = createGuestSimulatorFrameworkBridgeAdapter({ + ...createAdapterOptions(config), + limits: probeLimits, + }); + const started = performance.now(); + let attempts = 0; + try { + while (performance.now() - started < READINESS_DEADLINE_MS) { + attempts += 1; + const result = await probe.acquireBatch([ + request(config, `readiness-${appPid}-${attempts}`, { + expectedTargetGeneration: `pid:${appPid}`, + limits: probeLimits, + }), + ]); + if (usableTree(result.responses[0] ?? failedResponse('readiness'))) { + return { readinessMs: performance.now() - started, attempts }; + } + await sleep(READINESS_POLL_MS); + } + } finally { + await probe.close?.(); + } + throw new Error(`App ${APP_ID} (pid ${appPid}) did not expose a readable tree in time.`); +} + +/** A killed guest can linger for a moment while launchd_sim reaps it; wait briefly, then fail closed. */ +async function assertNoResidentGuest(): Promise { + const deadline = Date.now() + 5_000; + let found = residentGuestPids(); + while (found.length > 0 && Date.now() < deadline) { + await sleep(100); + found = residentGuestPids(); + } + if (found.length > 0) { + throw new Error(`A guest bridge is still resident before a nonresident sample: pids ${found}`); + } +} + +function residentGuestPids(): string { + return execFileSync( + 'sh', + ['-c', 'pgrep -f "SimulatorFrameworkBridge accessibility serve" || true'], + { encoding: 'utf8' }, + ).trim(); } async function runLiveRecovery( config: SpikeConfig, - adapter: ReturnType, + bootstrap: readonly TargetedBootstrapSample[], ): Promise { - const probes: TargetedRecoveryProbe[] = []; - await adapter.acquireBatch([request(config, 'recovery-prime')]); - const crash = adapter.evidence?.terminateReaderOnNextBatch; - if (crash) crash(); - probes.push( - await recoveryProbe(config, adapter, 'process-crash', request(config, 'recovery-crash')), - ); - probes.push( - await recoveryProbe( - config, - adapter, - 'timeout', - request(config, 'recovery-timeout', { - limits: { ...config.limits, maxDurationMs: 1 }, - }), - ), - ); - probes.push(await cancellationProbe(config, adapter)); - const pids = readRunningAppPids(config.udid, APP_ID); - const expectedPid = (pids[0] ?? 1) + 1; - probes.push( - await recoveryProbe( - config, - adapter, - 'stale-generation', - request(config, 'recovery-stale-generation', { - expectedTargetGeneration: `pid:${expectedPid}`, - }), - ), - ); - return probes; + const adapter = createGuestSimulatorFrameworkBridgeAdapter(createAdapterOptions(config)); + try { + const probes: TargetedRecoveryProbe[] = []; + await adapter.acquireBatch([request(config, 'recovery-prime')]); + adapter.evidence?.terminateReaderOnNextBatch?.(); + probes.push( + await recoveryProbe(config, adapter, 'process-crash', request(config, 'recovery-crash')), + ); + probes.push( + await recoveryProbe( + config, + adapter, + 'timeout', + request(config, 'recovery-timeout', { + limits: { ...config.limits, maxDurationMs: 1 }, + }), + ), + ); + probes.push(await cancellationProbe(config, adapter)); + probes.push( + await recoveryProbe( + config, + adapter, + 'stale-generation', + request(config, 'recovery-stale-generation', { + expectedTargetGeneration: `pid:${deadGeneration(bootstrap)}`, + }), + ), + ); + return probes; + } finally { + await adapter.close?.(); + } +} + +/** A previous app generation's pid: the bootstrap relaunches guarantee it is dead. */ +function deadGeneration(bootstrap: readonly TargetedBootstrapSample[]): number { + const previous = bootstrap.at(-2)?.appPid; + if (previous === undefined) throw new Error('No previous app generation to test staleness.'); + return previous; } async function recoveryProbe( config: SpikeConfig, - adapter: ReturnType, + adapter: GuestAdapter, operation: TargetedRecoveryProbe['operation'], probeRequest: SpikeRequest, ): Promise { @@ -146,35 +246,37 @@ async function recoveryProbe( return { operation, request: probeRequest, - response: result.responses[0] ?? failedResponse(config, probeRequest.id), + response: result.responses[0] ?? failedResponse(probeRequest.id), recoveredResponse: await healthyResponse(config, adapter, `${probeRequest.id}-recovered`), }; } async function cancellationProbe( config: SpikeConfig, - adapter: ReturnType, + adapter: GuestAdapter, ): Promise { const probeRequest = request(config, 'recovery-cancelled'); const controller = new AbortController(); - const pending = adapter.acquireBatch([probeRequest], { signal: controller.signal }); + const pending = adapter.acquireBatch([probeRequest], { + signal: controller.signal, + }); setTimeout(() => controller.abort(), 1); const result = await pending; return { operation: 'cancelled', request: probeRequest, - response: result.responses[0] ?? failedResponse(config, probeRequest.id), + response: result.responses[0] ?? failedResponse(probeRequest.id), recoveredResponse: await healthyResponse(config, adapter, 'recovery-cancelled-recovered'), }; } async function healthyResponse( config: SpikeConfig, - adapter: ReturnType, + adapter: GuestAdapter, id: string, ): Promise { const result = await adapter.acquireBatch([request(config, id)]); - return result.responses[0] ?? failedResponse(config, id); + return result.responses[0] ?? failedResponse(id); } function request( @@ -194,7 +296,7 @@ function request( }; } -function failedResponse(config: SpikeConfig, id: string): SpikeResponse { +function failedResponse(id: string): SpikeResponse { return { version: 1, id, @@ -221,7 +323,9 @@ function usableTree(response: SpikeResponse): boolean { ); } -async function launchApp(udid: string): Promise { +/** A fresh app generation: terminate, launch, and wait for exactly one running pid. */ +async function relaunchApp(udid: string): Promise { + terminateApp(udid, APP_ID); execFileSync('xcrun', ['simctl', 'launch', udid, APP_ID], { encoding: 'utf8', timeout: 60_000, @@ -229,12 +333,41 @@ async function launchApp(udid: string): Promise { }); const deadline = Date.now() + 30_000; while (Date.now() < deadline) { - if (readRunningAppPids(udid, APP_ID).length === 1) return; - await new Promise((resolve) => setTimeout(resolve, 100)); + const pids = readRunningAppPids(udid, APP_ID); + if (pids.length === 1) return pids[0]!; + await sleep(100); + } + throw new Error(`App ${APP_ID} did not start on ${udid}.`); +} + +function readAutomationEnabled(udid: string): unknown { + try { + const output = execFileSync( + '/usr/libexec/PlistBuddy', + ['-c', 'Print :AutomationEnabled', simulatorPreferencePaths(udid)[0]!], + { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }, + ).trim(); + return output === 'true' ? true : output === 'false' ? false : output; + } catch { + return null; + } +} + +export function hostLoad(): HostLoad { + return { + loadAverage1m: Number(os.loadavg()[0]?.toFixed(2)), + cpuCores: os.cpus().length, + }; +} + +function hashFile(filePath: string): string | null { + try { + return crypto.createHash('sha256').update(fs.readFileSync(filePath)).digest('hex'); + } catch { + return null; } - throw new Error(`App ${APP_ID} did not become ready on ${udid}.`); } -function hashFile(filePath: string): string { - return crypto.createHash('sha256').update(fs.readFileSync(filePath)).digest('hex'); +function sleep(ms: number): Promise { + return new Promise((resolve) => setTimeout(resolve, ms)); } diff --git a/scripts/ios-ax-bridge-spike/targeted-run.ts b/scripts/ios-ax-bridge-spike/targeted-run.ts index 8c8e53bc4..a19b4eed8 100644 --- a/scripts/ios-ax-bridge-spike/targeted-run.ts +++ b/scripts/ios-ax-bridge-spike/targeted-run.ts @@ -9,11 +9,14 @@ import { readTargetedArtifact, writeCorrectedReport, } from './corrected-report.ts'; +import { GUEST_MECHANISM_EVIDENCE } from './guest-adapter.ts'; import { runTargetedEvidence } from './targeted-evidence.ts'; import { TARGETED_SCHEMA_VERSION, type TargetedRawArtifact } from './corrected-types.ts'; import { readGitRevision, readTarget, readToolchain } from '../ios-snapshot-benchmark/host.ts'; const SOURCE = 'docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz'; +const SUPERSEDED_TARGETED = + 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz'; const TARGETED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz'; const CORRECTED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz'; @@ -23,6 +26,7 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me async function main(argv: readonly string[]): Promise { const config = parseConfig(argv); + const source = readSpikeReport(SOURCE); const evidence = await runTargetedEvidence(config); const target = readTarget(config.udid, 'com.callstack.agentdevicelab'); const artifact: TargetedRawArtifact = { @@ -30,11 +34,24 @@ async function main(argv: readonly string[]): Promise { generatedAt: new Date().toISOString(), revision: readGitRevision(config.repoRoot), command: - 'pnpm bench:ios-ax-bridge:targeted -- --udid --guest-companion --guest-python python3 --guest-site-packages --apply-preferences', - sourceArtifact: { path: SOURCE, revision: readSpikeReport(SOURCE).revision }, + 'pnpm bench:ios-ax-bridge:targeted -- --udid --guest-bridge /Resources/SimulatorFrameworkBridge', + sourceArtifact: { + path: SOURCE, + revision: source.revision, + hostClient: String((source.guestMechanism as { client?: unknown }).client ?? 'unknown'), + }, + ...(fs.existsSync(SUPERSEDED_TARGETED) + ? { + supersededTargetedArtifact: { + path: SUPERSEDED_TARGETED, + hostClient: 'persistent-in-repository-reader (idb_companion + Python idb client)', + }, + } + : {}), target: { udid: target.udid, name: target.name, runtime: target.runtime }, toolchain: readToolchain(), - guestMechanism: readSpikeReport(SOURCE).guestMechanism, + host: evidence.host, + guestMechanism: GUEST_MECHANISM_EVIDENCE, preferenceEvidence: evidence.preferenceEvidence, config: { states: ['warm', 'relaunch'], @@ -51,7 +68,7 @@ async function main(argv: readonly string[]): Promise { CORRECTED, buildCorrectedReport({ sourcePath: SOURCE, - source: readSpikeReport(SOURCE), + source, targetedPath: TARGETED, targeted: readTargetedArtifact(TARGETED), }), diff --git a/scripts/ios-ax-bridge-spike/types.ts b/scripts/ios-ax-bridge-spike/types.ts index a645dc9bd..4e2c8bc2a 100644 --- a/scripts/ios-ax-bridge-spike/types.ts +++ b/scripts/ios-ax-bridge-spike/types.ts @@ -157,11 +157,11 @@ export type GuestMechanismEvidence = Readonly<{ release: 'v1.5.2'; companionArchive: 'idb-companion.macos-arm64.tar.gz'; companionSha256: string; - cliArchive: 'idb-cli-1.5.2.arm64_tahoe.bottle.tar.gz'; - cliSha256: string; - backend: 'axbridge-persistent'; - outputFormat: 'default'; - client: 'persistent-in-repository-reader'; + guestBinary: 'Resources/SimulatorFrameworkBridge'; + guestBinarySha256: string; + transport: string; + traversal: string; + client: 'node-direct-socket'; }>; export type Target = Readonly<{ @@ -227,6 +227,7 @@ export type SpikeReport = Readonly<{ cells: readonly SpikeCell[]; decision: 'GO' | 'NO-GO'; decisionReasons: readonly string[]; + stretchFindings: readonly string[]; nextInterface: string; stop?: Readonly<{ category: 'infrastructure' | 'configuration'; From a37549713003800de25c518f0a41014b93c7d681 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 3 Sep 2026 20:30:33 +0200 Subject: [PATCH 09/13] test(ios): narrow Simulator bridge decision evidence --- ...os-simulator-ax-bridge-2026-09-01-final.md | 141 --------- ...ios-simulator-ax-bridge-2026-09-01.json.gz | Bin 16106 -> 0 bytes .../ios-simulator-ax-bridge-2026-09-01.md | 132 -------- ...26-09-02-targeted-python-prototype.json.gz | Bin 5436 -> 0 bytes package.json | 1 - scripts/ios-ax-bridge-spike/README.md | 51 +-- scripts/ios-ax-bridge-spike/adapter.test.ts | 26 -- scripts/ios-ax-bridge-spike/adapter.ts | 240 +------------- scripts/ios-ax-bridge-spike/config.ts | 198 ++---------- .../ios-ax-bridge-spike/corpus-coverage.ts | 32 -- .../ios-ax-bridge-spike/corrected-markdown.ts | 18 +- .../corrected-report.test.ts | 200 ++++++++++-- .../ios-ax-bridge-spike/corrected-report.ts | 63 +++- .../ios-ax-bridge-spike/corrected-types.ts | 19 +- scripts/ios-ax-bridge-spike/decision.test.ts | 128 -------- scripts/ios-ax-bridge-spike/decision.ts | 293 ----------------- .../framed-process.test.ts | 117 ------- scripts/ios-ax-bridge-spike/framed-process.ts | 214 ------------- scripts/ios-ax-bridge-spike/guest-adapter.ts | 82 +++-- .../guest-process-metrics.test.ts | 17 + .../guest-process-metrics.ts | 55 ++++ scripts/ios-ax-bridge-spike/guest-wire.ts | 8 +- scripts/ios-ax-bridge-spike/lifecycle.test.ts | 21 -- scripts/ios-ax-bridge-spike/lifecycle.ts | 126 -------- .../preference-experiment.ts | 86 ----- .../ios-ax-bridge-spike/preferences.test.ts | 22 -- scripts/ios-ax-bridge-spike/preferences.ts | 254 --------------- .../ios-ax-bridge-spike/presentation.test.ts | 30 -- scripts/ios-ax-bridge-spike/presentation.ts | 100 ------ scripts/ios-ax-bridge-spike/protocol.ts | 173 +--------- scripts/ios-ax-bridge-spike/report.test.ts | 48 --- scripts/ios-ax-bridge-spike/report.ts | 291 ----------------- scripts/ios-ax-bridge-spike/run.test.ts | 13 - scripts/ios-ax-bridge-spike/run.ts | 298 ------------------ scripts/ios-ax-bridge-spike/runner.ts | 296 ----------------- .../sample-evidence.test.ts | 102 ------ .../ios-ax-bridge-spike/sample-evidence.ts | 157 --------- .../ios-ax-bridge-spike/targeted-evidence.ts | 131 +++----- scripts/ios-ax-bridge-spike/targeted-run.ts | 19 +- scripts/ios-ax-bridge-spike/types.ts | 112 +------ .../ios-snapshot-benchmark/cell-admission.ts | 47 +-- .../ios-snapshot-benchmark/command.test.ts | 19 -- scripts/ios-snapshot-benchmark/command.ts | 4 - .../definitions.test.ts | 2 - scripts/ios-snapshot-benchmark/definitions.ts | 1 - .../fixture-admission.test.ts | 1 - scripts/ios-snapshot-benchmark/types.ts | 1 - 47 files changed, 485 insertions(+), 3904 deletions(-) delete mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.md delete mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz delete mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01.md delete mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz delete mode 100644 scripts/ios-ax-bridge-spike/corpus-coverage.ts delete mode 100644 scripts/ios-ax-bridge-spike/decision.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/decision.ts delete mode 100644 scripts/ios-ax-bridge-spike/framed-process.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/framed-process.ts create mode 100644 scripts/ios-ax-bridge-spike/guest-process-metrics.test.ts create mode 100644 scripts/ios-ax-bridge-spike/guest-process-metrics.ts delete mode 100644 scripts/ios-ax-bridge-spike/lifecycle.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/lifecycle.ts delete mode 100644 scripts/ios-ax-bridge-spike/preference-experiment.ts delete mode 100644 scripts/ios-ax-bridge-spike/preferences.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/preferences.ts delete mode 100644 scripts/ios-ax-bridge-spike/presentation.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/presentation.ts delete mode 100644 scripts/ios-ax-bridge-spike/report.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/report.ts delete mode 100644 scripts/ios-ax-bridge-spike/run.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/run.ts delete mode 100644 scripts/ios-ax-bridge-spike/runner.ts delete mode 100644 scripts/ios-ax-bridge-spike/sample-evidence.test.ts delete mode 100644 scripts/ios-ax-bridge-spike/sample-evidence.ts diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.md b/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.md deleted file mode 100644 index ac647af40..000000000 --- a/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.md +++ /dev/null @@ -1,141 +0,0 @@ -# iOS Simulator AX bridge spike - -- Decision: **NO-GO** -- Status: **completed** -- Revision: 03f5a8ebe0bc3fa58c94a2c73e8d8ee6bda346ef (codex/2192-guest-bridge-evidence) -- Target: bench-golden-v2 (7E76ECA9-D40C-4833-A711-F870F8CE9363, com.apple.CoreSimulator.SimRuntime.iOS-27-0) -- Generated: 2026-09-02T14:49:10.733Z -- Corpus: states=cold-cold, cold, warm, relaunch, screens=quiet, list, nested-scroll, alert, system-surface, xctest-stress, samples=20 -- Corpus coverage: **full** - -## Evaluated guest mechanism - -- Implementation: **idb v1.5.2** using `axbridge-persistent` and `default` output. -- Companion: `idb-companion.macos-arm64.tar.gz` (SHA-256 `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`). -- CLI: `idb-cli-1.5.2.arm64_tahoe.bottle.tar.gz` (SHA-256 `ce574aa28ecf3e33a5249d60578a1dc2f609ec82f7e240907b6d9fde6251dda6`). -- Host client: **persistent-in-repository-reader**; the companion and client remain outside the distributed package. - -## Environment and limits - -- Node: v26.7.0 -- pnpm: 11.25.0 -- Xcode: Xcode 27.0; Build version 27A5252f -- simctl: @(#)PROGRAM:simctl PROJECT:CoreSimulator-1171.6 -- OS: darwin 27.0.0; arch=arm64 -- Bounds: request=65536 B, response=4194304 B, nodes=1500, traversal=12, CPU=2000 ms, memory=268435456 B, duration=5000 ms - -## Candidate fidelity and limitation matrix - -| Candidate | Mechanism | App surface | System surface | Lifecycle | Main limitation | -|---|---|---|---|---|---| -| guest-simulator-framework-bridge | idb SimulatorFrameworkBridge guest via axbridge-persistent | observed in successful cells | observed in successful cells | persistent companion + typed reader | provider exposes a flat raw element response | -| xctest-control | #2189 XCTest runner control | observed in successful cells | observed in successful cells | existing runner lifecycle | control, not a host-side AX bridge | - -## Raw acquisition and prototype presentation results - -| Candidate | State | Screen | Readable/attempted | Wall p50/p95 ms | Gated duration p50/p95 ms | First look p95 ms | Presentation p50/p95 ms | Nodes | Failures | -|---|---|---|---:|---:|---:|---:|---:|---:|---:| -| guest-simulator-framework-bridge | cold-cold | quiet | 20/20 | 417.3/563.5 | 413.1/562.6 | 15358.5/16575.5 | 0.2/0.3 | 25.0 | 0 | -| guest-simulator-framework-bridge | cold-cold | list | 20/20 | 594.0/871.2 | 591.9/868.3 | 17855.1/20062.0 | 4.1/6.5 | 283.0 | 0 | -| guest-simulator-framework-bridge | cold-cold | nested-scroll | 20/20 | 442.6/564.4 | 441.5/563.2 | 16674.5/19089.0 | 0.4/0.7 | 58.0 | 0 | -| guest-simulator-framework-bridge | cold-cold | alert | 20/20 | 404.2/465.7 | 402.4/463.8 | 15240.0/17549.4 | 1.7/2.9 | 149.0 | 0 | -| guest-simulator-framework-bridge | cold-cold | system-surface | 20/20 | 522.8/658.3 | 521.7/656.8 | 17654.2/18866.3 | 1.7/3.4 | 167.0 | 0 | -| guest-simulator-framework-bridge | cold-cold | xctest-stress | 20/20 | 488.4/670.1 | 486.8/668.9 | 16316.8/17368.5 | 1.4/2.5 | 139.0 | 0 | -| guest-simulator-framework-bridge | cold | quiet | 20/20 | 8.4/9.1 | 7.9/8.4 | 6784.5/7147.0 | 0.0/0.1 | 25.0 | 0 | -| guest-simulator-framework-bridge | cold | list | 20/20 | 117.5/119.9 | 116.0/118.5 | 7044.9/7104.5 | 5.6/7.0 | 283.0 | 0 | -| guest-simulator-framework-bridge | cold | nested-scroll | 20/20 | 15.5/16.2 | 14.5/15.1 | 6853.2/6947.1 | 0.3/0.5 | 58.0 | 0 | -| guest-simulator-framework-bridge | cold | alert | 20/20 | 39.0/42.6 | 38.1/40.9 | 6842.4/6895.5 | 1.6/2.5 | 146.0 | 0 | -| guest-simulator-framework-bridge | cold | system-surface | 20/20 | 37.2/40.3 | 35.6/38.5 | 6963.7/7181.9 | 1.6/2.6 | 167.0 | 0 | -| guest-simulator-framework-bridge | cold | xctest-stress | 20/20 | 40.5/42.7 | 38.9/41.0 | 6882.1/6959.1 | 1.5/1.9 | 139.0 | 0 | -| guest-simulator-framework-bridge | warm | quiet | 20/20 | 8.6/9.3 | 7.9/8.4 | 8.6/9.3 | 0.1/0.1 | 25.0 | 0 | -| guest-simulator-framework-bridge | warm | list | 20/20 | 118.2/120.9 | 115.6/118.8 | 118.2/120.9 | 5.2/6.6 | 283.0 | 0 | -| guest-simulator-framework-bridge | warm | nested-scroll | 20/20 | 15.1/15.8 | 14.2/14.7 | 15.1/15.8 | 0.2/0.3 | 58.0 | 0 | -| guest-simulator-framework-bridge | warm | alert | 20/20 | 41.6/43.3 | 40.2/41.6 | 41.6/43.3 | 1.0/1.9 | 146.0 | 0 | -| guest-simulator-framework-bridge | warm | system-surface | 20/20 | 37.2/39.6 | 35.7/37.9 | 37.2/39.6 | 1.5/2.2 | 167.0 | 0 | -| guest-simulator-framework-bridge | warm | xctest-stress | 20/20 | 39.6/41.1 | 38.1/39.3 | 39.6/41.1 | 1.4/1.8 | 139.0 | 0 | -| guest-simulator-framework-bridge | relaunch | quiet | 20/20 | 8.9/9.6 | 8.2/8.9 | 3654.1/4399.3 | 0.1/0.1 | 25.0 | 0 | -| guest-simulator-framework-bridge | relaunch | list | 20/20 | 119.2/121.1 | 116.7/119.1 | 4515.6/5177.9 | 4.4/6.2 | 283.0 | 0 | -| guest-simulator-framework-bridge | relaunch | nested-scroll | 20/20 | 15.4/16.5 | 14.7/15.5 | 4316.7/5093.8 | 0.1/0.2 | 58.0 | 0 | -| guest-simulator-framework-bridge | relaunch | alert | 20/20 | 41.1/42.7 | 39.5/40.8 | 4380.2/4461.2 | 1.7/2.2 | 146.0 | 0 | -| guest-simulator-framework-bridge | relaunch | system-surface | 20/20 | 37.3/39.5 | 36.3/37.7 | 4882.3/5013.4 | 1.7/2.5 | 167.0 | 0 | -| guest-simulator-framework-bridge | relaunch | xctest-stress | 20/20 | 40.4/42.6 | 39.1/40.7 | 4395.7/4503.0 | 0.9/2.4 | 139.0 | 0 | -| xctest-control | cold-cold | quiet | 20/20 | 163.3/247.5 | 163.2/247.5 | 15611.3/16840.6 | 0.0/0.1 | 6.0 | 0 | -| xctest-control | cold-cold | list | 20/20 | 327.6/429.3 | 327.5/429.1 | 14931.5/16261.8 | 0.2/0.5 | 35.0 | 0 | -| xctest-control | cold-cold | nested-scroll | 20/20 | 209.3/246.3 | 209.0/246.2 | 15016.4/15457.2 | 0.1/0.3 | 25.0 | 0 | -| xctest-control | cold-cold | alert | 20/20 | 213.0/282.6 | 212.9/282.5 | 15491.7/16666.2 | 0.1/0.2 | 30.0 | 0 | -| xctest-control | cold-cold | system-surface | 20/20 | 258.8/356.7 | 258.7/356.5 | 15933.8/16595.8 | 0.1/0.3 | 18.0 | 0 | -| xctest-control | cold-cold | xctest-stress | 20/20 | 235.7/312.0 | 235.6/311.9 | 15948.0/16851.6 | 0.1/0.2 | 29.0 | 0 | -| xctest-control | cold | quiet | 20/20 | 142.3/155.6 | 142.3/155.5 | 6835.4/7037.6 | 0.0/0.0 | 6.0 | 0 | -| xctest-control | cold | list | 20/20 | 300.4/321.7 | 300.3/321.5 | 7159.1/7245.4 | 0.2/0.3 | 35.0 | 0 | -| xctest-control | cold | nested-scroll | 20/20 | 176.3/190.6 | 176.2/190.4 | 6908.5/6974.1 | 0.1/0.2 | 25.0 | 0 | -| xctest-control | cold | alert | 20/20 | 203.1/213.7 | 203.0/213.4 | 6966.8/7120.8 | 0.1/0.2 | 30.0 | 0 | -| xctest-control | cold | system-surface | 20/20 | 211.6/218.4 | 211.5/218.3 | 7108.5/7228.2 | 0.1/0.1 | 18.0 | 0 | -| xctest-control | cold | xctest-stress | 20/20 | 206.1/213.1 | 205.9/213.0 | 7043.2/7106.2 | 0.1/0.2 | 29.0 | 0 | -| xctest-control | warm | quiet | 20/20 | 150.2/155.8 | 150.1/155.7 | 150.2/155.8 | 0.0/0.0 | 6.0 | 0 | -| xctest-control | warm | list | 20/20 | 314.4/321.4 | 314.1/321.2 | 314.4/321.4 | 0.2/0.4 | 35.0 | 0 | -| xctest-control | warm | nested-scroll | 20/20 | 186.2/192.4 | 186.0/192.3 | 186.2/192.4 | 0.1/0.2 | 25.0 | 0 | -| xctest-control | warm | alert | 20/20 | 208.7/215.8 | 208.6/215.7 | 208.7/215.8 | 0.1/0.1 | 30.0 | 0 | -| xctest-control | warm | system-surface | 20/20 | 203.8/218.4 | 203.7/218.4 | 203.8/218.4 | 0.1/0.2 | 18.0 | 0 | -| xctest-control | warm | xctest-stress | 20/20 | 198.5/215.4 | 198.4/215.3 | 198.5/215.4 | 0.1/0.1 | 29.0 | 0 | -| xctest-control | relaunch | quiet | 20/20 | 467.1/482.5 | 467.0/482.4 | 4092.5/4798.6 | 0.0/0.1 | 5.0 | 0 | -| xctest-control | relaunch | list | 20/20 | 467.5/484.7 | 467.4/484.5 | 4836.3/5643.2 | 0.2/0.3 | 32.0 | 0 | -| xctest-control | relaunch | nested-scroll | 20/20 | 467.6/478.0 | 467.4/477.8 | 4761.2/5496.0 | 0.1/0.3 | 26.0 | 0 | -| xctest-control | relaunch | alert | 20/20 | 463.1/478.9 | 463.1/478.7 | 4808.2/4877.2 | 0.1/0.4 | 26.0 | 0 | -| xctest-control | relaunch | system-surface | 20/20 | 464.2/482.9 | 464.1/482.7 | 5243.9/5379.9 | 0.1/0.2 | 20.0 | 0 | -| xctest-control | relaunch | xctest-stress | 20/20 | 470.9/483.4 | 470.8/483.3 | 4914.0/5558.9 | 0.1/0.2 | 26.0 | 0 | - -Raw exemplar fidelity (candidate vs XCTest control): -- guest-simulator-framework-bridge quiet: nodes 25/6; depth 0/3; identifiers 3/2. -- guest-simulator-framework-bridge list: nodes 283/35; depth 0/5; identifiers 63/12. -- guest-simulator-framework-bridge nested-scroll: nodes 58/25; depth 0/6; identifiers 11/8. -- guest-simulator-framework-bridge alert: nodes 146/30; depth 0/5; identifiers 21/11. -- guest-simulator-framework-bridge system-surface: nodes 167/18; depth 0/4; identifiers 30/14. -- guest-simulator-framework-bridge xctest-stress: nodes 139/29; depth 0/5; identifiers 23/7. - -Every acquisition sample retains timing, resource, readiness, and failure evidence; the first successful sample in each cell also retains one raw node-tree exemplar with viewport, target generation, truncation, and residue. Presentation samples measure only construction of the #2190 acquired carrier; they do not apply visibility, hittability, scope, depth, or semantic compaction. - -## Direct protocol probes - -- guest-simulator-framework-bridge/protocol-probe:guest-simulator-framework-bridge: ok=false, failure=timeout, code=batch-duration-limit, nodes=0, duration=0.0 ms, CPU=– ms, memory=– B, response=0 B -- stderr guest-simulator-framework-bridge/protocol-probe:guest-simulator-framework-bridge: IDB Companion Built at Sep 1 2026 08:51:20 ⏎ IDB Companion architecture arm64 ⏎ Invoked with args=[/tmp/agent-device-idb-2192-rerun/companion/idb_companion, --udid, 7E76ECA9-D40C-4833-A711-F870F8CE9363, --grpc-domain-sock, /var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/agent-device-guest-yR225B/bridge.sock, --log-level, warning, --idle-shutdown-time, 3600] ⏎ Providing targets across Simulator and Device sets. ⏎ CoreSimulator: Already loaded, skipping ⏎ CoreSimulator: SimDevice has correct path of /Library/Developer ⏎ Loaded All Private Frameworks [CoreSimulator] ⏎ MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework ⏎ MobileDevice: Successfully loaded ⏎ Loaded All Private Frameworks [MobileDevice] ⏎ MobileDevice: Loading from /System/Library/PrivateFrameworks/MobileDevice.framework ⏎ MobileDevice: Successfully loaded ⏎ Loaded All Private Frameworks [MobileDevice] ⏎ Cleaning up UDS if exists ⏎ Starting swift server on unix socket /var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/agent-device-guest-yR225B/bridge.sock ⏎ Swift server started on [UDS]/var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/agent-device-guest-yR225B/bridge.sock ⏎ Companion will shut down after 3600s of inactivity ⏎ Companion will stay alive if target goes offline ⏎ Start of connect ⏎ connect called with: [metadata=[:], localFilePath=/var/folders/pn/0s6xww5x5tj2brz0nrvlx96w0000gn/T/tmp13m33044, unknownFields=UnknownStorage(data: 0 bytes)] ⏎ connect succeeded ⏎ Start of describe ⏎ describe called with: [fetchDiagnostics=false, unknownFields=UnknownStorage(data: 0 bytes)] ⏎ describe succeeded ⏎ Start of accessibility_info ⏎ accessibility_info called with: [format=legacy, marker=, matchKey=label, depth=0, keys=["AXFrame", "AXLabel", "AXValue", "AXUniqueId", "AXEnabled", "AXSelected", "AXFocused", "type", "rol..., backend=axbridgePersistent, profile=false, collectFrameCoverage=false, unknownFields=UnknownStorage(data: 0 bytes), point=nil] - -## Independent positive-control evidence - -- Invalid shallow rule: exit=1; command=pnpm bench:ios-snapshot:deep-button -- --rule invalid-shallow; assertion=AssertionError: changed descendant was omitted by shallow observation; no-effect claim is invalid. -- Safe full rule: exit=0; command=pnpm bench:ios-snapshot:deep-button -- --rule safe-full; assertion=full observation changed and includes the changed descendant. - -## Preference experiment - -- Applied: **true** -- Restored: **true** -- Fixture launch compatible: **true** -- Simulator state before experiment: Shutdown -- Private/preboot preference keys are experimental only; they were applied to this shutdown disposable Simulator and the original plist bytes were restored. -- /Users/michal/Library/Developer/CoreSimulator/Devices/7E76ECA9-D40C-4833-A711-F870F8CE9363/data/Library/Preferences/com.apple.Accessibility.plist: existed=true, beforeSha256=d823b0ec1206d6f988374a2ad6f2851e300f82ecb8a9345ed540e288c9c76fa9, afterSha256=3bf49967da1ddaf776cf3eebf005a0c49622d78456ce1f8dd1007fb1ed4f9647 - - Changes: AccessibilityEnabled: false -> true; ApplicationAccessibilityEnabled: 0 -> true; AutomationEnabled: 0 -> true; IgnoreAXServerEntitlements: undefined -> true -- /Users/michal/Library/Developer/CoreSimulator/Devices/7E76ECA9-D40C-4833-A711-F870F8CE9363/data/Library/Preferences/com.apple.UIAutomation.plist: existed=true, beforeSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c, afterSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c - - Changes: none - -## Lifecycle, cancellation, and recovery - -- Source: framed-protocol-fixture -- Process crash: process-crash; recovered=true -- Timeout: timeout; recovered=true -- Cancellation: cancelled; recovered=true -- Stale generation: stale-generation; recovered=true - -## Decision rationale - -- guest-simulator-framework-bridge cold-cold first look missed the 5 second target. -- guest-simulator-framework-bridge cold prepared first look missed the 1.5 second target. -- guest-simulator-framework-bridge warm/list acquisition missed the 75/150 ms target. -- guest-simulator-framework-bridge relaunch first look missed the 250 ms target. - -## Next interface boundary - -- Keep any future bridge behind the #2190 acquisition adapter and preserve raw facts until a separate GO evidence run proves fidelity, lifecycle, and latency. - -## Production boundary - -- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made. -- A production bridge should not start until this report has a GO result; this run is the #2192 boundary. diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz deleted file mode 100644 index cb88f34a3ef43248e2e3d9ff164a0acde75461d4..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 16106 zcmZXbWl$VZ)9-Nz?(SLK-Q696JHg%EB}jsMaJS$d9D*+a7I%l>EDnoap7;53?|Y}F zrn=6DQ)lMLboc+)6tPH9|G8jr&U-de_V`n10^dd8Rptn~+Nf~XcM=Np9GWNpo}AR? zy)m5r&2n11=rog$Lv?15=8=)HR@U!%&Q48}{;n0Hr2veB2(nps;)aWlQf;F@L_`$G zO^i!j6TSzeu+2G&c9NB?xOXd4=r;czyLNl=3(TyTOC0y@kPlIu$BA>6J$CO;)2Sy+A?fcFMcR)KkTq?=99gx6 ze%bBK#<&H}pj_PMne(HNm&_1Iz1Yjabl>|#j@YISh3pJQ2;}DdX`>6H9o!`B*Eawa zsy}mNoyH>9USgLUqIihawA*yb&o&u*BgeF*AFK$rirHkwZwC0Yy|?-yRI6tl^`)6+ z4c{d0UBg=8N^&!ZK~=OiU5|&nKEFuihA977t9&_jV;18Nj-y+-<}xUg<5WE0vy9Q1 z^AzkP3mTmYsd#PQYwrtyweTPGKHCDVU3G=J@En6Tdp}(#-8^c@o=%Qhngr$um!(=7 z6<-&P$h(?O#-@S}f9Rvda?f8q;k2 z_$~z#4Jm&XnB zyU~Lqe6QD5G1^4^H=}oQ1GT8{)l(+m0bvT-pJjVUd@H|aVhb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PS>p5?v;A9TnVwgroVrYCv1(o zSN;li6xFM1P{evuYuoGlqXan4X3 zNxT9WChScoZ(pfYxsdVvdQPUt0?d6Beo>EZL7g7C5ot^I6+h2Im|zYHDaPk2^x#4{ zlO-!K)uz64!o|Yf5@zr5rzUWC;)5ctRd0pKN|G=fwZF zToWdX_@h)io30=heE8vuj^Yg5n5J4{4c{Cd1#8z_OYhfz)R!Hx`e6zv_|1M)e*2Hc z`4Y1!7X5{AGZsx3q|hgd$vj+@>d997B~MAqG@AHG}LqK1%MBEFcwd3oU>D{ qVw{;J-=$dJzd$*kuGt{a3!h*-@VZ8}? true; ApplicationAccessibilityEnabled: 0 -> true; AutomationEnabled: 0 -> true; IgnoreAXServerEntitlements: undefined -> true -- /Users/thymikee/Library/Developer/CoreSimulator/Devices/F578F08D-BEA1-4A56-8A4B-C92B040FBA94/data/Library/Preferences/com.apple.UIAutomation.plist: existed=true, beforeSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c, afterSha256=db8995177327a963486dd0607260f0fad74ad10d9dec6c2f5abdbaf0dbd00b2c - - Changes: none - -## Lifecycle, cancellation, and recovery - -- Source: framed-protocol-fixture -- Process crash: process-crash; recovered=true -- Timeout: timeout; recovered=true -- Cancellation: cancelled; recovered=true -- Stale generation: stale-generation; recovered=true - -## Decision rationale - -- public-macos-ax warm/quiet acquisition missed the 75/150 ms target. -- public-macos-ax warm/list acquisition missed the 75/150 ms target. -- The generated private candidate result only proved that no tool path was supplied. -- The post-run idb audit disproved the claim that a compatible private mechanism was unavailable - and passed the warm latency threshold on one detailed Settings screen. -- The overall verdict is therefore inconclusive. Public AX remains NO-GO; the idb-style persistent - guest bridge is GO for full-corpus evaluation, not yet GO for production. - -## Next interface boundary - -- Adapt the idb-style persistent guest reader behind the #2190 acquisition boundary and run every - remaining #2192 state and screen cell while preserving raw facts. - -## Production boundary - -- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made. -- Production routing remains blocked until the guest bridge passes the full correctness, lifecycle, - and latency corpus. The original zero-cell private result must not be used to close #2192. diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz deleted file mode 100644 index 5c05b78cf40aa3b71fce1b7586bfe97ad340989d..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 5436 zcmV-C6~pQuiwFP!000026YX95bK5wQ{{8+6l<%%;w@Q@wez-PQC%-b@O(x#R$xLmM zN`WLOVN8)4K5T2Y^1oj<_zvxH?79)|^#(N*16R8LX$Yt1?~ zoMTh(n~weu$e6KPULpVUC`hMMj`TESXJ-51A&% zSi81P$4#AxqQJjp$V2j%cW0Mp{{v5z5CECc1oS6=xf)*ov`CoEiwV4~{%5qWb6zlI zMuQtVX8EEFoz3F8GRs)RGE_DPZS%Cu0yfMF9?_t{_L{t43r|m-$Tf10$lA8+ay#UND#&x{TR=NDb3w(Qa)X(Ku&cpw+7; zMakHlfZ?1w_W9}1Q_f8FR54w{P==1CDHpDzUbv^{o?#n+lh7%H+@hD1aT)`@a;sxy z%B0{T4XV<|hGhNIG-IQtP5SWbZI!9d-;5O9QPd;UBu(RBLb+&$1Zn~hx4PYT`YOPp zO~4CH>+601J@-9rdKcxY>0m|w_e^o})CXXgm zw`?dBX^!t`F10knGc-rFEK{dWn_g(Emg7<_4D`rW zJr=lnPqCrZX)0dc zR(8T7NCa`CNm+#HT_XG|iojq#w9#SkE(c`>Qx3Kf4_hL{> za5H#{7Y;&N&=&D(5v&Fa&l?8toO7SYyqNc)ZaKCSyT`@}8~v-g`QoYV$I#UcUuA)& zt9EEdp6eRWuR4X_x@&37P*t!T7Wgjp4AWwvWvWbfAxs614JL<95)~|K0WDM0J)P=? z>l;2}fJ&+D8@BFShH0`O^Z^RqIG*n4QRL{Z3H5ea7=pb90R|m(FNo8kd2bkmv7=7? z&J*g#&{<7g>M&O;(hM|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dbl#xgBZ^}gY{nr%Iw z78wUxbf86#2Jf@@@0LD1(4qq^`hjWDs*!&KTC`5+k4=ky^Jm8W&2KjcT6CaA&!R=< zGA%OIzNOoar=z*4=5uI~d7woHTJ&h}zWC#((3u`+(Sa8Iz_e)9$iD$CS|{|!rbP*} zI0aid(4qq^dKN9RmT8gg_8m+2v}(1;eGV)X z`8S|N>xBN;wCKjyew$9i`vWaH(4rk^(I>GN8}a61FExhl=I`8r2H4(8kkMRRDN+%O zwG^lUX)|xhg4)D)TmA7uapqYZN)rdwsz2@o&-I^l67)!rBH%c0JG{uYEW_?q?>qF! z)I8I`#W6_wx%wkTnx(F%Nw_5&UZ2+cxYat_Ynd(Swrd)eX;s3`WabI^kvKibEuY)4 z57Nu!93IFotKmHF>a#iZpf&c*OteArU diff --git a/package.json b/package.json index 104693e88..d349a7043 100644 --- a/package.json +++ b/package.json @@ -124,7 +124,6 @@ "bench:ios-snapshot": "node --experimental-strip-types scripts/ios-snapshot-benchmark/run.ts", "bench:ios-snapshot:deep-button": "node --experimental-strip-types scripts/ios-snapshot-benchmark/deep-button.ts", "bench:ios-snapshot:evidence": "node --experimental-strip-types scripts/ios-snapshot-benchmark/evidence.ts", - "bench:ios-ax-bridge": "node --experimental-strip-types scripts/ios-ax-bridge-spike/run.ts", "bench:ios-ax-bridge:targeted": "node --experimental-strip-types scripts/ios-ax-bridge-spike/targeted-run.ts", "mutation:run": "node --experimental-strip-types scripts/mutation/run.ts", "mutation:check": "node --experimental-strip-types scripts/mutation/run.ts --no-run", diff --git a/scripts/ios-ax-bridge-spike/README.md b/scripts/ios-ax-bridge-spike/README.md index 78ed1e1f6..adcee9beb 100644 --- a/scripts/ios-ax-bridge-spike/README.md +++ b/scripts/ios-ax-bridge-spike/README.md @@ -1,49 +1,12 @@ -# iOS Simulator AX bridge spike +# iOS Simulator AX bridge decision verifier -This bounded harness supplies the decision evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It compares an in-Simulator accessibility reader with the #2189 XCTest control baseline behind one acquisition adapter. It does not select a production backend or change daemon, runner, open, relaunch, proxy, interaction, or public CLI behavior, and nothing in it ships in the npm package. +This narrow harness supplies the decisive live evidence for [#2192](https://github.com/callstack/agent-device/issues/2192). It drives idb v1.5.2's in-Simulator `Resources/SimulatorFrameworkBridge` directly from Node over a private UNIX socket. It does not use `idb_companion`, gRPC, or Python, and it does not change production routing. -## Mechanism under test +The checked-in September 1 broad raw corpus is retained because it contains the warm and relaunch measurements. Its one-off runner and generated NO-GO reports were removed after the corrected contract made them obsolete. -The guest candidate is idb v1.5.2's `Resources/SimulatorFrameworkBridge`: a 196 KB iOS-Simulator executable that reads the XCTest-shaped element tree (`XC_kAXXCAttribute*`) inside the Simulator and serves it over a UNIX socket. The spike drives it **directly from Node**: +Obtain the guest executable from the official arm64 idb v1.5.2 release. The archive SHA-256 is `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; `Resources/SimulatorFrameworkBridge` is `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`. -- `xcrun simctl spawn SimulatorFrameworkBridge accessibility serve --idle-timeout 300 --exit-on-disconnect true` starts one private guest per session in the Simulator's launchd domain; -- the host connects to the socket and exchanges 4-byte big-endian length-prefixed JSON frames; -- each read is one `describe` with `snapshotTree=true` (one XCTest snapshot fetch, one Mach round trip) and `automationMode=true`, so the target exposes its accessibility server without preboot preference edits; -- a known target generation reads by pid; otherwise the guest resolves the foreground app in-guest through RunningBoard. - -No `idb_companion`, gRPC, or Python client is involved. The earlier prototype packaging (companion + Python reader) is retained only as the superseded targeted artifact. - -Build the repository first: - -```sh -pnpm install --frozen-lockfile -pnpm build -``` - -Obtain the guest executable from the official arm64 [idb v1.5.2 release](https://github.com/facebook/idb/releases/tag/v1.5.2) (`idb-companion.macos-arm64.tar.gz`, SHA-256 `f17b718a513931705542a7fbfa9cfc11895ee191562c9ffd2343cf7f8254bc08`; the extracted `Resources/SimulatorFrameworkBridge` has SHA-256 `3545621d2dc98de32879ebac55e8b0c33dc8eb7cc2bfbc2d0d2d21a002c8de58`). Use a task-owned iOS Simulator with the test app installed. - -## Broad corpus - -```sh -pnpm bench:ios-ax-bridge -- \ - --udid SIMULATOR_UDID \ - --candidate guest-simulator-framework-bridge,xctest-control \ - --state cold-cold,cold,warm,relaunch \ - --screen quiet,list,nested-scroll,alert,system-surface,xctest-stress \ - --samples 20 \ - --guest-bridge /path/to/Resources/SimulatorFrameworkBridge \ - --out .tmp/ios-ax-bridge-spike.v1.json.gz -``` - -The default candidate set, state set, screen set, and sample minimums come from the #2189 benchmark definitions. Each request carries an optional expected target generation and fixed request, response, node-count, traversal-depth, CPU, memory, and duration bounds. Guest reads keep the nested view hierarchy as parent-linked raw nodes with XCTest type names, labels, values, identifiers, and frames; they do not import visibility, hittability, scope, depth, or semantic compaction. Every sample keeps resource metrics and target status; each cell keeps one raw-tree exemplar with viewport, lineage, truncation, residue, and bounded diagnostics, plus separate prototype presentation measurements. - -Hard tiers follow the maintainer-corrected #2192 contract: warm p50 < 300 ms and p95 < 500 ms per screen, relaunch p95 < 500 ms after observed app readiness. The former 75/150 ms and 250 ms values are reported as stretch findings and never decide GO/NO-GO. - -`--apply-preferences` optionally runs the task-owned preboot AX preference experiment. The Simulator must be shutdown; the harness records exact plist hashes and targeted key changes, then restores the original bytes before reporting. The keys are not production defaults and the guest path does not need them. - -## Targeted evidence - -The broad corpus predates the corrected hard-latency contract. The live nonresident-bootstrap and lifecycle evidence is produced with: +Run the verifier from a clean commit using the dedicated Simulator with the fixture app installed: ```sh pnpm bench:ios-ax-bridge:targeted -- \ @@ -51,6 +14,4 @@ pnpm bench:ios-ax-bridge:targeted -- \ --guest-bridge /path/to/Resources/SimulatorFrameworkBridge ``` -For each of five bootstrap samples the fixture app is relaunched, a throwaway probe bridge polls until the new app generation answers with a tree (readiness is observed, never assumed from a pid), the probe exits, and only then a fresh guest is spawned and timed to its first usable tree. Host load is recorded per sample. Recovery probes exercise process crash, timeout, cancellation, and a dead target generation through the same adapter and require a typed failure plus a usable recovered read. The run preserves the broad raw artifact, writes the narrow raw artifact, and regenerates the corrected report. - -The harness fails closed. It reports `NO-GO` when the guest candidate is unsupported, unavailable, unreadable, stale, over a bound, below the sample minimum, or when crash/timeout/cancellation recovery is not typed and recovered. XCTest is a control result and cannot turn a passing guest corpus into a failure. +It captures five nonresident bootstrap samples after independently observing application readiness, then exercises crash, timeout, cancellation, and stale-generation recovery. Successful reads record guest CPU time and resident memory, and the corrected report fails closed if those metrics are missing or exceed the declared bounds. diff --git a/scripts/ios-ax-bridge-spike/adapter.test.ts b/scripts/ios-ax-bridge-spike/adapter.test.ts index 23226b77f..da5a8186e 100644 --- a/scripts/ios-ax-bridge-spike/adapter.test.ts +++ b/scripts/ios-ax-bridge-spike/adapter.test.ts @@ -1,33 +1,7 @@ import assert from 'node:assert/strict'; import { test } from 'vitest'; -import { readControlSnapshot } from './adapter.ts'; import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; -test('control mapping preserves the producer raw node type', () => { - const result = readControlSnapshot({ - data: { - results: [ - { - data: { - snapshot: { - nodes: [ - { - index: 7, - type: 'XCUIElementTypeButton', - role: 'AXButton', - }, - ], - }, - }, - }, - ], - }, - }); - - assert.equal(result?.nodes[0]?.type, 'XCUIElementTypeButton'); - assert.equal(result?.nodes[0]?.role, 'AXButton'); -}); - test('guest adapter fails closed when the guest bridge executable is not configured', async () => { const adapter = createGuestSimulatorFrameworkBridgeAdapter({ repoRoot: '/repo' }); const result = await adapter.acquireBatch([ diff --git a/scripts/ios-ax-bridge-spike/adapter.ts b/scripts/ios-ax-bridge-spike/adapter.ts index 50d4d8360..78a739d45 100644 --- a/scripts/ios-ax-bridge-spike/adapter.ts +++ b/scripts/ios-ax-bridge-spike/adapter.ts @@ -1,252 +1,16 @@ -import { performance } from 'node:perf_hooks'; -import { - classifyFailure, - snapshotFixture, - type CliContext, - type CliResult, -} from '../ios-snapshot-benchmark/command.ts'; -import { validateRawAcquisition } from './limits.ts'; -import { failureResponse } from './protocol.ts'; -import type { - CandidateId, - RawAcquiredNode, - ResourceLimits, - SpikeRequest, - SpikeResponse, -} from './types.ts'; +import type { CandidateId, ResourceLimits, SpikeRequest, SpikeResponse } from './types.ts'; export type AcquisitionAdapter = Readonly<{ candidate: CandidateId; acquireBatch( requests: readonly SpikeRequest[], options?: Readonly<{ signal?: AbortSignal }>, - ): Promise; + ): Promise>; close?: () => Promise; evidence?: Readonly<{ terminateReaderOnNextBatch?: () => void }>; }>; -export type AcquisitionBatchResult = Readonly<{ - responses: readonly SpikeResponse[]; - stderr: string; -}>; - export type AdapterOptions = Readonly<{ - repoRoot: string; limits?: ResourceLimits; - /** Path to the in-Simulator `SimulatorFrameworkBridge` guest executable (idb v1.5.2 Resources). */ guestBridge?: string; }>; - -export function createXCTestControlAdapter( - contextFor: (request: SpikeRequest) => CliContext, -): AcquisitionAdapter { - return { - candidate: 'xctest-control', - async acquireBatch(requests) { - return { - responses: requests.map((request) => { - const started = performance.now(); - return controlResponse( - request, - snapshotFixture(contextFor(request)), - performance.now() - started, - ); - }), - stderr: '', - }; - }, - }; -} - -function controlResponse( - request: SpikeRequest, - result: CliResult, - durationMs: number, -): SpikeResponse { - const snapshot = readControlSnapshot(result.payload); - return result.ok && snapshot - ? successfulControlResponse(request, snapshot, result, durationMs) - : failedControlResponse(request, result); -} - -function successfulControlResponse( - request: SpikeRequest, - snapshot: ControlSnapshot, - result: CliResult, - durationMs: number, -): SpikeResponse { - const acquisition = { - targetId: `simulator:${request.simulatorUdid}`, - targetGeneration: snapshot.targetGeneration, - nodes: snapshot.nodes, - viewport: snapshot.viewport, - truncated: snapshot.truncated, - residue: [{ kind: 'missing-viewport', reason: 'not-provided' }], - } as const; - const validated = validateRawAcquisition(acquisition, request.limits); - if (!validated.ok) { - return failureResponse(request, { kind: 'malformed-tree', code: validated.code }); - } - return { - version: 1, - id: request.id, - candidate: request.candidate, - ok: true, - acquisition, - metrics: { - requestBytes: 0, - responseBytes: Buffer.byteLength(result.stdout), - nodeCount: acquisition.nodes.length, - maxTraversalDepth: validated.maxTraversalDepth, - cpuMs: null, - memoryBytes: null, - durationMs, - }, - }; -} - -function failedControlResponse(request: SpikeRequest, result: CliResult): SpikeResponse { - const failure = classifyFailure(result.payload, result); - return failureResponse( - request, - { - kind: controlFailureKind(failure.category), - ...(failure.code ? { code: failure.code } : {}), - }, - { - responseBytes: Buffer.byteLength(result.stdout), - durationMs: result.wallClockMs, - }, - ); -} - -function controlFailureKind( - category: string, -): 'timeout' | 'stale-generation' | 'transport-failure' { - if (category === 'timeout') return 'timeout'; - if (category === 'stale-generation') return 'stale-generation'; - return 'transport-failure'; -} - -export type ControlSnapshot = Readonly<{ - nodes: RawAcquiredNode[]; - targetGeneration: string | null; - truncated: boolean; - viewport: { kind: 'missing'; reason: 'not-provided' }; -}>; - -export function readControlSnapshot(value: unknown): ControlSnapshot | undefined { - const snapshot = findSnapshotRecord(value); - if (!snapshot || !Array.isArray(snapshot.nodes)) return undefined; - const nodes = snapshot.nodes.flatMap((rawNode) => toRawNode(rawNode)); - return { - nodes, - targetGeneration: readGeneration(snapshot), - truncated: snapshot.truncated === true, - viewport: { kind: 'missing', reason: 'not-provided' }, - }; -} - -function findSnapshotRecord(value: unknown): Record | undefined { - const root = record(value); - return root ? snapshotFromRoot(root) : undefined; -} - -function snapshotFromRoot(root: Record): Record | undefined { - const stepData = firstBatchStep(record(root.data)); - return snapshotFromStep(stepData); -} - -function snapshotFromStep( - stepData: Record | undefined, -): Record | undefined { - if (!stepData) return undefined; - return record(stepData.snapshot) ?? stepData; -} - -function firstBatchStep( - data: Record | undefined, -): Record | undefined { - if (!data) return undefined; - const results = data.results; - return Array.isArray(results) ? firstResultData(results, data) : data; -} - -function firstResultData( - results: readonly unknown[], - fallback: Record, -): Record { - const first = record(results[0]); - return record(first?.data) ?? fallback; -} - -function toRawNode(value: unknown): RawAcquiredNode[] { - const node = record(value); - if (!node || typeof node.index !== 'number') return []; - return [ - { - id: String(node.index), - ...rawNodeFacts(node), - }, - ]; -} - -function rawNodeFacts(node: Record): Partial { - return { - ...optionalParent(node.parentIndex), - ...optionalString(node, 'type'), - ...optionalString(node, 'role'), - ...optionalString(node, 'subrole'), - ...optionalString(node, 'label'), - ...optionalString(node, 'value'), - ...optionalString(node, 'identifier'), - ...optionalRect(node.rect), - ...optionalBoolean(node, 'enabled'), - ...optionalBoolean(node, 'selected'), - ...optionalBoolean(node, 'focused'), - }; -} - -function optionalParent(value: unknown): Partial { - return typeof value === 'number' ? { parentId: String(value) } : {}; -} - -function readGeneration(snapshot: Record): string | null { - const value = snapshot.refsGeneration ?? snapshot.targetGeneration; - return typeof value === 'string' || typeof value === 'number' ? String(value) : null; -} - -function optionalString( - recordValue: Record, - key: 'type' | 'role' | 'subrole' | 'label' | 'value' | 'identifier', -): Partial { - return typeof recordValue[key] === 'string' ? { [key]: recordValue[key] } : {}; -} - -function optionalBoolean( - recordValue: Record, - key: 'enabled' | 'selected' | 'focused', -): Partial { - return typeof recordValue[key] === 'boolean' ? { [key]: recordValue[key] } : {}; -} - -function optionalRect(value: unknown): Partial { - const rect = record(value); - if (!rect || !['x', 'y', 'width', 'height'].every((key) => typeof rect[key] === 'number')) { - return {}; - } - return { - frame: { - x: rect.x as number, - y: rect.y as number, - width: rect.width as number, - height: rect.height as number, - }, - }; -} - -function record(value: unknown): Record | undefined { - return value !== null && typeof value === 'object' && !Array.isArray(value) - ? (value as Record) - : undefined; -} diff --git a/scripts/ios-ax-bridge-spike/config.ts b/scripts/ios-ax-bridge-spike/config.ts index 8e866403a..1c0630612 100644 --- a/scripts/ios-ax-bridge-spike/config.ts +++ b/scripts/ios-ax-bridge-spike/config.ts @@ -1,17 +1,6 @@ -import path from 'node:path'; -import { - parseLocalStates, - parseSampleCount, - parseScreenIds, -} from '../ios-snapshot-benchmark/definitions.ts'; import { resolveRepoRoot } from '../ios-snapshot-benchmark/host.ts'; -import { - assertBenchmarkOwner, - assertOwnedDerivedPath, - createBenchmarkStateRoot, -} from '../ios-snapshot-benchmark/state-ownership.ts'; -import type { CandidateId, ResourceLimits } from './types.ts'; import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import type { ResourceLimits } from './types.ts'; class SpikeConfigurationError extends Error { constructor(message: string) { @@ -23,188 +12,67 @@ class SpikeConfigurationError extends Error { export type SpikeConfig = Readonly<{ repoRoot: string; udid: string; - guestBridge?: string; - stateDir: string; - derivedPath: string; - outputPath: string; - screens: ReturnType; - states: ReturnType; - samples: number; - candidates: CandidateId[]; + guestBridge: string; limits: ResourceLimits; - applyPreferences: boolean; keepDevice: boolean; }>; -const CANDIDATES: readonly CandidateId[] = ['guest-simulator-framework-bridge', 'xctest-control']; -const BOOLEAN_FLAGS = new Set(['--apply-preferences', '--keep-device']); -const VALUE_FLAGS = new Set([ - '--udid', - '--guest-bridge', - '--state-dir', - '--derived-path', - '--out', - '--screen', - '--state', - '--samples', - '--candidate', -]); - export function parseConfig(argv: readonly string[]): SpikeConfig { - const parsed = parseArguments(argv[0] === '--' ? argv.slice(1) : argv); - const states = parseStates(parsed.values.get('--state')); - const screens = parseScreens(parsed.values.get('--screen')); - const candidates = parseCandidates(parsed.values.get('--candidate')); - const samples = parseSamples(parsed.values.get('--samples'), states); - const { stateDir, derivedPath } = resolveOwnedStatePaths(parsed.values); + const args = argv[0] === '--' ? argv.slice(1) : argv; + if (args.some((argument) => argument === '--help' || argument === '-h')) { + printHelp(); + process.exit(0); + } + const parsed = parseArguments(args); return { repoRoot: resolveRepoRoot(), udid: required(parsed.values, '--udid'), - ...optionalPath(parsed.values.get('--guest-bridge'), 'guestBridge'), - stateDir, - derivedPath, - outputPath: resolvePath( - parsed.values.get('--out'), - path.join(stateDir, 'ios-simulator-ax-bridge-spike.v1.json.gz'), - ), - screens, - states, - samples, - candidates, + guestBridge: required(parsed.values, '--guest-bridge'), limits: DEFAULT_SPIKE_LIMITS, - applyPreferences: parsed.booleans.has('--apply-preferences'), - keepDevice: parsed.booleans.has('--keep-device'), + keepDevice: parsed.keepDevice, }; } -function resolveOwnedStatePaths(values: ReadonlyMap): { - stateDir: string; - derivedPath: string; -} { - const stateDir = values.has('--state-dir') - ? resolvePath(values.get('--state-dir'), '') - : createBenchmarkStateRoot(); - const derivedPath = resolvePath( - values.get('--derived-path'), - path.join(stateDir, 'derived-data'), - ); - try { - assertBenchmarkOwner(stateDir); - assertOwnedDerivedPath(derivedPath, stateDir); - } catch (error) { - throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); - } - return { stateDir, derivedPath }; -} - -function parseArguments(argv: readonly string[]): { - values: Map; - booleans: Set; +function parseArguments(args: readonly string[]): { + values: ReadonlyMap; + keepDevice: boolean; } { - exitAfterHelp(argv); const values = new Map(); - const booleans = new Set(); - for (let index = 0; index < argv.length; index += 1) { - const argument = parseArgument(argv, index); - recordArgument(argument, values, booleans); - index = argument.nextIndex; + let keepDevice = false; + for (let index = 0; index < args.length; index += 1) { + const flag = args[index]; + if (flag === '--keep-device') { + keepDevice = true; + continue; + } + assertValueFlag(flag); + values.set(flag, readValue(args[index + 1], flag)); + index += 1; } - return { values, booleans }; + return { values, keepDevice }; } -function exitAfterHelp(argv: readonly string[]): void { - if (!argv.includes('--help') && !argv.includes('-h')) return; - printHelp(); - process.exit(0); -} - -function recordArgument( - argument: { flag: string; value?: string }, - values: Map, - booleans: Set, -): void { - if (argument.value === undefined) booleans.add(argument.flag); - else values.set(argument.flag, argument.value); -} - -function parseArgument( - argv: readonly string[], - index: number, -): { flag: string; value?: string; nextIndex: number } { - const flag = argv[index]; - if (flag === undefined) throw new SpikeConfigurationError('Missing option.'); - if (BOOLEAN_FLAGS.has(flag)) return { flag, nextIndex: index }; - return parseValueArgument(flag, argv[index + 1], index); +function assertValueFlag(flag: string | undefined): asserts flag is '--udid' | '--guest-bridge' { + if (flag !== '--udid' && flag !== '--guest-bridge') { + throw new SpikeConfigurationError(`Unknown option: ${String(flag)}`); + } } -function parseValueArgument( - flag: string, - value: string | undefined, - index: number, -): { flag: string; value: string; nextIndex: number } { - if (!VALUE_FLAGS.has(flag)) throw new SpikeConfigurationError(`Unknown option: ${flag}`); +function readValue(value: string | undefined, flag: string): string { if (!value || value.startsWith('--')) { throw new SpikeConfigurationError(`${flag} requires a value.`); } - return { flag, value, nextIndex: index + 1 }; -} - -function parseStates(value: string | undefined): SpikeConfig['states'] { - try { - return parseLocalStates(value); - } catch (error) { - throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); - } -} - -function parseScreens(value: string | undefined): SpikeConfig['screens'] { - try { - return parseScreenIds(value); - } catch (error) { - throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); - } -} - -function parseSamples(value: string | undefined, states: SpikeConfig['states']): number { - try { - return parseSampleCount(value, states); - } catch (error) { - throw new SpikeConfigurationError(error instanceof Error ? error.message : String(error)); - } -} - -function parseCandidates(value: string | undefined): CandidateId[] { - const candidates = (value ?? CANDIDATES.join(',')) - .split(',') - .map((candidate) => candidate.trim()) - .filter(Boolean); - const unknown = candidates.filter((candidate) => !CANDIDATES.includes(candidate as CandidateId)); - if (unknown.length > 0) - throw new SpikeConfigurationError(`Unknown --candidate value: ${unknown.join(', ')}`); - if (candidates.length === 0) - throw new SpikeConfigurationError('--candidate requires at least one value.'); - return [...new Set(candidates)] as CandidateId[]; + return value; } -function required(values: Map, flag: string): string { +function required(values: ReadonlyMap, flag: string): string { const value = values.get(flag); - if (!value) throw new SpikeConfigurationError(`${flag} is required for a reproducible run.`); + if (!value) throw new SpikeConfigurationError(`${flag} is required.`); return value; } -function optionalPath( - value: string | undefined, - key: 'guestBridge', -): { guestBridge: string } | Record { - return value === undefined ? {} : { [key]: path.resolve(value) }; -} - -function resolvePath(value: string | undefined, fallback: string): string { - return path.resolve(value ?? fallback); -} - function printHelp(): void { process.stdout.write( - `Usage: pnpm bench:ios-ax-bridge -- [options]\n\nRequired:\n --udid \n\nOptions:\n --candidate guest-simulator-framework-bridge, xctest-control\n --state #2189 state names\n --screen #2189 fixture names\n --samples #2189 minimums: cold 10, warm/relaunch 20\n --apply-preferences apply task-owned preboot AX preference experiment\n --guest-bridge official idb 1.5.2 Resources/SimulatorFrameworkBridge guest executable\n --out raw JSON report path\n --keep-device leave the dedicated Simulator shutdown/boot state unchanged\n`, + 'Usage: pnpm bench:ios-ax-bridge:targeted -- --udid --guest-bridge [--keep-device]\n', ); } diff --git a/scripts/ios-ax-bridge-spike/corpus-coverage.ts b/scripts/ios-ax-bridge-spike/corpus-coverage.ts deleted file mode 100644 index 2ed36b748..000000000 --- a/scripts/ios-ax-bridge-spike/corpus-coverage.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { parseLocalStates, parseScreenIds } from '../ios-snapshot-benchmark/definitions.ts'; -import type { LocalState, ScreenId } from '../ios-snapshot-benchmark/types.ts'; -import type { CandidateId, SpikeReport } from './types.ts'; - -const FULL_STATES = parseLocalStates(undefined); -const FULL_SCREENS = parseScreenIds(undefined); - -export function corpusCoverage( - states: readonly LocalState[], - screens: readonly ScreenId[], - cells: SpikeReport['cells'], - candidates: readonly CandidateId[], -): SpikeReport['corpusCoverage'] { - const fullRequested = - FULL_STATES.every((state) => states.includes(state)) && - FULL_SCREENS.every((screen) => screens.includes(screen)); - if (!fullRequested || cells.length === 0) return 'decisive-early-stop'; - const fullProduced = candidates.every((candidate) => - FULL_STATES.every((state) => - FULL_SCREENS.every((screen) => - cells.some( - (cell) => - cell.candidate === candidate && - cell.state === state && - cell.screen === screen && - cell.acquisitionSamples.length >= cell.sampleMinimum, - ), - ), - ), - ); - return fullProduced ? 'full' : 'decisive-early-stop'; -} diff --git a/scripts/ios-ax-bridge-spike/corrected-markdown.ts b/scripts/ios-ax-bridge-spike/corrected-markdown.ts index 46a729edf..5494d85ef 100644 --- a/scripts/ios-ax-bridge-spike/corrected-markdown.ts +++ b/scripts/ios-ax-bridge-spike/corrected-markdown.ts @@ -10,15 +10,10 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { `- Target: ${report.target.name} (${report.target.udid}, ${report.target.runtime})`, `- Generated: ${report.generatedAt}`, `- Immutable broad raw artifact: \`${report.sourceArtifact.path}\` (original ${report.sourceArtifact.originalDecision}; interpretation superseded to stretch-only; host client ${report.sourceArtifact.hostClient})`, - ...(report.supersededTargetedArtifact - ? [ - `- Superseded targeted raw artifact: \`${report.supersededTargetedArtifact.path}\` (${report.supersededTargetedArtifact.hostClient}; its bootstrap and recovery samples raced app readiness and shared one wedged companion, so they measured the prototype packaging, not the mechanism)`, - ] - : []), `- Narrow targeted raw artifact: \`${report.targetedArtifact.path}\` (host client ${report.guestMechanism.client})`, `- Host at generation: load average ${report.host.loadAverage1m} on ${report.host.cpuCores} cores`, '', - 'The broad run is preserved unchanged. Its old NO-GO was caused by readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Warm and relaunch cells come from the broad run, whose host client was the idb companion plus a Python reader; the in-Simulator reader and the read it performs are the same mechanism the Node-direct targeted evidence uses, and the host client only adds latency, so those cells bound the mechanism from above.', + 'The broad raw corpus is preserved unchanged. Its old NO-GO used readiness-inclusive first-look and stretch thresholds; this report evaluates the corrected hard contract. Its slower legacy host client only adds latency around the same in-Simulator reader, so its warm and relaunch cells remain conservative upper bounds for the Node-direct path.', '', '## Evaluated guest mechanism', '', @@ -51,10 +46,11 @@ export function renderCorrectedMarkdown(report: CorrectedReport): string { '## Nonresident bootstrap', '', `- ${report.hardGates.nonresidentBootstrap.evidence}.`, + `- ${report.hardGates.boundedResources.evidence}.`, '- The timed boundary begins with no resident bridge and ends at the first usable guest tree. Before each timer the fixture app was relaunched and a throwaway probe bridge polled until the new generation answered with a tree (readiness), then exited.', '', - '| Sample | Duration ms | Usable tree | Failure | Nodes | Depth | Generation | Readiness ms | Readiness attempts | Host load |', - '|---:|---:|---|---|---:|---:|---|---:|---:|---:|', + '| Sample | Duration ms | CPU ms | RSS MiB | Usable tree | Nodes | Depth | Generation | Readiness ms | Attempts | Host load |', + '|---:|---:|---:|---:|---|---:|---:|---|---:|---:|---:|', ...report.bootstrap.map(bootstrapLine), '', '## Live candidate recovery', @@ -96,7 +92,7 @@ function coldDiagnosticLine(diagnostic: CorrectedReport['coldDiagnostics'][numbe function bootstrapLine(sample: CorrectedReport['bootstrap'][number]): string { const response = sample.response; - return `| ${sample.index} | ${sample.durationMs.toFixed(1)} | ${sample.usableTree} | ${failureText(response.failure)} | ${response.metrics.nodeCount} | ${response.metrics.maxTraversalDepth} | ${response.acquisition?.targetGeneration ?? '–'} | ${sample.readinessMs.toFixed(0)} | ${sample.readinessAttempts} | ${sample.host.loadAverage1m} |`; + return `| ${sample.index} | ${sample.durationMs.toFixed(1)} | ${formatMs(response.metrics.cpuMs)} | ${formatMib(response.metrics.memoryBytes)} | ${sample.usableTree} | ${response.metrics.nodeCount} | ${response.metrics.maxTraversalDepth} | ${response.acquisition?.targetGeneration ?? '–'} | ${sample.readinessMs.toFixed(0)} | ${sample.readinessAttempts} | ${sample.host.loadAverage1m} |`; } function recoveryLine(probe: CorrectedReport['liveRecovery'][number]): string { @@ -114,3 +110,7 @@ function failureText(failure: CorrectedReport['bootstrap'][number]['response'][' function formatMs(value: number | null): string { return value === null ? '–' : value.toFixed(1); } + +function formatMib(value: number | null): string { + return value === null ? '–' : (value / 1024 / 1024).toFixed(1); +} diff --git a/scripts/ios-ax-bridge-spike/corrected-report.test.ts b/scripts/ios-ax-bridge-spike/corrected-report.test.ts index 29b514fd9..080faacc0 100644 --- a/scripts/ios-ax-bridge-spike/corrected-report.test.ts +++ b/scripts/ios-ax-bridge-spike/corrected-report.test.ts @@ -1,33 +1,193 @@ -import path from 'node:path'; import { describe, expect, test } from 'vitest'; -import { buildCorrectedReport, readSpikeReport, readTargetedArtifact } from './corrected-report.ts'; +import { buildCorrectedReport } from './corrected-report.ts'; import { renderCorrectedMarkdown } from './corrected-markdown.ts'; +import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; +import type { TargetedRawArtifact, TargetedRecoveryProbe } from './corrected-types.ts'; +import type { SpikeReport, SpikeResponse } from './types.ts'; -const SOURCE = 'docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz'; -const TARGETED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz'; +const revision = { commit: 'abc123', branch: 'test', dirty: false } as const; +const mechanism = { + implementation: 'idb', + release: 'v1.5.2', + companionArchive: 'idb-companion.macos-arm64.tar.gz', + companionSha256: 'archive', + guestBinary: 'Resources/SimulatorFrameworkBridge', + guestBinarySha256: 'guest', + transport: 'socket', + traversal: 'tree', + client: 'node-direct-socket', +} as const; describe('corrected Simulator AX bridge report', () => { - test('evaluates every hard gate from the checked-in artifacts and renders the decision', () => { + test('counts retained generation evidence honestly and uses targeted readiness and resources', () => { + const source = broadReport(); + const targeted = targetedArtifact(); const report = buildCorrectedReport({ - sourcePath: SOURCE, - source: readSpikeReport(path.resolve(SOURCE)), - targetedPath: TARGETED, - targeted: readTargetedArtifact(path.resolve(TARGETED)), + sourcePath: 'broad.json.gz', + source, + targetedPath: 'targeted.json.gz', + targeted, }); - expect(report.hardGates.warm.status).toBe('PASS'); + expect(report.readiness.every((cell) => cell.readinessObservedSamples === 1)).toBe(true); expect(report.hardGates.relaunch.status).toBe('PASS'); + expect(report.hardGates.boundedResources.status).toBe('PASS'); expect(report.hardGates.liveRecovery.status).toBe('PASS'); expect(report.hardGates.hierarchy.status).toBe('PASS'); - expect(report.hierarchy.interpretation).toBe('nested-tree'); - expect(report.hierarchy.observedTraversalDepth).toBeGreaterThan(10); - expect(report.guestMechanism.client).toBe('node-direct-socket'); - expect(report.bootstrap).toHaveLength(5); - expect(report.bootstrap.every((sample) => sample.readinessAttempts >= 1)).toBe(true); - const failedGates = Object.entries(report.hardGates).filter( - ([, gate]) => gate.status === 'FAIL', - ); - expect(report.decision).toBe(failedGates.length === 0 ? 'GO' : 'NO-GO'); - expect(renderCorrectedMarkdown(report)).toContain(`Decision: **${report.decision}**`); + expect(report.decision).toBe('GO'); + expect(renderCorrectedMarkdown(report)).toContain('Decision: **GO**'); + }); + + test('fails closed when a successful Node-direct read lacks resource metrics', () => { + const targeted = targetedArtifact(); + const first = targeted.bootstrap[0]!; + const report = buildCorrectedReport({ + sourcePath: 'broad.json.gz', + source: broadReport(), + targetedPath: 'targeted.json.gz', + targeted: { + ...targeted, + bootstrap: [ + { + ...first, + response: { + ...first.response, + metrics: { ...first.response.metrics, cpuMs: null, memoryBytes: null }, + }, + }, + ...targeted.bootstrap.slice(1), + ], + }, + }); + + expect(report.hardGates.boundedResources.status).toBe('FAIL'); + expect(report.decision).toBe('NO-GO'); }); }); + +function broadReport(): SpikeReport { + const samples = [ + { ok: true, firstTree: 'readable', wallClockMs: 40, target: 'pid:1' }, + { ok: true, firstTree: 'readable', wallClockMs: 60 }, + ] as const; + return { + revision, + guestMechanism: mechanism, + target: { udid: 'sim', name: 'simulator', runtime: 'iOS' }, + toolchain: { + node: 'node', + pnpm: 'pnpm', + xcode: 'xcode', + simctl: 'simctl', + os: 'macOS', + arch: 'arm64', + }, + cells: (['warm', 'relaunch'] as const).map((state) => ({ + candidate: 'guest-simulator-framework-bridge', + state, + screen: 'list', + acquisitionSamples: samples.map((sample) => ({ + ok: sample.ok, + firstTree: sample.firstTree, + wallClockMs: sample.wallClockMs, + ...(sample.target + ? { acquisition: { ...acquisition(), targetGeneration: sample.target } } + : {}), + })), + })), + decisionReasons: [], + }; +} + +function targetedArtifact(): TargetedRawArtifact { + const bootstrap = Array.from({ length: 5 }, (_, offset) => { + const appPid = 100 + offset; + return { + index: offset + 1, + durationMs: 100, + usableTree: true, + response: successfulResponse(`pid:${appPid}`), + stderr: '', + appPid, + readinessMs: 50, + readinessAttempts: 1, + host: { loadAverage1m: 1, cpuCores: 12 }, + }; + }); + const operations = ['process-crash', 'timeout', 'cancelled', 'stale-generation'] as const; + const recovery: TargetedRecoveryProbe[] = operations.map((operation) => ({ + operation, + request: request(`request-${operation}`), + response: { + ...successfulResponse('pid:100'), + ok: false, + acquisition: undefined, + failure: { kind: operation, code: 'probe' }, + }, + recoveredResponse: successfulResponse('pid:104'), + })); + return { + schemaVersion: 'ios-simulator-ax-bridge-targeted.v2', + generatedAt: '2026-09-03T00:00:00.000Z', + revision, + command: 'targeted', + sourceArtifact: { path: 'broad.json.gz', revision, hostClient: 'legacy' }, + target: { udid: 'sim', name: 'simulator', runtime: 'iOS' }, + toolchain: { + node: 'node', + pnpm: 'pnpm', + xcode: 'xcode', + simctl: 'simctl', + os: 'macOS', + arch: 'arm64', + }, + host: { loadAverage1m: 1, cpuCores: 12 }, + guestMechanism: mechanism, + limits: DEFAULT_SPIKE_LIMITS, + config: { states: ['warm', 'relaunch'], screens: ['list'], samples: 2, bootstrapSamples: 5 }, + bootstrap, + recovery, + }; +} + +function successfulResponse(generation: string): SpikeResponse { + return { + version: 1, + id: 'response', + candidate: 'guest-simulator-framework-bridge', + ok: true, + acquisition: { ...acquisition(), targetGeneration: generation }, + metrics: { + requestBytes: 100, + responseBytes: 1_000, + nodeCount: 2, + maxTraversalDepth: 1, + cpuMs: 20, + memoryBytes: 10_000, + durationMs: 100, + }, + }; +} + +function acquisition() { + return { + targetId: 'simulator:sim', + targetGeneration: 'pid:100', + nodes: [{ id: 'root' }, { id: 'child', parentId: 'root' }], + viewport: { kind: 'reported', rect: { x: 0, y: 0, width: 100, height: 100 } }, + truncated: false, + residue: [], + } as const; +} + +function request(id: string) { + return { + version: 1, + id, + candidate: 'guest-simulator-framework-bridge', + simulatorUdid: 'sim', + state: 'warm', + screen: 'list', + limits: DEFAULT_SPIKE_LIMITS, + } as const; +} diff --git a/scripts/ios-ax-bridge-spike/corrected-report.ts b/scripts/ios-ax-bridge-spike/corrected-report.ts index 6ff416023..fcfd6c696 100644 --- a/scripts/ios-ax-bridge-spike/corrected-report.ts +++ b/scripts/ios-ax-bridge-spike/corrected-report.ts @@ -8,7 +8,6 @@ import type { TargetedRawArtifact, } from './corrected-types.ts'; import { renderCorrectedMarkdown } from './corrected-markdown.ts'; -import { percentile } from './report.ts'; import type { SpikeCell, SpikeReport } from './types.ts'; export function readSpikeReport(filePath: string): SpikeReport { @@ -42,12 +41,9 @@ export function buildCorrectedReport(options: { const hierarchy = hierarchyEvidence(options.targeted); const hardGates = { warm: latencyGate(readiness, 'warm', 'p50 <300 ms and p95 <500 ms per screen'), - relaunch: latencyGate( - readiness, - 'relaunch', - 'p95 <500 ms per screen after observed new-generation app readiness', - ), + relaunch: relaunchGate(readiness, options.targeted), nonresidentBootstrap: bootstrapGate(options.targeted), + boundedResources: resourceGate(options.targeted), liveRecovery: recoveryGate(options.targeted), hierarchy: hierarchy.gate, } as const; @@ -64,11 +60,6 @@ export function buildCorrectedReport(options: { interpretation: 'superseded-stretch-only', hostClient: options.targeted.sourceArtifact.hostClient, }, - ...(options.targeted.supersededTargetedArtifact - ? { - supersededTargetedArtifact: options.targeted.supersededTargetedArtifact, - } - : {}), targetedArtifact: { path: options.targetedPath, revision: options.targeted.revision, @@ -119,7 +110,7 @@ function summarizeLatency(cell: SpikeCell): LatencySummary { screen: cell.screen, samples: samples.length, readableSamples: readable.length, - readinessObservedSamples: observedGenerations.length > 0 ? readable.length : 0, + readinessObservedSamples: observedGenerations.length, generationCount: new Set(observedGenerations).size, candidateP50Ms: optionalPercentile( readable.map((sample) => sample.wallClockMs), @@ -173,6 +164,25 @@ function latencyGate( }; } +function relaunchGate( + readiness: readonly LatencySummary[], + targeted: TargetedRawArtifact, +): GateResult { + const latency = latencyGate(readiness, 'relaunch', 'p95 <500 ms per representative screen'); + const observedReadiness = targeted.bootstrap.filter( + (sample) => + sample.readinessAttempts > 0 && + sample.response.acquisition?.targetGeneration === `pid:${sample.appPid}`, + ); + const readinessPassed = + targeted.bootstrap.length === 5 && observedReadiness.length === targeted.bootstrap.length; + return { + status: latency.status === 'PASS' && readinessPassed ? 'PASS' : 'FAIL', + target: 'p95 <500 ms per screen after independently observed new-generation readiness', + evidence: `${latency.evidence}; targeted readiness observed for ${observedReadiness.length}/${targeted.bootstrap.length} clean relaunch samples`, + }; +} + function bootstrapGate(targeted: TargetedRawArtifact): GateResult { const usable = targeted.bootstrap.filter((sample) => sample.usableTree); const p95 = optionalPercentile( @@ -211,6 +221,28 @@ function recoveryGate(targeted: TargetedRawArtifact): GateResult { }; } +function resourceGate(targeted: TargetedRawArtifact): GateResult { + const responses = [ + ...targeted.bootstrap.map((sample) => sample.response), + ...targeted.recovery.map((probe) => probe.recoveredResponse), + ].filter((response) => response.ok); + const measured = responses.filter( + (response) => response.metrics.cpuMs !== null && response.metrics.memoryBytes !== null, + ); + const withinBounds = measured.filter( + (response) => + response.metrics.cpuMs! <= targeted.limits.maxCpuMs && + response.metrics.memoryBytes! <= targeted.limits.maxMemoryBytes, + ); + const maxCpuMs = Math.max(0, ...measured.map((response) => response.metrics.cpuMs!)); + const maxMemoryBytes = Math.max(0, ...measured.map((response) => response.metrics.memoryBytes!)); + return { + status: responses.length > 0 && withinBounds.length === responses.length ? 'PASS' : 'FAIL', + target: `guest CPU <=${targeted.limits.maxCpuMs} ms and RSS <=${targeted.limits.maxMemoryBytes} bytes per successful read`, + evidence: `${withinBounds.length}/${responses.length} successful reads measured within bounds; max CPU=${maxCpuMs.toFixed(1)} ms; max RSS=${String(maxMemoryBytes)} bytes`, + }; +} + function recoveryOutcomeMatches(probe: TargetedRawArtifact['recovery'][number]): boolean { const failure = probe.response.failure; if (failure) return failure.kind === probe.operation; @@ -309,7 +341,6 @@ function observedGeneration(value: string | null | undefined): readonly string[] function latencyPassed(summary: LatencySummary): boolean { return [ summary.readableSamples === summary.samples, - summary.readinessObservedSamples === summary.samples, summary.candidateP50Ms !== null, summary.candidateP50Ms !== null && summary.candidateP50Ms < 300, summary.candidateP95Ms !== null, @@ -320,3 +351,9 @@ function latencyPassed(summary: LatencySummary): boolean { function formatMs(value: number | null): string { return value === null ? '–' : `${value.toFixed(1)} ms`; } + +function percentile(values: readonly number[], percentage: number): number { + const sorted = [...values].sort((left, right) => left - right); + const index = Math.ceil((percentage / 100) * sorted.length) - 1; + return sorted[Math.max(0, index)]!; +} diff --git a/scripts/ios-ax-bridge-spike/corrected-types.ts b/scripts/ios-ax-bridge-spike/corrected-types.ts index 448e81345..164e4ed8d 100644 --- a/scripts/ios-ax-bridge-spike/corrected-types.ts +++ b/scripts/ios-ax-bridge-spike/corrected-types.ts @@ -1,4 +1,10 @@ -import type { SpikeCell, SpikeReport, SpikeRequest, SpikeResponse } from './types.ts'; +import type { + ResourceLimits, + SpikeCell, + SpikeReport, + SpikeRequest, + SpikeResponse, +} from './types.ts'; const CORRECTED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-corrected.v2' as const; export const TARGETED_SCHEMA_VERSION = 'ios-simulator-ax-bridge-targeted.v2' as const; @@ -38,12 +44,11 @@ export type TargetedRawArtifact = Readonly<{ revision: TargetedRevision; hostClient: string; }>; - supersededTargetedArtifact?: Readonly<{ path: string; hostClient: string }>; target: SpikeReport['target']; toolchain: SpikeReport['toolchain']; host: HostLoad; guestMechanism: SpikeReport['guestMechanism']; - preferenceEvidence: SpikeReport['preferenceEvidence']; + limits: ResourceLimits; config: Readonly<{ states: readonly SpikeCell['state'][]; screens: readonly SpikeCell['screen'][]; @@ -52,12 +57,6 @@ export type TargetedRawArtifact = Readonly<{ }>; bootstrap: readonly TargetedBootstrapSample[]; recovery: readonly TargetedRecoveryProbe[]; - simulator: Readonly<{ - finalState: string; - accessibilityPlistSha256: string | null; - automationEnabledBefore: unknown; - automationEnabledAfter: unknown; - }>; }>; export type LatencySummary = Readonly<{ @@ -91,7 +90,6 @@ export type CorrectedReport = Readonly<{ interpretation: 'superseded-stretch-only'; hostClient: string; }>; - supersededTargetedArtifact?: Readonly<{ path: string; hostClient: string }>; targetedArtifact: Readonly<{ path: string; revision: TargetedRevision }>; target: SpikeReport['target']; toolchain: SpikeReport['toolchain']; @@ -102,6 +100,7 @@ export type CorrectedReport = Readonly<{ warm: GateResult; relaunch: GateResult; nonresidentBootstrap: GateResult; + boundedResources: GateResult; liveRecovery: GateResult; hierarchy: GateResult; }>; diff --git a/scripts/ios-ax-bridge-spike/decision.test.ts b/scripts/ios-ax-bridge-spike/decision.test.ts deleted file mode 100644 index 3f31adc65..000000000 --- a/scripts/ios-ax-bridge-spike/decision.test.ts +++ /dev/null @@ -1,128 +0,0 @@ -import assert from 'node:assert/strict'; -import { test } from 'vitest'; -import { decideSpike } from './decision.ts'; -import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import type { CandidateId, LifecycleEvidence, PreferenceEvidence, SpikeCell } from './types.ts'; -import type { LocalState, ScreenId } from '../ios-snapshot-benchmark/types.ts'; - -const lifecycle: LifecycleEvidence = { - source: 'framed-protocol-fixture', - crash: { failure: 'process-crash', recovered: true }, - timeout: { failure: 'timeout', recovered: true }, - cancellation: { failure: 'cancelled', recovered: true }, - staleGeneration: { failure: 'stale-generation', recovered: true }, -}; - -const preferences: PreferenceEvidence = { - applied: true, - restored: true, - fixtureLaunchCompatible: true, - simulatorStateBefore: 'Shutdown', - diffs: [], -}; - -test('fails closed when a bridge has no readable corpus cells', () => { - const result = decideSpike([], lifecycle, preferences, DEFAULT_SPIKE_LIMITS); - assert.equal(result.decision, 'NO-GO'); - assert.ok(result.reasons.some((reason) => reason.includes('No guest SimulatorFrameworkBridge'))); -}); - -test('does not let failed samples contribute fabricated zero latency', () => { - const cell = readableCell('guest-simulator-framework-bridge', 'warm', 'list'); - const failed = { - ...cell.acquisitionSamples[0]!, - ok: false, - firstTree: 'not-observed' as const, - firstLookMs: 0, - metrics: { ...cell.acquisitionSamples[0]!.metrics!, durationMs: 0 }, - failure: { kind: 'timeout' as const, code: 'batch-duration-limit' }, - }; - const result = decideSpike( - [{ ...cell, acquisitionSamples: [failed, ...cell.acquisitionSamples.slice(1)] }], - lifecycle, - preferences, - DEFAULT_SPIKE_LIMITS, - 'completed', - [{ candidate: 'guest-simulator-framework-bridge' }], - ); - assert.equal(result.decision, 'NO-GO'); - assert.ok(result.reasons.some((reason) => reason.includes('duration bound'))); - assert.ok(result.reasons.some((reason) => reason.includes('not produce 20 readable samples'))); -}); - -test('reports a decisive partial corpus failure instead of replacing it with completeness', () => { - const cell = readableCell('guest-simulator-framework-bridge', 'warm', 'list'); - const slow = { - ...cell, - acquisitionSamples: cell.acquisitionSamples.map((sample) => ({ - ...sample, - wallClockMs: 1_000, - metrics: { ...sample.metrics!, durationMs: 1_000 }, - })), - }; - const result = decideSpike([slow], lifecycle, preferences, DEFAULT_SPIKE_LIMITS, 'completed', [ - { candidate: 'guest-simulator-framework-bridge' }, - ]); - assert.equal(result.decision, 'NO-GO'); - assert.ok(result.reasons.some((reason) => reason.includes('warm/list acquisition'))); - assert.equal( - result.reasons.some((reason) => reason.includes('required corpus')), - false, - ); -}); - -test('selects one complete viable guest bridge without requiring the control to pass', () => { - const states: LocalState[] = ['cold-cold', 'cold', 'warm', 'relaunch']; - const screens: ScreenId[] = [ - 'quiet', - 'list', - 'nested-scroll', - 'alert', - 'system-surface', - 'xctest-stress', - ]; - const cells = states.flatMap((state) => - screens.map((screen) => readableCell('guest-simulator-framework-bridge', state, screen)), - ); - const result = decideSpike(cells, lifecycle, preferences, DEFAULT_SPIKE_LIMITS, 'completed', [ - { candidate: 'guest-simulator-framework-bridge' }, - { - candidate: 'guest-simulator-framework-bridge', - failure: { kind: 'timeout', code: 'batch-duration-limit' }, - }, - ]); - assert.deepEqual(result, { decision: 'GO', reasons: [], stretchFindings: [] }); -}); - -function readableCell(candidate: CandidateId, state: LocalState, screen: ScreenId): SpikeCell { - const sampleMinimum = state === 'cold' || state === 'cold-cold' ? 10 : 20; - return { - candidate, - state, - screen, - sampleMinimum, - acquisitionSamples: Array.from({ length: sampleMinimum }, (_, index) => ({ - index: index + 1, - candidate, - state, - screen, - startedAt: '2026-09-01T00:00:00.000Z', - finishedAt: '2026-09-01T00:00:00.010Z', - operation: 'acquisition' as const, - wallClockMs: 10, - firstLookMs: 100, - firstTree: 'readable' as const, - ok: true, - metrics: { - requestBytes: 1, - responseBytes: 1, - nodeCount: 1, - maxTraversalDepth: 0, - cpuMs: 1, - memoryBytes: 1, - durationMs: 10, - }, - })), - presentationSamples: [], - }; -} diff --git a/scripts/ios-ax-bridge-spike/decision.ts b/scripts/ios-ax-bridge-spike/decision.ts deleted file mode 100644 index 2e1219aac..000000000 --- a/scripts/ios-ax-bridge-spike/decision.ts +++ /dev/null @@ -1,293 +0,0 @@ -import type { - CandidateId, - LifecycleEvidence, - PreferenceEvidence, - ResourceLimits, - SpikeCell, -} from './types.ts'; -import { parseLocalStates, parseScreenIds } from '../ios-snapshot-benchmark/definitions.ts'; - -/** - * Hard viability tiers from the #2192 measurement contract (maintainer-corrected 2026-09-02): warm - * daemon-resident acquisition p50 < 300 ms and p95 < 500 ms per screen, relaunch first usable tree - * p95 < 500 ms after observed app readiness. The former 75/150 ms and 250 ms values are stretch - * optimization targets and are reported separately; they never decide GO/NO-GO. - */ -export const HARD_WARM_P50_MS = 300; -export const HARD_WARM_P95_MS = 500; -export const HARD_RELAUNCH_P95_MS = 500; -export const STRETCH_WARM_P50_MS = 75; -export const STRETCH_WARM_P95_MS = 150; -export const STRETCH_RELAUNCH_MS = 250; - -export function decideSpike( - cells: readonly SpikeCell[], - lifecycle: LifecycleEvidence, - preferences: PreferenceEvidence, - limits: ResourceLimits, - status: 'completed' | 'stopped' = 'completed', - protocolProbes: readonly { - candidate: CandidateId; - failure?: { kind: string; code?: string }; - }[] = [], -): { decision: 'GO' | 'NO-GO'; reasons: string[]; stretchFindings: string[] } { - const reasons = [ - ...statusReasons(status), - ...preferenceReasons(preferences), - ...bridgeRouteReasons(cells, protocolProbes, limits), - ...lifecycleReasons(lifecycle), - ]; - const uniqueReasons = [...new Set(reasons)]; - return { - decision: uniqueReasons.length === 0 ? 'GO' : 'NO-GO', - reasons: uniqueReasons, - stretchFindings: [...new Set(stretchFindings(cells))], - }; -} - -function statusReasons(status: 'completed' | 'stopped'): string[] { - return status === 'stopped' ? ['The live run stopped before the full corpus completed.'] : []; -} - -function preferenceReasons(preferences: PreferenceEvidence): string[] { - if (!preferences.applied) return []; - if (!preferences.restored) - return ['The task-owned Simulator preference experiment was not restored.']; - if (preferences.fixtureLaunchCompatible === false) - return ['The task-owned Simulator preference experiment prevented the fixture from launching.']; - return []; -} - -function bridgeRouteReasons( - cells: readonly SpikeCell[], - probes: readonly { candidate: CandidateId; failure?: { kind: string; code?: string } }[], - limits: ResourceLimits, -): string[] { - const candidate = 'guest-simulator-framework-bridge' as const; - const candidateCells = cells.filter((cell) => cell.candidate === candidate); - const candidateProbes = probes.filter((probe) => probe.candidate === candidate); - if (candidateCells.length === 0 && candidateProbes.length === 0) { - return ['No guest SimulatorFrameworkBridge candidate produced evidence.']; - } - const coreReasons = [ - ...probeReasons(candidateProbes), - ...candidateDecisionReasons(candidateCells, limits), - ]; - return coreReasons.length > 0 - ? coreReasons - : candidateCompletenessReasons(candidate, candidateCells); -} - -function probeReasons( - probes: readonly { candidate: CandidateId; failure?: { kind: string; code?: string } }[], -): string[] { - return probes.flatMap((probe) => - probe.failure && !isReadinessProbeFailure(probe.failure.code) - ? [ - `${probe.candidate} protocol probe returned ${probe.failure.kind}/${probe.failure.code ?? 'no-code'}.`, - ] - : [], - ); -} - -function isReadinessProbeFailure(code: string | undefined): boolean { - return [ - 'target-application-unavailable', - 'target-has-no-accessibility-windows', - 'target-simulator-window-unavailable', - 'target-simulator-content-unavailable', - 'batch-duration-limit', - ].includes(code ?? ''); -} - -const REQUIRED_STATES = parseLocalStates(undefined); -const REQUIRED_SCREENS = parseScreenIds(undefined); - -function candidateCompletenessReasons( - candidate: Exclude, - cells: readonly SpikeCell[], -): string[] { - if (cells.length === 0) return [`${candidate} produced no cells.`]; - const observed = new Set(cells.map((cell) => `${cell.state}/${cell.screen}`)); - const missing = REQUIRED_STATES.flatMap((state) => - REQUIRED_SCREENS.flatMap((screen) => - observed.has(`${state}/${screen}`) ? [] : [`${state}/${screen}`], - ), - ); - if (missing.length === 0) return []; - return [`${candidate} did not complete the required corpus (${missing.length} cells missing).`]; -} - -function lifecycleReasons(lifecycle: LifecycleEvidence): string[] { - const checks = [ - ['process crash', lifecycle.crash, 'process-crash'], - ['timeout', lifecycle.timeout, 'timeout'], - ['cancellation', lifecycle.cancellation, 'cancelled'], - ['stale target-generation', lifecycle.staleGeneration, 'stale-generation'], - ] as const; - const reasons: string[] = []; - for (const [label, result, expected] of checks) { - if (result.failure === expected && result.recovered) continue; - reasons.push( - `Framed ${label} recovery did not produce the required typed result and recovery.`, - ); - } - return reasons; -} - -function candidateDecisionReasons(cells: readonly SpikeCell[], limits: ResourceLimits): string[] { - const reasons: string[] = []; - for (const cell of cells) { - reasons.push(...sampleShapeReasons(cell)); - reasons.push(...resourceReasons(cell, limits)); - reasons.push(...latencyReasons(cell)); - } - return [...new Set(reasons)]; -} - -function sampleShapeReasons(cell: SpikeCell): string[] { - const samples = cell.acquisitionSamples; - const successful = samples.filter((sample) => sample.ok && sample.firstTree === 'readable'); - const reasons: string[] = []; - if (successful.length < cell.sampleMinimum) { - reasons.push( - `${cell.candidate} ${cell.state}/${cell.screen} did not produce ${cell.sampleMinimum} readable samples.`, - ); - } - if ( - samples.some((sample) => ['unreadable', 'empty', 'not-observed'].includes(sample.firstTree)) - ) { - reasons.push( - `${cell.candidate} ${cell.state}/${cell.screen} has unreadable or empty first-tree evidence.`, - ); - } - if (samples.some((sample) => sample.failure?.kind === 'stale-generation')) { - reasons.push( - `${cell.candidate} ${cell.state}/${cell.screen} has stale-generation acquisition evidence.`, - ); - } - if (samples.some((sample) => sample.acquisition?.truncated === true)) { - reasons.push( - `${cell.candidate} ${cell.state}/${cell.screen} published truncated acquisition facts.`, - ); - } - if ( - samples.some( - (sample) => - sample.ok && - sample.acquisition !== undefined && - sample.acquisition.targetGeneration === null, - ) - ) { - reasons.push( - `${cell.candidate} ${cell.state}/${cell.screen} did not report a target generation for a successful acquisition.`, - ); - } - return reasons; -} - -function resourceReasons(cell: SpikeCell, limits: ResourceLimits): string[] { - const checks = [ - [ - 'duration', - limits.maxDurationMs, - (sample: SpikeCell['acquisitionSamples'][number]) => sample.metrics?.durationMs, - ], - [ - 'CPU', - limits.maxCpuMs, - (sample: SpikeCell['acquisitionSamples'][number]) => sample.metrics?.cpuMs, - ], - [ - 'memory', - limits.maxMemoryBytes, - (sample: SpikeCell['acquisitionSamples'][number]) => sample.metrics?.memoryBytes, - ], - ] as const; - const reasons: string[] = []; - if ( - cell.acquisitionSamples.some( - (sample) => - sample.failure?.kind === 'timeout' || sample.failure?.code === 'batch-duration-limit', - ) - ) { - reasons.push(`${cell.candidate} ${cell.state}/${cell.screen} exceeded the duration bound.`); - } - for (const [label, limit, readValue] of checks) { - if (cell.acquisitionSamples.some((sample) => exceedsLimit(readValue(sample), limit))) { - reasons.push(`${cell.candidate} ${cell.state}/${cell.screen} exceeded the ${label} bound.`); - } - } - return reasons; -} - -/** - * Candidate-owned latency only: the wall clock of the acquisition after the fixture admitted the app - * generation as ready. Simulator boot, app launch, daemon, and XCTest runner preparation are recorded - * per sample (`preparationMs`) but never charged to the bridge. - */ -function latencyReasons(cell: SpikeCell): string[] { - if (cell.candidate === 'xctest-control') return []; - const acquisition = finite(readableSamples(cell).map((sample) => sample.wallClockMs)); - const reasons: string[] = []; - if ( - cell.state === 'warm' && - (percentile(acquisition, 50) >= HARD_WARM_P50_MS || - percentile(acquisition, 95) >= HARD_WARM_P95_MS) - ) { - reasons.push( - `${cell.candidate} ${cell.state}/${cell.screen} acquisition missed the hard ${HARD_WARM_P50_MS}/${HARD_WARM_P95_MS} ms target.`, - ); - } - if (cell.state === 'relaunch' && percentile(acquisition, 95) >= HARD_RELAUNCH_P95_MS) { - reasons.push( - `${cell.candidate} relaunch first usable tree missed the hard ${HARD_RELAUNCH_P95_MS} ms target after app readiness.`, - ); - } - return reasons; -} - -function stretchFindings(cells: readonly SpikeCell[]): string[] { - const findings: string[] = []; - for (const cell of cells) { - if (cell.candidate === 'xctest-control') continue; - const acquisition = finite(readableSamples(cell).map((sample) => sample.wallClockMs)); - if (acquisition.length === 0) continue; - if ( - cell.state === 'warm' && - (percentile(acquisition, 50) >= STRETCH_WARM_P50_MS || - percentile(acquisition, 95) >= STRETCH_WARM_P95_MS) - ) { - findings.push( - `${cell.candidate} ${cell.state}/${cell.screen} acquisition missed the stretch ${STRETCH_WARM_P50_MS}/${STRETCH_WARM_P95_MS} ms target.`, - ); - } - if (cell.state === 'relaunch' && percentile(acquisition, 95) >= STRETCH_RELAUNCH_MS) { - findings.push( - `${cell.candidate} relaunch first usable tree missed the stretch ${STRETCH_RELAUNCH_MS} ms target.`, - ); - } - } - return findings; -} - -function readableSamples(cell: SpikeCell): SpikeCell['acquisitionSamples'] { - return cell.acquisitionSamples.filter((sample) => sample.ok && sample.firstTree === 'readable'); -} - -function exceedsLimit(value: number | null | undefined, limit: number): boolean { - return value !== null && value !== undefined && value > limit; -} - -function finite(values: readonly (number | undefined)[]): number[] { - return values.filter( - (value): value is number => typeof value === 'number' && Number.isFinite(value), - ); -} - -function percentile(values: readonly number[], percentage: number): number { - if (values.length === 0) return Number.POSITIVE_INFINITY; - const sorted = [...values].sort((left, right) => left - right); - const rank = Math.ceil((percentage / 100) * sorted.length); - return sorted[Math.min(sorted.length - 1, Math.max(0, rank - 1))]!; -} diff --git a/scripts/ios-ax-bridge-spike/framed-process.test.ts b/scripts/ios-ax-bridge-spike/framed-process.test.ts deleted file mode 100644 index 9eb3fba4f..000000000 --- a/scripts/ios-ax-bridge-spike/framed-process.test.ts +++ /dev/null @@ -1,117 +0,0 @@ -import assert from 'node:assert/strict'; -import { test } from 'vitest'; -import { runFramedBatch } from './framed-process.ts'; -import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import type { SpikeRequest } from './types.ts'; - -function request(id: string): SpikeRequest { - return { - version: 1, - id, - candidate: 'guest-simulator-framework-bridge', - simulatorUdid: '00000000-0000-0000-0000-000000000000', - state: 'warm', - screen: 'quiet', - limits: DEFAULT_SPIKE_LIMITS, - }; -} - -function childScript(mode: 'healthy' | 'delayed' | 'malformed' | 'crash' | 'hang'): { - file: string; - args: string[]; -} { - const payload = JSON.stringify({ - version: 1, - ok: true, - acquisition: { - targetId: 'simulator:test', - targetGeneration: 'generation-1', - nodes: [{ id: 'n0', role: 'AXApplication' }], - viewport: { kind: 'missing', reason: 'not-provided' }, - truncated: false, - residue: [], - }, - metrics: { - requestBytes: 10, - responseBytes: 10, - nodeCount: 1, - maxTraversalDepth: 0, - cpuMs: 1, - memoryBytes: 1, - durationMs: 1, - }, - }); - const malformed = payload.replace('"id":"n0"', '"id":"n0","hittable":true'); - const response = mode === 'malformed' ? malformed : payload; - const script = ` - import process from 'node:process'; - if (${JSON.stringify(mode)} === 'crash') process.exit(17); - if (${JSON.stringify(mode)} === 'hang') { - setInterval(() => {}, 1000); - } else { - let input = ''; - process.stdin.setEncoding('utf8'); - process.stdin.on('data', (chunk) => { input += chunk; }); - process.stdin.on('end', async () => { - for (const line of input.split('\\n').filter(Boolean)) { - const request = JSON.parse(line); - if (${JSON.stringify(mode)} === 'delayed') await new Promise((resolve) => setTimeout(resolve, 100)); - process.stdout.write(JSON.stringify({ ...${response}, id: request.id, candidate: request.candidate }) + '\\n'); - } - }); - } - `; - return { file: process.execPath, args: ['--input-type=module', '-e', script] }; -} - -test('uses one framed response per request and keeps diagnostics on stderr', async () => { - const result = await runFramedBatch(childScript('healthy'), [request('one'), request('two')]); - assert.deepEqual( - result.responses.map((response) => response.id), - ['one', 'two'], - ); - assert.equal( - result.responses.every((response) => response.ok), - true, - ); -}); - -test('budgets a framed batch per request rather than timing the whole batch as one request', async () => { - const result = await runFramedBatch( - childScript('delayed'), - [request('one'), request('two'), request('three')], - { limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 200 } }, - ); - assert.equal( - result.responses.every((response) => response.ok), - true, - ); -}); - -test('classifies malformed trees, crashes, timeouts, and cancellation', async () => { - const malformed = await runFramedBatch(childScript('malformed'), [request('malformed')]); - assert.equal(malformed.responses[0]?.failure?.kind, 'malformed-tree'); - - const crashed = await runFramedBatch(childScript('crash'), [request('crash')]); - assert.equal(crashed.responses[0]?.failure?.kind, 'process-crash'); - - const timeout = await runFramedBatch(childScript('hang'), [request('timeout')], { - limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 40 }, - }); - assert.equal(timeout.responses[0]?.failure?.kind, 'timeout'); - - const controller = new AbortController(); - const cancellation = runFramedBatch(childScript('hang'), [request('cancel')], { - signal: controller.signal, - limits: { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 200 }, - }); - setTimeout(() => controller.abort(), 10); - const cancelled = await cancellation; - assert.equal(cancelled.responses[0]?.failure?.kind, 'cancelled'); - - const transport = await runFramedBatch( - { file: '/private/tmp/agent-device-ios-ax-spike-missing-helper' }, - [request('transport')], - ); - assert.equal(transport.responses[0]?.failure?.kind, 'transport-failure'); -}); diff --git a/scripts/ios-ax-bridge-spike/framed-process.ts b/scripts/ios-ax-bridge-spike/framed-process.ts deleted file mode 100644 index 935dadf02..000000000 --- a/scripts/ios-ax-bridge-spike/framed-process.ts +++ /dev/null @@ -1,214 +0,0 @@ -import { spawn } from 'node:child_process'; -import type { ChildProcess } from 'node:child_process'; -import { encodeFrame, DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import { failureResponse, parseSpikeResponse } from './protocol.ts'; -import type { ResourceLimits, SpikeFailureKind, SpikeRequest, SpikeResponse } from './types.ts'; - -export type FramedProcessSpec = Readonly<{ - file: string; - args?: readonly string[]; - cwd?: string; - env?: NodeJS.ProcessEnv; -}>; - -export type FramedBatchResult = Readonly<{ - responses: readonly SpikeResponse[]; - stderr: string; -}>; - -export async function runFramedBatch( - spec: FramedProcessSpec, - requests: readonly SpikeRequest[], - options: Readonly<{ signal?: AbortSignal; limits?: ResourceLimits }> = {}, -): Promise { - const limits = options.limits ?? DEFAULT_SPIKE_LIMITS; - const encodedRequests = requests.map((request) => ({ - request, - ...encodeFrame(request), - })); - const oversized = encodedRequests.find(({ bytes }) => bytes > limits.maxRequestBytes); - if (oversized) { - return { - responses: requests.map((request) => - failureResponse( - request, - { kind: 'transport-failure', code: 'request-limit-exceeded' }, - { - requestBytes: - encodedRequests.find((item) => item.request.id === request.id)?.bytes ?? 0, - }, - ), - ), - stderr: '', - }; - } - if (requests.length === 0) return { responses: [], stderr: '' }; - if (options.signal?.aborted) return cancelledBatch(requests, encodedRequests); - - return new Promise((resolve) => { - const child = spawn(spec.file, [...(spec.args ?? [])], { - cwd: spec.cwd, - env: { ...process.env, ...spec.env }, - stdio: ['pipe', 'pipe', 'pipe'], - }); - const responses = new Map(); - const requestById = new Map(requests.map((request) => [request.id, request])); - let stdoutBuffer = Buffer.alloc(0); - let stdoutBytes = 0; - let stderr = ''; - let settled = false; - const batchDurationMs = limits.maxDurationMs * requests.length; - const timer = setTimeout(() => finish('timeout', 'batch-duration-limit'), batchDurationMs); - - const finish = (kind?: SpikeFailureKind, code?: string): void => { - if (settled) return; - settled = true; - if (timer) clearTimeout(timer); - options.signal?.removeEventListener('abort', onAbort); - if (kind) { - for (const request of requests) { - if (!responses.has(request.id)) { - responses.set( - request.id, - failureResponse( - request, - { kind, ...(code ? { code } : {}) }, - { - requestBytes: requestBytesFor(request, encodedRequests), - responseBytes: stdoutBytes, - }, - ), - ); - } - } - } - if (kind === 'timeout' || kind === 'cancelled') terminate(child); - resolve({ - responses: requests.map( - (request) => - responses.get(request.id) ?? - failureResponse( - request, - { kind: 'transport-failure', code: 'missing-response' }, - { - requestBytes: requestBytesFor(request, encodedRequests), - responseBytes: stdoutBytes, - }, - ), - ), - stderr, - }); - }; - const onAbort = (): void => finish('cancelled', 'abort-signal'); - options.signal?.addEventListener('abort', onAbort, { once: true }); - child.stdout.on('data', (chunk: Buffer | string) => { - if (settled) return; - const data = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk); - stdoutBytes += data.length; - if (stdoutBytes > limits.maxResponseBytes) { - finish('malformed-tree', 'response-limit-exceeded'); - return; - } - stdoutBuffer = Buffer.concat([stdoutBuffer, data]); - consumeLines(); - }); - child.stderr.on('data', (chunk: Buffer | string) => { - if (stderr.length >= 64 * 1024) return; - stderr += (Buffer.isBuffer(chunk) ? chunk.toString('utf8') : chunk).slice( - 0, - 64 * 1024 - stderr.length, - ); - }); - child.on('error', (error: NodeJS.ErrnoException) => { - finish('transport-failure', error.code ?? 'spawn-error'); - }); - child.on('close', (code) => { - if (settled) return; - consumeLines(true); - if (settled) return; - if (code !== 0) { - finish('process-crash', `exit-${code ?? 'unknown'}`); - return; - } - if (responses.size !== requests.length) { - finish('transport-failure', 'missing-response'); - return; - } - finish(); - }); - child.stdin.on('error', () => finish('transport-failure', 'stdin-error')); - child.stdin.end(encodedRequests.map(({ line }) => line).join('')); - - function consumeLines(final = false): void { - let newline = stdoutBuffer.indexOf(0x0a); - while (newline >= 0) { - const line = stdoutBuffer.subarray(0, newline); - stdoutBuffer = stdoutBuffer.subarray(newline + 1); - consumeLine(line); - if (settled) return; - newline = stdoutBuffer.indexOf(0x0a); - } - if (final && stdoutBuffer.length > 0) consumeLine(stdoutBuffer); - } - - function consumeLine(line: Buffer): void { - const text = line.toString('utf8').trim(); - if (text.length === 0) return; - if (line.length > limits.maxResponseBytes) { - finish('malformed-tree', 'frame-limit-exceeded'); - return; - } - let value: unknown; - try { - value = JSON.parse(text); - } catch { - finish('malformed-tree', 'invalid-json'); - return; - } - const id = readId(value); - const request = id ? requestById.get(id) : undefined; - if (!request || responses.has(request.id)) { - finish('malformed-tree', 'response-id-invalid'); - return; - } - responses.set(request.id, parseSpikeResponse(value, request, line.length + 1)); - } - }); -} - -function cancelledBatch( - requests: readonly SpikeRequest[], - encodedRequests: readonly Readonly<{ request: SpikeRequest; bytes: number; line: string }>[], -): FramedBatchResult { - return { - responses: requests.map((request) => - failureResponse( - request, - { kind: 'cancelled', code: 'abort-signal' }, - { - requestBytes: requestBytesFor(request, encodedRequests), - }, - ), - ), - stderr: '', - }; -} - -function requestBytesFor( - request: SpikeRequest, - encodedRequests: readonly Readonly<{ request: SpikeRequest; bytes: number; line: string }>[], -): number { - return encodedRequests.find((item) => item.request.id === request.id)?.bytes ?? 0; -} - -function readId(value: unknown): string | undefined { - if (value && typeof value === 'object' && !Array.isArray(value)) { - const id = (value as Record).id; - return typeof id === 'string' ? id : undefined; - } - return undefined; -} - -function terminate(child: ChildProcess): void { - if (!child.killed) child.kill('SIGTERM'); -} diff --git a/scripts/ios-ax-bridge-spike/guest-adapter.ts b/scripts/ios-ax-bridge-spike/guest-adapter.ts index da3f5be7a..f55bb575c 100644 --- a/scripts/ios-ax-bridge-spike/guest-adapter.ts +++ b/scripts/ios-ax-bridge-spike/guest-adapter.ts @@ -6,6 +6,7 @@ import { spawn, spawnSync, type ChildProcess } from 'node:child_process'; import { performance } from 'node:perf_hooks'; import { DEFAULT_SPIKE_LIMITS, validateRawAcquisition } from './limits.ts'; import { failureResponse } from './protocol.ts'; +import { processUsageDelta, readGuestProcessSample } from './guest-process-metrics.ts'; import { acquisitionFromEnvelope, encodeGuestFrame, @@ -173,29 +174,34 @@ class GuestSession { }); } try { - if (signal?.aborted) throw new GuestError('cancelled', 'abort-signal'); - if (this.closed) throw new GuestError('transport-failure', 'guest-adapter-closed'); - await this.ensureConnected(request.simulatorUdid, deadline, signal); - const { envelope, responseBytes } = await this.readWithReadinessRetry( - frame, - deadline, - signal, - ); - return this.responseFor(request, envelope, { - requestBytes: frame.length, - responseBytes, - durationMs: performance.now() - started, - }); + return await this.acquireConnected(request, frame, deadline, started, signal); } catch (error) { - const guestError = asGuestError(error); - return failureResponse( - request, - { kind: guestError.kind, code: guestError.code }, - { requestBytes: frame.length, durationMs: performance.now() - started }, - ); + return failedGuestRequest(request, frame.length, started, error); } } + private async acquireConnected( + request: SpikeRequest, + frame: Buffer, + deadline: number, + started: number, + signal: AbortSignal | undefined, + ): Promise { + assertRequestActive(signal, this.closed); + const wasConnected = this.socket !== undefined && !this.socket.destroyed; + await this.ensureConnected(request.simulatorUdid, deadline, signal); + const before = wasConnected ? readGuestProcessSample(this.socketPath) : undefined; + const { envelope, responseBytes } = await this.readWithReadinessRetry(frame, deadline, signal); + const resources = processUsageDelta(before, readGuestProcessSample(this.socketPath)); + return this.responseFor(request, envelope, { + requestBytes: frame.length, + responseBytes, + durationMs: performance.now() - started, + cpuMs: resources?.cpuMs ?? null, + memoryBytes: resources?.memoryBytes ?? null, + }); + } + private async readWithReadinessRetry( frame: Buffer, deadline: number, @@ -218,6 +224,8 @@ class GuestSession { requestBytes: number; responseBytes: number; durationMs: number; + cpuMs: number | null; + memoryBytes: number | null; }, ): SpikeResponse { if (envelope.ok !== true) { @@ -233,6 +241,8 @@ class GuestSession { if (!validated.ok) { return failureResponse(request, { kind: 'malformed-tree', code: validated.code }, metrics); } + const resourceFailure = resourceLimitFailure(metrics, request.limits); + if (resourceFailure) return failureResponse(request, resourceFailure, metrics); return { version: 1, id: request.id, @@ -243,8 +253,6 @@ class GuestSession { ...metrics, nodeCount: parsed.acquisition.nodes.length, maxTraversalDepth: validated.maxTraversalDepth, - cpuMs: null, - memoryBytes: null, }, }; } @@ -474,6 +482,38 @@ function asGuestError(error: unknown): GuestError { return new GuestError('transport-failure', 'guest-unexpected-error'); } +function assertRequestActive(signal: AbortSignal | undefined, closed: boolean): void { + if (signal?.aborted) throw new GuestError('cancelled', 'abort-signal'); + if (closed) throw new GuestError('transport-failure', 'guest-adapter-closed'); +} + +function failedGuestRequest( + request: SpikeRequest, + requestBytes: number, + started: number, + error: unknown, +): SpikeResponse { + const guestError = asGuestError(error); + return failureResponse( + request, + { kind: guestError.kind, code: guestError.code }, + { requestBytes, durationMs: performance.now() - started }, + ); +} + +function resourceLimitFailure( + metrics: { cpuMs: number | null; memoryBytes: number | null }, + limits: ResourceLimits, +): SpikeFailure | undefined { + if (metrics.cpuMs !== null && metrics.cpuMs > limits.maxCpuMs) { + return { kind: 'transport-failure', code: 'cpu-limit-exceeded' }; + } + if (metrics.memoryBytes !== null && metrics.memoryBytes > limits.maxMemoryBytes) { + return { kind: 'transport-failure', code: 'memory-limit-exceeded' }; + } + return undefined; +} + function sleep(ms: number): Promise { return new Promise((resolve) => setTimeout(resolve, ms)); } diff --git a/scripts/ios-ax-bridge-spike/guest-process-metrics.test.ts b/scripts/ios-ax-bridge-spike/guest-process-metrics.test.ts new file mode 100644 index 000000000..85ad5946a --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-process-metrics.test.ts @@ -0,0 +1,17 @@ +import assert from 'node:assert/strict'; +import { test } from 'vitest'; +import { parseProcessTime, processUsageDelta } from './guest-process-metrics.ts'; + +test('parses macOS process CPU time and derives one request resource sample', () => { + assert.equal(parseProcessTime('0:00.37'), 370); + assert.equal(parseProcessTime('1:02:03.50'), 3_723_500); + assert.equal(parseProcessTime('2-01:02:03.50'), 176_523_500); + assert.deepEqual( + processUsageDelta({ cpuMs: 120, memoryBytes: 10 }, { cpuMs: 350, memoryBytes: 42 }), + { cpuMs: 230, memoryBytes: 42 }, + ); + assert.deepEqual(processUsageDelta(undefined, { cpuMs: 350, memoryBytes: 42 }), { + cpuMs: 350, + memoryBytes: 42, + }); +}); diff --git a/scripts/ios-ax-bridge-spike/guest-process-metrics.ts b/scripts/ios-ax-bridge-spike/guest-process-metrics.ts new file mode 100644 index 000000000..fa5219bc7 --- /dev/null +++ b/scripts/ios-ax-bridge-spike/guest-process-metrics.ts @@ -0,0 +1,55 @@ +import { spawnSync } from 'node:child_process'; + +export type GuestProcessSample = Readonly<{ cpuMs: number; memoryBytes: number }>; + +export function readGuestProcessSample(socketPath: string): GuestProcessSample | undefined { + const found = spawnSync( + 'pgrep', + ['-f', `SimulatorFrameworkBridge accessibility serve ${socketPath}`], + { encoding: 'utf8' }, + ); + const samples = (found.stdout ?? '') + .split('\n') + .map((value) => Number(value.trim())) + .filter((pid) => Number.isSafeInteger(pid) && pid > 0) + .flatMap(readProcessSample); + if (samples.length === 0) return undefined; + return { + cpuMs: samples.reduce((total, sample) => total + sample.cpuMs, 0), + memoryBytes: samples.reduce((maximum, sample) => Math.max(maximum, sample.memoryBytes), 0), + }; +} + +export function processUsageDelta( + before: GuestProcessSample | undefined, + after: GuestProcessSample | undefined, +): GuestProcessSample | undefined { + if (!after) return undefined; + return { + cpuMs: Math.max(0, after.cpuMs - (before?.cpuMs ?? 0)), + memoryBytes: after.memoryBytes, + }; +} + +export function parseProcessTime(value: string): number | undefined { + const match = /^(?:(\d+)-)?(?:(\d+):)?(\d+):(\d+(?:\.\d+)?)$/u.exec(value.trim()); + if (!match) return undefined; + const days = Number(match[1] ?? 0); + const hours = Number(match[2] ?? 0); + const minutes = Number(match[3]); + const seconds = Number(match[4]); + return (((days * 24 + hours) * 60 + minutes) * 60 + seconds) * 1_000; +} + +function readProcessSample(pid: number): GuestProcessSample[] { + const result = spawnSync('ps', ['-o', 'time=', '-o', 'rss=', '-o', 'args=', '-p', String(pid)], { + encoding: 'utf8', + }); + const fields = (result.stdout ?? '').trim().split(/\s+/u); + if (!fields[2]?.endsWith('SimulatorFrameworkBridge')) return []; + const cpuMs = parseProcessTime(fields[0] ?? ''); + const memoryKb = Number(fields[1]); + return cpuMs === undefined || !Number.isFinite(memoryKb) || memoryKb < 0 + ? [] + : [{ cpuMs, memoryBytes: memoryKb * 1_024 }]; +} diff --git a/scripts/ios-ax-bridge-spike/guest-wire.ts b/scripts/ios-ax-bridge-spike/guest-wire.ts index c1f116635..a3e467b5a 100644 --- a/scripts/ios-ax-bridge-spike/guest-wire.ts +++ b/scripts/ios-ax-bridge-spike/guest-wire.ts @@ -12,8 +12,8 @@ import type { * length prefix followed by one JSON object; the guest answers `{ ok, tree | error, error_kind, pid, * truncated, phases, automation }`. */ -export const GUEST_FRAME_HEADER_BYTES = 4; -export const GUEST_MAX_FRAME_BYTES = 16 * 1024 * 1024; +const GUEST_FRAME_HEADER_BYTES = 4; +const GUEST_MAX_FRAME_BYTES = 16 * 1024 * 1024; const ATTRIBUTE = { elementType: 'XC_kAXXCAttributeElementType', @@ -207,12 +207,12 @@ export function guestDescribeRequest( }; } -export function guestErrorKind(envelope: GuestEnvelope): GuestErrorKind | undefined { +function guestErrorKind(envelope: GuestEnvelope): GuestErrorKind | undefined { const kind = envelope.error_kind; return typeof kind === 'string' ? (kind as GuestErrorKind) : undefined; } -export function guestErrorText(envelope: GuestEnvelope): string { +function guestErrorText(envelope: GuestEnvelope): string { return typeof envelope.error === 'string' ? envelope.error : ''; } diff --git a/scripts/ios-ax-bridge-spike/lifecycle.test.ts b/scripts/ios-ax-bridge-spike/lifecycle.test.ts deleted file mode 100644 index 9254bd99a..000000000 --- a/scripts/ios-ax-bridge-spike/lifecycle.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import assert from 'node:assert/strict'; -import { test } from 'vitest'; -import { runLifecycleProbes } from './lifecycle.ts'; - -test('records typed lifecycle failures and recovery probes', async () => { - const evidence = await runLifecycleProbes(); - assert.deepEqual( - { - crash: evidence.crash, - timeout: evidence.timeout, - cancellation: evidence.cancellation, - staleGeneration: evidence.staleGeneration, - }, - { - crash: { failure: 'process-crash', recovered: true }, - timeout: { failure: 'timeout', recovered: true }, - cancellation: { failure: 'cancelled', recovered: true }, - staleGeneration: { failure: 'stale-generation', recovered: true }, - }, - ); -}); diff --git a/scripts/ios-ax-bridge-spike/lifecycle.ts b/scripts/ios-ax-bridge-spike/lifecycle.ts deleted file mode 100644 index dbcd90bee..000000000 --- a/scripts/ios-ax-bridge-spike/lifecycle.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { runFramedBatch } from './framed-process.ts'; -import { DEFAULT_SPIKE_LIMITS } from './limits.ts'; -import { failureResponse } from './protocol.ts'; -import type { LifecycleEvidence, SpikeRequest, SpikeResponse } from './types.ts'; - -export async function runLifecycleProbes(): Promise { - const request = probeRequest('lifecycle'); - const limits = { ...DEFAULT_SPIKE_LIMITS, maxDurationMs: 1_000 }; - const crash = await runFailureProbe('crash', request, limits); - const timeout = await runFailureProbe('hang', request, limits); - const cancellation = await runCancellationProbe(request, limits); - const staleResponse = failureResponse(request, { - kind: 'stale-generation', - code: 'target-generation-mismatch', - expectedTargetGeneration: 'expected', - observedTargetGeneration: 'observed', - }); - const stale = await runFramedBatch(nodeScript('stale-generation', staleResponse), [request], { - limits, - }); - return { - source: 'framed-protocol-fixture', - crash: { failure: crash.failure, recovered: crash.recovered }, - timeout: { failure: timeout.failure, recovered: timeout.recovered }, - cancellation: { failure: cancellation.failure, recovered: cancellation.recovered }, - staleGeneration: { - failure: stale.responses[0]?.failure?.kind ?? 'transport-failure', - recovered: await runHealthyProbe(request, limits), - }, - }; -} - -function probeRequest(id: string): SpikeRequest { - return { - version: 1, - id, - candidate: 'guest-simulator-framework-bridge', - simulatorUdid: '00000000-0000-0000-0000-000000000000', - state: 'warm', - screen: 'quiet', - limits: DEFAULT_SPIKE_LIMITS, - }; -} - -async function runFailureProbe( - script: string, - request: SpikeRequest, - limits: typeof DEFAULT_SPIKE_LIMITS, -): Promise<{ failure: NonNullable['kind']; recovered: boolean }> { - const failed = await runFramedBatch(nodeScript(script), [request], { limits }); - const failure = failed.responses[0]?.failure?.kind ?? 'transport-failure'; - const recovered = await runHealthyProbe(request, limits); - return { failure, recovered }; -} - -async function runCancellationProbe( - request: SpikeRequest, - limits: typeof DEFAULT_SPIKE_LIMITS, -): Promise<{ failure: NonNullable['kind']; recovered: boolean }> { - const controller = new AbortController(); - const timer = setTimeout(() => controller.abort(), 15); - const result = await runFramedBatch(nodeScript('hang'), [request], { - signal: controller.signal, - limits, - }); - clearTimeout(timer); - return { - failure: result.responses[0]?.failure?.kind ?? 'transport-failure', - recovered: (await runHealthyProbe(request, limits)) === true, - }; -} - -async function runHealthyProbe( - request: SpikeRequest, - limits: typeof DEFAULT_SPIKE_LIMITS, -): Promise { - const result = await runFramedBatch(nodeScript('healthy'), [request], { limits }); - return result.responses[0]?.ok === true; -} - -function nodeScript( - mode: string, - overrideResponse?: SpikeResponse, -): { file: string; args: string[] } { - const response = JSON.stringify( - overrideResponse ?? { - version: 1, - ok: true, - acquisition: { - targetId: 'simulator:probe', - targetGeneration: 'generation', - nodes: [{ id: 'n0', role: 'AXApplication' }], - viewport: { kind: 'missing', reason: 'not-provided' }, - truncated: false, - residue: [], - }, - metrics: { - requestBytes: 1, - responseBytes: 1, - nodeCount: 1, - maxTraversalDepth: 0, - cpuMs: 0, - memoryBytes: 1, - durationMs: 1, - }, - }, - ); - const modeStatement = - mode === 'crash' ? 'process.exit(17);' : mode === 'hang' ? 'setInterval(() => {}, 1000);' : ''; - const script = ` - import process from 'node:process'; - ${modeStatement} - if (${JSON.stringify(mode)} !== 'crash' && ${JSON.stringify(mode)} !== 'hang') { - let input = ''; - process.stdin.setEncoding('utf8'); - process.stdin.on('data', (chunk) => { input += chunk; }); - process.stdin.on('end', () => { - for (const line of input.split('\\n').filter(Boolean)) { - const request = JSON.parse(line); - process.stdout.write(JSON.stringify({ ...${response}, id: request.id, candidate: request.candidate }) + '\\n'); - } - }); - } - `; - return { file: process.execPath, args: ['--input-type=module', '-e', script] }; -} diff --git a/scripts/ios-ax-bridge-spike/preference-experiment.ts b/scripts/ios-ax-bridge-spike/preference-experiment.ts deleted file mode 100644 index 6a43ee01c..000000000 --- a/scripts/ios-ax-bridge-spike/preference-experiment.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { execFileSync } from 'node:child_process'; -import { screenFixture } from '../ios-snapshot-benchmark/definitions.ts'; -import { bootSimulator, shutdownSimulator } from '../ios-snapshot-benchmark/lifecycle.ts'; -import type { SpikeConfig } from './config.ts'; -import { - applyPrebootPreferences, - type PlistSnapshot, - readSimulatorState, - restorePrebootPreferences, -} from './preferences.ts'; -import type { PreferenceEvidence } from './types.ts'; - -export function runPreferenceExperiment(config: SpikeConfig): PreferenceEvidence { - if (!config.applyPreferences) return initialPreferenceEvidence(config.udid); - shutdownSimulator(config.udid); - const applied = applyPrebootPreferences(config.udid); - return exerciseAppliedPreferences(config, applied.evidence, applied.snapshots); -} - -function exerciseAppliedPreferences( - config: SpikeConfig, - evidence: PreferenceEvidence, - snapshots: readonly PlistSnapshot[], -): PreferenceEvidence { - let fixtureLaunchCompatible: boolean; - try { - bootSimulator(config.udid); - fixtureLaunchCompatible = tryPrimeFixtureApp( - config.udid, - screenFixture(config.screens[0]!).app, - ); - } catch { - fixtureLaunchCompatible = false; - } - return { - ...evidence, - fixtureLaunchCompatible, - restored: restorePreferences(config.udid, snapshots), - }; -} - -function restorePreferences(udid: string, snapshots: readonly PlistSnapshot[]): boolean { - try { - if (readSimulatorState(udid) !== 'Shutdown') shutdownSimulator(udid); - return restorePrebootPreferences(udid, snapshots); - } catch { - return false; - } -} - -export function primeFixtureApps(config: SpikeConfig): void { - const apps = new Set(config.screens.map((screen) => screenFixture(screen).app)); - for (const app of apps) { - if (!tryPrimeFixtureApp(config.udid, app)) - throw new Error(`Failed to prime ${app} after booting the restored disposable Simulator.`); - } -} - -function tryPrimeFixtureApp(udid: string, app: string): boolean { - try { - execFileSync('xcrun', ['simctl', 'launch', udid, app], { - encoding: 'utf8', - timeout: 60_000, - stdio: ['ignore', 'pipe', 'pipe'], - }); - return true; - } catch { - return false; - } -} - -export function initialPreferenceEvidence(udid: string): PreferenceEvidence { - let simulatorStateBefore = 'unknown'; - try { - simulatorStateBefore = readSimulatorState(udid); - } catch { - simulatorStateBefore = 'unavailable'; - } - return { - applied: false, - restored: false, - fixtureLaunchCompatible: null, - simulatorStateBefore, - diffs: [], - }; -} diff --git a/scripts/ios-ax-bridge-spike/preferences.test.ts b/scripts/ios-ax-bridge-spike/preferences.test.ts deleted file mode 100644 index 65091dcc3..000000000 --- a/scripts/ios-ax-bridge-spike/preferences.test.ts +++ /dev/null @@ -1,22 +0,0 @@ -import assert from 'node:assert/strict'; -import { test } from 'vitest'; -import { diffPlistValues, simulatorPreferencePaths } from './preferences.ts'; - -test('records exact targeted preference changes and ignores unrelated keys', () => { - assert.deepEqual( - diffPlistValues( - { AutomationEnabled: false, Unrelated: 'preserve' }, - { AutomationEnabled: true, Unrelated: 'preserve' }, - ['AutomationEnabled', 'IgnoreAXServerEntitlements'], - ), - [ - { key: 'AutomationEnabled', before: false, after: true }, - { key: 'IgnoreAXServerEntitlements' }, - ], - ); -}); - -test('builds preference paths only from a validated Simulator UDID', () => { - assert.equal(simulatorPreferencePaths('793B72F6-02C9-4BCD-BEC9-1B3EB42A7ED4').length, 2); - assert.throws(() => simulatorPreferencePaths('../other-device'), /Invalid Simulator UDID/); -}); diff --git a/scripts/ios-ax-bridge-spike/preferences.ts b/scripts/ios-ax-bridge-spike/preferences.ts deleted file mode 100644 index ab241ed22..000000000 --- a/scripts/ios-ax-bridge-spike/preferences.ts +++ /dev/null @@ -1,254 +0,0 @@ -import crypto from 'node:crypto'; -import fs from 'node:fs'; -import os from 'node:os'; -import path from 'node:path'; -import { spawnSync } from 'node:child_process'; -import type { PlistDiff, PlistKeyChange, PreferenceEvidence } from './types.ts'; - -const PREFERENCE_VALUES = { - 'com.apple.Accessibility.plist': { - AccessibilityEnabled: true, - ApplicationAccessibilityEnabled: true, - AutomationEnabled: true, - IgnoreAXServerEntitlements: true, - }, - 'com.apple.UIAutomation.plist': { - UIAutomationEnabled: true, - }, -} as const; - -const UUID_PATTERN = /^[0-9A-Fa-f-]{36}$/u; -const EMPTY_PLIST = `\n\n\n`; - -class PreferenceSafetyError extends Error { - readonly code: 'invalid-udid' | 'simulator-not-shutdown' | 'simulator-state-unknown'; - - constructor(code: PreferenceSafetyError['code'], message: string) { - super(message); - this.name = 'PreferenceSafetyError'; - this.code = code; - } -} - -export type PlistSnapshot = Readonly<{ - path: string; - existedBefore: boolean; - beforeBytes: Buffer | null; - beforeValues: Record; -}>; - -export function simulatorPreferencePaths(udid: string): string[] { - validateUdid(udid); - const directory = path.join( - os.homedir(), - 'Library', - 'Developer', - 'CoreSimulator', - 'Devices', - udid, - 'data', - 'Library', - 'Preferences', - ); - return Object.keys(PREFERENCE_VALUES).map((name) => path.join(directory, name)); -} - -export function diffPlistValues( - before: Record, - after: Record, - keys: readonly string[], -): PlistKeyChange[] { - return keys.flatMap((key) => { - const hasBefore = Object.prototype.hasOwnProperty.call(before, key); - const hasAfter = Object.prototype.hasOwnProperty.call(after, key); - if (hasBefore && hasAfter && Object.is(before[key], after[key])) return []; - return [ - { - key, - ...(hasBefore ? { before: before[key] } : {}), - ...(hasAfter ? { after: after[key] } : {}), - }, - ]; - }); -} - -export function readSimulatorState(udid: string): string { - validateUdid(udid); - const result = spawnSync('xcrun', ['simctl', 'list', 'devices', '-j'], { - encoding: 'utf8', - timeout: 30_000, - }); - if (result.status !== 0 || typeof result.stdout !== 'string') { - throw new PreferenceSafetyError('simulator-state-unknown', `Unable to read state for ${udid}.`); - } - let payload: unknown; - try { - payload = JSON.parse(result.stdout); - } catch { - throw new PreferenceSafetyError( - 'simulator-state-unknown', - `Simulator state was not JSON for ${udid}.`, - ); - } - const state = findDeviceState(payload, udid); - if (!state) { - throw new PreferenceSafetyError('simulator-state-unknown', `Simulator ${udid} was not found.`); - } - return state; -} - -export function applyPrebootPreferences(udid: string): { - evidence: PreferenceEvidence; - snapshots: readonly PlistSnapshot[]; -} { - const simulatorStateBefore = readSimulatorState(udid); - if (simulatorStateBefore !== 'Shutdown') { - throw new PreferenceSafetyError( - 'simulator-not-shutdown', - `Preference experiment requires a shutdown Simulator; ${udid} is ${simulatorStateBefore}.`, - ); - } - const snapshots = simulatorPreferencePaths(udid).map(snapshotPlist); - try { - for (const snapshot of snapshots) applyPlistValues(snapshot.path); - } catch (error) { - restoreSnapshotBytes(snapshots); - throw error; - } - const diffs = snapshots.map((snapshot) => { - const afterBytes = readBytes(snapshot.path); - const afterValues = readPlist(snapshot.path); - return { - path: snapshot.path, - existedBefore: snapshot.existedBefore, - beforeSha256: hashBytes(snapshot.beforeBytes), - afterSha256: hashBytes(afterBytes), - changes: diffPlistValues(snapshot.beforeValues, afterValues, changedKeys(snapshot.path)), - } satisfies PlistDiff; - }); - return { - snapshots, - evidence: { - applied: true, - restored: false, - simulatorStateBefore, - diffs, - }, - }; -} - -export function restorePrebootPreferences( - udid: string, - snapshots: readonly PlistSnapshot[], -): PreferenceEvidence['restored'] { - const state = readSimulatorState(udid); - if (state !== 'Shutdown') { - throw new PreferenceSafetyError( - 'simulator-not-shutdown', - `Preference restore requires a shutdown Simulator; ${udid} is ${state}.`, - ); - } - restoreSnapshotBytes(snapshots); - return true; -} - -function restoreSnapshotBytes(snapshots: readonly PlistSnapshot[]): void { - for (const snapshot of snapshots) { - if (snapshot.beforeBytes === null) { - fs.rmSync(snapshot.path, { force: true }); - continue; - } - fs.writeFileSync(snapshot.path, snapshot.beforeBytes); - } -} - -function snapshotPlist(filePath: string): PlistSnapshot { - const beforeBytes = readBytes(filePath); - return { - path: filePath, - existedBefore: beforeBytes !== null, - beforeBytes, - beforeValues: beforeBytes === null ? {} : readPlist(filePath), - }; -} - -function applyPlistValues(filePath: string): void { - fs.mkdirSync(path.dirname(filePath), { recursive: true }); - if (!fs.existsSync(filePath)) fs.writeFileSync(filePath, EMPTY_PLIST); - for (const key of changedKeys(filePath)) { - const value = true; - const replaced = spawnSync( - '/usr/bin/plutil', - ['-replace', key, '-bool', String(value), filePath], - { - encoding: 'utf8', - timeout: 10_000, - }, - ); - if (replaced.status === 0) continue; - const inserted = spawnSync( - '/usr/bin/plutil', - ['-insert', key, '-bool', String(value), filePath], - { - encoding: 'utf8', - timeout: 10_000, - }, - ); - if (inserted.status !== 0) { - throw new PreferenceSafetyError('simulator-state-unknown', `Unable to update ${filePath}.`); - } - } -} - -function readPlist(filePath: string): Record { - const result = spawnSync('/usr/bin/plutil', ['-convert', 'json', '-o', '-', filePath], { - encoding: 'utf8', - timeout: 10_000, - }); - if (result.status !== 0 || typeof result.stdout !== 'string') return {}; - try { - const value: unknown = JSON.parse(result.stdout); - return isRecord(value) ? value : {}; - } catch { - return {}; - } -} - -function readBytes(filePath: string): Buffer | null { - try { - return fs.readFileSync(filePath); - } catch { - return null; - } -} - -function hashBytes(value: Buffer | null): string | null { - return value === null ? null : crypto.createHash('sha256').update(value).digest('hex'); -} - -function changedKeys(filePath: string): string[] { - const name = path.basename(filePath) as keyof typeof PREFERENCE_VALUES; - return name in PREFERENCE_VALUES ? Object.keys(PREFERENCE_VALUES[name]) : []; -} - -function findDeviceState(payload: unknown, udid: string): string | undefined { - if (!isRecord(payload) || !isRecord(payload.devices)) return undefined; - for (const runtimeDevices of Object.values(payload.devices)) { - if (!Array.isArray(runtimeDevices)) continue; - const device = runtimeDevices.find( - (candidate) => isRecord(candidate) && candidate.udid === udid, - ); - if (isRecord(device) && typeof device.state === 'string') return device.state; - } - return undefined; -} - -function validateUdid(udid: string): void { - if (!UUID_PATTERN.test(udid)) { - throw new PreferenceSafetyError('invalid-udid', `Invalid Simulator UDID: ${udid}.`); - } -} - -function isRecord(value: unknown): value is Record { - return value !== null && typeof value === 'object' && !Array.isArray(value); -} diff --git a/scripts/ios-ax-bridge-spike/presentation.test.ts b/scripts/ios-ax-bridge-spike/presentation.test.ts deleted file mode 100644 index 6abd9a807..000000000 --- a/scripts/ios-ax-bridge-spike/presentation.test.ts +++ /dev/null @@ -1,30 +0,0 @@ -import assert from 'node:assert/strict'; -import { test } from 'vitest'; -import { presentAcquisitionForMeasurement } from './presentation.ts'; -import type { RawAcquisition } from './types.ts'; - -test('prototype presentation creates the #2190 acquired carrier without semantic fields', () => { - const raw: RawAcquisition = { - targetId: 'simulator:test', - targetGeneration: 'generation-1', - nodes: [ - { - id: 'root', - type: 'XCUIElementTypeApplication', - role: 'AXApplication', - enabled: true, - }, - { id: 'child', parentId: 'root', role: 'AXWindow' }, - ], - viewport: { kind: 'missing', reason: 'not-provided' }, - truncated: false, - residue: [], - }; - const result = presentAcquisitionForMeasurement(raw); - assert.equal(result.acquisition.producer, 'simulator-ax-bridge'); - assert.equal(result.acquisition.nodes.length, 2); - assert.equal(result.acquisition.nodes[0]?.type, 'XCUIElementTypeApplication'); - assert.equal(result.acquisition.nodes[1]?.parentIndex, 0); - assert.equal('hittable' in result.acquisition.nodes[0]!, false); - assert.equal(result.measurement.nodeCount, 2); -}); diff --git a/scripts/ios-ax-bridge-spike/presentation.ts b/scripts/ios-ax-bridge-spike/presentation.ts deleted file mode 100644 index cfd99aeb1..000000000 --- a/scripts/ios-ax-bridge-spike/presentation.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { performance } from 'node:perf_hooks'; -import { - createIosSnapshotRequest, - deriveIosCaptureHint, -} from '@agent-device/capture-kit/ios-snapshot-planning'; -import type { IosSnapshotAcquisition } from '@agent-device/contracts/ios-snapshot'; -import type { RawSnapshotNode } from '@agent-device/kernel/snapshot'; -import type { PresentationMeasurement, RawAcquisition } from './types.ts'; - -export function presentAcquisitionForMeasurement(raw: RawAcquisition): { - acquisition: IosSnapshotAcquisition; - measurement: PresentationMeasurement; -} { - const started = performance.now(); - const usage = process.resourceUsage(); - const acquisitionIntent = 'full' as const; - const request = createIosSnapshotRequest({ raw: true, acquisitionIntent }); - const acquisition: IosSnapshotAcquisition = { - producer: 'simulator-ax-bridge', - intent: acquisitionIntent, - hint: { ...deriveIosCaptureHint(request), acquisitionIntent }, - nodes: raw.nodes.map((node, index) => toRawSnapshotNode(node, index, nodeIndexes(raw.nodes))), - truncated: raw.truncated, - viewport: raw.viewport, - lineage: { - targetId: raw.targetId, - ...(raw.targetGeneration === null ? {} : { generation: raw.targetGeneration }), - }, - residue: raw.residue, - }; - const payloadBytes = Buffer.byteLength(JSON.stringify(acquisition)); - const nextUsage = process.resourceUsage(); - return { - acquisition, - measurement: { - ok: true, - payloadBytes, - nodeCount: raw.nodes.length, - durationMs: performance.now() - started, - cpuMs: cpuMilliseconds(nextUsage) - cpuMilliseconds(usage), - memoryBytes: process.memoryUsage().rss, - }, - }; -} - -function toRawSnapshotNode( - node: RawAcquisition['nodes'][number], - index: number, - nodeIndexes: ReadonlyMap, -): RawSnapshotNode { - return { - index, - ...optionalParent(node.parentId, nodeIndexes), - ...optionalString(node, 'type'), - ...optionalString(node, 'role'), - ...optionalString(node, 'subrole'), - ...optionalString(node, 'label'), - ...optionalString(node, 'value'), - ...optionalString(node, 'identifier'), - ...optionalFrame(node.frame), - ...optionalBoolean(node, 'enabled'), - ...optionalBoolean(node, 'selected'), - ...optionalBoolean(node, 'focused'), - }; -} - -function nodeIndexes(nodes: RawAcquisition['nodes']): ReadonlyMap { - return new Map(nodes.map((node, index) => [node.id, index])); -} - -function optionalParent( - parentId: string | undefined, - indexes: ReadonlyMap, -): Partial { - if (parentId === undefined) return {}; - const parentIndex = indexes.get(parentId); - return parentIndex === undefined ? {} : { parentIndex }; -} - -function optionalString( - node: RawAcquisition['nodes'][number], - key: 'type' | 'role' | 'subrole' | 'label' | 'value' | 'identifier', -): Partial { - return node[key] === undefined ? {} : { [key]: node[key] }; -} - -function optionalBoolean( - node: RawAcquisition['nodes'][number], - key: 'enabled' | 'selected' | 'focused', -): Partial { - return node[key] === undefined ? {} : { [key]: node[key] }; -} - -function optionalFrame(frame: RawAcquisition['nodes'][number]['frame']): Partial { - return frame === undefined ? {} : { rect: frame }; -} - -function cpuMilliseconds(usage: NodeJS.ResourceUsage): number { - return (usage.userCPUTime + usage.systemCPUTime) / 1_000; -} diff --git a/scripts/ios-ax-bridge-spike/protocol.ts b/scripts/ios-ax-bridge-spike/protocol.ts index 3dfd8a1e5..4ba7e560d 100644 --- a/scripts/ios-ax-bridge-spike/protocol.ts +++ b/scripts/ios-ax-bridge-spike/protocol.ts @@ -1,66 +1,4 @@ -import { validateRawAcquisition } from './limits.ts'; -import type { - ResourceMetrics, - SpikeFailure, - SpikeFailureKind, - SpikeRequest, - SpikeResponse, -} from './types.ts'; -import type { FirstTreeStatus } from '../ios-snapshot-benchmark/types.ts'; - -const FAILURE_KINDS: ReadonlySet = new Set([ - 'unsupported-mechanism', - 'malformed-tree', - 'stale-generation', - 'timeout', - 'cancelled', - 'process-crash', - 'transport-failure', -]); - -export function parseSpikeResponse( - value: unknown, - request: SpikeRequest, - responseBytes: number, -): SpikeResponse { - if (!isRecord(value)) return malformedResponse(request, 'response-not-object', responseBytes); - if (value.version !== 1) return malformedResponse(request, 'protocol-version', responseBytes); - if (value.id !== request.id) - return malformedResponse(request, 'response-id-mismatch', responseBytes); - if (value.candidate !== request.candidate) { - return malformedResponse(request, 'response-candidate-mismatch', responseBytes); - } - const metrics = parseMetrics(value.metrics, responseBytes); - if (!metrics) return malformedResponse(request, 'metrics-invalid', responseBytes); - - if (value.ok === true) { - const tree = validateRawAcquisition(value.acquisition, request.limits); - if (!tree.ok) return malformedResponse(request, tree.code, responseBytes, metrics); - return { - version: 1, - id: request.id, - candidate: request.candidate, - ok: true, - acquisition: tree.acquisition, - metrics: { - ...metrics, - nodeCount: tree.acquisition.nodes.length, - maxTraversalDepth: tree.maxTraversalDepth, - }, - }; - } - - const failure = parseFailure(value.failure); - if (!failure) return malformedResponse(request, 'failure-invalid', responseBytes, metrics); - return { - version: 1, - id: request.id, - candidate: request.candidate, - ok: false, - failure, - metrics, - }; -} +import type { ResourceMetrics, SpikeFailure, SpikeRequest, SpikeResponse } from './types.ts'; export function failureResponse( request: SpikeRequest, @@ -84,112 +22,3 @@ export function failureResponse( }, }; } - -export function firstTreeStatus(response: SpikeResponse): FirstTreeStatus { - if (response.ok) return response.acquisition?.nodes.length ? 'readable' : 'empty'; - if (response.failure?.kind === 'unsupported-mechanism') return 'unreadable'; - return 'not-observed'; -} - -export function readResponseId(value: unknown): string | undefined { - if (value && typeof value === 'object' && !Array.isArray(value)) { - const id = (value as Record).id; - return typeof id === 'string' ? id : undefined; - } - return undefined; -} - -function malformedResponse( - request: SpikeRequest, - code: string, - responseBytes: number, - metrics?: ResourceMetrics, -): SpikeResponse { - return failureResponse( - request, - { kind: 'malformed-tree', code }, - { - ...(metrics ?? {}), - responseBytes, - }, - ); -} - -function parseMetrics(value: unknown, responseBytes: number): ResourceMetrics | undefined { - if (!isRecord(value)) return undefined; - const requestBytes = finiteNonNegative(value.requestBytes); - const nodeCount = finiteNonNegative(value.nodeCount); - const maxTraversalDepth = finiteNonNegative(value.maxTraversalDepth); - const durationMs = finiteNonNegative(value.durationMs); - if ( - requestBytes === undefined || - nodeCount === undefined || - maxTraversalDepth === undefined || - durationMs === undefined - ) { - return undefined; - } - const cpuMs = nullableFiniteNonNegative(value.cpuMs); - const memoryBytes = nullableFiniteNonNegative(value.memoryBytes); - if (cpuMs === 'invalid' || memoryBytes === 'invalid') return undefined; - return { - requestBytes, - responseBytes, - nodeCount, - maxTraversalDepth, - cpuMs, - memoryBytes, - durationMs, - }; -} - -function parseFailure(value: unknown): SpikeFailure | undefined { - const record = asFailureRecord(value); - if (!record) return undefined; - const kind = readFailureKind(record.kind); - if (!kind) return undefined; - const code = optionalFailureString(record, 'code'); - const expected = optionalFailureString(record, 'expectedTargetGeneration'); - const observed = optionalFailureString(record, 'observedTargetGeneration'); - if (!code.valid || !expected.valid || !observed.valid) return undefined; - return { - kind, - ...(code.value === undefined ? {} : { code: code.value }), - ...(expected.value === undefined ? {} : { expectedTargetGeneration: expected.value }), - ...(observed.value === undefined ? {} : { observedTargetGeneration: observed.value }), - }; -} - -function asFailureRecord(value: unknown): Record | undefined { - return isRecord(value) && typeof value.kind === 'string' ? value : undefined; -} - -function readFailureKind(value: unknown): SpikeFailureKind | undefined { - return typeof value === 'string' && FAILURE_KINDS.has(value as SpikeFailureKind) - ? (value as SpikeFailureKind) - : undefined; -} - -function optionalFailureString( - value: Record, - key: 'code' | 'expectedTargetGeneration' | 'observedTargetGeneration', -): { valid: boolean; value?: string } { - if (value[key] === undefined) return { valid: true }; - return typeof value[key] === 'string' - ? { valid: true, value: value[key] as string } - : { valid: false }; -} - -function finiteNonNegative(value: unknown): number | undefined { - return typeof value === 'number' && Number.isFinite(value) && value >= 0 ? value : undefined; -} - -function nullableFiniteNonNegative(value: unknown): number | null | 'invalid' { - if (value === null) return null; - const number = finiteNonNegative(value); - return number === undefined ? 'invalid' : number; -} - -function isRecord(value: unknown): value is Record { - return value !== null && typeof value === 'object' && !Array.isArray(value); -} diff --git a/scripts/ios-ax-bridge-spike/report.test.ts b/scripts/ios-ax-bridge-spike/report.test.ts deleted file mode 100644 index 209f30354..000000000 --- a/scripts/ios-ax-bridge-spike/report.test.ts +++ /dev/null @@ -1,48 +0,0 @@ -import assert from 'node:assert/strict'; -import fs from 'node:fs'; -import { gunzipSync } from 'node:zlib'; -import { test } from 'vitest'; -import { corpusCoverage } from './corpus-coverage.ts'; -import { markdownPath } from './report.ts'; - -test('keeps markdown separate from every supported raw artifact path', () => { - assert.equal(markdownPath('/tmp/evidence.json.gz'), '/tmp/evidence.md'); - assert.equal(markdownPath('/tmp/evidence.json'), '/tmp/evidence.md'); - assert.equal(markdownPath('/tmp/evidence'), '/tmp/evidence.md'); -}); - -test('does not call an unproduced requested corpus full', () => { - assert.equal( - corpusCoverage( - ['cold-cold', 'cold', 'warm', 'relaunch'], - ['quiet', 'list', 'nested-scroll', 'alert', 'system-surface', 'xctest-stress'], - [], - ['guest-simulator-framework-bridge'], - ), - 'decisive-early-stop', - ); -}); - -test('ships a readable completed decision inside the checked gzip artifact', () => { - const compressed = fs.readFileSync('docs/evidence/ios-simulator-ax-bridge-2026-09-01.json.gz'); - const report = JSON.parse(gunzipSync(compressed).toString('utf8')) as { - schemaVersion?: string; - status?: string; - decision?: string; - corpusCoverage?: string; - }; - assert.deepEqual( - { - schemaVersion: report.schemaVersion, - status: report.status, - decision: report.decision, - corpusCoverage: report.corpusCoverage, - }, - { - schemaVersion: 'ios-simulator-ax-bridge-spike.v1', - status: 'completed', - decision: 'NO-GO', - corpusCoverage: 'decisive-early-stop', - }, - ); -}); diff --git a/scripts/ios-ax-bridge-spike/report.ts b/scripts/ios-ax-bridge-spike/report.ts deleted file mode 100644 index ae88f215f..000000000 --- a/scripts/ios-ax-bridge-spike/report.ts +++ /dev/null @@ -1,291 +0,0 @@ -import fs from 'node:fs'; -import path from 'node:path'; -import { gzipSync } from 'node:zlib'; -import type { SpikeCell, SpikeReport, SpikeSample } from './types.ts'; - -export function writeSpikeReport(outputPath: string, report: SpikeReport): void { - const compact = compactReportEvidence(report); - fs.mkdirSync(path.dirname(outputPath), { recursive: true }); - fs.writeFileSync(outputPath, gzipSync(`${JSON.stringify(compact)}\n`, { level: 9 })); - fs.writeFileSync(markdownPath(outputPath), renderSpikeMarkdown(compact)); -} - -export function markdownPath(outputPath: string): string { - const replaced = outputPath.replace(/\.json(?:\.gz)?$/u, '.md'); - return replaced === outputPath ? `${outputPath}.md` : replaced; -} - -function renderSpikeMarkdown(report: SpikeReport): string { - const lines = [ - '# iOS Simulator AX bridge spike', - '', - `- Decision: **${report.decision}**`, - `- Status: **${report.status}**`, - `- Revision: ${report.revision.commit} (${report.revision.branch})`, - `- Target: ${report.target.name} (${report.target.udid}, ${report.target.runtime})`, - `- Generated: ${report.generatedAt}`, - `- Corpus: states=${report.config.states.join(', ')}, screens=${report.config.screens.join(', ')}, samples=${report.config.requestedSamples}`, - `- Corpus coverage: **${report.corpusCoverage}**`, - '', - '## Evaluated guest mechanism', - '', - `- Guest reader: **${report.guestMechanism.implementation} ${report.guestMechanism.release}** \`${report.guestMechanism.guestBinary}\` (SHA-256 \`${report.guestMechanism.guestBinarySha256}\`) from \`${report.guestMechanism.companionArchive}\` (SHA-256 \`${report.guestMechanism.companionSha256}\`).`, - `- Transport: ${report.guestMechanism.transport}.`, - `- Traversal: ${report.guestMechanism.traversal}.`, - `- Host client: **${report.guestMechanism.client}**; no idb_companion, gRPC, or Python is involved, and nothing here ships in the npm package.`, - '', - '## Environment and limits', - '', - ...environmentLines(report), - '', - '## Candidate fidelity and limitation matrix', - '', - '| Candidate | Mechanism | App surface | System surface | Lifecycle | Main limitation |', - '|---|---|---|---|---|---|', - `| guest-simulator-framework-bridge | in-Simulator SimulatorFrameworkBridge reader over a UNIX socket, driven from Node | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'app')} | ${surfaceStatus(report, 'guest-simulator-framework-bridge', 'system')} | one private guest per session, typed failures, respawn on drop | XCTest view-hierarchy tree; hittability and placeholder are not fetched by the single-fetch traversal |`, - `| xctest-control | #2189 XCTest runner control | ${surfaceStatus(report, 'xctest-control', 'app')} | ${surfaceStatus(report, 'xctest-control', 'system')} | existing runner lifecycle | control, not a host-side AX bridge |`, - '', - '## Raw acquisition and prototype presentation results', - '', - '| Candidate | State | Screen | Readable/attempted | Wall p50/p95 ms | Gated duration p50/p95 ms | First look p95 ms | Presentation p50/p95 ms | Nodes | Failures |', - '|---|---|---|---:|---:|---:|---:|---:|---:|---:|', - ...report.cells.map(renderCellRow), - '', - ...fidelityLines(report), - '', - 'Every acquisition sample retains timing, resource, readiness, and failure evidence; the first successful sample in each cell also retains one raw node-tree exemplar with viewport, target generation, truncation, and residue. Presentation samples measure only construction of the #2190 acquired carrier; they do not apply visibility, hittability, scope, depth, or semantic compaction.', - '', - '## Direct protocol probes', - '', - ...probeLines(report), - '', - '## Independent positive-control evidence', - '', - `- Invalid shallow rule: exit=${report.positiveControl.invalidShallowRule.exitCode}; command=${report.positiveControl.invalidShallowRule.command}; assertion=${report.positiveControl.invalidShallowRule.assertion}`, - `- Safe full rule: exit=${report.positiveControl.safeFullRule.exitCode}; command=${report.positiveControl.safeFullRule.command}; assertion=${report.positiveControl.safeFullRule.assertion}`, - '', - '## Preference experiment', - '', - `- Applied: **${report.preferenceEvidence.applied}**`, - `- Restored: **${report.preferenceEvidence.applied ? report.preferenceEvidence.restored : 'not required'}**`, - `- Fixture launch compatible: **${report.preferenceEvidence.fixtureLaunchCompatible ?? 'not exercised'}**`, - `- Simulator state before experiment: ${report.preferenceEvidence.simulatorStateBefore}`, - preferenceExperimentLine(report), - ...preferenceLines(report), - '', - '## Lifecycle, cancellation, and recovery', - '', - `- Source: ${report.lifecycle.source}`, - `- Process crash: ${report.lifecycle.crash.failure}; recovered=${report.lifecycle.crash.recovered}`, - `- Timeout: ${report.lifecycle.timeout.failure}; recovered=${report.lifecycle.timeout.recovered}`, - `- Cancellation: ${report.lifecycle.cancellation.failure}; recovered=${report.lifecycle.cancellation.recovered}`, - `- Stale generation: ${report.lifecycle.staleGeneration.failure}; recovered=${report.lifecycle.staleGeneration.recovered}`, - '', - '## Decision rationale', - '', - ...(report.decisionReasons.length === 0 - ? ['- Every hard gate passed.'] - : report.decisionReasons.map((reason) => `- ${reason}`)), - '', - '## Stretch findings', - '', - ...(report.stretchFindings.length === 0 - ? ['- None.'] - : report.stretchFindings.map((finding) => `- ${finding}`)), - '', - '## Next interface boundary', - '', - `- ${report.nextInterface}`, - '', - '## Production boundary', - '', - '- No production backend selection, fallback, runner-demand, open/relaunch, proxy, XCTest interaction, or public CLI changes were made.', - '- A production bridge should not start until this report has a GO result; this run is the #2192 boundary.', - ]; - if (report.stop) { - lines.push('', '## Stop condition', '', `- ${report.stop.category}: ${report.stop.message}`); - if (report.stop.command) lines.push(`- Command: ${report.stop.command}`); - } - return `${lines.join('\n')}\n`; -} - -function environmentLines(report: SpikeReport): string[] { - return [ - `- Node: ${report.toolchain.node}`, - `- pnpm: ${report.toolchain.pnpm}`, - `- Xcode: ${report.toolchain.xcode.replaceAll('\n', '; ')}`, - `- simctl: ${report.toolchain.simctl}`, - `- OS: ${report.toolchain.os}; arch=${report.toolchain.arch}`, - `- Bounds: request=${report.limits.maxRequestBytes} B, response=${report.limits.maxResponseBytes} B, nodes=${report.limits.maxNodes}, traversal=${report.limits.maxTraversalDepth}, CPU=${report.limits.maxCpuMs} ms, memory=${report.limits.maxMemoryBytes} B, duration=${report.limits.maxDurationMs} ms`, - ]; -} - -function probeLines(report: SpikeReport): string[] { - const lines: string[] = []; - for (const probe of report.protocolProbes) { - lines.push(renderProbeLine(probe)); - } - for (const log of report.protocolProbeLogs) { - lines.push(renderProbeLog(log)); - } - return lines; -} - -function renderProbeLine(probe: SpikeReport['protocolProbes'][number]): string { - return `- ${probe.candidate}/${probe.id}: ok=${probe.ok}, failure=${failureValue(probe.failure, 'kind')}, code=${failureValue(probe.failure, 'code')}, nodes=${probe.metrics.nodeCount}, duration=${probe.metrics.durationMs.toFixed(1)} ms, CPU=${metricValue(probe.metrics.cpuMs)} ms, memory=${probe.metrics.memoryBytes ?? '–'} B, response=${probe.metrics.responseBytes} B`; -} - -function renderProbeLog(log: SpikeReport['protocolProbeLogs'][number]): string { - return `- stderr ${log.candidate}/${log.id}: ${log.stderr.trim().replaceAll('\n', ' ⏎ ') || 'empty'}`; -} - -function failureValue( - failure: SpikeReport['protocolProbes'][number]['failure'], - key: 'kind' | 'code', -): string { - return failure?.[key] ?? 'none'; -} - -function metricValue(value: number | null): string { - return value === null ? '–' : value.toFixed(1); -} - -function renderCellRow(cell: SpikeCell): string { - const acquisition = cell.acquisitionSamples; - const presentation = cell.presentationSamples; - const readable = acquisition.filter((sample) => sample.ok && sample.firstTree === 'readable'); - const failures = acquisition.length - readable.length; - const nodeCounts = readable.flatMap((sample) => - typeof sample.metrics?.nodeCount === 'number' ? [sample.metrics.nodeCount] : [], - ); - return `| ${cell.candidate} | ${cell.state} | ${cell.screen} | ${readable.length}/${acquisition.length} | ${summary(readable, 'wallClockMs')} | ${metricSummary(readable)} | ${summary(readable, 'firstLookMs')} | ${summary( - presentation.filter((sample) => sample.ok), - 'wallClockMs', - )} | ${formatNumber(median(nodeCounts))} | ${failures} |`; -} - -function metricSummary(samples: readonly SpikeSample[]): string { - const values = samples.flatMap((sample) => - sample.metrics && Number.isFinite(sample.metrics.durationMs) ? [sample.metrics.durationMs] : [], - ); - return values.length === 0 - ? '–' - : `${formatNumber(median(values))}/${formatNumber(percentile(values, 95))}`; -} - -function surfaceStatus( - report: SpikeReport, - candidate: SpikeCell['candidate'], - surface: 'app' | 'system', -): string { - const cells = report.cells.filter( - (cell) => - cell.candidate === candidate && - (surface === 'system' ? cell.screen === 'system-surface' : cell.screen !== 'system-surface'), - ); - if (cells.some((cell) => cell.acquisitionSamples.some((sample) => sample.ok))) { - return 'observed in successful cells'; - } - if (cells.length > 0) return 'failed in cells'; - const probe = report.protocolProbes.find((item) => item.candidate === candidate); - if (probe?.failure?.kind === 'unsupported-mechanism') return 'unsupported before corpus'; - if (report.candidates.includes(candidate)) return 'not exercised'; - return 'not selected'; -} - -function preferenceLines(report: SpikeReport): string[] { - return report.preferenceEvidence.diffs.flatMap((diff) => [ - `- ${diff.path}: existed=${diff.existedBefore}, beforeSha256=${diff.beforeSha256 ?? 'missing'}, afterSha256=${diff.afterSha256 ?? 'missing'}`, - ` - Changes: ${diff.changes.length === 0 ? 'none' : diff.changes.map((change) => `${change.key}: ${JSON.stringify(change.before)} -> ${JSON.stringify(change.after)}`).join('; ')}`, - ]); -} - -function preferenceExperimentLine(report: SpikeReport): string { - return report.preferenceEvidence.applied && report.preferenceEvidence.restored - ? '- Private/preboot preference keys are experimental only; they were applied to this shutdown disposable Simulator and the original plist bytes were restored.' - : report.preferenceEvidence.applied - ? '- Private/preboot preference keys were applied, but restoration was not proven.' - : '- No private/preboot preference keys were applied in this run.'; -} - -function compactReportEvidence(report: SpikeReport): SpikeReport { - return { - ...report, - cells: report.cells.map((cell) => ({ - ...cell, - acquisitionSamples: cell.acquisitionSamples.map((sample, index) => - index === 0 || !sample.ok || sample.stderr === undefined ? sample : withoutStderr(sample), - ), - presentationSamples: cell.presentationSamples.map((sample) => withoutStderr(sample)), - })), - }; -} - -function withoutStderr(sample: SpikeSample): SpikeSample { - const { stderr: _stderr, ...rest } = sample; - return rest; -} - -function fidelityLines(report: SpikeReport): string[] { - const candidate = 'guest-simulator-framework-bridge'; - const comparisons = report.config.screens.flatMap((screen) => - fidelityComparison(report, candidate, screen), - ); - if (comparisons.length > 0) { - return ['Raw exemplar fidelity (candidate vs XCTest control):', ...comparisons]; - } - return report.candidates.includes(candidate) - ? [`- ${candidate}: no comparable raw exemplar was produced.`] - : ['Raw exemplar fidelity comparison was not available.']; -} - -function fidelityComparison( - report: SpikeReport, - candidate: SpikeCell['candidate'], - screen: SpikeCell['screen'], -): readonly string[] { - const candidateSample = exemplarSample(report, candidate, screen); - const controlSample = exemplarSample(report, 'xctest-control', screen); - if (!candidateSample?.acquisition || !controlSample?.acquisition) return []; - const candidateNodes = candidateSample.acquisition.nodes; - const controlNodes = controlSample.acquisition.nodes; - const candidateIdentifiers = candidateNodes.filter((node) => node.identifier).length; - const controlIdentifiers = controlNodes.filter((node) => node.identifier).length; - return [ - `- ${candidate} ${screen}: nodes ${candidateNodes.length}/${controlNodes.length}; depth ${candidateSample.metrics?.maxTraversalDepth ?? '–'}/${controlSample.metrics?.maxTraversalDepth ?? '–'}; identifiers ${candidateIdentifiers}/${controlIdentifiers}.`, - ]; -} - -function exemplarSample( - report: SpikeReport, - candidate: SpikeCell['candidate'], - screen: SpikeCell['screen'], -): SpikeSample | undefined { - return report.cells - .find((cell) => cell.candidate === candidate && cell.screen === screen) - ?.acquisitionSamples.find((sample) => sample.acquisition); -} - -function summary(samples: readonly SpikeSample[], key: 'wallClockMs' | 'firstLookMs'): string { - const values = samples.flatMap((sample) => { - const value = sample[key]; - return typeof value === 'number' && Number.isFinite(value) ? [value] : []; - }); - if (values.length === 0) return '–'; - return `${formatNumber(median(values))}/${formatNumber(percentile(values, 95))}`; -} - -function median(values: readonly number[]): number { - return percentile(values, 50); -} - -export function percentile(values: readonly number[], percentage: number): number { - if (values.length === 0) return Number.NaN; - const sorted = [...values].sort((left, right) => left - right); - const rank = Math.ceil((percentage / 100) * sorted.length); - return sorted[Math.min(sorted.length - 1, Math.max(0, rank - 1))]!; -} - -function formatNumber(value: number): string { - return Number.isFinite(value) ? value.toFixed(1) : '–'; -} diff --git a/scripts/ios-ax-bridge-spike/run.test.ts b/scripts/ios-ax-bridge-spike/run.test.ts deleted file mode 100644 index 2874cb984..000000000 --- a/scripts/ios-ax-bridge-spike/run.test.ts +++ /dev/null @@ -1,13 +0,0 @@ -import assert from 'node:assert/strict'; -import { execFileSync } from 'node:child_process'; -import { test } from 'vitest'; - -test('loads the executable spike entrypoint', () => { - const output = execFileSync( - process.execPath, - ['--experimental-strip-types', 'scripts/ios-ax-bridge-spike/run.ts', '--help'], - { encoding: 'utf8' }, - ); - - assert.match(output, /Usage: pnpm bench:ios-ax-bridge/); -}); diff --git a/scripts/ios-ax-bridge-spike/run.ts b/scripts/ios-ax-bridge-spike/run.ts deleted file mode 100644 index 69c1819e7..000000000 --- a/scripts/ios-ax-bridge-spike/run.ts +++ /dev/null @@ -1,298 +0,0 @@ -import path from 'node:path'; -import { fileURLToPath } from 'node:url'; -import { createXCTestControlAdapter } from './adapter.ts'; -import { - createGuestSimulatorFrameworkBridgeAdapter, - GUEST_MECHANISM_EVIDENCE, -} from './guest-adapter.ts'; -import { parseConfig, type SpikeConfig } from './config.ts'; -import { decideSpike } from './decision.ts'; -import { runLifecycleProbes } from './lifecycle.ts'; -import { markdownPath, writeSpikeReport } from './report.ts'; -import { corpusCoverage } from './corpus-coverage.ts'; -import { - initialPreferenceEvidence, - primeFixtureApps, - runPreferenceExperiment, -} from './preference-experiment.ts'; -import { createAdapterOptions, runSpikeCells } from './runner.ts'; -import { readGitRevision, readTarget, readToolchain } from '../ios-snapshot-benchmark/host.ts'; -import { runDeepButtonControls } from '../ios-snapshot-benchmark/deep-control.ts'; -import { deepButtonFixtureEvidence } from '../ios-snapshot-benchmark/deep-button.ts'; -import { bootSimulator, shutdownSimulator } from '../ios-snapshot-benchmark/lifecycle.ts'; -import type { AcquisitionAdapter } from './adapter.ts'; -import { SPIKE_ISSUE, SPIKE_PARENT, SPIKE_PREREQUISITES, SPIKE_SCHEMA_VERSION } from './types.ts'; -import type { - PreferenceEvidence, - ProtocolProbeLog, - SpikeReport, - SpikeRequest, - SpikeResponse, - Toolchain, -} from './types.ts'; - -if (isMainModule()) void main(process.argv.slice(2)).catch(reportFailure); - -function reportFailure(error: unknown): void { - process.stderr.write( - `${error instanceof Error ? (error.stack ?? error.message) : String(error)}\n`, - ); - process.exitCode = 1; -} - -async function main(argv: readonly string[]): Promise { - const config = parseConfig(argv); - const metadata = readMetadata(config); - const lifecycle = await runLifecycleProbes(); - const evidence = await collectSpikeEvidence(config); - const decision = decideSpike( - evidence.cells, - lifecycle, - evidence.preferenceEvidence, - config.limits, - evidence.status, - evidence.protocolProbes, - ); - const report = createReport(config, metadata, lifecycle, evidence, decision); - writeSpikeReport(config.outputPath, report); - process.stdout.write( - `Decision: ${report.decision}\nRaw: ${config.outputPath}\nMarkdown: ${markdownPath(config.outputPath)}\n`, - ); - if (evidence.status === 'stopped') process.exitCode = 2; -} - -type SpikeRunEvidence = Readonly<{ - status: SpikeReport['status']; - stop?: SpikeReport['stop']; - cells: Awaited>; - protocolProbes: SpikeResponse[]; - protocolProbeLogs: SpikeReport['protocolProbeLogs']; - preferenceEvidence: PreferenceEvidence; - positiveControl: SpikeReport['positiveControl']; -}>; - -async function collectSpikeEvidence(config: SpikeConfig): Promise { - let preferenceEvidence = initialPreferenceEvidence(config.udid); - let cells: Awaited> = []; - let protocolProbes: SpikeResponse[] = []; - let protocolProbeLogs: SpikeReport['protocolProbeLogs'] = []; - let positiveControl = deepButtonFixtureEvidence(); - let adapters: readonly AcquisitionAdapter[] = []; - try { - positiveControl = runDeepButtonControls(config.repoRoot); - preferenceEvidence = runPreferenceExperiment(config); - assertPreferenceRestored(config, preferenceEvidence); - adapters = createAdapters(config); - bootSimulator(config.udid); - primeFixtureApps(config); - const probes = await runProtocolProbes(config, adapters); - protocolProbes = probes.responses; - protocolProbeLogs = probes.logs; - cells = await runSpikeCells(config, supportedAdapters(adapters, protocolProbes)); - return collectedEvidence( - 'completed', - cells, - protocolProbes, - protocolProbeLogs, - preferenceEvidence, - positiveControl, - ); - } catch (error) { - return { - ...collectedEvidence( - 'stopped', - cells, - protocolProbes, - protocolProbeLogs, - preferenceEvidence, - positiveControl, - ), - stop: stopForError(error), - }; - } finally { - await closeAdapters(adapters); - cleanupDevice(config); - } -} - -async function closeAdapters(adapters: readonly AcquisitionAdapter[]): Promise { - for (const adapter of adapters) await adapter.close?.(); -} - -function collectedEvidence( - status: SpikeReport['status'], - cells: SpikeReport['cells'], - protocolProbes: SpikeResponse[], - protocolProbeLogs: SpikeReport['protocolProbeLogs'], - preferenceEvidence: PreferenceEvidence, - positiveControl: SpikeReport['positiveControl'], -): SpikeRunEvidence { - return { - status, - cells, - protocolProbes, - protocolProbeLogs, - preferenceEvidence, - positiveControl, - }; -} - -function assertPreferenceRestored(config: SpikeConfig, evidence: PreferenceEvidence): void { - if (config.applyPreferences && !evidence.restored) { - throw new Error('The task-owned Simulator preference experiment was not restored.'); - } -} - -function cleanupDevice(config: SpikeConfig): void { - if (!config.keepDevice) shutdownSimulator(config.udid); -} - -function stopForError(error: unknown): SpikeReport['stop'] { - return { - category: isConfigurationError(error) ? 'configuration' : 'infrastructure', - message: error instanceof Error ? error.message : String(error), - ...(errorCommand(error) ? { command: errorCommand(error) } : {}), - }; -} - -function createReport( - config: SpikeConfig, - metadata: { target: SpikeReport['target']; toolchain: Toolchain }, - lifecycle: SpikeReport['lifecycle'], - evidence: SpikeRunEvidence, - decision: { decision: SpikeReport['decision']; reasons: string[]; stretchFindings: string[] }, -): SpikeReport { - return { - schemaVersion: SPIKE_SCHEMA_VERSION, - issue: SPIKE_ISSUE, - parent: SPIKE_PARENT, - prerequisites: SPIKE_PREREQUISITES, - generatedAt: new Date().toISOString(), - revision: readGitRevision(config.repoRoot), - toolchain: metadata.toolchain, - guestMechanism: GUEST_MECHANISM_EVIDENCE, - target: metadata.target, - limits: config.limits, - candidates: config.candidates, - config: { - states: config.states, - screens: config.screens, - requestedSamples: config.samples, - }, - protocolProbes: evidence.protocolProbes, - protocolProbeLogs: evidence.protocolProbeLogs, - preferenceEvidence: evidence.preferenceEvidence, - lifecycle, - positiveControl: evidence.positiveControl, - status: evidence.status, - corpusCoverage: corpusCoverage( - config.states, - config.screens, - evidence.cells, - config.candidates, - ), - cells: evidence.cells, - decision: decision.decision, - decisionReasons: decision.reasons, - stretchFindings: decision.stretchFindings, - nextInterface: - 'Keep any future bridge behind the #2190 acquisition adapter and preserve raw facts until a separate GO evidence run proves fidelity, lifecycle, and latency.', - ...(evidence.stop ? { stop: evidence.stop } : {}), - }; -} - -function createAdapters(config: SpikeConfig) { - const options = createAdapterOptions(config); - return config.candidates.map((candidate) => { - if (candidate === 'guest-simulator-framework-bridge') { - return createGuestSimulatorFrameworkBridgeAdapter(options); - } - return createXCTestControlAdapter((request) => ({ - repoRoot: config.repoRoot, - stateDir: config.stateDir, - session: `ax-spike-xctest-control-${request.state}-${request.screen}`, - udid: request.simulatorUdid, - derivedPath: path.join(config.derivedPath, 'xctest-control', request.screen), - })); - }); -} - -async function runProtocolProbes( - config: SpikeConfig, - adapters: readonly AcquisitionAdapter[], -): Promise<{ responses: SpikeResponse[]; logs: SpikeReport['protocolProbeLogs'] }> { - const responses: SpikeResponse[] = []; - const logs: ProtocolProbeLog[] = []; - for (const adapter of adapters) { - if (adapter.candidate !== 'guest-simulator-framework-bridge') continue; - const request = protocolProbeRequest(config); - const result = await adapter.acquireBatch([request]); - responses.push(...result.responses.slice(0, 1)); - logs.push({ - candidate: 'guest-simulator-framework-bridge', - id: request.id, - stderr: result.stderr, - }); - } - return { responses, logs }; -} - -function protocolProbeRequest(config: SpikeConfig): SpikeRequest { - return { - version: 1, - id: 'protocol-probe:guest-simulator-framework-bridge', - candidate: 'guest-simulator-framework-bridge', - simulatorUdid: config.udid, - state: 'warm', - screen: 'unprepared-surface', - limits: config.limits, - }; -} - -function readMetadata(config: SpikeConfig): { - target: SpikeReport['target']; - toolchain: Toolchain; -} { - const target = readTarget(config.udid, 'com.callstack.agentdevicelab'); - return { - target: { udid: target.udid, name: target.name, runtime: target.runtime }, - toolchain: readToolchain(), - }; -} - -function supportedAdapters( - adapters: readonly AcquisitionAdapter[], - probes: readonly SpikeResponse[], -): readonly AcquisitionAdapter[] { - return adapters.filter((adapter) => { - if (adapter.candidate === 'xctest-control') return true; - const probe = probes.find((candidate) => candidate.candidate === adapter.candidate); - return ![ - 'guest-tool-unavailable', - 'guest-companion-start-timeout', - 'guest-companion-spawn-failed', - 'guest-companion-exited-before-ready', - 'host-accessibility-permission', - 'candidate-not-supported', - ].includes(probe?.failure?.code ?? ''); - }); -} - -function isConfigurationError(error: unknown): boolean { - return error instanceof Error && error.name === 'SpikeConfigurationError'; -} - -function errorCommand(error: unknown): string | undefined { - if (error instanceof Error && 'command' in error) { - const command = error.command; - return typeof command === 'string' ? command : undefined; - } - return undefined; -} - -function isMainModule(): boolean { - return Boolean( - process.argv[1] && - path.resolve(process.argv[1]) === path.resolve(fileURLToPath(import.meta.url)), - ); -} diff --git a/scripts/ios-ax-bridge-spike/runner.ts b/scripts/ios-ax-bridge-spike/runner.ts deleted file mode 100644 index 7be2b013a..000000000 --- a/scripts/ios-ax-bridge-spike/runner.ts +++ /dev/null @@ -1,296 +0,0 @@ -import { spawnSync } from 'node:child_process'; -import path from 'node:path'; -import { performance } from 'node:perf_hooks'; -import { - classifyFailure, - openFixture, - type CliContext, -} from '../ios-snapshot-benchmark/command.ts'; -import { - admitReadyCell, - admitStableWarmSample, - admitSuccessfulSample, - cleanupSuccessfulSample, - prepareCellState, - prepareSampleState, - type CellAdmissionOptions, -} from '../ios-snapshot-benchmark/cell-admission.ts'; -import { screenFixture, sampleMinimumForState } from '../ios-snapshot-benchmark/definitions.ts'; -import { BenchmarkInfrastructureError, stopDaemon } from '../ios-snapshot-benchmark/lifecycle.ts'; -import { appendSamples, makeRequest, type CapturedResponse } from './sample-evidence.ts'; -import type { AcquisitionAdapter, AdapterOptions } from './adapter.ts'; -import type { SpikeConfig } from './config.ts'; -import type { CandidateId, SpikeCell, SpikeRequest, SpikeSample } from './types.ts'; - -export async function runSpikeCells( - config: SpikeConfig, - adapters: readonly AcquisitionAdapter[], -): Promise { - const cells: SpikeCell[] = []; - for (const adapter of adapters) { - for (const state of config.states) { - for (const screen of config.screens) { - cells.push(await runCell(config, adapter, state, screen)); - } - } - } - return cells; -} - -export function createAdapterOptions(config: SpikeConfig): AdapterOptions { - return { - repoRoot: config.repoRoot, - ...(config.guestBridge ? { guestBridge: config.guestBridge } : {}), - limits: config.limits, - }; -} - -async function runCell( - config: SpikeConfig, - adapter: AcquisitionAdapter, - state: SpikeConfig['states'][number], - screen: SpikeConfig['screens'][number], -): Promise { - const fixture = screenFixture(screen); - const context = contextFor(config, adapter.candidate, state, screen); - const admission: CellAdmissionOptions = { - repoRoot: config.repoRoot, - stateDir: config.stateDir, - derivedPath: context.derivedPath, - udid: config.udid, - samples: config.samples, - state, - fixture, - }; - const acquisitionSamples: SpikeSample[] = []; - const presentationSamples: SpikeSample[] = []; - try { - prepareCellState(admission); - if (state === 'warm') { - await collectWarmSamples( - config, - adapter, - context, - admission, - acquisitionSamples, - presentationSamples, - ); - } else { - await collectNonWarmSamples( - config, - adapter, - context, - admission, - acquisitionSamples, - presentationSamples, - ); - } - return { - candidate: adapter.candidate, - state, - screen, - sampleMinimum: sampleMinimumForState(state), - acquisitionSamples, - presentationSamples, - }; - } finally { - closeSession(context); - stopDaemon(config.repoRoot, config.stateDir); - } -} - -async function collectWarmSamples( - config: SpikeConfig, - adapter: AcquisitionAdapter, - context: CliContext, - admission: CellAdmissionOptions, - acquisitionSamples: SpikeSample[], - presentationSamples: SpikeSample[], -): Promise { - let appPid = await admitReadyCell(context, admission); - if (appPid === undefined) - throw new BenchmarkInfrastructureError('Warm admission returned no app PID.'); - for (let index = 0; index < config.samples; index += 1) { - if (index > 0) appPid = admitStableWarmSample(admission, appPid); - const request = makeRequest( - config, - adapter.candidate, - admission.state, - admission.fixture.id, - index, - appPid, - ); - const captured = await capture(adapter, request); - appendSamples( - adapter.candidate, - admission.state, - admission.fixture.id, - index, - captured, - 0, - acquisitionSamples, - presentationSamples, - ); - } -} - -async function collectNonWarmSamples( - config: SpikeConfig, - adapter: AcquisitionAdapter, - context: CliContext, - admission: CellAdmissionOptions, - acquisitionSamples: SpikeSample[], - presentationSamples: SpikeSample[], -): Promise { - let appPid: number | undefined; - for (let index = 0; index < config.samples; index += 1) { - if (index > 0) prepareSampleState(admission); - const launchStarted = performance.now(); - const opened = openFixture(context, admission.fixture, { relaunch: true }); - if (!opened.ok) { - throw preparationError( - opened, - `open ${admission.fixture.id}`, - context, - openArguments(admission.fixture), - ); - } - const preparationMs = performance.now() - launchStarted; - appPid = await admitSuccessfulSample(context, admission, opened, appPid); - const request = makeRequest( - config, - adapter.candidate, - admission.state, - admission.fixture.id, - index, - appPid, - ); - const captured = await capture(adapter, request); - appendSamples( - adapter.candidate, - admission.state, - admission.fixture.id, - index, - captured, - preparationMs, - acquisitionSamples, - presentationSamples, - ); - cleanupSuccessfulSample(context, admission); - } -} - -function openArguments(fixture: ReturnType): string[] { - return ['open', fixture.app, '--relaunch', ...launchUrlArguments(fixture), '--foreground']; -} - -function launchUrlArguments(fixture: ReturnType): string[] { - return fixture.launchUrl ? ['--launch-url', fixture.launchUrl] : []; -} - -async function capture( - adapter: AcquisitionAdapter, - request: SpikeRequest, -): Promise { - const startedAt = new Date().toISOString(); - const started = performance.now(); - const batch = await adapter.acquireBatch([request]); - const response = batch.responses[0]; - if (!response) { - throw new BenchmarkInfrastructureError(`Adapter ${adapter.candidate} returned no response.`); - } - return { - response, - stderr: batch.stderr, - startedAt, - wallClockMs: performance.now() - started, - }; -} - -function contextFor( - config: SpikeConfig, - candidate: CandidateId, - state: SpikeConfig['states'][number], - screen: SpikeConfig['screens'][number], -): CliContext { - return { - repoRoot: config.repoRoot, - stateDir: config.stateDir, - session: `ax-spike-${candidate}-${state}-${screen}`, - udid: config.udid, - derivedPath: path.join(config.derivedPath, candidate, state, screen), - }; -} - -function closeSession(context: CliContext): void { - spawnSync( - process.execPath, - [ - 'bin/agent-device.mjs', - 'close', - '--state-dir', - context.stateDir, - '--session', - context.session, - '--platform', - 'ios', - '--udid', - context.udid, - '--json', - ], - { - cwd: context.repoRoot, - env: { ...process.env, AGENT_DEVICE_NO_UPDATE_NOTIFIER: '1' }, - stdio: 'ignore', - timeout: 60_000, - }, - ); -} - -function preparationError( - result: { payload: unknown; stderr: string; exitCode: number }, - operation: string, - context: CliContext, - args: readonly string[], -): Error { - const failure = classifyFailure(result.payload, result); - return new BenchmarkInfrastructureError( - `${operation} failed during fixture preparation (exit ${result.exitCode}; ${failureDetails(failure, result)})`, - commandFor(context, args), - ); -} - -function failureDetails( - failure: ReturnType, - result: { stderr: string }, -): string { - return `code=${fallbackText(failure.code)}; reason=${fallbackText(failure.reason)}; diagnostic=${diagnosticText(failure.message, result.stderr)}`; -} - -function fallbackText(value: string | undefined): string { - return value ?? 'none'; -} - -function diagnosticText(message: string | undefined, stderr: string): string { - const text = message ?? stderr.trim(); - return (text || 'no diagnostic').slice(0, 800); -} - -function commandFor(context: CliContext, args: readonly string[]): string { - return [ - process.execPath, - 'bin/agent-device.mjs', - ...args, - '--state-dir', - context.stateDir, - '--session', - context.session, - '--platform', - 'ios', - '--udid', - context.udid, - '--ios-xctest-derived-data-path', - context.derivedPath, - '--json', - ].join(' '); -} diff --git a/scripts/ios-ax-bridge-spike/sample-evidence.test.ts b/scripts/ios-ax-bridge-spike/sample-evidence.test.ts deleted file mode 100644 index f04a4ffe6..000000000 --- a/scripts/ios-ax-bridge-spike/sample-evidence.test.ts +++ /dev/null @@ -1,102 +0,0 @@ -import assert from 'node:assert/strict'; -import { test } from 'vitest'; -import { appendSamples, type CapturedResponse } from './sample-evidence.ts'; -import type { SpikeSample } from './types.ts'; - -test('keeps one raw acquisition exemplar while retaining every sample measurement', () => { - const acquisitionSamples: SpikeSample[] = []; - const presentationSamples: SpikeSample[] = []; - const captured: CapturedResponse = { - startedAt: '2026-09-01T00:00:00.000Z', - wallClockMs: 12, - stderr: '', - response: { - version: 1, - id: 'sample', - candidate: 'guest-simulator-framework-bridge', - ok: true, - acquisition: { - targetId: 'simulator:test', - nodes: [{ id: 'root', role: 'AXGroup', label: 'Inert surface' }], - viewport: { kind: 'missing', reason: 'not-provided' }, - truncated: false, - residue: [], - }, - metrics: { - requestBytes: 1, - responseBytes: 2, - nodeCount: 1, - maxTraversalDepth: 0, - cpuMs: 1, - memoryBytes: 1, - durationMs: 12, - }, - }, - }; - - for (const index of [0, 1]) { - appendSamples( - 'guest-simulator-framework-bridge', - 'warm', - 'quiet', - index, - captured, - 3, - acquisitionSamples, - presentationSamples, - ); - } - - assert.equal(acquisitionSamples.length, 2); - assert.ok(acquisitionSamples[0]?.acquisition); - assert.equal(acquisitionSamples[1]?.acquisition, undefined); - assert.equal(presentationSamples.length, 2); - assert.equal( - presentationSamples.every((sample) => sample.acquisition === undefined), - true, - ); -}); - -test('rejects a non-empty acquisition that is not bound to the prepared fixture', () => { - const acquisitionSamples: SpikeSample[] = []; - const presentationSamples: SpikeSample[] = []; - const captured: CapturedResponse = { - startedAt: '2026-09-01T00:00:00.000Z', - wallClockMs: 12, - stderr: '', - response: { - version: 1, - id: 'wrong-tree', - candidate: 'guest-simulator-framework-bridge', - ok: true, - acquisition: { - targetId: 'simulator:test', - targetGeneration: 'one', - nodes: [{ id: 'root', label: 'Another screen' }], - viewport: { kind: 'missing', reason: 'not-provided' }, - truncated: false, - residue: [], - }, - metrics: { - requestBytes: 1, - responseBytes: 2, - nodeCount: 1, - maxTraversalDepth: 0, - cpuMs: 1, - memoryBytes: 1, - durationMs: 12, - }, - }, - }; - appendSamples( - 'guest-simulator-framework-bridge', - 'warm', - 'quiet', - 0, - captured, - 0, - acquisitionSamples, - presentationSamples, - ); - assert.equal(acquisitionSamples[0]?.firstTree, 'unreadable'); -}); diff --git a/scripts/ios-ax-bridge-spike/sample-evidence.ts b/scripts/ios-ax-bridge-spike/sample-evidence.ts deleted file mode 100644 index 51f024ad9..000000000 --- a/scripts/ios-ax-bridge-spike/sample-evidence.ts +++ /dev/null @@ -1,157 +0,0 @@ -import { firstTreeStatus } from './protocol.ts'; -import { presentAcquisitionForMeasurement } from './presentation.ts'; -import { screenFixture } from '../ios-snapshot-benchmark/definitions.ts'; -import type { SpikeConfig } from './config.ts'; -import type { SpikeCell, SpikeRequest, SpikeResponse, SpikeSample } from './types.ts'; - -export type CapturedResponse = Readonly<{ - response: SpikeResponse; - stderr: string; - startedAt: string; - wallClockMs: number; -}>; - -export function appendSamples( - candidate: SpikeCell['candidate'], - state: SpikeCell['state'], - screen: SpikeCell['screen'], - index: number, - captured: CapturedResponse, - preparationMs: number, - acquisitionSamples: SpikeSample[], - presentationSamples: SpikeSample[], -): void { - const acquiredAt = new Date().toISOString(); - const status = fixtureBoundStatus(captured.response, screen); - const keepRawExemplar = - captured.response.acquisition !== undefined && - acquisitionSamples.every((sample) => sample.acquisition === undefined); - acquisitionSamples.push({ - index: index + 1, - candidate, - state, - screen, - startedAt: captured.startedAt, - finishedAt: acquiredAt, - operation: 'acquisition', - wallClockMs: captured.wallClockMs, - preparationMs, - firstLookMs: preparationMs + captured.wallClockMs, - firstTree: status, - ok: captured.response.ok, - ...(keepRawExemplar ? { acquisition: captured.response.acquisition } : {}), - metrics: captured.response.metrics, - ...(captured.stderr ? { stderr: captured.stderr } : {}), - ...(captured.response.failure ? { failure: captured.response.failure } : {}), - }); - presentationSamples.push(presentationSample(candidate, state, screen, index, captured, status)); -} - -function fixtureBoundStatus( - response: SpikeResponse, - screen: SpikeCell['screen'], -): SpikeSample['firstTree'] { - const status = firstTreeStatus(response); - if (status !== 'readable' || !response.acquisition) return status; - const fixture = screenFixture(screen); - const anchor = fixture.postSetupAnchorText ?? fixture.anchorText; - return response.acquisition.nodes.some((node) => - [node.label, node.value, node.identifier].some((value) => value?.includes(anchor)), - ) - ? 'readable' - : 'unreadable'; -} - -export function makeRequest( - config: SpikeConfig, - candidate: SpikeCell['candidate'], - state: SpikeCell['state'], - screen: SpikeCell['screen'], - index: number, - appPid?: number, -): SpikeRequest { - return { - version: 1, - id: `${candidate}:${state}:${screen}:${index + 1}`, - candidate, - simulatorUdid: config.udid, - state, - screen, - ...(candidate === 'guest-simulator-framework-bridge' && appPid !== undefined - ? { expectedTargetGeneration: `pid:${appPid}` } - : {}), - limits: config.limits, - }; -} - -function presentationSample( - candidate: SpikeCell['candidate'], - state: SpikeCell['state'], - screen: SpikeCell['screen'], - index: number, - captured: CapturedResponse, - status: SpikeSample['firstTree'], -): SpikeSample { - if (!captured.response.acquisition) - return failedPresentationSample(candidate, state, screen, index, captured, status); - return successfulPresentationSample(candidate, state, screen, index, captured, status); -} - -function failedPresentationSample( - candidate: SpikeCell['candidate'], - state: SpikeCell['state'], - screen: SpikeCell['screen'], - index: number, - captured: CapturedResponse, - status: SpikeSample['firstTree'], -): SpikeSample { - const startedAt = new Date().toISOString(); - return { - index: index + 1, - candidate, - state, - screen, - startedAt, - finishedAt: new Date().toISOString(), - operation: 'presentation', - wallClockMs: 0, - firstTree: status, - ok: false, - ...(captured.stderr ? { stderr: captured.stderr } : {}), - presentation: { - ok: false, - payloadBytes: 0, - nodeCount: 0, - durationMs: 0, - cpuMs: null, - memoryBytes: process.memoryUsage().rss, - }, - ...(captured.response.failure ? { failure: captured.response.failure } : {}), - }; -} - -function successfulPresentationSample( - candidate: SpikeCell['candidate'], - state: SpikeCell['state'], - screen: SpikeCell['screen'], - index: number, - captured: CapturedResponse, - status: SpikeSample['firstTree'], -): SpikeSample { - const startedAt = new Date().toISOString(); - const presented = presentAcquisitionForMeasurement(captured.response.acquisition!); - return { - index: index + 1, - candidate, - state, - screen, - startedAt, - finishedAt: new Date().toISOString(), - operation: 'presentation', - wallClockMs: presented.measurement.durationMs, - firstTree: status, - ok: true, - ...(captured.stderr ? { stderr: captured.stderr } : {}), - presentation: presented.measurement, - }; -} diff --git a/scripts/ios-ax-bridge-spike/targeted-evidence.ts b/scripts/ios-ax-bridge-spike/targeted-evidence.ts index 791abaf49..a31e3a15f 100644 --- a/scripts/ios-ax-bridge-spike/targeted-evidence.ts +++ b/scripts/ios-ax-bridge-spike/targeted-evidence.ts @@ -1,25 +1,15 @@ -import crypto from 'node:crypto'; import { execFileSync } from 'node:child_process'; -import fs from 'node:fs'; import os from 'node:os'; import { performance } from 'node:perf_hooks'; import { createGuestSimulatorFrameworkBridgeAdapter } from './guest-adapter.ts'; -import { createAdapterOptions } from './runner.ts'; import type { SpikeConfig } from './config.ts'; -import { - applyPrebootPreferences, - readSimulatorState, - restorePrebootPreferences, - simulatorPreferencePaths, -} from './preferences.ts'; -import { initialPreferenceEvidence } from './preference-experiment.ts'; import { bootSimulator, readRunningAppPids, shutdownSimulator, terminateApp, } from '../ios-snapshot-benchmark/lifecycle.ts'; -import type { PreferenceEvidence, SpikeRequest, SpikeResponse } from './types.ts'; +import type { SpikeRequest, SpikeResponse } from './types.ts'; import type { HostLoad, TargetedBootstrapSample, @@ -38,14 +28,7 @@ type GuestAdapter = ReturnType; }>; /** @@ -54,47 +37,20 @@ export type TargetedRunResult = Readonly<{ * Boundary: the Simulator is booted and the fixture app is relaunched for every bootstrap sample. * App readiness is *observed*, not assumed from a pid: a throwaway probe bridge polls until the new * app generation answers with a tree, then is torn down, so the timed sample starts with no resident - * bridge and a ready app. Automation mode is asserted per request by the guest; the preboot plist - * experiment runs only when `--apply-preferences` is passed. + * bridge and a ready app. Automation mode is asserted per request by the guest. */ export async function runTargetedEvidence(config: SpikeConfig): Promise { - const applied = config.applyPreferences ? applyPreferencesWhileShutdown(config.udid) : undefined; - let restored = false; - let bootstrap: readonly TargetedBootstrapSample[] = []; - let recovery: readonly TargetedRecoveryProbe[] = []; - const automationEnabledBefore = readAutomationEnabled(config.udid); + bootSimulator(config.udid); try { - bootSimulator(config.udid); - bootstrap = await runNonresidentBootstrap(config); - recovery = await runLiveRecovery(config, bootstrap); + const bootstrap = await runNonresidentBootstrap(config); + return { + bootstrap, + recovery: await runLiveRecovery(config, bootstrap), + host: hostLoad(), + }; } finally { - if (applied) { - shutdownSimulator(config.udid); - restored = restorePrebootPreferences(config.udid, applied.snapshots); - } else if (!config.keepDevice) { - shutdownSimulator(config.udid); - } + if (!config.keepDevice) shutdownSimulator(config.udid); } - const preferenceEvidence = applied - ? { ...applied.evidence, restored } - : initialPreferenceEvidence(config.udid); - return { - bootstrap, - recovery, - preferenceEvidence, - host: hostLoad(), - simulator: { - finalState: readSimulatorState(config.udid), - accessibilityPlistSha256: hashFile(simulatorPreferencePaths(config.udid)[0]!), - automationEnabledBefore, - automationEnabledAfter: readAutomationEnabled(config.udid), - }, - }; -} - -function applyPreferencesWhileShutdown(udid: string): ReturnType { - shutdownSimulator(udid); - return applyPrebootPreferences(udid); } async function runNonresidentBootstrap( @@ -114,7 +70,7 @@ async function captureBootstrap( const appPid = await relaunchApp(config.udid); const readiness = await awaitAppReadiness(config, appPid); await assertNoResidentGuest(); - const adapter = createGuestSimulatorFrameworkBridgeAdapter(createAdapterOptions(config)); + const adapter = createGuestSimulatorFrameworkBridgeAdapter(adapterOptions(config)); const started = performance.now(); const result = await adapter.acquireBatch([ request(config, `bootstrap-${index}`, { @@ -144,21 +100,16 @@ async function awaitAppReadiness( ): Promise<{ readinessMs: number; attempts: number }> { const probeLimits = { ...config.limits, maxDurationMs: READINESS_PROBE_REQUEST_MS }; const probe = createGuestSimulatorFrameworkBridgeAdapter({ - ...createAdapterOptions(config), + ...adapterOptions(config), limits: probeLimits, }); const started = performance.now(); let attempts = 0; try { - while (performance.now() - started < READINESS_DEADLINE_MS) { + for (;;) { + assertInsideReadinessDeadline(started, appPid); attempts += 1; - const result = await probe.acquireBatch([ - request(config, `readiness-${appPid}-${attempts}`, { - expectedTargetGeneration: `pid:${appPid}`, - limits: probeLimits, - }), - ]); - if (usableTree(result.responses[0] ?? failedResponse('readiness'))) { + if (await probeReadiness(config, probe, probeLimits, appPid, attempts)) { return { readinessMs: performance.now() - started, attempts }; } await sleep(READINESS_POLL_MS); @@ -166,6 +117,26 @@ async function awaitAppReadiness( } finally { await probe.close?.(); } +} + +async function probeReadiness( + config: SpikeConfig, + probe: GuestAdapter, + limits: SpikeConfig['limits'], + appPid: number, + attempts: number, +): Promise { + const result = await probe.acquireBatch([ + request(config, `readiness-${appPid}-${attempts}`, { + expectedTargetGeneration: `pid:${appPid}`, + limits, + }), + ]); + return usableTree(result.responses[0] ?? failedResponse('readiness')); +} + +function assertInsideReadinessDeadline(started: number, appPid: number): void { + if (performance.now() - started < READINESS_DEADLINE_MS) return; throw new Error(`App ${APP_ID} (pid ${appPid}) did not expose a readable tree in time.`); } @@ -182,19 +153,22 @@ async function assertNoResidentGuest(): Promise { } } -function residentGuestPids(): string { +function residentGuestPids(): number[] { return execFileSync( 'sh', ['-c', 'pgrep -f "SimulatorFrameworkBridge accessibility serve" || true'], { encoding: 'utf8' }, - ).trim(); + ) + .split('\n') + .map((value) => Number(value.trim())) + .filter((value) => Number.isSafeInteger(value) && value > 0); } async function runLiveRecovery( config: SpikeConfig, bootstrap: readonly TargetedBootstrapSample[], ): Promise { - const adapter = createGuestSimulatorFrameworkBridgeAdapter(createAdapterOptions(config)); + const adapter = createGuestSimulatorFrameworkBridgeAdapter(adapterOptions(config)); try { const probes: TargetedRecoveryProbe[] = []; await adapter.acquireBatch([request(config, 'recovery-prime')]); @@ -340,34 +314,17 @@ async function relaunchApp(udid: string): Promise { throw new Error(`App ${APP_ID} did not start on ${udid}.`); } -function readAutomationEnabled(udid: string): unknown { - try { - const output = execFileSync( - '/usr/libexec/PlistBuddy', - ['-c', 'Print :AutomationEnabled', simulatorPreferencePaths(udid)[0]!], - { encoding: 'utf8', stdio: ['ignore', 'pipe', 'ignore'] }, - ).trim(); - return output === 'true' ? true : output === 'false' ? false : output; - } catch { - return null; - } +function adapterOptions(config: SpikeConfig) { + return { guestBridge: config.guestBridge, limits: config.limits }; } -export function hostLoad(): HostLoad { +function hostLoad(): HostLoad { return { loadAverage1m: Number(os.loadavg()[0]?.toFixed(2)), cpuCores: os.cpus().length, }; } -function hashFile(filePath: string): string | null { - try { - return crypto.createHash('sha256').update(fs.readFileSync(filePath)).digest('hex'); - } catch { - return null; - } -} - function sleep(ms: number): Promise { return new Promise((resolve) => setTimeout(resolve, ms)); } diff --git a/scripts/ios-ax-bridge-spike/targeted-run.ts b/scripts/ios-ax-bridge-spike/targeted-run.ts index a19b4eed8..6ffae26e7 100644 --- a/scripts/ios-ax-bridge-spike/targeted-run.ts +++ b/scripts/ios-ax-bridge-spike/targeted-run.ts @@ -15,8 +15,6 @@ import { TARGETED_SCHEMA_VERSION, type TargetedRawArtifact } from './corrected-t import { readGitRevision, readTarget, readToolchain } from '../ios-snapshot-benchmark/host.ts'; const SOURCE = 'docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz'; -const SUPERSEDED_TARGETED = - 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted-python-prototype.json.gz'; const TARGETED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz'; const CORRECTED = 'docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz'; @@ -26,13 +24,17 @@ if (process.argv[1] && path.resolve(process.argv[1]) === fileURLToPath(import.me async function main(argv: readonly string[]): Promise { const config = parseConfig(argv); + const revision = readGitRevision(config.repoRoot); + if (revision.dirty) { + throw new Error('Targeted bridge evidence must be captured from a clean Git revision.'); + } const source = readSpikeReport(SOURCE); const evidence = await runTargetedEvidence(config); const target = readTarget(config.udid, 'com.callstack.agentdevicelab'); const artifact: TargetedRawArtifact = { schemaVersion: TARGETED_SCHEMA_VERSION, generatedAt: new Date().toISOString(), - revision: readGitRevision(config.repoRoot), + revision, command: 'pnpm bench:ios-ax-bridge:targeted -- --udid --guest-bridge /Resources/SimulatorFrameworkBridge', sourceArtifact: { @@ -40,19 +42,11 @@ async function main(argv: readonly string[]): Promise { revision: source.revision, hostClient: String((source.guestMechanism as { client?: unknown }).client ?? 'unknown'), }, - ...(fs.existsSync(SUPERSEDED_TARGETED) - ? { - supersededTargetedArtifact: { - path: SUPERSEDED_TARGETED, - hostClient: 'persistent-in-repository-reader (idb_companion + Python idb client)', - }, - } - : {}), target: { udid: target.udid, name: target.name, runtime: target.runtime }, toolchain: readToolchain(), host: evidence.host, guestMechanism: GUEST_MECHANISM_EVIDENCE, - preferenceEvidence: evidence.preferenceEvidence, + limits: config.limits, config: { states: ['warm', 'relaunch'], screens: ['quiet', 'list', 'nested-scroll', 'alert', 'system-surface', 'xctest-stress'], @@ -61,7 +55,6 @@ async function main(argv: readonly string[]): Promise { }, bootstrap: evidence.bootstrap, recovery: evidence.recovery, - simulator: evidence.simulator, }; fs.writeFileSync(TARGETED, gzipSync(`${JSON.stringify(artifact)}\n`, { level: 9 })); writeCorrectedReport( diff --git a/scripts/ios-ax-bridge-spike/types.ts b/scripts/ios-ax-bridge-spike/types.ts index 4e2c8bc2a..c601117a7 100644 --- a/scripts/ios-ax-bridge-spike/types.ts +++ b/scripts/ios-ax-bridge-spike/types.ts @@ -2,12 +2,7 @@ import type { IosAcquisitionResidue, IosViewportEvidence, } from '@agent-device/contracts/ios-snapshot'; -import type { DeepButtonEvidence, LocalState, ScreenId } from '../ios-snapshot-benchmark/types.ts'; - -export const SPIKE_SCHEMA_VERSION = 'ios-simulator-ax-bridge-spike.v1' as const; -export const SPIKE_ISSUE = '#2192' as const; -export const SPIKE_PARENT = '#2188' as const; -export const SPIKE_PREREQUISITES = ['#2189', '#2190'] as const; +import type { LocalState, ScreenId } from '../ios-snapshot-benchmark/types.ts'; export type CandidateId = 'guest-simulator-framework-bridge' | 'xctest-control'; @@ -27,12 +22,7 @@ export type SpikeFailure = Readonly<{ observedTargetGeneration?: string; }>; -export type SpikeRect = Readonly<{ - x: number; - y: number; - width: number; - height: number; -}>; +export type SpikeRect = Readonly<{ x: number; y: number; width: number; height: number }>; export type RawAcquiredNode = Readonly<{ id: string; @@ -99,50 +89,23 @@ export type SpikeResponse = Readonly<{ metrics: ResourceMetrics; }>; -export type PresentationMeasurement = Readonly<{ - ok: boolean; - payloadBytes: number; - nodeCount: number; - durationMs: number; - cpuMs: number | null; - memoryBytes: number | null; -}>; - export type SpikeSample = Readonly<{ - index: number; - candidate: CandidateId; - state: LocalState; - screen: ScreenId; - startedAt: string; - finishedAt: string; - operation: 'acquisition' | 'presentation'; wallClockMs: number; preparationMs?: number; firstLookMs?: number; firstTree: 'readable' | 'empty' | 'unreadable' | 'not-observed'; ok: boolean; - stderr?: string; acquisition?: RawAcquisition; - metrics?: ResourceMetrics; - presentation?: PresentationMeasurement; - failure?: SpikeFailure; -}>; - -export type ProtocolProbeLog = Readonly<{ - candidate: Exclude; - id: string; - stderr: string; }>; export type SpikeCell = Readonly<{ candidate: CandidateId; state: LocalState; screen: ScreenId; - sampleMinimum: number; acquisitionSamples: readonly SpikeSample[]; - presentationSamples: readonly SpikeSample[]; }>; +export type Revision = Readonly<{ commit: string; branch: string; dirty: boolean }>; export type Toolchain = Readonly<{ node: string; pnpm: string; @@ -151,7 +114,7 @@ export type Toolchain = Readonly<{ os: string; arch: string; }>; - +export type Target = Readonly<{ udid: string; name: string; runtime: string }>; export type GuestMechanismEvidence = Readonly<{ implementation: 'idb'; release: 'v1.5.2'; @@ -164,74 +127,11 @@ export type GuestMechanismEvidence = Readonly<{ client: 'node-direct-socket'; }>; -export type Target = Readonly<{ - udid: string; - name: string; - runtime: string; -}>; - -export type PlistKeyChange = Readonly<{ - key: string; - before?: unknown; - after?: unknown; -}>; - -export type PlistDiff = Readonly<{ - path: string; - existedBefore: boolean; - beforeSha256: string | null; - afterSha256: string | null; - changes: readonly PlistKeyChange[]; -}>; - -export type PreferenceEvidence = Readonly<{ - applied: boolean; - restored: boolean; - fixtureLaunchCompatible: boolean | null; - simulatorStateBefore: string; - diffs: readonly PlistDiff[]; -}>; - -export type LifecycleEvidence = Readonly<{ - source: 'framed-protocol-fixture'; - crash: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; - timeout: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; - cancellation: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; - staleGeneration: Readonly<{ failure: SpikeFailureKind; recovered: boolean }>; -}>; - export type SpikeReport = Readonly<{ - schemaVersion: typeof SPIKE_SCHEMA_VERSION; - issue: typeof SPIKE_ISSUE; - parent: typeof SPIKE_PARENT; - prerequisites: readonly string[]; - generatedAt: string; - revision: Readonly<{ commit: string; branch: string; dirty: boolean }>; - toolchain: Toolchain; + revision: Revision; guestMechanism: GuestMechanismEvidence; target: Target; - limits: ResourceLimits; - status: 'completed' | 'stopped'; - corpusCoverage: 'full' | 'decisive-early-stop'; - candidates: readonly CandidateId[]; - config: Readonly<{ - states: readonly LocalState[]; - screens: readonly ScreenId[]; - requestedSamples: number; - }>; - protocolProbes: readonly SpikeResponse[]; - protocolProbeLogs: readonly ProtocolProbeLog[]; - preferenceEvidence: PreferenceEvidence; - lifecycle: LifecycleEvidence; - positiveControl: DeepButtonEvidence; + toolchain: Toolchain; cells: readonly SpikeCell[]; - decision: 'GO' | 'NO-GO'; decisionReasons: readonly string[]; - stretchFindings: readonly string[]; - nextInterface: string; - stop?: Readonly<{ - category: 'infrastructure' | 'configuration'; - message: string; - command?: string; - }>; }>; diff --git a/scripts/ios-snapshot-benchmark/cell-admission.ts b/scripts/ios-snapshot-benchmark/cell-admission.ts index dbe0e29bd..7733a26b6 100644 --- a/scripts/ios-snapshot-benchmark/cell-admission.ts +++ b/scripts/ios-snapshot-benchmark/cell-admission.ts @@ -6,8 +6,6 @@ import { openFixture, pressFixtureTarget, scrollFixtureSetup, - snapshotHasIdentifier, - snapshotHasAnchor, snapshotFixture, type CliContext, type CliResult, @@ -97,55 +95,14 @@ export async function admitSuccessfulSample( return await admitNonWarmSample(context, options, previousAppPid); } -export function admitStableWarmSample( - options: CellAdmissionOptions, - previousAppPid: number, -): number { - assertReadyState(options); - const appPid = assertAppRunning(options.udid, options.fixture.app); - if (appPid !== previousAppPid) { - throw new BenchmarkCellAdmissionError( - 'cell-state', - `Warm cell ${options.fixture.id} changed app PID from ${String(previousAppPid)} to ${String(appPid)}.`, - 'agent-device batch --steps snapshot', - ); - } - return appPid; -} - export function cleanupSuccessfulSample(context: CliContext, options: CellAdmissionOptions): void { if (options.state !== 'relaunch' || options.fixture.setupAction !== 'open-alert') return; - const dismissed = pressFixtureTarget(context, 'role="button" label="Cancel"'); + const dismissed = pressFixtureTarget(context, 'label="Cancel"'); requireFixtureOperationSuccess( - fixtureOperationFromCli(dismissed, 'agent-device click role="button" label="Cancel"'), + fixtureOperationFromCli(dismissed, 'agent-device click label="Cancel"'), `${options.fixture.id} sample cleanup`, 'cell-state', ); - verifyAlertCleanup(context, options); -} - -function verifyAlertCleanup(context: CliContext, options: CellAdmissionOptions): void { - const observed = snapshotFixture(context); - requireFixtureOperationSuccess( - fixtureOperationFromCli(observed, 'agent-device batch --steps snapshot'), - `${options.fixture.id} sample cleanup verification`, - 'cell-state', - ); - if (alertCleanupRestored(observed.payload, options.fixture)) return; - throw new BenchmarkCellAdmissionError( - 'cell-state', - `Fixture ${options.fixture.id} cleanup did not restore its base surface.`, - 'agent-device batch --steps snapshot', - ); -} - -function alertCleanupRestored(payload: unknown, fixture: ScreenFixture): boolean { - return ( - fixture.cleanupAnchorIdentifier !== undefined && - snapshotHasIdentifier(payload, fixture.cleanupAnchorIdentifier) && - (fixture.postSetupAnchorText === undefined || - !snapshotHasAnchor(payload, fixture.postSetupAnchorText)) - ); } async function admitNonWarmSample( diff --git a/scripts/ios-snapshot-benchmark/command.test.ts b/scripts/ios-snapshot-benchmark/command.test.ts index cabfc8172..3a3845092 100644 --- a/scripts/ios-snapshot-benchmark/command.test.ts +++ b/scripts/ios-snapshot-benchmark/command.test.ts @@ -5,7 +5,6 @@ import { firstTreeStatus, hasDeepLinkConfirmation, snapshotHasAnchor, - snapshotHasIdentifier, } from './command.ts'; test('classifies typed reasons without using error message text', () => { @@ -72,24 +71,6 @@ test('admits only an exact semantic anchor from snapshot node fields', () => { ); }); -test('admits only an exact snapshot identifier', () => { - const payload = { - data: { - results: [ - { - data: { - snapshot: { - nodes: [{ identifier: 'automation-open-alert' }, { identifier: 'other-control' }], - }, - }, - }, - ], - }, - }; - assert.equal(snapshotHasIdentifier(payload, 'automation-open-alert'), true); - assert.equal(snapshotHasIdentifier(payload, 'automation-open'), false); -}); - test('recognizes the first-install deep-link confirmation as a setup prompt', () => { assert.equal( hasDeepLinkConfirmation({ diff --git a/scripts/ios-snapshot-benchmark/command.ts b/scripts/ios-snapshot-benchmark/command.ts index fbabc3af3..043351b94 100644 --- a/scripts/ios-snapshot-benchmark/command.ts +++ b/scripts/ios-snapshot-benchmark/command.ts @@ -130,10 +130,6 @@ export function snapshotHasAnchor(payload: unknown, anchorText: string): boolean }); } -export function snapshotHasIdentifier(payload: unknown, identifier: string): boolean { - return snapshotNodes(payload).some((record) => record.identifier === identifier); -} - export function hasDeepLinkConfirmation(payload: unknown): boolean { return snapshotNodes(payload).some((record) => { const role = readString(record.role); diff --git a/scripts/ios-snapshot-benchmark/definitions.test.ts b/scripts/ios-snapshot-benchmark/definitions.test.ts index 7a47f1d38..31370fa9b 100644 --- a/scripts/ios-snapshot-benchmark/definitions.test.ts +++ b/scripts/ios-snapshot-benchmark/definitions.test.ts @@ -6,7 +6,6 @@ import { parseSampleCount, parseScreenIds, sampleMinimumForState, - screenFixture, } from './definitions.ts'; test('parses the versioned state and screen cells', () => { @@ -15,7 +14,6 @@ test('parses the versioned state and screen cells', () => { assert.deepEqual(parseRtt('80,0,20,0'), [80, 0, 20]); assert.equal(sampleMinimumForState('cold-cold'), 10); assert.equal(sampleMinimumForState('relaunch'), 20); - assert.equal(screenFixture('alert').cleanupAnchorIdentifier, 'automation-open-alert'); }); test('enforces the warm and cold sample minima', () => { diff --git a/scripts/ios-snapshot-benchmark/definitions.ts b/scripts/ios-snapshot-benchmark/definitions.ts index 273c003ef..a96d04a2c 100644 --- a/scripts/ios-snapshot-benchmark/definitions.ts +++ b/scripts/ios-snapshot-benchmark/definitions.ts @@ -44,7 +44,6 @@ const SCREEN_FIXTURES: readonly ScreenFixture[] = [ launchUrl: `${FIXTURE_SCHEME}/automation`, anchorText: 'Automation lab', postSetupAnchorText: 'Automation confirmation', - cleanupAnchorIdentifier: 'automation-open-alert', setupAction: 'open-alert', }, { diff --git a/scripts/ios-snapshot-benchmark/fixture-admission.test.ts b/scripts/ios-snapshot-benchmark/fixture-admission.test.ts index 3ef07826c..cc328e75f 100644 --- a/scripts/ios-snapshot-benchmark/fixture-admission.test.ts +++ b/scripts/ios-snapshot-benchmark/fixture-admission.test.ts @@ -15,7 +15,6 @@ const alertFixture: ScreenFixture = { app: 'com.callstack.agentdevicelab', anchorText: 'Automation lab', postSetupAnchorText: 'Automation confirmation', - cleanupAnchorIdentifier: 'automation-open-alert', setupAction: 'open-alert', }; diff --git a/scripts/ios-snapshot-benchmark/types.ts b/scripts/ios-snapshot-benchmark/types.ts index dc1fd5e94..e8c4d1119 100644 --- a/scripts/ios-snapshot-benchmark/types.ts +++ b/scripts/ios-snapshot-benchmark/types.ts @@ -38,7 +38,6 @@ export type ScreenFixture = { launchUrl?: string; anchorText: string; postSetupAnchorText?: string; - cleanupAnchorIdentifier?: string; setupAction?: 'open-alert'; }; From 35d5b7b547b04556e0e1b741fd9714c49b37b384 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Pierzcha=C5=82a?= Date: Thu, 3 Sep 2026 20:40:44 +0200 Subject: [PATCH 10/13] docs: publish Simulator bridge evidence out of tree --- ...mulator-ax-bridge-2026-09-01-final.json.gz | Bin 156702 -> 0 bytes ...tor-ax-bridge-2026-09-02-corrected.json.gz | Bin 10564 -> 0 bytes ...imulator-ax-bridge-2026-09-02-corrected.md | 65 +++++++++--------- ...ator-ax-bridge-2026-09-02-targeted.json.gz | Bin 10943 -> 0 bytes scripts/ios-ax-bridge-spike/README.md | 13 +++- 5 files changed, 46 insertions(+), 32 deletions(-) delete mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz delete mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-02-corrected.json.gz delete mode 100644 docs/evidence/ios-simulator-ax-bridge-2026-09-02-targeted.json.gz diff --git a/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz b/docs/evidence/ios-simulator-ax-bridge-2026-09-01-final.json.gz deleted file mode 100644 index d6f9347001e64e77546e7842ef70bf75c9736707..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 156702 zcmaI6Q*b3rxHTLn6DJc+Y}+&(rLy*`_v$M+^vz+d#yVj|_H5#-H?G*?cYm4LtrwOV$R$CD8HUKz z5$oGIeJV+U-_Pwa)5~ZN+E*m!(-(Bfn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