aorecomp

Anarchy Online classic in the browser

git clone https://aorecomp.ubeagle.com/code/aorecomp.git


docs/research-notes/corpse-scene-reentry/focused-partial-reentry.md (2752B)


Focused partial-slot section reentry

Selected P0 scope: a partially looted corpse must retain its remaining nonzero slot through a native scene-section departure and return, with one cash award and exact durable ownership. The earlier earned audit already covered an untaken item and empty-corpse reentry; it did not supply this maintained partial two-item checkpoint. This is a regression milestone, not a new behavior fix.

TestBrowserPartiallyLootedCorpseSceneReentry and tools/client/test_corpse_reentry.mjs now exercise a controlled checkpoint beside the observed X=160 scene boundary. Actual combat creates a one-HP Leet corpse; fixture setup places it, adds a second item and extends the observation window. These are controlled conditions, not earned progression or historical timing.

The final run completes in17.27seconds. Actual native transfers address corpse slots0 then1. The client walks from X161 to157 and back, sending one outbound and one return CharZoneMove. Both server interest and the native typed corpse remain present. Cash stays1 after the first Use. The final cold database reader finds exact item IDs1/2 in player slots64/65, with no corpse contents or cash. All5 final traces have no client errors, dropped events or dropped lifecycle markers. Native camera framing and real clicks select the corpse and actual source cells. Screenshots are in 20261103-032447/.

Verification: final native Go test passes; go vet exits0; Node syntax and git diff checks pass. tmp_verify_focused_partial.py checks the exact ledgers, both actual transfer slots, section messages, complete traces and source hashes; the report is focused-partial-verification.json. No native test/server process remains; the user's preview PID989899 was preserved.

Failed fixtures are retained separately. A leftover mock combat connection blocked login; its Go stack identifies the nil embedded connection Close. That owned run was stopped and its processes cleaned up. Initial camera poses placed the corpse behind the view or under transparent chat. A shop route hit the enclosure; a longer return hit terrain. The boundary's raw position captures allowed replacing that route with a short checkpoint. One boundary combat setup was obstructed, so the final fixture creates its kill at the known clear setup and places the checkpoint before opening the browser. None of these failures establishes a corpse lifecycle defect. The long route's traces are bounded and truncated; only the final short capture is claimed as complete.

No further manual gameplay was needed after the short checkpoint passed. The window is closed during travel. Open-window transitions, broader interest policies, slope placement and the parent P0 audit remain open.