@babylonjs-toolkit/agent 1.1.56 → 1.1.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Babylon Toolkit Desktop Agent (1.1.56)
1
+ # Babylon Toolkit Desktop Agent (1.1.58)
2
2
 
3
3
  The desktop agent owns the entire pipeline end to end — frontend and UI design, gameplay code, shaders, generated art and audio, 3D models in headless Blender, whole game levels and prefabs in a terminal-driven Unity Editor, the interactive glTF export, the web build, the dev server, and visual QA by screenshotting both Unity and the running browser.
4
4
 
@@ -241,7 +241,7 @@ pair or schedule the bridge.
241
241
  |-------|---------|--------------|
242
242
  | [`bt-spec`](skills/bt-spec/SKILL.md) | `/bt-spec` | Turn a short idea into a feature spec file on a new git branch. Add `--grill-me` to be interviewed first, `--parity` to allow numeric parity bars in the acceptance criteria. Runs in `TIME MATTERS` mode by default; `--no-time-limit` turns it off. |
243
243
  | [`bt-plan`](skills/bt-plan/SKILL.md) | `/bt-plan` | Produce a detailed, task-checklist technical plan from a spec. Add `--heavy` for a decision-complete plan that keeps a long, fresh-context-per-task run cohesive, and `--parity` for numeric parity gates instead of the default functional proof. Runs in `TIME MATTERS` mode by default; `--no-time-limit` turns it off. |
244
- | [`bt-execute`](skills/bt-execute/SKILL.md) | `/bt-execute` | Implement one task, a range (`T3-T7`, `T12-`, `NEXT:3`) or all remaining tasks from a plan/spec; with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended overnight run that never stops for human input, and `--strict` for an adversarial verifier on every task. Runs in `TIME MATTERS` mode by default; `--no-time-limit` turns it off. |
244
+ | [`bt-execute`](skills/bt-execute/SKILL.md) | `/bt-execute` | Implement one task, a range (`T3-T7`, `T12-`, `NEXT:3`) or all remaining tasks from a plan/spec; with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended overnight run that never stops for human input, `--strict` for an adversarial verifier on every task, and `--verbose` for an in-depth write-up of every task and the After Action Report on the dashboard. Runs in `TIME MATTERS` mode by default; `--no-time-limit` turns it off. |
245
245
  | [`bt-recon`](skills/bt-recon/SKILL.md) | `/bt-recon` | Deep-dive existing code — a subsystem named in a brief, or the whole codebase — and write an evidence-cited technical grounding spec (`.agents/recon/<slug>_recon.md`) plus, when it has UI, a plain-language user guide (`.agents/recon/<slug>_guide.md`). Built for taking over undocumented code; `bt-spec` and `bt-plan` read the recon as grounding. Includes an observe-only live pass when the brief gives a URL; `--refresh` updates a recon after code changes. |
246
246
  | [`bt-convert`](skills/bt-convert/SKILL.md) | `/bt-convert` | Convert source code to Babylon Toolkit TypeScript. |
247
247
  | [`bt-copycat`](skills/bt-copycat/SKILL.md) | `/bt-copycat` | Re-create the specified website adapted to specified genre. |
@@ -299,6 +299,13 @@ was built, how it was proven, what surprised, the run's figures — around **one
299
299
  plan as a whole**, taken from the same camera before the first task and after the last. Recon docs
300
300
  stay in `.agents/recon/`; older flat specs and plans in `.agents/specs/` keep working where they are.
301
301
 
302
+ Add `--verbose` to `bt-execute` for a fully written-up dashboard: every task card gains its approach
303
+ and why, each file's change, every test case and acceptance item with evidence, each failed attempt
304
+ with its root cause and fix, the live check and the time spent, and the After Action Report adds an
305
+ in-depth debrief (architecture, problems and resolutions, deviations from the plan, known limitations,
306
+ lessons learned, estimate vs actual, next steps). It changes what is written, not how the work is
307
+ verified.
308
+
302
309
  ### Heavy plans (`/bt-plan --heavy`)
303
310
 
