Next preloads every link that scrolls into view, and these pages are drawn on
request. Measured in a browser on 2026-11-29: one visit to the home page made
27 preload requests to the server. Solon, built the same way, made 91 to 778
a visit and stopped answering under a handful of readers (solon#643).
components/link.tsx wraps next/link with prefetch={false}; all 167 files that
imported next/link import it instead, and ESLint (no-restricted-imports)
keeps a bare next/link from coming back.
pnpm run verify passes (format, types, lint, 1,144 tests).
Claude-Session: https://claude.ai/code/session_019MDtmvTCDbJAYNKQpNyKzz
Co-authored-by: Claude <noreply@anthropic.com>
* feat(news): the news page leads with the newest finds; checked events by month
/events read as abandoned: its newest item was 3 weeks old while the sweep
had found something every day. It now opens with 'Just found' (last 14 days,
labelled not yet checked, Check this on each) using the front page's own
filter, then the checked events grouped by month with the source named up
front. Renamed News to match the nav; one filter row, kind/stage folded.
Procurement notices no longer pass as news (the Philippine Ombudsman's
scanner contract with 'Quartz Business Products' showed as high-purity
quartz); pinned in test/lead-signal.test.ts, mutation-checked.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(news): anyone can pull fresh news; long pages get 'On this page'
- 'Update news now' on /events, scope 'all': each press (signed out too, no
AI) web-searches the 3 bottlenecks searched longest ago, so presses by
anyone walk the whole map forward; the page refreshes and new finds lead
Just found. A sweep older than 24 h is said plainly above the button.
- SectionNav: 'On this page' built from the page's own <Heading>s and month
headings (never a hand list), section in view marked. A rail left of the
content on wide screens, a sticky strip under the top bar on phones.
Opt-in per page: <Page sections>. Every Heading now carries an anchor id.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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>
* chore(ux): task flows with step and time budgets; production baseline
Ten top tasks across five audiences, each with a success criterion, a step
budget (clicks, keystrokes, choices and screens of scrolling) and a
time-to-first-answer budget, driven at 390 and 1440. Plus a dead-end check:
every empty or error state must offer the next action.
Baseline against production: 9 of 20 task runs pass; 3 of 5 empty/error
states are dead ends.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* feat(tools): answer first, one header, one empty state, no dead ends
Measured by scripts/ux (baseline in the previous commit), then fixed worst first:
- X-ray: names the biggest single-source risk, the country most weight rests
on alone, and the most-shared bottleneck first (lib/xray/headline.ts,
ranking only); scrolls the answer into view; Ctrl/Cmd+Enter runs; a list
nobody could read offers the sample instead of a blank report; shared
PageHeader; privacy note folded to one line; placeholder no longer looks
like a filled portfolio.
- Scenarios: result first, picker folded under it; presets before the form;
a Copy link button instead of a printed URL; an unreadable ?at says so.
- Careers: regions (Europe, North America, …) in the place filter, so
"process engineers in Europe" is one choice, not thirty; results before
the hiring sidebar on a phone.
- Data series: shared PageHeader and filter bar (auto-applies), search reads
the bottleneck name, 40 rows then Show more (all 145 made a 1 MB page).
- Science pipeline: PageHeader with the counts in one line; jump links to
what the feeds collected.
- Bottleneck pages: a signed-out reader sees Follow (sign in, come back)
instead of nothing.
- Update news now: Try again on failure; a next step when nothing is new.
- Shared: Empty takes an action (desk, exposure, careers, series, pipeline,
x-ray, reader views); a real not-found page with ways on; filter bars show
one loading state; CopyLink; desk settings use PageHeader.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* 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>