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: Add new prompts for Robinhood Chain development
fudjiaafba890472b1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 423e4279e..f4bff1680 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -47,7 +47,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Fortune's Folly — a Wheel of Fortune landed in the /play plaza** — Walk up to the wheel in the Mainland plaza and spin: one free spin every 12 hours, or pay $3 in $THREE for another shot — split 50% to the holder-rewards pool and 50% to the treasury, verified on-chain before any prize is granted. Twenty equal-odds wedges hand out wood, stone, coal, or cash, and a won prize is never lost to a full pack. Requires a little in-world progress first (average skill level 3) to keep it a bonus for players, not a bot target. (`/play`) `[feature]`- **Market data no longer rides on a single source** — The numbers on the markets pages used to blank out whenever CoinGecko rate-limited us. Now every core datapoint fails over across free, keyless backup APIs before it ever shows an error. The global stats bar falls back CoinGecko → CoinPaprika → CoinLore, the coins table backs up on CoinLore, the ETH price on the gas tracker and the BTC price on the exchanges page fail over to DefiLlama, the SOL price now draws on seven independent feeds, and the Solana token panels gained DefiLlama as a fourth source. Same numbers, same pages — they just stay up through an upstream outage instead of going blank. (`/coins`) `[improvement, infra]`- **Meet your agent: the site now hands every visitor a living agent — and a command line to drive it** — three.ws now works the way it always promised: through your agent. Land on any page and within seconds a named 3D companion introduces itself — yours to keep, and one click turns it into a real agent on your account. The ⌘K search palette grew into a real command line: type “forge a bronze dragon statue” and a real 3D model is generated right inside the panel, “digest” reads you the day's crypto news as clustered stories, “price btc” quotes live market data, and “ask …” gets a streamed answer from the site agent — all free, no account needed, and your companion waves when the work lands. Market pages (/markets, /coins) now navigate without reloading, so your agent walks with you instead of blinking out on every click; the market surfaces also adopted the sitewide typeface for one consistent look. (`/docs/agent-shell`) `[feature, improvement]`-- **Premium: one monthly pass instead of paying per call** — Go Premium for $9.99/30 days and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — mints an API key with unmetered archive search and lets your wallet sign in on the archive page instead of paying. Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy or renew the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, never losing time. (`/docs/premium`) `[feature]`+- **Premium: one monthly pass instead of paying per call** — Go Premium and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — buys 30 days of unmetered archive search plus an API key. Three tiers: Developer at $19.99 (120 requests/min), Pro at $99 (600/min, commercial use), and Enterprise at $499 (2,000/min, priority support, bulk corpus arrangements). Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy, renew, or upgrade the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, and upgrading raises your rate limit immediately. (`/docs/premium`) `[feature]`- **Richer coin pages, plus new exchange, category, and DeFi-yields detail pages** — Every coin page now shows far more of what the data already offers: a 1h-to-1y price-performance matrix, a circulating-vs-max supply bar with the market-cap/FDV ratio, all-time high and low with the drawdown and recovery multiple, the community bullish/bearish sentiment split, GitHub and social activity, and a full exchange-listings table with spread, order-book depth, and a trust rating for each venue. Exchanges and crypto categories, which used to only send you off-site or filter a table, now have their own detail pages — an exchange page with a trust badge, wash-volume-adjusted volume, a volume-history chart, and its markets, and a category page with the sector's rank, stats, and full coin list. And a brand-new DeFi Yields explorer covers roughly 15,000 live pools across every chain and protocol, filterable and sortable, each with its own APY and TVL history chart. All of it is real, key-free data. (`/yields`) `[feature, improvement]`- **Send a sealed wallet as a gift — end-to-end encrypted, right from /vanity-wallet** — Fund a fresh Solana wallet — optionally vanity-ground with a custom prefix or suffix — wrap it in a sealed link, and send it to someone. A bearer link carries the claim key in the URL itself for simple sharing, or seal it to a specific recipient's key so only they can ever open it. Claiming happens entirely in the recipient's browser at their own link — three.ws never sees the plaintext key at any point. Track what you've sent and reclaim anything that expires unclaimed from the same page. (`/vanity-wallet`) `[feature]`- **The datapoint fabric: 480,000+ standalone paid endpoints** — Every individual market datapoint three.ws aggregates is now its own standalone paid endpoint — one URL, one value, one micro-payment of $0.0005 USDC over x402. Bitcoin's spot price, Lido's TVL, one yield pool's APY, USDT's peg deviation in basis points, BTC dominance, the standard gas tier — each of roughly 484,000 combinations of ~17,500 coins, ~15,500 yield pools, ~6,000 protocols, plus chains, stablecoins, exchanges, and the global market gauges, across 68 metrics, is individually addressable and individually buyable by any agent with a wallet. A free catalog at /api/x402/d lists every family and metric with prices and can page through each family's entire live id space, so a crawler can walk the whole endpoint universe. Asking for a datapoint that doesn't exist never triggers a payment request, and a failed fetch never charges the buyer. (`/docs/market-data-api`) `[feature]`diff --git a/data/changelog.json b/data/changelog.jsonindex f9eb46251..658494bcb 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -13293,7 +13293,7 @@{"date": "2026-07-11","title": "Premium: one monthly pass instead of paying per call",- "summary": "Go Premium for $9.99/30 days and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — mints an API key with unmetered archive search and lets your wallet sign in on the archive page instead of paying. Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy or renew the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, never losing time.",+ "summary": "Go Premium and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — buys 30 days of unmetered archive search plus an API key. Three tiers: Developer at $19.99 (120 requests/min), Pro at $99 (600/min, commercial use), and Enterprise at $499 (2,000/min, priority support, bulk corpus arrangements). Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy, renew, or upgrade the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, and upgrading raises your rate limit immediately.","tags": ["feature"],diff --git a/docs/api-reference.md b/docs/api-reference.mdindex dc0b2d9c5..d9497ff3b 100644--- a/docs/api-reference.md+++ b/docs/api-reference.md@@ -2695,10 +2695,11 @@ requests arriving with `X-PAYMENT` skip the free quota entirely. `?stats=true`reports the live terms under `search_access`.**Premium pass (monthly):** skip per-call payments entirely with the-[Premium pass](/docs/premium) — $9.99/30 days on Solana in $THREE (20% off),-SOL, or USDC. It mints an `x402_live_…` API key (send as `X-API-Key`) and a-wallet-signature (SIWX) grant for browsers. Buy at-[/dashboard/data-api](/dashboard/data-api) or over the raw API+[Premium pass](/docs/premium) — from $19.99/30 days (Developer 120 req/min;+Pro $99 at 600 req/min with commercial use; Enterprise $499 at 2,000 req/min)+on Solana in $THREE (20% off), SOL, or USDC. It mints an `x402_live_…` API+key (send as `X-API-Key`) and a wallet-signature (SIWX) grant for browsers.+Buy at [/dashboard/data-api](/dashboard/data-api) or over the raw API(`/api/premium/plans` → `quote` → `subscribe`).### Daily digestdiff --git a/docs/premium.md b/docs/premium.mdindex 6be4426ed..93afd0152 100644--- a/docs/premium.md+++ b/docs/premium.md@@ -5,24 +5,29 @@ days. Instead of answering an x402 challenge on every archive search, you buya pass once a month — the AIXBT model — and call the Data API with an API key(servers, agents) or a wallet signature (browsers).-**Price:** $9.99 / 30 days, paid on **Solana only**, in your choice of:--| Asset | What you pay | Why |-|---|---|---|-| **$THREE** | ≈ $7.99 worth (20% off) | The platform coin is the cheapest way in. Mint: `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump` |-| **SOL** | ≈ $9.99 worth at the live price | Native SOL transfer |-| **USDC** | $9.99 exactly | Parity, never needs an oracle |--Prices in SOL and $THREE are locked for 10 minutes when you request a quote,-so the amount you sign is exactly the amount that's verified.--**What it unlocks today:** unmetered search on the+**Three tiers, paid on Solana only** — every tier is payable in **$THREE+(20% off — the platform coin is always the cheapest way in)**, native **SOL**,+or **USDC** (parity):++| Tier | Price / 30 days | Rate limit | Licence |+|---|---|---|---|+| **Developer** | $19.99 (≈ $15.99 in $THREE) | 120 req/min | Personal + evaluation |+| **Pro** | $99 (≈ $79.20 in $THREE) | 600 req/min | Commercial use |+| **Enterprise** | $499 (≈ $399.20 in $THREE) | 2,000 req/min | Commercial + priority support + bulk corpus arrangements |++$THREE mint: `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`. Prices in SOL+and $THREE are locked for 10 minutes when you request a quote, so the amount+you sign is exactly the amount that's verified. Live per-tier, per-asset+pricing: `GET https://three.ws/api/premium/plans`.++**What every tier unlocks today:** unmetered search on the[660k-article crypto-news archive](/markets/archive)-(`GET /api/news/archive`) at a fair-use rate limit of 120 requests/minute —-versus the free tier's 60 searches/day and the $0.001-per-search x402 rail.-Corpus stats, month index, and trending are free for everyone regardless.-More premium surfaces join the same pass over time; your key starts working-on them automatically.+(`GET /api/news/archive`) at your tier's rate limit — versus the free tier's+60 searches/day and the $0.001-per-search x402 rail. Corpus stats, month+index, and trending are free for everyone regardless. More premium surfaces+join the same pass over time; your key starts working on them automatically.+Buying a higher tier while a pass is active upgrades your key's rate limit+immediately and appends the new period to the end.## Buying a pass@@ -38,9 +43,10 @@ early.```bash# 1. Quote — lock the price, get the unsigned transaction (base64)+# plan: developer (default) | pro | enterprisecurl -X POST https://three.ws/api/premium/quote \-H 'content-type: application/json' \- -d '{"asset":"THREE","wallet":"<your-solana-address>"}'+ -d '{"asset":"THREE","wallet":"<your-solana-address>","plan":"pro"}'# → { "quote": { "id", "amount_atomics", "expires_at", … }, "tx_base64": "…" }# 2. Sign tx_base64 with the quoted wallet and send it (any Solana client).@@ -92,10 +98,12 @@ at [/dashboard/billing](/dashboard/billing).else's transaction signature can't redeem your quote.- One transaction signature redeems exactly one pass, forever (databaseUNIQUE). Failed or reverted transactions redeem nothing.-- Renewal periods stack end-to-end (`new start = old expiry`).-- Ops can tune pricing without a deploy: `PREMIUM_PASS_USD`,- `PREMIUM_PASS_THREE_DISCOUNT`, `PREMIUM_PASS_DAYS`,- `PREMIUM_RATE_LIMIT_PER_MINUTE`.+- Renewal periods stack end-to-end (`new start = old expiry`); buying a+ higher tier retiers the key's rate limit immediately.+- Ops can tune pricing without a deploy: `PREMIUM_PRICE_DEVELOPER` /+ `PREMIUM_PRICE_PRO` / `PREMIUM_PRICE_ENTERPRISE` (USD),+ `PREMIUM_RATE_LIMIT_DEVELOPER` / `_PRO` / `_ENTERPRISE` (req/min),+ `PREMIUM_PASS_THREE_DISCOUNT`, `PREMIUM_PASS_DAYS`.Related: [API reference — news archive](/docs/api-reference), the[x402 per-call rail](/docs/x402) that Premium sits on top of, and the freediff --git a/pages/agent-detail.html b/pages/agent-detail.htmlindex 0645abc1d..bc8670593 100644--- a/pages/agent-detail.html+++ b/pages/agent-detail.html@@ -279,6 +279,10 @@</div></section>+ <!-- Cross-link panels (presence, stages, labor, alpha co-pilot) mount+ here as a compact strip instead of stacking above the hero. -->+ <div class="adv2-wrap adv2-banners" id="adv2-banners"></div>+<!-- ── Platform pulse strip ──────────────────────────────────────── --><div class="adv2-wrap"><div class="ad-platform-bar" id="ad-platform-bar" hidden aria-label="three.ws network activity across all agents">@@ -610,10 +614,13 @@<section class="adv2-group" id="sec-activity"><header class="adv2-group-head"><h2>Activity</h2>- <p>Signed actions, long-term memory, and the strategy driving them.</p>+ <p>Watch the agent live — its screen, avatar cam, and action log.</p></header><div class="adv2-grid">+ <!-- Live watch panel (screen + webcam + activity log) mounts here. -->+ <div id="adv2-watch-slot" data-span="2" data-slot></div>+<section class="ad-card" id="ad-actions-card" style="display: none"><div class="ad-card-head"><span class="ad-bullet ad-bullet-green"></span>diff --git a/prompts/robinhood-chain/00-INDEX.md b/prompts/robinhood-chain/00-INDEX.mdnew file mode 100644index 000000000..d7a9b7fa1--- /dev/null+++ b/prompts/robinhood-chain/00-INDEX.md@@ -0,0 +1,51 @@+# Robinhood Chain prompt pack — execution index++Run order matters: later waves consume earlier waves' output. Within a wave, prompts are+independent and can run concurrently. Every agent reads `_shared.md` first, then its prompt.++> DO NOT DELETE PROMPT FILES — even after their work ships. This pack was wiped once by an+> overzealous cleanup and had to be restored. Only the owner removes prompts.++## Wave 1 — foundation (run first, alone)+| Prompt | Product | Folder | Status |+|---|---|---|---|+| [01-sdk-core.md](01-sdk-core.md) | Core TypeScript SDK (`hoodchain`) | `robinhood/robinhood-chain-sdk/` | BUILT 2026-07-12 (testnet-swap E2E owner-blocked on faucet login) |++## Wave 2 — SDK consumers (run after 01 completes; all concurrent)+| Prompt | Product | Folder |+|---|---|---|+| [02-sdk-simple-wrapper.md](02-sdk-simple-wrapper.md) | Dead-simple wrapper (`hood-js`) | `robinhood/hood-js/` |+| [03-sdk-advanced-wrapper.md](03-sdk-advanced-wrapper.md) | Advanced toolkit (`hoodkit`) | `robinhood/hoodkit/` |+| [04-market-data-api.md](04-market-data-api.md) | Hosted market-data API + x402 | `robinhood/hood-api/` |+| [05-x402-usdg-rail.md](05-x402-usdg-rail.md) | x402 USDG middleware + facilitator | `robinhood/hood402/` |+| [06-mcp-servers.md](06-mcp-servers.md) | MCP servers (data + trading) | `robinhood/hood-mcp/` |+| [11-toolkit-cli.md](11-toolkit-cli.md) | CLI toolkit (`hood-cli`) | `robinhood/hood-cli/` |+| [14-wallet-connect-kit.md](14-wallet-connect-kit.md) | Wallet & onboarding kit (`hood-connect`) | `robinhood/hood-connect/` |+| [15-tokenlist.md](15-tokenlist.md) | Canonical token list (`hood-tokenlist`) | `robinhood/hood-tokenlist/` |+| [17-erc8056.md](17-erc8056.md) | ERC-8056 reference (`erc8056`) | `robinhood/erc8056/` |+| [18-status-page.md](18-status-page.md) | Chain status page (`hood-status`) | `robinhood/hood-status/` |++## Wave 3 — applications (after wave 2; all concurrent)+| Prompt | Product | Folder |+|---|---|---|+| [07-agent-trading.md](07-agent-trading.md) | Autonomous trading agents | `robinhood/hood-traders/` |+| [08-agent-launcher.md](08-agent-launcher.md) | Autonomous coin launcher | `robinhood/hood-launcher/` |+| [09-examples.md](09-examples.md) | Examples gallery | `robinhood/robinhood-chain-examples/` |+| [12-threews-markets.md](12-threews-markets.md) | three.ws /markets display + purchase | in-repo (`api/`, `public/`) |+| [13-threews-play.md](13-threews-play.md) | three.ws /play coin worlds + firehose | in-repo |+| [16-alerts-bots.md](16-alerts-bots.md) | Telegram + Discord alert bots (`hood-alerts`) | `robinhood/hood-alerts/` |+| [19-usdg-checkout.md](19-usdg-checkout.md) | USDG checkout for humans (`hood-pay`) | `robinhood/hood-pay/` |++## Wave 4 — synthesis (last)+| Prompt | Product | Folder |+|---|---|---|+| [10-tutorials.md](10-tutorials.md) | Tutorial site (`learn-robinhood-chain`) | `robinhood/learn-robinhood-chain/` |++## Non-negotiables recap+- Read `_shared.md` before starting. Facts there override training data.+- Standalone repos live under `robinhood/<name>/`, MIT © 2026 nirholas, no `git init`, no commits.+- Prompts 12–13 modify the three.ws app itself — same commit gate: leave uncommitted.+- Docs sites are static `/docs` folders (Pages deploy-from-branch). No GitHub Actions anywhere.+- Done = tested + real on-chain evidence + docs + report. See `_shared.md` report format.++Research backing this pack: [PLAN.md](PLAN.md).diff --git a/prompts/robinhood-chain/01-sdk-core.md b/prompts/robinhood-chain/01-sdk-core.mdnew file mode 100644index 000000000..44d806e6a--- /dev/null+++ b/prompts/robinhood-chain/01-sdk-core.md@@ -0,0 +1,83 @@+# 01 — Core SDK: `hoodchain` (the first real Robinhood Chain SDK)++> STATUS: BUILT 2026-07-12 at `robinhood/robinhood-chain-sdk/` (uncommitted). 36 unit + 10 live+> tests green. Testnet-swap E2E blocked on the faucet's Turnstile + Google Sign-In (owner).+> This prompt is retained as the spec of record — do NOT rebuild; audit against it if resuming.++Read `prompts/robinhood-chain/_shared.md` first. It is binding.++## Mission+Build the definitive TypeScript SDK for Robinhood Chain at `robinhood/robinhood-chain-sdk/`.+There is NO official SDK and nothing real on npm — this is a first-mover product and every other+prompt in this pack builds on it. It must be the library you'd expect from Stripe: typed,+tree-shakeable, documented, verified against the live chain.++Names: GitHub repo `robinhood-chain-sdk`; npm `hoodchain` (fallbacks: `hoodchain-sdk`,+`rhchain`). Check availability per `_shared.md`.++## Modules (all real, all verified on-chain)++1. **`client`** — thin factory over viem: `createHoodClient({ chain: 'mainnet' | 'testnet', rpcUrl?, transport? })`+ returning typed public/wallet clients pinned to `robinhood`/`robinhoodTestnet` from+ `viem/chains` (peer dep `viem@^2.55.0`). Multicall batching on by default.+2. **`stocks`** — the Stock Token registry + reads:+ - Build the REAL registry: scrape `https://docs.robinhood.com/chain/contracts` ++ cross-check `BankrBot/skills` `known-contracts.json` + verify every address on Blockscout+ (`/api/v2/tokens/{address}`). Ship it as generated, checked-in data+ (`src/registry/stock-tokens.json`) with a `scripts/refresh-registry.mjs` regenerator that+ re-verifies live. Include symbol, name, address, Chainlink feed address, decimals.+ - `getQuote(symbol)` — Chainlink `latestRoundData()` with staleness guard (configurable+ `maxAgeSeconds`, typed `StaleFeedError`).+ - `getMultiplier(symbol)` — ERC-8056 `uiMultiplier()` read with graceful handling when a+ token predates the interface.+ - `getPosition(address, symbol)` / `getPortfolio(address)` — multiplier-correct balances and+ USD valuation (this is the gap every generic tracker gets wrong — it is the SDK's flagship+ correctness claim; test it explicitly).+3. **`swap`** — real Uniswap v3 quoting + execution on chain 4663: QuoterV2 `quoteExactInputSingle`+ (+ multi-hop via USDG/WETH routes), swap calldata building through the canonical router,+ slippage bounds, deadline handling. Resolve and verify the deployed Uniswap addresses on+ 4663 from official Uniswap deployment docs/Blockscout — do not assume Ethereum-mainnet+ addresses. Works for memecoins and Stock Tokens alike; Stock Token swaps emit the eligibility+ disclosure from `_shared.md` in JSDoc and README.+4. **`usdg`** — USDG address/decimals/`transfer`/`approve`/`permit` (EIP-2612 if the contract+ supports it — verify on Blockscout), `formatUsdg`/`parseUsdg`.+5. **`launchpads`** — watch NOXA + The Odyssey: discover their factory/bonding-curve contracts+ (research their verified contracts on Blockscout; the sniper-bot repos tagged+ `robinhood-chain` on GitHub reference them), decode creation + trade events, expose+ `watchLaunches(onLaunch)` and `getRecentLaunches()`.+6. **`feed`** — sequencer firehose client for `wss://feed.mainnet.chain.robinhood.com`:+ reconnecting WebSocket, decoded L2 message stream, plus a filtered+ `watchTransfers({ token })` helper built on RPC logs for consumers who want simpler events.+7. **`errors` / `types`** — typed error hierarchy, exhaustive exported types, JSDoc on every+ public symbol.++## Non-functional requirements+- ESM + CJS dual build (tsup or tsc), `exports` map, `types`, Node ≥ 20, zero runtime deps+ besides viem (+ `ws` for Node WebSocket only, optional-peer for browser).+- Vitest suite: unit (registry integrity — every entry has a Blockscout-verified checksum+ address; quote math; multiplier math) + integration (`test:live`: real mainnet reads —+ quote AAPL or whichever tokens exist, read USDG totalSupply; real testnet swap E2E using+ faucet ETH + faucet TSLA — actually execute it and assert the receipt).+- `examples/` with 5 runnable scripts (quote, portfolio, swap-testnet, watch-launches, firehose).+- `docs/` static site per `_shared.md`: landing page with LIVE ticking Stock Token prices read+ client-side from the public RPC (this is the screenshot), quickstart, full API reference+ (generated from JSDoc via typedoc into the static site, styled to match), architecture page.++## Done checklist (beyond CLAUDE.md's)+- [ ] Registry ships ≥ 90 verified Stock Tokens with feeds (or the true on-chain count with+ evidence if fewer exist — never pad).+- [ ] `npm test` green; `npm run test:live` green with pasted output; testnet swap tx hash in report.+- [ ] `npm pack` clean; README quickstart runs verbatim in a fresh dir via `npm i ../robinhood-chain-sdk`.+- [ ] docs/index.html shows live prices when opened locally.+- [ ] Report per `_shared.md`, including the chosen npm name and registry token count.++## Build findings (recorded 2026-07-12 — downstream prompts rely on these)+- 95 Stock Tokens verified via shared beacon `0xe10b6f6B275de231345c20D14Ab812db62151b00`;+ 34 have Chainlink feeds (RDD `feeds-robinhood-mainnet.json`).+- Mainnet Uniswap: SwapRouter02 `0xCaf681a66D…5cb2`, QuoterV2 `0x33e885eD…9E7`, factory+ `0x1f7d7550…2EfA` (full addresses in `src/addresses.ts`).+- USDG: 6 decimals, NO EIP-2612 permit. Chainlink feed prices are ALREADY multiplier-adjusted.+- Testnet: no official Uniswap (community deployment, classic SwapRouter w/ struct deadline);+ only liquid pool NFLX/WETH 0.05%.+- NOXA factory `0xD9eC2db5…FCcB` (instant v3, no curve); Odyssey curve factory `0xEb3FeeD2…5a80`+ (TokenCreated/Traded/PoolMigrated).diff --git a/prompts/robinhood-chain/02-sdk-simple-wrapper.md b/prompts/robinhood-chain/02-sdk-simple-wrapper.mdnew file mode 100644index 000000000..ef74a3e43--- /dev/null+++ b/prompts/robinhood-chain/02-sdk-simple-wrapper.md@@ -0,0 +1,47 @@+# 02 — Simple wrapper: `hood-js` (five lines to your first trade)++Read `prompts/robinhood-chain/_shared.md` first. Requires Wave 1 (`robinhood/robinhood-chain-sdk/`)+to exist — install it via `file:../robinhood-chain-sdk` and depend on its npm name.++## Mission+Build `robinhood/hood-js/` — the "just works" layer over the core SDK, for developers who don't+want to know what a viem transport is. One import, sensible defaults, promise-first, browser and+Node. Think `axios` vs `http`. npm name `hood-js` (fallbacks: `hoodjs`, `easyhood`).++## API surface (complete — nothing more, nothing hidden)+```js+import hood from 'hood-js'++await hood.price('AAPL') // → { symbol, usd, updatedAt }+await hood.prices(['AAPL','TSLA','NVDA']) // batched multicall under the hood+await hood.portfolio('0xabc…') // multiplier-correct, USD-valued positions+await hood.coins() // trending memecoins w/ price + 24h (launchpads + Uniswap)+await hood.launches({ live: true }, cb) // stream new launchpad coins+await hood.quote({ sell: 'USDG', buy: 'CASHCAT', amount: 100 }) // swap quote, no wallet needed+await hood.swap({ ...quote, wallet }) // execute — wallet = private key env or injected EIP-1193+hood.testnet() // flip every call to 46630+```+- Zero required config. Public RPC default, `hood.config({ rpcUrl, alchemyKey })` optional.+- Stock Token buy paths require `hood.config({ acknowledgeEligibility: true })` and surface the+ `_shared.md` disclosure in the thrown error otherwise. Memecoins need nothing.+- Every function has a one-line JSDoc + a runnable snippet in the README that matches reality.++## Requirements+- Bundle size budget: ≤ 15 kB gzipped on top of viem (verify with a size check script; print it+ in the report). Browser build works from a `<script type="module">` CDN-style import.+- Friendly errors: no raw viem stack traces — wrap into plain-language messages with a `cause`.+- Vitest: unit (arg validation, formatting) + live (real `hood.price('AAPL')` on mainnet, real+ testnet `hood.swap` with faucet funds — paste tx hash; if faucet remains owner-blocked, run+ the swap against the community testnet router with whatever funded wallet exists, or state+ plainly that the write E2E is pending funding).+- `docs/` site per `_shared.md`: landing page IS the pitch — an interactive REPL-style demo where+ visitors type `hood.price('TSLA')` and see the live answer (client-side, public RPC), a+ copy-paste quickstart, and the full API table. This page must be beautiful enough to trend on+ developer X.+- README: install, 30-second quickstart, API reference table, testnet guide, eligibility note.++## Done checklist+- [ ] The README quickstart runs verbatim (`node quickstart.mjs`) in a fresh folder.+- [ ] Live browser demo returns real prices when docs/index.html is opened locally.+- [ ] Testnet swap tx hash in the report (or explicit funding-blocked status); size budget+ printed; `npm pack` clean.diff --git a/prompts/robinhood-chain/03-sdk-advanced-wrapper.md b/prompts/robinhood-chain/03-sdk-advanced-wrapper.mdnew file mode 100644index 000000000..9269922b7--- /dev/null+++ b/prompts/robinhood-chain/03-sdk-advanced-wrapper.md@@ -0,0 +1,50 @@+# 03 — Advanced toolkit: `hoodkit` (the power-user layer)++Read `prompts/robinhood-chain/_shared.md` first. Requires Wave 1 core SDK+(`file:../robinhood-chain-sdk` + npm name dep).++## Mission+Build `robinhood/hoodkit/` — the advanced wrapper for teams building real products on Robinhood+Chain: streaming, caching, batching, indexing, strategy primitives, React hooks. Where `hood-js`+hides complexity, `hoodkit` weaponizes it. npm `hoodkit` (fallbacks: `hood-kit`, `hoodchain-kit`).++## Modules++1. **`stream`** — unified real-time layer over the sequencer firehose + RPC log subscriptions:+ `streamPrices(symbols)`, `streamSwaps({ pool | token })`, `streamLaunches()`,+ `streamPortfolio(address)`. Backpressure-safe async iterators AND event-emitter forms.+ Automatic reconnect with resume-from-block gap fill (no silently dropped events — test this+ by killing the socket mid-stream in an integration test).+2. **`cache`** — pluggable read-through cache (memory LRU default, Redis adapter interface) with+ per-datatype TTLs (quotes 2s, registry 1h, multipliers 10m); request coalescing so N+ concurrent identical reads → 1 RPC call (test with 100 parallel `getQuote`s → assert 1 fetch).+3. **`batch`** — multicall aggregation with automatic chunking + a `plan()` API that batches+ arbitrary SDK reads into minimal RPC round-trips.+4. **`index`** — lightweight local indexer: sync Transfer/Swap/launch events for a token set+ into SQLite (better-sqlite3), incremental from last synced block, exposing+ `holders(token)`, `candles(token, interval)` (build OHLCV from swap events — real math,+ tested against a known pool's Blockscout history), `volume24h(token)`.+5. **`strategy`** — primitives autonomous agents need (prompt 07 consumes this): position+ tracker with PnL (realized/unrealized, multiplier-aware for Stock Tokens), TWAP executor+ (slice a big swap across time with per-slice slippage bounds), price triggers+ (`onCross(symbol, threshold, cb)`), spend-cap guard, dry-run mode that builds+simulates+ (`eth_call`) without sending.+6. **`react`** — `@hoodkit/react` subpath: `useQuote`, `usePortfolio`, `useLaunches`, `useSwap`+ hooks over the stream/cache layers, SSR-safe, with a small real demo app in `examples/react-demo`+ (Vite) actually run during verification.++## Requirements+- Same packaging bar as the core SDK (ESM+CJS, exports map, Node ≥ 20). Keep heavy deps optional:+ better-sqlite3 and react are optional peer deps; core installs light.+- Vitest: unit for cache/batch/strategy math; integration: live stream 60s of real mainnet+ swaps on a busy pool (paste event count), index a real token's last 1000 blocks and assert+ holder math against Blockscout's holder count (tolerance documented).+- `docs/` static site per `_shared.md`: landing = live dashboard demo (client-side: streaming+ prices + latest launches rendered beautifully), guides per module, API reference (typedoc).+- README: when to use hoodkit vs hood-js vs core SDK (honest decision table).++## Done checklist+- [ ] Reconnect gap-fill test proves no dropped events.+- [ ] Coalescing test proves 100→1. Candle math validated against a real pool.+- [ ] React demo runs (`npm run dev` exercised, screenshot-worthy). `npm pack` clean on both entry points.+- [ ] Live-stream evidence + indexer-vs-Blockscout comparison in the report.diff --git a/prompts/robinhood-chain/04-market-data-api.md b/prompts/robinhood-chain/04-market-data-api.mdnew file mode 100644index 000000000..b0cbc308e--- /dev/null+++ b/prompts/robinhood-chain/04-market-data-api.md@@ -0,0 +1,57 @@+# 04 — Hosted Market Data API: `hood-api` (free tier + x402)++Read `prompts/robinhood-chain/_shared.md` first. Requires Wave 1 core SDK+(`file:../robinhood-chain-sdk`). Coordinates with prompt 05 (`hood402`) — if its middleware+exists when you run, consume it; otherwise implement x402 402-challenge handling inline against+the standard x402 spec and leave a clean seam to swap in `hood402` later.++## Mission+Build `robinhood/hood-api/` — a deployable REST API service that is the missing market-data+layer for Robinhood Chain, monetized with x402. Nobody offers this: RWA.xyz is enterprise-paid,+CoinGecko has no equity semantics. This is the flagship API product.++## Endpoints (all real data, JSON, versioned under `/v1`)++Free (rate-limited by IP, generous):+- `GET /v1/health`, `GET /v1/chain` — chain stats: block height, gas, TVL (DefiLlama), bridge flows.+- `GET /v1/stocks` — all Stock Tokens: Chainlink price, DEX price (Uniswap pool mid), premium/+ discount between the two, uiMultiplier, 24h DEX volume + liquidity (GeckoTerminal/on-chain).+- `GET /v1/stocks/:symbol` — detail: candles (from hoodkit-style swap-event OHLCV or+ GeckoTerminal), holders (Blockscout), feed metadata, contract links.+- `GET /v1/coins` — memecoins: launchpad state (bonding/graduated), price, volume, age, holders.+- `GET /v1/coins/:address` — detail incl. launch info and graduation status.+- `GET /v1/launches` — recent + live launchpad activity (NOXA, The Odyssey).++Paid via x402 (USDC on Base + USDG on Robinhood Chain when hood402 lands; price each $0.001–0.01):+- `GET /v1/portfolio/:address` — multiplier-correct full portfolio with USD valuation + PnL basis.+- `GET /v1/stocks/:symbol/history` — deep OHLCV history.+- `GET /v1/equities` — THE unique one: unified cross-issuer tokenized-equity view — same+ underlying ticker across Robinhood Chain, xStocks (Backed, public no-auth API per their docs)+ and Ondo GM (Chainlink tokenized-equity feeds): normalized price, venue premium/discount+ spread, where it's cheapest. Cache upstreams respectfully.+- `GET /v1/firehose` token + `wss /v1/ws` — real-time stream (launches, big swaps, stock ticks)+ with metered x402 session auth.++## Requirements+- Node 20 + Express (or Hono), no framework bloat; strict input validation (zod); per-endpoint+ cache TTLs; upstream failover (public RPC → Alchemy if `ALCHEMY_KEY` set; CoinGecko →+ GeckoTerminal → on-chain, in the failover style of three.ws market handlers).+- Every response includes `source` + `asOf` fields. Errors are structured+ (`{ error, hint, docs }`) — never a bare 500.+- OpenAPI 3.1 spec (`openapi.json`) generated and served at `/v1/openapi.json`; docs site renders it.+- Deploy: `Dockerfile` (distroless, PORT-aware) + Cloud Run instructions + `vercel.json`+ alternative. Deploy for real only if creds exist; otherwise document exact commands.+- Tests: vitest with real upstream integration tests (hit your own running server via+ `npm run dev` in the test, assert real data shapes; no recorded fixtures for the live suite).+- `docs/` static site per `_shared.md`: landing with LIVE example responses (fetched client-side+ from the deployed URL if deployed, else rendered from a real captured response with a clear+ "sample of live output" label — capture it during your run, from the real server), full+ endpoint reference from the OpenAPI spec, x402 payment walkthrough with a working client+ snippet, pricing table.++## Done checklist+- [ ] Local server run exercised: `curl` transcript for every endpoint in the report (real data).+- [ ] x402 402-challenge → pay → 200 flow proven with a scripted client (testnet/base-sepolia+ settlement acceptable for the E2E; document the mainnet config).+- [ ] `/v1/equities` returns a real cross-venue row for at least 3 tickers with venue spreads.+- [ ] OpenAPI validates; Dockerfile builds; report lists deploy status + owner actions.diff --git a/prompts/robinhood-chain/05-x402-usdg-rail.md b/prompts/robinhood-chain/05-x402-usdg-rail.mdnew file mode 100644index 000000000..90cfaa1d4--- /dev/null+++ b/prompts/robinhood-chain/05-x402-usdg-rail.md@@ -0,0 +1,49 @@+# 05 — x402 on Robinhood Chain: `hood402` (USDG payment rail)++Read `prompts/robinhood-chain/_shared.md` first. Requires Wave 1 core SDK for chain plumbing.++## Mission+Build `robinhood/hood402/` — the x402 payment stack for USDG on Robinhood Chain: server+middleware, client, and facilitator. The only prior art is days old (`project-r0x`, MIT — study+its facilitator design and the canonical `x402` protocol repo/spec; follow the STANDARD x402+scheme exactly rather than inventing a variant, so any x402 client interoperates). npm scope:+`hood402` with subpath exports (fallbacks: `x402-usdg`, `hood-402`).++## Deliverables++1. **Protocol conformance** — implement x402 `exact` scheme for EVM with USDG on chain 4663:+ the SDK build verified USDG has 6 decimals and NO EIP-2612 permit — so verify on Blockscout+ whether it supports EIP-3009 `transferWithAuthorization`; if neither gasless path exists,+ settlement is approve+transferFrom via the facilitator or direct transfer with reference —+ document the mechanism you prove and build on it (this decision is load-bearing).+ Testnet twin on 46630.+2. **`hood402/server`** — Express/Hono/Next middleware: `paywall({ price, payTo, network: 'robinhood' })`+ issuing spec-compliant 402 challenges and verifying/settling via facilitator or self-settle mode.+3. **`hood402/client`** — fetch wrapper: intercept 402 → sign payment (viem wallet) → retry,+ with spend caps per origin and a session cache. Works in Node and browser (injected wallet).+4. **Facilitator service** — `facilitator/` subfolder: verify + settle endpoints per x402 spec,+ Dockerfile, Cloud Run deploy docs, idempotent settlement with a small SQLite ledger, metrics+ endpoint. This is what we run in production; keys via env.+5. **Interop proof** — E2E script: a demo paid endpoint + the client completing a REAL paid+ request with USDG on testnet 46630 (faucet ETH for gas). If testnet USDG doesn't exist, run+ the E2E on mainnet with a $0.001 real payment funded from the owner's wallet if creds are+ present; otherwise prove the full flow up to settlement broadcast in simulation (`eth_call`)+ and mark settlement as pending-owner-funding in the report. Deploy NOTHING fake. State+ plainly which path you took.+6. **three.ws seam** — a short `INTEGRATION.md` describing exactly how three.ws's existing x402+ catalog adds `network: robinhood-chain` as an accepted rail using this package (env vars,+ settlement wallet, facilitator URL). Do not modify three.ws in this prompt.++## Requirements+- Strict TypeScript, ESM+CJS, vitest unit suite for challenge/verify/settle state machine+ (malformed payloads, replay, expiry, wrong-chain, underpayment — each a test).+- `docs/` static site per `_shared.md`: landing explains x402-on-Robinhood-Chain in one screen+ with an animated request/402/pay/200 diagram (CSS, no video), quickstarts for the three+ pieces, spec-conformance notes, r0x comparison (fair, factual).+- README: security model, key handling, spend caps, replay protection.++## Done checklist+- [ ] USDG settlement mechanism verified from the actual contract, cited by address + Blockscout link.+- [ ] State-machine tests green; interop E2E evidence per deliverable 5 with the honest path taken.+- [ ] Facilitator Docker image builds; `npm pack` clean on both packages.+- [ ] INTEGRATION.md actionable enough that a three.ws agent can wire the rail without research.diff --git a/prompts/robinhood-chain/06-mcp-servers.md b/prompts/robinhood-chain/06-mcp-servers.mdnew file mode 100644index 000000000..0fbab48b4--- /dev/null+++ b/prompts/robinhood-chain/06-mcp-servers.md@@ -0,0 +1,51 @@+# 06 — MCP servers: `hood-mcp` (chain data + trading for AI agents)++Read `prompts/robinhood-chain/_shared.md` first. Requires Wave 1 core SDK+(`file:../robinhood-chain-sdk`).++## Mission+Build `robinhood/hood-mcp/` — production MCP servers for Robinhood Chain. Robinhood's own MCP+covers only their US brokerage; the chain itself has just two 0-star read-only hobby MCPs.+Ours is the productized one: full data surface + a guarded trading surface. npm `hood-mcp`+(fallbacks: `hoodchain-mcp`, `robinhood-chain-mcp-server`).++## Deliverables — two servers, one package++1. **`hood-mcp` (data server, zero-config, read-only)** — stdio + streamable-HTTP transports,+ built on `@modelcontextprotocol/sdk` (use the current SDK — check npm for the latest major):+ - `list_stock_tokens`, `get_stock_quote` (Chainlink + DEX price + premium),+ `get_portfolio` (multiplier-correct), `get_coin` / `list_trending_coins`,+ `get_recent_launches`, `watch_launches` (streamable), `get_chain_stats`,+ `search_token` (symbol/name/address via registry + Blockscout).+ - Every tool: precise JSON schema, one-line description an LLM can route on, real error+ messages. No API key required — public RPC default, `ALCHEMY_KEY` env optional.+2. **`hood-mcp/trading` (wallet server, explicitly opt-in)** — separate entry point, requires+ `ROBINHOOD_CHAIN_PRIVATE_KEY` + `HOOD_MCP_ENABLE_TRADING=1`:+ - `get_swap_quote`, `execute_swap` (memecoins; Stock Token buys additionally require+ `HOOD_MCP_ACKNOWLEDGE_ELIGIBILITY=1` per `_shared.md`), `transfer_usdg`, `get_my_portfolio`.+ - Hard spend caps via `HOOD_MCP_MAX_SPEND_USDG` (per-call and per-session), every mutating+ tool returns the simulation result and requires a `confirm: true` argument round-trip.+3. **Registry listings** — prepare (don't submit) the metadata for the MCP registries the+ ecosystem actually uses (modelcontextprotocol registry `server.json`, Smithery config), plus+ Claude Desktop / Claude Code / Cursor install snippets in the README — exact, tested JSON.+4. **Optional x402 monetization seam** — if `robinhood/hood402` exists when you run, add a+ config flag that paywalls the expensive data tools (history, firehose) using its middleware+ on the HTTP transport; otherwise leave a documented seam. Free tools stay free either way.++## Requirements+- Vitest: tool-schema validation tests + a scripted MCP client (SDK's client) exercising every+ tool for real: data tools against mainnet, trading tools against testnet 46630 with faucet+ funds — a REAL `execute_swap` round-trip (simulate → confirm → receipt) with tx hash pasted+ (if faucet funding is still owner-blocked, prove through simulation and say so plainly).+- `docs/` static site per `_shared.md`: landing shows a real Claude Code session transcript+ (run it yourself with the local server via `claude mcp add`) doing "what's AAPL trading at+ on-chain and what's the premium?" — the answer with live numbers is the screenshot. Install+ matrix (Claude Code / Desktop / Cursor / any stdio client), tool reference, safety model page.+- README: 60-second install per client, both servers, env table, safety model.++## Done checklist+- [ ] Every tool exercised by the scripted client with real outputs in the report.+- [ ] Real testnet swap through the trading server (hash in report) or explicit funding-blocked+ status with simulation evidence. Spend-cap + confirm-gate tests green.+- [ ] Claude Code session actually run against the local build; transcript captured for docs.+- [ ] `npm pack` clean; registry metadata validates; report lists owner actions (registry submissions).diff --git a/prompts/robinhood-chain/07-agent-trading.md b/prompts/robinhood-chain/07-agent-trading.mdnew file mode 100644index 000000000..8b091f4d6--- /dev/null+++ b/prompts/robinhood-chain/07-agent-trading.md@@ -0,0 +1,56 @@+# 07 — Autonomous trading agents: `hood-traders`++Read `prompts/robinhood-chain/_shared.md` first. Wave 3: requires core SDK; use `hoodkit`'s+`strategy`/`stream` modules if built (they should be — check `robinhood/hoodkit/`), else the+core SDK directly with a note in your report.++## Mission+Build `robinhood/hood-traders/` — a framework + runnable fleet of autonomous agents that trade+Robinhood Chain memecoins and monitor Stock Token premium/discount, in the spirit of+three.ws/play/arena (autonomous agents, live P&L, every trade real and signed). This is both a+real product and the reference app proving the whole stack.++## Deliverables++1. **Agent framework** (`src/framework/`) — an agent = strategy + wallet + risk budget + journal:+ - Lifecycle: observe (hoodkit streams) → decide (strategy fn) → simulate (`eth_call`) →+ execute (real swap) → journal (SQLite: every decision, tx, PnL mark).+ - Risk layer is NOT optional: per-agent `MAX_POSITION_USDG`, `MAX_DAILY_SPEND_USDG`,+ `MAX_SLIPPAGE_BPS`, global kill switch (SIGINT + `KILL` file + HTTP `/kill`), cooldowns.+ - Modes: `paper` (default — full pipeline, simulation-only, marked clearly in every output)+ and `live` (requires `HOOD_TRADERS_LIVE=1` + funded key). Paper mode is a real simulation+ against live market data, not fake data.+2. **Three real strategies** (`src/strategies/`) — honest, simple, documented with their edge+ hypothesis and failure modes; no ML theater:+ - `launch-sniper` — enter new launchpad coins passing liquidity/holder-distribution filters,+ exit on take-profit/stop/time.+ - `momentum` — volume+price breakout entries on graduated coins, trailing stop exits.+ - `premium-watch` — Stock Token Chainlink-vs-DEX premium tracker that trades the+ convergence ONLY in eligible configuration (`_shared.md` gate), otherwise alerts-only.+ Default: alerts-only.+3. **Live dashboard** (`dashboard/`) — served by the agent process: fleet overview, per-agent+ equity curve, open positions, decision journal (why each trade fired), kill buttons.+ Vanilla JS + the design bar from `_shared.md`. This is the demo and the screenshot.+4. **Deploy** — Dockerfile + Cloud Run (or any always-on host) docs; `docker compose up` runs+ fleet + dashboard locally in paper mode with zero config.++## Requirements+- Vitest: risk-layer tests are the priority (cap breach → refusal; kill switch mid-loop;+ slippage bound; journal integrity). Strategy logic unit-tested on real recorded market+ snapshots captured during your run (capture them yourself from live data; they're inputs to+ deterministic tests, not runtime mocks).+- E2E: run the fleet in paper mode against LIVE mainnet data for ≥ 30 minutes; then execute at+ least one REAL testnet-46630 trade through the full pipeline (faucet funds; if funding is+ owner-blocked, full-pipeline simulation with the blocker stated plainly) — evidence in report.+- `docs/` static site per `_shared.md`: landing = the dashboard aesthetic with a real captured+ session (clearly labeled paper/live), architecture page (the observe→journal loop), strategy+ docs with honest risk disclosure, "run your own in 5 minutes" quickstart.+- README top: prominent risk disclaimer (autonomous trading, real funds, no guarantees) — plain+ language, not legalese soup.++## Done checklist+- [ ] 30-min live-data paper session evidence (journal excerpt + dashboard screenshot-worthy state).+- [ ] Real testnet trade through the full pipeline (or explicit funding-blocked status).+ Risk tests green. Kill switch proven (test output).+- [ ] `docker compose up` → working dashboard on first try in a clean checkout.+- [ ] Report: honest assessment of each strategy's edge hypothesis + owner actions (funding for live).diff --git a/prompts/robinhood-chain/08-agent-launcher.md b/prompts/robinhood-chain/08-agent-launcher.mdnew file mode 100644index 000000000..1724f2d2b--- /dev/null+++ b/prompts/robinhood-chain/08-agent-launcher.md@@ -0,0 +1,59 @@+# 08 — Autonomous coin launcher: `hood-launcher`++Read `prompts/robinhood-chain/_shared.md` first. Wave 3: requires core SDK (`launchpads` module).++## Mission+Build `robinhood/hood-launcher/` — an autonomous agent (and a human-driven CLI/API around the+same core) that launches coins on Robinhood Chain end-to-end: concept → name/ticker/description+→ artwork → deploy on a launchpad (NOXA primary) or direct ERC-20 + Uniswap v3 pool → announce.+The pump.fun-launcher playbook, ported to chain 4663 — nothing like it exists there yet.++## Deliverables++1. **Launch rails** (`src/rails/`) — research first, then implement what is REAL:+ - `noxa` rail: the SDK build located the NOXA factory (`0xD9eC2db5…FCcB`, instant v3 pools,+ no bonding curve — full address in the SDK's `addresses.ts`). Reverse-engineer its `create`+ calldata from a recent real launch tx on Blockscout; implement create + initial-buy. If+ NOXA has an official API/SDK, prefer it and cite it.+ - `odyssey` rail: curve factory `0xEb3FeeD2…5a80` (TokenCreated/Traded/PoolMigrated events)+ — implement only if its create path is provable from verified contracts; otherwise+ document why it's excluded. Never guess calldata.+ - `direct` rail: deploy a clean, audited-pattern ERC-20 (OpenZeppelin v5, fixed supply,+ no owner mint, renounced) + create/initialize a Uniswap v3 pool + seed LP + burn or lock+ LP per config. Every contract verified on Blockscout via API as part of the pipeline.+2. **Concept engine** (`src/concept/`) — name/ticker/description/lore generation via the LLM the+ operator configures (`OPENAI_API_KEY`/`ANTHROPIC_API_KEY` — support both, no proxy of ours),+ uniqueness check against existing on-chain tickers (registry + Blockscout search), artwork+ via the three.ws forge free lane (`https://three.ws` public forge/3D endpoints are usable —+ generate a 3D-render logo; this is our differentiator: every hood-launcher coin ships with a+ 3D logo GLB + rendered PNG) with a documented plain-image fallback (any image the operator+ supplies). Config-first: fully deterministic launches (operator supplies everything) must+ work with zero LLM calls.+3. **Autonomous mode** (`src/auto/`) — scheduler that watches launch-meta conditions (e.g.+ trending narratives from the free three.ws crypto-news digest API), proposes a launch,+ and requires either `AUTO_APPROVE=1` or an operator approve step (HTTP endpoint / CLI+ confirm). Hard caps: `MAX_LAUNCHES_PER_DAY`, `MAX_SEED_USDG`. Kill switch per prompt 07's bar.+4. **CLI + API** — `hood-launch` CLI (`hood-launch create --config coin.json --rail noxa`) and a+ small HTTP API for programmatic use, sharing one core.+5. **Testnet-first pipeline** — full E2E on 46630: deploy, pool, buy, verify — real tx hashes+ (direct rail at minimum; testnet has no official Uniswap — use the community deployment the+ SDK documents). Mainnet execution gated behind `LIVE=1` + funding; do not launch anything+ real on mainnet during the build (a mainnet token launch is an outward-facing, irreversible+ act — that call is the owner's).++## Requirements+- Ethics/abuse posture in README: this tool creates real tradeable assets; document operator+ responsibility, no-impersonation policy (concept engine refuses trademarked/person-named+ coins — enforce with a checkable denylist + LLM screen), and the caps.+- Vitest: calldata builders against captured real factory transactions; cap enforcement; ticker+ uniqueness. E2E on testnet with pasted hashes + Blockscout verification links.+- `docs/` static site per `_shared.md`: landing shows a real testnet launch walkthrough+ (concept → 3D logo → live coin on the testnet explorer), rail docs, autonomous-mode guide,+ safety page.++## Done checklist+- [ ] NOXA calldata proven against a real historical launch tx (cite it) AND a real testnet+ execution of whichever rails testnet supports (direct rail at minimum).+- [ ] A complete testnet coin exists: token + pool + initial buy + verified contract + 3D logo.+- [ ] Caps/kill/approval tests green. No mainnet launches performed.+- [ ] Report: rails shipped vs excluded (with evidence), owner actions for mainnet go-live.diff --git a/prompts/robinhood-chain/09-examples.md b/prompts/robinhood-chain/09-examples.mdnew file mode 100644index 000000000..ad58a62ec--- /dev/null+++ b/prompts/robinhood-chain/09-examples.md@@ -0,0 +1,51 @@+# 09 — Examples gallery: `robinhood-chain-examples`++Read `prompts/robinhood-chain/_shared.md` first. Wave 3: consumes everything built in Waves 1–2+(core SDK, hood-js, hoodkit, hood-api, hood402, hood-mcp). Check which siblings exist in+`robinhood/` and cover what's actually there; note any gaps in the report.++## Mission+Build `robinhood/robinhood-chain-examples/` — THE examples repo for the chain: the place every+new Robinhood Chain developer lands from a search. Each example is small, complete, runnable,+and real. This repo is also our SDK's honesty check — if an example is awkward to write, file+that as feedback in your report.++## Structure+```+examples/+ 01-read-stock-price/ # viem-only, no SDK — the "hello chain" baseline+ 02-stock-price-sdk/ # same thing in 3 lines of hoodchain+ 03-portfolio-valuation/ # multiplier-correct portfolio (the correctness showpiece)+ 04-swap-memecoin/ # quote + execute on testnet, faucet-funded+ 05-watch-launches/ # live launchpad stream to console+ 06-firehose/ # sequencer feed → filtered event stream+ 07-live-price-webpage/ # single index.html, client-side RPC, ticking prices+ 08-portfolio-dashboard/ # small Vite app on hoodkit react hooks+ 09-x402-paid-api-call/ # client paying a hood-api endpoint via hood402+ 10-x402-sell-your-api/ # 20-line paid endpoint with hood402 middleware+ 11-mcp-agent-session/ # scripted MCP client driving hood-mcp tools+ 12-telegram-price-bot/ # grammY bot: /price AAPL, /trending — deployable free-tier+ 13-launch-a-coin-testnet/ # hood-launcher direct rail on 46630+ 14-agent-paper-trader/ # minimal hood-traders strategy in paper mode+```+Each folder: `README.md` (what it shows, prerequisites, exact run commands, expected output —+real captured output), minimal deps, `package.json` with a single `npm start`.++## Requirements+- RUN EVERY EXAMPLE yourself; paste real output snippets into each README. Anything needing+ funds uses testnet 46630 + faucet (if the faucet remains owner-blocked, mark those examples'+ outputs as pending-funding — never fabricate output). Anything needing keys documents the+ env var and fails with a helpful message when missing (test that path too).+- Root README: gallery table (example → concept → difficulty → what it proves) + a+ "which package do I need?" decision map, consistent with hoodkit's decision table.+- `docs/` static site per `_shared.md`: gallery landing where example 07's live-price page is+ EMBEDDED and running (it's client-side — it works on Pages), with per-example pages rendering+ the READMEs beautifully with syntax highlighting (build-time rendered to static HTML, no+ client-side markdown fetching).+- Keep dependencies per example minimal and pinned `^`. No shared root node_modules trickery —+ each example installs standalone.++## Done checklist+- [ ] All examples run; captured outputs in READMEs; testnet hashes where applicable.+- [ ] Gallery site works locally as static files; example 07 lives inside it.+- [ ] SDK feedback list in the report (rough edges you hit — this feeds fixes upstream).diff --git a/prompts/robinhood-chain/14-wallet-connect-kit.md b/prompts/robinhood-chain/14-wallet-connect-kit.mdnew file mode 100644index 000000000..74edb8289--- /dev/null+++ b/prompts/robinhood-chain/14-wallet-connect-kit.md@@ -0,0 +1,53 @@+# 14 — Wallet & onboarding kit: `hood-connect`++Read `prompts/robinhood-chain/_shared.md` first. Wave 2: requires core SDK+(`file:../robinhood-chain-sdk`).++## Mission+Build `robinhood/hood-connect/` — the wallet + onboarding kit for Robinhood Chain dApps.+Chain 4663 is NOT a default network in any wallet; every dApp there needs "add network →+fund via bridge → connect" and today each developer hand-rolls it. This kit makes it one+component. Confirmed ecosystem gap (no wagmi connector kit / wallet UI kit exists). npm+`hood-connect` (fallbacks: `hoodconnect`, `@hoodkit/connect`).++## Deliverables++1. **`hood-connect/core`** (framework-free) —+ - `addNetwork(provider)` — EIP-3085 `wallet_addEthereumChain` for 4663/46630 with the+ official params (from viem chain defs), plus EIP-6963 multi-wallet discovery.+ - `ensureChain(provider)` — connect → add-if-missing → switch, one call, typed states.+ - Balance bootstrap check: detects an empty wallet on 4663 and returns funding options.+2. **`hood-connect/react`** — `<HoodConnectButton />` (the whole flow in one component:+ discover wallets → connect → switch/add chain → show address + ETH/USDG balances),+ `useHoodAccount()`, `useEnsureChain()`. Headless hooks + a styled default skin matching the+ `_shared.md` design bar; every visual state designed (disconnected, wrong-chain, adding,+ connected, error, no-wallet-installed with install links).+3. **Funding funnel** — `<FundWallet />`: live bridge routing via the LI.FI SDK/API (Robinhood+ Chain is supported — verify current route support against their API during the build, fall+ back to Relay if LI.FI lacks a route) so users move ETH/USDC from any chain to 4663 without+ leaving the dApp; plus a "from Robinhood app" path documenting Robinhood Wallet withdrawal.+ Real quotes, real route execution (test on a small real transfer if funds are available;+ otherwise verify to the quote/route step and say so).+4. **"Add Robinhood Chain" button-as-a-service** — a tiny embeddable snippet (`docs/add.html`,+ linkable on Pages) any site can iframe/link so "Add to wallet" works from README badges.+ Include the markdown badge snippet in the README.+5. **Demo app** — `examples/demo/` (Vite): connect, fund, read balance, swap 1 USDG via the+ core SDK — the full onboarding journey, exercised in a real browser during the build.++## Requirements+- Wagmi optionality: ship a wagmi v2 config export (`hood-connect/wagmi`) for teams already on+ wagmi, but core must not require wagmi or React.+- Vitest: chain-param correctness (assert against viem defs, not copies), state machines for+ ensureChain (each wallet-rejection path), EIP-6963 discovery with a scripted mock provider+ (test-only harness, clearly not shipped code).+- Real-browser verification of the demo app with at least one real wallet extension (document+ which; headless + extension via Playwright is acceptable).+- `docs/` static site per `_shared.md`: landing = the live connect button working on Pages+ (connectable by any visitor with a wallet), integration guide (vanilla/React/wagmi), funding+ funnel docs, the add-network badge gallery.++## Done checklist+- [ ] Demo journey completed in a real browser (evidence in report; tx hash if funding/swap ran).+- [ ] Connect button works ON the Pages docs site itself.+- [ ] Chain params provably derived from viem (test), never duplicated by hand.+- [ ] `npm pack` clean for all entry points; README badge snippet renders.diff --git a/prompts/robinhood-chain/15-tokenlist.md b/prompts/robinhood-chain/15-tokenlist.mdnew file mode 100644index 000000000..3825aa0e2--- /dev/null+++ b/prompts/robinhood-chain/15-tokenlist.md@@ -0,0 +1,51 @@+# 15 — Canonical token list: `hood-tokenlist`++Read `prompts/robinhood-chain/_shared.md` first. Wave 2: requires core SDK's verified registry+(`robinhood/robinhood-chain-sdk/`).++## Mission+Build `robinhood/hood-tokenlist/` — THE token list for Robinhood Chain in the Uniswap tokenlist+standard. None exists; the first trusted list becomes infrastructure every DEX UI, wallet, and+aggregator consumes. This is a data product: its value is verification rigor + freshness.+npm `hood-tokenlist` (fallbacks: `robinhood-chain-tokenlist`, `@hoodkit/tokenlist`).++## Deliverables++1. **`tokenlist.json`** — schema-valid per `@uniswap/token-lists` (validate in CI-less test):+ - All Stock Tokens from the SDK registry (re-verify each against Blockscout during build).+ - USDG, WETH, and canonical bridged assets.+ - Vetted memecoins: graduated launchpad coins passing objective inclusion criteria you+ define and PUBLISH (e.g. graduated to Uniswap, ≥ N days old, ≥ N holders, liquidity ≥ $X,+ verified contract, no honeypot flags via simulated sell). The criteria doc is part of the+ product — inclusion must be rules-based, never editorial.+ - Logos: Stock Tokens get clean generated ticker-monogram SVGs (consistent system, no+ trademarked logos — we cannot ship Apple's logo); memecoins use their on-chain/launchpad+ metadata image where resolvable, monogram fallback. All assets self-hosted in the repo.+2. **Extensions** — use the tokenlist `extensions` field for our value-add per token:+ `chainlinkFeed`, `uiMultiplier` support flag, `assetClass: 'stock-token' | 'memecoin' | 'stablecoin'`,+ `launchpad`, eligibility note pointer for stock tokens. Document the extension schema.+3. **Refresh pipeline** — `scripts/refresh.mjs`: re-verifies every entry live (exists, symbol+ matches, still has liquidity), applies inclusion/removal rules, bumps tokenlist version+ semantics correctly (major = removal, minor = add, patch = metadata). Deterministic output,+ meaningful diff. Document the operational cadence (owner runs or crons it).+4. **Distribution surfaces** — the list served from the Pages docs site at a stable URL+ (`docs/tokenlist.json` mirrored from the canonical root file by the build script), npm+ package exporting the JSON + a typed loader, README instructions for adding the list to+ Uniswap/wallet UIs by URL.++## Requirements+- Tests: schema validation, address checksums, no-duplicates, logo file existence, inclusion-+ rule unit tests, and a live re-verification test hitting Blockscout for a sample.+- `docs/` static site per `_shared.md`: landing renders the ENTIRE list beautifully live from+ the JSON (searchable/filterable table with logos, class badges, feed links) — it doubles as+ the chain's de-facto token directory; criteria page; extension schema page; "use this list"+ integration snippets.+- Honesty rule: if a memecoin fails criteria, it's out — no exceptions, no $THREE-style+ promotion of any token in this list (it's neutral infrastructure; note: $THREE is Solana and+ does not belong here regardless).++## Done checklist+- [ ] Schema-valid list with every entry re-verified live during the build (counts in report).+- [ ] Inclusion criteria published + unit-tested; refresh script idempotent (run twice → no diff).+- [ ] Directory page renders the real list locally; stable-URL serving documented.+- [ ] `npm pack` clean; report includes list stats (tokens by class, exclusions with reasons).diff --git a/prompts/robinhood-chain/16-alerts-bots.md b/prompts/robinhood-chain/16-alerts-bots.mdnew file mode 100644index 000000000..b4ae99fe4--- /dev/null+++ b/prompts/robinhood-chain/16-alerts-bots.md@@ -0,0 +1,53 @@+# 16 — Alert bots: `hood-alerts` (Telegram + Discord)++Read `prompts/robinhood-chain/_shared.md` first. Wave 3: requires core SDK; use hoodkit streams+and the hood-api service if present (check `robinhood/`), else SDK directly — note what you used.++## Mission+Build `robinhood/hood-alerts/` — the alert layer for Robinhood Chain: Telegram and Discord bots+plus the shared alert engine. $560M/day of memecoin volume and zero alert tooling exists; in+every prior ecosystem the alert bot is the most-shared product. Free tier broad, premium tier+paid. This is a hosted service product (Cloud Run), not just a library.++## Deliverables++1. **Alert engine** (`src/engine/`) — one stream-consumer, many subscribers:+ - Event detectors: new launch (with launchpad + initial metrics), graduation, whale trade+ (configurable USD threshold, per-token or chain-wide), price move (±% over window),+ new-holder-count milestones, Stock Token premium/discount crossing a threshold (the arb+ alert — unique to us), liquidity pulls (LP removal > X% — a rug early-warning).+ - Dedup, per-subscriber rate limiting, quiet hours, batching (digest mode).+ - Persistence: SQLite (subscriptions, delivery log, dedup state); clean adapter seam for+ Postgres.+2. **Telegram bot** (grammY) — `/watch <token|launches|whales|premiums>`, `/unwatch`, `/list`,+ `/threshold`, `/digest on|off`, inline token cards (price, chart link to three.ws markets+ page from prompt 12, Blockscout link). Group-chat support with admin-only config.+3. **Discord bot** (discord.js) — same feature set via slash commands + rich embeds; per-channel+ subscriptions.+4. **Premium tier** — free: 3 subscriptions, 60s minimum granularity. Premium: unlimited,+ real-time, premium-arb + rug-warning detectors. Payment: x402 USDC deep-link flow via the+ existing three.ws x402 stack OR hood402 USDG if built — implement ONE for real end-to-end+ (payment → entitlement flip → premium delivery), document the other as configurable.+ Entitlements in the DB with expiry.+5. **Ops** — Dockerfile, single process runs engine + both bots (env-gated), `/healthz`,+ graceful shutdown, structured logs. Deploy docs (Cloud Run + Scheduler-less; it's a+ long-running service — min-instances 1). Deploy for real only if creds present.++## Requirements+- Bot UX bar: every command has helpful replies, unknown-command help, designed empty states+ ("you watch nothing yet — try /watch launches"). No raw JSON at users, ever.+- Vitest: detector logic on captured real event streams (capture during build), dedup/rate+ limit, entitlement state machine.+- E2E: run both bots with REAL bot tokens you create (throwaway bot accounts — document names+ in the report), subscribe a real test chat, capture ≥ 3 real alerts fired from live chain+ activity (screenshots/transcript in report). Real payment E2E for the premium flow on the+ cheapest real rail available (document the path taken and its cost).+- `docs/` static site per `_shared.md`: landing = real alert screenshots + live "what would+ have alerted in the last hour" feed rendered client-side from public data, command+ reference for both platforms, premium pricing page, self-host guide.++## Done checklist+- [ ] Real alerts received in a real Telegram chat AND Discord channel (evidence in report).+- [ ] Premium purchase → entitlement → premium alert proven once for real.+- [ ] Detector + entitlement tests green; `docker build` clean.+- [ ] Report: bot handles created, deploy status, owner actions (prod bot identity, hosting).diff --git a/prompts/robinhood-chain/17-erc8056.md b/prompts/robinhood-chain/17-erc8056.mdnew file mode 100644index 000000000..c71b14da8--- /dev/null+++ b/prompts/robinhood-chain/17-erc8056.md@@ -0,0 +1,50 @@+# 17 — ERC-8056 reference: `erc8056` (own the standard)++Read `prompts/robinhood-chain/_shared.md` first. Wave 2 (small, independent — only needs viem+and the chain). Requires core SDK only for cross-checking, not as a dependency.++## Mission+Build `robinhood/erc8056/` — the reference implementation and definitive explainer for+ERC-8056 (`uiMultiplier()`), the corporate-actions standard Robinhood's Stock Tokens use.+It is brand-new, under-documented, and every naive integrator values positions wrong after a+split or dividend. A tiny, perfect package + the canonical explainer site = permanent authority+over the chain's one novel standard. npm `erc8056` (fallbacks: `erc-8056`, `ui-multiplier`).++## Deliverables++1. **Research first, cite everything** — locate the actual ERC/EIP draft text (search+ eips.ethereum.org / ethereum-magicians / Robinhood docs), read a real Stock Token contract's+ verified source on Blockscout, and document the TRUE semantics: multiplier precision/decimals,+ when it changes (splits, reverse splits, dividends?), whether feeds are pre- or+ post-multiplier (the core SDK team found feeds ALREADY multiplier-adjusted — verify+ independently and reconcile; this exact confusion is why the package must exist).+2. **`erc8056` package** (TypeScript, viem peer) —+ - Minimal ABI export + `readUiMultiplier(client, token)` with graceful non-implementer+ detection (`supportsErc8056()`).+ - `trueBalance({ raw, multiplier })`, `trueValue({ raw, multiplier, price, priceIsAdjusted })`+ — the correctness math with EXPLICIT handling of the pre/post-adjusted price question,+ typed so misuse is hard (distinct `AdjustedPrice`/`RawPrice` branded types).+ - `watchMultiplier(client, token, cb)` — detect corporate-action events.+ - Solidity: `IERC8056.sol` interface + a commented reference consumer contract in+ `contracts/` (Foundry project, real tests with fork-mode against a live Stock Token —+ `forge test --fork-url` the public RPC).+3. **The explainer site** (`docs/`, per `_shared.md`) — "Understanding ERC-8056" as the+ canonical resource: what it is, why it exists, the wrong-vs-right worked example with REAL+ on-chain numbers from a real token, live demo widget reading a real multiplier client-side,+ integration recipes (JS + Solidity), FAQ built from the ambiguities you resolved in+ deliverable 1. Write it so it ranks: precise title/meta/headings, self-contained.++## Requirements+- Vitest: math with branded-type misuse cases (must not compile where wrong — use type-level+ tests via `tsd` or expect-type), live read against ≥ 3 real Stock Tokens (paste multipliers).+- Foundry tests green in fork mode (paste run output).+- Package stays TINY (< 5 kB gzipped, zero deps besides viem peer). `npm pack` clean.+- Every semantic claim in the site is sourced (spec link, contract line, or an on-chain+ observation you made — no folklore).++## Done checklist+- [ ] Pre/post-adjusted price question answered definitively with on-chain evidence, and the+ API makes the wrong usage a type error.+- [ ] Live multiplier reads on 3+ tokens; fork tests green; type-level tests green.+- [ ] Explainer reads as the best resource on the topic that exists anywhere.+- [ ] Report: spec citations, ambiguities resolved, anything upstream (core SDK) should change.diff --git a/prompts/robinhood-chain/18-status-page.md b/prompts/robinhood-chain/18-status-page.mdnew file mode 100644index 000000000..68e25cf26--- /dev/null+++ b/prompts/robinhood-chain/18-status-page.md@@ -0,0 +1,48 @@+# 18 — Chain status: `hood-status`++Read `prompts/robinhood-chain/_shared.md` first. Wave 2 (independent; core SDK optional).++## Mission+Build `robinhood/hood-status/` — the status page for Robinhood Chain. Nobody runs one; every+"is the chain down?" search should land here. Two pieces: a tiny probe worker (Cloud Run) and a+beautiful static front end (GitHub Pages) — with a degraded-but-useful mode where the Pages+site probes client-side if the worker is unreachable (never a dead status page).++## Deliverables++1. **Probe worker** (`worker/`) — every 30s, measure and persist (SQLite, rolling 90 days):+ - Public RPC + Alchemy (if key) latency/availability (`eth_blockNumber` round-trip).+ - Block production: height progression, blocks/min, detect stalls (100ms-block chain → a+ quiet minute is an incident).+ - Sequencer feed health: WS connect, message rate, lag vs RPC head.+ - Gas: base fee percentiles.+ - Blockscout API availability; bridge canonical contract activity heartbeat.+ - Chainlink feed freshness: sample 5 Stock Token feeds' `updatedAt` age (market-hours aware —+ document expected weekend behavior honestly rather than alarming on it).+ - Serves `GET /api/status` (current + incidents) and `GET /api/history?metric=…&window=…`+ JSON with CORS open. Incident detection = threshold rules, persisted with start/end.+2. **Status front end** (`docs/`, per `_shared.md`) — the classic status-page layout done+ beautifully: overall banner (operational/degraded/down), per-component rows with 90-day+ uptime bars, latency sparklines, live-updating current numbers, incident history. Reads the+ worker API; if unreachable, flips to client-side direct probing (RPC + feed from the+ browser) with a "direct probe mode" note — designed, not apologetic.+3. **Badges + embeds** — SVG status badge endpoint on the worker (`/badge.svg`) for READMEs+ (our other repos should adopt it — note this in the report), and an embeddable status+ snippet.+4. **Ops** — Dockerfile, Cloud Run deploy docs (min-instances 1), env table, data-retention+ note. Deploy for real if creds present.++## Requirements+- Honest thresholds: publish the rules (what counts as degraded/down) on a methodology page.+ No fake green — if a probe can't run, show unknown, not operational.+- Vitest: incident state machine (flap suppression, start/end edges), threshold rules, badge+ rendering. Integration: run the worker live ≥ 30 min and show real collected series.+- Front end works opened locally as static files (direct-probe mode proves it).+- Design bar: this page will be screenshot in outage threads — make the uptime bars and+ incident timeline genuinely beautiful in both themes.++## Done checklist+- [ ] 30+ min of real probe data collected; screenshots-worthy page rendering it locally.+- [ ] Direct-probe fallback proven by opening docs/ without the worker running.+- [ ] Incident machine tests green; badge renders; Docker builds.+- [ ] Report: deploy status, methodology summary, suggested badge adoption across our repos.diff --git a/prompts/robinhood-chain/19-usdg-checkout.md b/prompts/robinhood-chain/19-usdg-checkout.mdnew file mode 100644index 000000000..9a6e67761--- /dev/null+++ b/prompts/robinhood-chain/19-usdg-checkout.md@@ -0,0 +1,54 @@+# 19 — USDG checkout: `hood-pay`++Read `prompts/robinhood-chain/_shared.md` first. Wave 3: requires core SDK (`usdg` module);+complements hood402 (machine payments) — this is HUMAN commerce. If hood402 exists, share its+verification primitives where sensible; do not duplicate protocol code.++## Mission+Build `robinhood/hood-pay/` — Stripe-Checkout-grade payments in USDG on Robinhood Chain:+an embeddable checkout widget, hosted payment links, and a merchant verification library.+USDG is the chain's dollar rail (>$260M week one) and no commerce tooling exists for it.+npm `hood-pay` (fallbacks: `hoodpay`, `usdg-checkout`).++## Deliverables++1. **`hood-pay/widget`** — embeddable checkout (vanilla JS, one `<script>` + one div):+ merchant configures `{ payTo, amount | dynamic, memo, onSuccess }`; buyer flow = connect+ wallet (reuse hood-connect if built — check `robinhood/hood-connect/`; else EIP-6963+ inline) → ensure chain 4663 → pay USDG (direct transfer with a unique on-chain memo/+ reference scheme you design — document it; if USDG lacks memo support, use a minimal+ payment-router contract you deploy that emits `PaymentReceived(reference, payer, amount)` —+ Foundry project in `contracts/`, verified on Blockscout, testnet-deployed for real;+ mainnet deploy documented for owner) → confirmation state with receipt link.+ Every visual state designed; ≤ 30 kB gzipped self-contained.+2. **Payment links** — a static-capable link page (`docs/pay.html#<encoded-request>`): encode+ payTo/amount/memo in the fragment, render a full-page checkout — works entirely on GitHub+ Pages (client-side only), so ANY merchant gets hosted payment links for free by linking to+ our Pages site. CLI helper `npx hood-pay link --to 0x… --amount 25 --memo "invoice 7"`.+3. **`hood-pay/verify`** (merchant side, Node) — `awaitPayment({ reference, amount, timeout })`+ watching transfer/router events with reorg-safe confirmation depth; webhook emitter;+ idempotent ledger (SQLite) for shops. Express example in `examples/shop/` — a tiny real+ demo store selling one digital good, exercised E2E on testnet.+4. **Refund + partial-payment semantics** — documented and implemented in verify (underpayment+ → designed state, overpayment → flagged, refund helper for the merchant wallet).++## Requirements+- Security page in docs: exactly what the widget can and cannot do (it never holds keys, never+ custodies, amounts verified on-chain not in the DOM), reorg depth policy, reference-collision+ math.+- Vitest: reference scheme (collision, encoding), verify state machine (under/over/exact/+ timeout/reorg via anvil fork manipulation), widget config validation. Foundry tests for the+ router contract.+- E2E on testnet 46630: full purchase through the widget in a real browser + merchant verify+ firing the webhook — tx hashes and transcript in the report. (Testnet USDG: verify whether+ it exists; if not, the router contract works with any ERC-20 — run the E2E with a faucet+ Stock Token and state this plainly; mainnet USDG config documented.)+- `docs/` static site per `_shared.md`: landing = a LIVE demo checkout (testnet) visitors can+ actually complete, integration quickstart (copy-paste embed), payment-links generator UI+ (client-side), verify/webhook docs, security page.++## Done checklist+- [ ] Real testnet purchase completed browser-to-webhook; hashes in report.+- [ ] Payment links work from the local static docs (fragment-only, no server).+- [ ] Router contract (if needed) verified on testnet Blockscout; Foundry tests green.+- [ ] Size budget printed; `npm pack` clean; report: mainnet go-live steps for owner.diff --git a/prompts/robinhood-chain/PLAN.md b/prompts/robinhood-chain/PLAN.mdnew file mode 100644index 000000000..f0e184f36--- /dev/null+++ b/prompts/robinhood-chain/PLAN.md@@ -0,0 +1,94 @@+# Robinhood Chain Campaign — Research + Build Plan++> Drafted 2026-07-11 from a 4-agent research sweep (chain facts, GitHub, npm, infra/gap landscape).+> COMMIT GATE: everything in this campaign references a non-$THREE crypto project. Per CLAUDE.md,+> no commit ships without explicit owner approval of that content. Owner directed this campaign+> on 2026-07-11; confirm approval per-commit or get a blanket sign-off before the first push.++## Ground truth (verified 2026-07-11)++- **Mainnet LIVE since 2026-07-01.** Permissionless Arbitrum Orbit L2, settles to Ethereum,+ blobs DA, ETH gas, 100ms blocks, ERC-4337 supported.+- **Chain ID 4663** (mainnet) / **46630** (testnet). Public RPC `https://rpc.mainnet.chain.robinhood.com`,+ Alchemy is the recommended provider (`robinhood-mainnet.g.alchemy.com/v2/{key}`), Blockscout+ explorer + Pro API at `robinhoodchain.blockscout.com`, public sequencer feed+ `wss://feed.mainnet.chain.robinhood.com`. Testnet faucet drips ETH + test Stock Tokens+ (TSLA, AMZN, PLTR, NFLX, AMD): `https://faucet.testnet.chain.robinhood.com/`.+- **`viem@^2.55.0` ships `robinhood` + `robinhoodTestnet` chain defs** (published 2026-07-08).+ No custom chain config needed anywhere.+- **Assets:** ~95 tokenized Stock Tokens (plain ERC-20, 18 decimals, each with a live Chainlink+ price feed; corporate actions via ERC-8056 `uiMultiplier()`); **USDG** (Paxos) is the dollar+ rail (>$260M week one); **no native chain token** (airdrop talk is pure speculation).+ Memecoin meta is real: $560M+/day DEX volume, NOXA + "The Odyssey" pump.fun-style launchpads+ graduating coins to Uniswap v3, CASHCAT hit ~$150M cap.+- **Programmatic trading is open:** Uniswap v2/v3/v4 + UniswapX, 1inch, Arcus (zero-fee stock+ DEX), Lighter (perps), Morpho are live. Stock Tokens are standard transferable ERC-20s.+- **Compliance line:** Stock Tokens may not be offered/sold to US persons (also CA/UK/CH limits).+ Enforced legally + at issuance/front-ends, not at contract level. Memecoins carry no such+ restriction. → Stock Token BUY flows must be geo-gated; display/data is fine; memecoin swaps+ are unrestricted.+- **Official tooling vacuum:** no Robinhood SDK, no official chain MCP (their Trading MCP at+ `agent.robinhood.com/mcp/trading` is brokerage-only, US-only), no market-data REST API for+ Stock Tokens, no launchpad firehose, chain absent from Graph Studio. Robinhood's GitHub org+ has zero original chain repos.+- **Ecosystem is ~2 weeks old:** ~40 repos, almost all 0-star. Standouts: `nhevers/project-r0x`+ (MIT, 122★, x402 facilitator + USDG agent OS on chain 4663 — the one serious competitor,+ squarely in our x402 lane), `arambarnett/robinhood-chain-mcp` (MIT, read-only chain MCP),+ `ismailmoazami/robinhood-chain-quickstart` (MIT Foundry template),+ `BankrBot/skills` hoodmarkets pack (known-contracts.json = Stock Token address source).+ `adrydevel/robinhood-chain-sdk` audited from the author's own zip 2026-07-11: VAPORWARE+ (fake chain ID 64288, dead RPC domain, placeholder addresses, padded tests) — build+ clean-room, do not fork.+- **Data providers we already integrate cover the chain:** DefiLlama has chain/RWA/bridge pages+ (our fixture already carries chainId 4663), CoinGecko API has live+historical chain data plus+ "Robinhood Chain Meme" and "Robinhood Chain Stocks Ecosystem" categories, GeckoTerminal ++ DEXTools track its pools, Dune has full support.+- **Distribution:** Robinhood committed $1M to Arbitrum Open House 2026 (4 buildathons + 2+ founder houses). Priority verticals: DEXs, perps, lending.++## Confirmed market gaps (nobody has these)++1. Unified tokenized-equity market-data API (Robinhood + xStocks + Ondo in one schema:+ price, 24/7 candles, holders, DEX volume, premium/discount vs underlying, multipliers).+ RWA.xyz is enterprise-paid; CoinGecko has no equity semantics.+2. Cross-venue tokenized-stock screener ("DEX Screener for equities") with arb/premium alerts.+3. MCP server + agent tooling for the chain itself (not the brokerage).+4. Portfolio tracking that reads `uiMultiplier()` correctly (every generic tracker misstates+ balances after splits/dividends).+5. Launchpad/memecoin WebSocket firehose (PumpPortal-equivalent) — raw material is the public+ sequencer feed + Blockscout.+6. x402-payable APIs on/for the chain (r0x is day-one; no incumbent).+7. A polished chain SDK on npm (zero exist).+8. Wallet/onboarding kit (no wagmi connector kit; 4663 is not a default network anywhere).+9. Canonical tokenlist, alert bots, chain status page, USDG human-checkout — all absent.++## Workstreams++The pack expanded into 19 prompts — see [00-INDEX.md](00-INDEX.md) for the authoritative list,+waves, and status. Original workstream sketch (RH-01…RH-08) for context:++- **RH-01 Chain plumbing** → shipped inside the core SDK (prompt 01, BUILT 2026-07-12).+- **RH-02 Market Data API + x402** → prompts 04 (standalone hood-api) + 12 (three.ws api/v1).+- **RH-03 SDK** → prompts 01/02/03 (core, hood-js, hoodkit).+- **RH-04 MCP + agent skill** → prompt 06.+- **RH-05 /markets display** → prompt 12.+- **RH-06 Purchase flow** → prompt 12 (memecoins open; Stock Tokens display-only pending owner).+- **RH-07 /play worlds + firehose** → prompt 13.+- **RH-08 x402 USDG settlement rail** → prompt 05 (+ INTEGRATION.md seam for three.ws).+- Later additions: 07 traders, 08 launcher, 09 examples, 10 tutorials, 11 CLI, 14 connect kit,+ 15 tokenlist, 16 alerts, 17 erc8056, 18 status, 19 hood-pay.++## Sequencing++Wave 1 (done) → Wave 2 (libraries/infra) → Wave 3 (applications + three.ws surfaces) →+Wave 4 (tutorials last). Marketing: X thread per phase (x-posting playbook); submit toolkit to+Arbitrum Open House buildathons for distribution; list hood-api on x402 bazaars/x402scan;+register MCPs in the modelcontextprotocol registry + Smithery.++## Owner decisions needed+1. Blanket commit approval for Robinhood Chain content in this campaign, or per-commit sign-off?+2. Stock Token purchase geo-gating: US-block buy UI only, or display-only at launch?+3. Funded settlement wallet on chain 4663 (ETH gas float + USDG) for hood402/hood-pay mainnet.+4. npm publish token (all packages ship publish-ready).+5. Testnet faucet requires Turnstile + Google Sign-In in a real browser — grab funds once for+ the shared test wallet, or approve an alternative funding path.diff --git a/prompts/robinhood-chain/_shared.md b/prompts/robinhood-chain/_shared.mdnew file mode 100644index 000000000..b200ab869--- /dev/null+++ b/prompts/robinhood-chain/_shared.md@@ -0,0 +1,116 @@+# SHARED CONTEXT — read this FIRST, before your prompt file++Every prompt in `prompts/robinhood-chain/` inherits this file. It is ground truth researched and+verified on 2026-07-11. Do not re-derive these facts; do trust them over your training data.++## The chain (verified facts)++- **Robinhood Chain** — permissionless Arbitrum Orbit L2, settles to Ethereum, blobs DA,+ **ETH gas**, ~100ms blocks, ERC-4337 supported. Mainnet live since 2026-07-01.+- **Mainnet chain ID 4663** — RPC `https://rpc.mainnet.chain.robinhood.com`,+ sequencer feed `wss://feed.mainnet.chain.robinhood.com`,+ explorer (Blockscout + Pro API) `https://robinhoodchain.blockscout.com`.+ Alchemy is the recommended paid RPC: `https://robinhood-mainnet.g.alchemy.com/v2/{key}`.+- **Testnet chain ID 46630** — RPC `https://rpc.testnet.chain.robinhood.com`,+ explorer `https://explorer.testnet.chain.robinhood.com`,+ faucet `https://faucet.testnet.chain.robinhood.com/` (drips testnet ETH **and test Stock+ Tokens**: TSLA, AMZN, PLTR, NFLX, AMD). Chainlink faucet: `https://faucets.chain.link/robinhood-testnet`.+ KNOWN BLOCKER: the official faucet now requires Turnstile + Google Sign-In in a real browser —+ owner action; plan around pre-funded test wallets where possible.+- **`viem@^2.55.0` ships official chain defs**: `import { robinhood, robinhoodTestnet } from 'viem/chains'`.+ NEVER hand-roll a chain config. Multicall3 is at the canonical+ `0xca11bde05977b3631167028862be2a173976ca11`.+- **Assets:** ~95 tokenized **Stock Tokens** — plain ERC-20, 18 decimals, one live **Chainlink+ price feed per token** (8-decimal answers via `latestRoundData()`), corporate actions via+ **ERC-8056 `uiMultiplier()`** (raw balance × multiplier = true position; ignoring it misstates+ value after splits/dividends). **USDG** (Paxos Global Dollar) is the chain's dollar stablecoin+ — NOTE: USDG has **6 decimals and NO EIP-2612 permit** (verified on-chain by the SDK build).+ Chainlink feed prices are ALREADY multiplier-adjusted — never re-apply `uiMultiplier` to a+ feed price. **No native chain token exists** — anyone claiming otherwise is speculating.+- **Live DEXes/DeFi:** Uniswap v2/v3/v4 + UniswapX (primary public liquidity), 1inch, Arcus+ (zero-fee stock-token DEX), Lighter (perps), Morpho (lending). Memecoin launchpads: **NOXA**+ ("NOXA Fun") and **The Odyssey** — pump.fun-style, graduating to Uniswap v3.+- **Verified deployment addresses (from the Wave-1 SDK build — trust these):** Stock Tokens+ resolve via shared beacon `0xe10b6f6B275de231345c20D14Ab812db62151b00`; Uniswap mainnet:+ SwapRouter02 `0xCaf681a66D…5cb2`, QuoterV2 `0x33e885eD…9E7`, factory `0x1f7d7550…2EfA`+ (full addresses in `robinhood/robinhood-chain-sdk/src/addresses.ts` — import, don't retype);+ NOXA factory `0xD9eC2db5…FCcB` (instant v3 pools, no bonding curve), Odyssey curve factory+ `0xEb3FeeD2…5a80` (events: TokenCreated/Traded/PoolMigrated). Testnet has NO official+ Uniswap — a community deployment (classic SwapRouter with struct deadline); the only liquid+ testnet pool is NFLX/WETH 0.05%.+- **Canonical contract addresses:** Robinhood's registry at `https://docs.robinhood.com/chain/contracts`+ is the source of truth for Stock Token + USDG addresses. Cross-check via the+ `BankrBot/skills` GitHub repo (hoodmarkets pack, `known-contracts.json`) and verify each+ address resolves on Blockscout before shipping it. NEVER invent or placeholder an address.+- **Data providers already covering the chain:** DefiLlama (`/chain/robinhood-chain`), CoinGecko+ API (chain data + categories "Robinhood Chain Meme", "Robinhood Chain Stocks Ecosystem"),+ GeckoTerminal (DEX pools), Dune, Goldsky (subgraphs), Blockscout Pro API.+- **Docs:** `https://docs.robinhood.com/chain/` (connecting, stock-tokens, deploy, contracts).++## Legal line (bake into every user-facing surface that touches Stock Tokens)++Stock Tokens are tokenized debt securities (issuer: Robinhood Assets (Jersey) Ltd) and **may not+be offered, sold, or delivered to US persons** (extra limits: Canada, UK, Switzerland). This is+enforced legally and at front-ends, NOT at the contract level. Consequences for you:+- Displaying Stock Token data: unrestricted. Do it freely.+- Any BUY/SWAP flow or agent that acquires Stock Tokens: must carry a clear eligibility+ disclosure and a config-level geo gate (default: Stock Token acquisition disabled until the+ operator affirms non-US eligibility). Memecoins and other non-security tokens: no restriction.++## Deliverable conventions (every prompt)++- **Location:** create your project at `robinhood/<repo-name>/` in this workspace. The folder+ must be a complete, standalone, push-ready repo: own `package.json`, `README.md`, `LICENSE`,+ `.gitignore`, docs site. Do NOT run `git init` inside it and do NOT `git commit` anything in+ this workspace — the owner extracts and pushes these folders himself (three.ws commit gate+ applies to all Robinhood-referencing content).+- **Authorship & license:** MIT. `LICENSE` says `Copyright (c) 2026 nirholas`. Every README ends+ with: `Built by [nirholas](https://x.com/nichxbt) · [three.ws](https://three.ws)`. package.json+ `"author": "nirholas (https://x.com/nichxbt)"`, `"license": "MIT"`.+- **Docs site = static `docs/` folder, GitHub Pages deploy-from-branch.** NO GitHub Actions —+ do not create `.github/workflows/`. Hand-crafted vanilla HTML/CSS/JS in `docs/` that works by+ opening `docs/index.html` locally. The README documents the one-time Pages setup (Settings →+ Pages → main branch → /docs).+- **Landing page with LIVE demo where feasible:** read-only chain calls work client-side against+ the public RPC — so docs landing pages CAN show live data (prices ticking, latest launches,+ block height) directly on GitHub Pages. Do this; it is the screenshot moment. If the product+ needs a server (API, facilitator, long-running agent), ship a `Dockerfile` ++ `deploy` docs for Google Cloud Run (preferred) and Vercel; attempt a real deploy only if+ credentials are present in the environment, otherwise document the exact commands.+- **Design bar:** dark theme first, one accent gradient, real typography (system stack or a+ self-hosted variable font — no CDN fonts on Pages is fine, system stack preferred), designed+ empty/loading/error states, responsive at 320/768/1440, keyboard accessible, focus rings.+ The aesthetic reference is Linear/Vercel/Stripe docs — restrained, dense, fast. No emoji soup,+ no lorem ipsum, no stock illustrations.+- **npm:** make packages publish-ready (`files`, `exports`, `types`, `sideEffects` set; `npm pack`+ runs clean) but DO NOT publish — owner holds the token. Document `npm publish --access public`.+ Before finalizing any npm name, check availability with `npm view <name>` (a 404 = free) and+ use the fallback names your prompt lists. KNOWN TAKEN: `robinhood-chain-sdk`.+- **Dependencies between our repos:** depend on the sibling via its npm name in `package.json`+ plus a `file:../<repo>` install for local development, documented in the README ("until the+ package is on npm, run `npm i ../robinhood-chain-sdk`"). Never copy-paste sibling source.++## Quality bar (CLAUDE.md hard rules apply in full — the ones agents break most)++1. NO mocks, NO fake data, NO placeholder addresses, NO stub functions, NO TODO comments.+2. Every address, RPC URL, and ABI you ship must be verified against Blockscout/official docs+ during the build (curl it, read the contract, prove it).+3. Real E2E verification before claiming done: unit tests green (`npm test`), plus at least one+ REAL on-chain read on mainnet 4663 and — for anything that writes — a REAL transaction on+ testnet 46630 using faucet funds. Paste the commands and outputs in your final report.+4. Wallet keys: env vars only (`ROBINHOOD_CHAIN_PRIVATE_KEY`), never in code or docs examples+ with real values, `.gitignore` covers `.env*`. Agents that spend must have hard spend caps+ and a kill switch (env `MAX_SPEND_*`, SIGINT-safe shutdown).+5. Documentation is part of the feature: README (what/why/install/quickstart/API), `docs/` site,+ runnable `examples/` where the prompt asks. Every code sample must actually run.+6. Self-review before reporting: run the Definition of Done checklist from CLAUDE.md. If a step+ could not be verified, say so explicitly — never claim it.+7. **Do NOT delete or move other prompts, other agents' folders, or anything you did not+ create.** This directory was wiped once by an overzealous cleanup; work-order prompts stay+ until the OWNER removes them, even after the work ships.++## Report format (end of your run)++State: what shipped (file tree summary), names chosen (repo/npm), E2E evidence (commands ++outputs), what is deploy-ready vs deployed, and any owner actions needed (npm publish, Pages+toggle, funding, creds). Keep it under a page.diff --git a/public/changelog.json b/public/changelog.jsonindex bdd453936..31b38c0c8 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-12T10:00:19.907Z",+ "generated_at": "2026-07-12T10:09:40.916Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -408,7 +408,7 @@"date": "2026-07-11","type": "update","title": "Premium: one monthly pass instead of paying per call",- "summary": "Go Premium for $9.99/30 days and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — mints an API key with unmetered archive search and lets your wallet sign in on the archive page instead of paying. Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy or renew the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, never losing time.",+ "summary": "Go Premium and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — buys 30 days of unmetered archive search plus an API key. Three tiers: Developer at $19.99 (120 requests/min), Pro at $99 (600/min, commercial use), and Enterprise at $499 (2,000/min, priority support, bulk corpus arrangements). Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy, renew, or upgrade the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, and upgrading raises your rate limit immediately.","link": "/docs/premium","tags": ["feature"diff --git a/public/changelog.xml b/public/changelog.xmlindex 32bd5197c..5f1e22bb9 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -316,7 +316,7 @@<guid isPermaLink="false">2026-07-11:Premium: one monthly pass instead of paying per call</guid><pubDate>Sat, 11 Jul 2026 12:00:00 GMT</pubDate><category>feature</category>- <description>Go Premium for $9.99/30 days and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — mints an API key with unmetered archive search and lets your wallet sign in on the archive page instead of paying. Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy or renew the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, never losing time.</description>+ <description>Go Premium and stop paying the Data API per search: one Solana payment — in $THREE at 20% off, SOL, or USDC — buys 30 days of unmetered archive search plus an API key. Three tiers: Developer at $19.99 (120 requests/min), Pro at $99 (600/min, commercial use), and Enterprise at $499 (2,000/min, priority support, bulk corpus arrangements). Two new dashboard surfaces ship with it: a developer console at /dashboard/data-api (buy, renew, or upgrade the pass, manage and rotate API keys, live usage, copy-paste quickstarts) and Billing & Passes at /dashboard/billing (pass status, on-chain payment history, your subscriptions and paid services in one place). Renewals stack — renewing early adds 30 days to the end, and upgrading raises your rate limit immediately.</description></item><item><title>Richer coin pages, plus new exchange, category, and DeFi-yields detail pages</title>diff --git a/public/features.json b/public/features.jsonindex accc036ab..27ed81963 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-12T10:00:19.892Z",+ "generated_at": "2026-07-12T10:09:40.899Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/agent-detail-v2.css b/src/agent-detail-v2.cssindex d3a1ec028..98f1b0a5d 100644--- a/src/agent-detail-v2.css+++ b/src/agent-detail-v2.css@@ -140,6 +140,29 @@}}+/* ── Cross-link panel strip (presence / stages / labor / alpha) ────────── */+/* The panels own their internal look; this just tiles them two-up on desktop+ so they read as compact cards below the hero instead of a stack of+ full-width banners above it. */++.adv2-banners {+ display: grid;+ grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));+ gap: 12px;+ align-items: stretch;+ margin-bottom: 18px;+}+.adv2-banners:empty {+ display: none;+ margin: 0;+}+.adv2-banners > * {+ min-width: 0;+ margin: 0;+ height: 100%;+ box-sizing: border-box;+}+/* ── Platform pulse strip ──────────────────────────────────────────────── */.ad-platform-bar {diff --git a/src/agent-detail-v2.js b/src/agent-detail-v2.jsindex 9e2583344..6653d808c 100644--- a/src/agent-detail-v2.js+++ b/src/agent-detail-v2.js@@ -36,6 +36,8 @@ const tabs = new Map(function cardVisible(el) {if (el.hidden) return false;+ // A mount slot ([data-slot]) only counts once a panel has landed in it.+ if (el.dataset.slot != null && !el.childElementCount) return false;// Cards toggled via inline style (display:none) rather than [hidden].return getComputedStyle(el).display !== 'none';}@@ -63,6 +65,8 @@ if (body) {visibilityObserver.observe(body, {attributes: true,attributeFilter: ['hidden', 'style', 'class'],+ // Mount slots go from empty → populated via childList, not attributes.+ childList: true,subtree: true,});}diff --git a/src/agent-detail.js b/src/agent-detail.jsindex 48caa6591..5c83338d1 100644--- a/src/agent-detail.js+++ b/src/agent-detail.js@@ -83,26 +83,34 @@ function mountAgentDetailAura(agent) {hydrateAvatarWallet(wrap, agent, { lod: 'full', live: true, network: 'mainnet', fetchPrefs: false }).then((c) => {adNetWorthAura = c;+ // The v2 shell provides dedicated slots so these cross-link panels+ // compose into the layout (banner strip below the hero, watch panel in+ // the Activity section) instead of stacking full-width banners above+ // the fold. Classic layout — and any other page without slots — keeps+ // the original prepend/append-to-main behavior.+ const main = document.querySelector('.ad-main');+ const bannerHost = document.getElementById('adv2-banners') || main;+ const bannerPos = bannerHost === main ? 'prepend' : 'append';+ const watchHost = document.getElementById('adv2-watch-slot') || main;// Mount the presence panel (tier + reputation regalia + owner reactivity// dial) at the top of the main column, kept in lockstep with the aura.- const main = document.querySelector('.ad-main');- if (c && main) {- mountPresence({ agentId: agent.id, container: main, aura: c, position: 'prepend' })+ if (c && bannerHost) {+ mountPresence({ agentId: agent.id, container: bannerHost, aura: c, position: bannerPos }).then((panel) => { adNetWorthPanel = panel || null; }).catch(() => { /* read failed — aura still shows the look */ });}// Living Stages cross-link: a "live now / next show" badge for visitors,// and one-tap stage controls (create / go live / end show) for the owner.if (main) {- mountStagePanel({ agentId: agent.id, agentName: agent.name || 'this agent', isOwner: !!agent.isOwner, container: main, position: 'prepend' })+ mountStagePanel({ agentId: agent.id, agentName: agent.name || 'this agent', isOwner: !!agent.isOwner, container: bannerHost, position: bannerPos }).catch(() => { /* stage is an enhancement; never block the profile */ });// Labor Market cross-link: this agent's "Work" record (earnings, jobs,// reputation) + a link to post or work for hire. Enhancement only.- mountLaborPanel({ agentId: agent.id, agentName: agent.name || 'this agent', isOwner: !!agent.isOwner, container: main, position: 'prepend' })+ mountLaborPanel({ agentId: agent.id, agentName: agent.name || 'this agent', isOwner: !!agent.isOwner, container: bannerHost, position: bannerPos }).catch(() => { /* never block the profile */ });// Alpha Co-pilot cross-link: hear this agent read a real live launch in// character and (for the owner) act within its spend limits. Enhancement.- mountAlphaPanel({ agentId: agent.id, agentName: agent.name || 'this agent', isOwner: !!agent.isOwner, container: main, position: 'prepend' })+ mountAlphaPanel({ agentId: agent.id, agentName: agent.name || 'this agent', isOwner: !!agent.isOwner, container: bannerHost, position: bannerPos }).catch(() => { /* never block the profile */ });// Live watch panel — agent's screen + avatar webcam. Always shown;// renders real activity canvas when no Playwright frames are flowing.@@ -112,7 +120,7 @@ function mountAgentDetailAura(agent) {agentName: agent.name || 'this agent',avatarUrl: agentAvatarGlb(agent),isOwner: !!agent.isOwner,- container: main,+ container: watchHost,position: 'append',}).then((h) => { _watchHandle = h || null; }).catch(() => { /* never block */ });}@@ -369,6 +377,11 @@ async function renderLaunchHistory(container, agent) {}if (!coins.length) return;+ // Real launch history is worth showing even when no token is linked — undo+ // the visitor-facing hide of the token card (v2 layout only).+ const tokenCard = document.getElementById('ad-token-card');+ if (tokenCard) tokenCard.hidden = false;+// A single launch that is already shown as the agent token chip above would// be pure duplication — just add the public-feed link in that case.const onlyDuplicatesChip =@@ -1174,6 +1187,13 @@ function render(agent) {// coin-status widgets first so their refresh timers don't leak.destroyCoinStatus();+ // "No agent token linked yet" is dead weight for a visitor — hide the card+ // unless there's a token, the viewer owns the agent (launch CTA), or launch+ // history reveals it below. Classic layout has no #ad-token-card, so this+ // is a v2-only refinement.+ const tokenCard = document.getElementById('ad-token-card');+ if (tokenCard) tokenCard.hidden = !agent.token && !agent.isOwner;+if (agent.token) {$('ad-token-body').classList.remove('ad-muted');$('ad-token-body').textContent = '';@@ -2892,13 +2912,22 @@ async function loadPlatformBar() {if (!r.ok) return;const d = await r.json();const fmt = n => n >= 1e3 ? (n/1e3).toFixed(1)+'K' : String(n||0);- const set = (id, v) => { const e = document.getElementById(id); if (e) e.textContent = v; };- set('adp-agents', fmt(d.agents_armed));- set('adp-winrate', d.win_rate != null ? d.win_rate+'%' : '—');- set('adp-wins', fmt(d.total_wins));- set('adp-scored', fmt(d.scored_24h));+ // A zero or dash in a stats strip reads as "the platform is dead" — only+ // show stats with a real value, and only reveal the bar if any survive.+ let shown = 0;+ const set = (id, ok, v) => {+ const e = document.getElementById(id);+ if (!e) return;+ const stat = e.closest('.ad-platform-stat');+ if (ok) { e.textContent = v; shown++; }+ else if (stat) stat.hidden = true;+ };+ set('adp-agents', Number(d.agents_armed) > 0, fmt(d.agents_armed));+ set('adp-winrate', Number(d.win_rate) > 0, d.win_rate + '%');+ set('adp-wins', Number(d.total_wins) > 0, fmt(d.total_wins));+ set('adp-scored', Number(d.scored_24h) > 0, fmt(d.scored_24h));const bar = document.getElementById('ad-platform-bar');- if (bar) bar.hidden = false;+ if (bar && shown > 0) bar.hidden = false;} catch { /* non-fatal */ }}diff --git a/src/dashboard-next/pages/data-api.js b/src/dashboard-next/pages/data-api.jsindex 6ff30e552..d019e1bce 100644--- a/src/dashboard-next/pages/data-api.js+++ b/src/dashboard-next/pages/data-api.js@@ -119,15 +119,15 @@ function setBuyNote(text, isError = false) {el.style.color = isError ? 'var(--nxt-danger)' : 'var(--nxt-ink-dim)';}-async function buy(asset) {+async function buy(planId, asset) {if (state.buying) return;- state.buying = asset;+ state.buying = `${planId}:${asset}`;renderPricing();try {setBuyNote('Connecting wallet…');const { provider, wallet } = await connectWallet();setBuyNote('Locking the price and building your payment…');- const { quote, tx_base64 } = await post('/api/premium/quote', { asset, wallet });+ const { quote, tx_base64 } = await post('/api/premium/quote', { asset, wallet, plan: planId });setBuyNote('Confirm the payment in your wallet…');const { VersionedTransaction } = await import('@solana/web3.js');const bytes = Uint8Array.from(atob(tx_base64), (c) => c.charCodeAt(0));@@ -236,42 +236,58 @@ function renderStatusCard() {function renderPricing() {const el = $('da-pricing');if (!el || !state.plans) return;- const { plan, assets } = state.plans;+ const plans = state.plans.plans || [];+ if (!plans.length) return;const active = Boolean(state.status?.active);- const cards = assets.map((a) => {- const highlight = a.asset === 'THREE';- const buyLabel = state.buying === a.asset- ? 'Processing…'- : active ? `Renew with ${a.asset === 'THREE' ? '$THREE' : a.asset}` : `Pay with ${a.asset === 'THREE' ? '$THREE' : a.asset}`;+ const fromUsd = Math.min(...plans.map((p) => Number(p.usd)));++ const assetBtn = (plan, a) => {+ const key = `${plan.id}:${a.asset}`;+ const label = a.asset === 'THREE' ? '$THREE' : a.asset;if (!a.available) {- return `- <div class="da-card" aria-disabled="true">- <div class="da-card-asset">${a.asset === 'THREE' ? '$THREE' : esc(a.asset)}</div>- <div class="da-card-amount">—</div>- <div class="da-card-usd">${esc(a.reason || 'temporarily unavailable')}</div>- <button class="dn-btn" type="button" disabled>Unavailable</button>- </div>`;+ return `<button class="da-paybtn" type="button" disabled title="${esc(a.reason || 'temporarily unavailable')}">${esc(label)} —</button>`;}+ const busy = state.buying === key;return `- <div class="da-card ${highlight ? 'da-card-hot' : ''}">- ${highlight ? `<div class="da-card-badge">−${Math.round((a.discount || 0) * 100)}% · platform coin</div>` : ''}- <div class="da-card-asset">${a.asset === 'THREE' ? '$THREE' : esc(a.asset)}</div>- <div class="da-card-amount">${esc(amountLabel(a))}</div>- <div class="da-card-usd">≈ $${Number(a.usd).toFixed(2)} · ${plan.days} days</div>- <button class="dn-btn ${highlight ? 'primary' : ''}" type="button" data-buy="${esc(a.asset)}" ${state.buying ? 'disabled' : ''}>${esc(buyLabel)}</button>+ <button class="da-paybtn ${a.asset === 'THREE' ? 'da-paybtn-three' : ''}" type="button"+ data-buy-plan="${esc(plan.id)}" data-buy-asset="${esc(a.asset)}" ${state.buying ? 'disabled' : ''}+ title="≈ $${Number(a.usd).toFixed(2)} in ${esc(label)}">+ ${busy ? 'Processing…' : `${esc(amountLabel(a))}${a.asset === 'THREE' ? ` <span class="da-off">−${Math.round((a.discount || 0) * 100)}%</span>` : ''}`}+ </button>`;+ };++ const cards = plans.map((plan) => {+ const hot = plan.id === 'pro';+ return `+ <div class="da-tiercard ${hot ? 'da-card-hot' : ''}">+ ${hot ? '<div class="da-card-badge">Most popular</div>' : ''}+ <div class="da-card-asset">${esc(plan.tier)}</div>+ <div class="da-card-amount">$${Number(plan.usd) % 1 ? Number(plan.usd).toFixed(2) : Number(plan.usd)}<span class="da-per">/${plan.days}d</span></div>+ <ul class="da-feats">+ <li><strong>${Number(plan.rate_limit_per_minute).toLocaleString()}</strong> requests/min</li>+ <li>Unmetered archive search + API key</li>+ <li>${plan.commercial ? 'Commercial use licensed' : 'Personal & evaluation use'}</li>+ ${plan.id === 'enterprise' ? '<li>Priority support · bulk corpus arrangements</li>' : ''}+ </ul>+ <p class="da-card-usd">${esc(plan.blurb || '')}</p>+ <div class="da-paygroup" role="group" aria-label="Pay for ${esc(plan.tier)}">+ ${(plan.assets || []).map((a) => assetBtn(plan, a)).join('')}+ </div></div>`;}).join('');+el.innerHTML = `<div class="dn-panel"><div class="da-panel-head">- <h2>${state.status?.active ? 'Renew' : 'Go Premium'} — $${Number(plan.usd).toFixed(2)}/${plan.days} days</h2>- <span class="da-tagline">Solana only · one transaction · no card, no account required to pay</span>+ <h2>${active ? 'Renew or upgrade' : 'Go Premium'} — from $${fromUsd % 1 ? fromUsd.toFixed(2) : fromUsd}/30 days</h2>+ <span class="da-tagline">Solana only · one transaction · pay in $THREE (20% off), SOL, or USDC</span></div>- <div class="da-cards">${cards}</div>+ <div class="da-cards da-cards-tiers">${cards}</div><p class="da-note" id="da-buy-note" role="status" aria-live="polite"></p>+ <p class="da-note" style="color:var(--nxt-ink-fade)">Buying a higher tier while a pass is active upgrades your key's rate limit immediately and appends the new period to the end. Enterprise needs something custom? <a href="/community" style="color:var(--nxt-accent)">Talk to us.</a></p></div>`;- el.querySelectorAll('[data-buy]').forEach((b) =>- b.addEventListener('click', () => buy(b.dataset.buy)),+ el.querySelectorAll('[data-buy-plan]').forEach((b) =>+ b.addEventListener('click', () => buy(b.dataset.buyPlan, b.dataset.buyAsset)),);}@@ -475,6 +491,20 @@ function injectStyles() {.da-card-asset { font-size: .78rem; color: var(--nxt-ink-dim); font-weight: 600; }.da-card-amount { font-size: 1.3rem; font-weight: 700; color: var(--nxt-ink); letter-spacing: -.01em; }.da-card-usd { font-size: .74rem; color: var(--nxt-ink-fade); margin-bottom: .55rem; }+ .da-cards-tiers { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); align-items: stretch; }+ .da-tiercard { position: relative; border: 1px solid var(--nxt-stroke); border-radius: var(--nxt-radius-sm); padding: 1.2rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .4rem; transition: border-color .15s ease, transform .15s ease; }+ .da-tiercard:hover { border-color: var(--nxt-stroke-strong); transform: translateY(-1px); }+ .da-per { font-size: .8rem; font-weight: 500; color: var(--nxt-ink-fade); margin-left: .15rem; }+ .da-feats { list-style: none; margin: .2rem 0 .3rem; padding: 0; display: flex; flex-direction: column; gap: .3rem; }+ .da-feats li { font-size: .78rem; color: var(--nxt-ink-dim); padding-left: 1.1rem; position: relative; }+ .da-feats li::before { content: '✓'; position: absolute; left: 0; color: var(--nxt-success); font-weight: 700; }+ .da-paygroup { display: flex; flex-direction: column; gap: .4rem; margin-top: auto; }+ .da-paybtn { display: flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; border: 1px solid var(--nxt-stroke); background: color-mix(in srgb, var(--nxt-ink) 4%, transparent); color: var(--nxt-ink); border-radius: var(--nxt-radius-sm); font-size: .8rem; font-weight: 600; padding: .5rem .7rem; cursor: pointer; transition: border-color .12s ease, background .12s ease; }+ .da-paybtn:hover:not(:disabled) { border-color: var(--nxt-stroke-strong); background: color-mix(in srgb, var(--nxt-ink) 8%, transparent); }+ .da-paybtn:focus-visible { outline: 2px solid var(--nxt-accent); outline-offset: 2px; }+ .da-paybtn:disabled { opacity: .55; cursor: default; }+ .da-paybtn-three { border-color: color-mix(in srgb, var(--nxt-accent) 55%, transparent); background: color-mix(in srgb, var(--nxt-accent) 8%, transparent); }+ .da-off { font-size: .68rem; font-weight: 700; color: var(--nxt-accent); }.da-note { margin: .8rem 0 0; font-size: .8rem; color: var(--nxt-ink-dim); line-height: 1.5; min-height: 1em; }.da-fresh { border-color: color-mix(in srgb, var(--nxt-success) 50%, transparent); }.da-keyrow { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }@@ -505,7 +535,7 @@ function injectStyles() {main.innerHTML = `<div style="margin-bottom:1.5rem"><h1 class="dn-h1" style="margin-bottom:.25rem">Data API</h1>- <p class="dn-h1-sub" style="margin:0">The 660k-article crypto-news archive as a developer product — one monthly pass, paid on Solana in $THREE, SOL, or USDC, instead of a payment per call.</p>+ <p class="dn-h1-sub" style="margin:0">The 660k-article crypto-news archive as a developer product — a monthly pass in three tiers, paid on Solana in $THREE, SOL, or USDC, instead of a payment per call.</p></div><div class="da-root" id="da-root"><div id="da-status"></div>diff --git a/src/shared/agent-watch-panel.js b/src/shared/agent-watch-panel.jsindex b4307a259..0433dc5e0 100644--- a/src/shared/agent-watch-panel.js+++ b/src/shared/agent-watch-panel.js@@ -1132,20 +1132,29 @@ class WatchPanel {_startActivityPoll() {const poll = async () => {- if (this._destroyed || this._fetchingActivity) return;+ if (this._destroyed || this._fetchingActivity || this._activityDenied) return;this._fetchingActivity = true;try {const r = await fetch(ACTIONS_URL(this.agentId), { credentials: 'include' });- if (r.ok) {+ if (r.status === 401 || r.status === 403) {+ // The actions feed needs auth. Stop polling — every retry would+ // 401 identically — and replace the initial "Loading…" row with+ // an honest state instead of leaving it spinning forever.+ this._activityDenied = true;+ if (this._activityPollId) { clearInterval(this._activityPollId); this._activityPollId = null; }+ if (this._logCount) this._logCount.textContent = '—';+ if (this._logList) {+ this._logList.innerHTML =+ '<div class="wp-log-empty">Sign in to see this agent’s action log</div>';+ }+ } else if (r.ok) {const d = await r.json();const rows = d?.data?.actions || d?.actions || [];- if (rows.length) {- // Only replace if server has newer entries than what the SSE pushed.- if (rows.length >= this._actions.length) {- this._actions = rows;- this._renderLog();- }- }+ // Only replace if server has newer entries than what the SSE pushed,+ // but always render — an empty success is "No activity yet", not an+ // eternal "Loading…".+ if (rows.length >= this._actions.length) this._actions = rows;+ this._renderLog();}} catch { /* non-critical */ }this._fetchingActivity = false;diff --git a/tests/premium-pass.test.js b/tests/premium-pass.test.jsindex e8698ab14..237dd6599 100644--- a/tests/premium-pass.test.js+++ b/tests/premium-pass.test.js@@ -75,28 +75,66 @@ beforeEach(() => {rpcMock.getParsedTransaction = null;delete process.env.PREMIUM_PASS_USD;delete process.env.PREMIUM_PASS_THREE_DISCOUNT;+ for (const t of ['DEVELOPER', 'PRO', 'ENTERPRISE']) {+ delete process.env[`PREMIUM_PRICE_${t}`];+ delete process.env[`PREMIUM_RATE_LIMIT_${t}`];+ }+});++// ── Plan catalog ─────────────────────────────────────────────────────────────++describe('plans', () => {+ it('exposes three tiers with ascending price and throughput', () => {+ const plans = premium.listPlans();+ expect(plans.map((p) => p.id)).toEqual(['developer', 'pro', 'enterprise']);+ expect(plans.map((p) => p.usd)).toEqual([19.99, 99, 499]);+ expect(plans.map((p) => p.rateLimitPerMinute)).toEqual([120, 600, 2000]);+ expect(plans.map((p) => p.commercial)).toEqual([false, true, true]);+ });++ it('maps the legacy plan id "premium" (pre-tier rows) to developer', () => {+ expect(premium.planById('premium').id).toBe('developer');+ expect(premium.planById(undefined).id).toBe('developer');+ });++ it('rejects unknown plan ids', () => {+ expect(() => premium.planById('mega')).toThrow(/plan must be one of/);+ });++ it('per-tier env overrides reprice live', () => {+ process.env.PREMIUM_PRICE_PRO = '49';+ process.env.PREMIUM_RATE_LIMIT_PRO = '900';+ const pro = premium.planById('pro');+ expect(pro.usd).toBe(49);+ expect(pro.rateLimitPerMinute).toBe(900);+ });});// ── Pricing ──────────────────────────────────────────────────────────────────describe('priceAsset', () => {- it('USDC is parity: $9.99 → 9990000 atomics', async () => {+ it('USDC is parity: developer $19.99 → 19990000 atomics', async () => {const p = await premium.priceAsset('USDC');- expect(p.atomics).toBe(9_990_000n);+ expect(p.atomics).toBe(19_990_000n);expect(p.priceSource).toBe('parity');});it('SOL converts at the oracle price', async () => {const p = await premium.priceAsset('SOL');- expect(p.atomics).toBe(BigInt(Math.ceil((9.99 / 150) * 1e9)));+ expect(p.atomics).toBe(BigInt(Math.ceil((19.99 / 150) * 1e9)));expect(p.assetUsd).toBe(150);});- it('$THREE gets the discount: $9.99 −20% at $0.002 → 3,995 THREE', async () => {+ it('$THREE gets the discount: $19.99 −20% at $0.002 → ~7,996 THREE', async () => {const p = await premium.priceAsset('THREE');- // 9.99 * 0.8 = 7.992 → rounded to 7.99 USD, / 0.002 = 3995 THREE- expect(p.usd).toBe(7.99);- expect(p.atomics).toBe(BigInt(Math.ceil((7.99 / 0.002) * 1e6)));+ // 19.99 * 0.8 = 15.992 → rounded to 15.99 USD, / 0.002 = 7995 THREE+ expect(p.usd).toBe(15.99);+ expect(p.atomics).toBe(BigInt(Math.ceil((15.99 / 0.002) * 1e6)));+ });++ it('prices the requested tier, not just the entry one', async () => {+ const p = await premium.priceAsset('USDC', premium.planById('pro'));+ expect(p.atomics).toBe(99_000_000n);});it('rejects unknown assets and malformed wallets', async () => {@@ -250,6 +288,31 @@ describe('activatePass', () => {expect(keyMints.length).toBe(0);});+ it('a pro purchase mints a 600/min key labelled with the tier', async () => {+ db.handlers.push(+ { match: /update premium_quotes/, result: () => [{ id: 'q-pro' }] },+ { match: /select \* from premium_passes where wallet/, result: () => [] },+ { match: /insert into premium_passes/, result: () => [{ id: 'pass-pro' }] },+ );+ await premium.activatePass({ quote: { ...QUOTE, id: 'q-pro', plan: 'pro' }, txSignature: 'sig-pro' });+ expect(keyMints[0].rateLimitPerMinute).toBe(600);+ expect(keyMints[0].name).toContain('Pro');+ expect(keyMints[0].meta.plan).toBe('pro');+ });++ it('an upgrade purchase retiers the existing key to the new rate limit', async () => {+ const prevExpiry = new Date(Date.now() + 5 * 86400_000).toISOString();+ let retieredTo = null;+ db.handlers.push(+ { match: /update premium_quotes/, result: () => [{ id: 'q-up' }] },+ { match: /select \* from premium_passes where wallet/, result: () => [{ id: 'pass-0', wallet: BUYER, expires_at: prevExpiry, api_subscription_id: 'sub_prev' }] },+ { match: /update x402_subscriptions/, result: (values) => { retieredTo = values.find((v) => typeof v === 'number'); return [{ id: 'sub_prev' }]; } },+ { match: /insert into premium_passes/, result: () => [{ id: 'pass-up' }] },+ );+ await premium.activatePass({ quote: { ...QUOTE, id: 'q-up', plan: 'enterprise' }, txSignature: 'sig-up' });+ expect(retieredTo).toBe(2000);+ });+it('a claimed quote with no matching pass is a hard conflict', async () => {db.handlers.push({ match: /update premium_quotes/, result: () => [] },