From 54715507f46a917f718f6ceb3159d65be4518048 Mon Sep 17 00:00:00 2001 From: josecelano-bot Date: Wed, 18 Nov 2026 19:14:17 +0000 Subject: [PATCH] chore(issues): archive closed issue #2804 spec to docs/issues/closed Close-out of the audit issue #2804. Its fix work is now EPIC #2912 (sub-issues #2913 to #2918 and #384), created from the audit's slicing plan, so the closing condition recorded in the spec is met. - Mark the spec done: AC3 done by #2913 (ADR, PR #2930); AC4, AC5, the enforcement part of AC7 and the manual scenarios M1 to M3 handed over to the EPIC; checkpoints, progress log and completion review updated. - Move the folder to docs/issues/closed/ and repair the live links in the EPIC, its sub-issue specs, #384 and the ADR. Progress-log entries and PR-review records keep the path they recorded. Co-Authored-By: Claude Opus 5.5 --- ...3_errors_do_not_record_source_locations.md | 8 +-- .../ISSUE.md | 67 ++++++++++--------- .../experiments.md | 4 +- .../inventory.md | 4 +- .../manual-verification-evidence.md | 4 +- .../options.md | 4 +- .../ISSUE.md | 8 +-- .../EPIC.md | 10 +-- .../open/2914-2912-si-2-primitives/ISSUE.md | 10 +-- .../ISSUE.md | 8 +-- .../open/2916-2912-si-4-tracker-core/ISSUE.md | 10 +-- .../ISSUE.md | 10 +-- .../ISSUE.md | 8 +-- .../ISSUE.md | 10 +-- 14 files changed, 86 insertions(+), 79 deletions(-) rename docs/issues/{open => closed}/2804-location-caller-track-caller-audit/ISSUE.md (88%) rename docs/issues/{open => closed}/2804-location-caller-track-caller-audit/experiments.md (97%) rename docs/issues/{open => closed}/2804-location-caller-track-caller-audit/inventory.md (99%) rename docs/issues/{open => closed}/2804-location-caller-track-caller-audit/manual-verification-evidence.md (96%) rename docs/issues/{open => closed}/2804-location-caller-track-caller-audit/options.md (99%) diff --git a/docs/adrs/20261118045443_errors_do_not_record_source_locations.md b/docs/adrs/20261118045443_errors_do_not_record_source_locations.md index 6420805761..83f39aad8b 100644 --- a/docs/adrs/20261118045443_errors_do_not_record_source_locations.md +++ b/docs/adrs/20261118045443_errors_do_not_record_source_locations.md @@ -7,8 +7,8 @@ semantic-links: - .claude/skills/create-adr/SKILL.md - .claude/skills/handle-errors-in-code/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md - - docs/issues/open/2804-location-caller-track-caller-audit/options.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/options.md --- @@ -30,7 +30,7 @@ Many error types in the workspace have a `location: &'static Location<'static>` `Location::caller()`, and several wrap their source in `LocatedError` from the standalone crate `torrust-located-error`. The intent was to tell a developer where an error was created. -The audit of issue #2804 (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md` +The audit of issue #2804 (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md` and `options.md`) found that the recorded location is never the caller's: - None of the 38 production `Location::caller()` sites (37 since #2850) is in a `#[track_caller]` @@ -161,7 +161,7 @@ The four options compared in `options.md`: - Issue [#2913](https://github.com/torrust/torrust-tracker/issues/2913) (SI-1), which records this ADR. - Audit: issue [#2804](https://github.com/torrust/torrust-tracker/issues/2804), - `docs/issues/open/2804-location-caller-track-caller-audit/inventory.md` and `options.md`. + `docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md` and `options.md`. - Issue [#384](https://github.com/torrust/torrust-tracker/issues/384), the 2023 report of locations in client responses. - `docs/adrs/20261005145329_return_result_only_for_concretely_fallible_public_apis.md`, the diff --git a/docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md b/docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md similarity index 88% rename from docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md rename to docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md index d7e494ee93..93f2110017 100644 --- a/docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md +++ b/docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md @@ -2,14 +2,14 @@ schema-version: 1 doc-type: issue issue-type: task -status: planned +status: done priority: p2 epic: null github-issue: 2804 -spec-path: docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md +spec-path: docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md branch: "2804-location-caller-track-caller-audit-spec" -related-pr: null -last-updated-utc: "2026-11-17 17:30" +related-pr: 2836 +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -284,15 +284,15 @@ with the narrow affected scope, and sign every commit with GPG. - [x] Spec reviewed and approved by user/maintainer - [x] GitHub issue created and issue number added to this spec - [x] (Optional, recommended for complex issues) Spec-only PR merged into `develop` before implementation (#2805) -- [ ] Implementation completed -- [ ] Automatic verification completed (`linter all`, relevant tests, and any pre-push checks) -- [ ] Manual verification scenarios executed and recorded in issue-local `manual-verification-evidence.md` -- [ ] Acceptance criteria reviewed after implementation and updated with evidence -- [ ] Evidence-based implementation completion review recorded: issue-local retrospective created for material discoveries, or progress log states why none was needed +- [x] Implementation completed (the audit, T1 to T5; the fix tasks T6 to T9 moved to EPIC #2912) +- [x] Automatic verification completed (`linter all`, relevant tests, and any pre-push checks): documentation only, `linter all` on the close-out +- [x] Manual verification scenarios executed and recorded in issue-local `manual-verification-evidence.md`: the drafting-time reproduction D1 is recorded; M1 and M2 moved to #384 and M3 to #2914 (see Manual Verification Scenarios) +- [x] Acceptance criteria reviewed after implementation and updated with evidence +- [x] Evidence-based implementation completion review recorded: issue-local retrospective created for material discoveries, or progress log states why none was needed - [ ] Reviewer validated acceptance criteria and updated checkboxes - [ ] Independent reviewer reports recorded in issue-local `agent-review-reports.md` when reviewers received this folder-style specification -- [ ] Committer verified spec progress is up to date before commit -- [ ] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/` +- [x] Committer verified spec progress is up to date before commit +- [x] Issue closed and spec moved from `docs/issues/open/` to `docs/issues/closed/` (the close-out PR moves the spec and closes the issue when it merges) ### Progress Log @@ -308,21 +308,22 @@ with the narrow affected scope, and sign every commit with GPG. - 2026-11-11 11:55 UTC - Claude Code (Sonnet 5.5) - Corrected the S3 and S5 slices of T4 after the second review of PR #2821: `MissingTlsConfig` needs no change, version steps per crate, the info-hash paths need source suppression or an upstream fix (`options.md`). - 2026-11-11 17:03 UTC - Claude Code (Fable 5.2) - T5 done as a slicing plan: the maintainer proposed to remove the feature, so the fix tasks moved to an EPIC draft with six sub-issue drafts and the specification for #384. The ADR is sub-issue SI-1 of that EPIC. AC1, AC2 and AC6 recorded as done with their evidence. - 2026-11-11 17:39 UTC - Claude Code (Fable 5.2) - After review of PR #2836: the moved-tasks table names this specification's own scenarios M1 to M3, and the duplicated `Disposable Verification Scripts` heading is removed from the seven new specifications. +- 2026-11-18 19:11 UTC - Claude Code (Opus 5.5) - Close-out: EPIC #2912 and its sub-issues #2913 to #2918 exist (PR #2919), so the closing condition is met. AC3 is done by #2913 (ADR, PR #2930); AC4, AC5, the enforcement part of AC7 and the scenarios M1 to M3 are handed over to the EPIC. No retrospective: the audit produced no lesson beyond what `options.md`, the EPIC and the ADR record. Spec moved to `docs/issues/closed/` and live links repaired. ## Acceptance Criteria - [x] AC1: `inventory.md` classifies every `Location::caller()` and `#[track_caller]` in the workspace and the dependency-tree standalone crates. - [x] AC2: Every wrong site is marked user-visible or developer-only with the output path that proves it. -- [ ] AC3 (moved to the EPIC draft, SI-1): The chosen approach is recorded (ADR when the convention changes) and the maintainer approved it before fixes. -- [ ] AC4 (moved to the EPIC draft, SI-2 to SI-5 and #384): No client-visible HTTP or UDP response and no `Display` of a public error contains a library source path, proven by regression tests that go through `str::parse`/`try_into` where relevant. -- [ ] AC5 (moved to the EPIC draft, SI-6): Remaining `Location::caller()` uses are either in a `#[track_caller]` chain that reaches a meaningful call site or on an allow-list with a reason. +- [x] AC3 (done by SI-1, #2913): The chosen approach is recorded (ADR when the convention changes) and the maintainer approved it before fixes. +- [ ] AC4 (handed over to EPIC #2912: SI-2 to SI-5, #2914 to #2917, and #384): No client-visible HTTP or UDP response and no `Display` of a public error contains a library source path, proven by regression tests that go through `str::parse`/`try_into` where relevant. +- [ ] AC5 (handed over to EPIC #2912: SI-6, #2918; superseded by the ADR, which allows no non-test `Location::caller()` at all): Remaining `Location::caller()` uses are either in a `#[track_caller]` chain that reaches a meaningful call site or on an allow-list with a reason. - [x] AC6: Semver impact is documented per published crate and the breaking release per crate is planned. -- [ ] AC7 (moved to the EPIC draft, SI-1 and SI-6): The `handle-errors-in-code` skill states the rule, and an enforcement check exists or its infeasibility is recorded. -- [ ] `linter all` exits with code `0` -- [ ] Relevant tests pass -- [ ] Manual verification scenarios are executed and documented in issue-local `manual-verification-evidence.md` -- [ ] Acceptance criteria are re-reviewed after implementation and reflect actual behavior -- [ ] Documentation is updated when behavior/workflow changes +- [ ] AC7 (split: the skill rule is done by SI-1, #2913; the enforcement check is handed over to SI-6, #2918): The `handle-errors-in-code` skill states the rule, and an enforcement check exists or its infeasibility is recorded. +- [x] `linter all` exits with code `0` +- [x] Relevant tests pass (not applicable: this issue changed no code) +- [x] Manual verification scenarios are executed and documented in issue-local `manual-verification-evidence.md` (D1 recorded; M1 to M3 handed over, see below) +- [x] Acceptance criteria are re-reviewed after implementation and reflect actual behavior +- [x] Documentation is updated when behavior/workflow changes ## Verification Plan @@ -336,9 +337,13 @@ with the narrow affected scope, and sign every commit with GPG. | ID | Scenario | Human-oriented command/steps | Expected Result | Status | Evidence | | --- | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------ | -------------------------------------------- | -| M1 | HTTP announce with an invalid `numwant` | Run the tracker, `curl` an announce with `numwant=abc`, capture the bencoded failure reason before and after the fix | After: reason names the parameter and value, contains no `packages/` path | TODO | `manual-verification-evidence.md` section V1 | -| M2 | UDP request that yields an error response | Run the tracker, send a UDP announce for a non-whitelisted info-hash to a listed tracker, capture the error message | After: message has no library path | TODO | `manual-verification-evidence.md` section V2 | -| M3 | `"x".parse::()` | Run the regression test through `str::parse` against the old and the fixed code | Old: `peer.rs` path or std path. After: no path, input echoed | TODO | `manual-verification-evidence.md` section V3 | +| M1 | HTTP announce with an invalid `numwant` | Run the tracker, `curl` an announce with `numwant=abc`, capture the bencoded failure reason before and after the fix | After: reason names the parameter and value, contains no `packages/` path | MOVED | `manual-verification-evidence.md` section V1 | +| M2 | UDP request that yields an error response | Run the tracker, send a UDP announce for a non-whitelisted info-hash to a listed tracker, capture the error message | After: message has no library path | MOVED | `manual-verification-evidence.md` section V2 | +| M3 | `"x".parse::()` | Run the regression test through `str::parse` against the old and the fixed code | Old: `peer.rs` path or std path. After: no path, input echoed | MOVED | `manual-verification-evidence.md` section V3 | + +M1 to M3 were not run here: M1 and M2 moved to #384 (SI-7 of EPIC #2912) and M3 to #2914 (SI-2), +which own the fix they verify. Sections V1 to V3 of `manual-verification-evidence.md` are therefore +not created. Notes: use the nightly/stable toolchain label for every recorded command. Add the scenarios' sections to the existing `manual-verification-evidence.md` (created from @@ -355,11 +360,11 @@ issue folder only if they explain a decision. | ----- | ------ | ------------------------------------- | | AC1 | DONE | `inventory.md` (PR #2814) | | AC2 | DONE | `inventory.md`, T2 table (PR #2814) | -| AC3 | TODO | Moved: ADR of SI-1 in the EPIC draft | -| AC4 | TODO | Moved: SI-2 to SI-5 and #384 | -| AC5 | TODO | Moved: SI-6 | +| AC3 | DONE | ADR `docs/adrs/20261118045443_errors_do_not_record_source_locations.md` (#2913, PR #2930); the maintainer chose option 4 on 2026-11-17 | +| AC4 | MOVED | EPIC #2912: #2914, #2915, #2916, #2917 and #384 | +| AC5 | MOVED | EPIC #2912: #2918 | | AC6 | DONE | `options.md`, semver table (PR #2821) | -| AC7 | TODO | Moved: SI-1 and SI-6 | +| AC7 | MOVED | Skill rule done in #2913 (PR #2930); enforcement check in #2918 | ## Risks and Trade-offs @@ -378,7 +383,9 @@ After implementation, compare the result with this specification. Record invalidated assumptions, material design changes, unexpected validation findings, and reusable lessons. -- Retrospective: `Not yet assessed` +- Retrospective: not needed. The audit's discoveries (the wrong-by-construction locations, the + maintainer's decision to remove the feature) are recorded in `inventory.md`, `options.md`, EPIC + #2912 and its ADR; see the 2026-11-18 progress-log entry. - If needed, create `implementation-retrospective.md` from the repository template at `docs/templates/IMPLEMENTATION-RETROSPECTIVE.md` in this issue specification's directory. @@ -393,7 +400,7 @@ findings, and reusable lessons. ## References - Reporting work: EPIC #1347 (`docs/issues/open/1347-overhaul-packages-testing/EPIC.md`), primitives test session, finding F3. -- Related issues: #2804, #1894 (`torrust-located-error` extraction). -- Related ADRs: `docs/adrs/20261005145329_return_result_only_for_concretely_fallible_public_apis.md` +- Related issues: #2804, #1894 (`torrust-located-error` extraction), EPIC #2912 (`docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md`), which carries the fix work. +- Related ADRs: `docs/adrs/20261005145329_return_result_only_for_concretely_fallible_public_apis.md`, `docs/adrs/20261118045443_errors_do_not_record_source_locations.md` - Skill: `.claude/skills/handle-errors-in-code/SKILL.md` - Rust reference: `#[track_caller]` () diff --git a/docs/issues/open/2804-location-caller-track-caller-audit/experiments.md b/docs/issues/closed/2804-location-caller-track-caller-audit/experiments.md similarity index 97% rename from docs/issues/open/2804-location-caller-track-caller-audit/experiments.md rename to docs/issues/closed/2804-location-caller-track-caller-audit/experiments.md index 50f8852da7..b500cc8184 100644 --- a/docs/issues/open/2804-location-caller-track-caller-audit/experiments.md +++ b/docs/issues/closed/2804-location-caller-track-caller-audit/experiments.md @@ -1,7 +1,7 @@ --- doc-type: issue-experiments -issue-spec: docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md -last-updated-utc: "2026-11-10 21:51" +issue-spec: docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md +last-updated-utc: "2026-11-18 19:11" --- # Experiments E1 to E12: where `Location::caller()` reports what diff --git a/docs/issues/open/2804-location-caller-track-caller-audit/inventory.md b/docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md similarity index 99% rename from docs/issues/open/2804-location-caller-track-caller-audit/inventory.md rename to docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md index 3790030113..b77e25ce97 100644 --- a/docs/issues/open/2804-location-caller-track-caller-audit/inventory.md +++ b/docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md @@ -1,7 +1,7 @@ --- doc-type: issue-inventory -issue-spec: docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md -last-updated-utc: "2026-11-10 21:51" +issue-spec: docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md +last-updated-utc: "2026-11-18 19:11" --- # Inventory of `Location::caller()` and `#[track_caller]` (tasks T1 to T3) diff --git a/docs/issues/open/2804-location-caller-track-caller-audit/manual-verification-evidence.md b/docs/issues/closed/2804-location-caller-track-caller-audit/manual-verification-evidence.md similarity index 96% rename from docs/issues/open/2804-location-caller-track-caller-audit/manual-verification-evidence.md rename to docs/issues/closed/2804-location-caller-track-caller-audit/manual-verification-evidence.md index 8bc058c010..7d5c0cd116 100644 --- a/docs/issues/open/2804-location-caller-track-caller-audit/manual-verification-evidence.md +++ b/docs/issues/closed/2804-location-caller-track-caller-audit/manual-verification-evidence.md @@ -1,7 +1,7 @@ --- doc-type: manual-verification-evidence -issue-spec: docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md -last-updated-utc: "2026-11-10 14:16" +issue-spec: docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md +last-updated-utc: "2026-11-18 19:11" --- # Manual Verification Evidence diff --git a/docs/issues/open/2804-location-caller-track-caller-audit/options.md b/docs/issues/closed/2804-location-caller-track-caller-audit/options.md similarity index 99% rename from docs/issues/open/2804-location-caller-track-caller-audit/options.md rename to docs/issues/closed/2804-location-caller-track-caller-audit/options.md index 53fa15a015..55779166b5 100644 --- a/docs/issues/open/2804-location-caller-track-caller-audit/options.md +++ b/docs/issues/closed/2804-location-caller-track-caller-audit/options.md @@ -1,7 +1,7 @@ --- doc-type: issue-options -issue-spec: docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md -last-updated-utc: "2026-11-11 11:55" +issue-spec: docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md +last-updated-utc: "2026-11-18 19:11" --- # Issue #2804 - T4: fix options and recommendation diff --git a/docs/issues/closed/2913-2912-si-1-adr-errors-do-not-record-source-locations/ISSUE.md b/docs/issues/closed/2913-2912-si-1-adr-errors-do-not-record-source-locations/ISSUE.md index 3a605be0e3..4919044708 100644 --- a/docs/issues/closed/2913-2912-si-1-adr-errors-do-not-record-source-locations/ISSUE.md +++ b/docs/issues/closed/2913-2912-si-1-adr-errors-do-not-record-source-locations/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2913 spec-path: docs/issues/closed/2913-2912-si-1-adr-errors-do-not-record-source-locations/ISSUE.md branch: "2913-adr-errors-do-not-record-source-locations" related-pr: 2930 -last-updated-utc: "2026-11-18 11:08" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: - .claude/skills/fix-bug/SKILL.md - .claude/skills/create-issue/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md - .claude/skills/handle-errors-in-code/SKILL.md - .claude/skills/create-adr/SKILL.md --- @@ -37,7 +37,7 @@ change the `handle-errors-in-code` skill so that it gives that rule instead of r ## Background The audit of issue #2804 found that the source location recorded in errors is never the caller's -(`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`): none of the 38 production `Location::caller()` sites of the audit (37 since #2850) is in a +(`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`): none of the 38 production `Location::caller()` sites of the audit (37 since #2850) is in a `#[track_caller]` function, and `#[track_caller]` cannot fix any of them, because they are reached through `str::parse`, `try_into`, closures, `async fn` or `async` blocks (`options.md`, fact 6). The location is a fixed library line, and 23 `Display` formats (22 since #2850) print it into text that reaches HTTP, UDP @@ -269,5 +269,5 @@ findings, and reusable lessons. ## References - Parent EPIC: #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md` -- Audit: `docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) +- Audit: `docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) - Related issues: #2804 (audit), #384 (external report), #2583 (first publish of the workspace crates) diff --git a/docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md b/docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md index 39e07c948d..78f7126c27 100644 --- a/docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md +++ b/docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md @@ -6,16 +6,16 @@ epic: null github-issue: 2912 spec-path: docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md epic-owner: null -last-updated-utc: "2026-11-18 11:08" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue related-artifacts: - .claude/skills/create-issue/SKILL.md - .claude/skills/handle-errors-in-code/SKILL.md - - docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md - - docs/issues/open/2804-location-caller-track-caller-audit/options.md + - docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/options.md - docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md --- @@ -35,7 +35,7 @@ errors. ## Why This Is Needed The feature was meant to point a developer to the origin of an error. The audit of issue #2804 -(`docs/issues/open/2804-location-caller-track-caller-audit/`) shows that it does not do that, and +(`docs/issues/closed/2804-location-caller-track-caller-audit/`) shows that it does not do that, and that it has costs: - **It is wrong by construction.** None of the 38 production `Location::caller()` sites of the audit (37 since #2850) is in a diff --git a/docs/issues/open/2914-2912-si-2-primitives/ISSUE.md b/docs/issues/open/2914-2912-si-2-primitives/ISSUE.md index 14e9ee6236..b0593ba3f5 100644 --- a/docs/issues/open/2914-2912-si-2-primitives/ISSUE.md +++ b/docs/issues/open/2914-2912-si-2-primitives/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2914 spec-path: docs/issues/open/2914-2912-si-2-primitives/ISSUE.md branch: "2914-primitives" related-pr: null -last-updated-utc: "2026-11-17 17:30" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: - .claude/skills/fix-bug/SKILL.md - .claude/skills/create-issue/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md - packages/primitives/src/peer.rs --- @@ -36,7 +36,7 @@ Remove the `location` field and its text from `ParsePeerRoleError` and `peer::Id This is the defect that started the audit: finding F3 of the primitives test work under EPIC #1347. `"x".parse::()` returns an error whose text ends in `packages/primitives/src/peer.rs:73:27`, -the same line for every caller (`docs/issues/open/2804-location-caller-track-caller-audit/manual-verification-evidence.md`, section D1). +the same line for every caller (`docs/issues/closed/2804-location-caller-track-caller-audit/manual-verification-evidence.md`, section D1). Sites (inventory rows P1 and P2): @@ -91,7 +91,7 @@ Removing a location that a client can read is substantively a bug fix (misleadin issue follows `.claude/skills/fix-bug/SKILL.md`: - analysis: the call paths and audiences are in the audit inventory - (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; + (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; - real-artifact reproduction: a scratch program or `cargo test` snippet that prints `"x".parse::().unwrap_err()` and `peer::Id::try_from(vec![0; 19]).unwrap_err()` before the change, like section D1 of the audit evidence; - regression-test boundary: see Regression Test Strategy; - red regression-test evidence, production fix, green test evidence, and the same reproduction run @@ -276,6 +276,6 @@ findings, and reusable lessons. ## References - Parent EPIC: #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md` -- Audit: `docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) +- Audit: `docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) - Related issues: #2804 (audit), #384 (external report), #2583 (first publish of the workspace crates) - Reporting work: `docs/issues/closed/2824-1347-add-tests-primitives/` (EPIC #1347) diff --git a/docs/issues/open/2915-2912-si-3-http-tracker-request-errors/ISSUE.md b/docs/issues/open/2915-2912-si-3-http-tracker-request-errors/ISSUE.md index 22ba285e95..f00fad6b88 100644 --- a/docs/issues/open/2915-2912-si-3-http-tracker-request-errors/ISSUE.md +++ b/docs/issues/open/2915-2912-si-3-http-tracker-request-errors/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2915 spec-path: docs/issues/open/2915-2912-si-3-http-tracker-request-errors/ISSUE.md branch: "2915-http-tracker-request-errors" related-pr: null -last-updated-utc: "2026-11-17 17:30" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: - .claude/skills/fix-bug/SKILL.md - .claude/skills/create-issue/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md - packages/http-protocol/src/v1/requests/announce.rs - packages/http-protocol/src/v1/requests/scrape.rs - packages/http-protocol/src/v1/query.rs @@ -123,7 +123,7 @@ Removing a location that a client can read is substantively a bug fix (misleadin issue follows `.claude/skills/fix-bug/SKILL.md`: - analysis: the call paths and audiences are in the audit inventory - (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; + (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; - real-artifact reproduction: run the tracker with the default development configuration and send a malformed announce (for example `numwant=x`, a missing `info_hash`, a 19-byte `peer_id`, a short `info_hash`) and a scrape without `info_hash`; record each bencoded response; - regression-test boundary: see Regression Test Strategy; - red regression-test evidence, production fix, green test evidence, and the same reproduction run @@ -314,5 +314,5 @@ findings, and reusable lessons. ## References - Parent EPIC: #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md` -- Audit: `docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) +- Audit: `docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) - Related issues: #2804 (audit), #384 (external report), #2583 (first publish of the workspace crates) diff --git a/docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md b/docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md index 7fe23ee002..0695e8265a 100644 --- a/docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md +++ b/docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2916 spec-path: docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md branch: "2916-tracker-core" related-pr: null -last-updated-utc: "2026-11-17 17:30" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: - .claude/skills/fix-bug/SKILL.md - .claude/skills/create-issue/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md - packages/tracker-core/src/error.rs - packages/tracker-core/src/databases/error.rs - packages/tracker-core/src/authentication/key/mod.rs @@ -41,7 +41,7 @@ error holds a source path. ## Background -The tracker-core errors reach three kinds of client (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, T2 table). +The tracker-core errors reach three kinds of client (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, T2 table). Variants that print `{location}` (7): @@ -123,7 +123,7 @@ Removing a location that a client can read is substantively a bug fix (misleadin issue follows `.claude/skills/fix-bug/SKILL.md`: - analysis: the call paths and audiences are in the audit inventory - (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; + (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; - real-artifact reproduction: run a listed tracker and send a UDP announce for a non-whitelisted info-hash; send the same over HTTP; on a private tracker announce with an expired key; and call the REST API to add a key or whitelist a torrent in a way that fails in the database (for example a duplicate); record each reply; - regression-test boundary: see Regression Test Strategy; - red regression-test evidence, production fix, green test evidence, and the same reproduction run @@ -318,5 +318,5 @@ findings, and reusable lessons. ## References - Parent EPIC: #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md` -- Audit: `docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) +- Audit: `docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) - Related issues: #2804 (audit), #384 (external report), #2583 (first publish of the workspace crates) diff --git a/docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/ISSUE.md b/docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/ISSUE.md index cc56ae13cf..759d4da996 100644 --- a/docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/ISSUE.md +++ b/docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2917 spec-path: docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/ISSUE.md branch: "2917-startup-and-udp-server-errors" related-pr: null -last-updated-utc: "2026-11-17 17:30" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: - .claude/skills/fix-bug/SKILL.md - .claude/skills/create-issue/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md - packages/configuration/src/lib.rs - packages/axum-server/src/tls.rs - packages/udp-server/src/error.rs @@ -37,7 +37,7 @@ shown to an operator and the UDP server's own errors hold no source path. ## Background -These are the uses left after SI-2 to SI-4 (`docs/issues/open/2804-location-caller-track-caller-audit/options.md`, facts 1 and 2). +These are the uses left after SI-2 to SI-4 (`docs/issues/closed/2804-location-caller-track-caller-audit/options.md`, facts 1 and 2). | Package | Use | Audience | | --- | --- | --- | @@ -99,7 +99,7 @@ Removing a location that a client can read is substantively a bug fix (misleadin issue follows `.claude/skills/fix-bug/SKILL.md`: - analysis: the call paths and audiences are in the audit inventory - (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; + (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; - real-artifact reproduction: start the tracker with a configuration file that has an invalid value and, separately, with TLS enabled and a certificate file that is not valid PEM; record the startup error text; - regression-test boundary: see Regression Test Strategy; - red regression-test evidence, production fix, green test evidence, and the same reproduction run @@ -289,6 +289,6 @@ findings, and reusable lessons. ## References - Parent EPIC: #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md` -- Audit: `docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) +- Audit: `docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) - Related issues: #2804 (audit), #384 (external report), #2583 (first publish of the workspace crates) - Related issue: #2844 (removed other unused `udp-server` error variants) diff --git a/docs/issues/open/2918-2912-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md b/docs/issues/open/2918-2912-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md index c652baaff4..937b3de1be 100644 --- a/docs/issues/open/2918-2912-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md +++ b/docs/issues/open/2918-2912-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2918 spec-path: docs/issues/open/2918-2912-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md branch: "2918-drop-located-error-and-enforce-the-rule" related-pr: null -last-updated-utc: "2026-11-17 17:30" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: - .claude/skills/fix-bug/SKILL.md - .claude/skills/create-issue/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md - packages/tracker-client/src/udp/mod.rs - contrib/dev-tools/checks --- @@ -39,7 +39,7 @@ After SI-3 to SI-5 the only remaining user of the crate is expected to be `packages/tracker-client`, which imports the type alias `torrust_located_error::DynError` (`src/udp/mod.rs:5`) and lists the crate in its `Cargo.toml`. -The audit looked for a lint (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, T3): neither rustc nor clippy 1.99.1 has one +The audit looked for a lint (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, T3): neither rustc nor clippy 1.99.1 has one for `Location::caller()` in a function that is not `#[track_caller]`. With the ADR the rule is simpler than the one the audit considered: non-test code does not use `Location::caller()`, `#[track_caller]` or `torrust_located_error` at all. A text-based check can enforce that. @@ -265,6 +265,6 @@ findings, and reusable lessons. ## References - Parent EPIC: #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md` -- Audit: `docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) +- Audit: `docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) - Related issues: #2804 (audit), #384 (external report), #2583 (first publish of the workspace crates) - Related: #2594 (extraction of `torrust-tracker-client`) diff --git a/docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md b/docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md index 4e6ad0159f..54045de58c 100644 --- a/docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md +++ b/docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 384 spec-path: docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md branch: "384-strip-location-from-errors-sent-to-clients" related-pr: null -last-updated-utc: "2026-11-18 11:08" +last-updated-utc: "2026-11-18 19:11" semantic-links: skill-links: - create-issue @@ -17,7 +17,7 @@ semantic-links: - .claude/skills/fix-bug/SKILL.md - .claude/skills/create-issue/SKILL.md - docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md - - docs/issues/open/2804-location-caller-track-caller-audit/inventory.md + - docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md --- @@ -50,7 +50,7 @@ turn it off. ### What changed -The audit of issue #2804 (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, `options.md`) measured the feature: +The audit of issue #2804 (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, `options.md`) measured the feature: - None of the 38 production `Location::caller()` sites of the audit (37 since #2850) reports a caller. Each reports a fixed library line, and `#[track_caller]` cannot fix any of them. @@ -117,7 +117,7 @@ Removing a location that a client can read is substantively a bug fix (misleadin issue follows `.claude/skills/fix-bug/SKILL.md`: - analysis: the call paths and audiences are in the audit inventory - (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; + (`docs/issues/closed/2804-location-caller-track-caller-audit/inventory.md`, T2 table); re-check them against the tree before the first change; - real-artifact reproduction: run the tracker from the current `develop` and send the requests of the manual scenarios below; record each reply with its library path. This is the baseline; - regression-test boundary: see Regression Test Strategy; - red regression-test evidence, production fix, green test evidence, and the same reproduction run @@ -307,6 +307,6 @@ findings, and reusable lessons. ## References - Parent EPIC: #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md` -- Audit: `docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) +- Audit: `docs/issues/closed/2804-location-caller-track-caller-audit/ISSUE.md`, `inventory.md`, `options.md`, `experiments.md` (issue #2804) - Related issues: #2804 (audit), #2583 (first publish of the workspace crates) - This issue on GitHub: