memory_reconcile_apply
Batch-applies confirmed memory reconciliation operations—merge, invalidate, score, or promote entries—idempotently and refreshes the project reconcile timestamp.
Instructions
On-demand organization · apply: batch-execute the operations confirmed by the LLM fine judgment (deterministic, idempotent).
Each operation is a dict, dispatched by its op field (an unknown/missing field returns an error for that entry without blocking the rest):
merge: {op:"merge", content: the new merged content, memo_ids: [the entries being merged], memo_type?:"summary", scope_path?} — creates a new memo and sets each merged entry invalid, with invalidated_by pointing at the new entry (Zep invalidation semantics, no deletion).
invalidate: {op:"invalidate", memo_ids:[...]} — invalidates entry by entry (contradicted/overturned).
score: {op:"score", memo_id, quality_score:1-10, reason} — adds a quality score, with reason going into meta.
promote: {op:"promote", content, kind:constraint/design/directive/preference, scope?:"project"/global/user, source_refs?:[source memo ids]} — distills and promotes into a direction-layer entry; the red lines apply as usual (a single entry ≤400 characters + bucket character quotas global 1200 / project 1500 / user 300; over the limit, that entry returns an error with usage; the safety scan likewise applies).
keep / noop: no action (may be omitted).
Idempotent: repeating invalidate/merge on an already-invalidated entry returns noop without error. After applying, it automatically refreshes the project's last_reconcile_at (the baseline for the volume-threshold soft hint).
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": {
"operations": "<operations>"
},
"name": "memory_reconcile_apply"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | the operation list, one dict per entry, dispatched by the op field into merge / invalidate / score / promote / keep (see the tool description for each field). One call may mix multiple ops; a single entry's error returns only that entry's error and does not block the rest. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||