From 6cec1c327c90b609e6b483afe97f45151ea0ae19 Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 12:52:02 +0000 Subject: [PATCH 01/10] docs(issues): refresh SI-19 draft after SI-18 completion Co-Authored-By: Claude Sonnet 5.5 --- .../ISSUE.md | 79 +++++++++++-------- 1 file changed, 45 insertions(+), 34 deletions(-) diff --git a/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md b/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md index 923d039e60..7f96451233 100644 --- a/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md +++ b/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md @@ -9,7 +9,7 @@ github-issue: null spec-path: docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md branch: "{issue-number}-remove-legacy-shutdown-api" related-pr: null -last-updated-utc: "2026-11-10 11:29" +last-updated-utc: "2026-11-10 14:00" semantic-links: skill-links: - create-issue @@ -47,32 +47,34 @@ The separate `Started` oneshot startup-notification API remains unchanged. ## Start Gate -Do not start implementation until every item below is complete and linked from -this issue's own `verification.md` (SI-18's gate evidence is its -`manual-verification-evidence.md`, the evidence the first item refers to): - -- [ ] SI-18 deprecation evidence confirms every declared deprecation condition - and the public support window has ended for the only already-public - symbols, those of `torrust-server-lib` (0.5.x). The window has no fixed - date: it ends when the maintainer approves publishing 0.6.0 (the last item - below), and the maintainer publishes 0.6.0 from `torrust-server-lib` as part - of this task, after that approval. The unpublished package - crates and the root `HaltSignal`/`NestedServerTask` have never been in a - published release and have no public window (see SI-18, Versioning Decisions). -- [ ] HTTP tracker, REST API, health-check API, and UDP tracker application - components use only token-aware shutdown paths. -- [ ] Standalone HTTP and UDP environments/examples use only token-aware - shutdown paths. -- [ ] REST API and health-check API test environments use only token-aware - shutdown paths (SI-23, SI-24). -- [ ] #1588 revalidates the final task inventory and records no supported - in-workspace legacy shutdown consumer. -- [ ] `torrust-server-lib` release notes confirm the planned breaking release - and communicate the migration deadline to external consumers. -- [ ] Q5's process-wrapper verification rule is documented: same-process Tokio - tasks do not survive SIGKILL, and tests target the tracker process or a - deliberately selected process group. -- [ ] A maintainer explicitly approves the breaking-release timing. +Evidence checked on 2026-11-10 against `torrust/develop` at `1df1ecdf0`. The full +evidence goes in this issue's `verification.md` (SI-18's gate evidence is its +`manual-verification-evidence.md`). + +- [x] SI-18 (#2751) is done (PRs #2752, #2793, close-out #2797). `torrust-server-lib` + 0.5.0 (published 2026-11-06, torrust-server-lib#3 / PR 4) deprecates the + legacy symbols and removes them in 0.6.0. +- [x] The end of the `torrust-server-lib` 0.5.x window. It has no fixed date: it + ends when the maintainer approves publishing 0.6.0 (SI-18, Versioning + Decisions). The maintainer gave that approval in chat on 2026-11-10 and + confirmed 0.6.0 as the `torrust-server-lib` removal release and 4.0.0 as the + root release target. The maintainer publishes 0.6.0 as part of this task. + The unpublished package crates and the root `HaltSignal`/`NestedServerTask` + have never been in a published release and have no public window. +- [x] HTTP tracker, REST API, health-check API and UDP tracker application + components use only token-aware shutdown paths (`src/bootstrap/jobs/*`). +- [x] Standalone HTTP and UDP examples use only token-aware shutdown paths + (SI-16 #2412, SI-17 #2448). +- [x] REST API and health-check API test environments use only token-aware + shutdown paths (SI-23 #2449, SI-24 #2450). +- [x] #1588 (closed) revalidated the task inventory. The remaining in-workspace + users of the legacy API are the deprecated symbols themselves, their own + tests and compat tests, each marked `#[allow(deprecated)]`. +- [x] Q5's process-wrapper rule is resolved (`docs/containers.md#stopping-the-tracker`). +- [ ] `torrust-server-lib` 0.6.0 (removal release) is ready: companion issue and + PR in that repository (session `server-lib-060`), release notes in its + `CHANGELOG.md`. The maintainer publishes it to crates.io after merge. + The implementation PR here cannot go green before publication. ## Scope @@ -92,14 +94,22 @@ this issue's own `verification.md` (SI-18's gate evidence is its `Spawner::spawn_launcher`, `LaunchRequest`, and `Running`) added or kept by SI-14 (#2342), and the bootstrap `NestedServerTask` and `HaltSignal` owner types, which have no production consumer after SI-14. -- Consolidate the three token-aware component supervisors (HTTP, REST, and - health check) and adopt the health-check join order: join the drain - controller before mapping a server-task join error. Review the owner types - together at the same time: bootstrap `OwnedTask` and `TokenAwareServerTask`, - and the UDP package's private `OwnedReceiveLoop`. +- Bump `torrust-server-lib` to 0.6.0 and remove the `Halted`/`global_shutdown_signal` + imports and the `#[allow(deprecated)]` markers that guarded them. +- Remove `axum-server`'s `graceful_shutdown` and the legacy `start`/`stop`, + `Running.halt_task` and `rx_halt` entry points of the HTTP, REST API and + health-check API servers (the list SI-18 deprecated). ### Out of scope +- Consolidating the token-aware component supervisors and reviewing the owner + types (`OwnedTask`, `TokenAwareServerTask`, `OwnedReceiveLoop`), and adopting + the health-check join order. This is a refactor, not a removal of a deprecated + symbol, so it would widen the breaking surface (Removal Constraint 1). The + maintainer agreed on 2026-11-10 to split it into its own follow-up issue. +- Publishing `torrust-server-lib` 0.6.0 (the maintainer does it; its removal PR + lives in the `torrust-server-lib` repository). + - Changing cancellation-tree behavior, component child ownership, timeout policy, exit-code policy, or readiness behavior. - Removing the `Started` oneshot startup-notification API. @@ -143,10 +153,11 @@ this issue's own `verification.md` (SI-18's gate evidence is its ## Dependencies -- SI-18 is complete and the `torrust-server-lib` 0.5.x support window has ended; the +- SI-18 is complete and the `torrust-server-lib` 0.5.x support window has ended (approved 2026-11-10); the unpublished package crates and the root types need no window (SI-18, Versioning Decisions). - SI-11 through SI-17, SI-23, and SI-24 token-lifecycle migrations are complete. -- #1588 completes final inventory evidence. +- `torrust-server-lib` 0.6.0 published to crates.io (companion issue and PR in that repository). +- #1588 final inventory evidence is complete (closed). - Q4 is resolved. Q5's process-wrapper verification rule is required for final end-to-end removal verification. From 2da190d1aab1b94631443f6e206c6d74f66001a3 Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 13:04:11 +0000 Subject: [PATCH 02/10] docs(issues): [#2801] add specification to remove the legacy shutdown API Co-Authored-By: Claude Sonnet 5.5 --- .../ISSUE.md | 2 +- .../ISSUE.md | 2 +- .../1488-overhaul-tracker-shutdown/ISSUE.md | 2 +- .../ISSUE.md | 66 +++++++++++++++++-- .../manual-verification-evidence.md} | 2 +- 5 files changed, 64 insertions(+), 10 deletions(-) rename docs/issues/{drafts/1488-si-19-remove-legacy-shutdown-api => open/2801-1488-si-19-remove-legacy-shutdown-api}/ISSUE.md (67%) rename docs/issues/{drafts/1488-si-19-remove-legacy-shutdown-api/verification.md => open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md} (96%) diff --git a/docs/issues/closed/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md b/docs/issues/closed/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md index e1e4eec3f8..123dd59497 100644 --- a/docs/issues/closed/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md +++ b/docs/issues/closed/2449-1488-si-23-migrate-rest-api-test-environment/ISSUE.md @@ -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/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md + - docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md - docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md --- diff --git a/docs/issues/closed/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md b/docs/issues/closed/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md index fd972a798f..9c9e5d919c 100644 --- a/docs/issues/closed/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md +++ b/docs/issues/closed/2450-1488-si-24-migrate-health-check-api-test-environment/ISSUE.md @@ -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/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md + - docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md - "issue #2697" - docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md --- diff --git a/docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md b/docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md index 2d7d1e228d..d92c6d72f7 100644 --- a/docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md +++ b/docs/issues/open/1488-overhaul-tracker-shutdown/ISSUE.md @@ -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 | SI-19 | [Remove legacy shutdown API and library OS signals](../../drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md) | Draft | Breaking release after migration, deprecation, and compatibility gates. | +| 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. | | 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. | diff --git a/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md similarity index 67% rename from docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md rename to docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md index 7f96451233..d205e4da2c 100644 --- a/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md +++ b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md @@ -2,12 +2,12 @@ schema-version: 1 doc-type: issue issue-type: task -status: draft +status: planned priority: p1 epic: 1488 -github-issue: null -spec-path: docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/ISSUE.md -branch: "{issue-number}-remove-legacy-shutdown-api" +github-issue: 2801 +spec-path: docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md +branch: "2801-remove-legacy-shutdown-api-spec" related-pr: null last-updated-utc: "2026-11-10 14:00" semantic-links: @@ -31,7 +31,7 @@ semantic-links: -# Draft SI-19 — Remove Legacy Shutdown API and Library OS Signals +# Issue #2801 - Remove Legacy Shutdown API and Library OS Signals > **EPIC position**: Roadmap step 19. Breaking removal after all declared > compatibility, migration, deprecation, and release gates have been satisfied. @@ -48,7 +48,7 @@ The separate `Started` oneshot startup-notification API remains unchanged. ## Start Gate Evidence checked on 2026-11-10 against `torrust/develop` at `1df1ecdf0`. The full -evidence goes in this issue's `verification.md` (SI-18's gate evidence is its +evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate evidence is its `manual-verification-evidence.md`). - [x] SI-18 (#2751) is done (PRs #2752, #2793, close-out #2797). `torrust-server-lib` @@ -161,6 +161,60 @@ evidence goes in this issue's `verification.md` (SI-18's gate evidence is its - Q4 is resolved. Q5's process-wrapper verification rule is required for final end-to-end removal verification. +## Architectural Decisions + +- Related ADRs: `docs/adrs/20260902074438_adopt_supervised_cancellation_tree_for_shutdown.md` + (the token lifecycle that replaces `Halted`) and + `docs/adrs/20260629000000_adopt_independent_package_versioning.md`. +- ADRs to create: none known. + +## Implementation Plan + +Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`. + +| ID | Status | Task | Notes / Expected Output | +| --- | ------ | ---- | ----------------------- | +| T1 | TODO | Wait for `torrust-server-lib` 0.6.0 (torrust/torrust-server-lib#5, PR 6) to be merged and published by the maintainer. Develop against a temporary `[patch.crates-io]` override only. | The override is removed before the implementation PR is ready; `cargo check` resolves 0.6.0 from crates.io. | +| T2 | TODO | `udp-server`: remove `Server::start`, legacy `Running`, `Server::stop`, `Launcher::run_with_graceful_shutdown`, `Spawner::spawn_launcher`, `LaunchRequest`, `legacy_stop_requested`, `halt_requested`, and the `global_shutdown_signal` use. | Legacy-only tests removed; token lifecycle tests stay. | +| T3 | TODO | `axum-http-server`, `axum-rest-api-server`, `axum-health-check-api-server`, `axum-server`: remove the legacy `start`/`stop`, `halt_task`, `rx_halt`, `RunningServer` and `graceful_shutdown`. | Token-aware paths keep their child ownership and join behavior. | +| T4 | TODO | Root: remove `HaltSignal` and `NestedServerTask` and their tests; bump `torrust-server-lib` to 0.6.0 in every `Cargo.toml`; drop every `#[allow(deprecated)]` added by SI-18 and the compat tests that exist only for removed symbols. | `cargo check --workspace --all-targets` warning-free. | +| T5 | TODO | Update docs: the migration guide `docs/features/shutdown-process/legacy-api-migration.md` (removed, with history), the shutdown-process docs, and the EPIC row. | Workspace search finds legacy symbols only in archived history. | +| T6 | TODO | Verify and record evidence: searches, deterministic tests, SIGINT/SIGTERM for the tracker and both standalone examples, container check. | `manual-verification-evidence.md`. | + +## Commit Points + +| Task | Coherent change set | Commit policy | +| ---- | ------------------- | ------------- | +| T1 | Dependency bump to 0.6.0 | Commit after focused validation. | +| T2 | `udp-server` removal | Commit after focused validation and required review. | +| T3 | Axum packages removal | Commit after focused validation and required review. | +| T4 | Root types, allowances and compat tests | Commit after focused validation and required review. | +| T5 | Documentation | Commit after the last production change. | +| T6 | Verification evidence | Commit after the last production change. | + +Sign every commit with GPG. + +## Progress Tracking + +### Workflow Checkpoints + +- [x] Folder-style spec drafted in `docs/issues/drafts/`, moved to `docs/issues/open/` +- [x] Spec reviewed and approved by the maintainer (issue creation and spec-only PR approved in chat, 2026-11-10) +- [x] GitHub issue created and issue number added to this spec (#2801) +- [ ] Spec-only PR merged into `develop` before implementation +- [ ] `torrust-server-lib` 0.6.0 published +- [ ] Implementation completed +- [ ] Automatic verification completed (`linter all`, relevant tests, pre-push checks) +- [ ] Manual verification scenarios executed and recorded in `manual-verification-evidence.md` +- [ ] Acceptance criteria reviewed after implementation and updated with evidence +- [ ] Independent reviewer reports recorded in `agent-review-reports.md` +- [ ] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/` + +### Progress Log + +- 2026-11-10 14:00 UTC - AI agent (Claude Sonnet 5.5) - Refreshed the draft after SI-18: recorded the start-gate evidence and the maintainer's approval (chat, 2026-11-10) ending the `torrust-server-lib` 0.5.x window with 0.6.0 as the removal release and 4.0.0 as the root target; split the supervisor consolidation into a follow-up; companion removal in torrust/torrust-server-lib#5 (PR 6). +- 2026-11-10 UTC - AI agent (Claude Sonnet 5.5) - Created issue #2801 and moved the spec to `docs/issues/open/`. + ## Rollback This is a breaking removal. Revert the complete removal commit/release to the diff --git a/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/verification.md b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md similarity index 96% rename from docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/verification.md rename to docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md index d75b0764a7..d167effd09 100644 --- a/docs/issues/drafts/1488-si-19-remove-legacy-shutdown-api/verification.md +++ b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md @@ -1,6 +1,6 @@ # Verification Evidence — Legacy Shutdown API Removal -> **Status**: Not started — do not populate implementation evidence until every +> **Status**: Not started - do not populate implementation evidence until every > SI-19 start-gate condition and the declared external compatibility window are met. ## Environment From 4026002d744f3de378dd2ae4bd2218852c2b604c Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 13:31:09 +0000 Subject: [PATCH 03/10] docs(issues): [#2801] address review of the SI-19 specification Co-Authored-By: Claude Sonnet 5.5 --- .../ISSUE.md | 131 ++++++++++++++---- .../manual-verification-evidence.md | 8 +- 2 files changed, 111 insertions(+), 28 deletions(-) diff --git a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md index d205e4da2c..20fb123b47 100644 --- a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md +++ b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2801 spec-path: docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md branch: "2801-remove-legacy-shutdown-api-spec" related-pr: null -last-updated-utc: "2026-11-10 14:00" +last-updated-utc: "2026-11-10 13:30" semantic-links: skill-links: - create-issue @@ -58,7 +58,7 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev ends when the maintainer approves publishing 0.6.0 (SI-18, Versioning Decisions). The maintainer gave that approval in chat on 2026-11-10 and confirmed 0.6.0 as the `torrust-server-lib` removal release and 4.0.0 as the - root release target. The maintainer publishes 0.6.0 as part of this task. + root release target. 0.6.0 itself is an external dependency (below), not part of this task. The unpublished package crates and the root `HaltSignal`/`NestedServerTask` have never been in a published release and have no public window. - [x] HTTP tracker, REST API, health-check API and UDP tracker application @@ -71,10 +71,11 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev users of the legacy API are the deprecated symbols themselves, their own tests and compat tests, each marked `#[allow(deprecated)]`. - [x] Q5's process-wrapper rule is resolved (`docs/containers.md#stopping-the-tracker`). -- [ ] `torrust-server-lib` 0.6.0 (removal release) is ready: companion issue and - PR in that repository (session `server-lib-060`), release notes in its - `CHANGELOG.md`. The maintainer publishes it to crates.io after merge. - The implementation PR here cannot go green before publication. +- [x] `torrust-server-lib` 0.6.0, the removal release, is published: issue + torrust/torrust-server-lib#5, PR torrust/torrust-server-lib/pull/6 (merged + into `main` at `2dd04f4`), release notes in its `CHANGELOG.md`; crates.io + reports `max_version` 0.6.0 (checked 2026-11-10). This is an external + dependency this task waits for; the maintainer published it. ## Scope @@ -82,8 +83,9 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev - Remove deprecated `Halted` shutdown channels, legacy server stop triggers, and `shutdown_signal`/`shutdown_signal_with_message` helpers. -- Remove `global_shutdown_signal()` and any library-level SIGINT/SIGTERM - subscription from `torrust-server-lib` and server packages. +- Remove `global_shutdown_signal()` (removed upstream in `torrust-server-lib` + 0.6.0; here, its last use in `udp-server`) and any library-level SIGINT/SIGTERM + subscription from the server packages. - Remove legacy-only compatibility tests and documentation. - Update Rust documentation, package release notes, and migration guidance to state that executables own OS signals and servers accept in-process @@ -96,9 +98,15 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev types, which have no production consumer after SI-14. - Bump `torrust-server-lib` to 0.6.0 and remove the `Halted`/`global_shutdown_signal` imports and the `#[allow(deprecated)]` markers that guarded them. -- Remove `axum-server`'s `graceful_shutdown` and the legacy `start`/`stop`, - `Running.halt_task` and `rx_halt` entry points of the HTTP, REST API and - health-check API servers (the list SI-18 deprecated). +- Remove every item SI-18 deprecated in this repository: the complete list is + the in-scope list of the closed SI-18 spec + (`docs/issues/closed/2751-1488-si-18-deprecate-legacy-shutdown-api/ISSUE.md`), + checked against the `#[deprecated]` attributes in the tree. It includes + `axum-server`'s `graceful_shutdown`; the legacy `start`, `start_with_health_check`, + `stop`, `Running` state, `Running::new`, `halt_task` and `rx_halt` of the HTTP, + REST API, health-check API and UDP servers; and the aliases that name the legacy + states (`RunningHttpServer`, `RunningApiServer`, `RunningUdpServer`). The workspace + search in Acceptance Criteria catches any residue. ### Out of scope @@ -107,9 +115,9 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev the health-check join order. This is a refactor, not a removal of a deprecated symbol, so it would widen the breaking surface (Removal Constraint 1). The maintainer agreed on 2026-11-10 to split it into its own follow-up issue. -- Publishing `torrust-server-lib` 0.6.0 (the maintainer does it; its removal PR - lives in the `torrust-server-lib` repository). - +- The `torrust-server-lib` 0.6.0 removal and its publication: an external + dependency this task waits for, done in the `torrust-server-lib` repository + (torrust/torrust-server-lib#5, PR 6) and published by the maintainer. - Changing cancellation-tree behavior, component child ownership, timeout policy, exit-code policy, or readiness behavior. - Removing the `Started` oneshot startup-notification API. @@ -156,7 +164,7 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev - SI-18 is complete and the `torrust-server-lib` 0.5.x support window has ended (approved 2026-11-10); the unpublished package crates and the root types need no window (SI-18, Versioning Decisions). - SI-11 through SI-17, SI-23, and SI-24 token-lifecycle migrations are complete. -- `torrust-server-lib` 0.6.0 published to crates.io (companion issue and PR in that repository). +- `torrust-server-lib` 0.6.0 published to crates.io (external dependency; done 2026-11-10, torrust/torrust-server-lib#5 and PR 6). - #1588 final inventory evidence is complete (closed). - Q4 is resolved. Q5's process-wrapper verification rule is required for final end-to-end removal verification. @@ -174,10 +182,10 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`. | ID | Status | Task | Notes / Expected Output | | --- | ------ | ---- | ----------------------- | -| T1 | TODO | Wait for `torrust-server-lib` 0.6.0 (torrust/torrust-server-lib#5, PR 6) to be merged and published by the maintainer. Develop against a temporary `[patch.crates-io]` override only. | The override is removed before the implementation PR is ready; `cargo check` resolves 0.6.0 from crates.io. | -| T2 | TODO | `udp-server`: remove `Server::start`, legacy `Running`, `Server::stop`, `Launcher::run_with_graceful_shutdown`, `Spawner::spawn_launcher`, `LaunchRequest`, `legacy_stop_requested`, `halt_requested`, and the `global_shutdown_signal` use. | Legacy-only tests removed; token lifecycle tests stay. | -| T3 | TODO | `axum-http-server`, `axum-rest-api-server`, `axum-health-check-api-server`, `axum-server`: remove the legacy `start`/`stop`, `halt_task`, `rx_halt`, `RunningServer` and `graceful_shutdown`. | Token-aware paths keep their child ownership and join behavior. | -| T4 | TODO | Root: remove `HaltSignal` and `NestedServerTask` and their tests; bump `torrust-server-lib` to 0.6.0 in every `Cargo.toml`; drop every `#[allow(deprecated)]` added by SI-18 and the compat tests that exist only for removed symbols. | `cargo check --workspace --all-targets` warning-free. | +| T1 | TODO | Wait for `torrust-server-lib` 0.6.0 (done) and branch from the merged spec. No change and no commit. | Recorded in the progress log only. | +| T2 | TODO | `udp-server`: remove `Server::start`, legacy `Running` and `RunningUdpServer`, `Server::stop`, `Launcher::run_with_graceful_shutdown`, `Spawner::spawn_launcher`, `LaunchRequest`, `legacy_stop_requested`, `halt_requested`, and the `global_shutdown_signal` use. | Legacy-only tests removed; token lifecycle tests stay. | +| T3 | TODO | `axum-http-server`, `axum-rest-api-server`, `axum-health-check-api-server`, `axum-server`: remove the legacy `start`, `start_with_health_check`, `stop`, `Running` structs and aliases, `Running::new`, `halt_task`, `rx_halt`, `RunningServer` and `graceful_shutdown`. | Token-aware paths keep their child ownership and join behavior. | +| T4 | TODO | Root: remove `HaltSignal` and `NestedServerTask` and their tests; bump `torrust-server-lib` to 0.6.0 in every `Cargo.toml`; drop every `#[allow(deprecated)]` added by SI-18 and the compat tests that exist only for removed symbols. | The bump lands with the removals, since 0.6.0 removes `Halted` and an earlier bump would not build. `cargo check --workspace --all-targets` warning-free. | | T5 | TODO | Update docs: the migration guide `docs/features/shutdown-process/legacy-api-migration.md` (removed, with history), the shutdown-process docs, and the EPIC row. | Workspace search finds legacy symbols only in archived history. | | T6 | TODO | Verify and record evidence: searches, deterministic tests, SIGINT/SIGTERM for the tracker and both standalone examples, container check. | `manual-verification-evidence.md`. | @@ -185,10 +193,10 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`. | Task | Coherent change set | Commit policy | | ---- | ------------------- | ------------- | -| T1 | Dependency bump to 0.6.0 | Commit after focused validation. | +| T1 | None (wait only) | No commit. | | T2 | `udp-server` removal | Commit after focused validation and required review. | | T3 | Axum packages removal | Commit after focused validation and required review. | -| T4 | Root types, allowances and compat tests | Commit after focused validation and required review. | +| T4 | Root types, allowances, compat tests and the `torrust-server-lib` 0.6.0 bump | Commit after focused validation and required review. Bumping in the same commit keeps the tree building. | | T5 | Documentation | Commit after the last production change. | | T6 | Verification evidence | Commit after the last production change. | @@ -202,7 +210,7 @@ Sign every commit with GPG. - [x] Spec reviewed and approved by the maintainer (issue creation and spec-only PR approved in chat, 2026-11-10) - [x] GitHub issue created and issue number added to this spec (#2801) - [ ] Spec-only PR merged into `develop` before implementation -- [ ] `torrust-server-lib` 0.6.0 published +- [x] `torrust-server-lib` 0.6.0 published (external dependency, 2026-11-10) - [ ] Implementation completed - [ ] Automatic verification completed (`linter all`, relevant tests, pre-push checks) - [ ] Manual verification scenarios executed and recorded in `manual-verification-evidence.md` @@ -212,8 +220,83 @@ Sign every commit with GPG. ### Progress Log -- 2026-11-10 14:00 UTC - AI agent (Claude Sonnet 5.5) - Refreshed the draft after SI-18: recorded the start-gate evidence and the maintainer's approval (chat, 2026-11-10) ending the `torrust-server-lib` 0.5.x window with 0.6.0 as the removal release and 4.0.0 as the root target; split the supervisor consolidation into a follow-up; companion removal in torrust/torrust-server-lib#5 (PR 6). -- 2026-11-10 UTC - AI agent (Claude Sonnet 5.5) - Created issue #2801 and moved the spec to `docs/issues/open/`. +- 2026-11-10 12:52 UTC - AI agent (Claude Sonnet 5.5) - Refreshed the draft after SI-18: recorded the start-gate evidence and the maintainer's approval (chat, 2026-11-10) ending the `torrust-server-lib` 0.5.x window with 0.6.0 as the removal release and 4.0.0 as the root target; split the supervisor consolidation into a follow-up; companion removal in torrust/torrust-server-lib#5 (PR 6). +- 2026-11-10 13:04 UTC - AI agent (Claude Sonnet 5.5) - Created issue #2801, moved the spec to `docs/issues/open/` and opened the spec-only PR 2803. +- 2026-11-10 13:30 UTC - AI agent (Claude Sonnet 5.5) - Addressed the review of PR 2803 (F1 to F7): full removal list by reference to SI-18, T1 as a wait-only task with the bump in T4, one wording for the 0.6.0 dependency, real timestamps, the verification sections, and the evidence file matched to the gate. `torrust-server-lib` 0.6.0 was published meanwhile (crates.io `max_version` 0.6.0). + +## Design and Ownership Review + +Not applicable: this task only removes deprecated entry points and their tests. It +adds no task, process, readiness wait or resource owner. Removal Constraint 3 +requires each token-aware lifecycle path to keep owning and joining its children; +the deterministic tests in the Verification Plan prove it. + +## Verification Plan + +### Automatic Checks + +- `linter all` +- `cargo check --workspace --all-targets` warning-free, with no `#[allow(deprecated)]` left +- `cargo test --workspace` and the focused tests of the changed packages +- Pre-push checks before the implementation push + +### Manual Verification Scenarios + +Status values: `TODO`, `IN_PROGRESS`, `DONE`, `FAILED`, `BLOCKED`. + +Executable-boundary verification follows the EPIC protocol (signal each direct PID, bounded wait, exit status, bindings released). + +| ID | Scenario | Human-oriented command/steps | Expected Result | Status | Evidence | +| -- | -------- | ---------------------------- | --------------- | ------ | -------- | +| M1 | Start-gate evidence | Link SI-18 evidence, the migration issues, #1588, Q5, the approval and the 0.6.0 release. | Every gate item has a link or command output. | TODO | `manual-verification-evidence.md` | +| M2 | Legacy symbols removed | `git grep` for `Halted`, `shutdown_signal`, `global_shutdown_signal`, `HaltSignal`, `NestedServerTask`, `run_with_graceful_shutdown`, `spawn_launcher`, `LaunchRequest` and `tokio::signal` outside executables. | Only archived history matches. | TODO | `manual-verification-evidence.md` | +| M3 | Token lifecycle owns completion | Run the component tests that cancel an injected token. | Owned children joined; no OS signal needed. | TODO | `manual-verification-evidence.md` | +| M4 | Tracker and standalone binaries | SIGINT and SIGTERM to the tracker and both standalone examples. | One application-owned shutdown sequence each; bindings released. | TODO | `manual-verification-evidence.md` | +| M5 | Container / service manager | Stop the container per `docs/containers.md#stopping-the-tracker`. | Orderly shutdown within the Q4 deadline; result per Q3. | TODO | `manual-verification-evidence.md` | + +Record every command result with its toolchain or runtime. If a scenario fails, +record the failure and diagnosis in the progress log before proceeding. + +### Disposable Verification Scripts + +None. + +### Acceptance Verification + +| AC | Status | Evidence | +| -- | ------ | -------- | +| Start-gate evidence complete and reviewed | TODO | M1 | +| Legacy API removed, `Started` kept and tested | TODO | M2 and the package tests | +| No OS-signal subscription in server libraries | TODO | M2 | +| No legacy reference outside archived history | TODO | M2 | +| Binaries handle SIGINT/SIGTERM only at their boundaries | TODO | M4 | +| Deterministic token tests | TODO | M3 | +| End-to-end SIGINT/SIGTERM, one sequence | TODO | M4 | +| Container and service-manager verification | TODO | M5 | +| `linter all` passes | TODO | Pre-commit hook output | + +## Risks and Trade-offs + +- A breaking removal: external consumers of `torrust-server-lib` 0.5.x that did not + migrate stop compiling against 0.6.0. The 0.5.0 changelog told them. +- Removing the legacy-only tests removes coverage of paths that no longer exist; the + token lifecycle tests keep the coverage of the supported paths. +- The five package crates are unpublished, so their removal needs no support window + (SI-18, Versioning Decisions); re-check if #2583 publishes before SI-19 lands. + +## Implementation Completion Review + +- Retrospective: decide after implementation; if none is needed, add a progress-log + entry saying why. +- The independent reviewer records its result in `agent-review-reports.md` using + `docs/templates/AGENT-REVIEW-REPORTS.md`. + +## References + +- Parent EPIC: #1488 (roadmap row 19) +- Related issues: #2751 (SI-18), #1588, #2482, #2583 +- External: torrust/torrust-server-lib#5 and PR 6 (0.6.0 removal) +- Q4 and Q5: `docs/features/shutdown-process/questions.md` ## Rollback diff --git a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md index d167effd09..c9a0fa2ffc 100644 --- a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md +++ b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/manual-verification-evidence.md @@ -9,14 +9,14 @@ - OS: - Rust version (`rustc --version`): - Tracker commit/branch: -- `torrust-server-lib` breaking release/version: +- `torrust-server-lib` breaking release/version: 0.6.0 ## Start-Gate Evidence -- [ ] Link completed SI-18 deprecation evidence and support-window end date. -- [ ] Link every completed token-lifecycle migration (SI-11 through SI-17). +- [ ] Link completed SI-18 deprecation evidence (#2751, PRs 2752, 2793, 2797). +- [ ] Link the completed token-lifecycle migrations (SI-11 through SI-17, SI-23 #2449, SI-24 #2450). - [ ] Link #1588 final task inventory. -- [ ] Link external breaking-release notes and maintainer timing approval. +- [ ] Link the maintainer approval ending the 0.5.x window (no fixed end date) and the `torrust-server-lib` 0.6.0 release notes (torrust/torrust-server-lib#5, PR 6). - [ ] Link Q4/Q5 decisions and deployment/process-wrapper policy. ## Source and Deterministic Tests From d8436d5fe5c3ba0a26918b18c06e81327845acee Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 13:36:46 +0000 Subject: [PATCH 04/10] docs(issues): [#2801] require the implementation completion review Co-Authored-By: Claude Sonnet 5.5 --- .../2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md index 20fb123b47..79218be777 100644 --- a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md +++ b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md @@ -215,6 +215,7 @@ Sign every commit with GPG. - [ ] Automatic verification completed (`linter all`, relevant tests, pre-push checks) - [ ] 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/` @@ -286,8 +287,11 @@ None. ## Implementation Completion Review -- Retrospective: decide after implementation; if none is needed, add a progress-log - entry saying why. +- Before closing #2801, review what the implementation discovered. If it found + anything material, create `implementation-retrospective.md` from + `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`. From 4b90bc82a6cd6bad975de1bc3addf9617dc6a232 Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 13:59:10 +0000 Subject: [PATCH 05/10] docs(issues): [#2801] reconcile the SI-19 spec with the second review Co-Authored-By: Claude Sonnet 5.5 --- .../ISSUE.md | 33 ++++++++++++------- 1 file changed, 21 insertions(+), 12 deletions(-) diff --git a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md index 79218be777..14d607633a 100644 --- a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md +++ b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2801 spec-path: docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md branch: "2801-remove-legacy-shutdown-api-spec" related-pr: null -last-updated-utc: "2026-11-10 13:30" +last-updated-utc: "2026-11-10 14:05" semantic-links: skill-links: - create-issue @@ -58,7 +58,9 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev ends when the maintainer approves publishing 0.6.0 (SI-18, Versioning Decisions). The maintainer gave that approval in chat on 2026-11-10 and confirmed 0.6.0 as the `torrust-server-lib` removal release and 4.0.0 as the - root release target. 0.6.0 itself is an external dependency (below), not part of this task. + root release target. SI-18 counted the publication of 0.6.0 as part of SI-19; it was completed in + the `torrust-server-lib` repository before implementation, so this task only + waits for it (below). The unpublished package crates and the root `HaltSignal`/`NestedServerTask` have never been in a published release and have no public window. - [x] HTTP tracker, REST API, health-check API and UDP tracker application @@ -75,7 +77,8 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev torrust/torrust-server-lib#5, PR torrust/torrust-server-lib/pull/6 (merged into `main` at `2dd04f4`), release notes in its `CHANGELOG.md`; crates.io reports `max_version` 0.6.0 (checked 2026-11-10). This is an external - dependency this task waits for; the maintainer published it. + dependency this task waits for; the maintainer published it, which is the + publication SI-18 assigned to SI-19. ## Scope @@ -98,11 +101,13 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev types, which have no production consumer after SI-14. - Bump `torrust-server-lib` to 0.6.0 and remove the `Halted`/`global_shutdown_signal` imports and the `#[allow(deprecated)]` markers that guarded them. -- Remove every item SI-18 deprecated in this repository: the complete list is - the in-scope list of the closed SI-18 spec - (`docs/issues/closed/2751-1488-si-18-deprecate-legacy-shutdown-api/ISSUE.md`), - checked against the `#[deprecated]` attributes in the tree. It includes - `axum-server`'s `graceful_shutdown`; the legacy `start`, `start_with_health_check`, +- Remove every item SI-18 deprecated in this repository. The complete list is the + 27 shutdown-related `#[deprecated]` attributes in the tree, and T2 to T4 name each + one. SI-18's in-scope list + (`docs/issues/closed/2751-1488-si-18-deprecate-legacy-shutdown-api/ISSUE.md`) is a + starting point, not the complete list: it omits the aliases and the whole `Running` + structs, and it names the private HTTP `Launcher::start`, which carries + `#[allow(deprecated)]`, not `#[deprecated]`. The set includes `axum-server`'s `graceful_shutdown`; the legacy `start`, `start_with_health_check`, `stop`, `Running` state, `Running::new`, `halt_task` and `rx_halt` of the HTTP, REST API, health-check API and UDP servers; and the aliases that name the legacy states (`RunningHttpServer`, `RunningApiServer`, `RunningUdpServer`). The workspace @@ -115,9 +120,10 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev the health-check join order. This is a refactor, not a removal of a deprecated symbol, so it would widen the breaking surface (Removal Constraint 1). The maintainer agreed on 2026-11-10 to split it into its own follow-up issue. -- The `torrust-server-lib` 0.6.0 removal and its publication: an external - dependency this task waits for, done in the `torrust-server-lib` repository - (torrust/torrust-server-lib#5, PR 6) and published by the maintainer. +- The `torrust-server-lib` 0.6.0 removal and its publication: SI-18 assigned the + publication to SI-19, but it was done in the `torrust-server-lib` repository + (torrust/torrust-server-lib#5, PR 6) and published by the maintainer before + implementation, so it is an external dependency this task only waits for. - Changing cancellation-tree behavior, component child ownership, timeout policy, exit-code policy, or readiness behavior. - Removing the `Started` oneshot startup-notification API. @@ -222,8 +228,11 @@ Sign every commit with GPG. ### Progress Log - 2026-11-10 12:52 UTC - AI agent (Claude Sonnet 5.5) - Refreshed the draft after SI-18: recorded the start-gate evidence and the maintainer's approval (chat, 2026-11-10) ending the `torrust-server-lib` 0.5.x window with 0.6.0 as the removal release and 4.0.0 as the root target; split the supervisor consolidation into a follow-up; companion removal in torrust/torrust-server-lib#5 (PR 6). -- 2026-11-10 13:04 UTC - AI agent (Claude Sonnet 5.5) - Created issue #2801, moved the spec to `docs/issues/open/` and opened the spec-only PR 2803. +- 2026-11-10 13:04 UTC - AI agent (Claude Sonnet 5.5) - Created issue #2801 and moved the spec to `docs/issues/open/`. - 2026-11-10 13:30 UTC - AI agent (Claude Sonnet 5.5) - Addressed the review of PR 2803 (F1 to F7): full removal list by reference to SI-18, T1 as a wait-only task with the bump in T4, one wording for the 0.6.0 dependency, real timestamps, the verification sections, and the evidence file matched to the gate. `torrust-server-lib` 0.6.0 was published meanwhile (crates.io `max_version` 0.6.0). +- 2026-11-10 13:06 UTC - AI agent (Claude Sonnet 5.5) - Opened the spec-only PR 2803 (created at 13:06:40 UTC). +- 2026-11-10 13:36 UTC - AI agent (Claude Sonnet 5.5) - Added the implementation-completion-review checkpoint and requirement for Copilot's finding R2 (commit at 13:36:46 UTC). +- 2026-11-10 14:05 UTC - AI agent (Claude Sonnet 5.5) - Edited the spec for the second review of PR 2803: the 0.6.0 wording reconciled with SI-18 (F11), the removal list stated as the 27 `#[deprecated]` attributes (F12), and these log entries and the stamp corrected (F4). The audit record `docs/pr-reviews/pr-2803-review/PR-REVIEW.md` is added in the same round (F8). ## Design and Ownership Review From fbef08dd2abe09f2822c8fa29e144d327ee2f34c Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 14:02:42 +0000 Subject: [PATCH 06/10] docs(pr-reviews): [#2803] add the review audit record Co-Authored-By: Claude Sonnet 5.5 --- docs/pr-reviews/pr-2803-review/PR-REVIEW.md | 285 ++++++++++++++++++++ 1 file changed, 285 insertions(+) create mode 100644 docs/pr-reviews/pr-2803-review/PR-REVIEW.md diff --git a/docs/pr-reviews/pr-2803-review/PR-REVIEW.md b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md new file mode 100644 index 0000000000..13138f6555 --- /dev/null +++ b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md @@ -0,0 +1,285 @@ +--- +semantic-links: + skill-links: + - process-pr-review + related-artifacts: + - .github/skills/dev/pr-reviews/process-pr-review/SKILL.md +--- + + + +# PR #2803 Review Audit + +Source: pull-request reviews and inline review threads for https://github.com/torrust/torrust-tracker/pull/2803. + +## Ownership + +The PR author owns this tracked audit record. Reviewers, including repository review agents, +deliver findings through GitHub and have no repository-artifact obligation. + +- Post-merge workflow approval: N/A + +## Status Values + +- Relationship: `ORIGINAL`, `RE_RAISE_OF:` +- Disposition: `FIXED`, `NO_ACTION`, `SUPERSEDED`, `FOLLOW_UP` +- Thread state: `OPEN`, `RESOLVED`, `NON_RESOLVABLE`, `SUPERSEDED`. `OPEN` applies prospectively + to audits created or updated for approved follow-up work; historical audits remain valid without + bulk migration. +- Severity: `Blocker`, `Major`, `Minor`, `Nit`, `Suggestion`; append `(inferred)` when derived + from free prose. +- Author class: `Copilot`, `Human`, `Unknown` +- Category: `link-integrity`, `formatting`, `metadata`, `testing`, `correctness`, + `documentation`, `maintainability`, `security`, `other` +- An outdated thread whose concern was fixed is `FIXED`/`RESOLVED`, even when GitHub marks the + original thread outdated after the push. For in-PR feedback, use `NO_ACTION`/`SUPERSEDED` only + for a duplicate, superseded, or no-change concern. A post-merge `NO_ACTION` requires maintainer + approval to decline the follow-up work. +- When the current identity cannot resolve a thread (`viewerCanResolve` is `false`), keep the + disposition established from the current tree and record `Thread state=OPEN`. The reviewer or PR + author resolves it; permission says nothing about whether the concern was fixed. + +## Findings + +Two rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da2ce7 review 5842998748 (round 2). `F13` is the second round's `F4`, a re-raise of the first round's `F4`. + +| Finding ID | Review finding reference | Author class | Severity | Category | Relationship | Disposition | Thread state | +| ---------- | ------------------------ | ------------ | -------- | -------- | ------------ | ----------- | ------------ | +| F1 | review-finding:pr-2803-f1 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F2 | review-finding:pr-2803-f2 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F3 | review-finding:pr-2803-f3 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F4 | review-finding:pr-2803-f4 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F5 | review-finding:pr-2803-f5 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F6 | review-finding:pr-2803-f6 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F7 | review-finding:pr-2803-f7 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | +| R1 | review-finding:pr-2803-r1 | Copilot | Minor | documentation | RE_RAISE_OF:F2 | FIXED | RESOLVED | +| R2 | review-finding:pr-2803-r2 | Copilot | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F8 | review-finding:pr-2803-f8 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F9 | review-finding:pr-2803-f9 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F10 | review-finding:pr-2803-f10 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F11 | review-finding:pr-2803-f11 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F12 | review-finding:pr-2803-f12 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | +| F13 | review-finding:pr-2803-f13 | Human | Minor | metadata | RE_RAISE_OF:F4 | FIXED | RESOLVED | + +## Finding Details + +### F1 - The scope list is not the list SI-18 deprecated + +- PR number: 2803 +- Source review ID: 5842604545 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403516 +- Concern: The scope bullet and T3 omit deprecated items whose notes say SI-19 removes them. +- Solution: The scope now points to the 27 deprecated attributes and T2 to T4 name the omitted items. +- Current-tree verification: `git grep -n "start_with_health_check\|RunningHttpServer\|RunningApiServer\|RunningUdpServer" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists them. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525489444 + +### F2 - The T1 commit point is a dependency bump but the plan bumps in T4 + +- PR number: 2803 +- Source review ID: 5842604545 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403530 +- Concern: T1 and T4 disagree about where the bump lands; a bump committed first would not build. +- Solution: T1 is a wait-only task with no commit and the bump is in T4 and its commit point. +- Current-tree verification: Rows T1 and T4 of the Implementation Plan and Commit Points tables were read after the edit. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525489902 + +### F3 - Publishing 0.6.0 is both part of the task and out of scope + +- PR number: 2803 +- Source review ID: 5842604545 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403542 +- Concern: The spec calls the publication part of the task, out of scope and a dependency. +- Solution: One wording: an external dependency this task waits for (corrected again by F11). +- Current-tree verification: `git grep -n "external" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` shows one wording. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525490289 + +### F4 - The last-updated stamp and the first log entry are later than their commits + +- PR number: 2803 +- Source review ID: 5842604545 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403557 +- Concern: The stamps read 14:00 UTC, later than the commits that wrote them, and the second log entry has no time. +- Solution: The stamps use the commit times and every entry has a time (residue: F13). +- Current-tree verification: `git log --format=%cI` was compared with the stamps. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525490676 + +### F5 - The spec lacks sections the create-issue skill requires + +- PR number: 2803 +- Source review ID: 5842604545 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403561 +- Concern: Acceptance Verification, Implementation Completion Review, a verification policy and the design review are missing. +- Solution: The sections were added to the spec. +- Current-tree verification: `grep -n "^## " docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists them. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525491135 + +### F6 - The renamed evidence file still describes the old gate + +- PR number: 2803 +- Source review ID: 5842604545 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403567 +- Concern: The checklist asks for a support-window end date and omits SI-23 and SI-24. +- Solution: The checklist matches the gate. +- Current-tree verification: The Start-Gate Evidence section of `manual-verification-evidence.md` was read after the edit. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525491562 + +### F7 - The open gate item cites a working-session label + +- PR number: 2803 +- Source review ID: 5842604545 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403576 +- Concern: The item names a session no reader can resolve. +- Solution: The item cites torrust/torrust-server-lib#5 and PR 6. +- Current-tree verification: `grep -n "server-lib-060" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` prints nothing. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525492049 + +### R1 - Keep the dependency bump with the final consumer removals + +- PR number: 2803 +- Source review ID: 5842654119 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525440797 +- Concern: A standalone T1 bump would not build. +- Solution: Same change as F2. +- Current-tree verification: Same as F2. +- Resolution reference: docs(issues): [#2801] address review of the SI-19 specification +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525505000 + +### R2 - Add the required implementation-completion review + +- PR number: 2803 +- Source review ID: 5842654119 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525440852 +- Concern: The workflow never requires reviewing discoveries or deciding on a retrospective. +- Solution: A checkpoint and a requirement before closing were added. +- Current-tree verification: `grep -n "completion review" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists the checkpoint and the section. +- Resolution reference: docs(issues): [#2801] require the implementation completion review +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525505408 + +### F8 - The review was processed without its audit record + +- PR number: 2803 +- Source review ID: 5842998748 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525702714 +- Concern: The head carries no `docs/pr-reviews/pr-2803-review/PR-REVIEW.md`. +- Solution: This record was added. +- Current-tree verification: `validate-audit-record.py --pr-number 2803` was run on it. +- Resolution reference: docs(pr-reviews): [#2803] add the review audit record +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525745949 + +### F9 - The replies cite branch commit ids + +- PR number: 2803 +- Source review ID: 5842998748 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525702728 +- Concern: Nine replies cite short commit ids. +- Solution: The nine replies were edited to cite commit subjects. +- Current-tree verification: `gh api repos/torrust/torrust-tracker/pulls/2803/comments` shows subjects in the replies. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2803#issuecomment-6769290472 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525746397 + +### F10 - The PR description still describes the old gate + +- PR number: 2803 +- Source review ID: 5842998748 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525702734 +- Concern: The description calls 0.6.0 an open gate item. +- Solution: The description was edited; the conversation response states it. +- Current-tree verification: `gh pr view 2803 --json body` was read after the edit. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2803#issuecomment-6769290472 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525746785 + +### F11 - "Not part of this task" departs from the SI-18 decision + +- PR number: 2803 +- Source review ID: 5842998748 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525702745 +- Concern: SI-18 assigns the publication to SI-19; the spec says the opposite. +- Solution: The gate item and Out of scope say SI-18 assigned it and it was done before implementation. +- Current-tree verification: `grep -n "SI-18 counted\|SI-18 assigned" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists both. +- Resolution reference: docs(issues): [#2801] reconcile the SI-19 spec with the second review +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525747215 + +### F12 - SI-18 in-scope list is not the complete list + +- PR number: 2803 +- Source review ID: 5842998748 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525702753 +- Concern: The sentence says the SI-18 list is complete; it is not. +- Solution: The bullet states the 27 deprecated attributes are the complete list. +- Current-tree verification: `grep -n "27 shutdown-related" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` finds it. +- Resolution reference: docs(issues): [#2801] reconcile the SI-19 spec with the second review +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525747615 + +### F13 - Two stamps still disagree with git log and the forge + +- PR number: 2803 +- Source review ID: 5842998748 +- Reviewer finding ID: F4 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525702760 +- Concern: `last-updated-utc` and the 13:04 entry disagree with `d8436d5fe` and the PR creation time. +- Solution: The entries and the stamp were corrected. +- Current-tree verification: `git log --format=%cI` and `gh pr view 2803 --json createdAt` were compared with the log. +- Resolution reference: docs(issues): [#2801] reconcile the SI-19 spec with the second review +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525747974 + +## Processing Log + +- 2026-11-10 13:27 UTC - Round 1 review of da2ce7 received (seven findings); Copilot review at 13:31 UTC (two comments). +- 2026-11-10 13:36 UTC - Round 1 replies posted and threads resolved; fixes in the commits named above. +- 2026-11-10 13:56 UTC - Round 2 review of da2ce7 received (six findings). +- 2026-11-10 14:00 UTC - Round 2 replies posted (last at 14:00:34 UTC); the audit record was started in this round (F8). + +## Completion Rules + +- Re-derive the reply claim against the current tree before replying or resolving a thread. +- Reply on every resolvable thread before resolving it. +- For an outdated thread whose concern was fixed, record `Disposition=FIXED` and + `Thread state=RESOLVED`, even if GitHub marks the thread outdated after the push. For a + duplicate, superseded, or no-change in-PR thread, reply exactly + `Superseded by : .`, record `Disposition=NO_ACTION` and + `Thread state=SUPERSEDED`, then resolve it. A post-merge `NO_ACTION` requires maintainer + approval to decline the follow-up work. When the current identity cannot resolve a thread + (`viewerCanResolve` is `false`), still reply, keep the disposition established from the current + tree, and record `Thread state=OPEN`; the reviewer or PR author resolves it. +- A consolidated PR conversation response may cover multiple review rounds only when it names + every review ID and every finding ID with its disposition and resolution reference. Record its + durable URL in each related row. +- Cite a fix by its unique Conventional Commit subject or durable reply URL, never by a branch SHA + that can change after a rebase. +- Refresh review threads using GraphQL and confirm that no unresolved actionable thread remains. From 21fd02188a879b0f158a2418769ac3a9f1a1f5b5 Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 14:25:00 +0000 Subject: [PATCH 07/10] docs(issues): [#2801] correct the stamps and wording of the SI-19 spec --- .../2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md index 14d607633a..7f8cec9265 100644 --- a/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md +++ b/docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2801 spec-path: docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md branch: "2801-remove-legacy-shutdown-api-spec" related-pr: null -last-updated-utc: "2026-11-10 14:05" +last-updated-utc: "2026-11-10 14:25" semantic-links: skill-links: - create-issue @@ -105,8 +105,8 @@ evidence goes in this issue's `manual-verification-evidence.md` (SI-18's gate ev 27 shutdown-related `#[deprecated]` attributes in the tree, and T2 to T4 name each one. SI-18's in-scope list (`docs/issues/closed/2751-1488-si-18-deprecate-legacy-shutdown-api/ISSUE.md`) is a - starting point, not the complete list: it omits the aliases and the whole `Running` - structs, and it names the private HTTP `Launcher::start`, which carries + starting point, not the complete list: it omits the aliases and the HTTP and REST `Running` + structs as a whole, and it names the private HTTP `Launcher::start`, which carries `#[allow(deprecated)]`, not `#[deprecated]`. The set includes `axum-server`'s `graceful_shutdown`; the legacy `start`, `start_with_health_check`, `stop`, `Running` state, `Running::new`, `halt_task` and `rx_halt` of the HTTP, REST API, health-check API and UDP servers; and the aliases that name the legacy @@ -232,7 +232,8 @@ Sign every commit with GPG. - 2026-11-10 13:30 UTC - AI agent (Claude Sonnet 5.5) - Addressed the review of PR 2803 (F1 to F7): full removal list by reference to SI-18, T1 as a wait-only task with the bump in T4, one wording for the 0.6.0 dependency, real timestamps, the verification sections, and the evidence file matched to the gate. `torrust-server-lib` 0.6.0 was published meanwhile (crates.io `max_version` 0.6.0). - 2026-11-10 13:06 UTC - AI agent (Claude Sonnet 5.5) - Opened the spec-only PR 2803 (created at 13:06:40 UTC). - 2026-11-10 13:36 UTC - AI agent (Claude Sonnet 5.5) - Added the implementation-completion-review checkpoint and requirement for Copilot's finding R2 (commit at 13:36:46 UTC). -- 2026-11-10 14:05 UTC - AI agent (Claude Sonnet 5.5) - Edited the spec for the second review of PR 2803: the 0.6.0 wording reconciled with SI-18 (F11), the removal list stated as the 27 `#[deprecated]` attributes (F12), and these log entries and the stamp corrected (F4). The audit record `docs/pr-reviews/pr-2803-review/PR-REVIEW.md` is added in the same round (F8). +- 2026-11-10 13:59 UTC - AI agent (Claude Sonnet 5.5) - Edited the spec for the second review of PR 2803: the 0.6.0 wording reconciled with SI-18 (F11), the removal list stated as the 27 `#[deprecated]` attributes (F12), and these log entries and the stamp corrected (F4). The audit record `docs/pr-reviews/pr-2803-review/PR-REVIEW.md` is added in the same round (F8). +- 2026-11-10 14:25 UTC - AI agent (Claude Sonnet 5.5) - Edited the spec for the third review of PR 2803: the stamps now match the commit times (F4) and the removal bullet says the HTTP and REST `Running` structs (F15). ## Design and Ownership Review From f46af575f7ac3fc946d31b8a213d78c800efb85d Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 14:26:16 +0000 Subject: [PATCH 08/10] docs(pr-reviews): [#2803] correct the review audit record Co-Authored-By: Claude Sonnet 5.5 --- docs/pr-reviews/pr-2803-review/PR-REVIEW.md | 81 +++++++++++++++++++-- 1 file changed, 76 insertions(+), 5 deletions(-) diff --git a/docs/pr-reviews/pr-2803-review/PR-REVIEW.md b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md index 13138f6555..02ed19f915 100644 --- a/docs/pr-reviews/pr-2803-review/PR-REVIEW.md +++ b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md @@ -41,7 +41,7 @@ deliver findings through GitHub and have no repository-artifact obligation. ## Findings -Two rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da2ce7 review 5842998748 (round 2). `F13` is the second round's `F4`, a re-raise of the first round's `F4`. +Three rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da2ce7 review 5842998748 (round 2), da2ce7 review 5843390791 (round 3). `F13` is the second round's `F4`, a re-raise of the first round's `F4`. The third round reused the IDs `F4`, `F13`, `F14`, `F15` and `F16`, so its findings are `F14` to `F18`, with the original IDs recorded in the details. | Finding ID | Review finding reference | Author class | Severity | Category | Relationship | Disposition | Thread state | | ---------- | ------------------------ | ------------ | -------- | -------- | ------------ | ----------- | ------------ | @@ -60,6 +60,11 @@ Two rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da | F11 | review-finding:pr-2803-f11 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | | F12 | review-finding:pr-2803-f12 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | | F13 | review-finding:pr-2803-f13 | Human | Minor | metadata | RE_RAISE_OF:F4 | FIXED | RESOLVED | +| F14 | review-finding:pr-2803-f14 | Human | Minor | metadata | RE_RAISE_OF:F13 | FIXED | RESOLVED | +| F15 | review-finding:pr-2803-f15 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F16 | review-finding:pr-2803-f16 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F17 | review-finding:pr-2803-f17 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | +| F18 | review-finding:pr-2803-f18 | Human | Nit | testing | ORIGINAL | FIXED | RESOLVED | ## Finding Details @@ -123,7 +128,7 @@ Two rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da - Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525403561 - Concern: Acceptance Verification, Implementation Completion Review, a verification policy and the design review are missing. - Solution: The sections were added to the spec. -- Current-tree verification: `grep -n "^## " docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists them. +- Current-tree verification: `grep -n "^##" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists them, including the Acceptance Verification subsection. - Resolution reference: docs(issues): [#2801] address review of the SI-19 specification - Follow-up PR URL: N/A - Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525491135 @@ -175,7 +180,7 @@ Two rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da - Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525440852 - Concern: The workflow never requires reviewing discoveries or deciding on a retrospective. - Solution: A checkpoint and a requirement before closing were added. -- Current-tree verification: `grep -n "completion review" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists the checkpoint and the section. +- Current-tree verification: `grep -n -i "completion review" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` lists the checkpoint and the section. - Resolution reference: docs(issues): [#2801] require the implementation completion review - Follow-up PR URL: N/A - Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525505408 @@ -251,19 +256,85 @@ Two rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da - Source review ID: 5842998748 - Reviewer finding ID: F4 - Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525702760 -- Concern: `last-updated-utc` and the 13:04 entry disagree with `d8436d5fe` and the PR creation time. +- Concern: `last-updated-utc` and the 13:04 entry disagree with the commit "docs(issues): [#2801] require the implementation completion review" and the PR creation time. - Solution: The entries and the stamp were corrected. - Current-tree verification: `git log --format=%cI` and `gh pr view 2803 --json createdAt` were compared with the log. - Resolution reference: docs(issues): [#2801] reconcile the SI-19 spec with the second review - Follow-up PR URL: N/A - Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4525747974 +### F14 - Still partly open: the new stamp is later than the commit that wrote it + +- PR number: 2803 +- Source review ID: 5843390791 +- Reviewer finding ID: F4 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526001802 +- Concern: `last-updated-utc` and the 14:05 log entry were stamped later than the commit that wrote them. +- Solution: The log entry is stamped 13:59 and `last-updated-utc` carries the time of the commit that changed it. +- Current-tree verification: `git log --format=%cI` of the commit was compared with the stamp. +- Resolution reference: docs(issues): [#2801] correct the stamps and wording of the SI-19 spec +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526029195 + +### F15 - The audit cites a PR-branch commit id + +- PR number: 2803 +- Source review ID: 5843390791 +- Reviewer finding ID: F13 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526001815 +- Concern: Row F13 names a short commit id. +- Solution: The row names the commit subject; no other commit id remains. +- Current-tree verification: The `open-pull-request` commit-id check and `grep -n "[0-9a-f]\{9\}" docs/pr-reviews/pr-2803-review/PR-REVIEW.md` find none. +- Resolution reference: docs(pr-reviews): [#2803] correct the review audit record +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526029697 + +### F16 - The Processing Log entry is stamped before two of the replies it records + +- PR number: 2803 +- Source review ID: 5843390791 +- Reviewer finding ID: F14 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526001824 +- Concern: The round 1 entry is stamped 13:36 but the R1 and R2 replies were posted at 13:37. +- Solution: The entry is stamped 13:37. +- Current-tree verification: The reply times were read from the forge. +- Resolution reference: docs(pr-reviews): [#2803] correct the review audit record +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526030146 + +### F17 - SI-18 omits only the HTTP and REST Running structs as a whole + +- PR number: 2803 +- Source review ID: 5843390791 +- Reviewer finding ID: F15 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526001836 +- Concern: The sentence says SI-18 omits the whole `Running` structs; its list names the UDP one. +- Solution: The bullet says the HTTP and REST `Running` structs as a whole. +- Current-tree verification: `grep -n "HTTP and REST" docs/issues/open/2801-1488-si-19-remove-legacy-shutdown-api/ISSUE.md` finds it. +- Resolution reference: docs(issues): [#2801] correct the stamps and wording of the SI-19 spec +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526030611 + +### F18 - Two verification commands do not print what their rows say + +- PR number: 2803 +- Source review ID: 5843390791 +- Reviewer finding ID: F16 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526001849 +- Concern: The grep for the completion review is case-sensitive and the section list omits the Acceptance Verification subsection. +- Solution: Both commands were changed to print what the rows claim. +- Current-tree verification: Both changed commands were run and print the headings. +- Resolution reference: docs(pr-reviews): [#2803] correct the review audit record +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526031112 + ## Processing Log - 2026-11-10 13:27 UTC - Round 1 review of da2ce7 received (seven findings); Copilot review at 13:31 UTC (two comments). -- 2026-11-10 13:36 UTC - Round 1 replies posted and threads resolved; fixes in the commits named above. +- 2026-11-10 13:37 UTC - Round 1 replies posted and threads resolved; fixes in the commits named above. - 2026-11-10 13:56 UTC - Round 2 review of da2ce7 received (six findings). - 2026-11-10 14:00 UTC - Round 2 replies posted (last at 14:00:34 UTC); the audit record was started in this round (F8). +- 2026-11-10 14:26 UTC - Round 3 review of da2ce7 received (approval at 14:23:15 UTC with five findings, `F14` to `F18` here); replies posted between 14:25:40 and 14:25:50 UTC, and the audit corrected in the commit that carries this entry. ## Completion Rules From db644e5532289d71cd8401381c34b52886cdc680 Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 14:47:54 +0000 Subject: [PATCH 09/10] docs(pr-reviews): [#2803] state only what ran in the audit record Co-Authored-By: Claude Sonnet 5.5 --- docs/pr-reviews/pr-2803-review/PR-REVIEW.md | 33 +++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/docs/pr-reviews/pr-2803-review/PR-REVIEW.md b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md index 02ed19f915..cd3c94da0b 100644 --- a/docs/pr-reviews/pr-2803-review/PR-REVIEW.md +++ b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md @@ -41,7 +41,7 @@ deliver findings through GitHub and have no repository-artifact obligation. ## Findings -Three rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da2ce7 review 5842998748 (round 2), da2ce7 review 5843390791 (round 3). `F13` is the second round's `F4`, a re-raise of the first round's `F4`. The third round reused the IDs `F4`, `F13`, `F14`, `F15` and `F16`, so its findings are `F14` to `F18`, with the original IDs recorded in the details. +Four rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da2ce7 review 5842998748 (round 2), da2ce7 review 5843390791 (round 3), da2ce7 review 5843761463 (round 4). `F13` is the second round's `F4`, a re-raise of the first round's `F4`. The third round reused `F4` and `F13`, which became `F14` and `F15` in source order, so its `F14` to `F16` became `F16` to `F18`. The fourth round's `F18` and `F17` collided with those and became `F19` and `F20`; the original IDs are recorded in the details. | Finding ID | Review finding reference | Author class | Severity | Category | Relationship | Disposition | Thread state | | ---------- | ------------------------ | ------------ | -------- | -------- | ------------ | ----------- | ------------ | @@ -65,6 +65,8 @@ Three rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), | F16 | review-finding:pr-2803-f16 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | | F17 | review-finding:pr-2803-f17 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | | F18 | review-finding:pr-2803-f18 | Human | Nit | testing | ORIGINAL | FIXED | RESOLVED | +| F19 | review-finding:pr-2803-f19 | Human | Nit | metadata | ORIGINAL | FIXED | RESOLVED | +| F20 | review-finding:pr-2803-f20 | Human | Nit | testing | ORIGINAL | FIXED | RESOLVED | ## Finding Details @@ -284,7 +286,7 @@ Three rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), - Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526001815 - Concern: Row F13 names a short commit id. - Solution: The row names the commit subject; no other commit id remains. -- Current-tree verification: The `open-pull-request` commit-id check and `grep -n "[0-9a-f]\{9\}" docs/pr-reviews/pr-2803-review/PR-REVIEW.md` find none. +- Current-tree verification: The `open-pull-request` commit-id check prints nothing at this head. - Resolution reference: docs(pr-reviews): [#2803] correct the review audit record - Follow-up PR URL: N/A - Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526029697 @@ -328,6 +330,32 @@ Three rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), - Follow-up PR URL: N/A - Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526031112 +### F19 - Only F4 and F13 were reused + +- PR number: 2803 +- Source review ID: 5843761463 +- Reviewer finding ID: F18 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526286362 +- Concern: The audit says the third round reused five IDs; only `F4` and `F13` collided first. +- Solution: The sentence now names the two reused IDs and the resulting renumbering. +- Current-tree verification: The Findings intro sentence was read after the edit. +- Resolution reference: docs(pr-reviews): [#2803] state only what ran in the audit record +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526307759 + +### F20 - This grep prints 63 lines, not none + +- PR number: 2803 +- Source review ID: 5843761463 +- Reviewer finding ID: F17 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526286383 +- Concern: The F15 verification names a nine-hex grep that prints every review and reply id. +- Solution: The row names only the `open-pull-request` commit-id check, which prints nothing at this head. +- Current-tree verification: The check was run and prints nothing; the grep was removed from the row. +- Resolution reference: docs(pr-reviews): [#2803] state only what ran in the audit record +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526308437 + ## Processing Log - 2026-11-10 13:27 UTC - Round 1 review of da2ce7 received (seven findings); Copilot review at 13:31 UTC (two comments). @@ -335,6 +363,7 @@ Three rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), - 2026-11-10 13:56 UTC - Round 2 review of da2ce7 received (six findings). - 2026-11-10 14:00 UTC - Round 2 replies posted (last at 14:00:34 UTC); the audit record was started in this round (F8). - 2026-11-10 14:26 UTC - Round 3 review of da2ce7 received (approval at 14:23:15 UTC with five findings, `F14` to `F18` here); replies posted between 14:25:40 and 14:25:50 UTC, and the audit corrected in the commit that carries this entry. +- 2026-11-10 14:46 UTC - Round 4 review of da2ce7 received (approval at 14:45:59 UTC with two nits, `F19` and `F20` here); replies posted at 14:47 UTC and the audit edited in the commit that carries this entry. ## Completion Rules From 752fc2e9fa9eaa1f6366dc13f2bb18a16b03a53a Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Tue, 10 Nov 2026 15:06:31 +0000 Subject: [PATCH 10/10] docs(pr-reviews): [#2803] stamp the round 4 log entry at its last reply Co-Authored-By: Claude Sonnet 5.5 --- docs/pr-reviews/pr-2803-review/PR-REVIEW.md | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/docs/pr-reviews/pr-2803-review/PR-REVIEW.md b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md index cd3c94da0b..37c25dbfd3 100644 --- a/docs/pr-reviews/pr-2803-review/PR-REVIEW.md +++ b/docs/pr-reviews/pr-2803-review/PR-REVIEW.md @@ -41,7 +41,7 @@ deliver findings through GitHub and have no repository-artifact obligation. ## Findings -Four rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da2ce7 review 5842998748 (round 2), da2ce7 review 5843390791 (round 3), da2ce7 review 5843761463 (round 4). `F13` is the second round's `F4`, a re-raise of the first round's `F4`. The third round reused `F4` and `F13`, which became `F14` and `F15` in source order, so its `F14` to `F16` became `F16` to `F18`. The fourth round's `F18` and `F17` collided with those and became `F19` and `F20`; the original IDs are recorded in the details. +Five rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), da2ce7 review 5842998748 (round 2), da2ce7 review 5843390791 (round 3), da2ce7 review 5843761463 (round 4), da2ce7 review 5844068957 (round 5). `F13` is the second round's `F4`, a re-raise of the first round's `F4`. The third round reused `F4` and `F13`, which became `F14` and `F15` in source order, so its `F14` to `F16` became `F16` to `F18`. The fourth round's `F18` and `F17` collided with those and became `F19` and `F20`; the fifth round's `F19` became `F21`. The original IDs are recorded in the details. | Finding ID | Review finding reference | Author class | Severity | Category | Relationship | Disposition | Thread state | | ---------- | ------------------------ | ------------ | -------- | -------- | ------------ | ----------- | ------------ | @@ -67,6 +67,7 @@ Four rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), d | F18 | review-finding:pr-2803-f18 | Human | Nit | testing | ORIGINAL | FIXED | RESOLVED | | F19 | review-finding:pr-2803-f19 | Human | Nit | metadata | ORIGINAL | FIXED | RESOLVED | | F20 | review-finding:pr-2803-f20 | Human | Nit | testing | ORIGINAL | FIXED | RESOLVED | +| F21 | review-finding:pr-2803-f21 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | ## Finding Details @@ -356,6 +357,19 @@ Four rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), d - Follow-up PR URL: N/A - Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526308437 +### F21 - This entry is stamped before the replies and the commit it records + +- PR number: 2803 +- Source review ID: 5844068957 +- Reviewer finding ID: F19 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526520408 +- Concern: The round 4 entry is stamped 14:46, before the replies at 14:47:28 and 14:47:30. +- Solution: The entry is stamped 14:47, the time of the replies. +- Current-tree verification: The reply times were read from the forge and compared with the entry. +- Resolution reference: docs(pr-reviews): [#2803] stamp the round 4 log entry at its last reply +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2803#discussion_r4526544980 + ## Processing Log - 2026-11-10 13:27 UTC - Round 1 review of da2ce7 received (seven findings); Copilot review at 13:31 UTC (two comments). @@ -363,7 +377,8 @@ Four rounds: da2ce7 review 5842604545 and Copilot review 5842654119 (round 1), d - 2026-11-10 13:56 UTC - Round 2 review of da2ce7 received (six findings). - 2026-11-10 14:00 UTC - Round 2 replies posted (last at 14:00:34 UTC); the audit record was started in this round (F8). - 2026-11-10 14:26 UTC - Round 3 review of da2ce7 received (approval at 14:23:15 UTC with five findings, `F14` to `F18` here); replies posted between 14:25:40 and 14:25:50 UTC, and the audit corrected in the commit that carries this entry. -- 2026-11-10 14:46 UTC - Round 4 review of da2ce7 received (approval at 14:45:59 UTC with two nits, `F19` and `F20` here); replies posted at 14:47 UTC and the audit edited in the commit that carries this entry. +- 2026-11-10 14:47 UTC - Round 4 review of da2ce7 received (approval at 14:45:59 UTC with two nits, `F19` and `F20` here); replies posted at 14:47 UTC and the audit edited in the commit that carries this entry. +- 2026-11-10 15:06 UTC - Round 5 review of da2ce7 received (approval at 15:04:08 UTC with one finding, `F21` here); the reply was posted at the time stamped here and the audit edited in the commit that carries this entry. ## Completion Rules