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(economy): rebalancer sees the ring payer's SOL need, not just its USDC
nirholas902b8dc8c7a7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 437036ce6..11c756bbd 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- **Paying agents now get an honest answer when settlement capacity runs dry** — Our x402 payment rail sponsors the network fee on Solana settlements from a platform wallet, and it refuses to settle when that wallet drops below its safety floor: that guard is deliberate and stays. What was wrong is how the refusal read from the outside. Buyers received a generic server error (HTTP 502) after they had already signed a payment, so agent trust monitors scored the platform as broken, and buying agents burned calls signing payments that could never complete during a dry spell. Now the whole path degrades honestly: while the sponsor wallet is below its floor, paid endpoints stop advertising the Solana payment option up front (other networks stay available), anything that still reaches settlement answers with a proper temporarily-unavailable status (HTTP 503) that tells clients to retry later, and no signed payment is ever consumed by a doomed attempt. Everything springs back automatically the moment the wallet is topped up, and a genuinely unexplained settlement failure still reports as the hard error it is. (`/x402`) `[fix, improvement]`- **Sniper fleet learns faster: honest honeypot verdicts and no more invisible losers** — Two fixes to the autonomous trading fleet from auditing its own record. The trade firewall now checks which leg of the simulated buy-and-sell round-trip failed: only a failed sell (the real cannot-exit shape) blocks a coin, while a buy leg that could not fund or price the probe is a warning instead of a false honeypot verdict. And the self-tuning optimizer no longer lets a strategy that has never won keep betting at full size below the minimum sample: zero wins over six or more real trades now triggers an automatic size reduction. (`/blog/autonomous-trading-experiment`) `[improvement, fix]`- **Text-to-animation works again, from a second GPU region** — Describe a motion in words and get an animation clip back: that lane had been silently dead. Every graphics card slot in our primary compute region was pinned by the always-on 3D generation engines, so the motion model's server could never get a card to start on, and every request failed. We had a second region with three granted GPU slots sitting completely unused, so the motion service now runs there, with the platform routed to it. A three-second test through the public API returned a finished 90-frame clip in under half a minute. The primary-region copy stays parked as spare capacity for when our larger GPU quota request is granted, and the always-on engines keep their cards; nothing else moved. `[fix, infra]`+- **The agent economy now refuels itself when its gas wallet runs low** — This morning the agent-to-agent payment rail stalled for the second time in two days: the wallet that pays Solana network fees drifted below its safety floor while holding plenty of USDC, and the automatic rebalancer could not see that it needed SOL, only that its USDC looked fine. Payments are flowing again, and the root cause is fixed: the rebalancer now watches both sides of that wallet and automatically converts a small slice of its own USDC into SOL the moment fee runway runs low, so the loop refuels itself instead of waiting for a human. The economy also runs at a calmer, more efficient rhythm: fewer, larger payments per minute, which delivers more dollar volume for a fraction of the network fees. (`/forged`) `[fix, improvement]`- **The Chat app is back at three.ws/chat** — For the last month, visiting three.ws/chat silently redirected to the agent app, and the standalone chat's files had been dropped from the production build during the infrastructure migration. The full Chat app is now restored at /chat: the fast, private chat UI where your keys and entire conversation history stay in your browser, with support for OpenRouter, OpenAI, Anthropic, Groq, Mistral, and local models via Ollama, plus tool use, image input, branching history, and end-to-end encrypted sync. The deploy pipeline now builds and verifies the chat app on every release, so it cannot silently disappear again. (`/chat`) `[fix, feature]`- **The coin-world picker stays live even when the community service is down** — Opening the walk page used to show "Coin worlds are temporarily unavailable" whenever the community service behind the picker was unreachable, hiding every world behind a wall. The picker now falls back to the live pump.fun trending feed, so you can always browse and enter the hottest coin worlds; community stats simply reappear when the service comes back. (`/temporary`) `[improvement, fix]`diff --git a/data/changelog.json b/data/changelog.jsonindex 2fe20d0ab..f836ba7c0 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,25 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-07-26",+ "title": "Coin charts show a clean no-data state for dead markets",+ "summary": "Asking for the price chart of a coin with no market history returned an error that looked like an outage. It now returns an empty series and the chart renders its no-data state instead.",+ "tags": [+ "fix"+ ],+ "link": "/coins"+ },+ {+ "date": "2026-07-26",+ "title": "The agent economy now refuels itself when its gas wallet runs low",+ "summary": "This morning the agent-to-agent payment rail stalled for the second time in two days: the wallet that pays Solana network fees drifted below its safety floor while holding plenty of USDC, and the automatic rebalancer could not see that it needed SOL, only that its USDC looked fine. Payments are flowing again, and the root cause is fixed: the rebalancer now watches both sides of that wallet and automatically converts a small slice of its own USDC into SOL the moment fee runway runs low, so the loop refuels itself instead of waiting for a human. The economy also runs at a calmer, more efficient rhythm: fewer, larger payments per minute, which delivers more dollar volume for a fraction of the network fees.",+ "tags": [+ "fix",+ "improvement"+ ],+ "link": "/forged"+ },{"date": "2026-07-26","title": "Paying agents now get an honest answer when settlement capacity runs dry",diff --git a/public/changelog.json b/public/changelog.jsonindex 16c813c65..2deb97bf1 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-26T21:22:38.483Z",+ "generated_at": "2026-07-26T21:24:49.078Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -79,6 +79,17 @@"infra"]},+ {+ "date": "2026-07-26",+ "type": "update",+ "title": "The agent economy now refuels itself when its gas wallet runs low",+ "summary": "This morning the agent-to-agent payment rail stalled for the second time in two days: the wallet that pays Solana network fees drifted below its safety floor while holding plenty of USDC, and the automatic rebalancer could not see that it needed SOL, only that its USDC looked fine. Payments are flowing again, and the root cause is fixed: the rebalancer now watches both sides of that wallet and automatically converts a small slice of its own USDC into SOL the moment fee runway runs low, so the loop refuels itself instead of waiting for a human. The economy also runs at a calmer, more efficient rhythm: fewer, larger payments per minute, which delivers more dollar volume for a fraction of the network fees.",+ "link": "/forged",+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-07-26","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex c1fb4a4c2..e4a54705c 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -62,6 +62,14 @@<category>fix</category><description>Describe a motion in words and get an animation clip back: that lane had been silently dead. Every graphics card slot in our primary compute region was pinned by the always-on 3D generation engines, so the motion model's server could never get a card to start on, and every request failed. We had a second region with three granted GPU slots sitting completely unused, so the motion service now runs there, with the platform routed to it. A three-second test through the public API returned a finished 90-frame clip in under half a minute. The primary-region copy stays parked as spare capacity for when our larger GPU quota request is granted, and the always-on engines keep their cards; nothing else moved.</description></item>+ <item>+ <title>The agent economy now refuels itself when its gas wallet runs low</title>+ <link>https://three.ws/forged</link>+ <guid isPermaLink="false">2026-07-26:The agent economy now refuels itself when its gas wallet runs low</guid>+ <pubDate>Sun, 26 Jul 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>This morning the agent-to-agent payment rail stalled for the second time in two days: the wallet that pays Solana network fees drifted below its safety floor while holding plenty of USDC, and the automatic rebalancer could not see that it needed SOL, only that its USDC looked fine. Payments are flowing again, and the root cause is fixed: the rebalancer now watches both sides of that wallet and automatically converts a small slice of its own USDC into SOL the moment fee runway runs low, so the loop refuels itself instead of waiting for a human. The economy also runs at a calmer, more efficient rhythm: fewer, larger payments per minute, which delivers more dollar volume for a fraction of the network fees.</description>+ </item><item><title>The Chat app is back at three.ws/chat</title><link>https://three.ws/chat</link>diff --git a/scripts/gcp-triage.mjs b/scripts/gcp-triage.mjsindex 0bf2eeec0..303e3f36f 100644--- a/scripts/gcp-triage.mjs+++ b/scripts/gcp-triage.mjs@@ -31,12 +31,6 @@ const RUNBOOK = 'docs/ops/production-log-triage.md';const CLASS_ORDER = { owner: 0, 'env-action': 1, investigate: 2, 'self-healing': 3 };const KNOWN_SIGNATURES = [- {- id: 'sns-resolve-floating-rejection',- match: /^Error: Invalid name account provided/i,- class: 'self-healing',- action: `Bonfida resolve() of an unregistered .sol name leaks a floating rejection from library internals (~every 12 min from ring agents hitting pay-by-name). Every first-party call site catches; the served response is a correct 200/404 and no 5xx correlates. Log noise only. Re-investigate ONLY if a matching 5xx group appears on an sns/pay-by-name route. ${RUNBOOK} §sns-floating-rejection.`,- },{id: 'ring-guard-violated',match: /\[ring-invariants\] SPEND PATH DISABLED/i,@@ -109,12 +103,33 @@ const KNOWN_SIGNATURES = [class: 'self-healing',action: `x402 pay-by-name resolve() hit a .sol name with no on-chain account. resolveName() catches it and returns a clean 404 to the caller; the ERROR line is @bonfida/spl-name-service leaking a sibling promise rejection from its multi-strategy lookup (the awaited path is caught, the orphan is not). No user impact. ${RUNBOOK} §sns-name-not-found.`,},+ {+ id: 'pump-launch-sim-rejected',+ match: /\[pump\/launch-agent\] send failed .*pre-broadcast simulation failed/i,+ class: 'self-healing',+ action: `The pump.fun launch handler simulates every transaction before broadcasting; this line is the simulation REFUSING a launch that would have failed on-chain (program custom errors: slippage moved, mint state raced, metadata rejected), which protects the user's fees. The caller gets a clean 502 and a retry succeeds (verify: a 201 from the same route usually follows within minutes). Investigate only if the same wallet repeats the failure many times or the 502 rate on /api/pump/launch-agent becomes a sustained group. ${RUNBOOK} §pump-launch-sim-rejected.`,+ },];// Known signatures for request-log (5xx) groups. `test` sees the http group:// { service, status, path, userAgent }. First match wins; unmatched 5xx stays// `investigate`.const KNOWN_HTTP_SIGNATURES = [+ {+ // MUST precede worker-coldstart-health-503: a quota-starved 503 also+ // arrives as 503 /health from the scheduler, but the instance never+ // started at all — that is allocation starvation, not a cold boot.+ id: 'gpu-quota-starved',+ test: (g) => g.status === 503 && /exceeded its quota limit/i.test(g.detail),+ class: 'env-action',+ action: `Cloud Run cannot allocate a GPU for this service: the shared L4 pool (NvidiaL4GpuAllocNoZonalRedundancyPerProjectRegion, granted 3 in us-central1) is fully pinned by warm min-instances. Fix order: (1) find the idle holder — measure real job traffic per warm GPU service (POST requests, not health pings) and set the idle one to --min-instances=0 (config-only, pre-approved); 2026-07-26 case: model-hunyuan3d held a warm L4 with zero jobs in 3 days while model-text2motion starved. (2) Check the pending raise: gcloud alpha quotas preferences list --project=aerial-vehicle-466722-p5 (preference l4-no-zonal-us-central1-8, preferred 16). Fleet map + lessons: docs/ops/gcp-credits-plan.md. ${RUNBOOK} §gpu-quota-starved.`,+ },+ {+ id: 'worker-coldstart-health-503',+ test: (g) => g.status === 503 && g.path === '/health' && /Google-Cloud-Scheduler/i.test(g.userAgent),+ class: 'self-healing',+ action: `A keep-warm scheduler probe hit a GPU/model worker while it was cold-booting (weights stream for 30-60s before the server reports ready); the very purpose of the probe is to absorb that cold start. Verify the service logged its "ready" line shortly after (npm run logs -- -s <service> --since 1h) and move on. Investigate only if the SAME service repeats this across multiple sweeps, which means it is crash-looping instead of booting. ${RUNBOOK} §worker-coldstart-health.`,+ },{id: 'x402-wallets-dry-5xx',test: (g) => g.status >= 500 && (g.path.startsWith('/api/x402') || g.path === '/api/mcp')@@ -122,6 +137,15 @@ const KNOWN_HTTP_SIGNATURES = [class: 'owner',action: `5xx on paid x402 routes from the platform's own agent traffic means the economy wallets are out of SOL for tx fees (symptom map: 502 = fee wallet below SOL floor, 503 = payer self-pay refused). The economy-rebalance keypair crash is FIXED and LIVE (commit bb02839f9); when it reports skipped: "insufficient_sol_surplus" there is genuinely nothing left to swap. At the 94-calls/min ring shape the burn is ~1-1.4 SOL/day. Owner action: send SOL (or USDC) to the economy master WwwuGbqHrwF5RG89KhUbmRWEvjnRH9k5kVM5p7T3WwW; treasury-topup distributes to engines within minutes and economy-rebalance restores the payer's USDC float. Verify recovery: POST /api/cron/economy-rebalance (Bearer CRON_SECRET) returns results[].status "swapped", healthz x402_settle returns to ok, 5xx storm stops. Alternative to daily funding: throttle the ring to funded runway (X402_RING_TICK_CONCURRENCY and cadence knobs). ${RUNBOOK} §x402-wallets-dry.`,},+ {+ id: 'cc-unconfigured-503',+ // Every /api/community/* and /api/clash route wraps the same client and+ // answers the same designed 503 when CC_API_KEY is absent — match the+ // whole family, not just the worlds lobby.+ test: (g) => g.status === 503 && (g.path.startsWith('/api/community/') || g.path.startsWith('/api/clash')),+ class: 'owner',+ action: `/api/community/worlds returns its designed 503 cc_unconfigured: CC_API_KEY exists nowhere (Cloud Run env, .env, Secret Manager — swept 2026-07-26). The coin-worlds lobby stays empty until the owner provisions a CoinCommunities API key (api.coin-communities.xyz), then: gcloud run services update three-ws-api --region us-central1 --update-env-vars CC_API_KEY=<key>. Harmless noise until then. ${RUNBOOK} §cc-unconfigured.`,+ },];function parseArgs(argv) {@@ -251,7 +275,12 @@ export function buildFindings(entries) {title: `HTTP ${status} ${entry.httpRequest.requestMethod} ${path}`,count: 0, firstSeen: ts, lastSeen: ts,sample: `${entry.httpRequest.requestUrl} (ua: ${entry.httpRequest.userAgent || '-'})`,+ detail: '',};+ // Cloud Run rides the request's failure explanation (quota exhaustion,+ // no-instance aborts) in the request entry's textPayload; keep the first+ // one so message-based HTTP signatures can match on it.+ if (!g.detail && typeof entry.textPayload === 'string') g.detail = entry.textPayload.slice(0, 300);g.count++;if (ts < g.firstSeen) g.firstSeen = ts;if (ts > g.lastSeen) g.lastSeen = ts;