@babylonjs-toolkit/agent 1.1.78 → 1.1.81
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 +1 -1
- package/package.json +1 -1
- package/skills/bt-execute/SKILL.md +6 -3
- package/skills/bt-execute/templates/dashboard/dashboard.html +6 -3
- package/skills/bt-execute/templates/dashboard/data-schema.md +3 -2
- package/skills/bt-execute/templates/summary/summary-guide.md +78 -0
- package/skills/bt-execute/templates/summary/summary.html +313 -0
- package/skills/bt-execute/templates/summary/summary.template.js +82 -0
- package/skills/bt-plan/SKILL.md +36 -17
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Babylon Toolkit Desktop Agent (1.1.
|
|
1
|
+
# Babylon Toolkit Desktop Agent (1.1.81)
|
|
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
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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, 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."
|
|
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. When the plan is complete it also writes `.agents/specs/<slug>/documents/<slug>_summary.html`, a formatted plain-language summary of the plan for non-technical readers, linked from the After Action Report."
|
|
4
4
|
allowed-tools: Read, Grep, Glob, Edit, Write, Bash, WebFetch(domain:raw.githubusercontent.com), Agent, Task
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -52,7 +52,7 @@ Work in **phases**: a `### Phase N` group in the plan, or — if the plan has no
|
|
|
52
52
|
2. **Verify** the phase with a fresh **independent verifier** subagent (charter below), giving it the list of files changed. It returns PASS/FAIL per task, with evidence, and marks each task `verifying` on the dashboard (and the live file) as it checks it.
|
|
53
53
|
3. **Tick** `- [ ]` → `- [x]` for every task that passed, immediately — except a task that depends on one that failed in the same phase, which waits for it. Never tick partial, skipped or unverified work. Mark each ticked task `done` on the dashboard as you tick it, then write the phase's dashboard entry before its commit.
|
|
54
54
|
4. **Fix loop** for a task that failed: fix the code in the context that wrote it; re-run its tests; re-verify with a **fresh** verifier given only the failed items and the evidence (`--strict`: the whole task). A records-only slip (a stale number or note) is fixed directly and re-checked by you. 3 attempts (`--strict`: 5), each changing something material; stop early if two attempts fail the same way with no new idea. Still failing → leave it unticked, stop and report *(auto-pilot: defer and continue)*.
|
|
55
|
-
5. **Report:** tasks done (for `ALL` / ranges: the range asked for, completed/total, and whether the plan is now finished; if fewer than `n` tasks remained for `NEXT:<n>`, say so), files changed, tests run (`tests: 4 passed (implementer) · verifier-checked`), verifier result (`verified (independent subagent)` or `verified (self)`), the dashboard path (`.agents/specs/<slug>/dashboard.html` — open it in a browser), and the next task id — for reference only.
|
|
55
|
+
5. **Report:** tasks done (for `ALL` / ranges: the range asked for, completed/total, and whether the plan is now finished; if fewer than `n` tasks remained for `NEXT:<n>`, say so), files changed, tests run (`tests: 4 passed (implementer) · verifier-checked`), verifier result (`verified (independent subagent)` or `verified (self)`), the dashboard path (`.agents/specs/<slug>/dashboard.html` — open it in a browser), the plan summary path when this run wrote it (`.agents/specs/<slug>/documents/<slug>_summary.html`), and the next task id — for reference only.
|
|
56
56
|
|
|
57
57
|
**The verifier is told:** *"Confirm each task's Acceptance is genuinely met and run its `Verify` commands against the stated expected output. Re-run the tests and the relevant suite once; check they really cover the Acceptance and named edge cases and could fail — missing or vacuous tests are a FAIL. Read the diff for real defects: logic errors, broken callers, unhandled edge cases the plan names, a documented behavior dropped or inverted, a sibling-skill template re-implemented instead of copied. Check every code file the task created or changed against the Agent Reference's Coding Practices — ENFORCED: clean, professional TypeScript or JavaScript in the language the project already uses (never converted to the other unasked); strict types with no needless `any` in TypeScript; meaningful full-word names for every class, method, property, variable and parameter (one- or two-letter names, cryptic abbreviations and code-golf tricks are violations, except the allowed loop counters, axis/`uv` names and toolkit aliases, and names that bind to exported data); no dead code, unused imports or leftover `console.log`; well-structured code a developer new to the project can read and maintain. Any violation is a FAIL for that task — quote the offending lines. Check every HUD, overlay or GUI file the task created or changed against the Agent Reference's Game UI Performance — ENFORCED: a value that changes every frame (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(`, store update or `EventBus.PostMessage(` inside `requestAnimationFrame`, a frame-loop hook, a render observable or a component's `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. Any of these is a FAIL for that task — quote the offending lines. JSDoc is never a FAIL: missing, thin or stale JSDoc (including JavaScript type tags) never fails a test, a verification or an Acceptance item — list it under a separate non-blocking `JSDoc notes` heading. For any task whose correctness shows only at runtime — rendering, UI, interaction, Unity↔Babylon parity — check it live in the browser (and Unity where relevant) whether or not the plan marks it `live`, and do the plan's final end-to-end check live: look at the running result, beside the reference image when there is one, and judge it as a user would; passing unit tests never substitute. Do all of a phase's live checks in one session on the already-running dev server, and re-export from Unity only if the phase changed that scene's export — then only the project and the scenes the phase works on. Save the frames from your live session that show each visual task's verified result to `[SNAPSHOTS]` as `T<n>-<NN>-<stage>.png` — the same camera or viewport as the implementer's progression frames, plus any angle or comparison (Unity beside browser, before beside after) that proves the Acceptance — and return each path with a one-line caption saying what it shows. Snapshots never add a page session or an export of their own. Keep the dashboard current as you go: set each task `verifying` when you start checking it, and rewrite the live file at each check (what you are checking, on what) — never 15 minutes without a write. Treat an absolute count in the plan as 'named tests pass, no new failures'. [SCOPE] Return PASS/FAIL per task with evidence and one line on what you ran live and where (or `none — tests only`), listing records-only slips separately."*
|
|
58
58
|
|
|
@@ -74,6 +74,8 @@ Every feature lives in one folder, created by bt-spec (or by bt-plan for a Quick
|
|
|
74
74
|
documents/<slug>_autopilot.md this skill's run log
|
|
75
75
|
documents/<slug>_dashboard.js the dashboard's data (task by task)
|
|
76
76
|
documents/<slug>_live.js what is happening this minute (step by step)
|
|
77
|
+
documents/<slug>_summary.html the plan in plain language for non-technical readers — once the plan is complete
|
|
78
|
+
documents/<slug>_summary.js the plan summary's data
|
|
77
79
|
snapshots/ the meaningful snapshots the dashboard shows
|
|
78
80
|
tests/ every test this plan's tasks write
|
|
79
81
|
```
|
|
@@ -96,10 +98,11 @@ Every feature lives in one folder, created by bt-spec (or by bt-plan for a Quick
|
|
|
96
98
|
|
|
97
99
|
On top of the per-task updates:
|
|
98
100
|
|
|
99
|
-
- **Run start — the first thing the run does** (*Open the run before anything else*): make sure the default `.agents` folders exist — `.agents/archive/`, `.agents/profile/`, `.agents/recon/` and `.agents/specs/`, each with an empty `.gitkeep` (write only the ones missing); **refresh `dashboard.html`** — copy it again from the template with `{{slug}}` replaced (it is never edited, so this is always safe, and it is how layout fixes reach dashboards created by older versions); then **sync the dashboard with the plan file** — re-read its checklist and add any phase or task (including sub-tasks like `T3.1`) the dashboard lacks, in plan order, as `pending`, with an `updates` note on it (`Added to the plan after <the plan was complete / phase 2 ran> — <why, if the plan says>`); a task the plan no longer has is removed with an `activity` line saying so. Then `status: "in-progress"`, `runs` + 1, the run-log document link, an `activity` line, the first live-file write, and the watchdog launched in the background. In a git repository, check `.gitignore` has `.agents/specs/*/documents/*_live.js` and append it once if not — the live file is never staged or committed; `<slug>_dashboard.js` and `snapshots/` are.
|
|
101
|
+
- **Run start — the first thing the run does** (*Open the run before anything else*): make sure the default `.agents` folders exist — `.agents/archive/`, `.agents/profile/`, `.agents/recon/` and `.agents/specs/`, each with an empty `.gitkeep` (write only the ones missing); **refresh `dashboard.html`** — copy it again from the template with `{{slug}}` replaced (it is never edited, so this is always safe, and it is how layout fixes reach dashboards created by older versions), and `documents/<slug>_summary.html` the same way from `templates/summary/summary.html` when the feature already has one; then **sync the dashboard with the plan file** — re-read its checklist and add any phase or task (including sub-tasks like `T3.1`) the dashboard lacks, in plan order, as `pending`, with an `updates` note on it (`Added to the plan after <the plan was complete / phase 2 ran> — <why, if the plan says>`); a task the plan no longer has is removed with an `activity` line saying so. Then `status: "in-progress"`, `runs` + 1, the run-log document link, an `activity` line, the first live-file write, and the watchdog launched in the background. In a git repository, check `.gitignore` has `.agents/specs/*/documents/*_live.js` and append it once if not — the live file is never staged or committed; `<slug>_dashboard.js` and `snapshots/` are.
|
|
100
102
|
- **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` — the plan's total across **every run so far** (each finished run's `active` from its `⏱ Run <n> end` line, plus this run's so far), never this run alone; an `activity` line; and a current "so far" `outcome` headline.
|
|
101
103
|
- **A deferral:** the task's `status: "deferred"` and `deferredReason`, an `activity` line.
|
|
102
104
|
- **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. Write `afterAction.testing` on every run, not only `--verbose`: run every test suite the plan touched **once more, in full, at run end** and record each as a `suites` entry (name, command, passed, failed, how many tests this plan added, and a `note` for any failure that pre-dates the plan) — never add up the tasks' counts, which re-count the same suite once per task; a `summary` of how the plan was tested (unit tests, the verifier's re-runs, what was checked live and on what, the end-to-end check); and `gaps` — what no test or live check covers. The page builds the task-by-task table and the list of test cases from the tasks. 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.
|
|
105
|
+
- **Run end — the plan summary, only when the plan is `complete`.** Write the feature's plan summary, a formatted page that opens straight from disk. It is the plan told to people who never see the code: what it delivered, what it means for existing users and content, what was wrong, what changed, what did not, and how it was checked. Use on-screen names in **bold** and real values. Leave out file names, task IDs and test counts. Like the dashboard, the page is a fixed template and the content is data, both from this skill's `templates/summary/`. Copy `summary.html` to `documents/<slug>_summary.html` with `{{slug}}` replaced and nothing else edited; only `dashboard.html` sits at the feature root. Write `documents/<slug>_summary.js` beside it, whole as strict JSON behind `window.PLAN_SUMMARY =`. **`summary-guide.md` has the audience, the fields and the section order, and `summary.template.js` is a worked example. Read both.** **Leave out any section that does not apply to this plan**, and adapt a heading's wording where the default does not fit (a feature has *Why it was needed* in place of *What was wrong*). Then set `afterAction.planSummary: "documents/<slug>_summary.html"` so the After Action Report links to the page. A `paused` or `incomplete` run writes no summary. **A reopened plan** keeps its existing summary while the added tasks run. The run that completes them rewrites the data to cover the plan as it now stands, adds the new date to `stamp` (`Fixed on 2026-10-19; updated on 2026-11-02`) and says in the lead what the update added. Commit both files with the dashboard data.
|
|
103
106
|
- **`--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 (fields in `data-schema.md`), filled in by whoever has the facts, at the same per-task moments as everything else:
|
|
104
107
|
- **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, the result leading with `PASS` or `FAIL` (`"PASS — 0→74 km/h on held W"`); `problems` — each failed attempt or dead end, with what failed, the root cause and the fix; `notes` for a future maintainer; `timing.build`;
|
|
105
108
|
- **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`;
|
|
@@ -348,6 +348,7 @@
|
|
|
348
348
|
.after-action-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
|
|
349
349
|
.after-action-head .kicker { margin: 0; }
|
|
350
350
|
.after-action .headline { margin: 14px 0 18px; font-size: 24px; }
|
|
351
|
+
.after-action .plan-summary-link { margin: -6px 0 18px; }
|
|
351
352
|
.plan-compare .shot { box-shadow: none; }
|
|
352
353
|
.plan-compare .shot-frame { aspect-ratio: auto !important; height: min(64vh, 54vw); }
|
|
353
354
|
.after-action-columns { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; margin-top: 22px; }
|
|
@@ -935,7 +936,7 @@
|
|
|
935
936
|
|
|
936
937
|
const view = pageView();
|
|
937
938
|
// Stat tiles and phase bars first; then one slot that follows the run: Current run activity while it runs,
|
|
938
|
-
// the
|
|
939
|
+
// the After action report section once it is over.
|
|
939
940
|
appRoot.innerHTML = [
|
|
940
941
|
renderMasthead(feature, allTasks.length, doneCount),
|
|
941
942
|
renderNav(allUpdates.length, view),
|
|
@@ -1118,10 +1119,11 @@
|
|
|
1118
1119
|
body = `
|
|
1119
1120
|
<article class="card after-action">
|
|
1120
1121
|
<div class="after-action-head">
|
|
1121
|
-
<span class="kicker">
|
|
1122
|
+
<span class="kicker">Plan Execution Debrief${afterAction.writtenAt ? ` <span>· ${escapeHtml(afterAction.writtenAt)}</span>` : ''}</span>
|
|
1122
1123
|
<span class="meta">${snapshotBadge([...(comparison && comparison.before && comparison.after ? [comparison] : []), ...(afterAction.snapshots || [])])}${isFinal ? '' :'<span class="status status-in-progress">Interim — plan not finished</span>'}${updatedBadge(afterAction.updates)}</span>
|
|
1123
1124
|
</div>
|
|
1124
1125
|
${afterAction.headline ? `<h3 class="headline">${formatInline(afterAction.headline)}</h3>` : ''}
|
|
1126
|
+
${afterAction.planSummary && effectiveStatus() === 'complete' ? `<div class="doc-links plan-summary-link"><a href="${safeUrl(afterAction.planSummary)}">📄 Plan summary — the plan in plain language</a></div>` : ''}
|
|
1125
1127
|
${comparison && comparison.before && comparison.after ? `<div class="plan-compare">${renderSnapshot(comparison)}</div>` : ''}
|
|
1126
1128
|
<div class="after-action-columns">
|
|
1127
1129
|
<div>
|
|
@@ -1138,7 +1140,7 @@
|
|
|
1138
1140
|
}
|
|
1139
1141
|
return `
|
|
1140
1142
|
<section id="after-action">
|
|
1141
|
-
<div class="section-head"><h2>
|
|
1143
|
+
<div class="section-head"><h2>After action report</h2><span class="section-note">The whole plan's execution, start to finish</span></div>
|
|
1142
1144
|
${body}
|
|
1143
1145
|
</section>`;
|
|
1144
1146
|
}
|
|
@@ -1732,6 +1734,7 @@
|
|
|
1732
1734
|
afterAction.updates = asUpdates(afterAction.updates);
|
|
1733
1735
|
afterAction.snapshots = repairSnapshots(afterAction.snapshots);
|
|
1734
1736
|
['body', 'highlights', 'sections'].forEach((key) => { if (afterAction[key] !== undefined) afterAction[key] = asList(afterAction[key]); });
|
|
1737
|
+
if (afterAction.planSummary !== undefined && typeof afterAction.planSummary !== 'string') delete afterAction.planSummary;
|
|
1735
1738
|
if (afterAction.testing !== undefined) {
|
|
1736
1739
|
if (afterAction.testing === null || typeof afterAction.testing !== 'object') afterAction.testing = null;
|
|
1737
1740
|
else {
|
|
@@ -77,7 +77,7 @@ instead of a blank page if something still cannot render — it keeps checking a
|
|
|
77
77
|
- A task added to the plan after it was complete is added here as `pending`, in plan order, with an `updates`
|
|
78
78
|
note saying why — and `complete` becomes `paused`.
|
|
79
79
|
- The status picks the page's top slot: `specified` shows *Plan this feature* (the `bt-plan` commands to copy, and a builder for its options and a brief); `planned` shows *Start this plan* (the `bt-execute` commands, and a builder for any task range and its options); `in-progress` shows *Current run activity* (the live file and the
|
|
80
|
-
milestones); `paused`, `complete` and `incomplete` show *
|
|
80
|
+
milestones); `paused`, `complete` and `incomplete` show *After action report* (the After Action Report, in its *Plan Execution Debrief* card, marked
|
|
81
81
|
*Interim* while paused), with *Continue this plan* — the commands that pick up where it stopped — above it.
|
|
82
82
|
- **Cadence is per task.** A task's entry changes the moment it starts (`in-progress`), the moment it is built
|
|
83
83
|
(`built` — summary, files, tests and snapshots filled in right then), while the verifier checks it
|
|
@@ -116,6 +116,7 @@ Top level:
|
|
|
116
116
|
| `snapshots` | optional: the plan's key progression, or the end-to-end proof |
|
|
117
117
|
| `testing` | how the plan was tested — every run, not only `--verbose` (below) |
|
|
118
118
|
| `sections` | `--verbose` only: `[{ "title", "body": [paragraphs], "items": [bullets] }]`, in this order where they apply — Architecture · Phase by phase · Problems and resolutions · Deviations from the plan · Known limitations · Lessons learned · Estimate vs actual · Recommended next steps |
|
|
119
|
+
| `planSummary` | `"documents/<slug>_summary.html"` once the plan is `complete` and its plain-language summary page is written (bt-execute's `templates/summary/summary-guide.md`); the report links to it while the plan is complete. Absent before that |
|
|
119
120
|
| `updates` | see *Updated notifications* |
|
|
120
121
|
|
|
121
122
|
`afterAction.testing` — the page shows it as *Testing and verification*, beside a task-by-task table and
|
|
@@ -147,7 +148,7 @@ Each task:
|
|
|
147
148
|
| Field | Meaning |
|
|
148
149
|
|---|---|
|
|
149
150
|
| `id`, `title` | from the plan (`T1`, `T3.1` …) |
|
|
150
|
-
| `kind` | `code` · `live` · `unity` — the plan's estimate kind |
|
|
151
|
+
| `kind` | `code` · `live` · `game` · `unity` — the plan's estimate kind |
|
|
151
152
|
| `verifyLevel` | `standard` · `live` |
|
|
152
153
|
| `status` | see *Status* |
|
|
153
154
|
| `summary` | what was actually done, and anything surprising |
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Plan summary — `.agents/specs/<slug>/documents/<slug>_summary.html`
|
|
2
|
+
|
|
3
|
+
The plan summary tells the people who use the product what this plan did for them, without any technical
|
|
4
|
+
detail. The After Action Report on the dashboard is the developer's record. This is the plain-language version
|
|
5
|
+
for everyone else: product owners, testers, support staff and users. It is a formatted page that opens straight
|
|
6
|
+
from disk, linked from the After Action Report.
|
|
7
|
+
|
|
8
|
+
## Files
|
|
9
|
+
|
|
10
|
+
Like the dashboard, the page is a fixed template and the content is data:
|
|
11
|
+
|
|
12
|
+
- **`documents/<slug>_summary.html`** is this folder's `summary.html`, copied into the feature's `documents/`
|
|
13
|
+
folder with `{{slug}}` replaced, and never otherwise edited. Only `dashboard.html` sits at the feature root. Copy it again whenever you write the data, so layout fixes
|
|
14
|
+
reach older features.
|
|
15
|
+
- **`documents/<slug>_summary.js`**, beside the page, holds everything the page shows, as strict JSON behind the one-line prefix
|
|
16
|
+
`window.PLAN_SUMMARY =`. Use double-quoted keys, no comments and no trailing commas, and always write the
|
|
17
|
+
whole file. `summary.template.js` is a complete worked example of a fix plan; replace every value in it.
|
|
18
|
+
- After writing both, set `afterAction.planSummary` to `"documents/<slug>_summary.html"` (with the real
|
|
19
|
+
slug) in the dashboard data, so the After Action Report links to the page.
|
|
20
|
+
|
|
21
|
+
## When
|
|
22
|
+
|
|
23
|
+
- Write it only when a run ends with the plan **`complete`**, meaning every task in the plan file is `- [x]`.
|
|
24
|
+
A `paused` or `incomplete` plan gets no summary, because a summary of unfinished work would mislead.
|
|
25
|
+
- **A reopened plan** is one that had tasks added after it was complete. The summary already written stays as it
|
|
26
|
+
is while the added tasks run. The run that completes them rewrites the summary so it describes the plan as it
|
|
27
|
+
now stands. Keep the first date in `stamp` and add the new one, `"Fixed on 2026-10-19; updated on
|
|
28
|
+
2026-11-02"`, and say in the lead what the update added.
|
|
29
|
+
|
|
30
|
+
## Who it is for, and how it reads
|
|
31
|
+
|
|
32
|
+
- **Readers who never see the code.** Name what they see: screens, panels, buttons and settings, with the
|
|
33
|
+
on-screen labels in `**bold**` exactly as they appear. Never include file names, class or function names, task
|
|
34
|
+
IDs, commit hashes, test counts, phase numbers or agent roles.
|
|
35
|
+
- **Concrete, not vague.** Use real values: sizes, counts, devices, the symptom a user would have noticed
|
|
36
|
+
("came out at 3400×2200 one time and 2528×1696 another"). Prefer one exact sentence to three general ones.
|
|
37
|
+
- **Short sentences in plain words.** Use a list when there are three or more parallel items, and a numbered
|
|
38
|
+
list when the order matters or later text refers to the items.
|
|
39
|
+
- **Only what is true and was checked.** Take every fact from the spec, the plan, the run log and the After
|
|
40
|
+
Action Report. If something was not checked, do not say it works.
|
|
41
|
+
- **Text may use `**bold**` and nothing else.** Everything else is shown as plain text.
|
|
42
|
+
|
|
43
|
+
## Fields
|
|
44
|
+
|
|
45
|
+
| Field | Meaning |
|
|
46
|
+
|---|---|
|
|
47
|
+
| `schema` | `1` |
|
|
48
|
+
| `title` | the plan's own title, short: `"Camera Session"` |
|
|
49
|
+
| `outcome` | what the plan delivered, stated as a result a user would recognise: `"A saved view remembers every render setting"`. The page's headline |
|
|
50
|
+
| `stamp` | `"Fixed on YYYY-MM-DD"` for a fix, `"Delivered on YYYY-MM-DD"` for a new feature, `"Finished on YYYY-MM-DD"` for anything else (a speed-up, a clean-up); a reopened plan adds `"; updated on YYYY-MM-DD"` |
|
|
51
|
+
| `lead` | a list of paragraphs, usually one: two or three sentences on what now works |
|
|
52
|
+
| `sections` | `[{ "kind", "heading", "blocks" }]`, in the order below |
|
|
53
|
+
| `writtenAt` | `"YYYY-MM-DD HH:MM"` from the shell clock |
|
|
54
|
+
|
|
55
|
+
A section's `blocks` is a list. Each block is a **paragraph** (a string) or a **list**:
|
|
56
|
+
`{ "list": [items], "numbered": true }` (leave out `numbered` for bullets). A list item is a string, or
|
|
57
|
+
`{ "text", "items": [...], "numbered" }` when the item has its own sub-list. `kind` picks the section's colour.
|
|
58
|
+
|
|
59
|
+
## Sections
|
|
60
|
+
|
|
61
|
+
The title, the stamp and the lead are always present. The sections come in this order. **Leave out any section
|
|
62
|
+
that does not apply to this plan**: no empty section, no "N/A" and no filler. **Adapt a heading's wording to the
|
|
63
|
+
plan** where the default does not fit (for example, a new feature has nothing "wrong").
|
|
64
|
+
|
|
65
|
+
1. **`impact` — "The plan summary"**: the plan in short for a non-technical reader, and what it means for them.
|
|
66
|
+
Cover whether anything needs migrating, what behaves differently for existing content, and any one-time
|
|
67
|
+
action that fixes it. Leave it out when nothing changes for existing users, data or content.
|
|
68
|
+
2. **`wrong` — "What was wrong"**: for a fix, a numbered list of the problems as a user experienced them, each
|
|
69
|
+
with its visible symptom. For a feature, use **"Why it was needed"**: what users could not do before. For a
|
|
70
|
+
speed-up, use **"What was slow"**. Leave it out when there is nothing to say.
|
|
71
|
+
3. **`changed` — "What has changed"**: one bullet per change, each beginning with a bold sentence that states
|
|
72
|
+
the new behaviour. Each one should answer a point in section 2.
|
|
73
|
+
4. **`unchanged` — "What has not changed"**: known issues left alone on purpose, and the limits of the plan
|
|
74
|
+
(settings that belong to the device, cases not covered), each with the reason. Leave it out when there are
|
|
75
|
+
none.
|
|
76
|
+
5. **`checked` — "How it was checked"**: the setup (browser, device, which data, and whether anything was
|
|
77
|
+
saved to a server), then the real scenarios that were run and the exact results they gave. Leave it out only
|
|
78
|
+
when nothing a reader would recognise was checked.
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
|
+
<title>Plan Summary</title>
|
|
7
|
+
<!--
|
|
8
|
+
Plan Summary — one feature's plan told in plain language for readers who never see the code.
|
|
9
|
+
|
|
10
|
+
This page is a fixed template: copy it to .agents/specs/<slug>/documents/<slug>_summary.html, replace {{slug}} below
|
|
11
|
+
with the feature slug, and never hand-edit anything else. Everything shown comes from the data file beside it,
|
|
12
|
+
<slug>_summary.js — strict JSON behind a one-line `window.PLAN_SUMMARY =` prefix (fields and
|
|
13
|
+
writing rules: summary-guide.md). It opens straight from disk (file://) — no server, no build, no network.
|
|
14
|
+
-->
|
|
15
|
+
<style>
|
|
16
|
+
:root {
|
|
17
|
+
--bg: #f7f5f0;
|
|
18
|
+
--paper: #ffffff;
|
|
19
|
+
--line: #e4dfd4;
|
|
20
|
+
--text: #1d232b;
|
|
21
|
+
--text-muted: #5b6573;
|
|
22
|
+
--text-faint: #8a93a0;
|
|
23
|
+
--accent: #0f6fa8;
|
|
24
|
+
--accent-soft: rgba(15, 111, 168, 0.09);
|
|
25
|
+
--impact: #8a5a00;
|
|
26
|
+
--impact-soft: rgba(196, 136, 0, 0.11);
|
|
27
|
+
--wrong: #b3372b;
|
|
28
|
+
--wrong-soft: rgba(179, 55, 43, 0.09);
|
|
29
|
+
--changed: #18794e;
|
|
30
|
+
--changed-soft: rgba(24, 121, 78, 0.10);
|
|
31
|
+
--unchanged: #5b6573;
|
|
32
|
+
--unchanged-soft: rgba(91, 101, 115, 0.10);
|
|
33
|
+
--checked: #0f6fa8;
|
|
34
|
+
--checked-soft: rgba(15, 111, 168, 0.09);
|
|
35
|
+
--font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
36
|
+
--font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, ui-serif, serif;
|
|
37
|
+
--radius: 14px;
|
|
38
|
+
}
|
|
39
|
+
@media (prefers-color-scheme: dark) {
|
|
40
|
+
:root {
|
|
41
|
+
--bg: #0d1117;
|
|
42
|
+
--paper: #141a22;
|
|
43
|
+
--line: #252f3b;
|
|
44
|
+
--text: #e6edf3;
|
|
45
|
+
--text-muted: #9aa6b4;
|
|
46
|
+
--text-faint: #6b7787;
|
|
47
|
+
--accent: #5cc8ff;
|
|
48
|
+
--accent-soft: rgba(92, 200, 255, 0.12);
|
|
49
|
+
--impact: #f2c060;
|
|
50
|
+
--impact-soft: rgba(242, 192, 96, 0.12);
|
|
51
|
+
--wrong: #ff8a7a;
|
|
52
|
+
--wrong-soft: rgba(255, 138, 122, 0.11);
|
|
53
|
+
--changed: #3fd18b;
|
|
54
|
+
--changed-soft: rgba(63, 209, 139, 0.12);
|
|
55
|
+
--unchanged: #9aa6b4;
|
|
56
|
+
--unchanged-soft: rgba(154, 166, 180, 0.12);
|
|
57
|
+
--checked: #5cc8ff;
|
|
58
|
+
--checked-soft: rgba(92, 200, 255, 0.12);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
* { box-sizing: border-box; }
|
|
62
|
+
html { -webkit-text-size-adjust: 100%; }
|
|
63
|
+
body {
|
|
64
|
+
margin: 0;
|
|
65
|
+
background: var(--bg);
|
|
66
|
+
color: var(--text);
|
|
67
|
+
font: 17px/1.65 var(--font-sans);
|
|
68
|
+
}
|
|
69
|
+
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
|
|
70
|
+
strong { font-weight: 650; }
|
|
71
|
+
main { max-width: 760px; margin: 0 auto; padding: 56px 16px 72px; }
|
|
72
|
+
|
|
73
|
+
/* ---------- Header ---------- */
|
|
74
|
+
.kicker {
|
|
75
|
+
display: flex;
|
|
76
|
+
flex-wrap: wrap;
|
|
77
|
+
gap: 8px 14px;
|
|
78
|
+
align-items: center;
|
|
79
|
+
margin: 0 0 18px;
|
|
80
|
+
color: var(--text-muted);
|
|
81
|
+
font: 600 12.5px/1.4 var(--font-sans);
|
|
82
|
+
letter-spacing: 0.08em;
|
|
83
|
+
text-transform: uppercase;
|
|
84
|
+
}
|
|
85
|
+
.kicker .plan { color: var(--accent); }
|
|
86
|
+
.stamp {
|
|
87
|
+
display: inline-flex;
|
|
88
|
+
align-items: center;
|
|
89
|
+
gap: 7px;
|
|
90
|
+
padding: 4px 11px;
|
|
91
|
+
border-radius: 999px;
|
|
92
|
+
background: var(--changed-soft);
|
|
93
|
+
color: var(--changed);
|
|
94
|
+
letter-spacing: 0.02em;
|
|
95
|
+
text-transform: none;
|
|
96
|
+
font-size: 13px;
|
|
97
|
+
}
|
|
98
|
+
.stamp::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
|
|
99
|
+
h1 {
|
|
100
|
+
margin: 0 0 22px;
|
|
101
|
+
font: 600 clamp(30px, 6vw, 42px)/1.15 var(--font-serif);
|
|
102
|
+
letter-spacing: -0.015em;
|
|
103
|
+
text-wrap: balance;
|
|
104
|
+
}
|
|
105
|
+
.lead p { margin: 0 0 14px; font-size: 19px; line-height: 1.6; }
|
|
106
|
+
.lead p:last-child { margin-bottom: 0; }
|
|
107
|
+
|
|
108
|
+
/* ---------- Sections ---------- */
|
|
109
|
+
section {
|
|
110
|
+
margin-top: 40px;
|
|
111
|
+
padding: 28px 30px;
|
|
112
|
+
border: 1px solid var(--line);
|
|
113
|
+
border-radius: var(--radius);
|
|
114
|
+
background: var(--paper);
|
|
115
|
+
--tone: var(--accent);
|
|
116
|
+
--tone-soft: var(--accent-soft);
|
|
117
|
+
}
|
|
118
|
+
section.impact { --tone: var(--impact); --tone-soft: var(--impact-soft); }
|
|
119
|
+
section.wrong { --tone: var(--wrong); --tone-soft: var(--wrong-soft); }
|
|
120
|
+
section.changed { --tone: var(--changed); --tone-soft: var(--changed-soft); }
|
|
121
|
+
section.unchanged { --tone: var(--unchanged); --tone-soft: var(--unchanged-soft); }
|
|
122
|
+
section.checked { --tone: var(--checked); --tone-soft: var(--checked-soft); }
|
|
123
|
+
h2 {
|
|
124
|
+
display: flex;
|
|
125
|
+
gap: 12px;
|
|
126
|
+
align-items: center;
|
|
127
|
+
margin: 0 0 16px;
|
|
128
|
+
font: 600 23px/1.3 var(--font-serif);
|
|
129
|
+
}
|
|
130
|
+
h2::before {
|
|
131
|
+
content: "";
|
|
132
|
+
flex: none;
|
|
133
|
+
width: 10px;
|
|
134
|
+
height: 10px;
|
|
135
|
+
border-radius: 3px;
|
|
136
|
+
background: var(--tone);
|
|
137
|
+
box-shadow: 0 0 0 5px var(--tone-soft);
|
|
138
|
+
}
|
|
139
|
+
section > p { margin: 0 0 14px; }
|
|
140
|
+
section > :last-child { margin-bottom: 0; }
|
|
141
|
+
|
|
142
|
+
ul, ol { margin: 0 0 14px; padding: 0; list-style: none; }
|
|
143
|
+
li { position: relative; margin: 0 0 12px; padding-left: 26px; }
|
|
144
|
+
li:last-child { margin-bottom: 0; }
|
|
145
|
+
ul > li::before {
|
|
146
|
+
content: "";
|
|
147
|
+
position: absolute;
|
|
148
|
+
left: 6px;
|
|
149
|
+
top: 0.66em;
|
|
150
|
+
width: 7px;
|
|
151
|
+
height: 7px;
|
|
152
|
+
border-radius: 50%;
|
|
153
|
+
background: var(--tone);
|
|
154
|
+
}
|
|
155
|
+
ol { counter-reset: item; }
|
|
156
|
+
ol > li { counter-increment: item; padding-left: 40px; }
|
|
157
|
+
ol > li::before {
|
|
158
|
+
content: counter(item);
|
|
159
|
+
position: absolute;
|
|
160
|
+
left: 0;
|
|
161
|
+
top: 0.1em;
|
|
162
|
+
display: grid;
|
|
163
|
+
place-items: center;
|
|
164
|
+
width: 26px;
|
|
165
|
+
height: 26px;
|
|
166
|
+
border-radius: 50%;
|
|
167
|
+
background: var(--tone-soft);
|
|
168
|
+
color: var(--tone);
|
|
169
|
+
font: 700 13px/1 var(--font-sans);
|
|
170
|
+
}
|
|
171
|
+
li ul, li ol { margin: 10px 0 0; }
|
|
172
|
+
li li { margin-bottom: 6px; }
|
|
173
|
+
li li::before { opacity: 0.6; }
|
|
174
|
+
|
|
175
|
+
/* ---------- Footer and states ---------- */
|
|
176
|
+
footer {
|
|
177
|
+
margin-top: 44px;
|
|
178
|
+
padding-top: 18px;
|
|
179
|
+
border-top: 1px solid var(--line);
|
|
180
|
+
color: var(--text-faint);
|
|
181
|
+
font-size: 13.5px;
|
|
182
|
+
display: flex;
|
|
183
|
+
flex-wrap: wrap;
|
|
184
|
+
gap: 6px 18px;
|
|
185
|
+
justify-content: space-between;
|
|
186
|
+
}
|
|
187
|
+
.notice {
|
|
188
|
+
margin-top: 80px;
|
|
189
|
+
padding: 28px 30px;
|
|
190
|
+
border: 1px solid var(--line);
|
|
191
|
+
border-radius: var(--radius);
|
|
192
|
+
background: var(--paper);
|
|
193
|
+
color: var(--text-muted);
|
|
194
|
+
}
|
|
195
|
+
.notice h1 { font-size: 26px; color: var(--text); }
|
|
196
|
+
|
|
197
|
+
@media (max-width: 560px) {
|
|
198
|
+
main { padding-top: 36px; }
|
|
199
|
+
section { padding: 22px 18px; }
|
|
200
|
+
.lead p { font-size: 18px; }
|
|
201
|
+
}
|
|
202
|
+
@media print {
|
|
203
|
+
:root { --bg: #ffffff; --paper: #ffffff; }
|
|
204
|
+
body { font-size: 12pt; }
|
|
205
|
+
main { padding: 0; max-width: none; }
|
|
206
|
+
section { break-inside: avoid; border-color: #ccc; }
|
|
207
|
+
footer a { color: inherit; text-decoration: none; }
|
|
208
|
+
}
|
|
209
|
+
</style>
|
|
210
|
+
</head>
|
|
211
|
+
<body>
|
|
212
|
+
<main id="summary"></main>
|
|
213
|
+
<script src="{{slug}}_summary.js"></script>
|
|
214
|
+
<script>
|
|
215
|
+
(function () {
|
|
216
|
+
'use strict';
|
|
217
|
+
|
|
218
|
+
/** Section kinds the page colours; anything else gets the accent colour. */
|
|
219
|
+
const KINDS = new Set(['impact', 'wrong', 'changed', 'unchanged', 'checked']);
|
|
220
|
+
const root = document.getElementById('summary');
|
|
221
|
+
|
|
222
|
+
function escapeHtml(value) {
|
|
223
|
+
return String(value == null ? '' : value)
|
|
224
|
+
.replace(/&/g, '&')
|
|
225
|
+
.replace(/</g, '<')
|
|
226
|
+
.replace(/>/g, '>')
|
|
227
|
+
.replace(/"/g, '"')
|
|
228
|
+
.replace(/'/g, ''');
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/** Escapes text, then allows **bold** — the only markup summary text may use. */
|
|
232
|
+
function formatInline(text) {
|
|
233
|
+
return escapeHtml(text).replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>');
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
/** A list field written as one string becomes a one-item list; anything else that is not a list, empty. */
|
|
237
|
+
function asList(value) {
|
|
238
|
+
if (Array.isArray(value)) return value;
|
|
239
|
+
if (typeof value === 'string' && value.trim()) return [value];
|
|
240
|
+
return [];
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
/** A list item: a string, or { "text", "items", "numbered" } for an item with its own sub-list. */
|
|
244
|
+
function renderItem(item) {
|
|
245
|
+
if (item && typeof item === 'object') {
|
|
246
|
+
const children = asList(item.items);
|
|
247
|
+
return `<li>${formatInline(item.text)}${children.length ? renderList(children, item.numbered) : ''}</li>`;
|
|
248
|
+
}
|
|
249
|
+
return `<li>${formatInline(item)}</li>`;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
function renderList(items, numbered) {
|
|
253
|
+
const tag = numbered ? 'ol' : 'ul';
|
|
254
|
+
return `<${tag}>${items.map(renderItem).join('')}</${tag}>`;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
/** A block: a string is a paragraph; { "list": [...], "numbered": true|false } is a list. */
|
|
258
|
+
function renderBlock(block) {
|
|
259
|
+
if (block && typeof block === 'object') return renderList(asList(block.list), block.numbered);
|
|
260
|
+
return `<p>${formatInline(block)}</p>`;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
function renderSection(section) {
|
|
264
|
+
if (!section || typeof section !== 'object') return '';
|
|
265
|
+
const blocks = asList(section.blocks);
|
|
266
|
+
if (!section.heading || !blocks.length) return '';
|
|
267
|
+
const kind = KINDS.has(section.kind) ? section.kind : '';
|
|
268
|
+
return `
|
|
269
|
+
<section${kind ? ` class="${kind}"` : ''}>
|
|
270
|
+
<h2>${formatInline(section.heading)}</h2>
|
|
271
|
+
${blocks.map(renderBlock).join('')}
|
|
272
|
+
</section>`;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
function render(data) {
|
|
276
|
+
const title = data.title || 'Plan';
|
|
277
|
+
const outcome = data.outcome || '';
|
|
278
|
+
document.title = outcome ? `${title}: ${outcome}` : `${title} — Plan Summary`;
|
|
279
|
+
root.innerHTML = `
|
|
280
|
+
<header>
|
|
281
|
+
<p class="kicker">
|
|
282
|
+
<span class="plan">${escapeHtml(title)}</span>
|
|
283
|
+
<span>Plan summary</span>
|
|
284
|
+
${data.stamp ? `<span class="stamp">${escapeHtml(data.stamp)}</span>` : ''}
|
|
285
|
+
</p>
|
|
286
|
+
<h1>${formatInline(outcome || title)}</h1>
|
|
287
|
+
<div class="lead">${asList(data.lead).map((paragraph) => `<p>${formatInline(paragraph)}</p>`).join('')}</div>
|
|
288
|
+
</header>
|
|
289
|
+
${asList(data.sections).map(renderSection).join('')}
|
|
290
|
+
<footer>
|
|
291
|
+
<span>${data.writtenAt ? `Written ${escapeHtml(data.writtenAt)}` : ''}</span>
|
|
292
|
+
<a href="../dashboard.html">Technical record: the feature dashboard →</a>
|
|
293
|
+
</footer>`;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
function notice(heading, text) {
|
|
297
|
+
root.innerHTML = `<div class="notice"><h1>${escapeHtml(heading)}</h1><p>${text}</p></div>`;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const data = window.PLAN_SUMMARY;
|
|
301
|
+
if (!data || typeof data !== 'object') {
|
|
302
|
+
notice('No summary yet', 'This page reads <code><slug>_summary.js</code> next to it. The summary is written when the plan is complete.');
|
|
303
|
+
return;
|
|
304
|
+
}
|
|
305
|
+
try {
|
|
306
|
+
render(data);
|
|
307
|
+
} catch (error) {
|
|
308
|
+
notice('The summary could not be shown', `A field in <code><slug>_summary.js</code> has an unexpected shape: ${escapeHtml(error && error.message ? error.message : String(error))}.`);
|
|
309
|
+
}
|
|
310
|
+
})();
|
|
311
|
+
</script>
|
|
312
|
+
</body>
|
|
313
|
+
</html>
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
window.PLAN_SUMMARY = {
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"title": "Camera Session",
|
|
4
|
+
"outcome": "A saved view remembers every render setting",
|
|
5
|
+
"stamp": "Fixed on 2026-10-19",
|
|
6
|
+
"lead": [
|
|
7
|
+
"A saved Camera Session view now keeps every setting its render depends on. Loading a view shows all of them in the panel. **Render Current View** and **Render All Cameras** now render each view with its own settings."
|
|
8
|
+
],
|
|
9
|
+
"sections": [
|
|
10
|
+
{
|
|
11
|
+
"kind": "impact",
|
|
12
|
+
"heading": "The plan summary",
|
|
13
|
+
"blocks": [
|
|
14
|
+
"Saved views keep working; nothing needs migrating. Two things are worth knowing:",
|
|
15
|
+
{
|
|
16
|
+
"list": [
|
|
17
|
+
"**Per-instance object IDs come back on** for a view saved before this fix, because that view never stored the setting. If a view was used with it off, turn it off and Update the view once.",
|
|
18
|
+
"**An orthographic view saved before this fix still gets its framing size worked out the old way** each time it is loaded. It no longer gets wider. Update it once to store its framing."
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"kind": "wrong",
|
|
25
|
+
"heading": "What was wrong",
|
|
26
|
+
"blocks": [
|
|
27
|
+
{
|
|
28
|
+
"numbered": true,
|
|
29
|
+
"list": [
|
|
30
|
+
{
|
|
31
|
+
"text": "**Render All Cameras ignored each view's own output settings.** When the batch started, it read these from the panel and used them for every view:",
|
|
32
|
+
"items": [
|
|
33
|
+
"width and height;",
|
|
34
|
+
"size preset;",
|
|
35
|
+
"screen percentage;",
|
|
36
|
+
"Image Types (beauty, edges, mask, normal, depth, area)."
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"**Load did not show every saved setting in the panel.** The Line Sources boxes always showed unticked, and ticking one turned the other three off."
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"kind": "changed",
|
|
46
|
+
"heading": "What has changed",
|
|
47
|
+
"blocks": [
|
|
48
|
+
{
|
|
49
|
+
"list": [
|
|
50
|
+
"**Both render buttons render each view with its own saved settings.** A view now comes out the same from Render All as from Load + Render Current View.",
|
|
51
|
+
"**Load shows every saved setting in the panel**, including Line Sources. Ticking one box changes only that one."
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"kind": "unchanged",
|
|
58
|
+
"heading": "What has not changed",
|
|
59
|
+
"blocks": [
|
|
60
|
+
{
|
|
61
|
+
"list": [
|
|
62
|
+
"**Some settings belong to the device, not to a view**, so they are not saved with one: the performance level and the anti-aliasing sample count (lower on phones). The same view can look slightly different on a phone and on a desktop."
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
"kind": "checked",
|
|
69
|
+
"heading": "How it was checked",
|
|
70
|
+
"blocks": [
|
|
71
|
+
"We tested in Chrome using local cards only; nothing was saved to the server.",
|
|
72
|
+
{
|
|
73
|
+
"list": [
|
|
74
|
+
"Render All was run on three views with the panel left at 640×480. Each view rendered at its own size with its own images: one at 2528×1696, one at 1200×800, and one with no saved output settings at the panel's 640×480.",
|
|
75
|
+
"Pressing Update right after Render All changed nothing in the last view."
|
|
76
|
+
]
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
],
|
|
81
|
+
"writtenAt": "2026-10-19 16:40"
|
|
82
|
+
};
|
package/skills/bt-plan/SKILL.md
CHANGED
|
@@ -85,32 +85,51 @@ Print `✍️ [bt-plan] Writing .agents/specs/<slug>/documents/<slug>_plan.md
|
|
|
85
85
|
|
|
86
86
|
**`## Estimated execution time`** — **agent time, from the calibration below — never developer-hours, and never by adding up activities.** Builds, exports, captures and browser looks are *not* separate line items: they happen inside a task's own run and are already inside the per-task rate. Counting them separately is how a 10-hour plan gets estimated at 45 hours.
|
|
87
87
|
|
|
88
|
-
Rate each task by the **kind of work it does** (classify tasks, not the plan — most plans mix kinds), sum, then give a range of **−
|
|
88
|
+
Rate each task by the **kind of work it does** (classify tasks, not the plan — most plans mix kinds), sum, then give a range of **−35 % / +50 %**. Nothing else is added — no per-phase overhead (it did not show up in the measurements):
|
|
89
89
|
|
|
90
90
|
| Kind | min/task | What puts a task here |
|
|
91
91
|
| --- | --- | --- |
|
|
92
|
-
| **Code** |
|
|
93
|
-
| **Live** |
|
|
92
|
+
| **Code** | 6 | Code + tests, at most a quick browser look or one small scripted export. |
|
|
93
|
+
| **Live** | 16 | Proven by running it: live external APIs, a page or scene loaded and probed in a browser, live memory or perf runs in one engine, a visual match to a reference image. |
|
|
94
|
+
| **Game** | 40 | Proven by **playing the running game**: races, laps or levels driven through scenarios, a two-page network session, reproducing an intermittent in-game bug, tuning feel or sound by eye and ear. |
|
|
94
95
|
| **Unity / parity / GPU** | 35 | Authoring or re-exporting Unity content, measured parity against Unity Play mode, GPU shader backends, perf A/B across beds, exporter DLL + runtime changed together. |
|
|
95
96
|
|
|
96
|
-
- **
|
|
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
|
+
- **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.
|
|
97
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.
|
|
98
|
-
- **Outsized work
|
|
99
|
-
- **
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
|
105
|
-
|
|
|
106
|
-
|
|
|
107
|
-
|
|
|
108
|
-
|
|
109
|
-
|
|
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).
|
|
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
|
+
- **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
|
+
|
|
104
|
+
**Calibration (third, 2026-10-19; 40 runs).** 19 new bt-execute runs (Runtime, 2026-10-07 → 10-19, 190 tasks) measured from their `⏱` lines, active time only, with waits on the user excluded, fitted per task kind together with the 21 runs of the 2026-10-07 calibration. Each new run's actual ÷ estimate at these rates:
|
|
105
|
+
|
|
106
|
+
| Run | Mix (tasks by kind, outsized counted 2×) | Active | ÷ estimate |
|
|
107
|
+
| --- | --- | --- | --- |
|
|
108
|
+
| ugui-animation-parity | code 4 · Unity 5 | 80 min | 0.40 |
|
|
109
|
+
| draco-mesh-compression | code 3 · Unity 4 | 90 min | 0.57 |
|
|
110
|
+
| light-probe-network-toggle | code 5 · live 1 | 29 min | 0.63 |
|
|
111
|
+
| mario-kart-audio-parity | code 2 · game 4 | 112 min | 0.65 |
|
|
112
|
+
| navigation-areas-costs | code 9 · live 1 · Unity 2 | 92 min | 0.66 |
|
|
113
|
+
| lens-flares-all-pipelines | code 2 · live 3 · Unity 6 | 204 min | 0.76 |
|
|
114
|
+
| prewarm-behind-splash | code 3 · live 5 · GPU 1 | 103 min | 0.77 |
|
|
115
|
+
| unity-timeline-playback | code 5 · Unity 6 | 186 min | 0.78 |
|
|
116
|
+
| babylon-game-server | code 8 · live 8 | 157 min | 0.89 |
|
|
117
|
+
| mario-kart-leftover-particles | game 5 | 189 min | 0.94 |
|
|
118
|
+
| fusion-networking | code 20 · Unity 8 | 385 min | 0.96 |
|
|
119
|
+
| mario-kart-drift-vfx-parity | Unity 2 · game 1 | 107 min | 0.97 |
|
|
120
|
+
| cinemachine-port | code 10 · Unity 14 | 560 min | 1.02 |
|
|
121
|
+
| vfx-graph-port | code 10 · Unity 7 | 310 min | 1.02 |
|
|
122
|
+
| unity-animator-port (run 1) | code 7 · live 3 · Unity 9 | 455 min | 1.12 |
|
|
123
|
+
| mario-kart-antigravity | Unity 2.3 · game 2 | 230 min | 1.43 |
|
|
124
|
+
| terminal-portals-fps-controller | code 5 · live 1 · Unity 6 | 375 min | 1.46 |
|
|
125
|
+
| prewarm-splash-status | code 1 · live 1 | 36 min | 1.64 |
|
|
126
|
+
| starter-assets-third-person | code 2 · live 1 · Unity 3 · game 1 | 411 min | 2.38 |
|
|
127
|
+
|
|
128
|
+
Across all 40 runs the median actual ÷ estimate is **1.00**; 30 of 40 land inside −35 % / +50 % and 34 of 40 within 0.6–1.6×. The previous rates (code 8 · live 18 · Unity 35, −30 % / +40 %) put only 11 of the 19 new runs inside their range: they ran about 2× high on engine-code plans and up to 2× low on plans that play the game. Excluded from the fit: mario-kart-port (scope grew 22 → 42 tasks mid-run), hdrp-complete-parity's run 2 (a reopened, deferred task), and the user-directed follow-up runs of draco-mesh-compression and unity-animator-port.
|
|
110
129
|
|
|
111
130
|
To recalibrate later, read the `⏱` lines bt-execute writes to each `documents/<slug>_autopilot.md` (older runs: `<plan>_autopilot.md` beside a flat plan) — they carry the plan's estimate, active minutes per phase and per run, and waits already separated out.
|
|
112
131
|
|
|
113
|
-
Write a table `Phase | Tasks | Kind (code / live / Unity) | What makes it slow | Estimate`, then one **Total** line in hours (days only if over ~16 h), the `--strict` multiplier, and the biggest uncertainty in one line. If the total averages above ~
|
|
132
|
+
Write a table `Phase | Tasks | Kind (code / live / game / Unity) | What makes it slow | Estimate`, then one **Total** line in hours (days only if over ~16 h), the `--strict` multiplier, and the biggest uncertainty in one line. If the total averages above ~45 or below ~5 min per task, the estimate is wrong before the plan is: re-check it. An estimate, never a pin.
|
|
114
133
|
|
|
115
134
|
**`## How to execute this plan`** — this text verbatim:
|
|
116
135
|
|