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.9.0-rc.1 test
> node --test tests/*.test.mjs

✔ real BTM fingerprint is native custom WebXR, not a generic engine (10.399706ms)
✔ routing is deterministic, ordered, and starts with local authority (2.112117ms)
✔ loaded content remains local, finite and scoped to selected skills (6.091525ms)
✔ all seven installed skills pass metadata checks and safe paths (7.778402ms)
✔ speech is opt-in and requires a user gesture; all lines remain in order in the log (2.810298ms)
✔ device voice queues lines without overlap and honors independent volume (0.702797ms)
✔ missing APIs, unavailable local voices, thrown calls and async errors retain captions/log fallback (0.666493ms)
✔ mode changes, pause and mute cancel speech and ignore stale completion events (0.228534ms)
✔ fast repeats and retained history have fixed memory budgets (0.63832ms)
✔ a speech engine that never completes times out without blocking gameplay (0.310918ms)
✔ boss and urgent warnings reach the small alert channel independently of captions (0.596087ms)
✔ sector 1: spawn, enemies, pickups, key, relays and exit occupy reachable space (4.915345ms)
✔ sector 1: mandatory objectives are reachable without a secret wall (2.740263ms)
✔ sector 2: spawn, enemies, pickups, key, relays and exit occupy reachable space (1.412155ms)
✔ sector 2: mandatory objectives are reachable without a secret wall (0.516648ms)
✔ sector 3: spawn, enemies, pickups, key, relays and exit occupy reachable space (0.803559ms)
✔ sector 3: mandatory objectives are reachable without a secret wall (0.592091ms)
✔ raycasting is finite on cardinal axes and respects closed walls (0.800314ms)
✔ collision substeps prevent tunnelling through walls and preserve sliding (2.529415ms)
✔ doors block sight and collision until fully opening (0.478349ms)
✔ E opens faced ordinary door and golden doors require a key (2.397917ms)
✔ opening a secret counts once and does not consume key (0.846484ms)
✔ movement speed is normalized diagonally and frame deltas are bounded (5.440535ms)
✔ shots hit a visible host; liberated hosts count exactly once (2.300882ms)
✔ walls block player weapons and enemy line of sight (1.114747ms)
✔ slap is free and only works in melee range (0.912853ms)
✔ blaster respects cooldown and capacitor costs (0.69737ms)
✔ bass cone hits multiple hosts, stuns and knocks back without wall tunnelling (0.854055ms)
✔ pulse rifle emits a travelling projectile that damages a target (4.409003ms)
✔ disruptor destabilizes multiple targets and unplugger pierces (2.046859ms)
✔ charged alternate fire has a larger cost and damage (1.270141ms)
✔ all six weapons have unique names, fire rates, and energy costs (0.169705ms)
✔ captive rescue requires proximity, restores autonomy, cannot double-count (0.886654ms)
✔ enemies telegraph and damage the player (3.14395ms)
✔ ranged enemies launch readable projectiles (2.079669ms)
✔ Ori follows, auto attacks, and Q stuns with an energy cost (3.377461ms)
✔ Ori Q tags objectives without a nearby hostile (0.822467ms)
✔ resonance vision drains and then recharges (2.300811ms)
✔ R vent restores energy after a delay and respects cooldown (1.67563ms)
✔ bass drop charges from liberation, affects nearby enemies, then empties (1.088378ms)
✔ dodge has a cooldown and brief damage immunity (0.900294ms)
✔ death stops the simulation; retry restores a playable checkpoint (1.986649ms)
✔ checkpoints round trip mutations, doors, player and liberation (2.649015ms)
✔ unsupported or malformed checkpoints are rejected (0.957591ms)
✔ progression requires both relays and a key and unlocks later weapons (1.914351ms)
✔ Warden has three phases and blocks the final ending until defeated (1.207086ms)
✔ key and health pickups update the HUD model and persist progress (0.853354ms)
✔ upgrades from two Φ artifacts increase weapon damage (1.049309ms)
✔ deterministic initial simulation has matching states for matching inputs (26.642521ms)
✔ crawler phases through a thin wall into a valid landing cell (0.973635ms)
✔ browser smoke scenario passes in the same production simulation (46.308709ms)
✔ a dead player cannot replace a valid retry checkpoint (1.238243ms)
✔ Equipment settings sanitize old storage and invalid values (1.145474ms)
✔ Optional preferences survive a JSON settings round trip (0.454013ms)
✔ Cybernetic hands are cached, finite, mirrored and human-scale (54.964ms)
✔ Index and little fingers mirror correctly around each opposing thumb (2.211437ms)
✔ Three finishes differ while sharing one atlas layout (18.663047ms)
✔ Six weapon silhouettes are distinct and bounded (23.534816ms)
✔ Model append transforms cached vertices and reports overflow explicitly (5.793977ms)
✔ Flat-color mesh UVs sample the atlas interior to avoid precision holes (21.571643ms)
✔ Raised wrist requires dwell then opens at compact meter dimensions (1.699757ms)
✔ Combat hand height leaves only the compact hardware status (7.951923ms)
✔ Brief wrist-attention loss retains hysteresis while sustained lowering closes (1.540768ms)
✔ Near-face distance and tracking loss remove interactive panels (6.765939ms)
✔ Manual pin is intentional and visibility preference overrides it (7.780115ms)
✔ Opening capture guard has a bounded transition interval (0.629207ms)
✔ Panel basis remains orthonormal for seated and standing heights (7.339733ms)
✔ Default wrist corners fit both synthetic eye frusta and retain face clearance (2.662255ms)
✔ Reduced motion suppresses ornamental interpolation (0.475185ms)
✔ Weapon follows grip translation while retaining independent ray orientation (0.251619ms)
✔ Calibrated model muzzle equals the collision-safe combat origin (12.353986ms)
✔ Grip calibration never bypasses the safe head reach limit (0.828567ms)
✔ Every weapon and preset fits the batch and preserves game snapshots (136.156723ms)
✔ Equipment capture retains suppression of fire, charge, sticks and abilities (4.303564ms)
✔ Comfort captions clear sights and an active wrist footprint (0.404648ms)
✔ Comfort placement clears the actual held-weapon aim cone (0.104007ms)
✔ Equipment tracking and preferences never enter v1 checkpoints (1.716783ms)
✔ Dead zone prevents resting-stick drift (1.779877ms)
✔ Radial stick preserves diagonals and caps full speed (0.168013ms)
✔ Controller settings sanitize old and invalid saves (0.09922ms)
✔ Analog movement keeps partial speed and legacy keyboard speed (0.091538ms)
✔ Diagonal analog movement cannot exceed full-stick speed (0.237818ms)
✔ Left and right sticks reach real movement and horizontal aiming (1.033985ms)
✔ Small movements still collide with map walls (0.109545ms)
✔ Keyboard and gamepad input coexist without extra speed (0.086761ms)
✔ RT fires a real weapon and holding continues automatic fire (0.113961ms)
✔ RT buffers a press near cooldown expiry (0.203066ms)
✔ LT charges and releases exactly one alternate shot (0.172189ms)
✔ A opens a real door and interacts only once per press (0.105709ms)
✔ A extracts through the real completion event before the next simulation tick (0.115023ms)
✔ All Xbox actions use the documented standard button layout (0.137306ms)
✔ Y, X, B, vision, weapon cycling and map reach real game actions (0.13281ms)
✔ Holding L3 sprints and D-pad down spends a full bass charge (0.080291ms)
✔ D-pad menu movement repeats; A confirm never repeats while held (0.051828ms)
✔ Pause or focus loss cancels held fire and charge until controls release (0.085809ms)
✔ Disconnect clears all held input; reconnect waits for neutral (0.069715ms)
✔ Multiple and sparse gamepads retain the active standard device (0.041933ms)
✔ Unmapped and blocked controllers fail safely without guessing buttons (0.09329ms)
✔ Optional rumble is limited, can be disabled, and resets on pause (0.449306ms)
✔ canonical GenEWrist ring contracts remain 3/6/9 (2.696627ms)
✔ GenEWrist accepts only trusted HTTPS destinations and requires confirmation (0.329556ms)
✔ FieldNavigator remains dormant until explicitly opened (0.261734ms)
✔ world exits require a two-stage state transition and can be cancelled (0.298579ms)
✔ ring selection and resets cleanly clear pending links (0.556617ms)
✔ hosted CODE BROWN is the exact original authored collision grid and mission (1.344002ms)
✔ hosted mission is validated and packed as a normal ΦWAD, with author rights (15.572297ms)
✔ one-click flow loads existing BTM game and leaves campaign untouched (18.182093ms)
✔ loads only allowlisted same-origin hosted JSON and rejects corrupt data (19.751284ms)
✔ All twelve sectors clear through tracked poses, secrets and shared boss simulation (6331.722601ms)
✔ Tracked enemy death retries a checkpoint and completes sector one (486.59408ms)
✔ Rigid world and inverse compose through nonzero yaw and translation (1.444834ms)
✔ Left/right eye separation survives the world transform (0.19976ms)
✔ Frustum culling rejects behind-camera chunks but retains crossing chunks (0.11322ms)
✔ All twelve maps generate finite batched floors, ceilings, walls and export IR (0.111528ms)
✔ Door meshes use the shared open animation and passage threshold (0.120311ms)
✔ Atlas materials have unique bounded UV slots with insets (0.083696ms)
✔ Physical wall leaning cannot enter solid geometry or move the eye through it (0.09328ms)
✔ Physical motion cannot cross a locked door but can cross an opened door (0.08637ms)
✔ Head turn and crouch change view without changing body angle or hand aim (0.116616ms)
✔ Menus freeze movement/fire and discard physical head travel on resume (0.323897ms)
✔ Tracking discontinuity rebases safely and cancels simulation input (0.142074ms)
✔ Snap turn triggers once until neutral and smooth turn stays optional (0.074102ms)
✔ Head-relative and controller-relative movement use different references (0.394323ms)
✔ Unsafe muzzle extension is clamped at walls and at maximum reach (0.063926ms)
✔ Floor and ceiling intersections stop vertical tracked shots (0.048624ms)
✔ Walls occlude tracked targets independently of the gameplay body bearing (0.077917ms)
✔ All six weapons retain costs/cooldowns and use independent tracked aim (0.105208ms)
✔ Tracked pulse projectiles hit bodies at height and terminate at the floor (0.087963ms)
✔ Charged tracked fire uses the existing damage/energy multipliers (0.041583ms)
✔ The immersive adapter updates once with post-movement muzzle coordinates (0.039029ms)
✔ Wrist pointer actions suppress primary and alternate fire together (0.05971ms)
✔ Tracked dodge follows aim without snapping the gameplay body (0.051167ms)
✔ Old XR callbacks cannot advance a new distinct session after reentry (0.054632ms)
✔ Version-one saves resume in Classic without persisting XR pose state (0.053431ms)
✔ Comfort settings sanitize invalid values and preserve smooth defaults (0.095614ms)
✔ Dynamic geometry and effects have bounded buffers and explicit overflow behavior (0.051898ms)
✔ Immersive session selects the world presenter and advances one shared frame (0.047011ms)
✔ Missing tracked right hand pauses immersive play without firing (0.047522ms)
✔ Controller removal and context loss pause or exit without stale input (0.041232ms)
✔ Failed GL compatibility disposes the partial session and allows retry (0.038898ms)
✔ Unavailable immersive entry keeps Classic usable and Arcade retry possible (0.038297ms)
✔ Deferred tracked shooting still drives Michael firing portrait feedback (0.047001ms)
✔ the campaign adds exactly six authored nightmare maps (1.379585ms)
✔ nightmare pressure, health, fire speed and damage scale rise every level (0.521555ms)
✔ new artifacts require a secret door while required rescues remain reachable (21.189062ms)
✔ Acts II and III can continue and the fourth ending is final (2.940143ms)
✔ nightmare shortcut unlocks weapons without claiming unearned artifacts (0.728706ms)
✔ new-sector saves round trip and mismatched map identifiers are rejected (5.675879ms)
✔ nightmare volleys lead actual movement while original volleys retain direct aim (2.750979ms)
✔ new enemies reposition and resist repeated weapon stuns without reducing Ori stun (2.288163ms)
✔ all twelve sectors clear using ordinary movement, weapons, abilities, doors and pickups (3960.273354ms)
✔ seated, standing and inverted/tilted grips project the whole hologram above the worn glove (332.164719ms)
✔ peripheral communications preserve the central angular lane, wrist and real hand aim (0.774745ms)
✔ original Ori mesh has a 16cm core, <25cm total envelope and bounded cached geometry (35.704425ms)
✔ Ori flight remains right, avoids walls/targets and never mutates the canonical companion (5.622088ms)
✔ PixelForge ΦWAD mission roundtrip and compatibility (12.944253ms)
✔ temporary mission uses original Game and immersive geometry and restores all 12 campaign sectors (32.45726ms)
✔ custom victory uses original objectives but cannot progress to sector 14 (1.924045ms)
✔ invalid or repeated pack never destroys campaign (3.233064ms)
✔ all twelve Pit trials clear through Classic production play and isolated save/resume (3256.001869ms)
✔ all twelve Pit trials clear through tracked immersive production play and isolated save/resume (2818.874678ms)
✔ Pit is twelve distinct authored maps, four sharply escalating acts and four guardians (15.296849ms)
✔ Pit trial 1: all objectives, loot, actors and hazards occupy reachable space (44.490874ms)
✔ Pit trial 2: all objectives, loot, actors and hazards occupy reachable space (10.654704ms)
✔ Pit trial 3: all objectives, loot, actors and hazards occupy reachable space (12.170805ms)
✔ Pit trial 4: all objectives, loot, actors and hazards occupy reachable space (20.818625ms)
✔ Pit trial 5: all objectives, loot, actors and hazards occupy reachable space (13.243063ms)
✔ Pit trial 6: all objectives, loot, actors and hazards occupy reachable space (19.762201ms)
✔ Pit trial 7: all objectives, loot, actors and hazards occupy reachable space (28.345264ms)
✔ Pit trial 8: all objectives, loot, actors and hazards occupy reachable space (15.113797ms)
✔ Pit trial 9: all objectives, loot, actors and hazards occupy reachable space (12.127635ms)
✔ Pit trial 10: all objectives, loot, actors and hazards occupy reachable space (20.02768ms)
✔ Pit trial 11: all objectives, loot, actors and hazards occupy reachable space (26.611325ms)
✔ Pit trial 12: all objectives, loot, actors and hazards occupy reachable space (24.084314ms)
✔ Pit forces finite Survival and carries resources through every transition (32.379653ms)
✔ Pit retries roll back finite cell state and do not grant a fresh charge (2.504358ms)
✔ the two save slots, formats and resume modes are isolated (3.523271ms)
✔ malformed Pit saves fail before mutating a valid campaign (6.015299ms)
✔ completed trials resume at their result, cannot double-award progress, and final ending cannot advance (10.256921ms)
✔ PhiWAD detaches without extending Pit or overwriting either checkpoint slot (51.811316ms)
✔ floor warning precedes damage, cycles pause with game time and shields spend a bounded budget (2.12722ms)
✔ GATEKEEPER: guard, weakness, finite phase gates and distinct attacks (6.710004ms)
✔ STATIC TYRANT: guard, weakness, finite phase gates and distinct attacks (3.754789ms)
✔ MIRROR ENGINE: guard, weakness, finite phase gates and distinct attacks (5.149628ms)
✔ THE PIT ITSELF: guard, weakness, finite phase gates and distinct attacks (4.291988ms)
✔ Mirror guard returns readable slow projectiles; repeated hits cannot exceed its counter budget (1.538665ms)
✔ Gatekeeper Bash cancels the brace without printing energy (1.320947ms)
✔ Pit charge stops at body contact, respects walls, deals at most one impact and never shakes tracked head (1.004661ms)
✔ all twelve Pit worlds fit existing quality/batch budgets without renderer state writes (191.223423ms)
✔ default immersive turning is smooth while explicit snap preference survives (1.787119ms)
✔ Quest right-stick diagonal motion turns but does not cycle weapons (1.747629ms)
✔ calibration offsets sanitize and retain independent user settings (0.444458ms)
✔ visual left hand rotation never mutates the original tracked pose or its origin (1.310401ms)
✔ Ori is moved to peripheral view without altering simulation coordinates (0.479892ms)
✔ Ori stays in a bounded right peripheral dock even when the simulation is far away (0.253811ms)
✔ Twelve sector palettes are distinct, bounded and deterministic for custom fallback (1.096841ms)
✔ Decorative fixtures attach only to open cells and avoid doors and archive signs (6.438266ms)
✔ Distance culling retains crossing chunks and rejects distant geometry (0.195925ms)
✔ All sector/preset batches are finite, bounded and preserve game snapshots (162.008631ms)
✔ Sustained event bursts remain bounded even during late-sector telegraphs (114.06616ms)
✔ Projectile trail budgets cap dense volleys without mutating simulation velocities (8.939694ms)
✔ Wrist capture blocks sticks, turning, fire, charge and every gameplay action (3.719926ms)
✔ Leaving a panel while holding controls cannot leak a shot or snap turn (15.132726ms)
✔ Captured wrist controls still permit collision-safe physical head movement (1.558174ms)
✔ Pointer testing receives current pose transforms before stick locomotion (1.082649ms)
✔ Right glove follows grip independently of the tracked aiming ray (1.348899ms)
✔ Each weapon effect stays at the same safe muzzle as the actual tracked shot (20.385278ms)
✔ Interaction focus honors relay reach, ray direction, occlusion and secret visibility (1.572716ms)
✔ New comfort sliders sanitize values and smooth-turn speed does not affect snap angle (1.290421ms)
✔ Reduced motion steadies decorations without mutating ability timers (23.746735ms)
✔ CODE BROWN geometry and all preset effects preserve custom objectives and campaign isolation (44.768651ms)
✔ Classic Survival clears the opening act with finite reserves and live boss combat (1429.752173ms)
✔ synthetic immersive Survival clears the opening act with finite reserves and live boss combat (1305.844142ms)
✔ new runs use finite Survival charge; idle, relays and sector changes print no ammo (14.708488ms)
✔ reload transfers finite reserves after delay, supports partials and zero reserve (2.617649ms)
✔ energy cells fill reserves, retain capacity overflow and persist partial pickups (3.80841ms)
✔ retry and saving mid-reload conserve charge and pickup state together (4.599229ms)
✔ legacy v1 saves retain old recharge and migrate without a finite-reserve gift (11.79876ms)
✔ all energy guns dry fire at zero; the original slap remains dangerous and free (1.259965ms)
✔ dash hits one frontal target, respects armor and never strikes through walls (2.765411ms)
✔ rear/lateral targets are not frontal bashes; shield absorbs at most 18 and expires (6.379417ms)
✔ dash uses tracked aim without changing body yaw and captured controls suppress bash (24.464455ms)
✔ HUD semantic text colors meet 4.5:1 contrast on the instrument panel (1.481709ms)
✔ All six weapon UI colors are independent of gameplay weapon definitions (0.236877ms)
✔ All production interaction IDs remain unique and reachable in markup (7.450749ms)
✔ Every custom SVG icon reference resolves to an authored symbol (0.493953ms)
✔ Bundled fonts have valid TTF headers and their actual redistribution licenses (25.366061ms)
✔ Interface has no remote font, image, stylesheet or script requirement (1.341999ms)
✔ The redesigned minimap does not reveal unseen geometry or objectives (2.795166ms)
✔ Minimap rendering is presentation-only and preserves game snapshots (2.144025ms)
✔ v0.1.0 tests remain byte-for-byte unchanged (23.675437ms)
✔ v0.2 sector 1: content reachable and key obtainable before locked doors (19.64198ms)
✔ v0.2 sector 2: content reachable and key obtainable before locked doors (3.898746ms)
✔ v0.2 sector 3: content reachable and key obtainable before locked doors (12.460156ms)
✔ v0.2 sector 4: content reachable and key obtainable before locked doors (7.355316ms)
✔ v0.2 sector 5: content reachable and key obtainable before locked doors (6.749665ms)
✔ v0.2 sector 6: content reachable and key obtainable before locked doors (8.172334ms)
✔ v0.2 sector 7: content reachable and key obtainable before locked doors (1.572385ms)
✔ v0.2 sector 8: content reachable and key obtainable before locked doors (11.011517ms)
✔ v0.2 sector 9: content reachable and key obtainable before locked doors (1.746017ms)
✔ v0.2 sector 10: content reachable and key obtainable before locked doors (2.101522ms)
✔ v0.2 sector 11: content reachable and key obtainable before locked doors (2.554854ms)
✔ v0.2 sector 12: content reachable and key obtainable before locked doors (2.772211ms)
✔ Act II increases encounter count and individual enemy strength (2.599891ms)
✔ original Warden ending offers Act II while final ending cannot advance (4.007559ms)
✔ an actual v0.1.0 checkpoint migrates and retains state (15.528382ms)
✔ a click just before cooldown expiry buffers exactly one shot (2.197636ms)
✔ expired click buffers never fire later (2.410997ms)
✔ wall impacts and hit reactions are emitted without gore (1.02984ms)
✔ Ori assistance has its own visible effect and source attribution (2.645415ms)
✔ danger warnings interrupt banter and remain rate limited (17.082189ms)
✔ Michael and Ori exchange lines in deterministic order (13.029662ms)
✔ movement against a wall produces no footsteps or walking bob (6.7404ms)
✔ navigation route respects golden access gates until a key is held (2.211898ms)
✔ archive signs can be read by facing and interacting (1.007496ms)
✔ fallback keyboard codes work when browser code is absent (2.042873ms)
✔ pointer capture rejects overlapping attempts (0.466442ms)
✔ denied capture switches to fallback without pausing play (0.287362ms)
✔ a capture timeout enables an explicit retry (0.218248ms)
✔ Escape from a real lock pauses; intentional release does not (0.196756ms)
✔ all six sectors clear through traversal, combat and interactions (906.721962ms)
✔ live enemy attacks cause death, and retry permits a complete traversal (490.046363ms)
✔ render-only door rays can see behind an opening panel without changing collision (0.509206ms)
✔ Warden health phases update even while Ori holds a stun (0.952162ms)
✔ default pointer timer adapters clean up a denied request (0.422025ms)
✔ Ori stun prevents crawler phasing until the stun expires (0.900795ms)
✔ Matrix composition preserves an identity transform (2.222764ms)
✔ A screen is placed in front of the initial head pose (0.105329ms)
✔ Recenter ignores pitch and keeps the arcade screen upright (0.102685ms)
✔ Controller rays hit the panel in texture coordinates (0.061984ms)
✔ Rays behind, parallel to, or pointing away from a panel do not select (0.406852ms)
✔ Quest Touch thumbsticks map separately from Xbox navigator pads (0.226661ms)
✔ Quest triggers fire and charge; grip controls interact and Ori (2.301833ms)
✔ Quest face buttons and stick clicks expose the documented actions (0.149705ms)
✔ Generic xr-standard input keeps trigger/grip controls without guessing faces (0.157757ms)
✔ Losing a Touch controller cancels held fire until neutral (0.217167ms)
✔ Unavailable WebXR reports a fallback without requesting a session (0.153852ms)
✔ Session initialization makes GL compatible before allocating GPU objects (0.129465ms)
✔ Local-floor rejection falls back to local reference space (0.082224ms)
✔ Permission denial leaves VR inactive and permits another attempt (0.071247ms)
✔ Overlapping VR entry attempts request only one session (0.397679ms)
✔ Each XR frame advances once and renders both eye views (0.095324ms)
✔ Tracking loss and hidden headset visibility pause without simulation (0.075554ms)
✔ Recenter changes the anchored screen only on explicit request (0.149264ms)
✔ Pointed UI actions suppress a simultaneous game shot (0.082915ms)
✔ Exit and stale XR callbacks cannot restart or advance the game (0.098238ms)
ℹ tests 286
ℹ suites 0
ℹ pass 286
ℹ fail 0
ℹ cancelled 0
ℹ skipped 0
ℹ todo 0
ℹ duration_ms 7231.205624
