@babylonjs-toolkit/agent 1.1.54 → 1.1.56

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 (27) hide show
  1. package/README.md +61 -20
  2. package/package.json +1 -1
  3. package/skills/bt-execute/SKILL.md +60 -13
  4. package/skills/bt-execute/templates/dashboard/dashboard.html +1610 -0
  5. package/skills/bt-execute/templates/dashboard/dashboard.template.js +118 -0
  6. package/skills/bt-execute/templates/dashboard/live.template.js +25 -0
  7. package/skills/bt-gauntlet/SKILL.md +19 -19
  8. package/skills/bt-gauntlet/references/loop-templates.md +12 -12
  9. package/skills/bt-gauntlet/references/spec-composition.md +8 -7
  10. package/skills/bt-gauntlet/references/target-images.md +6 -6
  11. package/skills/bt-gauntlet/references/unity-pipeline.md +3 -3
  12. package/skills/bt-gauntlet/references/workspace.md +5 -5
  13. package/skills/bt-hero/SKILL.md +2 -2
  14. package/skills/bt-optimize/SKILL.md +338 -0
  15. package/skills/{bt-combine → bt-optimize}/scripts/BtCombine.cs +32 -25
  16. package/skills/bt-optimize/scripts/BtOptimize.cs +969 -0
  17. package/skills/{bt-combine → bt-optimize}/scripts/qa/compare-browser.mjs +1 -1
  18. package/skills/bt-optimize/scripts/qa/compare-profiles.mjs +80 -0
  19. package/skills/{bt-combine → bt-optimize}/scripts/qa/gltf-stats.mjs +1 -1
  20. package/skills/bt-optimize/scripts/qa/package.json +9 -0
  21. package/skills/bt-optimize/scripts/qa/profile-browser.mjs +547 -0
  22. package/skills/bt-plan/SKILL.md +30 -17
  23. package/skills/bt-prototype/SKILL.md +4 -4
  24. package/skills/bt-recon/SKILL.md +14 -14
  25. package/skills/bt-spec/SKILL.md +20 -9
  26. package/skills/bt-combine/SKILL.md +0 -262
  27. package/skills/bt-combine/scripts/qa/package.json +0 -9
