trw_codebase_risk_report
Generates a composite-risk report ranking files by structural risk to prioritize code review effort. Returns file-level ordering from persisted analysis.
Instructions
Return c737/c739 ranked composite-risk report for the current SHA.
Use when a reviewer needs file-level structural risk ordering from a persisted trw-distill sidecar before prioritizing review effort.
Tier-gated. top_n=0 returns all entries; default 20.
Returns CodebaseRiskReportResult.model_dump() enriched by client
tier. NEVER raises.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| top_n | No | ||
| cache_dir | No | ||
| repo_root | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||