@babylonjs-toolkit/agent 1.2.16 → 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.
Files changed (70) hide show
  1. package/README.md +3 -2
  2. package/package.json +1 -1
  3. package/skills/bt-blender/SKILL.md +448 -0
  4. package/skills/bt-blender/THIRD_PARTY_NOTICES.md +141 -0
  5. package/skills/bt-blender/references/art-style-and-genre.md +173 -0
  6. package/skills/bt-blender/references/characters-and-creatures.md +644 -0
  7. package/skills/bt-blender/references/environments.md +478 -0
  8. package/skills/bt-blender/references/game-engine-export.md +284 -0
  9. package/skills/bt-blender/references/geometry-nodes.md +447 -0
  10. package/skills/bt-blender/references/hard-surface.md +724 -0
  11. package/skills/bt-blender/references/procedural-generation.md +358 -0
  12. package/skills/bt-blender/references/rigging-and-animation.md +1080 -0
  13. package/skills/bt-blender/references/sculpting-and-retopology.md +544 -0
  14. package/skills/bt-blender/references/uv-and-pbr-materials.md +381 -0
  15. package/skills/bt-blender/references/vehicles.md +637 -0
  16. package/skills/bt-blender/scripts/blender/__pycache__/construction_kit.cpython-313.pyc +0 -0
  17. package/skills/bt-blender/scripts/blender/__pycache__/geometry_nodes_builders.cpython-313.pyc +0 -0
  18. package/skills/bt-blender/scripts/blender/__pycache__/image_measure.cpython-313.pyc +0 -0
  19. package/skills/bt-blender/scripts/blender/__pycache__/reference_traces.cpython-313.pyc +0 -0
  20. package/skills/bt-blender/scripts/blender/assembly_check.py +420 -0
  21. package/skills/bt-blender/scripts/blender/blueprint.py +293 -0
  22. package/skills/bt-blender/scripts/blender/character_blockout.py +462 -0
  23. package/skills/bt-blender/scripts/blender/construction_kit.py +1770 -0
  24. package/skills/bt-blender/scripts/blender/coverage_check.py +221 -0
  25. package/skills/bt-blender/scripts/blender/environment_kit.py +525 -0
  26. package/skills/bt-blender/scripts/blender/evidence_sheet.py +243 -0
  27. package/skills/bt-blender/scripts/blender/export_asset.py +623 -0
  28. package/skills/bt-blender/scripts/blender/geometry_nodes_builders.py +575 -0
  29. package/skills/bt-blender/scripts/blender/hard_surface_panels.py +374 -0
  30. package/skills/bt-blender/scripts/blender/hard_surface_trims.py +200 -0
  31. package/skills/bt-blender/scripts/blender/image_measure.py +917 -0
  32. package/skills/bt-blender/scripts/blender/materials_pbr.py +439 -0
  33. package/skills/bt-blender/scripts/blender/measure_stations.py +496 -0
  34. package/skills/bt-blender/scripts/blender/ortho_views.py +309 -0
  35. package/skills/bt-blender/scripts/blender/overlay_sheet.py +238 -0
  36. package/skills/bt-blender/scripts/blender/procedural_game_ready.py +258 -0
  37. package/skills/bt-blender/scripts/blender/procedural_generators.py +842 -0
  38. package/skills/bt-blender/scripts/blender/qa_check.py +729 -0
  39. package/skills/bt-blender/scripts/blender/reference_traces.py +344 -0
  40. package/skills/bt-blender/scripts/blender/retopology_tools.py +781 -0
  41. package/skills/bt-blender/scripts/blender/review_render.py +358 -0
  42. package/skills/bt-blender/scripts/blender/rigging_tools.py +1170 -0
  43. package/skills/bt-blender/scripts/blender/style_palette.py +190 -0
  44. package/skills/bt-blender/scripts/blender/tool_common.py +289 -0
  45. package/skills/bt-blender/scripts/blender/trace.py +283 -0
  46. package/skills/bt-blender/scripts/blender/uv_layout.py +555 -0
  47. package/skills/bt-blender/scripts/blender/vehicle_parts.py +370 -0
  48. package/skills/bt-blender/scripts/blender/view_consistency.py +133 -0
  49. package/skills/bt-blender/scripts/blender/world_gate.py +231 -0
  50. package/skills/bt-blender/scripts/bt-blender.mjs +333 -0
  51. package/skills/bt-blender/scripts/validate_gltf.mjs +204 -0
  52. package/skills/bt-execute/SKILL.md +2 -1
  53. package/skills/bt-gauntlet/SKILL.md +30 -20
  54. package/skills/bt-gauntlet/references/critic-rubrics.md +106 -7
  55. package/skills/bt-gauntlet/references/loop-templates.md +23 -3
  56. package/skills/bt-gauntlet/references/spec-composition.md +20 -1
  57. package/skills/bt-gauntlet/references/target-images.md +27 -0
  58. package/skills/bt-gauntlet/references/unity-pipeline.md +41 -4
  59. package/skills/bt-gauntlet/references/workspace.md +90 -6
  60. package/skills/bt-unwrap/scripts/blender/__pycache__/bt_unwrap.cpython-313.pyc +0 -0
  61. package/skills/bt-unwrap/scripts/blender/__pycache__/image_utils.cpython-313.pyc +0 -0
  62. package/skills/bt-unwrap/scripts/blender/__pycache__/mesh_tools.cpython-313.pyc +0 -0
  63. package/skills/bt-unwrap/scripts/blender/__pycache__/model_io.cpython-313.pyc +0 -0
  64. package/skills/bt-unwrap/scripts/blender/__pycache__/previews.cpython-313.pyc +0 -0
  65. package/skills/bt-unwrap/scripts/blender/__pycache__/rasterizer.cpython-313.pyc +0 -0
  66. package/skills/bt-unwrap/scripts/blender/__pycache__/reference_views.cpython-313.pyc +0 -0
  67. package/skills/bt-unwrap/scripts/blender/__pycache__/reference_warp.cpython-313.pyc +0 -0
  68. package/skills/bt-unwrap/scripts/blender/__pycache__/texture_bake.cpython-313.pyc +0 -0
  69. package/skills/bt-unwrap/scripts/blender/__pycache__/texture_compose.cpython-313.pyc +0 -0
  70. package/skills/bt-unwrap/scripts/blender/__pycache__/uv_layout.cpython-313.pyc +0 -0
@@ -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, cameras.md, pipeline.md,
95
- progress.md, reference/, and the project sources. Record after every round in
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 this deliverable kind
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,21 @@ 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.
45
+ - **The whole-job round budget defaults to 100.** When the user has not named a maximum number of rounds for
46
+ the whole job, the card's boundaries say **at most 100 rounds across the whole job, plus the stall ladder**.
47
+ Never invent a smaller ceiling. In bt-spec's interview, offer 100 as the recommended answer and use the user's
48
+ number if they give one. A Quick Plan that asks no questions writes 100 and lists it under its assumptions.
49
+ The job is resumable and the stall ladder stops a part that has stopped improving, so a large ceiling costs
50
+ nothing until rounds are actually spent. It also keeps a fidelity job from parking on a budget the user never
51
+ chose. This is separate from the per-invocation `--rounds:N` cap (default 5; a card may set its own, such as
52
+ 6), which only decides how often the job parks and re-enters. Raising or lowering the ceiling later is a dated
53
+ amendment to the job's `loop-card.md`, and the round counter never resets.
54
+ - **Image generation is in scope by default.** Generation through the project's configured generation tools (kie by default, Higgsfield) for textures, decals and art is **authorised asset generation, not a "paid service" needing approval** — a spec, plan or loop card never bans it unless the user does, and a ban on image-to-3D (generated meshes) never extends to 2D image generation.
55
+ The card's permission boundaries (no purchases, no paid services) do not cover it; the user's own words do. When
56
+ the user rules out image-to-3D, the card says so in those words and still allows textures, decals and livery art
57
+ to be generated.
44
58
  - **bt-plan:** the gauntlet becomes one task (usually the last), whose Details invoke
45
59
  `/bt-gauntlet --card:.agents/specs/<feature>/documents/<feature>_gauntlet-card.md --rounds:N`. Its **Acceptance** is observable:
46
60
  "gauntlet job `<name>` reports DONE — success condition met and the integration critic passed — as
@@ -54,6 +68,11 @@ idiom bt-prototype uses with bt-hero — **pre-resolve everything at spec time s
54
68
  evidence frames, round by round, into the feature's `snapshots/` and adds them to the feature dashboard as a
55
69
  progression only through `node <skills>/bt-execute/scripts/dashboard.mjs snapshot <feature-folder> T<n> --frame "snapshots/…|<stage>|<caption>"`
