Repository navigation
chore(issues): archive closed issue #2435 spec - #2453
Merged
josecelano merged 2 commits intoOct 6, 2026
Merged
Conversation
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
Review effort: Lite
Findings: 2
Open (2)
What changed in this PR
Archives the spec for closed issue #2435 by updating the spec metadata and repairing references to point from docs/issues/open/ to docs/issues/closed/.
Changes:
- Updated multiple
related-artifactsand reference links to point at thedocs/issues/closed/.../ISSUE.mdpath. - Updated the issue spec front matter (
status,spec-path,last-updated-utc), progress log, archive checklist, and related PRs. - Updated ADR
20261005145329to reference the closed spec location.
| File | Description |
|---|---|
| docs/pr-reviews/pr-2445-review/PR-REVIEW.md | Adjusts audit front matter to reference the archived (closed) issue spec location. |
| docs/issues/open/2435-remove-misleading-panics-in-in-memory-torrent-repository/implementation-retrospective.md | Updates related-artifacts link to the issue spec’s closed location. |
| docs/issues/open/2435-remove-misleading-panics-in-in-memory-torrent-repository/agent-review-reports.md | Updates related-artifacts link to the issue spec’s closed location. |
| docs/issues/open/2435-remove-misleading-panics-in-in-memory-torrent-repository/ISSUE.md | Marks issue as done, updates spec-path, adds archive/progress entries, and updates related PR list. |
| docs/adrs/20261005145329_return_result_only_for_concretely_fallible_public_apis.md | Repairs ADR front matter and reference link to the archived issue spec location. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
josecelano
added a commit
to josecelano/torrust-tracker
that referenced
this pull request
Oct 6, 2026
Records Copilot's two findings (F1, and F2 as its re-raise) on the ADR references: no change, because the spec move is part of the PR.
josecelano
force-pushed
the
chore/archive-2435-issue-spec
branch
from
October 6, 2026 14:32
04deffd to
c9224b6
Compare
josecelano
added a commit
to josecelano/torrust-tracker
that referenced
this pull request
Oct 6, 2026
Records Copilot's two findings (F1, and F2 as its re-raise) on the ADR references: no change, because the spec move is part of the PR.
josecelano
force-pushed
the
chore/archive-2435-issue-spec
branch
from
October 6, 2026 14:47
c9224b6 to
48388c5
Compare
…closed Moves the torrust#2435 spec folder (ISSUE.md, agent-review-reports.md, implementation-retrospective.md) to docs/issues/closed/ after PR torrust#2445 merged and the issue closed. Sets status done and the new spec-path, ticks the archive checkpoint, adds PR torrust#2445 to Related PRs, and updates the live references in ADR 20261005145329 and the PR torrust#2445 audit front matter. The PR torrust#2436 audit keeps the old path as a historical record.
Records Copilot's two findings (F1, and F2 as its re-raise) on the ADR references: no change, because the spec move is part of the PR.
josecelano
force-pushed
the
chore/archive-2435-issue-spec
branch
from
October 6, 2026 15:28
48388c5 to
33938bc
Compare
Member
Author
|
ACK 33938bc |
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
This was referenced Oct 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Archives the spec for issue #2435 (closed on GitHub after PR #2445 merged) from
docs/issues/open/todocs/issues/closed/.Related to #2435
CLOSEDon GitHubISSUE.md,agent-review-reports.md,implementation-retrospective.mdISSUE.mdfront matter (status: done,spec-path,last-updated-utc), ticked the archive checkpoint, added PR refactor(swarm-coordination-registry): [#2435] return plain values from infallible registry methods #2445 to Related PRs, and added a progress-log entryrelated-artifactspaths20261005145329(front matter and the References link) and the PR refactor(swarm-coordination-registry): [#2435] return plain values from infallible registry methods #2445 audit front matter