aorecomp

Anarchy Online classic in the browser

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


docs/shop-typed-identities.md (4056B)


Typed vending identities

Clicking About the Guard in the original Omni training ground sent Use for 51005:3221226422. The server matched only its numeric ID to the Startup Shop, acknowledged success and opened that unrelated vending transaction. The actual shop uses 51035:3221226422. Both are reachable from the controlled fixture at [60,14.75,53], so the vending range check did not prevent the mistake.

Vending Use now requires type 51035. The terminal dispatcher no longer forwards type-51005 requests by numeric shop membership. Static information and clinic objects retain their independent terminal/world-item path. The recovered stationary clinic contract now executes through that path. The recovered static information contract now displays its authored instruction independently of vending Use.

Original placements

Fresh parsing of the shipped 14.9.1 statels, record type 1000026, matches all 795 maintained vending placements' IDs, templates, playfields and transforms. Every vending row has type 51035. There are 77 same-playfield type-51005 rows with equal numeric IDs; none has the corresponding vending template.

Playfield Full identity Template Original position
950 51005:3221226422 100280, About the Guard [59.26055,15.99995,55.73878]
950 51035:3221226422 100035, Startup Shop [60,14,50]
950 51016:3221226422 95258, door [52.59733,15.87024,55.13618]
1183 51005:3221226655 43553, Stationary Automated Surgery Clinic [176.32516,5.00036,129]
1183 51035:3221226655 99383, armor vending [192,5,139.5]
1183 51016:3221226655 41888, door [187.00072,5,116.00997]

The original index SHA256 is 46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71. Original placement bytes, ordinals and per-record/resource hashes are retained in local/shop-typed-identity/census.json and placements.json. About the Guard's complete item payload SHA256 is f318569c8007a499cb7e33da8ce841de1a680e0285948de791b54b12c211f6d0; its OnUse function 53044 supplies an information hint, without a vending contract. The clinic's payload is e72d6f5caa15be8609c9cd95bb6ca58dca182b6ac12bfd283c7e804145a003be.

Verification

TestStaticItemUseDoesNotAliasCollidingShop failed on both original collision IDs before the fix. It now checks rejection without a shop or inventory change, followed by successful Use of each actual vending identity. The existing native socket sale test uses the original type 51035; the forged-Use cases explicitly reject type 51005 at the vending handler. Related terminal regressions cover insurance, bank, Grid and mission-floor Use dispatch.

TestBrowserShopTypedIdentity uses real native picking and input. At the routing milestone its baseline incorrectly opened a shop for About the Guard. The fixed run received rejection 2 without a shop, turned through ordinary input, received success 1 for the Startup Shop, opened its normal window and cancelled it. Page replay and a fresh inventory reader retained zero owned items and zero cash. This controlled fixture verifies routing; it is not earned-progression evidence.

The current test additionally executes the recovered information contract. In-range information Use now succeeds with its original visible hint and no shop or state change; the independent vending Use still opens normally. See static information verification.

The native check takes 16.53 seconds and retains three clean traces, including both clicked full identities and replies, under local/shop-typed-identity/20261103-114138/. Baseline failures and source audits are retained in the parent directory. The related Go checks pass 12 roots and 102 results in 14.064 seconds; vet and Node syntax checks pass. The independent verification-summary.json checks the census, both baseline failures, complete native traces and exact request/reply pairs. No client source or bundle changed.