Contributing
Rules
- The invariants hold. If a change seems to need breaking one, stop and ask the project owner. Changing one is a decision, recorded in Decisions with its date and reason.
- No networking code in the app, and no permission outside the list
scripts/check-invariants.shallows. The app holdsINTERNETfor the Private DNS call only. - Never commit keys, keystores or secrets. The release signing key exists only in CI’s secrets (Releasing). Test keys are derived from public labels, never stored.
- Platform facts are checked before code relies on them, against current Android and Chrome documentation and, where possible, an emulator. Record what was found in Platform facts; what an emulator cannot show goes in Manual checks.
- Debug-only code (instant removal, the developer tools) lives in
android/app/src/debug, behind an interface insrc/mainand a null stub insrc/release. - The book describes QuitLock as it is. A change that alters behaviour updates the page that describes it in the same commit series, and a decision that the docs did not settle goes in Decisions.
Commits
- One concern per commit, small where possible.
- Subject: a lowercase area prefix and a plain summary, for example
cli: quitlock setuporcore, app: sessions over the USB accessory. Areas:cli,core,app,docs,scripts,ci. - The body says why, and what a reader would not see in the diff.
Before sending a change
cd cli && cargo fmt --check && cargo clippy --all-targets --locked -- -D warnings && cargo test --locked
cd android && ./gradlew :core:test :app:assembleDebug :app:assembleRelease
scripts/check-invariants.sh
scripts/check-docs.sh
Device-owner behaviour also needs scripts/emulator-test.sh (Testing).