REQ-STOR-005: Delegation record lifecycle with parent-conversation guard

← Requirements

What it requires

  1. Given a parent conversation, When create_delegation is called, Then a delegation id and a child conversation id are returned and the record is retrievable via get_delegations; When complete_delegation marks it completed with a summary, Then the reloaded record shows the status and summary.
  2. Given an empty parent_conversation_id, When create_delegation is called, Then it returns false and both output ids are left empty.
  3. Given a stored delegation, When get_delegation_by_id is called with its id, Then the single row is returned; with an unknown id, Then it returns false.
  4. Given several delegations, When search_delegations is called with a substring, Then only completed rows whose result_summary contains it are returned, bounded by max_results.
tier
NOT_RUN

Where it lives

  • src/storage12

See it on the map

How it is met

implemented byresults (87 tests)bind_delegation_insertcomplete_delegationcreate_delegationentropic_storage_complete_delegationentropic_storage_create_delegationentropic_storage_get_delegationsget_delegation_by_idget_delegationsguard_parent_conversationlatest_delegation_for_targetmake_delegationsearch_delegations87 absent87 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (87)

Reached through calls

87 tests: 87 absent

testresultlinked byimplementers exercisedcalls away
Storage C ABI rejects every NULL-handle entry-pointabsentinferred9 of 121
Storage handle exercises delegation create/complete/get through the C ABIabsentinferred9 of 121
gh#114: get_delegations sanitizes invalid UTF-8 in task field absentinferred8 of 121
gh#203: followup returns delegation_id and summary from real storageabsentinferred8 of 121
C API delegation round-tripabsentinferred7 of 121
Delegation lifecycleabsentinferred6 of 121
get_delegation_by_id retrieves a single delegation rowabsentinferred6 of 121
gh#112/gh#113: get_delegation_by_id sanitizes invalid UTF-8 in absentinferred6 of 121
search_delegations finds completed rows by substringabsentinferred6 of 121
create_delegation refuses empty parent (gh#48)absentinferred4 of 12: bind_delegation_insert, create_delegation, guard_parent_conversation, make_delegation1
test_create_delegationabsentinferred4 of 12: bind_delegation_insert, create_delegation, guard_parent_conversation, make_delegation1
StorageInterface delegation callbacks are invokedabsentinferred1 of 12: get_delegations1
gh#48: a manager-driven delegation persists a row the FK accepts absentinferred1 of 12: get_delegations1
test_complete_delegationabsentinferred1 of 12: complete_delegation1
Configure with null JSON returns errorabsentinferred8 of 127
Double-configure on one handle is refusedabsentinferred8 of 127
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred8 of 127
Three handles can coexistabsentinferred8 of 127
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred8 of 127
Two handles configure independentlyabsentinferred8 of 127
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred8 of 127
entropic_configure rejects NULL config_jsonabsentinferred8 of 127
entropic_configure rejects NULL handleabsentinferred8 of 127
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred8 of 127
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred8 of 127
entropic_configure_dir rejects NULL handleabsentinferred8 of 127
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred8 of 127
entropic_configure_from_file rejects NULL handleabsentinferred8 of 127
entropic_configure_from_file rejects NULL pathabsentinferred8 of 127
entropic_configure_from_file rejects missing fileabsentinferred8 of 127
entropic_last_error reflects most-recent operation failureabsentinferred8 of 127
entropic_last_error returns per-handle state (v2.2.6)absentinferred8 of 127
entropic_register_mcp_server on a configured handle absentinferred8 of 127
entropic_run_messages with console logging disabled still absentinferred8 of 127
entropic_seconds_since_last_activity returns 0 before any run absentinferred8 of 127
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred8 of 127
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred8 of 127
gh#144: concurrent bridge clients queue instead of racingabsentinferred8 of 127
gh#154 a tier grammar stem that cannot resolve YET still absentinferred8 of 127
gh#154 a tier grammar stem that resolves still configuresabsentinferred8 of 127
gh#154 a tier with no grammar is unaffectedabsentinferred8 of 127
gh#154 entropic_metrics_json carries a generations arrayabsentinferred8 of 127
gh#156 a frontmatter-less app_context fails configure absentinferred8 of 127
gh#156 a frontmatter-less constitution fails configure tooabsentinferred8 of 127
gh#156 a missing app_context path fails configureabsentinferred8 of 127
gh#156 a well-formed app_context file still configuresabsentinferred8 of 127
gh#156 app_context false still configuresabsentinferred8 of 127
gh#156 inline app_context content still configuresabsentinferred8 of 127
gh#158 entropic_interrupt_session targets exactly one runabsentinferred8 of 127
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred8 of 127
gh#163 entropic_configure_dir carries app_contextabsentinferred8 of 127
gh#163 entropic_configure_from_file carries app_contextabsentinferred8 of 127
gh#163 the object and false spellings survive configure_dir tooabsentinferred8 of 127
gh#164 entropic_release_model names an unknown tierabsentinferred8 of 127
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred8 of 127
gh#165 entropic_session_context_set guards its preconditionsabsentinferred8 of 127
gh#165 entropic_session_context_set refuses the running sessionabsentinferred8 of 127
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred8 of 127
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred8 of 127
gh#204: an unservable http_port fails configure loudlyabsentinferred8 of 127
gh#95: identity grammar: field constrains that tier's outputabsentinferred8 of 127
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred8 of 127
gh#158: interrupting one session leaves the other runningabsentinferred8 of 128
gh#158: metrics and context reads are safe during live runsabsentinferred8 of 128
gh#158: two concurrent sessions do not bleed into each otherabsentinferred8 of 128
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred8 of 128
gh#165 + gh#164: release the weights, keep the conversationabsentinferred8 of 128
gh#165: a dropped session restored from JSON keeps answeringabsentinferred8 of 128
gh#166: two workspaces on one handle do not read each other's absentinferred8 of 128
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred8 of 128
gh#179: each workspace's sessions answer from its own app_context, absentinferred8 of 128
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred8 of 128
gh#194: a plain generation publishes the prefill it performedabsentinferred8 of 128
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred8 of 128
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred8 of 128
gh#214: a prompt that does not fit fails the turn, typedabsentinferred8 of 128
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred8 of 128
gh#217: release is refused while another session is decodingabsentinferred8 of 128
gh#93: autoparser family parses a multi-parameter tool callabsentinferred8 of 128
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred8 of 128
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred8 of 128
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred8 of 128
outside-root optional: a real model's reads outside its root absentinferred8 of 128
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred8 of 128
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred8 of 128
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred8 of 128
v2.14.5: a failed turn is an error carrying only its own textabsentinferred8 of 128