Skip to content

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.

24.9 KB
Raw Blame

parity: progress log

Cross-session handoff for the parity- orders (parity-00-CONTEXT.md). Append one dated entry per session: which order, what shipped (commit SHAs), what was measured, and anything the next session must know. Never edit an earlier entry.

2026-09-29: teardown and Tier 1

  • Teardown written: docs/research/competitor-teardown-2026-09.md (1cfce0cd1).
  • Tier 1 shipped locally, not pushed: /connect and /docs/cli (1ee0a06c3), official notice and curated llms.txt (781090002), /skill.md (d8080afd2), three-ws create / launch (ec8dae368), API reference error table and checklist (a9380b9b2).
  • Found: the three-ws npm package was never published, so npx three-ws setup (named in every MCP 401 and in /.well-known/mcp.json) fails for everyone. Order 919.
  • Corrected in the context file: the teardown called the $THREE burn policy contradictory. It is not. The platform never burns $THREE; the burn in launcher-claimer.js is each agent's own coin.
  • Orders 015 to 022 and 919 to 925 written 2026-09-30.

2026-09-30: order 021, where every $100 goes (/three-token)

  • Shipped: 05faebd92 (live wallets API GET /api/three-token/wallets, src/three-token-fee-flow.js, light theme for the page, tests) and the close-out commit that carries this entry (segment-label and stamp polish, light-theme state-kit tokens, API reference "$THREE Fee Flow API", thesis section 6 pointer, changelog).
  • Measured in production: treasury: null, rewards_wallet: null on /api/token/config; neither THREE_TREASURY_WALLET nor THREE_REWARDS_WALLET exists on the Cloud Run service. 6 POST /api/token/quote answered 503 in the 7 days to 2026-09-30 and none succeeded (Cloud Run request log). The textPayload search for treasury_unavailable finds nothing because the quote handler returns that typed 503 without logging it; count refusals from the request log instead.
  • Remaining owner action (not a line of the order): publish the two wallet addresses with gcloud run services update three-ws-api --region us-central1 --update-env-vars THREE_TREASURY_WALLET=...,THREE_REWARDS_WALLET=.... The page shows "not yet published" until then and fills itself in afterwards with no code change.