304
311
  A plan can hold 50+ tasks and run for days, with each task executed by `bt-execute` in a fresh
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs-toolkit/agent",
3
- "version": "1.1.56",
3
+ "version": "1.1.58",
4
4
  "description": "Installs the Babylon Toolkit Desktop Agent for Claude Code, Codex, GitHub Copilot, Gemini CLI and Antigravity.",
5
5
  "keywords": [
6
6
  "babylonjs",
@@ -1,13 +1,13 @@
1
1
  ---
2
2
  name: bt-execute
3
- description: "The Babylon Toolkit Execute Skill runs one task — or all remaining tasks — from a feature plan or spec file. Use when asked to run a task (e.g. `bt-execute @plan T1`), all tasks (e.g. `bt-execute @plan ALL`), or a range (e.g. `bt-execute @plan T3-T7`, `T12-`, `NEXT:3`); with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended run (e.g. `bt-execute --auto-pilot @plan ALL`): the agent owns the whole pipeline (code, UI, shaders, generated assets, Blender, Unity, export, build, dev server, visual QA), every decision is made autonomously from the plan, spec, Babylon Toolkit Agent Reference and codebase, it never asks the user a question, failing tasks are retried then deferred, and the run never stops until the requested range (or every task) is done. Every task is tested, checked by an independent verifier, and checked live in the browser when its result is visual; add `--strict` for an adversarial verifier on every task. Every run keeps the feature's live dashboard (`.agents/specs/<slug>/dashboard.html`) current task by task — what is being worked on right now, each task's result the moment it is built, verifier results, and meaningful snapshots of the build as it progresses — and, once the run is over, puts an After Action Report in place of the live activity: the whole plan's execution summarized, with one before/after for the plan as a whole."
3
+ description: "The Babylon Toolkit Execute Skill runs one task — or all remaining tasks — from a feature plan or spec file. Use when asked to run a task (e.g. `bt-execute @plan T1`), all tasks (e.g. `bt-execute @plan ALL`), or a range (e.g. `bt-execute @plan T3-T7`, `T12-`, `NEXT:3`); with no task id it runs the next unchecked task. Add `--auto-pilot` for an unattended run (e.g. `bt-execute --auto-pilot @plan ALL`): the agent owns the whole pipeline (code, UI, shaders, generated assets, Blender, Unity, export, build, dev server, visual QA), every decision is made autonomously from the plan, spec, Babylon Toolkit Agent Reference and codebase, it never asks the user a question, failing tasks are retried then deferred, and the run never stops until the requested range (or every task) is done. Every task is tested, checked by an independent verifier, and checked live in the browser when its result is visual; add `--strict` for an adversarial verifier on every task, and `--verbose` for a fully written-up dashboard — each task and the After Action Report documented in depth. Every run keeps the feature's live dashboard (`.agents/specs/<slug>/dashboard.html`) current task by task — what is being worked on right now, each task's result the moment it is built, verifier results, and meaningful snapshots of the build as it progresses — and, once the run is over, puts an After Action Report in place of the live activity: the whole plan's execution summarized, with one before/after for the plan as a whole."
4
4
  allowed-tools: Read, Grep, Glob, Edit, Write, Bash, WebFetch(domain:raw.githubusercontent.com), Agent, Task
5
5
  ---
6
6
 
7
7
  Run tasks from a plan: build each one with its tests, have an independent verifier check it, and only then tick its box — and keep the feature's dashboard current as you go (see *Feature folder and dashboard*). Follow the project's agent instructions (AGENTS.md / CLAUDE.md / .github/copilot-instructions.md). The user's message after the skill name is the `arguments`.
8
8
 
9
9
  ```
10
- /bt-execute [--auto-pilot] [--strict] [--no-time-limit] <plan> [task] [brief]
10
+ /bt-execute [--auto-pilot] [--strict] [--verbose] [--no-time-limit] <plan> [task] [brief]
11
11
 
12
12
  /bt-execute @.agents/specs/<slug>/documents/<slug>_plan.md ALL
13
13
 
@@ -20,9 +20,10 @@ Run tasks from a plan: build each one with its tests, have an independent verifi
20
20
  /bt-execute --strict @plan.md ALL # adversarial verifier on every task
21
21
  /bt-execute --auto-pilot @plan.md ALL # unattended; combine with --strict if wanted
22
22
  /bt-execute --no-time-limit @plan.md ALL # turn off the default TIME MATTERS mode
23
+ /bt-execute --verbose @plan.md ALL # a fully written-up dashboard: every task and the After Action Report in depth
23
24
  ```
24
25
 
25
- - Strip `--auto-pilot` / `--strict` / `--no-time-limit`, and any literal `TIME MATTERS`, first (anywhere in the arguments, never part of the brief). `<plan>` is required — if missing, ask (auto-pilot: say so and end). Never guess a path.
26
+ - Strip `--auto-pilot` / `--strict` / `--verbose` / `--no-time-limit`, and any literal `TIME MATTERS`, first (anywhere in the arguments, never part of the brief). `<plan>` is required — if missing, ask (auto-pilot: say so and end). Never guess a path.
26
27
  - `[task]` is the token right after the plan, only if it is `T<id>`, `T<a>-T<b>`, `T<a>-`, `NEXT`, `NEXT:<n>` or `ALL` (case-insensitive). Otherwise it is part of the brief, and the task defaults to `NEXT` (`ALL` under auto-pilot). Never ask which task to run.
27
28
  - A range is a slice of the checklist **in file order** (sub-tasks like `T3.1` between the endpoints included). An unknown id → list the available ids and stop. A reversed range → error; never swap it. Tasks outside the slice are never touched.
28
29
  - Tasks already `- [x]` are skipped — that is what makes every mode resumable. Nothing left to do → say so and stop. Except in `ALL` / range / `NEXT:<n>` runs, do one task and do not continue to the next.
@@ -58,7 +59,7 @@ Work in **phases**: a `### Phase N` group in the plan, or — if the plan has no
58
59
 
59
60
  For a task built on a sibling skill (e.g. bt-design's 3D-Hero-Scroll), give the verifier the relevant part of that skill *(where skills load through a tool: `load_skill` + `read_skill_resource`; where they are files: the skills directory this skill was loaded from, e.g. `~/.claude/skills/`, `~/.agents/skills/` or the project's equivalent)* — its documented options (e.g. `sweep: page` really reaches the document bottom) are part of Acceptance.
60
61
 
61
- **Every subagent gets a brief, not homework:** the task block(s), the plan Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Agent Reference excerpts needed (with URLs) — **always including the full `Coding Practices — ENFORCED` section**, since implementers write to it and verifiers fail work that breaks it — the test command and the feature folder's `tests/` path, the `snapshots/` path and *Snapshots tell the story* (for any phase with visible output), the dashboard and live file paths with the per-task update rules from *Feature folder and dashboard*, the project's agent instructions, the *Work fast* rules below, and: *"Do not fetch the Agent Reference or read SPEC.md in full — the parts you need are here, and this overrides any standing instruction to fetch it first. Fetch one sub-document only if you hit an API this brief does not cover, and say which."*
62
+ **Every subagent gets a brief, not homework:** the task block(s), the plan Decisions / Design Reference entries they cite, the SPEC.md parts touched, the Agent Reference excerpts needed (with URLs) — **always including the full `Coding Practices — ENFORCED` section**, since implementers write to it and verifiers fail work that breaks it — the test command and the feature folder's `tests/` path, the `snapshots/` path and *Snapshots tell the story* (for any phase with visible output), the dashboard and live file paths with the per-task update rules from *Feature folder and dashboard* (with `--verbose`, the `details` fields that role writes), the project's agent instructions, the *Work fast* rules below, and: *"Do not fetch the Agent Reference or read SPEC.md in full — the parts you need are here, and this overrides any standing instruction to fetch it first. Fetch one sub-document only if you hit an API this brief does not cover, and say which."*
62
63
 
63
64
  ## Feature folder and dashboard
64
65
 
@@ -92,6 +93,12 @@ On top of the per-task updates:
92
93
  - **Each phase, after its ticks and before its commit:** the phase's status, times and minutes (from its `⏱` line), its verifier result and a two-or-three-sentence summary of what it delivered; the phase-level snapshots (a progression spanning several tasks — below); `decisions`; `activeTime`; an `activity` line; and a current "so far" `outcome` headline.
93
94
  - **A deferral:** the task's `status: "deferred"` and `deferredReason`, an `activity` line.
94
95
  - **Run end — the After Action Report.** **decide the status by re-reading the plan file's checkboxes, never from memory:** `complete` when every task in the plan is `- [x]`; `incomplete` when every task is either ticked or marked ⏭️ DEFERRED; otherwise `paused` (the run covered only a slice, or tasks were added). The page refuses a `complete` it can see is false — it shows the plan as paused with a warning — but the plan file is the authority; never leave `in-progress` behind, because the status picks the page's top slot: `in-progress` shows *Current run activity* (the live file and the milestones), any other run-ended status shows the After Action Report in its place. Write `followUps` for a human, and `afterAction` — the whole plan's execution, start to finish: a one-sentence headline of what the plan delivered; two to four paragraphs on what was built, how it was proven and what surprised; highlights; and **one before/after for the plan as a whole** (`comparison`) — the plan-wide "before" frame beside a final "after" taken now from the same camera or viewport (the end-to-end check's session supplies it). Add the plan's key progression to `afterAction.snapshots` if one tells the story better than any single phase. The figures (tasks, tests, retries, time) are computed by the page — never type them in. A run that ends before the plan is finished writes it too; the page marks it *Interim* while `paused`, and the next run revises it with an `updates` entry. **A reopened plan** (tasks added after it was complete) works the same way: the run that finishes the added tasks rewrites the After Action Report to cover them, notes the change in its `updates` (`Revised — T7 added after completion: <why>`), and retakes the plan-wide "after" from the same camera so the comparison shows the plan as it now stands.