@@ -0,0 +1,118 @@
1
+ /*
2
+ * Feature Dashboard data — .agents/specs/<slug>/documents/<slug>_dashboard.js
3
+ *
4
+ * dashboard.html (copied from this template folder) renders everything from this one object. It is plain
5
+ * JavaScript loaded with <script src>, so the page works opened straight from disk. Rules:
6
+ * - Keep it valid JavaScript: one `window.FEATURE_DASHBOARD = { … };` assignment, JSON-style values.
7
+ * - Paths (documents, snapshots) are relative to the feature folder: "snapshots/…", "documents/…".
8
+ * - Every timestamp is local time from the shell, formatted "YYYY-MM-DD HH:MM" (the page orders and
9
+ * flags "new since your last visit" by plain string comparison).
10
+ * - Text fields may use `code` and **bold**; everything else is shown as plain text.
11
+ * - Never silently rewrite an earlier phase, task, snapshot, decision or the After Action Report. Change it and append
12
+ * an entry to its `updates` list: { at, by, note } — the page shows an "Updated" badge on it and lists
13
+ * it under "Updates and revisions".
14
+ *
15
+ * Status values — report: planned | in-progress (a run is executing right now) | paused (a run ended, plan not
16
+ * finished) | complete | incomplete (plan finished with deferrals)
17
+ * Decide it from the plan file's checkboxes. The page only believes "complete" when every task here is done;
18
+ * otherwise it shows the plan as paused with a warning. A task added to the plan after it was complete is
19
+ * added here as "pending" (with an `updates` note) and the status becomes "paused".
20
+ * The status picks the page's top slot: in-progress shows Current run activity (the live file + milestones);
21
+ * paused / complete / incomplete show the After Action Report instead (paused marks it Interim).
22
+ * phase: pending | in-progress | done | partial | deferred
23
+ * task: pending | in-progress | built (awaiting the verifier) | verifying | done | deferred | failed
24
+ *
25
+ * Update cadence: per TASK, not per phase. A task's entry changes the moment it starts (in-progress), the moment
26
+ * it is built (built — with its summary, files, tests and snapshots filled in right then), while the verifier
27
+ * checks it (verifying) and when it passes (done — verifier, commit, done time). The minute-by-minute "what is
28
+ * happening now" lives in the separate live file, documents/<slug>_live.js (schema: live.template.js).
29
+ *
30
+ * Snapshot shapes (any list of snapshots may mix them):
31
+ * progression — the build told stage by stage, from the same camera, in the order it happened:
32
+ * { title, caption, source, frames: [ { src, stage, caption, task, at }, … ], updates }
33
+ * comparison — one change, side by side (drag slider):
34
+ * { title, caption, source, before: { src, caption }, after: { src, caption }, updates }
35
+ * still — one image that proves one thing:
36
+ * { title, caption, source, src, updates }
37
+ * `source` names where the image came from: "browser", "unity", "blender", "reference".
38
+ */
39
+ window.FEATURE_DASHBOARD = {
40
+ schema: 1,
41
+
42
+ feature: {
43
+ title: "Feature Title",
44
+ slug: "feature-slug",
45
+ branch: "project/feature/feature-slug",
46
+ origin: "spec", // "spec" (bt-spec) or "quick-plan" (bt-plan Quick Plan)
47
+ size: "medium",
48
+ proof: "functional",
49
+ summary: "One paragraph: what this feature is and why it exists, in plain language."
50
+ },
51
+
52
+ documents: [
53
+ { label: "Spec", path: "documents/feature-slug_spec.md" }, // omit for a Quick Plan
54
+ { label: "Plan", path: "documents/feature-slug_plan.md" },
55
+ { label: "Run log", path: "documents/feature-slug_autopilot.md" } // add once bt-execute has run
56
+ ],
57
+
58
+ status: "planned",
59
+ updatedAt: "2026-01-01 09:00",
60
+ estimate: "3–6 h", // the plan's Total line
61
+ activeTime: "", // from the run log's ⏱ lines, e.g. "2 h 10 min"
62
+ runs: 0,
63
+
64
+ // The After Action Report — the whole plan's execution, start to finish. Empty while planned; written by
65
+ // bt-execute at the end of every run, and shown in the top slot once no run is executing ("Interim" while paused).
66
+ afterAction: {
67
+ writtenAt: "", // "YYYY-MM-DD HH:MM"
68
+ headline: "", // one sentence: what the plan delivered
69
+ body: [], // 2–4 paragraphs: what was built, how it was proven, what surprised
70
+ highlights: [], // the results worth remembering
71
+ // ONE before/after for the plan as a whole: "before" captured before T1 started, "after" at the end,
72
+ // from the same camera or viewport. null when the plan has nothing to see.
73
+ comparison: null, // { title, caption, source, before: { src, caption }, after: { src, caption } }
74
+ snapshots: [], // optional: the plan's key progression, or the end-to-end proof
75
+ updates: []
76
+ },
77
+
78
+ phases: [
79
+ {
80
+ number: 1,
81
+ name: "Phase name from the plan",
82
+ status: "pending",
83
+ started: "", // "HH:MM" — from the ⏱ phase line
84
+ finished: "",
85
+ minutes: 0,
86
+ summary: "", // what this phase delivered, in two or three sentences
87
+ verifier: null, // { result: "PASS" | "FAIL → PASS on attempt 2", note: "…" }
88
+ snapshots: [], // phase-level story: progressions spanning several tasks
89
+ updates: [],
90
+ tasks: [
91
+ {
92
+ id: "T1",
93
+ title: "Task title from the plan",
94
+ kind: "code", // code | live | unity — the plan's estimate kind
95
+ verifyLevel: "standard", // standard | live
96
+ status: "pending",
97
+ summary: "", // what was actually done, and anything surprising
98
+ files: [],
99
+ tests: null, // { passed: 4, failed: 0, files: [".agents/specs/<slug>/tests/…"], note: "" }
100
+ verifier: "", // "PASS — independent subagent; live check in Chrome"
101
+ attempts: 0,
102
+ commit: "",
103
+ doneAt: "",
104
+ deferredReason: "",
105
+ decisions: [], // "DECISION T1: … — source"
106
+ snapshots: [], // this task's progression / comparisons / stills
107
+ updates: []
108
+ }
109
+ ]
110
+ }
111
+ ],
112
+
113
+ decisions: [], // { id: "D1" | "T7", text, source, updates }
114
+ followUps: [], // plain strings: what a human should look at next
115
+ activity: [ // oldest first; the page shows newest first
116
+ { at: "2026-01-01 09:00", text: "Plan written — 1 task in 1 phase, estimated 3–6 h." }
117
+ ]
118
+ };
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Feature Dashboard live status — .agents/specs/<slug>/documents/<slug>_live.js
3
+ *
4
+ * "What are you doing right now?" — answered on the page without asking. Whoever is doing the work writes
5
+ * this file: the implementer while it builds, the verifier while it checks, the orchestrator between them.
6
+ * Rewrite the WHOLE file each time (it is small; never patch it in place) at every meaningful step:
7
+ * starting a task, each milestone inside it, starting a build / export / capture / test run, a fix attempt,
8
+ * handing over to the verifier, committing. A quiet gap of 20 minutes shows as a warning on the page.
9
+ *
10
+ * Rules: valid JavaScript, one assignment. `updatedAt` is the shell clock, "YYYY-MM-DD HH:MM".
11
+ * `steps` is the current task's log, oldest first — start a fresh list when a new task starts; keep the
12
+ * last 12. Plain language a non-developer understands: "Painting the road mask from the spline", not
13
+ * "edit RoadNetwork.ts L120". The page shows it only while the dashboard's status is "in-progress".
14
+ */
15
+ window.FEATURE_LIVE = {
16
+ updatedAt: "2026-01-01 09:00",
17
+ phase: 1,
18
+ task: "T1", // the task being worked on; "" between tasks
19
+ title: "", // only when no task: e.g. "Verifying phase 1", "Committing phase 1"
20
+ role: "implementer", // implementer | verifier | orchestrator
21
+ activity: "One sentence: what is happening this minute.",
22
+ steps: [
23
+ { at: "09:00", text: "Started T1 — read the plan's task block and the files it touches." }
24
+ ]
25
+ };
@@ -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 _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. 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
 
@@ -20,16 +20,16 @@ Use the user's message after the skill name as the `arguments`.
20
20
 
