aorecomp

Anarchy Online classic in the browser

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


docs/inventory.md (64278B)


Inventory behavior and 14.9.1 evidence

data/world.sqlite stores mutable world state. Its items table has one row per instantiated item; item_locations records player, backpack and corpse placement. Transactions commit quantities, ownership, credits, reclaim and consumable locks together. See world storage.

An instance ID is unique across all characters, equipment, backpacks and reclaim. The template identifies the catalog definition; different instances can share a template and quality. Stackable consumables have one ID and a quantity. A use decrements that quantity; consuming the last charge removes the instance. Splitting allocates another global ID, while merging removes one ID and keeps the other. The global high-water mark survives deletion.

Each player's slots has inventory_slot_1 through inventory_slot_30, containing an item ID or null. equipment uses names such as weapons_right_hand, clothes_left_arm and implants_left_arm. A backpack item record contains its own slots, numbered 1 through 21. These reference item IDs too; backpacks cannot contain backpacks. Item properties and placement have one authoritative source rather than being duplicated in each player's save.

/admin/items lists instances with names, qualities, counts, owners and locations. Search matches instance IDs, templates, names and owners. Clicking an instance opens its editable YAML properties and read-only catalog record. Both lists show 500 matching rows per page and retain filters in navigation. /admin/items/catalog filters templates by name or ID. Each row creates an unassigned instance at its exact catalog quality. Its assignment form offers only free compatible player/equipment/backpack slots. Admin equipment assignment bypasses gameplay skill requirements.

The character page at /admin/players/<owner> groups labeled form fields for the character, position, vitals and inventory, with all empty slots visible. Moving an ID preserves the instance; clearing its slot leaves it unassigned. Duplicate references and unknown IDs are rejected, including during startup. Native consumption and deletion remove the item record instead of unassigning it.

The first fixture uses QL 1 Solar-Powered Pistol, template 121567, identity type 51018. Players do not receive a fixture item automatically.

The ordinary inventory has 30 slots. Runtime inventories and the shared 11.0 protocol use 64 through 93; the 14.9.1 wire uses 48 through 77. Grants choose an empty saved slot and return failure when all are occupied. Inventory changes use a SQLite transaction and become visible in memory after the save succeeds. The shared store preserves the allocation high-water mark even after the last item has been deleted. Profile edits and zoning preserve inventory independently of profile fields.

Most supported items use exact catalog qualities with identical template endpoints. Metaplast armor supports its reviewed QL 1..200 endpoint pairs. Essence of Pure Jealousy now supports persistent native stacks, including merge, split and rejected-split correction. Its historical server merge cap remains unresolved. All 37 portable containers now provide their native 21-slot inventories and persistent contents. Other item families and starter loadouts remain separate milestones. Native corpse pickup is described in the corpse and loot protocol. QL 1 Kinetic Axe equipment is described below. All six Metaplast families at QL 1 through 200 use the native armor path. Other equipment remains unsupported.

Native messages

FullCharacter (0x29304349, version 16) begins with the owned-item list. Its encoded length is (items + 1) * 1009. Each entry has these network-order fields:

Field Size Initial individual-item value
Logical slot 4 48 through 77 on the 14.9.1 wire
Entry flags 2 1 for template items; 2 for separate live item identities
Count 2 1
Instance type and ID 8 Template type and persistent server ID
Low and high template 8 Exact definition or a supported interpolation pair
Quality 4 Requested instance quality
Auxiliary value 4 0

The maintained client source establishes the 32-byte wire entry: client/game/kkr.dll/lifted-0037.c, sub_3607F5B0 reads the first list through sub_3602DBA0; client/game/kkr.dll/lifted-0017.c, sub_3602DC40 reads the two shorts, identity and template information. sub_360011B0 in client/game/kkr.dll/lifted-0000.c reads the final four integers. The 14.9.1 conversion inserts its seventh list after the variable-length inventory, rather than at an offset valid only for an empty list. Template items use flag 1 even when worn, so native transfers and subsequent use do not require a separate live object. The equipped Kinetic Axe and portable Chests use flag 2; their native object updates are sent separately. The backpack protocol explains this distinction.

Anonymous ordinary additions

An ordinary AddTemplate (0x052e2f0c) contains only low/high templates, quality and count. New template proxies can therefore report raw identity 0/0 while already representing a durable owned item. The shared inventoryAdditionPacket builder supplies this message for both ordinary shop purchases and completed mission rewards. Live weapons and backpacks use their separate typed updates described in shop delivery.

The maintained native proxy constructor client/game/kkr.dll/lifted-0017.c::sub_3602D010 initializes identity fields +8/+0xc to zero. The full inventory reader sub_3602DC40 reads the explicit identity into those fields, along with flags/count and template information. These source paths explain the different representations; they do not establish which message sequence the historical server used for every reward.

TestBrowserAnonymousPurchasesAreUsable isolates the reported proxy shape in two WASM clients. A controlled mixed catalog supplies a QL1 laboratory and QL1 Metaplast gloves through the normal purchase transaction. Both native rows initially have 0/0 identities. Before any page/world replay, right-clicking the laboratory sends owner 1's page104/slot48 Use request, restores 30 HP, consumes one of 50 charges and installs the Treatment lock. An immediate repeat does not consume another charge. Native glove wear sends page104/slot49 to slot24 and reaches the observer. The Clothes form shows its worn icon; removal and re-wear retain the same instance before replay. Both proxies still report 0/0 after these successful operations; their durable IDs 1/2, types, quantities and locations are already correct. The test rejects an intervening FullCharacter/world replay.

Page replay supplies physical identities 51005:1 and 51022:2 for the same 49-charge laboratory and worn gloves. Fresh clients after database close retain those exact identities, templates, slots, health 80 and the 4,600-credit balance. The observer receives neither item. This closes the immediate-use uncertainty for ordinary template additions; the broader disappearance audit remains open. The wallet, skills, location and mixed stock are controlled fixtures, not earned progression or historical stock evidence. No protocol or client change is needed for this case. Native requests, state transitions and durable comparisons are retained under local/anonymous-item-proxies/.

The complete controlled check passes normally in 37.77 seconds and under the race detector in 75.48 seconds, including fresh-server clients. Captures are in local/anonymous-item-proxies/20261102-130116/ and 20261102-130355/. Vet passes; the published WASM bundle is unchanged.

Run the focused regression with:

AO_GAME_TEST=1 go test ./server -run '^TestBrowserAnonymousPurchasesAreUsable$' -count=1 -timeout=8m -v

Inventory transfers

