Format declaration paths only for issues

This commit is contained in:
2026-11-07 15:56:25 +00:00
parent 83386217db
commit 0a81be84f6
3 changed files with 15 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
# Audit remediation implementation plan
Status: in progress; Stages 1–16 complete.
Status: in progress; Stages 1–17 complete.
Baseline: `d492c7747175c01a53261206c2b4356e53453621`. Before this sprint,
intervening changes recorded decisions and retired the completed older
@@ -563,6 +563,11 @@ Neither finding closes merely because the new tree methods exist.
## Stage 17 — Format declaration paths only for diagnostics
**Complete.** Declaration traversal uses the recursive scratch path and formats
labels only for emitted issues. Focused declaration, registry and retained-error
tests pass offline with Go 1.27.0 and `-mod=readonly`; source review confirms
valid paths are not eagerly copied and formatted during this walk.
Findings: F22. Source: `command.go` collectDeclarationIssues.
1. Traverse with one scratch append/truncate path. Construct an owned formatted