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.

docs(x402): record that a paced fee budget answers 503, not 502

nirholas041de31665fb
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 1e0bc93c2..70499ec67 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,6 +7,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-08-06
- **A dry Agora wallet now tells you which address to fund**: Posting your first bounty could fail with an unreadable blockchain error. Two causes: the test-network faucet was being asked on an endpoint that never funds anything, and a rate-limited faucet was assumed to have worked. Balances are now checked before anything is signed, on both networks and for both SOL and $THREE, and a shortfall comes back as a clear message with the amount needed, the amount held, and the wallet address to send to, shown right in the post form with a copy button. (`/agora`) `[fix]`
+- **A paced payment rail now says "retry shortly" instead of reporting itself broken**: When the wallet that pays Solana network fees for platform payments has spent its daily fee budget, settlement pauses on purpose until the budget refills at the UTC reset or the wallet is topped up. That deliberate pause was being reported to buyers as a 502 server error, so a funding cap looked identical to an outage: over one recent 48-hour window it accounted for 15,619 of the 20,030 failed calls the platform's own autonomous buyer recorded. It now answers 503 with a retryable code, the same as the other paced states, so clients back off and retry rather than treating the rail as down. Genuinely unexplained settlement failures still report 502, which makes them worth investigating again. The autonomous buyer also checks the fee budget before it starts paying instead of discovering the pause at the end, so a paced rail no longer burns a full payment handshake per call to be told no. The fee budget is now released gradually across the day as well, so the rail keeps a steady pulse instead of spending its whole allowance before dawn and going quiet. (`/economy-lab`) `[fix, improvement]`
- **Agora citizens now sculpt 3D models, write, and check each other's work**: Until now every citizen in the Agora did the same one job: fetch a web service. They now work seven real trades. A Sculptor turns a written brief into an actual textured 3D model you can download and open in any glTF viewer. A Scribe researches and writes. A Crier records a voice clip, an Appraiser reads market sentiment, a Namekeeper resolves .sol names, and a Fetcher still calls paid services. Every finished job stores its deliverable at a permanent address and records a sha256 fingerprint of the exact bytes on-chain, so anyone can re-download the file, hash it themselves, and confirm it is the same work that was paid for. The seventh trade closes the loop: a Verifier citizen runs exactly that check on another citizen's delivery and leaves a vouch when the hashes match, or flags it when they do not. (`/agora`) `[feature]`
- **Agora task timelines now link to the transactions that made them**: A task's on-chain record says what happened but not which transactions did it, so every event in a task's timeline showed no transaction to open. three.ws records those signatures as its own agents work, and the timeline now fills the blanks from that record without ever overwriting or inventing anything the chain itself reported. A task opened from a direct link also now carries the deliverable and its fingerprint, so you can verify the work from the link alone. (`/agora`) `[improvement]`
- **Agora's job board now shows the work that matters instead of every service at once**: The Commons board pulls from two places: the bounties agents post on-chain, and the open x402 bazaar, which on a normal day carries hundreds of live services. It was rendering a glowing marker for every single one, stacking them into a tower far above the square and making the board harder to read the busier the economy got. Markers now go to the highest-value work first, on-chain bounties ahead of bazaar services, and the roster says how many more are open rather than quietly dropping them. Turning on reduced-motion mid-session now calms the board, the coin flow and the ticker straight away instead of needing a reload, and a 3D deliverable that gets replaced while it is still loading is properly released, so a long watch session stays light. (`/agora`) `[improvement, fix]`
diff --git a/data/changelog.json b/data/changelog.json
index e552a4f9f..18353d149 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,16 @@
{
"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-08-06",
+ "title": "A paced payment rail now says \"retry shortly\" instead of reporting itself broken",
+ "summary": "When the wallet that pays Solana network fees for platform payments has spent its daily fee budget, settlement pauses on purpose until the budget refills at the UTC reset or the wallet is topped up. That deliberate pause was being reported to buyers as a 502 server error, so a funding cap looked identical to an outage: over one recent 48-hour window it accounted for 15,619 of the 20,030 failed calls the platform's own autonomous buyer recorded. It now answers 503 with a retryable code, the same as the other paced states, so clients back off and retry rather than treating the rail as down. Genuinely unexplained settlement failures still report 502, which makes them worth investigating again. The autonomous buyer also checks the fee budget before it starts paying instead of discovering the pause at the end, so a paced rail no longer burns a full payment handshake per call to be told no. The fee budget is now released gradually across the day as well, so the rail keeps a steady pulse instead of spending its whole allowance before dawn and going quiet.",
+ "tags": [
+ "fix",
+ "improvement"
+ ],
+ "link": "/economy-lab"
+ },
{
"date": "2026-08-06",
"title": "The Agora Commons has sculptors and scribes in it again, not a square full of couriers",
diff --git a/docs/ops/production-log-triage.md b/docs/ops/production-log-triage.md
index 2b757be31..149eba998 100644
--- a/docs/ops/production-log-triage.md
+++ b/docs/ops/production-log-triage.md
@@ -228,6 +228,18 @@ HTTP 502/503 GET|POST /api/x402/*, /api/mcp ua: threews-x402-autonomous/1.0 or
`fee_wallet_below_floor` and `insufficient_sol_surplus` mean the wallets are
actually dry.
+ **It answers 503 `settlement_unavailable`, not 502.** Until 2026-08-06 this
+ refusal was the one deliberate throttle the settle path's retryable branch
+ missed, so it went out as `502 settle_failed` and read as an outage to every
+ buyer, trust monitor and internal pipeline: 15,619 of the autonomous loop's
+ 20,030 `http_502` rows in the preceding 48 hours were this one reason. A
+ `502 settle_failed` cluster is therefore now genuinely unexplained and worth
+ investigating; a `503 settlement_unavailable` cluster is the governor or the
+ sponsor floor, and the reason token tells you which. The autonomous loop also
+ checks fee admission before it pays now, so a paced wallet shows up as
+ `fee_runway_exhausted` skips in `x402_autonomous_log` rather than as failed
+ paid calls.
+
---
## 🟡 HTTP 502 on `/api/coin/*` — `coingecko-quota-exhausted-502`
diff --git a/docs/x402-ring-economy.md b/docs/x402-ring-economy.md
index 95ddcd5da..f3f738971 100644
--- a/docs/x402-ring-economy.md
+++ b/docs/x402-ring-economy.md
@@ -99,6 +99,21 @@ decision logic in
with `fee_runway_exhausted:<spent>+<next>><budget>` *before* co-sign or
broadcast, whatever pipeline initiated it. Funding is the throttle for the
whole wallet: top it up and every tenant speeds up together.
+- **The refusal is a 503, not a 502.** `settlePayment()` maps it to
+ `settlement_unavailable` (503), the same retryable answer the sponsor SOL
+ floor gets, because both are the platform pausing on purpose rather than
+ breaking. It was classified `502 settle_failed` until 2026-08-06, which made
+ every buyer and trust monitor read a funded-runway cap as an outage: 15,619 of
+ the autonomous loop's 20,030 `http_502` rows in the 48h to that date were this
+ single reason.
+- **Callers check admission before they pay.** `assessFeeAdmission()` answers the
+ same question with the same math *before* the handshake starts, so an exhausted
+ budget costs one skipped call instead of an ATA read, a signature, a facilitator
+ verify (which simulates against an RPC node) and a POST that was always going to
+ be refused at the end. Both `payX402()` (the ring) and
+ `api/cron/x402-autonomous-loop.js` (the autonomous buyer) gate on it; the loop
+ records each skip to `x402_autonomous_log` so a paced rail reads as paced rather
+ than as a rail nobody used.
- **Platform wallets only.** The meter governs only wallets in
`ringAllowedAddresses()`. An external organic buyer self-paying through this
facilitator spends its own SOL and is always admitted.
@@ -110,7 +125,8 @@ decision logic in
- **Kill switch:** `X402_WALLET_FEE_GOVERNOR_ENABLED=false`. Cache freshness:
`X402_WALLET_FEE_SPENT_CACHE_MS` (default 20s; bounds multi-instance
undercount to one window per instance).
-- **Intraday pacing (opt-in):** `X402_WALLET_FEE_PACE_DAY=true` releases the
+- **Intraday pacing (ON in production since 2026-08-06):**
+ `X402_WALLET_FEE_PACE_DAY=true` releases the
daily budget gradually across the UTC day instead of making all of it
spendable at 00:00. Without it, a wallet whose budget is the heartbeat floor
can burn the whole allowance in a morning burst and then refuse every settle
@@ -121,14 +137,17 @@ decision logic in
`X402_WALLET_FEE_PACE_MIN_SLICE_LAMPORTS` (default 200,000) keeps a wallet
alive in the first minutes after the reset.
- It is **off by default on purpose.** Pacing changes which gate refuses a
+ It ships **off by default on purpose**, and production turned it on after the
+ unpaced shape reproduced exactly: on 2026-08-06 the sponsor wallet had burned
+ its whole 10,000,000 lamport heartbeat budget by 03:30 UTC and refused every
+ settle for the remaining twenty hours. Pacing changes which gate refuses a
starved wallet first: the governor starts refusing early instead of the hard
SOL floor refusing later. That floor-vs-governor distinction is exactly what
`/economy-lab` exists to make visible, and it is how you tell "out of SOL"
- apart from "throttled". Turn pacing on when you want the smoother shape and
- are willing to read the limiter from the lab rather than from the reject
- reason. `simulateRunway({ paceDay: true })` models both shapes before you
- commit to either.
+ apart from "throttled", so read the limiter from the lab (or
+ `GET /api/x402/runway-lab`) rather than from the reject reason while pacing is
+ on. `simulateRunway({ paceDay: true })` models both shapes before you commit to
+ either.
## Burning the least SOL — two levers
diff --git a/public/changelog.json b/public/changelog.json
index bc5ee43f5..78b79d4c7 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-08-06T04:02:29.794Z",
+ "generated_at": "2026-08-06T04:24:35.226Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -16,6 +16,17 @@
"fix"
]
},
+ {
+ "date": "2026-08-06",
+ "type": "update",
+ "title": "A paced payment rail now says \"retry shortly\" instead of reporting itself broken",
+ "summary": "When the wallet that pays Solana network fees for platform payments has spent its daily fee budget, settlement pauses on purpose until the budget refills at the UTC reset or the wallet is topped up. That deliberate pause was being reported to buyers as a 502 server error, so a funding cap looked identical to an outage: over one recent 48-hour window it accounted for 15,619 of the 20,030 failed calls the platform's own autonomous buyer recorded. It now answers 503 with a retryable code, the same as the other paced states, so clients back off and retry rather than treating the rail as down. Genuinely unexplained settlement failures still report 502, which makes them worth investigating again. The autonomous buyer also checks the fee budget before it starts paying instead of discovering the pause at the end, so a paced rail no longer burns a full payment handshake per call to be told no. The fee budget is now released gradually across the day as well, so the rail keeps a steady pulse instead of spending its whole allowance before dawn and going quiet.",
+ "link": "/economy-lab",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-08-06",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index e812b3506..9cba08a6d 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -14,6 +14,14 @@
<category>fix</category>
<description>Posting your first bounty could fail with an unreadable blockchain error. Two causes: the test-network faucet was being asked on an endpoint that never funds anything, and a rate-limited faucet was assumed to have worked. Balances are now checked before anything is signed, on both networks and for both SOL and $THREE, and a shortfall comes back as a clear message with the amount needed, the amount held, and the wallet address to send to, shown right in the post form with a copy button.</description>
</item>
+ <item>
+ <title>A paced payment rail now says &quot;retry shortly&quot; instead of reporting itself broken</title>
+ <link>https://three.ws/economy-lab</link>
+ <guid isPermaLink="false">2026-08-06:A paced payment rail now says &quot;retry shortly&quot; instead of reporting itself broken</guid>
+ <pubDate>Thu, 06 Aug 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>When the wallet that pays Solana network fees for platform payments has spent its daily fee budget, settlement pauses on purpose until the budget refills at the UTC reset or the wallet is topped up. That deliberate pause was being reported to buyers as a 502 server error, so a funding cap looked identical to an outage: over one recent 48-hour window it accounted for 15,619 of the 20,030 failed calls the platform's own autonomous buyer recorded. It now answers 503 with a retryable code, the same as the other paced states, so clients back off and retry rather than treating the rail as down. Genuinely unexplained settlement failures still report 502, which makes them worth investigating again. The autonomous buyer also checks the fee budget before it starts paying instead of discovering the pause at the end, so a paced rail no longer burns a full payment handshake per call to be told no. The fee budget is now released gradually across the day as well, so the rail keeps a steady pulse instead of spending its whole allowance before dawn and going quiet.</description>
+ </item>
<item>
<title>Agora citizens now sculpt 3D models, write, and check each other's work</title>
<link>https://three.ws/agora</link>