@babylonjs-toolkit/agent 1.1.85 → 1.1.88

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.
@@ -8,12 +8,19 @@
8
8
  *
9
9
  * node dashboard.mjs live <feature-folder> --task T19 --role implementer --activity "…" [--phase 7] [--step "…"]… [--reset] [--title "…"]
10
10
  * node dashboard.mjs task <feature-folder> <task-id> --set '{"status":"built","summary":"…"}' [--note "why an earlier result changed" --by T21]
11
+ * node dashboard.mjs snapshot <feature-folder> <T7|P2|plan> --src snapshots/T7-01-stage.png --caption "…" [--title "…"] [--source unity]
12
+ * (comparison: --before snapshots/a.png --after snapshots/b.png [--before-caption …] [--after-caption …];
13
+ * progression: --frame "snapshots/x.png|stage|caption" repeated)
11
14
  * node dashboard.mjs activity <feature-folder> "Phase 2 verified — T4–T6 PASS"
12
15
  * node dashboard.mjs status <feature-folder> in-progress|paused|complete|incomplete
13
16
  * node dashboard.mjs check <feature-folder>
14
17
  * node dashboard.mjs watch <feature-folder> [--watch <folder>]… [--interval-seconds 60] [--quiet-minutes 10] [--stall-minutes 30] [--max-hours 12]
15
18
  *
16
19
  * <feature-folder> is .agents/specs/<slug>. Timestamps come from this machine's local clock.
20
+ *
21
+ * Snapshots go in only through `snapshot`. `task --set` and `check` refuse any snapshot entry the page cannot show —
22
+ * an image under `path` (or `file`, `image`, …) instead of `src`, or a `src` that is not a file under the feature
23
+ * folder — because such an entry renders as "No snapshot".
17
24
  */
18
25
  import { existsSync, readFileSync, readdirSync, renameSync, statSync, writeFileSync } from 'node:fs';
19
26
  import { basename, join, relative } from 'node:path';
@@ -30,6 +37,17 @@ const TASK_LIST_FIELDS = ['files', 'decisions', 'snapshots', 'updates'];
30
37
  const TASK_OBJECT_FIELDS = ['tests', 'details'];
31
38
  /** Statuses that mean a task is being worked on right now. */
32
39
  const ACTIVE_TASK_STATUSES = new Set(['in-progress', 'built', 'verifying']);
40
+ /** Where a snapshot's image may come from. */
41
+ const SNAPSHOT_SOURCES = ['browser', 'unity', 'blender', 'reference'];
42
+ /** Keys agents reach for instead of `src`; the page reads none of them, so the image never shows. */
43
+ const WRONG_IMAGE_KEYS = ['path', 'file', 'image', 'url', 'href'];
44
+ /** The three snapshot shapes, quoted in every refusal so the writer can fix the entry in one go. */
45
+ const SNAPSHOT_SHAPES_HELP = [
46
+ 'still { "title", "caption", "source", "src": "snapshots/T3-01-stage.png", "updates": [] }',
47
+ 'comparison { "title", "caption", "source", "before": { "src", "caption" }, "after": { "src", "caption" }, "updates": [] }',
48
+ 'progression { "title", "caption", "source", "frames": [{ "src", "stage", "caption", "task", "at" }], "updates": [] }',
49
+ 'Easier: node dashboard.mjs snapshot <feature-folder> <T3|P1|plan> --src snapshots/… --caption "…" builds the entry for you.',
50
+ ].join('\n ');
33
51
 
34
52
  const [command, featureFolder, ...rest] = process.argv.slice(2);
35
53
 
