diff --git a/docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md b/docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md index 45830b1bc1..4e72a8ca5b 100644 --- a/docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md +++ b/docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2824 spec-path: docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md branch: "2824-1347-add-tests-primitives-final" related-pr: 2864 -last-updated-utc: "2026-11-15 21:07" +last-updated-utc: "2026-11-16 09:55" semantic-links: skill-links: - create-issue @@ -200,7 +200,7 @@ maintainer decides to fix in this issue are not handed off: they go to the T2a s | F1 | `peer::Peer` derives `Eq`/`Hash` over all fields but implements `Ord` by `peer_id` only, so two unequal peers compare `Ordering::Equal` (violates the `Ord`/`Eq` contract). No production collection orders peers today (the swarm keys by `PeerId`), so the impact is latent. | Throwaway test, 2026-11-10: a seeder and a copy with `left = 5` give `a == b` false and `a.cmp(&b) == Equal`. | Handled by a separate bug issue and session, not fixed here (maintainer decision, 2026-11-10). Bug issue: #2798, spec PR #2800. Fixed by PR #2811 (merged 2026-11-11): `Ord` and `PartialOrd` removed from `Peer` (option A, maintainer's choice), guarded by a `compile_fail` doctest in `peer.rs`. | FIXED (upstream) | | F3 | `ParsePeerRoleError::InvalidPeerRole` records `Location::caller()` inside `PeerRole::from_str`, which has no `#[track_caller]`, so every error reports the same line inside `peer.rs` (`peer.rs:73:27`) instead of the caller's. Adding `#[track_caller]` fixes only a direct `from_str` call: through `str::parse` the location is a line in Rust's standard library. The pattern is wider than this type: `Location::caller()` appears 65 times across the packages and `#[track_caller]` 3 times, and the located error may reach production output. | Throwaway test, 2026-11-10: `"x".parse::()` reports `peer.rs:73:27`; with `#[track_caller]`, `parse` reports `core/src/str/mod.rs:2783:9` and a direct `from_str` call reports the caller's line. | Handed off to a follow-up issue that audits every use of `Location::caller()` (maintainer decision, 2026-11-10). Follow-up issue: #2804 (spec PR #2805). Nothing is fixed in this issue. | HANDED OFF | | F4 | `AggregateActiveSwarmMetadata::add_assign` uses plain `+=` on four `u64` fields (panic in debug, wrap in release on overflow; practically unreachable). The registry and `torrent-repository-benchmarking` sum the fields by hand, so the impl may be dead code. | Code reading, 2026-11-11. | Handed off to a follow-up issue/session `aggregate-addassign` (maintainer decision, 2026-11-11): check whether the impl is used (remove it and run all tests, check git history); delete it if unused, otherwise make overflow explicit (`checked_add` + panic, test, comment). Follow-up issue: #2823. Outcome (maintainer approved, 2026-11-11): the unused `AddAssign` impl was deleted by PR #2827 (merged 2026-11-11), so `swarm_metadata.rs` has no `AddAssign` lines to test. Nothing is fixed in this issue. | HANDED OFF | -| F5 | `peer::Id::new` (public, in a production crate) builds a 20-byte id from a little-endian `i128` (4 zero bytes + 16 bytes). Behavior is correct and lossless, including negatives (two's complement). But it is a test-only helper: the only callers found are `torrent-repository-benchmarking` tests, and its ids look like no real client (`get_client_name()` is `None`). It has no doc comment and no tests. | Code reading and caller search, 2026-11-11 (not a behavior defect; a design problem). | Handed off to a follow-up issue/session `peer-id-test-helper` (maintainer decision, 2026-11-11): prove it is unused in production, move it to a testing helper that generates realistic ids, decide with it whether `peer::fixture` (and `Id::new`) move behind a `testing` feature, as the ADR on shared test support asks (EPIC #2482 is closed and did not reorganize `peer::fixture`). Draft spec: `docs/issues/drafts/peer-id-test-helper/ISSUE.md`, PR #2865 (opened 2026-11-15, after review finding F1 of #2864); no GitHub issue yet, because the maintainer first answers its open design questions. The `Id::new` tests in `peer.rs` wait on its outcome. | HANDED OFF | +| F5 | `peer::Id::new` (public, in a production crate) builds a 20-byte id from a little-endian `i128` (4 zero bytes + 16 bytes). Behavior is correct and lossless, including negatives (two's complement). But it is a test-only helper: the only callers found are `torrent-repository-benchmarking` tests, and its ids look like no real client (`get_client_name()` is `None`). It has no doc comment and no tests. | Code reading and caller search, 2026-11-11 (not a behavior defect; a design problem). | Handed off to a follow-up issue/session `peer-id-test-helper` (maintainer decision, 2026-11-11): prove it is unused in production, move it to a testing helper that generates realistic ids, decide with it whether `peer::fixture` (and `Id::new`) move behind a `testing` feature, as the ADR on shared test support asks (EPIC #2482 is closed and did not reorganize `peer::fixture`). Draft spec merged through PR #2865 (opened 2026-11-15, after review finding F1 of #2864); filed on 2026-11-16 as #2876, spec `docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md`; the maintainer answers its open design questions before implementation. The `Id::new` tests in `peer.rs` wait on its outcome. | HANDED OFF | | F2 | `PeerRole` derives `Serialize` with `#[serde(rename_all_fields = "lowercase")]`, which does not apply to unit variants, so it serializes as `"Seeder"` and `"Leecher"` while `Display` and the `peer_role` metric label use `seeder` and `leecher`. No production code serializes `PeerRole` today. | Throwaway test, 2026-11-10: `serde_json::to_string(&PeerRole::Seeder)` gives `"Seeder"`. | Fixed in this issue, in slice S1 (maintainer decision, 2026-11-10): `rename_all = "lowercase"` plus a regression test, in its own `fix` commit. | FIXED through #2834 | | F6 | `Peer::is_seeder` classifies a negative `left` as a seeder because `NumberOfBytes` is signed; the UDP announce accepts a negative `left` while HTTP rejects it. | Found writing the `peer.rs` tests (S2), 2026-11-12. | Handed off to issue #2838; its fix PR #2839 was closed unmerged, and #2850 (non-negative number of bytes by construction, spec PR #2851) will remove the case. The S2 test pins the classification of the signed domain value and is removed by the #2850 implementation. | HANDED OFF | @@ -398,7 +398,7 @@ Reviewed against observed behavior after the last slice, before the issue is clo | AC6 | DONE | A Prose-First AAA table in every record with an added or changed test. | | AC7 | DONE | `mutation-evidence.md` (no score target, no CI gate). | | AC8 | DONE | The T5 reconciliation (S4): ledger, plan index, slice table, acceptance rows, coverage evidence and both EPIC "Latest" tables carry the final figures; no record says `status: proposed` or `in-progress`. | -| AC9 | DONE | F1 #2798, F2 fixed in S1 (#2834), F3 #2804, F4 #2823, F6 #2838 and #2850, each with its owner in the Findings Register and a `lessons.md` row. F5 is handed off by decision (2026-11-11); its draft spec is PR #2865 (`docs/issues/drafts/peer-id-test-helper/ISSUE.md`), with no GitHub issue yet; its `lessons.md` row says so. | +| AC9 | DONE | F1 #2798, F2 fixed in S1 (#2834), F3 #2804, F4 #2823, F6 #2838 and #2850, each with its owner in the Findings Register and a `lessons.md` row. F5 is handed off by decision (2026-11-11); its draft spec is PR #2865 (`docs/issues/drafts/peer-id-test-helper/ISSUE.md`), with no GitHub issue yet at closure (filed later as #2876; see the Findings Register). | | AC10 | DONE | S0-S3 merged (#2828, #2834, #2841, #2852) with `Related to #2824`; S4 merged through #2864 (2026-11-15 21:05 UTC), the only PR that uses `Closes #2824`, and the issue closed with it. | | AC11 | DONE | `cargo +nightly fmt --all -- --check` (nightly Rust), `linter all` (the pre-commit gate of every S4 commit), `cargo test -p torrust-tracker-primitives` (stable Rust 1.99.1: 109 unit tests and 3 doctests pass). | | AC12 | DONE | `manual-verification-evidence.md`: M1 and M2 passed on 2026-11-15. | diff --git a/docs/issues/closed/2824-1347-add-tests-primitives/lessons.md b/docs/issues/closed/2824-1347-add-tests-primitives/lessons.md index 497cb444fe..05f4fe6cc6 100644 --- a/docs/issues/closed/2824-1347-add-tests-primitives/lessons.md +++ b/docs/issues/closed/2824-1347-add-tests-primitives/lessons.md @@ -20,7 +20,7 @@ Candidate lessons collected while working on Issue #2824. Promoting any of them | [Findings register](ISSUE.md#findings-register) (F1) | None left: `Peer` lost `Ord` and `PartialOrd`. | Bug #2798, fixed by #2811 (merged 2026-11-11). | | [Findings register](ISSUE.md#findings-register) (F3) | Audit every `Location::caller()` in the packages (65 uses, 3 `#[track_caller]`). | Follow-up issue #2804 (spec PR #2805). | | [Findings register](ISSUE.md#findings-register) (F4) | None left: the unused `AddAssign` of `AggregateActiveSwarmMetadata` was deleted. | Follow-up issue #2823. | -| [Findings register](ISSUE.md#findings-register) (F5) | Move `peer::Id::new` and `peer::fixture` to test support behind a `testing` feature, with realistic ids. | Handed off by the maintainer's decision (2026-11-11) as `peer-id-test-helper`; draft spec PR #2865 (`docs/issues/drafts/peer-id-test-helper/ISSUE.md`, opened 2026-11-15); no GitHub issue yet. The only uncovered lines of the package are its. | +| [Findings register](ISSUE.md#findings-register) (F5) | Move `peer::Id::new` and `peer::fixture` to test support behind a `testing` feature, with realistic ids. | Handed off by the maintainer's decision (2026-11-11) as `peer-id-test-helper`; draft spec PR #2865 (opened 2026-11-15); filed on 2026-11-16 as #2876 (`docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md`). The only uncovered lines of the package are its. | | [Findings register](ISSUE.md#findings-register) (F6) | Make the number of bytes non-negative by construction, so a negative `left` cannot reach `is_seeder`. | #2838 (fix PR #2839 closed unmerged), superseded by #2850 (spec PR #2851). | | [Issue spec](ISSUE.md#out-of-scope) (Out of Scope) | Audit the implicit lowercase and snake_case convention of enum serialization (the F2 `PeerRole` defect came from a `rename_all_fields` that does not apply to unit variants) in a separate issue, under `create-adr`. | `PeerRole` serialized as `"Seeder"` while `Display` and the metric label use `seeder`; fixed in S1 (#2834). | diff --git a/docs/issues/open/1347-overhaul-packages-testing/EPIC.md b/docs/issues/open/1347-overhaul-packages-testing/EPIC.md index c6d92246eb..16914380dd 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-15 21:22" +last-updated-utc: "2026-11-16 09:38" semantic-links: skill-links: - create-issue @@ -96,9 +96,10 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`. | 8 | #2301 - Review package coverage rollout | `docs/issues/open/2301-1347-review-package-coverage-rollout/ISSUE.md` | TODO | After the EPIC completes, review real rollout evidence before retaining, revising, or proposing a required coverage check. | | 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 (draft spec PR #2865) have owners. | +| 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. | -| 13 | 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. | +| 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. | ## Package Coverage Tracking diff --git a/docs/issues/drafts/peer-id-test-helper/ISSUE.md b/docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md similarity index 96% rename from docs/issues/drafts/peer-id-test-helper/ISSUE.md rename to docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md index 19b0f1b386..e3990df398 100644 --- a/docs/issues/drafts/peer-id-test-helper/ISSUE.md +++ b/docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md @@ -2,14 +2,14 @@ schema-version: 1 doc-type: issue issue-type: task -status: draft +status: planned priority: p2 -epic: null -github-issue: null -spec-path: docs/issues/drafts/peer-id-test-helper/ISSUE.md -branch: "{issue-number}-peer-id-test-helper" +epic: 1347 +github-issue: 2876 +spec-path: docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md +branch: "2876-peer-id-test-helper-spec" related-pr: null -last-updated-utc: "2026-11-16 07:54" +last-updated-utc: "2026-11-16 09:41" semantic-links: skill-links: - create-issue @@ -26,7 +26,9 @@ semantic-links: -# Issue #[To be assigned] - Move `peer::Id::new` to a realistic test helper and decide whether `peer::fixture` goes behind a `testing` feature +# Issue #2876 - Move `peer::Id::new` to a realistic test helper and decide whether `peer::fixture` goes behind a `testing` feature + +Parent EPIC: #1347 - Overhaul: Packages Testing ## Goal @@ -365,8 +367,9 @@ with the narrow affected scope, and sign every commit with GPG. ### Workflow Checkpoints - [x] Folder-style spec drafted in `docs/issues/drafts/peer-id-test-helper/ISSUE.md` -- [ ] Spec reviewed and approved by user/maintainer (Q1-Q7 answered) -- [ ] GitHub issue created and issue number added to this spec +- [x] Draft spec reviewed and merged through #2865 (filing approved by the maintainer in chat, 2026-11-16) +- [ ] Open design questions Q1-Q7 answered by the maintainer (before T0) +- [x] GitHub issue created (#2876) and issue number added to this spec - [ ] (Optional, recommended for complex issues) Spec-only PR merged into `develop` before implementation - [ ] Implementation completed - [ ] Automatic verification completed (`linter all`, relevant tests, and any pre-push checks) @@ -402,6 +405,14 @@ with the narrow affected scope, and sign every commit with GPG. one Nit on this spec): `last-updated-utc` bumped and the round-3 entry above added. - 2026-11-16 07:54 UTC - Claude Code (Opus 5.5) - Rebased onto `develop` after #2871 moved the #2824 spec to `docs/issues/closed/`; the `related-artifacts` entry and the References path now point there. +- 2026-11-16 08:45 UTC - Claude Code (Sonnet 5.5) - Filed as #2876 under EPIC #1347 after #2865 merged + (`a25a27e23`). Moved from `docs/issues/drafts/peer-id-test-helper/` to + `docs/issues/open/2876-1347-peer-id-test-helper/`; `epic`, `github-issue`, `spec-path` and `branch` + set; status `planned`. Q1-Q7 are still unanswered; nothing is implemented. +- 2026-11-16 09:41 UTC - Claude Code (Opus 5.5) - Review round 1 of PR #2878 (da2ce7 F1-F5, Copilot + two re-raises): `branch` is now the `-spec` branch, the parent EPIC line is under the title, the + approval checkpoint is split from the Q1-Q7 answers, and the F5 owner cells of EPIC row 11 and the + closed #2824 spec point at #2876. ## Acceptance Criteria diff --git a/docs/pr-reviews/pr-2878-review/PR-REVIEW.md b/docs/pr-reviews/pr-2878-review/PR-REVIEW.md new file mode 100644 index 0000000000..59335b260a --- /dev/null +++ b/docs/pr-reviews/pr-2878-review/PR-REVIEW.md @@ -0,0 +1,270 @@ +--- +semantic-links: + skill-links: + - process-pr-review + related-artifacts: + - .github/skills/dev/pr-reviews/process-pr-review/SKILL.md +--- + + + +# PR #2878 Review Audit + +Source: pull-request reviews and inline review threads for https://github.com/torrust/torrust-tracker/pull/2878. + +## 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 + +| Finding ID | Review finding reference | Author class | Severity | Category | Relationship | Disposition | Thread state | +| ---------- | ------------------------ | ------------ | -------- | -------- | ------------ | ----------- | ------------ | +| F1 | review-finding:pr-2878-f1 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F2 | review-finding:pr-2878-f2 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F3 | review-finding:pr-2878-f3 | Human | Minor | link-integrity | ORIGINAL | FIXED | RESOLVED | +| F4 | review-finding:pr-2878-f4 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F5 | review-finding:pr-2878-f5 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F6 | review-finding:pr-2878-f6 | Copilot | Minor | link-integrity | RE_RAISE_OF:F3 | NO_ACTION | SUPERSEDED | +| F7 | review-finding:pr-2878-f7 | Copilot | Minor | metadata | RE_RAISE_OF:F1 | NO_ACTION | SUPERSEDED | +| F8 | review-finding:pr-2878-f8 | Human | Minor | metadata | ORIGINAL | FIXED | RESOLVED | +| F9 | review-finding:pr-2878-f9 | Human | Minor | correctness | ORIGINAL | FIXED | RESOLVED | +| F10 | review-finding:pr-2878-f10 | Human | Nit | metadata | ORIGINAL | FIXED | RESOLVED | +| F11 | review-finding:pr-2878-f11 | Human | Minor | link-integrity | ORIGINAL | FIXED | RESOLVED | + +## Finding Details + +### F1 - The spec `branch:` names the implementation branch, not the `-spec` branch + +- PR number: 2878 +- Source review ID: 5917568324 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4583875661 +- Concern: The PR head branch is `2876-peer-id-test-helper-spec`, but the spec frontmatter said + `branch: "2876-peer-id-test-helper"`; the create-issue skill says a spec-only PR records its + `-spec` branch and keeps the base name for the implementation branch. +- Solution: Set `branch: "2876-peer-id-test-helper-spec"`. +- Current-tree verification: line 10 of `docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md` + reads `branch: "2876-peer-id-test-helper-spec"`, the PR head branch name. +- Resolution reference: docs(issues): [#2876] use the -spec branch name in the spec frontmatter +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584078322 + +### F2 - The spec has `epic: 1347` but no parent line under its title + +- PR number: 2878 +- Source review ID: 5917568324 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4583875669 +- Concern: The create-issue skill asks an EPIC subissue spec to name its parent directly below + the title; the other #1347 subissue specs carry `Parent EPIC: #1347 - Overhaul: Packages Testing`. +- Solution: Added that line between the title and `## Goal`. +- Current-tree verification: `grep -n "Parent EPIC" docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md` + shows line 31, two lines after the title at line 29. +- Resolution reference: docs(issues): [#2876] name the parent EPIC under the spec title +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584078708 + +### F3 - Pointers to the F5 owner still name the draft and its removed path + +- PR number: 2878 +- Source review ID: 5917568324 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4583875673 +- Concern: EPIC row 11 still gave F5's owner as "draft spec PR #2865", and the closed #2824 + Findings Register F5 row and `lessons.md` row cited the removed draft path and said no issue + existed yet. +- Solution: EPIC row 11 now says "F5 (#2876, drafted through #2865)"; the two closed #2824 owner + cells name #2876 and `docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md`. Historical + records (the #2824 progress log, its AC9 evidence row, the review audits, this spec's own + checkpoint and log) keep the draft path. +- Current-tree verification: `git grep -n "drafts/peer-id-test-helper" -- docs` outside + `docs/pr-reviews` matches only `2824-1347-add-tests-primitives/ISSUE.md` lines 340 (progress log) + and 401 (AC9 row), and this spec's checkpoint and progress-log lines. +- Resolution reference: docs(issues): [#2876] point the F5 owner cells at #2876 and its open spec +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584079025 + +### F4 - The checkpoints record the issue as created before the spec was approved + +- PR number: 2878 +- Source review ID: 5917568324 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4583875682 +- Concern: The issue checkpoint was ticked while "Spec reviewed and approved by user/maintainer + (Q1-Q7 answered)" stayed open, which reads as a skipped step; the box joined two states. +- Solution: Split it into "Draft spec reviewed and merged through #2865 (filing approved by the + maintainer in chat, 2026-11-16)", ticked, and "Open design questions Q1-Q7 answered by the + maintainer (before T0)", open. +- Current-tree verification: lines 370 and 371 of the spec carry the two boxes, ticked and open. +- Resolution reference: docs(issues): [#2876] split the spec approval checkpoint from the Q1-Q7 answers +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584079359 + +### F5 - The PR description lacks the validation section and the spec-only link form + +- PR number: 2878 +- Source review ID: 5917568324 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4583875691 +- Concern: The open-pull-request skill asks for a validation statement and `Related to #N` for a + spec-only PR; the body used `Refs #2876` and said only a progress-log entry changed in the spec. +- Solution: Edited the PR description: it opens with `Related to #2876`, has a Validation section, + and names the heading, parent EPIC line, checkpoint and progress-log edits. +- Current-tree verification: `gh-bot pr view 2878 --json body` shows the new first line and the + `## Validation` heading. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2878#issuecomment-6912817188 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584079817 + +### F6 - Repair the live F5 handoff references when moving the spec + +- PR number: 2878 +- Source review ID: 5917625331 +- Reviewer finding ID: F2 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4583918650 +- Concern: The closed #2824 `ISSUE.md` F5 row and `lessons.md` row point at the removed draft path + and say there is no GitHub issue yet. +- Solution: The same current-tree change as F3, which fixed it. +- Current-tree verification: as for F3. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584080272 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584080272 + +### F7 - Use the spec-only branch name in frontmatter + +- PR number: 2878 +- Source review ID: 5917625331 +- Reviewer finding ID: F1 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4583918721 +- Concern: The spec `branch:` should be `2876-peer-id-test-helper-spec` for a spec-only PR. +- Solution: The same current-tree change as F1, which fixed it. +- Current-tree verification: as for F1. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584080662 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584080662 + +### F8 - The edited description carries a closing keyword for #2824 + +- PR number: 2878 +- Source review ID: 5918010504 +- Reviewer finding ID: F6 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584209561 +- Concern: The F5 edit of the description wrote "the closed #2824 Findings Register", and + `closed #2824` matches the closing-keyword pattern of the open-pull-request skill. +- Solution: Edited the description: the bullet now reads "the Findings Register, AC9 row and + `lessons.md` of the closed spec of #2824". +- Current-tree verification: `grep -niE '\b(close[sd]?|fix(e[sd])?|resolve[sd]?)\b:?\s+#[0-9]+'` + on the new description body printed nothing. +- Resolution reference: https://github.com/torrust/torrust-tracker/pull/2878#issuecomment-6913176963 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584242781 + +### F9 - The #2824 AC9 row cites a `lessons.md` row that no longer says what it claims + +- PR number: 2878 +- Source review ID: 5918010504 +- Reviewer finding ID: F7 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584209574 +- Concern: The AC9 row said F5 had no GitHub issue and that "its `lessons.md` row says so", while + this PR rewrote that `lessons.md` row to name #2876. +- Solution: The AC9 cell now ends "with no GitHub issue yet at closure (filed later as #2876; see + the Findings Register)"; the draft path stays as evidence of the time. +- Current-tree verification: `grep -n "filed later as #2876" docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md` + shows the AC9 row at line 401. +- Resolution reference: docs(issues): [#2876] note in the #2824 AC9 row that F5 was filed later as #2876 +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584243304 + +### F10 - The update stamps of the files the F3 commit touched do not match its time + +- PR number: 2878 +- Source review ID: 5918010504 +- Reviewer finding ID: F8 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584209583 +- Concern: The F3 commit was made at 09:38:58 UTC, but the #2824 spec said 09:40 and the EPIC + kept 08:45. +- Solution: Both stamps set to `2026-11-16 09:38`. The F9 commit then edited the #2824 spec again + at 09:55:51 UTC and set its stamp to `2026-11-16 09:55`. +- Current-tree verification: `git log --format=%cI` gives 09:38:58Z for the F3 commit and + 09:55:51Z for the F9 commit; line 9 of the EPIC reads `2026-11-16 09:38` and line 12 of the #2824 + spec reads `2026-11-16 09:55`. +- Resolution reference: docs(issues): [#2876] match the update stamps of the EPIC and the #2824 spec to their edit +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584243807 + +### F11 - The round-2 log entry cites a PR-branch commit id + +- PR number: 2878 +- Source review ID: 5918322774 +- Reviewer finding ID: F9 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584449299 +- Concern: The open-pull-request skill forbids citing a PR-branch commit by id in a durable + record, because a rebase rewrites it; the round-2 Processing Log entry named the reviewed head + by its id. +- Solution: The entry now names the review only by its ID: "review 5918010504 (da2ce7, APPROVED)". +- Current-tree verification: the open-pull-request skill's commit-id check, run with + `UPSTREAM_REMOTE=torrust` at the fix commit, printed nothing. +- Resolution reference: docs(pr-reviews): [#2876] drop the PR-branch commit id from the round-2 audit entry +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2878#discussion_r4584463105 + +## Processing Log + +- 2026-11-16 09:41 UTC - Started audit for review round 1: review 5917568324 (da2ce7, APPROVED, + five Minor findings F1-F5) and review 5917625331 (Copilot, COMMENTED, two Minor findings that + re-raise F3 and F1, recorded as F6 and F7). Fixes F1-F4 committed; PR description edited for F5; + the PR conversation response and the seven thread replies posted at 09:39-09:40 UTC, before the + push of the fix commits. +- 2026-11-16 09:57 UTC - Review round 2: review 5918010504 (da2ce7, APPROVED) with + reviewer findings F6, F7 and F8, recorded as F8, F9 and F10 because F6 and F7 were already taken. + F9 and F10 committed; description edited for F8; the PR conversation response and the three + thread replies posted at 09:56-09:57 UTC, before the push of the fix commits. +- 2026-11-16 10:18 UTC - Review round 3: review 5918322774 (da2ce7, APPROVED) with reviewer finding + F9, recorded as F11 because F9 was already taken. Fixed by commit; the thread reply posted at + 10:17 UTC, before the push of the fix commit. +- 2026-11-16 10:19 UTC - Correction: the F11 detail heading, as pushed with the round-3 record, quoted + the very commit id it is about; the commit-id check run before that push was not read until after + it. The heading now reads "cites a PR-branch commit id", and the check was rerun before this push. + +## 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.