Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

Refactor wallet wiring script to assign economy wallets and update documentation; enhance security measures for secret handling and improve user guidance for wallet management.

nirholas98acca5b9a1b
diff --git a/content/avatars-universal-animation.md b/content/avatars-universal-animation.md
index 7a740ca6e..f50068c79 100644
--- a/content/avatars-universal-animation.md
+++ b/content/avatars-universal-animation.md
@@ -2,9 +2,9 @@
*Long-form X article. The complete story of the three.ws avatar system: why we built a universal rig instead of an allowlist, how bone canonicalization and runtime retargeting actually work, every surface that creates or animates an avatar, how an avatar becomes an agent with a wallet, developer examples, tutorials, and the honest limits. $THREE is the only coin.*
-The internet is full of dead 3D avatars. Every generator, scanner, and character tool exports a skeleton with its own private naming scheme, and the moment that file leaves the tool that made it, it stops moving. A Mixamo rig calls the pelvis `mixamorig:Hips`. An Unreal mannequin calls it `pelvis`. A VRoid model calls it `J_Bip_C_Hips`. A Daz figure calls it `hip`. Same joint, four spellings, and an animation authored for one plays on none of the others. So the web's answer has been the allowlist: support three or four blessed rigs, T-pose everything else. An avatar that cannot move is a statue, and most platforms are museums.
+The internet is full of dead 3D avatars. Every generator, scanner, and character tool exports a skeleton with its own private naming scheme, and the moment that file leaves the tool that made it, it stops moving. A Mixamo rig calls the pelvis `mixamorig:Hips`. An Unreal mannequin calls it `pelvis`. A VRoid model calls it `J_Bip_C_Hips`. A Daz figure calls it `hip`. Same joint, four spellings, and an animation authored for one plays on none of the others. The web's answer has been the allowlist: support a few blessed rigs, T-pose everything else. An avatar that cannot move is a statue, and most platforms are museums.
-three.ws took the opposite bet. Any humanoid avatar, from any tool, in any naming convention, drives the same shared animation library: idle, walk, dances, gestures, reactions, legs included. No curated rig list. A canonicalizer, a retargeter, and one honest gate. This is everything about how that works.
+three.ws took the opposite bet. Any humanoid avatar, from any tool, in any naming convention, drives the same shared animation library: idle, walk, dances, gestures, reactions, legs included. No curated rig list. A canonicalizer, a retargeter, and one honest gate. This is how it works.
## Why we built it
@@ -30,15 +30,14 @@ The rest of this article walks down into stages two and four, where the universa
## The canonical skeleton
-Every animation clip on three.ws addresses bones by one fixed vocabulary: a 52-bone canonical humanoid set, exported as `CANONICAL_BONES` in `src/glb-canonicalize.js`, mirroring the reference rig the clip library was baked against, the Avaturn-rigged `public/avatars/cz.glb`. Six torso and head bones, a four-bone arm chain per side, fifteen finger bones per hand, and a four-bone leg chain per side down to the toes. Legs and feet are first-class citizens of the set, which is why walks and dances retarget with the lower body moving, not just the arms. The clip library never learns any other spelling; every incoming rig is translated into this vocabulary.
+Every animation clip on three.ws addresses bones by one fixed vocabulary: a 52-bone canonical humanoid set, exported as `CANONICAL_BONES` in `src/glb-canonicalize.js`, mirroring the reference rig the clip library was baked against, the Avaturn-rigged `public/avatars/cz.glb`. Six torso and head bones, four arm bones per side, fifteen finger bones per hand, and four leg bones per side down to the toes. Legs and feet are first-class citizens, which is why walks and dances retarget with the lower body moving, not just the arms. The clip library never learns any other spelling; every incoming rig is translated into this vocabulary.
## Canonicalization: one function, every naming convention
`canonicalizeBoneName()` reduces any recognized humanoid bone name to its canonical form. The conventions it resolves, all shipped and tested today:
- **Mixamo**: `mixamorig:LeftArm`, `mixamorig1:LeftArm`, `mixamorigLeftArm`
-- **Blender**: `Armature_LeftArm` and `.L` / `.R` side suffixes like `upperarm.L`
-- **Rigify**: `DEF-`, `ORG-`, `MCH-` prefixed bones
+- **Blender and Rigify**: `Armature_LeftArm`, `.L` / `.R` suffixes like `upperarm.L`, `DEF-` / `ORG-` / `MCH-` prefixes
- **Maya, HumanIK, MotionBuilder, mocap**: namespaced joints like `Character1:Hips` and `subject:LeftUpLeg`
- **Unreal mannequin**: `pelvis`, `clavicle_l`, `upperarm_l`, `thigh_l`, `calf_l`, `ball_l`
- **VRM 0.x / VRoid**: `J_Bip_C_Hips`, `J_Bip_L_UpperArm`, finger chains where VRoid's "Little" is the canonical pinky
@@ -47,52 +46,46 @@ Every animation clip on three.ws addresses bones by one fixed vocabulary: a 52-b
- **MakeHuman**: `upperarm.L`, `shin.L`, `clavicle.L`
- **Reallusion Character Creator 3/4**: the `CC_Base_` prefix and neck twist joints
- **3ds Max Biped**: `Bip01 Pelvis`, `Bip001 L UpperArm`
-- **Simple and auto-rigger conventions**: `shoulderL`, `elbowL`, `kneeL`, bare `L_Arm` side tokens, snake_case, kebab-case, plain lowercase
+- **Simple and auto-rigger conventions**: `shoulderL`, `elbowL`, `kneeL`, bare `L_Arm` tokens, snake_case, kebab-case, plain lowercase
-Two details make this robust rather than merely long. Side-paired bones are declared once, as the left spelling, and the right twin is derived mechanically by swapping the side token, so the table cannot drift asymmetric. And exporter de-duplication suffixes, the `_01` and `.001` that glTF and Blender writers append to keep node names unique, are stripped only when the unstripped name failed to resolve, so a genuinely numbered finger bone never loses its index.
+Two details make this robust rather than merely long. Side-paired bones are declared once, as the left spelling, and the right twin is derived mechanically by swapping the side token, so the table cannot drift asymmetric. And exporter de-duplication suffixes, the `_01` and `.001` that glTF and Blender writers append, are stripped only when the unstripped name failed to resolve, so a genuinely numbered finger bone never loses its index. The lookup runs in priority order, canonical and Mixamo spellings first, so a later alias table can never shadow a canonical name. Anything that resolves to nothing, a sword prop, a tail, a quadruped spine, is deliberately left untouched: there is no safe automatic mapping for non-humanoid bones, and guessing would corrupt rigs a human rigged on purpose.
-The lookup runs in priority order: canonical and Mixamo spellings first, then the Unreal alias table, then the extended VRM, Daz, MakeHuman, and simple-rig table, so a later table can never shadow a canonical spelling. Anything that resolves to nothing, a sword prop, a tail, a quadruped spine, is deliberately left untouched: there is no safe automatic mapping for non-humanoid bones, and guessing would corrupt rigs a human rigged on purpose.
-
-`canonicalizeGLBBones()` applies this to a whole file: it parses the GLB container, renames only nodes referenced from `skins[].joints[]` so meshes, cameras, and lights keep their names, and repacks a valid GLB that swaps in one for one at the same storage key. This runs at ingest in the avatar upload action, the server-side auto-rigger, and the browser upload path, so every stored avatar already speaks the canonical vocabulary before any animation loads.
+`canonicalizeGLBBones()` applies this to a whole file: it parses the GLB container, renames only nodes referenced from `skins[].joints[]` so meshes, cameras, and lights keep their names, and repacks a valid GLB that swaps in one for one at the same storage key. It runs at ingest in the avatar upload action, the server-side auto-rigger, and the browser upload path, so every stored avatar already speaks the canonical vocabulary before any animation loads.
## The orientation fold: killing the lying-down bug at ingest
-Bone names are half the problem. The other half is axis convention. Mixamo and FBX exports bake a rotation of positive 90 degrees around X onto the armature node and negative 90 onto the Hips; the net result stands upright, but a clip authored for an identity-Hips rig overwrites that Hips rotation and tips the whole body onto its back. This is the classic lying-down retarget failure, and most pipelines patch it at playback.
+Bone names are half the problem. The other half is axis convention. Mixamo and FBX exports bake a rotation of positive 90 degrees around X onto the armature node and negative 90 onto the Hips; the net result stands upright, but a clip authored for an identity-Hips rig overwrites the Hips rotation and tips the body onto its back. That is the classic lying-down retarget failure, and most pipelines patch it at playback.
-We normalize it at ingest instead. `canonicalizeArmatureOrientation()` folds the armature's baked rotation down into its children, rotating each child's translation and pre-multiplying its rotation, then zeroes the armature; a counter-rotated Hips collapses to identity. The fold is verified, not assumed: the function snapshots every affected joint's world matrix before and after, and if any element moved beyond a tolerance of one part in ten thousand, the entire fold reverts. It also refuses non-uniform armature scale, because rotation only commutes with uniform scale. Stored avatars come out axis-aligned, and the mesh, whose inverse-bind matrices live in the untouched binary chunk, still resolves to exactly the same bind pose. All of this is covered by 28 tests in `tests/glb-canonicalize.test.js`, including real-fixture suites where the canonical reference rig round-trips byte for byte and a real Mixamo export normalizes correctly.
+We normalize it at ingest instead. `canonicalizeArmatureOrientation()` folds the armature's baked rotation down into its children, then zeroes the armature; a counter-rotated Hips collapses to identity. The fold is verified, not assumed: it snapshots every affected joint's world matrix before and after, and if any element moved beyond a tolerance of one part in ten thousand, the entire fold reverts. It also refuses non-uniform armature scale, because rotation only commutes with uniform scale. Stored avatars come out axis-aligned, and the mesh, whose inverse-bind matrices live in the untouched binary chunk, still resolves to exactly the same bind pose. All of this sits under 28 tests in `tests/glb-canonicalize.test.js`, including real-fixture suites where the canonical reference rig round-trips byte for byte and a real Mixamo export normalizes correctly.
## Runtime retargeting: the same clip on every body
-Canonical names get a clip's tracks pointed at the right bones. They do not make the motion look right, because rigs also differ in rest pose and proportions. `src/animation-retarget.js` handles both, and it is a pure module, three.js plus the canonicalizer and nothing else, so the identical code runs in the browser gallery, in Node under vitest, and in the server-side animation tool.
+Canonical names point a clip's tracks at the right bones. They do not make the motion look right, because rigs also differ in rest pose and proportions. `src/animation-retarget.js` handles both, and it is a pure module, three.js plus the canonicalizer and nothing else, so the identical code runs in the browser gallery, in Node under vitest, and in the server-side animation tool.
-**Rest-pose correction.** The library's clips store absolute local rotations measured on the authoring rig, which rests in an A-pose. A target rig may rest in a T-pose, or carry the Mixamo Hips convention. For each bone the retargeter computes a two-sided correction, a pre-factor and a post-factor built from the source and target local and world bind rotations, that replays the clip bone's motion as the same world-space rotation delta on the target's own rest pose. The naive one-sided fix, pre-multiplying by the local rest difference, skews an A-pose clip's limbs by roughly 30 degrees on a T-pose rig; the world-delta form eliminates that. A bone whose correction works out to identity is skipped entirely, so a rig that already matches the authoring convention round-trips bit for bit.
+**Rest-pose correction.** The library's clips store absolute local rotations measured on the authoring rig, which rests in an A-pose; a target rig may rest in a T-pose, or carry the Mixamo Hips convention. For each bone the retargeter computes a two-sided correction, built from the source and target local and world bind rotations, that replays the clip bone's motion as the same world-space rotation delta on the target's own rest pose. The naive one-sided fix skews an A-pose clip's limbs by roughly 30 degrees on a T-pose rig; the world-delta form eliminates that. A bone whose correction works out to identity is skipped, so a rig that already matches the authoring convention round-trips bit for bit.
-**Root motion.** The retargeter rotates the hip position track into the target's hips-parent frame so a walk travels the same world direction on any armature, then scales it by the ratio of hip rest heights, clamped between 0.2 and 5 so a degenerate baseline cannot fling the root across the scene. Height is measured in the hips-parent's local units, not world units, and that matters: a Mixamo armature exported at scale 0.01 has a Hips local position near 100, and matching world heights there would collapse the hip track to about a centimeter of motion and sink the avatar into the floor.
+**Root motion.** The retargeter rotates the hip position track into the target's hips-parent frame so a walk travels the same world direction on any armature, then scales it by the ratio of hip rest heights, clamped between 0.2 and 5 so a degenerate baseline cannot fling the root across the scene. Height is measured in the hips-parent's local units, not world units, and that matters: a Mixamo armature exported at scale 0.01 has a Hips local position near 100, and matching world heights there would collapse the hip track to a centimeter of motion and sink the avatar into the floor.
-**The coverage floor.** A clip only ships to the mixer when at least half its tracks found a home on the target, the exported `MIN_COVERAGE` of 0.5. Below that, motion reads as a few twitching joints rather than a performance, so callers get an actionable failure instead. Dropped tracks are reported by canonical bone name; a rig without finger bones simply plays the clip without finger articulation.
+**The coverage floor.** A clip only ships to the mixer when at least half its tracks found a home on the target, the exported `MIN_COVERAGE` of 0.5. Below that, motion reads as twitching joints rather than a performance, so callers get an actionable failure instead. Dropped tracks are reported by canonical bone name; a rig without finger bones simply plays the clip without finger articulation.
## The AnimationManager and the one honest gate
-`src/animation-manager.js` is the runtime every surface uses. On `attach(model)` it builds the canonical-to-node map once, captures the rig's local and world rest rotations while the model is still in its authored bind pose, measures the hips-parent frame and local rest height, then retargets clips lazily as requested, crossfading between them.
-
-The only gate in the whole system is `supportsCanonicalClips()`: the model must contain a skinned mesh and at least 8 canonicalizable bones. That is not an allowlist, it is a physics check; a rig below that floor genuinely cannot be skeleton-driven into a readable performance. Whatever fails the gate, a prop, a quadruped, an unskinned statue, falls back to the platform's default rig or its own authored animations, never a forced bind-pose T-pose. Every caller in the codebase, the agent screens, the club crowd, the pose studio, the world citizens, checks this same gate.
-
-Two more runtime layers matter:
+`src/animation-manager.js` is the runtime every surface uses. On `attach(model)` it builds the canonical-to-node map once, captures the rig's rest rotations while the model is still in its authored bind pose, measures the hips-parent frame and rest height, then retargets clips lazily as requested, crossfading between them.
-**The fallen-pose guard.** Before trusting a retargeted clip, the manager measures the tilt the clip's first Hips keyframe would impose on the rig. Healthy rigs across the test fixtures rest under about 18 degrees off vertical, locked in by an upright-invariant test suite, so the catastrophe floor sits at a generous 45 degrees. A clip that would put this particular rig on its back is disabled for this rig only, and reported with the avatar's id and URL so the mapping gap can be fixed at the source.
+The only gate in the whole system is `supportsCanonicalClips()`: the model must contain a skinned mesh and at least 8 canonicalizable bones. That is not an allowlist, it is a physics check; a rig below that floor cannot be skeleton-driven into a readable performance. Whatever fails the gate, a prop, a quadruped, an unskinned statue, falls back to the platform's default rig or its own authored animations, never a forced bind-pose T-pose. Every caller in the codebase, agent screens, the club crowd, the pose studio, the world citizens, checks this same gate.
-**Additive upper-body overlays.** An agent that stops walking to wave reads as broken. Gestures can play as additive overlays on top of locomotion: the overlay clip is converted to additive blend mode and every track addressing a lower-body canonical bone is stripped, so the base layer owns the hips, legs, and feet while the overlay adds motion to the spine, arms, neck, and head. On top sits a small pure state machine, `src/animation-state-machine.js`, with idle, talk, walk, react, emote, listen, and think states, editable per agent so a creator can declare that their agent's idle is the dance clip.
+Two more runtime layers matter. **The fallen-pose guard**: before trusting a retargeted clip, the manager measures the tilt the clip's first Hips keyframe would impose on the rig. Healthy rigs rest under about 18 degrees off vertical, locked in by an upright-invariant test suite, so the catastrophe floor sits at a generous 45 degrees; a clip that would put this particular rig on its back is disabled for this rig only and reported. And **additive upper-body overlays**: gestures play additively on top of locomotion, with every lower-body track stripped, so the base layer owns the hips, legs, and feet while the overlay adds the wave. On top sits a small pure state machine, `src/animation-state-machine.js`, with idle, talk, walk, react, emote, listen, and think states, editable per agent so a creator can declare that their agent's idle is the dance clip.
## The clip library and where clips come from
-The built-in library is pre-baked, on purpose. `scripts/build-animations.mjs` reads Mixamo FBX sources, retargets each onto the canonical reference skeleton, and writes one clip per animation into `public/animations/clips/`, rewriting the runtime manifest to point only at clips that survived retargeting. A clip that fails is dropped at build time, not shipped broken. The browser never parses FBX and never guesses bone names on a cold load; it fetches JSON clips and retargets them with the machinery above. The manifest currently lists 100 curated clips, grouped in the studio into categories from Idle and Locomotion through Dance, Gestures, Action, Sports, Reactions, Fitness, and Farming.
+The built-in library is pre-baked, on purpose. `scripts/build-animations.mjs` reads Mixamo FBX sources, retargets each onto the canonical reference skeleton, and writes one clip per animation into `public/animations/clips/`, rewriting the runtime manifest to point only at clips that survived retargeting; a clip that fails is dropped at build time, not shipped broken. The browser never parses FBX or guesses bone names on a cold load, it fetches JSON clips and retargets them with the machinery above. The manifest currently lists 100 curated clips, grouped into categories from Idle and Locomotion through Dance, Gestures, Action, Sports, Reactions, Fitness, and Farming.
-Beyond the curated set, clips come from two live sources:
+Beyond the curated set, clips come from two live sources.
-- **The community.** Anyone can author motion in the Animation Studio at /pose, keyframe FK/IK poses on a timeline, save clips to their account, and publish them. The public gallery at /animations merges the built-in manifest with community clips from `GET /api/animations/clips?include_public=true&visibility=public`, previews every card on a live avatar, and deep-links each into the studio at `/pose?anim=<id>`.
-- **A text prompt.** `POST /api/forge-motion` takes a prompt like "a slow tai-chi sweep", a duration from 1 to 10 seconds, and a frame rate from 8 to 60, samples a motion-diffusion model on a GPU worker, and returns a three.js AnimationClip JSON on the canonical skeleton, the same format the curated library serves, so a generated clip retargets onto your avatar exactly like a preset. A warm generation takes roughly 10 to 30 seconds.
+- **The community.** Anyone can author motion in the Animation Studio at /pose, keyframe FK/IK poses on a timeline, save clips to their account, and publish them. The gallery at /animations merges the built-in manifest with community clips from `GET /api/animations/clips?include_public=true&visibility=public`, previews every card on a live avatar, and deep-links each into the studio at `/pose?anim=<id>`.
+- **A text prompt.** `POST /api/forge-motion` takes a prompt like "a slow tai-chi sweep", a duration from 1 to 10 seconds, and a frame rate from 8 to 60, samples a motion-diffusion model on a GPU worker, and returns a three.js AnimationClip JSON on the canonical skeleton, the same format the curated library serves, so a generated clip retargets exactly like a preset. A warm generation takes roughly 10 to 30 seconds.
-Clips are also an economy. A creator can list a baked animation for sale in USDC, and buyers pay through the x402 download endpoint at `/api/x402/animation-download`, once per wallet, with free re-downloads after. Motion you author on the canonical skeleton is motion every avatar on the platform can buy and wear.
+Clips are also an economy. A creator can list a baked animation for sale in USDC, and buyers pay through the x402 download endpoint at `/api/x402/animation-download`, once per wallet, free re-downloads after. Motion authored on the canonical skeleton is motion every avatar on the platform can buy and wear.
Because every source lands in one canonical format, every clip from every source plays on every humanoid avatar. Each new clip works for all avatars; each new avatar works with all clips.
@@ -100,35 +93,29 @@ Because every source lands in one canonical format, every clip from every source
Every creation surface feeds the same pipeline, so pick by input, not by capability.
-**A selfie: /create/selfie.** One frontal photo, side photos optional. The page downscales images client-side, submits to `POST /api/avatars/reconstruct`, and polls the status endpoint while showing your own photo on a placeholder body. About a minute later you have a rigged GLB that idles and walks. Bring-your-own-key support lets you run reconstruction on your own provider credits; the step-by-step version is the selfie-to-avatar tutorial in the docs. **/scan**, the 3D scanner, routes into the same reconstruction flow.
+**A selfie: /create/selfie.** One frontal photo, side photos optional. The page downscales images client-side, submits to `POST /api/avatars/reconstruct`, and polls the status endpoint while showing your photo on a placeholder body. About a minute later you have a rigged GLB that idles and walks. Bring-your-own-key support runs reconstruction on your own provider credits; the step-by-step version is the selfie-to-avatar tutorial. **/scan**, the 3D scanner, routes into the same flow.
-**One photo of your dad: /dad.** The most sentimental pipeline on the platform, and every step is real: the photo is normalized client-side (phone HEIC included, under the 8 MB upload contract), uploaded through a presigned storage PUT, matted by a background-removal pass, reconstructed into a rigged GLB, and rendered in an `<agent-3d>` viewer that plays idle, walk, and wave, with a shareable permalink.
+**One photo of your dad: /dad.** Every step is real: the photo is normalized client-side (phone HEIC included, under the 8 MB upload contract), uploaded through a presigned storage PUT, matted by a background-removal pass, reconstructed into a rigged GLB, and rendered in an `<agent-3d>` viewer that plays idle, walk, and wave, with a shareable permalink.
**A file or a URL: /import/rpm.** Drop any .glb up to 100 MB or paste a GLB or glTF URL. Canonicalization runs on the upload path, so a Mixamo export, a VRoid model, or a hand-rigged Blender character comes out already speaking the canonical bone set. The upload-custom-glb tutorial covers the edge cases.
-**A full build session: /avatar-studio.** The complete character builder, a fork of the open-source M3-org CharacterStudio (MIT): face sculpting, body morphs, outfits, and accessories, assembled part by part. The /create wizard opens the same studio in an iframe and receives the exported GLB directly.
+**A full build session: /avatar-studio.** The complete character builder, a fork of the open-source M3-org CharacterStudio (MIT): face sculpting, body morphs, outfits, and accessories. The /create wizard opens the same studio in an iframe and receives the exported GLB directly.
-**A map of the whole field: /avatar-engines.** An atlas of 24 open-source and commercial avatar-generation engines across five families, from photoreal Gaussian-splat heads to single-photo humans, each entry recording what it makes, what it eats, what its license permits, and exactly how, or whether, three.ws can use it. Licensing is load-bearing: non-commercial research engines are surfaced for self-hosting and flagged; only commercially licensed engines deep-link into the live generation pipeline.
+**A map of the field: /avatar-engines.** An atlas of 24 open-source and commercial avatar-generation engines across five families, from photoreal Gaussian-splat heads to single-photo humans, each entry recording what it makes, what it eats, what its license permits, and exactly how, or whether, three.ws can use it. Non-commercial research engines are flagged for self-hosting; only commercially licensed engines deep-link into the live generation pipeline.
-Everything public lands in the gallery at /gallery. And if you just want to feel the animation system, /temporary is Drive Your Avatar: a third-person walkaround, WASD on desktop and a joystick on mobile, driven by the same AnimationManager crossfading idle and walk, with an AR toggle that makes the canvas transparent and streams your phone's back camera behind it so the avatar walks across your actual floor.
+Everything public lands in /gallery. And to just feel the system, /temporary is Drive Your Avatar: a third-person walkaround, WASD on desktop and a joystick on mobile, driven by the same AnimationManager crossfading idle and walk, with an AR toggle that makes the canvas transparent and streams your phone's back camera behind it so the avatar walks across your actual floor.
## From avatar to agent with a wallet
This is where three.ws stops being an avatar tool and becomes a platform. An avatar you keep is a file. An avatar you promote to an agent is an economic actor.
-The promotion is nearly automatic: every new avatar committed through `POST /api/avatars` gets an agent identity provisioned alongside it, and creating an agent at /create mints custodial EVM and Solana wallets at insert time, private keys encrypted at rest under a dedicated wallet encryption key. The encryption is fail-closed: if the at-rest key is unavailable, the platform refuses to store secrets under a weaker fallback, creates the agent walletless, and provisions the wallet lazily and idempotently on first use. Fork any public avatar through `POST /api/avatars/fork` and the server copies the model, credits the original, and provisions the new agent's wallets in the same request. The agent gets a public profile, a brain, skills, and a body: the avatar, which now idles on its profile, performs on its live screen, and walks the platform's worlds.
+The promotion is nearly automatic: every avatar committed through `POST /api/avatars` gets an agent identity provisioned alongside it, and creating an agent at /create mints custodial EVM and Solana wallets at insert time, private keys encrypted at rest under a dedicated wallet encryption key. The encryption is fail-closed: if the at-rest key is unavailable, the platform refuses a weaker fallback, creates the agent walletless, and provisions the wallet lazily on first use. Fork any public avatar through `POST /api/avatars/fork` and the server copies the model, credits the original, and provisions the new agent's wallets in the same request. The agent gets a profile, a brain, skills, and a body: the avatar, now idling on its profile, performing on its live screen, walking the platform's worlds.
-The wallet is not decorative. Agents pay and get paid through x402 endpoints, trade under server-enforced spend limits, and can be armed on the Oracle conviction engine to act on scored signals. The body and the ledger meet in one interface: in any world, press I near an avatar and the Avatar Inspector opens on them, pulling live data from `/api/agents/:id` for identity, `/api/agents/:id/reputation` for the 0 to 100 trust score, and `/api/agents/:id/solana/networth` for the wallet address and the USD, SOL, and $THREE portfolio. Every number is the same one every other surface shows, and a guest with no wallet renders as a designed empty state, never a fabricated balance. When you watch an agent celebrate a win on its screen, the celebration clip is retargeted by the exact machinery described above, and the win is real.
+The wallet is not decorative. Agents pay and get paid through x402 endpoints, trade under server-enforced spend limits, and can be armed on the Oracle conviction engine to act on scored signals. The body and the ledger meet in one interface: in any world, press I near an avatar and the Avatar Inspector opens, pulling live data from `/api/agents/:id` for identity, `/api/agents/:id/reputation` for the 0 to 100 trust score, and `/api/agents/:id/solana/networth` for the wallet address and the USD, SOL, and $THREE portfolio. Every number matches every other surface, and a guest with no wallet renders as a designed empty state, never a fabricated balance. When an agent celebrates a win on its screen, the celebration clip is retargeted by the exact machinery above, and the win is real.
## Who this is for
-**The person with a face and sixty seconds.** Take a selfie, get a body that already knows how to walk. You never hear the word "rig".
-
-**The character artist.** Your Blender, VRoid, or Character Creator export works here without renaming a single bone. Drop the GLB, watch it dance. A genuinely new convention becomes a table entry and a test, not a support ticket.
-
-**The developer.** One npm package puts a talking, animated, lipsyncing avatar on your site. The whole animation stack, canonicalizer and retargeter included, is plain importable JavaScript.
-
-**The agent owner.** Your agent's presence is its brand. The same avatar performs on its profile, its live screen, in the worlds, and in embeds, and one animation system guarantees it never freezes into a T-pose in front of an audience.
+**The person with a face and sixty seconds**: take a selfie, get a body that already knows how to walk, never hear the word "rig". **The character artist**: your Blender, VRoid, or Character Creator export works without renaming a single bone, and a genuinely new convention becomes a table entry and a test, not a support ticket. **The developer**: one npm package puts a talking, animated, lipsyncing avatar on your site, and the whole animation stack is plain importable JavaScript. **The agent owner**: the same avatar performs on your agent's profile, its live screen, in the worlds, and in embeds, and one animation system guarantees it never freezes into a T-pose in front of an audience.
## For developers: packages, endpoints, and code
@@ -149,9 +136,7 @@ The `<agent-3d>` element is the full runtime: a built-in chat and voice loop, em
```js
import { retargetClipToObject, parseClipJSON } from './src/animation-retarget.js';
-const manifest = await fetch('https://three.ws/animations/manifest.json').then(r => r.json());
-const entry = manifest.find(c => c.name === 'walk');
-const clipJson = await fetch('https://three.ws' + entry.url).then(r => r.json());
+const clipJson = await fetch('https://three.ws/animations/clips/walk.json').then(r => r.json());
const clip = parseClipJSON(clipJson, 'walk');
const { clip: bound, coverage, dropped } = retargetClipToObject(clip, myLoadedGltfScene);
@@ -161,28 +146,28 @@ else console.warn('coverage too low', coverage, dropped);
`coverage` tells you how much of the clip found bones, and `dropped` names exactly which canonical bones your rig lacks. No silent failure modes.
-**Verify an avatar manifest anywhere.** `@three-ws/avatar-schema` is the spec package: the bundled `avatar.v1.json` JSON Schema plus an Ajv-backed validator for the hash-anchored on-chain avatar manifest format, so a third-party viewer, indexer, or marketplace can resolve and verify a three.ws avatar without pulling in the runtime.
+**Verify an avatar manifest anywhere.** `@three-ws/avatar-schema` ships the `avatar.v1.json` JSON Schema plus an Ajv-backed validator for the hash-anchored on-chain avatar manifest format, so a third-party viewer, indexer, or marketplace can resolve and verify a three.ws avatar without pulling in the runtime.
-**Read the catalogs.** Public avatars at `GET /api/avatars/public`. Community animation clips at `GET /api/animations/clips?include_public=true&visibility=public`. Generate motion from text with `POST /api/forge-motion` and poll `GET /api/forge-motion?job=<id>` until the clip URL arrives.
+**Read the catalogs.** Public avatars: `GET /api/avatars/public`. Community clips: `GET /api/animations/clips?include_public=true&visibility=public`. Text to motion: `POST /api/forge-motion`, then poll `GET /api/forge-motion?job=<id>` until the clip URL arrives.
## Three tutorials in one place
**Face to moving avatar in about a minute.** Open three.ws/create/selfie. Take one frontal photo, add sides if you have them, submit, and watch the build. When it finishes you are looking at yourself, rigged. Click through to /pose and play the walk clip: your legs move, because the leg chain is part of the canonical set, not an afterthought.
-**Make a custom rig dance.** Export a character from your tool of choice, open three.ws/import/rpm, and drop the .glb. Ingest canonicalizes the bones and folds any baked axis rotation. Open the avatar in /pose and click a dance. If the studio reports low coverage, the report names the missing canonical bones, which tells you exactly what your export lacks. Full walkthrough: the upload-custom-glb and animate-your-avatar tutorials in the docs.
+**Make a custom rig dance.** Export a character from your tool of choice, open three.ws/import/rpm, and drop the .glb. Ingest canonicalizes the bones and folds any baked axis rotation. Open the avatar in /pose and click a dance. If the studio reports low coverage, the report names the missing canonical bones, telling you exactly what your export lacks. Full walkthrough: the upload-custom-glb and animate-your-avatar tutorials in the docs.
-**Author motion without animating.** In /pose, type a prompt into the motion generator, "waving confidently" or "a slow tai-chi sweep", pick a duration up to ten seconds, and generate. The result is a canonical clip like any preset: preview it on your avatar, scrub the speed, then export an animated GLB with the motion baked in, ready for any glTF viewer on earth.
+**Author motion without animating.** In /pose, type a prompt into the motion generator, pick a duration up to ten seconds, and generate. The result is a canonical clip like any preset: preview it on your avatar, scrub the speed, then export an animated GLB with the motion baked in, ready for any glTF viewer on earth.
## The honest limits
-The universal claim has edges, and we publish them. Non-humanoid rigs, quadrupeds, props, and unskinned meshes are not skeleton-driven; they fall through the gate to the default rig or their own authored animations, a designed fallback, but your dragon will not do the rumba. A rig below 8 canonical bones or a clip below 50 percent track coverage is refused rather than mangled. Finger articulation drops silently on rigs without finger bones. The orientation fold refuses non-uniformly scaled armatures and reverts on any world-matrix mismatch, so a small set of exotic exports keeps its baked rotation and relies on the runtime correction instead. Truly novel naming conventions animate only after a mapping lands in the canonicalizer: a table entry and a test case, but not zero work. And the fallen-pose guard is deliberately conservative, disabling a clip on a rig it would tip over rather than betting your agent's dignity on a marginal retarget. The system is built to be wrong safely, and to say so out loud.
+The universal claim has edges, and we publish them. Non-humanoid rigs, quadrupeds, props, and unskinned meshes are not skeleton-driven; they fall through the gate to the default rig or their own authored animations, a designed fallback, but your dragon will not do the rumba. A rig below 8 canonical bones or a clip below 50 percent coverage is refused rather than mangled. Finger articulation drops silently on rigs without finger bones. The orientation fold refuses non-uniformly scaled armatures and reverts on any world-matrix mismatch, so a few exotic exports keep their baked rotation and rely on the runtime correction. Truly novel naming conventions animate only after a mapping lands in the canonicalizer: a table entry and a test case, but not zero work. And the fallen-pose guard is deliberately conservative, disabling a clip on a rig it would tip over rather than betting an agent's dignity on a marginal retarget. The system is built to be wrong safely, and to say so out loud.
## Why it compounds
-Every naming convention mapped makes every past and future avatar more compatible. Every clip added, curated, community, or generated, immediately works on every humanoid avatar ever uploaded. Every avatar canonicalized at ingest is one less runtime correction forever. And because avatars become agents with wallets, reputations, and audiences, the animation layer keeps earning: a platform where every body moves is a platform where every agent can perform, and a platform where agents perform is one people watch.
+Every naming convention mapped makes every past and future avatar more compatible. Every clip added, curated, community, or generated, immediately works on every humanoid avatar ever uploaded. And because avatars become agents with wallets, reputations, and audiences, the animation layer keeps earning: a platform where every body moves is a platform where every agent can perform, and a platform where agents perform is one people watch.
## Where to start
-Make yourself: three.ws/create/selfie, or three.ws/scan. Make your dad: three.ws/dad. Import anything: three.ws/import/rpm. Browse every public body: three.ws/gallery. Animate: three.ws/pose, with the public clip gallery at three.ws/animations. Drive one around your room: three.ws/temporary. Study the whole field of avatar engines: three.ws/avatar-engines. Then give your avatar a brain and a wallet at three.ws/create, and it stops being a file.
+Make yourself: three.ws/create/selfie, or three.ws/scan. Make your dad: three.ws/dad. Import anything: three.ws/import/rpm. Browse every public body: three.ws/gallery. Animate: three.ws/pose, with the clip gallery at three.ws/animations. Drive one around your room: three.ws/temporary. Study the field: three.ws/avatar-engines. Then give your avatar a brain and a wallet at three.ws/create, and it stops being a file.
-Any humanoid. Any convention. It moves. That is the whole promise, and it is live now.
+Any humanoid. Any convention. It moves. That is the promise, and it is live now.
diff --git a/content/build-your-agent.md b/content/build-your-agent.md
index 25a49c2eb..c618784c2 100644
--- a/content/build-your-agent.md
+++ b/content/build-your-agent.md
@@ -4,7 +4,7 @@
A chatbot is a text box with a personality sticker on it. An agent on three.ws is something else: a rigged 3D body that emotes per frame, a custodial Solana and EVM wallet with real keys encrypted at rest, a persistent memory that survives every session, a persona that compiles deterministically from trait sliders into a signed system prompt, and a brain that can be any of twenty one LLM providers behind one router. It has a genome. It can breed. Its lineage is cryptographically verifiable.
-When you create an agent here, you are not filling in a form. You are provisioning a participant in an economy. This is the complete story of how that happens.
+Creating one is not filling in a form. It is provisioning a participant in an economy. This is the complete story of how that happens.
## Why we built it this way
@@ -14,45 +14,45 @@ Three reasons, in order of importance.
**Second, agents that act need real primitives, not just prompts.** An agent that trades needs a wallet. An agent that learns needs memory that outlives the tab. An agent that claims two parents needs a lineage anyone can verify. All three are first-class, server-backed systems here: encrypted custodial wallets minted at creation, a tiered memory store with real embeddings, and a genome whose recombination anyone can re-derive from its recorded seed.
-**Third, one descriptor, portable everywhere.** Everything an agent is lives in the agent manifest, a content-addressed JSON bundle specced in the open at specs/AGENT_MANIFEST.md: body, brain, voice, skills, memory, on-chain identity, even scoped spending permissions. Pin it to IPFS, stamp the CID into the ERC-8004 Identity Registry, and any page on the web can mount your agent with a single agent:// URI. Your agent is not locked to our site. It is registered to you.
+**Third, one descriptor, portable everywhere.** Everything an agent is lives in the agent manifest, a content-addressed JSON bundle specced openly in specs/AGENT_MANIFEST.md: body, brain, voice, skills, memory, on-chain identity, even scoped spending permissions. Pin it to IPFS, stamp the CID into the ERC-8004 Identity Registry, and any page on the web can mount your agent with a single agent:// URI. Your agent is registered to you, not locked to our site.
## The anatomy, at a glance
-The agent system reference at three.ws/docs/agent-system describes five layers, and every creation flow below is just a different way of filling them in:
+The agent system reference at three.ws/docs/agent-system describes five layers, and every creation flow below is a different way of filling them in:
-1. **Identity**: a named record in the `agent_identities` table, optionally registered on-chain via ERC-8004, with a wallet address, skills, and metadata.
-2. **Avatar**: a Three.js body with the Empathy Layer on top: continuous emotion blending, morph target control, gaze, and one-shot gestures.
-3. **Memory**: a typed, salience-ranked store, backed locally and synced to the server's tiered memory engine.
+1. **Identity**: a named record in the `agent_identities` table, optionally registered on-chain via ERC-8004.
+2. **Avatar**: a Three.js body with the Empathy Layer on top: continuous emotion blending, morph targets, gaze, gestures.
+3. **Memory**: a typed, salience-ranked store, backed locally and synced to the server's tiered engine.
4. **Skills**: modular capabilities with handlers, animation hints, and voice templates. Five core skills ship with every agent: greet, present-model, validate-model, remember, think.
-5. **Runtime**: an LLM tool-loop that reads input, calls the model with scene tools (wave, lookAt, play_clip, setExpression, speak, remember), executes the calls, and speaks the result. The loop caps at eight tool iterations per turn.
+5. **Runtime**: an LLM tool-loop that reads input, calls the model with scene tools (wave, lookAt, play_clip, setExpression, speak, remember), executes the calls, and speaks the result, capped at eight tool iterations per turn.
Everything communicates over a zero-dependency event bus, so the avatar, the memory, and the identity diary all react to a `speak` event without knowing about each other.
## Three ways to create one
-**three.ws/create** is the avatar-first hub. It is a method picker, not a form: build in the in-browser editor, turn a selfie into a rigged body at /create/selfie, describe one in text at /create/prompt, upload your own GLB (the page validates the glTF magic bytes before accepting it), or fork a public avatar. Forking calls a real endpoint, `POST /api/avatars/fork`, which copies the GLB into your namespace and provisions the agent behind it.
+**three.ws/create** is the avatar-first hub, a method picker: build in the in-browser editor, turn a selfie into a rigged body at /create/selfie, describe one in text at /create/prompt, upload your own GLB (the page validates the glTF magic bytes before accepting it), or fork a public avatar via `POST /api/avatars/fork`, which copies the GLB into your namespace and provisions the agent behind it.
-**three.ws/create-agent** is the five-step wizard: Basics, Model, Skills, Personality, Review. Names cap at 100 characters, tags at 8. The Skills step shows the five core skills locked on and five optional toggles (wave, dance, pump-fun, explain-gltf, web-search). The Personality step takes a category, a greeting, and a persona prompt up to 2000 characters. There is also a magic generator: one click calls `POST /api/agents/suggest-spec` and an LLM drafts the whole spec, then drops you at Review. Submission is a single `POST /api/agents`.
+**three.ws/create-agent** is the five-step wizard: Basics, Model, Skills, Personality, Review. Names cap at 100 characters, tags at 8. The Skills step shows the five core skills locked on plus five optional toggles (wave, dance, pump-fun, explain-gltf, web-search); Personality takes a category, a greeting, and a persona prompt up to 2000 characters. A magic generator calls `POST /api/agents/suggest-spec`, lets an LLM draft the whole spec, and drops you at Review. Submission is a single `POST /api/agents`.
**three.ws/agent/new** opens the full agent editor directly, the same surface used to edit an existing agent's avatar, brain, skills, and on-chain identity.
Whichever door you use, the server-side create path is the same. `POST /api/agents` runs an identity-integrity gate (an embedding-based look-alike and content screen; a blocked name returns a 409), mints both custodial wallets, inserts the row, and publishes an agent-deploy event to the live feed. If wallet minting fails at creation, the agent still lands and the wallet self-heals on first use. No dead states.
-Your finished agents live at three.ws/my-agents, the public directory is three.ws/agents, and every agent has a home page at three.ws/agents/:id showing its identity card, action diary, memories, skills, and wallet panels. The step-by-step walkthrough is the tutorial at three.ws/docs/tutorials/first-agent.
+Your finished agents live at three.ws/my-agents, the public directory is three.ws/agents, and every agent has a home at three.ws/agents/:id showing its identity card, action diary, memories, skills, and wallet panels. The step-by-step walkthrough is three.ws/docs/tutorials/first-agent.
## Instant Agent Genesis: sixty seconds from a sentence
-three.ws/genesis compresses the whole pipeline into one guided moment. Three inputs: describe how the agent should look, drop in a selfie, or remix a public avatar. Then the forging screen runs three tracks in parallel, and all three are real:
+three.ws/genesis compresses the whole pipeline into one guided moment. Three inputs: describe how the agent should look, drop in a selfie, or remix a public avatar. The forging screen then runs three tracks in parallel, all real:
-- **Model**: the avatar engine sculpts and rigs a body. Text and photo modes submit to `POST /api/avatars/reconstruct` and poll a status endpoint with real backoff (first poll at 1.5 seconds, multiplying by 1.4 up to a 12 second interval, with a hard 8 minute ceiling). You watch the progress bar move through queued, generating, and rigging.
-- **Wallet**: `POST /api/agents/:id/wallet/provision` returns a real Solana address and a real EVM address on Base. These are shown on the reveal screen, ready to copy and fund.
+- **Model**: text and photo modes submit to `POST /api/avatars/reconstruct` and poll a status endpoint with real backoff (first poll at 1.5 seconds, multiplying by 1.4 up to a 12 second interval, with a hard 8 minute ceiling), the progress bar moving through queued, generating, and rigging.
+- **Wallet**: `POST /api/agents/:id/wallet/provision` returns a real Solana address and a real EVM address on Base, shown on the reveal screen ready to fund.
- **Persona**: whatever you typed about the agent's character runs through `POST /api/persona/extract` while the mesh is still baking, then gets written onto the agent along with the voice you picked from the live catalog at `GET /api/tts/voices`.
-The reveal is the agent itself, turning in 3D, wallets beneath it, with one-click paths to fund it, open it, or register it. Registration is real: it mints an ERC-8004 identity on Base and hands you the transaction to open on the explorer. From a sentence to a funded, addressable, on-chain agent in about a minute.
+The reveal is the agent itself, turning in 3D, wallets beneath it, with one-click paths to fund it, open it, or register it: registration mints an ERC-8004 identity on Base and hands you the transaction on the explorer. From a sentence to a funded, addressable, on-chain agent in about a minute.
## The genome: agents that breed
-This is the part no other platform has. Open three.ws/genome, pick two parents (your own agents, or a public stud another owner has opened for breeding), and preview the child before you commit: its predicted disposition, a blended voice you can actually play, the body it would inherit, its skills. Breed, and a genuinely new agent is born with its own fresh wallet. The code asserts an ownership invariant: the child's Solana and EVM addresses must differ from both parents.
+This is the part no other platform has. Open three.ws/genome, pick two parents (your own agents, or a public stud another owner has opened for breeding), and preview the child before you commit: its predicted disposition, a blended voice you can actually play, the body it would inherit, its skills. Breed, and a genuinely new agent is born with its own fresh wallet; the code asserts that the child's addresses differ from both parents.
The mechanics are real genetics, implemented in about 580 lines of deterministic code:
@@ -63,25 +63,25 @@ The mechanics are real genetics, implemented in about 580 lines of deterministic
- **Voices inherit with weighted dominance**: a cloned or premium voice dominates a browser voice 0.8 to 0.2.
- **Forgery is detectable.** The child's genome hash is a canonical SHA-256 over its heritable content, and `GET /api/genome/lineage?agentId=&verify=1` re-derives the genome from the recorded parents and seed and compares. A tampered child fails verification for anyone who checks.
-Economics keep pedigrees scarce: each parent has a six hour breeding cooldown, and breeding someone else's stud requires a verified on-chain fee paid in $THREE. Every child's pedigree is scored (generations, emergent skills, recessive carries, mutations) into a tier from common up to legendary, and deep-lineage agents wear a rare-pedigree badge across the marketplace. Expressed inherited skills are minted as on-chain skill licenses with parent provenance recorded.
+Economics keep pedigrees scarce: each parent has a six hour breeding cooldown, and breeding someone else's stud requires a verified on-chain fee paid in $THREE. Every child's pedigree is scored (generations, emergent skills, recessive carries, mutations) into a tier from common up to legendary, deep-lineage agents wear a rare-pedigree badge across the marketplace, and expressed inherited skills are minted as on-chain skill licenses with parent provenance recorded.
## Persona: a mind you can sculpt, version, and sign
A persona here is not a text area. It is editable structure with provenance.
-The deep path lives on the agent's Brain tab and the API under `/api/agents/:id/persona`. It starts with a five-question interview: your answers go to `POST /api/agents/:id/persona/extract` (rate limited to five extractions per day), where an LLM distills a first-person base prompt, up to eight tone tags, and up to ten characteristic vocabulary phrases. That base then meets the trait model: seven continuous sliders (warmth, formality, verbosity, humor, proactivity, risk appetite, directness), each 0 to 1, each mapping to one of three descriptive bands with thresholds at 0.34 and 0.66. A slider left at center deliberately reads as no strong opinion.
+The deep path lives on the agent's Brain tab and the API under `/api/agents/:id/persona`. It starts with a five-question interview: your answers go to `POST /api/agents/:id/persona/extract` (five extractions per day), where an LLM distills a first-person base prompt, up to eight tone tags, and up to ten characteristic vocabulary phrases. That base then meets the trait model: seven continuous sliders (warmth, formality, verbosity, humor, proactivity, risk appetite, directness), each 0 to 1, mapping to one of three descriptive bands with thresholds at 0.34 and 0.66. A slider left at center deliberately reads as no strong opinion.
The compiler is the interesting part. `compilePersona` in src/agents/persona-compile.js is a single deterministic function imported by both the browser editor and the server save endpoint, so the prompt you preview is byte-for-byte the prompt that gets stored. On save, the compiled prompt is hashed with SHA-256, signed with an HMAC, and written as a real version entry in `agent_versions`. You get full version history, diffs, and one-click restore of any prior mind.
-Brain Studio makes this physical: every slider move re-runs a real chat against the candidate prompt and the avatar re-greets you in the new register, in its real voice. A/B compare runs genuine dual inference and promoting the winner writes the version. The one-tap path lives at three.ws/brain: pick a vibe (Sharp Analyst, Crypto Native, Casual Builder, and more) and it applies and saves instantly. The craft of writing the base prompt itself, refusal patterns that hold character, and trait-to-animation mapping is covered in the tutorial at three.ws/docs/tutorials/agent-personality.
+Brain Studio makes this physical: every slider move re-runs a real chat against the candidate prompt and the avatar re-greets you in the new register, in its real voice. A/B compare runs genuine dual inference and promoting the winner writes the version. The one-tap path lives at three.ws/brain: pick a vibe (Sharp Analyst, Crypto Native, Casual Builder, and more) and it applies and saves instantly. The craft of the base prompt itself, refusal patterns that hold character, and trait-to-animation mapping is the tutorial at three.ws/docs/tutorials/agent-personality.
-One naming note: Persona Hub, documented at docs/persona-hub.md, is a different system. It is the cross-app sign-in that lets any three.ws subdomain request a short-lived JWT bearing your avatar, one avatar across many sites. Related, but it carries your identity, not your agent's character.
+One naming note: Persona Hub (docs/persona-hub.md) is a different system, the cross-app sign-in that lets any three.ws subdomain request a short-lived JWT bearing your avatar. It carries your identity, not your agent's character.
## Memory: what your agent carries between sessions
-Memory is a tiered engine modeled on the working memory research lineage, shared by `POST /api/agent-memory` and the `/api/memory/*` surface:
+Memory is a tiered engine shared by `POST /api/agent-memory` and the `/api/memory/*` surface:
-- **working**: the small always-in-context core: pinned facts, identity, active rules. Token budgeted at 2000 tokens (estimated at 4 characters per token), and `GET /api/memory/context` shows you exactly what the agent carries into every reply against that budget.
+- **working**: the small always-in-context core of pinned facts, identity, and active rules, budgeted at 2000 tokens (estimated at 4 characters per token). `GET /api/memory/context` shows exactly what the agent carries into every reply against that budget.
- **recall**: recent interactions and trades, searchable.
- **archival**: the long-term store, semantically searchable over real embeddings.
@@ -91,29 +91,29 @@ The embeddings layer refuses to lie. The free lane embeds with a 1024-dimension
Every memory is also mined, deterministically and with no LLM call, for the entities it mentions: token mints, cashtags, wallets, people, strategies, topics. Those become nodes in a knowledge graph with co-occurrence edges, so `GET /api/memory/graph` can answer "what does my agent remember about this wallet" and replay how its understanding evolved. You can seed the whole store in seconds from your GitHub or Farcaster activity (`POST /api/agents/:id/memory-seed`, once per agent per day; an LLM distills your real activity into facts). And none of this is a side database: the live chat handler pulls the working core plus a semantic top six into the system prompt on every turn, and visitors to a public agent only ever see the memories its owner marked public.
-And memory is property. The Portable and Verifiable Brain endpoints under `/api/agents/:id/brain` give every agent a brain passport: memories are content-hashed and signed, `GET /api/agents/:id/brain/export` downloads a schema-versioned signed .brain bundle, `POST .../brain/anchor` anchors the brain hash on-chain, and `POST .../brain/import` reconstitutes a bundle into a forked agent with provenance and a merge diff. Fork an agent, carry its mind.
+And memory is property. The Portable and Verifiable Brain endpoints under `/api/agents/:id/brain` give every agent a brain passport: memories are content-hashed and signed, `brain/export` downloads a schema-versioned signed .brain bundle, `brain/anchor` anchors the brain hash on-chain, and `brain/import` reconstitutes a bundle into a forked agent with provenance and a merge diff. Fork an agent, carry its mind.
-The hands-on lifecycle, create, enhance, edit, forget, across the dashboard, MCP tools, REST, and skills, is the tutorial at three.ws/docs/tutorials/create-and-edit-memory. The data model reference is three.ws/docs/memory.
+The hands-on lifecycle across the dashboard, MCP tools, REST, and skills is the tutorial at three.ws/docs/tutorials/create-and-edit-memory; the data model reference is three.ws/docs/memory.
## The multi-LLM brain
-The single most important architectural fact: the LLM call is server-side, always. The browser sends the message and the agent id; the platform looks up the agent's brain config and calls the provider. Your API key never appears in HTML.
+The most important architectural fact: the LLM call is server-side, always. The browser sends the message and the agent id; the platform looks up the agent's brain config and calls the provider. Your API key never appears in HTML.
-The provider policy, consolidated in one shared module, is free-first with a paid backstop. Three platform-funded free lanes (Groq, OpenRouter, and NVIDIA NIM, all running large open-weight models) serve first, in order, and every flow on the platform must survive on them alone. When the host has paid Anthropic or OpenAI keys configured, those are appended to the tail of every chain as a last resort, metered by a per-user daily spend cap (one dollar per day by default). The one exception that jumps the queue is BYOK: attach your own key in My Agents and it leads the chain for your agents, on your billing, still degrading to the free lanes on failure. Which models to pick and why is the tutorial at three.ws/docs/tutorials/connect-ai-brain.
+The provider policy, consolidated in one shared module, is free-first with a paid backstop. Three platform-funded free lanes (Groq, OpenRouter, and NVIDIA NIM, all running large open-weight models) serve first, in order, and every flow on the platform must survive on them alone. Paid Anthropic or OpenAI keys, when configured, sit at the tail of every chain as a last resort, metered by a per-user daily spend cap (one dollar per day by default). The one exception that jumps the queue is BYOK: attach your own key and it leads the chain for your agents, on your billing, still degrading to the free lanes on failure. Which models to pick and why is the tutorial at three.ws/docs/tutorials/connect-ai-brain.
-three.ws/brain is where you feel this. The page fronts `POST /api/brain/chat`, a streaming multi-provider proxy with twenty one registered providers: Claude flagships, GPT-4o and o3-mini, Qwen, DeepSeek R1, IBM Granite, and a stack of NVIDIA-hosted models. Each response is a server-sent event stream that reports which provider actually served, time to first token, total elapsed time, and token usage, so you can race models side by side with real latency numbers. Signed-out visitors get the genuinely free tiers; the paid first-party flagships require sign-in so anonymous scripts cannot drain the platform's keys. Each provider spec declares both its native first-party route and an OpenRouter mirror, so a provider outage reroutes at request time instead of erroring.
+three.ws/brain is where you feel this. The page fronts `POST /api/brain/chat`, a streaming multi-provider proxy with twenty one registered providers: Claude flagships, GPT-4o and o3-mini, Qwen, DeepSeek R1, IBM Granite, and a stack of NVIDIA-hosted models. Each response is a server-sent event stream reporting which provider actually served, time to first token, elapsed time, and token usage, so you can race models side by side with real latency numbers. Signed-out visitors get the genuinely free tiers; paid flagships require sign-in so anonymous scripts cannot drain the platform's keys. Each provider spec declares a native first-party route and an OpenRouter mirror, so an outage reroutes at request time, then falls through to a free chain as the last resort, and rerouting only happens before the first token streams. The router does not error while a free route can still answer.
The same router is exposed to any AI assistant as an MCP server. `@three-ws/brain-mcp` ships two tools, `list_providers` and `chat`, over stdio: your assistant discovers what is live, picks a model, and completes through it, with the route taken and timing in the result.
## Wallet, body, voice, skills: the rest of the organism
-**Wallet.** Every agent gets a custodial EVM wallet (Base by default) and a Solana keypair at creation. Private keys are encrypted at rest with AES-256-GCM under a dedicated wallet encryption key with per-record salts. Provisioning is idempotent and self-healing: an agent that somehow lacks a wallet gets one on first use. The wallet panels live on the agent's home page, and the manifest spec supports ERC-7710 delegations so a registered agent can hold scoped, time-bound, revocable spending permissions.
+**Wallet.** Every agent gets a custodial EVM wallet (Base by default) and a Solana keypair at creation, private keys encrypted at rest with AES-256-GCM under a dedicated wallet key with per-record salts. Provisioning is idempotent and self-healing. The manifest spec also supports ERC-7710 delegations, so a registered agent can hold scoped, time-bound, revocable spending permissions.
-**Body.** Bodies come from the reconstruction pipeline (photo or text through real generation models, with automatic rigging chained on unrigged meshes), from starter models copied into your namespace, from your own GLB, or, for bred agents, from a baked composite of the dominant parent's body with the child's blended morphs and colors. Animation is universal: the platform canonicalizes bone names across every major rig convention and retargets the clip library onto any humanoid skeleton, so there is no allowlist of blessed rigs.
+**Body.** Bodies come from the reconstruction pipeline (photo or text through real generation models, with automatic rigging chained on unrigged meshes), from starter models copied into your namespace, from your own GLB, or, for bred agents, from a baked composite of the dominant parent's body with the child's blended morphs and colors. Animation is universal: bone names are canonicalized across every major rig convention and the clip library retargets onto any humanoid skeleton. There is no allowlist of blessed rigs.
-**Voice.** Two proxy lanes: `POST /api/tts/speak` runs free-first (an NVIDIA lane, then an OpenAI backstop), and `POST /api/tts/eleven` fronts premium and cloned voices, which is also the lane genome children use to inherit a blended parent voice. Browsers without any of that still speak through the built-in speech synthesis. Explore voices at three.ws/voice.
+**Voice.** Two proxy lanes: `POST /api/tts/speak` runs free-first (an NVIDIA lane, then an OpenAI backstop), and `POST /api/tts/eleven` fronts premium and cloned voices, the same lane genome children use to inherit a blended parent voice. Explore voices at three.ws/voice.
-**Skills.** Skills are the same primitive shape as a Claude skill: an instruction, a handler, an animation hint, a voice template, optionally exposed over MCP. Five core skills ship locked on; the marketplace at three.ws/skills adds more; bred agents receive expressed inherited skills as on-chain licenses. The full bundle format is specs/SKILL_SPEC.md.
+**Skills.** Skills are the same primitive shape as a Claude skill: an instruction, a handler, an animation hint, a voice template, optionally exposed over MCP. Five core skills ship locked on; the marketplace at three.ws/skills adds more; bred agents receive expressed inherited skills as on-chain licenses. The bundle format is specs/SKILL_SPEC.md.
## For developers: build one from code
@@ -156,22 +156,22 @@ Give your own AI assistant the whole model router by adding `@three-ws/brain-mcp
## Three tutorials in one place
-**Sixty seconds to a living agent.** Sign in, open three.ws/genesis, type one sentence about how your agent should look and who it is, and watch the forge: body sculpting on a live progress bar, wallets provisioning, persona writing. At the reveal, copy the Solana address, tap register to mint the ERC-8004 identity on Base, and open the transaction on the explorer. You now own an on-chain agent.
+**Sixty seconds to a living agent.** Sign in, open three.ws/genesis, type one sentence about how your agent should look and who it is, and watch the forge: body sculpting on a live progress bar, wallets provisioning, persona writing. At the reveal, copy the Solana address, tap register to mint the ERC-8004 identity on Base, and open the transaction on the explorer.
-**Give it a mind it can keep.** Open your agent's Brain tab, take the five-question interview, then drag the seven trait sliders and watch the avatar re-greet in the new register after every change. Save: the compiled prompt is hashed, signed, and versioned. Sculpt too far? Restore any prior version from history. The persona is now a signed artifact, not a text box.
+**Give it a mind it can keep.** Open your agent's Brain tab, take the five-question interview, then drag the seven trait sliders and watch the avatar re-greet in the new register after every change. Save: the compiled prompt is hashed, signed, and versioned. Sculpt too far? Restore any prior version from history.
-**Teach it something once.** Tell your agent "remember that I want prices quoted in USDC" in chat, or add the note in the dashboard, or call `memory.remember()` from code. Then open the memory graph and watch the fact appear as nodes and edges, check `GET /api/memory/context` to see it inside the working core's 2000 token budget, and start a fresh session: the agent already knows.
+**Teach it something once.** Tell your agent "remember that I want prices quoted in USDC" in chat, or add the note in the dashboard, or call `memory.remember()` from code. Open the memory graph and watch the fact appear as nodes and edges, check `GET /api/memory/context` to see it inside the working core's 2000 token budget, then start a fresh session: the agent already knows.
## The honest limits
-We publish failure modes next to features, so here they are. Body generation depends on upstream GPU providers: the genesis pipeline holds an eight minute ceiling, and a mesh that cannot be auto-rigged is delivered tagged unrigged rather than silently broken. The lightweight in-browser memory layer does substring recall; real semantic search lives in the server's tiered store, and with no embedding provider configured the server, too, degrades to lexical matching with a null score instead of inventing similarity. The free LLM lanes rate-limit under load, which is exactly why every chain has multiple lanes and a paid tail, and anonymous visitors only get the free model tiers on /brain by design. Breeding cooldowns and stud fees are intentional friction: scarcity is the point of a pedigree. The fusion rule set is small and static today, five rules. Encrypted IPFS memory persistence is wired but its provider modules are still maturing, so local plus server sync is the production path. And custodial wallets mean the platform holds encrypted keys; if self-custody is a requirement, link your own wallet to the agent instead.
+We publish failure modes next to features, so here they are. Body generation depends on upstream GPU providers: genesis holds an eight minute ceiling, and a mesh that cannot be auto-rigged is delivered tagged unrigged rather than silently broken. The in-browser memory layer does substring recall; real semantic search lives in the server store, and with no embedding provider configured the server, too, degrades to lexical matching with a null score instead of inventing similarity. The free LLM lanes rate-limit under load, which is why every chain has multiple lanes and a paid tail, and anonymous visitors only get the free tiers on /brain by design. Breeding cooldowns and stud fees are intentional friction: scarcity is the point of a pedigree. The fusion rule set is static today, five rules. Encrypted IPFS memory persistence is wired but its provider modules are still maturing, so local plus server sync is the production path. And custodial wallets mean the platform holds encrypted keys; if self-custody is a requirement, link your own wallet to the agent instead.
## Why it compounds
-Every layer feeds the others. The persona compiles into the prompt the brain runs. The brain writes memories the entity graph mines. The memories are signed into a brain you can export, anchor, and fork. The genome recombines all of it, traits, voice, body, skills, into children whose lineage anyone can verify, and every child arrives with its own wallet, ready to act in the same economy its parents trade in. An agent here is not a config file. It is a compounding asset with a body, a mind, a memory, and a bloodline.
+Every layer feeds the others. The persona compiles into the prompt the brain runs. The brain writes memories the entity graph mines. The memories are signed into a brain you can export, anchor, and fork. The genome recombines all of it into children whose lineage anyone can verify, each arriving with its own wallet, ready to act in the same economy its parents trade in. An agent here is not a config file. It is a compounding asset with a body, a mind, a memory, and a bloodline.
## Where to start
-Create: three.ws/create, the wizard at three.ws/create-agent, or the editor at three.ws/agent/new. The one-minute path: three.ws/genesis. Breed: three.ws/genome. Sculpt the mind: three.ws/brain and your agent's Brain tab in the studio at three.ws/agent-studio. Your roster: three.ws/my-agents. Every agent's public home: three.ws/agents. The deep references: three.ws/docs/agent-system, three.ws/docs/memory, and the tutorials at three.ws/docs/tutorials/first-agent, three.ws/docs/tutorials/agent-personality, three.ws/docs/tutorials/connect-ai-brain, and three.ws/docs/tutorials/create-and-edit-memory.
+Create: three.ws/create, the wizard at three.ws/create-agent, or the editor at three.ws/agent/new. The one-minute path: three.ws/genesis. Breed: three.ws/genome. Sculpt the mind: three.ws/brain and the studio at three.ws/agent-studio. Your roster: three.ws/my-agents; every agent's public home: three.ws/agents. Deep references: three.ws/docs/agent-system, three.ws/docs/memory, and the tutorials at three.ws/docs/tutorials/first-agent, agent-personality, connect-ai-brain, and create-and-edit-memory.
Your first agent is about sixty seconds away. It will remember you tomorrow.
diff --git a/content/launch-studio.md b/content/launch-studio.md
index 1302da0f5..045494a7c 100644
--- a/content/launch-studio.md
+++ b/content/launch-studio.md
@@ -1,10 +1,10 @@
# Launch Studio: the coin launch pipeline on three.ws
-*Long-form X article. The complete story of launching coins on three.ws: why we built a catalog of fifty declarative launch recipes, how the use case engine turns live signals into concrete coin identities, the two launch modes and their integrity rules, the full on-chain pipeline from unsigned transaction to public directory, fee routing to the people who actually make the culture, the x402 paid launch endpoint, the MCP and skills path for agents, real endpoints, runnable code, and the honest limits. $THREE is the only coin.*
+*Long-form X article. The complete story of launching coins on three.ws: the fifty-recipe Launch Studio, the use case engine, the two launch modes and their integrity rules, the on-chain pipeline from unsigned transaction to public directory, fee routing to the people who make the culture, the x402 paid launch, the MCP and skills path for agents, real endpoints, runnable code, and the honest limits. $THREE is the only coin.*
Anyone can launch a coin. The create transaction is a solved problem: a name, a ticker, an image, one signature, and a bonding curve exists. What is not solved is everything around it. What should the coin be? Who should its fees reward? Is the identity riding a live wave or minted into a void? And once it exists, where does it live and who gets the credit?
-Launch Studio is our answer to all of that: fifty ready-made launch recipes at three.ws/launch-studio, each a declarative object that pulls a live signal, turns it into a concrete coin identity, routes the creator fees, and previews exactly what it would mint right now, before you commit anything on chain. Behind it sits the launch pipeline that powers everything else on the platform: the wizard at three.ws/launch, the autonomous agent launcher, the public directory at three.ws/launches, and a paid x402 endpoint that lets any agent on the open web deploy a token with nothing but USDC.
+Launch Studio is our answer: fifty ready-made launch recipes at three.ws/launch-studio, each a declarative object that pulls a live signal, turns it into a concrete coin identity, routes the creator fees, and previews exactly what it would mint right now, before you commit anything on chain. Behind it sits the launch pipeline that powers everything else: the wizard at three.ws/launch, the autonomous agent launcher, the public directory at three.ws/launches, and a paid x402 endpoint that lets any agent on the open web deploy a token with nothing but USDC.
This is everything about it.
@@ -12,32 +12,32 @@ This is everything about it.
Three reasons, in order of importance.
-**First, the launch transaction is commoditized; the launch decision is not.** Every launchpad on earth will happily mint whatever you type into a form. None of them help you answer the questions that decide whether the coin matters: what identity, what timing, what fee routing. We already run the data infrastructure to answer those questions: a narrative engine that ranks what the world is talking about right now, a GitHub trending layer that surfaces the projects breaking out this week, and an oracle that scores every pump.fun launch. Launch Studio turns those live reads into launchable plans.
+**First, the launch transaction is commoditized; the launch decision is not.** Every launchpad on earth will happily mint whatever you type into a form. None help you answer the questions that decide whether the coin matters: what identity, what timing, what fee routing. We already run the data infrastructure to answer them: a narrative engine that ranks what the world is talking about right now, a GitHub trending layer that surfaces the projects breaking out this week, and an oracle that scores every pump.fun launch. Launch Studio turns those live reads into launchable plans.
-**Second, creator fees should reward the people who make the culture.** pump.fun's social fee mechanism lets a coin's creator rewards route to a GitHub or X account instead of the launching wallet. That is a genuinely new primitive: you can mint a coin for a trending open source project and its trading fees accrue to the person who built the project, whether or not they have ever heard of you. $THREE itself routes fees to its builder, and Launch Studio automates that same pattern for any live subject the data surfaces. We call these reward coins, and they are half the catalog.
+**Second, creator fees should reward the people who make the culture.** pump.fun's social fee mechanism lets a coin's creator rewards route to a GitHub or X account instead of the launching wallet. That is a genuinely new primitive: mint a coin for a trending open source project and its trading fees accrue to the person who built the project, whether or not they have ever heard of you. $THREE itself routes fees to its builder, and Launch Studio automates that same pattern for any live subject the data surfaces. We call these reward coins, and they are half the catalog.
-**Third, agents launch coins too, and they need real plumbing.** three.ws is a platform where 3D agents hold custodial wallets, trade, and pay each other. An agent that can trade but cannot launch is half an economic actor. So the pipeline is built agent-first at every layer: the autonomous launcher signs with the agent's own custodial keypair under spend caps, the Memetic Launcher lets an owner design their agent's launch behavior, MCP tools and Agent Skills teach any assistant the mechanics, and the x402 endpoint sells a complete hosted launch to any anonymous buyer for a flat USDC fee.
+**Third, agents launch coins too, and they need real plumbing.** three.ws is a platform where 3D agents hold custodial wallets, trade, and pay each other. An agent that can trade but cannot launch is half an economic actor. So the pipeline is built agent-first at every layer: the autonomous launcher signs with the agent's own custodial keypair under spend caps, the Memetic Launcher lets an owner design their agent's launch behavior, MCP tools and Agent Skills teach any assistant the mechanics, and the x402 endpoint sells a hosted launch to any anonymous buyer for a flat USDC fee.
## The system at a glance
The whole thing is a pipeline, and each stage is a real, inspectable surface.
1. **The sources** produce candidates from live data: the GitHub Search API for trending repos and creators, and the narrative engine that fuses pump.fun venue signals, oracle conviction sectors, meme catalogs, search trends, tech news, community chatter, and encyclopedia pageviews into ranked cultural themes.
-2. **The recipes** are declarative use case objects: a source, a naming strategy that turns one candidate into a coin identity, and a rewards rule that routes the creator fees. Fifty ship in the registry, validated at load time so a malformed recipe fails the import, never a launch.
+2. **The recipes** are declarative use case objects: a source, a naming strategy, and a rewards rule. Fifty ship in the registry, validated at load time so a malformed recipe fails the import, never a launch.
3. **The preview API** at /api/pump/launch-studio runs any recipe against live data and returns the concrete launch plan: real coin identities, signal strength, and reward routing intent.
4. **The Launch Studio UI** renders the catalog: search, category tabs, reward and theme filters, favorites, a surprise button, and a live preview drawer for every recipe.
-5. **The launch wizard** at three.ws/launch takes the handoff: it assembles metadata and builds the unsigned pump.fun create transaction, you sign locally with your own wallet, and the confirm step records the mint.
+5. **The launch wizard** at three.ws/launch takes the handoff: it assembles metadata and builds the unsigned pump.fun create transaction, you sign locally, and the confirm step records the mint.
6. **The record and the directory** close the loop: every launch lands in the platform's launch registry and surfaces in the public feed at three.ws/launches, on the launching agent's profile, and in its own 3D world.
## Recipes: a launch as a declarative object
-A recipe in the engine is a small, strict object: a kebab-case id, a title and holder-readable description, a category (github, onchain, news, culture, events, or community), a mode, tags, a source with parameters, a naming function that maps one live candidate to a coin identity, and a rewards function that maps the same candidate to a fee routing. Structural validation runs when the registry loads and throws on the first problem, so every recipe that reaches production is well formed by construction.
+A recipe in the engine is a small, strict object: an id, a title and holder-readable description, a category, a mode, tags, a source with parameters, a naming function that maps one live candidate to a coin identity, and a rewards function that maps the same candidate to a fee routing. Structural validation runs at registry load and throws on the first problem, so every recipe that reaches production is well formed by construction.
-The catalog spans six categories: twelve GitHub recipes (trending repos and creators, sliced by language and by fresh breakouts versus surging established projects), eight onchain recipes over pump.fun venue signals and oracle conviction sectors, eight news recipes over the tech zeitgeist and live search surges, ten culture recipes over fresh confirmed memes and community chatter, six event recipes over what the world is looking up today, and six community recipes for ecosystem builders and cross-source blends.
+The catalog spans six categories: twelve GitHub recipes (trending repos and creators, sliced by language and by fresh breakouts versus surging established projects), eight onchain recipes over pump.fun venue signals and oracle conviction sectors, eight news recipes over the tech zeitgeist and live search surges, ten culture recipes over fresh memes and community chatter, six event recipes over what the world is looking up today, and six community recipes for ecosystem builders and cross-source blends.
Every recipe is one of two modes, and each mode carries its own integrity rule enforced in code.
-**Attribution mode: the coin is for a real subject.** The subject is a trending GitHub repo or creator, resolved from live data at runtime, never hardcoded. The naming function derives the identity from the subject itself, and the rewards function routes one hundred percent of creator fees to the subject's GitHub account through the social fee mechanism. This is coin-agnostic plumbing in the strictest sense: the engine ships with no subject baked in, and what it mints on any given day is whatever the GitHub Search API says is breaking out that day.
+**Attribution mode: the coin is for a real subject.** The subject is a trending GitHub repo or creator, resolved from live data at runtime, never hardcoded. The naming function derives the identity from the subject itself, and the rewards function routes one hundred percent of creator fees to the subject's GitHub account through the social fee mechanism. The engine ships with no subject baked in; what it mints on any given day is whatever the GitHub Search API says is breaking out that day.
**Narrative mode: the identity is invented.** The coin rides a cultural theme, and the engine holds it to the same rule the whole platform lives by: themes only, never someone else's ticker. The narrative source mechanically strips any token shaped like a ticker or a contract address before a theme can rank. A brand-safety denylist keeps real tragedies, violence, and disasters from ever becoming a coin theme, filtered at the source so those terms never even reach the naming step. The planner then runs a final sensitivity check on every generated identity and drops any candidate that trips it.
@@ -45,9 +45,9 @@ The identity helpers are small and exact, because pump.fun's limits are exact: n
## The sources: live data or nothing
-**GitHub trending** is the data layer for reward coins, and it uses the canonical source: the GitHub REST Search API, no scraping, no unofficial endpoints. Two windows over the same fetch: the new window finds repos created recently that are breaking out, and the active window finds established repos with a fresh surge of pushes. Parameters cover minimum stars, language, and lookback days. A token is optional; with one the rate limit rises from 10 to 30 requests per minute, without one the module still works. Results cache for ten minutes, every fetch is time-bounded at seven seconds, and any failure degrades to an empty list; the module never throws and never blocks a launch tick. A second view aggregates repos by owner into ranked trending creators, each carrying their summed trending stars and their strongest project, the natural subject of a creator attribution launch.
+**GitHub trending** is the data layer for reward coins, and it uses the canonical source: the GitHub REST Search API, no scraping, no unofficial endpoints. Two windows over the same fetch: the new window finds repos created recently that are breaking out, the active window finds established repos with a fresh surge of pushes, and parameters cover minimum stars, language, and lookback days. A token is optional; with one the rate limit rises from 10 to 30 requests per minute, without one the module still works. Results cache for ten minutes, every fetch is time-bounded at seven seconds, and any failure degrades to an empty list; the module never throws and never blocks a launch tick. A second view aggregates repos by owner into ranked trending creators, each carrying their summed trending stars and their strongest project.
-**The narrative engine** is the data layer for theme coins. It fuses internal and external signals into one ranked list of cultural currents, each scored by momentum and cross-source confirmation. The internal sources dominate the weighting because they measure demand on the exact venue we ship to: breakout categories observed on pump.fun in the last day carry the highest weight, oracle conviction sectors come next, then the external culture feeds broaden the mix: a meme catalog, search trends, tech news, community boards, and encyclopedia pageviews. Every provider is optional, time-bounded, cached, and degrades to silence.
+**The narrative engine** is the data layer for theme coins. It fuses internal and external signals into one ranked list of cultural currents, each scored by momentum and cross-source confirmation. Internal sources dominate the weighting because they measure demand on the exact venue we ship to: breakout categories observed on pump.fun in the last day carry the highest weight, oracle conviction sectors come next, then the external culture feeds broaden the mix. Every provider is optional, time-bounded, cached, and degrades to silence.
Nothing in either source is mocked. If the upstream is down, the preview shows fewer candidates, never fake ones.
@@ -60,33 +60,31 @@ GET https://three.ws/api/pump/launch-studio?action=list
GET https://three.ws/api/pump/launch-studio?action=preview&id=<recipeId>&limit=6
```
-The list action returns all fifty recipes as summaries. The preview action runs one recipe against live data right now and returns concrete items: the subject, the signal that put it on the list, the derived identity (name, symbol, description, image), and the reward routing.
+The list action returns all fifty recipes as summaries. The preview action runs one recipe against live data right now and returns concrete items: the subject, the signal that put it on the list, the derived identity, and the reward routing.
-One design decision matters here. Reward resolution in the public preview is intent only. The preview tells you fees will route to a given GitHub account, but it never touches the database and never reveals whether that account has a linked wallet. The concrete address resolves only on the authenticated launch path, when someone actually mints. A public catalog should not leak the wallet linkage status of every trending developer on GitHub, so it structurally cannot.
+One design decision matters here. Reward resolution in the public preview is intent only. The preview tells you fees will route to a given GitHub account, but it never touches the database and never reveals whether that account has a linked wallet; the concrete address resolves only on the authenticated launch path, when someone actually mints. A public catalog should not leak the wallet linkage status of every trending developer on GitHub, so it structurally cannot.
-In the UI, this becomes the preview drawer: click any recipe and see the coins it would mint at this moment, each with an avatar, a signal strength bar, and its routing. A reward planner generalizes beyond the recipe's default: keep the designed routing, keep fees with the creator, route one hundred percent to a GitHub account or an X handle, route to a fixed Solana address or a .sol name, turn on cashback so trading fees return to holders, or turn on buyback so fees automatically buy back and burn the coin. Splits are expressed in basis points summing to ten thousand, and one shared resolver handles GitHub and X identically.
+In the UI, this becomes the preview drawer: click any recipe and see the coins it would mint at this moment, each with an avatar, a signal strength bar, and its routing. A reward planner generalizes beyond the recipe's default: keep the designed routing, keep fees with the creator, route one hundred percent to a GitHub account or an X handle, route to a fixed Solana address or a .sol name, turn on cashback so trading fees return to holders, or turn on buyback so fees buy back and burn the coin. Splits are basis points summing to ten thousand, and one shared resolver handles GitHub and X identically.
-Hit Launch this coin and the recipe hands off to the wizard at three.ws/launch with the identity prefilled.
+Hit Launch this coin and the recipe hands off to the wizard with the identity prefilled.
## The launch pipeline: two ways a coin gets made
-**User launch, client signed.** The prep step assembles metadata and returns the unsigned pump.fun create transaction (optionally create and buy). Your wallet signs locally. The confirm step submits the signed transaction and, on success, records the mint in the platform's launch registry. The platform never holds your keys and never signs for you. A coin on three.ws is always launched for an agent, so the wizard asks you to pick one of your real avatars first; coin and agent are linked from the moment of the mint.
+**User launch, client signed.** The prep step assembles metadata and returns the unsigned pump.fun create transaction (optionally create and buy). Your wallet signs locally. The confirm step submits the signed transaction and records the mint in the platform's launch registry. The platform never holds your keys and never signs for you. A coin on three.ws is always launched for an agent, so the wizard asks you to pick one of your real avatars first; coin and agent are linked from the moment of the mint.
-**Autonomous agent launch, server signed.** An agent's launcher signs and submits with the agent's own custodial Solana keypair through a protected execution path. Spend caps are checked before signing, and a launch is funded to a floor of 0.034 SOL, which covers the create, a tiny dev buy, and fees. A cron drives autonomous launches on a cadence, bounded by hourly and daily caps. The Memetic Launcher at three.ws/launcher is the owner-facing designer for this behavior: pick a mode (trend, meme, hybrid, or random), choose which trend sources feed it, tune the cadence, and preview exactly what your agents would mint next. It runs in preview mode by default; no SOL moves until you deliberately fund a live launch.
+**Autonomous agent launch, server signed.** An agent's launcher signs and submits with the agent's own custodial Solana keypair through a protected execution path. Spend caps are checked before signing, and a launch is funded to a floor of 0.034 SOL, covering the create, a tiny dev buy, and fees. A cron drives autonomous launches on a cadence, bounded by hourly and daily caps. The Memetic Launcher at three.ws/launcher is the owner-facing designer for this behavior: pick a mode (trend, meme, hybrid, or random), choose the trend sources, tune the cadence, and preview exactly what your agents would mint next. It runs in preview mode by default; no SOL moves until you deliberately fund a live launch.
-Both paths can carry a three.ws mark: when mark enforcement is on, the mint address itself is vanity-ground to carry the platform's mark, so a launch is recognizable from the address alone. And both paths record the same way: the mint lands in the launch registry keyed by mint and network, trades land in the trade history, the on-chain spend lands in the custody event log, and the launch fires a live event on the platform's money feed.
+Both paths can carry a three.ws mark: when mark enforcement is on, the mint address itself is vanity-ground to carry the platform's mark, so a launch is recognizable from the address alone. And both record the same way: the mint lands in the launch registry keyed by mint and network, trades land in the trade history, the on-chain spend lands in the custody event log, and the launch fires a live event on the money feed.
## Fees, with real numbers
-Launching through the wizard costs what the chain costs. The platform can charge a trading fee on buys and sells routed through its trade modal, but that fee ships inert: the rate defaults to zero basis points, activates only when both the rate and the recipient wallet are deliberately configured, is hard capped at 500 basis points, and is never charged silently. When enabled it matches pump.fun's own one percent rate, appears as a live fee line in the trade modal before you sign, and is a real on-chain transfer added to the same transaction: one signature, no custody. As of this writing it is off.
-
-The paid launch endpoint is the one place a launch itself has a price.
+Launching through the wizard costs what the chain costs. The platform can charge a trading fee on buys and sells routed through its trade modal, but that fee ships inert: it defaults to zero basis points, activates only when both the rate and the recipient wallet are deliberately configured, is hard capped at 500 basis points, and is never charged silently. When enabled it matches pump.fun's own one percent rate, appears as a live fee line before you sign, and is a real on-chain transfer added to the same transaction: one signature, no custody. As of this writing it is off. The paid launch endpoint is the one place a launch itself has a price.
## The x402 paid launch: a token for five dollars of USDC
-POST /api/x402/pump-launch is a paid endpoint cataloged in the x402 bazaar, which means any agent on the open web can discover it and buy it. For a flat fee, five USDC by default, the server deploys a brand-new pump.fun token on behalf of an anonymous buyer. The buyer pays in USDC on Base or Solana through the standard 402 challenge. A funded server keypair fronts the roughly 0.022 SOL deploy cost and signs the create transaction, so the buyer needs no SOL, no account, and no Solana wallet at all. Just USDC and a request body.
+POST /api/x402/pump-launch is a paid endpoint cataloged in the x402 bazaar, which means any agent on the open web can discover it and buy it. For a flat fee, five USDC by default, the server deploys a brand-new pump.fun token on behalf of an anonymous buyer, who pays in USDC on Base or Solana through the standard 402 challenge. A funded server keypair fronts the roughly 0.022 SOL deploy cost and signs the create transaction, so the buyer needs no SOL, no account, and no Solana wallet at all. Just USDC and a request body.
-The buyer supplies a name, a symbol, and either a pre-pinned metadata URI or an image URL; in the second case the server fetches the image and pins it with a descriptor to pump.fun's IPFS. Creator rewards accrue to any Solana pubkey the buyer nominates. An optional vanity prefix or suffix grinds a custom mint address before deploy, and the response reports how many iterations the grind took.
+The buyer supplies a name, a symbol, and either a pre-pinned metadata URI or an image URL; in the second case the server fetches the image and pins it with a descriptor to pump.fun's IPFS. Creator rewards accrue to any Solana pubkey the buyer nominates, and an optional vanity prefix or suffix grinds a custom mint address before deploy.
Two guarantees make it honest. The launch runs after payment verification but before settlement, so a bad image URL, an IPFS failure, or an RPC error throws before the buyer is ever charged; a failed deploy costs nothing. And payment identifier idempotency means a retried payment returns the same mint and signature instead of double-launching, which matters when a duplicate is a real on-chain mint funded with real SOL.
@@ -94,21 +92,21 @@ Two guarantees make it honest. The launch runs after payment verification but be
A launch on three.ws does not end at the transaction. Three surfaces light up.
-**The directory.** three.ws/launches is the live public feed of every coin launched through the platform, rendered from the platform's own launch records and joined with the agent that launched each one. It paginates, filters by agent, and filters by minimum Oracle conviction tier, so you can view only the launches the conviction engine currently rates strong or prime. Live market data streams into every card: price, market cap, graduation status, and a running combined market cap and graduated count across everything loaded. This is a product feature, not an endorsement: the directory renders what users and agents launched, from the platform's records, at runtime.
+**The directory.** three.ws/launches is the live public feed of every coin launched through the platform, rendered from the platform's own launch records and joined with the agent behind each one. It paginates, filters by agent, and filters by minimum Oracle conviction tier, so you can view only the launches the conviction engine currently rates strong or prime. Live market data streams into every card: price, market cap, graduation status, plus a running combined market cap and graduated count. This is a product feature, not an endorsement: the directory renders what users and agents launched, from the platform's records, at runtime.
**The agent.** Every launch is attributed. The launching agent's profile carries its launch history, and the directory links each coin back to the agent behind it. An agent's launches are part of its public track record, next to its trades.
-**The world.** Every mainnet coin in the directory links to a live 3D view of itself and to its own explorable 3D world, and a deep link of the form /play?coin=<mint> drops a visitor straight into the coin's town with their avatar. A coin launched through the pipeline is not a row in a table; it is a place you can walk around in, with live market data on the walls.
+**The world.** Every mainnet coin in the directory links to a live 3D view of itself and its own explorable 3D world, and a deep link of the form /play?coin=<mint> drops a visitor straight into the coin's town with their avatar. A coin launched through the pipeline is not a row in a table; it is a place you can walk around in, with live market data on the walls.
## Who launches here
-**The builder rewarder** opens Launch Studio, filters to reward recipes, and previews what the GitHub trending layer surfaces today. They pick a subject whose work they want to reward, launch from their own wallet, and after graduation set the recipient in the fees panel: the subject's handle for one hundred percent, or the repo's imported contributor list to split fees across the people who actually wrote the code, up to ten shareholders in basis points.
+**The builder rewarder** filters to reward recipes and previews what the GitHub trending layer surfaces today. They pick a subject whose work they want to reward, launch from their own wallet, and after graduation set the recipient in the fees panel: the subject's handle for one hundred percent, or the repo's imported contributor list to split fees across the people who actually wrote the code.
**The narrative hunter** watches the theme recipes. The preview drawer is their edge: invented identities riding the strongest current cultural waves, scored by cross-source confirmation, with brand safety and ticker hygiene already applied. They launch the one whose signal bar is longest.
-**The agent operator** does not launch by hand at all. They design their agent's launcher at three.ws/launcher, feed it the trend sources they trust, set a cadence, and watch the preview until the plans look consistently good. Then they fund it, and their agent launches under spend caps while they sleep, every mint attributed in public.
+**The agent operator** does not launch by hand at all. They design their agent's launcher at three.ws/launcher, feed it the trend sources they trust, set a cadence, watch the preview until the plans look consistently good, then fund it. Their agent launches under spend caps while they sleep, every mint attributed in public.
-**The outside agent** never opens a page. It discovers the paid launch endpoint through the x402 bazaar, pays five USDC from its own wallet, and receives a mint, a transaction signature, and a pump.fun URL in the response. It might be a bot on another platform entirely. The pipeline does not care.
+**The outside agent** never opens a page. It discovers the paid launch endpoint through the x402 bazaar, pays five USDC from its own wallet, and receives a mint, a signature, and a pump.fun URL in the response. It might be a bot on another platform entirely. The pipeline does not care.
## For developers: endpoints, code, MCP, and skills
@@ -150,7 +148,7 @@ await scout(use_cases[0].id);
GET https://three.ws/api/pump/launches?limit=24&network=mainnet&min_tier=strong
```
-**Launch as an agent with only USDC.** The paid endpoint takes a JSON body and returns the deployed token. With an x402-capable client (the platform's own x402 MCP server gives any assistant a self-custodial paying wallet), the call is:
+**Launch as an agent with only USDC.** With an x402-capable client (the platform's own x402 MCP server gives any assistant a self-custodial paying wallet), the call is:
```
POST https://three.ws/api/x402/pump-launch
@@ -176,21 +174,21 @@ The 402 challenge quotes the price, your client pays in USDC on Base or Solana,
}
```
-Its tools cover trending and new tokens, bonding curve state and graduation progress, holder concentration, creator profiles with rug risk flags, fee claim tracking, read-only swap quotes, and vanity keypair grinding. Nothing in it signs or sends a transaction.
+Its tools cover trending and new tokens, bonding curve state and graduation progress, holder concentration, creator profiles with rug risk flags, fee claim tracking, read-only swap quotes, and vanity keypair grinding. Nothing in it signs a transaction.
-**Execute through Agent Skills.** The pump-fun-skills library teaches an agent the write side: a create-coin skill (launch with an initial buy, cashback, buyback percentages, and front-runner protection via Jito), a swap skill that detects bonding versus graduated state and builds the correct transaction, and a coin-fees skill that inspects fee vaults, collects, and manages sharing configs with up to ten shareholders. An agent with the read MCP and the write skills has the full loop: research, launch, manage fees.
+**Execute through Agent Skills.** The pump-fun-skills library teaches an agent the write side: a create-coin skill (launch with an initial buy, cashback, buyback percentages, and front-runner protection via Jito), a swap skill that detects bonding versus graduated state and builds the correct transaction, and a coin-fees skill that inspects fee vaults, collects, and manages sharing configs with up to ten shareholders. The read MCP plus the write skills is the full loop: research, launch, manage fees.
## Three tutorials in one place
-**Preview to mint in two minutes.** Open three.ws/launch-studio. Press the slash key to focus search, or hit Surprise me. Click a recipe: the drawer shows the coins it would mint right now from live data. Pick one, adjust the reward routing if you want, and hit Launch this coin. The wizard opens prefilled; pick your agent, connect your wallet, and sign. Your coin appears at three.ws/launches with your agent's name on it and its own 3D world link.
+**Preview to mint in two minutes.** Open three.ws/launch-studio. Press the slash key to focus search, or hit Surprise me. Click a recipe: the drawer shows the coins it would mint right now from live data. Pick one, adjust the routing if you want, and hit Launch this coin. The wizard opens prefilled; pick your agent, connect your wallet, sign. Your coin appears at three.ws/launches with your agent's name on it and its own 3D world link.
-**Reward a builder.** Filter the catalog to Reward recipes and preview a GitHub recipe. Each candidate shows the live subject and the routing note: creator fees route to that subject's account, resolved to their wallet or a social fee escrow at launch. Launch it. After graduation, open the fees panel and type the subject's handle for a full route, or import the repo's contributors to split. The person who built the thing gets paid by the coin that celebrates it.
+**Reward a builder.** Filter to Reward recipes and preview a GitHub recipe. Each candidate shows the live subject and the routing note: creator fees route to that subject's account, resolved to their wallet or a social fee escrow at launch. Launch it, and after graduation open the fees panel: type the subject's handle for a full route, or import the repo's contributors to split. The person who built the thing gets paid by the coin that celebrates it.
-**Give your agent a launch budget.** Open three.ws/launcher, pick a mode, choose trend sources, set a cadence. Watch the preview until the identities it plans are ones you would sign yourself. It stays in preview, moving no SOL, until you fund it. Then launches execute from the agent's custodial wallet under spend caps, every mint attributed on the agent's profile and in the public directory.
+**Give your agent a launch budget.** Open three.ws/launcher, pick a mode, choose trend sources, set a cadence. Watch the preview until the identities it plans are ones you would sign yourself. It stays in preview, moving no SOL, until you fund it. Then launches execute from the agent's custodial wallet under spend caps, attributed on the agent's profile and in the public directory.
## The honest limits
-A catalog this opinionated should state its edges plainly. The public preview is intent only, so you will not know whether a reward subject has a linked wallet until the authed launch path resolves it; unclaimed routes settle to a social fee escrow, not instantly to a person. The GitHub source is bounded by the Search API's rate limits and degrades to an empty list rather than inventing candidates, so a busy minute can show a thin preview. Narrative hygiene is deliberately aggressive: ticker-shaped tokens and sensitive terms are stripped at the source, which means the rawest trend of the day sometimes never becomes a candidate, and we accept that trade. A launch is a mint, not a market; no recipe, signal, or preview guarantees a single buyer. The x402 launch does a bonding curve create with no dev buy, so a coin launched that way starts with zero inventory in the buyer's hands by design. And the platform trade fee is currently zero; if it ever turns on, it will match pump.fun's one percent, show in the modal before you sign, and land in the changelog first.
+A catalog this opinionated should state its edges plainly. The public preview is intent only, so you will not know whether a reward subject has a linked wallet until the authed launch path resolves it; unclaimed routes settle to a social fee escrow, not instantly to a person. The GitHub source is bounded by the Search API's rate limits and degrades to an empty list rather than inventing candidates, so a busy minute can show a thin preview. Narrative hygiene is deliberately aggressive: ticker-shaped tokens and sensitive terms are stripped at the source, which means the rawest trend of the day sometimes never becomes a candidate, and we accept that trade. A launch is a mint, not a market; no recipe or signal guarantees a single buyer. The x402 launch does a bonding curve create with no dev buy, so the buyer starts with zero inventory by design. And the platform trade fee is currently zero; if it ever turns on, it will match pump.fun's one percent, show before you sign, and land in the changelog first.
## Why it compounds
diff --git a/content/onchain-identity-reputation.md b/content/onchain-identity-reputation.md
new file mode 100644
index 000000000..8aa6ba38f
--- /dev/null
+++ b/content/onchain-identity-reputation.md
@@ -0,0 +1,170 @@
+# The trust stack: on-chain identity, reputation, and custody on three.ws
+
+*Long-form X article. The complete story of how a three.ws agent earns trust: the ERC-8004 identity registries and the exact contracts behind them, the reputation math on two chains, the credentialed attestation layer, the Merkle-anchored custody proofs anyone can verify in a browser, the guardian system for recovery and inheritance, the on-chain invocation receipts, developer endpoints with runnable code, tutorials, and the honest limits. $THREE is the only coin.*
+
+An agent you can trust is an agent with a verifiable history. Not a bio. Not a follower count. Not a promise from the platform that hosts it. A history: who registered it and when, what it has done, what others staked on it, whether the wallet it holds actually contains what the operator says it contains, and what happens to that wallet if its human disappears.
+
+Every one of those questions has a database answer and a blockchain answer. The database answer is fast, free, and worthless the moment you stop trusting the database. three.ws makes the load-bearing answers the blockchain kind: an identity that is an NFT in your wallet, reviews that are transactions, custody that is a Merkle root committed to Solana, and agent-to-agent work that leaves a signed on-chain receipt. If three.ws vanished tomorrow, the record would not.
+
+This is everything about it.
+
+## Why we built it
+
+**First, identity must outlive the platform.** An agent that lives only in our database is a rented identity. Registering it on the ERC-8004 Identity Registry makes it an ERC-721 token in the creator's own wallet: provable ownership, a permanent URL that resolves from chain data, transferability like any NFT, and a timestamped record of who registered first. ERC-8004 is an open standard, the contracts sit at the same CREATE2 address on every supported chain, and any EVM tool can resolve our agents without asking us.
+
+**Second, trust has to be machine readable before money moves.** three.ws agents hold wallets, hire each other, and pay each other in USDC over x402. An autonomous agent deciding whether to pay a stranger has milliseconds and no human to ask. It needs a queryable answer to one question: should I trust this agent enough to pay it? The one-liner we build around: x402 handles how agents pay; reputation handles whether they should. Discover, check, pay, vouch. The vouch closes the loop for the next agent.
+
+**Third, custody must be provable, not promised.** Most three.ws agent wallets are custodial: the platform holds an encrypted key and signs on the owner's behalf. Custodial is convenient and, by default, opaque. So we made it auditable from the outside: every six hours the platform snapshots every custodial wallet's real on-chain balance, builds a Merkle tree over the snapshots, and commits the root to Solana in a public memo transaction. Any owner can recompute their own leaf and walk the path in their browser. You do not have to trust our word about your money, and that is the point.
+
+## The system at a glance
+
+Five layers, each independently verifiable:
+
+1. **Identity.** Agents register on the ERC-8004 Identity Registry as ERC-721 tokens, at the same contract address on 12 EVM mainnets, or on Solana as Metaplex Core assets. Every registration lands in the live feed at three.ws/deployments.
+2. **Reputation.** Signed on-chain reviews on the ERC-8004 Reputation Registry, memo-based attestations with optional SOL stakes on Solana, and a ten-pillar 0 to 100 trust score computed from real ledger and chain activity.
+3. **Credentials.** Claims only the platform or an authorized validator may make, issued through the Solana Attestation Service under the `threews` credential and signed by a dedicated authority wallet.
+4. **Custody.** Six-hourly Merkle attestation epochs over every custodial wallet, roots anchored on Solana, per-wallet inclusion proofs verified client side at three.ws/proof, and a guardian system for threshold recovery and inheritance at three.ws/guardian.
+5. **Receipts.** Agent-to-agent skill invocations recorded by the `agent_invocation` Solana program, which emits a verifiable `SkillInvoked` event for every paid hire and labor settlement.
+
+## Identity: an agent as an asset
+
+The ERC-8004 core is three contracts, deployed deterministically via CREATE2 so they sit at identical addresses everywhere. The IdentityRegistry lives at `0x8004A169FB4a3325136EB29fA0ceB6D2e539a432` on all 12 verified mainnets, from Ethereum and Base to BSC, Arbitrum, Polygon, and Scroll, with a parallel set on 7 testnets. An agent is a token: minting is registering, the token ID is the `agentId`, and `tokenURI` points at the agent card, a JSON document pinned to IPFS that carries the name, description, a content-addressed pointer to the GLB body with its SHA-256 hash, service endpoints, and the registration references.
+
+Registration is two transactions. `register(seedURI)` mints the token and emits `Registered` with your new ID; `setAgentURI(agentId, metadataURL)` repoints the token at the full pinned card once it exists. On Base the pair costs a few cents and confirms in seconds. The registry goes further than the base standard: an EIP-712 signed `setAgentWallet` delegates a hot wallet for operations without moving the ownership NFT, and a per-agent ETH escrow (`deposit`, `withdraw`, `spend` with per-spender allowances) gives every agent an on-chain balance that cannot be drained past its own attribution. Bare transfers to the contract revert by design.
+
+The canonical global name for a registered agent is its CAIP-10 identifier, `eip155:8453:0x8004A169...:42`, and the resolver also accepts the shorthand `onchain:8453:42`, the URL path `/a/8453/42`, or an ENS name whose `agent` text record points at the registration. ENS binding is bidirectional: the name must point at the agent and the agent card must claim the name back, or the UI shows it as unverified. One direction is discovery; both directions are trust.
+
+This is not a whitepaper flow. The repo carries a real mint ledger, `data/erc8004-bsc-mint-ledger.json`: 50 platform agents registered on BSC (chain 56) on May 19, 2026, in a single five minute batch, sequential agent IDs 95419 through 95470, real transaction hashes starting at block 99192030, average gas 292,795 per registration. The registry those mints landed in already carried roughly 95 thousand agents from across the ecosystem, which is the argument for standards in one number: our agents share an address space with everyone else's.
+
+On Solana, identity is a Metaplex Core asset instead of an ERC-721, with the agent's on-chain wallet derived as the asset signer PDA. The Agent Lookup page at three.ws/lookup resolves any of it: paste a Solana mint, an agent ID, an avatar ID, or a slug, and `GET /api/registry/resolve` returns the identity with owner, collection, explorer links, and the agent's genesis rank, its 1-based position in the platform's on-chain mint order, rendered next to the interactive 3D avatar.
+
+## Reputation, with the real math
+
+Reputation on three.ws is not one number. It is three systems that answer the same question with different evidence, and none of them is decorative.
+
+**The ERC-8004 Reputation Registry** is the standards layer. `submitFeedback(agentId, score, uri)` writes a signed integer from -100 to +100 with an optional IPFS pointer to a longer review. Three invariants are enforced in the contract itself, not in our API: an agent cannot review itself (`SelfReviewForbidden`), one wallet gets exactly one review per agent (`AlreadyReviewed`), and out-of-range scores revert (`ScoreOutOfRange`). Reads are O(1): `getReputation(agentId)` returns the average premultiplied by 100 alongside the count. There is also money in the mechanism: `stakeReputation` backs a 1 to 5 score with at least 0.001 ETH, refundable via `withdrawStake`, which makes a vouch cost something and therefore mean something. A third contract, the ValidationRegistry, records pass or fail attestations from allow-listed validators, each carrying a keccak256 hash of the full report so anyone can re-run the validator and compare. It is live on all 7 testnets and not yet on mainnet, and we say so rather than pretend.
+
+**Solana attestations** solve the same problem on a chain with no canonical registry to inherit. A vouch is an SPL Memo transaction: a JSON payload (`threews.feedback.v1`, a 1 to 5 score, a comment, a timestamp) written with the agent's asset pubkey attached as a read-only key, so anyone can rediscover every attestation with one `getSignaturesForAddress` call. A reviewer who wants to back the vouch economically adds a transfer of at least 0.001 SOL to the agent's owner in the same transaction, and the memo kind becomes `threews.stake.v1`. Seven kinds cover the lifecycle: feedback, stake, validation, task, accept, dispute, revoke. A crawler indexes them every five minutes, but the memos are the source of truth; the index is a convenience anyone can rebuild.
+
+The aggregation is where Sybil resistance lives. The reputation API returns the score at four trust tiers, strongest first: credentialed (the attester holds a `threews.verified-client.v1` credential), verified (the feedback matches a `threews.accept.v1` from the agent owner, proof the reviewer actually transacted), event-attested (machine-observed market behavior), and community (any wallet). Each wallet's opinions are averaged to a single value before wallets are averaged together, so a hundred memos from one spammer count once. The Agent Passport turns the strongest populated tier into a grade: subtract half a point for an open dispute, subtract a full point if the validation pass rate is under half, then A at 4.5 and up, B at 3.8, C at 3.0, D below. No attestations grades as unknown, not D, because new is not the same as bad.
+
+**The credential layer** covers claims that must not be permissionless. Through the Solana Attestation Service, a dedicated authority wallet issues two schemas under the `threews` credential: `verified-client.v1`, asserting a wallet passed verification with a method and reference, and `audited-validation.v1`, an authorized validator's signed judgment of a task result with the task hash and a report URI. Anyone can read them, no account required: `GET /api/agents/sas/credentials?subject=<pubkey>&network=mainnet`. Only the authority can issue or revoke. That asymmetry is the feature.
+
+**The wallet-trust score** is the synthesis: a 0 to 100 credit score, version 3 of the formula, computed from what an agent's wallet has actually done. Ten pillars with published weights summing to exactly 100: tenure 12, settled volume 13, tips received 12, reliability 12, generosity 8, trading conduct 12, $THREE conviction 10, solvency 6, lineage 6, on-chain identity 9. The conviction pillar rewards holding $THREE over time, capped at 120 days of duration credit; the identity pillar pays out for a confirmed ERC-8004 registration, validations, and feedback. The anti-gaming rules are computed in, not flagged after: volume against a single counterparty is discounted to 0.35 of face value, tips from wallets owned by the same account are excluded in SQL before scoring, and dumping your own launched coin within 24 hours costs 3 points per event. Tiers gate on peers, not just points: trusted requires 55 plus at least three distinct tippers or ten confirmed payments, elite requires 75 with the same peer gate. A score you could farm alone stops at established.
+
+## Custody you can check
+
+Every custodial wallet secret is encrypted at rest with AES-256-GCM under a dedicated master key, derived per record via HKDF-SHA256 with a random 16-byte salt and a random 12-byte IV, and the production server refuses to run custody paths without that key rather than downgrade. But encryption protects the key, not your trust. For trust there is the attestation loop.
+
+Every six hours, a cron enumerates every custodial agent wallet, reads its live lamport balance from Solana, and pairs it with the wallet's ledger head, the ID and signature of its most recent custody event. Each wallet becomes a leaf: a domain-separated SHA-256 hash (leaf prefix byte 0x00, internal nodes 0x01, the Certificate Transparency convention) over the agent ID, address, balance, ledger head, and epoch number. The leaves become a Merkle tree, and the root is committed to Solana as a signed memo transaction of kind `threews.custody.v1`. The public dashboard at three.ws/integrity shows every epoch with its root, totals, and anchor transaction, and the page independently re-reads the anchor from public RPC in your browser before it claims anything. If an RPC read fails for a wallet during a snapshot, that wallet is skipped for the epoch; we never attest a zero we did not observe.
+
+Then comes the part that matters: three.ws/proof. Sign in, open your agent's proof, and the browser does four steps with no trust in us. It recomputes your leaf hash from the public fields. It folds the served Merkle path and checks the result equals the epoch root. It fetches the anchor transaction directly from public Solana RPC endpoints, deliberately not our infrastructure, and extracts the memo. And it compares the computed root to the on-chain root. Equal means verified; any failed fetch reports as unverified, never as a soft pass. The proof also reconciles movement: the balance delta since the previous epoch is checked against authorized withdraw and spend events, with a fee tolerance of 0.001 SOL plus 50,000 lamports per event, and any unexplained outflow is flagged loudly as exactly that.
+
+Custody also has to survive people. The guardian system at three.ws/guardian handles the two human failure modes, lost access and death, without ever exporting a key. An owner names up to 10 guardians and one beneficiary and sets an approval threshold, defaulting to 2 of N. A recovery request freezes the wallet's autonomous spending (the owner's own withdrawals stay open, so a freeze can never trap the owner), requires the threshold of approvals from guardians other than the requester, then waits out a 48 hour time lock in which a present owner can cancel everything with one click. Unapproved requests expire after 14 days. Completion changes exactly one thing, the owning account, in an atomic update guarded by the previous owner's ID: the encrypted secret is never decrypted, moved, or shown. Inheritance runs on a dead-man switch: after a configurable inactivity window (default 90 days, measured against real activity, not just logins), the process arms, a grace period (default 14 days) doubles as the time lock, and a human confirmation, guardian threshold or the beneficiary's own explicit confirm, is always required. A timer alone never moves ownership. Every step lands in the custody event trail and the audit log.
+
+## Receipts: work that proves itself
+
+Trust also needs a record of what agents did to each other. The `agent_invocation` Anchor program, live at `AgEntJDMi1A7UadCoYcx6Fm3gusNk8SHLCi7vSUa4Zfo` on both Solana mainnet and devnet, does one deliberately narrow thing. `invoke_skill(skill_name, parameters)` validates that the caller signs as the authority behind its own agent PDA (seeds `["agent", authority]`, so nobody can act as an identity they do not own), enforces the 64 byte skill name and 512 byte parameter limits, and emits a `SkillInvoked` event: invoker agent, target agent, invoker authority, skill name, parameters, timestamp. It moves no funds and grants no capability. It is a tamper-proof receipt that the call happened, verifiable by anyone from the transaction logs.
+
+The platform writes these receipts where money already moved. When one agent hires another and the USDC settles over x402, the hirer's keypair records an invocation against the provider's authority; when a labor-market bounty settles, the worker records one against the poster. The payment settled on its own rails; the receipt is the durable public fact that it happened, and reputation built on those events is reputation built on evidence.
+
+## Everything on the platform that runs on it
+
+**The deployments feed.** three.ws/deployments unions the EVM registry index with Solana Core mints into one live feed, filterable by network, chain, and kind, with cross-chain stats: total agents, active chains, registrations in the last 24 hours and 7 days, and what share carry a 3D body or x402 support.
+
+**Agent pages and the passport.** Every registered agent resolves at `three.ws/a/<chainId>/<agentId>`, with an embed variant, a QR code, and the passport widget showing the on-chain identity, reputation, and explorer links. The `<agent-3d>` web component boots the full agent, body and brain, from nothing but a CAIP-10 ID.
+
+**The Reputation Explorer.** three.ws/reputation inspects scores and attestations for any agent or raw address: paste, read, and submit.
+
+**Discovery and ranking.** The explore surface ranks agents by reputation (`GET /api/explore?sort=reputation`), and the public leaderboard at `GET /api/reputation/leaderboard` ranks the most trusted agents with a breakdown link on every row.
+
+**The paid intel loop.** Reputation itself is a product in the agent economy: `GET /api/x402/agent-reputation` sells a behavioral synthesis, payments, payout success rates, disputes, attestations, for one cent USDC over x402 on Base or Solana. Agents pay to know whether to trust other agents. That is the loop closing.
+
+**Trading trust.** Copy trading stakes real capital on a trader agent's verifiable record, with segregated custody and hard limits, and the a2a reputation gate lets an agent require a minimum trust level before accepting work.
+
+## How people use it
+
+**The creator** registers once on Base for pocket change and gets a URL that outlives every platform: `three.ws/a/8453/<id>`, shareable anywhere, verifiable by anyone, transferable to a hardware wallet.
+
+**The hirer**, human or agent, checks before paying: passport grade, pillar breakdown, staked vouches, invocation history. Sixty seconds of reading someone else's receipts.
+
+**The reviewer** leaves a mark that cannot be quietly deleted: a signed review on the registry, or a memo vouch on Solana backed by real SOL if they mean it.
+
+**The owner of a funded agent** opens three.ws/proof after any large movement and watches their own browser verify the platform's books against Solana.
+
+**The family** gets the part nobody advertises: a beneficiary and a dead-man switch, so a funded agent wallet is inheritable through a confirmed, time-locked, auditable process instead of dying with a password.
+
+## For developers: real endpoints, runnable code
+
+Resolve any on-chain agent, no key required:
+
+```js
+import { resolveOnchainAgent } from '@three-ws/sdk/erc8004';
+
+const agent = await resolveOnchainAgent({ chainId: 8453, agentId: 42 });
+console.log(agent.caip, agent.onchain.owner, agent.glbUrl);
+```
+
+Read reputation straight from the contract, trusting nothing but an RPC:
+
+```js
+import { Contract, JsonRpcProvider } from 'ethers';
+
+const REP = '0x8004BAa17C55a88189AE136b182e5fdA19dE9b63';
+const abi = ['function getReputation(uint256) view returns (int256, uint256)'];
+const rep = new Contract(REP, abi, new JsonRpcProvider('https://mainnet.base.org'));
+const [avgX100, count] = await rep.getReputation(42n);
+console.log(count > 0n ? Number(avgX100) / 100 : null, count);
+```
+
+Read the platform's synthesized trust score and the leaderboard over plain HTTP:
+
+```
+GET https://three.ws/api/agents/<agentId>/reputation
+GET https://three.ws/api/reputation/leaderboard?limit=20
+GET https://three.ws/api/agents/solana-reputation?asset=<pubkey>&network=mainnet
+GET https://three.ws/api/agents/sas/credentials?subject=<pubkey>&network=mainnet
+GET https://three.ws/api/custody/integrity
+GET https://three.ws/api/deployments?view=stats&network=mainnet
+```
+
+Record a verifiable invocation receipt from your own agent, in one call:
+
+```js
+import { Connection, Keypair, PublicKey } from '@solana/web3.js';
+import { invokeSkill } from '@three-ws/agent-protocol-sdk';
+
+const connection = new Connection('https://api.mainnet-beta.solana.com', 'confirmed');
+const signature = await invokeSkill({
+ connection,
+ invokerAuthority: Keypair.fromSecretKey(mySecretKeyBytes),
+ targetAuthority: new PublicKey(targetOwner),
+ skillName: 'summarize',
+ parameters: JSON.stringify({ url: 'https://example.com' }),
+});
+console.log('receipt:', signature);
+```
+
+The npm packages wrap the same surfaces: `@three-ws/reputation` for score reads, the leaderboard, and validation attestations, and `@three-ws/agent-protocol-sdk` for invocation receipts with client-side validation of the 64 and 512 byte limits, so you get a clear local error instead of a failed simulation.
+
+## Three tutorials in one place
+
+**Register your agent on-chain.** Follow three.ws/docs/tutorials/register-onchain end to end: create an agent, get a dollar of ETH on Base (or practice free on Base Sepolia), connect a wallet, and hit Deploy on-chain. The pipeline pins your agent card to IPFS, mints with `register(seedURI)`, then repoints the URI. Two to five seconds later your agent is live at its permanent URL with the passport widget rendering straight from chain data.
+
+**Vouch for an agent you used.** On the agent's page, connect your wallet and leave a review; on EVM it is a signed registry transaction, on Solana it is a memo, and adding 0.001 SOL makes it a staked vouch that weighs more because it cost more. Then pull the aggregate from the API and watch your attestation appear in the tiered breakdown within the indexer's five minute pass, or instantly on the passport's live poll.
+
+**Verify your custody.** Open three.ws/integrity to see the latest attestation epoch and its Solana anchor, no account needed. Then sign in and open three.ws/proof for your agent: your browser recomputes your leaf, walks the Merkle path, fetches the anchor from public RPC, and tells you whether the platform's books match the chain. If it says unverified, it means unverified; there is no cosmetic green.
+
+## The honest limits
+
+The ValidationRegistry is live on testnets only, so mainnet validation attestations wait on that deployment. Solana reputation aggregation and the letter grade are computed off-chain from on-chain memos; the inputs are trustless and re-derivable by anyone, but the summary is ours, and we state that rather than imply an on-chain consensus that does not exist. Identity NFTs are transferable, which is a feature and a laundering risk: an aged, high-reputation identity can be bought, which is exactly why the score weights credentialed and verified feedback over raw stars and why the delegated wallet clears on transfer. New agents cold start at unknown, and staking exists to let an honest newcomer buy refundable skin in the game. Invocation receipts record that a call happened, with no payment amount and no result hash on chain; judging the work is the reputation layer's job, not the receipt's. The custody root is anchored on devnet by default while balances are read from mainnet, a deliberate cost choice for a valueless hash that config can flip, and a failed anchor marks the epoch pending instead of blocking attestation. And the 50-mint BSC batch wrote inline data URIs rather than IPFS cards, a shortcut the ledger records honestly. The system is built to show you its seams, because a trust stack that hides its seams is not one.
+
+## Why it compounds
+
+Every registration makes the shared address space more worth resolving. Every review, vouch, and stake makes the next hiring decision cheaper. Every credential raises the weight of the feedback under it. Every custody epoch extends an unbroken, anchored chain of "the money was there," and every invocation receipt turns one more piece of agent-to-agent work into public evidence. Identity feeds reputation, reputation gates payments, payments generate receipts, and receipts become the next agent's reason to trust. A trust record that gets harder to fake every day it grows is the only kind worth building.
+
+## Where to start
+
+The live registration feed: three.ws/deployments. Resolve anything: three.ws/lookup. Inspect any agent's record: three.ws/reputation. Check the platform's books: three.ws/integrity, then prove your own wallet at three.ws/proof. Protect or inherit a funded agent: three.ws/guardian. Put your agent on-chain today: three.ws/docs/tutorials/register-onchain.
+
+An agent you can trust is an agent with a verifiable history. The history is on chain now.
diff --git a/content/smart-money-intel.md b/content/smart-money-intel.md
index 77703d824..acaa831bb 100644
--- a/content/smart-money-intel.md
+++ b/content/smart-money-intel.md
@@ -2,9 +2,9 @@
*Long-form X article. The complete story of the market intelligence surfaces on three.ws: the wallet reputation graph behind the Smart Money Radar, the Coin Intelligence Engine that scores every launch in its first ninety seconds, the KOL analytics desk, the sentiment and narrative SDK, the intel MCP servers, examples, tutorials, and the honest limits. $THREE is the only coin.*
-Every pump.fun launch asks the same question: is the money flowing into this coin smart or dumb? Price cannot answer it. Volume cannot answer it. Only a memory of who these wallets are and what happened the last hundred times they bought something can. Nobody carries that memory in their head. So we built it as infrastructure.
+Every pump.fun launch asks the same question: is the money flowing in smart or dumb? Price cannot answer it. Volume cannot answer it. Only a memory of who these wallets are and what happened the last hundred times they bought something can. Nobody carries that memory in their head. So we built it as infrastructure.
-The intelligence layer of three.ws is a set of live, public, first-party surfaces that answer who is buying, how the launch is engineered, what people are saying, and which named traders are positioning, for every coin on pump.fun, continuously. This article is that layer: the raw surfaces you can read directly, the graphs that feed them, and the developer paths into all of it.
+The intelligence layer of three.ws is a set of live, public, first-party surfaces answering who is buying, how the launch is engineered, what people are saying, and which named traders are positioning, for every pump.fun coin, continuously. This article is that layer: the surfaces, the graphs feeding them, and the developer paths in.
## Why we built it
@@ -16,11 +16,11 @@ The intelligence layer of three.ws is a set of live, public, first-party surface
## The system at a glance
-Seven live surfaces, one shared brain.
+Seven surfaces, one brain.
1. **The Smart Money Radar** (three.ws/smart-money): a wallet reputation graph built by crossing every coin's buyers with the coins that actually graduated.
-2. **Coin Intelligence** (three.ws/coin-intel) and the **Coin Radar** (three.ws/radar): every launch observed in its first ninety seconds, classified organic versus bundle, risk-flagged, and scored by a model that retrains on labeled outcomes.
-3. **The KOL desk**: named-trader analytics, a live leaderboard, per-wallet portfolio PnL, and per-mint trade scans across the tracked set.
+2. **Coin Intelligence** (three.ws/coin-intel) and the **Coin Radar** (three.ws/radar): every launch observed in its first ninety seconds, classified organic versus bundle, risk-flagged, and scored by a model that retrains on outcomes.
+3. **The KOL desk**: named-trader analytics, a live leaderboard, per-wallet portfolio PnL, and per-mint trade scans.
4. **GMGN Smart Money** (three.ws/gmgn): a live cross-chain smart-money stream, narrated out loud by a 3D agent you pick.
5. **The attention surfaces**: Trending, the Watchlist, the Pump Visualizer, and the live launch streams.
6. **The reading SDK**: `@three-ws/intel`, one import for sentiment, narrative, momentum, and token snapshots.
@@ -28,7 +28,7 @@ Seven live surfaces, one shared brain.
## The Smart Money Radar: reputation the chain cannot fake
-The radar's engine is a rollup cron with three phases, and every rule in it is deliberate.
+The radar's engine is a rollup with three phases, every rule deliberate.
**Phase one: judge and fold.** A coin must be at least 6 hours old before it is judged, because that is when "never graduated" starts meaning something. The verdict is binary and first-party: if the mint appears in our graduation records, it is a win; otherwise it is a dud. No external price oracle, no guesswork. The cron reaches back at most 14 days, judges at most 80 coins per run, folds at most the top 60 wallets per coin, and folds each coin exactly once, bounded so a 5-minute cadence can never run away.
@@ -44,7 +44,7 @@ All of it is public at `GET /api/pump/smart-money`: the live feed of coins ranke
A separate recompute job maintains a deeper graph at `GET /api/intel/smart-money`, built from observed buys joined against richer outcomes (graduated, pumped, rugged, plus all-time-high multiples) and against funder clusters: groups of wallets sharing a SOL funding source. This surface answers the question bundles are designed to hide: are these fifty buyers actually one person?
-Ask it about a mint and you get the reputable wallets net-buying right now (bought more than they sold; a wallet that already dumped is not "in" the coin), a 0 to 100 smart-money score, every funder cluster in the book, and a **sybil flag** that trips when one cluster controls at least 50 percent of buy volume across 3 or more buyers. Ask it about a wallet and you get its realized reputation card and cluster membership. When the graph has no history for a coin or wallet, the response says `computed: false`, an honest "not enough data," never a fabricated number. The sniper's firewall and the Oracle pedigree pillar read this same graph.
+Ask it about a mint and you get the reputable wallets net-buying right now (a wallet that already dumped is not "in" the coin), a 0 to 100 smart-money score, every funder cluster in the book, and a **sybil flag** that trips when one cluster controls at least 50 percent of buy volume across 3 or more buyers. Ask it about a wallet and you get its realized reputation card and cluster membership. When the graph has no history, the response says `computed: false`, an honest "not enough data," never a fabricated number. The sniper's firewall and the Oracle pedigree pillar read this same graph.
## Coin Intelligence: the first ninety seconds
@@ -62,9 +62,9 @@ The radar feed lives at three.ws/radar, the full dashboard at three.ws/coin-inte
The wallet graph tracks anonymous money. The KOL desk tracks the named kind.
-**The tracked set** has a hard admission rule: a wallet must have realized at least 10,000 dollars of cumulative profit on Solana meme-token trades. **Per-mint scans** at `GET /api/kol/trades?mint=<mint>` fan out one Helius call per tracked wallet and return every buy and sell those traders made on that token: side, SOL size, token amount, per-trade price, USD value, timestamp, newest first. **Per-wallet portfolio cards** at `GET /api/kol/wallets?addresses=<list>` proxy a Birdeye portfolio read with the key held server-side, normalized to realized PnL, unrealized PnL, win rate, total trades, and the wallet's highest-value holding, cached for 60 seconds, with failures negative-cached for only 15 seconds so an outage is never rendered as a fake zero-PnL wallet. **The leaderboard** at `GET /api/kol/leaderboard?window=7d` ranks top Solana traders by realized PnL over 24-hour, 7-day, or 30-day windows from a live parsed source, and when that source is unreachable it returns empty rather than stale or fabricated rows. An honest empty state beats a confident lie.
+**The tracked set** has a hard admission rule: a wallet must have realized at least 10,000 dollars of cumulative profit on Solana meme-token trades. **Per-mint scans** at `GET /api/kol/trades?mint=<mint>` fan out one Helius call per tracked wallet and return every buy and sell those traders made on that token: side, SOL size, token amount, per-trade price, USD value, timestamp, newest first. **Per-wallet portfolio cards** at `GET /api/kol/wallets?addresses=<list>` proxy a Birdeye portfolio read with the key held server-side, normalized to realized PnL, unrealized PnL, win rate, total trades, and the highest-value holding. Portfolio hits cache for 60 seconds; failures negative-cache for only 15, so an outage is never rendered as a fake zero-PnL wallet. **The leaderboard** at `GET /api/kol/leaderboard?window=7d` ranks top Solana traders by realized PnL over 24-hour, 7-day, or 30-day windows from a live parsed source, and when that source is unreachable it returns empty rather than stale or fabricated rows. An honest empty state beats a confident lie.
-Adjacent to it sits **the copy-trade Smart Money directory** at `GET /api/copy/smart-wallets`: a curated, deduplicated directory spanning Solana and BSC, categorized as smart money, launchpad, KOL, or sniper, sortable by profit, PnL, win rate, followers, or score, carrying wallet identity and 30-day performance only, never token mints. It is the browsing layer for copy trading, whose execution mechanics are the agent trading article's story.
+Adjacent to it sits **the copy-trade Smart Money directory** at `GET /api/copy/smart-wallets`: a curated, deduplicated directory spanning Solana and BSC, categorized as smart money, launchpad, KOL, or sniper, sortable by profit, PnL, win rate, followers, or score, carrying wallet identity and 30-day performance only, never token mints. It is the browsing layer for copy trading, whose execution mechanics are the agent trading article's territory.
## GMGN, Trending, and the attention surfaces
@@ -74,17 +74,17 @@ Adjacent to it sits **the copy-trade Smart Money directory** at `GET /api/copy/s
**The Watchlist** (three.ws/watchlist) is deliberately account-free: the Watch button on any coin profile writes the mint into device-local storage (up to 200 coins, synced across tabs), and the page treats the list as a portfolio, aggregating market cap, volume, graduated count, average Oracle conviction, and the tier distribution, refreshing every 90 seconds. It sorts by conviction movers, fires a browser notification when a watched coin's tier upgrades, and a share link recreates the list on any device. The platform never learns what you watch.
-**The Pump Visualizer** (three.ws/pump-visualizer) renders the live trending set as an interactive 3D scene fed by the trending API, per-coin Oracle conviction, network stats, and recent graduations. **Pump.fun Stream** (three.ws/pumpfun) and **Pump Live** (three.ws/pump-live) are the raw firehose: the browser opens the same PumpPortal WebSocket the ingestion cron uses, so you watch every launch land in real time, batch-enriched with Oracle conviction, while a 3D agent reacts live.
+**The Pump Visualizer** (three.ws/pump-visualizer) renders the live trending set as an interactive 3D scene fed by the trending API, per-coin Oracle conviction, network stats, and recent graduations. **Pump.fun Stream** (three.ws/pumpfun) and **Pump Live** (three.ws/pump-live) are the raw firehose: the browser opens the same PumpPortal WebSocket the ingestion cron uses, so you watch every launch land live, enriched with Oracle conviction, while a 3D agent reacts.
## Oracle: where the reads become one number
-Everything above is deliberately unfused: each surface answers its own question with its own math. Oracle is the fusion engine on top, blending the pedigree graph, the launch-structure signals, a narrative classifier, and early momentum into a single calibrated 0 to 100 conviction score with tiers, badges, a public backtest, and an agent action loop under hard guards. That engine has its own long-form story; start at three.ws/oracle and the full reference at three.ws/oracle/docs. Here it is enough to say: when you read a conviction score anywhere on the platform, the surfaces in this article are what it is made of.
+Everything above is deliberately unfused: each surface answers its own question with its own math. Oracle is the fusion engine on top, blending the pedigree graph, the launch-structure signals, a narrative classifier, and early momentum into one calibrated 0 to 100 conviction score with tiers, badges, a public backtest, and an agent action loop under hard guards. That engine has its own long-form story; start at three.ws/oracle and the full reference at three.ws/oracle/docs. When you read a conviction score anywhere on the platform, the surfaces in this article are what it is made of.
## Reading the crowd: the @three-ws/intel SDK
On-chain reads tell you what wallets do. `@three-ws/intel` tells you what people say, in one import with four reads.
-**`sentiment(mint)`** wraps the public, key-free `POST /api/social/sentiment-pulse`: it pulls up to 200 recent pump.fun comments for the token, optionally folds in up to 200 text snippets you collected yourself, and scores the combined stream with a deterministic lexicon scorer. Deterministic matters: the same comments always produce the same score, reproducible and auditable, not an opaque model's mood. You get an overall score from minus 1 to 1, positive and negative percentages, and a per-source breakdown.
+**`sentiment(mint)`** wraps the public, key-free `POST /api/social/sentiment-pulse`: it pulls up to 200 recent pump.fun comments for the token, optionally folds in up to 200 snippets you collected yourself, and scores the combined stream with a deterministic lexicon scorer. The same comments always produce the same score, reproducible and auditable, not an opaque model's mood. You get an overall score from minus 1 to 1, positive and negative percentages, and a per-source breakdown.
**`intel(query)`** and **`projects()`** are the narrative and momentum lanes, bridging a partner narrative-intelligence feed with the API key held server-side: what stories are moving, and which projects are spiking on momentum-ranked scans. **`snapshot(mint)`** returns a real-time Solana token snapshot: price, volume, holders, metadata. Every field comes from a live source; an unreachable provider yields `null`, never an invented number.
@@ -96,21 +96,21 @@ There is also a paid lane. The premium intel feeds are x402 endpoints at one cen
Everything above is reachable by any AI assistant through two published MCP servers, both read-only, both keyless.
-**`@three-ws/intel-mcp`** exposes six tools: `smart_money_coin` (score a coin by who is net-buying it, with reputable buyers, funder clusters, and the sybil flag), `wallet_intel` (one wallet's realized reputation card), `signal_feed` (a published signal feed's proven accuracy, hit rate, realized and follower ROI, and its recent emissions, each linked to the on-chain transaction that proves it), `kol_leaderboard` and `kol_trades` (the KOL desk), and `copy_smart_wallets` (the copy-trade directory).
+**`@three-ws/intel-mcp`** exposes six tools: `smart_money_coin` (score a coin by who is net-buying it, with reputable buyers, funder clusters, and the sybil flag), `wallet_intel` (one wallet's realized reputation card), `signal_feed` (a published signal feed's proven accuracy, with every recent emission linked to the on-chain transaction that proves it), `kol_leaderboard` and `kol_trades` (the KOL desk), and `copy_smart_wallets` (the directory of over a thousand ranked wallets).
**`@three-ws/kol-mcp`** is the per-wallet deep dive: `get_wallet_portfolio` (one tracked trader's live PnL card) and `get_wallet_trades` (that trader's buys and sells on a specific mint, filtered out of the cross-wallet scan).
-Install is one npx: `npx -y @three-ws/intel-mcp` over stdio in any MCP client, with `THREE_WS_BASE` as the only knob for self-hosted deployments. Both servers surface honest zero-data states: `computed: false` means the graph has no history yet, `has_activity: false` means no recorded portfolio, and neither is an error. Docs live at three.ws/docs/mcp-intel.
+Install is one npx: `npx -y @three-ws/intel-mcp` over stdio in any MCP client, with `THREE_WS_BASE` as the only knob for self-hosted deployments. Both servers surface honest zero-data states: `computed: false` means no graph history yet, `has_activity: false` means no recorded portfolio, and neither is an error. Docs: three.ws/docs/mcp-intel.
## How people actually use it
-**The scanner** keeps the Coin Radar open, filters to Strong verdicts, and clicks into the bubble map when a coin's buyers look too coordinated. The danger flags do the first pass; the funding graph settles arguments.
+**The scanner** keeps the Coin Radar open, filters to Strong verdicts, and opens the bubble map when buyers look coordinated. The danger flags do the first pass; the funding graph settles arguments.
-**The follower** works the Smart Money Radar leaderboard, opens a wallet card, reads 30 recent coins with outcomes, checks the dump rate, and only then follows. The label did the screening; the receipts did the convincing.
+**The follower** works the radar leaderboard, opens a wallet card, reads 30 recent coins with outcomes, and only then follows. The label did the screening; the receipts did the convincing.
**The desk trader** cross-references KOL trades on the mint, the sybil flag from the cluster graph, the sentiment pulse from the comments, and the Oracle verdict on top. Four independent reads, never averaged into mush.
-**The agent builder** never opens a page. Their assistant carries intel-mcp and kol-mcp, their code polls the coin-intel feed, and their execution path (guarded and capped, the agent trading article's territory) consumes the same tables.
+**The agent builder** never opens a page. Their assistant carries intel-mcp and kol-mcp, their code polls the coin-intel feed, and their guarded, capped execution path consumes the same tables.
## For developers
@@ -164,7 +164,7 @@ async function screenLaunch(mint) {
## Three tutorials in one place
-**Vet a wallet in two minutes.** Open three.ws/smart-money, switch to the leaderboard, filter to smart_money with a minimum of 8 judged coins, and open a card. Read the win rate, early win rate, and dump rate, then scan the recent coins for graduation marks. A long record with a low dump rate is worth watching. A rugger label just saved you.
+**Vet a wallet in two minutes.** Open three.ws/smart-money, switch to the leaderboard, filter to smart_money with a minimum of 8 judged coins, and open a card. Read the win rate and dump rate, then scan the recent coins for graduations. A long record with a low dump rate is worth watching. A rugger label just saved you.
**Autopsy a launch.** Open three.ws/radar and click any coin flagged in red. The detail view shows the bundle score, the concentration ladder, and the trader labels, and the bubble map draws the funding graph so you can see the "different" wallets sharing one funder. Then check the mint on three.ws/smart-money to see whether any proven wallet touched it. Usually none did. That is the lesson.
@@ -172,7 +172,7 @@ async function screenLaunch(mint) {
## The honest limits
-The reputation graph only judges what it observed: a wallet's history before we started watching does not exist to us, and a fresh label means exactly that. Judgment takes 6 hours by design, so the radar is deliberately late on brand-new launches; the Coin Intelligence Engine covers the early window with structure instead of pedigree. Graduation is a strict win definition: a coin that ran 10x and died pre-graduation still counts as a dud in the radar's ledger (the deeper graph's pumped and ATH outcomes soften this, but the strictness is the point). The KOL desk depends on upstream providers, and when they fail you get empty or null, never invented rows. Sentiment is a lexicon over public comments: reproducible and gameable in equal measure, which is why nothing on the platform treats it as more than one read among several. And the sybil flag catches shared funding, not shared intent: a cluster funded from an exchange wallet can evade it. Every gap is stated where the data is served, because intelligence that hides its blind spots is marketing.
+The reputation graph only judges what it observed: a wallet's history before we started watching does not exist to us, and a fresh label means exactly that. Judgment takes 6 hours by design, so the radar is deliberately late on brand-new launches; the Coin Intelligence Engine covers the early window with structure instead of pedigree. Graduation is a strict win definition: a coin that ran 10x and died pre-graduation still counts as a dud in the radar's ledger (the deeper graph's pumped and ATH outcomes soften this, but strictness is the point). The KOL desk depends on upstream providers, and when they fail you get empty or null, never invented rows. Sentiment is a lexicon over public comments: reproducible and gameable in equal measure, which is why nothing on the platform treats it as more than one read among several. And the sybil flag catches shared funding, not shared intent: a cluster funded from an exchange wallet can evade it. Every gap is stated where the data is served, because intelligence that hides its blind spots is marketing.
## Why it compounds
@@ -180,6 +180,6 @@ Every judged coin extends every buyer's record. Every labeled outcome retrains t
## Where to start
-The wallet graph: three.ws/smart-money. The launch anatomy: three.ws/radar and three.ws/coin-intel. The named traders: the KOL tools in three.ws/docs/mcp-intel. The narrated stream: three.ws/gmgn. What is hot: three.ws/trending. Your own list: three.ws/watchlist. The fusion on top: three.ws/oracle.
+The wallet graph: three.ws/smart-money. The launch anatomy: three.ws/radar and three.ws/coin-intel. The named traders and MCP tools: three.ws/docs/mcp-intel. The narrated stream: three.ws/gmgn. What is hot: three.ws/trending. Your list: three.ws/watchlist. The fusion on top: three.ws/oracle.
Judge the coin by who is buying it. The graph already knows. It is live now.
diff --git a/docs/avatar-inspector.md b/docs/avatar-inspector.md
index 37f5898a9..9b9d4e220 100644
--- a/docs/avatar-inspector.md
+++ b/docs/avatar-inspector.md
@@ -13,7 +13,7 @@ to the full profile.
| --- | --- | --- |
| `/play` (coin communities) | <kbd>I</kbd> nearest avatar · click a player's nameplate or body | Other players, townsperson NPCs, yourself |
| `/temporary` coin worlds + `/marketplace-walk` | <kbd>I</kbd> nearest player · click a nameplate | Other players, yourself |
-| `/city` | <kbd>I</kbd> · click your avatar | Yourself (single-player) — pass `?agent=<agent-id>` to pilot an agent |
+| `/city` | <kbd>I</kbd> · click your avatar | Yourself (single-player) — add `?agent=<agent-id>` and the inspector shows that agent's reputation and wallet alongside your session |
| `/agora` | <kbd>I</kbd> hovered/nearest citizen · click a citizen | Citizens — opens their existing [passport](/agora) with trust grade, stake, and earnings |
| `/play/arena` | click an agent's floor label | Live trading agents — opens the agent detail drawer (predates the inspector) |
@@ -55,7 +55,7 @@ Each world supplies its own picking (raycast, nameplate click, or the
import { openAvatarInspector } from '../shared/avatar-inspector.js';
openAvatarInspector({
- kind: 'peer', // 'peer' | 'self' | 'npc' | 'ambient'
+ kind: 'peer', // 'peer' | 'self' | 'npc'
name: 'nick',
world: 'play', // chip shown in the header
agentId: 'uuid-or-empty',// three.ws agent this avatar pilots
diff --git a/scripts/wire-master-wallet.mjs b/scripts/wire-master-wallet.mjs
index 7c2aa9b77..10d638355 100755
--- a/scripts/wire-master-wallet.mjs
+++ b/scripts/wire-master-wallet.mjs
@@ -1,38 +1,39 @@
#!/usr/bin/env node
-// Wire ONE Solana wallet as the master signer for every autonomous engine.
+// Wire the platform's Solana signer slots across the economy wallets.
//
-// three.ws has no single "master wallet" env var — each engine loads its own
-// keypair from its own env var (see api/_lib/solana-signers.js). This operator
-// tool takes a single secret key and writes it into every signer slot, in the
-// encoding each slot expects (base58 / base64), so one wallet funds+signs for
-// all of them (the "approach A" consolidation).
+// three.ws has no single "master wallet" env var — each autonomous engine loads
+// its own keypair from its own env var (see api/_lib/solana-signers.js). This
+// operator tool assigns each signer slot to one of the economy wallets and sets
+// every var, in the encoding its consumer expects, from the right wallet's key.
+//
+// Wallets (label → pubkey) and the slot→wallet assignment live in WALLETS /
+// ASSIGNMENTS below — edit those to remap. Provide a secret per wallet you want
+// to wire; slots whose wallet key you didn't provide are skipped (do them later).
//
// SECURITY
-// - The secret is read from a file or stdin, NEVER a CLI arg (shell history).
-// - It is decoded locally, its pubkey derived, and MUST match --pubkey
-// (default: the intended master) or the run aborts. This prevents wiring the
-// wrong wallet.
-// - The secret is never printed or logged. Env vars are set --sensitive.
-// - Default is a dry run: it prints the plan and sets nothing. Pass --apply.
+// - Secrets are read from files (or stdin for a single wallet), NEVER a CLI arg.
+// - Each is decoded locally, its pubkey derived, and MUST match the wallet's
+// expected pubkey or the run aborts (guards against wiring the wrong key).
+// - Secrets are never printed. Env vars are set --sensitive.
+// - Default is a dry run: prints the plan, sets nothing. Pass --apply.
+// - Slots that are already LIVE on a funded wallet (e.g. labor escrow) are
+// skipped unless you pass --include-live, so you don't strand escrowed funds.
//
// USAGE
-// # dry run (shows exactly what it would set, sets nothing):
-// node scripts/wire-master-wallet.mjs --secret-file ./master.key
-//
-// # actually set every signer in Vercel production, overwriting existing:
-// node scripts/wire-master-wallet.mjs --secret-file ./master.key --apply --overwrite
+// # dry run — show the full plan for whichever keys you supply:
+// node scripts/wire-master-wallet.mjs --key wwwqv=./wwwqv.key --key wwwu=./wwwu.key
//
-// # also set the preview environment:
-// node scripts/wire-master-wallet.mjs --secret-file ./master.key --apply --overwrite --preview
+// # apply to production, overwriting existing vars:
+// node scripts/wire-master-wallet.mjs \
+// --key wwwww=./wwwww.key --key wwwqv=./wwwqv.key --key wwwu=./wwwu.key \
+// --apply --overwrite
//
-// # pipe the secret instead of a file:
-// cat master.key | node scripts/wire-master-wallet.mjs --apply --overwrite
+// # also target preview; also touch already-live slots (careful):
+// ... --preview --include-live
//
-// After applying, verify balances/pubkeys with:
+// Each key file may hold the secret as base58, base64, or a JSON array of 64
+// ints — all auto-detected. After applying, verify with:
// node scripts/check-relayer-balances.mjs
-//
-// The secret file may hold the key as base58, base64, or a JSON array of 64
-// ints (Solana CLI keypair file) — all are auto-detected.
import fs from 'node:fs';
import path from 'node:path';
@@ -41,123 +42,141 @@ import { fileURLToPath } from 'node:url';
const __dirname = path.dirname(fileURLToPath(import.meta.url));
const ROOT = path.resolve(__dirname, '..');
-
const { decodeSecretKey } = await import(path.join(ROOT, 'api/_lib/solana-signers.js'));
-// The intended master wallet. Override with --pubkey if you rotate it.
-const DEFAULT_MASTER_PUBKEY = 'wwwuGbqHrwF5RG89KhUbmRWEvjnRH9k5kVM5p7T3WwW';
-
-// Every signer slot that should resolve to the master, with the encoding its
-// consumer expects. `enc` is what we WRITE; consumers that auto-detect accept
-// any form, but slots with a strict decoder (e.g. *_B64 → base64-only) must
-// match. Registry slots are documented in api/_lib/solana-signers.js.
-const TARGETS = [
- // base64 (…_B64 / …_KEYPAIR consumers)
- { env: 'LAUNCHER_MASTER_SECRET_KEY_B64', enc: 'base64', note: 'autonomous coin launcher master' },
- { env: 'PUMP_X402_LAUNCHER_SECRET_KEY_B64', enc: 'base64', note: 'x402 pay-per-call launches' },
- { env: 'PUMP_CRON_RELAYER_SECRET_KEY_B64', enc: 'base64', note: 'buyback + distribute crons' },
- { env: 'THREE_BUYBACK_SECRET_KEY_B64', enc: 'base64', note: '$THREE buyback cron' },
- { env: 'COIN_TREASURY_SECRET_KEY_B64', enc: 'base64', note: 'coin lottery/reflection payouts (strict base64)' },
- { env: 'CLUB_SOLANA_TREASURY_SECRET_KEY_B64', enc: 'base64', note: 'club tip sweeps' },
- { env: 'PLATFORM_TREASURY_KEYPAIR', enc: 'base64', note: 'shared platform treasury / withdrawal gas' },
- { env: 'MARKETPLACE_PAYER_KEYPAIR', enc: 'base64', note: 'gasless checkout fee-payer' },
- // base58 (…_BASE58 and flexible treasury secrets)
- { env: 'THREEWS_SOL_PARENT_SECRET_BASE58', enc: 'base58', note: 'threews.sol subdomain minting' },
- { env: 'X402_SEED_SOLANA_SECRET_BASE58', enc: 'base58', note: 'x402 autonomous/seed spender' },
- { env: 'LABOR_ESCROW_SECRET_BASE58', enc: 'base58', note: 'labor market escrow (already live — overwrite reroutes it!)' },
- { env: 'VANITY_BOUNTY_PAYOUT_KEY', enc: 'base58', note: 'vanity bounty payouts (strict base58)' },
- { env: 'CIRCULATION_TREASURY_SECRET', enc: 'base58', note: 'circulation engine treasury' },
- { env: 'A2A_PAYER_SOLANA_SECRET', enc: 'base58', note: 'a2a mandate settlements' },
- { env: 'REWARDS_DISTRIBUTOR_SECRET', enc: 'base58', note: '$THREE holder rewards distributor' },
- // Intentionally EXCLUDED:
- // SOLANA_AGENT_COLLECTION_AUTHORITY_KEY — on-chain NFT-collection update
- // authority; must stay the wallet that created the collection or NFT ops
- // break. Do not overwrite with the master. Add --include-collection to force.
+// The economy wallets. Each signer slot is assigned to one of these.
+const WALLETS = {
+ wwwww: {
+ pubkey: 'wwwwwDxFWRn7grgr3Esrsg5C6NvDoDHSA4gaCffccrU',
+ desc: 'x402 receiver + closed-loop spender (holds USDC)',
+ },
+ wwwqv: {
+ pubkey: 'wwwqvAbN4RjaRvfGsorxMuauq7SWVcV13Aa7GaqHGUn',
+ desc: 'SOL-burning autonomous engines (funded ~2.77 SOL)',
+ },
+ wwwu: {
+ pubkey: 'wwwuGbqHrwF5RG89KhUbmRWEvjnRH9k5kVM5p7T3WwW',
+ desc: 'platform treasury + revenue/payouts face (FUND before use)',
+ },
+};
+
+// slot → wallet, with the encoding its consumer expects.
+// live:true → already funded/live on its current wallet; skip unless --include-live.
+const ASSIGNMENTS = [
+ // ── wwwww: x402 closed loop (money recirculates to this same wallet) ──
+ { env: 'X402_SEED_SOLANA_SECRET_BASE58', wallet: 'wwwww', enc: 'base58', note: 'x402 autonomous/seed spender' },
+ { env: 'PUMP_X402_LAUNCHER_SECRET_KEY_B64', wallet: 'wwwww', enc: 'base64', note: 'x402 pay-per-call launches' },
+ { env: 'A2A_PAYER_SOLANA_SECRET', wallet: 'wwwww', enc: 'base58', note: 'a2a mandate settlements' },
+
+ // ── wwwqv: the SOL-spending autonomous engines (it already holds SOL) ──
+ { env: 'LAUNCHER_MASTER_SECRET_KEY_B64', wallet: 'wwwqv', enc: 'base64', note: 'autonomous coin launcher master (highest SOL floor)' },
+ { env: 'PUMP_CRON_RELAYER_SECRET_KEY_B64', wallet: 'wwwqv', enc: 'base64', note: 'buyback + distribute cron gas' },
+ { env: 'CIRCULATION_TREASURY_SECRET', wallet: 'wwwqv', enc: 'base58', note: 'circulation engine treasury' },
+ { env: 'THREEWS_SOL_PARENT_SECRET_BASE58', wallet: 'wwwqv', enc: 'base58', note: 'threews.sol subdomain minting' },
+ { env: 'COIN_TREASURY_SECRET_KEY_B64', wallet: 'wwwqv', enc: 'base64', note: 'coin lottery/reflection payouts (strict base64)' },
+
+ // ── wwwu: the platform treasury + revenue/payout face (fund it) ──
+ { env: 'PLATFORM_TREASURY_KEYPAIR', wallet: 'wwwu', enc: 'base64', note: 'shared platform treasury / withdrawal gas' },
+ { env: 'MARKETPLACE_PAYER_KEYPAIR', wallet: 'wwwu', enc: 'base64', note: 'gasless checkout fee-payer' },
+ { env: 'THREE_BUYBACK_SECRET_KEY_B64', wallet: 'wwwu', enc: 'base64', note: '$THREE buyback (holds USDC revenue)' },
+ { env: 'CLUB_SOLANA_TREASURY_SECRET_KEY_B64', wallet: 'wwwu', enc: 'base64', note: 'club tip sweeps' },
+ { env: 'VANITY_BOUNTY_PAYOUT_KEY', wallet: 'wwwu', enc: 'base58', note: 'vanity bounty payouts (strict base58)' },
+ { env: 'REWARDS_DISTRIBUTOR_SECRET', wallet: 'wwwu', enc: 'base58', note: '$THREE holder rewards distributor' },
+
+ // ── already LIVE — skipped unless --include-live (rerouting strands funds) ──
+ { env: 'LABOR_ESCROW_SECRET_BASE58', wallet: 'wwwu', enc: 'base58', live: true, note: 'labor escrow — LIVE on its own wallet; migrate balances before rerouting' },
+
+ // Intentionally EXCLUDED entirely: SOLANA_AGENT_COLLECTION_AUTHORITY_KEY
+ // (on-chain NFT-collection update authority — must stay its original wallet).
];
const argv = process.argv.slice(2);
const has = (f) => argv.includes(f);
-const val = (f) => (argv.includes(f) ? argv[argv.indexOf(f) + 1] : undefined);
-
const APPLY = has('--apply');
const OVERWRITE = has('--overwrite');
const PREVIEW = has('--preview');
-const INCLUDE_COLLECTION = has('--include-collection');
-const EXPECTED_PUBKEY = val('--pubkey') || DEFAULT_MASTER_PUBKEY;
-const secretFile = val('--secret-file');
-
-function readSecret() {
- if (secretFile) {
- if (!fs.existsSync(secretFile)) fail(`--secret-file not found: ${secretFile}`);
- return fs.readFileSync(secretFile, 'utf8').trim();
- }
- if (process.env.MASTER_WALLET_SECRET) return process.env.MASTER_WALLET_SECRET.trim();
- if (!process.stdin.isTTY) return fs.readFileSync(0, 'utf8').trim();
- fail('No secret provided. Use --secret-file <path>, pipe it via stdin, or set MASTER_WALLET_SECRET.');
- return '';
-}
+const INCLUDE_LIVE = has('--include-live');
function fail(msg) {
console.error(`\n✗ ${msg}\n`);
process.exit(1);
}
-async function main() {
- const scopes = ['production', ...(PREVIEW ? ['preview'] : [])];
- const targets = INCLUDE_COLLECTION
- ? [...TARGETS, { env: 'SOLANA_AGENT_COLLECTION_AUTHORITY_KEY', enc: 'base64', note: 'NFT collection authority (forced)' }]
- : TARGETS;
+// Collect --key label=path (repeatable). Single wallet may use stdin.
+const keyPaths = {};
+for (let i = 0; i < argv.length; i++) {
+ if (argv[i] === '--key') {
+ const [label, ...rest] = (argv[i + 1] || '').split('=');
+ if (!label || !rest.length) fail(`--key expects <label>=<path>, got "${argv[i + 1]}"`);
+ if (!WALLETS[label]) fail(`unknown wallet label "${label}". Known: ${Object.keys(WALLETS).join(', ')}`);
+ keyPaths[label] = rest.join('=');
+ }
+}
- const secret = readSecret();
+async function loadWalletKey(label, source) {
+ let secret;
+ if (source === '-' || (source === undefined && !process.stdin.isTTY)) {
+ secret = fs.readFileSync(0, 'utf8').trim();
+ } else {
+ if (!fs.existsSync(source)) fail(`key file for ${label} not found: ${source}`);
+ secret = fs.readFileSync(source, 'utf8').trim();
+ }
const bytes = await decodeSecretKey(secret);
- if (!bytes) fail('Could not decode the secret. Expect base58, base64, or a JSON array of 64 ints.');
- if (bytes.length !== 64) fail(`Decoded secret is ${bytes.length} bytes; expected a 64-byte secret key.`);
-
+ if (!bytes || bytes.length !== 64) fail(`${label}: could not decode a 64-byte secret key`);
const { Keypair } = await import('@solana/web3.js');
const bs58mod = await import('bs58');
const bs58 = bs58mod.default || bs58mod;
const kp = Keypair.fromSecretKey(bytes);
const pubkey = kp.publicKey.toBase58();
-
- if (pubkey !== EXPECTED_PUBKEY) {
- fail(
- `Refusing to run: the provided secret derives to\n ${pubkey}\n` +
- `but the expected master wallet is\n ${EXPECTED_PUBKEY}\n` +
- `If this is intentional, re-run with --pubkey ${pubkey}`,
- );
+ if (pubkey !== WALLETS[label].pubkey) {
+ fail(`${label}: key derives to ${pubkey} but expected ${WALLETS[label].pubkey}`);
}
+ return { base64: Buffer.from(bytes).toString('base64'), base58: bs58.encode(bytes) };
+}
- const encoded = {
- base64: Buffer.from(bytes).toString('base64'),
- base58: bs58.encode(bytes),
- };
+async function main() {
+ const scopes = ['production', ...(PREVIEW ? ['preview'] : [])];
- console.log(`\nMaster wallet: ${pubkey}`);
- console.log(`Mode: ${APPLY ? 'APPLY' : 'DRY RUN (nothing will change)'}${OVERWRITE ? ' overwrite=on' : ''}`);
+ // Load whichever wallet keys were provided.
+ const encoded = {};
+ for (const [label, src] of Object.entries(keyPaths)) {
+ encoded[label] = await loadWalletKey(label, src);
+ }
+ const provided = Object.keys(encoded);
+ if (!provided.length && APPLY) fail('No keys provided. Pass --key <label>=<path> for the wallets you want to wire.');
+
+ console.log(`\nMode: ${APPLY ? 'APPLY' : 'DRY RUN (nothing will change)'}${OVERWRITE ? ' overwrite=on' : ''}`);
console.log(`Scopes: ${scopes.join(', ')}`);
- console.log(`Signer slots: ${targets.length}\n`);
+ console.log(`Keys provided: ${provided.length ? provided.join(', ') : '(none — dry-run plan only)'}\n`);
- let ok = 0;
+ let set = 0;
+ let skipped = 0;
let failed = 0;
- for (const t of targets) {
- const value = encoded[t.enc];
+ for (const a of ASSIGNMENTS) {
+ const w = WALLETS[a.wallet];
+ const tag = `${a.env} ← ${a.wallet} (${a.enc})`;
+ if (a.live && !INCLUDE_LIVE) {
+ console.log(` ⏭ skip live ${tag} — ${a.note} (use --include-live to force)`);
+ skipped++;
+ continue;
+ }
+ if (!encoded[a.wallet]) {
+ console.log(` ⏭ no key ${tag} — ${a.note}`);
+ skipped++;
+ continue;
+ }
+ const value = encoded[a.wallet][a.enc];
for (const scope of scopes) {
- const label = `${t.env} [${scope}] (${t.enc})`;
+ const label = `${tag} [${scope}]`;
if (!APPLY) {
- console.log(` would set ${label} — ${t.note}`);
+ console.log(` would set ${label} — ${a.note}`);
continue;
}
- if (OVERWRITE) {
- // Remove first; ignore "not found". add fails if the var exists.
- spawnSync('vercel', ['env', 'rm', t.env, scope, '-y'], { stdio: ['ignore', 'ignore', 'ignore'] });
- }
- const res = spawnSync('vercel', ['env', 'add', t.env, scope, '--sensitive'], {
- input: value,
- encoding: 'utf8',
- });
+ if (OVERWRITE) spawnSync('vercel', ['env', 'rm', a.env, scope, '-y'], { stdio: 'ignore' });
+ const res = spawnSync('vercel', ['env', 'add', a.env, scope, '--sensitive'], { input: value, encoding: 'utf8' });
if (res.status === 0) {
console.log(` ✓ set ${label}`);
- ok++;
+ set++;
} else {
console.log(` ✗ FAILED ${label} — ${(res.stderr || '').trim().split('\n').pop()}`);
failed++;
@@ -165,12 +184,13 @@ async function main() {
}
}
+ console.log(`\nWallets:`);
+ for (const [label, w] of Object.entries(WALLETS)) console.log(` ${label} ${w.pubkey} — ${w.desc}`);
if (!APPLY) {
- console.log(`\nDry run only. Re-run with --apply --overwrite to write these to Vercel.`);
+ console.log(`\nDry run only. Provide --key for each wallet, then re-run with --apply --overwrite.`);
} else {
- console.log(`\nDone: ${ok} set, ${failed} failed.`);
- console.log(`Redeploy for changes to take effect, then verify:`);
- console.log(` node scripts/check-relayer-balances.mjs`);
+ console.log(`\nDone: ${set} set, ${skipped} skipped, ${failed} failed.`);
+ console.log(`Redeploy, then verify: node scripts/check-relayer-balances.mjs`);
if (failed) process.exitCode = 1;
}
}
diff --git a/src/shared/avatar-inspector.js b/src/shared/avatar-inspector.js
index ea50e3ede..07df188af 100644
--- a/src/shared/avatar-inspector.js
+++ b/src/shared/avatar-inspector.js
@@ -26,7 +26,7 @@
* the I key on the nearest avatar):
* import { openAvatarInspector } from '../shared/avatar-inspector.js';
* openAvatarInspector({
- * kind: 'peer', // 'peer'|'self'|'npc'|'ambient'
+ * kind: 'peer', // 'peer'|'self'|'npc'
* name: 'nick',
* world: 'play', // chip: which world surfaced it
* agentId: 'uuid-or-empty', // three.ws agent this avatar pilots
@@ -48,9 +48,6 @@ const KIND_LABEL = {
self: 'You',
peer: 'Player',
npc: 'Townsperson',
- ambient: 'Local',
- agent: 'Agent',
- citizen: 'Citizen',
};
const esc = (s) =>
@@ -96,12 +93,12 @@ export function closeAvatarInspector() {
* Open (or toggle) the inspector for a subject.
*
* @param {object} subject
- * @param {string} [subject.kind] 'peer'|'self'|'npc'|'ambient'|'agent'|'citizen'
+ * @param {string} [subject.kind] 'peer'|'self'|'npc'
* @param {string} [subject.name] display name
* @param {string} [subject.world] world chip ('play', 'city', …)
* @param {string} [subject.agentId] three.ws agent UUID this avatar pilots
* @param {string} [subject.wallet] verified Solana address (used when no agentId)
- * @param {string} [subject.avatarUrl] GLB url (shown as a fact, not rendered)
+ * @param {string} [subject.avatarUrl] GLB url — shown as an "Avatar model" fact row
* @param {Array} [subject.facts] [{label, value, href?}] world-specific rows
* @param {object} [opts]
* @param {Element} [opts.trigger] element to restore focus to on close
@@ -242,7 +239,13 @@ async function renderAbout(root, subject, { agentId }) {
)
.join('');
- const baseFacts = Array.isArray(subject.facts) ? subject.facts : [];
+ const baseFacts = Array.isArray(subject.facts) ? [...subject.facts] : [];
+ // The GLB this avatar is wearing — a real, linkable fact of the encounter.
+ const avatarUrl = String(subject.avatarUrl || '');
+ if (/^(https?:\/\/|\/)[^\s]+\.(glb|gltf|vrm)(\?|$)/i.test(avatarUrl)) {
+ const file = avatarUrl.split('?')[0].split('/').pop();
+ baseFacts.push({ label: 'Avatar model', value: file, href: avatarUrl });
+ }
const load = async () => {
body.innerHTML = factRows(baseFacts) + (agentId ? skeleton(2) : '');
if (!agentId) {
@@ -359,7 +362,7 @@ async function renderWallet(root, { agentId, wallet, kind }) {
.join('')}</div>`
: `<p class="avi-note">No token holdings yet — a real $0 wallet shows $0.</p>`) +
(data.reputation?.tips?.count
- ? `<div class="avi-fact"><span class="avi-fact-l">Tips received</span><span class="avi-fact-v">${data.reputation.tips.count} (${esc(formatWalletUsd(data.reputation.tips.usd))})</span></div>`
+ ? `<div class="avi-fact"><span class="avi-fact-l">Tips received</span><span class="avi-fact-v">${esc(data.reputation.tips.count)} (${esc(formatWalletUsd(data.reputation.tips.usd))})</span></div>`
: '');
wireCopy();
} catch (err) {
@@ -407,14 +410,12 @@ async function renderWallet(root, { agentId, wallet, kind }) {
}
body.innerHTML = emptyState(
- kind === 'npc' || kind === 'ambient' ? 'No wallet' : 'No wallet linked',
+ kind === 'npc' ? 'No wallet' : 'No wallet linked',
kind === 'npc'
? 'Townspeople sell real paid services at their counters, but don’t carry a public wallet of their own.'
- : kind === 'ambient'
- ? 'Ambient locals are part of the town’s background life — they aren’t players and hold no wallet.'
- : kind === 'self'
- ? 'Sign in with your wallet — or pilot one of your agents — and your balances and reputation appear here.'
- : 'This player is exploring as a guest — no verified wallet, no agent.',
+ : kind === 'self'
+ ? 'Sign in with your wallet — or pilot one of your agents — and your balances and reputation appear here.'
+ : 'This player is exploring as a guest — no verified wallet, no agent.',
kind === 'self' ? [{ label: 'Get an agent wallet', href: '/agent-wallet' }] : [],
);
};
@@ -434,10 +435,8 @@ function renderReputation(root, { agentId, kind }) {
'No trust score',
kind === 'npc'
? 'Townspeople are part of the world itself — reputation applies to player-owned agents.'
- : kind === 'ambient'
- ? 'Ambient locals aren’t players, so there’s nothing to score.'
- : 'Reputation is earned by registered agents through real settled activity. This avatar isn’t piloting one.',
- kind === 'npc' || kind === 'ambient' ? [] : [{ label: 'How trust is earned', href: '/reputation' }],
+ : 'Reputation is earned by registered agents through real settled activity. This avatar isn’t piloting one.',
+ kind === 'npc' ? [] : [{ label: 'How trust is earned', href: '/reputation' }],
);
}
diff --git a/tasks/onchain-deployment/SOLANA-SIGNERS.md b/tasks/onchain-deployment/SOLANA-SIGNERS.md
index efc22bd81..93cf4b82d 100644
--- a/tasks/onchain-deployment/SOLANA-SIGNERS.md
+++ b/tasks/onchain-deployment/SOLANA-SIGNERS.md
@@ -36,28 +36,41 @@ Encodings: `base64` = base64 of the 64 raw secret-key bytes (`…_B64` vars); `b
**Funding a wallet does not enable an engine.** Most engines also need their own flag (`CIRCULATION_ENABLED`, `THREE_BUYBACK_ENABLED`, `SOLANA_AUTODEPLOY_ENABLED`, …). EVM engines use separate keys (`EVM_TREASURY_PRIVATE_KEY`, `CIRCULATION_EVM_TREASURY_SECRET`).
-## Wiring one wallet as the master (approach A)
+## Wiring across the economy wallets
+
+[`scripts/wire-master-wallet.mjs`](../../scripts/wire-master-wallet.mjs) assigns each signer slot to one of the economy wallets and sets every var from the right wallet's key. Edit `WALLETS` / `ASSIGNMENTS` in that script to remap. Current default split:
+
+| Wallet | Role | Signer slots |
+|---|---|---|
+| `wwwww…ccrU` | x402 receiver + closed-loop spender (holds USDC) | `X402_SEED_SOLANA_SECRET_BASE58`, `PUMP_X402_LAUNCHER_SECRET_KEY_B64`, `A2A_PAYER_SOLANA_SECRET` |
+| `wwwqv…HGUn` | SOL-burning autonomous engines (funded ~2.77 SOL) | `LAUNCHER_MASTER_SECRET_KEY_B64`, `PUMP_CRON_RELAYER_SECRET_KEY_B64`, `CIRCULATION_TREASURY_SECRET`, `THREEWS_SOL_PARENT_SECRET_BASE58`, `COIN_TREASURY_SECRET_KEY_B64` |
+| `wwwu…WwW` | platform treasury + revenue/payouts (fund before use) | `PLATFORM_TREASURY_KEYPAIR`, `MARKETPLACE_PAYER_KEYPAIR`, `THREE_BUYBACK_SECRET_KEY_B64`, `CLUB_SOLANA_TREASURY_SECRET_KEY_B64`, `VANITY_BOUNTY_PAYOUT_KEY`, `REWARDS_DISTRIBUTOR_SECRET` |
+
+`LABOR_ESCROW_SECRET_BASE58` is already **live** on its own wallet — the tool skips it unless you pass `--include-live` (rerouting strands any escrowed funds; migrate balances first). `SOLANA_AGENT_COLLECTION_AUTHORITY_KEY` is never touched.
```bash
-# 1. Put the master wallet's secret in a local file (base58, base64, or JSON array).
-# NEVER commit it. NEVER paste it into a chat.
-echo '<secret-key>' > master.key
+# 1. Put each wallet's secret in its own local file (base58 / base64 / JSON array).
+# NEVER commit them. NEVER paste them into a chat.
+echo '<wwwqv-secret>' > wwwqv.key
+echo '<wwwu-secret>' > wwwu.key
+echo '<wwwww-secret>' > wwwww.key
-# 2. Dry run — prints every var it would set, sets nothing:
-node scripts/wire-master-wallet.mjs --secret-file ./master.key
+# 2. Dry run — prints the full plan, sets nothing:
+node scripts/wire-master-wallet.mjs --key wwwqv=./wwwqv.key --key wwwu=./wwwu.key --key wwwww=./wwwww.key
-# 3. Apply to Vercel production (overwrite existing), then also preview if wanted:
-node scripts/wire-master-wallet.mjs --secret-file ./master.key --apply --overwrite
-node scripts/wire-master-wallet.mjs --secret-file ./master.key --apply --overwrite --preview
+# 3. Apply to Vercel production (overwrite existing), add --preview to also do preview:
+node scripts/wire-master-wallet.mjs \
+ --key wwwqv=./wwwqv.key --key wwwu=./wwwu.key --key wwwww=./wwwww.key \
+ --apply --overwrite
# 4. Redeploy, then verify pubkeys + balances:
node scripts/check-relayer-balances.mjs
-# 5. Shred the local key file.
-shred -u master.key
+# 5. Shred the local key files.
+shred -u wwwqv.key wwwu.key wwwww.key
```
-The script refuses to run unless the secret derives to the intended master pubkey (guard against wiring the wrong wallet); override with `--pubkey <derived>`. It sets every var `--sensitive`, so keep your own copy — Vercel Sensitive vars are unreadable after save.
+Each key is decoded locally and MUST derive to its wallet's expected pubkey or the run aborts (guards against wiring the wrong key). You can wire one wallet at a time — slots whose key you didn't provide are skipped. Every var is set `--sensitive`, so keep your own copy — Vercel Sensitive vars are unreadable after save.
## Checking balances