forked from cflmy/deepseek-harness
Each appended batch queues for the next group commit; the yield before a group lets batches other writers append in the same turn share one transaction, so a checkpoint costs one commit and one fsync per group instead of per writer, and the synchronous transaction is bounded by an event cap. A batch failing on its own terms rolls back to its savepoint and rejects alone; an error that ends the transaction rejects the group.