@babylonjs-toolkit/agent 1.1.12 → 1.1.15
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.
- package/README.md +29 -8
- package/package.json +1 -1
- package/skills/bt-gauntlet/SKILL.md +191 -220
- package/skills/bt-gauntlet/references/critic-rubrics.md +179 -0
- package/skills/bt-gauntlet/references/loop-templates.md +131 -0
- package/skills/bt-gauntlet/references/spec-composition.md +87 -0
- package/skills/bt-gauntlet/references/target-images.md +121 -0
- package/skills/bt-gauntlet/references/unity-pipeline.md +480 -0
- package/skills/bt-gauntlet/references/workspace.md +134 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bt-gauntlet
|
|
3
|
-
description: "The Babylon Toolkit Gauntlet Skill
|
|
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. Two deliverable kinds share one loop — BabylonJS / Babylon Toolkit web games, and anything authored in Unity (game levels and the individual assets in them: baked GI, IBL, reflection probes, terrain, fog, tonemapping, materials, models), with headless Blender as the tool for low-level model work. Unity plus the Toolkit exporter is the content-creation surface and asset manager, shipping interactive glTF that BabylonJS loads; iteration stays inside Unity on camera snapshots and the export is a deliberate checkpoint, not a per-round tax. 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`, `
|
|
24
|
-
- **`--template: gauntlet | bounded`** — which loop template drives the run. `gauntlet` = **Template A** (full-on Shumer-style fan-out: builders vs fresh harsh critics
|
|
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
|
|
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
|
|
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
|
|
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
|
-
**
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
# Deliverable kinds — what the loop is actually building
|
|
37
|
+
|
|
38
|
+
**One loop, two 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`.
|
|
39
|
+
|
|
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`** | a Unity scene via the Unity CLI — terrain, light rig, probes, bake settings, volumes, materials — with **headless Blender as the tool** for low-level model and asset work (in place, so GUIDs survive) | **in-loop: a Unity camera snapshot** rendered straight to PNG from the locked camera. Export + browser only at checkpoints (round 1, and when the work is done) | `references/unity-pipeline.md` |
|
|
44
|
+
|
|
45
|
+
> **Unity is the content-creation tool and the asset manager. Blender is a tool inside it.** There is one Unity pipeline, whether the job is polishing a whole level or one asset in it. Blender does low-level model and asset creation and edits — **in place**, so GUIDs and importer settings survive — and its job ends the moment the model is back in Unity. From there the model is simply an asset in a scene: it gets its materials, colliders, LOD group, rig and Toolkit components there, and it is judged there, lit by that scene. **What gets exported is the user's call at the time** — by prompt, or from the Unity Export buttons: the whole scene as a game level (`selection == null`, full scene metadata), or one asset as an asset container (`selection != null`, components only). An asset used in a level ships inside that level's export; nothing asset-specific is required.
|
|
40
46
|
|
|
41
|
-
|
|
47
|
+
**Read the pipeline reference before round 1**, and again on every `--resume` (a resumed session has lost that context). It defines the prerequisite gate, build surface, the Blender tool section, part taxonomy, verify recipe, extra critic gates and known failure modes.
|
|
42
48
|
|
|
43
|
-
|
|
49
|
+
## Reference map
|
|
50
|
+
|
|
51
|
+
| File | What it holds |
|
|
52
|
+
|---|---|
|
|
53
|
+
| `references/workspace.md` | the `_gauntlet/<name>/` layout, `progress.md` and round-journal formats, the resume protocol |
|
|
54
|
+
| `references/critic-rubrics.md` | the critic contract, the scoring rubrics, the gap-list rules, the hard gates, the stall ladder |
|
|
55
|
+
| `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras |
|
|
56
|
+
| `references/loop-templates.md` | Template A and Template B loop cards |
|
|
57
|
+
| `references/unity-pipeline.md` | the Unity build + verify pipeline, with Blender as the modelling tool |
|
|
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
|
|
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 a `unity` job the Unity Exporter subpage is **always** relevant, plus the Blender CLI subpage whenever model work is in scope. 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,
|
|
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
|
-
|
|
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` 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,58 @@ 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
|
|
84
|
-
1. **DELIVERABLE** —
|
|
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. **
|
|
87
|
-
4. **
|
|
88
|
-
5. **
|
|
89
|
-
6. **
|
|
90
|
-
7. **
|
|
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`: 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`: which scene (that is where the work is authored, rendered and judged), render pipeline, terrain in scope?, existing lighting to preserve, whether Blender model work is in scope (and if so which assets, in-place or new path, tri budget, texel density, rig to match), the bake tier policy, and the checkpoint cadence (round 1 + when done, by default). The Editor runs in **copilot mode** — `-nographics` cannot render the in-loop snapshots. What finally gets exported — the whole level, or an individual asset as a container — is the user's call at checkpoint time, not something to decide now.
|
|
108
|
+
|
|
109
|
+
8. **Loop mechanics** — confirm `--template` choice, rounds-per-session default, and any parts the user wants prioritized first.
|
|
91
110
|
|
|
92
|
-
Write all answers to `_gauntlet/<name>/brief.md`. Fill the chosen template's slots
|
|
111
|
+
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
112
|
|
|
94
113
|
---
|
|
95
114
|
|
|
96
115
|
# The Gauntlet Workspace (resumable state)
|
|
97
116
|
|
|
98
|
-
|
|
117
|
+
**Nothing the loop needs lives in the conversation — it all lives in files.** One folder per job:
|
|
99
118
|
|
|
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:
|
|
101
|
-
|
|
102
|
-
```
|
|
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
|
-
└── ...
|
|
124
119
|
```
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
#
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
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)
|
|
120
|
+
_gauntlet/<name>/
|
|
121
|
+
├── loop-card.md # the constitution: kind, objective, target, rubric, OUT OF REACH, boundaries
|
|
122
|
+
├── brief.md # full interview answers
|
|
123
|
+
├── cameras.md # LOCKED capture cameras — evidence from anywhere else is inadmissible
|
|
124
|
+
├── pipeline.md # pipeline state: project paths, licence tier, capture mode, bake tier, checkpoints
|
|
125
|
+
├── components.md # component inventory of supplied interactive assets (when applicable)
|
|
126
|
+
├── progress.md # THE resume file — parts, scores, attempts, failed approaches, NEXT ACTION
|
|
127
|
+
├── rounds/ # append-only per-round journals with the full gap list
|
|
128
|
+
├── reference/ # the LOCKED target image(s)
|
|
129
|
+
└── evidence/ # our side: round-NN-<part>-<camera>.png + metrics + metadata dumps
|
|
150
130
|
```
|
|
151
131
|
|
|
152
|
-
|
|
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.
|
|
132
|
+
**Full layout, file formats and the resume protocol: `references/workspace.md`.**
|
|
155
133
|
|
|
156
|
-
**Persistence rule (HARD):** update `progress.md` and append the round journal **after every round, before starting the next**.
|
|
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.
|
|
134
|
+
**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
135
|
|
|
167
136
|
---
|
|
168
137
|
|
|
169
|
-
# The Round Protocol (one round; both templates)
|
|
138
|
+
# The Round Protocol (one round; every kind, both templates)
|
|
139
|
+
|
|
140
|
+
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).
|
|
141
|
+
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.
|
|
142
|
+
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.
|
|
143
|
+
4. **Verify with the real artifact** — run the pipeline's verify recipe and capture evidence **from the locked cameras** into `_gauntlet/<name>/evidence/`: screenshots plus whatever metrics that pipeline can measure in-loop. **Use the pipeline's cheap in-loop mode every round** — for `unity` that is a Unity camera snapshot, *not* a bake-export-serve-browser round trip; the expensive engine verification is a deliberate checkpoint (round 1, and when the work is done), never a per-round tax. **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.
|
|
170
144
|
|
|
171
|
-
|
|
172
|
-
|
|
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.
|
|
145
|
+
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.
|
|
146
|
+
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
147
|
7. **Gate check**, in order:
|
|
178
|
-
- **Success condition met** → run the **integration pass**: one final fresh critic inspects the complete
|
|
179
|
-
|
|
148
|
+
- **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` this is where the expensive path finally runs — **production bake → export → serve → browser** — so the integration critic judges the real deliverable and the perf, console, component and export-boundary gates are measured for real. Ask the user what to export if it is not obvious: the whole level, or an individual asset as a container. On pass, report DONE with the evidence summary.
|
|
149
|
+
|
|
150
|
+
- **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.
|
|
151
|
+
- **A loop-card boundary fired** (rounds exhausted, repeated blocker, permission needed) → park + escalate with specifics.
|
|
180
152
|
- **`--rounds` session cap reached** → park cleanly: status report + print exactly `/bt-gauntlet --resume <name>`.
|
|
181
153
|
- Otherwise → next round.
|
|
182
154
|
|
|
@@ -184,152 +156,151 @@ Parking is always clean: state persisted, status reported, resume command printe
|
|
|
184
156
|
|
|
185
157
|
---
|
|
186
158
|
|
|
187
|
-
#
|
|
159
|
+
# Worked Examples
|
|
160
|
+
|
|
161
|
+
## Example 1 — A game level from scratch, from reference images (or generated ones)
|
|
162
|
+
|
|
163
|
+
```
|
|
164
|
+
/bt-gauntlet --name:neon-alley --rounds:12 Build me a rain-soaked neon alley level in Unity
|
|
165
|
+
and export it for my BabylonJS game — wet asphalt with puddle reflections, layered signage,
|
|
166
|
+
volumetric haze under the lights, at the fidelity of the attached screenshots.
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
**If the user attaches nothing**, the interview generates the target instead — a real in-engine screenshot, never concept art (`references/target-images.md` § 2):
|
|
170
|
+
|
|
171
|
+
```
|
|
172
|
+
generate_image(
|
|
173
|
+
prompt: "in-engine screenshot from a modern real-time WebGL game, narrow rain-soaked
|
|
174
|
+
alley at night, wet asphalt with sharp neon reflections in standing water,
|
|
175
|
+
layered Kanji signage in magenta and cyan, thin haze in the light cones,
|
|
176
|
+
baked global illumination, gameplay camera at eye height, 1920x1080",
|
|
177
|
+
out_path: "_gauntlet/neon-alley/reference/target-hero.png",
|
|
178
|
+
aspect_ratio: "16:9", resolution: "2K", output_format: "png")
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
**Interview settles:** kind `unity`; 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*.
|
|
182
|
+
|
|
183
|
+
**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.
|
|
184
|
+
|
|
185
|
+
**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.
|
|
186
|
+
|
|
187
|
+
Round 1 also runs the **one calibration checkpoint** — a single export + browser load — to prove the whole chain works before investing 12 rounds, and to record what actually crosses the export boundary.
|
|
188
188
|
|
|
189
|
-
|
|
189
|
+
**Every round after that stays inside Unity:**
|
|
190
190
|
|
|
191
|
+
```bash
|
|
192
|
+
# bake (preview tier) only if this round touched anything GI-dependent
|
|
193
|
+
unity command eval 'UnityEditor.Lightmapping.BakeAsync(); return "started";' --project-path "$PROJ"
|
|
194
|
+
unity command eval 'return UnityEditor.Lightmapping.isRunning;' --project-path "$PROJ" # poll to False
|
|
195
|
+
|
|
196
|
+
# snapshot each locked camera straight to PNG — no export, no server, no browser
|
|
197
|
+
unity command eval_file /tmp/snap-hero.cs --project-path "$PROJ" # -> evidence/round-NN-p7-hero.png
|
|
191
198
|
```
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
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.
|
|
199
|
+
|
|
200
|
+
Seconds, not minutes. The critic scores hero + side + detail against their targets and returns the full gap list.
|
|
201
|
+
|
|
202
|
+
**The export runs twice in the whole job:** the round-1 calibration, and the final pass — production bake, export the finished scene, serve it, and let the integration critic judge the real deliverable while the perf, console and export-boundary gates are measured for real. *Did `reflectionprobeintensity` actually cross, or did the round only move a Unity slider?* — that question gets answered there, not forty times over.
|
|
203
|
+
|
|
204
|
+
**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`.
|
|
205
|
+
|
|
206
|
+
## Example 2 — Spit and polish on an existing Unity level
|
|
207
|
+
|
|
208
|
+
```
|
|
209
|
+
/bt-gauntlet --name:harbor-polish --rounds:20 Take my existing Assets/Scenes/Harbor.unity
|
|
210
|
+
and push it to the fidelity of the attached shots — I want the lighting and materials to
|
|
211
|
+
sing. Don't change the layout.
|
|
234
212
|
```
|
|
235
213
|
|
|
236
|
-
|
|
214
|
+
The difference from Example 1 is **the target is a refinement of what exists, not a new dream**:
|
|
237
215
|
|
|
238
|
-
|
|
216
|
+
1. Export and capture the level **as it stands today** from the agreed cameras — that is `evidence/round-00-baseline-*.png`.
|
|
217
|
+
2. Feed the baseline to the image model as the reference so the target improves the real scene rather than reimagining it:
|
|
239
218
|
|
|
240
219
|
```
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
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.
|
|
220
|
+
generate_image(
|
|
221
|
+
prompt: "the same harbor scene, same layout and camera, upgraded to a modern real-time
|
|
222
|
+
in-engine look: warmer low sun, softer bounce into the shadows, wet stone with
|
|
223
|
+
varied roughness, richer ambient occlusion, subtle haze over the water",
|
|
224
|
+
reference_paths: ["_gauntlet/harbor-polish/evidence/round-00-baseline-hero.png"],
|
|
225
|
+
out_path: "_gauntlet/harbor-polish/reference/target-hero.png")
|
|
282
226
|
```
|
|
283
227
|
|
|
284
|
-
|
|
228
|
+
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.
|
|
229
|
+
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.
|
|
230
|
+
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 — and with the export out of the loop, the bake is the only per-round cost left, so skip it entirely on rounds that change nothing GI-dependent.
|
|
285
231
|
|
|
286
|
-
|
|
232
|
+
Because the scene was authored in the GUI it already has a LightingSettings asset — but **always pass `--scene`** at checkpoint exports anyway, or a fresh Editor session silently exports the template's default scene instead. Note this pipeline needs a **copilot-mode resident Editor**: `-nographics` has no graphics device and cannot render the in-loop snapshots.
|
|
287
233
|
|
|
288
|
-
|
|
234
|
+
## Example 3 — A high-fidelity model, polished in Blender and shipped as an interactive prefab
|
|
289
235
|
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
236
|
+
```
|
|
237
|
+
/bt-gauntlet --name:hero-mech --rounds:15 Take Assets/Models/mech.fbx and make it a hero
|
|
238
|
+
asset — bevelled panel work, real wear, proper PBR maps, under 45k tris with an LOD chain.
|
|
239
|
+
It needs a rigidbody, an LOD group and the Animator wired up. Reference is the attached
|
|
240
|
+
turntable.
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
**Interview settles:** kind `unity`, with Blender model work in scope; **write mode IN PLACE** so the GUID and importer settings survive every round; the **render scene** is `Assets/Scenes/Level01.unity` — the level the mech actually lives in, so it is judged under the lighting it will really have (a dedicated lookdev scene only if the asset has no home yet), with its rig frozen for the run; four locked `gauntlet_*` cameras in it including a detail crop; model root `Props/Mech`; budgets 45k tris, 512 px/m texel density; checkpoints at round 1 and the finish.
|
|
244
|
+
|
|
245
|
+
**Blender hands off to Unity and stops there.** Blender does geometry, UVs, bakes and skinning, editing the FBX in place; Unity assigns materials, colliders, the LODGroup, the Animator and the Babylon Toolkit script components — Blender cannot write `extras.metadata.components`, and under a community licence Unity won't either. After the hand-off the mech is just an asset in `Level01`.
|
|
246
|
+
|
|
247
|
+
**A round, end to end — no export in sight:**
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
cp "$FBX" "$FBX.bak" # the write is destructive — always
|
|
251
|
+
blender --background --factory-startup --python-exit-code 1 \
|
|
252
|
+
--python /tmp/round-07-bevels.py -- "$FBX" "$FBX" # same path in and out
|
|
253
|
+
unity command eval 'UnityEditor.AssetDatabase.Refresh(UnityEditor.ImportAssetOptions.ForceSynchronousImport); return "ok";' --project-path "$PROJ"
|
|
254
|
+
unity command eval_file /tmp/snap-hero.cs --project-path "$PROJ" # -> evidence/round-07-p2-hero.png
|
|
255
|
+
```
|
|
295
256
|
|
|
296
|
-
|
|
257
|
+
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. Both are hard gates.
|
|
297
258
|
|
|
298
|
-
**
|
|
259
|
+
**Checkpoints export the scene, and the mech ships inside it:**
|
|
299
260
|
|
|
300
|
-
|
|
261
|
+
```bash
|
|
262
|
+
unity command bt_export_level --scene Assets/Scenes/Level01.unity --project-path "$PROJ" --timeout 900
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
Nothing model-specific is needed — `selection == null` exports the level, the mech is in there with its components, lit by the scene's baked lighting. If you *also* want the mech as a standalone reusable container, that is the deliberate extra call (`bt_export_prefab --paths "Props/Mech" --metadata true`), and `selection != null` means it carries components but no scene metadata.
|
|
266
|
+
|
|
267
|
+
The checkpoint is also where the critic gets both the Unity snapshot and the browser frame of the same angle and must say which side a gap is on — *Unity right, browser wrong* means material translation, not the sculpt, so don't re-model.
|
|
301
268
|
|
|
302
|
-
|
|
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.
|
|
269
|
+
**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.
|
|
304
270
|
|
|
305
|
-
|
|
271
|
+
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.
|
|
306
272
|
|
|
307
|
-
|
|
273
|
+
## Example 4 — The canonical brief (engine correction is automatic)
|
|
308
274
|
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
275
|
+
```
|
|
276
|
+
/bt-gauntlet I want you to build a first-person shooter at the level of the most recent
|
|
277
|
+
Call of Duty games. It should be utterly perfect, visually beautiful, with every single
|
|
278
|
+
thing done at AAA quality—from textures to physics to anything you could think of.
|
|
279
|
+
```
|
|
312
280
|
|
|
313
|
-
|
|
281
|
+
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
282
|
|
|
315
283
|
---
|
|
316
284
|
|
|
317
285
|
# Failure-Mode Guardrails (loop rules, non-negotiable)
|
|
318
286
|
|
|
319
287
|
- **The builder never grades its own work.** Verdicts come from fresh-context critics (or the strictly-scoped inline discipline above).
|
|
320
|
-
- **
|
|
321
|
-
- **
|
|
322
|
-
- **
|
|
288
|
+
- **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.
|
|
289
|
+
- **Evidence comes from the locked cameras.** A frame shot from anywhere else is inadmissible, however good it looks.
|
|
290
|
+
- **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.
|
|
291
|
+
- **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.
|
|
292
|
+
- **Scores must be comparable.** Every critic sees the previous verdict and screenshot. A regression scores worse and says what regressed.
|
|
293
|
+
- **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.
|
|
294
|
+
- **Progress is never self-reported.** Screenshots, perf numbers, exported metadata, diffs — an observable receipt, or it didn't happen.
|
|
295
|
+
- **Never chase what cannot cross the boundary.** The `OUT OF REACH` list exists so critics stop naming impossible gaps.
|
|
323
296
|
- **Permissions start reversible.** Deploy, delete, spend, publish, message, and secrets stay behind explicit user approval, always.
|
|
324
297
|
- **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`.
|
|
298
|
+
- **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
299
|
- **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
|
|
300
|
+
- **Every park prints the exact resume command**: `/bt-gauntlet --resume <name>`.
|
|
327
301
|
|
|
328
|
-
|
|
302
|
+
---
|
|
329
303
|
|
|
330
|
-
|
|
304
|
+
# Composition and Cross-Host Notes
|
|
331
305
|
|
|
332
|
-
|
|
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/`.
|
|
306
|
+
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`**.
|