REQ-INFER

← Requirements

24 requirements: 24 implemented, 24 tested, 0 passing.

requirementtierimplemented bytests
REQ-INFER-001
Backend lifecycle is a three-state machine with gated generation
NOT_RUNentropic_inference_generate
entropic_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
13 functionsdo_load_active
do_load_active
do_unload
load_and_activate
promote_to_active
release_role
shutdown
shutdown
teardown_mtp_draft
unload
unload_all
~LlamaCppBackend
~ModelOrchestrator
0 direct · 328 reached through calls
328 tests: 328 absent
REQ-INFER-004
All generation shapes share one render, sample and parse path
NOT_RUNentropic_inference_completeentropic_inference_complete rejects NULL handle / prompt / result absent inferred
entropic_inference_complete returns serialized result absent inferred
inference C ABI: exception paths + parse_params field sweep absent inferred
REQ-INFER-005
Every decode path honours cooperative cancellation within one token
NOT_RUN
11 functionsdo_generate
do_generate_streaming_text_only
do_generate_text_only
entropic_inference_generate_streaming
generate
generate_after_prefill
generate_batch
generate_mtp
generate_streaming
generate_streaming
run_sampling_loop
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
3 functionscreate
create
to_common_sampling
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_entry
entropic_grammar_deregister
entropic_grammar_get
entropic_grammar_list
entropic_grammar_register
entropic_grammar_register_file
entropic_grammar_validate
generate_streaming
grammar_search_paths
holds_grammars
load_bundled
normalize_grammar_key
refuse_unresolved_batch_grammars
refuse_unresolved_tier_grammar
register_from_file
register_grammar
resolve_grammar_key
tier_grammar_unresolved
validate
warn_tier_grammars_step
warn_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_grammar
active_tool_grammar
add_grammar_sampler
add_tool_call_grammar
apply_grammar_source
create
create
describe_grammar
finish_generation
generate_streaming
generation_records
grammar_source_count
grammar_source_name
grammar_sources_collide
is_request_grammar
patch_gemma4_required_root
record_generation
resolve_grammar_source
to_common_sampling
tool_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
9 functionsmcp_tools_to_common_chat
parse_response
render_common_chat
render_prompt
render_with_tools
resolve_and_stage
set_active_tools
stage_active_tools
to_common_chat
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
11 functionsapply_adapter_parse
apply_fenced_fallbacks
calls_satisfy_schema
diagnose_empty_content
explain_empty_content
iface_parse_tool_calls
one_call_satisfies_schema
parse_model_response
try_template_parse
warn_if_content_vanished
warn_turn_diagnostics
0 direct · 150 reached through calls
150 tests: 150 absent
REQ-INFER-011
Reasoning-block markers are declared once per model family
NOT_RUN
4 functionsgenerate_streaming
strip_think_blocks
thinking_markers
thinking_markers
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_call
adapter_table
apply_action_envelope_recovery
coerce_call_string_args
coerce_string_typed_args
create_adapter
emit_arg
find_close_tag
open_tag_pattern
parse_recovered_tool_call
parse_tagged_tool_calls
parse_xml_parameters
recover_action_envelope_calls
regex_recovered_tool_call
truncate_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
4 functionsappend_sequential_stop
close_marker_for_format
effective_stop
tool_call_close_marker
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
9 functionseffective_n_draft
generate_mtp
looks_like_mtp_head
mtp_guard
mtp_head_classical_path_error
mtp_head_guard_fires
mtp_unsupported_reason
resolve_mtp_effective
try_mtp_route
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
4 functionsbuild_compat_diagnostic
check_arch_gate
check_compat
entropic_speculative_compat
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
5 functionsentropic_inference_activate
entropic_inference_deactivate
entropic_inference_destroy
entropic_inference_load
entropic_inference_unload
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
3 functionsentropic_inference_state
entropic_run_batch
plan_batch_kv
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 functionsacquire
activate_default_tier
announce_eviction
classify_offload
config_admits
derive_auto_placement
derive_pool_geometry
derive_tier_auto_placement
device_memory_query_count
ensure_model
ensure_vram_budget
entropic_inference_count_tokens
entropic_profile_deregister
entropic_profile_get
entropic_profile_list
entropic_profile_register
entropic_release_model
entropic_residency_snapshot
entropic_set_residency_observer
estimate_footprint_bytes
estimate_vram_footprint
forget
forget_session
free_slot
gpu_offload_refused
handle_release
host_can_hold_warm_load
host_memlock_limit_bytes
invalidate
invalidate_all
kv_bytes_per_token
kv_scale_for_cache_type
large_model_tests_waived
log_fit_recommendation
lru_key
mlock_refused
partial_gpu_layers_for
query_device_free_vram_bytes
read_gguf_shape
recommend_context_length
refuse_residency
release_backend
release_models
require_ready_backend
residency_admits
resident
resolve_auto_gpu_layers
resolve_vram_budget_bytes
session_pool_conflict_reason
set_resident
slot_for
touch
try_expert_offload
try_fewer_layers
try_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
17 functionsactivate_draft
activate_router
build_routing_tables
can_handoff
classify_task
clear_all_prompt_caches
clear_all_prompt_caches
ensure_loaded
ensure_secondary_roles
extract_latest_user_message
last_routing_result
loaded_models
loaded_roles
release_role
route
shutdown
shutdown
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
5 functionsapply_if_default
apply_tier_sampler_defaults
apply_tier_sampler_overrides
entropic_throughput_reset
entropic_throughput_tok_per_sec
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
15 functionsactivate
active_adapter
apply_adapter
deactivate
entropic_adapter_info
entropic_adapter_list
entropic_adapter_load
entropic_adapter_state
entropic_adapter_swap
entropic_adapter_unload
fire_swap_hook
load
preload_adapters_for_model
release_handles_for_model
swap
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
8 functionsclear_state
entropic_compute_perplexity
entropic_get_logprobs
evaluate_logprobs
info
restore_state
save_state
supports
0 direct · 9 reached through calls
9 tests: 9 absent
REQ-INFER-025
Multimodal input is bounded, tier-gated and degrades gracefully
NOT_RUN
14 functionsbilinear_resize
decode
entropic_model_has_vision
entropic_run_messages
entropic_run_messages_streaming
generate_multimodal
has_vision_capable_tier
mtmd_prefill
preprocess_buffer
preprocess_file
read_image_bytes
resize_if_needed
select_vision_tier
tier_declares_vision
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
8 functionscontext_fit_breakdown
context_fit_overflows
context_overflow_message
generate_batch
handle_terminal_finish_reasons
prefill_error
refuse_over_context
run_prefill_cached
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
11 functionsbuild_load_mparams
data
do_load_active
expert_block_pattern
expert_offload_admits
expert_offload_conflict_reason
expert_offload_load_refusal
expert_offload_patterns
load_gpu_model
model_expert_count
validate
0 direct · 91 reached through calls
91 tests: 91 absent