Answer stability round 1: cite the shortened false-claim heading, keep the API-spec and tagline rules in CLAUDE.md, load the comment rules with any file, and name the judge's two rule sources apart
This commit is contained in:
@@ -16,6 +16,7 @@ How work proceeds in any repo, unless the repo's `AGENTS.md` says otherwise. The
|
||||
- **Remove a finished item's row and detail from `todo.md`, and revise any decision that cites it.** If the repo publishes something others consume — a package, an image, an API — reword the item for them and move it to `CHANGELOG.md` under `## Unreleased`. A changelog is for the public, never for the next agent. Otherwise delete it; git history is the record.
|
||||
- **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.
|
||||
|
||||
## Quality
|
||||
@@ -26,7 +27,7 @@ Quality is proven by review. Every change is reviewed as a diff. The whole proje
|
||||
2. **True to the technical principles** (`~/.claude/principles/technical-principles.md`). `larv-review`'s comprehension check (§3 → "Architecture") measures KISS.
|
||||
3. **Plainly written**, per "Prose".
|
||||
|
||||
### A false claim is a bug — fix it where you find it
|
||||
### A false claim is a bug
|
||||
|
||||
Docs, comments and what a program prints — `--help`, an error, a log line — assert checkable things: a command, a resolution rule, a path, a limit. Verify one before you repeat or build on it. When it is wrong, correct it in the same change: the claim — or the code, when consumers already rely on what the claim promises. Never work around it or record the discrepancy elsewhere.
|
||||
|
||||
@@ -42,15 +43,18 @@ Everything written — chat, commit messages, comments, docs, code — is in **E
|
||||
- **Write the thing, not an introduction to it.** A sentence announcing what follows, or flagging that it deserves attention, carries nothing — if it matters, it is in what follows. A bare label is fine. BANNED: `Here's the new audience text, which is the part that needs your eye:`, `One thing I changed that deserves your attention.`, `One judgment call I'd flag rather than bury.`, `Three things came along that would otherwise have been left false.` GOOD: `New audience text:`, or the list alone.
|
||||
- **No contrastive tail.** `X rather than Y`, `not Y but X`, `instead of Y`: state X and stop. The rejected alternative is noise unless naming it stops a reader doing Y. BANNED: `verified in CI rather than asserted`. GOOD: `verified in CI`.
|
||||
|
||||
## 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.
|
||||
|
||||
## Topic rules
|
||||
|
||||
Each loads by itself when a session reads or writes a matching file; read it first when you need its rule before that.
|
||||
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.
|
||||
|
||||
- Public API specs: `~/.claude/rules/api-specs.md`.
|
||||
- Comments, and what earns a place in a doc: `~/.claude/rules/comments.md`.
|
||||
- Decisions and `docs/decisions.md`: `~/.claude/rules/decisions.md`.
|
||||
- README goals and audience, and a README's contents, a package's included: `~/.claude/rules/readme.md`.
|
||||
- `todo.md` items, their scores and Exempt reasons: `~/.claude/rules/todo-items.md`.
|
||||
- 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`.
|
||||
|
||||
## 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.
|
||||
|
||||
Reference in New Issue
Block a user