Add the deep-modules principle, move functional core, imperative shell to second place, and point the architect at the principle

This commit is contained in:
2026-10-13 00:31:24 +02:00
parent 72fd688d81
commit 15d53b37b8
3 changed files with 12 additions and 6 deletions
+1
View File
@@ -2,6 +2,7 @@
## Unreleased
- A technical principle, "Prefer deep modules": a small, intuitive interface in front of a lot of hidden work, which hides how it works but never what it depends on. It wins over "Explicit over implicit" unless it makes a call harder for someone new to the project to follow. "Functional core, imperative shell" moves up to second place and is enforced as strictly as "Compose, do not entangle". The systems architect holds modules to the principle instead of its own wording.
- A hook blocks each Bash, Edit, MultiEdit and Write call that breaks a rule a program can check: a commit message that is not one line passed with `-m`, a Claude or Anthropic attribution, a container image short of a full patch version, an Action pinned to anything but a semver tag, an unsorted block in an ignore file, and a commit of a `todo.md` that `rank_todo.py --check` rejects. `CLAUDE.md` states those rules only where the hook cannot check them; `~/.claude/bin/rule-hook --help` states what it checks. A call overrides a rule with `# rule-override <rule>: <reason>`. larv-review's new overrides pass, run before stability, accepts or rejects each override the chunk logged, and the PR body lists each with its ruling; a rejected override means the chunk keeps the rule. An override that touches a credential, a security rule or a production system, or cannot be undone, is asked of you.
- A project may opt out of larv-review's architect, product-owner pass or comprehension check in every chunk, through a `docs/decisions.md` entry titled `review opt-out: …` that names the goal that skipping them serves. A project without such an entry is reviewed as before. Opting out of the comprehension check also skips the scoring run due at a release's end, so the floor blocks nothing; the opt-out ends with a chunk that ships a plan item naming the floor, which removes the comprehension check from the entry. The principles audit always runs.
- A README goal states the project's aim and intent, and no longer names a step of the work, such as "kill weak candidates early". Such steps go in a method section further down the README and name the goal they serve.