3073e0cbde
Phase 1 Task 2 of LLM-first router overhaul. Live user-level changes (NOT in git, see TASKLOG.md for full diff manifest): - ~/.claude/settings.json — removed 2 PreToolUse blocks: - matcher 'Skill' -> skill-marker.py (§12 trigger marker) - matcher 'Edit|Write|MultiEdit' -> skill-check.py (§12 enforcement on Edit) - Remaining PreToolUse: 1 block (economy-state-guard, pure economy) - ~/.claude/hooks/economy-mode.py — trailer text: '§12 hard rule из Pravila НЕ override-ится' -> '§17 universal skill-coverage НЕ override-ится' - ~/.claude/hooks/economy-state-guard.py — NO-OP (no §12 logic; pure economy) Economy system (0%/5%/25%/50%/75%/100%) remains fully active. Stop-hook subagent verifier (model: claude-sonnet-4-6) remains. PostCompact, SessionStart hooks unchanged. skill-marker.py and skill-check.py files remain on disk in ~/.claude/hooks/ (snapshot already in docs/archive/.../user-hooks/ from Task 1). They are unwired from PreToolUse — no longer invoked. Task 4 moves them into the archive proper. permissions.ask still references skill-marker.py/skill-check.py (4 entries Edit/Write each) — these gate direct file edits and are harmless. Cleaned up alongside Task 4 archive. Verification: - ~/.claude/settings.json parses as valid JSON (1 PreToolUse block). - All 4 economy hooks (economy-mode, economy-state-guard, economy-postcompact, economy-self-check) still run with exit 0. - Live economy-mode.py with prompt 'тест экономия 5%' returns valid hook JSON with FIRST LINE '=== ECONOMY MODE: 5%' and trailer mentioning §17. Rollback: 'node tools/test-rollback.mjs --execute' restores both files from snapshot (verified e2e in Task 1). Plan: docs/superpowers/plans/2026-05-25-llm-first-router-overhaul.md Task 2. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
4.9 KiB
4.9 KiB
Brain Status (auto-generated)
Last updated: 2026-05-25T06:31:41.211Z
| Контролёр | Состояние | Детали |
|---|---|---|
| C1 L1-watcher | ✅ | [l1-watcher] OK — 0 drift |
| 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 |
| 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; см. memoryfeedback_brain_unused_tools_not_problem— outside-repo memory store).
Метрики дисциплины
Baseline дисциплины роутера (этап 2 router discipline overhaul, spec 2026-05-23). Цель — увидеть «точку До» перед enforcement-хуком этапа 3.
| Тип задачи | Эпизодов | % с триггер-матчем | % через скил |
|---|---|---|---|
| bugfix | 7 | 28.6% | 42.9% |
| feature | 5 | 0.0% | 0.0% |
| analysis | 4 | 0.0% | 25.0% |
| planning | 2 | 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
Boundaries applied (ADR / границы): 13 of 130 эпизодов (10.0%).
Активные многоэтапные проекты
- Router discipline overhaul (spec)
- Этап 1 (машиночитаемый реестр) ✅ закрыт 2026-05-23 —
docs/registry/nodes.yaml(83 узла + 16 chains L1-L16),tools/registry-load.mjs+tools/registry-render.mjs(16 тестов), auto-render Tooling §4.0 + routing-off-phase, lefthook job 17 (warn-only). - Этап 2 (измерения + классификатор-парсер) ✅ закрыт 2026-05-24 + влит в main 2026-05-24 — discipline-metrics (3 среза), brain-retro-analyzer переключён на реестр, STATUS.md блок «Метрики дисциплины», baseline snapshot
docs/observer/baselines/2026-05-24-pre-enforcement.md. Plan:docs/superpowers/plans/2026-05-24-router-overhaul-stage-2-measurements.md. - Этап 3 (принуждение — хук на routing) — Phase A+B (классификатор + 3 хука: router-prehook/tool-gate/stop-gate в
.claude/settings.json) ✅ + влит в main 2026-05-24. Гейт работает в режимеwarn-only(только stderr-предупреждения, никакой блокировки). Bug-fixbec69aa5:deriveRouterStepвtools/discipline-metrics.mjs— шаг роутера теперь выводится из наблюдаемых признаков (был захардкоженной константой 1). Follow-up 3 fixes 2026-05-24 (после ANTHROPIC_API_KEY + рестарта CC выявлены при инспекции state): (a) UTF-8 stdin helpertools/router-stdin-helper.mjsчерезStringDecoder+ подключение к 3 хукам (русский в state-файл и Anthropic API без mojibake); (b)tools/observer-state-enricher.mjs— pure helper для чтенияrouter-state-<session>.json; (c)parseTranscriptобогащениеprimary_rationale4 полями (recommended_nodeoverride +recommended_chain+chain_progress+chain_completed). 538 tools-тестов GREEN. Plan:docs/superpowers/plans/2026-05-24-router-stage3-three-fixes.md. CHECKPOINT B: дать warn-only накопить реальные наблюдения с починенным сторожем (план говорит «минимум 24 часа»), затем Task 9 — переключение вenforce+ 2 новых метрики (domain-hit-rate / chain-completion). Plan:docs/superpowers/plans/2026-05-24-router-overhaul-stage-3-enforcement.md. - Этап 4 (уборка устаревших правил, deprecation
observer-classification-map.json→ удаление) — не начат.
- Этап 1 (машиночитаемый реестр) ✅ закрыт 2026-05-23 —
Алерт-индикаторы
✅ — норма ・ ⚠️ — внимание ・ 🔴 — действие требуется ・ ⚪ — не запускалось