Frozen v1 interface + schemas for the MIRRA agent platform (interfaces only, no logic).
Project description
mirra-core-contract
The frozen v1 interface of the MIRRA agent platform. Interfaces and schemas only — zero logic, zero dependencies. Every core component implements it; every deployment edge depends only on it.
AgentIdentity · Scroll · ExecutionIntent · DecisionRecord · VerificationResult
IdentityResolver.resolve_identity(principal) -> AgentIdentity
MemoryStore.remember / recall / verify -> signed Scrolls, verify-on-read
ExecutionAuthorizer.authorize(intent, identity) -> signed DecisionRecord
CapabilityProvider.enrich_identity / verify_epistemic (optional, runtime-injected)
Rules baked into the contract
- Frozen. This is
v1. It never breaks without a major version bump; the freeze-guard tests (tests/test_contract_frozen.py) fail on any signature or schema drift. - Fail-closed. Missing engine, missing signing secret, or failed verification means deny/reject — never silent degradation.
- Real cryptography.
verified: truealways reflects an actual signature check, never a proxy like "the record exists." Signed artifacts declare their scheme (hmac-sha256for same-owner memory,ed25519for distributable proofs). - Generic vocabulary. Capability providers are named generically; the
contract is the only shared vocabulary between public packages and any private
implementation.
scripts/check_public_private_boundary.pyis the CI gate that keeps it that way.
Who implements what
| Component | Contract surface |
|---|---|
mvar-security |
ExecutionAuthorizer (+ the canonical QSEAL signing primitive) |
clawseal |
MemoryStore (sign-on-write, verify-on-read) |
mirra-sdk |
all three edges (SDK / gateway / on-device) speak only these types |
| private providers | CapabilityProvider, injected at runtime |
Tests
python3 -m pytest tests/ -q # 9 freeze-guards
License
Apache-2.0 — see LICENSE.
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 mirra_core_contract-1.0.0.tar.gz.
File metadata
- Download URL: mirra_core_contract-1.0.0.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5838165c2ba2bf1a94396b66a3280e641b5fd7c37858cbfba9f7965e79f53eaf
|
|
| MD5 |
b9fe1c4ded615c16a96337badbbd65b6
|
|
| BLAKE2b-256 |
01624ccb6ba9ea3e6b739b2d710fa7143d6b1a7e452dc9b1b1ad8a7411803e3e
|
File details
Details for the file mirra_core_contract-1.0.0-py3-none-any.whl.
File metadata
- Download URL: mirra_core_contract-1.0.0-py3-none-any.whl
- Upload date:
- Size: 10.3 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 |
f8a0ced4e86bf81744cc0478eb4c0561d3e998872e360ec685ca4b2c1756a189
|
|
| MD5 |
3d2928456070a8829be28ffabdd392d3
|
|
| BLAKE2b-256 |
1fb85e4d539a1c36349693bfe678cfd1e0c1d42e0bd85a9e042a6dfff2cb19b1
|