repair_apply_batch
Apply repair proposals for one or more issues of a scan run, writing repaired copies and before snapshots without overwriting source files. Use preview-only to review before confirming.
Instructions
Apply repair proposals for one or more issues of a scan run. WRITES DATA: each repair writes a repaired copy plus a before snapshot under .datasentry/repairs/; the source file is never overwritten. D5-08: prefer repair_propose_batch first. preview_only is mandatory: true reviews operations without writing, false applies them. Issues without a proposal are skipped (no_proposal), not failed. Returns applied runs and per-issue errors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | Yes | mandatory acknowledgement that this call mutates state; the tool writes nothing unless it is true (D5-08, D5-12) | |
| issue_ids | No | issue ids to apply (default: all of the run) | |
| scan_run_id | Yes | ||
| source_path | Yes | source data file | |
| preview_only | Yes | when true, return proposals without writing any data (D5-08 preview-first) |