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: retire the 18 shipped 3D-world briefs (R01-R09, R17-R25)

fudjia9c6cf6e0782f
diff --git a/docs/ALL.md b/docs/ALL.md
index ee9fe2595..984e77d32 100644
--- a/docs/ALL.md
+++ b/docs/ALL.md
@@ -1,7 +1,7 @@
<!-- GENERATED by scripts/combine-docs.mjs — do not edit by hand. Edit the source files under docs/ and re-run. -->
# three.ws — Combined Documentation
-> Single-file snapshot of every document under [`docs/`](.). Generated 2026-07-10 from **296 files** (~4272 KB).
+> Single-file snapshot of every document under [`docs/`](.). Generated 2026-07-10 from **296 files** (~4273 KB).
> The individual source files remain the canonical, editable copies — this file is a read-only aggregate.
## Table of contents
@@ -14991,22 +14991,34 @@ The engine behind [/markets/news](https://three.ws/markets/news) and
### Live feed
```
-GET /api/news/feed?category=defi&q=etf&source=coindesk&limit=30&offset=0&meta=1
+GET /api/news/feed?category=defi&q=etf&source=coindesk&lang=en&limit=30&offset=0&meta=1
```
-Aggregates 38 publisher RSS/Atom feeds natively (registry:
-`api/_lib/news-sources.js`). All params optional: `category` (one of the 14
-canonical categories — `general`, `bitcoin`, `ethereum`, `solana`,
-`defi`, `nft`, `trading`, `research`, `onchain`, `institutional`,
-`mainstream`, `asia`, `regulation`, `journalism`), `source` (a single source
-key, overrides `category`), `q` (full-text over title/description/tickers),
-`limit` ≤ 50, `offset`. Returns
-`{ articles: [{ id, title, link, description, image, author, source,
+Aggregates the native publisher RSS/Atom registry
+(`api/_lib/news-sources.js`). All params optional:
+
+| Param | Meaning |
+| --- | --- |
+| `category` | One of the canonical categories. Fetch the live list with `meta=1`; unknown values return `400 bad_category` with the valid set. |
+| `source` | A single source key. Overrides `category` and `lang`. |
+| `lang` | `en` (default), any registry language, or `all`. The registry carries international feeds; they are opt-in so the default feed does not interleave languages. Unknown values return `400 bad_language`. |
+| `q` | Full-text over title, description, and tickers. |
+| `limit` | ≤ 50 (default 30). |
+| `offset` | Pagination offset. |
+
+Returns `{ articles: [{ id, title, link, description, image, author, source,
source_key, category, pub_date, tickers[], sentiment: { score, label,
-confidence } }], total, sources_ok, sources_total, fetched_at }`; with
-`meta=1` it also returns `categories[]` and the `sources[]` registry. Each
-source is cached server-side for 5 minutes and served stale (up to 24 h) if
-its publisher goes down. CDN cache 120 s.
+confidence } }], total, limit, offset, lang, sources_ok, sources_total,
+fetched_at }`. With `meta=1` it also returns `categories[]`, `languages[]`,
+and the `sources[]` registry (each with `key`, `name`, `category`, and
+`language` where the feed is not English).
+
+Every feed in the registry was fetched and parsed before being listed — see
+`scripts/news-sources-probe.mjs`, which re-validates the registry and exits
+non-zero if any source has gone dead. Each source is cached server-side for 5
+minutes and served stale (up to 24 h) if its publisher goes down; a feed that
+404s backs off exponentially, while one that merely rate-limits us retries
+within 30 minutes. CDN cache 120 s.
### Historical archive — 662,047 articles since 2017
@@ -33987,7 +33999,7 @@ that set `auto_fund_enabled = true` (default off). See
- [x402 ring economy](x402-ring-economy.md) — the internal recirculation loop.
- [Pump platform fee](pump-platform-fee.md) — the pump trade fee detail.
- [Coin-launch wallets](ux-flows/08-coin-launch-wallets.md) — launch-time wallet flow.
-- [Creator revenue splits](../prompts/agent-briefs/R-3d-world-fun/phase-4/R25-creator-revenue-splits.md) — cosmetic split rationale.
+- [Creator revenue splits](../api/_lib/cosmetics-economy.js) — `recordSaleAndSplit`: the cosmetic split math and its real USDC payout.
- [Agent wallet custody](agent-wallets.md) — how custodial keys are held.
- [Solana signers runbook](../api/_lib/solana-signers.js) — signer/funder wallets + funding.
diff --git a/docs/money-map.md b/docs/money-map.md
index a9835195e..e53e4dfb4 100644
--- a/docs/money-map.md
+++ b/docs/money-map.md
@@ -181,6 +181,6 @@ that set `auto_fund_enabled = true` (default off). See
- [x402 ring economy](x402-ring-economy.md) — the internal recirculation loop.
- [Pump platform fee](pump-platform-fee.md) — the pump trade fee detail.
- [Coin-launch wallets](ux-flows/08-coin-launch-wallets.md) — launch-time wallet flow.
-- [Creator revenue splits](../prompts/agent-briefs/R-3d-world-fun/phase-4/R25-creator-revenue-splits.md) — cosmetic split rationale.
+- [Creator revenue splits](../api/_lib/cosmetics-economy.js) — `recordSaleAndSplit`: the cosmetic split math and its real USDC payout.
- [Agent wallet custody](agent-wallets.md) — how custodial keys are held.
- [Solana signers runbook](../api/_lib/solana-signers.js) — signer/funder wallets + funding.
diff --git a/prompts/agent-briefs/R-3d-world-fun/README.md b/prompts/agent-briefs/R-3d-world-fun/README.md
index b90ae7269..1544cc972 100644
--- a/prompts/agent-briefs/R-3d-world-fun/README.md
+++ b/prompts/agent-briefs/R-3d-world-fun/README.md
@@ -1,56 +1,41 @@
-# R — 3D World "Make It Fun" program
+# R — 3D World "Make It Fun" program · **complete**
Turn `/play` from a charming hangout into a place with things to **do** together: Roblox-style
social play + mini-games + an avatar economy, plus a Minecraft-style shared sandbox — all
wallet-native to `$THREE`.
-Source roadmap: [`prompts/roadmap/3d-world-fun.md`](../../roadmap/3d-world-fun.md). Each brief below
-is the corresponding roadmap task, expanded into a self-contained agent prompt.
-
-## Read order
-
-1. **[R00 — Program overview & shared architecture](R00-program-overview.md)** — READ FIRST.
- Stack, the off-schema networking pattern, coin rules, phase map, dependency graph, DoD.
- Every other brief assumes it.
-
-## Briefs (one agent each, end-to-end)
-
-### Phase 1 — Foundation (sequential; unblocks everything)
-
-| Brief | Feature | Depends on |
-|-------|---------|------------|
-| [R01](phase-1/R01-server-world-object-sync.md) | Server: generic world-object state sync | — |
-| [R02](phase-1/R02-client-world-objects-manager.md) | Client: WorldObjects manager for /play | R01 |
-| [R03](phase-1/R03-cosmetics-accessory-rig.md) | Cosmetics rig: wire accessory GLBs to avatars | — |
-
-### Phase 2 — Social playground (parallel after Phase 1)
-
-| Brief | Feature | Depends on |
-|-------|---------|------------|
-| [R04](phase-2/R04-emoji-confetti-reactions.md) | Emoji & confetti reactions | — |
-| [R05](phase-2/R05-kickable-physics-ball.md) | Kickable physics ball | R01, R02 |
-| [R06](phase-2/R06-dance-floor-zone.md) | Dance floor zone | — |
-| [R07](phase-2/R07-minigame-king-of-the-totem.md) | Mini-game: King of the Totem | — |
-| [R08](phase-2/R08-minigame-tag.md) | Mini-game: Tag | — |
-| [R09](phase-2/R09-emote-wheel.md) | Emote wheel (expose all 70 animations) | — |
-
-### Phase 3 — Sandbox building (mostly sequential)
-
-| Brief | Feature | Depends on |
-|-------|---------|------------|
-| [R17](phase-3/R17-world-object-persistence.md) | Persistence layer for world objects | R01 |
-| [R18](phase-3/R18-build-mode-and-placement-ui.md) | Build mode + placement UI | R01, R02 |
-| [R19](phase-3/R19-build-netcode-permissions-antigrief.md) | Build netcode hardening + permissions + anti-grief | R17, R18 |
-| [R20](phase-3/R20-structures-snapping-sharing.md) | Structures, snapping, and sharing | R18, R19 |
-
-### Phase 4 — Avatar economy (depends on R03 rig + x402 rails)
-
-| Brief | Feature | Depends on |
-|-------|---------|------------|
-| [R21](phase-4/R21-cosmetics-catalog-shop-ui.md) | Cosmetics catalog + shop UI | R03 |
-| [R22](phase-4/R22-x402-purchase-flow.md) | x402 purchase flow | R21 |
-| [R23](phase-4/R23-owned-inventory-equip-persistence.md) | Owned-cosmetics inventory + equip persistence | R03, R22 |
-| [R24](phase-4/R24-token-gated-worlds.md) | Token-gated worlds | Solana rails |
-| [R25](phase-4/R25-creator-revenue-splits.md) | Creator revenue splits + economy polish | R22 |
-
-Suggested build order = phase order. Phase 1 unblocks the most. See R00 for the full graph.
+Source roadmap: [`prompts/roadmap/3d-world-fun.md`](../../roadmap/3d-world-fun.md).
+
+## Status
+
+**All 18 briefs (R01–R09, R17–R25) shipped.** Each brief's prompt file was removed once its
+Definition of Done was verified against the running code on 2026-07-10 — the code and its tests
+are the record now. [R00 — Program overview](R00-program-overview.md) stays: it documents the
+shared architecture (the off-schema networking pattern, coin rules, DoD) that all of these
+surfaces are built on, and new `/play` work still assumes it.
+
+## Where the work landed
+
+| Brief | Feature | Lives in |
+|-------|---------|----------|
+| R01 | Server: generic world-object state sync | [`multiplayer/src/schemas.js`](../../../multiplayer/src/schemas.js) (`WorldObject`, `objects` map) + [`WalkRoom.js`](../../../multiplayer/src/rooms/WalkRoom.js) (`_handleObjSpawn/Update/Remove`, caps, bounds clamp) |
+| R02 | Client: WorldObjects manager | [`src/game/world-objects.js`](../../../src/game/world-objects.js) (`WorldObjects`, `registerKind`), wired in [`coincommunities.js`](../../../src/game/coincommunities.js) |
+| R03 | Cosmetics rig: accessory GLBs on avatars | `cosmetics` schema field + `set-cosmetics` handler; [`src/game/cosmetics-wardrobe.js`](../../../src/game/cosmetics-wardrobe.js) |
+| R04 | Emoji & confetti reactions | reaction toolbar in [`coincommunities-ui.js`](../../../src/game/coincommunities-ui.js); server cooldown + rebroadcast in `WalkRoom.js` |
+| R05 | Kickable physics ball | server-authoritative `_tickBall` in `WalkRoom.js`; `KIND_FACTORIES.set('ball', …)` |
+| R06 | Dance floor zone | `floor:beat` broadcast + on-floor clip crossfade |
+| R07 | Mini-game: King of the Totem | `game:king` broadcast, sole-occupant scoring, HUD scoreboard |
+| R08 | Mini-game: Tag | `it` / `itSince` schema fields, transfer + reassign-on-disconnect, "YOU'RE IT" HUD |
+| R09 | Emote wheel | radial wheel + gamepad input in `coincommunities-ui.js` / `coincommunities.js` |
+| R17 | World-object persistence | [`multiplayer/src/persistence.js`](../../../multiplayer/src/persistence.js), [`block-store.js`](../../../multiplayer/src/block-store.js), `tests/block-store.test.js` |
+| R18 | Build mode + placement UI | `PROP_CATALOG` + build-mode state machine (ghost / snap / rotate / delete-own) |
+| R19 | Build netcode, permissions, anti-grief | density tiles, protected discs, per-player caps in `WalkRoom.js`; `tests/walkroom-build-perms.test.js` |
+| R20 | Structures, snapping, sharing | `COMPOSITE_PIECES`, instanced voxels, build-shot share sheet, [`api/play/builds.js`](../../../api/play/builds.js) |
+| R21 | Cosmetics catalog + shop UI | [`api/cosmetics/catalog.js`](../../../api/cosmetics/catalog.js), [`src/game/cosmetics-shop.js`](../../../src/game/cosmetics-shop.js) |
+| R22 | x402 purchase flow | [`api/x402/cosmetic-purchase.js`](../../../api/x402/cosmetic-purchase.js), [`api/_lib/cosmetics-ownership.js`](../../../api/_lib/cosmetics-ownership.js), `tests/cosmetics-purchase.test.js` |
+| R23 | Owned inventory + equip persistence | `cosmetics-wardrobe.js`; `_applyJoinCosmetics` in `WalkRoom.js` |
+| R24 | Token-gated worlds | [`api/community/holder-pass.js`](../../../api/community/holder-pass.js) — real on-chain balance read → HMAC pass, `verifyHolderPass` at join |
+| R25 | Creator revenue splits | [`api/_lib/cosmetics-economy.js`](../../../api/_lib/cosmetics-economy.js) (`recordSaleAndSplit` → real USDC payout), [`api/cosmetics/split.js`](../../../api/cosmetics/split.js), `tests/cosmetics-economy.test.js` |
+
+The `/play` rows in [`STRUCTURE.md`](../../../STRUCTURE.md) are the canonical, maintained map of
+these systems.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-1/R01-server-world-object-sync.md b/prompts/agent-briefs/R-3d-world-fun/phase-1/R01-server-world-object-sync.md
deleted file mode 100644
index 66fa17aa5..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-1/R01-server-world-object-sync.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# R01 — Server: generic world-object state sync
-
-**Phase 1 (Foundation) · Depends on: nothing · Unblocks: R02, R05, R17, R18 (the entire object pipeline)**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Follow the off-schema networking pattern described in R00. Server is authoritative.
-
-## Goal
-
-Extend the multiplayer server so worlds can hold shared, networked **objects** — not just players.
-Balls, thrown props, placed build pieces, pickups. This is the single channel every later object
-feature (ball, confetti, blocks, props) reuses, so it must be generic and bulletproof.
-
-## Files
-
-- `multiplayer/src/schemas.js` — add the `WorldObject` schema + `objects` map on world state.
-- `multiplayer/src/rooms/WalkRoom.js` — add the `obj:*` message handlers, rate limits, bounds,
- and disconnect cleanup. Match the existing chat/emote limiter style exactly.
-
-## Spec
-
-1. **Schema.** Add a `WorldObject` schema with fields: `id` (string), `type` (string), `x`, `y`,
- `z` (number), `yaw` (number), `scale` (number), `ownerId` (string), `vx`, `vy`, `vz` (number),
- `kind` (string), `ts` (number). Add `objects: MapSchema<WorldObject>` to the world state schema.
- Keep field types consistent with how players are declared in the same file.
-2. **Message handlers** in `WalkRoom.js`:
- - `obj:spawn` — validate payload, assign/accept an `id`, set `ownerId` to the sender, clamp
- position to world radius, stamp `ts`, add to the `objects` map.
- - `obj:update` — only the owner (or server-owned objects, see R05) may move an object; clamp
- to bounds; update position/rotation/velocity.
- - `obj:remove` — only the owner (or coin creator) may remove; delete from the map.
-3. **Anti-cheat & limits** — mirror the existing avatar/chat limiter style:
- - Per-client rate limit on each handler (reuse the limiter pattern already in the room).
- - Clamp all positions to the world radius; reject NaN/Infinity/out-of-range payloads.
- - Cap total objects per room (~200) and per player (~30). Reject over-cap spawns; do not crash.
-4. **Lifetime** — server owns object lifetime. On owner disconnect, clean up that owner's
- non-persistent objects (persistence comes later in R17; do not build it here).
-5. **Document the protocol** in a top-of-file comment block: every message name, its payload
- shape, who is authorized, and the limits. Later briefs read this comment instead of the code.
-
-## Definition of done
-
-- Schema compiles; `objects` map replicates with no schema-encoding errors.
-- Each handler is rate-limited, bounds-clamped, and cap-bounded; bad payloads are rejected
- cleanly (no unhandled throw, no room crash).
-- **No client changes** are needed for this brief — existing `/play` and `/walk` still connect and
- behave identically (verify both load and a second client still sees you move).
-- Protocol documented in the top comment. Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-1/R02-client-world-objects-manager.md b/prompts/agent-briefs/R-3d-world-fun/phase-1/R02-client-world-objects-manager.md
deleted file mode 100644
index 29c7b96fe..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-1/R02-client-world-objects-manager.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# R02 — Client: WorldObjects manager for /play
-
-**Phase 1 (Foundation) · Depends on: R01 · Unblocks: R05, R18**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. R01 must be merged — this brief consumes its `objects` map and `obj:*` protocol.
-
-## Goal
-
-Build a client manager that mirrors R01's server `objects` map into the 3D scene: instantiate a
-Three.js node per object, interpolate it smoothly each frame, and dispose cleanly. It must be
-**feature-agnostic** — later features (ball, blocks, props) register their own mesh factory
-without editing this manager.
-
-## Files
-
-- `src/game/world-objects.js` — **new** module exporting a `WorldObjects` class.
-- `src/game/community-net.js` — add `spawnObject` / `updateObject` / `removeObject` send methods,
- mirroring the existing `sendChat` / `sendEmote`.
-- `src/game/coincommunities.js` — wire `WorldObjects` into the `CoinCommunities` construction,
- per-frame update loop, and net add/change/remove events; dispose on teardown.
-
-## Spec
-
-1. **`WorldObjects` class** — subscribe to `community-net` object add/change/remove events. On add,
- look up a mesh factory by `kind` and instantiate a scene node; on change, update its target
- transform; on remove, dispose geometry/materials and remove from the scene.
-2. **Interpolation** — reuse the `REMOTE_LERP` interpolation pattern from `RemotePlayer` in
- `coincommunities.js` so objects glide between server updates instead of snapping. Same lerp
- feel as remote avatars.
-3. **`kind` registry** — expose a small registry (e.g. `WorldObjects.registerKind(kind, factory)`)
- where `factory` returns/configures the Three.js node for that `kind`. Provide a sane default
- primitive mesh fallback for unknown kinds. Later briefs (R05 ball, R18 blocks) register here.
-4. **`community-net` methods** — `spawnObject(kind, opts)`, `updateObject(id, transform)`,
- `removeObject(id)` that emit the R01 `obj:spawn` / `obj:update` / `obj:remove` messages with
- validated payloads.
-5. **Lifecycle** — instantiate, update each frame, and dispose alongside the rest of the
- `CoinCommunities` lifecycle. No leaked geometries/materials/timers on world teardown.
-
-## Definition of done
-
-- Objects spawned via the net appear for **all** clients, interpolate smoothly, and clean up.
-- The manager is feature-agnostic: it has no ball/block-specific logic — those live in the
- registered factories.
-- Verified in a real browser with two clients: one spawns a test object via the net, the other
- sees it appear, move, and disappear. No console errors/warnings; no leaks on teardown.
-- Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-1/R03-cosmetics-accessory-rig.md b/prompts/agent-briefs/R-3d-world-fun/phase-1/R03-cosmetics-accessory-rig.md
deleted file mode 100644
index b06d011fa..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-1/R03-cosmetics-accessory-rig.md
+++ /dev/null
@@ -1,46 +0,0 @@
-# R03 — Cosmetics rig: wire the accessory GLBs to avatars
-
-**Phase 1 (Foundation) · Depends on: nothing · Unblocks: R21, R23 (the entire avatar economy)**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Follow the off-schema networking pattern in R00. Server whitelists URLs like avatars.
-
-## Goal
-
-The GLBs in `public/accessories/` (baseball/beanie/cowboy hats, round/shades glasses, hoop/stud
-earrings) are unused. Build attachment so a player can wear them, the wear state syncs to everyone,
-and it survives avatar swaps. This rig is the foundation the Phase 4 economy sells against.
-
-## Files
-
-- `src/game/coincommunities.js` — the avatar build path (`buildAvatar` / `RemotePlayer`): add the
- bone-attachment logic and `equipCosmetic` / `unequip`.
-- `multiplayer/src/schemas.js` — add a `cosmetics` field to the player schema.
-- `multiplayer/src/rooms/WalkRoom.js` — sync `cosmetics` like `avatar`; whitelist accessory URLs.
-- `src/game/community-net.js` — add a `setCosmetics()` send method.
-
-## Spec
-
-1. **Attachment.** After an avatar GLB loads, locate the head bone and the parent attachment
- points. Add `equipCosmetic(slot, url)` and `unequip(slot)` that load and parent an accessory
- GLB using a **per-slot offset table**: `hat` → top of head, `glasses` → eyes, `earrings` → ears.
- Tune offsets so each accessory sits correctly on the rig used by `/play` avatars.
-2. **Schema + sync.** Add a `cosmetics` string field to the player schema, comma-separated
- `slot:url` (e.g. `hat:/accessories/hat-cowboy.glb,glasses:/accessories/glasses-shades.glb`).
- Sync it like the existing `avatar` field. Apply remote players' cosmetics on add **and** on
- change.
-3. **Net send.** Add `community-net` `setCosmetics(cosmeticsString)` mirroring how the avatar is
- sent.
-4. **Server whitelist.** Validate/whitelist accessory URLs server-side exactly like avatar URLs —
- reject anything not under the known accessory set. No arbitrary URLs.
-5. **Survives swaps.** Equipped cosmetics must re-apply after an avatar swap (re-parent on the new
- rig), persist through the session, and never duplicate/orphan attachment nodes.
-
-## Definition of done
-
-- Equipping a hat shows it on **your** head and on **everyone else's** view of you.
-- Cosmetics persist through the session and survive an avatar swap with no orphaned/duplicated
- meshes; `unequip` cleanly removes and disposes.
-- Server rejects non-whitelisted accessory URLs.
-- Verified in a real browser with two clients. No console errors/warnings; no leaks.
-- Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-2/R04-emoji-confetti-reactions.md b/prompts/agent-briefs/R-3d-world-fun/phase-2/R04-emoji-confetti-reactions.md
deleted file mode 100644
index 8abf97999..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-2/R04-emoji-confetti-reactions.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# R04 — Emoji & confetti reactions
-
-**Phase 2 (Social playground) · Depends on: nothing (broadcast-only) · Pairs with: R07 (reuses confetti)**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. This is a pure broadcast feature — no object persistence, no schema changes.
-
-## Goal
-
-Add lightweight, snappy broadcast reactions to `/play`: a reaction bar of ~6 emoji, and on use a
-floating-rising-fading emoji sprite above the sender's avatar, plus a confetti burst for 🎉.
-
-## Files
-
-- `src/game/coincommunities-ui.js` — extend the emote tray with a reaction bar.
-- `src/game/coincommunities.js` — spawn/animate the floating sprite + confetti above an avatar
- (reuse the screen-projection logic in `_updateLabels`).
-- `src/game/community-net.js` — add a `sendReaction(emoji)` method.
-- `multiplayer/src/rooms/WalkRoom.js` — add a `reaction` broadcast handler with a 500ms cooldown.
-
-## Spec
-
-1. **Reaction bar** — ~6 emoji (🎉😂🔥❤️👏🤔) added to the emote tray in `coincommunities-ui.js`.
- Each button has hover/active/focus states; keyboard and touch reachable; ARIA labels.
-2. **Net** — clicking sends a `reaction` over `community-net`. Server `WalkRoom.js` rebroadcasts to
- the room with a **500ms per-client cooldown** (drop, don't queue, over-rate sends).
-3. **On receipt** — spawn a floating emoji sprite above the **sender's** avatar that rises and
- fades over ~1.2s, projected to the correct screen position using the same logic as
- `_updateLabels`. For 🎉, also fire a small confetti particle burst.
-4. **Performance** — must stay smooth with 10+ simultaneous reactions: pool/dispose sprites and
- particles, no per-frame allocations, no leaks.
-5. **States** — designed empty/active states for the bar; disabled/cooldown affordance so users
- aren't confused when a rapid second tap is dropped.
-
-## Definition of done
-
-- Reactions pop above the **right** avatar for everyone, feel instant, and clean up.
-- No jank with 10+ at once; no console errors/warnings; no leaks.
-- Buttons fully accessible (keyboard + screen-reader labels). Diff self-reviewed per DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-2/R05-kickable-physics-ball.md b/prompts/agent-briefs/R-3d-world-fun/phase-2/R05-kickable-physics-ball.md
deleted file mode 100644
index 83ff70ece..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-2/R05-kickable-physics-ball.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# R05 — Kickable physics ball
-
-**Phase 2 (Social playground) · Depends on: R01, R02 · Server-authoritative physics**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Reuse the R01 object channel and the R02 `kind` registry. The **server owns the physics**.
-
-## Goal
-
-Spawn a shared beach ball in `/play` that players kick by walking into it. All clients see the
-same trajectory; it settles realistically and never desyncs badly.
-
-## Files
-
-- `multiplayer/src/rooms/WalkRoom.js` — `ball:kick` handler + server-side ball physics integration
- on the room tick; uses the R01 `objects` map (`kind:'ball'`).
-- `src/game/world-objects.js` — register a ball mesh factory in the R02 `kind` registry.
-- `src/game/coincommunities.js` — detect walk-into-ball collision intent and send `ball:kick` with
- an impulse derived from player velocity.
-
-## Spec
-
-1. **One ball per room**, `kind:'ball'`, spawned via the R01 object channel on room start, owned by
- the server (not a player).
-2. **Kick intent** — when the local player walks into the ball, the client sends `ball:kick` with
- an impulse direction/magnitude derived from the player's velocity. Rate-limit the intent.
-3. **Server physics** — on `ball:kick` the server applies velocity, then each tick integrates with
- **friction + world-radius bounce**, and streams position via the `objects` map (`obj:update`).
- The server validates the impulse (cap magnitude, sane direction) — never trust the client's
- raw values.
-4. **Respawn** — auto-respawn at world center if the ball leaves bounds or on room start.
-5. **Mesh** — the registered factory renders a recognizable beach ball; it interpolates via R02.
-
-## Definition of done
-
-- Any player can kick it; all clients see the same trajectory within interpolation tolerance.
-- It settles realistically (friction), bounces off the world edge, and auto-respawns when lost.
-- No bad desync, no client-trusted physics, no leaks. Verified with two clients in a real browser.
-- Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-2/R06-dance-floor-zone.md b/prompts/agent-briefs/R-3d-world-fun/phase-2/R06-dance-floor-zone.md
deleted file mode 100644
index ca824f73b..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-2/R06-dance-floor-zone.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# R06 — Dance floor zone
-
-**Phase 2 (Social playground) · Depends on: nothing (uses existing emote/anim path) · Touches WalkRoom for the beat tick**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Reuse the existing emote broadcast path and the animation manifest — no new anim system.
-
-## Goal
-
-A circular "dance floor" pad near (but not on) the totem in `/play`: emissive animated tiles +
-pulsing lights. Standing on it suggests dance emotes; a "🪩 Dance" button triggers a **synchronized**
-dance where everyone on the floor crossfades to the same clip on a shared beat.
-
-## Files
-
-- `src/game/coincommunities.js` — the dance floor mesh/pad, lights, on-floor detection, and
- beat-synced crossfade using the existing animation manager.
-- `src/game/coincommunities-ui.js` — the "🪩 Dance" button (shown/enabled when on the floor).
-- `src/game/coincommunities.css` — pad/light styling tokens if any DOM overlay is used.
-- `multiplayer/src/rooms/WalkRoom.js` — broadcast a `floor:beat` tick every N seconds so all
- clients line up.
-
-## Spec
-
-1. **The pad** — a circular emissive floor with animated tiles and pulsing lights, placed near but
- not overlapping the totem. Lights react/pulse on the beat.
-2. **On-floor detection** — when a player stands inside the pad radius, surface dance suggestions
- and enable the "🪩 Dance" button. Leaving returns the avatar to idle.
-3. **Synchronized dance** — pressing Dance plays a dance clip; everyone on the floor crossfades to
- the **same** clip aligned to the server `floor:beat` tick so movements line up. Use clips already
- in `public/animations/manifest.json`: `av-dance-shuffle`, `av-rap-dance`, `av-headbang`, `dance`.
-4. **Beat tick** — `WalkRoom.js` broadcasts `floor:beat` every N seconds; clients schedule
- crossfades to the beat rather than to local time.
-5. **States** — button has hover/active/focus; clear on/off-floor affordance; no jank when several
- players join/leave the floor.
-
-## Definition of done
-
-- Standing on the floor + pressing Dance syncs your avatar with others on the floor on a shared
- beat; lights react; leaving returns you to idle.
-- Reuses the existing emote/anim path — no second animation system. Clips lazy-load on first use.
-- No console errors/warnings, no leaks. Verified with two clients. Diff self-reviewed per DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-2/R07-minigame-king-of-the-totem.md b/prompts/agent-briefs/R-3d-world-fun/phase-2/R07-minigame-king-of-the-totem.md
deleted file mode 100644
index d2a50c97a..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-2/R07-minigame-king-of-the-totem.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# R07 — Mini-game: King of the Totem
-
-**Phase 2 (Social playground) · Depends on: nothing (reuses R04 confetti if present) · Server-authoritative**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Scoring is server-authoritative — clients only render the HUD.
-
-## Goal
-
-A round-based game in `/play`: hold the area at the base of the totem to score. The sole occupant
-of the king-zone earns points/sec; contested = no points. 90-second rounds, winner announce +
-confetti.
-
-## Files
-
-- `multiplayer/src/rooms/WalkRoom.js` — `game:king` round timer, per-player scores, king-zone
- occupancy logic, and broadcasts (round start/tick/end, winner).
-- `src/game/coincommunities.js` — king-zone visualization + HUD hooks.
-- `src/game/coincommunities-ui.js` — round timer, live scoreboard, your score, winner banner.
-- `src/game/coincommunities.css` — HUD styling using existing `cc-*` tokens.
-
-## Spec
-
-1. **Server logic** — track which players are inside the king-zone radius at the totem base. Award
- points/sec **only** to a sole occupant; if 2+ are inside, no one scores (contested). Run
- **90-second rounds** with a clear start, live tick, and end + winner announcement. All scoring
- and timing is on the server.
-2. **Broadcasts** — round timer, per-player scores, current king, and winner. Clients render only.
-3. **HUD** — round timer, live scoreboard (sorted), your own score highlighted, and a winner banner
- on round end. Designed empty (waiting for players), active, and between-rounds states.
-4. **Celebration** — confetti on the winner. Reuse the R04 reaction confetti if that brief is
- merged; otherwise a simple self-contained burst.
-5. **Robustness** — correct with players joining/leaving mid-round; no scoring exploit from outside
- the zone; handles a round with zero/one eligible players gracefully.
-
-## Definition of done
-
-- Rounds start/end on a timer; scoring is correct and contested-aware; HUD is clear; winner is
- celebrated. Works with 2+ players.
-- No client-trusted scoring. No console errors/warnings, no leaks. Verified with two clients.
-- Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-2/R08-minigame-tag.md b/prompts/agent-briefs/R-3d-world-fun/phase-2/R08-minigame-tag.md
deleted file mode 100644
index 78f52e01b..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-2/R08-minigame-tag.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# R08 — Mini-game: Tag
-
-**Phase 2 (Social playground) · Depends on: nothing · Server-authoritative proximity**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. The server validates every tag — never trust client-claimed proximity.
-
-## Goal
-
-"It"-tag in `/play`. One random player becomes "it" when ≥2 are present. Walking adjacent to
-another player transfers "it" (server-validated proximity + tag-back immunity). "It" has an obvious
-marker.
-
-## Files
-
-- `multiplayer/src/schemas.js` — add `it` (boolean) and `itSince` (number) to the player schema.
-- `multiplayer/src/rooms/WalkRoom.js` — assign "it", validate tag transfers (proximity + 2s
- immunity), track per-session time-as-it.
-- `src/game/coincommunities.js` — the "it" marker (red glow ring under the avatar + 🏃 over head).
-- `src/game/coincommunities-ui.js` — HUD: who's it, a "you're it!" alert, lightweight leaderboard.
-
-## Spec
-
-1. **Schema** — `it` boolean + `itSince` on the player. One random present player becomes "it" when
- the room reaches ≥2 players; reassign sensibly if "it" disconnects.
-2. **Transfer** — when "it" walks adjacent to another player, the **server** validates the proximity
- and transfers "it", applying a **2s tag-back immunity** so it can't bounce instantly. No
- tagging from across the map — proximity is checked server-side against authoritative positions.
-3. **Marker** — "it" shows a red glow ring under the avatar and a 🏃 marker over the head, visible
- to everyone.
-4. **HUD** — shows who is "it", a "you're it!" alert when you become it, and a lightweight
- leaderboard of per-session time-as-it.
-5. **Robustness** — fun with 3+ players; no double-it; no exploit; clean handling of
- join/leave/disconnect.
-
-## Definition of done
-
-- "It" transfers correctly on contact with immunity; marker is obvious to everyone; no
- across-map exploit. Fun with 3+ players.
-- No client-trusted proximity. No console errors/warnings, no leaks. Verified with multiple clients.
-- Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-2/R09-emote-wheel.md b/prompts/agent-briefs/R-3d-world-fun/phase-2/R09-emote-wheel.md
deleted file mode 100644
index 1cde12e6f..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-2/R09-emote-wheel.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# R09 — Emote wheel (expose all 70 animations)
-
-**Phase 2 (Social playground) · Depends on: nothing (uses existing emote broadcast + lazy-load)**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Reuse the existing emote broadcast path and the animation manager's lazy loading.
-
-## Goal
-
-Replace/augment the 6-button emote tray with a radial **emote wheel** that exposes all categories
-from `public/animations/manifest.json` (dances, flips, poses, combat, social). Keep the quick tray
-for the top 6.
-
-## Files
-
-- `src/game/coincommunities-ui.js` — the radial wheel UI (open/select/release), category arcs,
- labels/icons; keep the existing quick tray.
-- `src/game/coincommunities.css` — wheel styling using existing `cc-*` tokens.
-- `src/game/coincommunities.js` — input handling (key/long-press/gamepad) and playing+broadcasting
- the chosen clip via the existing emote path.
-
-## Spec
-
-1. **Wheel interaction** — hold a key / long-press to open, move to select a segment, release to
- play. Smooth open/close transitions (opacity + transform). Top 6 stay in the existing quick tray.
-2. **Categories** — read `public/animations/manifest.json` and group clips into category arcs
- (dances, flips, poses, combat, social) with labels/icons. All 70 emotes must be reachable.
-3. **Lazy-load** — clips load on first use (the animation manager already supports this); don't
- preload all 70.
-4. **Input** — keyboard, touch, **and** gamepad friendly. Selection plays the clip and broadcasts
- via the existing emote path so others see it.
-5. **Accessibility** — screen-reader labels on segments, keyboard navigation, focus indicators,
- sufficient contrast on arcs/labels.
-
-## Definition of done
-
-- Wheel opens smoothly; every manifest emote is reachable and categorized; selection plays and
- broadcasts via the existing emote path.
-- Keyboard + touch + gamepad all work; accessible (labels, focus). Clips lazy-load.
-- No console errors/warnings, no jank. Verified in a real browser. Diff self-reviewed per DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-3/R17-world-object-persistence.md b/prompts/agent-briefs/R-3d-world-fun/phase-3/R17-world-object-persistence.md
deleted file mode 100644
index a122cc415..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-3/R17-world-object-persistence.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# R17 — Persistence layer for world objects
-
-**Phase 3 (Sandbox building) · Depends on: R01 · Unblocks: R19**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. **Inspect the repo's existing storage — do NOT invent a new provider.** Real backend only.
-
-## Goal
-
-Make placed objects durable per coin world, keyed by coin mint. Leaving and re-entering a coin
-world shows the same build; it survives a server restart.
-
-## Files
-
-- `api/` and/or `workers/` — a storage-backed endpoint/worker using the **existing** KV/DB the repo
- already uses (inspect `api/_lib/`, existing workers, and how the off-schema economy already
- persists state — match that). Do not introduce a new datastore.
-- `multiplayer/src/rooms/WalkRoom.js` — load saved objects on room create; persist on
- `obj:spawn` / `obj:update` / `obj:remove` (debounced).
-
-## Spec
-
-1. **Inspect first.** Find how the repo already persists data (the fishing/inventory off-schema
- economy, KV, or DB) and use that exact provider/pattern. A new provider is not allowed.
-2. **Keyed by coin mint.** Saved object sets are scoped per coin world (the room's coin mint is the
- key).
-3. **Load on create.** When a `WalkRoom` is created for a coin, hydrate the R01 `objects` map from
- storage before clients connect.
-4. **Persist on change.** On `obj:spawn` / `obj:update` / `obj:remove`, write through to storage,
- **debounced** so rapid updates don't hammer the backend. Distinguish persistent build pieces
- from transient objects (e.g. the R05 ball) so transient ones are not saved.
-5. **Real, not in-memory.** Persistence must survive a full server restart, not just live in room
- memory.
-
-## Definition of done
-
-- Placing objects, leaving, and re-entering a coin world shows the same build.
-- Persistence survives a server restart. Writes are debounced; transient objects are excluded.
-- Uses the existing datastore — no new provider. No console/server errors. Diff self-reviewed per DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-3/R18-build-mode-and-placement-ui.md b/prompts/agent-briefs/R-3d-world-fun/phase-3/R18-build-mode-and-placement-ui.md
deleted file mode 100644
index 3e624f52b..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-3/R18-build-mode-and-placement-ui.md
+++ /dev/null
@@ -1,43 +0,0 @@
-# R18 — Build mode + placement UI
-
-**Phase 3 (Sandbox building) · Depends on: R01, R02 · Unblocks: R19, R20**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Reuse the R02 object channel + `kind` registry. Placement is `obj:spawn kind:'block'`.
-
-## Goal
-
-A "Build" toggle in `/play` that opens a palette of placeable props/blocks. Ghost-preview the piece
-at a snapped position under the cursor/reticle, rotate it, place it, and delete your own pieces.
-Clean enter/exit between movement and build cursor.
-
-## Files
-
-- `src/game/coincommunities-ui.js` — Build toggle + palette UI.
-- `src/game/coincommunities.css` — palette + ghost-preview styling using `cc-*` tokens.
-- `src/game/coincommunities.js` — build-mode state machine, ghost preview, raycast placement,
- rotate, place (`spawnObject kind:'block'`), delete-own.
-- `src/game/world-objects.js` — register block/prop mesh factories in the R02 `kind` registry.
-
-## Spec
-
-1. **Build toggle** — enters build mode: switches from movement controls to a build cursor/reticle,
- shows the palette. Exiting restores normal movement. The transition is unambiguous (cursor,
- HUD hint).
-2. **Palette** — a handful of primitives + a few GLB props (reuse accessory/prop loading patterns).
- Owned/selected states; hover/active/focus on items.
-3. **Ghost preview** — show a translucent preview of the selected piece at a **snapped** position
- under the cursor/reticle. Rotate with a key. The preview clearly indicates a valid vs blocked
- placement.
-4. **Place** — sends `obj:spawn kind:'block'` (via R02 `community-net.spawnObject`); the piece
- appears for everyone through object sync.
-5. **Delete** — remove **your own** pieces (full server-side ownership enforcement is R19; here,
- only offer delete on pieces you placed).
-6. **Touch + desktop** — placement, rotate, and delete all work on desktop and touch.
-
-## Definition of done
-
-- You can place, rotate, and remove pieces; preview is clear; placements appear for everyone via
- object sync. Feels good on desktop and touch.
-- Clean enter/exit of build mode (movement vs build cursor never conflict).
-- No console errors/warnings, no leaks. Verified with two clients. Diff self-reviewed per DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-3/R19-build-netcode-permissions-antigrief.md b/prompts/agent-briefs/R-3d-world-fun/phase-3/R19-build-netcode-permissions-antigrief.md
deleted file mode 100644
index b6904f0eb..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-3/R19-build-netcode-permissions-antigrief.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# R19 — Build netcode hardening + permissions + anti-grief
-
-**Phase 3 (Sandbox building) · Depends on: R17, R18 · Server-authoritative**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. All enforcement is server-side. Limits must be **surfaced in the UI — no silent failures.**
-
-## Goal
-
-Server-side validation for builds: ownership, per-player caps, rate limits, bounds, and a simple
-grief guard. Plus a creator "clear area" moderation tool. Griefing is bounded; ownership enforced.
-
-## Files
-
-- `multiplayer/src/rooms/WalkRoom.js` — build validation on `obj:spawn` / `obj:remove`: ownership,
- caps, rate limits, bounds, grief guard, creator clear-area.
-- `src/game/coincommunities-ui.js` — surface limits/denials to the user; creator clear-area control.
-- `src/game/coincommunities.js` — reflect rejected placements (no ghost left behind) and show why.
-
-## Spec
-
-1. **Ownership** — only the placer may delete a piece, **except** the coin creator, who may delete
- any piece in their world. Enforce server-side; never trust the client's claim of ownership.
-2. **Caps & limits** — per-player placement cap, per-room density cap, rate limit on spawns, and
- world-radius bounds. These build on R01's generic caps but add build-specific tuning.
-3. **Grief guard** — disallow burying the spawn point or the totem, and cap density per tile so a
- single user can't wall off the world.
-4. **Creator moderation** — a creator-only "clear area" action (and/or clear-all-in-radius) for the
- coin owner, validated server-side.
-5. **Surface everything** — when a placement is rejected (cap hit, too dense, protected zone,
- rate-limited), the UI tells the user clearly and removes the failed ghost. **No silent failures.**
-
-## Definition of done
-
-- Griefing is bounded; ownership enforced; creator moderation works; all limits are clearly
- surfaced in the UI with no silent failures.
-- All enforcement is server-side and survives malicious clients. No console/server errors.
-- Verified with two clients (including a non-owner trying to delete and an over-cap user).
- Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-3/R20-structures-snapping-sharing.md b/prompts/agent-briefs/R-3d-world-fun/phase-3/R20-structures-snapping-sharing.md
deleted file mode 100644
index 267d30e1d..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-3/R20-structures-snapping-sharing.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# R20 — Structures, snapping, and sharing
-
-**Phase 3 (Sandbox building) · Depends on: R18, R19 · Performance-critical**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Large builds must stay performant — instance/merge static blocks.
-
-## Goal
-
-Level up building: a grid/snap system so blocks align into structures, a few composite pieces, a
-copy/screenshot-a-build share action, and a small "featured builds" surface per coin. Building feels
-satisfying and snaps cleanly; large builds stay smooth.
-
-## Files
-
-- `src/game/coincommunities.js` — grid/snap math, composite-piece placement, static-block
- instancing/merging, screenshot capture.
-- `src/game/coincommunities-ui.js` — composite-piece palette entries, share action, featured-builds
- surface.
-- `src/game/coincommunities.css` — styling for the above using `cc-*` tokens.
-- `api/` / `workers/` — a "featured builds" + share endpoint reusing the R17 persistence layer (no
- new provider).
-
-## Spec
-
-1. **Grid/snap** — blocks snap to a grid so they align into clean structures; snapping is visible in
- the ghost preview from R18. Rotation snaps too.
-2. **Composite pieces** — a few ready-made pieces (wall, floor, ramp, door) placeable as single
- units, built on the same `obj:spawn` channel.
-3. **Performance** — instance or merge static blocks so large builds don't tank framerate. No
- per-block draw-call explosion; no console warnings under a big build.
-4. **Share** — a copy/screenshot-a-build action (capture the canvas + a shareable reference), wired
- through the R17 persistence layer.
-5. **Featured builds** — a small per-coin "featured builds" surface (designed empty/loading/error
- states) that links back into the world.
-
-## Definition of done
-
-- Building structures is satisfying and snaps cleanly; composite pieces place as units.
-- Large builds stay performant (instanced/merged); no console warnings.
-- You can share a build; the featured-builds surface is live and links back into worlds.
-- Verified in a real browser with a large build. Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-4/R21-cosmetics-catalog-shop-ui.md b/prompts/agent-briefs/R-3d-world-fun/phase-4/R21-cosmetics-catalog-shop-ui.md
deleted file mode 100644
index 44bc08f83..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-4/R21-cosmetics-catalog-shop-ui.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# R21 — Cosmetics catalog + shop UI
-
-**Phase 4 (Avatar economy) · Depends on: R03 · Unblocks: R22**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Real endpoint, no sample arrays. Coin references are `$THREE` only. Live preview via R03.
-
-## Goal
-
-Define a cosmetics catalog and a shop UI to browse it, filter by rarity, and **preview cosmetics
-live on your own avatar** before buying — with correct owned vs locked states.
-
-## Files
-
-- A real catalog source — a JSON/API endpoint under `api/` (or the existing data pattern) covering
- the accessory GLBs in `public/accessories/` + a set of premium emotes/skins. Each item:
- `id, name, slot, price, rarity, previewImage`. No hardcoded sample arrays in the client.
-- `src/game/coincommunities-ui.js` (or a dedicated shop module) — the shop UI.
-- `src/game/coincommunities.css` — shop styling using the existing `cc-*` tokens.
-- `src/game/coincommunities.js` — live preview hook calling R03's `equipCosmetic` / `unequip`.
-
-## Spec
-
-1. **Catalog** — a real endpoint returns the catalog (accessory GLBs + premium emotes/skins) with
- `id, name, slot, price, rarity, previewImage`. Client fetches it; no sample fallback array.
-2. **Shop UI** — browse the catalog, filter by rarity, matching the `cc-*` design tokens. Items show
- hover/active/focus; designed empty/loading (skeletons)/error states.
-3. **Live preview** — selecting an item previews it **live on your own avatar** using the R03 rig
- (`equipCosmetic`), and reverts on deselect (`unequip`). Preview does not persist a purchase.
-4. **Owned vs locked** — items already owned show as owned; not-yet-owned show locked with price.
- (Ownership read is wired to real state in R23; here, read whatever ownership source exists and
- degrade gracefully if empty.)
-5. **Prices** — denominated for the R22 x402 flow. Any coin reference is `$THREE` only.
-
-## Definition of done
-
-- Catalog loads from a real endpoint (no sample array); live preview works on your avatar and
- reverts cleanly.
-- Owned/locked states correct; rarity filter works; polished empty/loading/error states.
-- No console errors/warnings. Verified in a real browser. Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-4/R22-x402-purchase-flow.md b/prompts/agent-briefs/R-3d-world-fun/phase-4/R22-x402-purchase-flow.md
deleted file mode 100644
index e5a08b080..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-4/R22-x402-purchase-flow.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# R22 — x402 purchase flow
-
-**Phase 4 (Avatar economy) · Depends on: R21 · Unblocks: R23, R25 · Real payment rail**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. **Real USDC via x402 — no fake "purchased" toasts.** Reuse `api/x402/` + `agent-payments-sdk/`.
-
-## Goal
-
-Wire real purchases: buying a cosmetic triggers an x402 USDC payment, and on success records
-ownership to the player's account/wallet. Handle every payment state honestly at the boundary.
-
-## Files
-
-- `api/x402/` — a cosmetic-purchase endpoint following the existing x402 handler patterns in this
- folder (e.g. `dance-tip.js`, `asset-download.js`). Reuse `agent-payments-sdk/` for the payment
- build/verify.
-- A real ownership record store — use the same persistence the rest of the economy uses (inspect;
- no new provider). Record `(account/wallet, cosmeticId)` on verified payment.
-- `src/game/` shop module from R21 — invoke the x402 flow on "Buy" and react to each state.
-
-## Spec
-
-1. **Buy → x402** — clicking Buy initiates a real x402 USDC payment for the item's price, reusing
- `api/x402/` + `agent-payments-sdk/`. Follow the existing x402 request/verify contract (see memory
- `sdk-agentclient-x402-contract` and the sibling handlers).
-2. **On success** — verify the payment server-side, then record ownership to the player's
- account/wallet in the real store. Ownership must be readable by R21 (owned state) and R23
- (inventory).
-3. **Honest states at the boundary** — handle and surface: pending, success, failure, and
- insufficient-funds. No optimistic "purchased" toast before the payment verifies.
-4. **No double-charge / replay** — idempotent on the payment proof (see the x402 hardening invariants
- in memory `x402-security-hardening`): proof-bound idempotency, fail-closed defaults.
-5. **$THREE only** in any coin-facing copy; USDC is the payment asset via x402.
-
-## Definition of done
-
-- A real USDC payment unlocks the cosmetic; ownership persists and is readable downstream.
-- All payment states (pending/success/failure/insufficient-funds) are handled and surfaced
- honestly; no fake toasts; idempotent against replay.
-- Verified end-to-end against the real x402 rail. Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-4/R23-owned-inventory-equip-persistence.md b/prompts/agent-briefs/R-3d-world-fun/phase-4/R23-owned-inventory-equip-persistence.md
deleted file mode 100644
index 387b068ed..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-4/R23-owned-inventory-equip-persistence.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# R23 — Owned-cosmetics inventory + equip persistence
-
-**Phase 4 (Avatar economy) · Depends on: R03, R22**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Ties the R03 rig to durable ownership — equip state persists across sessions AND worlds.
-
-## Goal
-
-A "My Cosmetics" inventory of owned items; equipping persists to the account and re-applies on next
-login and across worlds (`/play` and `/walk`).
-
-## Files
-
-- `src/game/` — a "My Cosmetics" inventory UI (or shop tab) reading the R22 ownership store.
-- The account/equip persistence store (same provider the economy uses) — save equipped slot→item.
-- `src/game/coincommunities.js` and the `/walk` avatar build path — restore equipped cosmetics on
- load via the R03 `equipCosmetic`.
-- `multiplayer/src/rooms/WalkRoom.js` — ensure restored equip state syncs to other players via the
- R03 `cosmetics` field.
-
-## Spec
-
-1. **Inventory UI** — "My Cosmetics" lists owned items (from the R22 ownership store) with
- equipped/unequipped state, rarity, and preview. Designed empty (nothing owned → links to shop)/
- loading/error states.
-2. **Equip persistence** — equipping writes the equipped slot→item to the account store. On next
- login, equipped cosmetics are restored automatically via the R03 rig.
-3. **Cross-world** — equip state applies in **both** `/play` and `/walk` (and any world using the
- shared avatar build path), not just the world it was set in.
-4. **Sync** — restored equip state propagates to other players through the R03 `cosmetics` schema
- field so everyone sees your fit.
-5. **Consistency** — owned-only can be equipped; unequip persists too; no orphaned attachments on
- re-login or world switch.
-
-## Definition of done
-
-- Owned cosmetics persist across sessions and worlds; equip state is restored on login; equipping
- is reflected to other players.
-- Inventory states (empty/loading/error) designed and helpful. No console errors/warnings, no leaks.
-- Verified across a logout/login and a `/play`↔`/walk` switch with two clients. Diff self-reviewed per DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-4/R24-token-gated-worlds.md b/prompts/agent-briefs/R-3d-world-fun/phase-4/R24-token-gated-worlds.md
deleted file mode 100644
index c853b1bc9..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-4/R24-token-gated-worlds.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# R24 — Token-gated worlds
-
-**Phase 4 (Avatar economy) · Depends on: existing Solana rails · Server-authoritative balance check**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. Gate against **real on-chain balances** via `solana-agent-sdk/` / RPC. Non-gated worlds unaffected.
-
-## Goal
-
-Let a coin's world optionally require holding the coin to enter. Server-side balance check at join,
-a creator-set threshold per coin, and a clear, actionable client gate screen for users who don't
-qualify.
-
-## Files
-
-- `multiplayer/src/rooms/WalkRoom.js` — on join, read the coin's gating config and check the
- joining wallet's on-chain balance; reject (with a typed reason) if below threshold.
-- Gating config store — per-coin, creator-set threshold (use the existing per-coin config/economy
- store; no new provider).
-- `src/game/coincommunities.js` / UI — the gate screen shown when a join is rejected.
-- `solana-agent-sdk/` / RPC — the balance read.
-
-## Spec
-
-1. **Per-coin config** — a creator-set threshold (hold ≥ X of the coin to enter). Default is
- **ungated** — existing worlds are unaffected unless a creator opts in.
-2. **Server check at join** — when a wallet joins a gated room, the server reads its **real on-chain
- balance** (via `solana-agent-sdk/` / RPC) and rejects the join with a typed reason if below the
- threshold. Never trust a client-claimed balance.
-3. **Gate screen** — for users who don't qualify, a clear, helpful screen: "Hold X $THREE to enter —
- buy here", linking the existing pump swap so they can acquire the coin and retry. (Generic
- coin-agnostic worlds use the world's own coin; surface `$THREE` only where this platform's coin
- is referenced.)
-4. **Retry** — after acquiring, the user can re-attempt join and pass without a reload friction wall.
-5. **Robustness** — RPC failure is handled at the boundary (don't hard-fail the whole world; surface
- a retry); no false rejects from transient RPC errors.
-
-## Definition of done
-
-- Gating works against real on-chain balances; the gate screen is helpful and actionable (links the
- real swap); non-gated worlds are completely unaffected.
-- Balance check is server-side; RPC errors handled gracefully. No console/server errors.
-- Verified: a qualifying wallet enters, a non-qualifying one is gated and can buy + retry.
- Diff self-reviewed per the R00 / CLAUDE.md DoD.
diff --git a/prompts/agent-briefs/R-3d-world-fun/phase-4/R25-creator-revenue-splits.md b/prompts/agent-briefs/R-3d-world-fun/phase-4/R25-creator-revenue-splits.md
deleted file mode 100644
index d675e70af..000000000
--- a/prompts/agent-briefs/R-3d-world-fun/phase-4/R25-creator-revenue-splits.md
+++ /dev/null
@@ -1,44 +0,0 @@
-# R25 — Creator revenue splits + economy polish
-
-**Phase 4 (Avatar economy) · Depends on: R22 · Real payouts**
-
-> Read [`../R00-program-overview.md`](../R00-program-overview.md) and [`CLAUDE.md`](../../../../CLAUDE.md)
-> first. **Revenue splits must pay out for real** — no simulated earnings. Reuse the R22 x402 rail.
-
-## Goal
-
-On cosmetic sales tied to a coin, split x402 revenue to the coin creator's wallet (configurable %),
-with a creator earnings view in the dashboard. Plus a platform-wide cosmetics leaderboard /
-"rarest fits" flex surface to drive the Roblox-style status loop.
-
-## Files
-
-- `api/x402/` — extend the R22 purchase handler to split the settled payment to the coin creator's
- wallet by a configurable percentage (real on-chain transfer / settlement, reusing the existing
- payout rails in `agent-payments-sdk/` / `solana-agent-sdk/`).
-- Split config store — configurable % per coin (existing per-coin config; no new provider).
-- Dashboard — a creator earnings view (reuse the existing dashboard patterns; see memory
- `studio-fees-rewards` for the fee/earnings UI precedent).
-- A leaderboard endpoint + a "rarest fits" surface in `/play` UI.
-
-## Spec
-
-1. **Split on sale** — when a cosmetic tied to a coin sells via R22, split the revenue to the coin
- creator's wallet by a configurable percentage. The split is a **real** transfer/settlement — no
- simulated balance.
-2. **Configurable %** — per-coin split percentage (sane default, creator-adjustable), stored in the
- existing config layer.
-3. **Creator earnings view** — a dashboard view showing real earnings from cosmetic sales, matching
- the existing dashboard design + the fee-claim precedent in `studio-fees-rewards`.
-4. **Leaderboard / rarest fits** — a platform-wide cosmetics leaderboard and a "rarest fits" flex
- surface that drives status; it links back into the worlds where those cosmetics are worn.
-5. **Honesty** — only real, settled numbers are shown; designed empty/loading/error states. `$THREE`
- only in coin-facing copy.
-
-## Definition of done
-
-- Revenue splits pay out for real to the creator wallet; the creator can see real earnings in the
- dashboard.
-- The flex/leaderboard surface is live, accurate, and links back into worlds.
-- All states designed; no simulated numbers. Verified end-to-end against the real rail.
- Diff self-reviewed per the R00 / CLAUDE.md DoD.