npm warn Unknown env config "http-proxy". This will stop working in the next major version of npm.

> michael-wave-ori-break-the-matrix@0.8.0-rc.1 test
> node --test tests/*.test.mjs

✔ real BTM fingerprint is native custom WebXR, not a generic engine (10.975022ms)
✔ routing is deterministic, ordered, and starts with local authority (1.53888ms)
✔ loaded content remains local, finite and scoped to selected skills (14.199333ms)
✔ all seven installed skills pass metadata checks and safe paths (17.876685ms)
✔ speech is opt-in and requires a user gesture; all lines remain in order in the log (2.583504ms)
✔ device voice queues lines without overlap and honors independent volume (0.42464ms)
✔ missing APIs, unavailable local voices, thrown calls and async errors retain captions/log fallback (0.617361ms)
✔ mode changes, pause and mute cancel speech and ignore stale completion events (0.284018ms)
✔ fast repeats and retained history have fixed memory budgets (0.464751ms)
✔ a speech engine that never completes times out without blocking gameplay (0.265941ms)
✔ boss and urgent warnings reach the small alert channel independently of captions (0.4711ms)
✔ sector 1: spawn, enemies, pickups, key, relays and exit occupy reachable space (4.235063ms)
✔ sector 1: mandatory objectives are reachable without a secret wall (2.110131ms)
✔ sector 2: spawn, enemies, pickups, key, relays and exit occupy reachable space (1.90412ms)
✔ sector 2: mandatory objectives are reachable without a secret wall (1.058986ms)
✔ sector 3: spawn, enemies, pickups, key, relays and exit occupy reachable space (0.707877ms)
✔ sector 3: mandatory objectives are reachable without a secret wall (0.516979ms)
✔ raycasting is finite on cardinal axes and respects closed walls (0.384008ms)
✔ collision substeps prevent tunnelling through walls and preserve sliding (3.824625ms)
✔ doors block sight and collision until fully opening (0.365401ms)
✔ E opens faced ordinary door and golden doors require a key (1.725982ms)
✔ opening a secret counts once and does not consume key (0.466163ms)
✔ movement speed is normalized diagonally and frame deltas are bounded (3.263619ms)
✔ shots hit a visible host; liberated hosts count exactly once (1.548173ms)
✔ walls block player weapons and enemy line of sight (0.974288ms)
✔ slap is free and only works in melee range (0.691422ms)
✔ blaster respects cooldown and capacitor costs (0.689429ms)
✔ bass cone hits multiple hosts, stuns and knocks back without wall tunnelling (0.925494ms)
✔ pulse rifle emits a travelling projectile that damages a target (2.73337ms)
✔ disruptor destabilizes multiple targets and unplugger pierces (1.48611ms)
✔ charged alternate fire has a larger cost and damage (0.986396ms)
✔ all six weapons have unique names, fire rates, and energy costs (0.13939ms)
✔ captive rescue requires proximity, restores autonomy, cannot double-count (0.701528ms)
✔ enemies telegraph and damage the player (4.980677ms)
✔ ranged enemies launch readable projectiles (1.600862ms)
✔ Ori follows, auto attacks, and Q stuns with an energy cost (2.644155ms)
✔ Ori Q tags objectives without a nearby hostile (0.661096ms)
✔ resonance vision drains and then recharges (1.874786ms)
✔ R vent restores energy after a delay and respects cooldown (1.528724ms)
✔ bass drop charges from liberation, affects nearby enemies, then empties (0.873637ms)
✔ dodge has a cooldown and brief damage immunity (0.786236ms)
✔ death stops the simulation; retry restores a playable checkpoint (1.581514ms)
✔ checkpoints round trip mutations, doors, player and liberation (1.536627ms)
✔ unsupported or malformed checkpoints are rejected (0.825424ms)
✔ progression requires both relays and a key and unlocks later weapons (1.690739ms)
✔ Warden has three phases and blocks the final ending until defeated (1.33307ms)
✔ key and health pickups update the HUD model and persist progress (0.753927ms)
✔ upgrades from two Φ artifacts increase weapon damage (1.005716ms)
✔ deterministic initial simulation has matching states for matching inputs (23.682857ms)
✔ crawler phases through a thin wall into a valid landing cell (0.845264ms)
✔ browser smoke scenario passes in the same production simulation (44.094843ms)
✔ a dead player cannot replace a valid retry checkpoint (0.773526ms)
✔ Equipment settings sanitize old storage and invalid values (3.444792ms)
✔ Optional preferences survive a JSON settings round trip (0.380183ms)
✔ Cybernetic hands are cached, finite, mirrored and human-scale (40.432047ms)
✔ Index and little fingers mirror correctly around each opposing thumb (2.411665ms)
✔ Three finishes differ while sharing one atlas layout (3.27748ms)
✔ Six weapon silhouettes are distinct and bounded (11.185229ms)
✔ Model append transforms cached vertices and reports overflow explicitly (1.768846ms)
✔ Flat-color mesh UVs sample the atlas interior to avoid precision holes (1.304386ms)
✔ Raised wrist requires dwell then opens at compact meter dimensions (2.140256ms)
✔ Combat hand height leaves only the compact hardware status (7.189276ms)
✔ Brief wrist-attention loss retains hysteresis while sustained lowering closes (1.591919ms)
✔ Near-face distance and tracking loss remove interactive panels (0.8887ms)
✔ Manual pin is intentional and visibility preference overrides it (1.063263ms)
✔ Opening capture guard has a bounded transition interval (0.559563ms)
✔ Panel basis remains orthonormal for seated and standing heights (1.745461ms)
✔ Default wrist corners fit both synthetic eye frusta and retain face clearance (0.777742ms)
✔ Reduced motion suppresses ornamental interpolation (0.510079ms)
✔ Weapon follows grip translation while retaining independent ray orientation (0.190367ms)
✔ Calibrated model muzzle equals the collision-safe combat origin (4.636618ms)
✔ Grip calibration never bypasses the safe head reach limit (1.381632ms)
✔ Every weapon and preset fits the batch and preserves game snapshots (89.95077ms)
✔ Equipment capture retains suppression of fire, charge, sticks and abilities (4.341253ms)
✔ Comfort captions clear sights and an active wrist footprint (1.08148ms)
✔ Comfort placement clears the actual held-weapon aim cone (0.165789ms)
✔ Equipment tracking and preferences never enter v1 checkpoints (1.002831ms)
✔ Dead zone prevents resting-stick drift (2.462552ms)
✔ Radial stick preserves diagonals and caps full speed (0.215875ms)
✔ Controller settings sanitize old and invalid saves (0.127342ms)
✔ Analog movement keeps partial speed and legacy keyboard speed (0.142946ms)
✔ Diagonal analog movement cannot exceed full-stick speed (0.196927ms)
✔ Left and right sticks reach real movement and horizontal aiming (6.30959ms)
✔ Small movements still collide with map walls (0.175545ms)
✔ Keyboard and gamepad input coexist without extra speed (0.120973ms)
✔ RT fires a real weapon and holding continues automatic fire (0.166481ms)
✔ RT buffers a press near cooldown expiry (0.333913ms)
✔ LT charges and releases exactly one alternate shot (0.184378ms)
✔ A opens a real door and interacts only once per press (0.094332ms)
✔ A extracts through the real completion event before the next simulation tick (0.076215ms)
✔ All Xbox actions use the documented standard button layout (0.104257ms)
✔ Y, X, B, vision, weapon cycling and map reach real game actions (0.064056ms)
✔ Holding L3 sprints and D-pad down spends a full bass charge (0.106631ms)
✔ D-pad menu movement repeats; A confirm never repeats while held (0.065128ms)
✔ Pause or focus loss cancels held fire and charge until controls release (0.105368ms)
✔ Disconnect clears all held input; reconnect waits for neutral (0.096466ms)
✔ Multiple and sparse gamepads retain the active standard device (0.084478ms)
✔ Unmapped and blocked controllers fail safely without guessing buttons (0.075344ms)
✔ Optional rumble is limited, can be disabled, and resets on pause (0.528267ms)
✔ canonical GenEWrist ring contracts remain 3/6/9 (1.978452ms)
✔ GenEWrist accepts only trusted HTTPS destinations and requires confirmation (0.366633ms)
✔ FieldNavigator remains dormant until explicitly opened (0.336437ms)
✔ world exits require a two-stage state transition and can be cancelled (0.277418ms)
✔ ring selection and resets cleanly clear pending links (0.209546ms)
✔ hosted CODE BROWN is the exact original authored collision grid and mission (1.654684ms)
✔ hosted mission is validated and packed as a normal ΦWAD, with author rights (7.57012ms)
✔ one-click flow loads existing BTM game and leaves campaign untouched (9.934964ms)
✔ loads only allowlisted same-origin hosted JSON and rejects corrupt data (11.899877ms)
✔ All twelve sectors clear through tracked poses, secrets and shared boss simulation (5515.898974ms)
✔ Tracked enemy death retries a checkpoint and completes sector one (420.963143ms)
✔ Rigid world and inverse compose through nonzero yaw and translation (0.950733ms)
✔ Left/right eye separation survives the world transform (0.209636ms)
✔ Frustum culling rejects behind-camera chunks but retains crossing chunks (0.099329ms)
✔ All twelve maps generate finite batched floors, ceilings, walls and export IR (0.08602ms)
✔ Door meshes use the shared open animation and passage threshold (0.077907ms)
✔ Atlas materials have unique bounded UV slots with insets (0.056425ms)
✔ Physical wall leaning cannot enter solid geometry or move the eye through it (0.064277ms)
✔ Physical motion cannot cross a locked door but can cross an opened door (0.057076ms)
✔ Head turn and crouch change view without changing body angle or hand aim (0.083105ms)
✔ Menus freeze movement/fire and discard physical head travel on resume (0.118658ms)
✔ Tracking discontinuity rebases safely and cancels simulation input (0.102965ms)
✔ Snap turn triggers once until neutral and smooth turn stays optional (0.05288ms)
✔ Head-relative and controller-relative movement use different references (0.179801ms)
✔ Unsafe muzzle extension is clamped at walls and at maximum reach (0.045018ms)
✔ Floor and ceiling intersections stop vertical tracked shots (0.030416ms)
✔ Walls occlude tracked targets independently of the gameplay body bearing (0.054503ms)
✔ All six weapons retain costs/cooldowns and use independent tracked aim (0.043465ms)
✔ Tracked pulse projectiles hit bodies at height and terminate at the floor (0.035103ms)
✔ Charged tracked fire uses the existing damage/energy multipliers (0.025298ms)
✔ The immersive adapter updates once with post-movement muzzle coordinates (0.021783ms)
✔ Wrist pointer actions suppress primary and alternate fire together (0.048152ms)
✔ Tracked dodge follows aim without snapping the gameplay body (0.02705ms)
✔ Old XR callbacks cannot advance a new distinct session after reentry (0.023075ms)
✔ Version-one saves resume in Classic without persisting XR pose state (0.021933ms)
✔ Comfort settings sanitize invalid values and preserve smooth defaults (0.021592ms)
✔ Dynamic geometry and effects have bounded buffers and explicit overflow behavior (0.025057ms)
✔ Immersive session selects the world presenter and advances one shared frame (0.029475ms)
✔ Missing tracked right hand pauses immersive play without firing (0.037486ms)
✔ Controller removal and context loss pause or exit without stale input (0.025619ms)
✔ Failed GL compatibility disposes the partial session and allows retry (0.021222ms)
✔ Unavailable immersive entry keeps Classic usable and Arcade retry possible (0.020631ms)
✔ Deferred tracked shooting still drives Michael firing portrait feedback (0.023175ms)
✔ the campaign adds exactly six authored nightmare maps (2.228028ms)
✔ nightmare pressure, health, fire speed and damage scale rise every level (0.337068ms)
✔ new artifacts require a secret door while required rescues remain reachable (25.593917ms)
✔ Acts II and III can continue and the fourth ending is final (2.702002ms)
✔ nightmare shortcut unlocks weapons without claiming unearned artifacts (1.12748ms)
✔ new-sector saves round trip and mismatched map identifiers are rejected (4.217227ms)
✔ nightmare volleys lead actual movement while original volleys retain direct aim (2.264904ms)
✔ new enemies reposition and resist repeated weapon stuns without reducing Ori stun (1.201611ms)
✔ all twelve sectors clear using ordinary movement, weapons, abilities, doors and pickups (3364.451656ms)
✔ seated, standing and inverted/tilted grips project the whole hologram above the worn glove (228.516195ms)
✔ peripheral communications preserve the central angular lane, wrist and real hand aim (0.512812ms)
✔ original Ori mesh has a 16cm core, <25cm total envelope and bounded cached geometry (22.546174ms)
✔ Ori flight remains right, avoids walls/targets and never mutates the canonical companion (8.80447ms)
✔ PixelForge ΦWAD mission roundtrip and compatibility (9.336768ms)
✔ temporary mission uses original Game and immersive geometry and restores all 12 campaign sectors (14.202257ms)
✔ custom victory uses original objectives but cannot progress to sector 14 (4.098158ms)
✔ invalid or repeated pack never destroys campaign (1.891381ms)
✔ default immersive turning is smooth while explicit snap preference survives (1.058816ms)
✔ Quest right-stick diagonal motion turns but does not cycle weapons (1.265638ms)
✔ calibration offsets sanitize and retain independent user settings (0.225981ms)
✔ visual left hand rotation never mutates the original tracked pose or its origin (0.779716ms)
✔ Ori is moved to peripheral view without altering simulation coordinates (0.421115ms)
✔ Ori stays in a bounded right peripheral dock even when the simulation is far away (0.130797ms)
✔ Twelve sector palettes are distinct, bounded and deterministic for custom fallback (1.547563ms)
✔ Decorative fixtures attach only to open cells and avoid doors and archive signs (7.802921ms)
✔ Distance culling retains crossing chunks and rejects distant geometry (0.214062ms)
✔ All sector/preset batches are finite, bounded and preserve game snapshots (149.805297ms)
✔ Sustained event bursts remain bounded even during late-sector telegraphs (89.303094ms)
✔ Projectile trail budgets cap dense volleys without mutating simulation velocities (3.466174ms)
✔ Wrist capture blocks sticks, turning, fire, charge and every gameplay action (3.143328ms)
✔ Leaving a panel while holding controls cannot leak a shot or snap turn (6.311403ms)
✔ Captured wrist controls still permit collision-safe physical head movement (1.553181ms)
✔ Pointer testing receives current pose transforms before stick locomotion (1.248752ms)
✔ Right glove follows grip independently of the tracked aiming ray (0.895109ms)
✔ Each weapon effect stays at the same safe muzzle as the actual tracked shot (19.393375ms)
✔ Interaction focus honors relay reach, ray direction, occlusion and secret visibility (1.295083ms)
✔ New comfort sliders sanitize values and smooth-turn speed does not affect snap angle (0.995781ms)
✔ Reduced motion steadies decorations without mutating ability timers (26.821136ms)
✔ CODE BROWN geometry and all preset effects preserve custom objectives and campaign isolation (35.159535ms)
✔ Classic Survival clears the opening act with finite reserves and live boss combat (971.114061ms)
✔ synthetic immersive Survival clears the opening act with finite reserves and live boss combat (1264.271295ms)
✔ new runs use finite Survival charge; idle, relays and sector changes print no ammo (36.45065ms)
✔ reload transfers finite reserves after delay, supports partials and zero reserve (3.122867ms)
✔ energy cells fill reserves, retain capacity overflow and persist partial pickups (5.490436ms)
✔ retry and saving mid-reload conserve charge and pickup state together (5.541052ms)
✔ legacy v1 saves retain old recharge and migrate without a finite-reserve gift (7.476379ms)
✔ all energy guns dry fire at zero; the original slap remains dangerous and free (1.345678ms)
✔ dash hits one frontal target, respects armor and never strikes through walls (3.823563ms)
✔ rear/lateral targets are not frontal bashes; shield absorbs at most 18 and expires (2.04335ms)
✔ dash uses tracked aim without changing body yaw and captured controls suppress bash (24.517675ms)
✔ HUD semantic text colors meet 4.5:1 contrast on the instrument panel (1.763768ms)
✔ All six weapon UI colors are independent of gameplay weapon definitions (0.254564ms)
✔ All production interaction IDs remain unique and reachable in markup (5.694122ms)
✔ Every custom SVG icon reference resolves to an authored symbol (0.538462ms)
✔ Bundled fonts have valid TTF headers and their actual redistribution licenses (18.275946ms)
✔ Interface has no remote font, image, stylesheet or script requirement (3.670012ms)
✔ The redesigned minimap does not reveal unseen geometry or objectives (3.629801ms)
✔ Minimap rendering is presentation-only and preserves game snapshots (2.664436ms)
✔ v0.1.0 tests remain byte-for-byte unchanged (16.874475ms)
✔ v0.2 sector 1: content reachable and key obtainable before locked doors (20.828184ms)
✔ v0.2 sector 2: content reachable and key obtainable before locked doors (3.939107ms)
✔ v0.2 sector 3: content reachable and key obtainable before locked doors (5.934615ms)
✔ v0.2 sector 4: content reachable and key obtainable before locked doors (2.279316ms)
✔ v0.2 sector 5: content reachable and key obtainable before locked doors (1.793273ms)
✔ v0.2 sector 6: content reachable and key obtainable before locked doors (1.974786ms)
✔ v0.2 sector 7: content reachable and key obtainable before locked doors (1.39329ms)
✔ v0.2 sector 8: content reachable and key obtainable before locked doors (2.044352ms)
✔ v0.2 sector 9: content reachable and key obtainable before locked doors (2.433759ms)
✔ v0.2 sector 10: content reachable and key obtainable before locked doors (2.572497ms)
✔ v0.2 sector 11: content reachable and key obtainable before locked doors (2.153295ms)
✔ v0.2 sector 12: content reachable and key obtainable before locked doors (0.919866ms)
✔ Act II increases encounter count and individual enemy strength (1.0015ms)
✔ original Warden ending offers Act II while final ending cannot advance (2.632337ms)
✔ an actual v0.1.0 checkpoint migrates and retains state (8.085937ms)
✔ a click just before cooldown expiry buffers exactly one shot (1.933674ms)
✔ expired click buffers never fire later (3.430551ms)
✔ wall impacts and hit reactions are emitted without gore (1.256524ms)
✔ Ori assistance has its own visible effect and source attribution (2.487389ms)
✔ danger warnings interrupt banter and remain rate limited (6.100476ms)
✔ Michael and Ori exchange lines in deterministic order (9.815825ms)
✔ movement against a wall produces no footsteps or walking bob (2.442581ms)
✔ navigation route respects golden access gates until a key is held (2.072163ms)
✔ archive signs can be read by facing and interacting (0.907568ms)
✔ fallback keyboard codes work when browser code is absent (0.300412ms)
✔ pointer capture rejects overlapping attempts (0.445051ms)
✔ denied capture switches to fallback without pausing play (0.244959ms)
✔ a capture timeout enables an explicit retry (0.154874ms)
✔ Escape from a real lock pauses; intentional release does not (0.173011ms)
✔ all six sectors clear through traversal, combat and interactions (790.680094ms)
✔ live enemy attacks cause death, and retry permits a complete traversal (500.286158ms)
✔ render-only door rays can see behind an opening panel without changing collision (0.515651ms)
✔ Warden health phases update even while Ori holds a stun (1.069309ms)
✔ default pointer timer adapters clean up a denied request (0.492396ms)
✔ Ori stun prevents crawler phasing until the stun expires (0.920656ms)
✔ Matrix composition preserves an identity transform (2.393548ms)
✔ A screen is placed in front of the initial head pose (0.162746ms)
✔ Recenter ignores pitch and keeps the arcade screen upright (0.108584ms)
✔ Controller rays hit the panel in texture coordinates (0.095995ms)
✔ Rays behind, parallel to, or pointing away from a panel do not select (0.143626ms)
✔ Quest Touch thumbsticks map separately from Xbox navigator pads (0.133151ms)
✔ Quest triggers fire and charge; grip controls interact and Ori (0.260773ms)
✔ Quest face buttons and stick clicks expose the documented actions (0.110196ms)
✔ Generic xr-standard input keeps trigger/grip controls without guessing faces (1.388162ms)
✔ Losing a Touch controller cancels held fire until neutral (0.256857ms)
✔ Unavailable WebXR reports a fallback without requesting a session (0.153592ms)
✔ Session initialization makes GL compatible before allocating GPU objects (0.095914ms)
✔ Local-floor rejection falls back to local reference space (0.070607ms)
✔ Permission denial leaves VR inactive and permits another attempt (0.065158ms)
✔ Overlapping VR entry attempts request only one session (0.124418ms)
✔ Each XR frame advances once and renders both eye views (0.09935ms)
✔ Tracking loss and hidden headset visibility pause without simulation (0.196826ms)
✔ Recenter changes the anchored screen only on explicit request (0.095565ms)
✔ Pointed UI actions suppress a simultaneous game shot (0.062514ms)
✔ Exit and stale XR callbacks cannot restart or advance the game (0.08578ms)
ℹ tests 256
ℹ suites 0
ℹ pass 256
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 6205.413656
