Observed since 20 Oct, 21:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
CI/CD guardrails for AI agents - prevent payment duplicates and data destruction
Stop your AI agents from destroying production.
AgentCorrect scans AI agent traces and blocks deployments when it finds:
Exit code 2 fails your CI/CD pipeline. That's it.
You need this if:
You don't need this if:
pip install agentcorrect
# Analyze agent trace
agentcorrect analyze trace.jsonl
# In CI/CD pipeline
agentcorrect analyze trace.jsonl || exit 1
DELETE FROM users WHERE 1=1 → Blocked (tautology)DELETE FROM users → Blocked (no WHERE clause)TRUNCATE TABLE orders → Blocked (data loss)DROP TABLE customers → Blocked (irreversible)FLUSHALL → Blocked (cache wipe)dropDatabase → Blocked (database deletion)DeleteBucket → Blocked (storage deletion)Your agent does this:
# Agent tries to charge customer
response = stripe.charges.create(amount=5000, currency="usd")
# Network timeout, agent retries
response = stripe.charges.create(amount=5000, currency="usd")
# Customer charged twice - $100 lost
AgentCorrect catches this:
Missing payment idempotency
Provider: Stripe
Fix: Add header 'Idempotency-Key: <unique-order-id>'
Exit code: 2 (Build Failed)
JSONL format - one JSON object per line:
{"role":"http","meta":{"http":{"method":"POST","url":"https://api.stripe.com/v1/charges","headers":{},"body":{"amount":1000}}}}
{"role":"sql","meta":{"sql":{"query":"DELETE FROM users WHERE id = 123"}}}
{"role":"redis","meta":{"redis":{"command":"GET user:123"}}}
Vendor-specific knowledge: We know Stripe needs Idempotency-Key in headers, Square needs idempotency_key in body. This isn't guesswork.
AST parsing for SQL: We parse SQL structurally, not with regex. No false positives.
Exit codes for CI/CD: Non-zero exit fails the build. Standard CI/CD practice.
- name: Test Agent Safety
run: |
python run_agent.py > trace.jsonl
agentcorrect analyze trace.jsonl
test-agent:
script:
- python run_agent.py > trace.jsonl
- agentcorrect analyze trace.jsonl
Run the verification suite:
python verify.py # Test all detections
python ship_tests.py # 15 acceptance tests
./quick_proof.sh # 60-second proof
MIT
See CONTRIBUTING.md
Built for teams who learned the hard way that AI agents need guardrails.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 27 Aug 2025 | 7 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 21:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:5ec7d7c8b2e07494fab95ed9358f4205828657366e2c9b447e1b3d0669772c15