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.

fix(x402): mint-aware Crypto Intel pricing docs + triage decision tree for x402 5xx storms

nirholas5b7b450c241c
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.md
index 87744b3fa..b9765d85b 100644
--- a/ARCHITECTURE.md
+++ b/ARCHITECTURE.md
@@ -1440,7 +1440,7 @@ flowchart TD
| Tier | Models |
|------|--------|
-| Anthropic | claude-fable-5, claude-mythos-5 (restricted, moderation-gated, never auto-selected), claude-opus-4-7, claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5 (native `claude-haiku-4-5-20251001`) |
+| Anthropic | claude-fable-5, claude-mythos-5 (restricted, moderation-gated, never auto-selected), claude-opus-5, claude-sonnet-5, claude-opus-4-8, claude-opus-4-7, claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5 (native `claude-haiku-4-5-20251001`) |
| OpenAI | gpt-5.6-sol, gpt-5.6-terra, gpt-5.6-luna, gpt-5.5, gpt-5.5-pro, gpt-5.4 (+ pro/mini/nano), gpt-5.3-codex, o3, o3-pro (legacy gpt-4o/gpt-4o-mini/o3-mini ids alias forward) |
| NVIDIA NIM | `nvidia/nemotron-3-super-120b-a12b`, `nvidia/nvidia-nemotron-nano-9b-v2`, `deepseek-ai/deepseek-v4-pro`, `moonshotai/kimi-k2.6`, `meta/llama-4-maverick-17b-128e-instruct`, `minimaxai/minimax-m2.7` |
| IBM watsonx | `ibm-granite` (Granite 3.8B Instruct) |
@@ -2195,7 +2195,7 @@ sequenceDiagram
| Service | Models / Usage |
|---------|---------------|
-| Anthropic | claude-fable-5, claude-mythos-5, claude-opus-4-7, claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5 (chat, brain, reflect) |
+| Anthropic | claude-fable-5, claude-mythos-5, claude-opus-5, claude-sonnet-5, claude-opus-4-8, claude-opus-4-7, claude-opus-4-6, claude-sonnet-4-6, claude-haiku-4-5 (chat, brain, reflect) |
| OpenAI | GPT-5.6 family (sol/terra/luna), GPT-5.5 + GPT-5.4 tiers, gpt-5.3-codex, o3/o3-pro, text-embedding-3-small, TTS |
| NVIDIA NIM | Nemotron-super-120b, DeepSeek-v4-pro, Kimi-k2.6, Llama-4-Maverick, MiniMax-M2.7, nv-embedqa-e5-v5 |
| NVIDIA NIM Vision | Nemotron-nano-12B-v2-VL, Llama-3.2-11B-vision |
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bc2130dbd..b588cb90a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Receipt Vault** (`/receipts`) — Every x402 payment you ever made to three.ws, retrievable forever. Connect a Solana or EVM wallet, sign one read-only message, and get back every signed proof-of-purchase receipt issued to that wallet: endpoint, network, settlement transaction with explorer link, and the full signed artifact as JSON, plus CSV export and search. The buyer-side mirror of Endpoint Revenue.
- **Claude 5 models land across chat, agent brains, and widgets** — Claude Sonnet 5 and Claude Opus 5 are now available everywhere agents talk: the chat app, agent brains, embedded widgets, agent talk, the co-pilot narrator, and nightly reflection all route to the new generation, with Sonnet 5 as the platform's Anthropic default. Under the hood the Claude transport got smarter too: large system prompts are prompt-cached (about 90% cheaper on repeat turns), and requests are automatically shaped for the new models so older settings can never cause a failed reply. (`/chat`) `[feature, improvement]`
- **Coin pages are back, and they can no longer be taken down by an expired market-data key** — Every coin profile page was returning an error. The market-data provider we read prices and coin details from gives us a monthly call allowance, and once it ran out, every request we sent with our key was refused. The awkward part: the exact same request sent without the key was still being answered. We were effectively locking ourselves out. The pages are live again, and the fix is permanent rather than a one-off: when the key gets refused, we now set it aside for a while and retry the same request without it, so the pages keep serving and recover on their own when the allowance resets. We also repaired a 3D model service that was crash-looping because it tried to download a small config file from a public model host on every start and kept getting throttled. That file now ships with our own model storage, so the service starts without depending on anyone else. (`/coins`) `[fix, infra]`
+- **Crypto Intel now prices pump.fun coins, and settle failures explain themselves** — The paid Crypto Intel feed ($0.01 per call) previously could only answer for major coins listed on CoinGecko or Coinbase, so agents asking about pump.fun tokens got an unavailable response every time. It now accepts a mint address and prices any Solana token: through on-chain market aggregators for coins trading on a DEX, and directly from the live pump.fun bonding-curve state for brand-new launches. The platform's own trading engine passes the mint automatically, so the sentiment signals that guide its snipe decisions now cover the coins it actually holds and watches. Separately, when an on-chain payment settlement fails, the recorded error now keeps the part of the simulation log that states the actual cause instead of cutting it off, which makes production issues much faster to diagnose. `[improvement, fix]`
- **Documentation overhaul: every directory now explains itself** — A full documentation pass across the repository. Previously undocumented areas now ship real READMEs: the five server-side platform agents (endpoint shopper, fact checker, tutor, unstoppable, x402 buildout), the site data files, the static page system, the blog pipeline, and the npm package index. A docs-wide link audit fixed every broken link, including roughly 317 in the combined docs file, whose generator now rebases links correctly. Orphaned reference docs (design tokens, use cases, the UX flow atlas, specs) are now reachable from the Start Here page. (`/docs/start-here`) `[docs]`
- **Fixed a wallet-balancing loop that was quietly burning swap fees** — The platform wallet that pays for agent-to-agent settlements holds both USDC (to pay other agents) and a little SOL (to pay Solana network fees). An automatic balancer kept each side topped up, but when the wallet was too small to satisfy both targets at once, the two rules fought: one swapped USDC into SOL, the next run swapped it straight back, over a hundred reversing swaps in an afternoon, each one paying exchange fees for nothing. The balancer now treats the SOL fee reserve as untouchable when topping up USDC, so the tug-of-war is structurally impossible, and the balancer itself keeps running even during database-storage pressure, since skipping it is what let the fee wallet run dry earlier today. `[fix, infra]`
- **More avatar rigs animate out of the box, including research-generated characters** — Avatars rigged with SMPL-style skeletons (the convention most research text-to-3D and mocap tools export, with bones named like left_hip, left_knee, left_elbow) previously uploaded fine but froze in a T-pose or slid around on stiff legs, because their bone names were not recognized. The bone matcher now understands these skeletons, correctly tells a collarbone apart from an upper arm when both share a name, and never gives two bones the same name (which could make animations grab the wrong joint). Full body animation, legs and arms included, now works for these characters the moment they are uploaded. `[improvement, fix]`
diff --git a/api/_lib/env.js b/api/_lib/env.js
index d2816bde6..4173f9f43 100644
--- a/api/_lib/env.js
+++ b/api/_lib/env.js
@@ -1632,11 +1632,21 @@ export const env = {
},
getRpcUrl(chainId) {
- return (
- opt(`RPC_URL_${chainId}`) ||
- (chainId === 84532 ? opt('BASE_SEPOLIA_RPC_URL') : null) ||
- (chainId === 11155111 ? opt('SEPOLIA_RPC_URL') : null) ||
- null
- );
+ // Name-based aliases exist because operators set RPC_URL_ETHEREUM et al.
+ // long before the id-based convention landed; honoring both keeps every
+ // already-deployed env var live instead of silently dead.
+ const alias = {
+ 1: ['RPC_URL_ETHEREUM', 'MAINNET_RPC_URL'],
+ 10: ['RPC_URL_OPTIMISM'],
+ 56: ['RPC_URL_BSC'],
+ 137: ['RPC_URL_POLYGON'],
+ 8453: ['RPC_URL_BASE'],
+ 42161: ['RPC_URL_ARBITRUM'],
+ 84532: ['BASE_SEPOLIA_RPC_URL'],
+ 11155111: ['SEPOLIA_RPC_URL'],
+ }[chainId];
+ let url = opt(`RPC_URL_${chainId}`);
+ for (const name of alias || []) url = url || opt(name);
+ return url || null;
},
};
diff --git a/api/_lib/evm/rpc.js b/api/_lib/evm/rpc.js
index 2913ccb4a..f2548a980 100644
--- a/api/_lib/evm/rpc.js
+++ b/api/_lib/evm/rpc.js
@@ -38,9 +38,21 @@ const ALCHEMY_SUBDOMAIN = {
43113: 'avax-fuji',
};
+// Per-chain Alchemy key overrides — operators provision separate keys per app
+// (ALCHEMY_ETH_KEY, ALCHEMY_BASE_KEY, …); the shared ALCHEMY_API_KEY remains
+// the fallback for every chain.
+const ALCHEMY_CHAIN_KEY = {
+ 1: 'ALCHEMY_ETH_KEY',
+ 10: 'ALCHEMY_OPT_KEY',
+ 137: 'ALCHEMY_POLYGON_KEY',
+ 8453: 'ALCHEMY_BASE_KEY',
+ 42161: 'ALCHEMY_ARB_KEY',
+};
+
function alchemyUrl(chainId) {
const sub = ALCHEMY_SUBDOMAIN[chainId];
- const key = process.env.ALCHEMY_API_KEY;
+ const chainKeyName = ALCHEMY_CHAIN_KEY[chainId];
+ const key = (chainKeyName && process.env[chainKeyName]) || process.env.ALCHEMY_API_KEY;
return sub && key ? `https://${sub}.g.alchemy.com/v2/${key}` : null;
}
@@ -83,7 +95,7 @@ export function evmTransport(chainId, { retryCount = 1, timeout, primaryUrl = nu
* tried in priority order. Returns a single-provider JsonRpcProvider when only
* one endpoint exists (FallbackProvider requires ≥2 and quorum ≤ count).
*/
-export async function evmFallbackProvider(chainId, { primaryUrl = null } = {}) {
+export async function evmFallbackProvider(chainId, { primaryUrl = null, stallTimeout = 2000 } = {}) {
const { JsonRpcProvider, FallbackProvider, Network } = await import('ethers');
const urls = evmRpcEndpoints(chainId, primaryUrl);
if (urls.length === 0) throw new Error(`no RPC endpoint for chain ${chainId}`);
@@ -95,7 +107,7 @@ export async function evmFallbackProvider(chainId, { primaryUrl = null } = {}) {
provider: mk(u),
priority: i + 1, // lower = tried first
weight: 1,
- stallTimeout: 2000,
+ stallTimeout,
}));
return new FallbackProvider(configs, network, { quorum: 1 });
}
diff --git a/api/v1/resolve.js b/api/v1/resolve.js
index 38767d4bf..585de6384 100644
--- a/api/v1/resolve.js
+++ b/api/v1/resolve.js
@@ -26,15 +26,23 @@ import { limits } from '../_lib/rate-limit.js';
import { isValidSolanaAddress, isValidEvmAddress } from '../_lib/validate.js';
import { resolveSnsName, reverseLookupAddress } from '../../src/solana/sns.js';
import { evmFallbackProvider } from '../_lib/evm/rpc.js';
+import { env } from '../_lib/env.js';
const ENS_RE = /^(?:[a-z0-9-]+\.)*[a-z0-9-]+\.eth$/i;
const SOL_NAME_RE = /^[a-z0-9-]{1,63}\.sol$/i;
const HIT_CACHE_CONTROL = 'public, max-age=300, s-maxage=300, stale-while-revalidate=60';
-const ENS_TIMEOUT_MS = 5000;
-
-// Ethereum mainnet (chainId 1) — ENS is a mainnet-only registry.
+// ENS resolution is 2+ sequential eth_calls (resolver lookup, then resolve),
+// each independently failing over across the endpoint list. 5s starved the
+// chain when the lead endpoint rate-limited; 8s with a 1.2s stall lets three
+// endpoints get a real shot per call. Hits are edge-cached, so the budget only
+// costs on misses.
+const ENS_TIMEOUT_MS = 8000;
+
+// Ethereum mainnet (chainId 1) — ENS is a mainnet-only registry. Pin the
+// operator's mainnet RPC first (same as api/agents/ens/[name].js) so prod
+// never leads with a rate-limited public endpoint.
async function ensProvider() {
- return evmFallbackProvider(1);
+ return evmFallbackProvider(1, { primaryUrl: env.MAINNET_RPC_URL, stallTimeout: 1200 });
}
async function withEnsTimeout(promise, label) {
diff --git a/data/changelog.json b/data/changelog.json
index df09c3507..8194dc40b 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -16429,6 +16429,23 @@
"improvement"
],
"link": "/chat"
+ },
+ {
+ "date": "2026-07-28",
+ "title": "Crypto Intel now prices pump.fun coins, and settle failures explain themselves",
+ "summary": "The paid Crypto Intel feed ($0.01 per call) previously could only answer for major coins listed on CoinGecko or Coinbase, so agents asking about pump.fun tokens got an unavailable response every time. It now accepts a mint address and prices any Solana token: through on-chain market aggregators for coins trading on a DEX, and directly from the live pump.fun bonding-curve state for brand-new launches. The platform's own trading engine passes the mint automatically, so the sentiment signals that guide its snipe decisions now cover the coins it actually holds and watches. Separately, when an on-chain payment settlement fails, the recorded error now keeps the part of the simulation log that states the actual cause instead of cutting it off, which makes production issues much faster to diagnose.",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
+ {
+ "date": "2026-07-28",
+ "title": "Reliable .eth name lookups and a fixed docs link",
+ "summary": "The free name-resolution API (/api/v1/resolve) kept timing out on .eth lookups because it leaned on rate-limited public Ethereum RPCs and gave up after five seconds. It now leads with the platform-configured mainnet RPC and dedicated keys, fails over across endpoints faster, and allows a more realistic time budget, so .eth names resolve as dependably as .sol names. Also, the old agent-3d docs address now lands on the web-component reference instead of an empty page.",
+ "tags": [
+ "fix"
+ ]
}
]
}
diff --git a/docs/api-reference.md b/docs/api-reference.md
index 1dfebf125..5a57f806e 100644
--- a/docs/api-reference.md
+++ b/docs/api-reference.md
@@ -562,7 +562,7 @@ Server-Sent Events stream from a unified multi-provider LLM gateway. Used by the
```json
{
- "provider": "claude-sonnet-4-6",
+ "provider": "claude-sonnet-5",
"messages": [{ "role": "user", "content": "Hello" }],
"system": "You are a friendly product guide.",
"maxTokens": 1024
@@ -573,6 +573,8 @@ Server-Sent Events stream from a unified multi-provider LLM gateway. Used by the
| Provider | Network | Tier |
| ------------------- | ---------------- | -------- |
+| `claude-opus-5` | Anthropic | flagship |
+| `claude-sonnet-5` | Anthropic | balanced |
| `claude-opus-4-7` | Anthropic | flagship |
| `claude-sonnet-4-6` | Anthropic | balanced |
| `claude-haiku-4-5` | Anthropic | fast |
diff --git a/docs/deployment.md b/docs/deployment.md
index b2b358db4..330ed025c 100644
--- a/docs/deployment.md
+++ b/docs/deployment.md
@@ -74,7 +74,7 @@ PASSWORD_ROUNDS=11
```env
ANTHROPIC_API_KEY=sk-ant-xxxxx
# Optional overrides
-CHAT_MODEL=claude-sonnet-4-6
+CHAT_MODEL=claude-sonnet-5
CHAT_MAX_TOKENS=1024
```
diff --git a/docs/ops/db-retention.md b/docs/ops/db-retention.md
index 55136e81f..53b8f1bd4 100644
--- a/docs/ops/db-retention.md
+++ b/docs/ops/db-retention.md
@@ -81,7 +81,7 @@ fires one deduped `db:retention-pressure` alert.
| --- | --- | --- |
| `PUMP_INTEL_RETENTION_DAYS` | `14` | Normal firehose window (days). Clamped `[2, 365]`. Raise after a Neon plan upgrade. |
| `PUMP_INTEL_MIN_RETENTION_DAYS` | `3` | Floor the valve tightens to under pressure. Clamped `[1, retention]`. |
-| `DB_RETENTION_HIGH_WATER_MB` | `470` | Engage the valve at/above this size. Clamped `[128, 100000]`. |
+| `DB_RETENTION_HIGH_WATER_MB` | `470` | Engage the valve at/above this size. Clamped `[128, 100000]`. **Must sit well below the actual branch cap**, or the valve only engages after writes are already failing: with the production 3072 MB cap this is set to `2700` on the Cloud Run service (2026-07-28, after a day the two were equal and every write-heavy cron sat skipped at the cap the valve was supposed to prevent). |
| `DB_COMPACT_ENABLED` | `1` | Set `0` to disable the `VACUUM FULL` compaction step entirely. |
| `DB_COMPACT_MIN_FREE_MB` | `25` | Only rewrite a table holding at least this much reclaimable space (and at least 30% of its file). |
| `DB_COMPACT_MAX_TABLES` | `3` | Most tables one tick may rewrite. |
diff --git a/docs/ops/gcp-credits-plan.md b/docs/ops/gcp-credits-plan.md
index e5319a3c3..2583c28f9 100644
--- a/docs/ops/gcp-credits-plan.md
+++ b/docs/ops/gcp-credits-plan.md
@@ -16,13 +16,38 @@ npm run gpu -- --request 16 --region us-west1 --apply # file/raise that regio
It ranks by time-to-effect, and deliberately puts **using a grant we already hold above asking Google for more** — a port lands in minutes, a quota raise has been pending since 2026-07-16. `--port` automates the no-rebuild pattern documented under us-east4 below (export, retarget the location label, drop the read-only URLs annotation and the pinned revision name, replace, mirror the invoker IAM). Mutating modes are dry run unless `--apply`. Pure logic is covered by [tests/gpu-capacity.test.js](../../tests/gpu-capacity.test.js).
-Two things the tool surfaces that are easy to miss by hand:
+Things the tool surfaces that are easy to miss by hand:
+- **The accelerator is in `spec.template.spec.nodeSelector['run.googleapis.com/accelerator']`, not in the template annotations.** There is no annotation of that name, so reading there silently defaults every service to L4. That mistake charged the RTX PRO 6000 service to the L4 pool and made us-central1 read "3/3 pinned, 0 free" when it actually had a spare L4. Pinned by `bucketUsage` in [tests/gpu-capacity.test.js](../../tests/gpu-capacity.test.js).
- **Zonal redundancy is a separate quota bucket.** `NvidiaL4GpuAllocPerProjectRegion` and `NvidiaL4GpuAllocNoZonalRedundancyPerProjectRegion` are different grants. A region can read "full" against one and still have capacity under the other.
-- **Every region is its own grant.** Filing a preference in a region we do not use yet costs nothing and is reviewed asynchronously, so file early rather than when a lane is already starving.
+- **Every region is its own grant**, and unused regions are the cheapest capacity there is (see the 2026-07-28 result below).
Exit code is 1 when there is an action worth taking (idle grant, or a starved service), 0 when there is not, 3 when gcloud auth has lapsed.
+### 2026-07-28: the grant went 6 → 22 L4s, and the blocker was a CLI flag
+
+Two `gcloud` shapes were silently costing us capacity, both discovered by running the tool for real:
+
+1. **`gcloud alpha quotas preferences create` rejects any INCREASE without `--email`**, with `Contact email must be set in order to increase quota value`. `npm run gpu -- --request` now defaults it to the active gcloud account.
+2. **`update` takes the preference id POSITIONALLY**; only `create` uses `--preference-id`. Passing the flag to `update` fails with `unrecognized arguments`, which reads like a quota rejection but is pure CLI shape.
+
+With those fixed, filing in unused regions returned grants **immediately, not asynchronously**:
+
+| Region | Before | After | State |
+|---|---|---|---|
+| us-central1 | 3 | 3 | raise to 16 still reconciling (filed 2026-07-16) |
+| us-east4 | 3 | 3 | raise to 8 now reconciling |
+| europe-west4 | none | **8** | granted instantly |
+| asia-southeast1 | none | **8** | granted instantly |
+| us-west1 | none | 0 | requested 8, granted 0 (no capacity for us there) |
+
+**The lesson: file in a new region before escalating an existing one.** The us-central1 raise has been under human review for twelve days; europe-west4 and asia-southeast1 handed over 8 each in seconds.
+
+Two caveats on spending the new EU/APAC grant:
+
+- **`gs://three-ws-model-weights` is a us-central1 REGIONAL bucket.** A worker in europe-west4 or asia-southeast1 gcsfuse-mounts it cross-continent, so weight loading is slow and egress is charged. Before pinning a lane there, either dual-region the bucket or accept the cold-start cost. us-east4 is already proven against this bucket (hunyuan3d and trellis run there today).
+- **RTX PRO 6000 is still enforced at 1 instance** despite `grantedValue: 1000`, re-tested 2026-07-28: `--max-instances=4` fails with `requested: 4 allowed: 1`. Treat the preference number as aspirational, exactly as the 2026-07-17 note said.
+
## The one constraint that matters: L4 GPU quota
Every 3D generation engine runs on Cloud Run NVIDIA L4s, and all six GPU services draw from ONE quota: `NvidiaL4GpuAllocNoZonalRedundancyPerProjectRegion`, currently **granted 3** for us-central1.
@@ -35,7 +60,7 @@ Six GPU services share those 3 GPUs:
| model-hunyuan3d | high-fidelity reconstruction + multi-view fusion (min 0 since 2026-07-26: zero jobs in 3 days while its warm L4 starved model-text2motion; see below) | 0 | 2 |
| model-rig | auto-rigging lane (workers/rig; ~10 jobs/day) | 1 | 2 |
| model-text2motion | text-to-motion clips for the animation library | 0 | 2 |
-| model-triposr | fast image-to-3D fallback | 0 | 2 |
+| model-triposr | fast image-to-3D fallback (us-central1 copy stays min 0; the WARM copy runs in us-east4 since 2026-07-28) | 0 | 2 |
| model-triposg | image-to-3D | 0 | 2 |
| ~~unirig~~ | retired (superseded by `workers/rig`) — **holds no GPU**, minScale 0 | 0 | — |
| ~~avatar-reconstruction~~ | photo-to-avatar — **moved to CPU-only 2026-07-25, holds no GPU** (see below) | 1 | 6 |
diff --git a/docs/ops/production-log-triage.md b/docs/ops/production-log-triage.md
index 853abef9f..1eea3869d 100644
--- a/docs/ops/production-log-triage.md
+++ b/docs/ops/production-log-triage.md
@@ -146,17 +146,36 @@ HTTP 502/503 GET|POST /api/x402/*, /api/mcp ua: threews-x402-autonomous/1.0 or
```
- **Source:** the platform's own agent economy (ring, seeders, autonomous
- buyers) paying its own endpoints while the economy wallets are out of SOL
- for transaction fees.
-- **Symptom map:** `502` = fee wallet below its SOL floor; `503` = the payer's
- self-pay refused; `402` from a ring agent = its buyer wallet is out of USDC.
+ buyers) paying its own endpoints while something in the settle path fails.
+- **Three distinct causes look identical in the HTTP logs (2026-07-28: all
+ three fired in one window). Diagnose from app logs before acting:**
+ 1. `npm run logs -- -s three-ws-api --app --grep "fee_wallet_below_floor" --since 1h`
+ hits = the sponsor fee wallet drifted under
+ `X402_SPONSOR_SOL_FLOOR_LAMPORTS`. Self-heal territory: run
+ `POST /api/cron/treasury-topup`; its `reclaimIdleAgentSol` leg refunds the
+ fee wallet from idle agent SOL (commit `d6a7bf2a4`). No owner money needed
+ unless every reclaim source reports `at_or_below_floor`.
+ 2. `--grep "data_unavailable"` hits = paid endpoints refunding honestly (no
+ charge) because no market source could answer. Since 2026-07-28
+ crypto-intel prices bonding-curve pump.fun mints from the pump.fun feed
+ (the sniper-intel pipeline passes `mint`), so a recurrence at volume means
+ a data-source outage, not wallets.
+ 3. `--grep "broadcast_failed"` hits = a settle transaction failed simulation;
+ the reason now keeps the simulation-log tail (the actual cause).
+ `insufficient funds` on the token transfer = the ring payer's USDC float
+ dipped below per-tick volume; `POST /api/cron/economy-rebalance` restores
+ it (expect `results[].status: "swapped"`).
+- **Symptom map:** `502` = fee wallet below its SOL floor or settle broadcast
+ failed; `503` = the payer's self-pay refused or a data_unavailable refund;
+ `402` from a ring agent = its buyer wallet is out of USDC.
- **Not a code bug.** The economy-rebalance keypair crash (assigned
`loadSignerKeypair`'s wrapper to `keypair`, read `.publicKey` of undefined)
is fixed and live in commit `bb02839f9`. When
`POST /api/cron/economy-rebalance` (Bearer `CRON_SECRET`) answers
`skipped: insufficient_sol_surplus`, the wallets genuinely hold nothing to
swap; at the 94-calls/min ring shape the burn is ~1-1.4 SOL/day.
-- **Resolve (owner, money):** send SOL (or USDC) to the economy master
+- **Resolve (owner, money — only after all three greps above are exhausted):**
+ send SOL (or USDC) to the economy master
`WwwuGbqHrwF5RG89KhUbmRWEvjnRH9k5kVM5p7T3WwW`. The treasury-topup cron
distributes to the engines within minutes and economy-rebalance restores the
payer's USDC float. Recovery is visible as: rebalance returns
diff --git a/docs/quick-start.md b/docs/quick-start.md
index 31d820e46..1d1f93cd1 100644
--- a/docs/quick-start.md
+++ b/docs/quick-start.md
@@ -137,7 +137,7 @@ The `brain` attribute turns the 3D viewer into a conversational agent:
| Attribute | What it does |
|-----------|--------------|
-| `brain` | LLM model ID. Registered Claude IDs: `claude-sonnet-4-6`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-haiku-4-5-20251001`, `claude-fable-5`, `claude-mythos-5`. Free models (no key, routed through the platform proxy) are also accepted, e.g. `meta-llama/llama-3.3-70b-instruct:free`. Omit for a viewer-only display with no AI (provider `none`). |
+| `brain` | LLM model ID. Registered Claude IDs: `claude-sonnet-5`, `claude-opus-5`, `claude-sonnet-4-6`, `claude-opus-4-8`, `claude-opus-4-7`, `claude-opus-4-6`, `claude-haiku-4-5-20251001`, `claude-fable-5`, `claude-mythos-5` (restricted access). Free models (no key, routed through the platform proxy) are also accepted, e.g. `meta-llama/llama-3.3-70b-instruct:free`. Omit for a viewer-only display with no AI (provider `none`). |
| `instructions` | System prompt for the agent's personality and role. |
| `mode` | Layout mode: `inline` (flows with page content), `floating` (fixed bubble in a corner), `fullscreen`, or `section`. Default: `inline`. |
| `sign-language` | The avatar signs every reply in ASL fingerspelling plus its sign vocabulary (any value except `off`/`false` enables it; works at boot or toggled at runtime). See the [sign language guide](sign-language.md). |
diff --git a/pages/home.html b/pages/home.html
index 6c1af2056..1a57a85e5 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -2,6 +2,7 @@
<html lang="en">
<head>
<script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <script>/* home tier boot: no-flash progressive disclosure. Visitors who have not opted into the full page get the lite tier (advanced sections collapsed behind #advanced-gate). Runtime toggle lives next to that gate. */(function(){var lite=true;try{lite=localStorage.getItem('tws-home:tier')!=='full';}catch(e){}if(lite)document.documentElement.classList.add('home-lite');})();</script>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<title data-i18n="home.meta_title">three.ws — The 3D Agent Layer of the Internet</title>
diff --git a/public/changelog.json b/public/changelog.json
index babaa5e01..4ceeb236c 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-28T21:43:41.371Z",
+ "generated_at": "2026-07-28T21:45:22.034Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -48,6 +48,17 @@
"infra"
]
},
+ {
+ "date": "2026-07-28",
+ "type": "update",
+ "title": "Crypto Intel now prices pump.fun coins, and settle failures explain themselves",
+ "summary": "The paid Crypto Intel feed ($0.01 per call) previously could only answer for major coins listed on CoinGecko or Coinbase, so agents asking about pump.fun tokens got an unavailable response every time. It now accepts a mint address and prices any Solana token: through on-chain market aggregators for coins trading on a DEX, and directly from the live pump.fun bonding-curve state for brand-new launches. The platform's own trading engine passes the mint automatically, so the sentiment signals that guide its snipe decisions now cover the coins it actually holds and watches. Separately, when an on-chain payment settlement fails, the recorded error now keeps the part of the simulation log that states the actual cause instead of cutting it off, which makes production issues much faster to diagnose.",
+ "link": null,
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
{
"date": "2026-07-28",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 340f864e1..7f67229b8 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -38,6 +38,14 @@
<category>fix</category>
<description>Every coin profile page was returning an error. The market-data provider we read prices and coin details from gives us a monthly call allowance, and once it ran out, every request we sent with our key was refused. The awkward part: the exact same request sent without the key was still being answered. We were effectively locking ourselves out. The pages are live again, and the fix is permanent rather than a one-off: when the key gets refused, we now set it aside for a while and retry the same request without it, so the pages keep serving and recover on their own when the allowance resets. We also repaired a 3D model service that was crash-looping because it tried to download a small config file from a public model host on every start and kept getting throttled. That file now ships with our own model storage, so the service starts without depending on anyone else.</description>
</item>
+ <item>
+ <title>Crypto Intel now prices pump.fun coins, and settle failures explain themselves</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-07-28:Crypto Intel now prices pump.fun coins, and settle failures explain themselves</guid>
+ <pubDate>Tue, 28 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The paid Crypto Intel feed ($0.01 per call) previously could only answer for major coins listed on CoinGecko or Coinbase, so agents asking about pump.fun tokens got an unavailable response every time. It now accepts a mint address and prices any Solana token: through on-chain market aggregators for coins trading on a DEX, and directly from the live pump.fun bonding-curve state for brand-new launches. The platform's own trading engine passes the mint automatically, so the sentiment signals that guide its snipe decisions now cover the coins it actually holds and watches. Separately, when an on-chain payment settlement fails, the recorded error now keeps the part of the simulation log that states the actual cause instead of cutting it off, which makes production issues much faster to diagnose.</description>
+ </item>
<item>
<title>Documentation overhaul: every directory now explains itself</title>
<link>https://three.ws/docs/start-here</link>
diff --git a/public/features.json b/public/features.json
index ba4b1a74f..68bd787bf 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-28T21:42:10.203Z",
+ "generated_at": "2026-07-28T21:43:41.339Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/locales/af.json b/public/locales/af.json
index 0496b5aa3..71b3815d4 100644
--- a/public/locales/af.json
+++ b/public/locales/af.json
@@ -8173,7 +8173,7 @@
"forged": {
"3d_props_bought_by_ai_agents_receipts": "3D-rekwisiete gekoop deur KI-agente, kwitansies ingesluit",
"about_x402": "Oor x402",
- "agent_forged_gallery": "Agent-gesmede Galery",
+ "agent_forged_gallery": "Agent-Forge Galery",
"clear_search": "Vee soektog skoon",
"couldn_t_load_the_gallery": "Kon nie die galery laai nie",
"every_asset_here_was_purchased_by_one": "Elke bate hier is gekoop deur een van die platform se outonome agente met regte USDC oor die x402 betaalprotokol: die agent het die Forge betaal, die Forge het die rekwisiet gegenereer, en die vereffening het op Solana geland. Elke kaart toon die betaalde prys, die betalende agent se beursie, en 'n skakel na die on-chain kwitansie. Geen kurasie, geen skynbeelde: dit is die agentekonomie wat 'n openbare batebiblioteek bou, een betaalde generasie op 'n slag.",
diff --git a/public/locales/am.json b/public/locales/am.json
index 3f552720a..01b48bf74 100644
--- a/public/locales/am.json
+++ b/public/locales/am.json
@@ -18176,7 +18176,7 @@
"support_best_effort_usually_within_a_few": "<span class=\"dot\"></span> ድጋፍ · የተቻለንን ያህል ጥረት እናደርጋለን፣ አብዛኛውን ጊዜ በጥቂት የስራ ቀናት ውስጥ",
"support_three_ws": "[email protected]",
"the_more_of_this_you_give_us": "አስቀድመው በሰጡን ቁጥር፣ በፍጥነት ማባዛት እንችላለን።",
- "the_region_you_target_via_defaults_to": "በ<code>WATSONX_URL</code> በኩል የሚፈልጉት <b>ክልል</b> (ነባሪው <code>us-south</code> ነው) እና ሙሉው የስህተት ጽሑፍ</b>።",
+ "the_region_you_target_via_defaults_to": "በ <code>WATSONX_URL</code> በኩል የሚያነጣጥሩት <b>ክልል</b> (ነባሪው <code>us-south</code> ነው) እና <b>ሙሉ የስህተት ጽሑፍ</b>።",
"the_tool_you_called_or": "የጠሩት <b>መሳሪያ</b> — <code>ibm_granite_chat</code>፣ <code>ibm_granite_code</code>፣ <code>ibm_granite_embed</code>፣ <code>ibm_granite_analyze</code>፣ ወይም <code>ibm_granite_forecast</code>።",
"three_ws": "three.ws",
"three_ws_2": "three.ws",
diff --git a/public/locales/be.json b/public/locales/be.json
index a1fc4a266..23a998ba5 100644
--- a/public/locales/be.json
+++ b/public/locales/be.json
@@ -7985,7 +7985,7 @@
},
"forge_embed": {
"forge_your_own_3d_model_on_t_arialabel": "Forge сваю ўласную 3D-мадэль на three.ws",
- "forged_on_three_ws": "<span class=\"dot\" aria-hidden=\"true\"></span> выкавана на three.ws",
+ "forged_on_three_ws": "<span class=\"dot\" aria-hidden=\"true\"></span> Forged на three.ws",
"meta_description": "Інтэрактыўная 3D-мадэль, выкаваная на three.ws.",
"meta_title": "three.ws — убудаваная 3D-мадэль",
"no_model_to_show": "Няма мадэлі для паказу",
diff --git a/public/locales/eu.json b/public/locales/eu.json
index 9391c6e7c..e189231f5 100644
--- a/public/locales/eu.json
+++ b/public/locales/eu.json
@@ -14136,7 +14136,7 @@
"related": "Erlazionatua",
"three_ws": "three.ws",
"three_ws_home_news_rss_x_github": "&copy; three.ws &middot; <a href=\"/\">Hasiera</a> &middot; <a href=\"/news\">Albisteak</a> &middot; <a href=\"/rss/announcements.xml\">RSS</a> &middot; <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> &middot; <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",
- "three_ws_is_now_listed_on_dappbay": "<strong>three.ws Dappbay-n zerrendatuta dago orain, BNB Chain-en dApp direktorio ofizialean.</strong> Zerrendatzea zuzenean dago <em>AI Agent Launchpad</em>, <em>AI Data</em> eta <em>AI Infra</em> kategorietan, <strong>AI #121</strong> egungo sailkapenarekin.",
+ "three_ws_is_now_listed_on_dappbay": "<strong>three.ws Dappbay-n zerrendatuta dago orain, <a href=\"https://dappbay.bnbchain.org/detail/three\" rel=\"noopener\">BNB Chain-en dApp direktorio ofizialean</a>.</strong> Zerrenda zuzenean dago <em>AI Agent Launchpad</em>, <em>AI Data</em> eta <em>AI Infra</em> kategorien barruan, egungo sailkapena <strong>AI #121</strong> izanik.",
"three_ws_is_the_platform_for_3d": "three.ws katean dauden 3D AI agenteentzako plataforma da. <code>&lt;agent-3d&gt;</code> etiketa bakoitzak 3D karaktere autonomo bat inplementatzen du, honako hauekin:",
"three_ws_launches_on_alibaba_cloud_marketpla": "<a href=\"https://three.ws/blog/three-ws-on-alibaba-cloud-marketplace.html\">three.ws Alibaba Cloud Marketplace-n abiarazten da</a>",
"three_ws_listed_on_bnb_chain_s": "three.ws zerrendatuta BNB Chain-en Dappbay direktorioan",
diff --git a/public/locales/gl.json b/public/locales/gl.json
index 1ccd287bc..a746b5f11 100644
--- a/public/locales/gl.json
+++ b/public/locales/gl.json
@@ -13993,7 +13993,7 @@
"may_27_2026_three_ws_joins_the": "<a class=\"post-link\" href=\"/news/joined-aws-partner-network\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-27T15:00:00.000Z\">27 de maio de 2026</time></div> <h2 class=\"post-title\">three.ws únese á AWS Partner Network</h2> <p class=\"post-summary\">three.ws é agora un socio oficial de AWS, inscrito na AWS Partner Network (APN) Software Path como Socio Tecnolóxico. A plataforma de código aberto para axentes de IA 3D on-chain é o primeiro ISV totalmente nativo de Web3 en unirse a APN cunha pila de identidade on-chain Solana / EVM. O listado SaaS de AWS Marketplace, o seguinte.</p> <div class=\"tag-list\"><span class=\"tag\">partnership</span><span class=\"tag\">aws</span><span class=\"tag\">aws-partner-network</span><span class=\"tag\">apn</span><span class=\"tag\">software-path</span><span class=\"tag\">technology-partner</span><span class=\"tag\">isv</span><span class=\"tag\">enterprise</span></div> </div> </a>",
"may_27_2026_three_ws_joins_the_2": "<a class=\"post-link\" href=\"/news/2059457822941978723\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-27T02:13:02.000Z\">27 de maio de 2026</time></div> <h2 class=\"post-title\">three.ws únese á AWS Partner Network como Socio Tecnolóxico publicado en @CoinMarketCap</h2> <p class=\"post-summary\">three.ws únese á AWS Partner Network como Socio Tecnolóxico publicado en @CoinMarketCap coinmarketcap.com/community/articles/6a16501800dcd96a004f623f/</p> </div> </a>",
"may_27_2026_three_ws_launches_on": "<a class=\"post-link\" href=\"/news/live-on-aws-marketplace\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-27T15:30:00.000Z\">27 de maio de 2026</time></div> <h2 class=\"post-title\">three.ws lánzase en AWS Marketplace, levando Axentes de IA 3D On-Chain á Adquisición Empresarial</h2> <p class=\"post-summary\">three.ws xa está dispoñible en AWS Marketplace como subscrición SaaS. Calquera cliente de AWS pode subscribirse directamente, a facturación inclúese na súa factura de AWS, aplícanse os créditos de AWS Activate e o gasto conta para os compromisos do Programa de Desconto Empresarial. A primeira plataforma de axentes de IA 3D totalmente on-chain listada no catálogo de AWS.</p> <div class=\"tag-list\"><span class=\"tag\">listing</span><span class=\"tag\">marketplace</span><span class=\"tag\">aws</span><span class=\"tag\">aws-marketplace</span><span class=\"tag\">enterprise</span><span class=\"tag\">saas</span><span class=\"tag\">x402</span><span class=\"tag\">erc-8004</span><span class=\"tag\">metaplex-core</span><span class=\"tag\">solana</span><span class=\"tag\">agent-economy</span></div> </div> </a>",
- "may_27_2026_tomorrow_at_12_01": "<a class=\"post-link\" href=\"/news/2059712761622675776\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-27T19:06:04.000Z\">27 de maio de 2026</time></div> <h2 class=\"post-title\">Mañá ás 12:01 AM PDT imos a por o posto #1 en @ProductHunt</h2> <p class=\"post-summary\">Mañá ás 12:01 AM PDT imos a por o posto #1 en @ProductHunt. Nós &#39; construímos os primeiros avatares 3D on-chain equipados con cerebros LLM (Claude + multiprovedor), memoria e emocións. Pero non &#39; só falan, actúan. Dálle unha carteira ao teu axente para facer p… autónomas</p> </div> </a>",
+ "may_27_2026_tomorrow_at_12_01": "<a class=\"post-link\" href=\"/news/2059712761622675776\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-27T19:06:04.000Z\">27 de maio de 2026</time></div> <h2 class=\"post-title\">Mañá ás 12:01 AM PDT imos a por o posto #1 en @ProductHunt</h2> <p class=\"post-summary\">Mañá ás 12:01 AM PDT imos a por o posto #1 en @ProductHunt. Creamos os primeiros avatares 3D on-chain equipados con cerebros LLM (Claude + multiprovedor), memoria e emocións. Pero non só falan, actúan. Dálle unha carteira ao teu axente para facer x402 p… autónomos</p> </div> </a>",
"may_28_2026_live_now_on_product": "<a class=\"post-link\" href=\"/news/2059894004771418220\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-28T07:06:16.000Z\">28 de maio de 2026</time></div> <h2 class=\"post-title\">En directo agora en Product Hunt.</h2> <p class=\"post-summary\">En directo agora en Product Hunt. Nós &#39; imos a por o #1 — déixanos un voto e un comentario se cres na web de axentes 3D. three.ws — a plataforma para axentes 3D de IA on-chain.</p> </div> </a>",
"may_28_2026_three_ws_is_now": "<a class=\"post-link\" href=\"/news/2059821472156446844\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-28T02:18:03.000Z\">28 de maio de 2026</time></div> <h2 class=\"post-title\">three.ws xa está dispoñible en AWS Marketplace.</h2> <p class=\"post-summary\">three.ws xa está dispoñible en AWS Marketplace. Integra axentes 3D de IA totalmente encarnados on-chain e en calquera páxina web cunha única etiqueta &lt;script&gt; + &lt;agent-3d&gt;. Preparado para empresas • A capa 3D para internet • É &#39; hora de sacar a IA da caixa de chat.</p> </div> </a>",
"may_29_2026_huge_revamp_coming_to": "<a class=\"post-link\" href=\"/news/2060186881636422038\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-29T02:30:03.000Z\">29 de maio de 2026</time></div> <h2 class=\"post-title\">GRAN renovación en camiño para a páxina de inicio + panel de control</h2> <p class=\"post-summary\">GRAN renovación en camiño para a páxina de inicio + panel de control. Renovei completamente o sitio, facéndoo máis amigable para o usuario + toneladas de novas funcións que se anunciarán nos próximos días. Estaremos implementando estas novas funcións no sitio three.ws</p> </div> </a>",
@@ -17253,19 +17253,19 @@
"deploy_on_chain_agent_identity_features_depl": "<a href=\"/features/deploy\"> <span class=\"sm-title\">Despregar — Identidade de Axente On-Chain</span> <span class=\"sm-path\">/features/deploy</span> <span class=\"sm-desc\">Rexistra o teu axente de IA en Solana a través de ERC-8004 e Metaplex Core. Identidade permanente e verificable — descubrible por calquera carteira ou outro axente.</span> </a>",
"describe_it_to_3d_create_prompt_type": "<a href=\"/create/prompt\"> <span class=\"sm-title\">Descríbeo en 3D</span> <span class=\"sm-path\">/create/prompt</span> <span class=\"sm-desc\">Escribe unha descrición. Aproximadamente un minuto despois: un avatar 3D manipulado que podes animar e descargar.</span> </a>",
"dex_volume_leaderboard_dex_volumes_every_dec": "<a href=\"/dex-volumes\"> <span class=\"sm-title\">Clasificación de Volume DEX</span> <span class=\"sm-path\">/dex-volumes</span> <span class=\"sm-desc\">Cada intercambio descentralizado clasificado por volume de negociación, con totais de 24h e 7d, cambio de 7 días e cota de mercado, ademais dun gráfico de historial de volume agregado. En directo desde DeFiLlama.</span> </a>",
- "diorama_diorama_speak_a_little_world_into": "<a href=\"/diorama\"> <span class=\"sm-title\">Diorama</span> <span class=\"sm-path\">/diorama</span> <span class=\"sm-desc\">Dá vida a un pequeno mundo — describe unha escena e mira como se ensambla nun diorama 3D explorable polo que podes camiñar, e despois lévao á RA.[[6]] </a>",
- "discover_discover_on_chain_agent_directory_e": "<a href=\"/discover\"> <span class=\"sm-title\">Descubrir</span> <span class=\"sm-path\">/discover</span> <span class=\"sm-desc\">Directorio de axentes on-chain (ERC-8004 + Solana). Explora, busca e inspecciona cada axente rexistrado.[[6]] </a>",
- "docs_3d_studio_mcp_free_docs_mcp": "<a href=\"/docs/mcp-studio\"> <span class=\"sm-title\">Docs · 3D Studio MCP (gratuíto)</span> <span class=\"sm-path\">/docs/mcp-studio</span> <span class=\"sm-desc\">O servidor MCP gratuíto e sen autenticación detrás da aplicación ChatGPT 3D Studio: texto e imaxe a 3D, avatares con rigging, refinamento conversacional e persoas de axentes vivas.[[6]] </a>",
- "docs_agent_3d_web_component_docs_agent": "<a href=\"/docs/agent-3d\"> <span class=\"sm-title\">Docs: Compoñente web agent-3d</span> <span class=\"sm-path\">/docs/agent-3d</span> <span class=\"sm-desc\">Documentación para incrustar un axente 3D co compoñente web agent-3d.[[6]] </a>",
- "docs_agent_galaxy_docs_galaxy_every_publishe": "<a href=\"/docs/galaxy\"> <span class=\"sm-title\">Docs · Agent Galaxy</span> <span class=\"sm-path\">/docs/galaxy</span> <span class=\"sm-desc\">Cada axente publicado incrustado por IBM Granite en watsonx.ai, proxectado nunha constelación 3D navegable con busca semántica en linguaxe natural.[[6]] </a>",
- "docs_agent_genome_docs_genome_breed_two": "<a href=\"/docs/genome\"> <span class=\"sm-title\">Docs · Agent Genome</span> <span class=\"sm-path\">/docs/genome</span> <span class=\"sm-desc\">Cruza dous axentes para crear un fillo de herdanza demostrable: cerebro, voz, corpo e licenzas de habilidades on-chain recombinados, cada evento de cruzamento rexistrado con semente e cunha árbore xenealóxica verificable.[[6]] </a>",
- "docs_agent_reputation_docs_agent_reputation": "<a href=\"/docs/agent-reputation\"> <span class=\"sm-title\">Docs · Reputación do Axente</span> <span class=\"sm-path\">/docs/agent-reputation</span> <span class=\"sm-desc\">Por que os axentes autónomos necesitan confianza verificable, e como three.ws ofrece reputación on-chain portátil.[[6]] </a>",
- "docs_agent_reputation_on_solana_docs_solana": "<a href=\"/docs/solana-reputation\"> <span class=\"sm-title\">Docs · Reputación do Axente en Solana</span> <span class=\"sm-path\">/docs/solana-reputation</span> <span class=\"sm-desc\">Como three.ws lle dá a un axente Solana un rexistro de confianza — atestacións de memo, o programa de coordinación AgenC e a ponte de identidade EVM.[[6]] </a>",
- "docs_agent_studio_docs_agent_studio_author": "<a href=\"/docs/agent-studio\"> <span class=\"sm-title\">Docs · Agent Studio</span> <span class=\"sm-path\">/docs/agent-studio</span> <span class=\"sm-desc\">Crea o cerebro, a memoria, o corpo, o diñeiro e as habilidades dun axente nun só lugar, xunto a un avatar 3D persistente e en vivo que se actualiza en todas partes mentres editas.[[6]] </a>",
- "docs_agent_system_docs_agent_system_how": "<a href=\"/docs/agent-system\"> <span class=\"sm-title\">Docs · Sistema de Axentes</span> <span class=\"sm-path\">/docs/agent-system</span> <span class=\"sm-desc\">Como os axentes, avatares, habilidades e memorias encaixan entre si.[[6]] </a>",
- "docs_alpha_co_pilot_docs_alpha_copilot": "<a href=\"/docs/alpha-copilot\"> <span class=\"sm-title\">Docs · Alpha Co-pilot</span> <span class=\"sm-path\">/docs/alpha-copilot</span> <span class=\"sm-desc\">O teu axente 3D le un lanzamento real de pump.fun con carácter, baseado en datos en vivo de liquidez, posuidores e diñeiro intelixente, e pronuncia o seu veredicto en voz alta. As cifras fabricadas son rexeitadas; o propietario actúa só dentro dos límites de gasto impostos polo servidor.[[6]] </a>",
- "docs_animation_studio_docs_animation_studio": "<a href=\"/docs/animation-studio\"> <span class=\"sm-title\">Docs · Animation Studio</span> <span class=\"sm-path\">/docs/animation-studio</span> <span class=\"sm-desc\">Posiciona calquera avatar ou o manequín integrado con FK/IK, crea fotogramas clave nunha liña de tempo, previsualiza en vivo e exporta un GLB animado ou JSON de clip. Garda os clips na túa conta e ponos á venda en USDC.[[6]] </a>",
- "docs_api_reference_docs_api_reference_full": "<a href=\"/docs/api-reference\"> <span class=\"sm-title\">Docs · Referencia da API</span> <span class=\"sm-path\">/docs/api-reference</span> <span class=\"sm-desc\">Referencia completa da API HTTP.[[6]] </a>",
+ "diorama_diorama_speak_a_little_world_into": "<a href=\"/diorama\"> <span class=\"sm-title\">Diorama</span> <span class=\"sm-path\">/diorama</span> <span class=\"sm-desc\">Dálle vida a un pequeno mundo: describe unha escena e observa como se ensambla nun diorama 3D transitable e explorable, e despois lévao á RA.</span> </a>",
+ "discover_discover_on_chain_agent_directory_e": "<a href=\"/discover\"> <span class=\"sm-title\">Descubrir</span> <span class=\"sm-path\">/discover</span> <span class=\"sm-desc\">Directorio de axentes on-chain (ERC-8004 + Solana). Navega, busca e inspecciona cada axente rexistrado.</span> </a>",
+ "docs_3d_studio_mcp_free_docs_mcp": "<a href=\"/docs/mcp-studio\"> <span class=\"sm-title\">Documentación · 3D Studio MCP (gratuíto)</span> <span class=\"sm-path\">/docs/mcp-studio</span> <span class=\"sm-desc\">O servidor MCP gratuíto e sen autenticación que impulsa a aplicación ChatGPT 3D Studio: texto e imaxe a 3D, avatares con rigging, refinamento conversacional e persoas de axentes vivos.</span> </a>",
+ "docs_agent_3d_web_component_docs_agent": "<a href=\"/docs/agent-3d\"> <span class=\"sm-title\">Documentación: Compoñente Web agent-3d</span> <span class=\"sm-path\">/docs/agent-3d</span> <span class=\"sm-desc\">Documentación para incrustar un axente 3D co compoñente web agent-3d.</span> </a>",
+ "docs_agent_galaxy_docs_galaxy_every_publishe": "<a href=\"/docs/galaxy\"> <span class=\"sm-title\">Docs · Agent Galaxy</span> <span class=\"sm-path\">/docs/galaxy</span> <span class=\"sm-desc\">Cada axente publicado incrustado por IBM Granite en watsonx.ai, proxectado nunha constelación 3D navegable con busca semántica en linguaxe natural.</span> </a>",
+ "docs_agent_genome_docs_genome_breed_two": "<a href=\"/docs/genome\"> <span class=\"sm-title\">Docs · Agent Genome</span> <span class=\"sm-path\">/docs/genome</span> <span class=\"sm-desc\">Cruza dous axentes para xerar un fillo con herdanza demostrable: cerebro, voz, corpo e licenzas de habilidades on-chain recombinados. Cada evento de cruzamento queda rexistrado na orixe cunha árbore xenealóxica verificable.</span> </a>",
+ "docs_agent_reputation_docs_agent_reputation": "<a href=\"/docs/agent-reputation\"> <span class=\"sm-title\">Docs · Reputación do Axente</span> <span class=\"sm-path\">/docs/agent-reputation</span> <span class=\"sm-desc\">Por que os axentes autónomos precisan confianza verificable, e como three.ws ofrece reputación on-chain portátil.</span> </a>",
+ "docs_agent_reputation_on_solana_docs_solana": "<a href=\"/docs/solana-reputation\"> <span class=\"sm-title\">Docs · Reputación do Axente en Solana</span> <span class=\"sm-path\">/docs/solana-reputation</span> <span class=\"sm-desc\">Como three.ws lle outorga a un axente Solana un rexistro de confianza — atestacións de memo, o programa de coordinación AgenC e a ponte de identidade EVM.</span> </a>",
+ "docs_agent_studio_docs_agent_studio_author": "<a href=\"/docs/agent-studio\"> <span class=\"sm-title\">Docs · Agent Studio</span> <span class=\"sm-path\">/docs/agent-studio</span> <span class=\"sm-desc\">Crea o cerebro, a memoria, o corpo, o diñeiro e as habilidades dun axente nun só lugar, xunto a un avatar 3D en vivo e persistente que se actualiza en todas partes mentres editas.</span> </a>",
+ "docs_agent_system_docs_agent_system_how": "<a href=\"/docs/agent-system\"> <span class=\"sm-title\">Docs · Agent System</span> <span class=\"sm-path\">/docs/agent-system</span> <span class=\"sm-desc\">Como encaixan axentes, avatares, habilidades e memorias.</span> </a>",
+ "docs_alpha_co_pilot_docs_alpha_copilot": "<a href=\"/docs/alpha-copilot\"> <span class=\"sm-title\">Docs · Alpha Co-pilot</span> <span class=\"sm-path\">/docs/alpha-copilot</span> <span class=\"sm-desc\">O teu axente 3D le un lanzamento pump.fun real no seu papel, fundamentado en datos de liquidez en tempo real, titulares e smart-money, e pronuncia o seu veredicto en voz alta. Rexeítanse as cifras fabricadas; o propietario actúa só dentro dos límites de gasto impostos polo servidor.</span> </a>",
+ "docs_animation_studio_docs_animation_studio": "<a href=\"/docs/animation-studio\"> <span class=\"sm-title\">Docs · Estudo de Animación</span> <span class=\"sm-path\">/docs/animation-studio</span> <span class=\"sm-desc\">Posiciona calquera avatar ou o manequín integrado con FK/IK, define fotogramas clave nunha liña de tempo, previsualiza en tempo real e exporta un GLB animado ou JSON de clip. Garda os clips na túa conta e ponos á venda en USDC.</span> </a>",
+ "docs_api_reference_docs_api_reference_full": "<a href=\"/docs/api-reference\"> <span class=\"sm-title\">Documentación · Referencia da API</span> <span class=\"sm-path\">/docs/api-reference</span> <span class=\"sm-desc\">Referencia completa da API HTTP.</span> </a>",
"docs_ar_in_chatgpt_docs_chatgpt_ar": "<a href=\"/docs/chatgpt-ar\"> <span class=\"sm-title\">Docs · AR en ChatGPT</span> <span class=\"sm-path\">/docs/chatgpt-ar</span> <span class=\"sm-desc\">Como unha frase escrita en ChatGPT se converte nun modelo 3D na túa habitación: a vía de xeración gratuíta, o contrato arUrl, o lanzador AR consciente do dispositivo, avatares vivos e despregamentos de ligazóns.</span> </a>",
"docs_ar_studio_docs_ar_studio_place": "<a href=\"/docs/ar-studio\"> <span class=\"sm-title\">Docs · AR Studio</span> <span class=\"sm-path\">/docs/ar-studio</span> <span class=\"sm-desc\">Coloca calquera número de modelos 3D e avatares nunha escena de cámara en vivo: fontes de modelos, a escaleira de renderizado WebXR/passthrough/desktop, xestos, salas en vivo compartidas e arranxos compartibles.</span> </a>",
"docs_ar_viewing_docs_ar_documentation_for": "<a href=\"/docs/ar\"> <span class=\"sm-title\">Docs: Visualización AR</span> <span class=\"sm-path\">/docs/ar</span> <span class=\"sm-desc\">Documentación para a visualización en realidade aumentada de modelos e avatares three.ws.</span> </a>",
diff --git a/public/locales/ig.json b/public/locales/ig.json
index b7dfa7d86..d5569c8c3 100644
--- a/public/locales/ig.json
+++ b/public/locales/ig.json
@@ -7985,7 +7985,7 @@
},
"forge_embed": {
"forge_your_own_3d_model_on_t_arialabel": "Forge ihe nlereanya 3D nke gị na three.ws",
- "forged_on_three_ws": "<span class=\"dot\" aria-hidden=\"true\"></span> rụpụtara na three.ws",
+ "forged_on_three_ws": "<span class=\"dot\" aria-hidden=\"true\"></span> Forged na three.ws",
"meta_description": "Ihe nlereanya 3D na-emekọrịta ihe rụpụtara na three.ws.",
"meta_title": "three.ws — ihe nlereanya 3D agbakwunyere",
"no_model_to_show": "Enweghị ihe nlereanya igosi",
@@ -8837,7 +8837,7 @@
"goalkeeper": "<span class=\"wyg-anim-chip-icon\">&#x1F9E4;</span>Onye nche goolu",
"google_cloud": "<span class=\"ico\" style=\"--logo:url(/featured-logos/googlecloud.svg)\"></span><span class=\"lbl\">Google Cloud</span>",
"grab_a_limb_to_pose_it_drag": "Jide akụkụ ahụ ka ị mee ya pose · dọkpụrụ ala ka ọ gbaa gburugburu",
- "guard_risk_checks": "<span class=\"snipe-node\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z\"></path></svg></span> <span class=\"snipe-stage-name\">Guard</span> nyocha ihe egwu</span>",
+ "guard_risk_checks": "<span class=\"snipe-node\"><svg viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.7\" stroke-linecap=\"round\" stroke-linejoin=\"round\"><path d=\"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z\"></path></svg></span> <span class=\"snipe-stage-name\">Guard</span> <span class=\"snipe-stage-sub\">nyocha ihe egwu</span>",
"gymnastics": "<span class=\"wyg-anim-chip-icon\">&#x1F938;</span>Mgbatị ahụ",
"hackernoon": "<span class=\"ico\" style=\"--logo:url(/featured-logos/hackernoon.svg)\"></span><span class=\"lbl\">HackerNoon</span>",
"handler": "handler",
diff --git a/public/locales/rw.json b/public/locales/rw.json
index edea0d415..5502dbc42 100644
--- a/public/locales/rw.json
+++ b/public/locales/rw.json
@@ -2373,7 +2373,7 @@
"download_ply_title": "Kuramo .ply",
"download_point_cloud_arialabel": "Kuramo point cloud",
"files_stay_on_your_device_decoding_and": "Dosye ziguma ku gikoresho cyawe — decoding na rendering bikorera muri browser yawe.",
- "film_a_room_a_street_an_object": "Fata amashusho y'icyumba, umuhanda, ikintu — maze ubone 3D point cloud ishobora kugenzurwa. A feed-forward <a href=\"/avatar-engines\">Geometric Context Transformer</a> yongera kubaka geometry ifashe y'isi yose ikoresheje amashusho, hanyuma igatambutsa .ply</code> ifite amabara ushobora kuzenguruka hano. Usanganywe point cloud? Yishyiremo cyangwa wandike URL.",
+ "film_a_room_a_street_an_object": "Fata amashusho y'icyumba, umuhanda, cyangwa ikintu — hanyuma ubonereho igishushanyo cya 3D cy'ingingo ushobora kugenzura. <a href=\"/avatar-engines\">Geometric Context Transformer</a> ya feed-forward yubaka imiterere yuzuye y'isi ikuye mu mashusho, hanyuma igatambutsa <code>.ply</code> ifite amabara ushobora kuzenguruka hano ako kanya. Usanzwe ufite igishushanyo cya 3D cy'ingingo? Kinjiza cyangwa wandike URL.",
"frames_stream_through_a_feed_forward_transfo": "Amashusho atambuka muri feed-forward transformer ihamya coordinates, isoma geometry ifashe, kandi ikosora kwihinduranya muri clip yose — nta optimisation kuri buri shusho. Ibyavuyemo ni point cloud ifite amabara y'isi yose. Ibyo itanga bigaragara na WebGL <code>THREE.Points</code>; iyi ni point cloud, ntabwo ari <a href=\"/splat\">Gaussian splat</a>.",
"how_it_works": "Uko bikora",
"keyframe_interval": "Intera ya keyframe",
@@ -10262,7 +10262,7 @@
"optimized_for_x_s_article_format": "Yashyizwe ku rwego rwiza ku buryo bwandikwamo ingingo za X",
"pbr_hdr": "PBR + HDR",
"peak_day_was_may_5_46k_impressions": "Umunsi w'indunduro wari ku ya 5 Gicurasi — ibitekerezo 46K, abakurikira bashya ~1,200 mu masaha 24. Byatewe n'urugero rwa Solana Frontier Hackathon (ibitekerezo 42K, reposts 621), urugero rwa Coinbase + Coinbase Wallet rwa $THREE (ibitekerezo 12K), n'iyemeza rya Jupiter Exchange.",
- "phase_0_is_shipped_phase_1_is": "Icyiciro&nbsp;0 cyaratanzwe.</em><br>Icyiciro&nbsp;1 kiri <em style=\"color:var(--solana);font-style:italic;\">kubakwa.</em>",
+ "phase_0_is_shipped_phase_1_is": "Icyiciro&nbsp;0 <em style=\"color:var(--accent);font-style:italic;\">cyasohotse.</em><br>Icyiciro&nbsp;1 kirimo <em style=\"color:var(--solana);font-style:italic;\">kubakwa.</em>",
"post": "Ibyanditswe",
"postmessage_api": "postMessage API",
"press_culture": "Itangazamakuru + Umuco",
@@ -17687,7 +17687,7 @@
"x402_catalog_x402_a_live_catalog_of": "<a href=\"/x402\"> <span class=\"sm-title\">x402 Katalogi</span> <span class=\"sm-path\">/x402</span> <span class=\"sm-desc\">Katalogi ibaho ya APIs zishyurwa buri guhamagara zishyurwa kuri blockchain muri USDC binyuze kuri protocole ya x402. Shakisha, genzura schema, kandi ukoreshe endpoint iyo ari yo yose.</span> </a>",
"x402_live_demo_ibm_three_ws_ibm": "<a href=\"/ibm/x402-demo\"> <span class=\"sm-title\">x402 Demo Ibaho (IBM × three.ws)</span> <span class=\"sm-path\">/ibm/x402-demo</span> <span class=\"sm-desc\">Demo yigenga y'ubwishyu buke bwa x402: wishyure $0.001 USDC ukoresheje wallet yawe — MetaMask kuri Base cyangwa Phantom kuri Solana — kugira ngo uhamagare API nyayo y'amadata ya three.ws. Reba ikibazo cya HTTP 402 kibaho, shyira umukono ku burenganzira budahenze, kandi urebe inyemezabwishyu yo kuri blockchain. Nta backend, nta konti; yubatswe nk'isura rusange y'ubufatanye bwa IBM × three.ws.</span> </a>",
"x402_providers_providers_quantified_operator": "<a href=\"/providers\"> <span class=\"sm-title\">x402 Batanga Serivisi</span> <span class=\"sm-path\">/providers</span> <span class=\"sm-desc\">Imyirondoro y'abakoresha ipimwe kuri katalogi ya API zishyurwa ya x402. Imibare ya serivisi, ibiciro, ibyiciro byiganje, n'urutonde rw'ibanze.</span> </a>",
- "x402_studio_the_stripe_of_x402_x402": "<a href=\"/x402/studio\"> <span class=\"sm-title\">x402 Studio — Stripe ya x402</span> <span class=\"sm-path\">/x402/studio</span> <span class=\"sm-desc\">Konsole y'abacuruzi yo kuyobora ubucuruzi bwishyurwa bwa x402: ibicuruzwa n'ibiciro, kwishyura no guha abakozi amafaranga, kohereza/kwakira bya nyayo hamwe na SNS .sol resolution, iduka rishobora gukururwa no kurekura, icyuma cyo kubaka buto y'ubwishyu ishobora gushyirwamo, gutanga imfashanyo no kuzenguruka, CORS n'umutekano.</span> </a>",
+ "x402_studio_the_stripe_of_x402_x402": "<a href=\"/x402/studio\"> <span class=\"sm-title\">x402 Studio — Stripe ya x402</span> <span class=\"sm-path\">/x402/studio</span> <span class=\"sm-desc\">Ihuriro ry'abacuruzi ryo gukoresha ubucuruzi bwishyurwa bwa x402: ibicuruzwa n'ibiciro, ama-wallet y'ubwishyu n'ay'abakozi, kohereza/kwakira USDC by'ukuri hamwe na SNS .sol resolution, iduka ryubakwa ukurura no kurekura, icyubaka buto y'ubwishyu ishobora gushyirwa ahandi, gutanga imfashanyo no kuzengurutsa ibiciro, CORS n'umutekano.</span> </a>",
"your_agents_deserve_to_have_a_voice": "<a href=\"/news/2049557523330638269\"> <span class=\"sm-title\">abakozi bawe bakwiye kugira ijwi</span> <span class=\"sm-path\">/news/2049557523330638269</span> <span class=\"sm-desc\">abakozi bawe bakwiye kugira ijwi twafashe demo iri hepfo yerekana uburyo umukozi ashobora kwifatanya ku giti cye mu kiganiro cya X kibaho, agasaba uburenganzira bwo kuvuga, akumva mu gihe nyacyo, kandi agasubiza abavuga toranya uburyo bw'amajwi bwa Groq, Anthropic, cyangwa OpenAI kuri LLM nk'ikintu cy'ibidukikije, kandi i…</span> </a>",
"your_ai_has_been_trapped_in_a": "<a href=\"/news/2049406826719137937\"> <span class=\"sm-title\">AI yawe yagumye muri chatbox igihe kirekire.</span> <span class=\"sm-path\">/news/2049406826719137937</span> <span class=\"sm-desc\">AI yawe yagumye muri chatbox igihe kirekire. Ubu irabona: • umubiri nyawo wa 3D • ubwonko bwa LLM + kwibuka + amarangamutima • indangamuntu yo kuri blockchain (ERC-8004) • ibice bya web bishobora gushyirwamo ako kanya Byose muri browser. Ifunguye. Kuri blockchain. three.ws</span> </a>",
"your_creator_portfoliosign_ininternal_profil": "<a href=\"/profile\"> <span class=\"sm-title\">Portfolio yawe y'umuremyi<span class=\"sm-badge sm-badge-auth\">injira</span><span class=\"sm-badge sm-badge-internal\">imbere</span></span> <span class=\"sm-path\">/profile</span> <span class=\"sm-desc\">Portfolio yawe rusange ya three.ws: buri avatar, umukozi, icyitegererezo cya 3D cyakozwe, isi, ifaranga, ubuhanga, na plugin wakoze, ahantu hamwe. Uvuyemo, ibi biganisha ku kwinjira; buri rupapuro rw'umukoresha na rwo ruboneka kuri /u/:username.</span> </a>"
diff --git a/public/locales/so.json b/public/locales/so.json
index 78f3606f9..aa96062ff 100644
--- a/public/locales/so.json
+++ b/public/locales/so.json
@@ -7220,7 +7220,7 @@
"watch_two_ai_agents_oracle_and_nova": "Daawo laba wakiil oo AI ah — ORACLE iyo NOVA — oo gorgortamaya, isku yeeraya xirfadahooda, oo si toos ah u xallinaya lacag-bixinnada blockchain-ka. Ma jiraan dad ku lug leh.",
"watsonx_ai": "watsonx.ai",
"webxr": "WebXR",
- "why_it_s_better_agents_in_the": "<strong>Maxay uga fiican tahay:</strong> Wakiillada adduunka waxay isku bixiyaan blockchain-ka waqti dhab ah — waxaad daawan kartaa lacag-bixinno yaryar oo toos ah oo dhacaya inta aad socoto.",
+ "why_it_s_better_agents_in_the": "<strong>Maxay uga fiican tahay:</strong> Wakiilada adduunka waxay isku bixiyaan si toos ah, silsiladda xogta dushiisa — waxaadna daawan kartaa x402 dhaqdhaqaaqyada lacagaha yaryar ee tooska ah oo dhacaya adigoo socda.",
"why_it_s_better_any_llm_works": "<strong>Maxay uga fiican tahay:</strong> LLM kasta wuxuu ku shaqeeyaa iyadoo la isticmaalayo MCP ama A2A — Claude, GPT, Gemini, ama kaaga. Ma jiro ku xirnaansho hal shirkad.",
"why_it_s_better_every_avatar_and": "<strong>Maxay uga fiican tahay:</strong> Avatar kasta iyo wakiil kasta oo aad abuurto si toos ah ayuu halkan uga soo muuqdaa — waxba ma jiraan oo aad isku xirto, hal galitaan ayay dhammaantood leeyihiin.",
"why_it_s_better_it_s_a": "<strong>Maxay uga fiican tahay:</strong> Waa daahfur dhab ah oo leh ganacsi toos ah laga bilaabo ilbidhiqsigii ugu horreeyay — adiga ayaa bixiya faahfaahinta, annaga ayaa gacanta ku hayna farsamada blockchain-ka.",
@@ -10032,7 +10032,7 @@
"3_npm_packages": "3 xirmooyin npm ah",
"3_solidity_contracts": "3 qandaraasyo Solidity ah",
"3_x402_paid_endpoints": "3 x402 meelo lacag ah oo la bixiyo",
- "3d_character_as_claude_artifact": "Dabeecad 3D ah oo ah farshaxanka Claude",
+ "3d_character_as_claude_artifact": "<a href=\"https://twitter.com/nichxbt/status/2049391191771562038\">Jilayaal 3D ah oo ah wax soo saarka Claude</a>",
"3d_runtime": "Runtime 3D",
"41_likes": "41 jecel",
"42k": "42K",
@@ -10083,7 +10083,7 @@
"agent_personalization": "Shakhsiyaynta wakiilka.",
"ai_deserves_a_body": "AI waxay u qalantaa<br><em>jir</em>.",
"ai_trapped_in_a_chatbox": "\"AI ku xiran sanduuqa wada sheekeysiga\"",
- "alibaba_cloud_partnership": "Iskaashiga Alibaba Cloud",
+ "alibaba_cloud_partnership": "<a href=\"https://twitter.com/trythreews/status/2050585585191186781\">Iskaashiga Alibaba Cloud</a>",
"alibaba_cloud_partnership_2": "Iskaashiga Alibaba Cloud",
"announced": "LAGU DHAAWAAQAY",
"anthropic_claude_openai_gpt_groq_openrouter": "Anthropic (Claude), OpenAI (GPT), Groq, OpenRouter — dhammaantood hal interface wada sheekeysi ah oo leh qulqul toos ah iyadoo la isticmaalayo Server-Sent Events. Wakiilku wuxuu akhriyaa dareenka isticmaalaha wuxuuna ka falceliyaa shucuur + animation. Wicitaanada shaqada, isticmaalka qalabka MCP, farshaxanada. 100% il furan.",
@@ -14537,7 +14537,7 @@
"the_embed_editor_live_preview_against_your": "<strong>Tifaftiraha galka.</strong> Horudhac toos ah oo ka dhan ah goobtaada dhabta ah, qaababka aaladda, codka, sheekaysiga, AR, iyo gadaal hufan, dhammaantood hal shaashad.",
"the_market_intelligence_agent_aixbt_put_it": "Wakiilka sirdoonka suuqa <a href=\"https://x.com/aixbt_agent\" rel=\"noopener\">aixbt</a> wuxuu si cad u yiri: Tallaabooyinka dhowaan ee three oo ay la socdaan IBM, Diiwaanka Anthropic MCP, iyo Coinbase rails waxay kala fogeeyeen isaga iyo ciyaaraha kale ee Solana AI. three.ws sidoo kale wuxuu kasbaday xubinimada W3C wuxuuna gacan ka geystay Borotokoolka Diiwaanka Aqoonsiga Wakiilka, ka dibna wuxuu galay labada Solana Frontier Hackathon ee Colosseum iyo MeDo Hackathon.",
"the_result_of_all_that_work_is": "Natiijada shaqadaas oo dhan waa raad-raac horay u daboolay internetka. Hal bil gudaheed, three.ws iyo qadaaradda <strong>$three</strong> waxay ka soo muuqdeen:",
- "the_team_shipped_in_public_nearly_every": "Kooxdu waxay soo saartay badeecada si furan, ku dhowaad maalin kasta. Badeecada asaasiga ah ayaa marka hore soo degtay: hal qayb shabakadeed <code>&lt;agent-3d&gt;[[1]] ah oo ku ridaysa wakiil AI 3D ah oo browser-native ah bog kasta, oo dhammaystiran maskax LLM ah, xusuus, isku-dhafka shucuurta waqtiga dhabta ah, wacyigelinta DOM-ka jirka, iyo aqoonsi Solana la xaqiijin karo.",
+ "the_team_shipped_in_public_nearly_every": "Kooxdu waxay si furan u soo saartay, ku dhowaad maalin kasta. Alaabta udub-dhexaadka ah ayaa marka hore la soo bandhigay: hal <code>&lt;agent-3d&gt;</code> qayb shabakadeed oo ku ridaysa wakiil AI 3D ah oo ku dhex jira biraawsarka bog kasta, oo dhammaystiran maskax LLM ah, xusuus, isku-darka shucuurta waqtiga dhabta ah, garashada DOM-ka jirka, iyo aqoonsi la xaqiijin karo Solana.",
"three": "three",
"three_ws": "three.ws",
"three_ws_home_news_rss_x_github": "&copy; three.ws &middot; <a href=\"/\">Bogga Hore</a> &middot; <a href=\"/news\">Wararka</a> &middot; <a href=\"/rss/announcements.xml\">RSS</a> &middot; <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> &middot; <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",
diff --git a/public/locales/yo.json b/public/locales/yo.json
index 603e83342..6aa98b3fa 100644
--- a/public/locales/yo.json
+++ b/public/locales/yo.json
@@ -1975,7 +1975,7 @@
"one_call_presigns_to_r2_uploads_registers": "Ìpè kan ṣoṣo <code>saveBlob()</code> ṣe ìfọwọ́sí sí R2 tẹ́lẹ̀, gbé e sókè, forúkọsílẹ̀ avatar náà, ó sì ṣe àwọn USDZ fún iOS àti àyípadà ìdajì ara fún VR lára rẹ̀.",
"onexport_blob_called_with_the_glb_blob": "<span class=\"sdk-api-prop-name\">onExport(blob)</span><span class=\"sdk-api-prop-desc\">A pè é pẹ̀lú Blob GLB nígbà ìkódejáde</span>",
"open_close_lifecycle_methods": "<span class=\"sdk-api-prop-name\">open() / close()</span><span class=\"sdk-api-prop-desc\">Àwọn ọ̀nà ìgbésí ayé</span>",
- "open_the_creator_modal_it_wraps_the": "Ṣí Creator modal — ó bo iframe Character Builder. Callback <code>onExport</code> gba Blob GLB <code>tó o lè fi ránṣẹ́ tààrà sí <code>saveBlob()</code>.",
+ "open_the_creator_modal_it_wraps_the": "Ṣí àpótí Ẹlẹ́dàá — ó yí iframe Olùkọ́ni Ìwà ká. Ìpèpadà <code>onExport</code> gbà GLB <code>Blob</code> kan tí o lè fi ránṣẹ́ tààrà sí <code>saveBlob()</code>.",
"open_the_three_ws_avatar_studio_or": "Ṣí three.ws Avatar Studio tàbí Selfie Studio nínú modal kan. Yóò yanjú pẹ̀lú Blob GLB nípasẹ̀ postMessage — kò sí ìbéèrè léraléra, kò sì nílò àwọn àmì ìpamọ́.",
"opens_the_three_ws_avatar_studio_in": "Ṣí three.ws Avatar Studio nínú modal tó kún ojú ìwòran. Olùgbámúlò kọ́ avatar rẹ̀, ó sì tẹ Export — ìwọ yóò gba Blob GLB <code>nínú callback</code>. Kò sí OAuth, kò sì nílò àwọn API keys fún modal náà fúnra rẹ̀.",
"paid_only": "Fún àwọn tó sanwó nìkan",
@@ -2373,7 +2373,7 @@
"download_ply_title": "Ṣe ìgbàsílẹ̀ .ply",
"download_point_cloud_arialabel": "Ṣe ìgbàsílẹ̀ àwọsánmà àmì",
"files_stay_on_your_device_decoding_and": "Àwọn faili dúró lórí ẹ̀rọ rẹ — ìtúmọ̀ àti ìfihàn máa ń ṣiṣẹ́ pátápátá nínú aṣàwákiri rẹ.",
- "film_a_room_a_street_an_object": "Ya yàrá kan, òpópónà kan, ohun èlò kan — kó o sì gba àwọsánmà àmì 3D tí ó ṣeé ṣàwárí padà. Olùyípadà Àyíká Jíómẹ́trì <a href=\"/avatar-engines\"> tí ó ń tẹ̀síwájú máa ń tún àwọn jíómẹ́trì àyè ayé tó kúnjú ṣe láti àwọn àwòrán, lẹ́yìn náà ó máa ń tan .ply <code> aláwọ̀ kan tí o lè yípo níbí. Ṣé o ti ní àwọsánmà àmì tẹ́lẹ̀? Jù ú síbẹ̀ tàbí fi URL síbẹ̀.",
+ "film_a_room_a_street_an_object": "Ya yàrá, òpópónà, tàbí ohun èlò kan — kí o sì gba àwọsánmà ojúami 3D tí ó ṣeé yẹ̀wò padà. Olùyípadà Àyíká Jíómẹ́tírì <a href=\"/avatar-engines\">Geometric Context Transformer</a> tí ó ń tẹ̀síwájú yóò tún kọ́ jíómẹ́tírì àyíká ayé tí ó kún fún àwọn àwòrán, lẹ́yìn náà yóò tan <code>.ply</code> aláwọ̀ kan tí o lè yípo níbí. Ṣé o ti ní àwọsánmà ojúami tẹ́lẹ̀? Fà á síbẹ̀ tàbí kó URL kan síbẹ̀.",
"frames_stream_through_a_feed_forward_transfo": "Àwọn àwòrán máa ń kọjá láti inú olùyípadà tí ó ń tẹ̀síwájú tí ó máa ń fi àwọn àyè sílẹ̀, ka jíómẹ́trì tó kúnjú, tí ó sì máa ń tún àṣìṣe yíyọ kọjá gbogbo fídíò ṣe — kò sí ìṣàtúnṣe fún ìran kọ̀ọ̀kan. Àbájáde rẹ̀ ni àwọsánmà àmì aláwọ̀ ní àyè ayé. Ìjáde máa ń hàn pẹ̀lú WebGL <code>THREE.Points</code>; èyí jẹ́ àwọsánmà àmì, kì í ṣe <a href=\"/splat\">Gaussian splat</a>.",
"how_it_works": "Bí ó ṣe ń ṣiṣẹ́",
"keyframe_interval": "Àárín àkókò àwòrán pàtàkì",
@@ -7985,7 +7985,7 @@
},
"forge_embed": {
"forge_your_own_3d_model_on_t_arialabel": "Forge àwòrán 3D tìrẹ lórí three.ws",
- "forged_on_three_ws": "<span class=\"dot\" aria-hidden=\"true\"></span> tí a ṣe lórí three.ws",
+ "forged_on_three_ws": "<span class=\"dot\" aria-hidden=\"true\"></span> Ti Forge ṣe lórí three.ws",
"meta_description": "Àwòrán 3D tó ṣeé lò tí a ṣe lórí three.ws.",
"meta_title": "three.ws — àwòrán 3D tí a fi sínú",
"no_model_to_show": "Kò sí àwòrán láti fi hàn",
@@ -8582,7 +8582,7 @@
"03capabilities": "<span class=\"num\">03</span>Awọn agbara",
"04_pay_per_call_http_native_usdc": "<span class=\"stack-card-num\">04</span> <span class=\"stack-card-title\">Sanwo-fun-ipe</span> <span class=\"stack-card-desc\">Awọn isanwo kekere USDC ti abinibi HTTP. Sanwo fun agbara, ifiranṣẹ, tabi igba. 0% owo syeed lakoko beta ṣiṣi.</span> <span class=\"stack-card-arrow\">↗</span>",
"04token_economy": "<span class=\"num\">04</span>Aje ami-owo",
- "05_walk_multiplayer_3d_worlds_crdt_synced": "<span class=\"stack-card-num\">05</span> <span class=\"stack-card-title\">Rìn</span> nínú àwọn ayé 3D alájùmọ̀ṣe. Ìpò àwòrán tí CRDT-ṣe ìṣàṣàkóso, ohùn àyíká, ìṣàkóso joystick — gbogbo rẹ̀ nínú àmì ìfiṣègbékalẹ̀ kan ṣoṣo.</span> <span class=\"stack-card-arrow\">↗</span>",
+ "05_walk_multiplayer_3d_worlds_crdt_synced": "<span class=\"stack-card-num\">05</span> <span class=\"stack-card-title\">Rìn</span> <span class=\"stack-card-desc\">Àwọn ayé 3D alájọṣe. Ìpo àwòrán tí CRDT ti mú bá ara mu, ohùn àyíká, ìdarí pẹ̀lú ọ̀pá ìdarí — gbogbo rẹ̀ nínú àmì ìfiṣe kan péré.</span> <span class=\"stack-card-arrow\">↗</span>",
"05live_economy": "<span class=\"num\">05</span>Ètò ọrọ̀-ajé alààyè",
"06_sdk_javascript_python_rust_mint_sign": "<span class=\"stack-card-num\">06</span> <span class=\"stack-card-title\">SDK</span> <span class=\"stack-card-desc\">JavaScript, Python, Rust. Ṣe àtẹ̀jáde, fọwọ́ sí, jẹ́rìí, ṣe àfihàn, sanwó. Láìsí ìdíwọ́ lábẹ́ ìwé-àṣẹ Apache-2.0. Wà lórí npm.</span> <span class=\"stack-card-arrow\">↗</span>",
"06developer_platform": "<span class=\"num\">06</span>Sànkú-ìgbékalẹ̀ fún àwọn olùgbéṣẹ́",
@@ -17096,7 +17096,7 @@
},
"signals": {
"avg_roi": "Apapọ ROI",
- "connecting_reputation_gated_x402_metered_acc": "<span id=\"sm-live\" class=\"juice-live\" data-state=\"connecting\"><span class=\"juice-live-dot\" aria-hidden=\"true\"></span><span class=\"juice-live-txt\">nsopọ</span></span> Ti a fi orukọ rere ṣakoso · Ti a wọn · Ti o ṣe iṣiro lori-ẹwọn",
+ "connecting_reputation_gated_x402_metered_acc": "<span id=\"sm-live\" class=\"juice-live\" data-state=\"connecting\"><span class=\"juice-live-dot\" aria-hidden=\"true\"></span><span class=\"juice-live-txt\">sísopọ̀</span></span> · Orúkọ rere n ṣíwọ̀n · Ti x402 n ṣíwọ̀n · Lóhùn-ún lórí ẹ̀wọ̀n-ìṣàkóso",
"devnet": "Devnet",
"feeds": "Awọn ifunni",
"hit_rate": "Iwọn aṣeyọri",
diff --git a/public/locales/zu.json b/public/locales/zu.json
index 5d22124f1..2f0919620 100644
--- a/public/locales/zu.json
+++ b/public/locales/zu.json
@@ -10681,7 +10681,7 @@
"email_if_provided": "I-imeyili (uma inikeziwe)",
"erc_8004_agent_registrations_metaplex_nft_mi": "ERC-8004 ukubhaliswa kwama-ejenti, ukukhiqizwa kwama-NFT e-Metaplex, USDC ama-hashi okukhokha e-tx",
"examples": "Izibonelo",
- "for_users_in_the_european_economic_area": "Kubasebenzisi abase-European Economic Area noma e-United Kingdom, izisekelo zethu zomthetho zokucubungula yilezi: <strong>ukusebenza kwenkontileka</strong> (ukusebenza kwe-akhawunti, ukulethwa kokuqukethwe), <strong>izintshisekelo ezisemthethweni</strong> (ukuphepha, ukuvimbela ukuhlukumeza, ukuhlaziya okuhlanganisiwe), <strong>isibopho somthetho</strong> (amarekhodi okwamukelwa ngokusemthethweni, izicelo ezisemthethweni), nokuvuma <strong> (ukukhangisa nge-imeyili okungakhethwa, uma ukhetha ukungena).",
+ "for_users_in_the_european_economic_area": "Abasebenzisi abase-European Economic Area noma e-United Kingdom, izisekelo zethu zomthetho zokucubungula yilezi: <strong>ukugcwaliseka kwesivumelwano</strong> (ukusebenza kwe-akhawunti, ukulethwa kokuqukethwe), <strong>izintshisekelo ezisemthethweni</strong> (ukuphepha, ukuvimbela ukuhlukumeza, izibalo ezihlanganisiwe), <strong>isibopho somthetho</strong> (amarekhodi okwamukelwa ngokomthetho, izicelo ezisemthethweni), kanye <strong>nemvume</strong> (ukumaketha nge-imeyili okungakhethwa, uma ukhetha ukungena).",
"hashed_session_token_ip_address_hashed_user": "Ithokheni yeseshini efakwe i-hashi, ikheli le-IP (elifakwe i-hashi), i-ejenti yomsebenzisi",
"how_the_prompt_is_used_the_prompt": "<strong>Ukusetshenziswa kwesikhuthazo:</strong> isikhuthazo sidluliselwa kumhlinzeki wethu wokukhiqiza (NVIDIA NIM / Microsoft TRELLIS) ngenhloso yokukhiqiza imodeli kuphela. Ungafaki ulwazi lomuntu siqu noma oluyimfihlo esikhuthazweni.",
"identity_verification_subscription_status": "Ukuqinisekisa ubuwena, isimo sokubhalisa",
@@ -13971,7 +13971,7 @@
"may_17_2026_three_ws_is_teaming": "<a class=\"post-link\" href=\"/news/2055985494606106821\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-17T12:15:14.000Z\">Meyi 17, 2026</time></div> <h2 class=\"post-title\">three.ws ihlanganyela no-@hackernoon</h2> <p class=\"post-summary\">three.ws ihlanganyela no-@hackernoon. Si&#39;ethula uhlelo olusha olugxile kubakhi olugcwele izindatshana ezigxile ezicini, izifundo ezisebenzayo, imihlahlandlela ejulile, nezinsiza zabathuthukisi ezakhelwe labo abasebenzisa i-AI kanye nabathanda nabatshalizimali abalandelayo …</p> </div> </a>",
"may_17_2026_three_ws_launches_on": "<a class=\"post-link\" href=\"/news/live-on-alibaba-cloud-marketplace\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-17T12:00:00.000Z\">Meyi 17, 2026</time></div> <h2 class=\"post-title\">three.ws Yethulwa ku-Alibaba Cloud Marketplace, Iletha Izinkokhelo Zama-Agent x402 Zomdabu Ezingeni Elikhulu</h2> <p class=\"post-summary\">three.ws manje isiyatholakala ku-Alibaba Cloud International Marketplace. Ukufakwa kuhlu kwenza &lt;agent-3d&gt; — ithegi eyodwa ye-HTML esabalalisa i-agent ye-3D Solana-minted, ERC-8004-walleted, x402-native — itholakale kuwo wonke amakhasimende e-Alibaba Cloud emhlabeni jikelele. Lokhu ukusatshalaliswa kokuqala kwama-agent ase-on-chain anekhono lokukhokha le-HTTP 402 / x402 elingaphakathi ohlelweni lokuthenga lomhlinzeki wefu abane abaphezulu.</p> <div class=\"tag-list\"><span class=\"tag\">listing</span><span class=\"tag\">marketplace</span><span class=\"tag\">alibaba-cloud</span><span class=\"tag\">x402</span><span class=\"tag\">solana</span><span class=\"tag\">erc-8004</span><span class=\"tag\">agent-economy</span></div> </div> </a>",
"may_17_2026_three_ws_listed_on": "<a class=\"post-link\" href=\"/news/listed-on-bnb-chain-dappbay\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-17T18:00:00.000Z\">Meyi 17, 2026</time></div> <h2 class=\"post-title\">three.ws Ifakwe kuhlu ku-BNB Chain&#39;s Dappbay Directory</h2> <p class=\"post-summary\">three.ws manje ifakwe kuhlu ku-Dappbay, i-BNB Chain&#39;s official dApp directory, ngaphansi kwe-AI Agent Launchpad, AI Data, kanye ne-AI Infra. Ukufakwa kuhlu kubeka &lt;agent-3d&gt; — ukusabalalisa okukodwa kwethegi kwama-agent e-3D Solana-minted, ERC-8004-walleted, x402-native — phambi kwendawo yokuthola ye-BNB Chain ecosystem&#39; yama-dApp e-AI.</p> <div class=\"tag-list\"><span class=\"tag\">listing</span><span class=\"tag\">directory</span><span class=\"tag\">bnb-chain</span><span class=\"tag\">dappbay</span><span class=\"tag\">x402</span><span class=\"tag\">agent-economy</span></div> </div> </a>",
- "may_17_2026_three_ws_partners_with": "<a class=\"post-link\" href=\"/news/partnered-with-hackernoon\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-17T21:00:00.000Z\">Meyi 17, 2026</time></div> <h2 class=\"post-title\">three.ws Isebenzisana ne-HackerNoon</h2> <p class=\"post-summary\">three.ws isebenzisane ne-HackerNoon, iletha ukumbozwa kwama-agent e-3D ku-chain kwenye yezincwadi ezinkulu zobuchwepheshe emhlabeni&#39;. Sonke isimemezelo se-three.ws manje singeniswa ngokuzenzakalela ku-HackerNoon nge-RSS feed yethu ku-https://three.ws/rss/announcements.xml.</p> <div class=\"tag-list\">ubambiswano</span>abezindaba</span>hackernoon</span>okuqukethwe</span>abezindaba</span></div> </div> </a>",
+ "may_17_2026_three_ws_partners_with": "<a class=\"post-link\" href=\"/news/partnered-with-hackernoon\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-17T21:00:00.000Z\">May 17, 2026</time></div> <h2 class=\"post-title\">three.ws Ihlanganyele no-HackerNoon</h2> <p class=\"post-summary\">three.ws ihlanganyele no-HackerNoon, iletha ukumbozwa kwama-agent e-3D ase-on-chain kwesinye sezincwadi zobuchwepheshe ezinkulu emhlabeni &#39;. Isimemezelo ngasinye se-three.ws manje singena ngokuzenzakalela ku-HackerNoon nge-RSS feed yethu ku-https://three.ws/rss/announcements.xml.</p> <div class=\"tag-list\"><span class=\"tag\">ubambiswano</span><span class=\"tag\">abezindaba</span><span class=\"tag\">hackernoon</span><span class=\"tag\">okuqukethwe</span><span class=\"tag\">abezindaba</span></div> </div> </a>",
"may_17_2026_we_are_excited_to": "<a class=\"post-link\" href=\"/news/2055967730495586477\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-17T11:04:39.000Z\">Meyi 17, 2026</time></div> <h2 class=\"post-title\">Sijabule ukuba yingxenye yomphakathi we-@CoinMarketCap.</h2> <p class=\"post-summary\">Sijabule ukuba yingxenye yomphakathi we-@CoinMarketCap. Lokhu okuthunyelwe kokuqinisekisa ukufakwa kwethu ohlwini. Landela ikhasi lethu le-CMC-Community ukuze uthole ingxoxo yesikhathi sangempela futhi ulungele izindatshana ezijabulisayo nokuthunyelwe komphakathi ku-CoinMarketCap. coinmarketcap.com/community/profile/three_ws</p> </div> </a>",
"may_19_2026_we_are_excited_to": "<a class=\"post-link\" href=\"/news/2056556899403997450\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-19T02:05:48.000Z\">Meyi 19, 2026</time></div> <h2 class=\"post-title\">Sijabule ukwabelana ngesibonelo sokuqala sokusebenzisana kwezwi lesikhathi sangempela nama-avatar e-3D AI</h2> <p class=\"post-summary\">Sijabule ukwabelana ngesibonelo sokuqala sokusebenzisana kwezwi lesikhathi sangempela nama-avatar e-3D AI Ingxoxo yezwi yesikhathi sangempela nama-avatar akho e-3D AI yenza izingxoxo zemvelo zenzeke: alalela, acabange ngememori, imizwa, namathuluzi, bese ephendula ngezwi. Ukusekelwa kwe-AR/VR nakho kusekuthuthukisweni okusebenzayo…</p> </div> </a>",
"may_1_2026_never_miss_a_never": "<a class=\"post-link\" href=\"/news/2050049239301165535\"> <div class=\"post-body\"> <div class=\"post-date\"><time datetime=\"2026-05-01T03:06:41.000Z\">Meyi 1, 2026</time></div> <h2 class=\"post-title\">Ungaphuthelwa</h2> <p class=\"post-summary\">Ungaphuthelwa umgijimi we-@pumpfun futhi three.ws/pumpfun imemezela → Izaziso zokuphothula bukhoma → Izimangalo ze-GitHub → Ukuthenga/ukuthengisa kwe-Whale → Isakhiwo esenziwa ngendlela oyifisayo Vula umsindo. I-agent yakho manje imemezela konke ukunyakaza ngokuzwakalayo.</p> </div> </a>",
@@ -17358,7 +17358,7 @@
"ethereum_gas_tracker_gas_live_ethereum_gas": "<a href=\"/gas\"> <span class=\"sm-title\">I-Ethereum Gas Tracker</span> <span class=\"sm-path\">/gas</span> <span class=\"sm-desc\">Izimali ze-Ethereum gas ezibukhoma ziqonde ngqo kusuka ku-chain — amazinga ahamba kancane, ajwayelekile, nasheshayo ku-gwei ngezilinganiso zezindleko ze-USD zokudlulisa, ukuthumela amathokheni, ukushintshanisa kwe-DEX, nokwenza ama-NFT. Umlando wangempela wezimali ku-chain, obuyekezwa ngokuzenzakalelayo, akukho ukhiye we-API odingekayo.</span> </a>",
"evm_vanity_wallet_evm_wallet_grind_a": "<a href=\"/evm-wallet\"> <span class=\"sm-title\">I-EVM Vanity Wallet</span> <span class=\"sm-path\">/evm-wallet</span> <span class=\"sm-desc\">Yakha ikheli le-wallet ye-Ethereum / EVM yangokwezifiso enesiqalo noma isiphetho osikhethayo. I-keypair yangempela ye-secp256k1, eyakhiwe ngokuphelele kusiphequluli sakho — ukhiye oyimfihlo awusoze washiya idivayisi yakho.</span> </a>",
"experimental_features_actively_shipping_expe": "Izici zokuhlola ezithunyelwa ngenkuthalo. Lindela ukubuyekezwa okusheshayo.",
- "extremely_grateful_for_coinbase_sharing_our": "<a href=\"/news/2051690803203105230\"> <span class=\"sm-title\">Sibonga kakhulu i-Coinbase ngokwabelana ngephrojekthi yethu nokuvumela abasebenzisi abangaphezu kwezigidi eziyi-100 emhlabeni wonke ukuthi babe nesipiliyoni esibushelelezi sokungena emphakathini we-$THREE. Thumela, yamukela, hweba, futhi ugcine $THREE usebenzisa i-@coinbase</span> </a>",
+ "extremely_grateful_for_coinbase_sharing_our": "<a href=\"/news/2051690803203105230\"> <span class=\"sm-title\">Sibonga kakhulu ku-Coinbase ngokwabelana ngephrojekthi yethu nokunika abangaphezu kwezigidi eziyi-100…</span> <span class=\"sm-path\">/news/2051690803203105230</span> <span class=\"sm-desc\">Sibonga kakhulu ku-Coinbase ngokwabelana ngephrojekthi yethu nokunika abasebenzisi abangaphezu kwezigidi eziyi-100 emhlabeni jikelele ulwazi olungenazihibe lokungena emphakathini we-$THREE. Thumela, yamukela, hweba, futhi ugcine $THREE usebenzisa i-@coinbase</span> </a>",
"fact_check_fact_check_sourced_fact_checking": "<a href=\"/fact-check\"> <span class=\"sm-title\">Ukuhlola Amaqiniso</span> <span class=\"sm-path\">/fact-check</span> <span class=\"sm-desc\">Ukuhlola amaqiniso okutholakala emithonjeni enezitifiketi ze-cryptographic — isilinganiso sokunemba esishicilelwe, esingahlolwa kanye nebhokisi lokuhlola mahhala elibukhoma. Ukuhlola okungu-3 mahhala ngosuku nge-IP ngayinye, bese kuba u-$0.10 USDC nge-x402.</span> </a>",
"fact_checker_fact_checker_pay_0_10": "<a href=\"/fact-checker\"> <span class=\"sm-title\">Umhloli Wamaqiniso</span> <span class=\"sm-path\">/fact-checker</span> <span class=\"sm-desc\">Khokha u-$0.10 ngesimangalo ngasinye. I-agent ihlola imithombo enegunya, ikhokha ngokuthola ngakunye nge-x402, bese ibuyisa isinqumo nobufakazi obucashuniwe kanye nesitifiketi esisayiniwe.</span> </a>",
"features_features_full_feature_overview_of_t": "<a href=\"/features\"> <span class=\"sm-title\">Izici</span> <span class=\"sm-path\">/features</span> <span class=\"sm-desc\">Uhlolojikelele olugcwele lwezici zeplatifomu ye-three.ws: ama-avatar, ama-agent, ubunikazi obuku-chain, izinkokhelo ze-x402, nokushumeka.</span> </a>",
diff --git a/scripts/gcp-triage.mjs b/scripts/gcp-triage.mjs
index 72fc1b380..55b1f4541 100644
--- a/scripts/gcp-triage.mjs
+++ b/scripts/gcp-triage.mjs
@@ -148,7 +148,7 @@ const KNOWN_HTTP_SIGNATURES = [
test: (g) => g.status >= 500 && (g.path.startsWith('/api/x402') || g.path === '/api/mcp')
&& /^threews-/.test(g.userAgent),
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.`,
+ action: `5xx on paid x402 routes from the platform's own agent traffic has THREE distinct causes that look identical here; diagnose from app logs before concluding anything (2026-07-28 incident: all three fired at once). (1) npm run logs -- -s three-ws-api --app --grep "fee_wallet_below_floor" --since 1h; hits mean the sponsor fee wallet is under X402_SPONSOR_SOL_FLOOR_LAMPORTS. Config/self-heal territory: run POST /api/cron/treasury-topup (its reclaimIdleAgentSol leg refunds the fee wallet from idle agent SOL), no owner money needed unless every reclaim source reports at_or_below_floor. (2) grep "data_unavailable" instead; those are paid endpoints refunding honestly (no charge) because no market data source could answer. Fixed for pump.fun mints 2026-07-28 (crypto-intel prices bonding-curve coins via the pump.fun feed); a recurrence means a data-source outage, not wallets. (3) grep "broadcast_failed"; the reason now carries the simulation-log tail. "insufficient funds" on the token transfer = the ring payer's USDC float dipped below per-tick volume; run POST /api/cron/economy-rebalance (Bearer CRON_SECRET) and expect results[].status "swapped". ONLY when rebalance skips with insufficient_sol_surplus AND treasury-topup's reclaim finds nothing is it genuinely dry; then the owner sends SOL (or USDC) to the economy master WwwuGbqHrwF5RG89KhUbmRWEvjnRH9k5kVM5p7T3WwW and treasury-topup distributes within minutes. Verify recovery: healthz x402_settle returns to ok and the 5xx storm stops. Alternative to funding: throttle the ring to funded runway (X402_RING_TICK_CONCURRENCY and cadence knobs). ${RUNBOOK} §x402-wallets-dry.`,
},
{
id: 'coingecko-quota-exhausted-502',
diff --git a/scripts/seed-garments.mjs b/scripts/seed-garments.mjs
index 572ecfe05..571ff7c66 100644
--- a/scripts/seed-garments.mjs
+++ b/scripts/seed-garments.mjs
@@ -102,6 +102,7 @@ async function runOne(item, index) {
try {
console.log(`▶ ${label}`);
const jobId = await submit(item);
+ console.log(` job ${jobId}`);
const job = await waitForJob(jobId);
if (job.status === 'done') {
console.log(`✔ ${label} → ${job.garment_id} (coverage ${job.coverage ?? '?'})`);
diff --git a/src/agora/README.md b/src/agora/README.md
new file mode 100644
index 000000000..b2c23ceeb
--- /dev/null
+++ b/src/agora/README.md
@@ -0,0 +1,114 @@
+# src/agora
+
+Frontend of the Agora Commons at [`/agora`](../../pages/agora.html): a watchable 3D world where AI agent and human citizens live, work, and earn $THREE. It renders the citizen population, the economy layer (job board, ticker, completion FX), the Arena and Guild live views, walkable play mode, and the trust surface (passport, job detail, in-browser deliverable verifier) over the read model in [api/agora/[action].js](../../api/agora/%5Baction%5D.js) and the mutating endpoint [api/agora/act.js](../../api/agora/act.js).
+
+## Why it exists
+
+On-chain (AgenC on Solana devnet) is the source of truth for identity, escrow, proof, stake, and reputation. The `agora_*` tables project that truth into a world layer, and this directory is the face of it: every marker, coin arc, race, and passport row is driven by real API reads. Nothing is fabricated; an empty economy renders an honest empty state. The product spec lives in [docs/agora.md](../../docs/agora.md), the life engine that keeps citizens working is [workers/agora-citizens](../../workers/agora-citizens/README.md), and the same economy is exposed to agents as MCP tools via [packages/agora-mcp](../../packages/agora-mcp/README.md).
+
+## Run it
+
+```
+npm run dev
+# open http://localhost:3000/agora
+```
+
+Production: [https://three.ws/agora](https://three.ws/agora). No build step beyond the standard site build; the page loads these modules directly as ES modules.
+
+## Architecture: independent layers, decoupled by window events
+
+[pages/agora.html](../../pages/agora.html) mounts five self-contained entry points as separate `<script type="module">` tags. They never import each other's scaffolding; they communicate only through window events and URL deep links, so each layer can be edited (or fail) without taking down the others.
+
+| Entry point | Owns |
+| --- | --- |
+| [agora-world.js](agora-world.js) | The scaffold: reuses the City scene/camera ([src/city](../city/city-scene.js)) and OSM geometry, spawns the citizen crowd ([citizen-avatar.js](citizen-avatar.js)), opens passports on click, mounts the economy layer and play mode. Degrades gracefully when OSM is down (plaza opens without buildings). |
+| [trust-surface.js](trust-surface.js) | The job detail panel ([job-detail.js](job-detail.js)) plus the public deliverable verifier ([verify.js](verify.js)): re-hash an artifact in-browser and compare it to the on-chain proofHash. |
+| [me-hud.js](me-hud.js) | The human "you" layer: join the Commons (custodial wallet + avatar placement), post a bounty, hire, claim, complete with a real proof, and vouch, all through [actions.js](actions.js) against `POST /api/agora/act`. |
+| [arena.js](arena.js) | Competitive tasks as a live 3D race: one runner per claimant, position mapped to actual work state, winner takes the whole escrow. |
+| [guild.js](guild.js) | Collaborative tasks as a rising structure: one block per contributor slot, split reward on completion, cold ghost slots on expiry. |
+
+Cross-layer events (dispatch or listen on `window`):
+
+| Event | Detail | Effect |
+| --- | --- | --- |
+| `agora:open-job` | `{ taskPda, creator, taskId, cluster }` | Opens the job detail panel |
+| `agora:open-passport` | `{ agentPda }` | Opens a citizen's passport |
+| `agora:open-arena` | task view | Opens the Arena live view |
+| `agora:open-guild` | task view | Opens the Guild live view |
+| `agora:vouch-prompt` | `{ agentPda, ... }` | Opens the me-hud drawer straight to a one-click vouch |
+
+Deep links: `?task=<pda>`, `?arena=<pda>`, `?guild=<pda>` (plus `&cluster=`) open the matching panel on load.
+
+## Module map
+
+| Module | Exports (main) | What it does |
+| --- | --- | --- |
+| [api.js](api.js) | `getJson`, `postJson`, `fetchPassport`, `fetchCitizens`, `fetchBoard`, `fetchPulse`, `fetchTask`, `fetchAgent`, `linkIdentity` | Thin client for the read APIs; throws on failure so panels render honest error states |
+| [actions.js](actions.js) | `getMe`, `join`, `postTask`, `hire`, `claim`, `complete`, `vouch` | Authenticated human actions against `POST /api/agora/act` |
+| [citizen-avatar.js](citizen-avatar.js) | `CitizenPopulation`, `professionColor`, `buildLabelSprite` | The animated crowd with name + profession labels |
+| [economy-layer.js](economy-layer.js) | `mountEconomyLayer` | Single mount point wiring board + ticker + FX to one pulse poll |
+| [job-board.js](job-board.js) | `JobBoard` | Glowing, profession-coloured, reward-sized 3D task markers |
+| [economy-fx.js](economy-fx.js) | `EconomyFx` | The completion moment: coin arc, reputation tick, deliverable plinth |
+| [pulse-feed.js](pulse-feed.js) | `PulseFeed` | Deduped, backing-off poll of `/api/agora/board` + `/api/agora/pulse`; pauses when the tab is hidden |
+| [ticker.js](ticker.js) | `Ticker` | HUD economy readout + click-to-focus narration feed |
+| [passport-panel.js](passport-panel.js) | `PassportPanel`, `reputationGrade` | The living passport: trust grade, stake, earnings, on-chain reconcile, activity timeline |
+| [job-detail.js](job-detail.js) | `renderJobDetail` | On-chain lifecycle (created, claimed, completed) with Explorer links per step |
+| [verify.js](verify.js) | `mountVerifier`, `fetchAndHash`, `sha256Hex`, `compareHash` | In-browser deliverable verification against the on-chain proofHash |
+| [handshake.js](handshake.js) | `parseIdentityProofs`, `hasDualIdentity`, `deriveCanonicalAgenCId`, `renderHandshake` | Cross-chain (EVM + Solana) identity handshake rendering |
+| [live-view.js](live-view.js) | `LiveView` | Shared focus-trapped overlay + live task poll the Arena and Guild both mount into |
+| [task-types.js](task-types.js) | `TASK_TYPE`, `isArena`, `isGuild`, `isMultiWorker`, `taskTypeBadge` | Exclusive / Competitive / Collaborative task-type helpers |
+| [task-progress.js](task-progress.js) | `stateProgress`, `stateLabel`, `rankRoster`, `guildFill` | Pure state-to-progress math shared by the live views |
+| [player-mode.js](player-mode.js) | `mountPlayerMode` | Walkable play mode: your avatar in the square, live humans over the `agora_world` Colyseus room ([multiplayer/src/rooms/AgoraRoom.js](../../multiplayer/src/rooms/AgoraRoom.js)), proximity + E to open passports |
+| [player-logic.js](player-logic.js) | `stepMovement`, `resolveBuildingCollision`, `findOpenSpawn`, `nearestInteractable` | Pure movement/collision math (unit-testable, no Three.js) |
+| [onchain-presence.js](onchain-presence.js) | `mountOnchainPresence` | Opt-in "Record on-chain (BNB testnet)" toggle + ghost markers from real `Moved` events |
+| [panel.js](panel.js) | `Panel`, `h`, `infoRow`, `copyChip`, `rewardChip` | Accessible side-panel primitives shared by passport and job detail |
+| [format.js](format.js) | `formatThree`, `formatSol`, `shortId`, `timeAgo`, `explorerTxUrl` | Display formatting for atomic amounts, ids, times, Explorer links |
+| [professions.js](professions.js) | `professionColor`, `professionLabelFor`, `rewardMagnitude`, `rewardChip` | Profession palette + reward sizing shared by board and crowd |
+| [glb-viewer.js](glb-viewer.js) | `makeViewer` (default) | Minimal GLB viewer for verified deliverables |
+| [post-form.js](post-form.js) | `buildPostForm` | The post-a-bounty / hire form used by the me-hud drawer |
+
+Style modules ([agora.css](agora.css), [economy-layer.css.js](economy-layer.css.js), [trust-surface.css.js](trust-surface.css.js), [arena-guild.css.js](arena-guild.css.js), [humans.css.js](humans.css.js), [player-mode.css.js](player-mode.css.js)) carry each layer's CSS; the `.css.js` files self-inject so a layer ships its own styles.
+
+## Backend endpoints consumed
+
+All under [api/agora/[action].js](../../api/agora/%5Baction%5D.js) (reads) and [api/agora/act.js](../../api/agora/act.js) (writes):
+
+- `GET /api/agora/citizens` : the world-renderable population
+- `GET /api/agora/board` : open AgenC tasks + x402 bazaar services as claimable jobs
+- `GET /api/agora/pulse` : population breakdown, 24h flows, top earners, narration
+- `GET /api/agora/passport?id=|agentPda=|agentId=` : one citizen's living passport
+- `POST /api/agora/act` : `join`, `post-task`, `hire`, `claim`, `complete`, `vouch` (session auth + CSRF + spend policy + idempotency)
+- `GET /api/agenc/get-task`, `GET /api/agenc/get-agent`, `POST /api/agenc/link` : live on-chain state
+
+## Example
+
+The thin client in [api.js](api.js) is how every panel reads the world. This is the exact pattern [job-detail.js](job-detail.js) and [passport-panel.js](passport-panel.js) use:
+
+```js
+import { fetchCitizens, fetchBoard, fetchPulse, fetchTask } from './api.js';
+
+// The population (filterable: profession, status, kind, limit).
+const { citizens } = await fetchCitizens({ profession: 'sculptor', limit: 20 });
+
+// The live job board: open AgenC tasks + x402 services.
+const { tasks, services } = await fetchBoard({ maxItems: 10 });
+
+// The economy heartbeat: population, 24h flows, recent narration.
+const pulse = await fetchPulse();
+console.log(pulse.population.total, pulse.economy.tasksCompleted24h, pulse.recent);
+
+// One task's live on-chain state + lifecycle timeline.
+if (tasks.length > 0) {
+ const data = await fetchTask({ taskPda: tasks[0].taskPda, cluster: 'devnet' });
+ console.log(data.task?.state, data.lifecycle);
+}
+```
+
+Every helper throws an `Error` with a human-readable message on network failure or a non-2xx response, so callers can show the message verbatim in a designed error state.
+
+## Related
+
+- Spec and invariants: [docs/agora.md](../../docs/agora.md)
+- Life engine (the citizens' labour loop): [workers/agora-citizens](../../workers/agora-citizens/README.md)
+- Agent-facing MCP tools over the same economy: [packages/agora-mcp](../../packages/agora-mcp/README.md)
+- Surface map: [STRUCTURE.md](../../STRUCTURE.md)
diff --git a/src/diorama/README.md b/src/diorama/README.md
new file mode 100644
index 000000000..95705521f
--- /dev/null
+++ b/src/diorama/README.md
@@ -0,0 +1,149 @@
+# src/diorama
+
+Frontend for `/diorama`: one sentence becomes a tiny explorable 3D world. The
+user types "a cozy autumn campsite by a lake at dusk", Claude decomposes it
+into a placed scene plan (mood, palette, ground, island shape, and a handful of
+single-object forge prompts), each object is forged into a real GLB on the free
+text to 3D lane, and the world materializes progressively on a floating island
+the user can orbit, save, share, and remix. Saved worlds land on a public
+gallery wall with permalinks.
+
+Entry page: [pages/diorama.html](../../pages/diorama.html) (served at
+`/diorama`, wired in `vite.config.js`). Backend:
+[api/diorama.js](../../api/diorama.js) (compose + save + list + load) over
+[api/_lib/diorama-store.js](../../api/_lib/diorama-store.js). Product doc:
+[docs/diorama.md](../../docs/diorama.md). Surface row:
+[STRUCTURE.md](../../STRUCTURE.md).
+
+## Why this exists
+
+Forging a single model (`/forge`) is a transaction; a diorama is a place. This
+module set turns the existing forge lane into a scene-level creative tool
+without any new generation backend: the only new server work is the LLM compose
+call and gallery persistence. The design constraint that shapes everything here
+is progressive materialization: a plan is renderable before any mesh exists
+(objects show as luminous "forming" seeds), a failed object never sinks the
+world, and partial worlds are real and shareable.
+
+## Layout
+
+```
+src/diorama/
+├── schema.js The shared data contract: shapes, bounds, validators, sample world (pure, no DOM/Three)
+├── compose.js Orchestration: compose plan via /api/diorama, forge each object via /api/forge
+├── renderer.js Three.js stage: island, sky, mood lighting, seeds, GLB materialization, thumbnails
+├── gallery.js Public wall of saved worlds (GET /api/diorama?list=recent)
+├── share.js Share sheet: permalink copy, X intent, iframe embed snippet
+├── main.js Page controller (the only script entry); wires the DOM contract in pages/diorama.html
+└── diorama.css Page styles
+```
+
+`schema.js` is the single source of truth for the `Diorama` shape. Every other
+module (and the API) imports its constants and validators so they cannot drift.
+A `Diorama` is a plan first (objects with prompts and placement, no meshes) and
+a populated world second (each object gains a `glbUrl` once forged).
+
+## Exports
+
+`schema.js` (pure data, safe to import server-side):
+
+| Export | What it is |
+| --- | --- |
+| `MOODS`, `GROUNDS`, `ISLANDS` | Allowed values for `mood`, `ground`, `island` |
+| `MAX_OBJECTS`, `MIN_OBJECTS`, `MAX_PROMPT_LEN`, `ISLAND_RADIUS` | Bounds; a diorama is a miniature, 3 to 8 objects on a 6.2 m island |
+| `MOOD_LIGHT` | Per-mood sun/ambient/fog presets the renderer reads |
+| `normalizeDiorama(input)` | Validate + normalize untrusted input; returns `{ ok, diorama, errors }`, never throws |
+| `defaultPalette(mood)`, `coercePalette(p, mood)` | Palette fallbacks and coercion |
+| `titleFromPrompt(prompt)` | Derive a short Title Case title |
+| `isComplete(diorama)`, `forgeProgress(diorama)` | Forge completion checks (progress 0..1) |
+| `SAMPLE_DIORAMA` | Frozen hand-authored sample world for local dev and empty-state previews |
+
+`compose.js`:
+
+| Export | What it is |
+| --- | --- |
+| `composeWorld(prompt, { onPlan, onObject, signal })` | Compose the plan, then forge every object with bounded concurrency (3 at a time); resolves to the populated diorama |
+| `forgeObject(object, { signal, onObject })` | Forge one object's mesh; resolves `{ status, glbUrl }`, never throws on forge failure (used for per-object retry) |
+| `CLIENT_ID` | Stable per-browser id sent as `x-forge-client` to scope forge jobs |
+
+`renderer.js`:
+
+| Export | What it is |
+| --- | --- |
+| `createDioramaRenderer(container, opts)` | Bind the WebGL stage to a container. Returns `{ setDiorama, materializeObject, markFailed, frame, startAutoOrbit, getActiveGlbUrls, resize, dispose }` plus `scene`/`camera`/`renderer` getters as escape hatches |
+| `renderThumbnail(canvas, diorama)` | One-shot preview render (island + mood sky + first forged GLBs); resolves to a dispose function |
+
+`gallery.js`:
+
+| Export | What it is |
+| --- | --- |
+| `mountGallery({ listEl, emptyEl, onOpen, limit })` | Wire the gallery grid to `GET /api/diorama?list=recent`; returns `{ reload }` |
+
+`share.js`:
+
+| Export | What it is |
+| --- | --- |
+| `openShare({ diorama, url })` | Populate the share sheet (`#share-panel` in the page) with the saved permalink; wires copy, X intent, and iframe-embed actions. Idempotent |
+
+`main.js` exports nothing; it is the page entry that wires all of the above to
+the DOM contract documented in [pages/diorama.html](../../pages/diorama.html).
+
+## Usage
+
+There is nothing to install; these are plain ES modules bundled by the repo's
+Vite build. Run the page locally with `npm run dev` and open
+`http://localhost:3000/diorama`.
+
+The core loop, exactly as `main.js` drives it: create the renderer, hand the
+plan to the stage the moment it exists, then materialize each mesh as its forge
+settles.
+
+```js
+import { createDioramaRenderer } from './renderer.js';
+import { composeWorld } from './compose.js';
+
+const renderer = createDioramaRenderer(document.querySelector('#stage'), {});
+
+const diorama = await composeWorld('a cozy autumn campsite by a lake at dusk', {
+ // Called once the plan returns, before any mesh exists: the island, sky,
+ // and per-object seeds render immediately.
+ onPlan: (plan) => renderer.setDiorama(plan),
+ // Called as each object moves through forging, then ready or failed.
+ onObject: (objectId, patch) => {
+ if (patch.status === 'ready') renderer.materializeObject(objectId, patch.glbUrl);
+ if (patch.status === 'failed') renderer.markFailed(objectId);
+ },
+});
+// diorama.objects now carry status + glbUrl; a partial world is still valid.
+```
+
+Pass an `AbortController`'s signal as `opts.signal` to cancel the compose and
+all in-flight forges cleanly (`composeWorld` and `forgeObject` propagate
+`AbortError`; every other forge failure is absorbed into `status:'failed'`).
+
+## Backend contract
+
+All calls go through two endpoints; this directory owns no server code:
+
+- `POST /api/diorama` with `{ action:'compose', prompt }` returns the
+ LLM-planned `{ diorama }`. The same handler serves `?list=recent` for the
+ gallery, `?id=<uuid>` for permalinks, and save. See
+ [api/diorama.js](../../api/diorama.js).
+- `POST /api/forge` with `{ prompt, tier:'draft', path:'image' }` forges one
+ object on the free lane; queued jobs are polled via `GET /api/forge?job=<id>`
+ every 2.5 s with a 3 minute per-object deadline.
+
+Responses are untrusted until they pass `normalizeDiorama`; the renderer only
+ever sees a guaranteed-renderable object.
+
+## Rendering notes
+
+- Forged GLBs may be Draco or meshopt compressed. The Draco decoder path is
+ `/three/draco/`, staged by the repo postinstall
+ ([scripts/copy-three-decoders.mjs](../../scripts/copy-three-decoders.mjs));
+ the meshopt decoder is awaited before the first GLB load.
+- Objects normalize to about 1.4 m so a handful read as a cohesive miniature;
+ placement is clamped to the island disc (`ISLAND_RADIUS`) by the schema.
+- `prefers-reduced-motion` is respected (no auto-orbit, calmer materialization).
+- `renderThumbnail` owns its own renderer and returns a dispose function; call
+ it when the preview leaves the DOM or you leak WebGL contexts.
diff --git a/src/feature-tour/README.md b/src/feature-tour/README.md
new file mode 100644
index 000000000..45e870910
--- /dev/null
+++ b/src/feature-tour/README.md
@@ -0,0 +1,98 @@
+# src/feature-tour
+
+Site-native guided-tour engine for three.ws. A small always-on-top 3D avatar walks across the real page, spotlights the feature being discussed, points at it with a beam, and narrates a line about it, stop by stop, across the whole multi-page site. It drives the `/tour` experience ([../../pages/tour.html](../../pages/tour.html)) and the three tracks (full, quick, onboarding) defined by [../../public/tour/curriculum.json](../../public/tour/curriculum.json).
+
+## Why this exists
+
+This is a hardened, site-native fork of the publishable [../../tour-sdk](../../tour-sdk) engine (same curriculum schema: stops, sections, tracks, highlight, narration, targets). Keeping our own copy lets the platform tour evolve with the site (platform TTS lane, walk-sdk avatar roster, onboarding auto-offer) without forcing a package release, while the SDK stays a clean product for external sites. The curriculum itself is generated at deploy time by [../../scripts/build-tour.mjs](../../scripts/build-tour.mjs) from `data/pages.json`, so new pages join the tour automatically.
+
+The engine survives full-page navigation: live state (active, stop index, paused, muted, voice, speed) lives in `sessionStorage` under `tws:tour:state`, so when the next stop is on another route the director persists progress, navigates, and the new page rehydrates exactly where it left off. Durable cross-session memory (resume point, preferences, completion) lives in `localStorage` under `tws:tour:resume`.
+
+## How it loads (nobody pays for Three.js by default)
+
+Nothing here is in the main bundle. The entry file [../feature-tour.js](../feature-tour.js) is emitted by Vite to the stable, unhashed path `/feature-tour.js`, and the `feature-tour-boot` plugin in [../../vite.config.js](../../vite.config.js) injects a tiny inline check into every page that only appends `<script type="module" src="/feature-tour.js">` when a tour is starting (`?tour=start` or `?tour=1`) or already active in `sessionStorage`. Pages that never tour load zero tour code.
+
+Launch surfaces:
+
+- `/tour` ([../../pages/tour.html](../../pages/tour.html)): track pickers that navigate to the first stop with `?tour=start` (plus `&track=quick`), and explore mode via `?tour=start&mode=explore` or `&mode=platformer`.
+- Onboarding: auto-offered once to a signed-in account with zero creations (`GET /api/me` returns `show_onboarding_tour`), and always reachable via the "Replay guided tour" link in the getting-started checklist ([../../public/getting-started.js](../../public/getting-started.js)), which navigates to `/start?tour=start&track=onboarding`.
+- Programmatic: anything on the page can call `window.__featureTour.start('quick')` once the module is loaded.
+
+## Tracks
+
+A track is a playlist: an ordered list of curriculum stop indices, derived by `buildPlaylist()` in [curriculum.js](./curriculum.js).
+
+| Track | What it plays |
+| --- | --- |
+| `full` | Every general site stop (`section !== 'onboarding'`), chapter by chapter. |
+| `quick` | The full track's `highlight: true` heroes only. |
+| `onboarding` | The 6-stop hand-authored new-account walkthrough (`section === 'onboarding'`): `/start`, avatar, world, markets, optional coin launch, own profile. Its stops are excluded from `full`/`quick` so the curricula never bleed together. |
+
+An unknown track or an empty filter falls back to the full non-onboarding list, so the tour can never strand itself with nothing to play.
+
+## Layout
+
+```
+src/feature-tour/
+├── index.js createFeatureTour(): the public control surface + bootstrap()
+├── director.js TourDirector: sequencing brain; owns every stop, control, and cross-route hop
+├── curriculum.js Curriculum fetch + sessionStorage/localStorage state + pure playlist helpers
+├── guide-avatar.js GuideAvatar: the 3D guide (walk-sdk rig; walks, faces, gestures, speech bubble)
+├── spotlight.js Spotlight: dims the page and rings the element being discussed
+├── narrator.js Narrator: platform TTS (/api/tts/speak) with paced-caption fallback, iOS unlock
+├── controls.js TourControls: playback bar (prev / play-pause / next / speed / roam / mute / exit)
+├── chapters.js ChapterPanel: searchable chapter map, track/voice/speed/avatar settings drawer
+├── free-roam.js FreeRoam: paused mode where the visitor clicks/drags/keys the guide around
+└── explore.js ExploreMode: visitor-driven checkpoint quest on the real walk-sdk playground
+```
+
+The guide avatar and explore locomotion reuse [../../walk-sdk](../../walk-sdk) internals (same rigs and clips as the Walk Companion), so the guide can never freeze in a T-pose.
+
+## Public API
+
+The surface everything else relies on is the control object returned by `createFeatureTour()` ([index.js](./index.js)):
+
+| Member | What it does |
+| --- | --- |
+| `start(track)` | Start (or restart) the guided tour on `'full'`, `'quick'`, or `'onboarding'`. |
+| `startExplore(movement)` | Start the interactive checkpoint mode; `'stroll'` (default) or `'platformer'`. |
+| `resume()` | Rehydrate an in-progress tour from `sessionStorage`. |
+| `exit()` | Tear down whichever mode is active. |
+| `isActive()` | True when a guided tour or explore session is live. |
+| `bootstrap()` | Honor the `?tour=start|1|0` deep link and auto-resume; safe to call once on load; no-op inside iframes. |
+| `director` / `explore` | The live `TourDirector` / `ExploreMode` instance, or `null` before first use. |
+
+Importing is side-effect free: nothing mounts until `bootstrap()` or `start()` runs.
+
+[curriculum.js](./curriculum.js) additionally exports the pure helpers the tests and director share: `loadCurriculum()`, `buildPlaylist(curriculum, track)`, `trackMeta(curriculum, track)`, `stopIndexForPath(curriculum, pathname, playlist)`, `sectionTitle(curriculum, id)`, `normalizePath(pathname)`, and the state accessors `readState()`, `writeState(patch)`, `clearState()`, `readResume()`, `writeResume(patch)`, `markCompleted()`.
+
+## Usage
+
+The platform wiring, verbatim from [../feature-tour.js](../feature-tour.js), is the canonical example:
+
+```js
+import { createFeatureTour } from './feature-tour/index.js';
+
+const tour = createFeatureTour();
+
+// nav.js (the "Take the tour" button) and the /tour page launch + resume the
+// tour through this global. Keep the surface they rely on.
+window.__featureTour = tour;
+
+tour.bootstrap();
+```
+
+To see it run locally: `npm run dev`, then open `http://localhost:3000/?tour=start&track=quick` (the dev server serves `/feature-tour.js` from this directory and the boot plugin injects it because of the `?tour=start` param).
+
+## Tests
+
+- [../../tests/feature-tour-curriculum.test.js](../../tests/feature-tour-curriculum.test.js) covers the playlist/state helpers and the generated curriculum's shape.
+- [../../tests/api-me-onboarding-tour.test.js](../../tests/api-me-onboarding-tour.test.js) covers the `show_onboarding_tour` auto-offer flag.
+
+Run with `npm test`.
+
+## Related
+
+- [../../STRUCTURE.md](../../STRUCTURE.md): the row "three.ws's own guided tour + onboarding" maps this surface.
+- [../../tour-sdk](../../tour-sdk): the publishable `@three-ws/tour` package this engine forked from.
+- [../../scripts/build-tour.mjs](../../scripts/build-tour.mjs): regenerates [../../public/tour/curriculum.json](../../public/tour/curriculum.json) at deploy time.
diff --git a/src/scene-studio/README.md b/src/scene-studio/README.md
new file mode 100644
index 000000000..100d30559
--- /dev/null
+++ b/src/scene-studio/README.md
@@ -0,0 +1,130 @@
+# src/scene-studio
+
+Scene Studio, the full 3D scene editor served at [`/scene`](../../pages/scene.html).
+Import GLB models, arrange them with transform gizmos, edit materials and lights,
+script objects, play the scene, and export the result as GLB, USDZ, or a
+publishable app zip.
+
+## Why this exists
+
+Building a scene editor from scratch is a solved problem: the three.js project
+ships one. Instead of reinventing it, this directory vendors the upstream
+`editor/` from three.js r184 (MIT, see [vendor/LICENSE](vendor/LICENSE)) and
+wraps it with three thin sibling modules that adapt it to three.ws. The wrappers
+never modify `vendor/**`; every local change to upstream files is documented in
+[vendor/README.md](vendor/README.md) so re-vendoring on a three upgrade stays
+mechanical.
+
+The wrappers are what make it a three.ws surface rather than a mirror of the
+upstream demo: models forged on `/forge` or `/parts` deep-link straight into the
+scene, animations baked on `/pose` hand off through IndexedDB, and any composed
+scene can be exported with one click or uploaded and embedded on another site.
+
+## Layout
+
+```
+src/scene-studio/
+├── main.js Boot: mounts the vendored editor into #studio-app, wires
+│ autosave, drag-and-drop import, and the deep-link importers
+├── loader.js Shared GLB loader: Draco/KTX2/Meshopt-wired GLTFLoader that
+│ adds a parsed GLB through the undo-able AddObjectCommand path
+├── actions.js Layered action bar: Import from Forge, Export presets, Share
+├── studio.css three.ws chrome overrides (vendor css/main.css is untouched)
+└── vendor/ three.js r184 editor source (see vendor/README.md)
+```
+
+Static runtime assets (Draco/Basis decoders, toolbar icons, CodeMirror and the
+other classic-script libs, the publish-zip template) live under
+[public/scene-studio/](../../public/scene-studio) and are documented in
+[vendor/README.md](vendor/README.md). The classic-script libs load as plain
+`<script>` tags in [pages/scene.html](../../pages/scene.html), exactly as
+upstream's `index.html` does.
+
+## Usage
+
+There is nothing to install. The page is part of the main Vite app:
+
+```bash
+npm run dev # then open http://localhost:3000/scene
+```
+
+[pages/scene.html](../../pages/scene.html) loads `/src/scene-studio/main.js` as
+a module; `main.js` mounts the editor into the `#studio-app` container under the
+site nav. The surface is dark-locked: the entry module re-pins
+`data-theme="dark"` because the editor chrome only ships dark.
+
+Scenes autosave to IndexedDB through the vendored `editor.storage` on every
+geometry, material, script, or scene-graph change, so a reload restores the last
+state. For debugging, `main.js` exposes `window.editor` and `window.THREE` in
+the browser console.
+
+### Deep links
+
+- `/scene?model=<glb_url>&name=<label>` adds the GLB at that URL to the scene
+ through the normal undo-able import path, then strips the query from the
+ address bar so a reload does not import a duplicate. This is the "Open in
+ Scene Studio" hand-off used by Forge and Parts Studio results. Only `https://`
+ and same-origin `/` URLs are accepted.
+- `/scene?handoff=1` pulls a baked GLB (mesh plus embedded animation clip) that
+ the Animation Studio at `/pose` stashed in IndexedDB via
+ [src/shared/scene-handoff.js](../shared/scene-handoff.js), adds it to the
+ scene, and attaches a player script that drives an `AnimationMixer` so the
+ clip plays in the timeline and records through Render, Video.
+- `/scene#file=<url>` (upstream behavior) loads a serialized editor JSON scene
+ after a confirmation prompt.
+
+### Action bar
+
+`actions.js` mounts a toolbar layered over the vendored chrome with three
+affordances the stock File and Export menus do not offer on their own:
+
+- **Import from Forge**: paste a GLB URL from a Forge or Parts Studio result and
+ drop it straight into the scene.
+- **Export presets**: one click for a Web GLB (binary, with cloned and optimized
+ animation clips, identical to File, Export, GLB) or an AR bundle (.usdz for
+ iOS Quick Look).
+- **Share**: exports the scene as a GLB, uploads it via
+ [api/scene-glb-upload.js](../../api/scene-glb-upload.js) (presigned PUT), and
+ opens the platform's "Embed this model" panel from
+ [src/forge-embed-panel.js](../forge-embed-panel.js), the same modal Forge
+ results use.
+
+## Exports
+
+The wrappers export two functions; `main.js` is entry-only and exports nothing.
+
+| Module | Export | What it does |
+| --- | --- | --- |
+| `loader.js` | `addGltfBufferToScene(editor, contents, label?)` | Parses a GLB `ArrayBuffer` with the Draco/KTX2/Meshopt-wired loader and adds it via `AddObjectCommand` (undo-able, autosave-triggering, outliner-visible). Resolves to the added `THREE.Object3D`. |
+| `actions.js` | `mountStudioActions(editor, container)` | Mounts the Import from Forge / Export / Share bar into the studio container. Returns the bar element. |
+
+## Example
+
+This is how `actions.js` imports a Forge result into the scene, using the shared
+loader (trimmed from `importFromForge` in [actions.js](actions.js)):
+
+```js
+import { addGltfBufferToScene } from './loader.js';
+
+// `editor` is the vendored Editor instance (window.editor on /scene).
+const url = window.prompt('Paste the GLB URL from a Forge result.');
+const trimmed = url.trim();
+const res = await fetch(trimmed);
+if (!res.ok) throw new Error('HTTP ' + res.status);
+const contents = await res.arrayBuffer();
+const base = decodeURIComponent(trimmed.split('?')[0].split('/').pop() || '');
+const label = (base.replace(/\.(glb|gltf)$/i, '') || 'Forge model').slice(0, 64);
+await addGltfBufferToScene(editor, contents, label);
+```
+
+Both callers of the loader (the `?model=` deep link in `main.js` and the action
+bar above) go through this one function, so a GLB added either way decodes and
+behaves identically to a manual drag-and-drop import.
+
+## Related surfaces
+
+- [STRUCTURE.md](../../STRUCTURE.md) row: Scene Studio (3D scene editor).
+- `/forge` and `/parts` produce the GLBs that deep-link here; `/pose` hands off
+ baked animations; the Share flow reuses the Forge embed panel.
+- The page entry in [data/pages.json](../../data/pages.json) (`path: "/scene"`)
+ feeds the sitemap, `llms.txt`, and the changelog.
diff --git a/src/voice/README.md b/src/voice/README.md
new file mode 100644
index 000000000..db3cfa4de
--- /dev/null
+++ b/src/voice/README.md
@@ -0,0 +1,95 @@
+# src/voice
+
+Voice and talk-mode stack: everything that lets a three.ws avatar listen, speak, and move its face while doing it. Mic capture, speech-to-text, lipsync, ARKit blendshape mapping, NVIDIA Audio2Face playback, the full-screen talk overlay, prompt dictation, and in-place voice cloning.
+
+## Why this exists
+
+An avatar that only rotates in a viewer is a model. An avatar you can hold a live conversation with is a product. This directory is the client side of that loop:
+
+```
+user mic ─▶ STT (Web Speech API, or MicCapture + POST /api/asr on Riva)
+ │
+ ▼
+ /api/chat (SSE stream)
+ │
+ ▼
+ /api/tts/eleven (cloned voice) / /api/tts/edge (fallback)
+ │
+ ▼
+ audio element + AnalyserNode
+ │
+ ▼
+ LipsyncDriver (amplitude) or A2FPlayer (Audio2Face blendshape track)
+ │
+ ▼
+ AvatarMouthTarget ─▶ morph weights / jaw bone on the loaded GLB
+```
+
+Every wire is real: the GLB renders through three.js, replies stream from `/api/chat`, audio synthesizes through the existing TTS proxies, and mouth motion comes from the FFT of the actual playback audio (or a per-frame ARKit track from [api/_lib/a2f-nvidia.js](../../api/_lib/a2f-nvidia.js)). No canned animations pretending to be lipsync.
+
+No rig allowlist, same policy as the skeleton pipeline: `AvatarMouthTarget` and `A2FPlayer` scan whatever morph convention the GLB ships (ARKit 52, VRM vowels, Oculus visemes, generic `Mouth_Open` names) and drive what they find. A rig with no face morphs falls back to a jaw bone, then a subtle head-motion fallback. Never a frozen face.
+
+## Modules
+
+| Module | Exports | What it does |
+| --- | --- | --- |
+| [talk-mode.js](talk-mode.js) | `openTalkMode({ avatar, systemPromptFn })`, `closeTalkMode()` | The full-screen talk overlay opened from `/avatars/:id`. Self-contained: builds the DOM, mounts a `TalkScene`, wires hold-to-talk to a `TalkController`, renders the live transcript, emote bar, camera framing button, and the owner-only voice-clone button. Single instance; closes on Escape or the close button. |
+| [talk-controller.js](talk-controller.js) | `TalkController` | Orchestrates the voice loop: STT (Web Speech API, or the Riva lane via `MicCapture` + `POST /api/asr` in browsers without it), streams the reply from `/api/chat`, synthesizes via `/api/tts/eleven` (agent's cloned `voice_id`) or `/api/tts/edge`, and feeds the playback audio into the lipsync path. Owns an `AvatarMouthTarget`, not the scene. |
+| [talk-scene.js](talk-scene.js) | `TalkScene` | Minimal three.js renderer for talk mode (model-viewer does not expose its internal scene, and lipsync needs per-frame morph access). Mounts on demand, loads the GLB, applies cinematic lighting, unmounts cleanly. |
+| [talk-emotes.js](talk-emotes.js) | `TalkEmotes`, `TALK_EMOTE_BAR` | Curated emote bar for the overlay. Wraps [src/animation-manager.js](../animation-manager.js) with manifest fetch and lazy clip loading; the bone-name track filter makes clips safe on any rig. |
+| [mic-capture.js](mic-capture.js) | `MicCapture` | Cross-browser raw-PCM mic capture for the NVIDIA Riva ASR lane (MediaRecorder's WebM/Opus is rejected by Riva). AudioWorklet with ScriptProcessor fallback, live RMS level for the mic meter, 16 kHz mono WAV output via `snapshotWav()` (interim) and `stop()` (final). This is why Firefox, which lacks `SpeechRecognition`, still gets voice input. |
+| [lipsync-driver.js](lipsync-driver.js) | `LipsyncDriver`, `computeShape(bins, gain)`, `tapAudioElement(audioEl, context)` | Amplitude lipsync: reads an `AnalyserNode` each frame, derives `{ open, wide, round }` from band energy (no viseme timestamps needed for streaming TTS), smooths, and pushes into a mouth target. |
+| [arkit-blendshapes.js](arkit-blendshapes.js) | `ARKIT_NAMES`, `ARKIT_GROUPS`, `VRM_TO_ARKIT`, `OCULUS_TO_ARKIT`, `PHONEME_TO_ARKIT`, `canonicalARKitName(name)`, `indexARKitMorphs(morphDict)`, `coverageOf(arkitIndex)`, `resolveShape(name)`, `blendShapes(...inputs)` | Pure data + helpers: the canonical ARKit 52-blendshape vocabulary and the cross-format maps (VRM, Oculus visemes, phonemes). No DOM, no three.js, no async. Everything that touches a loaded GLB imports from here. |
+| [a2f-player.js](a2f-player.js) | `A2FPlayer`, `deriveExpressionWeight(arkitFrame, components)` | Plays an Audio2Face-3D blendshape track (`{ fps, blendShapeNames, frames }`) against a loaded GLB, sampled by the audio element's `currentTime`. Drives ARKit-named morphs directly and derives VRM/Oculus vowel shapes from the ARKit frame, so monolithic-vowel rigs still lipsync. Unknown conventions degrade to no coverage and the caller falls back to `LipsyncDriver`. Also used outside talk mode by [src/avatar-embed.js](../avatar-embed.js) and [src/agent-screen-anchor.js](../agent-screen-anchor.js). |
+| [avatar-morph-target.js](avatar-morph-target.js) | `AvatarMouthTarget` | Adapter between a lipsync source and the GLB: scans the `Object3D` for mouth morphs (ARKit, VRM, generic names) and a jaw bone, translates `{ open, wide, round }` into morph weights and bone rotation. Safe to drive before the model attaches. |
+| [camera-presets.js](camera-presets.js) | `CAMERA_PRESETS`, `PRESET_LABELS`, `computeFraming({ box, preset, aspectRatio })`, `nextPreset(current)` | Pure-math camera framing (`full`, `half`, `headshot`) from a bounding box. No three.js imports, unit-testable, portable to any renderer. |
+| [prompt-dictation.js](prompt-dictation.js) | `mountPromptDictation(container, textarea, opts)` | Reusable "speak instead of type" mic button for any generation-prompt textarea (Forge, Scene Studio, sketch guidance). Same STT strategy as the talk loop; renders nothing when no STT path exists in the browser, so there is never a dead affordance. |
+| [voice-clone-modal.js](voice-clone-modal.js) | `openVoiceCloneModal({ agentId, agentName, onClose })`, `closeVoiceCloneModal()` | Modal shell around the existing [src/editor/voice-recorder.js](../editor/voice-recorder.js) so the owner can clone their voice without leaving talk mode. POSTs to the real `/api/agents/:id/voice/clone` endpoint (ElevenLabs, rate-limited). |
+| [avatar-snapshot.js](avatar-snapshot.js) | `captureSnapshotBlob(talkScene)`, `uploadAvatarSnapshot({ avatarId, scene })`, `SNAPSHOT_CONSTANTS` | Grabs a JPEG poster from the live WebGL canvas and pushes it through the existing presign-thumbnail plus auto-tag flow. |
+| [wallet-intent.js](wallet-intent.js) | `WalletIntentController`, `isWalletCommand(text)` | Conversational wallet layer inside talk mode: a heuristic gate routes money-shaped utterances to `/api/agents/:id/solana/intent`, resolves amounts against real balances, previews the trade, and requires an explicit confirm (tap or "yes") before calling the same owner-only, spend-policy-gated trade/withdraw endpoints the wallet HUD uses. Nothing signs on its own path. |
+
+## Install / use
+
+Nothing to install; these are plain ES modules bundled by Vite. Import from a sibling under `src/` and run the dev server:
+
+```
+npm run dev
+# open http://localhost:3000/avatars/<id> and press Talk
+```
+
+Server-side counterparts (already deployed, no setup needed in the client): [api/asr.js](../../api/asr.js) (Riva ASR), [api/tts/](../../api/tts) (`edge.js`, `eleven.js`, `speak.js`, `voices.js`, `eleven-clone.js`), and [api/_lib/a2f-nvidia.js](../../api/_lib/a2f-nvidia.js) (Audio2Face). The reusable server package lives at [packages/voice/](../../packages/voice).
+
+## Example
+
+The real entry point, as wired in [src/avatar-page.js](../avatar-page.js) (talk-mode entry section):
+
+```js
+import { openTalkMode } from './voice/talk-mode.js';
+
+// Opens the live-voice overlay: three.js renderer + lipsync + push-to-talk.
+// Implementation lives in src/voice/talk-mode.js so this page only needs the
+// click handler and a system-prompt provider.
+function enterTalkMode() {
+ if (!avatar) return;
+ openTalkMode({ avatar, systemPromptFn: buildSystemContext });
+}
+```
+
+`avatar` is the decorated record from `GET /api/avatars/:id` (needs `model_url`, or a `glbBlob` for in-memory previews; see `openVoicePreview` in [src/create-review-features.js](../create-review-features.js)). `systemPromptFn` returns the system prompt string for `/api/chat`. The returned session handle can be closed programmatically, or the user closes it with the close button or Escape.
+
+## Consumers
+
+- [src/avatar-page.js](../avatar-page.js): Talk button on `/avatars/:id`.
+- [src/create-review-features.js](../create-review-features.js): voice preview of a just-generated avatar before saving.
+- [src/forge-studio/talk-launch.js](../forge-studio/talk-launch.js) and [src/forge-studio/forge.js](../forge-studio/forge.js): talk launch plus dictation on the Forge prompt fields.
+- [src/create-prompt.js](../create-prompt.js): dictation on the create-page prompt.
+- [src/avatar-embed.js](../avatar-embed.js), [src/agent-screen-anchor.js](../agent-screen-anchor.js): `A2FPlayer` outside talk mode.
+- [apps-sdk/embodiment/](../../apps-sdk/embodiment): the embodiment stage reuses the lipsync cores (see the Embodiment row in [STRUCTURE.md](../../STRUCTURE.md)).
+
+## Tests
+
+```
+npm test
+```
+
+Covered by [tests/a2f-player.test.js](../../tests/a2f-player.test.js), [tests/arkit-blendshapes.test.js](../../tests/arkit-blendshapes.test.js), [tests/lipsync-driver.test.js](../../tests/lipsync-driver.test.js), [tests/camera-presets.test.js](../../tests/camera-presets.test.js), [tests/talk-emotes.test.js](../../tests/talk-emotes.test.js), and [tests/conversational-wallet-intent.test.js](../../tests/conversational-wallet-intent.test.js).
diff --git a/tests/api/x402-discovery-green.test.js b/tests/api/x402-discovery-green.test.js
index 50f07804e..7ae9e96c8 100644
--- a/tests/api/x402-discovery-green.test.js
+++ b/tests/api/x402-discovery-green.test.js
@@ -11,9 +11,13 @@
// ship and quietly drop us from the indexes.
import { describe, it, expect, beforeAll } from 'vitest';
+import { execFile } from 'node:child_process';
+import { promisify } from 'node:util';
import Ajv2020 from 'ajv/dist/2020.js';
import addFormats from 'ajv-formats';
+const execFileAsync = promisify(execFile);
+
const NETWORK_BASE = 'eip155:8453';
const SOLANA_PREFIX = 'solana:';
@@ -95,27 +99,30 @@ function checkResource(r) {
return { label: label(r), errors, warnings };
}
-async function renderDiscovery() {
- Object.assign(process.env, {
- APP_ORIGIN: 'https://three.ws',
- X402_PAY_TO_BASE: '0x0000000000000000000000000000000000000001',
- X402_PAY_TO_SOLANA: 'So11111111111111111111111111111111111111112',
- X402_ASSET_ADDRESS_BASE: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
- X402_ASSET_MINT_SOLANA: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
- X402_ASSET_ADDRESS_ARBITRUM: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
- X402_MAX_AMOUNT_REQUIRED: '1000',
- X402_FEE_PAYER_SOLANA: 'So11111111111111111111111111111111111111112',
- });
- const mod = await import('../../api/wk.js');
+// Rendered in a CHILD node process, loading api/wk.js natively — exactly how
+// production (server/index.mjs) loads it. Importing it in-process here would
+// pull its multi-thousand-module graph through vitest's transform pipeline:
+// ~55s in isolation and past the 120s hook budget under full-suite contention,
+// so the file flaked on load, never on content. The native import is ~6s.
+const RENDER_ENV = {
+ APP_ORIGIN: 'https://three.ws',
+ X402_PAY_TO_BASE: '0x0000000000000000000000000000000000000001',
+ X402_PAY_TO_SOLANA: 'So11111111111111111111111111111111111111112',
+ X402_ASSET_ADDRESS_BASE: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
+ X402_ASSET_MINT_SOLANA: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',
+ X402_ASSET_ADDRESS_ARBITRUM: '0xaf88d065e77c8cC2239327C5EDb3A432268e5831',
+ X402_MAX_AMOUNT_REQUIRED: '1000',
+ X402_FEE_PAYER_SOLANA: 'So11111111111111111111111111111111111111112',
+};
+
+const WK_URL = new URL('../../api/wk.js', import.meta.url).href;
+const RENDER_SCRIPT = `
+ const mod = await import(${JSON.stringify(WK_URL)});
const res = {
statusCode: 0,
headers: {},
- setHeader(k, v) {
- this.headers[k.toLowerCase()] = v;
- },
- end(body) {
- this.body = body;
- },
+ setHeader(k, v) { this.headers[k.toLowerCase()] = v; },
+ end(body) { this.body = body; },
};
const req = {
method: 'GET',
@@ -124,7 +131,22 @@ async function renderDiscovery() {
headers: {},
};
await mod.default(req, res);
- return JSON.parse(res.body);
+ process.stdout.write(res.body);
+`;
+
+let renderPromise;
+function renderDiscovery() {
+ // One render serves every test — the catalog is a pure function of the env
+ // above, so re-rendering only re-pays the child's cold import.
+ renderPromise ??= (async () => {
+ const { stdout } = await execFileAsync(
+ process.execPath,
+ ['--input-type=module', '-e', RENDER_SCRIPT],
+ { env: { ...process.env, ...RENDER_ENV }, maxBuffer: 64 * 1024 * 1024 },
+ );
+ return JSON.parse(stdout);
+ })();
+ return renderPromise;
}
describe('x402 discovery catalog is fully green', () => {
diff --git a/tests/gpu-capacity.test.js b/tests/gpu-capacity.test.js
index ed54e54d7..aa3757e14 100644
--- a/tests/gpu-capacity.test.js
+++ b/tests/gpu-capacity.test.js
@@ -9,7 +9,7 @@
*/
import { describe, it, expect } from 'vitest';
-import { retargetExport, recommend } from '../scripts/gpu-capacity.mjs';
+import { retargetExport, recommend, bucketUsage } from '../scripts/gpu-capacity.mjs';
// A trimmed `gcloud run services describe --format=export` body, same shape as
// the real one for a GPU worker.
@@ -155,3 +155,49 @@ describe('recommend', () => {
expect(recs).toEqual([]);
});
});
+
+const L4 = 'NvidiaL4GpuAllocNoZonalRedundancyPerProjectRegion';
+const RTX = 'NvidiaRtxPro6000GpuAllocNoZonalRedundancyPerProjectRegion';
+
+describe('bucketUsage', () => {
+ // The bug this pins: model-hunyuan3d-21-rtx runs on an RTX PRO 6000, but its
+ // accelerator lives in nodeSelector, not annotations. Reading the wrong place
+ // defaulted it to L4 and charged it to the shared pool, so us-central1 read
+ // "3/3 pinned, 0 free" while it actually had a spare L4.
+ it('charges each service to its own accelerator pool', () => {
+ const buckets = bucketUsage(
+ [
+ { name: 'model-rig', quotaId: L4, pinned: 1, ceiling: 2 },
+ { name: 'model-trellis', quotaId: L4, pinned: 1, ceiling: 3 },
+ { name: 'model-hunyuan3d-21-rtx', quotaId: RTX, pinned: 1, ceiling: 1 },
+ ],
+ [
+ { quotaId: L4, granted: 3 },
+ { quotaId: RTX, granted: 1000 },
+ ],
+ );
+ const l4 = buckets.find((b) => b.quotaId === L4);
+ expect(l4.pinned).toBe(2);
+ expect(l4.headroom).toBe(1);
+ const rtx = buckets.find((b) => b.quotaId === RTX);
+ expect(rtx.pinned).toBe(1);
+ expect(rtx.headroom).toBe(999);
+ });
+
+ it('surfaces a filed grant with nothing running in it — that is the free capacity', () => {
+ const buckets = bucketUsage([], [{ quotaId: L4, granted: 8 }]);
+ expect(buckets).toHaveLength(1);
+ expect(buckets[0]).toMatchObject({ pinned: 0, granted: 8, headroom: 8 });
+ });
+
+ it('reports headroom as null when no grant has been filed for a pool in use', () => {
+ const buckets = bucketUsage([{ name: 'x', quotaId: L4, pinned: 1, ceiling: 1 }], []);
+ expect(buckets[0].granted).toBeNull();
+ expect(buckets[0].headroom).toBeNull();
+ });
+
+ it('ignores a service on an accelerator with no known quota bucket', () => {
+ const buckets = bucketUsage([{ name: 'x', quotaId: null, pinned: 1, ceiling: 1 }], []);
+ expect(buckets).toEqual([]);
+ });
+});
diff --git a/tests/x402-crypto-intel-mint.test.js b/tests/x402-crypto-intel-mint.test.js
index 8597aea35..391ae9a3e 100644
--- a/tests/x402-crypto-intel-mint.test.js
+++ b/tests/x402-crypto-intel-mint.test.js
@@ -9,7 +9,7 @@ const LAUNCH_MCAP_SOL = 30 / 1.073;
const NOW = 1_785_300_000_000;
const freshCoin = (over = {}) => ({
- mint: '4yBmgdh9hX3MsYsg35dVFwo8xmSbcEtSDHuGhCYApump',
+ mint: 'THREEsyntheticCurveCoin111111111111111pump',
usd_market_cap: 2069.72,
market_cap: LAUNCH_MCAP_SOL,
total_supply: 1_000_000_000_000_000,
diff --git a/tests/x402-probe-challenge.test.js b/tests/x402-probe-challenge.test.js
index b98fa4c3f..b342a2d6d 100644
--- a/tests/x402-probe-challenge.test.js
+++ b/tests/x402-probe-challenge.test.js
@@ -25,9 +25,20 @@ beforeAll(async () => {
X402_ASSET_ADDRESS_BASE: '0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913',
X402_ADVERTISE_BASE: 'true',
},
+ timeoutMs: 60_000,
});
BASE = server.base;
-}, 30000);
+ // Warm the paid-route stacks. healthz readiness says nothing about the x402
+ // handler graph: the child imports it lazily on the first paid-route hit, and
+ // under full-suite load that cold import runs tens of seconds, which blew the
+ // first test's 15s budget. Charging the warm-up to the hook budget keeps each
+ // test measuring the challenge contract, not the import graph. The responses
+ // are deliberately ignored; the tests below re-assert them against warm code.
+ await Promise.all([
+ fetch(`${BASE}/api/x402/tutor`).catch(() => {}),
+ fetch(`${BASE}/api/v1/x/openai/chat`).catch(() => {}),
+ ]);
+}, 120_000);
afterAll(() => {
server?.close();
diff --git a/tests/x402-ring-sponsor-governor.test.js b/tests/x402-ring-sponsor-governor.test.js
index e9e6cbd15..11025b772 100644
--- a/tests/x402-ring-sponsor-governor.test.js
+++ b/tests/x402-ring-sponsor-governor.test.js
@@ -3,11 +3,11 @@ import { describe, it, expect } from 'vitest';
import { ringTickConfig, sponsorGovernor } from '../api/_lib/x402/ring-tick-plan.js';
// The sponsor governor is the ring tick's view of the facilitator's fee wallet
-// (X402_FEE_PAYER_SOLANA) — the wallet that actually starved in the 2026-07-28
+// (X402_FEE_PAYER_SOLANA): the wallet that actually starved in the 2026-07-28
// outage. Three regimes: unreadable balance passes through (the facilitator
// fail-closes at settle time), below the hard floor skips the tick, above it
// the payer-governor runway math tapers the call rate.
-describe('sponsorGovernor — regimes', () => {
+describe('sponsorGovernor: regimes', () => {
const BASE = {
configuredCalls: 6,
floorLamports: 4_000_000,
@@ -38,7 +38,7 @@ describe('sponsorGovernor — regimes', () => {
});
it('tapers below the full rate as spendable SOL shrinks', () => {
- // ~0.03 SOL spendable: 30M/6000/1d = 5,000 calls/day ≈ 3/min — half rate.
+ // ~0.03 SOL spendable: 30M/6000/1d = 5,000 calls/day ≈ 3/min: half rate.
const g = sponsorGovernor({ ...BASE, sponsorLamports: 34_000_000 });
expect(g.skip).toBe(false);
expect(g.throttled).toBe(true);
@@ -47,7 +47,7 @@ describe('sponsorGovernor — regimes', () => {
});
it('keeps the heartbeat above the floor even when runway math says zero', () => {
- // 10k lamports spendable is under two settles' worth — runway budget rounds
+ // 10k lamports spendable is under two settles' worth: runway budget rounds
// to 0/min, but the hard floor is the real stop, so the heartbeat holds.
const g = sponsorGovernor({ ...BASE, sponsorLamports: 4_010_000 });
expect(g.skip).toBe(false);
@@ -61,7 +61,7 @@ describe('sponsorGovernor — regimes', () => {
});
});
-describe('ringTickConfig — sponsor knobs', () => {
+describe('ringTickConfig: sponsor knobs', () => {
it('defaults the sponsor fee estimate and runway, clamped sane', () => {
const cfg = ringTickConfig({});
expect(cfg.sponsorFeePerSettleLamports).toBe(6_000);
diff --git a/tests/x402-wallet-fee-meter.test.js b/tests/x402-wallet-fee-meter.test.js
new file mode 100644
index 000000000..7a166b7a2
--- /dev/null
+++ b/tests/x402-wallet-fee-meter.test.js
@@ -0,0 +1,445 @@
+// Tests for the wallet fee meter's I/O half
+// (api/_lib/x402/wallet-fee-meter.js).
+//
+// wallet-fee-governor.js holds the pure math (tests/x402-wallet-fee-governor
+// .test.js); this file pins the I/O around it: the spent-today ledger read and
+// its summation, the ~20s spent cache (including the documented multi-instance
+// undercount bound and the UTC-day rollover), controlled-wallet scoping via the
+// ring allowlist, the recordSettledFee optimistic debit, the refusal alert, and
+// the known post-settle accounting gap in api/x402-facilitator/[action].js.
+//
+// DB, alerts, and the allowlist are mocked at the module boundary the way the
+// neighboring x402 tests mock theirs; time is driven with vi.useFakeTimers so
+// the cache-window tests never sleep.
+
+import { describe, it, expect, vi, beforeEach, afterEach } from 'vitest';
+import { readFileSync } from 'node:fs';
+import { fileURLToPath } from 'node:url';
+import path from 'node:path';
+
+const h = vi.hoisted(() => ({
+ sql: vi.fn(),
+ sendOpsAlert: vi.fn(async () => {}),
+ ringAllowedAddresses: vi.fn(),
+}));
+
+vi.mock('../api/_lib/db.js', () => ({ sql: h.sql }));
+vi.mock('../api/_lib/alerts.js', () => ({ sendOpsAlert: h.sendOpsAlert }));
+vi.mock('../api/_lib/x402/ring-allowlist.js', () => ({
+ ringAllowedAddresses: h.ringAllowedAddresses,
+}));
+// The meter only imports the floor constant; mocking pins it and keeps the
+// heavy web3 module out of this unit test.
+vi.mock('../api/_lib/x402/self-facilitator.js', () => ({
+ SPONSOR_SOL_FLOOR_LAMPORTS: 20_000_000,
+}));
+
+const {
+ facilitatorFeeMeter,
+ recordSettledFee,
+ resetWalletFeeMeterCaches,
+} = await import('../api/_lib/x402/wallet-fee-meter.js');
+
+const GOV = 'GovWa11etAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA';
+const GOV2 = 'GovWa11etBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB';
+const ORGANIC = 'OrganicBuyer111111111111111111111111111111111';
+
+// Injected config: facilitatorFeeMeter takes it verbatim, so tests control the
+// cache window and budget shape without touching process.env.
+const CFG = { enabled: true, runwayDays: 1, minBudgetLamports: 0, spentCacheMs: 20_000 };
+
+// With the mocked 0.02 SOL floor and runwayDays 1, this balance yields exactly
+// a 1_000_000-lamport daily budget: (21_000_000 - 20_000_000) / 1.
+const SOL_FOR_1M_BUDGET = 21_000_000;
+
+const T0 = new Date('2026-07-28T12:00:00.000Z').getTime();
+
+function meter(config = CFG) {
+ return facilitatorFeeMeter({ config });
+}
+
+function call(fn, { feeWalletB58 = GOV, solLamports = SOL_FOR_1M_BUDGET, estFeeLamports = 5_000 } = {}) {
+ return fn({ feeWalletB58, solLamports, estFeeLamports });
+}
+
+beforeEach(() => {
+ vi.useFakeTimers();
+ vi.setSystemTime(T0);
+ resetWalletFeeMeterCaches();
+ h.sql.mockReset().mockResolvedValue([{ spent: '0' }]);
+ h.sendOpsAlert.mockReset().mockResolvedValue(undefined);
+ h.ringAllowedAddresses.mockReset().mockResolvedValue(new Set([GOV, GOV2]));
+});
+
+afterEach(() => {
+ vi.useRealTimers();
+});
+
+describe('facilitatorFeeMeter construction', () => {
+ it('returns null when the governor is disabled so the settle path skips metering', () => {
+ expect(facilitatorFeeMeter({ config: { ...CFG, enabled: false } })).toBeNull();
+ });
+
+ it('returns a hook function when enabled', () => {
+ expect(typeof meter()).toBe('function');
+ });
+});
+
+describe('spent-today summation from the facilitator log', () => {
+ it('queries the settle ledger scoped to the fee payer and today, and sums into the verdict', async () => {
+ h.sql.mockResolvedValue([{ spent: '600000' }]);
+ const v = await call(meter(), { estFeeLamports: 500_000 });
+ // 600_000 spent + 500_000 next > 1_000_000 budget: the summed ledger value
+ // flowed straight into the refusal reason.
+ expect(v.ok).toBe(false);
+ expect(v.reason).toBe('fee_runway_exhausted:600000+500000>1000000');
+
+ expect(h.sql).toHaveBeenCalledTimes(1);
+ const [strings, ...values] = h.sql.mock.calls[0];
+ const text = strings.join('?');
+ expect(text).toContain('SUM(fee_lamports)');
+ expect(text).toContain('x402_self_facilitator_log');
+ expect(text).toContain("action = 'settle'");
+ expect(text).toContain('ok = true');
+ expect(text).toContain("date_trunc('day', now())");
+ // The only bind parameter is the governed wallet.
+ expect(values).toEqual([GOV]);
+ });
+
+ it('admits while the summed spend plus the next fee fits the budget', async () => {
+ h.sql.mockResolvedValue([{ spent: '400000' }]);
+ const v = await call(meter(), { estFeeLamports: 500_000 });
+ expect(v).toEqual({ ok: true, reason: null });
+ });
+
+ it('empty ledger (no rows) counts as zero spent', async () => {
+ h.sql.mockResolvedValue([]);
+ const v = await call(meter(), { estFeeLamports: 999_999 });
+ expect(v.ok).toBe(true);
+ });
+
+ it('a row missing the spent column counts as zero spent', async () => {
+ h.sql.mockResolvedValue([{}]);
+ const v = await call(meter(), { estFeeLamports: 999_999 });
+ expect(v.ok).toBe(true);
+ });
+
+ it('a non-numeric spent value fails OPEN (NaN spend admits; the SOL floor protects)', async () => {
+ h.sql.mockResolvedValue([{ spent: 'not-a-number' }]);
+ // Even a fee far over the budget is admitted on unknown spend.
+ const v = await call(meter(), { estFeeLamports: 50_000_000 });
+ expect(v).toEqual({ ok: true, reason: null });
+ });
+
+ it('a ledger read failure fails OPEN', async () => {
+ h.sql.mockRejectedValue(new Error('relation does not exist'));
+ const v = await call(meter(), { estFeeLamports: 50_000_000 });
+ expect(v).toEqual({ ok: true, reason: null });
+ });
+
+ it('a failed read is not cached: the next call re-queries the ledger', async () => {
+ h.sql.mockRejectedValueOnce(new Error('db blip'));
+ await call(meter(), {});
+ h.sql.mockResolvedValue([{ spent: '999000000' }]);
+ const v = await call(meter(), { estFeeLamports: 500_000 });
+ expect(h.sql).toHaveBeenCalledTimes(2);
+ expect(v.ok).toBe(false);
+ });
+});
+
+describe('the spentCacheMs cache window', () => {
+ it('repeated calls inside the window serve the cached sum without re-querying', async () => {
+ const fn = meter();
+ await call(fn, {});
+ expect(h.sql).toHaveBeenCalledTimes(1);
+
+ vi.setSystemTime(T0 + 19_999);
+ await call(fn, {});
+ await call(fn, {});
+ expect(h.sql).toHaveBeenCalledTimes(1);
+ });
+
+ it('after the window expires the ledger is re-summed', async () => {
+ const fn = meter();
+ await call(fn, {});
+ expect(h.sql).toHaveBeenCalledTimes(1);
+
+ // Exactly cacheMs later: now - at < cacheMs is false, so it re-queries.
+ vi.setSystemTime(T0 + 20_000);
+ await call(fn, {});
+ expect(h.sql).toHaveBeenCalledTimes(2);
+ });
+
+ it('bounds the multi-instance undercount to one cache window, as documented', async () => {
+ // Another instance's settles land in the ledger mid-window. This instance
+ // keeps admitting on its cached (stale, lower) sum until the window rolls,
+ // then sees the real spend and refuses. That is the documented bound:
+ // at most one cache window of settles per instance can undercount.
+ const fn = meter();
+ h.sql.mockResolvedValueOnce([{ spent: '0' }]);
+ await call(fn, {});
+
+ h.sql.mockResolvedValue([{ spent: '999000000' }]);
+ vi.setSystemTime(T0 + 10_000);
+ const stale = await call(fn, { estFeeLamports: 500_000 });
+ expect(stale.ok).toBe(true); // undercounting inside the window
+ expect(h.sql).toHaveBeenCalledTimes(1);
+
+ vi.setSystemTime(T0 + 20_001);
+ const fresh = await call(fn, { estFeeLamports: 500_000 });
+ expect(fresh.ok).toBe(false); // window rolled, real spend visible
+ });
+
+ it('a UTC-day rollover invalidates the cache even inside the window', async () => {
+ const nearMidnight = new Date('2026-07-28T23:59:55.000Z').getTime();
+ vi.setSystemTime(nearMidnight);
+ const fn = meter();
+ h.sql.mockResolvedValueOnce([{ spent: '900000' }]);
+ await call(fn, {});
+ expect(h.sql).toHaveBeenCalledTimes(1);
+
+ // 10s later (well inside the 20s window) but a new UTC day: yesterday's
+ // spend must not throttle today, so the meter re-queries.
+ vi.setSystemTime(nearMidnight + 10_000);
+ h.sql.mockResolvedValue([{ spent: '0' }]);
+ const v = await call(fn, { estFeeLamports: 500_000 });
+ expect(h.sql).toHaveBeenCalledTimes(2);
+ expect(v.ok).toBe(true);
+ });
+
+ it('caches per wallet: reading one governed wallet does not warm the other', async () => {
+ const fn = meter();
+ await call(fn, { feeWalletB58: GOV });
+ await call(fn, { feeWalletB58: GOV2 });
+ expect(h.sql).toHaveBeenCalledTimes(2);
+ expect(h.sql.mock.calls[0][1]).toBe(GOV);
+ expect(h.sql.mock.calls[1][1]).toBe(GOV2);
+ });
+});
+
+describe('controlled-wallet scoping', () => {
+ it('an unknown (organic) wallet is always admitted without touching the ledger', async () => {
+ const v = await call(meter(), { feeWalletB58: ORGANIC, estFeeLamports: 50_000_000 });
+ expect(v).toEqual({ ok: true, reason: null });
+ expect(h.sql).not.toHaveBeenCalled();
+ });
+
+ it('only the governed wallet is metered against its own budget', async () => {
+ const fn = meter();
+ h.sql.mockResolvedValue([{ spent: '999000000' }]);
+ // Governed and over budget: refused.
+ const gov = await call(fn, { feeWalletB58: GOV, estFeeLamports: 500_000 });
+ expect(gov.ok).toBe(false);
+ // Organic wallet with the same shape: admitted, and no ledger query was
+ // issued for it (the one call above was GOV's).
+ const organic = await call(fn, { feeWalletB58: ORGANIC, estFeeLamports: 500_000 });
+ expect(organic.ok).toBe(true);
+ expect(h.sql).toHaveBeenCalledTimes(1);
+ expect(h.sql.mock.calls[0][1]).toBe(GOV);
+ });
+
+ it('an unreachable allowlist with no prior set governs nothing (fail open)', async () => {
+ h.ringAllowedAddresses.mockRejectedValue(new Error('db down'));
+ const v = await call(meter(), { estFeeLamports: 50_000_000 });
+ expect(v).toEqual({ ok: true, reason: null });
+ expect(h.sql).not.toHaveBeenCalled();
+ });
+
+ it('an allowlist blip after a prior load keeps governing with the previous set', async () => {
+ const fn = meter();
+ await call(fn, {});
+ expect(h.ringAllowedAddresses).toHaveBeenCalledTimes(1);
+
+ // Past the 60s allowlist TTL the refresh fails; the stale set must stay in
+ // force so a DB blip does not un-govern a hot wallet mid-storm.
+ vi.setSystemTime(T0 + 61_000);
+ h.ringAllowedAddresses.mockRejectedValue(new Error('db blip'));
+ h.sql.mockResolvedValue([{ spent: '999000000' }]);
+ const v = await call(fn, { estFeeLamports: 500_000 });
+ expect(v.ok).toBe(false);
+ });
+
+ it('the allowlist itself is cached across calls inside its TTL', async () => {
+ const fn = meter();
+ await call(fn, {});
+ vi.setSystemTime(T0 + 30_000); // past the spent cache, inside the 60s allowlist TTL
+ await call(fn, {});
+ expect(h.ringAllowedAddresses).toHaveBeenCalledTimes(1);
+ expect(h.sql).toHaveBeenCalledTimes(2);
+ });
+});
+
+describe('recordSettledFee post-settle accounting', () => {
+ it('debits the cached spend so a burst inside one window counts, without a DB round-trip', async () => {
+ const fn = meter();
+ h.sql.mockResolvedValue([{ spent: '300000' }]);
+ await call(fn, {}); // warm the cache at 300_000
+ expect(h.sql).toHaveBeenCalledTimes(1);
+
+ recordSettledFee(GOV, 200_000);
+
+ // Inside the window: cached 300_000 + recorded 200_000 = 500_000, and
+ // 500_000 + 600_000 > 1_000_000 refuses. Still exactly one DB query.
+ const v = await call(fn, { estFeeLamports: 600_000 });
+ expect(v.ok).toBe(false);
+ expect(v.reason).toBe('fee_runway_exhausted:500000+600000>1000000');
+ expect(h.sql).toHaveBeenCalledTimes(1);
+ });
+
+ it('accumulates repeated settles', async () => {
+ const fn = meter();
+ await call(fn, {}); // cache at 0
+ recordSettledFee(GOV, 400_000);
+ recordSettledFee(GOV, 400_000);
+ const v = await call(fn, { estFeeLamports: 300_000 });
+ expect(v.reason).toBe('fee_runway_exhausted:800000+300000>1000000');
+ });
+
+ it('debits only the named wallet', async () => {
+ const fn = meter();
+ await call(fn, { feeWalletB58: GOV });
+ await call(fn, { feeWalletB58: GOV2 });
+ recordSettledFee(GOV, 900_000);
+
+ const other = await call(fn, { feeWalletB58: GOV2, estFeeLamports: 500_000 });
+ expect(other.ok).toBe(true); // GOV2 still at its own cached 0
+ const gov = await call(fn, { feeWalletB58: GOV, estFeeLamports: 500_000 });
+ expect(gov.ok).toBe(false);
+ });
+
+ it('coerces a numeric-string amount (ledger bigints arrive as strings)', async () => {
+ const fn = meter();
+ await call(fn, {});
+ recordSettledFee(GOV, '700000');
+ const v = await call(fn, { estFeeLamports: 500_000 });
+ expect(v.reason).toBe('fee_runway_exhausted:700000+500000>1000000');
+ });
+
+ it('ignores invalid input: missing wallet, zero, negative, and NaN amounts', async () => {
+ const fn = meter();
+ await call(fn, {}); // cache at 0
+ recordSettledFee('', 500_000);
+ recordSettledFee(GOV, 0);
+ recordSettledFee(GOV, -500_000);
+ recordSettledFee(GOV, Number.NaN);
+ recordSettledFee(GOV, 'garbage');
+ const v = await call(fn, { estFeeLamports: 900_000 });
+ expect(v.ok).toBe(true); // still 0 + 900_000 <= 1_000_000
+ });
+
+ it('is a no-op with no warm cache entry (the next DB sum includes the row anyway)', async () => {
+ recordSettledFee(GOV, 900_000);
+ h.sql.mockResolvedValue([{ spent: '0' }]);
+ const v = await call(meter(), { estFeeLamports: 500_000 });
+ // The pre-read record was dropped by design: the very next read re-sums
+ // the ledger, where the settle's own log row already counts it.
+ expect(h.sql).toHaveBeenCalledTimes(1);
+ expect(v.ok).toBe(true);
+ });
+
+ it('does not debit a stale (previous-day) cache entry', async () => {
+ const nearMidnight = new Date('2026-07-28T23:59:59.000Z').getTime();
+ vi.setSystemTime(nearMidnight);
+ const fn = meter();
+ h.sql.mockResolvedValueOnce([{ spent: '900000' }]);
+ await call(fn, {}); // warm on day 1
+
+ vi.setSystemTime(nearMidnight + 2_000); // day 2
+ recordSettledFee(GOV, 900_000); // must not mutate day 1's entry
+ h.sql.mockResolvedValue([{ spent: '0' }]);
+ const v = await call(fn, { estFeeLamports: 500_000 });
+ expect(v.ok).toBe(true); // fresh day-2 read, un-poisoned by the stale debit
+ });
+});
+
+describe('refusal alerting', () => {
+ it('sends one throttle alert per refusal, deduped by wallet signature', async () => {
+ h.sql.mockResolvedValue([{ spent: '999000000' }]);
+ const v = await call(meter(), { estFeeLamports: 500_000 });
+ expect(v.ok).toBe(false);
+ expect(h.sendOpsAlert).toHaveBeenCalledTimes(1);
+ const [title, detail, opts] = h.sendOpsAlert.mock.calls[0];
+ expect(title).toContain('throttling settles');
+ expect(detail).toContain(GOV);
+ expect(detail).toContain('999000000');
+ expect(opts).toMatchObject({ signature: `wallet-fee-governor:${GOV}`, severity: 'warn' });
+ });
+
+ it('does not alert on admission', async () => {
+ const v = await call(meter(), {});
+ expect(v.ok).toBe(true);
+ expect(h.sendOpsAlert).not.toHaveBeenCalled();
+ });
+
+ it('an alert failure does not break the refusal verdict', async () => {
+ h.sql.mockResolvedValue([{ spent: '999000000' }]);
+ h.sendOpsAlert.mockRejectedValue(new Error('telegram down'));
+ const v = await call(meter(), { estFeeLamports: 500_000 });
+ expect(v.ok).toBe(false);
+ });
+});
+
+describe('known accounting gap: recordSettledFee only fires on success', () => {
+ // api/x402-facilitator/[action].js line "if (result.success) recordSettledFee
+ // (result.feePayer, result.feeLamports)" only debits the in-process cache for
+ // SUCCESSFUL settles. A settle that broadcasts but comes back non-success
+ // (e.g. not_confirmed after the tx landed with an on-chain error) can still
+ // burn real fee lamports that never debit the cached daily budget.
+ //
+ // This is pinned, not fixed, deliberately:
+ // 1. settleRingPayment's failure results carry NO feePayer and NO feeLamports
+ // (broadcast_failed returns { success, reason }; not_confirmed adds only
+ // the signature), so a one-line change in [action].js has nothing to
+ // record. A real fix must thread fee data through the failure shapes in
+ // self-facilitator.js.
+ // 2. Which failure classes actually burn fees is a judgment call:
+ // broadcast_failed with skipPreflight:false is mostly a preflight
+ // rejection that burns nothing; not_confirmed with a landed on-chain
+ // error DID burn the fee; confirm_timeout is unknowable at refusal time.
+ // Recording estFeeLamports for all of them would over-throttle the
+ // dominant (harmless) failure class.
+ // 3. The undercount is bounded the same way the multi-instance one is: the
+ // ledger sum is the source of truth after each cache window, and failed
+ // settles are logged with ok=false, which the SUM query excludes, so the
+ // gap persists at most until the wallet's next successful window rollover
+ // plus however many failed-but-burned settles occur. The hard SOL floor
+ // in the settle path remains the real protection.
+
+ it('the handler source pins the success-only guard', () => {
+ const here = path.dirname(fileURLToPath(import.meta.url));
+ const src = readFileSync(
+ path.join(here, '..', 'api', 'x402-facilitator', '[action].js'),
+ 'utf8',
+ );
+ expect(src).toMatch(/if \(result\.success\) recordSettledFee\(result\.feePayer, result\.feeLamports\);/);
+ });
+
+ it('a failed settle that burned fees leaves the cached budget undebited (CURRENT behavior)', async () => {
+ const fn = meter();
+ await call(fn, {}); // cache warmed at 0 spent
+
+ // Reproduce the handler's exact post-settle contract for a settle that
+ // broadcast, landed with an on-chain error (fee burned), and reported
+ // non-success. Note the failure shape has no fee fields at all.
+ const result = {
+ success: false,
+ reason: 'not_confirmed:{"InstructionError":[1,"Custom"]}',
+ transaction: 'SigThatLandedWithAnError1111111111111111111',
+ };
+ if (result.success) recordSettledFee(result.feePayer, result.feeLamports);
+
+ // The ~900_000 lamports actually burned by that failed settle are
+ // invisible to the meter: a follow-up settle for the full remaining
+ // budget is still admitted inside the cache window.
+ const v = await call(fn, { estFeeLamports: 1_000_000 });
+ expect(v.ok).toBe(true);
+
+ // And because the ledger row for the failure is logged ok=false, the SUM
+ // query excludes it even after the cache window rolls: the burn never
+ // enters the daily budget from either path.
+ vi.setSystemTime(T0 + 25_000);
+ h.sql.mockResolvedValue([{ spent: '0' }]); // ok=true rows only, per the query
+ const later = await call(fn, { estFeeLamports: 1_000_000 });
+ expect(later.ok).toBe(true);
+ });
+});
diff --git a/workers/agent-sniper/index.js b/workers/agent-sniper/index.js
index 6eb1b919a..b4f9ea9e3 100644
--- a/workers/agent-sniper/index.js
+++ b/workers/agent-sniper/index.js
@@ -276,6 +276,9 @@ async function main() {
const gate = llmVerdictGate(verdict, strat);
if (!gate.pass) {
log.info('llm judge pass', { agent: strat.agent_id, mint: rec.mint, model: verdict.model, buy: verdict.buy, confidence: verdict.confidence, gate: gate.reason });
+ if (gate.reason === 'fallback_model') {
+ alertStrictModelOffline({ model: strat.llm_model, answeredBy: verdict.answeredBy, agentId: strat.agent_id });
+ }
return;
}
log.info('llm judge buy', { agent: strat.agent_id, mint: rec.mint, model: verdict.model, confidence: verdict.confidence, thesis: verdict.thesis });