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
docs(changelog): announce the agent-token withdraw confirm and CSRF fixes
nirholas1715da5f9342
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex aa52de244..73417db85 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -11,6 +11,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Docs · The Agent Index** (`/docs/agent-index`): The platform's own cross-chain index of agent registrations, token launches, reputation attestations, transfers and delegations, Solana first: one public endpoint, absolute on-chain timestamps, and published index freshness.- **A bounty that does not exist now says so, instead of blaming pump.fun**: The bounty board at /bounties mirrors the public pump.fun GO board. When you opened a bounty link that had been deleted or mistyped, the page reported it the same way it reports pump.fun being down, so there was no way to tell a dead link from an outage. A bounty that genuinely is not there now answers as not found, and a real upstream problem keeps its own separate answer. A second, quieter case got fixed with it: when the submissions list for a bounty failed to load, the page showed the bounty with zero submissions and said nothing, which looks identical to a bounty nobody has entered. That failure is now recorded, so a pump.fun outage shows up as an outage rather than as a board that suddenly looks unpopular. (`/bounties`) `[fix]`- **Avatar likeness is now measured against your photos, not assumed**: The promise behind the selfie flow is that the avatar looks like you, and until now nothing on the platform checked that. Two quality systems already existed and neither answered the question: one scores whether a generated model looks photorealistic, which a beautiful model of a stranger passes easily, and the other scores the head's shape offline against a synthetic test set and kept no record per avatar. Every finished reconstruction is now rendered from three angles and compared to the photos it was built from using the same kind of face-recognition model a phone uses to decide a face unlocks it. That produces a score out of 5 filed against the generation itself, and the scale is anchored to the model's own published cut-off for "same person" rather than to anyone's opinion, so 4 out of 5 means confidently you and not arguably you. A weekly sweep keeps the numbers current, and one of the three angles is a turned head on purpose: an avatar built by painting a photo onto a template can look right face-on and fall apart the moment it turns, and that is now a number somebody can see. The score is a measurement, never a guess: when the photos have no usable face, or the finished model has no recognisable face at all, it says which, instead of quietly reporting a bad score. `[infra, improvement, docs]`+- **Buying a skill from your phone no longer needs SOL in your wallet**: The QR code in the skill payment modal now hands your wallet a transaction we build for you, instead of asking the wallet to compose the transfer itself. Three things change for the buyer: three.ws pays the Solana network fee, so a wallet holding only USDC can complete the purchase; a creator who has never received this token before no longer causes the payment to fail, because the missing token account is created in the same transaction; and the whole payment still settles under one signature. Wallets that do not support this newer Solana Pay flow are one click away from the classic direct-transfer QR, which stays available under the code. (`/marketplace`) `[improvement, fix]`- **Controls that promised an action and did nothing now actually do it**: Several buttons across the site were links pointing at nothing, so clicking them moved the page to the top and nothing else happened. On a coin or category page whose market data failed to load, "Reload the page" was one of them: the one control offered for recovery had no handler at all, so a reader who hit a data outage had no way out of it. It now re-runs the real request in place, skeletons and all, so a recovered feed repaints without a full page load. The "+ Link wallet" button on your account page was the same kind of dead end, pointing back at the section it already sat in; it now opens your Solana wallet, signs the ownership message, and links the wallet to your account, including moving a wallet that is currently linked somewhere else once your signature has proved it is yours. Clear filter on derivatives, Show all on stablecoins, Retry on search and on the world generator, skip for now in the dashboard checklist, Create one in the agent registry, and View more in Related Agents were all links pretending to be buttons; they are real buttons now, which means they answer the space bar, sit in the tab order where you expect, and show a visible focus ring. Picking a coin in the compare search is announced properly to a screen reader as you arrow through the list. `[fix, improvement]`- **Every agent now has a verifiable on-chain history you can read on its page**: Agents do things on-chain after they are registered: they launch a token, collect reputation attestations, change hands, delegate execution rights. Until now the platform recorded only who an agent currently was, so all of that history was dropped, and anyone who wanted it had to scan a chain themselves. Open any agent under the Discover directory and there is now an On-chain history panel: a timeline of everything the platform has indexed for that agent, each entry stamped with the real time the chain says it happened and linked to the transaction on a block explorer so you can check it yourself. The same data is available to developers as one public endpoint. Three failures were fixed to make it real. The Solana half of the indexer was crashing on every single agent it looked at, so despite tracking more than fifteen hundred agents it had recorded zero events; it now records them, and a token launch names the agent's actual coin instead of the wrapped SOL that paid for it. On the EVM side, five of the twenty-two supported chains were producing blocks faster than the indexer could read them, so their backlog grew every hour while the status page called them healthy: the indexer now widens its reading window until it catches up, and the status page publishes how many blocks behind the worst chain is, as a number. Reputation was the third: the platform was already asking every EVM chain for agent feedback and vouches on every pass, then throwing the answers away, so not a single reputation event had ever reached the index. Those now land alongside the rest of an agent's history, with the score, its tags, and a link to the attestation. (`/docs/agent-index`) `[feature, fix, infra]`- **Platform counters stop reporting zero when the numbers are simply unavailable**: The public stats behind the home page and the monitor board (agents, avatars, widgets, views, countries, chains) used to answer with a row of zeroes whenever the database could not be reached, and that fabricated all-zero snapshot was then cached for five minutes at the edge, so the platform looked empty long after it had recovered. It now says the figures are unavailable instead, caches that for fifteen seconds, and the monitor board keeps the last real numbers on screen rather than flashing zeroes. The chain counter is also a real count again: it reads the mainnets that actually carry an indexed agent plus Solana, instead of a hardcoded six that had drifted from reality. (`/monitor`) `[fix]`@@ -24,6 +25,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The Reputation Staking Market is live: back an agent and earn from what it actually did**: Stake SOL behind an agent you believe in and earn a share of a daily reward pool, sized by that agent's signed on-chain record: accepted tasks, passed validations and real reviews pay, while failed validations, disputes and revocations cost double what work earns. The market page had shipped without the code that drives it, so it rendered empty no matter what was staked; it now loads live, ranks agents by the conviction escrowed behind them, shows any wallet's positions with earnings that update as they accrue, and settles a withdrawal back to the staker who signed the stake. Your principal is never slashed and can be withdrawn at any time: bad conviction earns nothing, it never costs you your stake. Every number is re-derivable from the chain, the exact formula runs identically in your browser and on our servers, and the whole cycle is provable on devnet with one command. Devnet is open to everyone; mainnet stays owner-gated. (`/reputation/market`) `[feature, fix]`- **The selfie camera now catches a blurry or blown-out shot before it costs you a build**: The capture screen showed a green "Sharp" badge on frames that were smeared past recognition. Measured against six real portrait photographs, the blur floor sat below every reading a real photo can produce, so the gate never fired once: a shot ruined by camera shake sailed through and you found out a minute later, after the build. The floor is now calibrated from those measurements and sits in the gap between blurred and sharp faces, so "Hold steady. The image is blurry." appears while you can still act on it. A face half-blown by window glare also used to pass, because averaging bright and shadowed halves lands back in the acceptable range; the camera now measures how much of your face is washed out and tells you to turn away from the window. Two capture bugs went with it: on a phone, the helper widgets pinned to the bottom of the screen sat on top of the camera and swallowed taps meant for the shutter and Cancel, and the Retake and Use this buttons stayed on screen during live capture. The shot check after the shutter is faster too. (`/create/selfie`) `[improvement, fix]`- **We can now tell whether people come back to the agent they minted**: The roadmap's phase-2 bar is that owners return to converse with the agent they minted, and until now nothing on the platform could say whether that was happening. It can now, and without a third-party analytics tag: when you open your own agent, the platform records one coarse row saying that you (the owner) came back to that agent on that calendar day, and nothing else. No IP address, no device fingerprint, no session trail, no per-request log, and nobody but the owner is tracked, so the record can answer the one question it exists for and nothing more invasive. A weekly job groups owners by the week they minted their first agent and works out how many returned during the second week, and the internal analytics dashboard charts that rate per cohort against the 30% target. Every date it stores is a real calendar date rather than an offset from whenever the number was computed, so a cohort read a year from now still means what it meant the day it was written. The whole path is covered end to end against a real database, which also turned up and fixed a long-standing flaw that broke sign-ups on any freshly created database. (`/docs/analytics-retention`) `[feature, infra]`+- **Withdrawing your agent token's earnings is confirmed against the real payout, and cannot be triggered from another site**: Two fixes to the withdraw flow on your agent's pump.fun token. The confirmation step used to accept any successful Solana transaction that simply mentioned your token and its authority wallet, which an ordinary transfer or memo does, and report it back as a completed payout; it now requires that the payments program actually ran, the same check the launch flow already made. Both withdraw steps also now reject requests that arrive from a site other than three.ws while riding your signed-in session, so a page you happen to have open elsewhere cannot start a withdrawal on your behalf. Alongside that, an unreadable token-program value in a withdraw request is now refused up front with a clear message instead of being quietly ignored and producing a transaction that only failed after you had signed it. `[security, fix]`- **Your referrals page now shows how many people actually opened your link**: Every three.ws referral link already recorded a visit when someone opened it, but nothing ever showed you those numbers. The referrals dashboard now has a Share funnel: link visits, how many of those visits became signups, and how many of those signups went on to make their first creation, with the conversion rate between each step over the last 30 days. Visits are counted once per person per day, so refreshing a link does not inflate the number, and the page only shows the funnel once you have at least one visit. The same data is available on the referrals API as a funnel block, with an optional lookback window. (`/dashboard/referrals`) `[feature, improvement]`## 2026-08-13diff --git a/data/changelog.json b/data/changelog.jsonindex ba2774fca..f8172fec4 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,25 @@{"$comment": "Curated changelog entries for three.ws, the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-08-14",+ "title": "Apps that sign in with a client secret can now revoke and inspect their own tokens",+ "summary": "If you connect an app to three.ws over OAuth and registered it with a client secret sent in the Authorization header (client_secret_basic, the standard choice for server-side apps), only the token endpoint accepted those credentials. Revoking a token or checking whether one is still valid answered that the client_id was missing, and answered that the credentials were bad the moment you added it, so a confidential app had no way to sign a user out or verify a token it owned. All three endpoints now take the same credentials, in the header or in the form body, exactly as the OAuth revocation and introspection standards require. Dynamic client registration also now returns client_secret_expires_at alongside a new secret, so your client can tell that a three.ws secret never expires rather than guessing from a missing field.",+ "tags": [+ "fix",+ "security"+ ],+ "link": "/docs/authentication"+ },+ {+ "date": "2026-08-14",+ "title": "Withdrawing your agent token's earnings is confirmed against the real payout, and cannot be triggered from another site",+ "summary": "Two fixes to the withdraw flow on your agent's pump.fun token. The confirmation step used to accept any successful Solana transaction that simply mentioned your token and its authority wallet, which an ordinary transfer or memo does, and report it back as a completed payout; it now requires that the payments program actually ran, the same check the launch flow already made. Both withdraw steps also now reject requests that arrive from a site other than three.ws while riding your signed-in session, so a page you happen to have open elsewhere cannot start a withdrawal on your behalf. Alongside that, an unreadable token-program value in a withdraw request is now refused up front with a clear message instead of being quietly ignored and producing a transaction that only failed after you had signed it.",+ "tags": [+ "security",+ "fix"+ ]+ },{"date": "2026-08-14","title": "Buying a skill from your phone no longer needs SOL in your wallet",diff --git a/prompts/swarm-100/api-pump-04.md b/prompts/swarm-100/api-pump-04.mddeleted file mode 100644index ee85aa1f1..000000000--- a/prompts/swarm-100/api-pump-04.md+++ /dev/null@@ -1,102 +0,0 @@-# API audit: api/pump batch 04 (2 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/pump/withdraw-confirm.js-- api/pump/withdraw-prep.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-pump-04.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 5e369336f..4d269b9fb 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-14T02:20:27.503Z",+ "generated_at": "2026-08-14T02:25:27.033Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -58,6 +58,17 @@"docs"]},+ {+ "date": "2026-08-14",+ "type": "update",+ "title": "Buying a skill from your phone no longer needs SOL in your wallet",+ "summary": "The QR code in the skill payment modal now hands your wallet a transaction we build for you, instead of asking the wallet to compose the transfer itself. Three things change for the buyer: three.ws pays the Solana network fee, so a wallet holding only USDC can complete the purchase; a creator who has never received this token before no longer causes the payment to fail, because the missing token account is created in the same transaction; and the whole payment still settles under one signature. Wallets that do not support this newer Solana Pay flow are one click away from the classic direct-transfer QR, which stays available under the code.",+ "link": "/marketplace",+ "tags": [+ "improvement",+ "fix"+ ]+ },{"date": "2026-08-14","type": "update",@@ -204,6 +215,17 @@"infra"]},+ {+ "date": "2026-08-14",+ "type": "update",+ "title": "Withdrawing your agent token's earnings is confirmed against the real payout, and cannot be triggered from another site",+ "summary": "Two fixes to the withdraw flow on your agent's pump.fun token. The confirmation step used to accept any successful Solana transaction that simply mentioned your token and its authority wallet, which an ordinary transfer or memo does, and report it back as a completed payout; it now requires that the payments program actually ran, the same check the launch flow already made. Both withdraw steps also now reject requests that arrive from a site other than three.ws while riding your signed-in session, so a page you happen to have open elsewhere cannot start a withdrawal on your behalf. Alongside that, an unreadable token-program value in a withdraw request is now refused up front with a clear message instead of being quietly ignored and producing a transaction that only failed after you had signed it.",+ "link": null,+ "tags": [+ "security",+ "fix"+ ]+ },{"date": "2026-08-14","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex ee8f05a18..5f8ea99e5 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -46,6 +46,14 @@<category>infra</category><description>The promise behind the selfie flow is that the avatar looks like you, and until now nothing on the platform checked that. Two quality systems already existed and neither answered the question: one scores whether a generated model looks photorealistic, which a beautiful model of a stranger passes easily, and the other scores the head's shape offline against a synthetic test set and kept no record per avatar. Every finished reconstruction is now rendered from three angles and compared to the photos it was built from using the same kind of face-recognition model a phone uses to decide a face unlocks it. That produces a score out of 5 filed against the generation itself, and the scale is anchored to the model's own published cut-off for "same person" rather than to anyone's opinion, so 4 out of 5 means confidently you and not arguably you. A weekly sweep keeps the numbers current, and one of the three angles is a turned head on purpose: an avatar built by painting a photo onto a template can look right face-on and fall apart the moment it turns, and that is now a number somebody can see. The score is a measurement, never a guess: when the photos have no usable face, or the finished model has no recognisable face at all, it says which, instead of quietly reporting a bad score.</description></item>+ <item>+ <title>Buying a skill from your phone no longer needs SOL in your wallet</title>+ <link>https://three.ws/marketplace</link>+ <guid isPermaLink="false">2026-08-14:Buying a skill from your phone no longer needs SOL in your wallet</guid>+ <pubDate>Fri, 14 Aug 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The QR code in the skill payment modal now hands your wallet a transaction we build for you, instead of asking the wallet to compose the transfer itself. Three things change for the buyer: three.ws pays the Solana network fee, so a wallet holding only USDC can complete the purchase; a creator who has never received this token before no longer causes the payment to fail, because the missing token account is created in the same transaction; and the whole payment still settles under one signature. Wallets that do not support this newer Solana Pay flow are one click away from the classic direct-transfer QR, which stays available under the code.</description>+ </item><item><title>Controls that promised an action and did nothing now actually do it</title><link>https://three.ws/changelog</link>@@ -150,6 +158,14 @@<category>feature</category><description>The roadmap's phase-2 bar is that owners return to converse with the agent they minted, and until now nothing on the platform could say whether that was happening. It can now, and without a third-party analytics tag: when you open your own agent, the platform records one coarse row saying that you (the owner) came back to that agent on that calendar day, and nothing else. No IP address, no device fingerprint, no session trail, no per-request log, and nobody but the owner is tracked, so the record can answer the one question it exists for and nothing more invasive. A weekly job groups owners by the week they minted their first agent and works out how many returned during the second week, and the internal analytics dashboard charts that rate per cohort against the 30% target. Every date it stores is a real calendar date rather than an offset from whenever the number was computed, so a cohort read a year from now still means what it meant the day it was written. The whole path is covered end to end against a real database, which also turned up and fixed a long-standing flaw that broke sign-ups on any freshly created database.</description></item>+ <item>+ <title>Withdrawing your agent token's earnings is confirmed against the real payout, and cannot be triggered from another site</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-08-14:Withdrawing your agent token's earnings is confirmed against the real payout, and cannot be triggered from another site</guid>+ <pubDate>Fri, 14 Aug 2026 12:00:00 GMT</pubDate>+ <category>security</category>+ <description>Two fixes to the withdraw flow on your agent's pump.fun token. The confirmation step used to accept any successful Solana transaction that simply mentioned your token and its authority wallet, which an ordinary transfer or memo does, and report it back as a completed payout; it now requires that the payments program actually ran, the same check the launch flow already made. Both withdraw steps also now reject requests that arrive from a site other than three.ws while riding your signed-in session, so a page you happen to have open elsewhere cannot start a withdrawal on your behalf. Alongside that, an unreadable token-program value in a withdraw request is now refused up front with a clear message instead of being quietly ignored and producing a transaction that only failed after you had signed it.</description>+ </item><item><title>Your referrals page now shows how many people actually opened your link</title><link>https://three.ws/dashboard/referrals</link>diff --git a/public/features.json b/public/features.jsonindex 9c924aed8..903cf670f 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-08-14T02:21:26.034Z",+ "generated_at": "2026-08-14T02:25:26.784Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",