Canonical nucleus for ABI contracts, evidence packs, and validation SDK
Project description
abi-control-core
The foundation contract layer for the ABI ecosystem. Provides 50 locked JSON Schema contracts, an audit trail SDK, and deterministic content fingerprinting (RFC 8785 JCS + SHA-256).
Zero upstream abi-* dependencies. This is Contracts Pack (Layer 1) -- everything else builds on top of it.
Install (after PyPI publication)
pip install abi-control-core
Status: Not yet published to PyPI. Install from source:
pip install -e .from the repo root.
Quick start
from pathlib import Path
from abi_control_core.sdk.validate import validate_json
from abi_control_core.sdk.evidence_pack import EvidencePackBuilder
from abi_control_core.sdk.canonical_hash import canonical_hash_jcs_sha256
# Validate a payload against a locked schema
validate_json(payload, "artifact_manifest.schema.json")
# Build an audit trail artifact
builder = EvidencePackBuilder(base_dir=Path("evidence_packs"), run_id="run-42")
builder.set_manifest({"name": "my-run", "status": "complete"})
builder.add_artifact(b"raw file contents") # content-addressed storage
summary = builder.finalize() # validates, writes hashes, returns summary dict
# Deterministic content fingerprint (RFC 8785 JCS + SHA-256)
digest = canonical_hash_jcs_sha256({"key": "value"})
What's included
- 50 JSON Schema contracts in
src/abi_control_core/contracts/, all locked incontracts.lock.jsonwith SHA-256 hashes for schema integrity verification - Audit trail SDK -- generate, seal, and validate structured audit trail artifacts
- Deterministic content fingerprinting -- RFC 8785 JSON Canonicalization Scheme + SHA-256
- Pydantic domain models -- canonical types shared across the ABI ecosystem
Schema catalog highlights
Core Control Plane: audit trail artifacts, artifact manifests, AICS receipts, budget state and receipts, capability boundary registry, context manifests.
Agent Orchestration: agent profiles, structured agent-to-agent handoff schemas, routing tables, execution records, session lifecycle, telemetry.
Quality & Observability: calibration reports, failure taxonomy, tamper-evident approval log (hash-chained gate execution receipts).
Evaluation & Regression: eval case, fixture, and result schemas; regression gate manifests.
Schema integrity verification
All 50 schemas are locked in contracts.lock.json with SHA-256 hashes. Verify nothing has drifted:
python script/verify.py
ABI ecosystem
abi-control-core is the Contracts Pack (Layer 1). Other ABI packages depend on it, but it depends on none of them. Related packages:
- abi-spec -- specification compiler (Layer 2)
- abi-prd -- structured PRD generation (Layer 2)
- abi-policy -- policy evaluation engine
- abi-evals -- eval runner and golden management
- abi-observability -- OTLP-compliant telemetry
Versioning
Follows Semantic Versioning. Current version: 0.1.4. See CHANGELOG.md for release notes.
License
MIT License (see LICENSE file).
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 abi_control_core-0.1.4.tar.gz.
File metadata
- Download URL: abi_control_core-0.1.4.tar.gz
- Upload date:
- Size: 171.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
deeecb17430bef2cb8ad42e9563e0cf9e23632f9f49f83932e587ad9db4b7ae5
|
|
| MD5 |
7e2e2965b3974a553f2b8efe74127ea0
|
|
| BLAKE2b-256 |
8bbe4c5270c5df55cb55e91d7c9578d04d402c984ad390ce820712cbf363daaf
|
Provenance
The following attestation bundles were made for abi_control_core-0.1.4.tar.gz:
Publisher:
publish.yml on AbilityBI/abi-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
abi_control_core-0.1.4.tar.gz -
Subject digest:
deeecb17430bef2cb8ad42e9563e0cf9e23632f9f49f83932e587ad9db4b7ae5 - Sigstore transparency entry: 1102553039
- Sigstore integration time:
-
Permalink:
AbilityBI/abi-core@914264879bb57d52c47ee785697eb5e2871f1f3d -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/AbilityBI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@914264879bb57d52c47ee785697eb5e2871f1f3d -
Trigger Event:
push
-
Statement type:
File details
Details for the file abi_control_core-0.1.4-py3-none-any.whl.
File metadata
- Download URL: abi_control_core-0.1.4-py3-none-any.whl
- Upload date:
- Size: 112.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5a8cd3f2a6939082d64a5a2928b4da9743b91163796e97e2e2369725c88c9a3f
|
|
| MD5 |
6216f75cbd8f98a2262bccafdcff3c9c
|
|
| BLAKE2b-256 |
66740b974299443baf11b121e737e8082eb94b8d0cdfa1384de95bf82813e2fa
|
Provenance
The following attestation bundles were made for abi_control_core-0.1.4-py3-none-any.whl:
Publisher:
publish.yml on AbilityBI/abi-core
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
abi_control_core-0.1.4-py3-none-any.whl -
Subject digest:
5a8cd3f2a6939082d64a5a2928b4da9743b91163796e97e2e2369725c88c9a3f - Sigstore transparency entry: 1102553043
- Sigstore integration time:
-
Permalink:
AbilityBI/abi-core@914264879bb57d52c47ee785697eb5e2871f1f3d -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/AbilityBI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@914264879bb57d52c47ee785697eb5e2871f1f3d -
Trigger Event:
push
-
Statement type: