{
  "schemaVersion": 1,
  "evidenceType": "synthetic finite byte-assignment illustration",
  "initial": [
    0,
    0,
    7
  ],
  "log": [
    {
      "lsn": 10,
      "offset": 0,
      "bytes": [
        1,
        2
      ]
    },
    {
      "lsn": 20,
      "offset": 0,
      "bytes": [
        3
      ]
    }
  ],
  "expected": [
    3,
    2,
    7
  ],
  "startStateRule": "Independent per-byte choices from forward-history values; untouched byte remains 7.",
  "scenarios": [
    {
      "name": "complete_ordered",
      "lsns": [
        10,
        20
      ],
      "matchingStates": 6,
      "totalStates": 6,
      "rows": [
        {
          "start": [
            0,
            0,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            0,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            1,
            0,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            1,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            3,
            0,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            3,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        }
      ]
    },
    {
      "name": "complete_ordered_twice",
      "lsns": [
        10,
        20,
        10,
        20
      ],
      "matchingStates": 6,
      "totalStates": 6,
      "rows": [
        {
          "start": [
            0,
            0,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            0,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            1,
            0,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            1,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            3,
            0,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            3,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        }
      ]
    },
    {
      "name": "reversed",
      "lsns": [
        20,
        10
      ],
      "matchingStates": 0,
      "totalStates": 6,
      "rows": [
        {
          "start": [
            0,
            0,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            0,
            2,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            1,
            0,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            1,
            2,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            3,
            0,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            3,
            2,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        }
      ]
    },
    {
      "name": "stale_first_entry_after_complete",
      "lsns": [
        10,
        20,
        10
      ],
      "matchingStates": 0,
      "totalStates": 6,
      "rows": [
        {
          "start": [
            0,
            0,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            0,
            2,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            1,
            0,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            1,
            2,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            3,
            0,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            3,
            2,
            7
          ],
          "end": [
            1,
            2,
            7
          ],
          "matchesExpected": false
        }
      ]
    },
    {
      "name": "missing_first_entry",
      "lsns": [
        20
      ],
      "matchingStates": 3,
      "totalStates": 6,
      "rows": [
        {
          "start": [
            0,
            0,
            7
          ],
          "end": [
            3,
            0,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            0,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            1,
            0,
            7
          ],
          "end": [
            3,
            0,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            1,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        },
        {
          "start": [
            3,
            0,
            7
          ],
          "end": [
            3,
            0,
            7
          ],
          "matchesExpected": false
        },
        {
          "start": [
            3,
            2,
            7
          ],
          "end": [
            3,
            2,
            7
          ],
          "matchesExpected": true
        }
      ]
    }
  ],
  "interruptedReplay": {
    "rule": "For every start, replay prefix and per-byte persistence mask, restart the complete ordered log.",
    "pathsChecked": 144,
    "pathsRestored": 144,
    "countsAreDistinctStates": false
  },
  "stateReadingExample": {
    "initial": [
      2,
      0,
      7
    ],
    "operationsInOrder": [
      "byte[1] = byte[0]",
      "byte[0] = 3"
    ],
    "afterForwardCopy": [
      2,
      2,
      7
    ],
    "expected": [
      3,
      2,
      7
    ],
    "afterForwardSequence": [
      3,
      2,
      7
    ],
    "afterRepeatedCopy": [
      3,
      3,
      7
    ],
    "afterRepeatedSequence": [
      3,
      3,
      7
    ],
    "loggedAfterImage": [
      {
        "lsn": 10,
        "offset": 1,
        "bytes": [
          2
        ]
      },
      {
        "lsn": 20,
        "offset": 0,
        "bytes": [
          3
        ]
      }
    ],
    "startStateRule": "Independent per-byte choices from this copy example's forward history.",
    "totalStates": 4,
    "stateReadingMatchingStates": 2,
    "blindMatchingStates": 4,
    "rows": [
      {
        "start": [
          2,
          0,
          7
        ],
        "stateReadingEnd": [
          3,
          2,
          7
        ],
        "blindEnd": [
          3,
          2,
          7
        ],
        "stateReadingMatches": true,
        "blindMatches": true
      },
      {
        "start": [
          2,
          2,
          7
        ],
        "stateReadingEnd": [
          3,
          2,
          7
        ],
        "blindEnd": [
          3,
          2,
          7
        ],
        "stateReadingMatches": true,
        "blindMatches": true
      },
      {
        "start": [
          3,
          0,
          7
        ],
        "stateReadingEnd": [
          3,
          3,
          7
        ],
        "blindEnd": [
          3,
          2,
          7
        ],
        "stateReadingMatches": false,
        "blindMatches": true
      },
      {
        "start": [
          3,
          2,
          7
        ],
        "stateReadingEnd": [
          3,
          3,
          7
        ],
        "blindEnd": [
          3,
          2,
          7
        ],
        "stateReadingMatches": false,
        "blindMatches": true
      }
    ],
    "interpretation": "Each operation is idempotent on its own. Repeating both in the same order still fails after the source byte changes. Logging the original copied value removes this state dependency for the selected states."
  },
  "limits": [
    "No probability distribution is assigned to states or paths.",
    "A complete retained log and correct untouched bytes are assumed.",
    "This is redo only; undo, allocation and page-type changes are excluded.",
    "This is not execution of Stasis, physical fault injection or a performance measurement."
  ]
}
