correct
Update a stored memory by revising its text, importance, or valence, while preserving an append-only revision history keyed by a required reason.
Instructions
Correct an existing memory in-place with a revision-history entry (engine v0.7.20+, Issue #47).
WHEN TO USE: When the user corrects a recalled fact.
"Actually, we're using Python 3.12, not 3.11" → correct the memory.
Preserves history via an append-only revision entry keyed on reason.
Entity relationships stay attached to the same rid (in-place mutation,
not a tombstone+new-rid dance).
Args: rid: The memory ID to correct. reason: Required — why the correction was made. Non-empty. Recorded on the revision-history entry so future recall + audit can reconstruct why the memory changed. new_text: Optional new text (pass None to keep existing). new_importance: Optional updated importance (0.0-1.0). new_valence: Optional updated valence (-1.0 to 1.0). metadata_merge: Optional dict to merge into existing metadata (None = keep as-is).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rid | Yes | ||
| reason | Yes | ||
| new_text | No | ||
| new_valence | No | ||
| metadata_merge | No | ||
| new_importance | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |