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.

Remove shipped task files (pumpfun launchpad/upstream, site-overhaul)

nirholas838903e32c2c
diff --git a/tasks/pumpfun-launchpad-100/01-usdc-trade-recording.md b/tasks/pumpfun-launchpad-100/01-usdc-trade-recording.md
deleted file mode 100644
index 5f43aa505..000000000
--- a/tasks/pumpfun-launchpad-100/01-usdc-trade-recording.md
+++ /dev/null
@@ -1,82 +0,0 @@
-# Task 01 — Quote-aware trade recording + portfolio subtotals
-
-**Priority:** HIGH — blocks 02, 03. **Type:** backend + schema.
-
-## Goal
-
-Make `pump_agent_trades` and the portfolio API correct for **USDC-paired** agent coins.
-Today the table only models SOL: a `sol_amount` lamports column and nothing that says which
-quote asset the trade actually used. Pump.fun launched USDC-paired coins (post 2026-05-21,
-`buy_v2`/`sell_v2` with explicit `quote_mint`), and our launch + curve code already supports
-them — but every trade we record for a USDC coin lands in `sol_amount` as if it were lamports,
-so prices, volumes, and portfolio subtotals are wrong for those coins.
-
-## Why this matters
-
-A trader on a USDC-paired agent coin sees nonsense P&L and the agent-profile token widget
-reports a fake market cap. This is a data-integrity bug, not cosmetics. The v2 audit
-(`docs/pumpfun-program/AUDIT-2026-06-11.md`, "remaining productization") explicitly listed
-`quote_amount`/`quote_mint` columns and portfolio per-quote subtotals as the unfinished work.
-
-## Context — read first
-
-- `api/_lib/migrations/2026-04-29-pump-trades.sql` — current schema (SOL-only).
-- `api/_lib/pumpfun-ws-feed.js:207-275` — `classifyQuote()` already returns
- `{ quote_mint, quote_symbol, is_usdc_pair }`. Reuse it; do not reinvent.
-- `api/_lib/pump-quote.js` — quote-mint classification (SOL vs USDC) used by the trade path.
-- INSERT sites that must be updated:
- - `api/pump/helius-webhook.js:47`
- - `api/agents/pumpfun/[action].js:211` and `:1003`
- - any buy-confirm / sell-confirm path in `api/pump/[action].js` that writes a trade
-- Consumers that must read the new columns:
- - `api/pump/[action].js` → `portfolio`, `coin-trades`, `dashboard`
- - `src/pump/dashboard.js`, `src/pump/agent-token-widget.js` (display)
-
-## Scope
-
-1. **Migration.** New file `api/_lib/migrations/2026-06-14-pump-trades-quote.sql`:
- - `quote_mint text` — the quote SPL mint (WSOL or USDC mint string).
- - `quote_symbol text` — `'SOL' | 'USDC' | 'OTHER'`.
- - `quote_amount numeric(40,0)` — atomic units of the quote asset spent (buy) / received (sell).
- - Backfill: set `quote_mint = <WSOL mint>`, `quote_symbol = 'SOL'`,
- `quote_amount = sol_amount` for all existing rows (every legacy row is SOL-paired).
- - Keep `sol_amount` (don't drop) for backward compat; new code reads `quote_amount`.
- - Idempotent: `add column if not exists`, wrapped in a transaction, follows the existing
- migration file conventions in that directory.
-2. **Wire every INSERT site** to populate the three new columns using `classifyQuote()` /
- the resolved quote mint from `pump-quote.js`. For SOL trades, `quote_amount === sol_amount`.
-3. **Portfolio per-quote subtotals.** `portfolio` action returns holdings grouped/subtotaled by
- quote asset (SOL subtotal, USDC subtotal) instead of summing lamports across mismatched units.
-4. **Display.** `coin-trades` / `dashboard` responses expose `quote_symbol` + a correctly-scaled
- amount; the dashboard and token widget render `"X USDC"` vs `"Y SOL"` rather than assuming SOL.
-
-## Definition of done
-
-- [ ] Migration runs cleanly on a fresh DB and on the existing DB (idempotent, backfill correct).
-- [ ] Every trade INSERT writes `quote_mint`, `quote_symbol`, `quote_amount`; no path left on
- the SOL-only assumption (grep the codebase to prove it).
-- [ ] A recorded USDC-paired trade shows the right amount + symbol in `coin-trades`, `dashboard`,
- and the agent-profile widget. SOL trades unchanged.
-- [ ] `portfolio` returns separate SOL and USDC subtotals; no cross-unit summing.
-- [ ] `npm test` passes; add/extend a test that records a USDC trade and asserts the columns.
-- [ ] Changelog entry (tag: `fix` + `feature`): "USDC-paired agent coins now record and display
- correct trade amounts."
-
-## Out of scope
-
-Buy/sell **UI** denomination (Task 02) and custodial USDC signing (Task 03). This task is the
-data layer they both depend on.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/01-usdc-trade-recording.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/02-usdc-buy-sell-ui.md b/tasks/pumpfun-launchpad-100/02-usdc-buy-sell-ui.md
deleted file mode 100644
index 68aaaface..000000000
--- a/tasks/pumpfun-launchpad-100/02-usdc-buy-sell-ui.md
+++ /dev/null
@@ -1,72 +0,0 @@
-# Task 02 — USDC denomination in the buy/sell widget
-
-**Priority:** HIGH. **Depends on:** Task 01 (quote-aware trade recording). **Type:** frontend.
-
-## Goal
-
-Let a user buy and sell a **USDC-paired** agent coin in USDC from the trade widget, end to end:
-input denominated in the coin's quote asset, a real quote, a signed `buy_v2`/`sell_v2`
-transaction, broadcast, confirm. Today the widget is hardwired to SOL — `src/game/coin-buy.js`
-has zero USDC references — so USDC coins are untradeable from our UI even though the backend
-(`pump-swap-ix.js`, `pump-quote.js`, `agent-payments` fork) already supports them.
-
-## Why this matters
-
-A user lands on a USDC-paired agent coin's page, hits Buy, and the widget asks for SOL — wrong
-asset, broken trade. The launchpad can launch USDC coins it then can't trade. That's a dead path,
-and CLAUDE.md forbids dead paths.
-
-## Context — read first
-
-- `src/game/coin-buy.js` — current SOL-only buy widget.
-- `src/pump/pump-modals.js` — buy/sell/governance/withdraw modal pipeline
- (prep → sign → broadcast → confirm) already wired for SOL.
-- `src/pump/pump-swap-quote.js` — quote logic.
-- Backend already done: `api/pump/[action].js` `buy-prep`/`sell-prep`/`quote`,
- `api/_lib/pump-swap-ix.js`, `api/_lib/pump-quote.js` accept/return the quote mint.
-- The coin's quote asset is known from `api/pump/coin` / `curve` (`quote_mint`/`is_usdc_pair`)
- and now also from Task 01's recorded trades.
-
-## Scope
-
-1. **Detect the coin's quote asset** when the widget mounts (from `coin`/`curve`). Drive all
- labels, the input suffix, balance display, and slippage off that — don't hardcode "SOL".
-2. **USDC input + balance.** For USDC coins: show the user's USDC balance, denominate the amount
- input in USDC, fetch the quote against the USDC quote mint, render the USDC→token preview.
-3. **Idempotent quote-ATA create.** USDC sells need the quote ATA created if absent — the prep
- endpoint already prepends this (audit GAP-5); make sure the client signs/broadcasts the full
- returned transaction unchanged and doesn't strip instructions.
-4. **Every state designed:** insufficient USDC balance (actionable — link to fund), no quote,
- slippage exceeded, user-rejected signature, broadcast failure. SOL coins must behave exactly
- as before (no regression).
-5. **Bonding-curve vs AMM.** Respect the existing route selection (`bonding_curve` vs `amm`
- post-graduation) for USDC coins the same way it works for SOL.
-
-## Definition of done
-
-- [ ] On a USDC-paired coin, Buy and Sell complete a real signed transaction in a browser
- against a real RPC; the trade lands in `pump_agent_trades` with correct quote columns (Task 01).
-- [ ] On a SOL-paired coin, behavior is byte-for-byte the same as before (verified, not assumed).
-- [ ] Insufficient-balance, rejected-signature, and quote-failure states are all designed and tested.
-- [ ] No console errors/warnings from this code; network tab shows real prep/confirm calls.
-- [ ] `npm test` passes.
-- [ ] Changelog entry (tag: `feature`): "Buy and sell USDC-paired agent coins directly from the
- trade widget."
-
-## Out of scope
-
-Server-signed/custodial USDC trades (Task 03). This task is the **user-wallet** flow only.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/02-usdc-buy-sell-ui.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/03-custodial-usdc-trading.md b/tasks/pumpfun-launchpad-100/03-custodial-usdc-trading.md
deleted file mode 100644
index 8208a6f19..000000000
--- a/tasks/pumpfun-launchpad-100/03-custodial-usdc-trading.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# Task 03 — Custodial (agent-signed) USDC trading
-
-**Priority:** MEDIUM. **Depends on:** Task 01. **Type:** backend.
-
-## Goal
-
-Let an agent's **custodial** wallet (server-signed, via the recovered encrypted keypair) buy and
-sell USDC-paired coins, not just SOL. The wallet-signed path is handled by Task 02; this is the
-autonomous/server path used by strategies, buyback, and the `launch-agent` family. The v2 audit
-flagged a "custodial USDC trading flag" as deferred.
-
-## Why this matters
-
-Autonomous lanes (buyback, strategy-run, distribute) currently assume SOL. On a USDC-paired
-agent coin they would build a SOL trade against a USDC curve — wrong asset, failed or mispriced
-transaction. The autonomous economy must work for both quote assets or it silently breaks for
-every USDC coin an agent launches.
-
-## Context — read first
-
-- `api/_lib/agent-pumpfun.js` — `loadAgentForSigning`, recovers encrypted Solana keypair.
-- `api/pump/[action].js` — `launch-agent`, `collect-creator-fee-agent`,
- `distribute-creator-fees-agent`, `strategy-*`, server-signed trade paths.
-- `api/_lib/pump-swap-ix.js`, `api/_lib/pump-quote.js`, `api/_lib/pump-trade-args.js`.
-- `api/cron/pump-agent-stats.js` and the buyback/distribute cron paths
- (`pump_buyback_runs`, `pump_distribute_runs`).
-- Task 01's quote columns — record custodial USDC trades correctly too.
-
-## Scope
-
-1. **Resolve the coin's quote asset server-side** before building any custodial trade; thread the
- quote mint through the instruction builder exactly as the wallet path does.
-2. **Custodial USDC buy/sell** — server signs a `buy_v2`/`sell_v2` against the correct quote ATA;
- create the agent's quote ATA idempotently if missing.
-3. **Buyback / distribute** lanes respect the quote asset (a USDC coin buys back with USDC, etc.).
- If a lane genuinely can't operate in a given quote, it must fail loudly with a clear reason
- and record the error in `pump_buyback_runs`/`pump_distribute_runs` — never silently no-op.
-4. **Record** custodial trades with the Task 01 quote columns.
-
-## Definition of done
-
-- [ ] A custodial buy and sell on a USDC-paired coin succeed on devnet (coordinate with Task 07).
-- [ ] Buyback/distribute lanes operate in the coin's quote asset, or fail with a recorded reason.
-- [ ] SOL custodial paths unchanged (no regression).
-- [ ] `npm test` passes; add a unit test covering quote-asset resolution in the custodial builder.
-- [ ] Changelog entry (tag: `feature`): "Agents can autonomously trade USDC-paired coins."
-
-## Out of scope
-
-The user-wallet UI (Task 02).
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/03-custodial-usdc-trading.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/04-alerts-server-persistence.md b/tasks/pumpfun-launchpad-100/04-alerts-server-persistence.md
deleted file mode 100644
index 3ee72be53..000000000
--- a/tasks/pumpfun-launchpad-100/04-alerts-server-persistence.md
+++ /dev/null
@@ -1,70 +0,0 @@
-# Task 04 — Alert rules: server persistence + real delivery
-
-**Priority:** MEDIUM. **Type:** backend + frontend. **Supersedes:**
-`tasks/pump-dashboard-real-apis/12-alerts-server-persist.md` (carry over its intent, then mark it done).
-
-## Goal
-
-Move pump-dashboard alert rules from browser `localStorage` to server-side Postgres, evaluate
-them against the live pump.fun event stream on the server, and deliver matches over real channels
-(in-app notification + webhook + optional Telegram). Today alerts only exist in the tab that
-created them: close the tab and they stop; open another device and they're gone.
-
-## Why this matters
-
-An alert that only fires while a specific browser tab is open is not an alert. Traders expect a
-graduation/price/whale alert to fire whether or not they're looking. This is the difference
-between a toy and a tool.
-
-## Context — read first
-
-- `tasks/pump-dashboard-real-apis/12-alerts-server-persist.md` — original task statement.
-- `pages/pump-dashboard.html` — current localStorage alert UI.
-- Existing server-side infra to reuse (do NOT build parallel systems):
- - `api/cron/pumpfun-monitor.js` — already evaluates `graduation_alerts` per user with cooldown
- and webhook delivery. Extend this pattern; don't fork it.
- - `pumpfun_signals`, `graduation_alerts`, `user_notifications` tables.
- - `api/_lib/pumpfun-ws-feed.js` — the live mint/trade/graduation source.
- - Telegram delivery: `api/pump/[action].js` `deliver-telegram`.
- - Observability/alerts: `TELEGRAM_ALERTS_CHAT_ID` (per memory, still unset — handle absence).
-
-## Scope
-
-1. **Schema.** A `pump_alert_rules` table (or extend `graduation_alerts` if it cleanly
- generalizes): `user_id`, `kind` (graduation | price_above | price_below | whale_buy | new_mint
- by_agent), `target` (mint or agent_id, nullable for global), threshold params, delivery config
- (in_app | webhook_url | telegram_chat), `cooldown_seconds`, `enabled`, timestamps.
-2. **CRUD API** — authenticated endpoints to create/list/update/delete a user's rules.
-3. **Server-side evaluation** — fold rule matching into the existing `pumpfun-monitor` cron (or a
- companion) consuming the WS feed / signals table; respect cooldowns; dedupe.
-4. **Delivery** — write `user_notifications`, POST the webhook (with signature/secret), and send
- Telegram when configured. Each delivery channel handles its own failure without blocking others.
-5. **Frontend** — dashboard alert UI reads/writes the server; `localStorage` becomes a render
- cache only. Cross-device: rules created on one device appear on another after refresh.
-
-## Definition of done
-
-- [ ] Rules persist server-side and survive tab close; visible on a second device.
-- [ ] A real graduation/price/whale event fires the matching rule via the cron, delivering an
- in-app notification and a webhook POST (verify with a request-bin style endpoint).
-- [ ] Cooldown + dedupe prevent alert storms.
-- [ ] Telegram delivery works when configured, no-ops cleanly when creds absent.
-- [ ] Every alert-UI state designed (no rules yet → helpful empty state; delivery-failed surfaced).
-- [ ] `npm test` passes; rule-evaluation logic has unit coverage.
-- [ ] Mark `tasks/pump-dashboard-real-apis/12-alerts-server-persist.md` done with a pointer here.
-- [ ] Changelog entry (tag: `feature`): "Pump dashboard alerts now run server-side — fire across
- devices even with the tab closed, with webhook and Telegram delivery."
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/04-alerts-server-persistence.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/05-pumpfun-signals-cron.md b/tasks/pumpfun-launchpad-100/05-pumpfun-signals-cron.md
deleted file mode 100644
index 89781bfc6..000000000
--- a/tasks/pumpfun-launchpad-100/05-pumpfun-signals-cron.md
+++ /dev/null
@@ -1,60 +0,0 @@
-# Task 05 — Finish the `pumpfun-signals` cron
-
-**Priority:** MEDIUM. **Type:** backend.
-
-## Goal
-
-Complete the `pumpfun-signals` cron, which the backend inventory flagged as a skeleton: it
-ingests pump.fun events but its rule evaluation / signal-emission is unfinished. Bring it to the
-same completeness as `pumpfun-monitor` and `pump-agent-stats`.
-
-## Why this matters
-
-Signals power agent reputation, the reactive avatar, and the channel feed. A half-finished signal
-processor means agents react to a partial or empty event stream — the "live" feel of the
-launchpad degrades to stale. Either finish it or, if it's fully superseded by `pumpfun-monitor`,
-delete it and re-point consumers (CLAUDE.md: eliminate dead paths).
-
-## Context — read first
-
-- `api/cron/pumpfun-signals.js` (or wherever the signals cron lives — confirm path) and its
- registration in `vercel.json` crons.
-- `pumpfun_signals` table — what rows it expects, who writes/reads them.
-- `api/_lib/pumpfun-ws-feed.js` — `getMints()` / `getWhales()` / `getClaims()` sources.
-- `api/pump/channel-feed.js` — a consumer of signals.
-- `api/cron/pumpfun-monitor.js` — the reference for a complete cron (cursor, cooldown, delivery).
-- `docs/solana-pumpfun.md` — documents the intended `pumpfun-signals` crawler design.
-
-## Scope
-
-1. **Determine the true state** — read the cron and decide: finish, or fold into `pumpfun-monitor`
- and delete. Document the decision in the PR/commit.
-2. **If finishing:** complete rule evaluation (mints/whales/graduations → `pumpfun_signals`
- rows with `weight`/`payload`), maintain a cursor so it doesn't reprocess, respect rate limits
- and the Redis quota (see `tasks/redis-burn-rate-reduction.md` — minimize Redis writes).
-3. **Wire consumers** — channel-feed, reputation signals, reactive avatar read real signal rows.
-4. **Circuit-breaker / timeout** parity with the other crons (no runaway RPC under 429s).
-
-## Definition of done
-
-- [ ] Cron runs to completion within its time budget, emits real signal rows from live events.
-- [ ] Consumers (channel-feed at minimum) display data sourced from those rows.
-- [ ] No reprocessing of already-seen events (cursor verified).
-- [ ] If deleted instead: all consumers re-pointed, cron removed from `vercel.json`, no dead refs.
-- [ ] Redis write volume measured and within burn-rate budget.
-- [ ] `npm test` passes.
-- [ ] Changelog entry only if user-visible (e.g. channel feed gets livelier) — else internal-only.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/05-pumpfun-signals-cron.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/06-strategy-validate-semantic.md b/tasks/pumpfun-launchpad-100/06-strategy-validate-semantic.md
deleted file mode 100644
index 08c3360da..000000000
--- a/tasks/pumpfun-launchpad-100/06-strategy-validate-semantic.md
+++ /dev/null
@@ -1,57 +0,0 @@
-# Task 06 — Real strategy validation
-
-**Priority:** LOW–MEDIUM. **Type:** backend.
-
-## Goal
-
-Upgrade the `strategy-validate` action from syntax-only checking to genuine semantic validation,
-so a user can't save or run a trading strategy that is structurally valid but operationally
-broken (references a missing mint, impossible thresholds, conflicting rules, unsupported quote
-asset).
-
-## Why this matters
-
-`strategy-run` executes real on-chain trades via the custodial wallet. A strategy that passes
-"validation" but then fails or misbehaves at runtime burns real SOL/USDC and erodes trust.
-Validation that only checks syntax gives false confidence.
-
-## Context — read first
-
-- `api/pump/[action].js` — `strategy-validate`, `strategy-run` (SSE), `strategy-backtest`,
- `strategy-close-all`.
-- `PUMP_DEFAULT_AGENT_MINT` env fallback used by `strategy-run`.
-- Task 01/03 — quote-asset awareness (a strategy on a USDC coin must validate against USDC).
-
-## Scope
-
-1. **Define the strategy schema** explicitly (the set of valid rule types, operators, params) if
- not already centralized; validate structure against it.
-2. **Semantic checks:** referenced mint exists and is an agent coin; quote asset matches the
- strategy's denominated thresholds; numeric bounds sane (slippage, sizes, intervals); no
- contradictory/unreachable rules; custodial wallet has the capability the strategy assumes.
-3. **Return actionable errors** — field-level messages the UI can show, not a single opaque fail.
-4. **Reuse, don't duplicate** the backtest's interpretation of the strategy so validate and run
- agree on semantics.
-
-## Definition of done
-
-- [ ] A strategy referencing a nonexistent mint, an impossible threshold, or a quote-asset
- mismatch is rejected with a specific, field-level reason.
-- [ ] A valid strategy validates and then runs/backtests consistently (validate and run agree).
-- [ ] No false positives on currently-working strategies.
-- [ ] `npm test` passes; add cases for each rejection class.
-- [ ] Changelog entry (tag: `improvement`) if the strategy UI surfaces the new errors.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/06-strategy-validate-semantic.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/07-devnet-smoke-runbook.md b/tasks/pumpfun-launchpad-100/07-devnet-smoke-runbook.md
deleted file mode 100644
index 9a7a0b72c..000000000
--- a/tasks/pumpfun-launchpad-100/07-devnet-smoke-runbook.md
+++ /dev/null
@@ -1,96 +0,0 @@
-# Devnet smoke runbook — `scripts/pump-devnet-smoke.mjs`
-
-The acceptance gate for Tasks 01–03. Proves the launch → buy → sell loop works against **real
-on-chain devnet state** for a SOL-paired coin, a USDC-paired coin, and the custodial
-(server-signed) path — and that every trade lands in `pump_agent_trades` with the correct
-`quote_mint` / `quote_symbol` / `quote_amount`.
-
-It drives the **same production helpers the dispatcher handlers use** — not a reimplementation:
-`getPumpSdk`, the `@pump-fun` v2 builders (`createV2` / `buyV2` / `sellV2`), `pump-trade-args`
-(slippage, token-program, `resolveCustodialQuote`), `pump-quote` (`tradeQuoteColumns`,
-`walletQuoteDeltaAtomics`), `verifySignature`, and the same `sql` client + the exact recording
-logic from `api/pump/[action].js`'s buy/sell-confirm. It signs locally, broadcasts, confirms, then
-re-reads the row from Postgres and asserts the quote columns.
-
-**Devnet only.** It refuses any mainnet RPC.
-
-## What it runs
-
-| Leg | Proves |
-| --- | --- |
-| SOL launch + buy + sell | create_v2 (SOL-paired) → buy_v2 → sell_v2, row recorded `quote_symbol='SOL'`, lamports |
-| USDC launch + buy + sell | create_v2 (USDC-paired) → buy_v2 → sell_v2 against the whitelisted devnet USDC, row recorded `quote_symbol='USDC'`, 1e6 atoms (Task 01) |
-| Custodial buy + sell (SOL & USDC) | a server-held keypair signs + broadcasts, mirroring `loadAgentForSigning` + the custodial handler (Task 03) |
-
-Each leg prints its tx signatures with devnet explorer links and a final `PASS / FAIL / SKIP`
-summary. Failures are actionable (which step, the RPC error). It is idempotent: it seeds a
-clearly-synthetic devnet user+agent (`[email protected]`), records the trades, asserts, then
-cascade-deletes everything it created (pass `--keep` to retain for inspection).
-
-## Funding the signer (required for a live run)
-
-The signer defaults to the x402 demo Solana wallet
-(`~/.config/x402-test-wallets/solana.json`); override with `--keypair <path>` or `DEVNET_TEST_WALLET`.
-
-1. **Devnet SOL** (~0.12 needed: create + buys + sells + ATA rent). The script auto-airdrops via
- the configured RPC → Helius devnet (if `HELIUS_API_KEY` is set) → the public faucet. The public
- devnet faucet is aggressively rate-limited (HTTP 429 "airdrop limit reached / faucet dry") and is
- frequently exhausted from shared CI/Codespace IPs. If airdrop fails:
- - fund the printed address at <https://faucet.solana.com> (devnet), **or**
- - pass `--rpc https://devnet.helius-rpc.com/?api-key=<KEY>` (or any premium devnet endpoint)
- whose faucet isn't exhausted — this is the reliable path in an automated environment.
-2. **Devnet USDC** (only for the USDC legs). The pump.fun devnet program whitelists exactly one
- quote mint: `4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU`. Its mint authority is an external
- faucet, so it can't be minted locally — fund the printed address at <https://faucet.circle.com>
- (Solana devnet). Without USDC the USDC legs report `SKIP` (not `FAIL`), with the exact address +
- amount to fund.
-
-## Running it
-
-```bash
-# Validate the whole build pipeline on-chain WITHOUT funds (simulation only):
-node scripts/pump-devnet-smoke.mjs --simulate-only
-
-# Full live run (needs a funded signer; DATABASE_URL from .env.local for the row assertions):
-node scripts/pump-devnet-smoke.mjs
-
-# Live run against a premium devnet RPC (bypasses the public-faucet 429):
-node scripts/pump-devnet-smoke.mjs --rpc 'https://devnet.helius-rpc.com/?api-key=…'
-
-# Useful flags:
-# --sol-only run only the SOL legs
-# --no-db skip the Postgres record + assert (chain-only proof)
-# --keep keep the seeded devnet rows
-# --cleanup delete prior smoke rows and exit
-# --usdc <n> / --sol <n> / --slippage-bps <n>
-```
-
-`--simulate-only` needs no funds and no DB: it builds every launch instruction with the real SDK,
-compiles it to a v0 transaction, checks it serializes within the 1232-byte packet limit, and
-simulates it on devnet (halting only on the unfunded fee payer — expected). This is the
-fund-independent proof that the instruction-building pipeline is correct.
-
-## Verified status (2026-06-15)
-
-- `--simulate-only`: **4/4 PASS** — SOL, USDC, custodial-SOL, custodial-USDC launch instructions all
- build, compile to v0 (817–922 B), and reach the devnet program. Devnet USDC confirmed whitelisted.
-- Live broadcast + DB assertions: **blocked solely by devnet funding** — the public airdrop returns
- 429 (exhausted), `HELIUS_API_KEY` is empty under `vercel env pull`, and devnet USDC needs the
- Circle faucet. Re-run with a premium devnet RPC key or a pre-funded keypair to complete the live
- legs; the script then prints real signatures and asserts the recorded quote columns.
-- Tasks 01/03 unit coverage (`tests/pump-quote.test.js`, `tests/api/pump.test.js`): green
- (the trades-quote migration `20260614000000_pump_trades_quote.sql` is applied to the DB).
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/07-devnet-smoke-runbook.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/08-wire-pumpfun-bot-url.md b/tasks/pumpfun-launchpad-100/08-wire-pumpfun-bot-url.md
deleted file mode 100644
index 1cc340a56..000000000
--- a/tasks/pumpfun-launchpad-100/08-wire-pumpfun-bot-url.md
+++ /dev/null
@@ -1,137 +0,0 @@
-# Task 08 — Deploy + wire `PUMPFUN_BOT_URL` (graduations feed)
-
-**Priority:** MEDIUM. **Type:** infra + backend. **Supersedes:** the empty
-`tasks/wire-pumpfun-bot-url.md` stub.
-
-## Goal
-
-Stand up and wire the pump.fun MCP bot so the launchpad's graduation / token-intelligence data
-comes from a live source in production, instead of silently falling back to the `pf:graduations`
-Redis list (which nothing currently populates reliably). `PUMPFUN_BOT_URL` / `PUMPFUN_BOT_TOKEN`
-are read throughout the code but not configured in prod.
-
-## Why this matters
-
-`recent-graduations`, the channel feed, and graduation alerts (Task 04) degrade to stale or empty
-when the bot URL is unset. The Cloudflare worker mirror (`workers/pump-fun-mcp/worker.js`) and the
-`@three-ws/pumpfun-mcp` package already exist — this is wiring + deploy, not new construction.
-
-## Context — read first
-
-- `api/_lib/pumpfun-mcp.js:95` — MCP client for `PUMPFUN_BOT_URL` (JSON-RPC), with the
- `pf:graduations` Redis fallback.
-- `workers/pump-fun-mcp/worker.js` — the deployable Cloudflare Workers MCP mirror (on-chain only,
- reads `SOLANA_RPC_URL`, `PUMPFUN_BOT_URL`, `PUMPFUN_BOT_TOKEN`).
-- `packages/pumpfun-mcp/` — the published MCP server package.
-- `api/pump/[action].js` → `recent-graduations`; `pumpfun_graduations` table; the WS feed
- (`api/_lib/pumpfun-ws-feed.js`) that already writes graduations.
-- Per memory: `vercel env pull` returns empty for sensitive vars — set vars via the Vercel REST
- API, not the CLI wrapper (which writes empty secrets under the plugin).
-
-## Scope
-
-1. **Decide the bot source.** Either (a) deploy `workers/pump-fun-mcp/worker.js` to Cloudflare and
- point `PUMPFUN_BOT_URL` at it, or (b) confirm the WS feed already populates
- `pumpfun_graduations` sufficiently and make `pf:graduations`/bot a true optional enrichment.
- Document the choice.
-2. **Deploy** (if 1a): publish the worker, set its env (`SOLANA_RPC_URL`, optional token), verify
- its MCP endpoints respond.
-3. **Configure prod** — set `PUMPFUN_BOT_URL` (+ `PUMPFUN_BOT_TOKEN` if used) in Vercel prod +
- preview via the REST API. Verify `pumpfun-mcp.js` hits the live bot, not the fallback.
-4. **Verify the data path** — `recent-graduations` and the channel feed return live graduation
- data; Task 04 alerts can fire on it.
-
-## Definition of done
-
-- [ ] `PUMPFUN_BOT_URL` resolves to a live endpoint in prod; `pumpfun-mcp.js` uses it (logs/probe
- confirm it's not on the Redis fallback).
-- [ ] `recent-graduations` returns real, fresh graduations in prod.
-- [ ] If the worker was deployed: its URL, env, and redeploy steps documented.
-- [ ] Secrets set via REST API and verified non-empty (per the known CLI trap).
-- [ ] Changelog entry (tag: `infra`) only if users see fresher graduation data.
-
-## Out of scope
-
-Building new MCP tools — use what `pumpfun-mcp` / the worker already expose.
-
----
-
-## Resolution (2026-06-15) — option (b): bot is optional enrichment; graduations made self-sufficient + fresh
-
-**Decision: option (b).** The graduations data path no longer depends on `PUMPFUN_BOT_URL`. The
-bot is now a true optional enrichment layer (claims / token-intel / creator-intel); graduations
-come from the live, WS-fed `pumpfun_graduations` Postgres table.
-
-### Why not option (a)
-
-- **The Cloudflare worker is not "the bot."** `workers/pump-fun-mcp/worker.js` is itself a
- *consumer* of `PUMPFUN_BOT_URL` — an on-chain MCP mirror that delegates its discovery tools to an
- upstream indexer. Pointing prod's `PUMPFUN_BOT_URL` at the worker would be circular, and the
- worker does not implement the camelCase tools `pumpfunMcp` calls (`getGraduations`,
- `getRecentClaims`, `getTokenIntel`, `getCreatorIntel`).
-- **The real upstream is an external `pumpfun-claims-bot` MCP server** (`npx pumpfun-claims-bot` /
- Railway, per `.env.example`). It is not in this repo and is not published/runnable from here.
-- **No infra credentials in this environment.** `CLOUDFLARE_API_TOKEN` and `VERCEL_TOKEN` are both
- unset, so the worker can't be deployed and prod env can't be set via the REST API from here.
-
-### Root cause of stale graduations (the actual bug)
-
-`recent-graduations` already reads `pumpfun_graduations` (not the bot). That table is written by
-`persistGraduation()` in `api/_lib/pumpfun-ws-feed.js` — but **only while a browser SSE client is
-connected**. On serverless, when nobody is watching the live feed, nothing is written, so the table
-goes stale (observed: 1219 rows, newest `2026-06-10`, 0 in the prior 24h on 2026-06-15).
-
-### Changes shipped
-
-1. **`api/cron/[name].js` → new `pumpfun-graduations-sync` cron** (every 2 min, `vercel.json`).
- Opens the same real PumpPortal migration WebSocket for a bounded ~100s window each run; the
- feed's own `persistGraduation()` writes any graduations observed. Keeps `pumpfun_graduations`
- fresh independent of browser traffic. No external bot or API key — the public PumpPortal WS.
-2. **`api/_lib/pumpfun-mcp.js` → `pumpfunMcp.graduations()`** now falls back to the live
- `recentGraduations()` Postgres source instead of the dead `pf:graduations` Redis list. If the
- bot *is* configured it stays primary, but on bot error/empty it degrades to live data rather
- than empty. Redis demoted to last resort.
-3. **`api/cron/[name].js` → `pumpfun-signals`** no longer early-returns when the bot is unset. The
- graduation→signal path now runs on the live table; only the claims half is gated on the bot.
-
-### DoD outcome
-
-- [x] `recent-graduations` returns real, fresh graduations — the sync cron keeps the table live.
-- [x] `pumpfun-mcp.js` no longer silently degrades to the empty Redis fallback; it serves live
- Postgres graduations whether or not the bot is set (verified locally:
- `pumpfunMcp.graduations()` returns live rows with the bot disabled).
-- [n/a] `PUMPFUN_BOT_URL` resolving to a live endpoint in prod — deferred: no deployable upstream
- bot and no infra creds here. The plumbing is ready; see "When the bot becomes available."
-- [n/a] Worker deployment / REST-API secret-setting — deferred for the same reason; manual steps
- below.
-- [x] Changelog entry (tag `infra`) added — users see fresher graduations.
-
-### When the bot becomes available (manual, needs creds)
-
-Nothing in the code needs to change to adopt the bot — setting `PUMPFUN_BOT_URL` automatically
-makes it primary:
-
-1. **Host the upstream** — run `npx pumpfun-claims-bot` (or deploy it to Railway/Fly), or deploy
- `workers/pump-fun-mcp/worker.js` to Cloudflare (`cd workers/pump-fun-mcp && wrangler deploy`;
- set `SOLANA_RPC_URL`, optional `PUMPFUN_BOT_TOKEN` via `wrangler secret put`). Note the worker
- needs its *own* upstream indexer for discovery tools — it is not a standalone claims bot.
-2. **Set prod env via the Vercel REST API** (not the CLI wrapper — it writes empty secrets):
- `POST https://api.vercel.com/v10/projects/<projectId>/env` with a `VERCEL_TOKEN`, body
- `{ "key": "PUMPFUN_BOT_URL", "value": "<url>", "type": "encrypted", "target": ["production","preview"] }`
- (repeat for `PUMPFUN_BOT_TOKEN` if the upstream requires auth).
-3. **Verify** — `pumpfun_bot_status` (always-available MCP tool) reports `configured:true,
- healthy:true`; `pumpfun-signals` then enriches claims too.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/08-wire-pumpfun-bot-url.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-launchpad-100/09-launch-flow-e2e.md b/tasks/pumpfun-launchpad-100/09-launch-flow-e2e.md
deleted file mode 100644
index 2f34969ed..000000000
--- a/tasks/pumpfun-launchpad-100/09-launch-flow-e2e.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# Task 09 — Browser E2E coverage of the launch flow
-
-**Priority:** MEDIUM. **Depends on:** Task 02 (USDC UI). **Type:** test + frontend hardening.
-
-## Goal
-
-Add real browser E2E coverage (Playwright) for the launch modal's four steps and the trade
-widget, and fix the UX gaps the frontend inventory flagged along the way: generic error copy and
-the untraced graduation visual state transition. Today there is zero E2E coverage of the most
-important conversion path in the product.
-
-## Why this matters
-
-The launch flow (`src/pump/launch-token-modal.js`, ~1000 lines, 4 steps, wallet signing, canvas
-share card) is where users convert. A silent regression here is invisible until a user can't
-launch. Manual testing doesn't scale; this is the one flow that must never break.
-
-## Context — read first
-
-- `src/pump/launch-token-modal.js` — steps 1 (form) → 2 (quote+curve chart) → 3 (connect) →
- 4 (sign/broadcast/confirm + success share card).
-- `src/pump/pump-modals.js`, `src/game/coin-buy.js` — trade widget (post Task 02).
-- `src/pump/bonding-curve-chart.js` — graduation progress; trace the graduated visual state.
-- Per memory (`page-audit-tooling`, `vitest-cold-import-contention`): use a **dedicated-port
- Vite** dev server pre-started for Playwright; mock the wallet's `signTransaction` at the
- `window.solana` boundary (the only acceptable mock — it's an external browser extension, not
- our code or a real API) so the test drives the real prep/confirm endpoints.
-- `scripts/page-audit.mjs` — existing browser-check harness to model the setup on.
-
-## Scope
-
-1. **E2E spec** (Playwright, in `tests/` or `scripts/` per existing convention) covering:
- form validation (bad symbol rejected), quote step renders breakdown + curve chart, wallet
- connect, sign+broadcast (wallet signing stubbed at the extension boundary), success card +
- mint chip + share link. Assert real `launch-prep`/`launch-confirm` calls fire.
-2. **Trade widget E2E** — buy and sell happy paths for a SOL coin and a USDC coin (Task 02).
-3. **Fix error copy** — replace generic "Connection error, please try again" with messages mapped
- to the actual failure (insufficient SOL, RPC down, user rejected, slippage exceeded).
-4. **Graduation visual state** — verify and, if missing, implement the curve→graduated visual
- transition in the chart/widget so a graduated coin is visually unmistakable.
-
-## Definition of done
-
-- [ ] Playwright spec runs green locally against a dedicated dev server; covers all 4 launch steps
- + buy + sell.
-- [ ] Error states show specific, actionable copy (no generic catch-all).
-- [ ] Graduated coins render a distinct visual state; verified in a browser.
-- [ ] Spec documented (how to run); pre-started dev server pattern followed (no flaky networkidle).
-- [ ] `npm test` still passes.
-- [ ] Changelog entry (tag: `improvement`) for the clearer error messages + graduation state.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-launchpad-100/09-launch-flow-e2e.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md b/tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md
deleted file mode 100644
index def36c455..000000000
--- a/tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md
+++ /dev/null
@@ -1,102 +0,0 @@
-# Task: Audit our pump.fun buy/sell against the v2 trade interface + decide USDC-quote support
-
-You are a senior engineer working in the **three.ws** repo (`/workspaces/three.ws`).
-Read `CLAUDE.md` first and obey it — especially: **only `$THREE` may ever be
-referenced**, no mocks/fake data, real SDKs/APIs only, keep the repo clean, and
-never push without explicit approval (and then to **both** remotes).
-
-## Background
-
-pump.fun is migrating its bonding-curve program to a **unified v2 trade
-interface** so the same account layout works for both SOL-paired and **USDC-paired
-("stable paired") meme coins**:
-
-- New instructions: `buy_v2`, `sell_v2`, `buy_exact_quote_in_v2`.
-- All accounts mandatory, same order for every coin type (no optional-account
- branching). `quote_mint` is explicit — wrapped SOL
- (`So11111111111111111111111111111111111111112`) for SOL coins, USDC mint for
- USDC coins.
-- New mandatory accounts on every buy/sell: `sharing_config`,
- `global_volume_accumulator`, `user_volume_accumulator`,
- `associated_user_volume_accumulator`, `fee_config`, `fee_program`, plus a
- `buybackFeeRecipient` (+ its associated quote ATA).
-- `create_v2` coins use **Token-2022** base mints
- (`TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb`); quote and base may use
- different token programs.
-- SDK helpers (we depend on `@pump-fun/pump-sdk@^1.36.0`,
- `@pump-fun/pump-swap-sdk@^1.17.0`): `PUMP_SDK.getBuyV2InstructionRaw(...)`,
- `buy_v2_instructions(...)`, and the `sell_v2` equivalents.
-
-The full account lists, arg validation, fee-recipient rules, and SDK call
-examples are vendored locally — **read these first**:
-
-- `docs/pumpfun-program/UPSTREAM-buy-sell-v2-announcement.md`
-- `docs/pumpfun-program/docs/instructions/BUY.md`
-- `docs/pumpfun-program/docs/instructions/SELL.md`
-- `docs/pumpfun-program/docs/instructions/COIN_CREATION.md`
-- `docs/pumpfun-program/docs/FEE_RECIPIENTS.md`
-- `docs/pumpfun-program/idl/pump.json`, `idl/pump_amm.json`, `idl/pump_fees.json`
-
-A prior recon found our code already references `buy_v2`/`sell_v2`,
-`user_volume_accumulator`, and `sharing_config`, so this is expected to be mostly
-an **audit**, not a rewrite.
-
-## Our code to audit
-
-Start here (grep for `buy_v2|sell_v2|user_volume_accumulator|sharing_config|buyback|fee_config|quote_mint`):
-
-- `api/_lib/pump.js`
-- `api/_lib/pump-swap-ix.js`
-- `api/pump/[action].js` (the consolidated buy/sell/launch dispatcher)
-- `api/_lib/pump-launch.js`, `api/_lib/pump-pricing.js`
-- `api/_lib/solana/sdk-bridge.js`
-- anything else the grep surfaces
-
-## Goal
-
-1. **Audit** every place we build a bonding-curve buy/sell (and the AMM swap path)
- against the vendored v2 docs + IDLs. For each instruction we build, verify:
- - all mandatory v2 accounts are present, correct, and in the right order;
- - `quote_mint` / token-program handling is correct (wSOL vs USDC; SPL vs
- Token-2022 base mints for `create_v2` coins);
- - `buybackFeeRecipient` + mayhem-vs-normal fee-recipient selection is correct;
- - slippage args (`max_sol_cost` / min-out) and decimals are right.
- - Prefer the SDK's v2 builders over hand-rolled account lists where we can.
-2. Produce a written **audit report** at
- `docs/pumpfun-program/AUDIT-2026-mm-dd.md`: per buy/sell/swap path, a
- PASS / GAP verdict with file:line evidence and the exact discrepancy.
-3. **Fix** any real gaps found, wired end-to-end (no stubs). If a gap is risky or
- needs product input, document it in the report and leave it clearly flagged
- rather than half-implementing.
-4. **Decision: USDC-quoted coins.** Determine what it would take for three.ws to
- support buying/selling USDC-paired coins (quoting, balances UI, the swap path).
- If small and safe, implement it; otherwise write the implementation plan into
- the report. Note: per the coin rule, do not surface any specific non-`$THREE`
- coin — USDC is infrastructure/quote-asset plumbing, which is allowed, but keep
- example mints generic/runtime-supplied.
-
-## Verification (Definition of done)
-
-- Audit report committed; every claim backed by file:line or a doc reference.
-- Any code changes: `npx prettier --check` clean, `npm run build` green, relevant
- `vitest` tests pass (add tests for new instruction-building logic — you can
- unit-test account ordering / arg encoding without hitting the chain, mirroring
- `tests/bounties-judge.test.js`). If you can exercise a real devnet buy/sell
- (env: `SOLANA_RPC_URL_DEVNET`), do it and record the tx signature; if not,
- say so explicitly.
-- `git diff` self-reviewed. Do not push unless the user asks; then push to both
- `threeD` and `threews`.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.md b/tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.md
deleted file mode 100644
index d1722953a..000000000
--- a/tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.md
+++ /dev/null
@@ -1,68 +0,0 @@
-# Task: Sync our vendored pump-fun-skills with the official upstream repo
-
-You are a senior engineer in the **three.ws** repo (`/workspaces/three.ws`).
-Read `CLAUDE.md` and obey it — **only `$THREE` may ever be referenced**, no
-mocks, real APIs/SDKs only, keep the repo clean, never push without explicit
-approval (then both remotes).
-
-## Background
-
-Our `pump-fun-skills/` directory is a **vendored copy** of pump.fun's official
-Agent Skills repo (`github.com/pump-fun/pump-fun-skills`) — same structure, and
-the SKILL.md files even link to `raw.githubusercontent.com/pump-fun/pump-fun-skills/...`.
-
-Our copy contains: `create-coin/`, `swap/`, `coin-fees/`, `tokenized-agents/`,
-and `reactive/` (the last is **our addition** — drives avatar movement from the
-PumpPortal feed; not in upstream).
-
-A recon pass confirmed our skills already cover the current feature set (mayhem
-mode, cashback, buyback %, Jito front-runner protection, tokenized agents, USDC),
-so this is a **drift check**, not a rebuild. Upstream was last pushed 2026-04-23;
-we don't know exactly when our copy was taken.
-
-## Goal
-
-1. Diff our `pump-fun-skills/<skill>/` against upstream `main` for each shared
- skill (`create-coin`, `swap`, `coin-fees`, `tokenized-agents`). Pull upstream
- raw files for comparison, e.g.:
- - `gh api repos/pump-fun/pump-fun-skills/git/trees/HEAD?recursive=1 --jq '.tree[].path'`
- - `gh api --header 'Accept: application/vnd.github.raw' "repos/pump-fun/pump-fun-skills/contents/<path>"`
- Compare SKILL.md **and** the helper scripts / reference files in each skill
- folder, not just the SKILL.md.
-2. Write a **drift report** at `tasks/pumpfun-upstream/02-skills-drift-report.md`:
- per skill, what changed upstream since our copy (new flags, new scripts,
- changed SDK calls, new reference docs), and whether it matters for us.
-3. **Apply** the upstream updates that are genuine improvements/fixes, while
- **preserving**:
- - our `reactive/` skill (untouched);
- - any deliberate three.ws-specific edits (look for divergences before
- overwriting — don't blindly clobber; if a file differs because we changed it
- on purpose, reconcile by hand and note it in the report);
- - the `$THREE`-only rule (if any upstream example uses another coin/mint,
- replace it with `$THREE` / a synthetic placeholder).
-4. If the skills are duplicated elsewhere in the repo (a recon found copies under
- `examples/skills/`, `public/skills/`, `data/skills/`, and build output under
- `dist/`), decide whether those need the same update or are generated — do **not**
- hand-edit anything under `dist/` or `dist-lib/` (build artifacts).
-
-## Verification (Definition of done)
-
-- Drift report committed.
-- Updated skill files are valid (SKILL.md frontmatter intact; any scripts run with
- `--help` without error). `npx prettier --check` clean on changed text files.
-- No other-coin references introduced. `git diff` self-reviewed.
-- Don't push unless asked; then both `threeD` and `threews`.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.md b/tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.md
deleted file mode 100644
index af4e9c721..000000000
--- a/tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Task: Investigate pump-segments-sdk and whether three.ws should adopt it
-
-You are a senior engineer in the **three.ws** repo (`/workspaces/three.ws`).
-Read `CLAUDE.md` and obey it (only `$THREE`, no mocks, real APIs, clean repo,
-no push without approval).
-
-## Background
-
-During a recon of pump.fun's GitHub org we found a **new repo** we don't use:
-
-- `github.com/pump-fun/pump-segments-sdk` — TypeScript, created/pushed
- ~2026-04-16, 0 stars, **no description, no README**, and **not published to
- npm** (no `@pump-fun/pump-segments-sdk` on the registry as of 2026-06-08).
-
-"Segments" is unexplained. It could relate to creator-revenue segmentation,
-audience/holder segments, fee-sharing segments, or something tied to the newer
-fee/sharing-config program — unknown until read.
-
-## Goal
-
-1. Read the repo to determine **what it is and does**:
- - List the tree: `gh api repos/pump-fun/pump-segments-sdk/git/trees/HEAD?recursive=1 --jq '.tree[].path'`
- - Read `package.json`, `src/`, any examples/tests, and exported types.
- - Check commit history / open PRs for intent.
-2. Determine **relevance to three.ws**: does it unlock anything we'd want
- (e.g. for the `/go` bounty board, creator fee sharing, tokenized agents, or
- holder/community features we already have under `api/_lib/coin-communities.js`,
- `holder-pass.js`, `royalty.js`, fee-sharing in `api/pump/[action].js`)?
-3. Check **availability**: is it usable yet (published anywhere, stable API), or
- pre-release? If unpublished, note that adopting it means a git dependency or
- vendoring — flag the maintenance cost.
-
-## Deliverable
-
-A short brief at `tasks/pumpfun-upstream/03-segments-findings.md`:
-
-- one-paragraph "what it is",
-- a capability list,
-- a clear **recommendation**: adopt now / wait for npm release / not relevant,
- with reasoning and (if adopt) a rough integration sketch.
-
-**Do not** add it as a dependency or write integration code unless the
-investigation shows a clear, immediate win — in which case stop and propose it to
-the user first. This task is research; default to producing the brief only.
-
-## Verification
-
-- Brief committed. Claims reference the actual repo contents (paths/types), not
- guesses. `git diff` self-reviewed. No push without approval.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-upstream/03-segments-findings.md b/tasks/pumpfun-upstream/03-segments-findings.md
deleted file mode 100644
index 0032ccc7f..000000000
--- a/tasks/pumpfun-upstream/03-segments-findings.md
+++ /dev/null
@@ -1,139 +0,0 @@
-# pump-segments-sdk — findings & recommendation
-
-**Repo:** `github.com/pump-fun/pump-segments-sdk` (default branch `devnet`)
-**npm name in manifest:** `@pump-fun/segments-sdk` v1.0.4 — **not the searched `pump-segments-sdk`**, and `publishConfig.access: "restricted"`
-**Published to npm:** no (`npm view @pump-fun/segments-sdk` → 404 as of 2026-06-08)
-**History:** all real code committed 2025-11-25/26 by one author ("sharuk", 12 commits); the 2026-04-16 "push" is only Dependabot/Socket security bumps (`fast-xml-parser` CVE). Open PRs #2/#3 are both dependency-security bumps. No README, no description.
-**Verdict: NOT RELEVANT — do not adopt.**
-
-## What it is
-
-It is Pump.fun's **internal user-segmentation SDK** — a thin TypeScript read-client over a private **DynamoDB** table of audience cohorts that a Lambda materializes from Pump.fun's **BigQuery** warehouse. "Segments" means _marketing/growth audience cohorts of pump.fun app users_ (not on-chain, not token/fee related). The three baked-in segments in [`src/segments/definitions.ts`](https://github.com/pump-fun/pump-segments-sdk/blob/devnet/src/segments/definitions.ts) make this unambiguous: `mobile-users-no-notifications`, `mobile-high-volume-traders` ($1k+ weekly), `mobile-active-yesterday` — each defined by a BigQuery SQL string against `pump-data-production.analytics.daily_user_activity` (columns `user_id`, `was_on_mobile`, `notifications_received`, `usd_volume`). It is push-notification / growth-targeting infrastructure.
-
-## Capability list (actual API)
-
-- `SegmentClient(config)` — wraps `@aws-sdk/lib-dynamodb`; reads a DynamoDB table (`tableName`, `region`, optional `endpoint`). Keys: `SEGMENT#<id>#META` and `SEGMENT#<id>#V#<version>` / `USER#<userId>` ([`src/client.ts`](https://github.com/pump-fun/pump-segments-sdk/blob/devnet/src/client.ts)).
-- `segment(client, id)` → `Segment` with: `contains(userId)`, `getAll({cursor,limit})`, `getSample(pct)`, `stream(batchSize)` (async iterator), `getMetadata()`, `count()` ([`src/segment.ts`](https://github.com/pump-fun/pump-segments-sdk/blob/devnet/src/segment.ts)).
-- Deterministic sampling: `computeSampleBucket(userId, segmentId, salt)` via `imurmurhash` (`hash % 10000`), `isInSample(bucket, pct)` ([`src/utils.ts`](https://github.com/pump-fun/pump-segments-sdk/blob/devnet/src/utils.ts)).
-- Types: `SegmentMetadata` (memberCount, versionId, status, BigQuery bytes/duration stats), `MembershipResult`, `ExportResult` ([`src/types.ts`](https://github.com/pump-fun/pump-segments-sdk/blob/devnet/src/types.ts)).
-
-## Relevance to three.ws
-
-**None usable.** Every capability is gated behind Pump.fun's private infrastructure:
-
-- **Hard dependency on their AWS account.** It reads a specific DynamoDB table populated by their Lambda from their BigQuery project `pump-data-production`. Without their AWS credentials and that pre-computed table, every method throws `SegmentError` immediately. There is no public endpoint and no on-chain component.
-- **Wrong domain.** Segments are about _pump.fun app users_ (mobile usage, notification counts, USD trading volume keyed by internal `user_id`). They are **not** $THREE holders, wallets, creators, or fees. This does not touch fee sharing, creator revenue, or royalties.
-- **No overlap with our features.** Nothing here unlocks the `/go` bounty board, `api/_lib/coin-communities.js`, `holder-pass.js`, `royalty.js`, or the fee-sharing paths in `api/pump/[action].js` (all confirmed present). Those operate on Solana wallets/mints/holders — a different data plane entirely.
-
-## Availability
-
-Pre-release and effectively private: unpublished on npm, `access: restricted` (intended for an internal/private scope), README-less, default branch `devnet`. Adopting would mean a git dependency or vendoring — but even vendored it would be **inert**, since it only proxies Pump.fun's internal DynamoDB. The maintenance cost would buy nothing.
-
-## Recommendation
-
-**Not relevant — do not adopt, do not watch for an npm release.** This is internal growth tooling Pump.fun is unlikely to expose, and the model (read their warehouse cohorts) has no public surface we could call.
-
-## Addendum — re-evaluated for agent-token holder segmentation
-
-Raised use case: we let users launch tokens for their agents, so segment _those token holders_ into cohorts (whales, diamond hands, new buyers, dormant) and wire them into the `/go` bounty board, communities, and holder worlds.
-
-**The product instinct is right; this SDK is the wrong vehicle.** Verified against our actual code:
-
-- **We already own the data plane this SDK lacks.** [`api/_lib/coin/holders.js`](../../api/_lib/coin/holders.js) snapshots every agent-token holder on-chain via Helius `getTokenAccounts` (Token-2022) into a **Neon Postgres** `coin_holders` table — `persistHolderSnapshot({coinId, balances})`, `readEligibleHolders({coinId, minBalance})`. [`api/_lib/holder-pass.js`](../../api/_lib/holder-pass.js) already does USD-tiered gating. The segments-sdk computes _none_ of this — it is a pure read proxy over a table someone else populates.
-- **Datastore mismatch.** The SDK is hardwired to **DynamoDB** (`@aws-sdk/lib-dynamodb`). Our store is Neon Postgres (`sql` tagged template). Adopting it means standing up a second datastore for zero benefit.
-- **Its real value is a backend we can't touch.** The "segments" are materialized by Pump.fun's private Lambda from their internal `pump-data-production` BigQuery, keyed by _pump.fun app `user_id`_ — not Solana wallets, not our mints. Even pointed at our own DynamoDB table, every method returns empty until we build the entire cohort-materializer ourselves — which we already 80% have in `holders.js`.
-- **Reusable surface ≈ 40 lines.** Only the base64 cursor pagination and the `imurmurhash` deterministic sampling (`bucket = hash % 10000`) are worth borrowing as a _pattern_. Trivial to write natively against `coin_holders`.
-
-**Revised recommendation:** **Do not adopt the SDK** (unchanged), but **do build native agent-token holder cohorts** on top of `coin_holders` — a small, high-leverage feature. Borrow the _idea_ (named cohorts + deterministic sampling), not the dependency.
-
-## Shipped
-
-Built natively, dependency-free, against our own holder set — no DynamoDB, no SDK:
-
-- [`api/_lib/coin/cohorts.js`](../../api/_lib/coin/cohorts.js) — cohort registry (`holders`, `whales`, `diamond-hands`, `new-buyers`, `exited`), each a parameterized keyset query over `coin_holders` (no second pipeline; always as fresh as the snapshot cron). Deterministic FNV-1a sampling (`bucket % 10000`, salted per-coin) replaces the SDK's `imurmurhash`. `cohortCounts`, `queryCohort` (cursor-paginated, optional sampling).
-- [`api/coin/[mint]/cohorts.js`](../../api/coin/[mint]/cohorts.js) — public definitions+counts; creator-gated member export for airdrop/bounty targeting.
-- [`2026-06-08-coin-holder-cohorts.sql`](../../api/_lib/migrations/2026-06-08-coin-holder-cohorts.sql) — `first_seen` / `last_seen` partial indexes; re-export in `coin/index.js`.
-- Tests: [`cohorts.test.js`](../../api/_lib/coin/cohorts.test.js) (14, passing) — sampling determinism/distribution, spec bounds, registry. Wired into `npm test` via `vitest.config.js`. SQL paths need a live DB to exercise (none locally).
-
-## Live fallback for agent tokens + UI (added 2026-06-08)
-
-**Gap found in the snapshot-only build:** the "Shipped" section above assumes
-"every agent token already has its full holder set snapshotted into
-`coin_holders`." It does not. Agent-token launches
-([`api/agents/tokens/[action].js`](../../api/agents/tokens/[action].js)) write
-only `agent_identities.meta.token`; **nothing registers them in
-`coin_launches`** (only the manual `scripts/coin-cli.mjs` /
-`scripts/pump-link-mint.mjs` do), and the snapshot cron sweeps
-`listActiveCoins()` (coin_launches only). So `coin_holders` is empty for an
-ordinary agent token, and `GET /api/coin/:mint/cohorts` returned **404 / empty**
-for exactly the tokens this feature is for.
-
-**Fix (per the user's "use the Helius path"):** compute the snapshot-independent
-cohorts **live** from the holder set Helius already indexes for the mint, with no
-dependency on the lottery/reflection plumbing.
-
-- [`api/_lib/coin/cohorts-live.js`](../../api/_lib/coin/cohorts-live.js) —
- `liveHolderSet` (one Helius `fetchHolderBalances` walk), `liveCohortCounts`
- (holders + whales + concentration: top-1 / top-10 share + a health label),
- `liveCohortMembers` (sorted, optional deterministic sampling, reusing the
- snapshot path's `sampleBucket`/`inSample`). Tenure cohorts (diamond-hands /
- new-buyers / exited) report **`null` / 422** live — never a fabricated 0 —
- since they need `first_seen` history a snapshot would accrue.
-- [`api/coin/[mint]/cohorts.js`](../../api/coin/[mint]/cohorts.js) — when
- `loadCoinByMint` misses, falls back to the agent token (by
- `meta->'token'->>'mint'`) and serves live cohorts; unknown mints still 404.
- Creator-gated export (owner of the agent), CDN-cached overview, dedicated
- `cohortsIp` rate-limit so the paid Helius walk can't be run up.
-- [`src/agent-detail.js`](../../src/agent-detail.js) +
- [`agent-detail.css`](../../src/agent-detail.css) — **the first consumer**: a
- holder-cohort panel under the agent's token (whale share bar, concentration
- chip, designed loading / empty / error states). Nothing rendered cohorts
- before this.
-- Tests: [`cohorts-live.test.js`](../../api/_lib/coin/cohorts-live.test.js)
- (10, passing) — count/whale/concentration math, null tenure, sampling
- determinism, truncation.
-
-Net: snapshot coins get full cohorts incl. tenure; agent tokens get
-size/concentration cohorts immediately, and gain tenure automatically if/when a
-mint is ever registered + snapshotted.
-
-## Re-verification (2026-06-11)
-
-Re-checked every upstream signal; **nothing has changed — recommendation stands
-(do not adopt; native cohorts already shipped).**
-
-- **npm: still unpublished under every plausible name.** `npm view` → E404 for
- `@pump-fun/segments-sdk` (the name in its manifest), `pump-segments-sdk`, and
- `@pump-fun/pump-segments-sdk`.
-- **Maintainer accounts publish no segments package.** npm registry search
- `maintainer:oussama-baton` and `maintainer:security-baton` each return exactly
- the four known packages: `@pump-fun/pump-sdk` 1.36.0,
- `@pump-fun/pump-swap-sdk` 1.17.0, `@pump-fun/agent-payments-sdk` 3.0.3,
- `@pump-fun/shared-contracts` 0.2.2.
-- **Repo is dormant.** Full history is still the same 12 commits by "sharuk",
- all 2025-11-25/26 ("Init skeleton" → "update version"). `pushed_at`
- 2026-04-16 corresponds to bot branches only
- (`socket/autopatch-…`, `dependabot/npm_and_yarn-…`); the only open PRs remain
- #2 (Dependabot `fast-xml-parser` bump, 2026-02-11) and #3 (Socket patch for
- CVE-2026-25896, 2026-04-16). Branches: `devnet` + the two bot branches. No
- human activity in over six months.
-- **Org recon:** the only newer pump-fun org repo since the prior pass is
- `carbon` (pushed 2026-05-28) — a Rust Solana indexing framework, unrelated to
- segments.
-- **Our native replacement is intact and green.** All shipped files present
- (`api/_lib/coin/cohorts.js`, `cohorts-live.js`, `api/coin/[mint]/cohorts.js`,
- migration, tests); `npx vitest run` on both cohort suites → **24/24 passing**.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-upstream/03-segments-findings.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.md b/tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.md
deleted file mode 100644
index 0dd5ed23a..000000000
--- a/tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.md
+++ /dev/null
@@ -1,63 +0,0 @@
-# Task: Reconcile our local [email protected] with upstream's published 3.0.3
-
-You are a senior engineer in the **three.ws** repo (`/workspaces/three.ws`).
-Read `CLAUDE.md` and obey it (only `$THREE`, no mocks, real APIs, clean repo,
-no push without approval). **Low priority** — nothing is broken today.
-
-## Background
-
-`package.json` depends on `@pump-fun/agent-payments-sdk: ^3.1.0`. That version
-**does not exist on npm** — the public registry's `latest` is **3.0.3** (versions
-top out there). It resolves anyway because there is a **local workspace** at
-`agent-payments-sdk/` whose `package.json` is
-`{"name": "@pump-fun/agent-payments-sdk", "version": "3.1.0"}` and `package.json`
-lists `agent-payments-sdk` in its `workspaces` array. So in-repo installs use the
-local copy; the published 3.0.3 is never fetched.
-
-This works, but it's worth making intentional:
-
-- If our local 3.1.0 is just a **copy that drifted ahead of a version number**,
- fresh consumers outside the workspace (or anyone reading the manifest) will be
- confused, and we miss upstream fixes.
-- If our local 3.1.0 has **deliberate three.ws patches**, that's a fork we should
- document and keep in sync deliberately.
-
-## Goal
-
-1. Determine the relationship between our `agent-payments-sdk/` and upstream:
- - Diff our local source against upstream npm `3.0.3`
- (`npm pack @pump-fun/[email protected]` and compare), and against the
- upstream repo if one is public.
- - Identify whether our copy has real code changes or is just a version bump.
-2. Decide and implement one of:
- - **(a) Keep as an intentional local fork** — add a short `agent-payments-sdk/FORK_NOTES.md`
- explaining why it diverges and what our patches are; keep the `^3.1.0` pin.
- - **(b) Track upstream** — align our local copy/version to the published
- release (or pin the dependency to `^3.0.3` and drop/justify the workspace) so
- we get upstream updates, re-applying any necessary patches on top.
- Pick the option that matches what the diff shows; explain the call.
-3. Verify everything that imports it still works:
- - `grep -rl "@pump-fun/agent-payments-sdk" api/ packages/ scripts/ pump-fun-skills/`
- - Build green (`npm run build`), tokenized-agent payment flows
- (`api/agents/payments/[action].js`, `api/_lib/agent-pumpfun.js`,
- `pump-fun-skills/tokenized-agents/`) still resolve and type-check.
-
-## Verification (Definition of done)
-
-- A clear written decision (FORK_NOTES or a manifest/version change) committed.
-- `npm install` resolves cleanly; `npm run build` green; no broken imports.
-- `git diff` self-reviewed. No push without approval; then both remotes.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/site-overhaul/B-ui-uniformity/B01-canonical-design-tokens.md b/tasks/site-overhaul/B-ui-uniformity/B01-canonical-design-tokens.md
deleted file mode 100644
index 45e57abd4..000000000
--- a/tasks/site-overhaul/B-ui-uniformity/B01-canonical-design-tokens.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# B01 — One canonical design-token system
-
-**Track:** UI Uniformity · **Size:** M · **Priority:** P0 (unblocks all of Track B)
-
-## Goal
-Establish a single source of truth for design tokens — color, spacing, typography, radius,
-shadow, motion — that every page imports. This is the foundation the rest of Track B builds on.
-
-## Why it matters
-The audit found 8+ competing token systems. You cannot unify buttons, cards, or pages until
-there is *one* token vocabulary. `public/app-next.css` (`--nxt-*`) is the most modern, semantic
-set and `public/style.css` `:root` already has a good monochrome + phi-ratio base.
-
-## Context
-- Best existing direction: [public/app-next.css](public/app-next.css) (`--nxt-*`) + [public/style.css](public/style.css) `:root` (phi spacing `--space-*`, type scale `--text-*`, `--surface-*`/`--stroke-*`/`--ink-*`, semantic `--success/--danger/--warn`).
-- Competing systems to subsume (B02 deletes them): `--mk-*`, `--pd-*`, `--ibm-*`, `--gx-*`, `--ho-*`, `--saas-*`, `--sdk-*`, `--t-*`.
-
-## Scope
-- Create/normalize **one** token file (`public/tokens.css` or consolidate into `public/style.css` `:root`) defining the full token set with semantic names: surfaces, ink/text, strokes, accent, state colors, spacing scale, type scale + families, radii, shadows, blur, motion durations/easings.
-- Promote the strongest `--nxt-*` values into this canonical layer. Pick one prefix (recommend keeping `--nxt-*` since it's modern, or rename to a neutral `--tw-*`/`--ds-*`) and document it.
-- Provide a short mapping doc (`DESIGN-TOKENS.md`) so other agents know "use `--ds-surface-1`, not `#0a0a0a`."
-- Load it globally (it should be imported by the shared nav/footer and every page entry CSS).
-
-## Out of scope
-- Migrating pages off hardcoded colors (that's B08) and deleting the dead systems (B02) — but make those trivial by having the canonical set ready.
-
-## Definition of done
-- A single token file defines every design primitive with semantic names and is loaded site-wide.
-- `DESIGN-TOKENS.md` documents the vocabulary and the "no hardcoded values" rule.
-- Visual regression: the canonical pages (home, dashboard, app-next) render identically or better.
-
-## Verify
-- `npm run dev`; confirm home/dashboard/app-next look correct sourcing the new tokens. No color/spacing regressions.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/site-overhaul/B-ui-uniformity/B01-canonical-design-tokens.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/site-overhaul/B-ui-uniformity/B03-shared-button-system.md b/tasks/site-overhaul/B-ui-uniformity/B03-shared-button-system.md
deleted file mode 100644
index 940a71b3e..000000000
--- a/tasks/site-overhaul/B-ui-uniformity/B03-shared-button-system.md
+++ /dev/null
@@ -1,42 +0,0 @@
-# B03 — Shared button system
-
-**Track:** UI Uniformity · **Size:** M · **Priority:** P1 · **Depends on:** B01
-
-## Goal
-Replace **387 unique button class names** with one shared button system: a small set of
-semantic classes (`.btn`, `.btn--primary`, `.btn--ghost`, `.btn--danger`, sizes, `:disabled`,
-loading) used everywhere.
-
-## Why it matters
-Buttons are the most-touched control; 387 bespoke variants is the single clearest symptom of
-the fragmentation. One system = instant site-wide consistency and a fraction of the CSS.
-
-## Context
-- Fragments include `.h-btn-primary` (home), `.nxt-signin` (app-next), `.btn-primary` (marketplace), `.pumpfun-btn`, `.chs-btn-primary` (characters), `.create-avatar-btn`, etc.
-- Tokens from B01 supply padding/radius/color. The best reference styling is in `public/app-next.css`.
-
-## Scope
-- Define the canonical button classes in the shared layer (a `buttons.css` partial or in `style.css`), token-driven. Cover: primary, secondary/ghost, danger, link, icon-only; sizes sm/md/lg; states hover/active/focus-visible/disabled/loading. Include a focus ring (a11y).
-- Migrate the highest-traffic surfaces first (nav, home, dashboard, create, marketplace), replacing bespoke classes with the shared ones. Then sweep the rest.
-- Delete the bespoke button CSS as you migrate.
-
-## Definition of done
-- A representative set of pages uses only the shared button classes; `grep` shows the bespoke button class definitions shrinking toward zero.
-- Every button has hover/active/focus-visible/disabled states from the shared system.
-
-## Verify
-- `npm run dev`; tab through buttons on home/dashboard/marketplace — consistent look, visible focus rings, working disabled/loading states.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/site-overhaul/B-ui-uniformity/B03-shared-button-system.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.
diff --git a/tasks/site-overhaul/B-ui-uniformity/B04-shared-card-surface-system.md b/tasks/site-overhaul/B-ui-uniformity/B04-shared-card-surface-system.md
deleted file mode 100644
index 588dd986b..000000000
--- a/tasks/site-overhaul/B-ui-uniformity/B04-shared-card-surface-system.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# B04 — Shared card / surface / panel system
-
-**Track:** UI Uniformity · **Size:** M · **Priority:** P1 · **Depends on:** B01
-
-## Goal
-One set of surface primitives — `.card`, `.panel`, `.surface` (+ elevation/hover variants) —
-replacing the per-page bespoke card treatments.
-
-## Why it matters
-Cards are everywhere (agents, avatars, marketplace, dashboard, gallery) and each surface rolls
-its own radius/shadow/border. The audit found radii ranging 5/10/14px and hardcoded skeleton
-colors like `#2a2a3a`. Unifying cards makes the whole site feel like one product.
-
-## Context
-- Bespoke cards: marketplace (`.market-*`), home bento (`.h-bento-card--lg`), agent detail (`.ad-card`, hardcoded skeleton colors in [pages/agent-detail.html](pages/agent-detail.html)), pump-dashboard, app-next (the good reference).
-- B01 tokens supply surface/stroke/shadow/radius.
-
-## Scope
-- Define `.card`/`.panel`/`.surface` with elevation tiers and an optional hover-lift, all token-driven, plus a shared **skeleton** loading treatment (replacing hardcoded `#2a2a3a`/`#3a3a4a`).
-- Migrate agent/avatar/marketplace/gallery/dashboard cards to the shared classes; delete the bespoke CSS.
-- Ensure cards are responsive (test 320/768/1440) and use the shared spacing scale.
-
-## Definition of done
-- Card-heavy surfaces use the shared primitives; skeletons use the shared treatment; radii/shadows are consistent site-wide.
-
-## Verify
-- Compare a card on `/discover`, `/marketplace`, and the dashboard side by side — same radius, border, shadow, hover behavior.
-
-<!-- AUTO:self-delete-on-complete -->
-
----
-
-## ✅ On completion — delete this file
-
-This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:
-
-```bash
-git rm "tasks/site-overhaul/B-ui-uniformity/B04-shared-card-surface-system.md"
-```
-
-Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.