REQ-STOR-001: Owned SQLite connection with forward-only schema migration

← Requirements

What it requires

  1. Given a fresh database path, When initialize() is called, Then it returns true, the file exists on disk, and is_open() reports true.
  2. Given an initialized database, When the migrations table is queried ordered by id, Then exactly the 4 migrations appear in declaration order.
  3. Given an already-initialized database, When a second SqliteDatabase is constructed on the same path and initialized, Then it succeeds and the migration count is still 4 (migrations were not re-applied).
tier
NOT_RUN

Where it lives

  • src/storage8
  • src/facade2

See it on the map

How it is met

implemented byresults (97 tests)closecloseentropic_storage_closeentropic_storage_createentropic_storage_initializeentropic_storage_openinitializeinitializeis_openrun_migrations97 absent97 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (97)

Reached through calls

97 tests: 97 absent

testresultlinked byimplementers exercisedcalls away
C API handle lifecycleabsentinferred4 of 10: entropic_storage_create, entropic_storage_initialize, initialize, run_migrations1
Storage open and closeabsentinferred4 of 10: entropic_storage_close, entropic_storage_open, initialize, run_migrations1
entropic_storage_open with a path inside a non-existent directory absentinferred4 of 10: entropic_storage_close, entropic_storage_open, initialize, run_migrations1
C API NULL handle returns errorabsentinferred3 of 10: entropic_storage_initialize, initialize, run_migrations1
Database creates file and initializesabsentinferred3 of 10: initialize, is_open, run_migrations1
Migrations are idempotentabsentinferred3 of 10: close, initialize, run_migrations1
entropic_storage_open rejects NULL handleabsentinferred3 of 10: entropic_storage_open, initialize, run_migrations1
entropic_storage_open with NULL db_path returns INVALID_ARGUMENTabsentinferred3 of 10: entropic_storage_open, initialize, run_migrations1
entropic_storage_open with NULL handle returns INVALID_HANDLEabsentinferred3 of 10: entropic_storage_open, initialize, run_migrations1
gh#203: followup returns delegation_id and summary from real storageabsentinferred3 of 10: entropic_storage_open, initialize, run_migrations1
Basic INSERT and SELECT round-tripabsentinferred2 of 10: initialize, run_migrations1
CASCADE delete removes messages and delegationsabsentinferred2 of 10: initialize, run_migrations1
Concurrent access does not corruptabsentinferred2 of 10: initialize, run_migrations1
FTS5 triggers clean up on DELETEabsentinferred2 of 10: initialize, run_migrations1
FTS5 triggers populate on INSERTabsentinferred2 of 10: initialize, run_migrations1
Migrations run in orderabsentinferred2 of 10: initialize, run_migrations1
entropic_storage_open then close on configured handleabsentinferred2 of 10: entropic_storage_close, entropic_storage_open1
entropic_storage_open with valid tmp path opens a SQLite backendabsentinferred2 of 10: entropic_storage_close, entropic_storage_open1
Storage C ABI safely returns nullptr on create with NULL db_pathabsentinferred1 of 10: entropic_storage_create1
entropic_storage_close before any open is a safe no-opabsentinferred1 of 10: entropic_storage_close1
entropic_storage_close on NULL handle returns INVALID_HANDLEabsentinferred1 of 10: entropic_storage_close1
entropic_storage_close rejects NULL handleabsentinferred1 of 10: entropic_storage_close1
entropic_storage_open into a path under a missing directory failsabsentinferred1 of 10: entropic_storage_open1
entropic_storage_open rejects NULL db_pathabsentinferred1 of 10: entropic_storage_open1
Configure with null JSON returns errorabsentinferred2 of 10: initialize, run_migrations6
Double-configure on one handle is refusedabsentinferred2 of 10: initialize, run_migrations6
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred2 of 10: initialize, run_migrations6
Three handles can coexistabsentinferred2 of 10: initialize, run_migrations6
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred2 of 10: initialize, run_migrations6
Two handles configure independentlyabsentinferred2 of 10: initialize, run_migrations6
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred2 of 10: initialize, run_migrations6
entropic_configure rejects NULL config_jsonabsentinferred2 of 10: initialize, run_migrations6
entropic_configure rejects NULL handleabsentinferred2 of 10: initialize, run_migrations6
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred2 of 10: initialize, run_migrations6
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred2 of 10: initialize, run_migrations6
entropic_configure_dir rejects NULL handleabsentinferred2 of 10: initialize, run_migrations6
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred2 of 10: initialize, run_migrations6
entropic_configure_from_file rejects NULL handleabsentinferred2 of 10: initialize, run_migrations6
entropic_configure_from_file rejects NULL pathabsentinferred2 of 10: initialize, run_migrations6
entropic_configure_from_file rejects missing fileabsentinferred2 of 10: initialize, run_migrations6
entropic_last_error reflects most-recent operation failureabsentinferred2 of 10: initialize, run_migrations6
entropic_last_error returns per-handle state (v2.2.6)absentinferred2 of 10: initialize, run_migrations6
entropic_register_mcp_server on a configured handle absentinferred2 of 10: initialize, run_migrations6
entropic_run_messages with console logging disabled still absentinferred2 of 10: initialize, run_migrations6
entropic_seconds_since_last_activity returns 0 before any run absentinferred2 of 10: initialize, run_migrations6
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred2 of 10: initialize, run_migrations6
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred2 of 10: initialize, run_migrations6
gh#144: concurrent bridge clients queue instead of racingabsentinferred2 of 10: initialize, run_migrations6
gh#154 a tier grammar stem that cannot resolve YET still absentinferred2 of 10: initialize, run_migrations6
gh#154 a tier grammar stem that resolves still configuresabsentinferred2 of 10: initialize, run_migrations6
gh#154 a tier with no grammar is unaffectedabsentinferred2 of 10: initialize, run_migrations6
gh#154 entropic_metrics_json carries a generations arrayabsentinferred2 of 10: initialize, run_migrations6
gh#156 a frontmatter-less app_context fails configure absentinferred2 of 10: initialize, run_migrations6
gh#156 a frontmatter-less constitution fails configure tooabsentinferred2 of 10: initialize, run_migrations6
gh#156 a missing app_context path fails configureabsentinferred2 of 10: initialize, run_migrations6
gh#156 a well-formed app_context file still configuresabsentinferred2 of 10: initialize, run_migrations6
gh#156 app_context false still configuresabsentinferred2 of 10: initialize, run_migrations6
gh#156 inline app_context content still configuresabsentinferred2 of 10: initialize, run_migrations6
gh#158 entropic_interrupt_session targets exactly one runabsentinferred2 of 10: initialize, run_migrations6
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred2 of 10: initialize, run_migrations6
gh#163 entropic_configure_dir carries app_contextabsentinferred2 of 10: initialize, run_migrations6
gh#163 entropic_configure_from_file carries app_contextabsentinferred2 of 10: initialize, run_migrations6
gh#163 the object and false spellings survive configure_dir tooabsentinferred2 of 10: initialize, run_migrations6
gh#164 entropic_release_model names an unknown tierabsentinferred2 of 10: initialize, run_migrations6
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred2 of 10: initialize, run_migrations6
gh#165 entropic_session_context_set guards its preconditionsabsentinferred2 of 10: initialize, run_migrations6
gh#165 entropic_session_context_set refuses the running sessionabsentinferred2 of 10: initialize, run_migrations6
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred2 of 10: initialize, run_migrations6
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred2 of 10: initialize, run_migrations6
gh#204: an unservable http_port fails configure loudlyabsentinferred2 of 10: initialize, run_migrations6
gh#95: identity grammar: field constrains that tier's outputabsentinferred2 of 10: initialize, run_migrations6
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred2 of 10: initialize, run_migrations6
gh#158: interrupting one session leaves the other runningabsentinferred2 of 10: initialize, run_migrations7
gh#158: metrics and context reads are safe during live runsabsentinferred2 of 10: initialize, run_migrations7
gh#158: two concurrent sessions do not bleed into each otherabsentinferred2 of 10: initialize, run_migrations7
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred2 of 10: initialize, run_migrations7
gh#165 + gh#164: release the weights, keep the conversationabsentinferred2 of 10: initialize, run_migrations7
gh#165: a dropped session restored from JSON keeps answeringabsentinferred2 of 10: initialize, run_migrations7
gh#166: two workspaces on one handle do not read each other's absentinferred2 of 10: initialize, run_migrations7
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred2 of 10: initialize, run_migrations7
gh#179: each workspace's sessions answer from its own app_context, absentinferred2 of 10: initialize, run_migrations7
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred2 of 10: initialize, run_migrations7
gh#194: a plain generation publishes the prefill it performedabsentinferred2 of 10: initialize, run_migrations7
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred2 of 10: initialize, run_migrations7
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred2 of 10: initialize, run_migrations7
gh#214: a prompt that does not fit fails the turn, typedabsentinferred2 of 10: initialize, run_migrations7
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred2 of 10: initialize, run_migrations7
gh#217: release is refused while another session is decodingabsentinferred2 of 10: initialize, run_migrations7
gh#93: autoparser family parses a multi-parameter tool callabsentinferred2 of 10: initialize, run_migrations7
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred2 of 10: initialize, run_migrations7
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred2 of 10: initialize, run_migrations7
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred2 of 10: initialize, run_migrations7
outside-root optional: a real model's reads outside its root absentinferred2 of 10: initialize, run_migrations7
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred2 of 10: initialize, run_migrations7
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred2 of 10: initialize, run_migrations7
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred2 of 10: initialize, run_migrations7
v2.14.5: a failed turn is an error carrying only its own textabsentinferred2 of 10: initialize, run_migrations7