@dzhechkov/keysarium 1.1.2 → 1.2.0

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 (47) hide show
  1. package/package.json +10 -2
  2. package/templates/.claude/commands/dream.md +101 -0
  3. package/templates/.claude/commands/feature-adr.md +92 -0
  4. package/templates/.claude/commands/init-platform.md +161 -0
  5. package/templates/.claude/commands/learning-stats.md +130 -0
  6. package/templates/.claude/commands/workers.md +140 -0
  7. package/templates/.claude/rules/background-workers.md +72 -0
  8. package/templates/.claude/rules/dream-cycles.md +90 -0
  9. package/templates/.claude/rules/feature-adr-conventions.md +82 -0
  10. package/templates/.claude/rules/reward-learning.md +124 -0
  11. package/templates/.claude/shards/feature-adr.shard.md +98 -0
  12. package/templates/.claude/skills/feature-adr/SKILL.md +252 -0
  13. package/templates/.claude/skills/feature-adr/examples/sample-feature-output.md +257 -0
  14. package/templates/.claude/skills/feature-adr/modules/00-complexity-router.md +114 -0
  15. package/templates/.claude/skills/feature-adr/modules/01-requirements.md +113 -0
  16. package/templates/.claude/skills/feature-adr/modules/02-research.md +92 -0
  17. package/templates/.claude/skills/feature-adr/modules/03-adr.md +135 -0
  18. package/templates/.claude/skills/feature-adr/modules/04-ddd.md +114 -0
  19. package/templates/.claude/skills/feature-adr/modules/05-architecture.md +149 -0
  20. package/templates/.claude/skills/feature-adr/modules/06-implementation-plan.md +129 -0
  21. package/templates/.claude/skills/feature-adr/modules/07-code.md +126 -0
  22. package/templates/.claude/skills/feature-adr/modules/08-qe.md +167 -0
  23. package/templates/.claude/skills/feature-adr/references/adr-template.md +102 -0
  24. package/templates/.claude/skills/feature-adr/references/c4-template.md +120 -0
  25. package/templates/.claude/skills/feature-adr/references/complexity-matrix.md +139 -0
  26. package/templates/.claude/skills/feature-adr/references/qe-checklist.md +86 -0
  27. package/templates/CLAUDE.md +124 -3
  28. package/templates/docs/improvement-directions.md +16 -16
  29. package/templates/docs/keysarium/01-deployment-guide.md +21 -12
  30. package/templates/docs/keysarium/02-admin-guide.md +204 -3
  31. package/templates/docs/keysarium/03-user-guide.md +224 -0
  32. package/templates/docs/keysarium/05-architecture.md +181 -0
  33. package/templates/docs/keysarium/06-user-flows.md +235 -0
  34. package/templates/lib/background-workers.md +278 -0
  35. package/templates/lib/dream-engine.md +460 -0
  36. package/templates/lib/judge-attestation.md +322 -0
  37. package/templates/lib/memory-protocol.md +239 -0
  38. package/templates/lib/platform-adapters.md +100 -0
  39. package/templates/lib/platform-templates/copilot.md +134 -0
  40. package/templates/lib/platform-templates/cursor.md +95 -0
  41. package/templates/lib/platform-templates/opencode.md +155 -0
  42. package/templates/lib/reward-tracker.md +256 -0
  43. package/templates/lib/witness-chain.md +372 -0
  44. package/templates/lib/worker-templates/brain-export.md +187 -0
  45. package/templates/lib/worker-templates/consolidate.md +180 -0
  46. package/templates/lib/worker-templates/dream-cycle.md +154 -0
  47. package/templates/lib/worker-templates/health-check.md +255 -0
@@ -0,0 +1,139 @@
1
+ # Complexity Matrix — Feature Classification Reference
2
+
3
+ ## Dimension Scoring Guide
4
+
5
+ ### 1. Files Affected
6
+
7
+ | Score | Range | Examples |
8
+ |-------|-------|---------|
9
+ | 1 (S) | 1-3 files | Fix typo, update config, add util function |
10
+ | 2 (M) | 4-10 files | New endpoint + tests + migration + handler |
11
+ | 3 (L) | 11-30 files | New module with models, services, controllers, tests |
12
+ | 4 (XL) | 30+ files | Framework migration, new subsystem |
13
+
14
+ **How to estimate:** Count modified + new + deleted files. Include tests.
15
+
16
+ ### 2. Domains Touched
17
+
18
+ | Score | Range | Examples |
19
+ |-------|-------|---------|
20
+ | 1 (S) | 1 domain | Change within a single bounded context |
21
+ | 2 (M) | 1-2 domains | Feature spanning API + database |
22
+ | 3 (L) | 2-4 domains | Feature touching auth + billing + notifications |
23
+ | 4 (XL) | 4+ domains | Cross-cutting concern affecting all domains |
24
+
25
+ **How to identify domains:** Bounded contexts, microservices, top-level modules.
26
+
27
+ ### 3. New Integrations
28
+
29
+ | Score | Range | Examples |
30
+ |-------|-------|---------|
31
+ | 1 (S) | 0 | No new external dependencies |
32
+ | 2 (M) | 0-1 | Adding a new npm package, calling a new API |
33
+ | 3 (L) | 1-3 | New database, message queue, 3rd-party service |
34
+ | 4 (XL) | 3+ | Multiple new infrastructure components |
35
+
36
+ ### 4. Breaking Changes
37
+
38
+ | Score | Range | Examples |
39
+ |-------|-------|---------|
40
+ | 1 (S) | 0 | Fully backward compatible |
41
+ | 2 (M) | 0 | Backward compatible but behavior changes |
42
+ | 3 (L) | 0-2 | API version bump, schema migration with downtime |
43
+ | 4 (XL) | 2+ | Major API redesign, data model overhaul |
44
+
45
+ ### 5. New Data Models
46
+
47
+ | Score | Range | Examples |
48
+ |-------|-------|---------|
49
+ | 1 (S) | 0 | No schema changes |
50
+ | 2 (M) | 0-1 | Add field to existing model, new simple entity |
51
+ | 3 (L) | 1-3 | New aggregate root, new relationship graph |
52
+ | 4 (XL) | 3+ | New bounded context with full entity graph |
53
+
54
+ ### 6. Cross-Cutting Concerns
55
+
56
+ | Score | Range | Concerns |
57
+ |-------|-------|----------|
58
+ | 1 (S) | 0 | None |
59
+ | 2 (M) | 0-1 | Logging OR error handling |
60
+ | 3 (L) | 1-2 | Auth + caching, i18n + validation |
61
+ | 4 (XL) | 3+ | Auth + logging + caching + monitoring + i18n |
62
+
63
+ ---
64
+
65
+ ## Step Activation by Tier
66
+
67
+ ### Tier S (Score 6-8)
68
+
69
+ ```
70
+ Active: 0 → 1(light) → 6(inline) → 7 → 8(smoke)
71
+ Skipped: 2, 3, 4, 5
72
+ ```
73
+
74
+ **Step adaptations:**
75
+ - Step 1: 3-5 bullet requirements, no formal document
76
+ - Step 6: Inline in conversation, no separate file
77
+ - Step 8: Smoke tests only — does it compile? Do existing tests pass?
78
+
79
+ ### Tier M (Score 9-13)
80
+
81
+ ```
82
+ Active: 0 → 1 → 3(1 ADR) → 5(light) → 6 → 7 → 8
83
+ Skipped: 2, 4
84
+ ```
85
+
86
+ **Step adaptations:**
87
+ - Step 3: Single ADR for the main architectural decision
88
+ - Step 5: Component diagram only, no full C4
89
+
90
+ ### Tier L (Score 14-19)
91
+
92
+ ```
93
+ Active: 0 → 1 → [2 ‖ 3] → [4 ‖ 5] → 6 → 7 → 8
94
+ Parallel groups: (2,3) and (4,5)
95
+ ```
96
+
97
+ **Step adaptations:**
98
+ - Step 2: Research analogues in codebase and external patterns
99
+ - Step 3: Multiple ADRs for each significant decision
100
+ - Step 4: Bounded contexts + ubiquitous language
101
+ - Step 5: Full C4 (Context + Container + Component)
102
+ - Step 8: Unit + integration tests + code review
103
+
104
+ ### Tier XL (Score 20-24)
105
+
106
+ ```
107
+ Active: 0 → 1 → [2 ‖ 3] → [4 ‖ 5] → 6 → 7(parallel) → 8(full)
108
+ Parallel groups: (2,3), (4,5), (7 per module)
109
+ ```
110
+
111
+ **Step adaptations:**
112
+ - All steps at full depth
113
+ - Step 7: Multiple parallel agents, one per module/domain
114
+ - Step 8: Full QE — unit + integration + e2e + performance + security review
115
+
116
+ ---
117
+
118
+ ## Quick Reference Decision Tree
119
+
120
+ ```
121
+ Is it a bug fix or config change?
122
+ → YES → S
123
+
124
+ Does it add a new feature with new files?
125
+ → YES, < 10 files → M
126
+ → YES, 10-30 files → L
127
+ → YES, 30+ files → XL
128
+
129
+ Does it touch multiple domains?
130
+ → NO → max M
131
+ → 2-4 → min L
132
+ → 4+ → XL
133
+
134
+ Does it have breaking changes?
135
+ → YES → min M, likely L/XL
136
+
137
+ Does it require new infrastructure?
138
+ → YES → min L
139
+ ```
@@ -0,0 +1,86 @@
1
+ # QE Checklist
2
+
3
+ Unified quality engineering checklist adapted from shift-left testing and brutal-honesty review patterns.
4
+
5
+ ---
6
+
7
+ ## Pre-Implementation (Shift-Left)
8
+
9
+ Before writing code, verify:
10
+
11
+ - [ ] Requirements have testable acceptance criteria
12
+ - [ ] Edge cases identified in requirements phase
13
+ - [ ] Data model validated against expected queries
14
+ - [ ] API contract defined before implementation
15
+ - [ ] Error scenarios documented
16
+
17
+ ## During Implementation
18
+
19
+ While coding, continuously check:
20
+
21
+ - [ ] Each function has a clear single responsibility
22
+ - [ ] Error paths return meaningful messages
23
+ - [ ] Input validation at system boundaries
24
+ - [ ] No hardcoded secrets, URLs, or environment-specific values
25
+ - [ ] Logging at appropriate levels (debug/info/warn/error)
26
+
27
+ ## Post-Implementation
28
+
29
+ ### Correctness Checks
30
+ - [ ] All acceptance criteria have corresponding tests
31
+ - [ ] Happy path tested end-to-end
32
+ - [ ] Edge cases tested (null, empty, max, min, boundary)
33
+ - [ ] Error paths tested (invalid input, network failure, timeout)
34
+ - [ ] Concurrent access tested (if applicable)
35
+
36
+ ### Security Checks (OWASP-aligned)
37
+ - [ ] No SQL/NoSQL injection vectors
38
+ - [ ] No XSS vectors in output
39
+ - [ ] Authentication required on all protected endpoints
40
+ - [ ] Authorization checked (not just authentication)
41
+ - [ ] Sensitive data not logged or exposed in errors
42
+ - [ ] CSRF protection on state-changing operations
43
+ - [ ] Rate limiting on public endpoints
44
+ - [ ] Input size limits enforced
45
+
46
+ ### Performance Checks
47
+ - [ ] No N+1 query patterns
48
+ - [ ] Database queries use appropriate indexes
49
+ - [ ] Large result sets are paginated
50
+ - [ ] Expensive operations are async/cached where appropriate
51
+ - [ ] No unnecessary memory allocations in hot paths
52
+ - [ ] Connection pools sized appropriately
53
+
54
+ ### Maintainability Checks
55
+ - [ ] Code follows existing project conventions
56
+ - [ ] Naming is consistent with codebase
57
+ - [ ] No dead code or commented-out blocks
58
+ - [ ] Complex logic has explanatory comments
59
+ - [ ] Public APIs have documentation
60
+ - [ ] No circular dependencies introduced
61
+
62
+ ### Compatibility Checks
63
+ - [ ] Backward compatible with existing clients (or migration path documented)
64
+ - [ ] Database migration is reversible
65
+ - [ ] Feature flag available for gradual rollout (if applicable)
66
+ - [ ] Existing tests still pass
67
+
68
+ ## Review Severity Guide
69
+
70
+ | Severity | Symbol | Meaning | Action |
71
+ |----------|--------|---------|--------|
72
+ | Blocker | 🔴 | Prevents merge | Must fix |
73
+ | Warning | 🟡 | Should fix | Fix before next release |
74
+ | Suggestion | 🔵 | Nice to have | Consider for future |
75
+ | Praise | 🟢 | Well done | No action needed |
76
+
77
+ ## Tier-Specific Depth
78
+
79
+ | Check Category | S | M | L | XL |
80
+ |---------------|---|---|---|-----|
81
+ | Pre-implementation | - | Partial | Full | Full |
82
+ | Correctness | Smoke | Unit | Unit+Integ | Full |
83
+ | Security | - | Basic | Full | Full+Pentest |
84
+ | Performance | - | - | Basic | Full+Load |
85
+ | Maintainability | - | Basic | Full | Full |
86
+ | Compatibility | Smoke | Basic | Full | Full |
@@ -14,10 +14,26 @@
14
14
  /brain-export [путь или "all"] — Экспорт знаний в portable JSON
