supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty' supacode: OSC emit failed: code=ENXIO errno=-6 message=ENXIO: no such device or address, open '/dev/tty' Both `input` and `tick` are coherent. Phase 2 is complete. ## Summary Implemented Phase 2 in `index.html` — possession, the first 3 enemies, pathfinding, and the pacing rules. All edits were additive/in-place; Phase 1 preserved. **What shipped:** - **Enemy data model** — `spawn(type,x,y)` creates enemies with `{type,hp,maxHp,damage,speed,x,y,facing,aggroed,overheatLeft,shotsFired,burstCount,moveCd,lockout,pacified,...}`. Brute 8/3/2, Skitterer 2/1/2, Sentinel 4/1/2 — distinct tuples. - **Possession** — ghost SPACE scans adjacent tiles, sets `possessing`; completes next tick into `state:'possessed'` with `player.host` set, timer paused while possessing/possessed. - **Abandon (X)** — ejects to ghost, host survives with `pacified=2` + `lockout=2`; timer resumes (not reset). Host death (via `ejectOnDeath`) is the only thing that resets the timer. - **Pathfinding** — BFS `bfsFirstStep` routes enemies *around* walls; LOS (Bresenham) gates aggro. Docile enemies idle until within `AGGRO=6` tiles + LOS. - **No friendly fire** — `damagePlayer` only ever hits the ghost/host; enemy melee/AI/projectiles never touch other enemies. Host attacks (`damageEnemy`) kill for essence. - **Sentinel burst/overheat** — 3 shots then `overheatLeft=3`; same rhythm as the player-controlled kit. - **Essence** — `dropEssence`→`addEssence` by type; persists on `GAME.essence`. - **HUD** — contextual SPACE hint per host ("Heavy swing"/"Rapid strike"/"Fire burst") + "X: Abandon"; host body drawn with a possession aura. - **Extras** — Web Audio `sfx()` (guarded), achievement scaffold (First Possession/Body Hopper/Essence Hoarder/Deep Diver), enemy/projectile interpolation, `populateFloor` keeps spawn ≥5 tiles clear. **Verification:** - `node verify.js 2` → `PHASE 2 PASSED (24 checks)` (stable across repeated runs) - `node verify.js 1` → `PHASE 1 PASSED (15 checks)` — no regression Skipped: host movement speed-gating (no test coverage; the 600ms turn cadence already paces it) — add later if game-feel demands strict per-host slowness.