REQ-STOR-003: Conversation and message persistence with generated identity

← Requirements

What it requires

  1. Given a new backend, When create_conversation is called, Then it returns a 36-character UUID with '-' separators.
  2. Given a conversation with saved messages, When load_conversation is called, Then the result carries the conversation object and the messages in insertion order with role/content preserved.
  3. Given several conversations, When list_conversations is called with limit/offset, Then results are paginated, carry a message_count, and are ordered by updated_at descending.
  4. Given a conversation with messages, When delete_conversation is called, Then the conversation and its messages are gone.
  5. Given a title update, When the conversation is reloaded, Then the new title is returned.
  6. Given a message array, When save_snapshot is called, Then a compaction_snapshots row exists with the full JSON and the correct message_count.
tier
NOT_RUN

Where it lives

  • src/storage21

See it on the map

How it is met

implemented byresults (192 tests)bind_message_insertbuild_message_rowconversation_row_to_jsoncreate_conversationdelete_conversationentropic_storage_create_conversationentropic_storage_delete_conversationentropic_storage_list_conversationsentropic_storage_load_conversationentropic_storage_save_conversationentropic_storage_save_snapshotgenerate_uuidlist_conversationsload_conversationmake_conversationmake_delegationmessage_row_to_jsonsave_messagessave_snapshotupdate_titleutc_timestamp192 absent192 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (192)

Reached through calls

192 tests: 192 absent

