Repository navigation
Description
Two crash and replay paths remain after the final review round for PR #119.
-
A watcher can append a detailed stalled wake and exit before writing the active episode marker.
When the daemon processes an older generic wake first, its begin path has no pane hash and does not resume the queued current-generation episode.
It advances the generation and produces two local alerts for one uninterrupted stall. -
A daemon-first generic stale can append an episode-bound local alert and fail before committing its receipt.
If the task recovers or retires before replay, the generic row is acknowledged without committing or dropping the pending bound alert.
The remaining@pipeline-stallrow makes every later escalation-buffer flush fail.
Expected behavior:
- Both watcher and daemon begin paths resume a matching queued episode at the current generation and stable stalled identity.
- Hash restoration depends on a pane hash, but joining the queued episode does not.
- Before a generic stale is reclassified or acknowledged, a matching live owner commits its exact pending bound episode and a retired owner drops only that exact row.
- Queue order, immutable episode bindings, receipt limits, and unrelated buffered rows remain unchanged.
- This covers local queue, buffer, receipt, and acknowledgement behavior only. It does not promise atomic external notification delivery.
Required regressions:
- Queue a generic stale, fault watcher publication after the detailed row is appended but before the marker is written, then let daemon processing handle the generic row first. Assert one generation, one local alert, one receipt, and one acknowledgement.
- Repeat with known recovery between publication and replay. Assert the old binding stays immutable and the next true stall gets one new generation and alert.
- Fault daemon receipt commit after a generic wake creates a bound alert. Test both recovery and metadata retirement before replay. Assert matching ownership commits once, retirement drops only the exact bound row, later alerts still flush, and receipt bytes follow the existing retirement contract.
Source: no-mistakes run 01M2JFX9A8VCQX1M1DW1SXXRN9, review of 4e73407b8ca4695599cb708f2e252b700e8f3c7d.
Activity