docs
evals
scenario-1
scenario-10
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
{
"context": "Evaluates whether the solution leans on lodash's invocation control and memoization utilities to meet the toolkit spec. Emphasis is on using the library's built-ins instead of hand-rolled timing, caching, or single-run logic. Points reflect correct configuration and exposure of lodash behaviors.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Burst control",
"description": "Notifier wraps the sender with lodash `throttle` or `debounce` to fire immediately, coalesce rapid calls, and emit a trailing run with the latest payload instead of manual timers.",
"max_score": 35
},
{
"name": "Cancel support",
"description": "Provides cancellation via the lodash throttle/debounce `.cancel()` hook (or equivalent) to drop any pending trailing invocation.",
"max_score": 10
},
{
"name": "Run once",
"description": "One-time setup uses lodash `once` to guarantee a single execution and to return the initial resolved value to all callers.",
"max_score": 20
},
{
"name": "Memoized lookup",
"description": "Lookup wrapper is built on lodash `memoize`, supplying the optional resolver so cache keys respect the `makeKey` formatter and reuse results for matching keys.",
"max_score": 25
},
{
"name": "Deferred call",
"description": "Deferred execution employs lodash `delay` or `defer` to schedule the call after the requested wait while forwarding arguments, avoiding raw timer code.",
"max_score": 10
}
]
}