ContainerAddItem (0x47537a24) carries source page/slot, target owner identity and destination slot. The server accepts only an authenticated current session's own ordinary inventory and an empty destination. It saves before acknowledging the move. Corpse transfers use the validated opened corpse described above; owned backpack transfers follow the checks described below; other cross-owner transfers are rejected. The supported weapon also moves between ordinary inventory and the right hand as described below. This layout is corroborated by the local AOtomation ContainerAddItemMessage and CellAO ContainerAddItemMessageHandler reference sources; it is not the message used by the native same-window visual rearrangement described below.

Rejected inventory-to-equipment drags require an actual native inventory notification to restore the source icon. Original kkr.dll FUN_100614e0 skips same-slot ContainerAddItem replies. The item can therefore remain in the native inventory model and SQLite while disappearing from the inventory window. Auto-equip alone does not reproduce that explicit pickup/place path.

The server corrects these rejected drags with two ordinary-slot swaps, returning both entries to their original positions. This works with an empty or occupied second slot, including a full inventory. It neither changes authoritative item state nor sends TemplateAction, so worn effects are not applied again. The native path is FUN_1005dd60, which notifies the GUI through ClientInterface_t::CMsg_ItemChangedID or the occupied-slot swap notification; FUN_1002d380 swaps the two inventory pointers. This is a reconstructed recovery policy using native messages, not evidence of the original server's rejection sequence. Other rejected equipment transitions remain part of the broader audit.

Original binary evidence is retained in local/metaplast-smoke/kkr-rejection.snapshot.json: same-slot guard ev_73e692bf124b00f1a8b2cc878c5ef7ce39702af627aa6a6fbe1dbc90e18d1ee0, move/GUI dispatch ev_ca3b544e617f693a15193dbb11303ccaae381dc0a5c322c52dc0dd2f5a9af6ff, and pointer swap ev_85f3ecb1753e0364c277ff18a656a781f86d4b3b92040ee1ddcb33bcfaa7f5d5.

kkr.dll sub_3605C400 constructs the character's inventory with 78 slots through sub_3602D080. Ordinary inventory begins at 48 in sub_3605E1A0 and sub_3605FB40; next-free searches stop at the container size through sub_3602D1E0 and sub_3602D210. The ordinary range is therefore 48..77. Runtime inspection with a full inventory confirms 78 total slots and all 30 item identities in that range. Sending saved slots directly omitted items at the upper end and disagreed with the client's next-free placement.

targetPacket translates ordinary slots by subtracting 16 in FullCharacter, ContainerAddItem and delete acknowledgements. Incoming 14.9.1 inventory requests are translated before server validation. Invalid native slots cannot alias legal saved slots: 78 and 93 are rejected rather than interpreted as saved positions. Equipment slot 6, corpse page 107 positions and next-free sentinel 111 retain their native meaning. Saved files, item identities and the 11.0 protocol retain their existing slot representation.

The captured 14.9.1 CharacterAction (0x5e477770) delete payload is exactly five integers: action 112, page 104, logical slot, low template and high template. It has no intervening unknown field or trailing short from the newer AOtomation CharacterActionMessage schema. The native held-right-click menu, delete icon and confirmation emit this packet. The server checks the session, owner, page, occupied slot and both templates, saves the deletion, then echoes the action. Repeated requests for the now-empty slot do nothing.

Stale carried move sources

A controlled earlier bank transfer can leave an old carried weapon icon in the native view. Right-click wear still sends a real ContainerAddItem request, but the server previously ignored the empty source, leaving that unusable ghost. For a current living session, an unrelated ordinary source and an owner-directed valid equipment/carried destination, the server now cancels the source with action146 before clearing just its empty row with action112. This is a private GUI correction: no ownership is deleted, no successful move is reported and no live weapon destruction is sent. The banked physical instance remains intact. Invalid and foreign requests keep their guards; a pending move's own source and destination remain protected.

TestStaleOrdinaryMoveClearsOnlyEmptySourceWithoutWrites checks first/last carried rows, repeated cancellation/clear ordering, exact cold ownership, allocation and zero writes. Its companion checks invalid/foreign requests and a real pending equipment move without changing its original state. TestBrowserStaleOrdinaryMove reproduces the native right-click request from the missed-transfer checkpoint, clears the ghost and retains an unrelated part. The same page opens the real bank, withdraws that exact weapon and equips it. Native page replay and cold loading retain weapon1 worn in slot6 and part2 in saved slot65, with zero cash and no extra identity. Location, loadout, skills and the earlier transfer are controlled; this is not earned progression evidence. The baseline and17-second corrected captures are in local/stale-inventory-move/. The initial ordinary-grid rearrangement did not publish a move and is not used as evidence of this server failure.

Stale right-hand move sources

A controlled completed transfer can also leave a worn right-hand weapon visible after its authoritative slot becomes empty. Native right-click removal emits ContainerAddItem101:6 to destination111. The server previously ignored this request, leaving the stale hand unresolved while the physical axe remained in the bank. The actual baseline is retained in local/stale-inventory-move/20261103-205752/6/. An earlier fixture incorrectly expected the Wear panel in the icon-grid list and supplies no defect evidence.

For this empty hand, a current idle owner and an ordinary destination or native first-free111, correction now sends action146, the existing weapon-unequip97 notification and action112 for101:6. This clears the hand/model and row without destroying the detached weapon, publishing a successful move or writing ownership. Other worn slots are not admitted by this specific correction: their effect contracts remain separate. The pending move's own source and destination, foreign requests and invalid destinations retain their guards.

The public-handler regression first failed with zero replies at destinations64, 93 and111. Repeated correction now preserves the exact banked item, allocation and cold state with zero checkpoint writes. The related group passes23 root tests/99 results; vet and driver syntax checks pass.

TestBrowserStaleWornMove uses the shared controlled fixture alongside TestBrowserStaleOrdinaryMove. Its17.38-second corrected run at local/stale-inventory-move/20261103-210005/6/ clears the visible hand and then normally withdraws/re-equips that exact axe on the same page. Page and cold recovery retain axe1 worn at6 and part2 at65, zero cash and allocator2. The ordinary companion also passes; all eight traces have no client errors or dropped events. This is controlled ownership/view evidence, not earned progression.

The same correction also applies during an unrelated pending armor move. A controlled missed refresh leaves the axe in native hand6 after its committed move to carried65. While vest64->21 is held, actual hand removal previously received no reply. The hand's guard now allows correction outside the pending source/destination, using the existing146/97/112 sequence and resource refresh. No inventory transfer, deletion or pending-clock change occurs.

