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'.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file axor_backend-0.2.0.tar.gz.
File metadata
- Download URL: axor_backend-0.2.0.tar.gz
- Upload date:
- Size: 378.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d69dea7f81c16d440c583f13f809489743ebb162b437be50f19f296d1abf720a
|
|
| MD5 |
aab87771ba6ff224a3e8ce0819aa8b01
|
|
| BLAKE2b-256 |
bcc8023646fccec1989b7e007bf714a61543942499586fb103e26726b448ee4a
|
Provenance
The following attestation bundles were made for axor_backend-0.2.0.tar.gz:
Publisher:
release.yml on Bucha11/axor-control-plane
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axor_backend-0.2.0.tar.gz -
Subject digest:
d69dea7f81c16d440c583f13f809489743ebb162b437be50f19f296d1abf720a - Sigstore transparency entry: 2858036173
- Sigstore integration time:
-
Permalink:
Bucha11/axor-control-plane@c85d841a6f6f8234eaf81174cdae1e2902e5b1f7 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Bucha11
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c85d841a6f6f8234eaf81174cdae1e2902e5b1f7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file axor_backend-0.2.0-py3-none-any.whl.
File metadata
- Download URL: axor_backend-0.2.0-py3-none-any.whl
- Upload date:
- Size: 245.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2cd659dad84839305dc2b6622cf52e1b644de927c0eae31a39d7af217d081ee
|
|
| MD5 |
d1f3d203953d881d8450016a922cac21
|
|
| BLAKE2b-256 |
5358a3f1e30d0371c3187697cb6b95a1c5e19d85c2453e2a4fab075def5214d2
|
Provenance
The following attestation bundles were made for axor_backend-0.2.0-py3-none-any.whl:
Publisher:
release.yml on Bucha11/axor-control-plane
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
axor_backend-0.2.0-py3-none-any.whl -
Subject digest:
b2cd659dad84839305dc2b6622cf52e1b644de927c0eae31a39d7af217d081ee - Sigstore transparency entry: 2858036517
- Sigstore integration time:
-
Permalink:
Bucha11/axor-control-plane@c85d841a6f6f8234eaf81174cdae1e2902e5b1f7 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/Bucha11
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c85d841a6f6f8234eaf81174cdae1e2902e5b1f7 -
Trigger Event:
push
-
Statement type: