Audit architecture
This workflow compares the actual codebase state (dependencies, modules, versions) against the modular_architecture_blueprint.md.
- Read the Blueprint:
-
Read
knowledge/sd_platform_architecture_governance/artifacts/blueprint/modular_architecture_blueprint.md. -
Scan Critical Configurations:
- Read
package.json(Root) to check workspace definitions. - Read
apps/platform/package.jsonto check Next.js version and key dependencies. - Read
tsconfig.jsonto check compiler options (target, module resolution). -
Read
packages/foundation/firebase-admin/package.json(or similar) to check for build quirks (e.g.exports,types). -
Inventory Modules:
- List directories in
packages/modules(Layer 1). - List directories in
packages/modules/unified(Layer 2). -
List directories in
packages/foundation(Layer 3). -
Compare & Report:
- Compare the "As-Built" inventory with the "Blueprint" inventory.
- Check if critical versions (Next.js, Node) match.
- Action: If strictly version bumps or new modules found, UPDATE the blueprint. If structural violations found (e.g. circular deps), REPORT discrepancies to user.