Skip to content

chore: every TODO(#N) cites an open issue (#829) - #830

Merged
scttfrdmn merged 1 commit into
mainfrom
chore/retarget-stale-todos
Sep 12, 2026
Merged

scttfrdmn merged 1 commit into
mainfrom
chore/retarget-stale-todos

Conversation

@scttfrdmn

Copy link
Copy Markdown
Owner

Closes #829.

CLAUDE.md requires a TODO to cite an issue, and the reason is that a reader should be able to
look the number up and find out whether the deferral still stands. All six references in the tree
named closed issues, so the convention was actively misleading rather than merely stale.

The two live deferrals are refiled. Neither has been done, so each gets a current number:

  • emulator/replay.go:330 — TODO(#6) → TODO(#817), deep-comparing a replayed response body.
  • emulator/quota.go:151 — TODO(#22) → TODO(#818), S3 prefix-level rate limits.

The four #495 mentions are history, not work. #695 retired that TODO in v0.107.0 by applying
the five modellable DescribeInstanceTypes filters and listing the other fifty-two as accepted and
inert. The prose still said "retires TODO(#495)" in the present tense, which reads as an open item;
it now states what the concern was. #495 stays cited in all four places — it is the issue that
recorded the concern, and (at ec2_filters.go:622) the reason the seeded instance-type catalog is
deliberately small. Two of the four were also rewrapped, since the edit left them ragged.

No fail-before test, deliberately. There is no behaviour to assert on: the change is comments
and one test's doc comment. The proof is the grep in #829's acceptance criteria —
grep -rn 'TODO(#' --include='*.go' . now reports #817 and #818 and nothing else, both open.

Verification

gofmt -l . && go build ./... && go vet ./...        # clean
golangci-lint run ./...                            # 0 issues
make test                                          # exit 0 (go1.27.1)
GOTOOLCHAIN=go1.26.6 make test                     # exit 0
make docs-reference docs-reference-check docs-versions authz-reference-check   # exit 0, no diff

CLAUDE.md requires a TODO to reference an issue so a reader can check whether the
deferral still stands. All six references named closed issues, which answers that
question with "resolved" when the opposite is true.

The two live deferrals are refiled: deep-comparing a replayed response body is now
TODO(#817), and S3 prefix-level rate limits are TODO(#818).

The four #495 mentions describe a TODO that #695 retired, so they are reworded to
state the concern as history rather than as open work. #495 stays cited — it is the
issue that recorded the concern and the reason the instance-type catalog is small.

Comment and prose only; no behaviour change.
@codecov

codecov Bot commented Sep 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@scttfrdmn
scttfrdmn merged commit 081c03e into main Sep 12, 2026
14 checks passed
@scttfrdmn
scttfrdmn deleted the chore/retarget-stale-todos branch September 12, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore: every TODO(#N) cites a closed issue

1 participant