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.

Update agent-sniper executor and CLI, forge-pay and add-funds flows, regenerate changelog artifacts

nirholasb92bb7acfb7c
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bd9b7e332..12a6a962b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -19,6 +19,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Every paid endpoint now settles — full x402 catalog coverage** — The x402 ring economy now exercises every paid endpoint on the platform, not just a handful. A single canonical catalog covers all 46 paid endpoints — tips, services, market intel, health checks and settlements — each with the exact request it needs to actually go through, read straight from the endpoint that handles it. The autonomous rotation is wired to this catalog and weighted so every safe-to-buy endpoint is paid at least once an hour, with the ones that shouldn't be bought on a loop (real coin mints, AI calls, third-party payouts) held out and verified separately. Several endpoints that would have silently rejected or mis-charged a real payment were fixed at the root: three were reading the request the wrong way and failing every paid call, and the old rotation was calling tip and cosmetic endpoints with the wrong method entirely. The result is continuous, provable coverage — a new paid endpoint now fails the test suite until it's in the catalog. `[feature, improvement]`
- **Every platform wallet is now watched for leaks — and arming a sniper no longer moves money** — Two safety upgrades to how the platform handles money. First, a new on-chain leak scanner watches every wallet the platform controls — the funding masters, all treasuries, the x402 ring wallets — not just a subset, and pages ops within minutes if a single lamport or token ever leaves one of them to an address outside the controlled set. Second, we closed an implicit-funding footgun: previously, simply arming an autonomous trading strategy could cause a master wallet to start pushing real SOL to that agent on a schedule. Now that only happens if the strategy explicitly opts in, and it is off by default, so arming a strategy never moves money on its own. `[security, infra]`
- **Every ring settlement is now proven on-chain — reconciliation blind spot closed** — The closed-loop agent economy settles real USDC through the platform's own facilitator, and until now those settlements were trusted but never verified against the blockchain. A new reconciler runs every 30 minutes and holds the ring to the same standard the funding wallet already meets: every recorded settlement and every treasury→payer sweep from the last 72 hours is checked to exist and succeed on-chain, a sample of each is parsed to prove the exact dollar amount and recipient match the books, and the two internal ledgers are cross-checked so a settlement with no matching spend record — the tell-tale sign of value leaking through our own facilitator — is caught. It also runs a silence alarm: if the ring is switched on but goes quiet for 30 minutes, operators are paged, closing the gap where 'it was working, then it wasn't' used to pass unnoticed. Any missing, failed, or mismatched settlement raises an immediate alert; every finding lands on the finance-integrity board, tagged so ring issues stand apart from the rest. `[security, infra]`
+- **Fleet Command — run your whole swarm of trading agents from one deck** — Tuning one sniper bot is easy; commanding thirty of them was not. The new Fleet Command page puts every autonomous agent on a single mission-control deck: pooled wallet balance across the fleet, how many are armed, low-balance warnings, live open positions, and combined realized P&L and win rate at the top. Below that, a sortable, searchable roster — one row per agent with its status, wallet, open/closed trades, win rate and P&L — plus multi-select. Act on the whole fleet at once: Arm all, Disarm all, or one red Emergency Stop that trips every kill switch, each behind a confirmation and reporting honest results ("Armed 30/33 · 3 failed"). A live trade feed streams every buy and sell across the swarm as it happens. (`/dashboard/fleet`) `[feature]`
- **Full audit trail + breach monitoring on the economy's funding wallet** — The master wallet that fuels the platform's autonomous economy now keeps a tamper-evident accounting book of every move it makes. Each SOL transfer is recorded with the engine it funded, the amount, the on-chain signature, the running balance, and the US-dollar value at the moment of the transfer — cryptographically hash-chained so no past entry can be altered or deleted without detection. A monitor runs every 30 minutes and checks three things: that the book hasn't been tampered with, that every transfer we recorded really happened on-chain, and — most importantly — that no SOL ever left the wallet without a matching record, which is the tell-tale sign of a stolen key. Anything off raises an immediate operator alert and lands on the finance-integrity board. There's also a one-command accounting export (CSV or JSON, with running balance and dollar totals) for bookkeeping and review. `[security, infra, docs]`
- **Leak-proofing the closed-loop economy: fail-closed spend guards + an on-chain leak scanner** — The rule behind the closed-loop agent economy is simple: no dollar and no SOL ever leaves the wallets the platform controls. Until now the safeguards that enforced it were passive — a couple of configuration switches that, if flipped or forgotten, could quietly re-open spending to the outside world, and nothing actually watched the blockchain to confirm money wasn't leaving. Both gaps are now closed. Before the economy spends anything, it re-checks the three switches that keep the loop sealed — external spending off, no charity split, settlements routed only through the platform's own settlement service — and if any of them is wrong it stops spending entirely and pages operators, naming the switch that changed. Separately, a new monitor reads the chain itself every ten minutes: for each ring wallet it inspects every recent transaction and flags anything that moved value to an address the platform doesn't control — a stablecoin payment to a stranger, any non-stablecoin token leaving, an unexplained SOL debit, or a permission grant that would let someone else move funds later. Any such finding pages operators within minutes with the transaction, the counterparty, the amount, and the exact recovery steps, and is filed on the same financial-integrity board as the rest of the platform's money checks. It also tallies the network fees the wallets actually paid and cross-checks them against the books, so fees paid outside the accounting get caught too. The monitor only ever reads the chain — it never moves funds or touches keys. `[security]`
- **Live Trading Theater stages rigged avatars only** — The 3D trading stage now only casts avatars that can actually perform. Any agent whose model is a static forge prop, a non-humanoid mesh, or a broken rig is quietly swapped for the platform's rigged mannequin instead of being staged as-is — which fixes the stray blob of geometry that could sprawl across the floor. Every figure on stage can now idle and react to real on-chain events. (`/theater`) `[fix]`
diff --git a/data/changelog.json b/data/changelog.json
index c774082ef..9d1fed9fb 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-07-03",
+ "title": "Fleet Command — run your whole swarm of trading agents from one deck",
+ "summary": "Tuning one sniper bot is easy; commanding thirty of them was not. The new Fleet Command page puts every autonomous agent on a single mission-control deck: pooled wallet balance across the fleet, how many are armed, low-balance warnings, live open positions, and combined realized P&L and win rate at the top. Below that, a sortable, searchable roster — one row per agent with its status, wallet, open/closed trades, win rate and P&L — plus multi-select. Act on the whole fleet at once: Arm all, Disarm all, or one red Emergency Stop that trips every kill switch, each behind a confirmation and reporting honest results (\"Armed 30/33 · 3 failed\"). A live trade feed streams every buy and sell across the swarm as it happens.",
+ "tags": [
+ "feature"
+ ],
+ "link": "/dashboard/fleet"
+ },
{
"date": "2026-07-03",
"title": "Shared wallet Trader Cards now unfurl with real stats",
diff --git a/packages/agent-sniper/bin/agent-sniper.js b/packages/agent-sniper/bin/agent-sniper.js
index 77d5bfdee..3a8a83e34 100755
--- a/packages/agent-sniper/bin/agent-sniper.js
+++ b/packages/agent-sniper/bin/agent-sniper.js
@@ -194,6 +194,18 @@ async function buildSniper(flags, { screen = false } = {}) {
};
}
+ // Rule: never snipe pump.fun Mayhem tokens — only normal launches. Reads each
+ // mint's bonding curve (cached, shared across agents) and skips isMayhemMode
+ // coins at the executeBuy chokepoint, so every face (run/serve/mcp) enforces
+ // it, not just the fleet script. On by default; --allow-mayhem disables it,
+ // --mayhem-strict also skips when the curve can't be read.
+ const mayhemOn = !flags['allow-mayhem'];
+ if (mayhemOn) {
+ const { createMayhemFilter } = await import('../src/mayhem-filter.js');
+ const mayhem = createMayhemFilter({ rpcUrl, strictOnUnknown: Boolean(flags['mayhem-strict']) });
+ hooks.oracleGate = mayhem.oracleGate;
+ }
+
// presets.local builds the wallet/solana/executor/feed wiring; we override the
// wallet so the resolved default secret is honored without env round-trips.
const wallet = createSelfCustodyWallet(keypairSecret ? { defaultSecret: keypairSecret } : {});
@@ -219,6 +231,7 @@ async function buildSniper(flags, { screen = false } = {}) {
async function cmdRun(flags) {
const { sniper, wallet, strategies, network, mode } = await buildSniper(flags, { screen: true });
+ const mayhemOn = !flags['allow-mayhem'];
let walletAddr = null;
if (strategies.length === 1 || flags.keypair) {
@@ -233,6 +246,7 @@ async function cmdRun(flags) {
line(` network ${network}`);
line(` mode ${mode}${mode === 'live' ? ' \x1b[31m(LIVE — trading REAL funds)\x1b[0m' : ' (simulate — no funds at risk)'}`);
line(` strategies ${strategies.length}`);
+ line(` mayhem ${mayhemOn ? (flags['mayhem-strict'] ? 'filtered (strict — skip on unknown)' : 'filtered (skip Mayhem tokens)') : '\x1b[33mALLOWED (--allow-mayhem)\x1b[0m'}`);
if (walletAddr) line(` wallet ${walletAddr}`);
if (mode === 'live') line(' \x1b[33m⚠ live mode: every snipe spends SOL from the agent wallet. Ctrl-C to stop.\x1b[0m');
line('');
diff --git a/packages/agent-sniper/src/executor.js b/packages/agent-sniper/src/executor.js
index 513e1add0..4722f262c 100644
--- a/packages/agent-sniper/src/executor.js
+++ b/packages/agent-sniper/src/executor.js
@@ -102,7 +102,14 @@ export async function executeBuy({ cfg, strat, candidate, throttle, ports }) {
const balance = BigInt(await solana.connection.getBalance(keypair.publicKey, 'confirmed'));
const headroom = checkSolHeadroom(balance, perTrade, SOL_FEE_HEADROOM_LAMPORTS);
- if (headroom) return await fail(store, log, posId, tag, headroom.reason);
+ // In simulate mode nothing is broadcast, so an unfunded wallet must not
+ // abort — otherwise the dry-run path can never be exercised without real
+ // SOL, defeating the point of simulate. Log it and continue. Live mode
+ // still fails closed: never attempt a broadcast we can't afford.
+ if (headroom) {
+ if (cfg.mode === 'live') return await fail(store, log, posId, tag, headroom.reason);
+ log.warn('sim buy: wallet underfunded (continuing dry-run)', { ...tag, reason: headroom.reason });
+ }
const mintPk = new PublicKey(candidate.mint);
const slippagePct = (strat.slippage_bps ?? 500) / 100;
diff --git a/public/changelog.json b/public/changelog.json
index cea55b880..f02cef6b0 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-03T17:53:35.657Z",
+ "generated_at": "2026-07-03T18:04:04.232Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -140,6 +140,16 @@
"infra"
]
},
+ {
+ "date": "2026-07-03",
+ "type": "update",
+ "title": "Fleet Command — run your whole swarm of trading agents from one deck",
+ "summary": "Tuning one sniper bot is easy; commanding thirty of them was not. The new Fleet Command page puts every autonomous agent on a single mission-control deck: pooled wallet balance across the fleet, how many are armed, low-balance warnings, live open positions, and combined realized P&L and win rate at the top. Below that, a sortable, searchable roster — one row per agent with its status, wallet, open/closed trades, win rate and P&L — plus multi-select. Act on the whole fleet at once: Arm all, Disarm all, or one red Emergency Stop that trips every kill switch, each behind a confirmation and reporting honest results (\"Armed 30/33 · 3 failed\"). A live trade feed streams every buy and sell across the swarm as it happens.",
+ "link": "/dashboard/fleet",
+ "tags": [
+ "feature"
+ ]
+ },
{
"date": "2026-07-03",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index b282b62e9..33cf34534 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -110,6 +110,14 @@
<category>security</category>
<description>The closed-loop agent economy settles real USDC through the platform's own facilitator, and until now those settlements were trusted but never verified against the blockchain. A new reconciler runs every 30 minutes and holds the ring to the same standard the funding wallet already meets: every recorded settlement and every treasury→payer sweep from the last 72 hours is checked to exist and succeed on-chain, a sample of each is parsed to prove the exact dollar amount and recipient match the books, and the two internal ledgers are cross-checked so a settlement with no matching spend record — the tell-tale sign of value leaking through our own facilitator — is caught. It also runs a silence alarm: if the ring is switched on but goes quiet for 30 minutes, operators are paged, closing the gap where 'it was working, then it wasn't' used to pass unnoticed. Any missing, failed, or mismatched settlement raises an immediate alert; every finding lands on the finance-integrity board, tagged so ring issues stand apart from the rest.</description>
</item>
+ <item>
+ <title>Fleet Command — run your whole swarm of trading agents from one deck</title>
+ <link>https://three.ws/dashboard/fleet</link>
+ <guid isPermaLink="false">2026-07-03:Fleet Command — run your whole swarm of trading agents from one deck</guid>
+ <pubDate>Fri, 03 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Tuning one sniper bot is easy; commanding thirty of them was not. The new Fleet Command page puts every autonomous agent on a single mission-control deck: pooled wallet balance across the fleet, how many are armed, low-balance warnings, live open positions, and combined realized P&amp;L and win rate at the top. Below that, a sortable, searchable roster — one row per agent with its status, wallet, open/closed trades, win rate and P&amp;L — plus multi-select. Act on the whole fleet at once: Arm all, Disarm all, or one red Emergency Stop that trips every kill switch, each behind a confirmation and reporting honest results (&quot;Armed 30/33 · 3 failed&quot;). A live trade feed streams every buy and sell across the swarm as it happens.</description>
+ </item>
<item>
<title>Full audit trail + breach monitoring on the economy's funding wallet</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 6a3c8b399..8d4769943 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-03T17:53:34.895Z",
+ "generated_at": "2026-07-03T18:04:04.123Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/forge-pay.js b/src/forge-pay.js
index 30dd78633..9881f4311 100644
--- a/src/forge-pay.js
+++ b/src/forge-pay.js
@@ -17,6 +17,7 @@
// { ok:true, paymentId, refId } on a verified on-chain payment.
import { payWithToken } from './token-pay.js';
+import { ensureRiskAck } from './shared/risk-ack.js';
const ECONOMY_URL = '/three-token';
const SIGN_IN_URL = '/login';
@@ -155,7 +156,7 @@ function classifyError(err) {
* @param {string} [params.refPrefix] client-nonce prefix (action name)
* @returns {Promise<{ ok: true, paymentId: string, refId: string } | { ok: false, cancelled?: boolean }>}
*/
-export function payForConsumption({
+export async function payForConsumption({
usd,
unit = 'one generation',
confirm = 'One generation, paid in $THREE.',
@@ -163,6 +164,10 @@ export function payForConsumption({
successText = 'Payment confirmed — continuing…',
refPrefix = 'forge',
} = {}) {
+ // Real $THREE leaves the wallet — require the risk acknowledgment first.
+ // (payWithToken gates too, but asking before the payment sheet opens is
+ // the honest order; the second check is a no-op once accepted.)
+ if (!(await ensureRiskAck({ context: 'forge-pay' }))) return { ok: false, cancelled: true };
injectStyles();
return new Promise((resolve) => {
const refId = clientNonce(refPrefix);
diff --git a/src/shared/add-funds.js b/src/shared/add-funds.js
index b6d9c26e3..0b67aebc1 100644
--- a/src/shared/add-funds.js
+++ b/src/shared/add-funds.js
@@ -10,6 +10,8 @@
* // newBalance: { usdc: 1.23 } or null if dismissed
*/
+import { ensureRiskAck } from './risk-ack.js';
+
const USDC_MINT_SOLANA = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';
const POLL_INTERVAL_MS = 5000;
// Stop actively polling after this long with no deposit, then surface a manual
@@ -229,7 +231,9 @@ async function fetchOnrampLink(address, amount = 25) {
* @param {Element} [opts.container] defaults to document.body
* @returns {Promise<{usdc: number}|null>} resolves with new balance or null if dismissed
*/
-export function showAddFunds({ walletAddress, requiredUsdc, container } = {}) {
+export async function showAddFunds({ walletAddress, requiredUsdc, container } = {}) {
+ // Buying USDC is a real-money commitment — require the risk acknowledgment.
+ if (!(await ensureRiskAck({ context: 'onramp' }))) return null;
return new Promise((resolve) => {
const root = container || document.body;