Versioned state schemas, failure semantics, and debug CLI for the Antaris Analytics Suite.
Project description
antaris-contracts
Versioned state schemas, failure semantics, and debug tooling for the antaris-suite.
antaris-contracts defines the shared data contracts used across all antaris packages — ensuring consistent serialization, migration, and observability without coupling the packages to each other.
Installation
pip install antaris-contracts
What's Included
- State schemas — Versioned dataclass contracts for memory, router, guard, context, and telemetry state
- Migration tooling — Chained schema migrations with version detection and rollback safety
- Failure semantics — Canonical error types and failure modes documented in
FAILURE_SEMANTICS.md - Concurrency model — Lock ordering and thread-safety contracts in
CONCURRENCY_MODEL.md antaris-debugCLI — Inspect memory stores, tail telemetry logs, validate schema files
CLI Usage
# Inspect a memory workspace
antaris-debug memory inspect ./my_agent_workspace
# Search memories
antaris-debug memory search ./my_agent_workspace "important decision"
# Tail a telemetry log
antaris-debug telemetry tail ./telemetry.jsonl
# Validate a schema file
antaris-debug schema validate ./state.json
Schema Usage
from antaris_contracts.schemas.memory import MemoryState
from antaris_contracts.schemas.router import RouterState
from antaris_contracts.migration import migrate
# Load and auto-migrate state
raw = json.loads(open("state.json").read())
state = migrate(raw, target_version="2.2.0")
Zero Runtime Dependencies
antaris-contracts has no runtime dependencies beyond the Python standard library. It is safe to import in any environment.
Part of antaris-suite
| Package | Role |
|---|---|
| antaris-contracts | Schemas + contracts (this package) |
| antaris-memory | Persistent agent memory |
| antaris-router | Intelligent model routing |
| antaris-guard | Input/output safety layer |
| antaris-context | Context window management |
| antaris-pipeline | Orchestration + telemetrics |
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 antaris_contracts-1.0.0.tar.gz.
File metadata
- Download URL: antaris_contracts-1.0.0.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
74b6dcc70a04369d435dbee40bcf8769c0d14e67a2bd67a8142d1f6475745744
|
|
| MD5 |
5bd2fc18796e1d29fee4f30aea48b5ff
|
|
| BLAKE2b-256 |
c224f1bf9d186acfe2c69cf01386701e24a7dc655158e3115332a18d2605a5e6
|
File details
Details for the file antaris_contracts-1.0.0-py3-none-any.whl.
File metadata
- Download URL: antaris_contracts-1.0.0-py3-none-any.whl
- Upload date:
- Size: 25.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f282f6cb25531cfd2462e590c16f686e80017e01b479dfd9af761198056ee7f3
|
|
| MD5 |
c478f6d0690aee198f254a4634139acf
|
|
| BLAKE2b-256 |
5eb33adce17dbd0f0619b882e7eccf7babe691e5244cef2edd291bdd9fd5cfff
|