Skip to content
6 changes: 3 additions & 3 deletions docs/features/shutdown-process/legacy-api-migration.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
doc-type: feature-supporting-analysis
status: draft
last-updated-utc: "2026-11-10 15:30"
last-updated-utc: "2026-11-11 09:40"
semantic-links:
related-artifacts:
- docs/features/shutdown-process/README.md
- docs/issues/closed/2751-1488-si-18-deprecate-legacy-shutdown-api/ISSUE.md
- docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
- docs/issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
---

# Migrating from the Legacy Shutdown API
Expand Down Expand Up @@ -47,4 +47,4 @@ calls them.

The five server package crates are unpublished and the root types were never in a published release, so for them
this guide is in-repo history; only `torrust-server-lib` had a support window (0.5.x), which ended when the
maintainer approved 0.6.0 on 2026-11-10 (recorded in the start gate of the [SI-19 spec](../../issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md), merged in torrust/torrust-tracker#2803).
maintainer approved 0.6.0 on 2026-11-10 (recorded in the start gate of the [SI-19 spec](../../issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md), merged in torrust/torrust-tracker#2803).
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ github-issue: 2449
spec-path: docs/issues/closed/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md
branch: "2449-migrate-rest-api-test-environment"
related-pr: 2643
last-updated-utc: "2026-10-25 08:09"
last-updated-utc: "2026-11-11 09:40"
semantic-links:
skill-links:
- create-issue
Expand All @@ -27,7 +27,7 @@ semantic-links:
- docs/issues/closed/2448-1488-si-17-migrate-standalone-udp-environment/ISSUE.md
- docs/issues/closed/2471-1488-fix-http-environment-drop-path/ISSUE.md
- "issue #2751"
- docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
- docs/issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
- docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md
---

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ github-issue: 2450
spec-path: docs/issues/closed/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md
branch: "2450-migrate-health-check-api-test-environment"
related-pr: 2652
last-updated-utc: "2026-11-03 17:45"
last-updated-utc: "2026-11-11 09:40"
semantic-links:
skill-links:
- create-issue
Expand All @@ -26,7 +26,7 @@ semantic-links:
- docs/issues/closed/2471-1488-fix-http-environment-drop-path/ISSUE.md
- docs/issues/closed/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md
- "issue #2751"
- docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
- docs/issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
- "issue #2697"
- docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md
---
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
schema-version: 1
doc-type: issue
issue-type: task
status: in-progress
status: done
priority: p1
epic: 1488
github-issue: 2801
spec-path: docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
spec-path: docs/issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
branch: "2801-remove-legacy-shutdown-api"
related-pr: 2807
last-updated-utc: "2026-11-10 17:27"
last-updated-utc: "2026-11-11 10:19"
semantic-links:
skill-links:
- create-issue
Expand Down Expand Up @@ -149,7 +149,7 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev

## Acceptance Criteria

- [ ] All start-gate evidence is complete and independently reviewed.
- [x] All start-gate evidence is complete and independently reviewed (the reviews of PR 2807).
- [x] `Halted` shutdown API and legacy shutdown helpers are removed from their
declared packages; `Started` remains available in `torrust-server-lib` 0.6.0 and
is no longer used in this workspace.
Expand Down Expand Up @@ -220,12 +220,12 @@ Sign every commit with GPG.
- [x] Spec-only PR merged into `develop` before implementation (PR 2803)
- [x] `torrust-server-lib` 0.6.0 published (external dependency, 2026-11-10)
- [x] Implementation completed
- [ ] Automatic verification completed (`linter all`, relevant tests, pre-push checks)
- [x] Automatic verification completed (`linter all`, relevant tests, pre-push checks)
- [x] Manual verification scenarios executed and recorded in `manual-verification-evidence.md`
- [ ] Acceptance criteria reviewed after implementation and updated with evidence
- [ ] Evidence-based implementation completion review recorded: an issue-local `implementation-retrospective.md` for material discoveries, or a progress-log entry that says why none was needed
- [ ] Independent reviewer reports recorded in `agent-review-reports.md`
- [ ] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/`
- [x] Acceptance criteria reviewed after implementation and updated with evidence
- [x] Evidence-based implementation completion review recorded: an issue-local `implementation-retrospective.md` for material discoveries, or a progress-log entry that says why none was needed
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
- [x] Independent reviewer reports recorded (the reviews of PR 2807 and the audit `docs/pr-reviews/pr-2807-review/PR-REVIEW.md`)
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
- [x] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/`

### Progress Log

Expand All @@ -241,6 +241,7 @@ Sign every commit with GPG.
- 2026-11-10 16:55 UTC - AI agent (Claude Sonnet 5.5) - Addressed the second review of PR 2807 (F12 to F16): the live-spec search pasted as run, the ten signal invocations and the tracker configuration recorded, the criterion, row and evidence item reworded to match the five live-spec matches, and `branch` pointed at the implementation branch.
- 2026-11-10 16:57 UTC - AI agent (Claude Sonnet 5.5) - Removed the statements that the maintainer published `torrust-server-lib` 0.6.0 from the gate item, the scope note and the evidence, because the evidence only shows that 0.6.0 is published on crates.io.
- 2026-11-10 17:27 UTC - AI agent (Claude Sonnet 5.5) - Addressed the third review of PR 2807 (F17 to F19): the evidence cites the merge of the `torrust-server-lib` PR and describes the verification configuration as a reduced copy, and the second-round entry above is stamped at its commit minute.
- 2026-11-11 07:17 UTC - AI agent (Claude Sonnet 5.5) - Archived the spec: the GitHub issue is CLOSED (closed by PR 2807, merged 2026-11-11 with `torrust-server-lib` 0.6.0), so the spec moved from `docs/issues/open/` to `docs/issues/closed/`, `status` is `done`, and EPIC row 19 is Done. No retrospective was needed: the change is a removal with no design surprise. Left for follow-ups: the now-unused public error variants (`Error::Stop`, `StartupNotification` and `StartupNotificationDropped` of the HTTP and REST servers, and three `UdpError` variants) and the supervisor consolidation split out of scope. A flaky `axum-health-check-api-server` test failed once in a container build and passed on rerun. The completion review was recorded after the issue closed (PR 2807 merged at 07:08 UTC), so the order the checklist asks for was not kept. Follow-ups are tracked in the drafts `docs/issues/drafts/follow-up-si-19-remove-unused-error-variants/` and `docs/issues/drafts/follow-up-si-19-consolidate-shutdown-supervisor/`.

## Design and Ownership Review

Expand Down Expand Up @@ -283,7 +284,7 @@ None.

| AC | Status | Evidence |
| -- | ------ | -------- |
| Start-gate evidence complete and reviewed | IN_PROGRESS | M1 is DONE; the independent review is the review of the implementation PR 2807, to be recorded in `agent-review-reports.md` or the audit |
| Start-gate evidence complete and reviewed | DONE | M1, and the reviews of PR 2807 (eight rounds by da2ce7; the audit records rounds 1 to 7, and the final approval, review 5849873024, is on the forge) |
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
| Legacy API removed; `Started` remains available in `torrust-server-lib` 0.6.0 and is no longer used here | DONE | M2 |
| No OS-signal subscription in server libraries | DONE | M2 |
| No use of the removed API remains; descriptions remain in archived docs and five lines of live specs | DONE | M2 |
Expand All @@ -309,8 +310,8 @@ None.
`docs/templates/IMPLEMENTATION-RETROSPECTIVE.md` in this directory; otherwise add
a progress-log entry saying why none was needed. The issue is not closed until
one of the two exists.
- The independent reviewer records its result in `agent-review-reports.md` using
`docs/templates/AGENT-REVIEW-REPORTS.md`.
- The independent reviews are the reviews of PR 2807 (eight rounds by da2ce7 and a Copilot summary; the audit records the summary and rounds 1 to 7, the eighth being the final approval after the last commit), recorded in `docs/pr-reviews/pr-2807-review/PR-REVIEW.md`; the audit of the spec PR 2803 is `docs/pr-reviews/pr-2803-review/PR-REVIEW.md`.
- Retrospective: none needed. The change removes deprecated symbols and their tests with no design surprise. The discoveries are recorded in the progress log: a flaky health-check test that passes on rerun, and unused public error variants left in place.
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved

## References

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
---
doc-type: manual-verification-evidence
issue-spec: docs/issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
last-updated-utc: "2026-11-11 09:40"
---

<!-- cspell:ignore ltnup -->

# Verification Evidence — Legacy Shutdown API Removal (#2801)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
schema-version: 1
doc-type: issue
issue-type: task
status: draft
priority: p3
epic: null
github-issue: null
spec-path: docs/issues/drafts/follow-up-si-19-consolidate-shutdown-supervisor/ISSUE.md
branch: "follow-up-si-19-consolidate-shutdown-supervisor"
related-pr: null
last-updated-utc: "2026-11-11 10:59"
semantic-links:
skill-links:
- create-issue
related-artifacts:
- docs/issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
---

<!-- skill-link: create-issue -->

# Draft: Consolidate the shutdown supervisors and review the owner types
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved

> **Status**: Draft follow-up of [SI-19](../../closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md). Not yet a GitHub issue.

## Goal

Split out of SI-19 scope (Removal Constraint 1): consolidate the token-aware component supervisors, review the owner types (`OwnedTask`, `TokenAwareServerTask`, `OwnedReceiveLoop`) and adopt the health-check join order, a refactor that would widen the breaking surface.

## Scope

The three parts (the supervisors, the owner types and the health-check join order) described in the Out of scope section of the SI-19 spec.

## Acceptance Criteria

- [ ] The change is made and `linter all` passes.
- [ ] The maintainer's decision on the design is recorded before implementation.

## Architectural Decisions

To be written when the draft is refined into an issue.

## Verification Plan

To be written when the draft is refined into an issue.

## Implementation Plan
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved

To be written when the draft is refined into an issue.

## Commit Points

To be written when the draft is refined into an issue.

## Progress Tracking

### Workflow Checkpoints

- [ ] Draft refined and the GitHub issue created

### Progress Log

- 2026-11-11 09:40 UTC - AI agent (Claude Sonnet 5.5) - Draft created as a follow-up of SI-19; not yet a GitHub issue.
- 2026-11-11 10:59 UTC - AI agent (Claude Sonnet 5.5) - Renamed to an unnumbered folder with `epic: null` and added the Architectural Decisions, Verification Plan and the other initialization sections as placeholders.

## Acceptance Verification

To be written when the draft is refined into an issue.

## Implementation Completion Review

To be completed when the work is done.
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
---
schema-version: 1
doc-type: issue
issue-type: task
status: draft
priority: p3
epic: null
github-issue: null
spec-path: docs/issues/drafts/follow-up-si-19-remove-unused-error-variants/ISSUE.md
branch: "follow-up-si-19-remove-unused-error-variants"
related-pr: null
last-updated-utc: "2026-11-11 10:59"
semantic-links:
skill-links:
- create-issue
related-artifacts:
- docs/issues/closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md
---

<!-- skill-link: create-issue -->

# Draft: Remove the unused public error variants

> **Status**: Draft follow-up of [SI-19](../../closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md). Not yet a GitHub issue.

## Goal

SI-19 removed the legacy shutdown API and left public error variants that nothing constructs. Remove them in the next breaking release.

## Scope

`Error::Stop`, `Error::StartupNotification` and `Error::StartupNotificationDropped` of the HTTP and REST servers, and the `UdpError` variants `StartupNotification`, `Launcher` and `FailedToStartOrStopServer`. This is a breaking change to public enums, so it needs its own release decision.

## Acceptance Criteria

- [ ] The change is made and `linter all` passes.
- [ ] A search for each variant finds no use in the tree.

## Architectural Decisions

To be written when the draft is refined into an issue.

## Verification Plan

To be written when the draft is refined into an issue.

## Implementation Plan

To be written when the draft is refined into an issue.

## Commit Points

To be written when the draft is refined into an issue.

## Progress Tracking

### Workflow Checkpoints

- [ ] Draft refined and the GitHub issue created

### Progress Log

- 2026-11-11 09:40 UTC - AI agent (Claude Sonnet 5.5) - Draft created as a follow-up of SI-19; not yet a GitHub issue.
- 2026-11-11 10:59 UTC - AI agent (Claude Sonnet 5.5) - Renamed to an unnumbered folder with `epic: null` and added the Architectural Decisions, Verification Plan and the other initialization sections as placeholders.

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.

[Minor][F19] This entry dates the rename, epic: null and the sections F11 named to 10:59, but they landed at 10:19.

git log --follow -M30% shows both drafts renamed from their 2801-follow-up-* folders in docs(issues): [#2801] address the second review of the close-out PR, committed at 10:19:49, which also set epic: null and added Implementation Plan through Implementation Completion Review; docs(issues): [#2801] address the third review of the close-out PR (10:59:10) adds only Architectural Decisions and Verification Plan. The consolidation draft's line 64 says the same. process-pr-review takes an event's time from git log --format=%cI, as in F13, which asked for a 10:19 entry for the rename. Suggest a 10:19 entry for the rename and those sections, and a 10:59 entry for the two placeholders.


## Acceptance Verification

To be written when the draft is refined into an issue.

## Implementation Completion Review

To be completed when the work is done.
4 changes: 2 additions & 2 deletions docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ epic: null
github-issue: 1488
spec-path: docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md
epic-owner: josecelano
last-updated-utc: "2026-11-10 11:29"
last-updated-utc: "2026-11-11 09:40"
semantic-links:
skill-links:
- create-issue
Expand Down Expand Up @@ -210,7 +210,7 @@ deterministic tests, and manual evidence.
| 16 | #2449 | [Migrate REST API test environment](../../closed/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md) | Done | SI-23. One test environment migration; found while refreshing SI-17 (2026-10-06). Merged in PR #2643 on 2026-10-25; one token and one `DropGuard`, because the environment owns no listener. |
| 17 | #2450 | [Migrate health-check API test environment](../../closed/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md) | Done | SI-24. One test environment migration; found while refreshing SI-17 (2026-10-06). Merged in PR #2652 on 2026-10-26; one token and one `DropGuard`, because the environment owns no listener. Review found that a fixed-port restart panicked because the registry could not remove a registration, so `torrust-server-lib` 0.4.0 added `Registar::deregister` and `stop()` removes its own binding. |
| 18 | #2751 | [Deprecate legacy shutdown API](../../closed/2751-1488-si-18-deprecate-legacy-shutdown-api/ISSUE.md) | Done | Compatibility-preserving source deprecation only. |
| 19 | #2801 | [Remove legacy shutdown API and library OS signals](../2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md) | Planned | Breaking release after migration, deprecation, and compatibility gates. |
| 19 | #2801 | [Remove legacy shutdown API and library OS signals](../../closed/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md) | Done | Removed the legacy API; merged in PR #2807 with `torrust-server-lib` 0.6.0. |
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
| 20 | #2668 | [Configure shutdown policy and deployment contract](../../closed/2668-1488-si-20-configure-shutdown-policy/ISSUE.md) | Done | Apply approved Q3/Q4 outcomes, budgets, configuration, and deployment guidance. |
| 21 | #2697 | [Mark health check unhealthy during shutdown](../../closed/2697-1488-si-21-mark-health-unhealthy-during-shutdown/ISSUE.md) | Done | Set readiness to not ready before root cancellation and component drain. |
| — | SI-3 | [Combined standalone environment migration](../../drafts/1488-si-3-fix-environment-stop/ISSUE.md) | Superseded | Replaced by SI-16 and SI-17. Do not implement. |
Expand Down
Loading
Loading