Runnable Quickstarts
Four end-to-end workflows covering machine enrolment, manifest divergence checks, EU Machinery Regulation (2023/1230) Annex III 1.1.9 evidence packs, and CRA Article 14 human-gated case handling. Each quickstart runs in your browser against the committed synthetic sandbox snapshot (/sandbox/snapshot.json) and provides exact local CLI and HTTP API commands.
For every endpoint schema and generated HTTP error code, see /docs/api-reference. For the step-by-step offline enrolment kit guide, see /docs/getting-started.
[SANDBOX] Browser runner disclosure: Sample data: invented machines, generated by assurance report demo. Nothing here is a customer. Every in-browser run below reads /sandbox/snapshot.json (and /sandbox/sample-evidence-pack.zip) from this static site with zero hosted API calls. Copy the CLI or curl commands to run against your own local ledger or self-hosted FastAPI instance.
Enrol machine & safety-software manifest
Declare a physical unit identity, seal its baseline Annex III safety-software manifest, and inspect item provenance ceilings.
API routes: POST /v1/machinery/enrolPOST /v1/machinery/manifest
# 1. Enrol a machine unit (named human declaration) locally python -m assurance machinery enrol \ --ledger ./plant-ledger.sqlite \ --manufacturer Grimaldi --model AR-7 --serial 0501 \ --site "Plant 7, Cell A" --actor "Elena Rossi" # 2. Seal the Annex III 1.1.9 safety-software manifest python -m assurance machinery record-manifest \ --ledger ./plant-ledger.sqlite \ --manifest ./manifest-0501.json --actor "Elena Rossi"
curl -sS -X POST "http://127.0.0.1:8000/v1/machinery/enrol" \
-H "X-API-Key: $ASSURANCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"manufacturer": "Grimaldi",
"model": "AR-7",
"serial": "0501",
"site": "Plant 7, Cell A",
"actor": "Elena Rossi"
}'Diff manifests & check safety coverage
Compare two machine manifests by SHA-256 content hash and evaluate supplier advisory impact without version-range guesswork.
API routes: POST /v1/machinery/diffPOST /v1/check/machine
# Stateless manifest diff (no account or hosted API required) python -m assurance machinery diff \ ./manifest-baseline.json ./manifest-observed.json # Stateless one-machine advisory & configuration check python -m assurance check machine \ --manifest ./manifest-0501.json \ --advisory ./advisory-ctrl-2026-11.json
curl -sS -X POST "http://127.0.0.1:8000/v1/machinery/diff" \
-H "Content-Type: application/json" \
-d '{
"before": {"manifest_id": "MAN-0501-2026-09"},
"after": {"manifest_id": "MAN-0412-2026-09"}
}'Build & verify EU 2023/1230 Annex III 1.1.9 Evidence Pack
Assemble a deterministic ZIP archive + HTML cover for one machine and verify its SHA-256 digest and archive entries.
API routes: POST /v1/machinery/packPOST /v1/evidence/verify
# Assemble deterministic Annex III 1.1.9 evidence pack offline python -m assurance machinery pack \ --ledger ./plant-ledger.sqlite \ --manifest ./manifest-0501.json \ --out ./pack-0501.zip # Re-check the machine record offline python -m assurance machinery check ./manifest-0501.json
curl -sS -X POST "http://127.0.0.1:8000/v1/machinery/pack" \
-H "X-API-Key: $ASSURANCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"machine": "Grimaldi/AR-7#0501"}' \
--output pack-0501.zipOpen CRA Article 14 case & verify ledger chain offline
Draft an advisory/CRA case, enforce the named human decider gate before closure or awareness, and verify the hash chain.
API routes: POST /v1/cases/{case_id}/signalPOST /v1/cases/{case_id}/awarenessGET /v1/ledger/verify
# Software drafts a case from an advisory impact report python -m assurance change assess-advisory \ --ledger ./plant-ledger.sqlite \ --impact ./impact-ctrl-2026-11.json --actor "watch-bot" # Named human decider records a disposition (never an automated agent) python -m assurance change decide \ --ledger ./plant-ledger.sqlite \ --case-id CASE-001 --disposition defer \ --actor "Marco Bianchi" --reason "Awaiting supplier firmware patch" # Verify the exported ledger chain offline (zero network access) python -m assurance evidence verify ./case-export.json
# Account key opens signal; decider operator key required for awareness / closure
curl -sS -X POST "http://127.0.0.1:8000/v1/cases/CRA-2026-01/awareness" \
-H "X-API-Key: $DECIDER_OPERATOR_KEY" \
-H "Content-Type: application/json" \
-d '{
"established_at": "2026-11-01T09:30:00Z",
"assessment_started_at": "2026-11-01T08:15:00Z",
"assessment_completed_at": "2026-11-01T09:30:00Z",
"reasoning": "Confirmed active exploitation on unit firmware 3.8.2",
"actor": {"identifier": "Marco Bianchi", "role": "decider", "kind": "person"}
}'