- Read
docs/specfirst; behaviour is defined there, rule by rule. npm ci, create.venvfrombackend/requirements.lock.txt, thennpm run verifybefore you push. It runs format, lint, strict types, unit tests, backend lint/format/types/tests, the production build, the secret scan and the Playwright suite (with two real local backends).- Audits stay independent and deterministic: no randomness, no time, no network, no reading another
audit's output. A new rule needs a name and plain explanation in
src/engine/rules.ts, a spec row, and tests for when it fires and when it must not. - A fix must replace exactly the finding's range; never change text outside it.
- Never weaken the safety rules: no automatic application of suggestions, no edits to approved scripts, no invented claims or citations, no predictions about platforms.
- Add a regression test for every bug you fix.