API reference

The public surface follows the full assurance flow: declare a contract, admit evidence, establish trust context, evaluate, retain and validate.

Choose your entry point. Use the quickstart to run one complete workflow, then use the deep module reference to understand all 23 package modules.

Core flow

contract = compile_service_contract(spec)
batch = ingest_json_envelope(payload, adapter)
decision = AssuranceEngine(...).evaluate(
    contract, batch.evidence, now=evaluation_time
)

Core objects

ServiceContract

Service identity, controls, objectives, dependencies, dependency requirements and control-objective links.

Evidence

Immutable observation with identity, subject, assertion, value, time, kind, provenance, digest and metadata.

AuditDecision

Top-level state, component results, reasons, evidence ids, evaluation time and context.

AssuranceEngine

Deterministic evaluator with explicit strictness controls.

Admission functions

compile_service_contract(spec)

Validate and normalize a mapping into typed contract semantics.

ingest_json_envelope(payload, adapter)

Admit one bounded, versioned JSON envelope.

ingest_jsonl(payload, adapter)

Parse newline-delimited records through the same strict envelope path.

ingest_otlp_json(payload, adapter)

Map the explicit assurance OTLP log profile into evidence.

fetch_otlp_json(url, adapter, ssl_context=...)

Fetch OTLP/HTTP JSON through an explicit HTTPS context with size and timeout bounds.

Decision states

ValueMeaning
PASSAll required valid evidence satisfies the contract.
FAILValid evidence contradicts an expected value or target.
UNKNOWNA required observation, binding or trust condition is missing.
EXPIREDEvidence violates its validity window.
CONFLICTRelevant evidence disagrees.
NOT_TESTEDNo evidence reached the evaluator.

API families