15
15
  /brain-import [путь к JSON] — Импорт знаний из другого проекта
16
16
 
17
+ /init-platform --platform <name> — Генерация конфигов для Cursor/OpenCode/Copilot
18
+
19
+ /workers start <type> — Запуск фонового воркера (consolidate, export-brain, health-check, dream-cycle)
20
+ /workers status — Статус активных воркеров
21
+ /workers stop <id> — Остановка воркера
22
+ /workers list — Список доступных типов воркеров
23
+
24
+ /dream run — Запуск dream cycle (анализ паттернов)
25
+ /dream insights — Показать последние инсайты
26
+ /dream status — Состояние триггеров dream cycle
27
+ /dream clear — Очистить старые инсайты (оставить 10)
28
+
29
+ /feature-adr [описание фичи] — Adaptive Feature Development (9 шагов, S/M/L/XL)
30
+
17
31
  /bto [путь или описание] — Build-Test-Optimize полный цикл
18
32
  /bto-build [описание] — Генерация нового скилла/команды
19
33
  /bto-test [путь] — Мульти-агентная оценка артефакта
20
34
  /bto-optimize [путь] — Эволюционная оптимизация промптов
35
+
36
+ /learning-stats [--domain X] [--phase N] — Reward learning аналитика
21
37
  ```
22
38
 
23
39
  ## Структура проекта
@@ -44,7 +60,12 @@ product-keysarium-2026/
44
60
  │ │ ├── bto.md ← /bto — Build-Test-Optimize pipeline
45
61
  │ │ ├── bto-build.md ← /bto-build — генерация артефактов
46
62
  │ │ ├── bto-test.md ← /bto-test — мульти-агентная оценка
47
- │ │ └── bto-optimize.md ← /bto-optimize — оптимизация промптов
63
+ │ │ ├── bto-optimize.md ← /bto-optimize — оптимизация промптов
64
+ │ │ ├── feature-adr.md ← /feature-adr — adaptive feature development
65
+ │ │ ├── init-platform.md ← /init-platform — мульти-платформенная генерация
66
+ │ │ ├── learning-stats.md ← /learning-stats — reward learning аналитика
67
+ │ │ ├── workers.md ← /workers — управление фоновыми воркерами
68
+ │ │ └── dream.md ← /dream — dream cycles (анализ паттернов)
48
69
  │ ├── shards/ ← Governance shards (per-phase rules)
49
70
  │ │ ├── phase-0-discovery.shard.md
50
71
  │ │ ├── phase-1-explore.shard.md
@@ -53,7 +74,8 @@ product-keysarium-2026/
53
74
  │ │ ├── phase-3-solve.shard.md
54
75
  │ │ ├── phase-4-architecture.shard.md
55
76
  │ │ ├── phase-5-presentation.shard.md
56
- │ │ └── bto-evaluation.shard.md
77
+ │ │ ├── bto-evaluation.shard.md
78
+ │ │ └── feature-adr.shard.md
57
79
  │ └── skills/ ← Навыки (building blocks)
58
80
  │ ├── bto/ ← Build-Test-Optimize (мульти-агентная оценка)
59
81
  │ ├── explore/ ← Адаптивная кларификация задач
@@ -61,7 +83,35 @@ product-keysarium-2026/
61
83
  │ ├── goap-research-ed25519/ ← GOAP research + crypto verification
62
84
  │ ├── presentation-storyteller/ ← Презентации со storytelling
63
85
  │ ├── problem-solver-enhanced/ ← Решение проблем (TRIZ + Game Theory)
64
- │ └── reverse-engineering-unicorn/ ← Reverse engineering компаний
86
+ │ ├── reverse-engineering-unicorn/ ← Reverse engineering компаний
87
+ │ └── feature-adr/ ← Adaptive feature development (9 steps, S/M/L/XL)
88
+ ├── lib/ ← Библиотечные модули
89
+ │ ├── background-workers.md ← Протокол фоновых воркеров
90
+ │ ├── memory-protocol.md ← Протокол memory_query / memory_store
91
+ │ ├── reward-tracker.md ← Аналитика и обнаружение паттернов
92
+ │ ├── dream-engine.md ← DreamEngine: concept graph + insight generation
93
+ │ ├── platform-adapters.md ← Реестр платформенных адаптеров
94
+ │ ├── platform-templates/ ← Шаблоны для генерации конфигов
95
+ │ │ ├── cursor.md ← Cursor (.cursorrules)
96
+ │ │ ├── opencode.md ← OpenCode (.opencode/)
97
+ │ │ └── copilot.md ← GitHub Copilot (.github/copilot-instructions.md)
98
+ │ └── worker-templates/ ← Шаблоны инструкций для воркеров
99
+ │ ├── consolidate.md ← Консолидация паттернов
100
+ │ ├── health-check.md ← Проверка здоровья системы
101
+ │ ├── brain-export.md ← Фоновый экспорт brain
102
+ │ └── dream-cycle.md ← Dream cycle воркер (concept graph + insights)
103
+ ├── packages/ ← npm пакеты
104
+ │ ├── dz-keysarium/ ← @dzhechkov/keysarium (research pipeline)
105
+ │ ├── dz-skills-bto/ ← @dzhechkov/skills-bto (BTO evaluation)
106
+ │ └── dz-keysarium-core/ ← @dzhechkov/keysarium-core (shared framework)
107
+ │ ├── governance/ ← Constitution + shards + checkpoints
108
+ │ ├── memory/ ← Learning protocol + reward + dream engine
109
+ │ ├── orchestration/ ← Queen protocol + topologies + workers + routing
110
+ │ ├── verification/ ← Witness chain + judge attestation + audit trail
111
+ │ ├── trust-tiers/ ← 4-tier classification + promotion
112
+ │ └── platform/ ← Multi-platform adapters (Cursor, OpenCode, Copilot)
113
+ ├── features/ ← Директории фич (/feature-adr output)
114
+ │ └── [feature-slug]/ ← Каждая фича изолирована
65
115
  └── researches/ ← Директории исследований
66
116
  └── [case-slug]/ ← Каждое исследование изолировано
67
117
  ```
