Skip to main content

Module agent_store

Module agent_store 

Source
Expand description

Conformance cases for AgentStore backends (spec 3.3 §5.7, §10 K7, S-I14).

CaseContract
put_get_round_tripA 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_comparesA 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_onceConcurrent writes of one record from the same version, from two handles, succeed exactly once; concurrent creates of one id succeed once
list_orders_by_idlist returns every record, tombstones included, ordered by id in byte order
delete_removes_only_suggestionsdelete removes a Proposed record and answers true, then false; it leaves any other record and answers false
tombstones_stayA Removed record stays readable and listed, and a write from an older version is refused
records_survive_a_restartRecords read back through a new handle (durable backends only)
concurrent_writersConcurrent 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§

AgentStoreHarness
Opens an AgentStore backend 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
delete removes suggestions only.
list_orders_by_id
list returns 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.