commit f5636457819f9e64860d39a88e4e491baec45eac
parent 23c0cc3adcc83bc5a3bdfe24f0e0074d1c31ee7a
Author: anon <anon@example.com>
Date: Mon, 2 Nov 2026 19:59:41 +0000
Cover original Omni courtyard scanner stair access
Diffstat:
4 files changed, 169 insertions(+), 2 deletions(-)
diff --git a/TODO.md b/TODO.md
@@ -1155,10 +1155,20 @@ Historical outdoor give-up timing and obstacle navigation remain open.
Clan/ICC pairs now pass controlled level-ten native saving, fatal combat, saved return and
exact reclaim collection, including page/cold recovery. Connected earned
level-ten Omni travel, saved return and collection now pass; broader connected
- faction travel/recovery and original courtyard access remain open. See
+ faction travel/recovery remains open. A focused controlled native stair check
+ now resolves the original Omni courtyard approach gap: both Solitus and the
+ report's Atrox body climb the authored entrance, cross its landing and save at
+ the first scanner with matching server poses. Earlier approaches crossed
+ steep side faces or turned below the landing; no collision change is needed.
+ See [courtyard access](docs/insurance.md#original-omni-courtyard-stair-access),
[street insurance](docs/insurance.md#street-level-omni-pair) and
[Clan/ICC coverage](docs/insurance.md#clan-and-icc-scanners).
Unsaved training return must not imply that training contains a reclaim booth.
+- [x] [P0] Resolve the reported blocked Omni courtyard scanner approach with a focused
+ native regression. Start beside the original stair entrance, use real walking
+ input, check ascent/landing heights against server state, then pick and use
+ scanner 51005:3221357249. The controlled fixture matches the original report's
+ Atrox appearance; it is not earned faction-progression evidence.
- [x] [P1] Explain scanner refusal while reclaim items remain. Native FeedbackIIR
code 64 now follows the failure acknowledgement only for otherwise valid
scanner uses blocked by reclaim. Go tests cover pending/available items,
diff --git a/docs/insurance.md b/docs/insurance.md
@@ -74,7 +74,8 @@ native walking, selected its actual 51005 identity and saved cumulative XP 20875
All 30 owned items, 803 credits and earned skills remained unchanged. The preceding
raised-courtyard approach attempts stopped at authored collision faces in both
native and server observations; they do not establish that every original
-approach is blocked. Original courtyard access and Clan/ICC coverage remain open.
+approach is blocked. The focused stair check below now resolves courtyard access.
+Broader connected faction progression remains open.
The actual adjacent reclaim accepts native Use, opens an empty private window
and closes it again. Both page reconnects retain the same scanner, insured XP,
@@ -103,6 +104,43 @@ collection of the same 24 instances. A save request with reclaim remaining
fails safely; saving succeeds after collection. Its missing refusal explanation
remains a separate TODO.
+## Original Omni courtyard stair access
+
+The earlier failed west route moved east from `[898,572]` toward `[909,572]`.
+It hit the stair's steep side rather than entering from its bottom. The original
+invisible collision tree in resource `1000013:46203322` contains a ramp rising
+from roughly Y16.39 at Z575.95 to Y20.03 at Z567.91, between X900.4 and X904.9.
+Its side rises about 3.64 metres in 0.8 horizontal metres; the walking entrance
+rises the same amount over about eight metres. The adjacent landing is Y20.41.
+
+`TestBrowserCourtyardInsurance` starts a controlled level-one Atrox at
+`[902.5,16.41,579]`, facing decreasing Z. Its race/fatness/breed/sex, height and head
+match the earlier report's body; stats and health are ordinary breed defaults.
+It walks through `[902.5,565.5]`, `[909,565.5]` and `[915,575]`.
+Finishing the ascent before turning avoids the side face and
+the railing/pillar beside the landing. No jump, flight, collision bypass or
+runtime position edit is used.
+
+The native checkpoints reached Y20.0377, Y20.4211 and Y20.2103. Each agrees
+with authoritative movement within 0.5 metres in 3D. Actual native picking and
+right-click Use target `51005:3221357249`; CharacterAction79 displays the
+insured message and the server retains that scanner. Screenshots show the
+character on the stair/landing and beside the original scanner. No native/page
+errors occurred. A separate Solitus check also reached and used it.
+
+The Atrox check passed in 65.21 seconds; evidence is under
+`local/courtyard-access/20261102-115634/`. Original collision extraction, payload
+hashes and an independent packet/pose verifier are in `local/courtyard-access/`.
+The initial shortened-ramp waypoint turned below the landing and correctly
+stopped at its higher face; its trace is retained separately. This resolves a
+specific approach report without changing world geometry or movement behavior.
+The checkpoint is controlled, not an earned city/faction travel or death run.
+Other courtyard entrances and the broader movement/lifecycle matrix remain open.
+
+```sh
+AO_GAME_TEST=1 go test ./server -run '^TestBrowserCourtyardInsurance$' -count=1 -v
+```
+
## Clan and ICC scanners
The selected original Tir scanner is `51005:0xc0020280`, template 117650, at
diff --git a/server/browser_courtyard_insurance_test.go b/server/browser_courtyard_insurance_test.go
@@ -0,0 +1,82 @@
+package main
+
+import (
+ "context"
+ "crypto/sha256"
+ "encoding/json"
+ "fmt"
+ "net/http"
+ "net/http/httptest"
+ "os"
+ "os/exec"
+ "path/filepath"
+ "runtime"
+ "testing"
+ "time"
+)
+
+func TestBrowserCourtyardInsurance(t *testing.T) {
+ if os.Getenv("AO_GAME_TEST") != "1" {
+ t.Skip("set AO_GAME_TEST=1 for the focused courtyard approach")
+ }
+ _, source, _, _ := runtime.Caller(0)
+ root := filepath.Dir(filepath.Dir(source))
+ output := filepath.Join(root, "local/courtyard-access", time.Now().Format("20060102-150405"))
+ world := newTestServer(t)
+ player := world.newCharacter()
+ player.name, player.appearance, player.headMesh = "Courtyard", 0x4c5, 40111
+ player.stats = defaultCharacterStats(4)
+ player.health = player.maximumHealth()
+ player.playfield, player.position = 705, [3]float32{902.5, 16.41, 579}
+ player.rotation = [4]float32{0, 1, 0, 0}
+ player.browserTokenHash = fmt.Sprintf("%x", sha256.Sum256([]byte("courtyard-check")))
+ if err := world.saveUser_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ if err := world.savePosition_locked(player); err != nil {
+ t.Fatal(err)
+ }
+ mux := http.NewServeMux()
+ mux.Handle("/", world.httpHandler())
+ mux.HandleFunc("GET /test-state", func(w http.ResponseWriter, r *http.Request) {
+ world.mutex.Lock()
+ defer world.mutex.Unlock()
+ json.NewEncoder(w).Encode(map[string]any{"position": player.position, "scanner": player.resurrectionTerminal})
+ })
+ host := httptest.NewServer(mux)
+ defer host.Close()
+ closeTestBrowserStreams(t, world)
+ ctx, cancel := context.WithTimeout(context.Background(), 2*time.Minute)
+ defer cancel()
+ stopped := make(chan struct{})
+ go func() {
+ defer close(stopped)
+ ticker := time.NewTicker(time.Second / 60)
+ defer ticker.Stop()
+ for {
+ select {
+ case now := <-ticker.C:
+ world.advancePlayerMovement(now)
+ case <-ctx.Done():
+ return
+ }
+ }
+ }()
+ defer func() { cancel(); <-stopped }()
+
+ command := exec.CommandContext(ctx, "node", filepath.Join(root, "tools/client/test_courtyard_insurance.mjs"), host.URL, output)
+ command.Dir, command.Stdout, command.Stderr = root, os.Stdout, os.Stderr
+ err := command.Run()
+ cancel()
+ <-stopped
+ t.Logf("Browser artifacts: %s", output)
+
+ if err != nil {
+ t.Fatal(err)
+ }
+ world.mutex.Lock()
+ defer world.mutex.Unlock()
+ if player.resurrectionTerminal != 3221357249 {
+ t.Fatal("courtyard approach did not reach and save at the original scanner")
+ }
+}
diff --git a/tools/client/test_courtyard_insurance.mjs b/tools/client/test_courtyard_insurance.mjs
@@ -0,0 +1,37 @@
+import assert from 'node:assert/strict';
+import {createRequire} from 'node:module';
+import {GameTest} from './game_test.mjs';
+
+const {chromium} = createRequire(import.meta.url)('playwright');
+const [url, output] = process.argv.slice(2);
+const browser = await chromium.launch({executablePath: '/usr/bin/chromium',
+ args: ['--enable-gpu', '--use-gl=angle', '--use-angle=gl', '--no-sandbox', '--disable-dev-shm-usage',
+ '--disable-background-timer-throttling', '--disable-renderer-backgrounding']});
+const context = await browser.newContext({viewport: {width: 1024, height: 768}});
+await context.addCookies([{name: 'ao_client', value: 'courtyard-check', url}]);
+const page = await context.newPage();
+const game = await GameTest.attach(page);
+try {
+ await page.goto(url);
+ await game.ready();
+ await game.save(output + '/start');
+ for (const [index, [x, z]] of [[902.5, 565.5], [909, 565.5], [915, 575]].entries()) {
+ await game.walk(x, z);
+ const state = await (await page.request.get(url + '/test-state')).json();
+ console.log('POINT', index, game.local().position, state.position);
+ assert(Math.hypot(...state.position.map((value, axis) => value - game.local().position[axis])) < 0.5);
+ const [minimum, maximum] = [[20, 20.1], [20.4, 20.5], [20.2, 20.3]][index];
+ assert(game.local().position[1] >= minimum && game.local().position[1] <= maximum);
+ await game.save(output + '/point-' + index);
+ }
+ const [x, y] = await game.pick(51005, 3221357249);
+ await game.click(x, y, 'right');
+ await game.wait('original courtyard scanner saves', () => game.events.some(event => event.direction === 'framereceived' &&
+ event.opcode === '5e477770' && Buffer.from(event.hex, 'hex').readUInt32BE(29) === 79));
+ assert.equal((await (await page.request.get(url + '/test-state')).json()).scanner, 3221357249);
+ assert.equal(game.errors.length, 0);
+ console.log('PASS: original courtyard stair entrance reaches and uses the scanner');
+} finally {
+ try { await game.save(output + '/final'); }
+ finally { await browser.close(); }
+}