Skip to main content

CIRISPersist

One embeddable Rust crate behind every stateful surface a CIRIS federation node needs — the signed reasoning-trace log, the hash-chained audit log, the memory graph, time-series telemetry, secrets-at-rest, federation trust state, and the CEG §19 holonomic / forever-memory substrate (fountain content, WholenessWitness, aggregation tiers). Postgres or SQLite; in-process via PyO3 or over HTTP.

Current: v8.5.0 · CIRISVerify pin v5.10.0 · CEG §19 / §19.7 (1.0).

What it is

CIRISPersist is the lowest stateful substrate above CIRISVerify. An agent or lens node links it as a library — pip install ciris-persist — and gets every storage surface it needs from one versioned API instead of ~11 hand-rolled services. The backend is chosen at Engine construction by DSN scheme (postgres://… or sqlite://…); every method works on both.

Substrates

Substrate Backs
trace ingest signed reasoning-trace event log + LLM-call log
cirisaudit hash-chained, per-tenant signed audit log (RFC 6962 Merkle)
cirisgraph memory nodes + edges — absorbs MemoryService / ConfigService
telemetry metric writes + TSDB rollup
secrets federated SecretsService — AES-256-GCM at rest, hardware-backed master key
cirisnode CIRISNodeCore federation-consensus substrate
fountain fountain-coded content primitive — signed manifest + N+K opaque symbols, tier eviction, authenticated partial reads (CEG §19.3)
wholeness_witness §19.1 WholenessWitness corpus — divergence detector that routes to the existing quorum-merge (CEG §19)
content_aggregation §19.7 forever-memory aggregation tier — N→1 composites, opaque aggregation_meta, descent-integrity (CEG §19.7)
sequence / occurrence atomic per-identity counters + endpoint-liveness registry
lens substrates tasks, thoughts, correlations, tickets, deferral reports, WA certs, …

Honest read

  • Postgres + SQLite at 100% parity. Every PyO3 method works on both backends — including the observability read API and the lens-derived schemas — so sovereign-mode (Pi / iOS) deployments are not second-class.
  • In-process cohabitation. Engine is a process-singleton: a CIRIS 3.0 process hosting the agent + NodeCore + LensCore shares one runtime, one pool, one identity — see docs/COHABITATION.md. The public ffi::pyo3::register(py, m) hook (#231) lets a host wheel re-export the whole persist surface into its own module — one .so, one PyO3 type registry (CIRISServer one-wheel).
  • Hardware-backed secrets. The secrets master key is derived — via CIRISVerify — from a seed sealed by the platform TPM / Keystore / Secure Enclave where one exists, with an honest software fallback where it does not.
  • Crypto goes through CIRISVerify. Persist never rolls its own — signing, verification, and key derivation route through ciris-verify-core / ciris-keyring (pinned v6.0.0, all six crates flipped in lockstep). The §19 holonomic gates (verify_witness, compare_witnesses, verify_aggregation_meta, verify_member_commitment, ejection_verdict, compute_merkle_root) are all verify-core calls — persist never re-rolls Merkle / preimage / signature logic.
  • Holonomic / forever-memory substrate (CEG §19 / §19.7, 1.0). Persist is the store + WholenessWitness-corpus owner + the divergence→quorum-merge router. A withdrawn content_id is hard-deleted regardless of rarity (revocation overrides rarity); a witness equivocation is retained and flagged hard_case:witness_equivocation, never reconciled. Memory fades along one pressure-driven descent but cannot be falsified — the signed envelope/manifest is the incorruptible anchor and partials stay authenticated against the signed per-symbol hashes.
  • Constitution alignment (0.1.5). v9.0.0 binds persist to the substrate clauses of the CIRIS Constitution 0.1.5. Federation-tier ingest is PQC-mandatory — every tier = federation write is hybrid-verified (Ed25519 + ML-DSA-65, Strict) at the admission gate, local-tier exempt (CC 5.3.2.4.3.1; BREAKING — classical-only federation rows are non-conformant). A node-only key's delegates_to may carry only infra:* scopes, never agency:* — "infrastructure must not have agency" enforced cryptographically (CC 4.4.3.4.3 / CC 1.13.5). Non-infra community membership for a node/agent key requires owner-binding to a human (CC 3.2 / CC 3.4.7.1), and community content is sealed under a per-community DEK rotated zero-window on member removal (CC 4.4.3.2.1 / 4.4.3.2.2, wrap_algorithm: v2 only). Privacy stays bounded — cohort scope hides content, not contact (CC 1.13.3.1; see MISSION.md §1.9). See docs/THREAT_MODEL.md §3.15 (AV-67..AV-72).
  • 1+4 lockdown. Persist adds zero structural primitives (CC 1.7 — the federation's one workhorse attestation primitive + four structural composers). Every substrate above rides scores + a subject_kind + the four composers (delegates_to / supersedes / withdraws / recants) — the constitution-alignment gates are admission logic over the existing federation_keys / attestation surface, not new wire shapes.
  • Deliberately not: no embedded graph DB engine (Postgres / SQLite recursive CTEs instead); not a daemon (a library, not a service); horizontal sharding is out of scope.

Performance & SOTA

Measured by the in-repo criterion suite (benches/ — eleven harnesses run per commit and published to the trend dashboard). Representative current numbers:

  • AES-256-GCM (secrets-at-rest) — ~9.5 GiB/s, via CIRISVerify v2.8.0.
  • Analytics — V042 covering indexes turn the scoring ReadEngine queries into index-only scans; cross_agent_divergence ~−42% vs. a raw table scan.
  • next_sequence — a durable, async-safe atomic counter increment ~10 µs (the SQLite UPSERT itself ~2 µs; the rest is the async wrapper).
  • Cold start — open + full migration run ~12 ms.
Capability SOTA peers CIRISPersist
Embedded persistence ORMs — sqlx, Diesel; per-service DBs one API, Postgres + SQLite at 100% parity — at parity
Audit log Trillian, Rekor, AWS QLDB RFC 6962 Merkle + post-quantum-signed tree heads — ahead of typical
Crypto-at-rest ring, OpenSSL (~3–6 GiB/s AES-GCM) ~9.5 GiB/s AES-256-GCM via CIRISVerify — ahead
Post-quantum mostly classical hybrid Ed25519 + ML-DSA-65 throughout; Full-mode traces + fountain manifests + aggregation meta reject classical-only at ingest (HNDL hard cut, CEG §10.1.5.1.1) — ahead
Analytics DuckDB, ClickHouse (columnar) row store + query-shaped covering indexes ("poor-man's column store") — at parity for the fixed query set; ~2–5× behind a columnar engine on raw ad-hoc scan
Horizontal scale sharded DB services a library, not a service — behind (deployment shape, not algorithm)

Ahead on post-quantum crypto and the Merkle audit log; at parity on embedded persistence and on analytics for its closed query set; the one real "behind" — horizontal scale — is a library-vs-service choice, not an algorithm gap.

Quick start

import ciris_persist as cp

engine = cp.Engine(dsn="sqlite://./agent.db", signing_key_id="agent-ed25519")
engine.register_consumer("my-adapter", ["cirisgraph"])
summary = engine.receive_and_persist(request_body_bytes)

Docs

Doc What
MISSION.md Mission-Driven Development alignment (Accord Meta-Goal M-1)
FSD/CIRIS_PERSIST.md Full functional spec
docs/COHABITATION.md In-process cohabitation model
docs/THREAT_MODEL.md Threat model (AV-* attack vectors)
docs/PUBLIC_SCHEMA_CONTRACT.md Stable schema contract
CHANGELOG.md Per-release history

License

AGPL-3.0-or-later. The persistence path is auditable line-by-line by design: closed-source forks are forbidden, which makes the federation primitive's audit story structurally enforceable, not merely socially expected.

Release files for ciris-persist 21.12.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for ciris-persist 21.12.0
File
ciris_persist-21.12.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
ciris_persist-21.12.0-cp310-abi3-manylinux_2_34_x86_64.whl CPython 3.10 abi3 Linux glibc 2.34+ x86-64 Details
ciris_persist-21.12.0-cp310-abi3-manylinux_2_34_aarch64.whl CPython 3.10 abi3 Linux glibc 2.34+ ARM64 Details
ciris_persist-21.12.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 49.3 MB

Release files / ciris_persist-21.12.0-cp310-abi3-win_amd64.whl

Download URL ciris_persist-21.12.0-cp310-abi3-win_amd64.whl
Size 14.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
a8ee3fefd8e6812496f58214732aee73958c1f91792520763d0ce1069180f699
BLAKE2b-256 checksum
How to use checksums
610859ebc3685c7d6b2a09f2b8528d51d4232fc3130f048fb816ecde34037403
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 28, 2026.

Transparency log

Release files / ciris_persist-21.12.0-cp310-abi3-manylinux_2_34_x86_64.whl

Download URL ciris_persist-21.12.0-cp310-abi3-manylinux_2_34_x86_64.whl
Size 12.0 MB
Tags CPython 3.10 Linux glibc 2.34+ x86-64 abi3
SHA-256 checksum
How to use checksums
25e22173c52a6cd8984e99fc3fda5952838e47269c15403c5c3e5d4fb69a3eae
BLAKE2b-256 checksum
How to use checksums
36bdf3b22de2e7ed4276edf849afb709d68edfeb15ee34992c87812017f64b4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 28, 2026.

Transparency log

Release files / ciris_persist-21.12.0-cp310-abi3-manylinux_2_34_aarch64.whl

Download URL ciris_persist-21.12.0-cp310-abi3-manylinux_2_34_aarch64.whl
Size 11.2 MB
Tags CPython 3.10 Linux glibc 2.34+ ARM64 abi3
SHA-256 checksum
How to use checksums
d8b7100dc7f1e95025fdd232e3a2ad6d0d6251a0c9a7351f938bd14c47dd7240
BLAKE2b-256 checksum
How to use checksums
a20173d20529f75a39482dba41c7b5d18f169bcddd5f62d24ff1aa8747995147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 28, 2026.

Transparency log

Release files / ciris_persist-21.12.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL ciris_persist-21.12.0-cp310-abi3-macosx_11_0_arm64.whl
Size 11.4 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a5cf1af2fbec75a951528a4655ef65efaa0c8b08f66cf700484d0f3d5bfa5561
BLAKE2b-256 checksum
How to use checksums
a08c5b0ac8b506f657b085cfe1ae5286a0fd8abe659575605c8fd59a9fd65ee2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.14

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 Jul 28, 2026.

Transparency log

Release history Release notifications | RSS feed

22.0.1

1 release file

22.0.0

4 release files

This release

21.12.0 This release

4 release files

21.9.0

4 release files

21.8.0

4 release files

21.7.0

4 release files

21.6.0

4 release files

21.5.0

4 release files

21.4.0

4 release files

21.3.0

4 release files

21.2.0

4 release files

21.1.0

4 release files

21.0.0

4 release files

20.1.0

2 release files

20.0.0

4 release files

19.1.1

4 release files

19.1.0

4 release files

19.0.0

1 release file

18.3.0

4 release files

18.2.0

4 release files

18.1.0

4 release files

18.0.0

4 release files

17.9.0

4 release files

17.8.0

4 release files

17.7.0

4 release files

17.6.0

4 release files

17.5.2

4 release files

17.5.1

4 release files

17.5.0

4 release files

17.4.0

4 release files

17.3.0

4 release files

17.2.0

4 release files

17.1.0

4 release files

17.0.2

4 release files

17.0.1

4 release files

17.0.0

4 release files

16.1.1

4 release files

16.1.0

4 release files

16.0.0

4 release files

15.1.2

4 release files

15.1.1

4 release files

15.1.0

4 release files

15.0.0

4 release files

14.1.0

4 release files

14.0.0

4 release files

13.9.1

4 release files

13.9.0

4 release files

13.8.0

4 release files

13.7.0

4 release files

13.6.2

2 release files

13.6.1

4 release files

13.6.0

4 release files

11.5.0

4 release files

11.4.0

4 release files

11.3.0

4 release files

11.2.0

4 release files

11.1.0

4 release files

11.0.1

4 release files

11.0.0

4 release files

10.7.0

4 release files

10.6.0

4 release files

10.5.0

4 release files

10.4.0

4 release files

10.3.0

4 release files

10.2.2

4 release files

10.2.1

4 release files

10.2.0

4 release files

10.1.2

4 release files

10.1.1

4 release files

10.1.0

4 release files

10.0.2

4 release files

10.0.1

4 release files

10.0.0

4 release files

9.11.0

4 release files

9.10.2

4 release files

9.10.1

4 release files

9.10.0

4 release files

9.9.1

4 release files

9.9.0

4 release files

9.8.0

4 release files

9.7.1

4 release files

9.7.0

4 release files

9.6.0

4 release files

9.5.0

4 release files

9.4.2

4 release files

9.4.1

4 release files

9.4.0

4 release files

9.3.1

4 release files

9.3.0

4 release files

9.2.2

4 release files

9.2.1

4 release files

9.2.0

4 release files

9.1.0

4 release files

9.0.3

4 release files

9.0.2

4 release files

9.0.1

4 release files

9.0.0

4 release files

8.8.0

4 release files

8.7.2

4 release files

8.7.1

4 release files

8.7.0

4 release files

8.6.0

4 release files

8.5.0

4 release files

8.4.0

4 release files

8.3.0

4 release files

8.2.0

4 release files

8.1.0

4 release files

8.0.0

4 release files

7.2.0

4 release files

7.1.0

4 release files

7.0.0

4 release files

6.8.2

4 release files

6.8.1

4 release files

6.7.2

4 release files

6.7.1

4 release files

6.7.0

4 release files

6.6.1

4 release files

6.6.0

4 release files

6.5.0

4 release files

6.4.0

4 release files

6.3.0

4 release files

6.2.0

4 release files

6.1.0

4 release files

6.0.1

4 release files

5.9.0

4 release files

5.8.0

4 release files

5.7.0

4 release files

5.6.0

4 release files

5.5.5

4 release files

5.5.4

4 release files

5.5.3

3 release files

5.5.2

3 release files

5.5.0

3 release files

5.4.0

3 release files

5.3.0

3 release files

5.2.0

3 release files

5.1.1

3 release files

5.0.0

3 release files

4.15.0

3 release files

4.14.0

3 release files

4.13.0

3 release files

4.12.1

3 release files

4.12.0

3 release files

4.9.0

3 release files

4.8.0

3 release files

4.7.0

3 release files

4.6.1

3 release files

4.6.0

3 release files

4.5.0

3 release files

4.4.0

3 release files

4.3.0

3 release files

4.1.0

3 release files

4.0.1

3 release files

3.9.0

3 release files

3.8.0

3 release files

3.7.0

3 release files

3.6.9

3 release files

3.6.8

3 release files

3.6.7

3 release files

3.6.5

3 release files

3.6.4

3 release files

3.6.3

3 release files

3.6.1

3 release files

3.5.2

3 release files

3.5.0

3 release files

3.4.3

3 release files

3.4.2

3 release files

3.4.1

3 release files

3.4.0

3 release files

3.3.1

3 release files

3.3.0

3 release files

3.2.0

3 release files

3.1.1

3 release files

3.1.0

3 release files

3.0.0

3 release files

2.13.0

3 release files

2.12.0

3 release files

2.11.0

3 release files

2.10.0

3 release files

2.9.0

3 release files

2.8.0

3 release files

2.7.0

3 release files

2.6.0

3 release files

2.5.0

3 release files

2.2.0

3 release files

2.1.1

3 release files

2.1.0

3 release files

2.0.7

3 release files

2.0.6

3 release files

2.0.5

3 release files

2.0.4

6 release files

2.0.3

3 release files

2.0.2

3 release files

2.0.1

3 release files

1.13.0

3 release files

1.12.0

3 release files

1.11.1

3 release files

1.11.0

3 release files

1.10.3

3 release files

1.10.2

3 release files

1.10.1

3 release files

1.10.0

3 release files

1.9.0

3 release files

1.8.1

3 release files

1.8.0

3 release files

1.7.6

3 release files

1.7.4

3 release files

1.7.3

3 release files

1.7.2

3 release files

1.6.7

3 release files

1.6.6

3 release files

1.6.5

3 release files

1.6.4

3 release files

1.6.3

3 release files

1.6.2

3 release files

1.6.1

3 release files

1.6.0

3 release files

1.5.25

3 release files

1.5.23

3 release files

1.5.22

3 release files

1.5.21

3 release files

1.5.20

3 release files

1.5.19

3 release files

1.5.18

3 release files

1.5.17

3 release files

1.5.16

3 release files

1.5.15

3 release files

1.5.14

3 release files

1.5.13

3 release files

1.5.12

3 release files

1.5.11

3 release files

1.5.10

3 release files

1.5.9

3 release files

1.5.8

3 release files

1.5.7

3 release files

1.5.6

3 release files

1.5.5

3 release files

1.5.4

3 release files

1.5.3

3 release files

1.5.2

3 release files

1.5.1

3 release files

1.5.0

3 release files

1.4.0

3 release files

1.3.3

3 release files

1.3.1

3 release files

1.3.0

3 release files

1.2.1

3 release files

1.1.2

3 release files

1.1.1

3 release files

1.0.3

3 release files

0.9.4

3 release files

0.9.3

3 release files

0.9.2

3 release files

0.9.1

3 release files

0.9.0

3 release files

0.8.3

3 release files

0.8.2

3 release files

0.8.1

3 release files

0.8.0

3 release files

0.7.5

3 release files

0.7.4

3 release files

0.7.3

3 release files

0.7.1

3 release files

0.7.0

3 release files

0.6.1

3 release files

0.6.0

3 release files

0.5.8

3 release files

0.5.4

3 release files

0.5.3

3 release files

0.5.0

3 release files

0.4.7

3 release files

0.4.6

3 release files

0.4.5

3 release files

0.4.4

3 release files

0.4.2

3 release files

0.4.1

3 release files

0.4.0

3 release files

0.3.6

3 release files

0.3.5

3 release files

0.3.4

3 release files

0.3.3

3 release files

0.3.2

3 release files

0.3.1

3 release files

0.3.0

3 release files

0.2.4

3 release files

0.2.3

3 release files

0.2.2

3 release files

0.2.1

3 release files

0.2.0

3 release files

0.1.12

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page