diff --git a/docs/adrs/20261111170611_reject_malformed_inbound_protocol_values_unless_clients_need_tolerance.md b/docs/adrs/20261111170611_reject_malformed_inbound_protocol_values_unless_clients_need_tolerance.md index 6b428a203c..79ae0f0968 100644 --- a/docs/adrs/20261111170611_reject_malformed_inbound_protocol_values_unless_clients_need_tolerance.md +++ b/docs/adrs/20261111170611_reject_malformed_inbound_protocol_values_unless_clients_need_tolerance.md @@ -15,8 +15,8 @@ semantic-links: - packages/http-protocol/src/v1/requests/announce.rs - packages/udp-protocol/src/request.rs - packages/primitives/src/peer.rs - - docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md - - docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md + - docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md + - docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md - docs/packages.md --- @@ -118,7 +118,7 @@ reject a bad configuration value. None of them says what to do with a value a cl Announce `left`, `downloaded` and `uploaded` apply the rules above. This records the intended design; the code change is tracked in issue #2850 -([specification](../issues/open/2850-non-negative-number-of-bytes/ISSUE.md)). +([specification](../issues/closed/2850-non-negative-number-of-bytes/ISSUE.md)). - Domain `NumberOfBytes` (in `primitives`) is a private `u64` with no upper bound. - UDP wire type `NumberOfBytes(I64)` and `Request::parse_bytes` stay unchanged. A negative value @@ -137,7 +137,7 @@ an existing implementation) uses `int64_t` for the byte counts, but `uint32_t` f and `uint16_t` for `port`, so unsigned types exist in the format. BEP 3 says only "encoded in base ten ascii". No document says why the counts are signed or what a tracker must do with a negative value. The "Evidence on real clients and other trackers" section of the -[#2838 specification](../issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md) shows that, before the metadata is known, libtorrent sends `left = 16384` +[#2838 specification](../issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md) shows that, before the metadata is known, libtorrent sends `left = 16384` and Transmission sends `left = i64::MAX`; neither sends a negative value. ### Register of tolerances diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md similarity index 87% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md index e5f7a2841e..75fc898ef8 100644 --- a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md +++ b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md @@ -2,14 +2,14 @@ schema-version: 1 doc-type: issue issue-type: bug -status: in-progress +status: done priority: p2 epic: 1347 github-issue: 2838 -spec-path: docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md +spec-path: docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md branch: "2838-udp-reject-negative-announce-bytes" related-pr: 2872 -last-updated-utc: "2026-11-15 21:22" +last-updated-utc: "2026-11-16 15:50" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: related-artifacts: - .github/skills/dev/debugging/fix-bug/SKILL.md - .github/skills/dev/planning/create-issue/SKILL.md - - docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md + - docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md --- @@ -199,12 +199,12 @@ Follows [fix-bug](../../../../.github/skills/dev/debugging/fix-bug/SKILL.md): - [x] Folder-style spec drafted in `docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md` - [x] Spec reviewed and approved by user/maintainer - [x] GitHub issue created and issue number added to this spec -- [ ] Implementation completed (superseded: done on the branch of PR #2839, which was not merged; the implementation is now issue #2850) -- [ ] Automatic verification completed (`linter all`, relevant tests, and any pre-push checks) (superseded: ran on the branch of PR #2839, not merged) -- [ ] Manual verification scenarios executed and recorded in issue-local `manual-verification-evidence.md` (superseded: V1 and V1b describe `develop`; V2 ran on the branch of PR #2839, not merged) -- [ ] Acceptance criteria reviewed after implementation and updated with evidence (superseded: reviewed against the branch of PR #2839, not merged) -- [ ] Implementation completion review recorded -- [ ] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/` +- [x] Implementation completed (by issue #2850, PR #2872; the earlier patch on the branch of PR #2839 was not merged) +- [x] Automatic verification completed (`linter all`, relevant tests, and any pre-push checks) (by the checks and CI of PR #2872; the earlier run on the branch of PR #2839 was not merged) +- [x] Manual verification scenarios executed and recorded (this folder's V1 and V1b describe `develop` before the fix and V2 the unmerged branch of PR #2839; the recheck of the merged fix is section V1 of the manual verification evidence of #2850) +- [x] Acceptance criteria reviewed after implementation and updated with evidence (against `develop` after PR #2872; see the preface of "Acceptance Criteria") +- [x] Implementation completion review recorded +- [x] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/` ### Progress Log @@ -213,20 +213,23 @@ Follows [fix-bug](../../../../.github/skills/dev/debugging/fix-bug/SKILL.md): - 2026-11-12 16:40 UTC - Claude Code (Claude Fable 5.2) - Review round 1 on PR #2839 addressed: typed field enum, `BadRequest` event classification, placement tests, exact-variant handler test, V2 repeated on the committed tree. The maintainer accepted the service-level check as a tactical patch; a follow-up EPIC (draft, no issue yet) will make the domain byte count non-negative by construction. - 2026-11-12 17:41 UTC - Claude Code (Fable 5.2) - The maintainer decided not to merge the tactical patch of PR #2839. The bug is fixed at its root by issue #2850 (`docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md`), whose implementation closes this issue. This specification and its evidence were carried over from the branch of PR #2839 as the record of the analysis, the reproduction and the client evidence. Its implementation plan and commit points describe the patch and are superseded; the tests of that branch are taken over by #2850. - 2026-11-15 21:22 UTC - Claude Code (Opus 5.5) - The implementation of #2850 is PR #2872, which closes this issue on merge. It took over the red handler test, the `peer_builder` rejection and acceptance cases, the order tests and the `BadRequest` classification test of PR #2839, adapted to the conversion error `FromRequestError`. The UDP recheck with the probe of this folder is section V1 of the #2850 manual verification evidence: `left = -5` now gets ``tracker announce error: Invalid announce request: `left` must not be negative, got -5`` with its transaction id, and no peer is stored. +- 2026-11-16 14:07 UTC - Claude Code (Opus 5.5) - PR #2872 merged on 2026-11-16 14:05 UTC and closed this issue. The criteria are met on `develop` by the implementation of #2850; ticked them and archived this specification to `docs/issues/closed/`. +- 2026-11-16 15:50 UTC - Claude Code (Opus 5.5) - Review of PR #2884: ticked the four implementation checkpoints, which #2850 met, and named where the recheck of the fix is recorded, so the checkpoints and the criteria agree. ## Acceptance Criteria -Superseded (PR #2839, not merged): these criteria were met on the branch of PR #2839 only. None is -met on `develop`. Issue #2850 carries the criteria for the fix. +These criteria were first met on the branch of PR #2839, which was not merged. They are met on +`develop` by the implementation of issue #2850 (PR #2872, merged 2026-11-16), whose own criteria +and evidence cover them. -- [ ] AC1: a UDP announce with `left < 0` gets an error response (action 3) with the request's +- [x] AC1: a UDP announce with `left < 0` gets an error response (action 3) with the request's transaction id, and no peer is registered. -- [ ] AC2: same for `uploaded < 0` and `downloaded < 0` (if approved). -- [ ] AC3: `left = 0`, `left = i64::MAX`, and `num_want = -1` are still accepted. -- [ ] AC4: the rejection emits the existing UDP error event and log. -- [ ] `linter all` exits with code `0` -- [ ] Relevant tests pass -- [ ] Manual verification scenarios are executed and documented in issue-local `manual-verification-evidence.md` +- [x] AC2: same for `uploaded < 0` and `downloaded < 0` (if approved). +- [x] AC3: `left = 0`, `left = i64::MAX`, and `num_want = -1` are still accepted. +- [x] AC4: the rejection emits the existing UDP error event and log. +- [x] `linter all` exits with code `0` +- [x] Relevant tests pass +- [x] Manual verification scenarios are executed and documented in issue-local `manual-verification-evidence.md` (for the fix: section V1 of the manual verification evidence of #2850) ## Verification Plan @@ -270,7 +273,7 @@ not in the tree. ## Implementation Completion Review -- Retrospective: `Not yet assessed` +- Retrospective: not needed. The fix is the implementation of issue #2850, whose completion review covers it. ## References diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-after-fix.txt b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-after-fix.txt similarity index 100% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-after-fix.txt rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-after-fix.txt diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-before-fix.txt b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-before-fix.txt similarity index 100% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-before-fix.txt rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/probe-before-fix.txt diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/red-test-output.txt b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/red-test-output.txt similarity index 100% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/red-test-output.txt rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/red-test-output.txt diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker-log-after-fix.txt b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker-log-after-fix.txt similarity index 100% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker-log-after-fix.txt rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker-log-after-fix.txt diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker.toml b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker.toml similarity index 100% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker.toml rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/tracker.toml diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/udp_announce_probe.py b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/udp_announce_probe.py similarity index 100% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/evidence/udp_announce_probe.py rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/evidence/udp_announce_probe.py diff --git a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md similarity index 98% rename from docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md rename to docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md index bb2f653093..4c510bbf0e 100644 --- a/docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md +++ b/docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md @@ -1,7 +1,7 @@ --- doc-type: manual-verification-evidence -issue-spec: docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md -last-updated-utc: "2026-11-14 08:07" +issue-spec: docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md +last-updated-utc: "2026-11-16 14:07" --- # Manual Verification Evidence diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md b/docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md similarity index 96% rename from docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md rename to docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md index 5d35fe28cc..e4ea1bc6aa 100644 --- a/docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md +++ b/docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md @@ -2,14 +2,14 @@ schema-version: 1 doc-type: issue issue-type: bug -status: in-progress +status: done priority: p2 epic: null github-issue: 2850 -spec-path: docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md +spec-path: docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md branch: "2850-non-negative-number-of-bytes" related-pr: 2872 -last-updated-utc: "2026-11-16 10:16" +last-updated-utc: "2026-11-16 16:24" semantic-links: skill-links: - create-issue @@ -45,8 +45,8 @@ semantic-links: - .github/skills/dev/rust-code-quality/handle-errors-in-code/SKILL.md - docs/benchmarking.md - docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md - - docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md - - docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md + - docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md + - docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/manual-verification-evidence.md - docs/issues/open/2842-inbound-tolerance-adr/ISSUE.md - docs/adrs/20261111170611_reject_malformed_inbound_protocol_values_unless_clients_need_tolerance.md - docs/issues/open/1347-overhaul-packages-testing/EPIC.md @@ -152,7 +152,7 @@ later readers start from the recorded decisions. | Are wrapped inner errors public? When is an error enum `#[non_exhaustive]`? | Public and typed per package. `#[non_exhaustive]` when consumers only report or convert; exhaustive when variants select a recovery action. A generic `Box` is rejected | [Return `Result` only for concretely fallible public APIs](../../../adrs/20261005145329_return_result_only_for_concretely_fallible_public_apis.md) with its amendment of 2026-10-19; [issue #2454 specification](../../closed/2454-1669-mark-public-error-enums-non-exhaustive/ISSUE.md); the [`handle-errors-in-code` skill](../../../../.github/skills/dev/rust-code-quality/handle-errors-in-code/SKILL.md) | | Why are packages treated as separate public APIs? | Each package is versioned and published on its own | [Adopt independent package versioning](../../../adrs/20260629000000_adopt_independent_package_versioning.md); [issue #2583 specification](../../open/2583-1669-first-publish-of-workspace-crates/ISSUE.md) | | May an event carry an internal error type? | No. Events are objective facts with a stable payload | [Events are objective facts](../../../adrs/20260727000000_events_are_objective_facts.md); [general error-events EPIC draft](../../drafts/generalize-error-events/EPIC.md) | -| Is a questionable inbound value refused or tolerated? | Strict by default; a tolerance needs recorded evidence | [Reject malformed inbound protocol values unless real clients need the tolerance](../../../adrs/20261111170611_reject_malformed_inbound_protocol_values_unless_clients_need_tolerance.md), delivered by the spec-only pull request of this issue; [issue #2842 specification](../2842-inbound-tolerance-adr/ISSUE.md) | +| Is a questionable inbound value refused or tolerated? | Strict by default; a tolerance needs recorded evidence | [Reject malformed inbound protocol values unless real clients need the tolerance](../../../adrs/20261111170611_reject_malformed_inbound_protocol_values_unless_clients_need_tolerance.md), delivered by the spec-only pull request of this issue; [issue #2842 specification](../../open/2842-inbound-tolerance-adr/ISSUE.md) | | Which layer refuses a value the wire allows and the domain does not? What has priority over failing fast? | The first conversion into a type the project owns; a strict protocol specification has priority | The same ADR, points 6, 8 and 9 (decided in this review, D2) | | Does any real client send a negative byte count? | None of the clients checked does: libtorrent sends `16384` and Transmission `i64::MAX` when the size is unknown | [Specification of #2838](../2838-1347-udp-reject-negative-announce-bytes/ISSUE.md), "Evidence on real clients and other trackers" | | What do the specifications say about the sign of the byte counts? | BEP 15 and BEP 3 do not say; the libtorrent document uses `int64_t` | [BEP 15](https://www.bittorrent.org/beps/bep_0015.html), [BEP 3](https://www.bittorrent.org/beps/bep_0003.html), [XBT Tracker](https://xbtt.sourceforge.net/udp_tracker_protocol.html), [libtorrent](https://www.libtorrent.org/udp_tracker_protocol.html); see "Research Findings" | @@ -484,7 +484,7 @@ What is taken over, so nothing is lost: | From | What | Where it is now | | --- | --- | --- | | PR #2843, branch `2842-inbound-tolerance-adr` | The ADR, its index entry and the specification of #2842 | Carried over as commits of the spec-only pull request | -| PR #2839, branch `2838-udp-reject-negative-announce-bytes` | The specification of #2838 with the field audit and the client and tracker evidence; the reproduction evidence; the UDP probe script | [`docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/`](../2838-1347-udp-reject-negative-announce-bytes/ISSUE.md), carried over by the spec-only pull request | +| PR #2839, branch `2838-udp-reject-negative-announce-bytes` | The specification of #2838 with the field audit and the client and tracker evidence; the reproduction evidence; the UDP probe script | [`docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md`](../2838-1347-udp-reject-negative-announce-bytes/ISSUE.md), carried over by the spec-only pull request | | PR #2839, the same branch | The tests, in the commits "test(udp-server): reject a negative left in an announce (red)", "test(udp-core): [#2838] cover rejected and accepted byte counts in announce" and "fix(udp-server): [#2838] classify a negative byte count as a bad request" | Not carried over yet. The implementation takes them from that branch and adapts them to the new error | The frontmatter keeps `epic: null`. @@ -696,7 +696,7 @@ with the narrow affected scope, and sign every commit with GPG. - [ ] Reviewer validated acceptance criteria and updated checkboxes - [ ] Independent reviewer reports recorded in issue-local `agent-review-reports.md` when reviewers received this folder-style specification - [x] Committer verified spec progress is up to date before commit -- [ ] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/` +- [x] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/` ### Progress Log @@ -718,29 +718,30 @@ the model that produced them. - 2026-11-15 21:17 UTC - Claude Code (Opus 5.5) - Implemented T0 to T6 on branch `2850-non-negative-number-of-bytes`. T0 added `udp_tracker/announce_once`; the first baseline was discarded because uncommitted T1/T2 edits leaked into its build, and each measurement is now built in a clean worktree (`performance-evidence.md`, lesson added to `docs/benchmarking.md`). T2 named the field with the `ByteCountField` enum (one variant, one message, the field as a matchable value) and moved the peer conversion before the whitelist check, as the order tests of PR #2839 require. The maintainer agreed a 5% tolerance for the UDP benchmark before the after measurement. Load test and UDP pass; HTTP `announce_once` failed the one-sided rule by 0.3% on a path T3 does not add work to, and an interleaved A/B run put it inside the noise: the verdict is the maintainer's. Manual run 1 was discarded for non-monotonic timestamps. No design assumption was invalidated, so no retrospective file. - 2026-11-15 21:22 UTC - Claude Code (Opus 5.5) - Rebased onto `develop` and opened the implementation PR #2872 (closes #2850 and #2838). Updated the #2838 specification and row 12 of the EPIC #1347 table to point to it. - 2026-11-16 10:16 UTC - Claude Code (Opus 5.5) - Recorded two maintainer decisions of 2026-11-16, both given to this session in its conversation with the maintainer: the client-visible changes listed in PR #2872 are approved, and the HTTP `announce_once` result is accepted ("Performance Evidence" and `performance-evidence.md`). +- 2026-11-16 14:07 UTC - Claude Code (Opus 5.5) - PR #2872 merged on 2026-11-16 14:05 UTC and closed #2850 and #2838. Ticked AC1 to AC15 and the general criteria, checked again on `develop` at the merge (no public field and no signed constructor, `left.get() == 0` in the three `is_seeder`, no `validate_number_of_bytes` and no `NumberOfBytesOverflow`, no diff in `packages/udp-protocol`, `u64` REST fields, the ADR in `docs/adrs/index.md`, the `InvalidAnnounceRequest` classification) and by the tests, CI and manual evidence of the PR. Archived this specification and the one of #2838 to `docs/issues/closed/`. ## Acceptance Criteria -- [ ] AC1: `torrust_tracker_primitives::NumberOfBytes` and the HTTP protocol `NumberOfBytes` have no public field and no constructor that takes a signed integer. -- [ ] AC2: the three `is_seeder` implementations compare `left` with zero, and tests cover `left == 0` and `left > 0`, each with `Stopped` and with another event. -- [ ] AC3: `peer_builder::from_request` returns an error that names the field and the value when `bytes_left`, `bytes_uploaded` or `bytes_downloaded` is negative; unit tests cover the three fields and `i64::MIN`. -- [ ] AC4: `peer_builder::from_request` accepts `left` of `0`, `16384` and `i64::MAX`. -- [ ] AC5: `validate_number_of_bytes` does not exist, and no other standalone function validates a byte count. -- [ ] AC6: `peer_builder` does not import the error of the announce service; `UdpAnnounceError` wraps the conversion error as a `source`. -- [ ] AC7: `torrust_tracker_udp_protocol::NumberOfBytes` and `Request::parse_bytes` are unchanged (no diff in `packages/udp-protocol`). -- [ ] AC8: `ParseAnnounceQueryError::NumberOfBytesOverflow` does not exist; for each of `uploaded`, `downloaded` and `left` the HTTP parser refuses a negative value and a value above `u64::MAX` with `InvalidParam`, and accepts `0` and `u64::MAX`. -- [ ] AC9: `AnnounceBuilder::with_downloaded`, `with_uploaded` and `with_left` cannot panic and have no `# Panics` section. -- [ ] AC10: the conversion from the HTTP protocol type to the domain type is infallible, and an HTTP announce with a counter above `i64::MAX` is accepted. -- [ ] AC11: the REST resource fields `uploaded`, `downloaded` and `left` are `u64`, and the JSON of a peer is the same as before for the same peer. -- [ ] AC12: a UDP announce with a negative counter gets a BEP 15 error response with the request's transaction id, the peer is not stored, and the swarm statistics do not change. -- [ ] AC13: an announce with a negative, zero or positive `left` gets the same verdict over UDP and HTTP on a running tracker. -- [ ] AC14: the ADR of issue #2842 is merged, holds the rules listed in D5, and is listed in `docs/adrs/index.md`. -- [ ] AC15: the new UDP error is classified as `ErrorKind::BadRequest`, and the implementation pull request closes issue #2838. -- [ ] `linter all` exits with code `0` -- [ ] Relevant tests pass -- [ ] Manual verification scenarios are executed and documented in issue-local `manual-verification-evidence.md` -- [ ] Acceptance criteria are re-reviewed after implementation and reflect actual behavior -- [ ] Documentation is updated when behavior/workflow changes +- [x] AC1: `torrust_tracker_primitives::NumberOfBytes` and the HTTP protocol `NumberOfBytes` have no public field and no constructor that takes a signed integer. +- [x] AC2: the three `is_seeder` implementations compare `left` with zero, and tests cover `left == 0` and `left > 0`, each with `Stopped` and with another event. +- [x] AC3: `peer_builder::from_request` returns an error that names the field and the value when `bytes_left`, `bytes_uploaded` or `bytes_downloaded` is negative; unit tests cover the three fields and `i64::MIN`. +- [x] AC4: `peer_builder::from_request` accepts `left` of `0`, `16384` and `i64::MAX`. +- [x] AC5: `validate_number_of_bytes` does not exist, and no other standalone function validates a byte count. +- [x] AC6: `peer_builder` does not import the error of the announce service; `UdpAnnounceError` wraps the conversion error as a `source`. +- [x] AC7: `torrust_tracker_udp_protocol::NumberOfBytes` and `Request::parse_bytes` are unchanged (no diff in `packages/udp-protocol`). +- [x] AC8: `ParseAnnounceQueryError::NumberOfBytesOverflow` does not exist; for each of `uploaded`, `downloaded` and `left` the HTTP parser refuses a negative value and a value above `u64::MAX` with `InvalidParam`, and accepts `0` and `u64::MAX`. +- [x] AC9: `AnnounceBuilder::with_downloaded`, `with_uploaded` and `with_left` cannot panic and have no `# Panics` section. +- [x] AC10: the conversion from the HTTP protocol type to the domain type is infallible, and an HTTP announce with a counter above `i64::MAX` is accepted. +- [x] AC11: the REST resource fields `uploaded`, `downloaded` and `left` are `u64`, and the JSON of a peer is the same as before for the same peer. +- [x] AC12: a UDP announce with a negative counter gets a BEP 15 error response with the request's transaction id, the peer is not stored, and the swarm statistics do not change. +- [x] AC13: an announce with a negative, zero or positive `left` gets the same verdict over UDP and HTTP on a running tracker. +- [x] AC14: the ADR of issue #2842 is merged, holds the rules listed in D5, and is listed in `docs/adrs/index.md`. +- [x] AC15: the new UDP error is classified as `ErrorKind::BadRequest`, and the implementation pull request closes issue #2838. +- [x] `linter all` exits with code `0` +- [x] Relevant tests pass +- [x] Manual verification scenarios are executed and documented in issue-local `manual-verification-evidence.md` +- [x] Acceptance criteria are re-reviewed after implementation and reflect actual behavior +- [x] Documentation is updated when behavior/workflow changes ## Verification Plan diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/evidence/manual-run-output.txt b/docs/issues/closed/2850-non-negative-number-of-bytes/evidence/manual-run-output.txt similarity index 100% rename from docs/issues/open/2850-non-negative-number-of-bytes/evidence/manual-run-output.txt rename to docs/issues/closed/2850-non-negative-number-of-bytes/evidence/manual-run-output.txt diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/evidence/regression-green-run.txt b/docs/issues/closed/2850-non-negative-number-of-bytes/evidence/regression-green-run.txt similarity index 100% rename from docs/issues/open/2850-non-negative-number-of-bytes/evidence/regression-green-run.txt rename to docs/issues/closed/2850-non-negative-number-of-bytes/evidence/regression-green-run.txt diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/evidence/regression-red-run.txt b/docs/issues/closed/2850-non-negative-number-of-bytes/evidence/regression-red-run.txt similarity index 100% rename from docs/issues/open/2850-non-negative-number-of-bytes/evidence/regression-red-run.txt rename to docs/issues/closed/2850-non-negative-number-of-bytes/evidence/regression-red-run.txt diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/evidence/tracker-log-rejections.txt b/docs/issues/closed/2850-non-negative-number-of-bytes/evidence/tracker-log-rejections.txt similarity index 100% rename from docs/issues/open/2850-non-negative-number-of-bytes/evidence/tracker-log-rejections.txt rename to docs/issues/closed/2850-non-negative-number-of-bytes/evidence/tracker-log-rejections.txt diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/evidence/tracker.toml b/docs/issues/closed/2850-non-negative-number-of-bytes/evidence/tracker.toml similarity index 100% rename from docs/issues/open/2850-non-negative-number-of-bytes/evidence/tracker.toml rename to docs/issues/closed/2850-non-negative-number-of-bytes/evidence/tracker.toml diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/manual-verification-evidence.md b/docs/issues/closed/2850-non-negative-number-of-bytes/manual-verification-evidence.md similarity index 99% rename from docs/issues/open/2850-non-negative-number-of-bytes/manual-verification-evidence.md rename to docs/issues/closed/2850-non-negative-number-of-bytes/manual-verification-evidence.md index 283d1e10d4..fb7441b856 100644 --- a/docs/issues/open/2850-non-negative-number-of-bytes/manual-verification-evidence.md +++ b/docs/issues/closed/2850-non-negative-number-of-bytes/manual-verification-evidence.md @@ -1,7 +1,7 @@ --- doc-type: manual-verification-evidence -issue-spec: docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md -last-updated-utc: "2026-11-16 08:34" +issue-spec: docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md +last-updated-utc: "2026-11-16 15:50" --- # Manual Verification Evidence diff --git a/docs/issues/open/2850-non-negative-number-of-bytes/performance-evidence.md b/docs/issues/closed/2850-non-negative-number-of-bytes/performance-evidence.md similarity index 98% rename from docs/issues/open/2850-non-negative-number-of-bytes/performance-evidence.md rename to docs/issues/closed/2850-non-negative-number-of-bytes/performance-evidence.md index ca6ddfbf3a..9db9eeb63d 100644 --- a/docs/issues/open/2850-non-negative-number-of-bytes/performance-evidence.md +++ b/docs/issues/closed/2850-non-negative-number-of-bytes/performance-evidence.md @@ -1,7 +1,7 @@ --- doc-type: performance-evidence -issue-spec: docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md -last-updated-utc: "2026-11-16 10:16" +issue-spec: docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md +last-updated-utc: "2026-11-16 14:07" --- # Performance Evidence - Non-Negative Number of Bytes diff --git a/docs/issues/open/1347-overhaul-packages-testing/EPIC.md b/docs/issues/open/1347-overhaul-packages-testing/EPIC.md index 16914380dd..ab97213a75 100644 --- a/docs/issues/open/1347-overhaul-packages-testing/EPIC.md +++ b/docs/issues/open/1347-overhaul-packages-testing/EPIC.md @@ -6,7 +6,7 @@ epic: null github-issue: 1347 spec-path: docs/issues/open/1347-overhaul-packages-testing/EPIC.md epic-owner: josecelano -last-updated-utc: "2026-11-16 09:38" +last-updated-utc: "2026-11-16 14:07" semantic-links: skill-links: - create-issue @@ -97,7 +97,7 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`. | 9 | #2361 - Keep the report-only package coverage summary from failing on a discovery failure | `docs/issues/open/2361-1347-package-coverage-summary-discovery-failure/ISSUE.md` | TODO | Bug follow-up of #2347 (`review-finding:pr-2293-f1`): the #2222 summary check goes red with a JSON parse error when discovery fails. | | 10 | #2637 - Add tests to the axum-rest-api-server package | `docs/issues/closed/2637-1347-add-tests-axum-rest-api-server/ISSUE.md` | DONE | S0 (spec and T1 baseline) merged through #2638; S1 (authentication and shared responses) merged through #2667; S2 (routes) merged through #2687; S3 (auth-key and whitelist contexts) merged through #2702; S4 (torrent and stats contexts) merged through #2718; S5 (server lifecycle) merged through #2744; S6 (crate root, wiring and final tasks) merged through #2772; the issue is closed. Replaces the former draft that was misfiled under #1349. | | 11 | #2824 - Add tests to the primitives package | `docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md` | DONE | S0 (the spec, #2828), S1 (the `PeerRole` JSON casing fix, #2834), S2 (the `peer.rs` tests, #2841), S3 (the configuration defaults and bounded values, #2852) and S4 (`swarm_metadata.rs`, the no-change files, the mutation run, the manual checks, #2864) are merged; the issue is closed. Unit-only lines 60.56% → 94.07%. Findings F1 (fixed through #2811), F2 (fixed in S1), F3 (#2804), F4 (#2823), F6 (#2838, #2850) and F5 (#2876, drafted through #2865) have owners. | -| 12 | #2838 - UDP tracker accepts announces with a negative left, uploaded or downloaded | `docs/issues/open/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md` | IN_PROGRESS | Bug found by the #2824 primitives tests work. Fixed by the standalone issue #2850 (`docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md`): its implementation PR #2872 (open) closes this issue on merge; until then the bug is present on `develop`. The patch of PR #2839 was not merged. | +| 12 | #2838 - UDP tracker accepts announces with a negative left, uploaded or downloaded | `docs/issues/closed/2838-1347-udp-reject-negative-announce-bytes/ISSUE.md` | DONE | Bug found by the #2824 primitives tests work. Fixed by the standalone issue #2850 (`docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md`): its implementation PR #2872 merged on 2026-11-16 and closed this issue. The patch of PR #2839 was not merged; its tests were taken over by PR #2872. | | 13 | #2876 - Move `peer::Id::new` to a realistic test helper and decide whether `peer::fixture` goes behind a `testing` feature | `docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md` | TODO | Finding F5 of #2824. Spec-only PR first; the maintainer answers the design questions Q1-Q7 before implementation. | | 14 | Additional package-testing subissues | Create a folder-style spec when a concrete package need is identified | TODO | Permitted but not required upfront; retain scope in this EPIC. | @@ -353,6 +353,7 @@ For each subissue implementation, the completion policy is: - 2026-11-15 08:37 UTC - Claude Code - #2824 S4 (`swarm_metadata.rs` tests, the no-change rows, T4-T6) re-measured `primitives` unit-only (= aggregate) at lines 94.07% (1,078 / 1,146), regions 95.30%, functions 94.17%, 109 unit tests. The package mutation run (147 mutants) left no non-equivalent survivor after one test fix. Both "Latest" tables carry the final values; the row stays `IN_PROGRESS` until the S4 PR merges and the issue closes. - 2026-11-15 21:07 UTC - Claude Code - #2824 closed by #2864 (merged 2026-11-15 21:05 UTC); row 11 set to `DONE` and the spec archived to `docs/issues/closed/2824-1347-add-tests-primitives/`. - 2026-11-15 21:22 UTC - Claude Code (Opus 5.5) - Row 12 (#2838): the fix is the implementation of the standalone issue #2850, PR #2872 (open), which closes #2838 on merge. It removes the `primitives` test that pinned a negative `left` as a seeder (finding F6 of #2824) and the `-1` rows of the role table. +- 2026-11-16 14:07 UTC - Claude Code (Opus 5.5) - #2838 closed by PR #2872 (merged 2026-11-16 14:05 UTC); row 12 set to `DONE` and the specifications of #2838 and #2850 archived to `docs/issues/closed/`. ## Acceptance Criteria diff --git a/docs/pr-reviews/pr-2884-review/PR-REVIEW.md b/docs/pr-reviews/pr-2884-review/PR-REVIEW.md new file mode 100644 index 0000000000..4c915d5b49 --- /dev/null +++ b/docs/pr-reviews/pr-2884-review/PR-REVIEW.md @@ -0,0 +1,312 @@ +--- +semantic-links: + skill-links: + - process-pr-review + related-artifacts: + - .github/skills/dev/pr-reviews/process-pr-review/SKILL.md +--- + +# PR #2884 Review Audit + +Source: pull-request reviews and inline review threads for https://github.com/torrust/torrust-tracker/pull/2884. + +## 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 + +Round 1 is da2ce7's review `5922865820` (approved) at the head whose only commit is +`chore(issues): archive closed issue #2850 and #2838 specs to docs/issues/closed`. Its four inline findings keep the reviewer's IDs F1 to F4; the review body only +summarizes the verification. + +Round 2 is Copilot's review `5922943922` (commented) at the same head. Its one inline finding has +no reviewer ID, so it gets F5. + +Round 3 is da2ce7's review `5923302003` (changes requested) at the rewritten head whose only +commit is the reworded archive commit. Its four inline findings F5 to F8 collide with existing +audit IDs, so they get F6 to F9 in source order, with the reviewer's ID kept. + +The branch history was rewritten after round 2 (see F1 and F7), so the round 1 and round 2 review +bodies cite a commit id that no longer exists on the branch. That id named the first version of the +commit with the subject `chore(issues): archive closed issue #2850 and #2838 specs to docs/issues/closed`. The id cited by the round 3 and round 4 review bodies names its +reworded, squashed and rebased version, which has the same subject. + +Round 4 is Copilot's review `5923416979` (commented) at the rewritten head. Its one inline finding +has no reviewer ID, so it gets F10. + +Round 5 is da2ce7's review `5923522198` (now `DISMISSED`) at the head whose last commit is +`docs(pr-reviews): [#2850] audit review round 3 of PR #2884`. Its three inline findings F9 to F11 +collide with existing audit IDs, so they get F11 to F13 in source order, with the reviewer's ID kept. + +| Finding ID | Review finding reference | Author class | Severity | Category | Relationship | Disposition | Thread state | +| --- | --- | --- | --- | --- | --- | --- | --- | +| F1 | review-finding:pr-2884-f1 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F2 | review-finding:pr-2884-f2 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F3 | review-finding:pr-2884-f3 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F4 | review-finding:pr-2884-f4 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | +| F5 | review-finding:pr-2884-f5 | Copilot | Suggestion (inferred) | link-integrity | ORIGINAL | NO_ACTION | SUPERSEDED | +| F6 | review-finding:pr-2884-f6 | Human | Major | documentation | ORIGINAL | FIXED | RESOLVED | +| F7 | review-finding:pr-2884-f7 | Human | Minor | other | ORIGINAL | FIXED | RESOLVED | +| F8 | review-finding:pr-2884-f8 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F9 | review-finding:pr-2884-f9 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | +| F10 | review-finding:pr-2884-f10 | Copilot | Nit (inferred) | link-integrity | ORIGINAL | FIXED | RESOLVED | +| F11 | review-finding:pr-2884-f11 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F12 | review-finding:pr-2884-f12 | Human | Minor | other | RE_RAISE_OF:F10 | NO_ACTION | SUPERSEDED | +| F13 | review-finding:pr-2884-f13 | Human | Nit | metadata | ORIGINAL | NO_ACTION | SUPERSEDED | + +## Finding Details + +### F1 - The commit body's `closed #2850` matches the closing-keyword pattern + +- PR number: 2884 +- Source review ID: 5922865820 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4587934600 +- Concern: the body of the archive commit said "PR #2872 merged and closed #2850 and #2838"; `closed #2850` matches the closing-keyword scan of `open-pull-request`, which wants every match to be an issue this PR closes, and a commit message cannot be fixed after the merge. +- Solution: with the maintainer's approval, the commit was reworded ("PR #2872 merged; #2850 and #2838 are closed."), squashed with the fixes of F2 to F4 and force-pushed by `git-bot-push --force-with-lease`. +- Current-tree verification: `git log -1 --format=%B` has no `close`, `fix` or `resolve` keyword followed by an issue number. +- Resolution reference: chore(issues): archive closed issue #2850 and #2838 specs to docs/issues/closed +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588094671 + +### F2 - The 14:10 UTC stamps are later than the commit that carries them + +- PR number: 2884 +- Source review ID: 5922865820 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4587934611 +- Concern: the archive entries of the two specs and the EPIC, and six `last-updated-utc` values, read 14:10 UTC, after the commit's time of 14:07:38 UTC. +- Solution: the stamps of the archive work are 14:07 UTC; the two files changed again for F3 and F4 carry the time of that change. +- Current-tree verification: `grep -rn` of the 14:10 stamp over the six documents that carried it prints nothing. +- Resolution reference: chore(issues): archive closed issue #2850 and #2838 specs to docs/issues/closed +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588095135 + +### F3 - The run script now names paths that did not exist when it ran + +- PR number: 2884 +- Source review ID: 5922865820 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4587934623 +- Concern: the archive had repointed the `probe` and `cfg` paths of the recorded run script of #2850 to `closed/`, so the script no longer matched `evidence/manual-run-output.txt`, which it produced. +- Solution: the two lines are back to the `open/` paths that existed when the script ran; the script is a record, not a link. +- Current-tree verification: lines 51 and 52 of `manual-verification-evidence.md` name `docs/issues/open/`, as the run output does. +- Resolution reference: chore(issues): archive closed issue #2850 and #2838 specs to docs/issues/closed +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588095584 + +### F4 - This ticked criterion and the checkpoints above disagree + +- PR number: 2884 +- Source review ID: 5922865820 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4587934633 +- Concern: the #2838 spec ticked its criteria as met by #2850 while four implementation checkpoints stayed unticked as superseded. +- Solution: the four checkpoints are ticked, each naming #2850 and PR #2872, and the manual-verification checkpoint and criterion name section V1 of the #2850 evidence as the recheck of the fix. +- Current-tree verification: the #2838 checkpoints and criteria are all ticked and name where each was met. +- Resolution reference: chore(issues): archive closed issue #2850 and #2838 specs to docs/issues/closed +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588096023 + +### F5 - A progress-log entry of #2838 names the old `open/` path of #2850 + +- PR number: 2884 +- Source review ID: 5922943922 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4587995593 +- Concern: the #2838 progress-log entry of 2026-11-12 17:41 UTC names + `docs/issues/open/2850-non-negative-number-of-bytes/ISSUE.md`, which this PR archives; Copilot + suggests pointing it to `closed/`. +- Solution: no change; the first reply (https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588096540) was not in the prescribed form, so a second reply gives it (see F8). The entry records where the spec was at that time, and step 4 of + `cleanup-completed-issues` keeps such historical records as they are, as F3 asked for the run + script. The live references to #2850 in the same spec (the `related-artifacts` frontmatter and + the note at the top, which links `../2850-non-negative-number-of-bytes/ISSUE.md`) point to the + archived spec. +- Current-tree verification: the frontmatter of the #2838 spec lists + `docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md`, and its top note's relative link + resolves inside `docs/issues/closed/`. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588303994 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588303994 + +### F6 - The description still claims the run-script change that F3 reverted + +- PR number: 2884 +- Source review ID: 5923302003 +- Reviewer finding ID: F5 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588270939 +- Concern: the description said the commands of the #2850 manual-verification evidence were repointed, which F3 reverted; it did not say that the history was rewritten, nor that the PR adds this audit and ticks four #2838 checkpoints. The merge tool copies the description into the merge commit. +- Solution: the description was edited: the run script is listed with the historical records that keep their paths, the audit and the #2838 checkpoints are listed, and a "History rewritten" section says what the rewrite did. +- Current-tree verification: the description no longer claims the run-script change and has the "History rewritten" section. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588304632 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588304632 + +### F7 - The round-1 fixes and this audit were folded into the archive commit + +- PR number: 2884 +- Source review ID: 5923302003 +- Reviewer finding ID: F6 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588270958 +- Concern: the fixes of F2 to F4 and this audit were squashed into the archive commit, while the skills keep each fix in its own commit and the audit apart; the amend kept the 14:07:38 author date, older than the 15:48 to 16:00 stamps it carries. +- Solution: the maintainer's approval covered the squash; the correction entry of 16:17 UTC below quotes the question and the answer, and the PR description states the rewrite. The commit's committer date is 16:01:42 UTC, after its stamps; its author date is that of the original commit. Round 3 and later are separate commits. +- Current-tree verification: `git log -1 --format='%ad %cd'` on the archive commit shows the two dates. +- Resolution reference: docs(pr-reviews): [#2850] audit review round 3 of PR #2884 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588305190 + +### F8 - A no-change thread is recorded as `RESOLVED`, and its reply is not in the prescribed form + +- PR number: 2884 +- Source review ID: 5923302003 +- Reviewer finding ID: F7 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588270976 +- Concern: row F5 declined the suggestion but recorded `RESOLVED`, and its reply opened "No change:" instead of `Superseded by : .` +- Solution: row F5 now records `Thread state=SUPERSEDED`, and a reply in the prescribed form, citing F3, was added to its thread. +- Current-tree verification: row F5 reads `NO_ACTION | SUPERSEDED`; the F5 thread has a reply that starts `Superseded by F3:`. +- Resolution reference: docs(pr-reviews): [#2850] audit review round 3 of PR #2884 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588305709 + +### F9 - This verification's grep finds this line + +- PR number: 2884 +- Source review ID: 5923302003 +- Reviewer finding ID: F8 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588270983 +- Concern: the F2 verification said a grep for the 14:10 stamp finds none of the changed files, but the sentence itself contained the string. +- Solution: the verification is scoped to the six documents that carried the stamp, and no longer quotes it. +- Current-tree verification: the F2 verification no longer contains the stamp, and a grep for it over the six documents prints nothing. +- Resolution reference: docs(pr-reviews): [#2850] audit review round 3 of PR #2884 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588306286 + +### F10 - The link text names a folder but the link targets `ISSUE.md` + +- PR number: 2884 +- Source review ID: 5923416979 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588361472 +- Concern: in the carry-over table of the #2850 spec, the visible text of the link to the #2838 + spec ended in `/`, as if it pointed to a folder, while the link targets its `ISSUE.md`. +- Solution: the visible text now ends in `ISSUE.md`, matching the target. +- Current-tree verification: line 487 of the #2850 spec shows the same path as text and target. +- Resolution reference: docs(issues): [#2850] name ISSUE.md in the link text to the #2838 spec +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588409983 + +### F11 - The audit cites branch heads by commit id + +- PR number: 2884 +- Source review ID: 5923522198 +- Reviewer finding ID: F9 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588443247 +- Concern: the mapping of the review bodies' commit ids named the round-1 head and the rewritten head by id, so the commit-id check of `open-pull-request` printed both. +- Solution: the mapping now names the commits by subject only, in the wording of the PR #2630 audit, and the round 4 paragraph says "the rewritten head". +- Current-tree verification: the commit-id check of `open-pull-request` prints nothing for this record. +- Resolution reference: docs(pr-reviews): [#2850] audit review round 5 of PR #2884 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588465977 + +### F12 - The bot thread on the link line had no reply or audit row + +- PR number: 2884 +- Source review ID: 5923522198 +- Reviewer finding ID: F10 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588443261 +- Concern: Copilot's thread of review `5923416979` had no reply and no row when the round 3 audit was pushed. +- Solution: no further change: the thread is F10 of this record, fixed in its own commit, replied to and resolved before this review arrived. Reply: `Superseded by F10: ...`. +- Current-tree verification: row F10 and its thread are `FIXED`/`RESOLVED`. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588466618 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588466618 + +### F13 - The commit body calls review 5923302003 the reviewer's third + +- PR number: 2884 +- Source review ID: 5923522198 +- Reviewer finding ID: F11 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588443274 +- Concern: the body of `docs(pr-reviews): [#2850] audit review round 3 of PR #2884` says it records da2ce7's "third review"; it is da2ce7's second review and the PR's third round. +- Solution: no change: the commit is pushed, and rewording it needs another force-push, which the maintainer approved only for the round-1 rewrite (F7). The reviewer marked it a slip, not a wrong fact about the tree; this row records the exact count. Reply: `Superseded by F7: ...`. +- Current-tree verification: N/A; the commit message is unchanged. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588467270 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2884#discussion_r4588467270 + +## Processing Log + +- 2026-11-16 15:48 UTC - Started this audit for da2ce7's review `5922865820` (submitted + 2026-11-16T15:46:38Z, approved, four findings), before any reply. F1 needs a rewritten commit + message, so a force-push; the maintainer approved it at about 15:55 UTC, and the fixes of F2 to F4 + are squashed into the same reworded commit so the branch keeps one commit. +- 2026-11-16 16:00 UTC - Copilot's review `5922943922` (submitted 2026-11-16T15:51:42Z, one + finding) and a conflict with `develop` in the EPIC #1347 table, reported by the maintainer. The + branch was rebased onto `develop`, keeping row 13 (#2876) and row 14 of `develop` with row 12 of + this PR and the later `last-updated-utc`. +- 2026-11-16 16:00 UTC - Both rounds processed. The five threads were replied to + (2026-11-16T15:59 UTC), then the reworded, squashed and rebased commit was force-pushed by + `git-bot-push --force-with-lease`; the threads are resolved after the push and the validator + run on the pushed head. +- 2026-11-16 16:17 UTC - Started round 3 for da2ce7's review `5923302003` (submitted + 2026-11-16T16:14:46Z, changes requested, four findings), before any reply. Correction to the + entry of 15:48 UTC: the maintainer's approval covered the squash as well as the force-push. The + question was "May I squash the fixes into the reworded commit and force-push the bot's branch?" + and the answer "Yes, force-push". The description was edited for F6 before this commit. Row F5 + changed from `RESOLVED` to `SUPERSEDED`, its reply and resolution reference now point to the + second reply, and the F2 verification was reworded (F8 and F9). +- 2026-11-16 16:17 UTC - Round 3 replies posted (2026-11-16T16:16 to 16:17 UTC), including the + second reply on the F5 thread. The threads are resolved after the push of this commit and a + validator run on the pushed head. +- 2026-11-16 16:26 UTC - Round 4: Copilot's review `5923416979` (submitted 2026-11-16T16:21:55Z, + one finding). The fix was committed as its own commit and the thread was replied to + (2026-11-16T16:25:55Z). Late start: this entry and row F10 were added after the reply, not before + it. The thread is resolved after the push and a validator run on the pushed head. +- 2026-11-16 16:29 UTC - Started round 5 for da2ce7's review `5923522198` (submitted + 2026-11-16T16:28:46Z, now `DISMISSED`, three findings), before any reply. The mapping of review + commit ids was reworded to cite subjects only (F11). +- 2026-11-16 16:30 UTC - Round 5 replies posted (2026-11-16T16:30 UTC). The threads + are resolved after the push of this commit and a validator run on the pushed head. + +## 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.