TaxPilot

Search the docs

Search the Help centre, Developer docs and Legal centre.

Open TaxPilot

Contributing

Branch, change, check and open a pull request the way this repository expects, with the right extra steps for rules and UI changes.

Updated November 22, 2026

Day-to-day work merges into dev. main is production: CI builds it, and pull requests into it, with the production rules channel, and it may only be promoted once every rules release is published. Keep changes small and finish each one, including the tests, docs and generated files it touches.

Before you start

  • Read Architecture and Conventions.
  • For Next code, read the matching guide in apps/web/node_modules/next/dist/docs/ first.
  • Check whether the design system or @workspace/ui already has what you need before you write a component.
  • Commit or stash your work before you run tools that rewrite many files.

Make the change

  1. Branch from dev.Use a short descriptive name.
  2. Write the change and its tests together.See Testing for what each kind of change needs.
  3. Run the focused tests while you work.Single files, --maxWorkers=2, one suite at a time.
  4. Regenerate what the change affects.After a calculation change, pnpm --filter @workspace/t2 calc-hash. After form or coverage changes, pnpm --filter @workspace/t2 report. Commit the generated files.
  5. Update the reference pages.A user-visible change gets a lib/changelog.ts entry and, if it changes a workflow, a Help article update. See Reference pages.
  6. Run the full checks once.pnpm typecheck, pnpm lint, the engine and web suites, and pnpm test:e2e.
  7. Open the pull request into dev.Say what changed and why, how you tested it, and paste screenshots or a release diff where relevant.

What CI runs

.github/workflows/ci.yml runs, in order: pnpm install --frozen-lockfile, pnpm typecheck, pnpm lint, the engine tests, the web tests, pnpm build, then Playwright (Chromium and WebKit) against the production build. On failure it uploads the Playwright report and traces.

Rules changes

  • Never edit a published release. Ship a change as a new release with release new, and paste the release diff output into the pull request.
  • Cite the source for every value: the CRA publication in src and cite, and the provision in law. A change in law needs the amending Act, its assent date and its application provision.
  • Mark anything you couldn't read as UNVERIFIED. Never infer an assent date, a section or a rate.
  • Write release notes in plain words. They appear on the public changelog as written.
  • A tax specialist approves a release before release publish --approved-by. Publishing writes the lock file; commit it with the code.

UI changes

  • Every new form or flow ships with a Playwright test.
  • Take screenshots at phone and desktop widths, in light and dark, and look at them before you ask for review.
  • Look for steps you can remove: a default that saves a click, a label in plain words instead of jargon, a question the product can answer itself.
  • Use real labels from the product in docs and tests, and keep captions specific.

Review checklist