- Home
- Skills
- Code Quality & Review
- Evidence-Budget Test & Monitor Gate
Evidence-Budget Test & Monitor Gate
Cut wasted AI agent test reruns and infinite CI polling loops in half with SHA-256 digest-bound PASS caching and rate-limited monitor loop breaking.
$19
Works with the AI Agents you already use
Evidence-Budget Test & Monitor Gate
Example session with this skill installed
Run our unit test suite with SHA-256 PASS caching so repeated unchanged runs return SKIP_CACHED_PASS instead of wasting tokens.
- Read your context and instructions
- Compiled the evidence-budget test
First run: evidence decision=EXECUTED status=pass executed=1 cached=0 tests=28. Second unchanged run: evidence decision=SKIP_CACHED_PASS status=pass executed=0 cached=1 command_calls=0 duration_seconds=0.
Connects securely to your tools. The creator never sees your data.
About this skill
Autonomous coding agents routinely burn 30-60% of their context window and token budget re-running identical passing test suites and polling unchanged CI/deploy logs in tight loops. This 2-Skill Pack stops both deterministically with zero external dependencies (pure Python 3.10+ stdlib, zero network calls, shell=False).
Skill 1: Evidence Test Gate (evidence_test.py, 15.2 KB)
- SHA-256 digest-bound PASS cache over watched files/directories (symlink-safe, ignoring .git, pycache, node_modules), OS/Python environment fingerprint, and exact argv.
- Unchanged passing suites return SKIP_CACHED_PASS in milliseconds with command_calls=0.
- Failed runs are never cached; any 1-byte edit invalidates immediately; --force requires --force-reason.
- Full logs go to private 0o600 files while stdout stays compact (1-line summary or failure_tail).
- Supports E0-E4 progressive testing, TTL freshness, volatile mode, and exclusive O_CREAT|O_EXCL file locking (exit 75 on overlap).
Skill 2: Evidence Monitor Gate (evidence_monitor.py, 13.5 KB)
- Enforces --min-interval-seconds (SKIP_TOO_SOON), --deadline-utc (STOP_DEADLINE), and --max-unchanged SHA-256 identical-output loop breaking (STOP_UNCHANGED, stop_recommended=true).
- Atomic os.replace state persistence, exclusive file lease, and append-only JSONL ledger.
Cross-Platform Verified
Tested on Ubuntu, Windows, and macOS (Python 3.10 and 3.12) with 28 unit and E2E tests and zero ruff lint warnings.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.
Only hashes declared --artifact paths; use --freshness ttl or volatile for checks depending on external databases or live network services.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today