baldart 4.98.0 → 4.98.1

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/CHANGELOG.md CHANGED
@@ -5,6 +5,16 @@ All notable changes to BALDART will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [4.98.1] - 2026-07-02
9
+
10
+ **UI *verification* also routes `PROFILE=ui`, not just UI *change* — closing the one gap v4.98.0 missed.** A live post-update session confirmed v4.98.0 works where it matters: on the actual change ("migriamo") Claude correctly spawned `codebase-architect (PROFILE=ui)`. The only borderline case was the *preceding* verification ("mi verifichi che /products/new su desktop e tablet sia già sul nuovo page layout") — answered with an inline Grep. Root cause was in the v4.98.0 wording itself: the UI grounding mandate was scoped entirely to the verb "change/build", so a literal reader treated a read-only UI verification as outside it. Fixed by broadening "any UI **change**" to "any UI **work** — a change OR a verification/question whose correct answer needs design-system-spec or responsive/state grounding" across the same three surfaces:
11
+
12
+ - `AGENTS.md` primitive `1.7.0 → 1.7.1` (§ Non-negotiables + § Change Tiers carve-out + Light bullet), `CLAUDE.md` primitive `1.4.0 → 1.4.1` (Plan Mode paragraph).
13
+ - `agents/analysis-profiles.md`: no-token inference rule #1 now includes "verifying/inspecting the design-system adoption or responsive state of" a component/page/layout; § 3 routing row broadened to "ad-hoc UI change OR adoption/responsive verification outside a skill → `ui`".
14
+ - **A bare symbol-presence check** ("does file X import Y" — a pure Grep, no correctness/responsive judgment) is now explicitly exempt alongside the Trivial one-liner, so narrow lookups keep their fast path and the proportionality concern (no full architect spawn for a yes/no import check) is respected.
15
+
16
+ **PATCH** — same-day refinement of the v4.98.0 rule, no new surface, no config key, no install-layout change. **Codex parity: portable** — pure prose in the shared skeleton + the `agents/` module both runtimes read. **Not a `baldart.config.yml` key** → the schema-change propagation rule does NOT apply.
17
+
8
18
  ## [4.98.0] - 2026-07-02
9
19
 
10
20
  **Codebase understanding is tier-orthogonal — and every UI change grounds via `PROFILE=ui`, even a "quick" one.** A live Claude session took a small ad-hoc UI request ("modifichiamo al volo questa pagina su desktop e tablet, serve il back button sull'header") and went straight to `find`/`grep`/`Read` instead of spawning `codebase-architect` with `PROFILE=ui` — whereas Codex, on the same framework, routes the profile correctly. An adversarial pass (3 skeptics) **refuted the obvious diagnosis** ("Codex reads a stricter doc than Claude"): `CLAUDE.md` states AGENTS.md is loaded automatically alongside it, so Claude reads the *same* unconditional `codebase-architect` MUST that Codex reads — this was a Claude-side *misreading* of an already-universal rule, not a weaker rule. The real drivers, confirmed with `path:line`:
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.98.0
1
+ 4.98.1
@@ -30,8 +30,10 @@ instead of restating search strategy).
30
30
  never read this module end-to-end.
31
31
  - **No token → deterministic inference**, in this exact priority order (first match wins):
32
32
  1. prompt concerns UI — a mockup / `links.design` / `component_bindings` / design-system
