Playfield coverage
Browser sweep
The WASM sweep has its own run directory and results. Native passes do not count toward browser coverage. Build the WASM dependencies and unpack runtime assets using the developer guide, then run:
python3 tools/client/build_browser_sweep.py
python3 tools/client/sweep_browser.py
Open http://127.0.0.1:8082/wasm/sweep.html in a browser with the required
WASM/OffscreenCanvas support and press Start WASM sweep. Leave that tab open.
The controller reserves ports 7520, 7521, 8082 and 8083 and owns an isolated
character, server and settings directory. It needs the desktop's usual
DISPLAY/XAUTHORITY environment for its display-awake inhibitor.
The test build adds a small presentation/capture adapter to the production WASM objects. It reports actual game presentations once a second and reads back the rendered framebuffer only when an arrival test finishes. It does not publish over the committed client. The run keeps its own module and build digest.
Every scene waits for CharacterReady, then holds left-arrow for 0.6 seconds
and W for one second, after a one-second settling delay. Inputs pass through
the browser's canvas keyboard events. The controller records the server's
position and rotation before and after input. At least ten seconds and 30
presentations after readiness are required before capturing a PNG. A browser
worker error, 180-second timeout or unintended zone crossing is recorded as a
failure and retried with a fresh iframe/client. After the transition pass, each
scene is tested with a fresh client. Screenshots still require visual review;
these are arrival smoke tests, not exhaustive exploration of each playfield.
Results are appended to local/playfield-sweep/wasm-sweep-*/results.jsonl,
alongside per-scene logs and screenshots. Stop with Ctrl-C and close the test
tab. Resume by passing that run directory to sweep_browser.py, reopening its
page and pressing Start. Completed rows are retained. Resumption uses the
run's saved module and starts a fresh client at the first unfinished playfield;
it does not preserve the previous browser's cache or memory-growth history.
Native sweep
The native sweep uses an isolated character and server, exercises the real teleport/reconnect protocol, and then repeats each scene with a fresh client. It retains logs, screenshots, frame counts, loading times and resident memory. A transition failure is also retried immediately on a fresh client to separate arrival failures from state retained across zones.
Build the native client and unpack the runtime assets first (running the Go
server once does the latter). From the repository root, with an active X11
display and its normal DISPLAY/XAUTHORITY environment:
make -C client -f Makefile.linux -j8
python3 tools/client/sweep_playfields.py
Close other native AO instances before starting. The client's single-instance
check otherwise opens an unimplemented MessageBoxA path and exits before
loading a scene; that startup failure is not playfield-specific.
The sweep needs Go, a C compiler, SDL2/OpenGL development libraries, Python 3.11
or newer with Pillow, gnome-session-inhibit, and xset. It reserves ports
7520, 7521 and 8082. It does not use the user's server or world database.
Preferences and diagnostics are private to the run; large immutable assets
are shared. Results remain under local/playfield-sweep/playfield-sweep-*.
Ctrl-C stops the owned processes and keeps completed results.
Resume a stopped run by passing its directory:
python3 tools/client/sweep_playfields.py local/playfield-sweep/playfield-sweep-20261016-165029
Resumption requires the same client executable digest and playfield catalog.
It preserves logs and completed results, records the current source state in
resume-*.json, and reloads the preceding scene before the next transition.
Each resumed client starts with fresh caches: its PID and run_started identify
that boundary. A resumed tour is not one uninterrupted memory-growth test.
catalog.json reconciles server entries with actual 14.9.1 database definitions.
There are 370 definitions: 363 scenes in the sweep, six dependency/developer
entries, and one empty bunker definition (1673). The server catalog also lists
25 names without definitions in this release; these are excluded explicitly.
The four added arrivals (124, 641, 706 and 4704) use district centres from the
release database. The arenas use their named Arena districts rather than the
first district, which can be empty terrain or the wrong side of a wall.
results.jsonl is appended after each scene. ready-and-rendering requires the
client's CharacterReady packet followed by at least ten seconds and 30 rendered
frames. Socket registration alone is insufficient: it precedes scene loading.
The isolated server log supplies this packet evidence; character_ready: true
records that the stricter check was used.
New arrivals wait one second after readiness, then replay a 0.6-second left-arrow
hold followed by a one-second forward (W) hold through the client's normal SDL
keyboard event handler. The delay gives the client time to finish arrival
handling before the first key press.
The result records delivery times and live server position/rotation before and
after the sequence. movement_observed requires horizontal displacement;
rotation_observed compares orientation while treating opposite quaternion
signs as equivalent. Walls, dialogs and invalid arrivals can prevent movement,
so these observations are separate from loading/rendering status. An input
sequence that crosses a zone boundary is recorded as zoned-during-movement
and retried with a fresh client. Completed rows are not revisited to add input;
resume warmups also omit the sequence. The scheduled cold-launch pass uses it.
These checks establish loading/presentation liveness, not complete visual or
gameplay correctness.
Screenshots need review, and the FPS values at these catalog arrivals are not
comparable to the fixed Bronto Burger/Lush Fields performance cameras. A build
running concurrently also makes these unsuitable as performance benchmarks.
build.json records the source revision, working diff and executable digest.
The first run found a common indoor failure in vertex-buffer Optimize, followed
by unsupported diffuse/specular material-source states. These shared adapter
paths have regression tests for state, buffer contents and rendered pixels.
After the fixes, Camelot, Condemned Subway, Temple of Three Winds, Fixer Grid and
the regular Grid loaded and rendered in sequence on native Linux.
The browser graphics regression also passed, with all 19,421,184 captured bytes
identical to native Linux. The Windows x86 test source passed a syntax check;
it has not been executed on Windows here.
Screenshot review found that the regular Grid arrival appears below its floor, and the Booster Shop camera is close to geometry. These are not visual passes.
The full browser build rendered Camelot, then reconnected through the Subway,
Temple of Three Winds, Tir Arena and Omni Entertainment Arena in sequence.
Inventory and the world map rendered after zoning. The corrected arena centres
show the arena interiors. Screenshots and the module digest are retained in
local/performance/browser-indoor/ and adjacent browser-indoor-*.png files.
This is representative browser coverage, not a complete browser sweep or
deterministic cross-platform movement replay.
The first 119 native arrivals completed without another crash after the fixes.
Those rows started their observation at socket registration. A server-log audit
confirmed every arrival subsequently sent CharacterReady, with at least six
seconds remaining before its capture; they do not establish the stricter
ten-second observation after loading. The subsequent cold pass will use that
stricter criterion for every scene.
Checkpoint resumption was also exercised successfully. The complete native
sweep and cold-launch pass are still in progress in
local/playfield-sweep/playfield-sweep-20261016-165029/.
The later checkpoint reached 200 distinct transition arrivals without another
crash. This includes separate resumed client lifetimes, not a continuous
200-zone memory test. The full fresh-client pass remains outstanding.
Browser coverage must be run separately:
paged memory, WebGL, asset fetching and asynchronous WebSocket cleanup can fail
independently. A single arrival also does not cover the whole playfield. Follow-up
coverage should turn the camera, move through authored districts, exercise
inventory/map and audio, and repeat a bounded zoning loop to detect resource growth.