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.

chore: centralize 3ws vanity mark in launch panel, add unbranded_mint error copy, prune shipped task files

nirholas4f1f5f38b6b7
diff --git a/pages/create.html b/pages/create.html
index 6a5dfa2f1..441a1ea01 100644
--- a/pages/create.html
+++ b/pages/create.html
@@ -124,43 +124,131 @@
padding: 56px 24px 80px;
}
- .picker-heading {
+ /* ── Hero heading ─────────────────────────────────────────────────── */
+ .create-hero {
text-align: center;
+ max-width: 640px;
+ margin: 0 auto 36px;
+ }
+ .create-title {
+ font-size: clamp(28px, 5vw, 40px);
+ font-weight: 600;
margin: 0 0 12px;
+ letter-spacing: -0.025em;
+ line-height: 1.08;
+ background: linear-gradient(180deg, #ffffff 0%, #b8b8b8 100%);
+ -webkit-background-clip: text;
+ background-clip: text;
+ -webkit-text-fill-color: transparent;
+ }
+ .create-sub {
+ color: var(--muted);
+ font-size: 15px;
+ line-height: 1.55;
+ margin: 0 0 18px;
}
- .picker-heading h1 {
- font-size: 22px;
- font-weight: 500;
+ .picker-reassure {
+ display: flex;
+ justify-content: center;
+ }
+
+ .create-layout {
+ max-width: 880px;
+ margin: 0 auto;
+ }
+
+ /* ── "Your avatars" strip (returning users) ───────────────────────── */
+ .your-avatars {
+ margin: 0 0 28px;
+ padding: 18px 20px;
+ border: 1px solid var(--border);
+ border-radius: 16px;
+ background: rgba(255, 255, 255, 0.015);
+ animation: ya-in 0.4s ease both;
+ }
+ @keyframes ya-in {
+ from { opacity: 0; transform: translateY(6px); }
+ to { opacity: 1; transform: translateY(0); }
+ }
+ .your-avatars-head {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 12px;
+ margin-bottom: 14px;
+ }
+ .your-avatars-title {
+ font-size: 13px;
+ font-weight: 600;
margin: 0;
+ color: var(--text);
letter-spacing: -0.01em;
}
- .picker-sub {
- text-align: center;
+ .your-avatars-manage {
+ font-size: 12px;
color: var(--muted);
- font-size: 13px;
- margin: 0 0 16px;
+ text-decoration: none;
+ transition: color 0.15s;
+ white-space: nowrap;
}
- .picker-reassure {
+ .your-avatars-manage:hover { color: var(--text); }
+ .your-avatars-row {
display: flex;
- justify-content: center;
- margin: 0 0 44px;
+ gap: 12px;
+ overflow-x: auto;
+ padding-bottom: 4px;
+ scrollbar-width: thin;
}
-
- /* ── card grid ────────────────────────────────────────────────────── */
- .card-grid {
+ .ya-thumb {
+ flex: 0 0 auto;
+ width: 64px;
+ cursor: pointer;
+ border: 0;
+ background: none;
+ padding: 0;
+ font: inherit;
+ color: var(--muted);
+ text-align: center;
+ transition: color 0.15s;
+ }
+ .ya-thumb-img {
+ width: 64px;
+ height: 64px;
+ border-radius: 12px;
+ border: 1px solid var(--border);
+ background:
+ radial-gradient(circle at 50% 30%, rgba(255,255,255,0.05) 0, transparent 65%),
+ rgba(255, 255, 255, 0.02);
+ object-fit: cover;
display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 20px;
- max-width: 720px;
- margin: 0 auto;
+ place-items: center;
+ overflow: hidden;
+ transition: border-color 0.15s, transform 0.15s;
+ }
+ .ya-thumb-img svg { width: 26px; height: 26px; opacity: 0.5; }
+ .ya-thumb-label {
+ display: block;
+ margin-top: 6px;
+ font-size: 10.5px;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ }
+ .ya-thumb:hover { color: var(--text); }
+ .ya-thumb:hover .ya-thumb-img,
+ .ya-thumb:focus-visible .ya-thumb-img {
+ border-color: rgba(255, 255, 255, 0.4);
+ transform: translateY(-2px);
}
+ .ya-thumb:focus-visible { outline: none; }
+ /* ── Cards (shared) ───────────────────────────────────────────────── */
.create-card {
position: relative;
display: flex;
flex-direction: column;
- padding: 24px 24px 22px;
- border-radius: 18px;
+ padding: 22px;
+ border-radius: 16px;
background: var(--panel);
border: 1.5px solid var(--border);
cursor: pointer;
@@ -178,28 +266,63 @@
}
.create-card:hover {
transform: translateY(-2px);
- border-color: #2c2d3d;
+ border-color: rgba(255, 255, 255, 0.28);
box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}
+ .create-card[aria-disabled='true'] {
+ cursor: not-allowed;
+ }
+ .create-card[aria-disabled='true']:hover {
+ transform: none;
+ border-color: var(--border);
+ box-shadow: none;
+ }
- .create-card.is-recommended {
- border-color: rgba(255, 255, 255, 0.15);
+ /* ── Hero card (recommended) ──────────────────────────────────────── */
+ .hero-card {
+ margin: 0 0 20px;
+ padding: 28px;
+ border-color: rgba(255, 255, 255, 0.16);
background:
radial-gradient(
- 420px 240px at 50% -20px,
- rgba(255, 255, 255, 0.04) 0,
+ 520px 280px at 80% -40px,
+ rgba(255, 255, 255, 0.05) 0,
transparent 70%
),
var(--panel);
}
- .create-card.is-recommended:hover {
- border-color: rgba(255, 255, 255, 0.3);
+ .hero-card:hover { border-color: rgba(255, 255, 255, 0.34); }
+ .hero-card-body {
+ display: grid;
+ grid-template-columns: 1fr 280px;
+ gap: 28px;
+ align-items: center;
+ }
+ .hero-card-text {
+ display: flex;
+ flex-direction: column;
+ align-items: flex-start;
+ }
+ .hero-card-preview {
+ width: 100%;
+ height: 240px;
+ border-radius: 14px;
+ border: 1px solid var(--border);
+ background:
+ radial-gradient(circle at 50% 30%, rgba(255,255,255,0.05) 0, transparent 60%),
+ rgba(255, 255, 255, 0.02);
+ overflow: hidden;
+ }
+ .hero-card-preview model-viewer {
+ width: 100%;
+ height: 100%;
+ --poster-color: transparent;
}
.recommended-badge {
position: absolute;
- top: 14px;
- right: 14px;
+ top: 16px;
+ right: 16px;
padding: 3px 9px;
border-radius: 20px;
background: rgba(255, 255, 255, 0.08);
@@ -211,84 +334,61 @@
text-transform: uppercase;
}
- .card-preview {
- width: 100%;
- height: 220px;
- border-radius: 12px;
- background:
- radial-gradient(
- circle at 50% 30%,
- rgba(255, 255, 255, 0.04) 0,
- transparent 60%
- ),
- rgba(255, 255, 255, 0.02);
- border: 1px solid var(--border);
- margin-bottom: 18px;
- overflow: hidden;
- flex: 0 0 auto;
- }
- .card-preview model-viewer {
- width: 100%;
- height: 100%;
- --poster-color: transparent;
- }
- .card-preview--icon {
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .card-preview--icon svg {
- width: 56px;
- height: 56px;
- color: rgba(255, 255, 255, 0.5);
+ /* ── Secondary tiles ──────────────────────────────────────────────── */
+ .secondary-grid {
+ display: grid;
+ grid-template-columns: repeat(2, 1fr);
+ gap: 16px;
}
+
.card-subtitle code {
- font-size: 11px;
- opacity: 0.7;
+ font-size: 11.5px;
+ opacity: 0.75;
+ background: rgba(255, 255, 255, 0.06);
+ padding: 1px 5px;
+ border-radius: 4px;
}
.card-icon {
- width: 48px;
- height: 48px;
- border-radius: 12px;
+ width: 40px;
+ height: 40px;
+ border-radius: 11px;
background: rgba(255, 255, 255, 0.04);
border: 1px solid var(--border);
display: grid;
place-items: center;
- margin-bottom: 20px;
flex: 0 0 auto;
color: #cfd2e0;
+ transition: background 0.18s, border-color 0.18s;
+ }
+ .create-card:hover .card-icon {
+ background: rgba(255, 255, 255, 0.08);
+ border-color: rgba(255, 255, 255, 0.2);
}
.card-icon svg {
- width: 24px;
- height: 24px;
+ width: 20px;
+ height: 20px;
}
.card-icon-row {
display: flex;
align-items: center;
- gap: 14px;
- margin-bottom: 16px;
- }
- .card-icon-row .card-icon {
- margin-bottom: 0;
- width: 40px;
- height: 40px;
- }
- .card-icon-row .card-icon svg {
- width: 20px;
- height: 20px;
+ gap: 13px;
+ margin-bottom: 14px;
}
.card-icon-row .card-title {
margin: 0;
}
.card-title {
- font-size: 17px;
+ font-size: 16px;
font-weight: 600;
- margin: 0 0 8px;
+ margin: 0;
letter-spacing: -0.01em;
line-height: 1.25;
}
+ .hero-card .card-title {
+ font-size: 22px;
+ }
.card-subtitle {
font-size: 13px;
color: var(--muted);
@@ -296,51 +396,94 @@
line-height: 1.55;
flex: 1;
}
+ .hero-card .card-subtitle {
+ font-size: 14px;
+ max-width: 42ch;
+ }
+ /* ── Meta chips ───────────────────────────────────────────────────── */
+ .card-meta {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 6px;
+ margin: 14px 0 0;
+ }
+ .chip {
+ font-size: 10.5px;
+ font-weight: 500;
+ letter-spacing: 0.01em;
+ padding: 3px 8px;
+ border-radius: 6px;
+ color: var(--muted);
+ background: rgba(255, 255, 255, 0.04);
+ border: 1px solid var(--border);
+ white-space: nowrap;
+ }
+ .chip-ok {
+ color: #9be8b8;
+ border-color: rgba(120, 220, 160, 0.25);
+ background: rgba(120, 220, 160, 0.07);
+ }
+ .chip-auth {
+ color: #c9c4ff;
+ border-color: rgba(160, 150, 255, 0.25);
+ background: rgba(160, 150, 255, 0.07);
+ }
+
+ /* ── CTAs ─────────────────────────────────────────────────────────── */
.card-cta {
display: inline-flex;
align-items: center;
gap: 6px;
- margin-top: 22px;
- padding: 9px 16px;
+ margin-top: 20px;
+ padding: 10px 18px;
border-radius: 10px;
- background: rgba(255, 255, 255, 0.06);
- border: 1px solid var(--border);
- color: var(--text);
+ background: var(--accent);
+ border: 1px solid transparent;
+ color: var(--accent-ink);
font: inherit;
font-size: 13px;
- font-weight: 500;
+ font-weight: 600;
cursor: pointer;
- transition:
- background 0.15s,
- border-color 0.15s;
+ transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
align-self: flex-start;
}
- .create-card:hover .card-cta {
- background: var(--accent);
- border-color: transparent;
- color: var(--accent-ink);
+ .hero-card:hover .card-cta {
+ box-shadow: 0 8px 22px rgba(255, 255, 255, 0.14);
+ transform: translateY(-1px);
+ }
+ .card-cta svg { transition: transform 0.18s; }
+ .create-card:hover .card-cta svg { transform: translateX(3px); }
+
+ /* secondary tiles use a quieter ghost CTA */
+ .card-cta--ghost {
+ margin-top: 16px;
+ background: rgba(255, 255, 255, 0.06);
+ border-color: var(--border);
+ color: var(--text);
+ font-weight: 500;
}
- .create-card.is-recommended .card-cta {
+ .create-card:hover .card-cta--ghost {
background: var(--accent);
border-color: transparent;
color: var(--accent-ink);
}
- .card-tooltip {
- margin-top: 10px;
- font-size: 11.5px;
+ /* ── Footnote (model sources) ─────────────────────────────────────── */
+ .create-footnote {
+ margin: 24px auto 0;
+ max-width: 880px;
+ font-size: 12px;
color: var(--muted);
- line-height: 1.5;
+ line-height: 1.6;
+ text-align: center;
}
- .card-tooltip a {
- color: inherit;
+ .create-footnote a {
+ color: var(--text);
text-decoration: underline;
text-underline-offset: 2px;
}
- .card-tooltip a:hover {
- color: var(--text);
- }
+ .create-footnote a:hover { color: #fff; }
/* ── Status toast ─────────────────────────────────────────────────── */
.status-toast {
@@ -374,16 +517,21 @@
color: var(--accent);
}
+ @media (max-width: 760px) {
+ .hero-card-body {
+ grid-template-columns: 1fr;
+ gap: 20px;
+ }
+ .hero-card-text { order: 2; }
+ .hero-card-preview { order: 1; height: 200px; }
+ .hero-card .card-subtitle { max-width: none; }
+ }
@media (max-width: 700px) {
main.stage {
padding: 32px 16px 60px;
}
- .card-grid {
+ .secondary-grid {
grid-template-columns: 1fr;
- max-width: 420px;
- }
- .card-preview {
- height: 180px;
}
}
diff --git a/public/features.json b/public/features.json
index 9722c26f9..4686f27b1 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-05T04:58:22.475Z",
+ "generated_at": "2026-06-05T05:35:08.561Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/studio/launch-panel.js b/public/studio/launch-panel.js
index d220078a4..1fea53404 100644
--- a/public/studio/launch-panel.js
+++ b/public/studio/launch-panel.js
@@ -64,6 +64,10 @@ function fileToDataUrl(file) {
function friendlyError(msg) {
const m = String(msg || '');
if (/user rejected|rejected the request/i.test(m)) return 'Wallet signing cancelled.';
+ // Defensive: our client always grinds the 3ws mark before prep, so the server
+ // should never reject for an unbranded mint — but if it does, keep the copy
+ // consistent with the other launch surfaces and point at a re-grind retry.
+ if (/unbranded_mint/i.test(m)) return 'Could not stamp the three.ws brand mark — retry to re-grind.';
if (/0x1\b/.test(m) || /insufficient.*lamports|insufficient.*sol/i.test(m))
return 'Not enough SOL — fund your wallet and try again.';
if (/wallet.*not.*found|no.*wallet/i.test(m))
@@ -1053,7 +1057,9 @@ export function mountLaunchPanel(container, { getAvatar, getUser, getPreviewView
s.phase = 'stamping'; s.phaseLabel = 'Stamping the three.ws mark 3ws…'; render();
const { grindVanity } = await import('../../src/solana/vanity/grinder.js');
- const THREE_WS_VANITY = { prefix: '3ws', suffix: '', ignoreCase: true };
+ // Single source of truth for the `3ws` mark + its grind config — never
+ // hardcode the mark literal here (see src/solana/vanity/brand.js).
+ const { THREE_WS_VANITY } = await import('../../src/solana/vanity/brand.js');
let ground;
try {
diff --git a/tasks/CLEANUP-PLAN.md b/tasks/CLEANUP-PLAN.md
new file mode 100644
index 000000000..dc42d8d51
--- /dev/null
+++ b/tasks/CLEANUP-PLAN.md
@@ -0,0 +1,104 @@
+# Task cleanup — remove `.md` files for work that is already done
+
+**Goal:** delete every task `.md` whose feature is genuinely shipped and wired in the
+codebase, leave the rest, and keep a paper trail of every decision.
+
+**Why this needs verification, not a flag:** the task files carry no real status
+field. The word "DONE" in them is just the `Definition of done` template heading.
+A task is "complete" **only if its `Definition of done` is actually met in the
+current code** — verified by reading the code, not by trusting the file.
+
+---
+
+## The rule for "complete" (apply per task)
+
+A task `.md` may be deleted **only when all of these hold**:
+
+1. Every item in the task's `Definition of done` / `What to build` section is
+ present in the codebase (the named files exist and contain the described
+ behavior — routes wired, endpoints real, UI reachable).
+2. No `TODO`, stub, mock, or placeholder remains in the code that implements it
+ (consistent with CLAUDE.md hard rules).
+3. If the task names anchor files, those files exist and match the described
+ intent. Grep for the key symbols/endpoints/routes the task specifies.
+
+If **any** item is unmet, or you are **not sure**, **do not delete** — leave the
+file and record it as `KEEP` with the specific gap. When uncertain, keep.
+
+Do **not** delete: `README.md`, `00-overview.md`, `00-START-HERE.md`,
+`*-REPORT*.md`, `ORPHAN-REPORT.md`, or this plan. Those are indexes/reports —
+update them instead (see Bookkeeping).
+
+---
+
+## How an agent processes one task file
+
+1. Read the task `.md` end to end. Extract its anchor files, endpoints, routes,
+ and `Definition of done`.
+2. Verify each claim against the tree (Read the anchor files; `grep` for the
+ named functions/routes/endpoints; check the UI entry point is reachable).
+3. Decide `DELETE` or `KEEP`.
+4. If `DELETE`: `git rm <file>` (it's tracked) and update the group index if the
+ file is listed there.
+5. Append one row to the manifest (below) with the evidence for the decision.
+6. **Never** run the dev server or modify product code. This is a docs-cleanup
+ pass only — read + verify + delete the `.md`.
+
+---
+
+## Manifest (audit trail) — every agent appends here
+
+Append rows to `tasks/CLEANUP-MANIFEST.md` (create it if absent), one per task:
+
+```
+| task file | decision | evidence (file:symbol that proves done, or the gap) |
+```
+
+This makes the whole sweep reviewable before anything is committed.
+
+---
+
+## Agent assignment (parallelizable)
+
+One agent per group. Split the large groups into sub-batches so each agent owns
+≈15–30 files:
+
+- `tasks/monetization-feature/` (161) → **6 agents**, alphabetical by filename
+ prefix: `01–0x`, etc. Note: this group has many near-duplicate filenames
+ (e.g. several `02-*create-skill-pricing-table.md`) — dedup decisions explicitly.
+- `tasks/walk/` (51) → **2 agents**
+- `tasks/site-overhaul/` (A–G, 51) → **1 agent per subdir (7 agents)**
+- `tasks/wow-sprint/` (22) → 1 agent
+- `tasks/agent-monetization/` (20) → 1 agent
+- `tasks/` root `task-01..task-10` (11) → 1 agent
+- `tasks/pump-dashboard-real-apis/` (13) → 1 agent
+- `tasks/skills-marketplace/` (8) → 1 agent
+- `tasks/wallet-transactions/` (7) → 1 agent
+- `tasks/agent-creation/`, `tasks/devops/`, `tasks/platform-ux/` (1 each) → 1 agent
+
+Agents are independent and can run concurrently; each only deletes within its
+assigned subtree and appends to the shared manifest.
+
+---
+
+## Bookkeeping after the sweep
+
+1. **Indexes:** for every group where files were deleted, edit its index
+ (`README.md` / `00-overview.md` / `00-START-HERE.md`) to remove the deleted
+ entries. If an entire group is emptied, delete its index too and drop the
+ group from `tasks/README.md`.
+2. **Already staged:** `tasks/vanity-3ws/` is already `git rm`-ed (mint-mark
+ brand is shipped and server-enforced) — keep it staged; it's the precedent.
+3. **Review:** open `tasks/CLEANUP-MANIFEST.md` and `git diff --staged --stat`
+ before committing. Every `DELETE` must have evidence.
+4. **Commit:** one commit, e.g. `chore: remove task specs for shipped work`.
+ Do not push without explicit user approval (CLAUDE.md: push to BOTH remotes).
+
+---
+
+## Guardrails
+
+- Verify before deleting — the swarm churns this tree; a missing symbol may mean
+ "moved", not "not done". Grep broadly before concluding KEEP or DELETE.
+- This is reversible via git, but the manifest is the safety net — fill it in.
+- No product-code edits, no dev server, no pushing.
diff --git a/tasks/vanity-3ws/00-brand-constant-and-validator.md b/tasks/vanity-3ws/00-brand-constant-and-validator.md
deleted file mode 100644
index e9eafe22d..000000000
--- a/tasks/vanity-3ws/00-brand-constant-and-validator.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# Task 00 — The `3ws` brand constant + validator (single source of truth)
-
-## Goal
-
-Create one module that owns the `3ws` mint mark: its grind config and the functions that
-test/assert an address carries it. Every other task imports from here. No other file may
-hardcode the string `'3ws'` or re-implement the check.
-
-## Context
-
-- The vanity grinders already accept `{ prefix, suffix, ignoreCase }`:
- - Client: `src/solana/vanity/grinder.js` → `grindVanity(opts)`
- - Server: `src/solana/vanity/grinder-node.js` → `grindVanityNode(opts)`, plus `expectedAttemptsFor`, `GrindExhaustedError`, `MAX_SERVER_PATTERN_LENGTH = 3`.
-- Base58 validation lives in `src/solana/vanity/validation.js` (`validatePattern`, `BASE58_ALPHABET`). `3ws` passes (`3`,`w`,`s` are all valid, none confusable).
-- `CLAUDE.md`: never reference any coin but `$THREE`. This module references *no* coin — it is pure address plumbing — so it is compliant by construction. Keep it that way.
-
-## New file — `src/solana/vanity/brand.js`
-
-Export, with thorough JSDoc:
-
-```js
-/** The three.ws on-chain mint mark. Every branded launch's mint address starts with this. */
-export const THREE_WS_MARK = '3ws';
-
-/**
- * Grind config for the brand mark. Spread into grindVanity / grindVanityNode.
- * Prefix (leads the truncated address) + case-insensitive (keeps the grind sub-second).
- */
-export const THREE_WS_VANITY = Object.freeze({
- prefix: THREE_WS_MARK,
- suffix: '',
- ignoreCase: true,
-});
-
-/** True when a Base58 mint address carries the three.ws mark (case-insensitive prefix). */
-export function hasThreeWsMark(address) {
- if (typeof address !== 'string' || address.length < THREE_WS_MARK.length) return false;
- return address.slice(0, THREE_WS_MARK.length).toLowerCase() === THREE_WS_MARK.toLowerCase();
-}
-
-/**
- * Throw a typed error if `address` lacks the mark. Use at trust boundaries
- * (API handlers) to fail-closed on an unbranded supplied mint.
- * @throws {UnbrandedMintError}
- */
-export function assertThreeWsMark(address) {
- if (!hasThreeWsMark(address)) throw new UnbrandedMintError(address);
-}
-
-export class UnbrandedMintError extends Error {
- constructor(address) {
- super(`mint ${String(address).slice(0, 12)}… does not carry the three.ws "${THREE_WS_MARK}" mark`);
- this.name = 'UnbrandedMintError';
- this.code = 'unbranded_mint';
- this.address = address;
- }
-}
-```
-
-Design notes to honor:
-- **No coin references.** This is address plumbing only.
-- **Frozen config** so a caller can't mutate the shared object.
-- `hasThreeWsMark` must be **isomorphic** (no Node- or browser-only APIs) — it is imported by both `api/` handlers and browser bundles.
-- Keep the position (`prefix`) and case behavior expressed *only* here. If we ever move the
- mark to a suffix or make it case-sensitive, this is the one edit.
-
-## Constraints
-
-- ≤ 60 lines. Pure, dependency-free (may import nothing, or only from `./validation.js` if
- you choose to assert `validatePattern(THREE_WS_MARK).valid` in a dev assertion — optional).
-- Do not import `@solana/web3.js` here (keep it tree-shakeable for the browser).
-
-## Success criteria
-
-- `hasThreeWsMark('3wsAbc…')` → `true`; `hasThreeWsMark('3WSabc…')` → `true`;
- `hasThreeWsMark('Abc3ws…')` → `false`; `hasThreeWsMark('')`/`null`/`undefined` → `false`.
-- `assertThreeWsMark` throws `UnbrandedMintError` (with `.code === 'unbranded_mint'`) on a
- bad address and returns nothing on a good one.
-- A repo-wide grep finds the literal `'3ws'` **only** in `brand.js` after all tasks land
- (every other file imports `THREE_WS_MARK` / `THREE_WS_VANITY`).
-
-## Verification
-
-```bash
-node -e "import('./src/solana/vanity/brand.js').then(m=>{
- console.assert(m.hasThreeWsMark('3wsXyzAbc')===true);
- console.assert(m.hasThreeWsMark('3WSxyzAbc')===true);
- console.assert(m.hasThreeWsMark('zzz3wsAbc')===false);
- try { m.assertThreeWsMark('nope'); console.error('FAIL: did not throw'); }
- catch(e){ console.assert(e.code==='unbranded_mint'); }
- console.log('brand.js OK');
-})"
-```
diff --git a/tasks/vanity-3ws/01-server-enforce-launch-prep.md b/tasks/vanity-3ws/01-server-enforce-launch-prep.md
deleted file mode 100644
index 3a2503f36..000000000
--- a/tasks/vanity-3ws/01-server-enforce-launch-prep.md
+++ /dev/null
@@ -1,94 +0,0 @@
-# Task 01 — Enforce the `3ws` mark in `launch-prep` (user-signed launches)
-
-## Goal
-
-`handleLaunchPrep` in `api/pump/[action].js` must guarantee the mark on every branded
-launch, two ways:
-
-1. **No mint supplied** → the server grinds a `3ws` mint instead of `Keypair.generate()`.
-2. **Client supplies `mint_address`** → the server validates it carries the mark and
- **rejects** it (400) if not.
-
-This makes the brand a server invariant: a hand-rolled `curl` to the API cannot ship an
-unbranded three.ws coin.
-
-## Context
-
-- File: `api/pump/[action].js`. `handleLaunchPrep` starts at the `async function handleLaunchPrep(req, res)` definition (~line 902). The mint section reads:
-
- ```js
- // Mint pubkey: client-supplied (vanity-ground) or freshly generated.
- let mintKeypair = null;
- let mint;
- if (body.mint_address) {
- const supplied = solanaPubkey(body.mint_address);
- if (!supplied) return error(res, 400, 'validation_error', 'invalid mint_address');
- mint = supplied;
- } else {
- mintKeypair = Keypair.generate();
- mint = mintKeypair.publicKey;
- }
- ```
-
-- `launchPrepSchema` has `coin_type: z.enum(['regular', 'mayhem', 'agent']).default('agent')` and `mint_address: z.string().min(32).max(44).optional()`.
-- Server grinder: `import { grindVanityNode } from '../../src/solana/vanity/grinder-node.js'` → returns `{ publicKey, secretKey, attempts, durationMs }` (Uint8Array secret key, web3-compatible). `MAX_SERVER_PATTERN_LENGTH = 3` already accommodates `3ws`.
-- Brand module from task 00: `import { THREE_WS_VANITY, hasThreeWsMark } from '../../src/solana/vanity/brand.js'`.
-- The downstream code already handles both cases: it sets `mint_secret_key_b64` from `mintKeypair` when the server generated the key, and sets `client_supplied_mint: !mintKeypair`. **Preserve that contract** — when the server grinds, it owns the secret and returns it for co-sign exactly like the old `Keypair.generate()` path did.
-- The kill-switch flag (task 07): read `env.THREE_WS_MARK_ENFORCE` (default ON). When OFF, skip enforcement/grinding and keep the legacy `Keypair.generate()` behavior so we can disable instantly without a redeploy of logic.
-
-## Changes
-
-Replace the mint section with mark-aware logic:
-
-```js
-// Mint pubkey: client-supplied (vanity-ground) or server-ground with the three.ws mark.
-const enforceMark = env.THREE_WS_MARK_ENFORCE !== '0' && env.THREE_WS_MARK_ENFORCE !== 'false';
-let mintKeypair = null;
-let mint;
-
-if (body.mint_address) {
- const supplied = solanaPubkey(body.mint_address);
- if (!supplied) return error(res, 400, 'validation_error', 'invalid mint_address');
- if (enforceMark && !hasThreeWsMark(supplied.toBase58())) {
- return error(res, 400, 'unbranded_mint',
- 'three.ws launches must use a mint address carrying the "3ws" mark — grind one client-side or omit mint_address to let the server stamp it');
- }
- mint = supplied;
-} else if (enforceMark) {
- const ground = await grindVanityNode({ ...THREE_WS_VANITY }); // ~49k attempts, sub-second
- mintKeypair = Keypair.fromSecretKey(ground.secretKey);
- mint = mintKeypair.publicKey;
-} else {
- mintKeypair = Keypair.generate();
- mint = mintKeypair.publicKey;
-}
-```
-
-- Keep `Keypair.fromSecretKey` import path consistent (`Keypair` is already imported at the top of the file).
-- Leave `mint_secret_key_b64`, `client_supplied_mint`, and the `instructions` string exactly as they are — they already branch on `mintKeypair` truthiness and remain correct.
-- Wrap the server grind in a try/catch: on `GrindExhaustedError` (effectively impossible for a 3-char case-insensitive prefix, but be a professional), return `error(res, 503, 'mark_grind_failed', 'could not stamp the three.ws mark — retry')`. Do **not** silently fall back to an unbranded mint when `enforceMark` is on (fail-closed).
-
-## Constraints
-
-- Do not change the schema's `mint_address` shape or any other field.
-- Do not touch the generic x402 launcher path (different handler / arbitrary-mint plumbing) — this task is scoped to `handleLaunchPrep` only.
-- The added imports go with the existing import block at the top of the file; do not import inside the handler.
-- Net new code in the handler ≤ ~25 lines.
-
-## Success criteria
-
-- `POST /api/pump/launch-prep` with **no** `mint_address` returns a `mint` that satisfies `hasThreeWsMark(mint)`.
-- `POST` with a `mint_address` lacking the mark returns `400 unbranded_mint`.
-- `POST` with a correctly-marked `mint_address` succeeds and echoes that mint.
-- With `THREE_WS_MARK_ENFORCE=0`, behavior is byte-for-byte the legacy flow.
-- Existing launch-confirm flow still co-signs correctly (the server-ground secret is returned just like before).
-
-## Verification
-
-- Unit/integration in task 06 covers the three branches. Manually:
- ```bash
- # against a dev server with a valid session cookie
- curl -s -X POST localhost:3000/api/pump/launch-prep -H 'content-type: application/json' \
- --cookie "$SESSION" -d '{"agent_id":"…","wallet_address":"…","name":"T","symbol":"T","uri":"https://x/y.json"}' \
- | node -e "process.stdin.once('data',d=>{const j=JSON.parse(d);console.log(j.mint, /^3ws/i.test(j.mint))})"
- ```
diff --git a/tasks/vanity-3ws/02-server-enforce-launch-agent.md b/tasks/vanity-3ws/02-server-enforce-launch-agent.md
deleted file mode 100644
index 7d3a3fc91..000000000
--- a/tasks/vanity-3ws/02-server-enforce-launch-agent.md
+++ /dev/null
@@ -1,93 +0,0 @@
-# Task 02 — Enforce the `3ws` mark in `launch-agent` (server-signed / autonomous launches)
-
-## Goal
-
-The autonomous launch path — where the **agent custodial wallet signs server-side** — must
-also stamp the `3ws` mark. This is the path used by /studio's "launch with agent wallet"
-and by autonomous agent skills, so it cannot be left unbranded.
-
-## Context
-
-- File: `api/pump/[action].js`, `async function handleLaunchAgent(req, res)` (~line 1257).
-- Current mint logic:
-
- ```js
- // Mint keypair: client-supplied (vanity) or server-generated.
- let mintKeypair;
- if (body.mint_address && body.mint_secret_key_b64) {
- try {
- mintKeypair = Keypair.fromSecretKey(
- Uint8Array.from(Buffer.from(body.mint_secret_key_b64, 'base64')),
- );
- } catch {
- return error(res, 400, 'validation_error', 'mint_secret_key_b64 did not parse');
- }
- if (mintKeypair.publicKey.toBase58() !== body.mint_address) {
- return error(res, 400, 'validation_error', 'mint_address does not match secret key');
- }
- } else {
- mintKeypair = Keypair.generate();
- }
- const mint = mintKeypair.publicKey;
- ```
-
-- `launchAgentSchema` requires `mint_secret_key_b64` whenever `mint_address` is supplied (it `.refine()`s on that), because the server signs and therefore needs the mint secret.
-- Brand + grinder imports are the same as task 01 (`THREE_WS_VANITY`, `hasThreeWsMark`, `grindVanityNode`, `GrindExhaustedError`). They will already be imported once task 01 lands — reuse, don't duplicate.
-- Kill-switch: same `env.THREE_WS_MARK_ENFORCE` flag.
-
-## Changes
-
-Make both branches mark-aware:
-
-```js
-const enforceMark = env.THREE_WS_MARK_ENFORCE !== '0' && env.THREE_WS_MARK_ENFORCE !== 'false';
-let mintKeypair;
-if (body.mint_address && body.mint_secret_key_b64) {
- try {
- mintKeypair = Keypair.fromSecretKey(
- Uint8Array.from(Buffer.from(body.mint_secret_key_b64, 'base64')),
- );
- } catch {
- return error(res, 400, 'validation_error', 'mint_secret_key_b64 did not parse');
- }
- if (mintKeypair.publicKey.toBase58() !== body.mint_address) {
- return error(res, 400, 'validation_error', 'mint_address does not match secret key');
- }
- if (enforceMark && !hasThreeWsMark(mintKeypair.publicKey.toBase58())) {
- return error(res, 400, 'unbranded_mint',
- 'three.ws launches must use a mint carrying the "3ws" mark — omit mint_address to let the server stamp it');
- }
-} else if (enforceMark) {
- try {
- const ground = await grindVanityNode({ ...THREE_WS_VANITY });
- mintKeypair = Keypair.fromSecretKey(ground.secretKey);
- } catch (err) {
- if (err instanceof GrindExhaustedError) {
- return error(res, 503, 'mark_grind_failed', 'could not stamp the three.ws mark — retry');
- }
- throw err;
- }
-} else {
- mintKeypair = Keypair.generate();
-}
-const mint = mintKeypair.publicKey;
-```
-
-- The rest of `handleLaunchAgent` (balance pre-flight, conflict check on `pump_agent_mints`, `vtx.sign([agentKeypair, mintKeypair])`) is unchanged — it already signs with `mintKeypair`, so a server-ground key flows through with zero further edits.
-
-## Constraints
-
-- Do not loosen the `mint_secret_key_b64`-required-with-`mint_address` refine — the server still needs the secret to sign.
-- Fail-closed when enforcement is on (no silent unbranded fallback).
-- Reuse the imports added in task 01; if task 01 hasn't landed yet, add them to the shared top-of-file import block (don't import inside the handler).
-
-## Success criteria
-
-- A server-signed launch with no supplied mint produces a `3ws…` mint and signs/submits successfully.
-- A supplied-but-unmarked `{mint_address, mint_secret_key_b64}` pair is rejected `400 unbranded_mint`.
-- The conflict check, balance pre-flight, and `pump_agent_mints` insert all still operate on the (now marked) mint.
-- `THREE_WS_MARK_ENFORCE=0` restores legacy behavior exactly.
-
-## Verification
-
-- Covered by task 06 integration tests (mock the agent keypair load + connection). For a live smoke, `scripts/pumpfun-lifecycle-smoke.js` exercises the autonomous path against devnet — assert the resulting mint matches `/^3ws/i`.
diff --git a/tasks/vanity-3ws/03-client-launch-surfaces-default.md b/tasks/vanity-3ws/03-client-launch-surfaces-default.md
deleted file mode 100644
index 8072ffcd8..000000000
--- a/tasks/vanity-3ws/03-client-launch-surfaces-default.md
+++ /dev/null
@@ -1,79 +0,0 @@
-# Task 03 — Every client launch surface defaults to the `3ws` mark
-
-## Goal
-
-Make `3ws` the default the user *sees* and *grinds*, on every front-end launch surface.
-The server (tasks 01/02) guarantees the mark regardless; the client's job is to grind it
-locally (so the mint secret never leaves the browser for user-signed launches) and to
-present the mark as a feature, not a buried option.
-
-Remove the legacy "vanity is an opt-in box, default suffix `pump`" framing. The mark is the
-default; advanced users may still *append* their own extra characters, but `3ws` always leads.
-
-## Surfaces to update
-
-Each of these posts to `launch-prep` / `launch-agent` or uses `launchWithVanity`:
-
-1. **`src/agent-home-pumpfun.js`** — has an explicit vanity toggle. Today:
- ```js
- vanityEnabled: false,
- vanitySuffix: 'pump',
- ```
- - Remove the `pump` default and the "off by default" framing.
- - Always grind the brand: import `{ THREE_WS_VANITY, THREE_WS_MARK }` from `src/solana/vanity/brand.js` and pass `{ prefix: THREE_WS_MARK, ignoreCase: true }` to `grindVanity` / `launchWithVanity`.
- - The toggle, if kept, becomes "add extra characters after the `3ws` mark" — never a way to *disable* the mark. Default state: mark on, no extra chars.
- - Update the label/title copy: it currently says "ending in your suffix"; the mark is a **prefix**. Copy: "Every three.ws coin is stamped `3ws…` on-chain."
-
-2. **`src/pump/pump-modals.js`** — launch modal(s). Wire the same default grind + progress.
-
-3. **`src/agent-skills-pumpfun.js`** — programmatic/skill launch. Default `grindVanity(THREE_WS_VANITY)` before posting, unless the caller explicitly passes a pre-ground marked mint.
-
-4. **`public/studio/launch-panel.js`** — the /studio launcher (state object near line 423–431 holds `mint/resolvedAgentId`). Grind `3ws` before the prep call; for the agent-signed path it posts to `launch-agent` (server stamps), for the owner-signed path grind client-side via `launchWithVanity` and co-sign.
-
-5. **`src/solana/vanity/launch-with-vanity.js`** — make `prefix` default to `THREE_WS_MARK` when neither `prefix` nor `suffix` is provided, instead of throwing. Keep the explicit-pattern path for power users.
-
-## Shared pattern (use everywhere)
-
-```js
-import { grindVanity } from './solana/vanity/grinder.js'; // adjust relative path
-import { THREE_WS_MARK, THREE_WS_VANITY } from './solana/vanity/brand.js';
-
-// before posting the launch:
-const ground = await grindVanity({
- ...THREE_WS_VANITY,
- signal: abortController.signal,
- onProgress: ({ rate, eta }) => setVanityProgress({ rate, eta }),
-});
-const mintKeypair = Keypair.fromSecretKey(ground.secretKey);
-// post mint_address (+ mint_secret_key_b64 for the server-signed path)
-```
-
-- Bound the grind with the existing `AbortController` already used for launch cancellation so the user can always back out.
-- Because `3ws` is ~49k attempts, the WASM pool finishes well under a second — but still drive the real progress callback; never fake it (`CLAUDE.md` hard rule #5).
-
-## Constraints (`CLAUDE.md`)
-
-- **Delete the `'pump'` default.** No surface may suggest, prefill, or grind any string tied
- to another coin. The only branded default is `3ws`.
-- No surface may offer a path that produces an **unbranded** three.ws coin. "Advanced"
- means *more* characters after `3ws`, never *zero*.
-- Real async progress only — no `setTimeout` fake bars.
-- Match each surface's existing design tokens; don't introduce new colors (see the monochrome
- token memory). Reuse the existing `.pumpfun-vanity-progress` / `.lp-*` classes.
-
-## Success criteria
-
-- From every surface above, a launch produces a `3ws…` mint, verified in the Network tab
- (`mint_address` in the request, `mint` in the response both start `3ws`).
-- No surface references `pump` (or any non-`$THREE` coin string) as a vanity default.
-- Cancelling mid-grind aborts cleanly and re-enables the launch button.
-- Loading (grinding), success (marked mint shown), and error (grind aborted / prep failed)
- states are all designed — no blank or jarring transitions.
-
-## Verification
-
-- `npm run dev`, exercise each surface in a real browser, watch the Network tab.
-- Headless WebGL note (see memory): these are DOM/network assertions, not pixel reads —
- verify via the request/response payloads and DOM text, per the screenshot gotcha memory.
-- `grep -rn "vanitySuffix\|'pump'\|\"pump\"" src public/studio | grep -vi pump.fun` returns
- nothing tied to a vanity default after this task.
diff --git a/tasks/vanity-3ws/04-skill-and-cli-scripts.md b/tasks/vanity-3ws/04-skill-and-cli-scripts.md
deleted file mode 100644
index ad950a386..000000000
--- a/tasks/vanity-3ws/04-skill-and-cli-scripts.md
+++ /dev/null
@@ -1,54 +0,0 @@
-# Task 04 — The `create-coin` skill + CLI scripts stamp the `3ws` mark
-
-## Goal
-
-Coins launched outside the web UI — via the pump-fun `create-coin` skill and the repo's
-launch scripts — must also carry the mark. A skill-driven or CLI launch is still a
-three.ws launch.
-
-## Surfaces
-
-1. **`pump-fun-skills/create-coin/`** (`handlers.js`, `scripts/`, `SKILL.md`, `tools.json`)
- - Find where the mint keypair is created (a `Keypair.generate()` or equivalent).
- - Replace with a server/Node grind of the mark: `import { grindVanityNode } from '<rel>/src/solana/vanity/grinder-node.js'` and `import { THREE_WS_VANITY } from '<rel>/src/solana/vanity/brand.js'`, then `Keypair.fromSecretKey((await grindVanityNode({ ...THREE_WS_VANITY })).secretKey)`.
- - If the skill is a self-contained package that can't import from `src/`, inline a minimal grinder **but** keep the mark string sourced from a single local constant mirroring `brand.js` (and note the mirror in a comment) — never hardcode `'3ws'` in multiple spots within the package.
- - Update `SKILL.md`: document that every coin created through it is stamped `3ws…` and why (brand provenance). Keep all examples/fixtures on `$THREE` / `FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump` (`CLAUDE.md`).
-
-2. **`scripts/coin-cli.mjs`** — two `Keypair.generate()` sites for the mint (≈ line 130 helper, ≈ line 240 in the launch path):
- - The launch-path mint (line ~240, the `else` branch when no `--mint-keypair` is passed) must grind the mark instead of `Keypair.generate()`.
- - Preserve the `--mint-keypair <file>` escape hatch for power users, **but** validate the loaded keypair carries the mark with `hasThreeWsMark(mint.publicKey.toBase58())` and refuse (clear stderr message + non-zero exit) if it doesn't, unless `--no-mark` is explicitly passed. `--no-mark` exists only for genuinely coin-agnostic plumbing, mirroring the server kill-switch.
- - The line ~130 helper: inspect what it mints; if it's a throwaway/non-coin keypair leave it, if it's a coin mint, mark it.
-
-3. **`scripts/direct-pump-launch.mjs`** — same treatment: grind the mark for the launched mint; print the marked address in the success summary.
-
-4. **`scripts/pump-launch-usdc.mjs`** and **`scripts/pumpfun-lifecycle-smoke.js`** — if they launch a coin, mark the mint. The smoke test should additionally **assert** the resulting mint matches `/^3ws/i` so the brand is regression-guarded end-to-end.
-
-## Constraints
-
-- These are scripts → they live in `scripts/` (repo hygiene). Do not add new throwaway files
- in the root.
-- `grindVanityNode` on a 3-char case-insensitive prefix is sub-second; no need for the
- worker-thread `grind-vanity.mjs` pool here, but you may use it if a script already imports it.
-- Keep the `--mint-keypair` / `--no-mark` escape hatches honest: they exist for arbitrary-mint
- plumbing only, and the default is always marked.
-- No coin but `$THREE` in any script output, comment, fixture, or doc.
-
-## Success criteria
-
-- `node scripts/coin-cli.mjs launch …` (no `--mint-keypair`) prints a `3ws…` mint.
-- Passing `--mint-keypair` to a non-`3ws` key is rejected unless `--no-mark`.
-- `node scripts/direct-pump-launch.mjs …` yields a `3ws…` mint in its summary.
-- `pumpfun-lifecycle-smoke.js` asserts the mark and passes on devnet.
-- The `create-coin` skill, run end-to-end, produces a `3ws…` mint and its `SKILL.md`
- documents the behavior.
-
-## Verification
-
-```bash
-# dry inspect the grind without launching
-node -e "import('./src/solana/vanity/grinder-node.js').then(async m=>{
- const b=await import('./src/solana/vanity/brand.js');
- const g=await m.grindVanityNode({...b.THREE_WS_VANITY});
- console.log(g.publicKey, /^3ws/i.test(g.publicKey), g.attempts+' attempts', g.durationMs+'ms');
-})"
-```
diff --git a/tasks/vanity-3ws/05-ux-branded-success-state.md b/tasks/vanity-3ws/05-ux-branded-success-state.md
deleted file mode 100644
index 6267ebf27..000000000
--- a/tasks/vanity-3ws/05-ux-branded-success-state.md
+++ /dev/null
@@ -1,67 +0,0 @@
-# Task 05 — UX: stamp progress + a success state that celebrates the mark
-
-## Goal
-
-Turn the mark from an invisible backend detail into a *visible product moment*. The user
-should understand, at launch time, that their coin is being stamped with the three.ws
-brand — and see the marked address called out when it lands. Every state designed:
-idle → stamping → stamped → error.
-
-## Context
-
-- Surfaces from task 03: `src/agent-home-pumpfun.js`, `src/pump/pump-modals.js`, `public/studio/launch-panel.js`.
-- Existing progress hooks: `grindVanity({ onProgress })` yields `{ attempts, rate, eta }`. Reusable classes exist: `.pumpfun-vanity-progress` (agent-home), `.lp-ok-mint` / `.lp-ex-mint` (studio launch panel).
-- `formatTimeEstimate` / `estimateAttempts` in `src/solana/vanity/validation.js` for honest ETAs.
-- Monochrome design tokens (see the dashboard token memory) — no new colors.
-
-## Changes
-
-### Stamping (loading) state
-- While grinding, show: **"Stamping the three.ws mark `3ws…`"** with the real rate/eta
- from `onProgress`. Because the grind is ~sub-second, also keep the copy graceful if it
- finishes instantly (don't flash). A subtle shimmer on the mint placeholder is enough.
-- The launch button reflects the phase: `Stamping 3ws…` → `Launching…`. No fake timing.
-
-### Stamped (success) state
-- Render the resulting mint with the `3ws` prefix **visually emphasized** (e.g. the first
- three glyphs in the accent/foreground weight, the remainder muted, then `…tail`).
- Reuse the existing truncation component; just weight the leading mark.
-- Microcopy: "Stamped on-chain — every three.ws coin starts with `3ws`." Include the
- copy-address and explorer/pump links that the success state already shows.
-- A small "verified three.ws coin" pill is appropriate here — but reuse the existing
- on-chain badge module (`src/shared/onchain-badge.js`, per memory) rather than inventing a
- second badge. If the badge can take a "branded mint" hint, pass it; otherwise leave the
- badge as-is and only weight the mark glyphs.
-
-### Error state
-- If the grind is aborted (user cancels) → return to idle cleanly, button re-enabled.
-- If `launch-prep`/`launch-agent` returns `400 unbranded_mint` (shouldn't happen from our
- own client, but a defensive surface) → show "Could not stamp the brand — retry," with a
- retry affordance. Actionable, not a dead toast.
-
-### Accessibility / polish (`CLAUDE.md` UI standards)
-- The stamping indicator is an `aria-live="polite"` region.
-- The emphasized mark must not rely on color alone (use font-weight + an `aria-label` like
- "three.ws mark") for contrast/colorblind safety.
-- Hover/focus states on the copy button and links.
-
-## Constraints
-
-- Real async only — the progress reflects actual `onProgress` events.
-- No new color tokens; monochrome system + existing accent.
-- Don't duplicate the on-chain badge; reuse the shared module.
-- Keep all three surfaces visually consistent — same copy, same emphasis treatment.
-
-## Success criteria
-
-- A launch from each surface shows a real stamping indicator, then a success state with the
- `3ws` prefix visually emphasized and an honest "every three.ws coin starts with 3ws" line.
-- Cancel during stamping returns to a clean idle state.
-- The `unbranded_mint` error path renders an actionable retry, not a blank failure.
-- Screenshot-worthy: the marked address is the hero of the success card.
-
-## Verification
-
-- `npm run dev`; launch from each surface in a real browser. Confirm no console errors/warnings.
-- Verify the live region announces and the emphasized mark has an `aria-label`.
-- Per the headless-WebGL memory, assert via DOM text + the network payload, not pixel reads.
diff --git a/tasks/vanity-3ws/06-tests.md b/tasks/vanity-3ws/06-tests.md
deleted file mode 100644
index 0364817b1..000000000
--- a/tasks/vanity-3ws/06-tests.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# Task 06 — Tests: prove every launch path produces a `3ws…` mint
-
-## Goal
-
-Lock the brand invariant with tests at three levels: the validator, the server handlers,
-and an end-to-end launch. Guard against regression on every path tasks 01–04 touched.
-
-## Context
-
-- Existing vanity tests to keep green and extend: `tests/vanity-keygen.test.js`,
- `tests/vanity-wasm-grinder.test.js`, `tests/mcp-vanity-grinder.test.js`.
-- The suite is run with `npm test`. Note (per the swarm memory) the full suite may be red
- from unrelated churn — your job is that **your** new tests pass and you don't add red;
- run the targeted files directly to confirm.
-- Brand module: `src/solana/vanity/brand.js` (task 00).
-
-## New / updated tests
-
-### Unit — `tests/three-ws-mark.test.js` (new)
-- `hasThreeWsMark`: true for `3ws…`, `3WS…`, `3wS…`; false for `x3ws…`, `''`, `null`, a 2-char string.
-- `assertThreeWsMark`: throws `UnbrandedMintError` with `code === 'unbranded_mint'` on bad input; no throw on good.
-- `THREE_WS_VANITY` is frozen, `prefix === '3ws'`, `ignoreCase === true`.
-- `grindVanityNode({ ...THREE_WS_VANITY })` returns a `publicKey` satisfying `hasThreeWsMark` (this is a real grind — fast, but mark it as the one "slow-ish" unit if your harness separates them).
-
-### Integration — `tests/launch-mark-enforcement.test.js` (new)
-Drive `handleLaunchPrep` / `handleLaunchAgent` with mocked auth/db/connection (follow the
-mocking pattern already used by the pump handler tests, if any; otherwise mock `sql`,
-`getSessionUser`, `getPumpSdk`, and the Solana connection):
-- **prep, no mint** → response `mint` passes `hasThreeWsMark`.
-- **prep, unmarked mint supplied** → `400` with `error === 'unbranded_mint'`.
-- **prep, marked mint supplied** → `200`, echoes that mint.
-- **prep, `THREE_WS_MARK_ENFORCE=0`** → legacy path, mint not required to be marked.
-- **launch-agent, no mint** → server-ground mint passes `hasThreeWsMark`, and is what
- `vtx.sign` receives (assert via the mocked sign call or the registered `pump_agent_mints` mint).
-- **launch-agent, unmarked supplied pair** → `400 unbranded_mint`.
-
-### E2E / smoke — extend `scripts/pumpfun-lifecycle-smoke.js`
-- After a devnet launch, assert the resulting mint matches `/^3ws/i`; fail the smoke loudly otherwise.
-
-### Regression guard
-- Add a tiny test asserting the literal `'3ws'` appears in exactly one source file
- (`brand.js`) — a grep-based test — so a future contributor can't quietly hardcode the mark
- elsewhere and drift. (Scope the grep to `src/`, exclude `tests/` and `tasks/`.)
-
-## Constraints
-
-- No network calls in unit/integration tests except the local in-process grind (which is CPU-only).
-- Don't weaken or delete existing vanity tests; extend them.
-- Use `$THREE` / the canonical CA for any fixture that needs a coin; never another mint.
-
-## Success criteria
-
-- `node --test tests/three-ws-mark.test.js tests/launch-mark-enforcement.test.js` (or the
- repo's test runner) passes.
-- Existing `tests/vanity-*.test.js` still pass.
-- The smoke script asserts the mark on devnet.
-- Removing the enforcement code makes the integration tests fail (verify by temporarily
- reverting — the tests must actually bite).
-
-## Verification
-
-```bash
-npm test 2>&1 | tail -40 # confirm no NEW failures vs the known-red baseline
-node --test tests/three-ws-mark.test.js tests/launch-mark-enforcement.test.js
-```
diff --git a/tasks/vanity-3ws/README.md b/tasks/vanity-3ws/README.md
deleted file mode 100644
index 1ccb51bd1..000000000
--- a/tasks/vanity-3ws/README.md
+++ /dev/null
@@ -1,76 +0,0 @@
-# Feature: the `3ws` mint mark — every three.ws coin carries the brand in its address
-
-## The idea
-
-Every coin launched **through three.ws** should be recognizable on-chain by its mint
-address alone. We stamp a vanity mark — the literal string **`3ws`** — onto the mint
-public key of every launch. A three.ws coin reads `3wsAbc…xyz` in any wallet, explorer,
-or block feed. No legend, no metadata lookup: the address *is* the brand.
-
-This is the same move pump.fun made with its `…pump` suffix, applied to *our* surface.
-It compounds: every launch is a free, permanent billboard for three.ws, and holders can
-verify provenance at a glance.
-
-## Design decisions (locked — do not re-litigate)
-
-- **Mark:** the string `3ws` (three.ws, condensed). Base58-valid (`3`, `w`, `s` are all
- in the alphabet; none are confusable `0/O/I/l`).
-- **Position: prefix.** Wallets, explorers, and our own UIs truncate addresses to the
- first 4–6 characters (`3wsAb…`). A prefix gets prime visibility; a suffix is usually
- hidden behind the `…`. The mark leads.
-- **Case-insensitive.** Matching `3ws`/`3wS`/`3Ws`/… keeps the grind ~sub-second.
- Expected attempts ≈ 58 × 29 × 29 ≈ **49k** (digit `3` is exact; `w`/`s` each match two
- cases). The WASM worker pool does this in well under a second; the single-thread
- server grinder (`grindVanityNode`) handles it inside one request with margin.
-- **Always-on, server-enforced.** This is not a toggle the user flips. Every branded
- three.ws launch (`coin_type` ∈ `agent | regular | mayhem`) gets the mark by default.
- The client grinds it; the server *also* enforces it so a hand-rolled API call can't
- bypass the brand.
-- **One exemption:** the generic, coin-agnostic x402 launcher that accepts an arbitrary
- user-supplied mint at runtime (per `CLAUDE.md`). That plumbing stays mint-neutral.
- Everything that launches a *three.ws* coin gets the mark.
-
-## Why this is cheap and safe
-
-The vanity infrastructure already exists and is battle-tested — this feature **wires it on
-by default**, it does not build a grinder from scratch:
-
-- `src/solana/vanity/grinder.js` — `grindVanity({prefix, suffix, ignoreCase, signal, onProgress})`, WASM web-worker pool (client).
-- `src/solana/vanity/grinder-node.js` — `grindVanityNode(...)`, `expectedAttemptsFor`, `GrindExhaustedError`, `MAX_SERVER_PATTERN_LENGTH = 3` (server). `3ws` is exactly 3 chars.
-- `src/solana/vanity/launch-with-vanity.js` — grind → `POST /api/pump/launch-prep` → return prep + local mint keypair for co-sign.
-- `src/solana/vanity/validation.js` — base58 validation, difficulty + time estimates.
-- `api/pump/[action].js` — `launch-prep` (user-signed) and `launch-agent` (server-signed) already accept a client-ground `mint_address`; both fall back to `Keypair.generate()`.
-
-Our launches do **not** grind pump.fun's `…pump` suffix today (they use plain
-`Keypair.generate()`), so the address space is fully ours — no 7-char (`3ws…pump`)
-collision-of-constraints problem. Just a clean 3-char prefix.
-
-## Task order
-
-| # | File | What it delivers |
-|---|------|------------------|
-| 00 | `00-brand-constant-and-validator.md` | One source of truth: `src/solana/vanity/brand.js` (the mark config + `hasThreeWsMark` / `assertThreeWsMark`). Everything else imports this. |
-| 01 | `01-server-enforce-launch-prep.md` | `launch-prep` grinds `3ws` when no mint supplied and rejects an unmarked supplied mint. |
-| 02 | `02-server-enforce-launch-agent.md` | `launch-agent` (server-signed / autonomous) grinds `3ws` server-side. |
-| 03 | `03-client-launch-surfaces-default.md` | Every client launch UI defaults to grinding `3ws` (remove the `pump` default + opt-in toggle framing). |
-| 04 | `04-skill-and-cli-scripts.md` | The `create-coin` skill + `coin-cli`/`direct-pump-launch` scripts grind the mark. |
-| 05 | `05-ux-branded-success-state.md` | Progress ("stamping your three.ws mark…") + a success state that celebrates the marked address. All states designed. |
-| 06 | `06-tests.md` | Unit + integration + e2e proving every path produces a `3ws…` mint. |
-| 07 | `07-docs-rollout-telemetry.md` | Docs, feed event, telemetry, and the kill-switch flag. |
-
-Do 00 first (everyone depends on it). 01–04 can run in parallel after 00. 05 layers on
-01/03. 06 and 07 close it out.
-
-## Definition of done (whole feature)
-
-- A launch from **every** surface (agent-home, /studio, pump-modals, skills, CLI, the
- create-coin skill, and the autonomous `launch-agent` path) produces a mint whose
- Base58 address begins with `3ws` (case-insensitive).
-- The server **rejects** a branded launch whose supplied `mint_address` lacks the mark
- (clear 400), and **mints one with the mark** when none is supplied — a raw API call
- cannot ship an unbranded three.ws coin.
-- The generic x402 launcher is untouched and still mint-neutral.
-- No coin other than `$THREE` is referenced anywhere in the work (`CLAUDE.md` law).
-- Grinding never *blocks* a launch: it runs inside a bounded budget with a designed
- progress state; the kill-switch flag (task 07) can disable enforcement instantly.
-- Existing vanity tests still pass; new tests cover every launch path.