Repository navigation
chore: delete every Swift comment and keep the decisions in docs/adr - #1789
Merged
Merged
Conversation
Every Swift comment was classified as a tautology, stale, an excuse, or a decision record. The 1,234 decision records became 180 ADRs holding 977 decisions; the rest are deleted. Two third-party attribution notices stay. Only comments and the blank lines around them change: with comments blanked, every file's code matches its previous version. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ci/check_comments.py counts comment lines per Swift file against ci/comment_baseline.txt, which only goes down. The delete-comment skill walks the baseline down. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A one-line raw string such as #"""# was read as a multi-line opener and a regex literal's slashes as comment starts, which hid 17 comments in two files. The scanner now agrees with SwiftParser on every comment in the repo. Those 17 are classified and removed, with their two decisions recorded. Also: --strip leaves a space where a comment separated two tokens, a test-wait annotation is one line and only kept in tests, and on a pull request the baseline may not exceed the target branch's. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…ine to the target An escaped delimiter inside an extended regex no longer ends it, --list and --strip take any spelling of a path, and a test proves a pull request cannot raise the baseline. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The comment check asks ci/check_test_waits.py which lines annotate a wait, so a stray test-wait comment no longer passes. A regex literal is also found after a comment and past an escaped delimiter, and a path outside the checkout works. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
|
Important Review skippedToo many files! This PR contains 856 files, which is 556 over the limit of 300. To get a review, reduce the PR to 300 files or fewer by splitting it into smaller PRs or changing its base branch. Usage-priced reviews support at most 500 files.
|
4 tasks done
[Low impact] The latest changes appear safe to merge.
|
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Linked issue
No issue: a maintainer-requested chore.
What changed
About 10% of our Swift was comments (28,500 of them, 29,000 lines). Most restated the code, a few gave cover to shortcuts, and the ones that recorded a real decision were scattered where nobody looks for decisions. This PR deletes them and bans new ones.
docs/adr/(format indocs/adr/README.md). The excuses became fix(networking): strip the headers a webui request was sent with on cross-origin redirects #1781, refactor: one cancellation check for every screen #1782, chore(chat): remove the dead slash-command hold #1783, test: replace timed waits in the chip-pass and workspace-registry tests #1784 and fix(auth): keep legacy custom headers when their Keychain migration fails #1785.ReviewDiffCanvasView.swift,BotProfileAppearance.swift) because no file inThirdPartyNotices/covers them yet, and so do the// test-wait:annotationsci/check_test_waits.pyreads.ci/check_comments.pyfails a Swift file that gains a comment. It runs in Tooling Tests.ci/comment_baseline.txtlists the two files that still hold comments; a count there only goes down, and a pull request cannot raise it past the target branch's.delete-commentskill (.agents/skills/delete-comment, linked from.claude/skills) repeats the sweep for whatever is left..gitignorenow tracks repo skills.AGENTS.mdstates the rule in Taste and points decisions atdocs/adr/.Nothing but comments and the blank lines around them changes in Swift.
How it was tested
master's: none differ. The only comment trivia it finds at this head are the 26 licence lines and 15// test-wait:lines.python3 -m unittest discover -s ci -p 'test_*.py': 21 passed.python3 ci/check_comments.pyandpython3 ci/check_test_waits.pypass.scripts/test-simon iPhone 17e, after the rebase onto currentmaster: 246 passed, 0 failed. The selection is the classes that read source-relative fixtures or had atest-waitannotation rewritten, plus the filesmasterchanged under the rebase:HermesSlashCommandTests,HermesInsightsClientTests,HermesChatSettingsTests,LocalizationCatalogTests,HermesAgentFixtureTests,SSEClientTests,KanbanLiveUpdateTests,CronManagementModelTests,CronManagementViewModelTests,HermesCronClientTests,HermesConversationTests,HermesBranchDuplicateTests,ToolCallSummaryFormatterTests. The full suite is left to this PR's CI.Checklist
scripts/test-sim <assigned-simulator-udid>with the tests required byAGENTS.md§ Verifying; the selection and results are recorded aboveCodablemodels decode tolerantly (none changed)AGENTS.mdis locked)Reviewed with sol-loop: 3 rounds with gpt-6.2-sol on high. Sol verdict: changes requested in round 3 (a regex literal after a comment, stray
test-waitannotations, paths outside the checkout); all fixed in the last commit, which Sol has not re-reviewed.Created with Claude Fable 5.2 in Claude Code (T3 Code). Classification and ADR drafting by Claude Opus 5.5 subagents.
🤖 Generated with Claude Code