Skip to content

set_duplicate_status

Set the triage STATUS of one duplicate group, addressed by its shared source_value (Source Health duplicates, #1116). status ∈ to_fix (this duplication should be repaired - the default; clears any override), allowed (an intentional, sanctioned duplicate - kept but EXCLUDED from total_issues, stop flagging it), resolved (the duplication has been fixed - removed from the list, a re-scan confirms). An invalid status returns 422. Status persists PROJECT-WIDE per source_value. Use this after the sonenta-source-health agent has de-duplicated the keys, to mark the group resolved, or to whitelist a legitimate duplicate as allowed. An optional note records WHY (audit trail).

NameTypeDescription
project_uuidstringoptionalProject UUID. Required when multiple projects are configured (SONENTA_PROJECTS); defaults to the single configured project otherwise.
source_valuestringrequiredThe shared source-language value identifying the duplicate group (from list_source_duplicates).
statusstringrequiredNew triage status for the group. (to_fix, allowed, resolved)
notestringoptionalOptional human/agent note recording why the status was set (audit trail).
files_modifiedarrayoptionalOptional audit trail of the t() repoints you made while resolving this group: each {path (required), line?, found_key, replacement_key, occurrences?}. found_key = the key string that WAS in the code at this spot (the old, redundant one); replacement_key = the canonical you repointed it to (an existing survivor, OR the new_key from apply_new_key_cluster). Accepted on every resolution path and MERGED (union + dedup by the full normalized entry) - record edits at whatever step you make them and they accumulate; omit to preserve the existing list. Always pass the STRUCTURED field, never just a note.
{
"tool": "set_duplicate_status",
"arguments": {
"source_value": "<source_value>",
"status": "to_fix"
}
}