96
+ - **`--verbose` — the same work, written up in depth.** It changes what is written, never what is done: tests, the verifier, live checks and snapshot captures are exactly as without it, and TIME MATTERS still holds (the extra cost is writing, not checking). Set `detail: "verbose"` at run start. Each task gets a `details` write-up (schema in `dashboard.template.js`), filled in by whoever has the facts, at the same per-task moments as everything else:
97
+ - **the implementer, when the task is built:** `approach` (how it was built, how the pieces fit together, why this way and not the alternatives it weighed); `changes` — every file touched, with what changed in it and why; `testCases` — every named case with its expected and actual result; `problems` — each failed attempt or dead end, with what failed, the root cause and the fix; `notes` for a future maintainer; `timing.build`;
98
+ - **the verifier, while it checks:** `acceptance` — every Acceptance item with its verdict and the evidence it rests on (command output, the screenshot, the line read); `liveCheck` — what it looked at, on which engine, at what resolution, and how it judged it; `timing.verify`;
99
+ - **you, at the tick and in the fix loop:** each fix round added to `problems`, `timing.fix`, and snapshot captions that say what to notice, not just what is shown.
100
+
101
+ At run end the After Action Report adds `sections`, one card each where it applies: **Architecture** (what now exists and how it connects), **Phase by phase**, **Problems and resolutions**, **Deviations from the plan** (and why), **Known limitations**, **Lessons learned**, **Estimate vs actual** (per phase, from the `⏱` lines), **Recommended next steps**. Plain language a new developer can follow, concrete over vague — name the files, classes, numbers and screenshots. A later run without `--verbose` keeps everything a verbose run wrote and never thins it; `detail` stays `verbose`.
95
102
  - **Updated notifications.** Never silently rewrite an earlier part of the dashboard. When later work changes an earlier result — a figure corrected, a decision reversed, a reopened task, a snapshot superseded by a better one — change it and append `{ at, by: "T<n>", note }` to that entry's `updates`. The page badges it **Updated** and lists it under *Updates and revisions*. A superseded snapshot stays; add the new one beside it.
