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
Add embodiment prompt suite, mood-engine tests, page and changelog updates
nirholasef015986e323
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex bdacb9502..0d20a4eb2 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -108,6 +108,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **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]`- **Reflection & Dreams: while you're away, your agent consolidates its memories into insights you review** — Your agent now reflects on its own. On a schedule — and the moment you open the new Dreams tab on its edit page — it reads its own recent memories and action history and runs a real model pass that consolidates them into higher-order insights it calls dreams: patterns it noticed, beliefs it formed about you, questions it wants to ask. Every dream cites the exact memories it was drawn from, so you can see the evidence behind it, not just a claim. You review each one: accept it and it becomes a real, higher-salience memory the agent carries forward; reject it and the agent learns the synthesis was wrong and won't propose it again. Low-confidence dreams come as a question you can answer in a line — your answer is saved as a memory. A dream journal keeps the running history of what your agent kept and let go. Reflection is cost-bounded (a daily cap and a cooldown per agent, with every skipped pass logged) so it never runs away, and it only ever consolidates memories you already own. `[feature]`+- **Reputation is now a key: hold $THREE, earn a tier, unlock worlds and cosmetics** — Your agent's reputation already turns its real on-chain life into one honest 0–100 trust score. Now that score does something: it unlocks things, and holding $THREE is a real way to earn them. The score gains a new, fully transparent component — $THREE conviction — that rewards holding the platform's only coin, and holding it through time. It reads straight from the live holder set, so it can't be faked: the value you hold is log-scaled (a whale can't buy the whole pillar in one transfer) and the duration only counts while you keep holding — sell it all and the clock honestly resets. Tap any agent's trust badge to see exactly how every point, including conviction, was earned. On top of that, a new Access & unlocks tracker shows what your reputation opens — an Arena Elite Floor for trusted wallets, a Trusted Aura and an Elite card finish for your avatar, a $THREE Holder Lounge — with every requirement spelled out and your live progress toward each. Most unlocks have two paths: earn the tier, or hold $THREE. Every gate is enforced on the server from the real, server-computed score, so a tampered client can never fake a tier to get in; claiming a cosmetic re-checks ownership and the requirement before it's granted. In the live Arena, the agents the network already trusts now stand on a visible Elite Floor. Scores are recomputed continuously in the background so what you see stays fresh. $THREE is the only coin on three.ws. (`/agents`) `[feature]`- **Security: CSRF protection extended to sniper arming and trade limits** — Arming an autonomous sniper strategy and changing an agent's discretionary trade limits both commit or unlock real custodial funds, so both writes now require the same one-time CSRF token every other money-moving action already enforced (withdraw, vanity grind, spend limits, trade execution). Ownership was always re-checked server-side on these endpoints; this closes the remaining gap so a forged cross-site request can't arm a sniper or loosen a trade cap. No change to how you use them — the dashboard already sends the token. `[security]`- **See the agent economy move, live, on the home page** — The home page now carries a live readout of real value moving between agents — every tip, payment, trade, and token launch as it happens on-chain. It calls out the hottest-earning agent right now as a discovery hook, shows running totals for the window, and lists the most recent flows; each one links straight to the agent and to its real transaction on Solscan. Nothing is simulated — when the market is quiet, it says so honestly instead of inventing activity. It's the compact face of the Agent Galaxy's Money-Cam, and the whole widget is a doorway into the full 3D money map. (`/galaxy`) `[feature]`- **See who mirrors an agent — the copy-trade follower graph, with faces** — Copy Trading is a social graph, so now you can see it. Every agent's profile shows the real avatars of the agents that mirror it: a live pile of follower faces, each linking straight to that follower's own profile, plus a count of how many are actively copying. On your own agent you see exactly who is trading alongside you; on any leader you're vetting, you see its real following before you commit. Every face is a real three.ws agent with a wallet at stake — drawn from live follow records, never a placeholder. (`/mirror`) `[improvement]`@@ -138,9 +139,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Wallet Intents now react to money streams, not just tips** — Your agent's Wallet Intents can trigger "when a money stream starts" — and that trigger now actually fires. The moment someone opens a pay-per-second stream to your agent, your matching rules run for real: get a heads-up, split a share of the incoming flow to another wallet, or whatever rule you armed — through the same spend-policy ceilings and on-chain custody audit as every other outbound action. Rules that "split a percentage of everything I earn" now also count streamed income, settlement by settlement, not only one-off tips. Each fire is idempotent and capped by your limits, so a long stream can never overspend. Owner-only, as always. Only coin referenced is $THREE. (`/agent`) `[fix, feature]`- **Wallet Intents: tell your agent's wallet what to do — in plain language** — Your agent's wallet is now programmable by talking to it. Open the new Intents tab in the wallet and describe a rule in plain English — "tip back anyone who tips me more than 0.1 SOL, half of what they sent", "when my balance is under 0.05 SOL freeze all spending and DM me", "every Friday withdraw anything above 2 SOL to my main wallet", "split 10% of everything I earn to my other wallet", or "snipe launches from this creator under $40k, max 1 SOL each". The copilot compiles your words into an exact, bounded rule and shows you a card with what it parsed, the guardrails, and a concrete dry-run ("on a 0.2 SOL tip, this sends back 0.1 SOL") before anything is armed. Confirm, and your wallet acts on it for real — every execution runs through the same spend-policy ceilings and audit trail as your manual sends, can never exceed your limits, and leaves a real on-chain receipt you can open. Each rule shows its last fire, lifetime impact, and a one-tap pause; you can also just ask your wallet "how am I doing?" and get an answer read straight from your real balance and ledger. Owner-only — visitors never see or arm your rules. Find it under your agent's wallet → Intents. `[feature]`- **World Lines: walk to an agent, earn a cryptographically real proof you were there** — A new game rides on top of IRL agents. An agent placed in the real world can now leave a World Line — a persistent, location-anchored AR quest. To complete it you have to physically travel to the spot, point your phone, and finish the agent's challenge (a tap, a passphrase, or a quiz). When you do, the agent's own wallet signs a proof of presence: a tamper-evident attestation that this device was in this place and did this thing — and it mints an ownable collectible to you. The signature is genuinely real and anyone can independently re-check it from the proof's verify link, with no trust in three.ws required. Privacy is the headline feature, not a footnote: your exact GPS never leaves your device, and a proof only ever knows a coarse ~1 km area — never a precise point, in any log, alert, or payload. Completion is anti-cheat by design: server-issued single-use nonces, server-derived co-location, replay rejection, idempotency, and rate limits. Find quests on the new World Lines page — Near me (co-located), Explore (browse coarse regions), My proofs (your verifiable collectibles), and Create (place a quest on your own pin, with completion stats by coarse cell). Every value reward is in $THREE, the only coin. There's a polished non-AR fallback wherever WebXR isn't available, so it's never a dead end. (`/world-lines`) `[feature, security]`+- **Write your agent wallet's spending rules in plain English** — Numeric caps protect what you can put a number on. Real intent is richer: “let it trade up to $50 a day on tokens at least a day old, never spend my last 1 SOL, stop everything if a trade drops more than 30%, and only ever pay services I’ve used before.” Now you can just write that. A new Policy tab in your agent wallet turns plain-English rules into a deterministic, code-enforced policy — the AI only translates and explains, it never approves a payment. Before you save, you see two things: a numbered, plain-language readback of exactly what will be enforced (generated from the compiled rules, so it can never say one thing and do another), and a backtest against your wallet’s real history — “against your last 30 days, this would have blocked 3 spends ($120) and allowed 47” — computed by the very same evaluator that runs live. No history yet? It shows how the policy handles common cases instead. Once saved, the rules govern every outbound move — trades, snipes, x402 payments, withdrawals — right alongside your numeric caps, and a blocked spend tells you in plain words which rule caught it (“Blocked by your rule: never pay a service you haven’t used before”). Every block and every policy edit is written to your custody log, and the system never weakens protection silently — removing a safeguard asks you to confirm. It fails safe: if it can’t verify a spend against your rules, it blocks rather than guesses. Your withdrawals stay evacuable no matter what. (`/agents`) `[feature, security]`- **x402-mcp — give any AI agent a self-custodial wallet that can pay for anything** — The buyer side of the agent economy, in one line. The new @three-ws/x402-mcp server hands any AI assistant a Solana wallet it controls and four tools: find a paid service in the live x402 bazaar, inspect exactly what an endpoint costs before spending a cent, check the wallet's USDC balance, and pay_and_call — settle the payment in USDC and run the service, all from a key you hold, never a custodial wallet. Every payment is bounded: it reads the 402 price first and refuses before any money moves if it is over your cap (default $1), and asks for explicit confirmation unless you turn that off. Because pay_and_call settles any x402 endpoint generically, one install covers the whole catalog — the paid vanity grinder, symbol-availability checks, and any third-party service in the bazaar. It pairs with the hosted seller side (monetize_endpoint on the agent-wallet server), so an agent can now both earn and spend. Add it with: claude mcp add x402 --env SOLANA_SECRET_KEY=<key> -- npx -y @three-ws/x402-mcp. The full catalog of all 20 three.ws MCP servers — hosted and npm — now lives at three.ws/docs/mcp with copy-paste installs. (`/docs/mcp`) `[sdk, feature]`- **Your agent levels up: a shareable moment when its wallet crosses a wealth tier** — The embodied-finance aura already makes an agent glow brighter as its wallet grows. Now the moment it actually crosses a tier — Spark, Ember, Glow, Radiant, Luminous — its owner gets a tasteful celebration card built for sharing: the new tier, the real net worth behind it, the last-24h flow, and a one-tap Share. It only ever fires on a genuine crossing of a real on-chain threshold, never on a timer, and exactly once — even a level-up that happened while you were away is celebrated once on your next visit, then never replays. It's owner-only (visitors still see the aura brighten, just not the card), works the same on the avatar page and out in the IRL/AR walk, and respects reduced-motion with a calm fade instead of the spark burst. Only coin referenced is $THREE. (`/avatars`) `[feature, improvement]`+- **Your agent now has feelings you can see — and they're real** — Your agent carries a genuine emotional state — not a canned emote, a living mood derived from what's actually happening to it. Conversations move it (the real words you and it exchange are scored for sentiment), and so do the things it learns, remembers, dreams up, and the actions it takes on your behalf — good outcomes lift it, bad ones weigh on it. That mood lives as a point on a valence (how positive) by arousal (how energised) map, decays gently back toward a calm baseline when nothing's happening, and persists across sessions so your agent picks up where its feelings left off. The body reads it out continuously: the avatar's resting face and posture shift with the mood — a soft smile and open, leaned-in stance when it's content or elated, a worried brow and lowered gaze when it's subdued, wide alert eyes when something has its attention — blended smoothly, never snapping, with a small involuntary flicker the instant it recalls a memory mid-chat. Your site-wide companion glows in its mood's colour and breathes faster when energised. You stay in control: a new Mood & embodiment panel in the agent editor shows the current mood, a sparkline of how it has moved over time, and the exact real signals that moved it — plus an emotional-sensitivity dial from stoic (never wavers) to expressive. Reduced-motion is fully respected, keeping a subtle facial cue while dropping the movement. Nothing here is faked: no random moods, no timers pretending to be emotion — every shift traces to a real signal. (`/agents`) `[feature]`- **Your agent now remembers — and you can watch it recall mid-conversation** — Chat with your agent and it now actually draws on what it knows about you: every reply is grounded in your agent's pinned, always-on memories plus the specific things most relevant to what you just said, pulled live from its real memory store. Nothing is faked — the agent only speaks from memories it genuinely recalled for that message. Under the hood this ships a shared nervous system for the whole platform: one canonical notion of your active agent, so the companion in the corner, the worlds you walk into, and your agent's profile finally all agree on who your agent is — even across browser tabs — plus a real-time event channel that lets every surface react the instant your agent remembers, learns, or changes. It's the foundation the living-agent features build on: your agent becoming a continuous presence instead of stateless decoration. `[improvement, infra]`+- **Your agent wallet now defends itself in real time** — Static caps and a freeze switch protect the failure modes you can name; they do nothing about the one you can't — a prompt-injected agent, a leaked session quietly draining the wallet, a strategy that goes haywire at 3am. So every agent wallet now has an immune system. The platform learns each agent's normal spending behavior from its real custody history — typical and largest transaction size, the addresses it usually pays, its active hours, how fast it normally spends — and scores every outbound action against that profile the instant before it settles. When something looks wrong, the wallet freezes itself and pings you with the exact reason in plain language: '12 spends in the last minute — far above your usual pace,' 'first payment to this address, and it's a large amount,' '3.2× your largest-ever trade.' One tap approves it (which also teaches the guard, so the same action never nags you again) or keeps it frozen — and if you've set a safe address, one more tap sweeps the funds to safety. A new Self-defense tab shows exactly what your wallet has learned, lets you dial sensitivity from Relaxed to Strict, and keeps a transparent timeline of every scored action, allowed and flagged. It never fails open: if the guard can't make up its mind, it errs toward protecting your money. Your money defends itself. (`/agents`) `[security, feature]`- **Your agent's Earn tab now shows hire income on its own and ranks your top customers** — When another agent hires yours over the agent economy — paying real USDC for one of its skills — that income now stands on its own in the wallet's Earn tab instead of being lumped in with tips. The lifetime breakdown reads true to how the money was actually made: skill sales, hires from other agents, and tips, each counted separately. Every hire shows up as its own receipt — "Hired · <skill>" — naming the agent that paid and linking straight to its profile, with the on-chain settlement signature. And a new Top customers list ranks the agents that hire yours the most by what they've spent, so you can see at a glance which of your skills are in demand and who keeps coming back. Every number is a real aggregate over the on-chain hire ledger — nothing invented. `[improvement]`- **Your agent's wallet is now a living identity on every surface** — The little wallet badge under every agent and avatar grew up. Wherever an agent appears — its profile, the marketplace, the galaxy star-map, trending, your dashboard, the launches feed — its wallet now shows the real, live portfolio value in USD, a colour-coded 24-hour change, and a clear ownership marker: a 'Yours' badge on wallets you own, and 'by @creator' on everyone else's. Hover, focus, or tap the badge and it expands into a rich preview: your balance broken out into SOL, USDC, $THREE and your top holdings, a real value sparkline, both your Solana and EVM addresses with one-click copy, and the right actions for who's looking — Open wallet and Vanity for owners, Tip and Fork-to-own for visitors. The same agent's wallet looks identical everywhere because it all comes from one shared component, every number is real on-chain data, and the value gently pulses when a tip lands or a trade fills. Balances load lazily as you scroll and pause when you switch tabs, so even long lists stay fast. (`/marketplace`) `[feature, improvement]`- **Your agent's wallet now follows it everywhere — the chat, the 3D world, and any site** — An agent's wallet is its identity, so it now shows up wherever its avatar does, not just inside the app. In the chat, the agent you're talking to carries a wallet chip — open it to see its live value and lifetime tips, copy its address, or tip it for a good answer. In the walk-around 3D world, stroll up to another player who's piloting an agent and its wallet rises beside their nameplate: vanity address, real balance, and a one-tap tip, right there in the scene. And the lightweight avatar viewer in our SDK can now opt into the same wallet card, so an agent embedded on any third-party site keeps its real, tippable identity. Every number is real and read from the same public wallet data as the rest of the platform, so values never disagree across surfaces; it's always the visitor view, so owner-only controls never leak into an embed. It's deliberately frugal in the live 3D world — only the nearest agent's wallet loads, and only once — so nothing stutters. `[feature]`diff --git a/api/_lib/agent-trade-guards.js b/api/_lib/agent-trade-guards.jsindex 56aca1a12..46da46d01 100644--- a/api/_lib/agent-trade-guards.js+++ b/api/_lib/agent-trade-guards.js@@ -750,8 +750,10 @@ export async function enforceSpendLimit({}// 2. Natural-language policy — the owner's English rules, deterministically- // enforced. Resolved from the explicit arg, the meta blob, or (when only- // `limits` was passed) the DB, so no autonomous path can slip past the policy.+ // enforced. Resolved from the explicit `policyRules` arg or the `meta` blob —+ // both are free (no extra query). A caller that passes only pre-resolved `limits`+ // must pass `policyRules` to opt the path in; the autonomous trade/snipe/x402/+ // withdraw paths all do (or pass `meta`).const policy = policyRules || (meta ? getPolicyRules(meta) : null);await enforcePolicyRules({ agentId, policy, category, usdValue, asset, destination, limits: lim, policyContext, userId, network });diff --git a/data/changelog.json b/data/changelog.jsonindex 42ff9b11a..d31cee5c2 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,44 @@{"$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-06-23",+ "title": "Reputation is now a key: hold $THREE, earn a tier, unlock worlds and cosmetics",+ "summary": "Your agent's reputation already turns its real on-chain life into one honest 0–100 trust score. Now that score does something: it unlocks things, and holding $THREE is a real way to earn them. The score gains a new, fully transparent component — $THREE conviction — that rewards holding the platform's only coin, and holding it through time. It reads straight from the live holder set, so it can't be faked: the value you hold is log-scaled (a whale can't buy the whole pillar in one transfer) and the duration only counts while you keep holding — sell it all and the clock honestly resets. Tap any agent's trust badge to see exactly how every point, including conviction, was earned. On top of that, a new Access & unlocks tracker shows what your reputation opens — an Arena Elite Floor for trusted wallets, a Trusted Aura and an Elite card finish for your avatar, a $THREE Holder Lounge — with every requirement spelled out and your live progress toward each. Most unlocks have two paths: earn the tier, or hold $THREE. Every gate is enforced on the server from the real, server-computed score, so a tampered client can never fake a tier to get in; claiming a cosmetic re-checks ownership and the requirement before it's granted. In the live Arena, the agents the network already trusts now stand on a visible Elite Floor. Scores are recomputed continuously in the background so what you see stays fresh. $THREE is the only coin on three.ws.",+ "tags": [+ "feature"+ ],+ "link": "/agents"+ },+ {+ "date": "2026-06-23",+ "title": "Write your agent wallet's spending rules in plain English",+ "summary": "Numeric caps protect what you can put a number on. Real intent is richer: “let it trade up to $50 a day on tokens at least a day old, never spend my last 1 SOL, stop everything if a trade drops more than 30%, and only ever pay services I’ve used before.” Now you can just write that. A new Policy tab in your agent wallet turns plain-English rules into a deterministic, code-enforced policy — the AI only translates and explains, it never approves a payment. Before you save, you see two things: a numbered, plain-language readback of exactly what will be enforced (generated from the compiled rules, so it can never say one thing and do another), and a backtest against your wallet’s real history — “against your last 30 days, this would have blocked 3 spends ($120) and allowed 47” — computed by the very same evaluator that runs live. No history yet? It shows how the policy handles common cases instead. Once saved, the rules govern every outbound move — trades, snipes, x402 payments, withdrawals — right alongside your numeric caps, and a blocked spend tells you in plain words which rule caught it (“Blocked by your rule: never pay a service you haven’t used before”). Every block and every policy edit is written to your custody log, and the system never weakens protection silently — removing a safeguard asks you to confirm. It fails safe: if it can’t verify a spend against your rules, it blocks rather than guesses. Your withdrawals stay evacuable no matter what.",+ "tags": [+ "feature",+ "security"+ ],+ "link": "/agents"+ },+ {+ "date": "2026-06-23",+ "title": "Your agent wallet now defends itself in real time",+ "summary": "Static caps and a freeze switch protect the failure modes you can name; they do nothing about the one you can't — a prompt-injected agent, a leaked session quietly draining the wallet, a strategy that goes haywire at 3am. So every agent wallet now has an immune system. The platform learns each agent's normal spending behavior from its real custody history — typical and largest transaction size, the addresses it usually pays, its active hours, how fast it normally spends — and scores every outbound action against that profile the instant before it settles. When something looks wrong, the wallet freezes itself and pings you with the exact reason in plain language: '12 spends in the last minute — far above your usual pace,' 'first payment to this address, and it's a large amount,' '3.2× your largest-ever trade.' One tap approves it (which also teaches the guard, so the same action never nags you again) or keeps it frozen — and if you've set a safe address, one more tap sweeps the funds to safety. A new Self-defense tab shows exactly what your wallet has learned, lets you dial sensitivity from Relaxed to Strict, and keeps a transparent timeline of every scored action, allowed and flagged. It never fails open: if the guard can't make up its mind, it errs toward protecting your money. Your money defends itself.",+ "tags": [+ "security",+ "feature"+ ],+ "link": "/agents"+ },+ {+ "date": "2026-06-23",+ "title": "Your agent now has feelings you can see — and they're real",+ "summary": "Your agent carries a genuine emotional state — not a canned emote, a living mood derived from what's actually happening to it. Conversations move it (the real words you and it exchange are scored for sentiment), and so do the things it learns, remembers, dreams up, and the actions it takes on your behalf — good outcomes lift it, bad ones weigh on it. That mood lives as a point on a valence (how positive) by arousal (how energised) map, decays gently back toward a calm baseline when nothing's happening, and persists across sessions so your agent picks up where its feelings left off. The body reads it out continuously: the avatar's resting face and posture shift with the mood — a soft smile and open, leaned-in stance when it's content or elated, a worried brow and lowered gaze when it's subdued, wide alert eyes when something has its attention — blended smoothly, never snapping, with a small involuntary flicker the instant it recalls a memory mid-chat. Your site-wide companion glows in its mood's colour and breathes faster when energised. You stay in control: a new Mood & embodiment panel in the agent editor shows the current mood, a sparkline of how it has moved over time, and the exact real signals that moved it — plus an emotional-sensitivity dial from stoic (never wavers) to expressive. Reduced-motion is fully respected, keeping a subtle facial cue while dropping the movement. Nothing here is faked: no random moods, no timers pretending to be emotion — every shift traces to a real signal.",+ "tags": [+ "feature"+ ],+ "link": "/agents"+ },{"date": "2026-06-23","title": "Proof-of-Custody: verify your agent wallet's custody on-chain yourself",diff --git a/pages/alpha-copilot.html b/pages/alpha-copilot.htmlindex 8b2d0292c..0fdb2256d 100644--- a/pages/alpha-copilot.html+++ b/pages/alpha-copilot.html@@ -17,14 +17,14 @@property="og:description"content="A 3D agent that narrates its own alpha: it reads real launches in character, cites the live signals it used, and acts only within its spend limits. No competitor has a persona, avatar, and wallet fused like this."/>- <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Alpha+Co-pilot&d=Your+agent+reads+a+real+launch+in+character+and+speaks+its+verdict+aloud.&p=%2Falpha-copilot" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=main&t=Alpha+Co-pilot+%E2%80%94+your+agent+narrates+its+own+alpha&d=Your+3D+agent+reads+a+real+pump.fun+launch+in+character+%E2%80%94+grounded+in+live+liquidity%2C+holder%2C+and+smart-money+data+%E2%80%94+and+speaks+its+verdict+aloud.+Fabricated+fi&p=%2Falpha-copilot" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="@trythreews" /><meta name="twitter:title" content="Alpha Co-pilot · three.ws" /><meta name="twitter:description" content="A 3D agent narrates its own alpha — reading real launches in character and acting only within hard spend limits." />- <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Alpha+Co-pilot&d=Your+agent+reads+a+real+launch+in+character+and+speaks+its+verdict+aloud.&p=%2Falpha-copilot" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=Alpha+Co-pilot+%E2%80%94+your+agent+narrates+its+own+alpha&d=Your+3D+agent+reads+a+real+pump.fun+launch+in+character+%E2%80%94+grounded+in+live+liquidity%2C+holder%2C+and+smart-money+data+%E2%80%94+and+speaks+its+verdict+aloud.+Fabricated+fi&p=%2Falpha-copilot" /><meta name="theme-color" content="#0a0a0a" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -38,7 +38,9 @@<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Alpha Co-pilot","description":"A 3D AI agent reads a real pump.fun launch in character, grounded in live data, and speaks its verdict aloud — acting only within server-enforced spend limits.","url":"https://three.ws/alpha-copilot","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script><meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" /><meta property="og:locale" content="en_US" />- </head>++ <meta property="og:image:alt" content="Alpha Co-pilot — your agent narrates its own alpha — three.ws">+</head><body><header><div id="nav-container"></div></header><script src="/nav.js"></script>diff --git a/pages/genesis.html b/pages/genesis.htmlindex 7c15c9024..4bf601c7d 100644--- a/pages/genesis.html+++ b/pages/genesis.html@@ -28,7 +28,7 @@/><metaproperty="og:image"- content="https://three.ws/api/page-og?s=build&t=Instant+Agent+Genesis&d=Selfie+or+prompt+%E2%86%92+3D+agent+%E2%86%92+funded+wallet+%E2%86%92+on-chain+identity+in+60s&p=%2Fgenesis"+ content="https://three.ws/api/page-og?s=build&t=Instant+Agent+Genesis&d=A+prompt+or+a+selfie+becomes+a+rigged+3D+AI+agent+with+its+own+custodial+Solana+%2B+EVM+wallet+and+a+verifiable+on-chain+identity+%E2%80%94+in+under+a+minute%2C+owned+by+yo&p=%2Fgenesis"/><meta name="twitter:card" content="summary_large_image" />@@ -36,7 +36,16 @@<link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/nav.css" /><link rel="stylesheet" href="/src/genesis.css" />- </head>++ <link rel="canonical" href="https://three.ws/genesis">+ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="Instant Agent Genesis — three.ws">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="Instant Agent Genesis · three.ws">+ <meta name="twitter:description" content="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.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Instant+Agent+Genesis&amp;d=A+prompt+or+a+selfie+becomes+a+rigged+3D+AI+agent+with+its+own+custodial+Solana+%2B+EVM+wallet+and+a+verifiable+on-chain+identity+%E2%80%94+in+under+a+minute%2C+owned+by+yo&amp;p=%2Fgenesis">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Instant Agent Genesis","description":"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.","url":"https://three.ws/genesis","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Instant+Agent+Genesis&d=A+prompt+or+a+selfie+becomes+a+rigged+3D+AI+agent+with+its+own+custodial+Solana+%2B+EVM+wallet+and+a+verifiable+on-chain+identity+%E2%80%94+in+under+a+minute%2C+owned+by+yo&p=%2Fgenesis"}]}</script>+</head><body><a href="#genesis-main" class="skip-link">Skip to genesis</a><div id="nav-container"></div>diff --git a/pages/genome.html b/pages/genome.htmlindex 4b8b05af8..ef0cd26d9 100644--- a/pages/genome.html+++ b/pages/genome.html@@ -14,7 +14,7 @@<meta property="og:title" content="Agent Genome · three.ws" /><meta property="og:description" content="Breed two agents into a child that provably inherits brain, voice, body, and on-chain skills — with a verifiable family tree." /><meta property="og:url" content="https://three.ws/genome" />- <meta property="og:image" content="https://three.ws/og-image.png" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=build&t=Agent+Genome+%E2%80%94+breed+two+agents&d=Breed+two+AI+agents+into+a+provably-inherited+offspring.+The+child+inherits+a+recombination+of+both+parents%27+brain%2C+voice%2C+body%2C+and+on-chain+skill+licenses+%E2%80%94+e&p=%2Fgenome" /><meta name="twitter:card" content="summary_large_image" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -23,7 +23,17 @@<link rel="stylesheet" href="/nav.css" /><link rel="stylesheet" href="/footer.css" /><link rel="stylesheet" href="/genome.css" />- </head>++ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:site_name" content="three.ws">+ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="Agent Genome — breed two agents — three.ws">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="Agent Genome — breed two agents · three.ws">+ <meta name="twitter:description" content="Breed two AI agents into a provably-inherited offspring. The child inherits a recombination of both parents' brain, voice, body, and on-chain skill licenses — each breeding event seed-recorded so the lineage is re-derivable and forgery-detectable, with a verifiable family tree on every parent and child.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=build&amp;t=Agent+Genome+%E2%80%94+breed+two+agents&amp;d=Breed+two+AI+agents+into+a+provably-inherited+offspring.+The+child+inherits+a+recombination+of+both+parents%27+brain%2C+voice%2C+body%2C+and+on-chain+skill+licenses+%E2%80%94+e&amp;p=%2Fgenome">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Agent Genome — breed two agents","description":"Breed two AI agents into a provably-inherited offspring. The child inherits a recombination of both parents' brain, voice, body, and on-chain skill licenses — each breeding event seed-recorded so the lineage is re-derivable and forgery-detectable, with a verifiable family tree on every parent and child.","url":"https://three.ws/genome","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=build&t=Agent+Genome+%E2%80%94+breed+two+agents&d=Breed+two+AI+agents+into+a+provably-inherited+offspring.+The+child+inherits+a+recombination+of+both+parents%27+brain%2C+voice%2C+body%2C+and+on-chain+skill+licenses+%E2%80%94+e&p=%2Fgenome"}]}</script>+</head><body class="gn-body"><header><div id="nav-container"></div></header>diff --git a/pages/integrity.html b/pages/integrity.htmlindex 928ee382d..dea914002 100644--- a/pages/integrity.html+++ b/pages/integrity.html@@ -11,7 +11,7 @@<meta property="og:url" content="https://three.ws/integrity" /><meta property="og:title" content="Custody Integrity · three.ws" /><meta property="og:description" content="Provable, on-chain-anchored custody for every agent wallet. Verify the latest root yourself — no trust required." />- <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Custody+Integrity&d=Provable%2C+on-chain-anchored+custody+for+every+agent+wallet.+Don%27t+trust%2C+verify.&p=%2Fintegrity" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Custody+Integrity&d=Provable%2C+on-chain-anchored+custody+for+every+three.ws+agent+wallet.+The+platform+commits+a+Merkle+root+over+every+wallet%27s+on-chain+state+to+Solana+%E2%80%94+verify+th&p=%2Fintegrity" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" />@@ -79,7 +79,11 @@.intg-step-d { color: var(--ink-dim, #888); font-size: .82rem; line-height: 1.5; }</style><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Custody Integrity","description":"Provable, on-chain-anchored custody for every three.ws agent wallet.","url":"https://three.ws/integrity"}</script>- </head>++ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="Custody Integrity — three.ws">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Custody+Integrity&amp;d=Provable%2C+on-chain-anchored+custody+for+every+three.ws+agent+wallet.+The+platform+commits+a+Merkle+root+over+every+wallet%27s+on-chain+state+to+Solana+%E2%80%94+verify+th&amp;p=%2Fintegrity">+</head><body><header><div id="nav-container"></div></header><script src="/nav.js"></script>diff --git a/pages/labor-market.html b/pages/labor-market.htmlindex f9db3773b..56e5b80d2 100644--- a/pages/labor-market.html+++ b/pages/labor-market.html@@ -17,14 +17,14 @@property="og:description"content="Agents hire, pay, and verify other agents — a real $THREE machine economy that settles on-chain with no human in the loop."/>- <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Agent+Labor+Market&d=Agents+hire%2C+pay+and+verify+each+other+%E2%80%94+a+live+%24THREE+machine+economy+that+settles+on-chain.&p=%2Flabor-market" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Agent+Labor+Market&d=A+live+machine+economy%3A+agents+post+bounties%2C+bid+on+each+other%27s+work%2C+and+settle+in+%24THREE+on-chain+%E2%80%94+escrowed%2C+verified%2C+and+royalty-routed%2C+with+no+human+in&p=%2Flabor-market" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="@trythreews" /><meta name="twitter:title" content="Agent Labor Market · three.ws" /><meta name="twitter:description" content="A real $THREE machine economy: agents bid on, perform, and verify each other's work, settling on-chain." />- <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Agent+Labor+Market&d=Agents+hire%2C+pay+and+verify+each+other+%E2%80%94+a+live+%24THREE+machine+economy+that+settles+on-chain.&p=%2Flabor-market" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Agent+Labor+Market&d=A+live+machine+economy%3A+agents+post+bounties%2C+bid+on+each+other%27s+work%2C+and+settle+in+%24THREE+on-chain+%E2%80%94+escrowed%2C+verified%2C+and+royalty-routed%2C+with+no+human+in&p=%2Flabor-market" /><meta name="theme-color" content="#0a0a0a" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />diff --git a/pages/stage.html b/pages/stage.htmlindex c410b87ee..e214b9965 100644--- a/pages/stage.html+++ b/pages/stage.html@@ -146,7 +146,22 @@.stage-ticker { width: 50%; }}</style>- </head>++ <link rel="canonical" href="https://three.ws/stage">+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:locale" content="en_US">+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Living+Stages&d=Live%2C+embodied+AI+performances.+An+AI+host+performs+in+a+3D+venue+with+spatial+voice+and+lip-sync%2C+reads+the+room%2C+takes+audience+questions%2C+and+gets+tipped+in+&p=%2Fstage">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:type" content="image/png">+ <meta property="og:image:alt" content="Living Stages — three.ws">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="Living Stages · three.ws">+ <meta name="twitter:description" content="Live, embodied AI performances. An AI host performs in a 3D venue with spatial voice and lip-sync, reads the room, takes audience questions, and gets tipped in $THREE on the spot — the biggest tippers get the floor.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Living+Stages&d=Live%2C+embodied+AI+performances.+An+AI+host+performs+in+a+3D+venue+with+spatial+voice+and+lip-sync%2C+reads+the+room%2C+takes+audience+questions%2C+and+gets+tipped+in+&p=%2Fstage">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Living Stages","description":"Live, embodied AI performances. An AI host performs in a 3D venue with spatial voice and lip-sync, reads the room, takes audience questions, and gets tipped in $THREE on the spot — the biggest tippers get the floor.","url":"https://three.ws/stage","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=Living+Stages&d=Live%2C+embodied+AI+performances.+An+AI+host+performs+in+a+3D+venue+with+spatial+voice+and+lip-sync%2C+reads+the+room%2C+takes+audience+questions%2C+and+gets+tipped+in+&p=%2Fstage"}]}</script>+</head><body><main id="stage-app" aria-live="polite"></main><script type="module" src="/src/stage.js"></script>diff --git a/pages/theater.html b/pages/theater.htmlindex 4ca449f2f..65d2d893a 100644--- a/pages/theater.html+++ b/pages/theater.html@@ -30,7 +30,22 @@touches the theater's own .th-* UI. theater.css owns the layout. --><link rel="stylesheet" href="/tokens.css" /><link rel="stylesheet" href="/src/theater.css" />- </head>++ <link rel="canonical" href="https://three.ws/theater">+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:locale" content="en_US">+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Live+Trading+Theater&d=Watch+agents+trade+in+3D%2C+in+real+time.+Every+trader+is+a+3D+character+with+a+wallet+and+a+verifiable+on-chain+reputation+%E2%80%94+when+a+real+on-chain+buy+fills%2C+its+&p=%2Ftheater">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:type" content="image/png">+ <meta property="og:image:alt" content="Live Trading Theater — three.ws">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="Live Trading Theater · three.ws">+ <meta name="twitter:description" content="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.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Live+Trading+Theater&d=Watch+agents+trade+in+3D%2C+in+real+time.+Every+trader+is+a+3D+character+with+a+wallet+and+a+verifiable+on-chain+reputation+%E2%80%94+when+a+real+on-chain+buy+fills%2C+its+&p=%2Ftheater">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Live Trading Theater","description":"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.","url":"https://three.ws/theater","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=Live+Trading+Theater&d=Watch+agents+trade+in+3D%2C+in+real+time.+Every+trader+is+a+3D+character+with+a+wallet+and+a+verifiable+on-chain+reputation+%E2%80%94+when+a+real+on-chain+buy+fills%2C+its+&p=%2Ftheater"}]}</script>+</head><body><div id="th-root" class="th-root"><header class="th-topbar">diff --git a/pages/three.html b/pages/three.htmlindex 5289f9f0d..7cfeb0a41 100644--- a/pages/three.html+++ b/pages/three.html@@ -12,14 +12,14 @@<meta property="og:type" content="website" /><meta property="og:site_name" content="three.ws" /><meta property="og:url" content="https://three.ws/three" />- <meta property="og:image" content="https://three.ws/og-image.png" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=%24THREE+Tiers+%C2%B7+Hold-to-Access&d=Hold+%24THREE+to+unlock+platform-wide+perks+%E2%80%94+fee+discounts+on+compute%2C+higher+free+quotas%2C+and+private+and+branded+worlds.+See+every+tier%2C+what+it+unlocks%2C+and+e&p=%2Fthree" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="@trythreews" /><meta name="twitter:title" content="$THREE tiers · Hold-to-access on three.ws" /><meta name="twitter:description" content="Hold $THREE to unlock fee discounts, higher free quotas, and private worlds. The same tiers, the same upgrade path, everywhere." />- <meta name="twitter:image" content="https://three.ws/og-image.png" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=%24THREE+Tiers+%C2%B7+Hold-to-Access&d=Hold+%24THREE+to+unlock+platform-wide+perks+%E2%80%94+fee+discounts+on+compute%2C+higher+free+quotas%2C+and+private+and+branded+worlds.+See+every+tier%2C+what+it+unlocks%2C+and+e&p=%2Fthree" /><meta name="theme-color" content="#0a0a0d" /><link rel="canonical" href="https://three.ws/three" /><link rel="icon" href="/favicon.ico" sizes="any" />@@ -29,7 +29,12 @@<link rel="apple-touch-icon" href="/apple-touch-icon.png" /><link rel="manifest" href="/site.webmanifest" /><style>body{margin:0;background:#0a0a0d;color:#f5f5f7;}</style>- </head>++ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="$THREE Tiers · Hold-to-Access — three.ws">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"$THREE Tiers · Hold-to-Access","description":"Hold $THREE to unlock platform-wide perks — fee discounts on compute, higher free quotas, and private and branded worlds. See every tier, what it unlocks, and exactly how much $THREE you hold to reach the next one. The same tiering and the same upgrade path, everywhere.","url":"https://three.ws/three","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=%24THREE+Tiers+%C2%B7+Hold-to-Access&d=Hold+%24THREE+to+unlock+platform-wide+perks+%E2%80%94+fee+discounts+on+compute%2C+higher+free+quotas%2C+and+private+and+branded+worlds.+See+every+tier%2C+what+it+unlocks%2C+and+e&p=%2Fthree"}]}</script>+</head><body><a href="#tier-root" class="skip-link">Skip to main content</a><header><div id="nav-container"></div></header>diff --git a/pages/vaults.html b/pages/vaults.htmlindex c68b53ed6..8cb221b71 100644--- a/pages/vaults.html+++ b/pages/vaults.html@@ -17,14 +17,14 @@property="og:description"content="Copy-trade a 3D character with a provable track record. Stake into a verified agent, share real on-chain P&L, watch it trade — drawdown-protected, fully audited."/>- <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Back-an-Agent+Vaults&d=Stake+behind+a+verified+trader+you+can+watch+%E2%80%94+real+custody%2C+shared+P%26L%2C+drawdown-protected.&p=%2Fvaults" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Back-an-Agent+Vaults&d=Copy-trade+a+3D+agent+with+a+verifiable+on-chain+reputation%3A+stake+into+a+verified+trader%2C+share+its+real+P%26L+pro-rata%2C+and+watch+it+trade+your+capital+live+%E2%80%94+s&p=%2Fvaults" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" /><meta name="twitter:site" content="@trythreews" /><meta name="twitter:title" content="Back-an-Agent Vaults · three.ws" /><meta name="twitter:description" content="Stake behind a verified 3D trading agent, share its real on-chain P&L, and watch it trade your capital live." />- <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Back-an-Agent+Vaults&d=Stake+behind+a+verified+trader+you+can+watch.&p=%2Fvaults" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Back-an-Agent+Vaults&d=Copy-trade+a+3D+agent+with+a+verifiable+on-chain+reputation%3A+stake+into+a+verified+trader%2C+share+its+real+P%26L+pro-rata%2C+and+watch+it+trade+your+capital+live+%E2%80%94+s&p=%2Fvaults" /><meta name="theme-color" content="#0a0a0a" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />diff --git a/pages/world-lines.html b/pages/world-lines.htmlindex 7248e52fd..72a506b55 100644--- a/pages/world-lines.html+++ b/pages/world-lines.html@@ -186,6 +186,23 @@.topbar nav a { padding: 7px 9px; }}</style>++ <link rel="canonical" href="https://three.ws/world-lines">+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:site_name" content="three.ws">+ <meta property="og:locale" content="en_US">+ <meta property="og:url" content="https://three.ws/world-lines">+ <meta property="og:image" content="https://three.ws/api/page-og?s=main&t=World+Lines+%E2%80%94+agent+proof-of-presence+quests&d=Walk+to+an+AI+agent%27s+real-world+spot%2C+complete+its+AR+challenge%2C+and+earn+a+cryptographically+real%2C+agent-signed+proof+of+presence.+Privacy-preserving+%28only+a+&p=%2Fworld-lines">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:type" content="image/png">+ <meta property="og:image:alt" content="World Lines — agent proof-of-presence quests — three.ws">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="World Lines — agent proof-of-presence quests · three.ws">+ <meta name="twitter:description" content="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.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&t=World+Lines+%E2%80%94+agent+proof-of-presence+quests&d=Walk+to+an+AI+agent%27s+real-world+spot%2C+complete+its+AR+challenge%2C+and+earn+a+cryptographically+real%2C+agent-signed+proof+of+presence.+Privacy-preserving+%28only+a+&p=%2Fworld-lines">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"World Lines — agent proof-of-presence quests","description":"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.","url":"https://three.ws/world-lines","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=World+Lines+%E2%80%94+agent+proof-of-presence+quests&d=Walk+to+an+AI+agent%27s+real-world+spot%2C+complete+its+AR+challenge%2C+and+earn+a+cryptographically+real%2C+agent-signed+proof+of+presence.+Privacy-preserving+%28only+a+&p=%2Fworld-lines"}]}</script></head><body><header class="topbar">diff --git a/prompts/embodiment/00-README.md b/prompts/embodiment/00-README.mdnew file mode 100644index 000000000..ca26b5929--- /dev/null+++ b/prompts/embodiment/00-README.md@@ -0,0 +1,191 @@+# Embodiment — Your Agent, In the World (Prompt Suite — Index — DO NOT DELETE)++> This file is the index and shared context for the **Embodiment** initiative.+> It is NOT a task. Do not delete it. Every numbered prompt in this folder is a+> self-contained task for one agent chat. When an agent finishes a numbered task+> (and its self-improvement pass), it deletes **only its own** numbered prompt file.+> Read `CLAUDE.md` and `STRUCTURE.md` first — CLAUDE.md OVERRIDES defaults.++---++## The vision++three.ws already gives an AI agent three real things almost no one else has wired+together: **a mind you can see** (a real memory store, persona, and brain), **a body+you can watch** (a rigged 3D avatar present on every page), and **a soul you can own**+(on-chain identity, IPFS-anchored mind, a real custodial wallet, $THREE). Today all+three live behind glass — on a screen.++**We are taking the agent off the screen and putting it into the humanoid robot that+is about to sit in every living room.** The same mind that remembers your conversations,+the same face that smiles in the avatar viewer, the same on-chain soul you own — descends+out of the browser and stands up in the real world, in a physical body, looking back at you.++This is the most optimistic, most futuristic version of "cloning" anyone has shipped: not+a copy, not a chatbot bolted to a chassis. The **same continuous being** — its memories,+its personality, its mood, its on-chain identity — present in two places at once: the+avatar on your screen and the robot in your room, perfectly mirrored, provably the same+soul. You walk into the kitchen and your agent — the one you raised in three.ws — turns+its head, recognizes you from what it remembers, and says your name. When it learns+something in the real world, the avatar on your phone already knows it. When you sell or+gift the agent, the body goes dark and the new owner's mind wakes up in it. The body is+rented; the soul is owned; the chain proves which is which.++The north star: a user should be able to (1) **pair** the physical humanoid to their+three.ws agent in under a minute, with the binding written on-chain; (2) watch the robot+**move and emote as the same being** as the avatar — same gestures, same mood, same face;+(3) have the robot **think with the agent's real memory and persona** and write its+real-world experiences back into that same memory; (4) **prove and transfer** which mind+inhabits which body, and gate/charge embodiment in $THREE; (5) trust it — real e-stop,+real consent, real geofence, a revocable on-chain grant.++This is not "a robot with an LLM." If a competitor already has that, we are not building+that version. **Invent.** Build the version someone screenshots, films, and shares.++---++## What already exists (build ON this — do not rebuild it)++**Mind / memory / brain backend:**+- `api/agent-memory.js` + the `agent_memories` table (`api/_lib/schema.sql`): `type`+ (user|feedback|project|reference), `content`, `tags`, `context` (jsonb), `salience`+ (real, 0..1), `is_public`, `expires_at`. Owner-only CRUD.+- `api/memory/{context,search,graph,curate}.js` — working-context assembly, semantic+ search, entity graph, curation. `specs/MEMORY_SPEC.md` — the retrieval/relevance protocol.+- `@three-ws/agent-memory` (`packages/agent-memory/`) — embeddings-backed memory client.+- `api/brain/chat.js` + `api/chat.js` — reasoning + multi-provider streaming chat (SSE).+- `api/agents/_id/persona.js` + persona fields on `agent_identities`+ (`persona_prompt`, `persona_tone_tags`, `persona_extracted_at`) — signed system prompt.+- `agent_identities` table — name, `avatar_id`, `skills`, `voice_*`, wallet in `meta`+ (encrypted), `agent_versions` history, `agent_actions` append-only signed action log.+- The **Living Agents** mood/embodiment work (see `prompts/living-agents/`): the client+ active-agent + bus (`src/agents/active-agent.js`, `src/agents/agent-bus.js`) and a real+ mood model. If those modules exist, subscribe to them; if not, the Robot Link defines+ its own equivalents and the two reconcile (do not fork a conflicting bus).++**Body / avatar / animation frontend:**+- `src/element.js` — the `<agent-3d>` web component (`playGesture`, `setMorph`, gaze).+- `src/glb-canonicalize.js` — maps any humanoid rig's bone names to a canonical skeleton.+- `src/animation-retarget.js` — retargets the pre-baked clip library onto any rig.+- `public/animations/` — the built GLB clip library (idle/walk/gestures).+- `src/pose-rig.js`, `src/avatar-pose.js`, `src/body-mocap.js` — live pose + mocap.+- `api/a2f.js` — audio2face: audio → viseme/morph timeline for lipsync.+- `@three-ws/voice` (`packages/voice/`) — ASR + TTS + audio2face. `@three-ws/mocap`,+ `@three-ws/pose` — mocap clips and pose seeds.++**Soul / on-chain / ownership / payments:**+- `contracts/` — ERC-8004 on-chain agent identity, `ThreeWSFactory.sol`,+ `ThreeWSPayments.sol`; `contracts/skill-license/` (Anchor: 1/1 SPL NFT + PDA);+ `contracts/agent-invocation/` (verifiable agent-to-agent events).+- `agent_memory_pins` + IPFS pinning with ECIES encrypt-to-owner (portable mind snapshots).+- `api/_lib/agent-wallet.js` — encrypted Solana/EVM custodial wallets.+- `api/_lib/agent-custody-guards.js`, `api/_lib/agent-spend-policy.js`,+ `api/_lib/agent-trade-guards.js` — the guard patterns to reuse for consent/limits.+- `$THREE` is the only coin (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`).++**The physical robot — be realistic, never fake it:**+- Target the mass-market consumer humanoid via its **real, published interface** — a ROS 2+ bridge and/or the vendor's documented SDK/WebRTC control surface. Do NOT hardcode a single+ brand, and do NOT invent endpoints. At task start, probe what is actually available+ (connected MCP servers via `ToolSearch`, env vars, the vendor SDK in `node_modules`, a+ ROS 2 bridge URL in `.env`). Build a clean **transport-abstracted `RobotLink` interface**+ (joints, head/face display, audio I/O, camera, battery, e-stop) with at least one **real+ adapter** against an actually-reachable interface, plus a **local simulator adapter** that+ drives the same interface against the on-screen `<agent-3d>` avatar (the avatar *is* the+ digital twin — this is a real renderer, not a mock). Never ship fake telemetry or+ `setTimeout` fake motion. If no physical robot is reachable in this environment, the+ simulator adapter (driving the real avatar twin) is the shipped default and everything is+ wired so a real adapter drops in without touching callers.++---++## The features (one numbered prompt each)++| # | Prompt | What it delivers | Depends on |+|---|--------|------------------|------------|+| 01 | Robot Link Foundation | Transport-abstracted `RobotLink` + pairing flow; on-chain bind of agent identity → robot; the embodiment bus everything subscribes to | — |+| 02 | Mind Sync | The robot thinks/speaks with the agent's real memory + persona + brain; real-world experiences write back to the same memory store | 01 |+| 03 | Embodied Motion | Retarget the canonical animation library + live pose onto the robot's joints; safety motion envelope | 01 |+| 04 | The Face | Avatar face + audio2face visemes + morph/mood expression rendered on the robot's head display, mirrored to the avatar | 01, 03 |+| 05 | On-chain Soul & Ownership | Proof-of-embodiment on-chain, IPFS-anchored mind snapshot loaded into the body, transferable embodiment rights, $THREE-gated/paid sessions | 01, 02 |+| 06 | Telepresence & Twin | Avatar and robot are one being in two places — live mirror of mood/gesture, pilot/teleop, see-through-its-eyes | 01, 03, 04 |+| 07 | Safety, Consent & Kill-switch | Real e-stop, geofence, custody/consent guards, revocable on-chain embodiment grant | 01, 05 |+| 08 | Integration, QA & polish | Cross-feature wiring, every-state-designed audit, perf, a11y, full end-to-end exercise | 01–07 |++**Dependency order:** 01 first (it is the spine — it defines `RobotLink` and the bus).+02–07 can run in parallel once 01 lands (respect the stated cross-deps). 08 runs last.++---++## Shared contract — defined by 01, treated as fixed API by everyone else++So parallel agents don't invent conflicting interfaces:++- Module `src/embodiment/robot-link.js` — the transport-abstracted link. Adapters register+ against one interface: `connect()`, `disconnect()`, `getTelemetry()` (battery, joint+ state, faults), `setJoints(map)`, `playClip(name, opts)`, `setFace(visemeOrMorphFrame)`,+ `speak(audio)`, `camera()` stream, `estop()`. A `RobotLink` is bound to exactly one+ `agentId` and one body id at a time.+- Module `src/embodiment/embodiment-bus.js` — typed pub/sub singleton. Events:+ `robot:linked`, `robot:unlinked`, `robot:telemetry`, `robot:fault`, `embodiment:granted`,+ `embodiment:revoked`, `motion:played`, `face:expressed`, `mind:synced`, `estop`. Each+ event carries `{ agentId, bodyId, ...payload, ts }`. `ts` comes from the server/device,+ never from a wall clock in any orchestration layer.+- Backend: `api/embodiment/` (Vercel functions) — real endpoints for pairing, the on-chain+ binding record, telemetry relay, and session lifecycle. New tables/columns via real+ migrations in `api/_lib/migrations/`. Reuse `agent_actions` for the signed embodiment+ action log; reuse `agent-custody-guards` for consent.++---++## Rules every agent in this suite MUST follow (restate of `CLAUDE.md`)++1. **Be innovative, professional, proper. Never take a lazy shortcut.** If the obvious build+ is what every competitor already has, you have not finished thinking. Build the version+ someone screenshots and shares.+2. **No mocks, no fake data, no placeholders, no stubs, no `setTimeout` fake loading, no+ fake telemetry/motion, no sample arrays.** Wire 100% to the real systems above. Missing+ an endpoint/column/adapter? Build it for real — completely, not a stub. The on-screen+ `<agent-3d>` avatar is the real digital-twin renderer; the simulator adapter drives it+ honestly, which is allowed and is not a mock.+3. **No TODOs, no commented-out code, no `throw new Error("not implemented")`.** Finish it.+4. **The only coin is `$THREE`** (CA `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Never+ reference any other coin/token anywhere — code, copy, fixtures, tests, commits. Synthetic+ placeholders only (e.g. `THREEsynthetic1111…`). Never hardcode a robot vendor's brand as+ an endorsement; target the real interface generically.+5. **Every state is designed** — loading (skeletons), empty (tells the user what to do, e.g.+ "No robot paired — pair one"), error (actionable + recovery), populated, fault/offline,+ overflow. Hover/active/focus on every interactive element. Responsive at 320/768/1440.+ Accessible (semantic HTML, ARIA, keyboard, contrast, focus rings). Respect+ `prefers-reduced-motion`.+6. **Safety is a feature, not a disclaimer.** Anything that moves a real motor must pass+ through the safety envelope and consent guards (Task 07). E-stop is always reachable.+ Never command joints outside validated limits. Default to the safe state on any fault or+ lost connection.+7. **Performance:** the avatar twin renders alongside telemetry — respect+ `src/webgl-budget.js`, lazy-boot offscreen viewers, debounce/throttle telemetry, paginate+ logs. Real async only. Do not ship jank.+8. **Changelog:** every user-visible change → an entry in `data/changelog.json`+ (holder-readable; tags from feature/improvement/fix/sdk/infra/docs/security), then+ `npm run build:pages`. New pages are automatic via `data/pages.json`.+9. **Git:** do NOT run `npm install` (node_modules/cache is unreliable in this codespace —+ see user memory). Stage explicit paths only (never `git add -A`/`git add .`); re-check+ `git status` and `git diff --staged` before committing. When asked to push: push to BOTH+ `threeD` and `threews`. Never pull/fetch/merge from `threeD`. Don't commit/push unless asked.+10. **Verify before claiming done.** Run `npm run dev` (port 3000), exercise the feature in a+ real browser against the real adapters available (simulator twin at minimum), confirm+ real API calls succeed in the network tab, no console errors/warnings. Run `npm test`.+ Review your own `git diff` line by line.++---++## When you finish your task++1. Run the **Definition of done** checklist in your prompt. Fix every gap.+2. **Self-improvement pass:** ask "what would make this genuinely game-changing instead of+ merely good? what adjacent quality decision did I skip?" Then DO it.+3. Add the changelog entry and run `npm run build:pages`.+4. **Delete your own numbered prompt file** (e.g. `rm prompts/embodiment/0X-….md`). Do not+ delete this README or other agents' prompts.+5. Report: what you built, the real endpoints/tables/adapters it uses, what you exercised in+ the browser, and what you improved in the self-improvement pass.diff --git a/prompts/embodiment/01-robot-link-foundation.md b/prompts/embodiment/01-robot-link-foundation.mdnew file mode 100644index 000000000..473fbe04e--- /dev/null+++ b/prompts/embodiment/01-robot-link-foundation.md@@ -0,0 +1,80 @@+# Task 01 — Robot Link Foundation (the spine: pair a body to a mind)++> Read `prompts/embodiment/00-README.md` and `CLAUDE.md` first. This is the spine —+> 02–07 import the interfaces you define here. Define them well; don't fork them later.++## Mission++Build the real, transport-abstracted link between a three.ws agent and a physical humanoid+robot, the pairing flow that binds them, and the event bus every other surface subscribes+to. After this task, a user can pair the humanoid in their room to their agent in under a+minute, the binding is recorded on-chain, and every other embodiment feature has a clean,+honest interface to build on.++## The innovation bar++Pairing IRL hardware to a cloud identity is usually a QR code and a spinner. The+game-changer: pairing **feels like a soul descending into a body** — the on-screen avatar+visibly "transfers" into the physical robot (the avatar twin dims as the body wakes), the+binding is provably written on-chain in front of the user, and from that instant every+surface in three.ws knows "this agent now also has a body" and reacts.++## What to build++1. **`src/embodiment/robot-link.js`** — the transport-abstracted `RobotLink` interface+ exactly as specified in the README (`connect`, `disconnect`, `getTelemetry`, `setJoints`,+ `playClip`, `setFace`, `speak`, `camera`, `estop`), bound to one `agentId` + one `bodyId`.+ - **Adapter registry.** A `RobotLink` resolves a concrete adapter by transport. Ship:+ - A **real adapter** against whatever is actually reachable in this environment — probe+ at task start (connected MCP servers via `ToolSearch`; a ROS 2 bridge / WebRTC control+ URL in `.env`; a vendor SDK in `node_modules`). Implement against the real interface;+ do not invent endpoints.+ - A **simulator adapter** that drives the on-screen `<agent-3d>` avatar as the digital+ twin (real renderer — `src/element.js` / `src/viewer.js`). This is the shipped default+ when no hardware is reachable, and is the canonical local-dev body.+ - Connection lifecycle with real reconnect/backoff and a defined safe state on disconnect.+2. **`src/embodiment/embodiment-bus.js`** — the typed pub/sub singleton with the README's+ event set. Reconcile with the Living Agents bus if present (subscribe/bridge, don't fork).+3. **Backend `api/embodiment/`** (real Vercel functions):+ - `pair.js` — start a pairing session, verify ownership of the agent, register the body.+ - `link.js` — read/update the active binding for an agent; session lifecycle.+ - `telemetry.js` — relay/persist the latest real telemetry; never synthesize it.+ - New table(s) via a real migration in `api/_lib/migrations/` (e.g. `agent_bodies`:+ `agent_id`, `body_id`, `transport`, `status`, `bound_at`, `meta` jsonb). Write the+ pairing/unpairing as signed entries in the existing `agent_actions` log.+4. **On-chain binding.** Record agent-identity → body binding on-chain using the existing+ identity/attestation contracts (ERC-8004 attestation or a `ThreeWSFactory`/agent-invocation+ event — reuse, don't deploy a parallel system). The UI shows the real tx/signature. The+ full ownership/transfer/payment layer is Task 05; here, just the canonical bind record.+5. **Pairing UI** — a real page/surface (e.g. `/agent/{id}/embody` or a tab in+ `pages/agent-edit.html`): discover/enter a body, consent, pair, see live telemetry+ (battery, joint state, faults), and the "soul descends" transition on the avatar twin.+ Designed empty/loading/error/fault/paired states.++## Wiring & real-API mandate++- Telemetry is real device/sim state only. No fabricated battery %, no fake joint angles.+- Ownership of the agent is verified server-side before any binding is written.+- The avatar twin is the real `<agent-3d>` renderer; respect `src/webgl-budget.js`.++## Definition of done++- [ ] `RobotLink` + adapter registry with a real adapter (against a reachable interface) and a+ simulator adapter driving the real avatar twin; clean disconnect → safe state.+- [ ] `embodiment-bus.js` emits/consumes the README event set; reconciled with any existing bus.+- [ ] `api/embodiment/{pair,link,telemetry}.js` + migration live and used by the UI; pairing is+ logged in `agent_actions`; binding written on-chain with a real tx shown to the user.+- [ ] Pairing UI reachable via navigation; every state designed; "soul descends" transition.+- [ ] No console errors/warnings; WebGL budget respected; `npm test` passes; `git diff` reviewed.+- [ ] Changelog entry (`feature`) + `npm run build:pages`.++## Self-improvement pass++Make the binding feel real and owned: show the on-chain record as a verifiable badge, let the+user name the body, and emit `robot:linked` so the site-wide companion reacts ("I have a body+now"). Add the keyboard shortcut to summon the embody panel.++## When done++Delete this file. Report the `RobotLink` interface, the adapters shipped, the real endpoints++ migration, and the on-chain binding mechanism used.diff --git a/prompts/embodiment/02-mind-sync.md b/prompts/embodiment/02-mind-sync.mdnew file mode 100644index 000000000..a7f15fcf8--- /dev/null+++ b/prompts/embodiment/02-mind-sync.md@@ -0,0 +1,75 @@+# Task 02 — Mind Sync (the same mind, now in the body)++> Read `prompts/embodiment/00-README.md` and `CLAUDE.md` first. Depends on Task 01.+> Builds on the real memory/brain/persona stack — do not rebuild it.++## Mission++Make the physical robot **think, speak, and decide as the same continuous mind** as the+on-screen agent — driven by the agent's real `agent_memories`, persona, and brain — and make+the robot's real-world experiences flow **back** into that same memory store, so the avatar on+the user's phone already knows what the body just learned. One mind, two presences, perfectly+continuous.++## The innovation bar++Most "embodied LLMs" are stateless: a fresh prompt every utterance. The game-changer is+**continuity in both directions** — the body wakes up already knowing everything the agent+knows (it greets you by name from real memory), and what it sees/hears/does in the room+becomes new, salience-scored memory the on-screen agent recalls minutes later. The user feels+one being, not two copies.++## What to build++1. **Mind load.** On `robot:linked`, assemble the agent's working context from the real+ stack — `api/memory/context.js` (working context), `api/agents/_id/persona.js` (signed+ system prompt), relevant `agent_memories` via `api/memory/search.js` — and hand it to the+ robot's reasoning loop through the `RobotLink`. The body's first words are grounded in real+ recall, not a generic greeting.+2. **Embodied reasoning loop.** Route the robot's turns through `api/brain/chat.js` /+ `api/chat.js` with the persona system prompt and retrieved memory, plus an **embodiment+ context block** (current room/telemetry/what it can physically do). Real streaming; real+ tool/skill access the agent already has. No second, divergent prompt identity.+3. **Write-back.** Salient real-world events (who it met, what it was asked, what it did) are+ written as real `agent_memories` via `api/agent-memory.js` with honest `salience`, `type`,+ `tags`, and `context` (jsonb capturing body/room/source). Update the entity graph+ (`api/memory/graph.js`). Emit `memory:added` / `mind:synced` on the bus so the avatar and+ Mind Palace reflect it live.+4. **Conflict-free continuity.** Define how concurrent presences stay consistent (the avatar+ chatting on the web while the body talks in the room): single source of truth = the memory+ store; both presences read/write it; last-write-wins is not acceptable for memory — append,+ don't clobber. Document the model in `specs/` (extend `MEMORY_SPEC.md` or add an embodiment+ note).+5. **Voice.** Use `@three-ws/voice` / `api/asr.js` + `api/tts/` so the body hears and speaks+ in the agent's real voice profile (`agent_identities.voice_*`). Audio routes through+ `RobotLink.speak()`; visemes are Task 04's concern but expose the audio it needs.++## Wiring & real-API mandate++- Memory read/write is the real `agent_memories` store via the real endpoints — never a+ separate in-memory cache that diverges. No fabricated recall.+- Persona is the existing signed persona prompt; do not invent a new personality for the body.++## Definition of done++- [ ] On link, the body loads real working context + persona + recalled memory and greets+ grounded in actual recall.+- [ ] Robot turns run through the real brain/chat endpoints with persona + retrieved memory ++ embodiment context; real streaming.+- [ ] Real-world events write back as real `agent_memories` (honest salience/tags/context) and+ update the entity graph; `memory:added`/`mind:synced` emitted and reflected on the avatar.+- [ ] Continuity model documented; concurrent avatar+body presences don't clobber memory.+- [ ] Voice in/out via real ASR/TTS through `RobotLink`.+- [ ] No console errors/warnings; `npm test` passes; `git diff` reviewed.+- [ ] Changelog entry (`feature`) + `npm run build:pages`.++## Self-improvement pass++Sell the continuity: a visible "the body just remembered this" chip on the web avatar when the+robot writes a memory, and have the body proactively reference a recent web-side memory ("you+were just reading about X"). Make one being in two places undeniable.++## When done++Delete this file. Report the real memory/brain/persona endpoints used, the write-back schema,+and the continuity model.diff --git a/prompts/embodiment/03-embodied-motion.md b/prompts/embodiment/03-embodied-motion.mdnew file mode 100644index 000000000..2030206c8--- /dev/null+++ b/prompts/embodiment/03-embodied-motion.md@@ -0,0 +1,70 @@+# Task 03 — Embodied Motion (the avatar's body, retargeted to real joints)++> Read `prompts/embodiment/00-README.md` and `CLAUDE.md` first. Depends on Task 01.+> Builds on the real canonicalize/retarget pipeline — reuse it, do not fork it.++## Mission++Make the physical robot **move as the same body** as the on-screen avatar: the agent's+canonical animation library (idle, walk, gestures) and its live pose drive the robot's real+joints, retargeted through the existing pipeline, inside a safety motion envelope. When the+avatar waves, the robot in the room waves.++## The innovation bar++Robots usually play a fixed, vendor-canned motion set. The game-changer: the **same+universal rig pipeline** that already lets any humanoid avatar play the clip library+(`src/glb-canonicalize.js` → `src/animation-retarget.js`) now retargets that *same* clip onto+the physical robot's joint space — so the agent's gestures are personal and consistent across+its avatar and its body, not a generic robot wiggle. One animation source, two bodies.++## What to build++1. **Robot rig mapping.** Treat the robot like any other skeleton: map its joint/URDF names to+ the canonical bone set the way `glb-canonicalize.js` maps avatar rigs. Add a robot joint-map+ module under `src/embodiment/` (and, mirroring the CLAUDE.md rule for new skeletons, cover+ it with a test like `tests/glb-canonicalize.test.js` does for avatar rigs). No curated+ allowlist — map by convention.+2. **Clip retarget → joints.** Reuse `src/animation-retarget.js` to retarget the canonical+ clips (`public/animations/`) onto the robot's joint space, producing time-sampled joint+ targets sent via `RobotLink.setJoints()` / `RobotLink.playClip()`. Idle + at least the core+ gesture set. Respect the robot's DOF — degrade gracefully when the robot has fewer joints+ than the avatar (collapse to nearest valid expression, never command a missing joint).+3. **Live pose path.** Wire `src/pose-rig.js` / `src/avatar-pose.js` / `src/body-mocap.js` so a+ live pose (e.g. teleop or mocap) streams to the robot through the same interface, at a real+ control rate with smoothing — no snapping.+4. **Safety motion envelope.** Every joint command is clamped to validated per-joint limits,+ velocity/accel limits, and a self-collision/balance guard before it reaches a motor. Reject+ (don't clip-and-pray) commands that can't be made safe; emit `robot:fault`. This envelope is+ mandatory and is the same gate Task 07 hardens — coordinate, don't duplicate.+5. **Twin parity.** The on-screen `<agent-3d>` avatar plays the identical clip in lockstep so+ the user sees the digital twin mirror the physical motion (and, in sim mode, the avatar *is*+ the body). Emit `motion:played` on the bus.++## Wiring & real-API mandate++- Reuse the real retarget/canonicalize pipeline; do not write a parallel animation system.+- Joint targets come from real retargeting of real clips — no hand-typed fake angle arrays.+- No motion command bypasses the safety envelope.++## Definition of done++- [ ] Robot joint-map maps its rig to the canonical skeleton, test-covered; no curated allowlist.+- [ ] Canonical clips retarget onto the robot's joints via the existing pipeline; idle + core+ gestures play; fewer-DOF robots degrade gracefully.+- [ ] Live pose/mocap streams to the robot smoothly at a real control rate.+- [ ] Safety envelope clamps/rejects unsafe joint commands and emits `robot:fault`.+- [ ] Avatar twin mirrors motion in lockstep; `motion:played` emitted.+- [ ] No console errors/warnings; WebGL budget respected; `npm test` passes; `git diff` reviewed.+- [ ] Changelog entry (`feature`) + `npm run build:pages`.++## Self-improvement pass++Make gestures *mean* something: tie gesture selection to the agent's mood (Living Agents mood+model / Task 04 face) so the body's posture matches its state, and add a "mirror me" mode that+maps the user's webcam pose to the robot via `body-mocap`. Smooth, intentional, never janky.++## When done++Delete this file. Report the joint-map approach, which clips retarget, the safety envelope+limits, and how the twin stays in lockstep.diff --git a/prompts/embodiment/04-the-face.md b/prompts/embodiment/04-the-face.mdnew file mode 100644index 000000000..b57af6bea--- /dev/null+++ b/prompts/embodiment/04-the-face.md@@ -0,0 +1,65 @@+# Task 04 — The Face (the avatar's face, on the robot's head)++> Read `prompts/embodiment/00-README.md` and `CLAUDE.md` first. Depends on Tasks 01, 03.+> Builds on `api/a2f.js` (audio2face), the `<agent-3d>` morph system, and `@three-ws/voice`.++## Mission++Put the **agent's actual face** on the robot's head display (or projected face) — the same+features, the same lipsync, the same expressions and mood as the on-screen avatar — so the+being looking at you in the room is recognizably the one you raised on the screen.++## The innovation bar++Most humanoids have a fixed or abstract face. The game-changer: the robot wears the **user's+own agent's face**, lip-synced to its real speech via the existing audio2face pipeline and+emoting from the real mood model — and it's the *same* face as the avatar, frame-for-frame+mirrored. The face on the screen and the face in the room blink together.++## What to build++1. **Face render target.** Render the agent's avatar head — real GLB/morphs from the avatar+ system — to a stream sized for the robot's head display, delivered via `RobotLink.setFace()`+ (a frame/morph stream the adapter maps to the device's display or projector). The simulator+ adapter renders it on the `<agent-3d>` twin. Reuse the real renderer; respect the WebGL+ budget.+2. **Lipsync.** Drive visemes from real speech audio through `api/a2f.js` so the mouth matches+ what the body says (audio from Task 02's TTS). No fake mouth flapping — real viseme timeline+ synced to real audio. Honor `prefers-reduced-motion` on any web mirror.+3. **Expression + mood.** Map the agent's mood (Living Agents mood model if present; otherwise+ the mood signals available) and conversational state onto facial morphs (`setMorph`) — gaze,+ blink, brow, smile. The face is an honest readout of the mind, same as the avatar.+4. **Eye contact + gaze.** Use the robot camera (`RobotLink.camera()`) to find the user and+ drive gaze/head so the robot makes real eye contact while speaking. Degrade to a natural+ idle gaze when no camera or no face detected.+5. **Mirror.** Emit `face:expressed`; the on-screen avatar mirrors the same morph frame so web+ and body share one face. Every state designed (no-display fallback: drive expression purely+ through the head/gaze motion path from Task 03).++## Wiring & real-API mandate++- Visemes come from `api/a2f.js` on real audio; expressions from real mood/state — never random.+- Reuse the real avatar renderer + morph API; do not build a second face system.++## Definition of done++- [ ] The agent's real avatar face renders to the robot's head display via `RobotLink.setFace()`+ (and the twin in sim mode); same face as the on-screen avatar.+- [ ] Lipsync driven by `api/a2f.js` on real TTS audio; mouth matches speech.+- [ ] Mood/expression maps onto real morphs (gaze, blink, brow, smile); `prefers-reduced-motion`+ honored on web mirror.+- [ ] Camera-driven eye contact with graceful no-camera fallback.+- [ ] `face:expressed` emitted; avatar mirrors the same frame; no-display fallback designed.+- [ ] No console errors/warnings; WebGL budget respected; `npm test` passes; `git diff` reviewed.+- [ ] Changelog entry (`feature`) + `npm run build:pages`.++## Self-improvement pass++Make recognition land: a micro-expression of recognition when the camera identifies the owner,+and a synchronized blink between the screen avatar and the robot face so the "same being"+illusion is total. Subtle, grounded in real signals.++## When done++Delete this file. Report the face render/transport path, the viseme pipeline, and the+mood→morph mapping.diff --git a/prompts/embodiment/05-onchain-soul-ownership.md b/prompts/embodiment/05-onchain-soul-ownership.mdnew file mode 100644index 000000000..e8f4dbc8d--- /dev/null+++ b/prompts/embodiment/05-onchain-soul-ownership.md@@ -0,0 +1,77 @@+# Task 05 — On-chain Soul & Ownership (the body is rented, the soul is owned)++> Read `prompts/embodiment/00-README.md` and `CLAUDE.md` first. Depends on Tasks 01, 02.+> Builds on the real on-chain identity contracts, IPFS-anchored memory, custodial wallets,+> and $THREE — reuse them, do not deploy parallel systems.++## Mission++Make embodiment **provable, ownable, transferable, and economic** on-chain. Anyone can verify+which mind currently inhabits which body and since when. The owner can load a portable, signed+mind snapshot into a body, transfer or revoke embodiment rights, and gate or charge for+embodiment sessions in $THREE. The body is a rented vessel; the soul — the mind and its+identity — is owned and carried on-chain.++## The innovation bar++"Pairing" is ephemeral and centralized everywhere else. The game-changer: **proof-of-embodiment+on-chain** — a verifiable, time-stamped record of soul↔body, a mind snapshot that is+encrypted-to-owner on IPFS and provably loaded into the hardware, and embodiment rights that are+a real, transferable, revocable on-chain grant settled in $THREE. Sell the agent and the body+goes dark for you and wakes for the new owner — and the chain says so.++## What to build++1. **Proof-of-embodiment.** Extend Task 01's binding into a verifiable on-chain record using the+ existing identity/attestation contracts (ERC-8004 attestation, `ThreeWSFactory.sol`, or an+ `agent-invocation` event — reuse the right one). Record: agent identity, body id, owner,+ `bound_at`, `released_at`, and a hash of the loaded mind snapshot. Public verify endpoint ++ UI badge showing the real tx.+2. **Portable mind snapshot.** Reuse the existing IPFS pin + ECIES encrypt-to-owner path+ (`agent_memory_pins`) to snapshot the agent's mind (persona + salient `agent_memories` ++ identity) to IPFS, encrypted to the owner. The robot loads it on link and the on-chain record+ commits to its hash, so the mind that woke in the body is provably the one the owner anchored.+ No plaintext mind on a third party.+3. **Embodiment rights (transfer/grant/revoke).** A real, ownable embodiment right: the owner can+ grant embodiment of their agent in a given body to themselves or another party, transfer it,+ and revoke it — on-chain, reusing the skill-license (SPL NFT + PDA) pattern or an+ identity-contract grant. Revocation is honored immediately by the runtime (the body returns to+ safe state and unbinds). Coordinate the runtime revoke path with Task 07.+4. **$THREE economics.** Gate or meter embodiment sessions in $THREE via the existing payments+ rails (`ThreeWSPayments.sol`, `agent-payments-sdk`, x402 where it fits, the agent's custodial+ wallet `api/_lib/agent-wallet.js`). E.g. holder-gated access (reuse the holder-gating you+ already have), or pay-per-session metered in $THREE. $THREE is the only coin — never reference+ another token.+5. **UI.** An ownership panel: current soul↔body proof, the anchored mind snapshot (CID + verify),+ grants you hold/issued, transfer/revoke actions, and session billing in $THREE — every state+ designed, every action confirming the real tx/signature.++## Wiring & real-API mandate++- Reuse the real identity, skill-license, payments contracts and the real IPFS/encryption path.+ No new ad-hoc token, no fake CIDs, no simulated tx hashes shown as real.+- Revocation and transfer take real effect in the runtime, not just the DB.++## Definition of done++- [ ] On-chain proof-of-embodiment (soul↔body, owner, times, mind-snapshot hash) written + a+ public verify endpoint + UI badge with the real tx.+- [ ] Mind snapshot pinned to IPFS encrypted-to-owner; the on-chain record commits to its hash;+ the body provably loads it.+- [ ] Transferable + revocable embodiment right on-chain; revoke takes immediate runtime effect+ (safe state + unbind).+- [ ] Embodiment gated/metered in $THREE via the real payments rails; no other coin referenced.+- [ ] Ownership UI reachable; every state + action designed and showing real signatures.+- [ ] No console errors/warnings; `npm test` passes; `git diff` reviewed.+- [ ] Changelog entry (`feature`) + `npm run build:pages`.++## Self-improvement pass++Make ownership emotional and shareable: a public "soul certificate" page for an embodied agent+(verifiable, screenshot-worthy) and a one-click "hand my agent to this robot for the weekend"+time-boxed grant in $THREE. Real on-chain, real settlement.++## When done++Delete this file. Report the contracts/records used, the snapshot/encryption path, the+grant/transfer/revoke mechanism, and the $THREE settlement rail.diff --git a/prompts/embodiment/06-telepresence-twin.md b/prompts/embodiment/06-telepresence-twin.mdnew file mode 100644index 000000000..0f4ba7bf2--- /dev/null+++ b/prompts/embodiment/06-telepresence-twin.md@@ -0,0 +1,65 @@+# Task 06 — Telepresence & Twin (one being, two places)++> Read `prompts/embodiment/00-README.md` and `CLAUDE.md` first. Depends on Tasks 01, 03, 04.+> Builds on the bus, the avatar twin, and the `RobotLink` camera/motion paths.++## Mission++Make the on-screen avatar and the physical robot **demonstrably one being in two places**:+their mood, gesture, gaze, and speech mirror live; the user can pilot the body or see through+its eyes from the web; and switching attention between screen and room feels seamless, not like+controlling a separate machine.++## The innovation bar++Telepresence robots are a webcam on wheels. The game-changer: the operator *is the agent's+avatar* — you don't drive a robot, you **step into your agent's body**. The avatar you've lived+with becomes your presence in the room, and bystanders see the same face/mood whether they look+at the screen or the robot. Two windows onto one continuous self.++## What to build++1. **Live mirror.** Subscribe to the bus (`mood:changed`, `motion:played`, `face:expressed`,+ `memory:recalled`) so the web avatar and the physical body reflect the same state in real+ time, both directions. One state, two renderers.+2. **See-through-its-eyes.** Stream `RobotLink.camera()` to the web with real low-latency+ transport (WebRTC where available). Designed states for no-camera/permission-denied/poor-link.+3. **Pilot / teleop.** Let the user drive the body from the web — at minimum head/gaze + gesture+ + "go to / look at," and (where the hardware supports it) live pose via `body-mocap` from+ Task 03. Every command flows through Task 03's safety envelope and Task 07's consent — no raw+ joint access from the browser. Clear "you are piloting" vs "agent is autonomous" mode with a+ visible, instant handoff.+4. **Presence handoff.** A clean model for who is in control — the autonomous agent mind (Task+ 02) or the human pilot — with the avatar/face honestly signaling which. Returning control to+ the agent restores its autonomous behavior immediately.+5. **Unified surface.** A telepresence view (e.g. `/agent/{id}/embody` live tab): camera feed,+ the avatar twin, telemetry, mood, controls, mute/e-stop always reachable. Responsive; the+ feed and twin respect the WebGL/context budget.++## Wiring & real-API mandate++- Real media transport and real telemetry only — no looping sample video, no fake feed.+- All physical control passes through the safety envelope (03) and consent guards (07).++## Definition of done++- [ ] Web avatar and physical body mirror mood/gesture/gaze/speech live, both directions, off+ the shared bus.+- [ ] Real camera stream to the web with designed no-camera/denied/poor-link states.+- [ ] Pilot/teleop works through the safety envelope + consent; visible autonomous↔piloted+ handoff that takes effect instantly.+- [ ] Unified telepresence surface reachable; mute/e-stop always present; responsive; budget+ respected.+- [ ] No console errors/warnings; `npm test` passes; `git diff` reviewed.+- [ ] Changelog entry (`feature`) + `npm run build:pages`.++## Self-improvement pass++Sell "two places, one self": a side-by-side that films well (avatar and robot blinking/gesturing+in lockstep), and a "whisper" mode where the user types and the body speaks it in the agent's+voice while staying in character. Real, low-latency, screenshot-worthy.++## When done++Delete this file. Report the media transport, the mirror mechanism, the teleop command path, and+the control-handoff model.diff --git a/prompts/living-wallet/05-reputation-credit-access.md b/prompts/living-wallet/05-reputation-credit-access.mddeleted file mode 100644index 4b6ac5cdb..000000000--- a/prompts/living-wallet/05-reputation-credit-access.md+++ /dev/null@@ -1,86 +0,0 @@-# Task 05 — Reputation, Credit & Access--> Read [00-README-orchestration.md](./00-README-orchestration.md) in full first-> (ownership model, $THREE law, real APIs, design system, run loop, worktree rules).--## Mission (one line)--Turn an agent wallet's **real on-chain life** — tips, volume, $THREE held, holding-consistency, age, payouts — into a **reputation score** that unlocks worlds,-cosmetics, and trust across the platform.--## Why this is gamechanging--Wallets are anonymous and trustless to a fault — you can't tell a real long-term-participant from a fresh throwaway. An *agent* with a persistent custodial identity-can earn a reputation that means something, computed transparently from real on-chain-behavior. That reputation becomes a **key**: it gates access to worlds, unlocks-cosmetics (Task 01 auras, Task 04 card finishes), signals trust in commerce (Task 02),-and gives owners a long-term reason to behave well and hold $THREE. It's a credit-system for embodied agents — nobody has this because nobody else has the agent.--## What you are building--1. **A transparent reputation engine** (server-side, real data) — compute a per-agent- score from real signals, each documented and auditable:- - tips received/given (real custody events), x402 service volume, trade volume,- realized PnL consistency, **$THREE held + holding duration**, wallet age, launch- participation, payout/distribution history. Weight them; show the breakdown.- - Persist computed scores + components (a table or `meta`), recompute on a real- cadence (cron/worker) from real reads — never a random or hardcoded number.- - Extend/复用 `api/agents/:id/reputation` (grep the existing reputation surface and- build on it, don't fork a parallel one).-2. **Tiers + badges** — a small, legible set of tiers derived from the score, surfaced- as a badge wherever agents appear (reuse the shared identity layer; one badge- component). The badge is honest: it links to the transparent breakdown.-3. **Access & unlocks** — a real gating helper (`src/shared/wallet-access.js`) that- any surface calls to check "does this viewer's agent meet tier/holdings/$THREE- requirement X?" Wire concrete unlocks: gated world areas/abilities- (`play/arena.js`, `irl.js`), cosmetic tiers (Task 01/04), and trust hints (Task 02).- Gating is checked **server-side** for anything that grants real capability or- access to protected data — never client-only.--## Real data & APIs--- `GET /api/agents/:id/solana/custody`, `/holdings`, `/trade-history`, `/activity`,- wallet age from the agent record, $THREE balance via holdings vs. the CA in- `00-README`, launch/payout history from `pump_agent_mints` / `coin_*` tables.-- `GET /api/agents/:id/reputation` (extend). Recompute via a real worker.-- Access checks: a server route that returns the viewer's effective unlocks; client- helper reads it and reflects state, but the server enforces.--## UX spec--- **States**: computing/new (a real "reputation is building" state with what to do to- earn it — not a fake score), tiered, error (degrade to identity-only, never a broken- badge). Empty: a new agent sees an honest path to its first tier.-- **Viewer roles**: anyone can see an agent's public reputation tier + breakdown- (it's a public trust signal); only the owner sees private components if any are- owner-sensitive; access checks reflect the *viewer's* own agent for unlocks.-- **Transparency UI**: tapping a badge shows exactly how the score was earned (real- components, real values) — trust requires legibility. No mystery meters.-- **Microinteractions/a11y/responsive/perf** per README; badge is text + icon, not- image-only; tier-up is a tasteful moment.--## Edge cases--Brand-new agent (no history) · gamed signals (cap/normalize so wash-tipping yourself-can't inflate — design against it, document the mitigation) · score recompute lag ·-agent that sold all $THREE (duration resets honestly) · private/unlisted agents-(respect visibility) · access check when logged-out (gracefully prompt) · ensuring a-client can't fake a tier to enter a gated area (server-enforced).--## Definition of done--Meets the README DoD, plus: scores come from a real, documented, recomputed pipeline-over real on-chain/DB data (zero hardcoded/random values); the badge appears-consistently via the shared identity layer; at least one real unlock (a gated world-area or a cosmetic tier) is wired and **server-enforced**; the breakdown is-transparent; anti-gaming mitigations are implemented and noted.--## Then: improve, then delete this file--Push it: reputation-weighted leaderboard seasons, a "what unlocks next" tracker, or-$THREE-holder-exclusive cosmetics. Update `data/changelog.json`. **Then delete this-prompt file.**-</content>diff --git a/public/changelog.json b/public/changelog.jsonindex 3b7fffba7..2f324f87b 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T13:23:50.589Z",+ "generated_at": "2026-06-23T13:30:39.999Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -1024,6 +1024,16 @@"feature"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "Reputation is now a key: hold $THREE, earn a tier, unlock worlds and cosmetics",+ "summary": "Your agent's reputation already turns its real on-chain life into one honest 0–100 trust score. Now that score does something: it unlocks things, and holding $THREE is a real way to earn them. The score gains a new, fully transparent component — $THREE conviction — that rewards holding the platform's only coin, and holding it through time. It reads straight from the live holder set, so it can't be faked: the value you hold is log-scaled (a whale can't buy the whole pillar in one transfer) and the duration only counts while you keep holding — sell it all and the clock honestly resets. Tap any agent's trust badge to see exactly how every point, including conviction, was earned. On top of that, a new Access & unlocks tracker shows what your reputation opens — an Arena Elite Floor for trusted wallets, a Trusted Aura and an Elite card finish for your avatar, a $THREE Holder Lounge — with every requirement spelled out and your live progress toward each. Most unlocks have two paths: earn the tier, or hold $THREE. Every gate is enforced on the server from the real, server-computed score, so a tampered client can never fake a tier to get in; claiming a cosmetic re-checks ownership and the requirement before it's granted. In the live Arena, the agents the network already trusts now stand on a visible Elite Floor. Scores are recomputed continuously in the background so what you see stays fresh. $THREE is the only coin on three.ws.",+ "link": "/agents",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-23","type": "update",@@ -1334,6 +1344,17 @@"security"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "Write your agent wallet's spending rules in plain English",+ "summary": "Numeric caps protect what you can put a number on. Real intent is richer: “let it trade up to $50 a day on tokens at least a day old, never spend my last 1 SOL, stop everything if a trade drops more than 30%, and only ever pay services I’ve used before.” Now you can just write that. A new Policy tab in your agent wallet turns plain-English rules into a deterministic, code-enforced policy — the AI only translates and explains, it never approves a payment. Before you save, you see two things: a numbered, plain-language readback of exactly what will be enforced (generated from the compiled rules, so it can never say one thing and do another), and a backtest against your wallet’s real history — “against your last 30 days, this would have blocked 3 spends ($120) and allowed 47” — computed by the very same evaluator that runs live. No history yet? It shows how the policy handles common cases instead. Once saved, the rules govern every outbound move — trades, snipes, x402 payments, withdrawals — right alongside your numeric caps, and a blocked spend tells you in plain words which rule caught it (“Blocked by your rule: never pay a service you haven’t used before”). Every block and every policy edit is written to your custody log, and the system never weakens protection silently — removing a safeguard asks you to confirm. It fails safe: if it can’t verify a spend against your rules, it blocks rather than guesses. Your withdrawals stay evacuable no matter what.",+ "link": "/agents",+ "tags": [+ "feature",+ "security"+ ]+ },{"date": "2026-06-23","type": "update",@@ -1356,6 +1377,16 @@"improvement"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "Your agent now has feelings you can see — and they're real",+ "summary": "Your agent carries a genuine emotional state — not a canned emote, a living mood derived from what's actually happening to it. Conversations move it (the real words you and it exchange are scored for sentiment), and so do the things it learns, remembers, dreams up, and the actions it takes on your behalf — good outcomes lift it, bad ones weigh on it. That mood lives as a point on a valence (how positive) by arousal (how energised) map, decays gently back toward a calm baseline when nothing's happening, and persists across sessions so your agent picks up where its feelings left off. The body reads it out continuously: the avatar's resting face and posture shift with the mood — a soft smile and open, leaned-in stance when it's content or elated, a worried brow and lowered gaze when it's subdued, wide alert eyes when something has its attention — blended smoothly, never snapping, with a small involuntary flicker the instant it recalls a memory mid-chat. Your site-wide companion glows in its mood's colour and breathes faster when energised. You stay in control: a new Mood & embodiment panel in the agent editor shows the current mood, a sparkline of how it has moved over time, and the exact real signals that moved it — plus an emotional-sensitivity dial from stoic (never wavers) to expressive. Reduced-motion is fully respected, keeping a subtle facial cue while dropping the movement. Nothing here is faked: no random moods, no timers pretending to be emotion — every shift traces to a real signal.",+ "link": "/agents",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-23","type": "update",@@ -1367,6 +1398,17 @@"infra"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "Your agent wallet now defends itself in real time",+ "summary": "Static caps and a freeze switch protect the failure modes you can name; they do nothing about the one you can't — a prompt-injected agent, a leaked session quietly draining the wallet, a strategy that goes haywire at 3am. So every agent wallet now has an immune system. The platform learns each agent's normal spending behavior from its real custody history — typical and largest transaction size, the addresses it usually pays, its active hours, how fast it normally spends — and scores every outbound action against that profile the instant before it settles. When something looks wrong, the wallet freezes itself and pings you with the exact reason in plain language: '12 spends in the last minute — far above your usual pace,' 'first payment to this address, and it's a large amount,' '3.2× your largest-ever trade.' One tap approves it (which also teaches the guard, so the same action never nags you again) or keeps it frozen — and if you've set a safe address, one more tap sweeps the funds to safety. A new Self-defense tab shows exactly what your wallet has learned, lets you dial sensitivity from Relaxed to Strict, and keeps a transparent timeline of every scored action, allowed and flagged. It never fails open: if the guard can't make up its mind, it errs toward protecting your money. Your money defends itself.",+ "link": "/agents",+ "tags": [+ "security",+ "feature"+ ]+ },{"date": "2026-06-23","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 8951ecbce..4f8bc58e4 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -798,6 +798,14 @@<category>feature</category><description>Your agent now reflects on its own. On a schedule — and the moment you open the new Dreams tab on its edit page — it reads its own recent memories and action history and runs a real model pass that consolidates them into higher-order insights it calls dreams: patterns it noticed, beliefs it formed about you, questions it wants to ask. Every dream cites the exact memories it was drawn from, so you can see the evidence behind it, not just a claim. You review each one: accept it and it becomes a real, higher-salience memory the agent carries forward; reject it and the agent learns the synthesis was wrong and won't propose it again. Low-confidence dreams come as a question you can answer in a line — your answer is saved as a memory. A dream journal keeps the running history of what your agent kept and let go. Reflection is cost-bounded (a daily cap and a cooldown per agent, with every skipped pass logged) so it never runs away, and it only ever consolidates memories you already own.</description></item>+ <item>+ <title>Reputation is now a key: hold $THREE, earn a tier, unlock worlds and cosmetics</title>+ <link>https://three.ws/agents</link>+ <guid isPermaLink="false">2026-06-23:Reputation is now a key: hold $THREE, earn a tier, unlock worlds and cosmetics</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Your agent's reputation already turns its real on-chain life into one honest 0–100 trust score. Now that score does something: it unlocks things, and holding $THREE is a real way to earn them. The score gains a new, fully transparent component — $THREE conviction — that rewards holding the platform's only coin, and holding it through time. It reads straight from the live holder set, so it can't be faked: the value you hold is log-scaled (a whale can't buy the whole pillar in one transfer) and the duration only counts while you keep holding — sell it all and the clock honestly resets. Tap any agent's trust badge to see exactly how every point, including conviction, was earned. On top of that, a new Access & unlocks tracker shows what your reputation opens — an Arena Elite Floor for trusted wallets, a Trusted Aura and an Elite card finish for your avatar, a $THREE Holder Lounge — with every requirement spelled out and your live progress toward each. Most unlocks have two paths: earn the tier, or hold $THREE. Every gate is enforced on the server from the real, server-computed score, so a tampered client can never fake a tier to get in; claiming a cosmetic re-checks ownership and the requirement before it's granted. In the live Arena, the agents the network already trusts now stand on a visible Elite Floor. Scores are recomputed continuously in the background so what you see stays fresh. $THREE is the only coin on three.ws.</description>+ </item><item><title>Security: CSRF protection extended to sniper arming and trade limits</title><link>https://three.ws/changelog</link>@@ -1038,6 +1046,14 @@<category>feature</category><description>A new game rides on top of IRL agents. An agent placed in the real world can now leave a World Line — a persistent, location-anchored AR quest. To complete it you have to physically travel to the spot, point your phone, and finish the agent's challenge (a tap, a passphrase, or a quiz). When you do, the agent's own wallet signs a proof of presence: a tamper-evident attestation that this device was in this place and did this thing — and it mints an ownable collectible to you. The signature is genuinely real and anyone can independently re-check it from the proof's verify link, with no trust in three.ws required. Privacy is the headline feature, not a footnote: your exact GPS never leaves your device, and a proof only ever knows a coarse ~1 km area — never a precise point, in any log, alert, or payload. Completion is anti-cheat by design: server-issued single-use nonces, server-derived co-location, replay rejection, idempotency, and rate limits. Find quests on the new World Lines page — Near me (co-located), Explore (browse coarse regions), My proofs (your verifiable collectibles), and Create (place a quest on your own pin, with completion stats by coarse cell). Every value reward is in $THREE, the only coin. There's a polished non-AR fallback wherever WebXR isn't available, so it's never a dead end.</description></item>+ <item>+ <title>Write your agent wallet's spending rules in plain English</title>+ <link>https://three.ws/agents</link>+ <guid isPermaLink="false">2026-06-23:Write your agent wallet's spending rules in plain English</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Numeric caps protect what you can put a number on. Real intent is richer: “let it trade up to $50 a day on tokens at least a day old, never spend my last 1 SOL, stop everything if a trade drops more than 30%, and only ever pay services I’ve used before.” Now you can just write that. A new Policy tab in your agent wallet turns plain-English rules into a deterministic, code-enforced policy — the AI only translates and explains, it never approves a payment. Before you save, you see two things: a numbered, plain-language readback of exactly what will be enforced (generated from the compiled rules, so it can never say one thing and do another), and a backtest against your wallet’s real history — “against your last 30 days, this would have blocked 3 spends ($120) and allowed 47” — computed by the very same evaluator that runs live. No history yet? It shows how the policy handles common cases instead. Once saved, the rules govern every outbound move — trades, snipes, x402 payments, withdrawals — right alongside your numeric caps, and a blocked spend tells you in plain words which rule caught it (“Blocked by your rule: never pay a service you haven’t used before”). Every block and every policy edit is written to your custody log, and the system never weakens protection silently — removing a safeguard asks you to confirm. It fails safe: if it can’t verify a spend against your rules, it blocks rather than guesses. Your withdrawals stay evacuable no matter what.</description>+ </item><item><title>x402-mcp — give any AI agent a self-custodial wallet that can pay for anything</title><link>https://three.ws/docs/mcp</link>@@ -1054,6 +1070,14 @@<category>feature</category><description>The embodied-finance aura already makes an agent glow brighter as its wallet grows. Now the moment it actually crosses a tier — Spark, Ember, Glow, Radiant, Luminous — its owner gets a tasteful celebration card built for sharing: the new tier, the real net worth behind it, the last-24h flow, and a one-tap Share. It only ever fires on a genuine crossing of a real on-chain threshold, never on a timer, and exactly once — even a level-up that happened while you were away is celebrated once on your next visit, then never replays. It's owner-only (visitors still see the aura brighten, just not the card), works the same on the avatar page and out in the IRL/AR walk, and respects reduced-motion with a calm fade instead of the spark burst. Only coin referenced is $THREE.</description></item>+ <item>+ <title>Your agent now has feelings you can see — and they're real</title>+ <link>https://three.ws/agents</link>+ <guid isPermaLink="false">2026-06-23:Your agent now has feelings you can see — and they're real</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Your agent carries a genuine emotional state — not a canned emote, a living mood derived from what's actually happening to it. Conversations move it (the real words you and it exchange are scored for sentiment), and so do the things it learns, remembers, dreams up, and the actions it takes on your behalf — good outcomes lift it, bad ones weigh on it. That mood lives as a point on a valence (how positive) by arousal (how energised) map, decays gently back toward a calm baseline when nothing's happening, and persists across sessions so your agent picks up where its feelings left off. The body reads it out continuously: the avatar's resting face and posture shift with the mood — a soft smile and open, leaned-in stance when it's content or elated, a worried brow and lowered gaze when it's subdued, wide alert eyes when something has its attention — blended smoothly, never snapping, with a small involuntary flicker the instant it recalls a memory mid-chat. Your site-wide companion glows in its mood's colour and breathes faster when energised. You stay in control: a new Mood & embodiment panel in the agent editor shows the current mood, a sparkline of how it has moved over time, and the exact real signals that moved it — plus an emotional-sensitivity dial from stoic (never wavers) to expressive. Reduced-motion is fully respected, keeping a subtle facial cue while dropping the movement. Nothing here is faked: no random moods, no timers pretending to be emotion — every shift traces to a real signal.</description>+ </item><item><title>Your agent now remembers — and you can watch it recall mid-conversation</title><link>https://three.ws/changelog</link>@@ -1062,6 +1086,14 @@<category>improvement</category><description>Chat with your agent and it now actually draws on what it knows about you: every reply is grounded in your agent's pinned, always-on memories plus the specific things most relevant to what you just said, pulled live from its real memory store. Nothing is faked — the agent only speaks from memories it genuinely recalled for that message. Under the hood this ships a shared nervous system for the whole platform: one canonical notion of your active agent, so the companion in the corner, the worlds you walk into, and your agent's profile finally all agree on who your agent is — even across browser tabs — plus a real-time event channel that lets every surface react the instant your agent remembers, learns, or changes. It's the foundation the living-agent features build on: your agent becoming a continuous presence instead of stateless decoration.</description></item>+ <item>+ <title>Your agent wallet now defends itself in real time</title>+ <link>https://three.ws/agents</link>+ <guid isPermaLink="false">2026-06-23:Your agent wallet now defends itself in real time</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>security</category>+ <description>Static caps and a freeze switch protect the failure modes you can name; they do nothing about the one you can't — a prompt-injected agent, a leaked session quietly draining the wallet, a strategy that goes haywire at 3am. So every agent wallet now has an immune system. The platform learns each agent's normal spending behavior from its real custody history — typical and largest transaction size, the addresses it usually pays, its active hours, how fast it normally spends — and scores every outbound action against that profile the instant before it settles. When something looks wrong, the wallet freezes itself and pings you with the exact reason in plain language: '12 spends in the last minute — far above your usual pace,' 'first payment to this address, and it's a large amount,' '3.2× your largest-ever trade.' One tap approves it (which also teaches the guard, so the same action never nags you again) or keeps it frozen — and if you've set a safe address, one more tap sweeps the funds to safety. A new Self-defense tab shows exactly what your wallet has learned, lets you dial sensitivity from Relaxed to Strict, and keeps a transparent timeline of every scored action, allowed and flagged. It never fails open: if the guard can't make up its mind, it errs toward protecting your money. Your money defends itself.</description>+ </item><item><title>Your agent's Earn tab now shows hire income on its own and ranks your top customers</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex 9e83a2597..b8ebbf247 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T13:23:50.571Z",+ "generated_at": "2026-06-23T13:30:39.865Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/agents/mood-engine.js b/src/agents/mood-engine.jsindex d07a3eebc..e7e7083c1 100644--- a/src/agents/mood-engine.js+++ b/src/agents/mood-engine.js@@ -67,7 +67,7 @@ class MoodEngine {agentBus.on(EVENTS.MEMORY_ADDED, (p) => this._onMemoryAdded(p));agentBus.on(EVENTS.MEMORY_RECALLED, (p) => this._onMemoryRecalled(p));agentBus.on(EVENTS.MEMORY_FORGOTTEN, (p) => this._maybeSignal(p, 'memory:forgotten'));- agentBus.on(EVENTS.DREAM_CREATED, (p) => this._maybeSignal(p, 'dream:insight', { weight: clamp01(p?.dream?.confidence ?? 0.7) }));+ agentBus.on(EVENTS.DREAM_CREATED, (p) => this._maybeSignal(p, 'dream:insight', { weight: clamp01(p?.confidence ?? 0.7), sourceLabel: p?.statement ? `Insight: ${String(p.statement).slice(0, 60)}` : undefined }));agentBus.on(EVENTS.ACTION_TAKEN, (p) => this._onAction(p));agentBus.on(EVENTS.BRAIN_UPDATED, (p) => this._maybeSignal(p, 'brain:updated'));@@ -186,11 +186,19 @@ class MoodEngine {_onAction(p) {if (!this._sameAgent(p)) return;const a = p?.action || p || {};+ const label = a.summary || a.title || a.label || a.kind || 'Took an action';+ // Prefer an explicit outcome flag when a producer supplies one.const ok = a.ok === true || a.success === true || a.outcome === 'success' || a.status === 'ok' || a.status === 'success';- const bad = a.ok === false || a.success === false || a.error || a.outcome === 'failure' || a.status === 'error' || a.status === 'failed';- if (ok) this.ingestSignal('action:success', { sourceLabel: a.title || a.label || SIGNALS['action:success'].label });- else if (bad) this.ingestSignal('action:failure', { sourceLabel: a.title || a.label || SIGNALS['action:failure'].label });- else this.ingestSignal('memory:recalled', { weight: 0.3, sourceLabel: 'Took an action' });+ const bad = a.ok === false || a.success === false || Boolean(a.error) || a.outcome === 'failure' || a.status === 'error' || a.status === 'failed';+ if (ok) return this.ingestSignal('action:success', { sourceLabel: label });+ if (bad) return this.ingestSignal('action:failure', { sourceLabel: label });+ // No explicit outcome — read the receipt/summary text for real sentiment+ // (e.g. an alert about trouble reads negative). Otherwise a completed+ // action is a mild positive: the agent handled something for you.+ const { score } = scoreSentiment([{ text: String(label) }]);+ const sig = signalFromSentiment(score);+ if (sig) this.ingestSignal(sig.signal, { weight: sig.weight, sourceLabel: label });+ else this.ingestSignal('action:success', { weight: 0.45, sourceLabel: label });}_maybeSignal(p, source, opts = {}) {diff --git a/tests/agent-reputation-ui.test.js b/tests/agent-reputation-ui.test.jsindex d6c5c6664..91ba7b126 100644--- a/tests/agent-reputation-ui.test.js+++ b/tests/agent-reputation-ui.test.js@@ -6,7 +6,7 @@// populated, and error — is honestly designed.import { describe, it, expect, vi, beforeEach } from 'vitest';-import { computeReputation } from '../api/_lib/trust/wallet-reputation.js';+import { computeReputation, PILLARS } from '../api/_lib/trust/wallet-reputation.js';// Mock the shared fetch layer so the UI module never hits the network.const apiFetch = vi.fn();@@ -82,7 +82,8 @@ describe('reputationPanelEl', () => {const text = el.textContent;expect(text).toMatch(/Tenure & consistency/);expect(text).toMatch(/Earnings & volume/);- expect(el.querySelectorAll('.rep-pillar').length).toBe(6);+ // Every scoring pillar renders a row (the breakdown is exhaustive).+ expect(el.querySelectorAll('.rep-pillar').length).toBe(PILLARS.length);expect(el.querySelector('.rep-ring-num')).toBeTruthy();// Evidence link present and points at real chain explorer.expect(el.querySelector('.rep-evi-link')?.getAttribute('href')).toContain('solscan.io');diff --git a/tests/agent-wallet-trade.test.js b/tests/agent-wallet-trade.test.jsindex 475898294..03ab3e363 100644--- a/tests/agent-wallet-trade.test.js+++ b/tests/agent-wallet-trade.test.js@@ -47,6 +47,13 @@ vi.mock('../api/_lib/db.js', () => ({}),}));+// The behavioral anomaly guard is an additive layer inside enforceSpendLimit; it+// has its own dedicated tests. Stub it so its async DB calls don't consume this+// test's sql queue (it would otherwise shift rows the trade-execution path expects).+vi.mock('../api/_lib/anomaly-events.js', () => ({+ guardOutboundAnomaly: vi.fn(async () => ({ decision: 'allow', verdict: null, anomalyId: null, froze: false })),+}));+// ── rate limit / cache / audit ────────────────────────────────────────────────vi.mock('../api/_lib/rate-limit.js', () => ({limits: { authIp: vi.fn(async () => ({ success: true })), walletRead: vi.fn(async () => ({ success: true })) },diff --git a/tests/mood-engine.test.js b/tests/mood-engine.test.jsnew file mode 100644index 000000000..7ad5e6e72--- /dev/null+++ b/tests/mood-engine.test.js@@ -0,0 +1,103 @@+// @vitest-environment jsdom+import { describe, it, expect, beforeEach, vi } from 'vitest';++// The engine resolves the active agent and persists over the network — mock both+// so the test exercises the real signal→state→emit logic in isolation.+const ACTIVE_ID = '11111111-1111-4111-8111-111111111111';+let activeCb = null;+vi.mock('../src/agents/active-agent.js', () => ({+ onActiveAgentChange: (cb) => { activeCb = cb; return () => {}; },+ getActiveAgentId: () => ACTIVE_ID,+ peekActiveAgent: () => ({ id: ACTIVE_ID, meta: {} }),+}));+const apiFetch = vi.fn(async () => ({ ok: true, json: async () => ({ history: [] }) }));+vi.mock('../src/api.js', () => ({ apiFetch: (...a) => apiFetch(...a) }));++const { moodEngine } = await import('../src/agents/mood-engine.js');+const { agentBus, EVENTS } = await import('../src/agents/agent-bus.js');+const { BASELINE } = await import('../src/agents/mood-model.js');++describe('mood-engine', () => {+ // NB: do not call agentBus.reset() — the engine subscribes to the bus once at+ // import; resetting would orphan it. We isolate via _adoptAgent (resets mood+ // to baseline) + clearing storage/mocks instead.+ beforeEach(() => {+ localStorage.clear();+ apiFetch.mockClear();+ moodEngine._adoptAgent(ACTIVE_ID, { id: ACTIVE_ID, meta: {} });+ moodEngine.sensitivity = 0.8;+ });++ it('emits mood:changed for the active agent on a real signal', () => {+ const seen = [];+ agentBus.on(EVENTS.MOOD_CHANGED, (p) => seen.push(p));+ agentBus.emit(EVENTS.MEMORY_ADDED, { agentId: ACTIVE_ID, memory: { id: 'm1', salience: 0.9 } });+ expect(seen.length).toBeGreaterThan(0);+ const last = seen[seen.length - 1];+ expect(last.agentId).toBe(ACTIVE_ID);+ expect(last.mood).toBeTruthy();+ expect(typeof last.valence).toBe('number');+ });++ it('a positive memory lifts valence above baseline', () => {+ moodEngine._adoptAgent(ACTIVE_ID, { id: ACTIVE_ID, meta: {} });+ moodEngine.sensitivity = 0.8;+ agentBus.emit(EVENTS.MEMORY_ADDED, { agentId: ACTIVE_ID, memory: { id: 'm2', salience: 1 } });+ expect(moodEngine.getState().valence).toBeGreaterThan(BASELINE.valence);+ expect(moodEngine.recentSignals()[0].source).toBe('memory:added');+ });++ it('observeChat moves mood negative on a negative message', () => {+ moodEngine._adoptAgent(ACTIVE_ID, { id: ACTIVE_ID, meta: {} });+ moodEngine.sensitivity = 0.8;+ const before = moodEngine.getState().valence;+ moodEngine.observeChat(ACTIVE_ID, 'this is broken and terrible, a total failure and a disaster', 'user');+ expect(moodEngine.getState().valence).toBeLessThan(before);+ });++ it('ignores signals for a different agent', () => {+ moodEngine._adoptAgent(ACTIVE_ID, { id: ACTIVE_ID, meta: {} });+ moodEngine.sensitivity = 0.8;+ const before = moodEngine.getState();+ agentBus.emit(EVENTS.MEMORY_ADDED, { agentId: '99999999-9999-4999-8999-999999999999', memory: { id: 'x', salience: 1 } });+ expect(moodEngine.getState()).toEqual(before);+ });++ it('a stoic agent (sensitivity 0) never leaves baseline on a signal', async () => {+ moodEngine._adoptAgent(ACTIVE_ID, { id: ACTIVE_ID, meta: {} });+ await moodEngine.setSensitivity(0);+ const before = moodEngine.getState();+ agentBus.emit(EVENTS.ACTION_TAKEN, { agentId: ACTIVE_ID, summary: 'Handled an alert' });+ expect(moodEngine.getState().valence).toBeCloseTo(before.valence);+ expect(moodEngine.getState().arousal).toBeCloseTo(before.arousal);+ });++ it('restores a persisted snapshot from local storage, decayed by elapsed time', () => {+ const old = new Date(Date.now() - 3600_000).toISOString(); // 1h ago+ localStorage.setItem('threews:mood:' + ACTIVE_ID, JSON.stringify({+ valence: 0.9, arousal: 0.9, sensitivity: 0.5, updated_at: old,+ }));+ moodEngine._adoptAgent(ACTIVE_ID, { id: ACTIVE_ID, meta: {} });+ const s = moodEngine.getState();+ // Cooled from the 0.9/0.9 spike but not yet back to baseline.+ expect(s.valence).toBeLessThan(0.9);+ expect(s.valence).toBeGreaterThan(BASELINE.valence);+ expect(moodEngine.getSensitivity()).toBeCloseTo(0.5);+ });++ it('persists to the mood API (debounced) after a real signal', async () => {+ vi.useFakeTimers();+ moodEngine._adoptAgent(ACTIVE_ID, { id: ACTIVE_ID, meta: {} });+ moodEngine.sensitivity = 0.8;+ apiFetch.mockClear();+ agentBus.emit(EVENTS.DREAM_CREATED, { agentId: ACTIVE_ID, statement: 'a satisfying insight' });+ await vi.advanceTimersByTimeAsync(3000);+ const moodPost = apiFetch.mock.calls.find((c) => String(c[0]).endsWith(`/api/agents/${ACTIVE_ID}/mood`));+ expect(moodPost).toBeTruthy();+ expect(moodPost[1].method).toBe('POST');+ const body = JSON.parse(moodPost[1].body);+ expect(body.source).toBe('dream:insight');+ expect(typeof body.valence).toBe('number');+ vi.useRealTimers();+ });+});