@dzhechkov/skills-feature-adr 1.3.4 → 1.3.6

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.
Files changed (2) hide show
  1. package/README.md +72 -13
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -214,22 +214,42 @@ gate — not discovered in production.
214
214
 
215
215
  ## Pipeline Steps
216
216
 
217
- | Step | Name | Tiers | Model | Agentic QE Skill | Output |
218
- |------|------|-------|-------|------------------|--------|
219
- | 0 | Complexity Router | All | haiku | — | `00_complexity_assessment.md` |
220
- | 1 | Requirements | All | sonnet | — | `01_requirements.md` |
221
- | 2 | Research | L/XL | sonnet | — | `02_research.md` |
222
- | 3 | ADR + Shift-Left | M+ | opus | shift-left-testing | `03_adr/001-*.md` |
223
- | 3.5 | QCSD Ideation Swarm | M+ | sonnet | qcsd-ideation-swarm | `03.5_ideation_report.md` |
224
- | 4 | DDD | L/XL | opus | — | `04_domain_model.md` |
225
- | 5 | Architecture | M+ | opus | — | `05_architecture.md` + diagrams |
226
- | 6 | SPARC-GOAP Plan | All | sonnet | code-goal-planner | `06_implementation_plan.md` |
227
- | 7 | Code | All | opus | tdd-london-chicago* | `07_code_changes/` |
228
- | 8 | QE + Brutal Honesty | All | sonnet | brutal-honesty-review | `08_qe_report.md` |
229
- | 9 | Fleet QE | L/XL | sonnet | 5 skills (4 agents) | `09_fleet_qe_assessment.md` |
217
+ | Step | Name | Tiers | Model | Fable? | Agentic QE Skill | Output |
218
+ |------|------|-------|-------|:------:|------------------|--------|
219
+ | 0 | Complexity Router | All | haiku | ✅ | — | `00_complexity_assessment.md` |
220
+ | 1 | Requirements | All | sonnet | ✅ | — | `01_requirements.md` |
221
+ | 2 | Research | L/XL | sonnet | ✅ | — | `02_research.md` |
222
+ | 3 | ADR + Shift-Left | M+ | opus | ⚠️ | shift-left-testing | `03_adr/001-*.md` |
223
+ | 3.5 | QCSD Ideation Swarm | M+ | sonnet | ✅ | qcsd-ideation-swarm | `03.5_ideation_report.md` |
224
+ | 4 | DDD | L/XL | opus | ⚠️ | — | `04_domain_model.md` |
225
+ | 5 | Architecture | M+ | opus | ⚠️ | — | `05_architecture.md` + diagrams |
226
+ | 6 | SPARC-GOAP Plan | All | sonnet | ✅ | code-goal-planner | `06_implementation_plan.md` |
227
+ | 7 | Code | All | opus | ⚠️ | tdd-london-chicago* | `07_code_changes/` |
228
+ | 8 | QE + Brutal Honesty | All | sonnet | ✅ | brutal-honesty-review | `08_qe_report.md` |
229
+ | 9 | Fleet QE | L/XL | sonnet | ⚠️ | 5 skills (4 agents) | `09_fleet_qe_assessment.md` |
230
230
 
231
231
  *\* Extended skills (marked with \*) are only available with `--full-qe-extended`*
232
232
 
233
+ ### The `Model` / `Fable?` columns — read this before swapping models
234
+
235
+ The `Model` column is the **default recommendation, fully overridable** — the routing rule is
236
+ "phase difficulty → model tier": a fast tier for classification, a mid tier (`sonnet`) for
237
+ structured drafting / QE synthesis, a top tier (`opus`) for load-bearing judgment.
238
+
239
+ The **`Fable?`** column flags where switching to **Fable** is low-risk to try:
240
+
241
+ - **✅ Fable-friendly** — drafting / classification / synthesis phases that are **gated by a
242
+ checkpoint and cheap to redo** (0 Router, 1 Requirements, 2 Research, 3.5 Ideation, 6 Plan,
243
+ 8 QE draft). If Fable holds quality here, you gain speed/cost with a human gate right after.
244
+ - **⚠️ Validate first** — **load-bearing reasoning** phases where a wrong call cascades downstream
245
+ (3 ADR decisions, 4 DDD, 5 Architecture, 7 Code, 9 Fleet QE). Keep the `opus`/`sonnet` default
246
+ unless you've A/B-validated Fable on your codebase.
247
+
248
+ > **How to decide with data, not vibes:** install with `--with-learning` and run 2–3 features with
249
+ > Fable on the ✅ steps; compare the reward patterns / rework counts against your `sonnet` baseline.
250
+ > The pipeline's own reward tracker tells you where Fable is safe. This table is a **starting
251
+ > heuristic**, not a benchmark — tune per project.
252
+
233
253
  ---
