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 -vtext
============================== 50 passed in 1.04s ==============================Scenarios
sh
the-loop scenarios --root "$PWD" --glob 'cli/tests/test_quiz*_integration.py' --format markdown| # | Feature | Scenario | Requirement | Location |
|---|---|---|---|---|
| 1 | a tick alone answers a quiz gate, and nothing else. | a ticked box re-evaluates the waiting gate without delivering a prompt | docs/specs/issue-488/requirements.md#R2.6 | cli/tests/test_quiz_integration.py:68 |
| 2 | a tick alone answers a quiz gate, and nothing else. | a quiz tick on a work item with no waiting gate spawns nothing | docs/specs/issue-488/design.md#C5 | cli/tests/test_quiz_integration.py:86 |
| 3 | a tick alone answers a quiz gate, and nothing else. | a tick the gate could not judge is retried on the next poll | docs/specs/issue-488/design.md#Error handling | cli/tests/test_quiz_integration.py:107 |
| 4 | a tick alone answers a quiz gate, and nothing else. | the author re-ticks after an unauthorized tick was refused | docs/specs/issue-488/requirements.md#R2.6 | cli/tests/test_quiz_integration.py:148 |
| 5 | a tick alone answers a quiz gate, and nothing else. | the poller tells a re-tick from the same tick seen again | docs/specs/issue-488/requirements.md#R2.6 | cli/tests/test_quiz_integration.py:170 |
| 6 | a tick alone answers a quiz gate, and nothing else. | a tick that passed the gate is not re-evaluated every cycle | docs/specs/issue-488/design.md#C5 | cli/tests/test_quiz_integration.py:199 |
| 7 | a tick alone answers a quiz gate, and nothing else. | the spec quiz's ticked box stays ticked after the gate passed | docs/specs/issue-488/design.md#C5 | cli/tests/test_quiz_integration.py:216 |
| 8 | a tick alone answers a quiz gate, and nothing else. | a tick by an authorized user advances the spec quiz | docs/specs/issue-488/requirements.md#R2.6, R3.8 | cli/tests/test_quiz_integration.py:248 |
| 9 | a tick alone answers a quiz gate, and nothing else. | only the-loop's own ticked quiz comment rings | docs/specs/issue-488/requirements.md abuse case 6 | cli/tests/test_quiz_integration.py:264 |
| 10 | a tick alone answers a quiz gate, and nothing else. | a work item with no live session has no gate to ring | docs/specs/issue-488/design.md#C5 | cli/tests/test_quiz_integration.py:278 |
| 11 | a work item in flight across the rename keeps walking | A work item parked at spec-explainer continues at spec-quiz-write | docs/specs/issue-557/requirements.md#R10.3 | cli/tests/test_quiz_integration.py:348 |
| 12 | a work item in flight across the rename keeps walking | A selection frozen with explainer unticked skips the four quiz nodes | docs/specs/issue-557/requirements.md#R10.1 | cli/tests/test_quiz_integration.py:400 |
| 13 | the code quiz is announced on the pull request, with who has taken it | Posting the code quiz puts the banner in the description | docs/specs/issue-557/requirements.md#R8.1 | cli/tests/test_quiz_integration.py:524 |
| 14 | the code quiz is announced on the pull request, with who has taken it | The author's tick marks the author row taken | docs/specs/issue-557/requirements.md#R8.6 | cli/tests/test_quiz_integration.py:554 |
| 15 | the code quiz is announced on the pull request, with who has taken it | A new quiz round resets the table | docs/specs/issue-557/requirements.md#R8.10 | cli/tests/test_quiz_integration.py:579 |
| 16 | the code quiz is announced on the pull request, with who has taken it | A refused description write falls back and does not block the gate | docs/specs/issue-557/requirements.md#R9.4 | cli/tests/test_quiz_integration.py:604 |
| 17 | the code quiz is announced on the pull request, with who has taken it | A banner failure of any kind leaves the gate's result alone | docs/specs/issue-557/requirements.md#R9.4 | cli/tests/test_quiz_integration.py:636 |
| 18 | the code quiz is announced on the pull request, with who has taken it | A checkout with no portable record posts the quiz and writes no banner | docs/specs/issue-557/requirements.md#R9.4 | cli/tests/test_quiz_integration.py:655 |
| 19 | the code quiz is announced on the pull request, with who has taken it | A pull request whose quiz comment failed to post gets no round and no banner | docs/specs/issue-557/requirements.md#R7.8 | cli/tests/test_quiz_integration.py:672 |
| 20 | a reviewer records that they took the code quiz | A reviewer who is not authorized is recorded and gates nothing | docs/specs/issue-557/requirements.md#R7 | cli/tests/test_quiz_taken_integration.py:195 |
| 21 | a reviewer records that they took the code quiz | A reply carrying extra text writes only the login | docs/specs/issue-557/requirements.md#Security-considerations | cli/tests/test_quiz_taken_integration.py:230 |
| 22 | a reviewer records that they took the code quiz | A second reply from the same person writes nothing | docs/specs/issue-557/requirements.md#R7.6 | cli/tests/test_quiz_taken_integration.py:264 |
| 23 | a reviewer records that they took the code quiz | An authorized user's reply is recorded and is not delivered to the session | docs/specs/issue-557/requirements.md#R7.5 | cli/tests/test_quiz_taken_integration.py:283 |
| 24 | a reviewer records that they took the code quiz | A reply on a pull request with no code quiz is refused | docs/specs/issue-557/requirements.md#R7.8 | cli/tests/test_quiz_taken_integration.py:300 |
| 25 | a reviewer records that they took the code quiz | A reply typed on the work item instead of the pull request is refused | docs/specs/issue-557/requirements.md#R7.8 | cli/tests/test_quiz_taken_integration.py:324 |
| 26 | a reviewer records that they took the code quiz | A reply on a pull request that delivers no work item does nothing | docs/specs/issue-557/requirements.md#Security-considerations | cli/tests/test_quiz_taken_integration.py:342 |
| 27 | a reviewer records that they took the code quiz | A reply from a stranger leaves the work item at code-quiz | docs/specs/issue-557/requirements.md#Security-considerations | cli/tests/test_quiz_taken_integration.py:364 |
| 28 | a reviewer records that they took the code quiz | A webhook naming a commenter GitHub does not confirm records nothing | docs/specs/issue-557/requirements.md#Security-considerations | cli/tests/test_quiz_taken_integration.py:392 |
| 29 | a reviewer records that they took the code quiz | A reply GitHub could not confirm is retried, never assumed | docs/specs/issue-557/requirements.md#Security-considerations | cli/tests/test_quiz_taken_integration.py:416 |
| 30 | a reviewer records that they took the code quiz | the-loop's own comment carrying the keyword records nothing | docs/specs/issue-557/requirements.md#R7.7 | cli/tests/test_quiz_taken_integration.py:450 |
| 31 | a reviewer records that they took the code quiz | A login that is not a login records nothing | docs/specs/issue-557/requirements.md#Security-considerations | cli/tests/test_quiz_taken_integration.py:466 |
| 32 | a reviewer records that they took the code quiz | The keyword anywhere but the start of a new comment is conversation | docs/specs/issue-557/requirements.md#R7.9 | cli/tests/test_quiz_taken_integration.py:483 |
| 33 | a reviewer records that they took the code quiz | A disabled keyword is not a keyword | docs/specs/issue-557/requirements.md#R7.10 | cli/tests/test_quiz_taken_integration.py:499 |
| 34 | the table follows the pull request's reviewers | A review requested by someone who is not authorized still updates the table | docs/specs/issue-557/requirements.md#R8.6 | cli/tests/test_quiz_taken_integration.py:540 |
| 35 | the table follows the pull request's reviewers | A submitted review keeps the reviewer's row on the webhook | docs/specs/issue-557/requirements.md#R8.6 | cli/tests/test_quiz_taken_integration.py:562 |
| 36 | the table follows the pull request's reviewers | A pull request event that changes no reviewer rebuilds nothing | docs/specs/issue-557/requirements.md#R8.6 | cli/tests/test_quiz_taken_integration.py:583 |
| 37 | the table follows the pull request's reviewers | A reviewer change on a pull request with no code quiz writes no banner | docs/specs/issue-557/requirements.md#R8.11 | cli/tests/test_quiz_taken_integration.py:598 |
| 38 | the table follows the pull request's reviewers | A failing banner refresh leaves the event's routing unchanged | docs/specs/issue-557/requirements.md#R9.4 | cli/tests/test_quiz_taken_integration.py:616 |
| 39 | a reviewer records that they took the code quiz | The description edit a reply causes is not delivered to the session | docs/specs/issue-557/requirements.md#Non-functional-requirements | cli/tests/test_quiz_taken_integration.py:635 |
| 40 | a reviewer records that they took the code quiz | The poller hands on a stranger's quiz-taken reply as a body-less signal | docs/specs/issue-557/requirements.md#R7.3 | cli/tests/test_quiz_taken_integration.py:725 |
| 41 | a reviewer records that they took the code quiz | A reply posted before the poller first saw the pull request is still handed on | docs/specs/issue-557/requirements.md#R8.12 | cli/tests/test_quiz_taken_integration.py:768 |
| 42 | a reviewer records that they took the code quiz | A quiz-taken comment on a new work item does not suppress its first start | docs/specs/issue-557/requirements.md#R7.5 | cli/tests/test_quiz_taken_integration.py:791 |
| 43 | a reviewer records that they took the code quiz | A stranger's ordinary comment is dropped exactly as before | docs/specs/issue-557/requirements.md#R7.9 | cli/tests/test_quiz_taken_integration.py:817 |
| 44 | a reviewer records that they took the code quiz | the-loop's own comment carrying the keyword is not a signal on the poller | docs/specs/issue-557/requirements.md#R7.7 | cli/tests/test_quiz_taken_integration.py:845 |
| 45 | the table follows the pull request's reviewers | A reviewer request and its removal update the table on the poller | docs/specs/issue-557/requirements.md#R8.12 | cli/tests/test_quiz_taken_integration.py:870 |
| 46 | the table follows the pull request's reviewers | The polled pull request carries who is asked to review and who reviewed | docs/specs/issue-557/requirements.md#R8.12 | cli/tests/test_quiz_taken_integration.py:896 |