Answer prose round 1: list the judge's rule files in the vocabulary, widen the stability reviewer's prose bar, and reword the router, the maintenance rules and the decision

This commit is contained in:
2026-10-13 00:38:48 +02:00
parent 415f7752c0
commit de0dad7d58
6 changed files with 18 additions and 18 deletions
+10 -10
View File
@@ -17,7 +17,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The
- **Releases are the human's.** The version bump and the publishing credentials are theirs, whatever another rule says. Prepare everything else, so cutting a release is one decision.
- **Releases follow semver read strictly** (`~/.claude/principles/technical-principles.md`).
- **Open each `todo.md` item or ticket with a bold one-sentence tagline**, so the taglines alone say what a release holds. The tagline states the target state, checkable when done: an imperative verb plus what holds afterwards. A present-tense fact reads as the current state and says nothing about what to do. Add "today X" only where the direction is otherwise ambiguous. GOOD: `**Accept undefined in MetadataValue and drop such keys on output.**` BANNED: `MetadataValue accepts undefined; such keys are dropped on output`.
- **File a security finding the moment it is found.** A security finding — a leaked credential, secret or PII, an auth bypass, an injection — goes under the next release, marked `security`, naming the exposure and the path it reaches. `rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call — say whether it is in the blast radius.
- **File a security finding the moment it is found.** A security finding — a leaked credential, secret or PII, an auth bypass, an injection — goes under the next release, marked `security`, naming the exposure and the path it reaches. `~/.claude/bin/rank_todo.py` ranks it first in its release. Never among additive or nice-to-have items, never only in a chunk's summary, and never as a question about where it belongs: file it, say you did, and I will unmark it if I disagree. Fixing it inside an unrelated change is a separate call — say whether it is in the blast radius.
## Quality
@@ -45,16 +45,16 @@ Everything written — chat, commit messages, comments, docs, code — is in **E
## Public API specs
- Text in public API specs (OpenAPI `description`/`title` fields, in a spec file or in code, and the generated api-docs) is read by external consumers. Never leak internal references: no ticket IDs, internal URLs, repo/system code-names, "see ticket X". Describe behaviour in consumer terms. GOOD: `Deprecated alias for paymentAccountId`. BANNED: `…will be removed (ABC-123)`.
- The opposite of internal code comments, which *may* cite a ticket for a footgun/constraint.
- Internal code comments, by contrast, *may* cite a ticket for a footgun or constraint.
## Topic rules
Each file loads by itself once a session reads or writes a file its line names. On a write it loads only after the write, so read it before you create such a file.
Claude Code loads each rule file below when a session reads or writes a file that matches its line. After a write it loads only once the write is done, so read the rule file before you create a matching file.
- Comments, and what earns a place in a doc: `~/.claude/rules/comments.md`, with any file.
- Decisions: `~/.claude/rules/decisions.md`, with `AGENTS.md` or `docs/decisions.md`.
- README goals and audience, and what a README or a package's README holds: `~/.claude/rules/readme.md`, with `README.md`.
- `todo.md` items, their scores and Exempt reasons: `~/.claude/rules/todo-items.md`, with `todo.md`.
- Comments, and what earns a place in a doc: `~/.claude/rules/comments.md` loads with any file.
- Decisions: `~/.claude/rules/decisions.md` loads with `AGENTS.md` or `docs/decisions.md`.
- README goals and audience, and what a README or a package's README holds: `~/.claude/rules/readme.md` loads with `README.md`.
- `todo.md` items, their scores and Exempt reasons: `~/.claude/rules/todo-items.md` loads with `todo.md`.
## Working with the codebase
- Always start a new git worktree when doing something in a codebase, and clean it up when done. Unless told otherwise, branch it off a freshly-updated default branch (`git fetch origin`, then base on `origin/main`), not whatever happens to be checked out.
@@ -91,13 +91,13 @@ The rules every project follows, compose-not-entangle first: `~/.claude/principl
- When a page renders client-side and comes back empty/blocked, use the Playwright renderer at `~/code/playwright-for-agents/` — `./pw <url> [options]` (see its README). Don't use claude-in-chrome for this.
## Maintaining this file
- When you spot a pattern in how I work that isn't written here or under `~/.claude/rules/` — a preference I've repeated, a correction I've given more than once, a convention you inferred from my code — tell me and ask me to write it up here. Don't add it silently, and don't just keep it in a memory file.
- After every change to this file or a file under `~/.claude/rules/`, re-read them all and restructure it: merge overlapping rules, cut prose that restates a rule, move rules to the section they belong in, drop what's now covered elsewhere. Same information, easier to read and shorter.
- When you spot a pattern in how I work that isn't written here or under `~/.claude/rules/` — a preference I've repeated, a correction I've given more than once, a convention you inferred from my code — tell me and ask me to write it up here or under `~/.claude/rules/`. Don't add it silently, and don't just keep it in a memory file.
- After every change to this file or a file under `~/.claude/rules/`, re-read all of them and restructure them: merge overlapping rules, cut prose that restates a rule, move each rule to the file and section it belongs in, drop what's now covered elsewhere. Same information, easier to read and shorter.
## Vocabulary
- **chunk** — the unit of work, shipped as one PR; "Working loop" says what it holds.
- **cycle** — in `loop-claude`, worker runs and the judge's verdict on each, until the chunk closes or is left for the next cycle. In between, the human answers any interrupt, or the worker resumes with an answer the judge quoted from `README.md`, `AGENTS.md`, `docs/decisions.md` or `~/.claude/CLAUDE.md`.
- **cycle** — in `loop-claude`, worker runs and the judge's verdict on each, until the chunk closes or is left for the next cycle. In between, the human answers any interrupt, or the worker resumes with an answer the judge quoted from `README.md`, `AGENTS.md`, `docs/decisions.md`, `~/.claude/CLAUDE.md` or `~/.claude/rules/`.
- **gate** — the merge gate: the checks a PR passes before it merges.
- **interrupt** — `loop-claude` handing the terminal to the human, `claude --resume`, for a decision that is theirs.
- **judge** — the headless claude that reads a worker's transcript each cycle and decides whether to interrupt and whether the chunk is finished.