Skip to main content
How-toDraft · not yet verified

Correcting a Record

State the truth about a record that was wrong with e_correct. The correction is attached to that one record; the record's content is not changed, and every reader gets both.

When to Use​

When the record was wrong when it was written. If it was right and has since changed, evolve the fact. If it should leave memory, delete it.

The situationWhat to do
The record was never trueCorrect it
The record was true, and the world moved onEvolve the fact
The record should leave memoryDelete it

The calls​

One correction names exactly one record, and does not change once written. To change it, retract it and create another.

ActionArgumentsWhat it does
createsr_id, content, optional comment, authorityAttaches a correction to the record. Requires write access to the record's lane
retractcorrection_idRetracts the correction. Requires write access to its lane
inspectcorrection_idReturns one correction
list—Lists corrections

Response​

From then on e_read returns the record with its corrections beside it, and e_gather and e_timeline flag the record has_correction. A retracted correction is still returned by e_read, without its text.

A correction carries human_correction authority unless the call says otherwise. The engine does not check that a person made it, and search does not rank by authority.

note

e_correct list and inspect return corrections, with their text and the record each names, whatever lanes the agent profile can read.

Example​

The agent recorded a date; a person reads the contract and finds it was wrong.

e_correct {
"action": "create",
"sr_id": "sr_3f9a1c20e47b5d16a2e8c0b7d4f19a63",
"content": "The Acme renewal is due 2026-12-31. The earlier date was misread from a draft.",
"comment": "Checked against the signed contract."
}

Days later another agent asks about the renewal. e_gather returns the record flagged has_correction, and e_read returns the original and the correction together.

REST equivalent

curl -s -X POST "$EMEMORY_URL/api/v2/correct" \
-H "Authorization: Bearer $EMEMORY_API_KEY" \
-H "Content-Type: application/json" \
-d '{"action": "create", "sr_id": "sr_3f9a1c20e47b5d16a2e8c0b7d4f19a63", "content": "The Acme renewal is due 2026-12-31. The earlier date was misread from a draft.", "comment": "Checked against the signed contract."}'