or run

npx @tessl/cli init
Log in

Version

Files

docs

index.md
tile.json

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses the promise.allsettled package to handle mixed collections of promises, thenables, and values. The focus is on proper package integration and leveraging its ES abstract operations capabilities for spec-compliant promise resolution.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Package Import",
      "description": "Correctly imports the promise.allsettled package using require('promise.allsettled') or one of its sub-modules (implementation, polyfill, shim, or auto)",
      "max_score": 15
    },
    {
      "name": "Core Function Usage",
      "description": "Uses the imported allSettled function (or Promise.allSettled after shimming) to process the input iterable",
      "max_score": 30
    },
    {
      "name": "Thenable Handling",
      "description": "Relies on the package's built-in thenable resolution capability (via PromiseResolve abstract operation) rather than manually detecting or converting thenables",
      "max_score": 25
    },
    {
      "name": "Result Format",
      "description": "Returns results in the correct format as produced by promise.allsettled: objects with 'status' field set to 'fulfilled' or 'rejected', and corresponding 'value' or 'reason' fields",
      "max_score": 20
    },
    {
      "name": "Direct Pass-through",
      "description": "Passes the input iterable directly to the package function without unnecessary pre-processing or manual promise wrapping",
      "max_score": 10
    }
  ]
}