96
103
  - The dashboard is a record, never a gate: a dashboard slip never fails or blocks a task. At run end, leave the live file's last entry saying the run finished (the page hides it once the status is no longer `in-progress`).
97
104
 
@@ -632,6 +632,27 @@
632
632
  font-size: 13.5px;
633
633
  }
634
634
 
635
+ /* ---------- Verbose task details and After Action Report sections ---------- */
636
+ .task-details { display: grid; gap: 16px; padding-top: 14px; border-top: 1px dashed var(--line-strong); }
637
+ .detail-block h4, .aar-section h4 { margin: 0 0 8px; }
638
+ .detail-block h4 { font: 700 11px/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); }
639
+ .detail-block p { margin: 0 0 8px; color: var(--text-muted); }
640
+ .detail-block ul { margin: 0; padding-left: 18px; color: var(--text-muted); display: grid; gap: 4px; }
641
+ .detail-scroll { overflow-x: auto; }
642
+ .detail-table { width: 100%; border-collapse: collapse; font-size: 13px; }
643
+ .detail-table th { padding: 6px 10px; text-align: left; border-bottom: 1px solid var(--line-strong); font: 600 10.5px/1.4 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); white-space: nowrap; }
644
+ .detail-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
645
+ .detail-table td:first-child { min-width: 140px; }
646
+ .verdict { padding: 2px 7px; border-radius: 5px; font: 700 11px/1.5 var(--font-mono); white-space: nowrap; }
647
+ .verdict-pass { color: var(--done); background: var(--done-soft); }
648
+ .verdict-fail { color: var(--failed); background: var(--failed-soft); }
649
+ .verdict-other { color: var(--text-muted); background: var(--pending-soft); }
650
+ .aar-sections { margin-top: 24px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
651
+ .aar-section { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--bg); }
652
+ .aar-section h4 { font-size: 15.5px; }
653
+ .aar-section p { margin: 0 0 8px; color: var(--text-muted); font-size: 14px; }
654
+ .aar-section ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: 14px; display: grid; gap: 4px; }
655
+
635
656
  /* ---------- Updated notifications ---------- */
