Skip to main content

axor-backend

FastAPI system-of-record + plane service. Persists and fans out; it never interprets governance — replay/degradation is axor_core.kernel's.

Run: AXOR_ALLOW_UNSIGNED=1 uv run uvicorn axor_backend.main:app --factory --port 8400 (SQLite by default; set AXOR_DATABASE_URL=postgresql+asyncpg://… for Postgres/JSONB).

Modules:

Module Responsibility
app.py application factory — resolves config, builds state, installs the auth gate, registers routers. Nothing else.
config.py every AXOR_* variable, resolved once into one frozen AppConfig
deps.py request-scoped access to the long-lived collaborators (StoreDep, GraphDep, …)
security.py principal resolution + the auth middleware; the policy it applies lives in auth.py
lifecycle.py lifespan: boot warnings, rehydrating the in-memory projections, retention and EE-scheduler sweeps
licensing.py verified EE licenses per organization + the paid-feature gate
corpus.py / traces.py the pinned-corpus report (shared by route and scheduler); reading a run back as a kernel trace
routers/ the HTTP surface, one module per domain; ALL_ROUTERS is the single registration point
plane.py plane service (protocol v0.3): /command, /desired (SSE), /telemetry, /facts, /cascade-stop
storage.py append-only events + runs/desired/reported/facts/pins/keys/share-links/notification-subs; JSON→JSONB on Postgres. Events read back in append order (events.id), which is causal order — per-node seq is not. Desired-state writes are versioned CAS: a signed command lands only at the version it was signed for.
replay_api.py config→KernelConfig, scrubber/counterfactual payloads
provenance.py value provenance inside ONE run, derived from that run's events on request — no store, because value refs are minted per trace and repeat across runs
attestations.py operator attestations: recorded in the fact log here, given their meaning (append-only, revocation-as-an-event, same-keyset revocation) by axor_sentinel.sentinel.attestation
coverage.py what an attestation discharges: covers names fact ids and level = max(severity(uncovered)), both imported from axor_core.kernel.degradation — the plane holds no second opinion about what an operator's signature bought
signing.py operator command signing — delegates JCS to axor_core.kernel.canonicalize
notifications.py / monitor.py webhook triggers (retries + dead-letter); node-stale sweep
share.py EvidenceCase HTML + dependency-free PDF receipt, revocable links
auth.py opt-in master token + scoped API keys
ee/ Enterprise Edition (offline Ed25519 license) — commercial licence, see ee/LICENSE

Env: AXOR_DATABASE_URL, AXOR_API_TOKEN, AXOR_OPERATOR_KEYS (JSON op→hex), AXOR_ALLOW_UNSIGNED, AXOR_VENDOR_PUBKEY, AXOR_STALE_AFTER. Every one of them is resolved in config.py and nowhere else — the dataclass fields are the list. AXOR_VENDOR_PUBKEY is the licensing trust root: /v1/license/verify checks against it and refuses a vendor key supplied in the request.

Tests: uv run pytest packages/axor-backend. The suite runs on SQLite; the postgres marker runs the dialect-sensitive parts (migration chain, JSONB, batched RETURNING, versioned CAS under real concurrent connections) against a real Postgres when AXOR_TEST_POSTGRES_URL is set, and skips otherwise — CI sets it. In-process suites use httpx ASGITransport; tests/e2e/ (marker e2e) boots the real backend + proxy as subprocesses and drives them over HTTP/SSE — cross-service upload, live audit & desired streams, webhook delivery, auth enforcement, and process-restart durability. Run only those with -m e2e, or skip them with -m 'not e2e'.

Metadata

Release files for axor-backend 0.5.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 axor-backend 0.5.0
File Size Uploaded Provenance Actions
axor_backend-0.5.0.tar.gz 547.6 kB With provenance Details for axor_backend-0.5.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for axor-backend 0.5.0
File Interpreter ABI Platform Actions
axor_backend-0.5.0-py3-none-any.whl Python 3 none any Details for axor_backend-0.5.0-py3-none-any.whl

Total release size: 930.4 kB

Release files / axor_backend-0.5.0.tar.gz

Download URL axor_backend-0.5.0.tar.gz
Size 547.6 kB
Tags Source
SHA-256 checksum
How to use checksums
187cbed55ea5c70fe9113725e7c33700fdbf367a9e28bcd3c08560d44b7c63d5
BLAKE2b-256 checksum
How to use checksums
98e7293cefd594be2d3f5c2f9b081a880c1bec76c7032d3bcf6af2e7191b1f2d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Release files / axor_backend-0.5.0-py3-none-any.whl

Download URL axor_backend-0.5.0-py3-none-any.whl
Size 382.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c12c5657e80f66ec20433eb9df53d36b2e2b6e56bd69692f6de8e818393f991a
BLAKE2b-256 checksum
How to use checksums
74c7ceed10730ad87a6b6a0f6815139622d2096d5406b2ef9b85308eebf99356
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 23, 2026.

Transparency log

Security for axor-backend 0.5.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for axor_backend-0.5.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 Nov 23, 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