API reference
The public surface follows the full assurance flow: declare a contract, admit evidence, establish trust context, evaluate, retain and validate.
Core flow
contract = compile_service_contract(spec) batch = ingest_json_envelope(payload, adapter) decision = AssuranceEngine(...).evaluate( contract, batch.evidence, now=evaluation_time )
Core objects
ServiceContractService identity, controls, objectives, dependencies, dependency requirements and control-objective links.
EvidenceImmutable observation with identity, subject, assertion, value, time, kind, provenance, digest and metadata.
AuditDecisionTop-level state, component results, reasons, evidence ids, evaluation time and context.
AssuranceEngineDeterministic 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
| Value | Meaning |
|---|---|
| PASS | All required valid evidence satisfies the contract. |
| FAIL | Valid evidence contradicts an expected value or target. |
| UNKNOWN | A required observation, binding or trust condition is missing. |
| EXPIRED | Evidence violates its validity window. |
| CONFLICT | Relevant evidence disagrees. |
| NOT_TESTED | No evidence reached the evaluator. |
API families
API quickstart
Install, compile a contract, admit evidence, evaluate and retain.
Run the workflow →AssuranceEngine
Constructor policy, evaluate signature, outputs and strict modes.
Open engine reference →Deep module reference
Auth, time, replay, audit, standards, public data and validation modules.
Browse all modules →