baldart 4.98.0 → 4.98.2

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,25 @@ 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.2] - 2026-07-02
9
+
10
+ **Negative guard: the codebase-understanding step is `codebase-architect`, not the generic built-in search agent.** A third live session — a data-wiring task (replace a hardcoded `"unità"` label with the real unit-of-measure in an order-wizard `ProductRow`) — delegated the code-path trace to the built-in `Explore` agent instead of `codebase-architect`, bypassing the profile engine, Reuse Analysis, Canonical Evidence, and the Return Contract. Diagnosed carefully (and deliberately *not* over-fitted): this was **not** a `PROFILE=ui` miss — the task's substance is data/logic wiring (product → UoM → loader → label), whose fitting profile is `feature`, not `ui`; the profile axis was left untouched. The real deviation was on the **agent-selection** axis, and it matches the recurring v4.97.1 shape: a positive mandate ("invoke `codebase-architect`") with no explicit "and NOT the generic explorer" guard (the existing `AGENTS.md` "never auto-route to a generic agent" rule is scoped to the *failure-fallback* case, not the initial choice).
11
+
12
+ - `AGENTS.md` primitive `1.7.1 → 1.7.2` (§ Non-negotiables): the understanding step goes through `codebase-architect` with the matching profile — **not the generic built-in search / `general-purpose` agent** (runtime-generic phrasing for cross-tool parity).
13
+ - `CLAUDE.md` primitive `1.4.1 → 1.4.2` (§ Subagents): names the Claude-native built-in explicitly — use `subagent_type: codebase-architect` + `PROFILE`, **not `Explore` / `general-purpose`**; `Explore` stays fine for a throwaway file-location grep, never for grounding.
14
+
15
+ **PATCH** — one-clause guard, no new surface, no config key, no install-layout change. The `ui`-vs-`feature` profile refinement (a UI-*framed* but data-*substance* task should route `feature`/`impact`, not `ui`) was **considered and deferred** to avoid churn on the just-stabilized v4.98.0/1 rule. **Codex parity: portable** — AGENTS.md carries the runtime-generic guard, CLAUDE.md names the built-in. **Not a `baldart.config.yml` key** → the schema-change propagation rule does NOT apply.
16
+
17
+ ## [4.98.1] - 2026-07-02
18
+
19
+ **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:
20
+
21
+ - `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).
22
+ - `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`".
23
+ - **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.
24
+
25
+ **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.
26
+
8
27
  ## [4.98.0] - 2026-07-02
9
28
 
10
29
  **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.2
@@ -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,34 @@ 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.2 — 2026-07-02
8
+
9
+ - **Negative guard: the understanding step is `codebase-architect`, NOT a generic search
10
+ agent.** A live session on a data-wiring task (replace a hardcoded `"unità"` with the real
11
+ unit-of-measure in an order-wizard row) delegated the code-path trace to the generic
12
+ built-in `Explore` agent instead of `codebase-architect` — bypassing the profile engine,
13
+ Reuse Analysis, Canonical Evidence, and the Return Contract. Root cause is the recurring
14
+ v4.97.1 shape: a positive mandate ("invoke `codebase-architect`") with no explicit "and NOT
15
+ the generic explorer" guard (the existing "never auto-route to a generic agent" rule is
16
+ scoped to the *fallback* case, not the initial choice). The § Non-negotiables MUST now
17
+ states the understanding step goes through `codebase-architect` with the matching profile —
18
+ **not the generic built-in search / `general-purpose` agent**. Portable (Claude + Codex);
19
+ the profile axis was deliberately left untouched (this task's fitting profile is `feature`,
20
+ a data-wiring trace — not `ui`).
21
+
22
+ ## 1.7.1 — 2026-07-02
23
+
24
+ - **UI *verification* also routes `PROFILE=ui`, not just UI *change*** (follow-up to 1.7.0).
25
+ 1.7.0 scoped the UI grounding mandate entirely to "change/build", so a read-only UI
26
+ verification ("is page X already on the new layout, on desktop and tablet?") fell in a gap
27
+ and a literal reader answered it with an inline Grep. Now the mandate reads "any UI **work**"
28
+ — a change OR a **verification/question whose correct answer needs design-system-spec or
29
+ responsive/state grounding**. A **bare symbol-presence check** ("does file X import Y" — a
30
+ pure Grep, no correctness/responsive judgment) stays explicitly exempt alongside the Trivial
31
+ one-liner, so narrow lookups keep their fast path. Verified against a live session: the fix
32
+ correctly fired the architect on the *change* ("migriamo"); only the initial *verification*
33
+ was uncovered — this closes it. Portable (Claude + Codex).
34
+
7
35
  ## 1.7.0 — 2026-07-02
8
36
 
9
37
  - **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.2
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,17 @@ 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. The understanding step goes through `codebase-architect` (with the
43
+ matching profile) — **NOT the generic built-in search / `general-purpose` agent**, which
44
+ lacks the profile engine, Reuse Analysis, Canonical Evidence, and the Return Contract; that
45
+ is the agent to invoke, not a generic explorer.
39
46
  Only if NEITHER invocation mechanism exists, degrade explicitly to inline retrieval
40
47
  (code-graph → LSP → Grep) and SAY SO.
41
48
  - MUST have any **Heavy** plan (see § Change Tiers) reviewed BEFORE presenting it for
@@ -106,14 +113,16 @@ machinery (plan mode, plan review, delegation, worktree, backlog card) applies.
106
113
  doubt, treat it as Light** and escalate only when a Heavy trigger is actually present.
107
114
  **Codebase understanding (`codebase-architect` + the matching profile, § Non-negotiables) is
108
115
  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`.
