Skip to content

claude: less verbose comments v2#21355

Merged
taratorio merged 1 commit into
mainfrom
claude-less-verbose-comments-v2
May 22, 2026
Merged

claude: less verbose comments v2#21355
taratorio merged 1 commit into
mainfrom
claude-less-verbose-comments-v2

Conversation

@taratorio

Copy link
Copy Markdown
Member

tried to lower comment verbosity of claude in #20870
but still not enough
this is yet another attempt to better fine tune

@taratorio taratorio added this pull request to the merge queue May 22, 2026
Merged via the queue into main with commit 1de5fd6 May 22, 2026
21 checks passed
@taratorio taratorio deleted the claude-less-verbose-comments-v2 branch May 22, 2026 08:39
yperbasis added a commit that referenced this pull request May 22, 2026
- Drop the BadHeaderEntry doc comment (the field names are
  self-descriptive and the prior wording incorrectly listed the
  "invalid block number" header check as an empty-string path —
  this PR populates it). Per #21355.
- Shrink the badHeaders LRU from 10_000 to 96. Each entry now holds a
  heap-allocated string that won't be GC'd while cached, and the
  realistic working set on a healthy node is tiny.
- Add unit tests pinning the ReportBadHeader/IsBadHeader round-trip
  for the validation-error string, including the empty-err fallback
  and the later-report-overrides path.
- Drop the scenario-narrative comment block above the IsBadHeader
  short-circuit per #21355.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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.

2 participants