Skip to content

[Data] Import REVIEW.md files from CLAUDE.md so local /code-review applies them - #68532

Merged
goutamvenkat-anyscale merged 1 commit into
ray-project:masterfrom
goutamvenkat-anyscale:goutam/data-review-md-claude-imports
Nov 24, 2026
Merged

goutamvenkat-anyscale merged 1 commit into
ray-project:masterfrom
goutamvenkat-anyscale:goutam/data-review-md-claude-imports

Conversation

@goutamvenkat-anyscale

Copy link
Copy Markdown
Contributor

Summary

Import each Ray Data REVIEW.md from a CLAUDE.md in the same directory, so a local /code-review in Claude Code applies the review rules added in #67928, not only the hosted Code Review.

Before

The hosted Claude Code Review reads REVIEW.md natively. The local /code-review command doesn't: it looks only for CLAUDE.md and CLAUDE.local.md on the changed files' ancestor paths. AGENTS.md was applied only because python/ray/data/.claude/CLAUDE.md imports it.

Seen on #67840: a local review listed the REVIEW.md files but never read them, and raised nothing from them.

After

  • python/ray/data/.claude/CLAUDE.md imports ../REVIEW.md alongside ../AGENTS.md.
  • New .claude/CLAUDE.md files import ../REVIEW.md in _internal/execution, _internal/logical, _internal/planner, _internal/datasource, _internal/datasource_v2 and datasource.

Rerunning the local review of #67840 with these imports, the reviewer read python/ray/data/REVIEW.md and _internal/datasource_v2/REVIEW.md, and raised a finding citing the datasource_v2 rule on Arrow schemas in interfaces/.

Side effects:

  • Interactive Claude Code sessions that work on files in these directories also load the matching REVIEW.md (26–120 lines each) as context.
  • The hosted review may now see the same rules twice, natively and through CLAUDE.md. The content is identical, so this shouldn't change its findings.

No code or behavior change to Ray Data.

Subsystems

None at runtime. Agent/review configuration for all Ray Data subsystems.

Testing

Notes

  • Not a duplicate: gh pr list --repo ray-project/ray --state open --search "REVIEW.md" returns only [Data] Pack Parquet read tasks by estimated decoded size in DSv2 [5/6] #67840, which is unrelated; searches for "CLAUDE.md data" and "code-review data" found nothing that touches these files.
  • AI assistance (Claude Code) was used for this change and description; every line was human-reviewed.

🤖 Generated with Claude Code

…plies them

Local /code-review discovers CLAUDE.md and CLAUDE.local.md on the changed
files' ancestor paths, but not REVIEW.md, so the Ray Data review rules added
in ray-project#67928 were never applied. Import each REVIEW.md from a CLAUDE.md in the
same directory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Goutam <[email protected]>

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates several CLAUDE.md configuration files across the python/ray/data directory and its subdirectories to import the @../REVIEW.md rules, ensuring that Claude reads the review rules when working on files within these directories. There are no review comments to address, and I have no further feedback to provide.

@goutamvenkat-anyscale goutamvenkat-anyscale added data Ray Data-related issues go add ONLY when ready to merge, run all tests labels Nov 24, 2026
@goutamvenkat-anyscale
goutamvenkat-anyscale enabled auto-merge (squash) November 24, 2026 23:06
@goutamvenkat-anyscale
goutamvenkat-anyscale merged commit a0551d1 into ray-project:master Nov 24, 2026
7 checks passed
@goutamvenkat-anyscale
goutamvenkat-anyscale deleted the goutam/data-review-md-claude-imports branch November 24, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

data Ray Data-related issues go add ONLY when ready to merge, run all tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants