REQ-STOR-002: Serialized, parameter-bound statement execution¶
What it requires
- Given an initialized database and a conversation row, When 4 threads each insert 10 messages concurrently, Then all 40 rows are present and the database is not corrupted.
- Given an INSERT with bound parameters, When the row is selected back, Then the round-tripped values match exactly.
- A check asserts execute/fetch_one/fetch_all return false/false/0 when the connection is closed.
- tier
- NOT_RUN
How it is met
Implemented by
executesrc/storage/database.cpp:269execute_rawsrc/storage/database.cpp:295fetch_allsrc/storage/database.cpp:353fetch_onesrc/storage/database.cpp:322preparesrc/storage/database.cpp:247
Tests (113)
Reached through calls
113 tests: 113 absent
| test | result | linked by | implementers exercised | calls away |
|---|---|---|---|---|
Basic INSERT and SELECT round-trip | absent | inferred | 3 of 5: execute, fetch_one, prepare | 1 |
CASCADE delete removes messages and delegations | absent | inferred | 3 of 5: execute, fetch_one, prepare | 1 |
Concurrent access does not corrupt | absent | inferred | 3 of 5: execute, fetch_one, prepare | 1 |
FTS5 triggers clean up on DELETE | absent | inferred | 3 of 5: execute, fetch_one, prepare | 1 |
FTS5 triggers populate on INSERT | absent | inferred | 3 of 5: execute, fetch_one, prepare | 1 |
Migrations are idempotent | absent | inferred | 2 of 5: fetch_one, prepare | 1 |
Migrations run in order | absent | inferred | 2 of 5: fetch_all, prepare | 1 |
Delete conversation cascades | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 2 |
Save and load conversation round-trips | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 2 |
Update conversation title | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 2 |
gh#203: followup returns delegation_id and summary from real storage | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 2 |
Delegation lifecycle | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
FTS5 search returns results with snippets | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
List conversations with pagination | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
Storage statistics | absent | inferred | 3 of 5: execute, fetch_one, prepare | 2 |
StorageInterface delegation callbacks are invoked | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
get_delegation_by_id retrieves a single delegation row | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
gh#112/gh#113: get_delegation_by_id sanitizes invalid UTF-8 in | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
gh#114: get_delegations sanitizes invalid UTF-8 in task field | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
gh#48: a manager-driven delegation persists a row the FK accepts | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
search_delegations finds completed rows by substring | absent | inferred | 3 of 5: execute, fetch_all, prepare | 2 |
Compaction snapshot saved | absent | inferred | 2 of 5: execute, prepare | 2 |
CompactionManager saves snapshot via StorageInterface | absent | inferred | 2 of 5: execute, prepare | 2 |
Create conversation returns valid UUID | absent | inferred | 2 of 5: execute, prepare | 2 |
Storage write failures are reported, not swallowed | absent | inferred | 2 of 5: execute, prepare | 2 |
create_delegation refuses empty parent (gh#48) | absent | inferred | 2 of 5: execute, prepare | 2 |
test_complete_delegation | absent | inferred | 2 of 5: execute, prepare | 2 |
test_create_delegation | absent | inferred | 2 of 5: execute, prepare | 2 |
test_save_snapshot | absent | inferred | 2 of 5: execute, prepare | 2 |
C API full conversation lifecycle | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 3 |
Storage C ABI rejects every NULL-handle entry-point | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 3 |
Storage handle round-trips a conversation through the C ABI | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 3 |
C API search | absent | inferred | 3 of 5: execute, fetch_all, prepare | 3 |
C API snapshot and stats | absent | inferred | 3 of 5: execute, fetch_one, prepare | 3 |
Storage handle exercises delegation create/complete/get through the C ABI | absent | inferred | 3 of 5: execute, fetch_all, prepare | 3 |
Storage handle lists and deletes conversations through the C ABI | absent | inferred | 3 of 5: execute, fetch_all, prepare | 3 |
Storage handle saves snapshot + queries stats through the C ABI | absent | inferred | 3 of 5: execute, fetch_one, prepare | 3 |
Storage handle searches conversations through the C ABI | absent | inferred | 3 of 5: execute, fetch_all, prepare | 3 |
C API NULL handle returns error | absent | inferred | 2 of 5: execute, prepare | 3 |
C API delegation round-trip | absent | inferred | 2 of 5: execute, prepare | 3 |
Configure with null JSON returns error | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
Double-configure on one handle is refused | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66) | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
Three handles can coexist | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
Two GPU-resident handles can coexist (v2.2.8 target) | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
Two handles configure independently | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure called twice on the same handle returns ALREADY_CONFIGURED | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure rejects NULL config_json | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure rejects NULL handle | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure_dir on /dev/null subpath returns an error, not an exception | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure_dir on a tmp dir runs the loader path | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure_dir rejects NULL handle | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure_dir with empty string path returns an error code, not an exception | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure_from_file rejects NULL handle | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure_from_file rejects NULL path | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_configure_from_file rejects missing file | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_last_error reflects most-recent operation failure | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_last_error returns per-handle state (v2.2.6) | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_register_mcp_server on a configured handle | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_run_messages with console logging disabled still | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
entropic_seconds_since_last_activity returns 0 before any run | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#110: MTP engages through the real agent loop (entropic_run) | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#121 regression: configure populates engine's allowed_tools from identity frontmatter | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#144: concurrent bridge clients queue instead of racing | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#154 a tier grammar stem that cannot resolve YET still | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#154 a tier grammar stem that resolves still configures | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#154 a tier with no grammar is unaffected | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#154 entropic_metrics_json carries a generations array | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#156 a frontmatter-less app_context fails configure | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#156 a frontmatter-less constitution fails configure too | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#156 a missing app_context path fails configure | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#156 a well-formed app_context file still configures | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#156 app_context false still configures | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#156 inline app_context content still configures | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#158 entropic_interrupt_session targets exactly one run | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#163 entropic_configure carries app_context into ParsedConfig | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#163 entropic_configure_dir carries app_context | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#163 entropic_configure_from_file carries app_context | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#163 the object and false spellings survive configure_dir too | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#164 entropic_release_model names an unknown tier | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#164 entropic_release_model refuses to unload mid-turn | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#165 entropic_session_context_set guards its preconditions | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#165 entropic_session_context_set refuses the running session | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#165 entropic_session_context_set round-trips through the C ABI | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#175: a non-positive mcp.server_timeout_seconds is refused at configure | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#204: an unservable http_port fails configure loudly | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#95: identity grammar: field constrains that tier's output | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
h1.run() after h2.configure() does not segfault (v2.2.6) | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 8 |
gh#158: interrupting one session leaves the other running | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#158: metrics and context reads are safe during live runs | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#158: two concurrent sessions do not bleed into each other | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#164: entropic_release_model frees VRAM through the C ABI | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#165 + gh#164: release the weights, keep the conversation | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#165: a dropped session restored from JSON keeps answering | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#166: two workspaces on one handle do not read each other's | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#169: an iteration-capped delegate hands its parent the audit it | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#179: each workspace's sessions answer from its own app_context, | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#181: a delegate hard-cut by the thinking budget hands its | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#194: a plain generation publishes the prefill it performed | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#198: a deferred handle holds no GPU memory until it runs | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#204/gh#205: two HTTP clients, different session, workspace and | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#214: a prompt that does not fit fails the turn, typed | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#216: multi-byte text at the history cut does not poison later turns | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#217: release is refused while another session is decoding | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#93: autoparser family parses a multi-parameter tool call | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#93: entropic_interrupt stops a long run early (cancel-bridge) | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#94: enable_thinking:false suppresses think blocks (facade) | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
gh#99: run_as emits each tier's grammar on a shared model | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
outside-root optional: a real model's reads outside its root | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
v2.14.1: a declared server serves each workspace from its own repository | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
v2.14.3: release frees the model over MCP and the conversation survives | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
v2.14.4: a model's commit message with shell syntax is text, not a command | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |
v2.14.5: a failed turn is an error carrying only its own text | absent | inferred | 4 of 5: execute, fetch_all, fetch_one, prepare | 9 |