TestStaleHandDuringUnrelatedArmor covers armor wear/removal, destinations64, 93 and111, repeat requests, zero writes, protected ownership and original completion/cold recovery. Existing pending-weapon tests protect hand6 when it belongs to the admitted move. TestBrowserStaleHandDuringEquipment checks real native removal, unchanged vest deadline, successful vest completion and exact axe re-wear after page replay. Both physical IDs survive cold loading; native vest AC remains 5,5,1,1,5,5,1,5. The controlled level2 fixture uses Sense8/Agility8 and does not claim earned progression or a new scheduling rule.

Baseline local/pending-stale-hand/20261104-082656 fails in21.97s; fixed 20261104-083000 passes in18.97s. Corrected/retained screenshots were reviewed, and all four accepted traces have no client errors or dropped events. Focused Go checks pass16 roots/159 results in23.089s; race checks pass17 roots/160 results in113.355s. Maintained-package vet, driver syntax and whitespace checks pass. Independent packet/state checks and source hashes are retained in that folder's verification.json.

Stale worn-armor sources

A controlled completed bank transfer leaves a QL1 Metaplast helmet visible in the native Clothes panel while its authoritative slot18 is empty. Right-click removal sends source102:18 to first-free111 and previously received no reply. The Go baseline returns zero packets; the WASM baseline is retained in local/stale-inventory-move/20261103-230631/18/.

Cancellation146 and clearing112 remove the icon but leave its native armor effect active. The original Stats window shows impact/melee/energy AC3 after clearing, then6 after normal bank withdrawal and re-wear. That incomplete attempt is retained in local/stale-inventory-move/20261103-230851/18/.

The original equipment-action receiver100849c0 calls1005e980. That function resolves the supplied template before dispatch; action7 clears the source slot and runs its OnUnWear virtual callback. An empty source request carries no template IDs, so current bank contents cannot safely identify the old effect. REA evidence ev_7fdf6ee5aa8586975f9a8eab3df3534318015426d929421345e5c822d7fa4892 and ev_3cd89062e7b4d4a2c5c8aa85884ffc09b99e65eacca95d800b704227eff26bc4 are retained in local/stale-armor-move/native-unwear.json, bound to original kkr.dll SHA256 a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. The maintained translations are client/game/kkr.dll/lifted-0039.c::sub_360849C0 and client/game/kkr.dll/lifted-0028.c::sub_3605E980.

Each connection now retains the exact non-weapon removal packet prepared from its published FullCharacter, updating it only after normal equipment commits. An authenticated empty page102 source receives cancellation, that last-published OnUnWear once when present, then clearing of its own row. The packet is consumed so duplicates cannot subtract the effect again. Unknown metadata is never guessed; pending equipment, foreign targets, wrong pages and invalid positions retain their guards. The correction writes no ownership, destroys no detached item and reports no successful move.

TestBrowserStaleArmorMove verifies the original request, same-page bank withdrawal/re-wear, native page replay and exact cold ownership of helmet1 at18 and part2 at65, with zero cash and allocator2. The corrected capture is local/stale-inventory-move/20261103-232051/18/,16.42 seconds. Manual inspection of its original Stats windows verifies impact/melee/energy AC3 ->0 ->3 and the cleared helmet model; all eight server AC values return to the initial vector. This is controlled ownership/view evidence, not earned progression. Effective native defense snapshots beyond the visible window remain a separate harness TODO. No client C/WASM change was needed.

Focused Go checks pass54 roots/377 results, including ordinary and right-hand stale sources, normal armor removal, interpolation, equipment rollback/retry and loading. The focused race run passes18 results. Vet and driver syntax checks pass; all five final native traces have no errors or dropped events. Exact packet ordering, unchanged durable ownership and the manually reviewed Stats-window image hashes are retained in local/stale-armor-move/validation.json.

Stale worn resource foundations

A controlled Pioneer152039/QL1 checkpoint with base abilities12 exposes a second stale-source failure. Its worn ability effects produce maximum HP40, maximum nano38 and attack rating8. An earlier unreported bank transfer commits the corresponding unworn37/35/7 values and clamps current HP/nano to37/35. The native drag sends source102:19 to first-free111. The previous correction cancelled it, removed the exact effect and cleared the icon, but left the native cached foundations and current points at40/38/8/40/38.

The focused Go baseline receives only five packets for two repeated requests, with no resource refresh. The native assertion reproduces the exact old vector against the committed37/35/7/37/35 values. The captures are local/stale-inventory-move/20261104-001217/19/ and local/stale-worn-resources/baseline.log.

After consuming a known published unwear and clearing its row, the correction now publishes the owner's current health/nano foundations and attack rating, then its already committed HP and nano points. The raw health foundation excludes effective equipment/nano bonuses already applied by the native owner; this follows the existing owner initialization contract. The zero-change HealthDamage snapshot shares the normal recovery packet builder. No ownership or resource write occurs during correction, and these owner-specific repairs are not broadcast to observers. A duplicate without a remaining published effect still receives only cancellation and row clearing.

TestStaleWornSourceRefreshesDerivedResourcesOnce verifies the exact three foundations and two point updates once, duplicate handling, observer isolation, unchanged durable ownership/allocation and cold committed points. Existing armor, implant and non-hand stale checks now also account for that one refresh. TestBrowserStaleWornResources uses real picking/placing to remove the stale backpack, withdraw the exact banked ID and re-wear it on the same page. It verifies native37/35/7/37/35 after correction and40/38/8/37/35 after re-wear and page replay. Manual original Stats-window inspection confirms both maxima, current points and attack ratings. Cold Go loading conserves backpack1 at19 and part2 at65, zero cash and allocator2.

The24.76-second verified capture is local/stale-inventory-move/20261104-001407/19/; all five trace error/drop counters are zero. Packet ordering, source/capture hashes and manual observations are retained in local/stale-worn-resources/validation.json. This controlled stale-view case leaves the broader disappearance audit open. Related Go checks pass121 roots/685 results; the focused race check, vet and driver syntax checks pass.

Stale weapon resource foundations

A controlled level100 Trader with base abilities200, Shotgun300 and QL75 LIZARD exposes the same missing owner update on empty hand101:6. With the weapon its maxima are HP872/nano681 and attack rating349; without it they are872/672/54. An earlier unpublished bank transfer clamps current nano to672. Native removal previously clears the hand and returns attack rating54, but retains maximum and current nano681. The focused native baseline is local/stale-inventory-move/20261104-002828/6/.

The right-hand correction now follows cancellation146, unequip97 and row112 with the shared owner foundation/current-resource sender. No template is guessed and no detached weapon dynel is destroyed by refusal. Repeated requests resend current values without ownership writes or ammunition changes. The public-handler test verifies exact resources, repeated correction and cold banked ownership of weapon1 with13 rounds. Related Go checks pass91 roots/648 results, and native axe and Pioneer companions pass17.44s/16.92s through page/cold checks.

