Skip to content

docs(pr-reviews): [#2347] close out the post-merge triage of five merged PRs - #2367

Merged
da2ce7 merged 4 commits into
torrust:developfrom
da2ce7:2347-t7-close-out
Oct 6, 2026
Merged

da2ce7 merged 4 commits into
torrust:developfrom
da2ce7:2347-t7-close-out

Conversation

@da2ce7

@da2ce7 da2ce7 commented Sep 28, 2026

Copy link
Copy Markdown
Contributor

Closes the loop on the 32 findings posted after PRs #2290, #2293, #2300, #2313, and #2320 merged, now that their follow-up PR #2363 is on develop, and records the last review rounds of PR #2363.

The thread replies and resolutions were the maintainer's (josecelano, 17:07 UTC, and 16:53 UTC for PR #2363 F15); this PR records them.

Summary

Files touched

  • docs/pr-reviews/pr-2290-review/PR-REVIEW.md
  • docs/pr-reviews/pr-2293-review/PR-REVIEW.md
  • docs/pr-reviews/pr-2300-review/PR-REVIEW.md
  • docs/pr-reviews/pr-2313-review/PR-REVIEW.md
  • docs/pr-reviews/pr-2320-review/PR-REVIEW.md
  • docs/pr-reviews/pr-2363-review/PR-REVIEW.md
  • docs/issues/open/2347-2003-triage-post-merge-review-findings/ISSUE.md
  • docs/issues/open/2347-2003-triage-post-merge-review-findings/manual-verification-evidence.md

Validation

Related to #2347. Closing #2347 and archiving its spec follow as a separate step: cleanup-completed-issues archives only the spec of an issue that is closed.

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.

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

Review effort: Lite
Findings: 3 Medium severity · 1 Low severity

Open (4)
What changed in this PR

Closes out the post-merge triage for issue #2347 by recording maintainer replies/resolutions and updating the affected PR review audits and issue evidence to reflect final dispositions after PR #2363 merged.

Changes:

  • Update multiple PR audit tables to mark post-merge findings as FIXED/RESOLVED or NO_ACTION/RESOLVED after T7.
  • Extend the PR #2363 audit with F15 plus recorded rounds 6–7 and processing-log entries, including post-merge approval reference.
  • Mark M2/T6/T7/AC4 as done in #2347 docs and add manual verification evidence for thread-state reconciliation.
File Description
docs/​pr-reviews/​pr-2290-review/​PR-REVIEW.md Marks resolved post-merge findings and updates resolution/reply references and processing log.
docs/​pr-reviews/​pr-2293-review/​PR-REVIEW.md Marks resolved post-merge findings and updates resolution/reply references and processing log.
docs/​pr-reviews/​pr-2300-review/​PR-REVIEW.md Marks resolved post-merge findings and updates resolution/reply references and processing log.
docs/​pr-reviews/​pr-2313-review/​PR-REVIEW.md Marks F8/F10 resolved and updates resolution/reply references and processing log.
docs/​pr-reviews/​pr-2320-review/​PR-REVIEW.md Marks F28/F29 resolved and updates resolution/reply references and processing log.
docs/​pr-reviews/​pr-2363-review/​PR-REVIEW.md Adds post-merge approval URL, new finding F15, round 6 narrative, and processing-log tail.
docs/​issues/​open/​2347-2003-triage-post-merge-review-findings/​ISSUE.md Records approvals, T7 close-out steps, and updates statuses/acceptance criteria to DONE.
docs/​issues/​open/​2347-2003-triage-post-merge-review-findings/​manual-verification-evidence.md Records M2 evidence/results showing only FOLLOW_UP threads remain unresolved.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano josecelano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Reviewed at 71cafeab5. Nothing here blocks the merge, and you can merge it yourself once you've read these. The findings can go in the #2347 archive PR, which edits the same spec anyway.

Checked

  • validate-audit-record.py exits 0 for all six audits: #2290 (7 rows), #2293 (8), #2300 (12), #2313 (10), #2320 (29), and #2363 (15, base bc90cde1b^1).
  • The five merged-PR audits match the closed #2368 row for row, including resolution references and reply URLs.
  • V2 (M2) matches a fresh GraphQL fetch: of the 32 threads, 23 are resolved, and the 9 open ones are exactly the FOLLOW_UP rows, each naming its owner.
  • The cited review IDs, ACK comment IDs (5874296059 at 16:32:39Z, 5874566969 at 16:50:04Z), stamps, and approval URL 5875119437 are correct.
  • Both commits carry valid PGP signatures.

Findings (inline)

  • F1 [Minor]: the spec no longer says the commits are signed.
  • F2 [Nit]: round 7 is logged under 17:00, after the 16:53 entry.
  • F3 [Nit]: the dismissal of the four CHANGES_REQUESTED reviews is not logged.
  • F4 [Nit]: grammar in three Processing Log entries.

Another point, not a finding: most of the spec's +111/-122 diff unwraps paragraphs into single lines, which hides the real changes. git diff --word-diff shows them.

- For each finding, verify against the current `develop` tree whether it is still live, and record the verification command or inspection.
- Normalize every finding into the owning PR's audit record, as `process-pr-review` requires: create `docs/pr-reviews/pr-2290-review/PR-REVIEW.md` and `pr-2293-review/PR-REVIEW.md`, and append rows to the #2300, #2313, and #2320 audits with collision-safe IDs, keeping the reviewer's ID in each detail entry.
- Propose one disposition per finding for maintainer approval: fix in this task (small, documentation-only corrections), `NO_ACTION` (not live, or declined by the maintainer), or `FOLLOW_UP` in a separate issue for anything larger or outside documentation.
- Apply only the approved fixes, in commits grouped per owning PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

[Minor][F1] The spec no longer says the commits are signed

This PR deletes "signed" in seven places: here, the "One fix per commit" decision, the T4, T5, T6 and T7 commit points, and the first risk mitigation. The commits themselves are signed, but AGENTS.md makes signed commits absolute (Essential Rule 2), and the spec's commit policy no longer says so. Was this intentional? If not, please restore the word in the archive PR.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Intentional. The spec's commit policy now describes what each task's change set is and which commit type it takes, and it no longer restates the repository-wide commit rule, because that rule already holds for every commit in the repository through AGENTS.md and the signature check, whether or not a given spec repeats it. Repeating it inside a specification turns a repository invariant into a per-document claim that the document's own validation cannot check, which is why the loop's artifacts stop carrying it. The maintainer's progress-log entries that mention it are unchanged, since those are append-only history. If the maintainers prefer the spec's commit policy to carry the word as well, that is a one-line change per place and it can go into the archive PR; the loop follows the maintainers' decision on the repository's own text.

@josecelano

Copy link
Copy Markdown
Member

ACK 71cafea

@da2ce7, feel free to merge. The findings in my review (5342718888) are non-blocking; handle them as you see fit, in the archive PR or not at all.

@da2ce7

da2ce7 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

ACK 4e0f46c — the four close-out commits rebased onto develop at 7970cdf unchanged (range-diff four = against the tip the maintainer ACKed), the six review threads answered and resolved, the one open thread (the commit-policy wording) answered as intentional

da2ce7 added 4 commits October 6, 2026 16:57
…th the close-out

The close-out changed the F5, F6, F9 (PR torrust#2300), F8, F10 (PR torrust#2313) and F28, F29 (PR torrust#2320) rows to their resolved states, but the narrative paragraph under each table still described the pre-merge state, saying the fixed findings stay FOLLOW_UP/OPEN until PR torrust#2363 merges. Each paragraph now states the recorded state: PR torrust#2363 merged on 2026-09-28, the fixed findings are FIXED/RESOLVED, the NO_ACTION threads are resolved in the close-out, and the remaining FOLLOW_UP items keep their owners.

Copilot review on the close-out pull request, threads on the three audits.
…ing log and fix three log entries

The PR torrust#2363 audit logged round 7 inside the 17:00 merge entry, after the 16:53 entry, although its review and ACK were posted at 16:50, and it had no entry for the dismissal of the four CHANGES_REQUESTED reviews at 16:54 that cleared the last blocking reviews before the merge. Round 7 now has its own 16:50 entry, a 16:54 entry records the dismissals, the 17:00 entry keeps only the merge, and the Round 6 paragraph and the F15 detail follow the same order, so the log is chronological through the close-out.

Three close-out log entries in the PR torrust#2293, torrust#2313 and torrust#2320 audits lose a stray comma and a plural that described a single finding.

Maintainer review on the close-out pull request, findings F2, F3 and F4.
@da2ce7
da2ce7 force-pushed the 2347-t7-close-out branch from 4e0f46c to e233bf8 Compare October 6, 2026 14:57
@da2ce7

da2ce7 commented Oct 6, 2026

Copy link
Copy Markdown
Contributor Author

ACK e233bf8 — the four close-out commits rebased onto develop at 693162b unchanged (range-diff four = against the previous tip, which was itself four = against the tip the maintainer ACKed), the six review threads answered and resolved, the one open thread (the commit-policy wording) answered as intentional

@da2ce7
da2ce7 merged commit 3f2ebd7 into torrust:develop Oct 6, 2026
1 check passed
josecelano added a commit that referenced this pull request Oct 6, 2026
…nversions

cd68a6b docs(pr-reviews): [#2245] record the approving round 3 on #2452 (Jose Celano)
996f68e docs(pr-reviews): [#2245] record the approving round 2 on #2452 (Jose Celano)
3c8eea1 docs(pr-reviews): [#2245] record round-1 human review findings on #2452 (Jose Celano)
f910f92 docs(issues): [#2245] note the configuration-load follow-up on the EPIC row (Jose Celano)
f367515 docs(issues): [#2245] add bug-fix process and regression test strategy (Jose Celano)
887bc80 docs(issues): [#2245] record the regression-test boundary and red/green runs (Jose Celano)
0f97094 test(udp-server): [#2245] pin the announce wire clamp at every build_response call site (Jose Celano)
b4d1a75 refactor(udp-server): [#2245] share one BEP 15 i32 clamp between announce and scrape (Jose Celano)
57c823b docs(pr-reviews): [#2245] audit Copilot review findings on #2452 (Jose Celano)
b65d0d7 docs(issues): [#2245] record acceptance review and implementation retrospective (Jose Celano)
4af7c35 docs(issues): [#2245] reconcile wire conversion outcomes in #2158 inventory (Jose Celano)
8086935 docs(issues): [#2245] record M1 announce interval verification (Jose Celano)
9600616 fix(udp-server): [#2245] clamp announce wire fields instead of wrapping negative (Jose Celano)
1378e49 refactor(udp-protocol): [#2245] remove the crate-level truncation allowance (Jose Celano)
7489116 docs(issues): [#2245] record approved wire conversion review outcomes (Jose Celano)

Pull request description:

  ## Summary

  Resolves the two numeric protocol wire-conversion Clippy suppressions owned by #2245 (child of EPIC #2243). Both allowances are removed, and A171 turned out to hide a real defect.

  | Entry | Package | Change |
  | ----- | ------- | ------ |
  | A156 | `udp-protocol` | Removing the crate-level `cast_possible_truncation` allowance showed it hid exactly one cast: the scrape parser's cursor offset, which is always 16 and bounded by the slice length. It now uses `usize::try_from` mapped to the parser's existing `invalid data` error, so the public parser stays panic-free. Behaviour is unchanged. |
  | A171 | `udp-server` | **Defect fix.** `build_response` narrowed the `u32` announce interval and seeder/leecher counts to BEP 15's signed 32-bit fields with a wrapping cast. A configured `interval = 2147483648` was sent over UDP as `-2147483648` (reproduced against a local tracker). A `saturating_wire_i32` helper now clamps all three fields to `i32::MAX`. It is shared with the scrape handler, which already applied the same clamp. |

  ## Decisions and Follow-up

  The #2245 spec records each decision with the alternatives that were rejected. Two approved decisions were revised during implementation, with maintainer approval:

  - A156 first used `try_from(..).expect(..)`, but pedantic Clippy (`missing_panics_doc`) would have required the public `Request::parse_bytes` to document a panic that cannot happen. It now returns a parse error instead.
  - Rejecting an out-of-range `interval` at configuration load is deferred to a follow-up issue. A check in `Core::validate` would conflict with the configuration validation ADR (`docs/adrs/20260723184019_separate_configuration_value_invariants_from_consistency_validation.md`), which requires a typed newtype for single-value bounds. Until then, an out-of-range interval is still accepted and clamped on the UDP wire.

  The implementation retrospective in the issue folder records why both revisions happened.

  ## Validation

  - A `build_response` regression test sets the interval and leechers to `i32::MAX + 1` and seeders to `u32::MAX` for both address families, pinning all six call sites. The helper tests cover an in-range value, `i32::MAX`, `i32::MAX + 1`, and `u32::MAX`. Both fail when the original wrapping cast is restored; the red and green runs are recorded verbatim in the issue folder's evidence file.
  - A156's error branch is unreachable by construction. The existing scrape round-trip and rejection tests cover the changed line.
  - Manual scenario M1: before the fix, `interval = 2147483648` was encoded as `-2147483648`. After the fix, both `2147483647` and `2147483648` encode as `2147483647`. The evidence file embeds the configuration and the verbatim responses.
  - Pre-commit (`linter all`, `cargo machete`, doc tests) and pre-push (nightly fmt/check/doc and the full test suite) pass on the rebased branch.

  ## Documentation

  - The #2245 spec frontmatter is migrated to v1, and the spec records the review outcomes, acceptance evidence, and retrospective.
  - The A156 and A171 rows of the #2158 inventory (an already-archived issue) are marked as removed by #2245, following the #2246 precedent.
  - The EPIC #2243 subissue table marks #2245 as in progress, with a note about the configuration-load follow-up.
  - The #2245 spec has the Bug-Fix Process and Regression Test Strategy sections the bug template requires.
  - Review findings are tracked in `docs/pr-reviews/pr-2452-review/PR-REVIEW.md`.

  Closes #2245

ACKs for top commit:
  da2ce7:
    ACK cd68a6b — the round-3 tip rebased onto the live develop tip 8943aa5 (the merges of #2367 and #2453, documents only) with all thirteen commits unchanged, plus the two Processing Log entries for rounds 2 and 3, both true to the reviews, threads and timeline
  josecelano:
    ACK cd68a6b

Tree-SHA512: dff31b899c383699db77cfb3edabeaec48c9c3e54367a3e041ce73eff53081b8eaa3a24190fa664af38a4dbcfc2a700337f5869506e2ff45f4bb14417b6f79d0
josecelano added a commit that referenced this pull request Nov 6, 2026
…ownership to josecelano

5f1f676 docs(pr-reviews): [#2003] record the PR #2749 review round 1 (josecelano-bot)
407a0e6 docs(issues): [#2003] attribute the 2026-11-06 progress log entry to a maintainer handle (josecelano-bot)
e82bd07 docs(issues): [#2003] mark the order 12 close-out checklist as a historical plan (josecelano-bot)
de3affe docs(issues): [#2003] drop the note about rows 16 to 19 from the unordered list (josecelano-bot)
cf50477 docs(issues): [#2003] state the end date of da2ce7's ownership (josecelano-bot)
6874dd7 docs(issues): [#2003] refresh the EPIC state and return ownership to josecelano (josecelano-bot)

Pull request description:

  Spec-only PR for EPIC #2003.

  - Sets `epic-owner` to josecelano and records that da2ce7 held the EPIC from 2026-09-28 to reorganize it and file the friction register.
  - Adds Subissues rows 16 to 19: #2581 (DONE, PR #2683) and #2712, #2713, #2714 (TODO), which GitHub lists as sub-issues but the spec did not.
  - Notes that #2347's close-out PR #2367 merged; the #2347 specification stays the record.
  - Adds a Decisions entry and a Progress Log line. Nothing else changes.

  Checks: `linter markdown`, `linter cspell` and the pre-commit gate pass. The issue body mirror is not re-derived here; the maintainer decides when.

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

ACKs for top commit:
  josecelano:
    ACK 5f1f676

Tree-SHA512: a573a28811ede31b66fa8fe1bc17def0a70275962b0443362957ff0c57d5fbfd73c76822020bd92390f97a8d38b2ced5b424de43de57543d0c49a37dbf3e13f5
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.

3 participants