aorecomp

Anarchy Online classic in the browser

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


docs/pet-summoning.md (5293B)


First owned pet summon

The server admits original nano43324, Lesser Anger Manifestation, through its single SpawnPetACG53167 effect. The learned program uses ordinary nano admission, reservation, cast timing, cancellation and recharge. The effect creates one owned level1 Anger Manifestation and publishes it to nearby native clients. The original right-click Programs interaction is SPACE under Ctrl+8.

Original contract and evidence boundaries

local/pet-research/summon-native.json retains the complete original nano43324, startup crystal43330, candidate model and weapon records, raw hashes and native decoder/requirement evidence. Its requirements are MC131>7, TS130>7, VisualProfession368=12, and operator66 on packed counter251 with value1. Only this recovered first-nibble limit is admitted; other packed predicates remain unsupported. The current pet set contains only this attack-pet category.

The effect supplies PT50, Level1, TimeExist600 and relative offset2/0/0. Unknown numeric fields remain part of the exact admitted effect; none is relabeled as PetType. No owner identity is invented in NPC full-update compact fields. The independent AddPet/RemovePet owner set and counter251 publication follow the original protocol.

Model96195, name, appearance229 and the level1 resource profile17HP/25nano are a bounded reconstruction. The HP/nano values come from retained2006..2010 wiki data, not an original14.9.1 server measurement. The later data's four-point skill requirements are not imported: the original requires eight. The alpha now uses an explicit provisional single-fist combat profile. Historical weapon binding, raw stats, master/type metadata and exact placement remain open. Player-versus-pet combat remains unsupported. The owned pet separately admits the original all-pets follow and wait commands and dismissal.

TimeExist is interpreted as seconds. A later compiled nano chart also lists ten minutes and eight-point skills. This corroborates the chosen interpretation but does not establish original14.9.1 server timer units or disconnect policy. The rotated relative offset and collision policy also need original-server evidence. The timed-expiry and disconnect TODOs retain these gaps.

Durable ownership and retirement

Completed cost/recharge, the NPC, owner/program/deadline and NPC allocator commit in one SQLite transaction. Final ownership/allocation readback catches ignored or rewritten required writes before success. Failures refund the existing reservation and publish no pet. Owner counters derive from actual ownership; there is no separately persisted count to drift.

Page/bootstrap replay restores the packed counter and original owner-list notifications. Profile replacement preserves the ownership set. Expiry deletes the NPC and ownership row atomically, then removes native ownership and the visible entity. Ignored deletion retains state for retry. Startup retires expired rows before clients can observe them. Mission retirement also removes its owned entities and pending expiry entries. Identities are not reused.

Expiry visits an active-pet list rather than scanning the outdoor population on every nano tick. The current lifecycle retains a disconnected owner's pet until its deadline; this is not claimed as the recovered original disconnect policy.

Focused verification

The public-handler baseline rejected the original summon. Focused checks cover one committed cost/entity, duplicate requests, the authored skill/profession gates, ignored NPC/ownership/allocator writes, rewritten ownership, deferred commit failure, refund/retry, expiry failure/retry, cold expiry, profile replacement and mission retirement.

TestBrowserPetSummon uses two controlled Meta-Physicists with learned nano43324, effective MC/TS8 and35 nano on flat ground. It is not earned progression or starting-profession viability evidence. Real native SPACE-icon casts create one pet seen by both clients. After observed recharge, the packed limit blocks a repeated cast without another cost. A controlled last-deadline checkpoint retires that pet; another real cast creates a new identity. Both page reloads and fresh-server clients retain that replacement, owner15nano, observer35nano and allocator1000003. The completed cast debits10 through the existing verified native cost/truncation formula, despite authored cost11.

The passing captures are in local/pet-summon/20261103-212340/: live24.60 seconds, cold14.98 seconds. Initial interface/recharge fixture failures are kept separately and are not product or completion evidence. No client C/WASM change was required. The related nano/interest group passes115 roots/2354 results. A separate lifecycle/control run passes59 roots/757 results, including all seven pet handler checks. Vet and driver syntax checks pass. The seven retained native traces have no client errors or dropped events; exact resource, packet and ownership checks are recorded in local/pet-summon/validation.json. The same two-client scenario passes under the Go race detector, including cold recovery, in local/pet-summon/20261103-213917/ with seven more clean traces.