Repository navigation
feat: reviewer suggestions on the CLI and MCP (preview) - #689
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Add `fixmap reviewers (--report plan.json | --diff <spec> | --working-tree)` and the read-only MCP tool `fixmap_reviewers`. Both print suggested reviewers per changed path with the reason and source line, from the highest-precedence CODEOWNERS file (last matching rule wins), active annotation owners, architecture-policy reviewers, and bounded commit authors. - `--no-history-authors` / `noHistoryAuthors` drops commit-author suggestions and skips reading history. - Commit authors are read with git's `%aN`, which applies `.mailmap`; a real-repository test now proves aliases are merged before counting. - Output strips `@` from handles so nothing notifies anyone; e-mail addresses stay. Core exports `renderReviewRoutingMarkdown`, `reviewRoutingWithoutMentions` and `withoutMentions` for Action parity. - Evidence now records `changedPath`; shallow and truncated history are diagnosed. - Feature catalog entry `Reviewer suggestions` with `preview: true`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
aryamthecodebreaker
force-pushed
the
claude/reviewer-suggestions-0cbedb
branch
from
November 22, 2026 14:47
4d8c97d to
a31eff8
Compare
Merged
This branch was successfully deployed
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.
Work package
03-reviewer-suggestions-surfaces.md, without step 5 (GitHub Action parity comes later in a separate PR).What changed
fixmap reviewers (--report plan.json | --diff <spec> | --working-tree) [--no-history-authors] [--repo] [--format markdown|json] [--output] [--no-cache]. Help line starts withPreview:. Output is grouped by changed path; each reviewer shows confidence and every reason with its source (.github/CODEOWNERS:3, annotation id, policy rule, commit count).--reportroutes the plan's changed files, or its ranked context files when it has none.fixmap_reviewers, same inputs (report,diff,workingTree,noHistoryAuthors,repo,format,noCache). AnnotatedreadOnlyHint: true, openWorldHint: false. Description starts withPreview (may change before v0.10.0):.packages/core/src/ownership.ts):routeReviewers(repo, { includeHistoryAuthors: false })drops commit-author suggestions and says so in a diagnostic. The CLI also skips reading history in that mode.changedPath, so output can be grouped per path. This is an additive field.withoutMentions,reviewRoutingWithoutMentionsandrenderReviewRoutingMarkdown, ready for Action parity.@mentions: handles lose their@in both Markdown and JSON (@org/team→org/team). E-mail addresses stay, since GitHub doesn't notify on them. Markdown names are code spans too. Nothing requests reviews..mailmap: history is already read withgit log --format=%aN, and Git applies.mailmapto%aN. So no new parser was needed. A real-repository test now proves two aliases merge into one author before counting. The scan cache key includes HEAD, status and the dirty diff, so a committed or edited.mailmapinvalidates the cache. Without a.mailmap, behavior is unchanged.Reviewer suggestions(preview: true), the MCP catalog line, README and CLI README docs (including--no-history-authors), and the preview-set tests incli-runner.test.tsandmcp.test.ts.Names are never treated as identity, employment or availability evidence. That is stated in the output, help, MCP description and docs, and
availabilityInferred: falseis unchanged.Ledger evidence: "Ownership and review routing"
core/test/ownership.test.ts"uses only the highest-precedence CODEOWNERS file and last matching rule";cli/test/reviewers-command.test.ts"routes CODEOWNERS by last matching rule…" (line 3 wins over*and/src/**)core/test/ownership.test.ts"combines CODEOWNERS, active annotations, policy…" plus the expired-annotation testrequiredReviews→platform-team).mailmapcanonicalizationreviewers-command.test.ts"canonicalizes commit authors through .mailmap before counting" (real git repo, two aliases → one author with 2 commits)--no-history-authorsreviewers-command.test.ts"drops commit authors with --no-history-authors"; Core test "drops commit authors on request…"; MCP test usesnoHistoryAuthors: truereviewers-command.test.ts"works without a CODEOWNERS file, from commit history alone"reviewers-command.test.ts"warns that a shallow clone…" (realgit clone --depth 1); Core shallow-diagnostic test@mentionswithoutMentionstest, and an MCP output assertion../outside.jsin a report is rejected, as are a Markdown report passed to--report, bad flag combinations, URL--repo, unknown MCP arguments, and an unresolvable diff specmcp.test.ts"suggests reviewers read-only…"Verification
Per the release session's instruction, the full
npm run ciwas not run locally; GitHub CI runs the full gate. What I ran on Windows:npm run typecheck: passnpm run lint: passnpm run build:actionregeneratedpackages/action/dist/index.mjs. The Action's change-scope code now embedsrouteReviewers, so the bundle picks up the Core changes (includeHistoryAuthors, history diagnostics,changedPath). The rebuilt bundle is committed andnpm run check:action-bundlepasses. Re-run after the rebase: Core 875 passed (1 skipped), CLI 342, Action 66, web 15, plus typecheck and lint.Not touched: ledger,
CHANGELOG.md, versions,apps/web/app/changelog/page.tsx, Action sources (only the generateddist/index.mjswas rebuilt),package-lock.json.🤖 Generated with Claude Code