21
21
  **Flags** (all optional; `--flag:value` or `--flag`):
22
22
 
23
- - **`--name: slug`** — this gauntlet job's name; it becomes the job's workspace folder `_gauntlet/<name>/`. **Any number of gauntlet jobs can exist side by side in one project** (e.g. `cod-fps`, `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.
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 `_gauntlet/<name>/loop-card.md`, distill `brief.md` from it, and start round 1 without asking anything. This is the **non-interactive entry** used when a spec/plan drives the gauntlet. If any slot is unfilled or vague, STOP and report which — never guess a slot.
27
- - **`--resume [<name>]`** — skip the interview, load `_gauntlet/<name>/`, and continue at its `NEXT ACTION`. This is how the loop continues in a brand-new session a day or a week later. Name resolution: an explicit name targets that job; with no name and exactly ONE job in `_gauntlet/`, resume it; with several jobs, list them (name, kind, parts done/total, next action) and ask which one — never guess.
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.
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.
30
- - **`<brief>`** — the idea and the goal. Attached reference screenshots/clips are copied into `_gauntlet/<name>/reference/`.
30
+ - **`<brief>`** — the idea and the goal. Attached reference screenshots/clips are copied into `.agents/gauntlet/<name>/reference/`.
31
31
 
32
- **Mode resolution:** if `--resume`, `--status`, or `--stop` is present, run that mode. Otherwise, if `_gauntlet/` contains existing jobs and no new brief was given, list them and offer to resume one. Otherwise this is a **new gauntlet**: run the interview — or, with `--card:`, validate the supplied card and start immediately. A new gauntlet whose `--name` collides with an existing job is an error — offer `--resume <name>` or a different name; never silently overwrite a job's workspace.
32
+ **Mode resolution:** if `--resume`, `--status`, or `--stop` is present, run that mode. Otherwise, if `.agents/gauntlet/` contains existing jobs and no new brief was given, list them and offer to resume one. Otherwise this is a **new gauntlet**: run the interview — or, with `--card:`, validate the supplied card and start immediately. A new gauntlet whose `--name` collides with an existing job is an error — offer `--resume <name>` or a different name; never silently overwrite a job's workspace.
33
33
 
34
34
  ---
35
35
 
@@ -50,7 +50,7 @@ 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 `_gauntlet/<name>/` layout, `progress.md` and round-journal formats, the resume protocol |
53
+ | `references/workspace.md` | the `.agents/gauntlet/<name>/` layout, `progress.md` and round-journal formats, the resume protocol |
54
54
  | `references/critic-rubrics.md` | the critic contract, the scoring rubrics, the gap-list rules, the hard gates, the stall ladder |
55
55
  | `references/target-images.md` | generating, prompting, reachability-checking, locking the target; locked cameras; **generation backends** (kie default, Higgsfield mapping) |
56
56
  | `references/loop-templates.md` | Template A and Template B loop cards |
@@ -77,7 +77,7 @@ If you have not read it in this session/context, or you no longer remember it du
77
77
 
78
78
  The doctrine lives in the Agent Reference — `references/scene-components.md` § "Babylon Toolkit Component Authority" (https://raw.githubusercontent.com/babylontoolkit/agent/main/references/scene-components.md): supplied GLTF/GLB files are **interactive prefabs** whose `extras.metadata.components` carry configured physics, tuning and gameplay intent; `TOOLKIT.*` components are the first-class engine implementation — compose and tune them through `PROJECT.*` ScriptComponents, never reimplement, bypass, or delete them; replacement requires that document's evidence checklist. Read it before any round touching supplied interactive assets. The gauntlet-specific mechanics:
79
79
 
80
- - **Round 1 writes the inventory to disk** — `_gauntlet/<name>/components.md`: every component grouped by scene node, classified **protected-system** (`TOOLKIT.*` — tune, never replace), **project** (`PROJECT.*` — modifiable), or **authoring-only**, with safe-to-tune properties verified against `babylon.toolkit.d.ts`. A resumed cold session READS this instead of re-deriving it; the round that changes supplied assets updates it.
80
+ - **Round 1 writes the inventory to disk** — `.agents/gauntlet/<name>/components.md`: every component grouped by scene node, classified **protected-system** (`TOOLKIT.*` — tune, never replace), **project** (`PROJECT.*` — modifiable), or **authoring-only**, with safe-to-tune properties verified against `babylon.toolkit.d.ts`. A resumed cold session READS this instead of re-deriving it; the round that changes supplied assets updates it.
81
81
  - **Builders write code to the Agent Reference's Coding Practices — ENFORCED** — clean, professional TypeScript or JavaScript in the project's own language, meaningful full-word names (never one- or two-letter names or obfuscation), well-structured, readable and maintainable by human developers, with meaningful JSDoc on every class, function, method and public member (always written, but never a reason to fail a part). Every builder brief carries that section in full; critics fail a part that breaks it (the *Coding practices* hard gate in `references/critic-rubrics.md`).
82
82
  - **Builders build against the manifest** — given `components.md` alongside the Agent Reference. Unity-authored serialized values are preserved unless a *measured* issue justifies the change, and the measurement goes in the round journal.
83
83
  - **Critics enforce it** — reimplementing, bypassing (e.g. direct transform updates beside an attached physics controller), or deleting a protected component is a **FAIL regardless of how the evidence looks**, unless the round journal carries the full replacement-evidence checklist.
@@ -98,7 +98,7 @@ The loop may not start until **every slot of the chosen template is filled**. Th
98
98
 
99
99
  Interview batches:
100
100
 
101
- 0. **NAME** — Confirm the job's slug. It becomes `_gauntlet/<name>/` and must not collide with an existing job.
101
+ 0. **NAME** — Confirm the job's slug. It becomes `.agents/gauntlet/<name>/` and must not collide with an existing job.
102
102
  1. **DELIVERABLE KIND + DELIVERABLE** — Which of the three kinds is this: a **web game**, a **Unity level for export**, or a **Blender model**? Then what exactly ships (playable browser demo, one polished level, a hero asset with LODs...)? Module style: ES6/ESM default; UMD only if explicitly demanded. New project or existing? Target folder. **Read the matching pipeline reference now** and run its prerequisite gate before going further — a failed gate (no Pro licence, no toolkit bootstrap, no rendering Editor for snapshots, no Blender) changes what is worth agreeing to.
103
103
  2. **OBJECTIVE** — The exact outcome that must become true, as one testable sentence. Rewrite with the user until it is inspectable.
104
104
  3. **THE TARGET + CAMERAS** — Per `references/target-images.md`: does the user have reference media, is there an existing artifact to refine, or do we generate the target? Agree the target image(s), run the **reachability pass** (Reachable / Approximable / **OUT OF REACH**), and agree the **locked cameras** — one per target, three to five, including a detail crop. Settle the **image-generation backend** too (kie by default, the Higgsfield CLI if it is installed and signed in or the user asks for it — `target-images.md` §1a) and record it in `pipeline.md`. Plus numeric benchmarks: target FPS @ resolution, max load time, draw-call / texture / triangle budgets. If the user has no benchmark, making a defensible one is part of the interview, not skipped.
@@ -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 `_gauntlet/<name>/brief.md`. Write the locked cameras to `cameras.md` and the pipeline state to `pipeline.md`. Fill the chosen template's slots to produce `_gauntlet/<name>/loop-card.md`. **Show the user the filled loop card and get confirmation before round 1.** Nothing builds until the card is confirmed.
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.
113
113
 
114
114
  ---
115
115
 
@@ -118,7 +118,7 @@ Write all answers to `_gauntlet/<name>/brief.md`. Write the locked cameras to `c
118
118
  **Nothing the loop needs lives in the conversation — it all lives in files.** One folder per job:
119
119
 
120
120
  ```
121
- _gauntlet/<name>/
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
  ├── cameras.md # LOCKED capture cameras — evidence from anywhere else is inadmissible
@@ -141,7 +141,7 @@ _gauntlet/<name>/
141
141
  1. **Inspect** the current state: `progress.md` + `pipeline.md` + the actual project — plus `components.md` when supplied assets carry component metadata (write it now if it is owed and missing).
142
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
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 `_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
+ 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.
145
145
 
146
146
  5. **Criticize (fresh context)** — spawn a harsh critic subagent per `references/critic-rubrics.md`. It receives the loop card, the part's spec, the target, the evidence, the metrics, **the previous round's screenshot and verdict**, and the pipeline's extra inputs — **never the builder's rationale**. It returns a **scored rubric**, the **FULL prioritized gap list** (not one gap), every **hard gate** as pass/fail, a regression note, and PASS/FAIL. It grades pixels, numbers and behaviour — never effort or intent.
147
147
  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.
@@ -175,7 +175,7 @@ generate_image(
175
175
  alley at night, wet asphalt with sharp neon reflections in standing water,
176
176
  layered Kanji signage in magenta and cyan, thin haze in the light cones,
177
177
  baked global illumination, gameplay camera at eye height, 1920x1080",
178
- out_path: "_gauntlet/neon-alley/reference/target-hero.png",
178
+ out_path: ".agents/gauntlet/neon-alley/reference/target-hero.png",
179
179
  aspect_ratio: "16:9", resolution: "2K", output_format: "png")
180
180
  ```
181
181
 
@@ -196,7 +196,7 @@ until unity command lighting_bake_status --project-path "$PROJ" --result-only 2>
196
196
 
197
197
  # snapshot each locked camera straight to PNG — no export, no server, no browser
198
198
  unity command capture_game_view --camera gauntlet_hero --width 1920 --height 1080 --project-path "$PROJ" \
199
- --result-only | jq -r .base64 | base64 -d > _gauntlet/neon-alley/evidence/round-NN-p7-hero.png
199
+ --result-only | jq -r .base64 | base64 -d > .agents/gauntlet/neon-alley/evidence/round-NN-p7-hero.png
200
200
  ```
201
201
 
202
202
  Seconds, not minutes. The critic scores hero + side + detail against their targets and returns the full gap list.
@@ -223,8 +223,8 @@ generate_image(
223
223
  prompt: "the same harbor scene, same layout and camera, upgraded to a modern real-time
224
224
  in-engine look: warmer low sun, softer bounce into the shadows, wet stone with
225
225
  varied roughness, richer ambient occlusion, subtle haze over the water",
226
- reference_paths: ["_gauntlet/harbor-polish/evidence/round-00-baseline-hero.png"],
227
- out_path: "_gauntlet/harbor-polish/reference/target-hero.png")
226
+ reference_paths: [".agents/gauntlet/harbor-polish/evidence/round-00-baseline-hero.png"],
227
+ out_path: ".agents/gauntlet/harbor-polish/reference/target-hero.png")
228
228
  ```
229
229
 
230
230
  3. **Constrain the part list.** "Don't change the layout" removes P1/P2/P3 from scope — record that as an explicit scope cut, so the loop works only P4–P11 (materials, light rig, GI bake, IBL, probes, atmosphere, image processing, perf) and a critic never raises a composition gap.
@@ -254,7 +254,7 @@ blender --background --factory-startup --python-exit-code 1 \
254
254
  --python /tmp/round-07-bevels.py -- "$FBX" "$FBX" # same path in and out
255
255
  unity command eval 'UnityEditor.AssetDatabase.Refresh(UnityEditor.ImportAssetOptions.ForceSynchronousImport); return "ok";' --project-path "$PROJ"
256
256
  unity command capture_game_view --camera gauntlet_hero --width 1920 --height 1080 --project-path "$PROJ" \
257
- --result-only | jq -r .base64 | base64 -d > _gauntlet/hero-mech/evidence/round-07-p2-hero.png
257
+ --result-only | jq -r .base64 | base64 -d > .agents/gauntlet/hero-mech/evidence/round-07-p2-hero.png
258
258
  ```
