| name | autonomy-staging-auditor |
| description | Audit whether an AI agent can go from a clean checkout to a runnable application or local runtime equivalent, without unsafe provisioning or destructive setup. Use when evaluating development or staging-like runtime readiness, onboarding a new project, or checking whether the agent can install dependencies, start services, and perform smoke checks. Do not use when evaluating test strategy and coverage depth (use autonomy-testing-auditor) or when debugging a live production issue (use interface-sre-agent). |
Runtime Auditor
Evaluate whether an agent can go from a clean checkout to a safe local runtime or staging-like equivalent, or to the closest safe local simulation of that environment. This skill focuses on install, setup, local services, startup, smoke checks, and infrastructure inspection. It does not require cloud provisioning.
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.
Collaboration Rules
Do not treat runtime readiness as a pure checklist exercise. Inspect the repository first, then ask only for the operational context the codebase cannot answer confidently.
When runtime facts are unclear, ask the developer for freeform explanation, examples, or a short walkthrough of how they actually get the system running today. Prefer prompts like:
- "Walk me through the safest real path a new developer uses to get this repo running."
- "Which step usually breaks first on a clean machine?"
- "What is the smallest meaningful smoke check your team trusts?"
Capture those answers in the report as evidence, not just as assumptions.
Step 0: Establish the Runtime Target
Before evaluating details, determine which target is realistic:
- Safe local runtime
- Staging-like local simulation
- Partial local runtime plus read-only infrastructure inspection
If the repository does not make the target obvious, ask the developer which target is intended and why. Use the safest meaningful target available; do not assume full cloud-backed staging is required.
Runtime Discovery Questions
If the repository cannot answer these confidently, ask the developer and record the answers:
- Which services must run for a meaningful smoke test?
- In what order should dependencies and the app start?
- What readiness signals show that each dependency is actually usable?
- Which environment values are required, and which can use safe placeholders locally?
- Are migrations or seed data required before the app can be exercised meaningfully?
- Does the smoke path require authentication, fixtures, or a pre-existing account?
- What is the safest smoke path the team trusts today?
- Which steps are unsafe, shared-environment dependent, or require human approval?
For concrete smoke-test patterns and safety boundaries, see references/smoke-test-guide.md.
Step 1: Evaluate Dependency Management
Check whether the application dependencies can be installed autonomously:
Step 2: Evaluate Environment and Configuration Handoff
Cross-reference autonomy-env-auditor findings if that report exists.
Step 3: Evaluate Infrastructure Visibility
The goal is inspection-readiness, not cloud provisioning.
Step 4: Evaluate Local Service Startup
Step 5: Evaluate Application Startup
Step 6: Evaluate Runtime Smoke Checks
Only perform safe, local checks. Do not execute destructive operations.
Treat a smoke test as the smallest non-destructive check that gives meaningful confidence the runtime is usable. Prefer this order:
- Dependency readiness check
- App startup verification
- One app-level confidence check
Examples:
- API service: health endpoint plus one read-only or obviously non-destructive request
- Web app: load the local URL and confirm one core screen or element renders
- Worker: verify process startup plus queue, scheduler, or job-consumer readiness
- Multi-service stack: dependency health first, then one end-to-end app check
Stop and mark the step as requiring human input instead of improvising if the only available smoke path would:
- mutate shared data
- trigger billing, email, webhooks, or third-party side effects
- require real production or shared staging credentials
- depend on a login flow or callback path that is undocumented or unsafe to fake
- require migrations or seeds whose safety is unclear
Assess whether the following would succeed:
| Step | Evaluate By |
|---|
| Install dependencies | Verify the command exists and appears runnable from a clean checkout |
| Load environment | Verify the documented env path exists or cross-reference the env audit |
| Start local dependencies | Check Docker Compose, setup scripts, or equivalent startup docs |
| Run migrations | Check whether the command exists and whether it is safe for a local or ephemeral database |
| Start app | Only attempt if the prior steps are safe and sufficient |
| Smoke test app | Check for documented smoke path, its prerequisites, its expected success signal, and whether it is safe to execute |
| Inspect infra context | Review IaC or companion repo context without provisioning |
Record which steps would succeed, which are blocked, and which require human decisions. When a smoke path is partial, say exactly what evidence is available today and what missing step prevents higher confidence.
Output
Ensure the report directories exist: 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-staging-auditor-audit.md:
# Runtime Audit Report
**Repository:** [name]
**Date:** [timestamp]
**Overall Status:** [Pass / Partial / Fail]
## Summary
- Agent Can Reach A Runnable Environment: [Yes / Partially / No]
- Local Simulation Available: [Yes / Partially / No]
- Runtime Smoke Path Available: [Yes / Partially / No]
## Top Blockers
[Highest-severity blockers preventing install, startup, or smoke verification]
## Human Decisions Needed
[Cloud topology choices, shared environment ownership, unsafe commands, or approval-gated setup]
## Safe To Automate
[Low-risk setup, startup, or documentation tasks that can proceed immediately]
## Dependency Management
[Assessment with specific gaps]
## Runtime Configuration
[Assessment with specific gaps]
## Infrastructure Visibility
[Assessment with specific gaps]
## Local Services
[Assessment with specific gaps]
## Startup and Smoke Checks
[Assessment with specific gaps]
## Cold Start Results
| Step | Status | Notes |
|---|---|---|
| Install | [Pass/Partial/Fail] | [details] |
| Env Setup | [Pass/Partial/Fail] | [details] |
| Local Dependencies | [Pass/Partial/Fail] | [details] |
| Migrations | [Pass/Partial/Fail] | [details] |
| Start App | [Pass/Partial/Fail] | [details] |
| Smoke Test | [Pass/Partial/Fail] | [details] |
| Infra Inspection | [Pass/Partial/Fail] | [details] |
## Findings
### [Finding Title]
- **Severity:** [Critical / High / Medium / Low]
- **Current State:** [what exists]
- **Required State:** [what should exist]
- **Recommended Action:** [specific step]
- **Next Skill / Step:** [for example, run `autonomy-staging-creator`]
## Next Steps
Run `autonomy-staging-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 smoke_path outcome status and date. Optionally update docs/skills-status.md if the repository keeps the compatibility view.