# Independent native review: Aurora / Relay

Result: **24 native SUnit tests pass, zero failures and zero errors**. No unresolved issue was found in the reviewed scope.

Reviewed source: `sources/endless-runner-final.st`  
SHA-256: `e38cba8ed7d7735cb3990af360720982fecc16a03e69d436b208bdaa8f61e5c0`  
Independent suite: `sources/endless-runner-independent-tests.st`  
Suite SHA-256: `d9b3913a6a77c9f7a4bad027f6409d94da438254b0e6f7e88b66595068331efd`

## Evidence

- Squeak 6.1-23976 64-bit ran from an independent pristine image and changes copy. The final run used the bundle's absolute `squeak.sh` launcher with `-vm-display-null -vm-sound-null`. Production source was never edited by this reviewer.
- All keyboard and sidebar-mouse regressions use native `KeyboardEvent` / `MouseButtonEvent` objects dispatched through `World activeHand`. The null-display VM does not populate a platform key map, so the suite temporarily installs Squeak's own X11 virtual-key dictionary and restores it afterward.
- The long legal-input route ran **12,000 native model ticks / 480 simulated seconds**, covering **9,497.614 m**, **678 sparks**, and **149 lane switches**. It reached the production maximum **22 m/s**. Live objects peaked at **24**. Pause, game over, frozen terminal state, restart, and resumed input were checked. Separate native-event cases clear a hurdle by jumping and an arch by sliding, and confirm standing contact with an arch crashes.
- An additional maximum-speed route ran **12 seeds × 1,600 ticks = 19,200 ticks**, covering **16,896 m**. Every route survived using only native lane-key events. A test-only subclass fixes speed at the production maximum; player coordinates and obstacle positions are not altered during route traversal.
- Deterministic generation was compared over 1,000 rows. Fairness checks covered **20,000 rows across 100 seeds**, checking two occupied lanes, an empty safe lane, spark alignment, and adjacent safe-lane transitions.
- A separate actual-clock scheduler test observed **10 game ticks in 440 ms**. It checked exactly one scheduled entry after repeated synchronization, no stepping while paused, one entry after resume/reopen, and none after close or game over. `wantsStepsIn:` is false.
- Swept contact was stressed with **3,000 m/s** travel over a 10 ms slice, crossing walls, hurdles, arches, and sparks without tunneling. Tests cover lateral crossing, longitudinal misses, jump/slide clearance, one-time collection, and both arch support posts.
- Projection tests cover behind-camera points, zero depth, both near/far boundaries, complete-object near-plane culling, sorted draw order, and native render execution.
- Input checks cover repeat suppression, movement clamps, arrows, WASD aliases, held restart suppression, focus loss clearing keys, sidebar focus recovery, mutually exclusive jump/slide input before takeoff, and fixed-window placement within a 1024 × 749 World.

## Reachability argument

Every obstacle row leaves one whole lane open. Consecutive open lanes move by at most one lane. A lane change spans 2.5 m at 18 m/s, about 0.139 seconds, or at most 0.16 seconds when initiated on a 40 ms game tick. Even after allowing 0.8 m of contact depth at each adjacent row, the 28 m row spacing leaves `(28 - 1.6) / 22 = 1.2 seconds` to change lanes at maximum speed. The guaranteed route therefore has substantial movement margin; jump or slide is optional on that route.

The rendered arch bar and supports now have matching separate swept collision boxes. A centered sliding runner fits between the support posts; off-center support contacts are tested symmetrically. Adjacent open lanes remain outside the expanded support collision boxes.

## Findings fixed during review

1. Starting through the sidebar after focus loss briefly entered running and immediately paused on the next step. Starting/resuming now restores scene focus, verified with native mouse events.
2. The initial random window placement put the right edge beyond a 1024 × 749 World. The window now opens at the World origin plus 10@10; the entire window and Restart button fit.

3. Jump then slide in one input batch could activate both postures before the first physics tick. Sliding now requires zero vertical speed. Native-event tests verify both jump → slide and slide → jump ordering.

## Reproduce and limits

The suite can be filed into Squeak after the final game source and run with `ARIndependentTests suite run`. `build/run_independent.py` runs the isolated headless copy and writes `tests/independent-suite.txt` plus `tests/independent-review.json`.

The long run advances the native model faster than wall time. Actual scheduler cadence is tested separately. This review did not exercise a physical keyboard, a live operating-system window manager, or hardware-generated events. These limits do not weaken the native model, Morphic event dispatch, or scheduler assertions, but should be retained when describing the evidence.
