REQ-INFER¶
24 requirements: 24 implemented, 24 tested, 0 passing.
| requirement | tier | implemented by | tests |
|---|---|---|---|
| REQ-INFER-001 Backend lifecycle is a three-state machine with gated generation | NOT_RUN | entropic_inference_generateentropic_inference_generate_with_cancel | 0 direct · 10 reached through calls 10 tests: 10 absent |
| REQ-INFER-002 Teardown releases every model, context and adapter handle | NOT_RUN | 0 direct · 328 reached through calls 328 tests: 328 absent | |
| REQ-INFER-004 All generation shapes share one render, sample and parse path | NOT_RUN | entropic_inference_complete | entropic_inference_complete rejects NULL handle / prompt / result absent inferredentropic_inference_complete returns serialized result absent inferredinference C ABI: exception paths + parse_params field sweep absent inferred |
| REQ-INFER-005 Every decode path honours cooperative cancellation within one token | NOT_RUN | 1 direct · 164 reached through calls 165 tests: 165 absent | |
| REQ-INFER-006 Sampler chain construction has a fixed order and default-preserving gating | NOT_RUN | 0 direct · 160 reached through calls 160 tests: 160 absent | |
| REQ-INFER-007 Named grammars are registered, validated, and resolved by a fixed precedence | NOT_RUN | 21 functionsbuild_grammar_entryentropic_grammar_deregisterentropic_grammar_getentropic_grammar_listentropic_grammar_registerentropic_grammar_register_fileentropic_grammar_validategenerate_streaminggrammar_search_pathsholds_grammarsload_bundlednormalize_grammar_keyrefuse_unresolved_batch_grammarsrefuse_unresolved_tier_grammarregister_from_fileregister_grammarresolve_grammar_keytier_grammar_unresolvedvalidatewarn_tier_grammars_stepwarn_unresolved_tier_grammars | 0 direct · 217 reached through calls 217 tests: 217 absent |
| REQ-INFER-008 Every declared grammar source reaches the sampler and exactly one wins | NOT_RUN | 20 functionsactive_tool_grammaractive_tool_grammaradd_grammar_sampleradd_tool_call_grammarapply_grammar_sourcecreatecreatedescribe_grammarfinish_generationgenerate_streaminggeneration_recordsgrammar_source_countgrammar_source_namegrammar_sources_collideis_request_grammarpatch_gemma4_required_rootrecord_generationresolve_grammar_sourceto_common_samplingtool_grammar_for | 0 direct · 237 reached through calls 237 tests: 237 absent |
| REQ-INFER-009 Tool staging drives a native render whose parse context is captured | NOT_RUN | 0 direct · 164 reached through calls 164 tests: 164 absent | |
| REQ-INFER-010 One template-first / adapter-second rule parses every raw emission | NOT_RUN | 0 direct · 150 reached through calls 150 tests: 150 absent | |
| REQ-INFER-011 Reasoning-block markers are declared once per model family | NOT_RUN | 0 direct · 151 reached through calls 151 tests: 151 absent | |
| REQ-INFER-012 Adapter registry resolves a family parser with a safe generic fallback | NOT_RUN | 15 functionsaction_envelope_to_calladapter_tableapply_action_envelope_recoverycoerce_call_string_argscoerce_string_typed_argscreate_adapteremit_argfind_close_tagopen_tag_patternparse_recovered_tool_callparse_tagged_tool_callsparse_xml_parametersrecover_action_envelope_callsregex_recovered_tool_calltruncate_at_nested_function | 0 direct · 200 reached through calls 200 tests: 200 absent |
| REQ-INFER-013 Sequential tool-call mode hard-stops at the first closed call | NOT_RUN | 0 direct · 158 reached through calls 158 tests: 158 absent | |
| REQ-INFER-015 MTP speculative decode fails loud and never silently falls back | NOT_RUN | 0 direct · 165 reached through calls 165 tests: 165 absent | |
| REQ-INFER-016 Speculative decoding is gated on compatibility and must not change the output | NOT_RUN | 0 direct · 166 reached through calls 166 tests: 166 absent | |
| REQ-INFER-017 Prompt-prefix KV reuse never serves a stale or desynchronised cache | NOT_RUN | 0 direct · 25 reached through calls 25 tests: 25 absent | |
| REQ-INFER-018 Same-prefix batch generation is gated, per-request-constrained and seq-safe | NOT_RUN | 0 direct · 5 reached through calls 5 tests: 5 absent | |
| REQ-INFER-019 Model pool dedup and VRAM residency policy govern which tier is resident | NOT_RUN | 55 functionsacquireactivate_default_tierannounce_evictionclassify_offloadconfig_admitsderive_auto_placementderive_pool_geometryderive_tier_auto_placementdevice_memory_query_countensure_modelensure_vram_budgetentropic_inference_count_tokensentropic_profile_deregisterentropic_profile_getentropic_profile_listentropic_profile_registerentropic_release_modelentropic_residency_snapshotentropic_set_residency_observerestimate_footprint_bytesestimate_vram_footprintforgetforget_sessionfree_slotgpu_offload_refusedhandle_releasehost_can_hold_warm_loadhost_memlock_limit_bytesinvalidateinvalidate_allkv_bytes_per_tokenkv_scale_for_cache_typelarge_model_tests_waivedlog_fit_recommendationlru_keymlock_refusedpartial_gpu_layers_forquery_device_free_vram_bytesread_gguf_shaperecommend_context_lengthrefuse_residencyrelease_backendrelease_modelsrequire_ready_backendresidency_admitsresidentresolve_auto_gpu_layersresolve_vram_budget_bytessession_pool_conflict_reasonset_residentslot_fortouchtry_expert_offloadtry_fewer_layerstry_smaller_ubatch | 2 direct · 353 reached through calls 355 tests: 355 absent |
| REQ-INFER-020 Tier routing, handoff rules and secondary model roles | NOT_RUN | 0 direct · 281 reached through calls 281 tests: 281 absent | |
| REQ-INFER-021 Per-tier sampler configuration applies only where the caller did not decide | NOT_RUN | 0 direct · 161 reached through calls 161 tests: 161 absent | |
| REQ-INFER-023 LoRA adapters hot-swap under a single-HOT-per-context constraint | NOT_RUN | 0 direct · 298 reached through calls 298 tests: 298 absent | |
| REQ-INFER-024 Backends declare capabilities and expose state and log-probability introspection | NOT_RUN | 0 direct · 9 reached through calls 9 tests: 9 absent | |
| REQ-INFER-025 Multimodal input is bounded, tier-gated and degrades gracefully | NOT_RUN | 0 direct · 32 reached through calls 32 tests: 32 absent | |
| REQ-INFER-026 A prompt that cannot fit the tier context is refused, never decoded | NOT_RUN | 0 direct · 94 reached through calls 94 tests: 94 absent | |
| REQ-INFER-027 Expert-tensor offload places routed experts on the host while attention and KV stay resident (EXPERIMENTAL) | NOT_RUN | 0 direct · 91 reached through calls 91 tests: 91 absent |