DefendableRouter · Overview
DefendableRouter is the Router track of the DefendableOS architecture — the member-only broker that sits between the people who pay annual membership and the sovereign GPU fleet + curated datasets they get access to. Every billable and lifecycle event mints a checksummed receipt to a local JSONL ledger.
The v0.1 backend is FastAPI + SQLite + a Typer CLI + a local JSONL receipt ledger. Postgres, Alembic, Stripe, and object-storage are roadmap, not built.
The five real subsystems
Section titled “The five real subsystems”-
Member gate. Annual membership is $100.00. Access to datasets and compute is gated by
require_active_member(incore/security.py), which checks the member exists and the membership is active before any broker action proceeds. -
Dataset broker.
GET /datasetslists member-access datasets;GET /datasets/{id}returns one;POST /datasets/{id}/accessrecords member access and mints adataset_accessreceipt, returning theobject_urito the active member. See API Contracts. -
Server-side compute pricing. Pricing constants live in
core/pricing.pyand are applied server-side — the router never trusts a caller-supplied rate. Two SKUs are priced:rtx6000_blackwell_96gbat $5/hr androg_astral_5090_32gbat $2/hr. A quote of 2h on the RTX 6000 = $10; 3h on the 5090 = $6. -
Job router. Six job types (
inference,fine_tune,eval,dataset_build,embedding,batch) and six statuses (queued,leased,running,completed,failed,canceled) move a job through its lifecycle, including the v0.2 worker lease flow. See Routing Model. -
Local JSONL hash-chained receipts. Every billable/lifecycle event writes a receipt line to
data/receipts/YYYY-MM-DD.receipts.jsonlwith achecksum_sha256over canonical JSON. Receipts are hash-chained — each carries aseqand aparent_hashlinking it to the prior receipt (genesis = 64 zeros), mirroring the DefendableCloud chain (the router keeps one house-wide chain).GET /receipts/verify(ordefendable-router verify-ledger) recomputes and validates the whole chain. See Receipt Capture.
Where to go next
Section titled “Where to go next”- Routing Model — job types, statuses, and the v0.2 lease lifecycle.
- API Contracts — the eight real route groups, with request/response shapes.
- Receipt Capture — the local JSONL ledger and checksum algorithm.
- Worker Contract (v0.2) — the only authenticated integration surface.
- Identity & Auth — member gating, worker bearer tokens, lease ownership.
- Storage (v0.1) — local SQLite + JSONL persistence.
🐝 Operator-grade · books and records · to the shed.