@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.
Files changed (28) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/skills/bt-blender/SKILL.md +81 -19
  4. package/skills/bt-blender/references/hard-surface.md +9 -5
  5. package/skills/bt-blender/references/vehicles.md +14 -9
  6. package/skills/bt-blender/scripts/blender/__pycache__/construction_kit.cpython-313.pyc +0 -0
  7. package/skills/bt-blender/scripts/blender/__pycache__/geometry_nodes_builders.cpython-313.pyc +0 -0
  8. package/skills/bt-blender/scripts/blender/__pycache__/image_measure.cpython-313.pyc +0 -0
  9. package/skills/bt-blender/scripts/blender/__pycache__/reference_traces.cpython-313.pyc +0 -0
  10. package/skills/bt-blender/scripts/blender/blueprint.py +293 -0
  11. package/skills/bt-blender/scripts/blender/construction_kit.py +61 -1
  12. package/skills/bt-blender/scripts/blender/coverage_check.py +221 -0
  13. package/skills/bt-blender/scripts/blender/evidence_sheet.py +243 -0
  14. package/skills/bt-blender/scripts/blender/image_measure.py +354 -5
  15. package/skills/bt-blender/scripts/blender/measure_stations.py +11 -1
  16. package/skills/bt-blender/scripts/blender/overlay_sheet.py +238 -0
  17. package/skills/bt-blender/scripts/blender/reference_traces.py +344 -0
  18. package/skills/bt-blender/scripts/blender/trace.py +283 -0
  19. package/skills/bt-blender/scripts/blender/world_gate.py +17 -5
  20. package/skills/bt-blender/scripts/bt-blender.mjs +4 -0
  21. package/skills/bt-execute/SKILL.md +2 -1
  22. package/skills/bt-gauntlet/SKILL.md +24 -14
  23. package/skills/bt-gauntlet/references/critic-rubrics.md +37 -5
  24. package/skills/bt-gauntlet/references/loop-templates.md +23 -3
  25. package/skills/bt-gauntlet/references/spec-composition.md +7 -1
  26. package/skills/bt-gauntlet/references/target-images.md +27 -0
  27. package/skills/bt-gauntlet/references/unity-pipeline.md +24 -3
  28. package/skills/bt-gauntlet/references/workspace.md +90 -6
@@ -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.