memory_write_checked
Write a memory value with optimistic concurrency control, succeeding only when the version matches to prevent lost updates.
Instructions
Optimistic-concurrency write by key: succeeds only if current version equals expected_version, else returns a conflict. Prevents lost updates when multiple agents write the same key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | ||
| text | Yes | ||
| namespace | No | facts | |
| expected_version | Yes |