cutbolt_session_apply
Commit an atomic editing batch against a project's expected revision. Any failure commits nothing; conflicts return REVISION_CONFLICT so you can re-read and retry safely.
Instructions
Commit an atomic editing batch against expected_revision. Reuse request_id only with identical arguments after a lost response. On REVISION_CONFLICT read and reconsider; returns a receipt with semantic changes.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| operations | Yes | Editing operations applied in order as one atomic batch; any failure commits nothing. | |
| project_id | Yes | ID of a project saved in store_root. | |
| request_id | Yes | Caller-chosen ID for this change, 1-128 bytes, unique within the project. Resend identical arguments with it to retry safely. | |
| store_root | No | Existing local directory holding the session database (projects.sqlite3) | |
| expected_revision | Yes | Head revision this change was prepared against; a different head fails with REVISION_CONFLICT. |