{
  "slug": "dagger-filesystem-stat-calls-a4bbac4afaff",
  "title": "Dagger filesystem Stat calls",
  "tools": [
    "dagger"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-01-07T23:25:38.000Z",
  "announced_at": "2026-01-07T23:25:38.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When inspecting filesystem status in a Dagger module, call `directory.stat(path: <path>)` or `container.stat(path: <path>)`. Read the returned `Stat` fields for the status details documented for your API version.",
    "examples": [
      "directory.stat(path: \"/file.txt\")",
      "container.stat(path: \"/file.txt\")"
    ],
    "gotchas": [
      "Version: v0.19.9",
      "path (required): Path to stat; e.g. `/file.txt`.",
      "doNotFollowSymlinks: If true, do not follow symlinks; defaults to false.",
      "Stat.fileType: File type.",
      "Stat.name (required): File name.",
      "Stat.permissions (required): Permission bits.",
      "Docs conflict: The inspected official documentation is for Dagger v0.19.11, newer than the card's v0.19.9. The current API reference lists `fileType`, `name`, and `permissions` on `Stat`; it does not list a size field. This differs from the release note's example of status including size, so size is omitted."
    ]
  },
  "why_it_matters": "Inspect a file or directory's filesystem status while implementing or debugging a Dagger module.",
  "sources": [
    "https://github.com/dagger/dagger/releases/tag/v0.19.9",
    "https://github.com/dagger/dagger/pull/11403",
    "https://docs.dagger.io/0.19.11/reference/api/directory/",
    "https://docs.dagger.io/0.19.11/reference/api/container/",
    "https://docs.dagger.io/api/reference/"
  ],
  "rank": 0.96025,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2a-20261017",
    "verdict_id": "wave2a-20261017:wave2a-20261017-62defc0e8ff69cc1-0:gate",
    "evidence_hash": "32b13853f9a6608ae22004302460f7997fe03264bd6b577fcad502e4cb8ca8ab"
  },
  "review": {
    "draft_hash": "986fa80e03b53006031ba3d482c752a901ccf9e2c52c061c2d7e1b0a9de4b39e",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2a-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.96 >= 0.9; 2 needed) and Jev gave 0.78 (>= 0.6 needed)."
  }
}