testresultlinked byimplementers exercisedcalls away
Storage C ABI rejects every NULL-handle entry-pointabsentinferred20 of 211
C API full conversation lifecycleabsentinferred13 of 211
Storage handle round-trips a conversation through the C ABIabsentinferred13 of 211
gh#203: followup returns delegation_id and summary from real storageabsentinferred12 of 211
C API snapshot and statsabsentinferred11 of 211
Delete conversation cascadesabsentinferred11 of 211
Storage handle saves snapshot + queries stats through the C ABIabsentinferred11 of 211
Save and load conversation round-tripsabsentinferred10 of 211
C API searchabsentinferred9 of 211
Storage handle lists and deletes conversations through the C ABIabsentinferred9 of 211
Storage handle searches conversations through the C ABIabsentinferred9 of 211
Update conversation titleabsentinferred8 of 211
FTS5 search returns results with snippetsabsentinferred7 of 211
Storage statisticsabsentinferred7 of 211
Storage write failures are reported, not swallowedabsentinferred7 of 211
C API NULL handle returns errorabsentinferred6 of 211
C API delegation round-tripabsentinferred6 of 211
Storage handle exercises delegation create/complete/get through the C ABIabsentinferred6 of 211
Compaction snapshot savedabsentinferred5 of 211
Delegation lifecycleabsentinferred5 of 211
List conversations with paginationabsentinferred5 of 211
get_delegation_by_id retrieves a single delegation rowabsentinferred5 of 211
gh#112/gh#113: get_delegation_by_id sanitizes invalid UTF-8 in absentinferred5 of 211
gh#114: get_delegations sanitizes invalid UTF-8 in task field absentinferred5 of 211
search_delegations finds completed rows by substringabsentinferred5 of 211
CompactionManager saves snapshot via StorageInterfaceabsentinferred4 of 21: create_conversation, generate_uuid, make_conversation, utc_timestamp1
Create conversation returns valid UUIDabsentinferred4 of 21: create_conversation, generate_uuid, make_conversation, utc_timestamp1
StorageInterface delegation callbacks are invokedabsentinferred4 of 21: create_conversation, generate_uuid, make_conversation, utc_timestamp1
gh#48: a manager-driven delegation persists a row the FK accepts absentinferred4 of 21: create_conversation, generate_uuid, make_conversation, utc_timestamp1
test_save_snapshotabsentinferred3 of 21: generate_uuid, save_snapshot, utc_timestamp1
create_delegation refuses empty parent (gh#48)absentinferred5 of 212
test_create_delegationabsentinferred5 of 212
test_complete_delegationabsentinferred1 of 21: utc_timestamp2
recover_action_envelope_calls maps {action} envelope + name shapeabsentinferred1 of 21: generate_uuid3
apply_action_envelope_recovery substitutes only when empty + foundabsentinferred1 of 21: generate_uuid4
gh#108 the gemma4 adapter and the stream filter agree on markersabsentinferred1 of 21: generate_uuid4
Nemotron3 XML function call parsingabsentinferred1 of 21: generate_uuid5
Nemotron3 fallback to tagged JSONabsentinferred1 of 21: generate_uuid5
Nemotron3 reasoning-trace strippingabsentinferred1 of 21: generate_uuid5
Qwen35 content cleaningabsentinferred1 of 21: generate_uuid5
Qwen35 fallback to tagged JSONabsentinferred1 of 21: generate_uuid5
Qwen36 XML function call parsingabsentinferred1 of 21: generate_uuid5
Qwen36 content cleaning across multi-turn outputabsentinferred1 of 21: generate_uuid5
Qwen36 fallback to tagged JSONabsentinferred1 of 21: generate_uuid5
XML function call parsingabsentinferred1 of 21: generate_uuid5
Configure with null JSON returns errorabsentinferred12 of 218
Double-configure on one handle is refusedabsentinferred12 of 218
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred12 of 218
Three handles can coexistabsentinferred12 of 218
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred12 of 218
Two handles configure independentlyabsentinferred12 of 218
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred12 of 218
entropic_configure rejects NULL config_jsonabsentinferred12 of 218
entropic_configure rejects NULL handleabsentinferred12 of 218
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred12 of 218
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred12 of 218
entropic_configure_dir rejects NULL handleabsentinferred12 of 218
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred12 of 218
entropic_configure_from_file rejects NULL handleabsentinferred12 of 218
entropic_configure_from_file rejects NULL pathabsentinferred12 of 218
entropic_configure_from_file rejects missing fileabsentinferred12 of 218
entropic_last_error reflects most-recent operation failureabsentinferred12 of 218
entropic_last_error returns per-handle state (v2.2.6)absentinferred12 of 218
entropic_register_mcp_server on a configured handle absentinferred12 of 218
entropic_run_messages with console logging disabled still absentinferred12 of 218
entropic_seconds_since_last_activity returns 0 before any run absentinferred12 of 218
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred12 of 218
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred12 of 218
gh#144: concurrent bridge clients queue instead of racingabsentinferred12 of 218
gh#154 a tier grammar stem that cannot resolve YET still absentinferred12 of 218
gh#154 a tier grammar stem that resolves still configuresabsentinferred12 of 218
gh#154 a tier with no grammar is unaffectedabsentinferred12 of 218
gh#154 entropic_metrics_json carries a generations arrayabsentinferred12 of 218
gh#156 a frontmatter-less app_context fails configure absentinferred12 of 218
gh#156 a frontmatter-less constitution fails configure tooabsentinferred12 of 218
gh#156 a missing app_context path fails configureabsentinferred12 of 218
gh#156 a well-formed app_context file still configuresabsentinferred12 of 218
gh#156 app_context false still configuresabsentinferred12 of 218
gh#156 inline app_context content still configuresabsentinferred12 of 218
gh#158 entropic_interrupt_session targets exactly one runabsentinferred12 of 218
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred12 of 218
gh#163 entropic_configure_dir carries app_contextabsentinferred12 of 218
gh#163 entropic_configure_from_file carries app_contextabsentinferred12 of 218
gh#163 the object and false spellings survive configure_dir tooabsentinferred12 of 218
gh#164 entropic_release_model names an unknown tierabsentinferred12 of 218
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred12 of 218
gh#165 entropic_session_context_set guards its preconditionsabsentinferred12 of 218
gh#165 entropic_session_context_set refuses the running sessionabsentinferred12 of 218
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred12 of 218
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred12 of 218
gh#204: an unservable http_port fails configure loudlyabsentinferred12 of 218
gh#95: identity grammar: field constrains that tier's outputabsentinferred12 of 218
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred12 of 218
ModelOrchestrator real-model generate (one load, CPU)absentinferred1 of 21: generate_uuid8
Orchestrator generate() returns typed error when tier missingabsentinferred1 of 21: generate_uuid8
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred1 of 21: generate_uuid8
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred1 of 21: generate_uuid8
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred1 of 21: generate_uuid8
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred1 of 21: generate_uuid8
gh#122: fenced-json block in model output yields a tool callabsentinferred1 of 21: generate_uuid8
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred1 of 21: generate_uuid8
gh#127: fenced args-only object matched by registered tool schemaabsentinferred1 of 21: generate_uuid8
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred1 of 21: generate_uuid8
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred1 of 21: generate_uuid8
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred1 of 21: generate_uuid8
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred1 of 21: generate_uuid8
gh#154 a tier grammar that is not registered refuses the runabsentinferred1 of 21: generate_uuid8
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred1 of 21: generate_uuid8
interface_factory: wiring + iface_* surface sweepabsentinferred1 of 21: generate_uuid8
gh#158: interrupting one session leaves the other runningabsentinferred12 of 219
gh#158: metrics and context reads are safe during live runsabsentinferred12 of 219
gh#158: two concurrent sessions do not bleed into each otherabsentinferred12 of 219
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred12 of 219
gh#165 + gh#164: release the weights, keep the conversationabsentinferred12 of 219
gh#165: a dropped session restored from JSON keeps answeringabsentinferred12 of 219
gh#166: two workspaces on one handle do not read each other's absentinferred12 of 219
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred12 of 219
gh#179: each workspace's sessions answer from its own app_context, absentinferred12 of 219
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred12 of 219
gh#194: a plain generation publishes the prefill it performedabsentinferred12 of 219
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred12 of 219
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred12 of 219
gh#214: a prompt that does not fit fails the turn, typedabsentinferred12 of 219
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred12 of 219
gh#217: release is refused while another session is decodingabsentinferred12 of 219
gh#93: autoparser family parses a multi-parameter tool callabsentinferred12 of 219
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred12 of 219
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred12 of 219
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred12 of 219
outside-root optional: a real model's reads outside its root absentinferred12 of 219
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred12 of 219
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred12 of 219
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred12 of 219
v2.14.5: a failed turn is an error carrying only its own textabsentinferred12 of 219
Compaction fires when context exceeds thresholdabsentinferred1 of 21: generate_uuid9
Consecutive same-tier generations do not leak content across absentinferred1 of 21: generate_uuid9
Constitutional validator detects violations and revisesabsentinferred1 of 21: generate_uuid9
Conversation with model output survives save and loadabsentinferred1 of 21: generate_uuid9
Delegation wiring fires on_delegation_start callbackabsentinferred1 of 21: generate_uuid9
Dynamic identity creation and generation through engine loopabsentinferred1 of 21: generate_uuid9
Engine produces coherent text from a simple promptabsentinferred1 of 21: generate_uuid9
Engine state transitions include PLANNING and EXECUTINGabsentinferred1 of 21: generate_uuid9
GBNF grammar constrains output to valid JSONabsentinferred1 of 21: generate_uuid9
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred1 of 21: generate_uuid9
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred1 of 21: generate_uuid9
Generation succeeds with non-default GPU profileabsentinferred1 of 21: generate_uuid9
Hooks fire in correct order during a generation cycleabsentinferred1 of 21: generate_uuid9
Lead delegates to child and receives resultabsentinferred1 of 21: generate_uuid9
LoRA adapter load failure is handled gracefullyabsentinferred1 of 21: generate_uuid9
MCP authorization denial propagates through engineabsentinferred1 of 21: generate_uuid9
Model output is correctly parsed into tool callsabsentinferred1 of 21: generate_uuid9
Multi-turn context is retained across generationsabsentinferred1 of 21: generate_uuid9
Multi-turn engine calls retain contextabsentinferred1 of 21: generate_uuid9
Nemotron 3 family GGUF loads and generates first tokenabsentinferred1 of 21: generate_uuid9
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred1 of 21: generate_uuid9
Recall-style prompts do not surface prior-generation contentabsentinferred1 of 21: generate_uuid9
Routing fires on_tier_selected callbackabsentinferred1 of 21: generate_uuid9
Single-turn engine loop produces coherent responseabsentinferred1 of 21: generate_uuid9
Text-only model handles multimodal input gracefullyabsentinferred1 of 21: generate_uuid9
Tool call cycle: generate, parse, execute, regenerateabsentinferred1 of 21: generate_uuid9
True end-to-end: real prompts, real engine, real modelabsentinferred1 of 21: generate_uuid9
gh#103 contrast: batch mode may generate past the tool callabsentinferred1 of 21: generate_uuid9
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred1 of 21: generate_uuid9
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred1 of 21: generate_uuid9
gh#105: constitutional validator's toolless render must NOT clobber absentinferred1 of 21: generate_uuid9
gh#106 MTP routes through orchestrator->generate()absentinferred1 of 21: generate_uuid9
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred1 of 21: generate_uuid9
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred1 of 21: generate_uuid9
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred1 of 21: generate_uuid9
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred1 of 21: generate_uuid9
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred1 of 21: generate_uuid9
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred1 of 21: generate_uuid9
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred1 of 21: generate_uuid9
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred1 of 21: generate_uuid9
gh#154 registering the tier's grammar after configure opens the absentinferred1 of 21: generate_uuid9
gh#160: an isolated delegation never writes the project, and absentinferred1 of 21: generate_uuid9
gh#162: a delegate seeded with context answers from the named absentinferred1 of 21: generate_uuid9
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred1 of 21: generate_uuid9
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred1 of 21: generate_uuid9
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred1 of 21: generate_uuid9
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred1 of 21: generate_uuid9
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred1 of 21: generate_uuid9
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred1 of 21: generate_uuid9
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred1 of 21: generate_uuid11
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred1 of 21: generate_uuid11
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred1 of 21: generate_uuid11
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred1 of 21: generate_uuid11
gh#164: release then reload decodes correctly on a hybrid archabsentinferred1 of 21: generate_uuid11
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred1 of 21: generate_uuid11
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred1 of 21: generate_uuid11
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred1 of 21: generate_uuid11
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred1 of 21: generate_uuid11