aorecomp

Anarchy Online classic in the browser

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


docs/alpha-item-recovery.md (14907B)


Alpha item and recovery coverage

This is the ordinary-action map for TODO A6, reviewed November 5. It connects existing transaction regressions to native client evidence; it does not require replaying every historical edge case. No new ownership failure was found during this review. The finite creature-body checks below are now complete, including fixes for the reproduced buried poses, closing A6 for the mapped supported paths. Shop breadth, human encounters and affordability remain A5/A7 work.

Ordinary actions

Action Exact state and transaction coverage Native evidence and limits
Buy recovery, ammunition and equipment; sell loot shop_purchases_test.go covers charged packages, exact slots/identities, concurrent accept, failed commit and retry. shop_multi_sale_test.go covers partial charges, zero-value rows and failed writes without partial cash/ownership. shop_live_items_test.go covers reply loss. NPC vendors and early stock record the five vendors, four training terminals, three weapon shops and 36 nano terminals. Purchase/use, sale, cancel and reconnect are covered; the stock fixtures also check cold recovery. Controlled money/skills establish transactions, not affordability or earned progression.
Wear, remove and replace equipment equipment_test.go, equipment_replacement_test.go and equipment_conservation_test.go cover delayed placement, requirements, full inventory, failed placement/retry, concurrent grants and lost replies with cold recovery. Inventory records native equip/unequip/replacement and full-inventory refusal. The tests/e2e/browser.test.mjs starter cold scenario starts a new server and two native clients with a worn starter weapon, 17 lab charges and 50 credits. That checkpoint is seeded. TestBrowserBackpackEquipment covers bag-to-wear and exact ownership after cold load.
Put items in a backpack, withdraw them, split/join charges and use recovery backpacks_test.go covers native wire/restart, transfers between bags, capacity, concurrent transfer and failed save, split/join and reclaim. backpack_medical_test.go covers exact source/patient, last-charge consumption and failed commit/retry. Backpacks records native storage, restart, withdrawal/equip, charged stacks and full bags. TestBrowserBackpackMedical checks native use and source charges; retained verification reports 24 focused roots and 34 race roots.
Trade items and money with another player player_trading_test.go covers both owners and cash in one transaction and failed persistence. player_trading_lifecycle_test.go covers cancellation, concurrent accept, lost completion replies and death. player_trading_rejection_test.go covers loaded weapons, filled bags and prospective capacity. Player trading records two-client charged-stack/cash exchange, filled bags, cancellation and restart. TestBrowserTradedWeapon transfers a loaded gun, equips/fires it, then restores it in a new server/native session. The high-skill checkpoint is controlled, not an early-game balance claim.
Die, retain protected equipment, reclaim other items player_death_test.go covers death/reclaim atomicity and failed writes. reclaim_test.go covers retained worn/NoDrop items, private pickup, full inventory, failed pickup/retry, concurrency and native wire/restart. Reclaim records Omni and Clan/Neutral insurance routes. TestBrowserBulkReclaimColdRecovery restores a controlled level-10 death, collects 24 reclaim items, then starts another server/native session; all 33 items across both owners retain identity, quality, charges, ammunition and placement, with 1,319 credits unchanged.
Loot remains once, including after reconnect/restart TestLootNativeCorpseTakeAndRestart, corpse_expiry_test.go, corpse_expiry_outcome_test.go and loot-rights regressions cover exact transfer, expiry/pickup ordering, failed/ignored writes and commit failure/retry. The repaired synthetic NPC fixture now lets the expiry regressions execute with required geometry resources. Corpse loot records Leet and Tiny Stalker pickup/cold recovery. Corpse placement records the fixed buried Aquaan. The new Giant Snake check below adds one original route placement. Other living-body captures do not establish their corpse poses.

Test files in the table are under server/. Exact item comparisons include identity, template, quality, slot, count and ammunition where applicable; cash is checked independently. Tests of rejected writes protect the boundary before success is published. A saved database read is distinguished from a new native session: both are useful, but only the latter checks client reconstruction.

