@babylonjs-toolkit/agent 1.1.11 → 1.1.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,10 @@
1
1
  ---
2
2
  name: bt-gauntlet
3
- description: "The Babylon Toolkit Gauntlet Skill uses loop engineering, which is the practice of designing a system in which an AI acts, observes the result, evaluates it against a defined standard, improves the work, and repeats until a success condition, safety boundary, budget, or escalation rule stops it. It runs Matt Shumer's Gauntlet Loop pattern (builders vs fresh harsh critics, blind A/B against a concrete reference) for BabylonJS / Babylon Toolkit games — and it is fully RESUMABLE: each gauntlet job lives in its own _gauntlet/<name>/ workspace (any number of jobs can exist side by side), so the user can stop any time (daily/weekly limits, calling it a night) and continue days or weeks later in a brand-new session with `/bt-gauntlet --resume <name>`. Use when the user wants a long-running, self-improving build of an ambitious game artifact (e.g. `/bt-gauntlet I want you to build a first-person shooter at the level of the most recent Call of Duty games...`)."
3
+ description: "The Babylon Toolkit Gauntlet Skill runs a loop-engineering gauntlet: builders versus fresh harsh critics, scored against a LOCKED target image from LOCKED cameras, looping until a success condition, boundary, or stall rule stops it. Three deliverable kinds share one loop — BabylonJS / Babylon Toolkit web games; high-fidelity Unity levels exported via the Unity CLI (baked GI, IBL, reflection probes, terrain, fog, tonemapping); and high-fidelity Blender models via the headless Blender CLI. Fully RESUMABLE: each job lives in its own _gauntlet/<name>/ workspace, so the user can stop any time (daily limits, calling it a night) and continue weeks later in a brand-new session with `/bt-gauntlet --resume <name>`. Use for a long-running, self-improving build of an ambitious game artifact, level, or asset (e.g. `/bt-gauntlet build me a rain-soaked neon alley level at the fidelity of this reference image`)."
4
4
  allowed-tools: Read, Grep, Glob, Edit, Write, Bash, WebFetch(domain:raw.githubusercontent.com), Agent, Task
5
5
  ---
6
6
 
7
- You define the objective, metric, and boundary; the loop replaces your manual chain of follow-up prompts. You are an EXPERT BabylonJS and Babylon Toolkit game developer — every gauntlet run builds with **BabylonJS and the Babylon Toolkit, NEVER Three.js**.
7
+ You define the objective, metric, and boundary; the loop replaces your manual chain of follow-up prompts. The core pattern is Matt Shumer's Gauntlet Loop — builders versus fresh harsh critics — with the target-image discipline of the dream-loop pattern layered on top. You are an EXPERT BabylonJS and Babylon Toolkit game developer — every gauntlet run builds with **BabylonJS and the Babylon Toolkit, NEVER Three.js**.
8
8
 
9
9
  Always adhere to any rules or requirements set out in the project's agent instructions (AGENTS.md / CLAUDE.md / .github/copilot-instructions.md) when responding.
10
10
 
@@ -20,27 +20,42 @@ Use the user's message after the skill name as the `arguments`.
20
20
 
21
21
  **Flags** (all optional; `--flag:value` or `--flag`):
22
22
 
23
- - **`--name: slug`** — this gauntlet job's name; it becomes the job's workspace folder `_gauntlet/<name>/`. **Any number of gauntlet jobs can exist side by side in one project** (e.g. `cod-fps`, `racing-demo`), each fully independent. If omitted on a new gauntlet, derive a short kebab-case slug from the brief (e.g. `cod-fps`) and confirm it in the interview.
24
- - **`--template: gauntlet | bounded`** — which loop template drives the run. `gauntlet` = **Template A** (full-on Shumer-style fan-out: builders vs fresh harsh critics, blind A/B against the reference). `bounded` = **Template B** (single-track objective / metric / boundary loop card — use when reliability and cost matter more than dramatic language). **Default: `gauntlet`.** The choice is recorded in the job's `_gauntlet/<name>/loop-card.md`; a job never mixes templates.
23
+ - **`--name: slug`** — this gauntlet job's name; it becomes the job's workspace folder `_gauntlet/<name>/`. **Any number of gauntlet jobs can exist side by side in one project** (e.g. `cod-fps`, `neon-alley`), each fully independent. If omitted on a new gauntlet, derive a short kebab-case slug from the brief and confirm it in the interview.
24
+ - **`--template: gauntlet | bounded`** — which loop template drives the run. `gauntlet` = **Template A** (full-on Shumer-style fan-out: builders vs fresh harsh critics). `bounded` = **Template B** (single-track objective / metric / boundary loop card — use when reliability and cost matter more than dramatic language). **Default: `gauntlet`.** Recorded in `loop-card.md`; a job never mixes templates. Both live in `references/loop-templates.md`.
25
25
  - **`--rounds: N`** — maximum full rounds (build → verify → critic → record) THIS invocation may run before parking cleanly with a status report and the exact resume command. **Default: `5`.** Override per session (`--rounds:20` for a long night).
