code_audit
Run read-only code, security, and dead-code checks on touched files or a defined scope to surface review findings without changing code.
Instructions
Read-only review pass (code review, security, dead code…) on files you touched or any scope — reports findings via checks, changes nothing. Zero findings is not proof.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| files | No | Scope; default task materials. | |
| scope | No | Subdir (workspace checks). | |
| action | No | run default; accept/ledger. | |
| checks | No | Default first two. | |
| reason | No | accept: why. | |
| options | No | Per-check passthrough to the original analyzer: code_review: source/diff/max_issues; security_review: source; guard_patterns: ruleset; dead_code: include_files. Full schema via code_query mode=capability. | |
| task_id | Yes | Task id. | |
| fingerprint | No | accept: from prior run. | |
| max_findings | No | Default 50. | |
| workspace_dir | Yes | Project root (abs). | |
| expected_state_revision | No | Guard. |