Skip to content

Commit 2ac55a1

Browse files
committed
test(ios): add a shared AX recovery conformance fixture with a host adapter
Add contracts/fixtures/ios-ax-recovery-conformance.json, a shared executable recovery contract for the host AX bridge and the XCTest runner's private AX bridge. Every expectation names the outcome, the native request accounting, and the delivered tree as a canonical preorder signature with its retained node count, so a producer that drops, duplicates, reorders, or re-parents nodes cannot pass as complete. The fixture records per-producer expectations and documents the intentional differences (depth vocabulary, ladders, frontier evidence, budgets, ownership and deadlines, hint lifetime). The host adapter is an Objective-C driver over captureSnapshotTree, compiled and run per case by native-runtime.test.ts. The runner adapter and the accepted-depth memory characterization follow in a stacked PR.
1 parent 7c84acf commit 2ac55a1

5 files changed

Lines changed: 904 additions & 0 deletions

File tree

‎apple/snapshot-bridge/README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,17 @@ use non-launch failure codes, so the route falls back without launch re-polling.
6363
At each native fragment boundary, an absent or invalid child count means unknown
6464
completeness and fails closed. Natural leaves above that boundary need no
6565
continuation evidence. Unchanged native dictionaries and child arrays are reused.
66+
67+
## Recovery conformance
68+
69+
`contracts/fixtures/ios-ax-recovery-conformance.json` is the shared, executable
70+
recovery contract for this bridge and the XCTest runner's private AX bridge.
71+
`packages/platform-apple/src/snapshot-source/fixtures/recovery-conformance.m`
72+
replays each case through `captureSnapshotTree`; the runner replays the same
73+
cases through its own bridge in
74+
`RunnerTests+AXRecoveryConformanceTests.swift`. Each expectation names the
75+
outcome, the native request accounting, and the delivered tree as a canonical
76+
preorder signature with its retained node count, so a producer that drops,
77+
duplicates, reorders, or re-parents nodes cannot pass as complete. The fixture
78+
records each producer's expectation and documents the intentional differences
79+
(depth vocabulary, ladders, completeness evidence, budgets, hint lifetime).

0 commit comments

Comments
 (0)