259
259
 
260
260
  Without `--python-exit-code 1` a crashed script exits `0` and the loop records a failed round as a success. Without in-place writing, every round mints a new GUID and quietly detaches the model from every scene that used it. Both are hard gates.
@@ -338,9 +338,9 @@ candy-themed circuit with a jump, a tunnel, boost pads and scenery everywhere. K
338
338
  - **Progress is never self-reported.** Screenshots, perf numbers, exported metadata, diffs — an observable receipt, or it didn't happen.
339
339
  - **Never chase what cannot cross the boundary.** The `OUT OF REACH` list exists so critics stop naming impossible gaps.
340
340
  - **Permissions start reversible.** Deploy, delete, spend, publish, message, and secrets stay behind explicit user approval, always.
341
- - **Context rots; files don't.** Compact durable state in `_gauntlet/<name>/` beats a long chat history. On any doubt, trust the files and the actual project, then correct `progress.md`.
341
+ - **Context rots; files don't.** Compact durable state in `.agents/gauntlet/<name>/` beats a long chat history. On any doubt, trust the files and the actual project, then correct `progress.md`.
342
342
  - **Pipeline state does not survive a pause.** A resident Unity Editor, a dev server, a warm asset database: all session-scoped. Re-run the prerequisite gate on every resume.
