Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 13 Nov 20:15
· 53 commits to main since this release
Immutable release. Only release title and notes can be modified.
v0.5.0
89309b0

v0.5.0

This candidate contains the corpus builder source. It excludes generated legislation and live evidence.

  • search cite-check INDEX DRAFT checks a draft's legislation citations against a build: each is resolved, assumed or not_held, with the nearest held sections for a provision the build lacks. It grades a quotation in a citation's sentence as exact, normalised, partial or none (#270, #286). It does not check citations of rulings. docs/build-evidence.md adds a 46-query retrieval baseline on real law (#270).
  • search quote INDEX ROW_ID QUOTATION grades one quotation against a chosen row by the cite-check rules (#286).
  • search build --rulings RUN_DIR indexes each rulings run's references to a section, Division or Subdivision named with its Act, and search refs lists them under cited_by_rulings with each paragraph's withdrawal status. The build refuses a run whose rulings.jsonl does not match its manifest.json. Without --rulings the index holds no rulings tables (#286).
  • authorities exports a build, and optionally a rulings run, as the closed list for DrDebits' gate --authorities (BUILD.md, 'Exporting an authorities list').
  • --as-at DATE on search query, define and cite-check answers only from titles whose status on that date is captured and refuses the rest by name. No superseded text is held (#284).
  • quick --out FOLDER fetches, builds and indexes 9 principal Acts from the Register in one command and prints the AUS_ACCOUNTING_CORPUS_ROOT setting; finalize --preset marks such a build (#284).
  • search query --stem adds English word-form matches, marked as stemmed; exact search stays the default. Every search build now 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 null or another compilation's ID (#258).
  • witness compares a fixed sample of titles' EPUB sections with the Register's Word rendition (#256). search refs resolves ITAA 1997, ITAA 1936, TAA 1953, GST Act and FBTAA 1986 through a closed table (#264), and query ranks current titles above superseded ones (#246).
  • discover adds 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).
  • dist keeps 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_builds refuses 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:

  • rulings labels Law Companion Rulings, which the ATO lists under COG, as Practical Compliance Guidelines, and does not capture GST determinations, listed under GSD (docs/rulings.md).
  • A fadden stage 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.

  • discover refuses to replace titles_all.json and titles_principal.json when the new list is missing any principal title or more than 1 in 20 of the titles the earlier titles_all.json held: it exits 1, names the missing ids and leaves both files unchanged. A smaller loss is printed. --accept-missing overrides 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/. finalize writes build/build-record.json instead (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 as null and a reason) and README.md gains a "Build record" section. It still copies check_current.py, corpus_paths.py and http_fetch.py to the corpus root. It refuses, before writing anything, a build/ holding discover.py, versions.py, download.py, extract.py or finalize.py from an earlier run. Re-run stages from a source checkout (#224).
  • capture_register removes 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 with renameat2(RENAME_NOREPLACE), refusing where the C library lacks it, so an empty directory that appears at the destination is never replaced. export_live_evidence_bundles gives 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-au 1.0.0, built with cargo 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. The tax_radar_au import package, its sample_path helper and the wheel's console script are removed; the samples moved to samples/. 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 --out path backslash-escaped with a note on stderr; Python 3.15's UTF-8 mode behaves like the binary.
    • rulings fetches with its own HTTP client, a port of the urllib.request and http.client code 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 (set HTTPS_PROXY instead); a redirect or proxy to an FTP, file or data URL fails as URLError; and a non-ASCII host name is not IDNA-encoded.
    • dist_verify still exits 2 when the checks could not run, but prints only the traceback's last line where Python printed it whole.
    • dist_verify lists 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.
  • The as_at, compare_builds, discover, dist, dist_verify, export_monitor_contract, export_publication_bundles, extract, finalize, pii_scan, pii_scan2, probe13, rates, rulings, search and versions corpus stages are the Rust fadden binary. Their Python modules fadden/discover.py, versions.py, extract.py and finalize.py are removed, with the Python tests of their internals. The publication export reads its inputs through the radar's snapshot loader, so fadden/source_snapshot.py is removed. The privacy patterns they share are src/fadden/pii.rs; fadden/pii_patterns.py is removed, and the fuzzing workflow runs a cargo-fuzz target on nightly Rust instead of the Atheris one. python -m fadden runs 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 from dist_verify. Python carried such a name through as a surrogate-escaped string. The exception is the stale-title refusal in finalize, rates and search, 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_contract names the first alphabetically; Python named one in set order, which followed string hashes.
    • Without a VERSION file beside the package, export_publication_bundles looks for the installed distribution's metadata in that directory only, where Python's importlib.metadata searched every sys.path entry. Within that directory it reads the metadata as importlib.metadata does: a .dist-info before an .egg-info, the Version header 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_contract the publisher lock and any .bak files then stay for operator recovery, as after a failed rollback.
    • export_monitor_contract keeps writing its lock token after a short write, where Python made one os.write call 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 fadden binary also carries capture_register and export_live_evidence_bundles, verified against the Python stages, which python -m fadden and the publication workflow still run. Their new directories get the private DACL CPython 3.13 and later give os.mkdir(path, 0o700) on Windows. Documented differences:
    • A Register response nested more than 1,000 levels deep is recorded as INVALID_ODATA_SHAPE without the rest of its syntax being checked; Python parsed it to its C-stack limit, so a later syntax error or duplicate member made it INVALID_JSON, and past that limit it raised RecursionError.
    • 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.
  • JSON nested more than 1,000 levels deep raises RecursionError: maximum recursion depth exceeded while decoding a JSON array from a unicode string (or object). 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 same RecursionError and 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.
  • A search stage builds a local SQLite FTS5 index over a finished corpus after checking every row against sources.json, and answers query, define and refs from it (#202). It records a decimal citation label only when the label is complete.
  • rulings gives each row, and the manifest's document record, a withdrawal_status (NOTICE_PRESENT when paragraphs follow a Notice of Withdrawal heading, otherwise UNKNOWN) and the extracted withdrawal_notice. UNKNOWN does not establish that a ruling is current (#208).
  • publish-live-evidence.yml fails closed when a live-evidence tag, draft or release already exists, where it reused them (#217), and approve-live-evidence.yml publishes 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 NOTICE file whose attribution anyone redistributing the code or a derivative must keep (#179). Releases before 0.3.0 stay under MIT.
  • A compare_builds stage 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.json unchanged (#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_at stage 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 class attribute 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 main checks 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__.py now 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's main
    (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-uv is 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; C2004A00982 is re-resolved against current Register
    metadata; observed_at is 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 on sys.path so the stages' flat imports resolve, and
    a forwarded retrieval date now reaches extract. 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.py is 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.

VirusTotal