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): quality-bar campaign pack, GCP-credit realism + UX program

nirholas8abe16398a39
diff --git a/prompts/quality-bar/01-photoreal-reference-pipeline.md b/prompts/quality-bar/01-photoreal-reference-pipeline.md
new file mode 100644
index 000000000..24e0c37cb
--- /dev/null
+++ b/prompts/quality-bar/01-photoreal-reference-pipeline.md
@@ -0,0 +1,65 @@
+# 01: Photoreal reference-image pipeline (the realism multiplier)
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Make every text→3D generation route through photoreal reference images by default, at every
+tier, so the output looks like an IRL object or person instead of a game asset. This is the
+single highest-leverage realism change on the platform and it runs entirely on Vertex AI
+(pre-approved credits).
+
+## Current state (verify against tree, commits of 2026-07-16)
+
+`api/forge-enhance.js` already leads with a Vertex quality lane and photoreal-by-default
+reference images (commit 2faa4ff5d), and the Granite art-director pass is default-on
+(776e2a5ab, 94d0f8dc7). Your job is to take this from "shipped" to "excellent and proven at
+every tier and entry point", not to rebuild it.
+
+## Tasks
+
+1. **Audit every entry point that reaches the forge router** and confirm each one actually
+ gets the reference-image treatment: `/forge` UI, `/api/forge` direct callers, the MCP tools
+ (`forge_free`, `mesh_forge`, `text_to_avatar`, `forge_avatar` in `api/_mcp3d/`), the ChatGPT
+ GPT lane, and `/api/nim-forge.js`. Any lane that skips enhancement is a realism hole; wire it.
+2. **Multi-view consistency.** A single reference image leaves the model guessing the back.
+ Where the image→3D backend accepts multiple views (Hunyuan3D does; check TRELLIS worker
+ contract in `workers/model-trellis/main.py`), generate a 3-view set (front, 3/4, back) on
+ `gemini-2.5-flash-image` with a shared seed/description so the views agree. Studio-lit,
+ neutral seamless background, no dramatic shadows, full subject in frame, no crop.
+3. **Subject-aware prompt templates.** In `api/_lib/forge-director-prompts.js`, split the
+ photoreal template by subject class (person / creature / hard-surface object / food /
+ vehicle / architecture). People need explicit skin texture, subsurface scattering cues, and
+ catchlight language; objects need material callouts (brushed aluminum, worn leather). Keep
+ the existing logo/brand lexicon behavior intact.
+4. **Reference-image QA gate.** Before spending GPU time on a bad reference, score the
+ generated reference with a cheap Vertex flash vision call: is the subject complete, centered,
+ photorealistic, background clean? One retry with corrective feedback on failure, then
+ proceed with best-of. Log scores so the eval harness (prompt 09) can correlate.
+5. **Cache references.** Same enhanced prompt within 24h should reuse its reference set
+ (existing cache patterns in `api/_lib/`; key on enhanced-prompt hash). Credits are approved
+ but latency matters for UX.
+6. **Prove it.** Run the fixed benchmark prompt set (create it if prompt 09 has not run yet:
+ 10 prompts covering a person, a face closeup, an animal, food, a vehicle, a household
+ object, a tree, a building, a tool, a fantasy subject) through the full pipeline at each
+ tier. Save before/after GLB screenshots. At least 8/10 must be visibly more photoreal than
+ the pre-change output; iterate on templates until they are.
+
+## Definition of done
+
+- Every entry point verified wired (list them in the report with file:line).
+- Multi-view references feeding every backend that accepts them.
+- Benchmark screenshots in the report; `data/changelog.json` entry (holder language: "3D
+ generations look dramatically more real"); docs updated (`docs/` forge page if it exists).
+- Zero new non-GCP APIs. All committed via pathspec commits.
+
+## Anticipated blockers, pre-answered
+
+- Vertex image model name drift: list models with `gcloud ai models list` or check
+ `api/_providers/gcp.js` for the exact id in use; use what the code uses.
+- Image model refuses a subject (real person's name): the director template must already
+ genericize identity prompts; keep that behavior, never generate real-person likenesses from
+ names, and note nothing else.
+- Hunyuan3D not yet Ready: verify with `gcloud run services describe model-hunyuan3d`; if still
+ waiting on quota, prove the pipeline on TRELLIS and note hunyuan verification as a one-command
+ re-run for when it lands.
diff --git a/prompts/quality-bar/02-hunyuan3d-flagship-lane.md b/prompts/quality-bar/02-hunyuan3d-flagship-lane.md
new file mode 100644
index 000000000..c073c86c6
--- /dev/null
+++ b/prompts/quality-bar/02-hunyuan3d-flagship-lane.md
@@ -0,0 +1,61 @@
+# 02: Hunyuan3D flagship lane, live and leading
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Get `model-hunyuan3d` fully Ready on Cloud Run, verified end-to-end through the router, and
+promoted to the quality-leading lane for paid/high tiers. Hunyuan3D-2 (shape + paint stages)
+is the best mesh+texture model we self-host; it is the difference between "decent 3D" and
+"looks like a photograph of a real object". Spend and weights are pre-approved.
+
+## Current state (2026-07-16 21:15 UTC, re-verify)
+
+- Revision `model-hunyuan3d-00005` is deploying, blocked on the L4 quota grant (3 granted, all
+ held by trellis/triposr/unirig; increase to 16 filed, `gcloud alpha quotas preferences list`).
+- The swarm shipped today: tier-mapped generation budgets (d9eb9059c), reconstruct wire shape
+ (0c2cd1ec7), build deps (cc921f3d3), pinned ML stack (145c6b0fb), portrait realism cues
+ (f131e51b0). Read `workers/model-hunyuan3d/main.py` and its cloudbuild before touching anything.
+
+## Tasks
+
+1. **Land the deploy.** Watch the quota preference; once granted (or after applying the
+ documented interim fallback in `_shared.md`: triposr minScale to 0), confirm the revision
+ goes Ready. If the container itself fails, read revision logs
+ (`gcloud logging read 'resource.labels.service_name="model-hunyuan3d"' --limit 50`), fix,
+ rebuild via its cloudbuild.yaml (pin the `three-ws-build@` SA), redeploy. Iterate to Ready.
+2. **Weights.** Confirm the exact checkpoints main.py loads exist in `three-ws-model-weights`;
+ if missing, download from the official Tencent Hunyuan3D-2 release and `gsutil cp` them in.
+ Record sizes and paths in the report.
+3. **Direct-worker E2E.** Bearer `GCP_RECONSTRUCTION_KEY`, POST a reference image, get a GLB.
+ Verify the paint stage ran (textured, not gray). Time it warm and cold.
+4. **Router E2E.** Set/confirm `GCP_HUNYUAN3D_URL` on `three-ws-api` env, confirm
+ `api/forge.js` + `api/_lib/forge-tiers.js` route high/paid tiers to it with the tier budgets
+ the swarm shipped, and run a real `/api/forge` request to a finished GLB. Confirm poll-time
+ failover still degrades to TRELLIS if hunyuan 5xxs (kill-test it once).
+5. **Quality tuning.** With credits approved, set high-tier budgets to what the L4 can bear:
+ more octree resolution / inference steps on shape, max paint resolution, and multi-view
+ conditioning (pairs with prompt 01). Warm-instance it (minScale 1) once quota is 16 so paid
+ users never eat a cold start.
+6. **Unblock the ChatGPT high tier.** Memory says high-tier-in-ChatGPT was rolled back because
+ the HF lane blocks and true high needs this worker. With hunyuan live, re-enable the high
+ tier for the GPT lane if the poll handle exists; otherwise document exactly what the GPT
+ lane still lacks.
+7. **Changelog + docs.** Holder-readable entry ("our most realistic 3D engine is live");
+ update `workers/model-hunyuan3d/README.md` (create if missing) and the forge docs.
+
+## Definition of done
+
+- Service Ready, direct E2E and router E2E both proven with saved GLB URLs and screenshots.
+- Failover kill-test passed. Tier budgets tuned and recorded. Changelog + READMEs shipped.
+- Report includes warm/cold latency, GPU seconds per generation, and estimated credit burn per
+ 1,000 generations.
+
+## Anticipated blockers, pre-answered
+
+- Quota not granted after your best wait: apply the triposr-minScale-0 fallback, deploy, verify,
+ restore triposr minScale 1 if quota later allows, and record the sequence.
+- OOM on L4 (24GB): drop paint batch size / enable model CPU offload before dropping quality;
+ raising memory does not add VRAM.
+- Torch/CUDA wheel drift: the swarm pinned the stack today (145c6b0fb); do not upgrade pins,
+ build on them.
diff --git a/prompts/quality-bar/03-gpu-fleet-scaleout.md b/prompts/quality-bar/03-gpu-fleet-scaleout.md
new file mode 100644
index 000000000..9f1a5393d
--- /dev/null
+++ b/prompts/quality-bar/03-gpu-fleet-scaleout.md
@@ -0,0 +1,57 @@
+# 03: GPU fleet scale-out and cold-start UX
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Turn the single-GPU-per-model setup into a fleet that absorbs real traffic with credits:
+fix the broken TripoSG worker, deploy text2motion, raise scale ceilings once quota lands, and
+make every remaining cold start honest and pleasant in the UI. Users should never stare at a
+silent spinner because a GPU was cold.
+
+## Tasks
+
+1. **Quota watch, then scale.** Poll `gcloud alpha quotas preferences list
+ --project=aerial-vehicle-466722-p5` until `NvidiaL4GpuAllocNoZonalRedundancyPerProjectRegion`
+ grantedValue rises above 3 (increase to 16 filed 07-16). Then: `model-trellis` maxScale 3
+ (keep min 1), `model-hunyuan3d` min 1 / max 2 (after prompt 02 lands it), `unirig` max 2,
+ `model-triposr` min 0 / max 2. Verify each update leaves the service Ready. If the grant is
+ denied or stalls for the whole session, file a fresh preference at a smaller ask (8) and
+ document; do everything else regardless.
+2. **Fix model-triposg.** It fails Cloud Run health checks (container never binds 8080 in time;
+ the swarm fixed the CUDA build in 827e2f5c4, so the remaining issue is startup shape). Apply
+ the standard pattern the other workers use (read `workers/model-trellis/main.py`): bind the
+ port and return healthz immediately, load weights lazily in a background thread, report
+ `loading` status until ready, and set `--timeout=600` plus a generous startup probe on the
+ service. Rebuild, deploy to Ready, prove a generation through it, then wire `GCP_TRIPOSG_URL`.
+3. **Deploy model-text2motion** (`workers/model-text2motion/`) the same way and set
+ `GCP_TEXT2MOTION_URL`. Prove one text→motion clip end to end and note where the product
+ consumes it (animation library / `src/animation-retarget.js` consumers).
+4. **Cold-start honesty in the UI.** `api/_lib/forge-lane-health.js` already computes cold-start
+ ETA. Make sure `/forge` (and every surface that polls a generation: `/ar`, MCP tool
+ responses, agent screens) surfaces a real state: "GPU waking up, ~90s" with elapsed/remaining,
+ then live stage labels (queued / shape / texture / finishing). No fake progress bars, real
+ stages only. Skeleton previews over spinners.
+5. **Keep-warm strategy.** With min-instances set, add a Cloud Scheduler ping only where
+ min-instances is deliberately 0 (triposr, text2motion): a `*/10` healthz touch during peak
+ hours (14:00-04:00 UTC) so first users rarely hit full cold starts. Crons are Cloud
+ Scheduler jobs (NOT GitHub Actions); follow an existing job's shape in the runbook.
+6. **Load test.** Fire 10 concurrent real generations through the router (mixed tiers) and
+ record queue behavior, failover events, and p50/p95 completion. Fix anything that dropped a
+ job silently; `api/_lib/forge-scale.js` owns concurrency limits.
+
+## Definition of done
+
+- TripoSG and text2motion Ready and proven through the router with saved outputs.
+- Scale ceilings raised per quota (or the denial documented with the retry filed).
+- Every generation surface shows real stage/ETA states at 320/768/1440 widths.
+- Load test numbers in the report; changelog entry for the user-visible speed/reliability gain.
+
+## Anticipated blockers, pre-answered
+
+- Quota stuck in reconciling all session: proceed with everything else; the scale-up commands
+ go in the report as ready-to-run one-liners.
+- TripoSG weights missing from `three-ws-model-weights`: fetch the official release weights and
+ stage them (record source URL + size).
+- Scheduler job creation needs a service account: use the existing `three-ws@` runtime SA
+ pattern from `docs/ops/gcp-production.md`.
diff --git a/prompts/quality-bar/04-pbr-texture-material-realism.md b/prompts/quality-bar/04-pbr-texture-material-realism.md
new file mode 100644
index 000000000..99557474d
--- /dev/null
+++ b/prompts/quality-bar/04-pbr-texture-material-realism.md
@@ -0,0 +1,64 @@
+# 04: PBR texture and material realism
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Close the material gap. A perfect mesh still looks fake with a flat albedo texture. Every GLB
+the platform produces should carry a complete PBR set (albedo + normal + roughness/metallic,
+AO where the pipeline can bake it) tuned per material class, so skin reads as skin and metal
+reads as metal under the viewers' image-based lighting.
+
+## Current state (verify)
+
+- `workers/texture/` is the SDXL texture worker; the swarm raised its SDXL settings to the
+ platform bar today (02f1d0230). `workers/remesh/`, `workers/stylize/` exist as services.
+- `restyle_material` MCP tool re-skins GLBs from an instruction or PBR preset
+ (see `api/` MCP handlers). TRELLIS and Hunyuan3D emit their own textures.
+
+## Tasks
+
+1. **Audit what each lane actually emits.** For TRELLIS, Hunyuan3D, TripoSR/SG outputs: open
+ real GLBs (three.js or `@gltf-transform/core`, both in the dependency tree) and inspect
+ which PBR channels exist. Build a small `scripts/` inspection tool if none exists, and
+ record a channel matrix per lane in the report.
+2. **Derive missing maps.** Where a lane emits albedo-only, add a post-stage in the texture
+ worker (GPU, credits approved): normal-from-height estimation and a roughness/metallic
+ inference pass keyed by the director's material classification from prompt 01 (person /
+ metal / wood / fabric / plastic / glass). Wire it into the forge pipeline as an opt-out
+ final stage, not a separate user step.
+3. **Material presets that match reality.** Extend `restyle_material`'s preset library with
+ measured-value presets (real-world roughness/metallic/IOR values: skin 0.45-0.6 roughness,
+ nonmetal 0.0 metallic, brushed steel anisotropy hints, car paint clearcoat via
+ `KHR_materials_clearcoat`, glass via `KHR_materials_transmission`). Registered three.js
+ loaders already handle these extensions; verify each preset renders correctly in the
+ platform viewer before shipping it.
+4. **Skin, eyes, hair for avatars.** For `text_to_avatar` / `forge_avatar` outputs, ensure the
+ avatar path applies: subtle subsurface approximation (three.js `MeshPhysicalMaterial`
+ thickness/attenuation or a baked SSS tint), separate eye material with high specular and
+ clear cornea, hair with alpha-cutout double-sided setup. This is what makes people look IRL
+ instead of mannequin.
+5. **Texture resolution by tier.** Free tier keeps current sizes; standard/high go to 2K/4K
+ albedo with matching normal maps (GPU cost is credits). Confirm GLB payload stays sane with
+ KTX2/Basis compression where the viewer path supports it (`three/examples/jsm/loaders/KTX2Loader`
+ is available; test on mobile Safari before defaulting it on).
+6. **Prove it.** Benchmark set (prompt 09 set, or create per prompt 01 task 6) rendered in the
+ platform viewer, before/after per lane. Skin/metal/glass/wood subjects mandatory.
+
+## Definition of done
+
+- Channel matrix documented; every lane emits or gains a full PBR set.
+- Presets verified in-viewer; avatar skin/eye/hair path shipped and screenshotted.
+- Mobile payload check done (a 4K-textured GLB must still load on a mid phone; if not, tier the
+ delivery: viewer fetches compressed, download button offers full-res).
+- Changelog entry + `workers/texture/README.md` updated. Pathspec commits only.
+
+## Anticipated blockers, pre-answered
+
+- KTX2 encode tooling: `toktx` or `@gltf-transform/cli` with the basisu encoder; add as a dev
+ dependency or use the container the texture worker builds, do not hand-roll an encoder.
+- Normal-map estimation model choice: prefer what the texture worker already ships (SDXL
+ aux/controlnet stack) over adding a new model download; if adding one, it must come from the
+ weights bucket, not a runtime hub pull.
+- A preset that looks wrong under one HDRI: test under all environment presets the viewer
+ ships (prompt 05 lists them) before tuning values.
diff --git a/prompts/quality-bar/05-cinematic-viewers-everywhere.md b/prompts/quality-bar/05-cinematic-viewers-everywhere.md
new file mode 100644
index 000000000..31ae42659
--- /dev/null
+++ b/prompts/quality-bar/05-cinematic-viewers-everywhere.md
@@ -0,0 +1,58 @@
+# 05: Cinematic rendering in every viewer
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+The same GLB can look like a phone snapshot or a film still depending on the viewer. Bring
+every 3D surface on the platform to one cinematic rendering bar: ACES tone mapping, real HDRI
+image-based lighting, soft contact shadows, correct color management, and tasteful defaults.
+The IRL pins and forge/avatar result viewers reached this bar (07-15/07-16, commits df8f7656
+and 8cd1be411); the job is to find every OTHER viewer and bring it up.
+
+## Tasks
+
+1. **Inventory every viewer.** Grep for `WebGLRenderer` and `<model-viewer` and the platform's
+ own viewer modules across `src/`, `public/`, `pages/`, `packages/`, `sdk/`. Known surfaces:
+ /forge result, /ar, /irl, agent profile cards, marketplace/catalog tiles, /walk, /world,
+ /play, scene studio, diorama, coin 3D views, embed widget (`<agent-3d>`), readme-3d,
+ Shopify tour packages, viewer link pages MCP tools return. Build the full list with
+ file:line; that list is a deliverable.
+2. **Extract one shared rendering-quality module** (if the 07-15 work did not already create
+ one): tone mapping ACESFilmic, `outputColorSpace = SRGBColorSpace`, physically correct
+ lights, default HDRI environment set (small curated set: studio / outdoor / sunset, served
+ from our static assets, NOT a third-party CDN), ground contact shadow, and a quality tier
+ switch (mobile drops to cheaper env + no shadows). Apply it to every viewer in the
+ inventory. Match existing code conventions; do not fork per-page copies.
+3. **Camera and framing defaults.** Auto-frame the model (bounding-box fit with a 3/4 hero
+ angle), gentle idle orbit or breathing motion where appropriate, dolly limits so users
+ cannot clip inside meshes. Thumbnails/screenshots the platform bakes (agent previews,
+ og-images) must use the same pipeline so cards look as good as live views.
+4. **Performance guardrails.** The /walk page taught us 8 concurrent WebGL contexts kill
+ phones: viewers below the fold must lazy-init on intersection, pause rendering when
+ offscreen (`document.visibilityState` + IntersectionObserver), and cap pixel ratio at 2.
+ Frame-governor/Eco patterns exist from the /play heat fix (8b23b8d9e); reuse them.
+5. **Verify.** `npm run audit:web` full sweep: zero new console errors, and re-check any WebGL
+ error serially (crawler concurrency fakes them). Screenshot the same benchmark GLB in every
+ surface before/after; a room of senior engineers should not be able to tell which viewer a
+ screenshot came from.
+
+## Definition of done
+
+- Inventory list with per-surface status shipped in the report.
+- Shared module applied everywhere; per-surface screenshots attached.
+- Mobile (320px, mid-tier phone throttling in devtools) stays smooth; no page exceeds 2
+ simultaneously rendering contexts.
+- Changelog entry ("every 3D view on the site now renders film-quality"); embed/SDK packages
+ that gained the upgrade get a patch version note in their package README (publishing to npm
+ stays owner-gated; prepare, do not publish).
+
+## Anticipated blockers, pre-answered
+
+- HDRI sourcing: use CC0 assets (Poly Haven) downloaded INTO the repo/static bucket at build
+ time, compressed to `.hdr`/`.exr` small sizes or prefiltered PMREM `.ktx2`; never hotlink.
+- A surface with its own bespoke renderer (play/world use different stacks): match the bar
+ with that stack's equivalents rather than forcing three.js defaults; if truly impossible,
+ document the gap and move on.
+- og-image baking uses a headless browser already (see brand og-image refresh c70b004e8);
+ reuse that harness for thumbnail parity.
diff --git a/prompts/quality-bar/06-forge-ux-flow.md b/prompts/quality-bar/06-forge-ux-flow.md
new file mode 100644
index 000000000..ca7f98497
--- /dev/null
+++ b/prompts/quality-bar/06-forge-ux-flow.md
@@ -0,0 +1,56 @@
+# 06: Forge UX, from prompt to proud screenshot
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Make /forge feel like a flagship product: the flow from typing a prompt to holding a
+share-worthy 3D result should be legible, alive, and impossible to dead-end. The failover
+plumbing exists (3e22c3e82: poll-time lane failover, one-click engine switching); this prompt
+is about the experience wrapped around it.
+
+## Tasks
+
+1. **Walk the flow as a first-time user** (`npm run dev`, real browser, also 320px). Log every
+ moment of confusion: what is happening now, how long will it take, what do I do with the
+ result. Fix what you find; the list below is the floor, not the ceiling.
+2. **Generation timeline.** Replace passive waiting with a real stage timeline (enhancing
+ prompt, generating reference views, sculpting mesh, painting textures, finishing) driven by
+ the actual poll states the API already returns, with elapsed time and the honest ETA from
+ `api/_lib/forge-lane-health.js`. Show the reference images as they are produced (prompt 01
+ makes them); watching the concept appear kills perceived latency.
+3. **Result moment.** When the GLB lands: camera intro move, quality viewer (prompt 05 module),
+ and immediate actions with zero hunting: download GLB/USDZ, view in AR (/ar handoff), rig it
+ (auto-rig lane), refine it (`refine_model` conversational iteration), restyle materials,
+ place it IRL (/irl), share link with a real og-image of THIS model. Every action wired to
+ the existing feature, no dead buttons.
+4. **History and comparison.** A signed-in user's generations persist (check the existing
+ storage; wire if half-built). Side-by-side compare two generations of the same prompt
+ (engine A vs engine B), which also showcases the engine-switch feature.
+5. **Prompt help.** Subtle prompt-improvement affordance: show the director's enhanced prompt
+ after generation ("what we actually asked the model"), one-click "try a variation". Good
+ empty state: 6 curated example prompts with thumbnails that users can fire instantly.
+6. **Error and retry UX.** Every failure path renders a designed state: what failed in plain
+ language, the automatic recovery that already happened (failover), and the one-click manual
+ options (switch engine buttons from 3e22c3e82). No raw error strings, no dead ends. Session
+ expiry mid-generation must preserve the job and resume after re-auth.
+7. **Keyboard + a11y.** Cmd/Ctrl+Enter submits, Esc collapses panels, focus states everywhere,
+ ARIA labels on the viewer controls, prefers-reduced-motion respected on the intro move.
+
+## Definition of done
+
+- The full walk-through repeated clean: no confusion points left, no console errors, all states
+ (loading/empty/error/success) designed at 320/768/1440.
+- Every result-moment action clicked through to its destination feature and back.
+- `npm test` green (respect the vitest-masks-e2e gotcha); `npm run audit:web` clean on /forge.
+- Changelog entry in holder language. Screenshots of the result moment in the report; apply the
+ pride check before calling it done.
+
+## Anticipated blockers, pre-answered
+
+- Poll payloads missing a stage you want to display: extend the API response in `api/forge.js`
+ (additive field, keep old clients working) rather than faking states client-side.
+- USDZ availability: the bake pipeline exists (iOS AR work, 8b23b8d9e); if a model lacks USDZ,
+ generate on demand through that path, show a brief "preparing AR file" state.
+- Persistence store choice: use whatever `api/` already uses for user artifacts (R2 +
+ database rows); do not introduce new storage.
diff --git a/prompts/quality-bar/07-design-system-sweep.md b/prompts/quality-bar/07-design-system-sweep.md
new file mode 100644
index 000000000..2770e4d02
--- /dev/null
+++ b/prompts/quality-bar/07-design-system-sweep.md
@@ -0,0 +1,55 @@
+# 07: Design-system consistency sweep (tokens, states, microinteractions)
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Make 300+ pages feel like one product. Audit and enforce a single design language: tokens for
+color/spacing/type/radius/shadow, consistent interactive states, designed empty/error/loading
+states everywhere, and the microinteractions that signal quality.
+
+## Tasks
+
+1. **Token audit.** Find the real token sheet (`src/styles/`, root CSS custom properties).
+ Inventory hardcoded values across `src/`, `pages/`, `public/*.html` (colors, px spacing,
+ font sizes, radii, shadows, z-indices). Consolidate to tokens; where two near-identical
+ values exist (#0a0a0b vs #0b0b0c), pick the canonical one. Ship the token sheet as the
+ single source with a short comment header documenting the scale.
+2. **Interactive-state pass.** Every button, link, card, input across the platform gets hover,
+ active, focus-visible, and disabled states from shared classes/tokens. Focus rings visible
+ on dark AND light contexts. Grep for `cursor: pointer` elements missing states as a cheap
+ detector.
+3. **State design sweep.** For each major surface (forge, markets, marketplace/agents,
+ dashboard, wallet, launches, changelog, news, play, walk, irl, ar, scene studio, docs):
+ verify loading (skeletons, not spinners, matching final layout), empty (says what to DO,
+ with a working CTA, ideally an illustration or 3D flourish), error (plain language +
+ recovery action), and overflow (1,000 items, 200-char names, tiny screens). Fix inline;
+ keep a per-surface checklist in the report.
+4. **Motion language.** One transition standard: durations (150ms micro, 250ms panel), one
+ easing curve set, opacity+transform only (no layout-thrashing animations),
+ prefers-reduced-motion honored globally. Element enter/exit intentional on the top surfaces.
+5. **Typography and rhythm.** Consistent type scale and line-height rhythm; heading hierarchy
+ semantic (h1 once per page, no skipped levels); readable measure on text-heavy pages
+ (docs, news, changelog).
+6. **Contrast and a11y floor.** Automated pass (axe-core via Playwright, already available in
+ the e2e stack) on the top 30 pages: fix contrast below AA, missing labels, keyboard traps.
+
+## Definition of done
+
+- Token sheet canonical; a grep for raw hex colors in `src/` returns only the token sheet and
+ justified exceptions (third-party embeds), listed in the report.
+- Per-surface state checklist complete with fixes shipped.
+- axe pass results before/after in the report; `npm run audit:web` no new errors;
+ visual spot-check at 320/768/1440 on the top 10 pages.
+- One changelog entry summarizing the visible polish in holder language.
+
+## Anticipated blockers, pre-answered
+
+- Scale: this is a sweep, so batch by surface and commit per surface (pathspec commits); if the
+ session cannot finish all surfaces, finish complete surfaces cleanly and list the remainder
+ ordered by traffic; never leave a surface half-migrated.
+- Legacy pages under `public/*.html` not in the Vite graph: remember the raw-/src trap (an
+ unregistered page shipping `/src` imports breaks: CSS import kills the page); test each
+ touched public page actually renders.
+- Light/dark: the platform is dark-first; if a light context exists (docs, embeds), tokens must
+ carry both or explicitly declare dark-only. Do not invent a light theme in this prompt.
diff --git a/prompts/quality-bar/08-mobile-performance.md b/prompts/quality-bar/08-mobile-performance.md
new file mode 100644
index 000000000..65c3f36de
--- /dev/null
+++ b/prompts/quality-bar/08-mobile-performance.md
@@ -0,0 +1,52 @@
+# 08: Mobile experience and asset performance
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+A crypto-native audience lives on phones. Make the platform genuinely excellent on a mid-tier
+phone: fast first paint, smooth 3D, no WebGL exhaustion, small GLB payloads, thumb-friendly
+controls.
+
+## Tasks
+
+1. **Baseline.** Lighthouse (mobile preset, throttled) on the top 15 pages: home, forge,
+ markets, news, agents/marketplace, a coin page, dashboard, walk, irl, ar, play, launches,
+ changelog, docs start, an agent profile. Record LCP/CLS/TBT/transfer size. These numbers
+ anchor the report.
+2. **GLB delivery pipeline.** Add a compression pass where models are served: Draco or
+ meshopt mesh compression + KTX2 texture compression via `@gltf-transform` (dependency-check
+ first per open-source-first rule). Serve compressed by default with full-res on the
+ download action (pairs with prompt 04 tiering). Target: typical forge output under 8MB over
+ the wire without visible quality loss. Verify decode support on iOS Safari WebGL and
+ Android Chrome before defaulting on; feature-detect and fall back to uncompressed.
+3. **WebGL context discipline.** Enforce the one-visible-viewer rule sitewide (prompt 05 task 4
+ ships the mechanism; you verify it on real mobile viewports and fix stragglers). Pages with
+ model grids use static thumbnails that upgrade to live 3D on tap.
+4. **Input ergonomics.** Touch targets 44px minimum, viewer gestures (orbit/pinch) not
+ fighting page scroll (use proper touch-action CSS), bottom-reachable primary actions on
+ generation flows, safe-area insets respected.
+5. **Network resilience.** Generations survive tab backgrounding and flaky mobile networks:
+ poll with backoff and resume, never lose a finished result because the socket dropped.
+ Test by throttling to Slow 3G mid-generation.
+6. **Re-measure.** Same Lighthouse matrix after. Publish the wins honestly (only real numbers)
+ in the changelog entry.
+
+## Definition of done
+
+- Before/after Lighthouse matrix in the report; every top-15 page improved or explained.
+- Compressed GLB path proven on iOS Safari + Android Chrome (real device lab not available:
+ use Playwright WebKit + Chrome mobile emulation and note the caveat).
+- No page can exceed 2 live WebGL contexts; grid pages tap-to-activate.
+- Changelog entry; docs updated where the embed/SDK behavior changed.
+
+## Anticipated blockers, pre-answered
+
+- `@gltf-transform` version conflicts with the three.js in the tree: pin the CLI as a
+ devDependency and run it in scripts (build-time), keeping runtime untouched.
+- KTX2 on old devices: the KTX2Loader transcoder needs its wasm assets served locally; copy
+ them into static assets (never CDN hotlink), and fall back to png/jpg textures on decode
+ failure.
+- Where GLBs are stored on R2: the compression pass runs at upload/finalize time in the
+ worker/API path that writes R2 (`api/_lib/r2.js` callers), not as a bulk rewrite; optionally
+ add a lazy migrate-on-first-serve for old assets.
diff --git a/prompts/quality-bar/09-realism-eval-harness.md b/prompts/quality-bar/09-realism-eval-harness.md
new file mode 100644
index 000000000..29ab717d6
--- /dev/null
+++ b/prompts/quality-bar/09-realism-eval-harness.md
@@ -0,0 +1,54 @@
+# 09: Realism eval harness (measure it or it regresses)
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Build the measurement loop the whole campaign hangs on: a fixed benchmark of prompts, an
+automated generate-render-score pipeline using Vertex Gemini vision as judge, and a dashboard
+so "did quality go up" is a number, not a vibe. Everything runs on GCP credits.
+
+## Tasks
+
+1. **Benchmark set.** `data/quality-bench/prompts.json`: 20 fixed prompts spanning people
+ (portrait, full body), animals, food, vehicles, tools, furniture, architecture, nature,
+ fantasy, and 3 image→3D cases (fixed CC0 reference photos stored alongside). Each entry:
+ id, prompt, subject class, what realism failure to watch for (plastic skin, melted text,
+ blob geometry).
+2. **Runner.** `scripts/quality-bench.mjs`: for a given lane/tier (or all), fire each prompt
+ through the REAL `/api/forge` path, poll to GLB, render 3 canonical views (reuse the
+ headless screenshot harness from the og-image work), and score each view with Vertex
+ Gemini (`gemini-2.5-pro` vision): photorealism 1-10, geometry integrity 1-10, texture
+ fidelity 1-10, prompt adherence 1-10, one-line critique. Judge prompt must include the
+ subject-class failure watchlist. Persist runs to `data/quality-bench/runs/` as JSON
+ (append-only, one file per run, committed).
+3. **Anti-gaming rules.** The judge sees only rendered images, never the prompt-enhancement
+ text; temperature 0; each image scored twice and averaged; keep the judge prompt in the
+ repo so scores are comparable across runs.
+4. **Dashboard.** A page (internal path is fine, e.g. `/quality-bench`, added to
+ `data/pages.json` only if made public) rendering the run history: score trends per lane and
+ subject class, worst-5 gallery with critiques, side-by-side of any two runs. Real fetch of
+ the committed run JSON, designed states per the platform bar.
+5. **Regression gate.** A weekly Cloud Scheduler job runs the bench on the primary lanes and
+ posts a summary line into the run log; `scripts/quality-bench.mjs --compare latest,previous`
+ exits nonzero on a >1.0 mean drop so any agent can check for regressions before/after a
+ forge change. Document that check in the forge docs so future swarm prompts adopt it.
+6. **First real runs.** Execute the bench on every live lane at standard and high tiers. This
+ baseline is the campaign's before picture; later prompts cite it.
+
+## Definition of done
+
+- Bench set, runner, dashboard, scheduler job all live; baseline runs committed.
+- Runner is idempotent and resumable (a crashed run resumes, never double-spends).
+- README in `data/quality-bench/` explaining how to run, read, and extend it.
+- Changelog entry only if the dashboard is public; otherwise internal (no entry).
+
+## Anticipated blockers, pre-answered
+
+- Cost math: 20 prompts x 3 views x 2 scorings is 120 vision calls per lane-tier, trivially
+ within credits; GPU time dominates and is approved. Do not sample down.
+- A lane down mid-run: record the failure as a scored zero with reason, continue; the runner
+ never aborts a whole run for one lane.
+- Judge self-preference drift: scores are comparative over time on fixed inputs; note model
+ version (`modelVersion` from the response) in each run file so a Gemini upgrade is visible
+ in the data.
diff --git a/prompts/quality-bar/10-avatar-likeness-irl-people.md b/prompts/quality-bar/10-avatar-likeness-irl-people.md
new file mode 100644
index 000000000..1e69f879e
--- /dev/null
+++ b/prompts/quality-bar/10-avatar-likeness-irl-people.md
@@ -0,0 +1,67 @@
+# 10: Avatar likeness, IRL people quality
+
+Read `prompts/quality-bar/_shared.md` first. Its operating clause applies: finish 100%, never ask.
+
+## Mission
+
+Photo→avatar and text→avatar outputs should look like real people: correct proportions,
+believable skin, hands with five fingers, clothes with fabric behavior, and a rig that
+animates without breaking the illusion. This prompt owns the human-specific end of the
+realism campaign.
+
+## Current state (verify)
+
+- `avatar-reconstruction` service is LIVE on Cloud Run. `unirig` (skeleton/skinning/ARKit-52)
+ is LIVE. `text_to_avatar` and `forge_avatar` chain mesh+rig with a humanoid gate; degrade
+ paths shipped 07-16 (3e22c3e82). Portrait realism cues went into the hunyuan worker today
+ (f131e51b0). Animation retarget is universal (`src/glb-canonicalize.js`,
+ `src/animation-retarget.js`); never add a rig allowlist.
+
+## Tasks
+
+1. **Audit the avatar path end to end** with 6 real test cases: text prompts (athlete,
+ grandmother, child-safe stylized kid, businessperson) and 2 reference photos (CC0 portrait
+ sets). Score against the IRL bar: proportions, face fidelity, hands, feet, clothing,
+ texture seams at the neck/hairline. Document per-case failures precisely.
+2. **Route avatars through the strongest lane.** Once Hunyuan3D is live (prompt 02), the
+ avatar mesh stage should prefer it with the portrait realism cues; verify the humanoid gate
+ still passes its output to unirig cleanly, T/A-pose normalized (bind pose sanity: the
+ glb-canonicalize suite covers naming, `tests/glb-canonicalize.test.js`).
+3. **Face fidelity pass for photo input.** For photo→avatar, the reference pipeline must
+ preserve identity: feed the actual user photo (multi-view if the user gave several) to the
+ image→3D lane rather than a re-generated lookalike, and keep the face region's texture
+ resolution highest (UV area weighting if the pipeline exposes it). Never generate an avatar
+ of a named third party from text alone; photo input implies consent by upload, text-only
+ real-person names get the generic treatment (existing director behavior; keep it).
+4. **Skin/eye/hair materials** land here for avatars specifically (coordinate with prompt 04
+ task 4; if that prompt already shipped the material module, wire it, do not duplicate).
+5. **Animation dignity check.** Idle/walk retargeted onto 10 differently-sourced rigs
+ (Mixamo-, VRM-, Avaturn-style naming per glb-canonicalize coverage) with no candy-wrapper
+ twists, foot sliding, or T-pose flashes at 320px mobile and desktop. Fix retarget bugs at
+ the mapping layer, add test cases for any new bone convention encountered.
+6. **The /irl moment.** Place 3 finished avatars in AR (the USDZ animated-bake path from
+ 8b23b8d9e) and screenshot; the pin should read as a person standing there, not a figurine.
+ ACES lighting for pins is live (07-15); verify avatars specifically benefit.
+7. **Prove and publish.** Before/after gallery of all 6 test cases through the whole chain
+ (mesh, materials, rig, animation, AR). Changelog entry in holder language. Update
+ `.agents/skills` create-3d-avatar guidance if defaults changed.
+
+## Definition of done
+
+- 6/6 test cases visibly improved with the gallery in the report; hands specifically called out
+ (count fingers in the screenshots).
+- Retarget suite green plus any new bone-convention cases added.
+- AR screenshots included; no regression in the humanoid-gate degrade paths (kill-test one
+ rig failure and confirm the mesh still ships with a working fallback).
+
+## Anticipated blockers, pre-answered
+
+- Hunyuan3D not Ready yet: run the full audit and material/rig/AR work on the TRELLIS lane
+ now; the lane swap is one env var and a re-run, note it as the follow-up command.
+- Hands are the hardest failure: if mesh-level hands stay bad at max budgets, the honest
+ mitigations are pose choice (relaxed hands), higher reference-image hand visibility, and
+ the director explicitly requesting "hands visible, fingers separated" in reference views.
+ Document what moved the needle with screenshots.
+- Child-safety: stylized kid case must stay clearly stylized; if any output drifts
+ photoreal-child, drop the case from public galleries and note it; never ship photoreal
+ minors' likenesses.
diff --git a/prompts/quality-bar/README.md b/prompts/quality-bar/README.md
new file mode 100644
index 000000000..66c8b8c12
--- /dev/null
+++ b/prompts/quality-bar/README.md
@@ -0,0 +1,40 @@
+# quality-bar: the $100k GCP-credit quality campaign
+
+Owner directive 2026-07-16: spend the Google Cloud credits liberally to make the platform's
+UX/UI excellent and 3D generations as real-looking as IRL people and objects. No new non-GCP
+paid APIs. Agents complete their prompt 100% and never stop to ask questions;
+`_shared.md` carries everything needed to make that possible. Read it before any prompt.
+
+## The thesis
+
+IRL-real 3D is a chain, and every prompt owns one link:
+
+photoreal reference images (01) -> strongest mesh+texture model (02) at fleet scale (03)
+-> complete PBR materials (04) -> cinematic viewers (05), wrapped in a flagship UX (06, 07, 08),
+measured so it cannot regress (09), with humans as the hardest special case (10).
+
+## Prompts
+
+| # | File | Owns | Depends on |
+|---|------|------|------------|
+| 01 | 01-photoreal-reference-pipeline.md | Vertex reference images at every entry point | none |
+| 02 | 02-hunyuan3d-flagship-lane.md | Hunyuan3D live and quality-leading | quota grant (in flight) |
+| 03 | 03-gpu-fleet-scaleout.md | TripoSG fix, text2motion, scale ceilings, cold-start UX | quota grant helps |
+| 04 | 04-pbr-texture-material-realism.md | Full PBR sets, skin/eye/hair materials | none |
+| 05 | 05-cinematic-viewers-everywhere.md | One rendering bar in every viewer | none |
+| 06 | 06-forge-ux-flow.md | /forge flagship experience | best after 01, 05 |
+| 07 | 07-design-system-sweep.md | Tokens, states, microinteractions sitewide | none |
+| 08 | 08-mobile-performance.md | Mobile excellence, GLB compression | best after 05 |
+| 09 | 09-realism-eval-harness.md | Benchmark + Gemini judge + regression gate | run EARLY for the baseline |
+| 10 | 10-avatar-likeness-irl-people.md | IRL people: likeness, hands, rig, AR | best after 02, 04 |
+
+Run 09 first (baseline), then 01/04/05/07 in parallel (no dependencies), 02/03 as quota lands,
+then 06/08/10.
+
+## Ground rules recap (full versions in _shared.md and CLAUDE.md)
+
+- GCP spend approved; no new external paid APIs; never trade quality for cost.
+- Pathspec commits only; concurrent agents share the worktree; no push/post without owner say-so
+ (GCP deploys of surfaces your prompt owns ARE in scope for this campaign).
+- Every user-visible change: changelog entry. Every claim: verified, with the receipts in the
+ final report. Blockers get documented and routed around, never asked about.
diff --git a/prompts/quality-bar/_shared.md b/prompts/quality-bar/_shared.md
new file mode 100644
index 000000000..54b4a3683
--- /dev/null
+++ b/prompts/quality-bar/_shared.md
@@ -0,0 +1,126 @@
+# Shared context for the quality-bar campaign (read this FIRST, before your prompt file)
+
+Every prompt in `prompts/quality-bar/` assumes you have read this file. It exists so you
+never have to stop and ask the owner anything. If something here contradicts the live tree
+or live GCP state, trust the tree/GCP and note the drift in your final report.
+
+## The non-negotiable operating clause
+
+**Complete your task 100%. Never ask the owner a question. Never end with "should I..." or
+a plan you did not execute.** If you hit a blocker, do all of the following instead of stopping:
+1. Try the documented fallback for that blocker (most are listed below).
+2. If no fallback works, route around it: ship every part of the task the blocker does not touch.
+3. Document the blocker precisely in your final report (what failed, exact error, what you tried,
+ the single command or console step that would clear it) and keep going.
+A report that says "done except X, which needs owner action Y, everything else shipped and
+verified" is success. A session that stopped to ask a question is failure.
+
+## Budget position (why this campaign exists)
+
+The owner has $100k+ in Google Cloud credits and has pre-approved spending them liberally on
+quality. Do not economize on GCP. Concretely pre-approved: GPU worker instances (L4), warm
+min-instances, Vertex AI calls (Gemini text + image models), Cloud Build minutes, GCS storage,
+higher Cloud Run CPU/memory. NOT approved: onboarding any new non-Google paid API (no new
+Replicate/OpenAI/etc. keys). Free external services already wired (NVIDIA NIM free lane,
+HF Spaces) stay as fallbacks. Never downgrade model quality or reasoning effort to save money.
+
+## GCP ground truth (verified 2026-07-16)
+
+- Project: `aerial-vehicle-466722-p5`, region `us-central1`. Prod API service: `three-ws-api`
+ (serves frontend + all `api/**` handlers via `server/index.mjs` and the `vercel.json` route
+ table). Full runbook: `docs/ops/gcp-production.md`.
+- Deploy main app: `npm run build` then `npm run deploy:gcp`, from a CLEAN worktree state for
+ the files you touched (concurrent agents edit this tree; never deploy someone's half-finished
+ work: `git stash --keep-index` patterns or deploy from a fresh `git worktree add` of a commit).
+ Builds must pin service accounts `three-ws-build@` (build) and `three-ws@` (runtime); the
+ default compute SA was deleted. Deploys take ~12 min. `gcloud builds submit` does NOT purge
+ the CDN; purge or cache-bust when a static asset must change immediately.
+- Secrets: `gcloud secrets versions access latest --secret=<name>`. Known: `telegram-bot-token`.
+ Runtime env lives ON the Cloud Run service (`gcloud run services describe three-ws-api
+ --region us-central1`), NOT in Vercel exports (those return empty for secret vars). Local
+ `.env` has a QA login for authed sweeps.
+- GPU workers (Cloud Run, L4, us-central1), state as of 2026-07-16 21:15 UTC:
+ - `model-trellis` LIVE (min=max=1, 8 CPU/32Gi). Self-hosted TRELLIS, primary free/standard lane.
+ - `model-triposr` LIVE (min=1). Fast, lower quality. Holds a GPU permanently.
+ - `unirig` LIVE. Auto-rigging (skeleton/skinning/ARKit-52).
+ - `model-hunyuan3d` deploy IN FLIGHT (rev 00005 waiting on GPU quota). Highest-quality lane.
+ - `model-triposg` FAILING to start (HealthCheckContainerError: likely model load exceeding
+ startup timeout; extend `--timeout` / add startup probe / lazy-load weights after bind).
+ - `model-text2motion`, `workers/texture`, `workers/rembg`, `workers/segment`, `workers/stylize`,
+ `workers/remesh`: sources in `workers/`, some live as `*-service`.
+- GPU quota: Cloud Run L4 = `NvidiaL4GpuAllocNoZonalRedundancyPerProjectRegion`, granted 3,
+ increase to 16 filed 2026-07-16 (check: `gcloud alpha quotas preferences list
+ --project=aerial-vehicle-466722-p5`). All 3 are currently held (trellis, triposr, unirig),
+ which is what blocks hunyuan3d. Fallback while waiting: do NOT kill other workers' instances;
+ if your task needs a GPU slot urgently and the grant has not landed, drop `model-triposr`
+ minScale to 0 (it is the weakest model; scale-from-zero is acceptable for it) and say so in
+ your report. Compute Engine L4 quota (separate) is 8.
+- Model weights bucket: `three-ws-model-weights`. Intermediate outputs:
+ `three-ws-avatar-reconstructions`. Durable public assets live on Cloudflare R2 (`api/_lib/r2.js`);
+ never move public asset storage to GCS.
+- Worker auth: bearer `GCP_RECONSTRUCTION_KEY` (on both three-ws-api env and each worker).
+
+## The 3D generation stack (router side)
+
+- `api/forge.js`: the lane router (text→3D and image→3D), poll-time lane failover, one-click
+ engine switching. Lane/tier budgets: `api/_lib/forge-tiers.js`. Health-aware routing:
+ `api/_lib/forge-lane-health.js`, `api/_lib/provider-health.js`. Scale limits:
+ `api/_lib/forge-scale.js`. Art-director prompt pass: `api/_lib/forge-director-prompts.js`
+ (Granite director default-on as of 07-16). Prompt enhancement: `api/forge-enhance.js`
+ (photoreal-by-default reference images; Vertex quality lane leads as of 07-16).
+- Env URLs the router reads (verify exact names in code before setting): `MODEL_TRELLIS_URL`,
+ `GCP_HUNYUAN3D_URL`, `GCP_TRIPOSG_URL`, `GCP_RECONSTRUCTION_URL` (unirig), `GCP_TEXT2MOTION_URL`,
+ `NIM_TRELLIS_URL`.
+- Vertex AI is wired and proven: `gemini-2.5-flash-image` for image generation
+ (`api/_providers/gcp.js`), `vertex-gemini` as the anchor rung of the LLM fallback chain
+ (`api/_lib/` LLM chain). Vertex spend is pre-approved; prefer it over free flaky rungs for
+ anything quality-critical.
+- The realism thesis this campaign executes: raw text→3D tops out at "game asset" look.
+ IRL-real comes from (a) routing text prompts through PHOTOREAL REFERENCE IMAGES generated on
+ Vertex (multi-view, studio-lit, neutral background) and feeding image→3D, (b) the strongest
+ mesh+texture model available (Hunyuan3D once live, TRELLIS otherwise) at max step/texture
+ budgets, (c) PBR material completeness (normal/roughness/metallic maps, not just albedo), and
+ (d) viewer-side cinematic rendering (ACES tonemapping, HDRI environment, contact shadows).
+ Each prompt file owns a slice of that chain.
+
+## Verification (no green claims without these)
+
+- `npm test` runs vitest THEN Playwright e2e; a vitest failure masks the whole e2e stage, so
+ after a long red streak expect an e2e wall behind the first green.
+- `npm run audit:web` sweeps 300+ pages headless with console-error capture (QA account creds in
+ `.env`). Crawler concurrency can produce FALSE WebGL/texture errors; re-check any 3D failure
+ serially before reporting it.
+- Forge E2E: POST the real API (`/api/forge`) and poll to a finished GLB; then open the returned
+ viewer link in Playwright and screenshot. A lane is not "live" until a real prompt returned a
+ real GLB through the router (not via direct worker curl only).
+- For UI work: `npm run dev` (port 3000), exercise the flow in a real browser, zero console
+ errors from your code, check 320px/768px/1440px.
+- Piped exit codes lie: never `cmd | tail` a test run and trust $?; capture the real exit code.
+
+## Git and repo rules for this swarm
+
+- Work directly on `main`. Concurrent agents share this worktree: stage EXPLICIT paths only
+ (never `git add -A` / `git add .`), re-check `git status` and `git diff --staged` immediately
+ before committing, and prefer `git commit <paths> -m ...` (pathspec commit) so you can never
+ sweep someone else's staged files.
+- Do NOT `git push` and do NOT post to any external channel (X, Telegram) unless the owner said
+ so for this run. GCP deploys of the surfaces your prompt owns ARE approved for this campaign.
+- Never reference any crypto project other than $THREE in committed content without owner
+ approval (full rule in CLAUDE.md). Never use em-dash or en-dash characters anywhere you write.
+- Every user-visible change gets a `data/changelog.json` entry (holder-readable language).
+ New pages go in `data/pages.json`. Docs per the Documentation section of CLAUDE.md.
+- `npx vercel build` corrupts `api/*.js` in place; if you see `__defProp` bundles in a diff,
+ `git restore -- api/ public/`.
+
+## Known blockers and their standing answers (do not re-ask)
+
+- "Hunyuan3D weights/spend?" Approved. Weights go in `three-ws-model-weights`; GPU time is credits.
+- "L4 quota?" Increase filed; check preferences list. Interim fallback documented above.
+- "Missing REPLICATE/other paid API key?" Do not add one. Route to self-hosted GCP lanes instead.
+- "NVIDIA NIM / HF lane is down or rate-limited?" Expected sometimes; they are fallbacks, not
+ primaries, once self-host is live. Poll-time failover in `api/forge.js` already handles it.
+- "Which model for LLM calls?" Vertex Gemini (`gemini-2.5-pro` for reasoning-heavy, flash for
+ bulk). It is the anchor rung; free rungs stay for resilience.
+- "May I raise Cloud Run CPU/memory/min-instances?" Yes, within granted quota. Note it in report.
+- "Design tokens?" Use the existing CSS variables in `src/styles/`; if a token is missing,
+ add it to the root token sheet and use it everywhere; do not hardcode one-off values.