{
  "schemaVersion": 1,
  "method": "Deterministic sequential state model, not Linux execution or a device measurement.",
  "sourceVersion": "Linux v6.12",
  "sources": [
    "https://github.com/torvalds/linux/blob/v6.12/lib/errseq.c",
    "https://github.com/torvalds/linux/blob/v6.12/include/linux/err.h",
    "https://docs.kernel.org/core-api/errseq.html"
  ],
  "parameters": {
    "wordBits": 32,
    "errnoBits": 12,
    "seenBits": 1,
    "counterBits": 19,
    "counterPeriod": 524288
  },
  "cases": {
    "coalesced": {
      "recordings": 10,
      "state": 5,
      "firstReport": -5,
      "secondReport": 0
    },
    "overwritten": {
      "errorsRecorded": [
        -5,
        -28
      ],
      "report": -28
    },
    "checkOnly": {
      "first": -5,
      "second": -5,
      "stateAfter": 5
    },
    "newObservers": {
      "unseenCursor": 0,
      "seenCursor": 4101,
      "unseenReport": -5,
      "seenReport": 0
    },
    "wrap": {
      "additionalRecordings": 524288,
      "activeReports": 524288,
      "dormantCursor": 4101,
      "finalState": 4101,
      "beforeWrap": -5,
      "dormantReport": 0
    }
  },
  "limitations": [
    "No concurrent updates, compare-and-swap races, filesystem callbacks, device I/O or data recovery.",
    "The wrap example holds errno constant and lets a second observer mark every event seen.",
    "The counter period is not a bound on raw device failures or elapsed time.",
    "Negative values are helper-level errno values, not the userspace fsync return convention."
  ],
  "modelSha256": "6b4697b8fcda79eb4420ba1495e81e6860850753a5dba8eb69108b0197598ce6"
}