Selected retained artifacts supporting this map:

These ignored artifacts are local evidence, not repository dependencies. Some older subsystem documents retain their original paths before archival under local/old/. Existing evidence was mapped rather than rerun in this review.

Early-route corpses

The finite creature list is the same 15 distinct bodies already inspected alive for A3. Shared species do not need every placement replayed, but a newly observed terrain failure reopens the relevant placement check.

Route Corpse evidence established Remaining body checks
Omni training Leet (17655), Giant Snake (30252), Tiny Stalker (17708), Aquaan (30369), Reet (30365), Malle (17660) None in this finite creature list
Clan training Green Lizard / Grecko (22794), Rollerrat (17687), Blubbag (40075), Salamander (30354), plus shared species above None in this finite creature list
Neutral training Android (17649), Biofreak (30258), Clawfinger (38387), Eye Mutant (17653), Blackout (45873), plus shared species above None in this finite creature list

The six clothed human opponent populations also have living-body evidence only in A3. The combat handler currently admits creature appearances only, so the human encounter contract is A7 work before humanoid corpse/equipment checks. Living outfit inspection alone must not be reported as corpse evidence. These currently unsupported encounters remain A7 work; admission must include their corpse and equipment checks.

The November 5 Clan run exposed a content dependency: LZ01 had no combat profile, so its death generated no rewards, expiry or respawn. LZ01/LZ02 are now admitted under the explicit starter lizard policy. ROLL and BB01 subsequently reproduced the same missing rewards/lifecycle and now have their own bounded admission, with native coverage below. The five distinct Neutral bodies and Clan RT02 Reets subsequently reproduced the same failure and now have bounded profiles. The checks use their actual generated rewards instead of inserting loot into unsupported encounters.

The finite body check is small: reach a fresh corpse through controlled combat at an original route placement, inspect its recognizable body, use native picking and loot input, and compare exact source/destination ownership after reconnect and database recovery. Fix any reproduced visibility failure before extending the run. There is no requirement here to grind levels or recover the original generic slope formula.

Giant Snake checkpoint

TestBrowserTrainingSnakeCorpse selects the lowest actor identity from original population 950/district/1/group/2/authored_point, keeps its authored placement and rotation, lowers health to one and invokes the combat handler. The native client then enters with the fresh corpse already present. This proves corpse reconstruction and pickup, not the warm death animation or ordinary kill pace.

The November 5 run passed in 13.54 seconds. The inspected capture shows the recognizable coiled body and open mouth above the terrain at approximately [171.12706, 14.340281, 51.297123]. Native right-click opens its loot window; pickup moves Monster Parts item 1, template 42640, QL1, count 1 to inventory slot 64 and transfers exactly one credit. Reconnect retains that inventory. A fresh server database load verifies the same item and cash and the emptied corpse.

Evidence is under local/alpha-snake-corpse/20261105-144656/, with the run log at local/alpha-snake-corpse/native.log. The browser and temporary server are closed by the fixture even on failure. This change adds coverage and the A6 map; it changes no gameplay behavior and does not close A6.

Further route checks and lizard fix

TestBrowserTrainingCorpses reuses the Snake fixture for the Reet, Malle and both original Clan lizard populations. The shared runner is now tools/client/test_training_corpses.mjs; the Snake test remains available. Ordinary mouse-look frames corpses above chat on slopes. The fixture also requires the death to schedule expiry and respawn.

Capture under local/alpha-training-corpses/ Original population Result
20261105-145123/950/district/2/group/1/authored_point/ Reet Visible body, native pickup, reconnect and cold ownership
20261105-145141/950/district/4/group/1/authored_point/ Malle Visible body, native pickup, reconnect and cold ownership
20261105-145458/952/district/0/group/1/authored_point/ Green Lizard LZ01 Same checks after adding the missing combat profile
20261105-145512/952/district/2/group/1/authored_point/ Grecko LZ02 Same checks after adding the missing combat profile

