Orchestrata Ultimate › Tests › Reference › claude › test_unshipped_guard_session_scope
Tests reference — tests/claude/test_unshipped_guard_session_scope.py
Module of tests/claude, split out because the directory page would be too large.
Prose pending.
tests/claude/test_unshipped_guard_session_scope.py
source · 15 tests · 311 lines
Session scoping for
claude/hooks/unshipped_guard.py(2026-10-21).
| Kind | Name | Line | Description |
|---|---|---|---|
| function | test_session_started_reads_the_first_timestamp_after_the_headers |
127 | |
| function | test_session_started_is_none_without_a_transcript_path |
136 | |
| function | test_session_started_is_none_for_an_unreadable_transcript |
140 | |
| function | test_session_started_skips_garbage_and_unparseable_stamps |
145 | |
| function | test_session_started_gives_up_after_the_transcript_head |
161 | A timestamp past the read cap is never reached — None, not a scan of the |
| function | test_session_started_is_none_when_no_entry_has_a_timestamp |
171 | |
| function | test_a_commit_made_this_session_moves_the_branch |
180 | |
| function | test_commits_from_before_the_session_do_not |
188 | |
| function | test_a_fast_forward_over_old_commits_counts_as_this_session |
194 | Merging yesterday's branch today is this session's doing: the commits are |
| function | test_without_a_reflog_committer_dates_decide |
214 | A clone made with reflogs off never gets a reflog file. Turning the |
| function | test_another_sessions_unpushed_commits_do_not_block |
247 | The 2026-10-21 incident: commits left by an earlier session, a new session |
| function | test_commits_made_this_session_still_block |
265 | |
| function | test_an_unreadable_transcript_falls_back_to_checking_everything |
284 | Unknown session start must not mean silence — the guard's whole risk is a |
| function | test_a_non_object_payload_exits_zero |
302 | |
| function | test_the_plugin_copy_is_byte_identical |
308 | Two copies ship this hook (~/.claude via install-claude-config.sh, and the |