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 streaming input capabilities to process log files, with specific focus on EOF detection and the withInput method for memory-efficient line-by-line processing.",
"type": "weighted_checklist",
"checklist": [
{
"name": "withInput usage",
"description": "Uses cli.withInput() method to process input in a streaming manner rather than reading the entire file into memory at once",
"max_score": 30
},
{
"name": "EOF parameter handling",
"description": "Correctly uses the eof parameter (third argument) in the withInput callback to detect when the end of file is reached",
"max_score": 25
},
{
"name": "Line-by-line processing",
"description": "Implements the callback function with the correct signature (line, separator, eof) and processes each line individually within the callback",
"max_score": 20
},
{
"name": "Summary on EOF",
"description": "Outputs the summary report only when eof is true, ensuring the report is generated exactly once at the end of processing",
"max_score": 15
},
{
"name": "File or stdin",
"description": "Correctly passes either a file path or null/empty value to cli.withInput() to handle both file and stdin input scenarios",
"max_score": 10
}
]
}