Strategic architecture, tactical design, and testable code principles (SOLID, Clean Architecture, Design Patterns, Testable Design)
97
97%
Does it follow best practices?
Impact
Pending
No eval scenarios have been run
Passed
No known issues
{
"context": "Tests whether the agent identifies both violations: entity importing TypeORM decorators (outer-layer framework in inner layer) and use case instantiating a concrete repository (bypassing interface contract).",
"type": "weighted_checklist",
"checklist": [
{
"name": "TypeORM decorator violation identified",
"description": "VIOLATIONS.md identifies that Order entity importing TypeORM decorators violates the dependency rule (inner layer importing from framework/outer layer)",
"max_score": 25
},
{
"name": "Concrete repository instantiation violation identified",
"description": "VIOLATIONS.md identifies that CreateOrderUseCase directly instantiates PostgresOrderRepository, bypassing interface abstraction",
"max_score": 25
},
{
"name": "Entity fix: remove decorators and persist logic",
"description": "VIOLATIONS.md explains that Order should be a plain TypeScript class with no TypeORM imports; the repository adapter handles mapping",
"max_score": 20
},
{
"name": "Use case fix: depend on interface not implementation",
"description": "VIOLATIONS.md explains the use case should receive IOrderRepository via constructor injection, not instantiate PostgresOrderRepository directly",
"max_score": 20
},
{
"name": "Inward dependency rule stated",
"description": "VIOLATIONS.md states the general principle (dependencies point inward; inner layers must not import outer layers)",
"max_score": 10
}
]
}clean-architecture
evals
references
design-patterns
solid-principles
testable-design