56
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.
57
76
 
58
77
  bt-gauntlet never orchestrates bt-spec itself — composition is always initiated from the spec side.
59
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).
@@ -221,7 +221,7 @@ Higgsfield API (`node "$HF_API" <model-path> … --out <dir>`, then move the sav
221
221
  `Assets/Textures/<map>.png`), or the Higgsfield CLI (`node scripts/hf-generate.mjs <model> … --out Assets/Textures/<map>.png`),
222
222
  per `target-images.md` §1a. Substituting
223
223
  procedural noise or flat colours for maps the target needs is a gate failure, and the commonest reason an
224
- asset reads as plastic.
224
+ asset reads as plastic. Image generation through the project's configured generation tools (kie by default, Higgsfield) for textures, decals and art is **authorised asset generation, not a "paid service" needing approval** — a spec, plan or loop card never bans it unless the user does, and a ban on image-to-3D (generated meshes) never extends to 2D image generation.
225
225
 
226
226
  **Image → starting mesh.** When a model part starts from nothing, an image-to-3D model can turn the locked
227
227
  target's subject into a GLB blockout. Pick the generator in this order and record it in `pipeline.md`:
@@ -360,6 +360,41 @@ triangle/vertex counts, material and texture counts, texture memory, texel densi
360
360
  vertex, whether weights normalise to 1.0, LOD chain ratios. These are **Unity-side indicators, not the
361
361
  BabylonJS perf gate**; they catch a scene going wildly heavy, they do not predict browser FPS.
362
362
 
363
+ #### 4. Measure the part against the references (reference-match parts)
364
+
365
+ When the part is modelled from reference views, measure it at stations along its length in every judging view —
366
+ the reference's edges traced on the full-resolution image, ours from the locked-camera frame or the Blender twin's
367
+ part mask at the same scale — and write `evidence/round-NN-<part>-stations.json` with annotated images
368
+ (`critic-rubrics.md` § 1, *Station measurements*). The builder iterates on these numbers before it hands the round to
369
+ the critic; the critic verifies them.
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
+
390
+ For modelled assets the builder's toolbox is the **`bt-blender`** skill: its construction kit (lofted rounded
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`
394
+ (silhouette at true world scale), `review_render` (the asset at its in-game pixel height), `assembly_check` and
395
+ `qa_check` produce the round's evidence. A model that will be exported as glTF is also run through its Khronos
396
+ validation at each export checkpoint.
397
+
363
398
  That is the whole in-loop verify. Seconds, not minutes.
364
399
 
365
400
  ### 6.B Checkpoint verification — export + browser (at milestones)
@@ -450,13 +485,15 @@ evidence.
450
485
  ## 7. Extra critic inputs and gates
451
486
 
452
487
  Added to the standard contract in `critic-rubrics.md`. **Which rubric applies depends on the part**: scene
453
- parts use the scene/level rubric, asset parts use the model/asset rubric. **Which gates apply depends on the
488
+ parts use the scene/level rubric; asset parts judged against a locked target of the same object use the
489
+ **reference-match model rubric** with its shape caps and the shape-fidelity gate; other asset parts use the
490
+ model/asset rubric. **Which gates apply depends on the
454
491
  evidence mode.**
455
492
 
456
493
  ### In-loop rounds (Unity snapshot)
457
494
 
458
- **Inputs:** the Unity camera snapshot(s), the `UnityStats` metrics, **the bake tier**, and the previous
459
- 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.
460
497
 
461
498
  | Gate | Fails when |
462
499
  |---|---|
@@ -19,9 +19,16 @@ resume independently.
19
19
  │ │ # A deliberate change is an AMENDMENT, appended and dated.
20
20
  │ ├── brief.md # Full interview answers (genre, camera, physics, assets,
21
21
  │ │ # target FPS, scope cuts, ESM/UMD, ...).
22
+ │ ├── user-directions.md # Every direction the user gives about the job, word for word,
23
+ │ │ # recorded before acting on it. Append-only — format below.
22
24
  │ ├── cameras.md # The LOCKED capture cameras — name, exact transform, fov,
23
- │ │ # resolution, and which target image each one pairs with.
25
+ │ │ # resolution, and which target image each one pairs with;
26
+ │ │ # solved cameras also record their residual (target-images.md § 5).
24
27
  │ │ # Evidence not shot from these is inadmissible.
28
+ │ ├── coverage.json # Modelled assets: each part's region on the whole-asset
29
+ │ │ # reference views — format below. Passes coverage-check.
30
+ │ ├── research/ # <part>-<topic>.md research notes, plus ADOPTED.md — the
31
+ │ │ # cumulative ledger of adopted techniques (format below).
25
32
  │ ├── components.md # Component inventory of supplied interactive GLTF/GLB
26
33
  │ │ # assets (protected TOOLKIT.* / project PROJECT.* /
27
34
  │ │ # authoring-only) — written in round 1, read on resume.
@@ -39,7 +46,8 @@ resume independently.
39
46
  │ ├── reference/ # The bar: target.png (+ per-camera targets), user-supplied
40
47
  │ │ # screenshots/clips. LOCKED at round 1.
41
48
  │ └── evidence/ # Our side of the A/B: round-NN-<part>-<camera>.png,
42
- │ # round-NN-<part>-metrics.json, exported-metadata dumps.
49
+ │ # round-NN-<part>-metrics.json, exported-metadata dumps,
50
+ │ # round-NN-overlay.png + .json (modelled assets, every round).
43
51
  └── racing-demo/ # another job, fully independent — same layout
44
52
  └── ...
45
53
  ```
