Skip to content

chore(lint): clear code comments into ADRs and enforce a ratcheted no-comments rule - #17

Merged
gpu004 merged 1 commit into
mainfrom
chore/delete-comments-ratchet
Nov 22, 2026
Merged

gpu004 merged 1 commit into
mainfrom
chore/delete-comments-ratchet

Conversation

@gpu004

@gpu004 gpu004 commented Nov 22, 2026

Copy link
Copy Markdown
Owner

What changed

Code comments across the TypeScript codebase mixed tautologies, stale notes, workarounds, and non-obvious design rationale in the same layer, making it easy for shortcuts to stick around and hard to keep decisions durable.

Every comment in src/, test/, vitest.config.ts, and tools/oxlint/turbo/ has been categorized and resolved:

Proved with npm run check (oxlint 0 errors across 14 files / 125 rules, lint:rules 13 expected diagnostics + ratchet verified, oxfmt --check, wrangler deploy --dry-run, tsc --noEmit) and npm test (6/6 test files, 55/55 tests passing).

If this fixes a mistake an agent made

Which layer now stops it from happening again? See AGENTS.md.

  • Codebase: types, APIs, or data structures
  • Static analysis: type test, lint rule, or property test (turbo/no-comments with per-file maxCommentsByFile ratchet)
  • Verification: runtime invariant or TLA+ spec
  • Prose: AGENTS.md, because code can't express it:

Created with Gemini 4 Neon in T3 Code.

@gpu004
gpu004 merged commit d88b69d into main Nov 22, 2026
7 checks passed
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.

1 participant