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
feat: enhance GitHub integration in fees panel
qbdz052e95958f27
diff --git a/.env.example b/.env.exampleindex be7a32cce..59348bf1e 100644--- a/.env.example+++ b/.env.example@@ -328,7 +328,7 @@ SDP_API_BASE=https://api.solana.com# ── x402 micropayments (POST /api/mcp) ─────────────────────────────────────# Per-network payTo wallets that receive USDC for paid MCP calls.-X402_PAY_TO_SOLANA=BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN+X402_PAY_TO_SOLANA=wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrUX402_PAY_TO_BASE=0x4022de2d36c334e73c7a108805cea11c0564f402# Dedicated EIP-712 signing key for signed offers and payment receipts (USE-17).# This is a dedicated signing key, NOT a wallet that holds funds. Generate with:diff --git a/.gitignore b/.gitignoreindex 6e231b8c9..9385596a8 100644--- a/.gitignore+++ b/.gitignore@@ -301,3 +301,8 @@ three-ws-prod-log-export-2026-06-26T07-25-42.json*.tmp.vitest-out*three-ws-*-log-export-*.json++# Pump.fun launch wallets — 112 throwaway keypairs + master, one per repo coin.+# Private keys + downloadable bundle. NEVER commit. Created under this dir only.+.pump-launch-wallets/+pump-launch-wallets*.zipdiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7dc066c46..f08417c75 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,12 +23,13 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Memory seeding no longer times out** — Building your agent's memory seed from your connected accounts could fail with an opaque error when the language model took a moment to respond — the request was being cut off before it finished and the page showed a generic failure. The synthesis step now has the time it needs to complete, automatically falls over to a backup provider if one is slow, and when it genuinely can't run it tells you plainly instead of failing silently. `[fix]`- **One shared motion library now powers live game-feel across the platform** — The interaction polish proven on the Swarms page — numbers that count up between real values, directional green/red flashes, live-feed rows that slide in, sparklines, ring gauges, connection dots, and a single restrained it-shipped ripple — now lives in one shared, token-driven, reduced-motion-safe library instead of being re-rolled per page. Every surface that adopts it speaks the same visual vocabulary, and because it's built entirely on the platform's motion tokens, it goes perfectly still the instant you ask your system for reduced motion. The Swarms page is its first consumer; the launch, deploy, markets and AI surfaces follow. It's a foundation, not a faked effect — every animation rides a real value. `[improvement, sdk]`- **Oracle now has full documentation** — Everything behind the conviction score, in one place. The new Oracle docs explain — in plain English and, where you want it, full mathematical detail — how Oracle reads every pump.fun launch: the four pillars (who's buying, how it's structured, what story it rides, how it's moving), exactly how they fuse into a 0–100 score, where the hard caps come from, how the engine is calibrated and backtested against real outcomes, how to arm an agent on it, the full public API, and where it's headed. Real screenshots throughout, a quickstart for traders, builders, and skeptics, and a researcher-level appendix. (`/oracle/docs`) `[docs, feature]`+- **Reward coins can now send creator fees to a single GitHub account, not just a repo** — The Fees & rewards panel already let you split a coin's creator fees across a GitHub repo's contributors. Now you can also route rewards to one specific person: type a GitHub @username and it resolves to their three.ws-linked Solana payout wallet, added as a recipient you can give 100% (or any share) of the fees. This is the same mechanism behind $THREE, whose creator rewards flow to @nirholas even though someone else launched the coin. A handle with no linked wallet is flagged so you can paste their address or ask them to link one. The same input still accepts an owner/repo to split across contributors — one field, both intents. `[feature]`- **Swarm dashboards now show consensus building and firing live** — When you watch a trading swarm, you can now see the moment it decides. Every consensus vote animates in and fills a meter toward the swarm's firing threshold in real time. When member consensus clears the line and the treasury actually fires a buy, the meter visibly crosses the threshold with a hot success glow, the vote stamps a pulsing “fire” badge, and a single accent ripple sweeps the panel — so the most important event on the page lands instead of slipping by as a quiet log line. Skips fill toward the line and stop short. Respects reduced-motion preferences. (`/swarms`) `[improvement]`- **Swarm treasury figures now count up and flash when money moves** — On a live swarm dashboard, the treasury tiles — balance, realized P&L, open positions and win rate — no longer hard-swap to a new number. When a live update lands, each figure smoothly counts from its current value to the new one and the tile flashes in the direction of the change: green when it rises, red when it drops. A confirmed payout pulses the balance and P&L tiles the instant the money lands. It animates only between two real values, never from zero, and respects reduced-motion preferences (those users get an instant, exact update). (`/swarms`) `[improvement]`- **The $THREE holder leaderboard now rides out RPC rate limits instead of stalling** — The $THREE holder leaderboard, its share card, and the token stats panel all serve from a snapshot that refreshes every few minutes. When our on-chain data provider briefly rate-limited that refresh mid-scan, the whole refresh gave up for that cycle — and the failure was logged as a hard error even though it was a routine, self-healing hiccup. Now the scan retries the throttled page with a short backoff so it finishes and the snapshot stays current, and a rate limit is correctly treated as a transient blip rather than an incident. The result is a fresher holder board with far less log and alert noise. (`/leaderboard`) `[fix, infra]`- **The AI surfaces now make the agent's thinking feel alive — the AGI, Alpha Co-pilot and Reasoning Ledger** — The three pages where you watch an agent reason just got the same game-feel polish as the Swarms page, all driven by real data. On The AGI, only genuinely new decisions slide into the live feed (the rest stay put instead of flickering on every refresh), a live dot tells you when the stream is connected or reconnecting, and the reputation ring sweeps and counts up only when the real score actually moves. On the Alpha Co-pilot, the launch feed lands card-by-card, each launch's score bars grow from zero, and when a read comes back the conviction bar fills and counts up, the signals the agent cited reveal in sequence, and the verdict gets a single accent pulse. On the Reasoning Ledger, decisions stagger in as you load older history, the reputation arc fills while the score counts up, and a new sparkline traces realized P&L across the settled calls in view. Nothing is faked — every number, bar and trend comes from the live model output or on-chain outcome, and all of it collapses to a clean static state when you've asked your system for reduced motion. (`/agi`) `[improvement]`- **The autonomous sniper is now an MCP server and an x402 paid API** — Our autonomous pump.fun trading and sniping engine now speaks three languages at once. As an MCP server, any AI agent — Claude, Cursor, your own — can arm snipe strategies, fire manual buys, and watch positions through plain tool calls. As an x402 paid HTTP API, other agents can pay per call in USDC to arm a strategy or trigger a snipe, with free reads for health, status and positions. And it stays a clean library and CLI you can embed anywhere. It runs against your own wallet and RPC — self-custodial by default — with a mandatory stop-loss on every strategy and simulate mode on unless you explicitly go live. Install it with one command: npx -y @three-ws/agent-sniper. (`/docs/mcp`) `[feature, sdk]`-- **The homepage now shows the autonomous sniper trading, live** — There's a new "Autonomous trading" section on three.ws that puts the sniper engine front and center. An interactive diagram walks the full trade loop — Watch, Score, Guard, Buy, Exit — and you can click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. The win rate, best ROI and open-position counts underneath are the platform's real numbers — nothing on the panel is simulated. Honors reduced-motion preferences. (`/`) `[feature]`+- **The homepage now shows the autonomous sniper trading, live** — There's a new "Autonomous trading" section on three.ws that puts the sniper engine front and center. It opens with three headline numbers that count up as you scroll — launches scored today, winning exits all-time, and the best run a scored launch has reached — all real platform figures. Below them, an interactive diagram walks the full trade loop: Watch, Score, Guard, Buy, Exit. Click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. Nothing on the panel is simulated. Honors reduced-motion preferences. (`/`) `[feature]`- **The launch & deploy flow now makes shipping feel like shipping** — Every place where you create and ship a coin or agent got the same game-feel polish as the Swarms page, all driven by real data. On /launches, freshly-landed launches slide in at the top of the live feed, the hero market-cap and launch counters count up between real values, and a live-feed dot tells you the registry is syncing, live, or offline. On a coin's detail page, the live trade tape now tints each new trade in the direction money moved — green when SOL comes back, red when it's spent — the market cap ticks as it refreshes, and a coin ripples once the moment it graduates. The Launch Copilot streams its market-maker action log in row-by-row with the same directional tint, lights a live dot when the stream is connected, and gives a single warm beat the moment the maker goes live. The personal and admin Memetic Launchers count their tallies up between polls, and the admin's launched-today tile ripples each time the live firehose actually mints a coin. The deployments registry counts its headline numbers up as new on-chain agents stream in under a live dot. And Instant Agent Genesis gives one restrained beat when your agent is born, and again when its ERC-8004 identity verifies on-chain. Nothing is faked — every number and beat comes from a real request lifecycle, never a timer, and all of it collapses to a clean static state under reduced motion. (`/launches`) `[improvement]`- **The markets & standings pages now move like the games they are** — Every surface that ranks, scores, or updates live got the same game-feel treatment as the Swarms page, all on real data. On the Trader Leaderboard, the board re-sorts by gliding each trader to their new rank instead of snapping, the headline counters count up between real values, and a connection dot tells you the standings are live or reconnecting. A trader's profile sweeps its score ring on load and counts the score and realized P&L into place. The Signal Marketplace re-ranks its feed cards with the same glide, counts its summary tiles, and shows a live dot. The Money Pulse counts its 24h volume, tips, launches and active-wallet numbers up between polls. Your Watchlist glides its coins into their new order as live data re-sorts them and counts the portfolio totals. Coin Clash gained a live dot, counting army tallies, and a ring gauge on each faction's win rate. Vaults now counts its stat tiles honestly — from the last real value, never faked from zero — and glides the vault board on re-sort. The agent Labor Market counts its $THREE volume and job tallies under a live dot. Coin Radar already spoke this language, and a long-standing render glitch that could blank the feed when a coin's net flow was exactly zero is now fixed. Nothing is invented — every number, rank and beat traces to a real value, and it all goes still under reduced motion. (`/leaderboard`) `[improvement, fix]`- **The Sniper dashboard now carries the full Money Studio — wallet, Trading Brain, pricing and earnings** — The Sniper Strategies dashboard used to stop at strategy config and live positions. Now every strategy card has a second tab — Money Studio — that opens the exact same control surface as your agent's Money tab in Agent Studio, without leaving the dashboard. Fund the agent's wallet (live SOL and USDC balances, deposit address, withdraw with a one-tap Max, real SPL holdings and on-chain activity), open the full Trading Brain to draw a snipe rule and either scan live launches for one-tap assisted snipes or arm it to run autonomously, backtest a rule over the last 30 days, set per-call prices on the agent's skills, and watch what other agents pay it — all per agent, all real. No more bouncing between Agent Studio and the dashboard to top up a wallet before arming. The original Money tab in Agent Studio is untouched. (`/dashboard/sniper`) `[feature, improvement]`diff --git a/data/changelog.json b/data/changelog.jsonindex 32730ba22..5eee0b909 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,14 @@{"$comment": "Curated changelog entries for three.ws \u2014 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-30",+ "title": "Reward coins can now send creator fees to a single GitHub account, not just a repo",+ "summary": "The Fees & rewards panel already let you split a coin's creator fees across a GitHub repo's contributors. Now you can also route rewards to one specific person: type a GitHub @username and it resolves to their three.ws-linked Solana payout wallet, added as a recipient you can give 100% (or any share) of the fees. This is the same mechanism behind $THREE, whose creator rewards flow to @nirholas even though someone else launched the coin. A handle with no linked wallet is flagged so you can paste their address or ask them to link one. The same input still accepts an owner/repo to split across contributors — one field, both intents.",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-30","title": "Agent Studio's Money tab can now withdraw USDC earnings and shows your total take",@@ -124,7 +132,7 @@{"date": "2026-06-30","title": "The homepage now shows the autonomous sniper trading, live",- "summary": "There's a new \"Autonomous trading\" section on three.ws that puts the sniper engine front and center. An interactive diagram walks the full trade loop — Watch, Score, Guard, Buy, Exit — and you can click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. The win rate, best ROI and open-position counts underneath are the platform's real numbers — nothing on the panel is simulated. Honors reduced-motion preferences.",+ "summary": "There's a new \"Autonomous trading\" section on three.ws that puts the sniper engine front and center. It opens with three headline numbers that count up as you scroll — launches scored today, winning exits all-time, and the best run a scored launch has reached — all real platform figures. Below them, an interactive diagram walks the full trade loop: Watch, Score, Guard, Buy, Exit. Click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. Nothing on the panel is simulated. Honors reduced-motion preferences.","tags": ["feature"],diff --git a/docs/ALL.md b/docs/ALL.mdindex 053217e86..2552e6b83 100644--- a/docs/ALL.md+++ b/docs/ALL.md@@ -1,7 +1,7 @@<!-- GENERATED by scripts/combine-docs.mjs — do not edit by hand. Edit the source files under docs/ and re-run. --># three.ws — Combined Documentation-> Single-file snapshot of every document under [`docs/`](.). Generated 2026-06-29 from **380 files** (~3896 KB).+> Single-file snapshot of every document under [`docs/`](.). Generated 2026-06-30 from **382 files** (~3924 KB).> The individual source files remain the canonical, editable copies — this file is a read-only aggregate.## Table of contents@@ -16,62 +16,62 @@- [agent-manifest.md](#sec-044)- [agent-reputation.md](#sec-045)- [agent-system.md](#sec-046)-- [agent-wallets.md](#sec-047)-- [agents-vs-avatars.md](#sec-048)-- [agora.md](#sec-049)-- [animations.md](#sec-062)-- [api-reference.md](#sec-063)-- [ar.md](#sec-065)-- [architecture.md](#sec-066)-- [authentication.md](#sec-083)-- [autonomous-x402.md](#sec-084)-- [avatar-creation.md](#sec-085)-- [avatar-pipeline.md](#sec-086)-- [aws-builder-center-marketplace-x402.md](#sec-087)-- [aws-builder-center-mcp-agents.md](#sec-088)-- [aws-marketplace-listing-kit.md](#sec-089)-- [aws-marketplace.md](#sec-090)-- [aws-partner-spotlight.md](#sec-091)-- [btn-pill-migration.md](#sec-092)-- [build.md](#sec-093)-- [changelog.md](#sec-094)-- [character-studio.md](#sec-095)-- [circulation-engine.md](#sec-096)-- [coin-launches.md](#sec-097)-- [coinmarketcap-article-play.md](#sec-098)-- [coinmarketcap-article.md](#sec-099)-- [configuration.md](#sec-100)-- [contributing.md](#sec-112)-- [demo-routes.md](#sec-113)-- [deployment.md](#sec-114)-- [do-i-need-crypto.md](#sec-115)-- [editor.md](#sec-116)-- [embedding.md](#sec-117)-- [erc8004.md](#sec-118)-- [examples.md](#sec-120)-- [hold-to-access.md](#sec-121)-- [how-it-works.md](#sec-122)-- [i18n.md](#sec-123)-- [ibm-x402-mcp.md](#sec-124)-- [ibm.md](#sec-125)-- [introduction.md](#sec-164)-- [js-api.md](#sec-166)-- [layers.md](#sec-168)-- [listings.md](#sec-169)-- [make-your-agent.md](#sec-197)-- [marketplace.md](#sec-198)-- [mcp-3d-studio.md](#sec-199)-- [mcp-agent.md](#sec-200)-- [mcp-studio.md](#sec-201)-- [mcp-tools.md](#sec-202)-- [mcp-x402-bazaar.md](#sec-203)-- [mcp.md](#sec-204)-- [memory.md](#sec-205)-- [mint-mark.md](#sec-206)-- [money-feed.md](#sec-207)-- [multi-agent.md](#sec-208)-- [nvidia-models.md](#sec-209)-- [onchain-agents.md](#sec-211)+- [agents-vs-avatars.md](#sec-047)+- [agora.md](#sec-048)+- [animations.md](#sec-061)+- [api-reference.md](#sec-062)+- [ar.md](#sec-064)+- [architecture.md](#sec-065)+- [authentication.md](#sec-082)+- [autonomous-x402.md](#sec-083)+- [avatar-creation.md](#sec-084)+- [avatar-pipeline.md](#sec-085)+- [aws-builder-center-marketplace-x402.md](#sec-086)+- [aws-builder-center-mcp-agents.md](#sec-087)+- [aws-marketplace-listing-kit.md](#sec-088)+- [aws-marketplace.md](#sec-089)+- [aws-partner-spotlight.md](#sec-090)+- [btn-pill-migration.md](#sec-091)+- [build.md](#sec-092)+- [changelog.md](#sec-093)+- [character-studio.md](#sec-094)+- [circulation-engine.md](#sec-095)+- [coin-launches.md](#sec-096)+- [coinmarketcap-article-play.md](#sec-097)+- [coinmarketcap-article.md](#sec-098)+- [configuration.md](#sec-099)+- [contributing.md](#sec-111)+- [demo-routes.md](#sec-112)+- [deployment.md](#sec-113)+- [do-i-need-crypto.md](#sec-114)+- [editor.md](#sec-115)+- [embedding.md](#sec-116)+- [erc8004.md](#sec-117)+- [examples.md](#sec-119)+- [hold-to-access.md](#sec-120)+- [how-it-works.md](#sec-121)+- [i18n.md](#sec-122)+- [ibm-x402-mcp.md](#sec-123)+- [ibm.md](#sec-124)+- [introduction.md](#sec-163)+- [js-api.md](#sec-165)+- [layers.md](#sec-167)+- [listings.md](#sec-168)+- [make-your-agent.md](#sec-196)+- [marketplace.md](#sec-197)+- [mcp-3d-studio.md](#sec-198)+- [mcp-agent.md](#sec-199)+- [mcp-studio.md](#sec-200)+- [mcp-tools.md](#sec-201)+- [mcp-x402-bazaar.md](#sec-202)+- [mcp.md](#sec-203)+- [memory.md](#sec-204)+- [mint-mark.md](#sec-205)+- [money-feed.md](#sec-206)+- [multi-agent.md](#sec-207)+- [nvidia-models.md](#sec-208)+- [onchain-agents.md](#sec-210)+- [package-extraction.md](#sec-214)- [pay-skills-listing.md](#sec-215)- [permissions.md](#sec-216)- [persona-hub.md](#sec-217)@@ -95,16 +95,18 @@- [start-here.md](#sec-281)- [syndication.md](#sec-309)- [troubleshooting.md](#sec-310)-- [validation.md](#sec-366)-- [viewer.md](#sec-367)-- [web-component.md](#sec-368)-- [widget-api.md](#sec-369)-- [widget-studio.md](#sec-370)-- [widgets.md](#sec-371)-- [x-spaces.md](#sec-372)-- [x402-buyer.md](#sec-373)-- [x402-endpoints.md](#sec-374)-- [x402.md](#sec-375)+- [ui-juice.md](#sec-354)+- [validation.md](#sec-367)+- [viewer.md](#sec-368)+- [web-component.md](#sec-369)+- [widget-api.md](#sec-370)+- [widget-studio.md](#sec-371)+- [widgets.md](#sec-372)+- [x-spaces.md](#sec-373)+- [x402-buyer.md](#sec-374)+- [x402-endpoints.md](#sec-375)+- [x402-revenue.md](#sec-376)+- [x402.md](#sec-377)### agent-briefs@@ -149,154 +151,154 @@### agora-- [agora/tasks/00-INDEX.md](#sec-050)-- [agora/tasks/01-verify-foundation.md](#sec-051)-- [agora/tasks/02-life-engine.md](#sec-052)-- [agora/tasks/03-task-supply.md](#sec-053)-- [agora/tasks/04-professions.md](#sec-054)-- [agora/tasks/05-commons-scaffold.md](#sec-055)-- [agora/tasks/06-economy-visuals.md](#sec-056)-- [agora/tasks/07-verify-and-passport.md](#sec-057)-- [agora/tasks/08-humans-first-class.md](#sec-058)-- [agora/tasks/09-arena-and-guilds.md](#sec-059)-- [agora/tasks/10-agora-mcp.md](#sec-060)-- [agora/tasks/11-production-hardening.md](#sec-061)+- [agora/tasks/00-INDEX.md](#sec-049)+- [agora/tasks/01-verify-foundation.md](#sec-050)+- [agora/tasks/02-life-engine.md](#sec-051)+- [agora/tasks/03-task-supply.md](#sec-052)+- [agora/tasks/04-professions.md](#sec-053)+- [agora/tasks/05-commons-scaffold.md](#sec-054)+- [agora/tasks/06-economy-visuals.md](#sec-055)+- [agora/tasks/07-verify-and-passport.md](#sec-056)+- [agora/tasks/08-humans-first-class.md](#sec-057)+- [agora/tasks/09-arena-and-guilds.md](#sec-058)+- [agora/tasks/10-agora-mcp.md](#sec-059)+- [agora/tasks/11-production-hardening.md](#sec-060)### api-- [api/forge-x402.md](#sec-064)+- [api/forge-x402.md](#sec-063)### audit-- [audit/2026-06-18-codebase-audit.md](#sec-067)-- [audit/2026-06-18-platform-audit.md](#sec-068)-- [audit/2026-06-26-completion-audit.md](#sec-069)-- [audit/PLATFORM-AUDIT-2026-06-18.md](#sec-070)-- [audit/REMEDIATION-2026-06-18.md](#sec-071)-- [audit/WIRING-UX-AUDIT-2026-06-18.md](#sec-072)-- [audit/remediation.md](#sec-073)+- [audit/2026-06-18-codebase-audit.md](#sec-066)+- [audit/2026-06-18-platform-audit.md](#sec-067)+- [audit/2026-06-26-completion-audit.md](#sec-068)+- [audit/PLATFORM-AUDIT-2026-06-18.md](#sec-069)+- [audit/REMEDIATION-2026-06-18.md](#sec-070)+- [audit/WIRING-UX-AUDIT-2026-06-18.md](#sec-071)+- [audit/remediation.md](#sec-072)### audits-- [audits/01-main.md](#sec-074)-- [audits/02-build.md](#sec-075)-- [audits/03-crypto-trading.md](#sec-076)-- [audits/04-crypto-x402.md](#sec-077)-- [audits/05-crypto-launch-wallets.md](#sec-078)-- [audits/06-labs-agent-account.md](#sec-079)-- [audits/07-learn-blog-legal.md](#sec-080)-- [audits/FINDINGS.md](#sec-081)-- [audits/README.md](#sec-082)+- [audits/01-main.md](#sec-073)+- [audits/02-build.md](#sec-074)+- [audits/03-crypto-trading.md](#sec-075)+- [audits/04-crypto-x402.md](#sec-076)+- [audits/05-crypto-launch-wallets.md](#sec-077)+- [audits/06-labs-agent-account.md](#sec-078)+- [audits/07-learn-blog-legal.md](#sec-079)+- [audits/FINDINGS.md](#sec-080)+- [audits/README.md](#sec-081)### content-- [content/social/README.md](#sec-101)-- [content/social/calendar-4-week.md](#sec-102)-- [content/social/clip-plan.md](#sec-103)-- [content/social/hooks-library.md](#sec-104)-- [content/social/post-templates.md](#sec-105)-- [content/use-cases/README.md](#sec-106)-- [content/use-cases/ai-agent-developer.md](#sec-107)-- [content/use-cases/brand-marketer.md](#sec-108)-- [content/use-cases/crypto-community.md](#sec-109)-- [content/use-cases/game-studio.md](#sec-110)-- [content/use-cases/indie-creator.md](#sec-111)+- [content/social/README.md](#sec-100)+- [content/social/calendar-4-week.md](#sec-101)+- [content/social/clip-plan.md](#sec-102)+- [content/social/hooks-library.md](#sec-103)+- [content/social/post-templates.md](#sec-104)+- [content/use-cases/README.md](#sec-105)+- [content/use-cases/ai-agent-developer.md](#sec-106)+- [content/use-cases/brand-marketer.md](#sec-107)+- [content/use-cases/crypto-community.md](#sec-108)+- [content/use-cases/game-studio.md](#sec-109)+- [content/use-cases/indie-creator.md](#sec-110)### erc8004-- [erc8004/validation-attestation.md](#sec-119)+- [erc8004/validation-attestation.md](#sec-118)### improvement-plans-- [improvement-plans/01-forge-studio-state-audit.md](#sec-126)-- [improvement-plans/02-self-host-default-lane.md](#sec-127)-- [improvement-plans/03-pose-animation-polish.md](#sec-128)-- [improvement-plans/04-multiview-3d-scanner.md](#sec-129)-- [improvement-plans/05-scene-studio-worlds.md](#sec-130)-- [improvement-plans/06-ar-view-in-space.md](#sec-131)-- [improvement-plans/07-retexture-gameready.md](#sec-132)-- [improvement-plans/08-launch-coin-with-3d-mascot.md](#sec-133)-- [improvement-plans/09-agent-embodiment.md](#sec-134)-- [improvement-plans/10-forge-as-paid-service.md](#sec-135)-- [improvement-plans/README.md](#sec-136)+- [improvement-plans/01-forge-studio-state-audit.md](#sec-125)+- [improvement-plans/02-self-host-default-lane.md](#sec-126)+- [improvement-plans/03-pose-animation-polish.md](#sec-127)+- [improvement-plans/04-multiview-3d-scanner.md](#sec-128)+- [improvement-plans/05-scene-studio-worlds.md](#sec-129)+- [improvement-plans/06-ar-view-in-space.md](#sec-130)+- [improvement-plans/07-retexture-gameready.md](#sec-131)+- [improvement-plans/08-launch-coin-with-3d-mascot.md](#sec-132)+- [improvement-plans/09-agent-embodiment.md](#sec-133)+- [improvement-plans/10-forge-as-paid-service.md](#sec-134)+- [improvement-plans/README.md](#sec-135)### internal-- [internal/AGENT-WALLET-CUSTODY.md](#sec-137)-- [internal/AUDIT-2026-06-18.md](#sec-138)-- [internal/AUDIT-LIVE-BROWSER-2026-06-18.md](#sec-139)-- [internal/AUTO_DRIVE_REPORT.md](#sec-140)-- [internal/AWS_MARKETPLACE_LISTING.md](#sec-141)-- [internal/CZ_DEMO_FAILURE_MODES.md](#sec-142)-- [internal/CZ_DEMO_RUNBOOK.md](#sec-143)-- [internal/DEVELOPMENT.md](#sec-144)-- [internal/HOLDER-CONFIDENCE-ROADMAP.md](#sec-145)-- [internal/IBM-WEBINAR-RUNBOOK.md](#sec-146)-- [internal/IBM_USER_GROUP.md](#sec-147)-- [internal/ISSUES-ARCHIVE-2026-05.md](#sec-148)-- [internal/ISSUES-ARCHIVE-2026-06.md](#sec-149)-- [internal/NEXT.md](#sec-150)-- [internal/PAGES.md](#sec-151)-- [internal/PROGRESS.md](#sec-152)-- [internal/PR_LISTINGS_CHECKLIST.md](#sec-153)-- [internal/SETUP.md](#sec-154)-- [internal/SMOKE_TEST.md](#sec-155)-- [internal/SNS_PARTNERSHIP_OUTBOUND.md](#sec-156)-- [internal/SNS_PARTNERSHIP_PROPOSAL.md](#sec-157)-- [internal/STATUS.md](#sec-158)-- [internal/TODO.md](#sec-159)-- [internal/VALIDATION_DEPLOY.md](#sec-160)-- [internal/agent-computer-buildplan.md](#sec-161)-- [internal/api-inventory.md](#sec-162)-- [internal/tutorial-build-pai-site.md](#sec-163)+- [internal/AGENT-WALLET-CUSTODY.md](#sec-136)+- [internal/AUDIT-2026-06-18.md](#sec-137)+- [internal/AUDIT-LIVE-BROWSER-2026-06-18.md](#sec-138)+- [internal/AUTO_DRIVE_REPORT.md](#sec-139)+- [internal/AWS_MARKETPLACE_LISTING.md](#sec-140)+- [internal/CZ_DEMO_FAILURE_MODES.md](#sec-141)+- [internal/CZ_DEMO_RUNBOOK.md](#sec-142)+- [internal/DEVELOPMENT.md](#sec-143)+- [internal/HOLDER-CONFIDENCE-ROADMAP.md](#sec-144)+- [internal/IBM-WEBINAR-RUNBOOK.md](#sec-145)+- [internal/IBM_USER_GROUP.md](#sec-146)+- [internal/ISSUES-ARCHIVE-2026-05.md](#sec-147)+- [internal/ISSUES-ARCHIVE-2026-06.md](#sec-148)+- [internal/NEXT.md](#sec-149)+- [internal/PAGES.md](#sec-150)+- [internal/PROGRESS.md](#sec-151)+- [internal/PR_LISTINGS_CHECKLIST.md](#sec-152)+- [internal/SETUP.md](#sec-153)+- [internal/SMOKE_TEST.md](#sec-154)+- [internal/SNS_PARTNERSHIP_OUTBOUND.md](#sec-155)+- [internal/SNS_PARTNERSHIP_PROPOSAL.md](#sec-156)+- [internal/STATUS.md](#sec-157)+- [internal/TODO.md](#sec-158)+- [internal/VALIDATION_DEPLOY.md](#sec-159)+- [internal/agent-computer-buildplan.md](#sec-160)+- [internal/api-inventory.md](#sec-161)+- [internal/tutorial-build-pai-site.md](#sec-162)### irl-- [irl/THREAT-MODEL.md](#sec-165)+- [irl/THREAT-MODEL.md](#sec-164)### launch-- [launch/go-no-go-2026-06-24.md](#sec-167)+- [launch/go-no-go-2026-06-24.md](#sec-166)### live-agent-tasks-- [live-agent-tasks/01-live-trading-desk.md](#sec-170)-- [live-agent-tasks/02-agent-newsroom-anchor.md](#sec-171)-- [live-agent-tasks/03-a2a-commerce-live.md](#sec-172)-- [live-agent-tasks/04-coin-world-tour.md](#sec-173)-- [live-agent-tasks/05-live-avatar-forge.md](#sec-174)-- [live-agent-tasks/06-treasury-autopilot-dashboard.md](#sec-175)-- [live-agent-tasks/07-watch-agent-work-screenshare.md](#sec-176)-- [live-agent-tasks/08-agent-stage-show.md](#sec-177)-- [live-agent-tasks/09-sentiment-heatmap-3d.md](#sec-178)-- [live-agent-tasks/10-copy-trade-mirror.md](#sec-179)-- [live-agent-tasks/11-vanity-address-miner.md](#sec-180)-- [live-agent-tasks/12-reputation-arena.md](#sec-181)-- [live-agent-tasks/13-live-qa-concierge.md](#sec-182)-- [live-agent-tasks/14-pumpfun-launch-director.md](#sec-183)-- [live-agent-tasks/15-pose-studio-live.md](#sec-184)-- [live-agent-tasks/16-market-maker-floor-defense.md](#sec-185)-- [live-agent-tasks/17-agent-memory-diary.md](#sec-186)-- [live-agent-tasks/18-multi-agent-collab-task.md](#sec-187)-- [live-agent-tasks/19-cinematic-activity-feed.md](#sec-188)-- [live-agent-tasks/20-spectator-tips-reactions.md](#sec-189)-- [live-agent-tasks/21-watch-intent-pool-polish.md](#sec-190)-- [live-agent-tasks/22-ambient-world-dj.md](#sec-191)-- [live-agent-tasks/23-portfolio-pnl-hud.md](#sec-192)-- [live-agent-tasks/24-deploy-to-wall-onboarding.md](#sec-193)-- [live-agent-tasks/25-showrunner-director.md](#sec-194)-- [live-agent-tasks/README.md](#sec-195)-- [live-agent-tasks/_TEMPLATE.md](#sec-196)+- [live-agent-tasks/01-live-trading-desk.md](#sec-169)+- [live-agent-tasks/02-agent-newsroom-anchor.md](#sec-170)+- [live-agent-tasks/03-a2a-commerce-live.md](#sec-171)+- [live-agent-tasks/04-coin-world-tour.md](#sec-172)+- [live-agent-tasks/05-live-avatar-forge.md](#sec-173)+- [live-agent-tasks/06-treasury-autopilot-dashboard.md](#sec-174)+- [live-agent-tasks/07-watch-agent-work-screenshare.md](#sec-175)+- [live-agent-tasks/08-agent-stage-show.md](#sec-176)+- [live-agent-tasks/09-sentiment-heatmap-3d.md](#sec-177)+- [live-agent-tasks/10-copy-trade-mirror.md](#sec-178)+- [live-agent-tasks/11-vanity-address-miner.md](#sec-179)+- [live-agent-tasks/12-reputation-arena.md](#sec-180)+- [live-agent-tasks/13-live-qa-concierge.md](#sec-181)+- [live-agent-tasks/14-pumpfun-launch-director.md](#sec-182)+- [live-agent-tasks/15-pose-studio-live.md](#sec-183)+- [live-agent-tasks/16-market-maker-floor-defense.md](#sec-184)+- [live-agent-tasks/17-agent-memory-diary.md](#sec-185)+- [live-agent-tasks/18-multi-agent-collab-task.md](#sec-186)+- [live-agent-tasks/19-cinematic-activity-feed.md](#sec-187)+- [live-agent-tasks/20-spectator-tips-reactions.md](#sec-188)+- [live-agent-tasks/21-watch-intent-pool-polish.md](#sec-189)+- [live-agent-tasks/22-ambient-world-dj.md](#sec-190)+- [live-agent-tasks/23-portfolio-pnl-hud.md](#sec-191)+- [live-agent-tasks/24-deploy-to-wall-onboarding.md](#sec-192)+- [live-agent-tasks/25-showrunner-director.md](#sec-193)+- [live-agent-tasks/README.md](#sec-194)+- [live-agent-tasks/_TEMPLATE.md](#sec-195)### onboarding-- [onboarding/ONBOARDING-PLAN-2026-06-19.md](#sec-210)+- [onboarding/ONBOARDING-PLAN-2026-06-19.md](#sec-209)### ops-- [ops/forge-multiview-migration-handoff.md](#sec-212)-- [ops/gcp-model-workers.md](#sec-213)-- [ops/redis.md](#sec-214)+- [ops/forge-multiview-migration-handoff.md](#sec-211)+- [ops/gcp-model-workers.md](#sec-212)+- [ops/redis.md](#sec-213)### pumpfun-program@@ -434,26 +436,26 @@### ux-flows-- [ux-flows/01-onboarding-creation.md](#sec-354)-- [ux-flows/02-forge-text-to-3d.md](#sec-355)-- [ux-flows/03-3d-editing-viewer.md](#sec-356)-- [ux-flows/04-embed-widget-studio.md](#sec-357)-- [ux-flows/05-discovery-social.md](#sec-358)-- [ux-flows/06-marketplace-skills.md](#sec-359)-- [ux-flows/07-crypto-trading-analytics.md](#sec-360)-- [ux-flows/08-coin-launch-wallets.md](#sec-361)-- [ux-flows/09-x402-agent-commerce.md](#sec-362)-- [ux-flows/10-chat-brain-labs.md](#sec-363)-- [ux-flows/11-account-dashboard.md](#sec-364)-- [ux-flows/12-home-and-content.md](#sec-365)+- [ux-flows/01-onboarding-creation.md](#sec-355)+- [ux-flows/02-forge-text-to-3d.md](#sec-356)+- [ux-flows/03-3d-editing-viewer.md](#sec-357)+- [ux-flows/04-embed-widget-studio.md](#sec-358)+- [ux-flows/05-discovery-social.md](#sec-359)+- [ux-flows/06-marketplace-skills.md](#sec-360)+- [ux-flows/07-crypto-trading-analytics.md](#sec-361)+- [ux-flows/08-coin-launch-wallets.md](#sec-362)+- [ux-flows/09-x402-agent-commerce.md](#sec-363)+- [ux-flows/10-chat-brain-labs.md](#sec-364)+- [ux-flows/11-account-dashboard.md](#sec-365)+- [ux-flows/12-home-and-content.md](#sec-366)### zauth-- [zauth/database.md](#sec-376)-- [zauth/index.md](#sec-377)-- [zauth/provider-hub.md](#sec-378)-- [zauth/reposcan.md](#sec-379)-- [zauth/vector.md](#sec-380)+- [zauth/database.md](#sec-378)+- [zauth/index.md](#sec-379)+- [zauth/provider-hub.md](#sec-380)+- [zauth/reposcan.md](#sec-381)+- [zauth/vector.md](#sec-382)---@@ -5199,107 +5201,6 @@ Quick reference for where each piece of the system lives:<a id="sec-047"></a>-> **Source:** `docs/agent-wallets.md` · [↑ table of contents](#table-of-contents)--# Agent Wallets--Every three.ws agent can hold its own custodial wallets — a Solana keypair and,-optionally, an EVM keypair — so it can act with real funds: tip, pay, trade,-launch coins, snipe, and pay [x402](x402.md) endpoints. This page describes how-those wallets are created, secured, and spent, and the guard rails that bound what-an agent can move.--> Source: [`api/_lib/agent-wallet.js`](../api/_lib/agent-wallet.js),-> [`api/_lib/secret-box.js`](../api/_lib/secret-box.js),-> spend guards [`api/_lib/agent-trade-guards.js`](../api/_lib/agent-trade-guards.js).-------## Wallet provisioning--`provisionAgentWallets(agentId)` creates what an agent needs. EVM and Solana keys-are generated per agent and stored against the agent record — the address in the-clear, the **private key encrypted at rest**. An existing wallet is never-re-created: `getOrCreateAgentEvmWallet()` returns the stored address if one is-already present.--| Function | Purpose |-|---|---|-| `generateAgentWallet()` | Generate a fresh keypair; returns `{ address, encrypted_key }`. |-| `getOrCreateAgentEvmWallet(agentId, { chainId })` | Idempotent EVM wallet (default chain 8453, Base). |-| `provisionAgentWallets(agentId)` | Ensure the full wallet set exists for an agent. |-| `getAgentBalance(agentId)` / `canAfford(agentId, priceUsd)` | Read balance / affordability checks. |--## Encryption at rest--Private keys are sealed with **AES-256-GCM** via a single secret box-(`secret-box.js`, HKDF key derivation).--- **v2 (current):** the encryption key derives from a dedicated secret, so the key- store is isolated and rotatable on its own. New writes use v2.-- **Legacy:** older records without a version tag still decrypt with the legacy- `JWT_SECRET` + constant-salt derivation, and are **re-encrypted opportunistically**- to v2 on their next write.--Every decrypt goes through `recoverAgentKey()` / `recoverSolanaAgentKeypair()`,-which accept an audit hook so an owner-viewable custody event can be written-fire-and-forget on each key access.--## Signing and submitting--When an agent needs to act, the relevant engine recovers its keypair, builds the-transaction, and submits it through the protected execution path-(`submitProtected()` in `execution-engine.js`). The same path serves circulation-tips/payments/trades, marketplace settlements, coin launches, snipes, and x402-payments — so all real spends share one set of guards and one ledger.--## Spend guards--Before any outbound spend is recorded, it passes through the guard layer in-`agent-trade-guards.js`:--| Limit | Meaning |-|---|---|-| `per_tx_usd` | Max USD-equivalent for any single outbound transaction. |-| `daily_usd` | Rolling-24h total USD-equivalent outflow ceiling. |-| `daily_budget_sol` | Rolling-24h SOL buy budget across trade + snipe. |-| `require_capabilities` | When set, a spend must match an issued capability scope. |-| `frozen` | Freezes all non-withdraw spends. |-| `withdraw_allowlist` | Restricts withdrawals to approved destinations. |--Limits are stored on the agent and edited via `setSpendLimits()`. A spend that-exceeds a limit raises a `SpendLimitError` with a human-readable reason; the-spend is blocked, not silently dropped. Withdrawals are treated distinctly from-autonomous spends (`category: 'withdraw'` bypasses the autonomous-only rules but-is subject to the allow-list).--## Recording--Each real spend is written to `agent_custody_events` via `recordCustodyEvent()`-with a `category` (`trade` | `snipe` | `x402` | `withdraw` | `tip` | …), the-amount, destination, signature, and an idempotency key. This ledger powers-portfolio balances and the economy volume dashboard — see [Money feed](money-feed.md).--## Pay-by-name--Agents can pay a counterparty addressed by an SNS or ENS name rather than a raw-address. The name resolves to a wallet via the resolution layer, and the payment-settles over x402 (`/api/x402/pay-by-name`). See the `@three-ws/names` package and-the `ens_sns_resolve` MCP tool in [MCP tools](mcp-tools.md).--## Related--- [Circulation engine](circulation-engine.md) — the autonomous loop that exercises- these wallets.-- [AgenC](agenc.md) — on-chain agent coordination and identity.-- [Deploy agents on-chain (bulk)](onchain-agents.md) — minting agents as on-chain- identities.-- [x402 buyer client](x402-buyer.md) — how an agent pays a paid endpoint.-------<a id="sec-048"></a>-> **Source:** `docs/agents-vs-avatars.md` · [↑ table of contents](#table-of-contents)# Agents vs. Avatars@@ -5363,7 +5264,7 @@ The pill always has a small `?` next to it that links back to this page.----<a id="sec-049"></a>+<a id="sec-048"></a>> **Source:** `docs/agora.md` · [↑ table of contents](#table-of-contents)@@ -5594,7 +5495,7 @@ citizen whose passport shows both an EVM and a Solana proof).----<a id="sec-050"></a>+<a id="sec-049"></a>> **Source:** `docs/agora/tasks/00-INDEX.md` · [↑ table of contents](#table-of-contents)@@ -5768,7 +5669,7 @@ Verification · Guardrails.**----<a id="sec-051"></a>+<a id="sec-050"></a>> **Source:** `docs/agora/tasks/01-verify-foundation.md` · [↑ table of contents](#table-of-contents)@@ -5857,7 +5758,7 @@ curl -s "localhost:3000/api/agora/passport?id=00000000-0000-0000-0000-0000000000----<a id="sec-052"></a>+<a id="sec-051"></a>> **Source:** `docs/agora/tasks/02-life-engine.md` · [↑ table of contents](#table-of-contents)@@ -5988,7 +5889,7 @@ Confirm tx signatures on `https://explorer.solana.com/?cluster=devnet`.----<a id="sec-053"></a>+<a id="sec-052"></a>> **Source:** `docs/agora/tasks/03-task-supply.md` · [↑ table of contents](#table-of-contents)@@ -6087,7 +5988,7 @@ curl -s "localhost:3000/api/agenc/get-task?taskPda=<pda>&cluster=devnet&lifecycl----<a id="sec-054"></a>+<a id="sec-053"></a>> **Source:** `docs/agora/tasks/04-professions.md` · [↑ table of contents](#table-of-contents)@@ -6183,7 +6084,7 @@ curl -sL "<deliverableUrl>" -o /tmp/d.glb && sha256sum /tmp/d.glb # == on-chai----<a id="sec-055"></a>+<a id="sec-054"></a>> **Source:** `docs/agora/tasks/05-commons-scaffold.md` · [↑ table of contents](#table-of-contents)@@ -6274,7 +6175,7 @@ Throttle network to see progressive load.----<a id="sec-056"></a>+<a id="sec-055"></a>> **Source:** `docs/agora/tasks/06-economy-visuals.md` · [↑ table of contents](#table-of-contents)@@ -6367,7 +6268,7 @@ flow + rep tick. Leave it open 10 min; confirm stable memory in devtools.----<a id="sec-057"></a>+<a id="sec-056"></a>> **Source:** `docs/agora/tasks/07-verify-and-passport.md` · [↑ table of contents](#table-of-contents)@@ -6465,7 +6366,7 @@ against `/api/agenc/get-agent`. For the handshake, confirm the canonical id equa----<a id="sec-058"></a>+<a id="sec-057"></a>> **Source:** `docs/agora/tasks/08-humans-first-class.md` · [↑ table of contents](#table-of-contents)@@ -6561,7 +6462,7 @@ insufficient balance (honest error). Confirm tx signatures on Explorer.----<a id="sec-059"></a>+<a id="sec-058"></a>> **Source:** `docs/agora/tasks/09-arena-and-guilds.md` · [↑ table of contents](#table-of-contents)@@ -6648,7 +6549,7 @@ watch the race resolve to the real winner. Cross-check the winner + escrow again----<a id="sec-060"></a>+<a id="sec-059"></a>> **Source:** `docs/agora/tasks/10-agora-mcp.md` · [↑ table of contents](#table-of-contents)@@ -6742,7 +6643,7 @@ in `/api/agora/pulse`.----<a id="sec-061"></a>+<a id="sec-060"></a>> **Source:** `docs/agora/tasks/11-production-hardening.md` · [↑ table of contents](#table-of-contents)@@ -6842,7 +6743,7 @@ Then `completionist` on changed files + `/code-review` on the diff.----<a id="sec-062"></a>+<a id="sec-061"></a>> **Source:** `docs/animations.md` · [↑ table of contents](#table-of-contents)@@ -6909,7 +6810,7 @@ Agents can override individual slots via `meta.edits.animations`.----<a id="sec-063"></a>+<a id="sec-062"></a>> **Source:** `docs/api-reference.md` · [↑ table of contents](#table-of-contents)@@ -7943,7 +7844,7 @@ The SDK handles auth headers, retries on 429, and TypeScript types for all reque----<a id="sec-064"></a>+<a id="sec-063"></a>> **Source:** `docs/api/forge-x402.md` · [↑ table of contents](#table-of-contents)@@ -8061,7 +7962,7 @@ for (;;) {----<a id="sec-065"></a>+<a id="sec-064"></a>> **Source:** `docs/ar.md` · [↑ table of contents](#table-of-contents)@@ -8484,7 +8385,7 @@ else if (await navigator.xr?.isSessionSupported('immersive-ar')) {----<a id="sec-066"></a>+<a id="sec-065"></a>> **Source:** `docs/architecture.md` · [↑ table of contents](#table-of-contents)@@ -8737,7 +8638,7 @@ A minimal Vercel + Neon + Anthropic deployment is enough for a single agent. The----<a id="sec-067"></a>+<a id="sec-066"></a>> **Source:** `docs/audit/2026-06-18-codebase-audit.md` · [↑ table of contents](#table-of-contents)@@ -8859,7 +8760,7 @@ is deferred.----<a id="sec-068"></a>+<a id="sec-067"></a>> **Source:** `docs/audit/2026-06-18-platform-audit.md` · [↑ table of contents](#table-of-contents)@@ -8981,7 +8882,7 @@ work in this shared worktree.----<a id="sec-069"></a>+<a id="sec-068"></a>> **Source:** `docs/audit/2026-06-26-completion-audit.md` · [↑ table of contents](#table-of-contents)@@ -9065,7 +8966,7 @@ by this audit; regenerated artifacts were restored to avoid worktree churn.*----<a id="sec-070"></a>+<a id="sec-069"></a>> **Source:** `docs/audit/PLATFORM-AUDIT-2026-06-18.md` · [↑ table of contents](#table-of-contents)@@ -9194,7 +9095,7 @@ See `docs/audit/REMEDIATION-2026-06-18.md` for the running log of fixes applied.----<a id="sec-071"></a>+<a id="sec-070"></a>> **Source:** `docs/audit/REMEDIATION-2026-06-18.md` · [↑ table of contents](#table-of-contents)@@ -9252,7 +9153,7 @@ Tracked in `PLATFORM-AUDIT-2026-06-18.md` → "P2 — Reported":----<a id="sec-072"></a>+<a id="sec-071"></a>> **Source:** `docs/audit/WIRING-UX-AUDIT-2026-06-18.md` · [↑ table of contents](#table-of-contents)@@ -9341,7 +9242,7 @@ gaps were changed (verify-before-fix).----<a id="sec-073"></a>+<a id="sec-072"></a>> **Source:** `docs/audit/remediation.md` · [↑ table of contents](#table-of-contents)@@ -9456,7 +9357,7 @@ to other agents and were left untouched. Stage explicit paths when committing.----<a id="sec-074"></a>+<a id="sec-073"></a>> **Source:** `docs/audits/01-main.md` · [↑ table of contents](#table-of-contents)@@ -9603,7 +9504,7 @@ Coin rule: clean. No competing-coin promotion in this group; all `USDC` usage is----<a id="sec-075"></a>+<a id="sec-074"></a>> **Source:** `docs/audits/02-build.md` · [↑ table of contents](#table-of-contents)@@ -9779,7 +9680,7 @@ Most impactful **P2** themes: missing `aria-live`/`role=status` on async status----<a id="sec-076"></a>+<a id="sec-075"></a>> **Source:** `docs/audits/03-crypto-trading.md` · [↑ table of contents](#table-of-contents)@@ -9936,7 +9837,7 @@ Best-in-group references to copy: **/radar** (four designed states, tab-pause, f----<a id="sec-077"></a>+<a id="sec-076"></a>> **Source:** `docs/audits/04-crypto-x402.md` · [↑ table of contents](#table-of-contents)@@ -10100,7 +10001,7 @@ Verdict: Strong. Real on-chain trade stream via SSE `/api/agents/pumpfun-feed?ki----<a id="sec-078"></a>+<a id="sec-077"></a>> **Source:** `docs/audits/05-crypto-launch-wallets.md` · [↑ table of contents](#table-of-contents)@@ -10246,7 +10147,7 @@ Notable P2 cluster: undefined `--danger`/`--success` CSS tokens shared by the va----<a id="sec-079"></a>+<a id="sec-078"></a>> **Source:** `docs/audits/06-labs-agent-account.md` · [↑ table of contents](#table-of-contents)@@ -10381,7 +10282,7 @@ Comprehensive account settings; real auth guard; tabbed with popstate.----<a id="sec-080"></a>+<a id="sec-079"></a>> **Source:** `docs/audits/07-learn-blog-legal.md` · [↑ table of contents](#table-of-contents)@@ -10541,7 +10442,7 @@ Served: vercel.json:359 `/.well-known/x402` → `/api/wk?name=x402`; `x402` and----<a id="sec-081"></a>+<a id="sec-080"></a>> **Source:** `docs/audits/FINDINGS.md` · [↑ table of contents](#table-of-contents)@@ -10639,7 +10540,7 @@ edit — left open and tracked rather than risk clobbering in-flight work.----<a id="sec-082"></a>+<a id="sec-081"></a>> **Source:** `docs/audits/README.md` · [↑ table of contents](#table-of-contents)@@ -10706,7 +10607,7 @@ issue across all groups, and what was fixed.----<a id="sec-083"></a>+<a id="sec-082"></a>> **Source:** `docs/authentication.md` · [↑ table of contents](#table-of-contents)@@ -11128,7 +11029,7 @@ Password hashing cost is configurable via `PASSWORD_ROUNDS` (default: `11` bcryp----<a id="sec-084"></a>+<a id="sec-083"></a>> **Source:** `docs/autonomous-x402.md` · [↑ table of contents](#table-of-contents)@@ -11175,7 +11076,9 @@ Payments are real on chain — no mocks, no simulations.| `X402_AGENT_SOLANA_SECRET_BASE58` | _(fallback)_ | Used if the seeder secret is absent. || `X402_AUTONOMOUS_ENABLED` | enabled | Set to `false` to pause without removing entries. || `X402_AUTONOMOUS_MAX_PER_TICK` | `8` | Max calls per cron tick. |-| `X402_AUTONOMOUS_DAILY_CAP_ATOMIC` | `5000000` ($5) | Daily USDC cap, in 6-decimal atomics. |+| `X402_AUTONOMOUS_DAILY_CAP_ATOMIC` | `5000000` ($5) | Daily USDC cap across the whole loop, in 6-decimal atomics. |+| `X402_VOLUME_BATCH_PER_RUN` | `4` | Volume Bootstrap Loop: endpoints swept per run (cursor advances by this). |+| `X402_VOLUME_PER_RUN_CAP_ATOMIC` | `50000` ($0.05) | Volume Bootstrap Loop: self-imposed per-run cap, on top of the daily cap, so one tick can't drain the day. || `CRON_SECRET` | _(required)_ | Vercel cron authorization. || `X402_ASSET_MINT_SOLANA` | USDC mint | The asset paid with (Solana USDC). || `SOLANA_RPC_URL` | — | RPC used to build and submit the payment. |@@ -11222,13 +11125,54 @@ The registry groups entries into pipelines. The main ones in production:- **`security`** — payment-proof idempotency and API-key bypass audits thatexercise our own payment guards end to end.- **`volume`** — small, bounded activity entries that keep the economy's heartbeat- visible.+ visible, including the **Volume Bootstrap Loop** (see below).+- **`reconciliation`** — the daily financial-integrity job (see below).- **`qa` / `forge` / `self`** — animation-retarget QA, forge content generation,GLB size optimization, avatar thumbnail regeneration.To pause any entry without a deploy, set its `enabled: false`; to pause the wholeloop, set `X402_AUTONOMOUS_ENABLED=false`.+## The Volume Bootstrap Loop (`self/026`)++One registry entry — `volume-bootstrap-loop`, pipeline `volume`, cooldown 300s —+owns a full sweep rather than a single call. On each run it advances a+Redis-backed round-robin cursor, reserves the next `X402_VOLUME_BATCH_PER_RUN`+endpoints from the `VOLUME_ENDPOINTS` catalog in+[`pipelines/volume-bootstrap-loop.js`](../api/_lib/x402/pipelines/volume-bootstrap-loop.js),+and pays each one a real on-chain USDC payment ($0.001–$0.01). It respects both+the loop's daily cap and its own `X402_VOLUME_PER_RUN_CAP_ATOMIC` per-run cap. It+records every call in `x402_autonomous_log` and upserts the per-endpoint ledger+`x402_volume_metrics` (call / success / fail counts, total + last USDC spent, last+tx signature, liveness timestamps). To add an endpoint to the sweep, add it to+`VOLUME_ENDPOINTS` — the cursor and ledger pick it up automatically.++> **This is synthetic, not organic.** The sweep pays our **own** endpoints from+> our **own** seed wallet; the USDC round-trips back to the platform treasury. It+> is a **liveness canary + proof-of-volume** mechanism, deliberately kept small —+> not external demand. Treat `x402_volume_metrics` as monitoring, and exclude the+> seed wallet's `payer` from any "marketplace volume" or facilitator-ranking+> number you publish. Scaling this loop to manufacture a big volume figure is wash+> volume — real transactions, fake demand, and detectable on-chain. The full+> reasoning lives in+> [x402 revenue → Synthetic vs organic](x402-revenue.md#proof-of-volume--x402_volume_metrics).+> Drive *real* volume through external demand (the+> [Circulation engine](circulation-engine.md), real `agent_hire` commerce,+> discovery), not a heavier self-paid sweep.++## Reconciliation (`self/027`)++The `revenue-reconciliation` entry (pipeline `reconciliation`, cooldown 86400s —+**daily**) is the financial-integrity watchdog. It cross-checks every record that+claims an on-chain settlement — outbound `x402_autonomous_log` rows and inbound+`agent_payment_intents` — against the actual Solana transaction via+`getSignatureStatuses`, and upserts a verdict per record into+`payment_reconciliation`. It is **read-only**, so it runs even with no spend+wallet configured (keyless RPC; the `/api/x402-status` probe it reads is free). A+`reconciled = false` row means the books claim a settlement the chain does not+corroborate — the ops financial-integrity surface alerts on those. Detail:+[x402 revenue → Reconciliation](x402-revenue.md#reconciliation--payment_reconciliation).+## Where results land| Sink | Written by |@@ -11236,17 +11180,20 @@ loop, set `X402_AUTONOMOUS_ENABLED=false`.| `x402_autonomous_log` | Every call (success or failure), with `signal_data` / `value_extracted`. || `oracle_intel_signals` | `oracle` / `sniper` entries, keyed by source + topic; consumed by the sniper oracle gate. || `agent_custody_events` | The USDC spend, with `category: 'x402'` (see [Money feed](money-feed.md)). |+| `x402_volume_metrics` | Per-endpoint proof-of-volume + liveness ledger from the Volume Bootstrap Loop (see [x402 revenue](x402-revenue.md#proof-of-volume--x402_volume_metrics)). |+| `payment_reconciliation` | One verdict per settlement claim from the daily reconciliation job (see [x402 revenue](x402-revenue.md#reconciliation--payment_reconciliation)). || Dedicated stores | Pipeline-specific tables (pricing tracker, reputation snapshots, leaderboard, sniper analytics, …). |## Related- [x402 endpoints](x402-endpoints.md) — the paid endpoints this loop calls.+- [x402 revenue & receipts](x402-revenue.md) — where settlements land, the proof-of-volume ledger, and the reconciliation job.- [x402 buyer client](x402-buyer.md) — the client wrappers it pays with.- [Circulation engine](circulation-engine.md) — the separate SOL/$THREE activity loop.----<a id="sec-085"></a>+<a id="sec-084"></a>> **Source:** `docs/avatar-creation.md` · [↑ table of contents](#table-of-contents)@@ -11578,7 +11525,7 @@ The ML regeneration backend is not enabled on this deployment. Join the early ac----<a id="sec-086"></a>+<a id="sec-085"></a>> **Source:** `docs/avatar-pipeline.md` · [↑ table of contents](#table-of-contents)@@ -11672,7 +11619,7 @@ pose operations.----<a id="sec-087"></a>+<a id="sec-086"></a>> **Source:** `docs/aws-builder-center-marketplace-x402.md` · [↑ table of contents](#table-of-contents)@@ -11931,7 +11878,7 @@ The product on the other side of all this plumbing is the platform: three.ws age----<a id="sec-088"></a>+<a id="sec-087"></a>> **Source:** `docs/aws-builder-center-mcp-agents.md` · [↑ table of contents](#table-of-contents)@@ -12046,7 +11993,7 @@ If you wire it into something, or you want to list a paid tool of your own, the----<a id="sec-089"></a>+<a id="sec-088"></a>> **Source:** `docs/aws-marketplace-listing-kit.md` · [↑ table of contents](#table-of-contents)@@ -12252,7 +12199,7 @@ Not done (requires AWS console / seller creds — cannot be done from this repo)----<a id="sec-090"></a>+<a id="sec-089"></a>> **Source:** `docs/aws-marketplace.md` · [↑ table of contents](#table-of-contents)@@ -12305,7 +12252,7 @@ For platform support, open an issue at [github.com/nirholas/three.ws/issues](htt----<a id="sec-091"></a>+<a id="sec-090"></a>> **Source:** `docs/aws-partner-spotlight.md` · [↑ table of contents](#table-of-contents)@@ -12401,7 +12348,7 @@ One product. Two ways to pay. One AWS bill.----<a id="sec-092"></a>+<a id="sec-091"></a>> **Source:** `docs/btn-pill-migration.md` · [↑ table of contents](#table-of-contents)@@ -12525,7 +12472,7 @@ These classes are defined across the codebase. Follow-up agents should replace t----<a id="sec-093"></a>+<a id="sec-092"></a>> **Source:** `docs/build.md` · [↑ table of contents](#table-of-contents)@@ -12665,7 +12612,7 @@ grep -l 'vite-plugin-pwa:register-sw' dist/widget.html dist/embed.html # expec----<a id="sec-094"></a>+<a id="sec-093"></a>> **Source:** `docs/changelog.md` · [↑ table of contents](#table-of-contents)@@ -12986,7 +12933,7 @@ cd sdk && npm publish----<a id="sec-095"></a>+<a id="sec-094"></a>> **Source:** `docs/character-studio.md` · [↑ table of contents](#table-of-contents)@@ -13220,7 +13167,7 @@ For cases that need more control than Avatar Studio provides, create your avatar----<a id="sec-096"></a>+<a id="sec-095"></a>> **Source:** `docs/circulation-engine.md` · [↑ table of contents](#table-of-contents)@@ -13390,7 +13337,7 @@ budget, so raise gradually and watch tick runtime and treasury balance.----<a id="sec-097"></a>+<a id="sec-096"></a>> **Source:** `docs/coin-launches.md` · [↑ table of contents](#table-of-contents)@@ -13477,7 +13424,7 @@ hardcode or surface any other specific mint as a recommendation.----<a id="sec-098"></a>+<a id="sec-097"></a>> **Source:** `docs/coinmarketcap-article-play.md` · [↑ table of contents](#table-of-contents)@@ -13623,7 +13570,7 @@ The chart has always told you *what* a coin is doing. /play lets you go stand wh----<a id="sec-099"></a>+<a id="sec-098"></a>> **Source:** `docs/coinmarketcap-article.md` · [↑ table of contents](#table-of-contents)@@ -13826,7 +13773,7 @@ If you've been waiting for the moment AI and crypto stop talking past each other----<a id="sec-100"></a>+<a id="sec-099"></a>> **Source:** `docs/configuration.md` · [↑ table of contents](#table-of-contents)@@ -14350,7 +14297,7 @@ Before going live, verify the following:----<a id="sec-101"></a>+<a id="sec-100"></a>> **Source:** `docs/content/social/README.md` · [↑ table of contents](#table-of-contents)@@ -14409,7 +14356,7 @@ When G02's scripts land under `docs/content/video-scripts/`, refresh [clip-plan.----<a id="sec-102"></a>+<a id="sec-101"></a>> **Source:** `docs/content/social/calendar-4-week.md` · [↑ table of contents](#table-of-contents)@@ -14476,7 +14423,7 @@ Formats are abbreviated: **BIP** build-in-public · **FS** feature spotlight ·----<a id="sec-103"></a>+<a id="sec-102"></a>> **Source:** `docs/content/social/clip-plan.md` · [↑ table of contents](#table-of-contents)@@ -14551,7 +14498,7 @@ Each clip is built for vertical platforms (YouTube Shorts / TikTok) and reusable----<a id="sec-104"></a>+<a id="sec-103"></a>> **Source:** `docs/content/social/hooks-library.md` · [↑ table of contents](#table-of-contents)@@ -14635,7 +14582,7 @@ If you can't source the number, the post is stronger without it. Drop the clause----<a id="sec-105"></a>+<a id="sec-104"></a>> **Source:** `docs/content/social/post-templates.md` · [↑ table of contents](#table-of-contents)@@ -14793,7 +14740,7 @@ Make your own: [CTA URL — /create or /forge or /scan]----<a id="sec-106"></a>+<a id="sec-105"></a>> **Source:** `docs/content/use-cases/README.md` · [↑ table of contents](#table-of-contents)@@ -14838,7 +14785,7 @@ Every scenario on these pages is an **example workflow** — clearly labeled "Im----<a id="sec-107"></a>+<a id="sec-106"></a>> **Source:** `docs/content/use-cases/ai-agent-developer.md` · [↑ table of contents](#table-of-contents)@@ -14886,7 +14833,7 @@ A standards-based interface (MCP + A2A), a working USDC payment rail (x402 on Ba----<a id="sec-108"></a>+<a id="sec-107"></a>> **Source:** `docs/content/use-cases/brand-marketer.md` · [↑ table of contents](#table-of-contents)@@ -14945,7 +14892,7 @@ A conversational 3D brand presence that's easy to embed and share, plus a public----<a id="sec-109"></a>+<a id="sec-108"></a>> **Source:** `docs/content/use-cases/crypto-community.md` · [↑ table of contents](#table-of-contents)@@ -14992,7 +14939,7 @@ A shared 3D home for the token's holders, a real (not mocked) on-chain agent-exc----<a id="sec-110"></a>+<a id="sec-109"></a>> **Source:** `docs/content/use-cases/game-studio.md` · [↑ table of contents](#table-of-contents)@@ -15039,7 +14986,7 @@ A character that renders with production-grade glTF handling, converses through----<a id="sec-111"></a>+<a id="sec-110"></a>> **Source:** `docs/content/use-cases/indie-creator.md` · [↑ table of contents](#table-of-contents)@@ -15099,7 +15046,7 @@ A real, embedded, conversational 3D avatar that loads in any modern browser. The----<a id="sec-112"></a>+<a id="sec-111"></a>> **Source:** `docs/contributing.md` · [↑ table of contents](#table-of-contents)@@ -15398,7 +15345,7 @@ By contributing, you agree that your contributions will be licensed under the [A----<a id="sec-113"></a>+<a id="sec-112"></a>> **Source:** `docs/demo-routes.md` · [↑ table of contents](#table-of-contents)@@ -15580,7 +15527,7 @@ Verified on the live Vite dev server (`npm run dev`, port 3000):----<a id="sec-114"></a>+<a id="sec-113"></a>> **Source:** `docs/deployment.md` · [↑ table of contents](#table-of-contents)@@ -16168,7 +16115,7 @@ Upstash REST API uses HTTPS — no ports to open. If you see connection errors,----<a id="sec-115"></a>+<a id="sec-114"></a>> **Source:** `docs/do-i-need-crypto.md` · [↑ table of contents](#table-of-contents)@@ -16259,7 +16206,7 @@ When you do interact with on-chain features, the platform's native token is **$T----<a id="sec-116"></a>+<a id="sec-115"></a>> **Source:** `docs/editor.md` · [↑ table of contents](#table-of-contents)@@ -16599,7 +16546,7 @@ The editor is at format version `agent-editor/0.1`. The following rough edges ar----<a id="sec-117"></a>+<a id="sec-116"></a>> **Source:** `docs/embedding.md` · [↑ table of contents](#table-of-contents)@@ -17321,7 +17268,7 @@ The platform records anonymous embed impressions (country, referrer hostname) vi----<a id="sec-118"></a>+<a id="sec-117"></a>> **Source:** `docs/erc8004.md` · [↑ table of contents](#table-of-contents)@@ -17934,7 +17881,7 @@ The same MAINNET addresses apply to all 15 mainnets. The same TESTNET addresses----<a id="sec-119"></a>+<a id="sec-118"></a>> **Source:** `docs/erc8004/validation-attestation.md` · [↑ table of contents](#table-of-contents)@@ -18027,7 +17974,7 @@ ValidationRegistry is deployed, `/api/erc8004/validate` returns a clear ops erro----<a id="sec-120"></a>+<a id="sec-119"></a>> **Source:** `docs/examples.md` · [↑ table of contents](#table-of-contents)@@ -18754,7 +18701,7 @@ genuinely invested in the user's progress.----<a id="sec-121"></a>+<a id="sec-120"></a>> **Source:** `docs/hold-to-access.md` · [↑ table of contents](#table-of-contents)@@ -18973,7 +18920,7 @@ worlds unaffected.----<a id="sec-122"></a>+<a id="sec-121"></a>> **Source:** `docs/how-it-works.md` · [↑ table of contents](#table-of-contents)@@ -19144,7 +19091,7 @@ Quick lookup for "I want to ship X":----<a id="sec-123"></a>+<a id="sec-122"></a>> **Source:** `docs/i18n.md` · [↑ table of contents](#table-of-contents)@@ -19295,7 +19242,7 @@ round-trips, lint rules, runtime resolution/fallback, and catalog merge/prune.----<a id="sec-124"></a>+<a id="sec-123"></a>> **Source:** `docs/ibm-x402-mcp.md` · [↑ table of contents](#table-of-contents)@@ -19653,7 +19600,7 @@ Catalog/listing copy is maintained in----<a id="sec-125"></a>+<a id="sec-124"></a>> **Source:** `docs/ibm.md` · [↑ table of contents](#table-of-contents)@@ -19963,7 +19910,7 @@ Unit tests for the same paths live in [`tests/`](../tests/) (`granite-oracle`, `----<a id="sec-126"></a>+<a id="sec-125"></a>> **Source:** `docs/improvement-plans/01-forge-studio-state-audit.md` · [↑ table of contents](#table-of-contents)@@ -20037,7 +19984,7 @@ zero dead paths. Behavior of the generation pipeline itself stays identical.----<a id="sec-127"></a>+<a id="sec-126"></a>> **Source:** `docs/improvement-plans/02-self-host-default-lane.md` · [↑ table of contents](#table-of-contents)@@ -20116,7 +20063,7 @@ lane could satisfy.----<a id="sec-128"></a>+<a id="sec-127"></a>> **Source:** `docs/improvement-plans/03-pose-animation-polish.md` · [↑ table of contents](#table-of-contents)@@ -20184,7 +20131,7 @@ all the polish states — without regressing any currently-supported rig.----<a id="sec-129"></a>+<a id="sec-128"></a>> **Source:** `docs/improvement-plans/04-multiview-3d-scanner.md` · [↑ table of contents](#table-of-contents)@@ -20256,7 +20203,7 @@ multi-view reconstruction returns a textured GLB the user can view, pose, and em----<a id="sec-130"></a>+<a id="sec-129"></a>> **Source:** `docs/improvement-plans/05-scene-studio-worlds.md` · [↑ table of contents](#table-of-contents)@@ -20325,7 +20272,7 @@ walk an avatar through it).----<a id="sec-131"></a>+<a id="sec-130"></a>> **Source:** `docs/improvement-plans/06-ar-view-in-space.md` · [↑ table of contents](#table-of-contents)@@ -20393,7 +20340,7 @@ profiles, and the gallery — driven by one component, not copy-pasted per surfa----<a id="sec-132"></a>+<a id="sec-131"></a>> **Source:** `docs/improvement-plans/07-retexture-gameready.md` · [↑ table of contents](#table-of-contents)@@ -20464,7 +20411,7 @@ textured GLB.----<a id="sec-133"></a>+<a id="sec-132"></a>> **Source:** `docs/improvement-plans/08-launch-coin-with-3d-mascot.md` · [↑ table of contents](#table-of-contents)@@ -20540,7 +20487,7 @@ records, at runtime, with the mint supplied by the user.----<a id="sec-134"></a>+<a id="sec-133"></a>> **Source:** `docs/improvement-plans/09-agent-embodiment.md` · [↑ table of contents](#table-of-contents)@@ -20608,7 +20555,7 @@ and scene actor — all reading the same asset, never re-generating or diverging----<a id="sec-135"></a>+<a id="sec-134"></a>> **Source:** `docs/improvement-plans/10-forge-as-paid-service.md` · [↑ table of contents](#table-of-contents)@@ -20681,7 +20628,7 @@ loop works against the real x402 flow.----<a id="sec-136"></a>+<a id="sec-135"></a>> **Source:** `docs/improvement-plans/README.md` · [↑ table of contents](#table-of-contents)@@ -20755,7 +20702,7 @@ If you want **new surface area to show off**, run `04` then `08`.----<a id="sec-137"></a>+<a id="sec-136"></a>> **Source:** `docs/internal/AGENT-WALLET-CUSTODY.md` · [↑ table of contents](#table-of-contents)@@ -21039,7 +20986,7 @@ hub's *Limits & Safety*.----<a id="sec-138"></a>+<a id="sec-137"></a>> **Source:** `docs/internal/AUDIT-2026-06-18.md` · [↑ table of contents](#table-of-contents)@@ -21183,7 +21130,7 @@ These are not agent-doable and remain open in----<a id="sec-139"></a>+<a id="sec-138"></a>> **Source:** `docs/internal/AUDIT-LIVE-BROWSER-2026-06-18.md` · [↑ table of contents](#table-of-contents)@@ -21275,7 +21222,7 @@ Surfaced by a parallel source sweep; all low-risk, additive:----<a id="sec-140"></a>+<a id="sec-139"></a>> **Source:** `docs/internal/AUTO_DRIVE_REPORT.md` · [↑ table of contents](#table-of-contents)@@ -21540,7 +21487,7 @@ were committed by mistake, `git rm` them.----<a id="sec-141"></a>+<a id="sec-140"></a>> **Source:** `docs/internal/AWS_MARKETPLACE_LISTING.md` · [↑ table of contents](#table-of-contents)@@ -21758,7 +21705,7 @@ Once live, the seller profile URL is `https://aws.amazon.com/marketplace/seller-----<a id="sec-142"></a>+<a id="sec-141"></a>> **Source:** `docs/internal/CZ_DEMO_FAILURE_MODES.md` · [↑ table of contents](#table-of-contents)@@ -21910,7 +21857,7 @@ Example:----<a id="sec-143"></a>+<a id="sec-142"></a>> **Source:** `docs/internal/CZ_DEMO_RUNBOOK.md` · [↑ table of contents](#table-of-contents)@@ -22210,7 +22157,7 @@ A: "Testnet is a bit congested right now. On mainnet, this would be instant." (D----<a id="sec-144"></a>+<a id="sec-143"></a>> **Source:** `docs/internal/DEVELOPMENT.md` · [↑ table of contents](#table-of-contents)@@ -22657,7 +22604,7 @@ This runs `node test/gen_test.js`. Tests are script-based and validate model gen----<a id="sec-145"></a>+<a id="sec-144"></a>> **Source:** `docs/internal/HOLDER-CONFIDENCE-ROADMAP.md` · [↑ table of contents](#table-of-contents)@@ -22894,7 +22841,7 @@ don't need to spin anything; we need to make what's true impossible to miss.----<a id="sec-146"></a>+<a id="sec-145"></a>> **Source:** `docs/internal/IBM-WEBINAR-RUNBOOK.md` · [↑ table of contents](#table-of-contents)@@ -22981,7 +22928,7 @@ It's a static page — publish like any other. In this repo, push to **both** re----<a id="sec-147"></a>+<a id="sec-146"></a>> **Source:** `docs/internal/IBM_USER_GROUP.md` · [↑ table of contents](#table-of-contents)@@ -23071,7 +23018,7 @@ sitemap and changelog automatically.----<a id="sec-148"></a>+<a id="sec-147"></a>> **Source:** `docs/internal/ISSUES-ARCHIVE-2026-05.md` · [↑ table of contents](#table-of-contents)@@ -23323,7 +23270,7 @@ Server responded with 429 Too Many Requests. Retrying after Xms delay...----<a id="sec-149"></a>+<a id="sec-148"></a>> **Source:** `docs/internal/ISSUES-ARCHIVE-2026-06.md` · [↑ table of contents](#table-of-contents)@@ -23386,7 +23333,7 @@ work.----<a id="sec-150"></a>+<a id="sec-149"></a>> **Source:** `docs/internal/NEXT.md` · [↑ table of contents](#table-of-contents)@@ -23398,7 +23345,7 @@ _No open items._----<a id="sec-151"></a>+<a id="sec-150"></a>> **Source:** `docs/internal/PAGES.md` · [↑ table of contents](#table-of-contents)@@ -23699,7 +23646,7 @@ A high-level map of what each page does, grouped by capability.----<a id="sec-152"></a>+<a id="sec-151"></a>> **Source:** `docs/internal/PROGRESS.md` · [↑ table of contents](#table-of-contents)@@ -23904,7 +23851,7 @@ Rails:----<a id="sec-153"></a>+<a id="sec-152"></a>> **Source:** `docs/internal/PR_LISTINGS_CHECKLIST.md` · [↑ table of contents](#table-of-contents)@@ -24020,7 +23967,7 @@ You have Alibaba + Google Cloud. Add:----<a id="sec-154"></a>+<a id="sec-153"></a>> **Source:** `docs/internal/SETUP.md` · [↑ table of contents](#table-of-contents)@@ -24106,7 +24053,7 @@ npm run deploy----<a id="sec-155"></a>+<a id="sec-154"></a>> **Source:** `docs/internal/SMOKE_TEST.md` · [↑ table of contents](#table-of-contents)@@ -24191,7 +24138,7 @@ Append new runs as `### Run YYYY-MM-DD (commit <sha>)` sections below this line.----<a id="sec-156"></a>+<a id="sec-155"></a>> **Source:** `docs/internal/SNS_PARTNERSHIP_OUTBOUND.md` · [↑ table of contents](#table-of-contents)@@ -24246,7 +24193,7 @@ Code references:----<a id="sec-157"></a>+<a id="sec-156"></a>> **Source:** `docs/internal/SNS_PARTNERSHIP_PROPOSAL.md` · [↑ table of contents](#table-of-contents)@@ -24375,7 +24322,7 @@ No slides. Working software.----<a id="sec-158"></a>+<a id="sec-157"></a>> **Source:** `docs/internal/STATUS.md` · [↑ table of contents](#table-of-contents)@@ -24394,7 +24341,7 @@ If something is blocked or surprising, add a second line indented with ` └─----<a id="sec-159"></a>+<a id="sec-158"></a>> **Source:** `docs/internal/TODO.md` · [↑ table of contents](#table-of-contents)@@ -24495,7 +24442,7 @@ All 8 finish-features prompts (referral-code uniqueness, speech-provider errors,----<a id="sec-160"></a>+<a id="sec-159"></a>> **Source:** `docs/internal/VALIDATION_DEPLOY.md` · [↑ table of contents](#table-of-contents)@@ -24974,7 +24921,7 @@ Update `REGISTRY_DEPLOYMENTS` object—it should already have entries for all 15----<a id="sec-161"></a>+<a id="sec-160"></a>> **Source:** `docs/internal/agent-computer-buildplan.md` · [↑ table of contents](#table-of-contents)@@ -25584,7 +25531,7 @@ Phase 7 hardening (7.3) and launch (7.4) gate the public release.----<a id="sec-162"></a>+<a id="sec-161"></a>> **Source:** `docs/internal/api-inventory.md` · [↑ table of contents](#table-of-contents)@@ -25791,7 +25738,7 @@ Generated reference of every HTTP endpoint under `/api/`. Paths reflect the exte----<a id="sec-163"></a>+<a id="sec-162"></a>> **Source:** `docs/internal/tutorial-build-pai-site.md` · [↑ table of contents](#table-of-contents)@@ -27078,7 +27025,7 @@ The technique is small. The art is in the tuning. Build it, scroll it, show it t----<a id="sec-164"></a>+<a id="sec-163"></a>> **Source:** `docs/introduction.md` · [↑ table of contents](#table-of-contents)@@ -27304,7 +27251,7 @@ If you want to look at what's already in the hosted platform — browsing agents----<a id="sec-165"></a>+<a id="sec-164"></a>> **Source:** `docs/irl/THREAT-MODEL.md` · [↑ table of contents](#table-of-contents)@@ -27379,7 +27326,7 @@ in a way that drops legitimate discovery, update this file in the same change.----<a id="sec-166"></a>+<a id="sec-165"></a>> **Source:** `docs/js-api.md` · [↑ table of contents](#table-of-contents)@@ -27990,7 +27937,7 @@ window.VIEWER.app.viewer.updateDisplay();----<a id="sec-167"></a>+<a id="sec-166"></a>> **Source:** `docs/launch/go-no-go-2026-06-24.md` · [↑ table of contents](#table-of-contents)@@ -28254,7 +28201,7 @@ items are closeable within hours, not days.----<a id="sec-168"></a>+<a id="sec-167"></a>> **Source:** `docs/layers.md` · [↑ table of contents](#table-of-contents)@@ -28416,7 +28363,7 @@ Versioned CDN bundles are published at `/agent-3d/<version>/agent-3d.js`. Use `l----<a id="sec-169"></a>+<a id="sec-168"></a>> **Source:** `docs/listings.md` · [↑ table of contents](#table-of-contents)@@ -28488,7 +28435,7 @@ Subscribe via RSS to track new listings, integrations, and protocol updates.----<a id="sec-170"></a>+<a id="sec-169"></a>> **Source:** `docs/live-agent-tasks/01-live-trading-desk.md` · [↑ table of contents](#table-of-contents)@@ -28570,7 +28517,7 @@ Append a holder-readable entry to `data/changelog.json` (tag: `feature`) — e.g----<a id="sec-171"></a>+<a id="sec-170"></a>> **Source:** `docs/live-agent-tasks/02-agent-newsroom-anchor.md` · [↑ table of contents](#table-of-contents)@@ -28657,7 +28604,7 @@ Append a holder-readable entry to `data/changelog.json` (tag: `feature`) — e.g----<a id="sec-172"></a>+<a id="sec-171"></a>> **Source:** `docs/live-agent-tasks/03-a2a-commerce-live.md` · [↑ table of contents](#table-of-contents)@@ -28739,7 +28686,7 @@ Append a holder-readable entry to `data/changelog.json` (tag: `feature`) — e.g----<a id="sec-173"></a>+<a id="sec-172"></a>> **Source:** `docs/live-agent-tasks/04-coin-world-tour.md` · [↑ table of contents](#table-of-contents)@@ -28824,7 +28771,7 @@ Append a holder-readable entry to `data/changelog.json` (tag: `feature`) — e.g----<a id="sec-174"></a>+<a id="sec-173"></a>> **Source:** `docs/live-agent-tasks/05-live-avatar-forge.md` · [↑ table of contents](#table-of-contents)@@ -28904,7 +28851,7 @@ Append a holder-readable entry to `data/changelog.json` (tag: `feature`) — e.g----<a id="sec-175"></a>+<a id="sec-174"></a>> **Source:** `docs/live-agent-tasks/06-treasury-autopilot-dashboard.md` · [↑ table of contents](#table-of-contents)@@ -28984,7 +28931,7 @@ Append a holder-readable entry to `data/changelog.json` (e.g. tag `feature`): "A----<a id="sec-176"></a>+<a id="sec-175"></a>> **Source:** `docs/live-agent-tasks/07-watch-agent-work-screenshare.md` · [↑ table of contents](#table-of-contents)@@ -29066,7 +29013,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Watch----<a id="sec-177"></a>+<a id="sec-176"></a>> **Source:** `docs/live-agent-tasks/08-agent-stage-show.md` · [↑ table of contents](#table-of-contents)@@ -29147,7 +29094,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Agents----<a id="sec-178"></a>+<a id="sec-177"></a>> **Source:** `docs/live-agent-tasks/09-sentiment-heatmap-3d.md` · [↑ table of contents](#table-of-contents)@@ -29227,7 +29174,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "A live----<a id="sec-179"></a>+<a id="sec-178"></a>> **Source:** `docs/live-agent-tasks/10-copy-trade-mirror.md` · [↑ table of contents](#table-of-contents)@@ -29308,7 +29255,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Watch----<a id="sec-180"></a>+<a id="sec-179"></a>> **Source:** `docs/live-agent-tasks/11-vanity-address-miner.md` · [↑ table of contents](#table-of-contents)@@ -29390,7 +29337,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Watch----<a id="sec-181"></a>+<a id="sec-180"></a>> **Source:** `docs/live-agent-tasks/12-reputation-arena.md` · [↑ table of contents](#table-of-contents)@@ -29471,7 +29418,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Agents----<a id="sec-182"></a>+<a id="sec-181"></a>> **Source:** `docs/live-agent-tasks/13-live-qa-concierge.md` · [↑ table of contents](#table-of-contents)@@ -29557,7 +29504,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Talk t----<a id="sec-183"></a>+<a id="sec-182"></a>> **Source:** `docs/live-agent-tasks/14-pumpfun-launch-director.md` · [↑ table of contents](#table-of-contents)@@ -29638,7 +29585,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Watch----<a id="sec-184"></a>+<a id="sec-183"></a>> **Source:** `docs/live-agent-tasks/15-pose-studio-live.md` · [↑ table of contents](#table-of-contents)@@ -29721,7 +29668,7 @@ Append a holder-readable entry to `data/changelog.json` (tag `feature`): "Reques----<a id="sec-185"></a>+<a id="sec-184"></a>> **Source:** `docs/live-agent-tasks/16-market-maker-floor-defense.md` · [↑ table of contents](#table-of-contents)@@ -29800,7 +29747,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`, `impro----<a id="sec-186"></a>+<a id="sec-185"></a>> **Source:** `docs/live-agent-tasks/17-agent-memory-diary.md` · [↑ table of contents](#table-of-contents)@@ -29878,7 +29825,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`), e.g.----<a id="sec-187"></a>+<a id="sec-186"></a>> **Source:** `docs/live-agent-tasks/18-multi-agent-collab-task.md` · [↑ table of contents](#table-of-contents)@@ -29960,7 +29907,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`), e.g.----<a id="sec-188"></a>+<a id="sec-187"></a>> **Source:** `docs/live-agent-tasks/19-cinematic-activity-feed.md` · [↑ table of contents](#table-of-contents)@@ -30036,7 +29983,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `improvement`, `f----<a id="sec-189"></a>+<a id="sec-188"></a>> **Source:** `docs/live-agent-tasks/20-spectator-tips-reactions.md` · [↑ table of contents](#table-of-contents)@@ -30117,7 +30064,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`), e.g.----<a id="sec-190"></a>+<a id="sec-189"></a>> **Source:** `docs/live-agent-tasks/21-watch-intent-pool-polish.md` · [↑ table of contents](#table-of-contents)@@ -30201,7 +30148,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`, `impro----<a id="sec-191"></a>+<a id="sec-190"></a>> **Source:** `docs/live-agent-tasks/22-ambient-world-dj.md` · [↑ table of contents](#table-of-contents)@@ -30287,7 +30234,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`) — e.----<a id="sec-192"></a>+<a id="sec-191"></a>> **Source:** `docs/live-agent-tasks/23-portfolio-pnl-hud.md` · [↑ table of contents](#table-of-contents)@@ -30374,7 +30321,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`) — e.----<a id="sec-193"></a>+<a id="sec-192"></a>> **Source:** `docs/live-agent-tasks/24-deploy-to-wall-onboarding.md` · [↑ table of contents](#table-of-contents)@@ -30457,7 +30404,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`, `impro----<a id="sec-194"></a>+<a id="sec-193"></a>> **Source:** `docs/live-agent-tasks/25-showrunner-director.md` · [↑ table of contents](#table-of-contents)@@ -30541,7 +30488,7 @@ Append a holder-readable entry to `data/changelog.json` (tags: `feature`) — e.----<a id="sec-195"></a>+<a id="sec-194"></a>> **Source:** `docs/live-agent-tasks/README.md` · [↑ table of contents](#table-of-contents)@@ -30589,7 +30536,7 @@ Pick a file, hand its full contents to an agent as the task. The prompt is the s----<a id="sec-196"></a>+<a id="sec-195"></a>> **Source:** `docs/live-agent-tasks/_TEMPLATE.md` · [↑ table of contents](#table-of-contents)@@ -30660,7 +30607,7 @@ Append a holder-readable entry to `data/changelog.json` (tags from: feature, imp----<a id="sec-197"></a>+<a id="sec-196"></a>> **Source:** `docs/make-your-agent.md` · [↑ table of contents](#table-of-contents)@@ -30751,7 +30698,7 @@ Changes take effect immediately — no republishing needed for most settings.----<a id="sec-198"></a>+<a id="sec-197"></a>> **Source:** `docs/marketplace.md` · [↑ table of contents](#table-of-contents)@@ -30842,7 +30789,7 @@ their chosen `currency_mint`; the platform promotes no coin other than $THREE.----<a id="sec-199"></a>+<a id="sec-198"></a>> **Source:** `docs/mcp-3d-studio.md` · [↑ table of contents](#table-of-contents)@@ -31031,7 +30978,7 @@ npx @modelcontextprotocol/inspector http://localhost:3000/api/mcp-3d----<a id="sec-200"></a>+<a id="sec-199"></a>> **Source:** `docs/mcp-agent.md` · [↑ table of contents](#table-of-contents)@@ -31107,7 +31054,7 @@ npx @modelcontextprotocol/inspector http://localhost:3000/api/mcp-agent----<a id="sec-201"></a>+<a id="sec-200"></a>> **Source:** `docs/mcp-studio.md` · [↑ table of contents](#table-of-contents)@@ -31213,7 +31160,7 @@ All optional — sensible production defaults:----<a id="sec-202"></a>+<a id="sec-201"></a>> **Source:** `docs/mcp-tools.md` · [↑ table of contents](#table-of-contents)@@ -31327,7 +31274,7 @@ promote no specific token.----<a id="sec-203"></a>+<a id="sec-202"></a>> **Source:** `docs/mcp-x402-bazaar.md` · [↑ table of contents](#table-of-contents)@@ -31402,7 +31349,7 @@ npx @modelcontextprotocol/inspector http://localhost:3000/api/mcp-bazaar----<a id="sec-204"></a>+<a id="sec-203"></a>> **Source:** `docs/mcp.md` · [↑ table of contents](#table-of-contents)@@ -31502,6 +31449,10 @@ npx -y @three-ws/signals-mcp # discover signal feeds by proven edge; ranknpx -y @three-ws/alerts-mcp # pump.fun alert rules across in-app / webhook / Telegramnpx -y @three-ws/kol-mcp # per-wallet KOL portfolio + trade analytics+# Autonomous sniper (runs locally against your own wallet/RPC)+npx -y @three-ws/agent-sniper mcp # arm pump.fun snipe strategies, fire manual buys, manage positions+npx -y @three-ws/agent-sniper serve # the same engine as an x402-paid HTTP API (POST /strategies, /snipe)+# Account, inbox & discoverynpx -y @three-ws/notifications-mcp # inbox, read state, delivery prefs & Web Push devicesnpx -y @three-ws/billing-mcp # plan quotas, metered usage, invoices & receipts@@ -31942,7 +31893,7 @@ Restart Claude Code after editing `.mcp.json` so the new server config is picked----<a id="sec-205"></a>+<a id="sec-204"></a>> **Source:** `docs/memory.md` · [↑ table of contents](#table-of-contents)@@ -32333,7 +32284,7 @@ In `ipfs` mode without encryption, treat the memory as semi-public. Don't store----<a id="sec-206"></a>+<a id="sec-205"></a>> **Source:** `docs/mint-mark.md` · [↑ table of contents](#table-of-contents)@@ -32465,7 +32416,7 @@ No other mint should appear in tests, fixtures, or documentation.----<a id="sec-207"></a>+<a id="sec-206"></a>> **Source:** `docs/money-feed.md` · [↑ table of contents](#table-of-contents)@@ -32564,10 +32515,11 @@ and millisecond `ts`.- [Circulation engine](circulation-engine.md) — the largest producer of activity.- [Autonomous x402 loop](autonomous-x402.md) — treasury-paid intel purchases.- [Agent wallets](agent-wallets.md) — how spends are gated before they're recorded.+- [x402 revenue & receipts](x402-revenue.md) — the *other* direction: money paid **to** our endpoints (`x402_audit_log`), not agent spend.----<a id="sec-208"></a>+<a id="sec-207"></a>> **Source:** `docs/multi-agent.md` · [↑ table of contents](#table-of-contents)@@ -32896,7 +32848,7 @@ To extend this into a full turn-based scene, add a `brain` attribute to Mira wit----<a id="sec-209"></a>+<a id="sec-208"></a>> **Source:** `docs/nvidia-models.md` · [↑ table of contents](#table-of-contents)@@ -33089,7 +33041,7 @@ Probe transcripts for every lane — request/response shapes, limits, verified b----<a id="sec-210"></a>+<a id="sec-209"></a>> **Source:** `docs/onboarding/ONBOARDING-PLAN-2026-06-19.md` · [↑ table of contents](#table-of-contents)@@ -33186,7 +33138,7 @@ dashboard → the pill reads the correct core count. Save a persona to an agent----<a id="sec-211"></a>+<a id="sec-210"></a>> **Source:** `docs/onchain-agents.md` · [↑ table of contents](#table-of-contents)@@ -33483,7 +33435,7 @@ A confirmed canary asset shows `inCollection=true`, `royalty=500bps`, `attrs=11`----<a id="sec-212"></a>+<a id="sec-211"></a>> **Source:** `docs/ops/forge-multiview-migration-handoff.md` · [↑ table of contents](#table-of-contents)@@ -33569,7 +33521,7 @@ So the documented commands are known-good; the only remaining variable is prod c----<a id="sec-213"></a>+<a id="sec-212"></a>> **Source:** `docs/ops/gcp-model-workers.md` · [↑ table of contents](#table-of-contents)@@ -33750,7 +33702,7 @@ curl -sS -o /dev/null -w '%{http_code}\n' \----<a id="sec-214"></a>+<a id="sec-213"></a>> **Source:** `docs/ops/redis.md` · [↑ table of contents](#table-of-contents)@@ -34027,6 +33979,125 @@ curl -s "https://three.ws/api/builds?mint=<mint>" | jq '.builds | length'---+<a id="sec-214"></a>++> **Source:** `docs/package-extraction.md` · [↑ table of contents](#table-of-contents)++# Package extraction — breaking the monorepo into standalone repos++We are graduating the reusable packages out of the `three.ws` monorepo into their+own GitHub repos that publish to npm (or, for the VS Code extension, the+Marketplace) independently. This is the playbook. **We start with the x402 family.**++## Why++The x402 packages (`@three-ws/x402-*`) are general-purpose — a buyer-side fetch+wrapper, a seller-side core, MCP servers, payment modals. They are useful far+beyond three.ws, they version on their own cadence, and bundling them in a 60++directory monorepo hides their issue tracker, inflates clone size, and couples+their releases to unrelated platform commits. Standalone repos fix all four.++## Decisions (locked)++- **One repo per package** (polyrepo), not a shared x402 monorepo.+- **History preserved** via `git filter-repo --subdirectory-filter` — blame and+ authorship carry across.+- **Scope/owner unchanged**: keep publishing as `@three-ws/*`, host under+ `github.com/nirholas`. No renames, no broken installs.++## Tooling++Two scripts in [`scripts/`](../scripts) do the work:++| Script | Who runs it | What it does |+|---|---|---|+| [`extract-package.sh`](../scripts/extract-package.sh) | anyone | Splits `<prefix>` into a standalone repo (history at root), rewrites `repository`/`bugs`, adds the publish CI workflow, and verifies it installs, builds, tests, and packs. |+| [`publish-extracted.sh`](../scripts/publish-extracted.sh) | **owner only** | Creates the GitHub repo, pushes the history, and tags the version to trigger the publish workflow. Needs the owner's `gh` auth + the repo's publish-token secret. |++```bash+# 1. build the standalone repo (deterministic, reads committed monorepo history)+scripts/extract-package.sh packages/x402-fetch x402-fetch nirholas++# 2. ship it (owner creds: gh auth as the namespace owner, then set NPM_TOKEN)+scripts/publish-extracted.sh x402-fetch nirholas+```++`extract-package.sh` reads **committed** history — commit any source fixes to the+monorepo first, then extract.++## x402 roster++All seven extract cleanly with full history. Six are npm packages already live+under `@three-ws/*`; `vscode-x402` targets the VS Code Marketplace.++| Package | Monorepo path | npm (live) | Local ver | Build | Tests | Notes |+|---|---|---|---|---|---|---|+| `@three-ws/x402-fetch` | `packages/x402-fetch` | 1.0.1 | 1.0.1 | vite | 7 pass | buyer-side fetch wrapper |+| `@three-ws/x402-server` | `packages/x402-server` | 0.1.0 | 0.1.0 | — | pass | seller-side core |+| `@three-ws/x402-mcp` | `packages/x402-mcp` | 0.2.0 | 0.2.0 | ✓ | pass | MCP server |+| `@three-ws/ibm-x402-mcp` | `packages/ibm-x402-mcp` | 1.1.0 | 1.1.0 | ✓ | pass | IBM MCP variant |+| `@three-ws/x402-modal` | `x402-modal-sdk` | 0.2.0 | 0.2.0 | esbuild | pass | payment modal SDK |+| `@three-ws/x402-payment-modal` | `x402-payment-modal` | 1.1.0 | **1.2.0** | esbuild | 14 pass | publishes 1.2.0 (deps fixed — see below) |+| `@three-ws/vscode-x402` | `packages/vscode-x402` | — | 0.1.0 | esbuild | — | **Marketplace**, not npm; needs name/publisher fix |++### Fixes the split surfaced (already applied to the monorepo)++- **`x402-payment-modal/build.mjs`** imported esbuild via a hardcoded+ `../node_modules/esbuild/lib/main.js` — coupled to the monorepo's hoisted+ layout, broken in a standalone repo. Changed to a bare `import 'esbuild'`,+ which resolves in both.+- **`x402-payment-modal/package.json`** shipped a `server/` adapter importing+ `@solana/web3.js`, `@solana/spl-token`, and `express` with **zero declared+ dependencies** — the published package was broken for anyone using the server+ subpath. Added them as optional `peerDependencies` (keeps the browser install+ lean) plus the Solana pair as `devDependencies` so tests/CI run.++### vscode-x402 — extra step before Marketplace publish++VS Code extensions cannot use a scoped `name`. Before `vsce publish`:++- set `name` to a plain id (e.g. `vscode-x402`),+- add a `publisher` field matching a registered Marketplace publisher,+- the CI workflow already uses `vsce publish` + `ovsx publish` (Open VSX) and+ expects `VSCE_PAT` / `OVSX_PAT` secrets.++## Owner handoff — the two steps that need credentials++Everything up to the GitHub/npm boundary is automated and verified. The final two+steps need the owner's credentials and cannot run from a collaborator session:++1. **Create + push each repo** (`nirholas` is a personal account; only its owner+ can create repos in that namespace). Each line is `<monorepo-path> <repo-name>`:+ ```bash+ while read -r path repo; do+ scripts/extract-package.sh "$path" "$repo" nirholas+ scripts/publish-extracted.sh "$repo" nirholas+ done <<'PKGS'+ packages/x402-fetch x402-fetch+ packages/x402-server x402-server+ packages/x402-mcp x402-mcp+ packages/ibm-x402-mcp ibm-x402-mcp+ x402-modal-sdk x402-modal+ x402-payment-modal x402-payment-modal+ PKGS+ ```+ (`vscode-x402` is handled separately — see the Marketplace note above.)+2. **Set the publish-token secret** on each new repo so its workflow can+ authenticate to npm (`NPM_TOKEN`) or the Marketplace (`VSCE_PAT`/`OVSX_PAT`).++Already-published versions (e.g. x402-fetch 1.0.1) republish only after a version+bump — the workflow tags and publishes the version in `package.json`, so bump it+when there's something new to ship. `x402-payment-modal` is at an unpublished+1.2.0 and will publish on first tag.++## After a package is extracted++The monorepo copy can stay (the platform still imports it locally) or be replaced+with the published dependency. That cutover is tracked per-package and is **not**+part of the extraction itself — extract and publish first, swap the import later.++---+<a id="sec-215"></a>> **Source:** `docs/pay-skills-listing.md` · [↑ table of contents](#table-of-contents)@@ -46483,6 +46554,7 @@ If you're here to create and share agents rather than write code, follow this pa- **Just exploring?** → Open [Discover](/discover) to browse agents others have built- **Creating your first agent** → Go to [/start](/start) — a 5-step wizard walks you through it- **Developer docs** → Read the [Introduction](./introduction.md) for the full technical picture+- **Building UI?** → [ui-juice](./ui-juice.md) is the shared game-feel library (count-ups, sparklines, ring gauges, live dots, the "it shipped" ripple) every surface animates with---@@ -47692,7 +47764,7 @@ payment you get a structured **`PaymentRequired`** — this is the correct, expe"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp", // Solana mainnet"amount": "1000", // atomic USDC (6 decimals) → $0.001"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v", // USDC- "payTo": "BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN"+ "payTo": "wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU"}]},"content": [ /* the JSON envelope, plus a plain-language explanation of the price + how to pay */ ]@@ -48228,7 +48300,7 @@ Common to every challenge: `isError: true` (required by the @x402/mcp client toauto-detect-and-pay — it is the x402 contract, **not** a failure), `x402Version: 2`,`asset` = `EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v` (USDC), `network` =`solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp` (Solana mainnet), `payTo` =-`BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN` (platform default — the unsubstituted+`wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU` (platform default — the unsubstituted`${MCP_SVM_PAYMENT_ADDRESS}` placeholder bug is fixed), plus an appended plain-language line:*"Payment required — this is the EXPECTED response for a paid tool, not an error…"*.@@ -48264,14 +48336,14 @@ Representative raw challenge (`text_to_avatar`):"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp","amount": "150000","asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",- "payTo": "BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN",+ "payTo": "wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU","maxTimeoutSeconds": 60,"extra": { "name": "USDC", "decimals": 6, "feePayer": "2wKupLR9q6wXYppw8Gr2NvWxKBUqm4PPJKkQfoxHDBg4" }}]},"content": [{ "type": "text", "text": "{…the x402 envelope as JSON…}" },- { "type": "text", "text": "Payment required — this is the EXPECTED response for a paid tool, not an error. Calling \"text_to_avatar\" costs $0.15 in USDC on Solana (paid to BUrwd1nK6tFeeJMyzRHDo6AuVbnSfUULfvwq21X93nSN). To execute it, supply an x402 \"exact\" payment in _meta[\"x402/payment\"] and call again, or set the reviewer entitlement (MCP_REVIEW_MODE) to run it without payment. Full machine-readable requirements are in structuredContent.accepts." }+ { "type": "text", "text": "Payment required — this is the EXPECTED response for a paid tool, not an error. Calling \"text_to_avatar\" costs $0.15 in USDC on Solana (paid to wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU). To execute it, supply an x402 \"exact\" payment in _meta[\"x402/payment\"] and call again, or set the reviewer entitlement (MCP_REVIEW_MODE) to run it without payment. Full machine-readable requirements are in structuredContent.accepts." }]}```@@ -64506,6 +64578,162 @@ The web component is the most robust integration point the platform offers. Buil<a id="sec-354"></a>+> **Source:** `docs/ui-juice.md` · [↑ table of contents](#table-of-contents)++# ui-juice — the shared game-feel library++`src/ui-juice.js` (+ `src/ui-juice.css`) is the one place the platform keeps its+**interaction primitives**: count-ups, directional flashes, live-feed row enters,+sparklines, ring gauges, FLIP reorders, SSE status dots, and the single "it+shipped" ripple. The vocabulary was proven on the `/swarms` page and extracted so+every surface animates the same way instead of reinventing it.++Three guarantees hold for every export:++- **Token-driven.** Durations and easings come from the motion ladder in+ `public/tokens.css` (`--duration-*`, `--ease-*`). No raw millisecond literals.+- **Reduced-motion-safe.** That token file zeroes every `--duration-*` under+ `@media (prefers-reduced-motion: reduce)`. `reducedMotion()` reads the computed+ token, so each primitive lands on its correct final state with no animation —+ automatically, with an explicit JS fallback path as belt-and-braces.+- **Real values only.** These are transition helpers over real numbers/series.+ They never fabricate or sample inputs.++## Install / use++Pull the styles into a surface's CSS and the helpers into its JS:++```css+/* src/<surface>.css — first line */+@import './ui-juice.css';+```++```js+// src/<surface>.js+import { countUp, flashValue, sparkline, rippleOnce } from './ui-juice.js';+```++No build step or HTML change is required — Vite resolves both the CSS `@import`+and the ES module import. The classes the helpers attach all live under the+`juice-*` namespace.++## Exports++### `countUp(el, from, to, opts?)`+Animate a number between two real values via `requestAnimationFrame`, preserving+the caller's formatting. Cancels any in-flight count-up on the same element.+Reduced motion → final value instantly. Stashes the target on `el.dataset.juiceVal`.++```js+countUp(volEl, 1200, 1875, { format: (n) => '$' + Math.round(n).toLocaleString() });+```++`opts`: `format` (fn), `duration` (ms), `ease` (fn), `token` (duration token name).++### `updateValue(el, to, format, opts?)`+Count from the element's last tracked value to a new one **and** flash in the+direction of change — the swarms tile-update pattern. `opts.flash` defaults true.++```js+updateValue(balEl, newBalance, (n) => n.toFixed(4) + ' SOL'); // counts + tints up/down+```++### `flashValue(el, direction?)`+Directional tint pulse, then settle. `'up'` → success, `'down'` → danger,+`'neutral'` → surface. No-op under reduced motion.++```js+flashValue(priceEl, newPrice > oldPrice ? 'up' : 'down');+```++### `enterRow(el)` / `enterStagger(els, opts?)`+Slide+fade a freshly-inserted row in from the top (live logs/feeds). `enterStagger`+applies an index-based, capped delay across a list. Reduced motion → no-op.++```js+list.prepend(row); enterRow(row);+enterStagger(grid.children, { step: 28, max: 320 });+```++### `sparkline(values, opts?)` / `sparklinePath(values, w, h, pad?)`+`sparkline` returns an inline SVG string for a real numeric series — net-positive+vs net-negative coloring via tokens, optional animated draw and final-point dot.+`sparklinePath` is the pure geometry core (unit-tested).++```js+metaEl.innerHTML = sparkline(priceHistory, { width: 140, height: 36, fill: true, animate: true });+```++`opts`: `width`, `height`, `fill`, `dot` (default true), `animate`, `stroke`.++### `ring(pct, opts?)` / `ringGeometry(pct, size, stroke)` / `playRings(scope)`+`ring` renders an SVG arc gauge filling to a real percentage with a centered+label. Render with `animate:true`, insert, then call `playRings(container)` to+sweep the fill from empty to its real offset. `ringGeometry` is the pure core.++```js+el.innerHTML = ring(progressPct, { size: 64, label: progressPct + '%' });+playRings(el);+```++`opts`: `size`, `stroke`, `label`, `color`, `track`, `animate`.++### `flipReorder(container, keyFn)` / `reorderedKeys(before, after)`+FLIP-animate a list to new positions after a re-sort. Capture before the DOM+mutation, play after. `reorderedKeys` is the pure "which keys moved" diff.++```js+const flip = flipReorder(list, (el) => el.dataset.id);+flip.capture();+list.replaceChildren(...sorted); // re-render+flip.play();+```++### `liveDot(state?, opts?)` / `setLiveDot(el, state, label?)`+Markup + in-place updater for an SSE status indicator mirroring the swarms+`.sw-live` vocabulary. States: `live` | `connecting` | `idle` | `error`.++```js+header.insertAdjacentHTML('beforeend', liveDot('connecting'));+es.addEventListener('hello', () => setLiveDot(header, 'live'));+```++### `rippleOnce(el)`+A single restrained accent ripple along an element's edge — the "it shipped" beat+for a real success (a launch confirmed, an event fired). No confetti, no-op under+reduced motion.++```js+rippleOnce(launchCard); // after the deploy request resolves ok+```++## Helpers++- `durationMs(token, fallback?)` — resolve a `--duration-*` token to ms from live+ computed styles.+- `reducedMotion()` — true when motion should be suppressed (token is 0, or the+ reduced-motion media query matches).++## Tested++`tests/ui-juice.test.js` covers the pure cores in the default `node` vitest env:+count-up interpolation/formatting and the instant path, `sparklinePath` geometry,+`ringGeometry` arc math, `reorderedKeys` diffing, and `liveDot` markup/escaping.++```+npx vitest run tests/ui-juice.test.js+```++## First consumer++`/swarms` (`src/swarms.js`) is the reference consumer — its inline `flash()` now+delegates to `flashValue`, proving the API and removing duplication. New surfaces+should reach for these primitives rather than re-rolling RAF loops.++---++<a id="sec-355"></a>+> **Source:** `docs/ux-flows/01-onboarding-creation.md` · [↑ table of contents](#table-of-contents)# Onboarding & Agent Creation@@ -64710,7 +64938,7 @@ The web component is the most robust integration point the platform offers. Buil----<a id="sec-355"></a>+<a id="sec-356"></a>> **Source:** `docs/ux-flows/02-forge-text-to-3d.md` · [↑ table of contents](#table-of-contents)@@ -64880,7 +65108,7 @@ Routing facts (from `vercel.json`):----<a id="sec-356"></a>+<a id="sec-357"></a>> **Source:** `docs/ux-flows/03-3d-editing-viewer.md` · [↑ table of contents](#table-of-contents)@@ -65086,7 +65314,7 @@ Routing summary (from `vite.config.js`):----<a id="sec-357"></a>+<a id="sec-358"></a>> **Source:** `docs/ux-flows/04-embed-widget-studio.md` · [↑ table of contents](#table-of-contents)@@ -65262,7 +65490,7 @@ Routing recap (from `vercel.json`):----<a id="sec-358"></a>+<a id="sec-359"></a>> **Source:** `docs/ux-flows/05-discovery-social.md` · [↑ table of contents](#table-of-contents)@@ -65533,7 +65761,7 @@ Routing recap (from `vercel.json`):----<a id="sec-359"></a>+<a id="sec-360"></a>> **Source:** `docs/ux-flows/06-marketplace-skills.md` · [↑ table of contents](#table-of-contents)@@ -65747,7 +65975,7 @@ Routing facts confirmed in `vercel.json`:----<a id="sec-360"></a>+<a id="sec-361"></a>> **Source:** `docs/ux-flows/07-crypto-trading-analytics.md` · [↑ table of contents](#table-of-contents)@@ -66096,7 +66324,7 @@ coin-intel, pump-visualizer and pump-live — adding a coin on any surface shows----<a id="sec-361"></a>+<a id="sec-362"></a>> **Source:** `docs/ux-flows/08-coin-launch-wallets.md` · [↑ table of contents](#table-of-contents)@@ -66369,7 +66597,7 @@ real Solana/EVM RPC, pump.fun, and x402 — no mocks.----<a id="sec-362"></a>+<a id="sec-363"></a>> **Source:** `docs/ux-flows/09-x402-agent-commerce.md` · [↑ table of contents](#table-of-contents)@@ -66710,7 +66938,7 @@ choreographed two-agent narrative driven by Server-Sent Events.----<a id="sec-363"></a>+<a id="sec-364"></a>> **Source:** `docs/ux-flows/10-chat-brain-labs.md` · [↑ table of contents](#table-of-contents)@@ -66952,7 +67180,7 @@ modules. Routes resolved via `vercel.json` rewrites.----<a id="sec-364"></a>+<a id="sec-365"></a>> **Source:** `docs/ux-flows/11-account-dashboard.md` · [↑ table of contents](#table-of-contents)@@ -67171,7 +67399,7 @@ Shared auth concepts:----<a id="sec-365"></a>+<a id="sec-366"></a>> **Source:** `docs/ux-flows/12-home-and-content.md` · [↑ table of contents](#table-of-contents)@@ -67359,7 +67587,7 @@ All `/.well-known/*` and `/openapi.json` / `/sitemap.xml` responses are JSON/XML----<a id="sec-366"></a>+<a id="sec-367"></a>> **Source:** `docs/validation.md` · [↑ table of contents](#table-of-contents)@@ -67707,7 +67935,7 @@ The toggle's CSS class reflects the highest severity: `level-0` (errors), `level----<a id="sec-367"></a>+<a id="sec-368"></a>> **Source:** `docs/viewer.md` · [↑ table of contents](#table-of-contents)@@ -68077,7 +68305,7 @@ State is persisted to `localStorage` per agent ID when `attachScenePrefs(agentId----<a id="sec-368"></a>+<a id="sec-369"></a>> **Source:** `docs/web-component.md` · [↑ table of contents](#table-of-contents)@@ -69021,7 +69249,7 @@ defineElement('my-agent');----<a id="sec-369"></a>+<a id="sec-370"></a>> **Source:** `docs/widget-api.md` · [↑ table of contents](#table-of-contents)@@ -69220,7 +69448,7 @@ If you have multiple widgets and want to coordinate them (sync camera, broadcast----<a id="sec-370"></a>+<a id="sec-371"></a>> **Source:** `docs/widget-studio.md` · [↑ table of contents](#table-of-contents)@@ -69473,7 +69701,7 @@ You can override these freely in the iframe `width` and `height` attributes. Add----<a id="sec-371"></a>+<a id="sec-372"></a>> **Source:** `docs/widgets.md` · [↑ table of contents](#table-of-contents)@@ -69981,7 +70209,7 @@ Need to drive a widget from the parent page — change the camera, play an anima----<a id="sec-372"></a>+<a id="sec-373"></a>> **Source:** `docs/x-spaces.md` · [↑ table of contents](#table-of-contents)@@ -70210,7 +70438,7 @@ One-click options: Railway, Render (see buttons in [`xspace-agent/README.md`](..----<a id="sec-373"></a>+<a id="sec-374"></a>> **Source:** `docs/x402-buyer.md` · [↑ table of contents](#table-of-contents)@@ -70312,7 +70540,7 @@ set) back into the payment so attribution survives the round trip.----<a id="sec-374"></a>+<a id="sec-375"></a>> **Source:** `docs/x402-endpoints.md` · [↑ table of contents](#table-of-contents)@@ -70398,6 +70626,7 @@ for to feed the oracle and sniper.| `/api/x402/mint-to-mesh` | per call | Token/mint → 3D mesh; `-batch` variant $0.05. || `/api/x402/model-check`, `/api/x402/model-validation-sweep` | $0.001 | Validate a GLB / sweep a batch. || `/api/x402/glb-optimization-report` | per call | GLB size/optimization analysis. |+| `/api/x402/avatar-optimize-batch` | $0.001 | Batch optimization pass over the top N avatars. || `/api/x402/animation-download`, `/api/x402/asset-download` | per asset | Paid asset/animation delivery. |## Launch, naming & utility endpoints@@ -70410,17 +70639,41 @@ for to feed the oracle and sniper.| `/api/x402/did` | per call | Decentralized identifier resolution. || `/api/x402/billboard` | $0.05 | Post to the on-platform billboard. || `/api/x402/dance-tip` | $0.001 | Tip a club performer. |+| `/api/x402/club-cover` | $0.01 | Pole-club door cover charge; a paid wallet re-enters free for the pass window. || `/api/x402/cosmetic-purchase` | per item | Buy a cosmetic. |+| `/api/x402/tutor` | $0.01 / answer | Paid tutoring; a session accumulates a running tab across answers. || `/api/x402/spend-session` | $0.01 | Open a metered spend session. || `/api/x402/llm-proxy` | per call | Paid LLM proxy. |+| `/api/x402/notify` | $0.001 | Notification gateway (Telegram + the autonomous loop's `canary` heartbeat lane). |+| `/api/x402/wallet-connect` | $0.001 | Wallet-bridge connect probe. |+| `/api/x402/permit2-paid-demo` | $0.001 | Reference endpoint for the Permit2 / EIP-2612 gasless-approval scheme. || `/api/x402/cross-chain`, `/api/x402/network-cost` | per call | Cross-chain cost comparison. || `/api/x402/*-health`, `/api/x402/rate-limit-probe`, `/api/x402/schema-check` | $0.001 | Paid health/diagnostic probes used by the autonomous loop. |> Prices above marked "per call / per tier / per source" are computed by the> handler rather than a flat default; check the handler and any-> `X402_PRICE_<SLUG>` override for the exact figure in your deployment. Every-> flat default is listed in [`api/_lib/x402-prices.js`](../api/_lib/x402-prices.js)-> and overridable as described above.+> `X402_PRICE_<SLUG>` override for the exact figure in your deployment. Each+> endpoint declares its own default inline via+> `priceFor('<slug>', '<atomics>')` (resolver:+> [`api/_lib/x402-prices.js`](../api/_lib/x402-prices.js)) — grep a handler for+> `priceAtomics` / `priceFor(` to see its figure — and every default is+> overridable with `X402_PRICE_<SLUG>` as described above.++## Observability, revenue & ops endpoints++Several endpoints in `api/x402/` report on the platform itself. The paid ones+charge a token fee (they are real, sellable observability products an agent can+consume); a few are **free** read surfaces that happen to live in the same+directory.++| Endpoint | Default | Returns |+|---|---|---|+| `/api/x402/analytics` | $0.005 | Platform reports — pick `report=revenue` for the x402 endpoint-revenue summary (see [x402 revenue & receipts](x402-revenue.md)), plus club and listing analytics. |+| `/api/x402/mcp-tool-catalog` | per call | Snapshot of every MCP tool — name, paid/free, price, input shape — and a diff vs the last snapshot (added / removed / re-priced tools). |+| **Free read surfaces** | — | — |+| `/api/x402/my-receipts` | free | A buyer's own settled receipts, gated by a wallet signature (SIWX) rather than a payment. |+| `/api/x402/mcp-perf` | free | MCP tool latency dashboard data. |+| `/api/x402/service-pricing-report` | free | Tracked upstream-dependency price catalog + active price-increase/-drop alerts. |## $THREE only@@ -70433,11 +70686,361 @@ input and do not promote any specific token.- [x402 protocol](x402.md) — the challenge/settle mechanics.- [x402 buyer client](x402-buyer.md) — how to pay these endpoints in code.+- [x402 revenue & receipts](x402-revenue.md) — where settled payments are recorded and how to read endpoint revenue.+- [Autonomous x402 loop](autonomous-x402.md) — the scheduled buyer that drives volume through these endpoints.- [MCP tools](mcp-tools.md) — the same capabilities exposed as paid MCP tools.----<a id="sec-375"></a>+<a id="sec-376"></a>++> **Source:** `docs/x402-revenue.md` · [↑ table of contents](#table-of-contents)++# x402 Revenue & Receipts++Every time someone pays one of three.ws's [paid endpoints](x402-endpoints.md), the+settlement is recorded. This page is the reference for **where that money is+recorded**, how to read endpoint revenue, and how the durable receipt is issued to+the buyer.++> Source: settlement persistence+> [`api/_lib/x402/audit-log.js`](../api/_lib/x402/audit-log.js), receipt storage+> [`api/_lib/x402/receipt-storage.js`](../api/_lib/x402/receipt-storage.js),+> revenue report [`api/_lib/x402/revenue-analytics.js`](../api/_lib/x402/revenue-analytics.js),+> served by [`api/x402/analytics.js`](../api/x402/analytics.js).++---++## Two directions of money — don't confuse them++three.ws records value moving in **two opposite directions**, in two different+tables. They never overlap, and mixing them up will double-count your numbers.++| Direction | Meaning | Table | Surfaced by |+|---|---|---|---|+| **Revenue IN** | Money paid **to** our endpoints for using them | `x402_audit_log` | `/api/x402/analytics?report=revenue` (this page) |+| **Spend OUT** | Money an agent's wallet **paid out** (tips, trades, agent-to-agent x402) | `agent_custody_events` | The [Money Pulse](money-feed.md) at `/api/pulse` |++The [Money Pulse](money-feed.md) shows the agent economy — one agent paying+another, tips, launches. **This page is the other side of the ledger:** the+platform's own endpoint revenue. A call to `/api/x402/token-intel` writes a+**revenue** row in `x402_audit_log`; it is not an `agent_custody_events` spend and+does not appear in the Money Pulse.++---++## The settlement flow++When a buyer pays a paid endpoint, the shared handler+([`api/_lib/x402-paid-endpoint.js`](../api/_lib/x402-paid-endpoint.js)) runs:++1. **Challenge** — no `X-PAYMENT` header → respond `402 Payment Required` with the+ accepted networks, asset, price, and pay-to address.+2. **Verify** — the buyer retries with an `X-PAYMENT` header; the facilitator's+ `/verify` confirms the signed payment matches the requirement+ ([`api/_lib/x402-spec.js`](../api/_lib/x402-spec.js) `verifyPayment()`).+3. **Settle** — the facilitator's `/settle` (or, for BSC, a direct on-chain+ `pay(bytes32)` contract call) moves the USDC (`settlePayment()`).+4. **Persist** — `logPaymentEvent()` writes one row to `x402_audit_log`, and a+ signed receipt is stored in `x402_receipts`.+5. **Run + respond** — the endpoint logic executes and returns the result.++Steps 4's writes are fire-and-forget (`queueMicrotask`) with a connection-level+retry, so a transient DB blip never silently drops a settled payment.++---++## The revenue ledger — `x402_audit_log`++This is the **single source of truth for money flowing through our endpoints.**+Every payment event lands here — settled, failed, and access-control events alike.++```sql+CREATE TABLE x402_audit_log (+ id UUID PRIMARY KEY DEFAULT gen_random_uuid(),+ event_type TEXT NOT NULL, -- 'payment_settled' | 'payment_failed'+ -- | 'siwx_grant' | 'siwx_access' | 'bypass_granted'+ route TEXT NOT NULL, -- e.g. '/api/x402/token-intel'+ resource_url TEXT,+ payer TEXT, -- wallet address+ network TEXT, -- e.g. 'solana' | 'base' | 'bsc'+ amount_atomics TEXT, -- USDC atomics (6 decimals): '10000' = $0.01+ asset TEXT,+ tx_hash TEXT,+ settlement_status TEXT, -- 'success' | 'failed'+ facilitator_response JSONB,+ duration_ms INTEGER,+ ip_address TEXT,+ user_agent TEXT,+ metadata JSONB,+ created_at TIMESTAMPTZ DEFAULT NOW()+);+```++Schema:+[`api/_lib/migrations/2026-05-27-x402-audit-log.sql`](../api/_lib/migrations/2026-05-27-x402-audit-log.sql).+Filter `event_type = 'payment_settled'` for revenue; `amount_atomics` is USDC at 6+decimals, so divide by `1e6` for dollars.++### Reading revenue directly++Total settled revenue and unique payers over the last 24h:++```sql+SELECT+ count(*) AS payments,+ count(DISTINCT payer) AS unique_payers,+ sum((amount_atomics)::numeric / 1e6) AS gross_usd+FROM x402_audit_log+WHERE event_type = 'payment_settled'+ AND created_at >= now() - interval '24 hours';+```++Revenue by endpoint, last 7 days, top 10:++```sql+SELECT+ route,+ count(*) AS calls,+ sum((amount_atomics)::numeric / 1e6) AS gross_usd+FROM x402_audit_log+WHERE event_type = 'payment_settled'+ AND created_at >= now() - interval '7 days'+GROUP BY route+ORDER BY gross_usd DESC+LIMIT 10;+```++---++## The revenue report — `/api/x402/analytics`++You don't have to query SQL. The `analytics` endpoint serves the same numbers,+pre-aggregated. It is itself a [paid endpoint](x402-endpoints.md) ($0.005 default)+— pass `report=revenue` and a `period`:++```bash+# After settling the 402 challenge (see the x402 buyer client doc), retry with:+curl -s "https://three.ws/api/x402/analytics?report=revenue&period=24h" \+ -H "X-PAYMENT: <settled-payment-header>"+```++`report` accepts: `revenue`, `x402_volume`, `clubs`, `marketplace`,+`agent_leaderboard`, `sniper_trades`, `user_activity`. `period` accepts `1h`,+`6h`, `24h`, `7d`, `30d`, `all`.++The `revenue` report shape+([`revenue-analytics.js`](../api/_lib/x402/revenue-analytics.js)):++```json+{+ "report": "revenue",+ "period": "24h",+ "since": "2026-06-29T00:00:00.000Z",+ "generated_at": "2026-06-30T00:00:00.000Z",+ "totals": {+ "gross_usd": 12.34,+ "net_platform_usd": 11.90,+ "settlement_fee_usd": 0.44,+ "total_payments": 247,+ "failed_payments": 3,+ "unique_payers": 18,+ "avg_payment_usd": 0.05+ },+ "fee_splits": {+ "gross_usd": 12.34,+ "settlement_fee_usd": 0.44,+ "net_platform_usd": 11.90,+ "effective_fee_rate": 0.0357,+ "fee_per_settlement_usd": 0.0018,+ "fee_source": "..."+ },+ "by_endpoint": [+ { "endpoint": "/api/x402/token-intel", "count": 120, "gross_usd": 1.20, "share": 0.097 }+ ],+ "top_endpoint": { "endpoint": "/api/x402/token-intel", "gross_usd": 1.20 }+}+```++`net_platform_usd` is gross minus the estimated on-chain settlement fee — what the+platform actually keeps. `failed_payments` counts `event_type = 'payment_failed'`+rows in the same window, so you can watch the settlement success rate.++---++## Receipts — `x402_receipts`++Each successful settlement also issues the buyer a durable, signed receipt+([`receipt-storage.js`](../api/_lib/x402/receipt-storage.js)):++```sql+CREATE TABLE x402_receipts (+ id uuid PRIMARY KEY DEFAULT gen_random_uuid(),+ payer text NOT NULL, -- buyer wallet+ network text NOT NULL,+ resource_url text NOT NULL, -- what they paid for+ format text NOT NULL,+ receipt jsonb NOT NULL, -- the signed receipt artifact+ transaction text, -- settlement tx+ issued_at timestamptz NOT NULL DEFAULT now()+);+```++A buyer reads **their own** receipts at+[`/api/x402/my-receipts`](x402-endpoints.md) — that endpoint is free but gated by+a wallet signature (SIWX), so a buyer proves ownership of the `payer` address+rather than paying again.++### Anti-replay — `bsc_consumed_tx`++For BSC direct-scheme settlements (where there is no facilitator and the buyer+pays the `ThreeWSPayments` contract directly), each on-chain `Payment` tx is+recorded in `bsc_consumed_tx` (`tx_hash` primary key) the first time it is spent,+so the same on-chain payment can never be replayed against two requests.++---++## Proof-of-volume — `x402_volume_metrics`++`x402_audit_log` is the per-call ledger (one row per settlement). Alongside it,+the **Volume Bootstrap Loop** (autonomous registry `self/026`,+[`pipelines/volume-bootstrap-loop.js`](../api/_lib/x402/pipelines/volume-bootstrap-loop.js))+maintains a compact **rolling aggregate keyed on endpoint** in+`x402_volume_metrics`. On each sweep the loop round-robins the catalog of cheap+paid self endpoints, pays each a real on-chain USDC payment, and upserts one row+per endpoint — accumulating call / success / fail counts, total + last USDC+spent, last tx signature, last status, and first/last call timestamps.++```sql+CREATE TABLE x402_volume_metrics (+ endpoint_key text PRIMARY KEY, -- one row per paid endpoint+ service_name text,+ endpoint_path text,+ network text NOT NULL DEFAULT 'solana:mainnet',+ asset text,+ call_count bigint NOT NULL DEFAULT 0,+ success_count bigint NOT NULL DEFAULT 0,+ fail_count bigint NOT NULL DEFAULT 0,+ total_spent_atomic bigint NOT NULL DEFAULT 0, -- USDC atomics, lifetime+ last_amount_atomic bigint NOT NULL DEFAULT 0,+ last_success boolean,+ last_status int,+ last_tx_signature text,+ last_error text,+ last_run_id uuid,+ first_called_at timestamptz DEFAULT now(),+ last_called_at timestamptz DEFAULT now()+);+```++Schema:+[`api/_lib/migrations/20260629110000_x402_volume_metrics.sql`](../api/_lib/migrations/20260629110000_x402_volume_metrics.sql)+(the pipeline also creates it lazily via `ensureSchema`). It feeds two things the+growth + status surfaces read: **proof-of-volume** (total settled calls and USDC+volume per endpoint — the metric agentic.market ranks facilitators on) and+**per-endpoint liveness** (`last_success` / `last_called_at` confirm each paid+endpoint is up). Add an endpoint to `VOLUME_ENDPOINTS` in the pipeline and the+cursor and ledger pick it up automatically.++> **Synthetic vs organic — do not conflate them.** The Volume Bootstrap Loop pays+> our **own** endpoints from our **own** seed wallet, and those endpoints settle+> to the platform's own `X402_PAY_TO_*` treasury. Every transaction is real and+> on-chain — but the *demand* is synthetic: it is the platform paying itself, a+> liveness canary, not external buyers. It is legitimate as **synthetic+> monitoring** (proving every paid endpoint is live) and is bounded small by+> design (see the budget knobs in [Autonomous x402 loop](autonomous-x402.md)).+> It is **not** marketplace demand. Any headline "marketplace volume" or+> facilitator-ranking number we publish must **exclude the seed wallet's own+> calls** — filter `x402_audit_log` by `payer` to separate organic settlements+> from the loop's synthetic ones. Reporting self-paid round-trips as organic+> volume is wash volume: real transactions, fake demand, and trivially detectable+> by anyone clustering the seed wallet on-chain. The honest path to real volume+> is external demand (discovery, real `agent_hire` commerce, the+> [Circulation engine](circulation-engine.md)), not a bigger self-paid sweep.++---++## Reconciliation — `payment_reconciliation`++A live payment platform's books must match the chain. The **Payment Revenue+Reconciliation** job (autonomous registry `self/027`, runs **daily**,+[`revenue-reconciliation.js`](../api/_lib/x402/revenue-reconciliation.js)) is the+financial-integrity watchdog. Each run pulls recent records that claim settlement+from both books — `x402_autonomous_log` (outbound spend) and+`agent_payment_intents` (inbound revenue) — verifies each Solana signature+on-chain via `getSignatureStatuses` (batched, full-history search), and upserts+one verdict row per record into `payment_reconciliation`.++```sql+CREATE TABLE payment_reconciliation (+ id bigserial PRIMARY KEY,+ source text NOT NULL, -- 'autonomous_log' | 'payment_intent'+ source_ref text NOT NULL, -- row id within that book+ tx_signature text,+ network text,+ amount_atomic bigint,+ db_status text NOT NULL, -- what the book claims+ chain_status text NOT NULL, -- confirmed | failed_onchain | missing_onchain+ -- | missing_signature | skipped_non_solana | unknown+ reconciled boolean NOT NULL,+ discrepancy text, -- null when reconciled+ detail jsonb,+ run_id uuid,+ first_seen_at timestamptz NOT NULL DEFAULT now()+);+```++Schema:+[`api/_lib/migrations/20260629120000_payment_reconciliation.sql`](../api/_lib/migrations/20260629120000_payment_reconciliation.sql).+The job is **read-only**, so it runs even when the spend wallet is absent (it+falls back to a keyless RPC connection; the `/api/x402-status` probe it uses is+free). A row with `reconciled = false` is a financial-integrity alert — the DB+recorded a settlement the chain does not corroborate. The ops surface watches:++```sql+-- Unreconciled settlements in the last day — investigate before they corrupt accounting.+SELECT source, source_ref, tx_signature, db_status, chain_status, discrepancy+FROM payment_reconciliation+WHERE reconciled = false+ AND first_seen_at >= now() - interval '24 hours'+ORDER BY first_seen_at DESC;+```++`chain_status` classifies each discrepancy: `failed_onchain` (tx reverted),+`missing_onchain` (no tx exists), `missing_signature` (settled but no signature+kept). EVM/Base settlements are `skipped_non_solana` (not verified here).++---++## Driving volume through these endpoints++Revenue only exists if the endpoints get called. Two systems drive **organic**+calls: the [Circulation engine](circulation-engine.md) drives real+agent-to-agent commerce, and the [Autonomous x402 loop](autonomous-x402.md)'s+oracle/sniper pipelines pay our intel endpoints to feed real downstream+decisions. Both settle **real** USDC through the flow above, from real+counterparties.++Separately, the **Volume Bootstrap Loop** (above) generates **synthetic**+liveness traffic by paying our own endpoints from the seed wallet. Every row in+`x402_audit_log` is a verifiable on-chain settlement — but "verifiable" is not+"organic." When you report revenue or volume, decide explicitly whether the+number is meant to represent external demand (exclude the seed wallet) or total+settled activity (include it), and label it as such.++---++## Related++- [x402 paid endpoints](x402-endpoints.md) — the catalog of what charges and how much.+- [x402 protocol](x402.md) — the challenge / verify / settle mechanics.+- [x402 buyer client](x402-buyer.md) — how to settle a 402 challenge in code.+- [Autonomous x402 loop](autonomous-x402.md) — the scheduled buyer that drives volume, including the Volume Bootstrap Loop and the reconciliation job.+- [Money feed](money-feed.md) — the agent-spend side of the ledger (the Money Pulse), distinct from endpoint revenue.++---++<a id="sec-377"></a>> **Source:** `docs/x402.md` · [↑ table of contents](#table-of-contents)@@ -70569,9 +71172,15 @@ consuming the intent. Not yet enforced server-side.- Currency is always an SPL mint pubkey. SOL-native payments aren'tsupported yet.+## Related++- [x402 paid endpoints](x402-endpoints.md) — the catalog of the platform's own paid endpoints.+- [x402 revenue & receipts](x402-revenue.md) — where settled payments are recorded and how to read endpoint revenue.+- [x402 buyer client](x402-buyer.md) — how to settle a 402 challenge in code.+----<a id="sec-376"></a>+<a id="sec-378"></a>> **Source:** `docs/zauth/database.md` · [↑ table of contents](#table-of-contents)@@ -70717,7 +71326,7 @@ Use this endpoint to browse all known x402 endpoints before your agents commit t----<a id="sec-377"></a>+<a id="sec-379"></a>> **Source:** `docs/zauth/index.md` · [↑ table of contents](#table-of-contents)@@ -70741,7 +71350,7 @@ zauth is the security and trust layer that allows agents to act with confidence,----<a id="sec-378"></a>+<a id="sec-380"></a>> **Source:** `docs/zauth/provider-hub.md` · [↑ table of contents](#table-of-contents)@@ -70843,7 +71452,7 @@ Supply your EVM or Solana private keys to enable automatic refunds when your end----<a id="sec-379"></a>+<a id="sec-381"></a>> **Source:** `docs/zauth/reposcan.md` · [↑ table of contents](#table-of-contents)@@ -71169,7 +71778,7 @@ TypeScript -@x402/fetch----<a id="sec-380"></a>+<a id="sec-382"></a>> **Source:** `docs/zauth/vector.md` · [↑ table of contents](#table-of-contents)diff --git a/public/changelog.json b/public/changelog.jsonindex d839eeaa3..eb46f258b 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-30T22:37:39.708Z",+ "generated_at": "2026-06-30T22:49:09.028Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -180,6 +180,16 @@"feature"]},+ {+ "date": "2026-06-30",+ "type": "update",+ "title": "Reward coins can now send creator fees to a single GitHub account, not just a repo",+ "summary": "The Fees & rewards panel already let you split a coin's creator fees across a GitHub repo's contributors. Now you can also route rewards to one specific person: type a GitHub @username and it resolves to their three.ws-linked Solana payout wallet, added as a recipient you can give 100% (or any share) of the fees. This is the same mechanism behind $THREE, whose creator rewards flow to @nirholas even though someone else launched the coin. A handle with no linked wallet is flagged so you can paste their address or ask them to link one. The same input still accepts an owner/repo to split across contributors — one field, both intents.",+ "link": null,+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-30","type": "update",@@ -236,7 +246,7 @@"date": "2026-06-30","type": "update","title": "The homepage now shows the autonomous sniper trading, live",- "summary": "There's a new \"Autonomous trading\" section on three.ws that puts the sniper engine front and center. An interactive diagram walks the full trade loop — Watch, Score, Guard, Buy, Exit — and you can click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. The win rate, best ROI and open-position counts underneath are the platform's real numbers — nothing on the panel is simulated. Honors reduced-motion preferences.",+ "summary": "There's a new \"Autonomous trading\" section on three.ws that puts the sniper engine front and center. It opens with three headline numbers that count up as you scroll — launches scored today, winning exits all-time, and the best run a scored launch has reached — all real platform figures. Below them, an interactive diagram walks the full trade loop: Watch, Score, Guard, Buy, Exit. Click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. Nothing on the panel is simulated. Honors reduced-motion preferences.","link": "/","tags": ["feature"diff --git a/public/changelog.xml b/public/changelog.xmlindex 08b482bd0..93d4c79cf 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -142,6 +142,14 @@<category>docs</category><description>Everything behind the conviction score, in one place. The new Oracle docs explain — in plain English and, where you want it, full mathematical detail — how Oracle reads every pump.fun launch: the four pillars (who's buying, how it's structured, what story it rides, how it's moving), exactly how they fuse into a 0–100 score, where the hard caps come from, how the engine is calibrated and backtested against real outcomes, how to arm an agent on it, the full public API, and where it's headed. Real screenshots throughout, a quickstart for traders, builders, and skeptics, and a researcher-level appendix.</description></item>+ <item>+ <title>Reward coins can now send creator fees to a single GitHub account, not just a repo</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-30:Reward coins can now send creator fees to a single GitHub account, not just a repo</guid>+ <pubDate>Tue, 30 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The Fees & rewards panel already let you split a coin's creator fees across a GitHub repo's contributors. Now you can also route rewards to one specific person: type a GitHub @username and it resolves to their three.ws-linked Solana payout wallet, added as a recipient you can give 100% (or any share) of the fees. This is the same mechanism behind $THREE, whose creator rewards flow to @nirholas even though someone else launched the coin. A handle with no linked wallet is flagged so you can paste their address or ask them to link one. The same input still accepts an owner/repo to split across contributors — one field, both intents.</description>+ </item><item><title>Swarm dashboards now show consensus building and firing live</title><link>https://three.ws/swarms</link>@@ -188,7 +196,7 @@<guid isPermaLink="false">2026-06-30:The homepage now shows the autonomous sniper trading, live</guid><pubDate>Tue, 30 Jun 2026 12:00:00 GMT</pubDate><category>feature</category>- <description>There's a new "Autonomous trading" section on three.ws that puts the sniper engine front and center. An interactive diagram walks the full trade loop — Watch, Score, Guard, Buy, Exit — and you can click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. The win rate, best ROI and open-position counts underneath are the platform's real numbers — nothing on the panel is simulated. Honors reduced-motion preferences.</description>+ <description>There's a new "Autonomous trading" section on three.ws that puts the sniper engine front and center. It opens with three headline numbers that count up as you scroll — launches scored today, winning exits all-time, and the best run a scored launch has reached — all real platform figures. Below them, an interactive diagram walks the full trade loop: Watch, Score, Guard, Buy, Exit. Click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. Nothing on the panel is simulated. Honors reduced-motion preferences.</description></item><item><title>The launch & deploy flow now makes shipping feel like shipping</title>diff --git a/public/features.json b/public/features.jsonindex 11505a149..70677b0f2 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-30T22:37:39.689Z",+ "generated_at": "2026-06-30T22:49:08.916Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/studio/fees-panel.js b/public/studio/fees-panel.jsindex a87cf42fd..f4032d68a 100644--- a/public/studio/fees-panel.js+++ b/public/studio/fees-panel.js@@ -196,6 +196,8 @@ const FP_CSS = `background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09);color:#fff;box-sizing:border-box}.fp-gh input:focus{border-color:rgba(255,255,255,.28)}.fp-gh input::placeholder{color:rgba(255,255,255,.25)}+.fp-gh-hint{font-size:.63rem;color:rgba(255,255,255,.4);line-height:1.45;margin-top:-.15rem}+.fp-gh-hint b{color:rgba(255,255,255,.62);font-weight:600}.fp-holders{display:flex;flex-direction:column;gap:.3rem}.fp-holder{display:flex;align-items:center;gap:.5rem;padding:.4rem .6rem;border-radius:8px;@@ -468,9 +470,59 @@ export function mountFeesPanel(container, opts = {}) {// ── GitHub import ─────────────────────────────────────────────────────────────+ // Dispatch the GitHub input: an "owner/repo" imports a whole repo's+ // contributors; a bare "@login" routes rewards to that single account.async function importGithub() {- const parsed = parseGithubRepo(s.githubRepo);- if (!parsed) { s.githubError = 'Enter a repo as owner/name (e.g. solana-labs/solana).'; render(); return; }+ const repo = parseGithubRepo(s.githubRepo);+ if (repo) return importGithubRepo(repo);+ const login = parseGithubAccount(s.githubRepo);+ if (login) return addGithubAccount(login);+ s.githubError = 'Enter a GitHub @username, or a repo as owner/name.';+ render();+ }++ // Single GitHub account → one reward recipient. Resolves the handle to its+ // three.ws-linked Solana payout wallet; if the user hasn't linked one, the+ // row is added flagged so the creator can paste a wallet or ask them to link.+ async function addGithubAccount(login) {+ // Drop blank seed rows (the setup CTA leaves one empty 100% row) so adding+ // an account doesn't strand a placeholder hogging the split.+ s.rows = s.rows.filter((r) => r.address?.trim() || r.gh);+ if (s.rows.some((r) => r.gh?.login?.toLowerCase() === login.toLowerCase())) {+ s.githubError = `@${login} is already a recipient.`; render(); return;+ }+ if (s.rows.length >= 10) { s.githubError = 'Maximum 10 recipients.'; render(); return; }+ s.githubBusy = true; s.githubError = '';+ // Optimistic row — immediate feedback while we resolve the wallet. A lone+ // recipient defaults to 100%; added alongside others it starts at 0% so+ // the creator rebalances deliberately.+ const row = {+ address: '', bps: s.rows.length === 0 ? 10_000 : 0,+ gh: { login, avatar: `https://github.com/${esc(login)}.png?size=40`, url: `https://github.com/${esc(login)}`, resolving: true },+ };+ s.rows.push(row); s.editing = true; render();+ try {+ const r = await fetch('/api/pump/resolve-github-shareholder', {+ method: 'POST', credentials: 'include', headers: { 'content-type': 'application/json' },+ body: JSON.stringify({ github_username: login, network }),+ });+ const d = await r.json();+ if (r.ok && d.mode === 'wallet' && d.address) {+ row.address = d.address; row.gh.linked = true;+ s.githubRepo = ''; // clear so another can be added+ } else {+ row.gh.unlinked = true;+ s.githubError = d.note+ || `@${login} has no three.ws-linked Solana wallet yet — paste their wallet, or ask them to link one on three.ws to claim directly.`;+ }+ } catch (e) {+ row.gh.unlinked = true; s.githubError = friendlyError(e.message || String(e));+ }+ row.gh.resolving = false; s.githubBusy = false;+ if (_alive) render();+ }++ async function importGithubRepo(parsed) {s.githubBusy = true; s.githubError = ''; render();try {const r = await fetch(@@ -679,9 +731,10 @@ export function mountFeesPanel(container, opts = {}) {return `<div class="fp-deleg"><div class="fp-deleg-title">🎁 Reward split — delegate creator fees</div><div class="fp-gh">- <input id="fp-gh-input" placeholder="Import GitHub repo — owner/name" value="${esc(s.githubRepo)}" spellcheck="false" />- <button class="fp-btn violet${s.githubBusy ? ' busy' : ''}" id="fp-gh-go" ${s.githubBusy ? 'disabled' : ''}>${s.githubBusy ? 'Loading…' : 'Import'}</button>+ <input id="fp-gh-input" placeholder="GitHub @username or owner/repo" value="${esc(s.githubRepo)}" spellcheck="false" />+ <button class="fp-btn violet${s.githubBusy ? ' busy' : ''}" id="fp-gh-go" ${s.githubBusy ? 'disabled' : ''}>${s.githubBusy ? 'Resolving…' : 'Add'}</button></div>+ <div class="fp-gh-hint">A <b>@username</b> routes rewards to one account · an <b>owner/repo</b> splits across its contributors.</div>${s.githubError ? `<div class="fp-err">${esc(s.githubError)}</div>` : ''}${s.rows.length ? rowsHtml : `<div class="fp-note">Add recipients below or import a GitHub repo's contributors.</div>`}<button class="fp-add" id="fp-add" ${s.rows.length >= 10 ? 'disabled' : ''}>+ Add recipient</button>diff --git a/public/x402-stripe.html b/public/x402-stripe.htmlindex c114d75d8..125d45ee3 100644--- a/public/x402-stripe.html+++ b/public/x402-stripe.html@@ -348,7 +348,7 @@data-x402-merchant="three.ws"data-x402-action="Reputation report"data-result-target="r-rep">- Buy & run · BUrwd1nK…3nSN+ Buy & run · wwwwwDxF…ccrU</button><div class="result-panel" id="r-rep"></div></div>diff --git a/src/home-sniper.js b/src/home-sniper.jsindex 0320dc692..02bb8a646 100644--- a/src/home-sniper.js+++ b/src/home-sniper.js@@ -231,9 +231,19 @@ function makeStatBand(root) {let values = null;let shown = false;+ function inView() {+ if (!band) return true;+ const r = band.getBoundingClientRect();+ const vh = window.innerHeight || document.documentElement.clientHeight || 0;+ // Count once ~15% of the way up the viewport so the numbers animate as the+ // band arrives, not only when fully centered.+ return r.top < vh * 0.85 && r.bottom > 0;+ }+function render() {- if (!values || shown) return;+ if (!values || shown || !inView()) return;shown = true;+ teardown();fields.forEach(({ el, key, fmt }) => {if (!el) return;const v = Number(values[key]);@@ -244,23 +254,26 @@ function makeStatBand(root) {});}- // Count up only once the band scrolls into view — the reveal is the moment.- if (band && typeof IntersectionObserver === 'function') {- const io = new IntersectionObserver((entries) => {- if (entries.some((e) => e.isIntersecting)) { io.disconnect(); render(); }- }, { threshold: 0.35 });- io.observe(band);+ // Re-check on scroll/resize (rAF-coalesced) until the count-up fires once. A+ // plain scroll listener is more robust than IntersectionObserver across+ // programmatic scrolls; it self-removes the moment the numbers render.+ let ticking = false;+ function onScroll() {+ if (ticking) return;+ ticking = true;+ requestAnimationFrame(() => { ticking = false; render(); });}+ function teardown() {+ window.removeEventListener('scroll', onScroll);+ window.removeEventListener('resize', onScroll);+ }+ window.addEventListener('scroll', onScroll, { passive: true });+ window.addEventListener('resize', onScroll, { passive: true });return {set(data) {values = data;- // If already on screen (short pages / no observer), render immediately.- if (!band || typeof IntersectionObserver !== 'function') render();- else {- const r = band.getBoundingClientRect();- if (r.top < (window.innerHeight || 0) && r.bottom > 0) render();- }+ render(); // fires now if already in view; otherwise the scroll handler will},};}diff --git a/tests/studio-fees-panel.test.js b/tests/studio-fees-panel.test.jsindex 2fab9c723..838c44baf 100644--- a/tests/studio-fees-panel.test.js+++ b/tests/studio-fees-panel.test.js@@ -1,5 +1,5 @@import { describe, it, expect } from 'vitest';-import { parseGithubRepo, weightsToBps, validateShareSplit } from '../public/studio/fees-panel.js';+import { parseGithubRepo, parseGithubAccount, weightsToBps, validateShareSplit } from '../public/studio/fees-panel.js';// A plausible 44-char base58 Solana address for split validation tests.const A = (c) => c.repeat(44);@@ -21,6 +21,31 @@ describe('parseGithubRepo', () => {});});+describe('parseGithubAccount', () => {+ it('parses a bare login', () => {+ expect(parseGithubAccount('nirholas')).toBe('nirholas');+ });+ it('strips a leading @', () => {+ expect(parseGithubAccount('@nirholas')).toBe('nirholas');+ });+ it('parses a profile URL', () => {+ expect(parseGithubAccount('https://github.com/anza-xyz')).toBe('anza-xyz');+ expect(parseGithubAccount('github.com/foo-bar/')).toBe('foo-bar');+ });+ it('accepts a hyphenated login but rejects leading/trailing/double hyphens', () => {+ expect(parseGithubAccount('a-b-c')).toBe('a-b-c');+ expect(parseGithubAccount('-bad')).toBeNull();+ expect(parseGithubAccount('bad-')).toBeNull();+ expect(parseGithubAccount('a--b')).toBeNull();+ });+ it('rejects empty / over-long / invalid logins', () => {+ expect(parseGithubAccount('')).toBeNull();+ expect(parseGithubAccount(' ')).toBeNull();+ expect(parseGithubAccount('a'.repeat(40))).toBeNull();+ expect(parseGithubAccount('has space')).toBeNull();+ });+});+describe('weightsToBps', () => {it('always sums to exactly 10000', () => {for (const ws of [[1], [1, 1, 1], [5, 3, 2], [100, 1, 1, 1], [7, 7, 7, 7, 7, 7, 7]]) {diff --git a/three-ws-club-ambience.wav b/three-ws-club-ambience.wavnew file mode 100644index 000000000..fa6b03b9eBinary files /dev/null and b/three-ws-club-ambience.wav differ