Deterministic governance policy compiler for CRI-CORE compiled contracts.
Project description
title: "CRI-CORE Contract Compiler — Repository Overview" filetype: "documentation" type: "overview" domain: "governance-tooling" version: "0.1.0" doi: "TBD-0.1.0" status: "Active" created: "2026-03-11" updated: "2026-03-11"
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"
ai_assisted: "partial"
CRI-CORE Contract Compiler
The CRI-CORE Contract Compiler converts human-authored governance definitions into canonical compiled contracts used by the CRI-CORE enforcement kernel.
Its purpose is to bridge governance design and runtime enforcement by producing deterministic, machine-readable contract artifacts.
The compiler does not execute governance logic and does not participate in runtime validation. It exists purely to compile governance structure into a form that can be consumed by enforcement systems.
Installation
Install from PyPI:
pip install cricore-contract-compiler
Requires Python 3.10 or later.
CLI Usage
Compile a governance policy into a compiled contract artifact:
cricore-compile-policy policy.json compiled_contract.json
This produces a deterministic compiled contract artifact suitable for use by CRI-CORE.
Python Usage
The compiler can also be used programmatically.
from compiler.compile_policy import compile_policy
policy = {
"contract_id": "finance-policy",
"contract_version": "0.1.0"
}
compiled_contract = compile_policy(policy)
Position in the Governance Pipeline
The compiler sits upstream of the runtime enforcement system.
Governance Policy
↓
Contract Compiler
↓
Compiled Contract
↓
Proposal Wrapper
↓
CRI-CORE Kernel
↓
Commit Decision
The compiled contract defines the structural governance requirements that must be satisfied before a state mutation can be committed.
Responsibilities
The compiler is responsible for producing canonical contract artifacts that define:
- Required roles
- Authority separation constraints
- Required governance artifacts
- Allowed lifecycle transitions
- Contract identity and versioning
- Contract hashing for reproducibility
The output of the compiler is a deterministic contract artifact that can be referenced during runtime enforcement.
Non-Responsibilities
The compiler does not:
- Execute governance validation
- Interpret policy semantics
- Perform runtime decision logic
- Enforce governance rules
All enforcement is handled by the CRI-CORE kernel.
Relationship to CRI-CORE
CRI-CORE performs structural admissibility validation during runtime.
The compiler provides the contract artifacts that define the structural governance requirements evaluated by the kernel.
Project Status
Early development.
The initial implementation focuses on establishing a minimal contract compilation pipeline and defining the canonical compiled contract format used by CRI-CORE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cricore_contract_compiler-0.1.0.tar.gz.
File metadata
- Download URL: cricore_contract_compiler-0.1.0.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
792f9c4ef7c5c302079b1a3fd6a52d7398406181c132dbcb23e173613e7a1688
|
|
| MD5 |
596e3864a86c6ce3eac4f286d39989e3
|
|
| BLAKE2b-256 |
d3daff4b1c7974d4909c0f46ce077a8ee2b2265a4644b471069eea489732106e
|
File details
Details for the file cricore_contract_compiler-0.1.0-py3-none-any.whl.
File metadata
- Download URL: cricore_contract_compiler-0.1.0-py3-none-any.whl
- Upload date:
- Size: 13.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d9cf29fafefd1a7980f5dcdbaf45582e4d95086cb326e709cfd8f61c76ec7c38
|
|
| MD5 |
30f1fb5b080cca5a87c69e326f67c059
|
|
| BLAKE2b-256 |
aff8269362a27cea0df75cc8bc0ab03ab222da65a83600a659f3e30cb46d9f26
|