@@ -67,6 +85,10 @@ function readData(path) {
67
85
  * @param {any} data The value to write.
68
86
  */
69
87
  function writeData(path, prefix, data) {
88
+ // Every dashboard write repairs snapshot entries first, so an image filed under `path` (or any key the page never
89
+ // reads) can never reach the page as "No snapshot", whoever wrote it.
90
+ if (data && Array.isArray(data.phases)) repairSnapshots(data);
91
+ if (data && Array.isArray(data.decisions)) repairDecisions(data);
70
92
  const temporaryPath = `${path}.${process.pid}.tmp`;
71
93
  writeFileSync(temporaryPath, `${prefix} = ${JSON.stringify(data, null, 2)};\n`, 'utf8');
72
94
  renameSync(temporaryPath, path);
@@ -163,6 +185,12 @@ function writeTask(folder, argumentList) {
163
185
  if (!task) throw new Error(`task ${taskId} is not in ${dashboardPath} — sync the dashboard with the plan first`);
164
186
  const changes = JSON.parse(options.set);
165
187
  checkTaskShape(changes);
188
+ if (Array.isArray(changes.snapshots)) {
189
+ const repairs = repairSnapshotList(changes.snapshots, `${taskId}.snapshots`);
190
+ repairs.forEach((repair) => console.log(`repaired ${repair}`));
191
+ const problems = changes.snapshots.flatMap((snapshot, index) => snapshotProblems(folder, snapshot, `${taskId}.snapshots[${index}]`));
192
+ if (problems.length) throw new Error(snapshotRefusal(problems));
193
+ }
166
194
  Object.assign(task, changes);
167
195
  const now = localTime();
168
196
  if (typeof options.note === 'string') {
@@ -188,6 +216,238 @@ function checkTaskShape(changes) {
188
216
  }
189
217
  }
190
218
 
219
+ /**
220
+ * Lists what is wrong with one snapshot entry: an unknown shape, an image under a key the page never reads
221
+ * (`path` instead of `src` — the page then shows "No snapshot"), or an image file that is not on disk.
222
+ * @param {string} folder The feature folder; `src` paths are relative to it.
223
+ * @param {any} snapshot The entry.
224
+ * @param {string} where Where the entry sits, for the message, e.g. `T3.snapshots[0]`.
225
+ * @returns {string[]} One line per problem; empty when the entry renders.
226
+ */
227
+ function snapshotProblems(folder, snapshot, where) {
228
+ if (!snapshot || typeof snapshot !== 'object' || Array.isArray(snapshot)) return [`${where} is not an object`];
229
+ const problems = [];
230
+ const checkImage = (image, imageWhere) => {
231
+ if (!image || typeof image !== 'object') {
232
+ problems.push(`${imageWhere} is missing`);
233
+ return;
234
+ }
235
+ const wrongKey = WRONG_IMAGE_KEYS.find((key) => key in image);
236
+ if (wrongKey) problems.push(`${imageWhere} has "${wrongKey}" — the page reads only "src"; rename it`);
237
+ if (typeof image.src !== 'string' || !image.src) {
238
+ if (!wrongKey) problems.push(`${imageWhere} has no "src"`);
239
+ return;
240
+ }
241
+ if (/^[a-z]+:/i.test(image.src)) return;
242
+ if (!existsSync(join(folder, image.src))) problems.push(`${imageWhere}.src "${image.src}" is not a file under ${folder}`);
243
+ };
244
+ if (Array.isArray(snapshot.frames)) {
245
+ if (!snapshot.frames.length) problems.push(`${where}.frames is empty`);
246
+ snapshot.frames.forEach((frame, index) => checkImage(frame, `${where}.frames[${index}]`));
247
+ } else if (snapshot.before !== undefined || snapshot.after !== undefined) {
248
+ checkImage(snapshot.before, `${where}.before`);
249
+ checkImage(snapshot.after, `${where}.after`);
250
+ } else {
251
+ checkImage(snapshot, where);
252
+ }
253
+ if (snapshot.source !== undefined && !SNAPSHOT_SOURCES.includes(snapshot.source)) {
254
+ problems.push(`${where}.source "${snapshot.source}" must be one of ${SNAPSHOT_SOURCES.join(', ')}`);
255
+ }
256
+ if (snapshot.updates !== undefined && !Array.isArray(snapshot.updates)) problems.push(`${where}.updates must be a list`);
257
+ return problems;
258
+ }
259
+
260
+ /**
261
+ * Builds the refusal message for bad snapshot entries, quoting the shapes the page renders.
262
+ * @param {string[]} problems What is wrong, one line each.
263
+ * @returns {string}
264
+ */
265
+ function snapshotRefusal(problems) {
266
+ return `refused — these snapshots would show "No snapshot" on the page:\n ${problems.join('\n ')}\nThe shapes:\n ${SNAPSHOT_SHAPES_HELP}`;
267
+ }
268
+
269
+ /**
270
+ * Finds the snapshot list a target names: a task (`T3`, `T12.2`), a phase (`P2`) or the plan-wide After Action
271
+ * Report (`plan`).
272
+ * @param {any} dashboard The dashboard data.
273
+ * @param {string} target The target.
274
+ * @returns {any[]} The live list inside `dashboard`, created when it was missing.
275
+ */
276
+ function snapshotListFor(dashboard, target) {
277
+ if (target === 'plan') {
278
+ dashboard.afterAction = dashboard.afterAction && typeof dashboard.afterAction === 'object' ? dashboard.afterAction : {};
279
+ if (!Array.isArray(dashboard.afterAction.snapshots)) dashboard.afterAction.snapshots = [];
280
+ return dashboard.afterAction.snapshots;
281
+ }
282
+ const phaseMatch = /^P(\d+)$/i.exec(target);
283
+ const owner = phaseMatch
284
+ ? (dashboard.phases || []).find((phase) => phase.number === Number(phaseMatch[1]))
285
+ : findTask(dashboard, target);
286
+ if (!owner) throw new Error(`no ${phaseMatch ? 'phase' : 'task'} "${target}" in the dashboard — sync it with the plan first`);
287
+ if (!Array.isArray(owner.snapshots)) owner.snapshots = [];
288
+ return owner.snapshots;
289
+ }
290
+
291
+ /**
292
+ * Appends one snapshot — a still (`--src`), a comparison (`--before` and `--after`) or a progression (`--frame`,
293
+ * repeated, each `src|stage|caption`) — to a task, a phase or the plan, building the shape the page renders and
294
+ * refusing an image that is not on disk. This is the way to add snapshots: nobody writes snapshot JSON by hand.
295
+ * @param {string} folder The feature folder.
296
+ * @param {string[]} argumentList The target and options.
297
+ */
298
+ function writeSnapshot(folder, argumentList) {
299
+ const { options, positional } = parseOptions(argumentList, ['frame']);
300
+ const [target] = positional;
301
+ const usage = 'usage: snapshot <feature-folder> <T3|P1|plan> (--src snapshots/x.png | --before snapshots/a.png --after snapshots/b.png | --frame "snapshots/x.png|stage|caption"…) --caption "…" [--title "…"] [--source browser|unity|blender|reference] [--before-caption "…"] [--after-caption "…"] [--task T3]';
302
+ if (!target) throw new Error(usage);
303
+ const caption = typeof options.caption === 'string' ? options.caption : '';
304
+ const snapshot = { title: typeof options.title === 'string' ? options.title : caption, caption, source: typeof options.source === 'string' ? options.source : 'browser' };
305
+ if (typeof options.src === 'string') {
306
+ snapshot.src = options.src;
307
+ } else if (typeof options.before === 'string' && typeof options.after === 'string') {
308
+ snapshot.before = { src: options.before, caption: typeof options['before-caption'] === 'string' ? options['before-caption'] : 'Before' };
309
+ snapshot.after = { src: options.after, caption: typeof options['after-caption'] === 'string' ? options['after-caption'] : 'After' };
310
+ } else if (options.frame.length) {
311
+ const now = localTime();
312
+ snapshot.frames = options.frame.map((frame) => {
313
+ const [src, stage = '', frameCaption = ''] = String(frame).split('|');
314
+ return { src, stage, caption: frameCaption, task: typeof options.task === 'string' ? options.task : target, at: now.clock };
315
+ });
316
+ } else {
317
+ throw new Error(usage);
318
+ }
319
+ snapshot.updates = [];
320
+ const problems = snapshotProblems(folder, snapshot, target);
321
+ if (problems.length) throw new Error(snapshotRefusal(problems));
322
+ const { dashboardPath } = dataPaths(folder);
323
+ const { prefix, data } = readData(dashboardPath);
324
+ snapshotListFor(data, target).push(snapshot);
325
+ data.updatedAt = localTime().stamp;
326
+ writeData(dashboardPath, prefix, data);
327
+ }
328
+
329
+ /**
330
+ * Moves an image filed under a key the page never reads (`path`, `file`, `image`, `url`, `href`) to `src`.
331
+ * @param {any} image A still, or a comparison's `before` / `after`, or a progression frame.
332
+ * @param {string} where Where the image sits, for the repair report.
333
+ * @returns {string[]} One line per repair made.
334
+ */
335
+ function repairImage(image, where) {
336
+ if (!image || typeof image !== 'object' || Array.isArray(image)) return [];
337
+ const wrongKey = WRONG_IMAGE_KEYS.find((key) => typeof image[key] === 'string' && image[key]);
338
+ if (!wrongKey) return [];
339
+ if (typeof image.src !== 'string' || !image.src) image.src = image[wrongKey];
340
+ WRONG_IMAGE_KEYS.forEach((key) => delete image[key]);
341
+ return [`${where}: "${wrongKey}" → "src"`];
342
+ }
343
+
344
+ /**
345
+ * Repairs every entry of one snapshot list in place, so each renders an image: a bare path string becomes a still,
346
+ * an image under a wrong key moves to `src`, and an unknown `source` becomes `browser`.
347
+ * @param {any[]} list The snapshot list.
348
+ * @param {string} owner Where the list sits, e.g. `T3.snapshots`.
349
+ * @returns {string[]} One line per repair made.
350
+ */
351
+ function repairSnapshotList(list, owner) {
352
+ const repairs = [];
353
+ list.forEach((snapshot, index) => {
354
+ const where = `${owner}[${index}]`;
355
+ if (typeof snapshot === 'string' && snapshot) {
356
+ list[index] = { title: '', caption: '', source: 'browser', src: snapshot, updates: [] };
357
+ repairs.push(`${where}: a bare path → a still`);
358
+ return;
359
+ }
360
+ repairs.push(...repairSnapshot(snapshot, where));
361
+ });
362
+ return repairs;
363
+ }
364
+
365
+ /**
366
+ * Repairs one snapshot entry in place (see `repairSnapshotList`).
367
+ * @param {any} snapshot A still, comparison or progression.
368
+ * @param {string} where Where it sits.
369
+ * @returns {string[]} One line per repair made.
370
+ */
371
+ function repairSnapshot(snapshot, where) {
372
+ if (!snapshot || typeof snapshot !== 'object' || Array.isArray(snapshot)) return [];
373
+ const repairs = [];
374
+ if (Array.isArray(snapshot.frames)) {
375
+ snapshot.frames.forEach((frame, index) => repairs.push(...repairImage(frame, `${where}.frames[${index}]`)));
376
+ } else if (snapshot.before !== undefined || snapshot.after !== undefined) {
377
+ repairs.push(...repairImage(snapshot.before, `${where}.before`), ...repairImage(snapshot.after, `${where}.after`));
378
+ } else {
379
+ repairs.push(...repairImage(snapshot, where));
380
+ }
381
+ if (snapshot.source !== undefined && !SNAPSHOT_SOURCES.includes(snapshot.source)) {
382
+ repairs.push(`${where}.source "${snapshot.source}" → "browser"`);
383
+ snapshot.source = 'browser';
384
+ }
385
+ return repairs;
386
+ }
387
+
388
+ /**
389
+ * Repairs every snapshot in the dashboard in place: the After Action Report's list and comparison, each phase's and
390
+ * each task's list.
391
+ * @param {any} dashboard The dashboard data.
392
+ * @returns {string[]} One line per repair made.
393
+ */
394
+ function repairSnapshots(dashboard) {
395
+ const repairs = [];
396
+ const repairList = (list, owner) => {
397
+ if (Array.isArray(list)) repairs.push(...repairSnapshotList(list, owner));
398
+ };
399
+ if (dashboard.afterAction && typeof dashboard.afterAction === 'object') {
400
+ repairList(dashboard.afterAction.snapshots, 'afterAction.snapshots');
401
+ repairs.push(...repairSnapshot(dashboard.afterAction.comparison, 'afterAction.comparison'));
402
+ }
403
+ for (const phase of dashboard.phases || []) {
404
+ repairList(phase.snapshots, `P${phase.number}.snapshots`);
405
+ for (const task of phase.tasks || []) repairList(task.snapshots, `${task.id}.snapshots`);
406
+ }
407
+ return repairs;
408
+ }
409
+
410
+ /**
411
+ * Repairs the plan-level decisions in place: a decision written as plain text (`"D3 — The filter is …"`) renders as
412
+ * an empty row, so it becomes `{ "id": "D3", "text": "The filter is …", "updates": [] }`. A leading parenthesis after
413
+ * the id (`"D9 (confirmed by the user) — …"`) stays in the text; text with no leading id keeps an empty id.
414
+ * @param {any} dashboard The dashboard data.
415
+ * @returns {string[]} One line per repair made.
416
+ */
417
+ function repairDecisions(dashboard) {
418
+ const repairs = [];
419
+ if (!Array.isArray(dashboard.decisions)) return repairs;
420
+ dashboard.decisions = dashboard.decisions.map((decision, index) => {
421
+ if (typeof decision !== 'string') return decision;
422
+ const match = decision.match(/^([A-Z]+\d+[a-z]?)(\s*\([^)]*\))?\s+[—–-]\s+([\s\S]*)$/);
423
+ const id = match ? match[1] : '';
424
+ const text = match ? `${match[2] ? `${match[2].trim()} ` : ''}${match[3]}` : decision;
425
+ repairs.push(`decisions[${index}]: plain text → { "id": "${id}", "text" }`);
426
+ return { id, text, updates: [] };
427
+ });
428
+ return repairs;
429
+ }
430
+
431
+ /**
432
+ * Every snapshot entry in the dashboard with where it sits: the After Action Report, each phase and each task.
433
+ * @param {any} dashboard The dashboard data.
434
+ * @returns {{ snapshot: any, where: string }[]}
435
+ */
436
+ function allSnapshots(dashboard) {
437
+ const entries = [];
438
+ const collect = (list, owner) => (Array.isArray(list) ? list : []).forEach((snapshot, index) => entries.push({ snapshot, where: `${owner}.snapshots[${index}]` }));
439
+ if (dashboard.afterAction) {
440
+ collect(dashboard.afterAction.snapshots, 'afterAction');
441
+ const comparison = dashboard.afterAction.comparison;
442
+ if (comparison) entries.push({ snapshot: comparison, where: 'afterAction.comparison' });
443
+ }
444
+ for (const phase of dashboard.phases || []) {
445
+ collect(phase.snapshots, `P${phase.number}`);
446
+ for (const task of phase.tasks || []) collect(task.snapshots, task.id);
447
+ }
448
+ return entries;
449
+ }
450
+
191
451
  /**
192
452
  * Appends one milestone to the activity log.
193
453
  * @param {string} folder The feature folder.
@@ -222,14 +482,28 @@ function writeStatus(folder, argumentList) {
222
482
  }
223
483
 
224
484
  /**
225
- * Confirms both data files parse.
485
+ * Confirms both data files parse and every snapshot entry will show its image; fails listing each one that would
486
+ * show "No snapshot".
226
487
  * @param {string} folder The feature folder.
488
+ * @throws {Error} When a file does not parse or a snapshot entry is broken.
227
489
  */
228
490
  function checkData(folder) {
229
491
  const { dashboardPath, livePath } = dataPaths(folder);
230
- readData(dashboardPath);
492
+ const { prefix, data } = readData(dashboardPath);
231
493
  if (existsSync(livePath)) readData(livePath);
232
- console.log(`ok: ${dashboardPath}${existsSync(livePath) ? ` and ${livePath}` : ''} parse`);
494
+ const repairs = repairSnapshots(data);
495
+ const decisionRepairs = repairDecisions(data);
496
+ if (repairs.length || decisionRepairs.length) writeData(dashboardPath, prefix, data);
497
+ if (repairs.length) {
498
+ console.log(`repaired ${repairs.length} snapshot entr${repairs.length === 1 ? 'y' : 'ies'} the page could not show:\n ${repairs.join('\n ')}`);
499
+ }
500
+ if (decisionRepairs.length) {
501
+ console.log(`repaired ${decisionRepairs.length} decision${decisionRepairs.length === 1 ? '' : 's'} written as plain text:\n ${decisionRepairs.join('\n ')}`);
502
+ }
503
+ const snapshots = allSnapshots(data);
504
+ const problems = snapshots.flatMap(({ snapshot, where }) => snapshotProblems(folder, snapshot, where));
505
+ if (problems.length) throw new Error(snapshotRefusal(problems));
506
+ console.log(`ok: ${dashboardPath}${existsSync(livePath) ? ` and ${livePath}` : ''} parse; ${snapshots.length} snapshot entries all show an image`);
233
507
  }
234
508
 
235
509
  /**
@@ -316,6 +590,7 @@ async function watch(folder, argumentList) {
316
590
  console.log(`watchdog: dashboard status is "${dashboard.status}" — the run is over, exiting`);
317
591
  return;
318
592
  }
593
+ if (dashboard) repairWrittenSnapshots(dashboardPath);
319
594
  if (dashboard && existsSync(livePath)) {
320
595
  try {
321
596
  checkLive(dashboard, livePath, roots, projectRoot, quietMinutes, stallMinutes);
@@ -327,6 +602,23 @@ async function watch(folder, argumentList) {
327
602
  }
328
603
  }
329
604
 
605
+ /**
606
+ * Watchdog repair: a snapshot or decision an agent wrote around the helper (a hand edit, its own script) is repaired
607
+ * within a minute, re-read just before the write so nothing the agent wrote meanwhile is lost.
608
+ * @param {string} dashboardPath The dashboard data file.
609
+ */
610
+ function repairWrittenSnapshots(dashboardPath) {
611
+ try {
612
+ const { prefix, data } = readData(dashboardPath);
613
+ const repairs = [...repairSnapshots(data), ...repairDecisions(data)];
614
+ if (!repairs.length) return;
615
+ writeData(dashboardPath, prefix, data);
616
+ console.log(`watchdog: repaired ${repairs.length} entr${repairs.length === 1 ? 'y' : 'ies'} — ${repairs.join('; ')}`);
617
+ } catch (error) {
618
+ console.log(`watchdog: snapshot repair skipped a round — ${error.message}`);
619
+ }
620
+ }
621
+
330
622
  /**
331
623
  * One watchdog round (see `watch`).
332
624
  * @param {any} dashboard The dashboard data.
@@ -383,10 +675,10 @@ function checkLive(dashboard, livePath, roots, projectRoot, quietMinutes, stallM
383
675
  console.log(`watchdog ${clock}: ${activity}`);
384
676
  }
385
677
 
386
- const commands = { live: writeLive, task: writeTask, activity: writeActivity, status: writeStatus, check: checkData, watch };
678
+ const commands = { live: writeLive, task: writeTask, snapshot: writeSnapshot, activity: writeActivity, status: writeStatus, check: checkData, watch };
387
679
 
388
680
  if (!commands[command] || !featureFolder) {
389
- console.error('usage: node dashboard.mjs <live|task|activity|status|check|watch> <feature-folder> [options] — see the header of this file');
681
+ console.error('usage: node dashboard.mjs <live|task|snapshot|activity|status|check|watch> <feature-folder> [options] — see the header of this file');
390
682
  process.exit(2);
391
683
  }
392
684
  try {
@@ -1725,11 +1725,37 @@
1725
1725
  if (typeof value === 'string' && value) return [{ note: value }];
1726
1726
  return asList(value).map((update) => (typeof update === 'string' ? { note: update } : update)).filter((update) => update && typeof update === 'object');
1727
1727
  };
1728
+ // An image written under `path` (or `file`, `image`, `url`) instead of `src` would show "No snapshot": read it
1729
+ // from there and say so in the console, so the slip shows its picture and still gets fixed at the source.
1730
+ const imageKeys = ['path', 'file', 'image', 'url'];
1731
+ const repairImage = (image) => {
1732
+ if (!image || typeof image !== 'object' || image.src) return image;
1733
+ const wrongKey = imageKeys.find((key) => typeof image[key] === 'string' && image[key]);
1734
+ if (wrongKey) {
1735
+ console.warn(`Dashboard: a snapshot has its image under "${wrongKey}" instead of "src" (${image[wrongKey]}) — write snapshots with dashboard.mjs snapshot.`);
1736
+ image.src = image[wrongKey];
1737
+ }
1738
+ return image;
1739
+ };
1728
1740
  const repairSnapshots = (snapshots) => asList(snapshots)
1729
1741
  .filter((snapshot) => snapshot && typeof snapshot === 'object')
1730
- .map((snapshot) => Object.assign(snapshot, { updates: asUpdates(snapshot.updates) }, snapshot.frames !== undefined ? { frames: asList(snapshot.frames) } : {}));
1742
+ .map((snapshot) => {
1743
+ repairImage(snapshot);
1744
+ repairImage(snapshot.before);
1745
+ repairImage(snapshot.after);
1746
+ return Object.assign(snapshot, { updates: asUpdates(snapshot.updates) }, snapshot.frames !== undefined ? { frames: asList(snapshot.frames).map(repairImage) } : {});
1747
+ });
1731
1748
  data.phases = asList(data.phases);
1732
- data.decisions = asList(data.decisions).map((decision) => Object.assign(decision, { updates: asUpdates(decision.updates) }));
1749
+ // A decision written as plain text ("D3 — …") would render as an empty row: split off its id and show the text.
1750
+ const asDecision = (decision) => {
1751
+ if (typeof decision !== 'string') return decision;
1752
+ const match = decision.match(/^([A-Z]+\d+[a-z]?)(\s*\([^)]*\))?\s+[—–-]\s+([\s\S]*)$/);
1753
+ if (!match) return { id: '', text: decision };
1754
+ return { id: match[1], text: `${match[2] ? `${match[2].trim()} ` : ''}${match[3]}` };
1755
+ };
1756
+ data.decisions = asList(data.decisions).map(asDecision)
1757
+ .filter((decision) => decision && typeof decision === 'object')
1758
+ .map((decision) => Object.assign(decision, { updates: asUpdates(decision.updates) }));
1733
1759
  data.followUps = asList(data.followUps);
1734
1760
  data.activity = asList(data.activity);
1735
1761
  if (data.afterAction && typeof data.afterAction === 'object') {
@@ -100,7 +100,7 @@ Top level:
100
100
  | `runs` | number of bt-execute runs so far |
101
101
  | `afterAction` | the After Action Report (below) |
102
102
  | `phases` | the plan's phases, each with its tasks (below) |
103
- | `decisions` | `[{ "id": "D1" \| "T7", "text", "source", "updates" }]` |
103
+ | `decisions` | `[{ "id": "D1" \| "T7", "text", "source", "updates" }]` — objects, never plain `"D1 — …"` strings (the page and `check` repair one, but it is a slip) |
104
104
  | `followUps` | plain strings — what a human should look at next |
105
105
  | `activity` | `[{ "at", "text" }]`, oldest first — the milestones (the page shows newest first) |
106
106
 
@@ -178,6 +178,8 @@ Each task:
178
178
 
179
179
  ## Snapshot shapes
180
180
 
181
+ **Add snapshots with `node <skills>/bt-execute/scripts/dashboard.mjs snapshot <feature-folder> <T3|P1|plan> --src snapshots/… --caption "…"`** (`--before`/`--after` for a comparison, `--frame "src|stage|caption"` repeated for a progression) — never by writing the JSON yourself. The image key is **`src`**, relative to the feature folder; an entry with `path` (or `file`, `image`, `url`, `href`) instead would render as "No snapshot", so every helper write repairs it to `src` (and an unknown `source` to `"browser"`), `check` repairs any already in the file, the watchdog repairs one written around the helper within a minute, and the page reads those keys too. An image that is not on disk is refused — `check` fails on it. **The snapshots are the chronicle of the build: `check` passing is part of every phase commit and of run end.**
182
+
181
183
  Any list of snapshots may mix them. `source` names where the image came from: `"browser"`, `"unity"`,
182
184
  `"blender"`, `"reference"`.
183
185
 
@@ -101,7 +101,7 @@ threshold AND every gate passes.**
101
101
  | **Console** | any error in the browser console (warnings are reported, not fatal, unless the card says otherwise) |
102
102
  | **Component authority** | a protected `TOOLKIT.*` component was reimplemented, bypassed or deleted without the full replacement-evidence checklist in the round journal |
103
103
  | **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 |
104
- | **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. Quote the offending lines |
104
+ | **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 |
105
105
  | **Camera lock** | the evidence was not captured from the transform recorded in `cameras.md` |
106
106
  | **Pipeline gate** | whatever the deliverable kind's pipeline reference declares (export-boundary integrity, GUID survival, licence tier …) |
107
107
 
@@ -51,7 +51,9 @@ idiom bt-prototype uses with bt-hero — **pre-resolve everything at spec time s
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
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
+ evidence frames, round by round, into the feature's `snapshots/` and adds them to the feature dashboard as a
55
+ progression only through `node <skills>/bt-execute/scripts/dashboard.mjs snapshot <feature-folder> T<n> --frame "snapshots/…|<stage>|<caption>"`
56
+ (repeated per frame), then runs `dashboard.mjs check <feature-folder>` — never by writing snapshot JSON.
55
57
 
56
58
  bt-gauntlet never orchestrates bt-spec itself — composition is always initiated from the spec side.
57
59
 
@@ -139,7 +139,7 @@ Show the filled brief as a **compact for-the-record report** — which slots cam
139
139
  Then build by following bt-design's 3D-Hero-Scroll protocol end-to-end:
140
140
 
141
141
  1. **Load the sibling bt-design skill, then read its `references/3d-hero-scroll.md` in full — before writing any code.** Two hosts, two mechanisms. Where skills are loaded with a tool (the Babylon Toolkit App Builder platform): call `load_skill('bt-design')`, then fetch the reference with `read_skill_resource` using a path from the resource list the load returns — never a guessed path. Where skills are files on disk (Claude Code): read `bt-design/references/3d-hero-scroll.md` from the same skills directory, `~/.claude/skills/` or the project's `.claude/skills/`. If bt-design is already in your context, skip the load and go straight to the reference. For Babylon Toolkit projects, the project's Agent Reference rule applies as usual (fetch it first if not already in context; if using the KIE MCP servers, its `web-kie-servers.md` sub-document too).
142
- 2. **Copy the drop-in templates** from `bt-design/templates/3d-hero-scroll/` for the host type (React/TS or plain HTML) — never re-implement the engine from memory.
142
+ 2. **Copy the drop-in templates** from `bt-design/templates/3d-hero-scroll/` for the host type (React/TS or plain HTML) — never re-implement the engine from memory. The engine already follows the Agent Reference's **Game UI Performance — ENFORCED** (its frame loop writes nothing at rest, reads layout only on resize, writes the HUD only on change); anything you add around it — overlays, below-the-journey sections, the console home — keeps that: decorative motion in CSS, no extra frame loop.
143
143
  3. Run the footage pipeline (anchor → chained beats → concat → scrub encode), wire-up, and calibration exactly as the reference specifies, configured from the brief's slots.
144
144
  4. **Run the reference's verification protocol (§5) in a real browser. This is unconditional** — the hero is not done until it passes; never report done without it.
145
145
  5. If the project keeps a `SPEC.md`, record the shipped hero per the project's working agreement.
@@ -73,7 +73,7 @@ Rewrite BOTH files COMPLETELY, as a landing page designed from scratch for this
73
73
  - SELF-CHECK before finishing: re-read your Home.css — any structural container with `max-width` + auto margins means the task is failed; fix it first. At 1920px there must be NO empty margin strip on either side of the hero.
74
74
  - Responsive from ~320px to ~2560px, no horizontal scrollbar at any width, nothing clipped or overlapping.
75
75
 
76
- Design to the bt-design skill's standards — the ones you loaded in the Prerequisite — **through the lens `DESIGN.md` commits to (Step 1)**: full-bleed console UI, the file's palette and typography, real motion in the file's motion language. `src/pages/` and `src/components/` stay Babylon-free — never import `GameManager` or any Babylon module there; navigation goes through `useUnifiedNavigation`.
76
+ Design to the bt-design skill's standards — the ones you loaded in the Prerequisite — **through the lens `DESIGN.md` commits to (Step 1)**: full-bleed console UI, the file's palette and typography, real motion in the file's motion language. **That motion is CSS** — `@keyframes` and `transition` on `transform` and `opacity` — and the landing page runs **no frame loop** (`requestAnimationFrame`, `useFrameLoop`, `setInterval`, animation-library ticks). The one exception is a real-time 3D, canvas or scroll-scrubbed hero: it pauses when scrolled out of view (`IntersectionObserver`) and in a background tab (`visibilitychange`), writes nothing while the scroll is at rest, and honors `prefers-reduced-motion` (see *UI performance* in Step 3). `src/pages/` and `src/components/` stay Babylon-free — never import `GameManager` or any Babylon module there; navigation goes through `useUnifiedNavigation`.
77
77
 
78
78
  # Step 3 — the chrome (`src/chrome/**`): splash, preloader, overlay — ALL THREE, one theme
79
79
 
@@ -113,6 +113,13 @@ Any redesign of the splash MUST keep every one of these elements present with it
113
113
 
114
114
  The Layout law from Step 2 binds these surfaces too — full-bleed, responsive, edge-to-edge.
115
115
 
116
+ **UI PERFORMANCE — when to update per frame and when NOT to (ENFORCED, every surface).** Follow the Agent Reference's **Game UI Performance — ENFORCED** and `ui-design-system.md` › **Live HUD Values — ENFORCED** and **Per frame or not**. A beautiful frontend that janks the game, or slows the load it is covering, is not finished. Give every element the cheapest cadence that shows it correctly:
117
+
118
+ - **Splash and preloader — no frame loop.** All atmosphere (particles, parallax, scanlines, pulses, a gauge sweeping, tiles assembling) is CSS `@keyframes` / `transition` on `transform` and `opacity`: the compositor keeps it playing while the scene build holds the main thread, where a JavaScript-driven animation stutters and steals time from the load. Progress is an **event**: keep it in state as the whole percent shown, so React skips identical updates (the download fires many a second), and draw bars with `scaleX` (`transform-origin: left`), never `width`. Your metaphor may be *driven by* progress — write it on the progress event, not every frame.
119
+ - **Overlay / HUD — classify every value.** *State* (score, lap, gear, position, health after a hit, which menu is open) is React state set from an EventBus message, only when it changed. *Telemetry* (speed, RPM, needles, timers, bars, markers) **never** touches React state, props, context, a store or a per-frame EventBus message: the HUD renders once and **one** `useFrameLoop` writes it through refs, only when the shown value changes (`textContent`, `transform`, `scaleX`, `stroke-dashoffset`, `opacity`; never `width` / `height` / `top` / `left` / `innerHTML` / SVG geometry, never a layout read). Readouts nobody reads at 60 Hz (FPS, distance, standings) are throttled to a few hertz in that same loop. A property the loop writes carries no CSS `transition`.
120
+ - **Nothing updates while it is not on screen.** The HUD is unmounted (or its loop skips) behind a pause, settings or results modal and while the game is paused. Menus, pause / settings / results screens and the landing page run no frame loop at all — their motion is CSS.
121
+ - **The redesign's initial overlay is usually all static and state** (a brand corner, a frame, a pause button). It needs no frame loop until a live value arrives; do not add one "for later".
122
+
116
123
  # Step 4 — bespoke art (when media generation is available)
117
124
 
118
125
  If the platform's `generate_image` / `generate_video` tools are available on this turn, use them to make the design beautiful: a hero background, a logo/wordmark, splash-adjacent accents (16:9 for wide heroes, 1:1 for badges/logos; png when alpha matters). Make ALL generate calls FIRST, in ONE parallel round, before writing any files; reference the returned `/assets/generated/…` paths exactly as returned (the one exception to never-invent-an-asset-path) — the renders land in the background, so every surface must look finished while they do (styled color/gradient fallback behind each image, never a blank box). At most ONE short looping hero video, and only if it truly elevates the design — video costs the user hundreds of credits. If the tools are absent, design with CSS + the images on disk instead.
@@ -127,6 +134,7 @@ Generated art goes on the LANDING PAGE — never on the splash/preloader (Step 3
127
134
  - No Toolkit/BabylonJS/engine branding anywhere in the user-facing design.
128
135
  - The play contract fires with the project's REAL GameMode class.
129
136
  - All four surfaces read as one designed product, not four separate efforts.
137
+ - **UI performance holds (Step 3, ENFORCED):** grep `src/pages/Home.tsx`, `src/chrome/loading.tsx`, `splash.tsx` and `overlay.tsx` for `requestAnimationFrame`, `useFrameLoop`, `setInterval` and animation-library ticks — on the landing page, splash and preloader any hit is a violation (move the motion to CSS), except a real-time hero that pauses off-screen and at rest. In the overlay, any state setter, `dispatch(`, store update or unguarded `EventBus.PostMessage(` inside a frame loop is a violation. Grep the CSS and inline styles for `width` / `height` / `top` / `left` animated or written for progress or telemetry — use `scaleX` / `transform` instead.
130
138
  - The splash shows some kind of progress — in its own form and words — that keeps moving through every loading stage (download, building and setting up the scene, assets, shaders) and never looks stuck on a finished bar; its progress wiring is carried over from the file it replaced.
131
139
  - `DESIGN.md` records the direction that actually shipped — freshly written if it was missing/placeholder, rewritten if the brief redirected it, untouched if this run honored it as-is. A shipped design the file does not describe is a failed Step 1.
132
140
 
@@ -52,7 +52,7 @@ Execution time is mostly *how the work is proven*, not the code. Keep proof stro
52
52
  7. **Minimal exports.** A task's Steps re-export only the Unity project the task tests and only the scenes it works on, and only when the change alters that scene's export. Never write "re-export every scene" or "re-export all projects" for consistency — other scenes pick the change up at their next natural export. Name the scenes explicitly.
53
53
  8. **No ceremony.** No standalone "verification sweep / open the review / final check" tasks, and no ledgers, md5 or environment records, archives, checked-in capture trees, standing evidence suites, doc-integrity registration or staged promotions — unless the brief asks.
54
54
  9. **No brittle pins.** Never pin counts later tasks will change (tests passed, suite sizes, hashes). Say "the named tests pass, no new failures versus the baseline".
55
- 10. **Plan code follows the Agent Reference's Coding Practices — ENFORCED.** Every snippet, signature, interface, class, method, property, variable, constant and file name the plan writes or decides is clean, professional TypeScript or JavaScript in the language the project uses (never switched unasked), with meaningful full-word names (never one- or two-letter names, cryptic abbreviations or code-golf tricks), well structured, readable and maintainable by human developers, and carries meaningful JSDoc on every class, function, method, interface and public member it defines. JSDoc is always written but never a gate: never write an Acceptance item, Test or Verify step that fails on missing JSDoc. The executor copies plan code word for word, so a badly named snippet ships badly named. Names that bind to exported data (component properties, serialized fields, Unity property names) keep the source's names. Plan UI code also follows **Game UI Performance — ENFORCED**: every HUD value the plan introduces is classified as *state* (React, set on events) or *telemetry* (refs and one frame loop, never React state or a per-frame EventBus message), and the plan's snippets show telemetry that way. Code-quality checks are never a separate task; bt-execute's verifier enforces them on every task.
55
+ 10. **Plan code follows the Agent Reference's Coding Practices — ENFORCED.** Every snippet, signature, interface, class, method, property, variable, constant and file name the plan writes or decides is clean, professional TypeScript or JavaScript in the language the project uses (never switched unasked), with meaningful full-word names (never one- or two-letter names, cryptic abbreviations or code-golf tricks), well structured, readable and maintainable by human developers, and carries meaningful JSDoc on every class, function, method, interface and public member it defines. JSDoc is always written but never a gate: never write an Acceptance item, Test or Verify step that fails on missing JSDoc. The executor copies plan code word for word, so a badly named snippet ships badly named. Names that bind to exported data (component properties, serialized fields, Unity property names) keep the source's names. Plan UI code also follows **Game UI Performance — ENFORCED**: every HUD value the plan introduces is classified as *state* (React, set on events) or *telemetry* (refs and one frame loop, never React state or a per-frame EventBus message), and the plan's snippets show telemetry that way. Every UI element also gets the cheapest cadence in `ui-design-system.md` › **Per frame or not** — events for state, CSS for decorative motion, the frame loop only for telemetry, throttled readouts, nothing while hidden — and no plan snippet puts a frame loop on a menu, splash, preloader or landing page (a real-time hero excepted, paused off-screen and at rest). Code-quality checks are never a separate task; bt-execute's verifier enforces them on every task.
56
56
 
57
57
  ## Step 3. Write the plan
58
58
 
@@ -97,7 +97,7 @@ Rate each task by the **kind of work it does** (classify tasks, not the plan —
97
97
  - **Live or Game?** Loading a scene and reading values from it is Live. Playing it until something happens is Game. Game work ran 1.2–2.8× its estimate when it was rated Live, because every scenario is a real-time play session and a bug that only shows on lap three costs three laps each time it is checked.
98
98
  - **Do not budget fix rounds.** They are inside the rates: about one task in four needed a second attempt in both calibrations, and every one of those is already in the numbers. Defensively budgeting rounds per phase was the single largest source of over-estimation in the first calibration.
99
99
  - **Do not add a further margin.** The range is the margin. Do not discount for parallel phases either — the rates are wall-clock with bt-execute's usual parallelism.
100
- - **Outsized work is 2× the task's own kind rate**, never a flat figure. A task that ports a whole engine subsystem rated as Code is 12 min, not the Unity rate doubled (fusion-networking rated its nine engine-scale code tasks at a flat 72 min each, estimated 15.7 h and ran 6.4 h). A task that builds a compiler or transpiler, or must prove coverage across many Unity sample projects, is 2× Unity (shadergraph-transpiler-complete-coverage: 72 min/task). Multiply by ~2 for `proof: parity` only if the plan really carries numeric gates, and by ~2–3 for `bt-execute --strict` (neither measured yet).
100
+ - **Outsized work is 2× the task's own kind rate**, never a flat figure. A task that ports a whole engine subsystem rated as Code is 12 min, not the Unity rate doubled (babylon-toolkit-networking rated its nine engine-scale code tasks at a flat 72 min each, estimated 15.7 h and ran 6.4 h). A task that builds a compiler or transpiler, or must prove coverage across many Unity sample projects, is 2× Unity (shadergraph-transpiler-complete-coverage: 72 min/task). Multiply by ~2 for `proof: parity` only if the plan really carries numeric gates, and by ~2–3 for `bt-execute --strict` (neither measured yet).
101
101
  - **Unity frame-matching runs long.** A task proven by matching Unity frame by frame (animation feel, foot IK, landing poses) is where Unity tasks overran most (starter-assets-third-person: 2.4×). Name it as the biggest uncertainty.
102
102
  - **The estimate covers the plan as written.** Tasks added mid-run cost far more than planned ones — unity-terrain-system-parity's 17 planned tasks took about 6 h, the 9 added during the run about 21 h; mario-kart-port grew from 22 to 42 tasks. Say so in the biggest-uncertainty line when the scope is still moving. Tasks added after a plan is complete get their own estimate at these rates.
103
103
 
@@ -115,7 +115,7 @@ Rate each task by the **kind of work it does** (classify tasks, not the plan —
115
115
  | unity-timeline-playback | code 5 · Unity 6 | 186 min | 0.78 |
116
116
  | babylon-game-server | code 8 · live 8 | 157 min | 0.89 |
117
117
  | mario-kart-leftover-particles | game 5 | 189 min | 0.94 |
118
- | fusion-networking | code 20 · Unity 8 | 385 min | 0.96 |
118
+ | babylon-toolkit-networking | code 20 · Unity 8 | 385 min | 0.96 |
119
119
  | mario-kart-drift-vfx-parity | Unity 2 · game 1 | 107 min | 0.97 |
120
120
  | cinemachine-port | code 10 · Unity 14 | 560 min | 1.02 |
121
121
  | vfx-graph-port | code 10 · Unity 7 | 310 min | 1.02 |
@@ -149,7 +149,7 @@ Each task above is a checkbox. To implement:
149
149
  Print `🗂️ [bt-plan] Writing the feature dashboard …`. **A spec from bt-spec already has a dashboard, in its `specified` state** (showing the bt-plan commands): read its `<slug>_dashboard.js` first and keep its `feature`, `decisions` and `activity`; everything below then fills it in and moves it to `planned`. A Quick Plan, or a spec with no dashboard, creates it here. From bt-execute's `templates/dashboard/` *(where skills load through a tool: `load_skill('bt-execute')` + `read_skill_resource`; where they are files: the sibling `bt-execute/` folder in the skills directory this skill was loaded from)*:
150
150
 
151
151
  - copy `dashboard.html` to `.agents/specs/<slug>/dashboard.html`, replacing `{{slug}}` with the slug and changing nothing else (always — over a copy bt-spec wrote too, so the page is the current template);
152
- - write `.agents/specs/<slug>/documents/<slug>_dashboard.js` from the starter `dashboard.template.js`, written whole as strict JSON behind its `window.FEATURE_DASHBOARD =` prefix — double-quoted keys, no comments, no trailing commas (`data-schema.md` documents every field): `feature` (title, slug, branch, `origin` `spec` or `quick-plan`, size, proof, a plain-language summary), `documents` (Spec — omitted for a Quick Plan — and Plan), `status: "planned"`, `updatedAt` from the shell clock (`date '+%Y-%m-%d %H:%M'`; with no shell, the current local time), `estimate` (the Total line), every phase and task from the plan as `pending` (id, title, kind from the estimate table, verify level), an empty `afterAction` and no snapshots, the plan's Decisions as `decisions` (Heavy Plan; otherwise the spec's), and one more `activity` line: `Plan written — <n> tasks in <k> phases, estimated <range>` (after bt-spec's `Spec written` line when there is one);
152
+ - write `.agents/specs/<slug>/documents/<slug>_dashboard.js` from the starter `dashboard.template.js`, written whole as strict JSON behind its `window.FEATURE_DASHBOARD =` prefix — double-quoted keys, no comments, no trailing commas (`data-schema.md` documents every field): `feature` (title, slug, branch, `origin` `spec` or `quick-plan`, size, proof, a plain-language summary), `documents` (Spec — omitted for a Quick Plan — and Plan), `status: "planned"`, `updatedAt` from the shell clock (`date '+%Y-%m-%d %H:%M'`; with no shell, the current local time), `estimate` (the Total line), every phase and task from the plan as `pending` (id, title, kind from the estimate table, verify level), an empty `afterAction` and no snapshots, the plan’s Decisions as `decisions` (Heavy Plan; otherwise the spec’s), each an object `{ "id": "D1", "text": "…", "updates": [] }` (never a plain `"D1 — …"` string, which shows as an empty row), and one more `activity` line: `Plan written — <n> tasks in <k> phases, estimated <range>` (after bt-spec's `Spec written` line when there is one);
153
153
  - write `.agents/specs/<slug>/documents/<slug>_live.js` from `live.template.js`, the same way (whole, strict JSON): no task, `role: "orchestrator"`, `title: "Plan written — waiting for bt-execute"`, no steps (bt-execute rewrites it at every step of a run).
154
154
  - in a git repository, make sure `.gitignore` (at the repository root) contains the line `.agents/*/*/documents/*_live.js` — append it once if missing. The live file is rewritten at every step of a run and is not history worth keeping; `<slug>_dashboard.js` is, and stays tracked. A live file git already tracks is left as it is.
155
155