{
  "schemaVersion": 1,
  "firstFlowReceipt": "evidence/native-sqlite-2026-10-27.json",
  "cases": [
    {
      "id": "stale-order",
      "title": "Reject an expired order version",
      "rounds": 1,
      "acceptance": "Both native processes read version 1; commit B first, then reject A as an optimistic conflict. Preserve every field and timestamp of the authoritative winner."
    },
    {
      "id": "concurrent-same",
      "title": "Concurrent edits to one order",
      "rounds": 3,
      "acceptance": "Two processes reach the same barrier with version 1; release together, require exactly one commit and one optimistic conflict. Busy, locked and timeout failures never qualify."
    },
    {
      "id": "concurrent-distinct",
      "title": "Concurrent edits to different orders",
      "rounds": 3,
      "acceptance": "Two processes reach the same barrier on distinct version-1 orders; both commits succeed and each order retains its own note. All items, amounts and unaffected rows remain unchanged."
    }
  ],
  "writeField": "order_note",
  "auditReason": "Revise Order note with optimistic version",
  "notes": {
    "a": "Delivery note from writer A",
    "b": "Delivery note from writer B"
  },
  "targets": {
    "a": "ORD-2026-1001",
    "bDistinct": "ORD-2026-1002"
  },
  "phase": "worker",
  "readbackPhase": "p1-read"
}
