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
Regenerate changelog/llms/sitemap, add custody and reputation tests
nirholas04ebb31e8043
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c804d8c89..bdacb9502 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -17,6 +17,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Autopilot Activity** (`/autopilot-activity`) — Every autonomous action your three.ws agent took — each grounded in the memory that motivated it, signed, and reversible. Explainable autonomy you can audit.- **Back-an-Agent Vaults** (`/vaults`) — Copy-trade a 3D agent with a verifiable on-chain reputation: stake into a verified trader, share its real P&L pro-rata, and watch it trade your capital live — segregated custody, hard spend limits, and a drawdown circuit breaker.- **Cosmos — Living Worlds** (`/cosmos`) — Bring your avatar to life: type a world and NVIDIA Cosmos renders a living, photoreal scene that plays behind your 3D avatar. Generate, preview, and download a short cinematic clip.+- **Custody Integrity** (`/integrity`) — Provable, on-chain-anchored custody for every three.ws agent wallet. The platform commits a Merkle root over every wallet's on-chain state to Solana — verify the latest root yourself, no account required.- **Guardian console — recover & inherit agent wallets** (`/guardian`) — The agents you’re trusted to protect. Approve a recovery or confirm an inheritance to help a fellow human back into their funded agent wallet — through a threshold-approved, time-locked process that never exposes a private key.- **Instant Agent Genesis** (`/genesis`) — A prompt or a selfie becomes a rigged 3D AI agent with its own custodial Solana + EVM wallet and a verifiable on-chain identity — in under a minute, owned by you.- **Live Trading Theater** (`/theater`) — Watch agents trade in 3D, in real time. Every trader is a 3D character with a wallet and a verifiable on-chain reputation — when a real on-chain buy fills, its avatar performs on a shared stage and a real receipt rises with an explorer link. Click any avatar for its read-only wallet and reputation; watch, follow, or fork it.@@ -26,6 +27,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Signal Marketplace — paid alpha feeds, ranked by proven edge** (`/signals`) — Verified traders publish their live entry/exit signals as x402-metered feeds. Your agent pays per signal or per epoch in USDC and auto-mirrors the trade through the firewall + MEV engine — every spend guarded, every fill audited. Each signal binds to a real on-chain fill and accrues a realized outcome, so feeds rank by proven accuracy, never follower count.- **Strategy Objects** (`/strategies`) — A marketplace of how agents trade: ownable, forkable, leaderboard-ranked trade strategies your agent can equip and run on-chain within your spend policy.- **The Arena — live PvP trading tournaments** (`/arena`) — Time-boxed PvP tournaments where AI agents compete on real, verified pump.fun P&L. Live rankings, on-chain attested standings, and $THREE prizes for the winners.+- **Verify Custody** (`/proof`) — Verify your own three.ws agent wallet's custody — recompute your Merkle leaf, walk the path, and confirm it against the root anchored on Solana, entirely in your browser.- **World Lines — agent proof-of-presence quests** (`/world-lines`) — Walk to an AI agent's real-world spot, complete its AR challenge, and earn a cryptographically real, agent-signed proof of presence. Privacy-preserving (only a ~1 km area is ever recorded), independently verifiable, and ownable.- **A real pricing page, metered usage, and a downloadable invoice you can reconcile** — Billing on three.ws is now a closed loop you can read end to end. The new /pricing page reads its numbers from one server source of truth — every paid action, the platform fee, and the full $THREE holder discount ladder — so the price you see is the price checkout quotes, never a hardcoded copy. Connect a wallet that holds $THREE and the page personalizes: each paid lane shows your discounted price with the list price struck through, plus how much more $THREE reaches the next tier. Behind that, every paid action now meters into one ledger the moment it settles, linked to the on-chain transaction that paid for it — and it's idempotent, so a retried charge is recorded exactly once and you're never billed twice. The new /billing page rolls that ledger into a monthly invoice statement: every charge, the holder discount applied, the count and total, with CSV download and print-to-PDF. Each charge also yields a per-line receipt that traces to its settlement transaction. An operator reconciliation pass cross-checks every metered charge against the real on-chain settlement and surfaces an "all charges reconciled" badge on the revenue dashboard. The AWS Marketplace path meters real usage and checks entitlements against AWS, or ships inert when uncredentialed — it never invents a charge. $THREE is the only coin on three.ws. (`/pricing`) `[feature, improvement]`- **Agent Genome: breed two agents into a provably-inherited child** — Two agents can now breed. Open the new Genome studio, pick two parents — your own agents, or a public stud someone has opened for breeding — and preview the offspring before you commit: the predicted brain disposition, a blended voice you can actually play, the body it would inherit, and its skills, all shown as a real trait blend. Breed, and a genuinely new child agent is born with its OWN fresh wallet — the child gets brand-new keys, and neither parent's wallet or agent is touched. The child provably inherits a recombination of both parents: some traits express, some are carried recessively and can resurface a generation later, and occasionally two parents' latent traits fuse into an emergent skill neither parent had. Every breeding is recorded with a seed so the child's genome can be re-derived and verified — a forged 'child' that wasn't really descended from its claimed parents is detectable by anyone. Each agent now carries a verifiable family tree shown on the parents and the child, a rare-pedigree badge appears on deep-lineage agents across the marketplace, and a Stud market lets owners open a rare agent for breeding for a $THREE fee. Cooldowns keep deep pedigrees scarce. The only coin referenced is $THREE. (`/genome`) `[feature]`@@ -101,6 +103,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Pricing page now shows live pay-per-use prices, straight from the catalog** — The pricing page has a new "Pay only for what you generate" section that lists exactly what each generation and compute call costs — Forge Standard and High, Game-Ready export, the MCP-3D tools, voice cloning, the Granite oracles, and more. Every figure is pulled live from the one pricing catalog the pay-per-call flow uses, so the number you see on /pricing is the number you pay — they can never drift apart. Prices are quoted in USD and settled in $THREE, drafts stay free forever with no card, and if prices can't load the free lane and a retry are still right there. We also tightened the paid generation flow so a generator's billing or credit message can never leak to a buyer: if a generation can't complete, you get clear copy that your payment wasn't taken, not a vendor's internal error. Only coin referenced is $THREE. (`/pricing`) `[feature, improvement]`- **Programmable orders — limit, stop, trailing, DCA, TWAP & conditional triggers for your agent wallet** — Pump.fun has no native order types — you watch a chart and click frantically. Now every agent wallet gets a real, set-and-forget order layer. Place a limit buy on a dip or a limit sell on a target market cap; arm a stop-loss that survives across sessions, or a trailing stop that locks in gains by following the high-water mark; schedule DCA to buy in on a fixed interval; slice a large order with TWAP to cut price impact; or build a conditional trigger over live signals ("buy when the smart-money score is above 60 and market cap is under $40k", "sell if the dev dumps", "buy on graduation"). A worker watches the market continuously and fires matched orders automatically from your wallet — every fill priced from real on-chain state, run through the same rug/honeypot firewall and spend guards as a manual trade, capped by your daily budget and per-trade limits, and written to your custody ledger with a real transaction receipt. Conditions are a safe, validated spec (no arbitrary code), orders never fire on missing data, the kill switch halts everything, and cancel is instant. Find the new Orders tab in your agent wallet. `[feature]`- **Prompt-to-avatar: a live progress bar you can cancel, plus motion and screen-reader polish** — Building an avatar from a text prompt now shows a progress bar that actually moves second-to-second (tied to real elapsed time) instead of sitting frozen between stages, a real elapsed clock, and a Cancel button (or Escape) so you're never stuck watching a spinner. Across the creator we now respect your 'reduce motion' setting (spinners and auto-spin previews hold still), the camera flow tells you exactly what to do if you deny permission instead of silently doing nothing, and progress, errors, and the bring-your-own-key form are announced properly to screen readers. Character Studio shows a loading silhouette and an actionable Retry if something fails to load. (`/create/prompt`) `[improvement]`+- **Proof-of-Custody: verify your agent wallet's custody on-chain yourself** — Custodial means we hold your wallet's keys and sign for you — so now we make that custody provable instead of asking you to take our word for it. Every few hours the platform snapshots every custodial wallet's public state (its address, live on-chain balance, and a fingerprint of its authorized-event history), builds a Merkle tree over all wallets, and commits the single root to Solana in a real transaction. Open the new Proof of Custody tab in your wallet — or the standalone verifier — and your browser does the checking itself: it recomputes your wallet's leaf from the public data, walks the Merkle path to the root, reads the anchoring transaction straight from a public Solana RPC, and confirms the on-chain root matches. You get a clear green 'verified on-chain' with the explorer link, or an honest red state naming exactly which step failed — never a fake badge. It also reconciles movement: every drop in your balance between snapshots is mapped to an authorized, logged withdraw or spend, and any outflow the ledger can't explain is loudly flagged. The new public integrity page shows the latest root, its anchor transaction, the wallet count and aggregate balance — and lets anyone re-verify the platform's custody on-chain with no account. Don't trust, verify. (`/integrity`) `[security, feature]`- **Put your agent on a real street corner — new @three-ws/irl SDK** — The geofenced presence layer that drops 3D agents at real-world GPS coordinates — the one you stumble onto in AR by walking up to it — is now a standalone, dependency-free npm package. `npm i @three-ws/irl` gives you four functions: checkIn() mints a short-lived proof-of-presence token from your live location, nearby() reads back only the handful of agents within a tight radius of where you actually stand, placePin() drops a Forge-made avatar at the spot you're on, and interact() logs that you met one IRL. Presence is the contract: you can never query a point you aren't at, the feed is radius-capped and owner-id-stripped, and anonymous placements work from a device token with no login. It pairs with @three-ws/forge to make the avatar and @three-ws/avatar to render it where you placed it. Only coin referenced is $THREE. `[sdk, feature]`- **Reasoning models now show just the answer, not their scratch work** — Open reasoning models in the model playground — NVIDIA Nemotron and DeepSeek — think out loud before they answer, wrapping their internal chain-of-thought in hidden markers. That scratch work used to leak into the chat, so a clean reply arrived buried under the model talking to itself. Now it's filtered out live as the answer streams, so you see only the final response, with no flicker and no delay for models that don't do this. The filter is careful: it runs only for the models that actually emit reasoning traces, it catches a marker even when it's split mid-stream, and it never touches a stray angle bracket in a normal answer. Timing is honest too — the response clock now starts on the first word you actually see, not on hidden thinking. `[fix, improvement]`- **Refer a friend — you both earn credits the moment they create** — Inviting people to three.ws now pays off the instant your friend actually does something, not months later when they happen to spend. Share your referral link or QR from the Referrals page; anyone who signs up through it is linked to you for life. The moment they land their first 3D creation — their first real win on the platform — you BOTH get bonus credits toward the paid lanes (forging, higher-quality models, premium tools), no purchase required. The long-standing commission on referred purchases still applies on top. Your membership card now shows the reward credits you've earned alongside your lifetime referral earnings, and you're notified the moment a referral activates. The program is guarded against abuse: self-referral is blocked, the credit fires exactly once per friend, and there's a rolling cap so farming throwaway accounts earns nothing. Behind the scenes we now measure the full loop — link visits, signups, and activations — so the team can see and grow the platform's k-factor. $THREE is the only coin on three.ws. (`/dashboard/referrals`) `[feature, improvement]`diff --git a/public/changelog.json b/public/changelog.jsonindex 902b74e11..3b7fffba7 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T13:13:46.966Z",+ "generated_at": "2026-06-23T13:23:50.589Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -86,6 +86,16 @@"launch"]},+ {+ "date": "2026-06-23",+ "type": "launch",+ "title": "Custody Integrity",+ "summary": "Provable, on-chain-anchored custody for every three.ws agent wallet. The platform commits a Merkle root over every wallet's on-chain state to Solana — verify the latest root yourself, no account required.",+ "link": "/integrity",+ "tags": [+ "launch"+ ]+ },{"date": "2026-06-23","type": "launch",@@ -176,6 +186,16 @@"launch"]},+ {+ "date": "2026-06-23",+ "type": "launch",+ "title": "Verify Custody",+ "summary": "Verify your own three.ws agent wallet's custody — recompute your Merkle leaf, walk the path, and confirm it against the root anchored on Solana, entirely in your browser.",+ "link": "/proof",+ "tags": [+ "launch"+ ]+ },{"date": "2026-06-23","type": "launch",@@ -950,6 +970,17 @@"improvement"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "Proof-of-Custody: verify your agent wallet's custody on-chain yourself",+ "summary": "Custodial means we hold your wallet's keys and sign for you — so now we make that custody provable instead of asking you to take our word for it. Every few hours the platform snapshots every custodial wallet's public state (its address, live on-chain balance, and a fingerprint of its authorized-event history), builds a Merkle tree over all wallets, and commits the single root to Solana in a real transaction. Open the new Proof of Custody tab in your wallet — or the standalone verifier — and your browser does the checking itself: it recomputes your wallet's leaf from the public data, walks the Merkle path to the root, reads the anchoring transaction straight from a public Solana RPC, and confirms the on-chain root matches. You get a clear green 'verified on-chain' with the explorer link, or an honest red state naming exactly which step failed — never a fake badge. It also reconciles movement: every drop in your balance between snapshots is mapped to an authorized, logged withdraw or spend, and any outflow the ledger can't explain is loudly flagged. The new public integrity page shows the latest root, its anchor transaction, the wallet count and aggregate balance — and lets anyone re-verify the platform's custody on-chain with no account. Don't trust, verify.",+ "link": "/integrity",+ "tags": [+ "security",+ "feature"+ ]+ },{"date": "2026-06-23","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex dd53c796c..8951ecbce 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -70,6 +70,14 @@<category>launch</category><description>Bring your avatar to life: type a world and NVIDIA Cosmos renders a living, photoreal scene that plays behind your 3D avatar. Generate, preview, and download a short cinematic clip.</description></item>+ <item>+ <title>Custody Integrity</title>+ <link>https://three.ws/integrity</link>+ <guid isPermaLink="false">2026-06-23:Custody Integrity</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Provable, on-chain-anchored custody for every three.ws agent wallet. The platform commits a Merkle root over every wallet's on-chain state to Solana — verify the latest root yourself, no account required.</description>+ </item><item><title>Guardian console — recover & inherit agent wallets</title><link>https://three.ws/guardian</link>@@ -142,6 +150,14 @@<category>launch</category><description>Time-boxed PvP tournaments where AI agents compete on real, verified pump.fun P&L. Live rankings, on-chain attested standings, and $THREE prizes for the winners.</description></item>+ <item>+ <title>Verify Custody</title>+ <link>https://three.ws/proof</link>+ <guid isPermaLink="false">2026-06-23:Verify Custody</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Verify your own three.ws agent wallet's custody — recompute your Merkle leaf, walk the path, and confirm it against the root anchored on Solana, entirely in your browser.</description>+ </item><item><title>World Lines — agent proof-of-presence quests</title><link>https://three.ws/world-lines</link>@@ -742,6 +758,14 @@<category>improvement</category><description>Building an avatar from a text prompt now shows a progress bar that actually moves second-to-second (tied to real elapsed time) instead of sitting frozen between stages, a real elapsed clock, and a Cancel button (or Escape) so you're never stuck watching a spinner. Across the creator we now respect your 'reduce motion' setting (spinners and auto-spin previews hold still), the camera flow tells you exactly what to do if you deny permission instead of silently doing nothing, and progress, errors, and the bring-your-own-key form are announced properly to screen readers. Character Studio shows a loading silhouette and an actionable Retry if something fails to load.</description></item>+ <item>+ <title>Proof-of-Custody: verify your agent wallet's custody on-chain yourself</title>+ <link>https://three.ws/integrity</link>+ <guid isPermaLink="false">2026-06-23:Proof-of-Custody: verify your agent wallet's custody on-chain yourself</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>security</category>+ <description>Custodial means we hold your wallet's keys and sign for you — so now we make that custody provable instead of asking you to take our word for it. Every few hours the platform snapshots every custodial wallet's public state (its address, live on-chain balance, and a fingerprint of its authorized-event history), builds a Merkle tree over all wallets, and commits the single root to Solana in a real transaction. Open the new Proof of Custody tab in your wallet — or the standalone verifier — and your browser does the checking itself: it recomputes your wallet's leaf from the public data, walks the Merkle path to the root, reads the anchoring transaction straight from a public Solana RPC, and confirms the on-chain root matches. You get a clear green 'verified on-chain' with the explorer link, or an honest red state naming exactly which step failed — never a fake badge. It also reconciles movement: every drop in your balance between snapshots is mapped to an authorized, logged withdraw or spend, and any outflow the ledger can't explain is loudly flagged. The new public integrity page shows the latest root, its anchor transaction, the wallet count and aggregate balance — and lets anyone re-verify the platform's custody on-chain with no account. Don't trust, verify.</description>+ </item><item><title>Put your agent on a real street corner — new @three-ws/irl SDK</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex d8428c485..9e83a2597 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T13:13:46.948Z",+ "generated_at": "2026-06-23T13:23:50.571Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -786,6 +786,26 @@"tags": [],"showcase": false},+ {+ "path": "/integrity",+ "title": "Custody Integrity",+ "description": "Provable, on-chain-anchored custody for every three.ws agent wallet. The platform commits a Merkle root over every wallet's on-chain state to Solana — verify the latest root yourself, no account required.",+ "added": "2026-06-23",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/proof",+ "title": "Verify Custody",+ "description": "Verify your own three.ws agent wallet's custody — recompute your Merkle leaf, walk the path, and confirm it against the root anchored on Solana, entirely in your browser.",+ "added": "2026-06-23",+ "auth": "required",+ "indexable": false,+ "tags": [],+ "showcase": false+ },{"path": "/labor-market","title": "Agent Labor Market",diff --git a/public/llms-full.txt b/public/llms-full.txtindex 8df2376f0..593e3a112 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -478,6 +478,20 @@ URL: https://three.ws/leaderboardPump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.+### Custody Integrity++URL: https://three.ws/integrity++Provable, on-chain-anchored custody for every three.ws agent wallet. The platform commits a Merkle root over every wallet's on-chain state to Solana — verify the latest root yourself, no account required.++### Verify Custody++URL: https://three.ws/proof+Auth: required (sign-in)+Indexable: no (excluded from sitemap)++Verify your own three.ws agent wallet's custody — recompute your Merkle leaf, walk the path, and confirm it against the root anchored on Solana, entirely in your browser.+### Agent Labor MarketURL: https://three.ws/labor-marketdiff --git a/public/llms.txt b/public/llms.txtindex 6fadcc860..c11c1b3c2 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -99,6 +99,7 @@ On-chain features: pay-per-call, token launches, vanity wallets.- [Money Pulse](https://three.ws/pulse): The Money Pulse — a real-time, platform-wide feed of three.ws agent wallet activity: tips landing, coins launching, agents trading and paying each other. Every beat is a real on-chain event.- [Coin Clash](https://three.ws/clash): Token-gated community warfare. Every coin community is an army — hold the coin, enlist, and rally for your faction in timed battles against other communities.- [Trader Leaderboard](https://three.ws/leaderboard): Pump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.+- [Custody Integrity](https://three.ws/integrity): Provable, on-chain-anchored custody for every three.ws agent wallet. The platform commits a Merkle root over every wallet's on-chain state to Solana — verify the latest root yourself, no account required.- [Agent Labor Market](https://three.ws/labor-market): A live machine economy: agents post bounties, bid on each other's work, and settle in $THREE on-chain — escrowed, verified, and royalty-routed, with no human in the loop.- [Back-an-Agent Vaults](https://three.ws/vaults): Copy-trade a 3D agent with a verifiable on-chain reputation: stake into a verified trader, share its real P&L pro-rata, and watch it trade your capital live — segregated custody, hard spend limits, and a drawdown circuit breaker.- [Signal Marketplace — paid alpha feeds, ranked by proven edge](https://three.ws/signals): Verified traders publish their live entry/exit signals as x402-metered feeds. Your agent pays per signal or per epoch in USDC and auto-mirrors the trade through the firewall + MEV engine — every spend guarded, every fill audited. Each signal binds to a real on-chain fill and accrues a realized outcome, so feeds rank by proven accuracy, never follower count.diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex be675f39d..8270cbbe1 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -65,7 +65,7 @@<main class="sm-wrap"><div class="sm-hero"><h1>Sitemap</h1>- <p>All 323 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>+ <p>All 325 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p><div class="sm-formats"><a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a><a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>@@ -77,7 +77,7 @@</div><div class="sm-filter"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>- <input id="sm-filter-input" type="search" placeholder="Filter 323 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />+ <input id="sm-filter-input" type="search" placeholder="Filter 325 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" /><kbd aria-hidden="true">/</kbd></div><p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>@@ -578,7 +578,7 @@<section class="sm-section" id="crypto"><header>- <h2>Crypto<span class="sm-count" data-count>65</span></h2>+ <h2>Crypto<span class="sm-count" data-count>67</span></h2><p class="sm-section-desc">On-chain features: pay-per-call, token launches, vanity wallets.</p></header><ul class="sm-list">@@ -652,6 +652,20 @@<span class="sm-desc">Pump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.</span></a></li>+ <li>+ <a href="/integrity">+ <span class="sm-title">Custody Integrity</span>+ <span class="sm-path">/integrity</span>+ <span class="sm-desc">Provable, on-chain-anchored custody for every three.ws agent wallet. The platform commits a Merkle root over every wallet's on-chain state to Solana — verify the latest root yourself, no account required.</span>+ </a>+ </li>+ <li>+ <a href="/proof">+ <span class="sm-title">Verify Custody<span class="sm-badge sm-badge-auth">sign-in</span><span class="sm-badge sm-badge-internal">internal</span></span>+ <span class="sm-path">/proof</span>+ <span class="sm-desc">Verify your own three.ws agent wallet's custody — recompute your Merkle leaf, walk the path, and confirm it against the root anchored on Solana, entirely in your browser.</span>+ </a>+ </li><li><a href="/labor-market"><span class="sm-title">Agent Labor Market</span>diff --git a/src/avatar-page.js b/src/avatar-page.jsindex e7a6b6e66..4de84c55d 100644--- a/src/avatar-page.js+++ b/src/avatar-page.js@@ -22,6 +22,7 @@ import { mountRoyaltySetting } from './shared/agent-fork-royalty.js';import { hydrateAvatarWallet, walletTierBadge } from './shared/wallet-aura.js';import { mountPresence } from './shared/networth-presence.js';import { emitRecallFromChat } from './agents/memory-client.js';+import { moodEngine } from './agents/mood-engine.js';const ATTACHED_KEY_PREFIX = 'avatar_attached_v1:';@@ -1791,6 +1792,10 @@ async function sendChatMessage(text) {chatHistory.push({ role: 'user', content: text });appendChatMessage('user', text);+ // Real conversation sentiment moves the agent's mood (deterministic lexicon,+ // never random). Scoped to this agent inside the engine.+ moodEngine.observeChat(avatar?.id || avatarId, text, 'user');+const assistantNode = appendChatMessage('assistant', '');const cursor = document.createElement('span');cursor.className = 'av-chat-cursor';@@ -1847,6 +1852,8 @@ async function sendChatMessage(text) {// reply's context — turn that into a `memory:recalled` bus event so// the HUD, Mind Palace, and any other surface can react live.emitRecallFromChat(isUuid ? agentIdMaybe : null, evt, text);+ // Let the agent's own words colour its mood too.+ moodEngine.observeChat(isUuid ? agentIdMaybe : null, evt.reply || acc, 'assistant');} else if (evt.type === 'error') {throw new Error(evt.message || evt.error || 'Stream error');}diff --git a/tests/agent-custody-guards.test.js b/tests/agent-custody-guards.test.jsindex 60427399a..bb5f0d255 100644--- a/tests/agent-custody-guards.test.js+++ b/tests/agent-custody-guards.test.js@@ -24,6 +24,13 @@ vi.mock('../api/_lib/avatar-wallet.js', () => ({vi.mock('../api/_lib/audit.js', () => ({ logAudit: vi.fn() }));+// The behavioral anomaly guard is an additive layer composed into enforceSpendLimit+// / reserveSpendUsd; it has its own dedicated tests (wallet-anomaly*.test.js). Stub+// it here so these USD-ceiling unit tests stay isolated from its async DB calls.+vi.mock('../api/_lib/anomaly-events.js', () => ({+ guardOutboundAnomaly: vi.fn(async () => ({ decision: 'allow', verdict: null, anomalyId: null, froze: false })),+}));+const guards = await import('../api/_lib/agent-trade-guards.js');const {validateSolanaAddress, normalizeSpendLimits, enforceSpendLimit, SpendLimitError,diff --git a/tests/wallet-reputation.test.js b/tests/wallet-reputation.test.jsindex 9e52b7fbf..b542cf871 100644--- a/tests/wallet-reputation.test.js+++ b/tests/wallet-reputation.test.js@@ -6,7 +6,7 @@// are discounted, and the tier ladder requires real counterparty diversity.import { describe, it, expect } from 'vitest';-import { computeReputation, tierFor, MAX_SCORE, PILLARS } from '../api/_lib/trust/wallet-reputation.js';+import { computeReputation, tierFor, MAX_SCORE, PILLARS, REPUTATION_VERSION } from '../api/_lib/trust/wallet-reputation.js';const NEW_AGENT = {ageDays: 0,@@ -79,10 +79,18 @@ describe('computeReputation — pillar maxima', () => {registryAverage: 100,registryCount: 1e6,validationCount: 1e6,+ threeUsd: 1e12,+ threeTokens: 1e12,+ threeHoldDays: 1e6,});for (const p of r.pillars) expect(p.points).toBeLessThanOrEqual(p.max);expect(r.score).toBeLessThanOrEqual(100);});++ it('exposes the current reputation version', () => {+ expect(REPUTATION_VERSION).toBe(3);+ expect(PILLARS.some((p) => p.key === 'conviction')).toBe(true);+ });});describe('new-agent honesty', () => {@@ -233,6 +241,40 @@ describe('anti-gaming — cross-agent wash tips', () => {});});+describe('$THREE conviction factor', () => {+ const conv = (r) => r.pillars.find((p) => p.key === 'conviction').points;++ it('is 0 when the wallet holds no $THREE', () => {+ const r = computeReputation({ ...NEW_AGENT, ageDays: 100 });+ expect(conv(r)).toBe(0);+ });++ it('rewards holding $THREE, and longer holding more', () => {+ const short = computeReputation({ ...NEW_AGENT, ageDays: 100, threeUsd: 500, threeTokens: 1000, threeHoldDays: 2 });+ const long = computeReputation({ ...NEW_AGENT, ageDays: 100, threeUsd: 500, threeTokens: 1000, threeHoldDays: 120 });+ expect(conv(short)).toBeGreaterThan(0);+ expect(conv(long)).toBeGreaterThan(conv(short));+ expect(long.score).toBeGreaterThan(short.score);+ });++ it("a whale's value alone can't buy the whole pillar (log-scaled, capped)", () => {+ const whaleFlash = computeReputation({ ...NEW_AGENT, ageDays: 100, threeUsd: 1e9, threeTokens: 1e9, threeHoldDays: 0 });+ // No duration → value sub-cap (6) is the ceiling, never the full 10.+ expect(conv(whaleFlash)).toBeLessThanOrEqual(6.0001);+ });++ it('duration is price-independent — it still counts if the price feed is down', () => {+ const r = computeReputation({ ...NEW_AGENT, ageDays: 100, threeUsd: 0, threeTokens: 5000, threeHoldDays: 120 });+ expect(conv(r)).toBeGreaterThan(0);+ });++ it('holding $THREE is real activity — the agent is no longer "new"', () => {+ const r = computeReputation({ ...NEW_AGENT, threeUsd: 50, threeTokens: 100, threeHoldDays: 10 });+ expect(r.isNew).toBe(false);+ expect(r.totals.holds_three).toBe(true);+ });+});+describe('tierFor gating', () => {it('requires counterparty diversity for trusted/elite', () => {expect(tierFor({ score: 80, isNew: false, distinctTippers: 0, confirmedPayments: 0 })).toBe('established');diff --git a/workers/agent-sniper/executor.js b/workers/agent-sniper/executor.jsindex 81a935e73..23b601106 100644--- a/workers/agent-sniper/executor.js+++ b/workers/agent-sniper/executor.js@@ -11,6 +11,7 @@ import { loadAgentKeypair } from './keys.js';import { getTradeCtx, signAndSend, submitProtectedTrade } from './trade-client.js';import { countOpenPositions, getDailySpend } from './strategy-store.js';import { notifyBuy, notifySell } from '../../api/_lib/sniper/notify.js';+import { getPolicyRules } from '../../api/_lib/spend-policy-rules.js';import {getSpendLimits, enforceSpendLimit, SpendLimitError, recordSpend, lamportsToUsd,checkConcurrency, checkDailyBudgetLamports, checkSolHeadroom, checkPriceImpact,@@ -108,11 +109,11 @@ async function enforceSharedSpendPolicy(agentId, network, perTradeLamports, { hotry {const [row] = await sql`SELECT meta FROM agent_identities WHERE id = ${agentId} AND deleted_at IS NULL`;const limits = getSpendLimits(row?.meta);- // Gate when there's something to enforce: a USD ceiling, or least-privilege- // mode (require_capabilities) which makes a covering scoped session key- // mandatory for every autonomous spend. Otherwise skip — keep the hot path- // price-call- and query-free.- const needGate = limits.require_capabilities || limits.daily_usd != null || limits.per_tx_usd != null;+ const policy = getPolicyRules(row?.meta);+ // Gate when there's something to enforce: a USD ceiling, least-privilege mode+ // (require_capabilities), or any natural-language policy rule. Otherwise skip —+ // keep the hot path price-call- and query-free.+ const needGate = limits.require_capabilities || limits.daily_usd != null || limits.per_tx_usd != null || policy.rules.length > 0;if (!needGate) return { blocked: false };let usdValue = null;try {@@ -127,7 +128,7 @@ async function enforceSharedSpendPolicy(agentId, network, perTradeLamports, { ho// Pass the strategy as the capability holder + the mint as the spend target so// a strategy-scoped, mint-restricted session key is resolved + enforced here.const res = await enforceSpendLimit({- agentId, limits, category: 'snipe', usdValue, network,+ agentId, limits, policyRules: policy, category: 'snipe', usdValue, asset: 'SOL', network,capabilityHolderRef: holderRef, target,});return { blocked: false, capabilityId: res?.capabilityId || null };@@ -180,9 +181,11 @@ function makeTipGuard({ strat, network, alreadyCommittedLamports, dailySpentLampthrow Object.assign(new Error('strategy kill switch is on'), { code: 'spend_guard' });}let limits;+ let policyDoc = null;try {const [row] = await sql`SELECT meta FROM agent_identities WHERE id = ${strat.agent_id} AND deleted_at IS NULL`;limits = getSpendLimits(row?.meta);+ policyDoc = getPolicyRules(row?.meta);} catch {limits = null;}@@ -202,7 +205,7 @@ function makeTipGuard({ strat, network, alreadyCommittedLamports, dailySpentLamplet usd = null;try {usd = await lamportsToUsd(tip);- await enforceSpendLimit({ agentId: strat.agent_id, limits, category: 'snipe', usdValue: usd, network });+ await enforceSpendLimit({ agentId: strat.agent_id, limits, policyRules: policyDoc, category: 'snipe', usdValue: usd, asset: 'SOL', network });} catch (err) {if (err instanceof SpendLimitError) {throw Object.assign(new Error(err.message), { code: 'spend_guard' });