memory_graph_provenance_reconcile
Correct exact node or edge provenance in a project using an audit reason and validated session/observation sources; detach, retire, restore, or preview changes without mutation.
Instructions
Correct exact graph targets in one project with a required audit reason and validated session/observation sources. action defaults to detach: remove selected node/edge source references while retaining a final source observation. retire/restore changes only exact edge visibility, preserves original provenance and edge history, and requires expectedUpdatedAt plus canonical review evidence in sources. restore also requires live same-project endpoints and valid original provenance. dryRun:true previews without mutation; otherwise changed targets update graph/index state and create an audit entry. Returns {success,action,project,dryRun,changedTargets,results} with per-target before/after provenance and removed IDs; applied changes also return auditId. Unchanged targets have changed:false. Invalid, missing, stale, wrong-project or conflicting targets return {success:false,error}. Use memory_graph_query to inspect targets and memory_graph_upsert to add supported relationships; memory_graph_purge physically deletes a project graph.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"project": "<project>",
"targets": "<targets>",
"reason": "<reason>"
},
"name": "memory_graph_provenance_reconcile"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | Default detach removes requested provenance. Retire/restore changes exact edge visibility; target sources are review evidence, not replacement relation support. | |
| dryRun | No | Preview exact before/after provenance without mutation | |
| reason | Yes | Required audit reason for applying the correction | |
| project | Yes | Exact registered project identifier | |
| targets | Yes |