ecg_commit_step
Commits approved facts and provenance for one exchange as a storage checkpoint; requires an approval grant and can supersede outdated facts at confidence 0.75 or higher.
Instructions
Store approved facts for one exchange. This call is the storage checkpoint.
The arguments are shown to the user in the native approval dialog. Pass the
real title and body of every fact. Do not substitute "see above",
a hash, or an empty placements list to hide what will be saved.
exchange_id is the prep_id from prepare, or a new id when committing
placements directly. messages are provenance turns. Each placement uses
the same fields as a candidate, plus action and optional
supersede_existing_fact_id / target_fact_id.
Storage is refused unless the session has approve_session or an
unconsumed approve_run grant. One successful commit consumes one
approve_run grant. A failed commit does not consume it.
An explicit supersede at confidence >= 0.75 marks the old fact superseded
and links supersedes. Lower confidence, or an ambiguous target, keeps
both facts and opens a conflict instead of overwriting anything.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| messages | Yes | ||
| placements | Yes | ||
| session_id | Yes | ||
| exchange_id | Yes |