Skip to content

docs(issues): [#2751] add specification to deprecate the legacy shutdown API - #2752

Merged
josecelano merged 68 commits into
torrust:developfrom
josecelano-bot:2751-deprecate-legacy-shutdown-api-spec
Nov 9, 2026
Merged

josecelano merged 68 commits into
torrust:developfrom
josecelano-bot:2751-deprecate-legacy-shutdown-api-spec

Conversation

@josecelano-bot

@josecelano-bot josecelano-bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Specification-only pull request for #2751 (SI-18, roadmap row 18 of EPIC #1488). Related to #2751. It contains no implementation.

Summary

  • Opens SI-18 as issue Deprecate legacy shutdown API #2751: source-level deprecation of the legacy Halted-based shutdown API, with no behavior change and nothing removed.
  • Records the eligibility-gate evidence checked against develop at da8bd15d1, with the commands and output in manual-verification-evidence.md: the application, the standalone environments and examples, and the REST API and health-check API test environments are on the token lifecycle, and the remaining legacy callers are unit tests or the legacy adapters.
  • Records the split with the external crate: Halted, shutdown_signal, shutdown_signal_with_message and global_shutdown_signal live in torrust-server-lib, which deprecated them in 0.5.0 (Deprecate legacy shutdown API in signals (prerequisite for torrust-tracker SI-18) torrust-server-lib#3, published 2026-11-06).
  • Records the maintainer's versioning decisions: deprecate then remove for all crates; the since and removal wording; and, after a reviewer found a release-order cycle between First publish of the unpublished workspace crates #2583 and SI-19, that the five unpublished package crates have no support window. The support window applies only to torrust-server-lib. The same principle, applied to the root HaltSignal and NestedServerTask (never in a published release), was derived from the tree and confirmed by the maintainer on 2026-11-09. The end of the 0.5.x window is the maintainer's approval of 0.6.0, also confirmed on 2026-11-09.
  • Adds the template sections (plan, commit points, verification plan, risks) and replaces the skeleton verification.md with manual-verification-evidence.md.

Files touched

  • docs/issues/open/2751-1488-si-18-deprecate-legacy-shutdown-api/ (moved from docs/issues/drafts/): ISSUE.md and manual-verification-evidence.md.
  • docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md: references to the former SI-18 draft path updated, and the start gate and dependencies rewritten so that the support window applies only to torrust-server-lib and ends at the maintainer's approval of 0.6.0.
  • docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md: roadmap row 18 now links the open spec.
  • The closed SI-23 and SI-24 specs: references to the former draft path replaced by issue #2751.
  • docs/pr-reviews/pr-2752-review/PR-REVIEW.md: the audit of the Copilot and maintainer-reviewer reviews of this pull request.

Validation

  • linter markdown, linter cspell and the pre-commit hooks pass; the diff contains only Markdown files.
  • The audit validator (validate-audit-record.py --pr-number 2752) passes.
  • Sub-issue link to Overhaul: Tracker Shutdown #1488: done by the maintainer.

🤖 Generated with Claude Code

@josecelano josecelano self-assigned this Nov 6, 2026
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 6, 2026 14:09

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

8 open issues
What changed in this PR

Adds an “open” specification for SI-18 / issue #2751 to deprecate the legacy Halted-based shutdown API (documentation-only), and updates the shutdown EPIC roadmap and cross-references to point at the new open spec and evidence file.

Changes:

  • Introduces the open spec for #2751 (scope, gate evidence, plan, acceptance criteria, verification plan, risks).
  • Replaces the old draft verification skeleton with manual-verification-evidence.md in the open spec folder.
  • Updates EPIC #1488 roadmap row 18 and other issue docs to reference the new open spec location.
File Description
docs/​issues/​open/​2751-1488-si-18-deprecate-legacy-shutdown-api/​manual-verification-evidence.md Adds initial eligibility-gate evidence record for SI-18.
docs/​issues/​open/​2751-1488-si-18-deprecate-legacy-shutdown-api/​ISSUE.md Adds the full open issue specification for #2751 (deprecation-only).
docs/​issues/​open/​1488-overhaul-tracker-shutdown/​ISSUE.md Updates roadmap row 18 to link to #2751 open spec and updates timestamp.
docs/​issues/​drafts/​1488-si-19-remove-legacy-shutdown-api/​ISSUE.md Updates references from the old SI-18 draft path to the new open spec path.
docs/​issues/​drafts/​1488-si-18-deprecate-legacy-shutdown-api/​verification.md Removes the old draft verification skeleton.
docs/​issues/​drafts/​1488-si-18-deprecate-legacy-shutdown-api/​ISSUE.md Removes the old draft SI-18 issue spec (now replaced by the open spec).
docs/​issues/​closed/​2450-1488-si-24-migrate-health-check-api-test-environment/​ISSUE.md Updates SI-18 reference (now points to “issue #2751” text).
docs/​issues/​closed/​2449-1488-si-23-migrate-rest-api-test-environment/​ISSUE.md Updates SI-18 reference (now points to “issue #2751” text).

Review effort: Lite

Copilot stopped reviewing on behalf of josecelano due to an error November 6, 2026 14:30

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.

🟡 Changes recommended

The release gates create a dependency cycle that prevents publishing deprecations before removal, while the issue also retains an obsolete eligibility blocker and incorrect specification-branch metadata.

1 open issue
2 previously missed issues

In code that hasn't changed since last review

Low severity Use the required -spec suffix for the branch name

docs/​issues/​open/​2751-1488-si-18-deprecate-legacy-shutdown-api/​ISSUE.md:10

[Minor][F10] Record the spec-only branch name

This is explicitly a specification-only PR, but branch: uses the suffix-free name reserved for implementation. .github/skills/dev/planning/create-issue/SKILL.md:253–259 requires the -spec suffix and matching frontmatter for this stage. Record 2751-deprecate-legacy-shutdown-api-spec here so the implementation branch remains distinct.

Low severity Resolve the deprecation release dependency cycle

docs/​issues/​open/​2751-1488-si-18-deprecate-legacy-shutdown-api/​ISSUE.md:304

The release ordering creates a dependency cycle: #2583 blocks first publication until EPIC #1488 closes, but SI-19 is part of that EPIC and requires the public deprecation support window to have ended before removal. These crates therefore cannot publish the promised deprecations before removal under the current gates. Coordinate an explicit ordering change with #2583 and SI-19, such as allowing the deprecation release before EPIC closure or deferring removal beyond that gate, and record when the support window starts and ends.

8 resolved since last review

Review effort: Balanced

@josecelano-bot

Copy link
Copy Markdown
Contributor Author

Round 2: Copilot review 5803331264 (submitted 2026-11-06 16:21 UTC), findings F9, F10 and F11 of the audit (docs/pr-reviews/pr-2752-review/PR-REVIEW.md).

  • F9 (inline thread, reviewer ID F1): FIXED in docs(issues): [#2751] mark the torrust-server-lib gate item complete with the 0.5.0 guidance.
  • F10 (review body, reviewer ID F10): FIXED in docs(issues): [#2751] record the spec-only branch name in the SI-18 spec. branch: is now 2751-deprecate-legacy-shutdown-api-spec.
  • F11 (review body): FIXED in docs(issues): [#2751] resolve the SI-18 and SI-19 release-order cycle. The maintainer decided that the five unpublished crates have no public support window; the window applies only to torrust-server-lib and the root HaltSignal/NestedServerTask. SI-18 and the SI-19 draft say so, and First publish of the unpublished workspace crates #2583 needs no change.

@josecelano
josecelano requested a max review from Copilot November 6, 2026 16:40

Copilot AI left a comment

Copy link
Copy Markdown

@josecelano
josecelano requested a balanced review from Copilot November 9, 2026 13:21
@josecelano

Copy link
Copy Markdown
Member

ACK 927552f

da2ce7
da2ce7 previously approved these changes Nov 9, 2026

@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 927552f9e9a447fd7640e4193983aad2c33d78c0. Recomputed from the bytes at this head, against the previous round's head f66051f61 and the merge base da8bd15d1; git merge-tree against develop f9431e5c9, run outside this clone, is clean.

What moved. Eleven commits fast-forward f66051f61: three files, +290/-50. The other 2388 paths are byte-identical.

Previous findings.

  • F7 FIXED: stamp and log cover the latest edits.
  • F16 FIXED: Steps 1 to 5 print the recorded lines; the order is disclosed.
  • F17 PARTLY FIXED: the spec's stamp holds; the evidence's lags (re-raised).
  • F20 FIXED: lines 137 to 142, Requirement 2, T2 and Scope state what T2 writes.
  • F22 FIXED: lines 244 and 316.
  • F23 FIXED: line 137.
  • F24 FIXED: the evidence names both runs.
  • F26 FIXED: each command prints what its entry says.
  • F27 FIXED: the entry names the account.
  • F28 FIXED: the words are in item 1 of the comment.
  • F29 FIXED: rows F50, F53 and LINK-001, their details and the log.
  • F30 FIXED: the spec and the audit say who posted it.

The new commits. At code equal to da8bd15d1, Steps 1 to 5 print the recorded lines and Step 6 exits 1. The 12:07 and 12:08 times match git log. Rows F37 to F47 match their comments, replies, subjects and thread states, each reply's review records 57d95a16e, and all 104 URLs resolve.

Hygiene. Eleven Conventional subjects matching their diffs, author equals committer, one attribution footer each, which no rule forbids. git diff --check is clean.

Findings

F33, F34 and F35 Minor; F17 (re-raise), F31 and F32 Nit. None blocks.

Checked, no finding

Step 7 needs the network. GNU grep prints Steps 2, 3 and 5 in argument order, unlike the record, which says its tool did not. The forge attests only the account behind comment 6740143243. F27 and F30 asked for the two log rewrites.

Checks

On the loop's compute node at this head, against the merge base da8bd15d1 (receipt server-gates-kranich-561): the repository's pre-commit gate exit 0 (53 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2752-review exit 0. The forge reports this head as mergeable. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is f9431e5c9.

@da2ce7

da2ce7 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

ACK 927552f — the evidence's local commands print the recorded lines at the code of da8bd15d1, the quoted comment and rows F37 to F47 match the capture, the other 2388 paths are byte-identical to f66051f61, and no blocking finding stands at this head.

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

3 open issues
3 resolved since last review

Review effort: Lite

josecelano-bot and others added 5 commits November 9, 2026 15:45
… spec

Add a decided release-notes bullet and use the same wording in Scope, Deprecation Requirement 4 and T5, so the rule does not depend on the unconfirmed proposal.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…name the launcher hits as adapter code

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…view round 8 from their commit times

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…id and a field count in the PR 2752 audit

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 9, 2026 16:11

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.

🟢 Approval recommended

No active review issues remain for the specification-only legacy shutdown API deprecation plan.

No open issues 🎉

3 resolved since last review

Review effort: Balanced

@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 6b5678e8817134ec3edfa289ac7cabc0113267be. Recomputed from the bytes at this head, against the previous round's head 927552f9e and the merge base da8bd15d1; git merge-tree against develop 88920966a exits 0, one tree line and no conflict.

What moved. Six commits fast-forward 927552f9e: five files, +161/-19. The other 2386 paths are byte-identical.

Previous findings.

  • F17 FIXED: each stamp names its file's last content commit.
  • F24 PARTLY FIXED: re-raised.
  • F31 FIXED: audit lines 584 and 597 print what they say.
  • F32 FIXED: audit line 609.
  • F33 PARTLY FIXED: Scope, Requirement 4 and T5 agree; lines 143 and 146 do not (F36).
  • F34 FIXED: Step 5 names both hits, and their enclosing items hold.
  • F35 PARTLY FIXED: the log entry is clean; re-raised at audit line 792.

The new commits. The Step 5 command prints the recorded five lines at this head and at 88920966a. Rows F54 to F62 match their comments, replies, subjects and thread states, each reply's review records fd9b1c58c, and all 122 URLs resolve.

Hygiene. Six Conventional subjects matching their diffs, author equals committer, one attribution footer each, which no rule forbids. git diff --check is clean. The commit-id check prints one id, F35.

Findings

F36 Major, blocks. F35 (re-raise) Minor; F24 (re-raise), F37 and F38 Nit.

Checked, no finding

The SI-19 verification.md exists, so the old reference was not broken. The carrying commit of the EPIC's stamp is 13:49:57 UTC, and the old 14:00 was later, as the row says. Step 5's order differs from GNU grep's argument order, as the evidence discloses. The 15:46:04 run and the 15:55 push are not recomputable; each reply's review shows the push came first. The audit's hard-coded spec lines are current.

Checks

On the loop's compute node at this head, against the merge base da8bd15d1 (receipt server-gates-kranich-565): the repository's pre-commit gate exit 0 (53 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2752-review exit 0. The forge reports this head as mergeable. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 88920966a.

@josecelano
josecelano requested a review from da2ce7 November 9, 2026 16:59

@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 42b04176ef1ed4d1ba120b239440117d0eee4602. Recomputed from the bytes at this head, against the previous round's head 6b5678e88 and the merge base da8bd15d1; git merge-tree against develop 88920966a exits 0, one tree line and no conflict.

What moved. Five commits fast-forward 6b5678e88: three files, +95/-18. The other 2388 paths are byte-identical.

Previous findings. The other 32 stay FIXED.

  • F24 FIXED: evidence lines 12 and 31 name the 15:46:04 run, as line 122 does.
  • F33 FIXED: the rule reads the same at spec line 137, Scope, Requirement 4 and T5; line 145 defers to it and line 148 no longer applies the proposal to it.
  • F35 FIXED: the commit-id check prints nothing.
  • F36 FIXED: the rule left the dated list, and line 137 labels it derived and not yet confirmed.
  • F37 FIXED: audit line 974 gives the forge's 15:55:40 to 15:56:00.
  • F38 FIXED: audit line 771 states what was read, and it holds.

The new commits. Rows F63 to F67 match their comments, replies, subjects and thread states; each reply's review records 97b9915e0, the replies run 16:44:13 to 16:44:25 UTC, and all 132 URLs resolve. Both stamps name their files' last content commits. Step 5 prints the recorded five lines at this head and at 88920966a, and the 12:56 block holds the same five in another order. Line 141 holds: the paragraph item 3 of comment 6740143243 reserved then read "the attribute and release-note text".

Hygiene. Five Conventional subjects matching their diffs, author equals committer, one attribution footer each, which no rule forbids. git diff --check is clean.

Findings

F39 Minor and F40 Nit; neither blocks.

Checked, no finding

The automated review of 16:24 has no inline comment and asks for nothing, so it needs no row. The F57 row's grep now prints 16:38 because this round moved that stamp; rows stand as of their round. The 16:41 push and the 15:56:02 resolves are not recomputable; each reply's review shows the push came first.

Checks

On the loop's compute node at this head, against the merge base da8bd15d1 (receipt server-gates-kranich-570): the repository's pre-commit gate exit 0 (50 s), clippy-allow-reasons against the base exit 0, and the tree left clean; linter markdown, linter cspell, linter lychee exit 0; frontmatter-validator --all: 15 errors / 4 warnings at this head and at the base re-measured, so none is new; the repository's audit validator on pr-2752-review exit 0 (64 rows, 31 log entries, no failures). GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 71166cf4b.

| F62 | review-finding:pr-2752-f62 | Copilot | Nit (inferred) | metadata | ORIGINAL | FIXED | RESOLVED |
| F63 | review-finding:pr-2752-f63 | Human | Major | documentation | ORIGINAL | FIXED | RESOLVED |
| F64 | review-finding:pr-2752-f64 | Human | Minor | maintainability | RE_RAISE_OF:F56 | FIXED | RESOLVED |
| F65 | review-finding:pr-2752-f65 | Human | Nit | documentation | RE_RAISE_OF:F36 | FIXED | RESOLVED |

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][F39] RE_RAISE_OF:F36 points at an unrelated finding

Audit row F36 is Make the F21 solution precise, from the automated review, about the wording of another audit row. The earlier raise of this finding is row F43, State when each evidence command ran, which carries Reviewer finding ID F24 and the comment on the same evidence paragraph.

Step 3 of process-pr-review records the finding the re-raise repeats, as F57 and F64 do. The validator reads only the row's ID and severity, so it passes.

Please set the relationship to RE_RAISE_OF:F43.

- Reviewer finding ID: F33
- Source URL: https://github.com/torrust/torrust-tracker/pull/2752#discussion_r4513226456
- Concern: Release notes were conditional in Scope and unconditional in Requirement 4 and T5, and the decided bullets said nothing about them.
- Solution (round 8, superseded by F63): Added a decided release-notes bullet (no release note for the unpublished-crate symbols or the root types, whether or not the proposal is confirmed) and used the same wording in Scope, Requirement 4 and T5.

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][F40] This field is no longer named Solution

process-pr-review lists Solution among the required fields, and docs/templates/PR-REVIEW-TEMPLATE.md spells it - Solution:. This label makes F54 the only one of the 64 detail entries without that field, so anything reading the audit by field name misses it.

The note is useful. Please keep the label and move the note into the value, for example - Solution: (Round 8, superseded by F63.) Added ....

@da2ce7

da2ce7 commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

ACK 42b0417 — the five commits on 6b5678e88 close F24, F33 and F35 to F38, rows F63 to F67 match the capture, the other 2388 paths are byte-identical, and no blocking finding stands at this head.

@josecelano

Copy link
Copy Markdown
Member

ACK 42b0417

@josecelano
josecelano merged commit e1d5a86 into torrust:develop Nov 9, 2026
1 check passed
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.

4 participants