aorecomp

Anarchy Online classic in the browser

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


docs/engineer-robots.md (5722B)


Starter Engineer robot

Behavior

Feeble Automaton now completes the existing A5 Engineer starter dependency. Startup crystal43329 uploads nano43325. Casting reserves the normal nano cost (25 at the unmodified level-one fixture), waits for the original cast time and creates one QL1 shell43328 for four credits. The shell is Unique: another carried copy, including one in a backpack, prevents creation. Cash, capacity and Unique admission are checked again at completion. A failed completion refunds the nano reservation without issuing a shell or charging credits.

Right-clicking the issued or created shell consumes its single charge and creates one owned Feeble Automaton. Profession3, Matter Creation/Time and Space above7, and the packed attack-pet limit are required. Carried backpack contents use the same path. Bank and worn-item activation are not admitted.

The robot shares pet combat, follow/wait/behind, termination, owner/team reward attribution and enemy retaliation. It has no timed expiry; death or termination releases the attack-pet limit. Death removes the entity without loot, experience, corpse salvage or respawn. Disconnect/reconnect and cold startup retain its identity, resources and owner. Movement stays in memory between the existing checkpoints.

Creation commits shell, credits, nano reservation and recharge together. Activation commits shell consumption, NPC, ownership and allocator together. Pet creation now uses the inventory transaction's existing spawned-NPC path; mission encounter creation retains its mission association. Final readbacks reject ignored or rewritten resource/ownership writes before publication.

Original evidence and explicit alpha choices

Contract Original local evidence
Upload server/gamedata/items/items_002.yaml, crystal43329: OnUse53019 ->43325, Engineer and MC/TS gates
Formula items_167.yaml, nano43325: Drain53002(61,-4,-4,0), SpawnItemACG53064(ENAU,1,0), cast800/recharge200 centiseconds, nano-cost stat407=26
Shell items_002.yaml, shell43328: one charge, Set53026(03000000,8,0), SpawnPetACG53167(PT01,1,-1), Engineer/MC/TS/packed-limit gates
Right fist items_036.yaml,120652/120653: QL1..400 Engineer right fist, QL1 melee damage9..16, crit9, range2, attack/recharge235 centiseconds, MA against Evade
Body server/gamedata/monsters.yaml, Android17649: mesh15215 and death animation17340

Stat61 is cash; current nano is214. The ordinary cast-cost calculation preserves the native float32 arithmetic, so authored26 becomes25 without cost modifiers. Both formula effects are admitted together, including their complete raw tails. The shell's complete PT01 tail is checked too. These are two exact supported contracts, not a generic ACG implementation.

The original ENAU membership is missing. ENAU QL1 ->43328 is provisional, chosen because character creation already issues that shell (see creation evidence). Its QL200 partner46083 uses PT01. A separate Automaton shell96196 uses PT10 with a coherent QL1..25 family; its existence does not identify the formula's result.

Android17649, one right fist, 40 health, zero nano, AggDef75 and five-point MA/initiative/evade ratings are provisional alpha choices. No inspected record binds PT01 to this model, weapon or resource profile. The right fist avoids inventing a second weapon or executing the left fist's additional effect.

The shell's Set53026 is a generic stat assignment, not a deletion opcode. Its prefix/recipient binding remains unresolved. Consumption follows an explicit one-charge policy; it does not apply stat8 to the player. The authored lifetime -1 is represented as no expiry. Description prose about recovering robot parts does not establish a supported salvage contract.

Research was limited to the named shell/model/weapon binding question, using local original records, translated client code and retained creation/Set evidence. No proprietary binary was sent to an external tool. Reopen the mapping research only with original ACG membership/server data or a relevant historical measurement.

Verification

server/engineer_pets_test.go covers crystal upload, casting, shell activation, exact costs/ownership after cold startup, duplicate use, nonexpiry, failed writes and retry, capacity/cash/Unique changes during casting, invalid shell use, backpack activation and lethal retaliation followed by replacement.

TestBrowserEngineerRobot and tools/client/test_engineer_robot.mjs exercise real right-click upload/cast/use, two-client ownership, native picking and combat, retaliation, owner XP, reconnect, cold recovery and termination. The controlled 32-health Leet fixture takes two 16-damage hits; the robot takes one 8-damage hit, finishes at 32 health and credits 100 XP to its owner. The fixture supplies 10 credits and 35 nano; this proves costs and transaction behavior, not ordinary-play affordability. Screenshots include the provisional robot body.

November 5 validation: all 105 selected root tests (490 root/subtest results) passed in local/alpha-engineer/regressions.log, covering Engineer and shared pet, mission encounter/reward, crystal and resource-item paths. The final native run passed live/cold phases in 58.14 seconds; inspected captures and traces are in local/engineer-robot/20261105-154928/. go vet ./server/..., JavaScript syntax and diff whitespace checks passed. Owned browsers and temporary servers were closed after testing.

This closes the starter robot behavior gap, not the whole A5 gate: shop upgrades, remaining profession essentials and the bounded ordinary-play affordability check remain separate work.