636
657
  .updated-badge {
637
658
  display: inline-flex;
@@ -836,6 +857,7 @@
836
857
  feature.origin ? `<span class="chip">from <strong>${escapeHtml(feature.origin === 'quick-plan' ? 'Quick Plan' : 'Spec')}</strong></span>` : '',
837
858
  feature.size ? `<span class="chip">size <strong>${escapeHtml(feature.size)}</strong></span>` : '',
838
859
  feature.proof ? `<span class="chip">proof <strong>${escapeHtml(feature.proof)}</strong></span>` : '',
860
+ report.detail === 'verbose' ? '<span class="chip">detail <strong>verbose</strong></span>' : '',
839
861
  report.updatedAt ? `<span class="chip">updated <strong>${escapeHtml(report.updatedAt)}</strong></span>` : '',
840
862
  report.status !== status ? `<span class="chip chip-warning"><span>status says <strong>${escapeHtml(report.status)}</strong>, but ${escapeHtml(unfinishedTasks().map((task) => task.id).join(', '))} ${unfinishedTasks().length === 1 ? 'is' : 'are'} not done</span></span>` : '',
841
863
  ].join('');
@@ -944,6 +966,7 @@
944
966
  </div>
945
967
  ${renderFigures(allTasks, doneCount)}
946
968
  </div>
969
+ ${renderAfterActionSections(afterAction.sections)}
947
970
  ${updateNotes(afterAction.updates)}
948
971
  </article>
949
972
  ${(afterAction.snapshots || []).length ? `<div class="gallery">${afterAction.snapshots.map(renderSnapshot).join('')}</div>` : ''}`;
@@ -1035,7 +1058,8 @@
1035
1058
  factRow('Decisions', (task.decisions || []).length ? task.decisions.map(formatInline).join('<br>') : ''),
1036
1059
  ].join('');
1037
1060
  const isCurrent = isRunActive() && live && live.task === task.id;
1038
- const hasBody = isCurrent || task.summary || facts || task.deferredReason || (task.snapshots || []).length || (task.updates || []).length;
1061
+ const details = renderTaskDetails(task.details);
1062
+ const hasBody = isCurrent || task.summary || facts || details || task.deferredReason || (task.snapshots || []).length || (task.updates || []).length;
1039
1063
 
1040
1064
  return `
