or run

npx @tessl/cli init
Log in

Version

Files

docs

index-management.mdindex.mdlisting.mdreading.mdremoval.mdutilities.mdverification.mdwriting.md
tile.json

rubric.jsonevals/scenario-7/

{
  "context": "Evaluates use of cacache's digest-addressable read APIs to fetch, stream, and copy cached content for a provided integrity digest without relying on key-based lookups. Points focus on correct selection of byDigest helpers and preserving integrity/size semantics during reads.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Digest fetch",
      "description": "Implements buffered reads with `cacache.get.byDigest`, returning data/metadata/integrity/size and surfacing not-found errors without falling back to key-based `get`.",
      "max_score": 30
    },
    {
      "name": "Digest stream",
      "description": "Streams content via `cacache.get.stream.byDigest`, piping data from the returned stream and handling end/error events rather than manual file reads.",
      "max_score": 25
    },
    {
      "name": "Digest copy",
      "description": "Copies content using `cacache.get.copy.byDigest` (or equivalent) to the target path and preserves reported size/integrity instead of manually reading/writing files.",
      "max_score": 25
    },
    {
      "name": "Digest-only addressing",
      "description": "Avoids key-based cache operations; all reads and copies are addressed solely by the provided integrity digest, optionally reusing `memoize` options from cacache APIs.",
      "max_score": 20
    }
  ]
}