Skip to content

docs(issues): draft the peer-id-test-helper issue spec - #2865

Merged
josecelano merged 12 commits into
torrust:developfrom
josecelano-bot:peer-id-test-helper-draft-spec
Nov 16, 2026
Merged

josecelano merged 12 commits into
torrust:developfrom
josecelano-bot:peer-id-test-helper-draft-spec

Conversation

@josecelano-bot

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

Copy link
Copy Markdown
Contributor

Summary

Adds a draft issue spec for finding F5 of #2824 (EPIC #1347): peer::Id::new is a test-only helper in the production API of torrust-tracker-primitives, and peer::fixture is compiled into every build. The maintainer handed it off on 2026-11-11 to a follow-up that proves Id::new is unused in production, moves it to a test helper that builds realistic peer ids, and decides whether peer::fixture goes behind a testing feature (ADR 20261021190318_share_workspace_test_support_through_testing_features.md).

This PR adds the spec and the review audit of this PR. No code changes. No GitHub issue is created until the maintainer has reviewed the spec and answered its open questions.

Related to #2824 (finding F5, needed for its AC9). Related to #1347.

What the spec contains

  • Caller inventory re-run on develop at abd7a10ff: Id::new has 3 direct calls, all in torrent-repository-benchmarking/tests/ (publish = false), through two i32 wrappers whose call sites pass 0, 1 to 3 and -1. peer::fixture is imported by 6 packages, in test, bench and #[cfg(test)] code only. Peer::default(), whose impl lives in the fixture module, is also used by #[cfg(test)] code in http-core, swarm-coordination-registry and the root crate.
  • A compile proof: with #[cfg(test)] put on Id::new and peer::fixture as a throwaway change, cargo check --workspace --lib --bins (stable, cargo 1.99.1) exits 0 with no warnings. The change was reverted.
  • Both items are public in the published torrust-tracker-primitives 3.0.0, so removing them is a breaking change (Q3).
  • Seven open design questions for the maintainer, each with a recommendation: where the helper lives (Q1), the testing gate (Q2), removing vs deprecating Id::new (Q3), the helper's API and id format (Q4), the Default impls of Peer and Id (Q5), making the fixture's own ids realistic (Q6), and how to record the decision (Q7).
  • Bug-Fix Process and Regression Test Strategy sections, as the Overhaul Packages Testing: Add tests for torrust-tracker-primitives package #2824 findings procedure asks, adapted to a design problem rather than a behavior defect.

Files

  • docs/issues/drafts/peer-id-test-helper/ISSUE.md (new)
  • docs/pr-reviews/pr-2865-review/PR-REVIEW.md (new, the review audit of this PR)

Validation

  • linter all: pass
  • validate-audit-record.py --pr-number 2865: no failures
  • Pre-commit gate (frontmatter-validator, cargo machete, cargo deny check bans, nightly fmt, doc tests): pass

🤖 Generated with Claude Code

josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 15, 2026
AC9 asks for a draft spec for every finding that needs a production
change. F5 had none; its draft spec is now PR torrust#2865
(docs/issues/drafts/peer-id-test-helper/ISSUE.md). The Findings Register
row, the AC9 evidence row, the peer::fixture risk, the lessons row and the
retrospective cite it, and a progress-log entry records it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@josecelano josecelano self-assigned this Nov 15, 2026
@josecelano
josecelano requested review from da2ce7 and a balanced review from Copilot November 15, 2026 20:14

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 48858839e778347547a1896a79060ddb2577f37f. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop abd7a10ff merges cleanly, and the merged tree equals the head's tree.

Process: a spec-only draft under create-issue (.github/skills/dev/planning/create-issue/SKILL.md, template docs/templates/ISSUE.md) and open-pull-request; the #2824 findings procedure adds the Bug-Fix Process and Regression Test Strategy sections, present and linked to fix-bug. The unprefixed folder and epic: null fit the F5 hand-off, which names no parent EPIC.

The change against its claim: one new file, as described. Most claims recompute: the three Id::new call lines, publish = false, the six-package fixture table (8 imports in swarm-coordination-registry), every src/ import after its file's first #[cfg(test)], the three Peer::default() users, peer.rs lines 367-382 and 498-638, pub fn new<T> and pub mod fixture at v3.0.0, and the ADR rules cited. The compile proof needs cargo and is not recomputed; the grep evidence agrees with it. Two claims fail and both steer a decision: the callers pass negative numbers (F1), and M2 cannot pass on the recommended design (F2).

Consistency: every relative link and related-artifacts path resolves; no dictionary change; nothing moved.

