accept_coverage_divergences
Accept coverage divergences as mapping changes in one batch: add missing mappings and remove spurious ones, with independent validation and partial batch support.
Instructions
Accept a set of coverage divergences as mapping changes, in one batch.
Each accepted missing_mapping ADDS its CO to the control; each
spurious_mapping REMOVES it. Applied as one version per affected
control. Each item is validated independently — the response separates
applied from skipped (stale / would-orphan / already in that
state), so a partial batch still lands its valid items.
Read the rows first with get_verdict_divergence; to accept only the
high-confidence ones, filter its coverage rows by p_covers (near 1.0
for missing_mapping, near 0.0 for spurious_mapping) before passing them
here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | JSON array of {"control_id", "co_id", "kind"} objects, where kind is "missing_mapping" or "spurious_mapping". | |
| model_id | Yes | ID of the threat model. | |
| change_reason | Yes | Why these mapping changes are appropriate (min 10 chars). Recorded on every affected control's version history. | |
| server_version | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||