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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
docs(prompts): retire the six shipped fix-queue orders, leaving the owner-gated one
nirholasba26ed9fa5b3
diff --git a/prompts/README.md b/prompts/README.mdindex f0eca5dd1..15a0e7f24 100644--- a/prompts/README.md+++ b/prompts/README.md@@ -42,7 +42,7 @@ everything else around it.| [bnb-chain/](bnb-chain/) | BNB Chain campaign. Every work order shipped and was retired; `00-CONTEXT.md` keeps the adversarially-verified chain facts and `PROGRESS.md` the proof log. The whole track's one remaining gap is a funded BSC testnet deployer key plus a funded Greenfield account, both owner actions. || [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. |+| [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. Seven of eight shipped and were retired; the one left is the garment-sweep cron, blocked on an owner `gcloud auth login`. 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. |diff --git a/prompts/fix-queue/00-INDEX.md b/prompts/fix-queue/00-INDEX.mdindex ab4ee6903..5e17368eb 100644--- a/prompts/fix-queue/00-INDEX.md+++ b/prompts/fix-queue/00-INDEX.md@@ -55,14 +55,18 @@ extend that pack instead.| # | Work order | Severity | Reproduce with ||---|---|---|---|-| 01 | [The gate is red: one page has no `[hidden]` guard](01-gate-red-hidden-guard.md) | P0 repo | `npm run gate` |-| 02 | [Three eslint errors, one a real bug in a money test](02-lint-errors.md) | P1 | `npm run lint` || 03 | [A declared cron has never run in production](03-cron-drift-garment-sweep.md) | P1 | `npm run check:cron-drift` |-| 04 | [17 broken stops in the guided tour](04-tour-atlas-broken-stops.md) | P1 | `npm run audit:tour-atlas` |-| 05 | [108 dead `#` links across the site](05-stub-hrefs-dead-paths.md) | P2 | `npm run audit:links` |-| 06 | [A documented API call no longer answers as documented](06-runnable-docs-401.md) | P2 | `npm run check:runnable-docs` |-| 07 | [`npm run test:core` never finishes](07-test-core-timeout.md) | P1 | `npm run test:core` |-| 08 | [`optimize?draco=1` returns a BIGGER file, silently](08-avatar-optimize-inflates.md) | P1 | `curl` (in the file) |++**One order left, and it is owner-gated.** Everything else this pack opened with+shipped and was retired; [PROGRESS.md](PROGRESS.md) carries what changed and the+verification output for each. Order 03's code-side questions are both answered+in that log (the first sweep is safe at `*/10`, and the drift check's home is+already registered in `data/guards.json`); what remains is creating the Cloud+Scheduler job, which needs a `gcloud auth login` this workspace does not have.++Retired 2026-08-13 after verification: 01 (gate green), 04 (tour atlas), 05+(stub hrefs), 06 (runnable docs), 07 (`test:core`), 08 (optimizer inflation).+Retired 2026-08-09: 02 (lint errors).Checks that were green on 2026-08-01 and are not represented here, so you do notre-run them hoping for work: `audit:docs` (1236 files), `audit:handlers` (1888diff --git a/prompts/fix-queue/01-gate-red-hidden-guard.md b/prompts/fix-queue/01-gate-red-hidden-guard.mddeleted file mode 100644index 967ab37d1..000000000--- a/prompts/fix-queue/01-gate-red-hidden-guard.md+++ /dev/null@@ -1,65 +0,0 @@-# 04. The repo gate is RED: one page has no `[hidden]` guard--**Severity: P0 for the repo.** Small fix, but it is currently the thing standing-between this worktree and a green gate, which means every other agent's-"gate before and after" check starts dirty. Read [00-INDEX.md](00-INDEX.md)-first.--## Symptom (reproduced 2026-08-01)--```-$ npm run gate-...-> audit:hidden-guard--x 1 page(s) do not resolve a [hidden]{display:none} guard:-- pages/docs-freshness.html--gate exit=1-```--Every other stage of the gate passes: `test:gate`, `test:gate-3d`, `audit:mcp`,-`audit:mcp-golden`, `audit:routes`, `audit:handlers` (1888 handlers),-`audit:pages` (161 routes), `audit:docs` (1236 markdown files),-`check:tutorials` (69/69), `audit:x402-catalog`, `audit:tokens`.--## Why this rule exists--The `hidden` attribute only hides an element if some stylesheet actually-declares `[hidden]{display:none}`. Without it, a component that sets `display`-on a class or id (a full-screen modal, for example) renders on top of the page-and blocks all interaction. This is a real broken-page class, not a lint-preference.--[pages/docs-freshness.html](../../pages/docs-freshness.html) links only-`/fonts/fonts.css` and `/docs-freshness.css`, neither of which carries the-guard, and it has no inline guard.--## The job--1. Decide which fix is right for this page rather than reflexively stamping it.- The audit accepts either an inline guard or a link to `/tokens.css`,- `/style.css`, or `/nav.css`. A page in the docs family should almost- certainly be inheriting the design tokens the rest of the site uses, so check- what its siblings link and whether this page is an accidental orphan. If it- is, linking the shared stylesheet fixes the guard AND the visual drift; if it- is deliberately standalone, stamp the inline guard with- `node scripts/inject-hidden-guard.mjs --write`.-2. Load the page in a browser after the change (`npm run dev`, then- `/docs-freshness`) and confirm you did not restyle it by accident. Check that- nothing is now double-styled and that no console errors appear.-3. Re-run the full gate, not just the one audit.--## Verification--```bash-npm run audit:hidden-guard # via: node scripts/audit-hidden-guard.mjs-npm run gate # must exit 0-```--## Done when--`npm run gate` exits 0 on a clean checkout of this worktree, the page renders-identically or better, and [00-INDEX.md](00-INDEX.md)'s "the gate is currently-RED" note is deleted because it is no longer true.diff --git a/prompts/fix-queue/04-tour-atlas-broken-stops.md b/prompts/fix-queue/04-tour-atlas-broken-stops.mddeleted file mode 100644index 9d89e7242..000000000--- a/prompts/fix-queue/04-tour-atlas-broken-stops.md+++ /dev/null@@ -1,72 +0,0 @@-# 07. The guided tour has 17 broken stops, 6 of them pointing at nothing--**Severity: P1.** This is a first-run surface: the tour is what a new visitor is-handed, and a third of it is broken. Read [00-INDEX.md](00-INDEX.md) first.--## Symptom (reproduced 2026-08-01)--```-$ npm run audit:tour-atlas-audit:tour-atlas found 17 problem(s):-exit=1-```--Two distinct classes.--**Class A: the stop points at a route that answers nothing (6).** The tour sends-the visitor to a dead end.--| Stop | Target |-|---|---|-| `diorama` | `/diorama` |-| `mocap-studio` | `/mocap-studio` |-| `temporary` | `/temporary` |-| `scene` | `/scene` |-| `create-prompt` | `/create/prompt` |-| `three-live` | `/three-live` |--**Class B: the stop has no working spotlight anchor (11).** The guide dims the-whole page and points at nothing, which reads as a broken overlay rather than a-tour: `skills` (`/skills`), `agora` (`/agora`), `compose` (`/compose`),-`x402-studio` (`/x402/studio`), `terminal` (`/terminal`), `play-arena`-(`/play/arena`), `play-agent-wallet` (`/play/agent-wallet`), `demo` (`/demo`),-`unstoppable` (`/unstoppable`), `pump-visualizer` (`/pump-visualizer`),-`viewer` (`/viewer`).--Both classes are defined in-[scripts/build-tour.mjs](../../scripts/build-tour.mjs) (stops, and the `TARGETS`-selector map).--## The job--1. **Class A: decide per stop, do not bulk-delete.** For each of the six, find- out whether the route was renamed, was never built, or is dynamic. A renamed- route gets its stop repointed; a route that was never built gets its stop- dropped from `build-tour.mjs`. Check `data/pages.json` and the route table in- `vercel.json` before concluding a page does not exist, because a page can be- real and simply not answer a naive HEAD.-2. **Class B: give each stop a selector that exists.** Open the page, pick a- stable anchor (prefer an id or a data attribute that the page owns, not a- generated class), and add it to `TARGETS`. If a page genuinely has no- meaningful anchor, that is a signal about the page, not about the tour: add- the anchor to the page.-3. **Walk the tour end to end in a browser** (`npm run dev`), not just the- audit. A selector can exist and still be off-screen, zero-sized, or hidden- behind a modal, and the audit cannot see that. Confirm the spotlight lands on- something meaningful at every stop.-4. **Make the audit part of a stage** if it is not already, and register it in- `data/guards.json` with a `why`, so 17 broken stops cannot accumulate again.-5. Add a `data/changelog.json` entry: this is a user-visible fix.--## Verification--```bash-npm run audit:tour-atlas # 0 problems-npm run gate # no worse than the 00-INDEX.md baseline-```-plus a manual walkthrough of every stop at 1440px and at 390px.--## Done when--Every tour stop resolves to a live page and spotlights a real element, verified-in a browser at two viewport widths, with the changelog entry written.diff --git a/prompts/fix-queue/05-stub-hrefs-dead-paths.md b/prompts/fix-queue/05-stub-hrefs-dead-paths.mddeleted file mode 100644index 83129d2c4..000000000--- a/prompts/fix-queue/05-stub-hrefs-dead-paths.md+++ /dev/null@@ -1,74 +0,0 @@-# 08. 108 stub `#` links: buttons that exist and go nowhere--**Severity: P2 by count, higher by principle.** CLAUDE.md: "If a button exists,-it must work. If a link exists, it must go somewhere." Read-[00-INDEX.md](00-INDEX.md) first.--## Symptom (reproduced 2026-08-01)--```-$ npm run audit:links-Link audit - scanned 1996 files-Broken internal links : 0-Stub hrefs (#, void(0)) : 108-exit=1-```--Broken internal links are at zero, which is the good news: nothing points at a-missing file. The 108 are anchors whose `href` is `#` or `javascript:void(0)`.--The heaviest concentrations, from the audit output:--- [pages/agent-edit.html](../../pages/agent-edit.html): 11 (lines 1194, 1195,- 1424, 1550, 1581, 1788, 1803, 2172, 2176, 2188, 2192)-- [pages/create-agent.html](../../pages/create-agent.html): 4 (1773, 1776, 1779,- 1782)-- [pages/agent-detail.html](../../pages/agent-detail.html): 3;- [pages/agent-detail-classic.html](../../pages/agent-detail-classic.html): 3-- [pages/genesis.html](../../pages/genesis.html): several, starting at 265-- Singles across `alpha-copilot`, `arm`, `avatar-wallet-chat`, `billing`,- `communities`, `create-prompt`, `dad`, `embed-walk`, `events/*`, and more.- Run the audit for the current full list; do not work from this excerpt.--## Triage rule: not every `#` is a defect--Sort every one of the 108 into exactly one bucket and record which:--1. **A real anchor with a JS handler attached** (a tab, a toggle, a menu). It- works, but `<a href="#">` is the wrong element: it puts a junk history entry- in the back button and reads as a link to assistive tech. Convert to- `<button type="button">` with the appropriate ARIA, keeping the handler and- the visual style. This is most of them, and it is an accessibility fix, not- busywork.-2. **A genuine dead path**: a link whose destination was never built. Either- wire it to the surface it promises or remove the affordance. Do not leave a- control that lies.-3. **A same-page jump** that lost its target id. Restore the id.--## The job--1. Run the audit, capture the full list to a file, and classify all 108.-2. Fix them by bucket, starting with `agent-edit.html` and `create-agent.html`,- which are authoring surfaces where a dead control costs a user real work.-3. For every element you convert, verify keyboard operation: focus ring visible,- Enter and Space both activate, tab order unchanged.-4. Re-run `npm run audit:a11y` afterwards, because bucket 1 changes markup that- audit reads.-5. If any control turns out to be dead because a feature was never finished,- that is a separate finding: write it into [PROGRESS.md](PROGRESS.md) with the- page and line rather than quietly deleting the button.--## Verification--```bash-npm run audit:links # Stub hrefs: 0-npm run audit:a11y-npm run gate-```-plus a keyboard-only pass over `agent-edit` and `create-agent` in a browser.--## Done when--The stub count is zero, every former stub is either a real button or a real-link, keyboard operation is verified on the two authoring pages, and any-unfinished feature found behind a dead control is logged rather than hidden.diff --git a/prompts/fix-queue/06-runnable-docs-401.md b/prompts/fix-queue/06-runnable-docs-401.mddeleted file mode 100644index 22508c7a2..000000000--- a/prompts/fix-queue/06-runnable-docs-401.md+++ /dev/null@@ -1,65 +0,0 @@-# 09. A documented API call no longer answers as documented--**Severity: P2.** Small, self-contained, and the exact case the runnable-docs-guard was built for. Read [00-INDEX.md](00-INDEX.md) first.--## Symptom (reproduced 2026-08-01)--```-$ npm run check:runnable-docs-check-runnable-docs: 1 documented call(s) no longer answer as documented:-- https://three.ws/api/irl/world-lines/mine- got 401, expected 2xx- at docs/world-lines.md:488-exit=1-```--## What is actually wrong--Read [docs/world-lines.md:486-492](../../docs/world-lines.md#L486-L492) before-you touch the endpoint. The documented call is:--```bash-curl -s https://three.ws/api/irl/world-lines/mine -b 'session=<your session cookie>'-```--The doc itself says the endpoint requires auth ("Creator dashboard. Auth."), and-the sample carries a placeholder session cookie. So `401` is the correct and-expected response for an unauthenticated runner, and the defect is in the-annotation, not in the API: the checker was never told this call is auth-gated.--**Verify that reading before acting.** If the endpoint is in fact returning 401-to an authenticated caller, this becomes a real API bug and the fix is entirely-different. Test it with the QA account (`AUDIT_EMAIL` / `AUDIT_PASSWORD` in-`.env`, a real production QA login) and settle the question with evidence.--## The job--1. Authenticate as the QA user and call `/api/irl/world-lines/mine` with a real- session cookie. Record the status and the body shape.-2. **If it returns 2xx** (the expected outcome): annotate the fence in- `docs/world-lines.md` with the real contract, using the syntax the checker- prints in its own error message:- `<!-- runnable: 401 requires an authenticated session -->`. Then confirm the- documented response body in the doc still matches the live body, field for- field, and fix it if it drifted.-3. **If it returns 401 to an authenticated caller**: stop annotating and fix the- handler. Trace the auth path, find why a valid session is rejected, and cover- it with a test. Report it as an auth bug, because that means the creator- dashboard is broken for every user.-4. Sweep the neighbours: `docs/world-lines.md` documents a family of endpoints,- and if one lost its annotation others may be undocumented rather than merely- unannotated. Check each fence in that file against the live service.--## Verification--```bash-npm run check:runnable-docs # exit 0-npm run audit:docs # stays clean-```--## Done when--`check:runnable-docs` passes, the annotation states the true contract rather-than silencing the check, and the documented response body matches the live one.diff --git a/prompts/fix-queue/07-test-core-timeout.md b/prompts/fix-queue/07-test-core-timeout.mddeleted file mode 100644index 5bc7c2f9c..000000000--- a/prompts/fix-queue/07-test-core-timeout.md+++ /dev/null@@ -1,64 +0,0 @@-# 10. `npm run test:core` does not finish, so nobody runs the full suite--**Severity: P1.** A suite too slow to run is a suite that stops protecting-anything. Read [00-INDEX.md](00-INDEX.md) first.--## Symptom (reproduced 2026-08-01)--```-$ npm run test:core # vitest run --maxWorkers=1-... killed at 10m00s, no summary line, no Test Files / Tests totals-```--At the ten-minute mark the output was still streaming fixture logs from-`audit-guards` cases (expected `[audit-guards] N problem(s)` chatter from tests-that deliberately feed bad registries), so the run had not hung on a single-spec; it was simply still going.--Relevant config: [vitest.config.js](../../vitest.config.js) sets-`testTimeout: 120_000` and `pool: 'forks'`. `test:core` pins-`--maxWorkers=1`, which serializes everything.--## What to establish first, before optimizing anything--1. **Is it slow, or is it stuck?** Run `npx vitest run --reporter=verbose` and- let it finish, however long that takes. Capture the per-file durations.- Without that table every subsequent decision is a guess.-2. **Which files dominate?** Rank by duration. In this repo the usual suspects- are specs that reach the network or a database, and specs that import a- hosted MCP catalog. That last one is a known hazard: importing an- `api/_mcp*/catalog.js` pulls in DB and RPC clients that block without live- credentials, and the import alone can exceed 60s. `prompts/roadmap/00-README.md`- documents this and says not to write such tests.--## The job--1. Produce the per-file duration ranking and put the top 20 in your report.-2. For each expensive file, classify: legitimately heavy compute, accidental- network or DB access, or a blocking import. Fix the second and third classes- at the root (inject the client, or move the assertion to a contract test- against a running server) rather than by raising timeouts.-3. **Question `--maxWorkers=1`.** Find out why `test:core` serializes. If it was- added to work around a specific flaky interaction, find that interaction and- fix it, then restore parallelism. If nobody knows, test parallel execution- and see what actually breaks. Record the answer in the script or in- `docs/`, because the next agent will ask the same question.-4. Set a target and enforce it: the full suite should finish in a bounded time- on this machine. Whatever number you land on, make exceeding it visible- (a reporter threshold, or a slow-test list printed at the end).-5. Do not pipe test runs through `tail`. It masks the exit code, and a vitest- failure gates the Playwright stage.--## Verification--```bash-npm test # completes, with a real summary line-npm run gate # no worse than the 00-INDEX.md baseline-```--## Done when--The full suite completes in a bounded, stated time, every file that was slow for-an accidental reason has been root-caused, the `--maxWorkers=1` decision is-either justified in writing or reverted, and the summary line is quotable in a-report.diff --git a/prompts/fix-queue/08-avatar-optimize-inflates.md b/prompts/fix-queue/08-avatar-optimize-inflates.mddeleted file mode 100644index df2901e3c..000000000--- a/prompts/fix-queue/08-avatar-optimize-inflates.md+++ /dev/null@@ -1,79 +0,0 @@-# 11. `/api/avatar/optimize?draco=1` returns a file BIGGER than the input, silently--**Severity: P1.** An optimizer that makes things worse and does not say so.-Read [00-INDEX.md](00-INDEX.md) first.--## First, correct the record--`ISSUES.md` item 9 says this endpoint returns-`500 transcode_failed / draco.createCompressedPrimitive is not a function` on-the running image, and blames dependency drift. **That is stale.** Measured-2026-08-01 against production (revision `three-ws-api-00353-tzp`, commit-`6cc0370dc`): the endpoint returns `200`, the output is a valid GLB whose-generator is `glTF-Transform v4.4.0`, and the payload really does carry-`KHR_draco_mesh_compression`. The rebuild that item asked for has happened.-Part of this work order is deleting that item, or rewriting it to the defect-below.--## The real symptom (measured 2026-08-01)--| Source | Raw bytes | `?draco=1` | `?meshopt=1` |-|---|---|---|---|-| `https://three.ws/avatars/default.glb` | 748,088 | **890,160 (+19.0%)** | 752,312 (+0.6%) |-| `https://three.ws/avatars/michelle.glb` | 849,756 | **974,036 (+14.6%)** | 826,740 (-2.7%) |--Reproduce:--```bash-curl -s -o /dev/null -w '%{size_download}\n' https://three.ws/avatars/michelle.glb-curl -s -o /dev/null -w '%{size_download}\n' \- 'https://three.ws/api/avatar/optimize?src=https://three.ws/avatars/michelle.glb&draco=1'-```--The output of the Draco run also still contains `EXT_meshopt_compression`, which-points at the cause: these sources are **already meshopt-compressed**, and the-pipeline is layering Draco on top of, or beside, an existing compression instead-of decoding first and choosing one scheme. Whatever the mechanism, a caller who-asks an endpoint named `optimize` to optimize gets a 19% larger file and no-indication that anything went wrong.--## The job--1. **Confirm the mechanism, do not guess it.** Reproduce locally against the- handler behind `/api/avatar/optimize` (find it via the route table in- `vercel.json`; do not assume the path). Inspect the intermediate document:- are the primitives being decoded before re-encode, are both extensions- declared on the same primitives, and is the resulting buffer genuinely Draco- or Draco-wrapping-meshopt?-2. **Fix the pipeline.** Decode existing compression before applying a new- scheme, and never emit two mesh-compression extensions for the same- primitive. Quantization settings matter here too: Draco on an- already-quantized mesh is the classic way to grow a file.-3. **Add the guardrail that would have caught this.** After optimizing, compare- output size to input size. If the output is larger, return the ORIGINAL bytes- and say so in a response header (follow the pattern already used for- `x-render-expression: applied|partial|none` on `/api/avatar/render`, which- exists for exactly this "the operation silently did nothing useful" class).- A caller must be able to tell.-4. **Cover it with a test** that runs a known-meshopt source through- `?draco=1` and asserts the output is not larger than the input, plus a test- asserting the header contract.-5. **Sweep the other parameters.** Every other `optimize` parameter is reported- to work; verify that with sizes, not with status codes, and put the table in- your report.-6. Update `docs/` wherever `optimize` is documented, and add a- `data/changelog.json` entry: this is user-visible.--## Verification--```bash-npx vitest run tests/avatar-optimize-source-cap.test.js # existing neighbour-npx vitest run <your new test>-```-plus the size table above, re-measured, with every row at or below the raw size.--## Done when--No `optimize` parameter combination returns a larger file than it was given, the-response says what it did, a test pins both, and `ISSUES.md` item 9 no longer-claims a 500 that stopped happening.diff --git a/prompts/fix-queue/PROGRESS.md b/prompts/fix-queue/PROGRESS.mdindex 9ac47709e..b49eb62c0 100644--- a/prompts/fix-queue/PROGRESS.md+++ b/prompts/fix-queue/PROGRESS.md@@ -39,3 +39,80 @@ an unknown-rule disable comment removed from agent-runtime UsageCounter, threecase-block declarations braced and one intentionally yield-less error-pathgenerator annotated in agent-runtime runtime.test.js (48/48 tests pass) |npm run lint exit 0 (8352 warnings remain, all pre-existing)++2026-08-13 | 01-gate-red-hidden-guard | the hidden-guard defect this order was+written for is gone (`audit-hidden-guard: all 348 pages resolve the [hidden]+guard`), but the gate was still red on a different check: `audit:x402-catalog`+found `/api/x402/inference-verify` shipped with no row in+`docs/x402-endpoints.md`. Catalogued it in the free read surfaces table. The+order's actual done-when is a green gate, so it is met | `npm run gate` exit 0++2026-08-13 | 04-tour-atlas-broken-stops | no work needed, verified already+fixed by an earlier session | `npm run audit:tour-atlas` exit 0, "264 stops,+all anchored and photographed (35 curated, 229 generic)"++2026-08-13 | 05-stub-hrefs-dead-paths | no work needed, verified already fixed+by an earlier session. The 108 dead `#` links are gone | `npm run audit:links`+exit 0, "Stub hrefs (#, void(0)) : 0" across 2021 files++2026-08-13 | 06-runnable-docs-401 | two samples were red, not one. Both are+annotation defects exactly as the order predicted, and both were settled with+evidence rather than silenced: logged in as the QA account against production+and `GET /api/irl/world-lines/mine` returns 200 with the documented+`{world_lines, heatmap}` shape, so 401 is the correct unauthenticated answer;+`/api/permissions/verify?hash=0x00` is a deliberately malformed hash whose live+400 body still matches the documented one byte for byte. Both fences now carry a+`<!-- runnable: <status> reason -->` stating the true contract. Swept the rest of+both doc families | `npm run check:runnable-docs` exit 0, "all 86 documented+calls answer as documented"; `npm run audit:docs` clean++2026-08-13 | 07-test-core-timeout | it was slow, not stuck, and the cause was+`--maxWorkers=1` on `test:core` (added 2026-06-05 in a config sweep with no+stated reason). Serialized, imports alone take ~470s and tests ~440s. At the+default fork count the same 22,258 tests finish in 88s, 182s and 308s over+three runs. The "single worker avoids CPU-contention flake" rationale in+tests/README.md does not survive measurement: two back-to-back full runs on one+commit failed 10 files then 2, and all 8 that moved (branding,+thumbnail-url-guard, no-nul-bytes, asset-host-liveness, setup-git-hooks,+skill-royalty, node-operator, play-gate) scan the working tree, shell out to+real git, or reach the network, and each passes in isolation at full+parallelism. In a shared worktree a single worker widens that window. `test:core`+is now plain `vitest run`; `test:serial` keeps `--maxWorkers=1` as a diagnostic;+`slowTestThreshold: 5_000` makes a creeping total visible. Also corrected+tests/README.md, which documented a `.github/workflows/ci.yml` that does not+exist and that CLAUDE.md bans | `npm run test:core` exit 0 in 308s, "Test Files+1572 passed | 3 skipped", "Tests 22222 passed | 36 skipped"++2026-08-13 | 08-avatar-optimize-inflates | mechanism confirmed, not guessed:+the source is quantized AND meshopt-packed, gltf-transform keeps+`EXT_meshopt_compression` on the Document after reading, so `draco()` layered a+second mesh-compression scheme beside the meshopt payload and re-quantized+attributes `KHR_mesh_quantization` had already packed. Draco now disposes the+competing scheme and dequantizes first, both encodings are written and the+smaller one wins, and a final guard returns the untouched source bytes when+nothing beat the original. That guard is keyed on whether a transform actually+changed the model, so an ineffective lod/morph/texture cap cannot cost bytes+while a real decimation is still delivered. `x-three-ws-optimize`+(draco|meshopt|none|source) and `x-three-ws-optimize-refused` report which+happened, and all four `x-three-ws-*` headers are now in+`access-control-expose-headers`, which they were not. Pipeline extracted as+`optimizeGlb()` so the test needs no network. ISSUES.md item 9 rewritten |+9 parameter combinations across both production sample avatars: draco=1 went+from +19.0% to 0.0% on default.glb and from +14.6% to -4.4% on michelle.glb; no+combination exceeds its source except a lod that genuinely collapsed vertices+(8026 to 8018). `npx vitest run tests/avatar-optimize-never-inflates.test.js+tests/avatar-optimize-source-cap.test.js` 15 passed++2026-08-13 | 03-cron-drift-garment-sweep | NOT retired, one owner action left.+Step 2 answered: the handler is a thin authenticated proxy to the worker's+/sweep, and the worker claims at most `MAX_CONCURRENT` (default 2) ids per tick+via atomic generation-matched writes, so a first run against a backlog is safe+at `*/10`. Step 5 was already done by an earlier session: `check-cron-drift` is+registered in data/guards.json with stages [gate, manual], `needs: gcloud`, and+a `why` splitting the offline expression check (in the gate, as+`check:cron-syntax`) from the live comparison. Step 3 is blocked: this workspace+has NO gcloud credentials at all (`gcloud auth list` reports no credentialed+accounts, and .env carries only AUDIT_EMAIL/AUDIT_PASSWORD), so neither the job+creation nor the live drift comparison can run here. Needs one owner+`gcloud auth login` plus CRON_SECRET | `npm run check:cron-syntax` exit 0, "All+cron expressions are valid (offline mode: live jobs not compared)"diff --git a/prompts/production-100/00-INDEX.md b/prompts/production-100/00-INDEX.mdindex 1e849ead1..4796e86d3 100644--- a/prompts/production-100/00-INDEX.md+++ b/prompts/production-100/00-INDEX.md@@ -58,9 +58,6 @@ top to bottom.| Order | What ||---|---|| [01-ship-readiness.md](01-ship-readiness.md) | The standing deploy order: clean test run, preflight, staged build, one-command ship for the owner, post-ship verification. Retires last in this category. |-| [../fix-queue/01-gate-red-hidden-guard.md](../fix-queue/01-gate-red-hidden-guard.md) | `npm run gate` must be green before any ship. |-| [../fix-queue/02-lint-errors.md](../fix-queue/02-lint-errors.md) | Lint errors, one a real bug in a money test. |-| [../fix-queue/07-test-core-timeout.md](../fix-queue/07-test-core-timeout.md) | `test:core` must finish; a hanging suite hides regressions. |### B. Money rail (Solana first; the platform's observable health)@@ -77,10 +74,6 @@ top to bottom.| Order | What ||---|---|| [../fix-queue/03-cron-drift-garment-sweep.md](../fix-queue/03-cron-drift-garment-sweep.md) | A declared cron that has never run. |-| [../fix-queue/04-tour-atlas-broken-stops.md](../fix-queue/04-tour-atlas-broken-stops.md) | 17 broken guided-tour stops. |-| [../fix-queue/05-stub-hrefs-dead-paths.md](../fix-queue/05-stub-hrefs-dead-paths.md) | Dead `#` links across the site. |-| [../fix-queue/06-runnable-docs-401.md](../fix-queue/06-runnable-docs-401.md) | A documented API call that no longer answers as documented. |-| [../fix-queue/08-avatar-optimize-inflates.md](../fix-queue/08-avatar-optimize-inflates.md) | The optimizer that returns a bigger file, silently. |### D. Quality bar (the GCP-credit quality campaign)diff --git a/prompts/swarm-100/service-agent-screen-caster.md b/prompts/swarm-100/service-agent-screen-caster.mddeleted file mode 100644index 2eeed8e94..000000000--- a/prompts/swarm-100/service-agent-screen-caster.md+++ /dev/null@@ -1,82 +0,0 @@-# Service audit: services/agent-screen-caster--How to run: paste this file's repo path into a fresh Claude Code chat in this-repository and say "run this work order". This file is fully self-contained:-it depends on no other prompt file anywhere. If neighboring files in-prompts/swarm-100/ are gone, that work is done; if present, ignore them.-Every claim below rots; step 0 re-measures, and what you measure wins.--## Operating clause (binding)--- Read CLAUDE.md first. Its rules override everything, including this file.-- Finish 100% in this session. Never end the turn with a question, an option- list, or an unexecuted plan. A judgment call goes in one line of the final- report; it never becomes a question that halts work.-- The only permitted stops are the CLAUDE.md stop-and-ask gates: spending real- funds or any irreversible on-chain write, git push or a production deploy,- committing content that references a crypto project other than $THREE, and- destroying unrecoverable data.-- No mocks, no fake data, no placeholder stubs, no unfinished-work markers, no- commented-out code. Real APIs and real integrations only.-- The em-dash and en-dash characters are banned in everything you write.-- Concurrent agents share this worktree: stage explicit paths only (never a- bare add-everything), and commit finished work promptly.-- Before committing, run: npm run check:rules -- --paths <files you touched>.- It must exit 0.--## Step 0: re-derive the current state--1. Read services/agent-screen-caster/README.md and its run configuration.-2. Determine where it runs (Cloud Run service, sidecar, local daemon) and- whether that instance is alive right now; the CLAUDE.md playbook has the- gcloud commands (remember: export PATH="$HOME/google-cloud-sdk/bin:$PATH").--## Task: bring this service to verified-healthy--1. README accuracy against the code; fix stale claims.-2. Build and start it locally per its own instructions; exercise its core- path for real.-3. Tests: run what exists, add a core-path smoke test if none exists.-4. If it has a live instance: recent logs free of unhandled errors, or root- causes fixed and committed (deploys stay owner-gated).--## Definition of done--- [ ] Local build and a real core-path exercise both succeed.-- [ ] Tests pass, including a core-path smoke test.-- [ ] README verified accurate.-- [ ] Live-instance health verified or fixes committed and flagged.-- [ ] npm run check:rules -- --paths <touched files> exits 0.--## Never blocked--| Blocker | Resolution (act, do not ask) |-|---|---|-| Missing env var or credential | Check .env and .env.local, then the Cloud Run service env, then Secret Manager (the CLAUDE.md self-unblock playbook has the exact commands). If it truly exists nowhere, wire the code fully behind the env var, prove the wiring with a dry run, and name the single missing var in the report. |-| gcloud not on PATH | Run: export PATH="$HOME/google-cloud-sdk/bin:$PATH" |-| Dev server port 3000 busy | Another agent may be serving this repo; probe it and reuse if so. Otherwise start your own on a free port: npx vite --port 3101 |-| Playwright browser missing | npx playwright install chromium |-| A surface needs a signed-in user | Register a fresh account through the real /register flow against the real API and use it. Never mock the session. |-| A defect sits in code you did not touch | Fix it if it blocks a Definition of done line (root cause it, never mask it). Otherwise note it in the report and continue. |-| An unrelated test is red | Same rule. Never pipe npm test through tail; it masks exit codes. |--## Close out (required)--1. Verify every Definition of done line with the actual command output in- front of you. Never claim a line you did not verify.-2. Commit with explicit paths and a subject that describes the diff (house- style: type(scope): what changed and why a reader cares).-3. Delete this prompt file in that same commit:-- git rm prompts/swarm-100/service-agent-screen-caster.md-- The shrinking directory is this campaign's only progress ledger; there is- no progress log to update.-4. Final report: what step 0 measured, what changed (file list), evidence per- Definition of done line, and any one-line judgment calls. No trailing- questions, no unexecuted plans.--If a line genuinely cannot pass inside this session (an external party must-respond, or an owner-gated action is the final step), finish everything else,-leave this file in place, and state exactly which line remains and who owns-it. Never delete this file on a partial.