← Về thư mục
tests/test_auto_mode_recovery_regressions.py
- _sha · function · L19-L26 — def _sha(value: object) -> str
- _canonical · function · L29-L35 — def _canonical(value: object) -> str
- _selection · function · L38-L44 — def _selection() -> dict[str, str]
- store_root · function · L48-L56 — def store_root(tmp_path: Path)
- _start_fields · function · L59-L81 — def _start_fields( root: str, *, run_id: str = "run-1", branch_id: str | None = None, turn_id: str = "turn-1", execution_id: str = "execution-1", idempotency_key: str | None = None, owner: str = "daemon-regression", ) -> dict[str, Any]
- _candidate_fields · function · L84-L98 — def _candidate_fields( *, idempotency_key: str = "candidate:1", ) -> tuple[dict[str, Any], dict[str, Any]]
- _review_fields · function · L101-L118 — def _review_fields(evidence: dict[str, Any]) -> dict[str, Any]
- _complete_review · function · L121-L135 — def _complete_review( store: Store, *, findings: list[dict[str, Any]] | None = None, ) -> None
- _build_verified · function · L138-L162 — def _build_verified( store: Store, root: str, *, findings: list[dict[str, Any]] | None = None, ) -> dict[str, Any]
- _assert_safety_boundary · function · L165-L169 — def _assert_safety_boundary(store: Store, root: str) -> None
- test_verified_exact_replays_fail_closed_after_proof_tamper · function · L173-L191 — def test_verified_exact_replays_fail_closed_after_proof_tamper( store_root, replay_kind: str )
- test_verified_projection_rejects_finding_bound_to_another_candidate · function · L194-L214 — def test_verified_projection_rejects_finding_bound_to_another_candidate(store_root)
- test_verified_projection_rejects_review_event_order_swap · function · L218-L245 — def test_verified_projection_rejects_review_event_order_swap(store_root, ordinal: str)
- test_terminal_event_tamper_cannot_hide_verified_integrity_failure · function · L249-L274 — def test_terminal_event_tamper_cannot_hide_verified_integrity_failure( store_root, tamper: str )
- test_historical_candidate_prefix_and_fork_do_not_inherit_later_terminal · function · L277-L317 — def test_historical_candidate_prefix_and_fork_do_not_inherit_later_terminal( store_root, )
- test_fork_from_active_run_can_start_independent_child_run · function · L320-L351 — def test_fork_from_active_run_can_start_independent_child_run(store_root)
- _append_revert_checkpoint · function · L354-L387 — def _append_revert_checkpoint( store: Store, root: str, *, target_checkpoint_id: str, ) -> None
- test_same_branch_revert_before_terminal_can_start_new_continuation · function · L390-L435 — def test_same_branch_revert_before_terminal_can_start_new_continuation(store_root)
- test_same_branch_revert_hiding_started_review_abandons_old_active_run · function · L438-L481 — def test_same_branch_revert_hiding_started_review_abandons_old_active_run( store_root, )
- test_revert_hidden_candidate_and_review_cannot_authorize_a_transition · function · L484-L528 — def test_revert_hidden_candidate_and_review_cannot_authorize_a_transition( store_root, )
- test_newer_failed_review_cannot_be_rehashed_away_to_resurrect_old_pass · function · L531-L581 — def test_newer_failed_review_cannot_be_rehashed_away_to_resurrect_old_pass( store_root, )
- test_current_candidate_event_rehash_tamper_fails_read_and_replay · function · L584-L607 — def test_current_candidate_event_rehash_tamper_fails_read_and_replay(store_root)
- test_unresolved_revert_barrier_denies_new_auto_and_action_work_but_keeps_evidence · function · L610-L664 — def test_unresolved_revert_barrier_denies_new_auto_and_action_work_but_keeps_evidence( store_root, )
- _crash_mid_review · function · L679-L686 — def _crash_mid_review(store: Store, root: str) -> None
- _candidate_message_metadata · function · L689-L700 — def _candidate_message_metadata( content: str, *, turn_id: str, execution_id: str ) -> dict[str, Any]
- _add_candidate_message · function · L703-L723 — def _add_candidate_message( store: Store, *, root_frame_id: str, branch_id: str, content: str, turn_id: str, execution_id: str, created_at: int = 100, ) -> dict[str, Any]
- _commit_candidate_delivery · function · L726-L766 — def _commit_candidate_delivery( store: Store, tmp_path: Path, *, project_id: str, root_frame_id: str, turn_id: str, execution_id: str, ) -> dict[str, Any]
- _startup_recovery · function · L769-L783 — def _startup_recovery( store: Store, *, owner_instance_id: str, now_ms: int ) -> SessionRecoveryService
- _next_turn · function · L786-L800 — def _next_turn(store: Store, root: str, owner: str) -> str
- test_crash_mid_review_wedges_the_branch_without_reconciliation · function · L803-L812 — def test_crash_mid_review_wedges_the_branch_without_reconciliation(store_root)
- test_reconcile_moves_a_crashed_run_to_review_unavailable · function · L815-L838 — def test_reconcile_moves_a_crashed_run_to_review_unavailable(store_root)
- test_reconcile_closes_the_stranded_review_without_inventing_a_verdict · function · L841-L866 — def test_reconcile_closes_the_stranded_review_without_inventing_a_verdict(store_root)
- test_reconcile_preserves_every_committed_side_effect · function · L869-L905 — def test_reconcile_preserves_every_committed_side_effect(store_root)
- test_reconcile_never_touches_a_run_this_instance_owns · function · L908-L926 — def test_reconcile_never_touches_a_run_this_instance_owns(store_root)
- test_reconcile_is_idempotent_across_repeated_restarts · function · L929-L956 — def test_reconcile_is_idempotent_across_repeated_restarts(store_root)
- test_reconcile_leaves_an_already_terminal_run_alone · function · L959-L970 — def test_reconcile_leaves_an_already_terminal_run_alone(store_root)
- test_reconcile_defers_to_an_unresolved_revert_recovery_hold · function · L973-L994 — def test_reconcile_defers_to_an_unresolved_revert_recovery_hold(store_root)
- test_reconcile_startup_wires_auto_mode_recovery_at_boot · function · L997-L1020 — def test_reconcile_startup_wires_auto_mode_recovery_at_boot(store_root)
- test_reopen_settles_candidate_and_delivery_once_without_changing_bytes · function · L1023-L1094 — def test_reopen_settles_candidate_and_delivery_once_without_changing_bytes(tmp_path)
- test_reopen_settles_candidate_owned_by_prestarted_run_without_second_run · function · L1097-L1169 — def test_reopen_settles_candidate_owned_by_prestarted_run_without_second_run(tmp_path)
- test_candidate_recovery_matches_run_in_exact_project_session_and_branch · function · L1172-L1230 — def test_candidate_recovery_matches_run_in_exact_project_session_and_branch(tmp_path)
- review_status · function · L1221-L1225 — def review_status(message_id: str) -> str
- test_candidate_delivery_recovery_rolls_back_both_rows_on_publish_failure · function · L1233-L1270 — def test_candidate_delivery_recovery_rolls_back_both_rows_on_publish_failure(tmp_path)
- _crash_mid_repair · function · L1273-L1347 — def _crash_mid_repair( store: Store, root: str, tmp_path: Path, *, bind_ledger: bool ) -> None
- test_reconcile_seals_an_interrupted_repair_as_outcome_unknown · function · L1350-L1373 — def test_reconcile_seals_an_interrupted_repair_as_outcome_unknown(store_root, tmp_path)
- test_reconcile_releases_a_repair_whose_ledger_was_never_bound · function · L1376-L1399 — def test_reconcile_releases_a_repair_whose_ledger_was_never_bound(store_root, tmp_path)
- test_one_sweep_reconciles_every_dead_session_and_spares_the_live_one · function · L1402-L1434 — def test_one_sweep_reconciles_every_dead_session_and_spares_the_live_one(tmp_path)
- test_one_unreconcilable_run_does_not_deny_the_others_recovery · function · L1437-L1497 — def test_one_unreconcilable_run_does_not_deny_the_others_recovery(tmp_path)
- poisoned · function · L1482-L1487 — def poisoned(run_id, *, now): # Not in the per-run method's caught tuple, and raised before its # own handlers can see it.