343
- - **Jobs never bleed into each other.** A round touches only its own `_gauntlet/<name>/` state; other jobs' workspaces are read-only neighbors.
343
+ - **Jobs never bleed into each other.** A round touches only its own `.agents/gauntlet/<name>/` state; other jobs' workspaces are read-only neighbors.
344
344
  - **Every park prints the exact resume command**: `/bt-gauntlet --resume <name>`.
345
345
 
346
346
  ---
@@ -1,7 +1,7 @@
1
1
  # Loop Card Templates
2
2
 
3
3
  The interview fills the `<SLOTS>` — including `<NAME>` and `<DELIVERABLE KIND>` — and the filled copy
4
- becomes `_gauntlet/<name>/loop-card.md`. Kept verbatim here so they are easy to modify. A job never mixes
4
+ becomes `.agents/gauntlet/<name>/loop-card.md`. Kept verbatim here so they are easy to modify. A job never mixes
5
5
  templates.
6
6
 
7
7
  ---
@@ -19,10 +19,10 @@ Build it with BabylonJS and the Babylon Toolkit (NOT Three.js), following the
19
19
  Babylon Toolkit Agent Reference conventions already loaded in this session.
20
20
 
21
21
  This gauntlet job is named <NAME>; all of its loop state lives in
22
- _gauntlet/<NAME>/ and never anywhere else.
22
+ .agents/gauntlet/<NAME>/ and never anywhere else.
23
23
 
24
- THE BAR IS AN IMAGE. The target lives at _gauntlet/<NAME>/reference/ and is
25
- LOCKED — one target per locked camera in _gauntlet/<NAME>/cameras.md. Every
24
+ THE BAR IS AN IMAGE. The target lives at .agents/gauntlet/<NAME>/reference/ and is
25
+ LOCKED — one target per locked camera in .agents/gauntlet/<NAME>/cameras.md. Every
26
26
  round captures evidence from those exact camera transforms and no others, so
27
27
  the comparison is like for like.
28
28
 
@@ -31,20 +31,20 @@ OUT OF REACH (do not raise gaps against these):
31
31
 
32
32
  Choose the approach. Break the work into the smallest important parts that can
33
33
  be improved and judged independently, and record that decomposition as the part
34
- checklist in _gauntlet/<NAME>/progress.md. Fan out builder subagents only where
34
+ checklist in .agents/gauntlet/<NAME>/progress.md. Fan out builder subagents only where
35
35
  the work is genuinely independent; keep tightly coupled systems under one owner.
36
36
  Give every important part a separate, harsh critic with fresh context.
37
37
 
38
38
  If the supplied assets include GLTF/GLB files carrying Babylon Toolkit component
