coherra_repair
Fix audit findings by archiving stale facts, merging duplicates, or resolving contradictions with a canonical value.
Instructions
Apply one repair to a flagged issue from the last audit.
Actions by severity:
stale: "archive" — forget the entity
"refresh" — bump updated_at to now (fact still true)
duplicate: "merge" — keep higher-confidence entry, archive the other
contradiction: "keep_a" — keep primary (category/name), archive related
"keep_b" — keep related_entity, archive primary
"merge_manual" — archive both, write new canonical entity
at primary address using supplied value
Args: issue_id: 10-char hex id from coherra_audit issues_found list. action: Repair action string (see above). value: Required only for contradiction/merge_manual — the correct canonical value to write.
Returns: {ok, issue_id, severity, action_taken, archived, written}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | No | ||
| action | Yes | ||
| issue_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||