Skip to main content

agentcrash-core — Reliability framework for agentic workflows

agentcrash-core (import package agentcrash) is the reusable core extracted from the AgentCrash reliability project. It observes host workflows without owning them: buffered SDK instrumentation, a versioned event schema, domain-free invariants, deterministic fault injection, and a loopback control plane (Lab + /v1 API).

Domain workflows live in their own repos and depend on this package — e.g. the NL-to-ODRL agent in nl2odrl-responsible-ai. Any agentic workflow can do the same.

Install

pip install agentcrash-core            # SDK + control-plane client
pip install "agentcrash-core[server]"  # control-plane service extras

Use it in your workflow

from agentcrash import AgentCrash, WorkflowConfig

ac = AgentCrash(WorkflowConfig(project="my-workflow", fault_injection=True))

with ac.run(name="my-run") as run:
    with run.step("my-step"):
        ...  # your business logic; AgentCrash never orchestrates it

Disabled mode (AGENTCRASH_DISABLED=1) turns every call into a no-op passthrough, so hosts work with or without the framework installed.

Judge a trace

# verify registry invariants against an SDK-schema JSONL trace
agentcrash check --trace run.jsonl --invariant required_step:my-step --report-out verdict.json

# run the control plane (Lab + /v1 API, local only)
agentcrash serve --port 8901

Hosts register their own invariants (e.g. odrl_valid, exactly_once_save) alongside the generic core checks (required_step:*, duplicate_mutating_effect, fresh_write_only, no_lost_update).

Core principle

Model-generated diagnosis is strictly separated from deterministic verification. The model can explain a failure and propose candidate policy edits, but independent checks against recorded trace events and environment state determine whether a run passes or fails.

Develop

Prerequisites: WSL Ubuntu-24.04, Python 3.11+, uv.

git clone https://github.com/SahilSatyam/AgentCrash.git && cd AgentCrash
uv venv && uv pip install -e ".[dev]"
pytest -q

Layout

  • src/agentcrash/ — sdk, events, invariants, evaluate, server, verifiers (registry + generic checks), tracer, clock, injector, ledger, policy, scan_pii, db, lab/ (control-plane UI assets), schemas/ (bundled policy schemas)
  • examples/minimal_agent/ — second-app sample with zero domain imports
  • examples/README.md — writing your own host

Docs

See docs/ — start with docs/architecture-decoupling.md, which defines the core/host boundary.

Metadata

Release files for agentcrash-core 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentcrash-core 0.2.0
File Size Uploaded Provenance Actions
agentcrash_core-0.2.0.tar.gz 560.9 kB Without provenance Details for agentcrash_core-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agentcrash-core 0.2.0
File Interpreter ABI Platform Actions
agentcrash_core-0.2.0-py3-none-any.whl Python 3 none any Details for agentcrash_core-0.2.0-py3-none-any.whl

Total release size: 604.8 kB

Release files / agentcrash_core-0.2.0.tar.gz

Download URL agentcrash_core-0.2.0.tar.gz
Size 560.9 kB
Tags Source
SHA-256 checksum
How to use checksums
ad56d50d38e49c37fc9b952e7396fe2ae3e9edf00e6779dc50370857cc186cb3
BLAKE2b-256 checksum
How to use checksums
17c991a4d7eb9db3b66d76c8c0b61a08ab711fef9c6e93177c97f12c80195806
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / agentcrash_core-0.2.0-py3-none-any.whl

Download URL agentcrash_core-0.2.0-py3-none-any.whl
Size 43.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd04a6c07b86b666e9138503a47d962287952e6da9f4ef78b8d32f89f83e0738
BLAKE2b-256 checksum
How to use checksums
4b7bc73ae2763557d4fe43858f507f537e84ceb0ba7f6b18726d51e2f7fe622c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.5 {"installer":{"name":"uv","version":"0.13.5","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for agentcrash-core 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page