@@ -148,6 +198,37 @@ DISCOVERY → EXPLORE → RESEARCH → CJM PROTO → SOLVE → ARCHITECTU
148
198
  Brain container включает: skill metadata, domain patterns, research summaries,
149
199
  harvest patterns, pipeline metrics. Selective import с merge-not-overwrite стратегией.
150
200
 
201
+ ## keysarium-core — Shared Framework Package
202
+
203
+ `@dzhechkov/keysarium-core` — домен-агностичный фреймворк для multi-agent пайплайнов. Содержит протоколы, которые используются и в Keysarium, и в BTO, и могут быть использованы любой командой для создания собственного пайплайна.
204
+
205
+ ### Архитектура 3 пакетов
206
+
207
+ ```
208
+ @dzhechkov/keysarium-core ← Общий фреймворк (NEW)
209
+ ^ ^
210
+ | |
211
+ peerDep peerDep
212
+ | |
213
+ @dzhechkov/keysarium @dzhechkov/skills-bto
214
+ (исследования) (оценка)
215
+ ```
216
+
217
+ ### Модули core
218
+
219
+ | Модуль | Файлы | Назначение |
220
+ |--------|-------|-----------|
221
+ | governance/ | 3 | Constitution, shard protocol, checkpoint/promise protocol |
222
+ | memory/ | 3 | memory_query/store, reward tracking, dream engine |
223
+ | orchestration/ | 4 | Queen protocol, 6 topologies, workers, model routing |
224
+ | verification/ | 3 | Witness chain, judge attestation, audit trail |
225
+ | trust-tiers/ | 2 | 4-tier classification, promotion protocol |
226
+ | platform/ | 4 | Adapter registry + templates (Cursor, OpenCode, Copilot) |
227
+
228
+ ### Связь с существующими файлами
229
+
230
+ Core — это cleanroom-экстракция из `lib/` и `.claude/rules/`. Оригинальные файлы остаются как Keysarium-специфичные референсы. Core-версии обобщены и не содержат Keysarium-специфичной терминологии.
231
+
151
232
  ## Domain Templates
