Pull Request Process
Audience: contributors preparing to open or land a PR.
This page is a checklist. The longer prose lives in
CONTRIBUTING.md
and the Update Demand chapter.
1. Branch and commit shape
- One feature or fix per PR. Keep the diff focused.
- Conventional Commits in the subject line:
feat(...),fix(...),chore(...),docs(...),perf(...),refactor(...),test(...). - The PR title is usually the lead commit’s subject.
2. Tests first
A PR that adds a new aggregator, error code, field type, I/O format, statistical test, or skill must include tests in the same PR. The testing-first preference is documented in Testing Conventions. Implementation that lands without tests will be sent back; tests that pass without the implementation are suspicious and probably wrong.
3. The Update Demand
The single biggest source of “your PR was bounced” feedback. Every
change ships with its companions (skills, capability declarations, book
pages, regenerated goldens) in the same PR. Find them with
make sites, then the trigger row: The Update
Demand explains both and lists the
common companions. A new structural gate also takes a row in
Testing → Structural gates and prose in
its .claude/reference/update-demand/gates*.md slice.
If you find yourself wanting to defer the doc update to a follow-up PR, stop. The follow-up PR will not happen, and the next contributor will read stale guidance. Update in the same PR or do not merge.
Public API changes
Every package outside internal/ and cmd/ is public Go API, frozen at
v1.0.0. Before adding an exported identifier to a public package (or
widening a type a root alias points at), check that a general embedder
use case justifies it; prefer internal/.
TestPublicAPIGolden(blocking) fails on any unregenerated change to the public surface, including the fields and methods behind a root alias intointernal/. Regenerate withgo test -tags heavy ./internal/apigolden/ -run TestPublicAPIGolden -updateand call the delta out in the PR description.apidiff(a job in.github/workflows/ci.yml, run with each CI dispatch) compares the branch against the latestv*tag and writes the report to the job summary. It is advisory while the latest tag is a pre-release: the job stays green whatever it finds. Add theapi-break-oklabel to a PR whose break is intentional (the job reads it from the dispatched branch’s open PR); the summary then records it as such. Once a stablev1.0.0tag exists the job becomes blocking for incompatible changes, andapi-break-okis the only override.make smokebuildsinternal/embeddersmoke, an external module exercising the migration-guide spellings; a removed or renamed public name breaks it.
4. Pre-flight checks
make fmt
make lint
make test-heavy # both test tiers; `make test` is the fast tier only
make smoke # when the public surface moved
For change-category-specific gates, see Testing → Running a subset of gates locally.
5. Open the PR
- Use the bug-report or feature-request template as a starting point if applicable.
- Fill in the PR template’s “Summary” and “Testing” sections.
- Link related issues with
Closes #N. - Do not push
--forcetomain. Force-pushing your own feature branch is fine before review starts.
6. Review and CI
CI runs once, dispatched by hand on the finished branch (When CI runs): the full suite (both test tiers) plus the structural gates listed in Testing → Structural gates. A failing gate means a structural invariant is broken, not a flaky test; fix the root cause rather than retrying.
When a pre-commit hook or PR check fails, create a new commit with
the fix. Do not git commit --amend after a hook failure; the prior
commit may not exist or may have already been pushed.
7. Merge
- Merge with a merge commit; squash merges are disabled so per-story commits keep their Conventional Commits subjects.
- Once merged,
.github/workflows/docs.ymlrebuilds and publishes this docs site to https://frankbardon.github.io/pulse/.
A change that introduces an architectural decision also updates the
.claude/reference/ file that owns the area (CLAUDE.md’s Reference
Docs table names it) and links the PRD, if one exists, in the PR
description.