aorecomp

Anarchy Online classic in the browser

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


docs/research-notes/nano-interrupt-research/findings.md (9107B)


AO 14.9.1 stat383: independent original-source audit

Conclusion: the identity, neutral default and complete authored source census are established. A stat383 interruption-probability consumer, arithmetic, random roll, trigger policy and authoritative historical-server behavior were not found within the bounded source/evidence search. These findings do not justify enabling stat383 implants or programs in the server.

Original identity and default

Complete authored source census

tmp_catalog.py covers all87611 original item/program resource identities: 83245 type1000020 items and4366 type1040005 programs. Their identity set exactly matches every definition in current server/gamedata/items/*.yaml. The original resource-index SHA256 is recorded in summary.json. Every640 selected complete payload and every40 matching uploader payload was read from the original RDB, SHA256-verified and reparsed with tools/data/ao_database.py:Database.read and tools/data/extract_items.py:parse_item. Every decoder field matched the YAML. sources.json binds all current YAML files by SHA256.

All640 integer383 candidates are real authored stat383 functions; there were no amount-only383 false positives. They comprise:

Source family Count Complete contract
Implants 588 One-shot OnWear53045 functions and authored wear criteria; all companions retained
Programs 38 Five ordinary383-only53012 buffs and33 profession-change contracts
Wearable devices 2 95514 QL10,95515 QL200 NCU Coolant Sink; OnWear53045 stat383=99,40
Clusters 12 166297..166308; authored53045 functions occur on event0; crafting sources, not wearable implants

Implants remain entirely rejected by the current server until an actual383 consumer exists. A counterfactual stat-only gate change would make412 whole contracts complete (103 each at qualities1,200,201,300), leaving176 rejected: absorption228/233/226/230 each24 and227/229/231/234 each20. Every remaining record has exactly one such unsupported companion stat. This is a catalog classification, not runtime admission or proof of an interruption rule.

Pure full-quality families (qualities1,200,201,300 in order):

Family IDs 383 values
Chest, Faded 177719..177722 2,-2,-2,-3
Leg, Shiny 191042..191045 5,-5,-5,-9
Left-Hand, Bright 193521..193524 3,-3,-3,-5

Programs are five ordinary buffs95521..95525, with383 amounts-27,-57,-34,-41,-51. They are Internal Focus, One Mind One Purpose, Engrossing Activity, Ignore External Events and Dedication of Thought. Their383 function is53012 on event0, target3, with trailing zero bytes. Their original descriptions state a reduction in interruption chance of the matching percentage. That prose establishes intended benefit, not the actual roll formula or sign handling at a consumer.

The other33 programs are11 False Profession,11 Assume Profession and11 Mimic Profession variants. They carry visual-profession function53110 selecting368, cost318/range381/interrupt383 percentage functions, initiative149 and six nano skill modifiers. Exact program IDs, every function and requirement are retained in records.json and summaries.json; summary.json:program_groups retains the complete companion amount sets. Special visual-profession function53110 remains unsupported independently of383, so no partial modifier subset may be admitted.

There are40 authored uploaders:38 ordinary per-program crystals and two developer test items38512 (TESTITEM: All Agent NFs) and38519 (TESTITEM: All Meta-Physicist NFs). crystals.json preserves every complete uploader; the two test uploaders must not be confused with ordinary gameplay crystals.

tmp_native_audit.py searched all556 maintained client/game/*/*.c files for case-insensitive exact decimal383/hexadecimal17f tokens. It found eight hits: five kkr registration statements (including overlapping lifted symbols), plus three ddr UI/object statements. No hit reads actor stat383 to decide whether to interrupt a cast. The search does not cover synthesized/dynamic selectors, and no broader absence claim is made. File hashes and each exact hit, line and containing symbol are in maintained-c-immediate-383-search.json.

The retained report search is limited to exactly:

retained-search.json preserves hashes, record counts, Evidence IDs and bounded contexts for hexadecimal17f/interruption matches. The stat383 matches are the default-table record and display registration (combat-client-pass2-decompiles-10 record1, Evidence ev_1a3cb7e77a4267701716a4ec28b32bf1ad4e1f9c934ef18e59cc10785519c56f). These reports do not establish a stat383 probability consumer.

There is a concrete interruption-result handler, original FUN_10066b20, in local/reports/combat-client-decompiles-20.json:items[1], wrapper Evidence ev_b222a29a2449ed800e75228fac8a9ad597f8c73dce740b461b7fae780389796b. Maintained source client/game/kkr.dll/lifted-0030.c:sub_36066B20 computes a cost refund from effective stat318 and nano cost407, adds it to current nano214, and displays the interrupted-execution message. It never reads383 or rolls an interruption chance. Maintained lifted-0033.c:sub_3606FA30 calls it at36070419 from a dispatcher branch, passing an identity and program. This establishes an interruption-result/refund path; it does not establish who decided interruption or how often that branch should be taken. The full dispatcher branch's wire event selector was not resolved in this narrow audit.

Open contract and safe next boundary

Unresolved: incoming-hit vs movement triggers; chance base; attacker/defender skills and damage influence; percentage direction and combination; caps/minima; random distribution and comparison; uninterruptible flags; cancellation/refund timing; and original server-side authority. In particular, descriptions and labels are insufficient to reconcile positive device99/40 with negative ordinary-buff amounts and signed implant endpoints. Do not substitute an assumed baseChance*(100+383)/100, additive percentage points, guaranteed interruption, or guaranteed immunity.

The reusable completed result is the full original source/companion census and zero-default stat-storage rule. A future admission change first needs evidence for an actual historical interruption policy or an explicitly chosen server policy, followed by complete lifecycle verification. No tracked source, tests, server/browser/database state or prior-task files were changed by this audit.

Parent admission follow-up

Read-only inspection of current server/stat_equipment.go:ownedItem.isStatEquipment shows that its broad type1/2 OnWear gate does not filter stat consumers. Thus the two383 NCU Coolant Sinks can already be admitted without a probability consumer. This is a pre-existing broad-admission gap, distinct from the strict implant predicate, and is now explicit in the root TODO. No device admission or consumer change is part of the range-implant milestone.