Skip to content

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.

  1. Member gate. Annual membership is $100.00. Access to datasets and compute is gated by require_active_member (in core/security.py), which checks the member exists and the membership is active before any broker action proceeds.

  2. Dataset broker. GET /datasets lists member-access datasets; GET /datasets/{id} returns one; POST /datasets/{id}/access records member access and mints a dataset_access receipt, returning the object_uri to the active member. See API Contracts.

  3. Server-side compute pricing. Pricing constants live in core/pricing.py and are applied server-side — the router never trusts a caller-supplied rate. Two SKUs are priced: rtx6000_blackwell_96gb at $5/hr and rog_astral_5090_32gb at $2/hr. A quote of 2h on the RTX 6000 = $10; 3h on the 5090 = $6.

  4. 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.

  5. Local JSONL hash-chained receipts. Every billable/lifecycle event writes a receipt line to data/receipts/YYYY-MM-DD.receipts.jsonl with a checksum_sha256 over canonical JSON. Receipts are hash-chained — each carries a seq and a parent_hash linking it to the prior receipt (genesis = 64 zeros), mirroring the DefendableCloud chain (the router keeps one house-wide chain). GET /receipts/verify (or defendable-router verify-ledger) recomputes and validates the whole chain. See Receipt Capture.


🐝 Operator-grade · books and records · to the shed.