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): stop the optimizer rewarding a money-losing arm for a healthy win rate

nirholas4e8d254e3c1f
diff --git a/CHANGELOG.md b/CHANGELOG.md
index bdf922952..c3ec4eaf4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,8 +6,10 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
## 2026-07-27
+- **3D generations that run long now hand back a handle instead of an error** — A detailed model can take several minutes, longer than an assistant will wait inside a single tool call. Those generations used to look like failures even though the GPU finished the model minutes later. The ChatGPT 3D Studio now returns a live handle with a countdown of how much time is left, and a new check_job tool collects the finished model when it lands. Poll responses carry elapsed time and a remaining estimate that counts down, the assistant sees progress instead of identical waiting frames, and the inline viewer shows a real "still rendering" panel rather than an empty one. A generation whose GPU worker dies mid-job is now automatically retried on a healthy engine instead of being written off, including when nobody is watching the page. (`/docs/mcp-studio`) `[improvement, fix]`
- **Every 3D service we sell to other agents now ships parameters and a worked example** — The service catalog three.ws publishes to the OKX.AI agent marketplace describes all eleven 3D services the same way: what it does, exactly what you provide numbered one by one, and a concrete example of a real request. Buying agents (and the humans reading over their shoulder) can now tell what a service takes before spending anything, and the free catalog endpoint serves the same text the marketplace listing shows. (`/docs/okx-marketplace`) `[improvement, docs]`
- **Hats and shoes now sit where they belong** — Generated caps could come out with brims jutting past the face, and sneakers could hover away from the feet, because the forge sized those pieces by width alone: a deep-brimmed cap or a photographed pair of shoes standing close together gave the sizing step no useful signal. Caps are now scaled to fit the head on every dimension, and shoes are sized by foot length and placed onto each foot individually. Measured on a walking avatar, the worst-case gap between shoe and foot dropped from 34cm to 3cm, and cap overhang from 21cm to 8cm. Every piece in the catalog is now checked automatically: it must load, match its published fingerprint, and bind correctly onto four different avatar skeletons before it counts as good, with the pieces that failed the new bar replaced. A daily check also watches the live catalog for anything that breaks after the fact. `[improvement, fix]`
+- **The 3D forge accepts all six reference photos again** — The photo composer advertised six reference views but only built four slots, so filling the last one threw an error and stopped the upload. All six slots are now real and usable, which is the full set the generator accepts, and more views produce a sharper mesh. Text prompts also retry once when the concept-image step returns an empty result, instead of falling back to a lower-quality image lane. (`/forge`) `[fix, improvement]`
- **The x402 payment lanes now stop when the treasury runs dry** — When the wallets funding the agent payment economy ran low, the tip seeder kept firing 60 payments a minute that could never settle, turning the public dance-tip endpoint into a wall of errors and burning network calls for nothing. It now reads both wallet balances once before each round and simply sits the round out when a payment cannot succeed, with the reason stated plainly in the response. When the payer holds enough for some but not all of a round, it now sends exactly the number it can afford instead of overshooting. An unreadable balance is treated as unknown rather than empty, so a momentary network hiccup can never stall the economy on its own. `[fix, infra]`
- **Trading agents can no longer earn a bigger bet while losing money** — The self-tuning loop judged each strategy on its average percentage return and win rate, which treat a tiny position and a large one as equal. A strategy could post a healthy-looking win rate while its biggest trades bled real SOL, and get rewarded with an even bigger position. The optimizer now shrinks a strategy whose average percentage is positive but whose actual profit is negative, since that pattern only occurs when the larger bets are the losing ones, and it refuses to scale any strategy up while it is down money. (`/blog/autonomous-trading-experiment`) `[improvement]`
@@ -21,6 +23,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Coin charts show a clean no-data state for dead markets** — Asking for the price chart of a coin with no market history returned an error that looked like an outage. It now returns an empty series and the chart renders its no-data state instead. (`/coins`) `[fix]`
- **Large token images no longer break coin launches** — Uploading a big token image (a phone photo, a high-resolution PNG) during a coin launch used to fail with an unhelpful error because the image outgrew a server upload limit. The launch flow now shrinks oversized images right in your browser before uploading, and the server accepts everything the launch form allows, so any image you pick just works. (`/studio`) `[fix]`
- **Paying agents now get an honest answer when settlement capacity runs dry** — Our x402 payment rail sponsors the network fee on Solana settlements from a platform wallet, and it refuses to settle when that wallet drops below its safety floor: that guard is deliberate and stays. What was wrong is how the refusal read from the outside. Buyers received a generic server error (HTTP 502) after they had already signed a payment, so agent trust monitors scored the platform as broken, and buying agents burned calls signing payments that could never complete during a dry spell. Now the whole path degrades honestly: while the sponsor wallet is below its floor, paid endpoints stop advertising the Solana payment option up front (other networks stay available), anything that still reaches settlement answers with a proper temporarily-unavailable status (HTTP 503) that tells clients to retry later, and no signed payment is ever consumed by a doomed attempt. Everything springs back automatically the moment the wallet is topped up, and a genuinely unexplained settlement failure still reports as the hard error it is. (`/x402`) `[fix, improvement]`
+- **Selfie avatars now get your ears, jaw and neck, not just your face** — Until now a selfie avatar only carried your real appearance on the face itself, which is about a tenth of the head. Everything else, the ears, the jawline, the neck and the forehead up to the hairline, was a stock texture nudged toward your skin tone. The reason was technical: the face-tracking landmarks that guide the transfer only exist on the face, so there was nothing to guide it anywhere else. The avatar now works out where the camera was standing and paints the photo directly onto the 3D head, which needs no landmarks at all. Photographic coverage of the head goes from 10% to 38%. It only paints what the camera genuinely saw: anything angled away, hidden behind the nose or jaw, or outside your silhouette keeps the stock texture rather than being invented. (`/create/selfie`) `[feature, improvement]`
- **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]`
- **Text-to-animation works again, from a second GPU region** — Describe a motion in words and get an animation clip back: that lane had been silently dead. Every graphics card slot in our primary compute region was pinned by the always-on 3D generation engines, so the motion model's server could never get a card to start on, and every request failed. We had a second region with three granted GPU slots sitting completely unused, so the motion service now runs there, with the platform routed to it. A three-second test through the public API returned a finished 90-frame clip in under half a minute. The primary-region copy stays parked as spare capacity for when our larger GPU quota request is granted, and the always-on engines keep their cards; nothing else moved. `[fix, infra]`
- **The agent economy now refuels itself when its gas wallet runs low** — This morning the agent-to-agent payment rail stalled for the second time in two days: the wallet that pays Solana network fees drifted below its safety floor while holding plenty of USDC, and the automatic rebalancer could not see that it needed SOL, only that its USDC looked fine. Payments are flowing again, and the root cause is fixed: the rebalancer now watches both sides of that wallet and automatically converts a small slice of its own USDC into SOL the moment fee runway runs low, so the loop refuels itself instead of waiting for a human. The economy also runs at a calmer, more efficient rhythm: fewer, larger payments per minute, which delivers more dollar volume for a fraction of the network fees. (`/forged`) `[fix, improvement]`
diff --git a/api/_lib/sniper-optimizer.js b/api/_lib/sniper-optimizer.js
index 2ef8c92aa..0cee2795f 100644
--- a/api/_lib/sniper-optimizer.js
+++ b/api/_lib/sniper-optimizer.js
@@ -20,7 +20,7 @@
//
// Design: rules are ordered by priority; the first rule to claim a field wins,
// so proposals never conflict. Each rule cites the evidence that triggered it.
-// Rules O/A/B/C/E tighten and run for every tier. Rules D/F/G/H hand room back to
+// Rules O/A/B/C/S/E tighten and run for every tier. Rules D/F/G/H hand room back to
// an arm that earned it and are gated on tier + realized profit.
import { atLeast, boundsFor, stepsFor, unsetOkFor, writableFor } from './sniper-autonomy.js';
@@ -257,13 +257,35 @@ export function proposeAdjustments(stats, config, opts = {}) {
}
}
+ // Rule S: size-weighted divergence. `avgPnlPct` is an UNWEIGHTED mean of
+ // percentages, but positions across an arm differ in size by up to 50x, so a
+ // positive average percent alongside negative net lamports is arithmetically
+ // only possible one way: the arm's LARGER bets are its worse ones. Its edge
+ // does not scale, so the correct response is to shrink the bet, not to tune an
+ // exit percentage. Measured on the live fleet 2026-07-27: trailing-stop exits
+ // averaged +6.4% while netting -0.223 SOL, because the average trailing exit
+ // was a 0.053 SOL position against a 0.016 SOL fleet average.
+ //
+ // This runs BEFORE Rule D and claims per_trade_lamports first: an arm losing
+ // real money must never be handed a bigger position because its unweighted
+ // percentage or win rate looks healthy. That is the vanity metric the fleet's
+ // own postmortem named as lesson one.
+ const sizeDivergence = netPnl < 0 && avg > 0 && sample >= MIN_SAMPLE && perTrade != null;
+ if (sizeDivergence) {
+ propose('per_trade_lamports', Math.round(perTrade * (1 - steps.per_trade_fraction)),
+ `Average return is +${avg.toFixed(1)}% but the arm is down ${(netPnl / 1e9).toFixed(4)} SOL over ${sample} trades: the bigger bets are the losing ones, so the edge does not scale. Shrink position size rather than tune an exit.`);
+ notes.push('size_weighted_divergence');
+ }
+
// Rule D: proven arm: scale size up, bounded, never past the tier's ceiling.
- // Two ways to qualify. The classic one is a high win rate. The second exists
- // because win rate is the wrong measure for a momentum arm: one that wins 36%
- // of the time but is net profitable has a real edge and has earned more size.
- // That second path is tier-gated, so only an arm the autonomy engine already
- // judged profitable can take it.
- const provenByWinRate = winRate >= 60 && avg > 10;
+ // Two ways to qualify. The classic one is a high win rate, which ALSO requires
+ // not losing money: a 60%-win-rate arm can still bleed if its losses are its
+ // big positions, and rewarding that with more size compounds the bleed. The
+ // second exists because win rate is the wrong measure for a momentum arm: one
+ // that wins 36% of the time but is net profitable has a real edge and has
+ // earned more size. That second path is tier-gated, so only an arm the
+ // autonomy engine already judged profitable can take it.
+ const provenByWinRate = winRate >= 60 && avg > 10 && netPnl >= 0;
const provenByProfit = earned && netPnl > 0;
if ((provenByWinRate || provenByProfit) && sample >= MIN_SAMPLE * 1.5 && perTrade != null) {
const pct = Math.round(steps.per_trade_fraction * 75);
diff --git a/data/changelog.json b/data/changelog.json
index 837b90a9d..299968c9e 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,26 @@
{
"$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-27",
+ "title": "3D generations that run long now hand back a handle instead of an error",
+ "summary": "A detailed model can take several minutes, longer than an assistant will wait inside a single tool call. Those generations used to look like failures even though the GPU finished the model minutes later. The ChatGPT 3D Studio now returns a live handle with a countdown of how much time is left, and a new check_job tool collects the finished model when it lands. Poll responses carry elapsed time and a remaining estimate that counts down, the assistant sees progress instead of identical waiting frames, and the inline viewer shows a real \"still rendering\" panel rather than an empty one. A generation whose GPU worker dies mid-job is now automatically retried on a healthy engine instead of being written off, including when nobody is watching the page.",
+ "tags": [
+ "improvement",
+ "fix"
+ ],
+ "link": "/docs/mcp-studio"
+ },
+ {
+ "date": "2026-07-27",
+ "title": "The 3D forge accepts all six reference photos again",
+ "summary": "The photo composer advertised six reference views but only built four slots, so filling the last one threw an error and stopped the upload. All six slots are now real and usable, which is the full set the generator accepts, and more views produce a sharper mesh. Text prompts also retry once when the concept-image step returns an empty result, instead of falling back to a lower-quality image lane.",
+ "tags": [
+ "fix",
+ "improvement"
+ ],
+ "link": "/forge"
+ },
{
"date": "2026-07-27",
"title": "Trading agents can no longer earn a bigger bet while losing money",
@@ -16159,6 +16179,16 @@
"fix",
"infra"
]
+ },
+ {
+ "date": "2026-07-26",
+ "title": "Selfie avatars now get your ears, jaw and neck, not just your face",
+ "summary": "Until now a selfie avatar only carried your real appearance on the face itself, which is about a tenth of the head. Everything else, the ears, the jawline, the neck and the forehead up to the hairline, was a stock texture nudged toward your skin tone. The reason was technical: the face-tracking landmarks that guide the transfer only exist on the face, so there was nothing to guide it anywhere else. The avatar now works out where the camera was standing and paints the photo directly onto the 3D head, which needs no landmarks at all. Photographic coverage of the head goes from 10% to 38%. It only paints what the camera genuinely saw: anything angled away, hidden behind the nose or jaw, or outside your silhouette keeps the stock texture rather than being invented.",
+ "tags": [
+ "feature",
+ "improvement"
+ ],
+ "link": "/create/selfie"
}
]
}
diff --git a/docs/agent-sniper.md b/docs/agent-sniper.md
index caeca3930..949fdb9c1 100644
--- a/docs/agent-sniper.md
+++ b/docs/agent-sniper.md
@@ -113,7 +113,9 @@ 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. 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 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.
+
+Two rules exist specifically to keep the loop honest about *size*, because `avgPnlPct` is an unweighted mean of percentages while real positions differ by up to 50x. **Rule S** fires when an arm's average percent is positive but its net lamports are negative: arithmetically that is only possible when the larger bets are the worse ones, so the arm's edge does not scale and the response is to shrink the position rather than tune an exit percentage. It runs *before* the scale-up rule and claims `per_trade_lamports` first. And the high-win-rate scale-up path now additionally requires `netPnl >= 0`, so an arm can never be handed a bigger position while it is losing real money just because its hit rate looks healthy. Both encode the fleet postmortem's first lesson: win rate and average percent are vanity metrics; expectancy in lamports is the thing being optimized. 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 531da5787..e113d3e46 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,11 +1,22 @@
{
- "generated_at": "2026-07-27T17:10:35.140Z",
+ "generated_at": "2026-07-27T17:19:41.445Z",
"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-27",
+ "type": "update",
+ "title": "3D generations that run long now hand back a handle instead of an error",
+ "summary": "A detailed model can take several minutes, longer than an assistant will wait inside a single tool call. Those generations used to look like failures even though the GPU finished the model minutes later. The ChatGPT 3D Studio now returns a live handle with a countdown of how much time is left, and a new check_job tool collects the finished model when it lands. Poll responses carry elapsed time and a remaining estimate that counts down, the assistant sees progress instead of identical waiting frames, and the inline viewer shows a real \"still rendering\" panel rather than an empty one. A generation whose GPU worker dies mid-job is now automatically retried on a healthy engine instead of being written off, including when nobody is watching the page.",
+ "link": "/docs/mcp-studio",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
{
"date": "2026-07-27",
"type": "update",
@@ -28,6 +39,17 @@
"fix"
]
},
+ {
+ "date": "2026-07-27",
+ "type": "update",
+ "title": "The 3D forge accepts all six reference photos again",
+ "summary": "The photo composer advertised six reference views but only built four slots, so filling the last one threw an error and stopped the upload. All six slots are now real and usable, which is the full set the generator accepts, and more views produce a sharper mesh. Text prompts also retry once when the concept-image step returns an empty result, instead of falling back to a lower-quality image lane.",
+ "link": "/forge",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-07-27",
"type": "update",
@@ -131,6 +153,17 @@
"improvement"
]
},
+ {
+ "date": "2026-07-26",
+ "type": "update",
+ "title": "Selfie avatars now get your ears, jaw and neck, not just your face",
+ "summary": "Until now a selfie avatar only carried your real appearance on the face itself, which is about a tenth of the head. Everything else, the ears, the jawline, the neck and the forehead up to the hairline, was a stock texture nudged toward your skin tone. The reason was technical: the face-tracking landmarks that guide the transfer only exist on the face, so there was nothing to guide it anywhere else. The avatar now works out where the camera was standing and paints the photo directly onto the 3D head, which needs no landmarks at all. Photographic coverage of the head goes from 10% to 38%. It only paints what the camera genuinely saw: anything angled away, hidden behind the nose or jaw, or outside your silhouette keeps the stock texture rather than being invented.",
+ "link": "/create/selfie",
+ "tags": [
+ "feature",
+ "improvement"
+ ]
+ },
{
"date": "2026-07-26",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 618cc8c91..7c539ac5c 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>3D generations that run long now hand back a handle instead of an error</title>
+ <link>https://three.ws/docs/mcp-studio</link>
+ <guid isPermaLink="false">2026-07-27:3D generations that run long now hand back a handle instead of an error</guid>
+ <pubDate>Mon, 27 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>A detailed model can take several minutes, longer than an assistant will wait inside a single tool call. Those generations used to look like failures even though the GPU finished the model minutes later. The ChatGPT 3D Studio now returns a live handle with a countdown of how much time is left, and a new check_job tool collects the finished model when it lands. Poll responses carry elapsed time and a remaining estimate that counts down, the assistant sees progress instead of identical waiting frames, and the inline viewer shows a real &quot;still rendering&quot; panel rather than an empty one. A generation whose GPU worker dies mid-job is now automatically retried on a healthy engine instead of being written off, including when nobody is watching the page.</description>
+ </item>
<item>
<title>Every 3D service we sell to other agents now ships parameters and a worked example</title>
<link>https://three.ws/docs/okx-marketplace</link>
@@ -22,6 +30,14 @@
<category>improvement</category>
<description>Generated caps could come out with brims jutting past the face, and sneakers could hover away from the feet, because the forge sized those pieces by width alone: a deep-brimmed cap or a photographed pair of shoes standing close together gave the sizing step no useful signal. Caps are now scaled to fit the head on every dimension, and shoes are sized by foot length and placed onto each foot individually. Measured on a walking avatar, the worst-case gap between shoe and foot dropped from 34cm to 3cm, and cap overhang from 21cm to 8cm. Every piece in the catalog is now checked automatically: it must load, match its published fingerprint, and bind correctly onto four different avatar skeletons before it counts as good, with the pieces that failed the new bar replaced. A daily check also watches the live catalog for anything that breaks after the fact.</description>
</item>
+ <item>
+ <title>The 3D forge accepts all six reference photos again</title>
+ <link>https://three.ws/forge</link>
+ <guid isPermaLink="false">2026-07-27:The 3D forge accepts all six reference photos again</guid>
+ <pubDate>Mon, 27 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The photo composer advertised six reference views but only built four slots, so filling the last one threw an error and stopped the upload. All six slots are now real and usable, which is the full set the generator accepts, and more views produce a sharper mesh. Text prompts also retry once when the concept-image step returns an empty result, instead of falling back to a lower-quality image lane.</description>
+ </item>
<item>
<title>The x402 payment lanes now stop when the treasury runs dry</title>
<link>https://three.ws/changelog</link>
@@ -102,6 +118,14 @@
<category>fix</category>
<description>Our x402 payment rail sponsors the network fee on Solana settlements from a platform wallet, and it refuses to settle when that wallet drops below its safety floor: that guard is deliberate and stays. What was wrong is how the refusal read from the outside. Buyers received a generic server error (HTTP 502) after they had already signed a payment, so agent trust monitors scored the platform as broken, and buying agents burned calls signing payments that could never complete during a dry spell. Now the whole path degrades honestly: while the sponsor wallet is below its floor, paid endpoints stop advertising the Solana payment option up front (other networks stay available), anything that still reaches settlement answers with a proper temporarily-unavailable status (HTTP 503) that tells clients to retry later, and no signed payment is ever consumed by a doomed attempt. Everything springs back automatically the moment the wallet is topped up, and a genuinely unexplained settlement failure still reports as the hard error it is.</description>
</item>
+ <item>
+ <title>Selfie avatars now get your ears, jaw and neck, not just your face</title>
+ <link>https://three.ws/create/selfie</link>
+ <guid isPermaLink="false">2026-07-26:Selfie avatars now get your ears, jaw and neck, not just your face</guid>
+ <pubDate>Sun, 26 Jul 2026 12:00:00 GMT</pubDate>
+ <category>feature</category>
+ <description>Until now a selfie avatar only carried your real appearance on the face itself, which is about a tenth of the head. Everything else, the ears, the jawline, the neck and the forehead up to the hairline, was a stock texture nudged toward your skin tone. The reason was technical: the face-tracking landmarks that guide the transfer only exist on the face, so there was nothing to guide it anywhere else. The avatar now works out where the camera was standing and paints the photo directly onto the 3D head, which needs no landmarks at all. Photographic coverage of the head goes from 10% to 38%. It only paints what the camera genuinely saw: anything angled away, hidden behind the nose or jaw, or outside your silhouette keeps the stock texture rather than being invented.</description>
+ </item>
<item>
<title>Sniper fleet learns faster: honest honeypot verdicts and no more invisible losers</title>
<link>https://three.ws/blog/autonomous-trading-experiment</link>
diff --git a/public/features.json b/public/features.json
index 08f4b85f5..835573619 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-27T17:10:35.096Z",
+ "generated_at": "2026-07-27T17:19:41.432Z",
"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 3861e027e..eb20e58a7 100644
--- a/tests/sniper-optimizer.test.js
+++ b/tests/sniper-optimizer.test.js
@@ -87,6 +87,42 @@ describe('proposeAdjustments', () => {
expect(r.acted).toBe(false);
});
+ // Lesson one of the fleet's own postmortem: win rate and unweighted average
+ // percent are vanity metrics. Position sizes vary ~50x, so an arm can post a
+ // positive average percent while losing real money on its big bets.
+ it('shrinks size when average percent is positive but net PnL is negative', () => {
+ const r = proposeAdjustments(
+ stats({ closed: 25, wins: 10, winRate: 40, avgPnlPct: 6.4, netPnlLamports: -223_000_000, exitReasons: { trailing_stop: 13, timeout: 12 } }),
+ 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('size_weighted_divergence');
+ });
+
+ it('never scales a money-losing arm up on win rate alone', () => {
+ // 60% win rate and +12% average would have passed the old provenByWinRate
+ // gate and handed this arm a BIGGER position while it bled real SOL.
+ const r = proposeAdjustments(
+ stats({ closed: 20, wins: 12, winRate: 60, avgPnlPct: 12, netPnlLamports: -80_000_000 }),
+ baseConfig,
+ );
+ const size = r.proposals.find((p) => p.field === 'per_trade_lamports');
+ expect(size).toBeTruthy();
+ expect(size.to).toBeLessThan(baseConfig.per_trade_lamports); // shrunk, not grown
+ });
+
+ it('still scales a genuinely profitable high-win-rate arm up', () => {
+ const r = proposeAdjustments(
+ stats({ closed: 20, wins: 12, winRate: 60, avgPnlPct: 12, netPnlLamports: 40_000_000 }),
+ baseConfig,
+ );
+ const size = r.proposals.find((p) => p.field === 'per_trade_lamports');
+ expect(size).toBeTruthy();
+ expect(size.to).toBeGreaterThan(baseConfig.per_trade_lamports);
+ });
+
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 } }),