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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(event): add eight capability-build prompts (17-24) to the event readiness pack
nirholas0eeb1f6e397d
diff --git a/docs/event-readiness/17-plaza-live-show.md b/docs/event-readiness/17-plaza-live-show.mdnew file mode 100644index 000000000..b3ef957f7--- /dev/null+++ b/docs/event-readiness/17-plaza-live-show.md@@ -0,0 +1,30 @@+# Feature 17: live hosted show on a plaza stage inside /play++The platform already has Living Stages: an embodied AI host runs a real-time show with spatial voice, lip-sync, synced captions, an audience question queue, and a verified on-chain $THREE tip leaderboard where a tip pre-empts the host's next line in about a second. All of it works, and none of it is reachable from the world: `grep -r stage src/game/` finds zero references. Put a stage in the $THREE plaza and let the event crowd attend a show without leaving /play.++## Where the code lives++- Show engine (server): `multiplayer/src/rooms/StageRoom.js`, `multiplayer/src/stage-show.js` (the pure `ShowDirector` with beats OPENER, TIP_SHOUTOUT, ANSWER, BANTER, GAME), `multiplayer/src/stage-schemas.js`, `multiplayer/src/stage-registry.js`. Room registered as `stage_world` with `filterBy(['stageId'])` in `multiplayer/src/index.js`+- Show client (page-level, reuse it): `src/stage.js`, `src/stage-net.js`, `src/stage-element.js`, served at `pages/stage.html`+- Show API: `api/stage/index.js` (directory, create, golive, endshow, `nextShowAt` scheduling), `api/stage/host.js` (the host's words), `api/stage/tip.js` (on-chain verified, idempotent per signature); host voice via `api/tts/speak`+- The world to mount into: `src/game/coincommunities.js` (main scene), landmark placement precedent in `src/game/wheel-station.js` and `src/game/home-town.js`; server-validated landmark coordinates in `multiplayer/src/world-features.js`+- Multiplayer client for the world room: `src/game/community-net.js` (Colyseus `walk_world`); the stage join is a second, concurrent room connection++## What to build++1. **The stage landmark.** A real stage structure in the $THREE world plaza: platform, backdrop, marquee screen. The marquee shows the show state from `api/stage/index.js`: live now, next show time (`nextShowAt`), or a designed idle state. Register its footprint in `world-features.js` so the server can validate proximity.+2. **Proximity attendance.** Walking near the stage joins the coin's `stage_world` room alongside the existing `walk_world` connection (derive `stageId` from the mint deterministically). Reuse `stage-net.js` and the utterance rendering from the stage client rather than rewriting: the host avatar on stage speaks with TTS voice, lip-sync, and captions, synced across every attendee. Walking away leaves the stage room cleanly.+3. **Audience presence.** Attendees get the server-assigned ring seats StageRoom already deals out, rendered as marked spots in front of the stage; the question queue is reachable from the in-world chat bar while attending.+4. **Tips in-world.** A tip action at the stage that runs the existing `api/stage/tip.js` flow (this is an on-chain $THREE spend: render recipient, amount, and token and get the user's explicit confirmation before signing, every time). The tip leaderboard renders on the marquee, and a landed tip pre-empts the host beat exactly as it does on /stage.+5. **Cost discipline.** Everything here mounts lazily on first proximity and fully unmounts when the show is over and the player leaves. No stage room connection, no TTS fetches, no per-frame work for players who never approach. When no show exists and none is scheduled, the stage is a quiet decorated landmark, not an error.++## Verify++- Two browsers on `npm run dev` (multiplayer server running locally per `multiplayer/README.md` if present, else against the deployed room): create a show via `api/stage/index.js`, go live, and confirm both clients hear and read the same utterances at the stage, seats assigned, question queue round-trips.+- Tip path exercised end to end on a test amount with the confirmation gate shown; leaderboard updates; replaying the same signature does not double-count.+- Walk-away tears down the stage room connection (network tab shows the socket close); a player who never approaches the stage opens zero stage requests.+- `npm test` green.++## Report format++Files shipped, how `stageId` is derived, the join and teardown lifecycle in three sentences, what the marquee shows in each state, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/18-coin-wars-portal.md b/docs/event-readiness/18-coin-wars-portal.mdnew file mode 100644index 000000000..e36aeafe1--- /dev/null+++ b/docs/event-readiness/18-coin-wars-portal.md@@ -0,0 +1,30 @@+# Feature 18: Coin Wars portal inside the world++Coin Wars is finished and invisible. `ClashRoom` runs full community-vs-community battles (lobby, countdown, live, sudden death, kill cap, round clock) with an Elo league behind it, but the only door is the standalone page at /play/arena. Nobody standing in the $THREE world knows wars exist. Build the portal: see the standings, queue for a war, and come back with the result, all from inside /play.++## Where the code lives++- Server: `multiplayer/src/rooms/ClashRoom.js` (registered as `clash_arena` with `filterBy(['matchKey'])` in `multiplayer/src/index.js`), match logic in `multiplayer/src/clash.js`, league in `multiplayer/src/war-standings.js`, summaries in `multiplayer/src/war-report.js`, schemas in `multiplayer/src/clash-schemas.js`+- Arena client to hand off to: `pages/play/arena.html`, `src/play/arena.js`, `src/play/arena-world.js` (read how it resolves `matchKey` and gates entry before inventing anything)+- Gating: the same holder pass as the Holders world (`multiplayer/src/holder-pass.js`, `api/community/holder-pass.js`)+- World mount: landmark precedent in `src/game/wheel-station.js`; jumbotron precedent in `src/game/chart-screen.js`; live feed producer `multiplayer/src/feed.js`+- Deep-link return path: the canonical URL emission in `src/game/coincommunities.js` (`history.replaceState` on entry)++## What to build++1. **The portal landmark.** A war portal structure in the plaza with a board showing real league state: this coin's Elo standing, recent war results (`war-report.js` output), and any war currently live. If the standings surface has no public API yet, expose one thin read endpoint under `api/` that serves exactly what the arena client already trusts; do not fork the math.+2. **Queue from the world.** An "enter the war" interaction that runs the same gate the arena page runs (holder pass where required), resolves the `matchKey` the same way, and hands off to `/play/arena` with a return link that carries the full coin identity (`coin`, `name`, `symbol`, `image`) so coming back lands in the same world with no lobby detour.+3. **Spectate without leaving.** While a war involving this coin is live, the portal's board becomes a spectator screen: live score, kill feed, round clock, sourced from the clash room state or a cheap polling read. Text and numbers, not a second 3D render.+4. **Results echo.** When a war ends, the result lands in the world: a feed event through `multiplayer/src/feed.js` and a short jumbotron moment for a win. If Feature 15's ticker landed, the result appears there too.+5. **Honest empty states.** No wars yet, standings empty, matchmaking quiet: each state says what it is and what a player can do about it, in the designed style of the lobby's retry cards.++## Verify++- Two browsers on `npm run dev`: queue from the portal in both, complete a short war on the arena page, return via the return link into the same coin world, and see the result echoed on the portal board.+- Holder gating verified both ways: a gated war refuses cleanly with the existing gate UX; an open war admits.+- Portal costs nothing when idle: no polling while no player is near it, no console errors.+- `npm test` green.++## Report format++Files shipped, the standings read path (existing or the one endpoint you added), the handoff and return URL shapes, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/19-forge-props-live.md b/docs/event-readiness/19-forge-props-live.mdnew file mode 100644index 000000000..44157545a--- /dev/null+++ b/docs/event-readiness/19-forge-props-live.md@@ -0,0 +1,30 @@+# Feature 19: forge 3D props live inside build mode++The platform's headline capability is text to 3D, and the world's build mode cannot use it. The prop palette pulls only the public avatar gallery, so building means placing other people's uploads. Wire the Forge lane into build mode: type a prompt, watch the object appear where you pointed, and everyone in the world sees it. At a live event this is the demo moment.++## Where the code lives++- Forge lane: `api/forge.js` and siblings (`api/forge-gameready.js`, `api/forge-remesh.js`, `api/forge-rig.js`); client precedents in `src/forge.js` / `src/forge-studio/`. Use the platform's free text-to-3D lane and its existing rate limits; do not add a new paid dependency+- Prop plumbing (already networked and persistent): `src/game/world-objects.js` (`registerUploadedProp`, mirrors the server `objects` MapSchema), `src/game/avatar-upload.js` (`uploadPropModel`, presigned upload), the `_uploadProp` flow in `src/game/coincommunities.js`, persistence via `src/game/world-persist.js`+- Prop palette UI: the props panel in `src/game/coincommunities-ui.js` (currently fetching `/api/avatars/public`), styles in `src/game/coincommunities.css`+- The mobile lesson: `src/game/ambient-crowd.js` documents how uncapped user models killed iOS tabs, and its `CROWD_BUDGET` tiers are the sizing precedent+- Generation ground truth when debugging: the `forge_creations` table carries per-generation backend, status, error, and prompt++## What to build++1. **A Forge tab in the prop palette.** Prompt field, generate button, and a short history of this session's generations. Guidance text sets expectations honestly (real generation takes real time; say roughly how long from observed lane behavior, not a made-up number).+2. **Placement-first flow.** The player aims and places a hologram placeholder immediately (ghost shell in the build style, clearly "generating", using the real async state, never a fake progress bar). When the GLB lands, it swaps in place with a brief materialize effect. On failure the hologram becomes a designed error marker with retry and dismiss.+3. **The full prop pipeline, not a side door.** The finished GLB goes through `uploadPropModel` and `registerUploadedProp` so it is networked to every player, persists through `world-persist.js`, respects the per-player build budget, and is undoable with the existing Ctrl+Z stack.+4. **Size discipline.** Run generations through the gameready/remesh path so what enters the world is capped: enforce a hard triangle and file-size ceiling in the spirit of `CROWD_BUDGET` before a model is ever registered. An oversized result is decimated or rejected with a clear message, never placed raw. This is the difference between a demo moment and a repeat of the iOS crash.+5. **Abuse limits.** Per-player generation cooldown and a per-world concurrent-generation cap, enforced server-side on the endpoint, with the client showing queue position honestly.++## Verify++- On `npm run dev` with a second browser: generate a prop from a prompt, see the hologram, see the swap, confirm the second browser renders it live and after a reload (persistence).+- Failure path exercised (kill the request in devtools): error marker, retry works, dismiss cleans up, budget not consumed by the failure.+- Generate an intentionally heavy prompt and confirm the size ceiling triggers with its designed message.+- Mobile emulation: the Forge tab is usable with the touch keyboard and the placed result stays within the memory budget. `npm test` green.++## Report format++Files shipped, the size ceiling values and where they are enforced, the rate-limit shape, average observed generation time during verification, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/20-world-chat-scrollback.md b/docs/event-readiness/20-world-chat-scrollback.mdnew file mode 100644index 000000000..8af8901ff--- /dev/null+++ b/docs/event-readiness/20-world-chat-scrollback.md@@ -0,0 +1,30 @@+# Feature 20: chat scrollback and a persistent world record++In-world chat is a pure relay: the server broadcasts and forgets, so everyone who joins the event late sees an empty chat and no evidence anything is happening. Meanwhile `api/community/messages.js` persists a per-coin message stream that the 3D world never reads. Give the world a memory: late joiners get scrollback, and the room's page-level community feed and the in-world chat stop being strangers.++## Where the code lives++- The relay today: the chat handler in `multiplayer/src/rooms/WalkRoom.js` (700ms cooldown and slur gate already enforced there; keep both)+- Persisted community chat (separate system): `api/community/messages.js`+- Chat UI: the chat bar and message list in `src/game/coincommunities-ui.js`, styles in `src/game/coincommunities.css`+- Name safety: `multiplayer/src/display-name-safety.js`+- Storage precedents: Upstash Redis usage in `api/play/builds.js` and `multiplayer/src/social-hub.js`++## What to build++1. **Server-side scrollback.** Persist relayed chat per world (coin plus tier) in a capped Redis list (on the order of 200 messages with a TTL of a few days; pick values and state them). Write on relay, trim on write. On join, the room sends the recent tail so a new arrival scrolls up into the last stretch of conversation instead of a void.+2. **Rendered as history.** Scrollback renders visually distinct from live messages (muted, timestamped, a "you're caught up" divider), loads without jank, and never steals focus or scroll position from someone mid-conversation.+3. **One bridge, chosen deliberately.** Surface the persisted community stream (`api/community/messages.js`) inside the world as a read tab or pinned-board view, so page-side conversation is visible in-world. Decide whether in-world chat also writes into that stream; whichever way you choose, record the decision and the privacy reasoning in the report. Do not silently merge two systems with different expectations.+4. **Privacy and safety.** Scrollback stores display names as rendered (already passed through name safety), never wallet addresses or session identifiers. The existing slur gate applies to everything stored. A player's messages disappear from scrollback when trimmed; no long-term archive is being built here.+5. **Event-night behavior.** Under load the tail send must be one batched message on join, not N replays; the client renders it in one frame's worth of DOM work (build off-screen, attach once).++## Verify++- Two browsers on `npm run dev`: chat in one, join late with the other, and see the tail with the divider; live messages continue seamlessly after it.+- Cooldown and slur gate confirmed still enforced on the stored path.+- Refresh mid-conversation: scrollback plus live picks up without duplicates (dedupe by message id, not text).+- The bridge tab shows real persisted community messages for the $THREE coin. `npm test` green, with a unit test for trim and dedupe logic.++## Report format++Files shipped, the cap and TTL chosen, the bridge decision and why, join-time payload size for a full tail, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/21-party-system.md b/docs/event-readiness/21-party-system.mdnew file mode 100644index 000000000..31240f0a8--- /dev/null+++ b/docs/event-readiness/21-party-system.md@@ -0,0 +1,29 @@+# Feature 21: party system, because nobody attends an event alone++Friends exist (drawer, presence, DMs) but group play does not: two friends in the same world cannot find each other without describing scenery over chat, and there is no way to move through the event as a crew. Build parties: form one, see your people, get to them, and talk to them.++## Where the code lives++- Friends and presence: `src/game/friends-panel.js`, `api/friends/` (`presence-ticket`, `search`, `messages`), cross-realm presence in `multiplayer/src/social-hub.js` (Upstash Redis with TTL self-healing)+- Room state and messaging: `multiplayer/src/rooms/WalkRoom.js`, client in `src/game/community-net.js`+- Minimap blips: `src/game/hud/minimap.js`; HUD composition: `src/game/hud/world-hud.js`+- Inspect panel (the "I" overlay on another avatar): in `src/game/coincommunities-ui.js`, a natural invite surface+- Chat channels: the chat bar in `src/game/coincommunities-ui.js`++## What to build++1. **Form and manage.** Create a party, invite from the friends drawer or from inspecting a nearby player, accept or decline with a toast, leave anytime, party dissolves when empty. Cap it (8 is plenty) and say so in the UI. Party state lives server-side (social hub Redis alongside presence, TTL-guarded so a crashed session cannot leave a ghost party).+2. **See your people.** Party members get a distinct nameplate accent and dedicated minimap blips; members beyond the minimap edge get a screen-edge direction chip with name and distance. All of it cheap: update on the existing peer-sync cadence, no extra per-frame work.+3. **Get to your people.** A "go to" action per member. Same world and tier: a server-validated teleport to a safe offset near them, with a cooldown and a brief arrival effect. Different world: a designed handoff that deep-links to their world carrying full coin identity, keeping the party intact across the transition (this is the cross-realm case social-hub presence exists to answer).+4. **Talk to your people.** A party channel in the chat bar, toggle between world and party scope, party messages styled distinctly. Delivery rides the friends messaging path or a party-scoped room relay, whichever is less new code; state the choice.+5. **Event glue.** If Feature 13's quest line landed, quests that say "with another player" should count party members preferentially. If Feature 16's invite sheet landed, an invite accepted from a party member's link should offer to join their party on arrival.++## Verify++- Two browsers, two accounts on `npm run dev`: full lifecycle (invite, accept, blips, edge chips, party chat, go-to teleport, leave). Then the cross-world case: member in a different coin world, handoff follows them, party survives.+- Kill one session hard (close the tab): the ghost clears from the other client within the presence TTL.+- Declines, full-party invites, and inviting someone already partied all produce designed feedback, not silence. `npm test` green with a test on party state transitions.++## Report format++Files shipped, where party state lives and its TTL, the teleport validation rule, the chat delivery choice, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/22-venue-projector-mode.md b/docs/event-readiness/22-venue-projector-mode.mdnew file mode 100644index 000000000..316a3f5ae--- /dev/null+++ b/docs/event-readiness/22-venue-projector-mode.md@@ -0,0 +1,29 @@+# Feature 22: projector mode, the world on the venue's big screen++Tomorrow there is a physical room with a big screen. The best thing that screen can show is the live world itself: the crowd, the stage, the jumbotrons, with event branding over it. Today the closest thing is zen mode plus the cinematic camera, which still spawns a visible player and shows player-grade UI. Build a real broadcast view.++## Where the code lives++- URL params: parsing in `src/game/coincommunities.js` and the canonicalisation allowlist where entry rewrites the URL via `history.replaceState`. Any new param MUST be added to that allowlist or it is dropped on entry: this is the known trap+- Cameras: `src/game/camera-modes.js` (cinematic mode exists) and `src/game/hud/camera-rig.js`+- Zen and embed precedents: `ui=hidden` and `bg=transparent` handling in `src/game/coincommunities.js`+- Server join: `multiplayer/src/rooms/WalkRoom.js` join options; the client sends them from `src/game/community-net.js`+- Event state: `public/event.json` via `src/game/event-countdown.js`; live activity if Feature 15 landed; invite QR if Feature 16 landed++## What to build++1. **`?director=1`.** A new param (added to the canonical allowlist) that enters the world as a spectator: no avatar spawned, not counted in minigames or crowd logic, invisible to players. This needs a server-honored `spectator` join option in `WalkRoom` so it is real, not a hidden local avatar other clients still receive.+2. **Auto-director camera.** A shot rotation across the world's actual points of interest (spawn plaza crowd, chart jumbotron, dance floor, the stage if Feature 17 landed, wherever player density is highest right now): slow dollies and orbits, cut every 15 to 30 seconds, never clipping through geometry (reuse the collision-aware rig). Player density should genuinely influence shot choice; an empty corner is not a shot.+3. **Broadcast overlay.** A clean lower-third: event name and LIVE or countdown state from `event.json`, world name and symbol, live online count, and, if available, the activity ticker rows and an invite QR in a corner. Typography at projector scale (readable from the back of a room), on brand, no player HUD anywhere.+4. **Unattended resilience.** This screen runs for hours with nobody at the keyboard: reconnect forever with backoff (never surface a terminal error card; show a quiet "reconnecting" state over the last frame), request a wake lock, hide the cursor after idle, and auto-recover from WebGL context loss by reloading itself.+5. **Performance headroom.** Target the venue machine, not a phone: full render scale, but keep the overlay out of the render loop and DOM-stable. A dropped frame on the big screen is visible to a whole room.++## Verify++- `npm run dev` with two normal players plus one director tab: the director is invisible in both player clients and absent from the online count seen in-world (or counted separately; decide and state it), shots rotate across occupied areas, overlay states correct for upcoming, live, and no-event.+- Kill the network for 30 seconds: quiet recovery, no error card. Simulate context loss (`WEBGL_lose_context`): the view comes back without a human touching it.+- One-hour soak: stable memory, no DOM growth. `npm test` green.++## Report format++Files shipped, the exact URL to put on the venue machine, the spectator join contract, the shot list logic in three sentences, soak results, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/23-signature-wall.md b/docs/event-readiness/23-signature-wall.mdnew file mode 100644index 000000000..06e20763f--- /dev/null+++ b/docs/event-readiness/23-signature-wall.md@@ -0,0 +1,30 @@+# Feature 23: the signature wall, a permanent artifact of the event++Events end; walls remember. Give the $THREE world a signature wall near spawn where every attendee can leave their name and a short line, rendered as graffiti everyone sees, persisted forever. It costs visitors ten seconds, gives them ownership of the space, and becomes the artifact the community links back to after the event.++## Where the code lives++- Persistence precedents: `src/game/world-persist.js` (Postgres index plus blob store for builds), Upstash Redis in `api/play/builds.js`; pick the store that fits an append-only list of small records and state why+- Canvas-rendered world screens: `src/game/screen-texture.js` (shared quality pattern), `src/game/chart-screen.js` and `src/game/x402-jumbotron.js` as CanvasTexture precedents+- Interaction and placement: landmark precedent in `src/game/wheel-station.js`; the contextual F interaction chain in `src/game/coincommunities.js`+- Safety: the slur gate in `multiplayer/src/rooms/WalkRoom.js` and `multiplayer/src/display-name-safety.js` (reuse the same filters server-side on the write path)+- Identity: the play pass from `src/game/play-auth.js` distinguishes signed-in wallets from guests++## What to build++1. **The wall.** A physical wall near spawn, textured by a CanvasTexture that composites signatures as varied graffiti (a few fonts, sizes, rotations, ink colors seeded per signature so the wall looks organic, not like a spreadsheet). A counter shows how many have signed.+2. **Signing.** Walk up, F to sign: name (prefilled from the player's display name) plus an optional line capped around 80 characters. Signed-in wallets sign once ever (idempotent server-side by wallet); guests sign once per session with a nudge that signing in makes it permanent. The new signature appears on the wall with a small ink-splash moment, visible to everyone in the room.+3. **The write path.** One `api/` handler validating length, running the same name-safety and slur filters the chat uses, rate-limited, storing display text only (never wallet addresses in the rendered record). Include a simple owner-only removal path (by signature id) for moderation; document the curl in the pack's runbook file.+4. **Overflow by design.** The wall must look good at 10 signatures and at 5,000: batch signatures into pages the texture cycles through slowly, or grow tiles smaller as density rises; either way the newest signatures get a period of prominence. State the chosen approach. The texture redraw must be incremental or throttled, never a full redraw per new signature at event rates.+5. **The artifact.** A public read endpoint plus a shareable rendering: an OG-card style image of the wall (precedent: `api/og-leaderboard.js`) so "we signed it" can be posted after the event.++## Verify++- Two browsers on `npm run dev`: sign in one, watch it land live in the other and survive both reloads. Second signing attempt on the same wallet is refused with designed feedback.+- Filter path proven: a slur in the message is rejected server-side; markup in the message renders inert (it is untrusted display text, never HTML).+- Load a seeded wall of several thousand signatures: texture stays sharp, frame time flat, memory stable.+- `npm test` green with tests on the write handler (validation, idempotency, rate limit).++## Report format++Files shipped, the store chosen and why, the overflow design in two sentences, the moderation curl, the artifact URL shape, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/24-dance-off.md b/docs/event-readiness/24-dance-off.mdnew file mode 100644index 000000000..1b24391d1--- /dev/null+++ b/docs/event-readiness/24-dance-off.md@@ -0,0 +1,29 @@+# Feature 24: dance-off rounds on the synced floor++The dance floor already syncs everyone to a server beat with rotating clips, and an x402 dance-tip endpoint already exists. What is missing is the game: scheduled dance-off rounds where the floor becomes a competition, the crowd votes, and the winner gets a spotlight moment. This is the recurring beat that gives an event crowd something to gather around every few minutes.++## Where the code lives++- The floor today: the beat broadcast in `multiplayer/src/rooms/WalkRoom.js` (`floor:beat`) and the client sync in `src/game/coincommunities.js`+- Round-machine precedent: King of the Totem in `WalkRoom.js` (phase, timer, leaderboard, winner) and its HUD panel in `src/game/coincommunities-ui.js`; copy that shape, it is already proven+- Crowd input: the reaction bar (6 emoji) in `src/game/coincommunities-ui.js` and the reaction relay in `WalkRoom.js`+- Tips: `api/x402/dance-tip.js`+- Winner reward: the cosmetics ownership path (`multiplayer/src/cosmetics-ownership.js`, `api/cosmetics/`); celebration feel: `src/game/hud/game-feel.js`; feed: `multiplayer/src/feed.js`++## What to build++1. **The round machine.** Server-side dance-off rounds on the existing floor, in the King of the Totem shape: idle, a join window announced in-world, a performance phase (60 to 90 seconds, contestants are the players on the floor when it starts), a vote tally, a winner moment, cooldown, repeat. During the event window (`public/event.json`) rounds run frequently; outside it, occasionally or on demand.+2. **Performing.** Contestants dance with the existing synced clips; let a contestant switch clips mid-round through the emote wheel so there is actual expression involved. Contestants get a subtle floor highlight so the crowd knows who is in.+3. **Voting.** The crowd votes with the existing reaction bar targeted at a contestant (nearest-aim or a tap on the contestant's nameplate); one counted vote per voter per round, tallied server-side, spam beyond the first vote is just cosmetic confetti. Contestants cannot vote for themselves.+4. **Winning.** Spotlight beam, confetti, jumbotron feature with name and avatar snapshot, a feed event, and a small cosmetic or title through the existing ownership path, granted idempotently. Tips: the winner moment surfaces the dance-tip action for the crowd (x402 spend: recipient and amount rendered, explicit confirmation, every time).+5. **Fairness and failure.** A round with fewer than two contestants dissolves quietly. Disconnecting mid-round removes the contestant and their votes. Ties resolve by earliest-to-threshold. Nothing about a round can strand the floor: the beat and free dancing always come back.++## Verify++- Three browsers on `npm run dev`: two contestants, one voter; a full round end to end including the winner moment, the grant appearing in the winner's wardrobe exactly once across repeat wins, and the feed event.+- Solo-contestant round dissolves; mid-round disconnect handled; the floor returns to its normal beat after every path.+- Event window on and off changes the cadence as designed. `npm test` green with unit tests on the tally (one vote per voter, no self-votes, tie rule).++## Report format++Files shipped, the round timings chosen, the vote targeting rule, the reward and its grant path, and the `data/changelog.json` entry.diff --git a/docs/event-readiness/README.md b/docs/event-readiness/README.mdindex 62cd9f0cf..199d953fb 100644--- a/docs/event-readiness/README.md+++ b/docs/event-readiness/README.md@@ -1,6 +1,6 @@# Event readiness: prompt pack-Sixteen self-contained agent prompts to get three.ws, and especially the /play world, to 100% before the event. Files 01-10 audit and fix what exists; files 11-16 build new event features. Each file is a complete prompt: paste it into a fresh Claude Code session (or hand it to a subagent) and it runs end to end, fixing or building, then reporting.+Twenty-four self-contained agent prompts to get three.ws, and especially the /play world, to 100% before the event. Files 01-10 audit and fix what exists; files 11-16 build new event features; files 17-24 build new capabilities, things players can DO in the virtual world, by wiring in subsystems that are already built but unreachable from /play. Each file is a complete prompt: paste it into a fresh Claude Code session (or hand it to a subagent) and it runs end to end, fixing or building, then reporting.Suggested order and parallelism (audits):@@ -28,6 +28,19 @@ Feature builds (run after audits 1-3 land, or in parallel if staffed; 12, 14, an| 15 | [15-live-hype-feed.md](15-live-hype-feed.md) | Activity ticker + market hype moments | nothing (better with 13) || 16 | [16-invite-flow.md](16-invite-flow.md) | Invite sheet, QR, OG card truth, arrival continuity | nothing (better with 14) |+Capability builds (17-24): each wires an existing, finished subsystem into the world or adds a missing social primitive. All stand alone; the noted pairings just make them better together.++| # | Prompt | Builds | Wires in / pairs with |+|---|--------|--------|-----------------------|+| 17 | [17-plaza-live-show.md](17-plaza-live-show.md) | Live hosted show on a plaza stage, with $THREE tips | StageRoom + ShowDirector (built, unreachable from /play) |+| 18 | [18-coin-wars-portal.md](18-coin-wars-portal.md) | In-world Coin Wars portal: standings, queue, spectate | ClashRoom + war standings (built, arena-page only) |+| 19 | [19-forge-props-live.md](19-forge-props-live.md) | Text-to-3D prop generation inside build mode | Forge lane + the networked prop pipeline |+| 20 | [20-world-chat-scrollback.md](20-world-chat-scrollback.md) | Chat scrollback for late joiners + community-feed bridge | the WalkRoom relay + api/community/messages |+| 21 | [21-party-system.md](21-party-system.md) | Parties: form, see, reach, and talk to your crew | friends/presence stack; pairs with 13, 16 |+| 22 | [22-venue-projector-mode.md](22-venue-projector-mode.md) | Broadcast spectator view for the venue big screen | camera rig + event.json; pairs with 15, 16, 17 |+| 23 | [23-signature-wall.md](23-signature-wall.md) | Persistent signature wall, the event's artifact | world-persist patterns + name safety |+| 24 | [24-dance-off.md](24-dance-off.md) | Judged dance-off rounds with crowd voting and tips | dance floor beat + King of the Totem round machine |+Rules that apply to every prompt in this pack:- The canonical test URL for the world is the $THREE community: `https://three.ws/play?coin=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump&name=three.ws&symbol=three&image=%2Fapi%2Fimg%3Furl%3Dhttps%253A%252F%252Fipfs.io%252Fipfs%252Fbafybeihe22b5sxr3ihnxt7pregfieyteqvubqhik3j3y4bbx243xlqjw3q%26seed%3DFeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`