From a3dab546beafff2d1ac31dbb2a6410cd8fc335af Mon Sep 17 00:00:00 2001 From: BaaRai <130491490+BaaRai@users.noreply.github.com> Date: Wed, 2 Dec 2026 20:01:03 +0100 Subject: [PATCH] docs: document the review size budget and the park policy Add the review size budget to CONTRIBUTING and a PR template that asks for it. The default is 2,500 changed lines or 15 files; locales, docs, generated code and fixtures can go to 5,000 lines or 30 files when the change is mechanical and verified; security, concurrency and database changes stay small and get two reviewers. A larger PR is parked with the feature label and stays open, with a request to split it by subsystem. --- .github/pull_request_template.md | 21 +++++++++++++++++++++ CONTRIBUTING.md | 4 ++++ 2 files changed, 25 insertions(+) create mode 100644 .github/pull_request_template.md diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 00000000..9d682d0d --- /dev/null +++ b/.github/pull_request_template.md @@ -0,0 +1,21 @@ +## What + + + +## Why + + + +## Size + +- [ ] At most 2,500 changed lines and 15 files. +- [ ] Or a low-risk exception (localization files, documentation, generated code, test fixtures) up to 5,000 lines or 30 files, with the verification method described below. +- [ ] Larger: I split it by subsystem, or I am asking for the current wave to park it. + +## Tests + + + +## Behavior change + + diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 465b92c7..de95ab6f 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -11,6 +11,10 @@ - **At most 7 open pull requests per contributor.** The repository enforces this with GitHub's pull request creation limit, drafts included: when you reach it, close or merge one before opening another. Review is manual, one change at a time, so a larger batch makes the queue unmanageable and slows everyone down, including you. If you have more changes queued, open one issue that lists them and wait for the current ones to be reviewed. - **One focused change per PR.** If a change has independent parts, split it into a small number of PRs and say in each description what the other parts depend on. +- **Keep the review size bounded.** Aim for at most 2,500 changed lines and 15 files. A larger change is not rejected for its size: it is parked with the `feature` label and stays open, and we ask you to split it by subsystem, for example storage, API, UI and tests, into PRs under that size. The PR is the unit of review, not the unit of the feature. +- **Low-risk changes have a larger allowance.** Localization files, documentation, generated code and test fixtures can go up to 5,000 lines or 30 files when the change is mechanical and a key-parity check, a schema check or a test verifies it. Say in the description how you verified it. +- **Security, concurrency and database changes stay small.** They are reviewed line by line by two reviewers; split early and keep the risky part isolated. +- **Every PR gets a first answer.** A parked PR stays open; address the split request and ask for review again. Duplicate or superseded PRs are closed with the reason and the number of the PR that replaces them. - **Describe the change.** State the problem, the behavior change and what you tested. A pull request with no description is a request for changes. - **Provider support stays generic.** Any OpenAI- or Anthropic-compatible endpoint works through a model profile; provider convenience goes in as a neutral preset (name and base URL) or a docs recipe, with no vendor logos, promotional codes, baked vendor endpoints, or vendor-specific environment variables. A new wire format needs a schema migration, a profile save/load test, and a live connection test.