Deterministic Chaos Testing for AI Agents
Catch duplicate charges, broken rollbacks, and infinite tool-call retry loops in CI before merging.
afc proxies your agent's HTTP tool calls, injects deterministic faults, and asserts real database and API state.
How afc Fits Into Your CI Workflow
AI agents fail in production when tool APIs time out, drop responses after writing, or return corrupt JSON.
afc sits between your agent and disposable test tools in CI to catch those bugs deterministically before merge.
The Problem Without afc
Unit tests mock happy paths. In production, a single dropped 201 response or mid-saga 500 causes AI agents to double-charge customers, leak Redis locks, or burn API budgets in retry loops.
The Guarantee With afc
Every PR runs deterministic network faults against real disposable Postgres, Redis, and HTTP endpoints—blocking regressions with exit code 1 and GitHub Code Scanning (SARIF) annotations before code ships.
Scenario: checkout_retry_on_dropped_response Fault: commit_then_fail on POST /v1/charges (upstream committed, socket dropped) Timeline: #1 POST /v1/charges -> 200 upstream, fault injected (reset) #2 POST /v1/charges -> 200 OK (agent retried without idempotency key) FAIL sql_row_count(postgres.orders): expected 1, got 2 [AFC101] FAIL no_duplicate_writes: duplicate mutation detected [AFC102] SARIF wrote afc-results.sarif (GitHub Code Scanning ready) Exit code: 1 (PR merge gate blocked)
Built for Real CI Merge Gates
No flaky LLM-as-a-judge heuristics. Deterministic network faults paired with hard state assertions.
1. HTTP Fault Injection Proxy
Intercepts agent HTTP tool calls and injects commit_then_fail (response dropped after upstream write), fail_before_upstream, and malformed_json.
2. State & Budget Assertions
Verifies actual side effects in PostgreSQL, Redis, and HTTP state endpoints alongside max_tool_calls and no_duplicate_writes retry checks.
3. Native CI & Security Reports
Outputs console summaries, JUnit XML, and SARIF 2.1.0 (AFC101–AFC201) with automatic secret redaction for GitHub Code Scanning.
Simple, Transparent Pricing
Start with the Apache-2.0 OSS CLI. Upgrade to Pro or Team for Redis/HTTP assertion packs, SARIF/JUnit reporting, and unlimited scenarios. Billing and license delivery are handled securely by Polar.sh.
- Up to 3 scenarios per run
- HTTP fault injection proxy
- PostgreSQL & tool budget assertions
- Console output & GitHub Action
- Unlimited scenarios per run
- Redis & HTTP state assertion packs
- SARIF 2.1.0 & JUnit XML reports
- Up to 3 repositories
- Instant Polar license key delivery
- Everything in Pro
- Up to 10 developers / CI orgs
- Commercial team license key
Zero Telemetry. Runs 100% in Your Environment.
afc runs locally on your laptop or inside your own CI runners. It never sends prompts, database rows, or HTTP payloads to external servers. Pro license validation contacts Polar.sh solely to verify your license key.
Questions or enterprise invoicing? Email [email protected].