Repository navigation
feat(review): dereference cross-repo REVIEW.md citations - #213
Merged
Merged
Conversation
Teaches code-reviewer, security-reviewer, and architecture-guardian to recognize a REVIEW.md code-span citation shaped like <relative-path>.md#<heading> and Read that path (possibly mounted outside the current repository via --add-dir) for the full criterion behind a thin REVIEW.md line, before finalizing an overlapping finding. Repo-agnostic per this repo's own design rule - no consuming repo or path is named. Read is already granted to all three agents; this is instruction-only. Verified against code.claude.com/docs/en/memory (--add-dir semantics) and code.claude.com/docs/en/code-review (REVIEW.md citation shape, confirmed unrelated to this plugin's own consumption path) before writing this change, per this repo's CLAUDE.md. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01V1x1KNkkjSe2CjbuTb4Gis
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fa41832269
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
code-reviewer, security-reviewer, and architecture-guardian were told to "Read that path" for a citation shaped like <relative-path>.md#<heading> without splitting off the #<heading> fragment first. The Read tool takes filesystem paths, so the literal citation (fragment included) is not a valid filename and the agent could report an existing file as an unresolved citation. Each agent now splits the citation at the fragment separator, Reads only the .md file, then locates the heading section within it. Applied to all three duplicated copies of the instruction plus the CHANGELOG entry describing the same (buggy) behavior. Co-Authored-By: Claude Sonnet 5 <[email protected]>
kyle-sexton
enabled auto-merge (squash)
July 16, 2026 05:53
kyle-sexton
disabled auto-merge
July 16, 2026 05:56
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
Part of the org-wide standards-sync initiative (
melodic-software/standards'REVIEW.md+distribution/REVIEW-CREDENTIAL.md). Today none ofcode-reviewer,security-reviewer, orarchitecture-guardiandereference a citation inside a consuming repo'sREVIEW.md— onlycode-reviewereven mentions the file, and none follow a citation into a mounted external path.REVIEW.mdcode-span citation shaped like<relative-path>.md#<heading>andReadthat path — which may live outside the current repository, mounted via--add-dir(e.g.melodic-software/ci-workflows'claude-review.yml@<sha>, PR in flight) — for the full criterion behind a thinREVIEW.mdline before finalizing an overlapping finding.CLAUDE.mdrule: no consuming repo, path, or criteria file is named anywhere in the instruction text.Readis already granted to all three agents (confirmed from each file's frontmatter) — this is an instruction-only change, no tool-grant change.plugin.jsonto0.9.0and adds aCHANGELOG.mdentry per this repo's Keep a Changelog format.Verified before writing (per this repo's CLAUDE.md)
code.claude.com/docs/en/memory— confirmed--add-dirsemantics.code.claude.com/docs/en/code-review— confirmed theREVIEW.mdcitation shape this session authored instandards/REVIEW.md, and confirmed this plugin's headless-CI consumption path is a separate, still-open question from this change (out of scope here — see theci-workflowsPR's own scope note).Explicitly unverified
Whether a
--add-dir-mounted path is visible to a plugin subagent'sReadtool the same way it is to the main session is not empirically confirmed against a live cross-repo mount (no such mount exists yet — the credential it depends on isn't provisioned). Tracked as an empirical-test follow-up, not asserted here.Test plan
ci-workflowsmount PR and the not-yet-provisioned credential.🤖 Generated with Claude Code