check_section_delete_safe
Evaluate if a documentation section can be safely deleted by checking tutorial-path membership, anchor references, backlinks, and recent edits. Returns a safety verdict and ranked blockers to prevent accidental removal.
Instructions
Composite preflight: is this section safe to delete? Fuses tutorial-path membership, anchor-specific backlinks, transitive doc-level backlinks, and recent-edit recency into a single verdict (safe_to_delete, tutorial_path_blocking, anchor_referenced, backlinks_blocking, recently_edited_blocking) plus up to 5 ranked blockers and a one-line recommended_action. Read-only — never mutates the index.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | ||
| section_id | Yes | Stable section ID, format owner/repo::doc_path::slug#level | |
| transitive_depth | No | Backlink BFS depth. Default 3. | |
| recent_edit_days | No | Days within which a recent edit becomes a soft blocker. Default 14. |