inspect_architecture
Validates a repository against declared architecture rules by scanning source imports and returning an architecture brief that flags conforming, violated, and unknown dependencies.
Instructions
Read one reviewed architecture-profile/v1 document from the active vault, scan the connected repository with the existing bounded static import analyzer, and return an architectureBrief:v1 for humans and coding agents. The profile declares scoped roles, intended dependency rules, and which known import usages those rules govern; source imports remain observed evidence with usage-qualified receipts. The result distinguishes conforms, violated, and unknown, and never treats unsupported languages, unclassified import usage, empty role mappings, or unmapped edges as compliance. Pattern labels are human/document declarations, not folder-name inference. side effect 0.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| maxFiles | No | Positive source-file scan cap (default 5000, max 50000). | |
| rootPath | No | Repository root to inspect. Defaults to the active resolved repository root from connection_info. | |
| profileSlug | No | Architecture profile_slug. Optional only when the vault contains exactly one architecture profile. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| profile | Yes | ||
| contract | Yes | ||
| sideEffect | Yes | ||
| conformance | Yes | ||
| nextActions | Yes | ||
| agentPlanContract | Yes |