Repository navigation
chore(issues): archive closed issue #2876 spec to docs/issues/closed - #2895
Conversation
…closed torrust#2876 was closed by torrust#2888. Move its spec folder to docs/issues/closed/, mark it done, set row 13 of EPIC torrust#1347 to DONE and point the test-support ADR links to the new path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
ACK 6b3421e |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 6b3421e556011c7c08ae2d729d5a4f68de45486b. Recomputed from the bytes at this head, against the merge base 21ff417ce; git merge-tree against develop 9b3728490 writes a clean tree that differs from develop in exactly this PR's seven paths.
Process: an archive move, governed by the cleanup-completed-issues skill, with open-pull-request and commit-changes for the description and the commit. Steps 2-5 hold: the folder moved whole (five files, two byte-identical); ISSUE.md has status: done, its own spec-path, related-pr: 2888, a quoted last-updated-utc, the archive checkpoint and a log entry; the evidence and retrospective frontmatter, the ADR's three references and EPIC row 13 name docs/issues/closed/. The offline parts of the skill's periodic audit print nothing.
The change against its claim: the merge of #2888 is 21ff417ce itself, and its message carries the closing keyword for #2876 and both ACKs of the merged head. Row 13's facts hold in packages/primitives: Id::new survives only in the compile_fail,E0599 doctest, qbittorrent_peer_id is defined, peer::fixture is behind #[cfg(feature = "testing")]. The 21:49 merge time cannot be recomputed offline; the gap to the merge commit's stamp matches earlier recorded merges.
Consistency: 64 relative links and anchors in the changed files resolve, every related-artifacts path exists, no token is new to the spell checker. A whole-tree search for the folder name leaves five files on the old path: the spec's own log and two audits are history; see F1.
Hygiene: one commit, 6b3421e55, subject in the skill's template, body matching its diff, author = committer, one attribution footer, which no rule in the tree governs. git diff --check is clean; the skill's commit-id check prints nothing; the closing-keyword scan is empty for the title and description and matches once in the folded commit message (F3).
Findings
- F1 Minor: the closed #2824 spec still points the F5 owner at the removed open path.
- F2 Nit: "Breaking for
primitives3.0.0" reads against the in-tree 3.1.0. - F3 Nit: the folded commit-message scan reads
closed #2876.
Checked, no finding: the two reviewer checkpoints left open (as in the archived #2850 spec); the unquoted evidence last-updated-utc (the template's form); project-words.txt untouched; no review threads, so no audit record is due.
Checks
On the loop's compute node at this head, against the merge base 21ff417ce (receipt server-gates-kranich-1034): the repository's pre-commit gate and lint roster exit 0 (527 s wall). The PR changes documentation only, so no package tests apply. F1 checked against the bytes at posting: line 203 of docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md still names docs/issues/open/2876-1347-peer-id-test-helper/ISSUE.md, a path that does not exist at this head. The trial merge was rechecked against the newer develop a9065e2b1 (the merge of #2891): clean, and #2891 touches none of this PR's files. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is a9065e2b1.
|
ACK 6b3421e — verified at this head that the spec folder moved whole with closed-state frontmatter, every changed link and artifact path resolves, the commit-id check prints nothing and the trial merge with develop is clean |
There was a problem hiding this comment.
🟡 Changes recommended
Two live F5 owner links still reference the removed open issue path and need updating to the closed issue path.
1 open issue
What changed in this PR
This documentation-only PR archives issue #2876 after its implementation merged in #2888, keeping the issue records and parent testing EPIC #1347 aligned with completion.
Changes:
- Moves the specification and supporting evidence from
opentoclosed. - Updates completion metadata, the archive checkpoint, and the parent EPIC.
- Repoints the test-support ADR and supporting-document metadata to the archived specification.
| File | Description |
|---|---|
docs/issues/open/1347-overhaul-packages-testing/EPIC.md |
Marks #2876 done, updates its path, and records archival. |
docs/issues/closed/2876-1347-peer-id-test-helper/test-plans/qbittorrent-peer-id.md |
Archives the existing test plan unchanged. |
docs/issues/closed/2876-1347-peer-id-test-helper/manual-verification-evidence.md |
Updates the specification reference and timestamp. |
docs/issues/closed/2876-1347-peer-id-test-helper/ISSUE.md |
Records completion, closing PR, and archival. |
docs/issues/closed/2876-1347-peer-id-test-helper/implementation-retrospective.md |
Updates metadata to reference the archived specification. |
docs/issues/closed/2876-1347-peer-id-test-helper/coverage-evidence.md |
Archives the existing coverage evidence unchanged. |
docs/adrs/20261021190318_share_workspace_test_support_through_testing_features.md |
Updates three specification references to the closed path. |
Review effort: Balanced
… the archived spec Review round 1 of PR torrust#2895: the F5 owner cells of the torrust#2824 spec and lessons are live pointers, so they follow the move to docs/issues/closed/ (F1); EPIC row 13 names the published primitives 3.0.0 (F2). The audit records F3 (no change) and the Copilot duplicate of F1. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 2004123f22236cf0ece3365f15b5d7e1f4640af0. Recomputed from the bytes at this head, against the merge base 21ff417ce; git merge-tree against develop a9065e2b1 writes a clean tree that differs from develop in exactly this PR's eleven paths.
Process: the round adds one commit, 2004123f2, a fast-forward of 6b3421e55, with the review audit docs/pr-reviews/pr-2895-review/PR-REVIEW.md, which the process-pr-review skill governs.
The change against its claim: the commit does what its message says. Both F5 owner cells of the closed #2824 spec (ISSUE.md:203, lessons.md:23) now name docs/issues/closed/2876-1347-peer-id-test-helper/ISSUE.md, the #2824 last-updated-utc is bumped, and EPIC row 13 reads "the published primitives 3.0.0". F1 and F2 are fixed; F3 stays a no-change, which I accept; the automated reviewer's duplicate of F1 is fixed with it. The audit's two verification commands reproduce: outside the audits, only the spec's own 08:45 log entry names the old path.
Consistency: 49 relative links and anchors in the four changed files resolve, every frontmatter path exists, and the only token new to the spell checker is a possessive.
Audit and threads: four threads, each with one reply on its own thread, all resolved; four rows whose detail entries, review IDs and severity brackets match the capture. The validator's logic, run offline against the capture with the pull request's commits taken from the local range, fails once, on F3's Resolution reference: N/A (F6).
Hygiene: git diff --check is clean, the commit-id check prints nothing, author = committer, and the commit carries one attribution footer, which no rule in the tree governs. The closing-keyword scan is unchanged: nothing in the title or description, and the folded messages match only the F3 case.
Findings
- F6 Minor: the audit validator fails on F3's resolution reference.
- F7 Nit: the audit's
related-artifactsname the old-path redirect stubs. - F8 Suggestion: the #2824 F5 owner cell still says the design questions are open.
None would block a merge on its own; APPROVE is withheld because the validator fails at this head.
Checked, no finding: the replies predate the fix commit by about a minute, as the log says, and their claims hold now; the log stamp 07:47 is the commit's 07:46:56 rounded to the minute.
Checks
On the loop's compute node at this head, against the merge base 21ff417ce (receipt server-gates-kranich-1038): the repository's pre-commit gate and lint roster exit 0 (107 s wall). The repository's audit validator fails once (rc 1; 4 rows, 1 log entry, 1 failure), printing F3: resolution reference not a commit subject of the audited pull request, its follow-ups, or the local range: N/A, which is F6. The PR changes documentation only, so no package tests apply. The trial merge was rechecked against the newer develop 5def933fb (the merge of #2892): clean. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "". At posting, develop is 5def933fb.
F6: F3 and F4 give their reply URL as the resolution reference, so the audit validator passes. F7: the audit names the skills' current paths. F8: the torrust#2824 F5 owner cell says torrust#2888 implemented the outcome. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
ACK 524e12b |
da2ce7
left a comment
There was a problem hiding this comment.
Reviewed at 524e12bae49f5ea22cd7354b87d9e3e575de0ce7. Recomputed from the bytes at this head, against the merge base 21ff417ce; git merge-tree against develop 5def933fb writes a clean tree that differs from develop in exactly this PR's ten paths (the round-2 review said eleven; it was ten then too).
Process: one commit, 524e12bae, a fast-forward of 2004123f2, answering round 2 under the process-pr-review skill.
The change against its claim: the commit does what its message says. F3 and F4 now cite their own reply URLs; the audit's related-artifacts name the skills' current paths, both tracked; the #2824 F5 owner cell says the design questions were answered on 2026-11-16 and #2888 implemented the outcome, which matches the archived spec's log. F6, F7 and F8 are fixed; F1, F2 and the duplicate F4 stay fixed; F3 stays an accepted no-change.
Audit and threads: seven threads, each with one reply on its own thread, all resolved; seven rows whose detail entries, review IDs and severity brackets match the capture. The validator's logic, run offline against the capture with the pull request's commits taken from the local range, passes: 7 rows, 2 log entries, 0 failures.
Consistency and hygiene: the 7 relative links in the two changed files resolve; git diff --check is clean; the commit-id check prints nothing; author = committer, and the commit carries one attribution footer, which no rule in the tree governs; the closing-keyword scan still matches only the F3 case.
Findings
- F9 Nit: both processing-log entries are stamped after the commits that carry them.
Checked, no finding: the round-2 replies, including F6's "exits 0", predate the commit by about 20 seconds and hold at this head; the #2824 spec's last-updated-utc keeps 07:45 after this round's edit, which still meets the archive skill's "current date".
Checks
On the loop's compute node at this head, against the merge base 21ff417ce (receipt server-gates-kranich-1039): the repository's pre-commit gate and lint roster exit 0 (105 s wall), and the audit validator passes the record (7 rows, 2 log entries, 0 failures). The PR changes documentation only, so no package tests apply. F9 checked against the bytes at posting: line 173 of PR-REVIEW.md is stamped 08:02 UTC, and 524e12bae was committed at 08:01:28Z. The head was confirmed with git ls-remote before posting. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 5def933fb.
|
ACK 524e12b — verified at this head that F6 to F8 are fixed, the audit record passes the validator's logic offline against the captured threads, the commit-id check prints nothing and the trial merge with develop is clean |
|
ACK 524e12b |
There was a problem hiding this comment.
Warning
Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.
Copilot review overview
2 open issues
1 resolved since last review
Review effort: Lite
| | 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::<PeerRole>()` 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 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 | | ||
| | 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/closed/2876-1347-peer-id-test-helper/ISSUE.md`; the maintainer answered its design questions on 2026-11-16, and #2888 implemented the outcome (`Id::new` removed, its replacement tested in `peer.rs`). | HANDED OFF | |
| | [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 (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) (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/closed/2876-1347-peer-id-test-helper/ISSUE.md`). The only uncovered lines of the package are its. | |


Archives the spec of #2876 (closed by #2888, merged 2026-11-16 21:49 UTC) from
docs/issues/open/todocs/issues/closed/.peer::Id::newto a realistic test helper and decide whetherpeer::fixturegoes behind atestingfeature #2876 isCLOSEDon GitHub.ISSUE.md:status: done,spec-pathandrelated-pr: 2888set,last-updated-utcbumped, the archive checkpoint ticked and a progress-log entry added. The two reviewer checkpoints stay unticked: no reviewer filled them in.manual-verification-evidence.mdandimplementation-retrospective.md: frontmatter points to the new path.DONEwith the new path and a summary of what refactor(primitives)!: [#2876] replace peer::Id::new with a realistic test helper behind a testing feature #2888 shipped; progress-log entry added.torrust-tracker-primitivespackage #2824 spec and lessons: the F5 owner cells, which are live pointers, name the new path (review round 1, F1).peer::Id::newto a realistic test helper and decide whetherpeer::fixturegoes behind atestingfeature #2876 that names the path it had then.docs/pr-reviews/pr-2895-review/PR-REVIEW.md.linter allexit 0.🤖 Generated with Claude Code