@babylonjs-toolkit/agent 1.1.51 → 1.1.52

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.51)
1
+ # Babylon Toolkit Desktop Agent (1.1.52)
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
 
@@ -326,8 +326,9 @@ attempts, 5 under `--strict`), is then marked `⏭️ DEFERRED (auto-pilot): <re
326
326
  on; deferred tasks get one more pass at the end. Each verified task is committed as a checkpoint
327
327
  on the current branch (an `autopilot/<plan>` branch is created if you are on `main`; nothing is
328
328
  ever pushed), and a `<plan>_autopilot.md` run log next to the plan records every task outcome,
329
- decision and deferral for you to read in the morning. Re-running the same command resumes and
330
- re-attempts anything deferred.
329
+ decision and deferral for you to read in the morning, plus clock times per phase and per task
330
+ (interactive runs log the clock times too) so bt-plan's time estimates can be recalibrated from
331
+ real runs. Re-running the same command resumes and re-attempts anything deferred.
331
332
 
332
333
  One thing the skill cannot do is answer the host's tool-permission prompts — start the session
333
334
  in a non-prompting permission mode (Claude Code auto / bypass-permissions) and leave Unity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@babylonjs-toolkit/agent",
3
- "version": "1.1.51",
3
+ "version": "1.1.52",
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",
@@ -142,6 +142,8 @@ Hand the DNA Blueprint to the **bt-design** skill to build the actual frontend a
142
142
 
143
143
  **Output target — where the rebuild lands (Babylon Toolkit projects):** the Home page is authored in **`src/pages/Home.tsx` + `src/pages/Home.css`** (supporting pieces in `src/pages/` / `src/components/`). It is deliberately pulled OUT of `app.tsx` — **`app.tsx` and `src/routing/**` are a READ-ONLY routing shell; never write the design into them.** The shell already routes `/` to `Home`, so replacing `Home.tsx`/`Home.css` IS replacing the landing page. Keep the play contract intact (`navigate('/play', { gameMode: … })` via `useUnifiedNavigation`; `src/pages`/`src/components` stay Babylon-free), and if the retheming extends to the game chrome (splash/preloader/overlay), that lives in `src/chrome/**` per the bt-landing skill's rules — including its ENGINE CONTRACT: the splash's engine-required element ids (`xbabylonjsSplashScreen`, `babylonjsLoadingDiv`, `babylonjsLoadingText`, `babylonjsLoadingDivStyle`, `xbabylonjsStatusTextDiv`) must survive any redesign byte-for-byte, or the engine cannot hide the splash to reveal the scene — and its IMPORTS rule: read each file you replace and copy its whole import block across character for character (`GameManager` is a DEFAULT export — `import GameManager from '../babylon/globals'`, never `{ GameManager }`). For non-Toolkit hosts, target whatever the root route's page component actually is — never a router/shell file.
144
144
 
145
+ **Loading progress you can show.** The runtime reports every loading state a splash can show, in order: the scene download (`GameManager.EventBus` `"OnLoadProgress"`, "Loading scene 45%"), then on `SceneManager.OnLoaderStatusObservable` building the scene (state 1: "Building scene 40%" with a detail line such as "Building 1200 of 3908 meshes" or "Loading 120 of 177 textures"), setting up the scene (state 2: "Setting up scene"), the asset preloader (state 3: "Loading assets", then a status line naming one heavy system at a time — terrain, skins, animations, navigation, water, ray tracing — a steady detail line, and one combined scene fraction) and the shader compile (state 4: "Compiling shaders 67%", ending on "Starting scene"); the splash stays up until the scene is really ready. These are example texts — your splash does not have to use them. The page stays responsive through the whole load, so the splash's own animation keeps playing — keep it visibly moving through every stage, including the moments after a bar reaches 100%. However the rebuilt splash presents it, it should show some kind of progress that keeps moving through every stage so it never looks stuck; keep the framework's progress wiring (`SceneManager.HostDefersSceneStatus = true`, both progress subscriptions, and no download progress once the toolkit reports a `state` of 1 or higher) so that data keeps arriving. The full table of states, the events and an example handler are in the Agent Reference [`ui-design-system.md`](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/ui-design-system.md), section *Loading progress you can show*. **You have full creative freedom.** These are the states the runtime reports, and the default splash screens show them as a status line, a bar and a corner detail line. A custom splash may present them in any way that fits the design — different wording, layout, animation, illustration, a single combined bar, per-system indicators, or none of the raw text at all. Do give the player a sense of real progress during heavy loading: show something that moves with the load (a bar, stage names, counts), never an endless "please wait".
146
+
145
147
  Instruct bt-design to:
146
148
 
147
149
  - Match the blueprint's mechanics and timing **exactly** — this is a fidelity job, not a fresh design. Where bt-design would normally improvise, here it executes the blueprint.
@@ -59,10 +59,14 @@ Treat every loading surface (preloader, splash, initial overlay) as a **designed
59
59
  - **Design the wait itself.** Staggered reveals, ambient motion (drifting particles, scanlines, parallax layers, animated environment art), rotating flavor text/lore/tips in the game's voice, a bold wordmark treatment for the game's own title. The player should *want* to watch it load.
60
60
  - **The default's anatomy is a placeholder, not a seed.** Centered-logo-plus-spinner, a thin bar at the bottom, a percentage in a corner — if the result still reads as "the stock loader, restyled," start over from the game's fantasy instead. NO stock spinner, NO engine/toolkit branding, nothing carried over from the default splash except the wiring the host platform requires (progress subscription, mount points, re-exports — keep the MECHANICS, replace ALL of the look, layout, and behavior of the visuals).
61
61
 
62
+ **Loading progress you can show.** The runtime reports every loading state a splash can show, in order: the scene download (`GameManager.EventBus` `"OnLoadProgress"`, "Loading scene 45%"), then on `SceneManager.OnLoaderStatusObservable` building the scene (state 1: "Building scene 40%" with a detail line such as "Building 1200 of 3908 meshes" or "Loading 120 of 177 textures"), setting up the scene (state 2: "Setting up scene"), the asset preloader (state 3: "Loading assets", then a status line naming one heavy system at a time — terrain, skins, animations, navigation, water, ray tracing — a steady detail line, and one combined scene fraction) and the shader compile (state 4: "Compiling shaders 67%", ending on "Starting scene"); the splash stays up until the scene is really ready. These are example texts — your splash does not have to use them. The page stays responsive through the whole load, so the splash's own animation keeps playing — keep it visibly moving through every stage, including the moments after a bar reaches 100%. The full table of states, the events and an example handler are in the Agent Reference [`ui-design-system.md`](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/ui-design-system.md), section *Loading progress you can show*. **You have full creative freedom.** These are the states the runtime reports, and the default splash screens show them as a status line, a bar and a corner detail line. A custom splash may present them in any way that fits the design — different wording, layout, animation, illustration, a single combined bar, per-system indicators, or none of the raw text at all. Do give the player a sense of real progress during heavy loading: show something that moves with the load (a bar, stage names, counts), never an endless "please wait".
63
+
62
64
  **ENGINE CONTRACT — splash element IDs are LAW (STRONGLY ENFORCED, zero exceptions).** "Keep the MECHANICS" above includes the DOM identity of the splash skeleton: the engine shows/hides the splash screen and writes its label/status text by looking up these EXACT element ids/names — `xbabylonjsSplashScreen` (the main splash panel), `babylonjsLoadingDiv`, `babylonjsLoadingText`, `babylonjsLoadingDivStyle`, and `xbabylonjsStatusTextDiv`. If any of these is renamed, removed, or unmounted, the engine cannot hide the splash and the scene underneath is never revealed. Every splash redesign keeps all five present with ids byte-for-byte unchanged; creativity happens around them — restyle via CSS targeting the ids, nest new elements inside/beside them, animate them freely. `babylonjsLoadingText` and `xbabylonjsStatusTextDiv` receive engine-written text at runtime, so they must remain real text-bearing elements. Before finishing any splash redesign, verify all five ids still exist — a missing id means the redesign is broken, not done.
63
65
 
64
66
  **IMPORTS ARE COPIED, NEVER RE-DERIVED (STRONGLY ENFORCED, zero exceptions).** The other half of "keep the MECHANICS": when you rewrite an existing file — `splash.tsx`, `overlay.tsx`, `loading.tsx`, any component already wired to the framework — READ it first and carry its **entire import block** across **unchanged, character for character**, along with every `GameManager`, `EventBus` and `useUnifiedNavigation` line. Replace markup, styles and copy; touch nothing above them. Do not retype an import from memory, do not "tidy" or reorder it, do not change a default import into a named one. A single altered import is a build error, and the file you broke is one the player sees before anything else. Concretely, the slip that has already shipped a project that would not compile: **`GameManager` is a DEFAULT export** — `import GameManager from '../babylon/globals'`, NEVER `import { GameManager } from '../babylon/globals'`. A framework's export shape is not something to infer from the name; it is something to copy from the file in front of you. SELF-CHECK before finishing: compare your new import block to the original's — any difference means fix it before you stop.
65
67
 
68
+ **Never let the splash look stuck.** Whatever the design, the player should always see that loading is progressing — through every stage above, not just the download. How is entirely up to you: the runtime's own text, your own wording, stage icons, counters, a world that assembles piece by piece, one combined bar — none of the default messages are required. What matters is that something tied to the real load keeps moving, and that the splash never sits on a full bar with nothing changing (the old "Loading scene 100%" problem). To keep that progress data arriving, keep the splash's existing wiring: `SceneManager.HostDefersSceneStatus = true`, both progress subscriptions (`"OnLoadProgress"` and `SceneManager.OnLoaderStatusObservable`, removed on cleanup), and the check that stops using download progress once the toolkit reports a `state` of 1 or higher.
69
+
66
70
  **LIGHTWEIGHT is a hard constraint, not a style choice.** The splash/preloader IS the progress info — it exists to cover loading, so it must paint instantly and start showing progress immediately. A splash that first loads its own multi-megabyte hero image defeats itself: the player stares at a blank screen while the loading screen loads. Build the creativity from what renders in the first frame — CSS gradients, keyframe animation, typography, particles, inline SVG, canvas-drawn effects — and at most small, fast image assets (a compact logo, a texture tile). Heavy art (AI-generated heroes, full-bleed photography, video) belongs on the landing page, where it can load behind a styled fallback — never on the splash, preloader, or in-game loading transitions.
67
71
 
68
72
  This applies with equal force to loading transitions *inside* the game (level loads, respawns, scene swaps): same world, same metaphor, same bar.
@@ -33,6 +33,11 @@ Run tasks from a plan: build each one with its tests, have an independent verifi
33
33
  - **Read the docs once.** For Babylon work, if you have not read the Agent Reference this session, fetch it once — https://raw.githubusercontent.com/babylontoolkit/agent/main/reference.md — plus only the sub-documents the plan's tasks need. It is the authority for conventions and API. Fetch fails → stop and tell the user *(auto-pilot: retry 3×, then continue on what you know and log it)*. Read the plan's checklist and the parts of `SPEC.md` the tasks touch; re-read after a context compaction.
34
34
  - **SPEC.md** constrains how you build. If the code and SPEC.md disagree, stop and tell the user *(auto-pilot: decide which is right, fix SPEC.md in the same task, log it)*. When a task changes architecture, a system, a convention or a dependency, SPEC.md must end up matching — normally the plan's final `Update SPEC.md` task; if the plan has none, do it anyway; a new dependency is recorded in SPEC.md by the task that introduces it. Follow SPEC.md's "How to update this spec". **Write the product, never the procedure** — no capture protocols, tool lists, ledgers or gates: recorded there, they become a bar every later feature must clear.
35
35
  - **Say what you are doing** — one short line at each task and phase boundary, and before anything slow.
36
+ - **Clock every run** — auto-pilot or not, so bt-plan's time estimates can be recalibrated from real runs. Take every time from the shell (`date '+%Y-%m-%d %H:%M %Z'`, local time), never from memory, the conversation or a tool result's UTC timestamp. Append to the run log `<plan-basename>_autopilot.md` beside the plan (an interactive run writes only these lines and its task lines):
37
+ - Run start: `⏱ Run <n> start <date time> · queue T<a>–T<b> (<k> tasks) · plan estimate <the plan's Total line, or none> · flags <auto-pilot / strict / interactive>`
38
+ - Each phase — read the clock when the implementer launches, when each verifier launches, and at the tick — once its tasks are ticked or deferred: `⏱ Phase <N> (T<a>–T<b>): <HH:MM>→<HH:MM> · <m> min · build <m> · verify <m> · fix <m> (<rounds> rounds)`. Time spent waiting on the user (a question, a permission prompt) is logged as `· waited <m>` and left out of `<m> min`.
39
+ - Each task line ends `· done <HH:MM>`.
40
+ - Run end: `⏱ Run <n> end <date time> · <done>/<k> tasks · active <h m> · <min> min/task · waited <m>`.
36
41
  - **Subagents:** running this skill is the user's request to use them. Use whatever subagent tool your host provides (its name varies by host — e.g. `Agent` or `Task`); if there is none, work inline, self-verify with the same checklist, and say so.
37
42
 
38
43
  ## The loop
@@ -94,5 +99,5 @@ An unattended run: **nobody is there to answer, and nothing waits for anyone's a
94
99
  - **Safety.** Never push, force-push, deploy, publish, spend money, or delete/overwrite anything outside the plan's scope unless the plan explicitly says so — defer that step instead. Asset generation the plan or spec explicitly calls for (images, textures, audio, video, 3D through the documented generation tools) is in scope: do it. Never `git init`.
95
100
  - **Checkpoints.** In a git repo, commit after each phase's boxes are ticked: `T<n>: <title> (auto-pilot)` (or `T<a>–T<b>: …`). On the default branch, first switch to `autopilot/<plan-basename>`. Uncommitted changes that are not yours → leave them untouched and stage only the paths this run changed; never ask about them.
96
101
  - **Context.** Implement each phase in a fresh implementer subagent (it builds and tests; keep it for that phase's fix loop), so you only orchestrate: read plan → implementer → verifier → tick → commit → log → next phase. The plan's checkboxes and the run log are the only state — re-read them at each phase boundary and after a compaction.
97
- - **Run log** — `<plan-basename>_autopilot.md` beside the plan, appended per run: start/end times and completed/total; one line per task (outcome, attempts, tests, verifier, files, commit); one line per decision; deferred tasks with what a human should look at first. Narrate the same boundaries to the console: `▶ [auto-pilot] T12/50 — <title>`, `✅ … verified`, `⏭️ … deferred — <reason>`.
102
+ - **Run log** — `<plan-basename>_autopilot.md` beside the plan, appended per run: the `⏱` lines from *Clock every run* and completed/total; one line per task (outcome, attempts, tests, verifier, files, commit, done time); one line per decision; deferred tasks with what a human should look at first. Narrate the same boundaries to the console: `▶ [auto-pilot] T12/50 — <title>`, `✅ … verified`, `⏭️ … deferred — <reason>`.
98
103
  - **Exit report** — only once the queue is empty: tasks completed, completed/total, deferred tasks with reasons, decisions logged and the run-log path, branch and last commit, whether the plan is done. It states results; it asks nothing. Re-running the same command resumes and re-attempts deferred tasks.
@@ -85,6 +85,10 @@ REDESIGN — do not reskin — all three surfaces to the SAME design language as
85
85
 
86
86
  **The splash must NEVER be derived from the default Babylon splash (centered logo + spinner) — recoloring the default IS the failure.** Think out of the box: design the loading experience as a scene in this game's world, with a progress metaphor native to THIS game — a racer's start-lights counting down, a fuel gauge filling, a platformer's level assembling tile by tile, a warp drive charging — driven by the real progress value, not a bare bar under a logo. Atmosphere worth watching: staggered reveals, ambient motion, flavor text in the game's voice. There is no limit to what you can do here.
87
87
 
88
+ **Loading progress you can show.** The runtime reports every loading state a splash can show, in order: the scene download (`GameManager.EventBus` `"OnLoadProgress"`, "Loading scene 45%"), then on `SceneManager.OnLoaderStatusObservable` building the scene (state 1: "Building scene 40%" with a detail line such as "Building 1200 of 3908 meshes" or "Loading 120 of 177 textures"), setting up the scene (state 2: "Setting up scene"), the asset preloader (state 3: "Loading assets", then a status line naming one heavy system at a time — terrain, skins, animations, navigation, water, ray tracing — a steady detail line, and one combined scene fraction) and the shader compile (state 4: "Compiling shaders 67%", ending on "Starting scene"); the splash stays up until the scene is really ready. These are example texts — your splash does not have to use them. The page stays responsive through the whole load, so the splash's own animation keeps playing — keep it visibly moving through every stage, including the moments after a bar reaches 100%. The full table of states, the events and an example handler are in the Agent Reference [`ui-design-system.md`](https://raw.githubusercontent.com/babylontoolkit/agent/main/references/ui-design-system.md), section *Loading progress you can show*. **You have full creative freedom.** These are the states the runtime reports, and the default splash screens show them as a status line, a bar and a corner detail line. A custom splash may present them in any way that fits the design — different wording, layout, animation, illustration, a single combined bar, per-system indicators, or none of the raw text at all. Do give the player a sense of real progress during heavy loading: show something that moves with the load (a bar, stage names, counts), never an endless "please wait".
89
+
90
+ **Never let the splash look stuck.** Whatever the design, the player should always see that loading is progressing — through every stage above, not just the download. How is entirely up to you: the runtime's own text, your own wording, stage icons, counters, a world that assembles piece by piece, one combined bar — none of the default messages are required. What matters is that something tied to the real load keeps moving, and that the splash never sits on a full bar with nothing changing (the old "Loading scene 100%" problem). To keep that progress data arriving, keep the splash's existing wiring: `SceneManager.HostDefersSceneStatus = true`, both progress subscriptions (`"OnLoadProgress"` and `SceneManager.OnLoaderStatusObservable`, removed on cleanup), and the check that stops using download progress once the toolkit reports a `state` of 1 or higher.
91
+
88
92
  **ENGINE CONTRACT — splash element IDs are LAW (STRONGLY ENFORCED, zero exceptions):** the engine's runtime code shows and hides the splash screen and writes its label/status text by looking up these EXACT DOM ids/names — it cannot find renamed elements, and if it can't find them the splash NEVER hides and the scene underneath is never revealed:
89
93
 
90
94
  - `xbabylonjsSplashScreen` — the main splash screen panel (the root element the engine shows/hides)
@@ -102,7 +106,7 @@ Any redesign of the splash MUST keep every one of these elements present with it
102
106
  **Keep ONLY each surface's wiring; replace ALL of the visuals:**
103
107
 
104
108
  - `loading.tsx` re-exports `babylonLogo` / `spinnerLogo` that `splash.tsx` imports — keep those exports (or update `splash.tsx`'s import to match).
105
- - `splash.tsx` keeps its `GameManager.EventBus` `"OnLoadProgress"` subscription — that is REAL load progress; drive your metaphor from it.
109
+ - `splash.tsx` keeps its `GameManager.EventBus` `"OnLoadProgress"` subscription and its `SceneManager.OnLoaderStatusObservable` subscription (both removed on cleanup) — together they are the REAL load progress; drive your metaphor from them. It also keeps `SceneManager.HostDefersSceneStatus = true` and its check that stops using download progress once the toolkit reports a `state` of 1 or higher (see *Never let the splash look stuck* above).
106
110
  - `overlay.tsx` keeps `pointer-events: none` on its container so input reaches the canvas; only genuinely interactive elements get `pointer-events: auto`.
107
111
  - Never delete image files from disk (`public/babylon.png` + `public/spinner.png` are framework-required, whatever your design shows).
108
112
  - `src/chrome/**` runs in the viewer context, so it MAY import `GameManager`/`EventBus` and `useUnifiedNavigation` — through `'../babylon/…'` paths (Step 0).
@@ -123,6 +127,7 @@ Generated art goes on the LANDING PAGE — never on the splash/preloader (Step 3
123
127
  - No Toolkit/BabylonJS/engine branding anywhere in the user-facing design.
124
128
  - The play contract fires with the project's REAL GameMode class.
125
129
  - All four surfaces read as one designed product, not four separate efforts.
130
+ - 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.
126
131
  - `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.
127
132
 
128
133
  State in one short paragraph what design direction you committed to (it is now also in `DESIGN.md`), so the next `/bt-landing` run can be briefed against it.
@@ -83,25 +83,32 @@ Print `✍️ [bt-plan] Writing _specs/<feature-name>_plan.md …`. The file has
83
83
 
84
84
  **`## 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.
85
85
 
86
- `Total ≈ tasks × 17 min + phases × 10 min`, then give a range of **±30 %**. Nothing else is added:
86
+ 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 **−30 % / +40 %**. Nothing else is added — no per-phase overhead (it did not show up in the measurements):
87
87
 
88
- - **Do not budget fix rounds.** Measured across five completed plans: 4 fix rounds in 63 tasks — about one per 16 tasks. Add one round (20 min) only if the plan names a genuine unknown, and never more than one per plan. Defensively budgeting a round or two per phase was the single largest source of over-estimation.
89
- - **Do not add a further margin.** The ±30 % is the margin.
90
- - A task sits near the **top** of the range when it is parity work against a reference, drives two engines, or authors Unity/Blender content; near the **bottom** when it is ordinary code with unit tests. Multiply by ~2 for `proof: parity` only if the plan really carries numeric gates, and by ~2–3 for `bt-execute --strict`.
88
+ | Kind | min/task | What puts a task here |
89
+ | --- | --- | --- |
90
+ | **Code** | 8 | Code + tests, at most a quick browser look or one small scripted export. |
91
+ | **Live** | 18 | Proven by running it: live external APIs, browser game builds, live memory or perf runs in one engine, a visual match to a reference image. |
92
+ | **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. |
91
93
 
92
- **Calibration (measured 2026-09-23 from commit + transcript timestamps, five completed plans, 63 tasks, 23 phases, 20.6 h total, 0 deferred):**
94
+ - **Do not budget fix rounds.** They are inside the rates: across the 2026-10 runs about one task in four needed a second attempt, 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.
95
+ - **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.
96
+ - **Outsized work:** a task that builds a compiler or transpiler, or must prove coverage across many Unity sample projects, runs about **2×** the Unity rate (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).
97
+ - **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. Say so in the biggest-uncertainty line when the scope is still moving.
93
98
 
94
- | Plan | Tasks | Phases | Actual | min/task |
95
- | --- | --- | --- | --- | --- |
96
- | auto-exposure-parity | 8 | 3 | 1 h 19 | 9.9 |
97
- | procedural-skybox | 8 | 3 | 2 h 12 | 16.5 |
98
- | camera-antialiasing-parity | 11 | 4 | 2 h 56 | 16.0 |
99
- | camera-antialiasing-taa | 9 | 5 | 4 h 08 | 27.5 |
100
- | shuriken-particle-system (3 Unity projects, 9 promotions) | 27 | 8 | 9 h 59 | 22.2 |
99
+ **Calibration (measured 2026-10-07 from transcript + commit timestamps; 21 clean bt-execute runs across Runtime and AgentWorkspace, 242 tasks, waits on the user and planning subagents excluded):**
101
100
 
102
- The formula predicts these within ±25 % except auto-exposure-parity, which came in twice as fast as any formula would guess. Every one of these plans estimated itself **2–4.5× too high**, so distrust a large number before you distrust a small one.
101
+ | Kind | Plans (min/task) | Median |
102
+ | --- | --- | --- |
103
+ | Code | effort-selector 5 · scene-loading-progress 7 · unity-gzip-sidecar-binaries 10 · texture-image-deduplication 11 | 8.5 |
104
+ | Live | auto-exposure-parity 10 · procedural-skybox 16 · camera-antialiasing-parity 16 · no-unbilled-usage 16 · kie-sound 16 · tool-loop 17 · media-gateways 18 · managed-agents-engine 21 · scene-dispose-memory-leaks 25 | 16.5 |
105
+ | Unity / parity / GPU | shuriken-particle-system 22 · unity-gui-pipeline-parity 23 · unity-export-parity-gaps 27 · camera-antialiasing-taa 28 · hdrp-raster-parity-followup 31 · hdrp-complete-parity 37 · terrain-performance 38 · hdrp-raytracing-polyfill 40 | 29 |
103
106
 
104
- Write a table `Phase | Tasks | 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 lands above ~30 min per task, the estimate is wrong before the plan is: re-check it. An estimate, never a pin.
107
+ These rates put 17 of the 21 runs inside the −30 % / +40 % range and 20 of 21 within 0.6–1.6× (the old flat `tasks × 17 + phases × 10`: 13 of 21 within 0.6–1.6×), and the misses ran fast, not slow. Under the flat rate, plans estimated themselves about **2.5× too high** when the work was mostly code and up to **2× too low** when it was Unity, parity or GPU work — wrong in both directions, so classify every task.
108
+
109
+ To recalibrate later, read the `⏱` lines bt-execute writes to each `<plan>_autopilot.md` — they carry the plan's estimate, active minutes per phase and per run, and waits already separated out.
110
+
111
+ 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 ~40 or below ~6 min per task, the estimate is wrong before the plan is: re-check it. An estimate, never a pin.
105
112
 
106
113
  **`## How to execute this plan`** — this text verbatim:
107
114