From 568a25f975e281410d630a08009b410d73e05b74 Mon Sep 17 00:00:00 2001 From: martbost Date: Sun, 11 Oct 2026 08:39:16 -0500 Subject: [PATCH] Coach mail only to members who have signed in here: carried-over shells get no nudges or weekly digests Since the soft open (coachMail/memberWeeklyEmail on, 2026-10-10 11 AM CT) the hourly sweeps mailed carried InstantAdPay shells that never joined LinkSpin: 720 nudges and 690 digests by 8:30 AM CT 2026-10-11 (Harvey forwarded one). Both loops now skip accounts with no lastSeen. Co-Authored-By: Claude Fable 5.1 --- coach.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/coach.js b/coach.js index 5dd705a..d5c957e 100644 --- a/coach.js +++ b/coach.js @@ -219,6 +219,7 @@ async function nudgeTick() { const all = await accounts.listAll(5000); for (const acct of all) { if (!acct.email || !acct.created || now - acct.created < STALL_DAYS * DAY) continue; + if (!acct.lastSeen || acct.joinedVia === 'carried' && !acct.lastSeen) continue; // never signed in here (carried-over shells from InstantAdPay): no coaching mail, ever (2026-10-11: Harvey got a nudge for a site he never joined) const c = await describe(acct, now); if (!c.stalled) continue; const R = RUNGS[c.rung]; if (!R.mail) continue; @@ -236,7 +237,7 @@ async function nudgeTick() { let lbWeek = null; try { lbWeek = X.lb ? await X.lb().view('week') : null; } catch (e) {} let tankN = 0; try { tankN = X.tank ? (await X.tank.waiting()).length : 0; } catch (e) {} for (const acct of all) { - if (!acct.email) continue; + if (!acct.email || !acct.lastSeen) continue; // weekly mail only to people who have actually signed in here const lastD = await impl().lastDigest(acct.email); if (now - lastD < 7 * DAY) continue; if (now - (acct.lastSeen || acct.created || 0) > 45 * DAY) { await impl().setDigest(acct.email, now); continue; } // gone quiet for six weeks: leave them to the nudges