Hygiene: one commit, Conventional subject with the (... of #2824) reference form, body matches the diff, author = committer. The commit carries an attribution footer and the description ends with a generated-by footer; no rule in the tree forbids either. git diff --check is clean, the PR-branch commit-id check prints nothing, and the closing-keyword pattern matches nothing in the title, description or commit message.

Findings: F1-F2 Major, F3-F6 Minor, F7-F11 Nit; details inline.

Checked, no finding: frontmatter against the template and the validator's issue profile; the ownership review (pure builders, checkpoint after T2); the verification plan's parts; rule B.1 (test-helpers depends only on configuration); cargo machete --with-metadata is the pre-commit step; #2583 already owes primitives a major bump.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-902): the repository's pre-commit gate and lint roster exit 0 (129 s wall). This PR has no audit record of its own yet, so the gate ran no validator for it. The PR changes documentation only, so no package tests apply. F1 checked against the bytes at posting: on develop abd7a10ff, packages/torrent-repository-benchmarking/tests/entry/mod.rs calls a_started_peer(-1) at lines 192 and 233 and a_completed_peer(-1) at line 427, and tests/repository/mod.rs:548 calls a_completed_peer(-1), while the spec's line 92 says the callers need only distinct ids for small positive numbers. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is abd7a10ff.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The plan needs to account for negative sentinel inputs in the proposed unsigned-helper migration and exclude dev-dependency edges from the release-feature verification check.

2 open issues
What changed in this PR

Adds a draft specification for finding F5 of #2824, related to EPIC #1347: replacing peer::Id::new with a realistic test helper and deciding whether shared peer fixtures belong behind a testing feature. This PR changes documentation only; implementation and GitHub issue creation await maintainer approval.

Changes:

  • Records caller inventory, compile-proof results, and published API compatibility concerns.
  • Presents seven design questions covering helper ownership, ID format, feature gating, and migration.
  • Defines implementation tasks, commit points, regression checks, and acceptance criteria.
File Description
docs/​issues/​drafts/​peer-id-test-helper/​ISSUE.md Adds the draft scope, design decisions, and verification plan for the peer-ID test-helper follow-up.

Review effort: Balanced

josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 15, 2026
…ter review

Review round 1 of PR torrust#2865:
- list the wrapper call sites, which pass 0 and -1, and let Q4 weigh
  i32 against u32 with a named sentinel;
- check shipped features with shipped-features-check instead of a
  cargo tree that keeps dev-dependency edges;
- add a Coverage Evidence section and commit points for T0, T1, T9;
- fix the uncovered-lines scope, the u64 claim, the ADR amendment
  precedent, and smaller wording and timestamp errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@josecelano

Copy link
Copy Markdown
Member

ACK b23f589

@josecelano
josecelano requested a review from da2ce7 November 15, 2026 20:36
josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 15, 2026
Records the 13 findings of review round 1 (da2ce7 F1-F11, Copilot F12
and F13 as re-raises of F1 and F2), their dispositions, verification
and reply URLs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@josecelano

Copy link
Copy Markdown
Member

ACK bcf1e09

josecelano added a commit that referenced this pull request Nov 15, 2026
…o-change files, mutation and manual verification

2c9c69b docs(pr-reviews): [#2824] add the PR 2864 review audit record for round 1 (josecelano-bot)
290802a docs(issues): [#2824] cite the F5 draft spec pull request for AC9 (josecelano-bot)
cc738c6 docs(issues): [#2824] count five review rounds of the S3 pull request (josecelano-bot)
2e96b11 docs(issues): [#2824] record the merged removal of the AddAssign impl in the F4 row (josecelano-bot)
fda6c8b docs(issues): [#2824] record the AAA comments added to the swarm metadata tests (josecelano-bot)
a9af8d3 test(primitives): [#2824] add the AAA section comments to the swarm metadata tests (josecelano-bot)
4958efd docs(issues): [#2824] record the S4 pull request number (josecelano-bot)
284d393 docs(issues): [#2824] close slice S4 with mutation, manual and final records (josecelano-bot)
e999f0b test(primitives): [#2824] test the instance index with a value no mutant returns (josecelano-bot)
0613b3a test(primitives): [#2824] record the no-change files and compare instance id JSON by value (josecelano-bot)
6536e18 test(primitives): [#2824] test the swarm metadata counts (josecelano-bot)

Pull request description:

  Closes #2824 (sub-issue of EPIC #1347). This is slice S4, the last slice of the plan in `docs/issues/open/2824-1347-add-tests-primitives/ISSUE.md`: the remaining ledger rows, then T4-T6.

  ## What changes

  | File | Change | Unit-only lines before | After |
  | --- | --- | ---: | ---: |
  | `swarm_metadata.rs` | 4 tests: one per accessor (`downloads`, `seeders`, `leechers`) on `new(3, 5, 7)`, and `zeroed` equals `new(0, 0, 0)` | 3 / 12 | 31 / 31 |
  | `configuration_instance_id.rs` | the JSON test compares `serde_json::Value`s (as S3 does after review); the accessor test uses index `2` (see the mutation run) | 42 / 42 | 43 / 43 |
  | The other nine files (rows 8-16) | no change; the reason per file is in `test-refactor-plans/no-change-files.md` | fully covered or wiring | unchanged |

  Package unit-only coverage (= aggregate; the package has no integration tests) goes from 1,049 / 1,126 lines (93.16%) to 1,078 / 1,146 (94.07%), regions from 94.69% to 95.30%, functions from 92.69% to 94.17%, and from 105 to 109 unit tests (`cargo-llvm-cov 0.6.16`, stable Rust 1.99.1). Over the whole issue: lines 60.56% → 94.07%, regions 67.94% → 95.30%, functions 57.23% → 94.17%, 47 → 109 unit tests. The only uncovered lines left are `peer::fixture` and `peer::Id::new`, owned by the F5 follow-up.

  No production code changes in this slice.

  ## Final tasks

  - **T4, mutation run** (`mutation-evidence.md`): 147 mutants, 94 caught, 3 missed, 2 timeouts, 48 unviable. Two survivors are equivalent (`zeroed` and `ScrapeData::empty` replaced by `Default::default()`, which they already return). The third, `instance_index` replaced by `1`, was a real gap (the only test used index `1`); the test now uses `2` and a re-run kills it. The two `readiness.rs` timeouts are detected mutants: the concurrent test loops until "not ready".
  - **T6, manual checks** (`manual-verification-evidence.md`): M1, a tracker with no announce policy answers announces with the 120 s default over HTTP and UDP; M2, one seeder and one leecher give 1 / 1 in the HTTP scrape, the UDP scrape and the REST API, with the announced peers.
  - **T5, reconciliation**: the ledger, plan index, slice table, checkpoints, acceptance rows, coverage evidence and both EPIC "Latest" tables carry the final figures; `implementation-retrospective.md` records the deviations.

  ## Review notes

  - The spec stays in `docs/issues/open/`: the `cleanup-completed-issues` skill archives it after the issue closes, in its own PR, as #2637 did. The slice table now says so.
  - `lessons.md` gained a row per finding and one new follow-up candidate from M2: the REST peer `event` text is the derived `Debug` of `AnnounceEvent` (`format!("{:?}", ...)` in `rest-api-runtime-adapter`) and no test pins it.
  - Finding F5 (`peer-id-test-helper`), handed off on 2026-11-11, has its draft spec in #2865 (`docs/issues/drafts/peer-id-test-helper/ISSUE.md`); no GitHub issue yet.
  - `readiness.rs`: the coverage variance seen once in S3 is most likely the loop body of the concurrent test (test code, not production); the test is kept as it is (maintainer decision).

  ## Validation

  `cargo test -p torrust-tracker-primitives` (109 unit tests and the 3 doctests, 2 + 1), `cargo +nightly fmt --all -- --check`, `cargo clippy -p torrust-tracker-primitives --all-targets`, `git diff --check`, `linter markdown` and `linter cspell`, and the repository pre-commit gate (including `linter all` and `cargo machete --with-metadata`) on every commit.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  da2ce7:
    ACK 2c9c69b — F1 to F5 fixed, the round-1 audit record validated offline (5 rows, 0 failures) with every thread replied to and resolved, and a clean trial merge against develop
  josecelano:
    ACK 2c9c69b

Tree-SHA512: c9e1e0207a5e8aa40b5fe7e4c2cd658a90e7085fda030462da5305148a9688803c76f48e884eb0f25b8ce4a5c9ec5ac46c1a0d88041db423f84d1934328275a2
da2ce7
da2ce7 previously approved these changes Nov 15, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at bcf1e092e9f75c354f4542197815af851b1725f0. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop e0a54d558 merges cleanly, with no conflict.

Process: round 2, a fast-forward of 48858839e by b23f589ca (spec fixes) and bcf1e092e (the review audit, committed separately, as process-pr-review asks). Each commit body matches its diff.

The change against its claim: F1-F11 are fixed at this head. The call-site table lists all 19 wrapper calls with the lines and arguments the tree has; Q4 now weighs i32 against u32 with a named sentinel, and the regression strategy says which call sites change; M2 and the regression strategy use shipped-features-check; the coverage command matches the #2824 record; the commit points, wording and stamps are corrected.

Consistency: links and paths resolve. The audit's 13 rows match the 13 threads; every thread has its reply on the right thread and is resolved; the two re-raises use the Superseded by form; the late start is logged. The validator's logic, run offline against the capture with the local commit range for subjects, reports 13 rows, 4 log entries, 0 failures. develop gained the #2824 S4 slice, which touches none of the spec's inventory files.

Hygiene: Conventional subjects, author = committer, both commits carry the same attribution footer as before, and no rule in the tree forbids it. git diff --check is clean; the closing-keyword pattern matches nothing. The PR-branch commit-id check prints 48858839e and b23f589ca (F12).

Findings: F12-F13 Minor, F14-F15 Nit, none blocking; details inline.

Checked, no finding: the audit's headings against the template and its frontmatter against a merged audit; its current-tree verification greps; the 20:32 stamps against the 20:32:36 UTC commit.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-906): the repository's pre-commit gate and lint roster exit 0 (656 s wall, on a node shared with three other gates), and the review-audit validator reports 13 rows, 4 log entries and no failure. The PR changes documentation only, so no package tests apply. F12 checked against the bytes at posting: docs/pr-reviews/pr-2865-review/PR-REVIEW.md names 48858839e at lines 45 and 236 and b23f589ca at line 237, and .github/skills/dev/git-workflow/open-pull-request/SKILL.md:74-81 keeps PR-branch commit ids out of review audits. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 4c8c88c0b.

@da2ce7

da2ce7 commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

ACK bcf1e09 — verified at this head that review findings F1-F11 are fixed in the spec, all 13 threads are answered, resolved and audited, and the audit passes the validator's logic offline

@josecelano-bot

Copy link
Copy Markdown
Contributor Author

Review round 2, F13 of da2ce7's review 5913005734 (audit F15): the PR description was edited. It now says the PR adds the spec and its review audit, lists docs/pr-reviews/pr-2865-review/PR-REVIEW.md under Files, describes the Id::new callers as three direct calls through two i32 wrappers whose call sites pass 0, 1 to 3 and -1, and adds the audit validator under Validation.

josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 15, 2026
…er-id-test-helper spec

Review round 2 of PR torrust#2865: u32::try_from returns a Result, so name both
ways to pass the loop variable; date the swarm_metadata.rs coverage note
and add torrust#2824's final measurement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 15, 2026
…ts audit

Review round 2 of PR torrust#2865: replace the PR-branch commit ids in the
findings introduction and the processing log with commit subjects, as
open-pull-request requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 15, 2026
Adds F14-F17 (da2ce7's round-2 F12-F15, renumbered on collision), their
dispositions, verification and reply URLs, and the processing-log
entries for round 2, including the correction for the in-place edit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at ec322550d2f4e0a3b07637ad186a8f0565f112a0. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop 4c8c88c0b merges cleanly, with no conflict.

Process: round 3, a fast-forward of bcf1e092e by edfade445 (spec), a923db1ee (audit ids) and ec322550d (round-2 audit rows). Each commit body matches its diff, and the audit stays separate from the spec fix.

The change against its claim: F12-F15 are fixed. The audit names branch commits by subject, and the commit-id check, run at this head with UPSTREAM_REMOTE=work, prints nothing. The description now lists the audit and describes the wrapper calls. Q4 (b) names both conversion routes, and the coverage note is dated. One figure in the new note is the wrong row of the #2824 record (F16).

Consistency: the audit adds F14-F17 for the round-2 F12-F15, renumbered on collision as process-pr-review asks. Severities match the brackets, each reply sits on its own thread, the description fix cites the durable comment, and all 17 threads are resolved. The validator's logic, run offline against the capture with the local commit range for subjects, reports 17 rows, 8 log entries and 0 failures. develop gained only #2862's test-isolation records.

Hygiene: the subjects are Conventional, author = committer, and the commits carry the same attribution footer as before, which no rule in the tree forbids. git diff --check is clean, and the closing-keyword pattern matches nothing in the title, description or commits.

Findings: F16 Nit, inline; none blocking.

Checked, no finding: the 21:28 correction names the two log entries rewritten in place; quoting them verbatim would bring the ids back. The log stamps are in order against the review (21:25:57), the comment (21:28:48), the replies (21:29) and the commits (21:27:28 to 21:30:00 UTC).

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-909): the repository's pre-commit gate and lint roster exit 0 (61 s wall), and the review-audit validator reports 17 rows, 8 log entries and no failure. The PR changes documentation only, so no package tests apply. F16 checked against the bytes at posting: on develop 4c8c88c0b, docs/issues/open/2824-1347-add-tests-primitives/coverage-evidence.md gives 1,077 / 1,145 on its "After swarm_metadata.rs" row (line 102) and 1,078 / 1,146 on both final rows (lines 103 and 116), while the spec's line 71 calls 1,077 / 1,145 the final measurement. GitHub checks at this head at posting time: "". At posting, develop is 4c8c88c0b.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK ec32255 — verified at this head that review findings F12-F15 are fixed, the commit-id check is empty, all 17 threads are answered, resolved and audited, and the audit passes the validator's logic offline

josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 16, 2026
Add row F18 for da2ce7's round-3 F16 (renumbered on collision) and
correct the coverage figure in F17's solution and verification lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 7aa9d6d05f7b026778c116d92f1a7bb75c07ae21. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop 4c8c88c0b merges cleanly, with no conflict.

Process: round 4, a fast-forward of ec322550d by 2229a62cf (spec) and 7aa9d6d05 (round-3 audit row). Each commit body matches its diff, and the audit stays separate from the spec fix.

The change against its claim: F16 is fixed. The note now gives 1,078 / 1,146, the final rows of #2824's coverage-evidence.md (lines 103 and 116 on develop), and the audit's F17 lines carry the same figure. The remaining 1,077 mentions describe the old figure. F1-F15 stay fixed.

Consistency: the audit adds F18 for the round-3 F16, renumbered on collision. Its severity matches the bracket, the reply sits on its own thread, and all 18 threads are resolved. The in-place edit of F17 is named by a correction entry. The validator's logic, run offline against the capture with the local commit range for subjects, reports 18 rows, 11 log entries and 0 failures. The commit-id check, run at this head with UPSTREAM_REMOTE=work, prints nothing. develop has not moved since round 3.

Hygiene: the subjects are Conventional, author = committer, and the commits carry the same attribution footer as before, which no rule in the tree forbids. git diff --check is clean, and the closing-keyword pattern matches nothing in the title, description or commits.

Findings: F18 Minor and F19 Nit, inline; none blocking.

Checked, no finding: the description, unchanged since round 3; the F18 detail's verification grep.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-913): the repository's pre-commit gate and lint roster exit 0 (101 s wall), and the review-audit validator reports 18 rows, 11 log entries and no failure. The PR changes documentation only, so no package tests apply. F19 checked against the bytes at posting: line 12 of the spec reads last-updated-utc: "2026-11-15 21:27", while docs(issues): cite the final #2824 coverage row in the peer-id-test-helper spec was committed at 2026-11-16 05:57:19 UTC. GitHub checks at this head at posting time: "". At posting, develop is 4c8c88c0b.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 7aa9d6d — verified at this head that review finding F16 is fixed, the commit-id check is empty, all 18 threads are answered, resolved and audited, and the audit passes the validator's logic offline

josecelano-bot added a commit to josecelano-bot/torrust-tracker that referenced this pull request Nov 16, 2026
Add rows F19-F20 for da2ce7's round-4 F18-F19 (renumbered on
collision) and append a correction with the forge and commit times of
round 3, leaving the round-3 entries as written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at b40b1b61f69c187a647babbd91bc63d1b4e44e40. Recomputed from the bytes at this head, against the merge base abd7a10ff; git merge-tree against develop 4c8c88c0b merges cleanly, with no conflict.

Process: round 5, a fast-forward of 7aa9d6d05 by 559798a7d (spec log) and b40b1b61f (round-4 audit rows). Each commit body matches its diff, and the audit stays separate from the spec edit.

The change against its claim: F18 and F19 are fixed. The audit appends a correction with the forge and commit times of round 3 (05:55:42, 05:57:19, 05:57:50 and 05:59:12 UTC, each matching the capture or the commit), leaving the round-3 entries as written, as process-pr-review asks. The spec's last-updated-utc is 2026-11-16 06:08, against its commit at 06:08:38 UTC. The Progress Log gains a 05:57 entry for round 3, marked as added later, and a 06:08 entry for round 4. F1-F17 stay fixed.

Consistency: the audit adds F19 and F20 for the round-4 F18 and F19, renumbered on collision. Their severities match the brackets, each reply sits on its own thread, and all 20 threads are resolved. The round-4 log stamps match the review (06:07:50), the replies (06:09:15 and 06:09:17) and the audit commit (06:09:33 UTC). The validator's logic, run offline against the capture with the local commit range for subjects, reports 20 rows, 14 log entries and 0 failures. The commit-id check, run at this head with UPSTREAM_REMOTE=work, prints nothing. develop has not moved since round 3.

Hygiene: the subjects are Conventional, author = committer, and the commits carry the same attribution footer as before, which no rule in the tree forbids. git diff --check is clean, and the closing-keyword pattern matches nothing in the title, description or commits.

Findings: none.

Checked, no finding: the description, unchanged since round 4; the F19 and F20 verification lines; the remaining 1,077 mentions, which describe the old figure.

Checks

On the loop's compute node at this head, against the merge base abd7a10ff (receipt server-gates-kranich-915): the repository's pre-commit gate and lint roster exit 0 (173 s wall), and the review-audit validator reports 20 rows, 14 log entries and no failure. The PR changes documentation only, so no package tests apply. The round 3 and round 4 fixes were checked against the bytes at posting: line 71 of the spec now cites the final #2824 row, 1,078 / 1,146, and its last-updated-utc reads 2026-11-16 06:08. GitHub checks at this head at posting time: "". At posting, develop is 4c8c88c0b.

josecelano-bot and others added 10 commits November 16, 2026 07:54
…st#2824)

Draft spec for moving `peer::Id::new` out of the production API of
torrust-tracker-primitives into a test helper that builds realistic peer
ids, and for deciding whether `peer::fixture` goes behind a `testing`
feature. Includes the caller inventory re-run on develop, a compile
proof that no library or binary target uses either item, and seven open
design questions for the maintainer.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ter review

Review round 1 of PR torrust#2865:
- list the wrapper call sites, which pass 0 and -1, and let Q4 weigh
  i32 against u32 with a named sentinel;
- check shipped features with shipped-features-check instead of a
  cargo tree that keeps dev-dependency edges;
- add a Coverage Evidence section and commit points for T0, T1, T9;
- fix the uncovered-lines scope, the u64 claim, the ADR amendment
  precedent, and smaller wording and timestamp errors.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Records the 13 findings of review round 1 (da2ce7 F1-F11, Copilot F12
and F13 as re-raises of F1 and F2), their dispositions, verification
and reply URLs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…er-id-test-helper spec

Review round 2 of PR torrust#2865: u32::try_from returns a Result, so name both
ways to pass the loop variable; date the swarm_metadata.rs coverage note
and add torrust#2824's final measurement.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ts audit

Review round 2 of PR torrust#2865: replace the PR-branch commit ids in the
findings introduction and the processing log with commit subjects, as
open-pull-request requires.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adds F14-F17 (da2ce7's round-2 F12-F15, renumbered on collision), their
dispositions, verification and reply URLs, and the processing-log
entries for round 2, including the correction for the in-place edit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-test-helper spec

The coverage note called 1,077 / 1,145 the final measurement of torrust#2824;
that is the "After swarm_metadata.rs" row. The final rows give
1,078 / 1,146. The 68 uncovered lines in peer.rs are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add row F18 for da2ce7's round-3 F16 (renumbered on collision) and
correct the coverage figure in F17's solution and verification lines.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Bump last-updated-utc and add Progress Log entries for the round-3
coverage-row fix and this round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add rows F19-F20 for da2ce7's round-4 F18-F19 (renumbered on
collision) and append a correction with the forge and commit times of
round 3, leaving the round-3 entries as written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@josecelano

Copy link
Copy Markdown
Member

ACK 5fb5bd1

@josecelano
josecelano requested a review from da2ce7 November 16, 2026 07:58
da2ce7
da2ce7 previously approved these changes Nov 16, 2026

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 5fb5bd171c75c912b400ac4b949cf95b116affe6. Recomputed from the bytes at this head, against the merge base d07dad10e; git merge-tree against develop d07dad10e merges cleanly, and the merged tree equals the head's tree.

Process: round 6. The branch was rebased onto develop after #2871 archived the #2824 spec, which the open-pull-request skill allows for a change that landed on develop. git range-diff shows commits 1-10 with patches identical to the reviewed ones, plus one new commit, 5fb5bd171. The delta in the two PR files between the reviewed head and this head is exactly that commit's diff, and every other file's delta is exactly develop's change since abd7a10ff.

The change against its claim: 5fb5bd171 moves the related-artifacts entry and the References path to docs/issues/closed/2824-1347-add-tests-primitives/ISSUE.md, which exists. It also bumps last-updated-utc to 07:54 and logs the rebase at 07:54, against a commit at 07:54:41 UTC. F1-F16, F18 and F19 stay fixed.

Consistency: links and paths resolve at this head. The audit is unchanged; the review since round 5 needed no reply. All 20 threads are resolved. The validator's logic, run offline against the capture with the local commit range for subjects, reports 20 rows, 14 log entries and 0 failures. The commit-id check, run at this head with UPSTREAM_REMOTE=work, prints nothing.

Hygiene: the subjects are Conventional, author = committer, the commits carry the same attribution footer as before (no rule in the tree forbids it), and git diff --check is clean. The skill's closing-keyword scan of the commit messages matches closed #2824 in the new subject (F21).

Findings: F21 Minor, inline; none blocking.

Checked, no finding: the description, unchanged and still matching the branch; the two old #2824 paths in the audit (lines 106 and 301), which are dated current-tree verifications and describe the path at the time.

Checks

On the loop's compute node at this head, against develop d07dad10e, onto which the branch was rebased (receipt server-gates-kranich-924): the repository's pre-commit gate and lint roster exit 0, and the review-audit validator reports 20 rows, 14 log entries and no failure. The PR changes documentation only, so no package tests apply. F21 checked against the bytes at posting: the subject of 5fb5bd171 is docs(issues): point the peer-id-test-helper spec at the closed #2824 spec, which the closing-keyword pattern of open-pull-request (SKILL.md line 211) matches, and #2824 is already closed, so the merge cannot change its state. GitHub checks at this head at posting time: "Docs Lint: completed/success". At posting, develop is 4342dd654.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 5fb5bd1 — verified at this head that the rebase carries the reviewed patches unchanged, the #2824 paths resolve, the commit-id check is empty, all 20 threads are resolved and audited, and the audit passes the validator's logic offline

josecelano-bot and others added 2 commits November 16, 2026 08:07
…ust#2824 spec

torrust#2871 moved the torrust#2824 spec to docs/issues/closed/. Update the
related-artifacts entry and the References path, and log the change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add row F21 for da2ce7's round-6 finding on a commit subject, and log
the approval without findings, the rebase onto develop and this round.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@josecelano

Copy link
Copy Markdown
Member

ACK 5fb5bd1

@josecelano

Copy link
Copy Markdown
Member

ACK 8a8b75f

@josecelano
josecelano requested a review from da2ce7 November 16, 2026 08:17

@da2ce7 da2ce7 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed at 8a8b75fe9e406ddc3e863ed0a959353dff5679d0. Recomputed from the bytes at this head, against the merge base d07dad10e; git merge-tree against develop a35960402 merges cleanly, with no conflict. develop's new commits add two issue specs and touch no path this spec cites.

Process: round 7. git range-diff shows commits 1-10 unchanged. Commit 11 is reworded (5fb5bd171 to 442babb7f) with the same patch and the same tree. Commit 12, 8a8b75fe9, is new and records round 6 in the audit. The delta between the reviewed head and this head is exactly that commit's diff.

The change against its claim: F21 is fixed. The subject now says "archived", and the skill's closing-keyword scan over the branch's commit messages prints nothing. The audit adds F21 with the right severity, logs the round-5 approval, the rebase and round 6, and its stamps fit the forge and commit times: review 08:06:57, reword 08:07:57, reply 08:08:12, audit commit 08:08:26 UTC. Every earlier finding stays fixed.

Consistency: the F21 reply sits on its own thread, and all 21 threads are resolved. The validator's logic, run offline against the capture with the local commit range for subjects, reports 21 rows, 18 log entries and 0 failures. The commit-id check, run at this head with UPSTREAM_REMOTE=work, prints nothing.

Hygiene: the subjects are Conventional, author = committer, the commits carry the same attribution footer as before (no rule in the tree forbids it), and git diff --check is clean. The title and description match nothing in the closing-keyword scan.

Findings: F22 and F23 Minor, inline; none blocking. The reword is a history rewrite under the open-pull-request skill, and two of its steps are missing.

Checked, no finding: the description still matches the branch; the audit's note on the two older paths.

Checks

On the loop's compute node at this head, against develop d07dad10e (receipt server-gates-kranich-928): the repository's pre-commit gate and lint roster exit 0 (54 s wall), and the review-audit validator reports 21 rows, 18 log entries and no failure. The PR changes documentation only, so no package tests apply. Checked against the bytes at posting: no commit subject from d07dad10e to this head matches the closing-keyword pattern any more, so F21 is fixed; .github/skills/dev/git-workflow/open-pull-request/SKILL.md lines 128-131 ask a rewrite to map the commit ids cited in review comments to subjects in the audit and to say in the PR body that the history was rewritten (F22, F23). GitHub checks at this head at posting time: "Docs Lint: in_progress/pending". At posting, develop is a35960402.

@da2ce7

da2ce7 commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

ACK 8a8b75f — verified at this head that review finding F21 is fixed with the same tree, the commit-id check and closing-keyword scan are empty, all 21 threads are resolved and audited, and the audit passes the validator's logic offline

@josecelano

Copy link
Copy Markdown
Member

ACK 8a8b75f

@josecelano
josecelano merged commit a25a27e into torrust:develop Nov 16, 2026
1 check passed
josecelano added a commit that referenced this pull request Nov 16, 2026
…under EPIC #1347

1f419c5 docs(pr-reviews): [#2876] remove the quoted branch commit id from the F11 heading (josecelano-bot)
08b9fa7 docs(pr-reviews): [#2876] record review round 3 of PR 2878 (josecelano-bot)
a525035 docs(pr-reviews): [#2876] drop the PR-branch commit id from the round-2 audit entry (josecelano-bot)
11faa99 docs(pr-reviews): [#2876] record review round 2 of PR 2878 (josecelano-bot)
8be0321 docs(issues): [#2876] note in the #2824 AC9 row that F5 was filed later as #2876 (josecelano-bot)
bec142e docs(issues): [#2876] match the update stamps of the EPIC and the #2824 spec to their edit (josecelano-bot)
f7cc1dd docs(pr-reviews): [#2876] record review round 1 of PR 2878 (josecelano-bot)
413b2cb docs(issues): [#2876] log review round 1 of PR 2878 in the spec (josecelano-bot)
2dc8c56 docs(issues): [#2876] point the F5 owner cells at #2876 and its open spec (josecelano-bot)
e514785 docs(issues): [#2876] split the spec approval checkpoint from the Q1-Q7 answers (josecelano-bot)
421882b docs(issues): [#2876] name the parent EPIC under the spec title (josecelano-bot)
a105cda docs(issues): [#2876] use the -spec branch name in the spec frontmatter (josecelano-bot)
90b52d8 docs(issues): [#2876] file the peer-id-test-helper spec under EPIC #1347 (josecelano-bot)

Pull request description:

  Related to #2876. Part of EPIC #1347.

  Spec-only PR. It files finding F5 of #2824 as issue #2876:

  - moves the draft spec from `docs/issues/drafts/peer-id-test-helper/` to `docs/issues/open/2876-1347-peer-id-test-helper/` and sets `epic: 1347`, `github-issue: 2876`, `spec-path`, `branch` (`2876-peer-id-test-helper-spec`) and `status: planned`;
  - in the spec, fills the issue number into the heading, adds the parent EPIC line, splits the approval checkpoint (draft reviewed and merged through #2865; Q1-Q7 still open) and ticks the issue checkpoint, and adds progress-log entries;
  - adds the row for #2876 to the sub-issue table of the EPIC #1347 spec, and points the F5 owner cells (EPIC row 11, and the Findings Register, AC9 row and `lessons.md` of the closed spec of #2824) at #2876 and its open spec.

  The rest of the spec (merged through #2865) is unchanged. The open design questions Q1-Q7 are still unanswered; there are no code changes and nothing is implemented. Implementation starts only after the maintainer answers them, and re-runs the caller inventory and compile proof first (AC1).

  The sub-issue link between #2876 and #1347 is for the maintainer to create (the bot cannot).

  ## Validation

  - `linter markdown` passed on the first commit.
  - The pre-commit hook (including the staged frontmatter validator) passed on every commit.
  - Review rounds are recorded in `docs/pr-reviews/pr-2878-review/PR-REVIEW.md`.

  🤖 Generated with [Claude Code](https://claude.com/claude-code)

ACKs for top commit:
  da2ce7:
    ACK 1f419c5 — verified at this head that the rebase onto develop e784919 keeps every commit and the PR's net change, F1 to F9 stay fixed, the audit passes the validator's logic offline, the commit-id check and closing-keyword scans are empty, and merge-tree against develop is clean
  josecelano:
    ACK 1f419c5

Tree-SHA512: 3b18d336408e85fdc0a21712cbcbf30e78679a5d0eb7ded228b681bbc380c1e78fc9579dcc86df666e07de4c6bf577c9478d2cca3bed712bc21db5682ca6f4ee
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants