Repository navigation
DOC-7085 Replace assess-comments ledger with repo-memory precedent lookup - #4050
Merged
Merged
Conversation
…okup The hand-maintained coverage ledger (.claude/state/assess-comments.coverage.md) was a single shared file every branch's run wrote to, so it repeatedly collided on merges (documented twice in its own worked-examples log). It also duplicated by hand what /reflect + /finalize squash messages already carry. Now that the Redis repo memory GitHub Action comments on PRs with links to semantically related history, assess-comments follows those links to the real squash commit message (repo memory's own bodySummary is too shallow to use directly) and cites it as precedent during adjudication instead. The durable, cross-PR bugbot calibration axes that aren't tied to any single PR (async dispatch order, npm hoisting, list-vs-item endpoint shape) move into a static reference section in the command itself so they aren't lost. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
… messages Live-tested step 3a against PR #4047's real repo-memory comment. The rendered bullets only echo the title; the actual score + a ~500-char bodySummary preview live in the hidden redis-repo-memory-data base64 blob, already present in the comment fetched in step 2 at zero extra cost. For commit-typed items the preview is a genuine slice of the /reflect+/finalize message (verified on 4465b6a's own squash commit), but truncated well short of the full 1500+ char message and can cut off mid-finding — so use the decoded preview + score to decide what's worth a full fetch, rather than fetching every related item indiscriminately. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Contributor
Contributor
🧠 Redis MemoryFound 5 related items from repository history (5 new this commit):
Memory updated at 68da99b |
dwdougherty
approved these changes
Sep 18, 2026
Contributor
Author
|
Thanks once again, @dwdougherty ! Have a great weekend :-) |
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.
Summary
.claude/state/assess-comments.coverage.md) from/docs:assess-comments— it was a single shared file every branch's run wrote to, so it repeatedly collided on merges (documented twice in its own worked-examples log), and it duplicated by hand what/reflect+/finalizesquash messages already carry.redis-repo-memory-datablob (score + ~500-char preview per related item, already fetched at zero extra cost) to rank relevance, then followssourceUrlto pull the real squash commit message only for items worth citing as precedent during adjudication.Test plan
score/bodySummaryare present and useful, and confirmed the preview is a genuine (if truncated) slice of a real/reflect+/finalizesquash message./docs:assess-commentsagainst this PR once Bugbot and repo memory have both commented, to see the full step 1–9 flow end to end.Note
Low Risk
Documentation-only changes to a Claude command skill; no runtime code, auth, or data paths affected.
Overview
Replaces the hand-maintained assess-comments coverage ledger with Redis repo memory as the source of cross-PR precedent, and makes
/docs:assess-commentsfully report-only with no disk writes.Removed:
.claude/state/assess-comments.coverage.mdand all steps that read/updated it (former step 1 ledger load and step 11 evidence-gated updates). The history commenter role is dropped from reconciliation.Added: A repo-memory source role and step 3a, which decodes the bot comment’s hidden
redis-repo-memory-datablob (score-ranked previews), then optionally fetches merged PR squash messages for adjudication precedent. Step 7 gains a static known bugbot calibration patterns block (moved from the ledger’s worked examples). Reports now cite repo-memory PR numbers in verdicts and list which precedent PRs were opened in “Story so far.”Bot calibration from resolved threads is noted in-run only; persistence is delegated to repo memory and
/reflect+/finalizesquash messages instead of a shared file that collided on merges.Reviewed by Cursor Bugbot for commit 68da99b. Bugbot is set up for automated code reviews on this repo. Configure here.