mirror of
https://github.com/joelhooks/joelclaw.git
synced 2026-09-19 01:24:04 +08:00
7e2fb01252
Capture clients (pi, claude, codex) send byte-accurate from_offset, to_offset, jsonl_sha256, and deterministic source_identity. Stale cursors coalesce into one pending outbox segment under one Run ID. capture-outbox-replay.ts is the only replay implementation; the audit script fails closed on legacy flags and the scheduled nas-backup caller is migrated. Raw Run writes reject divergent redelivery; a larger proven-prefix body returns accepted_prefix without overwrite. Verified adversarially (multi-byte offsets, repeated stale cursors, fixture-only replay): 20 bun tests + 2 vitest + tsc clean. Receipts in .brain/projects/typesense-reboot-recovery/patch-verification.svx.