* feat(ai): drafting runs only on readers' own keys; ratchet against free-tier background AI
The hourly drafter spent the site's free models. Remove the free-chain path
(freeAsk, backgroundMay); drafting now takes an Ask built from a reader key
(lib/byok-ask.ts). /api/cron/drafts is gone; /api/cron/auto-updates drafts
only for readers who opted in, on their stored key, capped per day (013).
test/no-free-background-ai walks the import graph from every cron route and
fails on any path to the free chain; proven by mutation.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(updates): Update news now for every reader; AI summaries and auto-updates on the reader's own key
- Bottleneck, company and desk pages: "Update news now" sweeps the web
(no AI, signed out too, rate-limited, 15-min cooldown) and lists the leads.
- "Summarise with AI" drafts up to three on the reader's key (browser or
sealed); without one it explains the free AI is kept for questions and
opens the key panel.
- /account/settings#auto-updates: opt-in hourly drafting on the stored key,
daily cap with a token estimate (3.4k/draft, measured).
- Honest copy: /data/freshness reports drafting as on demand, /review, /data
AI spend, desk and docs say drafting runs only on readers' keys.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>