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
fix(pump): prune autopilot run-log churn + honest lifetime count on /pipeline
fudjia97dabf672b7f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b2388862b..87f57c8f8 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -13,6 +13,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Docs · What Agents Can Do — The Complete Dossier** (`/docs/agent-abilities`) — The complete map of every agent ability, researched from the shipped code: body, motion, mind, voice, identity, skills, screens, economy, the 23-ability wallet, worlds, and the developer platform — 15 chapters plus a per-ability deep dive for the entire Agent Wallet.- **Markets Hub** (`/markets`) — The three.ws markets hub — live global stats, the top 100 coins, breaking crypto news from 38 publisher feeds, a 662k-article news archive, and hero links to the full markets toolset.- **Auto-rigging works again — and the Agent Identity Studio demos are real** — Rigging any generated model into an animation-ready character had been failing since the cloud migration: the rig request was sent to a service that doesn't do rigging, and the GPU rigger itself crashed on a graphics call our cloud GPUs don't support. Both are fixed — rig requests now reach the real UniRig worker, which renders its voxel pass in software instead. Proof: all four Agent Identity Studio demo characters (LedgerLynx, MuseWeaver, Momentum-9, and the three.ws studio's own) were generated, rigged with full skeletons, and photographed in posed renders through the live pipeline — see them on the showcase. (`/agent-identities`) `[fix, feature]`+- **Coin buybacks and vault balances work again** — A wiring mistake in how the platform opened its connection to Solana meant every automated buyback silently failed — for nearly a month, roughly 40,000 times a day — and the vault-balance view for any agent coin returned an error instead of its numbers. Both are fixed. Buybacks now run against the chain as intended, agent coin pages show real payment, buyback and withdraw vault balances again, and the failed-run log that quietly grew to a quarter-million rows is now pruned automatically while every on-chain burn record is kept. (`/launches`) `[fix]`- **Crypto news is live: a real-time feed from 38 publishers, a rich article reader, and a 662,047-article archive back to 2017** — Markets grew a full news wing. /markets/news streams live headlines aggregated directly from 38 publisher feeds — filter by category (Bitcoin, DeFi, regulation, and more), search, and open any story in a reader that extracts the full text with a summary, key points, sentiment, and related coverage. Behind it sits the largest open crypto-news archive anywhere: 662,047 articles from September 2017 to today in English and Chinese, searchable by keyword, ticker, source, sentiment, date, and language at /markets/archive. A new /markets hub ties the whole suite together — live global stats, the top 100 coins, breaking news, and every market tool as its own card. (`/markets`) `[feature]`- **Friends now see you online — and can message you — while you're in /play** — Your account's friends list, presence, and DMs (already live on /walk) now work inside /play's coin worlds too: a Friends button on the HUD (or press J) opens a drawer showing who's online and where, with live direct messages that arrive instantly whether or not the drawer is open. Previously /play never told the server who you were signed in as, so friends saw you as offline no matter how long you played, and any message sent your way was silently lost. (`/play`) `[feature, fix]`- **The liquidations pulse on /coins is live** — The long/short liquidation strip on the markets page had been showing its offline state since launch — the collector that listens to Binance, Bybit, and OKX futures streams needs to run around the clock, which the old serverless setup couldn't do. It now runs as its own always-on service, so the dominant-side badge, the 1-hour long-vs-short bars, and the biggest recent liquidations fill in with real exchange data. (`/coins`) `[feature, infra]`@@ -1916,7 +1917,6 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-04-14-- **Agent Home** (`/agent`) — Default landing for an agent instance — chat, embed, and remix actions.- **Create account** (`/register`) — Create a new three.ws account.- **Features** (`/features`) — Full feature overview of the three.ws platform: avatars, agents, on-chain identity, x402 payments, and embedding.- **Forgot password** (`/forgot-password`) — Request a password-reset email.diff --git a/api/cron/db-retention.js b/api/cron/db-retention.jsindex d9236a6cb..a3ce84fcf 100644--- a/api/cron/db-retention.js+++ b/api/cron/db-retention.js@@ -35,6 +35,9 @@// so a multi-day window keeps everything load-bearing; wallet reputation// (`wallet_reputation`, wallet-keyed, the durable output) and the win/loss// ground truth (`pumpfun_graduations`) are never touched.+// A4. AUTOPILOT RUN LOGS. The buyback/distribute crons record one row per coin+// per tick. Successful runs carry a tx_signature and are kept forever; the+// `failed`/`skipped` diagnostic rows are pruned on the firehose window.// B. AVATAR JOB HYGIENE. Strips the base64 source images from terminal jobs past// a day old, and deletes terminal jobs past 30 days.// C. VACUUM. Plain VACUUM on the tables it pruned so the freed pages become@@ -103,6 +106,23 @@ const TIME_SERIES_TABLES = [{ table: 'token_intel_risk', tsColumn: 'checked_at', windowKind: 'firehose' },];+// ── Autopilot run logs ────────────────────────────────────────────────────────+// The buyback / distribute crons append one row per coin per tick, whatever the+// outcome. Successful runs carry a `tx_signature` — an on-chain money record we+// keep indefinitely (the /autopilot history reads them). Unsuccessful ones carry+// only a diagnostic: `failed` (SDK/RPC error) or `skipped` (vault empty or under+// threshold). Those are pure churn, and a persistent failure loop mints them at+// the cron's cadence: a PumpAgent argument-order bug produced 228k `failed` rows+// (~40k/day, 59 MB) between 2026-06-15 and 2026-07-10 before anyone noticed,+// because a failing run recorded itself instead of alerting.+//+// Prune only the diagnostic rows, on the self-tightening firehose window. Rows+// with a tx_signature are never touched, so no burn or payout record is lost.+const RUN_LOG_TABLES = [+ { table: 'pump_buyback_runs', tsColumn: 'created_at' },+ { table: 'pump_distribute_runs', tsColumn: 'created_at' },+];+function clampInt(raw, min, max, dflt) {const n = Number.parseInt(String(raw ?? ''), 10);if (!Number.isFinite(n)) return dflt;@@ -223,6 +243,37 @@ async function pruneTimeSeries(cutoffs) {return perTable;}+// ── A4. Autopilot run-log retention (diagnostic rows only) ────────────────────+// Deletes `failed`/`skipped` rows past the firehose window. `tx_signature IS+// NULL` is belt-and-braces: a row that somehow reached a terminal-diagnostic+// status while still carrying a signature keeps its on-chain record.+async function pruneRunLogs(cutoffDays) {+ const perTable = {};+ for (const { table, tsColumn } of RUN_LOG_TABLES) {+ if (!(await tableExists(table))) continue;+ let deleted = 0;+ const maxBatches = Math.ceil(SERIES_MAX_PER_RUN / SERIES_BATCH);+ for (let i = 0; i < maxBatches; i++) {+ // table/tsColumn are fixed constants from RUN_LOG_TABLES; only the numeric+ // bounds are parameters. Bounded subselect + DELETE works at cap.+ const del = await sql(+ `DELETE FROM ${table} WHERE ctid IN (+ SELECT ctid FROM ${table}+ WHERE ${tsColumn} < now() - $1 * interval '1 day'+ AND status IN ('failed', 'skipped')+ AND tx_signature IS NULL+ LIMIT $2+ ) RETURNING 1`,+ [cutoffDays, SERIES_BATCH],+ );+ deleted += del.length;+ if (del.length < SERIES_BATCH) break;+ }+ if (deleted > 0) perTable[table] = deleted;+ }+ return perTable;+}+// ── Storage visibility ────────────────────────────────────────────────────────// When the branch is pinned above the high-water mark, the single most useful// diagnostic is WHERE the space lives. Report the largest relations so the ops@@ -364,6 +415,7 @@ export default wrapCron(async (req, res) => {const firehose = await pruneFirehose(cutoffDays);const orphans = await pruneOrphanedSatellites(firehose.liveSatellites);const series = await pruneTimeSeries({ firehose: cutoffDays, audit: auditCutoffDays });+ const runLogs = await pruneRunLogs(cutoffDays);const audit = await pruneAuditLog(auditCutoffDays);const regen = await pruneRegenJobs();@@ -371,6 +423,7 @@ export default wrapCron(async (req, res) => {const touched = Object.keys(firehose.perTable).filter((t) => firehose.perTable[t] > 0);for (const t of Object.keys(orphans)) if (!touched.includes(t)) touched.push(t);for (const t of Object.keys(series)) if (!touched.includes(t)) touched.push(t);+ for (const t of Object.keys(runLogs)) if (!touched.includes(t)) touched.push(t);if (audit.deleted > 0) touched.push('x402_audit_log');if (regen.deleted > 0 || regen.stripped > 0) touched.push('avatar_regen_jobs');await vacuumTables(touched);@@ -385,13 +438,14 @@ export default wrapCron(async (req, res) => {if (underPressure) {const seriesDeleted = Object.values(series).reduce((a, b) => a + b, 0);const orphansDeleted = Object.values(orphans).reduce((a, b) => a + b, 0);+ const runLogsDeleted = Object.values(runLogs).reduce((a, b) => a + b, 0);const topLine = topTables.slice(0, 5).map((t) => `${t.table} ${t.mb}MB`).join(', ');sendOpsAlert('db retention pressure valve engaged',- `db ${sizeBeforeMb}MB ≥ high-water ${highWaterMb}MB — tightened firehose retention to ${minDays}d; pruned ${firehose.mints} mints, ${seriesDeleted} series rows, ${orphansDeleted} orphaned satellite rows. Largest tables: ${topLine || 'n/a'}. Raise the Neon storage plan (or DB_RETENTION_HIGH_WATER_MB / PUMP_INTEL_RETENTION_DAYS) for a longer window.`,+ `db ${sizeBeforeMb}MB ≥ high-water ${highWaterMb}MB — tightened firehose retention to ${minDays}d; pruned ${firehose.mints} mints, ${seriesDeleted} series rows, ${runLogsDeleted} autopilot run-log rows, ${orphansDeleted} orphaned satellite rows. Largest tables: ${topLine || 'n/a'}. Raise the Neon storage plan (or DB_RETENTION_HIGH_WATER_MB / PUMP_INTEL_RETENTION_DAYS) for a longer window.`,{ signature: 'db:retention-pressure' },);}@@ -409,6 +463,7 @@ export default wrapCron(async (req, res) => {firehose: { mints: firehose.mints, perTable: firehose.perTable },orphans,series,+ run_logs: runLogs,audit,regen,vacuumed: touched,diff --git a/api/pipeline.js b/api/pipeline.jsindex 7eb0bb6f7..d96d7c580 100644--- a/api/pipeline.js+++ b/api/pipeline.js@@ -144,7 +144,7 @@ export default wrap(async (req, res) => {safe(async () => {const [c] = await sql`SELECT- count(*)::int AS scored_total,+ count(*)::int AS cached,count(*) filter (where scored_at >= now() - interval '24 hours')::int AS scored_24h,count(*) filter (where tier = 'prime')::int AS prime,count(*) filter (where tier = 'strong')::int AS strong@@ -152,8 +152,14 @@ export default wrap(async (req, res) => {const [a] = await sql`SELECT count(*)::int AS open_actions FROM oracle_watch_actionsWHERE network = ${network} AND outcome = 'open'`;+ // oracle_conviction is retention-pruned, so its row count is a rolling+ // window. The durable counter is the lifetime figure — same source as+ // /api/oracle/stats, so the two surfaces never disagree.+ const [t] = await sql`+ SELECT value::int AS scored_lifetime FROM oracle_counters+ WHERE network = ${network} AND key = 'scored_lifetime'`.catch(() => [{}]);return {- scored_total: c?.scored_total ?? 0,+ scored_total: Math.max(t?.scored_lifetime ?? 0, c?.cached ?? 0),scored_24h: c?.scored_24h ?? 0,prime: c?.prime ?? 0,strong: c?.strong ?? 0,diff --git a/data/changelog.json b/data/changelog.jsonindex c84821fbc..b0fdf8cd2 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -12803,6 +12803,15 @@"infra"],"link": "/markets/archive"+ },+ {+ "date": "2026-07-10",+ "title": "Coin buybacks and vault balances work again",+ "summary": "A wiring mistake in how the platform opened its connection to Solana meant every automated buyback silently failed — for nearly a month, roughly 40,000 times a day — and the vault-balance view for any agent coin returned an error instead of its numbers. Both are fixed. Buybacks now run against the chain as intended, agent coin pages show real payment, buyback and withdraw vault balances again, and the failed-run log that quietly grew to a quarter-million rows is now pruned automatically while every on-chain burn record is kept.",+ "link": "/launches",+ "tags": [+ "fix"+ ]}]-}\ No newline at end of file+}diff --git a/public/changelog.json b/public/changelog.jsonindex cd0e2f670..fd1e6d138 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-10T12:13:16.047Z",+ "generated_at": "2026-07-10T12:19:11.573Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -77,6 +77,16 @@"feature"]},+ {+ "date": "2026-07-10",+ "type": "update",+ "title": "Coin buybacks and vault balances work again",+ "summary": "A wiring mistake in how the platform opened its connection to Solana meant every automated buyback silently failed — for nearly a month, roughly 40,000 times a day — and the vault-balance view for any agent coin returned an error instead of its numbers. Both are fixed. Buybacks now run against the chain as intended, agent coin pages show real payment, buyback and withdraw vault balances again, and the failed-run log that quietly grew to a quarter-million rows is now pruned automatically while every on-chain burn record is kept.",+ "link": "/launches",+ "tags": [+ "fix"+ ]+ },{"date": "2026-07-10","type": "update",@@ -17659,16 +17669,6 @@"security"]},- {- "date": "2026-04-14",- "type": "launch",- "title": "Agent Home",- "summary": "Default landing for an agent instance — chat, embed, and remix actions.",- "link": "/agent",- "tags": [- "launch"- ]- },{"date": "2026-04-14","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 27468321e..c4840f1a0 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -62,6 +62,14 @@<category>fix</category><description>Rigging any generated model into an animation-ready character had been failing since the cloud migration: the rig request was sent to a service that doesn't do rigging, and the GPU rigger itself crashed on a graphics call our cloud GPUs don't support. Both are fixed — rig requests now reach the real UniRig worker, which renders its voxel pass in software instead. Proof: all four Agent Identity Studio demo characters (LedgerLynx, MuseWeaver, Momentum-9, and the three.ws studio's own) were generated, rigged with full skeletons, and photographed in posed renders through the live pipeline — see them on the showcase.</description></item>+ <item>+ <title>Coin buybacks and vault balances work again</title>+ <link>https://three.ws/launches</link>+ <guid isPermaLink="false">2026-07-10:Coin buybacks and vault balances work again</guid>+ <pubDate>Fri, 10 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>A wiring mistake in how the platform opened its connection to Solana meant every automated buyback silently failed — for nearly a month, roughly 40,000 times a day — and the vault-balance view for any agent coin returned an error instead of its numbers. Both are fixed. Buybacks now run against the chain as intended, agent coin pages show real payment, buyback and withdraw vault balances again, and the failed-run log that quietly grew to a quarter-million rows is now pruned automatically while every on-chain burn record is kept.</description>+ </item><item><title>Crypto news is live: a real-time feed from 38 publishers, a rich article reader, and a 662,047-article archive back to 2017</title><link>https://three.ws/markets</link>@@ -13630,14 +13638,6 @@<category>feature</category><description>Sign-In with Ethereum, wallet integration, and the ERC-8004 Passport widget — agents display cryptographic proof of identity tied to wallet ownership.</description></item>- <item>- <title>Agent Home</title>- <link>https://three.ws/agent</link>- <guid isPermaLink="false">2026-04-14:Agent Home</guid>- <pubDate>Tue, 14 Apr 2026 12:00:00 GMT</pubDate>- <category>launch</category>- <description>Default landing for an agent instance — chat, embed, and remix actions.</description>- </item><item><title>Create account</title><link>https://three.ws/register</link>