The re-equip path also needs a native resource refresh after the weapon's ability modifier is applied. Runtime tracing attributes the overwrite to local refresh100714a0 calling calculator10075910 with NanoPool54: it writes maximum nano672 after the server's681 update, then modifier callback100bd600 applies Psychic+15. The modifier map and raw-stat array remain the same objects. The visible skills subsequently show Psychic215/NanoPool57, while the uncorrected Stats window retains maximum nano672.

The Stamina/Psychic branch of client modifier insertion36074730 now invokes existing calculator36075910 immediately after storing the modifier. It retains the original regeneration invalidation and uses the existing resource formula and local-character guards. The final maximum therefore includes the applied ability trickle without depending on a later dirty-bit refresh or a timed server correction.

The unchanged TestBrowserStaleWeaponResources passes in21.75s with the clean published WASM bundle. Native/server nano maxima agree681 ->672 ->681; current nano remains672 after re-equip. Inspected Skills captures show Psychic200 ->215 and NanoPool54 ->57, and the Stats window shows672/681 after re-equip. The same physical weapon1 retains13 loaded rounds, stack2 retains100, page replay agrees with server resources, and cold database loading preserves both exact items. The passing capture is local/stale-inventory-move/20261104-014626/6/. Related checks pass8 roots/17 results in74.297s, including native Pioneer recovery16.61s and loaded-weapon reclaim/cold replay47.22s.

The original-client getter10075ca0 includes ability modifiers through10073fa0 and10074a30, supporting the server's681 maximum. Modifier callback100bd600 and flag setter100030b0 are retained in local/weapon-nano-rollover/modifier-route-evidence.json; dependency getters are in dependency-evidence.json in that directory. These records are bound to original KKR SHA256a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0. The correction deliberately adds the resource refresh to the original modifier path. Exact runtime ordering, discarded experiment and verification are recorded in docs/research-notes/weapon-nano-rollover/README.md and validation.json. Earlier partial repair evidence remains in local/stale-weapon-resources/.

Native visual order

The shipped cd_image/text/help/The Inventory Window.txt documents left-click pickup/place, Shift-left-click inspection and held-right-click deletion. Manual WASM testing confirms that picking up an item and placing it elsewhere in the same window rearranges its visual cell without sending a server move request. Its logical server slot remains unchanged.

IconPositionSystem_t::Init, Load and Save in client/game/ccr.dll/lifted-0006.c (sub_27013000, sub_27013200 and sub_27013060) use Prefs/localtest/Char<id>/IconPositions.bin. The native IconGrid_t::CheckGrid (sub_27011590 in client/game/ccr.dll/lifted-0005.c) commits the cell/identity map after a grid change. Browser builds save that completed map immediately, since page reloads skip the native shutdown destructor that ordinarily saves it.

browser_initialize in client/runtime/browser_host.c links the native character directory to the browser's origin-private filesystem. The directory is keyed by the server asset URL and character ID; files retain their native names. Knowledge storage is described in player references. Preferences outside that directory and occlusion caches remain in memory. Existing bytes are preserved. A missing icon-position file stays absent; a new character config enables native first-run initialization with tips disabled. Native loads and saves use the same formats and logical identities.

The native toolbar initializer in ddr.dll at 0x100777a0 reads IsFirstTime. For a level below 2, it adds action identities (57008,49573), (57008,49571), (57008,49577) and (57008,49576) at positions 0..3, and (57008,82212) at position 9. It then saves IsFirstTime=0. Persisting this flag lets the native client initialize once and retain subsequent edits, including an intentionally empty bar. Toolbar mutation notification 0x10077cd0 already saves the native icon-position file; the browser does not need a separate shortcut format or replacement initializer.

The native icons are Start Combat, Use, Walk/Run, Sit/Stand and Exit. Browser storage regression checks cover pending first-run setup, completed setup, preference edits, reloads and isolation between two character IDs. WASM controls activated Sit/Stand, moved Start Combat from slot 1 to slot 5, and retained that layout after page, browser and server restarts with identical saved icon-position bytes. A fresh second character received the original five actions independently.

Original ddr.dll SHA-256 is 3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883. Retained first-run evidence is ev_6dd9f9797d1dd2ff426e5a988a917a058b1855e99c21933907d9b26c63e895bc; toolbar save notification is ev_4ca35e96918f1117cc583f02ac4bb2af9571f1e9afc36a8bb9a0010359a8c345.

The native fixture moved one pistol from visual cell 0 to cell 8, then verified cell 8 after page reload and a server restart. Its server ID, QL, logical slot and item count stayed unchanged. A second visitor moved its own pistol without changing the first visitor's cell. Idle frames did not rewrite the saved file.

Layout through shop transitions

TestBrowserInventoryLayoutTransitions starts with four controlled items, moves the weapon to visual cell 8, reloads that layout, and uses control checkpoints to zone to an Omni shop and back. Native mouse input sells two parts and purchases one laboratory. This is a controlled regression, not earned progression. The retained weapon stays at cell 8, the earlier laboratory at cell 3, and the new purchase takes cell 0. Each checkpoint compares the serialized main-inventory map with the visible grid. Page replay and cold database recovery retain the three expected physical instances and quantities.

Original CCR Save stores an 8-byte header, 16 bytes per group and 12 bytes per entry. Remove erases only the selected identity; CheckGrid preserves occupied indices. Load does not delete the file. Consequently the historical 516 -> 408 byte change is exactly consistent with nine net removed entries, but does not explain the intermediate empty OPFS inspection or compact positions. Those remain unresolved; this fixture does not reproduce them. Complete original static evidence and the bounded investigation are retained in local/icon-layout-research/, with browser captures in local/icon-layout-transitions/. No production persistence change is justified by this check.

Verification

server/inventory_test.go exercises native initialization and a captured native delete request through the world connection, plus restart persistence, explicit logical moves, ID allocation across owners, profile edits, invalid/foreign/stale requests, full inventory and disk-write failure. Foreign owner requests are rejected even when the caller has an item at the same slot. No live socket write is performed by the inventory handler; acknowledgements use the connection's existing FIFO output queue.

Manual WASM evidence is retained locally under local/inventory-smoke/: QL 1 details, native rearrangement, held menu, confirmation, deletion and packet logs.

The isolated fixture grants one pistol before native world initialization. Deletion was checked after reload, and a second simultaneous WASM visitor showed only its own pistol while the first visitor's inventory stayed empty. The browser driver closes its contexts and temporary server in finally.

