Skip to main content

Tenant SDK for the AuspexAI volunteer compute network

Project description

AuspexAI Tenant SDK

CI

The researcher surface of the AuspexAI volunteer compute network: everything a research tenant needs to author an experiment, submit it to the live coordinator, drive it to convergence, and walk away holding a cryptographically verified copy of the data — receipts, a Rekor-anchored attestation, and a signed custody record included.

Python ≥ 3.11, Apache-2.0. Install from a GitHub release or git:

pip install "auspexai-tenant @ git+https://github.com/auspexai/tenant-sdk.git@v0.5.1"
# with the analysis surface (pandas/Parquet evidence loader):
pip install "auspexai-tenant[analysis] @ git+https://github.com/auspexai/tenant-sdk.git@v0.5.1"

New researcher? The full front door — install, apply for a tenant via auspexai-tenant apply (GitHub device flow, no key material to paste), and your first verified run — is ONBOARDING.md.

The researcher lifecycle

The SDK covers the whole arc. Each stage works today against the live coordinator (https://coord.auspexai.network).

1. Author

  • Published wire contracts (JSON Schema + CDDL, immutable per the honor-forever versioning policy) for manifests, work units, executor output, results, reducer decisions, and receipts — with strict Pydantic models for all of them. Tenants may consume the SDK or implement the published contract independently.
  • ExecutorHarness — wrap your science in a run_one(unit, models_dir) -> dict function and the harness handles the worker invocation contract (a working tenant is ~30 lines; see examples/synthetic_tenant/).
  • ReducerHarness — same pattern for custom reduction.
  • auspexai_tenant/lite.py — a zero-dependency, stdlib-only, Python 3.10-safe mirror of the harness, designed to be vendored into your package so your executor runs in the worker sandbox without installing the SDK there. Includes InferenceClient for LLM-inference tenants: deterministic chat against the model the worker serves over a sandbox-local socket (temperature pinned to 0 by the worker; seed/num_predict/num_ctx whitelisted).
  • Static work-unit packing (tar_writer/tar_reader) and package-digest helpers that match the worker's verification byte-for-byte.

2. Sign & submit

  • Ed25519 tenant keypair (key generate / key pubkey); every API call is signed (RFC 9421 HTTP message signatures) — no passwords, no tokens.
  • manifest validatemanifest signmanifest upload. Manifests are immutable once submitted (manifest-swap protection: work units bind the manifest hash); a maintainer approves the experiment before any work is scheduled.
  • Demand signals: model request/model catalog (ask the network for a model; volunteers elect to host it) and software request/software list (ask for a worker-baseline capability; tracked through an assessed, audited review pipeline).

3. Drive

  • run_until — the autonomic driver: submit a round, fold results into a checkpointable aggregate (Counter/Mean/Histogram or your own) as they arrive, test your convergence condition, generate the next batch. Resumable via a round-atomic journal; wakes on an SSE doorbell instead of hot-polling; pluggable stall policy (abort / finalize-partial / keep waiting).
  • CLI: experiment run <id> --driver yourmodule:build drives a whole adaptive experiment headlessly. experiment reduce batch-reduces a completed consensus set.

4. Watch

  • experiment list / status / results (consensus by default, --raw for all replicas) / receipts, plus an anonymized activity rollup (contributor counts, replication fill — never volunteer identities).

5. Verify — the part you can't get from a rented GPU

Every completed experiment yields a result-set attestation: a Merkle root over the per-unit consensus set, COSE-signed by the network's published key and anchored in the public Sigstore Rekor transparency log. The SDK verifies all of it independently:

  • experiment attestation --check-rekor --verify-against-results — recompute the root from your own pulled results, check the signature against the published signer roster, and confirm public log inclusion.
  • v1 attestations additionally bind each work unit's input hash into the leaves: "result R was produced from parameters P" is cryptography, not a database row.
  • Per-result worker signatures — the only signatures in the chain not made by the coordinator — verify from the bundle alone.

6. Take custody & analyze

  • experiment export --verify downloads the evidence bundle — results + work-unit inputs + receipts + attestation + Rekor proof + a signed proof-of-transfer — and runs the full verification chain on receipt. Collection transfers data custody to you: the network can re-verify your bundle forever, but after age-off it never re-delivers. Your verified copy is the durable copy.
  • bundle verify <file> — re-verify a saved bundle any time, offline, with no coordinator. Hand the file and the command to a reviewer.
  • evidence.load_verified(bundle) — run the chain, then get a tidy pandas DataFrame (inputs as input.* columns, outputs as output.*). There is deliberately no force flag: analysis begins from a verified dataset or it doesn't begin. bundle table <file> -o results.parquet is the no-Python path to Excel/Tableau/R. See examples/evidence_loader.ipynb.

CLI quick reference

Group What it does
key Ed25519 tenant keypair (generate, pubkey)
manifest validate, sign, upload an experiment manifest
experiment list, status, run (autonomic driver), results, receipts, attestation, reduce, export
bundle verify a saved evidence bundle offline; write it as a CSV/Parquet table
model network model catalog + BYOM model requests
software worker-capability requests (the code-plane demand board)
receipts decode/pretty-print CBOR receipts

Every command has --help with the full contract.

Examples

Status

Closed beta. The coordinator is live and the first tenant's experiments run on real volunteer hardware end-to-end (work-unit dispatch, consensus, receipts, live Rekor anchoring, evidence-bundle custody). Tenant registration is maintainer-gated during the beta — there is no self-serve signup yet. Interested in running research on the network? Email contact@auspexai.network.

Scope & license boundary

The Tenant SDK is the contract between tenant research code and the AuspexAI platform. It is intentionally a thin client over a published data + subprocess contract: tenants consume the SDK's stable surface (or implement the published contract independently); the AGPL-3.0 platform (auspexai/platform, auspexai/worker) runs on the other side of that contract. Tenant project modules authoring against the SDK are not derivative works of the AGPL platform — the split follows the published-contract pattern used by MongoDB drivers, Grafana plugins, and Sentry SDKs (copyleft on the server, permissive on the SDK). See the AuspexAI Principles & Scope §5.2 for the structural argument.

Apache-2.0 for the SDK. Tenants license their own research code however suits them.

Governance & policies

  • Governance — roles, decision rules, recruitment, conflict of interest
  • Code of Conduct — community standards, reporting, escalation pathway
  • Contributing — DCO sign-off, PR workflow, RFC requirement for substantial changes
  • Research Ethics Policy — what research can run on the network and how it's reviewed
  • Tenant Terms — including the results-custody model this SDK implements

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

auspexai_tenant-0.5.5.tar.gz (123.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

auspexai_tenant-0.5.5-py3-none-any.whl (97.2 kB view details)

Uploaded Python 3

File details

Details for the file auspexai_tenant-0.5.5.tar.gz.

File metadata

  • Download URL: auspexai_tenant-0.5.5.tar.gz
  • Upload date:
  • Size: 123.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for auspexai_tenant-0.5.5.tar.gz
Algorithm Hash digest
SHA256 769c0c8c223bf41d8315493cfe8c034cfbd1309932388df3a6f012509fb2df92
MD5 12358508d78f11cc398875e84fdb6482
BLAKE2b-256 d1cf713f1559a0e6832d5168b9395051e92469fa8fc9da4bc349ab782f229727

See more details on using hashes here.

Provenance

The following attestation bundles were made for auspexai_tenant-0.5.5.tar.gz:

Publisher: release.yml on auspexai/tenant-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file auspexai_tenant-0.5.5-py3-none-any.whl.

File metadata

  • Download URL: auspexai_tenant-0.5.5-py3-none-any.whl
  • Upload date:
  • Size: 97.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for auspexai_tenant-0.5.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c65d8a14c889d128f205503de626e9bdecdd594c2fdd31d1c2a2cad3b7ee2bca
MD5 02a25410ff0ec7f3d93c1eb31b35e803
BLAKE2b-256 6715ba6d88bf15f3cb7fbf01ee62495c9f840ce689667da3930aff39670d049b

See more details on using hashes here.

Provenance

The following attestation bundles were made for auspexai_tenant-0.5.5-py3-none-any.whl:

Publisher: release.yml on auspexai/tenant-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page