Skip to content

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

feat(prompts): add the masters pack, nine reusable relay prompts that drive any target to frontier quality

nirholasb2c1f38886a1
diff --git a/prompts/README.md b/prompts/README.md
index 6420905e8..d287f53a8 100644
--- a/prompts/README.md
+++ b/prompts/README.md
@@ -43,7 +43,9 @@ everything else around it.
| [event/](event/) | The $THREE Community Day (2026-08-08) pack: countdown surfaces, the `/play` polish sweep, the `/event` landing page, in-world event quests + leaderboard, the attendee cosmetic drop, photo mode, and the event-eve go/no-go preflight. |
| [fable-audit/](fable-audit/) | The 2026-07-11 deep audit. Every numbered finding shipped; [RESIDUALS.md](fable-audit/RESIDUALS.md) carries the three items deliberately left open. |
| [fix-queue/](fix-queue/) | Defects reproduced on 2026-08-01 by running the repo's own checks (`gate`, `lint`, `audit:links`, `audit:tour-atlas`, `check:cron-drift`, `check:runnable-docs`, `test:core`) plus a production probe, one work order per symptom, each carrying the verbatim output. Complements [backlog/](backlog/), which owns the infrastructure and owner-gated items. |
+| [masters/](masters/) | The reusable master prompts: nine discipline-grade operator documents (architect, scout, builder, designer, integrator, adversary, storyteller, operator, plus the frontier innovation engine) that take a supplied TARGET instead of fixed tasks and never retire. Each ends with a HANDOFF block the next master consumes, so they chain into a relay from one-line idea to shipped, verified, documented, production-hardened feature. Deliberate convention deviation: reusable, not a campaign; no PROGRESS.md. |
| [gcp-credits/](gcp-credits/) | The GCP credit program. Seven of eight work orders shipped and were retired; [05-catalog-animation-seeding.md](gcp-credits/05-catalog-animation-seeding.md) is the open one, turning credits into a curated catalog and a generated motion library. |
+| [materialize/](materialize/) | The physical lane: any forge creation to a high-precision 3D print delivered to a door. Printability engine (analyze/repair/STL/color-3MF), quote + order + Solana USDC checkout incl. the x402 agent lane, the /materialize surface with true-scale AR, fulfillment adapters + operator console, on-chain print certificates with editions and QR provenance, fabrication content gate. Six work orders over a shared context file; launches on a manual-fulfillment adapter, no partner dependency. |
| [okx-ai/](okx-ai/) | Taking the three.ws 3D Studio listing (agent #2632) to approved status on OKX.AI. Three open orders (real-payment gauntlet, relisting, final audit and launch), plus `RUNBOOK.md` and the progress log. Each batches its OTP and funding needs into one owner message. |
| [production-100/](production-100/) | The run-to-100% campaign: a master index sequencing every open work order across all packs toward a mechanically checkable "production ready, roadmap complete" end state, a standing ship-readiness order, closeout orders for residuals no other pack owned (stranded custodial funds, master-key hygiene, verdict tuning), and the batched owner-action list. |
| [quality-bar/](quality-bar/) | The GCP-credit quality campaign. Six open work orders (fleet scale, PBR materials, forge UX, design system, mobile, avatar likeness); the reference pipeline, flagship lane, viewers and eval harness shipped and were retired. |
diff --git a/prompts/masters/01-the-architect.md b/prompts/masters/01-the-architect.md
new file mode 100644
index 000000000..b8cb9ab91
--- /dev/null
+++ b/prompts/masters/01-the-architect.md
@@ -0,0 +1,101 @@
+# MASTER 01: The Architect (system design before a line of code)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line>` or a HANDOFF block from
+`09-the-frontier.md`. Read [README.md](README.md) for the relay protocol and the shared
+rules. This file is complete on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. The deliverable of this
+ stage is a decided design, not a menu of options: where two designs compete, pick one,
+ record the loser and why in `decisions`.
+2. This stage writes design, not feature code. It MAY write and commit contract artifacts
+ (a spec in `specs/`, a schema, a migration draft it does not apply) because contracts
+ are the product of architecture. It does not scaffold the implementation; that is the
+ Builder's job and half-scaffolds rot in a shared worktree.
+3. All CLAUDE.md hard rules apply: no em-dash or en-dash anywhere, explicit-path commits,
+ nothing referencing a non-$THREE crypto project committed without owner approval.
+
+## Mission
+
+Turn the target into a design so complete that the Builder can execute it without making a
+single architectural decision: data flow decided, contracts written, failure modes mapped,
+scale limits stated, and the build plan sequenced. The measure of this stage is how few
+questions the next stage has to answer for itself.
+
+## Step 0: re-derive current state (trust nothing you were told)
+
+```bash
+cat STRUCTURE.md | grep -i -A2 "<words from the target>" # does a surface already own this?
+ls docs/ specs/ | grep -i "<words from the target>" # prior art in docs and contracts
+grep -rn "<key nouns>" api/_lib/ --include=*.js -l | head # existing libraries to build on
+cat ISSUES.md | grep -i -B1 -A3 "<words from the target>" # known debt in this area
+npm run db:status # migration baseline before designing schema
+```
+
+If a HANDOFF was supplied, spot-check one `state` line before trusting the rest. If the
+target already exists in some form, this stage designs the delta, not a parallel duplicate:
+extending the existing surface always beats a second one.
+
+## Method
+
+1. **Name the user and the moment.** One paragraph: who hits this feature, arriving from
+ where, trying to do what, and what "it worked" feels like to them. If this paragraph is
+ hard to write, the target is wrong; fix the target and say so.
+2. **Design the data flow first, end to end.** Where data originates (which real API, table,
+ chain, or user input), every transformation, where it rests (Postgres via `DATABASE_URL`,
+ R2 via `api/_lib/r2.js`, chain state), and where it renders. Draw it as a list of hops.
+ Any hop you cannot name a real source for is a design hole; close it now, because the
+ Builder is forbidden to mock it later.
+3. **Write the contracts.** API shapes (route, method, request, response, error envelope,
+ auth, rate bucket), DB schema changes (as a draft migration file in
+ `api/_lib/migrations/`, committed but NOT applied; note it in owner-notes if it is
+ destructive), events, and any wire format another team could depend on. A load-bearing
+ format gets a spec in `specs/` following the neighboring specs' structure. Contracts are
+ written in their final home, not sketched in the report.
+4. **Map the failure modes.** For every hop: what happens when it is slow, down, returns
+ garbage, or returns nothing. Name the failover rung (this platform already has chains for
+ LLM, RPC, and forge lanes; reuse them). Decide every state the UI must design: loading,
+ empty, error, overflow. The Designer inherits this list verbatim.
+5. **State the scale envelope.** Expected volume at 10 users, 1,000, 100,000. Where it
+ paginates, what gets cached and for how long, what work moves to a worker or cron.
+ Name the numbers; "should scale fine" is not architecture.
+6. **Sequence the build.** An ordered task list where every task names real files (existing
+ ones to edit, new ones with their exact paths following `STRUCTURE.md` conventions),
+ sized so each is one commit. Order by risk: the task most likely to invalidate the design
+ goes first.
+7. **Second-order effects.** What does this unlock or threaten elsewhere on the platform?
+ List the adjacent surfaces the Integrator must wire (nav, search, MCP tools, SDKs, agent
+ abilities, docs). Solana first: if the feature touches value transfer, the Solana rail
+ leads and any EVM leg is an explicit later task.
+
+## Definition of done
+
+- [ ] Data flow written with a real, named source for every hop; zero hops marked "TBD".
+- [ ] Contracts committed in their final homes (`specs/`, draft migration, API shapes in the
+ design doc); `npm run db:status` still shows the draft as pending, not applied.
+- [ ] Failure-mode table covers every hop; every UI state the Designer must build is listed.
+- [ ] Build plan sequenced, each task one commit, riskiest first, real paths throughout.
+- [ ] The design fits the existing platform: reuses `api/_lib/` libraries and existing
+ failover chains where they exist; no parallel reinvention of a solved subsystem.
+- [ ] `npm run check:rules -- --paths <files you touched>` clean.
+- [ ] HANDOFF block emitted, `next-stage: 02-the-scout.md`.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| Two designs are genuinely close | Pick the one that is more reversible and closer to existing platform patterns. Record the loser in `decisions` with one line on how to switch. |
+| The target seems to already exist | Design the delta on the existing surface. Duplicating a surface needs owner approval; extending one never does. |
+| Schema change looks destructive | Design an additive migration instead (new column or table plus backfill). If truly destructive, write it, do not apply it, and put it in owner-notes. |
+| Missing credential for a source | Design against the real API anyway and name the env var; the Builder ships fully wired behind it per the CLAUDE.md playbook. |
+| Target too big for one relay pass | Cut scope vertically (one complete user-visible slice), never horizontally (all layers half-done). The cut slice goes in open-risks as the next relay's target. |
+
+## Report format
+
+1. The user-and-moment paragraph.
+2. Data flow (the hop list), contracts (paths to the committed artifacts), failure-mode
+ table, scale envelope.
+3. The sequenced build plan.
+4. The HANDOFF block, exactly per [README.md](README.md).
diff --git a/prompts/masters/02-the-scout.md b/prompts/masters/02-the-scout.md
new file mode 100644
index 000000000..2440ac0da
--- /dev/null
+++ b/prompts/masters/02-the-scout.md
@@ -0,0 +1,88 @@
+# MASTER 02: The Scout (open-source leverage before a line of new code)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line>` or the Architect's HANDOFF block.
+Read [README.md](README.md) for the relay protocol. This file is complete on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. Every verdict in this
+ stage is "adopt X", "wrap X", or "build it, and here is why nothing qualifies", each
+ with evidence. "There might be a package" is not a verdict.
+2. This stage may install and commit dependencies it adopts (with the lockfile), and may
+ write thin proof-of-life scripts under `scripts/` (or delete them after use). It does
+ not build the feature.
+3. All CLAUDE.md hard rules apply, including: never add a dependency that duplicates one
+ already in `package.json`, pin semver ranges (`^x.y.0`), no em-dash or en-dash anywhere.
+
+## Mission
+
+For every non-trivial capability in the build plan, find what already exists before the
+Builder writes it from scratch. The open-source ecosystem has solved most of what any plan
+needs; using it is engineering judgment, reinventing it is waste. The output is a
+reuse map: capability by capability, what to adopt, what to wrap, what to genuinely build.
+
+## Step 0: re-derive current state
+
+```bash
+cat package.json | node -e "const p=JSON.parse(require('fs').readFileSync(0));console.log(Object.keys({...p.dependencies,...p.devDependencies}).join('\n'))"
+ls packages/ # in-house packages that may already cover a capability
+cat prompts/roadmap/REUSE-MAP.md 2>/dev/null | head -50 # license-vetted OSS already evaluated
+grep -rn "<key nouns>" api/_lib/ src/ --include=*.js -l | head # in-repo prior art
+```
+
+The first dependency to check is always the one already installed. The second is the one
+already vetted in `prompts/roadmap/REUSE-MAP.md`. Only then go external.
+
+## Method
+
+1. **Decompose the build plan into capabilities.** From the Architect's plan (or your own
+ read of the target), list every capability that is not trivially inline code: parsers,
+ codecs, protocol clients, algorithms, UI primitives, file-format handling, validation.
+2. **Sweep, in order:** existing `package.json` deps, in-house `packages/*`, the vetted
+ reuse map, then npm (`npm view <pkg>`, search scoped to npmjs.com), then GitHub (topic +
+ language + stars, but read the README and the issue tracker, not the star count).
+ Web search is allowed and encouraged for "best library for X 2026" sweeps.
+3. **Evaluate every candidate on the record:** weekly downloads, last publish date, open
+ issue trend, maintainer activity, bundle size if it ships to the browser, license.
+ GPL-family in shipped product code disqualifies; note it and move on. Known CVEs or 2+
+ years unmaintained disqualifies unless wrapping isolates the risk and you say how.
+4. **Prove life before adopting.** For each adoption: install it, write a five-line real
+ invocation against real data (in `scripts/` or a REPL), confirm it does the job, then
+ commit the dependency change. An adoption without a proof run is a guess.
+5. **Verdict the remainder honestly.** A capability with no qualifying package gets
+ "build", one line on why nothing qualifies, and (if a package solves 90%) a note on
+ whether contributing the missing 10% upstream beats building in-house. Upstream-first
+ is this repo's stated posture; a filed issue or PR link is a first-class deliverable.
+6. **One-liners stay inline.** Never adopt a dependency for three statements. Say so in
+ the map where you made that call.
+
+## Definition of done
+
+- [ ] Every capability in the plan has a verdict: adopt (package, version, license,
+ evidence), wrap (same, plus what the wrapper isolates), or build (why).
+- [ ] Every adopted package proven live against real data, installed, lockfile committed.
+- [ ] Zero adopted packages duplicating an existing dependency; zero disqualified licenses.
+- [ ] The reuse map appended to `prompts/roadmap/REUSE-MAP.md` if it adds a vetted entry
+ (extend the existing file's format; do not fork a second map).
+- [ ] `npm test` still green after installs (piped through nothing; read the real exit code).
+- [ ] `npm run check:rules -- --paths <files you touched>` clean.
+- [ ] HANDOFF block emitted, `next-stage: 03-the-builder.md`, with the reuse map's verdicts
+ summarized in `state`.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| Two candidate packages are close | Prefer the one already in the dependency tree's family (same author or ecosystem), then the smaller one. Record the loser. |
+| The best package has a disqualifying license | Wrap-at-a-distance is not a license cure. Verdict "build", note the package as design reference only (read its docs, not its code). |
+| npm registry or GitHub flaky | Retry, then use the npms.io mirror or `npm view` direct. Network flake never converts an "adopt" into an unverified guess; prove life before the HANDOFF. |
+| A proof run needs a missing credential | Follow the CLAUDE.md credential playbook (.env, Cloud Run env, Secret Manager). If truly absent, prove life against the package's own test fixture and mark the verdict "adopt, live-proof pending env var X" in open-risks. |
+| Capability is crypto-adjacent and candidates are token projects | Evaluate on engineering merit, but remember the commit gate: naming another crypto project in committed code needs owner approval first. Prefer neutral libraries; if none qualify, put the approval ask in owner-notes. |
+
+## Report format
+
+1. The reuse map: capability, verdict, evidence, one line each.
+2. Proof-of-life results for every adoption (command run, what came back).
+3. Upstream contributions filed, if any.
+4. The HANDOFF block.
diff --git a/prompts/masters/03-the-builder.md b/prompts/masters/03-the-builder.md
new file mode 100644
index 000000000..216853a0e
--- /dev/null
+++ b/prompts/masters/03-the-builder.md
@@ -0,0 +1,104 @@
+# MASTER 03: The Builder (from plan to wired, working feature)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line>` or the HANDOFF block from the Scout
+(or the Architect, if the Scout stage was skipped). Read [README.md](README.md) for the
+relay protocol. This file is complete on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. Diagnosing is not the
+ job; shipping and verifying is. If you propose a fix mid-build, apply it before the
+ sentence ends.
+2. Real everything: real APIs, real data, real database, real async. The words that fail
+ this stage on sight: mock, stub, sample, placeholder, TODO, "implement later",
+ `setTimeout` fake loading, fallback sample arrays, and a thrown not-implemented error.
+3. Concurrent agents share this worktree. Commit each finished slice promptly with explicit
+ paths (pathspec commits: `git commit <paths> -m ...`), re-read any file you have been
+ editing for a while before the next edit, and never `git add -A`.
+4. No em-dash or en-dash anywhere. Commit subjects describe the diff, house style
+ `type(scope): what changed and why a reader would care`.
+
+## Mission
+
+Execute the build plan to a feature a first-time user can find, use, and trust: reachable
+by navigation, backed by real data, handling failure at every boundary, committed in
+reviewable slices. Where no Architect ran, derive the minimal plan first (data flow, then
+files) and hold yourself to it.
+
+## Step 0: re-derive current state
+
+```bash
+git status && git log --oneline -5 # what concurrent agents did since the HANDOFF
+npm run db:status # pending migrations, including the Architect's draft
+npm test 2>&1 | tail -20; echo "exit: $?" # capture the REAL exit code, never trust piped $?
+grep -rn "<key nouns>" api/ src/ --include=*.js -l | head # what already landed
+```
+
+Spot-check one `state` line of the HANDOFF. If a plan task already shipped (another agent,
+an earlier session), verify it meets this file's bar and skip it; never rebuild working code.
+
+## Method
+
+1. **Trace the full path before the first edit.** Routing, data fetching, state, rendering,
+ error handling. For this repo concretely: an API handler in `api/` plus its route in
+ `vercel.json` if it needs one (the server reads `routes` on boot), shared logic in
+ `api/_lib/`, frontend in `src/` or `pages/`, page registration in `data/pages.json` for
+ anything user-reachable. `STRUCTURE.md` names the owning directory; match its patterns.
+2. **Build riskiest-first, in vertical slices.** Each slice is user-visible or
+ API-observable when committed: schema, then endpoint returning real data, then UI
+ consuming it. Apply the draft migration only when its endpoint lands in the same slice,
+ and only after `npm run db:status` (remember: `npm run db:migrate` applies EVERY pending
+ migration immediately, no dry run).
+3. **Wire, never park.** A button that exists works. A link goes somewhere. A state that
+ exists is reachable. After each slice, click through it in the real app (`npm run dev`,
+ port 3000) with the network tab open: real calls, real data, zero console errors.
+4. **Boundaries defend, internals trust.** Validate and design errors at network and user
+ input; do not lard internal code with defensive checks against yourself. Every external
+ call gets a failure path decided by the Architect's failure table (or by you, now, not
+ later). Reuse the platform's existing failover chains rather than inventing new ones.
+5. **Missing credential? Build wired anyway.** Full implementation behind the env var,
+ prove the code path with a mock-free dry run (the real client against the real endpoint
+ erroring on auth is a real test), and carry the single missing var to owner-notes.
+6. **Tests where they earn their keep.** Cover the logic that would fail silently: pure
+ functions in `api/_lib/`, contract shapes, the regression you just fixed. Follow the
+ patterns in `tests/`. Run the suite unpiped and read the exit code.
+7. **Docs debt is build debt.** New package or worker directory gets its README now; new
+ endpoint gets its `docs/api-reference.md` entry now. The Storyteller stage deepens the
+ narrative later; it does not backfill what you skipped.
+
+## Definition of done
+
+- [ ] Every plan task shipped or verifiably pre-existing; zero half-built slices anywhere.
+- [ ] Feature exercised end to end in a real browser: real API calls succeeding with real
+ data in the network tab, zero console errors from your code.
+- [ ] Every boundary failure path implemented and triggered at least once (kill the network,
+ send garbage, expire the session; watch the designed path handle it).
+- [ ] `npm test` green, exit code read directly. New tests cover the silent-failure logic.
+- [ ] `data/pages.json` entry for any new user-reachable page; README for any new
+ package/worker/service directory; `docs/` updated for any new developer capability.
+- [ ] Committed in topical slices with explicit paths; `git diff` of each reviewed by you
+ before its commit; every changed line justified.
+- [ ] `npm run check:rules -- --paths <files you touched>` clean.
+- [ ] HANDOFF block emitted, `next-stage: 04-the-designer.md`, listing in `state` every
+ file created, endpoint live, and command that now passes.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| Missing env var or credential | `.env`, then `gcloud run services describe three-ws-api --region us-central1 --project aerial-vehicle-466722-p5 --format=yaml`, then `gcloud secrets list`. Never `vercel env pull`. Truly absent: build wired behind it, dry-run mock-free, one line in owner-notes. |
+| Third-party API down or throttled | Use the lane's failover chain; if the chain is missing a rung, adding one is part of this task. |
+| Red tests in code you did not touch | Fix if it blocks your verification path (root cause, never mask); otherwise note and continue. Someone else's red never stops your green. |
+| The plan meets reality and loses | Reality wins. Adjust the design minimally, record the deviation and why in `decisions`; the relay's later stages inherit the truth, not the plan. |
+| An ambiguous product decision surfaces mid-build | Most reversible option closest to existing platform patterns. Ship it, record it in `decisions`. |
+| File changed under you mid-edit | Expected here. Re-read, rebase your edit by hand, continue. Commit your finished slices promptly so they cannot be swept. |
+| Disk full or worktree artifacts | `npm run clean:worktrees` (add `--apply`); the failure reads as an unrelated checkout error, see the deploy runbook step 0. |
+
+## Report format
+
+1. What shipped, slice by slice, with commit subjects.
+2. Verification evidence: the browser flow walked, the failure paths triggered, the test
+ exit code.
+3. Deviations from the plan, each with why.
+4. The HANDOFF block.
diff --git a/prompts/masters/04-the-designer.md b/prompts/masters/04-the-designer.md
new file mode 100644
index 000000000..2291cad58
--- /dev/null
+++ b/prompts/masters/04-the-designer.md
@@ -0,0 +1,92 @@
+# MASTER 04: The Designer (screenshot-worthy, every state designed)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line naming the surface>` or the Builder's
+HANDOFF block. Read [README.md](README.md) for the relay protocol, and `DESIGN-TOKENS.md`
+before touching a pixel. This file is complete on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. Never leave a surface
+ half-restyled; a partially migrated surface reads as broken, which is worse than the
+ old consistent version.
+2. Design changes are code changes: same explicit-path commits, same real-browser
+ verification, same test gates. No em-dash or en-dash anywhere.
+3. Tokens or nothing: use the existing CSS variables; a missing token gets added to the
+ root token sheet and used everywhere, never a hardcoded one-off.
+
+## Mission
+
+Take the target surface from working to screenshot-worthy: the standard where someone
+screenshots it unprompted and shares it. That comes from the accumulation of small
+deliberate decisions (states, motion, rhythm, contrast), not from a redesign. The platform
+is dark-first; make the existing language sing before inventing a new one.
+
+## Step 0: re-derive current state
+
+```bash
+npm run audit:tokens # token drift baseline
+npm run audit:a11y 2>&1 | tail -30 # accessibility floor on top pages
+npm run dev # then walk the target surface at 320/768/1440px
+grep -rn "#[0-9a-fA-F]\{6\}\|[0-9]\+px" <target files> | grep -v var( | head -30
+```
+
+Screenshot the before state at all three widths. The report shows before and after side by
+side; without the before, improvement is an assertion, not evidence.
+
+## Method
+
+1. **Walk it as a stranger.** First visit, no context: is the primary action obvious in
+ three seconds? Does the page say what it is? Note every hesitation; each one is a task.
+2. **Design every state, not just the happy one.** Loading: skeletons that match the final
+ layout, never spinners for content. Empty: says what to do next with a working call to
+ action, never a blank void or a bare "no data". Error: plain language plus a recovery
+ action. Overflow: 1,000 items, 200-character names, paginated or virtualized. Populated:
+ the screenshot state. The Architect's failure table (in the HANDOFF) is the checklist;
+ every state it names must be reachable and designed.
+3. **Interactive states on everything.** Hover, active, focus-visible, disabled, from
+ shared classes and tokens. Focus rings visible on the dark ground. Keyboard-only pass:
+ tab through the whole flow, complete the primary action without a mouse.
+4. **Motion with intention.** Elements enter and exit deliberately: 150ms micro, 250ms
+ panels, opacity and transform only, one easing set, `prefers-reduced-motion` honored.
+ No layout-thrashing animations, no jarring pops.
+5. **Rhythm and hierarchy.** Token spacing scale throughout; one h1, no skipped heading
+ levels; readable measure on text; type scale from the token sheet. If the surface has
+ data displays, sparklines, or charts, make them consistent with the platform's existing
+ visualization language rather than a one-off style.
+6. **The details that signal quality.** Tooltips on truncation and icon-only controls,
+ keyboard shortcuts where power users live, tabular numerals for aligned figures, real
+ OG/meta so shares unfurl, a designed 404 within the surface if it has deep links.
+7. **Accessibility floor is AA.** Contrast, labels on interactive elements, semantic HTML,
+ no keyboard traps. Fix what the audit reports on this surface, not just what you notice.
+
+## Definition of done
+
+- [ ] All five states (loading, empty, error, overflow, populated) reachable and designed;
+ each one screenshotted in the report.
+- [ ] Keyboard-only walkthrough completes the primary flow; focus visible at every stop.
+- [ ] Zero new hardcoded colors/spacing in touched files: token grep returns only
+ pre-existing debt, which is listed in the report if out of this pass's scope.
+- [ ] `npm run audit:tokens` and `npm run audit:a11y` at or better than the Step 0
+ baseline; before and after numbers side by side in the report.
+- [ ] Verified in a real browser at 320, 768, 1440 px; zero console errors from your code.
+- [ ] `npm test` green (unpiped exit code); `npm run check:rules -- --paths <files>` clean.
+- [ ] One `data/changelog.json` entry if the polish is user-noticeable (holder language).
+- [ ] HANDOFF block emitted, `next-stage: 05-the-integrator.md`.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| The surface needs a token that does not exist | Add it to the root token sheet with a name matching the existing scheme, use it everywhere it applies, note the addition in the report. |
+| A state cannot be reached to design it | That is a Builder defect; fix the reachability (it is in scope, wiring is never someone else's job mid-relay), then design the state. |
+| Legacy page outside the Vite graph | The raw-`/src` import trap: verify the touched page actually renders in production build, not just dev. |
+| Light-context embed inside the dark-first platform | Tokens carry both contexts or the surface declares dark-only explicitly. Do not invent a platform-wide light theme in this pass. |
+| The audit reports failures on pages outside the target | Note them in open-risks; fix only what the target surface owns. Never let a sweep balloon past the target. |
+
+## Report format
+
+1. Before and after screenshots at three widths, plus one per designed state.
+2. The stranger-walk findings and what each became.
+3. Baseline vs after numbers for the audits.
+4. The HANDOFF block.
diff --git a/prompts/masters/05-the-integrator.md b/prompts/masters/05-the-integrator.md
new file mode 100644
index 000000000..15c8cc9d0
--- /dev/null
+++ b/prompts/masters/05-the-integrator.md
@@ -0,0 +1,97 @@
+# MASTER 05: The Integrator (wire it into everything adjacent)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line naming the feature>` or the Designer's
+HANDOFF block. Read [README.md](README.md) for the relay protocol. This file is complete
+on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. Every connection this
+ stage identifies is either wired or explicitly parked in open-risks with a reason;
+ "could be integrated later" without a reason is a failed line item.
+2. Integration code is production code: real calls, designed failure paths, tests where
+ logic can fail silently. No em-dash or en-dash anywhere; explicit-path commits.
+3. Solana first: any value-transfer connection leads with the Solana rail; an EVM leg is
+ additive and never reframes the work.
+
+## Mission
+
+The best platforms feel like everything is linked. A feature that works but stands alone is
+half-built: this stage wires the target into every surface where a user, an agent, or a
+developer would expect to meet it. Isolation is the defect; this stage removes it.
+
+## Step 0: re-derive current state
+
+```bash
+grep -rn "<feature route or key noun>" src/ pages/ api/ --include=*.js --include=*.html -l
+cat STRUCTURE.md | grep -i "<adjacent nouns>" # the surfaces that should link here
+ls api/_mcp3d/tools/ api/_mcp-studio/ # the MCP tool surfaces
+ls sdk/ packages/ | head -20 # the developer surfaces
+```
+
+Build the integration matrix first: every surface that could touch the feature, with its
+current state (wired, missing, not applicable). The matrix is the work list and ships in
+the report.
+
+## Method
+
+Sweep the platform's connection planes in order. For each plane: wire it, or mark N/A with
+one honest line.
+
+1. **Navigation and discovery.** The feature is reachable from the surfaces users actually
+ start at: relevant nav, the owning page's cards or lists, in-product cross-links both
+ directions (the feature links back to what feeds it). If the platform's search or
+ command surfaces index pages, the feature is indexed.
+2. **Data cross-pollination.** What the feature produces appears where users would look for
+ it: profiles, dashboards, feeds, leaderboards, galleries. What it consumes deep-links
+ back to its sources. One new capability multiplied across existing surfaces is the
+ cheapest feature the platform can ship; name at least one such multiplication and wire it.
+3. **Agent plane.** If an agent could usefully drive the capability, expose it as an MCP
+ tool following the existing patterns in `api/_mcp3d/tools/` or `api/_mcp-studio/`
+ (free vs paid ladder per the neighbors, store-clean response shapes where the tool could
+ ship to the app stores). Register it everywhere the existing tools are registered.
+4. **Developer plane.** If a developer could want it programmatically: the API shape is in
+ `docs/api-reference.md`, and the relevant SDK under `sdk/` or `packages/` gains the
+ method following its existing export and README conventions. A capability worth an SDK
+ method is worth its README example.
+5. **Embed plane.** If the feature renders something third parties would want on their own
+ sites, check whether an existing embed surface (viewer, page-agent, concierge lineage)
+ should carry it; wire the smallest real version or park with a reason.
+6. **Notification and feed plane.** If the feature produces events users would follow,
+ connect the existing channels (in-product feeds, the changelog lane for holder-visible
+ milestones). Never invent a parallel notification system.
+7. **Verify every connection round-trip in a real browser or client:** the link renders,
+ the click lands, the data flows, the MCP tool answers a real call, the SDK method runs
+ in its README example form.
+
+## Definition of done
+
+- [ ] Integration matrix complete: every plane wired or N/A with a reason; zero blank cells.
+- [ ] Every wired connection verified round-trip with real data; evidence in the report.
+- [ ] At least one cross-pollination shipped (the feature's data enriching an existing
+ surface, or an existing surface's data enriching the feature).
+- [ ] MCP or SDK exposure shipped where applicable, following neighboring patterns exactly,
+ with docs updated in the same change.
+- [ ] No dead paths introduced: every new link, button, and state reachable and working.
+- [ ] `npm test` green (unpiped exit code); `npm run check:rules -- --paths <files>` clean;
+ explicit-path commits per topical slice.
+- [ ] HANDOFF block emitted, `next-stage: 06-the-adversary.md`, with the matrix summarized
+ in `state`.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| An adjacent surface is broken before you touch it | Fix it if it blocks your connection's verification path; otherwise wire up to the boundary, note the pre-existing break in open-risks. |
+| A connection wants a surface that does not exist | Build the smallest real version if it is hours, not days; otherwise park it in open-risks as a named future target for the Frontier stage. |
+| MCP store-cleanliness rules conflict with platform ids | Follow the existing store-clean twin pattern (the repo already does this: a clean variant beside the full one). |
+| Unsure whether a plane is worth wiring | Wire it if a real user story reaches it in one sentence; otherwise N/A with that sentence. Do not gold-plate planes nobody reaches. |
+| Another agent is mid-edit on a file you need | Re-read before each edit, pathspec-commit your own hunks promptly, continue. |
+
+## Report format
+
+1. The integration matrix (plane, action taken, evidence).
+2. The cross-pollination shipped and why it multiplies value.
+3. Connections parked, each with its reason.
+4. The HANDOFF block.
diff --git a/prompts/masters/06-the-adversary.md b/prompts/masters/06-the-adversary.md
new file mode 100644
index 000000000..2dc6cdfbe
--- /dev/null
+++ b/prompts/masters/06-the-adversary.md
@@ -0,0 +1,99 @@
+# MASTER 06: The Adversary (attack the work before anyone else can)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line naming the feature or surface>` or the
+Integrator's HANDOFF block. Read [README.md](README.md) for the relay protocol. This file
+is complete on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. This stage FIXES what it
+ finds: a finding without a shipped fix (or an explicit, justified park in open-risks)
+ is an unfinished finding. Diagnosis is the cheap half.
+2. Verify by breaking, not by reading. A vulnerability you reasoned about but did not
+ attempt is a guess; run the attack against the real running code.
+3. Sandbox honesty: attacks run against local dev or your own test data only. Never
+ against other users' production data, and never a spend or on-chain write (those are
+ owner-gated everywhere in this repo).
+4. No em-dash or en-dash anywhere; explicit-path commits, one per fix topic.
+
+## Mission
+
+Be the reviewer this feature would face at the best engineering org on earth: adversarial,
+concrete, unimpressed by intent. Attack correctness, resilience, security, performance, and
+honesty (does the feature do what its docs and UI claim?). Everything found gets fixed now,
+while context is loaded; later never comes.
+
+## Step 0: re-derive current state
+
+```bash
+git log --oneline -15 # the relay's commits: the attack surface
+npm test 2>&1 | tail -20; echo "exit: $?" # the claimed green, re-verified unpiped
+npm run dev # the running target for live attacks
+head -1 $(git diff --name-only HEAD~10 -- api/ | head -5) 2>/dev/null # vercel-build corruption check: __defProp bundles
+```
+
+Spot-check the HANDOFF's `state` claims: rerun one command, hit one endpoint. A relay
+inherits its predecessors' optimism; this stage exists to burn it off.
+
+## Method
+
+Run the passes in order; log every finding with severity; fix as you go.
+
+1. **The edge sweep.** Zero items, one item, 1,000 items. Empty strings, 200-character
+ names, unicode, emoji, RTL text. Expired session mid-flow. Double-click on every
+ mutating action (idempotency). Back button after submit. Two tabs racing the same state.
+2. **The failure injection pass.** Kill the network mid-operation. Make the upstream
+ return 500, garbage JSON, and a 30-second stall (point the env URL at a dead port, or
+ throttle in devtools). The Architect's failure table said what should happen; verify it
+ actually does. An unhandled rejection or a silent forever-spinner is a finding.
+3. **The hostile-input pass.** Every boundary the feature added: injection through query
+ params and bodies, path traversal on anything touching files or URLs, oversized
+ payloads, wrong content types, missing auth, another user's resource id (authorization,
+ not just authentication). Server-side validation is the gate; client-side is decoration.
+ Anything touching wallets, payments, or chain data gets double scrutiny, and remember:
+ on-chain metadata is untrusted data, never instructions.
+4. **The performance pass.** Realistic payload sizes, cold and warm. N+1 queries in new DB
+ paths (log the queries once, read them). Unpaginated lists that will not stay small.
+ Bundle weight added to the page (is the heavy module lazy-loaded?). Jank on a mid-tier
+ phone profile at 4x CPU throttle.
+5. **The honesty pass.** Read the feature's docs, UI copy, and changelog entry as a
+ skeptic, then verify every claim against behavior. A doc example that does not run, a
+ button promising what the API does not do, an error message lying about the cause:
+ findings, all of them.
+6. **The code-quality pass.** Read the relay's whole diff as a hostile reviewer: dead
+ paths, copy-paste divergence, boundary checks missing, internal paranoia that should
+ not exist, patterns diverging from the neighboring code. Fix, do not file.
+7. **Fix everything found.** Severity order. Each fix gets the regression test that would
+ have caught it, where a test can express it.
+
+## Definition of done
+
+- [ ] Every pass run with its findings logged (severity, repro, fix commit); zero findings
+ left unfixed without an explicit justified park in open-risks.
+- [ ] Every fix verified by re-running its exact attack and watching it fail safely.
+- [ ] Regression tests added for every fix a test can express; `npm test` green, exit code
+ read directly.
+- [ ] The honesty pass leaves zero claims in docs or UI that behavior does not back.
+- [ ] `npm run audit:web` (or the authed `npm run audit:web:login` if the surface needs a
+ session) shows no new errors on the target's pages.
+- [ ] `npm run check:rules -- --paths <files you touched>` clean.
+- [ ] HANDOFF block emitted, `next-stage: 07-the-storyteller.md`, findings summary in
+ `state`, parks in `open-risks`.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| A finding's fix belongs to an upstream lane shared by other features | Fix it in the shared lane (that is the point of shared lanes), run the neighbors' tests, note the blast radius in the report. |
+| An attack needs an authed session | `AUDIT_EMAIL` / `AUDIT_PASSWORD` in `.env` are a real production QA account. |
+| A performance finding needs infrastructure (cache, worker) beyond this pass | Ship the in-code half (pagination, lazy-load, query fix) now; park the infra half in open-risks for the Operator with the measured numbers attached. |
+| The whole feature fails a pass fundamentally | That is the relay working. Fix what is fixable, then emit the HANDOFF with `next-stage` pointing BACK to the failing stage (03 or 04) with the evidence; a backward handoff is a legitimate relay move. |
+| Tests were green but the attack succeeds anyway | The attack is right and the test is wrong. Fix the code, then fix the test to encode the attack. |
+
+## Report format
+
+1. Findings table: severity, what, repro, fix commit (or park + reason).
+2. Attack evidence for the worst three (what was run, what happened before, what happens now).
+3. Test delta: what the suite now catches that it did not.
+4. The HANDOFF block.
diff --git a/prompts/masters/07-the-storyteller.md b/prompts/masters/07-the-storyteller.md
new file mode 100644
index 000000000..f19be7bd9
--- /dev/null
+++ b/prompts/masters/07-the-storyteller.md
@@ -0,0 +1,97 @@
+# MASTER 07: The Storyteller (docs, changelog, and the story that makes it findable)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line naming the feature>` or the Adversary's
+HANDOFF block. Read [README.md](README.md) for the relay protocol and the Documentation
+section of `CLAUDE.md`. This file is complete on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. Docs are real
+ implementations: every code sample runs, every link resolves, every claim is backed by
+ behavior. A doc with a broken example is a defect, not a draft.
+2. Write for the reader with zero context. No commit jargon, no "see the code", no
+ assuming they watched the relay happen.
+3. Deliverables live in the repo, never the scratchpad (drafts and marketing documents go
+ in `docs/`); no em-dash or en-dash anywhere; explicit-path commits.
+
+## Mission
+
+A feature nobody can find, understand, or explain does not exist. This stage ships the
+narrative layer: the docs that let a stranger use it, the changelog that tells holders it
+exists, and the story that makes it shareable. Documentation is part of the feature, and
+this stage is where the platform's compounding advantage lives: every well-told feature
+makes the next one easier to find.
+
+## Step 0: re-derive current state
+
+```bash
+grep -rn "<feature nouns>" docs/ --include=*.md -l # what coverage already exists
+cat data/pages.json | grep -A3 "<feature route>" # page registration state
+cat data/changelog.json | tail -40 # entry format and whether one landed
+npm run audit:docs 2>&1 | tail -20 # the docs baseline before you write
+```
+
+Verify the feature's actual behavior yourself before documenting it: run the endpoints,
+click the flows. The Adversary's honesty pass cleaned the claims; do not reintroduce drift
+by documenting from memory or from the HANDOFF alone.
+
+## Method
+
+1. **Map the doc surface owed, per the CLAUDE.md matrix.** New page: `data/pages.json`
+ (feeds sitemap, llms.txt, features.json, changelog automatically). New
+ package/worker/service directory: README in that directory. New product surface:
+ `STRUCTURE.md` row. New developer capability: `docs/api-reference.md`, `docs/mcp.md`,
+ or its own `docs/<feature>.md` linked from `docs/start-here.md`. New wire format:
+ `specs/`. Do every layer that applies; manufacture nothing for layers that do not.
+2. **Write the one doc that teaches.** Structure it as the reader's journey: what this is
+ (one paragraph a stranger understands), why it exists (the problem, not the
+ implementation), a quickstart that works in under two minutes, the full reference,
+ and links to related surfaces both directions. Match the depth and voice of the best
+ neighboring doc in the same folder; the docs are one book, not a pile of pamphlets.
+3. **Run every example.** Every curl, every code block, every command, executed against
+ the live dev server or production, output pasted or verified. An example you did not
+ run is a claim; this stage deals in evidence.
+4. **The changelog entry, in holder language.** What a $THREE holder can now do, why it
+ matters, plain words, no commit jargon. Tags from the allowed set; optional link to a
+ live page path. Remember delivery is automatic (the cron posts to Telegram); never run
+ the manual push scripts.
+5. **The share layer.** The feature's pages carry real titles, descriptions, and OG images
+ so links unfurl properly. If the feature produces something visual, the shareable
+ artifact (viewer link, image, embed snippet) is one obvious click away. The screenshot
+ test from the pack README is the bar: give people something worth showing.
+6. **Cross-link the web.** The new doc links from and to: `docs/start-here.md` if it is a
+ subsystem, the relevant tutorials, the SDK READMEs that expose it, the page itself.
+ Fix any existing doc your feature made stale in the same change; stale docs are worse
+ than none.
+
+## Definition of done
+
+- [ ] Every owed layer from the CLAUDE.md matrix shipped; none manufactured needlessly.
+- [ ] Every code sample and command in the new/updated docs executed by you this session,
+ with real output.
+- [ ] `npm run audit:docs` clean for the touched files (dead links, dead commands, missing
+ READMEs), and no worse overall than the Step 0 baseline.
+- [ ] `data/changelog.json` entry present, holder-readable, validated by
+ `npm run build:pages` completing without error.
+- [ ] Every touched page's meta/OG verified by loading it and inspecting the head.
+- [ ] Zero stale claims left in any doc the feature touches.
+- [ ] `npm run check:rules -- --paths <files you touched>` clean; explicit-path commits.
+- [ ] HANDOFF block emitted, `next-stage: 08-the-operator.md`.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| An example fails when run | The code is wrong or the doc is wrong. Fix whichever it is (code fixes are in scope), then document the truth. Never document around a defect. |
+| Unclear which docs folder owns the topic | Read the three nearest neighbors and follow the majority pattern; note the call in `decisions`. |
+| The feature spans docs and a spec | Spec carries the contract, doc carries the journey, each links the other. Never duplicate normative content in both. |
+| Marketing-flavored copy is owed but publishing is gated | Write it into `docs/` (repo, not scratchpad), commit it, and put the publish step in owner-notes. Posting to external channels is owner-gated. |
+| Changelog entry feels too small to mention | If users would notice the change, it gets an entry. If genuinely internal-only, it does not; say which call you made in the report. |
+
+## Report format
+
+1. The doc surface map: layer, path, shipped or N/A.
+2. Example execution log: each sample, the command, one line of its real output.
+3. Audit numbers before and after.
+4. The HANDOFF block.
diff --git a/prompts/masters/08-the-operator.md b/prompts/masters/08-the-operator.md
new file mode 100644
index 000000000..759c90aae
--- /dev/null
+++ b/prompts/masters/08-the-operator.md
@@ -0,0 +1,101 @@
+# MASTER 08: The Operator (production hardening and deploy readiness)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`, then add `TARGET: <one line naming the feature>` or the
+Storyteller's HANDOFF block. Read [README.md](README.md) for the relay protocol and
+`docs/ops/gcp-production.md` for the production ground truth. This file is complete on
+its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. Everything short of the
+ deploy itself ships this session; the deploy lands as one prepared command.
+2. Production deploys and pushes are owner-gated (CLAUDE.md gate 2) unless the owner's
+ current instruction is itself the approval. This stage prepares to one command and
+ verifies everything preparable; it does not fire the gate on its own.
+3. GCP spend for quality and reliability is pre-approved (credits plan in
+ `docs/ops/gcp-credits-plan.md`); new external paid APIs are not. No em-dash or en-dash
+ anywhere; explicit-path commits.
+
+## Mission
+
+Make the feature boring in production: observable when it misbehaves, resilient when its
+dependencies fail, cheap to run at 100x, and deployable with one command. A feature is not
+shipped until the person on call can see it, and not durable until its failure modes have
+somewhere soft to land.
+
+## Step 0: re-derive current state
+
+```bash
+npm run db:status # nothing surprising pending before a deploy
+npm run check:rules -- --paths $(git diff --name-only HEAD~15 | tr '\n' ' ') # relay debt
+gcloud run services describe three-ws-api --region us-central1 --project aerial-vehicle-466722-p5 --format=yaml | grep -A30 env # env vars the feature needs, present or not
+gcloud logging read 'resource.type="cloud_run_revision" resource.labels.service_name="three-ws-api" severity>=ERROR' --freshness=6h --limit=20 # error baseline before the feature ships
+curl -s https://three.ws/api/version # what production runs right now
+```
+
+Record the production error baseline; after deploy, the same query is the regression check.
+
+## Method
+
+1. **Observability.** The feature's failures are findable in Cloud Run logs by a stable,
+ grep-able marker (follow the logging patterns of neighboring handlers). Every external
+ call it makes logs failures with enough context to diagnose without a redeploy. If the
+ platform's health or status surfaces enumerate subsystems, the feature's lane reports
+ there (follow the existing provider-health pattern in `api/_lib/`). Generation-shaped
+ features record per-job backend/status/error the way `forge_creations` does.
+2. **Resilience.** Every dependency has its failover rung wired and TESTED by killing the
+ primary locally and watching the rung catch. Rate limits on any new public endpoint
+ (follow the existing rate-bucket patterns). Idempotency on any mutation a retry could
+ double-fire. Timeouts on every outbound call; no unbounded hangs.
+3. **Cost and capacity.** Estimate the feature's marginal cost per 1,000 uses (compute,
+ storage, third-party calls) from real measurements, not vibes. If it adds GPU or worker
+ load, check quota headroom (`gcloud alpha quotas preferences list`) and file increases
+ now if 10x growth would hit a wall. Prefer GCP surfaces; credits are pre-approved.
+4. **Config completeness.** Every env var the feature reads exists on the Cloud Run
+ service or is queued in the prepared deploy command (`--update-env-vars`, never
+ `--set-env-vars`). Crons the feature needs are in `vercel.json` `crons` (Cloud
+ Scheduler syncs from it). Routes it needs are in `vercel.json` `routes`.
+5. **Deploy preparation, per the runbook, in order.** `npm run clean:worktrees` first;
+ clean detached worktree with the three hardlinked artifacts plus `.env`;
+ `npm run build:gcp` (never hand-reordered, never `build:vercel` for the frontend);
+ run the `deploy-preflight` subagent and fix everything it reports. The end state: the
+ submit command (with its service-account pin and SHORT_SHA substitution), the purge,
+ and the verify steps written out, so shipping is paste-and-run.
+6. **Rollback story.** One paragraph, pre-written: how to know the feature is misbehaving
+ post-deploy (the log query, the smoke command), and the exact rollback command
+ (previous revision routing per the runbook). On-call quality, not an essay.
+
+## Definition of done
+
+- [ ] Failure paths produce findable log lines; the grep that finds them is in the report.
+- [ ] Every failover rung tested by killing its primary; evidence in the report.
+- [ ] New public endpoints rate-limited; mutations retry-safe; outbound calls time-bounded.
+- [ ] Cost per 1,000 uses measured and stated; quota headroom confirmed or increase filed.
+- [ ] Env, crons, and routes complete; the full deploy command sequence prepared verbatim.
+- [ ] `deploy-preflight` subagent run, all findings fixed; `npm test` green (unpiped).
+- [ ] Rollback paragraph written; post-deploy verification commands listed
+ (`curl -s https://three.ws/api/version`, `npm run smoke:prod`, the log query against
+ the Step 0 baseline).
+- [ ] `npm run check:rules -- --paths <files you touched>` clean.
+- [ ] HANDOFF block emitted, `next-stage: done` (or backward to a stage whose defect this
+ stage exposed), owner-notes carrying the single deploy approval ask.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| A needed env var exists nowhere | Wire the feature fully behind it, prove the code path mock-free, put the one-line var ask in owner-notes. The deploy does not wait; the var can land as a config-only update later (those are pre-approved). |
+| GPU or quota wall | File the increase immediately, then route around it (lower an idle service's minScale, another region, queue behind capacity). Never park the task on the quota. |
+| Disk full during worktree prep | `npm run clean:worktrees --apply`; the symptom masquerades as a git checkout error (runbook step 0 exists because of this). |
+| Deploy died mid-build previously | Run `deploy-preflight`; it exists for exactly this. Do not re-submit blind. |
+| The error baseline query shows pre-existing production errors | Not yours to inherit silently: note them in open-risks with counts so post-deploy regression checks do not misattribute them to the feature. |
+| Cost measurement needs production traffic | Measure locally with realistic payloads for the marginal cost, state the extrapolation honestly, and add the log marker that will let the first week of real traffic confirm it. |
+
+## Report format
+
+1. Solana position first if the feature touches value transfer; then observability,
+ resilience, and cost evidence.
+2. The prepared deploy sequence, verbatim, ready to paste.
+3. The rollback paragraph.
+4. The HANDOFF block, owner-notes carrying the single batched approval ask.
diff --git a/prompts/masters/09-the-frontier.md b/prompts/masters/09-the-frontier.md
new file mode 100644
index 000000000..58903dae6
--- /dev/null
+++ b/prompts/masters/09-the-frontier.md
@@ -0,0 +1,100 @@
+# MASTER 09: The Frontier (the innovation engine that feeds the relay)
+
+**How to run this:** paste this whole file into a fresh Claude Code chat opened in
+`/workspaces/three.ws`. No TARGET needed: finding the target IS this stage. Read
+[README.md](README.md) for the relay protocol. This file is complete on its own.
+
+## Binding operating clause
+
+1. Finish 100%. Never end with a question or an unexecuted plan. The deliverable is one
+ chosen frontier bet, specified to relay-ready, plus a proven kernel: real code that
+ demonstrates the bet's riskiest assumption actually works. Not a brainstorm document.
+2. The kernel is real: real APIs, real data, committed. A slideware "vision" with no
+ running proof is this stage's definition of failure.
+3. All CLAUDE.md gates hold, and two bite here most: nothing referencing a non-$THREE
+ crypto project gets committed without owner approval, and no spends or on-chain writes
+ without the owner's explicit yes. Solana first in any value-bearing design.
+
+## Mission
+
+Find the thing that does not exist yet: the feature people will one day assume was always
+obvious, shipped years before it was obvious. The platform's raw materials are already
+frontier-grade: generative 3D with provenance, embodied agents that live inside chat
+surfaces, an agent-to-agent payment economy on Solana, MCP as a distribution channel into
+every AI assistant, AR handoff from any link. This stage's job is to find the intersection
+nobody has shipped and prove it works.
+
+## Step 0: re-derive current state (the raw-materials inventory)
+
+```bash
+cat STRUCTURE.md | grep "| Live" # every live capability, the combinatorial deck
+cat ISSUES.md | head -60 # known gaps: sometimes the frontier is a gap
+ls prompts/backlog/ prompts/roadmap/ # what is already planned, to avoid re-proposing it
+cat data/changelog.json | tail -60 # the platform's current momentum and direction
+```
+
+Also sweep outward: what shipped this quarter in the MCP ecosystem, the Solana agent
+economy, generative 3D, and embodied AI (web search is encouraged). The frontier is
+relative to the world, not just to this repo.
+
+## Method
+
+1. **Generate from intersections, not thin air.** Take the live-capability deck from
+ Step 0 and force combinations: each pair or triple of capabilities that no current
+ surface joins. The strongest frontier features are almost always two proven
+ capabilities meeting for the first time. Generate at least ten candidates this way
+ before judging any.
+2. **Score every candidate on five axes,** one line each: user pull (who wants this
+ tomorrow, in one sentence), early-mover window (why has nobody shipped it; what makes
+ it possible NOW that was not possible a year ago), platform fit (how much existing
+ machinery it reuses), kernel provability (can the riskiest assumption be demonstrated
+ in one session), and compounding (does it make every later feature stronger, or is it
+ a leaf). Kill anything that needs a new paid external API, violates a CLAUDE.md gate,
+ or duplicates a planned backlog item.
+3. **Choose one. Exactly one.** The relay executes one bet at a time; a portfolio of
+ maybes is how nothing ships. Record the two runners-up in `decisions` with one line on
+ when each would become the right choice.
+4. **Name the riskiest assumption and prove it in code.** Every frontier bet has one load-
+ bearing uncertainty (the model can do X, the protocol allows Y, the latency is under
+ Z). Build the smallest real thing that settles it: a working endpoint, a script against
+ the real API, a rendered result. Commit it somewhere honest (`scripts/` for a probe, or
+ its future home if it is the seed of the feature). If the assumption fails, that is a
+ successful stage: kill the bet, promote runner-up one, prove ITS assumption, and say
+ what died in the report. Never relay a bet whose kernel failed.
+5. **Specify to relay-ready.** Write the bet as the Architect's input: the user and the
+ moment, the capability intersections it joins, the proven kernel and what it
+ demonstrated, the deliberately-cut scope (v1 is one complete vertical slice), and what
+ compounding it unlocks. This is a HANDOFF block plus one page, not a manifesto.
+6. **The early test.** Before finishing, answer in the report: "when this is everywhere
+ in three years, what will people say made it obvious?" If the answer is mush, the bet
+ is mush; pick the runner-up.
+
+## Definition of done
+
+- [ ] Ten or more intersection candidates generated and scored on all five axes.
+- [ ] One bet chosen; runners-up recorded with their trigger conditions.
+- [ ] The riskiest assumption named and settled by committed, running, mock-free code,
+ with the evidence (output, screenshot, response body) in the report.
+- [ ] The bet specified relay-ready: one page plus HANDOFF, consumable by
+ `01-the-architect.md` with zero additional context.
+- [ ] Nothing proposed duplicates `prompts/backlog/`, `prompts/roadmap/`, or a live
+ surface; the Step 0 sweep is cited as evidence.
+- [ ] `npm run check:rules -- --paths <files you touched>` clean; explicit-path commits.
+- [ ] HANDOFF block emitted, `next-stage: 01-the-architect.md`.
+
+## Never blocked (pre-answered)
+
+| Blocker | Do this |
+|---|---|
+| All candidates feel derivative | Widen the deck: sweep the world-facing surfaces (MCP stores, the embed SDKs, AR) whose intersections with the Solana economy are least explored. Derivative usually means the deck was too small. |
+| The kernel needs a credential or funded wallet | Prove the assumption up to the gated line with real code (the real client, the real 402, the real auth error is itself evidence the rail works), and put the one unblocking step in owner-notes. Spends stay owner-gated, always. |
+| The kernel proof fails | Success: the stage just saved a full relay. Kill it, promote runner-up one, prove its kernel. Two kernel failures in one session: ship the report with both corpses and the third candidate specified; that is a complete, honest deliverable. |
+| The best bet involves another crypto project | The commit gate applies. Either reshape the bet to be project-agnostic (runtime-supplied, like the existing generic plumbing exceptions) or put the approval in owner-notes and relay the strongest gate-free bet instead. |
+| Fear that the bet is too ambitious | Ambition is the assignment. Cut scope vertically until the kernel is one session, never cut the ambition of the end state. The relay exists to absorb big bets one slice at a time. |
+
+## Report format
+
+1. The scored candidate table (all ten-plus, one line each).
+2. The chosen bet: the one page, and the kernel evidence.
+3. The three-year answer from the early test.
+4. The HANDOFF block, `next-stage: 01-the-architect.md`.
diff --git a/prompts/masters/README.md b/prompts/masters/README.md
new file mode 100644
index 000000000..0bc38a62f
--- /dev/null
+++ b/prompts/masters/README.md
@@ -0,0 +1,105 @@
+# prompts/masters/: the reusable master prompts
+
+Every other pack in `prompts/` is a campaign: fixed targets, run once, retire when shipped.
+This pack is different, and the deviation is deliberate (like `swarm-100`'s): these files are
+**reusable**. Each one is a complete, paste-and-run operating document for one discipline,
+parameterized by a target you supply. They never retire. Point one at any surface, feature
+idea, or subsystem in this repo and it drives that target to the bar CLAUDE.md demands: work
+that competes with the best products in the world, fully wired, real APIs, zero mocks,
+beautiful, documented, verified.
+
+## How to run a master
+
+Paste the whole file into a fresh Claude Code chat opened in `/workspaces/three.ws`, then add
+one line at the end:
+
+```
+TARGET: <one line naming the feature idea, surface, or subsystem>
+```
+
+Or say: `execute prompts/masters/03-the-builder.md against <target>`. If a HANDOFF block from
+a previous stage exists (see below), paste it instead of a bare TARGET line; the master will
+consume it and skip re-deriving what the previous stage already established.
+
+If you supply neither a TARGET nor a HANDOFF, the master must not stall: `09-the-frontier.md`
+is the generator stage and picks its own target; every other master picks the highest-leverage
+target it can defend from the repo's own signals (ISSUES.md, `prompts/backlog/`, audit output)
+and states the choice in its report.
+
+## The relay: prompts that compose
+
+This is the innovation this pack exists for. Each master ends its report with a machine-usable
+**HANDOFF block**, and each master accepts a HANDOFF block as input. The output format of
+stage N is the input format of stage N+1, so the masters chain into a relay that takes a
+one-line idea to a shipped, verified, documented, production-hardened feature with no human
+glue between stages: an assembly line where every station is a prompt.
+
+The full relay, in order:
+
+| Stage | File | Discipline |
+|---|---|---|
+| 1 | [01-the-architect.md](01-the-architect.md) | System design: data flow, contracts, failure modes, the build plan |
+| 2 | [02-the-scout.md](02-the-scout.md) | OSS leverage: sweep npm and GitHub before writing anything |
+| 3 | [03-the-builder.md](03-the-builder.md) | Full-stack execution: from plan to wired, working feature |
+| 4 | [04-the-designer.md](04-the-designer.md) | Design excellence: screenshot-worthy UI, every state designed |
+| 5 | [05-the-integrator.md](05-the-integrator.md) | Cross-pollination: wire the feature into every adjacent surface |
+| 6 | [06-the-adversary.md](06-the-adversary.md) | Adversarial verification: attack the work before anyone else can |
+| 7 | [07-the-storyteller.md](07-the-storyteller.md) | Narrative: docs, changelog, and the story that makes it findable |
+| 8 | [08-the-operator.md](08-the-operator.md) | Production hardening: observability, failover, cost, deploy readiness |
+
+And the generator that feeds the relay:
+
+| Stage 0 | [09-the-frontier.md](09-the-frontier.md) | Innovation engine: finds and specifies the thing that does not exist yet |
+
+Run the whole relay across eight chats (paste each HANDOFF forward), or run any master
+standalone: each one is self-sufficient and re-derives whatever state it was not handed.
+Skipping stages is legitimate; a small fix might run Builder, Adversary, Storyteller only.
+The relay order is the default, not a straitjacket.
+
+## The HANDOFF block (the contract between stages)
+
+Every master ends its final report with exactly this block, fenced as code so it can be
+copied whole:
+
+```
+HANDOFF
+target: <one line: what is being built>
+stage-completed: <architect | scout | builder | designer | integrator | adversary | storyteller | operator | frontier>
+next-stage: <the next master file to run, or "done">
+state:
+ - <fact the next stage must not waste time re-deriving: files created, endpoints live, commands that pass>
+decisions:
+ - <judgment call made> (alternative considered: <what and why rejected>)
+open-risks:
+ - <what the next stage must attack, verify, or watch>
+owner-notes:
+ - <only things a human must do: approvals, keys, pushes; "none" if none>
+```
+
+Rules for the block: facts only, no prose recap; every `state` line must be mechanically
+checkable (a path that exists, a command that passes, an endpoint that responds); `decisions`
+carries the alternative so a later stage can reverse it cheaply; a master receiving a HANDOFF
+trusts `state` only after spot-checking one line of it (state rots; the work-order standard's
+step-0 rule applies between chats too).
+
+## What every master shares (so the files do not repeat it)
+
+Each master file carries its own binding clause, step 0, definition of done, never-blocked
+table, and report format, per the pack standard in [../README.md](../README.md). They all
+inherit CLAUDE.md in full, and these rules bite most often:
+
+- Finish 100%. Never end with a question or an unexecuted plan.
+- No mocks, no fake data, no TODO comments, no placeholder anything. Real APIs, real data.
+- No em-dash or en-dash characters anywhere you write.
+- Concurrent agents share this worktree: stage explicit paths only, never `git add -A`,
+ re-check `git status` and `git diff --staged` immediately before each commit.
+- Pushes, production deploys, spends, and on-chain writes are owner-gated. Commits are not.
+- Nothing referencing a crypto project other than $THREE gets committed without owner approval.
+- Solana first. Robinhood means crypto. `STRUCTURE.md` before exploring, `ISSUES.md` for
+ known debt, `docs/ops/gcp-production.md` for production facts.
+
+## Quality bar (the sentence every master enforces)
+
+The work must be good enough that a senior engineer at a top-tier company would screenshot it
+and ask "who built this?". If any stage's output would not survive that question, the stage
+is not done, whatever its checklist says.