The full-inventory regression in server/target_protocol_test.go checks all 30 native slots, invalid native boundaries and a last-to-first move through the world connection followed by restart. server/loot_test.go checks pickup into the final free slot. Manual WASM evidence in local/inventory-range-smoke/ confirms all 30 identities in native slots 48..77, full-bag pickup rejection, held-menu deletion from slot 77 and corpse pickup into that freed slot. Server restart and page reconnect retain the final item; axe equip and unequip also preserve the inventory and visible weapon state. The run produced no browser errors and closed its browser context and temporary server.

The production-initializer storage regression in client/tests/browser_storage.c has initial, resume and second-character passes. Run storage-test.html, storage-test.html?resume, storage-test.html?other, storage-test.html?resume and storage-test.html?other&resume in one browser context to check persistence and isolation. Chromium and Firefox pass those checks alongside the existing cache and viewport cases.

Equipment conservation audit

server/equipment_conservation_test.go adds focused public-handler checks for both wear and removal. Each direction injects a failed or ignored placement deletion, a failed or ignored insertion, and a deferred foreign-key failure at commit. Every failure must retain both the moved weapon and an unrelated item in memory and after a cold load, send only source correction to the owner, and send no equipment update to an observer. Removing the fault and repeating the request must commit the same instances at their intended destinations.

Additional checks grant an unrelated item during the equip delay and lose the first outgoing reply after a successful wear/removal. The new item must survive completion; a lost reply must disconnect the session while preserving the committed placement for reconnect. These tests extend the audit without changing equipment behavior or establishing that every disappearance report is resolved.

The related equipment, inventory, utility and wearable-container group passes 31 root tests /156 results normally and under the race detector, with no skips. go vet ./server also passes. Logs live in local/equipment-conservation/.

The hardware WASM pass in local/equipment-conservation/ uses one isolated visitor with 31 explicitly provisioned instances, not an earned progression character. Native right-click wear put one axe in the right hand. The second axe's captured request from native slot49 to the occupied hand received slot49->48 and slot48->49 corrections. Both identities and their icons remained available. Filling all 30 ordinary inventory slots made native right-click removal display Inventory full, please make room in your inventory first!; the client emitted no removal request. This verifies the native admission guard, not a server rejection round trip.

An explicit shirt pickup and placement in the Wear window produced a native request for its valid chest slot, despite the scripted click aiming at the head cell. It therefore counts as successful wear, not invalid-slot coverage. All 31 native identities remained unique at every full-inventory checkpoint and after reconnect. A read-only database comparison retained all 49 current item records and locations except that intended shirt move; unrelated items were unchanged. No page error occurred. Fast unsatisfied pointer/click sequences in the initial exploration are excluded from rejection claims, following the input timing limits in native equipment input.

The owned browser was closed after the run. The isolated visitor and tracked fixture instances remain available for continuing this audit. This pass does not claim a native server restart, complete item/slot coverage, or a new fix.

Melee equipment

QL 1 Kinetic Axe, template 209283, is the first supported weapon. Its definition is in server/gamedata/items/items_165.yaml. The Wield action requires effective 1h Edged 103, Fast Attack 147 and Brawling 142 each greater than 4. The shipped skill-weight resources are recorded in editable stats. The catalog supplies 5..20 base damage, attack/recharge delays 125 centiseconds, equip delay 150 centiseconds, Melee Initiative 118 and mesh 40079 (weapon_handaxe.abiff). Attack rating scales its normal damage and armor reduces it to the scaled minimum floor. Criticals and specials remain separate work; the normal-damage distribution and fractional rounding are still provisional.

The independently reviewed 209283/209284 pair now also supports QL1..24 through shared quality consumers. See selected Kinetic Axe qualities for strict gates, numeric boundaries and the focused two-client verification.

The native Wear window accepts left-click pickup from inventory and placement into the right hand. ContainerAddItem uses source page 104 and logical slot 48..77 on the 14.9.1 wire, target owner identity, and destination 6. Unequip requests use page 101, slot 6, and destination 111 (next free inventory slot). The server selects the first free logical inventory slot, but echoes the original requested placement 111. Replacing that sentinel with the resolved slot leaves the native Wear icon unchanged. Ordinary visual ordering still uses the browser preferences above.

Equipment moves wait 1.5 seconds on the existing 250 ms world tick. The item remains at its source until the delay completes and the complete inventory saves atomically. Repeated inventory requests cannot restart the timer or remove the pending item. Completion rechecks requirements, destination occupancy and session state. Full inventory and failed saves preserve the equipped item. The owner's active attack or outstanding recharge currently rejects weapon swaps; this restriction is not a recovered historical rule. Incoming attacks alone permit the weapon moves described below.

Weapon moves during incoming attacks

An idle player can equip, replace or remove a weapon while another creature attacks. Previously any opponent targeting the player vetoed admission and cancelled an already pending move at completion. equipmentBlocked_locked now distinguishes the item and whose attack is active. Own attacks/recharge and other equipment's existing combat restrictions remain enforced, including ground and flying vehicles. Inventory transactions and replication are unchanged.

The original equipment action belongs to the recipient's controller: client/game/kkr.dll/lifted-0029.c::sub_36062830 schedules category6 through sub_360529A0 in lifted-0026.c. It does not suspend the opponent's clock. The separate active-player swap milestone remains open: native binding resets weapon timers, but original authoritative recharge policy across replacement has not been established. Complete original REA records and those limits are under local/combat-weapon-swap/.

server/incoming_equipment_test.go covers an attacker present at admission or starting during the delay, all three weapon moves, an actual incoming hit, unchanged opponent clocks, cold identity conservation and retained own-attack/ recharge refusals. The short controlled two-client WASM fixture uses an original Leet and two granted weapons, with legal level100 skills and deterministic hits. It verifies actual equipment requests, an8-point hit before the replacement acknowledgement, removal/re-equip while still attacked, observer isolation and page/fresh-server retention of both complete instances. This is isolated fixture evidence, not earned progression. Captures and independent packet/identity checks are under local/incoming-equipment/.

Final normal checks pass76 roots/352 individual results in51.456s. The three incoming-weapon roots and four preserved vehicle-gate roots also pass the race detector:42 individual results in105.751s. The final WASM run passes90.40s (live57.58, cold32.82), or98.097s including Go. It accounts for24 incoming damage and both items with no errors/dropped events in all ten retained traces. Vet, Node syntax, gofmt and whitespace checks pass. Final captures are under local/incoming-equipment/20261102-170648/.

Occupied equipment replacement

