Change flow
- Read the page for the part you change. The design wins: if code and docs disagree, fix the code, or change the doc on purpose in the same change.
- Branch from
main:feat/...,fix/...,docs/...orchore/...(Branches). - Make the smallest change that works. Keep the hard rules (Code style).
- Add a test (Testing) and logs (Logging).
- Run
cargo test -j1for the server. For the page, check it still callsNativeApp.pageReady()and keeps the page contract (App structure). - Run the private data check (Private data).
- Check the safety rules (Safety rules).
- Update the docs pages you touched, and Done or Next.
- Open a pull request into
main. Follow the etiquette below. - Once it reaches
production, deploy withassistantx-deployand ship the app withassistantx-app-release(Deploy, Updates and release).
Security problems go to Reporting, not public issues or PRs.
Pull request etiquette
Size
- One change per PR. A bug fix and a refactor are two PRs.
- Aim for under 400 changed lines. Big work goes in steps that each work.
- No drive-by changes: no reformatting files you did not need to touch.
Title
Short, plain, in the present tense, with a type:
feat: add place reminders to the schedulerfix: stop alarms ringing twice after restartdocs: add branch guidechore: bump sqlx
Body
## What
One or two lines: what changes for the user or the code.
## Why
The problem, or a link to the issue or doc.
## How to test
Commands you ran and what you saw. Screenshots for any screen change (light and dark).
## Checklist
- [ ] Tests added or changed
- [ ] Logs added (docs/quality/logging.md)
- [ ] Private data check passes
- [ ] Docs updated
- [ ] No new permission, network call or battery cost, or it is explained above
Before you ask for review
- All checks green. Don't ask people to review a red PR.
- Read your own diff top to bottom first.
- Rebase on
mainif it is behind. Keep history clean: squash "fix typo" commits. - Mark it Draft until it is ready.
Reviewing
- Review within one working day, or say when you will.
- Be kind and specific. Comment on the code, never the person.
- Say how strong a comment is:
blocking:,suggestion:,nit:,question:. - Explain why, and offer a fix when you can.
- Run the review checklist.
- Approve when it is good enough and safe. Perfect can come later.
Answering review
- Reply to every comment: fix it, or say why not.
- Push fixes as new commits so the reviewer sees what changed. Squash on merge.
- Don't resolve someone else's thread; let them.
- Disagree once, with reasons. If still stuck, the owner decides.
Merging
- Needs one approval and green checks. Changes to the Safety Gate, auth, sandbox, proxy or crypto (
server/src/gate.rs,auth.rs,sandbox.rs,proxy.rs,vault.rs,db.rs) need the owner's approval. - Squash merge into
main. The PR title becomes the commit message, so keep it clean. - Delete the branch after merge.
Never
- Never commit private data, tests included (Private data).
- Never skip or turn off a check to get a merge through.
- Never merge your own PR into
betaorproductionwithout the owner. - Never push secrets "for a minute". Pushed is leaked.
For AI agents
Agents follow the same rules, plus Agents checklist. An agent says in the PR body that an agent wrote it. An agent never approves its own PR.