audit_pr
Audit a PR diff against a project's active rules and lessons. Persists an audit record and returns rules/lessons for LLM classification.
Instructions
Audit a PR diff against a project's active rules and lessons (detail="full"): persists an audit record (SHA-256 diff hash + a snapshot of the rule versions evaluated) and returns the diff plus rules/lessons for the calling LLM to classify.
Access level: analyze. Returns: JSON with audit_id, pr_diff, rules, lessons, and an instruction_for_client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pr_diff | Yes | The PR's unified diff text. | |
| project_id | Yes | Project id whose active rules/lessons to audit against. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |