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.

feat: implement diversity engine for photo-seeded Avaturn lane, adding profile generation and session creation

qbdz536f371524db
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9966417f9..839bd8f10 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Diorama is live — speak a little 3D world into being** — Diorama is now a real, reachable page at three.ws/diorama. Type one sentence — "a cozy autumn campsite by a lake at dusk" — and Claude composes the scene, each object is forged into a real 3D model, and the little world assembles in front of you, explorable in 3D and viewable in AR. Save it and you get a permalink and a slot on the public gallery wall, where every saved world shows a live rotating 3D thumbnail you can open and explore. Share it as a 3D postcard: copy the link, post to X, or grab an embed snippet. Nothing is a screenshot — it's all real geometry forged from your words. (`/diorama`) `[feature]`
- **Labs — a home for the hidden gems most people never find** — There's a new Labs page at three.ws/labs (now linked from the Discover menu and the footer) that gathers the platform's experimental and advanced surfaces in one beautiful, filterable gallery — the kind of things you'd only reach before if you knew the exact URL. Speak a 3D world into being with Diorama, drive an avatar with your webcam in Mocap Studio, run a coin hands-off with Autopilot, watch autonomous agents coordinate on-chain, and more. Each card shows a live status check and a preview, and you can filter by category. Everything featured is real and live. (`/labs`) `[feature]`
- **Launch Studio, redesigned — and rewards can now go to anyone** — The Launch Studio got a full makeover and a big new power. New look: instant search across all 50 recipes, colour-themed category tabs, a Reward/Theme filter, savable favourites, a Surprise-me button, and keyboard shortcuts. Clicking a recipe now slides open a live preview drawer with real candidate coins — avatars, signal-strength bars, a dev-buy slider that flows into the launch, and a network toggle. The big addition is the reward planner: route a coin's creator fees to anyone, not just GitHub — a GitHub or X (Twitter) account, any Solana wallet or .sol name, back to holders as cashback, or into an auto buy-back-and-burn. The same generalisation reaches the post-launch fees panel, whose recipient box now accepts a GitHub @user, an X handle (x:@handle), a raw wallet, or an owner/repo to split contributors. (`/launch-studio`) `[improvement, feature]`
+- **Money Pulse & Viability now render in the brand type** — Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling — the subtitle, network toggle, filter labels and live-feed rows — fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface. (`/pulse`) `[fix]`
- **The Agent Labor Market, reimagined** — The labor market got a top-to-bottom redesign built for watching the machine economy work. A live hero with settlement sparklines, a real-time $THREE-flow ticker, and a sticky toolbar with instant search, sorting (reward, most bids, newest), a "Mine" filter, and skill/reward filters. Open any bounty into a richer drawer: a lifecycle stepper from Posted → Settled, a bid-distribution chart, transparent bid scores, and every on-chain receipt one tap away. Bounties are now shareable by link, the whole surface is keyboard-driven (press ? for shortcuts), and clean toast notifications replace jarring pop-ups. Moderators get an in-drawer override to release or refund a stuck bounty — without ever touching the escrow key. (`/labor-market`) `[improvement, feature]`
- **The autonomous sniper now has a live web console** — Run agent-sniper serve and open it in a browser: a real-time operator dashboard, built right into the engine. Watch buys, sells, candidates and signals tick up live; see every open position with its entry, current value and colored profit-and-loss, and close any of them in one click; review your armed strategies with their stop-loss and take-profit at a glance; arm a new strategy or fire a manual snipe from clean forms; and read a live activity feed of everything the engine is doing. It has designed loading, empty and error states, toasts, keyboard shortcuts and a full mobile layout. Reads are free to anyone; to run the controls yourself without paying, set an operator token that bypasses the x402 paywall for you while external agents still pay per call. (`/docs/mcp`) `[feature, sdk]`
- **The Trading Brain is redesigned — presets, a live risk meter, and a real backtest breakdown** — Building your agent's sniper is now a minute, not a manual. Four one-tap presets — Guardian, Balanced, Hunter, Moonshot — fill the whole rule with a coherent risk posture you can then tune; the active preset stays highlighted and un-highlights the moment you change anything. A live Risk Profile meter scores your rule from its own parameters (position size, stop depth, slippage, how fresh a coin it chases, concurrent exposure) and slides from calm green to hot red as you push it, so you can feel the aggressiveness before you arm. The backtest no longer stops at headline numbers: it now shows a segmented bar of how the matching launches actually resolved — graduated, pumped, flat, rugged — plus a few real best- and worst-case sample trades, so the projection is honest about its shape. Power users get keyboard shortcuts (⌘/Ctrl+S save, ⌘/Ctrl+B backtest, ⌘/Ctrl+↵ run). And on the wallet, balances now count up and flash green or red when money moves instead of hard-swapping. Every animation respects reduced-motion. (`/agent-studio`) `[improvement, feature]`
diff --git a/api/_lib/avaturn-photo.js b/api/_lib/avaturn-photo.js
new file mode 100644
index 000000000..eb0323aa0
--- /dev/null
+++ b/api/_lib/avaturn-photo.js
@@ -0,0 +1,86 @@
+// @ts-check
+// Photo-seeded Avaturn lane — turns a generated *diverse face* into a distinct,
+// fully-rigged Avaturn avatar. This is what makes the seeded gallery read as
+// genuinely different people (girls, guys, young, old, every complexion) instead
+// of the same base face in different outfits.
+//
+// Flow: pickDiversityProfile → faceGenPrompts → text→image (FLUX) → an Avaturn
+// v2 session created from that face → the headless harness drives the session
+// and exports the rigged GLB (exportRandomAvaturnAvatar({ sessionUrl })).
+//
+// Avaturn v2 reconstructs from a single frontal, so we generate one on-model
+// face and present it as the session's photo. The caller falls back to the
+// public-catalog lane if any step here fails, so seeding never stalls.
+
+import { env } from './env.js';
+import { textToImage } from '../_mcp3d/text-to-image.js';
+import { faceGenPrompts } from './avaturn-seed.js';
+
+const FACE_FETCH_TIMEOUT_MS = 20_000;
+const SESSION_TIMEOUT_MS = 30_000;
+
+/** Fetch a generated image URL and inline it as a base64 data URL for Avaturn. */
+async function toDataUrl(imageUrl) {
+ if (typeof imageUrl === 'string' && imageUrl.startsWith('data:')) return imageUrl;
+ const r = await fetch(imageUrl, { signal: AbortSignal.timeout(FACE_FETCH_TIMEOUT_MS) });
+ if (!r.ok) throw new Error(`face image fetch ${r.status}`);
+ const buf = Buffer.from(await r.arrayBuffer());
+ const ct = (r.headers.get('content-type') || '').toLowerCase();
+ const mime = ct.includes('png') ? 'image/png' : 'image/jpeg';
+ return `data:${mime};base64,${buf.toString('base64')}`;
+}
+
+/**
+ * Generate one photorealistic face for a diversity profile and return it as the
+ * frontal/left/right photo set Avaturn's session API expects (the same on-model
+ * frontal drives all three — v2 reconstructs from a single photo).
+ *
+ * @param {import('./avaturn-seed.js').ReturnType<typeof import('./avaturn-seed.js').pickDiversityProfile>} profile
+ * @returns {Promise<{ frontal: string, left: string, right: string, model: string | null }>}
+ */
+export async function generateDiverseFace(profile) {
+ const prompts = faceGenPrompts(profile);
+ const front = await textToImage(prompts.frontal, { aspectRatio: '1:1' });
+ if (!front?.imageUrl) throw new Error('face generation produced no image');
+ const dataUrl = await toDataUrl(front.imageUrl);
+ return { frontal: dataUrl, left: dataUrl, right: dataUrl, model: front.model ?? null };
+}
+
+/**
+ * Create an Avaturn v2 session from a face photo set. Returns the session URL
+ * the headless harness loads. Throws (with a `code`) when the API key is missing
+ * or Avaturn rejects the photos — the caller treats that as "fall back".
+ *
+ * @param {{ photos: { frontal: string, left: string, right: string }, bodyType?: 'male'|'female', externalUserId: string }} opts
+ * @returns {Promise<string>}
+ */
+export async function createAvaturnSession({ photos, bodyType = 'male', externalUserId }) {
+ if (!env.AVATURN_API_KEY) {
+ throw Object.assign(new Error('AVATURN_API_KEY unset'), { code: 'not_configured' });
+ }
+ const r = await fetch(`${env.AVATURN_API_URL}/api/v1/sessions`, {
+ method: 'POST',
+ headers: {
+ authorization: `Bearer ${env.AVATURN_API_KEY}`,
+ 'content-type': 'application/json',
+ accept: 'application/json',
+ },
+ body: JSON.stringify({ external_user_id: externalUserId, photos, body_type: bodyType, version: 'v2' }),
+ signal: AbortSignal.timeout(SESSION_TIMEOUT_MS),
+ });
+ if (!r.ok) {
+ const text = await r.text().catch(() => '');
+ throw Object.assign(new Error(`avaturn session ${r.status}: ${text.slice(0, 180)}`), {
+ code: r.status === 401 ? 'upstream_auth' : 'upstream_error',
+ });
+ }
+ const data = await r.json().catch(() => null);
+ const sessionUrl = data?.session_url || data?.url || data?.iframe_url;
+ if (!sessionUrl) throw new Error('avaturn session response missing url');
+ return sessionUrl;
+}
+
+/** Whether the photo lane can run (API key present). */
+export function photoLaneConfigured() {
+ return !!env.AVATURN_API_KEY;
+}
diff --git a/api/_lib/avaturn-seed.js b/api/_lib/avaturn-seed.js
index 6b418f238..cc091eb89 100644
--- a/api/_lib/avaturn-seed.js
+++ b/api/_lib/avaturn-seed.js
@@ -201,3 +201,98 @@ export function defaultEditorUrl(bodyType = 'male') {
const link = AVATURN_DEFAULT_BODY[bodyType] || AVATURN_DEFAULT_BODY.male;
return `${AVATURN_DEFAULT_EDITOR}?avatar_link=${encodeURIComponent(link)}`;
}
+
+// ── Diversity engine (photo-seeded lane) ────────────────────────────────────────
+// The public-catalog lane varies outfit/hair/skin-tone over a couple of base
+// faces, so its avatars read as similar people in different clothes. To get
+// genuinely different humans — girls and guys, young and old, every complexion —
+// we seed Avaturn from a generated *face photo*: a described person drawn from a
+// diversity matrix, rendered by the text→image lane, then reconstructed by
+// Avaturn into a distinct, fully-rigged avatar. These helpers are pure so the
+// matrix coverage and prompt wording are unit-testable.
+
+// Age bands carry a gray-hair bias so seniors trend silver without forcing it.
+export const AGE_BANDS = [
+ { key: 'young-adult', desc: 'in their early twenties', grayBias: 0 },
+ { key: 'adult', desc: 'in their early thirties', grayBias: 0.05 },
+ { key: 'middle-aged', desc: 'in their late forties, a few soft laugh lines', grayBias: 0.3 },
+ { key: 'senior', desc: 'in their late sixties, natural wrinkles and gentle age lines', grayBias: 0.85 },
+];
+
+// A broad, respectful spread of appearances. `skin` is the gentle Avaturn
+// skin-tone correction band (-50..50) applied on top of the photo, kept small
+// because the generated face already carries the complexion.
+export const ETHNICITIES = [
+ { key: 'east-asian', desc: 'East Asian', skin: [-8, 6] },
+ { key: 'southeast-asian', desc: 'Southeast Asian', skin: [-2, 12] },
+ { key: 'south-asian', desc: 'South Asian', skin: [6, 20] },
+ { key: 'black-african', desc: 'Black African', skin: [14, 28] },
+ { key: 'black-caribbean', desc: 'Afro-Caribbean', skin: [10, 24] },
+ { key: 'latino', desc: 'Latin American', skin: [2, 16] },
+ { key: 'middle-eastern', desc: 'Middle Eastern', skin: [2, 16] },
+ { key: 'white-european', desc: 'White European', skin: [-24, -4] },
+ { key: 'nordic', desc: 'Nordic', skin: [-32, -12] },
+ { key: 'pacific-islander', desc: 'Pacific Islander', skin: [4, 18] },
+];
+
+export const BUILDS = ['slim', 'average', 'athletic', 'curvy', 'stocky', 'lean'];
+
+/**
+ * Draw one described person from the diversity matrix. Deterministic in `seed`
+ * (a different sub-stream than body/look) so a given seed reproduces the same
+ * human — handy for reruns and tests.
+ * @param {string} seed
+ * @returns {{ gender:'male'|'female', ageKey:string, ageDesc:string, grayBias:number,
+ * ethnicityKey:string, ethnicityDesc:string, build:string, skinToneCorrection:number }}
+ */
+export function pickDiversityProfile(seed) {
+ const rng = mulberry32(hashSeed(String(seed) + ':profile'));
+ const gender = rng() < 0.5 ? 'male' : 'female';
+ const age = pickOne(AGE_BANDS, rng) ?? AGE_BANDS[0];
+ const eth = pickOne(ETHNICITIES, rng) ?? ETHNICITIES[0];
+ const build = pickOne(BUILDS, rng) ?? BUILDS[0];
+ const [lo, hi] = eth.skin;
+ return {
+ gender,
+ ageKey: age.key,
+ ageDesc: age.desc,
+ grayBias: age.grayBias,
+ ethnicityKey: eth.key,
+ ethnicityDesc: eth.desc,
+ build,
+ skinToneCorrection: Math.round(lo + rng() * (hi - lo)),
+ };
+}
+
+/**
+ * Build the three ID-style face prompts (frontal + two three-quarter views) for
+ * a profile. Passport-style framing — neutral, evenly lit, unobstructed — is
+ * what Avaturn's reconstruction wants.
+ * @param {ReturnType<typeof pickDiversityProfile>} profile
+ * @returns {{ frontal:string, left:string, right:string }}
+ */
+export function faceGenPrompts(profile) {
+ const noun = profile.gender === 'male' ? 'man' : 'woman';
+ const who = `a ${profile.build} ${profile.ethnicityDesc} ${noun} ${profile.ageDesc}`;
+ const base =
+ `photorealistic studio ID portrait of ${who}, neutral relaxed expression, mouth closed, ` +
+ `looking at the camera, plain light-grey seamless background, soft even frontal lighting, ` +
+ `sharp focus, natural detailed skin texture, no glasses, no hat, no jewelry, hair kept clear of the face`;
+ return {
+ frontal: `${base}, head facing the camera straight on, symmetrical framing`,
+ left: `${base}, head turned about thirty degrees to their left, three-quarter view`,
+ right: `${base}, head turned about thirty degrees to their right, three-quarter view`,
+ };
+}
+
+/**
+ * A short, human-readable label for a profile — used in avatar descriptions and
+ * the seeder console (e.g. "East Asian woman, late sixties").
+ * @param {ReturnType<typeof pickDiversityProfile>} profile
+ * @returns {string}
+ */
+export function describeProfile(profile) {
+ const noun = profile.gender === 'male' ? 'man' : 'woman';
+ const age = profile.ageDesc.replace(/,.*$/, ''); // drop the wrinkle clause
+ return `${profile.ethnicityDesc} ${noun}, ${age}`;
+}
diff --git a/api/_lib/flags.js b/api/_lib/flags.js
index 2291205fb..68a17a116 100644
--- a/api/_lib/flags.js
+++ b/api/_lib/flags.js
@@ -31,6 +31,11 @@ export const KNOWN_FLAGS = {
description:
'Per-minute headless Avaturn seed cron — forges a fully-rigged Avaturn avatar and publishes it public to the gallery.',
},
+ avaturn_seed_photo: {
+ env: null,
+ description:
+ 'Diverse-humans lane for the Avaturn seeder — generates a face across a gender/age/ethnicity matrix and reconstructs it with Avaturn v2, so seeded avatars are distinct people. Requires AVATURN_API_KEY; falls back to the catalog lane if unset or a face fails.',
+ },
};
/**
diff --git a/api/admin/seeder.js b/api/admin/seeder.js
index d7fed4e1e..00b9524db 100644
--- a/api/admin/seeder.js
+++ b/api/admin/seeder.js
@@ -87,6 +87,9 @@ async function loadRecent() {
return rows.map((a) => {
const meta = a.source_meta || {};
const joints = Number(meta.skeleton_joint_count) || null;
+ const p = meta.profile || null;
+ // "East Asian woman, senior" style label for photo-lane avatars.
+ const person = p ? [p.ethnicity, p.gender, p.age].filter(Boolean).join(' · ').replace(/-/g, ' ') : null;
return {
id: a.id,
slug: a.slug,
@@ -94,6 +97,8 @@ async function loadRecent() {
glb_url: a.storage_key ? publicUrl(a.storage_key) : null,
profile_url: a.slug ? `/avatars/${a.slug}` : null,
body_type: meta.body_type || null,
+ lane: meta.lane || 'catalog',
+ person,
joints,
is_rigged: meta.is_rigged === true || (joints != null && joints > 0),
created_at: a.created_at,
diff --git a/api/cron/avaturn-seed-cron.js b/api/cron/avaturn-seed-cron.js
index 7a7fe25e7..a9f0fa787 100644
--- a/api/cron/avaturn-seed-cron.js
+++ b/api/cron/avaturn-seed-cron.js
@@ -35,7 +35,8 @@ import { exportRandomAvaturnAvatar } from '../_lib/avaturn-headless.js';
import { putObject } from '../_lib/r2.js';
import { inspectGlb } from '../_lib/glb-inspect.js';
import { isFlagEnabled } from '../_lib/flags.js';
-import { pickBodyType } from '../_lib/avaturn-seed.js';
+import { pickBodyType, pickDiversityProfile, describeProfile } from '../_lib/avaturn-seed.js';
+import { generateDiverseFace, createAvaturnSession, photoLaneConfigured } from '../_lib/avaturn-photo.js';
import { randomUUID } from 'node:crypto';
const CIRCUIT_NAME = 'avaturn-seed';
@@ -107,11 +108,36 @@ async function runOnce() {
if (!user?.id) return { skipped: true, reason: 'user insert conflict — retry next tick' };
const seed = randomUUID();
- const bodyType = pickBodyType(seed);
+ let bodyType = pickBodyType(seed);
+
+ // Photo lane: draw a person from the diversity matrix, render their face, and
+ // reconstruct it with Avaturn v2 into a distinct rigged human — so the gallery
+ // fills with genuinely different people (every gender, age, complexion), not
+ // one base face reskinned. Gated by the `avaturn_seed_photo` flag AND an
+ // AVATURN_API_KEY; any failure falls back to the public-catalog lane so a bad
+ // face or a provider blip never stalls the tick.
+ let sessionUrl;
+ let profile = null;
+ let faceModel = null;
+ const photoLane = photoLaneConfigured() && (await isFlagEnabled('avaturn_seed_photo', { fallback: false }));
+ if (photoLane) {
+ try {
+ profile = pickDiversityProfile(seed);
+ bodyType = profile.gender; // the generated face drives gender
+ const photos = await generateDiverseFace(profile);
+ faceModel = photos.model;
+ sessionUrl = await createAvaturnSession({ photos, bodyType, externalUserId: user.id });
+ } catch (err) {
+ profile = null;
+ sessionUrl = undefined;
+ console.warn('[avaturn-seed] photo lane failed, using catalog lane:', err?.message || err);
+ }
+ }
try {
- // Public demo editor — no API key, no per-account session.
- const { glbBytes, exportUrl, look } = await exportRandomAvaturnAvatar({ seed, bodyType });
+ // Photo session (distinct human) when the photo lane armed one; otherwise
+ // the public demo editor randomizes from the catalog.
+ const { glbBytes, exportUrl, look } = await exportRandomAvaturnAvatar({ seed, bodyType, sessionUrl });
const slug = toSlug(displayName);
const storageKey = `u/${user.id}/${slug}.glb`;
@@ -138,10 +164,29 @@ async function runOnce() {
is_rigged: rigInfo ? rigInfo.isRigged : true,
skeleton_joint_count: rigInfo?.skeletonJointCount ?? null,
skin_count: rigInfo?.skinCount ?? null,
+ // Which lane produced this one, and (photo lane) the person it depicts —
+ // powers diversity reporting and richer descriptions.
+ lane: profile ? 'photo' : 'catalog',
+ profile: profile
+ ? {
+ gender: profile.gender,
+ age: profile.ageKey,
+ ethnicity: profile.ethnicityKey,
+ build: profile.build,
+ }
+ : null,
+ face_model: faceModel,
look,
export_url: exportUrl,
};
+ // Photo-lane avatars describe the actual person; catalog-lane keep the
+ // generic line. Tag the lane so the gallery can filter distinct humans.
+ const description = profile
+ ? `Fully-rigged Avaturn avatar — ${describeProfile(profile)} — forged on three.ws`
+ : 'Fully-rigged Avaturn avatar — forged on three.ws';
+ const tags = profile ? ['avatar', 'avaturn', 'human', profile.gender] : ['avatar', 'avaturn'];
+
await sql`
insert into avatars
(owner_id, slug, name, description, storage_key, size_bytes,
@@ -149,19 +194,19 @@ async function runOnce() {
model_category, created_at, updated_at)
values (
${user.id}, ${slug}, ${displayName},
- ${'Fully-rigged Avaturn avatar — forged on three.ws'},
+ ${description},
${storageKey}, ${glbBytes.length}, 'model/gltf-binary',
'avaturn',
${JSON.stringify(sourceMeta)}::jsonb,
'public',
- array['avatar', 'avaturn']::text[],
+ ${tags}::text[],
'avatar', now(), now()
)
on conflict do nothing
`;
await circuitRecordSuccess(CIRCUIT_NAME);
- return { ok: true, username, user_id: user.id, slug, size_bytes: glbBytes.length, body_type: bodyType };
+ return { ok: true, username, user_id: user.id, slug, size_bytes: glbBytes.length, body_type: bodyType, lane: profile ? 'photo' : 'catalog' };
} catch (err) {
await circuitRecordFailure(CIRCUIT_NAME, { threshold: CIRCUIT_THRESHOLD, baseMs: CIRCUIT_BASE_MS });
// Roll back the synthetic account so the next tick starts clean.
diff --git a/data/changelog.json b/data/changelog.json
index ccac5108a..924fa6fdb 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,15 @@
{
"$comment": "Curated changelog entries for three.ws \u2014 the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-07-01",
+ "title": "Money Pulse & Viability now render in the brand type",
+ "summary": "Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling — the subtitle, network toggle, filter labels and live-feed rows — fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/pulse"
+ },
{
"date": "2026-07-01",
"title": "The Agent Labor Market, reimagined",
diff --git a/public/changelog.json b/public/changelog.json
index e34e88629..aeb21d47f 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-01T01:13:38.466Z",
+ "generated_at": "2026-07-01T01:26:19.462Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -97,6 +97,16 @@
"feature"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "Money Pulse & Viability now render in the brand type",
+ "summary": "Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling — the subtitle, network toggle, filter labels and live-feed rows — fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface.",
+ "link": "/pulse",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-07-01",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 062fc13d9..cb82b85db 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -78,6 +78,14 @@
<category>improvement</category>
<description>The Launch Studio got a full makeover and a big new power. New look: instant search across all 50 recipes, colour-themed category tabs, a Reward/Theme filter, savable favourites, a Surprise-me button, and keyboard shortcuts. Clicking a recipe now slides open a live preview drawer with real candidate coins — avatars, signal-strength bars, a dev-buy slider that flows into the launch, and a network toggle. The big addition is the reward planner: route a coin's creator fees to anyone, not just GitHub — a GitHub or X (Twitter) account, any Solana wallet or .sol name, back to holders as cashback, or into an auto buy-back-and-burn. The same generalisation reaches the post-launch fees panel, whose recipient box now accepts a GitHub @user, an X handle (x:@handle), a raw wallet, or an owner/repo to split contributors.</description>
</item>
+ <item>
+ <title>Money Pulse &amp; Viability now render in the brand type</title>
+ <link>https://three.ws/pulse</link>
+ <guid isPermaLink="false">2026-07-01:Money Pulse &amp; Viability now render in the brand type</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling — the subtitle, network toggle, filter labels and live-feed rows — fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface.</description>
+ </item>
<item>
<title>The Agent Labor Market, reimagined</title>
<link>https://three.ws/labor-market</link>
diff --git a/public/features.json b/public/features.json
index 0f7a8f300..d5f4733ea 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-01T01:13:38.452Z",
+ "generated_at": "2026-07-01T01:26:19.404Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/tests/avaturn-diversity.test.js b/tests/avaturn-diversity.test.js
new file mode 100644
index 000000000..e05095294
--- /dev/null
+++ b/tests/avaturn-diversity.test.js
@@ -0,0 +1,89 @@
+// Diversity engine for the photo-seeded Avaturn lane (api/_lib/avaturn-seed.js).
+// These pin the contract that makes the seeded gallery read as genuinely
+// different people: a deterministic draw across a broad gender/age/ethnicity/
+// build matrix, on-model face prompts, and a clean human-readable label.
+
+import { describe, it, expect } from 'vitest';
+import {
+ pickDiversityProfile,
+ faceGenPrompts,
+ describeProfile,
+ AGE_BANDS,
+ ETHNICITIES,
+ BUILDS,
+} from '../api/_lib/avaturn-seed.js';
+
+describe('pickDiversityProfile', () => {
+ it('is deterministic for a given seed', () => {
+ const a = pickDiversityProfile('seed-123');
+ const b = pickDiversityProfile('seed-123');
+ expect(a).toEqual(b);
+ });
+
+ it('varies across seeds', () => {
+ const keys = new Set();
+ for (let i = 0; i < 40; i++) {
+ const p = pickDiversityProfile(`s${i}`);
+ keys.add(`${p.gender}|${p.ageKey}|${p.ethnicityKey}|${p.build}`);
+ }
+ // A broad matrix should yield many distinct combinations over 40 draws.
+ expect(keys.size).toBeGreaterThan(20);
+ });
+
+ it('covers both genders, every age band and ethnicity over enough seeds', () => {
+ const genders = new Set();
+ const ages = new Set();
+ const eth = new Set();
+ for (let i = 0; i < 300; i++) {
+ const p = pickDiversityProfile(`cover-${i}`);
+ genders.add(p.gender);
+ ages.add(p.ageKey);
+ eth.add(p.ethnicityKey);
+ }
+ expect(genders).toEqual(new Set(['male', 'female']));
+ expect(ages.size).toBe(AGE_BANDS.length);
+ expect(eth.size).toBe(ETHNICITIES.length);
+ });
+
+ it('keeps skin-tone correction inside the ethnicity band', () => {
+ for (let i = 0; i < 200; i++) {
+ const p = pickDiversityProfile(`skin-${i}`);
+ const band = ETHNICITIES.find((e) => e.key === p.ethnicityKey);
+ expect(p.skinToneCorrection).toBeGreaterThanOrEqual(band.skin[0]);
+ expect(p.skinToneCorrection).toBeLessThanOrEqual(band.skin[1]);
+ }
+ });
+
+ it('draws a valid build', () => {
+ expect(BUILDS).toContain(pickDiversityProfile('b').build);
+ });
+});
+
+describe('faceGenPrompts', () => {
+ it('produces three distinct on-model views carrying the profile descriptors', () => {
+ const profile = pickDiversityProfile('face-seed');
+ const p = faceGenPrompts(profile);
+ const noun = profile.gender === 'male' ? 'man' : 'woman';
+ for (const view of [p.frontal, p.left, p.right]) {
+ expect(view).toContain(profile.ethnicityDesc);
+ expect(view).toContain(noun);
+ expect(view).toContain('plain light-grey seamless background');
+ }
+ expect(p.frontal).not.toEqual(p.left);
+ expect(p.left).not.toEqual(p.right);
+ expect(p.left).toMatch(/left/);
+ expect(p.right).toMatch(/right/);
+ });
+});
+
+describe('describeProfile', () => {
+ it('reads as a short human label without the wrinkle clause', () => {
+ const label = describeProfile({
+ gender: 'female',
+ ageDesc: 'in their late sixties, natural wrinkles and gentle age lines',
+ ethnicityDesc: 'East Asian',
+ });
+ expect(label).toBe('East Asian woman, in their late sixties');
+ expect(label).not.toMatch(/wrinkles/);
+ });
+});
diff --git a/x402-launch-media/x402-hero.png b/x402-launch-media/x402-hero.png
index 21ecb1c4d..ac7f0434e 100644
Binary files a/x402-launch-media/x402-hero.png and b/x402-launch-media/x402-hero.png differ
diff --git a/x402-launch-media/x402-loop.gif b/x402-launch-media/x402-loop.gif
index 7d688dcd3..3ffcde306 100644
Binary files a/x402-launch-media/x402-loop.gif and b/x402-launch-media/x402-loop.gif differ
diff --git a/x402-launch-media/x402-loop.mp4 b/x402-launch-media/x402-loop.mp4
index 8da1770db..c63fb6b81 100644
Binary files a/x402-launch-media/x402-loop.mp4 and b/x402-launch-media/x402-loop.mp4 differ
diff --git a/x402-launch-media/x402-pay-and-call.png b/x402-launch-media/x402-pay-and-call.png
index 27700b84c..968e0f8ed 100644
Binary files a/x402-launch-media/x402-pay-and-call.png and b/x402-launch-media/x402-pay-and-call.png differ