Skip to content

docs(issues): add specs for SI-22 shutdown event draining and related issues - #2421

Merged
josecelano merged 5 commits into
torrust:developfrom
josecelano:2410-process-queued-events-before-listeners-stop-spec
Oct 2, 2026
Merged

josecelano merged 5 commits into
torrust:developfrom
josecelano:2410-process-queued-events-before-listeners-stop-spec

Conversation

@josecelano

@josecelano josecelano commented Oct 2, 2026 •

Copy link
Copy Markdown
Member

Summary

Spec-only PR. It adds the issue specs created from the #1488 shutdown review, refreshes the related drafts, and records the Copilot review audit. No runtime code changes.

Related to #1488, #2410, #2411

New specs (docs/issues/open/)

Updated specs

Review

  • Copilot review audit: docs/pr-reviews/pr-2421-review/PR-REVIEW.md (3 fixed, 2 declined with reasons; all threads resolved).
  • The nightly Clippy fixes this PR briefly carried were dropped on rebase; fix(ci): resolve nightly Clippy regressions #2422 merged the same changes into develop.

Validation

  • Pre-commit gate passed on every commit; pre-push gate passed (nightly fmt/check/doc, full stable test suite).
  • Audit record validator: 5 rows, 0 failures.
  • Reproducer script: bash -n, ShellCheck, and a small control smoke run (3/3 completions persisted). The original loss measurements are historical results from an earlier script version.
  • HTTP scrape evidence for Verify whether HTTP scrape enforces the 74 info-hash limit #2417 comes from a local tracker run on a dev build; no tracker code was changed.

Copilot AI balanced review requested due to automatic review settings October 2, 2026 18:12
@josecelano josecelano self-assigned this Oct 2, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Review effort: Lite
Findings: 3 Medium severity · 2 Low severity

Open (5)
What changed in this PR

Spec-only PR adding new issue/epic specs and evidence related to SI-22 shutdown event draining (and related follow-ups), plus refreshing existing shutdown roadmap docs and drafts.

