{
  "label": "Executed local SQLite fault-injection benchmark",
  "executedAt": "2026-11-04T01:19:52.251303+00:00",
  "seed": 20261104,
  "jobsPerTrial": 500,
  "repetitions": 20,
  "warmupsPerStrategy": 1,
  "faults": {
    "offlineFirstAttempt": 125,
    "lostFirstAck": 50,
    "overlap": 15
  },
  "environment": {
    "python": "3.12.14",
    "sqlite": "3.53.1",
    "os": "Windows",
    "machine": "AMD64",
    "journal": "WAL",
    "synchronous": "FULL"
  },
  "results": [
    {
      "strategy": "one_shot",
      "jobs": 500,
      "acknowledged": 340,
      "uniqueApplied": 375,
      "notApplied": 125,
      "totalEffects": 375,
      "duplicateEffects": 0,
      "attempts": 500,
      "elapsedMedianMs": 409.8478,
      "elapsedMinMs": 388.9874,
      "elapsedMaxMs": 476.902,
      "elapsedP95Ms": 431.9876
    },
    {
      "strategy": "retry_without_key",
      "jobs": 500,
      "acknowledged": 500,
      "uniqueApplied": 500,
      "notApplied": 0,
      "totalEffects": 550,
      "duplicateEffects": 50,
      "attempts": 675,
      "elapsedMedianMs": 602.4672,
      "elapsedMinMs": 594.1326,
      "elapsedMaxMs": 636.501,
      "elapsedP95Ms": 634.179
    },
    {
      "strategy": "retry_with_key",
      "jobs": 500,
      "acknowledged": 500,
      "uniqueApplied": 500,
      "notApplied": 0,
      "totalEffects": 500,
      "duplicateEffects": 0,
      "attempts": 675,
      "elapsedMedianMs": 585.0043000000001,
      "elapsedMinMs": 565.383,
      "elapsedMaxMs": 664.6934,
      "elapsedP95Ms": 621.3498
    }
  ],
  "restartCheck": {
    "initialQueueRecovered": 500,
    "secondRestartPending": 250,
    "finalUniqueApplied": 500,
    "finalDuplicateEffects": 0,
    "finalPending": 0,
    "connectionReopens": 2,
    "limitation": "Controlled close/reopen test only. No OS process kill, disk failure, network stack, or power-cut durability test."
  },
  "limitations": [
    "Synthetic jobs and deterministic injected exceptions; no production traffic or customer records.",
    "Each eligible job has at most one failure before write and one lost acknowledgement after a committed write.",
    "Retry budget is three immediate attempts, no backoff; real persistent outages can outlast any finite budget.",
    "All strategies see the same trace; execution order rotates; one warmup per strategy excluded.",
    "Local elapsed time excludes database setup and cannot establish network throughput or production response time.",
    "Idempotency prevents repeated effects for the SAME stable job key in this one database transaction.",
    "Distinct keys for duplicate user intent, external side effects, concurrent writers, retention expiry, malicious replay and multi-region consistency are not tested.",
    "Controlled outbox restart test closes/reopens connections, not OS kill or power-cut recovery."
  ],
  "sourceId": "softworks-benchmark"
}
