Skip to main content

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 in contracts.lock.json with 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:

Versioning

Follows Semantic Versioning. Current version: 0.1.4. See CHANGELOG.md for release notes.

License

MIT License (see LICENSE file).

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

abi_control_core-0.1.4.tar.gz (171.6 kB view details)

Uploaded Source

Built Distribution

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

abi_control_core-0.1.4-py3-none-any.whl (112.7 kB view details)

Uploaded Python 3

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

Hashes for abi_control_core-0.1.4.tar.gz
Algorithm Hash digest
SHA256 deeecb17430bef2cb8ad42e9563e0cf9e23632f9f49f83932e587ad9db4b7ae5
MD5 7e2e2965b3974a553f2b8efe74127ea0
BLAKE2b-256 8bbe4c5270c5df55cb55e91d7c9578d04d402c984ad390ce820712cbf363daaf

See more details on using hashes here.

Provenance

The following attestation bundles were made for abi_control_core-0.1.4.tar.gz:

Publisher: publish.yml on AbilityBI/abi-core

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file abi_control_core-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for abi_control_core-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5a8cd3f2a6939082d64a5a2928b4da9743b91163796e97e2e2369725c88c9a3f
MD5 6216f75cbd8f98a2262bccafdcff3c9c
BLAKE2b-256 66740b974299443baf11b121e737e8082eb94b8d0cdfa1384de95bf82813e2fa

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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