Changes:

  • Added new open issue/epic specs for SI-22 sub-EPIC (#2410 and children #2413–#2416), abuse-resistance EPIC (#2411) and related follow-ups (#2417, #2418), plus SI-16 migration spec (#2412).
  • Added manual verification evidence/docs and a disposable reproducer script for shutdown event-loss reproduction.
  • Updated existing shutdown EPIC docs (#1488) and cross-links in related specs/drafts; updated project-words.txt.
File Description
project-words.txt Adds setsid to project word list (supports new reproducer script docs).
docs/​issues/​open/​2418-batch-persisted-download-writes/​ISSUE.md New spec for batching persisted download writes follow-up.
docs/​issues/​open/​2417-2411-verify-http-scrape-info-hash-limit/​manual-verification-evidence.md New manual evidence for HTTP scrape hash-count behavior.
docs/​issues/​open/​2417-2411-verify-http-scrape-info-hash-limit/​ISSUE.md New spec to verify/decide HTTP scrape hash-count cap + ADR requirement.
docs/​issues/​open/​2416-2410-si-22-4-stop-producers-before-listeners/​ISSUE.md New SI-22 child spec: stop producers before listeners.
docs/​issues/​open/​2415-2410-si-22-3-per-component-cancellation-tokens/​ISSUE.md New SI-22 child spec: per-component cancellation tokens refactor.
docs/​issues/​open/​2414-2410-si-22-2-drain-listener-queues-on-shutdown/​ISSUE.md New SI-22 child spec: drain listener queues policy + tests.
docs/​issues/​open/​2413-2410-si-22-1-document-event-flows-and-draft-adr/​ISSUE.md New SI-22 child spec: document event flows + draft ADR.
docs/​issues/​open/​2412-1488-si-16-migrate-standalone-http-environment/​ISSUE.md New SI-16 spec moved into open issues and refreshed.
docs/​issues/​open/​2411-spam-and-abuse-resistance/​EPIC.md New abuse-resistance EPIC spec and inventory.
docs/​issues/​open/​2410-1488-si-22-process-queued-events-before-listeners-stop/​reproduce-lost-completions.sh Disposable repro script for shutdown event-loss evidence.
docs/​issues/​open/​2410-1488-si-22-process-queued-events-before-listeners-stop/​manual-verification-evidence.md Manual evidence write-up for SI-22 reproduction + script smoke test.
docs/​issues/​open/​2410-1488-si-22-process-queued-events-before-listeners-stop/​EPIC.md New SI-22 sub-EPIC spec/design record including decisions, diagrams, plan.
docs/​issues/​open/​2406-scrape-ignores-persisted-torrent-downloads/​ISSUE.md Updates cross-links from drafts to new open specs/issues.
docs/​issues/​open/​1488-overhaul-tracker-shutdown/​ISSUE.md Updates status/roadmap (adds SI-22, refreshes sequencing/notes).
docs/​issues/​drafts/​1488-si-3-fix-environment-stop/​verification.md Updates superseded draft link to point at new SI-16 spec artifacts.
docs/​issues/​drafts/​1488-si-3-fix-environment-stop/​ISSUE.md Updates superseded draft link to new SI-16 open spec.
docs/​issues/​drafts/​1488-si-20-configure-shutdown-policy/​ISSUE.md Refreshes draft frontmatter and adds review notes (exit codes, budgets).
docs/​issues/​drafts/​1488-si-19-remove-legacy-shutdown-api/​ISSUE.md Refreshes draft frontmatter and roadmap step numbering.
docs/​issues/​drafts/​1488-si-18-deprecate-legacy-shutdown-api/​ISSUE.md Refreshes draft frontmatter and roadmap step numbering.
docs/​issues/​drafts/​1488-si-16-migrate-standalone-http-environment/​verification.md Adds additional manual verification checklist items.
docs/​issues/​drafts/​1488-si-16-migrate-standalone-http-environment/​ISSUE.md Removes old SI-16 draft (superseded by open #2412 spec).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Copilot stopped reviewing on behalf of josecelano due to an error October 2, 2026 18:33
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 2, 2026
…, torrust#2417, torrust#2418

The issues exist and are linked on GitHub; the workflow checklists still showed those steps as pending. Addresses Copilot review on PR torrust#2421.
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 2, 2026
AC4 appeared before AC3. Addresses Copilot review on PR torrust#2421.
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 2, 2026
The regression test section said not applicable and then listed tests. Addresses Copilot review on PR torrust#2421.
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 2, 2026
@josecelano
josecelano requested a review from da2ce7 October 2, 2026 19:04
… issues

Add issue specs for torrust#2410 (SI-22 sub-EPIC) and its children torrust#2413-torrust#2416, SI-16 (torrust#2412), the spam and abuse EPIC (torrust#2411), the HTTP scrape limit check (torrust#2417), and batched persisted download writes (torrust#2418). Refresh the torrust#1488 EPIC, SI-18/19/20 drafts, and links from SI-3 and torrust#2406.

Related to torrust#1488, torrust#2410, torrust#2411
…, torrust#2417, torrust#2418

The issues exist and are linked on GitHub; the workflow checklists still showed those steps as pending. Addresses Copilot review on PR torrust#2421.
AC4 appeared before AC3. Addresses Copilot review on PR torrust#2421.
The regression test section said not applicable and then listed tests. Addresses Copilot review on PR torrust#2421.
@josecelano
josecelano force-pushed the 2410-process-queued-events-before-listeners-stop-spec branch from e786f42 to 741e2a8 Compare October 2, 2026 19:43
@josecelano

Copy link
Copy Markdown
Member Author

ACK 741e2a8

@josecelano
josecelano merged commit f5f370b into torrust:develop Oct 2, 2026
20 checks passed

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 741e2a879b6f182ff24e6c64bcedf6554afeaac7 (round 1, post-merge). Recomputed from the bytes at this head.

Label: POST_MERGE_FINDINGS — this PR merged at 2026-10-02T20:29:23Z as f5f370bb6 before this review was written; nothing below asks for remediation, and process-pr-review § "Reviews Submitted After Merge" governs any follow-up.

The PR ships its own audit record (docs/pr-reviews/pr-2421-review/PR-REVIEW.md, record F1–F5), so loop findings number from F6.

What the PR is. Five commits on 1457fd012: 9ca1c4c3f adds the specs, 6c2649515 ticks checkpoints, 4fa7e3804 reorders #2417's ACs, 96a92fee2 adds the #2418 test plan and 741e2a879 adds the audit record. It changes 23 files, +4773/−168 (git diff --numstat 1457fd012 741e2a879). It is documentation only, plus one disposable shell script. It opens specs for #2410 (the SI-22 sub-EPIC) and its children #2413–#2416, for EPIC #2411 with #2417, for #2412 (SI-16, promoted from its draft, with verification.md renamed to manual-verification-evidence.md, R088) and for #2418. It also refreshes #1488 (+70/−19), SI-18, SI-19 and SI-20 (+44/−3), SI-3, and #2406 (+3/−3).

Shape. create-issue/SKILL.md:44-46 names docs/templates/ISSUE.md for Task/Bug/Feature and EPIC.md for an Epic.

Folder Template Frontmatter Mandatory sections Notes
2410-1488-si-22-… EPIC ok (epic 1488) ok no Why This Is Needed/Delivery Strategy (loop F9)
2411-spam-… EPIC ok (epic null) ok —
2412-1488-si-16-… ISSUE task ok (epic 1488) ok —
2413/2415-2410-… ISSUE task ok (epic 2410) ok template sections dropped (F10); placeholder (F7)
2414/2416-2410-… ISSUE bug ok (epic 2410) ok, incl. bug sections F7
2417-2411-… ISSUE bug ok (epic 2411) ok F6, F8
2418-batch-… ISSUE enhancement ok (epic null) ok parentless folder allowed (SKILL.md:78-79,207-208); blocked on #1488 (:48-49, T1–T5 BLOCKED)

On frontmatter and titles:

  • In all nine specs, github-issue equals both the folder prefix and the issue in the evidence.
  • spec-path equals the file's own path.
  • last-updated-utc is not earlier than the last dated log entry.
  • Titles equal the GitHub titles, apart from title case.
  • Issue types agree with the labels.

SI-22 EPIC. The subissue table lists exactly #2413–#2416, with titles verbatim. Every code claim I sampled holds at the head:

  • CHANNEL_CAPACITY = 65536 (packages/events/src/broadcaster.rs:8).
  • Receiver exposes only recv (receiver.rs:9-12).
  • There are four buses.
  • A cancel-first biased select runs in six listener modules hosting seven components (src/app.rs:169-173,321-322).
  • There are seven it_should_prioritize_* tests.
  • The JobStatus variants match (src/bootstrap/jobs/manager.rs:60-65).
  • register_legacy is used only for udp_ban_cleanup (src/app.rs:375).
  • main has a 10 s deadline (src/main.rs:37) and the HTTP drain is 90 s (packages/axum-http-server/src/server.rs:29).

The evidence figures recompute: 790/856 and 775/845 (about 92%), 134/s and 370/s. In the script:

  • It runs under set -euo pipefail and installs trap cleanup EXIT.
  • Its ports can be overridden.
  • Every config key, the -c flag, both environment variable names, /health_check, the SQL tables and the readiness log line resolve at the head.
  • It contains no banned token.

The orchestrator's shellcheck run exited 0 (1 s).

#1488 and drafts. SI-22 is inserted at sequence 14 and SI-18 to SI-21 are renumbered 15–18. This matches the draft positions (SI-18 step 15, SI-19 step 16). All 93 relative links in the changed files resolve at the head and at develop, including record F1's target.

Audit record. I ran validate-audit-record.py offline with --comments-file (the captured comments) and --base 1457fd012: 5 rows, 0 failures, exit 0. The review ID, discussion and reply ids, commit subjects, severities (Copilot's Medium/Low recorded as Minor/Nit, inferred), isResolved values and processing-log order all agree with the evidence.

Thread Disposition Landed isResolved Verdict
F1 link target NO_ACTION n/a, target exists true agree
F2 checkpoints FIXED 6c2649515 yes true agree
F3 AC order FIXED 4fa7e3804 yes true agree
F4 readiness log line NO_ACTION n/a true agree on substance; see F11
F5 #2418 test plan FIXED 96a92fee2 yes true agree

Findings. All are live on develop eb96d2957: the only later merge, #2419, touches none of the 23 paths.

ID Severity Live Recomputation
loop F6 Nit yes #2417:58,260 and #2414:76 call the open issues #2411/#2418 "draft"
loop F7 Nit yes four sub-issues keep "epic is set … once it exists" although epic: 2410 is already set
loop F8 Suggestion yes #2417 omits tracker-core/src/lib.rs:144-146, which claims HTTP applies the cap
loop F9 Suggestion yes the EPIC is 2,260 lines against a largest existing EPIC of 915, and lacks two EPIC-template sections
loop F10 Nit yes sub-issue specs drop template sections and the Evidence column; two progress logs have undated entries
loop F11 Suggestion yes the readiness-marker rationale lives in record F4, not in the script

There is no Minor, so the merged-tree-wrong test does not apply.

Checked, no finding

  • Commit subjects are Conventional. No [#n] tag is needed: AGENTS.md:381 limits it to the issue a PR implements or closes.
  • Author and committer times are ordered.
  • No AI-attribution trailer appears.
  • No banned token appears in the 22 present files or in the commit messages.
  • setsid is added to project-words.txt and used at script:128 and script:138.
  • The #2406 edit swaps the draft paths for #2411, #2417 and #2418.
  • The SI-20 review-note facts hold: main ignores the outcomes, and REQUEST_DRAIN_DEADLINE is 5 s (udp-server/src/server/launcher.rs:73).
  • No reference to the deleted SI-16 draft remains.
  • The CI evidence shows no startup_failure or action_required.

Checks

Orchestrator gate at 741e2a879 on the loop's compute pod (base 1457fd012): the pre-commit profile exited 0 (wall 81 s), clippy-allow-reasons exited 0, the tree was clean after the gate, and shellcheck on reproduce-lost-completions.sh exited 0. CI at this head: 16 check runs succeeded and 4 were skipped, none failed. Reviewed by the loop's account at the maintainer's request of 2026-10-02T19:04Z; the merge preceded the review.


## References

- Related issues: spam and abuse EPIC (draft)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F6] #2417 and #2414 still call the open issues #2411 and #2418 drafts

loop F6. Three phrases still use draft wording:

  • This file's :58 says "the spam and abuse EPIC draft".
  • :260 lists "Related issues: spam and abuse EPIC (draft)" with no number.
  • docs/issues/open/2414-2410-si-22-2-drain-listener-queues-on-shutdown/ISSUE.md:76 says "Faster persistence (batching draft, D18)".

The captured issue state lists #2411 and #2418 as open issues created on 2026-10-02, and this PR moved both specs to docs/issues/open/. Writing #2411 and #2418 in those three places would make the references navigable. Live on develop eb96d2957: the file is unchanged since the merge.

# Issue #2413 - Document Event Flows and Draft the Shutdown-Order ADR

Parent: [EPIC #2410 - Process queued events before event listeners stop](../2410-1488-si-22-process-queued-events-before-listeners-stop/EPIC.md)
(`epic` is set to the sub-EPIC's issue number once it exists),

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F7] Four SI-22 sub-issues keep the draft's epic placeholder sentence

loop F7. Directly under the parent line, #2413 (:30), #2414 (:36), #2415 (:29) and #2416 (:33) all read "(epic is set to the sub-EPIC's issue number once it exists),". Yet each frontmatter already carries epic: 2410, and the parent link names EPIC #2410. The sentence is drafting scaffolding from before #2410 existed (the placeholder rule is at .github/skills/dev/planning/create-issue/SKILL.md:204-208). Live on develop.

- UDP: enforced. `packages/udp-server/src/handlers/mod.rs` passes
`MAX_SCRAPE_TORRENTS` to `Request::parse_bytes`
(`packages/udp-protocol/src/request.rs`), which keeps only the first 74.
- HTTP: only documented. `packages/axum-http-server/src/lib.rs` says the

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion][F8] #2417's documentation inventory omits the tracker-core doc comment that claims HTTP enforces the cap

loop F8. The Background names only packages/axum-http-server/src/lib.rs as the place that documents a 74 limit for HTTP. The doc comment on the constant itself, packages/tracker-core/src/lib.rs:144-146, says the limit "is being used for both the UDP and HTTP trackers since it's applied at the domain level".

At this head, the constant's only call site is packages/udp-server/src/handlers/mod.rs:89. No code under packages/http-protocol, packages/http-core or packages/axum-http-server/src references it; the axum reference at lib.rs:236 is in a doc comment. Question 4 (:119-122) and T5 (:166) concern this constant's documentation, so naming this comment completes the correction list. Live on develop.

the maintainer is asked whether it is an accepted trade-off or a bug.
Decided (D19): a bug, tracked in #2406.

### Q1 Analysis - Stopping Producers Before Consumers

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion][F9] The SI-22 EPIC is 2.5 times the largest existing EPIC and lacks two EPIC-template sections

loop F9. This EPIC.md is 2,260 lines. The other 13 EPIC.md files at this head run from 159 to 915 lines: the largest is docs/issues/open/1669-overhaul-packages/EPIC.md (915) and the median is 226. Neither create-issue nor docs/templates/EPIC.md bounds size, so this is a suggestion only.

Much of the length is design history: the Q1 Analysis (:614-1198) and the Design Discussion Record (:1199-1432). The skill already allows issue-local supporting artifacts beside the primary spec (create-issue/SKILL.md:86-89). Those two sections could move to a lowercase file in this folder, with the EPIC keeping the decisions.

The template's ## Why This Is Needed and ## Delivery Strategy sections (docs/templates/EPIC.md:25,50) are absent. Their content sits under Background › Why it is a bug and Subissues › Why These Four Sub-Issues. Live on develop.


### Manual Verification Scenarios

| ID | Scenario | Steps | Expected Result | Status |

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Nit][F10] Sub-issue specs drop ISSUE-template sections and the Evidence column

loop F10. docs/templates/ISSUE.md keeps three sections even when they do not apply:

  • Bug-Fix Process and Regression Test Strategy: "Write Not applicable only when the work is not substantively a bug" (:86, :96).
  • Design and Ownership Review: "Write Not applicable when these concerns do not apply" (:69).

Where the specs differ from the template:

Live on develop.

while (( SECONDS < readiness_deadline )); do
kill -0 "$tracker_pid" 2>/dev/null || break
if curl --silent --fail --max-time 1 "http://127.0.0.1:${HEALTH_PORT}/health_check" > /dev/null \
&& grep -q "Tracker shutdown signal handlers installed." "$log"; then

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[Suggestion][F11] The reproducer does not record why it waits for the exact log line

loop F11. Lines 116-117 require both /health_check and the exact text Tracker shutdown signal handlers installed.. On timeout, line 124 prints "Tracker startup failed or timed out; see $log" without naming the marker it waited for.

The reason for the marker is sound. The health endpoint answers before main installs its SIGTERM handler: src/main.rs:29-31 starts the jobs, then :63-77 installs the handler. I agree with record F4's no-change disposition on substance, but that reason lives only in the audit record and the thread reply. A two-line comment above line 116, plus the marker text in the timeout message, would carry it with the script for a rerun on a later branch. Live on develop.

@josecelano
josecelano deleted the 2410-process-queued-events-before-listeners-stop-spec branch October 4, 2026 09:49
josecelano added a commit that referenced this pull request Oct 6, 2026
455a370 docs(pr-reviews): record Copilot review on #2443 (Jose Celano)
c314e50 docs(issues): refresh SI-16 evidence last-updated-utc after archive (Jose Celano)
541c575 docs(issues): refresh SI-22 EPIC last-updated-utc after link update (Jose Celano)
ecbb347 docs(issues): refresh SI-3 draft last-updated-utc after link update (Jose Celano)
74d2bed chore(issues): archive closed issue #2412 spec (Jose Celano)

Pull request description:

  Related to #2412 (closed by #2439) and EPIC #1488.

  Archives the SI-16 spec after #2439 merged:

  - Moves `docs/issues/open/2412-1488-si-16-migrate-standalone-http-environment/` to `docs/issues/closed/`.
  - Spec: `status: done`, `related-pr: 2439`, last checkpoint ticked, closing progress-log entry.
  - EPIC #1488: roadmap row 12 marked Done; finding 2 now says only the UDP test environment uses `Halted` until SI-17.
  - Updates links to the old path (SI-3 draft, SI-22 EPIC, PR #2439 audit record, the spec's own frontmatter).

  Not changed: the PR #2421 audit record mentions the old path as historical verification text.

  Docs-only; `linter all` passes.

ACKs for top commit:
  josecelano:
    ACK 455a370

Tree-SHA512: 3be544fe9ae6417fb0413c15f41f3b8b55858c2a9451961a45669f218f91a236d6b280e97a0752f2e0ad36cf22b1ff794ec9234f7b5d8ee00b53064f01f8fab6
josecelano added a commit that referenced this pull request Oct 6, 2026
a80ff25 docs(pr-reviews): [#2417] audit the review of #2457 (Jose Celano)
7b219fc fix(issues): [#2417] repair the archived spec's parent EPIC link (Jose Celano)
b2c93af chore(issues): [#2417] complete the frontmatter of the newly frontmattered records (Jose Celano)
700156b chore(issues): archive closed issue #2417 spec to docs/issues/closed (Jose Celano)

Pull request description:

  Archives the spec for issue #2417 (closed on GitHub when PR #2444 merged) from `docs/issues/open/` to `docs/issues/closed/`, following the cleanup-completed-issues skill.

  - Verified #2417 is `CLOSED` (completed) on GitHub; no other open-folder spec has a closed issue, no draft is linked to a GitHub issue, and EPIC #2411 has no draft children.
  - Moved the whole folder (spec, manual-verification evidence, implementation retrospective, prose-first test review, agent review reports).
  - Frontmatter: `status: done`, `spec-path` below `docs/issues/closed/`, `related-pr: 2444`, current `last-updated-utc`, and an archive entry in the Progress Log; the supplementary records now link back to the archived spec.
  - EPIC #2411: subissue row 2 is `DONE` with the new path, and the A3 evidence link points to the archived folder.
  - Repaired the other live references: ADR 20261005124222 (frontmatter and spec link), EPIC #2410's path mention, the #2003 specifications discussion (frontmatter and link), the PR #2444 audit's frontmatter, and the archived #2406 spec's path mention. The PR #2421 audit keeps its recorded verification command as history.
  - Pre-commit and pre-push passed.

  Related to #2417

ACKs for top commit:
  da2ce7:
    ACK a80ff25 — the archive verified in round 1 (whole-folder move, done frontmatter, reference repairs), the repaired parent EPIC link (ISSUE.md:26) and the audit record docs/pr-reviews/pr-2457-review/PR-REVIEW.md, whose two rows, URLs, states and log match the captured reviews and the branch
  josecelano:
    ACK a80ff25

Tree-SHA512: 31eac3720e3e3bf2f8e59a0140705245359ab16ca23397d4c651c7efbb66fc2fc7f00c63b18aa353037291275851067dc350548e3d4dfdaa1d65737a0a7babd9
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 8, 2026
- torrust#2410/torrust#2416 T9: keep SI-17's join-all failure reporting, cancel both
  tokens on drop, add the late-event test for UDP too, and wait for torrust#2471.
- torrust#2413/torrust#2410 T1: record the test environments' listener chains.
- torrust#2413/torrust#2410 T2a: find links with rg, since lychee skips closed specs;
  historical records keep the old path (maintainer decision).
- torrust#2413 T2b: record the DropGuard rule in the glossary.
- Update stale state: spec-only PR torrust#2421 merged, SI-16 and SI-17 done,
  torrust#2413's implementation branch and parent line.

Co-authored-by: Copilot <[email protected]>
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 8, 2026
- torrust#2410/torrust#2416 T9: keep SI-17's join-all failure reporting, cancel both
  tokens on drop, add the late-event test for UDP too, and wait for torrust#2471.
- torrust#2413/torrust#2410 T1: record the test environments' listener chains.
- torrust#2413/torrust#2410 T2a: find links with rg, since lychee skips closed specs;
  historical records keep the old path (maintainer decision).
- torrust#2413 T2b: record the DropGuard rule in the glossary.
- Update stale state: spec-only PR torrust#2421 merged, SI-16 and SI-17 done,
  torrust#2413's implementation branch and parent line.

Co-authored-by: Copilot <[email protected]>
josecelano added a commit to josecelano/torrust-tracker that referenced this pull request Oct 8, 2026
- torrust#2410/torrust#2416 T9: keep SI-17's join-all failure reporting, cancel both
  tokens on drop, add the late-event test for UDP too, and wait for torrust#2471.
- torrust#2413/torrust#2410 T1: record the test environments' listener chains.
- torrust#2413/torrust#2410 T2a: find links with rg, since lychee skips closed specs;
  historical records keep the old path (maintainer decision).
- torrust#2413 T2b: record the DropGuard rule in the glossary.
- Update stale state: spec-only PR torrust#2421 merged, SI-16 and SI-17 done,
  torrust#2413's implementation branch and parent line.

Co-authored-by: Copilot <[email protected]>
josecelano added a commit that referenced this pull request Oct 8, 2026
…SI-23 and SI-24 specs

0f5270e docs(pr-reviews): add the PR #2483 review audit (Jose Celano)
d9f8b54 docs(issues): refresh the SI-18 and SI-19 update timestamps (Jose Celano)
0d7cf4d docs(issues): describe the SI-23 and SI-24 drop path as cancellation only (Jose Celano)
26e259f docs(issues): restore the #2471 post-green design-review checkpoint (Jose Celano)
ce3ac3d docs(issues): record the #2471 reproduction's symptom and hypothesis (Jose Celano)
2801ab2 docs(issues): record D20, independent test-environment tokens (Jose Celano)
d0cf7bd docs(issues): require the drop path in SI-23 and SI-24 (Jose Celano)
00c8a9b docs(issues): refresh SI-22 specs with lessons from SI-17 (Jose Celano)
4f456ef docs(issues): add #2471 to the shutdown EPIC roadmap (Jose Celano)
e2a0b1e docs(issues): add issue specification for #2471 (Jose Celano)

Pull request description:

  Related to #2471

  Spec-only PR. It adds the specification for #2471 and refreshes the SI-22, SI-23 and SI-24 specs with lessons from SI-17 (#2448, #2459) and the recent archive PRs (#2457, #2465). No code changes.

  ## Summary

  - **#2471 spec (new):** dropping the HTTP test environment without `stop()` leaves its server running and its port bound. It's a regression from SI-16 (#2439); the UDP environment got the fix in #2459. The bug was reproduced on `develop` with a temporary test, which is recorded in `manual-verification-evidence.md` and was not committed. The fix is a `DropGuard`, as in the UDP environment, and comes in its own PR.
  - **EPIC #1488 roadmap:** #2471 is inserted as sequence 14, before SI-22, because SI-22 T9 changes the same file. The later rows and the "EPIC position" lines in the SI-22, SI-23, SI-24, SI-18 and SI-19 specs are renumbered.
  - **SI-22 (#2410, #2413, #2416):**
    - T9 keeps SI-17's join-all failure reporting, cancels both tokens on drop, and adds the late-event test for UDP as well as HTTP. T9 now waits for #2471.
    - New decision D20: the test environments use independent server and listener tokens, each with its own `DropGuard`, mirroring `JobManager`'s per-component tokens. The parent-child token option is rejected.
    - T1 records the test environments' listener chains.
    - T2a finds links to the moved jobs doc with `rg`, because `lychee.toml` skips `docs/issues/closed/`. Historical records keep the old path (maintainer decision).
    - T2b adds the `DropGuard` rule to the glossary.
    - Stale state is updated: spec-only PR #2421 merged, SI-16 and SI-17 done, #2413's branch and parent line.
  - **SI-23 (#2449) and SI-24 (#2450):** "Drop path: unchanged" was wrong, because moving from the halt sender to a token loses the stop-on-drop behavior, as happened in SI-16. Both specs now require a `DropGuard`, a T1 drop test, and AC7.

  ## Files

  Only `docs/issues/`:

  - `docs/issues/open/2471-1488-fix-http-environment-drop-path/` (new: `ISSUE.md`, `manual-verification-evidence.md`)
  - `docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md`
  - `docs/issues/open/2410-1488-si-22-process-queued-events-before-listeners-stop/EPIC.md`
  - `docs/issues/open/2413-2410-si-22-1-document-event-flows-and-draft-adr/ISSUE.md`
  - `docs/issues/open/2416-2410-si-22-4-stop-producers-before-listeners/ISSUE.md`
  - `docs/issues/open/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md`
  - `docs/issues/open/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md`
  - `docs/issues/drafts/1488-si-18-deprecate-legacy-shutdown-api/ISSUE.md` and `docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md` (roadmap position only)

  ## Validation

  - Pre-commit checks pass for every commit (`linter all`, frontmatter validation, `cargo machete`, doc tests).
  - Pre-push checks pass (nightly fmt, check and docs; stable test suite).
  - #2471 is linked as a sub-issue of #1488.

ACKs for top commit:
  josecelano:
    ACK 0f5270e

Tree-SHA512: 59b4bfc4b07c9fc30c44c778f5638c52e2ec85499df0251eaacf0372f653aa0e3c9a470cd1b5ee22046a29afd7678b3da4d29d6c104b3b30daf8b4035d1fb5fa

This branch was previously deployed

1 inactive deployment
coverage — 741e2a87 Deployed Oct 2, 2026 by josecelano via Generate Coverage Report #2401
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants