Search docs
Docs searchValidation rule
Back to Rule CatalogAP-ARCH-005ArchitectureModule registry path exists
Checks that registered module paths exist as directories.
errorsetup-gapNo auto-fix
How to fix
- Restore the missing module directory or remove the stale registry entry.
- Update paths after module moves.
- Run validation to confirm every registered module resolves.
What the rule validates
A module listed in the architecture registry points to a path that does not exist.
Why it matters
Missing paths make module dependency validation unreliable.
Common causes
- A module was renamed or deleted.
- The registry was edited by hand.
- Smart Init output was not reviewed after a restructure.
Typical violation example
The registry lists snapshots, but apps/api/src/modules/snapshots is missing.Typical compliant example
Every module registry entry points to an existing module directory.Related rules
AP-ARCH-001 - Modular monolith folder structure existsAP-ARCH-002 - Implementation profile not fully supportedAP-ARCH-003 - Architecture overview artifact existsAP-ARCH-004 - Module baseline files exist
Adjacent categories
Related files/config
.archpilot/architecture.json.archpilot/contracts/*.json
Related CLI commands
archpilot validatearchpilot validate --ci