Skip to main content

XLAxiom — turn numerical discrepancies into evidence

CI License: Apache-2.0 Python 3.11–3.13

XLAxiom turns a suspicious JAX/OpenXLA numerical result into a minimized, reproducible, portable, evidence-backed case. It gives compiler, platform, and ML infrastructure teams a disciplined path from “this changed” to an artifact another engineer can inspect, rerun, and compare.

It is independently developed and is not affiliated with, sponsored by, or endorsed by Google.

Pick your path

If you need to… Start here
Prove the pipeline works safely Run the five-minute synthetic control.
Investigate a real numerical discrepancy Follow the artifact handoff workflow.
Add bounded regression coverage to CI Run the curated property corpus.
Compare CPU, GPU, or version-specific evidence Use the support matrix and quickstart.
Inspect physical TPU qualification Review the retained 4-chip TPU evidence.
Qualify TPU workflows without accelerator cost Run the offline TPU qualification.
Install from source or a verified wheel Read the installation guide.

Five-minute confidence check

Prerequisite: Python 3.11–3.13 and uv. From a source checkout:

uv sync --extra dev --frozen
uv run xlaxiom doctor
uv run xlaxiom generate --synthetic --seed 7 --output results/original.json
uv run xlaxiom minimize --case results/original.json --output results/reduced.json
uv run xlaxiom reproduce --case results/reduced.json
uv run xlaxiom report --case results/reduced.json --output results/report
uv run xlaxiom bundle create --case results/reduced.json --output results/control.zip
uv run xlaxiom bundle validate --bundle results/control.zip

This produces a small, checksummed control case, a fresh-process reproduction verdict, a JSON/Markdown report, and a validated portable bundle. --synthetic injects a clearly labelled offset after JAX execution: it proves the workflow, but is never evidence of a JAX, XLA, hardware, or model defect.

For a real observation, start with the artifact guide. It explains the required minimization, fresh-process reproduction, environment evidence, and safe handoff boundaries before an upstream issue is considered.

What XLAxiom does

observe → classify → minimize → reproduce in a fresh process
        → bundle evidence → compare environments
  • Records the evidence. It captures versions, device placement, numerical policy, outputs, and an explicit predicate instead of treating a mismatch as a diagnosis.
  • Keeps cases small. Failure-preserving minimization and topological subgraph extraction reduce a reproducible observation without silently changing what failed.
  • Pinpoints compiler regressions. Automated bisection binary-searches compiler releases in isolated environments to identify exact breaking changes.
  • Makes handoffs portable. Declarative JSON workloads, copy-pasteable 10-line reproduction scripts, triage markdown packages, checksummed reports, and bundles let another engineer or upstream maintainer validate the observation immediately.
  • Fails closed on hardware. Accelerator requests must prove actual placement; unavailable GPU/TPU hardware is never represented as a CPU success.

XLAxiom is the evidence layer between a suspicious numerical result and a focused engineering investigation. It is not a general correctness oracle, performance benchmark suite, or automatic root-cause analyzer.

The normal workflow

  1. Capture an observation. Compare NumPy against JAX eager/JIT or execute a reviewed relation with an explicit policy.
  2. Reduce it without changing it. Minimize a repeatable non-synthetic predicate and preserve its reduction record.
  3. Reproduce it independently. Re-run in a fresh process, then record a second host, device, or runtime when the claim requires it.
  4. Hand it off safely. Generate a report and validated bundle; attach only the evidence that supports the stated scope.

The artifact lifecycle has the exact command-level process. The issue readiness check is deliberately conservative: an observation is not a diagnosis, and missing external evidence is never inferred.

Evidence you can trust

The repository is designed to make scope visible rather than inflate it:

  • The CPU path, checksummed artifacts, failure containment, and reviewed property corpus are covered by automated tests and release verification.
  • The curated corpus contains forty explicit relations across ordinary, extreme, signed-zero, non-finite, integer, mixed-dtype, and x64 inputs with verified mutation sharpness.
  • Windows/Linux, selected CUDA, and 4-chip Google Cloud TPU v5e evidence are retained as concrete records; untested hardware remains capability- and evidence-gated.

See the support and verification matrix for what is supported versus merely implemented, and the experiment records for the underlying evidence—not a condensed lab notebook in this README.

Command map

Goal Primary commands
Ingest live code trace
Inspect an environment doctor, environment capture, runtime compare
Investigate one case generate, run, compare, minimize, reproduce
Pinpoint compiler regression bisect
Prepare upstream triage/handoff triage, report, bundle create, bundle validate, readiness
Test known relations property list, property run, property campaign, relation
Compare changes safely matrix run, property compare, historical-study
Validate accelerators gpu doctor, gpu validate, gpu campaign

Run xlaxiom <command> --help for the complete interface. The documentation index routes each workflow to the right level of detail.

Safety and interpretation

Workloads are deterministic JSON data selected from a closed operation registry; XLAxiom does not load pickle files or execute workload-supplied code. Numerical workloads can still consume meaningful resources, so run untrusted artifacts with suitable process and resource isolation. Read SECURITY.md before sharing artifacts or reporting a vulnerability.

NumPy is useful but is not an independent oracle for every JAX semantic, dtype-promotion rule, compiler setting, or hardware implementation. A mismatch directs investigation; it never establishes root cause or severity by itself.

Development and release

uv sync --extra dev --frozen
uv run pytest
uv run ruff check .
uv run ruff format --check .
uv run mypy src
uv build --out-dir .release-dist
uv run twine check .release-dist/*
uv run python scripts/verify_distribution.py --dist-dir .release-dist

The release policy defines the required quality gates, reproducible-build expectations, and Trusted Publishing boundary. The roadmap distinguishes implemented capability from physical-hardware evidence that cannot be manufactured locally.

Metadata

Release files for xlaxiom 2.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xlaxiom 2.1.0
File Size Uploaded Provenance Actions
xlaxiom-2.1.0.tar.gz 1.4 MB With provenance Details for xlaxiom-2.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for xlaxiom 2.1.0
File Interpreter ABI Platform Actions
xlaxiom-2.1.0-py3-none-any.whl Python 3 none any Details for xlaxiom-2.1.0-py3-none-any.whl

Total release size: 1.5 MB

Release files / xlaxiom-2.1.0.tar.gz

Download URL xlaxiom-2.1.0.tar.gz
Size 1.4 MB
Tags Source
SHA-256 checksum
How to use checksums
8806d82b25e36fd49a93b09b568872c89fe763f2013e5da8cb0002236cffd566
BLAKE2b-256 checksum
How to use checksums
8deae1532ba3e2555d476aa915120602be8b8eb13d653779dacc0477f4fae35e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Release files / xlaxiom-2.1.0-py3-none-any.whl

Download URL xlaxiom-2.1.0-py3-none-any.whl
Size 146.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8b5dbce2c9e88cf5466abfc9ac896969ba491d7caef716555c1d8b99c0b7f5c4
BLAKE2b-256 checksum
How to use checksums
0989391d9565bc922c267b61b16b35e73fc38f4b0f138cbfa099e3f602f2aefd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

Security for xlaxiom 2.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for xlaxiom-2.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 20, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page