Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
style(intel): drop the banned dashes from the four api/intel handlers and close the audit
nirholasdcfcf0f6fd6f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7ac8ac685..569a33310 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -21,6 +21,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The Money-Cam stops going dark when its feed stumbles, and stops replaying old transfers as new light**: The Agent Galaxy renders real money moving between agent wallets: every pulse of light is one on-chain transfer you can open in an explorer. The map loads a window of recent flows, then asks every few seconds for only the ones newer than the last it saw. If the feed query failed or ran long, the map was supposed to fall back to the last good window it had built, so it kept its picture instead of blanking. It never could: the saved copy and the small update polls shared one slot, so each poll (which by design carries almost nothing) overwrote the saved window seconds after it was written, leaving nothing to fall back to. Worse, when an update poll itself failed it was answered with that saved window, which is older than what the viewer already had, so the map rewound its place in the stream and could re-animate long-past transfers as if the money were moving right now. The saved window now belongs to the full load alone. A failed update poll returns nothing new and hands the viewer's own position straight back, so it waits for the next poll instead of travelling backwards, and a failed request for older history honestly reports that there is no more to load. Separately, a fractional page size in the address bar (?limit=1.5) made the feed query fail outright and the whole galaxy report itself as quiet while it was busy; page sizes are now rounded before they are used. (`/galaxy`) `[fix]`- **The Rankings remix board now counts only real remixes from other creators**: The Remixes Received board on /rankings was meant to answer one question: how many other people built on top of your work. It was counting more than that. Every time you refined one of your own models the forge recorded the new version as a derivative of the old one, and the board counted it, so re-refining your own model climbed the ranking exactly like someone else remixing you would. Generations that failed partway through were counted too. Both are gone: a row only counts when it is a finished model made by a different creator, and an anonymous remix of your work still counts because that really is someone else. Ranks on that one metric will shift accordingly. Separately, the Daily Match standings endpoint now sends the cross-origin header the rest of our public read-only endpoints send, so anything reading the board from outside three.ws (dashboards, agent tooling, embeds) gets the data instead of a blocked request. (`/rankings`) `[fix, improvement]`- **The Reasoning Ledger stops hiding older history, and private agents stay private**: Every agent's Reasoning Ledger is a public, tamper-evident record of what it decided and why, so the reads behind it have to be honest. Three things were not. Asking for a page larger than the 200-decision maximum quietly returned a trimmed page and then reported that there was nothing after it, so a caller reading the whole history could stop early believing they had seen all of it; page sizes are now checked against the real maximum and the follow-on cursor is always correct. A malformed page cursor (a word where a sequence number belongs) came back as a generic internal error instead of saying what was wrong, and an unbounded search filter could drive a full scan of an agent's history; both now return a clear bad-request reply. And the timeline was publishing the name and picture of agents whose owners had made them private or deleted them: the decision history stays public, but an unlisted agent now appears as its id alone. The independent verification endpoint also shows the on-chain anchor even when verification fails, which is exactly when an auditor needs to see the commitment the altered history no longer matches. (`/ledger`) `[fix, security]`+- **The three.ws launchpad directory answers a bad filter instead of erroring out**: The public directory of coins launched on the three.ws bonding curve accepts an agent filter, so a page can show only the coins one agent launched. A filter value that was not a real agent id went straight to the database, which rejected it and turned the whole request into an unexplained server error. Anything that is not a valid agent id now comes back immediately as a plain validation error naming the problem, so a mistyped link fails clearly instead of looking like the launchpad is down. The endpoint documentation now states the same contract, including the page-size and offset limits, and the behaviour is pinned by tests. (`/launches`) `[fix]`## 2026-08-12diff --git a/api/intel/heatmap.js b/api/intel/heatmap.jsindex 4cce7c0cc..a9a38c9af 100644--- a/api/intel/heatmap.js+++ b/api/intel/heatmap.js@@ -211,7 +211,7 @@ export default wrap(async (req, res) => {}// A field with only $THREE (or empty) means the trending/Dexscreener upstreams- // blipped — serve the last good field as stale rather than collapsing to the+ // blipped, so serve the last good field as stale rather than collapsing to the// anchor alone, so the heatmap keeps breathing through the outage.if (tokens.length <= 1 && _cache.value && now - _cache.storedAt <= STALE_MAX_MS) {return json(res, 200, { ok: true, anchor: THREE_MINT, fetchedAt: new Date(_cache.storedAt).toISOString(), tokens: _cache.value.slice(0, limit), stale: true }, {diff --git a/api/intel/smart-money.js b/api/intel/smart-money.jsindex cb63d7e14..125c82285 100644--- a/api/intel/smart-money.js+++ b/api/intel/smart-money.js@@ -1,5 +1,5 @@/**- * Smart-Money intel — public read API.+ * Smart-Money intel: the public read API.** GET /api/intel/smart-money?mint=<addr>&network=mainnet* → who reputable is net-buying this coin right now, a 0..100@@ -9,12 +9,12 @@* → one wallet's realized reputation card (also served by /api/intel/wallet/:addr)** The edge: judge a coin by WHO is buying it, computed from real observed buys ⋈- * real outcomes (graduated/pumped/rugged + ATH) — not a vanity list. The recompute+ * real outcomes (graduated/pumped/rugged + ATH), not a vanity list. The recompute* job (api/cron/smart-money-graph) maintains the graph; this serves it. Public +* IP rate-limited, briefly cached. Honest zero-data: `computed:false` means the* graph doesn't have enough on-chain history for this coin yet.*- * $THREE is the only coin three.ws promotes — this assesses whatever runtime mint+ * $THREE is the only coin three.ws promotes. This assesses whatever runtime mint* the caller hands it and never names or recommends any token.*/diff --git a/api/intel/wallet/[address].js b/api/intel/wallet/[address].jsindex 4afe49e20..543bb4719 100644--- a/api/intel/wallet/[address].js+++ b/api/intel/wallet/[address].js@@ -1,5 +1,5 @@/**- * Wallet reputation — public read API.+ * Wallet reputation: the public read API.** GET /api/intel/wallet/<address>?network=mainnet* → one wallet's realized track record from the Smart-Money graph:@@ -10,7 +10,7 @@* (api/cron/smart-money-graph). Public + IP rate-limited, briefly cached. Honest* zero-data: `computed:false` means we have no track record for this address yet.*- * Public on-chain address analytics only — never exposes or stores private keys.+ * Public on-chain address analytics only. Never exposes or stores private keys.*/import { cors, json, method, wrap, rateLimited } from '../../_lib/http.js';@@ -22,7 +22,7 @@ function normNetwork(v) {}// A base58 Solana address is 32–44 chars from the base58 alphabet. We don't need a-// full decode here (the lookup degrades to zero-data on a miss anyway) — this just+// full decode here (the lookup degrades to zero-data on a miss anyway). This just// rejects obvious garbage before a DB round-trip.const BASE58 = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;diff --git a/api/intel/yields.js b/api/intel/yields.jsindex c5c6da9b6..d784253fe 100644--- a/api/intel/yields.js+++ b/api/intel/yields.js@@ -2,7 +2,7 @@// ---------------------------------------------------------------------------// DeFi yield pools from DeFiLlama's keyless yields API (yields.llama.fi/pools),// filtered server-side and sorted by TVL desc. Backs the trading copilot and-// future yield-discovery surfaces (consumers land separately — this task+// future yield-discovery surfaces (consumers land separately: this task// ships the data layer + endpoint only). Real upstream data, no fabrication.//// Response: { pools: [{ pool, project, chain, symbol, tvlUsd, apy, apyBase,diff --git a/data/changelog.json b/data/changelog.jsonindex 2118bf6c3..c404a207f 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$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-13",+ "title": "The three.ws launchpad directory answers a bad filter instead of erroring out",+ "summary": "The public directory of coins launched on the three.ws bonding curve accepts an agent filter, so a page can show only the coins one agent launched. A filter value that was not a real agent id went straight to the database, which rejected it and turned the whole request into an unexplained server error. Anything that is not a valid agent id now comes back immediately as a plain validation error naming the problem, so a mistyped link fails clearly instead of looking like the launchpad is down. The endpoint documentation now states the same contract, including the page-size and offset limits, and the behaviour is pinned by tests.",+ "tags": [+ "fix"+ ],+ "link": "/launches"+ },{"date": "2026-08-13","title": "The Reasoning Ledger stops hiding older history, and private agents stay private",diff --git a/docs/native-launchpad.md b/docs/native-launchpad.mdindex fbf17bf9c..2ffc3346c 100644--- a/docs/native-launchpad.md+++ b/docs/native-launchpad.md@@ -123,7 +123,7 @@ All public, no auth:- `GET /api/native-launch/config[?network=]` — the lane's live economics and whether it is deployed. This is what the launch UI renders, so the fee story on the page always comes from the same source as the on-chain config.- `GET /api/native-launch/pool?mint=…[&network=]` — pool address, curve progress (0..1), SOL raised, graduation threshold, migration status.- `GET /api/native-launch/quote?mint=…&sol_in=…[&network=]` — a live buy quote off the curve: tokens out, minimum out, and the fee breakdown.-- `GET /api/native-launch/launches[?network=&agent_id=&limit=&offset=]` — the native launch directory, each row carrying its agent and avatar thumbnail.+- `GET /api/native-launch/launches[?network=&agent_id=&limit=&offset=]`: the native launch directory, each row carrying its agent and avatar thumbnail. `agent_id` must be a uuid: anything else answers `400 validation_error` instead of reaching the database. `limit` is clamped to 1..100 (default 24), `offset` to a non-negative integer.---diff --git a/prompts/swarm-100/api-intel-01.md b/prompts/swarm-100/api-intel-01.mddeleted file mode 100644index 49ad089c1..000000000--- a/prompts/swarm-100/api-intel-01.md+++ /dev/null@@ -1,104 +0,0 @@-# API audit: api/intel batch 01 (4 files)--How to run: paste this file's repo path into a fresh Claude Code chat in this-repository and say "run this work order". This file is fully self-contained:-it depends on no other prompt file anywhere. If neighboring files in-prompts/swarm-100/ are gone, that work is done; if present, ignore them.-Every claim below rots; step 0 re-measures, and what you measure wins.--## Operating clause (binding)--- Read CLAUDE.md first. Its rules override everything, including this file.-- Finish 100% in this session. Never end the turn with a question, an option- list, or an unexecuted plan. A judgment call goes in one line of the final- report; it never becomes a question that halts work.-- The only permitted stops are the CLAUDE.md stop-and-ask gates: spending real- funds or any irreversible on-chain write, git push or a production deploy,- committing content that references a crypto project other than $THREE, and- destroying unrecoverable data.-- No mocks, no fake data, no placeholder stubs, no unfinished-work markers, no- commented-out code. Real APIs and real integrations only.-- The em-dash and en-dash characters are banned in everything you write.-- Concurrent agents share this worktree: stage explicit paths only (never a- bare add-everything), and commit finished work promptly.-- Before committing, run: npm run check:rules -- --paths <files you touched>.- It must exit 0.--## Step 0: re-derive the current state--1. Confirm each file below still exists; deleted ones are done, skip them.-2. For each, decide routability: grep its path in vercel.json and read how- server/index.mjs maps filesystem handlers. Routed files get an endpoint- audit; internal modules get a code and test audit.-3. Start a local server for endpoint checks: node server/index.mjs with .env- loaded, on a free PORT if 3000 is busy.--## Task: audit these api files, then fix everything found--Files in this batch:--- api/intel/heatmap.js-- api/intel/smart-money.js-- api/intel/wallet/[address].js-- api/intel/yields.js--For every routed handler:--1. Exercise it with curl against the local server: the success path returns- real data with the correct status; malformed input returns a 4xx JSON- error, never a stack trace or an HTML error page; auth is enforced where- the code intends it; CORS matches neighboring handlers.-2. Hard-rule scan: no mock fallbacks, no fake-data arrays, no stubbed- responses, no unfinished markers. Errors are handled at the boundary and- internal code trusts itself.-3. Do not spend funds or sign anything on-chain while probing. Payment and- trading handlers get their validation and error paths exercised, never a- live settlement.--For every internal (non-routed) module:--4. Something must import it; if nothing does, delete it as dead code (verify- with a repo-wide grep first).-5. Its main path and one failure path must be covered in tests/; add the- missing test if not.--## Definition of done--- [ ] Every listed file has recorded evidence: a curl transcript for routed- handlers, a passing test or a deletion for internal modules.-- [ ] Zero hard-rule violations remain in these files.-- [ ] vitest run passes; npm run check:rules -- --paths <touched files>- exits 0.--## Never blocked--| Blocker | Resolution (act, do not ask) |-|---|---|-| Missing env var or credential | Check .env and .env.local, then the Cloud Run service env, then Secret Manager (the CLAUDE.md self-unblock playbook has the exact commands). If it truly exists nowhere, wire the code fully behind the env var, prove the wiring with a dry run, and name the single missing var in the report. |-| gcloud not on PATH | Run: export PATH="$HOME/google-cloud-sdk/bin:$PATH" |-| Dev server port 3000 busy | Another agent may be serving this repo; probe it and reuse if so. Otherwise start your own on a free port: npx vite --port 3101 |-| Playwright browser missing | npx playwright install chromium |-| A surface needs a signed-in user | Register a fresh account through the real /register flow against the real API and use it. Never mock the session. |-| A defect sits in code you did not touch | Fix it if it blocks a Definition of done line (root cause it, never mask it). Otherwise note it in the report and continue. |-| An unrelated test is red | Same rule. Never pipe npm test through tail; it masks exit codes. |--## Close out (required)--1. Verify every Definition of done line with the actual command output in- front of you. Never claim a line you did not verify.-2. Commit with explicit paths and a subject that describes the diff (house- style: type(scope): what changed and why a reader cares).-3. Delete this prompt file in that same commit:-- git rm prompts/swarm-100/api-intel-01.md-- The shrinking directory is this campaign's only progress ledger; there is- no progress log to update.-4. Final report: what step 0 measured, what changed (file list), evidence per- Definition of done line, and any one-line judgment calls. No trailing- questions, no unexecuted plans.--If a line genuinely cannot pass inside this session (an external party must-respond, or an owner-gated action is the final step), finish everything else,-leave this file in place, and state exactly which line remains and who owns-it. Never delete this file on a partial.diff --git a/prompts/swarm-100/api-native-launch-01.md b/prompts/swarm-100/api-native-launch-01.mddeleted file mode 100644index 579023c8c..000000000--- a/prompts/swarm-100/api-native-launch-01.md+++ /dev/null@@ -1,101 +0,0 @@-# API audit: api/native-launch batch 01 (1 files)--How to run: paste this file's repo path into a fresh Claude Code chat in this-repository and say "run this work order". This file is fully self-contained:-it depends on no other prompt file anywhere. If neighboring files in-prompts/swarm-100/ are gone, that work is done; if present, ignore them.-Every claim below rots; step 0 re-measures, and what you measure wins.--## Operating clause (binding)--- Read CLAUDE.md first. Its rules override everything, including this file.-- Finish 100% in this session. Never end the turn with a question, an option- list, or an unexecuted plan. A judgment call goes in one line of the final- report; it never becomes a question that halts work.-- The only permitted stops are the CLAUDE.md stop-and-ask gates: spending real- funds or any irreversible on-chain write, git push or a production deploy,- committing content that references a crypto project other than $THREE, and- destroying unrecoverable data.-- No mocks, no fake data, no placeholder stubs, no unfinished-work markers, no- commented-out code. Real APIs and real integrations only.-- The em-dash and en-dash characters are banned in everything you write.-- Concurrent agents share this worktree: stage explicit paths only (never a- bare add-everything), and commit finished work promptly.-- Before committing, run: npm run check:rules -- --paths <files you touched>.- It must exit 0.--## Step 0: re-derive the current state--1. Confirm each file below still exists; deleted ones are done, skip them.-2. For each, decide routability: grep its path in vercel.json and read how- server/index.mjs maps filesystem handlers. Routed files get an endpoint- audit; internal modules get a code and test audit.-3. Start a local server for endpoint checks: node server/index.mjs with .env- loaded, on a free PORT if 3000 is busy.--## Task: audit these api files, then fix everything found--Files in this batch:--- api/native-launch/[action].js--For every routed handler:--1. Exercise it with curl against the local server: the success path returns- real data with the correct status; malformed input returns a 4xx JSON- error, never a stack trace or an HTML error page; auth is enforced where- the code intends it; CORS matches neighboring handlers.-2. Hard-rule scan: no mock fallbacks, no fake-data arrays, no stubbed- responses, no unfinished markers. Errors are handled at the boundary and- internal code trusts itself.-3. Do not spend funds or sign anything on-chain while probing. Payment and- trading handlers get their validation and error paths exercised, never a- live settlement.--For every internal (non-routed) module:--4. Something must import it; if nothing does, delete it as dead code (verify- with a repo-wide grep first).-5. Its main path and one failure path must be covered in tests/; add the- missing test if not.--## Definition of done--- [ ] Every listed file has recorded evidence: a curl transcript for routed- handlers, a passing test or a deletion for internal modules.-- [ ] Zero hard-rule violations remain in these files.-- [ ] vitest run passes; npm run check:rules -- --paths <touched files>- exits 0.--## Never blocked--| Blocker | Resolution (act, do not ask) |-|---|---|-| Missing env var or credential | Check .env and .env.local, then the Cloud Run service env, then Secret Manager (the CLAUDE.md self-unblock playbook has the exact commands). If it truly exists nowhere, wire the code fully behind the env var, prove the wiring with a dry run, and name the single missing var in the report. |-| gcloud not on PATH | Run: export PATH="$HOME/google-cloud-sdk/bin:$PATH" |-| Dev server port 3000 busy | Another agent may be serving this repo; probe it and reuse if so. Otherwise start your own on a free port: npx vite --port 3101 |-| Playwright browser missing | npx playwright install chromium |-| A surface needs a signed-in user | Register a fresh account through the real /register flow against the real API and use it. Never mock the session. |-| A defect sits in code you did not touch | Fix it if it blocks a Definition of done line (root cause it, never mask it). Otherwise note it in the report and continue. |-| An unrelated test is red | Same rule. Never pipe npm test through tail; it masks exit codes. |--## Close out (required)--1. Verify every Definition of done line with the actual command output in- front of you. Never claim a line you did not verify.-2. Commit with explicit paths and a subject that describes the diff (house- style: type(scope): what changed and why a reader cares).-3. Delete this prompt file in that same commit:-- git rm prompts/swarm-100/api-native-launch-01.md-- The shrinking directory is this campaign's only progress ledger; there is- no progress log to update.-4. Final report: what step 0 measured, what changed (file list), evidence per- Definition of done line, and any one-line judgment calls. No trailing- questions, no unexecuted plans.--If a line genuinely cannot pass inside this session (an external party must-respond, or an owner-gated action is the final step), finish everything else,-leave this file in place, and state exactly which line remains and who owns-it. Never delete this file on a partial.diff --git a/public/changelog.json b/public/changelog.jsonindex f2650fcb7..88eb48988 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-13T01:34:48.306Z",+ "generated_at": "2026-08-13T01:47:10.912Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -165,6 +165,16 @@"security"]},+ {+ "date": "2026-08-13",+ "type": "update",+ "title": "The three.ws launchpad directory answers a bad filter instead of erroring out",+ "summary": "The public directory of coins launched on the three.ws bonding curve accepts an agent filter, so a page can show only the coins one agent launched. A filter value that was not a real agent id went straight to the database, which rejected it and turned the whole request into an unexplained server error. Anything that is not a valid agent id now comes back immediately as a plain validation error naming the problem, so a mistyped link fails clearly instead of looking like the launchpad is down. The endpoint documentation now states the same contract, including the page-size and offset limits, and the behaviour is pinned by tests.",+ "link": "/launches",+ "tags": [+ "fix"+ ]+ },{"date": "2026-08-12","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 94e016bd2..862c2b791 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -126,6 +126,14 @@<category>fix</category><description>Every agent's Reasoning Ledger is a public, tamper-evident record of what it decided and why, so the reads behind it have to be honest. Three things were not. Asking for a page larger than the 200-decision maximum quietly returned a trimmed page and then reported that there was nothing after it, so a caller reading the whole history could stop early believing they had seen all of it; page sizes are now checked against the real maximum and the follow-on cursor is always correct. A malformed page cursor (a word where a sequence number belongs) came back as a generic internal error instead of saying what was wrong, and an unbounded search filter could drive a full scan of an agent's history; both now return a clear bad-request reply. And the timeline was publishing the name and picture of agents whose owners had made them private or deleted them: the decision history stays public, but an unlisted agent now appears as its id alone. The independent verification endpoint also shows the on-chain anchor even when verification fails, which is exactly when an auditor needs to see the commitment the altered history no longer matches.</description></item>+ <item>+ <title>The three.ws launchpad directory answers a bad filter instead of erroring out</title>+ <link>https://three.ws/launches</link>+ <guid isPermaLink="false">2026-08-13:The three.ws launchpad directory answers a bad filter instead of erroring out</guid>+ <pubDate>Thu, 13 Aug 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The public directory of coins launched on the three.ws bonding curve accepts an agent filter, so a page can show only the coins one agent launched. A filter value that was not a real agent id went straight to the database, which rejected it and turned the whole request into an unexplained server error. Anything that is not a valid agent id now comes back immediately as a plain validation error naming the problem, so a mistyped link fails clearly instead of looking like the launchpad is down. The endpoint documentation now states the same contract, including the page-size and offset limits, and the behaviour is pinned by tests.</description>+ </item><item><title>Docs · GitHub memory seeding</title><link>https://three.ws/docs/github-memory-seeding</link>diff --git a/public/features.json b/public/features.jsonindex d7d6ee38d..46dc9c681 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-13T01:34:47.826Z",+ "generated_at": "2026-08-13T01:47:10.769Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",