@babylonjs-toolkit/agent 1.1.80 → 1.1.82

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.
@@ -40,6 +40,7 @@ Git is optional. **Where git is available:** stop now if the working tree has un
40
40
  - **If `SPEC.md` is missing or an empty stub, ask the user first** whether to create it from the scaffold at the end of this file. Yes → write it, then continue against it. No → continue, and note in the spec: `"No project SPEC.md content yet — following existing codebase conventions."`
41
41
  - **`DESIGN.md`** (only if the feature has UI): it is the single source of truth for design — never Figma or invented values. Cite the tokens and shared components the feature uses in 3–8 bullets. Missing → note `"No DESIGN.md design system found — follow the existing UI conventions already in the codebase."` No UI → say no design tokens apply.
42
42
  - **Recon docs (`.agents/recon/*_recon.md`, written by bt-recon):** if any recon's `scope` covers a system this feature touches, read its Summary, Architecture, the relevant Feature Inventory / UI Reference / External Interfaces sections, Known Issues and Extension Points — it is the grounding for code nobody else documented, so build on it instead of re-deriving it. Cite it in `## Research Notes`. If its `commit:` is well behind HEAD for the files this feature touches, note the drift there and suggest `bt-recon --refresh`.
43
+ - **Recons the brief cites (`… using @<path>_recon.md`):** bt-profile's fix commands cite the recon of the code behind the fixes, kept in the profile's own folder (`.agents/profile/<slug>/recon/`) or in `.agents/recon/`. Always read a cited recon in full, whatever its scope says. It is the map of the code the fix changes: callers, invariants, tests, extension points. Turn what it says must not break into Acceptance Criteria or named test cases. **Copy each cited recon into this feature's `recon/` folder** and cite the copy in `## Research Notes`. The feature folder then holds everything it rests on, and still works after the profile is archived or moved. A cited recon that does not exist yet: say so, give the `/bt-recon` command that makes it (the profile report's **Copy recon command**), and carry on with your own research.
43
44
  - **Research the codebase, sized to the feature.** Find the closest existing feature to mirror, the real conventions, and the integration points. For a `small` feature do this inline; fan out to up to 3 **read-only** subagents only for `medium` / `large` (they report findings and file paths, never draft the spec; if a finding contradicts SPEC.md, raise it with the user rather than resolving it silently). Record the result in the spec's `## Research Notes` so bt-plan starts from it.
44
45
 
45
46
  ## Step 3. Sibling-skill patterns
@@ -75,6 +76,7 @@ Interview the user until the design is decided, after Steps 2–3 so questions a
75
76
  documents/ <feature_slug>_spec.md, _plan.md, _autopilot.md, _dashboard.js, _live.js, and any builder intake file
76
77
  snapshots/ the meaningful snapshots of the build, shown by the dashboard
77
78
  tests/ every test the plan's tasks write
