---
name: ai-agent-system-inspect
Inspect current repository truth and return one immutable ProjectSnapshot. Remain read-only.
Read:
../../shared/contracts/bootstrap-run.md../../shared/contracts/project-snapshot.md../../shared/policies/ownership-and-rebuild.mdResolve the repository root and copy the user request, explicit constraints, explicit exclusions, and available runtime capabilities into the snapshot. Reject a missing or ambiguous root.
Completion criterion: every inspected path is inside the resolved repository root.
Inspect the smallest set of real files that establishes:
Record evidence paths beside conclusions. Mark absent evidence as an assumption rather than inventing detail.
Build the complete domain_assessment across product, architecture, frontend, backend, data, security, QA, DevOps, documentation, final review, and project-specific domains. Preserve module paths, raw evidence paths, risks, verification methods, and inference grounds.
Completion criterion: each populated snapshot field points to evidence or is explicitly marked assumed/unknown, and every responsibility domain has an explicit evidence-based assessment.
Read root AGENTS.md, .ai/bootstrap-manifest.json, and the structural shape of .ai when present. Recognize a legacy YAML manifest only as migration evidence.
AI-AGENT-SYSTEM as the current marker and AI-AGENT-ROUTING as a legacy marker eligible for one-time migration..ai as suite-owned only when a strict current manifest and its declared inventory match the installed managed tree, or when it is an unambiguous legacy Agent Team containing the expected Agent/workflow structure..ai content as a blocking ownership conflict.Completion criterion: agents_md_marker, agents_md_human_content, ai_directory, legacy status, and every conflict are explicit.
Populate every required field in ProjectSnapshot, including evidence, assumptions, unknowns, managed paths, and blockers. Set status to blocked when ownership or target boundary is unsafe; otherwise set success.
Completion criterion: the output conforms to the contract and contains no unclassified existing generated surface.
Return only the completed ProjectSnapshot plus a concise evidence summary. Do not write repository files.
For standalone invocation, accept an explicit repository root and user request, create an ephemeral read-only run ID, and populate the same snapshot request block. Standalone Inspect never selects a rebuild mode or writes a BootstrapRun.