aorecomp

Anarchy Online classic in the browser

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


docs/nano-cost.md (7582B)


Nano cost modifiers

Casting uses the authored raw cost407 and the caster's effective signed NanoCostModifier318. The modifier starts at100 and adds worn-item and active program contributions. Positive tank-armor penalties and negative CPU/nano reductions use the same consumer; their percentages do not multiply separately. Armor overequipping uses the existing per-item signed penalty calculation.

The expression retains the native operation order:

trunc(signedRaw407 * float32(100 + equipment318 + nano318) * float32(.01))

The products use the selected double-precision arithmetic. Replacing this with integer division or rounding changes boundaries: raw45 at100 costs44, at115 costs51, at85 costs38, and at78 costs35. The float32 modifier conversion occurs before multiplication. The inspected original getter and eligibility expression have neither a one-point minimum nor a breed reduction cap. This does not prove that the unavailable original server had no separate validation or cap.

Zero-cost casts still execute the ordinary action, effect, recharge and database transaction. A negative computed debit rejects admission; the reconstruction does not create resource points from negative costs. This is an explicit server policy, not a recovered native clamp. Raw cost metadata must still be positive under the ordinary whole-program predicate. Cost lookup follows learned-program, complete-contract and recipient validation; unknown network program IDs reject without dereferencing a missing template.

Admission persists the computed reservation once. Completion consumes it, while cancellation refunds that saved amount, even if a cost modifier changes during execution. The original action117 recomputes a refund using current modifiers; the server instead sends action108 plus its authoritative balance, preserving the existing reservation/refund policy described in nano damage. The original server's charge time and refund policy remain unverified.

Complete program contracts

The shared Skill/Modify predicate admits fourteen complete cost-modifier programs and their ordinary crystals. Nine cost-only programs each contain one unconditional selected-recipient Skill53012 effect for stat318, with one tick, zero interval and a zero third argument. They all share strain148 and use the existing NCU/replacement rules.

Program Crystal Modifier NCU
Neuron-Notum Interface29307 29404 -19 40
Notum Attunement95408 95426 -12 19
Mocham's Neural Interface-Web95409 95425 -24 49
Ease of Execution95410 95418 -7 8
Coherent Notum Web95411 95428 -15 28
Jobe Nano Libraries95413 95419 -22 47
On-The-Fly Compression95414 95420 -13 23
Run-Time Recompiler95416 95421 -9 11
Izgimmer's Obfuscated Recompiler95417 95424 -28 55

Crystal and cast admission retain every strict skill and visual-profession criterion. MP and NT cost programs replace one another within the same strain. Three complete CrunchCom programs also extend range, while Nano Cloud Supplement and Notum Overload extend range and add positive cost penalties. Their complete companions and lifecycle share range handling. Hostile cost programs, profession-changing programs and mixed periodic contracts remain unsupported as whole programs. Complete stat318 implants use the same consumer under implant admission and surgery rules. Ordinary buff admission is467 programs and465 crystals.

Evidence and verification

The complete original resource audit reparsed989 records:937 stat318 producers and52 linked uploader records. Program/equipment profiles retain all companions, conditions, selectors, framing and metadata. The deterministic fourteen-program fixture is nano-cost-nanos.json, SHA-256 48cdfb9bb1313280d2842359b3e4d88d76a4ec4693c3cb2ae601cc4d4d8a1e51. The five complete range/cost contracts and their original uploaders are also independently verified in local/nano-range-research/program-contract-ledger.json. The source index SHA-256 is 46e5dc54af9358cc9bff05f4358e86af630e497bc677f361c133c88073b84d71. Complete records, before/after predicates, hashes and limits are retained in docs/research-notes/nano-cost-research/catalog/README.md.

Original KKR eligibility100646a0/10064839, refund10066b20 and raw-cost getter 10098bd0 share retained Evidence ev_b222a29a2449ed800e75228fac8a9ad597f8c73dce740b461b7fae780389796b. The native ledger links35 records covering the defaults, additive getters, modifier removal, skill-weight boundary and full arithmetic. It retains the original KKR SHA-256 a37bc1c15053fdcc5572772309f7074c4f83baffe2faa164df40b059b7c480c0 and the precise observation/inference limits in 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 contributions, removal/expiry during a reservation, cancellation, completion, restart refunds and SQLite error/ignored-write/commit rollback with retry. Synthetic complete-template arithmetic cases verify zero and negative debits; they are not additional claims about authored programs.

Two actual GPU WASM clients verify the native stat318 values and durable reservations independently. Strength Boost reserves44 by default,35 with a Hardcore CPU Upgrade plus Ease of Execution,41 after adding the tank penalty, 48 after removing the CPU, and51 after removing the cost nano. Movement cancellation refunds exactly35 and a later tick does not repeat the cast. Selected-recipient Ease installs on the intended player. Run-Time Recompiler replaces the MP buff on both clients without stacking; a weaker program is rejected without a charge. Both replicas reproduce the modifier removal.

After a real server restart, both clients restore cost modifiers106/91 and exactly one strain148 effect per recipient. The worn tank, unequipped CPU and two belts retain their identities and slots. A subsequent Strength Boost reserves47 and completes normally. No client/worker errors were observed. Snapshots, wire data, database comparisons, GPU identity and executable assertions are retained under local/nano-cost-smoke/; tmp_verify.py records the checked facts and artifact hashes in verification.json. Owned clients were closed and the two fixture players and four remaining items removed. Every unrelated SQLite row remained unchanged through cleanup; foreign-key and integrity checks passed. The single shared preview remains available on its normal HTTPS8443 port.

The full tracked-package run passed8,172 server checks and18 game-data checks (server1368.728 seconds); assets and the data exporter have no tests. After the final admission-order guard,390 focused casting/outcome/reservation checks passed in81.080 seconds, followed by300 checks across two race repetitions in 153.656 seconds. Build and vet passed for all tracked packages. Unknown IDs0 andffffffff reject without changing points, target health or pending casts.

The broad ./... discovery also attempted ignored local research directories and reported build errors there. The retained verification report separates those discovery failures from the completed, passing tracked-package suites, and identifies the final guard's focused rerun explicitly. Logs, source hashes and results are in local/nano-cost-research/verification.json.