Skip to main content

CRI-CORE — Deterministic structural enforcement kernel for governed state transitions.

Project description


title: "CRI-CORE — Deterministic Enforcement Kernel" filetype: "documentation" type: "repository-overview" domain: "enforcement" version: "0.7.1" doi: "TBD" status: "Active" created: "2026-02-19" updated: "2026-03-10"

author: name: "Shawn C. Wright" email: "swright@waveframelabs.org" orcid: "https://orcid.org/0009-0006-6043-9295"

maintainer: name: "Waveframe Labs" url: "https://waveframelabs.org"

license: "Apache-2.0"

copyright: holder: "Waveframe Labs" year: "2026"

ai_assisted: "partial"

dependencies: []

anchors:

  • "CRI-CORE v0.7.1"
  • "Deterministic Enforcement Kernel"

CRI-CORE

CRI-CORE v0.7.1 --- Deterministic Enforcement Kernel

CRI-CORE is a deterministic structural enforcement engine for governed state transitions.

It evaluates a run directory against explicit structural, authority, integrity, binding, seal, and publication constraints.

The kernel does not interpret meaning.

It evaluates structure and invariants only.


Installation

Install from PyPI:

pip install cricore

Requires Python 3.10+.


Minimal Usage

The supported public entrypoint is:

from cricore.enforcement.execution import run_enforcement_pipeline

Example:

from cricore.enforcement.execution import run_enforcement_pipeline

results, commit_allowed = run_enforcement_pipeline(
    run_path=".",
    expected_contract_version="0.3.0"
)

The function returns:

(results: List[StageResult], commit_allowed: bool)

commit_allowed is the sole commit authorization signal.


Runtime Input Contracts

CRI-CORE evaluates deterministic run artifacts and explicit mutationrequests.

The kernel relies on two structured input contracts:

  • Run artifact contract (run directory structure)
  • Mutation proposal object (canonical proposal envelope)

Proposal objects are validated against the canonical proposal schema before enforcement.

Compiled governance contracts may be used by external systems to construct proposal objects, but CRI-CORE does not interpret governance policy directly.


Core Model

Exploration (high velocity, non-deterministic)
    →
Deterministic structural gate (CRI-CORE)
    →
Governed state mutation

The kernel ensures that only structurally valid and cryptographically sealed runs are permitted to mutate governed state.


Enforcement Pipeline (v0.7.0)

Canonical stage order:

  1. run-structure
  2. structure-contract-version-gate
  3. independence
  4. integrity
  5. integrity-finalization
  6. publication
  7. publication-commit

The pipeline is deterministic and ordered.


Contract-Version Behavior

CRI-CORE enforces versioned structural guarantees:

For contract_version < 0.3.0:

  • Structural validation - Independence enforcement
  • Integrity manifest verification

For contract_version ≥ 0.3.0:

  • binding.json required
  • SEAL.json required
  • Strict cryptographic seal validation
  • Immutable artifact boundary enforcement

Enforcement meaning is isolated per declared contract version.
Historical runs are validated under their declared version.


Independence Model

The kernel enforces structural role separation:

  • Explicit actor identities
  • Optional declared role requirements (required_roles)
  • Strict prohibition on multi-role identity when roles are required
  • Explicit override pathway (recorded, never implicit)

The kernel evaluates identity structure only.
It does not evaluate competence or review quality.


Cryptographic Guarantees

Finalized runs must include:

  • Deterministic SHA256 manifest
  • Payload archive
  • Structural binding artifact
  • Deterministic SEAL.json

The seal covers:

  • All run files (deterministic ordering)
  • Binding artifact
  • Manifest hash
  • Payload hash

Any mutation changes the seal hash.

The seal provides tamper evidence.
It is not a signature.


Atomic Commit Semantics

CRI-CORE does not mutate state.

It emits a deterministic authorization decision:

commit_allowed = publication_commit_stage.passed

The caller decides whether to mutate.

The kernel centralizes the commit decision.
It does not enforce it outside its invocation boundary.


What CRI-CORE Does Not Do

CRI-CORE does not:

  • Interpret lifecycle semantics
  • Judge correctness of domain objects
  • Evaluate epistemic sufficiency
  • Enforce governance policy meaning
  • Perform distributed consensus
  • Prevent bypass outside invocation

It is a deterministic structural gate only.


Design Principles

  • Deterministic evaluation
  • No network calls
  • No model calls
  • No semantic inference
  • Opaque reference handling
  • Versioned enforcement meaning
  • Strict immutability after finalization

Intended Use

CRI-CORE is designed to sit beneath:

  • Workflow engines
  • CI pipelines
  • Agent execution runtimes
  • Domain governance systems

It provides:

  • Structural admissibility validation
  • Cryptographic immutability guarantees
  • Centralized commit authorization

It is domain-agnostic.


Status

v0.7.1 introduces explicit proposal and contract interface schemas, completing the runtime input hardening phase.

CRI-CORE now operates as a deterministic governed mutation runtime with explicit structural input contracts.

The enforcement interface is stable within the 0.x series but may evolve prior to 1.0.


© 2025 Waveframe Labs — Independent Open-Science Research Entity • Governed under the Aurora Research Initiative (ARI)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cricore-0.7.1.tar.gz (22.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cricore-0.7.1-py3-none-any.whl (35.4 kB view details)

Uploaded Python 3

File details

Details for the file cricore-0.7.1.tar.gz.

File metadata

  • Download URL: cricore-0.7.1.tar.gz
  • Upload date:
  • Size: 22.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cricore-0.7.1.tar.gz
Algorithm Hash digest
SHA256 dda50503bb6b9a9fde5bb43b2286821d1df79c331086fc4d651935063c12df11
MD5 366a85efbe14be99e8fa3bd82327d835
BLAKE2b-256 d19db5f53f4ec4b73ef4054c5a8ee9035233b164e53e4820b8936e8c01720bb7

See more details on using hashes here.

File details

Details for the file cricore-0.7.1-py3-none-any.whl.

File metadata

  • Download URL: cricore-0.7.1-py3-none-any.whl
  • Upload date:
  • Size: 35.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for cricore-0.7.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e42d09704183af18f5f98a07964a43b9eb83fe471420875e72364472c6369f62
MD5 556845499fc58b04cc6e2cdcbdc47923
BLAKE2b-256 6cad9c6c82801c850489a50221ed345521f881eee0d1feca4922dba5a66c2eec

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page