152
233
 
153
234
  ### Банковский домен
@@ -195,6 +276,13 @@ bto (Build-Test-Optimize)
195
276
  ├── modules/build.md (генерация артефактов)
196
277
  ├── modules/test.md (мульти-агентная оценка: 3 судьи)
197
278
  └── modules/optimize.md (эволюционная оптимизация)
279
+
280
+ feature-adr (Adaptive Feature Development)
281
+ ├── explore (кларификация требований)
282
+ ├── problem-solver-enhanced (trade-off анализ для ADR)
283
+ ├── frontend-design (UI реализация, если есть)
284
+ ├── modules/00-08 (9 шагов pipeline)
285
+ └── references/ (ADR template, C4 template, QE checklist)
198
286
  ```
199
287
 
200
288
  ## BTO — Build-Test-Optimize
@@ -224,6 +312,39 @@ npx @dzhechkov/skills-bto init # Установить BTO в любой пр
224
312
  npx @dzhechkov/skills-bto doctor # Проверить здоровье установки
225
313
  ```
226
314
 
315
+ ## Feature ADR — Adaptive Feature Development
316
+
317
+ 9-шаговый pipeline для разработки фич любой сложности с Complexity Router.
318
+
319
+ ```
320
+ /feature-adr [описание фичи] — Полный адаптивный pipeline (9 шагов)
321
+ ```
322
+
323
+ ### Complexity Tiers
324
+
325
+ | Tier | Scope | Active Steps |
326
+ |------|-------|-------------|
327
+ | **S** | 1-3 файла, 1 домен | 0→1→6→7→8 |
328
+ | **M** | 4-10 файлов, 1-2 домена | 0→1→3→5→6→7→8 |
329
+ | **L** | 11-30 файлов, 2-4 домена | Полный pipeline с параллелизмом |
330
+ | **XL** | 30+ файлов, cross-cutting | Полный DAG + multi-agent swarm |
331
+
332
+ ### Pipeline шагов
333
+
334
+ | Step | Name | Tiers | Модель |
335
+ |------|------|-------|--------|
336
+ | 0 | Complexity Router | All | haiku |
337
+ | 1 | Requirements | All | sonnet |
338
+ | 2 | Research | L/XL | sonnet |
339
+ | 3 | ADR | M+ | opus |
340
+ | 4 | DDD | L/XL | opus |
341
+ | 5 | Architecture | M+ | opus |
342
+ | 6 | Implementation Plan | All | sonnet |
343
+ | 7 | Code | All | opus |
344
+ | 8 | QE | All | sonnet |
345
+
346
+ Артефакты: `features/<feature-slug>/` (не в корне, не в researches/)
347
+
227
348
  ## Anti-Patterns