A carried item can replace a qualified worn item in one delayed slot exchange. The incoming item stays carried and the displaced item stays worn until the combined EquipDelay expires. Completion rechecks both identities, placement, requirements, removal restrictions, session and combat/recharge gates. Both locations commit in the same inventory transaction before any success output. The displaced item returns to the incoming item's source, so a full ordinary inventory does not require a spare cell. Worn-to-worn exchanges remain outside this carried-item path, and the separate combat-swap restriction remains.

Original KKR FUN_100628b0 reads stat211 from both items when the destination is occupied equipment and adds them before FUN_10062830 schedules action6. The maintained counterpart is client/game/kkr.dll/lifted-0029.c::sub_360628B0. FUN_100614e0 -> FUN_1005dd60 -> FUN_1002d380 consumes the inventory reply and exchanges its two pointers, including GUI notifications for an occupied target. Shipped DLL SHA-256 is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0; complete REA evidence ev_9f80a390eabd3931b06a609ce73028d7d7317bba6be2b82d11dd0a47a22bfdab is retained in local/equipment-replacement/native-initial.json.

Replication removes the displaced item's effects before acknowledging the slot exchange and applying incoming effects. Weapon replacement detaches the old weapon, retires its observer dynel, and reconstructs the incoming weapon after the native swap. The owner retains the old carried weapon's reusable dynel. Armor and memory swaps do not double their modifier/capacity contribution; implant replacement retains the surgery and removal criteria.

server/equipment_replacement_test.go reproduces the previous rejection and covers the combined delay, full inventory, changed displaced identity, failure and ignored writes for both items, failed COMMIT, retry and cold retention. The native regression TestBrowserEquipmentReplacement uses two controlled level-ten clients, an issued bat, a QL3 Advanced Baseballbat and29 filler items. Three actual right-click replacements conserve all31 identities with30 full ordinary slots. Both pages reload, then a fresh server/database and two new clients retain the same equipped and carried instances. All captured item properties are unchanged except the intended two slots, with no page errors or dropped trace events. Visible inventory icons and the equipped weapon remain present. Artifacts: local/equipment-replacement/20261102-094920/. This is fixture evidence, not earned acquisition or completion of the broader P0 equipment-conservation audit.

AO_GAME_TEST=1 go test ./server -run '^TestBrowserEquipmentReplacement$' -count=1 -timeout=12m -v

Another move while equipment is pending

An owned-item move arriving while another equipment move is pending is refused with the existing native equipment correction. The requested source must match the owner's actual page and logical slot. A duplicate of the admitted move is left pending; correction of a different item leaves the admitted identity, destination and completion deadline unchanged. Refusal does not write inventory.

TestEquipmentPendingMoveRestoresAnotherSourceForRetry covers carried and worn sources through the public inventory handler, byte-identical durable state, completion, retry and cold ownership. TestBrowserSecondEquipmentMove holds a real axe placement at a controlled server checkpoint, waits for its local animation to end, then places a second axe with real native input. Previously the second request received no response and its source stayed hidden. The correction restores that icon; completing the first move and retrying the second retains both exact weapons after page replay and cold loading. This fixture tests late completion and ownership, rather than earned progression or original server permission for concurrent equipment moves. Accepted native captures: local/pending-equipment/20261102-205402/.

The same fixture also removes the occupied hand while a replacement awaits its server acknowledgement. After the local action ends, a real page101/slot6 request receives one source-scoped cancellation146. The admitted replacement, displaced identity and exact deadline remain unchanged. Completing that replacement and reversing it retain both physical IDs through page replay and the fixture's cold database read. Concurrent equipment permission in the original server remains outside this controlled late-acknowledgement check.

The earlier run local/pending-equipment/20261103-091503 passed in30.15s (Go37.738s). Its six native requests, one same-slot worn-source reply, later swaps and final IDs1/2 are independently checked in local/replacing-hand/verification.json. All six traces have empty error lists and no dropped events. That right-click case did not establish icon recovery after a real worn drag; the source correction below now covers both inputs.

Worn drag refusals

A real chest102:21 drag into ordinary inventory while an axe equip was pending reproduced another blank source icon. Its same-slot MoveItem reply left the physical vest and all eight AC bonuses worn, but a second real pickup failed. The controlled native baseline fails in24.13 seconds, with unchanged server inventory and the original pending deadline. Raw native inventory still lists the vest, so that list alone cannot prove its icon is usable.

Shared worn-source correction now sends CharacterAction146 with the actual page101/102/103 and source slot. It cancels the rejected drag without unwear, wear-effect replay, transient slot exchanges or ownership writes. Packed bag and ordinary carried corrections keep their existing forms. Duplicate admitted sources remain pending through their existing identity guard.

The expanded native fixture picks the corrected vest again, returns it to its original wear position, and verifies all eight AC bonuses are unchanged. It then exercises the second carried weapon refusal, retry, occupied-hand removal refusal and later replacements. Page replay and cold ownership loading retain both weapons and vest3/slot21. Public-handler checks cover weapon, HUD, deck, armor and implant sources during unrelated wear/removal, explicit/automatic ordinary destinations, repeats, exact cancellation, zero writes, unchanged cached inverses and original completion. Artifacts and independent audits are under local/pending-worn-drag/. This is a controlled checkpoint, not earned progression or original-server scheduling evidence. The accepted run local/pending-equipment/20261104-105833 passes in33.39s, including the explicit cold allocator check. All eight native captures have no errors/drops. Related normal checks pass54 roots/612 results in135.589s; race checks pass42 roots/290 results in159.756s, and vet/driver syntax pass. The public-handler carried/worn refusal check passes all three Go results in 7.809s; JavaScript syntax and whitespace checks pass. Refused-hand and retained inventory captures were reviewed.

AO_GAME_TEST=1 go test ./server -run '^TestBrowserSecondEquipmentMove$' -count=1 -timeout=4m -v

An unrelated stale carried row needs the same cancellation while equipment is pending. A controlled committed move of the second axe from saved slot65 to66 leaves the old native slot49 visible. Wearing that old icon after the first axe's local animation ends sends a real request; the old pending guard silently ignored it. Action146 followed by112 now clears only that empty carried row, without changing the first axe's identity, placement or completion deadline. The pending move's own source and destination stay protected. This is GUI correction of a missed refresh, not deletion of the retained weapon.

TestStaleCarriedSourceDuringEquipment covers wear/removal, two empty source positions, equipment/carried destinations, repeated requests, zero writes and exact completion/cold ownership. TestBrowserStaleSourceDuringEquipment uses real native mouse input, checks the ordered replies and unchanged pending state, completes the first equip, then reloads and equips the exact second weapon from its committed location. Both fixture identities survive cold loading. The controlled items, missed refresh and held server completion isolate this issue; they do not establish earned progression or historical concurrent-equip policy. Baseline and fixed captures are under local/pending-stale-equipment/. The accepted run 20261104-062815 completes in20.77s. Independent trace checks confirm all three native requests, the stale row's actual removal and both retained identities. Focused normal checks pass11 roots/42 results; related race checks pass29 roots/117 results in175.956s. Maintained-package vet and JavaScript syntax checks pass; details are in that folder's verification.json.

