docs(review): one telling per invariant — trim the rebuilt modules' header autopsies - #739
Merged
benvinegar merged 1 commit intoAug 14, 2026
Conversation
The browser-review rebuild's new modules shared one rhetorical template: an aphoristic title, a paragraph of prototype autopsy carrying an audit finding id, and a "deliberately X rather than Y" closer. The same anecdote was retold in up to eight files, which buried the invariants a maintainer actually needs and left claims no reader can verify. Each header now keeps the rule and drops the postmortem. Audit findings are still cited where the surrounding sentence earns it, and each prototype telling stays only in the module that owns the rule it explains: generationOrder for C1, noteSize for D1, reviewCommands for D3. Also documents the review model's remaining undocumented public types. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018L6h5GBz6RAxRXbgUS4mx4
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis documentation-only cleanup removes repetitive historical commentary while preserving locally relevant invariants and adds JSDoc for key review-model types and intent variants.
Confidence Score: 5/5The PR appears safe to merge because it changes only comments and adds an empty maintenance changeset. The diff does not modify executable statements, exported type shapes, configuration behavior, or test expectations, and no actionable documentation defect was identified. Important Files Changed
Reviews (1): Last reviewed commit: "docs(review): trim the rebuild's module ..." | Re-trigger Greptile |
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.
Third cleanup PR from the post-merge Opus review. Stacked on #737 (base is
claude/review-cleanup-renames; retarget tomainafter #737 merges). Comments only — the diff is 31 files, +108/−107, with no code, export, or behavior changes.What the documentation review found
The rebuild's inline comments are excellent — invariants stated where they're load-bearing. The module headers, though, ran one rhetorical template across all 24 new modules: aphoristic opener, a paragraph re-litigating a prototype defect with its audit finding ID, and a "deliberately X rather than Y" closer ("rather than" 85×, "deliberately" 15×, the same prototype anecdote retold in up to 8 files). Headers exist to orient a maintainer, not to argue with a dead prototype.
Editing rule applied
Keep the invariant, drop the autopsy. A claim like "revisions are only comparable within a generation" survives; "the prototype's browser compared two of them by JSON.stringify" does not. Each recurring anecdote now lives once, in the module that owns the rule (
generationOrder.tsfor ordering,noteSize.tsfor the byte limit,reviewCommands.tsfor anchor fallback) — the other tellings shrink to a bare audit finding-ID citation. Unverifiable global claims ("no other comparison anywhere in the daemon") and defensive self-assessments ("that indirection is the point", "a scope boundary rather than a missing feature") are cut. "Deliberately" dropped from 13 sites where the sentence already gives the reason; kept where it does semantic work (e.g. "a selection that deliberately preserves the viewport").src/ui/lib/reviewProjection.ts's header was the style model throughout.JSDoc gaps filled
ReviewAddress(what distinguishes the four variants),ReviewNoteAnchorInput.preferred(it decides ownership),ReviewIntentFacts(core refuses to invent identity or time), the five previously-bareReviewIntentvariants,ReviewState, andReviewChunkAssemblerOptions(the injectedReviewDigestFnseam). Two drafts were corrected against the implementation before landing:notes/set-visibilityonly gates agent notes, andfilter/setdoes not re-home the selection.Gates
bun run typecheckclean;bun run lint0/0;bun run formatno residual diff; core + app + session + conformance + scripts suites 725 pass / 0 fail. No test asserted on any changed comment text. Empty changeset (maintenance).Generated by Claude Code