@@ -98,11 +106,20 @@ STRATEGY: <only when a stall tier forced an architectural change — what was th
98
106
  ## Evidence
99
107
  - evidence/round-12-p2-hero.png (camera `hero`, 1920x1080)
100
108
  - evidence/round-12-p2-metrics.json (fps 58 · draws 412 · console 0 errors)
109
+ - evidence/round-12-overlay.png + .json (modelled assets: every locked view + the whole-asset views)
110
+
111
+ ## Whole-shape check (orchestrator, before the critic — modelled assets)
112
+ <one paragraph, written after opening every view of the overlay sheet: per view, does the whole
113
+ outline match (IoU, largest missing / extra region)? Which views are EVIDENCE-ONLY? Never from crops.>
114
+
115
+ ## Directions and rules in force
116
+ user-directions.md D1–D9 (D4 superseded by D7) · ADOPTED.md R1–R6 governing P2
101
117
 
102
118
  ## Critic
103
- SCORE: 6.5 / 10 (Comp 1.5 · Light 1.5 · Mat 1.5 · Detail 1.5 · Motion 0.5)
119
+ WHOLE SHAPE: front yes (0.94) · side NO (0.86, nose missing 4.1 %) · top yes (0.93) · 3/4 EVIDENCE-ONLY
120
+ SCORE: 5.0 / 10 (axes 6.5 — Comp 1.5 · Light 1.5 · Mat 1.5 · Detail 1.5 · Motion 0.5 — capped: whole shape)
104
121
  PREVIOUS: 6.5 / 10 (round 09)
105
- GATES: perf PASS · console PASS · authority PASS · camera PASS
122
+ GATES: perf PASS · console PASS · authority PASS · camera PASS · directions PASS · adopted FAIL (R4) · coverage PASS · camera accuracy PASS
106
123
  VERDICT: FAIL
107
124
  REGRESSION: none
108
125
 
@@ -115,13 +132,80 @@ GAP 03 ...
115
132
  progress.md updated: attempt 3/5, stall -> approaching (same top gap twice)