Ground-drop requests need the same empty-row correction. The focused checkpoint holds the first axe's equip while a missed refresh leaves the second axe's old native slot49 visible. Actual mouse input sends Drop3a243f41 from that slot; the pending-equipment guard previously returned without a reply. It now allows action146 then112 for an unrelated empty carried row and sends the existing drop refusal feedback. The admitted move's source, destination and item stay protected. This changes GUI correction only; ground storage remains unsupported.

TestStaleGroundDropDuringEquipment checks pending wear/removal, first/last unrelated empty rows, repeat requests, zero writes, unchanged deadlines and exact completion/cold ownership. TestGroundDropRefusalPreservesOwnedSourcesAndEquipment also checks protected pending source/destination and invalid requests. TestBrowserStaleDropDuringEquipment reproduces the missed-refresh failure with real native input, completes the first equip, then reloads and equips the retained second axe from its committed location. Both identities survive cold loading. These controlled items and held completion are ownership evidence, not earned progression. Baseline local/pending-stale-drop/20261104-073308 fails in23.77s; the fixed run 20261104-073435 passes in21.54s with four clean, complete traces. Focused Go checks pass7 roots/43 results in15.315s; race checks pass8 roots/44 results in104.074s. Maintained-package vet, JavaScript syntax and whitespace checks pass. Independent packet/state checks and source hashes are recorded in local/pending-stale-drop/verification.json.

AO_GAME_TEST=1 go test ./server -run '^TestBrowserStaleDropDuringEquipment$' -count=1 -timeout=3m -v

Stale worn effects during pending equipment

A missed refresh of a completed vest removal leaves native Clothes row21 and its AC effects visible. With an unrelated axe equip pending, the server formerly ignored the native102:21 removal request. The controlled QL1 vest retained native AC 5,5,1,1,5,5,1,5 while the committed server values were all zero.

The shared worn-source guard now permits correction outside the pending move's own source and destination. Existing cancellation146, the cached exact unwear contract and clearing112 remove only the stale row and its effects. The cached inverse is consumed once, followed by the existing derived-resource refresh. It does not move or delete the retained item, change the pending deadline or write inventory. Invalid sources/actors/targets stay rejected. Weapon-hand correction remains its separate path.

TestStaleWornSourceDuringUnrelatedEquipment checks HUD, deck, armor and implant sources during axe wear/removal, repeated requests, exact inverses, zero writes, unchanged pending state and completion/cold ownership. The existing invalid-input checks also protect an actual pending destination of each item class. TestBrowserStaleWornSourceDuringEquipment uses a controlled level2 character, Sense8/Agility8, one QL1 vest and one axe. Real Clothes input clears all eight effects, the original axe equip completes, and page replay exposes the vest's actual carried slot for successful re-wear. Cold loading retains both IDs. The held deadline and omitted refresh isolate the defect, without earned progression or a new historical concurrent-equip policy.

Baseline local/pending-stale-worn/20261104-081416 fails in23.13s; fixed 20261104-081820 passes in20.35s. Corrected and recovered native appearance captures were visually reviewed; all four accepted traces have no errors or dropped events. Focused Go checks pass13 roots/145 results in21.194s; race checks pass14 roots/146 results in110.416s. Maintained-package vet, JavaScript syntax and whitespace checks pass. Independent packet/state checks and source hashes are retained in that folder's verification.json.

AO_GAME_TEST=1 go test ./server -run '^TestBrowserStaleWornSourceDuringEquipment$' -count=1 -timeout=3m -v

Owned-item Use during pending equipment

An authenticated owned-item Use arriving during an admitted equipment move now receives the ordinary 52526858 failure reply (result2), echoing its sequence, mode and source. Previously the early equipment guard silently discarded it. This preserves the existing busy restriction while completing the native Use request. It neither opens a backpack nor changes the admitted move or its deadline. Replayed sequences remain ignored. The same refusal covers remote-bank use; unready, dead, foreign and malformed requests keep their existing rejection gates.

TestOwnedItemUseDuringEquipmentRepliesWithoutChangingPendingMove checks the public handler, native slot65 -> 49 translation, unchanged storage and pending move, duplicate refusal suppression, later completion and backpack use. The controlled TestBrowserOwnedItemUseDuringEquipment holds server completion past the local animation, then uses real input to open the bag. The baseline local/pending-owned-use/20261103-154525 sends Use but receives no reply. The fixed run local/pending-owned-use/20261103-154639 passes in19.89s: matching failure, unchanged inventory/deadline, normal completion, same-page backpack retry and another successful open after page replay. Cold database loading retains the same axe in slot6 and backpack in slot65. This fixture is not earned progression evidence and does not close the broader disappearance audit. The related owned-item, backpack, recovery-kit and remote-bank checks pass; the pending-Use and session-rejection checks also pass with the race detector. Vet and JavaScript syntax checks pass. Packet/deadline/item conservation is independently checked by local/pending-owned-use/tmp_verify.py.

Live edits during pending equipment

TestBrowserPendingEquipmentEdit admits a real native Kinetic Axe equip and holds its server completion. A control-panel name edit reconnects the playfield, cancels that pending action and restores the exact carried instance. Native frames resume on the new world stream, and another real equip succeeds without reloading the page. Page replay and a fresh database load retain item 1 in slot 6. This is a controlled late-acknowledgement fixture, not earned progression or a reproduction of the earlier live-edit freeze. The accepted native run took18.69s: local/pending-edit/20261103-094003; all four traces have empty error lists.

AO_GAME_TEST=1 go test ./server -run '^TestBrowserPendingEquipmentEdit$' -count=1 -timeout=3m -v

Weapon instance delivery

The native WeaponItemFullUpdate (0x3b1d2268) creates the visible owned weapon and supplies combat data to both owner and observers. Its outer identity is the persistent item identity, type 51018. The 14.9.1 payload is:

Field Value for this weapon
Version, uint32 11
Parent identity 50000, owner ID
Playfield, uint32 Current playfield
Auxiliary identity 0, 0
Inventory page and slot, two bytes 1, 6
Encoded stat list 3027, then pairs 23/template ID and 701/quality
Trailing data length, uint32 0