33
- registry / tokens, OR building or changing a component, page, header, layout, styling,
34
- or responsive/breakpoint behavior `ui`
33
+ registry / tokens, OR building, changing, OR **verifying/inspecting the design-system
34
+ adoption or responsive state of** a component, page, header, layout, styling, or
35
+ responsive/breakpoint behavior → `ui`. (A bare symbol-presence check — "does file X
36
+ import Y" — is a plain Grep, not this profile.)
35
37
  2. prompt asks blast-radius / affected surface / "what depends on" / refactor scope →
36
38
  `impact`
37
39
  3. prompt reports an error / crash / regression / "non funziona" → `bug`
@@ -189,7 +191,7 @@ payload should never rely on `full` — pass a token.
189
191
 
190
192
  | Caller | Profile |
191
193
  |---|---|
192
- | ad-hoc UI change outside a skill (component / page / header / styling / responsive) | `ui` |
194
+ | ad-hoc UI change OR adoption/responsive verification outside a skill (component / page / header / styling / responsive) | `ui` |
193
195
  | ad-hoc pre-implementation grounding outside a skill (non-UI) | `feature` |
194
196
  | `/new` implement.md Phase 1 step 3 · `new2.js` B7 | `ui` if card has non-empty `links.design` OR `links.design_src` (the `hasMockup` bit), else `feature` |
195
197
  | `new-final-review.js` / `new-card-review.js` Phase Baseline · `/codexreview` Step 1 | `baseline` |
@@ -4,6 +4,19 @@ Formato: [Keep a Changelog](https://keepachangelog.com/) · [SemVer](https://sem
4
4
  Questo è il changelog INTERNO dello skeleton spedito (`primitive_version`), separato dal
5
5
  file `AGENTS.md` generato nel consumer e indipendente dal `VERSION` del framework.
6
6
 
7
+ ## 1.7.1 — 2026-07-02
8
+
9
+ - **UI *verification* also routes `PROFILE=ui`, not just UI *change*** (follow-up to 1.7.0).
10
+ 1.7.0 scoped the UI grounding mandate entirely to "change/build", so a read-only UI
11
+ verification ("is page X already on the new layout, on desktop and tablet?") fell in a gap
12
+ and a literal reader answered it with an inline Grep. Now the mandate reads "any UI **work**"
13
+ — a change OR a **verification/question whose correct answer needs design-system-spec or
14
+ responsive/state grounding**. A **bare symbol-presence check** ("does file X import Y" — a
15
+ pure Grep, no correctness/responsive judgment) stays explicitly exempt alongside the Trivial
16
+ one-liner, so narrow lookups keep their fast path. Verified against a live session: the fix
17
+ correctly fired the architect on the *change* ("migriamo"); only the initial *verification*
18
+ was uncovered — this closes it. Portable (Claude + Codex).
19
+
7
20
  ## 1.7.0 — 2026-07-02
8
21
 
9
22
  - **Codebase understanding is tier-orthogonal, and UI work always grounds via `PROFILE=ui`**:
@@ -1,4 +1,4 @@
1
- <!-- baldart-primitive: name=AGENTS primitive_version=1.7.0
1
+ <!-- baldart-primitive: name=AGENTS primitive_version=1.7.1
2
2
  This is the SHIPPED SKELETON. The writer (src/utils/root-primitives.js) strips
3
3
  this banner, resolves every {{ slot }} / {{> partial }} / {{#flag}} from
4
4
  baldart.config.yml (+ package.json/README), merges .baldart/overlays/AGENTS.md,
@@ -32,10 +32,14 @@ mechanics — this file remains the single source of truth for the protocol.
32
32
  context) · `ui` (design-system / component scope) · `baseline` (review grounding over a
33
33
  diff). Contract + per-profile scoping: `agents/analysis-profiles.md`. This applies
34
34
  **regardless of tier** (§ Change Tiers): a **Light** change still grounds first whenever
35
- acting correctly needs understanding you don't already have, and **any UI change routes
36
- `PROFILE=ui`** (design-system / component grounding) even for a small tweak. Only a genuine
37
- **Trivial** one-liner a typo or an obvious self-contained fix — skips it; starting with an
38
- inline Grep is NOT a substitute when the change needs cross-file or design-system grounding.
35
+ acting correctly needs understanding you don't already have, and **any UI work routes
36
+ `PROFILE=ui`** (design-system / component grounding) even for a small tweak a change, OR a
37
+ **verification/question** whose correct answer needs design-system-spec or responsive/state
38
+ grounding (e.g. "is page X already on the new layout, on desktop and tablet?"). Only a genuine
39
+ **Trivial** one-liner (a typo, an obvious self-contained fix) or a **bare symbol-presence
40
+ check** (does file X import Y — a pure Grep, no correctness/responsive judgment) skips it;
41
+ starting with an inline Grep is NOT a substitute when the task needs cross-file or
42
+ design-system grounding.
39
43
  Only if NEITHER invocation mechanism exists, degrade explicitly to inline retrieval
40
44
  (code-graph → LSP → Grep) and SAY SO.
41
45
  - MUST have any **Heavy** plan (see § Change Tiers) reviewed BEFORE presenting it for
@@ -106,14 +110,16 @@ machinery (plan mode, plan review, delegation, worktree, backlog card) applies.
106
110
  doubt, treat it as Light** and escalate only when a Heavy trigger is actually present.
107
111
  **Codebase understanding (`codebase-architect` + the matching profile, § Non-negotiables) is
108
112
  NOT part of this tier-gated machinery** — it precedes the tier decision and applies to Light
109
- too; only a Trivial one-liner skips it, and any UI change always grounds via `PROFILE=ui`.
113
+ too; only a Trivial one-liner or a bare symbol-presence Grep skips it, and any UI work
114
+ change OR a spec/responsive-grounded verification — always grounds via `PROFILE=ui`.
110
115
 
111
116
  - **Trivial** — a one-liner, typo, or obvious bug with a clear fix. Just do it.
112
117
  - **Light** — the default for most work. Any change that does **not** hit a Heavy trigger,
113
118
  even if it spans several files within one coherent area. → Implement **directly on the
114
119
  current branch**: no plan mode, no plan-review gate, no worktree, no backlog card. The
115
120
  orchestrator may edit inline or delegate for volume, but **still grounds via
116
- `codebase-architect` first** when the change needs real understanding (UI `PROFILE=ui`).
121
+ `codebase-architect` first** when the task needs real understanding (UI work — change or
122
+ spec/responsive-grounded verification → `PROFILE=ui`).
117
123
  Docs stay in sync and the pre-commit gates still run.
118
124
  - **Heavy** — escalate ONLY when the change: introduces a new DB schema / migration; adds a
119
125
  new external dependency; adds a new API contract / route or a new domain entity; is a wide
@@ -4,6 +4,15 @@ Formato: [Keep a Changelog](https://keepachangelog.com/) · [SemVer](https://sem
4
4
  Changelog INTERNO dello stub spedito (`primitive_version`), separato dal `CLAUDE.md`
5
5
  generato nel consumer e indipendente dal `VERSION` del framework.
6
6
 
7
+ ## 1.4.1 — 2026-07-02
8
+
9
+ - **UI verification also grounds via `PROFILE=ui`** (follow-up to 1.4.0): the Plan Mode
10
+ paragraph now says "every UI **task**" grounds — a change OR a verification/question whose
11
+ correct answer needs design-system-spec or responsive/state grounding — with a bare
12
+ symbol-presence check ("does file X import Y") explicitly exempt. Mirrors AGENTS primitive
13
+ 1.7.1. Closes the gap where a read-only "is page X on the new layout?" was answered by an
14
+ inline Grep because 1.4.0 mandated grounding only on UI *changes*.
15
+
7
16
  ## 1.4.0 — 2026-07-02
8
17
 
9
18
  - **Break the "Light skips delegation → Light skips architect" conflation**: the Plan Mode
@@ -1,4 +1,4 @@
1
- <!-- baldart-primitive: name=CLAUDE primitive_version=1.4.0
1
+ <!-- baldart-primitive: name=CLAUDE primitive_version=1.4.1
2
2
  SHIPPED SKELETON. The writer strips this banner, resolves {{ slot }}/{{#flag}} from
3
3
  baldart.config.yml, merges .baldart/overlays/CLAUDE.md, stamps a baldart-generated
4
4
  marker, and writes the result to the repo root.
@@ -19,8 +19,11 @@ Plan mode is for **Heavy** changes only (see `AGENTS.md` § Change Tiers). **Lig
19
19
  them directly. When in doubt, treat it as Light. They do **NOT**, however, skip codebase
20
20
  understanding: the `codebase-architect` + `PROFILE` invocation (`AGENTS.md` § Non-negotiables)
21
21
  is **tier-orthogonal** — a Light change still grounds via it whenever acting correctly needs
22
- understanding you don't already have, and **every UI change grounds via `PROFILE=ui`** even for
23
- a small tweak. Only a genuine Trivial one-liner skips it. For a Heavy task:
22
+ understanding you don't already have, and **every UI task grounds via `PROFILE=ui`** a change,
23
+ OR a verification/question whose correct answer needs design-system-spec or responsive/state
24
+ grounding (e.g. "is page X already on the new layout, on desktop and tablet?") — even for a small
25
+ tweak. Only a genuine Trivial one-liner or a bare symbol-presence check (does file X import Y)
26
+ skips it. For a Heavy task:
24
27
 
25
28
  - Enter plan mode (`EnterPlanMode`) before writing code.
26
29
  - Invoke `codebase-architect` before writing the plan — never plan blind. Pass the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baldart",
3
- "version": "4.98.0",
3
+ "version": "4.98.1",
4
4
  "description": "Claude Agent Framework - Reusable framework for coordinating AI agents and humans in software projects",
5
5
  "bin": {
6
6
  "baldart": "./bin/baldart.js"