Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ Three jobs run independently:

| Job | Coverage |
| --- | --- |
| Tests and static checks | `make ci-tests`: review guidance, naming, lint, the complete Python suite, Node UI/native-adapter tests and the fixture smoke test |
| Tests and static checks | `make ci-tests`: naming, lint, the complete Python suite, Node UI/native-adapter tests and the fixture smoke test |
| Installation and packaging | Base installation and CLI language checks, sdist/pip installation, wheel smoke checks and all existing optional installation profiles |
| Rendered reference and report checks | Chromium reference capture, report interactions and Web Search visual checks |

The Python suite uses two workers with `--dist loadfile`, keeping each test file in one process. Slow-test durations appear in the job log. Local `make ci` remains serial by default; use `make ci PYTEST_ARGS='-n 2 --dist loadfile --durations=20'` for the same test scheduling.

`make review-check`, part of both `make ci-tests` and local `make ci`, verifies the pinned shared review guide and synchronization tool against `review-guidelines.lock.json`, and confirms that OCR loads the guide alongside its built-in rules. This offline integrity check needs no cross-repository credentials. Use `uv run --frozen python scripts/review_guidelines.py check --source <ai-template-py-checkout>` to also compare the files with their recorded source commit. Shared requirements are maintained in `lexmount/ai-template-py`; Browser Eval's review supplement is the section after the repository supplement marker at the end of `docs/references/review-guidelines.md`; the lock covers only the text before it, and synchronization preserves it.
OCR loads `docs/references/review-guidelines.md`: the shared guide copied from `lexmount/ai-template-py`, with its source commit in the first line, followed by Browser Eval's supplement. To update the shared section, copy the new upstream text in an ordinary PR and update the commit.

The existing `Python 3.11` status succeeds only when all three jobs succeed. A failed, cancelled or skipped job fails that status. New commits cancel obsolete CI runs for the same pull request. Main and tag runs each have a unique concurrency group, so a newer run cannot replace an earlier pending run.

Expand Down
9 changes: 4 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Code review

Use [Review Guidelines](docs/references/review-guidelines.md). Its shared text and
`scripts/review_guidelines.py` are synchronized from the commit recorded in
`review-guidelines.lock.json`; change them in `lexmount/ai-template-py`. Browser
Eval's own requirements follow the repository supplement marker at the end of the
guide and are edited here.
Use the [review guidelines](docs/references/review-guidelines.md) that OCR loads. Their shared
section is copied from `lexmount/ai-template-py` at the commit named in the first
line; change it there and copy it here. The Browser Eval supplement at the end is
maintained in this repository.

# Benchmark ownership

Expand Down
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,8 @@ fixture-smoke: runtime-check

test: test-python test-ui test-native-adapters

.PHONY: review-check ci-tests
review-check: runtime-check
$(PY) scripts/review_guidelines.py check

ci-tests: review-check naming-check lint-check test fixture-smoke
.PHONY: ci-tests
ci-tests: naming-check lint-check test fixture-smoke

ci: ci-tests package-check

Expand Down
20 changes: 9 additions & 11 deletions docs/references/review-guidelines.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
<!-- Shared section copied from lexmount/ai-template-py@7add9a555281432dd8430ebfe6e8a8f5489d0b10 (docs/references/review-guidelines.md); change it upstream, then copy it here. The Browser Eval supplement at the end is maintained in this repository. -->

# Review Guidelines

The canonical version of this document lives in `lexmount/ai-template-py` at
`docs/references/review-guidelines.md`. Consumer repositories synchronize their
copies with `scripts/review_guidelines.py` and pin the source revision in
`review-guidelines.lock.json`. Change the canonical document rather than editing
a synchronized copy. A consumer adds its own requirements only after the
repository review supplement marker at the end of its copy; synchronization
preserves that section.
`docs/references/review-guidelines.md`. Consumer repositories copy it to the same
path, record the source commit in the first line and append their own supplement
at the end. Change shared text here rather than in a copy.

OCR's official rules remain the foundation. This document adds shared review,
scope, and feedback requirements. The repository supplement at the end of this
document, when present, adds the consumer's domain requirements and entry points. Use the review language required by the user or
repository; preserve code identifiers, commands, schema values, and product names.
scope, and feedback requirements. The repository supplement at the end of a
consumer's copy adds its domain requirements and entry points. Use the review
language required by the user or repository; preserve code identifiers, commands,
schema values, and product names.

## Establish the review basis

Expand Down Expand Up @@ -234,8 +234,6 @@ in those files. The work can close when valid in-scope findings are resolved and
necessary verification passes. Add task requirements only when the user or
repository maintainer explicitly changes the goal.

<!-- Repository review supplement: maintained locally; synchronization preserves the text below. -->

## Browser Eval review supplement

Follow the repository review constraints in `AGENTS.md` and `CONTRIBUTING.md`. The following requirements belong to Browser Eval and supplement the shared criteria above and OCR's built-in rules.
Expand Down
9 changes: 0 additions & 9 deletions review-guidelines.lock.json

This file was deleted.

183 changes: 0 additions & 183 deletions scripts/review_guidelines.py

This file was deleted.

Loading