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(sniper): leg-aware honeypot verdicts and a winless-arm throttle in the optimizer

nirholasd1db75d6adae
diff --git a/CHANGELOG.md b/CHANGELOG.md
index cfcdb7fca..46559d3bf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -4,6 +4,10 @@
Public history for [three.ws](https://three.ws), newest first. New pages come from `added` dates in data/pages.json; everything else is curated in data/changelog.json. Also available as [JSON](https://three.ws/changelog.json) and [RSS](https://three.ws/changelog.xml), live at [three.ws/changelog](https://three.ws/changelog).
+## 2026-07-26
+
+- **Sniper fleet learns faster: honest honeypot verdicts and no more invisible losers** — Two fixes to the autonomous trading fleet from auditing its own record. The trade firewall now checks which leg of the simulated buy-and-sell round-trip failed: only a failed sell (the real cannot-exit shape) blocks a coin, while a buy leg that could not fund or price the probe is a warning instead of a false honeypot verdict. And the self-tuning optimizer no longer lets a strategy that has never won keep betting at full size below the minimum sample: zero wins over six or more real trades now triggers an automatic size reduction. (`/blog/autonomous-trading-experiment`) `[improvement, fix]`
+
## 2026-07-25
- **Agent-Forged Gallery** (`/forged`) — 3D props bought by autonomous AI agents with real USDC over x402. Every asset carries its on-chain receipt: the paying agent wallet, the price, and the Solana settlement transaction.
@@ -16,6 +20,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Agent profile links survive copy-paste damage** — Agent profile URLs shared on social media sometimes arrive with a stray word or bracket glued to the end of the id, which used to dead-end on an error page. The profile now recognizes the id inside a mangled link and loads the right agent. (`/agents`) `[fix]`
- **Agent-bought 3D models now appear in the gallery with their on-chain receipt** — When an AI agent pays for a 3D generation through the x402 forge endpoint, the finished model now lands in the public community gallery like any other creation, wearing a green x402 badge that links straight to the settle transaction on Solscan: who paid, what it cost, receipt one click away. Async generations finish server-side even if the buying agent never checks back. The trading sniper closes the same provenance loop from the other side: every market signal it buys now carries the payment signature of the call that bought it, so a trade decision can cite the exact on-chain payment that informed it. Also fixed: the autonomous economy loop now pauses cleanly with one loud alert when its fee wallet runs low instead of burning hundreds of doomed calls per hour, and three volume endpoints that were calling the dance-tip stage with the wrong HTTP method work again. (`/forge`) `[feature, improvement, fix]`
- **Check any 3D tool result against the Spatial MCP standard, in the page, as you type** — Spatial MCP is our open standard for handing back a live 3D scene as an AI tool result instead of a link, and until now three.ws/spatial-mcp only claimed that the payloads it displayed were valid. Now it proves it. The conformance checker the standard ships runs in your browser, and every scene on the page carries its verdict underneath: conformant, zero errors, and which version of the shape it speaks. Below that is a box you can paste your own tool result into. It checks the payload as you type and, instead of answering yes or no, names the exact field that is wrong and what it should be, so anyone writing an adapter for their own 3D tool can debug it on the page without reading the specification or installing anything. Load the deliberately broken example to see the whole thing at once: six mistakes, each naming its own field, and the fallback a real host would show a user for a payload it cannot render. Anything that passes renders immediately in the same viewer. The checker is the same code our own servers validate with, now published at a fixed address so third parties can import it directly, which means what the page tells you about a payload is exactly what a build will tell you. Two safeguards landed alongside it, because this page had been quietly showing two empty frames: one refuses to ship a page that asks for a file by a path that will not resolve, and one loads the page for real in a browser and fails if a scene does not appear or an asset it depends on has gone missing. The first immediately found the same defect on three more live pages, all fixed in this release: the agent editor was loading none of its code, the Czech landing page none of its styling, and the first-meet page none of its script. (`/spatial-mcp`) `[feature, fix, infra]`
+- **Chibi and origin-centered avatars no longer float during animations** — Avatars with unusual proportions or models exported centered on the origin could leap a full body-height into the air the moment an animation played, leaving only their feet visible on agent profiles. The animation system now measures a rig's hip height from its own feet, so every avatar stays grounded no matter how it was exported. (`/agents`) `[fix]`
- **Closed the tab while your avatar was building? It finishes anyway now** — Until today, a selfie avatar only completed while you kept the page open: your browser did the checking, and if you closed the tab after uploading, the engine finished your avatar but nobody ever came back to collect it. The job sat unfinished forever and your library never received the result. We found jobs stranded this way going back a month. The platform now checks in on every in-flight avatar itself, every few minutes, and files the finished result into your library exactly as if you had waited, so starting an avatar on your phone and pocketing it mid-build is now fine. The same pass also went back through every stranded job from the past month and delivered the ones whose results were still recoverable. Separately, the selfie page no longer shows a Masc and Femme body choice. Honest reason: the engine builds every avatar on one shared template body today, so that toggle changed nothing and never had, which is worse than not offering it. A real body choice, with sliders for build, height and more rather than two buttons, is planned on the parametric avatar base. (`/create/selfie`) `[fix, improvement]`
- **Crypto API: automatic upstream failover ends most rate-limit errors** — The unified crypto API (/api/v1/x) no longer fails your call just because one upstream host had a bad moment. When a provider is backed by a pool of interchangeable hosts (the Solana read endpoints front the platform's full RPC pool), a rate-limited, unreachable, or erroring host now fails over to a healthy alternate within the same request. The API also remembers which host just failed for a short window, so during an outage only the first request pays the discovery cost and everything after routes straight to a working host. Rate-limit passthrough was the second-largest error class on the aggregator; this removes it for pooled providers. (`/crypto-api`) `[improvement, infra]`
- **Dress any avatar: the wardrobe now adds clothes, not just recolours them** — Until now the wardrobe could only recolour or hide the clothes an avatar was generated with. It can now put NEW clothes on: the avatar editor's Wardrobe tab gained a Closet with racks of catalog pieces (tops, bottoms, footwear, outerwear, hair, headwear, glasses, accessories). Click a piece and it binds to your avatar's skeleton and moves with every animation, whatever generator the avatar came from: forge characters, selfie reconstructions and uploaded models all work, because garments are fitted to the skeleton at wear-time instead of being authored for one specific body. The body is masked under whatever you wear so skin never pokes through the cloth, a piece that cannot fit a particular skeleton politely refuses instead of deforming into spaghetti, and every download is integrity-checked against the catalog before it touches your avatar. Saved outfits persist: the downloadable and embedded versions of your avatar come out dressed too. (`/avatar-edit`) `[feature]`
diff --git a/api/_lib/sniper-optimizer.js b/api/_lib/sniper-optimizer.js
index fba3a9da8..2ef8c92aa 100644
--- a/api/_lib/sniper-optimizer.js
+++ b/api/_lib/sniper-optimizer.js
@@ -29,6 +29,11 @@ import { atLeast, boundsFor, stepsFor, unsetOkFor, writableFor } from './sniper-
// this the sample is noise and every rule no-ops.
export const MIN_SAMPLE = 8;
+// Exception floor for arms with ZERO wins. A 0-for-6 record with net losses is
+// evidence enough to shrink the bet while the sample grows (only Rule E may act
+// on it); waiting for the general MIN_SAMPLE let winless arms bleed unthrottled.
+export const MIN_SAMPLE_WINLESS = 6;
+
// Hard ranges for the DEFAULT tier. Every tier's ranges live in
// api/_lib/sniper-autonomy.js (TIER_BOUNDS); this export is the 'standard' row,
// kept as the public constant so existing callers and tests read one source of
@@ -137,7 +142,16 @@ export function proposeAdjustments(stats, config, opts = {}) {
const unsetOk = unsetOkFor(tier);
const earned = atLeast('trusted', tier);
- if (sample < MIN_SAMPLE) {
+ // A winless arm is not noise. Every pattern rule below waits for MIN_SAMPLE,
+ // but an arm that has NEVER won while losing real money is already a pattern:
+ // it gets the single de-risking rule (Rule E) and nothing else, so it cannot
+ // bleed indefinitely under the radar of the general sample gate.
+ const wins = num(stats?.wins) ?? 0;
+ const winlessBleeder =
+ wins === 0 && sample >= MIN_SAMPLE_WINLESS &&
+ (num(stats?.netPnlLamports) ?? 0) < 0 && num(config?.per_trade_lamports) != null;
+
+ if (sample < MIN_SAMPLE && !winlessBleeder) {
return { proposals, sample, acted: false, tier, notes: [`sample ${sample} < ${MIN_SAMPLE}, no action`] };
}
@@ -183,6 +197,16 @@ export function proposeAdjustments(stats, config, opts = {}) {
proposals.push({ field, from, to: target, reason });
};
+ // Winless-arm fast path: below MIN_SAMPLE only this one de-risking move may
+ // act; the pattern rules (O/A/B/C and the earned-freedom set) still wait for
+ // a real sample.
+ if (sample < MIN_SAMPLE && winlessBleeder) {
+ propose('per_trade_lamports', Math.round(perTrade * (1 - steps.per_trade_fraction)),
+ `Zero wins in ${sample} real trades (net ${(netPnl / 1e9).toFixed(3)} SOL): shrink the bet while the sample grows. Pattern rules stay quiet until ${MIN_SAMPLE} closes.`);
+ notes.push('winless_below_min_sample', 'candidate_for_disable');
+ return { proposals, sample, acted: proposals.length > 0, tier, notes };
+ }
+
// Rule O: Oracle-aware entry. If the arm's realized wins concentrate above a
// conviction floor, tune min_oracle_score toward it. Runs FIRST so this
// data-driven signal claims the field before Rule B's cruder stop-loss bump.
@@ -250,10 +274,14 @@ export function proposeAdjustments(stats, config, opts = {}) {
}
// Rule E: chronic loser: throttle size hard (short of auto-disable, which
- // stays a human call).
- if (winRate < 25 && netPnl < 0 && sample >= MIN_SAMPLE * 1.5 && perTrade != null) {
+ // stays a human call). A winless arm qualifies from MIN_SAMPLE up without
+ // waiting for the larger sustained-underperformance sample: zero wins IS the
+ // evidence, and the move is small, bounded, and reversed by Rule D on a win.
+ if (((winRate < 25 && sample >= MIN_SAMPLE * 1.5) || winlessBleeder) && netPnl < 0 && perTrade != null) {
propose('per_trade_lamports', Math.round(perTrade * (1 - steps.per_trade_fraction)),
- `Sustained underperformance (${winRate}% win rate, net ${(netPnl / 1e9).toFixed(3)} SOL over ${sample} trades): throttle size. Consider disabling this arm.`);
+ winlessBleeder && sample < MIN_SAMPLE * 1.5
+ ? `Zero wins in ${sample} real trades (net ${(netPnl / 1e9).toFixed(3)} SOL): throttle size while the record stays winless. Consider disabling this arm.`
+ : `Sustained underperformance (${winRate}% win rate, net ${(netPnl / 1e9).toFixed(3)} SOL over ${sample} trades): throttle size. Consider disabling this arm.`);
notes.push('candidate_for_disable');
}
diff --git a/api/_lib/trade-firewall.js b/api/_lib/trade-firewall.js
index 48a536808..c61bd5717 100644
--- a/api/_lib/trade-firewall.js
+++ b/api/_lib/trade-firewall.js
@@ -43,6 +43,7 @@ const PENALTY = Object.freeze({
mint_authority_active: 22, // infinite-supply risk (dev can mint more)
freeze_authority_active: 28, // dev can freeze your tokens — you can't sell
sim_unavailable: 18, // couldn't prove the round-trip (degraded)
+ buy_leg_reverted: 10, // the sim's BUY leg failed (balance/slippage): not a honeypot shape
concentration: 16, // one wallet holds an outsized share
dev_dumped: 14, // dev sold inside the observation window
bundle: 12, // coordinated-launch likelihood
@@ -199,6 +200,32 @@ async function checkVenue(network, mintPk, cacheKey) {
}
}
+/**
+ * Classify a reverted round-trip simulation by WHICH leg failed. The honeypot
+ * shape is "you can buy but you cannot sell": only a SELL-leg failure has it,
+ * and only it stays a fatal `roundtrip_reverted`. A BUY-leg revert says nothing
+ * about sellability. On the pump.fun curve the sell path is the curve program
+ * itself, so buy-leg reverts were pure false positives: most commonly the probe
+ * payer not affording the simulated buy (system program error 0x1,
+ * "insufficient lamports"), else the curve moving past the quote's slippage
+ * mid-launch. Both would fail the real entry too, but neither is a trapped
+ * exit. Pure — safe to unit-test.
+ * @param {object|string} simErr `simulateTransaction().value.err`
+ * @param {string[]} logs simulation logs
+ * @param {number} buyIxCount instructions in the buy leg (sell ixs follow them)
+ * @returns {{ leg:'buy'|'sell', status:'warn'|'fail', reason:string, err:string }}
+ */
+export function classifyRoundTripRevert(simErr, logs, buyIxCount) {
+ const err = typeof simErr === 'object' ? JSON.stringify(simErr).slice(0, 200) : String(simErr);
+ const ixIndex = Array.isArray(simErr?.InstructionError) ? Number(simErr.InstructionError[0]) : null;
+ if (ixIndex != null && Number.isFinite(ixIndex) && ixIndex < buyIxCount) {
+ const underfunded = (logs || []).some((l) => /insufficient lamports/i.test(String(l)));
+ return { leg: 'buy', status: 'warn', reason: underfunded ? 'buy_leg_underfunded' : 'buy_leg_reverted', err };
+ }
+ // Sell leg, or an unattributable failure: keep the fail-closed reading.
+ return { leg: 'sell', status: 'fail', reason: 'roundtrip_reverted', err };
+}
+
// ── check 3: simulated buy→sell round-trip (the honeypot detector) ────────────
// Build a real buy of `quoteAmount`, then a real sell of the tokens that buy
// would yield, pack BOTH legs into one v0 message, and simulate it on real RPC
@@ -286,11 +313,11 @@ async function checkRoundTrip({ network, mintPk, payer, quoteAmount, connection
const unitsConsumed = sim?.value?.unitsConsumed ?? null;
if (simErr) {
- // The round-trip reverted. The buy on its own is what a normal trader does;
- // a revert when a sell is appended is the classic honeypot shape.
+ const verdict = classifyRoundTripRevert(simErr, logs, buyBuilt.instructions.length);
return {
- res: result('round_trip', 'fail', 'roundtrip_reverted', {
- err: typeof simErr === 'object' ? JSON.stringify(simErr).slice(0, 200) : String(simErr),
+ res: result('round_trip', verdict.status, verdict.reason, {
+ leg: verdict.leg,
+ err: verdict.err,
log_tail: logs.slice(-4),
units_consumed: unitsConsumed,
}),
@@ -438,6 +465,14 @@ function compose(checks, simulated) {
score -= PENALTY.sim_unavailable;
reasons.push('The round-trip simulation could not run (RPC unavailable) — safety could not be fully verified.');
break;
+ case 'buy_leg_underfunded':
+ score -= PENALTY.buy_leg_reverted;
+ reasons.push('The simulated buy leg could not be funded at this size, so the sell leg went unproven; this is a wallet-balance condition, not a honeypot signal.');
+ break;
+ case 'buy_leg_reverted':
+ score -= PENALTY.buy_leg_reverted;
+ reasons.push('The simulated buy leg reverted (the market likely moved past the quoted slippage), so the sell leg went unproven; the entry itself may fail at execution.');
+ break;
case 'high_price_impact':
score -= PENALTY.price_impact;
reasons.push(`Price impact is high (${Number(c.detail.impact_pct).toFixed(1)}%) — you may receive far less than market.`);
diff --git a/data/changelog.json b/data/changelog.json
index efbf53f83..eb911d448 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-07-26",
+ "title": "Sniper fleet learns faster: honest honeypot verdicts and no more invisible losers",
+ "summary": "Two fixes to the autonomous trading fleet from auditing its own record. The trade firewall now checks which leg of the simulated buy-and-sell round-trip failed: only a failed sell (the real cannot-exit shape) blocks a coin, while a buy leg that could not fund or price the probe is a warning instead of a false honeypot verdict. And the self-tuning optimizer no longer lets a strategy that has never won keep betting at full size below the minimum sample: zero wins over six or more real trades now triggers an automatic size reduction.",
+ "tags": [
+ "improvement",
+ "fix"
+ ],
+ "link": "/blog/autonomous-trading-experiment"
+ },
{
"date": "2026-07-25",
"title": "Sign-language avatar now shows the full body",
@@ -15983,4 +15993,4 @@
"link": "/agents"
}
]
-}
\ No newline at end of file
+}
diff --git a/docs/agent-sniper.md b/docs/agent-sniper.md
index 57b2edfa8..caeca3930 100644
--- a/docs/agent-sniper.md
+++ b/docs/agent-sniper.md
@@ -16,7 +16,7 @@ A snipe is not one decision. It is a chain of gates, and a coin must pass every
2. **Entry scoring** (`workers/agent-sniper/scorer.js`, pure function, no I/O). The coin must be SOL-quoted, inside the strategy's market-cap band, pass creator-history checks, and carry socials if the strategy demands them. Every skip is recorded with a reason string, so you can see why a coin was passed over, not just which ones were bought.
3. **Fleet safety band.** Worker-level env clamps (`SNIPER_MIN_MC_FLOOR_USD` / `SNIPER_MAX_MC_CEIL_USD`) tighten every strategy at once. A per-strategy bound can only narrow this band, never widen it. Unknown market cap fails closed: the sniper never buys a coin it cannot price.
4. **Mayhem gate** (`workers/agent-sniper/mayhem-gate.js`). Pump.fun "Mayhem mode" tokens are excluded by owner rule. The flag is not in the firehose, so the worker reads it from the on-chain bonding curve, one cached RPC read per mint.
-5. **Trade firewall** (`api/_lib/trade-firewall.js`). Before broadcasting, the executor runs a real simulated buy-then-sell on-chain. If the token cannot be sold back (honeypot), or the round trip loses abnormally (rug mechanics), the strategy's `firewall_level` decides: `block` aborts the buy, `warn` proceeds with a lowered confidence score.
+5. **Trade firewall** (`api/_lib/trade-firewall.js`). Before broadcasting, the executor runs a real simulated buy-then-sell on-chain. The classification is leg-aware: only a revert on the **sell** leg has the honeypot shape (you can get in but not out) and stays a fatal block. A revert on the **buy** leg (the payer cannot fund the probe, or the curve moved past the quoted slippage) is a warning, not a honeypot verdict, because it says nothing about sellability; on the pump.fun curve the sell path is the curve program itself, and the authority audit separately catches freeze/mint rugs. The strategy's `firewall_level` decides what a verdict does: `block` aborts the buy on a block verdict or a critical unproven-safety warning, `warn` proceeds with a lowered confidence score.
6. **Execution** (`workers/agent-sniper/executor.js`, the only file that signs). The agent's key is decrypted from its at-rest AES-256-GCM secret box, the v0 transaction is signed and broadcast with the strategy's slippage and priority-fee settings, and an idempotency lock guarantees one buy per mint per strategy.
7. **The decision ledger.** Every trade appends an entry to `agent_decisions`: the inputs (trigger, firewall verdict and score, price impact, size), a plain-language rationale, a falsifiable prediction, and a mechanically computed confidence. Entries are hash-chained (`prev_hash` to `entry_hash`), so the reasoning history cannot be silently rewritten.
8. **Position management** (`workers/agent-sniper/positions.js` + `exit-logic.js`). A sweep re-quotes every open position against the bonding curve (or the AMM after graduation), updates the high-water mark, and decides exits in strict priority order: **stop-loss, then signal-flip, then trailing-stop, then take-profit, then timeout**. The laddered variant recovers initial cost at a configured multiple and lets a moon bag ride the trailing stop.
@@ -113,7 +113,7 @@ The hard-config sniper is the control group: its constants (band edges, stop per
**Layer 1: LLM-judged entry (`decision_mode = 'llm'`).** An arm can skip the rule shields and instead ask a model (an OpenRouter slug, via the platform's LLM failover chain) to judge each launch, returning `{ buy, confidence, thesis }`. The verdict is persisted and later scored against what the coin actually did (`sniper_evolution_log` / the judgment ledger), so a model's calls are measured independent of trade size. The deterministic rails (firewall, Mayhem exclusion, budgets, concurrency) still apply to LLM arms identically.
-**Layer 2: intra-arm optimizer (`api/cron/sniper-optimize.js` + `api/_lib/sniper-optimizer.js`).** On a cadence it reads each arm's own real trading record over a trailing window, including the exit-reason distribution, and proposes bounded adjustments to that arm's *inward* knobs: take-profit, trailing/stop percentages, hold time, entry-quality thresholds, and per-trade size. Every proposal is clamped to a hard range and to a small per-run step, so one run can never lurch an arm to an extreme. It runs **shadow by default** (`SNIPER_OPTIMIZER_MODE`): it persists what it *would* do to `agent_sniper_optimizer_runs` and mutates nothing, so you can watch it make tuning calls before it ever touches a live arm. In `apply` mode it enacts changes only for arms that opted in (`auto_optimize = true`), and logs each change to the agent's tamper-evident Reasoning Ledger (`kind = 'optimize'`) next to the trades it learned from. This is the layer that would have caught the first trade's missing take-profit automatically.
+**Layer 2: intra-arm optimizer (`api/cron/sniper-optimize.js` + `api/_lib/sniper-optimizer.js`).** On a cadence it reads each arm's own real trading record over a trailing window, including the exit-reason distribution, and proposes bounded adjustments to that arm's *inward* knobs: take-profit, trailing/stop percentages, hold time, entry-quality thresholds, and per-trade size. Every proposal is clamped to a hard range and to a small per-run step, so one run can never lurch an arm to an extreme. Below `MIN_SAMPLE` closed trades the rules stay quiet, with one exception: an arm with **zero wins** over `MIN_SAMPLE_WINLESS` or more real closes and net losses gets the single de-risking move (shrink per-trade size) and nothing else, so a winless arm can never bleed at full size while waiting to accumulate a "real" sample. It runs **shadow by default** (`SNIPER_OPTIMIZER_MODE`): it persists what it *would* do to `agent_sniper_optimizer_runs` and mutates nothing, so you can watch it make tuning calls before it ever touches a live arm. In `apply` mode it enacts changes only for arms that opted in (`auto_optimize = true`), and logs each change to the agent's tamper-evident Reasoning Ledger (`kind = 'optimize'`) next to the trades it learned from. This is the layer that would have caught the first trade's missing take-profit automatically.
**Layer 3: portfolio evolution (`scripts/sniper-evolve.mjs` + `api/cron/sniper-evolve.js`).** Across arms, it scores each arm's fitness against the ground-truth base rate (what fraction of launches actually win, from `pump_coin_outcomes`) using Wilson confidence bounds, then reallocates the fleet's daily budget toward higher-fitness arms, retires an arm proven worse than a coin flip, and revives a retired arm after a cooldown to re-test it. It runs autonomously on a 12-hour cron (dry-run unless `SNIPER_EVOLVE_APPLY=1`) and is also runnable by hand (`node scripts/sniper-evolve.mjs --apply`); both paths share the one `runEvolve()` engine. Every move is journaled to `sniper_evolution_log` with before/after and evidence.
diff --git a/public/changelog.json b/public/changelog.json
index 1b94fd27b..bac45b1eb 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,22 @@
{
- "generated_at": "2026-07-25T14:50:10.435Z",
+ "generated_at": "2026-07-26T20:51:49.889Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
"url": "https://three.ws"
},
"entries": [
+ {
+ "date": "2026-07-26",
+ "type": "update",
+ "title": "Sniper fleet learns faster: honest honeypot verdicts and no more invisible losers",
+ "summary": "Two fixes to the autonomous trading fleet from auditing its own record. The trade firewall now checks which leg of the simulated buy-and-sell round-trip failed: only a failed sell (the real cannot-exit shape) blocks a coin, while a buy leg that could not fund or price the probe is a warning instead of a false honeypot verdict. And the self-tuning optimizer no longer lets a strategy that has never won keep betting at full size below the minimum sample: zero wins over six or more real trades now triggers an automatic size reduction.",
+ "link": "/blog/autonomous-trading-experiment",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
{
"date": "2026-07-25",
"type": "launch",
@@ -110,6 +121,16 @@
"infra"
]
},
+ {
+ "date": "2026-07-25",
+ "type": "update",
+ "title": "Chibi and origin-centered avatars no longer float during animations",
+ "summary": "Avatars with unusual proportions or models exported centered on the origin could leap a full body-height into the air the moment an animation played, leaving only their feet visible on agent profiles. The animation system now measures a rig's hip height from its own feet, so every avatar stays grounded no matter how it was exported.",
+ "link": "/agents",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-07-25",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index cfbf9b6e9..8721d3e6d 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -6,6 +6,14 @@
<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/>
<description>What's new on three.ws — features, improvements, and releases, newest first.</description>
<language>en</language>
+ <item>
+ <title>Sniper fleet learns faster: honest honeypot verdicts and no more invisible losers</title>
+ <link>https://three.ws/blog/autonomous-trading-experiment</link>
+ <guid isPermaLink="false">2026-07-26:Sniper fleet learns faster: honest honeypot verdicts and no more invisible losers</guid>
+ <pubDate>Sun, 26 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Two fixes to the autonomous trading fleet from auditing its own record. The trade firewall now checks which leg of the simulated buy-and-sell round-trip failed: only a failed sell (the real cannot-exit shape) blocks a coin, while a buy leg that could not fund or price the probe is a warning instead of a false honeypot verdict. And the self-tuning optimizer no longer lets a strategy that has never won keep betting at full size below the minimum sample: zero wins over six or more real trades now triggers an automatic size reduction.</description>
+ </item>
<item>
<title>Agent-Forged Gallery</title>
<link>https://three.ws/forged</link>
@@ -86,6 +94,14 @@
<category>feature</category>
<description>Spatial MCP is our open standard for handing back a live 3D scene as an AI tool result instead of a link, and until now three.ws/spatial-mcp only claimed that the payloads it displayed were valid. Now it proves it. The conformance checker the standard ships runs in your browser, and every scene on the page carries its verdict underneath: conformant, zero errors, and which version of the shape it speaks. Below that is a box you can paste your own tool result into. It checks the payload as you type and, instead of answering yes or no, names the exact field that is wrong and what it should be, so anyone writing an adapter for their own 3D tool can debug it on the page without reading the specification or installing anything. Load the deliberately broken example to see the whole thing at once: six mistakes, each naming its own field, and the fallback a real host would show a user for a payload it cannot render. Anything that passes renders immediately in the same viewer. The checker is the same code our own servers validate with, now published at a fixed address so third parties can import it directly, which means what the page tells you about a payload is exactly what a build will tell you. Two safeguards landed alongside it, because this page had been quietly showing two empty frames: one refuses to ship a page that asks for a file by a path that will not resolve, and one loads the page for real in a browser and fails if a scene does not appear or an asset it depends on has gone missing. The first immediately found the same defect on three more live pages, all fixed in this release: the agent editor was loading none of its code, the Czech landing page none of its styling, and the first-meet page none of its script.</description>
</item>
+ <item>
+ <title>Chibi and origin-centered avatars no longer float during animations</title>
+ <link>https://three.ws/agents</link>
+ <guid isPermaLink="false">2026-07-25:Chibi and origin-centered avatars no longer float during animations</guid>
+ <pubDate>Sat, 25 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Avatars with unusual proportions or models exported centered on the origin could leap a full body-height into the air the moment an animation played, leaving only their feet visible on agent profiles. The animation system now measures a rig's hip height from its own feet, so every avatar stays grounded no matter how it was exported.</description>
+ </item>
<item>
<title>Closed the tab while your avatar was building? It finishes anyway now</title>
<link>https://three.ws/create/selfie</link>
diff --git a/public/features.json b/public/features.json
index 567dffda2..5d53df522 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-25T14:50:10.429Z",
+ "generated_at": "2026-07-26T20:51:49.881Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/tests/sniper-optimizer.test.js b/tests/sniper-optimizer.test.js
index 6ed47805a..3861e027e 100644
--- a/tests/sniper-optimizer.test.js
+++ b/tests/sniper-optimizer.test.js
@@ -11,7 +11,7 @@
*/
import { describe, it, expect } from 'vitest';
-import { proposeAdjustments, bestOracleThreshold, MIN_SAMPLE, BOUNDS, STEP } from '../api/_lib/sniper-optimizer.js';
+import { proposeAdjustments, bestOracleThreshold, MIN_SAMPLE, MIN_SAMPLE_WINLESS, BOUNDS, STEP } from '../api/_lib/sniper-optimizer.js';
import { boundsFor } from '../api/_lib/sniper-autonomy.js';
const BOUNDS_TRUSTED = boundsFor('trusted');
@@ -44,6 +44,49 @@ describe('proposeAdjustments', () => {
expect(r.proposals).toHaveLength(0);
});
+ // The production blind spot this rule closes: rules-proven sat at 0 wins in
+ // 6 closes and intel-quality at 0 in 11, both bleeding at full size because
+ // every throttle rule waited for a bigger sample.
+ it('throttles a winless arm below MIN_SAMPLE (and proposes nothing else)', () => {
+ const r = proposeAdjustments(
+ stats({ closed: MIN_SAMPLE_WINLESS, wins: 0, winRate: 0, avgPnlPct: -30, netPnlLamports: -56_000_000, exitReasons: { stop_loss: 4, timeout: 2 } }),
+ baseConfig,
+ );
+ expect(r.acted).toBe(true);
+ expect(r.proposals).toHaveLength(1);
+ expect(r.proposals[0].field).toBe('per_trade_lamports');
+ expect(r.proposals[0].to).toBeLessThan(baseConfig.per_trade_lamports);
+ expect(r.notes).toContain('candidate_for_disable');
+ });
+
+ it('throttles a winless arm between MIN_SAMPLE and the sustained-underperformance sample', () => {
+ const r = proposeAdjustments(
+ stats({ closed: 11, wins: 0, winRate: 0, avgPnlPct: -25, netPnlLamports: -126_000_000, exitReasons: { stop_loss: 6, timeout: 5 } }),
+ baseConfig,
+ );
+ const size = r.proposals.find((p) => p.field === 'per_trade_lamports');
+ expect(size).toBeTruthy();
+ expect(size.to).toBeLessThan(baseConfig.per_trade_lamports);
+ expect(r.notes).toContain('candidate_for_disable');
+ });
+
+ it('still no-ops a winless arm below the winless floor', () => {
+ const r = proposeAdjustments(
+ stats({ closed: MIN_SAMPLE_WINLESS - 1, wins: 0, winRate: 0, netPnlLamports: -10_000_000 }),
+ baseConfig,
+ );
+ expect(r.acted).toBe(false);
+ expect(r.proposals).toHaveLength(0);
+ });
+
+ it('does not throttle a small winless sample that is not losing money', () => {
+ const r = proposeAdjustments(
+ stats({ closed: MIN_SAMPLE_WINLESS, wins: 0, winRate: 0, netPnlLamports: 0 }),
+ baseConfig,
+ );
+ expect(r.acted).toBe(false);
+ });
+
it('sets a take-profit when winners are timing out unrealized (the first-trade lesson)', () => {
const r = proposeAdjustments(
stats({ closed: 10, wins: 8, winRate: 80, avgPnlPct: 30, bestPnlPct: 46, exitReasons: { timeout: 6, trailing_stop: 4 } }),
diff --git a/tests/sniper-safety-guards.test.js b/tests/sniper-safety-guards.test.js
index ec7240440..98d3188f0 100644
--- a/tests/sniper-safety-guards.test.js
+++ b/tests/sniper-safety-guards.test.js
@@ -24,7 +24,7 @@ import { mayhemVerdict, mayhemGate } from '../workers/agent-sniper/mayhem-gate.j
import { marketCapBandReason, scoreMint } from '../workers/agent-sniper/scorer.js';
import { checkDailyLoss } from '../api/_lib/agent-trade-guards.js';
import { effectiveDailyLossLimitLamports } from '../workers/agent-sniper/strategy-store.js';
-import { criticalFirewallReason } from '../api/_lib/trade-firewall.js';
+import { criticalFirewallReason, classifyRoundTripRevert } from '../api/_lib/trade-firewall.js';
import { withinMasterDailyCap, masterDailyOutflowSol } from '../api/_lib/launcher-funding.js';
describe('parseAgentIds (worker agent scoping)', () => {
@@ -106,6 +106,31 @@ describe('criticalFirewallReason (fail-closed: warnings that mean "unproven", no
});
});
+describe('classifyRoundTripRevert (only a SELL-leg revert has the honeypot shape)', () => {
+ // The real false positive from production: the probe payer could not fund the
+ // simulated buy (system program 0x1) and the coin was blocked as a "honeypot".
+ it('classifies an underfunded BUY leg as a warn, not a honeypot', () => {
+ const v = classifyRoundTripRevert(
+ { InstructionError: [1, { Custom: 1 }] },
+ ['Transfer: insufficient lamports 143824832, need 296296295', 'Program failed'],
+ 3,
+ );
+ expect(v).toMatchObject({ leg: 'buy', status: 'warn', reason: 'buy_leg_underfunded' });
+ });
+ it('classifies any other BUY-leg revert (e.g. slippage) as a warn', () => {
+ const v = classifyRoundTripRevert({ InstructionError: [2, { Custom: 6001 }] }, ['TooMuchSolRequired'], 3);
+ expect(v).toMatchObject({ leg: 'buy', status: 'warn', reason: 'buy_leg_reverted' });
+ });
+ it('keeps a SELL-leg revert as a fatal honeypot fail', () => {
+ const v = classifyRoundTripRevert({ InstructionError: [4, { Custom: 3012 }] }, [], 3);
+ expect(v).toMatchObject({ leg: 'sell', status: 'fail', reason: 'roundtrip_reverted' });
+ });
+ it('fails closed when the failing instruction cannot be attributed', () => {
+ expect(classifyRoundTripRevert('AccountNotFound', [], 3)).toMatchObject({ status: 'fail', reason: 'roundtrip_reverted' });
+ expect(classifyRoundTripRevert({ InsufficientFundsForRent: {} }, [], 3)).toMatchObject({ status: 'fail' });
+ });
+});
+
describe('scoreMint creator-launch gate (fail closed)', () => {
it('skips a serial rugger over the launch cap', () => {
const r = scoreMint({ market_cap_usd: 50_000, creator_launches: 25 }, { max_creator_launches: 10 });