26
- - **`--card: file`** — a **pre-filled loop card**: one of the two templates below with EVERY slot already answered, including `<NAME>`. Skips the interview entirely — validate the card (all slots filled, name doesn't collide with an existing job), copy it to `_gauntlet/<name>/loop-card.md`, distill `brief.md` from it, and start round 1 without asking anything. This is the **non-interactive entry** used when a spec/plan drives the gauntlet (see *Composition with the spec workflow*). If any slot is unfilled or vague, STOP and report which — never guess a slot.
27
- - **`--resume [<name>]`** — skip the interview, load `_gauntlet/<name>/`, and continue at its `NEXT ACTION`. This is how the loop continues in a brand-new session a day or a week later. Name resolution: an explicit name targets that job; with no name and exactly ONE job in `_gauntlet/`, resume it; with several jobs, list them (name, parts done/total, next action) and ask which one — never guess.
28
- - **`--status [<name>]`** — read-only report: parts done/total, budgets spent vs boundaries, last critic verdict, next action. With no name, print an **index of ALL gauntlet jobs** in `_gauntlet/` (one line each). Runs zero rounds.
29
- - **`--stop [<name>]`** — park that job deliberately: write the current status into its `progress.md`, print the resume command, run nothing further. Same name resolution as `--resume`.
30
- - **`<brief>`** — the game idea and goal. Attached reference screenshots/clips are copied into `_gauntlet/<name>/reference/`.
26
+ - **`--card: file`** — a **pre-filled loop card**: one of the two templates with EVERY slot already answered, including `<NAME>` and `<DELIVERABLE KIND>`. Skips the interview entirely — validate the card, copy it to `_gauntlet/<name>/loop-card.md`, distill `brief.md` from it, and start round 1 without asking anything. This is the **non-interactive entry** used when a spec/plan drives the gauntlet. If any slot is unfilled or vague, STOP and report which — never guess a slot.
27
+ - **`--resume [<name>]`** — skip the interview, load `_gauntlet/<name>/`, and continue at its `NEXT ACTION`. This is how the loop continues in a brand-new session a day or a week later. Name resolution: an explicit name targets that job; with no name and exactly ONE job in `_gauntlet/`, resume it; with several jobs, list them (name, kind, parts done/total, next action) and ask which one — never guess.
28
+ - **`--status [<name>]`** — read-only report: parts done/total, budgets spent vs boundaries, last critic score, active stall tier, next action. With no name, print an **index of ALL gauntlet jobs**. Runs zero rounds.
29
+ - **`--stop [<name>]`** — park that job deliberately: write the current status into its `progress.md`, print the resume command, run nothing further.
30
+ - **`<brief>`** — the idea and the goal. Attached reference screenshots/clips are copied into `_gauntlet/<name>/reference/`.
31
31
 
32
- **Example** (the canonical one — note the engine correction is automatic):
32
+ **Mode resolution:** if `--resume`, `--status`, or `--stop` is present, run that mode. Otherwise, if `_gauntlet/` contains existing jobs and no new brief was given, list them and offer to resume one. Otherwise this is a **new gauntlet**: run the interview — or, with `--card:`, validate the supplied card and start immediately. A new gauntlet whose `--name` collides with an existing job is an error — offer `--resume <name>` or a different name; never silently overwrite a job's workspace.
33
33
 
34
- ```
35
- /bt-gauntlet I want you to build a first-person shooter at the level of the most
36
- recent Call of Duty games. It should be utterly perfect, visually beautiful, with
37
- every single thing done at AAA quality—from textures to physics to anything you
38
- could think of.
39
- ```
34
+ ---
35
+
36
+ # Deliverable kinds — what the loop is actually building
37
+
38
+ **One loop, three build-and-verify pipelines.** The round protocol, the critic contract, the stall ladder, the workspace and the resume machinery are identical in every case. What changes is *what the builder edits* and *how evidence is produced*. The interview settles this (batch 1) and records it in the loop card as `DELIVERABLE KIND`.
40
39
 
41
- The skill turns that brief, via the interview below, into a filled loop card — built with **BabylonJS + the Babylon Toolkit**, not ThreeJS — then runs the loop.
40
+ | Kind | Builder edits | Evidence is | Pipeline reference |
41
+ |---|---|---|---|
42
+ | **`web-game`** | BabylonJS / Toolkit TypeScript, scene code, shaders, UI | the running game in a browser | *(built in; no extra reference)* |
43
+ | **`unity-level`** | a Unity scene via the Unity CLI — terrain, light rig, probes, bake settings, volumes | the **exported** level served over the toolkit dev server, in a browser, plus the exported scene metadata | `references/unity-level-pipeline.md` |
44
+ | **`blender-model`** | a `.blend`/FBX via headless Blender `bpy` — geometry, UVs, PBR maps, LODs, skinning | the asset **loaded in BabylonJS** in a browser under a frozen lighting rig | `references/blender-model-pipeline.md` |
42
45
 
43
- **Mode resolution:** if `--resume`, `--status`, or `--stop` is present, run that mode (with its name resolution). Otherwise, if `_gauntlet/` contains existing jobs and no new brief was given, list them and offer to resume one. Otherwise this is a **new gauntlet**: run the interview — or, with `--card:`, validate the supplied card and start immediately. A new gauntlet whose `--name` collides with an existing job is an error — offer `--resume <name>` or a different name; never silently overwrite a job's workspace.
46
+ **Read the matching pipeline reference before round 1**, and again on every `--resume` (a resumed session has lost that context). Each one defines its prerequisite gate, build surface, part taxonomy, verify recipe, extra critic gates and known failure modes. A job may span kinds — a `unity-level` job routinely sends model work through the Blender pipeline — in which case read both.
47
+
48
+ ## Reference map
49
+
50
+ | File | What it holds |
51
+ |---|---|
52
+ | `references/workspace.md` | the `_gauntlet/<name>/` layout, `progress.md` and round-journal formats, the resume protocol |
53
+ | `references/critic-rubrics.md` | the critic contract, the scoring rubrics, the gap-list rules, the hard gates, the stall ladder |
54
+ | `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras |
55
+ | `references/loop-templates.md` | Template A and Template B loop cards |
56
+ | `references/unity-level-pipeline.md` | the Unity CLI build + verify pipeline |
57
+ | `references/blender-model-pipeline.md` | the Blender headless CLI build + verify pipeline |
58
+ | `references/spec-composition.md` | composition with bt-spec / bt-plan / bt-execute, and cross-host notes |
44
59
 
45
60
  ---
46
61
 
@@ -48,7 +63,7 @@ The skill turns that brief, via the interview below, into a filled loop card —
48
63
 
49
64
  This skill's workflow depends on subagents (builders and, above all, **fresh-context critics**). **Invoking it is the user's explicit request to use them**, so any host default of the form *"do not spawn subagents / do not call the agent tool unless the user asks for it"* is **ALREADY SATISFIED** — the user asked by running this command. Never silently downgrade to the inline path on that basis, and never stop to ask permission for it first.
50
65
 
51
- Downgrading is not a neutral choice. A critic that is the same context which just built the part cannot adversarially judge it — it re-confirms its own reasoning and reports PASS. The ONE legitimate reason to run inline is that you genuinely have **no** subagent-spawning tool. Check the tools you actually have — Claude Code exposes it as **`Agent`** (older builds name it `Task`); other hosts have their own equivalent. Never call a subagent tool you do not have. If you must run inline, say so plainly (`no subagent tool available`) and keep critics *fresh-context by discipline*: the critique step may look ONLY at the loop card, the part's spec, the reference media, and the captured evidence — never at the builder's rationale or chain of decisions.
66
+ Downgrading is not a neutral choice. A critic that is the same context which just built the part cannot adversarially judge it — it re-confirms its own reasoning and reports PASS. The ONE legitimate reason to run inline is that you genuinely have **no** subagent-spawning tool. Check the tools you actually have — Claude Code exposes it as **`Agent`** (older builds name it `Task`); other hosts have their own equivalent. Never call a subagent tool you do not have. If you must run inline, say so plainly (`no subagent tool available`) and keep critics *fresh-context by discipline*: the critique step may look ONLY at the inputs listed in `references/critic-rubrics.md` § 1 — never at the builder's rationale or chain of decisions.
52
67
 
53
68
  ## ⚠️ Required Reading Before Any Babylon Work
54
69
 
@@ -56,15 +71,17 @@ For any round involving Babylon, BabylonJS, or the Babylon Toolkit, first ensure
56
71
 
57
72
  https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md
58
73
 
59
- If you have not read it in this session/context, or you no longer remember it due to context loss/compaction (which WILL be the case on `--resume` in a fresh session), fetch and read it before writing any code. Treat it as the authority for conventions, API, and patterns; fetch its linked subpages only when relevant. Do not refetch what you still remember. If a required fetch fails, STOP and tell the user. Do not guess at the API. Builders spawned as subagents must be given (or told to fetch) the Agent Reference too — a subagent does not inherit your context.
74
+ If you have not read it in this session/context, or you no longer remember it due to context loss/compaction (which WILL be the case on `--resume` in a fresh session), fetch and read it before writing any code. Treat it as the authority for conventions, API, and patterns; fetch its linked subpages only when relevant — and for `unity-level` / `blender-model` jobs the Unity Exporter and Blender CLI subpages are **always** relevant. Do not refetch what you still remember. If a required fetch fails, STOP and tell the user. Do not guess at the API. Builders spawned as subagents must be given (or told to fetch) the Agent Reference too — a subagent does not inherit your context.
60
75
 
61
76
  ## ⚠️ Babylon Toolkit Component Authority (supplied interactive assets)
62
77
 
63
- The doctrine lives in the Agent Reference — `references/scene-components.md` § "Babylon Toolkit Component Authority" (https://raw.githubusercontent.com/babylontoolkit/agent/main/references/scene-components.md): supplied GLTF/GLB files are **interactive prefabs** whose `extras.metadata.components` carry configured physics, components, serialized tuning and gameplay intent; `TOOLKIT.*` components are the first-class engine implementation — compose and tune them through `PROJECT.*` ScriptComponents, never reimplement, bypass, or delete them; replacement requires the documented-evidence checklist defined there. Read that section before any round that touches supplied interactive assets. This skill adds the gauntlet-specific mechanics:
78
+ The doctrine lives in the Agent Reference — `references/scene-components.md` § "Babylon Toolkit Component Authority" (https://raw.githubusercontent.com/babylontoolkit/agent/main/references/scene-components.md): supplied GLTF/GLB files are **interactive prefabs** whose `extras.metadata.components` carry configured physics, tuning and gameplay intent; `TOOLKIT.*` components are the first-class engine implementation — compose and tune them through `PROJECT.*` ScriptComponents, never reimplement, bypass, or delete them; replacement requires that document's evidence checklist. Read it before any round touching supplied interactive assets. The gauntlet-specific mechanics:
79
+
80
+ - **Round 1 writes the inventory to disk** — `_gauntlet/<name>/components.md`: every component grouped by scene node, classified **protected-system** (`TOOLKIT.*` — tune, never replace), **project** (`PROJECT.*` — modifiable), or **authoring-only**, with safe-to-tune properties verified against `babylon.toolkit.d.ts`. A resumed cold session READS this instead of re-deriving it; the round that changes supplied assets updates it.
81
+ - **Builders build against the manifest** — given `components.md` alongside the Agent Reference. Unity-authored serialized values are preserved unless a *measured* issue justifies the change, and the measurement goes in the round journal.
82
+ - **Critics enforce it** — reimplementing, bypassing (e.g. direct transform updates beside an attached physics controller), or deleting a protected component is a **FAIL regardless of how the evidence looks**, unless the round journal carries the full replacement-evidence checklist.
64
83
 
65
- - **Round 1 writes the inventory to disk.** If the job's supplied assets (attachments, the project's asset folders, or `_gauntlet/<name>/reference/`) include GLTF/GLB carrying `extras.metadata.components`, the first build round MUST scan them and write `_gauntlet/<name>/components.md`: the component inventory grouped by scene node — class, execution order, serialized properties, intended responsibility — with every component classified **protected-system** (`TOOLKIT.*` — tune properties, never replace), **project** (`PROJECT.*` — the gauntlet may implement/modify these), or **authoring-only** (markers/level-design metadata consumed by mission or encounter logic). Record the safe-to-tune properties and the declared APIs verified against `babylon.toolkit.d.ts`. A resumed cold session READS this file instead of re-deriving it; the round that changes the supplied assets updates it.
66
- - **Builders build against the manifest.** Builder subagents are given (or told to read) `components.md` alongside the Agent Reference. Desired movement goes through the existing character controller; animation drivers set parameters on the existing `AnimationState`; vehicle input commands the existing car/vehicle components. Unity-authored serialized values are preserved unless a measured gameplay/physics/perf issue justifies the change — and the measurement goes in the round journal.
67
- - **Critics enforce it.** The critic's inputs include `components.md` when it exists. Reimplementing, bypassing (e.g. direct transform updates beside an attached physics controller — the hidden-duplicate-motor defect), or deleting a component marked protected is a **FAIL regardless of how the visual evidence looks**, unless the round journal carries the full replacement-evidence checklist from the reference (demonstrated limitation, reproducing test, alternatives attempted, scope and risks, rollback path, regression tests). This is an architectural criterion IN ADDITION to pixels/perf/console — a duplicated character motor passes a screenshot on day one and desyncs physics, grounding, and animation later.
84
+ > **Direction matters.** The doctrine above governs *consuming* supplied prefabs. A `unity-level` job is usually **authoring** the thing that carries the metadata — there, the equivalent discipline is honoring the exporter's contract (see the pipeline reference's export-boundary gate), not preserving components you are in the act of creating. Say which situation applies in the loop card so critics do not misapply it.
68
85
 
69
86
  ## ⚠️ The Project Specification (SPEC.md)
70
87
 
@@ -80,103 +97,55 @@ The loop may not start until **every slot of the chosen template is filled**. Th
80
97
 
81
98
  Interview batches:
82
99
 
83
- 0. **NAME** — Confirm the job's slug (from `--name:` or derived from the brief). It becomes `_gauntlet/<name>/` and must not collide with an existing job.
84
- 1. **DELIVERABLE** — What artifact ships? (playable browser FPS demo, vertical slice, one polished level, full game...) Module style: ES6/ESM default per the Agent Reference; UMD only if explicitly demanded. New project or existing repo? Target folder.
100
+ 0. **NAME** — Confirm the job's slug. It becomes `_gauntlet/<name>/` and must not collide with an existing job.
101
+ 1. **DELIVERABLE KIND + DELIVERABLE** — Which of the three kinds is this: a **web game**, a **Unity level for export**, or a **Blender model**? Then what exactly ships (playable browser demo, one polished level, a hero asset with LODs...)? Module style: ES6/ESM default; UMD only if explicitly demanded. New project or existing? Target folder. **Read the matching pipeline reference now** and run its prerequisite gate before going further — a failed gate (no Pro licence, no GUI bootstrap, no Blender) changes what is worth agreeing to.
85
102
  2. **OBJECTIVE** — The exact outcome that must become true, as one testable sentence. Rewrite with the user until it is inspectable.
86
- 3. **CONCRETE REFERENCE / MEASURABLE BENCHMARK** — Which real game/media is the bar? What media do the critics get for blind A/B — ask the user to attach or drop reference screenshots/clips (named per part when possible: `weapons-01.png`, `lighting-02.png`, ...) into the chat or a folder; they are copied to `_gauntlet/<name>/reference/`. Plus numeric benchmarks: target FPS @ resolution, max load time, draw-call/texture budgets. If the user has no benchmark, making a defensible one is part of the interview, not skipped.
87
- 4. **SUCCESS CONDITION** — When is the loop DONE? (e.g. "every part scores ≥8/10 on its rubric from a fresh critic OR wins/ties the blind A/B; sustained 60 FPS @1080p in Chrome; zero console errors; final integration critic passes"). Success and failure defined separately.
88
- 5. **BOUNDARIES** — Time/cost expressed in **rounds and attempts, not wall-clock** (wall-clock cannot survive a two-week pause; counters can): max total rounds, max attempts per part before a forced strategy change, max consecutive no-improvement rounds before parking. Permission gates: no deploy, no purchases/paid services, no credentials, no destructive ops, no contacting anyone — without explicit approval. Escalation rules: what blocks and waits for the user.
89
- 6. **Game specifics** (Babylon-expert intake) — genre & camera (FPS/third-person/top-down), physics (Havok default), input scheme, audio, asset pipeline (hand-built primitives/CSG? user-supplied glTF? generated via available image/video workflows?), scene scale & level scope, target browsers/devices, and **explicit scope cuts** — what is OUT (multiplayer? save systems? menus?).
90
- 7. **Loop mechanics** — confirm `--template` choice, rounds-per-session default, and any parts the user wants prioritized first.
103
+ 3. **THE TARGET + CAMERAS** — Per `references/target-images.md`: does the user have reference media, is there an existing artifact to refine, or do we generate the target? Agree the target image(s), run the **reachability pass** (Reachable / Approximable / **OUT OF REACH**), and agree the **locked cameras** — one per target, three to five, including a detail crop. Plus numeric benchmarks: target FPS @ resolution, max load time, draw-call / texture / triangle budgets. If the user has no benchmark, making a defensible one is part of the interview, not skipped.
104
+ 4. **RUBRIC + PASS THRESHOLD** — Confirm the rubric axes from `references/critic-rubrics.md` (or amend them for this job) and the score a part must reach to pass. Default: **8.0 / 10 plus every hard gate green.**
105
+ 5. **SUCCESS CONDITION** — When is the loop DONE? (e.g. "every part scores ≥8/10 from a fresh critic; sustained 60 FPS @1080p in Chrome; zero console errors; the final integration critic passes"). Success and failure defined separately.
106
+ 6. **BOUNDARIES** — Time/cost expressed in **rounds and attempts, not wall-clock** (wall-clock cannot survive a two-week pause; counters can): max total rounds, max attempts per part before a forced strategy change, max consecutive no-improvement rounds. Permission gates: no deploy, no purchases/paid services, no credentials, no destructive ops, no contacting anyone — without explicit approval. For `unity-level`: the **bake tier policy** (how many rounds at preview tier before a production bake). Escalation rules: what blocks and waits for the user.
107
+ 7. **Kind specifics** — For `web-game`: genre & camera, physics (Havok default), input, audio, asset pipeline, scene scale, target browsers, and explicit scope cuts. For `unity-level`: which scene, render pipeline, terrain in scope?, existing lighting to preserve, copilot vs headless Editor. For `blender-model`: which asset, glb-direct or via-unity, in-place or new path, tri budget, texel density, rig to match.
108
+ 8. **Loop mechanics** — confirm `--template` choice, rounds-per-session default, and any parts the user wants prioritized first.
91
109
 
92
- Write all answers to `_gauntlet/<name>/brief.md`. Fill the chosen template's slots (including `<NAME>`) to produce `_gauntlet/<name>/loop-card.md`. **Show the user the filled loop card and get confirmation before round 1.** Nothing builds until the card is confirmed.
110
+ Write all answers to `_gauntlet/<name>/brief.md`. Write the locked cameras to `cameras.md` and the pipeline state to `pipeline.md`. Fill the chosen template's slots to produce `_gauntlet/<name>/loop-card.md`. **Show the user the filled loop card and get confirmation before round 1.** Nothing builds until the card is confirmed.
93
111
 
94
112
  ---
95
113
 
96
114
  # The Gauntlet Workspace (resumable state)
97
115
 
98
- This is what makes the loop resumable days or weeks later: **nothing the loop needs lives in the conversation — it all lives in files.** A brand-new session with zero context reads the workspace and knows exactly where it was.
99
-
100
- **One folder per gauntlet job.** `_gauntlet/` is just the container; every job owns a self-contained `_gauntlet/<name>/` workspace, so any number of gauntlets — even for the same project — can run, park, and resume independently:
116
+ **Nothing the loop needs lives in the conversation — it all lives in files.** One folder per job:
101
117
 
102
118
  ```
103
- _gauntlet/
104
- ├── cod-fps/ # one gauntlet job
105
- │ ├── loop-card.md # The filled template — the loop's constitution:
106
- │ │ # DELIVERABLE, OBJECTIVE, REFERENCE/BENCHMARK,
107
- │ │ # SUCCESS CONDITION, BOUNDARIES.
108
- │ │ # Written once after the interview; the loop never edits it.
109
- │ ├── brief.md # Full interview answers (genre, camera, physics, assets,
110
- │ │ # target FPS, scope cuts, ESM/UMD, ...).
111
- │ ├── components.md # Component inventory of supplied interactive GLTF/GLB
112
- │ │ # assets (protected TOOLKIT.* / project PROJECT.* /
113
- │ │ # authoring-only) — written in round 1, read on resume.
114
- │ │ # Only exists when supplied assets carry component metadata.
115
- │ ├── progress.md # THE resume file — format below.
116
- │ ├── rounds/
117
- │ │ ├── round-01.md # Append-only per-round journal: what was built, critic
118
- │ │ ├── round-02.md # verdict + the named largest gap, evidence links.
119
- │ │ └── ...
120
- │ ├── reference/ # Benchmark media the critics compare against, blind.
121
- │ └── evidence/ # Our side of the A/B: captured screenshots, perf numbers.
122
- └── racing-demo/ # another job, fully independent — same layout
123
- └── ...
119
+ _gauntlet/<name>/
120
+ ├── loop-card.md # the constitution: kind, objective, target, rubric, OUT OF REACH, boundaries
121
+ ├── brief.md # full interview answers
122
+ ├── cameras.md # LOCKED capture cameras — evidence from anywhere else is inadmissible
123
+ ├── pipeline.md # pipeline state: project paths, licence tier, dev server, bake tier
124
+ ├── components.md # component inventory of supplied interactive assets (when applicable)
125
+ ├── progress.md # THE resume file — parts, scores, attempts, failed approaches, NEXT ACTION
126
+ ├── rounds/ # append-only per-round journals with the full gap list
127
+ ├── reference/ # the LOCKED target image(s)
128
+ └── evidence/ # our side: round-NN-<part>-<camera>.png + metrics + metadata dumps
124
129
  ```
125
130
 
126
- **`progress.md` format:**
127
-
128
- ```markdown
129
- # Gauntlet Progress
130
- Name: cod-fps
131
- Template: gauntlet | bounded
132
- Round: 12 (total, cumulative across all sessions)
133
- Budgets: rounds 12/40 · no-improvement streak 0/3 · <other loop-card counters>
134
-
135
- ## Parts
136
- - [x] P1 Movement & player controller — passed round 4 (critic 9/10)
137
- - [~] P2 Weapon hands & viewmodel — attempt 3/5
138
- failed: "PBR metallic-only pass" (round 7 — critic: plastic-looking; evidence/round-07-weapons.png)
139
- failed: "baked AO decals" (round 9 — critic: anatomy still off vs reference/weapons-01.png)
140
- - [ ] P3 Level lighting & atmosphere
141
- - [ ] P4 Enemy AI & combat feel
142
- - [ ] ...
143
-
144
- ## NEXT ACTION
145
- Round 13 — P2: rebuild hand mesh materials with <concrete correction target from
146
- last critic>, re-capture evidence at 1080p, re-run the weapons critic.
147
-
148
- ## Blockers / awaiting user
149
- (none)
150
- ```
131
+ **Full layout, file formats and the resume protocol: `references/workspace.md`.**
151
132
 
152
- - Part states: `- [ ]` pending · `- [~]` in-progress · `- [x]` critic-passed. Never flip `- [x]` for partial, skipped, self-reported, or `unverified` work.
153
- - Every part carries its attempt count and a **failed-approaches log** ("tried X, critic evidence Y, abandoned because Z") so a resumed loop never retries what already lost — a changed strategy is forced, not hoped for.
154
- - **`NEXT ACTION`** is always exactly one imperative instruction a completely cold session can execute first.
155
-
156
- **Persistence rule (HARD):** update `progress.md` and append the round journal **after every round, before starting the next**. If the session dies mid-round (limits, crash, user close), at most the in-flight round is lost. Budgets count **cumulatively across sessions** — the round counter never resets on resume.
157
-
158
- ## Resume protocol (`--resume [<name>]`, or auto-offered)
159
-
160
- 1. Resolve the job: explicit name → that job; one job in `_gauntlet/` → resume it; several → list them and ask.
161
- 2. Fetch/read the Babylon Toolkit Agent Reference if not already remembered in this session.
162
- 3. Read `_gauntlet/<name>/loop-card.md` → `progress.md` → `components.md` (if present) → the last 1–2 `rounds/*.md`.
163
- 4. **Reality check:** verify the workspace still matches the project (files it claims exist do exist; the build still builds; git state sane). Log discrepancies and correct `progress.md` before looping — never resume against stale state.
164
- 5. Report a one-paragraph "resuming from" summary to the user (job name, round counter, parts done/total, next action).
165
- 6. Execute `NEXT ACTION` and enter the round protocol. Chat history is never required — the files ARE the memory.
133
+ **Persistence rule (HARD):** update `progress.md` and append the round journal **after every round, before starting the next**. Budgets count **cumulatively across sessions** — the round counter never resets on resume.
166
134
 
167
135
  ---
168
136
 
169
- # The Round Protocol (one round; both templates)
137
+ # The Round Protocol (one round; every kind, both templates)
170
138
 
171
- 1. **Inspect** the current state: `progress.md` + the actual project — plus `components.md` when supplied assets carry component metadata (write it now if it is owed and missing).
172
- 2. **Select** the highest-impact unmet criterion/part (respect user priorities from the brief).
173
- 3. **Build** — make one coherent improvement. **Template A:** fan out builder subagents only for *genuinely independent* parts; **keep tightly coupled systems under one sequential owner** (the Claude-of-Duty repo itself notes broad fan-out performed WORSE than sequential ownership for coupled visual systems). **Template B:** single-track — one improvement at a time.
174
- 4. **Verify with the real artifact** — build/serve the game, then capture **real browser evidence**: screenshots into `_gauntlet/<name>/evidence/` (via chrome-devtools MCP or the host's browser tool), perf/FPS numbers, console-error check. **Screenshots are required for visual parts.** If no browser tool exists in this host, mark the part `unverified` in `progress.md` — an `unverified` part can NEVER be flipped to `- [x]` on the builder's word; code/perf/test critics still run.
175
- 5. **Criticize (fresh context)** — spawn a harsh critic subagent that receives ONLY: the loop card, this part's spec, the reference media, the captured evidence, and `components.md` (when it exists) — **never the builder's rationale**. Component-authority violations (a protected `TOOLKIT.*` component reimplemented, bypassed, or deleted without the reference's replacement-evidence checklist in the round journal) are an automatic FAIL, whatever the pixels look like. It compares our evidence with `_gauntlet/<name>/reference/` as a **blind A/B** where possible ("frame 1 vs frame 2 — which looks better and why"), scores against the rubric, names the **single largest meaningful gap** with a concrete correction target, and returns PASS/FAIL with evidence. The critic does not grade effort or intent; it grades pixels, numbers, and behavior.
176
- 6. **Record** — append `rounds/round-NN.md`; update `progress.md`: on PASS flip the part to `- [x]`; on FAIL log the gap as the next attempt's target and increment the attempt counter; if the part hit its attempts boundary, force a strategy change or escalate. Persist BEFORE the next round.
139
+ 1. **Inspect** the current state: `progress.md` + `pipeline.md` + the actual project — plus `components.md` when supplied assets carry component metadata (write it now if it is owed and missing).
140
+ 2. **Select** the highest-impact unmet criterion — normally the top entries of the **standing gap list** from the last critic, respecting user priorities from the brief.
141
+ 3. **Build** — make one coherent improvement, through the deliverable kind's build surface. **Template A:** fan out builder subagents only for *genuinely independent* parts; **keep tightly coupled systems under one sequential owner** (broad fan-out performs WORSE than sequential ownership for coupled visual systems). **Template B:** single-track. When a stall tier is active, obey it — incremental tweaks are forbidden and the round must carry a `STRATEGY:` line.
142
+ 4. **Verify with the real artifact** — run the pipeline's verify recipe and capture evidence **from the locked cameras** into `_gauntlet/<name>/evidence/`: screenshots, metrics (FPS, draws, load time, console errors), and the pipeline's own read-back (exported scene metadata, GUID check, tri count). **Screenshots are required for visual parts.** If the host cannot produce the evidence, mark the part `unverified` — it can NEVER be flipped to `- [x]` on the builder's word.
143
+ 5. **Criticize (fresh context)** — spawn a harsh critic subagent per `references/critic-rubrics.md`. It receives the loop card, the part's spec, the target, the evidence, the metrics, **the previous round's screenshot and verdict**, and the pipeline's extra inputs — **never the builder's rationale**. It returns a **scored rubric**, the **FULL prioritized gap list** (not one gap), every **hard gate** as pass/fail, a regression note, and PASS/FAIL. It grades pixels, numbers and behaviour — never effort or intent.
144
+ 6. **Record** — append `rounds/round-NN.md` with the score and the whole gap list; update `progress.md`: on PASS flip the part to `- [x]`; on FAIL log the top gap and increment the attempt counter; update the best/last scores and the stall tier. Persist BEFORE the next round.
177
145
  7. **Gate check**, in order:
178
- - **Success condition met** → run the **integration pass**: one final fresh critic inspects the complete game end-to-end for consistency, seams, and fit with the original objective (local quality can rise while the whole becomes inconsistent). On pass, report DONE with the evidence summary.
179
- - **A loop-card boundary fired** (rounds exhausted, repeated blocker, permission needed, no-improvement streak) → park + escalate to the user with specifics.
146
+ - **Success condition met** → run the **integration pass**: one final fresh critic inspects the complete artifact end-to-end for consistency, seams, and fit with the objective (local quality can rise while the whole becomes inconsistent). For `unity-level`, run the **production bake** first. On pass, report DONE with the evidence summary.
147
+ - **Stall ladder fired** → **STALL APPROACHING** (no full-point gain in 2 rounds, or the same top gap twice) forbids tweaks and forces one architectural change next round. **STALLED** (that swing scored the same or worse) parks and escalates to the user. See `references/critic-rubrics.md` § 4.
148
+ - **A loop-card boundary fired** (rounds exhausted, repeated blocker, permission needed) → park + escalate with specifics.
180
149
  - **`--rounds` session cap reached** → park cleanly: status report + print exactly `/bt-gauntlet --resume <name>`.
181
150
  - Otherwise → next round.
182
151
 
@@ -184,152 +153,136 @@ Parking is always clean: state persisted, status reported, resume command printe
184
153
 
185
154
  ---
186
155
 
187
- # Template A — Universal Gauntlet Loop (`--template:gauntlet`, default)
156
+ # Worked Examples
157
+
158
+ ## Example 1 — A game level from scratch, from reference images (or generated ones)
159
+
160
+ ```
161
+ /bt-gauntlet --name:neon-alley --rounds:12 Build me a rain-soaked neon alley level in Unity
162
+ and export it for my BabylonJS game — wet asphalt with puddle reflections, layered signage,
163
+ volumetric haze under the lights, at the fidelity of the attached screenshots.
164
+ ```
165
+
166
+ **If the user attaches nothing**, the interview generates the target instead — a real in-engine screenshot, never concept art (`references/target-images.md` § 2):
167
+
168
+ ```
169
+ generate_image(
170
+ prompt: "in-engine screenshot from a modern real-time WebGL game, narrow rain-soaked
171
+ alley at night, wet asphalt with sharp neon reflections in standing water,
172
+ layered Kanji signage in magenta and cyan, thin haze in the light cones,
173
+ baked global illumination, gameplay camera at eye height, 1920x1080",
174
+ out_path: "_gauntlet/neon-alley/reference/target-hero.png",
175
+ aspect_ratio: "16:9", resolution: "2K", output_format: "png")
176
+ ```
177
+
178
+ **Interview settles:** kind `unity-level`; three locked cameras (`gauntlet_hero` down the alley, `gauntlet_side` across the puddles, `gauntlet_detail` on a sign); pass threshold 8.0; budgets 60 FPS @1080p, ≤900 draws; bake policy *preview until round 8, then production*.
179
+
180
+ **The reachability pass matters here.** Screen-space reflections in the target have no export key — the declared approach becomes *a reflection probe per puddle group plus a wet-mask material*, recorded as **Approximable**. True volumetric light shafts go to `OUT OF REACH`; height fog stands in. Without this the critic names "no SSR" every round forever.
181
+
182
+ **Round 1** runs the prerequisite gate (`bt_status` → `pro : True` or park), writes `pipeline.md`, authors the blockout via `eval_file`, creates the LightingSettings asset (`NewScene → build → SaveScene → assign → MarkSceneDirty → SaveOpenScenes`), places the three `gauntlet_*` cameras, and decomposes into the P1–P11 part checklist.
183
+
184
+ **Each round after that:**
185
+
186
+ ```bash
187
+ unity command eval 'UnityEditor.Lightmapping.BakeAsync(); return "started";' --project-path "$PROJ"
188
+ unity command eval 'return UnityEditor.Lightmapping.isRunning;' --project-path "$PROJ" # poll to False
189
+ unity command bt_export_level --scene Assets/Scenes/NeonAlley.unity --project-path "$PROJ" --timeout 900
190
+ unity command bt_devserver_start --project-path "$PROJ"
191
+ # browser: select gauntlet_hero, screenshot -> evidence/round-NN-p7-hero.png
192
+ jq '.scenes[0].extras.metadata | {license,skybox,ambientlighting,reflectionprobeintensity,fogmode,exposure,tonemapping}' \
193
+ "$PROJ/Export/scenes/neonalley.gltf" > evidence/round-NN-p7-metadata.json
194
+ ```
195
+
196
+ The critic scores hero + side + detail against their targets, returns the full gap list, and checks the export-boundary gate — *did `reflectionprobeintensity` actually change, or did the round only move a Unity slider that never crossed?*
197
+
198
+ **Parks** at round 12 with `/bt-gauntlet --resume neon-alley`. Weeks later that resumes cold: re-read the workspace, re-launch the Editor, re-run the gate, continue at `NEXT ACTION`.
188
199
 
189
- Kept verbatim here so it is easy to modify. The interview fills the `<SLOTS>` — including `<NAME>`, the job's slug — and the filled copy becomes `_gauntlet/<name>/loop-card.md`.
200
+ ## Example 2 — Spit and polish on an existing Unity level
190
201
 
191
202
  ```
192
- I want you to create <DELIVERABLE> that achieves <OBJECTIVE> at the quality
193
- level of <CONCRETE REFERENCE OR MEASURABLE BENCHMARK>.
194
-
195
- Build it with BabylonJS and the Babylon Toolkit (NOT Three.js), following the
196
- Babylon Toolkit Agent Reference conventions already loaded in this session.
197
-
198
- This gauntlet job is named <NAME>; all of its loop state lives in
199
- _gauntlet/<NAME>/ and never anywhere else.
200
-
201
- Choose the approach. Break the work into the smallest important parts that can
202
- be improved and judged independently, and record that decomposition as the part
203
- checklist in _gauntlet/<NAME>/progress.md. Fan out builder subagents only where
204
- the work is genuinely independent; keep tightly coupled systems under one owner.
205
- Give every important part a separate, harsh critic with fresh context.
206
-
207
- If the supplied assets include GLTF/GLB files carrying Babylon Toolkit component
208
- metadata (extras.metadata.components), write the component inventory to
209
- _gauntlet/<NAME>/components.md in round 1 and honor it every round: TOOLKIT.*
210
- components are first-class — compose and tune them through PROJECT.* scripts,
211
- never reimplement, bypass, or delete them (see the Agent Reference's
212
- "Babylon Toolkit Component Authority" section). Critics fail violations.
213
-
214
- Each critic must inspect the real running game — browser screenshots captured
215
- into _gauntlet/<NAME>/evidence/ — not the builder's summary, and compare it
216
- directly with the reference media in _gauntlet/<NAME>/reference/, using a blind
217
- A/B comparison where possible. If our result loses, identify the largest
218
- meaningful gap, return it to the builder, and run another round.
219
-
220
- After EVERY round, update _gauntlet/<NAME>/progress.md and append
221
- _gauntlet/<NAME>/rounds/round-NN.md before starting the next round, so a
222
- brand-new session can resume this loop with `/bt-gauntlet --resume <NAME>`
223
- at any time.
224
-
225
- Keep looping until the output meets <SUCCESS CONDITION>, improvements no longer
226
- justify another round, or one of these boundaries fires: <TIME / COST / ATTEMPT /
227
- PERMISSION / SAFETY BOUNDARIES>. Escalate blockers that require human judgment.
228
-
229
- Finish with one fresh integration critic that checks the complete game for
230
- consistency, correctness, and fit with the original objective.
231
-
232
- Do not deploy, spend money, use credentials, contact people, or make
233
- irreversible changes without explicit approval.
203
+ /bt-gauntlet --name:harbor-polish --rounds:20 Take my existing Assets/Scenes/Harbor.unity
204
+ and push it to the fidelity of the attached shots — I want the lighting and materials to
205
+ sing. Don't change the layout.
234
206
  ```
235
207
 
236
- # Template B — Bounded AI Loop Card (`--template:bounded`)
208
+ The difference from Example 1 is **the target is a refinement of what exists, not a new dream**:
237
209
 
238
- Use when reliability and cost matter more than dramatic language. Same slots; kept verbatim here so it is easy to modify.
210
+ 1. Export and capture the level **as it stands today** from the agreed cameras — that is `evidence/round-00-baseline-*.png`.
211
+ 2. Feed the baseline to the image model as the reference so the target improves the real scene rather than reimagining it:
239
212
 
240
213
  ```
241
- OBJECTIVE
242
- <OBJECTIVE — the exact outcome that should become true for <DELIVERABLE>>
243
-
244
- ENGINE
245
- BabylonJS + Babylon Toolkit (NOT Three.js), per the Babylon Toolkit Agent
246
- Reference conventions already loaded in this session.
247
-
248
- INPUTS AND STATE
249
- This gauntlet job is named <NAME>; all of its loop state lives in
250
- _gauntlet/<NAME>/ and never anywhere else.
251
- Use: _gauntlet/<NAME>/loop-card.md, _gauntlet/<NAME>/brief.md,
252
- _gauntlet/<NAME>/progress.md, _gauntlet/<NAME>/reference/, and the project
253
- sources. Record after every round in _gauntlet/<NAME>/progress.md and
254
- _gauntlet/<NAME>/rounds/: what changed, evidence, score, failed approach,
255
- next action, and remaining budget — so `/bt-gauntlet --resume <NAME>` can
256
- continue from a brand-new session.
257
-
258
- METRIC / VERIFIER
259
- Success requires all of the following:
260
- - <CONCRETE REFERENCE OR MEASURABLE BENCHMARK — objective test or benchmark>
261
- - <quality rubric or blind reference comparison via _gauntlet/<NAME>/evidence/ screenshots>
262
- - <integration, performance, accessibility, or safety check>
263
- - No component-authority violations: supplied TOOLKIT.* components are composed
264
- and tuned through PROJECT.* scripts, never reimplemented or bypassed
265
- (inventory: _gauntlet/<NAME>/components.md, when supplied assets carry
266
- component metadata)
267
-
268
- PROCESS
269
- 1. Inspect the current state (progress.md + the actual project).
270
- 2. Choose the highest-impact unmet criterion.
271
- 3. Make one coherent improvement.
272
- 4. Run the real verifier (build, browser screenshots, perf capture).
273
- 5. If it fails, feed the evidence into a CHANGED strategy and repeat.
274
- 6. If it passes, run a fresh independent final review.
275
-
276
- BOUNDARIES
277
- Allowed actions: read, draft, edit, build, test, render, screenshot.
278
- Forbidden without approval: deploy, delete, purchase, publish, message, secrets.
279
- Stop, park state, and report when: <SUCCESS CONDITION> passes; <TIME / COST /
280
- ATTEMPT / PERMISSION / SAFETY BOUNDARIES> is reached; the same blocker repeats;
281
- or uncertainty requires human judgment.
214
+ generate_image(
215
+ prompt: "the same harbor scene, same layout and camera, upgraded to a modern real-time
216
+ in-engine look: warmer low sun, softer bounce into the shadows, wet stone with
217
+ varied roughness, richer ambient occlusion, subtle haze over the water",
218
+ reference_paths: ["_gauntlet/harbor-polish/evidence/round-00-baseline-hero.png"],
219
+ out_path: "_gauntlet/harbor-polish/reference/target-hero.png")
282
220
  ```
283
221
 
284
- ---
222
+ 3. **Constrain the part list.** "Don't change the layout" removes P1/P2/P3 from scope — record that as an explicit scope cut, so the loop works only P4–P11 (materials, light rig, GI bake, IBL, probes, atmosphere, image processing, perf) and a critic never raises a composition gap.
223
+ 4. **Capture the baseline score.** Round 1's critic scores the untouched level against the target. That number is the floor — every later round is measured against it, and a regression below it is a gate failure, not a preference.
224
+ 5. Bake tiering matters more here than anywhere, because the scene is already heavy: preview tier for the convergence rounds, one production bake before the integration critic.
285
225
 
286
- # Composition with the Spec Workflow (bt-spec / bt-plan / bt-execute)
226
+ Because the scene was authored in the GUI it already has a LightingSettings asset — but **always pass `--scene`** anyway, or a fresh Editor session silently exports the template's default scene instead.
287
227
 
288
- **The gauntlet contains its own plan — never run bt-plan on gauntlet work.** The mapping to the sibling skills:
228
+ ## Example 3 — A high-fidelity Blender model with spit and polish
289
229
 
290
- | Spec workflow | Gauntlet equivalent |
291
- | --- | --- |
292
- | `_specs/<feature>_spec.md` (bt-spec) | `_gauntlet/<name>/loop-card.md` — objective, benchmark, success condition, boundaries |
293
- | `_specs/<feature>_plan.md` (bt-plan) | the part checklist in `_gauntlet/<name>/progress.md` — the lead agent's round-1 decomposition |
294
- | bt-execute `ALL` (checkbox resume) | the round protocol + `--resume <name>` |
230
+ ```
231
+ /bt-gauntlet --name:hero-mech --rounds:15 Take Assets/Models/mech.fbx and make it a hero
232
+ asset — bevelled panel work, real wear, proper PBR maps, under 45k tris with an LOD chain.
233
+ Reference is the attached turntable.
234
+ ```
295
235
 
296
- The difference is when a box may flip. A **bt-plan task** is feed-forward: known work, visited once, `- [x]` when its acceptance verifies. A **gauntlet part** is feedback: `- [x]` only when a fresh critic says it beats the reference bar, however many rounds that takes.
236
+ **Interview settles:** kind `blender-model`; route `via-unity` (it needs components later, so Blender fixes the model and Unity composes); **write mode IN PLACE** so the GUID and importer settings survive every round; a frozen viewer rig (one HDRI, one exposure, no post) written into `pipeline.md`; four locked angles including a detail crop; budgets 45k tris, 512 px/m texel density.
297
237
 
298
- **Rule of thumb:** acceptance criteria you can enumerate up front, each satisfiable in one pass → **bt-spec → bt-plan → bt-execute**. "As good as *that*" against a reference, unknown iteration count → **bt-gauntlet**.
238
+ **The two rules that protect the project**, both hard gates every round:
299
239
 
300
- **Typical sequence for a real game — use both:**
240
+ ```bash
241
+ cp "$FBX" "$FBX.bak" # the write is destructive — always
242
+ blender --background --factory-startup --python-exit-code 1 \
243
+ --python /tmp/round-07-bevels.py -- "$FBX" "$FBX" # same path in and out
244
+ unity command eval 'UnityEditor.AssetDatabase.Refresh(UnityEditor.ImportAssetOptions.ForceSynchronousImport); return "ok";' --project-path "$PROJ"
245
+ ```
301
246
 
302
- 1. **Foundation via the spec workflow** — scaffold, player controller, physics, level loading, weapon systems, HUD. Checklist-shaped work with crisp acceptance; cheaper and faster than critic rounds.
303
- 2. **Quality via a gauntlet job** — once the game exists, `/bt-gauntlet --name:aaa-polish <brief>` with the reference media. The loop builds on whatever the plan produced.
247
+ Without `--python-exit-code 1` a crashed script exits `0` and the loop records a failed round as a success. Without in-place writing, every round mints a new GUID and quietly detaches the model from every scene that used it.
304
248
 
305
- ## Inside the spec loop (bt-gauntlet named in a bt-spec brief)
249
+ **Evidence is the engine, not Cycles.** The `.glb`/level is re-exported and loaded in the browser under the frozen rig — a Cycles render flatters a model in ways a real-time renderer will not. Render the same angles from Blender as a *secondary* frame so the critic can say which side of the boundary a gap is on: Blender right + engine wrong means the material translation is the problem, not the sculpt.
306
250
 
307
- When a bt-spec / bt-plan / bt-execute run encounters this skill named in its brief (e.g. `/bt-spec Build the racing game, then polish it to Gran Turismo quality using bt-gauntlet`), the composition follows the same idiom bt-prototype uses with bt-hero — **pre-resolve everything at spec time so nothing prompts mid-run**:
251
+ **Textures are generated, never procedural stand-ins** — `generate_image` for albedo, normal and roughness detail. "Substituted procedural noise for the missing map" is a gate failure, and it is the single most common reason a model reads as plastic.
308
252
 
309
- - **bt-spec:** the interview happens HERE, at spec time — the spec answers every loop-card slot (including `<NAME>`, the reference media to collect into `_gauntlet/<name>/reference/`, and the boundaries) and writes the **pre-filled loop card** as a spec artifact (e.g. `_specs/<feature>_gauntlet-card.md`).
310
- - **bt-plan:** the gauntlet becomes one task (usually the last), whose Details invoke `/bt-gauntlet --card:_specs/<feature>_gauntlet-card.md --rounds:N`. Its **Acceptance** is observable: "gauntlet job `<name>` reports DONE — success condition met and the integration critic passed — as evidenced by `_gauntlet/<name>/progress.md` and the final round journal."
311
- - **bt-execute:** runs the task by invoking the gauntlet non-interactively. Because a gauntlet may outlast one session, the task's checkbox stays `- [ ]` while the job is merely parked; each later `bt-execute <plan> NEXT` run re-enters via `/bt-gauntlet --resume <name>` and the box flips only when the job genuinely reports DONE (or a loop-card boundary fires and the user accepts the parked result — record which). The gauntlet's own critic evidence IS the acceptance evidence; the bt-execute verifier reads `progress.md` + the last round journal rather than re-judging the art.
253
+ Scored on the **model rubric** (Silhouette & Proportion · Surface & Material · Detail Density · Topology & Efficiency · Integration Readiness), with gates on tri budget, ≤4 influences/vertex, weights normalised, transform hygiene and GUID survival.
312
254
 
313
- bt-gauntlet never orchestrates bt-spec itself — composition is always initiated from the spec side.
255
+ ## Example 4 — The canonical brief (engine correction is automatic)
256
+
257
+ ```
258
+ /bt-gauntlet I want you to build a first-person shooter at the level of the most recent
259
+ Call of Duty games. It should be utterly perfect, visually beautiful, with every single
260
+ thing done at AAA quality—from textures to physics to anything you could think of.
261
+ ```
262
+
263
+ The interview turns that into a filled loop card built with **BabylonJS + the Babylon Toolkit, not ThreeJS** — and, because "AAA quality" is not a bar, into a locked target image, locked cameras, a rubric and a pass threshold before a single round runs.
314
264
 
315
265
  ---
316
266
 
317
267
  # Failure-Mode Guardrails (loop rules, non-negotiable)
318
268
 
319
269
  - **The builder never grades its own work.** Verdicts come from fresh-context critics (or the strictly-scoped inline discipline above).
320
- - **No single gameable score.** Every part is judged on several guardrails at once (visual A/B + perf + console-clean + rubric), never one narrow number.
321
- - **Repetition without a changed strategy is a boundary event**, not persistence. The failed-approaches log exists to force adaptation.
322
- - **Progress is never self-reported.** Screenshots, perf numbers, test output, diffs — an observable receipt, or it didn't happen.
270
+ - **The bar is an image, and it is locked.** No prose bars. No moving the target mid-run except by a dated amendment that resets the affected parts' score history.
271
+ - **Evidence comes from the locked cameras.** A frame shot from anywhere else is inadmissible, however good it looks.
272
+ - **No single gameable score.** The rubric score decides quality; the hard gates decide admissibility. A part passes only when both are satisfied — perf, console, camera lock, component authority and the pipeline gate all green.
273
+ - **The critic returns the whole gap list.** One gap per round is a slow loop; a comprehensive, actionable, prioritized list is the work order for the next round.
274
+ - **Scores must be comparable.** Every critic sees the previous verdict and screenshot. A regression scores worse and says what regressed.
275
+ - **Repetition without a changed strategy is a boundary event**, not persistence. The stall ladder is mandatory, and its triggers are concrete: no full-point gain in 2 rounds, or the same top gap twice.
276
+ - **Progress is never self-reported.** Screenshots, perf numbers, exported metadata, diffs — an observable receipt, or it didn't happen.
277
+ - **Never chase what cannot cross the boundary.** The `OUT OF REACH` list exists so critics stop naming impossible gaps.
323
278
  - **Permissions start reversible.** Deploy, delete, spend, publish, message, and secrets stay behind explicit user approval, always.
324
279
  - **Context rots; files don't.** Compact durable state in `_gauntlet/<name>/` beats a long chat history. On any doubt, trust the files and the actual project, then correct `progress.md`.
280
+ - **Pipeline state does not survive a pause.** A resident Unity Editor, a dev server, a warm asset database: all session-scoped. Re-run the prerequisite gate on every resume.
325
281
  - **Jobs never bleed into each other.** A round touches only its own `_gauntlet/<name>/` state; other jobs' workspaces are read-only neighbors.
326
- - **Every park prints the exact resume command** so the user always knows how to continue: `/bt-gauntlet --resume <name>`.
282
+ - **Every park prints the exact resume command**: `/bt-gauntlet --resume <name>`.
327
283
 
328
- # Cross-Host Notes
284
+ ---
329
285
 
330
- This skill runs the same everywhere because resumability depends on nothing but the `_gauntlet/` files and re-invocation — no host loop feature is required.
286
+ # Composition and Cross-Host Notes
331
287
 
332
- - **Subagents:** tool names differ (Claude Code `Agent`/`Task`; other hosts their own equivalent). Check the tools you actually have; never call one you don't. No subagent tool → inline with the fresh-context discipline.
333
- - **Browser evidence:** chrome-devtools MCP on Claude Code; other hosts use their browser/screenshot tool. None available → parts are `unverified`, never passed.
334
- - **Interview:** `AskUserQuestion` where the host has it; plain numbered questions otherwise.
335
- - **Skill loading:** where skills are loaded with a tool (the Babylon Toolkit App Builder platform), `load_skill('bt-gauntlet')`; where skills are files on disk (Claude Code), this file lives in `~/.claude/skills/` or the project's `.claude/skills/`.
288
+ How this skill composes with **bt-spec / bt-plan / bt-execute**, and how it degrades across hosts that lack subagents, browser tools, image generation or a shell: **`references/spec-composition.md`**.