← Về thư mục
tests/test_compaction_ledger.py
- _Hub · class · L25-L33 — class _Hub
- init · method · L26-L27 — def init(self) -> None
- broadcast · method · L29-L30 — def broadcast(self, root_frame_id, event)
- emitter · method · L32-L33 — def emitter(self, root_frame_id)
- _runner · function · L36-L48 — def _runner(tmp_path)
- _append_code_observation · function · L51-L70 — def _append_code_observation( ledger: RuntimeActionLedger, index: int, fill: str = "" ) -> None
- _code_messages · function · L73-L81 — def _code_messages(index: int, fill: str = "") -> list[dict]
- _handoff_note · function · L84-L91 — def _handoff_note(text: str) -> dict: # The restored note reproduces what compact() built in memory, framing # line included; the archive payload carries only the body.
- _legacy_reduce_action_groups · function · L94-L144 — def _legacy_reduce_action_groups( groups: Sequence[Mapping[str, Any]], ) -> list[dict[str, Any]]
- _nine_title_handoff · function · L147-L148 — def _nine_title_handoff() -> str
- test_restore_keeps_head_handoff_and_uncovered_groups · function · L151-L174 — def test_restore_keeps_head_handoff_and_uncovered_groups(tmp_path)
- test_second_compaction_replaces_the_earlier_note · function · L177-L200 — def test_second_compaction_replaces_the_earlier_note(tmp_path)
- test_compaction_group_is_structurally_compatible_with_legacy_reduce · function · L203-L230 — def test_compaction_group_is_structurally_compatible_with_legacy_reduce(tmp_path)
- test_restore_survives_store_close_and_reopen · function · L233-L248 — def test_restore_survives_store_close_and_reopen(tmp_path)
- test_covered_through_maps_middle_count_onto_last_fully_covered_group · function · L251-L267 — def test_covered_through_maps_middle_count_onto_last_fully_covered_group(tmp_path)
- test_web_compaction_survives_seed_messages_rebuild · function · L270-L338 — def test_web_compaction_survives_seed_messages_rebuild(monkeypatch, tmp_path)