39
39
  metadata (extras.metadata.components), write the component inventory to
40
- _gauntlet/<NAME>/components.md in round 1 and honor it every round: TOOLKIT.*
40
+ .agents/gauntlet/<NAME>/components.md in round 1 and honor it every round: TOOLKIT.*
41
41
  components are first-class — compose and tune them through PROJECT.* scripts,
42
42
  never reimplement, bypass, or delete them (see the Agent Reference's
43
43
  "Babylon Toolkit Component Authority" section). Critics fail violations.
44
44
 
45
45
  Each critic must inspect the REAL artifact — evidence captured into
46
- _gauntlet/<NAME>/evidence/ — never the builder's summary, and compare it
47
- directly with the target in _gauntlet/<NAME>/reference/. It scores the rubric,
46
+ .agents/gauntlet/<NAME>/evidence/ — never the builder's summary, and compare it
47
+ directly with the target in .agents/gauntlet/<NAME>/reference/. It scores the rubric,
48
48
  returns the FULL prioritized gap list (not one gap), and applies every hard
49
49
  gate. It receives the previous round's screenshot and verdict so scores stay
50
50
  comparable and regressions are caught.
@@ -54,8 +54,8 @@ two rounds, or the same top gap is named twice in a row, incremental tweaks are
54
54
  FORBIDDEN — make one dramatic architectural change and record it as a STRATEGY
55
55
  line. If that swing scores the same or worse, stop and escalate to me.
56
56
 
57
- After EVERY round, update _gauntlet/<NAME>/progress.md and append
58
- _gauntlet/<NAME>/rounds/round-NN.md before starting the next round, so a
57
+ After EVERY round, update .agents/gauntlet/<NAME>/progress.md and append
58
+ .agents/gauntlet/<NAME>/rounds/round-NN.md before starting the next round, so a
59
59
  brand-new session can resume this loop with `/bt-gauntlet --resume <NAME>`
60
60
  at any time.
61
61
 
@@ -90,8 +90,8 @@ Reference conventions already loaded in this session.
90
90
 
91
91
  INPUTS AND STATE
92
92
  This gauntlet job is named <NAME>; all of its loop state lives in
93
- _gauntlet/<NAME>/ and never anywhere else.
94
- Use: _gauntlet/<NAME>/loop-card.md, brief.md, cameras.md, pipeline.md,
93
+ .agents/gauntlet/<NAME>/ and never anywhere else.
94
+ Use: .agents/gauntlet/<NAME>/loop-card.md, brief.md, cameras.md, pipeline.md,
95
95
  progress.md, reference/, and the project sources. Record after every round in
96
96
  progress.md and rounds/: what changed, evidence, score, the full gap list,
97
97
  failed approach, next action, and remaining budget — so
@@ -7,8 +7,8 @@ skills:
7
7
 
8
8
  | Spec workflow | Gauntlet equivalent |
9
9
  | --- | --- |
10
- | `_specs/<feature>_spec.md` (bt-spec) | `_gauntlet/<name>/loop-card.md` — objective, benchmark, rubric, success condition, boundaries |
11
- | `_specs/<feature>_plan.md` (bt-plan) | the part checklist in `_gauntlet/<name>/progress.md` — the lead agent's round-1 decomposition |
10
+ | `.agents/specs/<feature>/documents/<feature>_spec.md` (bt-spec) | `.agents/gauntlet/<name>/loop-card.md` — objective, benchmark, rubric, success condition, boundaries |
11
+ | `.agents/specs/<feature>/documents/<feature>_plan.md` (bt-plan) | the part checklist in `.agents/gauntlet/<name>/progress.md` — the lead agent's round-1 decomposition |
12
12
  | bt-execute `ALL` (checkbox resume) | the round protocol + `--resume <name>` |
13
13
 
14
14
  The difference is when a box may flip. A **bt-plan task** is feed-forward: known work, visited once, `- [x]`
@@ -40,17 +40,18 @@ 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. `_specs/<feature>_gauntlet-card.md`).
43
+ (e.g. `.agents/specs/<feature>/documents/<feature>_gauntlet-card.md`).
44
44
  - **bt-plan:** the gauntlet becomes one task (usually the last), whose Details invoke
45
- `/bt-gauntlet --card:_specs/<feature>_gauntlet-card.md --rounds:N`. Its **Acceptance** is observable:
45
+ `/bt-gauntlet --card:.agents/specs/<feature>/documents/<feature>_gauntlet-card.md --rounds:N`. Its **Acceptance** is observable:
46
46
  "gauntlet job `<name>` reports DONE — success condition met and the integration critic passed — as
47
- evidenced by `_gauntlet/<name>/progress.md` and the final round journal."
47
+ evidenced by `.agents/gauntlet/<name>/progress.md` and the final round journal."
48
48
  - **bt-execute:** runs the task by invoking the gauntlet non-interactively. Because a gauntlet may outlast
49
49
  one session, the task's checkbox stays `- [ ]` while the job is merely parked; each later
50
50
  `bt-execute <plan> NEXT` run re-enters via `/bt-gauntlet --resume <name>` and the box flips only when the
51
51
  job genuinely reports DONE (or a loop-card boundary fires and the user accepts the parked result — record
52
52
  which). The gauntlet's own critic evidence IS the acceptance evidence; the bt-execute verifier reads
