{
  "schemaVersion": 1,
  "kind": "source-derived-contract",
  "reviewed": "2026-11-09",
  "scope": "Linux v6.12 build_open_flags, for otherwise valid arguments; not native measurements.",
  "rows": [
    {
      "flags": "O_RDONLY",
      "stage": "Lookup",
      "result": "Eligible for cache-only lookup; success is not guaranteed.",
      "source": "open-source"
    },
    {
      "flags": "O_RDWR | O_CREAT",
      "stage": "Flag validation",
      "result": "EAGAIN before pathname lookup, even for an existing file.",
      "source": "open-source"
    },
    {
      "flags": "O_RDWR | O_TRUNC",
      "stage": "Flag validation",
      "result": "EAGAIN before pathname lookup.",
      "source": "open-source"
    },
    {
      "flags": "O_RDWR | O_TMPFILE",
      "stage": "Flag validation",
      "result": "EAGAIN before pathname lookup.",
      "source": "open-source"
    }
  ],
  "sources": [
    {
      "id": "open-source",
      "url": "https://github.com/torvalds/linux/blob/v6.12/fs/open.c",
      "sha256": "587769343f2fc32552fb8593138c72f47110de8b7933f921a0bf9b627282b59a",
      "locator": "build_open_flags; do_sys_openat2"
    },
    {
      "id": "namei-source",
      "url": "https://github.com/torvalds/linux/blob/v6.12/fs/namei.c",
      "sha256": "e001108362e1a2d3f02383591d80bc72979d202786a26eb02d26eeb97009ea25",
      "locator": "step_into; complete_walk; do_open"
    },
    {
      "id": "openat2-api",
      "url": "https://man7.org/linux/man-pages/man2/openat2.2.html",
      "sha256": "c80f85bca4a6babd75fadb7f6730cd78a9a00f072df9346a9a20e01e22b28e4a",
      "locator": "RESOLVE_CACHED; ERRORS"
    }
  ],
  "limits": [
    "No latency, hit-rate, payload-residency or crash-durability measurement.",
    "An attempted native probe returned ENOSYS before its first test case; no native outcome is inferred.",
    "Earlier argument validation can reject malformed flags, modes or structure sizes before the cache-only guard."
  ]
}
