2 Commits
Author SHA1 Message Date
CatoandClaude Opus 5.5 6c4f24bea0 feat(ask): every section has a tool — science, research, policy, filings, prices, reserves; answers never cut mid-word (#145)
Round five, asked across the site as a reader (2026-10-02). On /science,
/policy and /markets Ask said the corpus did not hold what the page it was
on showed. New tools over existing data:
- relief_technologies (readiness 1-9, what each would relieve, source);
- research_pipeline (collected papers/grants per bottleneck);
- policy_rules (status, effect, who asked for each, linked);
- recent_filings (SEC 8-K/6-K kind + link; says it holds no text);
- find_numbers (price/lead-time series by what they measure);
- resource_production measure=reserves.
Planner routes by wording and by the section the reader is on.

Two answers in the browser ended mid-word ('Listed: AS'): a turn that stops
at the output limit is now continued once; a figure-check revision that is
cut short is dropped for the original minus the unsupported sentences; free
output budget 1800 -> 2400.

'Update news now' on a bottleneck page also searches its research
databases (internet only, no AI, 6 h cooldown). The sweep stores pages
under their address without tracking parameters (Google's srsltid made one
blog post eight 'new' leads); stored duplicates collapse in the list.

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-10-02 09:56:29 -07:00
CatoandClaude Opus 5.5 6b1801359c feat(updates): reader-initiated news updates; AI drafting only on readers' own keys (#102)
* 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>
2026-09-24 22:33:46 -07:00