commit ba311f2eec64b3ac29458d692e85b19a716de0f4
parent 03073b27de8ff1584c3eb53904b9fe028f52d261
Author: anon <anon@example.com>
Date: Mon, 9 Nov 2026 02:49:17 +0000
Retain cited research and clear obsolete local fixtures
Diffstat:
134 files changed, 10759 insertions(+), 100 deletions(-)
diff --git a/DEVELOPERS.md b/DEVELOPERS.md
@@ -698,6 +698,16 @@ The server may need network access on its first build to download Go modules.
| `local/` | Ignored extraction data, development reports, screenshots, test fixtures, and downloaded references. |
| `docs/` | Architecture, reverse-engineering evidence, and validation history. |
+`local/` is disposable and was cleared along with obsolete game installations
+and archived experiments. Tests can recreate their output directories;
+`make wasm` recreates its downloaded audio dependencies under `local/wasm/`.
+The selected 14.9.1 inputs, `toolchains/`, current build outputs, server assets
+and mutable `data/` remain outside it. Cited text research is retained in
+[research notes](docs/research-notes/README.md); the current unfinished browser
+verification is recorded in the [checkpoint](docs/browser-test-checkpoint-20261108.md).
+Historical `local/` capture and report paths elsewhere in the docs no longer
+refer to retained files. See [tools](tools/README.md) for legacy tool inputs.
+
The early standalone 14.9.1 sources are preserved by the annotated Git tag
`ao-14.9.1-source-baseline` (source directory `decompiled/`).
All 34 module extraction hashes match the current baseline. See the
diff --git a/docs/README.md b/docs/README.md
@@ -43,6 +43,11 @@ both render the approved BB view with clean inspected chat fonts. Earlier
version research remains historical evidence; use the protocol and validation
documents for the specific tested build.
+The obsolete installations and raw `local/` experiments were deleted during
+workspace cleanup. Historical artifact paths in these documents are records,
+not an inventory of available files. The [retained research notes](research-notes/README.md)
+preserve cited text findings; maintained source, tools and the 14.9.1 inputs remain.
+
## Evidence standard
- A decoded field or procedure should refer to original bytes, a retained
diff --git a/docs/actor-run-speed.md b/docs/actor-run-speed.md
@@ -45,7 +45,7 @@ handling out-of-range input. This server's shortest-form choice, byte through
255 and flagged short above it, is a reconstruction compatible with the
proven receiver. It is not an original-server capture.
-The retained source ledger is `local/actor-speed-research/native/README.md`:
+The retained source ledger is `docs/research-notes/actor-speed-research/native/README.md`:
15 complete original REA records and 10 validated citations. Principal reader
evidence is
`ev_9ba1ee861536b7169d3adbd6fb561ea6e850f0c230ea1bbb9d80c38d02a5dc59`;
diff --git a/docs/aimed-shot.md b/docs/aimed-shot.md
@@ -15,7 +15,7 @@ Command View on a shortcut. Its Q-then-special instructions do not establish the
concealment admission rule. The tested alpha path starts with Sneak, selects the
target, and presses O without first starting ordinary combat.
-Retained native evidence is in `local/old/player-frozen/research/sneak/README.md`.
+Retained native evidence is in `docs/research-notes/player-frozen/research/sneak/README.md`.
The original KKR SHA256 is
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
Special action19 sends CharacterAction163; acknowledgement162 causes the owner
diff --git a/docs/brawl.md b/docs/brawl.md
@@ -89,7 +89,7 @@ Player spawn packets now supply implicit Martial Arts100, Brawl142 and
[Dimach144](dimach.md), with Brawl endpoints70292/70293. NPC spawn profiles
retain their existing attack row.
The Brawl row creates the native actor-owned action. Exact source records and heap layout are retained in
-`local/brawl-research/native/action-availability.md`.
+`docs/research-notes/brawl-research/native/action-availability.md`.
## Evidence limits and implementation work
diff --git a/docs/browser-alternatives.md b/docs/browser-alternatives.md
@@ -1,5 +1,9 @@
# Browser execution alternatives
+Historical assessment: the maintained client now uses the 14.9.1 C reconstruction.
+The alternative runtime checkouts and their experimental edits were discarded
+with `local/`. They are not dependencies of the current build.
+
Assessment recorded on 2026-10-12. This is a source-based feasibility comparison,
not a performance benchmark or a claim that an alternative runs AO. No changes
were made to the Rust prototype or Go server during this investigation.
diff --git a/docs/browser-test-checkpoint-20261108.md b/docs/browser-test-checkpoint-20261108.md
@@ -0,0 +1,97 @@
+# Browser test crash checkpoint: November 8, 2026
+
+The run stopped during TestBrowserMissionCashResupply. This is a historical
+checkpoint, not a fresh validation of the current tree.
+
+The active TODO remains "Restore a green full test suite, including browser
+coverage." Completion requires every maintained browser family passing without
+opt-in skips. This checkpoint does not close that gate. No production code was
+changed in this task; these are test and fixture repairs.
+
+## Saved results
+
+- 155 JavaScript browser-host/harness unit tests passed, zero skips.
+- The WASM snapshot executable passed.
+- All 19 JavaScript real-browser scenarios have passing runs: the first survey
+ passed 18 and failed mobile creation; the complete repaired mobile test passed.
+- Current Go inventory: 173 families (original 171 plus TestAdminListsBrowser
+ and TestItemSourceMapBrowser). Latest complete results: 53 passed, 24 failed,
+ zero skipped. Three were interrupted and 93 are unattempted.
+- All six previously pending families passed: MPShopNanos, BasicShopWeapons,
+ Brawl, Burst, ConcreteCushionQualities and DepletedBackpackSplit.
+- The earlier full maintained Go/native/race checks predate this task. They
+ were not rerun at this checkpoint.
+
+The [exact inventory](browser-test-status-20261108.json) records all 173 names
+grouped by latest outcome, including interrupted and unattempted families.
+Raw logs and temporary runners were discarded with `local/`.
+
+## Repairs and their verification
+
+Already committed with complete passing reruns:
+
+- use Shift-wheel orbit in the basic weapon-shop browser test.
+- cushion test expects current Leet HP20 to19 for one damage, defers
+ recovery, uses default headless Chromium and walks to a visible shop mesh
+ inside the five-metre use range. Warm and cold phases passed.
+- mobile password mismatch uses a confirmation meeting minlength5,
+ so the mismatch handler is actually submitted and tested.
+
+Additional checkpointed repairs:
+
+- Twelve quality fixtures copy the NPC combat profile and explicitly use100HP,
+ preserving their exact damage expectations against a controlled target.
+ Fresh full Katana, Kerans, KineticAxe and LooseKatana families passed.
+ Aleph, EBeamer, EdgeLessKatana, Gripo and HomeDefender failed before this fix
+ was compiled and need full reruns. NovaFlow, Sledgehammer and SupportBeam
+ have not yet been attempted with it.
+- Corpse peer pickup, reentry, replay, refusal and team-order fixtures isolate
+ one Monster Part in a copied loot profile. Production Leets now also drop
+ gloves, so combatRoll0 generated two items and broke one-item fixtures.
+ Full reruns remain required for every affected family.
+- Dimach allows the real equip before POST /test-hold-attacks suppresses
+ ordinary attacks, and tracks the actual stocked item ID. Full rerun pending.
+- East Wind checks the current promised1000-credit reward (wallet1003), in
+ live, cold and final Go assertions. Full reward/cold rerun pending.
+- Engineer robot fixture gives its32HP target a matching32HP maximum to
+ preserve two full16-damage hits and retaliation. Full rerun pending.
+- Faction insurance fixture gives its100HP targets a matching maximum,
+ preventing idle regeneration from clamping them to20 before retaliation.
+ Warm/cold rerun pending.
+- Faction progression flushes its cross-zone fixture checkpoint before owner
+ partition, addressing shutdown foreign-key failures. Both sides need reruns.
+- Generated mission fixture enters via normal movement before partition to
+ prepare physical objectives, then restores the exterior checkpoint. Browser
+ traversal/pickup/exit still run normally. This repair remains unverified.
+- Ground-drop input waits for consumed right-button input and observed camera
+ pitch before world dropping. This input repair remains unverified.
+- Health drain expects the current20HP target to fall to10, including exact
+ cold/wire assertions. Owner heal/nano and peer isolation remain unchanged.
+ Full rerun pending.
+- StarterEquipment accepts both real Monster Part and gloves drops, clicks
+ each native corpse cell and verifies exact individual inventory allocation.
+ Production rolls and earned progression are unchanged. Full rerun pending.
+- InventoryGrid waits for world input readiness and uses default headless
+ Chromium while retaining the short viewport and all grid checks. This input
+ repair remains unverified.
+
+M10Qualities, MindPain and MinibullProfile failed shortly before the crash;
+their failures still require diagnosis. Do not count a prepared fix as a pass.
+
+## Resume
+
+Use the existing tools/client/game_test.mjs harness, serial heavy browser runs,
+and the browser setup in DEVELOPERS.md. Set `AO_GAME_TEST=1` and use a
+writable Go cache. Configure Node and its dependencies for the current machine.
+
+Rerun complete repaired/failed families and the three interrupted families:
+TestBrowserAnonymousPurchasesAreUsable, TestBrowserBackpackMedical and
+TestBrowserMissionCashResupply. Do not count selective subcases as full passes.
+Then run the93 unattempted families from the exact saved inventory.
+
+Write new logs and aggregate the latest outcomes, including a fresh run without
+a completion event as incomplete. Clean up task-owned processes after failures.
+
+Before closing the TODO: all173 complete passing outcomes without skips,
+appropriate required checks for the final changes, process cleanup and updated
+verification documentation. More browser coverage alone is not a gameplay change.
diff --git a/docs/browser-test-status-20261108.json b/docs/browser-test-status-20261108.json
@@ -0,0 +1,186 @@
+{
+ "total": 173,
+ "groups": {
+ "pass": [
+ "TestAdminBrowser",
+ "TestAdminListsBrowser",
+ "TestBrowserAimedShot",
+ "TestBrowserAquaanCorpseSlope",
+ "TestBrowserArmorRequirementBoundaries",
+ "TestBrowserBackpackClinic",
+ "TestBrowserBackpackEquipment",
+ "TestBrowserBackpackFullDeposit",
+ "TestBrowserBackpackNanoLearning",
+ "TestBrowserBackpackUploads",
+ "TestBrowserBackyardBank",
+ "TestBrowserBackyardExitExplanation",
+ "TestBrowserBankBackpackPreservesWornIdentity",
+ "TestBrowserBankedWeaponRecovery",
+ "TestBrowserBasicShopArmor",
+ "TestBrowserBasicShopNanos",
+ "TestBrowserBasicShopWeapons",
+ "TestBrowserBauCyberArmorQualities",
+ "TestBrowserBrawl",
+ "TestBrowserBulkReclaimColdRecovery",
+ "TestBrowserBurst",
+ "TestBrowserCityDoors",
+ "TestBrowserClosedBackpackSplit",
+ "TestBrowserCombatTurnPublication",
+ "TestBrowserConcreteCushionQualities",
+ "TestBrowserCorpseCreditsIgnoredCheckpoint",
+ "TestBrowserCourtyardInsurance",
+ "TestBrowserDepletedBackpackSplit",
+ "TestBrowserDepletedStackSplit",
+ "TestBrowserEffectiveArmor",
+ "TestBrowserElectronicumQualities",
+ "TestBrowserEquipmentReplacement",
+ "TestBrowserFallbackPlacementMelee",
+ "TestBrowserFirstAidQueuedHit",
+ "TestBrowserFullHealthReconciliation",
+ "TestBrowserGraftAndOrganicArmorQualities",
+ "TestBrowserHealingOverTimeQueuedHit",
+ "TestBrowserHealthBuffRefreshDuringIncomingHit",
+ "TestBrowserHealthPayment",
+ "TestBrowserImprovedHealingQueuedHit",
+ "TestBrowserIncomingEquipment",
+ "TestBrowserInspectionQueuedHit",
+ "TestBrowserInventoryLayoutTransitions",
+ "TestBrowserKatanaQualities",
+ "TestBrowserKeransQualities",
+ "TestBrowserKevlarArmorQualities",
+ "TestBrowserKineticAxeQualities",
+ "TestBrowserLeatherArmorQualities",
+ "TestBrowserLooseKatanaQualities",
+ "TestBrowserM103Qualities",
+ "TestBrowserMPShopNanos",
+ "TestBrowserMissionBackpackReturn",
+ "TestBrowserStarterMissionTargets"
+ ],
+ "fail": [
+ "TestBrowserAlephQualities",
+ "TestBrowserColdAlphaCorpsePickup",
+ "TestBrowserColdCorpsePickup",
+ "TestBrowserCorpseExpiryDuringNativePickup",
+ "TestBrowserCorpsePeerPickupClearsNativeSource",
+ "TestBrowserCorpsePickupRefusal",
+ "TestBrowserDimach",
+ "TestBrowserEBeamerQualities",
+ "TestBrowserEastWindMissionReward",
+ "TestBrowserEdgeLessKatanaQualities",
+ "TestBrowserEngineerRobot",
+ "TestBrowserFactionInsuranceCheckpoint",
+ "TestBrowserFactionLevelAndMissionRepeat",
+ "TestBrowserGeneratedMission",
+ "TestBrowserGripoQualities",
+ "TestBrowserGroundDropRefusal",
+ "TestBrowserHealthDrain",
+ "TestBrowserHomeDefenderQualities",
+ "TestBrowserInventoryGrid",
+ "TestBrowserM10Qualities",
+ "TestBrowserMindPain",
+ "TestBrowserMinibullProfile",
+ "TestBrowserPartiallyLootedCorpseSceneReentry",
+ "TestBrowserStarterEquipment"
+ ],
+ "incomplete": [
+ "TestBrowserAnonymousPurchasesAreUsable",
+ "TestBrowserBackpackMedical",
+ "TestBrowserMissionCashResupply"
+ ],
+ "unattempted": [
+ "TestBrowserBackpackDuringEquipment",
+ "TestBrowserBackpackStackJoinDuringPendingEquipment",
+ "TestBrowserBackpackStackSplitDuringPendingEquipment",
+ "TestBrowserBankDepositDuringEquipment",
+ "TestBrowserDefensiveRingWear",
+ "TestBrowserEmptyBackpackSplit",
+ "TestBrowserLootDuringEquipment",
+ "TestBrowserMissionKeyCopy",
+ "TestBrowserMissionKeyNameRoute",
+ "TestBrowserMissionPickupRemovesFloorModel",
+ "TestBrowserMissionWaypointExpiry",
+ "TestBrowserMovedClosedBackpackSplit",
+ "TestBrowserNPCCombatRecovery",
+ "TestBrowserNPCCreatureAppearances",
+ "TestBrowserNPCOutdoorWaterMotion",
+ "TestBrowserNPCOutfits",
+ "TestBrowserNPCRecoveredAppearances",
+ "TestBrowserNPCShops",
+ "TestBrowserNamedMissionKeyTrade",
+ "TestBrowserNanomageStarterCombatAndRecovery",
+ "TestBrowserNomadArmorQualities",
+ "TestBrowserNovaFlowQualities",
+ "TestBrowserOmniPolArmorQualities",
+ "TestBrowserOptionsResize",
+ "TestBrowserOutdoorNPCNavigation",
+ "TestBrowserOwnedItemUseDuringEquipment",
+ "TestBrowserPasswordOptions",
+ "TestBrowserPendingEquipmentEdit",
+ "TestBrowserPetAttack",
+ "TestBrowserPetDismiss",
+ "TestBrowserPetFollow",
+ "TestBrowserPetOwnerProtocol",
+ "TestBrowserPetRetreat",
+ "TestBrowserPetSummon",
+ "TestBrowserPetWait",
+ "TestBrowserPlayerCombatRecovery",
+ "TestBrowserPlayerInterestReentry",
+ "TestBrowserReclaimDuringEquipment",
+ "TestBrowserReclaimDuringPlayerTrade",
+ "TestBrowserReclaimPickupRefusal",
+ "TestBrowserReclaimWeapon",
+ "TestBrowserRemoteReload",
+ "TestBrowserReplacedBackpackSplit",
+ "TestBrowserReplacedStackSplit",
+ "TestBrowserScannerReclaimRefusal",
+ "TestBrowserSecondEquipmentMove",
+ "TestBrowserSelectedStackSplitRefusal",
+ "TestBrowserShopAvailability",
+ "TestBrowserShopEmptyTotal",
+ "TestBrowserShopSaleRefusal",
+ "TestBrowserShopTypedIdentity",
+ "TestBrowserSledgehammerQualities",
+ "TestBrowserSnakeJab",
+ "TestBrowserSocialSwimmingRefusal",
+ "TestBrowserStackJoinDuringPendingEquipment",
+ "TestBrowserStackJoinReviewedAnchors",
+ "TestBrowserStaleArmorMove",
+ "TestBrowserStaleBackpackStackJoin",
+ "TestBrowserStaleBackpackWithdrawal",
+ "TestBrowserStaleBankWithdrawal",
+ "TestBrowserStaleCarriedContainerDeposit",
+ "TestBrowserStaleContainedUse",
+ "TestBrowserStaleDropDuringEquipment",
+ "TestBrowserStaleHandDuringEquipment",
+ "TestBrowserStaleImplantMove",
+ "TestBrowserStaleMemoryMove",
+ "TestBrowserStaleOrdinaryMove",
+ "TestBrowserStalePlayerTradeOffer",
+ "TestBrowserStaleReclaimWithdrawal",
+ "TestBrowserStaleSourceDuringEquipment",
+ "TestBrowserStaleStackJoin",
+ "TestBrowserStaleWeaponResources",
+ "TestBrowserStaleWornContainerDeposit",
+ "TestBrowserStaleWornMove",
+ "TestBrowserStaleWornResources",
+ "TestBrowserStaleWornSourceDuringEquipment",
+ "TestBrowserStarterShops",
+ "TestBrowserStationaryClinic",
+ "TestBrowserSteelRibbedArmorQualities",
+ "TestBrowserSupportBeamQualities",
+ "TestBrowserTeamIgnoredDissolution",
+ "TestBrowserTeamLootOrders",
+ "TestBrowserTokenBoardWear",
+ "TestBrowserTowerWearAdmission",
+ "TestBrowserTradedWeapon",
+ "TestBrowserTrainingSnakeCorpse",
+ "TestBrowserVektorQualities",
+ "TestBrowserWalkingFinalApproach",
+ "TestBrowserWeaponHitAdmission",
+ "TestBrowserWeaponWearAdmission",
+ "TestBrowserWorldResourcePickup",
+ "TestBrowserWornContainerDeposit",
+ "TestItemSourceMapBrowser"
+ ]
+ }
+}
diff --git a/docs/catalog-weapons.md b/docs/catalog-weapons.md
@@ -43,7 +43,7 @@ observers retire it immediately. A successful later equip retires the owner's
old dynel before moving and recreating it. Native row deletion needs a separate
dynel despawn after the durable delete, including deleted bag children.
The original lifetime evidence is retained in
-`local/starter-weapon-research/inventory-reuse/findings.md`.
+`docs/research-notes/starter-weapon-research/inventory-reuse/findings.md`.
## Reviewed Rusty pistol qualities
@@ -82,7 +82,7 @@ For example, QL5's rounded linear value 2832 becomes final value 2525. Other
properties use the nearer endpoint, with the midpoint choosing high, following
`FUN_100894c0`. `FUN_100f1200` supplies the instance's selected quality. Original
module SHA-256 is recorded below; bounded evidence, payload hashes and confidence
-limits are retained in `local/weapon-quality/catalog-audit.md` and
+limits are retained in `docs/research-notes/weapon-quality/catalog-audit.md` and
`local/weapon-quality/native-evidence.json`.
Player and NPC combat share one immutable quality-adjusted weapon definition.
@@ -124,7 +124,7 @@ reload leaves 20 rounds and 79 bullets. Removal retires only the observer's dyne
re-equip preserves identity and resolves the same numbers. No page exception or
adapter abort occurred. Only the two owned QA characters/items were removed;
unrelated stopped-world rows and SQLite integrity were verified. Captures,
-assertions and confidence limits are indexed in `local/weapon-quality/README.md`.
+assertions and confidence limits are indexed in `docs/research-notes/weapon-quality/README.md`.
The complete server suite passes 1,421 roots/14,995 results; gamedata passes
23 roots/50 results. The affected selection passes 419 results, final race
@@ -137,7 +137,7 @@ is retained in `local/weapon-quality/verification.json`.
Original `kkr.dll` SHA-256:
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
Bounded REA evidence and the observed/inferred/unknown ledger are retained in
-`local/starter-weapon-research/findings.md` and `native-evidence.json`.
+`docs/research-notes/starter-weapon-research/findings.md` and `native-evidence.json`.
- WeaponItem initialization `100abb20` supplies omitted AmmoType 420 as -1.
The HasEnergy flags setter `1009f390` initializes absent Energy 26 and Clip
@@ -317,7 +317,7 @@ partial or mismatched nonzero endpoints remain rejected. Zero-valued wield
thresholds contribute no OE penalty and cannot cause integer division by zero
after skill loss. The zero edge follows the native masked-x87 conversion
model, not a native zero-denominator branch; see
-`local/starter-weapon-research/oe-zero-findings.md`.
+`docs/research-notes/starter-weapon-research/oe-zero-findings.md`.
Existing equipment, ranged, special and atomic-outcome suites
remain applicable to the shared paths.
@@ -341,7 +341,7 @@ identity pair unchanged to CharacterAction112. The observed live Meta Shield
request carries `(0,0)`, so deletion accepts an omitted pair while retaining
source ownership/page/slot checks and exact matching of supplied endpoints.
The native evidence is retained in
-`local/starter-weapon-research/delete-auxiliary-findings.md`.
+`docs/research-notes/starter-weapon-research/delete-auxiliary-findings.md`.
A full server restart and fresh native clients restored the same shield/rifle
identities, exactly 10 shield AC and 10 loaded rifle rounds in both views,
diff --git a/docs/character-creation.md b/docs/character-creation.md
@@ -220,7 +220,7 @@ grants the profession's crystals above and its weapon/action in ordinary
inventory. Native creation defers the faction map and gifts until Hall
departure. Nothing is pre-equipped or prelearned. Original resources and the
bounded source search are retained in
-`local/browser-creation-flow-research/loadout-ledger.md`.
+`docs/research-notes/browser-creation-flow-research/loadout-ledger.md`.
Allocation/persistence does not complete the starter items' gameplay support.
Most solar weapons, startup crystals, the two startup healing items, maps,
diff --git a/docs/character-info.md b/docs/character-info.md
@@ -136,7 +136,7 @@ their native names. The native serializer and loader read and write those bytes
directly. Missing files remain absent until their native writers create them.
Complete original exports,
matching snapshots and the save/loader evidence ledger are retained in
-`local/knowledge-research/persistence.md`.
+`docs/research-notes/knowledge-research/persistence.md`.
## Verification
diff --git a/docs/chat-metadata.md b/docs/chat-metadata.md
@@ -66,7 +66,7 @@ DDR click path100052c0 establish link attachment and information-window events.
DDR command1000d540, resolver10002450 and text loader10001ce0 establish custom
voice production and local-file requirements. Complete exports, matching
snapshots and 57 validated citations are retained in
-`local/chat-metadata-research/metadata.md`, `voice-playback.md` and their
+`docs/research-notes/chat-metadata-research/metadata.md`, `voice-playback.md` and their
manifest. Original MMR queue10002f50 and initializer10001210 establish the
filename field and its neighboring state byte. Static client
evidence does not establish original network-service policy.
diff --git a/docs/combat-client-effect-handlers.md b/docs/combat-client-effect-handlers.md
@@ -241,7 +241,7 @@ The inspected descriptor branches do not compute damage or roll53089 chances.
Resource-selected subclasses, virtual callbacks and historical server behavior
remain bounded unknowns. Complete maintained-C function boundaries, hashes and
reused original Evidence IDs are retained in
-`local/weapon-contract-research/native-descriptors/findings.md`.
+`docs/research-notes/weapon-contract-research/native-descriptors/findings.md`.
The NPC controller helpers `1005b010` through `1005b19c` establish those state
and feature changes. They do not supply an NPC hate table or authoritative
diff --git a/docs/combat-healing-delivery.md b/docs/combat-healing-delivery.md
@@ -79,7 +79,7 @@ It does not enumerate computed/table-driven registrations across the entire
AAR registry, prove live UI initialization, or establish the original server's
publication schedule. The retained original records, complete maintained-source
extracts, dispatch checks and exact coverage limits are in
-`local/combat-heal-impact-report-research/README.md` and `subscribers.md`.
+`docs/research-notes/combat-heal-impact-report-research/README.md` and `subscribers.md`.
No native queue change or server healing policy follows from this result.
## Original-server capture and period display search
@@ -169,7 +169,7 @@ backlog conditions, states 2 and 6 take the same receive branch. The state-6
predicate only compares the field; the selected timer-rebinding helpers do
not consume queued results. Bounded searches of maintained instruction bodies
do not exclude computed or imported writers. The retained evidence and exact
-search limits are in `local/heal-timing-followup/holder/README.md`.
+search limits are in `docs/research-notes/heal-timing-followup/holder/README.md`.
The ordinary player animation waits for an unread server result. Its earlier
timer predicate is called, but that return is not tested before the ordinary
@@ -184,7 +184,7 @@ These distinctions prevent treating packet arrival, timer release, animation
impact and authoritative HP resolution as one event. They do not justify a
fixed reconciliation delay or a change to native queues. Original-server
publication and healing ordering remain unresolved. Complete retained-source
-records and scope are in `local/heal-timing-followup/publish/README.md`.
+records and scope are in `docs/research-notes/heal-timing-followup/publish/README.md`.
The Funcom/Simula paper
[Network Traffic from Anarchy Online](https://web-backend.simula.no/sites/default/files/publications/Simula.simula.1162.pdf)
diff --git a/docs/corpse-scene-audit.md b/docs/corpse-scene-audit.md
@@ -52,7 +52,7 @@ The maintained driver is `tools/client/test_corpse_reentry.mjs`. The short
checkpoint completes in about 17 seconds. Captures, exact ledgers, source hashes,
fixture failures and limits are retained in
`local/corpse-scene-reentry/focused-partial-verification.json` and
-`local/corpse-scene-reentry/focused-partial-reentry.md`. The maintained scenario
+`docs/research-notes/corpse-scene-reentry/focused-partial-reentry.md`. The maintained scenario
now also covers the native range-close notification below. Generic slope
placement and broader streaming remain open.
diff --git a/docs/critical-hits.md b/docs/critical-hits.md
@@ -43,7 +43,7 @@ formatting and death are fixture boundaries. The actual critical text formatter
is outside the C contract. Retained static evidence for its result-5 branch is
`ev_16fbb07444de249fd19ed14114c99abb43239d8f64214cc0e4494b36dc8a7c77`;
the complete routing evidence and boundary list are in
-`local/critical-hit-research/result-contract.md` and
+`docs/research-notes/critical-hit-research/result-contract.md` and
`local/reports/combat-outcomes-1491-evidence.json`.
## WASM presentation check
@@ -93,7 +93,7 @@ but not the hidden baseline or its complete combination with evades and other
defenses. Sniper's Friend modifies range stat 380, not critical chance.
The bounded follow-up found no stronger target-era numerical proof. Exact
source dates, provenance and search limits are retained in
-`local/critical-hit-research/period-sources.md`.
+`docs/research-notes/critical-hit-research/period-sources.md`.
## Current server reconstruction
diff --git a/docs/cyber-armor.md b/docs/cyber-armor.md
@@ -39,7 +39,7 @@ corroborates Intelligence/Psychic Cyber armor requirements qualitatively.
The local mirror's Waitt/Bau pages were touched in 2007 and its Living Cyber
page in 2019; these are separate families. Later acquisition guides do not
establish a 14.9.1 selection table. The bounded research ledger is
-`local/cyber-armor/README.md`; production stock and reward pools are unchanged.
+`docs/research-notes/cyber-armor/README.md`; production stock and reward pools are unchanged.
## Verification
diff --git a/docs/fast-attack.md b/docs/fast-attack.md
@@ -36,7 +36,7 @@ special feedback. The server sends slot6, damage, ammo-1, target identity,
skill147 and weapon death reason4 for a kill. The result has no critical/miss
field. Shared CharacterAction170/164 publishes/restores/clears the lock by147.
Exact original records and coverage limits are in
-`local/fast-attack-research/native/ledger.md`.
+`docs/research-notes/fast-attack-research/native/ledger.md`.
## Recharge evidence and reconstruction policy
@@ -123,7 +123,7 @@ action147 while preserving the lock. Re-equipping the same axe restored slot6,
weapon identity164 and locked action147; its remaining lock fell from127 to121
seconds without resetting. Both clients received the item retirement, and the
owned item retained count1/ammo0 across every inventory/equipment round trip.
-Native source evidence is in `local/fast-attack-research/native/re-equip.md`.
+Native source evidence is in `docs/research-notes/fast-attack-research/native/re-equip.md`.
All three browser runs reported no page errors or unimplemented adapters.
Their contexts were closed, only the owned characters/item were removed, and
diff --git a/docs/feature-backlog.md b/docs/feature-backlog.md
@@ -665,7 +665,7 @@ unverified mass/deletion/reclaim policies are in [backpacks](backpacks.md).
storage are verified;
triggers, chance arithmetic, signs, caps and server policy remain unknown.
Complete payloads, blockers and the bounded native search are retained in
- `local/nano-interrupt-research/findings.md`. Do not infer a probability formula
+ `docs/research-notes/nano-interrupt-research/findings.md`. Do not infer a probability formula
from descriptions or grant only the implemented parts of mixed contracts.
- [ ] [P2] Recover implant interpolation contracts and original endpoint pairing.
Check representative requirements, signed bonuses and native proxy templates
@@ -704,11 +704,11 @@ unverified mass/deletion/reclaim policies are in [backpacks](backpacks.md).
consumers. All five solar starters have event10 descriptors, so a blanket
non-OnWear rejection would discard already supported starters. Complete
original contracts, hashes and remaining questions are retained in
- `local/weapon-contract-research/findings.md`.
+ `docs/research-notes/weapon-contract-research/findings.md`.
Native conditional wear/removal samples requirements independently and can
leave signed modifier offsets until owner reconstruction. Establish generic
applied-effect and owner/observer synchronization semantics before enabling
- conditional weapons; see `local/weapon-contract-research/conditional-native-lifecycle.md`.
+ conditional weapons; see `docs/research-notes/weapon-contract-research/conditional-native-lifecycle.md`.
- [x] [P2] Refuse weapon wear with unimplemented automatic resource-hit effects.
A short native checkpoint equipped Neleb's Notum Battlerod and added 50 maximum
nano while omitting its authored event5 nano hits. All four resource-hit
@@ -864,7 +864,7 @@ capacity checks are recorded in [belts and NCU](belts-ncu.md).
clocks are308/308cs at raw slider-100 and100/100cs under Call on Insanity.
Establish original server selection and use shared template interpolation;
do not patch individual programs or infer an MA curve from this client
- construction. See `local/aggdef-nano-fist-clock-research/findings.md`.
+ construction. See `docs/research-notes/aggdef-nano-fist-clock-research/findings.md`.
- [x] Replace the approximate melee range check. Check: two actors at known
positions and sizes are accepted or rejected at the recovered range boundary.
- [x] [P0] Reject attacks through solid obstructions. Ordinary swings, Fast/Fling
@@ -2143,7 +2143,7 @@ introduction and starting-item gameplay remain open below.
packages now have a provisional basic-weapon/Budget supplier subset; exact
historical booth bindings remain unresolved. Reuse
the item/vendor hashes, descriptors and placements in
- `local/charged-shop-research/catalog/README.md` and the period source audit.
+ `docs/research-notes/charged-shop-research/catalog/README.md` and the period source audit.
- [x] Sell one inventory item. Check: ownership and credits change once and
repeating the request cannot sell the same item twice. The original Omni
and Clan starter terminals and restored room terminals support atomic sales,
@@ -2940,8 +2940,8 @@ client rendering fixes and checks are in [nano damage](nano-damage.md).
offline/remote members, mode/leadership changes on existing remains and
restart. Commit Alpha advancement with corpse assignment, including Fling.
The original command/feedback protocol is retained in
- `local/team-loot-research/wire-audit.md`; unresolved policies are listed in
- `local/team-loot-research/server-audit.md`.
+ `docs/research-notes/team-loot-research/wire-audit.md`; unresolved policies are listed in
+ `docs/research-notes/team-loot-research/server-audit.md`.
All/Leader/Alpha commands, feedback and durable captured rights now work.
Alpha advancement shares every killing-outcome transaction, including the
ranged round, nano cost and Fling lock; cursor/corpse/commit faults and retries
@@ -3501,7 +3501,7 @@ and unresolved indoor lifecycle are explicit in [flight](vehicles.md#yalmaha-fli
Master Engineer, Level 150 Meta-Physicist/Spiritual Leader and Level 1
Soldier/Militiaman, including injected mode bytes 1 and 141 with restoration.
See [player information](character-info.md), `local/reference-debug/`
- and `local/reference-research/mode.md`.
+ and `docs/research-notes/reference-research/mode.md`.
- [x] Persist Knowledge references in the browser using the original native
format and save timing. Check: player references and their descriptions
survive reload/reconnect and remain separate between characters. Native
@@ -3528,7 +3528,7 @@ and unresolved indoor lifecycle are explicit in [flight](vehicles.md#yalmaha-fli
and `/me` no longer disconnect; mode3 uses native emote display and vicinity
range. Complete/fragmented WebSocket regressions, malformed packets, spoofed
identity/metadata, range and history checks cover the corrected boundary.
- See [chat protocol](protocol.md) and `local/ignore-research/text-message.md`.
+ See [chat protocol](protocol.md) and `docs/research-notes/ignore-research/text-message.md`.
- [ ] [P3] Resolve chat-history replay fidelity and Ignore. The custom login replay
sends S2C36 system text without sender IDs, bypassing the native ignore filter.
Establish the original reconnect/scrollback behavior before choosing a replay
@@ -4117,7 +4117,7 @@ with payloads and known client/server provenance.
page-ending 480x480 fixture aborts with the old code in paged native memory
and WASM, then passes with the fix. Cover odd/even widths, padding, empty
bitmaps, alpha and preserved calling convention in both native memory modes.
- Evidence: `local/mission-item-reward-research/client-crash-audit.md` and
+ Evidence: `docs/research-notes/mission-item-reward-research/client-crash-audit.md` and
`bitmap-before*.log`. The earlier incomplete ErrorEvent capture in
`local/mission-retirement/event-crash-*` cannot independently establish that
historical run's cause; retain it separately from this reproducible failure.
@@ -5064,7 +5064,7 @@ and server restarts. Turn every reproduced bug into a focused regression test.
maintained controller waits now await resolved values. A negative control
reproduces the false result; both focused Node regressions pass. Four short
WASM scenarios pass through actual storage-failure/retry and shock boundaries.
- See `local/async-native-waits/README.md` and the harness in `DEVELOPERS.md`.
+ See `docs/research-notes/async-native-waits/README.md` and the harness in `DEVELOPERS.md`.
- [ ] [P1] Audit disconnects, retries and failure handling across these features.
Cover transport replacement, stale sessions, action replay, database failures
and concurrent requests; success must follow the durable significant change.
@@ -5316,7 +5316,7 @@ and server restarts. Turn every reproduced bug into a focused regression test.
closing extra clients restored it. An original input-frame fixture reproduces
RightPress becoming RightHold before binding dispatch at a one-second frame
delta. Measure live timing and establish the intended slow-frame behavior
- before changing the adapter. Evidence: `local/team-leadership-smoke/menu-audit.md`.
+ before changing the adapter. Evidence: `docs/research-notes/team-leadership-smoke/menu-audit.md`.
The Team chat run also reproduced the missing popup with hardware OpenGL
on the GPU, including a single remaining WASM page; hover mode25 was
present. Closing extra pages did not resolve this occurrence. Failed-attempt timing
diff --git a/docs/first-aid.md b/docs/first-aid.md
@@ -260,7 +260,7 @@ remote-info base carries no execution clock or weapon-impact barrier. The
Anarchy input throttle handles bulk snapshots, without waiting for weapon
results. Batching messages cannot supply the missing ordering against future
animation callbacks. Exact targets, procedures, evidence and limitations are
-in `local/weapon-impact-research/common-dispatch.md`; both owned sessions were
+in `docs/research-notes/weapon-impact-research/common-dispatch.md`; both owned sessions were
closed. This excludes that specific lead, not every possible healing route.
Public implementation comparisons also leave delivery unresolved.
diff --git a/docs/ignore.md b/docs/ignore.md
@@ -52,7 +52,7 @@ that bounded finding does not establish every original history feature.
Complete original DDR/OOR/BR exports, matching snapshots, native function
dependencies and a ledger of 36 validated Evidence citations are retained in
-`local/ignore-research/ignore.md` and `manifest.json`. Key records are OOR Save
+`docs/research-notes/ignore-research/ignore.md` and `manifest.json`. Key records are OOR Save
`ev_fd1979ad3c93fbf6c2212d3e9ce34df536675a0b3d186207df22b6b54b86fdbc`,
DDR command parser
`ev_fe429984672f71b88db53803eba85385817137f25418ea7c16ce041c00bd3556`,
@@ -117,7 +117,7 @@ persists immediately after removal agrees with this original cache behavior;
the recovered path does not justify adding immediate invalidation.
The matching DDR SHA256, original static evidence IDs, full export and snapshot
-are retained in `local/ignore-badge-followup/README.md`, `evidence.json` and
+are retained in `docs/research-notes/ignore-badge-followup/README.md`, `evidence.json` and
`snapshot.json`. The constructor is
`ev_974a7d0dcf34eb3cce5f0e72705fb0ad128c7b1ada860156fb37afaf3c096147`;
the selection rebuild is
diff --git a/docs/inventory.md b/docs/inventory.md
@@ -420,7 +420,7 @@ are in `dependency-evidence.json` in that directory. These records are bound
to original KKR SHA256a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
The correction deliberately adds the resource refresh to the original modifier
path. Exact runtime ordering, discarded experiment and verification are recorded
-in `local/weapon-nano-rollover/README.md` and `validation.json`. Earlier partial
+in `docs/research-notes/weapon-nano-rollover/README.md` and `validation.json`. Earlier partial
repair evidence remains in `local/stale-weapon-resources/`.
## Native visual order
@@ -957,7 +957,7 @@ Attack action without losing its inventory identity or count. The broader
starter-weapon test exposed the separate missing-dynel possession check;
[catalog weapons](catalog-weapons.md) describes its corrected lifetime. Original full
update activation and despawn evidence is retained in
-`local/fast-attack-research/native/re-equip.md`.
+`docs/research-notes/fast-attack-research/native/re-equip.md`.
### Retained weapon death and reclaim
diff --git a/docs/loot-quality-ranges.md b/docs/loot-quality-ranges.md
@@ -60,7 +60,7 @@ ranges. The searchable guide text was available but a subsequent direct fetch
failed. Much later [player accounts](https://forums.funcom.com/t/seeking-info-on-finding-ql-item-to-the-correct-dyna-boss-level-range/227584)
disagree about fixed-level and percentage ranges; they do not establish 14.9.1
selection rules. Bounded source notes and access limitations are retained in
-`local/loot-quality-research/selection-evidence.md`.
+`docs/research-notes/loot-quality-research/selection-evidence.md`.
The hardware WASM run also killed an unchanged full-health level-2 Tir County
Leet through seven normal Winter's Bite casts. It awarded 100 XP and five credits
diff --git a/docs/mission-encounters.md b/docs/mission-encounters.md
@@ -69,7 +69,7 @@ identities differ. Our native routes target self, excluding that branch.
Shared QQR `Vehicle::Run` still invokes surface alignment after integration.
Evidence and exact addresses are retained in
`local/npc-pursuit-research/followSteering.json` and
-`local/mission-encounter-research/integration-audit.md`.
+`docs/research-notes/mission-encounter-research/integration-audit.md`.
The original side-passage regression starts at (15,.011,15) and ends at
(12.5,.011,34). Straight steering stalls near (14.018,.011,20.092). Both the Leet
@@ -129,7 +129,7 @@ particular token, pay XP, or grant several copies. The exact kill threshold,
chance formula, grey-enemy denominator, faction/backyard exceptions and completion
XP arithmetic have not been recovered. Do not infer them from later approximate
player advice. Extracted descriptors, contemporary source notes and uncertainty
-are retained in `local/mission-encounter-research/token-eligibility.md` and
+are retained in `docs/research-notes/mission-encounter-research/token-eligibility.md` and
`original-token-records.json` there.
Funcom's [14.0 release notes, mirrored on April 11, 2002](https://www.gamereactor.no/anarchy-online-oppdaterer-til-v140/),
diff --git a/docs/movement.md b/docs/movement.md
@@ -92,7 +92,7 @@ Addresses use its original image base 0x10000000.
| Mouse movement sender / release sender | 0x10049f10 / 0x1004a540 |
| Network sampling decision | 0x1004a950 |
-Retained research: `local/rotation-research/README.md`, `evidence.json`, and
+Retained research: `docs/research-notes/rotation-research/README.md`, `evidence.json`, and
the native batch and writer-assembly exports. Principal REA evidence:
`ev_07887b48bc8cfd3e54e4bac7ea7c45ecd9c3d338403ff202eee803de9cbe194d`
and `ev_b7fca2382c4a0f424443dba477896a201d711b7d9bad3fc6d08c0d45b9cb05b8`.
diff --git a/docs/nano-armor.md b/docs/nano-armor.md
@@ -80,7 +80,7 @@ their HP behavior under incoming queued weapon damage retains the existing
Original KKR SHA256 is
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
The bounded retained-evidence ledger, source hashes and exact evidence IDs are
-in `local/ac-nano-research/native/README.md`. No fresh native binary was opened
+in `docs/research-notes/ac-nano-research/native/README.md`. No fresh native binary was opened
or exported, and no client implementation change was required.
## Verification
diff --git a/docs/nano-buffs.md b/docs/nano-buffs.md
@@ -271,7 +271,7 @@ death presentation, the removals, corrected resource maxima and final resource
values. Both owner and observers receive removal. Native active membership
checks prevent duplicate subtraction. Resurrection and reconnect replay no
removed program. The complete 96-record evidence export and limitations are
-in `local/nano-death-research/wire.md` and its adjacent evidence file.
+in `docs/research-notes/nano-death-research/wire.md` and its adjacent evidence file.
Removal of these ordinary ability and regeneration programs is a selected server policy, not
a historical server capture. The client determines the removal protocol but
diff --git a/docs/nano-combat-buffs.md b/docs/nano-combat-buffs.md
@@ -84,7 +84,7 @@ an additional absolute foundation would double-count the native effect.
The original KKR SHA256 is
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
Exact retained evidence IDs, selected complete records and source hashes are
-in `local/damage-nano-research/native/README.md`; generic Modify evidence is
+in `docs/research-notes/damage-nano-research/native/README.md`; generic Modify evidence is
`ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405`.
No new native binary session or client implementation change was required.
diff --git a/docs/nano-control.md b/docs/nano-control.md
@@ -63,7 +63,7 @@ no spell-specific restoration value is needed. RunSpeed updates refresh the
attached vehicle. Movement scalar defaults/floors and every NPC route policy
remain separate from this modifier/inverse evidence.
-The ledger at `local/nano-root-research/native/README.md` links 26 complete
+The ledger at `docs/research-notes/nano-root-research/native/README.md` links 26 complete
matching original evidence records, 27 selected original decompiles and 38
maintained function extracts with source hashes. For example, RestrictAction
is in `ev_b36e6b8b14d9f960dd1705c8d5cd0779c3be3306d575aa456b07008bdb956f40`;
diff --git a/docs/nano-cost.md b/docs/nano-cost.md
@@ -75,7 +75,7 @@ independently verified in `local/nano-range-research/program-contract-ledger.jso
The source index SHA-256 is
`46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71`.
Complete records, before/after predicates, hashes and limits are retained in
-`local/nano-cost-research/catalog/README.md`.
+`docs/research-notes/nano-cost-research/catalog/README.md`.
Original KKR eligibility100646a0/10064839, refund10066b20 and raw-cost getter
10098bd0 share retained Evidence
@@ -85,7 +85,7 @@ modifier removal, skill-weight boundary and full arithmetic. It retains the
original KKR SHA-256
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0` and
the precise observation/inference limits in
-`local/nano-cost-research/native/README.md`.
+`docs/research-notes/nano-cost-research/native/README.md`.
Automated tests cover the exact fourteen-program/crystal census, complete framing
and criteria, upload/cast skill boundaries, exact affordability, signed worn
diff --git a/docs/nano-direct-damage.md b/docs/nano-direct-damage.md
@@ -72,7 +72,7 @@ of the runtime reader.
Original KKR SHA-256 is
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
The retained audit contains 25 complete original REA records and 13 checked
-citations in `local/direct-damage-nano-research/native/README.md`; no fresh
+citations in `docs/research-notes/direct-damage-nano-research/native/README.md`; no fresh
binary analysis session was opened.
Hit 53002 is server-owned: common executor `100bfb40` rejects it before effect
diff --git a/docs/nano-healing.md b/docs/nano-healing.md
@@ -64,7 +64,7 @@ server's damage-resolution and healing exchange unresolved.
Original target hashes, procedure addresses, exact evidence IDs, failed
lookups and complete exports are retained in
-`local/weapon-impact-research/common-dispatch.md` and the adjacent KKR/LLR
+`docs/research-notes/weapon-impact-research/common-dispatch.md` and the adjacent KKR/LLR
bundles. Both owned native analysis sessions were closed. This is static
analysis, not an original-server capture.
diff --git a/docs/nano-initiative-debuffs.md b/docs/nano-initiative-debuffs.md
@@ -67,7 +67,7 @@ Principal records are
(signed modifier arithmetic), and
`ev_a760dfc116df1dd38b0619334130d916b7706ee29c64a535cdef16ed448295a6`
(active add/remove). Full provenance and bounded findings are in
-`local/ice-flechette-research/native/README.md`.
+`docs/research-notes/ice-flechette-research/native/README.md`.
## Server state and reconstruction policy
diff --git a/docs/nano-periodic-damage.md b/docs/nano-periodic-damage.md
@@ -64,7 +64,7 @@ The current server waits one authored interval before the first tick, schedules
against successive deadlines, catches up overdue ticks and resets phase on
refresh. These are explicit reconstruction choices. A correlated original
server recording is still needed to verify them. The retained native ledger
-is `local/nano-dot-research/native/README.md`, with 25 complete matching
+is `docs/research-notes/nano-dot-research/native/README.md`, with 25 complete matching
original evidence records and maintained-source hashes. No fresh binary
analysis session or client change was needed.
diff --git a/docs/nano-range.md b/docs/nano-range.md
@@ -81,7 +81,7 @@ the bounded retained-report search contains its caller reference only.
Actual WASM casting rejected a selected recipient at12.736 metres for a
12-metre program before any cast19 request, corroborating that second gate.
The signed default/getter pipeline, coefficient bytes, input hashes and exact
-instruction findings are in `local/nano-range-research/native/ledger.md`.
+instruction findings are in `docs/research-notes/nano-range-research/native/ledger.md`.
The server deliberately mirrors the complete inspected client predicate. This does not
establish the historical server's tolerance, completion revalidation or
diff --git a/docs/native-picking.md b/docs/native-picking.md
@@ -42,7 +42,7 @@ REA evidence includes
(periodic selection) and
`ev_a95fa030788ce39fe2a8d22df6dea9264ed1c6f35e395f2a64cf9ccf89769791`
(pixel transform). Complete records, original DDR export observations and
-coverage limits are retained in `local/picker-timing-research/ledger.md`.
+coverage limits are retained in `docs/research-notes/picker-timing-research/ledger.md`.
## Verification
diff --git a/docs/omni-pol-armor.md b/docs/omni-pol-armor.md
@@ -51,7 +51,7 @@ Production shop stock, mission selections and loot membership are unchanged.
The controlled generated pickup verifies selected-quality delivery and retained
ownership, without asserting that the test creature historically dropped this
armor. The separate bounded loot-quality follow-up records remaining evidence
-gaps in `local/loot-quality-research/20261103-followup.md`.
+gaps in `docs/research-notes/loot-quality-research/20261103-followup.md`.
## Focused checks
diff --git a/docs/overequipping.md b/docs/overequipping.md
@@ -138,6 +138,6 @@ through x87; under masked exceptions and the recovered 64-bit conversion
contract, infinity/NaN cannot raise the accumulated tier. This zero-edge parity
is derived from the arithmetic model, not an observed native zero guard.
The source record and controlled x87 probe, including their limits, are retained
-in `local/starter-weapon-research/oe-zero-findings.md`.
+in `docs/research-notes/starter-weapon-research/oe-zero-findings.md`.
`TestZeroWeaponRequirementCannotDivideByZeroAfterSkillLoss` reproduces the panic
and checks skills -1, 0 and 1 against an original zero-threshold weapon.
diff --git a/docs/player-follow.md b/docs/player-follow.md
@@ -29,7 +29,7 @@ target without halting linear movement. Target loss sends CharDCMove stops 2 and
alone leaves its automatic throttle active. The matching direction event clears
throttle and halts without changing preferred walk/run mode; the other is ignored.
Complete receiver/listener/state-machine bodies are recorded in
-`local/player-follow-research/mass/cache/target-loss.md` (L01-L05).
+`docs/research-notes/player-follow-research/mass/cache/target-loss.md` (L01-L05).
A 60 Hz simulation snapshots every target before moving any follower,
so chains/cycles do not recurse or depend on Go map iteration. This tick rate is
a server scheduling choice verified against native movement, not a recovered
diff --git a/docs/player-trading.md b/docs/player-trading.md
@@ -7,7 +7,7 @@ ownership and restores the native first-free layout. The server uses original
client operations; the composed remote-template delivery sequence is a tested
reconstruction, not a recovered historical server implementation.
-Research is retained in `local/player-trade-research/native/README.md` and its
+Research is retained in `docs/research-notes/player-trade-research/native/README.md` and its
exported KKR/DDR/EER evidence. The shipped help file
`cd_image/text/help/The Trade Window.txt` independently describes both players
pressing ACCEPT, free gifts, entering cash with Enter, and the green opponent
@@ -74,7 +74,7 @@ Simply clearing acceptance cannot make the one-shot UI send Accept again.
This monotonic consent rule is server policy inferred from the native contract;
the historical server's exact policy remains unproven. The protocol has no
basket revision or session nonce. Source details and the superseded blanket
-freeze recommendation are in `local/player-trade-research/native/cash-consent.md`.
+freeze recommendation are in `docs/research-notes/player-trade-research/native/cash-consent.md`.
## Restrictions and peer rows
@@ -94,7 +94,7 @@ feedback; failed restoration leaves the draft retryable and sends neither.
The IDs, reader and native chat delivery are recovered client behavior. Selecting
the participant according to the text's perspective is reconstruction policy;
historical server routing and multi-error priority remain unproven. Research:
-`local/player-trade-research/native/feedback.md`.
+`docs/research-notes/player-trade-research/native/feedback.md`.
Peer Add7 reaches 0x10061b40 then row constructor 0x1002d870, which explicitly
creates flags 0x22 and count one. QL and templates come from actual item
@@ -124,7 +124,7 @@ so cleanup clears the same number of ordinary slots from64. Complete also fills
the remote actor's ordinary inventory with outgoing local offers; those mirrors
are cleared afterward. Local owned rows are preserved. Without cleanup,
repeated sessions could fill invisible remote inventory and stop completion.
-Evidence: `local/player-trade-research/native/remote-template-delivery.md`.
+Evidence: `docs/research-notes/player-trade-research/native/remote-template-delivery.md`.
## Persistence, lifecycle and verification
diff --git a/docs/protocol.md b/docs/protocol.md
@@ -558,7 +558,7 @@ DDR prepares the counted text/mode before FFR sends it. Its public producer
derives subtype and mode together; the server validates those pairs. Native
whisper/shout text already includes `whispers: `/`shouts: `, which is preserved.
Text emotes use ordinary vicinity distance and native mode-3 display.
-See `local/ignore-research/text-message.md` for original serializer/parser
+See `docs/research-notes/ignore-research/text-message.md` for original serializer/parser
evidence, complete exports and declared-size captures separated from padding.
The native public metadata producer can append reference record0 (`BIIISS`)
diff --git a/docs/reclaim.md b/docs/reclaim.md
@@ -233,7 +233,7 @@ run had no client errors; screenshots and traces are retained under
`local/scanner-refusal/20261102-100943/`. These fixtures do not establish earned
progression or original server timing. The original catalog/lookup evidence is
in `local/scanner-refusal/`; the exact activation bytes and wire registration
-are retained in `local/player-trade-research/native/feedback.md`.
+are retained in `docs/research-notes/player-trade-research/native/feedback.md`.
`server/reclaim_test.go` covers the level 9/10 boundary, equipment/NoDrop
retention, persisted delay, failed death saves, native private contents and
diff --git a/docs/remote-reload.md b/docs/remote-reload.md
@@ -21,7 +21,7 @@ timing without applying the other player's ammunition transfer to the local
inventory. The two-client regression below checks both update and deletion.
Complete original evidence, matching snapshots, SHA256 and individual Evidence
-IDs are retained in `local/remote-reload/README.md`, `native-routing.json` and
+IDs are retained in `docs/research-notes/remote-reload/README.md`, `native-routing.json` and
`evidence.json`, together with the earlier `local/ranged-research/` export.
These are original-client observations. They do not establish the original
server's stack selection, automatic reload, cancellation or scheduling policy;
diff --git a/docs/research-notes/README.md b/docs/research-notes/README.md
@@ -0,0 +1,89 @@
+# Retained research notes
+
+These 75 text notes were cited by maintained documentation and retained when
+`local/` was deleted. They preserve detailed native addresses, decoded contracts,
+source citations and investigation limits that may save repeated analysis.
+Personal paths were anonymized. The maintained topic documents and TODO.md take
+precedence over these historical observations and recommendations.
+
+Referenced raw captures, snapshots, logs, JSON reports and temporary scripts were
+not retained. Evidence IDs and hashes record the original observations; they do
+not imply those artifacts are still available. Paths beginning with `local/`
+describe the removed workspace. Original 14.9.1 installations, maintained tools
+and generated source remain available separately.
+
+- [14.9.1 mission token and XP eligibility](mission-encounter-research/token-eligibility.md)
+- [AC nano native consumer audit](ac-nano-research/native/README.md)
+- [AO 14.9.1 nano range: retained native evidence audit](nano-range-research/native/ledger.md)
+- [AO 14.9.1 stat383: independent original-source audit](nano-interrupt-research/findings.md)
+- [AO14.9.1 stationary mouse rotation protocol](rotation-research/README.md)
+- [Authored nano cost modifier 318 catalog](nano-cost-research/catalog/README.md)
+- [Bounded follow-up: original loot-quality generation](loot-quality-research/20261103-followup.md)
+- [Bounded original token-board Use follow-up](token-board-set-followup/README.md)
+- [Cash field Enter, Accept, and consent](player-trade-research/native/cash-consent.md)
+- [Common N3 message scheduling follow-up](weapon-impact-research/common-dispatch.md)
+- [Conditional OnWear: hardware-accelerated WASM observations](weapon-contract-research/conditional-native-lifecycle.md)
+- [Critical-hit period-source follow-up](critical-hit-research/period-sources.md)
+- [Direct-damage nano consumer contract, original 14.9.1](direct-damage-nano-research/native/README.md)
+- [Earlier Brawl action availability](brawl-research/native/action-availability.md)
+- [Empty BUY basket: catalog classification collision](shop-purchase-research/native/ui-basket.md)
+- [Fast Attack147 versus Fling150: original native evidence](fast-attack-research/native/ledger.md)
+- [Fist clock 308/308: bounded retained-source explanation](aggdef-nano-fist-clock-research/findings.md)
+- [Focused partial-slot section reentry](corpse-scene-reentry/focused-partial-reentry.md)
+- [Follow target loss and explicit stopping](player-follow-research/mass/cache/target-loss.md)
+- [Holder state 6 follow-up](heal-timing-followup/holder/README.md)
+- [Ice Flechette child delivery, original 14.9.1](ice-flechette-research/native/README.md)
+- [InfoSystem shop mode and player reference boundary](reference-research/mode.md)
+- [Knowledge reference persistence in original14.9.1](knowledge-research/persistence.md)
+- [LIZARD resource rollover: verified correction](weapon-nano-rollover/README.md)
+- [Live shop purchase delivery in original 14.9.1](shop-live-purchase-research/native/README.md)
+- [Live-item shop stock boundary](shop-live-purchase-research/root/stock-sources.md)
+- [Local-victim weapon impact reports, original 14.9.1](combat-heal-impact-report-research/README.md)
+- [Loot quality selection: bounded evidence review](loot-quality-research/selection-evidence.md)
+- [Mission terminal bitmap clear crash: bounded source audit](mission-item-reward-research/client-crash-audit.md)
+- [Multi-row shop quote and live Computer Literacy audit](shop-multi-sale-research/native/README.md)
+- [NPI HUD/utility slot and admission distinction](shop-purchase-research/native/equipment-admission.md)
+- [Nano cost stat318: native arithmetic and cap boundary](nano-cost-research/native/README.md)
+- [Native DeleteItem auxiliary pair](starter-weapon-research/delete-auxiliary-findings.md)
+- [Native death, resurrection and active nano state](nano-death-research/wire.md)
+- [Native mouse picking timing](picker-timing-research/ledger.md)
+- [Native sneak producers and helper lifecycle](player-frozen/research/sneak/README.md)
+- [Native team popup input audit](team-leadership-smoke/menu-audit.md)
+- [Native vending access admission](shop-room-research/access/README.md)
+- [Native-controller async wait correctness](async-native-waits/README.md)
+- [OE zero requirement follow-up](starter-weapon-research/oe-zero-findings.md)
+- [Original 14.9.1 chat references and voice metadata](chat-metadata-research/metadata.md)
+- [Original 14.9.1 periodic functions and action177](nano-dot-research/native/README.md)
+- [Original 14.9.1 player trade protocol](player-trade-research/native/README.md)
+- [Original 14.9.1 purchase protocol ledger](shop-purchase-research/native/README.md)
+- [Original 14.9.1 root and snare native consumers](nano-root-research/native/README.md)
+- [Original 14.9.1 shop price calculations](shop-research/pricing/findings.md)
+- [Original 14.9.1 starter allocation follow-up](browser-creation-flow-research/loadout-ledger.md)
+- [Original 14.9.1 team loot wire audit](team-loot-research/wire-audit.md)
+- [Original critical-result routing contract](critical-hit-research/result-contract.md)
+- [Original ignored-nametag cache audit](ignore-badge-followup/README.md)
+- [Original main-hand weapon contracts](weapon-contract-research/findings.md)
+- [Original trade rejection feedback](player-trade-research/native/feedback.md)
+- [Original weapon attack and defense rating evidence](hit-miss-research/native/ledger.md)
+- [Original world TextMessage vicinity payload](ignore-research/text-message.md)
+- [Original14.9.1 ignore contracts](ignore-research/ignore.md)
+- [Positive damage and weapon-range nano consumer audit](damage-nano-research/native/README.md)
+- [Private mission encounter integration audit](mission-encounter-research/integration-audit.md)
+- [Regular Cyber armor audit and native lifecycle](cyber-armor/README.md)
+- [Remote reload receiver and focused regression](remote-reload/README.md)
+- [Remote template delivery through existing native messages](player-trade-research/native/remote-template-delivery.md)
+- [Returned weapon inventory rows: original 14.9.1 client](starter-weapon-research/inventory-reuse/findings.md)
+- [Rusty OT M-10 Flechette Pistol: independent catalog audit](weapon-quality/catalog-audit.md)
+- [Same-instance weapon re-equip after native unwear](fast-attack-research/native/re-equip.md)
+- [Secondary special animation, original 14.9.1](special-animation-research/native/README.md)
+- [Selected-quality early weapon milestone](weapon-quality/README.md)
+- [Shipped medical and ammunition catalog audit](charged-shop-research/catalog/README.md)
+- [Shop cancellation, live edits and range checks](shop-edit-research/native/README.md)
+- [Signed effective-stat and ability-trickle fixture](signed-stat-research/ledger.md)
+- [SimpleCharFullUpdate RunSpeed, original 14.9.1](actor-speed-research/native/README.md)
+- [Starter weapon ammunition contract (original 14.9.1)](starter-weapon-research/findings.md)
+- [Startup shop stock source audit](shop-research/stock/README.md)
+- [Team loot: current server and integration audit](team-loot-research/server-audit.md)
+- [Token Use native-function audit](token-upload-research/native-functions-audit.md)
+- [Weapon event10 descriptor consumers](weapon-contract-research/native-descriptors/findings.md)
+- [Weapon result publication and native impact clocks](heal-timing-followup/publish/README.md)
diff --git a/docs/research-notes/ac-nano-research/native/README.md b/docs/research-notes/ac-nano-research/native/README.md
@@ -0,0 +1,158 @@
+# AC nano native consumer audit
+
+This is a read-only audit of retained 14.9.1 evidence and maintained lifted C.
+No fresh binary session/export, native call injection, game heap write, browser
+or test server was used. No tracked file was changed by this scope. The original
+KKR identity bound by the retained ledgers is
+`anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Original 0x10000000 addresses map to maintained 0x36000000 addresses by adding
+0x26000000. This audit adds no new REA Evidence ID or original-server evidence.
+
+## Questions and conclusions
+
+### Ordinary Modify applies AC: answered, static original evidence
+
+Modify53045 dispatches through `100bd4d0` to `100bd600`; the latter dynamically
+requires a SimpleChar, reads argument key0 as stat and key39 as signed amount,
+then calls `10074730(stat, amount)` when effect flags bit1 is clear and
+`10074b00(stat, amount, 0)` for removal. There is no AC exclusion or alternative
+AC dispatch in this handler. Consequently a complete unconditional one-shot
+Modify contract for stat90..97 uses the same native timed-effect application,
+replacement, cancellation and expiry machinery as ordinary skill buffs.
+
+Evidence: `local/reports/combat-client-decompiles-21.json`,
+`ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405`,
+plus maintained `client/game/kkr.dll/lifted-0056.c:sub_360BD4D0` and
+`sub_360BD600`, and `lifted-0034.c:sub_36074730/sub_36074B00`.
+The local gate `100be8e0 -> 100bfb40` admits Modify; it rejects Hit53002.
+Gate evidence is retained in `local/reports/combat-client-decompiles-19.json`,
+`ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d`.
+Do not infer an unsupported companion Hit outcome from a supported Modify.
+
+Add/remove operate on the additive map, leaving the raw stat foundation
+unchanged. `10075ca0` computes base/trickle through `10075c60`, then adds
+the modifier value through `10074a30`. This getter does not have an AC-specific
+amount scale. Exact original assembly IDs retained in
+`docs/research-notes/signed-stat-research/ledger.md` are:
+
+- Effective getter: `ev_c27bbca88da1a49ac67c28b427c73045affc7be7b57c2cf2814043387c7a4714`.
+- Modifier getter: `ev_c3dc476ddb84eedb69e4e81bbbd80a7c5bf28e3aca92e4d8e2e0386d6813ad6f`.
+- Addition: `ev_b2a9656c468675646d49b31ff6317ecdfd16fc3991e0dc6484322a01038bea1c`.
+- Removal: `ev_8fbad422c0792a1be57aad44cb4daaa490d05eaa8c77c68e55c15f94fe2215fc`.
+
+The existing signed-stat fixture executes these lifted bodies, but its recorded
+15 assertions concern ability/skill inputs, not a full AC nano lifetime. Native
+WASM casting remains necessary to verify the new admission end to end.
+
+### Equipment OE must not scale nano AC: answered, bounded caller audit
+
+`10062f80` visits clothing slots16..31; `10063130` selects each worn item's
+event14 effects and only adjusts Modify functions whose stat is in the
+`100734e0` table. AC90..97 are in that table. It removes the old adjusted item
+amount and adds the new adjusted item amount. This is not a blanket multiplier
+over the actor's final modifier map. Nano effects are not scanned in this path.
+Thus native total AC is effective equipment AC plus the full nano AC amount.
+Removal must preserve whichever independent contribution remains.
+
+Retained original dossiers in `local/armor-oe-research/native-evidence.json`:
+
+- Clothing scan10062f80: `ev_a64f9e1c85cca6b2dd9aef9fc66293f96fbab04052c68dbaa4db8ee2cb0ef5b7`.
+- Per-effect refresh10063130: `ev_fb148da07aea9c6f6c835956a3f7e87083f41291c35c4298b310e01c4f470981`.
+- Affected-stat predicate100734e0: `ev_c28c25bf855fbf502273998e990a77883b83d1ceec6e91d25d10e207adb72748`.
+
+`native-audit.md` and `native-table.json` in that directory preserve the exact
+table initialization and caller limits. A nano that also changes a requirement
+skill can independently restore equipment effectiveness; complete mixed
+contracts must include both the skill effect and AC effect exactly once.
+
+### Snapshot/inspection double counting: answered for existing packet paths
+
+Current owner FullCharacter supplies trained/base foundations and restores worn
+effects; world-ready then replays active nanos. It does not transmit final AC
+as another raw AC foundation. Current player compact SimpleChar fields likewise
+do not transmit AC90..97. Its activation100821d0 has a modifier-assignment call
+at100829aa for Scale360, not an all-stat modifier-map reset. No AC reset
+call or AC90..97 stat assignment occurs in that reviewed activation body.
+
+InfoPacket's mandatory payload has current/max HP, regeneration and identity
+metadata; no AC fields. Remote apply1005b1a0 clears modifier1 only after writing
+maximum HP. TeamMemberInfo carries resource fields only and activation10084740
+clears modifiers1 and221. Neither packet absorbs or clears AC contributions.
+Ordinary stat/resource refresh is therefore unnecessary for a pure AC buff;
+sending its final AC as raw base while retaining native Modify would count it
+twice. Existing health absorption accounting should remain unchanged for an
+AC-only program. A complete mixed max-health/AC program still needs the existing
+max-health path for its health effect, without adding AC snapshot accounting.
+
+InfoPacket source: `docs/character-info.md`, `local/reference-research/wire.md`
+and `client/game/kkr.dll/lifted-0028.c:sub_3605B1A0`. Serializer/decoder IDs:
+`ev_9757bf4c1ea87a6c956385944b865747d7fc39852948c4e924483be99a0e916a`,
+`ev_3cedbe5b069de93a1e1edc950983ea6dc092c5addeb822813d7fa2534a84dd7c`.
+Delivery/cache evidence includes
+`ev_fc823b8931bd96ad507647cc2bdf315574d4eb30eb9b2f10e47bc2acbc3476cf`
+and assembly `ev_13f8d0ea148b7b93dae51450a703f4501f5e38126b623ccedb656595bd735ced`.
+Team fields/calls are documented in `docs/team-resources.md`; reviewed current
+server producers are `server/world.go`, `server/team_resources.go` and
+`server/character_info.go`. These are bounded packet-path findings, not a
+claim that arbitrary unknown extension packets cannot overwrite AC.
+
+### Damage consumer: selection answered; original amount policy unresolved
+
+Weapon `100ab7b0` reads DamageType436, accepts90..97 and168, and otherwise
+returns ProjectileAC90. Constructor100abb20 defaults omitted type to Melee91.
+`local/reports/combat-client-decompiles-1.json`,
+`ev_54c8e5911c3ccf91ab6ce87b5b2df8506f06ab9850e3ae78da5b0cb38fc13d7c`,
+contains the type selector. Maintained body is
+`client/game/kkr.dll/lifted-0051.c:sub_360AB7B0`.
+
+Current server normal damage reads only `target.equipmentBonus(damageType)`;
+this is the missing downstream consumer for an otherwise ordinary AC modifier.
+The focused reusable change is to include `target.nanoBonus(damageType)` in
+that selected stat's sum before the existing AC reduction. It must not alter
+weapon DamageType selection, equipment OE, hit chance, separate XP/threat or
+periodic/direct nano damage rules. All ordinary/special consumers that call
+the shared weapon-damage function should inherit it.
+
+The native client receives weapon outcomes; these routines do not prove AC/10,
+critical ordering, armor against direct/periodic nanos, or a negative-total AC
+floor. AC/10 and minimum-damage bounds remain period-source reconstruction in
+`docs/armor.md`. For reviewed positive AC buffs, summation is nonnegative;
+do not claim a newly chosen negative-AC clamp as native evidence or broaden
+admission to negative AC merely because the modifier handler is signed.
+
+## Complete-contract implementation boundary
+
+Use existing whole-program admission and activeNano lifecycle. Admit only
+catalog-reviewed positive AC functions with supported companions, selectors,
+requirements, flags, defaults and complete bytes. Do not grant a supported AC
+subset of a reflect/shield/absorb/conditional/periodic/transfer contract. This
+scope did not perform that independent catalog census; its precise program
+list belongs to the catalog audit. No spell-ID branch, persisted AC balance,
+OE multiplier for nanos, new AC packet, or separate cancellation mechanism is
+needed for the ordinary contract.
+
+Verify all eight stat types, armor plus nano, independent removal, replacement
+strains, expiry/death, restart/replay and failed transactions through the shared
+consumer. Native checks should observe both owner's and observer's raw/stat-map
+sum, then inspection/team refresh and reconnect: AC must remain single-applied.
+Keep mixed HP programs on the separately verified HP lifecycle and do not use
+this evidence to declare the outstanding absolute-HP animation issue resolved.
+
+## Retained source identities for this audit
+
+SHA-256 values observed without modifying these files:
+
+| File | SHA-256 |
+| --- | --- |
+| client/game/kkr.dll/lifted-0056.c | 3e14446e562f46db41e4b8cc115487bdc016f4f4d84c1f65b1b6a077aee076eb |
+| client/game/kkr.dll/lifted-0034.c | b1bfedd42a59d1468ab3adc8cfb392db6785be1c39523ca060072188dd773326 |
+| client/game/kkr.dll/lifted-0029.c | ecbbc0cbce5bd133989920d1f989f3558c3852b087da8182f8ac2584e576204b |
+| client/game/kkr.dll/lifted-0028.c | 8bc0be69d96ba55b07b4c591fae06598ea6ac89bbe438c52e5f57cd153be3f74 |
+| client/game/kkr.dll/lifted-0051.c | 68c9c7efc5f2040e26980e5f7e6651cbee4fd86a324cf3563045b1c3aa427212 |
+| local/reports/combat-client-decompiles-21.json | 90727bfd125fe95da4dc828709e6629b13a33af45a5eb508b4783a221cbd4ded |
+| local/armor-oe-research/native-evidence.json | 0b041f9204713040083edacbeccc034f742db868c3983da18e7c754a76563d55 |
+
+The compact activation source was also reviewed at
+`client/game/kkr.dll/lifted-0038.c:sub_360821D0`; its exact current hash is
+recorded in `source-hashes.txt` alongside the files above.
diff --git a/docs/research-notes/actor-speed-research/native/README.md b/docs/research-notes/actor-speed-research/native/README.md
@@ -0,0 +1,155 @@
+# SimpleCharFullUpdate RunSpeed, original 14.9.1
+
+The receiver contract is answered. The field after the optional HeadMesh is
+raw RunSpeed stat 156, with an unsigned-byte form and a signed-short form
+selected by message flag `0x2000`. It is not a scaled movement velocity.
+The shipped client does not implement a SimpleChar payload writer, so the
+historical server's choice of form and out-of-range policy remain unknown.
+
+## Identity and evidence boundary
+
+Original target: `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Original image base is `0x10000000`; maintained KKR lift/data base is
+`0x36000000`. Subtract `0x26000000` from maintained instruction addresses.
+Message is `SimpleCharFullUpdateIIR_t`, key `0x271b3a6b`.
+
+This pass reused complete REA records from matching original-target bundles.
+`retained-evidence.json` contains the complete selected records, including
+provider, profile, limitations and original identity; `provenance.json` maps
+them to their prior bundles. No binary was opened, exported or executed, and
+no REA session was created. No production sources, DB, runtime or commit was
+changed. The earlier automatic approval rejection of a fresh binary open was
+respected; no retry or substitute binary analysis was attempted.
+
+The generated source/data checks are supporting source observations, not new
+REA results. `source-data-audit.json` retains the relevant rebased vtable and
+import words; `source-instruction-audit.json` retains instruction comments,
+source paths and source SHA-256 values. They do not establish runtime behavior
+or an independently recovered original server.
+
+## Reader and encoding
+
+Original reader `10082da0`, maintained `sub_36082DA0` in
+`client/game/kkr.dll/lifted-0038.c:6358`, reads version byte `0x30` and flags
+at message `+0x24`. REA
+`ev_9ba1ee861536b7169d3adbd6fb561ea6e850f0c230ea1bbb9d80c38d02a5dc59`
+contains the complete reader. Independent retained batch
+`ev_8687fd6e603c302e4ab3fee7b405ea3e5c9a615e0f56bff18dd20ff949da8d4c`
+also contains it.
+
+At `10083668..1008367b`, flag `0x80` optionally reads HeadMesh to `+0x134`.
+Immediately afterward, `10083681..100836a7` does:
+
+| Flags | Bytes consumed | Stored at message `+0x190` |
+| --- | --- | --- |
+| `flags & 0x2000 == 0` | One byte | Byte zero-extended to a 16-bit word |
+| `flags & 0x2000 != 0` | Two bytes via `BinaryStream::operator>>(short&)` | Raw 16-bit word |
+
+The narrow path uses `MOVZX`, not signed-byte extension. IAT `1016fae0`
+is `??5BinaryStream@@QAEAAV0@AAD@Z` (`char&`); IAT `1016fac8` is
+`??5BinaryStream@@QAEAAV0@AAF@Z` (`short&`). The reader loads the latter into
+EDI at `10082e79` / `10082ecf` and subsequent restores before the speed block.
+Both import names and the supplying `cr.dll` descriptor were decoded from
+the maintained `client/data/kkr_dll.c` arrays, not guessed from variable names.
+
+The normal network stream uses big-endian shorts. Supporting maintained CR
+source: exported `short&` reader `sub_2A002400` in
+`client/game/cr.dll/lifted-0000.c:4070` reads exactly two bytes, then swaps
+them when stream `+0x40` differs from `+0x3c`; default constructor
+`sub_2A001000` sets those to 1 and 0. CR export/name resolution is saved in
+`cr-exports.json`. No independently retained original CR hash/REA record was
+found or acquired in this bounded pass; this supporting byte-order check is
+explicitly a maintained-source observation. Big-endian also agrees with the
+existing message-wide BinaryStream wire convention.
+
+After the speed field, `100836ae` resumes optional identity flag `0x400`, then
+texture flag `0x10`. The speed read itself is unconditional in both player and
+NPC branches; its position is not the player-only post-name ability block.
+There is no scaling, subtraction, division, saturation or clamp in this block.
+
+## Consumer, signedness and bounds
+
+Activation `100821d0`, maintained `sub_360821D0` in
+`client/game/kkr.dll/lifted-0038.c:3209`, at `1008251b..1008252c` sign-extends
+message word `+0x190` with `MOVSX` and invokes actor `+0xe4` virtual `+8`
+with `(156, value)`. This precedes the NPC/player gate at `1008252f`.
+Complete REA batch:
+`ev_d1c6525d8047faf81030e0b0e00f69e3bec7b13e1e1c8c84779183724bffb2ba`.
+
+Therefore the exact representable semantic ranges are:
+
+- Narrow: 0 through 255, including byte `80` = 128 and `ff` = 255.
+- Wide: -32768 through 32767; `8000` = -32768 and `ffff` = -1.
+- Wide positive examples: `0100` = 256, `012c` = 300, `7fff` = 32767.
+
+These are receiver ranges, not evidence that the original server admitted
+negative trained RunSpeed. A nonnegative value above 255 needs the wide form.
+Using one byte for 300 would transmit 44. Values above 32767 cannot be
+represented positively by this field; wraparound is not an extension branch.
+The local receive/setter chain has no extra clamp for stat 156.
+
+The constructor `10081960` initializes word `+0x190` to 10 at `10081b43`,
+but the reader always replaces it. The current server literal 100 is thus a
+chosen raw stat value, not an encoding multiplier, sentinel or required default.
+
+## Raw base versus effective value
+
+Actor stat interface `+0xe4` uses vtable `1017139c`; virtual `+8` is
+`1006e030` and virtual `+4` is `1006dfb0` (supporting maintained data).
+Complete original setter REA
+`ev_ad3bf775fd65a45bd62c250f78a91146afe2b3f42b9640669800f035c20824f6`
+has an explicit `case 0x9c`: request movement refresh `100480e0(1)`, then
+store the unchanged value into the raw stat array at `stat*4`
+(`1006e637..1006e63d`). It does not replace or subtract modifier-map entries.
+
+Original getter `1006dfb0` mode 2 returns that raw array. Mode 3 calls
+`10075cd0`, which obtains the mode-2 raw value, calls modifier lookup
+`10074a30`, and adds the two. REA
+`ev_74652ec491811d2dbb9348174f59fabc0739128af4fc0567877aee64d3b28a0e`
+and `ev_e46da2e042917a40735252de7302ae52721c024edc9a7d219a211f3f7555086d`
+contain complete original assembly. The maintained movement reader
+`sub_36047BE0`, `client/game/kkr.dll/lifted-0023.c:1387`, requests
+`(156, 3)` at `10047bf6..10047bff` before its low-health adjustment.
+Mode 3 excludes ability trickle; mode 0 takes the separate effective path.
+
+The SCFU activation later calls nano-snapshot activator `10066dd0` with the
+program list at message `+0x1d4`. Complete REA
+`ev_70547aafd9d27c8e0b95cec42582fd0be8b886ba4e1bfa8229e56422f39e782f`
+shows the program effect activation. Worn initialization `1005f150` invokes
+item virtual `+0x74` for eligible worn rows; complete REA
+`ev_2f66eca0926b9507b6a9bc79113271eb694bd9260f2b79cc46fa35a57f2923c9`.
+Additive effects are tracked separately (`10074730`, complete REA
+`ev_b2a9656c468675646d49b31ff6317ecdfd16fc3991e0dc6484322a01038bea1c`).
+
+Receiver-compatible reconstruction must send the trained/raw RunSpeed in
+SCFU when equipment/nanos are applied afterward. Sending a value already
+including those modifiers and replaying them adds them twice. This conclusion
+is derived from the observed raw-store/modifier-add composition, not a capture
+of the historical server's exact snapshot sequence. The server's independent
+NPC chase-speed policy is outside this wire-field conclusion.
+
+## Writer and remaining gap
+
+Constructor `10081960` installs message vtable `101719c4` at `10081af7`.
+Supporting maintained data gives slot `+0x18` = reader `10082da0` and slot
+`+0x1c` = payload writer `1010def0`, using the established message slot
+contract in `local/reports/combat-client-protocol-vtables.json`.
+Writer `1010def0` is only `RET 4` in maintained
+`client/game/kkr.dll/lifted-0079.c:6391`; complete original REA
+`ev_8acd9bc8d18ea4085537a6e01c235369cd4396bb768446d181e203c5de98ed1e`
+also decompiles it as an empty one-argument routine. Slot `+0x14`
+`100dbdc0` is a separate false-return stub and must not be mistaken for the
+writer.
+
+There is consequently no recovered shipped-client writer deciding
+`0x2000`, and no evidence of original server-side rounding, scaling, clamping,
+overflow rejection or preferred use of wide values below 256. A shortest-form
+serializer (byte for 0..255, otherwise signed-short plus `0x2000`) follows the
+proven reader, but its selection policy is a reconstruction inference.
+No original runtime capture or original server implementation was used.
+
+Checklist: reader, field order, flag, width, signedness, scaling, receiver
+bounds and raw/effective distinction answered; shipped-client writer answered
+as empty; historical server writer policy unresolved. Validation is static
+evidence/source consistency only, with no game/runtime tests in this pass.
diff --git a/docs/research-notes/aggdef-nano-fist-clock-research/findings.md b/docs/research-notes/aggdef-nano-fist-clock-research/findings.md
@@ -0,0 +1,109 @@
+# Fist clock 308/308: bounded retained-source explanation
+
+The extra8 centiseconds is explained exactly by the native item's initial
+QL200 interpolation for the currently supplied fist pair. It does not require
+a startup-jitter explanation. The current server's fixed QL1 fist policy predicts
+300/300; the current native representation predicts308/308. This identifies
+the source of the observed difference without establishing the canonical
+original-server fist-selection rule or proposing a timing change.
+
+## Observation and independent corroboration
+
+Both retained captures, `local/aggdef-nano-smoke/51-unbuffed-combat-owner.json`
+and `52-unbuffed-combat-observer.json`, show actor99 with Level54=200,
+effective51=-100 and effective120=0. Owner MartialArts100=0; observer's remote
+copy has MartialArts100=5. Abilities16..21 are all1,
+51 and120 modifiers are0, and the active slot0 timer has attack308/recharge308.
+Their remaining values differ (about173 and13.1), as expected for snapshots at
+different phases. Those remaining values are not the duration fields.
+
+The retained read-only weapon snapshot samples damage stats but does not sample
+item210/294 or its701 QL directly. It reports slot0 damage286=28,285=115,284=201
+in both clients. All three independently match the same QL200 interpolation.
+`observations.json` preserves the complete actor observations and source hashes
+are in `sources.json`; no new native read was performed.
+
+## Native construction and interpolation
+
+Current `server/target_protocol.go:convertTargetPacket` supplies players the row
+`{43712,43713,100,1}` after count2018. The last row parameter is unresolved and
+must not be called QL. Maintained `lifted-0035.c:sub_3607B9A0` obtains actor
+Level54 through getter mode2 at0x3607B9E0..E4, masks its low16 bits and passes it
+as the requested item QL to `sub_360F11D0`. It loads the supplied template pair
+and map key100. MartialArts100 is not read to select QL in this path.
+
+`lifted-0070.c:sub_360F11D0` calls `sub_360F0F50` at0x360F11EB. That function
+constructs both endpoints and calls `sub_360F00A0` at0x360F10D0 with the requested
+QL. Interpolated stat processing reaches `sub_360F0C80` and `sub_360EFF20`.
+For210 the0x360F0C8F..95 comparison selects0x360F0D07 directly. For294 the
+maintained `client/data/kkr_dll.c:data_96` lookup at0x360F0DD0+(294-236) selects
+slot0, whose target is also0x360F0D07. That branch calls EFF20 at0x360F0D1D.
+`native-constants.json` preserves this decoded table result.
+
+For increasing positive endpoints, EFF20's0x360EFF59..96 path returns:
+
+```text
+lowValue + trunc((requestedQL-lowQL)*(highValue-lowValue)/(highQL-lowQL) +0.5)
+```
+
+The0.5 constant is source data0x36170464. The two original RDB endpoint records
+were freshly reparsed and compared in full with current YAML:
+
+| ID | QL |210 /294|286 min|285 max|284 critical|
+| --- | ---: | --- | ---: | ---: | ---: |
+|43712|1|125 /125|3|5|3|
+|43713|500|145 /145|65|280|500|
+
+Both author initiative selector440=120. Payload hashes:
+
+* 43712:8081990ac19d682aab12be9d3eee65a6b612093d81692745319a7526bf23a27f
+* 43713:777a279fd9afb36188b0749c5f02ea19c92ef63115ee95c935c2a999b672cf3c
+
+At requestedQL200,210 and294 become
+`125+trunc(199*20/499+0.5)=133`. The same calculation gives286=28,285=115 and
+284=201, matching every sampled damage field in both captures. Complete raw
+endpoint definitions are in `original-fist-endpoints.json`.
+
+## Active durations and separate startup jitter
+
+`sub_3607AB40` reads item294 mode2, item440, effective actor initiative and
+effective51. `sub_3607AC10` reads item210 and follows the analogous recharge
+path. With initiative0 their recovered calculation is simply
+`max(100,itemDelay+75-effective51)`. At133 and51=-100, each is308.
+Constants75 at0x36171580 and minimum100 at0x36170888 are decoded from maintained
+C source data. No floating boundary lies near an integer in this zero-init case.
+
+`sub_3607AA30` first obtains those durations, converts them through _ftol, and
+passes them to `sub_36052550`, which stores attack at timer+4 (0x360525A5)
+and recharge at+8 (0x36052596). It initializes remaining+0 to attack, then AA30's
+0x3607AA76..AB startup path changes only remaining+0 by:
+
+```text
+remaining = attackCs +50 - trunc(rand()*attackCs*0.5/32767)
+```
+
+It does not add jitter to attack+4 or recharge+8. `sub_3607AAD0` directly writes
+fresh _ftol duration results to+4/+8 at0x3607AAFC..FF, leaving remaining intact.
+`sub_3607A940` iterates and initializes/stages these timers, with the wider
+holder effects already described by the retained active-refresh audit; it adds
+no fixed8 to the duration fields. Therefore the observed308/308 fields are not
+explained by the known startup jitter even though jitter may affect the
+remaining/first-hit phase.
+
+## Scope and limits
+
+`sources.json` retains12 complete maintained functions, full source and excerpt
+hashes, existing report/document hashes and both exact capture hashes. Original
+kkr.dll identity is a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0;
+maintained addresses are rebased from original0x100xxxxx to0x360xxxxx. Existing
+`local/fist-selection-smoke/verification.json` already corroborates this initial
+actor-Level construction at levels1 and100 and unchanged item QL when MA changes.
+
+The selected captures do not directly contain item210/294/701. The explanation
+combines the complete current construction/interpolation source with three
+matching independent sampled item stats and both timer readings; it is not
+a new guest-memory observation of133. The current server-supplied pair is a
+reconstruction choice. Original-server MA-to-fist-QL selection, pair selection,
+caps, later dynamic updates and authoritative phase timing remain unknown.
+No inference about a generic nano admission defect or timer workaround follows.
+No tracked source/test/runtime/client/DB/preview/engine/session/export changed.
diff --git a/docs/research-notes/async-native-waits/README.md b/docs/research-notes/async-native-waits/README.md
@@ -0,0 +1,36 @@
+# Native-controller async wait correctness
+
+The ignored-nametag probe returned false immediately from a browser
+waitForFunction(async predicate) rather than waiting for IgnoreList bytes. The
+screen flow happened to progress correctly, but that return did not prove the
+storage condition. Do not use the first probe's false membership fields as
+completion evidence.
+
+Installed Playwright-core1.62.1, lib/coreBundle.js23851..23913, implements its
+predicate loop with `const success = predicate()` and an immediate truthiness
+test. A Promise is truthy before its result is available. Five maintained waits
+used that pattern: ignored corpse cash write, ignored crystal learning, ignored
+team departure and its retry, and server resurrection-shock expiry.
+
+GameTest.waitFor now polls an awaited controller/storage predicate without
+reading a WASM instance that may be reconnecting. Native-frame wait remains
+synchronous and unchanged. The four scripts use Node request contexts for their
+actual server conditions. There is no game/server behavior or protocol change.
+
+The two focused Node tests check false-to-true resolution and exception
+propagation. Removing await reproduces false!==true in
+promise-truthiness-baseline.log. Restoring await passes both in unit.log, using
+`node tools/client/game_test_test.mjs`. Native revalidation is in native.log;
+only the affected real scenarios are rerun. No broad Go/race repeat is needed
+for unchanged Go server behavior.
+
+All four affected native roots passed in126.308seconds: backpack nano learning,
+ignored corpse-credit checkpoint, reclaimed weapon/shock and ignored team
+dissolution/retry. See native.log and verification.json for their exact artifact
+directories and25 error-free traces. Two reclaim traces intentionally overflow
+the ordinary event ring while retaining all three lifecycle events; all other
+traces have zero dropped events. Maintained-package vet passed with
+stdversion disabled; all six changed/new JavaScript files passed syntax checks.
+The accepted nametag probe also uses the new wait and verifies actual eight-byte
+membership followed by the four-byte cleared list, replacing the false results
+from the first exploratory probe.
diff --git a/docs/research-notes/brawl-research/native/action-availability.md b/docs/research-notes/brawl-research/native/action-availability.md
@@ -0,0 +1,106 @@
+# Earlier Brawl action availability
+
+Follow-up scope: identify the original branch producing the exact runtime text
+`Action not available.` before any `0x51492120` request. Parent owns the actual
+browser/server observation under `local/brawl-input-smoke/`; this file supplies
+static original KKR evidence only. Original SHA remains
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+The owned REA session was exported and closed. No production edits or
+game/browser/server processes were started by this research agent.
+
+## Observed exact branch
+
+`N3Msg_PerformSpecialAction1002c7d0(Action_e)` gets the actor's helper through
+`10072000` and calls `10057630(action)`. The helper pointer is actor+0x168.
+
+`10057630` scans helper+0x90's linked list, comparing the requested action to
+node+0x1c and node+0x20. If no entry matches, it emits the exact string
+`Action not available.` at `101c24bc` and returns false. No skill, implicit-map,
+capability, target, range or cooldown check occurs in that missing-entry branch.
+It returns before `N3Msg_SecondarySpecialAttack`.
+
+If an entry matches, it calls `10057680` on its payload identity. That function
+finds the same entry by identity through `100575a0`. Flag bit1 at payload+0x1c
+instead emits **`Action is not available.`**, a different string, at101c24d4.
+For an actor-owned source identity, skill142/143/144 dispatches the generic
+secondary-special sender. Other weapon specials dispatch in the different-source
+branch. This distinction prevents treating a weapon-owned Brawl action as an
+equivalent registration.
+
+Exact original records:
+
+- Text: `ev_29cad27a9466e9821330b61c52661a78ffc6720cdefbde0d7c3de28b05e06c06`.
+- Engine action entry: `ev_622379d22729b284461121a807c10bfaadce043e286dbac16eb6f01b070063ef`.
+- Helper pointer: `ev_2d5eb1c88bc2085bb2b218b662a2bfb88509b002cecfe6f607efa882d734dde3`.
+- Missing-entry text producer: `ev_89ef27d3b72705cc1e15ecfeda3a85a8573dbcdecb3173732af46aff8236d1e0`.
+- Identity finder: `ev_49e1c94662b7a2715e25abf0bc574ee498c7aa6cab702c2cc8cff09afca00335`.
+- Action dispatch/locked text: `ev_5691b0f3b57a2ebbc2c06e6c83becda29a81d2cefd3bb177956dcc6a8d8b0f9e`.
+
+## Observed action producer
+
+`10078920(skill,item)` inserts into the implicit item map only if its skill key
+is absent. For the local actor it then calls `10057370(skill, actorIdentity,0)`.
+Thus an implicit item inserted under142 constructs an actor-owned Brawl action.
+The initial weapon-row constructor `1007b9a0` already traced in the main ledger
+calls this insert for each received skill row. No Brawling-skill threshold is
+tested in this insertion/registration path.
+
+`10057370` checks local actor, existing action key and static icon mapping. It
+creates an action payload identity `(0xdeb0, iconID)` with supplied source
+identity, skill lookup key, primary/secondary command IDs and flag word. It
+emits a local action-added notification. If a skill lock is already present,
+it marks the new action locked. This registration is separate from the skill
+stat's value.
+
+Initializer `10056cf0` supplies static mapping142 -> icon0x14122 and144 ->
+icon0x14125, but its actual default `10057370` calls create only ordinary
+actions3,1,11/78,76/77,17/18,19/79,81/82,134. It does not instantiate action142.
+Having a Brawl icon mapping is therefore not equivalent to an active action.
+
+Original equipped callback `100ad0b0` (queried at contained address100ad390)
+examines caps and registers Burst148, Fling150, FullAuto167, Aimed151,
+Sneak146, skill121 and Fast147. It **does not register Brawl142 or Dimach144**
+in that callback. Their flag availability in `100aaf10` is a later sender gate,
+not this local action-list registration.
+
+- Implicit insertion: `ev_a800dc9395e54651c24700b1180bffba61c40e10787c4c43a2a185d69dd0c7d0`.
+- Registration: `ev_cc5dccd7d3e25c6884c4ea66cd799dd05718c0ca252885e49c0b7ff1c64fa039`.
+- Static mappings/default creation: `ev_aae70120c86a7905e706acab37dc0aa09d630a18e26b4d20447cb9073ae20fc8`.
+- Equipped-special registration: `ev_b206d74b39f11c83b95a0ddd2d436910655d1d08ed9f38e9fab3d23a3a9ae094`.
+- Payload copy: `ev_32c2235a8128072ded3714b10ccc2469efb92cd1540b5469638ffb961638e638`.
+
+The displayed string alone establishes that no command entry matched. The
+absence of implicit key142 is a concrete explanation supported by these
+producer paths, but the runtime action-list probe should confirm the missing
+entry rather than assuming map absence is the only possible cause. Direct
+calls to the later special sender can bypass the GUI action list; the earlier
+unarmed bypass in that sender remains correct within its own scope.
+
+This pass does not prove an exhaustive inventory of all possible registration
+callers, nor canonical server Brawl template selection. It does establish that
+simply assigning Brawling stat142 or equipping an axe does not invoke the shown
+Brawl registration path.
+
+## Native heap probe layout
+
+```
+helper = *(actor + 0x168)
+list = *(helper + 0x90)
+sentinel = *(list + 4)
+node = *sentinel
+while node != sentinel:
+ payload = node + 8
+ next = *node
+```
+
+| Offset from payload | Meaning |
+| --- | --- |
+| +0/+4 | Action identity, type0xdeb0 and icon resource ID |
+| +8/+c | Source identity, actor for implicit142; inventory item for weapon specials |
+| +10 | Skill/action lookup key |
+| +14 | Primary command, initialized to same key |
+| +18 | Secondary command, usually0 |
+| +1c | Flags; bit1 yields the distinct locked-action message |
+
+Use node+0x1c/+0x20 for the primary/secondary command comparison performed by
+10057630. Raw player stat142 lives elsewhere and cannot stand in for this list.
diff --git a/docs/research-notes/browser-creation-flow-research/loadout-ledger.md b/docs/research-notes/browser-creation-flow-research/loadout-ledger.md
@@ -0,0 +1,74 @@
+# Original 14.9.1 starter allocation follow-up
+
+Scope: pistol recipients, MA Oak Bo, sided clothing/boards, Engineer shell,
+and issued kit charges. This was a bounded resource and period-source pass.
+No native REA target was opened, no server was started, and no implementation
+files were changed. REA skill read; shared native target reserved for parent.
+There are no new native Evidence IDs from this source/resource investigation.
+
+## Findings
+
+| Question | Status | Evidence and conclusion |
+| --- | --- | --- |
+| Engineer pistol 121567 | Partially answered; strong secondary corroboration | Local Fandom `Engineer Guide`, touched 2012-12-13, explicitly lists item 121567, crystals 43329/29194 and a first Robot Shell when starting on Rubi-Ka. This older local text differs from the current web guide, which includes later equipment. Its retained introduction describes the old loadout, but is not a dated 14.9.1 server capture. |
+| Other pistol recipients | Unresolved for exact 14.9.1 allocation | Adventurer, Bureaucrat, Doctor and NT remain plausible but unproven in the sources inspected. Generic item 121567 and its original tutorial do not identify recipients. A 2012 first-hand ICC account names Engineer/Doctor/Bureaucrat, but that is later content and is not used to prove original allocation. |
+| Engineer shell | High confidence allocation; exact identity inferred from matching original catalog | GAME Watch's February 2002 walkthrough chapter 10 says the Engineer already has one robot icon in inventory before summoning another. Chapter 7 screenshot shows that shell. Original QL1 Engineer Robot Shell is 43328; QL200 endpoint is 46083. Original tip `LookatEngineerAutomatonShellType1.txt` teaches using the shell. Granting one QL1 shell 43328 is supported. |
+| MA Oak Bo 121565 | Unresolved; do not grant based solely on its name | Original catalog describes a traditional MA training weapon and action8 restricts it to profession2, but no examined original tip or period allocation source confirms it was issued. Original Jab of the Snake117610 tip is present. Absence of an Oak Bo tip does not prove absence of an Oak Bo grant. |
+| Sided boards | High confidence | February 2002 walkthrough chapter15 explicitly says a board is handed out when choosing Omni/Clan; chapter7 screenshot shows a basic board in an Omni arrival inventory. Original catalog/tips identify Clan96358 and Omni99719 and require manual wear. Neutral receives neither under these sources. |
+| Omni shirt29426 | High confidence | Original item description identifies a Welcome Aboard present; original tutorial calls it standard issue and instructs manual equip. February2002 arrival inventory screenshot shows the same shirt icon. CGW208 indexed period guide independently says Omni employees start with basic armor including the shirt; other armor pieces are unspecified and should not be invented. |
+| Issued kit charges | Partially answered; screenshot observation only | Chapter7 arrival screenshot has blue startup first-aid counter visually reading `03` and red startup laboratory counter `25`. Extracted original icon11707 matches first-aid116629 and icon37987 matches laboratory116628. These are observed inventory counters, not proven pristine creation counts; prior use or a rendering detail is not excluded. Do not label 3/25 as exact server policy without stronger evidence. Catalog capacities remain 300/200, respectively. |
+
+## Period source
+
+- Walkthrough: <https://game.watch.impress.co.jp/docs/20020213/yuki14_2.htm>.
+ Chapters7,10,15 corroborate maps, shell and boards. URL/copyright indicate
+ 2002; one footer date says2001, apparently a template typo. The page links
+ its previous article under 20020206 and the main article under 20020213.
+- Linked chapter7 image: <https://game.watch.impress.co.jp/docs/20020213/b12.jpg>.
+ The pictured location is an arrival/creation room, and tooltip explicitly
+ identifies Startup Maps - Omni-Tek. Inventory contains a gold crystal,
+ robot shell, blue first-aid syringe, red laboratory, black board, black
+ Omni shirt and map. It does not show a pistol in the visible inventory;
+ equipped gear and off-screen inventory are not covered.
+- Original period magazine excerpt:
+ <https://www.cgwmuseum.org/galleries/issues/cgw_208.pdf>. Only an indexed
+ search excerpt was retrieved; full PDF open exceeded the web size limit.
+ No screenshot/charge conclusion relies on that PDF.
+
+Retained sources are `period-2002-game-watch.html`, `b12.html`, `b12.jpg`.
+Other linked images inspected (`b07`, `b08`, `b09`, `b15`, `b16`) show later
+play or edited/cropped views and do not establish pristine creation counts.
+`period-2002-nano-inventory.jpg` is b09.jpg and shows combat, despite its
+descriptive local filename; do not use it as a creation-inventory capture.
+
+## Original resources and local guide
+
+`loadout-records.json` retains complete selected item records and source
+paths. Each payload hash was checked against ResourceDatabase.dat. Extracted
+icons are unmodified resource type1010008 identities11707,11708,37987,37989.
+`engineer-guide-local-excerpt.json` retains the exact bounded local guide
+section and its touched date; the date does not establish when its old
+starter section was written. `source-hashes.json` binds retained artifacts.
+
+## Search boundary and limits
+
+- Searched local CellAO-NightPredator checkout ca77f375a7dabe3be769da94e6c2a3d093344c2c
+ (2016-12-21), including LoginEngine character creation, scripts and SQL.
+ CreateNewChar stores character/stats, but no original starter grant table
+ was found. ID occurrences outside itemnames.sql were catalog relations,
+ not an allocation policy. This is a later emulator, not Funcom server code.
+- Searched Fandom mirror pages for exact pistol, Oak Bo, kits, shirt and
+ board names. Engineer Guide supplied useful older text. No exact original
+ five-profession pistol table or MA Oak Bo allocation was recovered.
+- Queried period forums, guides, original manual and Auno records. Auno
+ versioned pages were inaccessible through the web tool. Current ICC/Arete
+ guide grants and altered kit heals were excluded as proof of14.9.1.
+- No source in this pass resolves initial credits, original1500IP policy,
+ all raw skill seeds, or whether kits always issued full capacity. These
+ must remain explicitly identified reconstruction decisions.
+
+Actionable supported additions are one Engineer43328 shell, the appropriate
+sided basic board and Omni29426 shirt, all initially in inventory. Engineer
+121567 pistol has explicit older-guide corroboration, with the version limit
+above. Unresolved profession allocations should remain tracked rather than
+silently promoted to canonical fact.
diff --git a/docs/research-notes/charged-shop-research/catalog/README.md b/docs/research-notes/charged-shop-research/catalog/README.md
@@ -0,0 +1,175 @@
+# Shipped medical and ammunition catalog audit
+
+Read-only bounded source inventory, 2026-10-25. No production edits, database
+writes, preview changes, native analysis sessions or client execution. Existing
+purchase/stack count semantics in `local/shop-purchase-research/native/delivery.md`
+were reused and were not re-investigated.
+
+`tmp_extract.py` reparses exactly18 original resource1000020 item records and
+17 relevant/overlapping vendor records with the existing `ao_database.py` and
+`extract_items.py`. It reuses the428-vendor inventory in
+`local/shop-research/catalog.json` and795 authored placements in
+`server/gamedata/shops.yaml`; no full RDB payload scan or QETS search was repeated.
+
+## Retained evidence
+
+- `item-records.json`: complete18 parsed records, original payload SHA-256,
+ source record offsets, stats, descriptions, requirements and effects.
+- `item-summary.json`: compact identity/QL/package212/Can512/price74/ammo420
+ comparison plus original descriptions and payload digests.
+- `vendor-records.json`: complete17 parsed vendor records, original hashes,
+ offsets and the matching authored static placements.
+- `category-overlaps.json`: every vendor in the prior428-template inventory
+ sharing the selected vendors' category codes, preserving the raw descriptors.
+- `shipped-text.json`: exact relevant shipped help/tip text, paths and SHA-256.
+- `source-provenance.json`: digests of the original index, reused catalog,
+ authored placement output and both existing parser sources.
+- `extraction.log`: compact reproducible output from `tmp_extract.py`.
+
+Original index `anarchy-vanilla-14.9.1/cd_image/data/db/ResourceDatabase.idx`
+SHA-256 `46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71`.
+Every fresh payload is read by its original `(1000020,id)` index key, and its
+digest is recalculated by the existing parser. No native execution is claimed.
+
+## Exact medical endpoint definitions
+
+All rows below are native type51005 and have Can30 bit512 (Stackable). The
+named QL is the endpoint's authored QL, not a discovered vendor rotation range.
+Their complete records, prices and hashes are retained, rather than treating
+similar names as interchangeable items.
+
+| Family | QL1 / QL200 / QL400 IDs | Native package212 |
+| --- | --- | --- |
+| Simple / Ultra Advanced First-Aid Kit | 23314 / 23316 / 160276 | 25 each |
+| Treatment / HQ Health / Superb Quality Health Treatment Laboratory | 25812 / 25811 / 160277 | 50 each |
+| Simple / Sophisticated / Ultra Sophisticated Nano Kit | 85366 / 85367 / 160295 | 25 each |
+| Basic / Advanced Nano Recharger | 25820 / 25821 / 160278 | 50 each |
+
+The regular resource-kit admission test currently admits treatment, nano kits
+and nano rechargers at these exact QLs; `server/resource_kit_test.go` lists the
+complete ten-item set including Startup Treatment Laboratory. Health-only
+First-Aid kit use remains disabled, as documented in `docs/first-aid.md` and
+the same admission test. Identifying its record does not complete its use path.
+
+Startup Treatment Laboratory116628/QL1 has package212=200, price74=0.
+Startup First-Aid Kit116629/QL1 has package212=300, price74=0. Both are Stackable.
+These authored capacities differ from current startup issuance quantities and
+are not evidence of starter-booth stock or free replenishment. Their inclusion
+here is an explicit comparison boundary, not proposed purchasable stock.
+
+QL200/400 endpoint definitions do not establish that a regular shop sells the
+exact endpoint or that the current server supports interpolated purchase QLs.
+The original fields are enough to investigate pairing later; this audit does
+not invent those pairs, their stock probabilities or rotation.
+
+## Exact ordinary ammunition
+
+All four are fixedQL1, type51005, Can30=517=0x205 (includes Stackable512),
+native package212=100. Descriptions identify compatible weapon concepts;
+they do not name a booth or supply an explicit category membership key.
+
+| ID | Original name | AmmoType420 | Price74 |
+| --- | --- | --- | --- |
+| 21601 | Flamethrower Ammunition | 3 | 80 |
+| 21605 | Bullets | 2 | 25 |
+| 21609 | Energy Weapon Ammo | 1 | 50 |
+| 21613 | Shotgun Shells | 4 | 80 |
+
+Shells Magazine137259/137260 and Energy Pack Interface137257/137258 are
+distinct tradeskill component concepts; their names do not make them ordinary
+ammo packages. They are not included among these four ammunition definitions.
+These distinctions were checked directly in the existing catalog shards.
+
+## Original medical terminal families
+
+The nine regular medical templates below all use category stringDMLA. Raw
+section23/subtype37 descriptors and all placements are in vendor-records.json.
+The `byte_pair` values are preserved as parsed raw fields; their semantic
+interpretation as generation QL bounds is not independently established here.
+
+| Tier | Omni | Clan | Neutral |
+| --- | --- | --- | --- |
+| Basic | 99481 OT Basic Medical Supplies | 99508 Clan Basic Medic Supplies | 99574 Basic Medic Supplies |
+| Advanced | 99482 OT Advanced Medic supplies | 99509 Clan Advanced Medic supplies | 99575 Advanced Medic supplies |
+| Superior | 99483 OT Superior Medic Supplies | 99529 Clan Superior Medic Supplies | 151975 Superior Medic Supplies |
+
+Basic descriptors repeatDMLA at bytepairs1/1,5/5,10/10,15/15,20/20.
+Advanced repeats20/20,30/30,50/50,70/70,90/90.
+Superior repeats70/70,80/80,90/90,110/110,125/125.
+The opaque descriptor bytes also differ by tier/faction. Mapping one fixed
+QL1 subset to everyDMLA terminal would discard these differences and needs
+an explicit reconstruction-policy boundary.
+
+All eight standard combined rooms have one corresponding regular medical
+machine: Omni1183/1184/1185, Clan1180/1181/1182, neutral1186/1187. Neutral1187
+also has151975 Superior Medic Supplies. Additional authored outdoor/other-room
+placements are retained; total regular medical placements in the795-registry
+are19. This is static placement evidence, not a runtime availability claim.
+
+Three additional legacy vendor templates shareDMLA but have no authored static
+placement in that registry:
+
+| ID | Name | Descriptor byte pairs |
+| --- | --- | --- |
+| 25886 | Budget MediStim Shop | 1/1,2/2,5/5,10/10,10/50 |
+| 27053 | Hack'n Slash Medi Shop | 70/125 |
+| 27062 | AllOverYou MediStim Shop | 30/80 |
+
+No nonmedical vendor sharesDMLA in the retained428-template inventory. This
+does not make the code a recovered explicit list of medical item identities.
+
+## Shipped membership statements and their limits
+
+Budget MediStim25886's original description explicitly says it sells budget
+First Aid Kits, Nano Recharging Kits and other stims. AllOverYou27062 describes
+selling the same broad families over a wide range. These are direct shipped
+statements of family membership. They do not identify exact IDs, distinguish
+Simple Nano Kit from Basic Nano Recharger, specify charge packaging, or
+enumerate every member ofDMLA. Hack'n Slash's description only calls it a
+Med shop. The regular faction/tier medical records have empty descriptions.
+
+Budget Ammunition Shop25885 explicitly describes selling budget ammo and other
+accessories. It references category codesOMMA,CEJE,VWMA,NKMA, each bytepair1/1.
+Its one authored static placement is identity3221226898, playfield1426.
+Those same four codes appear in Howard Machine42959 and GregorHallMachine45121;
+neither has a static placement in this registry. The codes are not present in
+any standard combined-shop vendor template in this bounded category inventory.
+The description does not explicitly map the four ordinary ammo IDs to any
+one of those four codes. Category-name resemblance is not treated as proof.
+
+Engineer Crystals and Ammo31033 has codes10NE,XEMA,NEMA; Karly Desel42119's
+description also mentions Engineer nano formulas and ammo and sharesXEMA/NEMA.
+Both lack authored static placements here. Those names/codes do not establish
+that they sell the four ordinary ammo types above; Engineer-specific ammo is
+not silently equated to bullet/energy/shell/flamethrower packages.
+
+Howard42959 also referencesOTIM, shared with Tools and Computers templates,
+and other unrelated equipment categories. Its broad stock is an additional
+reason not to equate every category occurrence with a booth's exact subset.
+`category-overlaps.json` preserves these ambiguities for later reuse.
+
+The shipped help/tips describe using existing first-aid, treatment and nano
+restoration items. For example `TipOfTheDay.txt` distinguishes Treatment
+Laboratory/Recharger recovery from First-Aid in combat, and
+`Improving skills and abilities.txt` specifically givesQL1 laboratory's
+Treatment8 requirement. Startup tips teach using already-owned items.
+`OnSelectShop.txt`/`OnOpenShop.txt` explain generic shopping and staged sales.
+None of the retained text gives an exact booth-to-item membership table.
+No standalone PDF manual was found in the supplied client file inventory;
+the help/tip files are shipped instructions, not a recovered retail-manual
+stock appendix. Parent separately investigates period external guides.
+
+## Observations, inference and remaining gaps
+
+Observed: endpoint IDs, original charge capacities/stack flags/price/ammo
+types, terminal families, raw descriptors, category sharing, static placements
+and the explicit broad membership descriptions above.
+
+Inference awaiting corroboration: exact regular medical or ammo booth
+membership for a selected purchasable subset. A fixed supported subset may be
+a sensible reconstruction, but its source and scope must remain explicit.
+
+Unknown: full category member lists, original random QL generation/rotation,
+the opaque descriptor qualifiers' complete semantics, historical package
+packing/auto-merge and stock-specific stack limits. Existing delivery.md
+already documents the separate package packing policy; it was not repeated.
diff --git a/docs/research-notes/chat-metadata-research/metadata.md b/docs/research-notes/chat-metadata-research/metadata.md
@@ -0,0 +1,210 @@
+# Original 14.9.1 chat references and voice metadata
+
+Research only. No production files changed. Static Ghidra evidence is not a live
+original-server observation. Complete retained evidence and snapshots are in this
+directory; `manifest.json` binds the exports, original DLLs, and source excerpts.
+All owned REA sessions were closed after export.
+
+Original artifacts: `anarchy-vanilla-14.9.1/ddr.dll` SHA256
+`3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883`,
+`ccr.dll` SHA256
+`4c6d8dfc7eaa39044935d94e678ee4ead922decad36ed616a7843dcb51e7c55a`.
+The sessions reused matching `local/ignore-research` / Knowledge evidence.
+
+## Wire grammar (answered)
+
+`B` is one byte, `I` is BE u32, `S` is BE u16 byte count then C-string bytes
+excluding its terminating NUL, and `D` is BE u16 count then explicit raw bytes.
+Null/empty S and zero-length D are exactly `00 00`: there is no NUL fallback.
+Individual S/D count limit is 65535; the enclosing chat body's u16 count also
+limits the aggregate. Encoder DDR100a5e10 checks output capacity. Its wrapper is
+100a5df0. [ev_f9d07bd3cfc274be7766f4f7597b9ffcf345893df6b27a60eb6fc4dba4a9323b]
+
+| C2S kind | body | D contents |
+| --- | --- | --- |
+| 30 tell | ISD | subtype byte 0, then optional records |
+| 57 private group | ISD | optional records only |
+| 65 public group | GSD | optional records only |
+
+S2C forms are respectively ISD, IISD and GISD (the extra I is sender identity).
+Do not prepend a tell subtype to either group D. Actual sender queue10009670
+uses buffer+1 for tell, stores queue subtype at buffer[0], and increments the
+metadata length; groups pass buffer itself. Public tell/reply producer has
+subtype0. Complete original objdump excerpts are retained in `native-ranges.json`.
+[ev_2257b2e1f61464ab1dc90724b71e50f75c04a0f642511d6953a7ec2ff7f3a00b,
+ev_bc25c7f170f74e891a66a3e732367f4bd5a74d7eb18a94d36404a7bdc6d3cb62,
+ev_e6044001c6e91114dae6131623138939611ed34f3d5495ac122ef57e15fd61dc,
+ev_1903cc53cd32f451ef566b2a4df6d9c923774272fada3b290ce84d51e6260f1b,
+ev_7cbc389c64ec7925fb38fe8fc6d10d58ba346da89444cedd4d6c95b7832f2ddd]
+
+DDR1000b740 emits, in order, zero or one of each:
+
+* Record0: `B(0) I I I S S` if a ChatReference pointer is present.
+* Record1: `B(1) B B S S` if a Voice pointer is present.
+
+There is no record count or per-record wrapper length. Reference fields come
+from object+0,+4,+8, string object+0xc and +0x1c. Voice fields are low8 of
+object+0 and +4, then string objects+8 and +0x18. The public producer emits no
+record2. Receiver10008350 accepts record2 flag data, whose bit1 can bypass the
+Ignore guard; unknown authority makes that unsuitable for client relay.
+Receiver permits duplicate reference/voice allocations rather than enforcing the
+public writer's uniqueness. Require bounded exhaustion instead of relying on
+the native parser to reject malformed/repeated records.
+[ev_858be4dbba41bcc1c0861b05b5f02add2997252555e3fe476c547efb496a8f17,
+ev_3811a24be4bed4686060821abd42a4f0caec2b8854ca1f8e764d9db34d1747be,
+ev_581bcf0bf6503e15f8fe1969ce3f20653429831c94d69ccb7c124a0de882509a]
+
+## Reference producers, text and clicking (answered within native UI paths)
+
+Comm RefDroppedMessage10016a70 calls1000c060, gets stored Knowledge reference
+from RefMan, and creates a ChatReference with three zero integers and both
+strings initially empty. A stored character reference supplies source identity
+in ints0/1 (normally50000/character ID), third int remains0, second S receives
+the cached description, and GetCharName supplies the visible label. A stored
+item supplies low/high template IDs in ints0/1 and QL in int2, second S remains
+empty, and dummy item GetName supplies the label. Other Knowledge subtypes are
+suppressed in this path. Actual item drop10016ab0 calls1000c2f0 and obtains the
+same three integers from N3Msg_GetReferenceData, then the item name.
+[ev_e38cd7c6a6a7ffe4b7959de7823b096cfeacf44f1ae4d7a1ef82da7148ea73e3,
+ev_14530bb779270189ea68f2891f5c114c9714d0c40548b6fc51f5f6ab880e9086,
+ev_99bc019459a0f93b0647f7830b3e245748e3b10d85f3b628c935241fdbdfc0e0,
+ev_6a1051dda1a79a60ff0832f20662ba8739190f35f96e7cd646fdc95499999a42]
+
+Important correction: first S is NOT necessarily the inline label. These traced
+producers leave it empty. CCR TextInput::InsertLink1001ff30 delegates to
+ATextString::InsertLink10006870, which inserts `0x11 label 0x12` directly into
+the chat text and attaches the reference. It does not fill first S. Input
+insertion rejects another link if 0x11 is already present. The received line
+uses DDR100045d0 -> InsertLink(-1, reference, firstS); the -1 branch attaches
+the reference without inserting any label or consulting that label argument.
+Therefore requiring first S to match displayed label would reject native output.
+[ev_57d2a5d86a2fe54104c47dc42a99bb54ee381110d76365e47bd982aef01ed481,
+ev_a20336c89f9ec920e293a17af772fc6878efcdc82f5254ff37ac6e139b31c160,
+ev_c5af1faad05ac54edc9129232df176af81de40e8fc84ec36034a11ff48228b95]
+
+Click chain: Comm::LeftClickMessage10016af0 ->1000c490 ->100052c0 ->
+ATextString::GetLink100075b0. It scans the inline marker region using glyph
+widths. If the third integer is0, sends AFCM module0x14/event0x70 with second S
+as counted text and first two integers as identity. InfoSystem's registration
+maps this to ShowTextMessage10075800, which copies text into an ATextString and
+shows it with that identity. If third integer is nonzero, event0x71 maps to
+ShowTemplateMessage10075b50: QL is `third & 0xffff`, high template0 becomes low
+template, and N3Msg_CreateDummyItemID decides whether to show then release the
+dummy item. No stronger integer acceptance boundary was established; no modern
+emulator field bounds were imported.
+[ev_e3c0d2cf9d58dac10f8ed91986f3880f7a082887ce2c1b675772a4d094770bd3,
+ev_c7b67a088c5920e9475e38701bd78493bb2aed0f16801359eed5d8ac6facd8cd,
+ev_e8bb84b2babb3f3ed7d339ce0866c1d673f3a654d5748421aeffa3254763938e,
+ev_dde8d9621e921ed45a49a9e044c7db6e5f53f2ea7d0261cf7553e6679e77ba04,
+ev_d410fa2bb15e2dbaaeb3b8dc330f7ca754867588a28b82d9b49d7bc18636b131,
+ev_315a34fb0cb0d5549286e80675cd888053c28f6cfa603cd7c306fbb3a3306033,
+ev_6150e6a1b00d98aa800447b2a4307dda2f37c14091fff5fa9f992984f1690575]
+
+Practical workflow: create a Knowledge character reference with the native
+Alt-click/G action (previous reference-research), drag the Knowledge icon to
+the chat input and release left button, type any surrounding text, then send
+normally. Item icons can likewise be dropped onto the Comm input. Click the
+received visible link with left release. Default bindings explicitly name
+COMMAND_DROP_REF_ON_COMMVIEW and COMMAND_DROP_ITEM_ON_COMMVIEW = LeftRelease,
+and COMMAND_CLICK_ON_COMMVIEW = LeftRelease, with a Shift alternative outside
+world-item/character modes. Exact retained bindings are in `bindings.txt`.
+[ev_3dff589882a6c4f42e12afb434b594089dd46f9bd63d70e693e8b79b3ec4f06f]
+
+ATextString's UTF8 lookahead can inspect following bytes without individual
+remaining-length tests; well-formed string/marker validation is prudent. This
+does not establish all CCR text parsing safe. Cached Knowledge character
+descriptions are limited to1024 by OR AddCharRef/Load, but that is a producer
+limit, NOT a general bound on both metadata strings. See the earlier
+`docs/research-notes/knowledge-research/persistence.md` and replacement fixture.
+
+## Voice production and resolution (answered; audio backend boundary explicit)
+
+DDR1000d540 /voice requires owner raw stat389 mask0x1 and exactly one argument.
+Tokenizer1000d160 splits whitespace and supports quoted tokens; it copies
+tokens without case folding or a character whitelist. Zero/multiple args are
+errors. The effect argument goes unchanged to Voice+0x18. The help lists
+yes/no/heal/help/inc/run, but the parser does NOT whitelist these six effects:
+10001740 requires a candidate with both local .wav and .txt present instead.
+Consequently custom effect basenames are a native capability.
+[ev_fe429984672f71b88db53803eba85385817137f25418ea7c16ce041c00bd3556,
+ev_d3236b0f109ca9b457d57c28d277487a7b6f2741c9b78e1e49d7a894f483b0ce,
+ev_3d25ae859574836b26f9c808b772943f7191267f170f968a2a1a4201fd7af842]
+
+The two bytes are owner GetSkill4 and GetSkill59. Native mappings10002950 and
+10002ae0 are breed1solitus,2opifex,3nano,4atrox (other=>solitus), sex3female,
+sex2male (other=>male). Numeric out-of-range bytes therefore use fallback,
+not unchecked enum indexing. Style100021b0 comes from VoiceSndFxType:
+0 `simple`,1 `distunguished`,2 `cool`,3 `military`, other=>simple. The wire/path
+typo `distunguished` is literal; display branch uses `distinguished`.
+/voicetype10002360 accepts case-insensitive first letters s/d/c/m, not full
+word equality.
+[ev_fe2e12e65771b3a6345eeaa463b6a57eaeab187951ebb8abcd5df7c3d306af90,
+ev_bc1f3ecf30d6e78496764c827fce3cf70641b979c933a4f985738e1115828904,
+ev_7304569f34f4d62c4e988ac5e9203f4ce2f28e63282b89c5434a18bccd681b74,
+ev_55f66553760673b402c2658ee3eb31d8abbb1303160a67677560d03f5c03e242]
+
+Builder10002450 tries the following stems in order (literal `_` and `_01`):
+
+1. nickname_effect_01
+2. breed_sex_style_effect_01
+3. sex_style_effect_01
+4. sex_effect_01
+5. effect_01
+
+Consumers prefix CDPath plus `sound/sfx/player/`. Existence preflight10001740
+requires both extensions. Text lookup10001ce0 uses `.txt`, fopen(rt), and the
+first fgets(...,1024) line from the first available candidate. Audio10001a10
+uses `.wav`, stat, then SandyInterfaceModule_t::PlayPlayerFX(path,1.0).
+These candidate/path constructions all use dynamic std::string and vector
+storage; no fixed path sprintf buffer or smaller effect/style length cap was
+found in this bounded DDR path. The1024 array is bounded file CONTENT storage.
+No claim is made about untraced Sandy audio backend internals.
+
+Follow-up: `voice-playback.md` extends this boundary into MMR and recovers a
+260-byte descriptor filename field and a browser manifest lookup gate. The
+absence of a smaller cap in DDR alone must not be read as safety of arbitrary
+downstream filename lengths.
+
+The supplied asset tree has no `cd_image/sound/sfx/player` directory. The
+preflight calls direct CRT `stat` for both files, and text lookup uses direct
+`fopen`; neither gate uses a virtual resource database. Unless a filesystem
+adapter supplies these files, a real /voice command cannot pass preflight in
+the current asset set. Missing target voice assets remain an implementation
+constraint. Synthetic files can exercise metadata/consumer behavior, but that
+must be reported as a fixture, not recovered original audio.
+[ev_66ea06d394078287ea062031b028d2963824307c7db38df1941ac655ddfd3a34,
+ev_a37e1a5bd0622770a6d2ad8771789cc64d6c95c4309338def4551c1ab0c6f622,
+ev_59df807c0b511621015b10c5546fe942482ce490d2964264b2b7ba353f0d2144,
+ev_9f16b9bc36e187b942bfef12c536ef884a4d68d620a8b5d6d7d6be5364df939c,
+ev_2fd83904049125e82448e12d66162cb7c6f7fd3a4a209c905a99eb732bd68915]
+
+Nickname candidate is used on RECEIVE as well as preflight: tell10007af0,
+group10008620 and vicinity10008d50 pass message+8 (resolved sender name) into
+both text and audio lookup. It is not supplied in voice metadata. These paths
+substitute local text if nonempty and otherwise retain received text. Helper
+10001fd0 interprets the local line's bracket control prefix (including MT).
+Audio is separately subject to expansion/stat389, rate/duplicate suppression,
+and hearFriends/vicinity/guild/team preferences. Group flag0x40 rejects voice;
+the normal send queue1000c5f0 routes voice through the selected chat target,
+so it is not intrinsically restricted to vicinity despite the help wording.
+[ev_16fcb32fbd4a0d830065ae9c1c1d57f06ae60bf4a2d51f5bcf31ce76b5f865f4,
+ev_f7590d1ab782aa2205a6c4d8d0628112f7bf9d8649415152bc475c7c391cc04d,
+ev_8ea3a6cc92b39932e975b917cf206bae2190f1a177f9d79f7574fb6705b7826a,
+ev_be55b8f4db016021a0c10224754846cfc9cdbd9f151484b5d789c667e46555c8,
+ev_a26f08d8cf178fa1caa68d7dfc9327b7da4f355831224d250220d78f2488b6f5]
+
+## Server-facing inference and limits
+
+For a bounded relay, validate counted fields, exact exhaustion, record order
+and uniqueness; reject unknown or privileged record2. Reject embedded NUL in
+strings consumed as C strings. The public producer accepts custom effects, quoted spaces, relative asset paths
+and case-sensitive names. The relay preserves those native capabilities,
+without a six-effect whitelist, path restriction, style allowlist or invented
+small numeric cap. Authenticated
+sender identity/name must come from transport, not an arbitrary metadata name.
+
+These are reconstruction choices informed by consumers, not recovered
+original-server policy. Original network service moderation, replay/history
+handling, item-template validity and every downstream audio decoder remain
+unresolved. No live voice audio/reference round trip was run by this research
+agent; parent owns actual WASM integration tests.
diff --git a/docs/research-notes/combat-heal-impact-report-research/README.md b/docs/research-notes/combat-heal-impact-report-research/README.md
@@ -0,0 +1,167 @@
+# Local-victim weapon impact reports, original 14.9.1
+
+**Bounded negative: no usable outbound victim impact receipt was established.**
+The real weapon drain calls an HP wrapper and generic health/stat notifications.
+The inspected path does not construct/send an impact IIR, retain an impact
+sequence, or acknowledge a popped ring entry. Two narrower follow-ups close
+plausible hidden reports: the HP callback routes to client application-message
+dispatch, and the wrapper's temporary stat map belongs to IP adjustment whose
+outgoing constructor explicitly excludes HP27.
+
+This does not prove the absence of every possible outbound side effect. All
+application-message subscribers across the shipped modules were not exhaustively
+enumerated. No downstream network forwarding of these HP notifications was
+established. No original server schedule or new healing delivery policy follows
+from this result.
+
+## Scope and identity
+
+Read first: `docs/first-aid.md`, `docs/nano-healing.md`,
+`docs/combat-healing-delivery.md`, `local/weapon-impact-research/README.md` and
+`common-dispatch.md`. Their broad negative audits, common scheduling and synthetic
+zero-result results were not repeated. This pass only follows the resolved
+SimpleChar victim, its HP setter/wrapper and the relevant callback/report leads.
+
+REA skill Step 6 read-only reuse; no binary open/export, REA session, runtime,
+DB action, production edit or commit. The prior automatic approval rejection of
+a fresh native open was respected, without retry or workaround.
+
+Original KKR SHA-256:
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+All complete selected records in `retained-evidence.json` match it.
+Original addresses use10000000; maintained KKR lifts use36000000.
+`provenance.json` identifies reused bundles. Numeric address text files are
+convenience extracts, not replacements for the complete Evidence records.
+`sources.json` records complete maintained function extracts, source ranges and
+source/extract hashes. Generated C is an instruction lift, not original source.
+The single DDR callback extract is supporting maintained-source coverage only;
+no new original DDR identity or decompile claim is based on it.
+
+| Relevant original procedure | Complete retained Evidence ID |
+| --- | --- |
+| `100ab5a0` real damage drain, calls/callees | `ev_04d595c32db19eaf94e17c9aed01711425c70a290b867d43817b798423bdb693` |
+| `100ab5a0` complete pseudocode | `ev_eb20a4ca58374e72da2f8326ccfd51f83f77758fcff01da9626fa192429b926d` |
+| `10075db0` wrapper | `ev_a72c4bbd4b23a689ccd3ac4be40fb7c5947eb37266a60df907a20aa4955252aa` |
+| `10075db0` calls/callees | `ev_9eb97828a48cfe535d6836210aa163b6c87607868057f0986d83490585214206` |
+| `1006e030` stat/HP setter | `ev_ad3bf775fd65a45bd62c250f78a91146afe2b3f42b9640669800f035c20824f6` |
+| `1006e030` calls/callees | `ev_a4eae5511486116cd3c919e0043b89887a08d2f1db7fdd184e021803ae77bb7b` |
+| `1001d0b0` combat feedback | `ev_16fbb07444de249fd19ed14114c99abb43239d8f64214cc0e4494b36dc8a7c77` |
+| `1007a660` known receipt-time append path | `ev_09336905396f52f8c1b2ec8b2c106292e61c364911d3b8fc741c8e7b13b42bf5` |
+| BeginIPAdjust helper `10074380` | `ev_38d4d7efbf1bf011170e4b6991b1820c93d988491d63f42e2d008edbacd5bdab` |
+| EndIPAdjust helper `10074130` | `ev_bd4664e4de2625b50b34fb93271483b96aa826fbc4010d941e5ea8ef080a355e` |
+| Outgoing SkillIIR constructor `10083ad0` | `ev_7b459c7bc1fc0ed6d79a706b0c2398def54feff7a270e36d21a6955482d3eade` |
+| AbortIPAdjust helper `100741e0` | `ev_9d136f35f2bcee5673f220af84b4def6dbade6986c21212790eed84b2f9c3181` |
+
+## Actual victim path and local flags
+
+`100ab5a0` resolves the victim as SimpleChar. Its local-character test selects
+feedback categories29/30 for the local victim, versus31/32 for attacker-local or
+other representations. The attacker NPC byte`+1b4` and predicate10072310 further
+choose the local victim's wording. Maintained10072310 reads attacker state and
+returns a boolean; it constructs no report. This is feedback routing, not a
+victim-owned network acknowledgement.
+
+After feedback, original100ab6c3..cd reads victim Health27 mode2, subtracts the
+absolute popped damage and calls10075db0 on victim helper`actor+154` with
+`(27,newHP)`. It then optionally invokes death-reason10072340 when holder`+74`
+is nonzero. That branch prints local death/reclaim feedback and setsHP0; its
+complete retained body constructs no outgoing IIR. There is no after-impact
+local-victim branch that sends an entry ID, slot, damage receipt or health report.
+
+The existing positive local-attacker AFCM `(3,157,damage)` notification in
+1007a660 is on AttackInfo reception before the drain, as the previous audit
+already established. It supplies no new victim-impact observation in this pass.
+No claim that it proves a historical server damage schedule is made here.
+
+## HP setter callbacks
+
+10075db0 first invokes the victim stat interface setter`actor+e4,+8`, which is
+1006e030 for the resolved character representation. Ordinary HP handling:
+
+- Floors negative HP to0 and synchronizes the actor HP mirror`actor+1b0`.
+- Stores the preceding HP through stat11 and writes the new raw stat27.
+- Emits a health callback through1001cee0 only when100710c0's comparison
+ predicate succeeds. That predicate compares the actor's associated identity
+ to the engine's current client character association; it is not a packet send.
+- Emits a generic changed-stat callback1001ce40 when the value changed, carrying
+ stat, new/old values, actor identity, and the local-character flag.
+- Performs low-health movement-limit recalculation through the existing
+ movement helpers. It does not add an impact identifier or direct network send.
+
+The relevant additional maintained-source branches are complete extracts here:
+
+| Original entry | Maintained source |
+| --- | --- |
+| HP/stat setter1006e030 | `client/game/kkr.dll/lifted-0033.c`, `sub_3606E030` |
+| Health association predicate100710c0 | same file, `sub_360710C0` |
+| Health callback1001cee0 | `client/game/kkr.dll/lifted-0012.c`, `sub_3601CEE0` |
+| Changed-stat callback1001ce40 | same file, `sub_3601CE40` |
+| Health ClientInterface dispatch10004940 | `client/game/kkr.dll/lifted-0001.c`, `sub_36004940` |
+| Changed-stat ClientInterface dispatch10004180 | same file, `sub_36004180` |
+
+1001cee0 calls engine ClientInterface`+94` entry10004940. That function copies
+only the victim identity and dispatches application message `(45,357)`
+(`2d,165`) through IAT1016f304/1016f30c. The supplied HP/max arguments do not
+become a new server packet here. It has no attack slot, sequence, consumed-ring
+index or timestamp. One maintained DDR listener at`2b04b340` obtains that identity
+and calls a UI update; it has no direct game-network send in its complete body.
+This single listener is not an exhaustive subscriber audit.
+
+1001ce40 calls10004180. For Health27, its generated jump-table index is1 and
+target360043db; `health-stat-jump.json` preserves the exact maintained data source
+hash, RVAs447b/4444 and derived target. This branch requires the supplied local
+flag, then dispatches application message `(50,338)` (`32,152`) carrying stat27
+and the new value through IAT1016f304/1016f308. It does not call the known
+`SendIIRToObservers` import1017004c or build an IIR in this body. This generic
+local HP-change event also fires for non-weapon HP assignments, so it is not
+itself a distinguished popped-result receipt.
+
+The imported application-message machinery and every subscriber were not
+traced to closure. Thus the supported statement is **no direct impact report in
+these complete bodies, and no established forwarding route**, not a universal
+proof that a downstream subscriber can never send anything.
+
+## Temporary stat map: IP editing, no HP report
+
+After the ordinary setter,10075db0 checks helper`+28`. If false, it immediately
+returns. If true, it records the stat/newValue in helper`+18` and only has extra
+logic for IP53. This initially plausible reporting map is already identified by
+the original IP-adjustment evidence in `local/ip-training-research/wire-findings.md`:
+
+1. BeginIPAdjust1002b8e0 ->10074380 initializes the editing snapshots and sets
+ helper`+28`.
+2. EndIPAdjust1002b880 ->10074130 constructs/sends SkillIIR and clears the byte.
+3. Critically, constructor10083ad0 reads the **raw stat array**, independently
+ copying only16..21 and100..168. It does not serialize helper`+18` or include
+ HP27. Recording HP27 during impact while editing therefore does not turn it
+ into an outgoing HP report on ACCEPT.
+4. Abort100741e0 restores the trainable snapshots and clears the byte without
+ sending an IIR. Neither ending nor aborting is called by the impact path.
+
+No automatic impact-time send follows this dirty-map write. This closes the
+specific hidden-wrapper-report lead, without repeating the general dynamic-stat
+setter or IP-training implementation audits.
+
+## Coverage and unresolved gaps
+
+Answered with high confidence: resolved victim selection, local feedback gates,
+wrapper call, direct HP callback dispatch, temporary-map role and outgoing
+SkillIIR HP exclusion. The application dispatch entry branches are maintained
+instruction-lift observations; no fresh original decompile was requested.
+
+Bounded negative: no usable native victim-impact receipt in this call path.
+Remaining gaps are all application-message subscribers/indirect callbacks,
+imported movement implementation internals, unrelated periodic client reports,
+and an original-server correlated impact/heal capture. The prior retained
+packet audit remains evidence only for its captured session; it was not rerun
+or broadened here.
+
+No canonical server scheduling change, fixed healing delay, per-client pending
+damage correction, synthetic drain or client change is justified by this pass.
+The result supplies no new server-visible impact observation to solve the
+existing absolute-HP/queued-weapon-heal discrepancy.
+
+The focused subscriber follow-up is in `subscribers.md`: both recovered literal
+registrations lead to UI-only callbacks, and their current port translation
+entries are present. It retains the computed/table-driven registration boundary
+rather than claiming exhaustive subscriber coverage.
diff --git a/docs/research-notes/corpse-scene-reentry/focused-partial-reentry.md b/docs/research-notes/corpse-scene-reentry/focused-partial-reentry.md
@@ -0,0 +1,43 @@
+# Focused partial-slot section reentry
+
+Selected P0 scope: a partially looted corpse must retain its remaining nonzero
+slot through a native scene-section departure and return, with one cash award
+and exact durable ownership. The earlier earned audit already covered an
+untaken item and empty-corpse reentry; it did not supply this maintained partial
+two-item checkpoint. This is a regression milestone, not a new behavior fix.
+
+`TestBrowserPartiallyLootedCorpseSceneReentry` and
+`tools/client/test_corpse_reentry.mjs` now exercise a controlled checkpoint beside
+the observed X=160 scene boundary. Actual combat creates a one-HP Leet corpse;
+fixture setup places it, adds a second item and extends the observation window.
+These are controlled conditions, not earned progression or historical timing.
+
+The final run completes in17.27seconds. Actual native transfers address corpse
+slots0 then1. The client walks from X161 to157 and back, sending one outbound
+and one return CharZoneMove. Both server interest and the native typed corpse
+remain present. Cash stays1 after the first Use. The final cold database reader
+finds exact item IDs1/2 in player slots64/65, with no corpse contents or cash.
+All5 final traces have no client errors, dropped events or dropped lifecycle
+markers. Native camera framing and real clicks select the corpse and actual
+source cells. Screenshots are in `20261103-032447/`.
+
+Verification: final native Go test passes; go vet exits0; Node syntax and
+git diff checks pass. `tmp_verify_focused_partial.py` checks the exact ledgers,
+both actual transfer slots, section messages, complete traces and source hashes;
+the report is `focused-partial-verification.json`. No native test/server process
+remains; the user's preview PID989899 was preserved.
+
+Failed fixtures are retained separately. A leftover mock combat connection
+blocked login; its Go stack identifies the nil embedded connection Close.
+That owned run was stopped and its processes cleaned up. Initial camera poses
+placed the corpse behind the view or under transparent chat. A shop route hit
+the enclosure; a longer return hit terrain. The boundary's raw position captures
+allowed replacing that route with a short checkpoint. One boundary combat setup
+was obstructed, so the final fixture creates its kill at the known clear setup
+and places the checkpoint before opening the browser. None of these failures
+establishes a corpse lifecycle defect. The long route's traces are bounded and
+truncated; only the final short capture is claimed as complete.
+
+No further manual gameplay was needed after the short checkpoint passed. The
+window is closed during travel. Open-window transitions, broader interest
+policies, slope placement and the parent P0 audit remain open.
diff --git a/docs/research-notes/critical-hit-research/period-sources.md b/docs/research-notes/critical-hit-research/period-sources.md
@@ -0,0 +1,104 @@
+# Critical-hit period-source follow-up
+
+Research date: 2026-10-23. Scope: target 14.9.1, independent documentary
+research only. No live gameplay, native sessions, or production files changed.
+
+## Result
+
+No new pre-14.9.1 primary source found that establishes the numerical critical
+chance equation, its caps, or roll ordering. In particular, the 3% baseline and
+the attack/evade ratio rule attributed to Sybex remain hypotheses. No first-hand
+controlled experiment found that resolves the critical damage floor against AC
+or the original server's ordering of OE, scaling, armor, and damage additions.
+
+The useful new findings are an exact identity for the book worth obtaining,
+and a first-hand 2002 observation that AggDef affects incoming critical
+frequency. Neither licenses a numerical implementation.
+
+## New period primary observation
+
+- Source: Ward "Beria" Alsaqri, **A Bureaucrat's Guide to Pistols**, version
+ 1.0, explicitly last updated **February 19, 2002**; change log dates original
+ draft January 27, 2002. [Preserved author's page](https://www.geocities.ws/cratpistol/).
+- Location: **Other Questions and Answers / What about ranged initiative?**,
+ "Update as of Level 97" paragraph.
+- Observation: after installing a six-slot belt and nano formula recompiler,
+ the author moved AggDef to about 75% and reported substantially fewer
+ critical hits received. He did not notice a significant shooting-speed
+ reduction.
+- Confidence: high that this is a first-person target-era report; low as a
+ quantitative experiment. No sample size, before/after counts, opponent AR,
+ defense stats, or controlled list of changed equipment. Supports checking
+ AggDef in the eventual rule; does not establish its magnitude or whether it
+ changes crit chance directly or through defense.
+
+## Exact Sybex book identity and access limits
+
+- **Chris W. McCubbin, Anarchy Online: Sybex Official Strategies & Secrets**,
+ Sybex, **2001**, ISBN-10 **0782129935**, ISBN-13 **9780782129939**, **240
+ pages**. Bookseller metadata places release in July 2001.
+- The author studio's [own portfolio](https://incanmonkey.com/portfolio/)
+ lists this exact title under Strategy & Game Guides. Its note says only
+ asterisked titles were created as both PDF and print; AO is **not**
+ asterisked. This is primary evidence of authorship/title, not combat rules
+ or public PDF availability.
+- Bibliographic cross-checks: [AbeBooks edition record](https://www.abebooks.com/9780782129939/Anarchy-Online-Sybex-Official-Strategies-0782129935/plp),
+ [ThriftBooks edition record](https://www.thriftbooks.com/w/anarchy-online-sybex-official-strategies-and-secrets_chris-mccubbin/1312899/).
+ These are secondary catalog metadata, not inspected book pages.
+- A [Finnish sale listing](https://www.huuto.net/kohteet/anarchy-online-official-strategies-and-secrets-sybex-2001/653477013)
+ was indexed as a first-print copy with photographs, but direct retrieval
+ failed. No combat pages or table of contents inspected. No purchase or
+ contact attempted.
+- Bounded title/ISBN searches, including archive.org and Google Books scoped
+ searches, did not locate an inspectable public scan. Local filename searches
+ did not locate a Sybex guide or book PDF. Absence from these searches does
+ not imply the book is unavailable elsewhere.
+
+## Later material deliberately excluded from target-era proof
+
+- **DaveDread**, October 2, **2003**, 08:56:38, post 17,
+ [Noob - How to evaluate weapons?](https://forums-archive.anarchy-online.com/showthread.php?185460-Noob-How-to-evaluate-weapons=).
+ Explicitly claims all professions have 3% base critical chance and that
+ item/nano bonuses stack; mentions MA self 24% and others 7%. A useful near-era
+ community assertion, but **after Shadowlands / 14.9.1**, with no observed
+ counts or derivation. Cannot independently verify the target's hidden base,
+ stat 379 arithmetic, caps, or order of hit and critical rolls.
+- **Otinsainpas**, October 2, **2010**, 19:47:24, post 19,
+ [A wtf moment](https://forums-archive.anarchy-online.com/showthread.php?581199-A-wtf-moment=).
+ Reports attacker AR 9 versus a level-one Reet with debuffed dodge -4,
+ obtaining one crit in 20 hits. Useful only as a warning that later discussions
+ about negative defense and guaranteed criticals contain contradictory
+ measurements; tiny sample, different era, not a target formula.
+- Engelen/LSnake's MA guide at Neoseeker is dated **May 17, 2005**; a 2021 AO
+ Universe remake credits an original 2003 guide. Neither establishes a
+ pre-14.9.1 numerical experiment. Not used as primary target evidence.
+
+## Local source check
+
+Read `docs/combat-rules.md` (Damage and unresolved server rules) and
+`local/combat-outcomes-smoke/source-ledger.json` before searching, to avoid
+promoting existing claims as new evidence. Existing July 2002 damage examples,
+Vampi's September 2001 Sybex attribution, native stat 379 default, and shipped
+Subconscious Guidance +8 modifier retain their previous classifications.
+
+Opened `local/research/anarchyonline.db` with SQLite **read-only**.
+Title searches for critical, evade, attack rating, and Sybex returned no pages.
+Full-text phrases "critical chance", "crit chance", and Sybex returned six
+modern item/location pages (page IDs 1989, 3305, 3367, 3377, 3510, 3585; touched
+2007-2015). They provide no numerical baseline or original experiment.
+
+## Still unknown
+
+- Hidden baseline; whether it is a floor or a term that can be reduced.
+- Exact AR / evade / AAO / AAD / AggDef contribution, level dependency, and
+ behavior when defense is zero or negative.
+- Stat 379 probability units, additive versus multiplicative placement,
+ lower/upper caps, and defense/critical-resistance interactions.
+- Single combined outcome roll versus hit then conditional critical roll;
+ denominator of observed critical percentages (attempts or landed hits).
+- Critical AC floor, damage-add ordering, original server OE ordering and
+ integer truncation, including negative/zero damage edges.
+
+Suggested decisive next evidence: inspected Sybex combat pages with page
+numbers and full context, or original pre-August-2003 combat logs with
+attacker/defender stats, buffs, stance, hit/miss/crit counts and test procedure.
diff --git a/docs/research-notes/critical-hit-research/result-contract.md b/docs/research-notes/critical-hit-research/result-contract.md
@@ -0,0 +1,68 @@
+# Original critical-result routing contract
+
+`client/tests/critical_result.c` executes these unchanged lifted original
+14.9.1 kkr.dll functions:
+
+| Original address | Function covered |
+| --- | --- |
+| 100aecb0 | AttackInfo activation |
+| 1007a660 / 1007a320 | Weapon-holder delivery and slot lookup |
+| 100ab4c0 | Insert damage/result in 50-entry ring |
+| 100ab580 / 100ab560 / 100ab500 | Nonempty check, result peek, damage pop |
+| 100ab5a0 | Consume queued damage/result at impact |
+| 10075db0 | Assign actor raw stat with IP editing inactive |
+| 1007be50 | Immediate generic damage when attacker is absent |
+
+Generated addresses are rebased from 10000000 to 36000000. The fixture links
+lifted-0034.c, lifted-0035.c, lifted-0050.c and lifted-0051.c directly.
+
+The four known-attacker scenarios cover normal 4 and critical 5, death 0/7,
+ammo 3/0/-1, local defender/uninvolved observer, and ring index 49 wrapping to 0.
+The packet deliberately names another target identity, different from the
+current opponent used for impact; the packet target remains undamaged.
+
+For each valid known-attacker result:
+
+- Receipt inserts exactly the supplied damage13/result4or5 and assigns
+ ammunition immediately to item stat 26, including literal -1. HP remains 100.
+- Impact reads HP 27 once and assigns 87 once. Attacker and alternate packet
+ target remain 100. The exact result 4 or 5 reaches feedback unchanged.
+- Death reason 7 is stored on the current opponent's holder and passed to
+ death handling after HP assignment. This is a branch probe, not a claim
+ about the canonical meaning of reason 7.
+- Calling impact again with the empty queue performs no further HP read,
+ assignment, feedback or death call. No duplicate subtraction occurs.
+
+Five missing-attacker scenarios cover result 4/5, death 0/7, local/nonlocal
+target and missing target. A local known payload target receives one
+immediate 100 to 87 subtraction and generic damage text for both 4 and 5; no
+critical result reaches the generic formatter. Nonlocal or absent payload
+targets are ignored. This path does not queue or assign ammunition.
+
+Identity lookup/casts, locality, target-state test, weapon damage type 90,
+actor/item stat storage, feedback formatting and death are external fixture
+boundaries. The actual critical suffix text formatter 1001d0b0 is NOT
+executed here. Its result 5 branch is retained static evidence:
+`ev_16fbb07444de249fd19ed14114c99abb43239d8f64214cc0e4494b36dc8a7c77`.
+Other source evidence already retained in
+`local/reports/combat-outcomes-1491-evidence.json`:
+
+- AttackInfo activation:
+ `ev_0cc37e0846b6c5fec44cd473f9f37925b7f4306a91fbda1205dd100b39e99ff2`.
+- Holder queue delivery:
+ `ev_790e0fb860befdf361ba02e2da4774481ec57677ce1d6bd1ba5c975915020df9`.
+- Queue insertion:
+ `ev_ca279c37ea9a840dee4b09faef44c804e8b296d284356a7e6f8bd26479d61636`.
+- Impact consumption:
+ `ev_520ea6a76399b14f885b060bd23c6ddafd4226878686f08217ba4da81894dba1`.
+- Missing-attacker fallback:
+ `ev_413afb184890a3558f249b230ebf838e3f9a8c0828eb2968b647339e95b2b029`.
+
+This contract does not exercise the network reader, actual animation
+scheduling, renderer, death implementation, sound, chat text or server
+critical probability/damage calculations. It tests the exact original
+activation and queue algorithms with supplied outcomes. Browser testing
+must still verify critical text, animation timing and complete packet flow.
+
+Build/run logs are `native-contract-build.log`, `native-contract.log`,
+`wasm-contract-build.log` and `wasm-contract.log` in this directory.
diff --git a/docs/research-notes/cyber-armor/README.md b/docs/research-notes/cyber-armor/README.md
@@ -0,0 +1,110 @@
+# Regular Cyber armor audit and native lifecycle
+
+Current work: admit the seven explicitly reviewed regular Cyber pairs through
+shared item-family interpolation, without inventing acquisition membership.
+The source worktree started clean at f396e78c. Original live preview, databases
+and user-owned sessions are untouched; native tests use disposable fixtures.
+
+## Original records
+
+`tmp_candidates.py` reads the extracted catalog; `tmp_audit.py` independently
+decodes all fourteen complete original resource1000020 payloads, retains their
+raw bytes, and matches every decoded field to that catalog. Original index
+SHA256:46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71.
+The report is `original/audit.json`; its per-record digests/offsets identify the
+raw data. The seven explicit QL1/200 pairs are85477/21917,85531/22289,
+85572/22219,85612/22166,85655/22104,85711/22014,85712/22010. Numeric order
+does not identify quality order. The two body styles remain separate.
+
+Remaining descriptors agree after normalizing scalar stats1/2/54/74, eight
+armor amounts, two strict wear thresholds and section encoding offsets.
+Offset differences follow the text lengths and are not gameplay fields;
+complete unnormalized descriptors remain in the audit. No unknown function
+or requirement was omitted from the comparison. Thresholds are Intelligence19
+and Psychic21,7 atQL1 and500/450 atQL200, with operator2 (strict greater-than).
+`values.json` derives literal boundary expectations independently of Go.
+
+Red test: `red.log` records qualified QL2/200 glove wear rejection before
+family admission. An earlier command failed at setup because default Go cache
+was read-only; no gameplay conclusion followed from that setup failure.
+The repeated focused run uses the established workspace cache and passed.
+
+## Research and acquisition limits
+
+The read-only existing mirror search (`tmp_local_sources.py`,fandom-pages.json)
+finds later Waitt/Bau and Living Cyber pages, not a regular-Cyber14.9.1 stock
+table. Page3280 was touched2007-12-18;3312 on2007-12-24;4450 on2019-03-31.
+Their different families, later quests and expansion content are not imported.
+
+The April26,2002 firsthand Fixer guide reproduced in this dated thread says
+Cyber uses INT/PSY; it does not supply a precise shop/mission/drop pool:
+https://archives.jeuxonline.info/fils/82853.html
+
+The later AO-Universe De'Valos crafting guide lists ordinary sleeves as
+mission/dyna/random loot material, but is Alien Invasion content and supplies
+no14.9.1 probabilities or stock assignment:
+https://www.ao-universe.com/guides/alien-invasion/tradeskill-guides-3/armor-3/devalos-sleeves
+
+Modern Living Cyber quest reports concern another family and are not period
+evidence for regular Cyber acquisition:
+https://forums.funcom.com/t/living-cyber-armor-quest/57422
+
+Auno85531 withpatch14090800 was inaccessible. Bounded queries included
+Worn Cyber Armor Gloves; Cyber Armor Anarchy Online2002 shop; High Quality
+Cyber Armor Anarchy; Worn Cyber Armor Gloves85612 200; Cyber2002 boots shop
+anarchy; archive-domain Cyber2003 buy; Cyber Armor2001 shops. Several returned
+unrelated trademark/security material, which was not used. Production stock,
+mission rewards and loot pools remain unchanged.
+
+## Native fixture and correction
+
+`tmp_prepare_native.py` makes a local fixture and driver from the maintained
+Leather lifecycle test, using the maintained GameTest real-input harness.
+It creates a controlled level100 female Nanomage and observer, eleven armor
+instances and100credits before either client connects. This is an item
+contract fixture, not normally earned acquisition or progression evidence.
+The temporary Go fixture is removed from server after compiling.
+
+First attempt session18872 is TERMINAL FAIL39.44s at the expected sale wallet.
+Artifacts:local/game-tests/cyber-20261101-114431/. Allseven pieces and both
+sleeves remove/re-wear; QL100 wears, QL101 rejects equality, actual native
+training spends485IP for Intelligence255->256/Psychic230->231; QL101 then
+wears, QL200 rejects, and the other authored body style wears with equal AC.
+Native sale-offer-1 screenshot quotes4295. Final native/durable wallet4395
+and exact sold-item removal agree. The fixture incorrectly expected4353 by
+omitting the Intelligence-driven Computer Literacy markup. Raw literacy5
+gets the original Intelligence trickle; effective literacy68 gives1percent
+markup. Base70888 at original6percent gives4253, then42extra =4295 proceeds.
+No production pricing change was made. Browser finally closed both contexts;
+the Go test exported its stopped database and closed its temporary server.
+
+The corrected driver/Go assertion expect4395. A fresh full rerun, independent
+SQLite/native audit, race checks and fresh-client cold recovery are still
+required before claiming completion or committing this implementation.
+
+## Completed native and normal verification
+
+- Corrected native session55854 TERMINAL PASS37.04s at
+ local/game-tests/cyber-20261101-114648/. Independent verified.json passes
+ exact allten physical rows, placements and native proxies, raw trained stats,
+ wallets, cancelled-sale retention and sold9 deletion. No runtime errors.
+- Fresh cold session41200 TERMINAL PASS15.27s at
+ local/game-tests/cyber-cold-20261101-114903/. cyber-cold-verified.json passes
+ identical items/locations/wallets and all non-pose character fields. Native
+ pose errors0.100499m; quaternion dots at least0.99999996. All owned browsers,
+ temporary server and streams are closed. The source database is untouched.
+- Normal focused Go session63722 TERMINAL PASS,147 test/subtest results over
+ five roots, two tested packages and assets/no-test-files. No test failed or
+ skipped. Native-only temporary Go fixtures were removed after compilation.
+- Vet session32870 TERMINAL PASS, emptygo-vet.log.
+- Expanded race selection42073 is LIVE; poll that handle rather than restart.
+ Includes the new Cyber cases plus existing armor quality/persistence checks.
+
+Final race42073 TERMINAL PASS:164 test/subtest results overten roots, including
+the preceding normal scope and existing armor quality/persistence. Server
+120.102s. The local result verifier checks every started test has exactly a
+passing outcome and both test packages complete; assets has no test files.
+No test failed or skipped. Normal/race JSON, emptyvetlog, originalaudit,
+nativeandcold ledgers are retained here. All temporary native source files
+were removed from server; all owned clients and servers are closed.
+The broader P0 checkbox remains open; all195 existing open titles are retained.
diff --git a/docs/research-notes/damage-nano-research/native/README.md b/docs/research-notes/damage-nano-research/native/README.md
@@ -0,0 +1,179 @@
+# Positive damage and weapon-range nano consumer audit
+
+Read-only review of retained original14.9.1 evidence, maintained lifted C and
+current Go producers/consumers. No binary was opened, no REA session/export was
+created, and no native/game/browser/server process or request injection was used.
+No tracked file was edited by this independent scope.
+
+Original target identity is `anarchy-vanilla-14.9.1/kkr.dll`, SHA256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Every selected original record in `retained-records.json` binds exactly that
+identity. Original10000000 addresses map to maintained36000000 by adding26000000.
+`source-hashes.txt` fixes reviewed current sources and pre-existing records;
+`tmp_audit.py` reproducibly selects unchanged existing records. These files
+create no new original EvidenceID.
+
+## Generic modifier application and inverse: answered, static native evidence
+
+Original53045 Modify passes through100bd4d0 to100bd600. Original53012 Skill
+uses100bd600 directly. Stat argument key0 and signed amount key39 pass through
+10074730(add) /10074b00(remove). The former increments the selected modifier
+row at100747b4; the latter subtracts at10074b47 and writes at10074b49. Neither
+handler rejects278,279,280,281,282,311,315,316,317 or380. These IDs use the same
+ordinary temporary additive balance and inverse lifecycle as existing buffs.
+They do not rewrite the base/trained foundation. Stat-specific notifications
+following the generic arithmetic do not replace that arithmetic.
+
+Common original evidence is
+`ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405`,
+retained unchanged as `shared-modify-record.json` from
+`local/reports/combat-client-decompiles-21.json`. Matching maintained bodies are
+`lifted-0056.c::sub_360BD4D0/sub_360BD600` and
+`lifted-0034.c::sub_36074730/sub_36074B00`.
+Skill's opaque key24 is serialized by100b9aab/100b8039. Existing full census
+in `docs/nano-skill-buffs.md` and `local/critical-nano-research/` establishes
+all1387 Skill calls across297 original programs have zero here. Preserve the
+complete four-byte-zero gate; generic numeric support does not establish a
+meaning for nonzero opaque companions.
+
+Signed getter/add/remove original assembly IDs in
+`docs/research-notes/signed-stat-research/ledger.md` remain applicable:
+
+- effective10075ca0: `ev_c27bbca88da1a49ac67c28b427c73045affc7be7b57c2cf2814043387c7a4714`;
+- modifier getter10074a30: `ev_c3dc476ddb84eedb69e4e81bbbd80a7c5bf28e3aca92e4d8e2e0386d6813ad6f`;
+- add10074730: `ev_b2a9656c468675646d49b31ff6317ecdfd16fc3991e0dc6484322a01038bea1c`;
+- remove10074b00: `ev_8fbad422c0792a1be57aad44cb4daaa490d05eaa8c77c68e55c15f94fe2215fc`.
+
+## Stat identity and weapon consumer boundary: answered with limits
+
+Original10031700's names, original evidence
+`ev_98e4abebdc945ad44f630f266643a271f9826c40b98314ddfc955b1513b1e525`,
+identify these modifiers:
+
+| ID | Exact named identity | Existing selected weapon damage type |
+| --- | --- | --- |
+|278|ProjectileDamageModifier|90|
+|279|MeleeDamageModifier|91|
+|280|EnergyDamageModifier|92|
+|281|ChemicalDamageModifier|93|
+|282|RadiationDamageModifier|94|
+|311|ColdDamageModifier|95|
+|315|NanoDamageModifier|168|
+|316|FireDamageModifier|97|
+|317|PoisonDamageModifier|96|
+|380|RangeIncreaserWeapon|weapon range percentage|
+
+The315 name is a stat identity, not proof that direct or periodic53002 Hit
+nano outcomes receive a flat bonus. The already reconstructed weapon path maps
+weapon DamageType168 to315. Keep that bounded existing consumer and include
+an admitted nano contribution there. Do not add315,278..317 or AC reduction
+to `server/nano_damage.go` from labels or this audit. Client normal combat
+outcomes do not recover original server arithmetic. Existing flat-addition
+ordering after AR/AC is contemporary reconstruction documented in
+`docs/combat-equipment-modifiers.md`, not proved anew by the client name table.
+
+At the reviewed source, `weaponDamage` adds only
+`attacker.equipmentBonus(modifier)` after its existing AR/roll/AC floor. The
+missing ordinary consumer is adding `attacker.nanoBonus(modifier)` there.
+This naturally covers fists, normal/special weapon outcomes and criticals that
+already call that same function. Preserve existing damage-type validation,
+minimum/critical/OE order, outcomes, XP, threat and transaction handling.
+A pure nonmatching damage modifier does not change a hit; for an invalid
+weapon type the existing projectile fallback must choose both AC and modifier.
+
+A separate actor stat339 override is read by original100ab5a0 at100ab5f2;
+when nonzero and accepted by100aae70 it substitutes the damage type at100ab60d.
+Evidence `ev_04d595c32db19eaf94e17c9aed01711425c70a290b867d43817b798423bdb693`
+is retained unchanged; current body is `lifted-0050.c::sub_360AB5A0`.
+Current Go weapon selection has no339 consumer. Exclude full programs carrying
+an unsupported type-changing function/stat until its complete semantics are
+implemented. This client presentation path alone does not prove every original
+server override ordering, multiple override interaction or fists behavior.
+
+## Weapon range: answered, exact original signed/float/cap order
+
+Original100aae10 reads weapon287 and actor380(mode0/effective). It computes
+signed32-bit product first (`imul`100aae42), loads signed product into x87
+(`fild`100aae48), multiplies originalfloat32 at10170894 (`fmul`100aae4b), then
+adds original signed weapon range (`fiadd`100aae51). Conversion through_ftol
+at100aae54 truncates towardzero. Only afterward, signed comparison at100aae59
+caps values above40; there is no lower clamp or intermediatefloat32 store.
+Original constant bits3c23d70a are0.009999999776482582. Original assembly ID:
+`ev_caffa5ac96df90e71084d5f068e035270b37d97a28beb95abb889dd010d2527d`;
+maintained `lifted-0050.c::sub_360AAE10` matches this order.
+
+The existing Go `combatInRange_locked` reproduces this, including signed
+multiply and float32constant promoted tofloat64 before add/truncation, but
+reads only equipment380. Sum equipment380 plus nano380 BEFORE multiplying.
+Do not adjust the range once per contributing effect:22 withtotal50 yields32,
+not33;22 withtotal5 yields23;10 withtotal10 yields10;22 withtotal100 caps40.
+Keep extents afterward and the negative-distance guard before squaring. The
+existing nativeLinux/WASM range fixture and public boundary tests are useful
+regression coverage; the new nano path needs its own boundary/replay tests.
+
+## Equipment OE isolation: answered, bounded static caller coverage
+
+Original10062f80 visits worn slots16..31;10063130 selects each item's event14
+Modify53045 functions and changes old/new adjusted item deltas. It does not
+multiply the final actor modifier balance and does not iterate active nanos.
+Thus a worn OE-adjusted addition and a nano's full addition coexist in one map.
+For this group, the100734e0 whitelist includes278,279,280,281,282,311,316,317
+and380. It notably does NOT include315. A blanket statement that all nine
+damage additions are subject to equipment OE would be false. Current server
+`equipmentBonus` should preserve this existing per-item table distinction;
+nano contributions should not pass through that item-only scaler.
+
+Original evidence retained:
+
+- clothing scan: `ev_a64f9e1c85cca6b2dd9aef9fc66293f96fbab04052c68dbaa4db8ee2cb0ef5b7`;
+- per-item effect refresh: `ev_fb148da07aea9c6f6c835956a3f7e87083f41291c35c4298b310e01c4f470981`;
+- table predicate: `ev_c28c25bf855fbf502273998e990a77883b83d1ceec6e91d25d10e207adb72748`.
+
+Exact47-entry table and owner/remote gates remain in
+`local/armor-oe-research/native-audit.md` and `native-table.json`.
+Remote SimpleChar may retain authored worn deltas while the owner/server use
+OE-effective deltas; do not mistake that established observer distinction for
+nano scaling or repair it by applying a blanket multiplier.
+
+## Foundations and duplicate counting: answered for reviewed packet paths
+
+`server/world.go` full snapshot transmits baseStats plus explicit identity,
+resources, progression and flags. It does not transmit278..317/380 as final
+base balances; equipment activation and active-nano replay supply them once.
+Compact SimpleChar carries abilities/identity/resources/appearance/motion,
+not these damage/range stats. Reviewed100821d0 activation includes its known
+Scale360 modifier reset, not an all-modifier-map reset. No new base stat or
+stat-refresh packet is needed for pure damage/range buffs.
+
+`characterInfoPacket` carries current/maxHP, regeneration and identity data;
+remote InfoPacket1005b1a0 folds/clears only modifier1. `teamResourceStats` carries
+343,342,364,363,214,221,1,27;10084740 folds/clears resource modifiers1/221.
+Neither current packet producer/consumer absorbs or clears278..317/380.
+The detailed retained identity/field/call evidence is reused from
+`docs/research-notes/ac-nano-research/native/README.md`, `docs/character-info.md` and
+`docs/team-resources.md`: Info serializer/decoder
+`ev_9757bf4c1ea87a6c956385944b865747d7fc39852948c4e924483be99a0e916a` /
+`ev_3cedbe5b069de93a1e1edc950983ea6dc092c5addeb822813d7fa2534a84dd7c`,
+plus delivery/cache `ev_fc823b8931bd96ad507647cc2bdf315574d4eb30eb9b2f10e47bc2acbc3476cf`
+and assembly `ev_13f8d0ea148b7b93dae51450a703f4501f5e38126b623ccedb656595bd735ced`.
+This is bounded packet coverage, not proof that every unknown extension packet
+can never assign a modifier. MixedHP or skill contracts retain their complete
+existing resource/OE lifecycle; do not drop those companions.
+
+## Integration checks and unresolved questions
+
+Admit only whole original ordinary positive contracts established by the
+independent resource census: complete metadata, selectors, signed arguments,
+third Skill zero, flags, criteria and supported companions. No program-ID rule,
+new schema, persisted balance, special removal path or client adapter is needed.
+Preserve every unsupported companion as a reason to reject a complete contract.
+
+Check matching/nonmatching type, fists, invalidtype/projectile fallback,
+normal/critical/minimum/AR/OE paths, stacked equipment and full nano bonuses,
+range sum before truncation/cap and nextfloat boundary, public upload/cast/
+cancel/replace/expiry/restart, capacity/criteria failures and rollback/refund.
+NativeUI should observe owner and observer stat balances before/after remote
+inspection, cold replay, cancellation and natural expiry, and at least one
+ordinary real combat outcome. Never infer direct nano bonus semantics from315.
+Signed negative damage/range admission, reflect/absorb ordering and original
+server overflow/highvalue arithmetic remain outside these positive contracts.
diff --git a/docs/research-notes/direct-damage-nano-research/native/README.md b/docs/research-notes/direct-damage-nano-research/native/README.md
@@ -0,0 +1,189 @@
+# Direct-damage nano consumer contract, original 14.9.1
+
+The native consumer supports the same signed HP-delta result for every standard
+AC damage type. No per-program branch was found in the NanoAttack reader,
+activator, or generic attack/recharge queue. This supports expanding a complete
+pure single-Hit program set beyond Winter's Bite. It does not recover the
+original server's damage calculation or justify dropping other authored effects.
+
+This is REA skill Step 6 independent, read-only research. It reuses retained
+complete Evidence and maintained generated source. No binary was opened, no REA
+session was created, and no runtime, DB, production source, or tracked file was
+changed. The earlier automatic approval rejection of a fresh native open was
+respected; no retry or alternate binary-export route was attempted.
+
+## Identity and evidence
+
+All retained native records used here identify original `kkr.dll` SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+REA addresses use image base `10000000`; maintained generated sources use
+`36000000`, so add `26000000` to the original address. Generated C is a lift,
+not original source. `retained-evidence.json` preserves complete records,
+including limitations and provider metadata. `provenance.json` identifies the
+retained bundles. Address-named files are convenience extracts. `sources.json`
+records full source hashes and bounded generated-source extracts; these are not
+new REA Evidence IDs.
+
+| Original procedures | Complete retained Evidence ID |
+| --- | --- |
+| `100b1590` reader, `100b1600` activation | `ev_065aec48e84d7bcfd376705ec06f50ef9f1ffd1b50711ff79c65ede2a927eec6` |
+| `100b1600` activation, separate decompile | `ev_131a4a47db9b81c124beb0b7adcdb819c8f4a1fa8bc233f5f91c76840fef306f` |
+| `1001d0b0` feedback | `ev_16fbb07444de249fd19ed14114c99abb43239d8f64214cc0e4494b36dc8a7c77` |
+| `1003e440` damage-name lookup and `1001d0b0` | `ev_eb20a4ca58374e72da2f8326ccfd51f83f77758fcff01da9626fa192429b926d` |
+| `10039cf0` dictionary initialization | `ev_1a3cb7e77a4267701716a4ec28b32bf1ad4e1f9c934ef18e59cc10785519c56f` |
+| `100bfb40` effect gate and `100be8e0` executor | `ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d` |
+| `10002370` application and `100027e0` queue insertion | `ev_21b6bf56ea3b01fefafecdb673e392142538e12a995ac4070c4b8a8f1a26f59b` |
+| `100021f0` queued-effect visitor | `ev_700456d500ded1b651bc8f770dbe843118f6c6286ca349ae445f40ef86a4e8c5` |
+| `1010def0` unreachable Hit executor stub | `ev_b36e6b8b14d9f960dd1705c8d5cd0779c3be3306d575aa456b07008bdb956f40` |
+| `100650f0` attack queue and `10066a90` finish gate | `ev_a9090944783a773664fa3351a229696dfbf286ba0e7263ad03c2c2b5942ca38a` |
+| `100654a0` phase transition and outcome | `ev_4454e12e69f0ac994b39f2628681f4ea8b1c62dfb507addeb5761df50b4ce819` |
+| `100654a0` original assembly | `ev_ad186f0988b9d48e0d36a6de81f40306e742582852c898a26e8313e9077ed6f8` |
+| `10066010` active-program add | `ev_a760dfc116df1dd38b0619334130d916b7706ee29c64a535cdef16ed448295a6` |
+
+The reader and writer are also retained in generated source
+`client/game/kkr.dll/lifted-0052.c:8328..8417`; activation is
+`8419..8535`. The original writer `100b15d0` was not found as an independent
+decompile in the selected retained records; its complete maintained lift is
+included in `nanoattack-codec-activation.c.txt`.
+
+## Hit arguments and result delivery
+
+Observed catalog authoring is `[resourceStat, signedEndpointA,
+signedEndpointB, damageStat]`. For a pure HP damage Hit, resourceStat is 27,
+both endpoints are negative, target is 3, count is 1 and interval is 0.
+Winter's Bite 29618 is `[27,-10,-23,95]`: preserve the authored order instead
+of assuming the first endpoint is the smaller signed value. The interpretation
+as damage magnitude 10..23 is supported by the original text and retained
+`local/nano-damage-research/startup-nuke.json`. Exact random distribution and
+inclusive/exclusive endpoints are not established by the client.
+
+The client does not calculate this Hit. `100be8e0` calls `100bfb40` before
+criteria, timing, dispatch or HP access. Hit 53002 (`cf0a`) takes the false
+default; the executor clears its remaining count and returns. Immediate and
+periodic application converge on this gate. The otherwise unreachable Hit case
+calls `1010def0`, a `ret 4` stub. Action 177 active-program delivery provides no
+Hit bypass. See `local/combat-heal-hit-research/README.md` for the full bounded
+negative proof. **An authoritative result packet remains necessary.**
+
+The established NanoAttack message type is `4727213e` (prior retained contract
+`local/nano-casting-research/health-queue-fields.json`, key
+`NanoAttack4727213e`). Its complete payload is two signed 32-bit words:
+
+| Wire offset | Object offset | Meaning |
+| --- | --- | --- |
+| 0 | `+24` | resolved signed HP delta |
+| 4 | `+20` | damage stat used for feedback |
+
+Reader `100b15a1..af` reads this order; writer `100b15dd..ef` mirrors it.
+Activation `100b1605..1f` resolves the **victim** from the envelope identity,
+requires type 50000 and an existing dynel, and otherwise skips both feedback
+and mutation. At `100b1675..80` it reads HP27 in mode 2, adds the raw signed
+delta, and calls the actor's stat setter. There is no field for program ID,
+caster, endpoints, absolute HP, resist result, or optional quiet feedback.
+
+Inference for reconstruction: after resolving a damaging authored Hit on the
+server, send a negative HP delta and the authored fourth damage-stat argument
+unchanged. The native packet consumer proves this wire interpretation; it does
+not prove the historical server's endpoint selection or modifier order.
+
+## Damage stats and feedback
+
+The HP arithmetic accepts any signed 32-bit damage-stat word: no switch or
+whitelist guards the mutation. Damage stat affects the text only. Local victim
+flag `actor+128` selects feedback category 27, otherwise 28; the caller passes
+`abs(delta)` and zero other contexts to `1001c590` / `1001d0b0`. Neither branch
+checks program ID or delta polarity. Positive deltas therefore still select
+damage narration, not healing narration. A zero amount suppresses text; the HP
+setter is still invoked. User feedback preferences may suppress narration.
+
+`10039cf0` initializes map `10306400`. The maintained initialization range is
+`client/game/kkr.dll/lifted-0019.c:20895..21089`, original instruction range
+`1003c09e..1003c2bc`. Lookup `1003e440` returns the named string or formats
+`Missing damagetype: %d`; an unrecognized type does not reject HP mutation.
+String bytes are retained in `client/data/kkr_dll.c:20370..20376` and decoded
+with exact RVAs in `damage-labels.json`.
+
+| Damage stat | Native label |
+| --- | --- |
+| 90 | projectile |
+| 91 | melee |
+| 92 | energy |
+| 93 | chemical |
+| 94 | radiation |
+| 95 | cold |
+| 96 | poison |
+| 97 | fire |
+| 168 | nano |
+| 27 | unknown |
+| 474 | fall |
+
+Feedback stat 0 is normalized to 27. Stat 474 selects explicit fall-damage
+wording in categories 27/28. The other named values use generic nanobot damage
+wording. This receiver does not look up AC, add-damage stats, reflect, absorb,
+critical chances, program damage scales, PvP rules, or target resistance.
+Those calculations, if applicable, precede the resolved delta on the server.
+The extra labels 168/27/474 are not evidence that authored pure HP nukes should
+be admitted with these types; catalog admission remains a separate question.
+
+## Generic attack and recharge
+
+The retained native cast contract in
+`local/nano-casting-research/native-cast-protocol.json` remains applicable.
+Action 18 creates an entry through `10064bc0 -> 100650f0`; action 107 releases
+the matching program's finish gate through `10066a90`. The entry must exist
+before 107 can release it. There is no program-ID special case in these routines.
+
+`100650f0` reads NanoInit149 (mode 0), AggDef51 (mode 2), and program Attack294
+(mode 2). Its timer is attackCs/100 minus initiative reduction/100 minus signed
+integer AggDef/100; initiative reduction is `I*0.5` through 1200, then
+`600+(I-1200)/6`. Program flag `80000` forces zero deadline. This is a native
+consumer calculation, not a recovered original-server scheduling algorithm.
+
+`100654a0` waits for attack deadline and finish gate clear, then enters phase 2
+and uses `now + program.Recharge210/100`; the same flag zeroes that deadline.
+Outcome graphics/text and active-effect handling use program flags/resources,
+so programs may differ through data while sharing execution machinery. The
+SimpleChar success branch does not execute the authored Hit locally. Native
+start/finish/outcome delivery order beyond consumer dependencies, and exact
+historical timing of the separate HP result, remain unproved.
+
+## Startup Ice Flechette boundary
+
+The NT startup crystal is 28815, which uploads program 28612, not Winter's
+Bite. Catalog evidence is `server/gamedata/items/items_000.yaml:32612`
+(crystal), `items_166.yaml:51452` (program), and `items_171.yaml:2296`
+(secondary program). Complete selected decoded records are retained in
+`catalog-records.json`; these are generated catalog evidence, not a fresh
+reparse of the original resource database in this task.
+
+| Record | Original payload SHA-256 | Original record file offset |
+| --- | --- | --- |
+| 28815 | `5720cacb5d62ac0ca74435a79749598d59b910be4be0cf14565b32e0d8924d98` | 65056340 |
+| 28612 | `d3c582425ee42a26d8e997730685160b3bba148aeeb1784b9cfafcb249e0497d` | 91564336 |
+| 144632 | `2468d892714587cda36f453b19b3cdbd501eff2ee06bc05b395b1fcbb0bcfdcc` | 69240919 |
+
+28612 has **two** target-3 OnUse functions: Hit53002 `[27,-13,-17,95]` and
+CastNano53051 `[144632]`, both count 1 / interval 0. Attack is 125cs,
+recharge 251cs, cost 8, range 25, and requirements are MC130 > 8 and visual
+profession368 == 11. Secondary 144632 has duration6000cs and four 53045
+modifiers `[149,-6]`, `[120,-6]`, `[119,-6]`, `[118,-6]`, all target 3. This
+is the complete dependency boundary needed to exclude Ice from a pure-Hit
+milestone. This pass did not solve secondary buff delivery, stacking, or
+removal and does not authorize silently omitting those modifiers.
+
+## Checklist, confidence and gaps
+
+| Question | Result / confidence |
+| --- | --- |
+| Signed payload order and HP mutation | Answered, high: complete reader/activator Evidence plus maintained writer |
+| All native damage labels / acceptance | Answered, high: dictionary initialization, lookup, feedback and data bytes |
+| Program-specific receiver distinctions | Answered within these routines, high: no program ID is present |
+| Generic attack/recharge and data differences | Answered, high for consumer behavior; server timing only partially answered |
+| Startup crystal and complete pure-Hit boundary | Answered, high for decoded catalog; raw original reparse deferred to parent |
+| Original RNG, AC, add-damage / reflect / absorb / PvP ordering | Unresolved: original server implementation absent |
+| Catalog-wide completeness and program admission | Parent scope; no full census claimed here |
+
+No new experiment or runtime verification was performed. A generic pure-Hit
+implementation can preserve the existing reconstruction's PvE, resistance and
+distribution policies while clearly retaining these policy limits. Native
+consumer evidence alone cannot turn those policies into original-server facts.
diff --git a/docs/research-notes/fast-attack-research/native/ledger.md b/docs/research-notes/fast-attack-research/native/ledger.md
@@ -0,0 +1,205 @@
+# Fast Attack147 versus Fling150: original native evidence
+
+Read-only static scope, original `anarchy-vanilla-14.9.1/kkr.dll` SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Reused `local/brawl-research/native/kkr.snapshot.json`; no broad search or
+repeated packet analysis. Original addresses use base0x10000000. Generated C
+was used only to navigate candidate addresses. No production files or existing
+fixtures were edited; no game/browser/server processes were started.
+
+`kkr-evidence.json` and `kkr.snapshot.json` retain523 original records.
+`focused-evidence.json` retains36 complete selected original records;
+`citations.json` preserves exact identities/limitations. `tmp_focus.py` validates
+the target SHA and native constant bytes. The owned REA session was closed
+after export. This is client evidence, not original-server execution evidence.
+
+## Registration and eligibility differences
+
+Fast147 registers from an equipped weapon, like Fling150. In `100ad0b0`
+(retained query at contained address100ad390), local WeaponItem equip callbacks
+for slots6/8 inspect effective capabilities stat30:
+
+| Special | Capability | Skill key | Native action source |
+| --- | --- | --- | --- |
+| Fast Attack | 0x40000 | 147 | Equipped weapon identity |
+| Fling Shot | 0x1000 | 150 | Equipped weapon identity |
+
+Fast registration is `100ad4af..100ad4ce`; it passes147, WeaponItem+0x90 source
+identity and secondary command0 to `10057370`. Fling uses the parallel branch
+at100ad40a..100ad426. The initializer `10056cf0` has icon mappings147 ->0x14126
+and150 ->0x14120. `10057370` suppresses a duplicate skill action, creates it
+from the icon mapping, notifies local consumers and marks it locked when the
+same skill is already in the shared lock vector. No Fast skill-value threshold
+is tested in this registration path.
+
+`10057680` dispatches147 and150 through the same weapon-source branch to
+`N3Msg_SecondarySpecialAttack`. This differs from actor-owned Brawl142/Dimach144.
+Fast requires no implicit item147 for its normal GUI registration. Adding such
+an implicit row is not necessary to enable a weapon's Fast Attack action.
+
+`100ad4e0` unequip checks the other hand's capabilities before removing shared
+special actions: Fast147 is removed via `100574b0(147)` only when the removed
+weapon had0x40000 and the other hand lacks it. Fling has the parallel0x1000 test.
+`100574b0` removes/notifies the action entry; it does not erase the skill-lock
+vector. Registration and lock state remain separate across weapon swaps.
+
+`100aaf10` availability merely reads effective stat30 and returns bit18 for147,
+bit12 for150. It adds no Fast-specific melee/ammo-type test. Shared
+`10078990` validates capability then weapon range. The shared request sender
+checks holder slots8 then6, accepts if at least one present hand passes, applies
+the common target/lock/LOS checks, and serializes target plus skill147. There is
+no weapon-slot field in this request. The order of those eligibility checks
+does not prove original-server weapon-selection priority.
+
+These observed paths contain no Fast-only attack/recharge/reload/ammo gate.
+That bounded statement is not proof that the original server omitted any such
+gate. Native animation or other callers can have additional shared state.
+
+Exact original records:
+
+- Equip registration: `ev_b206d74b39f11c83b95a0ddd2d436910655d1d08ed9f38e9fab3d23a3a9ae094`.
+- Static action mapping: `ev_aae70120c86a7905e706acab37dc0aa09d630a18e26b4d20447cb9073ae20fc8`.
+- Shared register: `ev_cc5dccd7d3e25c6884c4ea66cd799dd05718c0ca252885e49c0b7ff1c64fa039`.
+- Action dispatch: `ev_5691b0f3b57a2ebbc2c06e6c83becda29a81d2cefd3bb177956dcc6a8d8b0f9e`.
+- Unequip: `ev_820baceb04f209397f02d88449e8efaa53d62a6ac0da07a1b0e49bd18d623ab7`.
+- Action removal: `ev_569cbcaad5ddfcf6efbc2693400dddd1d7e273814a38584b5995746a1bc3acb4`.
+- Capability mapping: `ev_3ed7febfd5c72ca8b21aa06f35a3657dd321b182163863bb9a17e6704907c860`.
+- Per-hand validation: `ev_6d02c92d3603b69614c57a2c780333dbdbbdb0212126d957631c84a3fcb309f8`.
+- Request sender: `ev_d1476549067f47d076bbde6794f81f3340b20e34e60aeb471160525c970119b9`.
+
+## Exact timing arithmetic and its unused return values
+
+Original `100ab060(actor,skill)` has separate Fast147 and Fling150 branches with
+identical arithmetic and different skill getters. Both read item AttackDelay294
+in mode2 and actor skill in mode0. Original FILD instructions treat both getter
+results as signed32. In the signed effective getter already researched, skill
+mode0 includes modifiers/trickle and has no universal floor.
+
+For finite inputs whose result fits the conversion's ordinary32-bit domain:
+
+```
+product = float32(signedAttackDelay294 * 15.0)
+value = extended(product) - signedEffectiveSkill147_or_150
+result = trunc_toward_zero(max(value, 500.0))
+```
+
+`15.0` is the exact float32 at10170e88 (`00007041`);500.0 is the exact float32
+at10170e90 (`0000fa43`). Native readbytes
+`ev_f9c5de95a08db04cd48d40f819ca51c01518209017b2d31265866f75405b8ee0`
+and validated `constants.json` preserve them. Item AttackDelay294 is expressed
+in centiseconds in the existing native stat evidence;500 corresponds to5s.
+
+Fast exact sequence:
+
+- `100ab094..100ab0a6`: read weapon AttackDelay294 with mode2.
+- `100ab0ab..100ab0ae`: store signed integer, FILD it.
+- `100ab0ba`: FMUL float32 constant15.
+- `100ab0c0`: **FSTP float32 intermediate**, before calling the skill getter.
+- `100ab0b1/b3` and100ab0c3: read signed actor skill147 with mode0.
+- `100ab0c6/c9`: store signed result then FILD it.
+- `100ab0cc`: FSUBR against the stored float32 product.
+- `100ab2a8..100ab2b3`: compare extended result with float32 constant500.
+- If smaller: discard it, load500 at100ab2bb, call `_ftol` at100ab2c1.
+- Otherwise: direct `_ftol` at100ab38b. There is **no second float32 store**
+ after subtraction and no divide-by100 or whole-second rounding here.
+
+Fling parallels this at100ab26d..100ab2a5, reading150 instead of147 and jumping
+to the same500 comparison. Because both inputs are integers and15 is exactly
+representable, ordinary supported item values give integral results in these
+branches; `_ftol` does not itself select whole seconds. Extreme out-of-range
+conversion or invalid getter values are not an established server policy.
+
+Original assembly:
+`ev_60d2cb8b3f1e0909afba79a412db9fb91ba16cf7b191cd4354bc5253090f5bca`.
+Pseudocode:
+`ev_ed42f004972da2d70332de3a18e9184c07950cb5ba6db6ac121200fe92096c8a`.
+
+**Important coverage limit:** only observed direct caller of100ab060 is
+`10079700`, the virtual queued-special consumer. It calls100ab3e0 (attack-delay
+getter) at1007979a, then100ab060 at100797a6. Both EAX results are discarded;
+subsequent code overwrites EAX at100797b1. No lock or timer is created from
+those computed values in this caller. Therefore this assembly establishes
+client arithmetic including its5s floor, but does not establish an active
+native cooldown, historical server formula/floor, or integer-second conversion.
+
+- Direct callers: `ev_2867f5ebaeb7cfab043f5dde84faf114ea3d6d8363d066eb3f2825fbaa7b0d89`.
+- Caller assembly: `ev_664231f03f7cb785bf235123d6db089693ed8ba3bee4f4ef8e9c0410d34a88ac`.
+- Caller pseudocode: `ev_f9c32fd1de8cb6d03f2ca0f8de7d7fbab96fe69ec85a9a9d27b134f53dac8a76`.
+
+## Required focused arithmetic boundaries if a fixture is added
+
+No production or existing fixture was changed. A new standalone native fixture
+should execute unchanged100ab060 and stub only its actor/item getters, asserting
+which stat/mode is requested. These are hardcoded **assembly-derived expected
+values**, not original PE runtime observations:
+
+| AttackDelay294 | Fast147 | Fling150 | Expected Fast result | Expected Fling result |
+| --- | --- | --- | --- | --- |
+| 125 | 7 | 600 | 1868 | 1275 |
+| 125 | 600 | 7 | 1275 | 1868 |
+| 125 | 1374 | 1374 | 501 | 501 |
+| 125 | 1375 | 1375 | 500 | 500 |
+| 125 | 1376 | 1376 | 500 | 500 |
+| 125 | -7 | -7 | 1882 | 1882 |
+| 0 | 0 | 0 | 500 | 500 |
+| 1118483 | 16776744 | 16776744 | 500 | 500 |
+
+The last deliberately artificial value checks the float32 intermediate:
+1118483*15 is16777245, rounded to16777244 at the FSTP; subtracting16776744
+therefore reaches500. An int64-only implementation would produce501. These
+values isolate native algorithm structure and are not plausible item data or
+recommended server validation limits. A useful caller fixture would also show
+that10079700 ignores the timing values rather than starting a lock from them.
+
+## Shared result, lock and presentation boundaries
+
+No147-specific result or lock path was found in the recovered functions. The
+existing generic request/result records are retained without re-querying them.
+Fast differs from Fling by skill ID, capability and icon mapping. SpecialAttackInfo
+still applies one payload-target HP subtraction, named-special feedback, death
+and supplied ammo assignment; it supplies no critical/miss field or damage RNG.
+CharacterAction80 only has named Brawl142/Dimach144 cases in the inspected body;
+it is not required to label Fast Attack via that branch.
+
+The actual lock is shared CharacterAction170/164, keyed independently by147 or
+150. The exact signed modifier382 calculation, duplicate behavior, global
+one-second countdown and explicit restoration are documented in
+`local/brawl-research/native/ledger.md`; Fast adds no special lock exception.
+Unequipping an action does not remove that vector.
+
+Queued-special consumer10079700 is invoked with a slot. It revalidates that
+slot's capability/range via holder+0xc, consumes the queued skill, then prefers
+an implicit item under that skill if present, otherwise the slot's WeaponBase.
+Thus an unnecessary implicit147 row could alter the execution source even
+though normal registration does not need it. This function does not select a
+universal hand priority; its observed direct callers list is empty because it
+is reached through the holder vtable (known+0x64). It calls item virtual+0x30
+after assigning owner identity; deeper147 animation/effect semantics are outside
+this pass.
+
+The acknowledgement queue10078a40 checks lock membership before insertion, as
+it does for Fling. Ordering a lock notification before acknowledgement can
+therefore suppress this native queued-action path. This is an observed client
+ordering constraint, not proof of original-server packet ordering.
+
+## Existing original default binding
+
+The complete original CCR binding record, copied without querying a new
+session to `ccr-bindings-evidence.json`, contains:
+
+```
+KEY_BUTTON_FASTA COMMAND_BUTTON_FASTA [ & AnyPlayMode ! TextInputMode ] = N
+```
+
+This establishes the default N key outside text input. It uses abbreviated
+FASTA, not FASTATTACK, in that command name. Original ccr.dll SHA-256 is
+`4c6d8dfc7eaa39044935d94e678ee4ead922decad36ed616a7843dcb51e7c55a`;
+exact record `ev_3dff589882a6c4f42e12afb434b594089dd46f9bd63d70e693e8b79b3ec4f06f`.
+It does not establish the user's current remapped preferences or focused input
+state. Parent owns actual N-key validation in the WASM client.
+
+Canonical damage/critical selection, defense checks, lock floor/rounding,
+authoritative hand selection, swapping/cast/recharge/reload interruptions and
+server LOS policy remain separate historical-rule questions. Existing server
+ceil-to-seconds/min1 behavior remains provisional; adopting the unused native
+5s floor alone cannot turn it into a verified original-server rule.
diff --git a/docs/research-notes/fast-attack-research/native/re-equip.md b/docs/research-notes/fast-attack-research/native/re-equip.md
@@ -0,0 +1,134 @@
+# Same-instance weapon re-equip after native unwear
+
+Scope: read-only original native evidence plus inspection of root's actual WASM
+captures. No production source or fixtures were edited by this research agent.
+No browser/game/server processes were started here. Both owned REA sessions
+were exported and closed.
+
+Exact original identities:
+
+- KKR: `a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+- LLR: `ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132`.
+
+`re-equip-kkr-evidence.json`/snapshot contain539 records; LLR evidence/snapshot
+contain32. `re-equip-focused-evidence.json` and `re-equip-citations.json` retain
+24 complete selected records with exact target identities. `tmp_re_equip.py`
+validates those and hashes the parent-owned runtime captures in
+`re-equip-failure-provenance.json` (includes both failure and fix captures).
+
+## Observed original cause
+
+WeaponItemFullUpdate is a creation path for a previously unknown native dynel.
+It is not an update/re-equip operation for an existing identity.
+
+`10011200` registers class name WeaponItemFullUpdateIIR_t with factory10011180.
+That factory calls100b3720, which installs vtable10174e70. Exact vtable bytes
+resolve activation+8 to100b38b0, setup+20 to100b3870, attach+24 to100b25c0.
+
+`100b38b0` begins by GetDynel(envelope identity). If the result is nonzero,
+it returns0 immediately. It creates, sets up and attaches a WeaponItem only
+when that identity is absent, its type is51018 and the playfield exists.
+This guard runs before any skill-lock check, item template reload, OnActivate
+event, holder binding or equipment appearance callback.
+
+The first setup path100b3870 ->100b2830 loads template/QL, sets inventory page
+stat55 and slot220, and runs event10 OnActivate. Attach100b25c0 finds parent
+actor and calls10063340. Page1/slot6-or8 in that function binds the WeaponBase
+through holder+30 and invokes WeaponItem virtual+d8, the equip callback100ad0b0.
+That callback establishes mesh/behavior and adds Fast Attack147 from caps0x40000.
+Registration10057370 does not reject an existing lock: it creates the action
+then marks it locked. Therefore active147 lock does not explain missing holder
+and action in this re-equip failure.
+
+CharacterAction97 dispatches1007a1d0(slot). It invokes the actual item's unwear
+callbacks and10078f00, clearing the hand and restoring fists. The inspected
+handler does not destroy the item dynel or remove its registry entry. Original
+unwear100ad4e0 removes the Fast action if the other hand lacks its capability;
+the independent lock vector remains. The failing runtime confirms the owner
+retained enough native instance state to trigger the FullUpdate guard.
+
+Exact KKR records:
+
+- Class registration: `ev_9a64af19c208580a03b460c675f562e2c7153ee9ba1118ae45457540018bb8f9`.
+- Factory: `ev_c299ae84c450860816c69773a42ae48beef33c3b2c6caf3b8265d1fb001d3e0d`.
+- Constructor: `ev_e7ff52865839248f305df5322c3b5ddd1f0b8c2666ad39d9ce69b56c4e2c17a5`.
+- Vtable: `ev_b2b304a325f21b57003ff6c76dd3eecd11dc3a5bb7cc935bc3901b34bab16b6f`.
+- Existing-identity guard: `ev_6ad357ca30912f7fdb800917d4ad31823cfef2a1722a3a1c335b0e528b4b13fd`.
+- Setup: `ev_2552f0c6f7bbaad61c7846a542aff9457f58b45192eddf5272feb1aa1fd8a02d` and
+ `ev_06a54a4e5296f634115da21462e98d97fe0b90e53de27c2fd3929a4f555f9c85`.
+- Attachment: `ev_9fab4fbc5cd930032d5fb4ae3d31570b6b63d3b3ebe70ba4a53a57fe762beeec` and
+ `ev_96055f65aca55433045456f5b32829a666a20baa8944e9fd2371a52ece725eb6`.
+- Unwear97: `ev_223696489bdd9821c5653e19b274d48d11fb2b09501bdea9ea56ec195f9fd4ba`.
+- Weapon unwear: `ev_820baceb04f209397f02d88449e8efaa53d62a6ac0da07a1b0e49bd18d623ab7`.
+- Locked action registration: `ev_cc5dccd7d3e25c6884c4ea66cd799dd05718c0ca252885e49c0b7ff1c64fa039`.
+
+## Original Quit receiver and cleanup boundary
+
+Original current LLR n3ToClientQuitIIR_t constructor10043690 installs
+vtable1004f974; its+8 activation is10043770. The receiver clears forwarding,
+finds the addressed dynel and checks that it is not already dying and is not
+the local player identity. It invokes addressed dynel virtual+28 with false.
+The item identity51018/164 differs from local actor50000/10, so it passes the
+local-player exclusion.
+
+WeaponItem's embedded n3Dynel vtable101744f4+28 points to thunk1015fae4. Exact
+decoded instruction/ref resolves its import to LLR n3Dynel_t::DieDeep at1001a6d0.
+DieDeep calls virtual+5c, recursively marks children through1001b640 when in
+the scene tree, sets dying byte+94 to1/state+98 to2, and releases immediately
+when outside the tree. The Quit receiver and direct DieDeep body contain no
+raw owner inventory-slot mutation. Deeper virtual dying/parent/tree cleanup
+callbacks were deliberately not exhaustively traced: static evidence alone
+does not prove inventory preservation in every state or for every item class.
+
+Fresh LLR address10043770 is important: older docs refer to1003ba50 from a
+different LLR hash863205... . In the currently selected original LLR,1003ba50
+is surface-intersection code and was not used as Quit evidence here.
+
+- Current Quit constructor: `ev_1f14ccf3c5a27de811e1aebaeeba25cc2a6e9f62a16b4dc6535ad58bc5b8b06a`.
+- Current Quit vtable: `ev_aac48922f9257dca52a58ba9b489a66c5f4def3850c6a482e53441378406415d`.
+- Current Quit activation: `ev_f8b2fd944e9bd52259e0bee708acd9190a839238349291a1be2986fd082e8178`.
+- KKR n3Dynel vtable: `ev_20933d85cf9d7d4d08e32f174c25a08397867fb604780e2ae16e821286e3d0b6`.
+- Import thunk: `ev_7dee427ef1b85aaf7705632570b031cd1c9bbca310aef367adc9c9c8a0cc89d2`.
+- Import symbol: `ev_ebbda25e4001501e519ab971a0c766b8f4ab32408d91fb0937eec4fa1a463279`.
+- DieDeep: `ev_53f70f553cfc31ad7c7dcbe70233029c5928520bac43558ceccb5e19e47a4458`.
+- Child recursion: `ev_929de79e61b79b70483ad012b72aa224f7f11c182bcef348a406d1ebd1a02aa3`.
+
+## Runtime evidence and verified fix scope
+
+Root's failing wire capture shows owner97 then container-move acknowledgement
+on unwear; only the observer got Quit51018/164. Owner ordinary inventory row
+moved to native48, holder restored fists0, Fast action disappeared, lock123
+remained. Same-identity FullUpdate on re-equip moved the icon to6 but left fists
+and no147. This matches the exact existing-identity guard above.
+
+Root changed the server's unwear sequence to send Quit to owner and observer
+after CharacterAction97 and before the owner's move acknowledgement. This
+removes the transient native dynel while retaining the persistent item identity.
+No client adapter change was needed.
+
+Parent-owned actual fixed WASM captures, inspected here:
+
+| Capture | Native raw row | Holder | Fast action | Remaining lock |
+| --- | --- | --- | --- | --- |
+| fixed-equipped.json | slot6,51018/164 | hand6,164 | source164,flags1 | 168 |
+| fixed-stored.json | slot48,51018/164 | fists0 | absent | 127 |
+| fixed-re-equipped.json | slot6,51018/164 | hand6,164 | source164,flags1 | 121 |
+
+The three corresponding `*-db.json` captures retain one persistent item164,
+template209283, QL1, count1, ammo0. No item duplication/consumption or lock reset
+occurred. Root reports both owner and observer appearance and no client errors;
+`fixed-errors.json`, `fixed-wire.json`, screenshots and database snapshots remain
+under `local/fast-attack-smoke/`. Their hashes are retained by the curator.
+
+These runtime checks prove inventory-row preservation and same-identity
+re-equip for this unwear/active147-lock scenario. They do not generalize the
+generic DieDeep cleanup to bags, occupied child containers, every item subtype,
+or every combat/swap state. Historical server packet sequencing is not proved
+by this reconstruction fix; the original client lifetime contract and tested
+behavior are established.
+
+Targeted probe if another regression appears: GetDynel(51018,itemID) before/after
+Quit; its WeaponItem base is returned n3Dynel pointer minus0x8c. Independently
+check raw inventory row, holder slot, item page55/slot220, WeaponItem+1a8,
+action147 source/flags and shared lock147. A moved icon alone does not prove
+that10063340 or100ad0b0 executed.
diff --git a/docs/research-notes/heal-timing-followup/holder/README.md b/docs/research-notes/heal-timing-followup/holder/README.md
@@ -0,0 +1,109 @@
+# Holder state 6 follow-up
+
+Read-only REA step 6 question, 2026-10-25. No new binary session, binary open,
+proprietary export, client, runtime probe, tracked edit, database change or
+server process. This reuses the retained original 14.9.1 KKR evidence and
+matching maintained instruction transcripts. The original KKR identity is
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Original addresses use base 10000000; maintained addresses use 36000000.
+
+## Result
+
+No legitimate additional message route was established that reconciles the
+health queue without stopping combat. State 6 remains unnamed and its setter
+unrecovered. This uncertainty is narrower than the healing question: the
+complete original AttackInfo consumer checks state **1**, not state 6, for
+immediate draining. A holder in state 6 would take the same ordinary receive
+branch as state 2 when the other dead/backlog conditions are equal. Merely
+changing 2 to 6 would not select the desired immediate branch.
+
+The maintained predicate 100794f0 (vtable slot +48) does only
+`return holder.state_at_50 == 6`. It writes no memory and invokes no queue
+operation. Its existence does not establish any public state-6 request or
+healing mode. No such request follows from the observed vtable.
+
+## Exact additional search and observations
+
+`tmp_finish.py` inventories all 556 maintained `client/game/*/*.c` files,
+53,764 generated entry bodies, retaining byte hashes in
+`maintained-source-manifest.json`. This includes repeated/overlapping generated
+entry pieces; the count is not a unique-original-procedure count.
+
+- There are no literal direct code references to 360794f0 outside its own
+ entry (dispatch declarations/table entries are outside this code-body scan).
+- 263 generated bodies contain literal +16c. None also contains an indirect
+ call through +48. Those +16c occurrences include unrelated object layouts,
+ so 263 is deliberately an overinclusive syntactic inventory, not 263 proven
+ actor-holder consumers. The predicate could still have a computed or
+ separated virtual caller; this is not a complete cross-module type analysis.
+- In holder method entry interval 360783e0 <= entry < 3607c1b0, all retained
+ literal +50 reads/writes are in `holder-state-accesses.json`. The only dword
+ state stores remain constructor 10078410 ->1, start 1007912a ->2 and stop
+ 1007940d/10079424 ->1. There are no literal LEA +50 address-taking operations
+ and no literal byte/word/qword stores overlapping the state bytes in this
+ method-entry interval. Existing all-KKR dword-store inventory remains in
+ `local/combat-heal-holder-research/literal-stores.json`.
+- Public local fighting queries 1002b220 and 1002b250 compare holder+50 with
+ 1 and report nonidle for every other value. They neither mutate state nor
+ pop the result ring. These are additional complete maintained extracts.
+- Start/stop and Attack/StopFight activations retain the already established
+ meanings. Attack activation passes only the target to start; StopFight
+ activation calls stop(1). Neither decoded payload flag chooses a neutral
+ state or queue-only operation.
+- Helper 1007a940 and its timer constructor/updater 1007aa30 operate on bound
+ weapon timers and enable bits. They do not change holder+50 or pop the health
+ result ring. Calling them is not evidence of a health barrier. Complete
+ maintained bodies are retained for this distinction.
+
+The offset and lexical searches exclude neither computed/aliased stores nor
+imported writers. They do not justify declaring state 6 unreachable, removed,
+dead code, casting, reloading, or a synonym for any named game action.
+
+## Original evidence reused in full
+
+`retained-records.json` copies 14 complete existing records, with their original
+Evidence IDs and target/profile bindings. No producer was rerun. The source
+files and their current exact bytes are hashed by `retained-source-hashes.txt`.
+The existing `local/combat-heal-holder-research/functions.json` maps complete
+resolved pseudocode symbols to their record IDs and parameters.
+
+Key records:
+
+- Constructor 100783e0:
+ `ev_bc9b8aa6722806853c01f576bee243cef22f09b356898239a87296fa054caf08`.
+- Start 10078fc0:
+ `ev_39bfbb5aa465c2bd44878c0e66677c6828387fa32d70cc5675b9d0e15ce9229c`.
+- Stop 10079250 and drain 1007a2e0:
+ `ev_839516fbf9737749e969200bc7698259fa6decf43f39b3025dc440c60acd95f3`.
+- AttackInfo 100aecb0/1007a660:
+ `ev_09336905396f52f8c1b2ec8b2c106292e61c364911d3b8fc741c8e7b13b42bf5`.
+- Attack activation 100876a0:
+ `ev_eb20a4ca58374e72da2f8326ccfd51f83f77758fcff01da9626fa192429b926d`.
+- Vtable raw 112 bytes at 10171500:
+ `ev_7d6762ab9ca524bf50401534ef85eca9805b9846bad1e09ab7cb11cf7c885c93`.
+ `holder-vtable.json` decodes all 28 entries without assigning speculative
+ method names. Slots +40/+44/+48 are start/stop/state-6 predicate.
+
+`extracts.json` identifies 23 complete maintained source extracts with source
+path, original line and extract hash. State-6 predicate is supported by this
+maintained original-instruction transcript and vtable record; a separate
+original native decompile of 100794f0 was not present in the selected retained
+records and was not newly requested.
+
+## Checklist and outcome
+
+| Question | Status and scope |
+| --- | --- |
+| State 6 predicate effect | Answered: exact comparison, no state/queue mutation |
+| State 6 name and setter | Unresolved after expanded bounded syntax search |
+| Does state 6 select immediate receive drain? | Answered: no; exact original receiver tests 1 |
+| Public Attack/StopFight selector | Already answered, corroborated: start/stop, no neutral mode |
+| Timer rebind as neutral health drain | Answered for complete 1007a940/1007aa30: no result-ring consumption |
+| Legitimate new neutral health reconciliation route | Not established |
+| Exhaustive computed/aliased cross-module state writes | Not claimed |
+| Original Funcom server healing schedule | Unresolved; no traffic or runtime claim |
+
+No production change follows. This does not reopen the already rejected
+negative-damage, absolute-stat, synthetic-result or additive-Hit gate approaches.
+A correlated original-server exchange or a distinct complete protocol consumer
+is still needed for canonical combat-healing delivery.
diff --git a/docs/research-notes/heal-timing-followup/publish/README.md b/docs/research-notes/heal-timing-followup/publish/README.md
@@ -0,0 +1,124 @@
+# Weapon result publication and native impact clocks
+
+Independent REA step 6 question: can the ordinary weapon producer, rather
+than the already-audited HP setter, supply a native impact receipt or a
+server health-resolution gate?
+
+Read-only reuse of retained original KKR evidence and matching maintained C.
+No binary was opened, native session created, new proprietary export made,
+client started, DB changed or tracked file edited. Original 14.9.1 KKR SHA-256
+is `a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Original addresses use base 10000000; maintained instructions use 36000000.
+`sources.json` links 26 original procedures to exact retained Evidence IDs,
+8 complete maintained function extracts to source hashes/lines, and hashes
+the prior ledgers. All 38 records in the supplied controller inventory were
+revalidated against both their source and extract digests.
+
+## Findings
+
+1. **Receipt accepts an ordinary result independently of local attack time.**
+ Reader100aec00 supplies damage, ammo, slot, target, death reason and result;
+ known-attacker activation100aecb0 calls1007a660. The receiver neither reads
+ shared controller actor+184 nor tests a weapon attack deadline. It appends
+ damage/result immediately, with the already-documented dead/idle/backlog
+ immediate-drain branches. There is no subclass timestamp or result sequence.
+ Therefore an early server result is allowed by these concrete consumers.
+ This is not proof that the original server normally published results early.
+ Evidence `ev_09336905396f52f8c1b2ec8b2c106292e61c364911d3b8fc741c8e7b13b42bf5`.
+
+2. **The normal player animation depends on result availability, without a
+ timer-complete veto in that branch.** Pump1007b2d0's player path checks the
+ slot, movement/weapon eligibility and ammo, then at1007b3ae..1007b3c6 tests
+ unread result, invokes1007adc0(slot,0), and releases hold with1007a920.
+ Earlier1007b36f calls1007a8f0(slot), which wraps the timer-hold/retry/LOS
+ predicate100ab740, but its return is not tested before the subsequent
+ ammo/special/ordinary branches. The maintained instruction transcript
+ confirms this detail; treating that call as an admission condition would
+ misread the producer. The separate virtual+2c branch processes an already
+ queued special action, with virtual+64 bound to10079700. It is not an
+ ordinary hit receipt or an ordinary per-swing request.
+ Evidence `ev_84fd218144454091ba7871485b83fbc537daff7c0289b319dff12431d29c6305`,
+ `ev_9081c9ee969a3f64c9cfb5aec6a5d90477aa638090d6ed38e5791a3d0d58eeda`,
+ `ev_2ee9c0b0efb064b9c2b8f70798f1ed8ae7797a3a383ea40f0f695c510dbaf92c`.
+
+3. **NPC animation has a different timer gate, and can precede its result.**
+ The NPC branch of1007b2d0 tests100ab740 before selecting the animation:
+ completed-attack hold0x20, modulo5 retry becoming1, and LOS. In1007adc0,
+ absence of a queued result only rejects when the holder range predicate
+ also fails. Thus an in-range NPC can schedule an animation before its
+ AttackInfo arrives. A local NPC windup/impact cannot be inferred merely
+ from that packet's arrival. Nor does supplying a result cause all clients
+ to consume it in the same frame. Timer startup randomness, local frame
+ progression, animation state and queue backlog remain separate variables.
+ Evidence same pump/retry records and
+ `ev_a1da62ef7361ff44e99f4fae29cc61cbcc0e5355e4d27dafe23b0429f5a1ba21`.
+
+4. **Timer release occurs at animation selection, before HP consumption.**
+ 1007a920 resolves a slot and100ab7a0 clears only timer flag0x20. It has no
+ network send, result sequence, health value or impact callback. The shared
+ controller advances local attack/recharge phases; it does not resolve
+ authoritative HP. Releasing this hold must not be interpreted as evidence
+ that100ab5a0 already consumed the supplied result.
+ Evidence `ev_9081c9ee969a3f64c9cfb5aec6a5d90477aa638090d6ed38e5791a3d0d58eeda`,
+ `ev_f120a1426717ed115aa79a77780cfb3668302f621243f5c5877df308e4523215`.
+
+5. **The actual ordinary impact paths provide no receipt to the server.**
+ Selection1007adc0 embeds slot in an animation tag. Event11 follows
+ 1004db10 ->10059c70 ->1007a260 ->weapon effect100918a0/100ac610
+ ->100ab5a0. The generic callback's cast event0x42 instead invokes100665e0;
+ this separate cast path is not a weapon result completion report.
+ Animation replacement/completion follows1004da40 ->10059c40 ->1007a2e0
+ ->100ab5a0. Draining loops over all unread pairs, not one sequence per
+ callback. The selected ordinary producer, hold release, event11 branch,
+ weapon effects, completion callback, pop and drain contain no outbound
+ ordinary-impact IIR acknowledgement. This corroborates the prior callback
+ audit without reopening the already-closed HP-setter subscriber question.
+ Evidence `ev_a1da62ef7361ff44e99f4fae29cc61cbcc0e5355e4d27dafe23b0429f5a1ba21`,
+ `ev_839516fbf9737749e969200bc7698259fa6decf43f39b3025dc440c60acd95f3`,
+ `ev_1a72dd74cf4558d8f8bcc8be6cddf4c38658d2afdbb67b1ce99c59e87b5dbf06`.
+ The complete retained effect bodies and their own IDs are in sources.json.
+
+6. **The explicit ordinary outgoing producer is an encounter request.**
+ Maintained1007bee0 checks holder pending+71, sets it, constructsAttackIIR
+ through10087590 and sends through imported slot17004c. It carries target
+ and byte, rather than a popped result or impact clock. This contrasts
+ with the no-send1007a920 local hold release. Public DefaultAttack's existing
+ request audit calls this helper; the normal animation paths above do not
+ call it for each ordinary swing. Existing retained packet audit independently
+ found no impact acknowledgement in its particular live session. This does
+ not enumerate every possible unrelated sender in KKR or its imports.
+
+## What this establishes for implementation
+
+Result announcement, native presentation impact, and authoritative server HP
+resolution are distinct boundaries. The client permits a result to be queued
+before its local timer or animation completes, and the NPC can start a local
+animation before a result. Those facts leave multiple historical publication
+policies possible. They do not recover an original server attack-start versus
+attack-end publication rule, an authoritative heal ordering, or a safe global
+delay after which every replica has consumed an announced result.
+
+Moving Go AttackInfo earlier/later can be tested as an explicitly labelled
+timing experiment, but cannot yet be called a canonical fix or an exact heal
+barrier. Waiting for1007a920 is unavailable to Go and would be too early even
+if it were visible. No newly recovered native per-impact receipt justifies a
+server wait-for-receipt design. No native queue change follows from this pass.
+
+The strongest next evidence remains correlated original-server combat/First
+Aid traffic plus visible or read-only native impact timing. For a bounded
+modern experiment, capture source request, Attack start, AttackInfo arrival,
+timer phase, animation selection/keyframe, ring drain and absolute heal on
+both clients; do not conflate a server deadline with a native hit. Such an
+experiment can reject an implementation hypothesis but cannot prove the
+original server's inaccessible commit time.
+
+| Question | Status |
+| --- | --- |
+| Does receive code reject results before windup completes? | Answered for inspected receiver: no timer gate |
+| Is early publication the original server policy? | Unresolved |
+| Does player animation wait for ordinary result? | Answered for normal branch: yes, with other state/weapon gates |
+| Can NPC animation start without a result? | Answered for inspected in-range branch: yes |
+| Does ordinary timer release acknowledge impact? | Answered: no; release precedes later consumption |
+| Do enumerated ordinary producers/callbacks send an impact ACK? | No such send found within complete selected bodies |
+| Does any unrelated mechanism anywhere synchronize server HP? | Unresolved; exhaustive whole-program proof not claimed |
+| Is canonical combat healing now solved? | No |
diff --git a/docs/research-notes/hit-miss-research/native/ledger.md b/docs/research-notes/hit-miss-research/native/ledger.md
@@ -0,0 +1,96 @@
+# Original weapon attack and defense rating evidence
+
+The target is `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+The file digest and REA open identity agree. Original image base is 0x10000000;
+maintained lifted C uses 0x36000000. The candidate
+`local/client/game-14.9.1/images/kkr.dll` has SHA-256
+`241b2e665dcd127399b7686cddda8a5b0876d9cde9b3af7a73940dd0b86ecaa7`,
+and `local/client/client/kkr.dll` has SHA-256
+`b0e0173b5dbe129c6ad53eadd4467a0f53796993e613fecb9b2aaa6fc9a403ac`.
+They were not used for original binary claims. An initial attempt to open the
+first candidate with the original snapshot was correctly rejected for identity
+mismatch. The original snapshot was then reused against the matching original.
+
+## Verified observations
+
+| Question | Result | Original assembly Evidence ID |
+| --- | --- | --- |
+| Attack section | 1008f1f0 iterates item section 12, pairs of stat and integer percentage | ev_7026d5f7e10d5268d9e7ad962a2ccc331994225e4114f01c7a11be33a078d863 |
+| Defense section | 1008f2f0 iterates section 13 with identical weighted arithmetic | ev_161c10edc8ac499943d486141110d64b407093c42c098a80f0bd4f1ec59ac162 |
+| Getter mode | 1006dfb0 mode 2 reads the stored stat array directly; mode 0 calls effective getter 10075ca0 | ev_74652ec491811d2dbb9348174f59fabc0739128af4fc0567877aee64d3b28a0e |
+
+Both rating functions multiply each signed skill by its authored percentage,
+divide that product by 100 with truncation toward zero, then add to the signed
+sum. Division is per term. The original signed multiplication by 0x51eb851f,
+arithmetic shift and sign adjustment establish the signed division rather than
+an unsigned or floor calculation. Products are 32-bit native IMUL values;
+extreme overflowing skill values are not covered by the fixture.
+
+Only if the weighted sum is strictly positive does attack add stat 276 or
+defense add stat 277. The modifier getter always uses mode 0. There is no floor
+after adding it: a positive sum plus sufficiently negative modifier returns a
+negative rating. Empty lists, zero or negative weighted sums do not query the
+modifier. A null actor returns zero. Empty sections trigger the existing lazy
+section population loop over section IDs 1 through 35 before reading again.
+
+Actor flag byte +0x1b4 chooses skill getter mode 2 when nonzero and mode 0 when
+zero. For NPC raw values, do not run player trickle or direct skill modifier
+addition again. Mode 0's effective path is separately traced in
+`docs/research-notes/signed-stat-research/ledger.md`; it adds the native base/trickle and
+modifier. The NPC flag interpretation comes from the actor model and existing
+client documentation; the byte and selected modes are directly observed.
+
+These facts establish the client-side rating ingredients. They do not establish
+the original server's hit probability, NPC population stat values, AggDef effect
+on hit chance, or any all-off/all-def formula beyond the client's additive
+modifier and gating above. No probability expression is derived here.
+
+The original extracted fist records 43712 (QL1), 144745 (QL100) and 43713
+(QL500) each author attack section 12 as Martial Arts stat100 at100% and defense
+section 13 as Evade Close Combat stat155 at100%. Sources are
+`server/gamedata/items/items_002.yaml` and `items_065.yaml`. QL1 payload SHA-256
+is `8081990ac19d682aab12be9d3eee65a6b612093d81692745319a7526bf23a27f`.
+The other evade stat bindings are Dodge Ranged154 and Duck Explosions153;
+Run Speed is156. The mixed defense fixture uses155 and154, synthetic50/50
+weights rather than a claim about the fist's actual100%155 defense.
+
+## Contract test and limits
+
+`client/tests/weapon_rating.c` runs the maintained lifted rating functions and
+the actual lifted stat getter. Section lookup, absent-section population and
+the mode-0 effective provider are explicit fixture boundaries. The test proves
+NPC raw lookup by making effective skill values differ by +100, and proves
+modifier mode 0 by making the raw modifier 999 while effective modifier is 7.
+It covers 18 hardcoded cases, including 125*50% twice yielding 124, 3*33% twice
+yielding zero, -3*50% truncating to -1, a zero mixed sum, a negative final result,
+NPC reads, missing actors and empty sections. The fixture does not execute the
+original Windows DLL or full effect lifetime.
+
+Linux (whole maintained translation units) and WASM (the three exact bodies,
+newline-normalized) pass with identical output in linux-results.txt and
+wasm-results.txt. `tmp_audit.py` verifies every original assembly instruction
+address occurs in its maintained body: 96, 94 and 44 instructions respectively.
+Instruction provenance coverage is not a proof of every translator semantic.
+`focused-evidence.json` retains the five focused pseudocode/assembly records;
+`rating-evidence.json` and `kkr.snapshot.json` retain the complete session.
+The owned REA session was closed. No game, server or browser was started.
+
+From the repository root, the Linux build recipe is:
+
+```
+gcc -Iclient/runtime -Iclient/game -Iclient/data -DRECOMP_PORTABLE -O2 \
+ -fno-strict-aliasing -ffunction-sections -fdata-sections \
+ client/tests/weapon_rating.c client/game/kkr.dll/lifted-0042.c \
+ client/game/kkr.dll/lifted-0033.c client/runtime/guest_memory.c \
+ client/runtime/recomp_state.c -Wl,--gc-sections -lm \
+ -o local/hit-miss-research/native/weapon-rating
+local/hit-miss-research/native/weapon-rating
+```
+
+For the WASM check, run `python3 local/hit-miss-research/native/tmp_audit.py`,
+use `toolchains/emsdk/upstream/emscripten/emcc` with the same flags, replace the
+two whole lifted files with `local/hit-miss-research/native/lifted_rating.c`,
+and name the output `local/hit-miss-research/native/weapon-rating.js`.
+Run that output using the bundled Node executable. The full Linux compile and
+extracted WASM compile both use unmodified maintained arithmetic bodies.
diff --git a/docs/research-notes/ice-flechette-research/native/README.md b/docs/research-notes/ice-flechette-research/native/README.md
@@ -0,0 +1,238 @@
+# Ice Flechette child delivery, original 14.9.1
+
+**The parent cast does not apply child 144632 locally.** A separate active-program
+delivery to the target can apply the complete child exactly once. Parent
+18/107 handles casting/recharge; target177 handles the child modifiers, active
+record, icon and visual. No extra ApplySpells or second modifier delivery is
+needed. This is a native consumer contract, not a captured original-server trace.
+
+Read-only REA skill Step 6 follow-up using retained complete Evidence and maintained
+generated sources. No new binary open, snapshot export, runtime, DB action,
+production edit or REA session occurred. The earlier automatic approval rejection
+of a fresh native open was respected without retry or workaround.
+
+## Identity, artifacts and evidence
+
+Original `anarchy-vanilla-14.9.1/kkr.dll` SHA-256 is
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Every record selected in `retained-evidence.json` identifies this hash.
+Original addresses use base10000000; maintained generated C uses36000000.
+The generated sources are instruction lifts, not original source or new REA
+Evidence. `sources.json` preserves their exact ranges and source/extract hashes.
+`provenance.json` links complete reused records to their retained source bundles.
+Address-named text files are extracts; the full record remains authoritative.
+
+| Finding / original procedures | Complete retained Evidence ID |
+| --- | --- |
+| CastNano gate and executor `100bfb40`, `100be8e0` | `ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d` |
+| Empty `ATR_t::AddSpawnedIdentity`, `1000c340` | `ev_21b6bf56ea3b01fefafecdb673e392142538e12a995ac4070c4b8a8f1a26f59b` |
+| Parent completion `100654a0` | `ev_4454e12e69f0ac994b39f2628681f4ea8b1c62dfb507addeb5761df50b4ce819` |
+| Parent completion original assembly | `ev_ad186f0988b9d48e0d36a6de81f40306e742582852c898a26e8313e9077ed6f8` |
+| Modifier execution/add/inverse `100bd600`, `10074730`, `10074b00` | `ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405` |
+| Active add/remove, action177/65 `10066010`, `10065b90`, `1006fa30` | `ev_a760dfc116df1dd38b0619334130d916b7706ee29c64a535cdef16ed448295a6` |
+| Add original assembly | `ev_86e17289b115cdde8ecfc9574a926b958c070428196b47bcdbcb9a1a17d21144` |
+| Removal `10064ee0` | `ev_fd418e8113e0801a8672f3678b360186cf1bfd74a85b261dce39b79eade66941` |
+| Strain/NCU replacement `10066c80`, `10066d40`, record `10065ac0` | `ev_c3c599190c5c536182443fd9804afc7109d4a067408ab38953ed2717671edb89` |
+| Record duration original assembly | `ev_dbbcdc0a8339f2423c88e365d0d4a0e709e4f08cb2695c26780e6f053d3aa907` |
+| Character duration default `10072760` | `ev_c1327f6eacdaca324e36fd5e618006bce7107e2aad71580185e614a178fe34d9` |
+| Native hostile cancel gate `100232a0` | `ev_442db1232e93ae629395f4024821f61c4c9f8abe849fd3a69875e37073d62f6a` |
+| Death state `10085d60` | `ev_7f991d40b7f085663b59c9e4b5ebb5fe2a56fb8ad9362677a08b83504d6ef76e` |
+| Death clears cast queue `10066ea0` | `ev_7b4a27ace2b310e60dd6122ebb3744c9a45505d2a9b7ff75ee22cfb756a2d940` |
+| Death dispatch99/153/65/177 | `ev_b07ce717ef6e92588539cb41d7136436d3b1bbfd35695c7639a4947c1f518cf7` |
+| Active-remover caller inventory | `ev_d51d296485f8cb2f637924d0bd58366a4d1ec5972e8a77f413b881bbfae02da6` |
+
+## Parent and child authoring
+
+The complete previously retained decoded catalog documents are copied into
+`catalog-records.json`. Their original payload identities are:
+
+| Resource | ID | Payload SHA-256 | Original file offset |
+| --- | --- | --- | --- |
+| Startup crystal1000020 | 28815 | `5720cacb5d62ac0ca74435a79749598d59b910be4be0cf14565b32e0d8924d98` | 65056340 |
+| Parent nano1040005 | 28612 | `d3c582425ee42a26d8e997730685160b3bba148aeeb1784b9cfafcb249e0497d` | 91564336 |
+| Child nano1040005 | 144632 | `2468d892714587cda36f453b19b3cdbd501eff2ee06bc05b395b1fcbb0bcfdcc` | 69240919 |
+
+Crystal28815 uploads28612. Parent28612 OnUse contains Hit53002
+`[27,-13,-17,95]` and CastNano53051 `[144632]`, both target3/count1/interval0.
+Child144632 has flags`80018000` (BuffNano10000 and hostile8000), QL/NCU54=1,
+TimeExist8=6000cs, FX413=1141, school405=1, attack294=1cs, recharge210=1cs.
+Its four target3/count1/interval0 OnUse Modify53045 functions are:
+
+| Stat | Authored signed delta |
+| --- | --- |
+| NanoInit149 | -6 |
+| PhysicalInit120 | -6 |
+| RangedInit119 | -6 |
+| MeleeInit118 | -6 |
+
+The decoded catalog is generated evidence from the original resources; this
+task did not re-open or reparse the original resource database. Source locations
+are `server/gamedata/items/items_000.yaml:32611`, `items_166.yaml:51451`, and
+`items_171.yaml:2295`.
+
+## Why parent finish cannot double the child
+
+1. `100654a0` is the normal queue transition after action18 and107. In original
+ `100656d0..100657a2`, a SimpleChar target has a nonzero Beholder pointer and
+ jumps past action4/action0 execution. The execution calls are in a SimpleItem
+ fallback. This applies to NPC and player SimpleChar targets, independently of
+ their local-character byte. See `local/nano-buff-research/admission.md` and
+ maintained `client/game/kkr.dll/lifted-0030.c:7762..8372`.
+2. CastNano53051 is `cf3b`. The gate100bfb40 explicitly admits it, unlike Hit.
+ The executor100be8e0 `case cf3b` calls the exported name
+ `ATR_t::AddSpawnedIdentity` at1000c340. This shared function is empty: the
+ maintained instruction at3600c340 is `ret 8`
+ (`client/game/kkr.dll/lifted-0004.c:372..385`). Its export name must not be
+ interpreted as an implemented local child cast. It neither sends a request
+ nor calls10066010, reads144632, or mutates a stat.
+3. Parent28612 lacks BuffNano10000. Sending a fabricated parent177 would not
+ turn it into the child's active effect. Use the authored child identity.
+
+Thus even invoking the admitted CastNano effect directly through the common
+executor would not apply the child on this client. Historical server CastNano
+handling is absent; a separate server result must establish the child state.
+
+## Concrete child177 delivery and negative modifiers
+
+Use recipient envelope `(50000,targetID)` with the ordinary CharacterAction
+body, all DWORDs in normal big-endian wire order:
+
+```
+action = 177
+A = (53019, 144632)
+B = (casterCharacterID, 6000)
+```
+
+`1006fa30` constructs caster identity `(50000,B.type)` and calls
+`10066010(A,B.instance,1,1,casterIdentity,1)`. The add method loads the child by
+ID, applies its action4/action0 containers in addition mode, creates one active
+record and visual, and notifies the local recipient icon. It does not run a
+new casting queue or use child attack/recharge stats. Child18/107 is unnecessary
+for this proven active-effect delivery path. Historical server send choice and
+interleaving are not established by the consumer dependency alone.
+
+Modify53045 (`cf35`) is admitted and dispatches100bd4d0 ->100bd600. The latter
+requires a SimpleChar, then updates its helper at`actor+154`. Addition mode
+calls10074730, whose map value is **signed oldValue + authoredDelta**. Removal
+mode calls10074b00, whose value is **signed oldValue - authoredDelta**. Therefore
+add -6 reduces each stat; removing -6 restores +6. There is no clamp, sign
+reversal, owner-only gate or player-only subtype check in this mutation path.
+The local byte is read later for feedback. NPC and remote-player SimpleChar
+representations receive the same modifier arithmetic; only the owning player
+gets the active-program icon. Final effective-stat behavior uses the existing
+stat system; this pass did not infer a new server combat/timer formula.
+
+Do not send an additional ApplySpells, matching snapshot active record, or
+separate modifier packet along with177 for the same installation: those are
+additional application routes. Ordinary parent18/107 is safe because it does
+not execute the child's effects.
+
+## Defaults, NCU, strain and duration
+
+**Omitted raw strain75 defaults to the program ID, not zero.** This is an
+instruction-lift finding rather than an independently retained constructor
+decompile. Loader100b4000 creates a nano object with `(53019, programID)` through
+10098540 before loading resource1040005. Constructor10098540 stores the ID at
+`object+84` and calls10098600. Initializer100986a1..ae loads`object+84` and
+writes that value to stat75. The later catalog has no75 override for144632.
+The effective default strain is consequently144632. Sources:
+
+- `client/game/kkr.dll/lifted-0054.c:1116..1252`, `sub_360B4000`.
+- `client/game/kkr.dll/lifted-0046.c:639..692`, `sub_36098540`.
+- `client/game/kkr.dll/lifted-0046.c:789..1234`, `sub_36098600`.
+
+The same initializer defaults duration8 to1000cs and NCU54 to1, but this child
+explicitly authors6000cs and1. Hostile8000 causes10066010 to skip increasing
+usedNCU180, and10064ee0 to skip decreasing it. Neither MaxNCU181 capacity
+validation nor a player/monster distinction is introduced by these consumers.
+The local removal request100232a0 rejects hostile buffs; that UI gate does not
+block an authoritative incoming65.
+
+The inspected ordinary client admission/completion/add chain contains no
+MaxNCU181 versus usedNCU180 capacity comparison for friendly or hostile nanos.
+It therefore does not establish original-server NCU admission policy. In
+particular, hostile usedNCU suppression is directly proved, while a server-side
+rule requiring spare NCU for hostile children is not proved here. The child177
+consumer does not run the parent cast admission checks at all. See retained
+`local/nano-buff-research/admission.md`, NCU capacity and replacement section.
+
+177's duration is its explicit unsigned B.instance; zero returns without
+application. It does not substitute program TimeExist8 when duration is zero.
+For6000cs, the visual receives60 whole seconds. Active-record10065ac0 computes
+both duration fields as `trunc(recipientStat464 * durationCs * .01)`, proven by
+original10065b08..2b assembly; the decompiler omits the arithmetic. Shared
+SimpleChar initializer10072760 sets464 to100, so default record duration remains
+6000cs. A nondefault recipient464 multiplier can alter it. Do not silently
+multiply both server and client duration; exact original handling of nondefault
+duration modifiers is unresolved. Server expiry remains authoritative.
+
+## Refresh, stacking and removal
+
+10066010 reads **effective** strain75 and NCU54, then10066c80 searches the
+recipient's active list for first equal-strain program with existing NCU <=
+incoming NCU. It removes that record/effects before adding the incoming one.
+Same child/strain144632/NCU1 therefore refreshes the duration and restores then
+reapplies each -6, yielding -6 rather than -12. The native add uses NCU54 for
+this ordering even for hostile effects whose usedNCU accounting is suppressed.
+Strain priority551 and FX413 are not compared in this path.10066d40 detects a
+same-strain existing program with higher NCU in ordinary cast admission/finish;
+incoming177 itself does not call that rejection predicate. Server acceptance
+remains necessary, rather than treating177 as a request to validate.
+
+Remove using recipient envelope `(50000,targetID)`:
+
+```
+action = 65
+A = (0, 0)
+B = (casterCharacterID, 144632)
+```
+
+Dispatch calls10064ee0(B,0,1,0), which reconstructs program identity
+`(53019,B.instance)` and checks membership.10065b90 then invokes effect-removal
+mode, terminates visual, and erases the active record. The inverse modifier
+operation subtracts -6. Membership makes repeated65 unable to subtract twice.
+B.type contributes possible caster termination feedback; it is not part of the
+active membership key. Owner receives icon removal/termination text; NPC and
+other actors still lose modifiers/visual and active record. The hostile flag
+continues to suppress NCU180 subtraction.
+
+Countdown reaching zero does not itself remove modifiers in the inspected
+active-list code. Retained caller inventory bounds10065b90 to10064ee0, reached
+by replacement/add and action dispatch. Send an explicit65 at expiry or other
+authoritative removal. Unknown indirect callers are not proved absent by this
+resolved-static caller inventory.
+
+## Death and replay boundary
+
+Death actions99/153, HP0 setter, and death-state10085d60 do not erase the active
+list. Death clears nano controller`+18` (cast queue) via10066ea0, while persistent
+active records are controller`+14`. Therefore NPC and player visual death is
+not a substitute for65. Native hostile/buff flags in these inspected death
+paths do not choose persistence or purge policy. See
+`docs/research-notes/nano-death-research/wire.md` for the complete bounded death proof and
+resurrection limitations. Exact original-server Ice persistence-on-death policy
+is unresolved; any server decision to remove must be explicitly represented.
+
+Spawn snapshot restoration10066dd0 also calls10066010 with add-record=false,
+restoring modifiers once for the serialized active record. Use either that
+active snapshot representation or177 replay per installation, avoiding both.
+The parent cast queue can be absent while a child active record remains.
+
+## Checklist and limits
+
+| Question | Status / confidence |
+| --- | --- |
+| Parent finish locally casts child? | Answered no, high: original completion assembly plus empty CastNano executor |
+| Separate child177 works? | Answered yes, high: complete original active-add/dispatch records |
+| Negative modifiers on NPC/player targets? | Answered, high: SimpleChar cast plus signed add/inverse arithmetic |
+| Child NCU/duration and omitted strain | Answered, high; omitted-strain default supported by maintained instruction lift, not new native decompile |
+| Same-child refresh and explicit65 removal | Answered, high for native consumer behavior |
+| Automatic expiry/death cleanup | No cleanup in inspected paths; bounded static finding, not universal indirect-call proof |
+| Original server timing, secondary resist roll, admission, death persistence | Unresolved: no original server implementation/trace |
+| Actual WASM integration / ordering test | Parent scope; no runtime action performed here |
+
+The concrete minimal consumer path is parent18/107 plus its separate HP result,
+and one target177 for child144632, followed by explicit65 on authoritative
+expiry/removal. Ordering among damage, child installation and parent completion
+is a reconstruction decision to verify in runtime; this static pass does not
+claim a historical packet capture.
diff --git a/docs/research-notes/ignore-badge-followup/README.md b/docs/research-notes/ignore-badge-followup/README.md
@@ -0,0 +1,43 @@
+# Original ignored-nametag cache audit
+
+Selected TODO: determine the original overhead IGNORED invalidation path and
+verify an updated display without actor reload. Original DDR SHA256:
+`3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883`.
+
+The investigation reuses the matching original ignore snapshot. Static evidence:
+-100506d0 toggles OOR membership with no direct nametag operation:
+ `ev_65bfc041bb9845f5abdbfa7f7a3813ab0de829785a7313b3cc92fead2e0508cc`.
+-100624e0 paints texture263 into the constructed indicator when IsIgnored is
+ true; it is a cached sprite, not a live per-frame ignore lookup:
+ `ev_974a7d0dcf34eb3cce5f0e72705fb0ad128c7b1ada860156fb37afaf3c096147`.
+-TargetingModule::FrameProcess10063a70 retains the selected/attacking indicators
+ while their identities stay valid:
+ `ev_2c04e8acfd197c02094adbdb42a8f7f9e1630e712b3f04b8db40a7ee1d66efcc`.
+-HandleNametags10064070 checks vicinity every2seconds, retaining existing entries
+ instead of rebuilding their images:
+ `ev_3229412139651edd463b1a063a343e1c03773988171cf9f959ced2dbd8c77306`.
+-SetTarget100635c0 destroys the previous selection indicator and builds a new
+ one through100624e0. Clearing/reselecting is therefore a supported cache-refresh
+ path, without replacing the world actor:
+ `ev_2add49520142f452a896d92acaa44a5dbf2ae20375ebe7ba276737f752d506d9`.
+
+The outer IcqViewModule::IgnoreIcqUserMessage10055430 calls the toggle and
+returns without post-invalidation:
+`ev_a540e233995b07ab886585c43f06cec8cd7e983108d57eaea8189f605bb127f5`.
+
+These are static original-client observations. The accepted controlled native
+probe20261104-123301 took17.99seconds (native-final.log). Both characters use
+fixture positions; this is not earned-progression evidence. Real keyboard
+Ignore toggles wrote [0,0,0,1,0,0,0,2], then [0,0,0,0]. Node awaited the resolved
+OPFS reads with GameTest.waitFor; the first122520 probe's false fields do not
+prove storage. Manual review of the accepted unignored-cached and
+unignored-refreshed screenshots confirms the cached IGNORED text remains until
+F1/self then real left-click peer rebuilds the selection indicator. OCR does not
+reliably read the gray letters crossing the health bar and is not this visual
+assertion's evidence. Automated checks retain selected50000/2, zero actor
+replacement opcodes and six traces with no errors or dropped events. The
+temporary Go fixture is retained as probe.go.txt, not a maintained test.
+
+The audit is complete: original cache behavior and a normal refresh path are
+verified without world actor reload. No immediate-invalidation patch is
+justified. Matching REA evidence was exported and the session closed.
diff --git a/docs/research-notes/ignore-research/ignore.md b/docs/research-notes/ignore-research/ignore.md
@@ -0,0 +1,220 @@
+# Original14.9.1 ignore contracts
+
+Read-only native investigation. No server-side ignore wire/state is inferred.
+All owned REA sessions were exported and closed. Parent owns actual WASM tests
+and browser storage changes. Complete original DLL exports and matching
+snapshots are retained here; `manifest.json` records their hashes and validates
+every Evidence citation below.
+
+## Ownership and persistence
+
+OOR `IgnoreSystem_t` is a client-local list. `Preferences_t::OpenGamePrefs`
+10001c40 constructs it with GetCharacterPath: the same per-character directory
+used for References.bin. Constructor10001000 formats
+`Prefs/<login-pref-name>/Char<character-id>/IgnoreList.bin`, allocates an
+integer vector, reserves20 entries and immediately calls Load100013f0.
+Reserve20 is capacity, not a maximum: IgnoreCharacter grows the vector.
+Evidence ctor
+`ev_526f5406782bb435285a9fc4ed998d676c4d44dd92f3edad4be271b8fe1ca225`,
+owner/path
+`ev_a2355870dc9bb6114c65ceb2325f1e36f5dee39d7cb484045e47f429d1f1d4bd`.
+
+Only identity.id (+4) is stored/compared; identity.type and name are not.
+IgnoreCharacter10001120 returns AL=false for an existing ID without saving;
+otherwise it appends and calls Save10001650 immediately. UnignoreCharacter
+10001310 removes the first matching ID, compacts the vector and immediately
+saves; missing IDs return false without saving. IsCharacterIgnored100013a0
+is a linear ID lookup. These APIs themselves do not reject0, self or non-player
+identity types; command callers impose additional checks. Destructor100010e0
+only frees memory and clears its singleton; it does not save.
+Evidence Ignore
+`ev_3dd729b422fe8b40b4f92d752d76358a6edb2e22b53ea7d8479b83e4f6a819b2`,
+Unignore
+`ev_caa8fdb5e5b0b118c8c52c78af0f52c3ca0c42d26dfac7eccce07430f931d3ac`,
+lookup
+`ev_f287dc8515694eeb1a428b4675743d08e16b34eeac8e10597b1835f815b9eded`,
+destructor
+`ev_7f5a95540196aeb5b9b5c2b1b64086ccea3c31a8d68e13c79b1a84de9e988fce`.
+Complete observed Save callers are Ignore and Unignore only:
+`ev_4edf9bd56a2d6918f9687cb045b8609e502be2b8d8c6c3bfdbaa47024e4924fb`.
+
+File layout is a four-byte count, then that many four-byte character IDs.
+There is no version/header/name/type field. OOR writes each with
+File_t::WriteS32(value,order0); for ordinary nonnegative count/IDs this is
+MSB-first. File WriteS3210002d20 uses four fputc calls; ReadS3210002660 uses
+four fgetc calls and reconstructs MSB-first, including negative read values.
+Do not generalize the writer's negative-value branch into a standard signed
+serialization contract: it first takes magnitude; valid character IDs/counts
+here are positive. Save Open2 truncates (`wb`), writes count/IDs, explicitly
+closes and destroys File. No temporary rename or write-status check appears.
+Evidence Save
+`ev_fd1979ad3c93fbf6c2212d3e9ce34df536675a0b3d186207df22b6b54b86fdbc`,
+S32 writer
+`ev_209ccb843dcec8c5475b766addffad69da605753b614e467a967ac0b616bd49e`,
+S32 reader
+`ev_b88d74f23eb8f463005b457cf16a44b179be989a2dd90f443fdb61a9ba26eec0`,
+File Open
+`ev_741913e3c022b33a93d82702860d9dabe74fb3febbcc19487f54ef65ddd87f49`.
+
+Load clears vector end to begin first. Missing file exits safely through
+Exists=false. Existing files are opened1 (`rb`); count and entries are read
+without checking sizes or read results. EOF leaves the ReadS32 output
+unchanged and invokes the native error handler with-6. Thus an existing empty
+file is not validated as an empty list; absent file and four zero bytes have
+different contracts. Load appends raw values without deduplication and does
+not save them. Corrupt/truncated input handling beyond these observed native
+branches is not claimed safe. Evidence Load
+`ev_d145ca69472b352167d42ad6eba0c5e24e32d9af323713ff8ed6696e60915a79`.
+
+## Commands and protocol boundary
+
+DDR parser1000d540 matches `/ignore` using1000ce20: case-insensitive command
+token, requiring end-of-string or following whitespace. It is a toggle.
+No arguments uses the selected identity, rejecting no target, type!=50000
+and self with local text. One argument queues local operation9 with that
+name; more than one argument prints Invalid syntax. Numeric arguments can
+resolve through atoi in1009cf20; ordinary names use its cache, issuing standard
+C2S21 `S` on a cache miss. S2C21 `IS` updates that cache; ID0xffffffff records
+unknown. Pending operation processing10009670 waits for lookup, prints Unknown
+user on the cached unknown result, rejects self, then calls local OOR
+Ignore/Unignore. No dedicated ignore mutation packet is sent by that branch.
+Evidence parser
+`ev_fe429984672f71b88db53803eba85385817137f25418ea7c16ce041c00bd3556`,
+command token helper
+`ev_de12a3e295e86b693b5fec63cf1ee4438dc8bfe5f5109b466886ff6e9c3d1464`,
+pending processing
+`ev_2257b2e1f61464ab1dc90724b71e50f75c04a0f642511d6953a7ec2ff7f3a00b`,
+lookup
+`ev_ec3eb250d578f4aac4632e25d28cb1eaa39ffba9c4d8ab45bb485dd438a03fcc`,
+network receive dispatch
+`ev_7cbc389c64ec7925fb38fe8fc6d10d58ba346da89444cedd4d6c95b7832f2ddd`.
+
+`/cc` is a different early parser branch, literal100e22cc. Its helper1000cc00
+tokenizes the remainder and generally forwards it via1009d2d0 as C2S120 format
+`s` (counted string array). The inspected native helper has no ignore/unignore
+special branch; `/cc ignore` would use that generic forwarding path. Its
+original server meaning is unknown. `/unignore` is absent from the inspected
+native parser/string inventory; toggling `/ignore` is the established route.
+Evidence literal
+`ev_70a78c627ad2c1897da9b1a532627293d5318b839f76506c1448afe5577ca62a`,
+cc helper
+`ev_87d2ac13670ed54a717efb645335afcce86a0c70ccfc263b1d04dddd9959fac7`,
+C2S120
+`ev_be90e96b5f5dc4ac18813f39417fdb843cd1ccec18c303658077b625775c0693`,
+bounded unignore string search
+`ev_a3ea28c793c3c3936ce6ee5b751d62e4572e97102e919a3521909bc63c4a1ac9`.
+
+Other local entry points: Icq IgnoreIcqUserMessage10055430 receives identity,
+then100506d0 calls IgnoreCharacter and, if it returns false, UnignoreCharacter.
+This wrapper has no independent self/type guard. Team JoinTeamIgnore1004b150
+adds the inviter locally, invokes JoinTeamNo and prints a local notification.
+Evidence
+`ev_88642ec5db445821bf9b6251e5ccb5b2a8036a669be1004cfe9d152110048e1a`,
+`ev_1f9ee7493b424accf99b7f1c59f170f70717b4adf682cab0a99e024bdd142316`,
+`ev_c1ce5c2f388f88e6ad0057e7b386a35bbc95c11dcd87498ce8b1b4222c0750f6`.
+This scope does not claim an accessible Ignore radial icon; the previously
+traced Friends kind6 menu contains Remove and Accept only.
+
+## Receive filtering
+
+Network layouts below come from original DDR1009d780. `I`=BEu32, `S`=u16 byte
+length/text, `D`=u16 byte length/blob, `G`=five-byte group identity.
+Main processing10009670 dispatches local message kinds to the listed handlers.
+
+| Delivered network type | Native handler | Ignore behavior |
+| --- | --- | --- |
+|30 `ISD` private tell |10007af0, kind1 | Ordinary data prefix0 checks sender ID; parsed metadata bit0x01 bypasses ignore |
+|57 `IISD` private group |10008620, kind3 | Early unconditional sender-ID ignore guard |
+|65 `GISD` public/team/org/world group |10008620, kind5 | Same early sender-ID guard, before group-specific filtering |
+|34 `ISD` vicinity |10008d50, kind2 | Nonzero sender ID checked; parsed metadata bit0x01 bypasses ignore |
+|35 `SSD` named vicinity |10008d50, kind2 | No numeric sender on wire; identity reconstruction not independently established in this scope |
+|36 `S` system text |100094d0, kind0 | No ignore lookup; formats System and displays |
+
+Tell evidence
+`ev_16fcb32fbd4a0d830065ae9c1c1d57f06ae60bf4a2d51f5bcf31ce76b5f865f4`,
+group
+`ev_f7590d1ab782aa2205a6c4d8d0628112f7bf9d8649415152bc475c7c391cc04d`,
+vicinity
+`ev_8ea3a6cc92b39932e975b917cf206bae2190f1a177f9d79f7574fb6705b7826a`,
+system
+`ev_34b3301086e8ebd0ee87588fd0d252cc1a4c3910610b66091264decd04021f24`.
+
+Vicinity uses the leading data byte to select ordinary vicinity/whisper1/
+shout2/emote3 colors; all share the same ignore decision. This establishes
+text-emote handling, not suppression of world gesture animations.
+Metadata parser10008350 initializes its flag output0, recognizes metadata
+record type2 and reads the next `B` byte into that output. Tell/vicinity test
+mask0x01. The Ghidra pseudocode folds one local byte into a parameter high
+byte; retained lifted source/native range captures document the exact stack
+write100083fa. The privilege/authority represented by that bit is unknown;
+do not label it GM or admin without additional evidence.
+Evidence metadata parser
+`ev_581bcf0bf6503e15f8fe1969ce3f20653429831c94d69ccb7c124a0de882509a`.
+
+Tell distinctions: self sender returns immediately. Empty data or an unknown
+nonzero leading data type returns. Leading type2 takes a separate structured
+display path before the ordinary ignore guard and writes assist/summon script
+files; its intended authority is not established. For ordinary type0, an
+ignored sender without the exception bit skips display, recent-buddy insertion,
+reply-history insertion, voice effects, AFK response and receive-tell tip.
+Accepted normal tells add a recent buddy only when sender name length>=4;
+this is message+0x10 (string length), not a status/level threshold. AFK mode
+queues the normal private reply text `The user is currently AFK.` after the
+same guard. These claims are all in10007af0 above.
+
+Other observed ignore consumers: trade open100485b0 rejects the ignored remote
+by sending its normal cancel event; team invite10049e30 invokes JoinTeamNo;
+1000b9c0 suppresses the chat head-flash; nametag construction100624e0 draws an
+ignored texture. No native outgoing tell/group send guard was observed in
+the complete IsCharacterIgnored callers list. This is a client-path statement,
+not a claim about unknown original server routing policies.
+Evidence callers
+`ev_d208fa112306e63d1474bcead33261eeb9a61effc0e267acb66099e3e60720e3`,
+trade
+`ev_f911da1c2387a3b3462bcac026a74bb2db0211501b0b61aba473ea5914f37e15`,
+invite
+`ev_97fc8b4a7a2f9ec96821d9c824f655ac4c46bb3ce9f72ebb7c75091f1eaa70bc`,
+head flash
+`ev_e3beeaa43bcc5dc653c363b014de21903e48370d35c3099cdd5fd64859507b86`,
+nametag
+`ev_0cb78ddb32c45f4bb7ee6c9185b843ec233114fc38729eb659ea61c8d7ec42b3`.
+
+## History boundary and unresolved fidelity work
+
+The current server's custom senderless S2C36 history replay bypasses the
+original client ignore filter by construction: the proven type36 path has no
+sender identity or ignore lookup. Resolving this is a separate history-fidelity
+TODO, not a reason to invent a server ignore protocol/list. Original
+ChatHistoryPageUp10016750 ->1000b7e0 only scrolls the local output view;
+PageDown uses the opposite direction. This bounded path has no network call.
+It does not establish the absence of every possible original history feature.
+Evidence
+`ev_0f927295baaca302998f6b94c9edd5d7c38cd8c72595580b82f6a2e8577917ea`,
+`ev_f2531c49a53d39b9890054f517908a397a218d88aefc8cda825c48394aa785a1`.
+
+## Fixture source and dependencies
+
+`native-functions.c` contains complete actual lifted OOR function bodies,
+extracted from `client/game/oor.dll/lifted-0000.c`; `native-functions.json`
+records per-function hashes, line numbers, direct/import dependencies and
+guest-stack cleanup including return. No fixture policy reimplementation or
+production edits were made in this research scope.
+
+All functions are thiscall ECX=this, except the cdecl allocation thunks4650
+new and4644 delete. Ignore1120, Unignore1310, IsIgnored13a0 take a pointer to
+8-byte identity and clean8 total guest bytes; only AL is the bool result.
+Load13f0 and Save1650 clean4. Core vector helpers1710/1730/1740/1770/17a0 are
+included to exercise original append/copy/growth rather than mirroring it.
+Constructor1000 and destructor10e0 are included for optional highest-level
+construction/free, requiring CRT sprintf boundary50a4 and the
+actual guest heap. Constructor stores singleton3e008db8 and formats with
+literal3e008020 `%s\\%s` and filename3e0051f0 `IgnoreList.bin`.
+
+Object: +0 vector pointer, +4 filename. Vector +4 begin,+8 end,+c capacity-end.
+OOR File IATs:3e005148 ctor(path),5144 Exists,5134 Open(mode),512c ReadS32,
+5138 WriteS32,513c Close,5128 dtor. Read/WriteS32 take out-pointer/value plus
+order0 and clean12 total; ctor/Open clean8, Exists/Close/dtor clean4. Save
+and Load preserve standard EBX/ESI/EDI/EBP, ESP and the FS exception chain;
+these should be asserted by a regression fixture as in the earlier native
+Knowledge fixture. File sinks can assert every argument and exact bytes;
+missing-file Load should avoid Read calls, and successful Load should not Save.
diff --git a/docs/research-notes/ignore-research/text-message.md b/docs/research-notes/ignore-research/text-message.md
@@ -0,0 +1,140 @@
+# Original world TextMessage vicinity payload
+
+The final byte of a plain message is a channel-mode field, not a terminating
+NUL. The earlier docs/protocol.md NUL interpretation was incomplete: a normal
+say mode happens to be0. This follows from the original producer, unchanged
+FFR/NR wrapping and the parent's captured shout ending02. No production edits
+were made in this scope. All owned REA sessions are closed.
+
+## Exact layout
+
+Offsets are from the native `dfdf` world packet, after removing the separate
+eight-byte WebSocket stream prefix. Declared packet size excludes transport
+alignment bytes following the packet.
+
+| Offset | Field |
+| --- | --- |
+|16 | BEu32 TextMessage subtype |
+|20 | Target identity type BEu32 |
+|24 | Target identity ID BEu32 |
+|28 | BEu32 payload byte count L |
+|32 | BEu16 text byte count N |
+|34 | Exactly N text bytes; no terminator |
+|34+N | One mode byte |
+|35+N | Zero or more optional metadata bytes, through declared packet end |
+
+Therefore L>=N+3; equality holds when metadata is absent. The original
+producer does not impose the earlier parser's L==N+3 for all messages. Mode
+must be read at counted-text end, rather than at packet end when metadata is
+present. Parent capture decoding and exact retained packet bytes are in
+`text-captured-frames.json`; capture SHA and commands are in
+`text-manifest.json`. Filtering only selected before-/blocked test frames is
+a bounded retained sample, not a complete transport-stream decoder.
+
+DDR command parser1000d540 sets the outgoing local mode; main processing
+10009670 serializes two BE text-length bytes, copies exactly that text, writes
+mode, then appends1000b740 metadata. It sends Network module0x13/event0x79 for
+mode1, event0x78 for mode2, and event0x77 otherwise. It also supplies selected
+identity separately to the network module. Evidence parser
+`ev_fe429984672f71b88db53803eba85385817137f25418ea7c16ce041c00bd3556`,
+serializer
+`ev_2257b2e1f61464ab1dc90724b71e50f75c04a0f642511d6953a7ec2ff7f3a00b`.
+
+FFR NetworkModule handlers10006ae0/10006b40/10006ba0 receive identity, explicit
+payload byte length and raw pointer. Client SendVicinity10002ec0,
+SendShout10002fa0 and SendWhisper10003080 write target identity, payload length
+and exactly those bytes into BinaryStream, choosing TextMessage subtype3,4,2
+respectively. They do not scan the payload for a terminator or append one.
+Identity writer1000f220 writes both identity integers. NR constructor10004950
+stores the subtype and exact provided body length and copies that many bytes;
+CreateDataBlock10004c20 writes subtype at+16 and copies its raw body at+20.
+Evidence FFR handlers
+`ev_142ec37a14499125471ae4db69b9cea676aa84e167c62895b8ec3646207fb233`,
+`ev_c01633fdd57a0aae175e3ab28cb33c7b26a20c3011fa3849511348a80b1c326f`,
+`ev_8e23319970671ec19b2713de83833a8983001d93c0e27afb5bccb4b86000059b`,
+FFR senders
+`ev_74ddee74efc8a860c945fad27b1f4b290e8c603f4715508d0c2e92ddf25f92c4`,
+`ev_348d9cdffe3e85cdfcad9d29fed096d69694466bdf1de44bb8544a9fe01e8eca`,
+`ev_9e5ab07f8240e698bd2e7f9a31d1b23a6669358e23a0272aa2a17bc3918fb6a1`,
+identity writer
+`ev_de54c19a8a8e5ce526ed17c2fc9a3e9b9e1900f737b1a6179d7e035d935b3769`,
+NR constructor
+`ev_a858b986e3e5694fad3c35d9be3d06466e14a6175c3c43b0a945ca85ab2f73d7`,
+NR serializer
+`ev_aa82e813076ca6be5f383500c0f53dcda42bd930ab71777ae3f5b6afcf8831ca`.
+
+## Commands, mode and subtype
+
+| Public command | Mode | World subtype | Text prepared by native parser |
+| --- | --- | --- | --- |
+|/say or /v |0 |3 | Remaining text |
+|/whisper or /w |1 |2 | `whispers: ` followed by remaining text |
+|/shout or /s |2 |4 | `shouts: ` followed by remaining text |
+|/me |3 |3 | Remaining text |
+
+Aliases and `/me` literal are retained in
+`ev_c950cbb7a522b7b394fd68fe7dc08d2efb14638c9066232bef464a687876af7c`.
+Mode3 uses the same world vicinity sender as mode0. There is no independent
+public range/subtype selector in this path: mode directly chooses the FFR
+event. Strict accepted pairs(3,0),(2,1),(4,2),(3,3) therefore validate the
+native public producer contract. This does not prove what the unavailable
+original server would do with a deliberately mismatched subtype/mode.
+
+Native receiving vicinity10008d50 selects whisper/shout/emote colors using
+the first byte of S2C34's D blob; other modes use vicinity. It combines the
+sender name with supplied text; it does not require the server to reconstruct
+`shouts: ` or `whispers: `. Preserve native text and mode separately.
+Evidence
+`ev_8ea3a6cc92b39932e975b917cf206bae2190f1a177f9d79f7574fb6705b7826a`.
+Original-server distance radii are outside this shipped-client evidence.
+
+## Optional metadata and authority boundary
+
+The sole caller of metadata writer1000b740 is10009670. Its complete original
+assembly makes two conditional calls to generic encoder100a5df0:
+
+1. When the ChatReference pointer R is nonzero, format `BIIISS`:
+ byte0, BEu32R[+0], BEu32R[+4], BEu32R[+8], string fromR+0x10, string
+ fromR+0x20. These last offsets are pointers within native string objects;
+ null uses the empty C string. No broad semantic names are assigned to the
+ three raw integer fields in this scope.
+2. When the voice pointer V is nonzero, format `BBBSS`:
+ byte1, low byte ofV[+0], low byte ofV[+4], string pointerV+0xc, string
+ pointerV+0x1c. Again null string pointers become empty strings.
+
+There is no overall record count or record length: records concatenate in
+that order, at most one of each in this public producer. `S` scans a C string,
+writes BEu16 length excluding NUL, then copies those bytes; `I` writes BEu32
+and `B` writes one byte. Type0 has17 fixed bytes plus its string bytes; type1
+has7 fixed bytes plus its string bytes. If both pointers are null, writer
+returns0 and writes nothing. Native links from ATextString::GetLink and voice
+state supply the optional pointers. This scope establishes the wire fields,
+not validation of every link/voice object's semantic content.
+Evidence writer pseudo
+`ev_858be4dbba41bcc1c0861b05b5f02add2997252555e3fe476c547efb496a8f17`,
+complete assembly (including varargs values omitted by Ghidra pseudo)
+`ev_3811a24be4bed4686060821abd42a4f0caec2b8854ca1f8e764d9db34d1747be`,
+format literals
+`ev_00f9ca4856d2fedb180f902c492a5a2b92874becbed92fffaffa60ca1fbd58dd`,
+sole caller
+`ev_347f06fd3916ce38e8c23244b39c3512e36c47836d18e7153dd0d3cfb0ed65a3`,
+generic encoder wrapper
+`ev_6d6022a4ddf3bae5d249db5a4d845e6f75ec2545922abb48fdcf2a8152c702b4`,
+encoder100a5e10
+`ev_f9d07bd3cfc274be7766f4f7597b9ffcf345893df6b27a60eb6fc4dba4a9323b`.
+
+The receiving metadata parser10008350 also accepts a separate record2 plus
+one flags byte; flag0x01 bypasses ordinary tell/vicinity ignore filtering.
+Public metadata writer1000b740 does not emit record2. No assertion is made
+about its intended authority or every other original sender. Therefore never
+blindly relay arbitrary client metadata as authoritative flags.
+
+For the focused server fix, bounds-check counted text and its required mode
+byte, validate native subtype/mode pairs, preserve supplied text/mode, and
+accept but drop trailing metadata until its support is implemented. That
+preserves plain commands without transmitting unknown authority flags. It
+leaves link/voice metadata forwarding as explicit incomplete functionality.
+A later forwarding implementation can validate exact native0/1 schemas and
+exhaustion (native ordering/one each), rejecting2, unknown and truncated
+records. That recommendation is implementation guidance derived from the
+producer/receiver distinction, not recovered original-server policy.
diff --git a/docs/research-notes/knowledge-research/persistence.md b/docs/research-notes/knowledge-research/persistence.md
@@ -0,0 +1,192 @@
+# Knowledge reference persistence in original14.9.1
+
+Research only. Parent owns WASM OPFS/filesystem integration and UI tests.
+All owned REA sessions were exported and closed. Complete DDR/OR/OOR/BR
+Evidence and matching snapshots are retained beside this ledger.
+
+## Ownership and character file path
+
+DDR KnowledgeViewModule is UI; the persistent list belongs to or.dll RefMan_t.
+Original DDR imports RefMan GetInstance, Load, AddCharRef, AddItemRef and
+DeleteRef through IAT100b6134..100b614c.
+
+OOR Preferences::OpenGamePrefs10001c40 forms character directory
+`Prefs\\%s\\Char%d`, creates it, then constructs RefMan(characterPath,20).
+The string argument comes from Preferences+0xc4, numeric ID from+0x2c.
+GetCharacterPath10001e90 returns Preferences+0x30. OR RefMan ctor100016e0
+stores max-load-count at+0, map pointer+4, next-ID1 at+8, and formats
+`%s\\References.bin` at+0xc. Thus path is
+`Prefs/<login-pref-name>/Char<character-id>/References.bin` after host path
+normalization. This scope does not trace the source of the login-pref-name.
+
+Evidence OOR open
+`ev_a2355870dc9bb6114c65ceb2325f1e36f5dee39d7cb484045e47f429d1f1d4bd`,
+character path
+`ev_f51b525623297a13f928723e77ce297bfae9b2e8431c18e4b66bf49435dd68d3`,
+path literal
+`ev_17451466e118029168de8bcdd080adcef48c3a3359fb79e6160bc4c1c6c85c76`,
+OR ctor
+`ev_66b3df9c1aebfed3d10d2c88a8c7ebcae7755daf60dec8356894b8e7f0f49cff`,
+References.bin literal
+`ev_1bb56a873347c626ac6ee3d182b81beed39d4733c2268a3f6361f762533a9cf9`.
+
+## Load trigger and file schema
+
+DDR Knowledge InitialiseMessage10045590 constructs KnowledgeView via10045cb0.
+That constructor calls RefMan::Load, then builds its grid. Module shutdown
+100455f0 destroys the UI view and clears its pointer; it is not the RefMan
+shutdown/save owner.
+Evidence initialise
+`ev_971ba6c08f890b514208d1eb6deaa54d0ae202f2136f847504d7878d29ae5433`,
+view constructor/load
+`ev_ec47bc5dfcd85455b0337e3069b6b34e03f557b6f6b1d2016474cd0ac5bea628`,
+UI shutdown
+`ev_67d0425c152b54bbc249a635c5e193abd948447f9c3103edffcb13f7b8733cce`.
+
+OR Save10002580 writes these fields in order. Every integer is big-endian
+u32: Save uses File::WriteU32(value,byteOrder0), whose BR10002f30 implementation
+explicitly emits most-significant byte first. BR100028b0 reads byteOrder0 in
+the same order. Text is raw byte string without a terminating NUL.
+
+| Field | Format |
+| --- | --- |
+|Header version|u32 1003 (0x3eb)|
+|Record count|u32 map size|
+|Each record|u32 reference subtype, then subtype body below|
+|Subtype0 character|u32 source identity type, u32 source identity ID, u32 text byte length, text bytes|
+|Subtype1 item|u32 AddItemRef argument1, u32 argument2, u32 argument3|
+|Subtype2 NPC|u32 source identity type, u32 source identity ID, u32 extra1, u32 extra2, u32 text byte length, text bytes|
+
+Subtype1 bodies correspond to Reference members+20,+24,+14 respectively;
+subtype0 source identity+0xc/+0x10 and text object+0x1c; subtype2 uses
+extra members+14/+18. The item API's exact endpoint/QL semantics were not
+independently renamed in this audit. No reference-local ID is serialized;
+records are emitted by ascending integer map key and rebuilt with next-ID1
+through Add*Ref on load. String constructors cap retained text at1024 bytes.
+
+Evidence Save/schema
+`ev_05da246fb30360ac4a197744626f25a9d6a6d6068cae384188182ec8bf607500`,
+big-endian writer
+`ev_2e7f6854a4a200a2ed2cd9f61d940d35ca547d2979b90409e256af817bb6c1ef`,
+reader
+`ev_08716034b667d2f8b9878c66005686f21e1d87f1482571966bdbc16299db5392`,
+character constructor/text cap
+`ev_5d2775aee09da69821bd6c8fbff1c1b17d4f7e1edc5a8afa6dd3652f6ed3f4fd`,
+NPC constructor
+`ev_f0cc2de3f1ea3583720f28b05bb607c635148df6973c32d405caf793abdbea8e`.
+
+Load10002150 checks file exists, opens mode1 (rb), requires at least4 bytes
+and version1003, reads count, then clamps it to RefMan+0 (20 in this client).
+It reads at most that many records and calls Add*Ref with save=false. New
+additions in a running session are not capped by this load-only count check.
+Thus a file with more than20 records loads only its first20; Save writes the
+current full map count. No migration or alternate version branch was found.
+Oversized text length>1024 or read error stops the loop; already loaded prefix
+remains. The loader adds a temporary NUL for its C-string construction; an
+embedded NUL therefore shortens retained text. It does not clear the map at
+entry. Unknown subtype skips its body, then advances the record counter.
+Evidence `ev_f6e79992365c578d18b68d654563b467b1c227fa2b357217a72bda6b3896d0d0`.
+
+## Save triggers and edge cases
+
+New AddItemRef100018f0, AddCharRef10001a80 and AddNpcRef10001d80 call Save
+if their last bool is true, after insertion and before next-ID increment.
+DDR CreateRef10045840 passes true for normal item and completed player refs.
+Adding an already-present item reference returns its existing local ID without
+writing; AddItemRef rejects any zero argument. AddCharRef rejects source0:0.
+
+Existing character identity is a separate case: AddCharRef replaces its text
+(truncated to1024) then returns the old ID before reaching the bool/Save call.
+So repeat player-reference creation updates memory but does not immediately
+write References.bin. A later new add, successful delete or RefMan shutdown
+will serialize the replacement. This is original behavior, not proof that
+browser persistence already handles it.
+
+Both DeleteRef overloads (integer local ID10002730 and reference identity
+100027b0) Save immediately after successful deletion; missing target returns
+false without a write. DDR DeleteRefMessage10045a60 invokes the identity
+overload, then refreshes the grid only on success.
+
+RefMan destructor100017c0 calls Save before freeing map entries. OOR
+Preferences::CloseGamePrefs10001ea0 invokes that destructor when a character
+is active, then frees RefMan. This is the meaningful logout/game-prefs-close
+save trigger; merely hiding or destroying Knowledge UI is not this operation.
+No periodic save timer or dirty flag appeared in RefMan's resolved Save
+callers. Native Save-call inventory lists only destructor, three Add*Ref
+methods, and both DeleteRef overloads. Unresolved external calls remain a
+static-analysis limitation.
+
+Evidence new item
+`ev_96bb0a4407d721c0c5b2393ab3b26518144e06c7b7d7d27ad5263d35dd933c55`,
+new/existing character behavior
+`ev_3e63e9cd73d08343bcd2924ebcbf9ec6161d9769ac47621b6b72be41046b82a5`,
+NPC add/save flag
+`ev_2d500f5fb6d1bb4595eb0554fb50b0fd514ddc99f3d5c371ce3117b4bc3a65f5`,
+DDR create flags
+`ev_645f68bf2e0d320519efda9e3a3362e8b91149be672b4ff8240cefe463346be8`,
+delete by local ID
+`ev_700352944034ee151f6c5884fdb0530881680439cea974e90f6dceaab4059869`,
+delete by ref identity
+`ev_a99becb043f267810a4d719cbd684df7ae95c2b5a377ac53cbaef2db4fa08deb`,
+DDR delete
+`ev_2f9f821863227bed3565db37f074897d83b99fd5723f4e881c205bd77a75b01a`,
+RefMan destructor
+`ev_1234e3e15eed19c99e9bc8540923adc127ef4b51b58f8d6b3208bff7dcb8cf2d`,
+prefs close
+`ev_9862caacf7331c416e30185c3b9d97945ba57a079b2a95ffdc0874e4d02031cb`,
+Save caller inventory
+`ev_61ffe16319f84a1534d516b42583637717cdbca18d229649c5cb4257f5753b4c`.
+
+## File write boundary and ABI
+
+Save first requests permissions0x180 (0600), constructs File(path), temporarily
+disables the global IO error handler, and opens mode2 (wb/truncate). On open
+success it restores the prior handler, writes header+records, then destroys
+File (closing the stream). There is no atomic rename or journaling protocol
+in this routine, and no write-result checks at the RefMan layer. An open
+failure silently skips writing under its disabled handler. The old global
+handler is not restored on that failure branch in this original routine.
+BR File::Open10002310 maps mode1 to rb and mode2 to wb; exact original literals
+are retained in native-ranges.json.
+Evidence `ev_741913e3c022b33a93d82702860d9dabe74fb3febbcc19487f54ef65ddd87f49`.
+
+Native methods are thiscall, ECX=RefMan; guest cleanup including return:
+Load/Save/destructor4, AddCharRef(identity-ref,string-ref,bool)16,
+AddItemRef(int,int,int,bool)20, DeleteRef(identity-ref or int)8.
+OR Add APIs return integer local reference ID; Delete returns AL bool.
+BR WriteU32(value,ByteOrder) and ReadU32(out-ref,ByteOrder) are thiscall,
+guest cleanup12, returning IOError enum (zero success). This is local disk
+serialization, independent of the game network packet byte order.
+
+## Verification limits
+
+This audit establishes original disk path/schema and native triggers, not the
+WASM mounted filesystem location, OPFS flush timing, browser reload/logout
+delivery, cross-character isolation or actual restored Knowledge UI. Parent
+owns those runtime observations. No production sources or database changed.
+
+## Parent follow-up: empty bootstrap and update fixture
+
+An existing zero-byte file is safe against an uninitialized header read:
+Load10002150 only enters the header parser when native File size>3. Empty
+file reaches File destruction/return. The loader's global error-handler
+restoration is narrower than its initial disabling; this ledger does not
+claim every early-return branch restores that global state.
+
+For a WASM-only immediate-save correction to existing character replacements,
+the original bool means save-now, matching Add*Ref's new-record behavior and
+Load's false. Preserve the original bool before the duplicate branch reuses
+its stack DWORD for text length: entry guestESP+12, equivalently EBP+0x10.
+Do not infer the bool afterward from that overwritten slot. The recommended
+scope does not make save=false imports write during Load.
+
+Highest public native test points, all client/game/or.dll/lifted-0000.c:
+constructor3F0016E0:1210, destructor3F0017C0:1323, AddItem3F0018F0:1555,
+AddChar3F001A80:1827, Load3F002150:2972, Save3F002580:5760,
+Delete(local ID)3F002730:6492, Delete(identity)3F0027B0:6588.
+An asserted in-memory File_t import boundary can preserve real RefMan map,
+string and serialization logic while checking emptyLoad/add/reload/update/
+delete behavior without launching the game. File imports in OR are at
+406c ctor,4070 permissions,4074 IO handler,4078 Write,407c WriteU32,
+4080 destructor,4084 Open,4088 Exists,408c ReadU32,4090 Read (all original
+VA1000xxxx). Parent owns the production/test changes.
diff --git a/docs/research-notes/loot-quality-research/20261103-followup.md b/docs/research-notes/loot-quality-research/20261103-followup.md
@@ -0,0 +1,36 @@
+# Bounded follow-up: original loot-quality generation
+
+The implementation question was whether target-period evidence establishes a
+creature-level to dropped-item QL interval, including fixed-QL exceptions.
+The follow-up searches did not recover an eligible formula or controlled sample.
+Production probabilities and quality intervals are unchanged.
+
+- The retained earlier November2002 Flesh Hood guide already establishes
+ variable-quality Monster Parts, without a distribution. Its current search
+ result remains available; direct retrieval again fails. Do not repeat that
+ access attempt or promote its crafting cap into a drop cap.
+- AOWiki's Patch14.5 transcription reports a new-boss armor cap of220. This is
+ a secondary lead concerning special high-level monsters, not evidence of a
+ universal early-creature distribution. No interval is admitted from it.
+- The original14.9.1 record209491, Take me to the Shop!, is a fixedQL1 carry-only
+ item with value4000. Its description mentions tracking vermin lifespan.
+ This proves the original item, not a Reet-specific membership or drop chance.
+- Jason Renfrow's Newbie Island guide, January2005, personally describes Reet
+ drops of that item. It is later than14.9.1 and describes a different starting
+ area; do not copy that membership into the original backyards.
+- September2002 published14.5 preliminary notes describe outdoor-boss special
+ loot, without numeric qualities or item membership. July2003 update reporting
+ distinguishes new dynacamp items from regular mission loot; it also supplies
+ no early-quality interval.
+
+Candidate URLs inspected:
+
+- https://www.paradisesgarage.com/arcanum/armor_fleshhood.html
+- https://wiki.aodb.us/wiki/Patch_14.5
+- https://legacy.fanbyte.com/story.html?story=1131
+- https://www.mmorpg.com/news/major-content-update-today-2000055657
+- https://gamefaqs.gamespot.com/pc/913777-anarchy-online/faqs/34866
+
+Stop this search branch. A period raw loot sample tied to monster level, or an
+original server-side generator contract, remains necessary. Continue with
+complete original equipment contracts rather than infer a universal formula.
diff --git a/docs/research-notes/loot-quality-research/selection-evidence.md b/docs/research-notes/loot-quality-research/selection-evidence.md
@@ -0,0 +1,72 @@
+# Loot quality selection: bounded evidence review
+
+2026-10-27. Read-only preparation for the P0 level-appropriate loot task.
+No production loot rule or endpoint family changed in this review.
+
+## Current implementation
+
+`server/npc_loot.go:rollCorpseLoot_locked` separates independent item membership
+rolls from the explicit quality retained in each NPCLoot row. Shared item-family
+interpolation already serves corpse pickup, requirements, equipment, pricing,
+missions and shops. The reviewed table has nine families. Monster Parts42640
+(QL1) /42641 (QL400) are not yet listed as an interpolation family. Both admitted
+Leet levels still select fixed QL1 parts. The code-restricted level4 training boss
+selects QL4 Metaplast gloves and the reviewed Rusty pistol, at provisional chances.
+Do not replace those selections with either endpoint's own QL.
+
+## Sources and limitations
+
+- Original shipped help `cd_image/text/help/How do I play this Game Alone.txt`
+ recommends armor near character QL and weapons at least near character QL.
+ This supports useful equipment progression, not a creature loot distribution.
+- Anarchy Arcanum, "Flesh Hood", last updated20 November2002:
+ https://www.paradisesgarage.com/arcanum/armor_fleshhood.html
+ Firsthand crafting guide describes regular Monster Parts at varying qualities
+ and a QL200 output cap. Its searchable text supports original variable-QL
+ parts, not a creature-level selection formula. Direct page fetch failed after
+ a search result supplied the content; retain that access limitation.
+- Firsthand player thread,24April-1May2023:
+ https://forums.funcom.com/t/seeking-info-on-finding-ql-item-to-the-correct-dyna-boss-level-range/227584
+ Accounts disagree: one infers +/-20% from many mantis samples and acknowledges
+ uncertainty for other mobs; another claims +/-10 levels for ordinary RK loot
+ and special restrictions on some boss-only items. Neither proves14.9.1 rules.
+ This is evidence against silently asserting one universal historical range.
+- That thread links original OT Hurler thread165009:
+ https://forums-archive.anarchy-online.com/showthread.php?165009-OT-Hurler=
+ The archive fetch failed. Search queries scoped to the archive found no indexed
+ period quality-range report. No rule can be recovered from that failure.
+- July2002 firsthand equipment discussion:
+ https://archives.jeuxonline.info/fils/106273.html
+ Players discuss intermediate QL120/125/140/160 equipment and skill-gated wear.
+ It corroborates intermediate equipment, not drop range or a universal level
+ requirement. Current family interpolation must keep authored skill checks.
+
+## Next concrete checks
+
+Audit both regular Monster Part payloads completely and verify their relationship
+before admitting the pair. Their empty effect sections should permit a narrow
+shared-family extension without new bespoke Go interpolation. Test native
+low/high/selected-QL delivery, control edits, corpse pickup, sale price, identity
+and cold recovery. Keep selecting a fixed profile QL separate from claiming a
+historical random distribution. Broader equipment family admission and a useful
+normal-play wear/purchase gate remain P0; the existing boss's earned glove has
+passed pickup/rejection/sale but still lacks ordinary qualified wear proof.
+
+## Endpoint audit result
+
+`tmp_audit_parts.py` reread original records1000020/42640 and42641 and matched
+all decoded fields and payload hashes against the checked catalog. Both have
+header51005/2/15/23, identical flags/carry capability, identical strings and no
+sections. The only differing stats are QL54 (1/400), icon79 (144704/144701) and
+value74 (100/10000). `monster-parts-audit.json` retains the index digest, complete
+records and source offsets; the two126-byte payload slices are retained beside
+it. This corroborates a compatible family candidate. Native low/high instance
+interpolation and value rounding remain required before production admission.
+
+A minimal candidate design for later implementation is to make each loot row's
+quality an explicit inclusive [low,high] interval, retaining [q,q] for fixed-QL
+items. It could use the existing roll source after a successful membership roll,
+validate the complete interval against a reviewed family, and retain the selected
+quality in the existing atomic outcome. This would keep distribution policy in
+species/level data rather than hardcode a universal NPC-level formula. This is
+an unimplemented design, not evidence of a historical uniform distribution.
diff --git a/docs/research-notes/mission-encounter-research/integration-audit.md b/docs/research-notes/mission-encounter-research/integration-audit.md
@@ -0,0 +1,274 @@
+# Private mission encounter integration audit
+
+Date: 2026-10-27. Read-only inspection of current Go, SQL, YAML, and existing
+test source. No production edits, REA, clients, servers, builds, or tests were
+run. This report separates present behavior from recommended integration.
+
+## Recommendation
+
+Populate the fixed private world with ordinary `character` NPCs and use the
+existing combat, threat, damage outcome, XP, corpse, and loot machinery. Stage
+their first creation alongside the existing first-entry objective transaction.
+Use their unique `playfield == acceptedMission.world` to scope retirement;
+there is no need for a separate mission combat or loot system.
+
+Two gaps need explicit treatment: mission retirement currently ignores NPCs and
+their lifecycle queues; NPC pursuit currently ignores mission geometry. Merely
+inserting NPCs into `server.characters` would leave both gaps.
+
+## Current construction and admission
+
+- `missions.go: acceptedMission` retains unique `world`, immutable `layout`,
+ `objective`, `completed`, and the original absolute deadline. `insertMission`
+ allocates world IDs from the persisted `last_playfield_id` counter, starting
+ above public 16-bit resources, in the same transaction as the key/assignment.
+- `mission_geometry.go: starterMissionLayout` is the two-room template-331
+ building: room0 at grid (1,3), rotation2; room37 at (1,1), rotation0.
+- `mission_entrance.go: prepareMissionWorld_locked` registers geometry only.
+ It is also called during validation and queries; it should not itself publish
+ NPCs or allocate their IDs.
+- `control.go: updateUser_locked` stages a zone transition. When entering a
+ private mission, it calls `stageMissionObjective_locked` on an `itemStore`,
+ then commits the store before `applyUser_locked` publishes the new player.
+ This is the smallest existing transaction boundary for first population.
+- `world_items.go: stageMissionObjective_locked` is idempotent through
+ `mission.objective != 0`; it derives an interior placement from a real portal,
+ projects onto the floor, and verifies room membership. It sets `updatedMission`
+ so initialization survives restart. If initial objective and encounter
+ population are staged together, this existing durable first-entry marker can
+ cover both; never repopulate by testing whether any living NPC remains.
+
+All encounter initialization must commit with its IDs before publishing live
+actors. A failed first-entry transaction must leave no live NPC, worker entry,
+counter increment, partial objective, or player relocation. A subsequent entry
+must retry exactly once. Current storage cannot stage new NPC actors without
+mutating live maps: `writeNPCs_locked` reads those maps, so a small explicit
+staged-NPC addition to `itemStore`/its transaction is needed. Do not temporarily
+insert live actors and undo them after SQL errors.
+
+## Existing NPC content and combat coverage
+
+`npcs.go: readNPCSpawns` expands `gamedata.NPCs` groups into ordinary actors with
+name, appearance, MonsterData, level, definition ID, optional `npcMotion`, and
+health derived from the admitted combat profile. `npcCombatProfile` requires:
+
+1. A real `gamedata.NPCGroups[definition]` with `inferred_species` status.
+2. Matching MonsterData.
+3. An exact level entry in `gamedata.NPCCombatProfiles[monster][level]`.
+4. A matching template code when the profile specifies one.
+
+Current `gamedata/npc_combat.yaml` contains only these admitted profiles:
+
+| Actor | Coverage | Existing behavior |
+| --- | --- | --- |
+| Leet, MonsterData17655 | Levels1 and2 | 100HP, 100XP, weapon120910/120911, initiative0, AggDef75, 1-5 credits, 50% QL1 Monster Parts42640, respawn100s, corpse180s |
+| Salamander boss BSML, MonsterData30354 | Level4 only | Boss-specific template-code gate, original weapon121063/121064, provisional equipment subset |
+
+The numeric health, XP, cash, probability, and lifecycle policy are expressly
+provisional in that YAML; the weapon/item endpoints are existing original data.
+Other visible NPC species or placeholder humans do not inherit combat simply
+from their appearance or level.
+
+For an immediately combat-capable level1 reconstruction, an existing LE01 Leet
+group is available, for example
+`950/district/2/group/0/authored_point` in `gamedata/zones/zone_950.yaml`, with
+appearance229, MonsterData17655, level1, and admitted species status. Reusing its
+actor/profile construction is technically possible. That outdoor group does
+not establish that Leets are the canonical Surveillance Office occupants.
+Mission encounter selection/placement must be labeled reconstruction policy
+until supported by mission content evidence. Arbitrary humanoid guard spawns
+would require new reviewed weapon/profile coverage, not a copied Leet profile.
+
+A shared constructor extracted from the existing spawn field assembly can
+accept an admitted group, level, private playfield, position, and allocated ID.
+It should not copy outdoor coordinates or preserve outdoor roaming behavior by
+accident. A stationary idle mission NPC still needs `npcMotion{home: position}`
+for shared combat pursuit/returning; `roaming=false` avoids wandering before
+engagement. Keep one content selection, not a new configurable generator.
+
+## Shared gameplay path
+
+- `combat.go: handleCombat`, `startAttack_locked`, `advanceCombat`, and
+ `finishDamageEffects_locked` provide attacks, death, threat, corpse packets,
+ and lifecycle scheduling. `npc_threat.go: selectNPCTarget_locked` handles
+ retaliation. No additional encounter damage or XP code is needed.
+- `npc_outcome.go: saveRangedHit_locked`, `saveDamageOutcome_locked`, and
+ `saveNanoOutcome_locked` stage authoritative outcomes. Death, generated loot,
+ item identity reservation, and `writeKillReward_locked` share their outcome
+ transaction. Publish through `rememberNPCOutcome_locked` only after commit.
+- `npc_loot.go: rollCorpseLoot_locked` uses the same admitted profile and
+ ordinary item instances. `loot.go: canLoot_locked` enforces known actor,
+ identical playfield, rights, expiry, and five-metre range; item transfer uses
+ the existing inventory transaction.
+- `finishDamageEffects_locked` schedules respawn for every admitted NPC whose
+ shared profile has nonzero `RespawnSeconds`. Both current Leet profiles
+ therefore respawn after100s, even in a mission. Decide the mission lifecycle
+ deliberately: canonical one-life mission encounters should be suppressed by
+ one shared actor/world lifecycle rule, consistently in persisted
+ `writeNPCOutcome_locked` and runtime death scheduling. Do not mutate a shared
+ global profile or implement separate damage/loot to avoid respawning.
+
+## Geometry-safe placement and movement
+
+Existing source tests give useful fixed-layout anchors, without running them:
+
+- `TestMissionScenePlacesTheNativeTwoRoomLayout`: global room anchors
+ `[14,0,20]` and `[20,0,40]`. Anchors are not themselves proof of clear floor.
+- `TestMissionSceneFindsWalkableCellsAndVerticalBounds`: `[15,1,16]` is in the
+ entrance room, `[15,1,35]` is in the chamber; empty/outside points are rejected.
+- `TestMissionWorldRegistersOriginalPortalLinksAtEveryRotation`: the north
+ layout's inter-room portal is near `[15,0,30]` with paired opposing faces.
+- `TestMissionSceneQueriesOriginalWallsAndFloor`: an entrance wall crosses
+ x17.601997 near z16; treating a room rectangle as entirely navigable is unsafe.
+
+The minimal placement policy can adapt the objective's portal-relative approach,
+using `missionScene.portal`, `roomRotate`, `scene.floor`, and `scene.roomAt`,
+while retaining distance from the entry arrival, objective, other actors, and
+doorway. Verify an actor-sized clearance with `scene.sphere` or shared
+`sceneGeometry.sphere`, not only room membership. The known chamber sample
+`[15,1,35]` is a candidate to validate, not a newly certified spawn coordinate.
+This audit did not execute geometry probes.
+
+`npc_pursuit.go: advanceNPCPursuit_locked` currently moves in a straight X/Z line
+and samples only `server.terrain[npc.playfield]`. Private mission worlds have no
+outdoor terrain; the position is then accepted without wall collision or floor
+projection. Idle movement in `roaming.go: advanceNPCs` has the same outdoor-only
+policy. Consequently fixed valid initial positions alone do not prevent NPCs
+chasing through walls, leaving room bounds, or crossing floors.
+
+The repository already dispatches private worlds through
+`sceneGeometry.line`, `sphere`, and `floor` (`mission_world.go`,
+`scene_geometry.go`), and has portal links plus room validation. Add the needed
+indoor motion checks in the shared NPC movement path, preserving outdoor
+behavior. `mission_movement.go: vetoPosition` and `player_collision.go` show the
+existing movement/room semantics, but invoking player force integration merely
+for NPC steering would need careful evaluation. A collision stop is smaller
+than a full navigation system, though it does not solve paths around corners.
+
+`combatInRange_locked` presently checks distance only; this source inspection
+did not establish a wall line-of-sight gate for shared weapon attacks. Do not
+claim that blocked pursuit alone prevents attacks through walls. Native mission
+eligibility/progress and canonical LOS are the parent's separate investigation.
+
+## Persistence, IDs, and startup
+
+- `world_store.go: npcState` already persists definition ID, character position,
+ motion/home, corpse rights/cash/deadline, presence, and hidden respawn deadline.
+ `writeNPCState_locked` writes character + NPC + contributors and reserves the
+ next NPC identity through `world.last_npc_id`.
+- `server.nextNPC` is the next free identity, unlike `nextItem`, which is the
+ last allocated item. Outdoor NPCs start at1000000. Allocate from the persisted
+ counter; never derive NPC identity from room number or reuse a killed ID.
+ Explicitly test exhaustion before adding new mission allocation logic.
+- `world_store.go: writeNPCs_locked` checkpoints observed NPC state on staggered
+ roughly20-second intervals, checkpoints zones when their last observer leaves,
+ and handles immediate corpse ownership/cash changes. Initial population and
+ retirement are significant changes and must bypass cadence.
+- `loadNPCs` restores living actors, corpses, mobile workers, and hidden respawn
+ sources from SQLite, reconstructing profiles through `npcCombatProfile`.
+ `state.go: newServer` loads NPCs before users/missions. `users.go: loadUsers`
+ loads mission records and excludes completed missions from player journals.
+ Keep a private world's geometry available before its first NPC tick, even
+ after restart with no currently connected occupant.
+
+## Retirement: missing behavior and minimal extension
+
+`mission_retirement.go: endMission_locked` already commits bound-key removal,
+world objective removal, inventory/trade cleanup, mission deletion, and all
+occupant evacuation through `itemStore` before publishing. With `completed=true`
+it only settles the assignment: the world record and geometry remain until the
+original deadline. `expireMissions_locked` later retires completed worlds too.
+Preserve that distinction.
+
+Currently this method does not remove private-world NPCs, corpses, or pending
+respawns. Adding NPCs without extending retirement would leave durable or live
+orphans after abandon/expiry. `item_database.go: persistItems_locked` calls
+`writeNPCs_locked` before it deletes the mission; that snapshot reads all live
+characters and pending respawn sources. Deleting rows alone would allow a later
+checkpoint to recreate them.
+
+Recommended transaction and publication order:
+
+1. When `store.removedMission != nil`, collect every NPC in its unique world,
+ including saved/hidden respawn sources; filter them out of the checkpoint
+ candidate map and resulting `savedNPCs`, independent of observed-zone cadence.
+2. Remove their corpse item placements and remaining items/contained items from
+ the staged item store. Preserve loot already transferred to a player, bank,
+ backpack, or another owner. `item_locations.corpse_id` references `npcs` with
+ no deletion cascade: placements must be deleted before NPC/character rows.
+ `items` also cannot be deleted while child placements still reference them.
+3. Delete the retired NPC character rows inside the same existing transaction
+ as mission deletion and evacuation. `npcs`, contributor rows, and
+ character-owned effect rows use foreign-key cleanup where defined; verify
+ all affected dependencies. Retire even a world with no online occupant.
+4. After commit, cancel combat/casts referring to removed NPCs, close any open
+ corpse UI, send actor50000/corpse51050 despawns to clients that knew them,
+ clear those `client.npcs` and `lootCorpse` handles, and remove actors from
+ `characters`, `fighting`, `mobileNPCs`, `npcRespawns`, and `corpseExpiry`.
+ Remove saved NPC cache entries as part of the committed snapshot. Reuse
+ `cancelCombat_locked`/`stopAttack_locked` semantics without mutating state
+ before commit. Then remove geometry and publish existing evacuation packets.
+5. Keep the entire retirement path disabled for ordinary completion settlement;
+ occupants, actors, corpses, and the original absolute expiry remain intact.
+
+`corpse_expiry.go: advanceCorpseExpiry` is useful for packet/handle cleanup but
+only removes live actors and leaves ordinary persistence to checkpoint.
+`respawn.go: advanceNPCRespawns` can create a new life from a hidden source.
+Neither alone supplies atomic mission retirement; both queues must be purged
+after the retirement transaction commits.
+
+## Visibility and boundaries
+
+`interest.go: updateNPCInterest_locked` requires exact playfield equality before
+creating an actor or corpse, with550m entry/600m retention. Private world IDs
+therefore isolate identical layouts/coordinates without a second instance flag.
+`combat_interest.go`, `queueCombat_locked`, `selectNPCTarget_locked`, and loot
+rights also check playfield or known NPC state. Keep those paths.
+
+Entrance credentials are transferable bound key instances: `missionDestination_locked`
+can admit another key holder to the same world. Encounter visibility should
+follow actual occupancy, not be hardcoded to the mission owner. Completion
+revokes keys but does not eject existing guests until the deadline. Two owners'
+assignments with identical layouts must never share actor IDs or corpse rights.
+
+## Focused recommended tests
+
+Use existing public handlers and entry transitions. Extend fixtures such as `newAcceptedMissionWorld`, existing mission
+retirement tests, NPC outcomes, and respawn durability rather than replicating
+their internals.
+
+1. First entry commits admitted level1 NPCs + objective + player world together;
+ leave/reenter, reconnect, and SQLite restart create no duplicates. Killing
+ all occupants does not cause first-entry repopulation.
+2. Inject initialization SQL failure and deferred commit failure: no counters,
+ live actors, corpse/worker queues, objective, or player position change;
+ retry succeeds exactly once with durable identities.
+3. Real shared melee/ranged/nano kill grants existing XP exactly once, produces
+ profile loot and credits, permits rightful pickup, and rejects replayed or
+ stale dead-actor attacks. Reload preserves damage/outcome/loot ownership.
+4. Two identical private worlds plus a public observer: only same-world actors,
+ attack/death/corpse packets and loot handles are visible or actionable. A
+ valid transferred-key guest sees the same actors; a foreign key does not.
+5. Placement and pursuit across the inter-room portal remain on valid floors;
+ walls, outside bounds, disconnected rooms/floors, return-home movement, and
+ target zone exit cannot move the NPC through geometry. Verify any intended
+ wall LOS rule separately for attacks/casts.
+6. Abandon and expiry remove living fighters, visible corpses, hidden expired
+ corpse respawn sources, active effects, open loot UIs, and unclaimed filled
+ containers. Preserve already looted items and unrelated public/world actors.
+7. Retirement with no observers and with an offline owner still deletes rows
+ immediately. Cold restart has no orphan actors, items, contributors, effects,
+ timers, or regenerated inhabitants in the retired identity.
+8. Inject retirement failures at item placement, character deletion, mission
+ deletion, and deferred commit: all NPC/player/item/queue state and outbound
+ packets remain unchanged; a retry completes atomic cleanup.
+9. Completing the mission retains the occupied world and its NPC/corpse state
+ until the original deadline; a subsequent assignment has independent actors.
+ Deadline cleanup still works after restart or after the owner departs.
+10. Test the selected mission respawn policy explicitly, including a deadline
+ concurrent with respawn/corpse expiry; retired worlds must never respawn.
+ `roamNPCs` currently advances mission expiry before those other workers.
+
+No runtime validation was performed for this report. Canonical NPC selection,
+native progress semantics, and original encounter/respawn policy remain evidence
+questions rather than established facts.
diff --git a/docs/research-notes/mission-encounter-research/token-eligibility.md b/docs/research-notes/mission-encounter-research/token-eligibility.md
@@ -0,0 +1,165 @@
+# 14.9.1 mission token and XP eligibility
+
+Bounded read-only research,2026-10-27. No production files, REA sessions, servers
+or clients changed. First read reward-rules.md, docs/mission-objectives.md and
+TODO.md. The earlier reward report's negative threshold/neutral-XP search is
+not treated as a fresh discovery here. New positive result: exact ORIGINAL
+mission/bravery token records establish data-driven redemption, including an
+otherwise easy-to-miss Clan level50 discrepancy.
+
+## Original token records: decisive new evidence
+
+Full extracted records, including original offset/hash/sections, are retained in
+original-token-records.json beside this report. Reproduction script is
+tmp_original_tokens.py. All are Record1000020 from the shipped14.9.1 catalog;
+there is no inferred endpoint family between these distinct token records.
+
+| ID | Name/type/QL | Original offset | SHA256 |
+| --- | --- | ---: | --- |
+|96349|Omni-Tek Mission Token,51005,QL1|519295356|acad17e69737b9eac586b3da90e86e64a05714988a9ddd0091698301f672a054|
+|96350|Clan Mission Token,51022,QL1|519296333|abb85d54302cb85c11f206ee8a2cc30ea723ebdfe18ac3b4b89e5e80ba366f1b|
+|152932|Omni-Tek Mission Token,51005,QL250|530330999|0b51cb98c9ea00f46ec888d473c7bdcc97efa32859f36d7386939dcf1296579a|
+|152933|Clan Mission Token,51022,QL250|530331496|8a28bdf23d248741480ab3aeea3fb206de45391b5912462a231b541430ea5a0d|
+|158421|Omni-Tek Bravery Token,51005,QL1|531561299|0ac40f98df6a3f2d1223f9e1b5904bc4480592a49229f37791dac096d8aee765|
+|158422|Clan Bravery Token,51022,QL1|531561930|d8b06c418b075baad9898094ddcbfcc276cf53c275e0515d9892deb8917bcfd1|
+
+Sources: server/gamedata/items/items_010.yaml,items_079.yaml,items_084.yaml.
+
+Both ordinary mission tokens have one type2/subtype0 Use section containing:
+- Base function53002 [side-token stat,1,1,0], no requirements.
+- Eight further function53002 increments of1 each, with stat54/player-level
+ operator2/strict greater-than predicates.
+- Function53044 displaying the resulting side-token stat.
+- Action3 has stat33/Side ==2 for Omni, ==1 for Clan.
+
+Omni predicates, in source order: >14,>49,>74,>99,>149,>174,>189,>124.
+Clan predicates: >14,>50,>74,>99,>149,>174,>124,>189.
+
+Therefore data-driven redemption yields the following, assuming the shared
+function53002 consumer performs its existing identified stat addition semantics:
+
+| Player level when USED | Omni increment | Clan increment |
+| --- | ---: | ---: |
+|1-14|1|1|
+|15-49|2|2|
+|50|3|2|
+|51-74|3|3|
+|75-99|4|4|
+|100-124|5|5|
+|125-149|6|6|
+|150-174|7|7|
+|175-189|8|8|
+|190+|9|9|
+
+Do not silently correct the Clan50 threshold to match modern guides. Preserve
+actual payload, or document and prove a native/server override before deviating.
+The predicate is on Use, so it tests CURRENT level at redemption, not mission
+acceptance/completion level. One physical Count1 mission-token item can add up to9
+to the character's side-token stat. Issuing9 physical tokens would be wrong.
+
+The QL250 variants instead have a single53002 increment25 without level gates.
+Their existence does NOT establish when an original mission grants them; do not
+substitute them for ordinary mission tokens merely because their names match.
+The bravery variants increment exactly1 at all levels, with the same side Use
+gate. They are distinct templates from ordinary mission rewards.
+
+Ordinary mission and bravery records have stat0=0x0c400801, including reviewed
+Unique0x08000000 and NoDrop0x04000000. QL250 variants have0x04400801, lacking that
+Unique bit. All have stat30=41, Count-related stat212=1 and stat294=1. Do not
+interpret these latter fields as a kill-eligibility formula.
+
+The side predicates conclusively deny REDEMPTION by neutrals/opposite side.
+They do not by themselves prove no token issuance to a neutral, nor no neutral
+mission XP. The nearest-source distinction remains essential.
+
+## New period corroboration, with limits
+
+[4Gamer,2002-03-22 report of13.92 released2002-03-20US](https://m2.4gamer.net/games/999/G999991/20020322172104/)
+reports Mission Token and Bravery Token becoming Unique and says existing held
+tokens must be uploaded before new ones can be obtained. This is contemporary
+journalistic patch reporting, corroborated independently by original item flags;
+it is not a recovered English Funcom release text or observed server capture.
+The Japanese phrasing about holding both kinds is ambiguous. Do not infer a
+shared cross-template uniqueness group from that translation. Existing-token
+blockage also does NOT establish whether XP is denied when physical issuance
+fails. The article was indexed with full content; direct document-host fetch
+failed, mobile-host search result supplied the same dated text.
+
+[GAME Watch,2002-02-13 firsthand beginner report](https://game.watch.impress.co.jp/docs/20020213/yuki14_2.htm)
+section15 describes obtaining tokens while completing missions and using them
+with sided boards. Sections13-14 separately distinguish return-item and find-item
+completion. It does not recover kill count, formula, neutral XP or backyard
+exceptions. The footer says2001 while path/copyright are2002; retain that dating
+ambiguity rather than calling it a precise14.9 capture.
+
+[2008 AO-Universe firsthand discussion](https://www.ao-universe.com/forum/viewtopic.php?t=2374)
+contains a player's report of receiving a token at about54% and failing at90%,
+and another report that grey mobs do not add chance. Useful confirmation of
+stochastic partial progress, but5years after target and no exact server formula.
+No numeric probability formula should be reverse-derived from these anecdotes.
+
+## Local Fandom SQLite audit
+
+Read-only database: local/research/anarchyonline.db.
+FTS title results retained in fandom-query-results.json; source text snapshots
+are fandom-Missions.txt, fandom-Token_and_Tokenboards.txt,
+fandom-Engineer_Guide.txt and fandom-Neutrals.txt. Script tmp_token_sources.py
+queries exact token+threshold/grey/neutral/five/six/backyard terms. The database
+has touched timestamps, not demonstrated original publication/version history;
+these pages mix later expansion content.
+
+- Missions and Token and Tokenboards describe a variable minimum threshold;
+ neither supplies the arithmetic. One page's level/25 shortcut conflicts with
+ its own other page's bracket table and the original raw tokens above.
+- Engineer Guide relates XP reward chance to killed percentage, but mentions
+ later16.3 content. It is not proof of target neutral/Unique interactions.
+- Neutrals describes absent token-board benefits and later expansions; no
+ original ordinary mission XP exception recovered.
+- No exact fixed5/6 threshold or special backyard exemption was recovered.
+
+The already-known2007[hahnsoo firsthand guide](https://gamefaqs.gamespot.com/pc/913777-anarchy-online/faqs/46197)
+is still the explicit source for approximately5or6 kills before feedback,
+grey kills counting in the denominator but not numerator, and security/trap
+extras counting only in the numerator. Its approximate threshold and later date
+do not justify hardcoding5or6 as14.9.1 rules. Rechecking the local mirror did not
+upgrade that evidence.
+
+## Eligibility answers and concrete implementation boundary
+
+| Question | Current defensible answer |
+| --- | --- |
+|Minimum normal enemy count or kill threshold?|Unrecovered. Variable-threshold later text, approximate5/6 later guide. No original exact predicate.|
+|Grey kills?|Later first-person sources agree they do not add token progress; original numeric grey cutoff and denominator policy still unproved.|
+|Kill fraction -> chance?|Original14.0 notes establish increases with kills; period2002 review gives illustrative killed/total proportional examples. Exact minimum, rounding, denominator/extras and chance draw unrecovered.|
+|Neutral exception?|Original tokens require matching side on Use. Later guides say neutrals receive no tokens. Target mission XP condition when neutral remains unknown.|
+|Backyard/training exception?|No supported special token/XP rule. Original shipped tip proves one training mission at a time only.|
+|XP versus token?|Original native details condition displayed XP on token receipt. No recovered predicate proves XP suppression for Unique blockage/neutral, exact shared draw, modifiers/cap or grant ordering.|
+|Token templates/count?|Exact original ordinary96349/96350, plus distinct bravery/special variants above. Count1 physical item; redemption amount is descriptor-driven at current Use level.|
+
+Concrete work supported now:
+1. Preserve token redemption as shared item Use functions/predicates, not a
+ handcoded level table. Add target-side stat75/62 persistence and original
+ one-use lifecycle only once their native server consumers are covered.
+2. Separate physical token issuance, redemption, conditional mission XP and
+ guaranteed cash/equipment. Do not collapse reward eligibility into inventory
+ capacity or possession of a neck board.
+3. Add original-template private mission enemies through shared NPC combat,
+ ordinary per-kill XP and corpse loot independently of unresolved completion
+ XP/token arithmetic. Persist actual encounter/death outcomes so a later
+ recovered eligibility rule can consume them. A fixed authored encounter
+ does not require inventing a probability formula now.
+4. Keep the final XP/token P0 unresolved. Do not make a tiny prototype's single
+ enemy count as100% solely because it is the only enemy, and do not treat the
+ original zero denominator as guaranteed eligibility. None of the new sources
+ justifies unconditional100XP or a new training-mission exemption.
+
+## Bounded search ledger and remaining gaps
+
+New searches targeted2001-2004 original/firsthand reports, mission/bravery Unique
+patch history, exact5/6/minimum wording, grey kills and neutral mission XP.
+Search often returned later wiki/2007guide duplicates; these were not counted as
+new independent witnesses. No historical server packet capture, numeric minimum
+or chance formula, original neutral XP exception or training exemption was found.
+This is a bounded negative result, not proof of absence. No REA session used;
+parent retains native-session ownership and can trace original feedback/quest
+fields separately. No executable-code evidence is claimed by this report.
diff --git a/docs/research-notes/mission-item-reward-research/client-crash-audit.md b/docs/research-notes/mission-item-reward-research/client-crash-audit.md
@@ -0,0 +1,182 @@
+# Mission terminal bitmap clear crash: bounded source audit
+
+Date: 2026-10-27. Scope: maintained C, runtime support source, and retained
+`runtime/errors.json` only. No binary inspection, REA sessions, browser actions,
+builds, test processes, or production source changes were performed by this
+worker. The parent investigator owns served-binary identity verification and
+original-instruction comparison. Addresses below refer to maintained C comments;
+they are not independent claims about freshly inspected original machine code.
+
+## Leading finding
+
+The maintained 16-bit bitmap fill path has a concrete zero-count REP translation
+bug that can abort at exactly one-past the backing allocation. This is a strong,
+testable explanation for the page-aligned unmapped address `0x63880000` and the
+intermittent terminal-opening behavior. Attribution of this particular captured
+crash still requires the fault-time bitmap fields or a targeted reproduction.
+
+In `client/game/bbr.dll/lifted-0040.c`, `sub_250AF340` fills a bitmap rectangle.
+Its 16-bit path writes pairs with `rep stosd` at `0x250AF4FF`, then an optional
+remaining pixel with `rep stosw` at `0x250AF503`. After an even-width row, the
+second repeat count is zero. Nevertheless, generated C evaluates
+`ADDR(edi)` before calling `MEMSET16(..., count=0)`. If the final row ends at an
+unmapped page, `guest_address` aborts while translating that one-past address.
+No pixel write is required for the failure.
+
+`client/runtime/guest_memory.h` explicitly checks the page mapping in portable
+non-Linux-64-bit builds, including WASM. `MEMSET16` in
+`client/runtime/recomp_types.h` correctly performs zero writes for count zero,
+but that check happens after its pointer argument has already been translated.
+The x86 zero-count REP contract requires that the operation access no memory.
+
+The key maintained C sequence is:
+
+1. `0x250AF4FB`: shift width right by one, retaining odd/even in carry.
+2. `0x250AF4FF`: write `width / 2` doublewords; EDI advances to row end for an
+ even width.
+3. `0x250AF501`: recover the remaining-pixel count using carry, giving zero for
+ even width.
+4. `0x250AF503`: unconditionally translate EDI for a zero-count `MEMSET16`.
+
+Heap placement can make this intermittent: `client/runtime/guest_heap.c`
+suballocates and reuses ranges in mapped arenas, so a one-past bitmap address may
+sometimes remain mapped and sometimes coincide with an unmapped arena boundary.
+This is an explanatory inference, not captured allocator-state evidence.
+
+## Calling path and initialization
+
+The retained crash stack identifies `sub_250AF340`, called by
+`sub_2B085270`, then `sub_2B086BC0`, during the generic command UI path. The
+captured unmapped address is `0x63880000`.
+
+`client/game/ddr.dll/lifted-0034.c`, `sub_2B085270`, initializes the mission UI.
+It sets intended dimensions to 480 by 480 at `0x2B085320` and `0x2B08532E`,
+constructs an image via IAT `0x2B0B5BD8` at `0x2B085366`, stores the image at
+UI offset `0x84`, obtains the image's bitmap at offset `0x28`, then calls IAT
+`0x2B0B564C` at `0x2B085385` with `(rect=NULL, color=0, flag=1)`. The retained
+stack resolves that call to `sub_250AF340`.
+
+This clear happens before the remaining mission window widgets are constructed.
+The source does not establish a reward-item ownership or armor equip error.
+Those preceding actions might change heap placement, but causation is unknown.
+The image constructor's actual bitmap dimensions/format were not established
+by this worker; the 480 by 480 intended UI dimensions do not prove the backing
+bitmap's dimensions.
+
+`client/game/ddr.dll/lifted-0035.c`, `sub_2B086BC0`, allocates a new 0x140-byte
+mission UI and invokes `sub_2B085270` at `0x2B086C7E`. The completed UI pointer
+`0x2B0EF0DC` is assigned only after the constructor returns. The constructor
+also publishes its in-progress object at `0x2B0EF0D4` before the failing clear,
+which makes the latter useful for a postmortem probe.
+
+## Exact confirmation probe
+
+Without resuming the aborted client, read:
+
+```
+ui = MEM32(0x2B0EF0D4)
+image = MEM32(ui + 0x84)
+bitmap = MEM32(image + 0x28)
+pixels = MEM32(bitmap + 0x00)
+height = MEM32(bitmap + 0x08)
+width = MEM32(bitmap + 0x0C)
+pitch = MEM32(bitmap + 0x20)
+bpp = MEM32(bitmap + 0x24)
+mode = MEM32(bitmap + 0x2C)
+format = MEM32(bitmap + 0x30)
+```
+
+The leading diagnosis predicts `bpp == 2`, an even width, and the final row's
+one-past endpoint equal to `0x63880000`. For a tightly packed full-surface fill,
+that endpoint is `pixels + height * pitch`. Confirm the page containing the
+last valid pixel is mapped and the endpoint's page is not. A still-readable
+fault frame can additionally establish that the active source operation is
+`0x250AF503` and its repeat count is zero. A 32-bit bitmap would falsify this
+specific trailing-halfword explanation.
+
+## Minimal fix and readable rewrite candidate
+
+The smallest correct repair is to guard the zero-count REP operation before
+evaluating `ADDR`, preserving register, stack, and flag semantics. Changing
+`MEMSET16` alone cannot fix argument evaluation. Mapping an extra page or
+clamping dimensions would hide the defect.
+
+If a readable rewrite is preferred, replace only `sub_250AF340` with a bitmap
+fill that retains its public guest ABI, existing rectangle clipping helper
+`sub_250B02D0`, existing color conversion `sub_250D84E0`, and 16-bit mode-2 flag
+behavior. Compute each row from the byte pitch; write exactly the requested
+number of 2-, 3-, or 4-byte pixels. Translate addresses only for actual writes.
+Keep the wrapper's callee-saved registers and stack cleanup. An unrelated
+mission constructor rewrite is not justified by the current evidence.
+
+## Other bounded source observations
+
+`sub_250AF340` receives a NULL rectangle for this call. It therefore derives
+the full rectangle directly from bitmap width/height, without the clipping
+helper used for explicit rectangles. It trusts valid surface fields.
+
+`sub_250AF260`, in the same BBR source file, initializes a bitmap with width at
+`+0x0C`, height at `+0x08`, bpp at `+0x24`, pitch at `+0x20`, and raw pixels at
+`+0x00`. It computes `pitch = width * bpp` and allocates `height * pitch` with
+32-bit arithmetic. Normal small UI sizes do not suggest integer overflow;
+corrupt surface fields or allocation state remain unexcluded until probed.
+
+The 24-bit fill branch also contains suspicious row-padding arithmetic:
+`0x250AF465` computes `pitch * (pitch / bpp - rect_width)`, which is then added
+after each row at `0x250AF492`. Expected byte padding for an ordinary packed
+24-bit layout is `pitch - 3 * rect_width`. This is a separate source-observed
+problem for partial-width or padded 24-bit fills. It is not established as the
+terminal crash cause and should not be used as proof of this crash.
+
+## Targeted verification
+
+Use the public bitmap fill entry point rather than a private helper:
+
+- Two-byte pixels, even width, allocation ending exactly at a mapped page
+ boundary with the next page unmapped: full clear must complete, set the last
+ pixel, and preserve guards. This should fail before the zero-count repair.
+- Two-byte pixels, odd width: verify the final halfword is written correctly.
+- Four-byte and three-byte formats: verify exact color bytes and row pitch.
+- An explicit clipped rectangle, including a nonzero origin, preserves pixels
+ outside the rectangle and row padding; an empty/outside rectangle writes none.
+- Two-byte format mode 2 with the auxiliary flag both zero and one preserves
+ the documented source behavior for bit 0x8000.
+- Guest ABI checks cover callee-saved registers and return-stack position.
+
+A Linux x86-64 native fixture alone may not catch the zero-count translation:
+its guest-address helper uses a reserved address range and does not consult the
+portable page table. Exercise the portable page-table implementation or WASM.
+Then repeat real mission terminal opening/closing around hand-in and armor
+equip/unequip in the WASM client, capturing complete errors and served build
+identity. The older TODO P0 incident is plausibly the same defect, but identical
+stack or reproduction evidence is still needed before equating them.
+
+## Remaining unknowns
+
+- Fault-time bitmap fields and exact failing source operation.
+- Served compressed WASM identity relative to the current symbols/source.
+- Original-machine-code confirmation of the relevant repeat instruction and
+ constructor call (owned by the parent REA investigation).
+- Whether the earlier `local/mission-retirement/event-crash-*` incident has the
+ same stack or merely the same UI trigger.
+
+No tests were run by this read-only worker. No repair is claimed.
+
+## Parent verification and repair
+
+The maintained BBR image SHA256 is
+79978fd5184b809c8df7f843dafbdcb899557037dc17372c2903a570b8eba7d3.
+Focused native disassembly confirms SHR ECX,1 at250af4fb, REP STOSD at250af4ff,
+ADC ECX,ECX at250af501 and REP STOSW at250af503. Exact native bytes are retained
+in bbr-clear-native.txt. REA's original DDR constructor independently confirms
+its initial480x480 render-window allocation and immediate Clear call before
+native terminal widgets are created (ddr-evidence.json).
+
+The new public bitmap-clear fixture ends a480x48016-bit bitmap at unmapped
+page50080000. Unchanged C aborts at exactly that address in both the paged
+native build and WASM; the normal Linux64 mapping happens not to validate a
+zero-count pointer translation. A guard around the zero-count trailing STOSW
+passes all11 fixture cases in both native memory modes and WASM, including
+width1/2/3/480, padding, empty dimensions, alpha and preserved ABI. This proves
+the defect and correction without inventing fault-time fields for the earlier
+browser capture. bitmap-regression.json retains the exact results.
diff --git a/docs/research-notes/nano-cost-research/catalog/README.md b/docs/research-notes/nano-cost-research/catalog/README.md
@@ -0,0 +1,141 @@
+# Authored nano cost modifier 318 catalog
+
+Read-only REA step 6 catalog question, 2026-10-25. No binary session, proprietary
+export, client, server process, database mutation or tracked edit. This inspects
+the complete generated item YAML population and reparses selected decoded game
+resources with the existing decoder. Original payload identity and all complete
+record fields are verified, rather than selecting spells by names alone.
+
+## Recommended complete milestone
+
+Adding signed modifier 318 to the existing ordinary stat-buff contract admits
+**nine complete programs and nine ordinary single-program crystals**, taking
+ordinary admission from448 to457. Every new program has one unconditional
+OnUse Skill53012(target3, stat318, signed reduction, opaque zero third word),
+flags10000, Can0, strain148, one attack-weight dictionary and getter[[12,0]].
+The authored actions are three strict skill thresholds AND visual profession;
+crystal and program criteria match exactly. There are no level, recipient,
+conditional or periodic companions in these nine complete contracts.
+
+| Program | Ordinary crystal | Name | Profession | Modifier |
+| --- | --- | --- | --- | --- |
+| 29307 | 29404 | Neuron-Notum Interface | 12 | -19 |
+| 95408 | 95426 | Notum Attunement | 12 | -12 |
+| 95409 | 95425 | Mocham's Neural Interface-Web | 12 | -24 |
+| 95410 | 95418 | Ease of Execution | 12 | -7 |
+| 95411 | 95428 | Coherent Notum Web | 12 | -15 |
+| 95413 | 95419 | Jobe Nano Libraries | 11 | -22 |
+| 95414 | 95420 | On-The-Fly Compression | 11 | -13 |
+| 95416 | 95421 | Run-Time Recompiler | 11 | -9 |
+| 95417 | 95424 | Izgimmer's Obfuscated Recompiler | 11 | -28 |
+
+`nano-cost-nanos.json` is deterministic and compatible with combatNanoFixture:
+all casting metadata, exact ordered modifiers, profession, target, raw cost,
+nominal default-modifier debit, actions, crystal_actions, weights and getter.
+It additionally retains complete effect framing/raw stats for both program and
+single crystal. Its SHA-256 is
+`d6e2bddd2148b07c3531e2266dd8e50c7a63483128891ce1841c5e55ed21c1c9`.
+
+Ease of Execution is the lowest ordinary nano at QL24, NCU8, MM>117, BM>117,
+PM>99 and visual profession12. This is a useful manual fixture, while admitting
+all nine by the generic complete predicate avoids an arbitrary named subset.
+All nine use the same strain, so ordinary authored replacement rules already
+supply the correct stacking boundary. MP/NT lines must not stack independently.
+
+## Complete discovery boundary
+
+The YAML census is83,245 physical item records and4,366 nano records. Searching
+all functions whose first integer argument is318 finds937 records/functions:
+79Skill53012 and858Modify53045. No different function ID with that first integer
+was present. Every318 effect is one-shot with no criteria; companion functions
+and events still decide complete-contract admission. The937 records comprise:
+
+- 49 nanos; nine qualify after318, forty remain rejected.
+- 816 implant definitions.
+- 58 definitions with equipment type1/2, including weapon headers.
+- 14 other physical records (twelve authored cluster records and two turrets).
+
+All49 nano programs have an ordinary single-program uploader, plus three bulk
+TESTITEM uploaders covering different subsets:52 uploader records in total.
+The two bulk items containing the nine ordinary buffs do not qualify as ordinary
+single-crystal uploads. The initial broad summary count11 referred to those nine
+single crystals plus two bulk uploader records; `summary.json` now labels these
+counts separately.
+
+`records.json` preserves full records and profiles for all937 producers;
+`nano-profiles.json` and `equipment-profiles.json` retain every effect selector,
+condition, tick, function/argument/header, flags, Can, slot mask and criterion.
+`crystals.json` retains all52 complete uploader records and their learned lists.
+No member of a rejected mixed contract is silently treated as a supported buff.
+
+The forty excluded nanos are33 False/Assume/Mimic Profession effects,
+five companion381 programs (CrunchCom95407/95412/95415 and Nano Cloud
+Supplement95442/Notum Overload95443), Notum Rejection29308 (hostile metadata
+and defense), and Notum Detonation205594 (mixed damage/ticking contract).
+Their exact rejection reasons and all complete companions remain in the profiles.
+Adding318 alone must leave these rejected. This catalog supplies no evidence for
+extending381, profession changes, hostile cost debuffs or periodic damage.
+
+## Existing equipment producers and future implants
+
+The stat-equipment predicate already admits arbitrary unconditional OnWear
+53012/53045 stat modifiers. Consequently318 does not require new stat-equipment
+admission. There are30 such predicate-admitted definitions among the cost
+records, of which28 actually carry318 in OnWear event14:12 positive,7 negative
+and9 authored zero. The remaining two turrets have only event26; an ordinary
+OnWear accumulator must not count those effects merely because the record has318.
+All complete records and companions remain available for review; the existing
+predicate is broader than a proof that every non-OnWear event is implemented.
+
+Useful ordinary samples (complete `equipment-<id>.json` records are retained):
+
+| Item | QL | Slot | Modifier | Authored equip criteria |
+| --- | --- | --- | --- | --- |
+| 85480 Worn Very Light Tank Armor | 1 | 19/back | +15 | STA>13 AND STR>13 |
+| 85482 Worn Medium Tank Armor | 1 | 19/back | +45 | STA>13 AND STR>13 |
+| 95512 CPU Upgrade | 40 | 13/deck5 | -1 | ComputerLiteracy>120 |
+| 95513 Hardcore CPU Upgrade | 200 | 13/deck5 | -15 | ComputerLiteracy>600 |
+| 156693 Enhanced NCU Chip with Recompiling Core | 50 | any deck1..6 | -1, NCU+16 | ComputerLiteracy>121 |
+
+Tank modifiers are subject to the existing per-item armor OE selection for318;
+CPU effects are device modifiers. Tank templates also carry ordinary AC/evade/
+RunSpeed effects and presentation. Keep these companions, interpolation and
+signs intact. Native deck occupancy/belt requirements still apply.
+
+Ten current right-hand weapon predicate-admitted definitions have OnWear318
+(eight MP staves and two chalices), listed in `summary.json`. Three offhand-only
+shields do not fit the currently implemented weapon slot. The broad weapon
+predicate's current admission is not evidence that every summoned-item or
+triggered companion effect is implemented; this audit records those complete
+contracts rather than newly broadening weapon scope.
+
+Signed318 added to the strict implant modifier set would admit752 of816 cost
+implant definitions. The other64 still need modifier277(32) or381(32).
+There are204 variants at each QL1/200/201/300, across ear/left-arm/waist masks.
+Authored318 values include positive2/3/5 and negative1/2/3/5; do not normalize
+low-QL signs based on item names. This is a large separate catalog/lifecycle
+milestone; no implant admission change is required for the nine-nano cost work.
+
+## Reproducibility and limitations
+
+`tmp_audit.py` performs the YAML inventory, explicit before/after predicates,
+uploader matching and original resource reparse. `tmp_fixtures.py` creates the
+compact nine-program fixture and equipment samples. `tmp_other_producers.py`
+checks all first-argument318 function IDs; `tmp_finalize.py` adds trigger/weapon
+bounds, source revision and resource carrier identity.
+
+All937 producers and52 uploaders (989 complete records) were reparsed from
+original resource bytes. Every decoder-emitted field, payload SHA-256 and index
+offset matched YAML. `verification.json` retains those identities;
+`catalog-sources.json` hashes every generated YAML file. `resource-carrier.json`
+records ResourceDatabase.dat SHA-256
+`ad8afec23058db02af75b9f5d614ef6ebe3e93cc817bd626955f18a372e13741`.
+`source-hashes.txt` binds decoders and current source snapshots; the independent
+committed baseline is preserved separately in `baseline-predicate.json` and
+`baseline-nano_buffs.go.txt`, since implementation was ongoing in parallel.
+
+The predicate mirror's baseline448 matches the existing admitted ordinary census;
+its only proposed numeric expansion is signed318. This audit is catalog/static
+evidence, not a claim about native arithmetic, live packet ordering, server
+pricing caps, equipment lifecycle or runtime casting. Those require the separate
+consumer evidence and automated/native checks.
diff --git a/docs/research-notes/nano-cost-research/native/README.md b/docs/research-notes/nano-cost-research/native/README.md
@@ -0,0 +1,133 @@
+# Nano cost stat318: native arithmetic and cap boundary
+
+Read-only independent REA step6 audit. No native binary access, new session,
+new proprietary export, client process, DB change or tracked edit. Original
+14.9.1 KKR SHA-256 is
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+`sources.json` preserves source/extract hashes and exact original Evidence IDs
+for three original cost bodies, seven original getter/modifier assembly bodies
+and fourteen complete maintained C bodies. Original addresses use10000000;
+maintained C uses36000000. Additional prior reports are identified by hashes.
+
+## Concrete results
+
+**Default and aggregation.** Initializer10072760 loads ESI=100 at10072b27,
+leaves it unchanged along the retained sequence, and stores it into default
+stat array+4f8 (=318*4) at10072ebe. This establishes client default100,
+subject to later authoritative base-stat loading. Eligibility/refund read
+mode0 effective318, through1006dfb0 ->10075ca0.10075ca0 adds the result of
+10074a30 to10075c60.10075c60 reads base mode2 plus generic ability trickle.
+The ordinary resource-weight loader100ecff0 iterates only stat100..168 and
+inserts those six-weight resources through100ed060.100ec8e0 returns zero for
+an absent stat row. Thus the ordinary loaded stat318 has no ability trickle.
+The percentage-penalty special case in10074a30 also applies only to
+abilities16..21 or trained skills100..168, excluding318.
+
+The modifier map adds signed contributions at100747b4 and subtracts the same
+contributions at10074b47. The effective getter adds that signed sum to the
+base value. Nothing in these selected arithmetic bodies multiplies separate
+318 reductions together, floors318, or applies a breed-specific reduction
+limit. For the ordinary supported state, the result is:
+
+```
+effective318 = base318(default100) + equipment318 + activeNano318
+```
+
+The resource loader boundary is explicit: this does not prove no unrelated
+custom/text registration can ever insert a weight row outside100..168.
+No such registration is needed by the ordinary selected game contracts.
+Exact original getter/modifier assembly evidence includes
+`ev_74652ec491811d2dbb9348174f59fabc0739128af4fc0567877aee64d3b28a0e`,
+`ev_c27bbca88da1a49ac67c28b427c73045affc7be7b57c2cf2814043387c7a4714`,
+`ev_2c98108acd73789969ea7727ff8f5f7bca6eb7e99423b9db494fb68749b32a07`,
+`ev_c3dc476ddb84eedb69e4e81bbbd80a7c5bf28e3aca92e4d8e2e0386d6813ad6f`,
+`ev_b2a9656c468675646d49b31ff6317ecdfd16fc3991e0dc6484322a01038bea1c`,
+`ev_8fbad422c0792a1be57aad44cb4daaa490d05eaa8c77c68e55c15f94fe2215fc`.
+
+**Cost eligibility.**10064839..1006488d does, in this exact order:
+
+1. Read effective318 in mode0 as a signed int32.
+2. FILD it, then FSTP a float32 local at10064859.
+3.10098bd0 reads the nano's raw stat407 in mode2; FILD that signed int32.
+4. Multiply by the stored float32 modifier, then float32 .01 at10170894.
+5. Call imported MSVCRT `_ftol`, using EAX low32.
+6. Read current nano214 in mode2 and accept when signed `current >= cost`
+ at1006488b..8d. Equality succeeds. This path compares; it does not debit.
+
+The original .01 bytes are `0ad7233c`, value0.009999999776482582. There is
+no float32 product spill before `_ftol`; replacing the expression with integer
+division100 or rounding the result to nearest changes boundary behavior.
+The modifier float32 conversion precedes multiplication; an unsigned integer
+product computed before conversion is not the recovered expression.
+
+Cost100646a0, refund10066b20 and raw-cost getter10098bd0 share retained
+Evidence `ev_b222a29a2449ed800e75228fac8a9ad597f8c73dce740b461b7fae780389796b`.
+Maintained instruction transcripts confirm signed FILD, explicit float32
+modifier stores and signed comparison. Original `_ftol` import/thunk identity
+was previously verified; the actual Microsoft runtime payload was not shipped
+or executed. The maintained runtime conversion truncates toward zero.
+
+**No minimum or reduction cap appears in this client chain.** A positive
+authored cost can truncate to zero, and negative effective318 can produce a
+negative signed computed cost. Both the getter and the eligibility expression
+preserve these values. No max(1,cost), max(0,318), minimum318=45/50/55, breed
+lookup or positive percentage cap is present in these complete selected paths.
+The bounded conclusion is that **this 14.9.1 native eligibility/refund chain
+does not enforce the commonly discussed later breed cost caps**. It does not
+establish that the original server had no separate cap or validation.
+
+Under the selected53-bit/binary64 expression model, small examples are:
+
+| Raw407 | Effective318 | Truncated cost |
+| --- | --- | --- |
+|10|100|9|
+|10|90|8|
+|10|20|1|
+|10|10|0|
+|10|0|0|
+|10|-10|0|
+|10|-20|-1|
+|100|50|49|
+|100|45|44|
+|100|55|54|
+|100|110|109|
+
+`arithmetic-examples.json` records products and the reproducible host model.
+These are calculations of inspected instructions, not execution of the
+original DLL. Clientr startup405800 explicitly selects precision53 through
+`_controlfp(0x10000,0x30000)`; later original gameplay-thread/driver precision
+remains unobserved. The selected maintained runtime uses double registers.
+At precision24, intermediate multiplication may round a boundary differently.
+The existing runtime/precision uncertainty should remain documented rather
+than silently importing a newer game's integer or cap formula. Arbitrary
+int32 overflow and `_ftol` out-of-range behavior are outside supported values.
+
+**Refund is recalculated, not a recovered reservation token.** Action117
+dispatches10066b20 only when its supplied interrupter resolves as SimpleChar
+and its nano resource exists.10066b72..10066baa recomputes the same cost using
+the **current** effective318 and raw407. It adds that amount to current214 at
+10066bcf and invokes the ordinary214 setter at10066bdd. There is no saved
+admission cost read in this helper, and no max-nano clamp here. The ordinary
+214 setter1006e030 floors a negative resulting214 at0; it does not generally
+cap it to maximum221. Therefore a buff expiring during a cast can change this
+native action117 refund calculation. Server reservations/refunds are a separate
+authoritative reconstruction policy; do not infer exact original debit/refund
+timing from the client helper or send117 plus a duplicate resource correction.
+
+## Implementation consequences and unresolved questions
+
+Use signed additive318 and the explicit float32 modifier/constant operation
+order for the selected client-facing cost calculation. No native evidence
+here supports introducing modern breed caps or a minimum one-point cost.
+If the server floors final debit at0 to preserve its nonnegative resource
+domain, label that as server policy: the inspected native expression itself
+has no such floor. A negative318 must not accidentally become a huge uint32
+cost through an early cast. Preserve an admitted reservation once chosen;
+this audit does not require reproducing the potentially changed117 calculation
+for an authoritative refund that is already published through resource stats.
+
+Original-server-only caps, original charge distribution/timing, negative-cost
+validation, and original reservation/refund policy remain unresolved. The
+available client is sufficient to establish its eligibility arithmetic and
+absence of a cap in that chain, not the behavior of unavailable server code.
+No online claims from later AO versions were used.
diff --git a/docs/research-notes/nano-death-research/wire.md b/docs/research-notes/nano-death-research/wire.md
@@ -0,0 +1,111 @@
+# Native death, resurrection and active nano state
+
+Target: original `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Read-only Ghidra 12.1.2 static analysis. No original server or runtime was
+observed. Existing admission snapshot was imported, then relevant new native
+queries were made. Production source was not edited.
+
+## Findings
+
+1. **Death presentation does not remove active nanos.** CharacterAction handler
+ `1006fa30` action 99 goes to `10070327`: it sets actor flag 0x10, assigns
+ death animation stat387 from B.instance, and calls visual method10071460(1).
+ Action153 goes to `1007035b`, calling10072340 with B.instance as death
+ reason. That method prints the local-character death/reclaim text and sets
+ HP27 to zero. Its stat setter1006e030 does not clear active nano state.
+ Neither action has a program-flag-dependent active-buff purge.
+
+2. **The death visual clears the casting queue, not active effects.** Death
+ state constructor10085d60 first stops the weapon holder if necessary, sets
+ death animation/sound/UI state, then calls10066ea0. This last method walks
+ nano-controller+0x18 (its casting queue), cancels timers via10065420, erases
+ queue nodes and clears actor casting flag0x80. The persistent active nano
+ list is controller+0x14 and is not traversed or erased here. Confusing these
+ adjacent lists would incorrectly suggest an automatic buff purge.
+
+3. **Explicit action65 remains the established active-effect removal.** Its
+ dispatch invokes10064ee0(B,0,1,0). The latter checks active membership for
+ (53019,B.instance) before subtracting NCU180, removing the local icon, and
+ invoking10065b90 to remove effects and the active record. Repeating the same
+ 65 cannot subtract NCU/modifiers a second time. Direct caller inventory of
+ 10064ee0 is only10066010(add/replacement) and1006fa30(action dispatch);
+ 10065b90 has only caller10064ee0. This is bounded resolved-static-call
+ coverage; unknown indirect callers are not thereby proven absent.
+
+4. **ResurrectIIR does not replace that removal.** Its constructor10080dc0
+ installs vtable101718d0. The activation pointer is10080e20. Exact original
+ bytes and objdump show activation assigning its two serialized DWORDs to
+ HP27 and nano214, then calling10053230. That method handles local reclaim,
+ resurrection shock247 at level>15, UI, visibility and movement state. Its
+ reclaim1005fa40 examines inventory slots48+, not nano records. No active
+ buff list clear or death-persistence mask appears in these inspected paths.
+ Ghidra did not define10080e20 or10080e90 as procedures; preserve that
+ limitation rather than treating generated C as native decompiler evidence.
+ `resurrect-activation.objdump.txt` independently decodes the original bytes.
+
+5. **Drain pending weapon outcomes before authoritative HP correction.** Stop
+ activation100842f0 calls actor+0x16c virtual+0x44(1), the established holder
+ stop10079250. That stop drains pending result rings through100ab5a0 before
+ clearing the opponent and attack state.100ab5a0 subtracts each queued damage
+ amount from current HP and invokes death-reason handling when the holder
+ stores one.1007a660 may also force immediate drain if the attacker's corpse
+ flag0x10 is already set or the holder is idle. A preceding absolute HP
+ snapshot can consequently be damaged again by a queued result. The native
+ handler100b0a50 for quiet HealthDamage writes absolute HP directly, with
+ separate signed-change/death-reason fields; it is suitable after draining.
+
+## Integration inference and remaining unknowns
+
+For the currently supported pure ability Modify buffs, removal is server
+policy: durably remove the chosen records, cancel future swings/casts, send
+StopFight for existing combatants to drain already-announced outcomes, send
+recipient-envelope action65 for each removed program, then resource maxima
+and any final quiet HP0/nano clamp, and death presentation. Keep ordinary
+weapon/nano lethal result delivery consistent with the existing combat path.
+Do not add ApplySpells or a second stat modifier removal alongside65. Send65
+to owner and observers representing that recipient; only the owner gets the
+icon UI. On actual return, ResurrectIIR supplies the resurrection resources.
+The exact packet interleaving remains an integration inference to test in
+published WASM with a pending weapon result, because static analysis does
+not establish the original server's ordering or runtime frame timing.
+
+**No historical server death-persistence flags were established.** The client
+does not select a death-persistent subset in the inspected99/153/death-state/
+resurrection paths. It can represent whatever subset the server preserves or
+removes using65 and replay. Therefore, this evidence supports implementing
+explicit cleanup but cannot alone prove which programs the14.9.1 server
+removed, when offline timers advanced, or any later expansion exception.
+The supported ability program catalog flags should not be reinterpreted as
+death rules without separate target-era evidence.
+
+## Evidence index
+
+Complete `wire-evidence.json`:96 retained records,13757250 bytes, SHA-256
+`46252732faf02248ca88262661d4d7073d0853215ff3a05708311fbd1d16515c`.
+Some records are reused admission snapshot entries; all retain artifact and
+analysis-profile identities. No unknown records in the export does not mean
+the historical policy questions above are resolved.
+
+| Subject | Evidence ID |
+| --- | --- |
+| CharacterAction dispatch including65/99/153/177 | ev_b07ce717ef6e92588539cb41d7136436d3b1bbfd35695c7639a4947c1f518cf7 |
+| Death-reason handler10072340 | ev_04b785e8d2d8a4995401604dd0351b58a12bad1aecd5f55ffee13373ce8ceeac |
+| HP/stat setter1006e030 | ev_a4eae5511486116cd3c919e0043b89887a08d2f1db7fdd184e021803ae77bb7b |
+| Death visual10085d60 | ev_7f991d40b7f085663b59c9e4b5ebb5fe2a56fb8ad9362677a08b83504d6ef76e |
+| Casting-queue clear10066ea0 | ev_7b4a27ace2b310e60dd6122ebb3744c9a45505d2a9b7ff75ee22cfb756a2d940 |
+| Cast timer cancellation10065420 | ev_c21a26014b6e563fbfaa8c282f07dcd455eb0d3a6fe829c892f90fff430f1cc0 |
+| Active membership/NCU removal10064ee0 | ev_78db76b2b885e2743bedb33ec9c11de4507c645ad456c0951a4c51edb0ff3180 |
+| Active modifier/record removal10065b90 | ev_244d42145a9762256a226661adc74465971930a80fd72c1ef4dc762611467de7 |
+| Active-record-remover caller inventory | ev_d51d296485f8cb2f637924d0bd58366a4d1ec5972e8a77f413b881bbfae02da6 |
+| Resurrection constructor10080dc0 | ev_0b6bd225196daaa2ef362b71862f67e72aa3d936e2ed68f42888c432e8bbb557 |
+| Resurrection vtable101718d0 | ev_5d124ff6cb12e38c06b662d9aa7b2f86516744c320e21075000915615de996a4 |
+| Resurrection activation exact bytes10080e20 | ev_743e7c347dce8d55943c4adfa5d0412023d6a5551f4b4d3b1607c40676afc17f |
+| Resurrection activation unavailable as Ghidra procedure | ev_7bf6630d94dcc5d56e417fa3db2ee82edbd79e129d1d62ca97635af741534cd9 |
+| Resurrection method10053230 | ev_0a97b716e9b2e3943a91942937a68c3d5a9e8515f91a4b7b1be8e69bd09de170 |
+| Reclaim1005fa40 | ev_b0ee3cfc9b02e9056884667f4a5082688796aa45faaf1d4e5725a10386c580d1 |
+| StopFight activation exact bytes100842f0 | ev_86b63f934f2be5c6d81c71a2b5f90295d750a7f7c06a33db82518a5eae46256b |
+| Holder stop/drain10079250 | ev_afd195b48995cd70d43bb2504ce109e10c38211ed2060553cd6f7680604e31f8 |
+| Pending result consumer100ab5a0 | ev_04d595c32db19eaf94e17c9aed01711425c70a290b867d43817b798423bdb693 |
+| Result queue ingress/forced drain1007a660 | ev_8e823c84d91132cd52602d061e60cc83a3386e85b9cd0ece2c9c853290c5f4c3 |
+| Quiet absolute HP handler100b0a50 | ev_95eb9c9e6fc45e464baa0509ab5f3c4402832683a3cb1365ca385ad9d88f5a4e |
diff --git a/docs/research-notes/nano-dot-research/native/README.md b/docs/research-notes/nano-dot-research/native/README.md
@@ -0,0 +1,170 @@
+# Original 14.9.1 periodic functions and action177
+
+**TickInterval is in centiseconds; TickCount is an execution count. The original
+client does not execute periodic Hit53002, including hostile DoTs, through
+action177.** The generic admitted-function queue provides evidence for delayed
+first execution, but cannot establish the original server's DoT first tick,
+phase, recast rules or scheduling precision.
+
+This is bounded REA skill Step 6 static work using matching retained Evidence
+and maintained instruction lifts. No new binary open/export, runtime, DB,
+production edit or REA session occurred. The earlier automatic approval rejection
+of a fresh binary open was respected without retry or workaround.
+
+## Identity and complete records
+
+The original target is `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Every record in `retained-evidence.json` identifies that hash. Original addresses
+use base10000000; generated C uses base36000000. Generated C is an instruction
+lift, not original source. `sources.json` gives source ranges, exact file hashes
+and complete function-extract hashes. `provenance.json` links the 25 complete
+reused records to their retained bundles and bundle hashes. Address-named text
+files are conveniences; the complete Evidence records retain provider limits.
+
+| Contract / original procedure | Complete reused Evidence ID |
+| --- | --- |
+| Common apply10002370; queue insert100027e0 | `ev_21b6bf56ea3b01fefafecdb673e392142538e12a995ac4070c4b8a8f1a26f59b` |
+| Queue visitor100021f0 | `ev_700456d500ded1b651bc8f770dbe843118f6c6286ca349ae445f40ef86a4e8c5` |
+| Gate100bfb40; execution100be8e0 | `ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d` |
+| Unreachable Hit handler1010def0 is ret4 | `ev_b36e6b8b14d9f960dd1705c8d5cd0779c3be3306d575aa456b07008bdb956f40` |
+| SimpleChar update1006ea50 | `ev_9df66de8d0f05217a69046147043bfd7e0d2bd2483793a59a51bb25b74be2ca0` |
+| GameTime1000c3c0 | `ev_b222a29a2449ed800e75228fac8a9ad597f8c73dce740b461b7fae780389796b` |
+| Action177/65 dispatch1006fa30; add10066010; inverse10065b90 | `ev_a760dfc116df1dd38b0619334130d916b7706ee29c64a535cdef16ed448295a6` |
+| Add10066010 original assembly | `ev_86e17289b115cdde8ecfc9574a926b958c070428196b47bcdbcb9a1a17d21144` |
+| Active record10065ac0, remaining100662c0, replacement10066c80/10066d40 | `ev_c3c599190c5c536182443fd9804afc7109d4a067408ab38953ed2717671edb89` |
+| Duration record10065ac0 original assembly | `ev_dbbcdc0a8339f2423c88e365d0d4a0e709e4f08cb2695c26780e6f053d3aa907` |
+| Remove10064ee0 | `ev_fd418e8113e0801a8672f3678b360186cf1bfd74a85b261dce39b79eade66941` |
+| Inverse/remover direct caller inventories | `ev_d51d296485f8cb2f637924d0bd58366a4d1ec5972e8a77f413b881bbfae02da6`, `ev_6fa92665eac5d5221da07f3c081a969bc0fcc1b8b81a7c0390f6f2b342e8b435` |
+
+## Generic ordinary-function scheduler
+
+The following is the ordinary positive-count path. TimedEffect53014 has a
+separate duration/flag branch and is outside this ordinary DoT contract.
+
+1. Common apply10002370 clones each authored function using100bfc30, assigns
+ source/caster identity and addition/removal mode, then initializes100bd340.
+ Initializer100bd349..350 loads argument3 into instance+8 (unless already-1);
+ 100bd359 clears elapsed float+0xc. Argument lookup100bd190 follows resource
+ `instance+18`, argument map`+c`, returning the value or-1 if absent.
+2. Count>1, interval argument4>0, or TimedEffect selects category9 queue
+ insertion100027e0. This appends the clone and does not execute it inline.
+ Otherwise common apply invokes100be8e0 immediately. The iterator visits the
+ whole authored list; there is no one-function-only restriction here.
+3. Visitor100021f0 visits the character Beholder's queue at+20 and invokes
+ 100be8e0 on each clone. It then releases/erases clones whose count+8 is0.
+4. Executor100be8e0 first gates the function ID. For admitted IDs with nonzero
+ count, failed criteria decrement count once and return before timing.
+ Passed criteria add200.0 to elapsed+0xc and compare argument4 <= truncated
+ elapsed. When qualified, ordinary execution resets elapsed to0, decrements
+ a positive count once and dispatches once. Overshoot is discarded; there is
+ no interval-subtraction or catch-up loop.
+
+Complete maintained ranges: `lifted-0000.c:6323..6744` (common apply),
+`:8669..8694` (insert), `:6063..6282` (visitor), and
+`lifted-0056.c:2057..2176` (argument getter), `:2388..2422` (initializer),
+`:11528..11586` (clone), `:6086..11321` (executor).
+
+The count is dimensionless. Interval units are established from actual timing
+operations, rather than names: SimpleChar1006ea50 at1006f0ff..1006f109 enters a
+block only on GameTime+1d and calls visitor100021f0 at1006f74c.
+GameTime1000c3c0 accumulates the normal unscaled frame delta, advances its
+one-second pulse at+30+1.0 <=+28, and alternates+1d/+1e on successive pulses.
+The character queue thus nominally advances every2s by200 interval units:
+100 units/s. This is client-wide clock phase, not a per-program clock.
+Under lag the clock does not loop to replay every missed pulse. Sources:
+`lifted-0033.c:4962..7001`, `lifted-0004.c:470..767`.
+
+For an admitted ordinary function, interval500 means elapsed200,400,600,
+execution on the third visitor, reset0; interval750 qualifies on the fourth
+visitor at800. No execution occurs at insertion. First elapsed wall time also
+depends on the shared visitor phase, so this is not a general exact-interval
+or exact-first-delay timer. These examples are consequences of the client
+queue, **not historical server DoT schedules**.
+
+Field terminology is corroborated by retained original resource85232 Insurance
+Hack: count40, interval500, TimeExist20000, Hit53002 `[27,26,63,0]`, flags10002.
+`authored-heals-original.json` preserves the complete decoded record and payload
+hash`486dbf898d2287dc7cb683aecc7d5d77a7dd10fd57a9294e78b946f1309f8059`.
+The resource decoder reads count/interval words in
+`tools/data/extract_items.py:134..135`. This is generated catalog evidence;
+the original resource parser/factory's serialized-word-to-map insertion was
+not independently recovered in this bounded pass. Runtime argument3/count and
+argument4/comparator mapping are established directly above.
+
+## Why hostile177 does not run periodic HP damage
+
+Gate100bfb40 switches on function ID alone. Hit53002/cf0a returnsfalse for
+all polarities, endpoints, tick counts, source identities and local/remote
+victims. Executor100be8e0 then clears remainingCount+8 and returns **before**
+criteria, elapsed accumulation or dispatch. A queued hostile Hit is discarded
+on its first visitor. Even the unreachable subsequent cf0a dispatch calls
+1010def0, an empty ret4 stub. No first or later damage tick can occur here.
+
+Action177 is nevertheless more than an icon operation for admitted functions:
+
+```
+recipient envelope = (50000, targetCharacterID)
+action = 177
+A = (53019, programID)
+B = (casterCharacterID, durationCs)
+```
+
+1006fa30 constructs caster identity50000:B.type and calls
+10066010(A,B.instance,1,1,casterIdentity,1). Zero duration returns. Nonzero
+duration loads the original program. BuffNano10000 admits its action4/action0
+containers through common apply10002370, plus active record/visual and local
+icon work. Hostile8000 suppresses used-NCU180 accounting, not execution of
+admitted functions. NPC and remote-player representations still receive the
+effects; the local-character byte gates icon work. Thus a server must deliver
+HP results separately; sending177 alone is insufficient for a DoT.
+
+## Refresh, countdown and removal
+
+177's add path obtains effective strain75 and NCUcost54.10066c80 finds an
+existing same-strain record with cost<=incoming and removes it before applying
+the new one. Equal same-program replay consequently removes/reapplies and
+restarts the active record's time.10066d40 is the separate stronger-program
+test used by ordinary casting;177 does not itself invoke that rejection test.
+These are native consumers, not a proof of original server recast admission.
+
+Active record10065ac0 stores identity+0/+4, start+8 as
+`trunc(normalTimeSeconds)*100`, effective duration+c/+10 as
+`trunc(durationCs * actorStat464 * .01)`, visual handle+14. Remaining getter
+100662c0 returns`max(0,start+duration-trunc(nowSeconds)*100)`: it is quantized to
+one second despite centisecond units. Visual duration uses durationCs/100 whole
+seconds. Duration zero is not defaulted from authored TimeExist by177.
+
+Countdown reaching0 does not establish automatic active-program removal.
+The inspected full SimpleChar update has no active-record expiry; retained
+direct callers route inverse10065b90 through10064ee0, called by replacement or
+CharacterAction dispatch. This is bounded coverage, not a complete indirect-call
+proof. Use action65 for explicit removal of the installed record, with victim
+envelope and `A=(0,0), B=(casterCharacterID,programID)`. Membership guards inverse
+effects and NCU reversal, so duplicate removal does not inverse twice.
+
+Removal also clears generic queued function clones before inverse application.
+Original retained vtable bytes in`original-instruction-windows.json` establish
+Beholder vtable1017139c+2c =10002ca0 and+34 =10002370. Maintained complete
+10002ca0 (`lifted-0000.c:9436..9656`) gets category9, iterates authored functions,
+and releases/erases queue clones whose instance+4 equals the authored function's
++4. This is a key comparison, not source-caster matching.10065b90 calls+2c for
+action4/action0 before reapplying their inverse via+34. Refreshed admitted
+periodic functions therefore receive fresh initialized counts/elapsed; the
+shared GameTime phase continues. A periodic inverse is forced to count1 by
+common apply and remains queued. None of this resets an original server's
+Hit scheduler, which this client does not implement.
+
+## Reconstruction boundary
+
+Supported: parse ordinary count/interval; interval750 =7.5s;177 installs the
+native active record/visual; explicit65 removes it; separate server HP delivery
+is required for each Hit result. Do not add a second local HP execution for177.
+
+Unproven: original server's first tick immediate/delayed, rounding or shared
+phase, ordering of final tick/removal, refresh preserving/resetting damage phase,
+recast resistance/stack policy, offline progression and death persistence.
+Implementing descriptor-sized intervals with first tick after one interval is
+a defensible explicit reconstruction inference; the generic queued-first path
+supports that choice only weakly because actual Hit cannot enter its timer.
+No canonical server scheduling change follows from this native convenience.
diff --git a/docs/research-notes/nano-interrupt-research/findings.md b/docs/research-notes/nano-interrupt-research/findings.md
@@ -0,0 +1,153 @@
+# 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
+
+- Stat383 is hexadecimal 0x17f. Maintained `client/game/kkr.dll/lifted-0019.c`
+ `sub_36031700` registers key0x17f at instruction360318BA with the string
+ `InterruptModifier` at361B9616. `sub_36036490`/overlapping `sub_36037950`
+ registers its display string at instruction36037A06;
+ `sub_36037B70`/overlapping `sub_36038BFE` repeats that registration at36039767.
+ The string at361BD77C is `Decreased Nano-Interrupt Modifier %`.
+- The two strings were read from existing maintained C data
+ `client/data/kkr_dll.c:data_2`, using its existing guest-address initialization
+ map. `maintained-labels.json` retains the two strings and source hash.
+ No original native binary or analysis session was opened.
+- Original `FUN_10072760` sets `DAT_1030682c[0x17f]=0`. Retained Evidence
+ `ev_262150600e8d5205a324934ce17968bf1440814efc918e5344b3ad29103466e9`
+ appears in `local/reports/combat-rules-1491-evidence.json:records[14]` and
+ `local/reports/combat-client-state-evidence.json:records[20]`.
+ Maintained `client/game/kkr.dll/lifted-0034.c:sub_36072760` writes zero at
+ instruction36072F12 to `[default_table+0x5fc]`, matching383*4.
+- Generic effective retrieval uses `1006dfb0 -> 10075ca0`, combining base/trickle
+ (`10075c60`) with modifiers (`10074a30`). Generic modifier application/removal
+ adds/subtracts dwords (`100747b4`, `10074b47`); the special ability/skill penalty
+ branch excludes383. Sources: maintained `lifted-0033.c` and `lifted-0034.c`,
+ retained `local/signed-stat-research/focused-evidence.json`; the existing
+ `docs/research-notes/nano-range-research/native/ledger.md` gives the individual Evidence IDs.
+ This is reusable stat-storage evidence, not interruption arithmetic. Exact383
+ trickle-table contents were not established by this audit.
+
+## 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.
+
+## Bounded native-consumer and caller search
+
+`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:
+
+- `local/reports/combat-rules-1491-evidence.json`
+- `local/reports/combat-client-state-evidence.json`
+- `local/reports/combat-client-pass2-decompiles-10.json`
+- `local/reports/combat-client-decompiles-20.json`
+- `local/signed-stat-research/focused-evidence.json`
+
+`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.
diff --git a/docs/research-notes/nano-range-research/native/ledger.md b/docs/research-notes/nano-range-research/native/ledger.md
@@ -0,0 +1,183 @@
+# AO 14.9.1 nano range: retained native evidence audit
+
+Scope: only the four retained JSON reports identified below and matching maintained
+`client/game/kkr.dll` C. No binary was read, no REA session was opened, no new
+binary export was requested, and no server, database, or browser was used.
+This is static evidence, not an observation of original game execution.
+
+The retained reports identify the original x86 PE kkr.dll SHA-256 as
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+That identity was read from retained metadata, not recomputed from the binary.
+Maintained C addresses use 0x36... where retained original addresses use 0x10....
+
+## Findings
+
+1. **Answered: range inputs and arithmetic.**
+ `10098c10` reads nano stat `0x11f` (287) in mode 2 and caster stat `0x17d`
+ (381) in mode 0. At `10098c3f` signed integer multiplication retains the low
+ 32 bits; `10098c45` loads that value as a signed integer into x87, multiplies
+ by the binary32 coefficient at `10170894`, and adds the original signed base
+ range before the `ftol` call at `10098c51`. For ordinary, nonoverflowing
+ inputs this is `ftol(base + (base * effective_stat381) * coefficient)`.
+ It is not integer division by 100, and it is not a multiplicative stat whose
+ neutral value is 100. Source: `lifted-0046.c:2395`, especially lines 2413-2451;
+ retained decompile wrapper
+ `ev_9081c9ee969a3f64c9cfb5aec6a5d90477aa638090d6ed38e5791a3d0d58eeda`,
+ item `0x10098c10`. The decompile omits the x87 arithmetic, so the maintained
+ instruction comments supply the additional operation detail.
+
+2. **Answered: coefficient precision; partially answered: exact runtime precision.**
+ The retained complete four-byte read of `10170894` is `0ad7233c`, i.e.
+ binary32 `0.00999999977648258209228515625` = `5368709/536870912`.
+ Evidence: focused record 8,
+ `ev_09c60b565e012a81f81e9d3c94ec67d0c24254ef6f3b10e62c82b7bed44dbf50`.
+ The range helper has no intervening binary32 store after multiply/add.
+ Thus substituting decimal/binary64 0.01 or forcing binary32 rounding at each
+ arithmetic step is not instruction equivalent. For example, evaluating the
+ recorded coefficient at sufficient precision gives base 20/stat381 25:
+ `24.999999888241291...`, truncating to 24; stat381 100 gives
+ `39.999999552965164...`, truncating to 39. These are arithmetic deductions,
+ not observed runtime examples. The scoped evidence does not establish the
+ process x87 control word/precision or the imported CRT helper implementation.
+ Retained pseudocode names the helper `ftol`; maintained `1015fd8c` is only an
+ import thunk (`lifted-0105.c:1907`). Ordinary finite truncation toward zero is
+ the standard helper interpretation; exceptional values/overflow remain open.
+
+3. **Answered: signed upper cap and absence of a minimum in this helper.**
+ `10098c56` compares the converted integer to 40, and signed `jle` at
+ `10098c5a` preserves it; otherwise `eax=40`. No lower clamp appears anywhere
+ in this complete maintained function. Negative inputs/results remain signed;
+ a minimum of 1, 0, or base range is not present here. Same source/evidence as
+ finding 1. Stat381 -100 with base 20 yields a small positive residue before
+ conversion and integer zero at sufficient precision; -101 still truncates
+ a small negative result toward zero. Stat381 -110 yields a negative integer
+ with the recorded coefficient. Negative percentage does not imply a clamp.
+
+4. **Answered: stat381 default and additive effective retrieval; partial: trickle data.**
+ `10072760` explicitly sets the default table entry `[0x17d]=0`.
+ Evidence: combat-rules record 14,
+ `ev_262150600e8d5205a324934ce17968bf1440814efc918e5344b3ad29103466e9`;
+ maintained instruction `36072efa`, `lifted-0034.c:881`.
+ Stat mode 0 dispatches through `1006dfb0 -> 10075ca0`.
+ `10075ca0` obtains `10075c60` and adds `10074a30`'s modifier result.
+ `10075c60` obtains mode-2 base and adds a converted `10073fa0` trickle result.
+ Modifier entry absence yields zero for stat381; the ability/skill penalty
+ branch in `10074a30` applies only to stats 16-21 and 100-168, not 381.
+ `100747b4` adds a modifier to the stored dword; `10074b47` subtracts one.
+ There is no unsigned normalization or nonnegative clamp in these operations.
+ Focused records 0-6 respectively:
+ `ev_74652ec491811d2dbb9348174f59fabc0739128af4fc0567877aee64d3b28a0e`,
+ `ev_c27bbca88da1a49ac67c28b427c73045affc7be7b57c2cf2814043387c7a4714`,
+ `ev_2c98108acd73789969ea7727ff8f5f7bca6eb7e99423b9db494fb68749b32a07`,
+ `ev_57658a87b490182c351df832518ad2cf4faa5ad2ffc195dd8597861aec6e1b1d`,
+ `ev_c3dc476ddb84eedb69e4e81bbbd80a7c5bf28e3aca92e4d8e2e0386d6813ad6f`,
+ `ev_b2a9656c468675646d49b31ff6317ecdfd16fc3991e0dc6484322a01038bea1c`,
+ `ev_8fbad422c0792a1be57aad44cb4daaa490d05eaa8c77c68e55c15f94fe2215fc`.
+ Maintained sources: `lifted-0033.c:1585`, `lifted-0034.c:3153`,
+ `:4170`, `:4664`, `:4811`, `:7502`, `:7547`.
+ The scoped retained evidence does not include stat381's actual trickle-weight
+ table entry. Zero trickle for this specific stat therefore is not independently
+ demonstrated by this audit. The effective path includes the generic call.
+
+5. **Answered: connected spatial cast predicates include a stricter second gate.**
+ `100646a0` gets both global position vectors. Each caster-minus-target
+ coordinate difference is stored as binary32 (`10064adb`, `10064ae7`,
+ `10064af0`). x87 then squares the z and y differences, adds them, squares x,
+ adds it, and takes sqrt. `10064b12` invokes the same `ftol` helper.
+ Signed `jle` at `10064b19` accepts distance_integer <= range_integer.
+ There is no radius/height subtraction or epsilon in this branch. This first
+ gate alone ordinarily permits distances below R+1 for nonnegative integer R.
+ It does not establish the effective predicate for a complete cast.
+ After another intervening predicate, `10064b72` calls `10066310` and a false
+ result rejects the cast (`10064b77..10064b79`).
+ Source `lifted-0030.c:6179` through `:6226`; decompile20 wrapper
+ `ev_b222a29a2449ed800e75228fac8a9ad597f8c73dce740b461b7fae780389796b`,
+ item `0x100646a0`. The decompile omits the distance arithmetic; maintained
+ instructions preserve it. Caller connection: `lifted-0030.c:6273` through
+ `:6287`; the retained decompile names `FUN_10066310` in this same path.
+
+ `10066310` first compares target object with caster object (`10066320`) and
+ skips to its success epilogue when equal (`10066322 -> 100665d2`). For other
+ actors, `10066328..1006635a` loads global binary32 coordinates and computes
+ the three differences in x87 without spilling those differences to binary32.
+ It squares and sums z, y, then x and takes sqrt (`10066362..10066372`). Only
+ the final distance is spilled to binary32 at `1006637a`. It computes range
+ again (`1006637d -> 10098c10`), loads the signed int32 range into x87
+ (`10066385`) and compares against the binary32 distance (`10066388`). The
+ tested x87 C0 status rejects range < distance; finite equality passes
+ (`1006638d..10066390`). This gate does not convert distance to integer.
+ Source: `lifted-0030.c:10373` through `:10487`, success epilogue `:10791`.
+ No body of `10066310` occurs in the four scoped retained reports; only the
+ caller reference is present in decompile20. The maintained source therefore
+ supplies this second-gate instruction evidence, with no new original-binary
+ export or new Evidence ID claimed.
+
+ **Effective ordinary other-actor range policy:** use the final binary32
+ distance <= integer range, with no additional one-metre allowance. The full
+ original client path applies both gates; the first rounded-difference gate
+ and the second final-distance rounding are not bitwise identical. At ordinary
+ finite distances the strict second gate removes the apparent R+1 allowance:
+ e.g. distance 20.9 and range 20 fail, despite passing the first gate. Exact
+ floating-point boundary equivalence additionally depends on runtime x87
+ precision and coordinate snapshots between the two checks. The server may
+ implement the second predicate directly as its ordinary fidelity policy;
+ that remains a policy derived from client evidence, not historical-server
+ execution evidence.
+
+6. **Answered: self-only target handling in the observed path.**
+ When nano-object byte `+0x98` is nonzero, `10064821..10064836` replaces the
+ copied target identity with the caster's identity. It then follows ordinary
+ target lookup and cast predicates, including the first distance comparison;
+ there is no self-only return-success or range bypass in `100646a0`.
+ `10066310` does skip its own second spatial gate for any target object equal
+ to the caster, independently of why that target was selected. This bypass
+ occurs after the first gate has passed. For finite self position the initial
+ computed distance is zero; a negative returned range therefore still fails
+ the first comparison. Sources `lifted-0030.c:5821` and `:10396`;
+ same decompile20 evidence as finding 5. The exact resource flag that populates
+ byte +0x98 is not established by the scoped records, so interpreting its
+ provenance as a particular numeric SelfOnly flag remains a separate question.
+
+## Server-policy and fidelity gaps
+
+- Client validation is static evidence for the original client. It does not
+ establish the original authoritative server's range policy, cast-start vs
+ cast-completion revalidation, movement tolerance, or handling of stale target
+ coordinates. Mirroring this predicate server-side is an explicit fidelity
+ choice; the evidence does not prove that the historical server did the same.
+- Exact x87 runtime precision/control word, CRT ftol implementation, exceptional
+ floating-point values, and integer-overflow behavior are not runtime-verified.
+ The maintained C uses host double helpers and signed C multiplication; it is
+ useful instruction evidence, not proof of bit-identical x87 execution.
+- Exact stat381 trickle weights and resource-to-+0x98 flag provenance remain
+ unresolved within this narrow retained-data scope.
+- No evidence here supports adding a minimum range, replacing zero with 1,
+ clamping negative stat381, bypassing the initial spatial gate merely because
+ the target is self, granting an extra one-metre range allowance based on the
+ initial integer check alone, switching to raw squared-distance comparison,
+ or assuming exact decimal percentage arithmetic.
+
+## Retained search boundary and connected excerpt
+
+The search for `10066310` covered every record/item of exactly the four scoped
+reports, including both metadata and stored result text. The combat-rules bundle,
+decompile5, and focused evidence returned no match. Decompile20 item
+`0x100646a0` contains the caller reference but no separate body. This negative
+search is bounded to those reports and does not establish absence elsewhere.
+`connected-predicates.txt` contains line-numbered excerpts of the maintained C
+for the first gate, required downstream call, second gate, and self-success
+epilogue, tied to the unchanged maintained source hash below.
+
+## Audited source hashes (SHA-256)
+
+| Source | SHA-256 |
+| --- | --- |
+| local/reports/combat-rules-1491-evidence.json | 7d82955884bf72ee6d19f008099c13f9d01ef5716e1b3cfac0daafb080b13b52 |
+| local/reports/combat-client-decompiles-5.json | 33dbde924935aa619d18277afaceffc72a285f36190def4d46746b5fad344973 |
+| local/reports/combat-client-decompiles-20.json | 523430bfad626abd55b57c288b701a43476eba47fdd7503827631efe87e45f8a |
+| local/signed-stat-research/focused-evidence.json | edd3417e042bd921f27c4fb9d1d6ab96b8f3243405f091658c64349e6d0f0613 |
+| client/game/kkr.dll/lifted-0030.c | 47d7665a2edc609c0de5c437874dd565b96184a909ac3814af2f26b3dc8fb1de |
+| client/game/kkr.dll/lifted-0033.c | 864da26391874dbdae17e80ed29e6cbc51641cf55842594c5373de272f66f541 |
+| client/game/kkr.dll/lifted-0034.c | b1bfedd42a59d1468ab3adc8cfb392db6785be1c39523ca060072188dd773326 |
+| client/game/kkr.dll/lifted-0046.c | 2b2e6f30e15fb013dba6a744a314586ff881cea756c809063652a3ab7567c500 |
+| client/game/kkr.dll/lifted-0105.c | 58507cce41480195633a91a576246e8bc79ebae884c0d0bfc4a2b84e85208a14 |
diff --git a/docs/research-notes/nano-root-research/native/README.md b/docs/research-notes/nano-root-research/native/README.md
@@ -0,0 +1,139 @@
+# Original 14.9.1 root and snare native consumers
+
+RestrictAction53068 clears the actor's movement permission bit4. Removal restores
+it through balanced per-bit counters. Negative RunSpeed156 uses the ordinary
+modifier accumulator and subtracts the signed amount on removal. These native
+operations do not establish authoritative server threat or damage-break rules.
+
+This is REA skill Step6 bounded static reuse. No fresh binary open/export,
+analysis session, runtime, server or production edit occurred. The earlier
+automatic approval rejection of a fresh open was respected without retry or
+workaround. Original target kkr.dll SHA-256 is
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Original addresses use base10000000; maintained instruction lifts use36000000.
+
+## Complete retained evidence and maintained source
+
+`retained-evidence.json` preserves complete matching original Evidence records,
+including provider limitations. `provenance.json` links each to an existing
+source bundle and its SHA-256. `selected-functions.json` and address-named text
+files are conveniences, not replacements for the complete records. `sources.json`
+gives exact maintained source/extract hashes and complete function line ranges.
+Maintained C is an instruction lift, not original source or a runtime observation.
+
+| Question | Original procedure / complete Evidence ID |
+| --- | --- |
+| Gate/executor |100bfb40/100be8e0, `ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d`|
+| RestrictAction53068 |100c17f0, `ev_b36e6b8b14d9f960dd1705c8d5cd0779c3be3306d575aa456b07008bdb956f40`|
+| Permission counters add/remove |10059930/10059a80, `ev_21b6bf56ea3b01fefafecdb673e392142538e12a995ac4070c4b8a8f1a26f59b`|
+| Permission initialization |10059770, `ev_c6476a44ff6f2acef524789bf74ebddd3ea49bab979bdff76f495ac32a5de6b8`|
+| Permission query |10059ba0, `ev_f120a1426717ed115aa79a77780cfb3668302f621243f5c5877df308e4523215`|
+| Signed modifier and inverse |100bd600/10074730/10074b00, `ev_27c953512839b1cff0ac854ff041eb3e0813c2df061a8858060432f10da08405`|
+| Apply/remove177/65 |10066010/10065b90, `ev_a760dfc116df1dd38b0619334130d916b7706ee29c64a535cdef16ed448295a6`|
+| Follow steering gate |10048430, `ev_437e76236c9b5d2a0d7dd122ca12b1ff620178cda1d2209666b42e29d1f39ab9`|
+| NPC follow consumers |1004af50/1004ba20, `ev_1e75e2365d7f68786685da35877287cd6dc6aba5c507b06902338a1067098cc1`|
+| Server correction/follow message |1007e690, `ev_8bcc339823b969bc5b5e36d6a434f625a11eee1b065ef8dcc4dfa51a8fc5cea5`|
+|53117/cf7d |100c2100, `ev_74b850319e01a5d695961489586fe30fa511941488693d18d9ceb3bd4ce83148`|
+
+## Root activation, stacking and inverse
+
+Gate100bfb40 admits53068/cf4c and executor100be8e0 dispatches it to100c17f0.
+The handler casts the recipient to SimpleChar and reads argument0x49 as mask.
+Normal application (instance+1c bit1 clear) calls actor+188 helper10059a80;
+inverse application calls10059930. The action177 add path uses normal mode;
+action65 removal checks active membership then applies inverse mode through the
+same common authored-function path. A duplicate removal does not inverse twice.
+
+10059770 initializes32 signed-byte counters at helper+44 from existing stat224
+permission bits: a present bit starts at1, absent at0.10059a80 decrements each
+selected counter and clears its permission bit when the result is<=0.10059930
+increments and sets selected bits when the result is>0. Consequently two roots
+with mask4 take counter1->0->-1 and two removals restore-1->0->1. A simple toggle
+would incorrectly unroot after the first removal. Stat224 bit4 means permitted
+movement, not a positive rooted flag.53067/cf4b is the opposite activation pair.
+The byte-counter implementation has finite signed range; no overflow policy is
+recommended from this static convenience.
+
+The optional positive argument0x19 selects an additional event1002ee20 with
+code0x40 for53068; mask is carried in the event payload. Typical inspected root
+contracts use ordinary permanent-for-nano-lifetime control plus explicit inverse.
+This pass does not establish an independent server restriction timer from that
+optional event mechanism.
+
+## Movement and native NPC routing
+
+Original10048430 asks10059ba0(4). If absent, it returns the unchanged current
+vehicle position at+54 before ordinary movement/follow calculations. This is an
+actual native control consumer. NPC follow routines1004af50 and1004ba20 call it
+when a follow target exists (argument0/1 respectively), so the gate also reaches
+native NPC representations. Separate explicit path-guide branches exist; this
+bounded pass does not prove every NPC movement branch is blocked by this gate.
+
+Original1007e690 still applies a nonzero received position through
+Vehicle::SetRelPos before installing follow/path information, with no permission
+query. It may clear/restart an NPC path through1004adc0, then10048260 stores the
+follow target and path triples. Therefore an authoritative Go NPC that keeps
+moving can continue sending corrections despite the native root. The server must
+stop its simulation movement and publish the appropriate stop/current-position
+state. Sending177 alone cannot establish authoritative immobilization. Remote
+position corrections are not evidence that the websocket wrapper buffers roots.
+
+Maintained10088750 queries the same mask4 for a native status result1/2; unresolved
+actor returns3. Maintained10059a80 also emits vehicle event0x15 when movement
+permission becomes clear and the actor lacks flag0x20000;10059930 emits0x22
+(and conditional0x18) when restoring it. The exact state-machine meanings of all
+these event codes are not established here.
+
+## Snare RunSpeed156
+
+Gate admits53045/cf35; dispatcher calls100bd4d0, whose maintained lift simply
+checks recipient and forwards to100bd600. That original retained handler reads
+stat argument0 and signed amount argument0x27. Normal mode calls10074730; inverse
+calls10074b00(amount,0). The first adds the signed amount to an accumulator; the
+second subtracts it and deletes a zero accumulator. Thus a negative snare amount
+is restored by subtracting the same negative number, with no snare-specific ID
+branch. Both helpers invalidate/update the affected stat;156/0x9c also refreshes
+the attached vehicle through100480e0(1).
+
+Maintained10047be0 reads effective RunSpeed156 and current/max HP before computing
+a movement scalar. This supports routing snares through effective RunSpeed, not
+substituting a hardcoded percentage. This pass does not recover original server
+NPC speed defaults, the complete scalar's constants/caps, or every NPC movement
+branch; the instruction lift is separately retained and not treated as original
+runtime proof.
+
+##53117 and break stats remain server questions
+
+Gate admits53117/cf7d and dispatches100c2100. The original full handler reads
+arguments0x78,0x79,0x27 and0xb, but discards these return values. It resolves caster
+identity from instance+10 and an NPC-marked SimpleChar recipient. It then calls
+the caster's10079880(targetID,0,0) combat/attack-permission helper and may emit
+local errors for missing or unattackable targets. On success it reads0x19 and
+returns. There is no magnitude-dependent threat accumulation, damage, victim
+retaliation mutation or random roll in this handler. The maintained full helper
+is retained as a separate source, not newly decompiled original evidence.
+The label TauntNPC is a catalog/community semantic interpretation; this client
+consumer does not prove authoritative server taunt math or threat switching.
+
+`break-stat-search.json` records a bounded exact-immediate search of every
+maintained kkr.dll lifted file for385/386/422 (hex181/182/1a6). Hits are their
+zero initialization in10098600 and an unrelated exception-state ordinal1a6 in
+10031700. No literal stat read, chance roll, damage/nano event binding or active
+nano cancellation consumer was found by this search. Dynamic accesses, other
+modules and original server behavior are outside its negative coverage. These
+stats must not be silently ignored to admit a supposedly complete root/snare
+contract. Their per-event trigger, chance denominator, whether misses/resists or
+periodic damage count, and cancellation ordering remain unresolved here.
+
+## Result and limits
+
+Answered: native mask4 activation/inverse and stacking; concrete follow gate;
+server correction bypass; signed RunSpeed modifier/inverse; bounded53117 client
+consumer. Partially answered: every native NPC path and speed computation.
+Unresolved: original server taunt/threat policy, damage/nano/debuff-break
+probabilities and triggering events, original resistance algorithm using weighted
+Level54 plus NanoResist168, and all corresponding persistence/atomicity behavior.
+No production root/snare admission follows until the full server contract can be
+honored and tested. `tmp_verify.py` checks record identity, complete source-record
+provenance, selected decompile contents, maintained source/extract hashes and the
+bounded search sources.
diff --git a/docs/research-notes/picker-timing-research/ledger.md b/docs/research-notes/picker-timing-research/ledger.md
@@ -0,0 +1,142 @@
+# Native mouse picking timing
+
+Question: why can moving to a new pixel and reading one complete-frame snapshot
+return the target picked at the previous pixel?
+
+## Artifact identity and retained evidence
+
+All inspected artifacts are the local original 14.9.1 Windows DLLs, statically
+analyzed with REA 6.5.0 / Ghidra 12.1.2. Original image base is 0x10000000.
+Maintained lifted KKR/LLR/CCR image bases are 0x36000000, 0x38000000,
+0x27000000. Address rebasing changes only the image base in the cited examples.
+
+| Module | SHA-256 | Retained bundle |
+| --- | --- | --- |
+| kkr.dll | a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0 | kkr-evidence.json |
+| llr.dll | ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132 | llr-evidence.json |
+| ccr.dll | 4c6d8dfc7eaa39044935d94e678ee4ead922decad36ed616a7843dcb51e7c55a | ccr-complete-evidence.json |
+| aar.dll | fbe6545e65d9c77d85cb199323732a0c1c63b1edb01bc53b48da35892a0f88c6 | aar-evidence.json |
+
+Matching provider-neutral snapshots are retained beside the bundles. All owned
+native sessions were closed after export. No target was executed or modified.
+
+## Observed native dataflow
+
+1. KKR `n3EngineClientAnarchy_t::N3Msg_SetMousePos`, original 0x10020f20,
+ lifted `client/game/kkr.dll/lifted-0014.c:799`, writes normalized mouse floats
+ into engine +0xd0/+0xd4. It calls camera.SetMousePos, then copies the current
+ camera.GetObjectUnderColLine identity into engine +0xd8/+0xdc. There is no
+ world-object selection pass inside this method.
+ Evidence: `ev_9c669687c8a64bb60efe8a845349c2db870f72878b1f01f9c54d088e92729e0a`.
+
+2. LLR `n3Camera_t::SetMousePos`, original 0x100076e0, stores normalized floats
+ into camera +0x108/+0x10c, derives the ray at +0x11c/+0x120/+0x124 and ground
+ position at +0x110/+0x114/+0x118. It does not update the selected-object
+ CollInfo_t. `GetObjectUnderColLine` at 0x10007bb0 simply returns camera+0xf0.
+ Evidence: `ev_7bf86d731b6d4d346d0d979ecc4f22cd616dcbaf43720d6340be0b4a579dd17f`,
+ `ev_fd5068649d7445b9aed68b12e25db714f2775fb6aa501df9a3c9c678361d7fa6`.
+
+3. LLR `n3Playfield_t::Run`, original 0x1002acf0, performs world selection
+ periodically. When the active camera exists, it adds engine+0x64 (delta time)
+ to the float global 0x1006ee70 (lifted 0x3806ee70). Only when the sum is
+ strictly greater than 0.1 does it reset the accumulator to zero and consider
+ selection. A zero global collision ray bypasses selection even then.
+ Evidence: `ev_7269c1855c0fe39deaf86833e2f41630a250d1f382676b52b1dd43cfa8c5d84f`.
+
+4. The actual selection path begins at original 0x1002ae31 / lifted
+ 0x3802ae31. It obtains world candidates, sorts them, initializes camera+0xf0
+ to ground identity (40007,0), then checks visible visual dynels in order.
+ `CheckSelectionCollision` at 0x100082f0 excludes the local actor in first
+ person and invisible objects. A hit copies five dwords of collision data to
+ camera+0xf0 and terminates the candidate loop. Empty candidate lists and no
+ hits retain the ground identity.
+ Evidence: `ev_526bc64f5d1b55be709a0f6ab085e262e7a39a2101d74266fb7a5dd172681b06`,
+ `ev_fa3d7fd29f2e07f25e7cc3f4dcffd9cff86058283d0a90fd5fcc17ddcfb36d76`,
+ and the Run dossier above.
+
+5. Original 0x1002aed7 / lifted 0x3802aed7 is the shared exit from selection.
+ It is also reached when the timer has not elapsed and when the ray is zero.
+ An unconditional generation increment there would falsely label bypassed
+ frames as new picks. A passive observer needs a query-began marker at
+ 0x3802ae31 and completion handling only when that marker was set.
+
+6. CCR `InputConverterModule_t::InputGameSubmodeActionViewONMessage`, original
+ 0x10005790, receives a Vector3_t from AFCM, invokes EER's SetMousePos wrapper,
+ then updates InputConfig mouse world position and object-under-mouse state.
+ It sets global 0x10048b58 / lifted 0x27048b58 to 1 and skips a repeated call
+ while this flag remains set. `InputConverterModule_t::FrameProcess` at
+ 0x10005860 resets that flag to 0 before InputConfig::FrameProcess.
+ Evidence: `ev_f2da41d2f181251fc7393e966e5fd7f3de72a434a02897a4f22fc5466405fb76`,
+ `ev_10c5fd8d46dec16337964d9a66529746d4b4a805bc277cbf12c466515424903c`.
+
+7. CCR `InputConfig_t::FramePreProcess`, original 0x10003f00, processes queued
+ input, converts mouse coordinates to client coordinates and stores the
+ processed pixel into InputConfig+0x108/+0x10c. The public GetCurrentMousePos
+ at 0x10022080 reads those same fields. InputConfig instance global is lifted
+ 0x27048b44, returned by lifted sub_27021EC0.
+ Evidence: `ev_5dcc74c185496306de28fdc60a5cd1af6cf232b7f74c96a242951fc66f993e0d`,
+ `ev_7fc0547043f2eb0ee5b718d1dc6dd96bef93baf2a5e89ecc5f6b687d47376e1a`,
+ `ev_b31f525c7deff6a9bcad58d9a10fec12f5bdc5671ca30fc588ee07cf536cb15e`.
+
+## Exact pixel transform
+
+CCR `MouseDetectorButton_t::CheckHotSpot`, original 0x10016810, mode 2 sends:
+
+```
+x = (pixel_x - rect.left) / float((rect.right - rect.left) / 2) - 1
+y = 1 - (pixel_y - rect.top) / float((rect.bottom - rect.top) / 2)
+```
+
+The half-size division is integer division before conversion to float. The
+rectangle is hotspot +0x2c/+0x30/+0x34/+0x38. The method checks containment
+first, sends its message and returns false, allowing the detector to observe
+input without itself becoming the top consuming hotspot. Evidence:
+`ev_a95fa030788ce39fe2a8d22df6dea9264ed1c6f35e395f2a64cf9ccf89769791`.
+
+For a verified rectangle (0,0,width,height), inversion is x=(norm_x+1)*
+integer(width/2), y=(1-norm_y)*integer(height/2), rounded to the original pixel.
+The active world detector rectangle is reachable through the native ActionView
+singleton: `MEM32(MEM32(0x2b0ee640) + 0x10)`, then hotspot offsets above. The
+original DDR PE export table identifies ActionView constructor RVA 0x11d0,
+GetInstance RVA 0x12e0, and the singleton data RVA 0xee640. Maintained
+`client/game/ddr.dll/lifted-0000.c` constructor sub_2B0011D0 creates the mode-2
+MouseDetectorButton and stores it in ActionView+0x10. sub_2B0012E0 stores the
+singleton at 0x2b0ee640. sub_2B0013A0 sets the height to display height minus 20;
+sub_2B001440 adjusts the width when the side panel is shown. Thus the world
+viewport need not equal the display dimensions. Original DDR SHA-256 is
+3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883;
+`ddr-original-pe-exports.txt` retains its objdump export observations. These DDR
+observations use original PE exports plus maintained lifted assembly comments,
+not an additional REA dossier or runtime observation.
+
+## UI bypass and probe completion
+
+HotspotModule::CheckHotSpotList at original 0x10010770 tracks a blocking flag.
+The first hit can block lower pass-through hotspots; the actual top hotspot
+is copied into InputConfig+0xc8. Evidence:
+`ev_fb4b6a4c6d412dac8d812e95cd229823e847873816bf4941d0b549aa5ffa2ab0`.
+
+Derived candidate UI-bypass observation: a complete-frame processed mouse pixel
+equal to the probe together with ActionViewON flag 0 indicates no world mouse
+message was processed in that frame. Runtime validation of the AFCM callback
+ordering is still needed before relying on this as a finished skip condition.
+
+No monotonic pick generation or last-evaluated pixel field was found in the
+inspected selection dataflow. This is a bounded static result, not a claim that
+no such field exists anywhere in the whole client. Accumulator rollover alone
+can alias when snapshots skip frames or frame delta exceeds the selection
+interval, so it is insufficient as the sole completion fence.
+
+A minimal passive test observer can record query generation and camera mouse
+coordinates only when 0x3802ae31 is reached, capture final camera identity at
+0x3802aed7 only for that query, and expose this in complete-frame snapshots.
+It must not call SetMousePos, force selection, change the timer or synthesize
+identities. The public driver can require a newer query for the desired pixel
+and a later/current engine hover matching that query's identity. Waiting for
+the engine copy matters because the engine hover cache is copied by a separate
+SetMousePos call and can lag the camera collision result.
+
+The exact ordering of whole AFCM input callbacks relative to n3Playfield::Run
+has not been proven statically here. A generation plus captured result avoids
+depending on that ordering. The retained real trace has compatible staggered
+hover transitions, but static analysis alone does not establish runtime timing.
diff --git a/docs/research-notes/player-follow-research/mass/cache/target-loss.md b/docs/research-notes/player-follow-research/mass/cache/target-loss.md
@@ -0,0 +1,145 @@
+# Follow target loss and explicit stopping
+
+Source-only maintained KKR/LLR/QQR investigation. No original binary, engine,
+native export, runtime call, heap access, client/server process or tracked source
+edit was used. Complete bodies and hashes are in `functions.json`, individual
+`sub_ADDRESS.c` files and `function-ledger.md`. Source-instruction projections
+are comments already present in the maintained C, not newly acquired disassembly.
+
+## Result
+
+Clearing a FollowTarget pointer does not stop a moving PlayerVehicle. For the
+positive-direction moving state, an admitted ordinary CharDCMove action2 clears
+following and also performs the native stop transition. If the server cannot
+know which direction subtype the client currently holds, admitted ordinary
+CharDCMove actions2 and4 cover the two moving direction states: one transition
+matches and the other is rejected. Neither changes the walk/run primary mode or
+preferred mode. No additional null FollowTarget is required for this path.
+
+This is a source-supported packet contract, not a runtime test of that packet
+pair. CharDCMove admission and pose handling still apply; the source does not
+establish that an arbitrary stale or otherwise inadmissible packet will work.
+
+## Evidence ledger
+
+| ID | Complete symbols and initializer linkage | Observed result |
+| --- | --- | --- |
+| L01 | KKR3607e690 and36048260 | Null resolved target skips helper control dispatch. Installer removes an old non-self target listener, stores NULL at vehicle+160 and returns without Halt or clearing +324. |
+| L02 | KKR360476e0, listener vtable36170db8,36048f90; LLR38042810,38042b00,38042bf0 | The target event listener is vehicle+13c. Dispatch calls listener virtual+4, which is48f90; it only writes zero at listener+24, meaning vehicle+160. |
+| L03 | LLR38018990 and overlapping retained entry38018ba3 | With actor+94 nonzero and decremented actor+98 no longer positive, source broadcasts an event containing source actor+20 and integer1 before calling1e8b0 and returning false. Exact packet-to-removal scheduling was not traced. |
+| L04 | KKR3604ba20 | Once following is false, nonzero automatic forward control+324 selects forward/backward seeking. Nulling the pointer leaves this control available. |
+| L05 | KKR360439e0,36043c50,36049130,360447b0,36049830,360447c0,360495c0; callbacks455d0/45910; QQR42011bc0 | Non20 CharDCMove first clears following, then submits its movement event. Events2/4 select the matching stop callback, clear +324, Halt and refresh parameters while preserving primary/preferred modes. |
+
+`tables.json` binds the listener's actual two slots: offset0 ->36049420
+(destructor adjustor), offset4 ->36048f90 (event callback). The DWORD immediately
+after these two slots is the next vtable's RTTI locator3617b078, not a third
+listener method. The whole maintained initializer hashes are verified in
+`verification.json`; the current source ledger contains98 complete bodies.
+
+## Installer and listener contract (L01-L03)
+
+FollowTarget activation3607e690 resolves the payload identity. When the result is
+NULL it jumps to7e784, skipping the helper control dispatch entirely, then calls
+36048260 with the null target. Thus changing the control byte on a null-target
+packet does not obtain a stopping transition through this receiver path.
+
+Installer36048260 compares old and new pointers. If the old nonnull target is
+not the owner, it calls imported RemoveListener at3616fc60 with target+20 and
+vehicle+13c. At482ba it stores the new pointer at vehicle+160. If that pointer is
+NULL,482c0 immediately branches to the return at48421. There is no Halt call,
+velocity write, +324 write or helper event in that branch. If old and new are
+already both NULL, its separate shared path still has no stopping action.
+
+Constructor360476e0 installs listener vtable36170db8 at vehicle+13c. LLR event
+source constructor38042810 stores dispatcher38042bf0 in its listener list+14.
+BroadcastEvent38042b00 walks listener pointers and calls that dispatcher, which
+tail-calls listener virtual+4. The bound KKR callback36048f90 consists only of
+`MEM32(ecx+0x24)=0; ret4`. With this adjusted listener pointer it clears the
+vehicle's +160 target and ignores the event argument. It does not halt, clear
+automatic controls or change helper state.
+
+LLR38018990 has a deferred terminal branch: if actor+94 is nonzero, it decrements
+actor+98; when the counter is no longer positive it broadcasts an event whose
+first DWORD is actor+20 and second DWORD is1, invokes actor+2c helper3801e8b0,
+then returns false. This binds a concrete native publication to the event-source
+dispatch above. The meaning and scheduling of the two actor fields, and the
+precise network-removal caller, remain bounded gaps; no deletion-specific stop
+behavior is inferred from their names. Regardless of which event invokes this
+listener, its complete callback has only the target-clear write.
+
+CharVehicle destructor36047910 calls48260(NULL,2.0,NULL) as cleanup before
+destroying helper/base state. Destroying the follower is a separate path from
+stopping an otherwise live follower when its target disappears.
+
+## Stop response and preference preservation (L04-L05)
+
+PlayerVehicle3604ba20 tests following first. If false, its ordinary steering path
+reads +324. Positive values call imported SeekForward at361702d0; negative
+values select the backward helper. A previously installed automatic +324=1 can
+therefore keep moving after either the null-target installer or listener merely
+clears +160.
+
+CharDCMove activation360439e0 first invokes admission/pose handling36043c50.
+After success, every action except20 clears an existing follow pointer by
+calling48260(NULL,2.0,NULL), then forwards the action to49130. Rotation action20
+has its separate branch and does not perform this follow cancellation.
+
+The event transition builder447c0 accepts event2 when helper+8=3 and helper+c=1;
+it selects helper+8=1, helper+c=0 and callback vtable36170d48 ->455d0. Event4
+requires helper+8=3 and helper+c=2; it selects the same stationary values and
+vtable36170d30 ->45910. A mismatched stop event is rejected. The transition
+driver49830 installs the new helper fields before invoking the callback.
+
+Both callbacks test vehicle virtual+80 (Player implementation360c6b20 returns
+true), call4bca0(0), which clears vehicle+324, then call imported QQR Halt at
+36170344. For the moving vehicle, Halt42011bc0 clears velocity+60/+64/+68 and
+cached speed+d8, and calls the vehicle halt callback. Since CharDCMove already
+cleared following, Player callback4bc80 does not recursively submit another
+follow stop. Both stop callbacks also call47e60 to refresh vehicle parameters.
+Callback45910 additionally restores direction+1; callback455d0 contains other
+animation/strafe handling, retained in full, which is not needed to establish
+the longitudinal stop contract.
+
+For these event2/4 branches, builder447c0 preserves the copied helper primary
+mode+4 and preferred mode+30. It changes only the specified locomotion/direction
+fields. There is no control22/23 mode toggle in the stop response. A single
+action2 is sufficient for the task's explicitly positive-direction moving case;
+the pair2/4 handles either ordinary direction subtype without inventing a
+universal-stop meaning for an unrelated event number.
+
+## Manual turn or mode change after a moving follow
+
+| ID | Complete symbols and initializer linkage | Observed result |
+| --- | --- | --- |
+| L06 | Builder360447c0 table36045220 event9 ->36044c57, callback36170cdc+4 ->360459f0, setter3604bcb0 | Turn changes turn control+32c; it does not clear forward control+324 or Halt. |
+| L07 | Builder360447c0 events22/23 ->36044ec4/36044e6f, callbacks46270/46080, setter4bd20 | Ordinary walk/run callbacks refresh parameters and change primary/preferred mode while retaining automatic forward control+324. |
+
+The non20 CharDCMove cancellation sequence in L05 applies before events9,22 and23
+are submitted, so these commands clear following. Installer48260 leaves the
+automatic forward control intact. Event9 selects turn callback459f0, which reads
+the locomotion helper and calls4bcb0 with a turn-rate constant. Complete setter
+4bcb0 only stores its argument at PlayerVehicle+32c. No forward-control write or
+Halt occurs in this callback; the direction subtype is preserved by this event's
+builder branch.
+
+Walk22 and run23 select callbacks46270 and46080. They begin by refreshing47e60
+and explicitly set preferred mode+30 to2 or3 respectively. In the ordinary
+ground path with previous primary mode2/3, neither callback calls4bca0 or Halt,
+nor does either clear longitudinal control+324 or direction subtype. Their
+special old-primary-mode7 path clears vertical control using4bd20(0), whose
+complete body writes only PlayerVehicle+330. Other animation/camera handling is
+retained in the full bodies; this investigation does not extend the ordinary
+ground conclusion to every flight, swimming or exceptional mode interaction.
+
+Therefore a positive-direction follow that physically started and installed
+automatic forward control1 continues ordinary forward steering after a manual
+turn or walk/run change cancels the follow target. It does not become stopped
+merely because the follow originally started while the character was at rest.
+For that bounded case, the server should reanchor to the accepted manual packet
+pose, preserve the already-active forward control1, and then apply the manual
+action: explicit forward/backward commands1/3 replace it, matching stops2/4
+clear it, while9/22/23 retain it. Actual native state is the source of this
+conclusion; testing nonzero server follow velocity is an implementation proxy
+for the already-started positive-direction native state. A settled follow must
+not be silently assigned forward1 solely because it once had a follow target.
+Negative-direction steering remains outside this implementation scope.
diff --git a/docs/research-notes/player-frozen/research/sneak/README.md b/docs/research-notes/player-frozen/research/sneak/README.md
@@ -0,0 +1,184 @@
+# Native sneak producers and helper lifecycle
+
+Source-only REA step6. Inputs are maintained `client/game/*/*.c`, inert
+`client/data/*_dll.c` and retained source ledgers. No original PE/DLL reads,
+analysis sessions/exports, native or guest execution, clients/servers, tracked
+edits or delegation occurred. `function-ledger.md` and `functions.json` retain
+90 complete bodies with exact source paths/lines and source/body SHA256.
+`metadata.json` binds initialized dispatch, callback RTTI, imports and constants.
+`verify_sources.py` checks those identities and the finite transition examples.
+
+The helper26/32 physical and presentation contract is separable from the public
+sneak request: **special action19 sends CharacterAction163; native actor event162
+emits movement26. The historical server decision connecting them is unresolved.**
+Do not infer unconditional concealment, skill success, visibility policy or a
+new external movement whitelist from helper acceptance.
+
+## Producers and UI
+
+- EER `sub_2D0010D0` (`client/game/eer.dll/lifted-0000.c`; exact manifest path
+ is in `functions.json`) registers logical496 -> `sub_2D006090` at2D00164C..1656.
+ The callback checks engine global2D01752C then tail-calls IAT2D00947C, bound to
+ `N3Msg_SneakToggle360E2940`. This maintained exported body is a single return.
+ This source chain therefore supplies no entry request or physical transition.
+ It does not establish a working canonical key binding.
+- Owned special action19 goes through36057630/36057680. The action must exist
+ in the manager and entry+1C bit1 must be clear; otherwise the method returns
+ false with the initialized unavailable-action message. Initialized selectors
+ 360578BC/36057884 map19 ->360577D7 ->`N3Msg_TryEnterSneakMode3602CE50`.
+ That method constructs CharacterAction163 through3607D4B0 and sends it with
+ `n3Dynel_t::SendIIRToObservers` (IAT3617004C). It has no local skill roll,
+ helper/state/combat check or direct movement26 call.
+- The SimpleChar CharacterAction receiver3607D640 calls virtual+A4, bound to
+ 3606FA30. Its initialized event163 target is default36070BCF (no operation);
+ event162 target360709D9 calls3605A9A0, which sends MovementChanged26 with
+ scalar0. This distinguishes request and acknowledgement; it does not recover
+ the server acceptance or skill policy.
+- Special action79 maps360577E7 ->MovementChanged32 with scalar0. Feature-entry
+ helper3604D910 toggles the owned action from19 to79; feature-exit3604D970
+ toggles79 to19.36057990 finds the paired action, clears its first enabled byte
+ and sets the selected byte in the manager lookup. UI operations and localized
+ start/end messages are conditional on IsClientChar (IAT361700D4); feature-bit
+ mutation also occurs for other actors.
+- Concrete internal32 producers:36057C40 tests Features224 mask128 before
+ sending32. Its callers include DropItem3602A520,3605E4E0 and360614E0; the latter
+ additionally rejects byte94==1 and identity type50000, and requests32 only
+ for an owned actor. These call sites do not prove every item/attack/UI action
+ universally exits sneak.
+
+## Admission layers and preferred mode
+
+The ordinary MovementChanged sender36022FC0 suppresses action26 when actual
+helper primary8. This is a producer guard, even though helper8 itself permits26.
+The common CharDCMove receiver36043C50 additionally rejects26 unless
+`actor->WeaponHolder(+16C)->state(+50)==1` and effective stat410(InFight)<=0,
+before its normal controlled-owner/pass-on/pose rules. WeaponHolder class
+identity is bound through initialized vtable36171500, not inferred from the
+field name. Other paths that submit helpers directly do not acquire this
+CharDCMove-specific guard automatically.
+
+| Existing primary | helper predicate26 | helper predicate32 |
+| --- | --- | --- |
+|1 frozen | reject | reject |
+|2 walk | allow | allow |
+|3 run | allow | allow |
+|4 swim | reject | reject |
+|5 | allow | allow |
+|6 sneak | allow | allow |
+|7 fly | reject | allow |
+|8 sit | allow | reject |
+
+These are predicate results before builder. Builder360447C0 has no additional
+state condition for26/32: initialized action26 branch36044F5F selects primary6
+and callback36170C58+4=36046630; action32 branch36044F93 selects preferred+30
+and callback36170C4C+4=36046740. Submit commits NEW helper state before Run.
+Neither26 nor32 changes preferred. Player-helper constructor360445D0 initializes
+preferred2; ordinary22 callback saves2,23 builder/callback saves3. Do not save
+old primary into preferred on entry26.
+
+All existing helper pairs/secondary are retained except the generic accepted
+builder copy quirk E.state=OLD S.state. No full stop is part of26/32. Primary6's
+predicate permits every action ID, but the builder still rejects unsupported
+IDs; that does not authorize their network provenance. Ordinary directional
+movement does not inherently stand/leave sneak. Follow posture permits6
+(separate helper1/8/9 exclusion; retained follow ledger).
+
+## Exact callback effects and seated entry
+
+Enter26 `36046630` runs in this order:
+
+1. Refresh36047E60: mass/max-speed/max-force/brake parameters and raw173=NEW
+ helper primary6. Primary6's initialized refresh dispatch36048010 selects
+ default36047F7E, base speed1.5, then36047A20. It does not select the
+ swim/stat138 speed branch36047D60. Existing encumbrance adjustment remains
+ in360479B0/E0/F0. SetMaxVel42011C40 updates max-speed and its derived threshold,
+ not current V or q; other complete physical setters are retained too.
+2. Resolve actor, its lazy controller36071DD0 and enter-feature3604D910.
+3. Inspect NEW F.state: if3 schedule moving sneak animation using controller
+ metadata3606C640 and animation mode2. Otherwise inspect NEW S.state: if1
+ schedule its idle animation with mode4. Both clear animation controller+5C
+ and use360492F0 for playback rate. There is no OLD-primary8 special branch.
+
+Exit32 `36046740`: Refresh36047E60 using the already restored preferred primary;
+resolve actor ->36071DD0 ->3604D970; rebuild current-mode animation36044470.
+Neither callback directly writes raw425/430, SetStationary, cached controls
+324/328/32C/330, current V, independent q, falling-enabled, falling state, or Halt.
+No gravity suspension or general kernel pause is introduced by sneak. Player
+longitudinal steering3604BA20 only excludes1/8/9;6 continues ordinary steering.
+Lateral3604BAC0 and turn3604BC20 do not add a sneak exclusion.
+
+In particular helper-only26 applied from8 does NOT invoke LeaveSit, restore
+425100/4300, clear inputs or Halt. It retains seated raw42525/4302, with raw173
+now6. The ordinary sender prevents this specific request from8; do not silently
+replace this difference with a universal stand-before-sneak callback. If restored
+preferred2/3 already coexists with retained4302,32 likewise does not reset430.
+The separate raw-stat/snapshot ledger establishes direct430 writes do not select
+helper8.
+
+## Features128, recursion, restrictions and other exits
+
+3604D910 queries Features224 &128. Only when absent it calls36059930(mask128),
+which increments that bit's signed reference counter and sets raw224 when the
+counter becomes positive. It then updates owned action19->79 and emits initialized
+`You start sneaking.`. Repeated entry with the bit present skips this block.
+3604D970 symmetrically acts only when the bit is present:36059A80(mask128)
+decrements the counter, clears the bit when its counter is nonpositive, then
+updates owned action79->19 and emits `You end sneaking.`.
+
+36059A80 computes changed bits after the raw stat write. Only if bit128 actually
+changed AND the live vehicle helper is6 does it Submit32. Thus:
+
+- Ordinary32 has committed preferred2/3 before3604D970 removes128; the callback
+ sees live2/3, so no recursive32 is submitted.
+- Calling3604D970 while still6 clears128, submits32 once; nested LeaveSneak sees
+ the now-clear bit and returns. The outer exit performs the owned UI/message.
+- Direct restriction application clearing128 while6 also submits32 once, but
+ nested3604D970 sees a clear bit and skips its UI/message block. Do not assume
+ that every feature-bit removal emits the same UI message.
+- If a counter remains positive and the bit does not change, no32 is submitted.
+ Do not replace these helpers with an unconditional raw XOR.
+
+RestrictAction handler360C17F0 uses argument73 as mask; context+1C bit0 selects
+removal36059930, otherwise application36059A80. A real movement-permission4
+application can Submit21; frozen callback36046D60 removes sneak when OLD6.
+Accepted walk22/run23/swim24/fly27/sit28 callbacks also call3604D970 for OLD6.
+Their NEW primary is already committed, so ordinary exits do not restore a
+second mode over that transition. Sit28 retains its independent movement-state
+admission, Halt, raw425/430 and animation rules in the posture ledger.
+
+WeaponHolder constructor360783E0 initializes state50=1. Its36078FC0 path calls
+3604D970 on the actor (and on an owned target in its guarded branch), and stores
+state50=2 later. Other concrete controller/nano action paths3604CCC0,
+360654A0 and36078A40/BC6/C52 also remove sneak, with their full guards retained.
+This establishes these source exits, not a universal historical server
+combat/concealment policy or a guaranteed concealment success formula.
+
+## Snapshots and relay
+
+Player snapshot reader3604BDB0 ->36049220 ->36047160 ->360496B0 copies the ten
+helper bytes (primary,pairs,secondary), then a signed32 preferred value into+30,
+followed by four float controls324/328/32C/330. This bypasses transition Run.
+SCFU36082AD0 invokes virtual9C at36082D50, then parameter refresh; the outer
+360821D0 invokes360480E0(false) at36082846. Its presentation36046F80 sees helper6
+and calls3604D910 at360470A5 to establish Features128 and sneak animation.
+It does not initialize425/430 for6. FullCharacter's later raw stat lists and
+controlled refresh are separately bound in the retained snapshots ledger;
+raw173 is refreshed from helper, while retained425/430 survive.
+
+Existing actors are not reconstructed by another SCFU. A normal admitted live
+CharDCMove26/32 applies pose first, cancels follow for non20, then submits the
+same action. It does not roll back earlier pose/follow changes if helper Submit
+rejects, and it does not translate26/32 into other wire IDs.26's WeaponHolder
+and InFight guard applies to receivers as well as local replay. Keep admission,
+authoritative server state and observer delivery separate; do not blindly relay
+otherwise unsupported external action IDs.
+
+## Bounded missing public policy
+
+The maintained client establishes the physical callbacks, UI requests, local
+entry guards and concrete exit paths. It does not establish the historical
+server's CharacterAction163->162 decision, concealment/perception rolls, skill
+thresholds/cooldowns, opponent detection/visibility, authoritative combat policy,
+or a successful ordinary496 producer (its export is empty). These remain public
+sneak lifecycle gaps. A physical helper callback milestone can be implemented
+and tested independently without declaring that public request fully supported.
diff --git a/docs/research-notes/player-trade-research/native/README.md b/docs/research-notes/player-trade-research/native/README.md
@@ -0,0 +1,235 @@
+# Original 14.9.1 player trade protocol
+
+Scope: read-only inspection of shipped original binaries and existing matching
+REA evidence. No server, browser, client, or database mutations were performed.
+This describes the client contract, not recovered original server source.
+
+Follow-up: `remote-template-delivery.md` establishes a simpler remote counted
+template reconstruction using AddTemplate on the remote subject followed by
+Trade4. It supersedes the unresolved-delivery boundary below for that composed
+path. Runtime verification and shadow-inventory cleanup are now implemented and
+verified in `local/player-trade-live-smoke/`, including32 actual cancel cycles.
+`cash-consent.md` subsequently establishes Enter's local-only cash commit and
+supersedes the blanket two-sided cash-freeze recommendation below.
+`feedback.md` establishes the original numeric FeedbackIIR reader and catalog
+messages; `local/trade-feedback-smoke/` verifies both recipient perspectives.
+
+## Artifact identity and retained evidence
+
+All addresses are original x86 virtual addresses, not lifted WASM addresses.
+Ghidra 12.1.2 profile digest:
+`17fae9135c0f647ce7271e2b74936949ebe245320c1606a223c86bce0b2b7bed`.
+
+| Artifact | SHA-256 | Local bundle |
+| --- | --- | --- |
+| kkr.dll | a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0 | kkr-evidence.json, kkr.snapshot.json |
+| ddr.dll | 3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883 | ddr-evidence.json, ddr.snapshot.json |
+| eer.dll | 99bc32ca57356aa227e6f78dfe544f8fe16f9ca694a6dee6d3846a36c5a2a6ff | eer-evidence.json, eer.snapshot.json |
+
+Original artifacts live in `anarchy-vanilla-14.9.1/`.
+Pseudocode extracts in this directory retain their address selectors in names;
+interior selectors may canonicalize to the entry below.
+
+Previously retained `local/shop-research/wire/batch1.json` through `batch8.json`
+have the same KKR hash and were reused, not treated as another game version.
+`reused-evidence.json` and `reused-*.c.txt` retain these observations.
+
+| Evidence ID | Main coverage |
+| --- | --- |
+| ev_7b9d6df644c4ebba9d00c0111dc0e7583567a4a335ebe3bd0d3704efe782ca1c | KKR Add, Remove, Cash producers; TradeIIR constructor |
+| ev_5fe35f4305fb3b2ec2b32dd82476cb8f06a0e6e886698554938a898003b9f24b | KKR Start, Accept, Abort producers; TradeIIR reader/writer/handler |
+| ev_e8d99b8728b013c566e5e8d7e4f52959628066199d83239630c958bb67715e60 | KKR TradeIIR action dispatcher |
+| ev_3b068fe016d29c9c6d60176e86341dcd106df72df90b32492a9c956186bf61c7 | KKR all action handlers, start/accept/abort/complete/add/remove/peer/cash |
+| ev_83bfca3addecffce5689c7919fc1da766ee6040815026f5eb8b07f1766299fca | KKR validation, inventory selection, remove and first-free helpers |
+| ev_38cafa740984bd47ca82588bce33953cc0ac8a9fa5711e837bc18829a26a3608 | KKR actual row constructor, identity/count/page lookup |
+| ev_c377df0a78b0a09634426321e7c2edd319bad2630359ebf2582069822a6b2017 | DDR native trade callbacks and start setup |
+| ev_14ec02170beb079a5d02c4fd0900fa29e4fbf2ad9cc7b1f22a080eb443932971 | DDR acceptance indicator and cash UI |
+| ev_54f573e7f808a88dcbfa7bd04148f5d080b9b5e15b33b89b502baa39c4dea19f | DDR controls and Accept click handler |
+| ev_e80c5381d39b65a7616e28888f4b02fe7d9dbfaa12bd76ee413104d34a9549a6 | DDR constructor wiring and trade state |
+| ev_d0d0fa19d74c314b98b189846115599eb982a78f62a06cd773e166e8cbba81c8 | EER UI-to-KKR TradeAccept bridge |
+| ev_32786111da866c2a088451e1f3ee5895b3eb57b7060305b9b7e54cc6b9383397 | KKR inventory constructor: ordinary78, TradeInv30 |
+| ev_f7fd2a9bd0b71b9f3a4a759510fc2664d531815c60d295dbc67a327c5e8fdd27 | Complete row marker sets flags0x20, preserves count |
+| ev_501edf9c1ea8290ea0c8e874ad792f5655da0d405e266c7d8e358dc1cfdd72d4 | InventoryUpdate SimpleChar branch only supports overflow110 |
+| ev_ca4c61b90349a7bce8a2af5220109b0095dcc42655c12c2189d8ff0b32e26dca | FullCharacter applies inventory to named SimpleChar, plus many other effects |
+
+## TradeIIR wire and topology
+
+Message key `0x36284f6e`. Body is six network-order DWORDs:
+`1, action, A.type, A.id, B.type, B.id`. Outer N3 subject is separate.
+Reader10084b80 rejects action outside0..8. Handler10084c50 resolves subject as
+SimpleChar, obtains helper10071f90, dispatches through100780b0.
+
+Let A and B below denote players; `zero` is `(0,0)`.
+
+| Action | Client request | Receiving-client meaning |
+| --- | --- | --- |
+| 0 Start | subjectA, first=playerB, second=zero | Initializes subjectA partnerB, recursively initializes B partnerA; local actor opens UI |
+| 1 Accept | subjectA, first=zero, second=zero | LOCAL subject's TradeAccepted callback turns peer lamp green; notify B with subjectB for A's acceptance |
+| 2 Abort | subjectA, first=(0,showMessageBool), second=zero | Restores subject offers first-free; recursively aborts partner; closes local UI |
+| 3 Complete | server response, first/second zero | Transfers subject's entire TradeInv and offered cash to partner; does not recursively complete partner |
+| 4 Add own | subjectA, first=playerA, second=(104,nativeRootSlot) | Moves entire own row into first-free TradeInv slot |
+| 5 Remove own | subjectA, first=playerA, second=(108,tradeSlot) | Moves selected TradeInv row to first-free ordinary slot |
+| 6 Cash | subjectA, first=(0,signedCash), second=zero | Stores subject offered cash; remote subject emits opponent cash UI callback |
+| 7 Add peer dynel | server response subjectB, first=playerA, second=actualItemIdentity | Resolves A-owned SimpleItem, creates row in A.TradeInv displayed by B |
+| 8 Remove peer dynel | server response subjectB, first=playerA, second=actualItemIdentity | Removes row matching actual identity from A.TradeInv |
+
+A single Start subjectA can be sent to both clients; both actors are initialized
+by recursion10077370. Unlike vending, there is no machine catalog initialization
+or `(111,catalogTag)` second identity for this player path.
+
+Own ordinary inventory sources48..77 map to saved server slots64..93. TradeInv
+slots0..29 are never translated. Local GUI identities are page108; remote GUI
+identities are page208. Helper10061800 maps208 to the partner's TradeInv.
+
+After successful durable commit, both directions Complete are needed on both
+clients: subjectA then subjectB (or reverse), once each. Each Complete moves only
+that subject's offers and subtracts that subject's cash/adds it to its partner.
+Sending only recipient Complete leaves its received offers on the wrong actor.
+Absolute final cash correction, if used, belongs after both native predictions.
+
+## Offers, quantities, and the unresolved remote stack path
+
+Own Add handler10077aa0 requires subject in trade, first identity=subject owner,
+valid ownership via100619d0, and common validator10060510. It rejects when either
+player helper byte+0x10 is true, then moves entire row through100601b0.
+The move1002d3c0 preserves flags, ushort count, instance identity, QL and templates.
+Own Remove10077cc0 has the same byte+0x10 rejection and uses10060090.
+
+Peer Add10077e10 requires recipient in trade and first identity=its partner.
+It verifies ownership on that partner, then10061b40 resolves the actual dynel
+and calls1002d870. This constructor explicitly makes flags0x22 and count1,
+copies actual identity, and reads QL701/low702/high703 (high0 falls back to low).
+It does not read Energy26 or MultipleCount412 to populate the row count.
+Peer Remove10077ee0 calls10061ba0/1002d740 to remove by actual identity.
+
+Read-only lifted-source cross-check: original1005de70 (lifted3605de70) in
+`client/game/kkr.dll/lifted-0028.c:14613`, reached by GetSkill at original1002bd80,
+returns the row count for stat412. For actual rows only stats26 and8 bypass to
+the live dynel first. Therefore supplying dynel stat412 does not correct a page208
+quantity query; row count must be correct. This cross-check was not a new REA
+observation and should not be confused with the original-binary Evidence above.
+
+Therefore action7 alone demonstrably does NOT convey a template stack count.
+Sending a full item dynel plus action7 is sufficient for a count1 actual object,
+but is not evidence for a correct count25 template stack. Do not silently make
+stacks count1 or infer that Energy26 equals the row count.
+
+InventoryUpdate handler100b0cd0 was examined as a possible solution. Its target
+Chest branch replaces contents. Its SimpleChar branch10062ec0 accepts only
+handle110/overflow; it does not replace TradeInv for handle108 or208.
+FullCharacter handler1007eea0 overlays rows on the named SimpleChar even for a
+remote actor, but also reapplies equipment and other state and effects. A seeded
+remote ordinary row followed by action4 could preserve full rows in principle;
+this is an untested reconstruction, not recovered original trade delivery.
+
+Complete10077700 preserves whatever count the moved row actually has.
+Helper1002dd90(slot,1) sets row flag0x20; it DOES NOT set count to1. This matters
+when distinguishing a correctly seeded/copied template row from action7's new
+count1 row. The historical remote template-stack transfer path remains unresolved.
+
+## First-free restoration and completion
+
+TradeInv has30 slots, constructed at1005c400 with1002d080(30,owner).
+Ordinary inventory has78 slots total: equipment0..47, carried48..77.
+New offers allocate first-free TradeInv0..29. Removing a row leaves that trade
+slot vacant; later offers reuse its first free slot.
+
+Remove10060090 selects first-free ordinary from48 and moves the selected row.
+Abort100774a0 scans own TradeInv in ascending slot order and restores each row
+to first-free ordinary from48. There is no original-source-slot bookmark.
+It clears TradeInv and recursively aborts the other actor after clearing its own
+trade flag, preventing endless recursion.
+
+Consequently server reservations at original source slots are only staging.
+Before acknowledging Remove/Abort, atomically save the same first-free final
+layout. Example: occupied saved64 and70 offered in that order, with65 free;
+Abort restores them to64 then65, not64 then70. Otherwise client and DB diverge.
+Cancelling before other inventory actions avoids source reservation collisions
+but does not remove this first-free requirement.
+
+Complete scans source TradeInv ascending, placing each into partner's first-free
+ordinary slot. It reparents actual dynels to partner. A portable bag occupies
+one root slot; transferring its children is a server ownership transaction and
+must preserve their identities/counts. Client Complete does not reconstruct
+authoritative bag contents for the server.
+
+## Native UI acceptance and consent
+
+DDR10048870 first calls10049090: parse cash withatoi, cap at player cash stat61,
+store view+a0, send Cash6. Cash6 therefore precedes Accept1 even if unchanged.
+For player trade it then sets one-shot view+0x89 and sends AFCM9/event0x16c only
+if that byte was false. EER100034c0 directly calls KKR TradeAccept1.
+
+Incoming Accept10077450 only calls the local owner's callback. DDR10048e70
+sets view+0x88, green lamp visible/red hidden, and waiting overlay visible.
+This is the opponent accepted indication. An A acceptance should reach B as
+subjectB/action1, not as an own-A echo that wrongly turns A's peer lamp green.
+
+Start DDR100485b0 resets bytes+0x88/+0x89. No Unaccept action or post-mutation
+reset was recovered. No second confirmation dialog was found in this path.
+Actions7/8 are peer item add/remove, not final-confirmation states. Generic server
+question dialogs were not exhaustively excluded; a later2009 forum report is
+not evidence that a second stage existed in14.9.1.
+
+The shipped help `cd_image/text/help/The Trade Window.txt` independently says
+both players press ACCEPT to complete and identifies the red-to-green peer lamp.
+Its SHA-256 is315fbe0b3b1f7ef4be7cf01e688779f4ddd38c20fd2cb920782730c33445723e.
+
+Implementation recommendation (inference, not recovered server policy): freeze
+both offers and cash after either accepted; allow unchanged Cash6 echoes but
+reject actual mutations until cancel/restart. Merely clearing server acceptance
+after a mutation cannot obtain a second click from this one-shot native UI.
+The legacy request has no basket revision or nonce; freezing ensures a queued
+old Accept cannot approve a different basket within one session.
+
+## Admission and rejection evidence
+
+Start producer1001f840 requires a different SimpleChar target, stat388=0,
+three-dimensional distance <=5, and no conflicting target trade. If both players
+are already in a trade it emits Abort instead. Start handler10077370 requires
+subject flag8 clear, internal flags+0x11c bit0x4000 clear, and target dynel exists.
+No side/faction restriction was recovered.
+
+Add producer1001fb50 and common validator10060510 reject equipped sources,
+foreign ownership, missing/full destinations, NoDrop0x04000000 for player trade,
+and unsuitable sources. Offering directly from inside a container is explicitly
+rejected with `Can't trade from container (yet)..`; move it to ordinary first.
+Offering an entire ordinary backpack is supported.
+
+At100612cf common validator checks actual Chest sources (except bank page105):
+1008bdd0(0x04000000) rejects any NoDrop child, and1008bdd0(0x08000000) rejects any
+Unique child. Thus Unique-inside-bag rejection exists in14.9.1 itself and is not
+just the later forum claim. This is independent of recipient owning a duplicate.
+
+The client also contains original server-error text for full recipient inventory,
+full own inventory, NoDrop basket, and recipient already owning Unique. These
+strings are registered by10040b00 as errors21,24,46,47 respectively; their only
+string xrefs lead to the message catalog, not server validation code. They support
+the existence of these failure outcomes but do not prove exact original server
+counting rules, bank inclusion, or unique-template matching.
+
+Server must separately enforce current sessions/playfield/range/death/loading,
+nonnegative bounded credits, actual inventory ownership, NoDrop/Unique checks,
+destination capacity, and atomic persistence before success. Exact original
+server distance-on-completion, combat policy, Unique search across bank/reclaim,
+and credit ceiling were not established from these client paths.
+
+## Remaining work / confidence limits
+
+1. Recover or experimentally verify a remote template-stack row delivery path
+ preserving actual IDs, QL and ushort quantities; plain action7 is insufficient.
+ Sending both Complete directions and then the existing syncStacks ordinary
+ rebuild is a plausible correction for final received quantities. AddTemplate
+ creates proxies with null client IDs, while saved server instance IDs remain
+ intact. This must be manually tested and does not by itself fix the quantity
+ displayed in the peer basket before consent.
+2. Manually verify both clients' inventory, cash, bag contents and reconnect after
+ success/cancel/remove with noncontiguous original slots and filled inventories.
+3. Verify queued/malformed/replayed requests, unchanged Cash6-before-Accept, failed
+ persistence, disconnect, zone/death, Unique children and recipient duplicates.
+4. If adding a final confirmation dialog for modern safety, label it a deliberate
+ server policy until a14.9.1 server-driven dialog contract is proven.
+
+All evidence is static client evidence unless explicitly marked inference.
+All three owned REA sessions were exported and closed. Final KKR bundle contains
+153 records; binary_session subsequently reported open=false.
diff --git a/docs/research-notes/player-trade-research/native/cash-consent.md b/docs/research-notes/player-trade-research/native/cash-consent.md
@@ -0,0 +1,114 @@
+# Cash field Enter, Accept, and consent
+
+Read-only follow-up from existing native evidence and lifted source. No source
+edits, tests, runtime sessions, or REA lifecycle calls were made. The parent
+performed the cited two-client runtime experiment independently.
+
+## Result
+
+The parent's observation matches the original client path: Enter commits the
+cash field locally; ACCEPT sends Cash6 and then Accept1. Enter's configured
+handler does not send Cash6. The previous recommendation to freeze BOTH sides'
+cash immediately after either Accept therefore prevents ordinary two-sided
+cash offers, because the other player's first Cash6 may only arrive with their
+Accept. This is a server policy issue, not evidence of a WASM Enter regression.
+
+EER event0x16d is AbortTradeMessage at original10003480. It receives a boolean
+and calls TradeAbort. It is unrelated to setting cash.
+
+## Native field event path
+
+DDR TradeView constructor100479c0 builds TextInput configuration with:
+
+- +0x14 = module0x33;
+- +0x18 = event0x16e;
+- +0x24 = flags0xbc;
+- UpdateCallback =10049070, which only marks the cash indicator dirty.
+
+The adjacent configuration value2 is not the flags field. Exact source is
+`client/game/ddr.dll/lifted-0018.c:5210`, instructions2b047f2e..2b047f56.
+Existing REA evidence is ev_e80c5381d39b65a7616e28888f4b02fe7d9dbfaa12bd76ee413104d34a9549a6
+in ddr-evidence.json, with copied constructor ddr-build-0x100479c0.c.txt.
+
+CCR TextInput constructor original1001e660 copies module/event into object
++0x30/+0x34 and flags into+0x44. The focused TextInputModule's
+TerminateTextMessage1001e060 tailcalls focused input SendText1001f3e0.
+SendText sees flags0x10 and invokes configured AFCM module/event without the
+string payload. Flags0xbc includes bit4, so it retains the field text afterward.
+
+These CCR steps are source observations, not fresh original-binary REA evidence:
+
+- `client/game/ccr.dll/lifted-0011.c:1407`, sub_2701E660 constructor;
+- `client/game/ccr.dll/lifted-0010.c:5825`, sub_2701E060 TerminateTextMessage;
+- `client/game/ccr.dll/lifted-0011.c:14594`, sub_2701F3E0 SendText;
+- `client/game/ccr.dll/lifted-0010.c:5353` registers TerminateTextMessage for0x49.
+
+`tmp_ccr_exports.py` decodes the export table from existing generated source
+client/data/ccr_dll.c and resolves these exact symbol names/RVAs. It does not
+read a new native artifact or create a REA session. The final OS-key-to-AFCM0x49
+binding was not independently recovered in this bounded source pass.
+
+DDR TradeViewModule constructor10049170 registers SetCashMessage10049410 for
+event0x16e. SetCashMessage directly calls10049090. That helper:
+
+1. Reads current cash stat61 through N3InterfaceModule.
+2. Parses TextInput string usingatoi and caps above available cash.
+3. Stores the result at TradeView+a0.
+4. Emits AFCM module3/event0x97 to redraw.
+
+It makes no network call. The retained evidence is
+ev_c377df0a78b0a09634426321e7c2edd319bad2630359ebf2582069822a6b2017
+and ev_14ec02170beb079a5d02c4fd0900fa29e4fbf2ad9cc7b1f22a080eb443932971.
+Extracts: ddr-0x10049170.c.txt, ddr-0x10049410.c.txt,
+ddr-0x10049090.c.txt.
+
+## Native Accept path
+
+DDR10048870 unconditionally first calls10049090 again, then invokes
+N3InterfaceModule::N3Msg_TradeSetCash(view+a0). It subsequently emits
+module9/event0x16c once per session, which EER100034c0 forwards to KKR Accept1.
+Therefore even clicking ACCEPT without pressing Enter first picks up the latest
+field text; clicking ACCEPT again still sends Cash6 before the one-shot check.
+
+Evidence: ev_54f573e7f808a88dcbfa7bd04148f5d080b9b5e15b33b89b502baa39c4dea19f
+and ev_d0d0fa19d74c314b98b189846115599eb982a78f62a06cd773e166e8cbba81c8.
+Extracts: ddr-controls-0x10048870.c.txt, eer-0x10003480.c.txt,
+eer-0x100034c0.c.txt. EER registration is in
+`client/game/eer.dll/lifted-0000.c:512` for Abort0x16d; Accept0x16c is nearby.
+
+KKR Cash6 producer100200d0 packs first=(0,signedCash), second=(0,0).
+There is no separate cash finalization stage or trade revision in this packet.
+
+## Browser keyboard source boundary
+
+The current window adapter maps SDL_RETURN to VK13/scan28 and keypad Enter to
+VK13/extended scan0x11c. KEYDOWN/KEYUP become WM_KEYDOWN/UP. TranslateMessage
+uses key_character, which returns13 for unmodified Enter, then queues WM_CHAR
+0x102 preserving the original key flags. See client/runtime/linux_window.c
+around938,1065,1243 and1287.
+
+client/browser/index.html around910 only intercepts an open HTML menu/chat, Tab
+focus capture, and explicit keypad forwarding. Ordinary Enter with game canvas
+focus has no suppression branch. Keypad Enter is forwarded to browser_input_key.
+Existing browser_camera.c test around305 checks Enter down/up queue ordering;
+character translation is separately exercised around196. These existing tests
+were read, not rerun in this worker. No live evidence here proves delivery of a
+specific Enter press, but the absent Cash6 is expected even when Enter succeeds.
+
+## Consent policy and confirmation limit
+
+Historical server behavior remains unresolved. The original native Accept
+callback still provides one-shot UI acceptance, and no second trade-specific
+confirmation stage was found. Generic server-driven questions were not
+exhaustively excluded. Later2009 descriptions alone cannot require a14.9.1
+confirmation box or justify inventing additional TradeIIR actions.
+
+The parent selected this implementation policy, explicitly inference: freeze an
+accepted actor's own promise, while allowing the still-unaccepted actor to add
+items or increase cash after peer acceptance. Reductions after peer acceptance
+are rejected/cancelled. This admits the ordinary initial0->positive Cash6 on
+their Accept without reducing what the already-accepted peer saw. Admission,
+Unique checks and destination capacity still apply to additions.
+Changes making a previously accepted basket worse need cancel/restart or a
+separately established confirmation protocol. Merely clearing server acceptance
+cannot obtain another native Accept from the one-shot UI.
diff --git a/docs/research-notes/player-trade-research/native/feedback.md b/docs/research-notes/player-trade-research/native/feedback.md
@@ -0,0 +1,54 @@
+# Original trade rejection feedback
+
+Target: original14.9.1 kkr.dll, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Complete retained evidence: feedback-evidence.json,168 records. Existing catalog
+and local validator evidence remains in kkr-evidence.json/checks-0x10040f1c.c.txt.
+
+The registered FeedbackIIR_t factory1000e6a0 allocates0x24 bytes and calls
+constructor1007e180. Registration1000e720 associates it with FeedbackIIR_t;
+the original native name hash is0x50544d19. ReadSubClass1007e1e0 reads exactly
+one network DWORD into object+0x20, without a body version or text payload.
+Vtable101716fc contains Run1007e210 at+8. Ghidra does not define that tiny Run
+as a procedure; original bytes `8b412050e8b736fcff83c40433c0c3` and generated
+client/game/kkr.dll/lifted-0037.c sub_3607E210 prove it pushes object+0x20,
+calls100418d0 and returns zero.
+
+Lookup100418d0 resolves the ID in the catalog populated by10040b00, then calls
+1001c8c0 with the corresponding text and channel0. The latter calls the original
+ClientInterface_t::CMsg_ChatText. Unknown IDs print Missing feedback rather than
+establishing a new contract. No arbitrary text needs to be supplied by the server.
+
+| ID | Original text | Selected recipient |
+| --- | --- | --- |
+|21|Other player's inventory is full, can't complete trade! (LF)|Donor|
+|24|Your inventory is full, can't complete trade! (LF)|Full recipient|
+|47|Your trade partner already has this unique item...|Donor|
+|48|You already have this unique item...|Duplicate recipient|
+
+Exact strings and IDs are observed original bytes. Choosing each participant
+according to the text's perspective is a reconstruction policy; the original
+server's routing, multi-error priority and duplicate scope are not recovered.
+NoDrop46 also exists, but original clients normally explain that rejection
+locally before sending an offer. This change does not expand its server routing.
+
+The server first commits cancellation/restoration for both owners, then emits
+one FeedbackIIR to each exact participant. A failed restoration emits neither
+Abort nor feedback and retains the draft for retry. Successful trades and
+ordinary decline do not emit these rejection codes. Neither feedback nor
+cancellation spends credits or changes ownership.
+
+Evidence IDs:
+
+- ev_f2966a3bd9cd8c65ae89bd2886ae0f82435269db8255fbc3a5d839883f02437e:
+ catalog10040b00.
+- ev_aae40610e13b60bd7e0b5cd6efe9a26b390b062cfe356c28405ce5dc326c48f4:
+ exact original Run bytes1007e210.
+- ev_fa5c33ccc6de7039f9b828d2e28c5d75a3c19b840461b596f8ffb66f8d2fc505:
+ original vtable bytes101716fc, reader and Run pointers.
+- ev_baa3aaff0a69d1b64c6f75b836dba1b6f33c6e6d1cf42c01f6a128048b774e4f:
+ Run vtable incoming reference10171704.
+
+Runtime verification and exact ownership snapshots are retained separately in
+local/trade-feedback-smoke. Read-only heap probes inspect native chat output;
+real mouse/keyboard input initiates and accepts each trade.
diff --git a/docs/research-notes/player-trade-research/native/remote-template-delivery.md b/docs/research-notes/player-trade-research/native/remote-template-delivery.md
@@ -0,0 +1,129 @@
+# Remote template delivery through existing native messages
+
+Read-only follow-up using exported evidence and lifted source. No REA tools or
+runtime sessions were opened; parent retains ownership of its KKR session.
+The artifact identity is the original 14.9.1 KKR hash in README.md.
+
+## Answer
+
+Yes: AddTemplate can create a counted template row on a remote SimpleChar.
+Trade4 can then move that complete row into the remote actor's TradeInv, which
+the local trade UI displays through page208. This avoids the count1 construction
+in peer action7. These are observed native operations; the composed sequence is
+a reconstruction and still requires a two-client runtime test.
+
+The persistent server instance ID must remain unchanged in the atomic ownership
+transaction. AddTemplate itself creates a client proxy with identity(0,0); it
+does not transmit or change that persistent ID. Thus this preserves authoritative
+server IDs and row quantity, but not a distinct native dynel identity for the
+temporary proxy. Normal AddTemplate grants already use this representation.
+
+## Exact retained evidence
+
+All three records are in `local/reports/stack-resync-1491-evidence.json` and were
+copied into `remote-template-0x*.c.txt` here without reopening the binary.
+
+| Entry | Evidence ID | Observation |
+| --- | --- | --- |
+|1007cfe0|ev_51546b34f37c502e64f97b7f8d254e9cb41cf83c71b676217ffd69bc1ff2761a|Reader consumes lowTemplate, highTemplate, QL, count; high0 becomes low; QL low16|
+|1007d090|ev_b43a133a4bc5a3a18f15a321bada7ed50f61702ad9a9e5e0a2ca5b3f6ff7926a|Resolves outer subject as SimpleChar; no local-player guard; invokes subject inventory helper|
+|1005ef90|ev_7b4afe19deabc80973ba1b2ac210a5f9b66e9ac793f6521ed89d7b5eec615066|First-free ordinary slot from48, explicit packet count into1002d580; inventory notification and mass addition|
+
+The handler's receiver is unambiguous in lifted source:
+`client/game/kkr.dll/lifted-0036.c:8085`, sub_3607D090, instruction3607d0bc loads
+`ecx = actor+0x150` before calling3605ef90. It does not use GetClientChar.
+Apply source is `client/game/kkr.dll/lifted-0029.c:578`, sub_3605EF90.
+
+Row constructor1002d580 creates flags0x21, count low16, identity(0,0), preserves
+QL/low/high. Prior row evidence:
+ev_7068398cd05aadd58835c11d5c29bbf6ca622ac2a23614a299144bd8b9348cdb
+in `local/shop-purchase-research/native/delivery-evidence.json`.
+
+Trade4/5/Complete/Abort are in this directory's retained KKR evidence and
+reused core-handler batch:
+ev_3b068fe016d29c9c6d60176e86341dcd106df72df90b32492a9c956186bf61c7.
+100601b0 moves the complete source row into first-free TradeInv through1002d3c0;
+the template branch is tested before the actual-object branch.
+
+## Concrete sequence on observer B
+
+Let playerA offer a count25 kit and let native ordinary slot48 currently be free
+on the remote A object in B's client. A and B must already be initialized in trade.
+
+1. AddTemplate key0x052e2f0c, outer(50000,A), body `{low,high,QL,25}`.
+ This creates a template row in A ordinary slot48 on B's client.
+2. TradeIIR key0x36284f6e, outer(50000,A), body
+ `{1,4,50000,A,104,48}`. It moves that same row into A first-free TradeInv.
+ B's page208 list now points to the complete counted row.
+3. For removal, TradeIIR outer(50000,A), body
+ `{1,5,50000,A,108,tradeSlot}`. Use108 even though the GUI reference was208:
+ subject A owns this TradeInv. This restores the row to A ordinary first-free.
+4. For success after durable commit, send Complete3 for A and B to each client.
+ CompleteA moves A's count25 row into B ordinary first-free. CompleteB moves
+ B's offers into A ordinary first-free. Both preserve full row quantities.
+
+Own A's client already has the real owned source row and must receive its normal
+Trade4 source reference, without a duplicate AddTemplate. The observer's seed
+slot is a client presentation slot and need not equal A's actual source slot.
+
+Trade4's validator requires first identity=subject owner, subject in trade,
+valid source ownership, general admission and first-free TradeInv capacity.
+The template proxy satisfies the ownership branch through row flag1; it need
+not have a live dynel or persistent native instance identity.
+
+## Removal and close implications
+
+Remove8 is for actual dynel identities. Its first identity is the partner and
+its second identity is the actual item identity. It cannot select an arbitrary
+AddTemplate row by server ID because that row has native identity(0,0). Using
+(0,0) would delete the first matching proxy and cannot identify a later one.
+Use the remote subject's Trade5 for counted template rows.
+
+Trade5 does not discard the observer's proxy: it returns it to remote ordinary
+inventory. Abort similarly restores every remote TradeInv row first-free before
+closing. Complete also fills the remote actor's ordinary inventory with the
+observer's outgoing rows. Therefore remote ordinary inventory is not necessarily
+empty on the next offer or next session. Assuming every seed uses48 will fail.
+
+This matters beyond cosmetic leftovers: Complete searches the remote recipient's
+ordinary capacity even when transferring the local owner's outgoing rows. If a
+remote shadow fills up, Complete can stop early and leave local TradeInv rows
+behind after clearing its trade flag. Ensure remote shadow capacity is known
+and cleared/reconciled before composing another transaction.
+
+A bounded remote cleanup or explicit tracking can keep scratch slots predictable.
+Trade5 followed by deletion of the restored remote ordinary proxy balances the
+native template mass add/subtract path. Direct deletion from TradeInv would
+subtract mass again after Trade4 already removed that mass; this is an additional
+reason to prefer normal Trade5 restoration for the basic protocol sequence.
+
+CharacterAction112 is a possible cleanup primitive, but selecting its affected
+remote rows must be deliberate. Retained stack evidence proves dispatcher
+1006fa30 case0x70 calls1005f270 without a local-only guard:
+ev_a72f5fcc86874822b1b63307e5a87629672d3ba8de1270fbeb43fe2e0bf7cd44.
+Delete helper1005f270 selects the page through10061800, handles template flags,
+subtracts template mass and deletes the row; evidence
+ev_adf2bdce609e25d955a4c232cc1035041d4692c16e8af2b37e85653298399b7d.
+The dispatcher is in `local/reports/stack-protocol-1491-evidence.json`; the
+deletion helper is in `local/reports/stack-resync-1491-evidence.json`.
+Template deletion can dispatch authored deletion effects when present, so a
+broad cleanup is not automatically neutral for every item. This follow-up has
+not runtime-tested remote cleanup or actual-dynel deletion side effects.
+
+## Ordering, identity, and test boundaries
+
+Complete must be sent for both actors, even when one basket is empty, because
+each direction also handles that actor's offered cash and active trade flag.
+Either direction order preserves the other actor's independent TradeInv. This
+does not mean arbitrary packet reordering is safe: AddTemplate must precede its
+Trade4, and all offer deliveries must precede Complete.
+
+These findings do not establish the historical server's chosen packet sequence.
+They establish that existing native operations can convey a remote template
+row's full quantity without altering the client or replaying FullCharacter.
+Before production claims, verify B's page208 row count25 before acceptance,
+received ordinary count25 after both Complete messages, removal of non-first
+offers, cancellation and another trade, persistent IDs after reconnect, and
+mixed actual-backpack/template offers. Real bags still need actual Chest objects
+and contents; converting those into null-ID template proxies would lose their
+separate native identity contract.
diff --git a/docs/research-notes/reference-research/mode.md b/docs/research-notes/reference-research/mode.md
@@ -0,0 +1,137 @@
+# InfoSystem shop mode and player reference boundary
+
+Original14.9.1 DDR SHA256
+`3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883`.
+Reused render-ddr.snapshot.json; complete new mode-ddr-evidence.json and
+matching mode-ddr.snapshot.json retained. Session exported and closed.
+Research only; parent owns the production fix and live tests.
+
+Export:138 records,17,519,002 bytes, SHA256
+`e8bf2bd14e173638cc9129aaa149aa0915cecaa2437940c3eda78746cf8f1af1`.
+Snapshot:32,701,881 bytes, SHA256
+`1a409b149ad71b5ed197fa7a795f2368f0b783df34e949f6d583af26b1c8256e`.
+
+## Constructor omits mode initialization
+
+InfoSystem allocation CreateInfoviewMessage100753f0 calls operator_new(0x110),
+then constructor1006b660, and publishes its result at DAT_100ef01c. There is
+no pre-constructor zeroing. Constructor explicitly clears neighboring+18,
++1e,+20/+24 and many other fields, but omits+1c (shop mode) and+1d. Original
+constructor assembly contains no direct store initializing+1c. Current lifted
+constructor matches this omission; it is not an adapter dropping an original
+initialization instruction. This establishes omission, not author intent or
+a requirement to preserve uninitialized behavior.
+
+Creation evidence
+`ev_af082145f79ee8d4b073858de5a4075603dac896a8f826f841b3544982d88e40`;
+constructor pseudo
+`ev_0b27d01531907b9337c7b35c2dd94a5514f066862204829a6f0239f81ab16615`;
+complete constructor assembly
+`ev_b1eaa07f8aad2bda4e9884a519239f74da0f7357ba1a24890688ec7293f96de2`.
+Constructor's positioning1006cc00 and close1006cbd0 helpers do not initialize
+mode: `ev_f1732a6bc1f4548b8e105c56e6997700949af8acb4aeb9edeb5f3f5e3915df20`,
+`ev_e484440be4c75d07487656399e73e95469fb6e0a994892624c6eb91b9006b236`.
+
+## Reviewed mode writers and routes
+
+General info entry1006d8f0 writes this+1c from argument2, byte[EBP+c],
+at1006d94c (file/text branch) or1006dae3 (ordinary target branch). It may
+early-return before this assignment for a mismatched pending response or
+toggle-close, but those paths do not invoke player rendering.
+Evidence `ev_701b6773ebeb5bb20f73104867570079622149f180b7640b4f58873f68a25e75`.
+
+Item description1006f480 saves mode to byte[EBP-1] at1006f4ee, sets mode0
+at1006f4f6, then restores the prior byte at1006fc1e. This is the existing
+native pattern for rendering normal character/item state independent of the
+general shop context. Evidence
+`ev_e66a60e8052c944b8856c3f28fe6cf03a9bd4db0a7c4f7821720f60ae7601dc3`.
+
+Reviewed resolved direct callers of general entry1006d8f0:
+
+| Address | Entry | Mode argument |
+| --- | --- | --- |
+|1006d360|Previous target callback|0|
+|100754b0|ShowItem|0|
+|10075500|ShowActionMessage|0|
+|10075560|ShowRefInfoOfIconMessage|0|
+|100755c0|ShowRefInfoIDMessage|0|
+|10075610|ShowShopItemMessage|1|
+|10075670|LookAtRewardMessage|0|
+|100756d0|ShowSkillInfoMessage|0|
+|10075720|LookatPlanetLocationMessage|0|
+|10075780|InfoPacketAvailableMessage, non-reference branch|0, ready=true|
+|10075800|ShowTextMessage|0|
+|10075990|ShowRefTextMessage|0|
+|10075a10|ShowFileMessage|0|
+|10075b50|ShowTemplateMessage|0|
+|10075cb0|ResizeWindowMessage|Preserves prior mode|
+
+All caller pseudocode is complete in the export. Caller inventory evidence
+`ev_b13316212e3fbfe1dbcf87e1c6977c6e46a4791dadb4a0f69859a48addf3927d`.
+Positive shop route evidence
+`ev_a98a846a670ec70cbadbd3a27efbe245c365d4fc4726bac836edc87bcb25a3ef`;
+resize preservation
+`ev_9c698771d098739341548518e8d55432c7f0832ac4190b440de3447350f45225`.
+
+These are the direct this+1c writers found in the reviewed InfoSystem method
+range. No other direct store to that field was found; unknown indirect alias
+writes outside this bounded scope are not exhaustively excluded.
+
+## Reference callback bypasses general context setup
+
+Request helper10074b20 sets current identity+0/+4 and pending+20/+24, then
+requests the InfoPacket. It does not set mode. Evidence
+`ev_786d0d87d62057798f3699ba134899c455beab0c1ddb18397885f1d71da5c8b3`.
+InfoPacketAvailable10075780 calls10074a20 when current identity matches;
+otherwise it calls the general entry with mode0, ready=true. Evidence
+`ev_4870e557f1a993dae5d62d3d87397ed82b358683673d7edd1d13b687c7f74a7e`.
+Reference callback10074a20 checks pending identity, calls IsNpc, and for
+non-NPC calls1006fc30(identity,true) directly at10074a5d. It neither sets nor
+restores mode. Evidence
+`ev_3f39ec4b762c8669e9b46cfccc78c8858116c3ef4ceeba6a8985d7a40c22f869`.
+
+The only resolved direct player renderer1006fc30 callers are1006d8f0 and
+10074a20: `ev_f7a0e96912ced0325f858f2b947e6a8c3730d1f6f42cda5cfdfbb7a1abe74d2d`.
+The general route already assigns its explicit mode before invoking renderer.
+The reviewed ready=true normal-player general entry passes0. No additional
+resolved ready-player bypass was found. Unresolved computed calls remain a
+static-analysis limitation.
+
+Player renderer reads368 VisualProfession,37 TitleLevel,54 Level,33 Side and
+470 MapReaderUpgrades through100735d0. These are normal target-character
+stats. Its three native RET8 sites are1006fd1f (request/wait),100710fb and
+10071118 (completed-text cleanup). Assembly evidence
+`ev_9826c82f49ffdffebccacf6abe83f814cfa79041147f5498e2c8db53ddad338b`.
+
+**Focused recommendation:** scope mode0 around only10074a20's non-NPC
+CALL1006fc30, restoring the prior byte after return. This covers the direct
+reference route and all renderer return paths without changing the general
+shop display contract. Constructor-only initialization would leave a later
+legitimate ShowShopItem(mode1) context able to break references. The pattern
+has original precedent in item renderer1006f480. This is a recommended bug
+fix, not a claim that original10074a20 already scopes the mode.
+
+## Callback fixture import contracts
+
+Original decorated imports, also retained in render-native-ranges.json:
+
+| DDR IAT | Imported contract | Guest cleanup including return |
+| --- | --- | --- |
+|100b53cc|AFCM::GetInstance, static cdecl, no args|4|
+|100b53c4|AFCM::Send(int module,int event,const void *text,long length), thiscall|20|
+|100b53b4|AFCM::SetData(const Identity_t &), thiscall|8|
+|100b5b84|ATextString_t::GetStrippedText(char *output,bool), thiscall|12|
+|100b5d6c|N3InterfaceModule_t::GetInstance, static cdecl, no args|4|
+|100b5e94|N3InterfaceModule_t::N3Msg_IsNpc(const Identity_t &), thiscall, AL result|8|
+
+10074a20 deliberately prepends future Send/SetData arguments before calling
+GetInstance; that no-argument getter must leave them on the stack. It then
+sets ECX to the returned AFCM. Send's native module/event are0x20/0xb2;
+stripped text is NUL-terminated and the scan yields length including NUL.
+SetData attaches the original target identity after the Send. This state and
+payload order should remain part of the parent's callback fixture assertions.
+
+Live observations reported by parent: this+1c=141 during every player helper
+call, causing shop branch and no KKR scalar getter; snapshot mode141 afterward.
+This is consistent with the missing constructor/general-entry initialization,
+but the exact allocation history that produced byte141 remains unproved here.
diff --git a/docs/research-notes/remote-reload/README.md b/docs/research-notes/remote-reload/README.md
@@ -0,0 +1,92 @@
+# Remote reload receiver and focused regression
+
+Selected TODO: audit remote reload animation/ammunition state for an initially
+empty weapon through reload and its first ordinary shot on two clients.
+Observed implementation gap: handleReload sends its committed ReloadIIR only
+to the owner. The observer learns loaded rounds from a later attack result.
+
+Completion check: both native holders receive the committed rounds and native
+category5 reload action before any shot. Partial and depleted owner stacks must
+preserve the observer's separate seven-round stack in the same ordinary slot
+and its nine-round gun. The first shot consumes exactly one round, reaches the
+same native impact, and page/cold recovery retains both owners and quantities.
+Rejected/failed/ignored/failed-COMMIT writes publish no remote success; a retry
+publishes once. A lost owner reply must not hide a committed observer update.
+
+Original kkr.dll SHA256:
+a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
+The existing reload-native-evidence.json in ../ranged-research retains reader
+10080bf0, apply10080ca0 and holder1007bca0. Apply selects the outer character;
+the holder's ammo update uses that character's inventory helper at+150. The
+same holder sets the referenced WeaponItem stat26, creates the category5 timer
+and restricts reload chat text to the local flag. Original assembly's this
+adjustment is explicit in client/game/kkr.dll/lifted-0035.c::sub_3607BCA0.
+
+Focused additional original dossiers reuse the matching bank snapshot:
+-10061800 resolves normal page104 through that inventory helper's+0c field:
+ ev_3508167f80c08bd6458506c75933d0db0ecd76d2807c2b67cbda6fff0b296eb6.
+-10062320 uses this resolver before updating a slot count:
+ ev_35dacf4466bd27dee52b21cef71d0650358027ec5856815f0e96db965dd1cd4b.
+-1002d2f0 ignores a missing row instead of creating one:
+ ev_3ea1d72a376f6824171eedbb252194fa74335a2d25b44aecdf853afe6dee461a.
+-10062440 resolves the receiving character's page before deleting a row:
+ ev_2c342d893e24d599ab9c9ac2d0644d0ae7ca53af1dfd9a8c09aa289a0b13fd6b.
+Full new evidence and snapshot are evidence.json and kkr.snapshot.json. The
+owned REA session is closed before client builds and Go/native tests. These
+are static original-client observations, not historical server execution.
+
+The harness now reads signed loadedAmmo directly from WeaponItem's stat
+container and includes remote actors' existing action categories. The snapshot
+unit verifies values/queues/guest registers remain unchanged. Its WASM unit,
+full client build and publication have passed. This supplies necessary native
+state evidence without injected game packets or ad hoc heap probes.
+
+Both players, their weapons/ammunition, target placement and target health are
+controlled fixtures. They are not earned progression or acquisition evidence.
+All owned browsers, temporary HTTP servers and combat loops close on failure.
+
+The first baseline run did not reach native reload: the newly added observation
+mistook a Weapon_t controller for WeaponItem_t. Both startup contexts timed out;
+these are excluded from reload acceptance evidence. The original AttackInfo
+1007a660 in retained batch ev_46238f88f89ea87d06fd10ca7b742b2ce2dba8f1eafc6b80dd38b586331e0a79
+explicitly selects controller+20 before setting stat26. A corrected-layout unit
+fixture aborts against that observation bug (snapshot-layout-baseline.log).
+The corrected snapshot follows+20 and handles the original unbound case, then
+passes the bound/unbound queue/register preservation fixture. This was an
+uncommitted instrumentation mistake; no server behavior changed to accommodate
+the faulty observation. snapshot-fixed-unit.log is the accepted snapshot unit.
+
+The corrected observation plus the original ranged.go overlay reproduces the
+actual missing remote publication in native-baseline.log. Capture132601/100
+takes28.35seconds, loads20 rounds for the owner and leaves its live observer
+empty through frame756 without a first shot. The original handler is retained
+verbatim in ranged-before.go.txt and baseline-overlay.json. This is the accepted
+native before-state, replacing the two excluded startup timeouts in baseline.log.
+
+The server now broadcasts only a committed ReloadIIR to ready clients in the
+same runtime playfield, excluding its owner, while keeping the GenericCmd ACK
+private. Observers receive it before attempting owner output, so a lost private
+reply cannot hide a committed update. Transaction and reload timing are unchanged.
+
+Accepted fixed evidence:
+- focused.log: all three new handler roots and both native cases pass. Initial
+ native captures132704/100 and132736/5 already show first-shot queue indices1/1.
+- native-final.log: maintained driver explicitly requires initial queue0/0 and
+ first-impact queue1/1. Both cases pass in65.57seconds, captures133203/100 and
+ 133235/5. Each client receives exactly one ReloadIIR before its first shot.
+ Partial source100 loads20, shoots to19 and leaves80; depleted source5 loads5,
+ shoots to4 and deletes its source row. Observer gun9/stack7 remain unchanged.
+ All16 final stage traces have zero errors/dropped/lifecycleDropped events.
+ Manual screenshot inspection confirms the remote holder and72-point impact.
+- related.jsonl:76 root /496 total passing results,72.961seconds, no failures.
+- race.jsonl:5 root /10 total passing results,96.689seconds, no race reports.
+- vet.log: maintained server, gamedata and exporter package vet passes.
+- snapshot-fixed-unit.log and wasm-fixed-build.log: accepted C observation unit
+ and complete rebuilt/published WASM client.
+- tmp_verify.py / verification.log: independent baseline, exact owner/observer
+ inventory, native actions/rounds/queues,16 clean stage traces and all published
+ client manifest file sizes/SHA256 checks pass. The first script invocation
+ indexed the stats array as a map; fixing that audit-only mistake passes.
+
+The finite remote-reload TODO is closed. Original server scheduling, automatic
+reload and stack-selection policy remain outside this receiver/publication fix.
diff --git a/docs/research-notes/rotation-research/README.md b/docs/research-notes/rotation-research/README.md
@@ -0,0 +1,204 @@
+# AO14.9.1 stationary mouse rotation protocol
+
+## Result
+
+CharMouseMoveIIR_t key0x25327751 has a47-byte compact subclass. Native14.9.1
+has a13-byte IIR prefix (threeDWORDs and one pass-on byte), for60 bytes total.
+The project normalizes that prefix to16 bytes, giving63 bytes in its handlers.
+It is a distinct message from CharDCMoveIIR_t.
+The base compact pose format is shared, but CharMouseMove adds eight floats.
+Native clients apply its pose with action20; translation need not be simulated
+for a stationary turn. The original opcode/subclass can be relayed directly
+to observers after authoritative validation and in-memory pose update.
+
+This investigation used shipped code only. Parent owns the two-client WASM
+replay/capture and should record its result separately. No production edits.
+
+## Exact wire layout
+
+All multibyte fields are big endian. The table uses PROJECT-NORMALIZED body
+offsets, not the outer N3 transport packet. Normalized body length is63 bytes.
+Native14.9.1 uses just one byte at offset12 for pass-on; subtract3 from every
+table offset16 and later. Its body is60 bytes, with action at13, X14, Y16,
+Z18, XYZW20/22/24/26, and extra groups28/44. This distinction is implemented
+in server/target_protocol.go's common framing conversion.
+
+| Offset | Size | Field | Native decoding |
+| --- | --- | --- | --- |
+| 0 | 4 | Message key | 0x25327751 |
+| 4 | 4 | Subject type | Player50000 in sender path |
+| 8 | 4 | Subject instance | Sending character ID |
+| 12 | 4 | Normalized pass-on flag | Native field is1byte; observer reply clears it |
+| 16 | 1 | Action/control | low7bits action; highbit local correction flag |
+| 17 | 2 | X | unsigned16 *0.125 |
+| 19 | 2 | Y | signed16 *0.0625 |
+| 21 | 2 | Z | unsigned16 *0.125 |
+| 23 | 2 | Quaternion X | signed16 /16384 |
+| 25 | 2 | Quaternion Y | signed16 /16384 |
+| 27 | 2 | Quaternion Z | signed16 /16384 |
+| 29 | 2 | Quaternion W | signed16 /16384 |
+| 31 | 16 | Extra four floats A | Written from rotation helper+0x20 |
+| 47 | 16 | Extra four floats B | Written from rotation helper+0x30 |
+
+The reader normalizes the decoded XYZW quaternion and checks its components
+and position with _finite. Compact writer multiplies X/Z by8, Y by16, XYZW
+by16384 and converts to short via ftol. Eight trailing floats are stored and
+serialized unchanged. No explicit timestamp, sequence number, linear speed,
+or angular speed scalar appears in this wire layout.
+
+The extra groups have quaternion-shaped four-float storage, initialized to
+(0,0,0,1) each by rotation helper constructor0x10049ec0. The inspected sender
+copies those groups into the packet. They are not read by client activation.
+Their original server-side purpose remains unknown; preserve them on relay,
+do not assign speculative speed/time meanings.
+
+## Sender and cadence
+
+n3EngineClientAnarchy::N3Msg_MouseMovement0x10020520 routes through vehicle
+wrapper0x1004bd30 to helper0x10049f10. For nonzero horizontal motion it reads
+the vehicle body quaternion, applies horizontal delta*12 radians, normalizes
+it, and immediately sets the actor's local rotation. The flying branch also
+uses vertical motion. First-person camera pitch is handled separately.
+
+The helper creates CharMouseMove with action20, current position and updated
+rotation when there is nonzero mouse input or its pass-on decision permits
+a sample. It copies its extra two four-float groups as above.
+
+The final constructor byte at object+0x68 is an internal pass-on eligibility
+flag, not a wire field. The ordinary sender derives it from0x1004a950, which
+uses a timer and smoothed angular-motion thresholds; its timer condition is
+greater than1second, with absolute-rate thresholds0.02 and0.2 and a direction
+change flag. Thus local motion processing does not imply a network packet
+per rendered frame. Exact packet cadence should be verified in capture.
+
+EndMouseMovement0x10020640 calls wrapper0x1004bd50 ->0x1004a540. This emits
+another action20 message with current position/rotation and internal
+pass-on eligibility1. It does not emit a different turn-stop action.
+
+## Native reception and observer echo
+
+Common activation0x10043c50 resolves the full subject identity. A missing
+dynel clears pass-on and returns. A received ordinary message for the local
+actor is ignored when pass-on is0 and action highbit is0. This protects the
+locally controlled actor from its own ordinary observer update.
+
+For a locally generated message with pass-on true, the helper overwrites its
+base pose with the actor's actual current relative position and rotation and
+updates the local motion timestamp. That timestamp is local bookkeeping and
+is not serialized here.
+
+For an observer message (pass-on0, actor differs from local actor), common
+activation updates reconcile position and calls SetRelPosRot using decoded
+pose. CharMouseMove activation0x10047350 then handles action20 by calling
+actor virtual+0x84 with position/rotation and two zero arguments, and forwards
+control20 into the vehicle movement state through0x10049130. It does not
+consume either extra float group. The exact name of virtual+0x84 was not
+resolved; the explicit arguments and subsequent control call are observed.
+
+Action highbit1 with the local actor takes a correction branch: update
+reconcile/last-allowed position and SetRelPos, then return without the normal
+rotation activation. This is distinct from an ordinary rotation reply and
+should not be introduced into observer relay or trusted from a client merely
+because it shares the compact byte.
+
+## Minimal server approach and validation
+
+These are reconstruction recommendations derived from the observed protocol,
+not a recovered original server implementation:
+
+- After project prefix normalization, accept exact63-byte body,
+ opcode0x25327751, subject50000 and session-owned ID.
+- The original inspected sender emits action20 with the correction bit clear.
+ Validate that control for the supported mouse-rotation path.
+- Decode the compact pose using the exact signedness/scales above. Reject a
+ zero quaternion before normalization. Apply existing movement/position
+ bounds validation to the position, since mouse rotation can occur during
+ movement as well as while stationary.
+- Check trailing floats are finite, but do not require speculative meanings
+ or enforce invented speed/rate fields. Preserve them for native relay.
+- Store the accepted pose in memory with periodic persistence, using the
+ same low-significance state cadence as other movement. Avoid changing
+ translation input/walk/run controls merely because rotation arrived.
+- Relay the original opcode/subclass to other observers in the playfield,
+ with subject identity intact and IIR pass-on0. No ordinary owner echo is
+ necessary for the inspected native branch.
+
+Focused automated coverage should include the body length, spoofed subject,
+wrong control/correction bit, signed negativeY, quaternion normalization and
+zero rejection, NaN/Inf in trailing floats, stationary pose update, observer
+relay with pass-on0, and reconnect checkpointed facing. Manual two-client
+testing should compare rotation while stationary, while walking, and final
+RMB release. Camera-only turning should not be mistaken for body turning.
+
+## Evidence ledger
+
+Artifact: anarchy-vanilla-14.9.1/kkr.dll
+SHA256: a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0
+Native base0x10000000; translated guest base0x36000000.
+
+- native-batch1.json, ev_07887b48bc8cfd3e54e4bac7ea7c45ecd9c3d338403ff202eee803de9cbe194d:
+ named constructor0x10047200, activation0x10047350, reader0x100473f0,
+ writer0x10047460, compact reader0x10043dc0/writer0x10044010,
+ common activation0x10043c50, final sender0x1004a540.
+- native-batch2.json, ev_b7fca2382c4a0f424443dba477896a201d711b7d9bad3fc6d08c0d45b9cb05b8:
+ pass-on helper0x10043c10, correction helper0x10043c20,
+ sender0x10049f10, smoothing0x1004a630, pass-on timing0x1004a950,
+ control0x10049130, MouseMovement0x10020520, EndMouseMovement0x10020640.
+ Selector0x1015f9ca is an import thunk and failed procedure resolution;
+ its objdump import target0x1016ffc8 is ToBePassedOn, not an unresolved
+ new protocol function. No conclusions depend on its missing pseudocode.
+- native-batch3.json, ev_c35c499f92e5775efa92556dcc362bf2c3ae8338c783874f5807689916c89d0c:
+ extra-state initialization0x10049ec0, movement wrappers0x1004bd30/50,
+ timer reset0x1004aa30, named registration0x10015ab0.
+- writer-assembly.json, ev_9dd5320f046074fdc01aad5915617782f77952b1d3ea2ca292c6ad271ade01a6:
+ exact compact writer scale multiplications lost in ftol pseudocode.
+- compact-scales.json, ev_126d3aef977e97eadce0bbd7fbeb50b6b758bdd0d7a3a8ed088ed2e1f86c2501:
+ constants at0x10170b94..a8 =1/16384,1/16,1/8,16384,16,8.
+- evidence.json exports the owned REA session; session closed after research.
+
+Native class registration and constructor tie this wire subclass to the exact
+CharMouseMoveIIR_t name. The16-byte prefix described earlier in docs/protocol.md
+belongs to the shared project representation; target_protocol.go explicitly
+documents recovered14.9.1 byte pass-on/no compressionDWORD framing, citing
+LLR Construct0x100240b0. The initial research report mixed these levels; this
+ledger now distinguishes them.
+
+## Read-only body-facing probe
+
+Vehicle::GetBodyRot in QQR native0x10011250 (guest0x42011250) is exactly
+`return this+0x7c`. Read four XYZW floats at vehicle+0x7c/+0x80/+0x84/+0x88,
+where vehicle is read(actorDynel+0x60). This is the body quaternion used by
+the native mouse-rotation sender, independent of camera-only rotation.
+
+LLR n3Dynel::GetRelRot native0x10017f60 (guest0x38017f60) loads dynel+0x60,
+calls that GetBodyRot and copies four floats into its return value.
+Vehicle::GetGlobalRot native0x10011220 checks vehicle+0x28: when zero it
+returns GetBodyRot; when nonzero it returns the cached quaternion at+0xf4.
+This gives world-facing orientation when a vehicle has a parent.
+
+Source-only follow-up, no new REA session:
+
+- client/game/qqr.dll/lifted-0006.c:52, exact body getter.
+- Same file:8, global getter and parent condition.
+- client/game/llr.dll/lifted-0008.c:4135, dynel relative getter.
+- Native export tables saved as qqr-exports.txt/llr-exports.txt; objdump
+ disassembly confirms the offset loads and four-component copy.
+- QQR SHA256: c011e411b9cecfbde03c4b37fc988540a1246fafc9921c7cab7cb9ef2bb8d913.
+- LLR SHA256: ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132.
+
+## Project internal encoding choice
+
+An internal64-byte subclass (u32 action, XYZ12bytes, XYZW16bytes, extras32bytes)
+is a defensible project representation if targetPacket compacts the initial
+32bytes to15 and preserves the32-byte tail. It is not the native14.9.1 wire
+format, and this investigation does not establish it as an earlier client's
+contract. Backward compatibility is not required.
+
+The existing targetPacket switch compacts0x54111123 only. A project-normalized
+16-byte IIR prefix plus the original compact47-byte CharMouseMove subclass
+can therefore keep its payload intact through that common framing conversion,
+which removes three prefix bytes for native14.9.1. This avoids a new float
+re-encoding pass. It still uses normal transport framing; forwarding a whole
+raw native packet through a shared-packet API would apply framing twice.
+Either representation can be correct; tests must verify the resulting
+native13+47-byte IIR and preservation of the extra32bytes.
diff --git a/docs/research-notes/shop-edit-research/native/README.md b/docs/research-notes/shop-edit-research/native/README.md
@@ -0,0 +1,178 @@
+# Shop cancellation, live edits and range checks
+
+The retained evidence establishes a native cancellation path and a separate
+five-metre Use validator. It does not establish the cause of the old live-edit
+failure. A surviving active TradeView can ignore a later trade-start event,
+but its cached partner does not supply the target or player position to the
+Use range check. No cleanup/protocol change is justified by this pass alone.
+
+## Scope and identity
+
+REA skill Step 6, distinct read-only native question. Reused complete original
+14.9.1 evidence and maintained source; no fresh binary open, session, binary
+export, target execution, browser/server/DB action, production edit or commit.
+The earlier automatic approval rejection of a fresh native open was respected.
+No retry or alternate binary-analysis route was used.
+
+Original images use base `10000000`; maintained bases are KKR `36000000`,
+DDR `2b000000`, LLR `38000000`, QQR `42000000`.
+
+| Original artifact | SHA-256 |
+| --- | --- |
+| kkr.dll | a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0 |
+| ddr.dll | 3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883 |
+| llr.dll | ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132 |
+| qqr.dll | c011e411b9cecfbde03c4b37fc988540a1246fafc9921c7cab7cb9ef2bb8d913 |
+
+`target-identities.json` preserves the matching earlier inventory identity
+records. `retained-evidence.json` contains complete selected REA records;
+`provenance.json` identifies the earlier bundles. Generated instruction/data
+observations are explicitly supporting source evidence, not fresh REA results.
+
+## TradeIIR action 2
+
+Body is six DWORDs `{1,2,A.type,A.id,B.type,B.id}`. Player-subject activation
+`10084c50` resolves the subject, gets its trade helper and calls `100780b0`.
+Case 2 passes `A.id != 0` to `100774a0`; that Boolean controls the cancellation
+chat text. Zero A/B is sufficient. Complete REA:
+`ev_5fe35f4305fb3b2ec2b32dd82476cb8f06a0e6e886698554938a898003b9f24b`
+and `ev_e8d99b8728b013c566e5e8d7e4f52959628066199d83239630c958bb67715e60`.
+
+`100774a0` first tests actor stat0 flag `8`. If clear, it returns without
+restoring offers or issuing the UI completion callback. If set, it clears the
+flag, restores TradeInv rows into first-free ordinary slots, refreshes local
+inventory, and for the local actor calls `1001c9d0(false)`. It resolves the
+stored partner Identity; a vending partner gets `100a9cf0(2,player,zero)`,
+which removes the per-player transaction record. Complete original cancel
+and start routines: REA
+`ev_3b068fe016d29c9c6d60176e86341dcd106df72df90b32492a9c956186bf61c7`.
+Thus a separate machine-subject abort is not required by this inspected path.
+
+The trade helper is actor `+0x160`, lazy getter `10071f90`. Its owner is helper
+`+0x18`; partner A is helper `+0/+4`, tag B `+8/+c`. Constructor `10077320`
+clears actor flag 8. Cancellation does not zero these cached identities.
+
+Supporting KKR source shows `1001c9d0 -> 10003fd0`
+(`lifted-0011.c:20230`, `lifted-0001.c:2427`):
+`CMsg_TradeCompleted` emits AFCM group `0x33`, event `0x16f`, with the Boolean.
+DDR module constructor `10049170` registers event `16f` to
+`TradeCompletedMessage 100493b0`; this calls `10048ef0`, which zeroes view
+`+0x28/+0x2c`, then `100487e0`.
+
+Reset `100487e0` clears all three icon grids, resets their visible lines,
+closes/hides/releases the active view through its window helpers, and finally
+writes active byte `+0x4c = 0`. It does not destroy the TradeView allocation,
+clear mode `+0x48`, or zero identities `+0x5c/+0x64/+0x6c`. Those identity
+values remaining after active becomes zero are normal inert cache state.
+Complete DDR reset REA:
+`ev_1f9fdd961d7afda27c01e108a5821b696d81f3110667a7078b29988ec7ae0e19`.
+Supporting event/wrapper instructions are retained in the source audit.
+
+Start `100485b0` does its entire setup only when active `+0x4c == 0`.
+An already-active view ignores a new start, including its replacement partner
+identities. Complete REA
+`ev_f5717956dbc1f446ae83949a01f62f1535d4e2f743295d46fb199db6490f039e`.
+This is a concrete possible stale-window mechanism. It does not prove that
+the old reported edit actually left the view active. A late abort after a new
+actor has reset flag 8 can be ignored, so before/after ordering matters.
+
+## Scene and actor teardown
+
+Original LLR `n3TeleportIIR::Activate 10043400` resolves its subject. A zero
+zone flag moves that dynel using SetRelPos; a nonzero flag for the local actor
+calls `n3EngineClient::StartTeleport`. Complete REA
+`ev_831ea1303751f531ab2258dc091b64930d1c85dd452c2c7af681094a746f9c2a`.
+Supporting maintained LLR `1001da60` calls current playfield's
+`StopPlayfield 1002a060`, which invokes its virtual `+0x28(0)`.
+
+Actual actor destruction is different from an in-place position update.
+Supporting KKR `SimpleChar` destructor `1006d5b0` at `1006d73b..1006d763`
+loads trade helper `+0x160`, calls `10077360 -> 100774a0(true)`, frees it and
+zeros the actor field. At `1006d893..1006d8bb` it frees/zeros the separate
+action validator `+0x180`. These cleanup calls do not themselves prove that
+every same-playfield reconnect executes that destructor before reinitializing.
+
+DDR `ShutdownMessage 100492e0` deletes the TradeView and zeros global
+`100eeaec` (maintained `2b0eeaec`); constructor `10049170` registers it for
+AFCM event 6. `InitialiseMessage 10049270` allocates a fresh TradeView and
+stores it there. No proof in this bounded pass links every playfield teleport
+to that full UI-module shutdown event. Preserve that distinction: closing a
+trade, destroying an actor and shutting down the UI singleton are three
+different lifecycle operations.
+
+Current reconstruction context only: `server/control.go:325` applies a live
+edit then sends zone-flag-1 Teleport plus system redirect through
+`teleportUser_locked`. This source path cancels player trade but does not
+explicitly send a shop abort. This is not original-server evidence and does
+not establish an omission: native teardown may already close it. The parent
+task owns current runtime comparison and any production decision.
+
+## Default Use and exact distance origin
+
+Default action `1002c350` uses the clicked dynel and Can30 bit8, then
+`N3Msg_UseItem 1002acd0` constructs action-data `1004bee0` with the selected
+target Identity at data `+0x14/+0x18`, and GenericCmd action3. Complete Use
+REA `ev_9c4ec4ab79f705d9108b1502e53ca5009e4e2058cd8a7996e7861501a6653ec0`.
+Neither the machine stock nor TradeView's partner supplies that target.
+
+Canonical item-action validator is `1004d350`; retained request `1004d5c6`
+resolves to its complete body in REA
+`ev_6483e6cd8d2790a26b1aca8299d6837e26f7efbde18efd5fa8babcb9a5c4abc1`.
+It freshly resolves `GetDynel(actionData+0x14)`. For actions1/3/4 it obtains
+both target and helper-owner `GetGlobalPos`, subtracts XYZ, computes Euclidean
+3D distance, and checks `GetParentDynel(target)`. An unparented target with
+distance strictly greater than 5.0 fails. Equality at 5.0 passes; no stat287,
+body radius, 2D shortcut or TradeView pointer occurs in this branch.
+
+GenericCmd `10087b30/10087bb0` reaches it through actor getter `10071dd0`.
+Supporting source establishes the exact cached-owner chain: actor `+0x180`
+is a lazy 28-byte validator object; constructor `1004c9d0` stores the actor
+in its first DWORD. This is distinct from the action-state machine at `+0x16c`.
+GenericCmd refreshes its actor pointer at `+0x30` through `100879a0` and passes
+that actor to `10071dd0`. Xref REA
+`ev_e0d7a8cd1008de94946a4a20cfb08ee526072a5685ff7747814e67fe01af809f`
+confirms both validator callsites.
+
+The local failure formats string `101c1b00`, "Too far away, move closer!",
+calls local feedback helper `1001c8c0`, and returns 0 at `1004d5c0..1004d605`.
+GenericCmd initial verifier `100879d0` maps that failure to verification3;
+common `n3Command::Activate 100168f0` returns null for verification2/3.
+Complete common command REA:
+`ev_3c07ce549cf15ce70d6e3eb31b6af07a34f86f97a073acc6c615fbfdec1c402f`.
+This is a native local rejection path that can prevent forwarding the Use.
+The feedback table also contains a separate similarly worded server-feedback
+entry `(45,0)` at `101c045c`, recovered in canonical `10040b00` via request
+`100413cc`, REA
+`ev_f4c860ca8760fdc882fe57dc4522ce827a01bb7f9b19004177abdd8652c02899`.
+Chat wording alone therefore cannot prove native versus server rejection.
+Correlate the click with outgoing GenericCmd and incoming feedback packets.
+
+## Global position and probe boundary
+
+Exact supporting source chain: LLR `GetGlobalPos 10017f50`
+(`lifted-0008.c:4111`) loads dynel `+0x60` vehicle and delegates to QQR
+`Vehicle::GetGlobalPos 10011200` (`lifted-0005.c:9501`). That getter returns
+vehicle `+0x54` when vehicle `+0x28 == 0`, otherwise vehicle `+0xe8`.
+Read XYZ at that returned location. The existing probe's unconditional
+vehicle `+0x54/+58/+5c` is insufficient for a parented vehicle.
+
+LLR `GetParentDynel 10018e80` (`lifted-0009.c:2613`) resolves the identity at
+dynel `+0x8c/+0x90`; it does not simply return vehicle `+0x28`.
+The retained export inventories used for these names are
+`local/rotation-research/llr-exports.txt` and `qqr-exports.txt`.
+No new original LLR/QQR decompilation was acquired for these small getters.
+`probe-fields.md` gives the read-only field recipe.
+
+The old `check-vendor-pick-state.json` records active view partner and hit
+`Tools 51035:3221488799`, template99491. Its separate `shop`, `staticShop`,
+`position` and `stats` come from a hardcoded probe resolving
+`Medical 3221226655`, template99383. Those differing identities do not show
+stale native state. A focused excerpt is saved as `retained-probe-excerpt.json`.
+The later live-editor smoke's eight successful edits and advancing ticks
+concern the separate freeze TODO; they do not recover this old range failure.
+
+Checklist: action2 cleanup, UI guard/cache fields, actor/module destruction,
+range operands/threshold and global-position probes answered. Full
+scene-to-local-actor destruction timing on same-playfield redirect and cause
+of the old failure remain unresolved. The parent is running fresh owned
+clients; this worker makes no independent runtime reproduction or fix claim.
diff --git a/docs/research-notes/shop-live-purchase-research/native/README.md b/docs/research-notes/shop-live-purchase-research/native/README.md
@@ -0,0 +1,124 @@
+# Live shop purchase delivery in original 14.9.1
+
+Read-only static follow-up, 2026-10-25. Reused complete REA records before
+inspecting maintained generated C. Original KKR SHA-256:
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Original addresses below use base0x10000000; generated KKR uses0x36000000.
+No production, DB, browser or server actions. No REA session opened successfully.
+
+## Answer
+
+A new live weapon or backpack can be delivered with ONE appropriate subclass
+FullUpdate, parent `(50000,owner)`, real outer identity `(51018,itemID)` or
+`(51017,itemID)`, page104 and **slot111**. Do not first send AddTemplate for the
+same item: that creates a separate proxy row, then111 selects another free slot.
+An explicit-slot FullUpdate alone does not create a row in an empty slot.
+
+The supported composition is durable purchase commit, Trade Complete3, then one
+new typed FullUpdate per count-one live item, in server first-free-slot order,
+then authoritative cash as needed. This composition follows observed native
+operations; exact historical purchase ordering and actual purchase runtime
+success remain unobserved. Period shop membership is a separate question.
+
+## Row creation and identity: observed original evidence
+
+Parent attachment100b25c0 attaches the dynel to its character and calls10063340.
+That function reads item stat220 (placement slot) and stat55 (page):
+
+- Slot111: choose first empty ordinary slot from48; page113 is a separate
+ special case choosing from0. Call1002d870, add item mass and notify inventory.
+- Other slots: only if a row already exists, replace its identity and set flags2.
+ This branch does not allocate a missing row or replace its template triple.
+- Page1 with slot6/8 additionally binds the weapon holder/equip callback. A
+ purchase into ordinary inventory must not use that equipped placement.
+
+Evidence in `live-delivery-reused-evidence.json`:
+`ev_9fab4fbc5cd930032d5fb4ae3d31570b6b63d3b3ebe70ba4a53a57fe762beeec`,
+`ev_8565b1dc163d3baca6f7edaba73ba92601f92e2a4b9a5d6dbabcd06474e60fdc`.
+
+Row creator1002d870 allocates32 bytes, sets flags0x22 and count1, copies the
+actual type/ID from item+0x90/+0x94, reads QL701/low702/high703, retains QL low16,
+substitutes low when high0, and installs through1002db10. Count is always1;
+N purchased live objects require N durable IDs and N messages, not one message
+with a quantity stat. Native first-free search1002d210 returns-1 when full;
+capacity must be checked before committing and sending the grant.
+Evidence `ev_6e9238bdd15df500e6381e1dfc7d605c86f3881888c5c8824074b6a5fb0b54b1`,
+`ev_659d032fef98973ce37dd53c9a902729d0d6247c5bfceb5aef22dcd0698b594d`,
+`ev_8a79ec83e7157a3eb923b942f4e96cff697bd171a48122cc9e4804e5dfccb3db`.
+
+## Typed message bodies and factories
+
+Both bodies start with SimpleItem11: u32 version11; parent type/ID; playfield;
+auxiliary identity0,0; byte page104; byte slot111; encoded stat pairs; u32 extra
+blob length0. Send explicit stats23=staticTemplate,701=QL,702=low,703=high to
+preserve the authored selection. Four pairs use token5*1009. Include durable
+weapon Energy26/ammunition where relevant; five pairs use6*1009.
+
+SimpleItem reader100b2440, setup100b2830 and attach100b25c0 are retained:
+`ev_b5f02e19265a6b57a350cc5736417f0c4804fec484212d5629b81963c64a9c2f`,
+`ev_06a54a4e5296f634115da21462e98d97fe0b90e53de27c2fd3929a4f555f9c85`.
+Setup loads stat23's template, sets page/slot, applies streamed stats/endpoints
+and executes OnActivate. It does not imply all OnWear effects are applied.
+
+**WeaponItemFullUpdate**, key0x3b1d2268, outer `(51018,itemID)`:
+body ends at SimpleItem's extra-length0. Generated reader100b3840 delegates
+to100b2440 and checks stream state without an additional suffix (source cross-check).
+Registration10011200 -> factory10011180
+-> message ctor100b3720/vtable10174e70 -> activation100b38b0. Setup100b3870
+requires WeaponItem and delegates100b2830. Activation requires absent item
+identity, correct type51018 and existing playfield; existing identities are
+ignored. Constructor cross-check100b37c0 calls WeaponItem constructor100aba20.
+Evidence `ev_9a64af19c208580a03b460c675f562e2c7153ee9ba1118ae45457540018bb8f9`,
+`ev_c299ae84c450860816c69773a42ae48beef33c3b2c6caf3b8265d1fb001d3e0d`,
+`ev_e7ff52865839248f305df5322c3b5ddd1f0b8c2666ad39d9ce69b56c4e2c17a5`,
+`ev_6ad357ca30912f7fdb800917d4ad31823cfef2a1722a3a1c335b0e528b4b13fd`,
+`ev_2552f0c6f7bbaad61c7846a542aff9457f58b45192eddf5272feb1aa1fd8a02d`.
+
+**ChestFullUpdate**, key0x465a5d73, outer `(51017,itemID)`:
+append u32 Lockable version2, lock value0, identity-list token1009, Chest
+version3. Reader100af210 calls100b1030/100b2440. Activation100af370 requires an
+absent identity and type51017. Its ribosome constructor100af190 allocates the
+Chest through1008b3b0, and setup100af340 calls100b10a0 ->100b2830. This creates
+the live Chest and owned row without opening its contents window. InventoryUpdate
+is for separately supplying/opening Chest contents when requested.
+Evidence `ev_275528c4a10136c1a2de368bd4bdbb1c2bf5c0b29f946a68808e609e47d9218d`,
+`ev_5054d5c7cc5fa44ad12e08e8a8dabde36e9fae35724b1764dd21bd79233f1b7e`,
+`ev_9dbcdb537349dfe20e0eb7ad48bbe6c4805a08f6df965abea4736ec0899bb28c`,
+`ev_e5da0c7194f51f3cb248dc74da29b6039ee9e4a89ecf22a9742cd7d8dee07029`,
+`ev_a2c1003de0628c15e6256a09c71d0300086536c5b99d8ba8282ddc996d965a05`.
+
+Generic SimpleItemFullUpdate is not established as a substitute for either
+subclass. The generated-source constructor100b29c0 handles two special types
+and otherwise calls SimpleItem constructor1009c3c0, not WeaponItem100aba20 or
+Chest1008b3b0. Complete source snapshots and hashes are in
+`source-provenance.json`; this is a source cross-check, not a fresh REA result.
+
+## Existing constructors and converter hazard
+
+`server/equipment.go:equippedWeaponPackets` supplies the correct Weapon body
+shape, but hardcodes equipped page1/slot6 and omits explicit endpoint stats. It
+cannot be reused unchanged for inventory grants. `server/backpacks.go:backpackPacket`
+already supplies the Chest body and endpoint stats; use grant slot111.
+
+At inspection, `server/target_protocol.go` Chest case subtracts16 whenever
+page==104, without checking the slot range. Passing111 would become95 and
+skip row creation. Preserve111 explicitly or limit conversion to shared ordinary
+slots64..93. Weapon delivery needs equivalent ordinary-slot conversion only if
+using an explicit shared slot;111 must remain111 for both typed messages.
+These are implementation observations, not original protocol evidence.
+
+## Limits and provenance
+
+`live-delivery-provenance.json` points every copied complete record to its prior
+export. `tmp_live_delivery_collect.py` checks the exact original target hash;
+`tmp_validate.py` checks every README Evidence ID. Existing shop finalizer
+analysis remains `docs/research-notes/shop-purchase-research/native/README.md`: Complete clears
+staged sale rows and machine selections, with no purchased-item allocation loop.
+
+The composed delivery needs native runtime validation: no AddTemplate duplicate,
+correct first-free slot after sales, real subtype/ID/QL/endpoints, immediate
+wear/open/transfer, multiple purchases, reconnect and repeat Accept. No historical
+server sequence or durable schema is recovered here. Generic FullUpdate subclass
+creation was source-cross-checked; a fresh REA query was blocked by automatic
+approval review on potential binary/snapshot export. No connector workaround was
+used and no owned analysis session remained open.
diff --git a/docs/research-notes/shop-live-purchase-research/root/stock-sources.md b/docs/research-notes/shop-live-purchase-research/root/stock-sources.md
@@ -0,0 +1,54 @@
+# Live-item shop stock boundary
+
+This work implements the recovered typed delivery path, not a historical
+stock generator. The default production shop_stock.yaml is unchanged.
+Only the temporary native fixture supplies Small Backpack99228, Kinetic Axe209283,
+Rusty OT M-10 Flechette Pistol123742 and Lock Pick95577 in Tools99491. Those
+four fixture rows do not assert that this was an original Tools inventory.
+
+Original14.9.1 Small Backpack99228 is native Chest51017, fixedQL1, price850,
+Can13; its item description identifies storage and a10000 mass-limit field.
+The original Containers templates99501/99540/99634 reference categoryNAOC.
+Names and descriptors establish neither the full membership nor item-specific
+stock, grade/faction equivalence, QL generation or refresh behavior.
+
+Bounded online searches on2026-10-25 used Anarchy Online/backpacks/Small
+Backpack/Containers with2001,2002,2003, shop/basic/advanced/superior and the
+official forum archive. Most indexed hits were substantially later or unrelated.
+No period item-to-terminal stock membership was recovered by those queries.
+This is not proof that it is unavailable elsewhere.
+
+A distinct dated-source pass found Konril's January31,2002 post #3 in
+"Overflow inventory?", recommending purchase of two small packs for loot and
+portable storage:
+https://forums-archive.anarchy-online.com/showthread.php?9198-Overflow-inventory=
+It does not name a terminal or template99228. Contemporary purchase advice
+therefore supports the broad use case, not any exact production stock row.
+The complete indexed extraction and its direct-fetch limitations are retained
+in `../period-content/findings.txt` and the accompanying JSON ledger.
+
+Later corroboration, not14.9.1 authority:
+- Hahnsoo's Newbie/Froob Guide v0.25 (2007/2008 content, includes Lost Eden and
+ patch17.8) explicitly recommends Small Backpacks and places Container stores
+ in Advanced/Superior stores and the Subway:
+ https://www.neoseeker.com/anarchyonline/faqs/143664-anarchy-online-newbie-a.html
+ Mirror identity: https://gamefaqs.gamespot.com/pc/913777-anarchy-online/faqs/46197
+- Current Fair Trade wiki repeats Container/basic-store distinctions, but is
+ not a contemporaneous observation:
+ https://wiki.aodb.us/wiki/Fair_Trade
+- The2018 AO-Universe inventory guide describes current store backpacks and
+ later starting equipment; it does not identify2003 stock:
+ https://www.ao-universe.com/guides/classic-ao/gameplay-guides-6/inventory-bank-backpacks-and-overflow-29
+
+The13February2002 GameWatch firsthand guide was also inspected:
+https://game.watch.impress.co.jp/docs/20020213/yuki14_2.htm
+It establishes ordinary native shopping and sale controls, starter maps,
+missions and pets, not a Containers stock list. The2003 GridStream shopping
+discussion found by the search was about EverQuest's merchant backpack and
+must not be attributed to Anarchy Online:
+https://forums.gridstream.org/forums/viewtopic.php?p=23089
+
+Follow-up needs dated backpack/weapon item-to-terminal evidence before adding
+these fixture entries to production stock. Finite weapon purchase clip state
+also remains unknown; the fixture uses the existing owned-item grant policy's
+empty clip, while its packet explicitly preserves that durable value.
diff --git a/docs/research-notes/shop-multi-sale-research/native/README.md b/docs/research-notes/shop-multi-sale-research/native/README.md
@@ -0,0 +1,194 @@
+# Multi-row shop quote and live Computer Literacy audit
+
+Read-only REA Step6 follow-up using retained original evidence and maintained
+C only. No fresh binary open/export, runtime, database or tracked edit.
+
+Targets: original14.9.1 KKR SHA256
+a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0;
+DDR SHA2563c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883.
+Original base10000000; maintained KKR36000000 and DDR2b000000.
+
+The parent's narrower follow-up about completion debit, signed aggregate
+underflow and quote-refresh delivery is answered in completion-and-repricing.md.
+
+## Three different sale totals, summed per row
+
+Let T truncate toward zero, F025=float32(0.025), F01=float32(0.01),
+D01=binary64(0.01), P=item stat74 (sentinel1234567890 becomes0),
+N=native offered row count, S=terminal stat426, CL=actor stat161/mode0.
+For charge normalization:
+
+```
+U = float32(P)
+if positive stat212 exists and item type != 51018:
+ U = float32(U / stat212)
+M = T(CL * F025)
+```
+
+Accepted-transfer100a99d0 processes each occupied TradeInv row independently:
+
+```
+B = T(N * U * S * D01)
+acceptedLine = max(0, B + T(M * F01 * B))
+acceptedTotal = sum(acceptedLine for each row)
+```
+
+Staged displayed sale100a9e20 instead does:
+
+```
+displayLine = T((U + T(M * U * F01)) * N * S * D01)
+displayTotal = sum(displayLine for each row)
+```
+
+There is no aggregate round after summing raw row values. Moving truncation
+outside the row loop changes behavior. Neither sale calculation has the buy
+function's90% CL cap. Display has no corresponding per-row zero clamp in the
+retained assembly; accepted transfer does. These are separate original client
+contracts, not recovered historical server accounting.
+
+Pending funding100a9f60 iterates the offered inventory list and credits EACH
+SALE ROW ONCE, without its count or stat212 normalization:
+
+```
+fundingBase = T(P * S * D01)
+pendingSaleCredit = fundingBase + T(M * fundingBase * F01)
+net = sum(currentBuyQuote(entry) * signed16(selectedCount))
+ - sum(pendingSaleCredit for each offered row)
+```
+
+100781c0(candidate) returns net + candidateBuyQuote - currentCash61. Catalog
+Add checks a positive shortfall both before request1001fb50 and on received
+Add10077aa0. This admission calculation is NOT the displayed charge-aware
+sale quote and NOT the accepted-transfer value. It can over-credit partially
+used stacks. Server Accept still needs an independent authoritative funds check.
+
+Native assembly evidence (copied here): accepted
+ev_50d5389d0e78c2195155c556727b2150c1289263a204747719239d648fbcbf99;
+display ev_8824c58f2355519e447ea2d309084fd940705d3afb6bc4638ca93b8a1c2e0f8f;
+pending ev_49207891b4790064b76a2a743f4f5c4c750a8a63f8d5f775ef55f43980c0ad96;
+shortfall ev_a70b7e186cea6e95a86485b1a5102851ac6e9bee91dcbc5c4532058a9badb360.
+Exact constants and interpolation are in docs/research-notes/shop-research/pricing/findings.md.
+
+## Derived charged-stack example
+
+Synthetic arithmetic example, NOT a native execution or historical item:
+P10000, max charges50, S70, CL40, type other than51018.
+
+| Offered rows | Displayed sale | Accepted-transfer sum | Pending funding credit |
+| --- | ---: | ---: | ---: |
+| One row count25 | 3517 | 3534 | 7069 |
+| Two rows count25 each | 7034 | 7068 | 14138 |
+| One row count50 | 7035 | 7069 | 7069 |
+| Count25 plus a zero-price row | 3517 | 3534 | 7069 |
+
+The quote/accepted discrepancy need not be limited to one credit. Per-unit
+rounding can accumulate across25 charges. Splitting equivalent total charges
+across rows also changes the rounding result. tmp_arithmetic.py and
+arithmetic-examples.json preserve derivation using exact imported constant
+values and float32 unit stores; they do not execute the original x87 code.
+
+## Zero-value sale rows
+
+Accepted100a99d0 moves/consumes a valid offered row before reading its price:
+static branch100a9a8f..100a9a9b calls1002d620; dynamic branch100a9ba3..100a9baf
+calls1002d940 after its TimeExist8=-1 check. A price of0 or missing-price sentinel
+contributes0; it does not stop the loop, cancel another row, or restore that
+row. The next row is still processed. Display and pending arithmetic likewise
+add0 for price0/sentinel. Native Add's known NoDrop/timespan/ownership gates
+do not add a positive-price requirement.
+
+DDR shop Accept10048870 checks cachedBUY-cachedSELL-currentCash <=0. It has
+no positive-proceeds or nonzero-sale-row requirement. Thus a mixed positive
+and zero-valued offer, or an otherwise valid zero-value offer, is not rejected
+by those particular native checks. Original-server admission is not recovered.
+
+## Removing a sale that funded selected purchases
+
+Public Remove sender1001ff50 checks ordinary inventory room for own offers,
+then sends action5; no affordability check. Received own Remove10077cc0 calls
+inventory helper10060090, restoring that row first-free and notifying local
+inventory/trade UI. It does NOT clear or scan the vending purchase list and
+does not call100781c0. A vending purchase Remove instead goes through100a97b0
+and1001e2e0 for that selected catalog row only.
+
+TradeUpdated event171 -> DDR10049380 ->10048f50 clears/rebuilds visible BUY/SELL
+grids from their existing inventories, then10048d50 recomputes the sale quote.
+Clearing a grid here does not erase the underlying machine transaction list.
+There is no automatic removal of newly unaffordable purchases in these paths.
+
+Subsequent Add revalidates current pending funding through100781c0. Accept
+10048870 compares view caches+a8BUY / +acSELL to current cash61; on shortfall
+it prints "Sorry you lack ...", changes the button state and returns without
+sending Accept1. The basket remains available for removing purchases or adding
+sales. SetCash6 has already been submitted before that Accept check; this
+does not itself make the purchase affordable or commit anything.
+
+Sources: local/player-trade-research/native/reused-0x1001ff50.c.txt and
+reused-0x10077aa0.c.txt; Remove ev_3b068fe016d29c9c6d60176e86341dcd106df72df90b32492a9c956186bf61c7;
+grids/price ev_f5717956dbc1f446ae83949a01f62f1535d4e2f743295d46fb199db6490f039e;
+Accept ev_54f573e7f808a88dcbfa7bd04148f5d080b9b5e15b33b89b502baa39c4dea19f.
+Maintained restore body copied as generated-36060090.txt.
+
+## Computer Literacy changes while the shop is open
+
+Every call to buyQuote100a9610 or saleQuote100a9e20 rereads actor stat161/mode0.
+The buy wrapper100262c0 and shop-stat74 accessor10027060 therefore obtain
+current quotes when called. This does not mean all displayed basket values
+are recomputed automatically.
+
+Displayed SELL cost is fresh10020040(player)->10078060->100a9e20 at refresh.
+Displayed BUY cost is10020040(machine)->100a9490->transaction inventory+0x14,
+an accumulated integer cost. Add100a96b0 gets current buyQuote then1001e210
+adds it to+0x14; Remove100a97b0(-1) gets current buyQuote and1001e2e0 subtracts
+it from+0x14. The selected row stores a count, not its historical unit quote.
+100a9490 simply returns that cached total; it does not reprice each row.
+
+Consequently a CL change can produce old/mixed cached BUY prices even when
+the sale total refreshes. Removing an old selection after a CL change subtracts
+the CURRENT quote, rather than a stored original unit quote. For example,
+derived base10000: add atCL0 caches10000, remove atCL40 subtracts9901, leaving
+99 cached cost with no selection. This is an implication of the retained paths,
+not a runtime reproduction or a desirable server accounting policy.
+
+Pending affordability100a9f60 separately reprices all selected purchases using
+current CL. Accepted-transfer sale100a99d0 also rereads current CL. The visible
+BUY cache, fresh admission calculation and accepted-transfer sale total can
+therefore disagree after in-place stat changes.
+
+Known display refresh entry points:
+
+* Start100485b0, then10048f50 after identities are established.
+* TradeUpdated171 receiver10049380 ->10048f50 ->10048d50.
+* Drag/drop10048b40 ends in10048f50.
+* OpponentCash173 receiver100493d0 ->10048f00 ->10048d50.
+
+Accept10048870 does NOT call10048d50 or10048f50 before its funds check. Its
+initial10049090 parses/clamps offered cash and signals the cash-input display;
+it does not reprice baskets. A later server Cash6 echo can cause opponent-cash
+notification, but is asynchronous with the current Accept callback.
+
+TradeViewModule10049170 registers trade events170/171/172/173/174/175/176/177,
+cash-input16e, completion16f, item-dropped8f and init/shutdown5/6. It contains
+no stat161 notification subscription or per-frame quote hook. The retained
+direct generated callsites for10048d50 are start, refresh and opponent-cash
+update. This establishes EVENT-DRIVEN refresh in the recovered paths. It does
+not prove that every inherited UI/vtable route has been inspected. No complete
+generic CL-stat-notification-to-TradeView path is recovered; do not claim an
+automatic per-frame refresh or that a CL change alone refreshes the view.
+
+Sources: cached Add/Remove ev_d975751d3e08996e446dae5c8d38729be2881957763cac0c6acba52a822e6951;
+10048f00 ev_14ec02170beb079a5d02c4fd0900fa29e4fbf2ad9cc7b1f22a080eb443932971;
+module/173 receiver ev_c377df0a78b0a09634426321e7c2edd319bad2630359ebf2582069822a6b2017;
+price refresh ev_f5717956dbc1f446ae83949a01f62f1535d4e2f743295d46fb199db6490f039e.
+10020040 maintained source is lifted-0013.c:5138;100a9490 is retained in
+local/player-trade-research/native/reused-0x100a9490.c.txt.
+
+## Open coverage
+
+This worker performed no game test. Inherited UI refresh hooks, a full stat161
+notification chain, original-server CL-change pricing policy, all dynamic-item
+quote branches, extreme integer overflow and original x87 executable replay
+remain open. Parent owns runtime verification and any current server policy.
+No native evidence here requires silently deleting selected purchases merely
+because sale funding or CL changed. Server authority still must prevent an
+unfunded atomic completion regardless of the client's inconsistent quote paths.
diff --git a/docs/research-notes/shop-purchase-research/native/README.md b/docs/research-notes/shop-purchase-research/native/README.md
@@ -0,0 +1,237 @@
+# Original 14.9.1 purchase protocol ledger
+
+Read-only investigation, 2026-10-24. No server, database, client runtime or
+production source changes. REA session exported to `evidence.json` and closed.
+This bundle includes the imported access snapshot's prior records; new focused
+records are indexed below. Existing shop evidence was reused before follow-up.
+
+Target `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Ghidra 12.1.2, REA 6.5.0, profile
+`17fae9135c0f647ce7271e2b74936949ebe245320c1606a223c86bce0b2b7bed`.
+Opened with `local/shop-room-research/access/kkr-access.snapshot.json`.
+UI evidence was reused from `local/shop-research/wire/gui-evidence.json`, target
+`ddr.dll` SHA-256
+`3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883`.
+All addresses below are original 0x10000000 image addresses; generated KKR C
+uses base 0x36000000 (subtract 0x26000000).
+
+## Answer and scope
+
+The stock packet is a template/quality catalog, with no owned item identity,
+quantity, availability, generation seed, price or stock category code. A native
+purchase basket contains catalog references and a selected package count.
+It does not reserve or move a pre-existing owned item. Completing that basket
+does not itself create purchased inventory or debit player cash in the inspected
+client path. Those are authoritative server responsibilities.
+
+Consequently, "the same stock-owned instance becomes player-owned" is not a
+requirement established by this native protocol: there is no stock instance ID
+on this wire. A reconstruction may create a durable item on Accept, or retain
+an internal pre-created stock instance, but the latter is a server design choice.
+Whichever is chosen, inventory delivery and reconnect must reference the same
+durable owned record. Historical stock membership and random generation remain
+outside this native evidence and are not invented here.
+
+## Observed: exact catalog and trade wire
+
+The common server `n3Packet` prefix is key, subject.type, subject.id, pass-on
+(four big-endian u32 words). Layouts below begin immediately after that prefix.
+
+`ShopUpdateIIR_t`, key `0x58362220`, subject `(51035,machineID)`:
+
+| Offset | Encoding | Meaning |
+| --- | --- | --- |
+| 0 | u32 | `(entryCount + 1) * 1009` |
+| 4 + 12*i | u32 | Low template ID |
+| 8 + 12*i | u32 | High template ID; native reader substitutes low when zero |
+| 12 + 12*i | u32 | Quality; native reader retains low 16 bits |
+
+Reader `0x100aa350` rejects nonpositive/nondivisible count tokens and counts
+at least 1000. Zero entries is valid but handler emits the GM warning. The
+reader stores each tuple as `{quality,low,high}`. `0x100a98b0` clears the old
+catalog, appends tuples and creates browse rows with identity `(111,i)`, null
+auxiliary identity, ushort count 1 and flags 0. Indices start at zero and are
+determined exclusively by packet order. `0x100aa810` finds a tuple by identity's
+second word, returning a null tuple for out-of-range indices; it does not check
+the identity type. The server must validate page and bounds itself.
+
+Sources: existing wire `batch1.json`, `batch2.json`, `batch5.json`; extracted
+`reused-0x100a98b0.txt`. Follow-up E1/E2/E3 below. A new ShopUpdate replaces
+the index meaning; it is not an incremental per-instance stock update. Safe
+handling of a catalog replacement during an active basket needs server policy
+and runtime verification.
+
+`TradeIIR_t`, key `0x36284f6e`, subject normally `(50000,playerID)`:
+
+| Offset | u32 word |
+| --- | --- |
+| 0 | Version = 1 |
+| 4 | Action |
+| 8, 12 | A.type, A.id |
+| 16, 20 | B.type, B.id |
+
+For purchase Add action 4 and Remove action 5, A is machine identity and B is
+`(111,catalogIndex)`. Each Add selects exactly one additional package. Each
+Remove removes one package and drops the row at zero. There is no count field
+in either request. `0x100a96b0` invokes `0x1001e210` with the same catalog
+reference as both entry identities; an existing row's signed16 quantity is
+incremented. There is no observed saturation check in that increment.
+`0x100a97b0`/`0x1001e2e0` recalculate/subtract one unit quote on removal.
+
+Existing wire `batch8.json`, Evidence
+`ev_d975751d3e08996e446dae5c8d38729be2881957763cac0c6acba52a822e6951`,
+retains the basket helpers. E4 retains removal. This is a package count, not
+the shop's remaining supply. The browse catalog's count 1 does not impose
+a one-package purchase limit.
+
+## Observed: admission, package size, cancel and completion
+
+Sender `N3Msg_TradeAddItem` at `0x1001fb50` runs generic inventory admission,
+rejects equipped references (101..103), requires a free trade row, resolves
+the selected shop template and exempts page111 from the NoDrop-sale rejection.
+For page111 it calls `0x100781c0`, rejecting a positive shortfall. That helper
+returns `pendingNetBasket + newUnitBuyQuote - currentCash61`. The echoed Add
+handler `0x10077aa0` repeats affordability and checks `0x10062a20(template,1)`
+for an already-owned Unique item before adding the catalog selection.
+These client checks are not server authority; forged requests bypass them.
+
+Native `0x100a9710` returns selected packages times template stat212, provided
+the template reports that stat and its type is not 51018 (weapons). Otherwise
+it returns selected packages. Its only direct caller `0x100782a0` uses it for
+stat412 (current quantity) requested on a trade entry. Thus the basket can
+display, for example, the charges in multiple kits instead of package count.
+This proves display quantity calculation; it does not prove historical stack
+merging, packing across slots, package-size admission or server caps. Those
+must remain explicit choices until a purchase runtime confirms them.
+
+Native Accept button behavior is already observed/documented in `docs/shops.md`:
+SetCash action6/A=(0,0), then Accept action1/A=B=zero. `N3Msg_TradeAccept`
+`0x1001fa40` only constructs/sends action1; it does not mutate inventory or cash.
+The Accept echo updates acceptance UI, not durable success. Abort action2
+restores staged sales, clears trade state and removes the machine transaction;
+the catalog remains. Removing a purchase selection does not create inventory.
+
+Complete action3 handler `0x10077700` clears busy flag8, emits
+`CMsg_TradeCompleted(true)` and enters vending finalizer `0x100a99d0`.
+The finalizer drains the player's sale TradeInv via `0x1002d620`/`0x1002d940`,
+then clears the machine purchase selection with `0x1001e390` and removes the
+per-player machine transaction. It has no purchase-item allocation loop and
+no write to cash61. Its virtual+0x24 call resolves via vtable `0x1017436c`
+to `0x100030d0`, which merely writes the actor identity at object+0x24/+0x28;
+it is not a hidden purchase-delivery call. New E5/E6 corroborate this.
+Only `0x10077700` is a direct caller of the finalizer (E7).
+
+Source generated paths: `client/game/kkr.dll/lifted-0013.c:sub_3601FB50`,
+`lifted-0034.c:sub_36077AA0`, `sub_36077700`,
+`lifted-0050.c:sub_360A96B0`, `sub_360A9710`, `sub_360A99D0`.
+Existing wire batch4/batch6 plus new E5..E12 preserve pseudocode.
+
+## Observed quote; inferred authoritative purchase price
+
+Existing `docs/research-notes/shop-research/pricing/findings.md` already establishes:
+
+```
+base = T(stockItemPrice * terminalStat427 * binary64(0.01))
+discountPercent = min(T(ComputerLiteracy161 * float32(0.025)), 90)
+unitQuote = base - T(discountPercent * base * float32(0.01))
+purchaseLineQuote = unitQuote * signed16(selectedPackageCount)
+```
+
+T truncates toward zero. Stock price74 uses the original QL interpolation and
+special quadratic price curve. `0x100a9610` quotes a whole package; it does
+not divide price by stat212. `0x100a9f60` uses that quote for pending basket
+purchase contributions. CL discounts are rounded per package before quantity.
+Exact constants/assembly are in pricing `buy.json`, `sell-direct.json` and
+`initial-2/3/4.json`. The purchase quote's 90% cap is observed; a later 80%
+rule must not override it.
+
+This finalizer does not independently recompute/charge purchases on Accept.
+Therefore no distinct native accepted-purchase rounding formula was recovered.
+Using `unitQuote * packageCount` as server debit matches observed UI, but is
+an implementation inference, not a recovered historical server algorithm.
+Do not substitute sale-finalizer rounding, normalize buy price by charges,
+or round the CL reduction once after multiplying package count.
+
+## Owned-instance delivery and reconnect contract
+
+Observed existing inventory protocol (`docs/inventory.md`,
+`docs/inventory-stacks.md`) supplies two different representations:
+
+- FullCharacter reconnect inventory entries carry logical slot, flags,
+ ushort count, durable type/ID, low/high template IDs, QL and auxiliary zero.
+ Its row is 32 bytes; native slots48..77 map to shared slots64..93.
+- AddTemplate `0x052e2f0c` body is exactly four u32 words `{low,high,QL,count}`.
+ It creates a template entry in first free ordinary slot using null instance
+ identity. It cannot transmit the durable item ID. Existing stack research
+ E13/E14 and `local/reports/stack-resync-1491-evidence.json` establish that.
+ Live weapons/containers use their separately supported object-fullupdate
+ path and flag2; AddTemplate is not a general replacement for those paths.
+
+Inference for implementation: validate catalog index/tuple, eligibility,
+affordability, Unique rules, package quantity and inventory capacity at Accept;
+allocate the durable owned record(s) once; save ownership/count/template
+endpoints/QL and absolute cash atomically; only then publish inventory delivery,
+Complete and authoritative cash61. Repeated Accept and reconnect must reload
+the committed records, never allocate another copy from page111.
+
+There is no native stock identity to preserve. AddTemplate's temporary null
+identity also means "identical nonzero native dynel ID before and after
+reconnect" is not established by that message. Durable server identity can be
+preserved while template actions continue to address page/slot. If a nonzero
+live native item identity must exist immediately, its exact supported object
+delivery route must be selected and exercised; do not invent an extra ID word
+in ShopUpdate or AddTemplate. A generic purchase grant should not silently
+claim that part verified.
+
+## New focused evidence index
+
+All E1..E12 are in this directory's `evidence.json`; E13/E14 are prior evidence.
+
+| Label | Procedure | Evidence ID |
+| --- | --- | --- |
+| E1 | Shop reader100aa350 | ev_93c995d1db78c190417a40765c1ae77d6262b551cbe8b91954e45f1f9a7cf6bb |
+| E2 | Shop writer100aa2d0 | ev_d207c4da5f47beccba8a55ac3d9c90d40aae23f13af96e95f7449140736db567 |
+| E3 | Catalog lookup100aa810 | ev_d858cf58dd4a6304247c88a1f927bb4af076b8106d1d4ebd8372c9cee3ab7a6d |
+| E4 | Remove100a97b0 | ev_057625c1406b09f6376063f377872439feaa019455afcf98d658a0cf26164985 |
+| E5 | Finalizer100a99d0 | ev_81f6a6cd3dc6e7d72ed9b9051e9aa9eb5dec90b90fbff8acf678a495080b29f1 |
+| E6 | Actor setter100030d0 | ev_2a6161dea2cf48330d6213c22e055eec4a42d60edf1202b1e1fd462862ff6d24 |
+| E7 | Finalizer callers | ev_ff53fc28634b10b1b507cf5db46cbd2a1e9446c7b72f77065056611cd1d4e258 |
+| E8 | Affordability100781c0 | ev_a70b7e186cea6e95a86485b1a5102851ac6e9bee91dcbc5c4532058a9badb360 |
+| E9 | Package quantity100a9710 | ev_ea9a267b8c47bed188cb5ad85d777b9b4eada71c29f6aeeb21b4892a0730efe4 |
+| E10 | Trade stat100782a0 | ev_0e2240e115d846fc99ee1f10809b07c9d6406ed36f2fb23e2aa8a217e994ac70 |
+| E11 | Accept1001fa40 | ev_5c26f6e16ffadf82588d144a09ecc3d6d882401f877cc3bcd65e8117eca59b59 |
+| E12 | Clear basket1001e390 | ev_ceb0a8338f2a937a76fb555f6d1a563931782f882c4d8e7e0737cacdfb6e9533 |
+| E13 | AddTemplate reader1007cfe0 | ev_51546b34f37c502e64f97b7f8d254e9cb41cf83c71b676217ffd69bc1ff2761a |
+| E14 | AddTemplate apply1005ef90 | ev_7b4afe19deabc80973ba1b2ac210a5f9b66e9ac793f6521ed89d7b5eec615066 |
+
+## Remaining bounded gaps
+
+Delivery follow-up: `delivery.md` establishes AddTemplate's explicit ushort
+charge count and generic type51022 template proxy support. Historical package
+packing remains unknown. `equipment-admission.md` establishes NPI slots
+1,2,3,4,5,15 and the distinction between its authored Wear6/Intelligence>12
+criterion and the native ItemType1 drag path selecting action8 without a
+Wear6 fallback. TemplateAction6/7 applies its wear/removal effects without a
+live FullUpdate; original server criterion enforcement remains unknown.
+
+BUY icon follow-up: `ui-basket.md` establishes that TradeStart B=machine
+collides with the catalog classification branch and suppresses BUY icons.
+Use nonzero B distinct from both A=machine and actor; the reconstruction uses
+B=(111,0). Its exact historical literal remains unknown. New original DDR
+click/drop evidence is in `ui-evidence.json`; no extra icon packet is required
+by the inspected path.
+
+1. Catalog field schema and native basket protocol: answered statically.
+2. Stock generation/category membership/rotation: unresolved; no generator,
+ random seed or inventory membership is transmitted here. Parent stock
+ investigation owns historical sources. No full RDB scan was repeated.
+3. Buy quote: answered statically; authoritative historical server debit,
+ caps and accepted-transfer rounding remain unobserved.
+4. Delivery/identity: normal inventory representations established; exact
+ successful purchase packet ordering, package-to-stack packing, immediate
+ nonzero native identity and reconnect behavior still need native runtime
+ proof. This worker did not execute a purchase or mutate a runtime.
+5. Native Unique check across repeated basket selections versus owned items,
+ refreshed catalogs during trade and client row capacity beyond one free
+ row were not exhaustively traced. Server validation must not trust UI.
diff --git a/docs/research-notes/shop-purchase-research/native/equipment-admission.md b/docs/research-notes/shop-purchase-research/native/equipment-admission.md
@@ -0,0 +1,94 @@
+# NPI HUD/utility slot and admission distinction
+
+Read-only native follow-up to `delivery.md`. Original KKR target/digest and
+profile remain identical. Reused implant/armor equipment evidence first,
+then inspected the precise template callbacks and vtable. New records are in
+`equipment-admission-evidence.json`; owned REA session closed. No production
+edits, client execution or database writes.
+
+## Slots and effect delivery
+
+Original resource1000020/161699 is type51022, ItemType76=1, QL1.
+LocationMask298=32830=0x803e has bits1,2,3,4,5,15 and DefaultPos88=2.
+Original callback0x1008eda0 checks `stat298 & (1 << suppliedSlot)` directly
+for0..16. Generic equip admission0x10060510 passes destination&0xf, so the
+allowed native/saved slots are exactly1,2,3,4,5,15. No ordinary-inventory
+slot conversion applies. These use page101, unlike clothing page102.
+
+Reused mask evidence from `local/reports/implant-protocol-1491-evidence.json`:
+`ev_3187e55bd4a6de90cf05c1dcf9851bb261a2b770c8eb45dfcd85746e36754db0`.
+The same bundle's0x1005c610 handles ItemType1 deck-slot availability9..14;
+it does not select a different action for HUD or utility positions.
+
+TemplateAction0x35505644 action6/7 uses the same generic template proxy path
+as clothing:0x1005e980 resolves QL/low/high through0x100894c0, then invokes
+wear virtual+0x74 or remove virtual+0x78. NPI's OnWear14 function53045 adds
+2NanoProgramming160. Neither AddTemplate nor this effect dispatcher requires
+a separately delivered live SimpleItem dynel. Keep the usual owner inventory
+move acknowledgement and TemplateAction notifications; a live FullUpdate is
+not required merely because the template's native type is51022.
+
+Owner ContainerAdd helper0x1005dd60 resolves the source template row, emits
+inventory notifications and moves the row through0x1002d380. It does not call
+the wear/remove virtuals. The explicit TemplateAction effect notification is
+therefore meaningful on this path, as in the existing clothing implementation.
+Reconnect initialization's normal owner FullCharacter effects should continue
+to avoid a second extra owner wear action.
+
+Reused TemplateAction evidence:
+`ev_3cd89062e7b4d4a2c5c8aa85884ffc09b99e65eacca95d800b704227eff26bc4`
+in `delivery-evidence.json`. Move helper evidence:
+`ev_ca3b544e617f693a15193dbb11303ccaae381dc0a5c322c52dc0dd2f5a9af6ff`
+in `equipment-admission-evidence.json`.
+
+## Authored action6 versus observed drag admission action8
+
+The complete NPI record has one Wear6 requirement: stat19 (Intelligence)
+strictly greater than12. It has no profession requirement and no action8.
+This is retained in `npi-161699.json`, payload SHA-256
+`43023833474d36381a4721d42d56028fdd3b5ef91f0b54fe96ef9258582fda1f`.
+
+However, original generic inventory-to-equipment admission0x10060510 reads
+ItemType76 and selects callbacks as follows:
+
+| ItemType76 | Equip predicate | Authored criterion selected |
+| --- | --- | --- |
+| 2 or3 | Template virtual+0x60 ->0x10090970 | action6 |
+| 1 | Template virtual+0x68 ->0x10090c70 | action8 |
+
+Vtable0x101729f8 contains these exact addresses. The ItemType1 branch does not
+inspect DefaultPos88 or distinguish HUD/utility slots from belt/deck slots
+when selecting the action. It then separately checks the location mask;
+destination7 additionally requires an empty deck, and6/8 have dual-wield
+checks. None applies an action6 fallback to the NPI.
+
+0x10090c70 calls0x1008f990(8). If action8 is absent, it returns2 (allowed)
+when stat76==1; otherwise0. An existing but empty action8 also passes. A
+populated action8 runs the postfix evaluator. Thus belts check their authored
+action8 CL criterion, while NPI's ordinary native drag admission does not
+enforce its distinct action6 Intelligence criterion in this inspected path.
+
+Effect execution action6 and admission criterion selection are separate.
+Calling TemplateAction6 to apply OnWear14 does not imply the admission callback
+evaluated criterion6. No historical server implementation was recovered;
+it may have additionally enforced NPI's authored6. If this reconstruction
+does so, describe it as an authored-data server policy stricter than the
+observed ItemType1 client admission, not as a recovered native fallback.
+The read-only investigation does not decide that server policy.
+
+## Focused evidence and source paths
+
+All following IDs are in `equipment-admission-evidence.json`:
+
+| Procedure | Evidence ID |
+| --- | --- |
+| Generic admission10060510 | ev_c0637c99b0b32adec9081a8f14509f3804654ea2e9cd93dd3d5f6f96b556c2aa |
+| ItemType1 predicate10090c70 | ev_6c6e7cf16ed98f94de330fd62ea3fa90e8d3c8793ecf8c5c2312e4be1a622c0f |
+| Wear predicate10090970 | ev_b39bf01b97edb10774d7f9b36eb95985bd99930682b05bc3abae786cb1d49269 |
+| Remove predicate10090b70 | ev_ed9d84578822f9c58f17853e16ad2964964fae2101bf442255f32c9a2a78f7ad |
+| Exact action lookup1008f990 | ev_00430073995bb4d63bbd1c04456eb6a22f58a66ae23357ecd7d9f19407b25fda |
+| Vtable at10172a58 (20 bytes) | ev_9bc43252823f8adb0d19f5da654bb172ab9d724b66197953ae09e5018ec159fc |
+
+Generated sources `client/game/kkr.dll/lifted-0029.c:sub_36060510`;
+`lifted-0042.c:sub_36090970`, `sub_36090C70`, `sub_36090B70`,
+`sub_3608F990`, `sub_3608EDA0`; `lifted-0028.c:sub_3605DD60`.
diff --git a/docs/research-notes/shop-purchase-research/native/ui-basket.md b/docs/research-notes/shop-purchase-research/native/ui-basket.md
@@ -0,0 +1,95 @@
+# Empty BUY basket: catalog classification collision
+
+Read-only static follow-up. No production edits or runtime mutations. The
+parent supplied `local/shop-purchase-smoke/inspect-add.png`, showing a visible
+Lock Pick catalog icon and 228-credit purchase total, with empty BUY cells.
+That image establishes the symptom, not the cause by itself.
+
+Target DDR SHA-256
+`3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883`.
+Reused `local/shop-research/wire/gui-refresh-batch.json` and
+`gui-start-batch.json` first. New focused click/drag evidence is exported in
+`ui-evidence.json` (includes prior records imported from the latest DDR
+snapshot). Owned REA session closed.
+
+## Observed cause
+
+DDR TradeView startup `0x100485b0` stores its three identities as:
+
+| Source | View offset | Role in observed consumers |
+| --- | --- | --- |
+| Actor | +0x6c | Player sale basket owner |
+| Trade A | +0x64 | Actual partner, purchase basket owner and catalog lookup owner |
+| Trade B | +0x5c | Catalog row classification tag; nonzero also selects shop mode |
+
+Its exact mode condition is ordinary trade only when BOTH B.type and B.id
+are zero. B=(0,1), B=(111,0) and B=(51035,0) all select shop mode.
+
+`0x10048f50` clears and rebuilds the BUY grid+0x54 by calling
+TradeGetInventory(A) and rendering each row with owner=A. For catalog rows,
+it calls GetContainerInventoryList(A), but deliberately renders them with
+owner=B. B is not the catalog lookup owner in this path.
+
+Row renderer `0x10048a20` compares the supplied owner by VALUE in this order:
+
+1. If owner==B, treat it as catalog. If the same item is already in catalog
+ grid+0x50, return without adding any icon.
+2. Else if owner==A, add BUY icon to grid+0x54 with drag kind0x35.
+3. Else if owner==actor, add SELL icon to grid+0x58 with drag kind0x36.
+
+The current handshake A=machine,B=machine makes the first comparison match
+while rendering BUY entries. The already-populated catalog suppresses them
+before the BUY branch is reached. Cost refresh is independent and continues
+to read the correct machine basket. This directly accounts for the observed
+empty cells and correct cost. It is an original native branch reached through
+the supplied identities; no WASM adapter defect or missing extra notification
+is needed to explain the symptom.
+
+Exact original instruction boundaries are retained in generated source
+`client/game/ddr.dll/lifted-0018.c:sub_2B048A20`: owner.id comparison at
+0x2b048a58, owner.type comparison at0x2b048a6c, catalog membership test at
+0x2b048a75 and early exit at0x2b048a7d. BUY comparison begins0x2b048abb.
+`sub_2B048F50` is the refresh and `sub_2B0485B0` the startup.
+
+Reused Evidence:
+`ev_f5717956dbc1f446ae83949a01f62f1535d4e2f743295d46fb199db6490f039e`.
+This corrects the earlier A=machine,B=machine recommendation in
+`local/shop-research/wire/gui-refresh.md` and `handshake.md`: those reports
+correctly found that B must be nonzero, but missed the classification collision.
+
+## Observed click and drag requests
+
+New `0x10048c40` handles native item clicks:
+
+- Drag kind0x34 (catalog) sends TradeAdd with A=view+0x64, B=item reference.
+- Drag kind0x35 (BUY) sends TradeRemove with A=view+0x64, B=item reference.
+- Drag kind0x36 (SELL) sends TradeRemove with A=view+0x6c, B=item reference.
+
+New `0x10048b40` handles drag/drop and uses the same partner/player owner
+identities. Neither uses view+0x5c as the request's source owner. Thus changing
+the catalog tag does not require changing purchase action4/5 identities.
+The existing `(111,index)` catalog/basket item references remain correct.
+
+Evidence:
+
+| Procedure | Evidence ID |
+| --- | --- |
+| Click10048c40 | ev_a2666622692785910a4d4200419e7d5872afd02b32a33edd0c7e378b2d8b41c2 |
+| Drop10048b40 | ev_1e4ca4760700520f2c374dd71b4f2d5320e52b388e41e0cb8868d47c5a630fe8 |
+
+## Minimal proposed correction and unknown
+
+Preserve machine-subject action0 A=player,B=zero. Preserve player-subject
+action0 A=machine, but choose a nonzero B distinct from both the machine and
+the player. `(111,0)` reuses the native catalog identity namespace and works
+for the inspected consumers. `(51035,0)` and `(0,1)` also satisfy the observed
+conditions. No historical server B value was recovered, and none of those
+choices is claimed as an observed original payload. The synthetic tag is a
+reconstruction choice; the requirement that it be distinct is native evidence.
+Keep B=(0,0) for ordinary player trade.
+
+After the one-field correction, verify in the existing native runtime that
+Add produces a visible BUY icon, clicking it sends action5 with machine owner
+and `(111,0)`, the count/quote decrease, and sale Add/Remove still uses player
+owner with pages104/108. No additional icon packet or client patch is justified
+by this evidence. This worker has not performed that runtime verification.
diff --git a/docs/research-notes/shop-research/pricing/findings.md b/docs/research-notes/shop-research/pricing/findings.md
@@ -0,0 +1,179 @@
+# Original 14.9.1 shop price calculations
+
+Target: `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+REA Ghidra 12.1.2, profile
+`17fae9135c0f647ce7271e2b74936949ebe245320c1606a223c86bce0b2b7bed`.
+Addresses below use original image base 0x10000000. Lifted C uses base
+0x36000000; add 0x26000000 to compare.
+
+## Observed client purchase quote
+
+`n3EngineClientAnarchy_t::N3Msg_ShopGetItemCost` at 0x100262c0 resolves
+the vending machine and local player, then calls `FUN_100a9610`.
+`N3Msg_GetShopItemStat` at 0x10027060 also calls this function for stat74;
+other stat requests use the underlying shop-entry lookup.
+
+Define T(x) as CRT `_ftol` truncation toward zero, F01 as float32 0.01,
+F025 as float32 0.025, D01 as binary64 0.01. The assembly gives:
+
+```
+base = T(stockItemPrice * terminalStat427 * D01)
+discountPercent = min(T(playerComputerLiteracy * F025), 90)
+buyQuote = base - T(discountPercent * base * F01)
+```
+
+The CL read is stat161, mode0, from the local player's skill subsystem.
+The terminal modifier read is stat427, mode2. No lower clamp is observed.
+The cap is 90 percent in this original client; later web sources describing
+an 80 percent cap do not override these original bytes.
+
+Evidence: `buy.json` ev_848893ec597350ac1fd9cf4f10e316f91fdbf7c45d6ceac874fb9c4f4671477e;
+`buy-wrapper.json` ev_8f4684e0e3afe53234b3ade2c5c02a0c05d8b4733b81bdf4d083fd57b46e594f;
+`get-shop-stat.json` ev_cb37d9f99eb7454bc10b5f3883b1151ac3412aaa37c68896da203d1bebd27294.
+
+Exact constants are preserved in initial-2/3/4.json:
+
+- 0x101744a0 bytes cdcccc3c: F025 = 0.02500000037252902984619140625.
+- 0x10170894 bytes 0ad7233c: F01 = 0.00999999977648258209228515625.
+- 0x10170e80 bytes 7b14ae47e17a843f: D01 = 0.01000000000000000020816681711721685132943093776702880859375.
+
+These details matter at integer boundaries. The inferred exact-decimal model
+in tmp_arithmetic.py gives value10000/modifier100/CL40 -> 9901; CL3200 ->
+2001; CL3600 and4000 -> 1001. This model is derived evidence, not an original
+executable replay. `_ftol` import is IAT0x1016f284, reached by thunk0x1015fd8c.
+
+## Stock price and quality
+
+`FUN_100aa7b0` selects a shop tuple by the second word of the provided
+identity (sequential shop-entry index). Each tuple has three words: quality,
+low template ID, high template ID. Stat701 returns the quality directly;
+other stats call `FUN_100aa630`.
+
+That reader loads resource type1000020 for both endpoint IDs. For stat74 it
+reads both endpoint prices and qualities, runs rounded linear interpolation
+`FUN_100eff20`, then applies `FUN_100f1320` to the interpolated price:
+
+```
+lo = min(endpointPrices)
+hi = max(endpointPrices)
+if prices equal, or interpolated equals either endpoint: return interpolated
+return T(lo + (interpolated-lo)^2 / (hi-lo))
+```
+
+The same price curve is used for ordinary instantiated item stat74 by
+`FUN_100f0c80`. Price interpolation is therefore not ordinary linear stat
+interpolation. Other nonnumeric stats can use the nearer template endpoint.
+
+Evidence: item-stat.json ev_426f71caa89641a1c8fb6ab47b677622cc07bd992755e07214a54b351e16ebaa;
+stock-stat.json ev_306e6cbbbe344b27751d7f8c70aabf8aa23b693eae169cce7944c4998a0d69f4;
+interpolate.json ev_8e74e096cabced73783a68d8f7822845dee9aa35efedfd48f6bca271bfae0bae;
+price-scale.json ev_3bca33cd977ee31ce2d449d48369cca7d6be731a195b1f5391a46f257f33ac13;
+instance-stat-price.json ev_aa7ad87b4229ff57be74817ae29c3d047aad7a61b5ba330daa379b467075d1df.
+
+## Selling and charges
+
+The client has distinct calculations for staged sale quote, local accepted
+transfer, and pending net basket. They agree conceptually but have different
+integer rounding points. Do not collapse them into one exact formula without
+choosing which contract is being reconstructed.
+
+`FUN_100a99d0` handles accepted vending-machine transfers. For each offered
+item it reads price74 (missing sentinel1234567890 becomes0), casts price to
+float32, and divides by positive stat212 (max charges/package size) unless
+the identity type is51018. The division result is again stored float32.
+Let U be that resulting per-unit price, N the offered count, S terminalstat426:
+
+```
+base = T(N * U * S * D01)
+markupPercent = T(CL * F025)
+lineTotal = max(0, base + T(markupPercent * F01 * base))
+```
+
+No CL cap is observed in this function. Both simple-item and dynamic-item
+branches use this arrangement. Dynamic items additionally require stat8=-1.
+
+`FUN_100a9e20` computes a staged sale total for a UI caller0x10078060. It
+normalizes price/charges similarly, but rounds the per-unit CL addition
+before count and terminal modifier:
+
+```
+lineTotal = T((U + T(T(CL*F025)*U*F01)) * N * S * D01)
+```
+
+`FUN_100a9f60` computes pending net basket cost. Existing sale items are
+negative contributions of price74*S/100 plus CL markup; selected purchases
+are positive buyQuote multiplied by signed16-bit selected count. Its direct
+sale list does not show the charge normalization from the offered-item list.
+
+Evidence: sell-stage.json ev_50d5389d0e78c2195155c556727b2150c1289263a204747719239d648fbcbf99;
+sell-quote.json ev_8824c58f2355519e447ea2d309084fd940705d3afb6bc4638ca93b8a1c2e0f8f;
+sell-direct.json ev_49207891b4790064b76a2a743f4f5c4c750a8a63f8d5f775ef55f43980c0ad96;
+their direct callers are preserved in the matching caller files.
+
+## Terminal defaults and effect names
+
+`FUN_100a8f40` initializes stat426=70 and427=100. Loaded terminal template
+values supersede these defaults: for example checked-in original definitions
+31021 Darren Gralech and31032 NT and Doc spells explicitly have426=5,427=100.
+Use actual terminal definitions, not faction-name special cases.
+
+`StateParse_t::StateParse_t` at0x1009fd40 registers:
+
+- MakeVendorShop = 0xcf52 =53074.
+- AddShopItem =0xcf33 =53043.
+- AddACGShopItem =0xcf45 =53061.
+
+Evidence: init-defaults.json ev_945aebdb5a30dffd6ba8b3cfc578b2aa467e23d0357b13c846b779cd297fa348;
+makevendor-effect.json ev_a9926ef69a99e2c3c8298dbb829cde53c4a97d489189679965e189e657dc4475.
+
+## Limits / unresolved questions
+
+These are static observations of the shipped client, not captured historical
+server executions. Exact authoritative server caps/rounding, admission rules,
+faction/profession restrictions, and stock-generation/drop tables remain
+unproven. Prefer original client quote consistency for the reconstruction,
+but document it as the chosen server policy.
+
+MakeVendorShop/AddShopItem string references only reached parser registration.
+The bounded investigation did not recover their executable effect handlers,
+argument layouts, or how they install426/427. The pricing reader exposes stock
+tuples and item resource IDs, not stock-code WLLL/etc generation algorithms.
+Those server-owned sources remain unresolved.
+
+Later corroborating references (not14.9.1 server proof):
+https://forums-archive.anarchy-online.com/showthread.php?381823-Where-does-one-obtain-the-best-prices-when-selling-to-shops=
+(March2005 firsthand CL/faction-terminal tests); and
+https://wiki.aodb.us/wiki/Quantum_Forcefield_Technology
+(later wiki describes40CL steps and80% cap, which conflicts with this client's90%).
+
+Original shipped OnOpenShop.txt describes staging an item in the shop window,
+then accepting, and warns buying an item back costs much more. This supports
+staged trade semantics but supplies no numerical authoritative formula.
+
+## Followup: sale admission and cash notification
+
+Existing lifted original bytes in `client/game/kkr.dll/lifted-0013.c`,
+`sub_3601FB50`, test NoDrop flag0x04000000 at original0x1001fce1. This rejects
+ordinary NoDrop offers unless the trade peer casts to SimpleChar with byte
++0x1b4 set or the source identity type is111. An ordinary VendingMachine peer
+does not receive the SimpleChar exception. This agrees with the independently
+documented flag evidence in docs/reclaim.md.
+
+Dynamic-item sale completion in FUN_100a99d0 reads stat8/mode2 and requires
+-1 at0x100a9b91..100a9b9d before transferring it. Simple static item branch
+does not make that read.
+
+The vending completion branch of FUN_10077700 at0x100777b0..100777e4 calls
+FUN_100a99d0, clears the player's busy state, and returns before its ordinary
+player-trade cash61 update path. FUN_100a99d0 accumulates a sale price in a
+local variable but never applies it to player cash. Its tail clears the shop
+transaction list using FUN_1001e390 and removes the client entry using
+FUN_100aa190; both helpers only clear/release structures. Therefore action3
+does not itself credit the local player's cash on the vending path. Send an
+authoritative absolute stat61 update with successful sale completion (using
+the current client's existing stat update route); it will not double-credit
+cash through this finalizer.
+
+The completion interpretation above is a bounded static inspection of the
+original lifted bytes and preserved REA assembly/pseudocode, not execution.
diff --git a/docs/research-notes/shop-research/stock/README.md b/docs/research-notes/shop-research/stock/README.md
@@ -0,0 +1,124 @@
+# Startup shop stock source audit
+
+## Result and boundary
+
+No authoritative membership list for the shipped startup-shop category QETS was
+recovered. Do not claim that a fixed set of ammunition, kits, weapons, maps or
+nanos is its historical stock based on this investigation. Empty stock with
+working sales is the honest first milestone until membership is recovered.
+
+The conclusion is bounded: every admitted RDB payload and every RDB identity was
+checked for this category's literal/code representations. This does not prove
+there is no compressed, hashed, or structurally different membership encoding.
+It also does not prove historical stock existed only on the server.
+
+## Shipped source audit
+
+Input `anarchy-vanilla-14.9.1/cd_image/data/db/ResourceDatabase.idx`, SHA-256
+`46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71`.
+`tmp_scan.py` used the existing `tools/data/ao_database.py` reader and scanned
+all 278644 admitted payloads for literal byte sequences `QETS` and `STEQ`.
+The six hits were all resource1000020 vendor templates:
+
+| ID | Category offset in payload | Name |
+| --- | --- | --- |
+| 27054 | 227 | Startup Shop! |
+| 99555 | 174 | OT Basic Startup Equipment |
+| 99569 | 176 | Clan Basic Startup Equipment |
+| 99643 | 139 | Basic Startup Equipment |
+| 100034 | 259 | Startup Shop! |
+| 100035 | 259 | Startup Shop! |
+
+Exact payload lengths, payload digests and byte contexts are retained in
+`qets-scan.json`. These hits describe category references in section23/subtype37;
+none is a recovered membership list. Reversed literal STEQ has no payload hits.
+Category identities `0x53544551` and `0x51455453` have no admitted RDB record keys
+of any kind (`category-key-scan.json`).
+
+Root's catalog proves the static placement of100035 in Omni950 and100034 in
+Clan952. It does not supply category contents. Raw section23 entries are not
+lists of explicit inventory template IDs.
+
+Native target `kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`, has the
+StateParse name mapping AddACGShopItem->0xcf45 and MakeVendorShop->0xcf52.
+That registers parser vocabulary, rather than proving an executable generator
+or finding membership data. `acg-register.json`, Evidence
+`ev_13194bff1f596d204e5dbf2d604332c204b3840d961188bd8bfff235b65ac98c`.
+No claim of implemented client-side ACG generation follows from these strings.
+
+## Exact starter item identities, not stock membership
+
+The parser `tools/data/extract_items.py` confirms these original resource1000020
+names/IDs; complete parsed payloads and digests are in
+`starter-item-candidates.json`:
+
+| ID | Original name |
+| --- | --- |
+| 116628 | Startup Treatment Laboratory |
+| 116629 | Startup First-Aid Kit |
+| 116693 | Startup Maps - Omni-Tek |
+| 116696 | Startup Maps - Clans |
+| 116697 | Startup Maps - Neutrals |
+| 121567 | Solar-Powered Pistol |
+| 121568 | Solar-Powered Rifle |
+| 121569 | Solar-Powered Assault Rifle |
+
+Shipped text tips `LookatStartupTreatmentLaboratory.txt`,
+`LookatStartupFirstAidKit.txt` and `LookatStartupMaps.txt` independently refer to
+these starter concepts. They teach using an existing inventory item, and do
+not establish that the startup terminal sells it. The original client also
+contains profession Startup Crystal items, but these are not a justified shop
+list either. Regular refill items already supported by this reconstruction
+are distinct templates and must not be equated to the startup kits by name.
+
+## Other sources inspected
+
+- Local Fandom DB `Backyard` page, touched2010-10-19, retained in
+ `fandom-backyard.json`. It describes old faction backyards and says the
+ factions have the same shops; it lists no stock. Its post-Alien-Invasion
+ descriptions are not authenticated2003 server evidence.
+- Local Fandom FTS exact phrases `startup shop`, `backyard shop`, `old backyard`
+ returned zero rows. `backyard AND (terminal OR shop OR weapon OR armor)`
+ returned two unrelated later guides. This is a bounded local negative search.
+- Retained CellAO SQL `shopinventorytemplates.sql`, `vendortemplate.sql`,
+ `vendors.sql` contains no QETS/STEQ, startup,100034,100035 or27054 mapping.
+ It includes Keeper/Shadowlands rows, so even another matching row would need
+ period verification before use as14.9.1 truth.
+- Original retail manual text mirrored at
+ https://usermanual.wiki/Pdf/englishmanual.1322650818.pdf confirms purchasing
+ startup equipment in the starting area, without item identities.
+- Narrow web searches for exact Startup Shop and backyard ammunition/rechargers
+ did not recover a period stock list. A2003 firsthand forum conversation at
+ https://gathering.tweakers.net/forum/list_messages/742145/0 has a beginner
+ unable to find ammunition in the training field; the reply speculates about
+ leaving it. This does not establish a complete stock list or a reliable
+ absence of ammunition.
+- Later firsthand guide https://gamefaqs.gamespot.com/pc/913777-anarchy-online/faqs/46197
+ mentions QL1-10 Original Electronicum from the Second-Hand Peddler. This is a
+ different NPC vendor and later guide, not evidence for QETS terminal stock.
+
+## Empty machine and sale protocol follow-up
+
+Original ShopUpdate0x100a98b0 accepts token1009 (zero entries), then logs
+`Shop contains no entries..please contact a GM..`. Machine constructor
+0x100a8f40 already initializes empty stock. Omit empty ShopUpdate to avoid the
+misleading warning; native trade UI with no stock still needs runtime proof.
+
+Native sale request action4 keeps the input item identity unchanged at its
+constructor call0x1001fe84. Therefore normal inventory uses the existing page104
+slot reference, rather than substituting its owned item dynel ID. The echo
+receiver moves the item to native trade storage through0x100601b0.
+
+TradeComplete action3 handler0x10077700 first clears actor flag8, then invokes
+CMsg_TradeCompleted(true), then calls vending finalizer0x100a99d0. That finalizer
+is guarded by machine byte+0x120 !=1; this investigation does not establish the
+mode's semantic or promise that it mutates the active WASM client's inventory.
+Perform durable server mutation before complete and verify client inventory
+updates/resync in the WASM UI. Existing wire evidence batches4,6,7,8 preserve
+these exact procedures.
+
+Native helper constructors and base-fullupdate application are also retained
+in `native.json`, Evidence
+`ev_9cddcb6cd471ced6fda41912bcf3f2c890ba7116fc8942f7ae22b54f91d3f397`.
+Owned REA session closed; no production edits or runtime processes remain.
diff --git a/docs/research-notes/shop-room-research/access/README.md b/docs/research-notes/shop-room-research/access/README.md
@@ -0,0 +1,197 @@
+# Native vending access admission
+
+This is read-only original-client research. No production source/data,
+SQLite, server or client was changed. The REA session was exported and closed.
+
+## Target and retained state
+
+Target: `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Ghidra12.1.2, analysis profile
+`17fae9135c0f647ce7271e2b74936949ebe245320c1606a223c86bce0b2b7bed`.
+The matching `local/nano-death-research/kkr-death.snapshot.json` was supplied
+when opening. `native-evidence.json` retains119 records including reused
+snapshot evidence; `kkr-access.snapshot.json` includes the additional queries.
+Addresses below use original image base0x10000000. Generated lifted C uses
+0x36000000, an offset of0x26000000.
+
+## Answer: Use selects action3 only
+
+Observed original vending admission0x100a9430 calls
+`FUN_1008fc40(3, player + 0xe4, 0)` and returns2 for true,0 for false.
+Its incoming data reference is0x101743b8, offset0x4c into the vending
+primary vtable0x1017436c. Constructor0x100a8e70 installs that vtable.
+There is no separate action0 admission in this checker.
+
+Wrapper0x1008fc40 looks up the requested action through0x1008f990. The
+lookup uses the exact requested integer key in the action map; it has no
+action0 fallback. If the action is absent, wrapper returns1. Otherwise it
+sets criteria identity context to zero and evaluates the action's list with
+the player's stat interface and rewrite flag0. Empty lists pass the shared
+interpreter, as already established in `docs/combat-client-requirements.md`.
+
+Therefore the original client admission rule is:
+
+- No actions: unrestricted by criteria.
+- An action3 with empty criteria: unrestricted by criteria.
+- An action3 with criteria: evaluate its whole postfix list against the player.
+- Only action0 present: action3 is absent, so unrestricted by this Use check.
+ Do not silently promote the action0 side restriction to action3.
+
+This last distinction matters for14 templates (eight Clan, six Omni) in the
+346-template placement catalog. The source naming suggests faction intent,
+but the native Use checker does not test those action0 requirements. This
+is static client evidence; historical server-side admission could have been
+stricter and has not been recovered. Naming is not evidence for a different
+rule. A server implementation mirroring this observed path should evaluate
+action3 and accept absence, retaining action0 data without reinterpreting it.
+
+Principal Evidence:
+
+- `ev_7f0e77dcffa1f7d11eff955e55ddd4f7643f8312ef6a1d01818fefd7e6cbc0de`:
+ exact vending checker0x100a9430 and generic item Use checker0x1008fda0.
+- `ev_409f566a7d884d91536b4f3c458ee7884f3c3f8ffcc90012feb843e5790871c7`:
+ complete vending checker body0x100a9430..0x100a9457 and vtable reference.
+- `ev_adf57635aaa6f6799d0e4e3ff17c5979c87670af35566d2d9f66680bbc471181`:
+ absent-action-success wrapper0x1008fc40.
+- `ev_c7a37ba5ec24ae8342b9ab4fa4a7c6e4d7bf9f3da7299299d847a5f209d22874`:
+ exact action-map lookup0x1008f990 (and related action callers).
+- `ev_68c5a56085d944f5bc19eac7ae0ed697eeb538d24f5bc3b9217cb29c2b91f944`:
+ vending constructor0x100a8e70 and original criteria formatter0x10024a40.
+
+Selected complete pseudocode is copied to `native-0x*.c.txt`. The file
+`native-0x10024f00.c.txt` was selected by an interior address; its canonical
+procedure is the exported ConvertCriteria at0x10024a40, as the Evidence says.
+
+## Stat389/operator22: proved from first-party code
+
+Original stat-name registration labels0x185 (389) `Expansions`; it is not a
+shop-specific side/level gate. Original `ConvertCriteria` at0x10024a40
+formats stat389 as `Must have expansionset:` and independently tests:
+
+- value bit1: `Booster Pack 1 - The Notum Wars.`
+- value bit2: `Expansion Pack 1 - ShadowLands.`
+- other value bits: illegal expansion data diagnostic.
+
+This identifies both the stat and bit1 without relying on Auno or a later
+emulator. The current placement templates202606,202607,202608,202614,204743
+all author `(stat389, value1, operator22)` on action3. These require Notum Wars
+entitlement. They do not require Shadowlands.
+
+Operator22 is the original registered `BitAnd` operator. Native interpreter
+0x100056e0 obtains stat value in getter mode2 and pushes whether any value-mask
+bit intersects, `(get(stat,2) & value) != 0`. It does not require all mask bits.
+The original compressed operator dispatch mapping and getter mode are already
+documented in `docs/combat-client-requirements.md` and the exported snapshot.
+Fresh complete interpreter pseudocode is Evidence
+`ev_44d7183430ce32258814b3bfd7811bb45abccd05b9cc00b61ec16fb00da96051`.
+Stat-name registration and expansion-related client paths are in
+`ev_708c4fadbbd061b7ff4eaaf7db38b07aee4e004ee239fd2e9a9ceeb502a12614`.
+The canonical naming registration functions resolved from selected interior
+addresses are0x10036490 and0x10037b70; refer to full Evidence for boundaries.
+
+## Current Go evaluator coverage
+
+The346 original referenced vending templates contain these criterion operands:
+
+| Stat/operator | Occurrences | Current support |
+| --- | ---: | --- |
+| Side33 / Equal0 |202| Supported |
+| Boolean0 / And4 |6| Supported by shared postfix evaluator |
+| Level54 / Larger2 |4| Supported, strict greater than |
+| Profession60 / Equal0 |3| Supported |
+| VisualProfession368 / Equal0 |1| Supported by current profession model |
+| BreakingAndEntering165 / Larger2 |1| Supported effective skill with trickle/equipment/nanos |
+| Expansions389 / BitAnd22 |5| Neither stat389 nor operator22 is currently supported |
+
+The three specialist shops99499,99538,151987 require profession7 and level>24,
+with side equality where authored. Shop-of-Fortune155595 requires level>39.
+Wrecked Shop158698 requires visual profession4 and effective BreakingAndEntering
+>179. Existing shared `requirementsMet` plus `character.meetsStatRequirement`
+supports all of these complete postfix lists without template-specific cases.
+
+`ownedItem.requirementsMet(3, player.meetsStatRequirement)` accepts absence
+and empty actions, so it has the required general shape. It currently fails
+closed on the five expansion checks. Supporting them requires an authoritative
+current player/server expansion entitlement value in addition to BitAnd22;
+returning true for unknown stats or treating every BitAnd as a pass is wrong.
+A server-wide grant of Notum Wars bit1 would be a coherent current development
+policy if desired, but is a policy choice rather than historical account data
+recovered from these binaries. Do not add per-template exemptions.
+
+The focused implementation can instead keep these five predicates closed while
+sharing the existing nano-template action3 evaluator with shop Use. Neither
+`effectiveStat` nor the current account/character model supplies a proven
+expansion entitlement. A future producer should supply the character/account's
+owned expansion-bit mask as intrinsic stat389, consistently in authoritative
+Use checks and native character stat delivery. The evaluator should then apply
+BitAnd22 in getter-mode2 semantics. A user-controlled client stat is not an
+authoritative entitlement source. This research found no existing trusted
+current-player producer to reuse.
+
+All but one referenced template have Can stat30 equal8. Dependency Item41325
+has no Can stat30; native default action picking will not offer Use for it.
+That does not change the vending criteria check above, which itself only tests
+action3. Its unavailable dependency-world placement is not evidence for
+granting access to a placeholder terminal.
+
+## Verification boundaries and remaining questions
+
+- Answered: noaction/action0/action3 client admission and exact missing-action
+ success, based on code and vtable wiring.
+- Answered: stat389 and mask1 first-party meaning, and operator22 computation.
+- Answered: current shared evaluator coverage for every authored catalog gate.
+- Unresolved: historical authoritative server behavior beyond client prediction,
+ account entitlement distribution, and vending range. Existing living/session/
+ readiness/range/atomic sale validation remains necessary server policy.
+- No runtime execution was performed here. The parent must verify actual native
+ interaction and presentation using the restored registry.
+
+The previous source catalog audit remains authoritative for authored placements,
+templates and stock descriptors. Exact purchase-stock membership and rotation
+are separate questions; this evidence does not invent a catalog.
+
+## Follow-up: Can30 and forged Use for the dependency placeholder
+
+The exact original symbol is
+`n3EngineClientAnarchy_t::N3Msg_DefaultActionOnDynel`, original0x1002c350,
+lifted `sub_3602C350` in `client/game/kkr.dll/lifted-0017.c:548`.
+After its character branch, it casts the picked n3Dynel to SimpleItem and then:
+
+1. At0x1002c544..0x1002c54a, calls the item's stat getter for30, getter mode2.
+2. At0x1002c54d tests low-byte bit1; if present, calls pickup and returns.
+3. Otherwise0x1002c56d tests low-byte bit8; zero returns without Use.
+4. With bit8 present,0x1002c577 calls `N3Msg_UseItem`0x1002acd0.
+
+Thus Can stat30 bit8 is the generic authored capability for native default
+Use selection, including vending machines. It is distinct from action3's
+requirements. Missing action3 means no criteria restriction, not a grant of
+an absent Use capability.
+
+The original vending primary vtable0x1017436c uses getter0x10003000 at+4.
+This getter reads the raw stat-array slot and ignores the mode argument for
+this object. See `client/game/kkr.dll/lifted-0000.c:10267`,
+`sub_36003000`. The raw stat-array constructor0x10008bb0 fills1200 slots with
+the missing-stat sentinel1234567890 (0x499602d2), as shown in
+`client/game/kkr.dll/lifted-0003.c:965`; base constructor0x1002fd30 calls it
+(`lifted-0018.c:16648`). An absent Can is therefore not automatically8.
+The missing sentinel itself also has bit8 clear. Vending initializer0x100a8f40
+does not grant Can8; its previously retained full code is in
+`local/shop-research/wire/replacement-rdb-batch.json`, Evidence
+`ev_822a7c99e15f5b03748eee30987a8bfe2fa1f865bc3a846e21d0437a641aee04`.
+The inspected inherited initializers0x1008e840,0x1009c500,0x10097370 and
+0x1008b490 likewise do not set stat30.
+
+`tmp_can_followup.py` verifies the original binary SHA and reads original PE
+vtable words, confirming+4=0x10003000 and+0x4c=0x100a9430. No new REA session
+was opened for this follow-up.
+
+Recommendation: `(itemStat(template,30) & 8) != 0` is justified as a shared
+shop-admission precondition. The server helper's absent-stat0 and the native
+missing sentinel both fail this particular bit test. Reject forged Use for
+placeholder41325 even if its criteria are absent. This is a reconstruction
+policy grounded in native authored capability selection; the vending-specific
+criteria callback0x100a9430 itself does not repeat the bit test, so do not cite
+it as proof of an original authoritative server check. No per-template branch
+is needed. Other345 catalog templates carry explicit Can8 and are unchanged
+by this precondition.
diff --git a/docs/research-notes/signed-stat-research/ledger.md b/docs/research-notes/signed-stat-research/ledger.md
@@ -0,0 +1,129 @@
+# Signed effective-stat and ability-trickle fixture
+
+## Scope and original identity
+
+The original target is `anarchy-vanilla-14.9.1/kkr.dll`, SHA256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+`sha256sum` and REA open identity both match. The prior
+`local/briefcase-weapon-research/native/kkr.snapshot.json` was reused before
+requesting original assembly and missing constant/table bytes. No tracked
+production/test files, game, browser or server processes were changed/started.
+Owned REA sessions were closed after saving the complete evidence and snapshot.
+
+The fixture runs seven maintained lifted routines, extracted verbatim except
+newline normalization into `lifted_signed_stats.c`:
+
+| Original routine | Lifted entry | Exact original assembly Evidence |
+| --- | --- | --- |
+| stat getter1006dfb0 |3606dfb0|ev_74652ec491811d2dbb9348174f59fabc0739128af4fc0567877aee64d3b28a0e|
+| effective10075ca0 |36075ca0|ev_c27bbca88da1a49ac67c28b427c73045affc7be7b57c2cf2814043387c7a4714|
+| base/trickle10075c60 |36075c60|ev_2c98108acd73789969ea7727ff8f5f7bca6eb7e99423b9db494fb68749b32a07|
+| ability trickle10073fa0 |36073fa0|ev_57658a87b490182c351df832518ad2cf4faa5ad2ffc195dd8597861aec6e1b1d|
+| modifier getter10074a30 |36074a30|ev_c3dc476ddb84eedb69e4e81bbbd80a7c5bf28e3aca92e4d8e2e0386d6813ad6f|
+| modifier add10074730 |36074730|ev_b2a9656c468675646d49b31ff6317ecdfd16fc3991e0dc6484322a01038bea1c|
+| modifier remove10074b00 |36074b00|ev_8fbad422c0792a1be57aad44cb4daaa490d05eaa8c77c68e55c15f94fe2215fc|
+
+Original assembly confirms signed FILD/FIMUL, signed modifier additions,
+float32 stores for intermediate ability-weight terms in reverse ability order,
+then the final Strength term and two float constants. Exact bytes:
+
+-10170894:`0ad7233c` = float32 .01, actually0.009999999776482582;
+ `ev_09c60b565e012a81f81e9d3c94ec67d0c24254ef6f3b10e62c82b7bed44dbf50`.
+-10170e78:`0000803e` = float32 .25 exactly;
+ `ev_6a86ec868d0b1fbe5478ce751a52624e52b70a07f10856d44d4198851818b80f`.
+
+The fixture also loads original add/remove notification jump-table bytes,
+relocating only their code pointers to the maintained36000000 image base:
+`ev_6f798fea6a935f231c213da6b2fe06c7805e39478c29a38fceac5f0ed1f4e1c7`,
+`ev_78b9e9ffeb4d99a6673a876734cf4989c376ef85c18ba715bdbdfa1cbe7b9f01`,
+`ev_04bc0d25a7e69899dd5abd384c9a4a113afa5ab9bb03f5bdf21eb7e63f2afd99`,
+`ev_35956e67e7fe3769bf26d5889792fe21f00fcba50a46086efe4a790649abe95e`.
+
+`tmp_validate.py` confirms every original instruction address appears in the
+selected lifted body's comments or jump-table labels:44,21,25,136,78,144,213
+addresses respectively. This is instruction provenance coverage, not a proof
+of every translation semantic or execution of the original Windows DLL.
+
+## Fixture boundaries
+
+`signed_stats.c` supplies a fixed actor/raw stat array, native-shaped modifier
+rows/iterators, resource-weight lookup and integer conversion. It calls actual
+lifted add/remove arithmetic and getter/trickle bodies. Tree allocation,
+zero-row erasure and unrelated UI/cache notifications are boundaries; the
+fixture does not claim to test native map allocation or full effect lifetime.
+Stat21 has no ability weights; weighted stat162 is deliberately supplied with
+synthetic100% Psychic or50/50 Psychic/Intelligence weights to isolate signs.
+These are fixture weights, NOT the actual Psychology resource's50/50 INT/SEN.
+The item database and full actor initialization are outside this test.
+
+The x87 representation in the maintained runtime uses double registers;
+the original uses x87 extended precision. All products/intermediate stores in
+these cases are small exactly representable integers. Their final fractional
+values are separated from truncation boundaries except deliberately sampled
+8/-8, whose distance is about4.47e-8, far above double/x87 roundoff. Thus the
+bounded signed results agree with the original instruction arithmetic. This
+does not establish equivalence for arbitrary enormous/overflowing stats.
+
+## Hardcoded Linux and WASM results
+
+Both builds passed all15 assertions with byte-identical output:
+
+| State | Effective result |
+| --- | --- |
+| Psychic base6, modifier-17 |-11|
+| Add another+12 |1|
+| Remove the-17 contribution |18|
+| Remove the+12 contribution |6|
+| Skill base5,100% effective Psychic-11 |3|
+| Add direct skill-8 |-5|
+| Add direct skill+12 |7|
+| Remove direct skill-8 |15|
+| Remove direct skill+12 |3|
+| Skill base5,50% Psychic-11 and50% Intelligence6 |5|
+| Both weighted abilities-11 |3|
+| Both weighted abilities restored6 |6|
+| Skill base5,100% Psychic8 |6|
+| Skill base5,100% Psychic-8 |4|
+| Restore Psychic8 |6|
+
+The underlying Psychic raw stat remains6 during the first modifier sequence.
+No getter floor turns-11 into0, and direct effective skill-5 is returned signed.
+The8/-8 case is especially useful: float32 .01 produces trickle just below2
+and just above-2; truncation yields+1/-1 rather than+2/-2. Integer division400
+would disagree at this boundary. Mixed negative weights truncate the completed
+trickle toward zero rather than flooring each contribution separately.
+
+## Reproduction and artifacts
+
+From repository root:
+
+```
+sh local/signed-stat-research/run.sh
+python3 local/signed-stat-research/tmp_validate.py
+```
+
+The script extracts the seven maintained bodies, restores exact original
+tables/constants, builds and executes Linux and WASM, then compares outputs.
+WASM executes in bundled Node, without a browser/game process. `run.sh` retains
+the exact compiler flags and Node command. `linux-results.txt`,
+`wasm-results.txt`, `run.log` and empty corresponding error files record the
+successful run. `verification.json` records original identity,15 hardcoded
+results, instruction-address coverage and source/binary hashes.
+`focused-evidence.json` and `citations.json` retain13 exact original records;
+complete session evidence/snapshot remain in `kkr-evidence.json` and
+`kkr.snapshot.json`. The two complete maintained input hashes are recorded by
+the extraction script in run.log. No test process remains running.
+
+## Unresolved downstream policy
+
+These results establish the effective getter/trickle domain, not every consumer.
+The later focused static follow-up in resource-consumers.md distinguishes
+unfloored signed maxima from separately floored current HP/nano setters and
+signed regeneration division. It does not change this fixture's runtime scope.
+They do not decide HP/nano maxima below zero, resource clamping, damage/armor,
+prices, initiative timing, requirement error messages or IP caps. In particular,
+negative Stamina/Psychic feeding maximum-health/maximum-nano calculations needs
+its own native consumer trace and boundary fixtures before choosing a server
+floor or preserving a negative result. Native modifier-removal10074b00 has a
+separate direct MaxHealth1/currentHP27 clamp branch, which this fixture does
+not exercise; that branch cannot establish ability-driven resource policy.
diff --git a/docs/research-notes/special-animation-research/native/README.md b/docs/research-notes/special-animation-research/native/README.md
@@ -0,0 +1,157 @@
+# Secondary special animation, original 14.9.1
+
+Question: should accepted Fast Attack147 / Fling Shot150 forward
+CharSecSpecAttackIIR (0x51492120), in addition to SpecialAttackInfo?
+
+## Result and limits
+
+The original direct sender does NOT predict the queued special locally.
+The returned CharSecSpecAttack activation is the recovered producer of the
+dedicated special animation queue. It applies equally to a local or observed
+SimpleChar. Sending it only to observers would omit this producer on the owner.
+SpecialAttackInfo separately applies supplied HP damage, named feedback, death
+and ammo; it does not enqueue the special animation.
+
+Accepted echo to owner and visible observers is supported for an established
+matching fight target, before applying the skill lock. This is a client contract,
+not proof of original server eligibility or a universal idle/casting policy.
+Do not invent AttackIIR, target writes, timing resets or forced normal combat
+from this evidence. Idle forwarding has a concrete pending-queue risk below.
+
+## Targets and evidence identity
+
+* KKR: anarchy-vanilla-14.9.1/kkr.dll,
+ SHA256 a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
+* LLR: anarchy-vanilla-14.9.1/llr.dll,
+ SHA256 ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132.
+* Provider Ghidra12.1.2; KKR reused the matching fast-attack snapshot.
+* Complete exports kkr-evidence.json (531 records) and llr-evidence.json
+ (13 records), plus snapshots, are in this directory. Sessions closed;
+ binary_session confirmed open=false after both exports.
+
+## Direct sender: no local Activate
+
+KKR1002c090 validates local target, lock, equipped capability/range and LOS,
+constructs CharSecSpecAttack via1007d8e0, then calls SendIIRToObservers.
+The constructor initializes subject, target and skill, installs its vtable and
+clears pass-on. It contains no local Activate or queue call.
+
+The full original common boundary is:
+
+1. LLR1001a610 n3Dynel_t::SendIIRToObservers checks IsInTree.
+2. LLR1001a300 AddToNetWorkInfoQueue calls SendIIRToServer, deletes the IIR,
+ then clears the caller's pointer.
+3. LLR1001dc20 SendIIRToServer serializes Write and sends an ACE data block
+ through engine virtual+0x34, envelope0x2713.
+4. LLR10024450 Write serializes key, subject, pass-on, then virtual+0x1c
+ subclass writer. Its other calls are stream/statistics accounting.
+
+None invokes Activate. The social command's local activation described in
+docs/gestures.md occurs through a different engine/n3Command submission path;
+it cannot be inferred for this direct IIR sender.
+
+Sources: retained sender ev_d1476549067f47d076bbde6794f81f3340b20e34e60aeb471160525c970119b9;
+constructor ev_2e24948447c5420dcffbe90998bb3e48b2d2a87520e6ef49adeb2d14256772b8;
+LLR boundary ev_d3f6f09b86c9df6d87dcd335e5412a97f73ea1b5d99ad75b8167acbe2b8d04b3,
+ev_1da3364efe9efc3b854b755699ac4f3e3597cfde1f61fab04af59c7532f9c989,
+ev_96d31307eec89855de9a4119a0855287e48b2d105f2e2da8fa8763c98129348c,
+ev_48966a70a3b02c71934e9353f1af94a94096181e72e68d35f89e7b43291752d6.
+Readable llr-0x*.txt files retain those exact functions.
+
+## Returned activation, identities and order
+
+1007da30 resolves packet SUBJECT as SimpleChar and obtains its holder+0x16c.
+It calls10078a40(target,skill), then clears pass-on. There is no local-player
+or NPC-only guard in this activation. Absent/non-SimpleChar subjects do nothing.
+
+10078a40 ignores its target argument. If actor+0x174 controller queue count+0x44
+is zero AND the skill is not locked, it inserts the skill into the deque.
+Otherwise it refreshes the action UI. It never assigns holder+0x58/+0x5c,
+never sets holder state+0x50 to2, and never calls normal attack startup.
+It obtains actor item-use helper via10071dd0 and calls1004d970, which ends
+sneaking (flag0x80), NOT a cast abort. No supplied hit amount enters this path.
+
+Consequently the special activation must precede owner skill-lock delivery:
+an already-applied lock suppresses insertion. Once queued,10079700 does not
+repeat the skill-lock test. No original server capture establishes a stricter
+total ordering between ack and SpecialAttackInfo; ack -> result -> lock is a
+reasonable implementation ordering, not recovered original server sequence.
+
+Sources: ev_b69b01bbb2878e31920f15afdfc8c0b670aac6502c8091db2406d0ca72a3dd1c;
+ev_82375808553e22a4e0d7c5b3a6e5be90fb0cd959083d3bc2fcc4b3391f3b6e4a;
+ev_ff4e4471f157d288d5412e8daa25f182686fe411216394322c0a040075043c94;
+ev_c9062178c49d0d49c64a23a080a103588cc1b52ea5f0f6721344b7b664fd67dd.
+
+## Consumer and animation/effects
+
+Fight visual10086390 calls holder1007b2d0. The latter uses the existing native
+weapon/timer/result scheduling and checks owner allowed-attack state2.
+For a non-NPC character (both local owner and observed players), eligible slot
+with pending special selects1007adc0(slot,1), then holder virtual+0x64(slot).
+NPCs take a separate weapon-selection branch, also calling+0x64 for hands.
+Neither classification is a local-player visibility restriction.
+
+1007adc0 ->1007b260 -> controller100504d0 looks at the front queued skill:
+147 uses animation token0x19, 150 token0x1c (and corresponding named text).
+The token is resolved through1008a770 and native weapon animation mappings;
+1007adc0 chooses height variants and starts mesh playback through controller
+virtual+0x18. This happens BEFORE the +0x64 consumer removes that special.
+
+Holder+0x64=10079700 validates the supplied slot using holder+0xc/10078990,
+against holder CURRENT FIGHT TARGET+0x58/+0x5c, then pops the queue10079610.
+It prefers a skill-keyed implicit item; otherwise the chosen WeaponBase.
+It calls timing functions100ab3e0/100ab060 but ignores their returned timing
+values. It assigns the item's owner identity to the SOURCE actor identity,
+then invokes stat object virtual+0x30(event0, actor-stat-interface, false,
+nullidentity). Weapon object's observed vtable101745cc maps this to10002340,
+which fetches the event list100020c0(0), then dispatches via10002370.
+This is template-event execution; no random server hit/damage computation.
+Event dispatch may have authored effects; do not call it merely cosmetic.
+
+SpecialAttackInfo100b2cb0 independently subtracts supplied damage exactly once
+from its PAYLOAD TARGET, emits feedback/death and updates supplied ammo. It does
+not call10078a40/10079700 or select the dedicated animation. Thus queue target
+and damage target can differ if an ack is forwarded with stale holder state.
+
+Facing is from existing fight visual10086390: periodically compares actor
+global rotation with the existing holder-target position and may enter turning
+state7. The special packet supplies no separate facing or authoritative pose.
+
+Sources: ev_2e24948447c5420dcffbe90998bb3e48b2d2a87520e6ef49adeb2d14256772b8
+(1007b2d0,10086390); ev_a2456ce5c65cf0d0135f86c6c29b3e0e724118d5498cdeeab44337ba4ad6d273
+(1007adc0,02340); ev_2992f7f1747e8a1e3777eaab7c2b93f6de78f971bb53ac9d5907cdac37c17a06
+(1007b260,020c0,02370); ev_31c61bc07a2f3b2ba669dd3cf1a97eba0fc61e55483b778efdf2e1bff7253810
+(100504d0); consumer ev_f9c32fd1de8cb6d03f2ca0f8de7d7fbab96fe69ec85a9a9d27b134f53dac8a76;
+result ev_3ed136aa0222fc5ee5a9ba5bd84175a05c5ca97fbf26d944dcdcdd9f7e4cb841.
+
+## Pending queue cleanup and unresolved idle/casting cases
+
+Stop10079250 clears the special deque unconditionally, before its condition
+checking holder state!=1. It subsequently resets holder target/state/animation
+only when that condition permits. Source retained native
+ev_839516fbf9737749e969200bc7698259fa6decf43f39b3025dc440c60acd95f3,
+retained/state-0x10079250.txt, original state-evidence bundle.
+
+Attack start10078fc0 calls holder stop ONLY if previous holder state!=1.
+When starting from idle1 it does not do that stop, then sets the new target
+and resets normal weapon timers. Generated exact original callsites:
+client/game/kkr.dll/lifted-0035.c original10078fea..10078ff6 (rebased36078fea),
+then10079098..100790b4 target writes. Do not treat a first normal Attack as
+proven to clear a special queued while idle. A stale entry may subsequently
+animate/execute against the NEW fight target. No idle automatic expiry or
+selected-target-change queue clearing is established in the bounded evidence.
+
+The full idle/casting visual transition matrix is unresolved. Ack itself
+does not install a cast timer or directly reset an existing normal attack
+timer, but animation pumping can share scheduling and consume existing normal
+result queues. Therefore unchanged server clocks alone do not prove unchanged
+client presentation. Test already-fighting, idle, selecting another target,
+pending ordinary results, attack/recharge, casting, stopping and target death.
+
+Read-only runtime fields: actor+0x174 -> controller+0x44 is queue count;
+controller+0x24 points to front skill when nonempty. actor+0x16c -> holder
+state+0x50 and fight-target+0x58/+0x5c. Actor+0x168 is the existing local
+interaction helper returned by10072000 (generated sub_36072000); selected
+identity is helper+0x70/+0x74. Do not call the lazy getter for sampling.
+Getter native evidence ev_b8fc713746d0fac3e289866a625f3b134af6194c109f7ab7f796b5e6ffacd266,
+local/reports/combat-client-pass2-decompiles-15.json and lifted-0033.c:22146.
diff --git a/docs/research-notes/starter-weapon-research/delete-auxiliary-findings.md b/docs/research-notes/starter-weapon-research/delete-auxiliary-findings.md
@@ -0,0 +1,55 @@
+# Native DeleteItem auxiliary pair
+
+Bounded read-only follow-up. No REA target, server, browser or client was opened;
+no implementation source was edited.
+
+## Observed producer contract
+
+Original 14.9.1 kkr.dll SHA-256:
+a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
+
+Existing REA record
+`ev_0401d73eb4d0d8d5dc7c9ecb6a77ad33c8ada08262aa778b56a6a905c83accd7`
+in `local/bank-research/native/kkr-pseudocode.json` is exact exported
+`10027670`:
+`n3EngineClientAnarchy_t::N3Msg_DeleteItem(Identity_t const &source,
+Identity_t const &auxiliary) const`.
+
+It gets the local character, resolves the source item if available, and rejects
+ItemType stat 76 == 3 when the source page is below 104 (worn implant removal).
+It then constructs CharacterAction with source, action 112 and the supplied
+auxiliary pair unchanged. It never requires the auxiliary words to be nonzero,
+never compares them to template IDs, and has no weapon-only branch.
+
+Original instruction sources (generated addresses are rebased by +0x26000000):
+- `client/game/kkr.dll/lifted-0015.c:29246`, sub_36027670:
+ at original 1002770d..1002771a, forwards argument 2 to constructor1007d4b0.
+- `client/game/kkr.dll/lifted-0036.c:8871`, sub_3607D4B0:
+ 1007d570..1007d597 copies action to +20, source to +24/+28 and auxiliary
+ pair to +2c/+30, without interpretation or normalization.
+- Same file, sub_3607D600 (around line9090):
+ 1007d606..1007d625 serializes action then the two identities. No zero check.
+
+The parent's actual retained-weapon capture supplies the runtime instance of
+this generic contract: `[112,104,51,0,0]`. Previous template-backed deletion
+captures supply template endpoints in the final pair. The precise UI helper
+that chooses which pair to pass was not traced in this bounded pass.
+
+## Supported server policy
+
+Treat auxiliary pair **0,0** as omitted endpoint information. Otherwise require
+the complete pair to match the selected authoritative item's template endpoints.
+Reject one-zero/one-nonzero mismatches by the same ordinary pair comparison.
+
+Continue to derive the item from authenticated owner, validated source page,
+slot and eligibility. A zero pair does not identify a different item and does
+not override those checks. This is the simplest policy compatible with both
+observed native request forms, without special-casing weapons or individual
+template IDs.
+
+Confidence is high for the sender's generic permissiveness and verbatim
+serialization. The exact historical server's validation was not recovered.
+This does not claim every live item class always emits 0,0, nor that every
+template proxy must supply nonzero endpoints. Deletion acknowledgement and
+subsequent retained-dynel Quit are separate lifecycle operations.
+
diff --git a/docs/research-notes/starter-weapon-research/findings.md b/docs/research-notes/starter-weapon-research/findings.md
@@ -0,0 +1,124 @@
+# Starter weapon ammunition contract (original 14.9.1)
+
+## Scope and artifacts
+
+Static inspection of original `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Ghidra 12.1.2 / REA bridge 12.1.4. No original server execution or packet
+capture. Full 38-record REA bundle: `native-evidence.json`; reusable static
+snapshot: `kkr-analysis.rea.json`. Native target was closed after export.
+
+## Findings
+
+### 1. Native ammunition state and defaults: partially answered
+
+- **Observed, high confidence:** `WeaponItem` initializer `100abb20` assigns
+ AmmoType 420 to -1. It does not assign Energy 26 or Clip 212.
+ Evidence `ev_3e76de5167c9c021a2be9f0e8d9d79bdf0259dcdf823f6789f9b24bd70478bc2`.
+- **Observed, high confidence:** flags-0 setter `1009f390`, when its supplied
+ mask contains HasEnergy 0x400000, initializes Energy 26 and Clip 212 to -1
+ **only if each stat is absent**. This is independent of Can 30.
+ Evidence `ev_ab61db420e3998269c8472f4e53662cf5883c1fafb1dcd32311432cefeb20e22`.
+ The full template-loading path to this hook was not traced here; do not
+ describe a universal unconditional Energy/Clip constructor default.
+- **Observed:** underlying stat storage starts at invalid sentinel 1234567890
+ (0x499602d2), not zero: `10008bb0`;
+ `10003000` returns stored values directly; `1002fe90` tests presence
+ against that sentinel. Evidence respectively
+ `ev_a7efefb53765be1020070eee195ada4689889d7e6664480e0c4f8a17e0121ed8`,
+ `ev_f0492c7608fe0b3baff957ec6f6767a0b261f9fc26bca3ad6c6e335cf4e9fbd1`,
+ `ev_61884411052d9cbaeeca0e4c864bbc459d585033f4d33ac2834d3d0a35d31d6d`.
+- **Observed:** ordinary `SimpleItem` constructors `10092540/10092610`
+ initialize stat 209, not 420. The -1 AmmoType default above is specific
+ to `WeaponItem`; this pass does not establish that absent ammo-source
+ 420 becomes -1. Evidence
+ `ev_a6e467bf9818cd27b75de78e659611a65fc0ead54898fa5392432c87311e647a`,
+ `ev_d77b0784bd9b232babab163fcb67027e276ace4331fd6d8bb2f6e69b5f18742f`.
+- **Observed:** weapon empty helper `100acd20` returns true exactly when
+ signed Energy 26 < 1 and Energy != -1. Energy -1 is deliberately usable;
+ 0 and negatives below -1 are empty. Evidence
+ `ev_b4c8077cb5133e7e128c3b80afa113b0654f12b8cb206fd11515b3b41711f12b`.
+- **Observed:** `100ad980` sees Energy -1 and sets **Flags 0** bit 0x400.
+ This is not **Can 30** bit 0x400. Conflating them would be incorrect.
+ Evidence `ev_8f193b92b3425c1c55c0db5aa836764cb15547c9e8d92028fa35b427e8e140d3`;
+ flags getter `10003090`:
+ `ev_b2de96812fb3ff477b60de2158b1a99a0109a6a92530b988507d07b394abf267`.
+
+**Derived implementation advice:** model unlimited ammunition with signed
+Energy -1. A capacity-based server classification such as finite Clip > 0,
+excluding UINT_MAX, is coherent, but was **not** recovered as one native
+predicate here. Neither AmmoType != 10 nor CanNoAmmo was found as an
+additional condition in the inspected empty/reload/special predicates.
+Absent catalog values must remain distinguishable from explicit zero.
+
+**Still unknown:** the original server's initialization of finite loaded
+rounds; full generic classification of all malformed/omitted combinations;
+an authoritative gameplay role for Can 30 bit 10. This was a bounded search,
+not a proof that the bit is unused everywhere.
+
+### 2. Solar weapons and Fling Shot: client contract answered
+
+Catalog source: `server/gamedata/items/items_037.yaml:7757` onward.
+
+| Template | Name | Can 30 | AmmoType 420 | Clip 212 | Energy 26 |
+| --- | --- | --- | --- | --- | --- |
+| 121567 | Solar-Powered Pistol | 1 | 10 | -1 | omitted |
+| 121568 | Solar-Powered Rifle | 16385 | 10 | -1 | omitted |
+| 121569 | Solar-Powered Assault Rifle | 6145 | 10 | -1 | omitted |
+| 121570 | Solar Trader Shotgun | 4097 | 10 | -1 | -1 |
+| 121571 | Solar Powered Submachinegun | 2049 | 10 | -1 | omitted |
+
+All five carry Flags 0 HasEnergy 0x400000. **None has Can bit 10.**
+Thus requiring that Can bit would incorrectly reject canonical solar guns.
+Catalog descriptions of pistol/rifle/SMG explicitly say no ammunition.
+
+- **Observed, high confidence:** holder special admission `10078990`
+ delegates to weapon-frame predicate and range check. Frame predicate
+ `100aaf10` maps Fling stat 150 to Can 30 bit 12. It does not inspect
+ Energy, Clip or AmmoType. Solar shotgun 4097 = 0x1001 supports Fling.
+ Evidence `ev_0da9d20eee6fc31f957f706b27e2c7937ab3eff98557ca01b3ed7113e6bd4c89`,
+ `ev_73cdfe2d1ae02b912406d6a4c65ef6f813578386a281aeb1d2fb0c45238463d0`.
+- **Observed:** original helper `1007c0f0(slot, ammunition)` assigns
+ supplied ammunition directly to weapon Energy 26; -1 is preserved.
+ Evidence `ev_c760df0d0b21647f69dce7428100380a3a4d57ee0975e441ef56ff4fc4df4857`.
+- **Independent existing controlled execution:** unchanged lifted
+ `100b2cb0` result activation preserves ammunition 3, 0 and -1.
+ See `local/fling-research/result-contract.md`, its retained evidence
+ and Linux/WASM logs; no tests were rerun in this static pass.
+- The **SecondarySpecialAttack request has no ammunition field**.
+ The ammunition sentinel belongs to **SpecialAttackInfo result**.
+ **Derived:** return -1 for an unlimited solar weapon; this is accepted by
+ the client contract. No original server capture proves its exact packet.
+- Existing corroboration: original solar shotgun item tip explicitly
+ teaches Fling; `local/fling-shot-research/period-sources.md` records this
+ and period patch evidence separating later special-ammunition changes.
+
+### 3. Reload source matching: answered
+
+**Observed, high confidence:** `1007bba0` requires target WeaponItem,
+no current reload, source AmmoType 420 == target AmmoType 420,
+source ItemType 76 == 0, and loaded Energy 26 != Clip 212.
+It returns 2 on admission. It does **not** check Class 88 == 9,
+CanNoAmmo, positive Clip, or AmmoType != 10.
+Evidence `ev_0d2782a858cfd4154cbc4afa1c326e412b9d31f32457fde3bae5dc6c1dc99ad5`.
+
+**Observed:** automatic inventory ammunition search `100ae410` likewise
+checks source type 51005, matching 420, and source ItemType 76 == 0.
+It searches inventory starting at slot 48. Evidence
+`ev_7573076e03db2d7e870437118e512531dfb1f396431da3520a699e8ee8af6cc1`.
+
+Catalog Bullets 21605 has ItemType 0, Class 9 and AmmoType 2:
+`server/gamedata/items/items_000.yaml:46`. Class 9 is a data observation,
+not the native admission test. Loaded/full behavior and result routing
+already documented in `docs/ranged-weapons.md` and
+`local/ranged-research/reload-findings.md`.
+
+## Practical boundary
+
+The direct native evidence supports unlimited solar firing and solar shotgun
+Fling, using Energy -1, and supports reload type matching by 76/420.
+The server may validate positive finite capacities and sane source ammo
+definitions, but those extra safeguards should be described as reconstruction
+policy. Do not invent omitted source AmmoType -1, make Class 9 mandatory,
+or require CanNoAmmo based on this evidence.
+
diff --git a/docs/research-notes/starter-weapon-research/inventory-reuse/findings.md b/docs/research-notes/starter-weapon-research/inventory-reuse/findings.md
@@ -0,0 +1,120 @@
+# Returned weapon inventory rows: original 14.9.1 client
+
+## Scope
+
+Read-only original kkr.dll SHA-256
+a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
+Ghidra 12.1.2 / bridge 12.1.4. Parent supplied the actual WASM observation:
+Meta Shield 121566 inventory row changes flag 1 to 2 on equip, survives
+unwear/retirement/move with flag 2, and no subsequent equip request is emitted.
+No runtime/client/server was started here and no implementation source edited.
+Full evidence and reusable snapshot are in this directory. REA target closed.
+
+## Root cause: answered, high confidence
+
+1. `10063340` attaches a live item to its parent. For an occupied inventory
+ position it writes the live identity and calls `1002d310(slot,2)`.
+ For page 1, slot 6 or 8, it also binds the weapon holder and invokes the
+ WeaponItem equip callback. Thus creation itself changes the row kind.
+ Evidence `ev_8565b1dc163d3baca6f7edaba73ba92601f92e2a4b9a5d6dbabcd06474e60fdc`.
+ Flag setter: `ev_dbcee3c897a035ff0b167b5a1fb42c13cb2df118079aeadcbf4fc859da25c07f`.
+2. Row kind helpers `1002d710/1002d7b0` test flag bits 1 and 2 respectively.
+ Template rows are accepted directly by possession helper `100619d0`.
+ Live rows require their dynel, except the explicit Chest fallback.
+ `1002d980` resolves the row identity through GetDynel and SimpleItem cast.
+ Evidence:
+ `ev_16480a45215d0af2a983e7add032f833c8fbeb56ff1a96a22138a5c52a4838df`,
+ `ev_40cdad40c32876ccadfd43e11808ea806890c74a128840f7ca49f91a171fd15d`,
+ `ev_ab99d17dff3a02abec7f6f085558c9a6663f26bbf9c34a6b0930fa7bd47c21f7`,
+ `ev_f2d86a85a27c45e62b015c3b7f87f274eb48ed47c00c5ed7cf5149d2e6f543b4`.
+3. UseItem `1002acd0` tests possession before deriving item type and making
+ an equip request. Therefore a retired dynel behind flag 2 can prevent
+ any request, independently of server validation.
+ Evidence `ev_26f560d019ca61b07db283078cb524be17bb14d6e3e53b7ef8c9a5f70db45788`.
+4. ContainerMove helper `1005dd60` swaps whole row pointers via `1002d380`;
+ moving to ordinary inventory does not restore flag 1.
+ Evidence `ev_910a33cb4702112aa3fed9b72a812be94a21132d71135ab06f3a3c72639347c1`,
+ `ev_174bb14886b746facb56f981da680c4693fe4b52a9f4d84c4ed582fd4cf078cb`.
+
+This is the same representation/lifetime problem documented for template
+vehicles in docs/vehicles.md, but live WeaponItem attachment forces flag 2.
+
+## InventoryUpdate cannot patch an ordinary row: answered
+
+InventoryUpdate 0x4e536976 reader `100b0c20` reads encoded rows, target identity,
+index, open boolean. Activation `100b0cd0` resolves the target:
+Chest targets replace Chest contents; SimpleChar targets call
+`10062ec0(list,index)`. That function handles **only index 110**, the overflow
+container. It does nothing for ordinary inventory pages/slots.
+Using a normal-player InventoryUpdate to repair one row would not work.
+
+Evidence:
+- Reader `ev_04ef5c009ef502812bb00afb638a68d82938ccfbab599f82a7277493ed9b2691`.
+- Activation `ev_7288e510f6601f2d9e7b1242ad77de806579fb838b42ad580db89f5e5adeb774`.
+- Overflow-only handler `ev_dcd417962fdd4c274e92ff498cd71dff20220606ca8f7d5d38bba6f1c9764653`.
+
+No one-row packet preserving persistent identity and resetting flag 1 was
+established in this bounded pass. Existing Delete + AddTemplate reconstructs
+template rows without transmitting the persistent instance identity; full
+FullCharacter refresh has worn-initialization effects. Neither is required
+for the lifetime correction below.
+
+## Retain owner dynel until accepted re-equip: supported reconstruction
+
+- Action 97 dispatch `1007a1d0` invokes unwear callbacks and clears the holder.
+ Weapon unwear `100ad4e0` sets stat 220 to 111. Its helper `10092780`
+ clears worn byte +1a8 after removing held mesh. These functions do not
+ destroy the dynel or clear the parent relationship.
+- Possession accepts an item whose parent is the character (or its child).
+ The retained unwear object can therefore service the live inventory row.
+ Direct ownership helper `1009f700` also tests parent/grandparent.
+- FullUpdate activation `100b38b0` immediately ignores an existing identity.
+ So the old owner dynel must be retired before fresh FullUpdate on re-equip.
+
+Evidence:
+`ev_6eb78611bf2ab79a8a2be49e39d3f34fa64c5d381bd62fa5e1db91f8b893d217`,
+`ev_d5ddccab2da0a0c924f3cc81f723236a285ec6f3c0bdb8f2a91eced9b6f0b80d`,
+`ev_1b59c280459a0da247727b8694a3eac1b2442371d09ce9b0cadbcb83b7046210`,
+`ev_47108529ce3d378a168ded85439255a09cf31abe1120401b8664870e905f6858`,
+`ev_b26d8ee7657a823e04a45f49baf537b71eb29483eedfd245121eda5d40f04694`.
+
+Recommended sequence, agreed with parent:
+- Unwear owner: action 97 then ordinary move; retain owner dynel.
+- Unwear observers: action 97 then Quit.
+- Accepted re-equip owner: Quit old identity **before** move acknowledgement,
+ then move and fresh FullUpdate. This keeps Quit's row location in ordinary
+ inventory, matching prior tested retirement while restoring valid UI input
+ until the new equip request has been accepted.
+- Observers receive the fresh normal equipped FullUpdate.
+
+This is reconstruction policy from native contracts, not a captured historical
+server sequence. Actual parent two-client testing must verify AC/effects,
+holder, appearance, actions, row identity/count and repeated reuse.
+
+## Cleanup beyond equipment: partially answered
+
+`1002d620` removes a row by destroying the 32-byte row and clearing the slot;
+it does not resolve or destroy its live dynel. Bulk clear `1002d660` does the
+same. A retained weapon therefore needs explicit owner Quit when deleted or
+ownership is removed, after the acknowledgement has consumed its source row.
+Evidence `ev_86ca1a740e2b45c63527659f8b1a3f1c89ab16fc3b681a4e33ed1cf630e001bd`,
+`ev_d88710a022c0b87c52fac73a1f8e12279dceae3584232f228959d901d96e51c3`.
+
+Native bag-to-player transfer `1005fb40` resolves live rows through their dynel,
+requires IsInTree, moves the row and reparents the object. Do not retire a
+retained weapon before the transfer path consumes it. For bank or ownership
+removal, retire afterward and ensure any surviving destination representation
+is template-backed or has its own valid dynel. Existing BankIIR/Chest snapshots
+use flag 3 for template weapons. Full retained-weapon bank/bag transfer and
+deletion sequences remain runtime test boundaries.
+Evidence `ev_46dd6a681c2e5ad41e32b7501270057b3867816afe10f5367e2c3f29c750a59e`.
+
+Existing exact Quit/DieDeep analysis is retained in
+docs/research-notes/fast-attack-research/native/re-equip.md: no direct inventory mutation in
+the Quit receiver or DieDeep body, but deeper native tree/parent callbacks are
+not exhaustively proved. This pass inspected WeaponItem and SimpleItem
+destruction (100ac240 ->10092640 ->1009cc20); they release item-owned resources,
+then invoke base dynel cleanup. No direct owner-row deletion appeared there.
+The remaining base callbacks should not be claimed safe in every container
+state solely from static evidence.
+
diff --git a/docs/research-notes/starter-weapon-research/oe-zero-findings.md b/docs/research-notes/starter-weapon-research/oe-zero-findings.md
@@ -0,0 +1,60 @@
+# OE zero requirement follow-up
+
+Bounded follow-up; no REA target was opened and no implementation edited.
+Original target identity and exact evidence are already retained in
+`local/reports/oe-native-1491-evidence.json` and the focused record at
+`local/briefcase-weapon-research/native/0x10090f10-12efe163.txt`.
+
+## Observed original instructions
+
+Record `ev_12efe16371f012aad98ae3486345dafb6f3b6b4c3ffb2b92ead695410d0c6e6b`,
+original kkr.dll 10090f10, SHA-256
+a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0:
+
+- 10090f4f checks criterion operator == 2.
+- 10090f53/59 copy signed requirement value to the denominator local.
+- 10090f76 FILDs signed effective actor skill.
+- 10090f79 **unconditionally FIDIVs** by the signed criterion value.
+- 10090f7c compares ratio with 1.0; 10090f82..87 tests x87 C0,
+ taking the calculation branch for less-than **and unordered**.
+- Calculation is (10 - 10 * ratio) * .5; 10090f9b calls imported _ftol.
+- 10090fa0..a4 takes a signed maximum with the accumulated tier,
+ initially zero. Final clamp is 0..4.
+
+There is **no guard for zero or negative denominators** and no skill clamp.
+
+## Controlled arithmetic probe and derived zero behavior
+
+`tmp_oe_zero.c` executes these x87 arithmetic/comparison instructions directly,
+with exceptions masked, then uses truncating FISTP64 to model _ftol's signed
+64-bit conversion. It is not an execution of shipped MSVCRT or the complete
+original function. Build:
+`cc -Wall -Wextra -O0 local/starter-weapon-research/tmp_oe_zero.c -o /tmp/ao-oe-zero-probe`.
+Results are retained in `oe-zero-probe.log`.
+
+The current maintained client also represents _ftol as a 64-bit result split
+into EDX:EAX: `client/runtime/guest_crt.c:459` and
+`client/runtime/x87crt.c:31`. That corroborates the intended conversion width;
+its floating-to-integer helper is not the shipped historical CRT.
+
+| Actual | Requirement | Result |
+| --- | --- | --- |
+| -1 | 0 | Negative infinity; conversion indefinite int64; low32 0; tier 0 |
+| 0 | 0 | NaN; unordered comparison enters conversion; low32 0; tier 0 |
+| 1 | 0 | Positive infinity; comparison skips calculation; tier 0 |
+| -1 | -5 | Ratio .2; candidate 4; tier 4 |
+| 0 | -5 | Ratio 0; candidate 5; tier 4 |
+| 1 | -5 | Ratio -.2; candidate 6; tier 4 |
+| 4 | 5 | Ratio .8; candidate 1; tier 1 |
+
+**Recommendation:** skip **requirement value == 0** before server integer
+division. Under the ordinary masked x87 / _ftol conversion model, zero-valued
+criteria cannot increase the OE tier. Document this as derived parity for the
+zero edge, not an observed native branch. Do not blanket-skip <=0:
+negative denominators participate in the original signed ratio calculation.
+
+**Limits:** original shipped MSVCRT _ftol was not executed. Exception-unmasked
+execution could trap; the probe explicitly models normal masked execution.
+No original server evidence or dynamic whole-client zero-skill scenario was
+obtained. The safe server zero guard prevents a Go division panic regardless
+of those remaining historical/runtime details.
diff --git a/docs/research-notes/team-leadership-smoke/menu-audit.md b/docs/research-notes/team-leadership-smoke/menu-audit.md
@@ -0,0 +1,174 @@
+# Native team popup input audit
+
+Scope: bounded generated-source and packaged-resource audit of original AO
+14.9.1 DDR/CCR code. No REA session opened, no production edits, no observed
+runtime outcome claimed. Original DDR SHA-256 and address translation are in
+`local/team-research/wire-audit.md`; DDR generated addresses add 0x1b000000,
+CCR adds 0x17000000 to original VAs (original image base0x10000000).
+
+## Trigger and mode gates
+
+Original `anarchy-vanilla-14.9.1/ccr.dll`, embedded default binding at original
+VA0x1002b443 (guest0x2702b443):
+
+```
+COMMAND_TEAM_POPUPMENU [ & AnyPlayMode & TeamViewMode ! DraggingMode ! MouseLookMode ] = RightPress
+```
+
+This triggers on right press; waiting longer does not relax those mode gates.
+Packaged `cd_image/text/help/The Team Window.txt` says to right-click and hold
+a member name, with icons for make leader, expel, information, and leave.
+Static binding and help are consistent: press opens, holding permits selection.
+Exact timing of icon selection/release has not been traced in this audit.
+
+Original CCR mode-name table file offsets0x470c0..0x472b0, pairs
+`u32 stringVA,u32 modeID`, gives AnyPlay8, MouseLook9, IconMenu19,
+TeamView25 and Dragging46. CCR CheckMode export0x10003ed0
+(`client/game/ccr.dll/lifted-0001.c`) returns true when either byte
+`input+0x1c+modeID` or `input+0x5b+modeID` is nonzero. The former array is
+dynamic, the latter set/cleared by SetStaticInputMode/ClrStaticInputMode
+exports0x10003e90/0x10003ea0.
+
+DDR TeamView constructor0x100494a0 builds a MouseDetectorButton at
+view+0x34. It passes mode25 at0x10049624 and invokes imported constructor
+at0x10049645. This is the native hover/mouse mode detector for the team view.
+Its exact CheckHotSpot mode update path has not been traced to completion.
+
+## Read-only runtime addresses
+
+All values below are **guest** addresses/offsets. Read pointers from guest
+memory with the existing page-table lookup; do not call constructors or mutate
+state merely to make the menu appear.
+
+- TeamView pointer: u32 at0x2b0eeaf8.
+- Root GUI/render-window pointer: u32 at0x2b0ee9dc.
+- InputConfig pointer: u32 at0x27048b44. CCR GetInstance export0x10002b60
+ loads that global at0x10002b79 (`ccr.dll/lifted-0000.c`).
+- TeamView+4/+8: view x/y; +0x38: in-team flag; +0x39: leader flag;
+ +0x34: mode detector pointer; +0x68: member list pointer; list+8: count.
+- Root GUI+0x2c/+0x30: x/y origin used by popup rectangle.
+- InputConfig+0x108/+0x10c: current mouse x/y, read by popup.
+- Mode state pairs: input+0x1c+ID and input+0x5b+ID, for IDs8,9,19,25,46.
+
+## Popup gate and rectangle
+
+DDR exported PopupMenu0x1004b210 is registered as AFCM event351 (0x15f) at
+0x1004ae87..0x1004ae95. It calls TeamView0x1004a150
+(`client/game/ddr.dll/lifted-0019.c`). That function requires in-team+0x38,
+then reads current mouse coordinates. Define rootX/rootY from root GUI+0x2c/
++0x30 and viewX/viewY from TeamView+4/+8. All comparisons are strict:
+
+```
+rootX + viewX + 3 < mouseX < rootX + viewX + 128
+rootY + viewY + 70 < mouseY < rootY + viewY + 70 + 19*memberCount
+```
+
+Sources:0x1004a16a..0x1004a1bd. It computes row index as
+`(mouseY - viewY - 50)/19 - 1` at0x1004a1bf..0x1004a1d5 and calls
+row lookup0x1004a8f0. A null row prevents a menu. Note the index calculation
+subtracts viewY but not rootY, even though bounds use both; reproduce the
+original inputs before inferring a missing server packet.
+
+On a row, leader+0x39 chooses AFCM channel8/event34; nonleader chooses
+channel8/event35, both with that row identity. These are native icon-menu
+requests at0x1004a1e5..0x1004a1fd. Thus a nonleader still has a menu; the
+leader flag changes its contents. No additional server state gate appears in
+this function.
+
+## Selecting a member versus opening its menu
+
+Each member-name InvisibleButton installs callback0x1004a540 at
+0x1004ab43..0x1004ab53. That callback sends AFCM channel26/event269 with
+identity50000:memberID; it selects a member and does not open the popup.
+The popup trigger is the separate RightPress binding above.
+
+Exported MakeLeader0x1004b220 is registered event352 (0x160), KickMember
+0x1004b230 event353 (0x161), at0x1004ae97..0x1004aeb5. MakeLeader calls
+0x1004a210, which receives identity from AFCM and invokes imported
+N3Msg_TransferTeamLeadership at0x1004a23c. Kick calls0x1004a250 and imported
+N3Msg_KickTeamMember at0x1004a27c. Native outbound action25/action22 shapes
+are covered by `local/team-research/wire-audit.md`.
+
+## Next diagnostic boundary
+
+If no menu appears, inspect mode25 and excluded modes9/46 immediately before
+the press, then inspect the native mouse coordinates, rectangle and row index.
+If those gates pass, trace AFCM351 dispatch and icon-menu channel8/event34/35.
+This audit does not establish which gate failed in the parent's WASM run.
+
+## Follow-up: gates pass, inspect dispatch
+
+Parent runtime probe confirmed viewXY[0,20], rootXY[1088,0], inTeam1,
+leader1, count3, mouse[1150,138], AnyPlay8 active, TeamView25 active,
+MouseLook9/Dragging46 inactive. This passes the audited rectangle and computes
+row index2. No popup was visible. This evidence narrows the next check to the
+binding, dispatch, or icon-menu state; it does not identify a missing adapter.
+
+CCR InputConfig::CheckInput export0x100046e0 (`lifted-0001.c`) invokes
+0x10003930 to match input keys and mode requirements. Match code is split
+across `lifted-0000.c` and `lifted-0001.c`. It iterates the hotkey list at
+input+0x10; each list node+8 contains Hotkey*. Hotkey layout used by matcher:
++8 physical key, +0xc argument flags, +0x10 Command_t*, +0x14 required-mode
+count, +0x18 required-mode array pointer, +0x1c excluded-mode count, +0x20
+excluded-mode array pointer. Each mode is tested against both dynamic and
+static arrays previously described. Command_t stores channel IDs at +4 onward, terminated by -1, and event ID
+at +0x1c (the Execute call pushes event then channel). Command execution0x10001570 calls AFCM and
+appends parameters according to the flags, then dispatches.
+
+Read-only diagnostic: sentinel=u32(u32(input+0x10)+4), count=
+u32(u32(input+0x10)+8); traverse node=u32(sentinel), next=u32(node),
+hotkey=u32(node+8), bounded by sentinel/count. Find physical RightPress5 with
+Command_t first channel45 and event351 at+0x1c, required modes8/25 and excluded modes46/9. Physical
+RightPress5 is also exercised by `client/tests/native_input.c`; that test
+stubs command execution and does not prove this real popup binding exists.
+
+CCR IconMenuModule initialization0x1001209f..0x100120b7 registers
+channel8/event34->RequestIconMenuTeamLeader0x10012400 and
+channel8/event35->RequestIconMenuTeamNoLeader0x100124b0
+(`ccr.dll/lifted-0006.c`). Leader handler receives the supplied member
+identity via AFCM, destroys an existing active menu, constructs type7 via
+0x10012750 and stores its pointer at guest0x27048b98 at0x1001247f. Nonleader
+constructs type8 and stores the same global at0x1001252f. During a held right
+button a nonzero global proves entry to this constructor path; zero narrows
+to earlier dispatch or immediate dismissal. Generated dispatch table contains
+both guest0x27012400 and guest0x2b04b210. No absent production adapter was
+established by this static scan.
+
+## Bounded contracts and live resolution
+
+Ignored `tmp_popup.c` contracts the real generated DDR helper at guest
+0x2b04a150, row lookup 0x2b04a8f0, and exported wrapper 0x2b04b210. Using
+the parent's live coordinates, team/leader flags and a valid three-member
+list, both entry points emit AFCM channel 8, event 34, identity 50000:22.
+The same contract also passes when compiled against
+`client/build/wasm/shared/game/ddr.dll/lifted-0019.c`, the output of
+`tools/client/share_guest_bodies.py`. This checks transformed shared-entry
+semantics on the host; it is not a separate WASM browser execution.
+
+Ignored `tmp_popup_input.c` uses the original generated CCR frame and input
+functions, with a scene-hit-test stub that reinstates dynamic modes as the
+real hotspot pass does. Its real popup binding has argument flags 0,
+required modes 8 and 25, excluded modes 46 and 9, and command channel 45 /
+event 351. At a 0.016-second timer delta it executes once. Disabling mode 25,
+enabling mode 9, or enabling mode 46 each suppresses the command. The command
+spy checks the command object's channel/event fields; AFCM execution itself
+is stubbed, so this is a matcher/frame contract.
+
+The initial local fixture incorrectly set dynamic mode 25 before the frame;
+FramePreProcess cleared it. Moving that update into the hotspot stub fixed
+the fixture. This was a fixture setup error, not production evidence.
+
+Changing only the timer delta to 1.0 seconds suppresses this same positive
+binding. Native CCR ProcessInput at original 0x100045db..0x10004633 adds the
+frame delta to right-button elapsed time (input+0x13c), compares it to the
+hold threshold (input+0x14), and rewrites the input action to right-hold 6
+at 0x10004616..0x10004622. A slow first frame can therefore skip the
+RightPress 5 binding. This reproduces a plausible mechanism without proving
+the failed live frames had that timer value.
+
+The parent subsequently closed its other two owned WASM pages and observed
+the native menu appear on the same owner's team row, including MakeLeader,
+Kick and Info. Together these observations establish that the route is
+implemented and can work. They do not justify an adapter or server change
+for the earlier missing menu. No production files were changed by this
+audit, and no test clients or servers were started here.
diff --git a/docs/research-notes/team-loot-research/server-audit.md b/docs/research-notes/team-loot-research/server-audit.md
@@ -0,0 +1,257 @@
+# Team loot: current server and integration audit
+
+Independent read-only audit. No production edits, REA sessions, browsers,
+game clients or servers were started. Current Go/SQLite source is authoritative;
+some older loot documentation predates the world-database work.
+
+## Established contract versus policy
+
+The shipped14.9.1 files under
+`server/assets/anarchy-assets-14.9.1/cd_image/text/` establish:
+
+| Rule | Exact source | Confidence |
+| --- | --- | --- |
+| The leader may change team loot order | `help/Team Commands.txt:3` and `help/TeamHelp.txt:3` | Direct shipped help |
+| All allows anyone in the team and is the default | `help/Team Commands.txt:7` | Direct shipped help |
+| Leader allows only the leader to loot monster remains | `help/Team Commands.txt:6` | Direct shipped help |
+| Alpha is alphabetical and repeats | `help/Team Commands.txt:8`, `help/TeamHelp.txt:8` | Direct shipped help |
+| Rights go to the player or team inflicting the majority of damage | `tips/OnSelectRemains.txt:3` | Direct shipped help |
+
+SHA-256 values, respectively:
+`0680f4282ae7c16f57c1b05387a5d652c9fb8acf7e2ffe6496c00a601f1ececa`,
+`e8d8eed01c4b0c7981c157956242fa5c5f6ad951a71a61b81fd504ecbacf228d`,
+`dab6691c2c11ee5bf85273d761894ee649363731108a578db051ba564094d88d`.
+
+These do not settle strict majority versus greatest-group plurality, tied
+groups, credit bucketing when membership changes during combat, post-kill
+joiners, mode changes affecting existing remains, leader-transfer effects on
+old remains, alphabetical case/collation, empty-corpse turns, disconnected or
+cross-zone assignees, or the event that advances Alpha. Native wire evidence
+must supply mode numbers and the `/team loot` request/result shape; do not infer
+those integers from English order names.
+
+The existing documented solo policies are greatest applied-damage total,
+overkill capped at remaining HP, first-to-reach tie retention and no reset when
+attacks stop. Those policies can be preserved for solo participants, but do not
+become original server proof merely by extending them to teams.
+
+## Current ownership and authorization
+
+`server/combat.go::prepareDamage` records `damageContributors[playerID]` and
+`leadingContributor`. It runs after target HP has been reduced; all callers cap
+damage to remaining HP. On a supported NPC death it creates `npcCorpse`, assigns
+the individual leading contributor to `looter`, clears contribution totals and
+sets expiry from the creature profile. Normal hits, direct nano damage and
+Fling all use this preparation. Respawn constructs a fresh character/identity
+in `server/respawn.go`, naturally clearing contributions and corpse ownership.
+
+`server/loot.go::canLoot_locked` currently requires that exact individual
+looter, corpse existence/death, known NPC interest, matching playfield,
+unexpired deadline and five-metre predicted-position range. `handleLootUse`
+also validates the current world connection, ready/loading/life state, native
+owner fields and monotonically increasing use sequence. `handleInventory`
+applies corresponding owner/session/life checks before `takeLoot_locked`.
+Crucially, pickup calls `canLoot_locked` again; an old open window is not an
+authorization token.
+
+Page107 pickup requests contain a corpse slot, not a corpse identity. The
+server's `worldClient.lootCorpse` binds that request to the single open corpse.
+Switching corpses closes the previous registration before opening the next.
+Reclaim is a distinct page106 route, and backpack page107 handles have nonzero
+high words; preserve these distinctions when adding team access.
+
+`corpsePacket` currently writes a zero team ID, hardcoded loot mode3 and
+looter identity50000/player. That matches the existing individual path only.
+The tail after original-actor identity/cloth/texture fields contains **one team
+ID DWORD**, a mode DWORD, looter identity and reward count. A team identity
+pair57001/teamID must not be inserted there without the native reader proving
+that shape. The native use predicate described in `docs/corpse-loot.md` does
+not enforce looter authorization; server checks remain essential even if the
+client permits a click or displays outdated entitlement text.
+
+## Current durability and transaction boundaries
+
+Corpses are now durable. `server/world_store.go` stores looter, credits, expiry,
+present/dead state, respawn deadline, leading contributor and contribution rows.
+`server/item_database.go` stores corpse item locations and container children.
+`loadNPCs` runs before users/teams are loaded, so historical team IDs in NPC
+state should be retained as scalar references and resolved only for live
+authorization after startup completes.
+
+Routine NPC checkpoints are staggered20..40seconds, then20seconds, and skipped
+for unobserved zones. `writeNPCs_locked` writes significant corpse-state changes
+immediately when included in an inventory transaction; it deliberately avoids
+per-movement or per-tick churn. Do not turn group damage tracking into a write
+on every swing. Current NPC regeneration does restore HP
+(`server/npc_regeneration.go`), while contributions remain accumulated. Older
+documentation saying NPCs never heal is also stale.
+
+Pickup and cash collection already use a single SQLite transaction through
+`saveInventory_locked -> itemStore_locked -> persistItems_locked`. Pickup
+temporarily removes the corpse item, builds the owner's candidate inventory,
+persists both locations and restores the old corpse slice on save failure.
+The item/location cache changes only after commit. Cash collection similarly
+temporarily zeros corpse cash and restores it on failure. Preserve filled-bag
+children, global instance IDs and count/ammunition metadata through these paths.
+
+Fling has a stricter immediate outcome transaction:
+`server/fling_shot.go` copies the target and contribution map, calls
+`prepareDamage` on that detached result, then `saveSpecialAttack_locked` commits
+the cooldown, target HP, contributions and corpse/respawn state together.
+Only after success does it install the live candidate and publish packets.
+Any winning-team assignment or Alpha advance arising from a Fling death must
+participate in that same transaction; an out-of-band team cursor write would
+leave the sequence advanced after an otherwise rolled-back hit.
+
+Normal/nano damage currently mutates live HP and publishes death without a
+dedicated immediate outcome save. If creating a team corpse also advances
+durable Alpha state, prepare that death as a candidate and commit corpse
+assignment and cursor together before publishing. Keep routine simulation
+damage/checkpoints separate from this significant transition; do not force a
+complete world flush on every attack. Shared target-state persistence with
+the existing special-outcome path is a justified narrow reuse, whereas a new
+general event/transaction framework is unnecessary.
+
+## Small coherent model
+
+Keep live-team configuration distinct from the corpse's awarded rights:
+
+- Team: current loot mode (default All) and the minimum durable Alpha cursor
+ required by the chosen rotation rule.
+- Corpse: winning historical team ID (zero for a solo award), captured loot
+ mode and designated player when the mode needs one. Existing scalar
+ `corpseState` can remain comparable for `lootChanged`/checkpoint comparisons.
+- Damage credit: a stable beneficiary identity per applied hit, distinguishing
+ solo player IDs from team IDs. Do not key both namespaces by an undifferentiated
+ uint32, because the first team and first player can both have ID1.
+
+Store corpse **team ID**, not `*playerTeam`: `saveTeam_locked` replaces team
+pointers after every roster/leader mutation. An old pointer would silently
+retain departed members and stale leadership. Do not cascade historical corpse
+or contribution rights away when the live team row is deleted. Team IDs are
+AUTOINCREMENT and not reused; that prevents a newly formed team inheriting an
+old team's corpse or contributions.
+
+For aggregation, choose and explicitly document one membership-time policy:
+
+1. **Hit-time beneficiary**: each applied hit belongs to the attacker's team at
+ that hit (or the solo actor). Team damage totals naturally compete against
+ other team/solo totals. Leaving never retroactively moves credited damage;
+ current membership still controls whether the resulting team award may be
+ used. This requires persistently distinguishing the beneficiary namespace.
+2. **Death-time rebucketing**: retain individual totals and group them by current
+ teams at death. This is smaller but transfers earlier solo damage into a
+ just-joined team and takes earlier team damage away when someone leaves.
+
+Neither is established by the help. Hit-time credit is the more explicit stable
+accounting choice; do not present it as recovered behavior. A first-to-reach
+tie rule needs a retained leading-beneficiary identity during updates, rather
+than choosing a random Go map entry at death. Applying one corpse's Alpha turn
+must happen once after choosing the winning aggregate, including a last hit by
+an unrelated smaller contributor.
+
+## Per-corpse rights and bounded policy choices
+
+The following is a coherent candidate, with unresolved parts labeled:
+
+- Freeze the team's loot mode at corpse creation so changing `/team loot`
+ controls future remains and does not silently rewrite existing awards.
+ This freeze point is policy, not established by the help.
+- All: any currently accepted member of the awarded team may use/take, subject
+ to existing session/life/interest/range gates. This immediately revokes a
+ departed/kicked player. It also admits a later joiner to old All corpses;
+ that consequence must be explicit. A frozen-member intersection would be a
+ different policy needing more durable data, not a free security improvement.
+- Leader: the help says only the leader. Using the current team's leader for
+ each request follows that literal rule and immediately transfers authority.
+ A designated leader captured at death instead matches fixed assignment data
+ but lets a still-teamed former leader retain rights; that is a separate
+ unresolved policy. Coordinate the choice with native entitlement metadata
+ and any verified rights-update packet, not merely the server predicate.
+- Alpha: assign one player per corpse using an alphabetical roster snapshot
+ at the chosen allocation event; keep that assignment fixed, and require the
+ assignee still be a current member of the historical winning team. This
+ prevents leave/rejoin into a different team retaining access. Do not rotate
+ on every item, repeated Use or denied/stale requests. Assigning/advancing at
+ corpse creation fits a fixed looter identity but remains policy until the
+ original server event is recovered.
+
+Alphabetical collation, starting point, cursor reset on mode change, new names,
+member insertion/removal, empty corpses and unavailable assignees need explicit
+tests and policy text. A monotonic index over the current sorted roster is
+minimal but roster changes can repeat/skip names. A last-assigned-name cursor
+can continue naturally after removal but requires a stated collation/rename
+rule. Neither is historical proof. Avoid speculative availability skipping or
+automatic reassignment without evidence.
+
+If a team dissolves, current-membership authorization means its old team corpse
+can become unlootable until expiry. No public unlock is implemented. Falling
+back to the old solo looter or treating missing teams as public would violate
+outsider exclusion. Explicitly document/test stranded rights rather than
+adding a hidden unlock policy. Membership retention across disconnect remains
+the existing provisional team policy; ordinary offline status must not itself
+be confused with voluntary departure.
+
+## Live windows, credits and atomic team changes
+
+All affected handlers already serialize through `updateMutex -> mutex`:
+`handleTeamAction`, `handleLootUse`, `handleInventory`, combat and expiry.
+Reuse that order. After a successful leave/kick/leader change, scan the small
+set of connected open loot handles; close and clear any handle whose current
+rights no longer pass. Queue these closes after the membership commit and
+before accepting a subsequent slot-only pickup. A failed team save must neither
+change rights nor close windows. Rechecking Use/pickup remains the security
+boundary even if a close cannot be delivered.
+
+All mode permits multiple legitimate windows. Current `takeLoot_locked` sends
+only the taker's transfer ACK, which was enough for solo rights. After commit,
+refresh other clients with that same corpse open using its authoritative
+`lootInventoryPacket(..., false)`; the existing full-inventory correction uses
+that non-opening update. Preserve the taker's native transfer ACK ordering.
+Test simultaneous eligible takes, stale slot replay after another member takes
+an item, partial loot and close/reopen; do not trust a displayed stale icon.
+
+Cash is collected by native successful corpse Use, including window close.
+The first authorized Use currently receives the whole normalized amount;
+other observers receive corpse Cash0 before later Use. The accepted owner is
+excluded from that zero update because its deferred native Use must consume
+the old amount itself. Sending an immediate absolute owner balance can double
+the displayed gain. Preserve these ordering contracts while broadening rights.
+
+Neither All nor Alpha establishes team money splitting. Keeping first eligible
+Use collection is an explicit unsplit-money policy, not proof of original team
+cash behavior. Split money would need multi-owner atomic credits and matching
+native receipt/accounting evidence and belongs in a separate sourced milestone.
+
+## Required verification before calling the integration complete
+
+- Two modest team contributors beat a larger individual contributor in total;
+ a stronger different team wins instead; an unrelated last hit changes neither.
+ Exercise normal hits, nano damage and Fling, applied overkill, ties and restart
+ during an unfinished fight.
+- Default All admits both current members, excludes outsiders/other teams and
+ rechecks leave/kick after opening. Two accepted concurrent requests yield one
+ durable item owner and one cash collection; filled-container children remain
+ intact. Corrections converge both native windows.
+- Leader changes require current leader permission; invalid/malformed/forged
+ commands and SQL failures publish no mode change. Check current-versus-frozen
+ leadership behavior on old corpses according to the chosen explicit policy.
+- Alpha assigns A,B,C,A across separate corpses, not separate items or reopens.
+ Test out-of-order opening, empty remains, denied Use, full inventories,
+ membership/name changes, offline/cross-zone assignees and save failure.
+- Restart preserves team mode, Alpha cursor, pending group damage and existing
+ corpse rights. Fault-inject both the corpse write and cursor write to prove
+ rollback, including Fling's existing detached-outcome path.
+- Native WASM checks must use actual `/team loot` commands and actual corpse
+ Use/pickup, verify the original All/Leader/Alpha entitlement text and inspect
+ both same-team and unrelated clients. A green server predicate is insufficient
+ to prove correct native mode numbers, corpse metadata or window behavior.
+
+## Documentation corrections in scope
+
+Update `docs/corpse-loot.md` and `docs/corpse-credits.md` statements that corpses
+and untaken items are nonpersistent/runtime-only; SQLite now restores them.
+Replace the old no-NPC-healing statement with current recovery behavior while
+retaining the unresolved contribution-reset policy. Keep team cash splitting,
+public rights release, exact historical membership/tie/Alpha edge rules and loot
+tables open rather than implying this milestone settles them.
diff --git a/docs/research-notes/team-loot-research/wire-audit.md b/docs/research-notes/team-loot-research/wire-audit.md
@@ -0,0 +1,144 @@
+# Original 14.9.1 team loot wire audit
+
+Read-only generated-source and PE audit, 2026-10-23. No runtime observation or
+shared REA session was performed. Addresses below are original PE VAs. Generated
+KKR addresses add 0x26000000; DDR addresses add 0x1b000000. Duplicate generated
+function copies were deduplicated by instruction address.
+
+## Identities and sources
+
+- `anarchy-vanilla-14.9.1/kkr.dll`, image base `10000000`, SHA-256
+ `a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+- `anarchy-vanilla-14.9.1/ddr.dll`, image base `10000000`, SHA-256
+ `3c937161de8f690351c3c08e158431417cee9ced77a41b677e7123b61a8c9883`.
+- `anarchy-vanilla-14.9.1/eer.dll`, image base `10000000`, SHA-256
+ `99bc32ca57356aa227e6f78dfe544f8fe16f9ca694a6dee6d3846a36c5a2a6ff`.
+- Generated sources are under `local/client/game-14.9.1/`.
+- Shipped help: `server/assets/anarchy-assets-14.9.1/cd_image/text/help/Team Commands.txt`
+ and `TeamHelp.txt`. They establish Leader = leader only; All = anyone in the
+ team, default; Alpha = repeating alphabetical order. Neither establishes the
+ native integer values or server algorithm details.
+
+## Minimal contract (high confidence static observation)
+
+Use existing CharacterAction key `5e477770` and the sender's normal character
+envelope. The key is already established by `docs/teams.md`; this audit directly
+confirms construction of the same `CharacterActionIIR_t`, not a new key hash
+derivation. Identities in this table are the two pairs AFTER the action integer.
+
+| Direction / purpose | Action | First pair | Second pair |
+| --- | --- | --- | --- |
+| Client set `/team loot all` | 127 (`7f`) | `{0,3}` | `{0,0}` |
+| Client set `/team loot leader` | 127 | `{0,4}` | `{0,0}` |
+| Client set `/team loot alpha` | 127 | `{0,5}` | `{0,0}` |
+| Client query `/team loot` | 145 (`91`) | `{0,0}` | `{0,0}` |
+| Incoming native set feedback | 127 | `{unused,mode}` | unused |
+| Incoming native current-order feedback | 145 | unused | `{unused,mode}` |
+
+**The query RESULT uses the second pair, unlike the set result.** Native consumers
+read only the pair's second word here. Zero the unused words/pairs for a minimal
+server producer. This zeroing is an implementation recommendation; the native
+consumer does not constrain all unused incoming words.
+
+The mode integer is **all=3, leader=4, alpha=5**, not 0/1/2. KKR initializer
+`1003bf9a..1003c096`, source `kkr.dll/lifted-0019.c`, builds the map at original
+`10306418`: key 1 `team` (`101bf07c`), key 2 `loot` (`101bf074`), key 3 `all`
+(`101bf070`), key 4 `leader` (`101bf068`), key 5 `alpha` (`101bf060`).
+
+`1003e3c0` / export `fStringToTeamCmd(const char*)`, source
+`kkr.dll/lifted-0020.c`, traverses that map and compares through MSVCRT `_stricmp`
+(IAT `1016f19c`). Unknown text returns 0 at `1003e42d`; valid text returns the
+node key at `1003e432`. Because the same map contains `team` and `loot`, a hostile
+or ordinary invalid mode can produce 0, 1, or 2: server validation must whitelist
+3/4/5. Native producer does not do that validation after converting the mode.
+
+## Command producer and local checks
+
+- Export `N3Msg_TextCommand`, KKR `10022f40`, source `lifted-0014.c`, forwards to
+ command object `10072000` and parser **`10053be0`**.
+- Parser's `/team` branch is **`100542dd..100544db`**, source
+ `kkr.dll/lifted-0026.c`. This range is inside `10053be0`, although overlapping
+ generated fragments also have later synthetic entry functions.
+- `100542f9` gets the actor's team component with `10071e40`. A zero first word
+ emits `You are not a member of a team!` (literal `101c20e8`) locally and sends
+ no request.
+- Bare `/team` emits `Available team commands:`, `/team loot`, and
+ `/team loot [all/leader/alpha]` (literals `101c20cc`, `101c20c0`, `101c20a0`).
+- Token `loot` must map to 2 (`1005439f..100543aa`). The next token is optional.
+ Missing mode constructs action145 at `100543ef..10054407`; both pair pointers
+ are null identity `102ea510`. It sends through imported world send at
+ `1005441d` (IAT `1017004c`).
+- With mode present, `10054431..1005444e` compares actor identity `{actor+4,+8}`
+ to team component leader identity `{team+18,+1c}`. Failure emits
+ `Only team leader can change loot order!` (`101c2078`) locally and sends none.
+- Success calls mode conversion at `1005445d`; local pair is `{0,returnValue}`
+ at `10054464..1005446b`; constructor receives action127 at
+ `10054481..10054495`. Send occurs at `100544ab`. No mode validation follows
+ the conversion and no extra trailing-text payload is constructed.
+- DDR chat parser `1000d540`, source `ddr.dll/lifted-0003.c`, has a bare `team`
+ help branch at `1000fb0d`, using `team` and `/showfile Team Commands.txt`.
+ EER export `N3Msg_TextCommand` is `100056f0`. World loot parsing and request
+ construction are conclusively in KKR above; no distinct EER loot request
+ producer was found in the export search.
+
+## IIR layout and native receiver
+
+KKR `1007d4b0`, source `kkr.dll/lifted-0036.c`, constructs a 0x34-byte
+`CharacterActionIIR_t` (literal type name `101b401c`). Constructor arguments:
+owner identity, first pair, action integer, second pair. Object fields:
+`+20 action`, `+24/+28 first pair`, `+2c/+30 second pair`.
+
+- `1007d600` writes action through `BinaryStream << int` (IAT `1016faec`), then
+ both identity pairs via `1015b840`.
+- `1007d5c0` reads the same shape (`BinaryStream >> int`, IAT `1016fa8c`, and
+ identity helper `1015b870`).
+- Activate `1007d640` resolves the owner, passes second pair, first pair, action
+ to its virtual method `+a4`. The implementation is dispatcher **`1006fa30`**,
+ source `kkr.dll/lifted-0033.c`.
+- Dispatcher takes `(action, firstPair, secondPair)`: firstPair is saved in EBX
+ from `[ebp+c]` at `1006fa7f`; secondPair is `[ebp+10]`.
+- It dispatches action-1 via byte table `10070d6c` then pointer table `10070c08`.
+ Actual original PE bytes: action127 index byte at `10070dea` = 50; pointer at
+ `10070cd0` = **`1006fcfb`**. This branch reads `[firstPair+4]` and calls
+ `10076d80` at `1006fd08`.
+- Action145 index byte `10070dfc` = 61; pointer `10070cfc` = **`100707ea`**.
+ This branch reads `[secondPair+4]` and calls `10076dd0` at `100707fa`.
+- Team methods `10076d80` and `10076dd0`, source `lifted-0034.c`, convert through
+ `fTeamCmdToString(int)` at **`1003e320`**, then emit respectively
+ `Team looting set to: %s` (`101c45d4`) and
+ `Current team loot order is: %s` (`101c45ec`) via `1001c590 -> 1001c8c0`.
+ These methods only format/output text; neither stores a client team loot-mode
+ field. No caller-local gate is present around these two dispatch branches.
+
+## Related corpse consumer, not fully audited
+
+KKR `1008c740`, source `lifted-0041.c`, receives four arguments from the handler
+at **`100aff59`** (`lifted-0052.c`): identity at source object `+a8`, integer at
+`+9c`, mode at `+a0`, and member/list pointer at `+a4`. It uses mode through the
+same `fTeamCmdToString` and special-cases **mode3** at `1008c8cc` to emit
+`All team members can loot these remains..` (`101c590c`). Other modes may emit
+`%s can loot these remains...(loot order: %s)` (`101c58dc`). This corroborates
+the all=3 mapping. The containing IIR key/layout is not recovered in this audit;
+do not fabricate it from these offsets. This is an exact follow-up seed if corpse
+owner/status replication requires implementation.
+
+## Limits and unanswered server rules
+
+- Static client code establishes request, result and UI text, not original server
+ recipient selection. Broadcast action127 to all accepted members is plausible
+ but not proven by this audit; action145 should answer the querying actor.
+- No native proof here of reconnect/join unsolicited loot-mode announcement,
+ leader-change reset, disband reset, query restrictions beyond membership, or
+ a persistent client-side mode field. The reply text is sufficient for native
+ query/status handling.
+- No original rejection reason integer is recovered for forged nonleader or
+ malformed mode requests. The normal client blocks nonleaders locally.
+- Help establishes alphabetical repeating Alpha behavior but not sorting
+ collation, absent/dead/out-of-range members, rotation advancement, corpse owner
+ retention after team changes, or permission expiry. These require separate
+ server policy research and tests.
+- `5e477770` packet key is inherited from existing independently established team
+ protocol work; full type-name-to-key derivation was outside this bounded pass.
+- No retained REA EvidenceIDs are invented here. Root should independently retain
+ parser10053be0, converter1003e3c0, initializer1003bf9a..1003c096,
+ IIR1007d4b0/1007d600/1007d640, dispatcher1006fa30 and feedback10076d80/10076dd0.
diff --git a/docs/research-notes/token-board-set-followup/README.md b/docs/research-notes/token-board-set-followup/README.md
@@ -0,0 +1,39 @@
+# Bounded original token-board Use follow-up
+
+Target: original14.9.1 `kkr.dll`, SHA256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+The complete REA records and reusable analysis are in `evidence.json` and
+`snapshot.json`. This was static analysis, not observed original server behavior.
+
+- Executor100be8e0 calls classifier100bfb40 and returns when it rejects an
+ effect. Set53026/CF22, effect53038/CF2e and Printf53044/CF34 are accepted;
+ CreateItem53064/CF48 is not. Evidence:
+ `d6b89e6f49a3a43e14171e161fc0d282bb2b0c5593b6da133da870b147a0be17`,
+ `0a627747f16dc663c862d80450ac295e09f9b9450f2d14e85d006f5fdbe0498c`.
+- Set53026 routes to100bd380, reading argument keys0 and39 through100bd190.
+ Stat8 takes the ordinary Beholder stat-setter path. This establishes the
+ setter, not the recipient binding or the meaning of prefix03000000.
+ Evidence `96e4abfde8165f2164021f3f9551bfee722ff26b8a03f47b9d7427606c9d61d1`,
+ `537f9b6e84ec7ae44fe1c0b610586e876cb580eee440bf84d77b830c38cd1b19`.
+- Effect53038 routes to100bd9a0 and has different SimpleItem/SimpleChar
+ presentation paths. Exact server-visible presentation policy is unresolved.
+ Evidence `289e4eb42b4eb18d7ed10cf57682eae7a23cefeabf2e5f984301ecfe38101cc3`.
+- Printf53044 routes to ATR_t::ActivateTestArgument at10010def0, a shared
+ return stub. Relaying this effect to the client cannot produce its token
+ message. Server formatting/packet ordering remains unresolved. Evidence
+ `8403fa070904c05143c4decee22e79a74f52b3a5c71ebf2803db3348f97d9b83`.
+
+The previously decoded original QL8 records96357/99726 contain only53038 and
+53044 on Use, with no create/delete. Their exact text differs: Clan has
+`Side tokens collected: %d.`, Omni `Side tokens collected %d.`. This does not
+establish their complete carried/worn Use behavior or justify partial admission.
+
+The independent bounded web pass found a September5,2002 comment by tal5061126
+on https://www.aogalaxy.com/_items/item.php?aoid=96356 confirming a400-token
+board's next1000 threshold. It did not recover terminal-board Use, full-inventory,
+identity or worn-use behavior. Current pages for96357/99726 identify database
+18.8.62 and add DANC/OHIO Summon/Destroy effects absent from the original14.9.1
+terminal contracts; do not import those newer effects. Auno returned access
+denied. Do not repeat these searches without a new source or implementation
+question. Category membership, replacement ownership and Clan Set recipient
+remain unresolved; no advancement implementation or completion is claimed.
diff --git a/docs/research-notes/token-upload-research/native-functions-audit.md b/docs/research-notes/token-upload-research/native-functions-audit.md
@@ -0,0 +1,120 @@
+# Token Use native-function audit
+
+Read-only bounded audit, 2026-10-27. Reused original evidence and maintained
+14.9.1 KKR lifted C; no REA session, export, client/server or native call started.
+The parent owns the current original KKR session. Original KKR SHA-256 is
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+Maintained addresses add 0x26000000 to original addresses. No production edits.
+
+## Important negative result
+
+There is **no client-side immediate token-stat addition in the reviewed Use
+path**, and StaticText53044 does **not** format/display token feedback there.
+The records describe intended authoritative effects; the client executor gates
+Hit53002 out and maps StaticText53044 to a return-only handler. Do not implement
+server token delivery on the assumption that TemplateAction applies either one.
+
+## Exact Use/callback sequence
+
+| Step | Original / maintained symbol | Finding |
+| --- | --- | --- |
+| Successful GenericCmd acknowledgement | 1005e790 / lifted-0028.c:sub_3605E790 | Decrements native inventory proxy count once via1002d2c0/1002d2f0. A zero result triggers event20, if any, then ItemRemoved notification. |
+| TemplateAction action3 | 1005e980 / lifted-0028.c:sub_3605E980 | Constructs a fresh template and calls its Use virtual at+0x58. It does not debit the physical inventory count again. |
+| Item Use | 100902b0 / lifted-0042.c:sub_360902B0 | Selects event0 with100020c0 and invokes effect-list apply virtual+0x34. It installs the current item/subject context first; no saved mission-acceptance level is consulted. |
+| Effect-list application | 10002370 / lifted-0000.c:sub_36002370 | Clones functions in source order, sets apply/remove flags and resolves selectors; ordinary count1/interval0 functions go directly to100be8e0. Target2 is the self/user context, not arbitrary selected hostile target. |
+| Common effect executor | 100be8e0 / lifted-0056.c:sub_360BE8E0 | Calls100bfb40 before requirements. Rejected IDs set remaining count to0 and return. Accepted IDs evaluate per-function criteria via100056e0 before dispatch. |
+| StaticText dispatch | 1010def0 / lifted-0079.c:sub_3610DEF0 | Entire maintained body is ret4; no stat read, sprintf, message callback or token-count update. |
+
+Exact reviewed instruction points:100be8e8 gate;100be8f1 clears remaining
+count;100be92c criteria call;100902b0 selects event0 at10090496 and applies it
+at1009049e. `docs/nano-learning.md` and `docs/first-aid.md` already establish
+the ACK -> TemplateAction -> DeleteItem sequence and one-debit ownership.
+The latter explicitly traces the same immediate Hit rejection.
+
+Retained original evidence:
+
+- ACK/debit: `ev_d6fce7cdf8a26b4feb90ba17fcd1711f9ae42241843a86f766749070d244b871`.
+- TemplateAction Use: `ev_3cd89062e7b4d4a2c5c8aa85884ffc09b99e65eacca95d800b704227eff26bc4`.
+- DeleteItem: `ev_adf2bdce609e25d955a4c232cc1035041d4692c16e8af2b37e85653298399b7d`.
+- Immediate effect path: `ev_21b6bf56ea3b01fefafecdb673e392142538e12a995ac4070c4b8a8f1a26f59b`,
+ `local/reports/combat-client-pass2-decompiles-9.json`.
+- Gate/executor: `ev_f28cc89d25d840908ea753e766d4e2d1a718ef5138b04f190e82062755593b1d`,
+ `local/reports/combat-client-decompiles-19.json`.
+- Complete retained dispatch classification:
+ `local/reports/combat-client-effect-handler-map.json`, entries53002 and53044.
+
+The first three are retained in
+`local/reports/first-aid-protocol-1491-evidence.json`. They prove client receive
+behavior, not original server transaction ordering or exactly which token
+feedback packet the original server emitted.
+
+## Token descriptors and current-level criteria
+
+Reviewed `local/mission-encounter-research/original-token-records.json` and
+`token-eligibility.md`. Ordinary96349/96350, special152932/152933 and
+bravery158421/158422 use self-target2 Hit53002, [stat75/62, equal positive
+endpoints, damageType0], count1, interval0. Ordinary tokens contain the base
++1 and eight separate level54/operator2 requirements; special tokens have+25,
+bravery+1. Preserve the exact Clan threshold >50 versus Omni >49.
+
+Native criteria100056e0 reads the subject's current stat at evaluation time.
+Operator2 uses signed getter mode0 and strict greater-than when the initial
+subject is local; nonlocal initial subjects deliberately bypass that comparison.
+Equality operator0 checks presence and getter mode3. Source:
+`client/game/kkr.dll/lifted-0002-00.c:sub_360056E0` and
+`docs/combat-client-requirements.md`, original assembly
+`ev_766b14bab9ca66a483cc487e7daa79d93f1790c34718cedc6ad768caac1acc3d`.
+Authoritative server validation must not copy the nonlocal visibility bypass.
+
+Crucially the native Hit gate returns before these per-function predicates,
+so the native Use callback itself never computes those increments or reads
+their current-level predicates. The authored requirements support a server
+implementation evaluating current redemption level; this audit does not
+recover an original server implementation or show a client-side token formula.
+
+The final StaticText function is self-target2 and contains the exact string
+`Side tokens collected: %d.` followed by20 opaque bytes. Omni starts
+`4b000000`, Clan `3e000000`, followed by16 zero bytes. Those first DWORDs
+are little-endian75 and62. This strongly suggests formatting the resulting
+side-stat total after preceding increments, but the client no-op supplies no
+formatter semantics for the other bytes or original server emission route.
+Do not generalize the blob to arbitrary StaticText formatting without evidence.
+
+Native ordinary stat setter1006e030, maintained
+`lifted-0033.c:sub_3606E030`, takes62 and75 through the generic raw-stat store
+at1006e630 (62 enters1006e285;75 is below the78 special-table lower bound and
+also enters1006e285). Neither has a token-feedback formatting branch. Thus an
+absolute token-stat packet can update the count without an extra client-side
+increment; formatted redemption feedback remains separately server-produced.
+
+## Implementation constraints and unresolved scope
+
+Persist the accepted self-target side-stat increment and one physical item
+debit atomically before success. Evaluate action3's Side33 equality separately
+from each function's level condition. Send the authoritative final stat value;
+do not rely on native Hit, invent a nano modifier, multiply physical Count or
+re-evaluate mission-time level. Publishing TemplateAction is harmless for these
+effects but cannot substitute for the authoritative stat/feedback messages.
+
+This scope does not prove original overflow/count caps, generic Hit endpoint
+randomness, arbitrary StaticText argument semantics, token-feedback wire route,
+shared cross-template Unique groups, mission issuance, probability or XP policy.
+Token earning probability was deliberately not researched here. Parent original
+REA/runtime work may close the feedback route and exact use admission separately.
+
+## Input hashes
+
+- original-token-records.json:
+ `27a93ae4322bb6d9a7fd48cc7abefec7451404234840606e3a0e6a3b6191b7c4`.
+- client/game/kkr.dll/lifted-0000.c:
+ `44b70970f69b68476073a529464f98f1a73bc0fdcc5df72552d710d6246f09c6`.
+- lifted-0028.c:
+ `8bc0be69d96ba55b07b4c591fae06598ea6ac89bbe438c52e5f57cd153be3f74`.
+- lifted-0042.c:
+ `0b539c702155c5250dfafe3f29b3370ad312281012aa67c9f1db7fe14e9f68c6`.
+- lifted-0056.c:
+ `3e14446e562f46db41e4b8cc115487bdc016f4f4d84c1f65b1b6a077aee076eb`.
+- lifted-0079.c:
+ `6502f0e6dc925ad7e8cd1071e6ca705112eb8902674c411fc77ecf75e4e3b3e9`.
+- combat-client-effect-handler-map.json:
+ `108250554f7af6d700684d30ce7eb64efed3f73b81a15975f579fe9c6df3ed4c`.
diff --git a/docs/research-notes/weapon-contract-research/conditional-native-lifecycle.md b/docs/research-notes/weapon-contract-research/conditional-native-lifecycle.md
@@ -0,0 +1,52 @@
+# Conditional OnWear: hardware-accelerated WASM observations
+
+Two headed clients used the unchanged shared preview, original Improved
+Tripler121582 (QL116, payload SHA256
+`f0479017b83604302b4280751892ee7dc3daaa7877133700d22d412546bb78c5`),
+and original Sense Boost27154 through crystal27290. The Tripler's complete
+OnWear is Modify103+15, conditional on Sense20>150. No combat attacks were
+made, so its separate event5 proc was not exercised or claimed supported.
+
+Only normal equipment/nano GUI inputs and public control fixture setup were
+used. Native modifier trees and inventory were read only; SQLite snapshots
+were read only. There were no native calls, heap writes or injected gameplay.
+Artifacts, screenshots, wire capture and15 asserted snapshots are retained in
+`local/conditional-weapon-smoke/verification.json` and its sibling files.
+
+| Owner state | Sense base/bonus | Raw103 modifier |
+| --- | --- | ---: |
+|Ordinary inventory|140/0|0|
+|Worn below the condition|140/0|0|
+|Sense Boost applied while still worn|140/12|0|
+|Removed after the condition became true|140/12|-15|
+|Re-equipped with the condition true|140/12|0|
+|Owner reconnect while still worn/condition true|140/12|15|
+|Sense Boost canceled while still worn|140/0|15|
+|Removed after the condition became false|140/0|15|
+|Owner reconnect with weapon in ordinary inventory|140/0|0|
+
+The observer was different: its remote owner's base Sense was5, yet it gained
+103+15 on wear and removed that contribution on unwear regardless of the
+owner's condition. Its received Sense buff remained visible as+12. These
+observations must not be collapsed into a single local/remote rule.
+
+For this path, native application and inverse removal sample current
+requirements independently. Merely crossing the condition does not update the
+existing modifier. This can subtract an unapplied contribution or retain an
+unremoved contribution. Full owner reconstruction resets the resulting offset.
+The visible native actor and original weapon instance were observed at every
+step; neither a lost item nor a new instance explains the arithmetic.
+
+This is client behavior under the current reconstruction. It does not recover
+the original authoritative server's applied-effect state, stat compensation or
+reconnect policy. The present Go helper unconditionally accumulates these
+conditional values and also needs correction. Recomputing all bonuses from
+current requirements alone would not reproduce the observed lifecycle.
+Do not admit the83 conditional weapon contracts as complete or introduce a
+Tripler-specific workaround. Establish a reusable application/removal and
+owner/observer synchronization contract, including reconnect/restart, before
+supporting conditional gameplay.
+
+Both owned clients closed cleanly. Isolated cleanup removed only owned players
+and items, verified all unrelated table hashes unchanged and checked SQLite
+foreign keys/integrity. The single shared HTTPS8443 preview was restored.
diff --git a/docs/research-notes/weapon-contract-research/findings.md b/docs/research-notes/weapon-contract-research/findings.md
@@ -0,0 +1,228 @@
+# Original main-hand weapon contracts
+
+This is an independent original-data audit of
+`server/weapon_stats.go:ownedItem.isWieldableWeapon`, not a proposed admission
+policy. All output is local research. No tracked file, test, server, client,
+browser, game database, native analysis session or commit was changed.
+
+## Coverage and exact predicate census
+
+The original RDB contains 7,695 records of native type51018. Independently
+scanning all 83,245 original item header/stat prefixes finds 7,380 with main-hand
+mask298 bit64. Their IDs exactly match current decoded YAML candidates. Every
+candidate's complete original payload was SHA256-verified, reparsed through
+`tools/data/extract_items.py:parse_item` and compared against every decoded YAML
+field. There are no Undecoded candidates. The complete original item/program
+identity set also matches all 87,611 YAML definitions.
+
+At authored quality, the current predicate admits 7,379 and rejects only123868,
+whose authored maximum damage285 is less than minimum286. This count covers the
+predicate alone, not character requirements or complete combat correctness.
+The predicate checks type, exact quality, main-hand bit and damage ordering; it
+does not check OnWear, other effects or complete sections.
+
+Masks are64 for4,741 candidates and320 for2,639. Both include the main-hand bit;
+320 additionally has bit256. This audit does not enable left-hand scheduling.
+There are98 currently admitted records without Can bit4; that numeric fact is
+not an assertion that the clothing CanWear gate applies to weapons. No new
+weapon capability policy is inferred.
+
+`records.json` preserves every complete original record, including all text,
+stats, section offsets, raw argument bytes, actions and functions.
+`sources.json` preserves all current YAML hashes; `summary.json:coverage`
+preserves original index SHA256
+`46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71`.
+`summaries.json` preserves every function/action and classifies gaps without
+dropping unsupported companions. `exact-functions.json` preserves every distinct
+complete function, and `function-shapes.json` retains layout/requirement groups.
+
+## OnWear modifiers and companions
+
+There are1,612 OnWear2/14 sections. They contain:
+
+| Function | Instances | Exact source shape |
+| --- | ---: | --- |
+|53045 Modify|3,022|headers[0,4], argument header9, target2, tick1, interval0, exactly integer stat and integer amount|
+|53057 HeadText|4|same headers/timing/target, string plus integer|
+|53162 unnamed|4|same headers/timing/target, two integers|
+
+Of the3,022 scalar modifiers,2,939 are unconditional and83 have nonempty
+per-function requirements. All83 occur in distinct currently admitted records.
+There are no other scalar header, argument, target or timing deviations. No
+53012 Skill function occurs on original weapon OnWear in this candidate set.
+
+The current shared `hasEquipmentStatConsumer` list excludes three authored
+weapon modifier stats:51 on16 weapons,315 on5,277 on3. All24 are currently
+admitted and unconditional. Exact IDs and complete effects are in
+`summary.json:admitted_missing_scalar_consumers`, `admitted-contract-gaps.json`
+and `summaries.json`. Representatives are124210 (OT-WC RM72 Junior Tium,51+5),
+129077 (V-three Breathing Space,315+1) and208069 (Jupiter Aegis,277+10).
+The other315 family IDs are129078..129081;277 also occurs on208070/208071.
+The51 family includes Sako Response rifles, MTI G-90A3, BBI AS-90 and Kang Tao
+Spitting Cobra variants. The list's absence is the precise established boundary;
+the parent owns independent review of actual scalar consumers.
+
+Parent follow-up establishes an existing315 consumer in
+`server/combat.go:weaponDamage`: when DamageType168 (NanoAC), the fallback
+reads315, as mapped in `docs/combat-equipment-modifiers.md:31`. Therefore the
+five315 records are shared-list omissions, not missing server behavior proven
+by this census. Stat51 timing currently reads `character.aggDef` directly and
+does not include gear contribution;277 has no defense/hit-chance consumer in
+the parent's bounded review. Those distinctions do not change the original
+counts or justify modifying this turn's runtime gates.
+
+The parent's additional original-record check finds zero main-hand candidates
+with DamageType436=168. All five315-modifying V-three-family records author
+Energy92. In the present one-main-hand model, an existing NanoAC315 fallback
+branch therefore does not prove an original reachable gameplay contribution
+for those five weapon contracts. Practical support remains unresolved. No315
+application to direct or periodic Hit nanos follows; the existing nano-combat
+buff ledger leaves those paths unproved.
+
+Applying the current strict unconditional scalar helper as a diagnostic would
+flag107 currently admitted definitions:83 conditional records plus24 missing
+list consumers. This is not a recommendation to change admission or erase
+conditions. Current `server/equipment.go:ownedItem.equipmentBonus` accumulates
+matching53012/53045 values without evaluating function requirements, so the
+83 conditional contracts require actual lifecycle/condition semantics before
+their bonuses can be called faithful.
+
+Conditional examples:
+
+-121582 Improved Tripler: Sense20>150 before stat103+15.
+-122828 Chesterfield Dining Chair: Breed4>3 before Psychic21+5.
+-125100 Blade of Mourning: Psychic21>450 before DodgeRanged154+2.
+-157854 Edge of the Tarasque: Level54>99 before MeleeInitiative118+40.
+
+The six records with non-scalar OnWear companions divide into four known
+native HeadText presentation contracts and two unresolved53162 contracts:
+
+-154052 Childhood Memory,156599 A Leet Doll,202725/204396 Eleet Doll carry53057.
+ Example154052 has string `Hug me!`, integer2. Retained native handler
+ `100c14e0` is maintained as
+ `client/game/kkr.dll/lifted-0057.c:sub_360C14E0`; it sends a text notification.
+ Their presence is not evidence of an unknown scalar effect.
+-204706 Temporal Chalice and206016 Unhallowed Chalice each carry53162 pairs
+ [145,3] and[146,3]. The existing retained handler classification resolves
+ this client body through return-only1010ba00, maintained
+ `lifted-0057.c:sub_360C2AA0`. A client no-op does not establish a server no-op.
+
+All OnWear stat IDs and occurrence counts, including supported ones, are in
+`summary.json:onwear_stat_counts`. No stat or function was dropped to make a
+whole record appear supported.
+
+## Every section and non-OnWear event
+
+| Original section | Occurrences |
+| --- | ---: |
+|14/19 entries|1,569|
+|4/4 entries|7,296|
+|6/27 stat dictionaries|7,296|
+|20/5 entries|7,232|
+|22/36 action criteria|5,820|
+|2/10 functions|6,968|
+|2/14 functions|1,612|
+|2/5 functions|437|
+|2/0 functions|162|
+
+These sections are all preserved. Unlike ordinary stat gear, weapon dictionary
+sections and event10 cannot simply be assumed extraneous: all five solar
+starter guns have event10 descriptors. Rejecting every non-OnWear function
+would reject those original starters.
+
+Event10 contains15,934 functions:53065x5,240,53075x3,827,53076x6,867. Every one
+has headers[0,4], argument header9, target1, one tick, zero interval and exactly
+16 raw argument bytes. Existing retained native analysis in
+`docs/combat-client-effect-handlers.md` identifies handler100c1620 (selector0),
+100c18f0 (selector1),100c19b0 (selector2), maintained in `lifted-0057.c`.
+The shared WeaponItem operation100ae2e0 (`lifted-0051.c:sub_360AE2E0`) stores
+four-word descriptors: selectors1/2 replace fields+0x1d0/+0x1cc; selector0
+delegates to1009f2a0 (`lifted-0048.c:sub_3609F2A0`). Those storage facts do not
+establish every later combat consumer or make them harmless cosmetics.
+
+Event5 has621 functions53089 and5 functions53002 across437 records.53089 has
+two integer arguments and targets2,3 or14. It has real conditional variants,
+not just an unconditional opaque callback. The existing retained local-dispatch
+table rejects53089 before its ordinary client execution path; that supplies
+no authoritative server behavior. No proc roll/trigger policy is invented here.
+
+Concrete53002 event5 effects expose gameplay gaps independently of stat lists:
+
+-152026 Neleb's Notum Battlerod: [214,3,3,0] target2 and[214,-3,-3,0] target3.
+-153981 Deimos' Bio-Enhanced Feedback Rifle: [27,5,11,0] target2.
+-206047 Parasitic Hecataleech: [27,2,2,0] target2.
+-206048 Augmented Deimos' Bio-Enhanced Feedback Rifle: [27,8,17,0] target2.
+
+All have no function requirements, one tick, interval0 and headers[0,4]/9.
+These are authored resource effects. The original event trigger, probability,
+ordering, target assignment and atomic resource handling are separate unknowns.
+
+Event0 contains53089x220,53057x84,53044x1,53064x10,53130x10 and53092x1.
+The10 paired spawn/delete contracts belong to upgradeable solar engineer
+pistols. Independent Use policy remains unresolved; this audit neither rejects
+an otherwise complete wear contract because it has Use nor silently declares
+those Use effects implemented.
+
+## Action8 and other actions
+
+There are5,815 action8 entries,5 action6 entries and11 action3 entries. Exact
+postfix requirement expressions are retained. Current weapon equip uses
+action8 through `requirementsMet`; missing action8 succeeds in that evaluator.
+
+Five currently admitted definitions have action8 criteria outside the present
+shared evaluator:164638 Andrew's Uber Test Weapon and227454/227455 Fuzzys Poke
+Technique variants use215 greater-than;206082/206083 Bent Incan Blood Tainter
+use stat10 equality. Their other skill predicates must not be accepted as a
+partial substitute for these unknown operands. No boolean underflow was found
+in the audited action8 expressions.
+
+Other action families remain separate:156599/202725/204396 dolls and164106/
+164107 Blessed Knife of Truth contain action6; ten solar engineer pistol
+variants and205736 Briefcase of Holding contain action3. In particular, the
+knife action6 expressions include a trailing AND with only one operand; this
+does not license changing weapon action selection to6. Full original data,
+native gate evidence and any specialized behavior must be reconciled first.
+
+## All eight starters
+
+Every starter is present, QL1 and admitted by the current predicate. Exact
+complete records and all functions/actions are in `starters.json`.
+
+| ID | Name | Profession action8 | Extra functions |
+| --- | --- | --- | --- |
+|121564|Baseballbat|60=9|None|
+|121565|Oak Bo|60=2|None|
+|121566|Meta Shield|60=12|OnWear53045:90+10,92+10,91+10|
+|121567|Solar-Powered Pistol|None|Event10:53065,53076,53075|
+|121568|Solar-Powered Rifle|60=5|Event10:53065,53076,53075|
+|121569|Solar-Powered Assault Rifle|60=1|Event10:53065,53076,53075|
+|121570|Solar Trader Shotgun|60=7|Event10:53075,53065,53076|
+|121571|Solar Powered Submachinegun|60=4|Event10:53065,53076,53075|
+
+Solar descriptor bytes are retained verbatim, including nonzero words and
+negative signed bit patterns; they are not replaced by zero placeholders.
+Meta Shield's three modifiers meet the exact current shared scalar helper.
+Starter admission does not establish the correct character-creation loadout.
+
+## Narrow remaining questions
+
+1. How should the shared list include the existing315 NanoAC fallback consumer,
+ and how should missing gear51 timing and277 defense semantics be established?
+ What are their OE, signed-amount and recovery contracts?
+2. When are the83 conditional OnWear predicates evaluated and invalidated?
+ What is the exact removal/re-equip/restore behavior when a condition changes?
+3. What authoritative gameplay does53162 encode, if any? Native return-only
+ behavior is not enough to close this question.
+4. What triggers event5, how are53089 target/chance arguments interpreted, and
+ how do53002 resource effects compose with hits, death and persistence?
+5. Which event10 descriptor consumers are already reproduced, and which full
+ weapon dictionary/descriptor shapes require future support? Preserve the
+ known starter descriptors while researching this boundary.
+6. Are stat10/215 action8 requirements implementable from known character
+ state, and what do their exact original getter modes mean?
+7. What independent Use/upgrade behavior should be supported? It remains
+ separate from automatic wear and attack companions.
+
+No admission rule follows solely from this census. `representatives.json`
+contains the concrete examples above and the reversed-range rejection for
+focused original-source review without reopening any native binary session.
diff --git a/docs/research-notes/weapon-contract-research/native-descriptors/findings.md b/docs/research-notes/weapon-contract-research/native-descriptors/findings.md
@@ -0,0 +1,174 @@
+# Weapon event10 descriptor consumers
+
+The retained and maintained source now establishes concrete effect-resource,
+color, hit-location and time-to-impact consumers. These descriptors have a
+demonstrated client presentation role beyond simple storage. The inspected
+descriptor branches do not compute damage or roll53089 chances. This does not
+establish that every resource-selected implementation is presentation-only, or
+that the historical authoritative server had no corresponding behavior.
+
+## Scope, provenance and complete boundaries
+
+No binary, native analysis session or new binary export was opened. No target
+was executed. `tmp_sources.py` copies full existing maintained C declarations
+through the next declaration for25 relevant functions in7 maintained files.
+`sources.json` records original source paths/SHA256, start/end source lines,
+excerpt hashes, all direct calls and each remaining indirect call site. Lifted
+overlapping entries and shared tails are preserved; these are full maintained
+C function boundaries, not newly recovered original function boundaries.
+
+The existing retained Briefcase records independently supply original names
+and complete callback pseudocode. `retained-selected.json` contains exactly
+the following five already retained records, without any new analysis:
+
+-53076 handler: `ev_05bf06a665827962c26f108fa799349aaf7eba6a238d6e465caeda01634f795c`
+ and `ev_44a4cf949e5c94c62b8bf774943204fe754e9a909230c53033f9ac8df5e8f382`.
+-Descriptor setter100ae2e0: `ev_24cd7f0ce37956f89a348924d06acd7322c6e9f5c3838960b9bdf3b7e1426e8c`.
+-Hit callback100ac610: `ev_378ef3f29d5e4663f035a66ec5884efe76373b3c89c9049f74e9731a0fcc460d`.
+-Outer callback100ac450: `ev_b6ed278dde5c07711651c66b6c4ca02d63adcd7a68410df7c74869483b95672c`.
+
+The retained original subject identifies kkr.dll SHA256
+`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+That is retained identity metadata, not a new binary hash calculation. Maintained
+addresses360... correspond to original100..., and361... to original101....
+
+## Producer and storage mapping
+
+All three original weapon event10 functions carry16 raw bytes, decoded as four
+words, target1, one tick, interval0, headers[0,4] and argument header9.
+Maintained `lifted-0057.c:sub_360C1620`, `sub_360C18F0`, `sub_360C19B0`
+call the four-word item operation with selectors0/1/2, respectively.
+
+| Function | Selector | WeaponItem storage |
+| --- | ---: | --- |
+|53065|0|Base Item+0x190 through1009f2a0|
+|53075|1|WeaponItem+0x1d0 through100ae2e0|
+|53076|2|WeaponItem+0x1cc through100ae2e0|
+
+`sub_360AE2E0` in `lifted-0051.c` replaces allocated16-byte descriptors for1/2,
+and forwards other selectors to `sub_3609F2A0` in `lifted-0048.c`. The base
+operation stores selector0 at+0x190 and selector1 at+0x194; the WeaponItem
+override catches selector1 first, so its event10 selector1 goes to+0x1d0.
+This distinction prevents conflating the base+0x194 branch with WeaponItem53075.
+
+## Selector0: base Item+0x190
+
+Complete `lifted-0048.c:sub_3609F1C0` reads+0x190 at instructions3609F1DC,
+3609F207 and3609F21D. In its ordinary branch it:
+
+1. Obtains the same manager through100f7b00 and sets manager+0x54=0x20.
+2. Passes descriptor word1 (+4), the item's dynel at+0x8c and zero to100f81e0.
+3. If descriptor word3 (+12) is nonzero, passes the returned effect handle and
+ word3 to100fb800, the SetColor method identified by retained callback usage.
+
+The base+0x194 branch uses the same resource/color pattern for a different
+numeric callback mode. Word0 and word2 are not read in this complete consumer.
+This is a bounded statement about this body, not proof that no alias elsewhere
+can read them.
+
+`sub_360F81E0` in `lifted-0073.c` looks up the resource, applies an effect-category
+gate and constructs an object through100f9a40 before registering it through
+100f7f30. The entire100f9a40 resource-type factory and every selected subclass
+were not expanded here; this leaves a precise indirect/type boundary. The
+resource-and-color presentation interpretation is corroborated by its shared
+manager and the independently named CreateEffect2/SetColor paths below.
+
+## Selector1: WeaponItem+0x1d0
+
+Complete `lifted-0051.c:sub_360AC450`, corroborated by retained original
+`FUN_100ac450`, consumes the descriptor as follows:
+
+| Word | Concrete consumer |
+| --- | --- |
+|0 (+0)|At360AC50E..523, use nonzero word0 or fallback3000 as an argument to `_EffectHandler_t::NewHitLocation`100fbf60. No unit/speed interpretation is invented.|
+|1 (+4)|At360AC583..590, pass word1 and the hit-location handle to `_EffectHandler_t::CreateEffect2`100f8580; category field is set to8.|
+|2 (+8)|No read in the complete inspected callback.|
+|3 (+12)|At360AC595..5A9, apply nonzero word3 through `_EffectHandler_t::SetColor`100fb800.|
+
+The callback invokes `_EffectHandler_t::GetTimeToImpact`100fb920 for the created
+effect and forwards that returned float, the hit-location handle, target and
+weapon-type value to100ac610 when a queued result is positive. Otherwise it
+pops a queued result through100ab500. The value is an actual timing/display
+input, so calling the descriptor inert padding would also be incorrect.
+
+Following the concrete helpers:
+
+-100fbf60 (`lifted-0074.c`) forwards to10132610 at maintained36132610.
+ This allocates a0xb8 object, constructs it through36131980 and registers it
+ in the manager's handle map. The constructor preserves source/target identity,
+ the supplied numeric parameter, two position/transform objects and coordinates.
+ This strengthens the hit-location interpretation; no authoritative damage
+ computation appears in these complete bodies.
+-100f8580 (`lifted-0073.c`) performs resource lookup/category filtering,
+ calls the resource-type factory100faed0 and registers the created object
+ through100f7f30. The full factory body is preserved, but every resource-selected
+ class constructor/later virtual method is not resolved by this bounded pass.
+-100fb800 looks up the created handle and calls object vtable+0x28 with word3.
+ The method is named SetColor in retained original100ac450/100ac610 pseudocode.
+-100fb920 looks up the handle and calls object vtable+0x40, returning a float;
+ the retained original names it GetTimeToImpact. A missing handle returns a
+ stored float constant. The exact subclass callbacks and constant value were
+ not re-established in this pass.
+
+## Selector2: WeaponItem+0x1cc
+
+The complete `lifted-0051.c:sub_360AC610` begins with the exact path described
+by the retained original hit callback:
+
+-Read+0x1cc at360AC61B; if absent, skip its descriptor-effect branch.
+-Set manager category+0x54=2.
+-Read word1 at360AC636/63C, pass it and the supplied hit-location handle into
+ CreateEffect2 at360AC643.
+-Read word3 at360AC648/64E and apply nonzero color through100fb800 at360AC659.
+
+Words0/2 are not read by the complete inspected100ac610. There is no descriptor
+field-based damage arithmetic, chance roll or53089 dispatch in that branch.
+The already retained Briefcase example explicitly uses effect2710 and an
+authored color through this path.
+
+## Separate received-result consumption
+
+The whole100ac610 callback is not solely an effect constructor. After the
+descriptor branch, it resolves actor/item types, drives animation/feedback,
+and calls100ab5a0 with actor/target context. Complete maintained functions
+100ab500/540/560/580/5a0 are retained from `lifted-0050.c`:
+
+-100ab580 tests unread result-ring indices.
+-100ab540 peeks the current signed result;100ab560 reads its companion value.
+-100ab500 pops the current result and advances the ring.
+-100ab5a0 drains the previously received result pairs and performs their
+ established client HP/feedback handling.
+
+These complete bodies corroborate the existing bounded callback analysis in
+`docs/research-notes/heal-timing-followup/publish/README.md` and `local/weapon-impact-research/`.
+The descriptor's effect-resource/color fields are not used to manufacture the
+received result value. Conversely, this callback's result application must not
+be silently dropped merely because its first branch is visual. Original server
+hit resolution, packet timing and persistence do not follow from client display
+or queue consumption.
+
+## Answered and still bounded
+
+Answered: the three descriptors have concrete native presentation consumers;
+selector1 contributes NewHitLocation input, effect resource, color and
+GetTimeToImpact; selector2 contributes a hit effect resource/color; selector0
+contributes a base-item effect resource/color. This is stronger evidence than
+storage alone. It supports retaining full native weapon initialization for
+presentation and does not supply a server damage/proc formula.
+
+Still open: complete semantics/units of selector1 word0, descriptor words not
+read in these selected bodies, every resource-selected effect subclass and
+virtual callback, aliases/callers outside the bounded functions, and historical
+authoritative-server counterparts. No whole-catalog presentation-only theorem,
+new admission gate or claim that arbitrary functions sharing these IDs are safe
+is established. Independent Use policy remains separate.
+
+The parent scalar qualification is recorded in the sibling weapon ledger:
+stat315 already has a NanoAC fallback consumer in `server/combat.go:weaponDamage`.
+Its five records are shared-list omissions, while gear51 timing and277 defense
+remain actual missing-consumer questions in the parent's bounded review. The
+parent additionally found no original main-hand weapon with DamageType436=168;
+all five315-modifying records author Energy92. Thus the existing315 branch does
+not verify an original reachable gameplay contribution for those five contracts
+in the current one-main-hand model. Their practical consumer contract remains
+open, and no315 effect on direct/periodic Hit nanos is inferred.
diff --git a/docs/research-notes/weapon-impact-research/common-dispatch.md b/docs/research-notes/weapon-impact-research/common-dispatch.md
@@ -0,0 +1,118 @@
+# Common N3 message scheduling follow-up
+
+This pass answers the separate common-base scheduling question left after the
+weapon ring investigation. It changes no production source, game server,
+browser, or database. Both owned REA sessions were exported and closed.
+
+## Targets and retained evidence
+
+- `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
+ `a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
+- Its original shared dependency `anarchy-vanilla-14.9.1/llr.dll`, SHA-256
+ `ebb09047f6ead192388f7ddfb4795da5013a60f7c2d1c3933ec02eef58a10132`.
+- Original addresses below use base `10000000`; generated C uses `36000000`.
+- `llr-common-dispatch-evidence.json`: 12 complete REA records, 100260 bytes.
+- `kkr-common-dispatch-evidence.json`: 157 complete records, 1864048 bytes,
+ including 148 records imported from the earlier matching combat snapshot.
+- Matching new snapshots are retained beside each bundle. No binary mutation
+ or target execution was performed. Ghidra 12.1.2 output is pseudocode, not
+ recovered original source. Failed procedure lookups remain explicit in the
+ complete bundle; they are not negative behavior evidence.
+
+## Common wire base: no execution clock
+
+`llr!n3InfoItemRemote_t::Construct` (`100240b0`) reads the class key, allocates
+that registered class, reads destination Identity at object +4, reads its
+pass-on flag at +0xc, then invokes virtual ReadSubClass at +0x18. The writer
+`10024450` emits that same sequence: key, identity, pass-on flag, subclass.
+There is no common execution timestamp, attack sequence, impact deadline,
+absolute-health mode, or pending-weapon fence in this serialization. The
+pass-on flag is used by `ToBePassedOn` (`10024400`) to decide forwarding to
+observers after activation; it is not an activation-order control.
+
+Evidence: `ev_71d95ed959577d163199ad0cc82ab666b854abb97935419ec043aab29eb5bc65`,
+`ev_752ad1d3c73fe5bbdd1d5e3cd46b4e5c3459cbde3f20dc60ba36b9a844dc482c`.
+The flag is passed to BinaryStream's character/bool overload; this pass does
+not independently re-establish that overload's wire width. The existing
+server's proven 29-byte native N3 framing is unchanged.
+
+## FIFO activation precedes the frame's root update
+
+`AddNetWorkMessage` (`1001bf40`, continuation `1001bfb0`) constructs each item
+and calls `EnqueueSelfMessageFromNet` (`1001c010`), appending it to the network
+FIFO at engine +0x4c. `EnqueueSelfMessage` (`1001bff0`) uses FIFO +0x48.
+`RunEngine` (`1001bea0`) calls `DoExternalInput` before the root's virtual
+update (+0x24).
+
+`DoExternalInput` (`1001c380`) appends the network FIFO to the ordinary FIFO,
+transfers ready/retry items, then dequeues each item. It calls item virtual
++4 (PollStatus), and for ready state 1 immediately calls virtual +8 (Activate).
+There is no intervening weapon-animation update between those calls. After
+activation it invokes engine ContinueInputProcessingAfter, then forwarding
+or deletion. Nonready items are moved to retry FIFO +0x50. `TransferOrTimeOutIIR`
+(`1001c2b0`) retries those on later engine updates. Its timeout helper counts
+unsuccessful polls, rather than reading a transmitted execution time.
+
+Evidence: `ev_71d95ed959577d163199ad0cc82ab666b854abb97935419ec043aab29eb5bc65`,
+`ev_4f0c2a46a39e63df38dd309b3d93d4745ab79db6756c78a7725fc64f3f3d7100`,
+`ev_1deecc7f8ef97fd3c00ac64a290c505c3b8ad8decbd41d3c5f1a177f0c57f6a0`,
+`ev_752ad1d3c73fe5bbdd1d5e3cd46b4e5c3459cbde3f20dc60ba36b9a844dc482c`.
+
+## The concrete combat messages are immediately ready
+
+The AttackInfo constructor `kkr!100aeba0` installs vtable `1017496c`.
+HealthDamage constructor `100b0960` installs `10174b30`. Both tables have
+`1015f9d0` at slot +4. This exact instruction is an import jump through
+`1016ffcc` to `LLR.DLL::n3InfoItem_t::PollStatus`; the original llr function
+`100136f0` unconditionally returns ready state 1. AttackInfo's +8 activation
+is `100aecb0`; HealthDamage's is `100b0a50`, agreeing with the existing
+protocol evidence. Neither class overrides PollStatus to await an attack,
+animation, queue drain, timestamp, or another health message.
+
+Evidence: constructors
+`ev_947e072ec5b8d078299cfb2ab2a632e3df5060ae745eac9e8b824dafd0424e11`,
+`ev_9d1ad1d7a5f16de977af1d16bf186dff405118d253c855c429928e33f2081911`;
+complete table bytes
+`ev_96997c33e101006e158f358d38aa415c8a7b286c7defe71bbd068a831b267f5b`,
+`ev_5c3fdccb98623133992aeebf3467e212f3c038f8e751e3af25ef31ceef6bdc4b`;
+import instruction/symbol
+`ev_d6c4aefd64c7a45281910a0d1c807621bc3d624eeeffe1a26fa7d33abfc22cf9`,
+`ev_096d5ae3e5bab273da0b9220f8f91b3d0c9223198c1b3a37cfa7d9118b90c26f`;
+base PollStatus
+`ev_71d95ed959577d163199ad0cc82ab666b854abb97935419ec043aab29eb5bc65`.
+
+## The Anarchy engine's input throttle is unrelated to weapon impacts
+
+`n3EngineClientAnarchy_t` constructor `1001ecc0` installs vtable `10170760`.
+Its engine slots +0x44/+0x48/+0x4c point to StartInputProcessing `10029f80`,
+ContinueInputProcessingAfter `1002a010`, and StopInputProcessing `1002a0d0`.
+The overrides count processed messages and throttle bulk full-character and
+full-playfield updates under their frame/counter conditions. The continuation
+checks RTTI for those two snapshot classes. It does not inspect weapon holders,
+HealthDamage, AttackInfo, attack animations, native result indices, or a
+transmitted time. This is not a health-correction impact barrier.
+
+Evidence: constructor
+`ev_9d1ad1d7a5f16de977af1d16bf186dff405118d253c855c429928e33f2081911`;
+engine table `ev_82412a73054a6d9e952550acb853e1b228b7f215d616b6af2721ab3919f4aa88`;
+overrides `ev_5addd8df010f038ae3b1896f5af3e741193b62903616ee3abae21bc56cc83b12`.
+
+## Conclusion and scope
+
+The common N3 base and the selected concrete dispatch path provide no missing
+clock or native barrier that would make an absolute heal wait for previously
+queued weapon outcomes. Sending both messages in one transport batch does
+not add such a barrier: eligible items still activate in FIFO order during
+input processing before the later root update. Packet order can order the
+AttackInfo enqueue and health assignment, but cannot order that assignment
+after an arbitrary future animation drain.
+
+This closes that concrete scheduling lead. It does not prove that no distinct
+healing message exists anywhere in the client; it also does not reconstruct
+the original server's damage-resolution time or packet ordering. The outer
+transport/network headers and all unrelated subclasses were not exhaustively
+traced here. No correlated original-server combat/heal capture was available.
+The existing First Aid/self-heal delivery TODO must remain open. There is no
+new evidence justifying synthetic zero results, StopFight, deferring healing
+until incoming combat stops, changing authored Hit53002 into a modifier, or
+changing native WASM behavior.
diff --git a/docs/research-notes/weapon-nano-rollover/README.md b/docs/research-notes/weapon-nano-rollover/README.md
@@ -0,0 +1,71 @@
+# LIZARD resource rollover: verified correction
+
+Selected P0, now closed: stale right-hand correction followed by same-page LIZARD
+recovery. Controlled level100 fixture, not earned progression. Completion is
+stable native/server nano681 ->672 ->681, Psychic215 ->200 ->215, exact IDs1/2,
+13 loaded rounds plus the separate100 stack, page reload and cold recovery.
+
+The setter trace in ../stale-inventory-move/20261104-012227/6/final/trace.json
+attributes the rollover to original resource calculator36075910. It writes672
+after server-stat application36075db0 wrote681 into the same stat array. The
+array pointer does not change. Earlier calculator trace011058/6 identifies
+local refresh360714a0 as the caller and NanoPool54 as its input. Visible Skills
+later shows Psychic215/NanoPool57. Console callbacks and after-frame snapshots
+can arrive in different order; use setter-to-setter ordering for this claim.
+
+stat-init-evidence.json identifies setter1006e030 and refresh100714a0 in original
+KKR SHA256a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0.
+dependency-evidence.json establishes that modifier insertion10074730 marks
+Stamina/Psychic changes with flag0x80, while direct BodyDev/NanoPool changes mark
+0x40. Getter10075ca0 includes ability modifiers through10073fa0/10074a30; there
+is no evidence here for excluding equipment ability trickle from server maxima.
+
+Temporary RESOURCE logs are diagnostic only and must be removed, followed by a
+clean matching WASM publication, before committing a product change. The strict
+browser assertions remain in place. Next bounded check traces Psychic modifier
+insertion against the actual221 writes to distinguish late wear application
+from a calculation error. No guessed delay or packet reorder is justified.
+
+Bounded web queries this turn: '"Vektor" "psychic" "nano pool" anarchy' and
+'site:anarchy-online.com "Nano Pool" "Psychic" trickle'. Results were generic
+trickle-down guides, with no specific14.9.1 sequencing evidence. No claim above
+relies on those results. Do not repeat without a new lead.
+
+Psychic-order trace013407/6 confirms modifier insertion amount15 occurs AFTER
+the calculator's672 write on re-wear (events226/227). At bootstrap the modifier
+also follows the two672 calculations, but the later final server replay restores
+681. The small client correction changes the existing Stamina/Psychic invalidation
+from regeneration-only0x80 to resources-plus-regeneration0xc0 at guest36074822.
+Original OnWear10090640 then recalculates using the applied ability bonus. This
+is a deliberate dependency fix; the original instruction requested only0x80.
+It does not change the HP/nano formula or add a delayed server correction.
+Validation pending the rebuilt bundle and the strict unchanged regression.
+
+The regeneration-plus-resource flag experiment FAILED the unchanged native
+regression at013859/6 (25.78s). It was discarded. Do not cite it as a fix.
+modifier-route-evidence.json resolves virtual+0x20 to100030b0, which simply ORs
+flags at attributes+0x38 (owner+0x11c). Modifier callback100bd600 reaches74730
+before publishing the modified stat. Why the new dirty bit is not sufficient
+has not been separately attributed. The next candidate calls existing75910
+immediately after storing a Stamina/Psychic modifier, keeping the original0x80
+regeneration invalidation and all formulas intact. Native validation is pending.
+
+
+## Verified milestone
+
+The direct existing-calculator call passes the unchanged native regression in
+21.75s, capture20261104-014626/6. Refusal/server/native resources are
+872/672/54/872/672. Same-page re-equip yields872/681/349/872/672 and retains
+weapon1/QL75/13 rounds plus energy stack2/count100. Inspected original Skills
+shows Psychic200 ->215 and NanoPool54 ->57; Stats shows current/max nano672/681.
+Page replay verifies the same resources; cold database loading retains the exact
+items. Diagnostics are removed and the clean publication's source/file hashes
+are verified in validation.json. This is controlled-fixture evidence only.
+
+Related server/native checks pass8 roots in74.297s, including Pioneer recovery
+and loaded-weapon reclaim through native cold loading. The selected TODO is
+closed;175 others remain. No faction leveling was performed. The original
+formula and original regeneration flag remain intact; the correction calls
+calculator36075910 at the applied Stamina/Psychic modifier boundary instead of
+relying on a later dirty-bit refresh. The failed flag experiment remains
+separately identified above and in validation.json.
diff --git a/docs/research-notes/weapon-quality/README.md b/docs/research-notes/weapon-quality/README.md
@@ -0,0 +1,71 @@
+# Selected-quality early weapon milestone
+
+Production scope: reviewed Rusty OT M-10 Flechette Pistol123742/123743, QL1..11.
+One numerical interpolation path supplies player/NPC weapon consumers. Native
+FullUpdateItem selects the nearer base definition and sends numeric differences
+because original remote construction does not interpolate. Loaded rounds stay
+an owned value. No family-specific Go branch or guessed1..200 pairing was added.
+
+## Evidence
+
+- catalog-audit.md/.json, original-items.json and original-ID.bin: independently
+ reparsed original payloads, aligned sections/actions/functions, original vs
+ later Auno differences, exact hashes and rounding cases. The audit's table
+ Value column is linear before the quadratic price curve; final values are
+ explicitly listed after it. Do not use linear2832 as QL5's final price2525.
+- native-evidence.json: original numeric whitelist, own-quality assignment and
+ WeaponItem defaults. Original module hash is in the evidence subject.
+- remote-native-evidence.json: original100b38b0 local-owner-only interpolation
+ and100b2830 base-template/stat override application.
+- next-quality-research.md: bounded leads and version/confidence limits for
+ later family tiers and quality selection. Not production admission.
+
+## Automated validation
+
+- focused-final-fixed.json: all affected equipment, weapons, ammo, shops,
+ quality admission and NPC level selection. Includes both stored anchors at
+ QL1,2,5,6,10,11 and controlled corpse->pickup->wear->sale/cold recovery.
+- race-final.json and vet-final.log: final race/static checks.
+- full-final.json: final full server/gamedata suite. verification.json is only
+ written by tmp_write_verification.py once every package has passed.
+- final-endpoint-negative.json: temporary overlay restores endpoint-only combat;
+ normal/critical/OE regressions fail. remote-regression-red.json restores only
+ the old weapon packet; the remote value regression fails. Neither overlay
+ mutates the checkout. Earlier logs include the corrected test-padding mistake
+ and interrupted broad runs; they are not final verification.
+
+## Native WASM validation
+
+Dedicated headed Chromium profiles used hardware-accelerated OpenGL. All sessions
+closed in finally blocks. Every fixture was guarded against modifying
+existing non-test characters. created-players.json and fixture-items.json identify only QA rows.
+
+- ql5-details/rejected, ql6-details/rejected-fling: native strict requirements;
+ Pistol23 is below24 atQL5, Fling17 is below18 atQL6; rejection retains identity.
+- ql5-native-reload and cold-ql5-loaded: same instance, native numeric stats,
+ 20 loaded rounds and80 source bullets after a cold server/client restart.
+- before-packet-fix-* compared with fixed-cold-*: independent observer exposes
+ raw high-endpoint numbers; final owner/observer both resolve QL6 to max16,
+ crit14, MultiRanged39, value2640, retaining19 rounds after one ordinary shot.
+- fixed-ql6-removed / fixed-observer-removed: owner retains detached dynel;
+ observer retires it. Re-equip recreates it without changing the owned identity.
+- fixed-ql6-loaded: reload19->20 and source80->79.
+- fixed-ql5-equipped / fixed-observer-ql5-equipped: same stored high anchor,
+ nearer low template, max15, crit13, MultiRanged36, value2525 and20 rounds.
+- native-combat-verification.json: both views received normal3 and Fling10;
+ only normal consumed a round20->19. This was before the packet-only fix;
+ final automated normal/critical/Fling/OE cases cover the final server code.
+ Native fixtures do not establish historical loot or vendor membership.
+- native-verification.json: assertions, GPU, errors and cleanup. Generic404
+ resource messages are retained; no page exceptions or adapter aborts occurred.
+- cleanup.json: removed only two owned players/items and cleared their one NPC
+ contribution reference. Every unrelated stopped-world row stayed unchanged;
+ foreign keys/integrity passed. One default-port LAN HTTPS preview remains.
+
+Run tmp_verify_native.py, tmp_verify_combat.py, tmp_finish_native_report.py and
+then tmp_write_verification.py to recheck retained assertions. tmp_native.mjs is
+an interactive test driver: its initial non-cold run provisions disposable
+fixtures; do not reuse it as an ordinary play session. Midpoint/lower-quality
+scripts assert exact ownership, placement and loaded rounds before control edits.
+Manual cursor-timing attempts are preserved separately under attempts/ where
+needed; they are not counted as successful quality changes.
diff --git a/docs/research-notes/weapon-quality/catalog-audit.md b/docs/research-notes/weapon-quality/catalog-audit.md
@@ -0,0 +1,122 @@
+# Rusty OT M-10 Flechette Pistol: independent catalog audit
+
+Read-only audit of selected original 14.9.1 resource payloads. No production
+files, database rows, running servers, browser tabs or native analysis sessions
+were changed. Reproduce with `python3 local/weapon-quality/tmp_catalog_audit.py`.
+
+## Evidence and pairing scope
+
+`original-items.json` reparses records1000020/123742..123747 directly through
+`tools/data/ao_database.py` and `tools/data/extract_items.py`. Every field equals
+the retained `local/item-quality-generation/weapon-family-candidates.json`.
+All payloads are fully decoded to their final byte; raw payloads are retained
+as `original-ID.bin`. `catalog-audit.json` records payload/index hashes, file
+offsets, all ordered structural/value differences, complete effects and expected
+Rusty interpolations.
+
+The retained current Auno response
+`local/item-quality-generation/auno-123742-ql5-current.html` explicitly says QL5
+is interpolated between123742/QL1 and123743/QL11. This independently establishes
+a published pairing for these identities; the original payloads establish their
+14.9.1 values and exactly aligned layouts. This is stronger than neighboring IDs
+or matching names, but is not an original historical server pair-table capture.
+The retained patch13.9.1 Auno selector ignores intermediateQL; it is not proof
+of historical interpolation output.
+
+No independent pairing proof was added for optional tiers123744/123745 or
+123746/123747. Their complete layouts and value differences are audited for
+future use. Do not admit them solely because they are adjacent or similarly
+named.
+
+## Original endpoint contract,123742/123743
+
+Same header `[51018,7,15,23]`, all25 stat IDs in identical order, same name,
+description and text header. Only numerical top-level differences:
+
+| Stat | QL1 | QL11 |
+| --- | ---: | ---: |
+|54 quality|1|11|
+|74 value|2321|3598|
+|134 multi ranged|26|51|
+|284 critical bonus|12|15|
+|285 maximum damage|12|20|
+
+Minimum damage286 remains3, attack294/recharge210 remain125 centiseconds,
+equip211 remains150 centiseconds, range287 remains22, bullet type420 remains2,
+capacity212 remains20, initiative440 remains119, damage type436 remains90.
+Stat436 is the damage type, not an attack rating cap; the current Auno attack
+rating cap80 is an extra later field and must not be imported into14.9.1.
+
+All5 sections and their ordering/offsets/sizes align:
+
+1.4/4: defense entry13 is stat154100%; attack entry12 is stat112100%.
+2.6/27: stats13=0 and12=0, identical.
+3.2/10: all4 presentation descriptors below, identical.
+4.20/5: entries11 and28 each contain literal4019089255, identical.
+5.22/36: exactly one action8, postfix Pistol112 `>5` / `>51`, Fling150
+ `>5` / `>28`, AND(operator4,stat0,value0). Only threshold values vary;
+ predicate stat/operator/order are identical. No Use/OnHit/OnWear action or
+ effect is hidden by this review.
+
+All event10 functions have headers[0,4], no requirements, one tick, zero interval,
+target1 and argument_header9. Each carries16 argument bytes:
+
+| Function | Four little-endian unsigned words |
+| --- | --- |
+|53065|0,2006,0,4294959104|
+|53076|0,2710,0,4294901785|
+|53075|0,2752,0,2835341458|
+|53065|0,45083,0,4294959104|
+
+The exact raw bytes and decoded words in `catalog-audit.json` are authoritative
+if any copied table word disagrees. Existing retained consumer evidence in
+`docs/research-notes/weapon-contract-research/native-descriptors/findings.md` establishes
+selectors0/1/2, client resource/color/hit-location/timing consumers and their
+precise unresolved resource-type virtual boundary. These descriptors must be
+retained and delivered to the client. They do not constitute an OnHit53089 proc
+or server damage effect. No such proc, resource drain, hostile nano, owner stat
+modifier or additional unsupported action appears in this exact family.
+
+## Expected original rounding and boundaries
+
+Use existing original `kkr.dll FUN_100eff20` integer interpolation (+0.5 then
+truncate the interpolated difference), not Python's banker's round. Predicate
+operator2 is strictly greater-than; minimum passing values are threshold+1.
+
+| QL | Linear value before native price curve | Multi ranged | Damage(min-max,crit) | Raw Pistol | Raw Fling | Minimum Pistol/Fling |
+| --- | ---: | ---: | --- | ---: | ---: | --- |
+|1|2321|26|3-12,12|5|5|6/6|
+|2|2449|29|3-13,12|10|7|11/8|
+|5|2832|36|3-15,13|23|14|24/15|
+|6|2960|39|3-16,14|28|17|29/18|
+|10|3470|49|3-19,15|46|26|47/27|
+|11|3598|51|3-20,15|51|28|52/29|
+
+QL5 chooses the low nonnumeric endpoint; midpointQL6 chooses high.
+Wire identities collapse to123742/123742 atQL1 and123743/123743 atQL11;
+intermediateQLs send123742/123743. QL0 and12 are outside this family. In
+particular, do not extrapolate RustyQL12 into the distinct Shortened tier.
+
+The listed Value column is only the rounded linear intermediate. Native
+`FUN_100f1320` then curves stat74; final values for QL1,2,5,6,10,11 are
+2321,2333,2525,2640,3354,3598. The actual WASM QL5 instance independently
+reports Value2525. Do not treat the linear intermediate2832 as a sale value.
+
+The current Auno QL5 page agrees with damage but says multi ranged25
+and Fling>=12; original records give36 and minimum15. It supplies pairing
+corroboration only, not a14.9.1 value oracle.
+
+## Admission recommendation and remaining questions
+
+The exact RustyQL1..11 pair has a complete aligned catalog contract suitable for
+admission once all Go numerical consumers select the quality-adjusted instance
+rather than silently consulting its nearer definition. In particular audit
+ordinary/Fling damage, critical/OE requirements, attack rating/initiative,
+range/timing, equip requirements, sale valuation, loaded ammunition and native
+live-item representation. The catalog itself contains no newly unsupported
+server effect that blocks this specific pair.
+
+This audit does not establish original production loot chance, mob-to-itemQL
+selection, shop stock distribution or mission rewards. Optional later tier
+pairing, and the general resource-selected descriptor subclass behavior, remain
+outside its established scope.
diff --git a/docs/shop-control-edits.md b/docs/shop-control-edits.md
@@ -56,7 +56,7 @@ wrong shop from an actual tutorial-object click and removes that numeric alias.
The original scene census and distinct native vending clicks resolve this
routing issue; the control-edit lifecycle limitations above remain separate.
-The source ledger is `local/shop-edit-research/native/README.md`, with 14
+The source ledger is `docs/research-notes/shop-edit-research/native/README.md`, with 14
complete retained original REA records, 11 checked citations and supporting
maintained-source ranges. Original KKR SHA-256 is
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
diff --git a/docs/shop-live-items.md b/docs/shop-live-items.md
@@ -42,7 +42,7 @@ slots 64..93 to native 48..77 for both typed messages. It preserves sentinel 111
subtracting 16 from that sentinel would skip native row creation.
The source ledger contains 17 checked citations in 23 complete retained records:
-`local/shop-live-purchase-research/native/README.md`. This proves the native
+`docs/research-notes/shop-live-purchase-research/native/README.md`. This proves the native
operations, not the original server's purchase message sequence. Their ordering
below is a reconstruction verified in the actual client.
@@ -104,4 +104,4 @@ SQLite snapshots, GPU renderer and cleanup. Only the owned two players and six
remaining items were removed; unrelated-row hashes and foreign-key/integrity
checks passed, retaining existing players 8/24. The single production preview
remains on its default ports. Historical stock research and source limitations
-are in `local/shop-live-purchase-research/root/stock-sources.md`.
+are in `docs/research-notes/shop-live-purchase-research/root/stock-sources.md`.
diff --git a/docs/shop-multi-sale.md b/docs/shop-multi-sale.md
@@ -97,7 +97,7 @@ drafts, or applied another policy after a skill change. An ordinary quote
refresh primitive has not been recovered. Resolve that evidence and verify
both skill increases and decreases before choosing a pricing/lifecycle change.
The retained original evidence and precise call-path limits are in
-`local/shop-multi-sale-research/native/README.md` and
+`docs/research-notes/shop-multi-sale-research/native/README.md` and
`completion-and-repricing.md`.
A bounded follow-up found a later [Trade and Repair wiki description](https://wiki.aodb.us/wiki/Trade_and_Repair)
diff --git a/docs/shops.md b/docs/shops.md
@@ -52,7 +52,7 @@ Five templates require Expansions stat 389 BitAnd operator 22 mask 1 (Notum
Wars). They remain closed while no trusted entitlement value exists. Native
formatter 0x10024a40 and interpreter 0x100056e0 establish the stat/mask semantics; this is
not evidence for granting accounts an expansion. See the retained native
-access audit at `local/shop-room-research/access/README.md`.
+access audit at `docs/research-notes/shop-room-research/access/README.md`.
The server also requires a living authenticated current session, world
readiness, no pending equipment change, and five-metre distance in the same
@@ -74,7 +74,7 @@ bytes and hashes. The Omni training-ground placement record SHA-256 is
`43ada4f7f2ee7d507b45888758ea61e1e90277656e23c1bdd4af30fe6c5ea9a5`.
Both starter templates name stock category QETS. A bounded scan of all 278644
resource payloads found category descriptors but no authoritative membership
-list. See `local/shop-research/stock/README.md`; starter-looking item names
+list. See `docs/research-notes/shop-research/stock/README.md`; starter-looking item names
are insufficient evidence for a purchase catalog.
## Supported stock and purchases
@@ -295,7 +295,7 @@ Computer Literacy retains the observed signed arithmetic, and the original
total on Accept is the reconstruction policy: a distinct historical server
debit algorithm was not recovered. The finalizer inspected in the client
contains no purchase debit. Native procedures, fields and remaining boundaries
-are recorded in `local/shop-purchase-research/native/README.md`.
+are recorded in `docs/research-notes/shop-purchase-research/native/README.md`.
## Map-reader upgrade subset
@@ -380,7 +380,7 @@ updated cost. B must also differ from the player sale owner. The original
server's precise tag was not recovered; `(111,0)` is an explicit reconstruction
choice using the native catalog namespace. Actual purchase Add/Remove still
address A=machine. The retained evidence is
-`local/shop-purchase-research/native/ui-basket.md`.
+`docs/research-notes/shop-purchase-research/native/ui-basket.md`.
TradeIIR key 0x36284f6e has six body words: version 1, action, A.type, A.id,
B.type and B.id. Player sale Add action 4 uses A=player and B=(104,inventory
@@ -451,7 +451,7 @@ pricing has no observed CL cap. The UI staging calculation 0x100a9e20 rounds
the CL addition per unit before applying count and modifier, so some boundary
values can differ from accepted-transfer pricing by a credit. Preserve this
distinction when adding purchases or investigating displayed quote rounding.
-See `local/shop-research/pricing/findings.md` and its retained REA evidence.
+See `docs/research-notes/shop-research/pricing/findings.md` and its retained REA evidence.
NoDrop flag 0x04000000 rejects a sale. Dynamic items require absent/default
TimeExist or explicit stat 8 equal to -1. Backpacks are currently rejected;
diff --git a/docs/signed-stats.md b/docs/signed-stats.md
@@ -29,7 +29,7 @@ both truncations and floor only the final line price at0.
## Original evidence
-`local/signed-stat-research/ledger.md` binds original14.9.1 KKR SHA256
+`docs/research-notes/signed-stat-research/ledger.md` binds original14.9.1 KKR SHA256
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
The fixture runs seven maintained lifted routines, with original assembly
provenance and exact constants/tables. Getter1006dfb0 reaches10075ca0/10075c60,
diff --git a/docs/stat-equipment.md b/docs/stat-equipment.md
@@ -111,7 +111,7 @@ list. The server follows this observed native selection. Historical server
enforcement remains unknown; the authored criterion is retained in game data.
Complete procedures, hashes and Evidence IDs are retained in
-`local/shop-purchase-research/native/equipment-admission.md` and
+`docs/research-notes/shop-purchase-research/native/equipment-admission.md` and
`delivery.md`, with exported REA bundles. No historical server implementation
or charged purchase packing rule is claimed from these client procedures.
diff --git a/docs/team-loot.md b/docs/team-loot.md
@@ -45,7 +45,7 @@ The independent original-code audit also recovered `/team loot` action145
and `/team loot MODE` action127 on CharacterAction `5e477770`. Set uses the
first identity's instance; query feedback uses the second. All=3, Leader=4,
Alpha=5. The source/address ledger is
-`local/team-loot-research/wire-audit.md`. Queries now answer only their owner;
+`docs/research-notes/team-loot-research/wire-audit.md`. Queries now answer only their owner;
accepted setters notify ready members. Only the current leader can set modes,
and the server whitelists3/4/5 and zero unused arguments. Failed or ignored writes
publish neither configuration nor success. These recipient choices are current
diff --git a/docs/token-boards.md b/docs/token-boards.md
@@ -90,7 +90,7 @@ ATR_t::ActivateTestArgument10010def0, so forwarding the authored effect alone
cannot display the token count. Effect53038 has separate SimpleItem/SimpleChar
presentation paths through100bd9a0. Even the terminal QL8 Use contract still
needs complete presentation and carried/worn behavior before admission.
-The evidence ledger is `local/token-board-set-followup/README.md`; newer18.8.62
+The evidence ledger is `docs/research-notes/token-board-set-followup/README.md`; newer18.8.62
database effects are not substitutes for these original contracts.
The raw-code search found stock-category references, but no verified category
diff --git a/docs/token-upload.md b/docs/token-upload.md
@@ -53,7 +53,7 @@ Original binary: `anarchy-vanilla-14.9.1/kkr.dll`, SHA-256
Original records and hashes are in
`local/mission-encounter-research/original-token-records.json`.
The exact Use/ACK/gate evidence IDs and maintained C symbols are retained in
-`local/token-upload-research/native-functions-audit.md`. Original51022 factory
+`docs/research-notes/token-upload-research/native-functions-audit.md`. Original51022 factory
constructor100ae540 invokes base constructor1009c3c0; evidence
`ev_2b2396daaa047207cbc6980a5540219c5f2dc60c7c929d237a4c39b4d202ad2a`,
with its initialization100ae610 in
diff --git a/docs/versions-and-patches.md b/docs/versions-and-patches.md
@@ -4,7 +4,11 @@ Research and target decision recorded on 2026-10-12. This document covers
historical client releases, evidence for the desired cutoff, and recovered
downloads. It does not describe the local server implementation.
-## Current recommendation (2026-10-14)
+The selected target is now **14.9.1**. Earlier installations, disc images and
+downloaded patch archives were deleted with `local/`. This document preserves
+the research and public recovery sources; its local artifact paths are historical.
+
+## Historical recommendation (2026-10-14)
The strict pre-Notum-Wars cutoff below is superseded. The priority is classic
Rubi-Ka scenery and GUI, clean fonts, stability, and classic dungeons.
diff --git a/docs/weapon-hit-chance.md b/docs/weapon-hit-chance.md
@@ -36,7 +36,7 @@ separate signed truncation, positive-sum gating, negative final values,
NPC raw skills, effective modifiers, missing actors and empty sections.
Linux and WASM results agree. Item section lookup and the mode-0 effective
provider are fixture boundaries. Assembly and source provenance are retained
-in `local/hit-miss-research/native/ledger.md` and `rating-evidence.json`.
+in `docs/research-notes/hit-miss-research/native/ledger.md` and `rating-evidence.json`.
## Provisional probability curve
diff --git a/docs/weapon-special-animation.md b/docs/weapon-special-animation.md
@@ -16,7 +16,7 @@ cast clocks.
Original14.9.1 `kkr.dll` has SHA256
`a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0`.
The retained evidence and complete exports are in
-`local/special-animation-research/native/README.md`.
+`docs/research-notes/special-animation-research/native/README.md`.
- Sender1002c090 constructs the IIR through1007d8e0, then calls
SendIIRToObservers. The original `llr.dll` chain1001a610 ->1001a300
diff --git a/docs/weapon-wear-admission.md b/docs/weapon-wear-admission.md
@@ -37,7 +37,7 @@ Tripler observations show that application and removal sample conditions
independently, can leave signed offsets, and differ between owner and observer.
Recomputing bonuses solely from current conditions would not match that
lifecycle. The evidence and unresolved authoritative-server questions remain
-in `local/weapon-contract-research/conditional-native-lifecycle.md`.
+in `docs/research-notes/weapon-contract-research/conditional-native-lifecycle.md`.
This change validates OnWear only. Independent OnHit/Use contracts and the
broader whole-item audit remain open. Solar starters retain their event10
diff --git a/tools/README.md b/tools/README.md
@@ -41,6 +41,8 @@ and the C toolchain; normal server builds need Go.
- `client/build_game.py`, `export_*.py`, `generate_*.py`, `link_game.py` and their
support files: reconstruction/provenance tools, not the normal build pipeline.
They depend on local upstream checkouts and saved analysis in `local/client/`.
+ Those inputs were discarded during workspace cleanup; reconstructing them is
+ required before using these historical tools again.
Never regenerate over edited `client/` files.
## Current checks
@@ -51,9 +53,9 @@ go test ./server
python -m unittest discover -s tools/data
```
-The data tests require the local vanilla client; one legacy comparison also
-requires `local/references/original-11.0/Gamefiles`. Those are local fixtures,
-not downloaded by the tests. Graphics tests need a working desktop display.
+The data tests require the local vanilla 14.9.1 client, which is not downloaded
+by the tests. The obsolete 11.0 comparison was removed with that installation.
+Graphics tests need a working desktop display.
Examples on Windows, after building both clients:
@@ -65,11 +67,13 @@ Examples on Windows, after building both clients:
## Local smoke fixtures
-The existing isolated Windows server is
+The historical isolated Windows server path was
`local/client/fonts/server-14.9.1/server.exe`, run from its containing directory.
The WSL wrapper starts `local/client/linux-server-probe/server` itself. Both
use separate fixture data and ports 7510/7511/8081. They are preserved diagnostic
-server builds; the normal server is `(cd server && go run .)` on the default ports.
+server builds that were discarded with `local/`; rebuild the isolated fixtures
+before using these wrappers. The normal server is `(cd server && go run .)` on
+the default ports.
Do not point these tests at the user's normal `data/players/` directory.
With the isolated Windows server running:
@@ -89,5 +93,5 @@ use the normal server and manual smoke check there unless you copy them separate
`tools/data/extract_playfields.py` and `extract_terrain.py` use the original
11.0 reference in ignored `local/references/original-11.0/Gamefiles`.
-These are provenance tools, not part of a fresh setup. Required server data is
-already included in `server/assets/`.
+That installation was discarded. These are provenance tools, not part of a
+fresh setup. Required server data is already included in `server/assets/`.
diff --git a/tools/data/test_population.py b/tools/data/test_population.py
@@ -121,16 +121,6 @@ class PopulationTests(unittest.TestCase):
self.assertEqual(sum('optional_flags' in spawn for spawn in fixed), 1685)
self.assertGreater(max(spawn['max_level'] for spawn in fixed), 255)
- def test_original_population_still_decodes(self):
- database = ao_database.Database('local/references/original-11.0/Gamefiles')
-
- populations = [extract_npc_spawns.decode_population(database.read(kind, identity))
- for kind, identity in database.records if kind == 1000014]
- database.close()
-
- self.assertEqual(len(populations), 348)
- self.assertEqual(sum(len(d['fixed_spawns']) for p in populations for d in p['districts']), 1560)
-
def test_extra_bytes_are_not_silently_accepted(self):
database = ao_database.Database('anarchy-vanilla-14.9.1')
payload = database.read(1000014, 1931) + b'\0'