-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
enhancementNew feature or requestNew feature or requestlayer:knowledgeKnowledge Layer - project-specific rulesKnowledge Layer - project-specific rulespriority:highHigh priority itemHigh priority item
Description
Problem
No enforcement of:
- Layered architecture rules (no UI in business logic)
- Module boundaries (no cross-domain imports)
- Naming conventions
- File organization patterns
Developer Pain Points
- Architecture rules only documented, not enforced
- Easy to violate layer boundaries
- No automated governance
- Manual code review catches violations late
Proposed Solution
Architecture Rules Service with:
- Define rules in .cortex/architecture.json
- Validate imports against layer rules
- Check file placement
- Enforce naming conventions
Example Rules
{
"layers": {
"ui": { "canImportFrom": ["core", "utils"], "cannotImport": ["database"] },
"core": { "canImportFrom": ["utils"], "cannotImport": ["ui"] }
},
"naming": {
"services": "*-service.ts",
"handlers": "*-handler.ts"
}
}MCP Tools
- arch-validate: Validate architecture rules
- arch-check: Check file against rules
- arch-suggest: Suggest correct placement
Priority
High - Architectural governance
Effort Estimate
2 days
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestlayer:knowledgeKnowledge Layer - project-specific rulesKnowledge Layer - project-specific rulespriority:highHigh priority itemHigh priority item