Repository navigation
v0.7.0
v0.7.0
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
quick --in-force-ontakes any date asYYYY-MM-DD, where it took only a 1 July, and holds each preset Act's compilation in force on that date: the one starting on or before it and ending after it, so on the day one compilation ends the one starting that day applies. Compilations do not start only on 1 July: the Income Tax Assessment Act 1997's newest 3 started on 1 July, 27 August and 1 October 2026. A date that is not a validYYYY-MM-DDis refused with its reason before anything is fetched.rulings_targets FEED --out TARGETS.jsonwrites arulingstarget list from an ATO Legal Database RSS feed, such as 'ATO - All Rulings and Determinations', from a saved copy or one fetch of its URL. It lists, in the feed's order and up to 100, each docid in a familyrulingsaccepts, and prints each item it refuses (a draft, another family, a repeat or one past the cap) with its reason. An item whose link it cannot read is printed as malformed and makes it exit 1 after writing the rest; a feed whose items cannot be told apart, or with a namespace-prefixed item tag, writes nothing.
v0.6.0
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
rulingsreads a page that declares UTF-8 but holds single Windows-1252 bytes, as PCG 2021/4 does, where it refused it as not UTF-8. Each such byte is read as Windows-1252, the manifest records the count in the document'swindows_1252_bytesand the run prints atranscodedline. A byte Windows-1252 leaves undefined or a UTF-16 byte order mark is still refused.distpublishes eachrulingsrun under the corpus'srulings/<run>/todist/rulings/<run>/: its rows, manifest and reuse notice, without the raw pages, andrulings/sources.jsonwith each file's SHA-256. A document the ATO's copyright notice does not cover (another family, a page that did not print the notice, a label its docid contradicts, or text carrying a copyright notice of its own), and any edited version of private advice, is left out and listed in the manifest andREMOVED.md; a row holding a contact or a name beside a registration number stopsdist.LICENCE-NOTICE.mdgains anATO rulingssection quoting the notice and saying neither the ATO nor the Commonwealth endorses the corpus, anddist_verifyadds 7 checks. A corpus withoutrulings/publishes as before (docs/rulings.md, 'Publishing a run'; #313).rulingslabels Law Companion Rulings (COG/LCR...) asLaw Companion Ruling, where it usedPractical Compliance Guideline, and accepts GST determinations underGSDasGoods and Services Tax Determination, the Legal Database's name for them.aus-accounting-mcp0.9.0 does not yet know either label and refuses a run that holds one (#313).quick --in-force-on YYYY-07-01, repeatable, also holds each preset Act's compilation in force on that 1 July undercompilations/<date>/, for answers about past income years, andversions --in-force-on YYYY-MM-DDresolves those versions. A title with nothing earlier to fetch is listed with its reason and left out. The build stops before publishing if a date lacks rows for a title it fetched or 2 compilations of a title have overlapping windows. The search index,finalizeandas_atread only the current compilations.versionsnow refuses arguments it used to ignore. Without the option the build is unchanged (#305).distcarries each date'smarkdown/todist/compilations/<date>/with asources.jsongiving each compilation's source, window, retrieval date and file digests, and lists the titles it leaves out;dist_verifyadds 8 checks on them.quicktreats an open and a closed window from the same start as an overlap, where it raisedTypeError(#307).- The privacy checks in
distanddist_verifyread every decoded string and number in a row, keys and nested values included, so a JSON escape cannot hide a contact or a name beside a registration number.distrefuses a title with no rows and a listed title name that holds either.as_ataccepts a compilation superseded on the day it starts, which holds no date (#308). - The contact scan also reads each text with HTML character references decoded and NFKC-normalised, so a full-width
@, full-width digits or a reference such as@no longer hides an email address or phone number wherever the scan runs,distanddist_verifyincluded (#309). - The contact scan also reads each text with invisible characters removed, then with controls removed too, and as it displays: in bidirectional order, with a non-breaking hyphen, figure dash, en dash or minus sign read as
-. A zero-width space, soft hyphen, NUL from a JSON escape, a contact written backwards after a right-to-left override or a phone number with non-breaking hyphens no longer hides an email address, phone number or TFN from the scan,distordist_verify; a text that reads as a contact only these ways now fails them until reviewed. It does not find a contact broken by a character that shows as a gap or split across 2 strings (docs/scope.md). New dependency:unicode-bidi0.3.18 (#311). probe13no longer falls back to a version that starts after the current one, which gave the root row a window ending before it began (#306).- CI runs the samples demo on a debug build; pull requests skip the release compile, which pushes to
mainstill run (#304).
v0.5.0
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
search cite-check INDEX DRAFTchecks a draft's legislation citations against a build: each isresolved,assumedornot_held, with the nearest held sections for a provision the build lacks. It grades a quotation in a citation's sentence asexact,normalised,partialornone(#270, #286). It does not check citations of rulings.docs/build-evidence.mdadds a 46-query retrieval baseline on real law (#270).search quote INDEX ROW_ID QUOTATIONgrades one quotation against a chosen row by thecite-checkrules (#286).search build --rulings RUN_DIRindexes each rulings run's references to a section, Division or Subdivision named with its Act, andsearch refslists them undercited_by_rulingswith each paragraph's withdrawal status. The build refuses a run whoserulings.jsonldoes not match itsmanifest.json. Without--rulingsthe index holds no rulings tables (#286).authoritiesexports a build, and optionally a rulings run, as the closed list for DrDebits'gate --authorities(BUILD.md, 'Exporting an authorities list').--as-at DATEonsearch query,defineandcite-checkanswers only from titles whose status on that date iscapturedand refuses the rest by name. No superseded text is held (#284).quick --out FOLDERfetches, builds and indexes 9 principal Acts from the Register in one command and prints theAUS_ACCOUNTING_CORPUS_ROOTsetting;finalize --presetmarks such a build (#284).search query --stemadds English word-form matches, marked as stemmed; exact search stays the default. Everysearch buildnow also fills the stemmed index, so an index differs from one built by 0.4.0 (#285).- A re-run that reuses a cached EPUB records the compilation's resolved Register ID, where it copied the cached file's sidecar and could record
nullor another compilation's ID (#258). witnesscompares a fixed sample of titles' EPUB sections with the Register's Word rendition (#256).search refsresolves ITAA 1997, ITAA 1936, TAA 1953, GST Act and FBTAA 1986 through a closed table (#264), andqueryranks current titles above superseded ones (#246).discoveradds 3 Acts no tax keyword reaches from a reviewed list: the Major Bank Levy Act 2017, the Product Grants and Benefits Administration Act 2000 and the Venture Capital Act 2002. It stops if a listed title is no longer an in-force principal Act (docs/scope.md).distkeeps custom distribution notices and supports verified corpus snapshots; the first,corpus-2026-11-11, is a separate release (#292).- Licence: versions made available from 4 November 2026 are under the Ryan Duguid Public Attribution Licence 1.0, the FSL-1.1-ALv2 text with a public attribution condition; earlier releases keep their licences (#267).
compare_buildsrefuses a sections.jsonl row that repeats a JSON member at any depth, names another title, holds a container, section or heading that is neither text nor null (a lone surrogate counts as neither), holds a lone surrogate anywhere in its compilation number or date, or comes from a different compilation from the title's first row, and its text report lists the titles present in only one build. For such inputs it departs on purpose from the output of the Python stage at 43b5e0c.- Dependencies: rustix 1.1.6 for RUSTSEC-2026-0486 (#299); the fuzz workspace uses the patched SQLite (#289).
- The release workflow is pinned to release-policy
ca5492b(#281).
Known issues:
rulingslabels Law Companion Rulings, which the ATO lists underCOG, as Practical Compliance Guidelines, and does not capture GST determinations, listed underGSD(docs/rulings.md).- A
faddenstage holds its output until it exits, so a long stage shows no progress, and a panic or Ctrl+C loses what it would have printed.
v0.4.0
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
discoverrefuses to replacetitles_all.jsonandtitles_principal.jsonwhen the new list is missing any principal title or more than 1 in 20 of the titles the earliertitles_all.jsonheld: it exits 1, names the missing ids and leaves both files unchanged. A smaller loss is printed.--accept-missingoverrides and prints the accepted ids. Unknown arguments are now refused with argparse's usage error, where they were ignored (#235).- Relicensed from Apache-2.0 to FSL-1.1-ALv2 (Functional Source License, with Apache-2.0 as the future licence). Released versions keep their licence (#228).
- Breaking: a finalised corpus no longer carries the builder's Python scripts in
build/.finalizewritesbuild/build-record.jsoninstead (BUILD.md, "The build record": the run's time, the program's version and SHA-256, the size and SHA-256 of every file it read, and the shipped checker's digests, with unknown provenance recorded asnulland a reason) and README.md gains a "Build record" section. It still copiescheck_current.py,corpus_paths.pyandhttp_fetch.pyto the corpus root. It refuses, before writing anything, abuild/holdingdiscover.py,versions.py,download.py,extract.pyorfinalize.pyfrom an earlier run. Re-run stages from a source checkout (#224). capture_registerremoves only a staging directory it created, so a name that already existed is left alone (cleanup still trusts the output parent and its ancestors: an account that can write there could replace the directory between its creation and cleanup), and on Linux it promotes the capture withrenameat2(RENAME_NOREPLACE), refusing where the C library lacks it, so an empty directory that appears at the destination is never replaced.export_live_evidence_bundlesgives Windows the UTF-16 length of each capture path component, so a component holding a character outside the Basic Multilingual Plane no longer stops the export. The Python stages and the binary change together (#224).- Breaking: the review queue is a standalone Rust binary,
tax-radar-au1.0.0, built withcargo build --locked --release. Its commands, options, exit statuses, stdout and stderr lines, output file bytes (CRLF on Windows), digests and argparse usage and error text match the Python radar at 43b5e0c. Thetax_radar_auimport package, itssample_pathhelper and the wheel's console script are removed; the samples moved tosamples/. The Python wheel carries the corpus builder only (#224). - Documented differences from the Python radar:
- stdout and stderr are always UTF-8. Python on a non-UTF-8 Windows code page printed an unencodable
--outpath backslash-escaped with a note on stderr; Python 3.15's UTF-8 mode behaves like the binary. rulingsfetches with its own HTTP client, a port of theurllib.requestandhttp.clientcode it used: the request it sends, redirects, environment proxies, response framing and the exception names it reports match. It checks certificates with rustls against the operating system's store, where Python used OpenSSL with the system's root certificates. It does not read the Windows Internet Settings or macOS System Configuration proxy, which Python used when no proxy variable was set (setHTTPS_PROXYinstead); a redirect or proxy to an FTP, file or data URL fails asURLError; and a non-ASCII host name is not IDNA-encoded.dist_verifystill exits 2 when the checks could not run, but prints only the traceback's last line where Python printed it whole.dist_verifylists unapproved contact findings in its FAIL detail sorted by title and digest; Python listed them in set order, which follows string hashes and varied from run to run. Where two values that cannot be ordered meet in a sort (a non-string collection beside string ones), the TypeError can name the two types in the other order, as Python's own runs could.- An argument that is not valid Unicode (possible on Windows) is refused with
tax-radar-au: blocked: every argument must be valid Unicode.and exit 2, where Python accepted it and failed later on the path. - Resolving an output path whose existing component cannot be opened (access denied, sharing violation) keeps that component's letter case as given; Python asked Windows for its stored name.
- stdout and stderr are always UTF-8. Python on a non-UTF-8 Windows code page printed an unencodable
- The
as_at,compare_builds,discover,dist,dist_verify,export_monitor_contract,export_publication_bundles,extract,finalize,pii_scan,pii_scan2,probe13,rates,rulings,searchandversionscorpus stages are the Rustfaddenbinary. Their Python modulesfadden/discover.py,versions.py,extract.pyandfinalize.pyare removed, with the Python tests of their internals. The publication export reads its inputs through the radar's snapshot loader, sofadden/source_snapshot.pyis removed. The privacy patterns they share aresrc/fadden/pii.rs;fadden/pii_patterns.pyis removed, and the fuzzing workflow runs a cargo-fuzz target on nightly Rust instead of the Atheris one.python -m faddenruns it with the same arguments, and it keeps their command lines, output bytes and exit statuses. Documented differences:- An exception the Python stage did not catch printed a traceback; the binary prints only its last line, with the same exit status 1.
- A search index records the bundled SQLite's version (3.53.2) in its file header, so the file differs from Python's in those 4 header bytes only.
- An argument that is not valid Unicode (possible on Windows) is refused with
fadden: every argument must be valid Unicode.and exit 2, as the radar does. - A file or directory name that is not valid Unicode (bytes that are not UTF-8 on Linux, a lone surrogate on Windows) in a tree a stage lists stops the stage with
ValueError: file name is not valid Unicode: '<path>', exit 1, or exit 2 fromdist_verify. Python carried such a name through as a surrogate-escaped string. The exception is the stale-title refusal infinalize,ratesandsearch, which names such an entry as Python does (each unpaired surrogate written\udXXX). - When an observation fact carries several fields its state requires to be null,
export_monitor_contractnames the first alphabetically; Python named one in set order, which followed string hashes. - Without a
VERSIONfile beside the package,export_publication_bundleslooks for the installed distribution's metadata in that directory only, where Python'simportlib.metadatasearched everysys.pathentry. Within that directory it reads the metadata asimportlib.metadatadoes: a.dist-infobefore an.egg-info, theVersionheader in any letter case and its value unaltered. - A Python stage interrupted with Ctrl+C ran its recovery; the binary stops at once. For
export_monitor_contractthe publisher lock and any.bakfiles then stay for operator recovery, as after a failed rollback. export_monitor_contractkeeps writing its lock token after a short write, where Python made oneos.writecall and could leave a truncated token. A write error part way through still leaves the bytes written so far if the lock then cannot be removed. A failure to close a lock, staged or bundle file once its bytes are written is not reported; Python would have reported it.
- The
faddenbinary also carriescapture_registerandexport_live_evidence_bundles, verified against the Python stages, whichpython -m faddenand the publication workflow still run. Their new directories get the private DACL CPython 3.13 and later giveos.mkdir(path, 0o700)on Windows. Documented differences:- A Register response nested more than 1,000 levels deep is recorded as
INVALID_ODATA_SHAPEwithout the rest of its syntax being checked; Python parsed it to its C-stack limit, so a later syntax error or duplicate member made itINVALID_JSON, and past that limit it raisedRecursionError. - Timestamp offsets follow CPython 3.15, which refuses offset minutes past 59 that 3.14 accepted.
- Interrupted with Ctrl+C, the binary stops at once; a capture's staging directory, or a live export's staging directory and its held files, stay behind for removal, where Python ran its cleanup.
- The HTTP client allows 90 seconds for each address tried, each socket read and the whole TLS handshake, as Python's socket timeout does, and 90 seconds for each socket write, where Python gave sending the request one 90-second limit.
- When closing one of the live export's pinned capture directories fails, the binary still closes the others; Python left them open until it exited. On Linux a failed close of a pinned descriptor is not reported.
- A Register response nested more than 1,000 levels deep is recorded as
- JSON nested more than 1,000 levels deep raises
RecursionError: maximum recursion depth exceeded while decoding a JSON array from a unicode string(orobject). CPython 3.15 raises it only where its C stack runs low, above 13,000 levels on Windows, and words the message by the stack used.- Writing indented JSON stops at the nesting where Python's encoder reaches its recursion limit under
python -m fadden(about 990 containers, by stage), with the sameRecursionErrorand notes, and leaves the part Python wrote. Python started another way, with more or fewer frames below the stage, stops at another depth. - Sorts follow CPython 3.15. Where 64 or more items include values that do not order (or NaNs), CPython 3.14 forms its runs differently and can meet a different pair of types, or leave NaNs elsewhere, as 3.14 and 3.15 differ from each other.
- Writing indented JSON stops at the nesting where Python's encoder reaches its recursion limit under
- A
searchstage builds a local SQLite FTS5 index over a finished corpus after checking every row againstsources.json, and answersquery,defineandrefsfrom it (#202). It records a decimal citation label only when the label is complete. rulingsgives each row, and the manifest's document record, awithdrawal_status(NOTICE_PRESENTwhen paragraphs follow a Notice of Withdrawal heading, otherwiseUNKNOWN) and the extractedwithdrawal_notice.UNKNOWNdoes not establish that a ruling is current (#208).publish-live-evidence.ymlfails closed when a live-evidence tag, draft or release already exists, where it reused them (#217), andapprove-live-evidence.ymlpublishes a draft only when every asset's bytes match the producer's artifact attestation (#218).- This release contains builder source only, without a corpus or live evidence.
v0.3.0
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
- Breaking: the builder and radar require Python 3.14 or later; 0.2.1 remains the last release for Python 3.11 to 3.13 (#166).
- Licence: Apache-2.0 replaces MIT for the code, with a
NOTICEfile whose attribution anyone redistributing the code or a derivative must keep (#179). Releases before 0.3.0 stay under MIT. - A
compare_buildsstage lists the sections added, removed and changed between two local builds, title by title, and the titles present in only one of them (#170). - Stage 2 resolves up to eight principal titles in each paced request, keeps record order, and falls back to single-title requests when batching is unavailable. A malformed response or unresolved title leaves
acts_resolved.jsonunchanged (#175). - EPUB tables keep source-cell columns under
rowspan, overlapping row groups are refused, and the parser checks expanded, buffered and padded allocations against its limits (#178). - The dot-leader pattern in title extraction no longer backtracks (#192).
- The release also carries its signed provenance bundle,
au-tax-legislation-corpus-builder-0.3.0.intoto.jsonl(#191). - This release contains builder source only, without a corpus or live evidence.
v0.2.1
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
- No v0.2.0 release exists. The v0.2.0 tag (5 October 2026) stopped at the release preflight because the release workflow listed its Python 3.11 check twice; it now lists it once, and a test refuses a repeated check. 0.2.1 carries every change below.
- Breaking: the builder and radar require Python 3.11 or later; 0.1.7 remains the last release for Python 3.10 (#162).
- An
as_atstage checks a compilation's point in time, each row carries its compilation window, and a literal quotation check compares quoted text with the source (#154). - Archive and table extraction are bounded, Register identities and timestamps are validated, and existing corpus and radar outputs survive a failed staging or promotion (#159).
- The radar keeps its input files when an output path names one of them, directly or through a link (#149), bounds its companion reads and rejects control characters in profile labels (#150), and reports a non-string observation schema version as blocked input with exit 2 (#155).
- The extractor treats a valueless
classattribute as empty instead of stopping (#161), and the rulings fetch closes HTTP error responses before retrying (#160). - CodeQL runs from a repository workflow so a release can require it (#152).
- This release contains builder source only, without a corpus or live evidence.
v0.1.7
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
- A rulings stage collects ATO Legal Database documents into a collection of their own (#139).
- Rate rows carry their provenance, discovery reads the Register's status before anything else, and the guides and labels are corrected (#114).
- A rebuild refuses titles the list no longer names instead of carrying them forward, the PII scan no longer takes decimal rate factors for phone numbers, five licence-restricted standards stay out of distributions, and a failed first build rolls back without discarding complete new downloads (#144).
- Corpus content is preserved and evidence publication requires review (#132); draft publication is retry-safe and title lists are written atomically (#118); a failed check is reported apart from a verifier that could not run (#119).
- Live-evidence tagging and publication run in a protected environment (#143), and a builder release now requires the mandatory
mainchecks to have passed for its commit (#131). - The radar gains an exposure command for pseudonymous client profiles (#145).
- This release contains builder source only, without a corpus or live evidence.
v0.1.6
This candidate contains the corpus builder source. It excludes generated legislation and live evidence.
- Display the full queue digest and reject Markdown companions that differ from the JSON rendering.
- Record per-title EPUB metadata failures before refusing manifest publication.
- Validate the required PII summary before replacing publication artefacts.
- This release contains builder source only, without a corpus or live evidence.
v0.1.5
This is a release of the corpus builder, not a prebuilt legislation corpus.
The v0.1.4 tag was pushed on 7 September 2026 and its release preflight
failed before anything was published, so that tag carries no GitHub release.
A pushed tag is never moved, so v0.1.5 is the same tree plus the fix.
Changes since v0.1.3:
- The release-policy preflight runs unittest discovery over the whole
tests
tree on a runner without pytest, and since the tax-radar-au merge that tree
holds a pytest-only radar suite.tests/radar/__init__.pynow withholds
that package from unittest discovery, and a corpus test re-runs the
preflight discovery with pytest hidden so it stays that way. - The release workflow calls the shared release-policy archive workflow,
pinned to a commit reachable from that repository'smain
(99a6314), after 2 repoints that followed release-policy's history
rewrite. Dependabot no longer proposes bumps to that pin; the pin moves
only through a reviewed change.setup-uvis pinned by commit, the
evidence publisher runs without a cache, and every workflow carries a
concurrency group and a job timeout. - A repealed row that the Register still lists as current is recorded as no
longer in force;C2004A00982is re-resolved against current Register
metadata;observed_atis read without PowerShell datetime coercion; the
distribution figures and stale documentation are corrected, raw HTML in
radar Markdown is escaped, and the affected test paths are repaired. - Documentation states the source-only package lifecycle, names GitHub
Releases as the canonical release history and says what a release carries,
adds cross-runtime contributor guidance for the corpus, and leads with a
synthetic change-review export.
v0.1.3
This is a release of the corpus builder, not a prebuilt legislation corpus.
First release cut from the repository's current history, restoring the full
verification story (gh release verify and gh attestation verify) that the
history rewrite broke for v0.1.1 and v0.1.2.
python -m fadden <stage>works from a source checkout: the dispatcher puts
the package directory onsys.pathso the stages' flat imports resolve, and
a forwarded retrieval date now reachesextract. A real-import test over
every stage guards the entry point.- BUILD.md documents the mandatory PII scan stages and no longer claims the
source checkout ships the regenerated intermediates. - RELEASING.md and the sibling references use the current repository names;
the release workflow and its pinning test point at reachable
release-policy history;tools/build_release_archives.pyis synchronised
with the shared script the release actually runs.
v0.1.2
This is a release of the corpus builder, not a prebuilt legislation corpus.
Changes since v0.1.1:
- apply both privacy predicates to every declared title representation: Markdown, optional endnotes and JSONL
- reject undeclared title files, nested directories, invalid UTF-8, binary control data, symbolic links, junctions and other Windows reparse points
- make TFNs permanently non-allowlistable and reject allowlist reasons that contain a raw contact identifier
- turn malformed JSON, rate records and manipulated manifest paths into named publication failures rather than tracebacks
- derive and verify README and distribution-index counts independently from the validated output.
The corrected builder passed 112 tests and 2 complete builds from the public
4 August 2026 source snapshot. Both builds produced the same validated 2,105-file
distribution: 934 redistributed titles and 21,596 rows, that snapshot's 946
titles and 21,784 rows less the 12 titles pii_flagged.json names. Those 12
titles hold 188 rows between them, of which 169 are recorded as naming private
individuals. The build drops a flagged title whole rather than row by row, so
all 188 of its rows leave the distribution, not only the 169.
Those figures describe that validation run, not a promise that the underlying
legislation remains current after the snapshot date.
No downloaded EPUB, extracted legislation, corpus output or client data is included. Rebuild from the Federal Register of Legislation under the controls in BUILD.md and review the resulting licence notice before redistribution.