@babylonjs-toolkit/agent 1.2.18 → 1.2.21
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 +1 -1
- package/package.json +1 -1
- package/skills/bt-blender/SKILL.md +81 -19
- package/skills/bt-blender/references/hard-surface.md +9 -5
- package/skills/bt-blender/references/vehicles.md +14 -9
- package/skills/bt-blender/scripts/blender/__pycache__/construction_kit.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/__pycache__/geometry_nodes_builders.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/__pycache__/image_measure.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/__pycache__/reference_traces.cpython-313.pyc +0 -0
- package/skills/bt-blender/scripts/blender/blueprint.py +293 -0
- package/skills/bt-blender/scripts/blender/construction_kit.py +61 -1
- package/skills/bt-blender/scripts/blender/coverage_check.py +221 -0
- package/skills/bt-blender/scripts/blender/evidence_sheet.py +243 -0
- package/skills/bt-blender/scripts/blender/image_measure.py +354 -5
- package/skills/bt-blender/scripts/blender/measure_stations.py +11 -1
- package/skills/bt-blender/scripts/blender/overlay_sheet.py +238 -0
- package/skills/bt-blender/scripts/blender/reference_traces.py +344 -0
- package/skills/bt-blender/scripts/blender/trace.py +283 -0
- package/skills/bt-blender/scripts/blender/world_gate.py +17 -5
- package/skills/bt-blender/scripts/bt-blender.mjs +4 -0
- package/skills/bt-execute/SKILL.md +2 -1
- package/skills/bt-gauntlet/SKILL.md +24 -14
- package/skills/bt-gauntlet/references/critic-rubrics.md +37 -5
- package/skills/bt-gauntlet/references/loop-templates.md +23 -3
- package/skills/bt-gauntlet/references/spec-composition.md +7 -1
- package/skills/bt-gauntlet/references/target-images.md +27 -0
- package/skills/bt-gauntlet/references/unity-pipeline.md +24 -3
- package/skills/bt-gauntlet/references/workspace.md +90 -6
|
@@ -14,6 +14,10 @@ shape with measure_stations.
|
|
|
14
14
|
--origin-pixel 512 700 [--crop l t r b] [--min-iou 0.9] [--out evidence/]
|
|
15
15
|
... --python world_gate.py -- --spec stations_spec.json (every view of a stations spec)
|
|
16
16
|
|
|
17
|
+
A spec with "require_traces": "traces.json" first runs the trace gate: every gated object must carry the
|
|
18
|
+
`bt_traces` stamp of that file's current contents (construction_kit.stamp_traces), or the gate fails
|
|
19
|
+
without rendering.
|
|
20
|
+
|
|
17
21
|
Portions adapted from majidmanzarpour/blender-game-skills (mirrored as Godsified/blender-game-skills-for-claude,
|
|
18
22
|
skills/blender-image-to-3d/scripts/world_gate.py) -- Copyright (c) 2026 Majid Manzarpour, MIT License:
|
|
19
23
|
|
|
@@ -53,6 +57,7 @@ import numpy as np # noqa: E402
|
|
|
53
57
|
|
|
54
58
|
import image_measure # noqa: E402
|
|
55
59
|
import ortho_views # noqa: E402
|
|
60
|
+
import reference_traces # noqa: E402
|
|
56
61
|
import tool_common # noqa: E402
|
|
57
62
|
|
|
58
63
|
TOOL_NAME = "world-gate"
|
|
@@ -172,7 +177,7 @@ def gate_view(view_spec: dict, objects: list, out_directory: str, options) -> di
|
|
|
172
177
|
|
|
173
178
|
|
|
174
179
|
def _views_from_options(options) -> tuple:
|
|
175
|
-
"""The views to gate
|
|
180
|
+
"""The views to gate, the folder relative paths start from, the spec's model and the spec ({} without one)."""
|
|
176
181
|
if options.spec:
|
|
177
182
|
spec_path = os.path.abspath(options.spec)
|
|
178
183
|
spec_directory = os.path.dirname(spec_path)
|
|
@@ -183,7 +188,7 @@ def _views_from_options(options) -> tuple:
|
|
|
183
188
|
continue
|
|
184
189
|
views.append({**view, "image": os.path.normpath(os.path.join(spec_directory, view["image"]))})
|
|
185
190
|
model = spec.get("model")
|
|
186
|
-
return views, spec_directory, None if model is None else os.path.join(spec_directory, model), spec
|
|
191
|
+
return views, spec_directory, None if model is None else os.path.join(spec_directory, model), spec
|
|
187
192
|
missing = [flag for flag, value in (("--image", options.image), ("--view", options.view),
|
|
188
193
|
("--pixels-per-metre", options.pixels_per_metre),
|
|
189
194
|
("--origin-pixel", options.origin_pixel)) if value is None]
|
|
@@ -193,7 +198,7 @@ def _views_from_options(options) -> tuple:
|
|
|
193
198
|
view = {"name": options.name or options.view, "view": options.view, "image": image,
|
|
194
199
|
"pixels_per_metre": options.pixels_per_metre, "origin_pixel": options.origin_pixel,
|
|
195
200
|
"crop": options.crop, "background_tolerance": options.background_tolerance}
|
|
196
|
-
return [view], os.path.dirname(image), None,
|
|
201
|
+
return [view], os.path.dirname(image), None, {}
|
|
197
202
|
|
|
198
203
|
|
|
199
204
|
def run(options) -> dict:
|
|
@@ -203,14 +208,21 @@ def run(options) -> dict:
|
|
|
203
208
|
:param options: Parsed options.
|
|
204
209
|
:returns: {"pass", "views": [...]}.
|
|
205
210
|
"""
|
|
206
|
-
views, base_directory, spec_model,
|
|
211
|
+
views, base_directory, spec_model, spec = _views_from_options(options)
|
|
207
212
|
if not views:
|
|
208
213
|
raise ValueError("no views to gate")
|
|
209
214
|
tool_common.load_model(options.model or spec_model)
|
|
210
|
-
objects = tool_common.resolve_objects(options.objects or
|
|
215
|
+
objects = tool_common.resolve_objects(options.objects or spec.get("objects"))
|
|
211
216
|
out_directory = os.path.abspath(options.out or os.path.join(base_directory, "world_gate"))
|
|
217
|
+
trace_gate = reference_traces.required_traces_gate(spec, base_directory, objects)
|
|
218
|
+
if trace_gate and not trace_gate["pass"]:
|
|
219
|
+
report = {"pass": False, "message": trace_gate["message"], "trace_gate": trace_gate, "views": []}
|
|
220
|
+
report["report_json"] = tool_common.write_json(os.path.join(out_directory, "world_gate.json"), report)
|
|
221
|
+
return report
|
|
212
222
|
results = [gate_view(view, objects, out_directory, options) for view in views]
|
|
213
223
|
report = {"pass": all(result["pass"] for result in results), "min_iou": options.min_iou, "views": results}
|
|
224
|
+
if trace_gate:
|
|
225
|
+
report["trace_gate"] = trace_gate
|
|
214
226
|
report["report_json"] = tool_common.write_json(os.path.join(out_directory, "world_gate.json"), report)
|
|
215
227
|
return report
|
|
216
228
|
|
|
@@ -47,6 +47,10 @@ const BLENDER_BOILERPLATE = /^Blender \d|^Read prefs|^Read blend|^Blender quit|^
|
|
|
47
47
|
const TOOLS = {
|
|
48
48
|
'measure-stations': { script: 'measure_stations.py', description: 'grade model silhouettes against reference views station by station (MATCH / CLOSE / WRONG), corner radii, shading continuity' },
|
|
49
49
|
'world-gate': { script: 'world_gate.py', description: 'world-scale silhouette gate: IoU and band differences against registered reference views' },
|
|
50
|
+
'blueprint': { script: 'blueprint.py', description: 'reference views as image planes at world scale, a camera per view, the known-size box; optional model-over-reference renders' },
|
|
51
|
+
'trace': { script: 'trace.py', description: 'trace every view\'s outline and named design curves into world coordinates (traces.json + previews)' },
|
|
52
|
+
'overlay-sheet': { script: 'overlay_sheet.py', description: 'whole-silhouette check: reference and model outlines for every view on one sheet, IoU, missing / extra regions' },
|
|
53
|
+
'coverage-check': { script: 'coverage_check.py', description: 'check the parts\' regions cover the whole reference silhouette: unclaimed regions and overlaps' },
|
|
50
54
|
'view-consistency': { script: 'view_consistency.py', description: 'check the reference views agree with each other (and with known dimensions) before fitting' },
|
|
51
55
|
'review-render': { script: 'review_render.py', description: 'contact sheet (clay, parts, wire) and a render at the in-game pixel height' },
|
|
52
56
|
'qa-check': { script: 'qa_check.py', description: 'asset QA gate: z-fighting, floating parts, normals, topology, UVs, weights, materials' },
|
|
@@ -38,6 +38,7 @@ Run tasks from a plan: build each with its tests, have an independent verifier c
|
|
|
38
38
|
- task lines end `· done <HH:MM>`
|
|
39
39
|
- `⏱ Run <n> end <date time> · <done>/<k> tasks · active <h m> · <min> min/task · waited <m>`
|
|
40
40
|
- **Subagents:** this skill is the request to use them (`Agent`, `Task`, …). None → work inline, self-verify with the charter, say so.
|
|
41
|
+
- **The user's words travel verbatim — ENFORCED.** A direction the user gives mid-run is appended to the run log word for word, before acting on it: `📝 User direction <date time> · applies to T<n>…: "<exact text>"` (a later one that replaces it says `supersedes` and which; none is deleted). Every later subagent brief of the run carries all of them verbatim — never a summary — and a task that drives a gauntlet also appends each to the job's `user-directions.md` (bt-gauntlet `references/spec-composition.md`).
|
|
41
42
|
|
|
42
43
|
## The loop
|
|
43
44
|
|
|
@@ -68,7 +69,7 @@ Work in **phases**: the plan's `### Phase N` groups, else up to 3 consecutive ta
|
|
|
68
69
|
|
|
69
70
|
`[SNAPSHOTS]` is the feature folder's `snapshots/` path. `[SCOPE]` — **standard:** *"Do not add mutation testing, fuzzing, restarts or audits of untouched files unless something you found points there; aim for about 25 tool calls and report rather than expand."* **`--strict`:** *"Be adversarial: actively look for any reason the Acceptance is NOT met — mutation checks against the tests, randomized inputs, re-deriving values from the plan's Decisions and Design Reference, live QA of every rendered or exported surface."* For a task built on a sibling skill (e.g. bt-design's 3D-Hero-Scroll), give the verifier its relevant part — its documented options are Acceptance.
|
|
70
71
|
|
|
71
|
-
**Every subagent gets a brief, not homework:** its task blocks with the Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Reference excerpts needed with links (**always the full Coding Practices — ENFORCED**), its owned files (track builders: plus the *Parallel rules*), the test command, the `wait.mjs` and `bt-cdp.mjs` paths, its exact `dashboard.mjs` lines with the folder filled in (`task`, `snapshot`, `live`; `--verbose`: its `details` fields), **builders and verifiers: the whole *Snapshots tell the story* section and the *live file* rule**, the project's agent instructions, *Work fast*, and: *"Do not read the Agent Reference or SPEC.md in full — the parts you need are here, and this overrides any standing instruction to read it first. Read one sub-document (search it, never the whole file) only if you hit an API this brief does not cover, and say which."*
|
|
72
|
+
**Every subagent gets a brief, not homework:** the run's recorded user directions, verbatim; its task blocks with the Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Reference excerpts needed with links (**always the full Coding Practices — ENFORCED**), its owned files (track builders: plus the *Parallel rules*), the test command, the `wait.mjs` and `bt-cdp.mjs` paths, its exact `dashboard.mjs` lines with the folder filled in (`task`, `snapshot`, `live`; `--verbose`: its `details` fields), **builders and verifiers: the whole *Snapshots tell the story* section and the *live file* rule**, the project's agent instructions, *Work fast*, and: *"Do not read the Agent Reference or SPEC.md in full — the parts you need are here, and this overrides any standing instruction to read it first. Read one sub-document (search it, never the whole file) only if you hit an API this brief does not cover, and say which."*
|
|
72
73
|
|
|
73
74
|
## Feature folder and dashboard
|
|
74
75
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: bt-gauntlet
|
|
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, relying on Unity→Babylon parity, with export + browser checkpoints at milestones rather than every round. Fully RESUMABLE: each job lives in its own .agents/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`)."
|
|
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. The user's directions are kept word for word and research accumulates in a ledger; a modelled asset is judged on its whole silhouette in every view before any detail. 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, relying on Unity→Babylon parity, with export + browser checkpoints at milestones rather than every round. Fully RESUMABLE: each job lives in its own .agents/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
|
|
|
@@ -23,7 +23,7 @@ Use the user's message after the skill name as the `arguments`.
|
|
|
23
23
|
- **`--name: slug`** — this gauntlet job's name; it becomes the job's workspace folder `.agents/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
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 with EVERY slot already answered, including `<NAME>` and `<DELIVERABLE KIND>`. Skips the interview entirely — validate the card, copy it to `.agents/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.
|
|
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 `.agents/gauntlet/<name>/loop-card.md`, distill `brief.md` from it, seed `user-directions.md` with every user quotation the card carries (verbatim), 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
27
|
- **`--resume [<name>]`** — skip the interview, load `.agents/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 `.agents/gauntlet/`, resume it; with several jobs, list them (name, kind, parts done/total, next action) and ask which one — never guess.
|
|
28
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
29
|
- **`--stop [<name>]`** — park that job deliberately: write the current status into its `progress.md`, print the resume command, run nothing further.
|
|
@@ -50,9 +50,9 @@ Use the user's message after the skill name as the `arguments`.
|
|
|
50
50
|
|
|
51
51
|
| File | What it holds |
|
|
52
52
|
|---|---|
|
|
53
|
-
| `references/workspace.md` | the `.agents/gauntlet/<name>/` layout, `progress.md
|
|
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
|
|
53
|
+
| `references/workspace.md` | the `.agents/gauntlet/<name>/` layout, the `progress.md`, round-journal, `user-directions.md`, `research/ADOPTED.md` and `coverage.json` formats, the resume protocol |
|
|
54
|
+
| `references/critic-rubrics.md` | the critic contract, whole shape first, the scoring rubrics, the gap-list rules, the hard gates, the research ledger, the stall ladder |
|
|
55
|
+
| `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras and the **camera-accuracy gate**; **generation backends** (kie default, Higgsfield API and CLI mapping) |
|
|
56
56
|
| `references/loop-templates.md` | Template A and Template B loop cards |
|
|
57
57
|
| `references/unity-pipeline.md` | the Unity build + verify pipeline, with Blender as the modelling tool and image → 3D blockouts (Hi3D first, then Higgsfield) |
|
|
58
58
|
| `references/spec-composition.md` | composition with bt-spec / bt-plan / bt-execute, and cross-host notes |
|
|
@@ -109,7 +109,7 @@ Interview batches:
|
|
|
109
109
|
|
|
110
110
|
8. **Loop mechanics** — confirm `--template` choice, rounds-per-session default, and any parts the user wants prioritized first.
|
|
111
111
|
|
|
112
|
-
Write all answers to `.agents/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 `.agents/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.
|
|
112
|
+
Write all answers to `.agents/gauntlet/<name>/brief.md`, and the user's own brief and every instruction they gave in the interview, word for word, to `user-directions.md`. Write the locked cameras to `cameras.md` and the pipeline state to `pipeline.md`. Fill the chosen template's slots to produce `.agents/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.
|
|
113
113
|
|
|
114
114
|
---
|
|
115
115
|
|
|
@@ -121,13 +121,16 @@ Write all answers to `.agents/gauntlet/<name>/brief.md`. Write the locked camera
|
|
|
121
121
|
.agents/gauntlet/<name>/
|
|
122
122
|
├── loop-card.md # the constitution: kind, objective, target, rubric, OUT OF REACH, boundaries
|
|
123
123
|
├── brief.md # full interview answers
|
|
124
|
-
├──
|
|
124
|
+
├── user-directions.md # EVERY user direction about the job, verbatim, dated, append-only — whole into every brief
|
|
125
|
+
├── cameras.md # LOCKED capture cameras (+ solve residuals) — evidence from anywhere else is inadmissible
|
|
125
126
|
├── pipeline.md # pipeline state: project paths, licence tier, capture mode, bake tier, checkpoints
|
|
126
127
|
├── components.md # component inventory of supplied interactive assets (when applicable)
|
|
128
|
+
├── coverage.json # modelled assets: each part's region on the whole-asset reference views
|
|
127
129
|
├── progress.md # THE resume file — parts, scores, attempts, failed approaches, NEXT ACTION
|
|
130
|
+
├── research/ # research notes + ADOPTED.md, the cumulative ledger of adopted techniques
|
|
128
131
|
├── rounds/ # append-only per-round journals with the full gap list
|
|
129
132
|
├── reference/ # the LOCKED target image(s)
|
|
130
|
-
└── evidence/ # our side: round-NN-<part>-<camera>.png + metrics + metadata dumps
|
|
133
|
+
└── evidence/ # our side: round-NN-<part>-<camera>.png, round-NN-overlay.png + metrics + metadata dumps
|
|
131
134
|
```
|
|
132
135
|
|
|
133
136
|
**Full layout, file formats and the resume protocol: `references/workspace.md`.**
|
|
@@ -138,13 +141,16 @@ Write all answers to `.agents/gauntlet/<name>/brief.md`. Write the locked camera
|
|
|
138
141
|
|
|
139
142
|
# The Round Protocol (one round; every kind, both templates)
|
|
140
143
|
|
|
141
|
-
|
|
142
|
-
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.
|
|
143
|
-
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.
|
|
144
|
-
4. **Verify with the real artifact** — run the pipeline's verify recipe and capture evidence **from the locked cameras** into `.agents/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, each milestone, 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.
|
|
144
|
+
**Record first, then act.** The moment the user says anything about the job — mid-round, at a park, on resume — append it to `user-directions.md` word for word (time, exact text, the parts it applies to) **before acting on it**. Never paraphrase it into a brief instead: every builder and critic brief carries the **whole file verbatim**, plus the `research/ADOPTED.md` rules that govern its part, quoted.
|
|
145
145
|
|
|
146
|
-
|
|
147
|
-
|
|
146
|
+
1. **Inspect** the current state: `progress.md` + `pipeline.md` + `user-directions.md` + `research/ADOPTED.md` + the actual project — plus `components.md` when supplied assets carry component metadata (write it now if it is owed and missing).
|
|
147
|
+
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. **Decomposing a modelled asset into parts** (round 1, or any re-decomposition) writes `coverage.json` and must pass bt-blender's `coverage-check` before any part builds: a region of the reference that no part covers is a gap of the nearest part, never "not built yet" (`references/workspace.md`).
|
|
148
|
+
3. **Build** — make one coherent improvement, through the deliverable kind's build surface, following every `user-directions.md` line in force and every applicable `ADOPTED.md` rule. **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.
|
|
149
|
+
4. **Verify with the real artifact** — run the pipeline's verify recipe and capture evidence **from the locked cameras** into `.agents/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, each milestone, 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. **A modelled asset adds ONE overlay sheet per round** — `evidence/round-NN-overlay.png` + its JSON from bt-blender's `overlay-sheet`: our outline over the reference on EVERY locked view plus the whole-asset reference views, with per-view IoU and the largest missing / extra regions. A view whose solved camera fails the camera-accuracy gate is marked EVIDENCE-ONLY on it (`references/target-images.md` § 5).
|
|
150
|
+
**Then the orchestrator's whole-shape check:** open the overlay sheet, every view, and write your own one-paragraph whole-shape read into the round journal (`## Whole-shape check`) before handing the part to the critic.
|
|
151
|
+
|
|
152
|
+
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 overlay sheet included), the metrics, `user-directions.md` whole, the part's `ADOPTED.md` rules, **the previous round's screenshot and verdict**, and the pipeline's extra inputs — **never the builder's rationale**. It answers **whole shape first** — per view, does the whole shape match (yes/no, IoU, biggest region)? — before any crop or detail score; any "no" caps the part at 5.0 and makes the silhouette GAP 01. It returns a **scored rubric**, the **FULL prioritized gap list** (not one gap), every **hard gate** as pass/fail (*User directions* and *Adopted techniques* included), a regression note, and PASS/FAIL. It grades pixels, numbers and behaviour — never effort or intent.
|
|
153
|
+
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. **Report from the whole:** any round result or visual verdict you give the user is read from every view of the overlay sheet and names each view's IoU — never from close-ups or a subset of views.
|
|
148
154
|
7. **Gate check**, in order:
|
|
149
155
|
- **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.
|
|
150
156
|
|
|
@@ -335,6 +341,10 @@ candy-themed circuit with a jump, a tunnel, boost pads and scenery everywhere. K
|
|
|
335
341
|
- **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.
|
|
336
342
|
- **Scores must be comparable.** Every critic sees the previous verdict and screenshot. A regression scores worse and says what regressed.
|
|
337
343
|
- **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. Before that, a gap that survives one fix round triggers research into how professional technical artists solve it, and the builder rebuilds with that technique (`references/critic-rubrics.md` § 4, *Research trigger*).
|
|
344
|
+
- **The user's words travel verbatim.** Every direction lands in `user-directions.md` before it is acted on, and every brief carries the whole file — a summary loses them. A later direction marks the one it supersedes; nothing is deleted. A round that breaks a line fails.
|
|
345
|
+
- **Research accumulates; it never replaces.** Adopted techniques are numbered rules in `research/ADOPTED.md`; a new note adds or amends, a rule leaves only by a dated amendment with its evidence, and a rebuild, STRATEGY swing or "start over" keeps the ledger — it throws away the build, never the method.
|
|
346
|
+
- **Whole shape before detail, every round.** The overlay sheet covers every locked view and the whole-asset reference; a part whose whole shape is wrong in any view cannot score above 5.0, however good its crops look. Every reference region belongs to a part (`coverage.json`), and a view from a badly solved camera never scores.
|
|
347
|
+
- **No report from a subset of views.** Before you report a round's look to the user or hand a part to the critic, open the overlay sheet's every view and write your whole-shape read in the journal.
|
|
338
348
|
- **Progress is never self-reported.** Screenshots, perf numbers, exported metadata, diffs — an observable receipt, or it didn't happen.
|
|
339
349
|
- **Never chase what cannot cross the boundary.** The `OUT OF REACH` list exists so critics stop naming impossible gaps.
|
|
340
350
|
- **Permissions start reversible.** Deploy, delete, spend, publish, message, and secrets stay behind explicit user approval, always.
|
|
@@ -13,13 +13,17 @@ A critic is a **fresh-context subagent**. It gets a fixed input set:
|
|
|
13
13
|
| Input | Why |
|
|
14
14
|
|---|---|
|
|
15
15
|
| `loop-card.md` | the objective, the bar, the success condition |
|
|
16
|
+
| `user-directions.md` — the **whole file, verbatim** | the user's own words; the *User directions* gate |
|
|
17
|
+
| The `research/ADOPTED.md` rules that govern the part, verbatim | the *Adopted techniques* gate |
|
|
16
18
|
| The part's entry from `progress.md` | what this round was trying to fix |
|
|
17
19
|
| `reference/` — the target image(s) for this part's camera | the bar, as pixels |
|
|
18
20
|
| `evidence/round-NN-<part>-<camera>.png` | our current result, from the **locked camera** |
|
|
19
21
|
| `evidence/round-NN-<part>-metrics.json` | FPS, draw calls, console errors, load time, export metadata |
|
|
22
|
+
| `evidence/round-NN-overlay.png` + `.json` *(modelled assets)* | the whole silhouette over the reference in every locked view and the whole-asset views, per-view IoU, largest missing / extra regions |
|
|
23
|
+
| `coverage.json` + its `coverage-check` result *(modelled assets)* | the *Coverage* gate |
|
|
20
24
|
| The **previous round's** screenshot and verdict for this part, when one exists | so scores are comparable and regressions are visible |
|
|
21
25
|
| `components.md` when it exists | component-authority enforcement |
|
|
22
|
-
| `cameras.md` | to confirm the evidence was shot from the locked transform |
|
|
26
|
+
| `cameras.md` | to confirm the evidence was shot from the locked transform, and each solved view's residual (*Camera accuracy*) |
|
|
23
27
|
| The pipeline's extra criteria (see the pipeline reference for the deliverable kind) | export boundary, GUID survival, etc. |
|
|
24
28
|
|
|
25
29
|
**Reference first — before it opens any evidence.** The critic studies the target views that judge the part, at full
|
|
@@ -34,6 +38,16 @@ scale (its own crops and overlays — the builder's overlays are a convenience,
|
|
|
34
38
|
CLOSE (right shape, small offset — say how much) or WRONG/MISSING. It judges the target image itself, never a previous
|
|
35
39
|
verdict's description of it.
|
|
36
40
|
|
|
41
|
+
**Whole shape first — after DEFINING FEATURES, before any crop or detail score.** For a modelled asset the critic
|
|
42
|
+
opens the overlay sheet and answers, for **every** locked view and every whole-asset reference view, one line:
|
|
43
|
+
*does the whole shape match?* — `yes` / `no`, the view's IoU, and its largest missing and extra region (where, and %
|
|
44
|
+
of the reference silhouette). `yes` needs IoU ≥ 0.90 **and** no single missing or extra region over 1 % of the
|
|
45
|
+
reference silhouette's area (a loop card may tighten both); anything else is `no`. A view marked EVIDENCE-ONLY
|
|
46
|
+
(*Camera accuracy*, below) is reported but neither scores nor caps. **Any `no` caps the part at 5.0 / 10 and makes
|
|
47
|
+
the silhouette in that view GAP 01**, whatever the crops, stations or materials show. Close-up and station scoring
|
|
48
|
+
come only after this step — a part can measure well at every station and still be the wrong overall shape. A round
|
|
49
|
+
with no overlay sheet fails the *Shape fidelity* gate.
|
|
50
|
+
|
|
37
51
|
**Station measurements — measure, never eyeball.** The Agent Reference's Blender guide (`unity-blender-cli.md`
|
|
38
52
|
§ 8.4b) makes station measurement the method for any model built from reference images; the loop adds that the
|
|
39
53
|
critic re-checks the numbers. When a part is modelled from a set of reference views, every round's evidence includes the part measured at **stations** along its length in every judging view: width in the front
|
|
@@ -87,7 +101,8 @@ shape must never score near a pass on the strength of clean topology or material
|
|
|
87
101
|
| **Integration Readiness** | 0–1 | Scale, orientation, pivot, naming, skinning hygiene. |
|
|
88
102
|
|
|
89
103
|
**Shape caps (mandatory, this rubric):** any DEFINING FEATURE WRONG/MISSING in any judging view → Shape Fidelity
|
|
90
|
-
≤ 2.0 and the **total ≤ 6.5**, whatever the other axes earn; two or more → total ≤ 5.5
|
|
104
|
+
≤ 2.0 and the **total ≤ 6.5**, whatever the other axes earn; two or more → total ≤ 5.5; the whole shape `no` in any
|
|
105
|
+
scored view (§ 1, *Whole shape first*) → **total ≤ 5.0**.
|
|
91
106
|
|
|
92
107
|
**Model / asset rubric** — for **asset parts** of a `unity` job with no same-object target (an original asset judged
|
|
93
108
|
against a mood or style target) (an individual model: silhouette, UVs, bakes, materials, topology, rig) — **10 points**:
|
|
@@ -155,7 +170,11 @@ threshold AND every gate passes.**
|
|
|
155
170
|
| **Component authority** | a protected `TOOLKIT.*` component was reimplemented, bypassed or deleted without the full replacement-evidence checklist in the round journal |
|
|
156
171
|
| **Coding practices** | any code the round created or changed breaks the Agent Reference's **Coding Practices — ENFORCED**: TypeScript or JavaScript that is not clean and professional (needless `any` or loose typing, code converted to the other language unasked), one- or two-letter or obfuscated names (outside the allowed loop counters, axis/`uv` names, toolkit aliases and names that bind to exported data), dead code or leftover `console.log`, or code a developer new to the project could not read and maintain. **JSDoc never fails this gate**: list missing or thin JSDoc as a low-priority entry in the gap list. Quote the offending lines |
|
|
157
172
|
| **Game UI performance** | any HUD, overlay or GUI the round created or changed breaks the Agent Reference's **Game UI Performance — ENFORCED**: a per-frame value (speed, RPM, needles, timers, bars, markers) set through React state, props, context or a store, or posted on the EventBus per frame; a state setter, `dispatch(` or `EventBus.PostMessage(` inside `requestAnimationFrame`, a frame-loop hook, a render observable or `update()`; `width` / `height` / `top` / `left` / `innerHTML` / SVG geometry written per frame or layout read in the loop; a Babylon GUI control assigned every frame without a changed-value check; a frame loop on a menu, splash, preloader or landing page, or driving motion CSS could do (a real-time hero that pauses off-screen and at rest is allowed); a HUD loop still writing while its HUD is hidden or the game is paused. Quote the offending lines |
|
|
158
|
-
| **
|
|
173
|
+
| **User directions** | the round breaks any line of `user-directions.md` still in force (not superseded), or a brief carried a summary instead of the whole file — quote the line |
|
|
174
|
+
| **Adopted techniques** | a `research/ADOPTED.md` rule that governs the part has no evidence in the round that it was followed — fail with the rule number (`R4`) |
|
|
175
|
+
| **Shape fidelity** *(reference-match parts)* | any DEFINING FEATURE is WRONG/MISSING in any judging view, any station measurement is WRONG (> 6 %), or the round has no station evidence or no overlay sheet — a part with the wrong shape cannot pass, whatever it scores |
|
|
176
|
+
| **Coverage** *(modelled assets)* | `coverage.json` is missing or older than the current decomposition, or `coverage-check` reports a reference silhouette region that belongs to no part |
|
|
177
|
+
| **Camera accuracy** *(solved views)* | a view was scored whose solved camera has no recorded residual in `cameras.md`, or whose residual is over the threshold (`target-images.md` § 5) — that view is EVIDENCE-ONLY until re-solved |
|
|
159
178
|
| **Assembly** *(modelled assets)* | a part floats, leaves a visible gap, or is not attached where the target shows it joined — measured by the `bt-blender` skill's `assembly_check`, never by eye alone |
|
|
160
179
|
| **Asset QA** *(modelled assets)* | the `bt-blender` skill's `qa_check` reports an error the round introduced: z-fighting, inside-out or inconsistently wound faces, overlapping UVs where unique UVs are required, wrong texture colour space, more than four bone influences, empty material slots |
|
|
161
180
|
| **Camera lock** | the evidence was not captured from the transform recorded in `cameras.md` |
|
|
@@ -165,9 +184,10 @@ threshold AND every gate passes.**
|
|
|
165
184
|
|
|
166
185
|
```
|
|
167
186
|
PART: P3 Level lighting & atmosphere
|
|
187
|
+
WHOLE SHAPE: n/a (scene part) — modelled assets: one line per view, e.g. side NO (0.86, nose missing 4.1 %)
|
|
168
188
|
SCORE: 6.5 / 10 (Comp 1.5 · Light 1.5 · Mat 1.5 · Detail 1.5 · Motion 0.5)
|
|
169
189
|
PREVIOUS: 5.0 / 10 (round 09)
|
|
170
|
-
GATES: perf PASS · console PASS · authority PASS · camera PASS · export PASS
|
|
190
|
+
GATES: perf PASS · console PASS · authority PASS · camera PASS · export PASS · directions PASS · adopted PASS
|
|
171
191
|
VERDICT: FAIL
|
|
172
192
|
TOP GAP: GAP 01 — key light elevation and colour temperature
|
|
173
193
|
REGRESSION: none
|
|
@@ -202,6 +222,14 @@ technique, rebuilding rather than patching. Its journal names the research note
|
|
|
202
222
|
unsure how to approach a part at all researches the same way before its first round. Research never overrides the
|
|
203
223
|
references: the technique stays only if the critic's measurements then show the part matching.
|
|
204
224
|
|
|
225
|
+
**Research accumulates in a ledger.** The note's adopted techniques become numbered rules in
|
|
226
|
+
`research/ADOPTED.md` (`workspace.md`) the same round — rule, source note, sources, date, the parts it governs. A
|
|
227
|
+
new note adds or amends rules; it never replaces earlier ones, and a rule leaves only by a dated amendment giving the
|
|
228
|
+
reason and evidence. Builder briefs quote the rules that govern the part; the *Adopted techniques* gate checks them.
|
|
229
|
+
For a part modelled from reference images the ledger starts with the professional base method — blueprint setup,
|
|
230
|
+
traced outlines, whole silhouette first (bt-blender's `blueprint`, `trace`, `overlay-sheet`); later research
|
|
231
|
+
refines it, never drops it.
|
|
232
|
+
|
|
205
233
|
Repetition without a changed strategy is a boundary event, not persistence. Two tiers, both with concrete
|
|
206
234
|
triggers, both checked in the round protocol's gate check.
|
|
207
235
|
|
|
@@ -221,6 +249,10 @@ cannot express what the target shows. Make **one dramatic change**, grounded in
|
|
|
221
249
|
STRATEGY: <what is being thrown away and what replaces it>
|
|
222
250
|
```
|
|
223
251
|
|
|
252
|
+
The swing throws away the **build**, never the method: `research/ADOPTED.md`, `user-directions.md` and the
|
|
253
|
+
overlay discipline carry over unchanged. A "start over" brief that drops an adopted rule fails the *Adopted
|
|
254
|
+
techniques* gate unless the ledger carries a dated amendment retiring it, with evidence.
|
|
255
|
+
|
|
224
256
|
### Tier 2 — STALLED
|
|
225
257
|
|
|
226
258
|
Fires when the Tier 1 architectural swing scored **the same or worse**.
|
|
@@ -228,7 +260,7 @@ Fires when the Tier 1 architectural swing scored **the same or worse**.
|
|
|
228
260
|
Response — **stop. Do not spend another round guessing at a different dramatic change.** Park the job,
|
|
229
261
|
write the status, and escalate to the user with:
|
|
230
262
|
|
|
231
|
-
- the target image and the two most recent evidence screenshots side by side,
|
|
263
|
+
- the target image and the two most recent evidence screenshots side by side, with the latest overlay sheet (every view),
|
|
232
264
|
- the standing gap list,
|
|
233
265
|
- what the architectural swing changed and what it scored,
|
|
234
266
|
- a specific question: is the current state good enough, or is something fundamental wrong with the target?
|
|
@@ -29,6 +29,11 @@ the comparison is like for like.
|
|
|
29
29
|
OUT OF REACH (do not raise gaps against these):
|
|
30
30
|
<the elements of the target the pipeline physically cannot deliver>
|
|
31
31
|
|
|
32
|
+
USER DIRECTIONS (my own words, verbatim; kept in
|
|
33
|
+
.agents/gauntlet/<NAME>/user-directions.md, where every later direction is
|
|
34
|
+
appended word for word before you act on it):
|
|
35
|
+
<the user's words about the job, quoted, never paraphrased>
|
|
36
|
+
|
|
32
37
|
Choose the approach. Break the work into the smallest important parts that can
|
|
33
38
|
be improved and judged independently, and record that decomposition as the part
|
|
34
39
|
checklist in .agents/gauntlet/<NAME>/progress.md. Fan out builder subagents only where
|
|
@@ -49,6 +54,14 @@ returns the FULL prioritized gap list (not one gap), and applies every hard
|
|
|
49
54
|
gate. It receives the previous round's screenshot and verdict so scores stay
|
|
50
55
|
comparable and regressions are caught.
|
|
51
56
|
|
|
57
|
+
Every builder and critic brief carries user-directions.md whole (never a
|
|
58
|
+
summary) and the research/ADOPTED.md rules that govern its part; a round that
|
|
59
|
+
breaks a direction or skips an adopted rule fails. Research accumulates in
|
|
60
|
+
ADOPTED.md and survives any rebuild or start-over. For a modelled asset, every
|
|
61
|
+
round's evidence includes one overlay sheet of the whole silhouette over every
|
|
62
|
+
locked view, and the critic judges the whole shape in every view before any
|
|
63
|
+
detail.
|
|
64
|
+
|
|
52
65
|
Apply the stall ladder. If the best score has not improved by a full point in
|
|
53
66
|
two rounds, or the same top gap is named twice in a row, incremental tweaks are
|
|
54
67
|
FORBIDDEN — make one dramatic architectural change and record it as a STRATEGY
|
|
@@ -91,8 +104,10 @@ Reference conventions already loaded in this session.
|
|
|
91
104
|
INPUTS AND STATE
|
|
92
105
|
This gauntlet job is named <NAME>; all of its loop state lives in
|
|
93
106
|
.agents/gauntlet/<NAME>/ and never anywhere else.
|
|
94
|
-
Use: .agents/gauntlet/<NAME>/loop-card.md, brief.md,
|
|
95
|
-
progress.md, reference/, and the
|
|
107
|
+
Use: .agents/gauntlet/<NAME>/loop-card.md, brief.md, user-directions.md,
|
|
108
|
+
research/ADOPTED.md, cameras.md, pipeline.md, progress.md, reference/, and the
|
|
109
|
+
project sources. Append every user direction to user-directions.md verbatim
|
|
110
|
+
before acting on it; carry the whole file into every brief. Record after every round in
|
|
96
111
|
progress.md and rounds/: what changed, evidence, score, the full gap list,
|
|
97
112
|
failed approach, next action, and remaining budget — so
|
|
98
113
|
`/bt-gauntlet --resume <NAME>` can continue from a brand-new session.
|
|
@@ -104,12 +119,17 @@ Success requires all of the following:
|
|
|
104
119
|
from the LOCKED cameras in cameras.md
|
|
105
120
|
- <CONCRETE REFERENCE OR MEASURABLE BENCHMARK — objective test or benchmark>
|
|
106
121
|
- Every hard gate passes: perf budget, console clean, camera lock, component
|
|
107
|
-
authority, and the pipeline gate for
|
|
122
|
+
authority, user directions, adopted techniques, and the pipeline gate for
|
|
123
|
+
this deliverable kind (modelled assets add coverage and camera accuracy, and
|
|
124
|
+
a whole-shape `no` in any view caps the part at 5.0)
|
|
108
125
|
- Final fresh integration review of the complete artifact
|
|
109
126
|
|
|
110
127
|
OUT OF REACH
|
|
111
128
|
<elements of the target the pipeline cannot deliver — never raise gaps on these>
|
|
112
129
|
|
|
130
|
+
USER DIRECTIONS
|
|
131
|
+
<the user's words about the job, quoted verbatim — also user-directions.md>
|
|
132
|
+
|
|
113
133
|
PROCESS
|
|
114
134
|
1. Inspect the current state (progress.md + pipeline.md + the actual project).
|
|
115
135
|
2. Choose the highest-impact unmet criterion, from the standing gap list.
|
|
@@ -40,7 +40,8 @@ idiom bt-prototype uses with bt-hero — **pre-resolve everything at spec time s
|
|
|
40
40
|
- **bt-spec:** the interview happens HERE, at spec time — the spec answers every loop-card slot (including
|
|
41
41
|
`<NAME>`, `<DELIVERABLE KIND>`, the reference media or target-generation prompt, the locked cameras, the
|
|
42
42
|
`OUT OF REACH` list and the boundaries) and writes the **pre-filled loop card** as a spec artifact
|
|
43
|
-
(e.g. `.agents/specs/<feature>/documents/<feature>_gauntlet-card.md`)
|
|
43
|
+
(e.g. `.agents/specs/<feature>/documents/<feature>_gauntlet-card.md`), quoting the user's own words about the job
|
|
44
|
+
verbatim under a `USER DIRECTIONS` heading.
|
|
44
45
|
- **The whole-job round budget defaults to 100.** When the user has not named a maximum number of rounds for
|
|
45
46
|
the whole job, the card's boundaries say **at most 100 rounds across the whole job, plus the stall ladder**.
|
|
46
47
|
Never invent a smaller ceiling. In bt-spec's interview, offer 100 as the recommended answer and use the user's
|
|
@@ -67,6 +68,11 @@ idiom bt-prototype uses with bt-hero — **pre-resolve everything at spec time s
|
|
|
67
68
|
evidence frames, round by round, into the feature's `snapshots/` and adds them to the feature dashboard as a
|
|
68
69
|
progression only through `node <skills>/bt-execute/scripts/dashboard.mjs snapshot <feature-folder> T<n> --frame "snapshots/…|<stage>|<caption>"`
|
|
69
70
|
(repeated per frame), then runs `dashboard.mjs check <feature-folder>` — never by writing snapshot JSON.
|
|
71
|
+
- **The user's directions are relayed verbatim.** The card carries the user's own words about the job as quotations,
|
|
72
|
+
and `--card` seeds `user-directions.md` from them. Any direction the user gives during a plan run that touches the
|
|
73
|
+
job is recorded in the run log word for word and appended, the same moment and unedited, to the job's
|
|
74
|
+
`user-directions.md` (`workspace.md` format) before bt-execute re-enters the gauntlet — never paraphrased into the
|
|
75
|
+
task brief instead.
|
|
70
76
|
|
|
71
77
|
bt-gauntlet never orchestrates bt-spec itself — composition is always initiated from the spec side.
|
|
72
78
|
|
|
@@ -180,3 +180,30 @@ with exactly one locked camera, recorded in `.agents/gauntlet/<name>/cameras.md`
|
|
|
180
180
|
- Evidence not captured from a locked transform is **inadmissible** — it fails the camera-lock gate.
|
|
181
181
|
|
|
182
182
|
Add a camera mid-run only by amendment, and generate its target at the same time.
|
|
183
|
+
|
|
184
|
+
### The camera-accuracy gate — solved views
|
|
185
|
+
|
|
186
|
+
A view whose camera is **solved** from a reference image (a three-quarter view, a photo — anything not a true
|
|
187
|
+
orthographic or a camera you placed yourself) is only a fair comparison if the solve is good. A weak solve makes
|
|
188
|
+
"the same angle" a different angle, and every overlay, station and score from it misleads. So every solved locked
|
|
189
|
+
camera records its **reprojection residual** in `cameras.md` — RMS of the known points (or the silhouette edge
|
|
190
|
+
distance, for a silhouette solve), in pixels and as **% of the reference's longer side**:
|
|
191
|
+
|
|
192
|
+
```markdown
|
|
193
|
+
| Name | Target | Solve | Residual RMS | Status |
|
|
194
|
+
|-------------|----------------------|----------------------------|---------------------|---------------|
|
|
195
|
+
| gauntlet_34 | reference/3q-01.png | 14 known points, 2026-11-02 | 31 px (1.6 %) | EVIDENCE-ONLY |
|
|
196
|
+
| gauntlet_34 | reference/3q-01.png | re-solve, 22 points, 2026-11-06 | 9 px (0.45 %) | SCORED (amendment A3) |
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
- **Threshold: RMS ≤ 1 % of the reference's longer side** (the loop card may tighten it). 1 % of a 2048 px reference
|
|
200
|
+
is ~20 px — about the 3 % station MATCH tolerance on a part spanning a third of the frame, so a worse solve hides
|
|
201
|
+
errors the stations exist to catch.
|
|
202
|
+
- **Above the threshold the view is EVIDENCE-ONLY**: it appears on the overlay sheet, marked so, but never scores,
|
|
203
|
+
never caps, and never counts as a match — until it is re-solved under the threshold. Orthographic views and
|
|
204
|
+
cameras you placed have no residual to record.
|
|
205
|
+
- **Re-solving** uses more or better correspondences against the reference. A **silhouette-based re-solve against the
|
|
206
|
+
built asset** is allowed only by a dated amendment in `cameras.md` — it fits the camera to our model, so it can
|
|
207
|
+
hide a shape error — and that amendment **resets that view's score history only**.
|
|
208
|
+
- A view scored without a residual on record, or above the threshold, fails the critic's *Camera accuracy* gate
|
|
209
|
+
(`critic-rubrics.md` § 2.3).
|
|
@@ -368,8 +368,29 @@ part mask at the same scale — and write `evidence/round-NN-<part>-stations.jso
|
|
|
368
368
|
(`critic-rubrics.md` § 1, *Station measurements*). The builder iterates on these numbers before it hands the round to
|
|
369
369
|
the critic; the critic verifies them.
|
|
370
370
|
|
|
371
|
+
#### 5. The overlay sheet — whole silhouette, every view, every round (modelled assets)
|
|
372
|
+
|
|
373
|
+
Stations come after the whole shape, never instead of it. From this round's locked-camera captures, build ONE sheet
|
|
374
|
+
that lays our outline over the reference on **every** locked view plus the whole-asset reference views (e.g. each
|
|
375
|
+
panel of a turnaround sheet):
|
|
376
|
+
|
|
377
|
+
```bash
|
|
378
|
+
overlay-sheet --pair side=reference/side.png,evidence/round-12-side.png \
|
|
379
|
+
--pair front=reference/front.png,evidence/round-12-front.png \
|
|
380
|
+
--pair 3q=reference/3q-01.png,evidence/round-12-3q.png \
|
|
381
|
+
--out .agents/gauntlet/<name>/evidence/round-12-overlay.png
|
|
382
|
+
# straight views straight from the Blender twin instead: overlay-sheet --spec refs/spec.json --model asset.blend --out …
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
It reports per-view IoU, reference-only / model-only % and the largest missing and extra regions; keep its JSON
|
|
386
|
+
beside the PNG. Mark views whose solved camera fails the camera-accuracy gate EVIDENCE-ONLY
|
|
387
|
+
(`target-images.md` § 5). Then open the sheet, every view, and write the orchestrator's whole-shape paragraph in the
|
|
388
|
+
round journal before the critic is spawned (`SKILL.md`, round step 4).
|
|
389
|
+
|
|
371
390
|
For modelled assets the builder's toolbox is the **`bt-blender`** skill: its construction kit (lofted rounded
|
|
372
|
-
sections, subdivision cages, bevels) builds the part, and
|
|
391
|
+
sections, subdivision cages, bevels) builds the part, `blueprint` and `trace` set up the registered references and
|
|
392
|
+
their traced outlines, and its `overlay-sheet` (whole silhouette, every view), `coverage-check` (every reference
|
|
393
|
+
region owned by a part — run at decomposition), `measure_stations` (size and form), `world_gate`
|
|
373
394
|
(silhouette at true world scale), `review_render` (the asset at its in-game pixel height), `assembly_check` and
|
|
374
395
|
`qa_check` produce the round's evidence. A model that will be exported as glTF is also run through its Khronos
|
|
375
396
|
validation at each export checkpoint.
|
|
@@ -471,8 +492,8 @@ evidence mode.**
|
|
|
471
492
|
|
|
472
493
|
### In-loop rounds (Unity snapshot)
|
|
473
494
|
|
|
474
|
-
**Inputs:** the Unity camera snapshot(s), the `UnityStats` metrics, **the bake tier**,
|
|
475
|
-
round's snapshot and verdict.
|
|
495
|
+
**Inputs:** the Unity camera snapshot(s), the `UnityStats` metrics, **the bake tier**, the overlay sheet (modelled
|
|
496
|
+
assets), and the previous round's snapshot and verdict.
|
|
476
497
|
|
|
477
498
|
| Gate | Fails when |
|
|
478
499
|
|---|---|
|