← Về thư mục
tests/test_completion_gate.py
- _cfg · function · L20-L28 — def _cfg(stage4=True, stage3=True, stage2=False)
- _llm · function · L31-L38 — def _llm(model="reviewer")
- _pass_chat · function · L41-L45 — def _pass_chat(messages, cfg, **kwargs)
- _store · function · L48-L76 — def _store(tmp_path)
- _services · function · L79-L95 — def _services(store, cfg, chat=_pass_chat)
- _gate · function · L98-L112 — def _gate(store, cfg, events)
- _finalize · function · L115-L146 — def _finalize(service, result, *, delivered=True, emit=None)
- test_candidate_event_precedes_verified_terminal · function · L149-L179 — def test_candidate_event_precedes_verified_terminal(tmp_path)
- test_verified_is_unreachable_without_durable_review_storage · function · L182-L209 — def test_verified_is_unreachable_without_durable_review_storage(tmp_path)
- test_lost_terminal_response_replays_one_atomic_promotion · function · L212-L237 — def test_lost_terminal_response_replays_one_atomic_promotion(tmp_path)
- _lost_once · function · L218-L224 — def _lost_once(args, *kwargs)
- test_stage2_off_lost_promotion_response_replays_the_exact_message · function · L240-L265 — def test_stage2_off_lost_promotion_response_replays_the_exact_message(tmp_path)
- _lost_once · function · L246-L252 — def _lost_once(args, *kwargs)
- test_stage2_off_never_splits_a_stage1_delivery_across_transactions · function · L268-L313 — def test_stage2_off_never_splits_a_stage1_delivery_across_transactions(tmp_path)
- _must_not_run · function · L291-L292 — def _must_not_run(args, *kwargs)
- test_terminal_failure_keeps_the_exact_message_candidate · function · L316-L338 — def test_terminal_failure_keeps_the_exact_message_candidate(tmp_path)
- _broken · function · L321-L324 — def _broken(args, *kwargs)
- test_emit_failure_after_terminal_commit_does_not_undo_finalization · function · L341-L354 — def test_emit_failure_after_terminal_commit_does_not_undo_finalization(tmp_path)
- _broken_emit · function · L345-L346 — def _broken_emit(_event)
- test_post_review_cancel_closes_review_then_seals_cancelled · function · L357-L387 — def test_post_review_cancel_closes_review_then_seals_cancelled(tmp_path)
- test_reviewer_exception_closes_stage4_audit_without_shadow_stamp · function · L390-L428 — def test_reviewer_exception_closes_stage4_audit_without_shadow_stamp(tmp_path)
- _raises · function · L394-L395 — def _raises(args, *kwargs)
- test_issues_are_completed_with_issues_not_verified · function · L431-L448 — def test_issues_are_completed_with_issues_not_verified(tmp_path)
- test_flag_off_does_not_gate · function · L451-L465 — def test_flag_off_does_not_gate(tmp_path)
- test_terminal_mapping_refuses_to_call_incomplete_verified · function · L468-L478 — def test_terminal_mapping_refuses_to_call_incomplete_verified()
- test_the_answer_row_is_written_provisional_before_the_review · function · L481-L505 — def test_the_answer_row_is_written_provisional_before_the_review(tmp_path)