116
+ too; only a Trivial one-liner or a bare symbol-presence Grep skips it, and any UI work
117
+ change OR a spec/responsive-grounded verification — always grounds via `PROFILE=ui`.
110
118
 
111
119
  - **Trivial** — a one-liner, typo, or obvious bug with a clear fix. Just do it.
112
120
  - **Light** — the default for most work. Any change that does **not** hit a Heavy trigger,
113
121
  even if it spans several files within one coherent area. → Implement **directly on the
114
122
  current branch**: no plan mode, no plan-review gate, no worktree, no backlog card. The
115
123
  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`).
124
+ `codebase-architect` first** when the task needs real understanding (UI work — change or
125
+ spec/responsive-grounded verification → `PROFILE=ui`).
117
126
  Docs stay in sync and the pre-commit gates still run.
118
127
  - **Heavy** — escalate ONLY when the change: introduces a new DB schema / migration; adds a
119
128
  new external dependency; adds a new API contract / route or a new domain entity; is a wide
@@ -4,6 +4,24 @@ 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.2 — 2026-07-02
8
+
9
+ - **Name the built-in `Explore` guard for the understanding step**: § Subagents now says the
10
+ codebase-understanding step uses `subagent_type: codebase-architect` + the matching `PROFILE`,
11
+ **not the built-in `Explore` / `general-purpose` search agent** (those return raw excerpts;
12
+ only `codebase-architect` runs the profile engine / Reuse Analysis / Canonical Evidence /
13
+ Return Contract). `Explore` stays fine for a throwaway file-location grep. Mirrors AGENTS
14
+ primitive 1.7.2 (which phrases the guard runtime-generically for cross-tool parity).
15
+
16
+ ## 1.4.1 — 2026-07-02
17
+
18
+ - **UI verification also grounds via `PROFILE=ui`** (follow-up to 1.4.0): the Plan Mode
19
+ paragraph now says "every UI **task**" grounds — a change OR a verification/question whose
20
+ correct answer needs design-system-spec or responsive/state grounding — with a bare
21
+ symbol-presence check ("does file X import Y") explicitly exempt. Mirrors AGENTS primitive
22
+ 1.7.1. Closes the gap where a read-only "is page X on the new layout?" was answered by an
23
+ inline Grep because 1.4.0 mandated grounding only on UI *changes*.
24
+
7
25
  ## 1.4.0 — 2026-07-02
8
26
 
9
27
  - **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.2
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
@@ -42,6 +45,11 @@ a small tweak. Only a genuine Trivial one-liner skips it. For a Heavy task:
42
45
 
43
46
  - Spawn subagents via the Task tool (`subagent_type: <name>`); the roster + routing is
44
47
  `.claude/agents/REGISTRY.md`.
48
+ - For the **codebase-understanding step** (`AGENTS.md` § Non-negotiables) use
49
+ `subagent_type: codebase-architect` with the matching `PROFILE` — **not the built-in
50
+ `Explore` / `general-purpose` search agent**. Those return raw excerpts; only
51
+ `codebase-architect` runs the profile engine, Reuse Analysis, Canonical Evidence, and the
52
+ Return Contract. `Explore` is fine for a throwaway file-location grep, never for grounding.
45
53
  {{#output_style}}
46
54
  - Output style: `{{ output_style }}` is active (select via `/config` → Output Style).
47
55
  {{/output_style}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baldart",
3
- "version": "4.98.0",
3
+ "version": "4.98.2",
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"