baldart 4.21.0 → 4.21.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,15 @@ 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.21.1] - 2026-06-09
9
+
10
+ **Nightly reconciliation of the canonical API registries (errors.md / schemas.md).** Makes the nightly `doc-review` run explicitly keep `${paths.api_errors}` and `${paths.api_schemas}` in sync with the day's code changes, instead of relying on the generic doc↔code drift step. **PATCH** (strengthens existing routine/agent behaviour; no new agent/skill/command/config key).
11
+
12
+ ### Changed
13
+
14
+ - **`framework/routines/doc-review.routine.yml`** — new step 3b: when `features.has_api_docs: true`, reconcile the canonical `errors.md` (stable error codes added/renamed/removed → apply or flag `DOC_GAP`) and `schemas.md` (Zod/TS shape changes → update or flag `SCHEMA_DRIFT`) against the last-24h commits. Skips silently when the paths are unset.
15
+ - **`framework/.claude/agents/doc-reviewer.md`** — new "Canonical API registries — reconciliation (nightly-owned)" section: the agent now explicitly OWNS the code→doc direction for the two registries (the `doc-writing-for-rag` skill owns the doc-authoring direction). Ties together the existing `SCHEMA_DRIFT` + error-code checks.
16
+
8
17
  ## [4.21.0] - 2026-06-09
9
18
 
10
19
  **Code knowledge graph layer (Graphify) + Karpathy wiki rebind + nightly doc-alignment command.** Introduce [Graphify](https://github.com/safishamsi/graphify) as the new retrieval engine replacing the removed RAG (v4.20.0): a single language-agnostic tool (tree-sitter, 28 langs, local/offline, native Leiden communities; pip `graphifyy`, CLI `graphify` + `graphify-mcp`). Opt-in, runtime-detected, silent fallback to LSP→Grep→Git. **MINOR** (additive; new agent + 2 skills + 1 routine + 1 protocol module; new config key `features.has_code_graph` + `graph.*` propagated end-to-end per the schema-change rule).
package/VERSION CHANGED
@@ -1 +1 @@
1
- 4.21.0
1
+ 4.21.1
@@ -409,6 +409,21 @@ Beyond route existence, also check schema diffs:
409
409
  - For new fields in a documented payload: NEEDS_UPDATE.
410
410
  - For removed fields still in doc: ORPHAN_FIELD.
411
411
 
412
+ ## Canonical API registries — reconciliation (nightly-owned)
413
+
414
+ When `features.has_api_docs: true`, you OWN keeping the two canonical registries in
415
+ sync with code on the nightly `doc-review` run (and on any API-doc rewrite):
416
+ - **`${paths.api_errors}`** (errors.md) — the single registry of stable error codes.
417
+ A code added / renamed / removed in the code → apply it to the right domain
418
+ section (trivial fix) or flag `DOC_GAP`. Endpoint docs link to the **domain
419
+ anchor**; they must never duplicate the table.
420
+ - **`${paths.api_schemas}`** (schemas.md) — the documented projection of the
421
+ Zod/TS shapes (Zod-in-code stays the SSOT). A shape change → update the table or
422
+ flag `SCHEMA_DRIFT`.
423
+ Skip silently when either path is unset. This is the code→doc direction that keeps
424
+ the registries authoritative; the `doc-writing-for-rag` skill handles the
425
+ doc-authoring (APPEND, no duplication) direction.
426
+
412
427
  ## Endpoint Count Reconciliation
413
428
 
414
429
  Applies **when the project uses file-system route handlers** (e.g. Next.js App Router `route.ts`). Adapt the commands to the project's actual API layout — the paths below are the common Next.js convention, not a hardcoded assumption. The convention: SSOT count in `api/index.md` = sum of HTTP method exports (a handler exporting GET + POST counts as 2 endpoints).
@@ -19,6 +19,14 @@ prompt: |
19
19
  references. Flag drift as `DOC_DRIFT`.
20
20
  3. For each source file change that landed without a corresponding doc
21
21
  update, flag `DOC_GAP`.
22
+ 3b. If `features.has_api_docs: true`, reconcile the CANONICAL registries
23
+ against the day's code changes:
24
+ - `${paths.api_errors}` (errors.md): a stable error code added / renamed /
25
+ removed in the code → apply it to the registry (trivial) or flag
26
+ `DOC_GAP`. Endpoint docs must link to the domain anchor, never duplicate.
27
+ - `${paths.api_schemas}` (schemas.md): a route's Zod/TS request/response
28
+ shape changed → update the matching table or flag `SCHEMA_DRIFT`.
29
+ Skip silently when either path is unset.
22
30
  4. If the project ships a design-system SSOT, run the standard DS drift
23
31
  checks (INDEX coverage, per-component accuracy, animations
24
32
  reconciliation, tokens reconciliation).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "baldart",
3
- "version": "4.21.0",
3
+ "version": "4.21.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"