.ai/review-rules.md
Review-specific rules for Claude. Focus on correctness — style is handled by ruff.
Before reviewing, read and apply the guidelines in:
Common mistakes are covered in the common-mistakes / gotcha sections in AGENTS.md, models.md, pipelines.md, and modular.md. Additionally, watch for below patterns that aren't covered there:
# per reviewer comment on PR #NNNN, # as discussed in review, # TODO from offline chat, debug printouts. Same for files: parity harnesses, comparison scripts, anything in scripts/ with hardcoded developer paths or imports from the reference repo. State the reason so the comment stands alone, or drop it.A PR can leave existing docs stale or surface a pattern worth recording. Scan the docs related to what the PR touches and flag updates as a suggestions / additional info section (not blocking):
docs/, docstrings, and examples. Flag any that now describe outdated behavior or that are missing for the new surface.When reviewing a PR that adds a new model, trace how the model is actually called from the pipeline to identify likely dead code. Include the results as a suggestions / additional info section in your review (not as blocking comments — the findings are advisory).
__call__ and follow every call into the model — which arguments are passed, which branches are taken, which helper methods are invoked.__init__ (or any published config JSON). Identify code paths that are unreachable under those defaults — e.g. an if self.config.use_foo: branch where use_foo defaults to False and no published checkpoint sets it to True.forward (or helper methods) but never passed by the pipeline, private methods never called, layers initialized but never used in forward.