← Về thư mục
tests/test_structured_finalize.py
- _arguments · function · L41-L52 — def _arguments(**overrides)
- _prose_arguments · function · L55-L68 — def _prose_arguments(**overrides)
- _call · function · L71-L88 — def _call( arguments=None, *, call_id="final-1", name="finalize_response", parse_error=None, )
- _NeverKernel · class · L91-L97 — class _NeverKernel
- execute · method · L94-L97 — def execute(self, args, *kwargs)
- _NeverDispatcher · class · L100-L106 — class _NeverDispatcher
- call · method · L103-L106 — def call(self, args, *kwargs)
- _local_executor · function · L109-L117 — def _local_executor()
- _web_executor · function · L120-L138 — def _web_executor(*, cancelled=lambda: False, plan_mode=False)
- unexpected · function · L124-L127 — def unexpected(args, *kwargs)
- test_finalize_spec_is_closed_host_strict_and_outside_control_registry · function · L141-L191 — def test_finalize_spec_is_closed_host_strict_and_outside_control_registry()
- test_host_validation_rejects_missing_unknown_and_semantically_bad_fields · function · L194-L206 — def test_host_validation_rejects_missing_unknown_and_semantically_bad_fields()
- test_finalize_accepts_a_declared_task_status_and_rejects_garbage · function · L209-L230 — def test_finalize_accepts_a_declared_task_status_and_rejects_garbage()
- test_router_reserves_finalization_only_for_one_standalone_native_call · function · L233-L248 — def test_router_reserves_finalization_only_for_one_standalone_native_call()
- test_cli_executor_closes_provider_call_before_returning_completion_record · function · L251-L275 — def test_cli_executor_closes_provider_call_before_returning_completion_record()
- test_invalid_finalize_is_a_canonical_error_result_and_does_not_complete · function · L278-L294 — def test_invalid_finalize_is_a_canonical_error_result_and_does_not_complete()
- test_mixed_batch_treats_finalize_as_nonterminal_and_never_completes · function · L297-L327 — def test_mixed_batch_treats_finalize_as_nonterminal_and_never_completes()
- Dispatcher · class · L301-L306 — class Dispatcher
- call · method · L304-L306 — def call(self, method, args)
- test_engine_records_assistant_then_tool_result_before_submitted_terminal · function · L330-L351 — def test_engine_records_assistant_then_tool_result_before_submitted_terminal()
- Model · class · L334-L337 — class Model
- complete · method · L335-L337 — def complete(self, messages, on_delta)
- test_web_executor_accepts_finalize_without_dispatcher_kernel_or_pending_work · function · L354-L362 — def test_web_executor_accepts_finalize_without_dispatcher_kernel_or_pending_work()
- test_web_cancel_and_plan_close_finalize_call_without_completion · function · L365-L381 — def test_web_cancel_and_plan_close_finalize_call_without_completion()
- test_finalize_ledger_roundtrip_and_timeline_projection · function · L384-L415 — def test_finalize_ledger_roundtrip_and_timeline_projection(tmp_path)
- test_reconciliation_rejects_execution_claims_without_ledger_evidence · function · L418-L442 — def test_reconciliation_rejects_execution_claims_without_ledger_evidence()
- test_zero_execution_finalize_with_claims_is_refused_but_repairable · function · L445-L463 — def test_zero_execution_finalize_with_claims_is_refused_but_repairable()
- test_cli_finalize_accepts_execution_claims_after_a_real_cell_ran · function · L466-L493 — def test_cli_finalize_accepts_execution_claims_after_a_real_cell_ran()
- Kernel · class · L467-L472 — class Kernel
- execute · method · L470-L472 — def execute(self, code, origin="agent")
- Dispatcher · class · L474-L475 — class Dispatcher
- test_safety_refused_cell_never_counts_as_execution_evidence · function · L496-L516 — def test_safety_refused_cell_never_counts_as_execution_evidence()
- test_web_finalize_accepts_execution_claims_after_a_real_cell_ran · function · L519-L544 — def test_web_finalize_accepts_execution_claims_after_a_real_cell_ran()
- Dispatcher · class · L523-L524 — class Dispatcher
- test_web_refused_cell_result_never_counts_as_execution_evidence · function · L547-L583 — def test_web_refused_cell_result_never_counts_as_execution_evidence()
- Dispatcher · class · L559-L560 — class Dispatcher
- test_refused_native_batch_never_counts_as_execution_evidence · function · L586-L622 — def test_refused_native_batch_never_counts_as_execution_evidence()
- NeverInvokedDispatcher · class · L603-L607 — class NeverInvokedDispatcher
- execute_host_call · method · L606-L607 — def execute_host_call(self, args, *kwargs): # pragma: no cover
- test_cli_r_unavailable_soft_error_never_counts_as_execution_evidence · function · L625-L639 — def test_cli_r_unavailable_soft_error_never_counts_as_execution_evidence()
- test_call_reaches_dispatcher_gates_evidence_counting · function · L642-L663 — def test_call_reaches_dispatcher_gates_evidence_counting()
- test_unknown_native_tool_name_never_counts_as_execution_evidence · function · L666-L699 — def test_unknown_native_tool_name_never_counts_as_execution_evidence()
- NeverInvokedDispatcher · class · L680-L684 — class NeverInvokedDispatcher
- call · method · L683-L684 — def call(self, a, *k): # pragma: no cover - unknown tool early-exits
- test_legacy_unknown_or_invalid_tool_calls_never_count_as_evidence · function · L702-L717 — def test_legacy_unknown_or_invalid_tool_calls_never_count_as_evidence()
- _native · function · L732-L741 — def _native(name, arguments, *, call_id="t-1")
- _ScriptedHost · class · L744-L757 — class _ScriptedHost
- init · method · L749-L751 — def init(self, result)
- call · method · L753-L757 — def call(self, method, args)
- _local_with · function · L760-L766 — def _local_with(dispatcher)
- _web_with · function · L769-L780 — def _web_with(dispatcher)
- _assert_claim_refused · function · L783-L790 — def _assert_claim_refused(executor, state)
- test_permission_denied_native_call_never_counts_as_execution_evidence · function · L794-L811 — def test_permission_denied_native_call_never_counts_as_execution_evidence( make_executor, )
- test_raised_native_dispatch_never_counts_as_execution_evidence · function · L815-L827 — def test_raised_native_dispatch_never_counts_as_execution_evidence(make_executor)
- test_precheck_refused_native_call_never_counts_as_execution_evidence · function · L831-L848 — def test_precheck_refused_native_call_never_counts_as_execution_evidence( make_executor, )
- test_only_the_succeeded_calls_of_a_mixed_native_batch_count · function · L852-L874 — def test_only_the_succeeded_calls_of_a_mixed_native_batch_count(make_executor)
- PerMethodHost · class · L853-L858 — class PerMethodHost(_ScriptedHost)
- call · method · L854-L858 — def call(self, method, args)
- test_legacy_permission_denied_tool_call_never_counts_as_evidence · function · L878-L905 — def test_legacy_permission_denied_tool_call_never_counts_as_evidence(make_executor)
- test_cli_run_denied_native_tool_cannot_back_a_wrote_claim · function · L908-L985 — def test_cli_run_denied_native_tool_cannot_back_a_wrote_claim(monkeypatch, tmp_path)
- chat · function · L948-L973 — def chat(messages, cfg, **kwargs)