1041
1065
  <details class="task is-${escapeAttribute(status)}${isCurrent ? ' is-live' : ''}" id="task-${escapeAttribute(task.id || '')}" ${isCurrent || status === 'in-progress' || isNew(task.updates) ? 'open' : ''}>
@@ -1051,6 +1075,7 @@
1051
1075
  ${task.deferredReason ? `<div class="deferred-note"><strong>Deferred:</strong> ${formatInline(task.deferredReason)}</div>` : ''}
1052
1076
  ${updateNotes(task.updates)}
1053
1077
  ${facts ? `<dl class="facts">${facts}</dl>` : ''}
1078
+ ${details}
1054
1079
  ${(task.snapshots || []).length ? `<div class="gallery">${task.snapshots.map(renderSnapshot).join('')}</div>` : ''}
1055
1080
  </div>` : ''}
1056
1081
  </details>`;
@@ -1111,6 +1136,68 @@
1111
1136
  return new Date(year, month - 1, day, hour, minute);
1112
1137
  }
1113
1138
 
1139
+ /**
1140
+ * The verbose write-up of a task (bt-execute --verbose): how it was built and why, every file's change, every
1141
+ * test case, every acceptance item with its evidence, every failed attempt, the live check and the time spent.
1142
+ * Each block renders only when its data exists, so a normal run's task card is unchanged.
1143
+ */
1144
+ function renderTaskDetails(details) {
1145
+ if (!details) return '';
1146
+ const timing = details.timing
1147
+ ? ['build', 'verify', 'fix'].filter((phase) => details.timing[phase] != null).map((phase) => `${phase} ${escapeHtml(details.timing[phase])} min`).join(' · ')
1148
+ : '';
1149
+ const blocks = [
1150
+ detailBlock('Approach', paragraphs(details.approach)),
1151
+ detailBlock('Changes by file', detailTable(['File', 'What changed and why'],
1152
+ (details.changes || []).map((change) => [`<code>${escapeHtml(change.file || '')}</code>`, formatInline(change.change || '')]))),
1153
+ detailBlock('Test cases', detailTable(['Case', 'Expected', 'Result'],
1154
+ (details.testCases || []).map((testCase) => [formatInline(testCase.name || ''), formatInline(testCase.expected || ''), verdict(testCase.result)]))),
1155
+ detailBlock('Acceptance', detailTable(['Criterion', 'Verdict', 'Evidence'],
1156
+ (details.acceptance || []).map((item) => [formatInline(item.criterion || ''), verdict(item.result), formatInline(item.evidence || '')]))),
1157
+ detailBlock('Problems &amp; fixes', detailTable(['Attempt', 'What failed', 'Root cause', 'Fix'],
1158
+ (details.problems || []).map((problem) => [escapeHtml(problem.attempt || ''), formatInline(problem.failed || ''), formatInline(problem.cause || ''), formatInline(problem.fix || '')]))),
1159
+ detailBlock('Live check', paragraphs(details.liveCheck)),
1160
+ detailBlock('Notes', (details.notes || []).length ? `<ul>${details.notes.map((note) => `<li>${formatInline(note)}</li>`).join('')}</ul>` : ''),
1161
+ detailBlock('Time', timing),
1162
+ ].join('');
1163
+ return blocks ? `<div class="task-details">${blocks}</div>` : '';
1164
+ }
1165
+
1166
+ /** Verbose After Action Report sections: Architecture, Problems and resolutions, Lessons learned … */
1167
+ function renderAfterActionSections(sections) {
1168
+ if (!(sections || []).length) return '';
1169
+ return `<div class="aar-sections">${sections.map((section) => `
1170
+ <div class="aar-section">
1171
+ <h4>${formatInline(section.title || '')}</h4>
1172
+ ${paragraphs(section.body)}
1173
+ ${(section.items || []).length ? `<ul>${section.items.map((item) => `<li>${formatInline(item)}</li>`).join('')}</ul>` : ''}
1174
+ </div>`).join('')}</div>`;
1175
+ }
1176
+
1177
+ function detailBlock(title, contentHtml) {
1178
+ return contentHtml ? `<div class="detail-block"><h4>${title}</h4>${contentHtml}</div>` : '';
1179
+ }
1180
+
1181
+ /** Text that may be one string or a list of paragraphs. */
1182
+ function paragraphs(text) {
1183
+ const list = Array.isArray(text) ? text : text ? [text] : [];
1184
+ return list.map((paragraph) => `<p>${formatInline(paragraph)}</p>`).join('');
1185
+ }
1186
+
1187
+ function detailTable(headings, rows) {
1188
+ if (!rows.length) return '';
1189
+ return `<div class="detail-scroll"><table class="detail-table">
1190
+ <thead><tr>${headings.map((heading) => `<th>${heading}</th>`).join('')}</tr></thead>
1191
+ <tbody>${rows.map((cells) => `<tr>${cells.map((cell) => `<td>${cell}</td>`).join('')}</tr>`).join('')}</tbody>
1192
+ </table></div>`;
1193
+ }
1194
+
1195
+ function verdict(result) {
1196
+ const text = String(result || '');
1197
+ const tone = /^pass/i.test(text) ? 'pass' : /^fail/i.test(text) ? 'fail' : 'other';
1198
+ return text ? `<span class="verdict verdict-${tone}">${escapeHtml(text)}</span>` : '';
1199
+ }
1200
+
1114
1201
  function factRow(label, valueHtml) {
1115
1202
  return valueHtml ? `<dt>${label}</dt><dd>${valueHtml}</dd>` : '';
1116
1203
  }
