Skip to content

Integration scenarios ​

Work item issue-557, testing-plan activity T2. Run on 2026-11-30 in the work item's checkout.

Every command below was run with THE_LOOP_INSTANCE, THE_LOOP_WORK_ITEM and THE_LOOP_CLI_CONFIG unset. This session runs inside a the-loop daemon, and those variables make about 46 unrelated tests fail on an untouched checkout of main too (poller status, stop-check). They are not set in CI.

Command ​

sh
cd cli && uv run python -m pytest -q tests/test_quiz_integration.py tests/test_quiz_taken_integration.py -v
text
============================== 50 passed in 1.04s ==============================

Scenarios ​

sh
the-loop scenarios --root "$PWD" --glob 'cli/tests/test_quiz*_integration.py' --format markdown
#FeatureScenarioRequirementLocation
1a tick alone answers a quiz gate, and nothing else.a ticked box re-evaluates the waiting gate without delivering a promptdocs/specs/issue-488/requirements.md#R2.6cli/tests/test_quiz_integration.py:68
2a tick alone answers a quiz gate, and nothing else.a quiz tick on a work item with no waiting gate spawns nothingdocs/specs/issue-488/design.md#C5cli/tests/test_quiz_integration.py:86
3a tick alone answers a quiz gate, and nothing else.a tick the gate could not judge is retried on the next polldocs/specs/issue-488/design.md#Error handlingcli/tests/test_quiz_integration.py:107
4a tick alone answers a quiz gate, and nothing else.the author re-ticks after an unauthorized tick was refuseddocs/specs/issue-488/requirements.md#R2.6cli/tests/test_quiz_integration.py:148
5a tick alone answers a quiz gate, and nothing else.the poller tells a re-tick from the same tick seen againdocs/specs/issue-488/requirements.md#R2.6cli/tests/test_quiz_integration.py:170
6a tick alone answers a quiz gate, and nothing else.a tick that passed the gate is not re-evaluated every cycledocs/specs/issue-488/design.md#C5cli/tests/test_quiz_integration.py:199
7a tick alone answers a quiz gate, and nothing else.the spec quiz's ticked box stays ticked after the gate passeddocs/specs/issue-488/design.md#C5cli/tests/test_quiz_integration.py:216
8a tick alone answers a quiz gate, and nothing else.a tick by an authorized user advances the spec quizdocs/specs/issue-488/requirements.md#R2.6, R3.8cli/tests/test_quiz_integration.py:248
9a tick alone answers a quiz gate, and nothing else.only the-loop's own ticked quiz comment ringsdocs/specs/issue-488/requirements.md abuse case 6cli/tests/test_quiz_integration.py:264
10a tick alone answers a quiz gate, and nothing else.a work item with no live session has no gate to ringdocs/specs/issue-488/design.md#C5cli/tests/test_quiz_integration.py:278
11a work item in flight across the rename keeps walkingA work item parked at spec-explainer continues at spec-quiz-writedocs/specs/issue-557/requirements.md#R10.3cli/tests/test_quiz_integration.py:348
12a work item in flight across the rename keeps walkingA selection frozen with explainer unticked skips the four quiz nodesdocs/specs/issue-557/requirements.md#R10.1cli/tests/test_quiz_integration.py:400
13the code quiz is announced on the pull request, with who has taken itPosting the code quiz puts the banner in the descriptiondocs/specs/issue-557/requirements.md#R8.1cli/tests/test_quiz_integration.py:524
14the code quiz is announced on the pull request, with who has taken itThe author's tick marks the author row takendocs/specs/issue-557/requirements.md#R8.6cli/tests/test_quiz_integration.py:554
15the code quiz is announced on the pull request, with who has taken itA new quiz round resets the tabledocs/specs/issue-557/requirements.md#R8.10cli/tests/test_quiz_integration.py:579
16the code quiz is announced on the pull request, with who has taken itA refused description write falls back and does not block the gatedocs/specs/issue-557/requirements.md#R9.4cli/tests/test_quiz_integration.py:604
17the code quiz is announced on the pull request, with who has taken itA banner failure of any kind leaves the gate's result alonedocs/specs/issue-557/requirements.md#R9.4cli/tests/test_quiz_integration.py:636
18the code quiz is announced on the pull request, with who has taken itA checkout with no portable record posts the quiz and writes no bannerdocs/specs/issue-557/requirements.md#R9.4cli/tests/test_quiz_integration.py:655
19the code quiz is announced on the pull request, with who has taken itA pull request whose quiz comment failed to post gets no round and no bannerdocs/specs/issue-557/requirements.md#R7.8cli/tests/test_quiz_integration.py:672
20a reviewer records that they took the code quizA reviewer who is not authorized is recorded and gates nothingdocs/specs/issue-557/requirements.md#R7cli/tests/test_quiz_taken_integration.py:195
21a reviewer records that they took the code quizA reply carrying extra text writes only the logindocs/specs/issue-557/requirements.md#Security-considerationscli/tests/test_quiz_taken_integration.py:230
22a reviewer records that they took the code quizA second reply from the same person writes nothingdocs/specs/issue-557/requirements.md#R7.6cli/tests/test_quiz_taken_integration.py:264
23a reviewer records that they took the code quizAn authorized user's reply is recorded and is not delivered to the sessiondocs/specs/issue-557/requirements.md#R7.5cli/tests/test_quiz_taken_integration.py:283
24a reviewer records that they took the code quizA reply on a pull request with no code quiz is refuseddocs/specs/issue-557/requirements.md#R7.8cli/tests/test_quiz_taken_integration.py:300
25a reviewer records that they took the code quizA reply typed on the work item instead of the pull request is refuseddocs/specs/issue-557/requirements.md#R7.8cli/tests/test_quiz_taken_integration.py:324
26a reviewer records that they took the code quizA reply on a pull request that delivers no work item does nothingdocs/specs/issue-557/requirements.md#Security-considerationscli/tests/test_quiz_taken_integration.py:342
27a reviewer records that they took the code quizA reply from a stranger leaves the work item at code-quizdocs/specs/issue-557/requirements.md#Security-considerationscli/tests/test_quiz_taken_integration.py:364
28a reviewer records that they took the code quizA webhook naming a commenter GitHub does not confirm records nothingdocs/specs/issue-557/requirements.md#Security-considerationscli/tests/test_quiz_taken_integration.py:392
29a reviewer records that they took the code quizA reply GitHub could not confirm is retried, never assumeddocs/specs/issue-557/requirements.md#Security-considerationscli/tests/test_quiz_taken_integration.py:416
30a reviewer records that they took the code quizthe-loop's own comment carrying the keyword records nothingdocs/specs/issue-557/requirements.md#R7.7cli/tests/test_quiz_taken_integration.py:450
31a reviewer records that they took the code quizA login that is not a login records nothingdocs/specs/issue-557/requirements.md#Security-considerationscli/tests/test_quiz_taken_integration.py:466
32a reviewer records that they took the code quizThe keyword anywhere but the start of a new comment is conversationdocs/specs/issue-557/requirements.md#R7.9cli/tests/test_quiz_taken_integration.py:483
33a reviewer records that they took the code quizA disabled keyword is not a keyworddocs/specs/issue-557/requirements.md#R7.10cli/tests/test_quiz_taken_integration.py:499
34the table follows the pull request's reviewersA review requested by someone who is not authorized still updates the tabledocs/specs/issue-557/requirements.md#R8.6cli/tests/test_quiz_taken_integration.py:540
35the table follows the pull request's reviewersA submitted review keeps the reviewer's row on the webhookdocs/specs/issue-557/requirements.md#R8.6cli/tests/test_quiz_taken_integration.py:562
36the table follows the pull request's reviewersA pull request event that changes no reviewer rebuilds nothingdocs/specs/issue-557/requirements.md#R8.6cli/tests/test_quiz_taken_integration.py:583
37the table follows the pull request's reviewersA reviewer change on a pull request with no code quiz writes no bannerdocs/specs/issue-557/requirements.md#R8.11cli/tests/test_quiz_taken_integration.py:598
38the table follows the pull request's reviewersA failing banner refresh leaves the event's routing unchangeddocs/specs/issue-557/requirements.md#R9.4cli/tests/test_quiz_taken_integration.py:616
39a reviewer records that they took the code quizThe description edit a reply causes is not delivered to the sessiondocs/specs/issue-557/requirements.md#Non-functional-requirementscli/tests/test_quiz_taken_integration.py:635
40a reviewer records that they took the code quizThe poller hands on a stranger's quiz-taken reply as a body-less signaldocs/specs/issue-557/requirements.md#R7.3cli/tests/test_quiz_taken_integration.py:725
41a reviewer records that they took the code quizA reply posted before the poller first saw the pull request is still handed ondocs/specs/issue-557/requirements.md#R8.12cli/tests/test_quiz_taken_integration.py:768
42a reviewer records that they took the code quizA quiz-taken comment on a new work item does not suppress its first startdocs/specs/issue-557/requirements.md#R7.5cli/tests/test_quiz_taken_integration.py:791
43a reviewer records that they took the code quizA stranger's ordinary comment is dropped exactly as beforedocs/specs/issue-557/requirements.md#R7.9cli/tests/test_quiz_taken_integration.py:817
44a reviewer records that they took the code quizthe-loop's own comment carrying the keyword is not a signal on the pollerdocs/specs/issue-557/requirements.md#R7.7cli/tests/test_quiz_taken_integration.py:845
45the table follows the pull request's reviewersA reviewer request and its removal update the table on the pollerdocs/specs/issue-557/requirements.md#R8.12cli/tests/test_quiz_taken_integration.py:870
46the table follows the pull request's reviewersThe polled pull request carries who is asked to review and who revieweddocs/specs/issue-557/requirements.md#R8.12cli/tests/test_quiz_taken_integration.py:896

Released under the MIT License.