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 correctly separates controller (HTTP translation) from use case (business logic), with the controller calling the use case and not performing any business calculation itself.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Controller is thin",
"description": "order-controller.ts contains no business logic — it extracts req.body fields and delegates to the use case, then formats the HTTP response",
"max_score": 25
},
{
"name": "Business logic moved to use case",
"description": "place-order.ts contains the inventory validation, price calculation, order creation, and email notification logic",
"max_score": 25
},
{
"name": "Use case has no HTTP imports",
"description": "place-order.ts does not import from express and does not accept Request or Response parameters",
"max_score": 20
},
{
"name": "Use case accepts typed input",
"description": "place-order.ts function accepts a typed input (userId and items) rather than the raw HTTP request object",
"max_score": 15
},
{
"name": "Same observable behavior preserved",
"description": "The controller still returns 400 on insufficient stock and 201 with orderId and total on success",
"max_score": 15
}
]
}clean-architecture
evals
references
design-patterns
solid-principles
testable-design