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.
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
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 onlyscripts/cra-update.ts changes nothing. It prints a markdown changelog for the pull request:
- Every source in
src/catalogue/sources.jsonwhose sha256 changed (CRA re-issued a file in place). - Probes for the next revision of each form PDF (for example
…-fill-26e.pdfto…-fill-27e.pdf). - The "last amended" date of the ITA and ITR on laws-lois against the newest release's
statutes, with every parameter whoselawcites 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 thePROV.ab*orPROV.qc*parameters to re-check. - With
--rules <file>, a diff of a newly extracted Error Code List againstsrc/rules/cra/2026.json.
LegisQuébec sometimes refuses automated reads. The run then prints the link to check by hand. legisQuebecDate parses both the French and English date lines; test/legis-quebec-date.test.ts covers it.
Ship the amendment
- Start the next release.
pnpm --filter @workspace/t2 release new 2026.1 2026.2copies the parameter file and prints themakeReleasecall to add toRELEASESinsrc/repo.ts. - Set
statutesto the new consolidation dates.CopylastAmendedandcurrentTofrom laws-lois into the new file. - 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.
- 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 withenacted.by,assent,urlandmeta. See Versioned parameters. - Update anything that prints the number.A field's
formulatext often shows the rate or divisor. - Write the release notes.Name the amending Act and what changed, in plain words. Set the release's
enactedto the newest assent date, so returns filed before it are reported as retroactive. - Diff, test and review.
release diff 2026.1 2026.2prints 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 runpnpm --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. releaseImpactslists approved and filed returns the release changes. It skips any whoserulesHashalready 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 (
filingGateinsrc/repo.ts) answersUPGRADE_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.
A budget measure that isn't enacted can be recorded as a version with meta.status: "proposed" and a proposal, but it's never selected. The enacted version applies, or the line is blocked until the measure is law.
Related
- Versioned parametersRead and edit a release's parameter file: entries, versions that apply by date, enactments, citations and what loadParams rejects.
- Rules releasesLearn what a rules release contains, how a return picks one, how releases are published and frozen, and how returns move between them.
- CRA data rules and filing specsSee how the CRA Error Code List is compiled into checks, how filing specifications and adapters build .COR and AT1 files, and what is unverified.