228
349
 
229
350
  | Anti-Pattern | Что делать |
@@ -578,37 +578,37 @@ Phase 2: 02_research_findings.md → SHA-256(content + hash_1) = hash_2
578
578
 
579
579
  ### По Impact / Effort
580
580
 
581
- | # | Направление | Impact | Effort | ROI | Пакет |
582
- |---|-------------|--------|--------|-----|-------|
583
- | 1 | Trust Tiers для скиллов | High | Low | **Highest** | keysarium + bto |
584
- | 2 | Semantic Completion Promises | High | Low | **Highest** | keysarium |
585
- | 3 | 3-Tier Model Routing (формализация) | High | Low | **Highest** | keysarium + bto |
586
- | 4 | Constitution + Shards | High | Medium | High | keysarium |
587
- | 5 | Cross-phase Feedback Loops | High | Medium | High | keysarium |
588
- | 6 | Reward-calibrated Learning | Very High | Medium | High | keysarium-core |
589
- | 7 | Portable Brain export/import | Very High | Medium | High | keysarium-core |
590
- | 8 | Multi-platform support (Cursor + OpenCode) | Very High | Medium | High | keysarium + bto |
591
- | 9 | keysarium-core extraction | Transformative | High | Medium | NEW package |
592
- | 10 | Witness Chain для BTO judges | Medium | Medium | Medium | bto |
581
+ | # | Направление | Impact | Effort | ROI | Пакет | Статус |
582
+ |---|-------------|--------|--------|-----|-------|--------|
583
+ | 1 | Trust Tiers для скиллов | High | Low | **Highest** | keysarium + bto | ✅ Реализовано |
584
+ | 2 | Semantic Completion Promises | High | Low | **Highest** | keysarium | ✅ Реализовано |
585
+ | 3 | 3-Tier Model Routing (формализация) | High | Low | **Highest** | keysarium + bto | ✅ Реализовано |
586
+ | 4 | Constitution + Shards | High | Medium | High | keysarium | ✅ Реализовано |
587
+ | 5 | Cross-phase Feedback Loops | High | Medium | High | keysarium | ✅ Реализовано |
588
+ | 6 | Reward-calibrated Learning | Very High | Medium | High | keysarium-core | ✅ Реализовано |
589
+ | 7 | Portable Brain export/import | Very High | Medium | High | keysarium-core | ✅ Реализовано |
590
+ | 8 | Multi-platform support (Cursor + OpenCode) | Very High | Medium | High | keysarium + bto | ✅ Реализовано |
591
+ | 9 | keysarium-core extraction | Transformative | High | Medium | NEW package | ✅ Реализовано |
592
+ | 10 | Witness Chain для BTO judges | Medium | Medium | Medium | bto | ✅ Реализовано |
593
593
 