client/game/kkr.dll/lifted-0053.c, sub_360B2440 reads this layout; sub_360B2830 loads StaticInstance 23 and applies item-quality stat 701. client/game/kkr.dll/lifted-0029.c, sub_36063340 attaches the item to its owner and binds hand slots on inventory page 1. The native equip handler sub_360AD0B0 in client/game/kkr.dll/lifted-0051.c applies the mesh and weapon behavior. No full-character appearance refresh is needed for live equipment.

Unequip sends native CharacterAction 97 with parameter 2 equal to slot 6, followed by an item despawn (0x36510078) for observers and the owner's container acknowledgement. The owner retains the detached weapon dynel: attachment10063340 changes the row to live-identity flag 2, movement1005dd60 preserves that flag, and possession100619d0 requires the corresponding dynel before the UI can request another equip. Retiring it at unwear leaves an unusable inventory row. Once a subsequent equip succeeds, the owner receives despawn, move acknowledgement and a fresh FullUpdate in that order. Full-update activation100b38b0 ignores an existing dynel, so replacement is necessary before attaching the weapon again. Row deletion1002d620 does not destroy its live dynel: committed deletes from inventory, bank or backpacks send an explicit weapon despawn after the native deletion acknowledgement, including weapon children destroyed with a bag. Failed saves send neither. The persistent inventory identity is retained throughout ordinary moves. The native holder restores its existing Martial Arts fists. New connections receive the character before the weapon instance; the owner also receives its persistent FullCharacter inventory before the weapon update. Packets and state changes use the same update/state lock order as combat.

server/equipment_test.go checks skill boundaries, equip delay, repeated requests, persistence, failed writes, changed requirements, stale sessions, full inventory, native payloads, weapon damage/slot/initiative, and restoration of fist data. Manual WASM captures and the isolated fixture are retained in local/equipment-smoke/.

The same-instance round trip is also covered by TestWeaponReequipRetiresOwnerInstanceAfterItsNativeRequest. Actual two-client WASM testing under local/fast-attack-smoke/ reproduced the stale owner dynel, then verified retirement/recreation restores the weapon and its locked Fast Attack action without losing its inventory identity or count. The broader starter-weapon test exposed the separate missing-dynel possession check; catalog weapons describes its corrected lifetime. Original full update activation and despawn evidence is retained in docs/research-notes/fast-attack-research/native/re-equip.md.

Retained weapon death and reclaim

TestBrowserReclaimWeapon covers the specific P0 question of a previously instantiated finite weapon returning through reclaim. A controlled level-100 Trader starts beside the original street scanner/reclaim pair with a QL75 LIZARD in hand (13 rounds) and a separate 100-round energy-ammo stack. Its abilities/skills, one-health checkpoint, one fatal Leet hit and expedited reclaim availability are test setup, not earned progression or reclaim-timing evidence.

Native removal retains the same weapon in ordinary inventory and removes its 15 Psychic bonus. A production fatal combat outcome moves both exact items to reclaim; the native client performs its normal death return in playfield 705. The driver waits for the replacement world stream's actor readiness, picks the real reclaim booth and collects both rows through native clicks. The weapon's returned inventory row initially refuses re-equip because resurrection shock reduces Shotgun below its requirement. The native skills window shows reduced red abilities (102 at the captured recovery phase). A controlled last-tick checkpoint at reduction 27, followed by page replay and ordinary recovery, avoids waiting six minutes. Once native and server reduction both reach zero, the same inventory row emits a real equip request and successfully equips. Its FullUpdate carries stat 26=13, and the energy stack remains 100. Native skills show Psychic 215 from base 200, matching one server bonus of 15.

After closing the original database, a fresh server and native client restore the same physical IDs, selected QL/endpoints, slots, quantities and ammunition. The worn weapon again arrives with 13 rounds and displays Psychic 215. Screenshots were inspected; no native/page errors occurred. The shock-aware warm/cold check took 50.87s, with traces under local/reclaim-weapon/20261102-114547/. Focused Resurrection/Regeneration/Signed/Vektor Go checks passed in 76.118s. This records a necessary regression for the reported equipment-loss path; it found no additional production ownership defect and does not close the broader disappearance audit.

The resurrection-shock calculation now applies to server qualification and resources and survives native replay. Offline policy and observer timing prediction remain unresolved; the controlled last-tick setup is not earned-progression or full-duration recovery evidence.

The exact cold resource check reproduced a separate P0 replay defect. Psychic displayed 215, but native maximum nano remained 672 instead of the server's 681, even after ten seconds. FullCharacter rebuilds resources before the instantiated weapon's later OnWear. Bootstrap only corrected maxima when active nanos existed, and that correction preceded the weapon. It now publishes final resource foundations after both replays for every owner. The native cold maximum reaches 681, matching the server; current resources and the bonus remain unchanged. TestWorldLoadingPublishesResourceFoundationsAfterWeaponReplay failed before the fix and now protects packet order and value. The final browser check waits for actual derived-maxima agreement, rather than assuming actor readiness means that all equipment effects have completed.

AO_GAME_TEST=1 go test ./server -run '^TestBrowserReclaimWeapon$' -count=1 -timeout=4m -v

Two WASM clients verified axe appearance, matching combat text and damage, unequip icons and removal for the observer, and subsequent 3..5 fist hits. Repeated equipment and equipped reconnect/server-restart checks retained item ID 1, template 209283 and QL 1. The active-combat unequip attempt retained the weapon; removal succeeded after disengaging. Forced server downtime also exposed an extra pthread fetching game.js after the initial worker pool was exhausted. That failed fetch emitted an Event error. The page now retains the script for later workers. The same Chromium outage test created the extra worker without that error, reconnected automatically, rendered the world and accepted movement input.

Bulk reclaim after cold loading

TestBrowserBulkReclaimColdRecovery maintains the larger transfer case recorded in the earned level-ten run, using a short current-schema controlled fixture. Production retention rules keep a worn bat and a NoDrop item while moving 24 ordinary instances to reclaim. Those entries include a QL75 weapon with 13 loaded rounds, a 100-round ammunition stack and a QL2 laboratory with 17 charges. This fixture grants its initial conditions and expires the availability clock; it does not repeat or establish earned death, period loot selection, resurrection or reclaim timing.

The database closes before two fresh WASM clients connect. Real booth use and a wheel gesture reach the private scrollable window; each displayed source is collected once. The original client automatically scrolls to earlier populated rows as later rows empty. Two empty-cell clicks and an empty close/reopen create no items. Page replay and another closed-database restart retain all 33 physical identities: 26 owner items and seven unchanged observer items. Native/server slot, endpoint, QL and count comparisons accompany exact server ammunition and wallet checks. The observer receives no private reclaim packet. This necessary regression leaves the broader earned-loop and equipment-loss audits open.