The pruning pipeline scans generated drafts, probes each markdown link via safe HTTP requests, and unwraps broken non-target citations into plain text while shielding the client's money link.
flowchart LR
A[Generated Draft] --> B[Extract Links]
B --> C[Range GET Probes]
C --> D{Status?}
D -- 2xx / 3xx --> E[Keep Link]
D -- 4xx / 5xx --> F{Money Link?}
F -- Yes --> G[Shield Link]
F -- No --> H[Unwrap to Text]
E --> I[Clean Draft]
G --> I
H --> I