Expand description
Conformance cases for AgentStore backends (spec 3.3 §5.7, §10 K7, S-I14).
| Case | Contract |
|---|---|
put_get_round_trip | A record reads back exactly as written, every state, origin and use included; names, lines and instructions with quotes, newlines and non-ASCII characters survive |
put_if_version_compares | A write succeeds only from the stored version, or from none with 0; a refused write changes nothing and an unknown id with a version creates nothing |
concurrent_puts_succeed_once | Concurrent writes of one record from the same version, from two handles, succeed exactly once; concurrent creates of one id succeed once |
list_orders_by_id | list returns every record, tombstones included, ordered by id in byte order |
delete_removes_only_suggestions | delete removes a Proposed record and answers true, then false; it leaves any other record and answers false |
tombstones_stay | A Removed record stays readable and listed, and a write from an older version is refused |
records_survive_a_restart | Records read back through a new handle (durable backends only) |
concurrent_writers | Concurrent creates from two handles over distinct ids lose no record |
Every case writes under fresh ids, so a harness may point every case at one shared database. Stores never delete a record other than a suggestion, so the cases leave their tombstones and active records behind.
Traits§
- Agent
Store Harness - Opens an
AgentStorebackend for the conformance suite.
Functions§
- concurrent_
puts_ succeed_ once - Concurrent writes from one version succeed exactly once.
- concurrent_
writers - Concurrent creates from two handles lose no record.
- delete_
removes_ only_ suggestions deleteremoves suggestions only.- list_
orders_ by_ id listreturns every record in id order, tombstones included.- put_
get_ round_ trip - A record reads back exactly as written.
- put_
if_ version_ compares - Writes compare the stored version.
- records_
survive_ a_ restart - Records read back through a new handle.
- tombstones_
stay - A tombstone stays.