REQ-MCP-024: Engine-level entropic.* tools validate their arguments and emit typed directives

← Requirements

What it requires

  1. Given pipeline with fewer than two stages or an unknown stage name, Then an error naming the problem is returned and no directive is emitted; Given complete with coverage_gap=true and no gap_description, Then a missing_gap_description error; Given a single-tier config, Then delegate and pipeline are not registered; Given no state provider, Then diagnose, inspect, and context_inspect each return the provider-not-configured error; Given a valid delegate/complete/phase_change/prune call, Then the expected directive types appear in the envelope and introspection calls carry none.
  2. Given session A added a todo, When session B adds one, Then B's list holds only B's items and A's only A's; Given A's conversation ends, Then A's next list starts empty and B's is untouched.
tier
NOT_RUN

Where it lives

  • src/mcp24

See it on the map

How it is met

implemented byresults (263 tests)DelegateToolPipelineToolbuild_complete_directivebuild_directivecall_providerexecuteexecuteexecuteexecuteexecuteexecuteexecuteexecuteexecuteexecuteexecuteextract_and_process_directivesfollowup_resultspipeline_rejectionregister_core_toolsregister_delegation_toolsregister_introspection_toolsrelease_sessionset_state_provider263 absent263 tests, a summary by result: every test is in the tests table below

Show on the map

Implemented by

Tests (263)

Reached through calls

263 tests: 263 absent