234
254
 
235
255
  ## Output Structure
@@ -353,6 +373,45 @@ npx @dzhechkov/skills-feature-adr init --with-learning --knowledge-extractor
353
373
 
354
374
  ---
355
375
 
376
+ ## Self-Learning Layers
377
+
378
+ There are **three independent self-learning systems** that can sit under a Feature ADR run.
379
+ `--full-qe-extended` does **not** turn on learning by itself — it controls QE depth. Learning is a
380
+ separate, orthogonal concern. The three layers do **not conflict**: each is isolated by its own
381
+ storage path, its own learning signal, and its own consumer.
382
+
383
+ | Layer | Turn it on with | Learns from | Storage (distinct!) | Needs a DB? |
384
+ |-------|-----------------|-------------|---------------------|-------------|
385
+ | **A — feature-adr reward learning** | install flag **`--with-learning`** (or bundled with `@dzhechkov/keysarium`) | your **checkpoint responses** (`ок`=1.0 / minor=0.7 / rework=0.3 / restart=0.0) | `.keysarium/memory/*.json` | **No** — plain JSON files |
386
+ | **B — agentic-qe learning** | comes with `agentic-qe` (required by `--full-qe` / `--full-qe-extended`), initialized by `aqe init` | QE task **experiences** (ReasoningBank + dream scheduler) | `.agentic-qe/memory.db` + `patterns.rvf` | Self-contained (its own store) |
387
+ | **C — dz harness self-learning** | the `dz` CLI (`dz setup` / `dz teach` / `dz consolidate` / `dz recall`) | your **dz sessions** | `.dz/` (+ optional `.dz/agentdb.db` vector tier) | **Optional** — lexical works without one; agentdb only adds vector search |
388
+
389
+ ### Do they conflict? No — but observe one rule
390
+
391
+ - **No logical conflict:** different files, different signals, different readers → no write
392
+ contention and no data clobbering. Enabling all three at once is fine; they're complementary.
393
+ - **Auto-dedup:** if `@dzhechkov/keysarium` is present, the installer **skips** `--with-learning`
394
+ (keysarium already ships layer A), so you can't accidentally double-install it.
395
+ - **⚠️ The one rule — one DB file per writer.** Layer C writes to SQLite **natively (better-sqlite3,
396
+ WAL)**; agentic-qe (layer B) can write **via sql.js (whole-file overwrite)**. Pointing *both* at
397
+ the **same** `.db` file risks corruption. By default they use **different files**
398
+ (`.agentic-qe/memory.db` ≠ `.dz/agentdb.db`), so out of the box you're safe — just never
399
+ hand-repoint one system's `AGENTDB_PATH` at the other's database.
400
+
401
+ ### Which to enable
402
+
403
+ - Writing features with this pipeline and want it to **learn from your feedback** →
404
+ `npx @dzhechkov/skills-feature-adr init --with-learning` (**no agentdb needed**).
405
+ - Running `--full-qe` / `--full-qe-extended` → agentic-qe's learning already runs via its hooks.
406
+ - Living inside the `dz` harness and want cross-session memory → `dz setup` (add agentdb only if you
407
+ want the vector tier).
408
+
409
+ > There is no single unified "what did the whole stack learn" view — each layer reports from its own
410
+ > store. That's the price of isolation (and the reason there are no cascading failures). Tune each
411
+ > where it lives.
412
+
413
+ ---
414
+
356
415
  ## Shared Skills
357
416
 
358
417
  Feature ADR uses these skills from `@dzhechkov/keysarium` (if installed):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzhechkov/skills-feature-adr",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Adaptive Feature Development skill pack for Claude Code — 11-step pipeline with Complexity Router (S/M/L/XL), ADR-driven architecture, 15 agentic-qe skills, multi-agent fleet QE. Supports --full-qe, --full-qe-extended, --with-learning, and --knowledge-extractor modes.",
5
5
  "main": "src/cli.js",
6
6
  "bin": {