reactivateSessionLostAutomations (lib/jetstream/session-loss.ts) writes a delivery_logs row with statusCode: null, error: null and the message "Re-enabled after re-authorization." getActivitySummary (lib/actions/activity-summary.ts) takes the newest resolved row as "Last delivery" and counts every row in "Last 7 days". activityBadge in app/routes/u/[handle]/[rkey]/index.tsx falls through to the "Success" badge for a row with no error and no status code. So after a re-auth, the automation page reports a successful delivery that never happened. That is the false "it works" signal #38 is about. I found this by reading those three functions while making the activity summary skip the new update markers (kind IS NULL).
Where to start: give these system rows (and the session-loss and rate-limit disable rows) a delivery_logs.kind value, as the update markers now have, so the summary and the log views can treat them as markers. Or exclude statusCode IS NULL AND error IS NULL AND run_id IS NULL from the summary.
Found by the loop while working on #38, rkey 38, branch loop/38, merged onto main as 398d2142bd7f.
Queued: the loop will work on this version of the issue.
loop:queued cid=bafyreidh5zhvnnoiwu4uu77zivhqd3pfxwpz6fzqjar4y5bncujud6ejq4