TaxPilot

Search the docs

Search the Help centre, Developer docs and Legal centre.

Open TaxPilot

Taking in ITA amendments

Detect a change to the Income Tax Act, a provincial statute or a CRA form, and ship it safely as a new rules release.

Updated November 22, 2026

The Income Tax Act is the source of truth. CRA forms restate it, and when they disagree the Act wins. Each release records the consolidation it was checked against in its parameter file's statutes. When Parliament amends the Act or the Regulations, you re-check the affected parameters and ship the result as the next release.

Find out what changed

Terminal
pnpm --filter @workspace/t2 cra-update > changelog.md
pnpm --filter @workspace/t2 cra-update --no-network --rules new.json   # diff a new Error Code List only

scripts/cra-update.ts changes nothing. It prints a markdown changelog for the pull request:

  • Every source in src/catalogue/sources.json whose sha256 changed (CRA re-issued a file in place).
  • Probes for the next revision of each form PDF (for example …-fill-26e.pdf to …-fill-27e.pdf).
  • The "last amended" date of the ITA and ITR on laws-lois against the newest release's statutes, with every parameter whose law cites an amended statute.
  • The Alberta Corporate Tax Act (King's Printer PDF hash) and the Québec Taxation Act (the "À jour au" date on LegisQuébec) against WATCHED_STATUTES, with the PROV.ab* or PROV.qc* parameters to re-check.
  • With --rules <file>, a diff of a newly extracted Error Code List against src/rules/cra/2026.json.

Ship the amendment

  1. Start the next release.pnpm --filter @workspace/t2 release new 2026.1 2026.2 copies the parameter file and prints the makeRelease call to add to RELEASES in src/repo.ts.
  2. Set statutes to the new consolidation dates.Copy lastAmended and currentTo from laws-lois into the new file.
  3. Read the amending Act's application provision.The consolidation omits coming-into-force rules. Find which tax years the change applies to, and whether it keys on the year's start, its end, its days or a transaction date.
  4. Add a version, don't overwrite.Turn the entry into versions. Copy the old value as the earlier version, using the pre-existing law convention, and add the new one with enacted.by, assent, url and meta. See Versioned parameters.
  5. Update anything that prints the number.A field's formula text often shows the rate or divisor.
  6. Write the release notes.Name the amending Act and what changed, in plain words. Set the release's enacted to the newest assent date, so returns filed before it are reported as retroactive.
  7. Diff, test and review.release diff 2026.1 2026.2 prints the statute change, the parameter table and the value changes on the Maple Ridge and Birchwood sample returns. Paste it into the pull request and run pnpm --filter @workspace/t2 test.

When the change isn't a number

About a dozen coming-into-force tests still sit inline in shared form code (in t2.ts, s1.ts, s8.ts, s27.ts, s38.ts and information-returns.ts). Each cites its Act in a comment and is tested at its boundary dates. When one of them changes because of a new enactment, move it into a defineRule version then.

What a new release does to existing returns

  • Drafts on the old release see a rules update prompt and move only through repinReturn, with a reason.
  • releaseImpacts lists approved and filed returns the release changes. It skips any whose rulesHash already matches, and compares actual results for the rest.
  • An approved return that the release changes can't be recorded as filed until it moves: the filing gate (filingGate in src/repo.ts) answers UPGRADE_REQUIRED.
  • A filed return never changes. If the amendment is retroactive, the preparer can start an amended return on the new release.

Provincial statutes

Provincial consolidations aren't pinned per release. After you review a reported Alberta or Québec change and ship it, update WATCHED_STATUTES in src/rules/params.ts with the new sha256 (Alberta) or updatedTo date (Québec), so the next run starts from there.