Skip to content

Verification (issue-538) ​

Run on 2026-11-18 on branch the-loop/issue-538-pr-session-notices at 916c5ece. No network: FakeTmux stands in for tmux, and GitHub is never reached.

Environment note. This session runs inside a live the-loop daemon, which exports THE_LOOP_CLI_CONFIG, THE_LOOP_INSTANCE and THE_LOOP_WORK_ITEM. Every run below unsets them, as CI's environment does. With them set, test_ask_reply_integration.py::test_the_ask_verb_warns_when_the_bus_names_no_channel reads the live config and fails, and it passes once they are unset.

Verification results ​

See the table in testing-plan.md. Raw output follows.

V1 — new tests ​

text
$ cd cli && uv run python -m pytest -q tests/test_prnotice.py tests/test_pr_notices_integration.py tests/test_outer_reevaluation_integration.py
.......................................                                  [100%]
39 passed in 9.67s

V2 — neighbouring suites ​

text
$ cd cli && uv run python -m pytest -q tests/test_webhook_routing_integration.py tests/test_graph_multirepo_integration.py tests/test_graph_loops.py
......................                                                   [100%]
94 passed in 23.90s

V3 — full suite ​

text
$ make test
FAILED tests/test_session_secrets_integration.py::test_issue_485_a_spawned_server_and_its_pane_hold_no_secret
1 failed, 6952 passed, 4 warnings in 242.81s (0:04:02)

$ cd cli && uv run python -m pytest -q tests/test_session_secrets_integration.py
1 passed

The one failure spawns a real tmux server and checks its environment. It passes on rerun and is unrelated to this diff, which does not touch session secrets or the spawn environment.

V4 — lint, format, types ​

text
$ make lint
All checks passed!
Summary: 0 error(s)
$ make format-check
522 files already formatted
$ make typecheck
0 errors, 0 warnings, 0 informations

V5 — scenarios ​

#FeatureScenarioRequirementLocation
1pull-request session noticesa pull request with a session of its own mergesdocs/specs/issue-538/requirements.md R1.5, R1.9, abuse case 1cli/tests/test_pr_notices_integration.py:101
2pull-request session noticesthe same merge arrives twice under two delivery idsdocs/specs/issue-538/requirements.md abuse case 4cli/tests/test_pr_notices_integration.py:128
3pull-request session noticesa pull request with a session of its own is closed unmergeddocs/specs/issue-538/requirements.md R1.6, R2.6cli/tests/test_pr_notices_integration.py:150
4pull-request session noticesthe merged pull request's events always reached the work itemdocs/specs/issue-538/requirements.md R1.5 (non-functional:cli/tests/test_pr_notices_integration.py:174
5pull-request session noticesthe work item's session is pauseddocs/specs/issue-538/requirements.md R3.1, R3.4cli/tests/test_pr_notices_integration.py:196
6pull-request session noticesthe work item's record has no tmux sessiondocs/specs/issue-538/requirements.md R3.2cli/tests/test_pr_notices_integration.py:220
7pull-request session noticespasting the notice failsdocs/specs/issue-538/requirements.md R3.3cli/tests/test_pr_notices_integration.py:243
8pull-request session noticesa pull request nobody linked to the work item closesdocs/specs/issue-538/requirements.md abuse case 3cli/tests/test_pr_notices_integration.py:268
9pull-request session noticesa cross-repository pull request gets a session of its owndocs/specs/issue-538/requirements.md R1.1, R1.9cli/tests/test_pr_notices_integration.py:353
10pull-request session noticesno checkout, so the work item's session takes the pull request's eventdocs/specs/issue-538/requirements.md R1.2, R1.4, R1.9cli/tests/test_pr_notices_integration.py:379
11pull-request session noticesspawning the pull request's session failsdocs/specs/issue-538/requirements.md R1.3, R1.4cli/tests/test_pr_notices_integration.py:403
12pull-request session noticesthe pull request's session died and is respawneddocs/specs/issue-538/requirements.md R1.8cli/tests/test_pr_notices_integration.py:441
13pull-request session noticesthe pull request's dead session cannot be respawneddocs/specs/issue-538/requirements.md R1.8cli/tests/test_pr_notices_integration.py:462
14pull-request session noticesthe work item's own session is respawneddocs/specs/issue-538/requirements.md R1.8cli/tests/test_pr_notices_integration.py:483
15pull-request session noticesthe pull request's review approves and its inner loop completesdocs/specs/issue-538/requirements.md R1.5, R2.2cli/tests/test_pr_notices_integration.py:544
16pull-request session noticesan event leaves the pull request's inner loop escalateddocs/specs/issue-538/requirements.md R1.7cli/tests/test_pr_notices_integration.py:576
17pull-request session noticesthe outer gate is re-evaluated when the last inner loop finishesdocs/specs/issue-538/requirements.md R2.1, R2.4cli/tests/test_outer_reevaluation_integration.py:106
18pull-request session noticesthe re-evaluation waits again while another inner loop runsdocs/specs/issue-538/requirements.md R2.5cli/tests/test_outer_reevaluation_integration.py:134
19pull-request session noticesno previous evaluation waited, so nothing is re-rundocs/specs/issue-538/requirements.md R2.3, R4.1cli/tests/test_outer_reevaluation_integration.py:157
20pull-request session noticesparked on a node that does not wait on inner loopsdocs/specs/issue-538/requirements.md R2.3cli/tests/test_outer_reevaluation_integration.py:178
21pull-request session noticesa fault in the re-evaluation does not escapedocs/specs/issue-538/requirements.md R3.5cli/tests/test_outer_reevaluation_integration.py:197

Released under the MIT License.