The Omni checks passed in 32.91 seconds (omni.log); the lizard checks passed in 31.04 seconds (lizards-native.log). Each transfers its generated Monster Parts instance and exactly one credit, then verifies the emptied source and exact destination after reconnect and a fresh database load. Images were inspected, not inferred from a successful pick alone. The original failure is retained in clan-diagnostic.log. Lizard behavior changes are documented in the fauna policy; Reet and Malle required no gameplay change. A6 remains open. The retained Snake scenario also passed with the shared runner in 13.69 seconds (snake-shared.log, capture 20261105-145639/).

Clan Rollerrat, Blubbag and Salamander

The shared fixture now takes every generated item through its native loot-grid cell, comparing each identity before proceeding. This preserves the Salamander's actual two-item drop table under the controlled zero roll. It does not insert loot or reduce the boss to a one-item fixture.

Capture under local/alpha-training-corpses/ Original population Exact collected state
20261105-145952/952/district/2/group/2/authored_point/ ROLL Rollerrat Monster Parts template 42640, item 1, QL1, count 1, slot 64; one credit
20261105-150007/952/district/3/group/0/authored_point/ BB01 Blubbag Monster Parts template 42640, item 1, QL1, count 1, slot 64; one credit
20261105-150027/952/district/5/fixed/0/ Salamander Boss Templates 85596/123742, items 1/2, QL4, count 1, slots 64/65; one credit

All three native runs passed in 50.29 seconds and their captured bodies were visually inspected. Reconnect and a fresh database load retain the exact owned items and cash with empty sources. ROLL and BB01 required the profile fix; Salamander needed no gameplay change. Logs are under local/alpha-clan-fauna/. This completes the distinct Clan creature-body checks in this matrix, not earned progression, RT02 combat, humanoid encounters or the remaining Neutral corpse bodies. A6 and A7 remain open.

Neutral creatures and Clan RT02

The missing profiles are now implemented under the explicit starter policy. The native fixture initializes ordinary surface geometry and settles elevated spread spawns before its controlled one-hit kill. A grounded, in-range viewpoint and native mouse-look expose the corpse; the picker searches the held body's footprint and still requires the exact native identity before clicking.

Capture under local/alpha-training-corpses/ Original population Exact collected state
20261105-152014/954/district/0/group/0/authored_point/ Android Robot Junk 42620, item 1, QL3, count 1, slot 64; one credit
20261105-152037/954/district/0/group/1/authored_point/ Biofreak Monster Parts 42640, item 1, QL1, count 1, slot 64; one credit
20261105-152058/954/district/0/group/2/spread_authored_point/ Clawfinger Same exact Monster Parts/cash state
20261105-152206/954/district/0/group/3/spread_authored_point/ Eye Mutant Same exact Monster Parts/cash state
20261105-152231/954/district/5/fixed/0/ Blackout Templates 85596/123742, items 1/2, QL3, count 1, slots 64/65; one credit
20261105-152300/952/district/2/group/3/authored_point/ RT02 Reet Monster Parts 42640, item 1, QL1, count 1, slot 64; one credit

All six runs pass native transfer, reconnect and a fresh database load with exact destination ownership and empty sources. Their corpse captures were visually inspected. The five Neutral checks took 158.72 seconds; RT02 took 26.35 seconds. Logs are local/alpha-neutral-fauna/native-final.log and reet-final.log. Browsers and temporary servers closed after each case.

Android and grounded Clawfinger initially showed only extremities above ground. Their original held poses were independently validated and added to the shared clearance rule. Both now have recognizable visible bodies and cold-pose regressions. Biofreak, Eye Mutant, Blackout and RT02 needed no placement change. These behavior fixes and the completed finite matrix close A6 for current supported actions. A7 still owns human encounter implementation, ordinary progression and profession coverage; these controlled kills do not establish affordability or kill pace.