You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[audit] Dead code: delete pkg/audit/context.go (7 unused helpers) + its orphaned tests #288
Filed from the 2026-07-11 spawn audit. Full report: docs/spawn-audit-2026-07-11.md. Assessment-only — no code changed yet.
Phase: Phase 0 — do now (dead code)
Evidence
pkg/audit/context.go:19-74 — NewContextWithAudit/NewContextWithCorrelationID/Get*/SetLoggerInContext/NewLoggerFromContext all dead
4 orphaned tests in pkg/audit/logger_test.go (~154-200)
Recommendation
Delete context.go + its 4 orphaned tests. Do NOT delete SetUserID/SetCorrelationID/GetCorrelationID in logger.go — they are test-covered and stay.
User-facing / SemVer: No — internal. No bump.
Adversarially verified during the audit (62/62 findings survived verification; severities/scope adjusted where the first pass was wrong).
Activity
chore: remove dead code found by the 2026-07-11 audit (#286-292) (#330)
scttfrdmn commentedon Jul 11, 2026
Shipped in #330 (squash-merged to main). GitHub only auto-closed the first issue in the PR's closing list; closing the rest manually.