2026-09-30: order 016, /analytics (platform totals and growth)

  • Shipped: 0af815c5b (data layer api/_lib/platform-analytics.js + GET /api/platform/analytics), 7a739e177 (page module), d0212823a (page, route, build input, tests), f04f022ce (footer and nav links), 85318b030 (data/pages.json entry, llms.txt "Economy and $THREE" group, regenerated feeds), f60d919b8 (STRUCTURE.md row), a4187c39f (changelog), 796803608 (link-audit fix in src/syndicates.js, a # stub that failed npm run audit:links), and the close-out commit that carries this entry (creator fees from order 015's snapshot, API reference update). The API reference section and the /docs/start-here link were swept into 1806064d3 by a concurrent agent.
  • Measured on production data 2026-09-30 (30d window): 4,165 agents (+724), 920 with a wallet (+176), 90 mainnet coins (+3), 39,488 finished 3D models (+19,646), 244.3M LLM tokens (+109.1M), 191,488 x402 settlements (+60,572) moving $11,760.36 in USDC (+$9,141.69), 0 paid marketplace sales, $0 agent-to-agent hire volume, 5.515 SOL lifetime creator fees across 48 counted creator wallets. Every source answered in under 5 s, so no rollup table was needed; the response is cached 5 minutes.
  • Note for readers of these numbers: the x402 settlement count includes the platform's self-cycled ring (/api/x402-ring), and the method string says so.

2026-09-30: order 020, /stories and verified Spotlight results

  • Shipped: migration api/_lib/migrations/20260930171500_agent_showcase_story_consent.sql (applied alone with apply-migrations.mjs --file; landed in 716131b4f), metrics + consent + moderation backend (1ef826a16), PGlite handler tests tests/spotlight-stories.test.js (d866ed2a0), STRUCTURE row (swept into 625cbb8a6), and the close-out commit that carries this entry (/stories page, Verified results block and owner toggle on /spotlight/:id, submit-form consent checkbox, docs, route, nav, changelog).
  • Measured: 15 live agent_showcase entries (14 curated, 1 community), 0 with story consent, so /stories ships on its empty state by design. agent_revenue_events and agent_hires are empty in the database today, so service income reads $0 everywhere; coins come from 90 mainnet pump_agent_mints rows.
  • Creator fees: order 015's read model (api/_lib/agent-earnings.js) was present and is loaded lazily, so creator fees are live on entries (e.g. an entry with two coins shows 0.0324 SOL). If that module is ever absent the metric degrades to "Not measured yet", never zero.
  • Judgment call: a story needs a RESULT (coin, creator fees above zero, or service income above zero); conversations and actions alone do not qualify.
  • Not browser-exercised: the owner-only "Feature as a success story" button, because no QA account owns a Spotlight entry and creating one would write a public production entry. The consent API behind it is covered by the handler tests.

2026-09-30: order 018, sell a whole agent as a paid x402 API

  • Shipped: legacy flow fixes and the applied consumed constraint migration (5edff0a92); shared agent turn for /api/agents/talk and the paid route (198873423); service rules and ledger api/_lib/agent-api-service.js (1fd28f132); chain-correct Solana payout fallback plus the settled_to_wallet migration that keeps direct-to-wallet sales out of treasury withdrawals (4fab73f36); discovery slice and /x402 Agents category (b55a31752); Earn tab card (51a3cc3ba); paid route POST /api/x402/agents/:id, free list, owner switch GET|PUT /api/agents/:id/api-service, PGlite route tests (bca757e2a); ring-catalog exclusion by a concurrent agent (e03e571fe); changelog entry (e36c66e6e); docs, STRUCTURE row, one-click Solana wallet on the Earn card (90e8b718e). Several of these were committed by concurrent agents sweeping the worktree; the messages describe the content.
  • Measured before the work (production, read-only): 376 active agent_skill_prices, 0 agent_revenue_events, 0 agent_paid_services, agent_payment_intents_status_check without consumed (now widened). Also found: agent_identities.wallet_address is an EVM address on most rows, so api/_lib/payout.js handed a 0x address to Solana payTo; fixed.
  • Migrations 20260930140000_agent_payment_intents_consumed_status.sql and 20260930141000_agent_revenue_events_settled_to_wallet.sql are applied (the second was applied by another lane's db:migrate; content unchanged).
  • Live state: the QA account's agent 7f7c77ff-9007-43fb-9a72-3810d4a082bd ("My First Agent") now has a custodial Solana wallet 7RnhmSyCxEefewcx4dFdxz6Uvry6xVFr8m6YTQWUStHc and is on sale at $0.001 as the target for the paid proof. Turn it off from its Earn tab after the proof.
  • Remaining owner step (the order's single gate): one real mainnet paid call to that agent after deploy (order 919), paid by the ring payer X4o2UuVNMxnrgkzVy97kPF5gmS6CLRCVJGB48VastML (3.46 USDC, 0.0497 SOL on 2026-09-30). Production self-facilitator counters show 11,783 fee_runway_exhausted settle failures, so check x402_settle in /api/healthz before the call.

2026-10-08: order 015, public per-agent creator earnings (closed)

  • Shipped earlier, never closed out: dfb5c2d86 (snapshot cron), 3581568ff (API, Earned card on avatar page, profile and coin page, MCP resource), 47994b163, 9eb5bffcf, 431680a66 (STRUCTURE row, changelog), 1516d79c4 (API reference). Both pipeline defects were already fixed with tests (launcher-claimer posts agent_id; the engine accepts any 2xx with a mint), and launcher_claims / agent_coin_earnings have applied migrations.
  • Found this session: the Cloud Scheduler job for /api/cron/creator-earnings-snapshot had never been created, so the snapshot sat at its 2026-09-30 figures. Created it with node scripts/create-gcp-scheduler.mjs --only creator-earnings-snapshot (ENABLED, 11,41 * * * *). npm run check:cron-drift still reports four other declared crons with no job: marketplace-escrow-sweep, fee-bridge, x402-settlement-reconcile, duels-tick. They were left for their owners because two of them move funds.
  • Found next: pump.fun retired swap-api /v1/creators/<wallet>/fees/* (404), so the first scheduled run recorded 14 404s and tripped the breaker for the other 75 coins. Ported the client to frontend-api-v3 /fees/creator/<wallet> with swap-api /v2/creators/<wallet>/fees/total as a second rung (233305db1). A run against production data refreshed 90/90 mainnet coins across 60 wallets, 0 failures.
  • Verified: red run on the old two lines (2 tests fail), green now; 54 tests across the launcher, claimer, earnings and MCP suites pass, plus the rewritten tests/pump-creator-fees.test.js. Production GET /api/agents/<id>/earnings returns real figures for Orion #27 (0.00485 SOL) and a clean has_coins: false for the QA agent. Browser: the Earned card on /agents/:id and /agents/:id/profile and the Economics block on /launches/:mint render at 375, 768 and 1440 px in both themes with no horizontal overflow; the no-coin empty state and the forced-500 error state ("Couldn't load earnings ... Try again") render.
  • Not from the earnings code but seen on the same pages: /api/pump/coin answers 404 coin_not_found for a coin pump.fun no longer indexes, which the browser logs as a console error on the agent and coin pages.
  • Follow-up for the owner (out of scope by the order's own rule): automatic claiming for user-launched coins.

2026-10-08: order 017, earnings leaderboard on /leaderboard (closed)

  • Step 0: 015 had shipped. The API and the launch-count fix were already in (2be894e19: GET /api/leaderboard/earnings, shared api/_lib/launch-counts.js for unified.js and leaderboard-rollup.js, PGlite test), and so was the Earned tab (c703afead: src/leaderboard-earned.js, ?tab=earned&window= in the URL). The agent page's Earned card already linked its rank ("#1 this week") to /leaderboard?tab=earned&window=7d. Missing: the cross-check, docs, a STRUCTURE row, the changelog entry, browser verification. A red suite was also found.
  • Shipped this session: 9135bc579 (PGlite test tests/agent-earnings-board.test.js, which holds every board row to the agent's own earnings for all four windows, plus the live cross-check scripts/check-earnings-board.mjs), 09898e6f9 (API reference "Earnings leaderboard" section, the unified board's launches source, STRUCTURE row for /leaderboard, changelog entry, and the empty window no longer claiming a refresh time), 664f3da0f (tests/api/leaderboard-rollup-cron.test.js had been red since 2be894e19: its sql mock let the new LIMIT fragment consume a queued result).
  • Measured on the production database through a local API server (read-only): 24h 0 ranked agents, 7d 1, 30d 9, all-time 46 (2.895 SOL total). node scripts/check-earnings-board.mjs --base http://localhost:3108 reported every row equal to its agent page in all four windows. Launch-count test: 2 of 3 fail on the old unified.js, 3 of 3 pass now. 37 related suites, 420 tests green.
  • Browser: /leaderboard?tab=earned at 375, 768 and 1440 px, dark and light, all four windows. Zero console errors or warnings, no horizontal overflow. The 24h empty state ("Launch a coin" to /launch, "See all-time earnings"), the forced-503 error state with a working "Try again", and the "#1 this week" link on an agent page were all exercised.
  • Not live: production answers 404 for /api/leaderboard/earnings until the next deploy (order 919 / the owner). The snapshot behind the board was last refreshed at 04:36 UTC, so the page currently shows its stale notice. The fee-client port 233305db1 from order 015 ships in the same deploy and lets the cron refresh again.
  • Judgment calls: no OG variant, because api/og-leaderboard.js renders the $THREE holder card and has no tabs (the page uses /api/page-og). The regenerated feeds from npm run build:pages (CHANGELOG.md, public/changelog*.json/xml, features, llms, sitemap) were not committed: they also pull in other sessions' page entries that name a third-party crypto platform, which falls under the coin commit gate. The next build regenerates them from data/changelog.json.
  • Seen but out of scope: an agent page logs a console 404 from /api/pump/coin for a coin pump.fun no longer indexes (already noted under order 015).

2026-10-08: order 019, /experiments (closed)

  • Step 0: already shipped on 2026-09-30 in faedf00fb (validated data/experiments.json, validator scripts/lib/experiments-index.mjs run by build:pages, /experiments page with a URL-synced status filter, both write-ups in the six-section template with SQL appendices, docs/experiments.md, footer, start-here, docs nav group, nav menu, data/pages.json entries for the index and both write-ups, STRUCTURE row, two changelog entries, tests/experiments-index.test.js). Never closed out. This session verified every Definition of done line.
  • Queries: all 16 appendix SELECTs (7 funnel, 9 trading) re-run against the production database in read-only transactions reproduce every published figure exactly: 788 agents, 454 creators, 744 live, 208 with a wallet, 2 launched, 3 coins in window, 0 token plans, 509/315 prior window, monthly 26/7/47/7/3, 90 coins from 58 people and 65 agents; 28 strategies (11 enabled), 1,296 closed, 212 winners, -540,179,418 lamports on 9,144,352,384 deployed, rules 1,220/196 and llm 76/16, every exit reason, 15 paper trades, 357,988 verdicts and 16,860 buys, the retune split 241/1,055, the ladder 63 (+529,834,054) and 1,233 (-1,070,013,472).
  • Validator: deleting spend_usd from the first entry made npm run build:pages exit 1 with entry 0 (agent-launch-funnel): missing required field "spend_usd"; restored, validates green, 14/14 unit tests pass.
  • Browser (Vite on 3107, Playwright): /experiments and both /docs/experiments-<slug> pages at 375, 768 and 1440 px in dark and light, zero console errors and no horizontal overflow; each write-up shows all six template headings; the filter syncs ?status= (running 1, concluded 1, killed shows its empty state with "Show all 2 experiments"); a forced empty index and a forced 500 render their designed states, the error state with a Retry button. The only console output was headless-GPU WebGL driver warnings.
  • npm run audit:links passed. npm run audit:docs failed on 7 findings from other work committed today, fixed so it passes clean: eaba66bc6 (README for workers/agent-gateway; order 045 still owns that worker's deploy files), b86e0f1c9 (Oracle Desk .env.example force-added past the root .env* ignore so its README link resolves), cc1e67273 (/docs/grok page entry), b2a0e19a5 (four IBM Community drafts marked unpublished).

2026-10-08: order 022, MCP use cases and safe paid retries (closed)

  • Step 0: no retry_safe in the wrapper. api/_lib/x402/spent-payments.js already carried the retry primitives (claimPaidRetry, markFailedAfterSettle, paidFailureFields; c2e980f09, 2a545b58f) and migration 20260930180000_x402_spent_payments_paid_retry.sql was applied, but paidEndpoint() never called them: a streaming handler failure after settle still answered a bare 500 and the same header then got 409 payment_replayed; siwx_record_failed said nothing about payment; the idempotency hash still used body: null under a "GET-only" comment while dozens of paid routes are POST. docs/mcp.md had no Use cases section.
  • Shipped: 3c519d528 (wrapper wiring: streaming first attempts claim as running, a failure after settle records the proof as failed_after_settle and answers paid: true, retry_safe, the settlement and the plain sentence; the same header re-runs the exact request with no second verify or settle, bounded by X402_PAID_RETRY_MAX in X402_PAID_RETRY_WINDOW_SECONDS; a stale run is recoverable after X402_PAID_RUNNING_STALE_SECONDS; retries are bound to the payload hash; siwx_record_failed carries the same fields; pre-settle handler errors say paid: false; POST bodies are hashed and the ASR/TTS routes leave their pre-read bytes on req.rawBody), a4cd24a81 (docs/x402.md "Paid endpoint failures and retries", API reference "Paid (x402) errors"), 563529648 (docs/mcp.md Use cases for all 17 prompts across the four servers, tests/mcp-use-cases-doc.test.js), f4e6eeb54 (two changelog entries), 6e9ff57d5 (unrelated red suite fixed on the way: tests/api/x402-pay-routing.test.js mocked every fs read, so the payments config could not load data/plans.json).
  • Verified: 9 new paid-retry tests in tests/api/x402-spent-payments.test.js (throws once then succeeds with one verify and one settle; completed replay still 409; exhausted retries answer 409 payment_retries_exhausted with paid: true; SIWX failure then completed retry; stale run recovered, live run in-flight; DB down says the retry could not be saved; retry against a different request refused) all fail on the old wrapper and pass now. POST-body test red with body: null, green now (stream and rawBody modes). Use-cases check red after renaming oracle_coin in api/_mcp/tools/oracle.js (reported "trade on mcp: names tool oracle_coin, which mcp does not publish"), reverted, green. 164 x402/siwx/AI suites (1,906 tests) green; npm run audit:docs clean; npm run build:pages validated the changelog (regenerated feeds not committed, as in 017).
  • Full vitest run: 35 files fail identically on the pre-session commit 6f23779a1 (branding, IMU clips, agent guard, asset-host-liveness flagging tests/agent-earnings-board.test.js, and others); none touch this work. tests/apns.test.js failed once under full-suite load and passes alone.
  • Not live until the next deploy (order 919). No migration needed.
  • Judgment calls: the run claim reuses the existing retrying outcome value rather than adding a new one, so no schema change; a handler that throws 402 after settle answers 500 with the paid fields, because a 402 would prompt a second payment.

2026-10-09: order 019, /experiments (closed)

  • Shipped earlier, never closed out: faedf00fb (data/experiments.json, build-time validator scripts/lib/experiments-index.mjs, /experiments page and module, docs/experiments.md how-to, the two write-ups, footer, nav, start-here, pages.json, STRUCTURE row, changelog entries, tests). The close-out commit that carries this entry deletes the order file.
  • Verified this session: a temporary entry missing question fails the validator ("missing required field"), removed afterwards; tests/experiments-index.test.js 14 passing; every SELECT in both appendices re-run read-only against production and reproduces the published figures exactly (788 / 454 / 744 / 208 agents, 2 launched, 3 coins in window, 0 token plans, 509 / 315 prior window, 90 mainnet coins; 1,296 closed trades, 212 winners, -540,179,418 lamports on 9,144,352,384 deployed, same exit-reason, retune and ladder splits). /experiments renders both cards and the empty filter state, and both write-ups show all six sections plus the appendix, at 375, 768 and 1440 px in dark and light with no horizontal overflow. npm run audit:links has 0 dangling routes; npm run audit:docs has one unrelated finding (workers/cad-forge has no README).
  • Not verified: the dev server (vite) crashes on a broken symlink under contracts/lib, so the browser pass used a static file server; the only failing requests were /i18n.js, /nav-tier-badge.js and /api/auth/me, which that server does not serve.

2026-10-09: order 017, agents ranked by earnings on /leaderboard (closed)

  • Shipped: 2be894e19 (launch counts from pump_agent_mints plus fixed_supply_launches in unified.js and leaderboard-rollup.js via api/_lib/launch-counts.js, PGlite test red on the old query; GET /api/leaderboard/earnings), c703afead (Earned tab, src/leaderboard-earned.js), earlier 3581568ff (rank pill on the Earned card linking to /leaderboard?tab=earned&window=7d), and this close-out commit (STRUCTURE row, changelog entry, order file removed). API reference section was already in 1516d79c4 and later docs commits.
  • Cross-check on production data: for every ranked row in 24h (0 rows), 7d (1), 30d (9) and all (46), the row's total object equals getAgentEarnings(...).total for the same window, 0 mismatches. Browser: Earned tab at 375, 768 and 1440 px, dark and light, all four windows, no horizontal overflow, no console errors (only a Chromium WebGL driver warning from the page's 3D companion), empty-window state ("Put your agent on this board", launch and sell links) renders.
  • Judgment call: api/og-leaderboard.js renders the $THREE holder board only and has no tab concept, so no OG variant was added.
  • Seen: the creator-fee snapshot on production was 23h old at verification time (the board says so in its freshness note).

2026-10-09: order 022, MCP use cases and safe paid retries (closed)

  • Shipped in 353a5a177: paidEndpoint now records a failure after settlement (streaming handler throw, siwx_record_failed) as failed_after_settle and answers with paid: true, retry_safe, the settlement transaction, retries_left and a plain sentence; the same X-PAYMENT header re-runs the work with no second verify or settle (bounded by X402_PAID_RETRY_MAX and the retry window), a completed call still answers 409, an exhausted proof answers 409 payment_retries_exhausted. The helpers in api/_lib/x402/spent-payments.js and the migration existed from earlier commits but nothing in the wrapper called them; that wiring is the substance of this order. POST bodies now join the payment-identifier idempotency hash. docs/mcp.md has a Use cases section per guided prompt, guarded by tests/mcp-use-cases-doc.test.js (red run shown by renaming pay_and_call() in the doc). Docs: docs/x402.md, error table in docs/api-reference.md, changelog entry.
  • Verified: 13 tests in tests/api/x402-spent-payments.test.js (retry, replay 409, exhausted, siwx, POST body red/green), 179 x402/MCP test files green.
  • Not from this order: npm run audit:docs reports only workers/cad-forge (another lane's untracked directory) missing its README.

2026-10-23: orders 919, 920, 921 (built, owner steps remain)

  • 919: three-ws launcher package committed in 2859eb153; push, deploy and npm publish are owner-gated.
  • 920: external community skill sources committed in dd69b9b4b; owner approves the source list and sets COMMUNITY_SKILL_SOURCES.
  • 921: submission kit in docs/awesome-solana-ai-submission.md; PR #251 already open; second PR and mcp.so/Smithery await the owner.

2026-10-23: order 923 (built, owner steps remain)

  • 923: builder competition shipped in 439b4a256 (API, migration, ranking) and 3172dcf7e (pages, routes, docs, nav). Config ships empty. Migration unapplied, deploy and competition parameters are owner-gated; order trimmed to those.

2026-10-24: order 924, pricing levers (partial, trimmed)

  • Step 0: the requested mechanisms already shipped as developer plans (api/_lib/dev-plans/*, enforced in api/_lib/gateway.js, dashboard usage page, docs) and the THREE_CREDIT_BONUS_BPS deposit bonus (api/_lib/credit-deposit.js, separate grant row, credits page). No code was rebuilt.
  • Verified: tests/dev-plans-quota.test.js, tests/dev-plans-config.test.js, tests/credit-deposit-assets.test.js pass (23 tests).
  • Remaining (owner): production usage distribution and the tier/bonus proposal; the production env reader hung this session. Order file trimmed to that step.

2026-10-24: order 925, mention to launch (partial)

  • Step 0: reader, cron, cursor, dedupe, limits, dry run, X identity lookup and the launch grammar already existed; launch still answered help (handler_not_built). Mentions are readable on the current credentials (mentions-probe.json).
  • Shipped: api/_lib/x-mention-launch.js and its wiring in x-mention-poll.js (linked author with a bodied agent gets the prefilled /launch link; unlinked, no-agent and no-body authors get the matching link; no spend path, asserted by an import-list test), tests/x-mention-launch.test.js (7 tests incl. PGlite handleMention dry run), docs, STRUCTURE row, changelog.
  • Verified: 27 tests green across launch and poll suites; Playwright against Vite on a spare port: the reply URL fills the /launch name, ticker and description fields, no page errors.
  • Remains: real-API dry-run tick evidence after deploy, and the owner's X_MENTION_BOT_LIVE=1. check:claude shows a cron-count drift (145 vs 150) from other work.

2026-10-24: order 922, /why-three-ws (partial)

  • Shipped: 62fe9136b (page, module, jsdom tests, routes, nav, pages.json, STRUCTURE row). Browser at 375, 768 and 1440 px in both themes: no overflow, no console errors, all five tiles live from /api/platform/analytics. audit:links 0 dangling; build:pages clean after fixing two invalid changelog tags (844bd7e27).
  • Remains: the named comparison table, owner-gated on the platform names. The order file is trimmed to that step.