Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
0c98ec6
docs(issues): [#2912] add the EPIC and sub-issue specifications to re…
josecelano-bot Nov 17, 2026
280121c
docs(issues): [#2912] address review of PR 2919: approval checkpoints…
josecelano-bot Nov 17, 2026
55fe2a5
docs(issues): [#2912] date only the new sub-issues in the #2804 audit…
josecelano-bot Nov 17, 2026
a728bc1
docs(pr-reviews): [#2912] record the review audit of PR 2919
josecelano-bot Nov 17, 2026
67acb52
docs(pr-reviews): [#2912] add the F4 and F5 reply URLs to the review …
josecelano-bot Nov 17, 2026
3d43526
docs(pr-reviews): [#2912] correct the F2 verification and drop a bran…
josecelano-bot Nov 17, 2026
926cec6
docs(pr-reviews): [#2912] add the F6 and F7 reply URLs to the review …
josecelano-bot Nov 17, 2026
9770962
docs(issues): [#2912] separate the wrong direct captures from the cor…
josecelano-bot Nov 17, 2026
83137a0
docs(pr-reviews): [#2912] record the Copilot round of the review audi…
josecelano-bot Nov 17, 2026
5068344
docs(pr-reviews): [#2912] add the F8 reply URL to the review audit of…
josecelano-bot Nov 17, 2026
0669463
docs(issues): [#2912] count 37 production Location::caller() sites si…
josecelano-bot Nov 17, 2026
e54643a
docs(pr-reviews): [#2912] record round 5 of the review audit of PR 2919
josecelano-bot Nov 17, 2026
acf1593
docs(pr-reviews): [#2912] add the F9 and F10 reply URLs to the review…
josecelano-bot Nov 17, 2026
2a16f4c
docs(pr-reviews): [#2912] record the no-change Copilot finding F11 in…
josecelano-bot Nov 17, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/issues/closed/2850-non-negative-number-of-bytes/ISSUE.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ semantic-links:
- docs/issues/closed/2454-1669-mark-public-error-enums-non-exhaustive/ISSUE.md
- docs/issues/closed/2245-2243-review-numeric-protocol-wire-conversions/ISSUE.md
- docs/issues/drafts/generalize-error-events/EPIC.md
- docs/issues/drafts/remove-source-locations-from-errors/EPIC.md
- docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md
---

<!-- skill-link: create-issue -->
Expand Down Expand Up @@ -538,7 +538,7 @@ The frontmatter keeps `epic: null`.
- Hiding the wrapped errors of `UdpAnnounceError` behind an opaque source (D3).
- An ADR for the maintainer's general rules on error exposure and propagation (D3, follow-up).
- The `location` field of the error variants touched here; that is the EPIC drafted in
`docs/issues/drafts/remove-source-locations-from-errors/EPIC.md`.
`docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md`.
- The console `tracker-client`. Its UDP commands build wire requests, whose type does not change,
and its HTTP commands already pass a `u64` to the builder.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ github-issue: 2804
spec-path: docs/issues/open/2804-location-caller-track-caller-audit/ISSUE.md
branch: "2804-location-caller-track-caller-audit-spec"
related-pr: null
last-updated-utc: "2026-11-11 17:39"
last-updated-utc: "2026-11-17 17:30"
semantic-links:
skill-links:
- create-issue
Expand Down Expand Up @@ -212,22 +212,22 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`.
| T4 | DONE | Analyse fix options, recommend one | Recommendation in `options.md`: stop printing `{location}` in `Display` (option 3); option 1 fixes no production site (all 38 are reached through trait impls, closures, `TryFrom` or `async` code). Open for the maintainer: keep or remove the field, and the `LocatedError` decision. Awaiting approval before any fix. |
| T5 | DONE | Write the ADR and the slicing plan | Slicing done as an EPIC draft with six sub-issue drafts and the specification for #384 (see below). The ADR moved to sub-issue SI-1 of that EPIC, because the maintainer proposed to remove the feature and that decision is still under review. |

### Tasks moved to the EPIC draft
### Tasks moved to EPIC #2912

After T4 the maintainer proposed to remove source locations from errors altogether, instead of the
options compared in `options.md`. The work is then larger than this issue and cuts across the
workspace, so the fix tasks that this plan listed as T6 to T9 are not done here. They are planned in
the EPIC draft `docs/issues/drafts/remove-source-locations-from-errors/EPIC.md`:
EPIC #2912, `docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md`:

| Former task | Now in |
| --- | --- |
| T6 Red regression tests per slice, T7 Fix slices, T8 Green and like-for-like recheck per slice | Sub-issue drafts SI-2 (`primitives`), SI-3 (HTTP tracker request errors), SI-4 (`tracker-core`), SI-5 (configuration, TLS and UDP server errors), each with its own red test, fix and recheck |
| T6 Red regression tests per slice, T7 Fix slices, T8 Green and like-for-like recheck per slice | Sub-issues SI-2 (`primitives`), SI-3 (HTTP tracker request errors), SI-4 (`tracker-core`), SI-5 (configuration, TLS and UDP server errors), each with its own red test, fix and recheck |
| T9 Enforcement and docs | SI-1 (ADR and `handle-errors-in-code` skill) and SI-6 (drop `torrust-located-error`, repository check, upstream issue drafts) |
| Manual scenarios M1 and M2 of this specification (HTTP and UDP replies); M3 (`parse`) is covered by SI-2 | `docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md` (SI-7) |

The EPIC and its sub-issues are drafts: no GitHub issue exists for them yet. This issue can be
closed when the maintainer creates the EPIC issue; until then it stays open as the record of the
audit.
The EPIC is issue #2912 and its sub-issues are #2913 to #2918, created on 2026-11-17, and the
existing #384, so the closing condition of this issue is met; its close-out is done by its own
session.

### Fix options to compare in T4 (research plan)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
---
schema-version: 1
doc-type: epic
status: draft
status: planned
epic: null
github-issue: null
spec-path: docs/issues/drafts/remove-source-locations-from-errors/EPIC.md
github-issue: 2912
spec-path: docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md
epic-owner: null
last-updated-utc: "2026-11-11 17:04"
last-updated-utc: "2026-11-17 18:33"
semantic-links:
skill-links:
- create-issue
Expand All @@ -21,7 +21,7 @@ semantic-links:

<!-- skill-link: create-issue -->

# EPIC #[To be assigned] - Remove source locations from errors
# EPIC #2912 - Remove source locations from errors

## Goal

Expand All @@ -38,7 +38,7 @@ The feature was meant to point a developer to the origin of an error. The audit
(`docs/issues/open/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 is in a
- **It is wrong by construction.** None of the 38 production `Location::caller()` sites of the audit (37 since #2850) is in a
`#[track_caller]` function, so each reports the fixed line where it is written. `#[track_caller]`
cannot fix any of them: they are reached through `str::parse`, `try_into`, closures, `async fn`
or `async` blocks (`options.md`, fact 6; `experiments.md`, E3 to E8). Through `str::parse` the
Expand All @@ -59,8 +59,27 @@ What the feature gives, a file and line for a developer, is available on the ser
events, which record the file and line of the log call.

The four options the audit compared are in `options.md`. This EPIC implements the removal of the
field (its option 4) together with the context-instead-of-location rule (option 3). That choice is
**proposed** here and is confirmed by the review of this specification and by the ADR of SI-1.
field (its option 4), which keeps option 3's context-instead-of-location wording and also removes
the field. Keeping the field and stripping it from `Display` only (option 3 alone) was rejected by the
maintainer on 2026-11-17; the ADR of SI-1 records the decision.

## Maintainer Decisions

Recorded 2026-11-17 by the EPIC coordinator session:

1. **Remove the field (option 4).** Error types lose their `location` field, no non-test code calls
`Location::caller()`, and the workspace drops `torrust-located-error`. Stripping the location from
`Display` only (option 3 alone) was rejected: each of the 38 production `Location::caller()` sites of the audit (37 since #2850)
records a fixed library line, so keeping the field keeps a misleading `Debug` and log value. The
five `#[track_caller]` `From` conversions into `LocatedError` record a location that is correct
for their call chain (`inventory.md`, class C), and they are removed as well, because that
location is still an implementation path.
2. **#384 keeps its title.** It is linked as SI-7 and gets a comment that explains the new scope
(removal instead of an option); it closes after the recheck.
3. **One sub-issue session at a time.** SI-1, then SI-2, SI-3, SI-4, SI-5 and SI-6 in that order,
each started only after the maintainer's go. The parallel order in Delivery Strategy is what the
work allows, not the plan.
4. **Model for sub-issue sessions:** Claude Opus 5.5 at default effort.

## Scope

Expand Down Expand Up @@ -91,18 +110,17 @@ field (its option 4) together with the context-instead-of-location rule (option

Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`.

No GitHub issue exists yet for SI-1 to SI-6; the maintainer creates them after this specification is
reviewed. Their drafts cannot carry the EPIC number, which does not exist yet, so they share the
`error-locations-si-<n>` prefix instead.
SI-1 to SI-6 are issues #2913 to #2918, created by `josecelano-bot` on 2026-11-17. SI-7 is the
existing issue #384.

| Order | Issue | Local Spec | Status | Notes |
| --- | --- | --- | --- | --- |
| 1 | #[To be assigned] - SI-1 Record the decision that errors do not record source locations | `docs/issues/drafts/error-locations-si-1-adr-errors-do-not-record-source-locations/ISSUE.md` | TODO | First. Every code sub-issue waits for it |
| 2 | #[To be assigned] - SI-2 Remove source locations from the errors of `torrust-tracker-primitives` | `docs/issues/drafts/error-locations-si-2-primitives/ISSUE.md` | TODO | After SI-1. Closes finding F3 of the primitives test work (EPIC #1347). Must land before `primitives` 4.0.0 is published |
| 3 | #[To be assigned] - SI-3 Remove source locations from the HTTP tracker request errors | `docs/issues/drafts/error-locations-si-3-http-tracker-request-errors/ISSUE.md` | TODO | After SI-1. `http-protocol` and the `axum-http-server` extractors. Largest client-visible exposure |
| 4 | #[To be assigned] - SI-4 Remove source locations from the errors of `torrust-tracker-core` | `docs/issues/drafts/error-locations-si-4-tracker-core/ISSUE.md` | TODO | After SI-1; after SI-3 if not run in parallel, because both touch `http-core` tests. Largest diff |
| 5 | #[To be assigned] - SI-5 Remove source locations from the configuration, TLS and UDP server errors | `docs/issues/drafts/error-locations-si-5-startup-and-udp-server-errors/ISSUE.md` | TODO | After SI-1. Must land before `configuration` 4.0.0 is published |
| 6 | #[To be assigned] - SI-6 Drop `torrust-located-error` from the workspace and enforce the rule | `docs/issues/drafts/error-locations-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md` | TODO | After SI-2 to SI-5 |
| 1 | #2913 - SI-1 Record the decision that errors do not record source locations | `docs/issues/open/2913-2912-si-1-adr-errors-do-not-record-source-locations/ISSUE.md` | TODO | First. Every code sub-issue waits for it |
| 2 | #2914 - SI-2 Remove source locations from the errors of `torrust-tracker-primitives` | `docs/issues/open/2914-2912-si-2-primitives/ISSUE.md` | TODO | After SI-1. Closes finding F3 of the primitives test work (EPIC #1347). Must land before `primitives` 4.0.0 is published |
| 3 | #2915 - SI-3 Remove source locations from the HTTP tracker request errors | `docs/issues/open/2915-2912-si-3-http-tracker-request-errors/ISSUE.md` | TODO | After SI-1. `http-protocol` and the `axum-http-server` extractors. Largest client-visible exposure |
| 4 | #2916 - SI-4 Remove source locations from the errors of `torrust-tracker-core` | `docs/issues/open/2916-2912-si-4-tracker-core/ISSUE.md` | TODO | After SI-1; after SI-3 if not run in parallel, because both touch `http-core` tests. Largest diff |
| 5 | #2917 - SI-5 Remove source locations from the configuration, TLS and UDP server errors | `docs/issues/open/2917-2912-si-5-startup-and-udp-server-errors/ISSUE.md` | TODO | After SI-1. Must land before `configuration` 4.0.0 is published |
| 6 | #2918 - SI-6 Drop `torrust-located-error` from the workspace and enforce the rule | `docs/issues/open/2918-2912-si-6-drop-located-error-and-enforce-the-rule/ISSUE.md` | TODO | After SI-2 to SI-5 |
| 7 | #384 - Make Option to Strip Location from Errors sent to Clients | `docs/issues/open/384-strip-location-from-errors-sent-to-clients/ISSUE.md` | TODO | Existing issue. Its baseline reproduction can start at once; its recheck waits for SI-2 to SI-6 |

### External follow-ups (other repositories)
Expand Down Expand Up @@ -157,10 +175,10 @@ For each subissue implementation in this EPIC, the default completion policy is:

### Workflow Checkpoints

- [x] Epic spec drafted in `docs/issues/drafts/`
- [ ] Epic spec reviewed and approved by user/maintainer
- [ ] GitHub epic issue created and issue number added to this spec
- [ ] Subissues created and linked in this spec
- [x] Epic spec drafted in `docs/issues/drafts/` and moved to `docs/issues/open/`
- [x] Epic spec reviewed and approved by user/maintainer
- [x] GitHub epic issue created and issue number added to this spec
- [x] Subissues created and linked in this spec
- [ ] Subissue statuses kept up to date in the `Subissues` table
- [ ] For each implemented subissue: automatic checks completed and recorded
- [ ] For each implemented subissue: manual verification completed and recorded
Expand All @@ -176,6 +194,8 @@ agent, for example `GitHub Copilot (Claude Opus 5.5)`, so later reviews can rela
the model that produced them.

- 2026-11-11 17:03 UTC - Claude Code (Fable 5.2) - Drafted the EPIC, six sub-issue drafts and the specification for #384 from the audit of issue #2804, after the maintainer proposed to remove the feature. Not approved; no GitHub issue created.
- 2026-11-17 16:45 UTC - Claude Code (Claude Opus 5.5) - EPIC coordinator recorded the maintainer's decisions (remove the field; keep #384's title; one session at a time; Opus 5.5 for sub-issue sessions).
- 2026-11-17 17:01 UTC - Claude Code (Claude Opus 5.5) - Maintainer approved the specification. Created EPIC #2912 and sub-issues #2913 to #2918 as `josecelano-bot`, commented on #384, and moved the specification and the six sub-issue specifications from `docs/issues/drafts/` to `docs/issues/open/`. GitHub sub-issue links wait for the maintainer (the bot account cannot add them).

## Acceptance Criteria

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,31 @@
schema-version: 1
doc-type: issue
issue-type: task
status: draft
status: planned
priority: p1
epic: null
github-issue: null
spec-path: docs/issues/drafts/error-locations-si-1-adr-errors-do-not-record-source-locations/ISSUE.md
branch: "{issue-number}-error-locations-si-1-adr-errors-do-not-record-source-locations"
epic: 2912
github-issue: 2913
spec-path: docs/issues/open/2913-2912-si-1-adr-errors-do-not-record-source-locations/ISSUE.md
branch: "2913-adr-errors-do-not-record-source-locations"
related-pr: null
last-updated-utc: "2026-11-11 17:39"
last-updated-utc: "2026-11-17 18:33"
semantic-links:
skill-links:
- create-issue
related-artifacts:
- .claude/skills/fix-bug/SKILL.md
- .claude/skills/create-issue/SKILL.md
- docs/issues/drafts/remove-source-locations-from-errors/EPIC.md
- docs/issues/open/2912-remove-source-locations-from-errors/EPIC.md
- docs/issues/open/2804-location-caller-track-caller-audit/inventory.md
- .claude/skills/handle-errors-in-code/SKILL.md
- .claude/skills/create-adr/SKILL.md
---

<!-- skill-link: create-issue -->

# Issue #[To be assigned] - Record the decision that errors do not record source locations
# Issue #2913 - Record the decision that errors do not record source locations

Parent EPIC: [Remove source locations from errors](../remove-source-locations-from-errors/EPIC.md) (draft, GitHub issue not
created yet, so `epic` is `null` and this folder carries no EPIC number). Sub-issue SI-1 of the EPIC.
Parent EPIC: [Remove source locations from errors](../2912-remove-source-locations-from-errors/EPIC.md) (#2912). Sub-issue SI-1 of the EPIC.

## Goal

Expand All @@ -38,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 is in a
(`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
`#[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 print it into text that reaches HTTP, UDP
Expand Down Expand Up @@ -144,9 +143,9 @@ with the narrow affected scope, and sign every commit with GPG.

### Workflow Checkpoints

- [x] Folder-style spec drafted in `docs/issues/drafts/error-locations-si-1-adr-errors-do-not-record-source-locations/ISSUE.md`
- [ ] Spec reviewed and approved by user/maintainer
- [ ] GitHub issue created and issue number added to this spec
- [x] Folder-style spec drafted in `docs/issues/drafts/` and moved to `docs/issues/open/`
- [x] Spec reviewed and approved by user/maintainer
Comment thread
josecelano-bot marked this conversation as resolved.
Resolved
- [x] GitHub issue created and issue number added to this spec
- [ ] (Optional, recommended for complex issues) Spec-only PR merged into `develop` before implementation
- [ ] Implementation completed
- [ ] Automatic verification completed (`linter all`, relevant tests, and any pre-push checks)
Expand All @@ -165,6 +164,7 @@ agent, for example `GitHub Copilot (Claude Opus 5.5)`, so later reviews can rela
the model that produced them.

- 2026-11-11 17:05 UTC - Claude Code (Fable 5.2) - Drafted from the audit of issue #2804 (`docs/issues/open/2804-location-caller-track-caller-audit/inventory.md`, `options.md`) as a sub-issue of the EPIC draft. Not yet approved; line numbers are those of `develop` at `4f0af379a` and must be re-checked before implementation.
- 2026-11-17 17:30 UTC - Claude Code (Claude Opus 5.5) - EPIC coordinator: the maintainer approved the specification on 2026-11-17; issue #2913 created as `josecelano-bot` and the specification moved from `docs/issues/drafts/` to `docs/issues/open/` (SI-1 of EPIC #2912).

## Acceptance Criteria

Expand Down Expand Up @@ -264,6 +264,6 @@ findings, and reusable lessons.

## References

- Parent EPIC draft: `docs/issues/drafts/remove-source-locations-from-errors/EPIC.md`
- 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)
- Related issues: #2804 (audit), #384 (external report), #2583 (first publish of the workspace crates)
Loading
Loading