594
594
  ### Рекомендуемый порядок реализации
595
595
 
596
- **Wave 1 — Quick Wins (1–2 сессии):**
596
+ **Wave 1 — Quick Wins (1–2 сессии): ✅ DONE**
597
597
  - Trust Tiers (обновить `doctor` command)
598
598
  - Semantic Completion Promises (добавить `<promise>` теги в checkpoint protocol)
599
599
  - Model Routing Enforcement (формализовать в rules)
600
600
 
601
- **Wave 2 — Core Infrastructure (3–5 сессий):**
601
+ **Wave 2 — Core Infrastructure (3–5 сессий): ✅ DONE**
602
602
  - Constitution + Shards (разбить rules на per-phase shards)
603
603
  - Cross-phase Feedback Loops (именованные namespaces)
604
604
  - Portable Brain v1 (JSON export/import через CLI)
605
605
 
606
- **Wave 3 — Learning System (5–8 сессий):**
606
+ **Wave 3 — Learning System (5–8 сессий): ✅ DONE**
607
607
  - Reward-calibrated Learning (persistence layer)
608
608
  - Dream Cycles (background consolidation)
609
609
  - Multi-platform support (Cursor + OpenCode)
610
610
 
611
- **Wave 4 — Architecture Evolution (8+ сессий):**
611
+ **Wave 4 — Architecture Evolution (8+ сессий): ✅ DONE**
612
612
  - keysarium-core extraction (3-package architecture)
