Skip to content

The worker gives accounts from before their starter Lists - #186

Merged
NiallJoeMaher merged 1 commit into
mainfrom
starters-backfill
Nov 24, 2026
Merged

NiallJoeMaher merged 1 commit into
mainfrom
starters-backfill

Conversation

@NiallJoeMaher

Copy link
Copy Markdown
Contributor

Summary

 runScheduled (every cron tick)
   runDueExpiry
   queueDueDigests
   pollInbound
   sortBackfill
+  startersBackfill
+    withoutStarters(20)          # no startersAt, and made more than ten minutes ago
+    giveStarters(id, { articles: false })   # the same once-per-account claim as before

Until now an account from before got Favourites and Ideas the first time its Lists were read. Someone who only used the share sheet, or whose AI looked first, did not see them until they opened Lists. The worker now gives them, twenty accounts a tick, so every account has them within minutes of this deploying. Reading Lists still gives them too; the claim makes sure nobody gets two sets.

An account made in the last ten minutes is passed by: its sign-up is still giving it the Lists and the two posts, and the worker must not get there first and leave it with the Lists only.

Evidence

  • Before: an account that never reads its Lists never gets the starter Lists.
    After: starters.test.ts, "the worker gives accounts from before their Lists unasked": two accounts, one with its own Ideas already. A run now gives nothing (both just made). A run an hour on gives one Favourites and Ideas, the other Favourites only (no twin Ideas), nothing in either Inbox, and a further run finds no one left.
  • account.test.ts, two-user test for withoutStarters: a claim takes one account off the list and leaves the other; a new account is not on it.
  • Typecheck, lint and both test files pass locally.

Merge Danger

Door: one-way, mildly

Blast Radius: accounts

On deploy, every existing account without the starter Lists gets two empty private Lists, sorted under its own. They are ordinary Lists and can be deleted, but they cannot be un-given in bulk. They are left out of the weekly email, as before. One more small query runs on every tick.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Chg7BD2Sf1yNRFCX24or7B

They were made the first time an account's Lists were read, so someone who only used the share sheet, or whose AI
looked first, did not see Favourites and Ideas until they opened Lists. Now each tick gives them to a few accounts
that have none yet (never one made in the last ten minutes: its sign-up is still giving it the Lists and the posts).
The claim is the same one, so nobody gets a second set.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Chg7BD2Sf1yNRFCX24or7B
Signed-off-by: NiallJoeMaher <nialljoemaher@gmail.com>
@vercel

vercel Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
pluck Ready Ready Preview Nov 24, 2026 7:58am UTC

Request Review

@NiallJoeMaher
NiallJoeMaher merged commit fbc3801 into main Nov 24, 2026
6 checks passed
@NiallJoeMaher
NiallJoeMaher deleted the starters-backfill branch November 24, 2026 08:07
NiallJoeMaher added a commit that referenced this pull request Nov 24, 2026
It has done its job: every account from before now has Favourites and Ideas, and none is left without the claim.
A new account gets its Lists and posts at sign-up, and reading Lists still gives them to any account that somehow
has none. This reverts #186, so the per-minute query goes.


Claude-Session: https://claude.ai/code/session_01Chg7BD2Sf1yNRFCX24or7B

Signed-off-by: NiallJoeMaher <nialljoemaher@gmail.com>
Co-authored-by: Claude Fable 5.2 <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