sequentialist-core
The common layer of the sequentialist libraries: applications of sequential
statistics built on
sequential-analysis.
The statistics live in sequential-analysis; this package turns its
procedures into applications that run for months, survive crashes and can
be audited, and every conclusion they report names its guarantee
(exact, asymptotic, model, approximate or none), as the procedure
behind it states it.
| Library | Repository | Status |
|---|---|---|
sequentialist-core |
this one | 0.1.2: specs, the checkpointed engine, storage, audit log, reports, simulations |
sequentialist-ab, @sequentialist/ab-client (npm) |
sequentialist-ab | 0.1.0: the engine of an A/B testing platform |
sequentialist-quality |
sequentialist-quality | 0.1.0: sequential acceptance sampling of lots |
sequentialist-monitor |
sequentialist-monitor | planned: equipment, processes and energy |
sequentialist-markets |
sequentialist-markets | planned: risk, backtests, strategy decay |
sequentialist-clinical |
sequentialist-clinical | planned: trials, drug safety, quality of care |
sequentialist-release, sequentialist-mlops |
planned: canary releases, models in production |
The libraries are installed separately and share the sequentialist
namespace. None is on PyPI yet.
pip install sequentialist-core # Python 3.8+, depends only on sequential-analysis
pip install "sequentialist-core[yaml]" # specs in YAML as well as JSON
| Module | What it does |
|---|---|
spec |
Specs with declarative schemas: every error reported at once with its JSON pointer; a normal form (durations in seconds, timestamps in epoch seconds) and a spec id (SHA-256 of its canonical JSON); JSON Schema for other tools |
engine |
Tasks of several streams, each a Run of sequential-analysis: idempotent intake by (source, seq), a journal written before processing, checkpoints, replay after a crash, segments (a new run after an alarm or a window), commands of people, one writer per task, shards |
storage |
MemoryStorage, FileStorage (a directory of JSON files), SQLiteStorage; open_storage("files:...") |
audit |
The hash-chained log of decisions and actions, with the evidence behind each: procedure, guarantee, step, history digest; verify_audit |
report |
Reports in JSON and Markdown; a Finding cannot be made without its guarantee |
simulate |
Error rates of a whole pipeline by simulation, with Monte Carlo intervals |
replay |
Recorded data through the live code, on the data's own clock: the same audit log every time |
sinks |
Notifications of decisions: log, JSON lines, webhooks with retries |
privacy |
Pseudonyms for identifiers of people (HMAC-SHA-256 under the data owner's key) |
A library implements a Handler: it declares its streams and processes
records, the passing of time and commands. The engine does the rest:
from sequentialist.core import Engine, Handler, Record, SQLiteStorage, Stream
from sequential_analysis.procedures import MeanEDetector
class Watch(Handler):
def __init__(self, spec):
self.spec = spec
def streams(self):
return {"mean": Stream(MeanEDetector(m=self.spec["m"], arl=10000, direction="increase"))}
def on_record(self, record, ctx):
event = ctx.step("mean", {"x": record.data["x"]})
if event is not None and event.terminal:
ctx.record("decision", "alarm", basis={"t": event.t}, evidence=["mean"])
ctx.restart("mean", "alarm")
engine = Engine(SQLiteStorage("tasks.db"))
task = engine.create("line-3", "example.watch/1", {"m": 0.2}, Watch({"m": 0.2}))
task.ingest([Record("sensor-7", 0, {"x": 0.18}, time=1793491200.0)])
task.close()
task = engine.open("line-3", Watch) # restores the checkpoint, replays the journal
sequentialist tasks STORAGE lists stored tasks; sequentialist audit STORAGE TASK verifies and prints a task's audit log. Installed libraries
add their own subcommands.
Limits of this version. The whole state of a task is written at every checkpoint, so its size (and the cost of a checkpoint) grows with what the handler keeps; the A/B handler keeps one entry per unit. Locks protect a task within one host; across hosts the storage must be shared and locked by other means (Postgres storage is planned).
What the engine guarantees
- Idempotent intake: a record is identified by its source and sequence number; sending it again changes nothing.
- Nothing accepted is lost: records are journaled before they are processed; after a crash the task is restored from its checkpoint and the journal is replayed, and the result is the uninterrupted run bit for bit (tested on every storage, with crashes at every point that matters).
- An audit log of every decision, chained by SHA-256, with the
procedure, its guarantee, the step and the history digest of
sequential-analysis that each decision rests on (
sequentialist auditverifies it). - One writer per task, enforced by locks and version checks.
License
GNU AGPL v3 or a commercial license (COMMERCIAL.md). Contributions need the Contributor License Agreement; see CONTRIBUTING.md.
Contact: andrei@hobukob.ru, a.hobukob@gmail.com.
Metadata
Release files for sequentialist-core 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sequentialist_core-0.1.0.tar.gz | 56.0 kB | With provenance | Details for sequentialist_core-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sequentialist_core-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sequentialist_core-0.1.0-py3-none-any.whl |
Total release size: 113.8 kB
Release files / sequentialist_core-0.1.0.tar.gz
| Download URL | sequentialist_core-0.1.0.tar.gz |
|---|---|
| Size | 56.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ec9923e419bc297f85ab5c005ce7e388f8459b914ab95895cadb34e570d9a84
|
|
BLAKE2b-256 checksum How to use checksums |
5b6313a23ffe1b96adf1a1205486a49701082517d670512f2c99805cbdb79b43
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logRelease files / sequentialist_core-0.1.0-py3-none-any.whl
| Download URL | sequentialist_core-0.1.0-py3-none-any.whl |
|---|---|
| Size | 57.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ecfaf4a38995bc13a56eaca058396da125281ddc3214e2a06a4ab89ce337590f
|
|
BLAKE2b-256 checksum How to use checksums |
1d113869f387cbd609c5e34b2d4f1f69a47fc5ee090e2a5db1b44a0c9ab7809d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logSecurity for sequentialist-core 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for sequentialist_core-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 29, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.