613
613
  - Witness Chain (cryptographic audit trail)
614
614
  - Background Workers (daemon system)
@@ -149,7 +149,9 @@ ls -la
149
149
  # Проверка скиллов
150
150
  ls .claude/skills/
151
151
  # Ожидаемый вывод:
152
+ # bto/
152
153
  # explore/
154
+ # feature-adr/
153
155
  # frontend-design/
154
156
  # goap-research-ed25519/
155
157
  # presentation-storyteller/
@@ -158,18 +160,15 @@ ls .claude/skills/
158
160
 
159
161
  # Проверка slash-команд
160
162
  ls .claude/commands/
161
- # Ожидаемый вывод:
162
- # casarium.md
163
- # new-research.md
164
- # parallel-research.md
165
- # discovery.md
166
- # explore-case.md
167
- # research.md
168
- # cjm-prototype.md
169
- # solve.md
170
- # architecture-phase.md
171
- # presentation.md
172
- # harvest.md
163
+ # Ожидаемый вывод (основные команды):
164
+ # casarium.md, new-research.md, parallel-research.md
165
+ # discovery.md, explore-case.md, research.md
166
+ # cjm-prototype.md, solve.md, architecture-phase.md
167
+ # presentation.md, harvest.md
168
+ # brain-export.md, brain-import.md
169
+ # bto.md, bto-build.md, bto-test.md, bto-optimize.md
170
+ # feature-adr.md, init-platform.md
171
+ # workers.md, dream.md, learning-stats.md, verify-chain.md
173
172
  ```
174
173
 
175
174
  ---
@@ -290,6 +289,14 @@ rm -rf researches/test/
290
289
  - `/architecture-phase` -- Phase 4: Architecture
291
290
  - `/presentation` -- Phase 5: Presentation
292
291
  - `/harvest` -- извлечение знаний
292
+ - `/brain-export`, `/brain-import` -- портативные знания
293
+ - `/feature-adr` -- адаптивная разработка фич (9 шагов)
294
+ - `/bto`, `/bto-build`, `/bto-test`, `/bto-optimize` -- Build-Test-Optimize
295
+ - `/init-platform` -- мульти-платформенная генерация конфигов
296
+ - `/workers` -- управление фоновыми воркерами
297
+ - `/dream` -- Dream Cycles (анализ паттернов)
298
+ - `/learning-stats` -- аналитика обучения
299
+ - `/verify-chain` -- верификация witness chain
293
300
 
294
301
  ---
295
302
 
@@ -765,4 +772,6 @@ export ANTHROPIC_API_KEY="sk-ant-ваш-ключ" # 3. API-ключ
765
772
  claude # 4. Запуск
766
773
  /new-research test # 5. Проверка
767
774
  /casarium [текст кейса] # 6. Работа!
775
+ /feature-adr [описание фичи] # 7. Разработка фич
776
+ /bto-test .claude/skills/my-skill/ # 8. Оценка скилла
768
777
  ```