archy_check
Check Python imports for forbidden layer dependencies and Stable Dependencies Principle violations after editing imports.
Instructions
Call after any Python edit that adds, removes, or changes an import statement. Returns forbidden direct edges between layers declared in archy.yaml under violations, plus Stable Dependencies Principle violations (when sdp.enabled: true in archy.yaml) under sdp_violations. Empty lists on both mean no direct boundary crossings; pair with archy_contracts for transitive (multi-hop) checks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| config_path | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config_path | Yes | ||
| violations | Yes | ||
| sdp_violations | No | ||
| passed | Yes |