{
  "recorded_at": "2026-09-10T07:59:11.448623+00:00",
  "kafka": "4.0.2",
  "confluent_kafka": "2.12.0",
  "librdkafka": "2.12.0",
  "python": "3.9.6",
  "sqlite": "3.51.0",
  "platform": "Darwin",
  "architecture": "arm64",
  "java": "openjdk version \"21.0.12.1\" 2026-08-18 LTS\nOpenJDK Runtime Environment Temurin-21.0.12.1+1 (build 21.0.12.1+1-LTS)\nOpenJDK 64-Bit Server VM Temurin-21.0.12.1+1 (build 21.0.12.1+1-LTS, mixed mode, sharing)",
  "script_sha256": "ff1e64800c42bb57ab574d50d9313ae5a3d1ab2ec3236feba510ba2e0e460c7c",
  "fill": {
    "source": "teaching-exchange",
    "account": "demo-account",
    "instrument": "TEST",
    "fill_id": "F1",
    "quantity": 1
  },
  "consumer_config": {
    "group.id": "per-case",
    "enable.auto.commit": false,
    "enable.auto.offset.store": false,
    "auto.offset.reset": "earliest",
    "group.protocol": "classic",
    "session.timeout.ms": 6000,
    "heartbeat.interval.ms": 1000
  },
  "database": {
    "journal_mode": "DELETE",
    "synchronous": "FULL"
  },
  "scope": "Single local KRaft broker; one partition and one active consumer per case; external SQLite ledger; constructed fill; consumer SIGKILL only.",
  "cases": [
    {
      "name": "mark-first",
      "topic": "fills-mark-first",
      "group": "ledger-mark-first",
      "producer_idempotence": true,
      "producer_acknowledgments": [
        {
          "partition": 0,
          "offset": 0
        }
      ],
      "before": {
        "holding": 0,
        "processed_fills": [],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "first_process": {
        "exit_code": -9,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-mark-first"
          },
          {
            "event": "checkpoint",
            "name": "marker-committed"
          }
        ]
      },
      "after_crash": {
        "holding": 0,
        "processed_fills": [
          {
            "source": "teaching-exchange",
            "account": "demo-account",
            "fill_id": "F1",
            "payload_sha256": "e7e6bf93615083f829ad1c4df4eb9807207f4fdf4f71d676b90cc8325b286cc3"
          }
        ],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "recovery_process": {
        "exit_code": 0,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-mark-first"
          },
          {
            "event": "database-result",
            "quantity": 0,
            "result": "duplicate-skipped"
          },
          {
            "event": "offset-committed",
            "next_offset": 1
          }
        ]
      },
      "after_recovery": {
        "holding": 0,
        "processed_fills": [
          {
            "source": "teaching-exchange",
            "account": "demo-account",
            "fill_id": "F1",
            "payload_sha256": "e7e6bf93615083f829ad1c4df4eb9807207f4fdf4f71d676b90cc8325b286cc3"
          }
        ],
        "committed_next_offset": 1,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      }
    },
    {
      "name": "effect-first",
      "topic": "fills-effect-first",
      "group": "ledger-effect-first",
      "producer_idempotence": true,
      "producer_acknowledgments": [
        {
          "partition": 0,
          "offset": 0
        }
      ],
      "before": {
        "holding": 0,
        "processed_fills": [],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "first_process": {
        "exit_code": -9,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-effect-first"
          },
          {
            "event": "checkpoint",
            "name": "effect-committed"
          }
        ]
      },
      "after_crash": {
        "holding": 1,
        "processed_fills": [],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "recovery_process": {
        "exit_code": 0,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-effect-first"
          },
          {
            "event": "database-result",
            "quantity": 2,
            "result": "applied"
          },
          {
            "event": "offset-committed",
            "next_offset": 1
          }
        ]
      },
      "after_recovery": {
        "holding": 2,
        "processed_fills": [
          {
            "source": "teaching-exchange",
            "account": "demo-account",
            "fill_id": "F1",
            "payload_sha256": "e7e6bf93615083f829ad1c4df4eb9807207f4fdf4f71d676b90cc8325b286cc3"
          }
        ],
        "committed_next_offset": 1,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      }
    },
    {
      "name": "atomic-before-commit",
      "topic": "fills-atomic-before-commit",
      "group": "ledger-atomic-before-commit",
      "producer_idempotence": true,
      "producer_acknowledgments": [
        {
          "partition": 0,
          "offset": 0
        }
      ],
      "before": {
        "holding": 0,
        "processed_fills": [],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "first_process": {
        "exit_code": -9,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-atomic-before-commit"
          },
          {
            "event": "checkpoint",
            "name": "transaction-open"
          }
        ]
      },
      "after_crash": {
        "holding": 0,
        "processed_fills": [],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "recovery_process": {
        "exit_code": 0,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-atomic-before-commit"
          },
          {
            "event": "database-result",
            "quantity": 1,
            "result": "applied"
          },
          {
            "event": "offset-committed",
            "next_offset": 1
          }
        ]
      },
      "after_recovery": {
        "holding": 1,
        "processed_fills": [
          {
            "source": "teaching-exchange",
            "account": "demo-account",
            "fill_id": "F1",
            "payload_sha256": "e7e6bf93615083f829ad1c4df4eb9807207f4fdf4f71d676b90cc8325b286cc3"
          }
        ],
        "committed_next_offset": 1,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      }
    },
    {
      "name": "atomic-after-commit",
      "topic": "fills-atomic-after-commit",
      "group": "ledger-atomic-after-commit",
      "producer_idempotence": true,
      "producer_acknowledgments": [
        {
          "partition": 0,
          "offset": 0
        }
      ],
      "before": {
        "holding": 0,
        "processed_fills": [],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "first_process": {
        "exit_code": -9,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-atomic-after-commit"
          },
          {
            "event": "checkpoint",
            "name": "transaction-committed"
          }
        ]
      },
      "after_crash": {
        "holding": 1,
        "processed_fills": [
          {
            "source": "teaching-exchange",
            "account": "demo-account",
            "fill_id": "F1",
            "payload_sha256": "e7e6bf93615083f829ad1c4df4eb9807207f4fdf4f71d676b90cc8325b286cc3"
          }
        ],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      },
      "recovery_process": {
        "exit_code": 0,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-atomic-after-commit"
          },
          {
            "event": "database-result",
            "quantity": 1,
            "result": "duplicate-skipped"
          },
          {
            "event": "offset-committed",
            "next_offset": 1
          }
        ]
      },
      "after_recovery": {
        "holding": 1,
        "processed_fills": [
          {
            "source": "teaching-exchange",
            "account": "demo-account",
            "fill_id": "F1",
            "payload_sha256": "e7e6bf93615083f829ad1c4df4eb9807207f4fdf4f71d676b90cc8325b286cc3"
          }
        ],
        "committed_next_offset": 1,
        "topic_low_offset": 0,
        "topic_next_offset": 1
      }
    },
    {
      "name": "atomic-new-offset",
      "topic": "fills-atomic-new-offset",
      "group": "ledger-atomic-new-offset",
      "producer_idempotence": true,
      "producer_acknowledgments": [
        {
          "partition": 0,
          "offset": 0
        },
        {
          "partition": 0,
          "offset": 1
        }
      ],
      "before": {
        "holding": 0,
        "processed_fills": [],
        "committed_next_offset": 0,
        "topic_low_offset": 0,
        "topic_next_offset": 2
      },
      "recovery_process": {
        "exit_code": 0,
        "events": [
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 0,
            "partition": 0,
            "topic": "fills-atomic-new-offset"
          },
          {
            "event": "database-result",
            "quantity": 1,
            "result": "applied"
          },
          {
            "event": "offset-committed",
            "next_offset": 1
          },
          {
            "event": "received",
            "fill": {
              "account": "demo-account",
              "fill_id": "F1",
              "instrument": "TEST",
              "quantity": 1,
              "source": "teaching-exchange"
            },
            "offset": 1,
            "partition": 0,
            "topic": "fills-atomic-new-offset"
          },
          {
            "event": "database-result",
            "quantity": 1,
            "result": "duplicate-skipped"
          },
          {
            "event": "offset-committed",
            "next_offset": 2
          }
        ]
      },
      "after_recovery": {
        "holding": 1,
        "processed_fills": [
          {
            "source": "teaching-exchange",
            "account": "demo-account",
            "fill_id": "F1",
            "payload_sha256": "e7e6bf93615083f829ad1c4df4eb9807207f4fdf4f71d676b90cc8325b286cc3"
          }
        ],
        "committed_next_offset": 2,
        "topic_low_offset": 0,
        "topic_next_offset": 2
      }
    }
  ]
}
