Quiet hub accounts (Marty 2026-11-14, join one = join all): accounts the hub makes here get joinedRef 'hub', and accounts.listAll leaves out hub-made accounts that never signed in unless { shells: true }, so no mailing or sweep (updates 'all', launch week, coach, leaderboard) reaches them. hubsync/launchweek/sponsorfollow/tank-cap tests pass

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-14 09:10:11 -06:00
parent 42cbe96979
commit fb84d1545d
3 changed files with 11 additions and 3 deletions
+4 -1
View File
@@ -73,7 +73,10 @@ const W = n => '0x' + String(n).padStart(40, '0');
await hooks.tick();
const ann = await accounts.byEmail(E('ann')), bob = await accounts.byEmail(E('bob'));
assert.ok(ann && bob, 'shells created');
assert.strictEqual(bob.joinedVia, 'carried'); assert.strictEqual(bob.joinedRef, 'network');
assert.strictEqual(bob.joinedVia, 'carried'); assert.strictEqual(bob.joinedRef, 'hub');
// quiet (2026-11-14): hub-made accounts that never signed in are out of every default list (mailings, sweeps), in with { shells: true }
assert.ok(!(await accounts.listAll(1000)).some(a => a.email === E('bob')), 'hub shell left out of default lists');
assert.ok((await accounts.listAll(1000, { shells: true })).some(a => a.email === E('bob')), 'hub shell listed with shells: true');
assert.strictEqual(bob.username, 'bobby'); assert.strictEqual((await accounts.sponsorOf(E('bob'))).email, E('ann'));
assert.strictEqual((await registry.get(E('bob'))).firstProperty, 'ctb');
assert.strictEqual(hubsync.adminView().stats.shells, 2);