Review and security
Commits
History uses Conventional Commits: feat:, fix(scope):, chore(scope):, docs(scope):, plus explicit merge commits. One commit, one change. Titles are imperative.
Pull request
The description includes:
- A short summary of the user-visible result.
- Linked issue, PRD, or ADR.
- Test commands and results.
- Screenshots or recordings for visible UI.
- Generated files:
shared/types.ts,.sqlx, plugin locks. - UI paths left unverified in a browser, if any.
Keep the diff small. Split refactors from features. Agent refactors finish on the ACP path.
Security
- Secrets, tokens, and pairing codes live in a local
.env, the OS keychain, or the Host token store. They live only in those stores. - Error envelopes on the remote protocol and plugin Workers strip secrets. Main token and device token travel in protected headers or the keychain.
- Plugin packages are Full Trust. Official plugins merged into the Host, and APIs merged into the SDK, run at local rights. A new Host capability needs a schema, tests, and docs before plugins may call it.
- Public Host exposure terminates TLS on a reverse proxy. Cross-origin allow lists use exact Origins.
- CI runs
pnpm audit --prod --audit-level highandrustsec/audit-check. Licenses:pnpm run dependency:licenses. - Crash reports stay in the local data directory by default. Content leaves the machine when the user chooses Submit on GitHub.
- Docs and UI use placeholders. Samples use placeholders.
Review axes
Code review checks standards and spec together. Over-engineering review deletes reinvented stdlib, speculative abstraction, and flexibility with no caller. Correctness review covers failure paths, occupancy, event sequence, exclusive permission resolution, and freshness of generated artifacts.

