Review guide
For whoever reviews a pull request here: a person, Claude Code Review or another AI reviewer. Reviewers read this file from main, never from the pull request under review, so a change can't lower its own bar. Changes to this file go in their own pull request (.github/CODEOWNERS).
What to look for, in this order
- Authorization and data ownership. Every endpoint, Server Action and query checks who is calling and only touches their data. Changing an ID in a request must not reveal or change someone else's data. Identity comes from the session, never from the request body or a hidden field.
- Input validation. Every input is validated on the server (Zod), whatever the browser does.
- Secrets and personal data. None in code, logs, URLs, error messages, test data or the pull request text. New variables are in
.env.example. - Proof. The pull request shows the proof from
/verify: checks, the bits' end-to-end tests, what was seen working. Every new or changed bit has its doc indocs/bits/and a test that would fail without the change. - Triggered checks. The items of
docs/CHECKS.mdwhose trigger matches the diff were done. - Weakened checks. No
.skip,.only, retries,sleep, lowered limits or disabled rules; no change todocs/CHECKS.md,REVIEW.md,.claude/or CI mixed into a feature. - The standard.
AGENTS.md: the stack, pnpm, TypeScript, shadcn/ui, decisions recorded indocs/DECISIONS.md.
Don't comment on formatting or anything pnpm check already enforces.
How to report
- Tag each finding Important (must be fixed before merging), Nit (optional) or Pre-existing (the bug was there before this change: worth a follow-up, not the author's to fix here).
- Say why it matters and how to reproduce it (the request, the input, the page), so the author doesn't have to reconstruct it from the diff.
- Review the latest commit. A review of an older commit says nothing about the current one.
Rules for people and agents
Instructions for AI coding agents (Claude Code, Cursor, GitHub Copilot, Codex, Gemini…) working in this repository. Humans: this is also the fastest way to understand the project.
Checks triggered by a change
A short list of things that went wrong before (here or in other Itaca projects), each one written so it can be spotted from a diff. /verify reads the list from main (git show…