@dzhechkov/skills-feature-adr 1.3.16 → 1.3.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dzhechkov/skills-feature-adr",
3
- "version": "1.3.16",
3
+ "version": "1.3.20",
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
  "bin": {
6
6
  "skills-feature-adr": "./bin/cli.js"
@@ -216,7 +216,7 @@ After Step 8 (or Step 9 for L/XL) completes, verify:
216
216
  | `{COMPLEXITY_TIER}` | Step 0 | All steps | S/M/L/XL |
217
217
  | `{ACTIVE_STEPS}` | Step 0 | Orchestrator | list[int] |
218
218
  | `{TIME_BUDGET}` | Step 0 | All steps | dict |
219
- | `{LEARNED_PATTERNS}` | Step 0 | Step 1 (brief); Steps 8-9 do their own namespace recalls | list[pattern] (Direct modes only) |
219
+ | `{LEARNED_PATTERNS}` | Step 0 | Step 1 (brief); Steps 8-9 do their own namespace recalls | list[pattern] (dz recall = ALL modes; aqe adds semantic in Direct modes) |
220
220
  | `{REQUIREMENTS}` | Step 1 | Steps 2-9 | structured |
221
221
  | `{RESEARCH_FINDINGS}` | Step 2 | Steps 3-5 | structured |
222
222
  | `{ADR_DECISIONS}` | Step 3 | Steps 3.5-7 | list[ADR] |
@@ -343,24 +343,52 @@ Step 0 (Complexity Router) checks:
343
343
  3. If flag + installed → set `{AGENTIC_QE_MODE}` = `direct` or `direct-extended`
344
344
  4. If flag present but not installed → WARN and fall back to reference mode
345
345
 
346
- ### Pattern memory loop (Direct modes)
346
+ ### Pattern memory loop (self-learning — runs in ALL modes)
347
347
 
348
- When `{AGENTIC_QE_MODE}` = `direct` | `direct-extended`, the pipeline runs a recall store cycle
348
+ **Self-learning is MANDATORY on EVERY `/feature-adr` run including plain `/feature-adr` without any
349
+ `--full-qe` flag and outside ultracode.** The **dz durable loop runs UNCONDITIONALLY** (no MCP, no
350
+ `fleet_init` needed): **Step 0** `dz recall "<domain terms>"` → fold the top patterns into
351
+ `{LEARNED_PATTERNS}` → apply in Step 1; **Step 8** `dz teach "<durable lesson>"` for each real lesson;
352
+ each step records the live panel via `dz statusline --fa-record`. This half NEVER depends on the mode.
353
+
354
+ The **agentic-qe MCP layer below is an ADDITIONAL enrichment, active only in Direct modes**
355
+ (`--full-qe` / `--full-qe-extended`, needs `fleet_init`) — it adds semantic in-session recall on top of
356
+ the always-on dz loop.
357
+
358
+ When `{AGENTIC_QE_MODE}` = `direct` | `direct-extended`, the pipeline ALSO runs a recall → store cycle
349
359
  over agentic-qe's MCP pattern memory (`namespace: "learning"`, `fleet_init` first):
350
360
 
351
361
  - **Step 0** — `memory_query("patterns/feature-adr/*")` **plus** `dz recall --json` over the durable
352
362
  dz store → merged top-3 set `{LEARNED_PATTERNS}`; Step 1 folds them into the requirements brief as advisory lessons.
363
+ After the recall, record live state:
364
+ `dz statusline --fa-record --slug <feature-slug> --step "Step 0" --recalled <count of patterns loaded> --stored 0 --mode <reference|direct|direct-extended>`.
353
365
  - **Step 8** — recalls `patterns/feature-adr/qe/*` to prime the review checklist; after the gap loop
354
366
  closes, stores a `qe-outcome` record in aqe **and** the same lesson via `dz teach` (durable).
367
+ After the store: `dz statusline --fa-record --slug <slug> --step "Step 8 QE" --recalled <recalled so far> --stored <stored so far>`.
355
368
  - **Step 9** — recalls `patterns/feature-adr/fleet/*` to prime agent focus; after the fleet verdict,
356
369
  stores a `fleet-qe-finding` in aqe **and** the same lesson via `dz teach`.
370
+ After the store: `dz statusline --fa-record --slug <slug> --step "Step 9 Fleet" --recalled <recalled so far> --stored <stored so far>` with updated counts.
357
371
 
358
372
  **Two stores by design:** the aqe kv store is *ephemeral across MCP-server restarts* (janitor/TTL —
359
373
  observed live), so it serves fast in-session semantic recall; the dz lexical store
360
374
  (`dz teach`/`dz recall`) is the durable half that survives to the next day. All calls are
361
375
  non-blocking — an error or empty result never stalls the pipeline. This layer is
362
376
  **distinct from the Keysarium reward layer** installed by `--with-learning`: it uses agentic-qe MCP
363
- memory + the dz store, is gated on Direct modes only, and never touches `.keysarium/memory/`.
377
+ memory + the dz store, is UNCONDITIONAL for the dz half (recall/teach/fa-record run in every mode) and Direct-mode-only for the aqe-MCP half, and never touches `.keysarium/memory/`.
378
+
379
+ **Live learning panel (`dz statusline`).** The pipeline **drives** the panel: at each pattern-memory-loop
380
+ step above it records its live state via `dz statusline --fa-record …`, so `dz statusline` can surface
381
+ per-run learning (which feature, which step, how many patterns recalled vs. newly stored). Each of the
382
+ Step 0 / Step 8 / Step 9 call-outs above emits one `--fa-record`; the counts accumulate across the run.
383
+ Every checkpoint banner **also** prints a human-visible line so the state shows in the conversation, not
384
+ only the statusline:
385
+
386
+ ```
387
+ 🎓 Learning: {recalled} patterns recalled for this feature, {stored} new stored this run
388
+ ```
389
+
390
+ *Honesty note:* the panel is live only insofar as the pipeline records state — it reflects what the
391
+ pipeline actually did with the loop (recalls that ran, stores that landed), not an aspirational count.
364
392
 
365
393
  ### What changes with `--full-qe`
366
394
 
@@ -448,6 +476,7 @@ npx @dzhechkov/skills-feature-adr init --with-learning --knowledge-extractor
448
476
  ⏸️ STEP N: [Step Name] Complete
449
477
  <promise>[PROMISE_TAG]</promise>
450
478
  Tier: {COMPLEXITY_TIER} | Active Steps: {ACTIVE_STEPS}
479
+ 🎓 Learning: {recalled} patterns recalled for this feature, {stored} new stored this run
451
480
 
452
481
  [2-3 line summary]
453
482
  Artifacts: [list] ✅