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
10 changes: 6 additions & 4 deletions .agents/skills/reproduce-paper/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,10 +153,12 @@ python scripts/run_reproductions.py --base origin/main
The review happens on your committed branch before the pull request is opened; the pull request is the record of the reviewed change and the gate for merging.

1. Commit the work on your branch. Add the change record `docs/records/changes/<YYYY>/<NNNN>-<title>.md` with Plan and Decisions filled in; use the number of the pull request you are about to open (the next free issue or pull request number) and correct it when you open the pull request if it differs.
2. Get the independent review: one review by a different model than yours, in a separate session that does not share your context, following the `review-pr` skill on your branch against `origin/main`. Give it only the branch, the base, and the report path. Do not review your own work.
3. Respond to every numbered finding as `docs/autonomy.md` describes, fix what deserves fixing, rerun the checks of step 7, and fill in the Review and Outcome sections of the change record: one row per finding.
4. Push the branch and open the pull request with the template filled in: the inventory table, the figure next to the paper's, runtimes, simplifications. Link the issue. Post the review report verbatim as a comment, then a short comment with the dispositions. Both are public: if the report contains anything that must not be published (see `AGENTS.md`), replace only that text with `[redacted]` and say so in the dispositions comment; change nothing else.
5. When CI passes, squash-merge and delete the branch. Close the issue with a link to the merged pull request.
2. Rebase on the current `main` and push: `git fetch origin && git rebase origin/main`, then `git push --force-with-lease` (or push the branch for the first time). The reviewer works from `origin/<branch>`.
3. Get the independent review: one review by a different model than yours, in a separate session that does not share your context, following the `review-pr` skill on your branch against `origin/main`. Give it only the branch, the base, and the report path. Do not review your own work.
4. Respond to every numbered finding as `docs/autonomy.md` describes, fix what deserves fixing, rerun the checks of step 7, and fill in the Review and Outcome sections of the change record: one row per finding.
5. Rebase again before opening the pull request: `git fetch origin && git rebase origin/main`; resolve conflicts as `docs/autonomy.md` describes and record the resolutions, and force-push. A resolution that changes behavior needs its own review before the merge.
6. Open the pull request with the template filled in: the inventory table, the figure next to the paper's, runtimes, simplifications. Link the issue. Post the review report verbatim as a comment, then a short comment with the dispositions. Both are public: if the report contains anything that must not be published (see `AGENTS.md`), replace only that text with `[redacted]` and say so in the dispositions comment; change nothing else.
7. Merge when the gate in `docs/autonomy.md` passes: the branch is still based on the current `origin/main` (rebase and force-push again if `main` moved while CI ran; `main` requires branches to be up to date), CI has passed on that head, and the review and change record are in place. Squash-merge, delete the branch, and close the issue with a link to the merged pull request.

If a component change is large enough to deserve its own review, split it into a refactor pull request that goes first, with its own review and change record.

Expand Down
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Adding a reproduction is a complete workflow, not just a script. Follow `.agents
4. Write a thin `main.py` with its scales and `meta.yaml`, following [reproductions/README.md](reproductions/README.md).
5. Run at the default scale and record runtime per scale.
6. Add `verify.py` if there is an independent check worth keeping.
7. Get one independent review, respond to each finding (fix, decline, or defer), write the change record, and merge when the gate in `docs/autonomy.md` passes.
7. Rebase on the current `origin/main`, get one independent review, respond to each finding (fix, decline, or defer), write the change record, rebase again before merging, and merge when the gate in `docs/autonomy.md` passes.

Stop at the budget in `docs/autonomy.md`. An honestly labelled partial result is acceptable.

Expand Down
6 changes: 4 additions & 2 deletions docs/autonomy.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,19 @@ Ask only for a hard limit above or for something that cannot be undone; decide e

A pull request is merged when:

1. CI passes;
1. it is based on the current `origin/main`: rebase (`git fetch origin && git rebase origin/main`), resolve conflicts as described below, and force-push the branch with `--force-with-lease`; the required CI check has passed on the rebased head (`main` requires branches to be up to date);
2. it has had one independent review, and the author has responded to every finding as described below;
3. its change record is included (see [records/](records/README.md)).

Merges use squash. Nobody pushes directly to `main`.

Conflict resolutions are part of the change. Resolve mechanically clear conflicts yourself (different files, separate regions, formatting, an obvious keep-both) and record the resolution in the change record. A resolution that changes behavior is a change of its own: it gets one more review before the merge, and the earlier review no longer covers it. Ask the owner only when the choice is one the hard limits above reserve for them, not merely because the merge is inconvenient.

## Review

### One Round

Each change gets one complete review from a different model than its author, in a separate session that does not share the author's context. For the agents' own work the review runs on the branch before the pull request is opened, and its report is posted verbatim on the pull request; external pull requests are reviewed on the pull request. The author then fixes what deserves fixing and merges. There is no second round: the library is experimental, and problems found later are fixed later. Repeated review rounds always find something more, and never converge.
Each change gets one complete review from a different model than its author, in a separate session that does not share the author's context. For the agents' own work the review runs on the branch before the pull request is opened, and its report is posted verbatim on the pull request; external pull requests are reviewed on the pull request. The author then fixes what deserves fixing and merges. There is no second round: the library is experimental, and problems found later are fixed later. Repeated review rounds always find something more, and never converge. A rebase on a newer `main` is not a new change and does not need another review; a conflict resolution that changes behavior is a new change and gets one, as the Merge Gate says.

### What the Reviewer Looks For

Expand Down