The who-sets-what table is the day-to-day answer to "can I move this by hand", and it never mentioned blocker:* -- a whole machine-owned family added when state:needs-rebase was retired. merge-next was missing too, and that is the one label whose ownership actually needs saying, because it is the only one in the machine's vocabulary the machine deliberately does not set. Step 6 also read as though requesting the maintainer is sufficient to flip state:needs-human. It is not: needs-human requires zero blockers, so the request does nothing on a conflicted or red PR. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
7.1 KiB
Contributing
How change lands in this repo. The short version: PRs are born as drafts, three reviewer bots take the first rounds, a human takes the last word — and labels tell you where everything is without opening anything.
The PR loop
- Fork and branch. Contributors work from forks; upstream branches are
for maintainers. Title the PR conventionally (
feat:,fix:,docs:). - Open as a draft while you build. Drafts are invisible to the reviewer bots on purpose.
- When it's ready: mark ready-for-review and request all three bots —
claude-bot-andresmgsl,codex-bot-andresmgsl,grok-bot-andresmgsl. They poll roughly every 15 minutes. - Rounds are answered whole. Wait until all three have reviewed, then answer the entire round in a single reply, push the fixes, and re-request the bots that didn't approve. Prefer verification over argument: a test settles what a comment thread can't.
- Reviews end in a verdict. A reviewer — bot or human — either approves or requests changes, never a bare comment. A comment-only review is a non-verdict: it doesn't say whether the round passed, and the state machine (and anyone scanning the board) has to guess. The verdict carries blockingness only, the body carries the feedback: non-blocking nits ride an approval and the author addresses them at their discretion; anything blocking — including a question that gates the verdict — is request changes, saying what unblocks it. The reconciler treats a comment-only review as not-approved, so commenting without a verdict only stalls the PR. The machine never reads review bodies: when a comment-only reviewer's line is really an agreement, that judgment belongs to the author — escalate by requesting the maintainer's review (step 6), and the reconciler flips the label on that request, because an explicit request is a fact it can trust.
- When the round passes, the author hands the PR to the maintainer by
requesting their review — that request is what flips
state:needs-human, provided the PR carries noblocker:*label. A blocker means the work is still yours whatever the round said, so a request on a conflicted or red PR will not flip it. With three formal head-current approvals the labels workflow requests the maintainer automatically; when part of the panel is comment-only, reading their agreement is the author's judgment, so the author makes the request. - Checks must be green:
shellcheck,bash test/cli.shandbash test/release.shlocally mirror what CI runs; the db dump/restore round-trip (test/db-integration.sh) executes in CI where Docker is present. - Feature PRs land their changelog entry as part of the PR (box's
convention): add it under
CHANGELOG.md's## Unreleasedheading — that section becomes the release notes verbatim when a release is cut.
Releasing
A release is a PR, and merging it is the release (#47; box#96's design, on top of #32/box#83's tag flow):
- A small PR —
release: X.Y.Z, carrying thereleaselabel — bumpsVERSIONfromX.Y.Z-devand stampsCHANGELOG.md's Unreleased section as## X.Y.Z — YYYY-MM-DD. Then re-arm the file in the same PR: add a fresh, empty## Unreleasedimmediately above the section you just stamped (#66). Stamping alone disarms main — a PR authored before the release and merged after it wrote its entry under## Unreleased, and with that heading gone git files the entry under whatever now occupies the position, which is the release that already shipped. It lands cleanly, with no conflict and nothing for the author to notice, so the empty section is the only thing standing between a late merge and a changelog that misattributes a shipped release. No workflow does this for you:release.ymlre-armsVERSION, never the changelog.test/release.shenforces the pairing — wheneverVERSIONends in-devthe top section must be## Unreleased. CI green on it, same loop as any PR. - Merge it — that IS the ship decision.
release.yml'srelease-on-mergejob asserts, in order, fail-loud, creating nothing: the merged tree'sVERSIONis non--dev; this PR is the one that changed it (a mislabeled ordinary PR fails here); the changelog section for that version extracts non-empty; no tag or release exists yet. Then, same job, it tags the merge commit bareX.Y.Z(novprefix — box's tag scheme) and publishes the GitHub release with that section as the body. No assets — the source tarball for the tag is the packageinstall.shdownloads. - The release re-arms main itself: the same workflow run bumps
VERSIONtoX.Y.(Z+1)-devand pushes the commit straight to main — no follow-up PR (it opens one only if branch protection refuses the direct push, loudly). A dev install therefore never impersonates the release in theversions/<v>layout. On the manual tag path the bump stays yours: open the one-line PR after publishing.
Manual fallback (and backfill): if the merge-path run fails, fix what it
named, then tag the merge commit X.Y.Z by hand and push the tag — the
original tag-push job still turns any correct tag into the release, and
the merge path's nothing-exists-yet assert keeps the two from
double-publishing.
Labels — who sets what
The full taxonomy lives in LABELS.md. What matters day to day is who sets each kind — most of it is machinery, and hand-moving a machine-owned label just gets corrected on the next pass:
| Labels | Set by |
|---|---|
state:* |
the labels workflow (.github/workflows/labels.yml) — recomputed from GitHub's own facts every 15 minutes and on PR events. Never by hand. Exactly one per PR: whose ball is it. |
blocker:* |
the same workflow, from the same facts — what is in the way. Any number per PR, or none. Never by hand: applying one does not stop a merge, and removing one does not unblock anything. Fix the thing and the next sweep drops the label. |
stale |
the same workflow — 48h without commits, comments, or reviews. blocked PRs are exempt: they are quiet legitimately. |
scope:* on PRs |
actions/labeler, from the changed paths (.github/labeler.yml). Additive — you may add more, the machine won't remove them. |
scope:* on issues |
you, when opening or triaging — issues have no paths to derive from. |
blocked, release |
you — automation never guesses intent. |
merge-next |
you or the agent owning the queue. Which PR lands first is a judgement about how they conflict, so the workflow never sets it — it only clears it, the moment the PR stops being something a human could merge. |
bug / enhancement / documentation |
you, on issues only — a PR's type already lives in its title. |
Issues
Give issues the same care as PR titles: say the surface in the title, apply a
scope: label and a type label (bug / enhancement / documentation) when
you open one, and blocked when it waits on something — that is what keeps
the board navigable as the issue count grows.