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
Remove completed task files, ibm-attest test update, changelog regen
nirholasab4464943965
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 56d99d95b..a2d036732 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,14 +8,20 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Agent wallet's full money loop is now verified end-to-end on devnet** — A re-runnable harness now exercises the entire agent-wallet lifecycle in one pass — create a wallet, fund it, trade and snipe pump.fun tokens, pay an x402 service, exit a graduated position, and withdraw — against real Solana devnet state. It runs simulate-first and reports each step as passed or honestly blocked on funding/credentials, never a fake result, so regressions in the seams between deposit, trading, sniping, payments, and withdrawal surface before they reach holders. The agent wallet hub's Snipe tab now opens the live Sniper dashboard directly instead of a placeholder. (`/agent-wallet`) `[infra]`- **AR & half-body avatar export fixed for compressed models** — View-in-AR (USDZ for iOS Quick Look) and the half-body VR-seat export now work for avatars that ship with meshopt or Draco geometry compression. Previously these exports silently failed on compressed GLBs because the loader had no decoder registered; the pipeline now loads the meshopt and Draco decoders before parsing, so every avatar — including the compressed ones produced by the server-side bake — converts cleanly. (`/gallery`) `[fix]`+- **Creator royalty payouts protected against double-settlement** — Royalty payouts to skill authors now claim each pending amount atomically before sending funds on-chain, so two overlapping settlement runs can never pay the same balance twice. Creators are paid exactly once for what they've earned. `[fix]`+- **Discovery now shows only real creator avatars** — The Explore / discovery feed previously padded itself with a set of built-in sample avatars and counted them in the totals. The feed and its counts now reflect only real avatars created by the community — no filler. (`/explore`) `[improvement]`- **Fixed broken links and added retry on failed loads across the app** — Several navigation links pointed at pages that no longer exist — "View plans" on the agent deploy flow, the Classic viewer menu item, and the API-key links on the AWS welcome and selfie pages — and now go to the right place. List pages that could get stuck showing a blank grid or endless skeletons on a network hiccup (your collection, a coin's community profile, the bounty board, the agents directory) now show a clear, retryable error instead. The $THREE dashboard also replaced a non-working "claim" button with a plain explanation that revenue share is distributed to holders automatically. `[fix, improvement]`- **Fund any agent wallet by scanning a QR or copying the address — with live confirmation** — The agent wallet's Deposit tab is now a complete, public funding panel: a crisp QR code (generated on-device, no third-party service) that your phone wallet can scan, a one-tap copyable Solana address, an optional preset amount, and a Solana deep-link that opens Phantom, Solflare or Backpack on mobile. The panel watches the agent's real on-chain balance and confirms the moment your SOL lands — "◎0.5 SOL received" — instead of leaving you guessing. Anyone can fund an agent, not just its owner, and the new "Fund agent wallet" button on the create-agent success screen leads new users straight into it. `[feature]`+- **Funds and payments hardened: wallet-key isolation, spend-cap races, recipient checks** — Following the security audit, we strengthened everything that touches money. Custodial agent-wallet private keys now encrypt with a dedicated key — separate from the session secret — and a unique salt per wallet, so the secret guarding your funds no longer shares fate with anything else (existing wallets keep working; they re-key on next use). Per-agent daily spend limits, x402 payment de-duplication, and on-chain permission caps are now enforced atomically, closing races where a burst of concurrent requests could slip past a budget or run paid work twice for one payment. Pay-by-name sends re-check that the name still resolves to the exact address you approved before the agent signs, and reject look-alike or invalid targets; withdrawals now only ever pay out to a wallet you've already saved. We also removed a stored cross-site-scripting vector in uploaded 3D-model metadata and the admin panel, added clickjacking and permissions-policy protections site-wide, and moved IPFS pinning fully server-side so no upload credential ever ships to the browser. No action needed on your end. `[security]`- **Getting-started progress now follows you across the whole platform** — Your setup checklist no longer forgets what you've done. The floating "Getting started" guide and the dashboard's onboarding panel now share one source of truth: the moment you create an avatar, give an agent a personality, or embed a widget, every checklist on the site ticks that step — no more seeing "2 of 4 done" in one place and "0 of 3" in another on the same visit. Visiting your dashboard reconciles your real progress automatically, and saving a persona to an agent now completes the "give it a brain" step the instant it happens. `[improvement]`- **Hardened the widget custom-brain proxy against internal-network abuse** — Chat widgets configured with a custom AI "brain" endpoint now route that request through our SSRF guard, so a widget owner can no longer point it at a private/internal address to probe our network. No change for legitimate public endpoints. We also tightened a few backend read paths so a temporary database or price-feed hiccup surfaces as "temporarily unavailable" instead of silently looking like empty data. `[security, improvement]`- **IBM sites can now embed three.ws pages** — We extended the sitewide clickjacking protection to allow IBM properties to frame three.ws. Any page on ibm.com (and its subdomains) may now load three.ws pages inside an iframe — useful for the IBM x402 demo and other IBM-hosted integrations — while every other external site is still refused by default. Sign-in, wallet, dashboard and OAuth consent pages remain hard-locked and cannot be framed by anyone, including IBM. The avatar, widget and walk embeds continue to work on any site as before. `[security, improvement]`+- **Paid market-intel never charges you for unavailable data** — The pay-per-call market-intel endpoints (the $THREE Town Oracle and the crypto-intel kiosk) used to hand back an estimated "neutral" reading — and still take the payment — when their live price feed was rate-limited. They now return a clean "temporarily unavailable, retry shortly" instead, and crucially the payment is never settled when live data is missing. You only pay when you get a real, live signal. `[fix]`+- **Platform-wide API security hardening** — We completed a full security audit of the API and tightened it across the board. Server errors no longer echo internal details back to callers — they return a short reference code you can quote to support, while the real diagnostics stay server-side (this also closes a path where a backend service key could surface in an error message). Account-changing actions made from the website — updating preferences, managing webhooks and payout wallets, marking notifications read, scheduling posts, setting skill prices — now carry cross-site request-forgery protection, so a malicious page can't act on your behalf. Sign-in, wallet-linking, GitHub connect and sensitive admin actions gained rate limits, and image-analysis requests are now screened so a supplied URL can't be used to probe internal systems. API access via developer keys is unaffected. `[security]`- **Premium avatar cosmetics are now buyable right in the character creator** — Locked premium headwear, eyewear, dyes and auras in the character creator no longer dead-end on a placeholder — clicking one now opens the real wallet checkout and unlocks it the moment the USDC payment settles, then equips it on your live preview. Anything you already own loads pre-unlocked, and the price you see is the true checkout amount pulled from the catalog. (`/create`) `[feature, fix]`- **See your net take when you price a skill** — The Skill Pricing panel on the Monetize dashboard now shows exactly what you keep on every payment. As you type a per-call price, a line below the field updates live — "You receive $X.XX after 2.5% fee" — so the platform's cut is never a surprise at payout time. The same net figure appears in the Add Pricing dialog, and the panel header states the current platform fee rate, which is read from the live billing config rather than hardcoded. (`/dashboard/monetize`) `[feature, improvement]`- **Shared agent links now unfurl with the agent's own avatar** — When you paste a link to an agent on X, Discord, Slack, Telegram or iMessage, the preview card now shows that agent's actual avatar, name and description instead of a generic three.ws image — so every shared link is visual proof of the collectible. Bots that don't run JavaScript get the right image and text rendered on the server, and agents without an avatar yet fall back to a clean branded card with their initial. We also fixed the canonical and share URLs on agent pages to point at the real /agents/<id> address. `[feature, improvement]`+- **Token Oracle follow / unfollow is working again** — Subscribing an agent to a token's oracle alerts — and unsubscribing — was silently failing for everyone; only the status check worked. Both now go through correctly, so you can opt an agent into (and out of) score-based alerts as intended. `[fix]`- **Unity & Unreal avatar loading documented with code that actually works** — The developer hub's Unity and Unreal cards used to show sample code for an SDK that doesn't exist yet. They now show the real, working way to load a three.ws avatar today — your avatar's GLB endpoint loaded at runtime with glTFast (Unity) or glTFRuntime (Unreal), both standard glTF importers — alongside an honest note that a native package is still on the roadmap. (`/dashboard/developers`) `[docs, improvement]`## 2026-06-18diff --git a/data/changelog.json b/data/changelog.jsonindex aae4cd3a2..310f37678 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,55 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-19",+ "title": "Funds and payments hardened: wallet-key isolation, spend-cap races, recipient checks",+ "summary": "Following the security audit, we strengthened everything that touches money. Custodial agent-wallet private keys now encrypt with a dedicated key — separate from the session secret — and a unique salt per wallet, so the secret guarding your funds no longer shares fate with anything else (existing wallets keep working; they re-key on next use). Per-agent daily spend limits, x402 payment de-duplication, and on-chain permission caps are now enforced atomically, closing races where a burst of concurrent requests could slip past a budget or run paid work twice for one payment. Pay-by-name sends re-check that the name still resolves to the exact address you approved before the agent signs, and reject look-alike or invalid targets; withdrawals now only ever pay out to a wallet you've already saved. We also removed a stored cross-site-scripting vector in uploaded 3D-model metadata and the admin panel, added clickjacking and permissions-policy protections site-wide, and moved IPFS pinning fully server-side so no upload credential ever ships to the browser. No action needed on your end.",+ "tags": [+ "security"+ ]+ },+ {+ "date": "2026-06-19",+ "title": "Platform-wide API security hardening",+ "summary": "We completed a full security audit of the API and tightened it across the board. Server errors no longer echo internal details back to callers — they return a short reference code you can quote to support, while the real diagnostics stay server-side (this also closes a path where a backend service key could surface in an error message). Account-changing actions made from the website — updating preferences, managing webhooks and payout wallets, marking notifications read, scheduling posts, setting skill prices — now carry cross-site request-forgery protection, so a malicious page can't act on your behalf. Sign-in, wallet-linking, GitHub connect and sensitive admin actions gained rate limits, and image-analysis requests are now screened so a supplied URL can't be used to probe internal systems. API access via developer keys is unaffected.",+ "tags": [+ "security"+ ]+ },+ {+ "date": "2026-06-19",+ "title": "Paid market-intel never charges you for unavailable data",+ "summary": "The pay-per-call market-intel endpoints (the $THREE Town Oracle and the crypto-intel kiosk) used to hand back an estimated \"neutral\" reading — and still take the payment — when their live price feed was rate-limited. They now return a clean \"temporarily unavailable, retry shortly\" instead, and crucially the payment is never settled when live data is missing. You only pay when you get a real, live signal.",+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-19",+ "title": "Token Oracle follow / unfollow is working again",+ "summary": "Subscribing an agent to a token's oracle alerts — and unsubscribing — was silently failing for everyone; only the status check worked. Both now go through correctly, so you can opt an agent into (and out of) score-based alerts as intended.",+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-19",+ "title": "Discovery now shows only real creator avatars",+ "summary": "The Explore / discovery feed previously padded itself with a set of built-in sample avatars and counted them in the totals. The feed and its counts now reflect only real avatars created by the community — no filler.",+ "tags": [+ "improvement"+ ],+ "link": "/explore"+ },+ {+ "date": "2026-06-19",+ "title": "Creator royalty payouts protected against double-settlement",+ "summary": "Royalty payouts to skill authors now claim each pending amount atomically before sending funds on-chain, so two overlapping settlement runs can never pay the same balance twice. Creators are paid exactly once for what they've earned.",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-19","title": "Getting-started progress now follows you across the whole platform",diff --git a/public/changelog.json b/public/changelog.jsonindex ac357a612..69b75075d 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-19T00:48:29.587Z",+ "generated_at": "2026-06-19T01:10:39.566Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -26,6 +26,26 @@"fix"]},+ {+ "date": "2026-06-19",+ "type": "update",+ "title": "Creator royalty payouts protected against double-settlement",+ "summary": "Royalty payouts to skill authors now claim each pending amount atomically before sending funds on-chain, so two overlapping settlement runs can never pay the same balance twice. Creators are paid exactly once for what they've earned.",+ "link": null,+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-19",+ "type": "update",+ "title": "Discovery now shows only real creator avatars",+ "summary": "The Explore / discovery feed previously padded itself with a set of built-in sample avatars and counted them in the totals. The feed and its counts now reflect only real avatars created by the community — no filler.",+ "link": "/explore",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-19","type": "update",@@ -47,6 +67,16 @@"feature"]},+ {+ "date": "2026-06-19",+ "type": "update",+ "title": "Funds and payments hardened: wallet-key isolation, spend-cap races, recipient checks",+ "summary": "Following the security audit, we strengthened everything that touches money. Custodial agent-wallet private keys now encrypt with a dedicated key — separate from the session secret — and a unique salt per wallet, so the secret guarding your funds no longer shares fate with anything else (existing wallets keep working; they re-key on next use). Per-agent daily spend limits, x402 payment de-duplication, and on-chain permission caps are now enforced atomically, closing races where a burst of concurrent requests could slip past a budget or run paid work twice for one payment. Pay-by-name sends re-check that the name still resolves to the exact address you approved before the agent signs, and reject look-alike or invalid targets; withdrawals now only ever pay out to a wallet you've already saved. We also removed a stored cross-site-scripting vector in uploaded 3D-model metadata and the admin panel, added clickjacking and permissions-policy protections site-wide, and moved IPFS pinning fully server-side so no upload credential ever ships to the browser. No action needed on your end.",+ "link": null,+ "tags": [+ "security"+ ]+ },{"date": "2026-06-19","type": "update",@@ -79,6 +109,26 @@"improvement"]},+ {+ "date": "2026-06-19",+ "type": "update",+ "title": "Paid market-intel never charges you for unavailable data",+ "summary": "The pay-per-call market-intel endpoints (the $THREE Town Oracle and the crypto-intel kiosk) used to hand back an estimated \"neutral\" reading — and still take the payment — when their live price feed was rate-limited. They now return a clean \"temporarily unavailable, retry shortly\" instead, and crucially the payment is never settled when live data is missing. You only pay when you get a real, live signal.",+ "link": null,+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-19",+ "type": "update",+ "title": "Platform-wide API security hardening",+ "summary": "We completed a full security audit of the API and tightened it across the board. Server errors no longer echo internal details back to callers — they return a short reference code you can quote to support, while the real diagnostics stay server-side (this also closes a path where a backend service key could surface in an error message). Account-changing actions made from the website — updating preferences, managing webhooks and payout wallets, marking notifications read, scheduling posts, setting skill prices — now carry cross-site request-forgery protection, so a malicious page can't act on your behalf. Sign-in, wallet-linking, GitHub connect and sensitive admin actions gained rate limits, and image-analysis requests are now screened so a supplied URL can't be used to probe internal systems. API access via developer keys is unaffected.",+ "link": null,+ "tags": [+ "security"+ ]+ },{"date": "2026-06-19","type": "update",@@ -112,6 +162,16 @@"improvement"]},+ {+ "date": "2026-06-19",+ "type": "update",+ "title": "Token Oracle follow / unfollow is working again",+ "summary": "Subscribing an agent to a token's oracle alerts — and unsubscribing — was silently failing for everyone; only the status check worked. Both now go through correctly, so you can opt an agent into (and out of) score-based alerts as intended.",+ "link": null,+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-19","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 60142659c..f5e09333a 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -22,6 +22,22 @@<category>fix</category><description>View-in-AR (USDZ for iOS Quick Look) and the half-body VR-seat export now work for avatars that ship with meshopt or Draco geometry compression. Previously these exports silently failed on compressed GLBs because the loader had no decoder registered; the pipeline now loads the meshopt and Draco decoders before parsing, so every avatar — including the compressed ones produced by the server-side bake — converts cleanly.</description></item>+ <item>+ <title>Creator royalty payouts protected against double-settlement</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-19:Creator royalty payouts protected against double-settlement</guid>+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Royalty payouts to skill authors now claim each pending amount atomically before sending funds on-chain, so two overlapping settlement runs can never pay the same balance twice. Creators are paid exactly once for what they've earned.</description>+ </item>+ <item>+ <title>Discovery now shows only real creator avatars</title>+ <link>https://three.ws/explore</link>+ <guid isPermaLink="false">2026-06-19:Discovery now shows only real creator avatars</guid>+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The Explore / discovery feed previously padded itself with a set of built-in sample avatars and counted them in the totals. The feed and its counts now reflect only real avatars created by the community — no filler.</description>+ </item><item><title>Fixed broken links and added retry on failed loads across the app</title><link>https://three.ws/changelog</link>@@ -38,6 +54,14 @@<category>feature</category><description>The agent wallet's Deposit tab is now a complete, public funding panel: a crisp QR code (generated on-device, no third-party service) that your phone wallet can scan, a one-tap copyable Solana address, an optional preset amount, and a Solana deep-link that opens Phantom, Solflare or Backpack on mobile. The panel watches the agent's real on-chain balance and confirms the moment your SOL lands — "◎0.5 SOL received" — instead of leaving you guessing. Anyone can fund an agent, not just its owner, and the new "Fund agent wallet" button on the create-agent success screen leads new users straight into it.</description></item>+ <item>+ <title>Funds and payments hardened: wallet-key isolation, spend-cap races, recipient checks</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-19:Funds and payments hardened: wallet-key isolation, spend-cap races, recipient checks</guid>+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>+ <category>security</category>+ <description>Following the security audit, we strengthened everything that touches money. Custodial agent-wallet private keys now encrypt with a dedicated key — separate from the session secret — and a unique salt per wallet, so the secret guarding your funds no longer shares fate with anything else (existing wallets keep working; they re-key on next use). Per-agent daily spend limits, x402 payment de-duplication, and on-chain permission caps are now enforced atomically, closing races where a burst of concurrent requests could slip past a budget or run paid work twice for one payment. Pay-by-name sends re-check that the name still resolves to the exact address you approved before the agent signs, and reject look-alike or invalid targets; withdrawals now only ever pay out to a wallet you've already saved. We also removed a stored cross-site-scripting vector in uploaded 3D-model metadata and the admin panel, added clickjacking and permissions-policy protections site-wide, and moved IPFS pinning fully server-side so no upload credential ever ships to the browser. No action needed on your end.</description>+ </item><item><title>Getting-started progress now follows you across the whole platform</title><link>https://three.ws/changelog</link>@@ -62,6 +86,22 @@<category>security</category><description>We extended the sitewide clickjacking protection to allow IBM properties to frame three.ws. Any page on ibm.com (and its subdomains) may now load three.ws pages inside an iframe — useful for the IBM x402 demo and other IBM-hosted integrations — while every other external site is still refused by default. Sign-in, wallet, dashboard and OAuth consent pages remain hard-locked and cannot be framed by anyone, including IBM. The avatar, widget and walk embeds continue to work on any site as before.</description></item>+ <item>+ <title>Paid market-intel never charges you for unavailable data</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-19:Paid market-intel never charges you for unavailable data</guid>+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The pay-per-call market-intel endpoints (the $THREE Town Oracle and the crypto-intel kiosk) used to hand back an estimated "neutral" reading — and still take the payment — when their live price feed was rate-limited. They now return a clean "temporarily unavailable, retry shortly" instead, and crucially the payment is never settled when live data is missing. You only pay when you get a real, live signal.</description>+ </item>+ <item>+ <title>Platform-wide API security hardening</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-19:Platform-wide API security hardening</guid>+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>+ <category>security</category>+ <description>We completed a full security audit of the API and tightened it across the board. Server errors no longer echo internal details back to callers — they return a short reference code you can quote to support, while the real diagnostics stay server-side (this also closes a path where a backend service key could surface in an error message). Account-changing actions made from the website — updating preferences, managing webhooks and payout wallets, marking notifications read, scheduling posts, setting skill prices — now carry cross-site request-forgery protection, so a malicious page can't act on your behalf. Sign-in, wallet-linking, GitHub connect and sensitive admin actions gained rate limits, and image-analysis requests are now screened so a supplied URL can't be used to probe internal systems. API access via developer keys is unaffected.</description>+ </item><item><title>Premium avatar cosmetics are now buyable right in the character creator</title><link>https://three.ws/create</link>@@ -86,6 +126,14 @@<category>feature</category><description>When you paste a link to an agent on X, Discord, Slack, Telegram or iMessage, the preview card now shows that agent's actual avatar, name and description instead of a generic three.ws image — so every shared link is visual proof of the collectible. Bots that don't run JavaScript get the right image and text rendered on the server, and agents without an avatar yet fall back to a clean branded card with their initial. We also fixed the canonical and share URLs on agent pages to point at the real /agents/<id> address.</description></item>+ <item>+ <title>Token Oracle follow / unfollow is working again</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-19:Token Oracle follow / unfollow is working again</guid>+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Subscribing an agent to a token's oracle alerts — and unsubscribing — was silently failing for everyone; only the status check worked. Both now go through correctly, so you can opt an agent into (and out of) score-based alerts as intended.</description>+ </item><item><title>Unity & Unreal avatar loading documented with code that actually works</title><link>https://three.ws/dashboard/developers</link>diff --git a/public/features.json b/public/features.jsonindex 45d2d4048..9641fa671 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-19T00:48:29.530Z",+ "generated_at": "2026-06-19T01:10:39.540Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/tasks/agent-monetization/00-overview.md b/tasks/agent-monetization/00-overview.mddeleted file mode 100644index 39d7c92d9..000000000--- a/tasks/agent-monetization/00-overview.md+++ /dev/null@@ -1,58 +0,0 @@-# Agent Monetization — Feature Overview & Task Index--## What This Feature Does-Allows agent owners on Three.ws to charge callers for skill invocations. Revenue flows to the owner's configured payout wallet (Solana USDC or Base USDC), minus a configurable platform fee (default 2.5%). Owners can track earnings and request withdrawals from the dashboard.--## User Stories-- **As an agent owner**, I can set a price (in USDC) for each skill my agent offers-- **As an agent owner**, I can see how much I've earned, broken down by skill and over time-- **As an agent owner**, I can withdraw my earnings to my Solana or Base wallet-- **As a caller**, I see the price before invoking a paid skill and can approve or cancel-- **As a caller browsing the marketplace**, I can see which agents have paid skills at a glance--## Architecture Summary-- Pricing stored in `agent_skill_prices` table (per agent, per skill)-- x402 manifest endpoint reads live pricing from DB-- Payment intents (existing `agent_payment_intents`) are consumed; revenue recorded in `agent_revenue_events`-- Platform fee calculated at event time (`fee_bps` from `PLATFORM_FEE_BPS` env var)-- Withdrawals queued in `agent_withdrawals`, processed by a Vercel cron every 15 minutes-- All revenue scoped by `agent_identities.user_id` for authorization--## Task Index--| # | Task | Description | Depends On |-|---|------|-------------|------------|-| 01 | [DB Schema](01-db-schema.md) | 4 new tables: prices, revenue, payout wallets, withdrawals | — |-| 02 | [Pricing API](02-pricing-api.md) | CRUD for per-skill prices | 01 |-| 03 | [x402 Manifest Update](03-x402-manifest-update.md) | Dynamic pricing in payment manifests | 01, 02 |-| 04 | [Revenue Attribution](04-revenue-attribution.md) | Write revenue events on intent consumption | 01, 03 |-| 05 | [Payout Wallet API](05-payout-wallet-api.md) | CRUD for payout wallet addresses | 01 |-| 06 | [Revenue Dashboard API](06-revenue-dashboard-api.md) | Aggregated earnings data endpoint | 01, 04 |-| 07 | [Withdrawal API](07-withdrawal-api.md) | Request and track payouts | 01, 05, 06 |-| 08 | [Monetization Settings UI](08-monetization-settings-ui.md) | Agent editor Monetization tab | 02, 05 |-| 09 | [Caller Payment Gate](09-caller-payment-gate.md) | Frontend intercept for paid skill invocations | 03 |-| 10 | [Revenue Dashboard UI](10-revenue-dashboard-ui.md) | Earnings charts and summary cards | 06 |-| 11 | [Withdrawal UI](11-withdrawal-ui.md) | Request payout from the dashboard | 07, 10 |-| 12 | [Platform Fee Config](12-platform-fee-config.md) | Fee rate exposure and admin revenue view | 04 |-| 13 | [Marketplace Pricing Display](13-agent-marketplace-pricing-display.md) | Show prices on agent cards and detail pages | 02 |-| 14 | [SDK Payment Support](14-sdk-payment-support.md) | Programmatic payment for SDK callers | 03 |-| 15 | [Cron: Withdrawal Processor](15-cron-withdrawal-processor.md) | On-chain USDC transfers for pending withdrawals | 07 |-| 16 | [Rate Limiting & Abuse](16-rate-limiting-and-abuse.md) | Rate limits on payment and withdrawal endpoints | 02, 07 |-| 17 | [Notifications](17-notifications.md) | Earnings and withdrawal alerts for owners | 04, 15 |-| 18 | [E2E Tests](18-e2e-tests.md) | Integration tests for the full flow | All above |-| 19 | [Security Review](19-security-review.md) | Pre-ship security checklist | All above |--## Recommended Implementation Order-1. Tasks 01–05 (backend foundation — no UI needed yet)-2. Tasks 06–07 (revenue and withdrawal APIs)-3. Tasks 08–11 (frontend — parallel with 12–14)-4. Tasks 12–14 (parallel work: fee config, marketplace, SDK)-5. Tasks 15–17 (cron, rate limits, notifications)-6. Task 18 (tests — add as you go, finalize last)-7. Task 19 (security review — gate on all above complete)--## Key Env Vars to Add-```-PLATFORM_FEE_BPS=250-PLATFORM_TREASURY_KEYPAIR=<base58-private-key>-```diff --git a/tasks/irl-floor-anchor/README.md b/tasks/irl-floor-anchor/README.mddeleted file mode 100644index 5ca726a14..000000000--- a/tasks/irl-floor-anchor/README.md+++ /dev/null@@ -1,71 +0,0 @@-# IRL "Place on floor" — production-hardening epic--Make the WebXR floor-anchor feature (`/irl` → **Place on floor**) genuinely-production-ready: zero error paths, every state designed, parity across devices,-and the best AR placement UX on the web. Run each task in a fresh Claude Code-chat. Every task is grounded in real lines — read the cited code before writing.--## What the feature is today (verified ground truth)--On WebXR-capable devices (Android Chrome) the user taps **Place on floor**-([pages/irl.html:1602](../../pages/irl.html#L1602)), enters `immersive-ar` with a-hit-test reticle, points at the floor, and taps to bind the agent to a real-`XRAnchor`. The anchored pose is converted to a GPS pin and persisted so it-reloads near the same spot and nearby users see it.--- Session controller: [src/ar/webxr.js](../../src/ar/webxr.js) — `WebXRSession`- (reticle, hit-test follow, `XRAnchor` on tap, content glue, restore-on-exit).-- Host wiring: [src/irl.js:1500-1689](../../src/irl.js#L1500-L1689) —- `detectFloorAnchorSupport` (1542), `enterFloorAnchor` (1587),- `onFloorAnchored` (1640), `persistFloorAnchor` (1658), `yawFromQuat` (1631).-- Persistence: [api/irl/pins.js](../../api/irl/pins.js) — `anchor_height_m`,- `anchor_yaw_deg`, `anchor_quat`, `anchor_source` columns (209-214).-- Pure math the client should reuse: [src/irl/room-anchor.js](../../src/irl/room-anchor.js).-- Overlay markup: `#irl-xr-overlay` / `.irl-xr-hint` / `#irl-xr-error`- ([pages/irl.html:1658-1666](../../pages/irl.html#L1658-L1666)).-- Server tests exist ([tests/api/irl-pins-anchor-pose.test.js](../../tests/api/irl-pins-anchor-pose.test.js));- the **client** pose math is untested.--## Real gaps this epic closes--1. **No client-math tests** and duplicated metre-per-degree constants — fragile,- unverifiable. → **01**-2. **`anchor_quat` is dead on render-back** — stored + returned, never applied;- tilt/orientation is silently lost. → **02**-3. **No real-world occlusion** — agent always draws over furniture/people. → **03**-4. **Placement UX is minimal** — one static ring, no contact shadow, no confirm- feedback, no haptics, no reduced-motion. → **04**-5. **No session-lifecycle hardening** — backgrounding, tracking loss, camera- contention, anchor-reject, and the pre-GPS replay path are unguarded. → **05**-6. **iOS / non-WebXR users have no AR path** — button hidden, no parity. → **06**-7. **Not verifiable without a phone**, and no final DoD/changelog. → **07**--## Tasks--| # | File | Summary | Size |-|---|------|---------|------|-| 01 | [01-pure-anchor-math-and-tests.md](01-pure-anchor-math-and-tests.md) | Extract client pose→GPS math into a pure, unit-tested module reusing `room-anchor.js` | S |-| 02 | [02-orientation-replay-and-tilt.md](02-orientation-replay-and-tilt.md) | Wire (or retire) `anchor_quat`; precise yaw + surface-tilt decision on render-back | M |-| 03 | [03-realworld-occlusion-depth.md](03-realworld-occlusion-depth.md) | `depth-sensing` optional feature + occlusion so the agent hides behind real objects | M |-| 04 | [04-placement-ux-polish.md](04-placement-ux-polish.md) | Reticle states, contact shadow, confirm pulse, haptics, reduced-motion, copy pass | M |-| 05 | [05-session-lifecycle-hardening.md](05-session-lifecycle-hardening.md) | Visibility/tracking-loss/interruption/anchor-reject/pre-GPS-replay; zero console noise | M |-| 06 | [06-ios-nonwebxr-parity.md](06-ios-nonwebxr-parity.md) | Best-available AR placement on iOS + a polished, honest fallback everywhere else | L |-| 07 | [07-verification-harness-and-signoff.md](07-verification-harness-and-signoff.md) | Fake-XRFrame test harness, full-flow verify without a phone, DoD sweep + changelog | M |--## Run order--`01 → 02 → 05 → 03 → 04 → 06 → 07`--01 is the zero-risk foundation (pure math + tests). 02 and 05 are correctness and-must land before the polish (03/04). 06 is the largest and depends on the others-being stable. 07 closes the epic. 03/04 can run in parallel after 02/05.--## Standing rules for every task--- No mocks, no stubs, no TODOs — finish what you touch (CLAUDE.md hard rules).-- Every state designed: searching, found, anchored, denied, unsupported, error.-- Real device verification where possible; otherwise the 07 harness + a written- note of what was and wasn't exercised on hardware. Never claim done unverified.-- Every user-visible change gets a `data/changelog.json` entry (tag `feature` or- `improvement`); run `npm run build:pages` to validate it.-- $THREE is the only coin. Stage explicit paths; re-check `git status` before commit.diff --git a/tasks/irl-floor-anchor/SIGN-OFF.md b/tasks/irl-floor-anchor/SIGN-OFF.mddeleted file mode 100644index 5a706df7e..000000000--- a/tasks/irl-floor-anchor/SIGN-OFF.md+++ /dev/null@@ -1,108 +0,0 @@-# IRL floor-anchor — verification sign-off (task 07)--> Closes the epic. Records what the fake-XR harness proves in CI vs. what only a-> real device can confirm, the one bug verification surfaced, and the DoD walk.--## What ships provable without a phone--WebXR `immersive-ar` can't be driven by a headless browser — no camera, no IMU,-no compositor — so before this task the floor-anchor session was only ever-exercised on one Android phone, and any regression in its session lifecycle or-pose math would have shipped invisibly. The harness closes that gap.--- **`tests/helpers/fake-xr.js`** — stand-ins for `navigator.xr`, `XRSession`,- `XRFrame`, `XRHitTestResult`, `XRReferenceSpace` and `XRAnchor`. A test feeds a- scripted sequence of frames (no-hit → hit at a known matrix → anchored), fires- `select` / `visibilitychange` / `end`, and steps the render loop by hand. Three.js- stays **real** (the reticle group, scene, content, XR camera, matrix math); only- the GPU renderer and the XR device are faked.-- **`tests/ar-webxr-session.test.js`** — 14 lifecycle tests, green in CI with no- hardware:- - session bring-up wires `hit-test` (required), `anchors`/`local-floor`/`dom-overlay`- (optional, the last only when a root is supplied);- - `onHit` fires only on the searching↔found transition; the reticle Group and- content track the hit pose; tap retires the reticle and emits `onAnchored` with- the **tap-moment** pose and `{ degraded: false }`; the live anchor then drives- content frame-to-frame;- - **degraded path (task 05):** `createAnchor` rejecting *or* being absent still- anchors, flagged `{ degraded: true }`, frozen at the tap pose — never broken;- a second tap is ignored (anchor exactly once);- - **OS-initiated end** restores the viewer (XR disabled, loop torn down, hit-test- source cancelled, reticle/shadow/pulse disposed, controls re-enabled, content- transform restored, visibilitychange unsubscribed) and runs **exactly once** —- a redundant `end()` is a no-op;- - **tracking loss** declares lost only after the sustained miss threshold, fires- once, recovers on the first pose, and hides the reticle so no stale target is- tappable; **visibility** changes fire per transition and pause per-frame work- while hidden;- - **write-path round-trip:** a known hit matrix → `_readAnchorPose` →- `anchorPoseToPin` reloads to the exact east/north/height/heading we tapped- (`source: 'webxr'`), end-to-end through the real session.--Pure layers already had their own suites and still pass: `ar-anchor-lifecycle`-(tracking machine, visibility enum, persist-gate save-exactly-once),-`irl-floor-anchor` (pose→pin math incl. sub-degree facing), `irl-room-anchor`.-Combined: **71/71 green.** `npm run typecheck` clean.--## Bug found and fixed during verification--The harness caught a real conflict the on-device testing never would have: on-tracking loss `_setTracking` hid the reticle, but later in the **same** `_tick`-the hit-block's dropout-tolerance branch re-showed it (`reticle.visible = _hadHit`),-leaving exactly the stale reticle the code comment promises is hidden. Fixed in-[src/ar/webxr.js](../../src/ar/webxr.js) by gating the re-show on-`!this._trackingState.lost`, so brief dropouts still hold a calm dim reticle while-genuine tracking loss keeps it hidden. Covered by the "hides the reticle on-tracking loss" test.--## Console audit (`/irl` AR flow)--The AR device layer — `src/ar/webxr.js`, `src/ar/depth-occlusion.js`,-`src/ar/anchor-lifecycle.js` — emits **no** console output on any path (the paused-tick is deliberately silent). The only AR-flow logs live in `src/irl.js`:--- `log.error('[irl] WebXR start failed:', err)` — fires only on a genuine session- rejection (camera/motion denied, or a device that can't hold AR) and is paired- with the actionable error UI (Retry / Use Pin instead). Intentional; `error` is- un-gated by design (`src/shared/log.js`).-- `log.info('[irl] simulated location cleared …')` — dev-only simulated-GPS path;- `info` is silenced in production unless `?debug` is set.--No other console lines originate in the AR flow. A full Playwright route audit-(`npm run audit:web`) cannot enter `immersive-ar` headlessly — which is the whole-reason this harness exists — so the in-session console is audited by source review-plus the harness; the surrounding `/irl` page is covered by the standard audit.--## Confirmed on real hardware vs. harness--| Behavior | Harness (CI) | Real device |-| --- | --- | --- |-| Session start / feature negotiation | ✅ asserted | ⬜ pending hardware pass |-| Hit-test reticle + content follow | ✅ asserted | ⬜ |-| Tap → anchor → live anchor follow | ✅ asserted | ⬜ |-| Degraded (no/failed `createAnchor`) fallback | ✅ asserted | ⬜ |-| Tracking-loss / recovery + reticle hide | ✅ asserted | ⬜ |-| Backgrounding pause / resume (call, lock) | ✅ asserted | ⬜ |-| OS-end restoration, idempotent | ✅ asserted | ⬜ |-| Pose → GPS pin numeric round-trip | ✅ asserted | ⬜ |-| Real-world occlusion (depth-sensing) | ⬜ device-only | ⬜ Android w/ depth |-| iOS AR Quick Look placement parity (task 06) | ⬜ device-only | ⬜ iPhone |-| Cross-user reload at the same spot/angle | ✅ math asserted | ⬜ two devices |--**Manual pass to record before final ship:** one Android WebXR device (anchor-hold, occlusion behind real geometry, recovery after a phone call) and one iPhone-(Quick Look entry/exit, placement parity). The harness's claims above should match-what those two devices show; note any divergence here.--## Definition of Done--- [x] Harness + lifecycle suite exercise hit/tap/anchor/degrade/visibility/end with- no hardware; `npm test` suites green (71/71 across the AR/IRL pure + session- tests), `typecheck` clean.-- [x] Write-path pose round-trip asserted numerically end-to-end.-- [x] Console audit clean; the two intentional `/irl` log lines documented benign.-- [x] One real bug surfaced by verification, fixed, and covered by a test.-- [x] Changelog entry added (`data/changelog.json`) and validated by- `npm run build:pages`. `npm run changelog:push` left for post-deploy.-- [x] No mocks/fake data in shipped code; the harness lives under `tests/` only.-- [ ] Real-device pass (Android + iPhone) — pending physical hardware; table above.diff --git a/tasks/irl-live/README.md b/tasks/irl-live/README.mddeleted file mode 100644index a59cc3d55..000000000--- a/tasks/irl-live/README.md+++ /dev/null@@ -1,118 +0,0 @@-# IRL-Live — Multiplayer World-Anchored 3D AI Agents--The program that turns `three.ws/irl` from a single-user AR toy into a **shared,-persistent, multiplayer layer of 3D AI agents anchored to real-world places**.--Anyone who opens `three.ws/irl` at a location, points their camera, and sees the-agents other people have placed there — locked to the real world, aware of the-viewer, tappable for a profile + services card, and payable via x402. Owners-manage their placed agents (balance, skills, reputation, outfit, location,-interaction inbox) from a dashboard anywhere on earth.-------## The four pillars (what the user asked for)--1. **Pick & lock** — choose which 3D AI agent is displayed and lock it into the- real world so it stays put when you move the camera. *(Epic A)*-2. **Aware & interactive** — agents turn to face the viewer's camera (the- "follow the cursor" trick, but the cursor is your phone). Tap one and a card- pops up: name, info, reputation, services. *(Epic B)*-3. **Owner dashboard** — monitor your IRL agents: balance, skills/services,- reputation, interaction prompts, outfit changes, and location — all- remotely, even after you've left the spot. *(Epic C)*-4. **Multiplayer** — *anyone* at the location sees *anyone's* placed agent, live.- Not just your own. *(Epic D)*-------## What already exists (do NOT rebuild — extend)--Grounded in the current tree as of this plan:--| Piece | Location | State |-|---|---|---|-| IRL AR client | `pages/irl.html` + `src/irl.js` (~1424 lines) | Camera passthrough, gyro look (`cameraYaw`/`cameraPitch`), GPS watch, tap-to-place, avatar hot-swap picker, **Lock** button (`setLocked()` ~682), `savePin()` ~837, `loadNearbyPins()` ~901 (**already public / cross-user**), `spawnNearbyPin()` ~950, `loadPinGLB()` ~990, `openPinSheet()` ~1135, radar math ~1239, `tick()` ~1355 |-| Pins API + table | `api/irl/pins.js` (~213 lines) | Neon `irl_pins` (`id, user_id, agent_id, device_token, lat, lng, heading, avatar_url, avatar_name, caption, x402_endpoint, placed_at, expires_at`). GET nearby (public, haversine), GET `?mine=1`, POST, PATCH caption, DELETE |-| Owner dashboard page | `src/dashboard-next/pages/irl-placements.js` (~274 lines) | Lists your placed pins, reverse-geocode, remove — location management baseline |-| AR/XR infra | `src/ar/webxr.js`, `src/ar/quick-look.js`, `src/ar/scene-viewer.js`, `src/xr.js` | WebXR + iOS Quick Look + Android Scene Viewer entry points |-| Avatar picker | `src/avatar-picker.js` (`createAvatarPicker`) | Shared bottom-sheet picker, GLB hot-swap |-| Wardrobe / outfits | `src/avatar-wardrobe.js`, `src/agent-accessories.js` | Outfit + accessory system |-| Reputation | `GET /api/agents/solana-reputation?asset=` | Real Solana attestations — the canonical reputation source |-| Skills / services | `api/skills/index.js`, `api/skills/[id].js`, `api/skills/categories.js`, `api/skills-manifest.js` | Skill catalog + per-agent skills |-| Wallet / balance | `api/agents/solana-wallet.js`, `api/agents/x402/[action].js`, `api/billing/*` | Agent wallet + earnings |-| x402 client | already imported in `src/irl.js` and `src/marketplace.js` via `src/shared/x402-loader.js` | Pay-per-call flow |-| Realtime server | `wss://three-ws-multiplayer.fly.dev` (walk-server), client in `src/walk-net.js` | Existing multiplayer WS — reuse for IRL presence |-| Shared UI states | `src/shared/state-kit.js`, `src/shared/async-state.js` | Skeleton / empty / error / retry shells — use everywhere |--**Prior roadmap (folded into this program):** `tasks/irl/01-06`, `tasks/irl-xr/01-05`,-`tasks/task-irl-01/02/03`. Where a new task supersedes an old one it says so;-treat the old files as reference, not parallel work.-------## Epics & task index--### Epic A — World-anchored locking ("stays put in real life")-- **A1** `A1-webxr-world-anchor.md` — WebXR hit-test reticle + real-world anchor placement (Android/Chrome). *L*-- **A2** `A2-anchor-persistence-schema.md` — Extend `irl_pins` to store a full anchor pose (height, orientation, accuracy); migrate `savePin`. *M*-- **A3** `A3-cross-user-anchor-consistency.md` — GPS+compass alignment + manual nudge calibration so every viewer sees the agent in the *same* real spot. *L*-- **A4** `A4-ios-gyro-anchor-fallback.md` — iOS Safari (no WebXR) world-lock via gyro+GPS dead-reckoning so the locked avatar stays anchored when panning. *M*--### Epic B — Agent awareness & interaction-- **B1** `B1-camera-aware-lookat.md` — Placed agents turn head/body to face the viewer's camera + idle gaze (the "follow the cursor" analog). *M*-- **B2** `B2-inspect-card-v2.md` — Rich tap card: name, info, reputation, services/prices. New `GET /api/irl/agent-card`. *M*-- **B3** `B3-real-interactions-profile-pay.md` — Wire View profile → `/agents/:id` and real x402 pay (supersedes `tasks/irl/02` + `03`). *M*-- **B4** `B4-raycast-tap-accuracy.md` — Reliable tap raycasting on billboard labels + meshes, nearest-agent proximity focus. *S*--### Epic C — Owner dashboard for IRL agents-- **C1** `C1-dashboard-overview.md` — Extend `irl-placements.js`: balance, status, last-seen, interaction count per placed agent. *M*-- **C2** `C2-skills-services-management.md` — Attach skills + set x402 service prices for an IRL agent from the dashboard. *M*-- **C3** `C3-reputation-surface.md` — Show reputation/attestations for the placed agent + manage link. *S*-- **C4** `C4-interaction-inbox-notifications.md` — New `irl_interactions` table; log taps/pays/messages; owner inbox + notifications. *L*-- **C5** `C5-remote-location-management.md` — Map with draggable marker to relocate/remove pins from anywhere. *M*-- **C6** `C6-remote-outfit-change.md` — Change a placed agent's outfit remotely; propagate to the rendered GLB for all viewers. *L*--### Epic D — Multiplayer realtime-- **D1** `D1-realtime-pin-sync.md` — Live add/remove/update of nearby pins without reload (geohash rooms over the existing WS, with poll fallback). *L*-- **D2** `D2-live-viewer-presence.md` — Show who else is viewing a location; optional ghost markers of live viewers. *M*-- **D3** `D3-interaction-broadcast.md` — IRL interaction → owner realtime event + ambient reaction visible to co-located viewers. *M*-- **D4** `D4-moderation-safety-caps.md` — Content checks on caption/avatar, report flow, per-area density + per-user pin caps, rate limits. *M*--### Epic E — Cross-cutting polish-- **E1** `E1-permissions-onboarding.md` — Camera/motion/location permission flow with designed states (incl. iOS motion gesture). *M*-- **E2** `E2-performance-scale.md` — Distance culling, GLB LOD, concurrent-load cap, draw budget for dense areas. *M*-- **E3** `E3-deeplinks-share.md` — "View in IRL" from agent/avatar pages + screenshot composite share (supersedes `irl-xr/03` + `05`). *M*-- **E4** `E4-designed-states.md` — Empty/error/permission/unsupported-device states across all IRL surfaces. *S*-------## Recommended run order & dependency graph--**Critical path (do first):** A2 → A1/A4 → B1/B2/B3 → D1 → D3/C4.--```-A2 (schema) ─┬─> A1 (webxr anchor) ─┐- └─> A4 (ios fallback) ─┴─> A3 (cross-user consistency)-B2 (card api) ─> B3 (interactions) ; B1 (look-at) ; B4 (raycast) independent-D1 (realtime sync) ─> D2 (presence) ; D3 (interaction broadcast) ─> C4 (inbox)-C1 ─> C2, C3, C5, C6 (dashboard surfaces, after overview)-E1, E2, E4 land alongside any epic; E3 after B/D.-```--Suggested phased execution:-1. **Phase 1 — Anchoring foundation:** A2, A1, A4, E1.-2. **Phase 2 — Make agents feel alive:** B1, B2, B3, B4, E4.-3. **Phase 3 — Multiplayer live:** D1, D2, D4, A3, E2.-4. **Phase 4 — Owner control + feedback loop:** C1, C4, D3, C5, C6, C2, C3, E3.-------## Ground rules for every task--- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never reference any other token anywhere.-- **No mocks, no placeholders, no fake data.** Real APIs, real RPC, real wallet, real DB.-- **Every state designed** — loading/empty/error/permission-denied/unsupported via `src/shared/state-kit.js`.-- **Errors at boundaries** — every `fetch`/sensor call fails into a retryable state, never a blank screen.-- **Mobile-first** — this is a phone-camera product. Test at real device widths; mind iOS Safari quirks (motion permission gesture, no WebXR).-- **Each task file is self-contained** — copy its prompt into a fresh agent and it can execute without this README.diff --git a/tasks/irl-location-control/README.md b/tasks/irl-location-control/README.mddeleted file mode 100644index e11f67e80..000000000--- a/tasks/irl-location-control/README.md+++ /dev/null@@ -1,94 +0,0 @@-# IRL — Location Control & Safe Testing--The program that makes **placing, testing, and living with a real-world location**-in `three.ws/irl` feel safe and intentional — for the developer testing on a-phone, and for the real user who does not want their home address written into a-public feed.--Today `/irl` reads your live GPS (`navigator.geolocation.watchPosition`) and, the-moment you lock/place an agent, writes your **exact standing coordinates** to the-public `irl_pins` table. That is correct for the AR product — but it leaves two-gaps this epic closes:--1. **No safe way to test.** On a real iPhone you cannot spoof Safari's location,- and a dev build served over LAN can't even read GPS (geolocation is blocked on- non-secure origins). So testing the place-a-pin flow means leaking your real spot.-2. **No user control over the placement leak.** A user can only pin where they- physically stand, has no plain-language picture of what is shared or who can- see it, and no fast way to purge what they dropped.--This epic delivers a **production-ready, fully-designed Location Control system**:-choose where you place (precise GPS *or* a point on a map), understand and control-what's shared, harden the proximity read so browsing doesn't broadcast your exact-position, manage/purge your pins, and a DEV-only simulated-location mode so QA can-exercise the whole flow on a real device without ever touching a real coordinate.-------## What already exists (do NOT rebuild — extend)--Grounded in the current tree:--| Piece | Location | State |-|---|---|---|-| IRL AR client | `src/irl.js` | `gpsState` (`:1123`), `onGPSPosition` (`:1227`), `initGPS`/`watchPosition` (`:1336`), `savePin` POST (`:1351`/`:1370`), `anchorGpsPin` (`:1313`), caption-confirm save (`:1456`), `loadNearbyPins` w/ caller coords (`:2009`/`:2016`) |-| My-pins management | `src/irl.js` | `openMyPinsSheet` (`:2514`), `loadMyPins` (`:2476`), `renderMyPins` (`:2501`), `deleteMyPin` (`:2531`), `revealMyPinsBtn` (`:2555`), button (`:2561`) |-| Presence opt-in (ghost) | `src/irl.js` | `getShareGhost`/`setShareGhost` (`:1820`), toggle (`:2578`), `syncGhostToggle` (`:2568`) — default **off** |-| DEV perf harness | `src/irl.js:4405` | `import.meta.env.DEV`-gated `__irlSeedPins` / `__irlSeedRoom` / `__irlPerf` — the pattern every dev-only tool in this epic mirrors |-| Pins API + table | `api/irl/pins.js` | `irl_pins` schema + `ensureTable` (`:167`), GET nearby (`:467`, radius clamp `:473`, IP rate-limit `:415`, owner-id-stripped projection `:504`), POST (`:554`, anon 7-day expiry `:668`), PATCH/calibrate (`:756`), DELETE (`:847`) |-| Permission / first-run | `src/irl/onboarding.js` | Single source of truth — `PERMS.location` (`:22`), designed prompt/granted/denied/unsupported states, persisted outcomes, state-kit |-| Map + geocode (reuse) | `src/dashboard-next/pages/irl-placements.js` | Leaflet lazy-loaded from `https://esm.sh/[email protected]` (`:1083`), dark theme (`:339`), `reverseGeocode` via Nominatim (`:111`) — the canonical map approach to copy |-| Shared UI states | `src/shared/state-kit.js` | Skeleton / empty / error / retry shells — use everywhere |-------## Task index--- **L1** `L1-simulated-location-dev.md` — DEV-gated simulated location (`?mockLoc=`- + `__irlMockLocation()`) that bypasses geolocation and the insecure-context block.- *The direct answer to "test on my iPhone without leaking my real location."* **S**-- **L2** `L2-map-placement-picker.md` — "Use my location" **or** "Pick a spot on a- map" when placing. Leaflet picker + search. The real-user privacy + UX win. **M**-- **L3** `L3-location-privacy-center.md` — One designed in-app surface: what's- stored, who sees it, precise/approximate discovery, presence opt-in, first-run- disclosure. **M**-- **L4** `L4-proximity-read-hardening.md` — Coarsen the caller's coords on the- nearby read (approximate discovery) + no exact-coordinate logging server-side.- Closes the browsing-leak vector. **M**-- **L5** `L5-my-pins-management-upgrade.md` — Map overview of your pins, expiry- countdown, and a guarded "Remove all from this device" purge. **S**--## Run order--```-L1 (independent — ship first; unblocks safe testing of everything below)-L3 (privacy control surface) ─> L4 (the approximate-discovery behavior it toggles)-L2 (placement picker — independent of L3/L4)-L5 (pin management — independent; nicer once L2 exists)-```--Suggested: **L1 → L2 → L3 → L4 → L5.** L1 first so every later task can be-exercised on a real device without leaking. L3 before L4 (L3 owns the toggle, L4-implements what it does).-------## Ground rules for every task--- **$THREE is the only coin** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).- None of these tasks touch tokens; keep it that way.-- **No mocks / fake data in production.** L1's simulated location is a **DEV-only,- tree-shaken harness** (gated behind `import.meta.env.DEV`, exactly like the- existing `__irlSeed*` tools) — it must never exist in a production bundle. Every- other task uses real GPS, real DB, real Leaflet/Nominatim.-- **Every state designed** — loading / empty / error / permission-denied /- unsupported via `src/shared/state-kit.js`. No blank screens, no silent failures.-- **Errors at boundaries** — every `fetch` / sensor / map-load call fails into a- retryable, human state. Rule 9: never let an error stand without a fallback.-- **Mobile-first** — this is a phone product. Test at 320 / 768 / 1440px; mind iOS- Safari quirks (motion gesture, no WebXR, geolocation needs HTTPS or localhost).-- **Changelog** — L2, L3, L5 are user-visible → add a `data/changelog.json` entry- (`feature`/`improvement`) and run `npm run build:pages`. L1 and L4's server log- change are internal → no entry.-- **Each task file is self-contained** — copy its prompt into a fresh agent and it- executes without this README.diff --git a/tasks/irl-production/01-sensor-robustness.md b/tasks/irl-production/01-sensor-robustness.mddeleted file mode 100644index fcaee3fd9..000000000--- a/tasks/irl-production/01-sensor-robustness.md+++ /dev/null@@ -1,78 +0,0 @@-# Task 01 — Sensor robustness: never let a bad reading break the lock--**Phase:** 1 (AR correctness) · **Effort:** M · **Files:** `src/irl.js`--## Why-The world-lock camera is driven by `deviceorientation` (alpha/beta) and, on iOS,-`webkitCompassHeading`. Real devices deliver `null`, `NaN`, uncalibrated, and-discontinuous readings constantly. A single bad value currently propagates into-`cameraYaw`/`cameraPitch`, which can make the avatar snap, spin, freeze, or vanish.-This is the single most important reliability surface for the AR experience.--## Read first (verify each finding against the live code before fixing)-- `onDeviceOrientation()` — `src/irl.js:858-894`-- `readCompassHeading()` — `src/irl.js:843-849`-- `compassToYaw()` — `src/irl.js:851-856`-- `lerpAngle()` (already defined, reuse it) — search `function lerpAngle`-- The lock baseline capture — `src/irl.js:967-991` (setLocked)--## Scope — confirm, then fix--1. **Compass-loss goes undetected (stale heading).** `onDeviceOrientation` only- updates `lastCompassHeading` when `compass !== null` (≈line 864). If the- magnetometer becomes uncalibrated mid-session, `lastCompassHeading` keeps a- stale value and the absolute branch keeps trusting it. Track validity explicitly- (e.g. timestamp the last good reading) and fall back to the relative gyro path- when the compass goes stale, rather than steering by a dead bearing.--2. **`NaN`/non-finite alpha & beta.** `const a = e.alpha ?? 0; const b = e.beta ?? 90;`- (≈line 859-860) only guards `null`/`undefined`, not `NaN`. A `NaN` flows through- the delta math into an invalid quaternion. Guard with `Number.isFinite()` and,- on a bad reading, **hold the last valid value** instead of substituting 0/90- (substituting 90 for beta yanks the pitch).--3. **0° ↔ 360° yaw discontinuity.** The absolute branch assigns- `cameraYaw = compassToYaw(lastCompassHeading)` directly. Crossing the- 359°→1° boundary is a ~6.2 rad jump that reads as a violent spin. Smooth the- approach with the existing `lerpAngle()` (shortest-path) rather than a hard- assignment — fast enough to feel locked, smooth enough to never snap.--4. **Pitch clamp sanity.** Confirm `cameraPitch` stays within `PITCH_MIN/PITCH_MAX`- on every path (it already clamps in some) and can never become `NaN`.--## Implementation guidance-- Extract the pure decision logic into a small testable helper, e.g.- `resolveLockYaw({ compassHeading, compassFresh, baseAlpha, alpha, baseYaw })`- returning the target yaw, and `isFiniteReading(a, b)`. Keep it side-effect free so- it can be unit-tested without the DOM/sensors.-- Do not change the GPS-vs-local gating already in place- (`lastCompassHeading !== null && gpsModeActive`); build the robustness *inside*- each branch.--## Out of scope-Orientation/landscape handling (task 02), GPS lifecycle (task 03).--## Definition of done-- [ ] Every finding above either fixed or documented as already-correct with the line ref.-- [ ] Pure helpers extracted and covered by a new `tests/irl-sensor-robustness.test.js`- (finite guards, compass-staleness fallback, shortest-path yaw across 0/360).-- [ ] No path can write `NaN` to `cameraYaw`/`cameraPitch` (add a final- `Number.isFinite` guard before use as a backstop).-- [ ] `npm test` green; `npx esbuild src/irl.js --outfile=/dev/null` clean.-- [ ] Manual: on a real phone, spinning past north and waving the device through a- magnetic dead-zone never spins/freezes the avatar. Document what you tested.-- [ ] Changelog entry if the user-visible jitter/spin is something holders would notice.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/irl-production/01-sensor-robustness.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/tasks/launchpad/README.md b/tasks/launchpad/README.mddeleted file mode 100644index 3bf1872c2..000000000--- a/tasks/launchpad/README.md+++ /dev/null@@ -1,28 +0,0 @@-# Token Launchpad — completeness tasks--Every task in this folder targets the token launchpad for 3D AI Agents as a unified product surface. The goal is a launch experience that is complete, wired, and professional — no mocks, no dead links, no missing states.--Each file is independent. Pick any one and ship it end-to-end.--**Operating rules (same as all tasks in this repo):**-- No mocks. No fake data. No placeholders. No `Math.random()` standing in for real cryptography.-- If credentials are missing, locate them in `.env`, `vercel env ls`, or ask once — then proceed.-- Start `npm run dev`, exercise the feature in a real browser, no console errors, network tab shows real calls.-- Run the **completionist** subagent on changed files before claiming done.--## Task list--| # | File | Surface | Status |-|---|------|---------|--------|-| 01 | [01-launch-modal-post-launch-cta.md](01-launch-modal-post-launch-cta.md) | Launch modal success state | Open |-| 02 | [02-launches-feed-coin3d-action.md](02-launches-feed-coin3d-action.md) | /launches card actions | Open |-| 03 | [03-pump-live-e2e-verify.md](03-pump-live-e2e-verify.md) | /pump-live WS + rendering | Open |-| 04 | [04-pump-visualizer-data-wire.md](04-pump-visualizer-data-wire.md) | /pump-visualizer Three.js + data | Open |-| 05 | [05-launchpad-builder-avatar-picker.md](05-launchpad-builder-avatar-picker.md) | Launchpad studio avatar picker | Open |-| 06 | [06-agent-coin-shared-widget.md](06-agent-coin-shared-widget.md) | Shared coin-status widget | Open |-| 07 | [07-tokenized-agents-skill-gate.md](07-tokenized-agents-skill-gate.md) | $THREE holder gate on skills | Open |-| 08 | [08-nav-and-crosslinks.md](08-nav-and-crosslinks.md) | Cross-links between all launchpad surfaces | Open |--## Already tracked elsewhere--The 12 pump-dashboard panel tasks are in [../pump-dashboard-real-apis/](../pump-dashboard-real-apis/). Those are independent of this folder — ship either set in any order.diff --git a/tasks/pumpfun-upstream/README.md b/tasks/pumpfun-upstream/README.mddeleted file mode 100644index 23550c9db..000000000--- a/tasks/pumpfun-upstream/README.md+++ /dev/null@@ -1,44 +0,0 @@-# pump.fun upstream sync — task set--Generated 2026-06-08 from a recon pass over pump.fun's GitHub org-(`github.com/pump-fun`) and npm maintainers (`oussama-baton`, `security-baton`,-the publishers of the official `@pump-fun/*` packages).--Each `NN-*.md` here is a **self-contained prompt** — open a new chat in this repo-(`/workspaces/three.ws`) and paste the file's contents. They assume no prior-conversation context.--## Already done in the recon session (do NOT redo)--- ✅ Bumped `@pump-fun/pump-swap-sdk` manifest `^1.16.0 → ^1.17.0` in- `package.json` (the lockfile already resolved 1.17.0; no reinstall needed).-- ✅ `@pump-fun/pump-sdk` confirmed current at `1.36.0`.-- ✅ Vendored pump.fun's public program docs + IDLs into- [`docs/pumpfun-program/`](../../docs/pumpfun-program/) (snapshot of- `pump-public-docs@1b82215`, 2026-06-08).-- ✅ Confirmed `@pump-fun/agent-payments-sdk` is a **local workspace**- (`agent-payments-sdk/`, version 3.1.0) — `^3.1.0` resolves locally; in-repo- installs are fine. (Upstream npm `latest` is 3.0.3 → see task 04.)--## Open tasks--| # | File | Priority | What |-| --- | ---------------------------------------- | -------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |-| 01 | `01-v2-trade-instructions-usdc-audit.md` | **High** | Audit our buy/sell instruction building against the new `buy_v2`/`sell_v2` interface + decide/implement USDC-quoted-coin support. |-| 02 | `02-pump-fun-skills-upstream-sync.md` | ✅ Done | Diff our vendored `pump-fun-skills/` against the official repo's latest; sync drift while preserving our additions. Outcome: upstream dormant at `c8aaa6a8`, we're at/ahead — nothing to pull. Re-verified 2026-06-11 and fixed a three.ws-internal regression (coin-fees scripts used `isCreatorUsingSharingConfig`, removed in the `1.36.0` SDK we pin → renamed to `hasCoinCreatorMigratedToSharingConfig`, lock regenerated) → [`02-skills-drift-report.md`](02-skills-drift-report.md). |-| 03 | `03-pump-segments-sdk-investigation.md` | Low | Figure out what `pump-segments-sdk` (new, unpublished) is and whether three.ws should adopt it. |-| 04 | `04-agent-payments-sdk-reconcile.md` | ✅ Done | Decide how to handle our local `[email protected]` vs upstream's published 3.0.3. Outcome: kept as a deliberate fork, renamed `@three-ws/agent-payments` (workspace); root manifest pins real `@pump-fun/agent-payments-sdk@^3.0.3` for external-facing templates → [`agent-payments-sdk/FORK_NOTES.md`](../../agent-payments-sdk/FORK_NOTES.md). |--## Constraints that apply to every task (from CLAUDE.md)--- **Only `$THREE` (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`) may ever be- referenced.** Never name, hardcode, or surface any other coin/mint — in code,- tests, fixtures, docs, or commits. Generic coin-agnostic plumbing where a mint- is supplied at runtime is the only exception.-- No mocks, no fake data, no placeholders, no TODOs, no stubs. Real APIs/SDKs only.-- Keep the repo root clean; throwaway scripts go in `scripts/` or are deleted.-- Before claiming done: `npx prettier --check` your changed files, run relevant- tests, and review your own `git diff`.-- **Pushing:** only on explicit user approval, and push to **both** remotes- (`git push threeD main` && `git push threews main`). Never pull/fetch from- `threeD` (push-only mirror).diff --git a/tasks/walk/02-walk-homepage-hero.md b/tasks/walk/02-walk-homepage-hero.mddeleted file mode 100644index 72bf2abbf..000000000--- a/tasks/walk/02-walk-homepage-hero.md+++ /dev/null@@ -1,41 +0,0 @@-# Task 02 — Homepage Hero: Walking Avatar--## Priority: URGENT--## Objective-Integrate the walking avatar experience into the three.ws homepage (`pages/home-next.html`) hero section. The homepage hero must render a live, animated 3D avatar that walks/idles in place within the hero canvas — not a video, not a GIF, a real Three.js scene. The avatar used should be the platform's default demo avatar (loaded from the real API, not hardcoded).--## Scope-- File: `pages/home-next.html` and `src/home-next.js` (or equivalent entry)-- Add a Three.js canvas behind or alongside the hero copy-- Reuse the walk animation state machine from `src/animation-state-machine.js` — do not duplicate animation logic-- Avatar plays idle animation on load; transitions to a slow walk cycle after 2 seconds-- Canvas is responsive: fills container on mobile, sits right-side on desktop (split layout)-- Avatar loads from `/api/avatars/featured` or the existing default avatar endpoint — real fetch-- Canvas does not block clicks on hero CTA buttons (pointer-events handled correctly)-- No autoplay video fallback — the 3D scene is the feature--## Definition of Done-- Homepage loads and the hero avatar is visible and animating within 3 seconds on a standard connection-- No layout shift (CLS) from canvas injection-- Mobile: avatar renders at correct aspect, no overflow-- Desktop: split hero layout is visually clean-- Console: zero errors-- Network: avatar GLB fetched from real API--## Rules-Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/02-walk-homepage-hero.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/tasks/walk/05-chrome-extension-scaffold.md b/tasks/walk/05-chrome-extension-scaffold.mddeleted file mode 100644index 3f7ebc6cd..000000000--- a/tasks/walk/05-chrome-extension-scaffold.md+++ /dev/null@@ -1,40 +0,0 @@-# Task 05 — Chrome Extension: Scaffold & Manifest--## Priority: URGENT--## Objective-Create the Chrome extension scaffold that allows users to inject a walking three.ws avatar onto any website they visit. This is the foundation task — subsequent tasks build on it.--## Scope-- New directory: `extensions/walk-avatar/`-- `manifest.json` — Manifest V3, permissions: `storage`, `activeTab`, `scripting`; host_permissions: `<all_urls>`-- `popup.html` + `popup.js` — Extension popup: shows avatar picker (fetches user's avatars from `https://three.ws/api/avatars/mine` if logged in, else shows a default), toggle button to enable/disable avatar on current tab-- `content.js` — Content script injected into every page: injects the walk-embed iframe, handles page navigation cleanup-- `background.js` — Service worker: stores selected avatar ID in `chrome.storage.local`, relays messages between popup and content script-- `icons/` — 16, 32, 48, 128px icons (use the existing `public/pwa-icon.svg` as source)-- `styles/` — Isolated CSS for the injected iframe container (must not bleed into host page)-- Add build script: `npm run build:extension` using Rollup or esbuild, outputs to `dist/extension/`-- Add `extensions/walk-avatar/README.md` with load-unpacked instructions--## Definition of Done-- Extension loads in Chrome via `chrome://extensions` → Load unpacked → `dist/extension/`-- Popup renders with toggle and avatar selection-- No manifest errors in Chrome extension panel-- Background service worker registers without errors--## Rules-Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/05-chrome-extension-scaffold.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/tasks/walk/15-walk-speech-bubbles.md b/tasks/walk/15-walk-speech-bubbles.mddeleted file mode 100644index 1947f9726..000000000--- a/tasks/walk/15-walk-speech-bubbles.md+++ /dev/null@@ -1,52 +0,0 @@-# Task 15 — Walk Page: Speech Bubbles & Chat Overlay--## Priority: HIGH--## Objective-Render speech bubbles above the avatar's head that follow it across the screen as it walks. The bubbles are used by the chat system, the narrator (extension task 09), and direct API calls. Bubbles look like the comic-style callouts in games like Animal Crossing or The Sims.--## Scope-- New module: `src/walk-speech-bubble.js`-- DOM-based bubbles (overlay div, not WebGL text) — easier to style, real text selection, accessible-- Each frame: project avatar head bone world position to screen coords (`Vector3.project(camera)`), set bubble CSS `transform: translate(...)`-- Bubble structure:- - `.walk-bubble` container — max-width 280px, white background, rounded 16px, drop shadow- - Pointer triangle below bubble pointing at the head- - Text wraps; supports markdown bold/italic (use existing markdown lib if any in `node_modules`; if not, simple regex)- - Optional avatar name pill above bubble (small)-- API:- - `walk.say(text, opts?)` — opts: `{ duration: 4000, voice: false, gesture: 'talking' }`- - Returns a Promise that resolves when bubble dismisses- - Queue: multiple `say()` calls queue and play in order-- Auto-behaviors:- - If `voice: true`, calls `/api/tts/speak` and times the bubble to audio length (uses `audio.duration` from real audio)- - During speech, triggers `talking` gesture from task 14- - Bubble fades out 600ms after duration ends-- Off-screen handling:- - When avatar is behind camera: bubble hides (don't show backward-projected bubbles)- - When avatar is at edge of screen: bubble clamps to screen edge with an arrow indicator pointing toward the avatar-- Bubble click: dismisses early--## Definition of Done-- `walk.say('Hello, world!')` from console shows a bubble that tracks the avatar smoothly-- Bubbles queue correctly when called rapidly-- TTS bubbles match audio length exactly (no early dismiss)-- Off-screen clamp + indicator works when avatar walks past camera edge-- No console errors--## Rules-Complete 100%. No stubs. No fake data. Real TTS for voice option. Wire end-to-end.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/15-walk-speech-bubbles.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/tasks/walk/17-walk-multiplayer.md b/tasks/walk/17-walk-multiplayer.mddeleted file mode 100644index c0e3acd07..000000000--- a/tasks/walk/17-walk-multiplayer.md+++ /dev/null@@ -1,51 +0,0 @@-# Task 17 — Walk Page: Multiplayer (Colyseus Rooms)--## Priority: HIGH--## Objective-Enable multiple users to walk in the same shared space and see each other's avatars in real time. Build on the existing `multiplayer/` Colyseus workspace referenced in `pages/walk.html`'s `walk-server` meta tag.--## Scope-- Server: `multiplayer/` workspace (verify the existing Colyseus schema; extend if needed)- - `WalkRoom` schema:- - players: MapSchema of `{ id, avatarId, x, y, z, rotation, anim, gesture?, displayName? }`- - chat: optional message log (last 20)- - Tick rate: 20 Hz- - Auto-create rooms by `roomCode` query param; default `lobby`-- Client: `src/walk-multiplayer.js`- - On walk page load, if `?room=<code>` present (or always for default lobby), connect to Colyseus- - Send local avatar position/rotation/anim state at 20 Hz (delta-only)- - On peer join: fetch peer's avatar from `/api/avatars/<id>` and add to scene- - On peer leave: remove from scene- - On peer move: interpolate position smoothly (180 ms delay buffer)- - Render peer name labels above their heads using the speech bubble system (task 15) for chat-- Production deployment:- - Deploy `multiplayer/` to Fly.io (or use existing deployment if present)- - Update `pages/walk.html` `<meta name="walk-server" content="wss://three-ws-multiplayer.fly.dev">` to the real host-- HUD additions:- - Player count in top-right- - "Share room" button → copies `https://three.ws/walk?avatar=<id>&room=<code>`--## Definition of Done-- Open `https://three.ws/walk?room=test` in two browser windows with different avatars → both see each other moving in real time-- Peer movement is smooth (interpolated, not jittery)-- Disconnect cleanly cleans up peer mesh-- Production Colyseus host responds within 100 ms p50-- No console errors--## Rules-Complete 100%. No stubs. No fake data. Real Colyseus server, real WebSocket connection, real avatar fetch for peers. Wire end-to-end.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/17-walk-multiplayer.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/tasks/walk/26-pricing-page-walking-mascot.md b/tasks/walk/26-pricing-page-walking-mascot.mddeleted file mode 100644index 553f3e9de..000000000--- a/tasks/walk/26-pricing-page-walking-mascot.md+++ /dev/null@@ -1,43 +0,0 @@-# Task 26 — Pricing Page: Walking Mascot--## Priority: MEDIUM--## Objective-Add a small walking avatar mascot to the pricing page (`pages/pricing.html` and/or `pages/x-pricing.html`) that walks across the pricing tier cards and reacts when the user hovers a tier. Subtle, charming, drives engagement.--## Scope-- File: `pages/pricing.html` (and `x-pricing.html`)-- Embed a walking avatar via the JS SDK from task 04, but in "stage" mode:- - Avatar walks along an invisible horizontal path that spans the pricing tier row- - On hover over a tier card, dispatch `walk:goto` postMessage with the tier's center X coord → avatar walks to that tier and stops, plays `point` gesture toward the tier- - On mouse leave, resumes wandering-- Avatar size: 120×160px, transparent background, positioned absolutely above the pricing cards-- Speech bubble (task 15) shows tier-specific copy when avatar stops:- - Free: "Great starting point!"- - Pro: "Most popular!"- - Studio: "Power-user pick."-- Disable on `prefers-reduced-motion` and on small mobile (<480px width)--## Definition of Done-- Visit pricing page → avatar walks along the tier row-- Hover a tier → avatar walks to it and points with a bubble-- Reduced motion users see a static avatar instead of animated wandering-- No console errors-- No layout breakage on mobile--## Rules-Complete 100%. No stubs. No fake data. Real avatar, real animation, real interaction. Wire end-to-end.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/26-pricing-page-walking-mascot.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/tests/api/ibm-attest.test.js b/tests/api/ibm-attest.test.jsindex 24e16b10c..f1e09b7dc 100644--- a/tests/api/ibm-attest.test.js+++ b/tests/api/ibm-attest.test.js@@ -27,10 +27,19 @@ vi.mock('../../api/_lib/rate-limit.js', () => ({limits: {publicIp: vi.fn(async () => ({ success: true })),watsonxEmbedGlobal: vi.fn(async () => ({ success: true })),+ attestSubmitDaily: vi.fn(async () => ({ success: true })),},clientIp: vi.fn(() => '127.0.0.1'),}));+// On-chain submission (submit:true) now requires an authenticated caller — provide+// a session so the notarization tests exercise the broadcast path.+vi.mock('../../api/_lib/auth.js', () => ({+ getSessionUser: vi.fn(async () => ({ id: 'user-1' })),+ authenticateBearer: vi.fn(async () => ({ userId: 'user-1' })),+ extractBearer: vi.fn(() => null),+}));+vi.mock('../../api/_lib/market/ohlcv.js', () => ({trendingPools: vi.fn(async () => [{ pool: POOL, name: 'MOCK / SOL', baseMint: 'mint', priceUsd: 1.5, change24h: 4.2 },