Skip to content

refactor(review): replace the synced guide with one copied file - #109

Merged
lanyue-llk merged 2 commits into
mainfrom
codex/review-rules-single-file
Oct 29, 2026
Merged

lanyue-llk merged 2 commits into
mainfrom
codex/review-rules-single-file

Conversation

@lanyue-llk

@lanyue-llk lanyue-llk commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Summary

#101 made OCR load Browser Eval's supplement by extending the shared sync tool with a marker section. That kept the sync tool, a SHA-256 lock and a CI gate in place, all to protect review prompt text. This PR replaces that machinery with a plain copy.

OCR loads one file per rule entry, so the shared rules and Browser Eval's rules have to live in one file. That file stays at docs/references/review-guidelines.md, the path every lexmount repository's rule.json already uses:

  • first, the shared guide copied from lexmount/ai-template-py, with its source commit in the first line;
  • then Browser Eval's supplement, which points reviewers to AGENTS.md and CONTRIBUTING.md.

To update the shared section, copy the new upstream text in an ordinary PR and bump the commit ID. Drift shows up in normal PR review.

Changes

  • docs/references/review-guidelines.md: adds the source-commit header, updates the shared text to lexmount/ai-template-py#8 and drops the sync marker.
  • .opencodereview/rule.json: unchanged.
  • Removed: scripts/review_guidelines.py, review-guidelines.lock.json, and make review-check (no longer in ci-tests).
  • AGENTS.md and .github/workflows/README.md describe where each part is edited.

Net: 6 files, +17/−215.

Dependency

The header names commit 7add9a55 from lexmount/ai-template-py#8, which removes the sync tool upstream. After #8 merges, update the commit ID in the first line; there is no lock to re-pin.

Validation

  • make lint-check ruff steps, check_track_naming.py and tests/test_source_language_policy.py (15 passed) all pass.
  • Not run locally: the full make ci, because the dependency fetch failed offline.

Follow-up to #101.

🤖 Generated with Claude Code

OCR loads one file per rule entry. Move the shared guide, copied from
lexmount/ai-template-py with its source commit in the first line, and the
Browser Eval supplement into .opencodereview/review-rules.md, and point
OCR at it. Remove the sync tool, lock and review-check gate; drift in
review prompt text is visible in ordinary PR review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Review complete · 9885410

No findings in this review.

Every repository's OCR rule points at docs/references/review-guidelines.md,
so keep the combined shared guide and Browser Eval supplement there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lanyue-llk lanyue-llk changed the title refactor(review): load one copied rules file instead of a synced guide refactor(review): replace the synced guide with one copied file Oct 29, 2026

@lexmount-ocr lexmount-ocr Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

✅ Re-review complete · 055457f

No findings in this incremental review.

@lanyue-llk
lanyue-llk merged commit 245666e into main Oct 29, 2026
6 checks passed
@lanyue-llk
lanyue-llk deleted the codex/review-rules-single-file branch October 29, 2026 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant