Skip to content

Daily digest counts the last 24 hours and names its workspace - #153

Merged
ralyodio merged 1 commit into
mainfrom
fix/autopilot-zero-sends
Oct 7, 2026
Merged

ralyodio merged 1 commit into
mainfrom
fix/autopilot-zero-sends

Conversation

@ralyodio

@ralyodio ralyodio commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

Anthony forwarded the 2026-10-07 digest "32 new leads, 0 sent" asking why sends are always zero.

What was actually going on (prod, 2026-10-07):

  • That digest was the Claude Diag test workspace's (7 sites, 32 people, 0 sends: an exact match), delivered to claude-diag-535e76@profullstack.com which lands in Anthony's inbox. His real workspace's digest the same minute said "804 new leads, 17 sent".
  • Autopilot in the real workspace is sending: 14-18 emails a day this week, all 75 campaigns trusted_automation.
  • But the digest undercounted: it is sent at 13:00 UTC and counted since midnight UTC, so afternoon sends were never in any digest (09-28: 64 sent, reported 3; 10-03: 15 sent, reported 2; 10-05: 14 sent, reported 2).

Changes

  • Every digest count covers the 24 hours before it is sent.
  • Subject + header name the workspace (17 sent · anthony@profullstack.com workspace · OutreachGraph).
  • Hold notes group by their reader-facing label, so "4 held: desk" + "1 held: desk" is one line; business-hours holds get a short label.

Tests: notify.test.ts adds a 24h-window test (sends at -2h/-16h/-20h counted, -30h not) and a merged-notes test. notify/autopilot/email suites pass against Postgres 17 locally (81 pass).

🤖 Generated with Claude Code

The digest goes out at 13:00 UTC but counted from midnight UTC, so it only
ever saw the morning: 2026-09-28 sent 64 and reported 3, 2026-10-05 sent 14
and reported 2, and anything sent after the digest hour was never counted by
any digest. Every count now covers the 24 hours before the send.

The subject and header now name the workspace. Anthony gets two digests a
day, his own and the Claude Diag test workspace's, and the test one (no
mailbox, desk-only queue) always said "0 sent", which read as autopilot being
stalled while his real workspace was sending 14-17 a day.

Holds that read the same are one note ("5 held: a support or abuse desk"
instead of 4 and 1), and the business-hours hold has a short label.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ralyodio
ralyodio merged commit 38a224b into main Oct 7, 2026
3 checks passed
@ralyodio ralyodio mentioned this pull request Oct 7, 2026
ralyodio added a commit that referenced this pull request Oct 7, 2026
Daily digest counts the last 24 hours and names its workspace (#153).

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant