[CL-CTRL-PLANE-BLAST-RADIUS] Control-plane grace 120 LOC #10

Merged
andrei merged 1 commit from feature/claude-blast-radius-control-plane-grace-20260518 into master 2026-05-18 14:24:58 +00:00
Owner

Что сделано

  • CONTROL_PLANE_RE regex для .claude|.agents|.codex|claude-dotfiles paths
  • CONTROL_PLANE_GRACE_LINES = 120 (vs default 50)
  • 2 TDD cases: 115 LOC allow, 180 LOC deny

Зачем

Self-heal Phase 1+2 hooks упирались в 50-line gate. Grace specific для control plane.

План тестирования

  • node hooks/__tests__/blast-radius-enforcer.test.js: PASS

Где могу ошибаться

  • 180+ LOC всё ещё blocks; обычный production code под 50-line gate
## Что сделано - `CONTROL_PLANE_RE` regex для `.claude|.agents|.codex|claude-dotfiles` paths - `CONTROL_PLANE_GRACE_LINES = 120` (vs default 50) - 2 TDD cases: 115 LOC allow, 180 LOC deny ## Зачем Self-heal Phase 1+2 hooks упирались в 50-line gate. Grace specific для control plane. ## План тестирования - `node hooks/__tests__/blast-radius-enforcer.test.js`: PASS ## Где могу ошибаться - 180+ LOC всё ещё blocks; обычный production code под 50-line gate
## Что сделано
- `CONTROL_PLANE_RE`: regex `\.claude|\.agents|\.codex|claude-dotfiles` paths
- `CONTROL_PLANE_GRACE_LINES = 120` (default near-threshold 65)
- `controlPlanePatch` allows up to 120 lines для control-plane writes без блокировки
- 2 TDD cases: 115 lines control-plane = allow, 180 lines = deny

## Зачем
Self-heal Phase 1+2 + cleanup hooks писали 60-130 LOC файлы и упирались в blast-radius 50-line gate. Grace specific для control plane, чтобы не блокировать legitimate hook/healer writes. Production code (`src/`, `lib/`, `api/`) остаётся под 50-line gate.

## План тестирования
- `node hooks/__tests__/blast-radius-enforcer.test.js`: PASS (both live + mirror)
- 115 LOC control-plane write: not denied
- 180 LOC control-plane write: still denied (very large needs slicing)

## Где могу ошибаться
- 120 LOC grace может пропустить subtle bugs в больших hook писаниях. Closed: 180+ still blocks, обычные edits всё ещё под 50-line gate, control-plane path всё ещё passes через rules-200/q9/doctor.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
andrei merged commit bc1fef3e6c into master 2026-05-18 14:24:58 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
europa-tech-srl/claude-dotfiles!10
No description provided.