53
- `progress.md` + the last round journal rather than re-judging the art.
53
+ `progress.md` + the last round journal rather than re-judging the art. bt-execute copies the gauntlet's best
54
+ evidence frames, round by round, into the feature's `snapshots/` as a progression for the feature dashboard.
54
55
 
55
56
  bt-gauntlet never orchestrates bt-spec itself — composition is always initiated from the spec side.
56
57
 
@@ -58,7 +59,7 @@ bt-gauntlet never orchestrates bt-spec itself — composition is always initiate
58
59
 
59
60
  ## Cross-Host Notes
60
61
 
61
- This skill runs the same everywhere because resumability depends on nothing but the `_gauntlet/` files and
62
+ This skill runs the same everywhere because resumability depends on nothing but the `.agents/gauntlet/` files and
62
63
  re-invocation — no host loop feature is required.
63
64
 
64
65
  - **Subagents:** tool names differ (Claude Code `Agent`/`Task`; other hosts their own equivalent). Check the
@@ -12,7 +12,7 @@ gap to it.
12
12
 
13
13
  **In priority order:**
14
14
 
15
- 1. **The user supplied reference media.** Use it directly. Copy into `_gauntlet/<name>/reference/`, named
15
+ 1. **The user supplied reference media.** Use it directly. Copy into `.agents/gauntlet/<name>/reference/`, named
16
16
  per part/camera where possible (`hero-01.png`, `alley-02.png`).
17
17
  2. **There is an existing artifact to improve.** Capture the current state first, then feed that screenshot
18
18
  to the image model as the **baseline** and ask for a refinement along the user's direction — so the
@@ -37,7 +37,7 @@ the interview, and record it in `pipeline.md` so a resumed session uses the same
37
37
  generate_image(prompt, out_path, reference_paths?, model?, aspect_ratio?, resolution?, output_format?)
38
38
  ```
39
39
 
40
- - `out_path` → `_gauntlet/<name>/reference/target-<camera>.png`
40
+ - `out_path` → `.agents/gauntlet/<name>/reference/target-<camera>.png`
41
41
  - `reference_paths` → the current-state screenshot for the refinement path (up to 14 files)
42
42
  - `aspect_ratio` → match the locked camera's aspect; `resolution: "2K"` or `"4K"`; `output_format: "png"`
43
43
 
@@ -63,7 +63,7 @@ Higgsfield rules for this loop:
63
63
  - **Sign-in is the user's.** If the CLI isn't signed in, start `higgsfield auth login` in the background and
64
64
  have the user approve it in the browser. Select the workspace (`workspace list` → `workspace set <id>`)
65
65
  before anything else.
66
- - **Never hot-link** a Higgsfield CDN URL. The locked target must be a file inside `_gauntlet/<name>/`,
66
+ - **Never hot-link** a Higgsfield CDN URL. The locked target must be a file inside `.agents/gauntlet/<name>/`,
67
67
  which the wrapper guarantees.
68
68
  - For several independent images (one per locked camera), run the wrapper calls in parallel from the shell,
69
69
  each with its own `--out`.
@@ -118,8 +118,8 @@ For `unity` jobs the boundary is concrete: the 73 scene-metadata keys the export
118
118
  Once the target is agreed, **it is frozen for the run.** Record in the loop card:
119
119
 
120
120
  ```
121
- REFERENCE: _gauntlet/<name>/reference/target-hero.png (locked round 1, 2026-09-09)
122
- _gauntlet/<name>/reference/target-alley.png (locked round 1, 2026-09-09)
121
+ REFERENCE: .agents/gauntlet/<name>/reference/target-hero.png (locked round 1, 2026-09-09)
122
+ .agents/gauntlet/<name>/reference/target-alley.png (locked round 1, 2026-09-09)
123
123
  ```
124
124
 
125
125
  A moving target makes every score incomparable and every failed-approach log meaningless. If the user
@@ -136,7 +136,7 @@ must be re-judged, and reset those parts' best-score history. Never silently reg
136
136
  ## 5. Cameras — one target per locked camera
137
137
 
138
138
  **A comparison against a target image is meaningless if the viewpoint drifts.** Every target image is paired
139
- with exactly one locked camera, recorded in `_gauntlet/<name>/cameras.md`:
139
+ with exactly one locked camera, recorded in `.agents/gauntlet/<name>/cameras.md`:
140
140
 
141
141
  ```markdown
142
142
  # Locked cameras
@@ -51,7 +51,7 @@ scenes; geometry, UVs, PBR maps, LODs and skinning for models.
51
51
  ## 1. Prerequisite gate — before round 1, and again on every resume
52
52
 
53
53
  **A gauntlet that starts without these spends its whole budget polishing something that never exports.**
54
- Run the gate, write the result to `_gauntlet/<name>/pipeline.md`, and refuse to start if it fails.
54
+ Run the gate, write the result to `.agents/gauntlet/<name>/pipeline.md`, and refuse to start if it fails.
55
55
 
56
56
  ```bash
57
57
  unity command bt_status --project-path "$PROJ"
@@ -319,8 +319,8 @@ inline, so decode it to wherever the evidence lives (a `--save_path` would land
319
319
  ```bash
320
320
  unity command capture_game_view --camera gauntlet_hero --width 1920 --height 1080 \
