docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "This criteria evaluates how well the engineer uses the cli package's HTTP server creation capabilities with middleware stack pattern. The focus is on proper usage of cli.createServer() with multiple middleware functions that follow the (req, res, next) signature pattern.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses cli.createServer",
"description": "Uses cli.createServer() method to create the HTTP server instead of using Node's native http.createServer()",
"max_score": 25
},
{
"name": "Middleware function signature",
"description": "Implements middleware functions with the correct (req, res, next) signature pattern as expected by the cli middleware stack",
"max_score": 20
},
{
"name": "Multiple middleware layers",
"description": "Passes multiple middleware functions to cli.createServer() to create a layered middleware stack (at least two middleware functions)",
"max_score": 20
},
{
"name": "Logging middleware implementation",
"description": "Creates a logging middleware function that logs request details and calls next() to pass control to the next middleware in the stack",
"max_score": 15
},
{
"name": "Response middleware implementation",
"description": "Creates a response middleware function that formats and sends JSON response containing request information",
"max_score": 15
},
{
"name": "Server lifecycle management",
"description": "Properly starts the server using the listen() method on the server instance returned by cli.createServer()",
"max_score": 5
}
]
}