Blocks merging the #38 branch (loop/3my33bvptg222).
Problem #
Since the kind column was added (#38), editing an automation writes a delivery_logs row with kind = 'automation-updated', dryRun = false and statusCode = null. The session-loss check reads the last N non-dry-run rows and requires all of them to be 401, so a marker in that window breaks the streak. An automation whose session is gone keeps running if the owner edits it while it is failing.
Evidence #
lib/jetstream/session-loss.ts:25-34, branchloop/3my33bvptg222(40136b2)lib/automations/update-log.ts:91-101, same branch
Expected #
The streak counts only delivery rows (kind IS NULL), as the activity summary and stats already do since 94e2a89.
Acceptance criteria #
Out of scope #
Writing markers for system disables (dry-run expiry, session loss). File that separately if wanted.
Queued: the loop will work on this version of the issue.
loop:queued cid=bafyreigy2kobhmx3svoebcgskbtlzmlbyc24ppvmojstkj7irtgaw5bxry