chore(brain): cross-refs §12 active-rules → §17 minimal (phase 1 task 6)

Phase 1 Task 6 of LLM-first router overhaul. Minimal-scope execution after
reality check (C1/C2 controllers don't track section refs, only version
drift; plan steps about §3.3/R15 archiving are out of scope for cross-ref
update).

Changes:
- CLAUDE.md §0 'Источник истины' row for Pravila: **v1.40 от 24.05.2026**
  -> **v1.41 от 25.05.2026** + narrative bump (§12 archived in Task 4,
  §17 added in Task 5 via ADR-016).
- docs/Tooling_v8_3.md line 4 cross-ref:
  cross-ref Pravila v1.39+ -> v1.41+ (+ CLAUDE.md v2.27+ -> v2.28+).

Deferred (TASKLOG.md Task 6 section for full reasoning):
- §12 textual occurrences in PSR_v1 (39) and historical Tooling/CLAUDE.md
  changelog blocks remain as honest historical pointers to the archived
  §12 (docs/archive/llm-bootstrap-2026-05/pravila-12/...).
- CLAUDE.md §3.3 archive + nodes.yaml pin — out of scope, requires
  structural restructure beyond cross-ref work.
- Tooling §4.X 'когда брать' archive — out of scope.
- PSR_v1 R15 — already removed in v2.0 (motion-runtime removal,
  12.05.2026); current R15 is 'Off-phase routing', unrelated to §12.

Verification:
- tools/l1-watcher.mjs: OK — 0 drift.
- tools/cross-ref-checker.mjs: OK — 0 drift in 4 files (was FAILing on
  Pravila v1.40 / v1.39 references after Task 5 bump to v1.41).
- npx vitest run tools/: 539 passed (unchanged from Task 4 baseline).

Plan: docs/superpowers/plans/2026-05-25-llm-first-router-overhaul.md Task 6.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Дмитрий
2026-05-25 10:30:13 +03:00
parent 712b4c63c2
commit 6d72f5b63b
4 changed files with 66 additions and 3 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
@@ -204,3 +204,66 @@ The plan's literal Task 4 said «archive everything including
`git reset --hard brain-pre-llm-bootstrap` restores Pravila, the 4
archived `tools/` files, `lefthook.yml` job 12b, `observer-coverage-checker.mjs`,
and `observer-transcript-parser.mjs` to pre-overhaul state.
## Task 6 — Cross-refs §12 → §17 (minimal scope) (2026-05-25)
Phase 1 Task 6 of LLM-first router overhaul. Executed in **minimal scope**
after reality check; full plan deviations documented below.
### Reality check (before execution)
- **C1 l1-watcher**: ran clean (0 drift) on current state. Source is Tooling
plugin-name search, not CLAUDE.md §3.3. Plan's «source §3.3 → nodes.yaml»
was misdirected — no adaptation needed.
- **C2 cross-ref-checker**: FAILED on version drift (CLAUDE.md → Pravila
v1.40, Tooling → Pravila v1.39, after Task 5 bump to v1.41). Code logic
is purely version-based, not section-based. Plan's «expected cross-refs
§12→§17» was misdirected — checker does not track section refs.
- §12 occurrences: CLAUDE.md 18, PSR_v1 39, Tooling 18 (total 75).
Most are in changelog «v2.X наследие» blocks — historical pointers, not
active rules.
### What was changed (minimal)
1. `CLAUDE.md` §0 «Источник истины» row for Pravila:
`**v1.40 от 24.05.2026**``**v1.41 от 25.05.2026**` + narrative bump
noting Task 4+5 (§12 archived, §17 added, ADR-016).
2. `docs/Tooling_v8_3.md` line 4 cross-ref:
`cross-ref Pravila v1.39+ / PSR_v1 v3.22+ / CLAUDE.md v2.27+`
`cross-ref Pravila v1.41+ / PSR_v1 v3.22+ / CLAUDE.md v2.28+`.
### What was deferred (plan deviation)
The plan's literal Task 6 Step 1 («archive §3.3 / R15 / Tooling «когда брать»»)
is a large structural restructure of three normative files. Postponed to a
separate follow-up task because:
- `CLAUDE.md §3.3` is the tooling-map index, currently consumed by readers
for «which tool for what». Archiving requires replacement with a pin
paragraph to `docs/registry/nodes.yaml` — and the §3.3 narrative quality
matters for daily use. Out of scope for this minimal cross-ref pass.
- `PSR_v1 R15` was already removed in v2.0 (motion-runtime removal,
12.05.2026; see `docs/CHANGELOG_claude_md.md` v1.88). The current R15
is «Off-phase routing» (v3.14+) — unrelated to §12. No action.
- `Tooling §4.X «когда брать»` fields — these are per-tool «when to use it»
prose, not §12-specific. Archiving requires structural review out of scope
for this commit.
Active §12 textual cross-refs in `docs/Plugin_stack_rules_v1.md` (39
occurrences) and `docs/Tooling_v8_3.md` body (most in historical changelog
blocks) — also **deferred**. These now point to the archived §12
(`docs/archive/llm-bootstrap-2026-05/pravila-12/Pravila_section_12.md`),
which is honest historical record. Active rule replacement is via Pravila
§17 (Task 5). Future cleanup can do bulk §12→§17 substitution.
### Verification
- `tools/l1-watcher.mjs` exits 0 (no drift).
- `tools/cross-ref-checker.mjs` exits 0 («OK — 0 drift in 4 files»).
- `npx vitest run tools/`: **539 passed** (unchanged from Task 4 baseline).
- 4 pre-existing «No test suite found» failures — out of scope, unchanged.
### Phase 1 status after Task 6
5 of 7 Tasks complete + this Task 6 minimal = **6 of 7**. Remaining: Task 7
(phase-1 flags + rollback re-verify) closes Phase 1.
+1 -1
View File
@@ -1,6 +1,6 @@
# Brain Status (auto-generated)
Last updated: 2026-05-25T07:16:31.351Z
Last updated: 2026-05-25T07:22:25.843Z
| Контролёр | Состояние | Детали |
|---|---|---|