| name | autonomy-testing-auditor |
| description | Evaluate whether a repository's unit, integration, end-to-end, visual, contract, and CI test setup lets an AI agent self-verify changes through fast, isolated, and well-targeted automated feedback. Use when auditing test readiness, onboarding a new project, or assessing whether the agent can safely validate its own work. Do not use when the main question is app startup or runtime bootstrapping (use autonomy-staging-auditor) or when debugging one failing test (use interface-sre-agent). |
Test Readiness Auditor
Evaluate whether the repository's tests provide the feedback loops needed for autonomous agent work. This includes unit, integration, end-to-end, visual or snapshot, contract, and CI testing strategy, along with speed, isolation, and developer ergonomics. An agent that cannot self-verify is a liability.
Discipline
This auditor follows code-mint's shared auditor discipline:
- Depth option — default
standard; use quick for a sanity check on a recently audited repo or deep for legacy codebases, quarterly refreshes, or high-risk readiness claims. Heritage classification from meta-onboarding Phase 0 sets a sensible default.
- Calibration — every report ends with a Calibration section naming the depth used, confidence level, what was not checked, and what would raise confidence. This is a required artifact, not a disclaimer.
This discipline is inspired by AWS AI-DLC's adaptive-depth and overconfidence-prevention ideas, but code-mint does not vendor or implement the full AI-DLC workflow.
Step 1: Discover the Test Infrastructure
- Identify the test framework or frameworks in use.
- Locate the documented test commands in
AGENTS.md, README, CI config, and package manager scripts.
- Map which test types are present: unit, integration, end-to-end, visual or snapshot, contract, performance.
- Determine whether tests can run per file, per module, or by explicit test name.
Step 2: Evaluate Test Speed
Fast feedback is non-negotiable for agentic iteration.
| Rating | Unit Test Speed | Suite Speed |
|---|
| Excellent | <200ms per test | <30s full suite |
| Acceptable | <500ms per test | <2min full suite |
| Poor | >500ms per test | >2min full suite |
| Failing | Tests timeout or are flaky | Suite cannot complete reliably |
Check for:
Step 3: Evaluate Test Isolation
Step 4: Evaluate Coverage and Gaps
Identify the highest-risk untested areas: modules with complex logic, external integrations, or user-facing impact that lack effective tests.
Step 5: Evaluate Test-First Feasibility
Determine whether an agent can follow a test-first workflow:
Step 6: Evaluate CI Integration
Output
Ensure the report directory exists: mkdir -p .agents/reports/completed && touch .agents/reports/.gitkeep .agents/reports/completed/.gitkeep
Ensure .gitignore ignores generated report contents while preserving the directories with their .gitkeep files.
Write the report to .agents/reports/autonomy-testing-auditor-audit.md:
# Test Readiness Audit Report
**Repository:** [name]
**Date:** [timestamp]
**Overall Test Readiness:** [Excellent / Acceptable / Poor / Failing]
## Summary
- Agent Can Self-Verify: [Yes / Partially / No]
- Test-First Feasible: [Yes / No]
## Top Blockers
[Highest-severity blockers preventing autonomous verification]
## Human Decisions Needed
[Coverage priorities, domain-specific risk areas, or CI policy decisions]
## Safe To Automate
[Framework setup, helper creation, or low-risk test tooling improvements that can proceed immediately]
## Test Infrastructure
- Framework(s): [list]
- Test Types Present: [Unit, Integration, E2E, Visual, Contract, etc.]
- Test Command: [exact command]
- Per-File Execution: [Yes / No]
## Findings
### [Finding Title]
- **Severity:** [Critical / High / Medium / Low]
- **Current State:** [what exists]
- **Required State:** [what should exist]
- **Recommended Action:** [specific step]
- **Next Skill / Step:** [e.g., Run `autonomy-testing-creator`]
## Speed Assessment
- Unit Test Speed: [Xms average]
- Full Suite Speed: [Xs]
- Rating: [Excellent / Acceptable / Poor / Failing]
## Isolation Assessment
- External Dependencies in Unit Tests: [Yes / No]
- Concurrent Execution Safe: [Yes / No]
- Autonomous Sandbox: [Yes / No — describe what's missing]
## Coverage Gaps
[Prioritized list of untested areas with risk assessment]
## Test-First Readiness
[Assessment with specific blockers if any]
## Next Steps
Run `autonomy-testing-creator` to remediate findings.
## Calibration
**Depth:** [quick / standard / deep]
**Confidence:** [High / Medium / Low] — [one-sentence reason]
**Not checked:**
- [specific area + reason]
**To raise confidence:**
- [specific next step]
After writing the report, update docs/onboarding-checklist.md and .agents/code-mint-status.json with the current self_test outcome status and date. Optionally update docs/skills-status.md if the repository keeps the compatibility view.
Detailed Criteria
See references/testing-standards.md for detailed speed benchmarks, isolation standards, coverage priorities, and CI integration checklist.