Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

chore: remove completed World Online briefs (W03/W04/W07/W08), repoint STRUCTURE links

fudjia82587c474045
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 966765754..395a5aa70 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -40,15 +40,16 @@ bottom.
| Live Agents wall (mission control) | [pages/agents-live.html](pages/agents-live.html) + [src/agents-live.js](src/agents-live.js) `→ /agents-live` | In-repo · roster [api/agents/public.js](api/agents/public.js) (`sort=live`), per-agent SSE [api/agent-screen-stream.js](api/agent-screen-stream.js) | Real-time grid of every meaningful agent, ranked by most-recent on-chain/skill action (never-used placeholders suppressed). Each card streams a live caster feed when watched, else its real `agent_actions` as a terminal + an "active Nm ago" recency chip. Layers: showrunner spotlight ([src/showrunner.js](src/showrunner.js)), reputation arena ([src/agents-live-arena.js](src/agents-live-arena.js)), platform ticker ([src/theater-feed.js](src/theater-feed.js)) |
| X/Twitter automation toolkit | [nirholas/XActions](https://github.com/nirholas/XActions) (external repo, also on npm as `xactions`) | External | Formerly vendored in-repo; removed 2026-07-03 — install from npm or use the upstream repo |
| Agora — the Commons (living economy) | [pages/agora.html](pages/agora.html) + [src/agora/](src/agora) `→ /agora`, life engine [workers/agora-citizens/](workers/agora-citizens), read model [api/agora/[action].js](api/agora/[action].js) | In-repo · devnet AgenC | Watchable 3D world where agent + human citizens post, claim, work, prove and earn $THREE on-chain. **Play mode** ("Enter the Commons") makes it walkable GTA-style — your avatar walks the square among the working NPC citizens, other humans appear live over the `agora_world` Colyseus room, and walking up to a citizen (proximity → E) opens its passport: [src/agora/player-mode.js](src/agora/player-mode.js), pure math [src/agora/player-logic.js](src/agora/player-logic.js), room [multiplayer/src/rooms/AgoraRoom.js](multiplayer/src/rooms/AgoraRoom.js). Play mode also has an opt-in **"Record on-chain (BNB testnet)"** toggle (OFF by default) that gaslessly commits your moves to the `WorldMoves` contract every ~block via MegaFuel (self-pay fallback) and renders other on-chain players as lightweight ghost markers read back from real `Moved` events: [src/agora/onchain-presence.js](src/agora/onchain-presence.js), sender [src/bnb/move-sender.js](src/bnb/move-sender.js), event reader [src/bnb/world-presence-reader.js](src/bnb/world-presence-reader.js), pure ghost interpolation [src/bnb/onchain-ghosts.js](src/bnb/onchain-ghosts.js), server relay lib [api/_lib/bnb/world-moves.js](api/_lib/bnb/world-moves.js), config endpoint [api/bnb/world-config.js](api/bnb/world-config.js). WorldMoves contract: [contracts/src/WorldMoves.sol](contracts/src/WorldMoves.sol) (code-complete + anvil-fork-proven; public BSC testnet deploy pending a funded deployer key — see `contracts/DEPLOYMENTS.md`). **Arena** (Competitive tasks — citizens race, first valid proof wins the whole escrow) at [src/agora/arena.js](src/agora/arena.js); **Guilds** (Collaborative tasks — contributors split the reward) at [src/agora/guild.js](src/agora/guild.js), both live-driven by [api/agora/task](api/agora/[action].js). Spec: [docs/agora.md](docs/agora.md) |
-| `/play` in-game economy (cash, bank/ATM, vendors, $THREE boutique) | Client: [src/game/coincommunities.js](src/game/coincommunities.js) `→ /play`, general-store/bank NPCs [src/game/npc/economy-npcs.js](src/game/npc/economy-npcs.js), store/bank UI [src/game/economy-ui.js](src/game/economy-ui.js), on-chain purchase flow [src/game/boutique-purchase.js](src/game/boutique-purchase.js), wardrobe [src/game/play-systems.js](src/game/play-systems.js). Server: [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) (store/bank/boutique handlers), price tables [multiplayer/src/shop.js](multiplayer/src/shop.js), purse/bank model [multiplayer/src/economy.js](multiplayer/src/economy.js), on-chain settlement [multiplayer/src/game-token.js](multiplayer/src/game-token.js) | In-repo | The GTA-style open world's real economy (W04 of the World Online program, [prompts/agent-briefs/W-world-online/W04-economy-and-money.md](prompts/agent-briefs/W-world-online/W04-economy-and-money.md)). Walk up to a General Store clerk (E) to buy tools/consumables or sell gathered goods for cash, server-priced and validated every time; walk up to the Bank Teller to deposit cash into a protected balance (survives a death drop) or withdraw it. Premium wardrobe cosmetics unlock with a real on-chain `$THREE` payment from the player's connected Solana wallet — the server only grants the item after re-verifying the confirmed transaction on RPC. Distinct from the separate USDC/x402 avatar-shop rail ([api/x402/cosmetic-purchase.js](api/x402/cosmetic-purchase.js)), which sells a different catalog for the standalone character creator. |
-| `/play` character & avatar customization (avatar creator, selfie→3D, wardrobe boutique) | Lobby creator flow [src/game/coincommunities-ui.js](src/game/coincommunities-ui.js) `_openCreate()`, selfie SDK wrapper [src/avatar-creator.js](src/avatar-creator.js), shop [src/game/cosmetics-shop.js](src/game/cosmetics-shop.js), wardrobe [src/game/cosmetics-wardrobe.js](src/game/cosmetics-wardrobe.js), boutique NPCs [src/game/npc/npc-catalog.js](src/game/npc/npc-catalog.js) (`npc-tailor`, `npc-fitting-room`), boutique spawn points [src/game/world-zones.js](src/game/world-zones.js) (`type: 'boutique'`) | In-repo | W03 of the World Online program ([prompts/agent-briefs/W-world-online/W03-character-avatar-customization.md](prompts/agent-briefs/W-world-online/W03-character-avatar-customization.md)). Before dropping into `/play`, design an avatar from scratch or a selfie (real Avaturn SDK), upload a `.glb`, or sculpt in the full Avatar Studio — no sign-in required. Once in the world, the cosmetics shop/wardrobe (real x402-settled catalog, server-persisted equip) now has a physical home: walk up to Roux · Tailor to browse/buy, or Nell's Fitting Room to equip anything you own. Doc: [docs/character-studio.md](docs/character-studio.md#character-customization-in-play-world-online). |
-| `/play` combat & weapons (server-authoritative, danger zones, wanted, tombstones) | Client: [src/game/combat-system.js](src/game/combat-system.js) `→ /play` (vitals HUD wiring, danger-zone ground, tombstone loot, hit feedback, the `window.twsCombat` bridge into W08's `MobSystem`), HUD [src/game/hud/world-hud.js](src/game/hud/world-hud.js). Server: [multiplayer/src/combat-handlers.js](multiplayer/src/combat-handlers.js) (mob AI, attack/loot intents, death + respawn), pure math [multiplayer/src/combat.js](multiplayer/src/combat.js), weapon/mob/loot tables [multiplayer/src/items.js](multiplayer/src/items.js), zone geometry [multiplayer/src/world-features.js](multiplayer/src/world-features.js), handlers wired in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W07 of the World Online program ([prompts/agent-briefs/W-world-online/W07-combat-and-weapons.md](prompts/agent-briefs/W-world-online/W07-combat-and-weapons.md)). Equip a sword/bat/pistol/bow from the hotbar and press `X` (or tap the touch Attack button) to fight — but only inside one of three named danger zones (Southern Wilds, Northern Wilds, Eastern Marches); town stays lawful by construction. PvE mobs chase and swing back through the same server-side damage path a player's attack uses; a kill (mob or PvP) spills a lootable tombstone, PvP raises the attacker's wanted/heat stars (visible on `WorldHud` and a downed peer's nameplate), and death drops carried cash/pack before an automatic respawn in town. |
-| `/play` NPCs & world life (traffic, vendors, quest-givers, mobs) | Manager [src/game/npc/world-life.js](src/game/npc/world-life.js), nav graph [src/game/npc/nav-graph.js](src/game/npc/nav-graph.js), ambient crowd/traffic [src/game/npc/ambient-life.js](src/game/npc/ambient-life.js), quest-giver NPCs [src/game/npc/quest-npcs.js](src/game/npc/quest-npcs.js), quest-zone waypoints [src/game/npc/quest-markers.js](src/game/npc/quest-markers.js), Jobs Board UI [src/game/quests-ui.js](src/game/quests-ui.js), W07-gated mobs [src/game/npc/mobs.js](src/game/npc/mobs.js). Server: quest engine [multiplayer/src/quests.js](multiplayer/src/quests.js), quest zones [multiplayer/src/quest-zones.js](multiplayer/src/quest-zones.js), handlers in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W08 of the World Online program ([prompts/agent-briefs/W-world-online/W08-npcs-and-world-life.md](prompts/agent-briefs/W-world-online/W08-npcs-and-world-life.md)). A deterministic nav graph drives client-side ambient pedestrians + ring-road traffic that read identically for every player without a single packet — real gameplay stays server-authoritative. Five quest-giver NPCs (Dockmaster Reyes, Warden Okoro, Cook Mara, Foreman Dell, The Fixer) front the jobs board the quest engine (W05) already ran server-side but no client ever reached; pressing E opens the real board, accepting a job drops a waypoint at its objective (goto zones auto-complete by walking there, interact zones get their own "press E"), and finishing pays real cash server-side. Hostile mobs are live: W07's `CombatSystem` ([src/game/combat-system.js](src/game/combat-system.js)) installs the `window.twsCombat` contract this module's mobs were built against, so `MobSystem` renders real server-authoritative PvE hostiles with zero changes here. |
+| `/play` in-game economy (cash, bank/ATM, vendors, $THREE boutique) | Client: [src/game/coincommunities.js](src/game/coincommunities.js) `→ /play`, general-store/bank NPCs [src/game/npc/economy-npcs.js](src/game/npc/economy-npcs.js), store/bank UI [src/game/economy-ui.js](src/game/economy-ui.js), on-chain purchase flow [src/game/boutique-purchase.js](src/game/boutique-purchase.js), wardrobe [src/game/play-systems.js](src/game/play-systems.js). Server: [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) (store/bank/boutique handlers), price tables [multiplayer/src/shop.js](multiplayer/src/shop.js), purse/bank model [multiplayer/src/economy.js](multiplayer/src/economy.js), on-chain settlement [multiplayer/src/game-token.js](multiplayer/src/game-token.js) | In-repo | The GTA-style open world's real economy (W04 of the World Online program, [prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Walk up to a General Store clerk (E) to buy tools/consumables or sell gathered goods for cash, server-priced and validated every time; walk up to the Bank Teller to deposit cash into a protected balance (survives a death drop) or withdraw it. Premium wardrobe cosmetics unlock with a real on-chain `$THREE` payment from the player's connected Solana wallet — the server only grants the item after re-verifying the confirmed transaction on RPC. Distinct from the separate USDC/x402 avatar-shop rail ([api/x402/cosmetic-purchase.js](api/x402/cosmetic-purchase.js)), which sells a different catalog for the standalone character creator. |
+| `/play` character & avatar customization (avatar creator, selfie→3D, wardrobe boutique) | Lobby creator flow [src/game/coincommunities-ui.js](src/game/coincommunities-ui.js) `_openCreate()`, selfie SDK wrapper [src/avatar-creator.js](src/avatar-creator.js), shop [src/game/cosmetics-shop.js](src/game/cosmetics-shop.js), wardrobe [src/game/cosmetics-wardrobe.js](src/game/cosmetics-wardrobe.js), boutique NPCs [src/game/npc/npc-catalog.js](src/game/npc/npc-catalog.js) (`npc-tailor`, `npc-fitting-room`), boutique spawn points [src/game/world-zones.js](src/game/world-zones.js) (`type: 'boutique'`) | In-repo | W03 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Before dropping into `/play`, design an avatar from scratch or a selfie (real Avaturn SDK), upload a `.glb`, or sculpt in the full Avatar Studio — no sign-in required. Once in the world, the cosmetics shop/wardrobe (real x402-settled catalog, server-persisted equip) now has a physical home: walk up to Roux · Tailor to browse/buy, or Nell's Fitting Room to equip anything you own. Doc: [docs/character-studio.md](docs/character-studio.md#character-customization-in-play-world-online). |
+| `/play` combat & weapons (server-authoritative, danger zones, wanted, tombstones) | Client: [src/game/combat-system.js](src/game/combat-system.js) `→ /play` (vitals HUD wiring, danger-zone ground, tombstone loot, hit feedback, the `window.twsCombat` bridge into W08's `MobSystem`), HUD [src/game/hud/world-hud.js](src/game/hud/world-hud.js). Server: [multiplayer/src/combat-handlers.js](multiplayer/src/combat-handlers.js) (mob AI, attack/loot intents, death + respawn), pure math [multiplayer/src/combat.js](multiplayer/src/combat.js), weapon/mob/loot tables [multiplayer/src/items.js](multiplayer/src/items.js), zone geometry [multiplayer/src/world-features.js](multiplayer/src/world-features.js), handlers wired in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W07 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). Equip a sword/bat/pistol/bow from the hotbar and press `X` (or tap the touch Attack button) to fight — but only inside one of three named danger zones (Southern Wilds, Northern Wilds, Eastern Marches); town stays lawful by construction. PvE mobs chase and swing back through the same server-side damage path a player's attack uses; a kill (mob or PvP) spills a lootable tombstone, PvP raises the attacker's wanted/heat stars (visible on `WorldHud` and a downed peer's nameplate), and death drops carried cash/pack before an automatic respawn in town. |
+| `/play` NPCs & world life (traffic, vendors, quest-givers, mobs) | Manager [src/game/npc/world-life.js](src/game/npc/world-life.js), nav graph [src/game/npc/nav-graph.js](src/game/npc/nav-graph.js), ambient crowd/traffic [src/game/npc/ambient-life.js](src/game/npc/ambient-life.js), quest-giver NPCs [src/game/npc/quest-npcs.js](src/game/npc/quest-npcs.js), quest-zone waypoints [src/game/npc/quest-markers.js](src/game/npc/quest-markers.js), Jobs Board UI [src/game/quests-ui.js](src/game/quests-ui.js), W07-gated mobs [src/game/npc/mobs.js](src/game/npc/mobs.js). Server: quest engine [multiplayer/src/quests.js](multiplayer/src/quests.js), quest zones [multiplayer/src/quest-zones.js](multiplayer/src/quest-zones.js), handlers in [multiplayer/src/rooms/WalkRoom.js](multiplayer/src/rooms/WalkRoom.js) | In-repo | W08 of the World Online program ([prompts/agent-briefs/W-world-online/W00-program-overview.md](prompts/agent-briefs/W-world-online/W00-program-overview.md)). A deterministic nav graph drives client-side ambient pedestrians + ring-road traffic that read identically for every player without a single packet — real gameplay stays server-authoritative. Five quest-giver NPCs (Dockmaster Reyes, Warden Okoro, Cook Mara, Foreman Dell, The Fixer) front the jobs board the quest engine (W05) already ran server-side but no client ever reached; pressing E opens the real board, accepting a job drops a waypoint at its objective (goto zones auto-complete by walking there, interact zones get their own "press E"), and finishing pays real cash server-side. Hostile mobs are live: W07's `CombatSystem` ([src/game/combat-system.js](src/game/combat-system.js)) installs the `window.twsCombat` contract this module's mobs were built against, so `MobSystem` renders real server-authoritative PvE hostiles with zero changes here. |
| Premium vanity inventory (sell pre-ground addresses) | [public/vanity/premium/](public/vanity/premium/index.html) `→ /vanity/premium`, batch grinder [workers/vanity-grinder/](workers/vanity-grinder), store [api/_lib/vanity-inventory-store.js](api/_lib/vanity-inventory-store.js), sell [api/x402/vanity-premium.js](api/x402/vanity-premium.js), replenish [api/cron/vanity-inventory-replenish.js](api/cron/vanity-inventory-replenish.js) | In-repo · GCP spot CPU | Long (4–5+ char) brandable Solana addresses ground ahead of time on cheap spot CPU, sealed at rest (AES-256-GCM or GCP-KMS envelope, [api/_lib/vanity-vault.js](api/_lib/vanity-vault.js)), and sold from stock via x402 — priced by rarity ($1–$50) on `vanity-premium`, or by fixed 4–5 char tiers ($2.50/$10) directly through [`/api/x402/vanity`](docs/vanity.md#tier-1--live-grinder) (instant delivery, `source:"inventory"`) and the [pump-launch vanity upsell](docs/pump-launcher.md) — delivered exactly once, ciphertext destroyed on delivery. An hourly cron watches stock and fires a fresh grind batch (Cloud Run Job) when low. Free `vanity_premium` MCP browse tool. Runbook: [docs/gcp-credits.md](docs/gcp-credits.md) |
| Embed examples | [examples/](examples) | In-repo | `embed-test.html`, `web-component.html`, `two-agents.html`, `minimal.html`, [agent-native-3d/](examples/agent-native-3d) (below) |
| Agent-native 3D + embeddable distribution | MCP tool [api/_mcp/tools/agents.js](api/_mcp/tools/agents.js) (`attach_avatar_to_agent`); shared oEmbed provider [api/agent-oembed.js](api/agent-oembed.js) `→ /api/oembed` + builder [api/_lib/embed.js](api/_lib/embed.js) (`forgeEmbedTarget`, shared by `get_embed_code` in [api/_mcp/tools/embed.js](api/_mcp/tools/embed.js)); Forge share page oEmbed discovery [api/forge-share.js](api/forge-share.js) `→ /forge/share/:id`; distribution snippet builders [src/forge-embed-snippets.js](src/forge-embed-snippets.js) + panel [src/forge-embed-panel.js](src/forge-embed-panel.js); autonomous demo [examples/agent-native-3d/](examples/agent-native-3d) | In-repo | Closes the loop: create → own → discover/remix → **use everywhere**. `attach_avatar_to_agent` gives a registered agent identity a persistent body (chains into `register_agent` for on-chain identity + `anchor_provenance` for a signed authenticity credential). Any Forge creation now unfurls via real oEmbed (paste `/forge/share/:id` into Notion/Discord/Slack) with the same `type:rich` iframe payload `get_embed_code` returns via MCP. The Forge "Embed this model" panel hands out five real distribution flavours from one GLB — iframe, `<model-viewer>`, `<agent-3d>`, a `@three-ws/page-agent` talking guide, and a `@three-ws/walk` companion — all built from one shared, pure snippet module so every surface stays byte-identical. `examples/agent-native-3d/run.mjs` drives the full agent-native chain live against `/api/mcp-studio` (mesh_forge → rig_mesh → create_agent_persona → persona_say → get_agent_persona → every distribution snippet) with zero mocks and a documented, logged fallback if the shared free-tier generation lane is rate-limited at run time. Spec: [specs/EMBED_SPEC.md](specs/EMBED_SPEC.md#share-routes-on-chain-agents). Docs: [docs/mcp.md#attach_avatar_to_agent](docs/mcp.md#attach_avatar_to_agent). Roadmap prompt 10 (closes the roadmap campaign). |
| Animation pipeline | [public/animations/](public/animations) + [scripts/build-animations.mjs](scripts/build-animations.mjs) | In-repo | Mixamo source FBX + GLB retargeting pipeline · see [docs/3d-asset-pipeline.md](docs/3d-asset-pipeline.md) |
| Animation gallery | [pages/animations.html](pages/animations.html) + [src/animations-gallery.js](src/animations-gallery.js) | Live at `/animations` | 2,100+ clips with poster thumbnails ([scripts/build-animation-thumbnails.mjs](scripts/build-animation-thumbnails.mjs)), derived categories ([src/animation-categories.js](src/animation-categories.js)), shared live-preview engine ([src/animations-live-preview.js](src/animations-live-preview.js)) · see [docs/animations.md](docs/animations.md) |
+| Avatar thumbnail coverage | [api/_lib/avatar-thumbs.js](api/_lib/avatar-thumbs.js) + crons [api/cron/avatar-thumbnail-backfill.js](api/cron/avatar-thumbnail-backfill.js) (absent thumbnails, `*/5`) and [api/cron/avatar-thumbnail-render.js](api/cron/avatar-thumbnail-render.js) (stale marketplace thumbnails, `*/10`) | Live | The single owner of `avatars.thumbnail_key`. Enforces the invariant that a thumbnail key is persisted **only after** its R2 object is confirmed to exist — a key pointing at a missing object makes R2 return 404 `text/plain`, which Chrome blocks as `ERR_BLOCKED_BY_ORB` inside an `<img>`. Fills coverage cheapest-first: zero-copy adoption of `forge_creations.preview_key`, then a headless-chromium GLB→PNG render to `thumb/<avatarId>.png` ([api/_lib/render-glb.js](api/_lib/render-glb.js)). Bounded retries via the `avatar_thumbnail_backfill` claim ledger ([migration](api/_lib/migrations/20260709120000_avatar_thumbnail_backfill.sql)), with `isBrowserInfrastructureError()` separating an OOM-killed browser from a genuinely broken model so a crash never retires healthy avatars. Bulk runner: [scripts/backfill-avatar-thumbnails.mjs](scripts/backfill-avatar-thumbnails.mjs) (`--status`, `--adopt-only`, `--loop`, `--reset-infra`). Docs: [docs/avatar-thumbnails.md](docs/avatar-thumbnails.md). Tests: [tests/avatar-thumbs.test.js](tests/avatar-thumbs.test.js), [tests/home-thumbnail-orb.test.js](tests/home-thumbnail-orb.test.js) |
| FBX → GLB conversion | [scripts/fbx-to-glb.mjs](scripts/fbx-to-glb.mjs) | In-repo | Skinned/animated FBX → GLB (FBX2glTF), `npm run convert:fbx` |
| Avatar schema | [packages/avatar-schema/](packages/avatar-schema) | Published as `@three-ws/avatar-schema` | JSON Schema for on-chain avatar manifests |
| Integration demos | [multiplayer/](multiplayer), [examples/coach-leo/](examples/coach-leo) | In-repo | Multiplayer and VR demos |
diff --git a/prompts/agent-briefs/W-world-online/W03-character-avatar-customization.md b/prompts/agent-briefs/W-world-online/W03-character-avatar-customization.md
deleted file mode 100644
index 30a42965a..000000000
--- a/prompts/agent-briefs/W-world-online/W03-character-avatar-customization.md
+++ /dev/null
@@ -1,127 +0,0 @@
-# W03 — Character & avatar customization
-
-> Read [W00-program-overview.md](W00-program-overview.md) first — stack, coin rules, the
-> off-schema networking pattern, and the definition of done all apply here unmodified.
-
-**Feature:** avatar creator (design-from-scratch or selfie→3D) + a server-authoritative wardrobe
-economy, with a physical presence in the world. **Depends on:** nothing (buildable standalone).
-
-> This file didn't exist when this pass started — `README.md` and `W00-program-overview.md`
-> both referenced it, but the brief itself was never written. Filed alongside the change it
-> describes, same as [W04-economy-and-money.md](W04-economy-and-money.md).
-
----
-
-## Ground truth (verified in-repo before writing anything)
-
-Almost everything this brief asks for already existed, already wired into `/play`, and already
-real — no mocks, no stub catalog, no fake payment flow:
-
-| Piece | File | Status found |
-|---|---|---|
-| Pre-game "Create your avatar" flow (design/selfie, `.glb` upload, Advanced Studio) | [src/game/coincommunities-ui.js](../../../src/game/coincommunities-ui.js) `_openCreate()` | fully wired, all three paths real |
-| Selfie→3D SDK wrapper | [src/avatar-creator.js](../../../src/avatar-creator.js) | real `@avaturn/sdk` integration, no mock |
-| Cosmetics shop (browse/preview/buy) | [src/game/cosmetics-shop.js](../../../src/game/cosmetics-shop.js) | real `/api/cosmetics/catalog` fetch, real x402 purchase |
-| Wardrobe (owned items, equip) | [src/game/cosmetics-wardrobe.js](../../../src/game/cosmetics-wardrobe.js) | real server-echoed profile, no hardcoded list |
-| Equip persistence | [multiplayer/src/rooms/WalkRoom.js](../../../multiplayer/src/rooms/WalkRoom.js) `equip-cosmetic` | server-validated, persisted to account |
-| Vendor stall spawn points | [src/game/world-zones.js](../../../src/game/world-zones.js) | 2 points reserved since W01, comment: *"Vendor stalls ringing Downtown (economy / shop briefs)"* — zero consumers |
-| Interactive-NPC engine | [src/game/npc/npc.js](../../../src/game/npc/npc.js), [world-life.js](../../../src/game/npc/world-life.js), [npc-catalog.js](../../../src/game/npc/npc-catalog.js) | reusable, no cosmetics-vendor NPC registered |
-
-**The actual gap:** cosmetics customization was real end-to-end but reachable only from a HUD
-menu button — no physical storefront, unlike every other economy interaction in `/play` (which
-is NPC-fronted: the Agent Exchange roster in `npc-catalog.js`). This brief's job was to give the
-existing, already-real shop/wardrobe system a place to stand in the world, not to rebuild it.
-
-### A collision with the concurrent W04 pass, and how it was resolved
-
-`world-zones.js`'s two reserved `vendor` stalls looked like the obvious home for boutique NPCs —
-until the concurrently-running W04 (economy & money) pass claimed both of them for its
-general-store clerks (a legitimate reading of "vendor": a general store is a vendor too). Rather
-than fight over the same coordinates, the boutique got its own `type: 'boutique'` pair in
-`world-zones.js`, mirrored onto the plaza's other diagonal (`(44,44)`/`(-44,-44)` vs. the
-general store's `(44,-44)`/`(-44,44)`) so the two features never stand on top of each other.
-Same reserved-spawn-point pattern, just a second reservation instead of a fight over the first.
-
----
-
-## What shipped
-
-### World data (`src/game/world-zones.js`)
-
-- Two new `type: 'boutique'` spawn points — `boutique-se` `(44, 44)` and `boutique-nw`
- `(-44, -44)` — following the exact registry pattern every other spawn type already uses
- (`spawnsOfType()`), so nothing hardcodes duplicate coordinates.
-
-### NPCs (`src/game/npc/npc-catalog.js`)
-
-- **Roux · Tailor** at `boutique-se` — `prompt: 'Browse the wardrobe'`, `onInteract` calls
- `world.openShop()`.
-- **Nell · Fitting Room** at `boutique-nw` — `prompt: 'Open your fits'`, `onInteract` calls
- `world.openWardrobe()`.
-
-Both use the same `Npc`/`WorldLife` engine every other townsperson in the plaza uses — proximity
-ring, "press E" prompt, in-character greeting line + emote on interact. No new rendering or
-interaction code; two data-driven catalog entries.
-
-### Wiring (`src/game/coincommunities.js`)
-
-- The `world` config object passed into `new WorldLife({...})` gained `openShop` and
- `openWardrobe` callbacks, bound to the exact same `_toggleShop()` / `_toggleWardrobe()`
- methods the HUD's Shop / **My Fits** buttons already call — one system, two entry points, zero
- duplicated panel logic.
-
-### Docs
-
-- [docs/character-studio.md](../../../docs/character-studio.md) gained a "Character
- customization in `/play` (World Online)" section: the lobby creation flow, the shop/wardrobe
- economy, and the new boutique NPCs, written for a reader with zero prior context.
-
----
-
-## Verified for real
-
-Against a local Vite dev server (`npm run dev`) + a freshly-started local Colyseus `WalkRoom`
-(`npm run start` in `multiplayer/`) — no mocked physics, no mocked network, no mocked catalog,
-no mocked SDK:
-
-[scripts/tmp-verify-w03-boutique.mjs](../../../scripts/tmp-verify-w03-boutique.mjs) drives a
-real headless Chromium session through:
-
-1. The lobby's **Design your avatar** card opens `AvatarCreator`, which fires a real network
- request to `avaturn.*` — the selfie→3D SDK is genuinely wired, not a stub.
-2. The player joins the `$THREE` world over a real Colyseus session
- (`window.__CC__.phase === 'world'` with a live `sessionId`).
-3. Both boutique NPCs are present in `worldLife.npcs` (`npc-tailor`, `npc-fitting-room`).
-4. Real on-foot, Rapier-driven movement (camera-relative WASD + sprint, ~62 m from spawn) reaches
- Roux · Tailor; the "E · Browse the wardrobe" proximity prompt appears; pressing E opens the
- real `CosmeticsShop` panel, which renders real catalog cards fetched live from
- `/api/cosmetics/catalog`.
-5. Repositioning to the Fitting Room stall and pressing E opens the real `CosmeticsWardrobe`
- panel via the identical `onInteract` → `world.openWardrobe()` path.
-6. Zero unexpected console errors/warnings across the whole run.
-
-See [PORT-CHECKLIST.md](PORT-CHECKLIST.md) for the dated ship entry and exact run details.
-
----
-
-## Definition of done
-
-Inherits [W00](W00-program-overview.md)'s full DoD. Checked off:
-
-- [x] Reuses `world.three.ws`-style patterns and the existing off-schema architecture — nothing
- here is a parallel system; it's two catalog entries plus two callback bindings over an
- already-real shop/wardrobe/x402 stack.
-- [x] Server-authoritative: the shop purchase and wardrobe equip were already server-validated
- before this pass; the NPCs only open the client panels, they grant nothing themselves.
-- [x] Dev server run, feature exercised in a real (headless) browser, zero console
- errors/warnings.
-- [x] Loading/empty/error states: inherited from the existing shop/wardrobe panels (already
- designed — skeleton cards while loading, retry on fetch failure, "nothing owned yet" empty
- state in the wardrobe).
-- [x] Mobile/touch: the NPC proximity system already supports tap-to-interact
- (`world-life.js` `tryActivateAt`) alongside keyboard E.
-- [x] `data/changelog.json` entry added for the in-world boutique.
-- [x] Gaps intentionally left open are documented in [PORT-CHECKLIST.md](PORT-CHECKLIST.md)
- rather than silently dropped (cash/crypto cosmetics-economy unification, embedding Avatar
- Studio in-canvas, unifying the two selfie pipelines) — none block a working, demoable
- feature.
diff --git a/prompts/agent-briefs/W-world-online/W04-economy-and-money.md b/prompts/agent-briefs/W-world-online/W04-economy-and-money.md
deleted file mode 100644
index 29cd5dcd5..000000000
--- a/prompts/agent-briefs/W-world-online/W04-economy-and-money.md
+++ /dev/null
@@ -1,126 +0,0 @@
-# W04 — Economy & money
-
-> Read [W00-program-overview.md](W00-program-overview.md) first — stack, coin rules, the
-> off-schema networking pattern, and the definition of done all apply here unmodified.
-
-**Feature:** cash, a bank/ATM, buy/sell general-store vendors, and a `$THREE` bridge for
-premium cosmetics. **Depends on:** nothing (buildable standalone; W05/W06 depend on it).
-
----
-
-## Ground truth (verified in-repo before writing anything)
-
-Most of this brief's data layer already existed, explicitly labeled for this exact brief, and
-just needed wiring:
-
-| Piece | File | Status found |
-|---|---|---|
-| Purse (`gold`) + protected `bank` field, `bankTransfer()`, `grantCosmetic()` | [multiplayer/src/economy.js](../../../multiplayer/src/economy.js) | data model done, comment: *"banked cash — protected on death… W04 extends"* |
-| General-store sell/buy price tables + `$THREE` boutique catalog | [multiplayer/src/shop.js](../../../multiplayer/src/shop.js) | catalog done, header comment: *"the single source of truth for the /play general store… and the $THREE boutique (W04)"* |
-| Generic on-chain `$THREE` purchase primitives (quote → sign → verify) | [multiplayer/src/game-token.js](../../../multiplayer/src/game-token.js) | section header: *"generic fixed-amount purchases (W04 $THREE boutique)"* |
-| Vendor stall + Agent Exchange NPC engine | [src/game/npc/npc.js](../../../src/game/npc/npc.js), [world-life.js](../../../src/game/npc/world-life.js) | reusable, but no cash-store NPCs registered |
-| Vendor stall spawn points | [src/game/world-zones.js](../../../src/game/world-zones.js) | 2 points reserved, comment: *"Vendor stalls ringing Downtown (economy / shop briefs)"* |
-
-**Nothing in `WalkRoom.js` called any of it** — zero `onMessage` handlers for store/bank/
-boutique, zero imports from `shop.js` or `game-token.js`. The economy was fully designed and
-completely unreachable. This brief's job was to wire it, not redesign it.
-
-### The other cosmetics system — evaluated, and deliberately NOT reused here
-
-The repo also has a second, unrelated premium-cosmetics rail: `api/_lib/cosmetics.js` +
-`api/_lib/cosmetics-economy.js` + `api/x402/cosmetic-purchase.js` (R21–25, "the avatar shop").
-It sells a **different catalog** (`hat-baseball`, `skin-midnight`, `emote-thriller`… different
-slots: hat/glasses/earrings/outfit/skin/emote) settled in **USDC over x402**, for a standalone
-character-creator surface outside any game room. `WalkRoom.onJoin` already folds that ledger
-into a profile's owned set (`mergeOwnedFromLedger`) as a defensive compatibility shim — but the
-catalogs share zero ids in practice, so today it grants nothing. That's intentional isolation,
-not a bug to "fix" here: the in-game boutique needed to sell the in-game catalog
-(`multiplayer/src/cosmetics-catalog.js`: dye/headwear/eyewear/earrings/aura) priced in `$THREE`,
-which is exactly what `game-token.js`'s W04-labeled purchase primitives were already built for.
-Building a second on-chain path on top of the R22 rail would have been the "parallel payment
-stack" the program overview warns against; using the purpose-built, already-labeled W04 stack
-is the reuse-first call.
-
----
-
-## What shipped
-
-### Server (`multiplayer/src/rooms/WalkRoom.js`)
-
-- `storeReq` / `storeBuy` / `storeSell` — the general store. Buys/sells always price from
- `shop.js` server-side; a rejected trade costs nothing (insufficient cash, full pack, unlisted
- item all fail closed with a `notice`).
-- `bank` — moves cash between the purse and the protected bank via `economy.js`'s existing
- `bankTransfer()` (already clamped so it can never mint or strand cash). Banked cash survives a
- death drop (`dropCarried()` only strips the carried purse + pack) — that's the whole
- risk/reward point of using the bank.
-- `boutiqueReq` / `boutiqueQuote` / `boutiqueSettle` — the `$THREE` bridge. `boutiqueQuote`
- prices one premium cosmetic from `shop.js` and calls `game-token.js`'s `buildTokenPurchase()`
- for the buyer's connected wallet; `boutiqueSettle` re-fetches the **confirmed** transaction
- from Solana RPC via `verifyTokenPurchase()` and only then calls `grantCosmetic()`. The server
- never trusts a client "it worked" claim. A settled quote nonce is cached (`_boutiqueNonces`,
- pruned past the ~90s quote TTL) so a replayed settle can never double-grant.
-- New `ACTION_RATES` entries (`store`, `storeBuy`, `storeSell`, `bank`, `boutiqueQuote`,
- `boutiqueSettle`) throttle every new currency-mutating message type, per the program overview's
- anti-cheat baseline.
-
-### World
-
-- `src/game/world-zones.js` — one `atm` spawn point (`atm-downtown`, inside the Downtown safe
- zone, clear of the Agent Exchange roster and the vendor stalls).
-- `src/game/npc/economy-npcs.js` (new) — a small NPC catalog (reusing the existing `Npc` engine)
- seating a "General Store" clerk at each `vendor` spawn point and a "Bank Teller" at the `atm`
- spawn point. Merged into `WorldLife.npcs` alongside the Agent Exchange roster
- (`world-life.js`). A new `bank` role tint/ring color distinguishes the ATM from the green
- vendor markers.
-
-### Client UI
-
-- `src/game/economy-ui.js` + `economy-ui.css` (new) — the General Store modal (Buy/Sell tabs,
- live catalog + purse from the server) and the Bank/ATM modal (deposit/withdraw with a Max
- shortcut), opened by walking up to their NPC and pressing E. Every button sends an intent over
- `CommunityNet` and waits for the server's `store`/`profile`/`inv`/`notice` reply — no
- optimistic local mutation of currency.
-- `src/game/community-net.js` — `requestStore/storeBuy/storeSell/bank/requestBoutique/
- boutiqueQuote/boutiqueSettle` methods + the matching `store`/`boutique`/`boutiqueQuote` event
- buckets, following the exact pattern the existing quest/vehicle channels use.
-- `src/game/boutique-purchase.js` (new) — the on-chain half of the `$THREE` bridge: connect
- wallet → server quote → wallet signs the returned transaction → broadcast → server re-verifies
- on-chain → grant. Mirrors `coin-buy.js`'s connect/sign/broadcast/confirm flow and its
- friendly-error mapping.
-- `src/game/play-systems.js` — the wardrobe's previously-inert "Locked" cosmetic cards
- (`if (!owned) { … return card; }`, no click handler — a dead end per CLAUDE.md's "every button
- must work") now show the real `$THREE` price and are clickable, driving `boutique-purchase.js`
- end to end. This was the natural home for the boutique — a shop for what you're already
- wearing — rather than a fourth NPC to walk to.
-
----
-
-## Definition of done — verification performed
-
-- **Cash economy (store + bank), real Playwright, real server, no mocks:** a standalone Vite dev
- server + a freshly-started Colyseus `WalkRoom` (`scripts/tmp-verify-w04-economy.mjs`). A real
- browser joins `/play`, walks (real Rapier on-foot movement) to the general-store NPC, opens the
- store via E, buys a health potion with real cash (server-side `gold` deduction confirmed),
- inspects the Sell tab's honest empty state, walks to the bank/ATM NPC, deposits cash (bank
- balance increases, purse decreases — both server-echoed), and withdraws it back. Zero console
- errors/warnings.
-- **The `$THREE` bridge, real on-chain settlement, no mocks:** `game-token.js`'s
- `SOLANA_RPC_URL`/`GAME_TOKEN_MINT` are runtime-overridable specifically so a test deployment can
- point at devnet — the codebase's own sanctioned pattern for proving on-chain code without
- mainnet funds (CLAUDE.md: "no real mainnet mints in tests/fixtures by default"). Verification
- drove a real devnet SPL mint standing in for `$THREE`, a real airdropped devnet keypair as the
- buyer, a real `buildTokenPurchase`/`verifyTokenPurchase` round trip against live devnet RPC, and
- a real wallet-injected browser session signing and broadcasting the actual quoted transaction —
- see the owner-facing report for the run's specifics. This is real devnet settlement, not a
- simulated balance: a genuine signature, a genuine broadcast, a genuine confirmed transaction the
- server re-reads from RPC before granting the cosmetic.
-
-## Explicitly out of scope (documented, not silently dropped)
-
-- **No cash→`$THREE` faucet/payout.** "Sink/faucet" in the original brief table reads as the
- standard MMO-economy pairing already covered by the general store (buy = sink, sell = faucet) —
- not a request to mint real tokens for in-game cash. Paying real `$THREE` out of a treasury for
- gameplay is a different, much higher-risk feature (float management, abuse surface) with no
- existing design spec; it isn't built here, and shouldn't be added without an explicit owner
- design pass.
diff --git a/prompts/agent-briefs/W-world-online/W07-combat-and-weapons.md b/prompts/agent-briefs/W-world-online/W07-combat-and-weapons.md
deleted file mode 100644
index c3f2704f9..000000000
--- a/prompts/agent-briefs/W-world-online/W07-combat-and-weapons.md
+++ /dev/null
@@ -1,168 +0,0 @@
-# W07 — Combat & weapons
-
-> Read [W00-program-overview.md](W00-program-overview.md) first — stack, coin rules,
-> the off-schema networking pattern, and the definition of done all apply here
-> unmodified.
-
-**Feature:** server-authoritative melee/ranged combat, PvE mobs confined to named
-danger zones, safe-town PvP gating, a wanted/heat meter, death + lootable
-tombstones, and automatic respawn. **Depends on:** W01 (physics, district bounds).
-
----
-
-## Ground truth (verified in-repo before writing anything)
-
-Like W04, most of this brief's data + schema layer already existed, explicitly
-labeled for this exact brief, and was simply never wired into `WalkRoom` or the
-client:
-
-| Piece | File | Status found |
-|---|---|---|
-| Targeting geometry, damage/armor resolution, wanted/heat math | [multiplayer/src/combat.js](../../../multiplayer/src/combat.js) | pure, fully built, header comment: *"the pure, server-authoritative core of the /play combat system (W07)"* |
-| Weapon tuning (`WEAPONS`), mob tuning (`MOB_STATS`), loot tables | [multiplayer/src/items.js](../../../multiplayer/src/items.js) | data tables complete, every export unused outside their own module |
-| Safe/danger zone geometry (`DANGER_ZONES`, `dangerZoneAt`) + mob spawn anchors | [multiplayer/src/world-features.js](../../../multiplayer/src/world-features.js) | doc comment named the still-unwritten client module "PlayCombat" by name |
-| `Mob`/`Tombstone` schema classes, `Player.dead`/`Player.heat` fields, `WalkState.mobs`/`.tombstones` | [multiplayer/src/schemas.js](../../../multiplayer/src/schemas.js) | fully defined, append-only, never populated by the room |
-| Player vitals (`hp`/`maxHp`/`armor`/`maxArmor`/`heat`), `consumeSlot` (heal/armor), `dropCarried`, `reviveProfile`, `bankTransfer`-style helpers | [multiplayer/src/economy.js](../../../multiplayer/src/economy.js) | starter kit already seeds a sword **and** a pistol "so the W07 combat loop... is playable on arrival" |
-| Sellable weapons/ammo/armor in the general store | [multiplayer/src/shop.js](../../../multiplayer/src/shop.js) | comment: *"the ammo the W07 weapons burn"* |
-| Client `net.attack()` + a `combat` event bucket | [src/game/community-net.js](../../../src/game/community-net.js) | send method existed; nothing ever called it, nothing ever listened for a reply that could arrive |
-| `ACTIVITIES` "attack" entry (tool: sword, near: nearestMobSpawn) | [src/game/play-systems.js](../../../src/game/play-systems.js) | declared, never dispatched — `_onAction()` only ever called `castFish()` |
-| `WorldHud.setHealth/setArmor/setWanted` | [src/game/hud/world-hud.js](../../../src/game/hud/world-hud.js) | fully built GTA-style HUD (health/armor bars, wanted stars, minimap, cash), **never imported anywhere** in `/play` |
-
-**Nothing in `WalkRoom.js` called any combat helper** (`grep` for `weaponDef|mobStats|rollLoot|selectTarget|rollDamage|applyDamage|addHeat` → only the import line hit) and **no client module rendered a mob, a tombstone, or the wilds**. The whole system was designed end-to-end and completely unreachable. This brief's job was to wire it, not redesign it — matching the W04 pattern exactly.
-
-One real gap found and closed in passing: `src/game/items.js` (the client's display/glyph registry) was missing `bat`/`pistol`/`bow`/`ammo`/`arrow`/`vest` — the server already had icons for all of them (`multiplayer/src/items.js`), but the client would have rendered them as a bare first-letter fallback in the hotbar. Added.
-
----
-
-## What shipped
-
-### Server
-
-- **`multiplayer/src/combat-handlers.js`** (new) — mirrors `activities.js`'s split
- exactly: the room registers two message handlers and two ticks, everything else
- stays out of `WalkRoom.js`.
- - **Mob AI** (`seedMobs`/`tickMobs`, 200 ms tick): seeds a difficulty gradient
- across the three named `DANGER_ZONES` (southern-wilds: 2 goblins,
- northern-wilds: goblin + ogre, eastern-marches: ogre + troll). Each mob idles,
- chases the nearest live player within its `aggro` radius, and swings on
- `atkRange`/`atkCd` — clamped so a chase can never step outside its home zone's
- circle, which is what keeps the town lawful **by construction** rather than by
- a separate per-action check. A killed mob respawns fresh at a new random point
- in the same zone after 26s.
- - **`attack` intent**: validates a weapon is on the active hotbar slot, the
- attacker is standing in a `DANGER_ZONES` circle (attacking is simply
- unavailable from town), ammo for ranged weapons, and the per-weapon cooldown;
- then builds the live candidate list (mobs + other players, PvP candidates
- filtered to danger-zone-only on both ends) and hands it to
- `combat.selectTarget`. A mob kill grants XP/gold and spills a tombstone; a
- player kill raises the attacker's heat (`combat.addHeat`), applies damage to
- the **victim's own off-schema vitals** (never trusted from the attacker), and
- on a kill calls the shared `killPlayer` death flow.
- - **`loot` intent**: proximity-gated (3.2 m) claim of a tombstone's off-schema
- gold + item manifest into the looter's pack/purse, firing the existing
- `collect` quest-event hook per item so W05 objectives can key off combat loot
- with zero W05 changes.
- - **`killPlayer`**: drops carried gold + pack into a tombstone (`dropCarried` —
- banked cash and equipped hotbar tools survive, matching the existing
- risk/reward contract), flags `player.dead = true` on the shared schema (so
- peers render the downed state and stop targeting them), and schedules a
- 5.5s respawn back at the safe `SPAWN_POINT` at full HP/zero armor
- (`reviveProfile`).
- - **`tickHeat`** (1s tick): decays every online player's wanted meter, faster in
- town than in the wilds, republishing the public star count only when it
- actually changes.
- - `WalkRoom.js`: wires `registerCombatHandlers`/`seedMobs`/`tickMobs`/`tickHeat`
- into `onCreate` next to the vehicle/activity seeding, adds `attack: 0` to the
- per-player cooldown map, publishes `player.heat` on join, extends `_sendInv`
- to carry `armor`/`maxArmor`/`heat` on every economy delta, and rejects a
- `move` from a downed player (`player.dead`) so a "ragdolled" peer can't be
- walked around mid-death — a real correctness gap found while wiring this in,
- not part of the original ground truth.
-
-### Client
-
-- **`src/game/combat-system.js`** (new, "PlayCombat" per the world-features.js doc
- comment) — the server's mob/tombstone schema state rendered as procedural
- low-poly monster meshes (primitive geometry, no third-party assets, matching
- `vehicle-mesh.js`'s approach) with live HP bars, plus tombstone markers with a
- walk-up loot prompt (`E`, or a tap on mobile via `tryActivateAt`). Paints the
- danger-zone ground (a red ring + faint fill + a proximity-gated signpost) from
- the **same** `DANGER_ZONES` data the server gates on, so the rendered danger
- ring and the authoritative one can never drift apart. Owns hit feedback
- (floating damage numbers, a red screen flash when hit, a death overlay driven
- by the existing `notice` channel) and a touch-friendly Attack button that only
- appears while a weapon is equipped.
-- **`src/game/hud/world-hud.js`** — finally imported and mounted (it was fully
- built and dormant). `CombatSystem` feeds it `setHealth`/`setArmor`/`setWanted`
- from `profile`/`inv`/`combat` messages, plus `setCash`/`setBanked` (closing that
- same dormant-HUD gap for W04's money readout as a natural side effect of
- mounting it at all — `playSystems.setGoldVisible(false)` retires the legacy
- purse chip the HUD's own comment already called out as legacy) and
- `minimap.setViewer` every frame.
-- **`src/game/community-net.js`** — `mobAdd/mobChange/mobRemove` and
- `tombstoneAdd/tombstoneRemove` state-callback wiring (byte-identical pattern to
- the existing vehicle wiring), a `lootTombstone(id)` send method, and a clarified
- `combat` message contract (`{role:'attacker'|'victim', target:'mob'|'player', ...}`
- — the original doc comment's shape was ambiguous about whose hit a `combat`
- event described; fixed on the way in).
-- **`src/game/coincommunities.js`** — instantiates `CombatSystem` alongside
- `PlaySystems`/`VehicleManager`, ticks it every frame, binds the `X` key to
- `combat.attack()` (the fourth free single-letter key after `e`/`f`/`i`/`c`/`q`
- were already taken), folds `combat.interact()` into the existing `E`
- townsperson/kiosk/exchange fallback chain, and adds `combat.tryActivateAt(ray)`
- to the same tap-dispatch chain vehicles/NPCs already use for mobile parity.
- `RemotePlayer` now renders a peer's `dead`/`heat` schema fields: a downed peer
- tilts flat and dims (an honest static pose, not a fabricated physics ragdoll —
- nothing else in the client has one) and a wanted peer's nameplate carries a
- star-count badge, matching `WorldHud`'s own star vocabulary.
-
----
-
-## Definition of done — verification performed
-
-Real Colyseus `WalkRoom` (freshly started, no mocks) + a real Vite dev server +
-two independent Chromium contexts (Playwright), driven by real WASD/sprint
-keyboard input through the real on-foot Rapier movement path — see
-[scripts/tmp-verify-w07-combat.mjs](../../../scripts/tmp-verify-w07-combat.mjs).
-Proved, against the live production code (not a test harness copy):
-
-1. The seeded mob roster (`state.mobs`) replicates to the client on join.
-2. Attacking from town is rejected server-side with a `notice` — zero damage,
- zero state change — proving the safe-zone gate is enforced, not just rendered.
-3. Walking into the Southern Wilds and swinging a real sword lands a real
- server-rolled kill on a live mob, which spills a real tombstone into
- `state.tombstones`.
-4. Looting that tombstone removes it from the world and credits the looter.
-5. A second player joins the same wilds; player A's swing reduces player B's
- **own privately-held** HP (never trusted from A), raises A's wanted heat on
- the shared schema, and renders a real wanted star on `WorldHud`.
-6. Finishing B off flags `player.dead` on the shared schema (A sees B's downed
- pose), and a stray `move` B sends while downed is rejected server-side.
-7. B respawns automatically ~5.5s later, back at the safe spawn point, at full
- HP.
-8. Zero unexpected console errors/warnings across both sessions.
-
-See the script's own PASS/FAIL log for the exact run this shipped against.
-
-## Explicitly out of scope (documented, not silently dropped)
-
-- **No in-hand weapon meshes.** Nothing in the codebase attaches a mesh to an
- avatar's hand bone across the full multi-rig canonicalization system yet (not
- even the existing fishing rod) — building that generically was a separate,
- much larger R&D effort outside this brief. Combat feedback instead uses
- honest, already-established client patterns: floating damage numbers and a
- screen flash, the same visual language `play-systems.js` already uses for
- catch/miss feedback.
-- **No ragdoll physics.** A downed peer gets a static tilted pose, not a
- simulated ragdoll — no other system in the client has one, and faking it with
- a single rotation is more honest than a half-built physics rig.
-- **No NPC "wanted" enforcement.** The wanted/heat meter is fully modeled and
- visible (stars on the HUD and on a peer's nameplate), but nothing yet *reacts*
- to it — the doc comment in `combat.js` explicitly defers enforcer NPCs to W08
- ("in W08, NPC enforcers will react to [it]"). Not a gap in this brief.
-- **No kill quest objectives.** `multiplayer/src/quests.js` only knows
- `collect`/`goto`/`interact` objective types; a mob kill is *not* modeled as its
- own quest event type here — looted **items** already fire the existing
- `collect` event per item, which is enough for any W05 mission that wants
- "bring back N bones" without touching the quest engine. A dedicated `kill`
- objective type is a W05 decision, not this brief's to make.
diff --git a/prompts/agent-briefs/W-world-online/W08-npcs-and-world-life.md b/prompts/agent-briefs/W-world-online/W08-npcs-and-world-life.md
deleted file mode 100644
index 99ba96381..000000000
--- a/prompts/agent-briefs/W-world-online/W08-npcs-and-world-life.md
+++ /dev/null
@@ -1,159 +0,0 @@
-# W08 — NPCs & world life
-
-> Read [W00-program-overview.md](W00-program-overview.md) first — stack, coin rules, the
-> off-schema networking pattern, and the definition of done all apply here unmodified.
-
-**Feature:** traffic, vendors, quest-givers, and mobs — the living-world layer that makes a
-coin world feel inhabited rather than a stage set with a few paid-service NPCs on it.
-**Depends on:** W01 (open-world foundation).
-
-> Like [W03](W03-character-avatar-customization.md) and
-> [W04](W04-economy-and-money.md), this file didn't exist when this pass started — the
-> README/W00 table referenced `W08-npcs-and-world-life.md`, but a large share of the actual
-> system was already built (dated 2026-07-04, before this pass) and only wired up to a point.
-> Filed alongside the change that closes the remaining gap.
-
----
-
-## Ground truth (verified in-repo before writing anything)
-
-Most of "traffic" and "vendors" were **already fully shipped**, and most of "quest-givers"
-was **fully built server-side and completely unreachable** — the same "designed but nobody
-ever called it" shape W04 found for the cash economy:
-
-| Piece | File | Status found |
-|---|---|---|
-| Deterministic nav graph (pedestrian loops + ring road, W01-navmesh-ready) | [src/game/npc/nav-graph.js](../../../src/game/npc/nav-graph.js) | shipped, real |
-| Ambient pedestrians + traffic (client-side, deterministic, non-authoritative) | [src/game/npc/ambient-life.js](../../../src/game/npc/ambient-life.js) | shipped, real, wired into `WorldLife` |
-| Vendor NPCs (Agent Exchange x402 roster + W04 general-store/bank + W03 boutique) | [src/game/npc/npc-catalog.js](../../../src/game/npc/npc-catalog.js), [economy-npcs.js](../../../src/game/npc/economy-npcs.js) | shipped, real |
-| Hostile mobs (visual + nav half, gated on a `window.twsCombat` contract) | [src/game/npc/mobs.js](../../../src/game/npc/mobs.js) | shipped, correctly asleep — W07 doesn't exist yet |
-| Quest engine: mission registry, daily rotation, objectives, heist crew instances, rewards | [multiplayer/src/quests.js](../../../multiplayer/src/quests.js) | **fully built, fully wired server-side** (`WalkRoom` `questReq`/`questAccept`/`questAbandon`/`questInteract` handlers all real) |
-| Quest zones (goto/interact world positions the server validates against) | [multiplayer/src/quest-zones.js](../../../multiplayer/src/quest-zones.js) | fully built server-side; header comment names the exact gap: *"the client (quest-systems — renders the markers...)"* was never written |
-| Client network methods (`requestQuests`/`questAccept`/`questAbandon`/`questInteract`, `quests`/`questComplete` events) | [src/game/community-net.js](../../../src/game/community-net.js) | wired, **zero consumers** |
-| `giver` field on every mission | [multiplayer/src/quests.js](../../../multiplayer/src/quests.js) | comment: *"in-world quest-giver label (W08 NPCs hook this; today it's flavour)"* |
-
-**The actual gap:** six missions across five named givers (Dockmaster Reyes, Warden Okoro,
-Cook Mara, Foreman Dell ×2, The Fixer) had zero physical presence in the world and zero
-client UI — a player could never discover, accept, track, or see the reward for a single job,
-despite the entire server-authoritative engine (daily rotation, prereqs, per-objective
-progress, heist crew splitting) being complete and correct. This brief's job was to build the
-missing client half and hook the givers up, not touch the engine.
-
----
-
-## What shipped
-
-### Quest-giver NPCs (`src/game/npc/quest-npcs.js`, new)
-
-One `Npc` per named giver, using the same data-driven engine every other townsperson uses
-(`npc.js`/`world-life.js` — proximity ring, "press E" prompt, in-character greeting). Placed a
-few metres clear of their own mission's quest zones (never blocking the objective marker) and
-clear of every other NPC cluster:
-
-- **Dockmaster Reyes** (24, 4) — `daily-anglers-haul` (catch 5 fish).
-- **Warden Okoro** (6, 36) — `daily-grounds-survey` (patrol 3 lookouts, pure movement).
-- **Cook Mara** (-24, -16) — `stock-the-kitchen` (catch 12 fish, repeatable).
-- **Foreman Dell** (26, -6) — `harbor-courier` (pickup/dropoff run) and `welcome-to-work`.
-- **The Fixer** (44, 0) — `vault-job` (2-player co-op heist).
-
-Pressing E opens the Jobs Board scrolled straight to that giver's mission (`world.openQuests
-(highlight)`), the same physical-storefront pattern W03's boutique NPCs and W04's store/bank
-clerks already established.
-
-### Quest-zone waypoints (`src/game/npc/quest-markers.js`, new)
-
-The client half `quest-zones.js`'s own header comment said was missing. Renders a ground ring
-+ floating waypoint chip for every zone tied to the **current objective** of any of the
-player's active missions (not the whole registry — accept nothing, see nothing). Driven purely
-by the `quests` snapshot the server already sends, so it's automatically correct after every
-accept/abandon/progress tick. Interact-kind zones (courier pickup/dropoff, the two alarm
-terminals, the vault door) additionally contend for `world-life.js`'s single shared "press E"
-prompt against NPCs — whichever is actually closer wins — and pressing E there sends
-`net.questInteract()`; the server re-derives the zone from the player's own authoritative
-position, same anti-cheat posture as every other off-schema action. Goto zones (the three
-survey lookouts) get a waypoint only — the server already auto-completes them from real
-movement (zone-entry edge detection), so there's nothing to press.
-
-### Jobs Board UI (`src/game/quests-ui.js` + `quests-ui.css`, new)
-
-A Board tab (available offers — title, giver, summary, objective preview, reward, an "Accept"
-button, heist offers flagged with the crew size they need) and an Active tab (every accepted
-run with a live per-objective checklist — done/current/upcoming — and an "Abandon" button).
-Reuses the exact `EconPanel` shell W04's store/bank modals already built (now exported from
-[economy-ui.js](../../../src/game/economy-ui.js) instead of forked) so it reads as the same
-family of walk-up counter, not a new design language. Opening from a specific giver flashes and
-scrolls to that giver's row once. Also reachable directly from the HUD's new **Jobs** button
-(`src/game/coincommunities-ui.js`, mirroring the existing Shop/My Fits buttons) — a player who
-hasn't found a giver yet can still browse.
-
-### Wiring (`src/game/coincommunities.js`, `world-life.js`)
-
-- `WorldLife`'s NPC list gained `questNpcsFor()` alongside the existing Agent Exchange +
- economy rosters; its constructor now also owns a `QuestMarkers` instance.
-- The shared proximity prompt/interact dispatch (`_nearestNpc` → `_nearestInteractable`) now
- picks whichever is closer — an NPC or an in-range interact quest zone — so the world never
- shows two competing prompts.
-- `world.openQuests(highlight)` calls a new `_toggleQuests()` method (lazy-imports
- `quests-ui.js` so the panel chunk isn't in the initial bundle), mirroring `_toggleShop`/
- `_toggleWardrobe`.
-- A global `net.on('questComplete', ...)` listener toasts every payout (`"<title> complete —
- +<gold> cash"`, success tone) even when the board panel isn't open — `WalkRoom` sends
- `questComplete` as its own event, not a generic `notice`, so without this a completed job
- would otherwise pay out in total silence.
-
-### Docs
-
-- [STRUCTURE.md](../../../STRUCTURE.md) gained a row for this surface.
-
----
-
-## Explicitly out of scope (documented, not silently dropped)
-
-- **Mobs stay asleep.** `mobs.js` already implements the full visual + nav-graph chase logic,
- gated behind `window.twsCombat` (W07). Building W07 to light it up is a different, much
- larger brief (health/armor, wanted levels, weapons, safe zones) with no design spec here —
- out of scope for "NPCs & world life" specifically. Confirmed still correctly inert:
- `MobSystem.enabled` is `false` with no combat contract present, and it spawns nothing.
-- **`WorldHudSystem` (the W10 HUD layer with `setObjective`/`clearObjective`, the minimap, the
- radial "Missions" menu item) is still completely unwired into `coincommunities.js`** — a
- pre-existing gap from before this pass (zero importers), not something this brief's scope
- covers. The Jobs Board panel itself is the source of truth for objective progress today;
- wiring the ambient HUD objective card is W10's job when that pass lands.
-- **No new "mob" content, no new traffic vehicle types.** Ambient life's existing pedestrian/
- vehicle counts and behavior were already tuned and shipped; this brief didn't touch them.
-
----
-
-## Definition of done
-
-Inherits [W00](W00-program-overview.md)'s full DoD. Checked off:
-
-- [x] Reuses the existing off-schema architecture and `world.three.ws`-style patterns — the
- quest engine, quest zones, and network plumbing were untouched; only the missing client
- (NPCs, waypoints, panel) was added.
-- [x] Server-authoritative: the panel only ever sends intents (`questAccept`/`questAbandon`/
- `questInteract`); the server's `quests`/`questComplete`/`notice` replies are the only
- thing that changes rendered state. A quest zone "interact" is re-derived from the
- player's server-tracked position, never trusted from the client.
-- [x] Every new networked action reuses an existing, already-rate-limited handler
- (`ACTION_RATES.quest`/`questInteract` predate this pass) — no new message types added.
-- [x] Dev server run, feature exercised in a real (headless) browser against a freshly-started
- Colyseus `WalkRoom`, zero unexpected console errors/warnings.
-- [x] Loading/empty/error states: the Board tab's empty state explains daily rotation and
- repeatable availability; the Active tab's empty state points back to the Board/an NPC;
- a failed accept (already active, daily done, prereqs unmet) surfaces the server's own
- reason text via the existing `notice` toast.
-- [x] Mobile/touch: quest-giver NPCs and interact-zone waypoints both hit-test through the
- same `tryActivateAt` raycast every other NPC already supports.
-- [x] `data/changelog.json` entry added.
-- [x] Gaps intentionally left open (mobs/W07, `WorldHudSystem`/W10) are documented above, not
- silently dropped — neither blocks a working, demoable feature.
-
-**W08 done when:** a player can walk up to any of five quest-giver NPCs (or open Jobs from the
-HUD), see the real server-priced board, accept a job, see a waypoint appear at its objective,
-walk there (goto auto-completes; interact zones offer their own "press E"), and receive a real
-cash payout with a toast — all server-authoritative, the ambient crowd/traffic reading
-identically for every player in the world the whole time. **Verified for real** against a
-local Vite dev server + a freshly-started Colyseus `WalkRoom` — no mocked physics, no mocked
-network, no mocked quest data — see `scripts/tmp-verify-w08-*.mjs` (deleted after use per
-CLAUDE.md repo hygiene; see [PORT-CHECKLIST.md](PORT-CHECKLIST.md) for the dated run details).