Documentation Index
Fetch the complete documentation index at: https://verdictweight.dev/llms.txt
Use this file to discover all available pages before exploring further.
When to use a pipeline
UsePipeline when:
- You are scoring decisions in a long-running service.
- You need streaming or batched throughput rather than one-call-at-a-time scoring.
- You want a single point of audit-chain management across many requests.
Basic streaming pipeline
Batched pipeline
Concurrency model
The framework supports three concurrency modes. Choose based on your deployment:Single-threaded
One scorer, one event loop. Simplest. Recommended for low-volume or audit-heavy deployments.
Multi-process
One scorer per process, separate audit logs reconciled offline. Recommended for high-throughput deployments.
Async
Async scorer with cooperative event loop. I/O-bound stream evaluation overlaps cleanly.
Production checklist
Before promoting a pipeline to production, verify:Audit log path is durable
The configured log path lives on a durable, replicated, append-only-friendly filesystem.
Verification is run on startup
The pipeline calls
audit_chain.verify() on startup and refuses to run if it fails.Kill-switch handling is wired
Callers handle
outcome == "abort" distinctly from normal flow. Aborts must not be silently retried.Calibration map is current
The calibration map has been refitted on validation data representative of the deployment domain. See Calibration.
Error handling
The pipeline raises a small set of well-defined exception types. Catch them at the boundary appropriate to your application:| Exception | When raised |
|---|---|
EvidenceError | The evidence payload was malformed or missing required keys. |
ConfigError | The configuration is invalid or has changed since startup hash. |
ChainIntegrityError | The audit chain failed verification. The kill switch will be raised. |
FrameworkAbort | The kill switch raised by Stream 8. Do not catch and retry. |
AbstainOutcome | Optional; only raised if the pipeline is configured to surface abstention as exception. |