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
chore: harden API libs, refresh prompt priority triage
nirholas5307fffc9b35
diff --git a/.gitignore b/.gitignoreindex 07d01fd70..8ed46aeb2 100644--- a/.gitignore+++ b/.gitignore@@ -280,3 +280,4 @@ demo/three-ws-prod-log-export-2026-06-24T04-15-25.jsonpages/ibm/hello.htmlthree-ws-prod-log-export-2026-06-24T13-33-58.json+three-ws-prod-log-export-2026-06-25T07-22-45.jsondiff --git a/api/_lib/erc8004-chains.js b/api/_lib/erc8004-chains.jsindex 6d5689570..d6736b1ab 100644--- a/api/_lib/erc8004-chains.js+++ b/api/_lib/erc8004-chains.js@@ -45,10 +45,10 @@ export const CHAINS = [explorer: 'https://basescan.org',rpcUrls: ['https://mainnet.base.org',- 'https://base.llamarpc.com',- 'https://rpc.ankr.com/base',- 'https://base.publicnode.com',+ 'https://base.drpc.org','https://1rpc.io/base',+ 'https://rpc.ankr.com/base',+ 'https://base-rpc.publicnode.com',],},{@@ -59,9 +59,10 @@ export const CHAINS = [explorer: 'https://arbiscan.io',rpcUrls: ['https://arb1.arbitrum.io/rpc',- 'https://arbitrum.llamarpc.com',+ 'https://arbitrum.drpc.org',+ 'https://1rpc.io/arb','https://rpc.ankr.com/arbitrum',- 'https://arbitrum.publicnode.com',+ 'https://arbitrum-rpc.publicnode.com',],},{@@ -73,8 +74,9 @@ export const CHAINS = [rpcUrls: ['https://bsc-dataseed1.binance.org','https://bsc-dataseed2.binance.org',+ 'https://bsc.drpc.org','https://rpc.ankr.com/bsc',- 'https://bsc.publicnode.com',+ 'https://bsc-rpc.publicnode.com',],},{@@ -85,13 +87,17 @@ export const CHAINS = [explorer: 'https://etherscan.io',// Mainnet public RPCs are the most restrictive/latent on eth_getLogs; use a// smaller scan window than the global default so a single call stays fast.+ // Keyless set probed live for eth_getLogs from a datacenter IP. Dropped:+ // eth.llamarpc.com (Cloudflare bot-wall 403s server-side POSTs) and+ // cloudflare-eth.com (endpoint sunset, -32046). publicnode 403s from Vercel+ // IPs so it sits last as best-effort; dRPC/1rpc lead as they answer keyless.blockChunk: 500,rpcUrls: [- 'https://eth.llamarpc.com',- 'https://cloudflare-eth.com',- 'https://rpc.ankr.com/eth',- 'https://ethereum.publicnode.com',+ 'https://eth.drpc.org','https://1rpc.io/eth',+ 'https://rpc.mevblocker.io',+ 'https://rpc.ankr.com/eth',+ 'https://ethereum-rpc.publicnode.com',],},{@@ -102,9 +108,10 @@ export const CHAINS = [explorer: 'https://optimistic.etherscan.io',rpcUrls: ['https://mainnet.optimism.io',- 'https://optimism.llamarpc.com',+ 'https://optimism.drpc.org',+ 'https://1rpc.io/op','https://rpc.ankr.com/optimism',- 'https://optimism.publicnode.com',+ 'https://optimism-rpc.publicnode.com',],},{@@ -117,9 +124,10 @@ export const CHAINS = [blockChunk: 500,rpcUrls: ['https://polygon-rpc.com',- 'https://polygon.llamarpc.com',+ 'https://polygon.drpc.org',+ 'https://1rpc.io/matic','https://rpc.ankr.com/polygon',- 'https://polygon.publicnode.com',+ 'https://polygon-bor-rpc.publicnode.com',],},{@@ -208,7 +216,13 @@ export const CHAINS = [testnet: true,registry: IDENTITY_REGISTRY_TESTNET,explorer: 'https://sepolia.basescan.org',- rpcUrls: ['https://sepolia.base.org', 'https://base-sepolia-rpc.publicnode.com', 'https://rpc.ankr.com/base_sepolia'],+ rpcUrls: [+ 'https://sepolia.base.org',+ 'https://base-sepolia.drpc.org',+ 'https://base-sepolia.gateway.tenderly.co',+ 'https://rpc.ankr.com/base_sepolia',+ 'https://base-sepolia-rpc.publicnode.com',+ ],},{id: 421614,@@ -216,7 +230,14 @@ export const CHAINS = [testnet: true,registry: IDENTITY_REGISTRY_TESTNET,explorer: 'https://sepolia.arbiscan.io',- rpcUrls: ['https://sepolia-rollup.arbitrum.io/rpc', 'https://arbitrum-sepolia.publicnode.com'],+ // `arbitrum-sepolia.publicnode.com` (bare host) has no RPC service — it 403s+ // every call. PublicNode serves testnets at the `<chain>-rpc` subdomain.+ rpcUrls: [+ 'https://sepolia-rollup.arbitrum.io/rpc',+ 'https://arbitrum-sepolia.drpc.org',+ 'https://arbitrum-sepolia.gateway.tenderly.co',+ 'https://arbitrum-sepolia-rpc.publicnode.com',+ ],},{id: 11155111,@@ -224,7 +245,16 @@ export const CHAINS = [testnet: true,registry: IDENTITY_REGISTRY_TESTNET,explorer: 'https://sepolia.etherscan.io',- rpcUrls: ['https://rpc2.sepolia.org', 'https://ethereum-sepolia-rpc.publicnode.com', 'https://rpc.ankr.com/eth_sepolia'],+ // rpc2.sepolia.org is dead (no route). Lead with dRPC + ethPandaOps + Tenderly,+ // all verified serving eth_getLogs keyless; publicnode last (Vercel-IP 403s).+ rpcUrls: [+ 'https://sepolia.drpc.org',+ 'https://1rpc.io/sepolia',+ 'https://rpc.sepolia.ethpandaops.io',+ 'https://sepolia.gateway.tenderly.co',+ 'https://rpc.ankr.com/eth_sepolia',+ 'https://ethereum-sepolia-rpc.publicnode.com',+ ],},{id: 11155420,@@ -234,8 +264,9 @@ export const CHAINS = [explorer: 'https://sepolia-optimism.etherscan.io',rpcUrls: ['https://sepolia.optimism.io',- 'https://optimism-sepolia.publicnode.com','https://optimism-sepolia.drpc.org',+ 'https://optimism-sepolia.gateway.tenderly.co',+ 'https://optimism-sepolia-rpc.publicnode.com',],},{diff --git a/api/_lib/onchain.js b/api/_lib/onchain.jsindex 9ca8f2b11..110285072 100644--- a/api/_lib/onchain.js+++ b/api/_lib/onchain.js@@ -37,7 +37,10 @@ export const SERVER_CHAIN_META = {1: {name: 'Ethereum',short: 'ETH',- rpc: 'https://eth.llamarpc.com',+ // dRPC (not llamarpc — its Cloudflare bot-wall 403s server-side POSTs, which+ // wasted the first failover attempt on every call). evmFallbackProvider adds+ // the rest of the chain from erc8004-chains.js behind this primary.+ rpc: 'https://eth.drpc.org',explorer: 'https://etherscan.io',registry: MAINNET,testnet: false,@@ -167,7 +170,7 @@ export const SERVER_CHAIN_META = {11155111: {name: 'Ethereum Sepolia',short: 'SEP',- rpc: 'https://rpc.sepolia.org',+ rpc: 'https://sepolia.drpc.org',explorer: 'https://sepolia.etherscan.io',registry: TESTNET,testnet: true,diff --git a/api/_lib/trust/wallet-reputation.js b/api/_lib/trust/wallet-reputation.jsindex 22d7d161e..09d43a5be 100644--- a/api/_lib/trust/wallet-reputation.js+++ b/api/_lib/trust/wallet-reputation.js@@ -340,20 +340,15 @@ export async function scoreAgentsLite(agentIds = [], { concurrency = 8 } = {}) {async function readErc8004Registry(agent) {if (!agent.erc8004_agent_id || !agent.chain_id) return { average: 0, count: 0 };- const RPC = {- 1: 'https://eth.llamarpc.com',- 10: 'https://optimism.llamarpc.com',- 8453: 'https://base.llamarpc.com',- 42161: 'https://arbitrum.llamarpc.com',- 137: 'https://polygon.llamarpc.com',- };- const rpcUrl = RPC[agent.chain_id];- if (!rpcUrl) return { average: 0, count: 0 };- const { JsonRpcProvider, Contract } = await import('ethers');+ const { Contract } = await import('ethers');const { REGISTRY_DEPLOYMENTS, REPUTATION_REGISTRY_ABI } = await import('../../../src/erc8004/abi.js');const deployment = REGISTRY_DEPLOYMENTS[agent.chain_id];if (!deployment?.reputationRegistry) return { average: 0, count: 0 };- const provider = new JsonRpcProvider(rpcUrl, agent.chain_id, { staticNetwork: true });+ // Shared EVM failover provider (override → Alchemy → curated public lanes) instead+ // of a single hardcoded llamarpc URL per chain — those sit behind a Cloudflare+ // bot-wall that 403s server-side reads, so the registry read always failed.+ const { evmFallbackProvider } = await import('../evm/rpc.js');+ const provider = await evmFallbackProvider(agent.chain_id);const contract = new Contract(deployment.reputationRegistry, REPUTATION_REGISTRY_ABI, provider);const [avgX100, count] = await contract.getReputation(BigInt(agent.erc8004_agent_id));const n = Number(count);diff --git a/api/_lib/vision.js b/api/_lib/vision.jsindex ff3bc5719..3a6b11a5b 100644--- a/api/_lib/vision.js+++ b/api/_lib/vision.js@@ -172,14 +172,21 @@ function normalizeStatus(status) {// timeoutMs?, track? }//// `timeoutMs` bounds EACH provider attempt so a hung free lane can't stall a-// serverless function — the next lane is tried instead. `track` is the same-// optional spend-ledger attribution as llmComplete; a successful call records a-// kind:'vision' usage event with provider/model/tokens/cost (free NIM prices to-// 0 in llm-pricing.js).+// serverless function — the next lane is tried instead. `deadlineMs` bounds the+// WHOLE chain: without it, a handful of lanes each timing out at `timeoutMs`+// sequentially can blow past the function's wall-clock limit, which is exactly+// what produced the "Vercel Runtime Timeout Error: Task timed out after 30s" 504+// on /api/vision (3 free NIM models + a paid backstop × 20s each ≫ 30s). With a+// deadline we stop walking the chain and return a clean 504 before the platform+// hard-kills the invocation. Each attempt is capped at min(timeoutMs, time left).+// `track` is the same optional spend-ledger attribution as llmComplete; a+// successful call records a kind:'vision' usage event with provider/model/tokens/cost+// (free NIM prices to 0 in llm-pricing.js).//// Returns { text, provider, model, usage:{input,output}, raw }.// Throws VisionUnavailableError when nothing is configured, or the last upstream-// error (with .status = 502, .code = normalized) when every provider failed.+// error (with .status = 502/504, .code = normalized) when every provider failed+// or the deadline elapsed.export async function describeImage({prompt,imageUrl = null,@@ -188,10 +195,12 @@ export async function describeImage({system = null,maxTokens = 512,timeoutMs = 20_000,+ deadlineMs = null,track = null,}) {const chain = visionChain();if (!chain.length) throw new VisionUnavailableError();+ const deadlineAt = deadlineMs != null ? Date.now() + deadlineMs : Infinity;// SSRF guard: the provider's model server fetches `imageUrl` server-side, so a// caller-supplied URL could otherwise reach internal targets (169.254.169.254,@@ -209,6 +218,17 @@ export async function describeImage({let lastErr;for (const p of chain) {+ // Stop walking the chain once the overall budget is spent — returning a clean+ // 504 here beats letting the platform hard-kill the function mid-request.+ const remaining = deadlineAt - Date.now();+ if (remaining <= 0) {+ lastErr = Object.assign(new Error('vision deadline exceeded before a provider answered'), {+ status: 504,+ code: 'deadline_exceeded',+ });+ break;+ }+ const attemptTimeout = Math.min(timeoutMs, remaining);const startedAt = Date.now();let upstream;try {@@ -216,7 +236,7 @@ export async function describeImage({method: 'POST',headers: p.headers,body: JSON.stringify(p.buildBody(system, parts, maxTokens)),- signal: AbortSignal.timeout(timeoutMs),+ signal: AbortSignal.timeout(attemptTimeout),});} catch (e) {lastErr = Object.assign(new Error(`${p.name} vision unreachable: ${e.message}`), { status: 502, code: 'provider_unreachable' });diff --git a/api/agents/eth-vanity.js b/api/agents/eth-vanity.jsindex eef3de110..e76252b37 100644--- a/api/agents/eth-vanity.js+++ b/api/agents/eth-vanity.js@@ -47,7 +47,7 @@ const TX_RE = /^0x[0-9a-f]{64}$/i;* deploy is recorded *unverified* with a warning flag.*/const RPCS = {- 1: 'https://cloudflare-eth.com',+ 1: 'https://eth.drpc.org', // cloudflare-eth.com is sunset (-32046)8453: 'https://mainnet.base.org',10: 'https://mainnet.optimism.io',42161: 'https://arb1.arbitrum.io/rpc',diff --git a/api/cron/[name].js b/api/cron/[name].jsindex 97d2dfdd4..bbe0137f4 100644--- a/api/cron/[name].js+++ b/api/cron/[name].js@@ -503,27 +503,56 @@ const BLOCKS_PER_DAY = {// Public RPC fallbacks per chain — tried in order. Override primary via env// RPC_URL_<chainId> with a keyed provider (Alchemy/Infura/QuickNode); the env// URL is always tried first (see idxRpcUrls). The public fallbacks below are a-// best-effort safety net only — they rate-limit (429) and some don't serve-// eth_getLogs, so prod MUST set RPC_URL_1 / RPC_URL_8453 for reliable indexing.-// Removed: cloudflare-eth.com (endpoint sunset — always failed, wasting the-// first attempt + timeout each run) and 1rpc.io/* (chronic 429 in prod logs).+// best-effort safety net only, so prod SHOULD still set RPC_URL_1 / RPC_URL_8453+// for the most reliable indexing — but the keyless set is curated to ones that+// actually answer eth_getLogs from a serverless datacenter IP.+//+// Why these and not the "obvious" ones — every endpoint below was probed live for+// eth_blockNumber AND eth_getLogs from a datacenter host:+// • eth.llamarpc.com / base.llamarpc.com / *.llamarpc.com → now sit behind a+// Cloudflare "Just a moment…" bot challenge that hard-403s every server-side+// POST (no browser to solve the JS challenge). They were the FIRST entry in+// the old chain 1 list, so every tick burned an attempt on a guaranteed 403.+// • cloudflare-eth.com → endpoint sunset (-32046 "Cannot fulfill request").+// • rpc.sepolia.org / rpc2.sepolia.org → dead (404 / no route).+// • rpc.ankr.com/<chain> keyless → "Unauthorized: authenticate with an API key"+// (handled in idxRpcUrls: rewritten to the keyed form when ANKR_API_KEY is+// set, dropped otherwise so it never wastes an attempt).+// • *.publicnode.com → answers fine from most hosts but 403s from Vercel's IAD+// egress range, so it is demoted to LAST (best-effort) rather than relied on —+// it was the surfaced "RPC HTTP 403 from …publicnode.com" storm.+// Leading providers (dRPC, 1rpc, mevblocker, ethpandaops, tenderly) are+// independent operators verified serving eth_getLogs keyless from a datacenter,+// so a single one being throttled or blocked still leaves a working lane.const PUBLIC_RPCS = {- 1: ['https://eth.llamarpc.com', 'https://rpc.ankr.com/eth', 'https://ethereum.publicnode.com'],+ 1: [+ 'https://eth.drpc.org',+ 'https://1rpc.io/eth',+ 'https://rpc.mevblocker.io',+ 'https://rpc.ankr.com/eth',+ 'https://ethereum-rpc.publicnode.com',+ ],8453: ['https://mainnet.base.org',- 'https://base.llamarpc.com',+ 'https://base.drpc.org',+ 'https://1rpc.io/base','https://rpc.ankr.com/base',- 'https://base.publicnode.com',+ 'https://base-rpc.publicnode.com',],84532: ['https://sepolia.base.org',- 'https://base-sepolia-rpc.publicnode.com',+ 'https://base-sepolia.drpc.org',+ 'https://base-sepolia.gateway.tenderly.co','https://rpc.ankr.com/base_sepolia',+ 'https://base-sepolia-rpc.publicnode.com',],11155111: [- 'https://rpc.sepolia.org',- 'https://ethereum-sepolia-rpc.publicnode.com',+ 'https://sepolia.drpc.org',+ 'https://1rpc.io/sepolia',+ 'https://rpc.sepolia.ethpandaops.io',+ 'https://sepolia.gateway.tenderly.co','https://rpc.ankr.com/eth_sepolia',+ 'https://ethereum-sepolia-rpc.publicnode.com',],421614: ['https://sepolia-rollup.arbitrum.io/rpc',diff --git a/api/permissions/[action].js b/api/permissions/[action].jsindex 52922ea39..45cb9a5fa 100644--- a/api/permissions/[action].js+++ b/api/permissions/[action].js@@ -668,11 +668,15 @@ function periodStart(period) {return new Date(0);}+// Keyless single-endpoint defaults, used only when RPC_URL_<chainId> is unset.+// dRPC for chain 1 / Sepolia: cloudflare-eth.com is sunset and rpc.sepolia.org is+// dead, so the old defaults guaranteed a relayer failure on any deploy without an+// explicit RPC env. dRPC answers keyless from datacenter IPs (probed live).const PERMISSIONS_PUBLIC_RPCS = {- 1: 'https://cloudflare-eth.com',+ 1: 'https://eth.drpc.org',8453: 'https://mainnet.base.org',84532: 'https://sepolia.base.org',- 11155111: 'https://rpc.sepolia.org',+ 11155111: 'https://sepolia.drpc.org',421614: 'https://sepolia-rollup.arbitrum.io/rpc',11155420: 'https://sepolia.optimism.io',};diff --git a/api/tx/explain.js b/api/tx/explain.jsindex dcb14f65e..06ad3133b 100644--- a/api/tx/explain.js+++ b/api/tx/explain.js@@ -168,8 +168,12 @@ export default wrap(async (req, res) => {const evmEndpoints = [env.ALCHEMY_API_KEY ? `https://eth-mainnet.g.alchemy.com/v2/${env.ALCHEMY_API_KEY}` : null,env.MAINNET_RPC_URL || null,+ // Keyless, datacenter-reachable lanes. dRPC/1rpc lead (verified answering+ // from a serverless IP); publicnode last (403s from Vercel egress).+ // eth.llamarpc.com removed — its Cloudflare bot-wall 403s server-side POSTs.+ 'https://eth.drpc.org',+ 'https://1rpc.io/eth','https://ethereum-rpc.publicnode.com',- 'https://eth.llamarpc.com',].filter(Boolean);const rpcAt = (url) => (id, methodName, params) =>diff --git a/api/vision.js b/api/vision.jsindex 6fd092311..ad9983c5c 100644--- a/api/vision.js+++ b/api/vision.js@@ -25,6 +25,10 @@ export const maxDuration = 60;// bounding the in-memory buffer per request.const MAX_IMAGE_BYTES = 12 * 1024 * 1024;const VISION_TIMEOUT_MS = 20_000;+// Overall budget for the whole provider chain (free NIM models + paid backstop),+// kept well under the function wall-clock limit so describeImage returns a clean+// 504 instead of being hard-killed by the platform ("Task timed out after 30s").+const VISION_DEADLINE_MS = 24_000;const ACCEPTED_TYPES = ['image/jpeg', 'image/png', 'image/webp', 'image/gif'];const DEFAULT_PROMPT =@@ -117,6 +121,7 @@ export default wrap(async function handler(req, res) {mimeType,maxTokens: Math.min(Math.max(maxTokens, 16), 2048),timeoutMs: VISION_TIMEOUT_MS,+ deadlineMs: VISION_DEADLINE_MS,track: { userId, tool: 'api/vision' },});return json(diff --git a/prompts/PRIORITY.md b/prompts/PRIORITY.mdnew file mode 100644index 000000000..bdc0b400e--- /dev/null+++ b/prompts/PRIORITY.md@@ -0,0 +1,137 @@+# Prompt Task Priority — cross-cutting triage++Companion to [`00-README.md`](00-README.md). The README sequences the core `01`–`50` catalog+into phases; this file ranks **every** prompt task (core + the 10 innovation programs) into+priority tiers so you know what to run first when launch is the goal.++## How priority was assigned++A task ranks higher when it touches one or more of:++1. **Money path** — real funds move (x402, wallet funding, pump.fun launch, on-chain contracts, auto-rig GPU spend).+2. **Security / consent** — exploitable surface, leaked secrets, SSRF, open spend, custody risk.+3. **Correctness & integrity** — broken builds, dead paths, orphaned jobs, the `$THREE`-only invariant.+4. **Launch-gating** — a credible production launch cannot happen without it.+5. **Active development** — recent commits + working notes show this code is hot right now+ (x402 replay guard, payment-proof reservation, auto-rig sweep) → finish what's in flight.++Innovation programs (subdirectories) are differentiation/moat work built **on top of** a shipped+core. They are ranked below the launch critical path even when individually ambitious — except+**`avatar-autorig`**, which is production hardening of a live, paying GPU path and is treated as core.++---++## P0 — Launch-blocking (money, security, integrity, the go/no-go gate)++Run these to green before any production launch. Phase-1 audits run **first** (they produce the+issue lists the rest consume); `50` runs **last** (it's the gate).++| Task | Why P0 |+|---|---|+| [01-production-readiness-audit](01-production-readiness-audit.md) | Master audit — produces the gap list everything else consumes. Run first. |+| [02-dead-paths-and-broken-links](02-dead-paths-and-broken-links.md) | Broken links/dead buttons = visibly unshippable. |+| [03-console-errors-warnings-sweep](03-console-errors-warnings-sweep.md) | Zero-console-error bar from CLAUDE.md "definition of done". |+| [04-build-deploy-artifact-integrity](04-build-deploy-artifact-integrity.md) | esbuild trap can corrupt `api/*.js`; bad artifacts break deploy. |+| [05-routing-and-404-audit](05-routing-and-404-audit.md) | `vercel.json` routing errors silently 404 live pages. |+| [08-error-handling-failsafes](08-error-handling-failsafes.md) | Failsafes at every network/user boundary — no lazy error propagation. |+| [14-security-review](14-security-review.md) | Headers, CORS scoping, secret hygiene, hardening. |+| [27-x402-payments](27-x402-payments.md) | **Money path + actively in flight** (replay guard, payment-proof reservation). |+| [28-wallet-connect-funding](28-wallet-connect-funding.md) | **Money path** — funding/connect must not lose or misroute funds. |+| [30-three-holder-gating](30-three-holder-gating.md) | The `$THREE`-only invariant + gating correctness — core platform contract. |+| [33-onchain-contracts](33-onchain-contracts.md) | **Money path** — contract review + Foundry/Anchor suites before mainnet. |+| [avatar-autorig/01-sibling-materialization](avatar-autorig/01-sibling-materialization.md) | Keystone refactor; the cost/consent + SSRF fixes build on the sibling model. |+| [avatar-autorig/02-completion-statemachine](avatar-autorig/02-completion-statemachine.md) | Orphaned `done`+`null` jobs on a **live paid GPU path** — correctness of real spend. |+| [avatar-autorig/03-ssrf-hardening](avatar-autorig/03-ssrf-hardening.md) | **Security** — SSRF on provider GLB fetches; recent commit shows this is active. |+| [avatar-autorig/04-cost-and-consent-gates](avatar-autorig/04-cost-and-consent-gates.md) | **Open spend path** — no rate limit/holder gate/spend ceiling; private avatars leak to a public URL. |+| [pumpfun-usdc-deploy](pumpfun-usdc-deploy.md) | Live inaugural USDC-paired launch — real SOL/USDC, irreversible. |+| [pumpfun-usdc-link-agent](pumpfun-usdc-link-agent.md) | Binds the launched mint to its `agent_identity` (DB integrity). |+| [pumpfun-usdc-monitor-gate](pumpfun-usdc-monitor-gate.md) | Watches the quote-mint whitelist gate that the launch depends on. |+| [50-final-launch-checklist](50-final-launch-checklist.md) | The go/no-go gate. **Run last.** |++## P1 — High (core product quality + the surfaces users actually touch)++Needed for a credible launch. Cross-cutting quality (Phase 2) + the primary product surfaces+(Phase 3) + the ops that keep a live money platform honest (Phase 4–5).++| Task | Bucket |+|---|---|+| [06-test-coverage-unit](06-test-coverage-unit.md) | Quality — regression safety net |+| [07-e2e-critical-flows](07-e2e-critical-flows.md) | Quality — the money/create journeys end-to-end |+| [09-accessibility-audit](09-accessibility-audit.md) | Quality — WCAG 2.1 AA |+| [10-responsive-mobile-audit](10-responsive-mobile-audit.md) | Quality — mobile is half the traffic |+| [11-performance-web-vitals](11-performance-web-vitals.md) | Quality — Core Web Vitals (3D is heavy) |+| [13-design-system-consistency](13-design-system-consistency.md) | Quality — visual coherence = trust |+| [15-forge-pipeline](15-forge-pipeline.md) | Surface — flagship text/photo→3D |+| [16-walk-sdk-companion-playground](16-walk-sdk-companion-playground.md) | Surface — Walk SDK |+| [17-avatar-create-edit-rig](17-avatar-create-edit-rig.md) | Surface — avatar pipeline (pairs with avatar-autorig) |+| [18-agent-studio](18-agent-studio.md) | Surface — agent create/configure/deploy |+| [19-marketplace](19-marketplace.md) | Surface — marketplace |+| [26-dashboard](26-dashboard.md) | Surface — dashboard-next |+| [29-pumpfun-launches](29-pumpfun-launches.md) | Money-adjacent — launch feed/tooling |+| [31-mcp-servers](31-mcp-servers.md) | Money-adjacent — paid MCP tools hardening |+| [34-solana-base-parity](34-solana-base-parity.md) | Correctness — cross-chain parity |+| [35-api-rate-limiting-abuse](35-api-rate-limiting-abuse.md) | Ops — abuse/cost protection |+| [36-observability-logging-alerting](36-observability-logging-alerting.md) | Ops — you can't run a money platform blind |+| [37-ci-cd-gates](37-ci-cd-gates.md) | Ops — quality gates in CI |+| [38-database-migrations](38-database-migrations.md) | Ops — data integrity / migrations |+| [41-uptime-health-status](41-uptime-health-status.md) | Ops — health checks + status page |+| [avatar-autorig/05-coverage-gaps](avatar-autorig/05-coverage-gaps.md) | Closes MCP `save_avatar` / fork-mid-rig / double-rig gaps |++## P2 — Medium (polish, growth, scale; post-core)++Improves conversion, retention, and scale once the core is solid.++| Task | Bucket |+|---|---|+| [12-seo-metadata](12-seo-metadata.md) | Growth |+| [20-gallery-discovery](20-gallery-discovery.md) | Surface |+| [21-social-club-city](21-social-club-city.md) | Surface |+| [22-onboarding-wizard](22-onboarding-wizard.md) | Activation |+| [23-feature-tour](23-feature-tour.md) | Activation |+| [24-scene-studio](24-scene-studio.md) | Surface |+| [25-search](25-search.md) | Surface |+| [32-published-sdks-docs](32-published-sdks-docs.md) | DevEx |+| [39-load-stress-testing](39-load-stress-testing.md) | Scale |+| [40-caching-cdn-assets](40-caching-cdn-assets.md) | Scale |+| [42-homepage-conversion](42-homepage-conversion.md) | Growth |+| [43-docs-completeness](43-docs-completeness.md) | DevEx |+| [44-legal-compliance](44-legal-compliance.md) | Compliance (raise to P0/P1 if legal sign-off blocks launch) |+| [45-analytics-funnels](45-analytics-funnels.md) | Growth |+| [46-notifications-email](46-notifications-email.md) | Retention |+| [47-i18n-completeness](47-i18n-completeness.md) | Growth |+| [48-pricing-monetization](48-pricing-monetization.md) | Growth (revenue surfaces) |+| [49-pwa-extension](49-pwa-extension.md) | Reach |++## P3 — Innovation programs (moat / differentiation, post-core)++Each subdirectory is a **multi-task program with its own `00-README` that defines internal run+order and dependencies** — execute a program as a unit, not interleaved. Ranked here by how close+each sits to real funds/custody (higher = harden sooner once core ships). `avatar-autorig` is the+deliberate exception promoted into P0/P1 above because it hardens a live paying path.++| Program | Tasks | Theme | Notes |+|---|---|---|---|+| [wallet-innovation/](wallet-innovation/00-README.md) | 6 | MPC custody, passkey step-up, session keys, proof-of-custody, streaming allowance/dead-man, clawback | **Custody-security primitives** — highest P3; hardens real wallets. |+| [living-wallet/](living-wallet/00-README-orchestration.md) | 6 | Autonomous treasury, proximity commerce, wallet copilot, embeddable SDK, economy feed | Autonomous money — safety framing is mandatory. |+| [agent-wallets/](agent-wallets/00-README-orchestration.md) | 3 + [innovation/](agent-wallets/innovation/00-README-innovation.md) 8 | Self-custodial avatar identity; money-cam, royalty streams, A2A economy, treasury autopilot, paywalls | Large program; overlaps living-wallet — dedupe before running both. |+| [agent-wallets-ii/](agent-wallets-ii/00-README-orchestration.md) | 3 | Intents copilot, IRL money drops/bounties, proof-of-reserves reputation | Wave II; depends on the wallet identity layer. |+| [vanity-frontier/](vanity-frontier/00-README.md) | 7 | ZK split-key vanity, sealed compute, proof-of-grind, semantic compiler, grind-to-earn, MCP concierge, 3D key ceremony | Vanity-address moat; flagship task needs honest crypto investigation. |+| [vanity-x402/](vanity-x402/00-README-orchestration.md) | 4 | Sealed wallet drops, threshold delivery, vanity-as-skill MCP, streaming pay-as-you-grind | Overlaps vanity-frontier — consolidate. |+| [living-agents/](living-agents/00-README.md) | 2 | Persistent companion HUD ("Anywhere Avatar"), integration/QA | Companion presence layer. |+| [embodiment/](embodiment/00-README.md) | 8 | Robot link, mind-sync, embodied motion, the face, on-chain soul, telepresence, kill-switch | Most forward-looking (physical robots); strongest moat, longest horizon. |++---++## Recommended execution waves++1. **Wave 0 (audit):** `01`–`05` — fan out in parallel chats, collect the gap lists.+2. **Wave 1 (P0):** money/security/integrity fixes above, including the `avatar-autorig`+ keystone→statemachine→ssrf→cost-gates chain and the pump.fun launch trio.+3. **Wave 2 (P1):** Phase-2 quality in parallel with Phase-3 core surfaces + Phase-4/5 ops.+4. **Wave 3 (P2):** growth, polish, scale.+5. **Wave 4 (P3):** innovation programs, one program at a time, each per its own README — start+ with `wallet-innovation` (custody) and dedupe the overlapping wallet/vanity programs first.+6. **Gate:** `50-final-launch-checklist` — go/no-go, run last.++> Reassess if signals change: promote `44-legal-compliance` to P0/P1 if legal sign-off blocks+> launch, and keep `27-x402` / `avatar-autorig` hot while their code is actively being touched.