ait_review
Audit Python files or directories using a 13-rule AST catalog to return machine-readable findings with severity, location, confidence, causation traces, repro witnesses, and unified diffs.
Instructions
Run the 13-rule AST catalog over a Python file or directory and return machine-readable findings: rule_id, severity (DEFECT/WARNING/ADVICE), location, symbol, confidence, causation trace, and where available a repro witness and a unified diff. USE WHEN: the user asks to review, audit, lint, or hunt bugs, race conditions, null dereferences, or swallowed errors in .py code, or before proposing a patch. DO NOT USE: to inspect one known symbol (use ait_slice_context) or to test a patch you already wrote (use ait_verify_fix). Note: use_cache=true (the default) writes /.ait_cache; findings are bounded by max_findings and severity_min.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | File or directory to analyse, e.g. src/ait/mcp.py or src/ait. | |
| exitfirst | No | Stop at the first file carrying a DEFECT. | |
| use_cache | No | Reuse the BLAKE2b cache; set false for one-shot scans that must not write into the tree. | |
| max_findings | No | Cap the returned findings (sorted by path,line); the tally still counts every finding. | |
| severity_min | No | Drop findings below this severity, e.g. DEFECT to return only defects. | ADVICE |