* docs(universe): the company-universe methodology — three tests, tiers, evidence
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* feat(universe): admit companies by a written rule — theme, materiality, identity, each cited
A company is in when cited sources place it in a frontier-technology theme,
show it clears a size floor, and identify it in a registry. admit() applies
the rule from config/universe-themes.ts; whyCompany() answers for any name
(in, out with the failed test, considered, named, or queued as a GapTask);
company_membership lets the Ask answer it; /data/companies prints the rule
from the same config. Tier B companies are a derived entity source with an
'Identified, not profiled' page; a stub the universe identifies is promoted
in place. Adapters: issuer fund holdings (ARK, Global X, First Trust,
Defiance, State Street), SEC EDGAR tickers/public float/SIC, GLEIF and
Wikidata by ISIN, Wikidata industry classes; tested on recorded responses.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* data(universe): first wave — 461 tier B companies from 14 funds, EDGAR, GLEIF, Wikidata
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <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>
Measured live 2026-09-25 on the three questions George's report named: first
text 9.0-33.0 s, done 18.7-34.4 s, all served by 10 s OpenRouter links.
- lib/chat-agent/plan.ts: lookups the page and the question's words make
obvious (listed_exposure, recent_leads, trace_dependencies, named records)
run locally in parallel before the first model call. When the plan found the
record AND the ask, the model gets no tools: one call. Page questions are
capped at two model calls; the web is never pre-fetched.
- listed_exposure tool + listing on get_company: tickers with the listed /
parent / private status in words (Hitachi Energy -> parent Hitachi 6501 JP).
- 【/path】 and similar training-format markers become markdown links.
- ai-kit 1.14.0: light reasoning on Groq gpt-oss, rolling-window cooldowns,
per-model daily refusals (bitbaum/ai-kit#71).
- research_ask_timing (012) + /data#ask-latency: p50/p90 over the last day,
no question text stored; journal line 'substrata ask-timing'.
- test/ask-plan.test.ts: the three measured questions take one model call; any
page question at most two, even against a model that always wants more.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
ai-kit 1.13.0 classBudget: drafting may spend <=25% of the day and never below
a 50% floor kept for Ask (env-tunable); spend recorded per class per UTC day
(research_ai_spend) and shown on /data#ai-budget with its method.
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>