Repository navigation
fix(axum-http-server): [#2471] stop the HTTP test environment when dropped without stop() - #2544
Conversation
…llow SI-23 and SI-24 alongside SI-22 torrust#2039 was closed on 2026-08-19 after PR torrust#2064 implemented it, so the torrust#1419 follow-up no longer waits on it. The maintainer agreed on 2026-10-15 that SI-23 and SI-24 may run alongside SI-22. Co-authored-by: Copilot <[email protected]>
…when dropped without stop() The running state held a plain CancellationToken, and dropping a token does not cancel it, so a test environment dropped without stop() kept its server running and its address bound. Hold the token as a DropGuard, as the UDP environment does since torrust#2459, and disarm it in stop(). Add a regression test that drops a started environment and waits for its binding to be released. It failed before the fix with a 10 s timeout. Co-authored-by: Copilot <[email protected]>
…oadmap Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
🟢 Approval recommended
The localized fix preserves explicit shutdown behavior and has recorded regression evidence, with no unresolved blocking findings.
0 open findings
What changed in this PR
Fixes #2471 by cancelling the HTTP test environment when dropped without stop(), restoring cleanup within the tracker shutdown lifecycle.
Changes:
- Uses a
DropGuardwhile preserving explicit cancellation and task joining instop(). - Adds a binding-release regression test with recorded red/green evidence.
- Updates implementation progress and shutdown roadmap dependencies.
| File | Description |
|---|---|
packages/axum-http-server/src/testing/environment.rs |
Adds cancellation on drop and a regression test. |
docs/issues/open/2471-1488-fix-http-environment-drop-path/manual-verification-evidence.md |
Records regression and package validation results. |
docs/issues/open/2471-1488-fix-http-environment-drop-path/ISSUE.md |
Updates implementation progress and acceptance evidence. |
docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md |
Marks the fix complete and refreshes roadmap dependencies. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
4 open findings
The PR description states the pre-commit hook and pre-push checks passed, but this issue spec still… · New The PR description states the pre-commit hook and pre-push checks passed, but this issue spec still… · New This wording implies an immediate shutdown. SinceCancellationTokencancellation is cooperative,… · Newcancel_on_drop.disarm().cancel()is correct but a bit dense (it both disarms the guard and… · New
🧠 Review effort: Lite
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 75c7be0fcedb1eec65e814cec8d3837e6f7f9e15. Recomputed from the bytes at this head, against the merge base fd04ac51e; develop is fe5d8264a and git merge-tree against it is clean: it writes a tree with no conflicts, and develop adds only one discussion document since the merge base.
The fix. One token, environment.rs:106.
- Clones go to the server start, which hands one to the drain controller (
:119;server.rs:391,:445-447), and to the statistics listener (:127). The original moves into the guard (:138); no child token exists. - A drop cancels the shared token. The drain controller calls
graceful_shutdown(None), axum stops accepting and drops the listening socket, the server task ends once its connections close (force-closed at the drain deadline), and the listener returns on cancellation. The three handles are dropped, so those tasks finish detached, or with the test runtime. stop()is unchanged in effect:disarm().cancel()is one expression with no await between (:175), so a timeout that dropsstop()or a join panic always comes after the cancel.Runningis built only at:135and destructured only at:164; the package has noimpl Drop.- The UDP environment has the same shape (
udp-server/src/testing/environment.rs:44,:172,:227) and the same test. - The locked
tokio-util0.7.20 source is not readable here, so this relies on its documented semantics: the guard cancels on drop unless disarmed, and clones share cancellation. - History: the halt sender was replaced in 8dc9a62. Its drop never stopped the HTTP server (loop F1).
The test.
bind_address()is the server socket'slocal_addr, so the test cannot pass against a different address, and a std bind fails while that socket listens.- The 10 ms sleep lets the drain controller and server task run on the current-thread runtime. The successful bind is dropped at once; a parallel test taking the freed port could only make the test fail, as with the stop test.
TEST_DEADLINEis 10 s (:295): ample for a release that takes milliseconds, and the defect never releases, so it goes red at the deadline (V2: 10.02 s).- With the guard on an unrelated token I expect this test and the three stop-path tests to time out, the last three because
stop()then cancels the wrong token. The failed-start and synthetic join tests should pass.
The documents.
- Spec and evidence frontmatter match their templates and the validator's keys. Their stamps (17:20) equal the newest log entries and precede the commit. The design-review checkpoint is logged at 17:20.
- V2/V3's filtered counts (43 and 37), and 7 / 44 / 62 tests, match the test attributes. 10.02 s is the deadline plus startup. The cited 24bf474 and 29afe94 are on
develop. - Open points:
status: planned(loop F5); the criteria ticked by the implementer (loop F4); row 14 marked Done early (loop F2); the EPIC stamp later than its commit (loop F3). - The #1419 text matches the tree: the 2036, 2041 and 2039 specs are closed with
status: done, and #2064 merged on 2026-08-19 (7bd2dad). The 2026-10-15 agreement is not checkable from the bytes; the sentence agrees with the rest of the EPIC (SI-23/SI-24 still precede SI-18/SI-19, and EPIC #2482's rows wait on #2449/#2450). - Every changed relative link resolves.
Hygiene.
- Three Conventional subjects with scopes and issue tags; bodies match their diffs (the third has none); author equals committer; linear on
fd04ac51e;git diff --checkis clean per commit. - Each commit carries an attribution footer, which the commit skill's optional footer(s) allow (
commit-changes/SKILL.md:33-39) and manydevelopcommits carry. - The
open-pull-requestcommit-id check, run verbatim withUPSTREAM_REMOTE=work, printed nothing. project-words.txtis untouched, and nothing changes outside the four files.
The review bot. Overview 5537667869 at this head: "0 open findings", no inline comment, and no second review in the capture. I agree that explicit shutdown is preserved and that red/green evidence is recorded. I disagree with "restoring cleanup" (loop F1) and with "Marks the fix complete" passing unremarked (loop F2).
Findings. Loop F1 Minor (blocking), F2 Minor (blocking), F3 Minor (blocking), F4 Minor, F5 Nit; inline.
Checked, no finding. Token flow and drop effect on all three tasks; stop() paths; constructions and Drop impls; UDP parity; test soundness and deadline; the evidence's numbers and ids; the checkpoint entry; the #1419 and SI-23/SI-24 text; links; per-commit hygiene and the commit-id check; the merge-tree result.
Checks
On the loop's compute hub at this head, merge base fd04ac51e (receipt server-gates-krkavec-321): pre-commit profile gate exit 0 (81 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 19 errors / 4 warnings at this head and 19 / 4 at fd04ac51e re-measured, the same 23 diagnostics by path and category, none in the files this PR touches; cargo test -p torrust-tracker-axum-http-server: 106 passed (44 unit, 62 integration), 0 failed; the new drop test alone: 1 passed; cargo clippy -p torrust-tracker-axum-http-server --all-targets -- -D warnings: 0 diagnostics; cargo fmt --check exit 0; RUSTDOCFLAGS="-D warnings" cargo doc --no-deps: 0 diagnostics; cargo machete exit 0; mutation check: with the drop guard built on an unrelated token, the new drop test fails (exit 101, the binding not released within the test deadline), so the test detects the regression it targets. GitHub checks at this head at posting time: "Publish (Release): completed/skipped; Publish (Development): completed/skipped; Context: completed/success; Package Coverage Regression: completed/success; Package Coverage (torrust-tracker-axum-http-server): completed/success; Docker E2E: completed/skipped; Layer Boundary Bans: completed/success; Unit (nightly): completed/success; Documented Clippy Allows: completed/success; Unit (stable): completed/success; Build on macos-latest (nightly): completed/success; Build on ubuntu-latest (stable): completed/success; Build on macos-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Generate Coverage Report: completed/success; Docs Lint: completed/success; Test (Docker) (release): completed/success; Build on windows-latest (nightly): completed/success; Discover Package Coverage: completed/success". At posting, develop is fe5d8264a.
…ironment requests cancellation Cancellation is cooperative, so the server shuts down once it observes it and the binding is released shortly after the drop, not at once. Addresses PR torrust#2544 review finding F3. Co-authored-by: Copilot <[email protected]>
…redates SI-16 The spec, the evidence, the EPIC roadmap and the SI-23 and SI-24 specs said a dropped halt sender used to stop the HTTP test environment and SI-16 lost it. That was inferred from source and is wrong: the shutdown task panics on the closed halt channel before it stops the server. Running the drop test on the tree before SI-16 shows the binding still taken after 10 s (V4). SI-16's 'keeps today's behavior' was accurate; this issue aligns HTTP with UDP. Addresses PR torrust#2544 review finding F5. Co-authored-by: Copilot <[email protected]>
…h checks in the spec The spec still showed the automatic checks as pending after the hooks had passed. Mark T3 done and tick the automatic verification checkpoint. Addresses PR torrust#2544 review findings F1 and F2. Co-authored-by: Copilot <[email protected]>
…iewer and mark the spec in progress The implementer must not tick acceptance criteria. Clear AC1 to AC3 and reset their verification rows to TODO with the evidence pointers kept, set the frontmatter status to in-progress, and tick the manual verification workflow checkpoint now that V1 to V4 are recorded. Addresses PR torrust#2544 review findings F8 and F9. Co-authored-by: Copilot <[email protected]>
…rrust#2471 spec is archived The cleanup-completed-issues skill sets a row to Done when the closed issue's spec is archived after merge, and torrust#2471 is still open with its spec in progress. Revert the row from the previous roadmap commit, note the PR, and stamp the file with a time that is not later than this commit. Addresses PR torrust#2544 review findings F6 and F7. Co-authored-by: Copilot <[email protected]>
Record the nine findings from the Copilot and da2ce7 reviews of PR torrust#2544, with their dispositions, current-tree verification, and reply URLs. Co-authored-by: Copilot <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 3115012a3b4c48c664ec53a995b9801fae7a1858. Recomputed from the bytes at this head, against the merge base fd04ac51e; develop is fe5d8264a and git merge-tree against it is clean: it writes a tree with no conflicts. The merge base is unchanged.
Round-1 findings. All five are resolved.
- F1: the history is corrected in the spec's intro, Background and Out of Scope, V1's conclusion plus a new V4, EPIC row 14 and its paragraph, and the SI-23/SI-24 notes. V1's Hypothesis still states the old premise (loop F4).
- F2: row 14 is Planned, with an archive note (EPIC
:207). - F3: every new stamp is at or before its commit and at or after its newest log entry, checked commit by commit. The 17:50 stamp stays in history, which
AGENTS.md:362-365(no rewriting) supports. - F4: AC1–AC3 are cleared and their rows are TODO.
- F5:
status: in-progress. Ticking the manual-verification checkpoint while the AC-list box stays with the reviewer matchesimplementer.agent.md:194-196.
Every reply's claim recomputes, except its "issue body corrected", which is outside the capture, and F7's reading of the 17:35 stamp (loop F6).
The history and V4.
- V4's tree,
29afe946c^1, is 050726d. Thereenvironment.rshas 211 lines and no test module, so the appended module's.expectlands on line 239, as recorded. The 36 lib tests give "36 filtered out". Started::newandserver.state.bindingexist there. The legacy path spawnsgraceful_shutdown(server.rs:167), which awaitsshutdown_signal_with_messagebefore signalling the handle (signals.rs:67,:73). The recorded library panic, then the test's ownElapsedpanic, "10.02s" andexit=101, all follow.- The record says the module was temporary and never committed, and gives tree, code and command, so a reader can rebuild it.
- The new wording agrees across the spec, EPIC and evidence.
- The rustdoc of
Runningis accurate. The listening socket goes when the accept loop sees the drain controller's signal, the server task ends once its connections close, and the listener returns on cancellation. Only the server holds a binding. - "Was not checked" in SI-23/SI-24 is true of what was done, but the code answers it: both legacy environments spawn the same
graceful_shutdown(loop F5).
The documents.
statusvalues are among the validator's (profile.rs:209).- The implementer ticked T3 and the automatic and manual verification checkpoints. No rule reserves them, unlike acceptance criteria.
- The verification rows are TODO with evidence pointers.
- Row 14 matches
cleanup-completed-issues/SKILL.md:245-252. - Every added or changed relative link resolves.
- Finding citations in the specs use a bare number rather than the reference form (loop F3).
Hygiene.
- The six new subjects are Conventional (
docswith scopes). Bodies match their diffs, author equals committer, and each carries the attribution footer the commit skill allows. git diff --checkis clean per commit,project-words.txtis untouched, and nothing changes outside the eight files.- The
packagesinterdiff is one rustdoc comment. - The
open-pull-requestcheck, run verbatim withUPSTREAM_REMOTE=work, printsPR-branch commit id: 75c7be0fc, from the record (loop F1).
The audit record.
- It has the template's shape and frontmatter, and nine rows citing reviews 5537902749 and 5537908774. 5537667869 rightly adds none.
- Each source URL and reply URL pairs on its own thread, and all nine threads are resolved in the capture.
- Severities: mine as bracketed; the review bot's carry
(inferred), read from its Medium/Low badges. - This account's F1–F5 appear as F5–F9 with
Reviewer finding IDkept, per step 3's collision rule. - Resolution subjects exist once each on the branch.
- The validator, run offline on the captured comments, reports 9 rows, 4 log entries and 0 failures.
- F4's
NO_ACTIONis recordedRESOLVEDwith a free-form reply (loop F2). - The detail entries restate my findings faithfully, except F7's (loop F6).
The PR body and the review bot. The changed body claims hold: the predates-SI-16 summary, the review-round commit list and V4. "Pre-push passed on each push" is not checkable from the bytes. On review 5537902749 I agree with F1/F2 (the spec contradicted the body) and with F3 (the doc wording). I agree with declining F4: the single expression matches UDP and keeps the no-await property visible.
Findings. Loop F1 Minor, F2 Nit, F3 Nit, F4 Nit, F5 Suggestion, F6 Nit; none blocks.
Checked, no finding. Merge-tree and base; the rustdoc-only code interdiff; V4 against 050726d; the drop-task behaviour; stamps in both directions; checkbox ownership; row 14; links; per-commit hygiene; the record's rows, URLs, thread states, severities and validator result.
Checks
On the loop's compute hub at this head, merge base fd04ac51e (receipt server-gates-krkavec-322): pre-commit profile gate exit 0 (89 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 19 errors / 4 warnings at this head and 19 / 4 at fd04ac51e re-measured, the same 23 diagnostics by path and category, none in the files this PR touches; the PR-review audit validator on docs/pr-reviews/pr-2544-review/PR-REVIEW.md against the captured review comments: exit 0; cargo test -p torrust-tracker-axum-http-server: 106 passed (44 unit, 62 integration), 0 failed; the new drop test alone: 1 passed; cargo clippy -p torrust-tracker-axum-http-server --all-targets -- -D warnings: 0 diagnostics; cargo fmt --check exit 0; RUSTDOCFLAGS="-D warnings" cargo doc --no-deps: 0 diagnostics; cargo machete exit 0; mutation check: with the drop guard built on an unrelated token, the new drop test fails (exit 101, the binding not released within the test deadline), so the test detects the regression it targets. GitHub checks at this head at posting time: "Publish (Development): completed/skipped; Publish (Release): completed/skipped; Context: completed/success; Package Coverage Regression: completed/success; Docker E2E: completed/skipped; Documented Clippy Allows: completed/success; Unit (nightly): completed/success; Unit (stable): completed/success; Layer Boundary Bans: completed/success; Package Coverage (torrust-tracker-axum-http-server): completed/success; Test (Docker) (release): completed/success; Generate Coverage Report: completed/success; Discover Package Coverage: completed/success; Build on macos-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Build on windows-latest (stable): completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (nightly): completed/success; Build on ubuntu-latest (stable): completed/success; Docs Lint: completed/success". At posting, develop is fe5d8264a.
|
ACK 3115012 — round-1 findings recomputed as resolved, V4 checked against the pre-SI-16 code, and the audit record checked row by row against the reviews and threads; the remaining findings are non-blocking. |
…ding reference Specs and evidence cited PR torrust#2544 findings by bare IDs, which on the PR name different findings. Use review-finding:pr-2544-<id>, the form the audit template defines for citing a finding from other artifacts. Addresses review-finding:pr-2544-f12. Co-authored-by: Copilot <[email protected]>
The Hypothesis still stated, as fact, the premise that V4 disproved. Add a marker pointing to the correction and V4. Addresses review-finding:pr-2544-f13. Co-authored-by: Copilot <[email protected]>
…gacy drops do not stop the server either Both servers spawn the same graceful_shutdown task as HTTP, which awaits the panicking shutdown_signal_with_message before it signals the handle, so their legacy drop does not stop the server. Say so in the torrust#2471 out-of-scope note and in SI-23 and SI-24 instead of leaving it unchecked. This is read from source, not run. Addresses review-finding:pr-2544-f14. Co-authored-by: Copilot <[email protected]>
…d its F4, F5 and F7 entries Cite the reviewed head by subject, not by commit id, say plainly that F4 departs from the no-change reply rule, correct F5's verification to admit the V1 hypothesis it missed, and fix F7's misreading of the 17:35 stamp. Addresses review-finding:pr-2544-f10, review-finding:pr-2544-f11 and review-finding:pr-2544-f15. Co-authored-by: Copilot <[email protected]>
…e audit Add the six non-blocking findings of da2ce7's review 5539246048 as F10 to F15, with their dispositions, current-tree verification, and reply URLs. Co-authored-by: Copilot <[email protected]>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at af3e157d026e373aa8f63db02d625b9b34590704. Recomputed from the bytes at this head, against the merge base fd04ac51e; develop is fe5d8264a and git merge-tree against it is clean: it writes a tree with no conflicts. Fourteen commits sit on the unchanged merge base.
Round-2 findings. All six are resolved.
- F1: the
open-pull-requestcheck, run verbatim withUPSTREAM_REMOTE=work, prints nothing, and75c7be0fcappears nowhere underdocs. - F2: the F4 entry now says it departs from the no-change rule, names the reply and state the rule prescribes, and gives the reason. That reads as the explicit departure I asked for.
- F3: no bare "PR #2544 review finding" remains in
docs/issues/open. Each of the eight references cited there (f1, f2, f5, f8, f9, f12, f13, f14) is a row of the record. - F4: V1's Hypothesis carries a disproved marker pointing to the correction and V4.
- F5: SI-23, SI-24 and #2471's Out of Scope now say the REST API and health-check legacy drops do not stop their servers either, marked as read from source. That matches the code: both launchers spawn the shared
graceful_shutdown, which awaitsshutdown_signal_with_messagebefore signalling the handle. - F6: F7's Concern names only the 17:50 stamp as wrong.
Each reply's claim recomputes.
The audit record.
- F10–F15 continue after F9 with no collision, keep
Reviewer finding IDF1–F6, and cite review 5539246048. - Each row pairs with its comment and its reply on the same thread (4288019515 … 4288020998).
- Severities equal my brackets (Minor, Nit, Nit, Nit, Suggestion, Nit); categories are concern-based.
- The rows are
ORIGINAL/FIXED/RESOLVED, and all fifteen threads are resolved in the capture. - The detail entries restate my comments faithfully. The intro and the frontmatter hold.
- The two new log entries are in order and precede the record commit (20:38:10Z).
- The in-repo validator, run offline on the captured comments, reports 15 rows, 6 log entries and 0 failures, and I expect the gate's run to match.
Nothing else moved.
- The interdiff is five docs files; no byte under
packages/, and no relative link is added or changed. - Every stamp is at or before its commit. At the head each equals its file's newest log entry: #2471 20:33, SI-23 and SI-24 20:33; the evidence's 20:32 matches its commit.
Hygiene.
- Five Conventional
docssubjects; bodies match their diffs; author equals committer;git diff --checkis clean per commit. - Each commit carries the attribution footer the commit skill's optional footer(s) allow.
project-words.txtis untouched.
The review bot. It posted no review after 20:09:34Z; the capture holds only the author's six replies.
Findings. None.
Checked, no finding. Merge-tree and base; the commit-id check; citation forms and reference resolution; the REST/health-check wording against the launchers; new rows, URLs, severities and thread states; log order; stamps in both directions; per-commit hygiene.
Checks
On the loop's compute hub at this head, merge base fd04ac51e (receipt server-gates-krkavec-324): pre-commit profile gate exit 0 (128 s); linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 19 errors / 4 warnings at this head and 19 / 4 at fd04ac51e re-measured, the same 23 diagnostics by path and category, none in the files this PR touches; the PR-review audit validator on docs/pr-reviews/pr-2544-review/PR-REVIEW.md against the captured review comments: exit 0; cargo test -p torrust-tracker-axum-http-server: 106 passed (44 unit, 62 integration), 0 failed; the new drop test alone: 1 passed; cargo clippy -p torrust-tracker-axum-http-server --all-targets -- -D warnings: 0 diagnostics; cargo fmt --check exit 0; RUSTDOCFLAGS="-D warnings" cargo doc --no-deps: 0 diagnostics; cargo machete exit 0; mutation check: with the drop guard built on an unrelated token, the new drop test fails (exit 101, the binding not released within the test deadline), so the test detects the regression it targets. GitHub checks at this head at posting time: "Package Coverage Regression: completed/success; Test (Docker) (release): in_progress/pending; Docker E2E: completed/skipped; Unit (nightly): completed/success; Unit (stable): completed/success; Documented Clippy Allows: completed/success; Layer Boundary Bans: completed/success; Package Coverage (torrust-tracker-axum-http-server): completed/success; Docs Lint: completed/success; Build on windows-latest (nightly): completed/success; Build on macos-latest (stable): completed/success; Build on macos-latest (nightly): completed/success; Discover Package Coverage: completed/success; Build on ubuntu-latest (stable): completed/success; Build on windows-latest (stable): completed/success; Build on ubuntu-latest (nightly): completed/success; Generate Coverage Report: completed/success". At posting, develop is fe5d8264a.
|
ACK af3e157 — the six round-2 findings recomputed as resolved, the commit-id check empty, and the audit record's new rows F10–F15 checked against their comments, replies and threads. |
|
ACK af3e157 |
PR #2544 merged on 2026-10-16 and issue #2471 is closed. Move the spec to docs/issues/closed with status done, tick the checkpoints and acceptance criteria on the strength of da2ce7's approving review, and add the archive entry to the progress log. Mark roadmap row 14 of EPIC #1488 Done, and update the live links in EPIC #1488, EPIC #2482 and the PR #2544 audit frontmatter. Co-authored-by: Copilot <[email protected]>
…ssues/closed 86e452d chore(issues): archive closed issue #2471 spec to docs/issues/closed (Jose Celano) Pull request description: Related to #2471 Archives the spec for issue #2471, closed on GitHub when PR #2544 merged on 2026-10-16, from `docs/issues/open/` to `docs/issues/closed/`. - Verified issue #2471 is `CLOSED` on GitHub. - Updated the spec frontmatter (`status: done`, `spec-path`, `related-pr`, `last-updated-utc`) and the evidence file's `issue-spec` path. - Ticked the workflow checkpoints and the acceptance criteria, citing da2ce7's approving review 5539758788 of PR #2544 as the reviewer validation, and added the archive entry to the progress log. No retrospective is needed: the one material discovery is recorded in the spec, in V1's correction, in V4, and in the PR #2544 audit. - Fixed the relative links that the move broke inside the archived spec, and updated the live links in EPIC #1488 (roadmap row 14 is now Done), EPIC #2482 and the PR #2544 audit frontmatter. The PR #2483 audit is a historical record and is left as it was. - The pre-commit hook and the pre-push checks passed. ACKs for top commit: josecelano: ACK 86e452d Tree-SHA512: 67b909c4219285b47998efb9f91ce63cbbf27c80b7ac745a5eefbf34106e70de2f05d0a77f5d0dd36b25900ba3d26fdf251ae4bfcb73eb9bd2536c75db560fcf
…and move the measurement to #2547 b2d33e1 docs(pr-reviews): add the reply URL of the eighth review round of PR #2550 (Jose Celano) 514cef3 docs(pr-reviews): record the eighth review round of PR #2550 (Jose Celano) d1a5498 docs(pr-reviews): add the reply URL of the seventh review round of PR #2550 (Jose Celano) af0da1a docs(pr-reviews): record the seventh review round of PR #2550 (Jose Celano) 759278c docs(pr-reviews): add the reply URL of the sixth review round of PR #2550 (Jose Celano) 2fb9cb0 docs(pr-reviews): record the sixth review round of PR #2550 (Jose Celano) d5537ac docs(pr-reviews): add the reply URLs of the fifth review round of PR #2550 (Jose Celano) c22fc52 docs(issues): [#2507] log the fifth PR #2550 review round (Jose Celano) db1d2e4 docs(pr-reviews): record the fifth review round of PR #2550 (Jose Celano) 04d82d3 docs(issues): [#2547] state the selection rules as this specification's own (Jose Celano) 36ca2d1 docs(pr-reviews): add the reply URLs of the fourth review round of PR #2550 (Jose Celano) 09792d3 docs(issues): [#2507] log the fourth PR #2550 review round (Jose Celano) a1bfb60 docs(pr-reviews): record the third dismissal and the fourth review round of PR #2550 (Jose Celano) 91a39a1 docs(issues): [#2547] limit the shared population to the force-push measures (Jose Celano) b7a547d docs(pr-reviews): add the reply URLs of the third review round of PR #2550 (Jose Celano) 916925c docs(issues): [#2507] log the third PR #2550 review round (Jose Celano) 4b92ec0 docs(pr-reviews): record the second dismissal and the third review round of PR #2550 (Jose Celano) 1aecd2b docs(issues): [#2507] name the contradiction in the second re-review's scope (Jose Celano) cbf2b8b docs(issues): [#2547] count and classify the force-pushes of the PRs merged in the window (Jose Celano) 7386f69 docs(pr-reviews): record the dismissed approval and the second review round of PR #2550 (Jose Celano) c20f6cc docs(issues): [#2507] log the second PR #2550 review round (Jose Celano) 3e6f931 docs(issues): [#2547] label the PR #2531 merge time as merged_at (Jose Celano) 014c0e7 docs(issues): [#2507] state what the second re-review did not check (Jose Celano) 1dea064 docs(issues): [#2507] classify the V4 force-pushes by whether the push moved the base (Jose Celano) e774c1d docs(issues): [#2507] set the evidence stamp to its newest edit (Jose Celano) 0dbe53d docs(issues): [#2547] classify a force-push by whether it moved the base (Jose Celano) 2562247 docs(pr-reviews): add the PR #2550 review audit (Jose Celano) 975501e docs(issues): [#2507] record the Task Reviewer's re-review of the close-out fixes (Jose Celano) 3fa9bca docs(issues): [#2547] log the edits that moved the last-updated stamp (Jose Celano) c72184d docs(issues): [#2547] use the merge time that GitHub reports for PR #2531 (Jose Celano) 436a91d docs(issues): [#2507] account for every force-push of the 18 merges in V4 (Jose Celano) a2eb4c1 docs(issues): [#2507] describe M1 as inferred, not proven (Jose Celano) 4b1c567 docs(issues): [#2507] attribute the delivery-sequence log line to the #2525 spec (Jose Celano) 08d1e07 docs(issues): [#2507] label the force-push event commits and record how to fetch them (Jose Celano) 7a3d1cc docs(issues): [#2547] classify force-pushes that are not rebases separately (Jose Celano) b2bcd00 docs(issues): [#2547] use the merge's target tip as the refresh-path cutoff (Jose Celano) 2733f2e docs(issues): [#2547] limit the rebase-fallout baseline to 1 to 13 October (Jose Celano) f4d1817 docs(issues): [#2525] record the agreed delivery sequence (Jose Celano) 3cb3548 docs(issues): [#2507] record the close-out verification and move the measurement to #2547 (Jose Celano) 38658d8 docs(issues): add issue specification for #2547 (Jose Celano) Pull request description: Related to #2507 ## Summary Closes out #2507 without waiting two weeks, records the follow-up issue #2547 that takes over its measurement, and records the agreed delivery sequence for #2525. Documentation only: every change is under `docs/issues/open/`. ### #2547 specification (`docs(issues)`) New `docs/issues/open/2547-measure-effect-of-optional-rebases/`. The maintainer approved the draft and the issue was created on GitHub. It takes over #2507 task T7 and acceptance criterion AC9: compare 2026-10-15 to 2026-10-28 with the #2507 baseline, classify each force-push as required (conflict) or recommended, and count merges through the merge tool's recorded-base refresh. It starts no earlier than 2026-10-29. ### #2507 close-out (`docs(issues)`) - **Manual verification** from the 18 real merges from PR #2526 to #2543 (`manual-verification-evidence.md`, section "Merges Under the New Policy"): - nine pull requests merged while behind `develop` without a rebase at merge time (M2), and every merged head stays reachable from `develop` (M3); - six were merged through the recorded-base refresh (M1). This is indirect evidence: the tool output was not captured, so the reasoning from GitHub state is spelled out in section V1; - #2532 and #2537 took the conflict rebase path (M4); - code and documentation-only merges happened with no ruleset changed (M5, M6), and first-parent history has one merge per pull request (M8). - **Acceptance criteria:** AC1 to AC4 and AC6 ticked with evidence. The maintainer accepted AC6 while no check is required, with the required `CI gate` tracked by #2525. AC9 and T7 were reworded as moved to #2547. - **New Closure Plan (C1 to C7)** in the spec, so the remaining steps are written down. After this PR merges, #2507 is closed manually on GitHub and its spec is archived with `cleanup-completed-issues`. - **New files:** `implementation-retrospective.md` and `agent-review-reports.md`, the latter holding the Task Reviewer report. The Task Reviewer's first verdict was `REVIEW FAILED` (five should-fix and three nit findings, all fixed); a later re-review first failed on residual wording and then passed, and each verdict is its own entry. ### #2525 delivery sequence (`docs(issues)`) - **Rust first:** pure-Rust tasks T1 to T3, then the sandbox decision gates T4 and T5. - **Before-baseline:** recorded before the orchestrator merges. - **Gate not required at first (T6):** `CI gate` lands reporting but not required, and is observed on real code and documentation-only pull requests. - **Then required (T7):** only with maintainer approval, with the ruleset JSON saved and a rollback documented. - **Measurement split (T8):** moved to a follow-up issue created when the gate becomes required, so #2525 can close without a waiting period. ## Validation - `TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-commit.sh --format=json`: pass. - `TORRUST_GIT_HOOKS_LOG_DIR=.tmp ./contrib/dev-tools/git/hooks/pre-push.sh --format=json` (nightly and stable Rust toolchains): pass, after rebasing onto `develop`. - `python3 contrib/dev-tools/git/tests/test-github-merge-symlinks.py` (Python 3.14.4): 51 tests OK. `bash contrib/dev-tools/git/tests/test-merge-pull-request.sh`: passed. - Independent Task Reviewer re-derived the evidence from `git` and `gh api`; its reports and two re-reviews are in `agent-review-reports.md`. - Review round: the findings of Copilot and da2ce7 are fixed in separate signed commits and recorded in `docs/pr-reviews/pr-2550-review/PR-REVIEW.md`; `validate-audit-record.py --pr-number 2550` reports no failures. ## Notes for reviewers - The PR-branch commit-id check from the `open-pull-request` skill reports the before and after commits of the #2532 and #2537 force-pushes (for example `55a414e98`) once a clone has fetched them. They are not commits of this branch: V4 cites them as the `beforeCommit` and `afterCommit` values of GitHub's `HeadRefForcePushedEvent`, with the fetch step and the full ids recorded. The skill defines no exception for this case. - The evidence cites `develop` at `fd04ac51e`. This branch was then rebased onto `30b368f0f` before opening; the two newer merges (#2500 and #2544) are outside the evidence window. ACKs for top commit: da2ce7: ACK b2d33e1 — the round-9 correction entry against the captured times, the audit's twenty-nine rows against the captured reviews, thread, reply and timeline, and the commit-id check were recomputed with no finding josecelano: ACK b2d33e1 Tree-SHA512: 17030dd5806832cc53121a800b1681b816fb6ea61c560c7c390cee34aa8a95d3f6d59d3fdff78991f463ba1278ae8d37951c8497014f0e4221269974e8dd46eb
…he shutdown-order ADR 863d090 docs(reviews): [#2413] record the PR 2553 review round 10 audit (Jose Celano) 154e5ab docs(reviews): [#2413] limit the push-time sweep claim to what it found (Jose Celano) 53e397a docs(reviews): [#2413] record the PR 2553 review round 9 audit (Jose Celano) 0cb1687 docs(reviews): [#2413] state the round numbering and the two commit subjects that predate it (Jose Celano) 08bee64 docs(reviews): [#2413] state what the round 6 search finds in the F28 verification (Jose Celano) 877b138 docs(reviews): [#2413] correct the push time in the round 8 processing log (Jose Celano) 619977e docs(reviews): [#2413] record the PR 2553 review round 7 audit (Jose Celano) 74efcbc docs(issues): [#2413] number the retrospective re-review as round 7 in the spec and sub-EPIC logs (Jose Celano) f345d92 docs(reviews): [#2413] record the PR 2553 review round 6 audit (Jose Celano) 9043e52 docs(reviews): [#2413] correct the commit time range in the retrospective log entry (Jose Celano) 176832e docs(skills): [#2413] state the measured round count in the author-records rules (Jose Celano) 9cd1607 docs(reviews): [#2413] count the audit-only commits as the template defines them (Jose Celano) f3b1b1b docs(reviews): [#2413] cite the approved head by commit subject in the retrospective (Jose Celano) ef86962 docs(reviews): [#2413] log the PR 2553 review retrospective (Jose Celano) f3cf2e2 docs(reviews): [#2413] add the PR 2553 review retrospective (Jose Celano) fde879f docs(skills): [#2413] add rules for statements in the author's own review records (Jose Celano) a341537 docs(templates): [#2413] record the AI model in progress logs and review retrospectives (Jose Celano) cbb9726 docs(templates): [#2413] require stamps and named commands for dependent evidence steps (Jose Celano) 6b7839d docs(reviews): [#2413] record the PR 2553 review round 5 audit (Jose Celano) 6a660f9 docs(reviews): [#2413] note the dismissal of each approving review in the audit (Jose Celano) 85c37c4 docs(reviews): [#2413] state one placement for the HEAD-equality check (Jose Celano) 56d4244 docs(reviews): [#2413] correct the push time in the round 4 processing log (Jose Celano) cdc9002 docs(reviews): [#2413] record the PR 2553 review round 4 audit (Jose Celano) d0d3e60 docs(issues): [#2413] state only what the step 6 stamps show (Jose Celano) 53b7744 docs(issues): [#2413] correct the older-Git claim in a commit body (Jose Celano) c962f23 docs(reviews): [#2413] align the F14 solution with the recorded evidence (Jose Celano) 4347563 docs(reviews): [#2413] correct the push time in the round 3 processing log (Jose Celano) 208f569 docs(reviews): [#2413] record the PR 2553 review round 3 audit (Jose Celano) c4c7211 docs(issues): [#2413] rerun the isolation evidence one step at a time (Jose Celano) 5641760 docs(issues): [#2413] cite the EPIC documentation-only allowance by section and line (Jose Celano) cac6a9b docs(issues): [#2413] mark manual scenario M1 as done in the spec (Jose Celano) 87d64c0 test(dev-tools): [#2413] assert that the fixture environment list covers Git's, not equals it (Jose Celano) e5b7c1f docs(reviews): [#2413] record the PR 2553 review round 2 audit (Jose Celano) d0ad9bd docs(reviews): [#2413] record Minor (inferred) severity for the PR 2553 round 1 findings (Jose Celano) 0025509 docs(issues): [#2413] record the minute and toolchain of the isolation evidence (Jose Celano) a139962 docs(issues): [#2413] move the #2413 evidence into an issue-local file (Jose Celano) deccd58 test(dev-tools): [#2413] check the fixture environment list against git rev-parse --local-env-vars (Jose Celano) 953e83b docs(issues): [#2413] update the statuses to match the work this PR completes (Jose Celano) f0ad56c docs(issues): [#2413] correct the tokio version in the D13 decision text (Jose Celano) 9af751d docs(shutdown): [#2413] bump the task inventory stamp to its last change (Jose Celano) dbd641c docs(shutdown): [#2413] qualify the two UdpRequestDiscarded publish sites in the inventory (Jose Celano) 95d3ab9 docs(shutdown): [#2413] mark the swarm and in-memory listeners as conditional in the inventory (Jose Celano) 828a920 docs(adrs): [#2413] note that the exit-result policy is not applied yet (Jose Celano) d8d2e4e docs(adrs): [#2413] restate the cancellation-tree ADR consequences in the draft (Jose Celano) 91352e1 docs(reviews): [#2413] record the PR 2553 review round 1 audit (Jose Celano) a02e28b docs(shutdown): [#2413] correct the M1 inventory result in the evidence record (Jose Celano) 7fb120b docs(shutdown): [#2413] add the UDP receive loop to the event producer inventory (Jose Celano) 39dcfa7 docs(architecture): [#2413] distinguish server drain deadlines from listener admission timeouts (Jose Celano) dfc5427 docs(shutdown): [#2413] record the pre-push test isolation defect and its fix (Jose Celano) 1080d83 fix(dev-tools): [#2413] isolate clippy-allow-reasons fixture Git commands from hook environment (Jose Celano) 360ad8c docs(adrs): [#2413] draft the shutdown-order ADR (Jose Celano) 61eefbd docs(architecture): [#2413] add runtime architecture glossary (Jose Celano) 6306ee1 docs(architecture): [#2413] move application-jobs.md to docs/architecture (Jose Celano) 1327990 docs(shutdown): [#2413] add event producer-consumer inventory (Jose Celano) Pull request description: ## Summary Closes #2413 This is the first of four sub-issues of sub-EPIC #2410 (SI-22, part of EPIC #1488). It is documentation only: it records the event flows and drafts the shutdown-order ADR, and changes no runtime behaviour. One tooling fix rides along because it blocked the push (see below). ## Changes 1. T1 `docs(shutdown): [#2413] add event producer-consumer inventory`: adds the "Event Producer-Consumer Inventory" to `docs/features/shutdown-process/task-inventory.md`, including the listener chains of the HTTP and UDP test environments. Every claim from reading source is marked "read from source, not run". 2. T2a `docs(architecture): [#2413] move application-jobs.md to docs/architecture`: a pure move in its own commit, with every live link updated. Historical records (closed specs and the PR #2126 review record) keep the old path, as decided on 2026-10-07. 3. T2b `docs(architecture): [#2413] add runtime architecture glossary`: adds `docs/architecture/glossary.md`, one definition per term, merged with the jobs doc "Terms". Planned SI-22 terms are marked **Planned**, and it links to `docs/architecture/events.md` instead of copying its topology. 4. T2c `docs(adrs): [#2413] draft the shutdown-order ADR`: adds `adr-draft.md` in the sub-EPIC folder (D15), approved by the maintainer before it was committed. It fully supersedes the cancellation-tree ADR (D11) and restates the points that stay valid. 5. Tooling fix `fix(dev-tools): [#2413] isolate clippy-allow-reasons fixture Git commands from hook environment` and `test(dev-tools): [#2413] check the fixture environment list against git rev-parse --local-env-vars`: the first push failed because the pre-push hook exports `GIT_DIR` and the `clippy-allow-reasons` tests then ran their fixture Git commands against the real repository. Every fixture command now clears Git's repository-local variables, and two tests guard it. No separate issue exists for it. 6. Review rounds, one signed commit per finding, with the audit at `docs/pr-reviews/pr-2553-review/PR-REVIEW.md`: round 1 (Copilot, `review-finding:pr-2553-f1` and `review-finding:pr-2553-f2`) corrected the glossary's drain wording and added the UDP receive loop to the inventory; round 2 (`review-finding:pr-2553-f3` to `review-finding:pr-2553-f13`) restated the old ADR consequences, moved the #2413 evidence into the issue folder, and corrected smaller inventory, status and record details; round 3 (`review-finding:pr-2553-f14` to `review-finding:pr-2553-f17`) reran the isolation evidence one step at a time, marked scenario M1 done, and made the Git-variable test a subset check; round 4 (`review-finding:pr-2553-f18` to `review-finding:pr-2553-f21`) corrected four statements in the evidence and the audit that outran the record; round 5 (`review-finding:pr-2553-f22` to `review-finding:pr-2553-f24`) made statements in the audit and the evidence agree with what the commands and the timeline show. Round 7 (`review-finding:pr-2553-f25` to `review-finding:pr-2553-f27`, on the retrospective) corrected an audit-only count, the round count in the new skill section, and a log time range. 7. Review retrospective and process fixes, added at the maintainer's request after the round 6 approval: `docs/pr-reviews/pr-2553-review/review-retrospective.md` records why five of six reviews had findings (15 of the 24 were about the author's own records). Separate commits update the manual-verification evidence template (stamps and named commands), the issue, EPIC and review retrospective templates and the `create-issue` skill (record the AI model, as an observation), and `process-pr-review` to version 1.6 (rules for statements in the author's own records, until #2503's self-audit gate lands). ## Findings for the design record (D14) - `docs/architecture/events.md` documents three buses and omits the swarm bus, with its producers and three consumers. It was not rewritten here; the sub-EPIC T10 merges the event-flow diagram into it. - Torrent cleanup is an indirect swarm-bus producer, so entry 27 of the design record needs that wording. - `Cargo.lock` has tokio 1.53.3, not 1.53.1. The ADR draft and D13 cite 1.53.3 (read from source, not run). - The HTTP test environment now holds a `DropGuard` (#2471, PR #2544), like the UDP one. - The old ADR budgets (25 s shared, 20 s HTTP, 5 s UDP) differ from the code (10 s, 90 s, 5 s), and `main` does not apply the exit-result policy yet. The draft records both and leaves the alignment to SI-20. - The T1 inventory first missed the UDP receive loop publish sites, because its search was for `.send(`; the evidence records the correction. ## Validation - `linter all` exits 0 before every commit, and every commit is GPG signed. - The pre-push hook passed in full, including the stable test suite, on each push. - `rg 'application-jobs\.md'` after the move: only historical records and the sub-EPIC decision text keep the old path. - This is a docs-only change, so executable-boundary verification does not apply; the reasoning, the M1 inventory check and the tooling-defect red and green evidence are in the issue-local `manual-verification-evidence.md`. - Acceptance criteria are not ticked; a reviewer does that. ## Files touched `docs/architecture/` (README, glossary, application-jobs, tracker-instance-architecture), `docs/index.md`, `docs/features/shutdown-process/task-inventory.md`, the sub-EPIC folder (`EPIC.md`, `adr-draft.md`, `manual-verification-evidence.md`), the #2413 folder (`ISSUE.md`, `manual-verification-evidence.md`), `docs/pr-reviews/pr-2553-review/` (`PR-REVIEW.md`, `review-retrospective.md`), `contrib/dev-tools/checks/clippy-allow-reasons/tests/cli.rs`, `docs/templates/` (`MANUAL-VERIFICATION-EVIDENCE.md`, `ISSUE.md`, `EPIC.md`, `PR-REVIEW-RETROSPECTIVE.md`), `.github/skills/dev/planning/create-issue/SKILL.md`, and `.github/skills/dev/pr-reviews/process-pr-review/SKILL.md`. ACKs for top commit: da2ce7: ACK 863d090 — the round-10 fix against every push-reporting log entry, the edited reply, the new audit row against the capture and the offline validator recomputed at this head, with no finding josecelano: ACK 863d090 Tree-SHA512: bcb83fcefee2027bf437a585a9a140e79555fa1cb65c135844568d0e5b18fcb3d7a7f9144ae2d476417d3ced357eed962f595e01e3cd9ac988418d7a166b48df
- #2414, #2415, #2416: `branch:` names each implementation branch, and the obsolete note about setting `epic` is removed. - Sub-EPIC and #2416: the #2471 prerequisite of T9 is satisfied (merged in PR #2544 on 2026-10-16). - Sub-EPIC T10 step and #2416: T10 adds the swarm bus, its producers, and its three consumers to docs/architecture/events.md (finding from #2413 T1). - #2414: the Implementation Plan asks to revalidate the code that PRs #2545 and #2552 changed after the spec was written. - #1488: roadmap row 15 is In progress and notes #2413 done. Co-authored-by: Copilot <[email protected]>
… the SI-22 specs before #2414 f24a690 docs(issues): [#2413] record the Task Reviewer re-review and fix its three nits (Jose Celano) fb9f1ef docs(issues): [#2413] record the post-merge Task Reviewer report and the implementation retrospective (Jose Celano) cbebd8d docs(shutdown): [#2413] attribute the publish-nothing facts to D Versus F, not entry 27 (Jose Celano) dc537ee docs(issues): [#2410] refresh stale SI-22 spec text before #2414 (Jose Celano) Pull request description: Prep work for SI-22 (sub-EPIC #2410, under EPIC #1488) before #2414 starts. It has two parts, each in its own signed commits. Documentation only: no code, tests, or workflows change. ## A. Close the two skipped delivery gates of #2413 (after merge) The sub-EPIC's Shared Delivery Gates required an independent Task Reviewer report and an implementation retrospective before PR #2553 was pushed. Both were skipped, so they are done here, after merge, and recorded as such. - `docs/issues/closed/2413-2410-si-22-1-document-event-flows-and-draft-adr/agent-review-reports.md`: the Task Reviewer report of 2026-10-19 17:12 UTC. Verdict `POST_MERGE_FINDINGS`: AC1 to AC3 and `linter all` pass on the merged tree, with four should-fix findings and two nits. The entry records the maintainer's decision on each finding. The file also holds the re-review of this branch (19:08 UTC, `REVIEW PASSED`, three nits, all fixed in the last commit). - `implementation-retrospective.md` in the same folder (the maintainer chose a retrospective over a log-only statement). It covers what the PR review retrospective `docs/pr-reviews/pr-2553-review/review-retrospective.md` does not: the pre-push hook's `GIT_DIR` leak into fixture tests, the entry 27 recheck error, a T1 finding that stayed in progress logs, and the skipped gates (including the missing Arrange-Act-Assert review of the two `clippy-allow-reasons` tests). - Finding F1 is fixed: the "Recheck of record entry 27" table in `docs/features/shutdown-process/task-inventory.md` credited entry 27 with two facts it does not state and reported a difference that did not exist. Those facts now sit in a table attributed to the sub-EPIC's "D Versus F" section, both marked Confirmed. Dated corrections are in the #2413 and sub-EPIC logs. - The #2413 spec's two gate checkpoints are ticked. A late log entry covers review rounds 9 and 10 of PR #2553, which were only in the audit. ## B. Refresh stale SI-22 spec text - #2414, #2415, #2416: `branch:` names each implementation branch (`2414-drain-listener-queues-on-shutdown`, `2415-per-component-cancellation-tokens`, `2416-stop-producers-before-listeners`), and the obsolete "`epic` is set ..." note is removed. - The #2471 prerequisite of T9 is now marked satisfied (merged in PR #2544 on 2026-10-16): sub-EPIC Subissues row 4, Chosen Design, the T9 row, Prerequisites, Dependencies, and #2416 Scope. - T10 (sub-EPIC step, #2416 Scope, and its T10 row) adds the swarm bus, its producers, and its three consumers to `docs/architecture/events.md`, which omits them (finding from #2413 T1). - #2414's Implementation Plan asks for a revalidation of the code that PRs #2545 and #2552 changed after the spec was written. The file lists come from `git diff --stat` of each merge commit against its first parent. - #1488: roadmap row 15 is `In progress` and notes #2413 done. This, plus its `last-updated-utc` (approved by the maintainer), is the only #1488 change. Each touched spec has a progress-log entry naming the model (GitHub Copilot, Claude Opus 5.5), and its `last-updated-utc` equals its newest entry. ## Validation - `linter all` exited 0 before each commit; the pre-commit hook passed for all four commits, which are GPG signed. - The `open-pull-request` check for PR-branch commit ids in changed files printed nothing. - `linter lychee` skips `docs/issues/closed/`, so the relative links in the two new files were checked by hand: all resolve. - Independent Task Reviewer re-review of the whole branch: `REVIEW PASSED` (recorded in `agent-review-reports.md`). Related to #2410, #2413, #2414, #2415, #2416, #1488 ACKs for top commit: josecelano: ACK f24a690 Tree-SHA512: 14a4ce5e3c8852615921745c3d7330b2cb4ec7a5cb4e5fc04112c4893c3f5e6f55272afd86a3dfec3d7dea69ca23cbd8432443df64d4b7a7a620db051dd82bf0


Closes #2471
Part of EPIC #1488 (Overhaul: Tracker Shutdown), roadmap row 14.
Summary
Dropping a running
axum-http-servertest environment without callingstop()left its HTTP server running and its address bound, because dropping aCancellationTokendoes not cancel it. The gap predates SI-16 (#2412): before it, dropping the halt sender only made the shutdown task panic, so the server kept serving too (checked by running the drop test on the tree before SI-16). The UDP test environment was fixed during the SI-17 review, and this aligns HTTP with it. An earlier version of this description and of the spec called it a regression from SI-16; the review showed that was wrong and the records are corrected.The running state now holds the token as a
DropGuard, andstop()disarms it before cancelling and joining exactly as before. Dropping a running environment cancels the token, so the binding is released shortly after the drop. The impact was test-only: each#[tokio::test]has its own runtime, so the leak lasted until the end of the test.Commits
docs(issues): [#1488] refresh the #1419 follow-up and allow SI-23 and SI-24 alongside SI-22: removes the stale statement that Allow multiple integration tests at the main app level #1419 still waits on Normalize per-instance event metrics policy #2039 (closed after PR Fix per-instance event metrics policy #2064), and records the maintainer's agreement of 2026-10-15 that SI-23 and SI-24 may run alongside SI-22.fix(axum-http-server): [#2471] stop the HTTP test environment when dropped without stop(): the fix and the regression test, with the Stop the HTTP test environment's tasks when it is dropped without stop() #2471 spec and evidence.docs(issues): [#1488] mark #2471 done in the shutdown roadmap: superseded by commit 8, which restores Planned.Review-round commits:
docs(axum-http-server): [#2471] say that dropping the test environment requests cancellationdocs(issues): [#2471] correct the history: the HTTP drop gap predates SI-16: corrects the spec, the evidence (new V4), the EPIC roadmap and the SI-23 and SI-24 specs, and the GitHub issue body.docs(issues): [#2471] record the passed pre-commit and pre-push checks in the specdocs(issues): [#2471] leave the acceptance criteria to the reviewer and mark the spec in progressdocs(issues): [#1488] keep roadmap row 14 Planned until the #2471 spec is archiveddocs(pr-reviews): add the PR #2544 review audit: the audit recorddocs/pr-reviews/pr-2544-review/PR-REVIEW.md.Second review round (non-blocking findings):
docs(issues): [#2471] cite review findings by their review-finding referencedocs(issues): [#2471] mark V1's hypothesis as disproveddocs(issues): [#2471] record that the REST and health-check legacy drops do not stop the server eitherdocs(pr-reviews): [#2544] correct the audit's head citation and its F4, F5 and F7 entriesdocs(pr-reviews): [#2544] record the second review round in the auditFiles and packages touched
packages/axum-http-server/src/testing/environment.rsdocs/issues/open/2471-1488-fix-http-environment-drop-path/(spec,manual-verification-evidence.md,evidence/)docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.mddocs/issues/open/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.mdanddocs/issues/open/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md(drop-path note)docs/pr-reviews/pr-2544-review/PR-REVIEW.mdValidation
it_should_release_the_http_binding_when_dropped_without_being_stoppedwas recorded red before the fix (the binding was still taken after 10.02 s) and green after (evidence V2 and V3). The same drop test on the tree before SI-16 also times out (V4).torrust-tracker-axum-http-serverpass, and clippy with-D warningsis clean.Not done yet: the acceptance criteria are left for the reviewer, and the issue close-out and the move of the spec to
docs/issues/closed/follow after review.