Answer architecture round 2: the worker: decision's title states the test-first rule and when the worker reads a principle
This commit is contained in:
@@ -30,7 +30,7 @@ Decisions live in `docs/decisions.md`:
|
||||
- reading cost: a rise is the last 5 chunks' median above the 5 before them, and files or refreshes one plan item
|
||||
- rule-hook: a PreToolUse hook enforces each rule a program can check, a `# rule-override <rule>: <reason>` marker overrides one, and larv-review's overrides pass rules on each override before merge
|
||||
- rules/: `CLAUDE.md` holds the worker's rules that no file path can scope, and each topic's rules for the worker live in a `rules/` file that Claude Code loads by its `paths:` frontmatter
|
||||
- worker: a chunk's worker implements the simplest change that solves its item and reads no technical principle; larv-review's reviewers hold the change to the principles and to the standards in `skills/larv-review/standards/`
|
||||
- worker: a chunk's worker writes a failing test and the simplest change that passes it, and reads a technical principle only where the item, a finding or its own record names it; larv-review's reviewers hold the change to the principles and to the standards in `skills/larv-review/standards/`
|
||||
|
||||
## Working rules
|
||||
|
||||
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
- A session implements the simplest change that solves its item and reads no technical principle; larv-review's reviewers hold the change to the principles, and each finding names the principle it applies. `CLAUDE.md` keeps a short core of "Prose". "Quality", the rules for comments and READMEs, and the examples behind "Prose" moved to `skills/larv-review/standards/`, which the prose and stability reviewers and `loop-claude`'s judge read. `CLAUDE.md` no longer has "Maintaining this file". A `todo.md` item names a release whose bump semver allows.
|
||||
- A session writes a failing test and the simplest change that passes it, and reads a technical principle only where the item, a finding or its own record names it; larv-review's reviewers hold the change to the principles, and each finding names the principle it applies. `CLAUDE.md` keeps a short core of "Prose". "Quality", the rules for comments and READMEs, and the examples behind "Prose" moved to `skills/larv-review/standards/`, which the prose and stability reviewers and `loop-claude`'s judge read. `CLAUDE.md` no longer has "Maintaining this file". A `todo.md` item names a release whose bump semver allows.
|
||||
- `CLAUDE.md` keeps only the rules no file path can scope. The rules for `todo.md` items, decisions and a README's Goals and Audience moved to files under `rules/`. Claude Code loads each one when a session reads or writes a matching file. `loop-claude`'s judge reads them beside `CLAUDE.md`.
|
||||
- A README no longer holds cross-cutting decisions; `docs/decisions.md` does.
|
||||
- A technical principle, "Prefer deep modules": a module puts a small, intuitive interface in front of a lot of hidden work, and hides how it works but never what it depends on. It wins over "Explicit over implicit" unless hiding the work makes it harder for someone new to the project to tell what a call does. "Functional core, imperative shell" moves up to second place, a core rule beside "Compose, do not entangle" that no other principle overrides. The systems architect holds every module to it.
|
||||
|
||||
+1
-1
@@ -153,7 +153,7 @@ Claude Code's user-level rules tie this repo to Claude Code, which "Prefer the v
|
||||
|
||||
Valid while Claude Code loads `~/.claude/rules/*.md` in every project, a path-scoped one when a session reads, writes or edits a matching file, or reads one with a single-file Bash command such as `cat`, and after a write only once the write is done. On 2026-10-13 a smoke test confirmed both triggers: a rule in `~/.claude/rules/` with `paths: ["**/smoke-target.txt"]` held a secret word. `claude -p` in a project under `/tmp` printed the word after reading the target with the Read tool, and after creating it with the Write tool. A control run that opened no file printed none. Per the docs, a path-scoped rule leaves the context at compaction and returns at the next matching read.
|
||||
|
||||
## worker: a chunk's worker implements the simplest change that solves its item and reads no technical principle; larv-review's reviewers hold the change to the principles and to the standards in `skills/larv-review/standards/`
|
||||
## worker: a chunk's worker writes a failing test and the simplest change that passes it, and reads a technical principle only where the item, a finding or its own record names it; larv-review's reviewers hold the change to the principles and to the standards in `skills/larv-review/standards/`
|
||||
|
||||
2026-10-13, lilleman through todo item 104, implemented by claude. Serves goals 1.4 and 1.5. Like red, green, refactor: the worker makes the item work, and the review passes raise it to the bar. A loop-claude worker loaded `CLAUDE.md` and every file under `rules/`, 4,247 words, and `CLAUDE.md` told it to read `technical-principles.md` too, 2,426 words more. The reviewers read the principles anyway, and each finding names the principle it applies.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user