79
+ recon/ copies of the recons the brief cites (`using @…_recon.md`), when it cites any
78
80
  ```
79
81
 
80
82
  Print `✍️ [bt-spec] Drafting .agents/specs/<feature_slug>/documents/<feature_slug>_spec.md …`, then 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; never touch what a folder holds), and write the spec to `.agents/specs/<feature_slug>/documents/<feature_slug>_spec.md` (creating the folders) using the project's `FEATURE.md` template if it exists (add any header field or section below that it lacks), otherwise this structure. No implementation detail or code examples. Then go straight to Step 6 for this feature.
@@ -1,101 +0,0 @@
1
- # Plan summary — how to write `.agents/specs/<slug>/summary.md`
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.
6
-
7
- ## When
8
-
9
- - Write it only when a run ends with the plan **`complete`**, meaning every task in the plan file is `- [x]`.
10
- A `paused` or `incomplete` plan gets no summary, because a summary of unfinished work would mislead.
11
- - **A reopened plan** is one that had tasks added after it was complete. The summary already written stays as it
12
- is while the added tasks run. The run that completes them rewrites the summary so it describes the plan as it
13
- now stands. Keep the first date in the lead and add the new one:
14
- `**Fixed on 2026-10-19; updated on 2026-11-02.**`, then one sentence on what the update added.
15
- - After writing it, set `afterAction.planSummary` to `"summary.md"` in the dashboard data, so the After
16
- Action Report links to it.
17
-
18
- ## Who it is for, and how it reads
19
-
20
- - **Readers who never see the code.** Name what they see: screens, panels, buttons and settings, with the
21
- on-screen labels in **bold** exactly as they appear. Never include file names, class or function names, task
22
- IDs, commit hashes, test counts, phase numbers or agent roles.
23
- - **Concrete, not vague.** Use real values: sizes, counts, devices, the symptom a user would have noticed
24
- ("came out at 3400×2200 one time and 2528×1696 another"). Prefer one exact sentence to three general ones.
25
- - **Short sentences in plain words.** Use a list when there are three or more parallel items, and a numbered
26
- list when the order matters or later text refers to the items.
27
- - **Only what is true and was checked.** Take every fact from the spec, the plan, the run log and the After
28
- Action Report. If something was not checked, do not say it works.
29
-
30
- ## Structure
31
-
32
- The sections below come in this order. **Leave out any section that does not apply to this plan**, with no
33
- empty heading, no "N/A" and no filler. **Adapt a heading's wording to the plan** where the default does not fit
34
- (for example, a new feature has nothing "wrong").
35
-
36
- 1. **`# <Plan title>: <the outcome in one line>`**: the plan's own title, followed by what it delivered,
37
- stated as a result a user would recognise ("Camera Session: a saved view remembers every render setting").
38
- Always present.
39
- 2. **The lead**: always present. It opens with a bold date, `**Fixed on YYYY-MM-DD.**` for a fix,
40
- `**Delivered on YYYY-MM-DD.**` for a new feature, or `**Finished on YYYY-MM-DD.**` for anything else (for
41
- example a speed-up or a clean-up). Follow the date with two or three sentences on what now works.
42
- 3. **`## The plan summary`**: the plan in short for a non-technical reader, and what it means for them. Cover
43
- whether anything needs migrating, what behaves differently for existing content, and any one-time action
44
- that fixes it. Leave the section out when nothing changes for existing users, data or content.
45
- 4. **`## What was wrong`**: for a fix, a numbered list of the problems as a user experienced them, each with
46
- its visible symptom. For a feature, use **`## Why it was needed`**: what users could not do before. For a
47
- speed-up, use **`## What was slow`**. Leave it out when there is nothing to say.
48
- 5. **`## What has changed`**: one bullet per change, each beginning with a bold sentence that states the new
49
- behaviour. Each one should answer a point in section 4.
50
- 6. **`## What has not changed`**: known issues left alone on purpose, and the limits of the plan (settings that
51
- belong to the device, cases not covered), each with the reason. Leave it out when there are none.
52
- 7. **`## How it was checked`**: the setup (browser, device, which data, and whether anything was saved to a
53
- server), then the real scenarios that were run and the exact results they gave. Leave it out only when
54
- nothing a reader would recognise was checked.
55
-
56
- ## Example (a fix plan, with every section present)
57
-
58
- ```markdown
59
- # Camera Session: a saved view remembers every render setting
60
-
61
- **Fixed on 2026-10-19.** A saved Camera Session view now keeps every setting its render depends on. Loading a
62
- view shows all of them in the panel. **Render Current View** and **Render All Cameras** now render each view
63
- with its own settings.
64
-
65
- ## The plan summary
66
-
67
- Saved views keep working; nothing needs migrating. Two things are worth knowing:
68
-
69
- - **Per-instance object IDs come back on** for a view saved before this fix, because that view never stored the
70
- setting. If a view was used with it off, turn it off and Update the view once.
71
- - **An orthographic view saved before this fix still gets its framing size worked out the old way** each time it
72
- is loaded. It no longer gets wider. Update it once to store its framing.
73
-
74
- ## What was wrong
75
-
76
- 1. **Render All Cameras ignored each view's own output settings.** It used the panel's width, height, size
77
- preset, screen percentage and Image Types for every view, so the same camera could come out at 3400×2200 one
78
- time and 2528×1696 another.
79
- 2. **Load did not show every saved setting in the panel.** The Line Sources boxes always showed unticked, and
80
- ticking one turned the other three off.
81
-
82
- ## What has changed
83
-
84
- - **Both render buttons render each view with its own saved settings.** A view now comes out the same from
85
- Render All as from Load + Render Current View.
86
- - **Load shows every saved setting in the panel**, including Line Sources. Ticking one box changes only that one.
87
-
88
- ## What has not changed
89
-
90
- - **Some settings belong to the device, not to a view**, so they are not saved with one: the performance level
91
- and the anti-aliasing sample count (lower on phones). The same view can look slightly different on a phone
92
- and on a desktop.
93
-
94
- ## How it was checked
95
-
96
- We tested in Chrome using local cards only; nothing was saved to the server.
97
-
98
- - Render All was run on three views with the panel left at 640×480. Each view rendered at its own size with its
99
- own images: one at 2528×1696, one at 1200×800, and one with no saved output settings at the panel's 640×480.
100
- - Pressing Update right after Render All changed nothing in the last view.
101
- ```