Repository navigation
feat: an agent checks a change locally first, then on the PR's preview - #72
Merged
Merged
Conversation
…t's preview
In an adopting project, the developer kept asking agents to "push it and
check on the preview", and agents went to the preview on their own too —
sometimes before checking locally, once running the end-to-end suite against
it. The framework said only "browser checks only when asked".
- AGENTS.md § Delivery rules: check locally first — before the developer's
local check and any push — then, when the project has previews and the
change is something a person sees or uses, walk the same flow on the draft's
preview once it deploys: read-only, in a browser, never the e2e suite, and
record it in the pull request. The developer's QC still decides ready.
§ Quick reference gains a Preview line ("none" turns the step off).
- /open-pr: the agent checks the flow itself before the local check; a new
step 7 waits for the preview in the background and records what it saw; the
body gains Local check and Preview lines.
- The testing and git-workflow rules, and the github module's pull request
template, follow.
Decision 0039 amends 0022.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mauricios
marked this pull request as ready for review
October 15, 2026 19:50
mauricios
added a commit
that referenced
this pull request
Oct 15, 2026
This was referenced Oct 15, 2026
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.
Why
In an adopting project, the developer kept asking agents to "push it and check on the preview". Agents also went to the preview on their own: they opened its pages and called its API, sometimes before checking the change locally, and once ran the end-to-end suite against it. The framework said only "browser checks only when asked or for a visual change", so it never said what an agent checks itself, or in what order.
What changed
skeleton/AGENTS.md:/adf:open-pr:gh pr edit. A difference from local goes to the developer with what differs, instead of a retried deploy./open-pr's report asked for it. The report now gives the URL, that it's a draft, and what was and wasn't verified. It doesn't ask, remind, or offer to review, ready, or merge, and never requests reviewers.AGENTS.mdandgit-workflow.mdsay the same. The ask rules ongh pr ready/merge/reviewstay.testing.md(the end-to-end suite runs only locally; browser checks go locally, then on the preview) andgit-workflow.md(check it on the preview too).githubmodule: the PR template gains Local check and Preview lines.For reviewers
gh pr checks <n> --watchas a background command.main.Verification
./evals/run-evals.sh: all suites pass, with five new static checks: theAGENTS.mdrule, its Preview line,/open-pr's preview step, its report without nudges, and the git-workflow rule.python3 scripts/build-committed.py --check: the round trip holds, with 65 files.🤖 Generated with Claude Code