validate_module_architecture
Validate module boundaries and conventions (layer, screen, DI) against an approved architecture profile via read-only static inspection; fails fast on invalid structure.
Instructions
Validate module boundaries using the approved architecture profile.
iMESPro also checks its layer, screen and DI conventions. External layout/DI needs Client inspection.
Strictly READ-ONLY: Performs static inspection of the module directory without writing files.
Zero Mock Data: Fails fast if module directory does not exist or has invalid structure.
Args:
module_path: Path to the feature module directory (e.g. lib/modules/<feature>).
feature_name: Name of the feature module (optional, inferred from path if omitted).
architecture_profile: Approved mode: imespro, external-structured, or external-standard.
Omitted values retain legacy iMESPro checks. External layout/DI checks remain UNVERIFIED.
Returns:
Dictionary containing validation status, gate_status (PASSED/FAILED), violations, and checked rules.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| module_path | No | ||
| feature_name | No | ||
| architecture_profile | No | imespro |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||