321
321
  --project-path "$PROJ" --result-only | jq -r .base64 | base64 -d \
322
- > "_gauntlet/<name>/evidence/round-12-p7-hero.png"
323
- file "_gauntlet/<name>/evidence/round-12-p7-hero.png" # PNG image data, 1920 x 1080
322
+ > ".agents/gauntlet/<name>/evidence/round-12-p7-hero.png"
323
+ file ".agents/gauntlet/<name>/evidence/round-12-p7-hero.png" # PNG image data, 1920 x 1080
324
324
  ```
325
325
 
326
326
  > Do not hand-roll `Camera.Render()` into a `RenderTexture` from `eval`: under URP in a batch Editor that
@@ -4,12 +4,12 @@ This is what makes the loop resumable days or weeks later: **nothing the loop ne
4
4
  conversation — it all lives in files.** A brand-new session with zero context reads the workspace and knows
5
5
  exactly where it was.
6
6
 
7
- **One folder per gauntlet job.** `_gauntlet/` is just the container; every job owns a self-contained
8
- `_gauntlet/<name>/` workspace, so any number of gauntlets — even for the same project — can run, park and
7
+ **One folder per gauntlet job.** `.agents/gauntlet/` is just the container; every job owns a self-contained
8
+ `.agents/gauntlet/<name>/` workspace, so any number of gauntlets — even for the same project — can run, park and
9
9
  resume independently.
10
10
 
11
11
  ```
12
- _gauntlet/
12
+ .agents/gauntlet/
13
13
  ├── cod-fps/ # one gauntlet job
14
14
  │ ├── loop-card.md # The filled template — the loop's constitution:
15
15
  │ │ # DELIVERABLE KIND, DELIVERABLE, OBJECTIVE,
@@ -117,10 +117,10 @@ progress.md updated: attempt 3/5, stall -> approaching (same top gap twice)
117
117
 
118
118
  ## Resume protocol (`--resume [<name>]`, or auto-offered)
119
119
 
120
- 1. Resolve the job: explicit name → that job; one job in `_gauntlet/` → resume it; several → list them and
120
+ 1. Resolve the job: explicit name → that job; one job in `.agents/gauntlet/` → resume it; several → list them and
121
121
  ask.
122
122
  2. Fetch/read the Babylon Toolkit Agent Reference if not already remembered in this session.
123
- 3. Read `_gauntlet/<name>/loop-card.md` → `progress.md` → `pipeline.md` → `cameras.md` →
123
+ 3. Read `.agents/gauntlet/<name>/loop-card.md` → `progress.md` → `pipeline.md` → `cameras.md` →
124
124
  `components.md` (if present) → the last 1–2 `rounds/*.md`.
125
125
  4. Read the pipeline reference for the job's `Kind` and **re-run its prerequisite gate**. This is not
126
126
  optional on resume: a resident Unity Editor, a running dev server and a warm asset database do **not**
@@ -23,7 +23,7 @@ Use the user's message after the skill name as the `arguments`.
23
23
  - **an idea sentence** — `create a Mustang GT Shelby decked out for racing, with a race driver — desert dawn to red-rock canyon to night dunes, NFS-style game site`
24
24
  - **a path to an existing hero image or video** — `@my-hero.jpg`, `@footage/run.mp4`
25
25
  - **explicit slot answers** — `HUD 0→220 MPH`, `sweep: hero`, `no jump nav`, `call it SIDEWINDER`
26
- - **a previously written brief file** — `@_specs/<name>_hero-brief.md` (rebuilds it exactly, asking nothing)
26
+ - **a previously written brief file** — `@.agents/specs/<name>/documents/<name>_hero-brief.md` (rebuilds it exactly, asking nothing; a legacy flat `.agents/specs/<name>_hero-brief.md` works too)
27
27
  - **nothing at all** — full interview
28
28
 
29
29
  Whatever is present is used verbatim; the intake resolves the rest (Step 1). **There are no route keywords and no confirmation gates: `/bt-hero` builds, one shot.** The only permitted stop is the safety stop in Step 3.
@@ -66,7 +66,7 @@ Then resolve every unfilled slot by exactly one of two paths:
66
66
 
67
67
  ## Step 2 — Write the hero brief (the save file)
68
68
 
69
- Write the resolved slots to `_specs/<feature-name>_hero-brief.md` (create `_specs/` if needed). The brief is the **record**, not a gate: the user never has to touch it, but `/bt-hero @<brief-file>` later must rebuild the same hero with zero questions — that is what makes a hero repeatable, shareable, and tweakable (edit a line, re-run). Record **only Tier 3 answers and explicit Tier 2 overrides** — never Tier 1 mechanics; the brief describes the film, not the engine.
69
+ Write the resolved slots to `.agents/specs/<feature-name>/documents/<feature-name>_hero-brief.md` — the feature's folder (create it if needed; inside a bt-spec run it is the spec's own folder). The brief is the **record**, not a gate: the user never has to touch it, but `/bt-hero @<brief-file>` later must rebuild the same hero with zero questions — that is what makes a hero repeatable, shareable, and tweakable (edit a line, re-run). Record **only Tier 3 answers and explicit Tier 2 overrides** — never Tier 1 mechanics; the brief describes the film, not the engine.
70
70
 
71
71
  ```markdown
72
72
  ---