CONTRIBUTING.md becomes a short entry point: the two positions and an index. The rules move to one file per trigger in docs/contributing/ (setup, making a change, AI assistance, code style, reviewing), each written as the rule, its reason and how it is held. GLOSSARY.md gains Driver, Unattended agent and Agent account. CLAUDE.md's bot-branch note now points to the new rule against pushing to someone else's branch. Closes #189 Assisted-by: Claude Code:claude-opus-5-5
40 lines
2.1 KiB
Markdown
40 lines
2.1 KiB
Markdown
# Reviewing
|
|
|
|
Read this before closing a fork pull request, merging someone else's pull request, or running an
|
|
unmerged branch you did not write.
|
|
|
|
Every rule gives its reason and how it is held: by a control (a named hook or check), by review, or
|
|
aspirational (checked by nothing and nobody). Links between the contributor docs are held by review
|
|
until an offline link check exists. The positions are defined in [GLOSSARY.md](../../GLOSSARY.md).
|
|
|
|
## Fork pull requests
|
|
|
|
- **A fork or AGit pull request (one pushed to `refs/for/<branch>` counts as a fork pull request)
|
|
always comes from an outsider. A human closes it without approving its runs and points to an issue;
|
|
no agent or automation closes it. Never approve a fork run, and never merge a fork pull request.**
|
|
*Reason:* a fork controls its own workflow files, so an approved run executes the outsider's code on
|
|
this repository's runner, and a person, not an agent or automation, should tell the outsider where to go instead.
|
|
*Held by:* aspirational.
|
|
- **A trusted contributor may carry the change into a pull request of their own after reading every
|
|
line; they are then its author of record.**
|
|
*Reason:* the change then reaches `main` through the ordinary path, with a person who answers for it.
|
|
*Held by:* review.
|
|
|
|
## Running a branch you did not write
|
|
|
|
- **Review an unmerged branch you did not write before running its changes locally**, in particular
|
|
scripts, `.pre-commit-config.yaml`, `.claude/` and every `AGENTS.md`. Review it in the web diff, or in
|
|
a clone where no agent runs.
|
|
*Reason:* hooks and scripts run with your rights, and a branch's agent settings, hooks, skills and
|
|
instruction files take effect as soon as you open it with an agent.
|
|
*Held by:* review.
|
|
|
|
## Merging
|
|
|
|
- **Schedule a merge only on your own pull request, on a branch nobody else pushes to. Merge a pull
|
|
request you reviewed (the agent account's, the release pull request) with the merge button, at the
|
|
head you read.**
|
|
*Reason:* a scheduled merge merges whatever head the branch has when the checks pass, and a push
|
|
does not cancel it.
|
|
*Held by:* aspirational.
|