REQ-STOR-002: Serialized, parameter-bound statement execution

← Requirements

What it requires

  1. 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.
  2. Given an INSERT with bound parameters, When the row is selected back, Then the round-tripped values match exactly.
  3. A check asserts execute/fetch_one/fetch_all return false/false/0 when the connection is closed.
tier
NOT_RUN

Where it lives

  • src/storage5

See it on the map

How it is met

implemented byresults (113 tests)executeexecute_rawfetch_allfetch_oneprepare113 absent113 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (113)

Reached through calls

113 tests: 113 absent

testresultlinked byimplementers exercisedcalls away
Basic INSERT and SELECT round-tripabsentinferred3 of 5: execute, fetch_one, prepare1
CASCADE delete removes messages and delegationsabsentinferred3 of 5: execute, fetch_one, prepare1
Concurrent access does not corruptabsentinferred3 of 5: execute, fetch_one, prepare1
FTS5 triggers clean up on DELETEabsentinferred3 of 5: execute, fetch_one, prepare1
FTS5 triggers populate on INSERTabsentinferred3 of 5: execute, fetch_one, prepare1
Migrations are idempotentabsentinferred2 of 5: fetch_one, prepare1
Migrations run in orderabsentinferred2 of 5: fetch_all, prepare1
Delete conversation cascadesabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare2
Save and load conversation round-tripsabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare2
Update conversation titleabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare2
gh#203: followup returns delegation_id and summary from real storageabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare2
Delegation lifecycleabsentinferred3 of 5: execute, fetch_all, prepare2
FTS5 search returns results with snippetsabsentinferred3 of 5: execute, fetch_all, prepare2
List conversations with paginationabsentinferred3 of 5: execute, fetch_all, prepare2
Storage statisticsabsentinferred3 of 5: execute, fetch_one, prepare2
StorageInterface delegation callbacks are invokedabsentinferred3 of 5: execute, fetch_all, prepare2
get_delegation_by_id retrieves a single delegation rowabsentinferred3 of 5: execute, fetch_all, prepare2
gh#112/gh#113: get_delegation_by_id sanitizes invalid UTF-8 in absentinferred3 of 5: execute, fetch_all, prepare2
gh#114: get_delegations sanitizes invalid UTF-8 in task field absentinferred3 of 5: execute, fetch_all, prepare2
gh#48: a manager-driven delegation persists a row the FK accepts absentinferred3 of 5: execute, fetch_all, prepare2
search_delegations finds completed rows by substringabsentinferred3 of 5: execute, fetch_all, prepare2
Compaction snapshot savedabsentinferred2 of 5: execute, prepare2
CompactionManager saves snapshot via StorageInterfaceabsentinferred2 of 5: execute, prepare2
Create conversation returns valid UUIDabsentinferred2 of 5: execute, prepare2
Storage write failures are reported, not swallowedabsentinferred2 of 5: execute, prepare2
create_delegation refuses empty parent (gh#48)absentinferred2 of 5: execute, prepare2
test_complete_delegationabsentinferred2 of 5: execute, prepare2
test_create_delegationabsentinferred2 of 5: execute, prepare2
test_save_snapshotabsentinferred2 of 5: execute, prepare2
C API full conversation lifecycleabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare3
Storage C ABI rejects every NULL-handle entry-pointabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare3
Storage handle round-trips a conversation through the C ABIabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare3
C API searchabsentinferred3 of 5: execute, fetch_all, prepare3
C API snapshot and statsabsentinferred3 of 5: execute, fetch_one, prepare3
Storage handle exercises delegation create/complete/get through the C ABIabsentinferred3 of 5: execute, fetch_all, prepare3
Storage handle lists and deletes conversations through the C ABIabsentinferred3 of 5: execute, fetch_all, prepare3
Storage handle saves snapshot + queries stats through the C ABIabsentinferred3 of 5: execute, fetch_one, prepare3
Storage handle searches conversations through the C ABIabsentinferred3 of 5: execute, fetch_all, prepare3
C API NULL handle returns errorabsentinferred2 of 5: execute, prepare3
C API delegation round-tripabsentinferred2 of 5: execute, prepare3
Configure with null JSON returns errorabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
Double-configure on one handle is refusedabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
Three handles can coexistabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
Two handles configure independentlyabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure rejects NULL config_jsonabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure rejects NULL handleabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure_dir rejects NULL handleabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure_from_file rejects NULL handleabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure_from_file rejects NULL pathabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_configure_from_file rejects missing fileabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_last_error reflects most-recent operation failureabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_last_error returns per-handle state (v2.2.6)absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_register_mcp_server on a configured handle absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_run_messages with console logging disabled still absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
entropic_seconds_since_last_activity returns 0 before any run absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#144: concurrent bridge clients queue instead of racingabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#154 a tier grammar stem that cannot resolve YET still absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#154 a tier grammar stem that resolves still configuresabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#154 a tier with no grammar is unaffectedabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#154 entropic_metrics_json carries a generations arrayabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#156 a frontmatter-less app_context fails configure absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#156 a frontmatter-less constitution fails configure tooabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#156 a missing app_context path fails configureabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#156 a well-formed app_context file still configuresabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#156 app_context false still configuresabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#156 inline app_context content still configuresabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#158 entropic_interrupt_session targets exactly one runabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#163 entropic_configure_dir carries app_contextabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#163 entropic_configure_from_file carries app_contextabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#163 the object and false spellings survive configure_dir tooabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#164 entropic_release_model names an unknown tierabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#165 entropic_session_context_set guards its preconditionsabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#165 entropic_session_context_set refuses the running sessionabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#204: an unservable http_port fails configure loudlyabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#95: identity grammar: field constrains that tier's outputabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred4 of 5: execute, fetch_all, fetch_one, prepare8
gh#158: interrupting one session leaves the other runningabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#158: metrics and context reads are safe during live runsabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#158: two concurrent sessions do not bleed into each otherabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#165 + gh#164: release the weights, keep the conversationabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#165: a dropped session restored from JSON keeps answeringabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#166: two workspaces on one handle do not read each other's absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#179: each workspace's sessions answer from its own app_context, absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#194: a plain generation publishes the prefill it performedabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#214: a prompt that does not fit fails the turn, typedabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#217: release is refused while another session is decodingabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#93: autoparser family parses a multi-parameter tool callabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
outside-root optional: a real model's reads outside its root absentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9
v2.14.5: a failed turn is an error carrying only its own textabsentinferred4 of 5: execute, fetch_all, fetch_one, prepare9