testresultlinked byimplementers exercisedcalls away
context_inspect entries have required fieldsabsentinferred1 of 24: set_state_provider1
context_inspect respects max_messages limitabsentinferred1 of 24: set_state_provider1
context_inspect returns all messages when max_messages omittedabsentinferred1 of 24: set_state_provider1
context_inspect returns no directivesabsentinferred1 of 24: set_state_provider1
gh#143: context_inspect survives non-object argumentsabsentinferred1 of 24: set_state_provider1
gh#203: every bundled tool emits only what its outputSchema declaresabsentinferred1 of 24: set_state_provider1
inspect handles empty/invalid args without crashingabsentinferred1 of 24: set_state_provider1
test_diagnose_config_sectionabsentinferred1 of 24: set_state_provider1
test_diagnose_history_limit_customabsentinferred1 of 24: set_state_provider1
test_diagnose_metrics_fieldsabsentinferred1 of 24: set_state_provider1
test_diagnose_no_directivesabsentinferred1 of 24: set_state_provider1
test_diagnose_no_docs_by_defaultabsentinferred1 of 24: set_state_provider1
test_diagnose_returns_all_sectionsabsentinferred1 of 24: set_state_provider1
test_diagnose_valid_jsonabsentinferred1 of 24: set_state_provider1
test_diagnose_with_docsabsentinferred1 of 24: set_state_provider1
test_inspect_config_fullabsentinferred1 of 24: set_state_provider1
test_inspect_config_sectionabsentinferred1 of 24: set_state_provider1
test_inspect_config_unknown_sectionabsentinferred1 of 24: set_state_provider1
test_inspect_docs_fullabsentinferred1 of 24: set_state_provider1
test_inspect_docs_sectionabsentinferred1 of 24: set_state_provider1
test_inspect_history_defaultabsentinferred1 of 24: set_state_provider1
test_inspect_history_with_limitabsentinferred1 of 24: set_state_provider1
test_inspect_identity_by_nameabsentinferred1 of 24: set_state_provider1
test_inspect_identity_includes_assembled_promptabsentinferred1 of 24: set_state_provider1
test_inspect_identity_unknownabsentinferred1 of 24: set_state_provider1
test_inspect_metricsabsentinferred1 of 24: set_state_provider1
test_inspect_no_directivesabsentinferred1 of 24: set_state_provider1
test_inspect_stateabsentinferred1 of 24: set_state_provider1
test_inspect_tool_by_nameabsentinferred1 of 24: set_state_provider1
test_inspect_tool_unknownabsentinferred1 of 24: set_state_provider1
test_inspect_unknown_targetabsentinferred1 of 24: set_state_provider1
v2.14.6: a headless host still dispatches engine directivesabsentinferred8 of 242
gh#160: an isolated delegation never writes the project, and absentinferred5 of 243
gh#162: a delegate seeded with context answers from the named absentinferred5 of 243
v2.14.6: a lead that answers in prose is nudged, and its forced absentinferred5 of 243
v2.14.6: with thinking on, each loop turn ends in a real tool callabsentinferred5 of 243
A call that fails identically is refused rather than retried absentinferred8 of 244
Anti-spiral hard block stops dispatch and emits absentinferred8 of 244
Anti-spiral hard block uses derived default when sentinel setabsentinferred8 of 244
Auto approve skips callbackabsentinferred8 of 244
Chained POST_TOOL_CALL hooks: last write winsabsentinferred8 of 244
Circuit breaker at threeabsentinferred8 of 244
Duplicate counter resetsabsentinferred8 of 244
Duplicate detection skipsabsentinferred8 of 244
Error result not cached for dedupabsentinferred8 of 244
Headless mode denies without callbackabsentinferred8 of 244
Max tool calls per turnabsentinferred8 of 244
Multiple tool calls in batchabsentinferred8 of 244
POST_TOOL_CALL fires on duplicate rejection with kindabsentinferred8 of 244
POST_TOOL_CALL fires on schema rejection with kindabsentinferred8 of 244
POST_TOOL_CALL hook transforms duplicate-rejection contentabsentinferred8 of 244
POST_TOOL_CALL hook transforms schema-rejection contentabsentinferred8 of 244
POST_TOOL_CALL hook transforms successful tool result contentabsentinferred8 of 244
POST_TOOL_CALL with *modified_json == NULL leaves content untouchedabsentinferred8 of 244
PRE/POST_TOOL_CALL fire for successful callsabsentinferred8 of 244
PRE_TOOL_CALL cancel short-circuits dispatch and still fires POSTabsentinferred8 of 244
Permission denied returns feedbackabsentinferred8 of 244
Process single tool callabsentinferred8 of 244
Schema validation rejects invalid enum valueabsentinferred8 of 244
Schema validation rejects missing required fieldabsentinferred8 of 244
Tool call history records successful executionsabsentinferred8 of 244
Tool emits directives → ToolExecutor extracts + dispatches themabsentinferred8 of 244
Tool executor processes calls via ServerManagerabsentinferred8 of 244
effective_max_tool_calls_per_turn overrides global limitabsentinferred8 of 244
gh#111: POST_TOOL_CALL hook returning malformed UTF-8 is absentinferred8 of 244
gh#143: an argument-free call serialises as an object absentinferred8 of 244
gh#143: an argument-free call to a no-required-fields tool absentinferred8 of 244
gh#143: dispatch converts a throwing tool into a tool errorabsentinferred8 of 244
gh#168: a rewritten payload carrying bad UTF-8 is sanitized, absentinferred8 of 244
gh#168: the rewrite is visible to the dup cache and POST hookabsentinferred8 of 244
gh#190: a structured JSON error counts as a failure everywhereabsentinferred8 of 244
gh#211: a tier that declares an EMPTY allowlist may call nothingabsentinferred8 of 244
gh#83: allowlisted tool dispatches normallyabsentinferred8 of 244
gh#83: empty locked_tier bypasses enforcementabsentinferred8 of 244
gh#83: no map wired = pass-through (pre-v2.5.2 behavior)absentinferred8 of 244
gh#83: off-allowlist tool is rejected_unauthorized at dispatchabsentinferred8 of 244
gh#83: tier with no allowlist entry is unrestrictedabsentinferred8 of 244
mcp.bash.timeout_seconds reaches the dispatched bash serverabsentinferred8 of 244
process_single_call completes with locked_tier setabsentinferred8 of 244
v2.14.0: schema validation enforces declared minimum and maximumabsentinferred8 of 244
gh#158: a delegated child's read satisfies its parent's write — absentinferred8 of 245
gh#158: a session's tool call never resolves inside another absentinferred8 of 245
gh#158: repeated sandbox swaps race nothing a concurrent absentinferred8 of 245
gh#158: two sessions reading and writing through ONE filesystem absentinferred8 of 245
gh#158: two sessions writing todos through ONE entropic server absentinferred8 of 245
gh#168: a PRE_TOOL_CALL hook's modified args reach the toolabsentinferred8 of 245
gh#168: a malformed modification is refused, not half-appliedabsentinferred8 of 245
gh#168: a modification that renames the tool is refusedabsentinferred8 of 245
gh#168: a non-zero return still cancels, modification or notabsentinferred8 of 245
gh#166: two workspaces on one handle do not read each other's absentinferred6 of 245
gh#179: each workspace's sessions answer from its own app_context, absentinferred6 of 245
v2.14.1: a declared server serves each workspace from its own repositoryabsentinferred6 of 245
gh#166: two workspaces resolve one relative path to two rootsabsentinferred5 of 245
gh#179: a workspace's app_context replaces the handle's for its sessions onlyabsentinferred5 of 245
gh#179: workspace_app_context loads a repository's own file, opt-inabsentinferred5 of 245
gh#199: a workspace does not spawn what its root's .mcp.json declaresabsentinferred5 of 245
gh#211: unset workspace_roots keeps today's behaviour; a relative absentinferred5 of 245
gh#211: workspace_roots admits only directories inside itabsentinferred5 of 245
v2.14.0: the pre-connect hook decides what config left openabsentinferred5 of 245
v2.14.1: each workspace launches the declared servers, rooted at absentinferred5 of 245
gh#158: clearing the default conversation releases the default absentinferred8 of 246
gh#158: each session's todo list is its ownabsentinferred8 of 246
gh#158: ending a session's conversation releases its read absentinferred8 of 246
gh#158: read-before-write is judged per session — another absentinferred8 of 246
Configure with null JSON returns errorabsentinferred6 of 246
Double-configure on one handle is refusedabsentinferred6 of 246
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66)absentinferred6 of 246
Three handles can coexistabsentinferred6 of 246
Two GPU-resident handles can coexist (v2.2.8 target)absentinferred6 of 246
Two handles configure independentlyabsentinferred6 of 246
entropic_configure called twice on the same handle returns ALREADY_CONFIGUREDabsentinferred6 of 246
entropic_configure rejects NULL config_jsonabsentinferred6 of 246
entropic_configure rejects NULL handleabsentinferred6 of 246
entropic_configure_dir on /dev/null subpath returns an error, not an exceptionabsentinferred6 of 246
entropic_configure_dir on a tmp dir runs the loader pathabsentinferred6 of 246
entropic_configure_dir rejects NULL handleabsentinferred6 of 246
entropic_configure_dir with empty string path returns an error code, not an exceptionabsentinferred6 of 246
entropic_configure_from_file rejects NULL handleabsentinferred6 of 246
entropic_configure_from_file rejects NULL pathabsentinferred6 of 246
entropic_configure_from_file rejects missing fileabsentinferred6 of 246
entropic_last_error reflects most-recent operation failureabsentinferred6 of 246
entropic_last_error returns per-handle state (v2.2.6)absentinferred6 of 246
entropic_register_mcp_server on a configured handle absentinferred6 of 246
entropic_run_messages with console logging disabled still absentinferred6 of 246
entropic_seconds_since_last_activity returns 0 before any run absentinferred6 of 246
gh#110: MTP engages through the real agent loop (entropic_run)absentinferred6 of 246
gh#121 regression: configure populates engine's allowed_tools from identity frontmatterabsentinferred6 of 246
gh#144: concurrent bridge clients queue instead of racingabsentinferred6 of 246
gh#154 a tier grammar stem that cannot resolve YET still absentinferred6 of 246
gh#154 a tier grammar stem that resolves still configuresabsentinferred6 of 246
gh#154 a tier with no grammar is unaffectedabsentinferred6 of 246
gh#154 entropic_metrics_json carries a generations arrayabsentinferred6 of 246
gh#156 a frontmatter-less app_context fails configure absentinferred6 of 246
gh#156 a frontmatter-less constitution fails configure tooabsentinferred6 of 246
gh#156 a missing app_context path fails configureabsentinferred6 of 246
gh#156 a well-formed app_context file still configuresabsentinferred6 of 246
gh#156 app_context false still configuresabsentinferred6 of 246
gh#156 inline app_context content still configuresabsentinferred6 of 246
gh#158 entropic_interrupt_session targets exactly one runabsentinferred6 of 246
gh#163 entropic_configure carries app_context into ParsedConfigabsentinferred6 of 246
gh#163 entropic_configure_dir carries app_contextabsentinferred6 of 246
gh#163 entropic_configure_from_file carries app_contextabsentinferred6 of 246
gh#163 the object and false spellings survive configure_dir tooabsentinferred6 of 246
gh#164 entropic_release_model names an unknown tierabsentinferred6 of 246
gh#164 entropic_release_model refuses to unload mid-turnabsentinferred6 of 246
gh#165 entropic_session_context_set guards its preconditionsabsentinferred6 of 246
gh#165 entropic_session_context_set refuses the running sessionabsentinferred6 of 246
gh#165 entropic_session_context_set round-trips through the C ABIabsentinferred6 of 246
gh#175: a non-positive mcp.server_timeout_seconds is refused at configureabsentinferred6 of 246
gh#203: followup returns delegation_id and summary from real storageabsentinferred6 of 246
gh#204: an unservable http_port fails configure loudlyabsentinferred6 of 246
gh#95: identity grammar: field constrains that tier's outputabsentinferred6 of 246
h1.run() after h2.configure() does not segfault (v2.2.6)absentinferred6 of 246
gh#158: interrupting one session leaves the other runningabsentinferred6 of 247
gh#158: metrics and context reads are safe during live runsabsentinferred6 of 247
gh#158: two concurrent sessions do not bleed into each otherabsentinferred6 of 247
gh#164: entropic_release_model frees VRAM through the C ABIabsentinferred6 of 247
gh#165 + gh#164: release the weights, keep the conversationabsentinferred6 of 247
gh#165: a dropped session restored from JSON keeps answeringabsentinferred6 of 247
gh#169: an iteration-capped delegate hands its parent the audit it absentinferred6 of 247
gh#181: a delegate hard-cut by the thinking budget hands its absentinferred6 of 247
gh#194: a plain generation publishes the prefill it performedabsentinferred6 of 247
gh#198: a deferred handle holds no GPU memory until it runsabsentinferred6 of 247
gh#204/gh#205: two HTTP clients, different session, workspace and absentinferred6 of 247
gh#214: a prompt that does not fit fails the turn, typedabsentinferred6 of 247
gh#216: multi-byte text at the history cut does not poison later turnsabsentinferred6 of 247
gh#217: release is refused while another session is decodingabsentinferred6 of 247
gh#93: autoparser family parses a multi-parameter tool callabsentinferred6 of 247
gh#93: entropic_interrupt stops a long run early (cancel-bridge)absentinferred6 of 247
gh#94: enable_thinking:false suppresses think blocks (facade)absentinferred6 of 247
gh#99: run_as emits each tier's grammar on a shared modelabsentinferred6 of 247
outside-root optional: a real model's reads outside its root absentinferred6 of 247
v2.14.3: release frees the model over MCP and the conversation survivesabsentinferred6 of 247
v2.14.4: a model's commit message with shell syntax is text, not a commandabsentinferred6 of 247
v2.14.5: a failed turn is an error carrying only its own textabsentinferred6 of 247
gh#144: the ask tool advertises session as OPTIONALabsentinferred5 of 2410
gh#205: ask advertises tier and workspace, both OPTIONALabsentinferred5 of 2410
v2.14.6: the model's own tool call stays in the history it is shownabsentinferred5 of 2411
ExternalBridge start() declines duplicate in-process socket bindingabsentinferred5 of 2413
gh#204: a listener stopped the instant it started still stopsabsentinferred5 of 2413
gh#204: the HTTP listener serves the bridge to authenticated clients onlyabsentinferred5 of 2413
gh#220: a port another listener holds is refused, not sharedabsentinferred5 of 2413
LlamaCppBackend lifecycle on a small real model (one load)absentinferred5 of 2414
gh#87 diag: multi-parameter tool call — gemma4 (dedicated PEG)absentinferred5 of 2414
gh#87 Increment-2: backend render_with_tools → parse_response absentinferred5 of 2415
ModelOrchestrator real-model generate (one load, CPU)absentinferred5 of 2416
Orchestrator generate() returns typed error when tier missingabsentinferred5 of 2416
Orchestrator generate_streaming error + routing + fallback pathsabsentinferred5 of 2416
gh#106 MTP kernel: engaged + lossless-coherentabsentinferred5 of 2416
gh#108 (v2.10.3) CONTROL: plain-decode streaming on the same tierabsentinferred5 of 2416
gh#108 (v2.10.3) MTP + grammar + streaming through absentinferred5 of 2416
gh#108 (v2.10.3) MTP + streaming without a grammar still streamsabsentinferred5 of 2416
gh#108 MTP + flash + q4 KV succeeds on E4B QAT Q4 absentinferred5 of 2416
gh#108 MTP + flash attention succeeds (v2.9.3, upstream #25148)absentinferred5 of 2416
gh#108 MTP greedy holds across a multi-turn contextabsentinferred5 of 2416
gh#108 MTP guards: out-of-envelope requests fail loudabsentinferred5 of 2416
gh#108 MTP is lossless at temperature>0 (empirical distribution check)absentinferred5 of 2416
gh#122: fenced-json block in model output yields a tool callabsentinferred5 of 2416
gh#127: ambiguous fenced args object returns empty (no false positive)absentinferred5 of 2416
gh#127: fenced args-only object matched by registered tool schemaabsentinferred5 of 2416
gh#134 (v2.10.4) A/B: the knob, not the model, produces the callabsentinferred5 of 2416
gh#134 (v2.10.4) closest replication of the reported stall configabsentinferred5 of 2416
gh#134 (v2.10.4) multi-turn: rails hold past the stall onsetabsentinferred5 of 2416
gh#134 (v2.10.4) require_tool_call forces a tool call under MTPabsentinferred5 of 2416
gh#144: MTP prefill must not re-decode an unchanged prefixabsentinferred5 of 2416
gh#154 a tier grammar that is not registered refuses the runabsentinferred5 of 2416
gh#88: a parroted {action:...} emission dispatches via the gemma absentinferred5 of 2416
interface_factory: wiring + iface_* surface sweepabsentinferred5 of 2416
Compaction fires when context exceeds thresholdabsentinferred5 of 2417
Consecutive same-tier generations do not leak content across absentinferred5 of 2417
Constitutional validator detects violations and revisesabsentinferred5 of 2417
Conversation with model output survives save and loadabsentinferred5 of 2417
Delegation wiring fires on_delegation_start callbackabsentinferred5 of 2417
Dynamic identity creation and generation through engine loopabsentinferred5 of 2417
Engine produces coherent text from a simple promptabsentinferred5 of 2417
Engine state transitions include PLANNING and EXECUTINGabsentinferred5 of 2417
GBNF grammar constrains output to valid JSONabsentinferred5 of 2417
Gemma 4 A4B GGUF loads and generates first tokenabsentinferred5 of 2417
Gemma 4 E4B GGUF loads and generates first tokenabsentinferred5 of 2417
Generation succeeds with non-default GPU profileabsentinferred5 of 2417
Hooks fire in correct order during a generation cycleabsentinferred5 of 2417
Lead delegates to child and receives resultabsentinferred5 of 2417
LoRA adapter load failure is handled gracefullyabsentinferred5 of 2417
MCP authorization denial propagates through engineabsentinferred5 of 2417
Model output is correctly parsed into tool callsabsentinferred5 of 2417
Multi-turn context is retained across generationsabsentinferred5 of 2417
Multi-turn engine calls retain contextabsentinferred5 of 2417
Nemotron 3 family GGUF loads and generates first tokenabsentinferred5 of 2417
Qwen 3.5 family GGUF loads and generates first tokenabsentinferred5 of 2417
Recall-style prompts do not surface prior-generation contentabsentinferred5 of 2417
Routing fires on_tier_selected callbackabsentinferred5 of 2417
Single-turn engine loop produces coherent responseabsentinferred5 of 2417
Text-only model handles multimodal input gracefullyabsentinferred5 of 2417
Tool call cycle: generate, parse, execute, regenerateabsentinferred5 of 2417
True end-to-end: real prompts, real engine, real modelabsentinferred5 of 2417
gh#103 contrast: batch mode may generate past the tool callabsentinferred5 of 2417
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND absentinferred5 of 2417
gh#103: sequential tool_call_mode hard-stops at the first tool call absentinferred5 of 2417
gh#105: constitutional validator's toolless render must NOT clobber absentinferred5 of 2417
gh#106 MTP functions on the E4B QAT trunkabsentinferred5 of 2417
gh#106 MTP routes through orchestrator->generate()absentinferred5 of 2417
gh#108 (v2.10.0) a request-level grammar routes to MTP on an absentinferred5 of 2417
gh#108 (v2.10.3) CONTROL: non-streaming generate on the same tierabsentinferred5 of 2417
gh#108 MTP engages with tools staged through orchestrator (agent loop)absentinferred5 of 2417
gh#108 MTP loud error propagates through orchestrator (no fallback)absentinferred5 of 2417
gh#108 per-tier speculative_mtp=false overrides the global flagabsentinferred5 of 2417
gh#137 a toolless enable_thinking:false turn must not deliver absentinferred5 of 2417
gh#148 auto: a VRAM reserve forces a real partial offload that absentinferred5 of 2417
gh#154 a REQUEST-level grammar_key miss still fails openabsentinferred5 of 2417
gh#154 registering the tier's grammar after configure opens the absentinferred5 of 2417
gh#87 cutover: params.tools drives common_chat through the orchestratorabsentinferred5 of 2417
gh#88: a gemma multi-turn session never accumulates a parrotable absentinferred5 of 2417
gh#90: gemma <|\"|> escape on a numeric value keeps string typingabsentinferred5 of 2417
v2.14.6: a real image runs through E4B QAT and its projectorabsentinferred5 of 2417
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, absentinferred5 of 2419
gh#108 agentic benchmark: full 24-config permutation matrix absentinferred5 of 2419
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B absentinferred5 of 2419
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B absentinferred5 of 2419
gh#164: release then reload decodes correctly on a hybrid archabsentinferred5 of 2419
gh#164: release then reload decodes correctly on gemma4 (plain KV)absentinferred5 of 2419
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 contextabsentinferred5 of 2419
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 contextabsentinferred5 of 2419
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 contextabsentinferred5 of 2419