← Về thư mục
tests/test_compaction_wave4_review.py
- _handoff · function · L50-L51 — def _handoff(token: str = "done") -> str
- _partial_handoff · function · L54-L55 — def _partial_handoff() -> str
- _cfg · function · L58-L64 — def _cfg() -> SimpleNamespace
- _policy · function · L67-L70 — def _policy(**kwargs) -> CompactionPolicy
- _big_state · function · L73-L74 — def _big_state() -> RunState
- _append_code_observation · function · L77-L89 — def _append_code_observation(ledger: RuntimeActionLedger, index: int) -> None
- _code_messages · function · L92-L96 — def _code_messages(index: int) -> list[dict]
- test_rejected_compaction_writes_no_durable_record · function · L102-L117 — def test_rejected_compaction_writes_no_durable_record(monkeypatch)
- not_smaller · function · L105-L108 — def not_smaller(messages, cfg, **kwargs): # compact() hands its archive payload to the sink before returning.
- test_adopted_compaction_writes_the_record_once · function · L120-L133 — def test_adopted_compaction_writes_the_record_once(monkeypatch)
- smaller · function · L123-L125 — def smaller(messages, cfg, **kwargs)
- test_record_failure_means_the_compaction_is_not_adopted · function · L136-L152 — def test_record_failure_means_the_compaction_is_not_adopted(monkeypatch)
- smaller · function · L137-L139 — def smaller(messages, cfg, **kwargs)
- refuse · function · L141-L142 — def refuse(_payload)
- test_fork_child_tail_survives_a_compaction_over_the_parent_prefix · function · L158-L200 — def test_fork_child_tail_survives_a_compaction_over_the_parent_prefix(tmp_path)
- test_misaligned_middle_covers_nothing_rather_than_the_tail · function · L203-L225 — def test_misaligned_middle_covers_nothing_rather_than_the_tail(tmp_path)
- test_compaction_group_without_an_event_keeps_the_previous_note · function · L231-L256 — def test_compaction_group_without_an_event_keeps_the_previous_note(tmp_path)
- _capability_override · function · L263-L265 — def _capability_override()
- test_summary_max_tokens_is_clamped_to_the_model_cap · function · L268-L292 — def test_summary_max_tokens_is_clamped_to_the_model_cap( monkeypatch, tmp_path, _capability_override ): # A catalogue provider with an exact-model override under the 8192 floor, # the documented mechanism for a self-hosted endpoint's output cap.
- fake_chat · function · L280-L282 — def fake_chat(messages, llm_cfg, **kwargs)
- test_truncation_on_every_wire_raises_instead_of_padding · function · L303-L319 — def test_truncation_on_every_wire_raises_instead_of_padding(monkeypatch, reply)
- fake_chat · function · L306-L308 — def fake_chat(messages, llm_cfg, **kwargs)
- test_truncated_chunk_retries_once_with_double_budget · function · L322-L340 — def test_truncated_chunk_retries_once_with_double_budget(monkeypatch)
- fake_chat · function · L325-L329 — def fake_chat(messages, llm_cfg, **kwargs)
- test_zero_context_budget_falls_back_to_the_config_window · function · L346-L357 — def test_zero_context_budget_falls_back_to_the_config_window(monkeypatch)
- test_compact_treats_zero_budget_as_unknown · function · L360-L375 — def test_compact_treats_zero_budget_as_unknown(monkeypatch)
- fake_chat · function · L363-L365 — def fake_chat(messages, llm_cfg, **kwargs)
- test_poisoned_workspace_context_dir_costs_only_the_kernel_copy · function · L381-L399 — def test_poisoned_workspace_context_dir_costs_only_the_kernel_copy(tmp_path)
- test_policy_drops_the_workspace_after_an_externalize_failure · function · L402-L421 — def test_policy_drops_the_workspace_after_an_externalize_failure(monkeypatch, tmp_path)
- failing_externalize · function · L407-L408 — def failing_externalize(messages, _args, *_kwargs)
- record · function · L410-L412 — def record(messages, cfg, **kwargs)
- test_artifact_path_also_writes_the_kernel_readable_copy · function · L424-L457 — def test_artifact_path_also_writes_the_kernel_readable_copy(tmp_path)
- test_a_planted_file_at_the_digest_path_is_not_endorsed · function · L460-L497 — def test_a_planted_file_at_the_digest_path_is_not_endorsed(tmp_path)
- test_chunk_budget_leaves_room_for_the_previous_handoff · function · L500-L535 — def test_chunk_budget_leaves_room_for_the_previous_handoff(monkeypatch)
- fake_chat · function · L527-L529 — def fake_chat(chat_messages, llm_cfg, **kwargs)
- test_reopened_breaker_gets_a_fresh_failure_budget · function · L541-L564 — def test_reopened_breaker_gets_a_fresh_failure_budget(monkeypatch)
- boom · function · L544-L546 — def boom(messages, cfg, **kwargs)
- test_an_unknown_output_cap_is_bounded_by_the_window · function · L567-L599 — def test_an_unknown_output_cap_is_bounded_by_the_window(monkeypatch, tmp_path)
- fake_chat · function · L583-L585 — def fake_chat(messages, llm_cfg, **kwargs)
- test_a_truncated_summary_with_complete_headings_is_retried_once · function · L602-L629 — def test_a_truncated_summary_with_complete_headings_is_retried_once( monkeypatch, tmp_path )
- fake_chat · function · L614-L616 — def fake_chat(messages, llm_cfg, **kwargs)
- test_a_live_only_message_inside_the_middle_covers_nothing · function · L632-L664 — def test_a_live_only_message_inside_the_middle_covers_nothing(tmp_path)