116
133
  ```
117
134
 
135
+ ## `user-directions.md` format — the user's words, verbatim
136
+
137
+ ```markdown
138
+ # User directions — <name>
139
+ D1 · 2026-11-02 09:14 · applies to: all
140
+ > <the user's exact text, pasted whole — never paraphrased, trimmed or "cleaned up">
141
+
142
+ D2 · 2026-11-05 21:40 · applies to: P1, P3
143
+ > <exact text>
144
+
145
+ D3 · 2026-11-09 18:02 · applies to: P1 · SUPERSEDES D2 (for P1 only)
146
+ > <exact text>
147
+ ```
148
+
149
+ - Recorded **the moment a direction arrives, before acting on it** — in the interview (the brief itself is D1),
150
+ mid-round, at a park, on resume, or relayed by a plan run (`spec-composition.md`).
151
+ - **Append-only.** A later direction that replaces one says `SUPERSEDES D<n>` (and for which parts); the
152
+ superseded entry stays, with `· SUPERSEDED by D<m>` appended to its header line. Nothing is ever deleted or
153
+ reworded.
154
+ - **Every builder and critic brief carries the whole file verbatim** — never a summary or excerpt. The critic's
155
+ *User directions* gate fails a round that breaks any line still in force, quoting it.
156
+
157
+ ## `research/ADOPTED.md` format — the cumulative technique ledger
158
+
159
+ ```markdown
160
+ # Adopted techniques — <name>
161
+ R1 · 2026-11-03 · source: research/p1-blueprint-method.md · governs: P1–P6
162
+ Rule: <one checkable sentence — what the builder does, and what evidence shows it was done>
163
+ Sources: <the URLs the note cites>
164
+
165
+ R4 · 2026-11-10 · source: research/p2-rounded-sections.md · governs: P2
166
+ Rule: ...
167
+ Sources: ...
168
+ AMENDED 2026-11-14 (round 23): <new wording> — reason: <why> — evidence: <round, measurement, overlay>
169
+ ```
170
+
171
+ - Every research note's **adopted techniques become numbered rules here** (the note keeps the detail; the rule is
172
+ the checkable sentence). A new note **adds** rules or **amends** existing ones; it never replaces the ledger.
173
+ - A rule leaves only by a dated `RETIRED <date> (round NN): reason — evidence` line; the entry stays.
174
+ - A rebuild, a STRATEGY swing or a "start over" **keeps the ledger** — it throws away the build, never the method.
175
+ - A job that models an asset from reference images seeds R1–R3 with the professional base method before round 1:
176
+ **blueprint setup** (references registered to scale behind the model), **traced outlines** (each view's outline
177
+ traced and built to), **whole silhouette first** (the overlay sheet in every view before any detail) —
178
+ bt-blender's `blueprint`, `trace` and `overlay-sheet`. Later research refines them, never drops them.
179
+ - Builder briefs quote every rule that governs the part, verbatim; the critic's *Adopted techniques* gate fails
180
+ the round, by rule number, when the evidence does not show one was followed.
181
+
182
+ ## `coverage.json` format — every reference region belongs to a part (modelled assets)
183
+
184
+ ```json
185
+ {
186
+ "views": {
187
+ "whole-side.png": {
188
+ "parts": { "P1": [[412, 300], [655, 288], [660, 410], [405, 420]],
189
+ "P2": [[[120, 310], [300, 250], [310, 420]], [40, 380, 120, 430]] } }
190
+ }
191
+ }
192
+ ```
193
+
194
+ Written whenever the asset is split into parts (round 1, or any re-decomposition): each part's region on **every
195
+ whole-asset reference view**, keyed by the reference's name, file name or stem. A region is a polygon
196
+ `[[x, y], …]` or a box `[x0, y0, x1, y1]` in that reference's pixels, or a list of either. It must pass
197
+ `coverage-check --reference <name>=<whole-view.png> --parts coverage.json --out evidence/coverage.png` for every
198
+ view (it fails when any silhouette region belongs to no part; its `--help` is the authority on field names). A region
199
+ no part covers is a gap of the **nearest part**, never "not built yet". The critic's *Coverage* gate checks it.
200
+
118
201
  ## Resume protocol (`--resume [<name>]`, or auto-offered)
119
202
 
120
203
  1. Resolve the job: explicit name → that job; one job in `.agents/gauntlet/` → resume it; several → list them and
121
204
  ask.
122
205
  2. Read the Babylon Toolkit Agent Reference if not already remembered in this session.
123
- 3. Read `.agents/gauntlet/<name>/loop-card.md` → `progress.md` → `pipeline.md` → `cameras.md` →
124
- `components.md` (if present) → the last 1–2 `rounds/*.md`.
206
+ 3. Read `.agents/gauntlet/<name>/loop-card.md` → `user-directions.md` (whole) → `research/ADOPTED.md` →
207
+ `progress.md` → `pipeline.md` → `cameras.md` → `coverage.json` and `components.md` (if present) → the last 1–2
208
+ `rounds/*.md`. Anything the user says on resume is appended to `user-directions.md` before step 4.
125
209
  4. Read the pipeline reference for the job's `Kind` and **re-run its prerequisite gate**. This is not
126
210
  optional on resume: a resident Unity Editor, a running dev server and a warm asset database do **not**
127
211
  survive a pause. Re-establish them and re-verify licence tier before building anything.