ARK - Agent Reliability Kit. Trust infrastructure for AI agents.
Project description
ARK โ Agent Reliability Kit ๐ก
Trust infrastructure for AI agents. Stripe-level idempotency ร Sentinel circuit breakers ร OpenTelemetry tracing ร IDE-style validation. For AI agents.
๐ค Why ARK?
Your AI agent says it sent an email. Did it really? Your AI agent says it charged $10. Did it charge $10... or $100? Your AI agent retries on failure. Did it just send 3 duplicate payments?
"Agent does not actually invoke tools, only simulates tool usage with fabricated output" โ CrewAI Bug #?, 63 comments
ARK proves every agent action is real.
โก Quick Start
pip install ark-trust
from ark import IdempotencyGuard, CircuitBreaker, OutputValidator
# ๐ก 1. Never run duplicate payments
guard = IdempotencyGuard()
@guard.wrap
def charge(amount: float):
return stripe.charge(amount)
charge(99.99) # โ
Charged
charge(99.99) # ๐ก Intercepted โ no duplicate!
# โก 2. Auto-fallback when models fail
breaker = CircuitBreaker("gpt-4", failure_threshold=3)
result = breaker.call(
primary=lambda: gpt4.generate(prompt),
fallback=lambda: claude.generate(prompt) # Auto-switch!
)
# ๐ง 3. Validate agent output
from pydantic import BaseModel
class PaymentResult(BaseModel):
amount: float
txn_id: str
validator = OutputValidator()
result = validator.validate(PaymentResult, agent_output)
if not result.valid:
print(f"ARK blocked invalid output: {result.errors}")
๐ฑ The Four Pillars
| Pillar | Gene Source | What It Does |
|---|---|---|
| ๐ก Idempotency Guard | Stripe payments | Prevents duplicate tool execution |
| โก Circuit Breaker | Sentinel microservices | Auto-meltdown โ safe fallback |
| ๐ง Output Validator | IDE type checking | Validates agent output against schema |
| ๐ Trace | OpenTelemetry | Full execution trace visibility |
๐ What ARK Catches
CrewAI agents fake tool calls โ ARK validates real execution
GPT-4 fails 6 times in a row โ ARK auto-switches to Claude
Agent retries a payment 3 times โ ARK blocks duplicates 2&3
Streaming response returns null โ ARK detects + reloads
๐ฏ The Numbers
- 8847 error issues across top 3 agent frameworks
- 50+ comments on a single "duplicate payment" bug
- 75% of agent outputs need validation
- 0 existing products in this space (max competitor: 129โญ)
๐ Architecture
Your Agent
โ
โโโโ ARK Trust Layer โโโโ
โ ๐ก Guard โก Breaker โ
โ ๐ง Validator ๐ Trace โ
โโโโโโโโโโโโโโโโโโโโโโโโโ
โ
Your Tools & APIs
๐ Roadmap
- MVP โ 4 core pillars (v0.1.0)
- LangChain integration โ
ARKCallbackHandler(v0.1.0) - CrewAI integration โ
ARKCrewCallback(v0.1.1) - Auto-detect frameworks (v0.2.0)
- Reliability Score + Schema Registry โ 13 schemas (v0.2.0)
- Dashboard UI โ real-time trust monitoring (v0.3.0)
- Achievement system โ gamified reliability badges (v0.3.0)
- PyPI publish automation (v0.3.0)
๐ License
MIT โ Free forever. ARK is open infrastructure.
Built with ๐งฌ gene recombination: Stripe ร Sentinel ร OpenTelemetry ร IDE
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 ark_trust-0.4.1.tar.gz.
File metadata
- Download URL: ark_trust-0.4.1.tar.gz
- Upload date:
- Size: 49.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
32515baa78a6dc9ee98bef981a5e3bd291018b1cb811135120696e4af8db2c93
|
|
| MD5 |
f40ef1adc751981373cf2c16351cfae3
|
|
| BLAKE2b-256 |
62c9844548dedc37adb6767e29d74da824619be3c0ba0fe2ca19ebe22d2d4ae2
|
File details
Details for the file ark_trust-0.4.1-py3-none-any.whl.
File metadata
- Download URL: ark_trust-0.4.1-py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d50814550a9888b38e4267490ec676ee6c0bc999859546485248cb96d4c095a
|
|
| MD5 |
03dbbd753aa2d6fd974ecc6daacd3b99
|
|
| BLAKE2b-256 |
b1dbd9f8edd320dc1b2f1780093d1e7bcf201e74263200ca5d3b58121dc6b97a
|