Native corpse authorization and scene reentry
Focused cold team replay
TestBrowserColdCorpsePickup isolates the earlier inability to pick cold team
remains. A controlled one-HP Leet on the flat Omni street dies through the normal
combat/outcome path, with a deterministic drop and a two-person team's rights.
The database closes before the production server reloads it and any browser
connects. This supplies the test condition directly; it is not earned-progression
evidence or a historical loot/placement measurement.
Three fresh WASM clients see corpse 51050:1000000 with no original
50000:1000000 actor. Native picking lets the foreign visitor send an actual
Use, which is refused without changing contents. The non-killing teammate then
picks the same corpse, opens its window, receives its one credit and collects
the exact generated Monster Part once. A second click does not duplicate it.
Page reload retains the physical inventory ID and allows picking/reopening the
empty corpse without awarding more cash. A further database read verifies the
teammate alone owns the same item and credit; the killer and outsider own neither.
The maintained fixture and tools/client/test_corpse_replay.mjs use the normal
GameTest driver, native input, typed actor snapshots and read-only server checks.
The team run takes 33.93 seconds with no client errors, retained under
local/corpse-cold-replay/20261102-101609/. A preceding solo control takes
23.18 seconds. Screenshots show visible remains and actual loot UI. All owned
clients and servers are closed afterward.
This closes the focused cold-interaction evidence gap on flat ground. It neither reproduces the old pointer-probe failure nor establishes its cause, and supplies no basis for changing corpse creation, replay ordering or the original animation. Slope placement remains in the broader P0 audit.
Focused partial-slot reentry
TestBrowserPartiallyLootedCorpseSceneReentry supplies a repeatable controlled
checkpoint beside an observed native section boundary near X=160 in Omni
Training. A one-HP killing outcome creates the corpse; fixture setup adds a
second item, places the checkpoint and extends its observation window. These
conditions isolate reentry and are not earned progression, a drop-table
measurement or evidence for the historical corpse lifetime.
The earlier closed-window check opens the remains and collects slot 0 and its one
credit. The client closes the window, walks across the nearby section boundary and
returns. Outbound and return CharZoneMoveIIR messages establish both crossings;
the server retains NPC interest and the native directory retains the corpse.
Native camera input frames the same remains above chat. Picking and reopening
then collect its exact nonzero slot 1 without another cash award. A fresh database
reader verifies physical items 1/2 in player slots 64/65 and no remaining corpse
contents. No production change or scene-triggered corpse replay is needed.
The maintained driver is tools/client/test_corpse_reentry.mjs. The short
checkpoint completes in about 17 seconds. Captures, exact ledgers, source hashes,
fixture failures and limits are retained in
local/corpse-scene-reentry/focused-partial-verification.json and
docs/research-notes/corpse-scene-reentry/focused-partial-reentry.md. The maintained scenario
now also covers the native range-close notification below. Generic slope
placement and broader streaming remain open.
Native range-close notification
Leaving the partially looted window open reproduced a stale server handle. Beyond five metres the native client closed its window and sent CharacterAction 142 with the corpse identity. The server ignored that action. The first Use on return therefore toggled the retained handle closed instead of reopening loot. The remaining item and zeroed cash were intact; a second Use was required.
Original kkr.dll (SHA256
a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0)
function 100567b0 checks remote Chest distance against five metres, constructs
action 142, sends it and removes the local window. CharacterAction constructor
1007d4b0 stores the action and its two identity pairs. The captured notification
has a zero first pair and 51050:1000000 in the second. This is range closure;
the section boundary itself does not establish its cause. REA evidence IDs are
ev_30c7bc5667112b3467e020212ecf1bd76ce4b44cf15d0fecdee96aa40035934f
and ev_ccb0d09b5b7918d1ef372b685115cf46e678aba05b9464b09fb2f6ce7c9160aa.
Full dossiers and their static-analysis limitations are retained in
local/corpse-open-window/native-evidence.json.
The server now retires only the authenticated session's matching corpse handle.
It accepts the close outside Use range without awarding cash, moving items,
writing the database or sending another close. A stale notification for an old
corpse cannot close a replacement window. The next normal Use can reopen the
returned corpse once. Focused handler tests cover malformed/forged requests,
replaced/loading sessions, duplicate closes, late target identities, one-Use
reopening and exact cold conservation. The WASM scenario leaves loot open during
departure, observes native closure and collects the remaining nonzero slot after
one returning Use. Evidence and fixture limits are retained under
local/corpse-open-window/verification.json. Related Go checks pass 67 roots/203
results, focused race checks pass 8/20, and vet is clean. The native run completes
in 16.67 seconds; all five saved traces have no errors or dropped events.
Ordinary earned controls
The earned level5 Omni Enforcer5 and ordinary observer21 used the sole LAN preview in headless Chromium with GPU OpenGL. Combat, walking, picking and Use were ordinary native controls. There were no grants, forced drops, enemy resets or edits to health, position, equipment, skills or wallets.
Foreign Use
After an ordinary full-health Snake kill, observer21 approached to3.47metres
and the native picker identified 51050:1068772. Its real GenericCmd Use request
carried sequence1 and that typed corpse identity. The server returned state2
for the same actor, sequence and target. The observer received no open window,
item or credits. The corpse retained its five credits until normal expiry.
Both clients then lost the typed object at the unchanged180-second deadline.
This proves an actual rejected request, rather than inferring rejection from a click on terrain. The original item counts and balances were unchanged.
Section round trips
An untaken QL1 part234 and one credit remained on Snake corpse1067313 during a round trip from native section10 through section7 and back. Both clients kept their original typed corpse objects; the returning fighter also rendered the remains. This particular corpse did not retire like a vending machine. The return left insufficient time for successful pickup: the click hit terrain, and the still-unowned part and credit expired. Neither was player-owned, and no pickup success is claimed.
A second corpse1068777 rolled five credits and no item. Native Use collected the cash, and closing the window left it at zero on both replicas. The fighter walked from section10 through section13 and back while the observer stayed nearby. Native picking reopened the same corpse before expiry. Four actual open/close requests succeeded across the round trip; the cash was awarded only once. Its typed object remained present throughout, without another corpse creation packet. The fighter's native and durable balance was221; the observer remained at zero.
The first attempted route hit terrain and did not complete its intended round
trip. Its captures are retained separately. A later pointer-grid search failed
after another kill and closed both owned browsers in its finally block. The
last fight snapshot had zero displayed NPC HP but no typed corpse yet; the
captured creation packet and the grid's failure do not establish its root
cause. The harness now waits for an actual typed corpse and retains failed
picker samples instead of treating displayed zero HP as a completed kill.
These results do not justify adding corpse replay to the shop's section fix. The later checks below complete item-bearing pickup after section reentry and native full-inventory refusal/retry. Open-window lifecycle transitions and generic placement on slopes remain part of the broader P0 audit.
Item-bearing pickup and full inventory
The same earned fighter and ordinary observer continued on the unchanged preview with ordinary native controls. Seven full-health Snake kills generated three collected parts, one unclaimed part and 21 collected credits. There were no forced drops, grants or changes to enemies, skills, resources or wallets. The unclaimed part 235 expired before pickup; it was never player-owned.
Corpse 1068780 retained untaken QL1 part 236 while the fighter walked from native
section 10 through 13 and back. Both clients retained their same typed corpse
objects. Normal turn keys faced the returning fighter toward the remains;
the native picker then identified the exact 51050:1068780 object. Reopening
and left-clicking moved part 236 into durable inventory 91 and native slot 75.
The earlier failed return search had retained the route's facing direction.
Correcting the test controls establishes successful picking without a server
replay or corpse-placement change.
Another ordinary pickup put part 237 into the last free slot 93. With all 30
ordinary inventory slots occupied, a click on part 238 in corpse 1068783 showed
the native message Inventory full, please make room in your inventory first!
and left the icon and durable corpse slot intact. This refusal occurred in
the client before a transfer request; it does not independently test the
server's full-inventory rejection.
The fighter then right-clicked its original Startup Maps - Omni-Tek instance 18
in inventory 66. Its raw Map Navigation remained 5. The original item contract
checks side and existing map knowledge, with no skill threshold. The server
atomically consumed 18 and learned masks [0, 0x18c00, 0x1600403b]; only the
owner received the three map-stat updates and removal. The still-unclaimed
part 238 remained on the same corpse during this intermediate state.
A click in that same open loot window then generated one transfer request and acknowledgement, moving 238 into the freed slot 66 (native 50). An extra click did not duplicate it. Exact durable and native ledgers account for all 55 unconsumed original instances and the three new parts; only the used map 18 was removed from the original 56. The observer received no items, cash or XP. The fighter retained its original XP 11750, IP 14645, ammo, laboratory charges and raw skills, with 242 credits. These low-level kills were grey to the level 5 fighter and did not test new XP progression.
An additional out-of-range fight attempt changed no health or inventory and
ended at the test's guard deadline. The next attempt approached normally
before attacking. Both harness failures closed their owned browser contexts;
neither was a WASM exception. Private snapshots, typed-object probes, packet
reassembly, screenshots and reconciliations are in local/loot-native-capacity/.
Partial-loot regressions
server/partial_loot_test.go adds public-handler checks for:
- A committed first item and cash surviving failed or ignored placement writes for a second item, with no success publication, exact cold ownership and retry.
- A selected-quality untaken item retaining its own corpse slot after another slot is taken; delayed requests cannot take its place, and expiry destroys only the untaken instance while retaining cash and an unrelated owned item.
- Filling the last inventory slot, safely refusing the next item, explicitly destroying one unrelated fixture item, and retrying the same open corpse slot without duplicating either taken instance, including after expiry/restart.
- Refusing a pickup when full, consuming an authored starter map at normal starting skill, and retrying the same open corpse slot. Cold snapshots check refusal and map consumption separately, followed by duplicate pickup and corpse expiry, with exact unrelated-item and learned-map retention.
The initial focused run passes all three roots/seven results; its related selection passes101 roots/342results. The same complete selection passes under the race detector, with no race warnings or skipped tests. Vet passes. The final race run used a30-minute allowance; the earlier default-timeout log is retained as incomplete evidence.
The later combined map/partial-loot selection, including starter-map consumption and retry, passes all 11 roots/96 results normally and under the race detector. The normal and race logs contain exactly the same passing cases, with no failures, skips or race warnings. Vet passes.
A guarded restart preserved every global player, wallet, item, placement, mission, encounter and learned nano exactly against the stopped snapshot. Both tested clients then reconstructed all41 inventory instances by ID, slot, quantity, QL and template endpoints, with full health and the correct XP/IP and 221/0credit balances. All56 previously owned instances remain in SQLite; the only earned-wallet change is the five collected credits. No WASM page exception was recorded. The console includes uncategorized HTTP404 responses, whose cause has not been established by these captures.
A second guarded cold restart after the full-inventory run preserves the same global durable tables exactly. Both native clients reconstruct all 43 instances by ID, slot, quantity, quality and template endpoints, including parts 236/237/238 in slots 91/93/66. The used map remains absent, and the fighter reconstructs all three authored map masks and its 242-credit wallet. All 58 currently owned instances across the four test characters remain exact, with no WASM page exceptions. The native GPU renderer is GPU OpenGL; test windows did not use the shared desktop. Uncategorized console HTTP 404 messages remain in the new captures too; these runs do not establish their cause.
All owned test browser profiles are closed, with no connected test sessions.
The sole preview remains healthy on HTTPS8443 and the other default ports.
Complete private ledgers, native screenshots, reassembled packet records,
failed attempts and audit scripts are under local/corpse-scene-reentry/.