get_doc_pr_risk_profile
Assess risk of doc changes by fusing volume, blast radius, and other signals into a 0-1 score with risk level, top blockers, and recommended action.
Instructions
Composite doc-PR risk profile. Fuses volume + blast_radius + backlink_burden + tutorial_disruption + role_weight signals over a caller-supplied list of changed sections into a 0-1 risk_score with risk_level (low/medium/high/critical), top-5 blockers, and a one-line recommended_action. Caller computes the change list from a git diff or pairs with get_recent_changes. Mirrors jcm's get_pr_risk_profile.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| changed_sections | Yes | List of changed sections. Each entry can be a bare section_id (str, kind defaults to 'modified') or {section_id, kind} where kind in {added, modified, deleted}. |