@@ -56,6 +56,7 @@ window.FEATURE_DASHBOARD = {
56
56
  ],
57
57
 
58
58
  status: "planned",
59
+ detail: "normal", // "verbose" once any run used bt-execute --verbose (never set back)
59
60
  updatedAt: "2026-01-01 09:00",
60
61
  estimate: "3–6 h", // the plan's Total line
61
62
  activeTime: "", // from the run log's ⏱ lines, e.g. "2 h 10 min"
@@ -72,6 +73,10 @@ window.FEATURE_DASHBOARD = {
72
73
  // from the same camera or viewport. null when the plan has nothing to see.
73
74
  comparison: null, // { title, caption, source, before: { src, caption }, after: { src, caption } }
74
75
  snapshots: [], // optional: the plan's key progression, or the end-to-end proof
76
+ // --verbose only: the full debrief, one card per section, in this order where they apply —
77
+ // Architecture · Phase by phase · Problems and resolutions · Deviations from the plan · Known limitations ·
78
+ // Lessons learned · Estimate vs actual · Recommended next steps
79
+ sections: [], // { title, body: [paragraphs], items: [bullets] }
75
80
  updates: []
76
81
  },
77
82
 
@@ -104,6 +109,17 @@ window.FEATURE_DASHBOARD = {
104
109
  deferredReason: "",
105
110
  decisions: [], // "DECISION T1: … — source"
106
111
  snapshots: [], // this task's progression / comparisons / stills
112
+ // --verbose only: the task's full write-up. Every field optional; the page shows what is present.
113
+ details: null, // {
114
+ // approach: ["how it was built, how the pieces fit, why this way and not the alternatives"],
115
+ // changes: [{ file, change: "what changed in it and why" }],
116
+ // testCases: [{ name, expected, result: "PASS" | "FAIL …" }],
117
+ // acceptance: [{ criterion, result: "PASS" | "FAIL", evidence }],
118
+ // problems: [{ attempt: "1", failed, cause, fix }],
119
+ // liveCheck: "what was looked at, where, at what resolution, what was judged",
120
+ // notes: ["anything a maintainer should know"],
121
+ // timing: { build: 12, verify: 6, fix: 4 } // minutes
122
+ // }
107
123
  updates: []
108
124
  }
109
125
  ]