Tests¶
2227 tests the index recognises; 1861 have a page of their own. Type to filter by name, file, result or requirement count.
tests/concurrency/test_thread_safety.cpp 21 tests · 21 absent
tests/edge/test_config_edge_cases.cpp 12 tests · 12 absent
| test | line | result | requirements |
|---|---|---|---|
Negative context_length rejected | :66 | absent | 4 |
Zero context_length rejected | :83 | absent | 4 |
INT_MAX context_length rejected | :100 | absent | 4 |
Empty adapter rejected | :117 | absent | 4 |
Malformed allowed_tools rejected | :133 | absent | 2 |
Fallback tier referencing unknown tier | :147 | absent | 2 |
Tier map referencing nonexistent tier | :165 | absent | 2 |
Handoff rules referencing nonexistent tier | :186 | absent | 2 |
Empty config file returns descriptive error | :210 | absent | 10 |
Non-map YAML root returns error | :228 | absent | 10 |
Scalar YAML root returns error | :246 | absent | 10 |
Nonexistent config file returns error | :263 | absent | 10 |
tests/edge/test_malformed_tool_calls.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
Unknown tool dispatch returns error | :119 | absent | 3 |
Empty tool name dispatch returns error | :135 | absent | 3 |
Malformed JSON args reach tool | :151 | absent | 3 |
Dispatch with empty args string | :169 | absent | 3 |
Tool returning empty result | :186 | absent | 3 |
Tool returning binary data with nulls | :203 | absent | 3 |
Dispatch with extremely long tool name | :221 | absent | 3 |
Dispatch with extremely large args | :236 | absent | 3 |
tests/integration/test_external_mcp.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
Stdio transport connect and execute | :39 | absent | 4 |
ServerManager routes to external server | :66 | absent | 6 |
Disconnected server returns structured error | :85 | absent | 4 |
Tool refresh after reconnect detects new tools | :104 | absent | 3 |
Permission denied blocks external tools | :119 | absent | 6 |
list_server_info includes external servers | :135 | absent | 1 |
Clean shutdown terminates child processes | :150 | absent | 3 |
connect_external_server(spec) forwards env to child process | :164 | absent | 6 |
Legacy 4-arg connect_external_server still works | :191 | absent | — |
tests/integration/test_storage_integration.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
test_save_snapshot | :55 | absent | 2 |
test_create_delegation | :67 | absent | 3 |
test_complete_delegation | :87 | absent | 3 |
CompactionManager saves snapshot via StorageInterface | :99 | absent | 4 |
StorageInterface delegation callbacks are invoked | :142 | absent | 5 |
gh#48: a manager-driven delegation persists a row the FK accepts | :242 | absent | 10 |
Null StorageInterface is safe | :300 | absent | 2 |
tests/model/model_test_context.h 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
test_gen_params | :578 | absent | — |
test_log_contains | :796 | absent | — |
test_log_int_after | :845 | absent | — |
testRunStarting | :889 | absent | 20 |
testCaseStarting | :899 | absent | 1 |
testCaseEnded | :909 | absent | — |
testRunEnded | :931 | absent | 2 |
testRunStarting | :957 | absent | 20 |
testRunEnded | :980 | absent | 2 |
tests/model/test_adapter_lifecycle.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
LoRA adapter load failure is handled gracefully | :23 | absent | 55 |
tests/model/test_audit_log.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Audit entry is recorded when a tool call executes | :25 | absent | 2 |
tests/model/test_auto_placement_offload_real.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#148 auto: a VRAM reserve forces a real partial offload that | :152 | absent | 55 |
gh#148 auto: a reserve no placement can fit is refused with a | :227 | absent | 6 |
tests/model/test_auto_placement_real.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
the GGUF shape read matches what the model really is | :58 | absent | 2 |
auto derives full residency for a model measured to fit | :112 | absent | 2 |
tests/model/test_backend_capabilities.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
BackendInfo is correctly populated for the loaded model | :24 | absent | 1 |
tests/model/test_basic_generation.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Engine produces coherent text from a simple prompt | :21 | absent | 55 |
tests/model/test_constitutional_validation.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Constitutional validator detects violations and revises | :21 | absent | 59 |
tests/model/test_context_retention.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Multi-turn context is retained across generations | :19 | absent | 55 |
tests/model/test_delegation.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Lead delegates to child and receives result | :21 | absent | 55 |
tests/model/test_delegation_context_bleed.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
Consecutive same-tier generations do not leak content across | :64 | absent | 55 |
Recall-style prompts do not surface prior-generation content | :134 | absent | 55 |
gh#162: a delegate seeded with context answers from the named | :270 | absent | 70 |
tests/model/test_dynamic_identity.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Runtime-created identity lifecycle (create, router-dirty, destroy) | :22 | absent | 1 |
tests/model/test_e0_true_e2e.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
True end-to-end: real prompts, real engine, real model | :20 | absent | 70 |
tests/model/test_e10_custom_compactor.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Custom compactor is invoked instead of default when registered | :64 | absent | 2 |
tests/model/test_e1_single_turn.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Single-turn engine loop produces coherent response | :22 | absent | 70 |
tests/model/test_e2_tool_call.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Tool call cycle: generate, parse, execute, regenerate | :22 | absent | 70 |
tests/model/test_e3_routing.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Routing fires on_tier_selected callback | :22 | absent | 70 |
tests/model/test_e4_multi_turn.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Multi-turn engine calls retain context | :22 | absent | 70 |
tests/model/test_e5_compaction.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Compaction fires when context exceeds threshold | :23 | absent | 70 |
tests/model/test_e6_state_transitions.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Engine state transitions include PLANNING and EXECUTING | :22 | absent | 70 |
tests/model/test_e7_delegation.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
Delegation wiring fires on_delegation_start callback | :22 | absent | 70 |
gh#160: an isolated delegation never writes the project, and | :210 | absent | 70 |
v2.14.6: a lead that answers in prose is nudged, and its forced | :441 | absent | 70 |
tests/model/test_e8_mcp_auth.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
MCP authorization denial propagates through engine | :23 | absent | 70 |
tests/model/test_e9_dynamic_identity.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Dynamic identity creation and generation through engine loop | :23 | absent | 70 |
tests/model/test_external_mcp.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Tool call executes through external MCP stdio transport | :25 | absent | 5 |
tests/model/test_gh100_q8_kv.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#100: q8_0 KV halves per-seq bytes and stays valid on | :91 | absent | 3 |
gh#100 floor: default f16 KV path on E4B QAT Q4 is unchanged | :127 | absent | 3 |
tests/model/test_gh103_gemma_sequential.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#103 gemma severe case: sequential mode stops at <tool_call|> AND | :69 | absent | 55 |
tests/model/test_gh103_sequential_stop.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#103: sequential tool_call_mode hard-stops at the first tool call | :82 | absent | 55 |
gh#103 contrast: batch mode may generate past the tool call | :165 | absent | 55 |
tests/model/test_gh105_validator_clobbers.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#105: constitutional validator's toolless render must NOT clobber | :43 | absent | 71 |
tests/model/test_gh106_mtp.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#106 MTP kernel: engaged + lossless-coherent | :61 | absent | 48 |
tests/model/test_gh106_mtp_qat_mobile.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#106 MTP functions on the E4B QAT trunk | :97 | absent | 48 |
tests/model/test_gh106_mtp_route.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
gh#106 MTP routes through orchestrator->generate() | :84 | absent | 65 |
gh#108 MTP loud error propagates through orchestrator (no fallback) | :110 | absent | 65 |
gh#108 MTP engages with tools staged through orchestrator (agent loop) | :136 | absent | 65 |
gh#108 per-tier speculative_mtp=false overrides the global flag | :184 | absent | 65 |
gh#108 (v2.10.0) a request-level grammar routes to MTP on an | :211 | absent | 65 |
tests/model/test_gh106_qat_thinking.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#106 observe: QAT thinking-model tool-call structure | :20 | absent | 3 |
tests/model/test_gh108_agentic_benchmark.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#108 agentic benchmark: full 24-config permutation matrix | :486 | absent | 63 |
tests/model/test_gh108_config_benchmark.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 E4B | :1700 | absent | 62 |
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B | :1714 | absent | 62 |
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 32768 context | :1779 | absent | 62 |
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 65536 context | :1786 | absent | 62 |
gh#197 auto + MTP head on the 26B-A4B IQ2_M at 131072 context | :1793 | absent | 62 |
gh#153 MTP vs plain decode throughput — four arms, Gemma 4 26B-A4B | :1801 | absent | 62 |
gh#193: what cold prefill costs at each residency level | :1890 | absent | 16 |
tests/model/test_gh108_cpu_feasibility.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#108 CPU-only feasibility: E2B-QAT-Q4 x MTP x flash+q4KV, | :249 | absent | 63 |
tests/model/test_gh108_mtp_guards.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
gh#108 MTP guards: out-of-envelope requests fail loud | :51 | absent | 49 |
gh#108 MTP greedy holds across a multi-turn context | :184 | absent | 48 |
gh#108 MTP + flash attention succeeds (v2.9.3, upstream #25148) | :230 | absent | 48 |
gh#108 MTP + flash + q4 KV succeeds on E4B QAT Q4 | :266 | absent | 48 |
gh#108 MTP is lossless at temperature>0 (empirical distribution check) | :307 | absent | 48 |
tests/model/test_gh108_mtp_stream_grammar.cpp 8 tests · 8 absent
tests/model/test_gh110_mtp_agent_loop.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#110: MTP engages through the real agent loop (entropic_run) | :74 | absent | 79 |
tests/model/test_gh137_thinking_strip.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#137 a toolless enable_thinking:false turn must not deliver | :113 | absent | 65 |
tests/model/test_gh144_bridge_queue.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#144: concurrent bridge clients queue instead of racing | :148 | absent | 79 |
tests/model/test_gh144_mtp_prefix_retention.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#144: MTP prefill must not re-decode an unchanged prefix | :81 | absent | 48 |
tests/model/test_gh144_no_regression_single_session.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
test_gguf | :70 | absent | — |
gh#144: max_sessions == 1 preserves the warm-keep prefill shape | :79 | absent | 2 |
tests/model/test_gh144_session_isolation.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
test_gguf | :52 | absent | — |
gh#144: interleaved sessions do not leak context to each other | :83 | absent | 2 |
tests/model/test_gh144_session_switch_cost.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
test_gguf | :66 | absent | — |
gh#144: a session switch must not force a full re-prefill | :83 | absent | 2 |
tests/model/test_gh158_concurrent_sessions.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
gh#158: two concurrent sessions do not bleed into each other | :151 | absent | 79 |
gh#158: interrupting one session leaves the other running | :229 | absent | 79 |
gh#158: metrics and context reads are safe during live runs | :301 | absent | 80 |
gh#158: a batch does not wipe another session's resident KV | :394 | absent | 3 |
gh#158: concurrent sessions on a HYBRID arch keep KV in sync | :463 | absent | 3 |
tests/model/test_gh164_release_reload.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#164: release then reload decodes correctly on gemma4 (plain KV) | :169 | absent | 55 |
gh#164: release then reload decodes correctly on a hybrid arch | :178 | absent | 55 |
gh#164: entropic_release_model frees VRAM through the C ABI | :190 | absent | 79 |
tests/model/test_gh165_session_restore.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#165: a dropped session restored from JSON keeps answering | :187 | absent | 80 |
gh#165 + gh#164: release the weights, keep the conversation | :304 | absent | 80 |
tests/model/test_gh166_workspaces.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#166: two workspaces on one handle do not read each other's | :144 | absent | 79 |
tests/model/test_gh169_gh181_budget_carry.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#169: an iteration-capped delegate hands its parent the audit it | :290 | absent | 79 |
gh#181: a delegate hard-cut by the thinking budget hands its | :424 | absent | 79 |
tests/model/test_gh179_workspace_context.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#179: each workspace's sessions answer from its own app_context, | :92 | absent | 79 |
tests/model/test_gh194_prefill_published.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#194: a plain generation publishes the prefill it performed | :60 | absent | 79 |
tests/model/test_gh198_idle_device.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#198: a deferred handle holds no GPU memory until it runs | :62 | absent | 79 |
tests/model/test_gh204_http_multiclient.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#204/gh#205: two HTTP clients, different session, workspace and | :150 | absent | 79 |
tests/model/test_gh87_backend_common_chat.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#87 Increment-2: backend render_with_tools → parse_response | :131 | absent | 43 |
tests/model/test_gh87_backend_generate_tools.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#87 Increment-3a: generate() routes through common_chat when | :75 | absent | 3 |
tests/model/test_gh87_common_chat_e2e.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#87 gate: common_chat render→generate→parse extracts a gemma4 tool call | :116 | absent | — |
tests/model/test_gh87_multiparam_diag.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#87 diag: multi-parameter tool call — gemma4 (dedicated PEG) | :22 | absent | 43 |
tests/model/test_gh87_orchestrator_cutover.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#87 cutover: params.tools drives common_chat through the orchestrator | :25 | absent | 55 |
tests/model/test_gh87_verify_nemotron3.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#87 Phase A: nemotron3 tool call round-trips through common_chat | :10 | absent | 4 |
tests/model/test_gh87_verify_qwen35.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#87 Phase A: qwen35 tool call round-trips through common_chat | :10 | absent | 4 |
tests/model/test_gh88_envelope_priming.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#88: a gemma multi-turn session never accumulates a parrotable | :110 | absent | 70 |
gh#88: a parroted {action:...} emission dispatches via the gemma | :187 | absent | 55 |
tests/model/test_gh90_string_typing.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#90: gemma <|\"|> escape on a numeric value keeps string typing | :30 | absent | 55 |
tests/model/test_gh93_behavioral.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#94: enable_thinking:false suppresses think blocks (facade) | :52 | absent | 79 |
gh#93: autoparser family parses a multi-parameter tool call | :84 | absent | 79 |
gh#93: entropic_interrupt stops a long run early (cancel-bridge) | :117 | absent | 79 |
tests/model/test_gh95_identity_grammar.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#95: identity grammar: field constrains that tier's output | :49 | absent | 79 |
gh#95 isolation: GBNF grammar constrains backend output with NO tools | :129 | absent | 2 |
tests/model/test_gh96_warmkeep.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#96: agent-loop prefill must not grow with history (warm-keep) | :51 | absent | 2 |
tests/model/test_gh96_warmkeep_oracle.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
gh#96 probe: is greedy decode deterministic run-to-run? | :153 | absent | 1 |
gh#96 oracle: append-growth — warm output == cold + reuse + faster | :188 | absent | 1 |
gh#96 oracle: mid-history mutation (prune/compaction) stays correct | :210 | absent | 1 |
gh#96 oracle: system-prompt swap (tier change) stays correct | :234 | absent | 1 |
gh#96 oracle: two conversations interleaved on one backend | :257 | absent | 1 |
gh#96 oracle: cancellation mid-generation leaves clean KV | :310 | absent | 1 |
tests/model/test_gh97_hybrid_cache.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#97: prompt-cache/warm-keep must not corrupt KV on a hybrid model | :51 | absent | 2 |
tests/model/test_gh98_batch.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#98: multi-seq batch decodes N sequences together | :81 | absent | 3 |
gh#98: hybrid arch falls back to serial (no seq-op corruption) | :143 | absent | 3 |
tests/model/test_gh99_run_as.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#99: run_as emits each tier's grammar on a shared model | :74 | absent | 79 |
tests/model/test_gpu_profile.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Generation succeeds with non-default GPU profile | :21 | absent | 55 |
tests/model/test_grammar_constraint.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
GBNF grammar constrains output to valid JSON | :21 | absent | 55 |
tests/model/test_hook_lifecycle.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Hooks fire in correct order during a generation cycle | :90 | absent | 70 |
tests/model/test_logprob_evaluation.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Evaluation produces valid log-probabilities | :21 | absent | 1 |
tests/model/test_mcp_auth_denial.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Identity with READ-only keys is denied WRITE access | :21 | absent | 3 |
tests/model/test_multimodal_fallback.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Text-only model handles multimodal input gracefully | :59 | absent | 55 |
tests/model/test_outside_root_approval.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
outside-root optional: a real model's reads outside its root | :112 | absent | 79 |
tests/model/test_session_persistence.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Conversation with model output survives save and load | :24 | absent | 55 |
tests/model/test_tier_routing.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
Classification runs the router and yields a configured tier | :31 | absent | 19 |
Cleared classification_prompt makes routing a no-op (RED control) | :85 | absent | 19 |
tests/model/test_tool_call_parsing.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Model output is correctly parsed into tool calls | :21 | absent | 55 |
tests/model/test_v2141_workspace_declared_servers.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.1: a declared server serves each workspace from its own repository | :103 | absent | 79 |
tests/model/test_v2143_bridge_release.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.3: release frees the model over MCP and the conversation survives | :71 | absent | 79 |
tests/model/test_v2144_git_no_shell.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.4: a model's commit message with shell syntax is text, not a command | :31 | absent | 79 |
tests/model/test_v2145_failed_turn.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.5: a failed turn is an error carrying only its own text | :76 | absent | 79 |
tests/model/test_v2146_e4b_vision.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.6: a real image runs through E4B QAT and its projector | :141 | absent | 55 |
tests/model/test_v2146_gemma4_required_grammar.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.6: the Gemma 4 REQUIRED grammar forces one call, then EOG | :203 | absent | 2 |
v2.14.6: upstream parse of a plain-quote native Gemma 4 call | :298 | absent | — |
tests/model/test_v2146_host_robustness.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#214: a prompt that does not fit fails the turn, typed | :60 | absent | 79 |
gh#216: multi-byte text at the history cut does not poison later turns | :80 | absent | 79 |
gh#217: release is refused while another session is decoding | :112 | absent | 79 |
tests/model/test_v2146_thinking_tool_call.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.6: with thinking on, each loop turn ends in a real tool call | :58 | absent | 70 |
tests/model/test_v219_gemma4_a4b_family.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Gemma 4 A4B GGUF loads and generates first token | :34 | absent | 55 |
tests/model/test_v219_gemma4_e4b_family.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Gemma 4 E4B GGUF loads and generates first token | :35 | absent | 55 |
tests/model/test_v219_nemotron3_family.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Nemotron 3 family GGUF loads and generates first token | :33 | absent | 55 |
tests/model/test_v219_qwen35_family.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
Qwen 3.5 family GGUF loads and generates first token | :29 | absent | 55 |
tests/model/test_v2310_backend_coverage_smoke.cpp 30 tests · 30 absent
| test | line | result | requirements |
|---|---|---|---|
LlamaCppBackend exposes backend info | :31 | absent | — |
LlamaCppBackend reports supported capabilities | :42 | absent | — |
LlamaCppBackend.state() reports ACTIVE when loaded | :59 | absent | — |
LlamaCppBackend.count_tokens covers the loaded path | :68 | absent | — |
LlamaCppBackend.tokenize_text round-trips with detokenize | :85 | absent | — |
LlamaCppBackend.complete runs against a raw prompt | :99 | absent | — |
LlamaCppBackend.generate_streaming fires per-token callback | :117 | absent | — |
LlamaCppBackend.evaluate_logprobs returns a populated result | :151 | absent | — |
LlamaCppBackend prompt cache state-clear is safe | :169 | absent | — |
LlamaCppBackend.context_length matches the configured value | :179 | absent | — |
LlamaCppBackend.capabilities returns a non-empty list | :187 | absent | — |
LlamaCppBackend.is_active / is_loaded match ACTIVE state | :196 | absent | — |
LlamaCppBackend.clear_state on the default seq is safe | :205 | absent | — |
Orchestrator route returns the default tier when routing disabled | :216 | absent | 2 |
Orchestrator loaded_models returns the active tier | :228 | absent | 1 |
Orchestrator clear_all_prompt_caches is safe on loaded state | :235 | absent | 1 |
LlamaCppBackend.save_state / restore_state round-trips a sequence | :244 | absent | — |
LlamaCppBackend.compute_perplexity returns a non-negative value | :269 | absent | — |
LlamaCppBackend generate with min_p>0 exercises the gh#23 sampler | :281 | absent | — |
LlamaCppBackend complete with empty prompt is graceful | :304 | absent | — |
Orchestrator route returns the default tier with empty messages | :320 | absent | 2 |
Orchestrator available_models reflects loaded tier paths | :328 | absent | — |
Orchestrator get_adapter returns a valid pointer for the default tier | :337 | absent | — |
Orchestrator last_used_tier reflects the most recent generate | :344 | absent | — |
Orchestrator last_routing_result is populated after a route call | :354 | absent | 2 |
Orchestrator throughput_tracker accessor returns a usable ref | :369 | absent | — |
Orchestrator profile_registry accessor returns a usable ref | :377 | absent | — |
Orchestrator grammar_registry accessor returns a usable ref | :385 | absent | — |
Orchestrator adapter_manager accessor returns a usable ref | :393 | absent | — |
Orchestrator has_vision_capable_tier reflects loaded state | :401 | absent | 1 |
tests/model/test_v240_minor_ceremony.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
presence_penalty drives the penalties sampler stage (v2.3.14) | :73 | absent | — |
frequency_penalty drives the penalties sampler stage (v2.3.15) | :92 | absent | — |
presence + frequency penalties coexist at the runtime layer (v2.3.14/15) | :111 | absent | — |
logit_bias drives the new sampler stage (v2.3.16) | :131 | absent | — |
n_ubatch override reaches cparams (v2.3.17) | :157 | absent | — |
State after save_state / restore_state survives a clear (v2.3.25) | :175 | absent | — |
State save/load via the v2.3.25 C API file round-trip | :219 | absent | — |
v2.3.10 min_p (anchor — must still pass at v2.4.0) | :278 | absent | — |
gh#86: enable_thinking=false suppresses <think> via jinja render | :297 | absent | — |
tests/model/v219_family_test_helpers.h 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
testRunStarting | :289 | absent | 20 |
testCaseStarting | :316 | absent | 1 |
testRunEnded | :327 | absent | 2 |
tests/regression/test_basic_response.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
Basic response contains no special tokens | :65 | absent | 21 |
Empty response handled gracefully | :94 | absent | 21 |
Generate is called exactly once per iteration | :118 | absent | 21 |
tests/regression/test_delegation_pipeline.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
Delegation directive triggers child loop | :76 | absent | 21 |
Max delegation depth is enforced | :118 | absent | 1 |
tests/regression/test_identity_behavior.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
Lead identity has exactly 3 tools | :38 | absent | 1 |
Constitutional validation catches violations | :59 | absent | 6 |
Constitutional validation passes clean content | :92 | absent | 6 |
tests/regression/test_multi_turn_context.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
Context accumulates across turns | :77 | absent | 21 |
Compaction triggers at threshold | :116 | absent | 21 |
tests/regression/test_router_classification.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
Route callback is invoked for tier selection | :47 | absent | 21 |
Complete callback is separate from generate | :79 | absent | 1 |
Router consistency across repeated calls | :114 | absent | 1 |
tests/regression/test_tool_calling_loop.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
Tool call cycle: generate, parse, execute, generate | :74 | absent | 21 |
Circuit breaker limits tool calls per turn | :121 | absent | 21 |
tests/unit/api/api_version_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
API version is queryable at runtime | :49 | absent | 3 |
Library version matches the canonical VERSION file | :61 | absent | 3 |
Compile-time API version matches runtime | :82 | absent | 3 |
tests/unit/api/app_context_roundtrip_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#163 entropic_configure carries app_context into ParsedConfig | :93 | absent | 78 |
gh#163 entropic_configure_from_file carries app_context | :110 | absent | 78 |
gh#163 entropic_configure_dir carries app_context | :126 | absent | 78 |
gh#163 the object and false spellings survive configure_dir too | :145 | absent | 78 |
tests/unit/api/bash_timeout_config_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
mcp.bash.timeout_seconds reaches the dispatched bash server | :89 | absent | 53 |
tests/unit/api/bridge_release_tool_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.3: the bridge offers a release tool that frees the models | :74 | absent | 2 |
gh#217: release is refused while ANY session is decoding | :111 | absent | 10 |
v2.14.6: shutdown stops the host over MCP, only where the host allows it | :145 | absent | 1 |
tests/unit/api/builtin_server_sharing_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
gh#158: two sessions reading and writing through ONE filesystem | :283 | absent | 53 |
gh#158: a session's tool call never resolves inside another | :352 | absent | 54 |
gh#158: repeated sandbox swaps race nothing a concurrent | :420 | absent | 54 |
gh#158: two sessions writing todos through ONE entropic server | :482 | absent | 53 |
gh#158: read-before-write is judged per session — another | :538 | absent | 53 |
gh#158: a delegated child's read satisfies its parent's write — | :645 | absent | 57 |
gh#158: each session's todo list is its own | :685 | absent | 53 |
gh#158: ending a session's conversation releases its read | :758 | absent | 54 |
gh#158: clearing the default conversation releases the default | :810 | absent | 53 |
tests/unit/api/entropic_capi_test.cpp 355 tests · 355 absent
tests/unit/api/entropic_mcp_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
entropic_register_mcp_server on a NULL handle is rejected | :49 | absent | 5 |
entropic_register_mcp_server on an unconfigured handle | :61 | absent | 5 |
entropic_deregister_mcp_server on a NULL handle is rejected | :92 | absent | 4 |
entropic_deregister_mcp_server on an unconfigured handle | :104 | absent | 4 |
entropic_list_mcp_servers on a NULL handle returns NULL | :127 | absent | 6 |
entropic_list_mcp_servers on an unconfigured handle returns NULL | :139 | absent | 6 |
entropic_register_mcp_server on a configured handle | :155 | absent | 79 |
tests/unit/api/error_enum_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
ENTROPIC_OK is zero | :14 | absent | 1 |
All error codes have distinct values | :24 | absent | 1 |
Error names are non-null for all codes | :69 | absent | 2 |
Unknown error code returns UNKNOWN | :84 | absent | 2 |
gh#148: the mlock refusal has a stable name and a fresh slot | :98 | absent | 1 |
gh#209/#212: a failed turn has its own code, appended | :121 | absent | 1 |
tests/unit/api/facade_integration_test.cpp 55 tests · 55 absent
tests/unit/api/final_text_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
gh#130 a trailing empty assistant turn does not hide the answer | :31 | absent | 1 |
gh#130 a user message is never mistaken for the answer | :111 | absent | 1 |
gh#130 the empty-answer case explains itself | :135 | absent | 1 |
gh#165 a recall assertion must read the answer, not the transcript | :185 | absent | 1 |
gh#209: the answer is read from THIS turn, never an earlier one | :300 | absent | 1 |
gh#212: a completion call written as text is never the answer | :330 | absent | 1 |
tests/unit/api/followup_provider_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#203: followup returns delegation_id and summary from real storage | :31 | absent | 81 |
tests/unit/api/hook_stub_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
Hook registration with null handle | :54 | absent | 3 |
Hook registration with null callback | :68 | absent | 3 |
Hook registration succeeds via C API | :83 | absent | 3 |
Hook deregistration via C API | :99 | absent | 3 |
Hook deregistration with null handle | :116 | absent | 3 |
Invalid hook point rejected via C API | :130 | absent | 3 |
Hook count sentinel value | :146 | absent | — |
tests/unit/api/http_listener_test.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
gh#204: the bearer token is 256 random bits, compared in constant time | :89 | absent | — |
gh#204: only this loopback endpoint is an acceptable Host | :111 | absent | — |
gh#204: repeated authentication failures block for a while | :120 | absent | 1 |
gh#204: the token lives in a private, owned directory | :133 | absent | — |
gh#204: the HTTP listener serves the bridge to authenticated clients only | :170 | absent | 41 |
gh#204: a listener stopped the instant it started still stops | :285 | absent | 41 |
gh#204: an unservable http_port fails configure loudly | :307 | absent | 79 |
gh#220: a port another listener holds is refused, not shared | :323 | absent | 41 |
tests/unit/api/identity_api_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
Load identity with null handle | :25 | absent | 3 |
Load identity with null name on unconfigured handle | :37 | absent | 3 |
Load identity on unconfigured handle | :51 | absent | 3 |
Get identity with null handle | :65 | absent | 4 |
Get identity with null output on unconfigured handle | :78 | absent | 4 |
Get identity on unconfigured handle | :92 | absent | 4 |
tests/unit/api/json_serializers_test.cpp 17 tests · 17 absent
tests/unit/api/mcp_discovery_gate_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
gh#199: a workspace does not spawn what its root's .mcp.json declares | :95 | absent | 23 |
v2.14.0: the main handle discovers too, and the same gate applies | :138 | absent | 1 |
v2.14.0: a server declared in the handle's own config connects | :173 | absent | — |
v2.14.1: each workspace launches the declared servers, rooted at | :191 | absent | 23 |
v2.14.0: the pre-connect hook decides what config left open | :249 | absent | 23 |
gh#175: a non-positive mcp.server_timeout_seconds is refused at configure | :315 | absent | 79 |
tests/unit/api/message_queue_abi_test.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
queue: NULL handle is rejected on every entry point | :26 | absent | 3 |
queue: NULL message argument is rejected | :39 | absent | 9 |
queue: NULL out-pointer on depth is rejected | :49 | absent | 9 |
queue: enqueue on idle handle returns INVALID_STATE | :61 | absent | 9 |
queue: depth on unconfigured handle reads zero | :74 | absent | 9 |
queue: clear on unconfigured handle is OK no-op | :88 | absent | 9 |
queue: observer registration is allowed pre-configure | :99 | absent | 10 |
queue: QUEUE_FULL error code has a stable name | :115 | absent | 1 |
tests/unit/api/multi_handle_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
Two handles configure independently | :51 | absent | 79 |
Double-configure on one handle is refused | :76 | absent | 79 |
entropic_last_error returns per-handle state (v2.2.6) | :95 | absent | 79 |
h1.run() after h2.configure() does not segfault (v2.2.6) | :129 | absent | 79 |
Two GPU-resident handles can coexist (v2.2.8 target) | :172 | absent | 79 |
entropic_seconds_since_last_activity returns 0 before any run | :240 | absent | 79 |
Nemotron3-Nano-4B Q8 first inference does not crash (gh#66) | :271 | absent | 79 |
Three handles can coexist | :341 | absent | 79 |
entropic_last_error returns empty string for NULL handle | :370 | absent | 4 |
tests/unit/api/path_approval_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
outside-root: the SHIPPED default config no longer hands the model | :175 | absent | 14 |
outside-root: an OMITTED allow_outside_root is `optional` and | :206 | absent | 6 |
outside-root: an explicit `optional` behaves as the default | :233 | absent | 6 |
outside-root: outside_root_deny beats allow_outside_root: true and | :247 | absent | 6 |
tests/unit/api/run_session_streaming_as_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#205: streaming under a tier refuses what it cannot run | :35 | absent | 13 |
tests/unit/api/serialize_messages_utf8_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
serialize_messages does not throw type_error 316 on malformed UTF-8 | :59 | absent | 3 |
serialize_messages preserves valid UTF-8 verbatim | :102 | absent | 3 |
serialize_messages handles a mix of valid and malformed messages | :123 | absent | 3 |
tests/unit/api/serve_cli_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#204: entropic serve hosts the engine for a client holding the token | :131 | absent | — |
v2.14.1: SIGUSR1 releases models and keeps serving | :178 | absent | — |
gh#204: entropic serve refuses to look up when it is not | :224 | absent | 1 |
tests/unit/api/tool_namespace_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#145: the default namespace is byte-identical to 2.11.1 | :41 | absent | 1 |
gh#145: qualify and strip are inverses for every suffix | :59 | absent | 1 |
gh#145: a foreign namespace does not resolve | :77 | absent | 2 |
gh#145: an empty prefix means unqualified names | :105 | absent | 1 |
tests/unit/api/utf8_safe_substr_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
utf8_safe_substr returns input when shorter than cap | :31 | absent | 1 |
utf8_safe_substr cuts cleanly on ASCII boundary | :39 | absent | 1 |
utf8_safe_substr never slices a multi-byte codepoint | :47 | absent | 1 |
utf8_safe_substr keeps a fully-contained codepoint | :71 | absent | 1 |
utf8_safe_substr handles 3-byte and 4-byte UTF-8 sequences | :84 | absent | 1 |
tests/unit/api/workspace_app_context_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#179: a workspace's app_context replaces the handle's for its sessions only | :67 | absent | 23 |
gh#179: workspace_app_context loads a repository's own file, opt-in | :106 | absent | 25 |
gh#179: a workspace_app_context that could leave the root fails configure | :146 | absent | 3 |
tests/unit/api/workspace_roots_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#211: workspace_roots admits only directories inside it | :55 | absent | 25 |
gh#211: unset workspace_roots keeps today's behaviour; a relative | :83 | absent | 25 |
tests/unit/api/workspace_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#166: two workspaces resolve one relative path to two roots | :104 | absent | 22 |
tests/unit/config/app_context_content_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#141 app_context carries inline content | :72 | absent | 9 |
gh#141 every existing app_context spelling keeps its meaning | :133 | absent | 9 |
tests/unit/config/app_context_layering_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#163 a top-level app_context path survives the config layers | :145 | absent | 11 |
gh#163 the three app_context no-body states are distinguishable | :257 | absent | 2 |
gh#163 classify_app_context names the state the config is in | :311 | absent | 1 |
tests/unit/config/bundled_models_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
test_data | :19 | absent | — |
BundledModels loads registry from YAML | :24 | absent | 2 |
BundledModels find_by (family, size, quant) (gh#62) | :52 | absent | 2 |
BundledModels resolves keys to paths | :89 | absent | 2 |
tests/unit/config/env_overrides_test.cpp 10 tests · 10 absent
| test | line | result | requirements |
|---|---|---|---|
ENTROPIC_LOG_LEVEL overrides config | :48 | absent | 2 |
ENTROPIC_ROUTING__ENABLED overrides routing flag | :64 | absent | 2 |
ENTROPIC_COMPACTION__THRESHOLD_PERCENT overrides threshold | :80 | absent | 2 |
Unset env vars leave config unchanged | :97 | absent | 2 |
ENTROPIC_MODELS__DEFAULT overrides default tier | :118 | absent | 2 |
ENTROPIC_ROUTING__FALLBACK_TIER overrides fallback | :135 | absent | 2 |
ENTROPIC_COMPACTION__ENABLED toggles compaction | :152 | absent | 2 |
ENTROPIC_VRAM_RESERVE_MB overrides VRAM reserve | :183 | absent | 2 |
ENTROPIC_CONFIG_DIR overrides config_dir path | :199 | absent | 2 |
parse_bool accepts every truth alias | :215 | absent | 1 |
tests/unit/config/loader_test.cpp 25 tests · 25 absent
tests/unit/config/validate_test.cpp 11 tests · 11 absent
| test | line | result | requirements |
|---|---|---|---|
ModelConfig validation | :20 | absent | 4 |
Allowed tools validation | :79 | absent | 2 |
ModelsConfig validation | :105 | absent | 4 |
RoutingConfig validation | :139 | absent | 2 |
CompactionConfig validation | :246 | absent | 4 |
ModelConfig validation — failure modes | :322 | absent | 4 |
ModelsConfig validation — default tier must exist | :376 | absent | 4 |
gh#154 an unresolved tier grammar stem is warned about, not | :461 | absent | 2 |
gh#154 grammar search paths mirror the runtime lookup | :558 | absent | 1 |
gh#154 every bundled identity grammar stem resolves | :613 | absent | 1 |
gh#153 #42(iii): cpu_moe_layers is refused at configure time when | :652 | absent | 4 |
tests/unit/config/yaml_util_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
extract string from YAML node | :41 | absent | 1 |
extract int from YAML node | :82 | absent | 1 |
extract bool from YAML node | :100 | absent | 1 |
extract_path expands home directory | :137 | absent | 1 |
extract_string_list from YAML sequence | :170 | absent | 1 |
extract_string_map from YAML mapping | :206 | absent | 1 |
expand_home handles edge cases | :226 | absent | — |
tests/unit/core/auto_chain_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
should_auto_chain false when no locked tier | :75 | absent | 20 |
auto_chain child sets COMPLETE at depth > 0 | :92 | absent | 20 |
auto_chain root fires tier change at depth 0 | :123 | absent | 20 |
auto_chain does not fire without config | :160 | absent | 20 |
delegation rejected at MAX_DELEGATION_DEPTH | :194 | absent | — |
tests/unit/core/compaction_test.cpp 11 tests · 11 absent
| test | line | result | requirements |
|---|---|---|---|
TokenCounter heuristic ~4 chars/token | :33 | absent | 1 |
TokenCounter cache returns same value | :42 | absent | 1 |
TokenCounter count_messages sums correctly | :51 | absent | 1 |
TokenCounter usage_percent | :64 | absent | 1 |
TokenCounter clear_cache resets | :73 | absent | 1 |
Compaction below threshold returns unchanged | :85 | absent | — |
Compaction above threshold compacts | :99 | absent | — |
Force compaction bypasses threshold | :123 | absent | — |
System message preserved in compaction | :137 | absent | — |
User messages preserved in compaction | :154 | absent | — |
Compaction disabled warns | :182 | absent | — |
tests/unit/core/compactor_registry_test.cpp 16 tests · 16 absent
| test | line | result | requirements |
|---|---|---|---|
Default compactor runs when no custom registered | :109 | absent | — |
Per-identity compactor overrides default | :125 | absent | — |
Global custom compactor applies to unregistered identities | :144 | absent | — |
Per-identity takes precedence over global | :162 | absent | — |
Deregistration falls back to global | :179 | absent | — |
Deregistration falls back to default | :196 | absent | — |
Re-registration replaces previous | :213 | absent | — |
Custom compactor failure falls back to default | :233 | absent | — |
Custom compactor receives identity in config JSON | :250 | absent | — |
has_custom_compactor returns correct state | :267 | absent | — |
has_custom_compactor sees global | :283 | absent | — |
NULL compactor rejected | :294 | absent | — |
Concurrent registration and dispatch | :305 | absent | 2 |
compact_messages returns populated result | :338 | absent | — |
wrap_c_compactor JSON serialization handles inputs | :383 | absent | — |
wrap_c_compactor parses returned messages JSON | :417 | absent | — |
tests/unit/core/constitutional_validator_test.cpp 38 tests · 38 absent
tests/unit/core/context_manager_test.cpp 10 tests · 10 absent
| test | line | result | requirements |
|---|---|---|---|
prune_tool_results stubs old results | :53 | absent | — |
prune_tool_results keeps recent count | :76 | absent | — |
prune_old_tool_results TTL-based at high context fill | :96 | absent | — |
prune_old_tool_results is a no-op below warning threshold | :121 | absent | — |
prune_old_tool_results engages once fill crosses threshold | :148 | absent | — |
prune_old_tool_results preserves original_content in metadata | :172 | absent | — |
prune_old_tool_results respects warning_threshold_percent=0 | :207 | absent | — |
Context warning injected at threshold | :230 | absent | — |
Context warning not repeated same iteration | :249 | absent | — |
refresh_context_limit updates counter | :268 | absent | — |
tests/unit/core/delegation_manager_test.cpp 33 tests · 33 absent
tests/unit/core/directives_test.cpp 12 tests · 12 absent
| test | line | result | requirements |
|---|---|---|---|
StopProcessing sets flag | :30 | absent | — |
TierChange updates locked_tier | :46 | absent | — |
Delegate stores pending | :62 | absent | — |
Pipeline stores pending | :77 | absent | — |
Complete sets COMPLETE state | :92 | absent | — |
InjectContext adds to injected_messages | :109 | absent | — |
PhaseChange updates active_phase | :128 | absent | — |
NotifyPresenter fires callback | :143 | absent | — |
Unknown directive type logs warning | :158 | absent | — |
StopProcessing halts further processing | :170 | absent | — |
All 11 directive types construct correctly | :190 | absent | — |
DirectiveProcessor hook-dispatch paths | :234 | absent | — |
tests/unit/core/engine_test.cpp 88 tests · 88 absent
tests/unit/core/hook_registry_test.cpp 15 tests · 15 absent
| test | line | result | requirements |
|---|---|---|---|
Register a single hook | :157 | absent | 2 |
Multiple hooks execute in priority order | :175 | absent | 2 |
Pre-hook cancellation stops chain | :235 | absent | 2 |
Pre-hook modification chains through | :263 | absent | 2 |
Post-hook transforms result | :290 | absent | 2 |
Post-hook cannot cancel | :310 | absent | 2 |
Failing hook is logged and skipped | :332 | absent | 2 |
Deregister removes hook | :358 | absent | 2 |
Deregister non-existent hook is idempotent | :382 | absent | 2 |
Invalid hook point rejected | :397 | absent | 2 |
fire_info ignores return values and modified_json | :412 | absent | 2 |
Concurrent registration and dispatch | :441 | absent | 2 |
Empty registry fire_pre returns 0 | :472 | absent | 2 |
Hook count for all 22 hook points | :489 | absent | 1 |
HookRegistry exception-handling paths | :512 | absent | 1 |
tests/unit/core/identity_manager_test.cpp 26 tests · 26 absent
| test | line | result | requirements |
|---|---|---|---|
load_static loads identities | :124 | absent | — |
create minimal dynamic identity | :144 | absent | — |
create duplicate rejected | :162 | absent | — |
create exceeds max rejected | :173 | absent | — |
create registers MCP keys | :186 | absent | 2 |
create with allow_dynamic=false rejected | :205 | absent | — |
update dynamic succeeds | :219 | absent | — |
update static rejected | :237 | absent | — |
update nonexistent rejected | :248 | absent | — |
update refreshes MCP keys | :258 | absent | 2 |
destroy dynamic succeeds | :280 | absent | — |
destroy static rejected | :292 | absent | — |
destroy nonexistent rejected | :302 | absent | — |
destroy in-use rejected | :312 | absent | — |
destroy unregisters MCP keys | :329 | absent | 1 |
get returns config | :346 | absent | — |
get nonexistent returns null | :358 | absent | — |
list includes all identities | :367 | absent | — |
list_routable excludes non-routable | :380 | absent | — |
count total and dynamic | :406 | absent | — |
router dirty on create | :426 | absent | — |
router dirty cleared | :437 | absent | — |
router dirty on destroy | :448 | absent | — |
router dirty on update | :460 | absent | — |
cache invalidator fires on create/update/destroy | :477 | absent | — |
cache invalidator unset is safe | :500 | absent | — |
tests/unit/core/identity_validation_test.cpp 14 tests · 14 absent
| test | line | result | requirements |
|---|---|---|---|
valid names accepted | :83 | absent | — |
uppercase name rejected | :93 | absent | — |
name with spaces rejected | :101 | absent | — |
leading digit rejected | :109 | absent | — |
empty name rejected | :117 | absent | — |
name too long rejected | :125 | absent | — |
reserved names rejected | :134 | absent | — |
special chars rejected | :144 | absent | — |
empty focus rejected | :156 | absent | — |
nonexistent grammar_id rejected | :169 | absent | — |
empty grammar_id accepted | :179 | absent | — |
valid grammar_id accepted | :188 | absent | 1 |
phase empty name rejected | :200 | absent | — |
phase negative tokens rejected | :210 | absent | — |
tests/unit/core/message_queue_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
queue starts empty and accepts enqueues up to cap | :48 | absent | 1 |
queue rejects enqueue past capacity | :58 | absent | 1 |
clear empties the queue without affecting capacity | :69 | absent | 1 |
set_message_queue_capacity clamps negative to zero | :87 | absent | 1 |
is_running false outside a turn, true inside run_turn | :97 | absent | 1 |
queued message is consumed exactly at top-level COMPLETE | :106 | absent | 1 |
multiple queued messages drain in FIFO order | :146 | absent | 1 |
set_state_observer fires after set_callbacks shuffle | :170 | absent | 2 |
concurrent enqueue + depth queries do not race | :207 | absent | 1 |
tests/unit/core/prompt_log_util_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
v2.12.2: a growing conversation logs each body exactly once | :26 | absent | — |
v2.12.2: the reference line can still place the message | :49 | absent | — |
v2.12.2: an operator can still demand the unabridged dump | :67 | absent | — |
tests/unit/core/response_generator_test.cpp 19 tests · 19 absent
tests/unit/core/sandbox_test.cpp 15 tests · 15 absent
| test | line | result | requirements |
|---|---|---|---|
SandboxManager creates session dir under $HOME/.entropic/sandbox | :109 | absent | — |
SandboxManager destructor removes the session sandbox tree | :122 | absent | — |
SandboxManager never modifies the user project (git source) | :140 | absent | — |
SandboxManager never modifies the user project (plain source) | :160 | absent | — |
create_sandbox copies project files to sandbox (git source) | :180 | absent | — |
create_sandbox honors .gitignore on git sources | :192 | absent | — |
create_sandbox chains forward-carry from a prior sandbox | :212 | absent | — |
finalize_sandbox returns empty patch when nothing changed | :231 | absent | — |
finalize_sandbox produces a unified diff for edited files | :245 | absent | — |
discard_sandbox refuses paths outside session base | :263 | absent | — |
test_swap | :292 | absent | — |
ScopedSandbox swaps on construct and restores on destruct | :306 | absent | — |
ScopedSandbox no-op when swap_fn is null | :327 | absent | — |
gh#160: next_delegation_id never repeats | :333 | absent | — |
SandboxManager survives discard+create cycle | :364 | absent | — |
tests/unit/core/session_conversation_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
gh#144: interleaved sessions keep disjoint histories | :27 | absent | 2 |
gh#144: the default session behaves exactly as before | :81 | absent | 2 |
gh#144: clearing one session leaves the others intact | :110 | absent | 2 |
gh#144: a tier switch seeds the new session's own system prompt | :163 | absent | 2 |
gh#165: a conversation can be replaced wholesale | :201 | absent | 3 |
gh#165: the RUNNING session refuses replacement, others do not | :242 | absent | 4 |
gh#158: the unkeyed accessors survive a key that is not in the map | :289 | absent | 2 |
tests/unit/core/stream_route_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#208: concurrent streaming turns each receive only their own tokens | :58 | absent | 2 |
tests/unit/core/stream_think_filter_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
StreamThinkFilter: tag-state machine coverage | :28 | absent | 1 |
StreamThinkFilter: raw callback + UTF-8 boundary | :71 | absent | 1 |
tests/unit/core/turn_exclusion_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#144: a second turn cannot start while one is in flight | :48 | absent | 2 |
gh#144: exactly one of many racing claimants wins | :78 | absent | 2 |
gh#144: run_turn nested under an outer claim does not release it | :109 | absent | 2 |
gh#144: an unclaimed run_turn still reports itself running | :138 | absent | 2 |
tests/unit/core/validation_hook_test.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
Hook registered at correct priority | :120 | absent | 4 |
Detach removes hook | :147 | absent | 4 |
Hook passes through when compliant | :171 | absent | 4 |
Hook transforms content when violations found | :200 | absent | 4 |
Identity opt-out skips validation in hook | :241 | absent | 4 |
Last result populated after hook validation | :272 | absent | 5 |
Critique failure in hook returns original | :304 | absent | 4 |
Attach with null hook interface returns error | :339 | absent | 4 |
tests/unit/core/workspace_prompt_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#179: a workspace-bound session is seeded with its workspace's prompts | :38 | absent | 5 |
tests/unit/inference/adapter_base_test.cpp 12 tests · 12 absent
| test | line | result | requirements |
|---|---|---|---|
TestAdapter | :19 | absent | — |
Tagged tool call parsing | :40 | absent | 1 |
Think block handling | :75 | absent | 1 |
Response completeness detection | :109 | absent | 1 |
Malformed JSON recovery | :161 | absent | 1 |
try_recover_json regex fallback + full-miss | :222 | absent | — |
format_tools default formatter shape + malformed catch | :239 | absent | — |
format_tool_result default user-message + content_parts shapes | :260 | absent | — |
parse_tagged_tool_calls warns on markup substring without match | :292 | absent | — |
recover_action_envelope_calls maps {action} envelope + name shape | :309 | absent | 2 |
apply_action_envelope_recovery substitutes only when empty + found | :365 | absent | 2 |
coerce_string_typed_args restores string typing per schema | :392 | absent | 1 |
tests/unit/inference/adapter_manager_test.cpp 20 tests · 20 absent
tests/unit/inference/adapter_orchestrator_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
Config adapter_path stored in TierConfig | :55 | absent | — |
RoutingResult has adapter fields | :66 | absent | — |
RoutingResult adapter fields default empty | :75 | absent | — |
AdapterState enum values are correct | :82 | absent | — |
AdapterInfo default state is COLD | :88 | absent | — |
TierConfig adapter_scale defaults to 1.0 | :97 | absent | — |
tests/unit/inference/auto_placement_test.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
auto keeps a model fully resident when it fits | :76 | absent | 2 |
the v2.13.0 estimator is measurably worse on the same inputs | :112 | absent | 2 |
auto sheds experts before it sheds a layer | :142 | absent | 2 |
auto prices a dense model by its own layer count, not by 30 | :171 | absent | 2 |
auto budgets the KV cache, so context changes the answer | :194 | absent | 2 |
auto holds back room for the compute buffers nobody can price | :227 | absent | 2 |
auto declines rather than guessing when the shape is unreadable | :260 | absent | 2 |
auto gives up ubatch before it gives up a layer | :292 | absent | 2 |
tests/unit/inference/backend_capabilities_test.cpp 14 tests · 14 absent
| test | line | result | requirements |
|---|---|---|---|
Base class defaults to no capabilities | :136 | absent | 1 |
Overridden capabilities are reported correctly | :169 | absent | 1 |
Default backend info has name only | :201 | absent | 1 |
Overridden backend info populates fields | :224 | absent | 1 |
Default state operations return false | :243 | absent | 1 |
State operations require loaded model | :275 | absent | 1 |
Overridden clear_state works when loaded | :298 | absent | 1 |
generate_seq defaults to generate | :323 | absent | 1 |
generate_seq requires ACTIVE state | :343 | absent | 1 |
generate_streaming_seq requires ACTIVE state | :361 | absent | 1 |
GenerationResult has seq_id field defaulting to 0 | :380 | absent | — |
ModelConfig has model_format defaulting to gguf | :393 | absent | — |
_COUNT equals number of real capabilities | :406 | absent | — |
AUDIO capability advertised when projector supports audio | :418 | absent | — |
tests/unit/inference/backend_lifecycle_test.cpp 11 tests · 11 absent
| test | line | result | requirements |
|---|---|---|---|
Backend lifecycle transitions | :127 | absent | 1 |
Idempotent transitions | :180 | absent | 1 |
Generation requires ACTIVE state | :221 | absent | 1 |
load_and_activate from COLD | :262 | absent | 1 |
Load failure keeps COLD state | :280 | absent | 1 |
v2.3.10 backend topup — lifecycle error paths | :408 | absent | — |
v2.3.10 backend topup — generation rejects non-ACTIVE | :440 | absent | — |
v2.3.10 backend topup — generation succeeds when ACTIVE | :460 | absent | — |
v2.3.10 backend topup — evaluate_logprobs validation + success | :498 | absent | — |
v2.3.10 backend topup — state management default + override | :522 | absent | — |
v2.3.10 backend topup — queries, count_tokens, capabilities, info | :552 | absent | — |
tests/unit/inference/backend_real_model_smoke_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
LlamaCppBackend lifecycle on a small real model (one load) | :73 | absent | 46 |
tests/unit/inference/batch_kv_util_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#158: a batch never writes a sequence a session owns | :29 | absent | 4 |
gh#158: a batch never clears the whole KV cache | :69 | absent | 2 |
gh#158: the single-session default is unchanged | :88 | absent | 4 |
tests/unit/inference/batch_util_test.cpp 13 tests · 13 absent
| test | line | result | requirements |
|---|---|---|---|
batch_shared_prefix_len: fewer than 2 sequences → 0 | :22 | absent | — |
batch_shared_prefix_len: common prefix, capped one below shortest | :28 | absent | — |
batch_shared_prefix_len: identical sequences cap at shortest-1 | :40 | absent | — |
batch_shared_prefix_len: no common first token → 0 | :48 | absent | — |
batch_shared_prefix_len: any empty sequence → 0 | :54 | absent | — |
batch_shared_prefix_len: single-token shortest → 0 (needs a suffix) | :60 | absent | — |
batch_shared_prefix_len: realistic same-prefix NPC batch | :66 | absent | — |
batch_is_viable: viable when all conditions hold | :82 | absent | — |
batch_is_viable: hybrid arch is never batched (seq ops unsafe) | :88 | absent | — |
batch_is_viable: fewer than 2 requests → serial | :94 | absent | — |
batch_is_viable: no shared prefix (disjoint) → serial | :99 | absent | — |
batch_is_viable: batch exceeds sequence slots → serial | :104 | absent | — |
batch_is_viable: suffix tokens overrun the decode batch → serial | :110 | absent | — |
tests/unit/inference/context_fit_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
context_fit_overflows refuses only what genuinely cannot fit | :154 | absent | 2 |
the refusal names every number an operator needs | :191 | absent | 2 |
the largest contributor is attributed to the right part | :222 | absent | — |
a tier whose staged tools overflow its context refuses the turn | :264 | absent | 2 |
a prompt that fits is not refused | :328 | absent | 1 |
tests/unit/inference/deferred_load_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#157: defer_load decides whether init touches the model at all | :105 | absent | 7 |
gh#157: a deferred tier answers vision from config while unloaded | :138 | absent | 7 |
gh#157: the first use loads exactly once, through the gate | :162 | absent | 7 |
gh#198: a deferred handle does not touch the device until it loads | :238 | absent | 7 |
tests/unit/inference/empty_content_diagnosis_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#137 an empty turn is attributed to its real cause | :35 | absent | 1 |
gh#159 a turn whose whole output was a tool call is not a fault | :116 | absent | 1 |
tests/unit/inference/expert_offload_test.cpp 6 tests · 6 absent
tests/unit/inference/gemma4_dropped_tool_text_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
v2.14.6: a Gemma 4 call span the parser dropped is restored | :32 | absent | 1 |
tests/unit/inference/gemma4_required_grammar_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
The Gemma 4 REQUIRED root is rewritten to the f072b10371 shape | :32 | absent | 2 |
An unknown Gemma 4 root shape is left unchanged | :59 | absent | 2 |
tests/unit/inference/generation_params_test.cpp 15 tests · 15 absent
| test | line | result | requirements |
|---|---|---|---|
GenerationParams defaults | :12 | absent | — |
min_p field round-trips through GenerationParams | :38 | absent | — |
min_p coexists with top_p / top_k / temperature without aliasing | :96 | absent | — |
min_p default preserves pre-v2.3.10 sampler-chain shape exactly | :128 | absent | — |
seed field round-trips through GenerationParams | :148 | absent | — |
presence_penalty field round-trips through GenerationParams | :170 | absent | 1 |
presence_penalty is independent of other penalty/sampling knobs | :205 | absent | — |
presence_penalty default still gates the penalties sampler OFF | :221 | absent | — |
frequency_penalty field round-trips through GenerationParams | :248 | absent | 1 |
frequency_penalty is independent of other penalty/sampling knobs | :283 | absent | — |
presence + frequency penalties coexist independently | :300 | absent | — |
logit_bias field round-trips through GenerationParams | :320 | absent | — |
logit_bias is independent of other sampler knobs | :352 | absent | — |
logit_bias empty leaves the sampler stage disabled (backward-compat) | :370 | absent | — |
ModelState enum values | :384 | absent | — |
tests/unit/inference/generation_summary_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
v2.12.2: a plain decode summary keeps its long-standing shape | :29 | absent | — |
v2.12.2: a speculative summary reports throughput in the SAME field | :54 | absent | — |
v2.12.2: degenerate generations still format without lying | :90 | absent | — |
tests/unit/inference/grammar_engagement_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
A non-empty GBNF grammar engages a grammar stage that masks | :110 | absent | 3 |
An empty grammar leaves the chain UNCONSTRAINED — the control | :157 | absent | 3 |
v2.14.6: a non-lazy tool-call grammar is applied on plain decode, | :235 | absent | 3 |
tests/unit/inference/grammar_orchestrator_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
grammar_key resolved to content | :69 | absent | 2 |
Raw grammar string takes precedence over grammar_key | :88 | absent | 2 |
Unknown grammar_key leaves unconstrained | :108 | absent | 1 |
Frontmatter grammar with .gbnf extension normalized | :126 | absent | 2 |
Frontmatter grammar without extension used as-is | :144 | absent | 2 |
grammar_key takes precedence over frontmatter | :162 | absent | 2 |
No grammar set leaves generation unconstrained | :182 | absent | 2 |
Runtime-registered grammar usable in resolution | :200 | absent | 2 |
Deregistered grammar no longer resolves | :219 | absent | 2 |
tests/unit/inference/grammar_registry_test.cpp 18 tests · 18 absent
| test | line | result | requirements |
|---|---|---|---|
Register grammar from in-memory string | :62 | absent | 2 |
Duplicate key registration fails | :89 | absent | 2 |
Invalid grammar registered with error metadata | :110 | absent | 2 |
Deregister removes grammar | :134 | absent | 2 |
Deregister nonexistent key returns false | :154 | absent | 1 |
Get nonexistent key returns empty string | :170 | absent | — |
Validate accepts well-formed GBNF | :187 | absent | 1 |
Validate rejects malformed GBNF | :195 | absent | 1 |
Validate rejects empty string | :204 | absent | 1 |
List returns all registered grammars | :213 | absent | 2 |
Clear removes all grammars | :238 | absent | 2 |
Load bundled grammars from directory | :258 | absent | 2 |
Load bundled from nonexistent directory | :303 | absent | 2 |
Register grammar from file | :319 | absent | 2 |
Register from nonexistent file fails | :353 | absent | 2 |
Concurrent register and get are thread-safe | :370 | absent | 2 |
GrammarEntry default-constructed is empty | :402 | absent | — |
GenerationParams grammar_key defaults empty | :418 | absent | — |
tests/unit/inference/grammar_source_invariant_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#134 every declared grammar source is wired to the sampler | :49 | absent | 2 |
gh#154 the result says what constrained the decode | :114 | absent | 2 |
gh#134 exactly one grammar source constrains a decode | :206 | absent | 2 |
tests/unit/inference/image_preprocessor_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
test_image | :24 | absent | — |
Preprocess valid small image | :30 | absent | 1 |
Image within bounds is not resized | :43 | absent | 1 |
Reject non-existent file | :57 | absent | 1 |
Reject file exceeding max size | :66 | absent | 1 |
Reject non-image file | :76 | absent | 1 |
Preprocess from memory buffer | :93 | absent | 1 |
Resize triggers when image exceeds max dims | :115 | absent | 1 |
Resize preserves aspect ratio | :129 | absent | 1 |
tests/unit/inference/inference_c_api_test.cpp 36 tests · 36 absent
tests/unit/inference/interface_factory_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
interface_factory: wiring + iface_* surface sweep | :37 | absent | 55 |
gh#122: fenced-json block in model output yields a tool call | :194 | absent | 55 |
gh#127: fenced args-only object matched by registered tool schema | :242 | absent | 55 |
gh#127: ambiguous fenced args object returns empty (no false positive) | :298 | absent | 55 |
gh#214: a typed generation failure reaches the engine as its rc | :344 | absent | — |
tests/unit/inference/load_count_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#148: one cold activation reads the model file once | :65 | absent | 2 |
gh#148: the WARM path deliberately keeps its reload | :99 | absent | 2 |
tests/unit/inference/logprob_evaluation_test.cpp 12 tests · 12 absent
| test | line | result | requirements |
|---|---|---|---|
Basic logprob evaluation returns correct structure | :136 | absent | 2 |
Perplexity matches manual computation | :169 | absent | 2 |
total_logprob equals sum of logprobs | :198 | absent | 2 |
Minimum sequence (2 tokens) succeeds | :225 | absent | 2 |
Single token is rejected | :247 | absent | 2 |
Zero tokens is rejected | :265 | absent | 2 |
Non-ACTIVE model is rejected | :284 | absent | 1 |
compute_perplexity returns perplexity only | :325 | absent | 2 |
Deterministic results across calls | :350 | absent | 2 |
Perplexity math correctness with known logprobs | :374 | absent | 2 |
Backend evaluation failure propagates | :419 | absent | 2 |
do_evaluate_logprobs is called exactly once | :442 | absent | 2 |
tests/unit/inference/model_skip_reason_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#149: a skip whose model is present never tells you to download it | :55 | absent | 1 |
gh#149: causes that are NOT about the file say so | :108 | absent | 1 |
gh#149: the genuinely-absent case keeps its actionable text | :145 | absent | 1 |
gh#149: no cause yields no reason, so the caller's default stands | :164 | absent | 1 |
tests/unit/inference/mtp_envelope_test.cpp 9 tests · 9 absent
tests/unit/inference/multi_handle_state_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#134 staged tool-choice state does not leak between backends | :41 | absent | 1 |
tests/unit/inference/nemotron3_adapter_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
Nemotron3 XML function call parsing | :22 | absent | 3 |
Nemotron3 reasoning-trace stripping | :46 | absent | 3 |
Nemotron3 fallback to tagged JSON | :91 | absent | 3 |
Nemotron3 tool result wraps in tool_response tags | :110 | absent | — |
Nemotron3 chat format is GGUF-embedded | :125 | absent | — |
tests/unit/inference/orchestrator_real_model_smoke_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
ModelOrchestrator real-model generate (one load, CPU) | :45 | absent | 55 |
tests/unit/inference/orchestrator_test.cpp 27 tests · 27 absent
tests/unit/inference/partial_offload_test.cpp 9 tests · 9 absent
tests/unit/inference/profile_registry_test.cpp 11 tests · 11 absent
| test | line | result | requirements |
|---|---|---|---|
Load bundled profiles | :25 | absent | 1 |
Bundled profiles have correct values | :43 | absent | 1 |
Register custom profile | :93 | absent | 1 |
Duplicate name rejected | :123 | absent | 1 |
Deregister removes profile | :147 | absent | 1 |
Deregister nonexistent returns false | :166 | absent | 1 |
Get unknown name falls back to balanced | :180 | absent | 1 |
Get with no profiles returns empty | :194 | absent | 1 |
List returns all profile names | :208 | absent | 1 |
load_bundled is idempotent | :232 | absent | 1 |
Concurrent register and get are thread-safe | :253 | absent | 2 |
tests/unit/inference/prompt_cache_test.cpp 13 tests · 13 absent
| test | line | result | requirements |
|---|---|---|---|
Store and lookup | :40 | absent | 1 |
Lookup miss | :63 | absent | 1 |
Content-addressed keys | :81 | absent | 1 |
Same prompt different model | :107 | absent | 1 |
LRU eviction order | :133 | absent | 1 |
Lookup updates LRU | :158 | absent | 1 |
Entry exceeds limit | :182 | absent | 1 |
Clear evicts all | :201 | absent | 1 |
Stats tracking | :224 | absent | 1 |
Zero max_bytes disables caching | :252 | absent | 1 |
Bytes accounting | :270 | absent | 1 |
Concurrent access | :296 | absent | 1 |
Duplicate key overwrites existing entry | :328 | absent | 1 |
tests/unit/inference/qwen35_adapter_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
XML function call parsing | :15 | absent | 3 |
Qwen35 tool result formatting | :58 | absent | 1 |
Qwen35 fallback to tagged JSON | :80 | absent | 3 |
Qwen35 content cleaning | :99 | absent | 3 |
tests/unit/inference/qwen36_adapter_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
Qwen36 XML function call parsing | :14 | absent | 3 |
Qwen36 tool result formatting | :71 | absent | 1 |
Qwen36 fallback to tagged JSON | :93 | absent | 3 |
Qwen36 content cleaning across multi-turn output | :112 | absent | 3 |
Qwen36 vision content-parts formatting | :141 | absent | 1 |
Qwen36 vision system prompt extension | :170 | absent | 1 |
tests/unit/inference/release_model_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#164: releasing an unknown tier is refused, not silently ignored | :89 | absent | 4 |
gh#164: release evicts the model and the next use brings it back | :105 | absent | 7 |
tests/unit/inference/residency_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
Residency snapshot on a default-constructed orchestrator | :33 | absent | 1 |
Residency observer slot accepts and clears callables | :48 | absent | — |
Last residency error defaults to OK and clears on demand | :66 | absent | — |
ENTROPIC_ERROR_TIER_MODEL_TOO_LARGE has a stable name | :75 | absent | 1 |
Residency event enum matches the public C ABI | :84 | absent | — |
tests/unit/inference/sampler_seam_test.cpp 10 tests · 10 absent
| test | line | result | requirements |
|---|---|---|---|
Sampler::reset default impl is a no-op | :113 | absent | 1 |
inject_sampler_factory_for_test wires the factory | :136 | absent | 1 |
Backend create_sampler returns nullptr when no factory wired | :164 | absent | 1 |
Factory receives the exact GenerationParams passed in | :182 | absent | 1 |
MockSampler.sample emits queued tokens then EOS | :238 | absent | 1 |
Sampler.reset() routes through the mock override | :262 | absent | 1 |
Sampler factory re-injection swaps the instance cleanly | :281 | absent | 1 |
Each factory.create() produces an independent Sampler | :306 | absent | 1 |
Factory with empty staged queue still vends a fresh sampler | :348 | absent | 1 |
Tokenizer + Sampler seams compose without interference | :375 | absent | 1 |
tests/unit/inference/secondary_model_loader_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
SecondaryModelLoader: empty loader has no roles | :19 | absent | 1 |
SecondaryModelLoader: release of unknown role is false | :28 | absent | 2 |
SecondaryModelLoader: ensure_loaded with bogus path fails cleanly | :36 | absent | 2 |
SecondaryModelLoader: shutdown is idempotent on empty | :54 | absent | 2 |
SecondaryModelLoader: clear_all_prompt_caches no-op when empty | :62 | absent | 1 |
SecondaryModelLoader: get_shared returns empty for unknown role | :70 | absent | — |
SecondaryModelLoader v2.3.10 topup — failure isolation + idempotency | :80 | absent | 2 |
tests/unit/inference/seq_id_pool_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
temp seq_id pool hands out distinct ids on an empty pool (gh#98) | :27 | absent | — |
released temp seq_ids are reused, keeping the high-water bounded | :42 | absent | — |
tests/unit/inference/session_pool_util_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
gh#144: a single session is bit-identical to pre-2.12.0 | :35 | absent | 1 |
gh#144: a pool allocates context_length PER SESSION | :51 | absent | 1 |
gh#144: gh#98 batch fan-out keeps its unified buffer | :76 | absent | 1 |
gh#144: a pool and batching together is a typed error | :93 | absent | 1 |
gh#144: degenerate values do not produce a broken geometry | :122 | absent | 1 |
tests/unit/inference/session_residency_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
gh#144: one session's KV is never reused for another | :38 | absent | 2 |
gh#144: slots are stable and reacquired, not reshuffled | :81 | absent | 1 |
gh#144: a full pool evicts the least recently used session | :104 | absent | 2 |
gh#144: invalidation clears residency without losing the slot | :136 | absent | 2 |
gh#144: a degenerate pool size still yields one usable slot | :170 | absent | 1 |
tests/unit/inference/speculative_compat_test.cpp 12 tests · 12 absent
| test | line | result | requirements |
|---|---|---|---|
speculative compat: matching pair returns compatible | :189 | absent | 1 |
speculative compat: null handles rejected | :199 | absent | 1 |
speculative compat: recurrent target is rejected | :211 | absent | 1 |
speculative compat: hybrid target is rejected | :222 | absent | 1 |
speculative compat: vocab type mismatch rejected | :242 | absent | 1 |
speculative compat: BOS mismatch rejected | :255 | absent | 1 |
speculative compat: BOS-add behavior mismatch rejected | :268 | absent | 1 |
speculative compat: EOS mismatch rejected | :281 | absent | 1 |
speculative compat: vocab size delta within tolerance | :294 | absent | 1 |
speculative compat: vocab size delta over tolerance rejected | :306 | absent | 1 |
speculative compat: token text mismatch rejected | :319 | absent | 1 |
speculative compat: token text in skipped range ignored | :333 | absent | 1 |
tests/unit/inference/thinking_markers_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#108 the adapter a gemma4 tier resolves to strips its own marker | :75 | absent | 2 |
gh#108 the gemma4 adapter and the stream filter agree on markers | :120 | absent | 4 |
gh#108 StreamThinkFilter suppresses the family's marker live | :146 | absent | 3 |
gh#137 an unclosed reasoning marker discards only what follows it | :222 | absent | 1 |
tests/unit/inference/throughput_tracker_test.cpp 12 tests · 12 absent
| test | line | result | requirements |
|---|---|---|---|
First sample sets initial EWMA | :24 | absent | 1 |
Subsequent samples smooth via EWMA | :45 | absent | 1 |
Degenerate samples are ignored | :63 | absent | 1 |
Zero-ms samples are ignored | :86 | absent | 1 |
predict_ms estimates generation time | :109 | absent | 1 |
predict_ms returns 0 with no data | :122 | absent | 1 |
recommend_tokens with headroom | :136 | absent | 1 |
recommend_tokens respects floor | :150 | absent | 1 |
recommend_tokens returns floor with no data | :165 | absent | 1 |
reset clears all data | :180 | absent | 1 |
EWMA adapts to sustained throughput change | :199 | absent | 1 |
Concurrent record and read are thread-safe | :227 | absent | 1 |
tests/unit/inference/tier_grammar_gate_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#154 a tier grammar that is not registered refuses the run | :99 | absent | 55 |
gh#154 registering the tier's grammar after configure opens the | :188 | absent | 55 |
gh#154 a REQUEST-level grammar_key miss still fails open | :223 | absent | 55 |
tests/unit/inference/tokenizer_seam_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
Tokenizer::count_tokens default impl returns tokenize().size() | :79 | absent | 1 |
inject_tokenizer_for_test flips state and routes count_tokens | :111 | absent | 1 |
Backend tokenize_text routes through the Tokenizer mock | :143 | absent | 1 |
Backend count_tokens fallback when no tokenizer injected | :169 | absent | 1 |
Backend tokenize_text returns empty when no tokenizer wired | :191 | absent | 1 |
Multiple count_tokens calls accumulate mock invocations | :206 | absent | 1 |
Backend re-injection swaps the tokenizer in place | :227 | absent | 1 |
tests/unit/inference/tool_call_markers_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
gh#103: tool-call close markers map per resolved common_chat format | :24 | absent | 1 |
gh#103: append_sequential_stop engages only in sequential mode | :57 | absent | 1 |
tests/unit/inference/tool_call_serialize_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
serialize_tool_calls: empty input is an empty JSON array | :37 | absent | — |
serialize_tool_calls: name is preserved and arguments is an object | :42 | absent | — |
serialize_tool_calls: JSON-valued argument strings keep their type | :55 | absent | — |
gh#118: serialize_tool_calls does not throw on MTP-split UTF-8 argument value | :80 | absent | — |
serialize_tool_calls: multiple calls preserve order | :100 | absent | — |
tests/unit/inference/utf8_ingress_invariant_test.cpp 1 test · 1 absent
| test | line | result | requirements |
|---|---|---|---|
gh#136 sanitized model output is always serializable | :75 | absent | 1 |
tests/unit/inference/vision_adapter_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
TestAdapter | :21 | absent | — |
Base adapter returns system prompt unchanged with vision=false | :37 | absent | — |
Base adapter format_content_parts produces OpenAI JSON | :53 | absent | — |
format_content_parts yields the base OpenAI content array | :86 | absent | — |
tests/unit/inference/vocab_only_smoke_test.cpp 10 tests · 10 absent
| test | line | result | requirements |
|---|---|---|---|
LlamaCppTokenizer round-trips ASCII against a real vocab | :79 | absent | 1 |
LlamaCppTokenizer is graceful on empty input | :126 | absent | 1 |
LlamaCppTokenizer handles unicode + multi-byte UTF-8 | :147 | absent | — |
LlamaCppTokenizer with add_special=true differs from false | :172 | absent | 1 |
LlamaCppTokenizer handles a small SPM vocab as well | :195 | absent | — |
LlamaCppBackend::load against a vocab-only GGUF exercises do_load | :211 | absent | 2 |
LlamaCppBackend::load with a nonexistent path drives the failure branch | :254 | absent | 1 |
LlamaCppBackend unload after failed load is a safe no-op | :280 | absent | 2 |
LlamaCppTokenizer detokenize sweeps every token in the vocab | :306 | absent | — |
LlamaCppBackend re-load after unload reuses do_load | :328 | absent | 2 |
tests/unit/inference/vram_footprint_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
gh#142 KV is priced by its cache type, not a flat rate | :60 | absent | 1 |
gh#142 offload placement decides whether weights count against VRAM | :110 | absent | 1 |
gh#142 the vision projector is counted — it is what actually failed | :171 | absent | 1 |
gh#142 the config that aborted the process is refused instead | :202 | absent | 1 |
gh#144: a session pool multiplies the KV estimate | :263 | absent | 2 |
gh#144: the fit recommendation is per session, not total | :291 | absent | 2 |
gh#144: max_sessions of 0 or 1 is priced identically | :328 | absent | 1 |
tests/unit/inference/warm_keep_util_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
common_prefix_len matches leading tokens | :25 | absent | — |
warm_keep_cut: happy path reuses the shared prefix | :36 | absent | — |
warm_keep_cut: divergence mid-history caps reuse at the cut | :48 | absent | — |
warm_keep_cut: no shared prefix falls back (tier/system swap) | :56 | absent | — |
warm_keep_cut: occupancy gate catches out-of-band KV wipe | :63 | absent | — |
warm_keep_cut: degenerate inputs fall back | :76 | absent | — |
warm_keep_cut: identical sequence still decodes the last token | :83 | absent | — |
tests/unit/inference/xml_parameter_parser_test.cpp 11 tests · 11 absent
tests/unit/mcp/discovery_policy_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
config decides a discovered server before any hook is asked | :54 | absent | — |
an entropic mcp-bridge entry is recognised wherever it would connect | :90 | absent | 2 |
tests/unit/mcp/external_bridge_test.cpp 32 tests · 32 absent
tests/unit/mcp/external_client_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
Connect sends initialize and tools/list | :129 | absent | 3 |
Execute sends tools/call and returns result | :150 | absent | 4 |
gh#190: a tools/call result flagged isError reaches the engine as a failure | :171 | absent | 4 |
Execute when disconnected returns error | :195 | absent | 3 |
Connect fails when transport open fails | :209 | absent | 3 |
Disconnect clears cached tools | :219 | absent | 3 |
Refresh tools detects additions | :240 | absent | 3 |
Refresh tools detects removals | :261 | absent | 3 |
Execute timeout returns error | :282 | absent | 4 |
tests/unit/mcp/gh150_interrupt_latch_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#150: clearing the engine interrupt also clears the transports | :71 | absent | 2 |
gh#150: a stdio transport's interrupt is observable and reversible | :105 | absent | 2 |
gh#150: open() clears the interrupt, as its doc always claimed | :135 | absent | 2 |
gh#150: a suppressed external call is REPORTED as a failure | :156 | absent | 5 |
tests/unit/mcp/mcp_authorization_test.cpp 15 tests · 15 absent
| test | line | result | requirements |
|---|---|---|---|
Unregistered identity passes authorization | :13 | absent | 2 |
Registered empty identity denies all | :20 | absent | 2 |
Grant then check succeeds | :28 | absent | 2 |
Revoke then check fails | :38 | absent | 2 |
Grant from valid granter succeeds | :48 | absent | 3 |
Grant from insufficient level denied | :62 | absent | 1 |
Grant from missing key denied | :74 | absent | 1 |
Grant from unregistered granter returns NOT_FOUND | :86 | absent | 1 |
Grant from unregistered grantee returns NOT_FOUND | :96 | absent | 1 |
List keys returns correct vector | :107 | absent | — |
List keys unregistered returns empty | :117 | absent | — |
Serialize all roundtrip | :124 | absent | 2 |
Unregister disables enforcement | :144 | absent | 2 |
is_enforced correct | :155 | absent | 1 |
Grant to unregistered identity returns NOT_FOUND | :163 | absent | — |
tests/unit/mcp/mcp_bridge_relay_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
mcp-bridge exits non-zero with diagnostic when no engine | :125 | absent | 1 |
mcp-bridge relays bytes between stdio and the socket | :150 | absent | 1 |
tests/unit/mcp/mcp_json_discovery_test.cpp 10 tests · 10 absent
| test | line | result | requirements |
|---|---|---|---|
Discover stdio entry from .mcp.json | :32 | absent | — |
Discover SSE entry from .mcp.json | :54 | absent | — |
Shadow warning skips existing server | :75 | absent | — |
Missing command skips stdio entry | :94 | absent | — |
Env blocklist filters dangerous variables | :113 | absent | 1 |
compute_socket_path is deterministic | :127 | absent | 1 |
compute_socket_path differs for different dirs | :134 | absent | 1 |
Env blocklist applied to .mcp.json entries | :141 | absent | — |
Malformed JSON skips gracefully | :165 | absent | — |
Explicit type field overrides inference | :183 | absent | — |
tests/unit/mcp/mcp_key_set_test.cpp 20 tests · 20 absent
| test | line | result | requirements |
|---|---|---|---|
MCPKeySet empty denies all | :14 | absent | 2 |
MCPKeySet exact match READ | :23 | absent | 3 |
MCPKeySet exact match WRITE | :30 | absent | 3 |
MCPKeySet READ does not authorize WRITE | :37 | absent | 3 |
MCPKeySet WRITE implies READ | :47 | absent | 3 |
MCPKeySet server wildcard match | :56 | absent | 3 |
MCPKeySet full wildcard match | :68 | absent | 3 |
MCPKeySet most specific wins: exact over wildcard | :75 | absent | 3 |
MCPKeySet most specific wins: server over full | :86 | absent | 3 |
MCPKeySet revoke removes access | :97 | absent | 3 |
MCPKeySet revoke nonexistent returns false | :108 | absent | — |
MCPKeySet grant updates level | :114 | absent | 3 |
MCPKeySet grant can downgrade | :124 | absent | 3 |
MCPKeySet list returns all keys | :132 | absent | 1 |
MCPKeySet size matches grants | :142 | absent | 1 |
MCPKeySet clear removes all | :149 | absent | 1 |
MCPKeySet serialize roundtrip | :157 | absent | 3 |
MCPKeySet serialize format | :172 | absent | 1 |
MCPKeySet deserialize invalid JSON | :183 | absent | 1 |
MCPKeySet deserialize skips invalid entries | :189 | absent | 3 |
tests/unit/mcp/permission_manager_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
Deny takes precedence | :15 | absent | 1 |
Glob pattern matching | :26 | absent | 1 |
Tool level pattern | :36 | absent | 1 |
Argument level pattern | :44 | absent | 1 |
Add permission runtime | :52 | absent | 1 |
Empty lists — nothing denied | :61 | absent | 1 |
tests/unit/mcp/plugin_loader_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
gh#133 control: the fixture plugin exports the full contract | :102 | absent | — |
gh#133 a configured plugin's tools appear in list_tools | :161 | absent | — |
gh#133 a tool call routes through to the plugin | :181 | absent | — |
gh#133 a plugin registers as a named server | :193 | absent | — |
gh#133 a missing plugin .so fails loud, not silently | :208 | absent | — |
gh#133 a version-mismatched plugin is rejected with its own code | :219 | absent | — |
gh#133 an empty plugin list is a no-op success | :234 | absent | — |
tests/unit/mcp/reconnect_policy_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
First delay is approximately base_delay | :15 | absent | 1 |
Delay increases exponentially | :24 | absent | 1 |
Delay capped at max_delay | :35 | absent | 1 |
Jitter adds variance | :43 | absent | 1 |
Exhausted at max_retries | :54 | absent | 1 |
Zero max_retries never exhausts | :62 | absent | 1 |
Construct from ReconnectConfig | :70 | absent | 1 |
tests/unit/mcp/server_base_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
TestServer | :96 | absent | 2 |
Server registers tools | :109 | absent | 4 |
Execute dispatches to tool | :116 | absent | 4 |
Unknown tool returns error | :123 | absent | 4 |
ServerResponse JSON envelope | :131 | absent | 4 |
Context anchor auto-injection | :140 | absent | 4 |
No anchor by default | :147 | absent | 4 |
Default permission pattern | :154 | absent | 2 |
Default skip duplicate check | :161 | absent | 2 |
tests/unit/mcp/server_manager_test.cpp 20 tests · 20 absent
tests/unit/mcp/servers/bash_test.cpp 12 tests · 12 absent
| test | line | result | requirements |
|---|---|---|---|
Execute captures stdout output | :88 | absent | 4 |
Execute captures stderr output | :97 | absent | 4 |
Execute respects working directory | :106 | absent | 4 |
Execute nonexistent command returns error | :121 | absent | 4 |
get_permission_pattern extracts the base command | :132 | absent | 4 |
load_tool_definition throws when the JSON file is missing | :161 | absent | 1 |
BashServer working_dir setter/getter + timeout accessor | :169 | absent | 6 |
bash: a command that outlives the timeout is killed with its | :306 | absent | 4 |
bash: a background child is not left running after the | :336 | absent | 4 |
bash: a background child holding the output pipe does not hang | :353 | absent | 4 |
bash: a command inside its limit still reports its own exit code | :370 | absent | 4 |
gh#172: interrupting a session stops its running bash command | :384 | absent | 5 |
tests/unit/mcp/servers/context_inspect_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
context_inspect returns all messages when max_messages omitted | :77 | absent | 1 |
context_inspect respects max_messages limit | :91 | absent | 1 |
context_inspect entries have required fields | :106 | absent | 1 |
context_inspect returns no directives | :122 | absent | 1 |
context_inspect without provider returns error | :134 | absent | — |
gh#143: context_inspect survives non-object arguments | :145 | absent | 1 |
tests/unit/mcp/servers/diagnose_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
test_diagnose_returns_all_sections | :159 | absent | 1 |
test_diagnose_no_docs_by_default | :176 | absent | 1 |
test_diagnose_with_docs | :187 | absent | 1 |
test_diagnose_history_limit_custom | :201 | absent | 1 |
test_diagnose_no_directives | :213 | absent | 1 |
test_diagnose_valid_json | :223 | absent | 1 |
test_diagnose_config_section | :235 | absent | 1 |
test_diagnose_metrics_fields | :248 | absent | 1 |
test_diagnose_no_provider_error | :261 | absent | 4 |
tests/unit/mcp/servers/diagnostics_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
Diagnostics returns placeholder | :41 | absent | 3 |
Check errors returns placeholder | :50 | absent | 3 |
Diagnostics server registers 2 tools | :59 | absent | 3 |
Diagnostics tools advertise READ access | :68 | absent | 3 |
tests/unit/mcp/servers/entropic_test.cpp 29 tests · 29 absent
tests/unit/mcp/servers/filesystem_contract_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
gh#201: read_file numbers every line and pages long files | :129 | absent | 4 |
gh#202: grep pages past its cap and can search one file | :174 | absent | 4 |
gh#203: edit_file inserts AFTER the line, and line 0 is the start | :211 | absent | 5 |
gh#203: glob, list_directory and write_file emit their declared shapes | :253 | absent | 4 |
gh#203: each filesystem description's Response format is generated | :290 | absent | 1 |
tests/unit/mcp/servers/filesystem_test.cpp 43 tests · 43 absent
tests/unit/mcp/servers/git_injection_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#211: a shell metacharacter in any git argument runs nothing | :66 | absent | 4 |
gh#211: the repository path never reaches a shell either | :86 | absent | 4 |
gh#211: option-shaped values are not options | :98 | absent | 5 |
gh#211: ordinary values still work, taken literally | :120 | absent | 4 |
tests/unit/mcp/servers/git_test.cpp 10 tests · 10 absent
| test | line | result | requirements |
|---|---|---|---|
Git status returns JSON result | :120 | absent | 3 |
Git diff returns staged content | :128 | absent | 3 |
Git log returns commit entries | :141 | absent | 3 |
Git add stages files | :152 | absent | 3 |
Git commit creates a commit on staged content | :169 | absent | 3 |
Git commit with add_all=true stages and commits in one call | :185 | absent | 3 |
Git branch lists branches and creates new ones | :202 | absent | 3 |
Git checkout switches branches | :229 | absent | 3 |
Git reset rolls back a staged change | :256 | absent | 3 |
gh#143: git.diff with no arguments does not throw | :284 | absent | 3 |
tests/unit/mcp/servers/ignore_matcher_test.cpp 20 tests · 20 absent
tests/unit/mcp/servers/inspect_test.cpp 18 tests · 18 absent
| test | line | result | requirements |
|---|---|---|---|
test_inspect_config_full | :166 | absent | 1 |
test_inspect_config_section | :178 | absent | 1 |
test_inspect_config_unknown_section | :190 | absent | 1 |
test_inspect_identity_by_name | :202 | absent | 1 |
test_inspect_identity_includes_assembled_prompt | :218 | absent | 1 |
test_inspect_identity_unknown | :233 | absent | 1 |
test_inspect_tool_by_name | :245 | absent | 1 |
test_inspect_tool_unknown | :257 | absent | 1 |
test_inspect_state | :268 | absent | 1 |
test_inspect_metrics | :280 | absent | 1 |
test_inspect_history_default | :292 | absent | 1 |
test_inspect_history_with_limit | :304 | absent | 1 |
test_inspect_docs_full | :316 | absent | 1 |
test_inspect_docs_section | :326 | absent | 1 |
test_inspect_unknown_target | :337 | absent | 1 |
test_inspect_no_directives | :349 | absent | 1 |
test_inspect_no_provider_error | :360 | absent | — |
inspect handles empty/invalid args without crashing | :379 | absent | 1 |
tests/unit/mcp/servers/tool_contract_gate_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
gh#203: every bundled descriptor declares an outputSchema and | :234 | absent | 1 |
gh#203: every bundled tool emits only what its outputSchema declares | :252 | absent | 5 |
gh#203: the rendered Response format states every key, optional | :274 | absent | 1 |
tests/unit/mcp/servers/web_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
Web fetch returns placeholder | :41 | absent | 3 |
Web fetch respects max_length parameter | :50 | absent | 3 |
Web search returns placeholder | :60 | absent | 3 |
tests/unit/mcp/stdio_transport_test.cpp 11 tests · 11 absent
| test | line | result | requirements |
|---|---|---|---|
StdioTransport 5-arg ctor preserves clean display_name | :28 | absent | — |
StdioTransport falls back to command when display_name empty | :36 | absent | — |
StdioTransport sanitizes leading slash (BBCode collision) | :44 | absent | — |
StdioTransport strips bracket and control characters | :56 | absent | — |
StdioTransport sanitization fallback to 'server' | :64 | absent | — |
StdioTransport 1-arg ctor also sanitizes (legacy path) | :72 | absent | — |
StdioTransport rejects open() against a non-existent command | :86 | absent | — |
StdioTransport open() is idempotent on already-connected state | :96 | absent | — |
StdioTransport.send_request times out cleanly when child doesn't reply | :117 | absent | — |
StdioTransport.close() with no prior open() is safe | :135 | absent | — |
gh#158: an abandoned request's late reply is drained, not returned | :145 | absent | — |
tests/unit/mcp/tool_call_history_test.cpp 18 tests · 18 absent
| test | line | result | requirements |
|---|---|---|---|
test_empty_history | :35 | absent | 1 |
test_record_single | :42 | absent | 1 |
test_record_fills_to_capacity | :51 | absent | 1 |
test_record_overwrites_oldest | :59 | absent | 1 |
test_recent_newest_first | :74 | absent | 1 |
test_recent_more_than_available | :86 | absent | 1 |
test_all_oldest_first | :95 | absent | 1 |
test_to_json_valid | :107 | absent | 1 |
test_to_json_limit | :120 | absent | 1 |
test_params_summary_keys_only | :130 | absent | 1 |
test_result_summary_truncated | :136 | absent | 1 |
test_result_summary_short_unchanged | :143 | absent | 1 |
test_sequence_monotonic | :148 | absent | 1 |
test_concurrent_write_read | :159 | absent | 1 |
test_wrap_around_correctness | :191 | absent | 1 |
to_json includes error_detail when set | :216 | absent | 1 |
gh#216: truncating a tool result never splits a UTF-8 character | :231 | absent | 1 |
gh#216: one bad record cannot make the history unserializable | :246 | absent | 1 |
tests/unit/mcp/tool_calling_loop_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
Tool executor processes calls via ServerManager | :116 | absent | 53 |
Multiple tool calls in batch | :145 | absent | 53 |
Permission denied returns feedback | :175 | absent | 53 |
Error result not cached for dedup | :200 | absent | 53 |
tests/unit/mcp/tool_executor_authorization_test.cpp 6 tests · 6 absent
| test | line | result | requirements |
|---|---|---|---|
Authorization check: denied tool returns error | :118 | absent | 5 |
Authorization check: authorized tool executes | :145 | absent | 5 |
No enforcement without key set | :172 | absent | 5 |
Denial message contains tool name and level | :198 | absent | 5 |
READ tool with READ access succeeds | :227 | absent | 5 |
WRITE tool denied with READ-only access | :254 | absent | 5 |
tests/unit/mcp/tool_executor_test.cpp 45 tests · 45 absent
tests/unit/mcp/tool_registry_test.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
Register and dispatch tool | :50 | absent | 2 |
has_tool returns false for unknown | :60 | absent | 1 |
get_tools_json returns definitions | :65 | absent | 2 |
Dispatch unknown returns error | :77 | absent | 2 |
Duplicate registration warns | :84 | absent | 1 |
register_tool with nullptr is a logged no-op | :95 | absent | 1 |
get_definitions returns one pointer per registered tool | :102 | absent | 1 |
get_definitions on an empty registry returns an empty vector | :116 | absent | 1 |
tests/unit/mcp/tool_result_classify_test.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
is_effectively_empty bucket | :33 | absent | 1 |
looks_like_tool_error positive cases | :44 | absent | 1 |
looks_like_tool_error negative cases | :62 | absent | 1 |
ToolResultKind::ok_empty round-trips through string form | :89 | absent | 1 |
delegation_failed and rejected_anti_spiral round-trip | :101 | absent | 1 |
truncate_to_cap is a no-op when cap is 0 | :127 | absent | 2 |
truncate_to_cap is a no-op when content is already within cap | :140 | absent | 2 |
truncate_to_cap shrinks oversized content with a marker tail | :163 | absent | 2 |
tests/unit/mcp/tool_root_lock_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
gh#158: the root lock's owner re-enters and passes through | :66 | absent | 2 |
gh#158: another thread's dispatch waits while the root lock is | :93 | absent | 2 |
gh#158: re-rooting waits for an in-flight dispatch | :111 | absent | — |
gh#158: leave_working_dir refuses a thread that never entered | :132 | absent | 5 |
tests/unit/mcp/transport_sse_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
SSETransport rejects URLs with no scheme | :130 | absent | 2 |
SSETransport parses host-only URL (no path component) | :154 | absent | 1 |
SSETransport handles open against a port with no listener | :171 | absent | 1 |
SSETransport warns on cleartext HTTP to non-localhost host | :187 | absent | 1 |
SSETransport rejects send_request when not opened | :205 | absent | 2 |
SSETransport.open() against a real listening server reaches the SSE reader | :220 | absent | — |
SSETransport.close() is idempotent on an opened transport | :235 | absent | — |
tests/unit/mcp/utf8_sanitize_test.cpp 12 tests · 12 absent
tests/unit/prompts/classification_prompt_test.cpp 3 tests · 3 absent
| test | line | result | requirements |
|---|---|---|---|
Build classification prompt with tiers | :14 | absent | 2 |
Interleave examples round-robin | :48 | absent | 1 |
History and recent_tiers in classification prompt | :84 | absent | 2 |
tests/unit/prompts/identity_validation_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
gh#211: a configured identity must load, or configure fails | :56 | absent | 2 |
gh#211: malformed YAML is a returned error, never an abort | :94 | absent | 11 |
v2.14.5: a grammar-bound tier does not owe an explicit completion | :107 | absent | 1 |
v2.14.5: explicit_completion: true with a grammar fails configure | :132 | absent | 1 |
v2.14.5: a config grammar on an identity that owes completion | :147 | absent | 1 |
tests/unit/prompts/prompt_parse_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
test_data | :19 | absent | — |
Parse constitution prompt | :24 | absent | 1 |
Parse app_context prompt | :52 | absent | 1 |
Type mismatch fails | :74 | absent | 1 |
Load identity file | :93 | absent | 2 |
Constitution loading with tri-state | :180 | absent | — |
gh#117: explicit_completion: false in frontmatter is honored when | :208 | absent | 2 |
tests/unit/storage/audit_entry_test.cpp 9 tests · 9 absent
| test | line | result | requirements |
|---|---|---|---|
AuditEntry serializes all fields to JSON | :37 | absent | 2 |
AuditEntry serializes null parent_conversation_id | :64 | absent | 2 |
AuditEntry round-trips through JSON | :80 | absent | 2 |
AuditEntry from_json fails on missing required field | :110 | absent | 2 |
AuditEntry from_json ignores extra fields | :127 | absent | 2 |
AuditEntry preserves large params without truncation | :150 | absent | 2 |
AuditEntry preserves large result content | :172 | absent | 2 |
AuditEntry serializes directive array correctly | :190 | absent | 2 |
AuditEntry serializes empty directives as empty array | :210 | absent | 2 |
tests/unit/storage/audit_logger_test.cpp 14 tests · 14 absent
| test | line | result | requirements |
|---|---|---|---|
AuditLogger creates file on initialize | :86 | absent | 2 |
AuditLogger records a single JSONL line | :106 | absent | 2 |
AuditLogger records multiple entries | :132 | absent | 2 |
AuditLogger sequence numbers are monotonic | :156 | absent | 2 |
AuditLogger concurrent writes produce no duplicates | :183 | absent | 2 |
AuditLogger entry_count matches record calls | :221 | absent | 2 |
AuditLogger flush forces write to disk | :244 | absent | 2 |
AuditLogger flush_interval batches writes | :269 | absent | 2 |
AuditLogger appends to existing file | :293 | absent | 2 |
AuditLogger rotates at max_file_size | :328 | absent | 2 |
AuditLogger rotation respects max_files | :356 | absent | 2 |
AuditLogger log_path returns correct path | :384 | absent | 2 |
Disabled AuditLogger creates no file | :403 | absent | 2 |
Concurrent writes produce complete JSON lines | :429 | absent | 2 |
tests/unit/storage/backend_test.cpp 15 tests · 15 absent
| test | line | result | requirements |
|---|---|---|---|
Create conversation returns valid UUID | :45 | absent | 3 |
Save and load conversation round-trips | :63 | absent | 3 |
List conversations with pagination | :92 | absent | 3 |
Delete conversation cascades | :122 | absent | 4 |
Update conversation title | :142 | absent | 3 |
FTS5 search returns results with snippets | :161 | absent | 4 |
Delegation lifecycle | :186 | absent | 5 |
create_delegation refuses empty parent (gh#48) | :232 | absent | 4 |
Compaction snapshot saved | :255 | absent | 3 |
Storage statistics | :274 | absent | 4 |
get_delegation_by_id retrieves a single delegation row | :301 | absent | 5 |
search_delegations finds completed rows by substring | :332 | absent | 5 |
gh#112/gh#113: get_delegation_by_id sanitizes invalid UTF-8 in | :388 | absent | 5 |
gh#114: get_delegations sanitizes invalid UTF-8 in task field | :497 | absent | 5 |
Storage write failures are reported, not swallowed | :624 | absent | 3 |
tests/unit/storage/c_interface_test.cpp 13 tests · 13 absent
| test | line | result | requirements |
|---|---|---|---|
C API handle lifecycle | :70 | absent | 5 |
C API NULL handle returns error | :89 | absent | 7 |
C API full conversation lifecycle | :112 | absent | 5 |
C API delegation round-trip | :145 | absent | 6 |
C API snapshot and stats | :177 | absent | 6 |
C API search | :213 | absent | 6 |
Storage handle round-trips a conversation through the C ABI | :246 | absent | 5 |
Storage handle lists and deletes conversations through the C ABI | :289 | absent | 6 |
Storage handle exercises delegation create/complete/get through the C ABI | :332 | absent | 7 |
Storage handle saves snapshot + queries stats through the C ABI | :382 | absent | 6 |
Storage handle searches conversations through the C ABI | :416 | absent | 6 |
Storage C ABI rejects every NULL-handle entry-point | :442 | absent | 8 |
Storage C ABI safely returns nullptr on create with NULL db_path | :482 | absent | 3 |
tests/unit/storage/database_test.cpp 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
Database creates file and initializes | :53 | absent | 3 |
Migrations run in order | :69 | absent | 4 |
Migrations are idempotent | :98 | absent | 4 |
Basic INSERT and SELECT round-trip | :124 | absent | 4 |
FTS5 triggers populate on INSERT | :158 | absent | 4 |
FTS5 triggers clean up on DELETE | :189 | absent | 4 |
CASCADE delete removes messages and delegations | :222 | absent | 4 |
Concurrent access does not corrupt | :274 | absent | 4 |
tests/unit/storage/permission_persister_test.cpp 7 tests · 7 absent
| test | line | result | requirements |
|---|---|---|---|
Save allow pattern to new config | :55 | absent | 1 |
Save deny pattern | :74 | absent | 1 |
Duplicate patterns are not added twice | :91 | absent | 1 |
Existing config keys preserved | :112 | absent | 1 |
Adding deny after existing allow list | :141 | absent | 1 |
Adding a second item to an existing allow list | :174 | absent | 1 |
save_permission is idempotent when the pattern already exists | :207 | absent | 1 |
tests/unit/test_bindings_abi.py 13 tests · 13 absent
| test | line | result | requirements |
|---|---|---|---|
test_every_c_value_has_python_entry | :175 | absent | — |
test_no_extra_python_entries | :196 | absent | — |
test_count_matches | :207 | absent | — |
test_every_c_value_has_python_entry | :238 | absent | — |
test_every_c_value_has_python_entry | :284 | absent | — |
test_no_extra_python_entries | :304 | absent | — |
test_all_2_1_4_symbols_declared | :339 | absent | — |
test_gh22_symbols_in_lazy_exports | :458 | absent | — |
test_gh29_symbols_in_lazy_exports | :462 | absent | — |
test_gh30_symbols_in_lazy_exports | :466 | absent | — |
test_gh22_symbols_declared_in_bindings | :470 | absent | — |
test_gh29_symbols_declared_in_bindings | :474 | absent | — |
test_gh30_symbols_declared_in_bindings | :478 | absent | — |
tests/unit/test_gen_bindings.py 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
test_check_passes_on_committed_files | :53 | absent | — |
test_synthetic_export_changes_generator_output | :74 | absent | — |
tests/unit/test_pythonic_facade.py 8 tests · 8 absent
| test | line | result | requirements |
|---|---|---|---|
test_hook_decorator_appends_to_pending | :85 | absent | — |
test_hook_decorator_preserves_priority | :100 | absent | — |
test_register_hooks_binds_pending_and_keeps_trampoline_alive | :113 | absent | 4 |
test_register_hooks_is_idempotent_for_already_bound | :139 | absent | 4 |
test_register_token_observer_keeps_callback_alive | :157 | absent | 2 |
test_register_server_requires_command_xor_url | :179 | absent | 4 |
test_register_server_marshals_full_config_to_json | :189 | absent | 4 |
test_register_server_url_path_uses_sse_transport | :212 | absent | 4 |
tests/unit/types/config_structs_test.cpp 2 tests · 2 absent
| test | line | result | requirements |
|---|---|---|---|
ModelConfig has correct defaults | :12 | absent | — |
GenerationParams has correct defaults | :94 | absent | — |
tests/unit/types/content_test.cpp 11 tests · 11 absent
| test | line | result | requirements |
|---|---|---|---|
ContentPart TEXT has correct type | :18 | absent | — |
ContentPart IMAGE with path | :29 | absent | — |
ContentPart IMAGE with data URI | :38 | absent | — |
ContentPart default dimensions are zero | :47 | absent | — |
extract_text from mixed parts | :56 | absent | 1 |
extract_text from text-only parts | :77 | absent | 1 |
extract_text from empty parts | :88 | absent | 1 |
extract_text from images only | :93 | absent | 1 |
has_images detects images | :106 | absent | 1 |
has_images returns false for text-only | :122 | absent | 1 |
has_images returns false for empty | :138 | absent | 1 |
tests/unit/types/error_test.cpp 4 tests · 4 absent
| test | line | result | requirements |
|---|---|---|---|
Error codes have human-readable names | :13 | absent | 2 |
ENTROPIC_OK is zero | :49 | absent | 1 |
Error callback registration rejects NULL handle | :63 | absent | 1 |
Error callback registration reports that it is not implemented | :75 | absent | 1 |
tests/unit/types/logging_test.cpp 22 tests · 22 absent
tests/unit/types/message_multimodal_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
Text-only message has empty content_parts | :17 | absent | — |
Default-constructed Message has empty content_parts | :26 | absent | — |
Message with content_parts populated | :36 | absent | 1 |
Message content_parts with data URI | :58 | absent | 1 |
Multimodal message preserves metadata | :81 | absent | — |
tests/unit/types/messages_json_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
parse_messages_json: text-only string content | :23 | absent | 2 |
parse_messages_json: multimodal content array | :39 | absent | 2 |
parse_messages_json: image data URI | :61 | absent | 1 |
parse_messages_json: missing role defaults to user | :79 | absent | 1 |
parse_messages_json: malformed JSON throws | :93 | absent | 1 |
tests/unit/types/session_logger_test.cpp 5 tests · 5 absent
| test | line | result | requirements |
|---|---|---|---|
SessionLogger constructs and writes to session_model.log | :62 | absent | 1 |
SessionLogger refuses raw_token writes with degenerate inputs | :117 | absent | 1 |
SessionLogger handles an un-openable log path gracefully | :143 | absent | 1 |
SessionLogger raw_token_callback dispatches to the instance | :178 | absent | 1 |
SessionLogger destructor closes the log on scope exit | :197 | absent | 1 |