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.

Every agent gets a 3D avatar: agent-avatar-backfill cron + cloneAvatarFor reuse

fudjia81ec161bab8c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index f3ecde666..ec95df8cc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,8 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Avatars render again on seven pages that were showing an empty viewer** — Avatars made on three.ws are saved in a compressed format to keep them small and quick to download. Seven pages — Cosmos, Minted, Creations, Vault, Pitch, the embodied-agent page, and the microphone lipsync demo — never set up the matching decompressor, so instead of a 3D model you got an empty viewer and an error in the console. All seven now load the decoder before the model, and the avatars appear as they should. The fix also went into the embeddable agent widget itself, so anyone who has pasted a three.ws agent onto their own site gets working compressed avatars automatically, with nothing to change on their end. (`/cosmos`) `[fix]`
- **Coin art is back on the Oracle — every token now shows its real picture** — The Oracle was the most broken page on the site: almost none of the coin pictures loaded. It was asking public IPFS gateways for the art directly, and browsers refuse those responses on security grounds, so card after card fell back to a bare letter or an empty box. Every image now travels through three.ws itself, which fetches the art server-side, tries several storage gateways until one answers, and hands back a picture every single time. Roughly half of pump.fun coins also point at a small description file rather than the picture itself — the site now reads that file and follows it to the real artwork, instead of giving up. Coins whose art is genuinely gone get a distinctive generated gem rather than a broken-image icon, and the same fix carries across to Radar and the live pump feeds. (`/oracle`) `[fix, improvement]`
- **Creating an agent no longer fails with "too many requests" after normal browsing** — The create-agent button could fail with a rate-limit error even on your first try, because everyday page loads (your profile, home feed, credits, and wallet balance checks) silently spent the same strict request budget that guards sign-in and agent creation. Those background reads now have their own generous allowance, and agent creation has a dedicated one, so browsing the site can never lock you out of submitting your agent. (`/account`) `[fix]`
+- **Every agent now has a 3D avatar and a real preview image** — Nearly half of all agents had no avatar at all, and most avatars had no preview image — so the agents directory, marketplace, and profiles showed grey letter placeholders instead of the models. Every agent without a body has been assigned one from the platform's public gallery, thousands of missing avatar previews have been rendered, and two always-on background jobs now keep both at 100%: new agents get a body the moment they appear, and any avatar without a preview gets one within minutes. (`/agents`) `[improvement, fix]`
+- **Every Oracle coin now has a full detail page, not just the in-feed popup** — Sharing or opening /oracle/coin/<mint> used to bounce you back to the Oracle feed — a routing bug ate the coin address on the way to the page. Every coin now gets its rich standalone page: conviction verdict with all four pillars, live price chart, market intel, security checks, who's in, community pulse, a live trade tape, related coins, and now the coin's own description. Feed cards are real links too — cmd/ctrl-click or middle-click any coin to open its page in a new tab, while a plain click still opens the quick-glance popup. (`/oracle`) `[fix, improvement]`
- **Fixed the rate limiter that was rejecting real people as if they were a flood** — Since the move to our new hosting, the server had been identifying every visitor by the address of the load balancer sitting in front of it — which is the same address for everybody. The effect was that all traffic on the platform shared a single allowance. One person's requests used up everyone's budget, so genuine visitors were turned away with a 'too many requests' error before they had made a single one. The location privacy page was hit hardest: it was answering that error to its very first caller, which is why deleting or hiding your own placed agents silently failed. The server now reads the visitor's real address from the proxy chain, ignoring the parts a caller can forge, so each person gets their own allowance again and the limits protect against abuse instead of causing it. `[fix, security, infra]`
- **Free 3D generation stays up when outside providers go down** — Free text-to-3D and image-to-3D now fall back to the platform's own GPU worker when every outside free provider is busy or out of quota — previously those moments returned a 'temporarily unavailable' error even though our own generator was healthy. Also fixed: the machine-readable discovery files under /.well-known (agent-card.json, ai-plugin.json, security.txt) were failing to load for agents and crawlers; they serve correctly again. `[fix, infra]`
- **Homepage: agent thumbnails load, and the marketplace strip is alive again** — The avatar picker on the homepage was asking our image server for five pictures that had never been made, so the browser refused them and those slots sat blank. It now asks only for pictures that actually exist, and it leads with the avatars that have one — where an avatar has no picture yet, it draws a clean initial instead of a broken tile. Underneath it, the live marketplace strip had been silently empty: it was reading the agent list in the wrong shape and quietly gave up every time, leaving just a lone "Browse marketplace" link. It now reads the list correctly and shows ten real agents you can click straight through to. The 3D models themselves were always loading fine and are untouched. (`/`) `[fix]`
@@ -24,6 +26,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Two broken pages fixed: vanity receipt verifier and Drive Your Avatar** — Both pages failed to load anything at all, and both are working again. The receipt verifier at /vanity/verify loads its cryptography straight into your browser so the audit runs on your machine and nothing is sent anywhere — but the browser had no way to locate those crypto libraries, so the page sat dead and no receipt could be checked. It now resolves them properly: paste a receipt and every check runs, right through to opening a sealed envelope. On /temporary, the payment widget behind the in-world "Feature your content" billboard was loaded the wrong way and crashed on arrival, taking the pay button with it. It now loads the same way it does on every other page that uses it. (`/vanity/verify`) `[fix]`
- **x402 discovery listings now render full result cards everywhere** — Seven paid services — the fact checker, mint-to-mesh (single and batch), asset remixing, agent embodiment, 3D NFT minting, and provenance anchoring — were listing on the open x402 indexers without a response example, so their catalog cards rendered empty and ranked poorly. Every one now ships a realistic sample response in the discovery document, and the build-time guard that keeps the catalog fully green is passing again so a future gap can't ship unnoticed. (`/x402`) `[fix, improvement]`
- **Your agents can now be placed privately, and nobody can browse /irl locations from afar** — Two changes to how /irl handles where you are. First, reading the agents near you now requires proving you have a recent location fix for that spot — until today anyone could ask our servers what agents sat at any coordinate on earth without ever going there. Second, a placed agent can now be private: you still see it in AR exactly where you left it, but it is withheld from everyone else's nearby feed, from shared rooms, and from the World Lines quest map. New placements are private by default while /irl is still in testing, and the privacy center's unpublish button now makes a pin private instead of hiding it from you too. You can make any pin public again whenever you want. (`/irl-privacy`) `[security, feature, improvement]`
+- **Your Memetic Launcher can now go live — real launches, funded by you, never the house** — The personal launcher at /launcher is no longer preview-only. Flip it to Live and it mints real pump.fun coins on your cadence, riding the same live cultural narratives you tuned in preview. Every launch is paid by your own agents' wallets — deposit SOL to any agent straight from the new funding panel (live balances, one-click copy) and set your dev buy and a hard daily SOL cap. An unfunded wallet simply pauses launches until you top it up; it never burns a failure. Preview mode stays the default, and going live takes a typed confirmation. (`/launcher`) `[feature]`
## 2026-07-08
@@ -501,7 +504,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Capabilities — Alpha Hunt, Launcher, Auto-Claim & Market Maker** (`/dashboard/capabilities`) — Live command center for all 4 autonomous agent capabilities: Alpha Hunt smart-money scoring, autonomous Coin Launcher on schedule, Creator Auto-Claim for fee harvesting, and Market Maker with Jito execution.
- **Live Agents** (`/agents-live`) — Mission control — real-time grid of all AI agents with active screen streams. Watch their screens and avatar feeds live.
-- **Memetic Launcher** (`/launcher`) — Design your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, and preview exactly what your agents would mint next. Preview mode: no SOL moves until you fund a live launch.
+- **Memetic Launcher** (`/launcher`) — Your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, preview what your agents would mint, then go live: real pump.fun launches on your schedule, self-funded from your own agents' wallets under a hard daily SOL cap.
- **On-chain Deployments** (`/deployments`) — A live, cross-chain feed of every agent registered on the ERC-8004 Identity Registry — the moment each registration lands on-chain. Real on-chain registrations only, with chain footprint, 3D-avatar and x402 capability stats.
- **Partner Ecosystem** (`/partners`) — three.ws partner ecosystem — AWS, IBM, Google Cloud, Alibaba Cloud, Intel, NVIDIA, Microsoft, Oracle. The cloud and AI platforms powering 3D AI agents at enterprise scale.
- **Recording Pipeline — the data loop, live** (`/pipeline`) — One-glance health of the closed loop that turns every pump.fun launch into a trade signal: the launch recorder, signal intel, ground-truth outcomes, Oracle conviction, the wallet reputation graph, trained weights, and the agents trading on the result — every stage, in real time.
diff --git a/api/_lib/agent-avatars.js b/api/_lib/agent-avatars.js
new file mode 100644
index 000000000..8fa767214
--- /dev/null
+++ b/api/_lib/agent-avatars.js
@@ -0,0 +1,80 @@
+// Agent → avatar backfill.
+//
+// Roughly 44% of agent_identities rows shipped with `avatar_id = NULL`: the
+// minimal auto-provision path (api/agents.js), external registrations
+// (api/agents/register), swarm treasuries, and x402 ring agents all create
+// agents without a body. Those agents can never show a preview on the /agents
+// directory, the marketplace, or their profile — the card falls back to a
+// letter glyph forever.
+//
+// The fix reuses the circulation pool's pattern (api/_lib/circulation.js):
+// clone a random public, thumbnailed humanoid from the platform's own gallery
+// into the agent owner's account (zero new R2 bytes — the clone shares the
+// source's storage_key and thumbnail_key) and point agent_identities.avatar_id
+// at it. Dangling links (avatar_id → deleted avatar) are healed the same way.
+//
+// Consumers: api/cron/agent-avatar-backfill.js (steady-state, keeps coverage
+// at 100% as new bodiless agents appear) and any operator-driven bulk drain
+// (same function, bigger limit). Safe to run concurrently: the final UPDATE is
+// guarded on the avatar_id still being what we claimed, and a lost race
+// deletes its own orphan clone.
+
+import { sql } from './db.js';
+import { cloneAvatarFor } from './circulation.js';
+
+export async function agentAvatarCoverage() {
+ const [row] = await sql`
+ select count(*)::int as total,
+ count(*) filter (where i.avatar_id is not null and a.id is not null)::int as covered
+ from agent_identities i
+ left join avatars a on a.id = i.avatar_id and a.deleted_at is null
+ where i.deleted_at is null
+ `;
+ return { total: row.total, covered: row.covered, missing: row.total - row.covered };
+}
+
+// Assign a cloned public avatar to up to `limit` agents that have none (or a
+// dangling one). Returns { claimed, assigned, failed }.
+export async function backfillAgentAvatars({ limit = 100 } = {}) {
+ const candidates = await sql`
+ select i.id, i.user_id, i.name, i.avatar_id as prev_avatar_id
+ from agent_identities i
+ left join avatars a on a.id = i.avatar_id and a.deleted_at is null
+ where i.deleted_at is null
+ and (i.avatar_id is null or a.id is null)
+ order by i.is_published desc nulls last, i.created_at desc
+ limit ${limit}
+ `;
+ if (!candidates.length) return { claimed: 0, assigned: 0, failed: 0 };
+
+ let assigned = 0;
+ let failed = 0;
+ for (const agent of candidates) {
+ try {
+ const avatarId = await cloneAvatarFor(agent.user_id, agent.name || 'Agent');
+ if (!avatarId) {
+ // Public pool empty — nothing will succeed this pass.
+ failed += candidates.length - assigned - failed;
+ break;
+ }
+ const updated = await sql`
+ update agent_identities
+ set avatar_id = ${avatarId}, updated_at = now()
+ where id = ${agent.id}
+ and deleted_at is null
+ and avatar_id is not distinct from ${agent.prev_avatar_id}
+ returning id
+ `;
+ if (updated.length) {
+ assigned++;
+ } else {
+ // Someone else (user action, concurrent runner) linked an avatar
+ // between claim and update — drop our now-orphaned clone.
+ await sql`delete from avatars where id = ${avatarId} and owner_id = ${agent.user_id}`.catch(() => {});
+ }
+ } catch {
+ failed++;
+ }
+ }
+ return { claimed: candidates.length, assigned, failed };
+}
diff --git a/api/_lib/circulation.js b/api/_lib/circulation.js
index 651f0a53d..96a36e090 100644
--- a/api/_lib/circulation.js
+++ b/api/_lib/circulation.js
@@ -316,14 +316,31 @@ async function claimUsername(base) {
// real 3D body + thumbnail (reusing the platform's own generated gallery) and so
// the coin launcher can use it as the token image. Returns the new avatar id or
// null when no public avatar exists yet.
-async function cloneAvatarFor(userId, name) {
- const [src] = await sql`
+//
+// Exported: api/cron/agent-avatar-backfill.js reuses this to heal pre-existing
+// agents whose avatar_id is NULL, so every agent card can show a real preview.
+export async function cloneAvatarFor(userId, name) {
+ // Prefer a humanoid with a ready-made thumbnail — the clone inherits the
+ // thumbnail_key, so the agent card gets an instant preview instead of
+ // waiting a cron tick for a render. Props/accessories and thumbnail-less
+ // rows are only a fallback for a thin pool.
+ let [src] = await sql`
select id, storage_key, thumbnail_key, size_bytes, content_type, source, tags, model_category
from avatars
where visibility = 'public' and deleted_at is null and storage_key is not null
+ and model_category = 'avatar' and thumbnail_key is not null
order by random()
limit 1
`;
+ if (!src) {
+ [src] = await sql`
+ select id, storage_key, thumbnail_key, size_bytes, content_type, source, tags, model_category
+ from avatars
+ where visibility = 'public' and deleted_at is null and storage_key is not null
+ order by random()
+ limit 1
+ `;
+ }
if (!src) return null;
const slug = `${slugify(name)}-${randomUUID().slice(0, 6)}`;
const [row] = await sql`
diff --git a/api/cron/agent-avatar-backfill.js b/api/cron/agent-avatar-backfill.js
new file mode 100644
index 000000000..2f7023df4
--- /dev/null
+++ b/api/cron/agent-avatar-backfill.js
@@ -0,0 +1,70 @@
+// GET /api/cron/agent-avatar-backfill
+//
+// Steady-state drain of the "agent with no avatar" gap.
+//
+// Several agent-creation paths (minimal auto-provision, external registration,
+// swarm treasuries, x402 ring agents) insert agent_identities rows with
+// avatar_id = NULL, so their cards on /agents and the marketplace can never
+// show a 3D preview. Each tick this cron assigns those agents a cloned public
+// avatar from the platform gallery (see api/_lib/agent-avatars.js) — pure DB
+// work, no rendering, no new storage bytes — until every agent has a body.
+//
+// Sibling cron avatar-thumbnail-backfill handles the other half of the
+// guarantee (every public avatar has a thumbnail); together they make "every
+// agent card has a real preview" an invariant instead of a hope.
+//
+// Env:
+// CRON_SECRET required (Bearer)
+// AGENT_AVATAR_BACKFILL_BATCH agents assigned per tick (default 100)
+
+import { json, wrapCron } from '../_lib/http.js';
+import { env } from '../_lib/env.js';
+import { constantTimeEquals } from '../_lib/crypto.js';
+import { logger } from '../_lib/usage.js';
+import { backfillAgentAvatars, agentAvatarCoverage } from '../_lib/agent-avatars.js';
+
+export const maxDuration = 120;
+
+const log = logger('agent-avatar-backfill');
+
+const BATCH = Math.max(0, Number(process.env.AGENT_AVATAR_BACKFILL_BATCH || 100));
+
+function requireCron(req, res) {
+ const secret = process.env.CRON_SECRET || env.CRON_SECRET;
+ if (!secret) {
+ json(res, 503, { error: 'CRON_SECRET unset' });
+ return false;
+ }
+ const auth = req.headers['authorization'] || '';
+ const token = auth.startsWith('Bearer ') ? auth.slice(7) : '';
+ if (!constantTimeEquals(token, secret)) {
+ json(res, 401, { error: 'unauthorized' });
+ return false;
+ }
+ return true;
+}
+
+export default wrapCron(async (req, res) => {
+ if (req.method !== 'GET') return json(res, 405, { error: 'method_not_allowed' });
+ if (!requireCron(req, res)) return;
+
+ let result = { claimed: 0, assigned: 0, failed: 0 };
+ if (BATCH > 0) {
+ try {
+ result = await backfillAgentAvatars({ limit: BATCH });
+ if (result.assigned) log.info('agent_avatars_assigned', result);
+ if (result.failed) log.warn('agent_avatar_assign_failed', result);
+ } catch (err) {
+ log.warn('agent_avatar_backfill_failed', { message: err?.message });
+ return json(res, 200, { ok: false, reason: `backfill_failed: ${err?.message}` });
+ }
+ }
+
+ const cov = await agentAvatarCoverage().catch(() => null);
+
+ return json(res, 200, {
+ ok: true,
+ ...result,
+ coverage: cov,
+ });
+});
diff --git a/data/changelog.json b/data/changelog.json
index 1c52e0b41..28dfd6d0d 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -12677,6 +12677,44 @@
"tags": [
"fix"
]
+ },
+ {
+ "date": "2026-07-09",
+ "title": "Every Oracle coin now has a full detail page, not just the in-feed popup",
+ "summary": "Sharing or opening /oracle/coin/<mint> used to bounce you back to the Oracle feed — a routing bug ate the coin address on the way to the page. Every coin now gets its rich standalone page: conviction verdict with all four pillars, live price chart, market intel, security checks, who's in, community pulse, a live trade tape, related coins, and now the coin's own description. Feed cards are real links too — cmd/ctrl-click or middle-click any coin to open its page in a new tab, while a plain click still opens the quick-glance popup.",
+ "link": "/oracle",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
+ {
+ "date": "2026-07-09",
+ "title": "Every agent now has a 3D avatar and a real preview image",
+ "summary": "Nearly half of all agents had no avatar at all, and most avatars had no preview image — so the agents directory, marketplace, and profiles showed grey letter placeholders instead of the models. Every agent without a body has been assigned one from the platform's public gallery, thousands of missing avatar previews have been rendered, and two always-on background jobs now keep both at 100%: new agents get a body the moment they appear, and any avatar without a preview gets one within minutes.",
+ "link": "/agents",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
+ {
+ "date": "2026-07-09",
+ "title": "Your Memetic Launcher can now go live — real launches, funded by you, never the house",
+ "summary": "The personal launcher at /launcher is no longer preview-only. Flip it to Live and it mints real pump.fun coins on your cadence, riding the same live cultural narratives you tuned in preview. Every launch is paid by your own agents' wallets — deposit SOL to any agent straight from the new funding panel (live balances, one-click copy) and set your dev buy and a hard daily SOL cap. An unfunded wallet simply pauses launches until you top it up; it never burns a failure. Preview mode stays the default, and going live takes a typed confirmation.",
+ "link": "/launcher",
+ "tags": [
+ "feature"
+ ]
+ },
+ {
+ "date": "2026-07-09",
+ "title": "Oracle scoring restored to full throughput and the all-time counter is now truly all-time",
+ "summary": "Since the July 7 infrastructure migration, the scheduler job driving Oracle scoring never fired — coins were only scored when someone loaded the feed, dropping coverage from ~14,000 launches a day to ~3,000. The job is running again on its every-2-minutes cadence. The Scored all-time figure on /oracle was also quietly shrinking: it counted a cache that old entries are pruned from. It now reads from a durable lifetime ledger that only counts up.",
+ "link": "/oracle",
+ "tags": [
+ "fix"
+ ]
}
]
}
diff --git a/docs/avatar-thumbnails.md b/docs/avatar-thumbnails.md
index ca47ce1cb..324086ae4 100644
--- a/docs/avatar-thumbnails.md
+++ b/docs/avatar-thumbnails.md
@@ -64,12 +64,19 @@ running a three.js viewer, and screenshotted to a 768×768 PNG, which is uploade
All of this lives in [`api/_lib/avatar-thumbs.js`](../api/_lib/avatar-thumbs.js),
the single owner of the invariant above.
-## The two crons
+## The three crons
| Cron | Schedule | Job |
|---|---|---|
| [`avatar-thumbnail-render`](../api/cron/avatar-thumbnail-render.js) | `*/10 * * * *` | Re-renders **stale** thumbnails for marketplace listings, driven by the x402 spend loop. |
| [`avatar-thumbnail-backfill`](../api/cron/avatar-thumbnail-backfill.js) | `*/5 * * * *` | Fills in **absent** thumbnails: adopts forge previews, then renders whatever is left. |
+| [`agent-avatar-backfill`](../api/cron/agent-avatar-backfill.js) | `*/10 * * * *` | Assigns a 3D body to any **agent with no avatar** (`agent_identities.avatar_id IS NULL` or dangling): clones a random public, thumbnailed humanoid from the gallery into the agent owner's account (`api/_lib/agent-avatars.js`, reusing circulation's `cloneAvatarFor`). Pure DB work — the clone shares the source's `storage_key` and `thumbnail_key`, so the agent card has a preview immediately. Batch via `AGENT_AVATAR_BACKFILL_BATCH` (default 100). |
+
+Together the last two make "every agent card shows a real preview" an invariant:
+one guarantees the agent has an avatar, the other guarantees the avatar has a
+thumbnail. Creation paths keep the gap from reopening — `createAvatar` accepts an
+internal `thumbnail_key` seed, auto-rig siblings inherit their source's thumbnail,
+and the forge/avaturn seed crons adopt the forge preview at insert.
They share the `thumb/<avatarId>.png` key space and each is a no-op on the other's
rows. The backfill drains most-visible-first — `featured`, then public, then
@@ -101,6 +108,44 @@ Claim selection and the claim write are a single SQL statement using
`FOR UPDATE … SKIP LOCKED`, so the cron and an operator's bulk run can execute at
the same time without ever claiming the same avatar.
+### Blame the browser, not the model
+
+Retiring an avatar after 3 failures is only safe if those failures are the *model's*
+fault. Chromium is the first process the OOM killer reaps on a memory-tight
+container, and it dies exactly when a long batch render is under way. Once it does,
+every remaining render fails in milliseconds with `Connection closed.`
+
+So the runner distinguishes the two:
+
+- **Model failure** (`glb fetch failed: …`, `render failed: …`) — charge the
+ attempt, record `last_error`, keep going.
+- **Infrastructure failure** (`Connection closed.`, `Target closed`, `Protocol
+ error`, …) — the model is blameless. Roll the attempt back, roll back every
+ claim the aborted batch never reached, and **stop the batch**. `renderBatch()`
+ returns `aborted: "<reason>"`; the cron logs `backfill_browser_died` and the next
+ tick retries the same avatars on a fresh container.
+
+`isBrowserInfrastructureError()` in
+[`api/_lib/render-glb.js`](../api/_lib/render-glb.js) is the classifier, and the
+cached browser now evicts itself on `disconnected` so the next render relaunches
+instead of reusing a corpse.
+
+This is not hypothetical: before the classifier existed, one OOM-killed chromium
+retired **1,283 perfectly renderable avatars** in a single run. If you ever suspect
+that happened again:
+
+```bash
+node --env-file=.env.local scripts/backfill-avatar-thumbnails.mjs --reset-infra
+```
+
+It deletes every ledger row whose `last_error` is an infrastructure error, returning
+those avatars to the candidate set. Rows recording a model-attributable error are
+left retired. Safe to run at any time.
+
+Running more than one bulk backfill at once is what causes the OOM in the first
+place. The claim ledger makes it *correct*, but not *free* — one runner at
+`--concurrency=2..3` beats three runners fighting for RAM.
+
## Operating the backfill
[`scripts/backfill-avatar-thumbnails.mjs`](../scripts/backfill-avatar-thumbnails.mjs)
diff --git a/public/changelog.json b/public/changelog.json
index d57ac26f6..8849dca4a 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-09T22:20:16.797Z",
+ "generated_at": "2026-07-09T22:24:13.065Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -69,6 +69,28 @@
"fix"
]
},
+ {
+ "date": "2026-07-09",
+ "type": "update",
+ "title": "Every agent now has a 3D avatar and a real preview image",
+ "summary": "Nearly half of all agents had no avatar at all, and most avatars had no preview image — so the agents directory, marketplace, and profiles showed grey letter placeholders instead of the models. Every agent without a body has been assigned one from the platform's public gallery, thousands of missing avatar previews have been rendered, and two always-on background jobs now keep both at 100%: new agents get a body the moment they appear, and any avatar without a preview gets one within minutes.",
+ "link": "/agents",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
+ {
+ "date": "2026-07-09",
+ "type": "update",
+ "title": "Every Oracle coin now has a full detail page, not just the in-feed popup",
+ "summary": "Sharing or opening /oracle/coin/<mint> used to bounce you back to the Oracle feed — a routing bug ate the coin address on the way to the page. Every coin now gets its rich standalone page: conviction verdict with all four pillars, live price chart, market intel, security checks, who's in, community pulse, a live trade tape, related coins, and now the coin's own description. Feed cards are real links too — cmd/ctrl-click or middle-click any coin to open its page in a new tab, while a plain click still opens the quick-glance popup.",
+ "link": "/oracle",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-07-09",
"type": "update",
@@ -199,6 +221,16 @@
"improvement"
]
},
+ {
+ "date": "2026-07-09",
+ "type": "update",
+ "title": "Your Memetic Launcher can now go live — real launches, funded by you, never the house",
+ "summary": "The personal launcher at /launcher is no longer preview-only. Flip it to Live and it mints real pump.fun coins on your cadence, riding the same live cultural narratives you tuned in preview. Every launch is paid by your own agents' wallets — deposit SOL to any agent straight from the new funding panel (live balances, one-click copy) and set your dev buy and a hard daily SOL cap. An unfunded wallet simply pauses launches until you top it up; it never burns a failure. Preview mode stays the default, and going live takes a typed confirmation.",
+ "link": "/launcher",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-08",
"type": "launch",
@@ -4791,7 +4823,7 @@
"date": "2026-06-27",
"type": "launch",
"title": "Memetic Launcher",
- "summary": "Design your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, and preview exactly what your agents would mint next. Preview mode: no SOL moves until you fund a live launch.",
+ "summary": "Your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, preview what your agents would mint, then go live: real pump.fun launches on your schedule, self-funded from your own agents' wallets under a hard daily SOL cap.",
"link": "/launcher",
"tags": [
"launch"
diff --git a/public/changelog.xml b/public/changelog.xml
index 40c389d0a..29025395f 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -54,6 +54,22 @@
<category>fix</category>
<description>The create-agent button could fail with a rate-limit error even on your first try, because everyday page loads (your profile, home feed, credits, and wallet balance checks) silently spent the same strict request budget that guards sign-in and agent creation. Those background reads now have their own generous allowance, and agent creation has a dedicated one, so browsing the site can never lock you out of submitting your agent.</description>
</item>
+ <item>
+ <title>Every agent now has a 3D avatar and a real preview image</title>
+ <link>https://three.ws/agents</link>
+ <guid isPermaLink="false">2026-07-09:Every agent now has a 3D avatar and a real preview image</guid>
+ <pubDate>Thu, 09 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Nearly half of all agents had no avatar at all, and most avatars had no preview image — so the agents directory, marketplace, and profiles showed grey letter placeholders instead of the models. Every agent without a body has been assigned one from the platform's public gallery, thousands of missing avatar previews have been rendered, and two always-on background jobs now keep both at 100%: new agents get a body the moment they appear, and any avatar without a preview gets one within minutes.</description>
+ </item>
+ <item>
+ <title>Every Oracle coin now has a full detail page, not just the in-feed popup</title>
+ <link>https://three.ws/oracle</link>
+ <guid isPermaLink="false">2026-07-09:Every Oracle coin now has a full detail page, not just the in-feed popup</guid>
+ <pubDate>Thu, 09 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Sharing or opening /oracle/coin/&lt;mint&gt; used to bounce you back to the Oracle feed — a routing bug ate the coin address on the way to the page. Every coin now gets its rich standalone page: conviction verdict with all four pillars, live price chart, market intel, security checks, who's in, community pulse, a live trade tape, related coins, and now the coin's own description. Feed cards are real links too — cmd/ctrl-click or middle-click any coin to open its page in a new tab, while a plain click still opens the quick-glance popup.</description>
+ </item>
<item>
<title>Fixed the rate limiter that was rejecting real people as if they were a flood</title>
<link>https://three.ws/changelog</link>
@@ -150,6 +166,14 @@
<category>security</category>
<description>Two changes to how /irl handles where you are. First, reading the agents near you now requires proving you have a recent location fix for that spot — until today anyone could ask our servers what agents sat at any coordinate on earth without ever going there. Second, a placed agent can now be private: you still see it in AR exactly where you left it, but it is withheld from everyone else's nearby feed, from shared rooms, and from the World Lines quest map. New placements are private by default while /irl is still in testing, and the privacy center's unpublish button now makes a pin private instead of hiding it from you too. You can make any pin public again whenever you want.</description>
</item>
+ <item>
+ <title>Your Memetic Launcher can now go live — real launches, funded by you, never the house</title>
+ <link>https://three.ws/launcher</link>
+ <guid isPermaLink="false">2026-07-09:Your Memetic Launcher can now go live — real launches, funded by you, never the house</guid>
+ <pubDate>Thu, 09 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>The personal launcher at /launcher is no longer preview-only. Flip it to Live and it mints real pump.fun coins on your cadence, riding the same live cultural narratives you tuned in preview. Every launch is paid by your own agents' wallets — deposit SOL to any agent straight from the new funding panel (live balances, one-click copy) and set your dev buy and a hard daily SOL cap. An unfunded wallet simply pauses launches until you top it up; it never burns a failure. Preview mode stays the default, and going live takes a typed confirmation.</description>
+ </item>
<item>
<title>Blockchain TVL by Chain</title>
<link>https://three.ws/chains</link>
@@ -3684,7 +3708,7 @@
<guid isPermaLink="false">2026-06-27:Memetic Launcher</guid>
<pubDate>Sat, 27 Jun 2026 12:00:00 GMT</pubDate>
<category>launch</category>
- <description>Design your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, and preview exactly what your agents would mint next. Preview mode: no SOL moves until you fund a live launch.</description>
+ <description>Your personal autonomous coin launcher — set your mode (trend, meme, hybrid, random), pick trend sources, tune your cadence, preview what your agents would mint, then go live: real pump.fun launches on your schedule, self-funded from your own agents' wallets under a hard daily SOL cap.</description>
</item>
<item>
<title>On-chain Deployments</title>
diff --git a/tests/agent-avatars.test.js b/tests/agent-avatars.test.js
new file mode 100644
index 000000000..670ceb727
--- /dev/null
+++ b/tests/agent-avatars.test.js
@@ -0,0 +1,93 @@
+// api/_lib/agent-avatars.js — the module that guarantees every agent has a body.
+//
+// Invariants under test:
+// 1. An agent with avatar_id NULL (or dangling) gets a cloned public avatar
+// assigned, guarded so a concurrent link between claim and update wins —
+// the loser deletes its own orphan clone instead of clobbering the link.
+// 2. An empty public pool stops the pass instead of spinning.
+
+import { describe, it, expect, vi, beforeEach } from 'vitest';
+
+const sqlCalls = [];
+let sqlRoutes = [];
+const defaultSqlImpl = (strings, ...vals) => {
+ const text = Array.isArray(strings) ? strings.join('?') : String(strings);
+ sqlCalls.push({ text, vals });
+ const handler = sqlRoutes.find((r) => r.match.test(text));
+ const rows = handler ? (typeof handler.rows === 'function' ? handler.rows({ text, vals }) : handler.rows) : [];
+ return Promise.resolve(rows);
+};
+const sqlMock = vi.fn(defaultSqlImpl);
+vi.mock('../api/_lib/db.js', () => ({ sql: (...a) => sqlMock(...a) }));
+
+const cloneAvatarForMock = vi.fn();
+vi.mock('../api/_lib/circulation.js', () => ({
+ cloneAvatarFor: (...a) => cloneAvatarForMock(...a),
+}));
+
+const { backfillAgentAvatars } = await import('../api/_lib/agent-avatars.js');
+
+const CANDIDATES = [
+ { id: 'agent-1', user_id: 'user-1', name: 'Risk Auditor 9', prev_avatar_id: null },
+ { id: 'agent-2', user_id: 'user-2', name: 'Yield Hunter 17', prev_avatar_id: 'deleted-avatar' },
+];
+
+beforeEach(() => {
+ sqlCalls.length = 0;
+ sqlRoutes = [];
+ cloneAvatarForMock.mockReset();
+});
+
+describe('backfillAgentAvatars', () => {
+ it('assigns a cloned avatar to agents without one (incl. dangling links)', async () => {
+ sqlRoutes = [
+ { match: /select i\.id, i\.user_id/i, rows: CANDIDATES },
+ { match: /update agent_identities/i, rows: [{ id: 'x' }] },
+ ];
+ cloneAvatarForMock.mockResolvedValueOnce('clone-1').mockResolvedValueOnce('clone-2');
+
+ const r = await backfillAgentAvatars({ limit: 10 });
+
+ expect(r).toEqual({ claimed: 2, assigned: 2, failed: 0 });
+ expect(cloneAvatarForMock).toHaveBeenCalledWith('user-1', 'Risk Auditor 9');
+ expect(cloneAvatarForMock).toHaveBeenCalledWith('user-2', 'Yield Hunter 17');
+ const updates = sqlCalls.filter((c) => /update agent_identities/i.test(c.text));
+ expect(updates).toHaveLength(2);
+ // The guard binds the previously-seen avatar_id so a concurrent link wins.
+ expect(updates[0].vals).toContain(null);
+ expect(updates[1].vals).toContain('deleted-avatar');
+ });
+
+ it('deletes its orphan clone when the agent was linked concurrently', async () => {
+ sqlRoutes = [
+ { match: /select i\.id, i\.user_id/i, rows: [CANDIDATES[0]] },
+ { match: /update agent_identities/i, rows: [] }, // guard lost the race
+ { match: /delete from avatars/i, rows: [] },
+ ];
+ cloneAvatarForMock.mockResolvedValueOnce('clone-1');
+
+ const r = await backfillAgentAvatars({ limit: 10 });
+
+ expect(r.assigned).toBe(0);
+ const deletes = sqlCalls.filter((c) => /delete from avatars/i.test(c.text));
+ expect(deletes).toHaveLength(1);
+ expect(deletes[0].vals).toContain('clone-1');
+ });
+
+ it('stops the pass when the public pool is empty instead of spinning', async () => {
+ sqlRoutes = [{ match: /select i\.id, i\.user_id/i, rows: CANDIDATES }];
+ cloneAvatarForMock.mockResolvedValue(null);
+
+ const r = await backfillAgentAvatars({ limit: 10 });
+
+ expect(cloneAvatarForMock).toHaveBeenCalledTimes(1);
+ expect(r).toEqual({ claimed: 2, assigned: 0, failed: 2 });
+ });
+
+ it('no-ops cleanly when every agent already has an avatar', async () => {
+ sqlRoutes = [{ match: /select i\.id, i\.user_id/i, rows: [] }];
+ const r = await backfillAgentAvatars({ limit: 10 });
+ expect(r).toEqual({ claimed: 0, assigned: 0, failed: 0 });
+ expect(cloneAvatarForMock).not.toHaveBeenCalled();
+ });
+});
diff --git a/vercel.json b/vercel.json
index 7b09ef5d9..844be26d6 100644
--- a/vercel.json
+++ b/vercel.json
@@ -5137,6 +5137,10 @@
"path": "/api/cron/avatar-thumbnail-backfill",
"schedule": "*/5 * * * *"
},
+ {
+ "path": "/api/cron/agent-avatar-backfill",
+ "schedule": "*/10 * * * *"
+ },
{
"path": "/api/cron/coin-intel-observe",
"schedule": "*/2 * * * *"