docs(brain): spec v2.0 LLM-first router overhaul

Brainstorming сессия 2026-05-24..25:
- LLM-first классификатор (Sonnet 4.6) заменяет regex Layer 1.
- §17 «universal skill-coverage» заменяет §12 (default-deny кроме
  conversation/micro/manual_override/escape-hatch).
- Opus 4.7 ревьюер в /brain-retro заполняет review.* (auto, не пользователь).
- Self-retrospect skill (opt-in) для самоанализа агента.
- 7 гранулярных flag-переключателей + dry-run rollback.
- 3 implementation фазы (~3.5-4.5 недели) + 5-6 месяцев passive
  evidence collection + фаза 4 distillation regex из эмпирики.

v1.0 содержал 8 фактических ошибок (несуществующие skill-discipline
файлы, отсутствующие nodes.yaml поля, L1-L16 в неверных файлах) +
11 пропусков охвата + 10 underspecified + 6 противоречий. v2.0 —
полная перезапись с реальным state inventory (§18) и explicit
accepted trade-offs (§19).

Реализация — после закрытия Биллинга v2 Спек C (per user decision).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-05-25 03:27:02 +03:00
parent af6c328933
commit 10eed4e7e4
3 changed files with 1453 additions and 14 deletions
+1
View File
@@ -1744,3 +1744,4 @@ uniqid
брейнсторме
префлайт
Префлайт
скоупа
+14 -14
View File
@@ -1,22 +1,22 @@
# Brain Status (auto-generated)
Last updated: 2026-05-24T13:01:24.122Z
Last updated: 2026-05-25T00:09:15.184Z
| Контролёр | Состояние | Детали |
|---|---|---|
| C1 L1-watcher | ✅ | [l1-watcher] OK — 0 drift |
| C2 Cross-ref consistency | | [cross-ref-checker] OK — 0 drift in 4 files |
| C2 Cross-ref consistency | 🔴 | Update cross-refs in offending files. |
| C3 Observer-of-observer | ✅ | [observer-of-observer] OK — last read 0 week(s) ago |
| C4 Сигнальный статус | ✅ | This file (self-reference) |
| C5 Observer-coverage | ⚠️ | 135 episode(s) this month · .git/hooks/post-commit not installed (run: npx lefthook install --force) · 17 missed activation(s) — see /brain-retro |
| C5 Observer-coverage | ⚠️ | 290 episode(s) this month · Stop-hook + post-commit OK · 21 missed activation(s) — see /brain-retro |
| C6 Chain map sync | ✅ | [chain-map-checker] OK — 16 chains in sync |
## Метрики (информационные, не алерты)
- Observer evidence: 135 episodes this month, 0 observer_error markers, 6 PII matches before filter
- Legacy v1 episodes (not in factor analysis): 11
- Last /brain-retro: 1 day(s) ago
- Использование узлов: см. `/brain-retro` (раз в спринт). missed_activations: 17. **Неиспользованные узлы — не алерт, если профильной задачи не было** (Pravila §16.4 v1.36; capability-readiness; см. memory `feedback_brain_unused_tools_not_problem` — outside-repo memory store).
- Observer evidence: 290 episodes this month, 0 observer_error markers, 21 PII matches before filter
- Legacy v1 episodes (not in factor analysis): 151
- Last /brain-retro: 0 day(s) ago
- Использование узлов: см. `/brain-retro` (раз в спринт). missed_activations: 21. **Неиспользованные узлы — не алерт, если профильной задачи не было** (Pravila §16.4 v1.36; capability-readiness; см. memory `feedback_brain_unused_tools_not_problem` — outside-repo memory store).
## Метрики дисциплины
@@ -24,17 +24,17 @@ Baseline дисциплины роутера (этап 2 router discipline overh
| Тип задачи | Эпизодов | % с триггер-матчем | % через скил |
|---|---|---|---|
| bugfix | 7 | 28.6% | 42.9% |
| feature | 5 | 0.0% | 0.0% |
| analysis | 4 | 0.0% | 25.0% |
| planning | 2 | 0.0% | 0.0% |
| analysis | 14 | 50.0% | 28.6% |
| bugfix | 9 | 44.4% | 44.4% |
| feature | 9 | 22.2% | 0.0% |
| planning | 6 | 0.0% | 0.0% |
| monitoring | 4 | 0.0% | 0.0% |
| refactor | 1 | 0.0% | 0.0% |
| cleanup | 1 | 0.0% | 0.0% |
| monitoring | 1 | 0.0% | 0.0% |
Router step distribution: 1: 55, 2: 45, 3: 12, 5: 18
Router step distribution: 1: 117, 2: 94, 3: 36, 5: 38
Boundaries applied (ADR / границы): 13 of 130 эпизодов (10.0%).
Boundaries applied (ADR / границы): 45 of 285 эпизодов (15.8%).
## Активные многоэтапные проекты
File diff suppressed because it is too large Load Diff