* feat(markets): a company page that reads like a markets product
The owner, 2026-10-25: "I don't see any beautiful charts on stock
performance … think Bloomberg, think Yahoo Finance", and on NVIDIA's
holders, "'other' is 87%. We have a vague idea of what that means."
Every company page now carries one market frame, in one order, whatever
the company is (docs/design/company-page.md): a header quote (ticker,
exchange, currency, last close, 1-day change, date, "delayed end-of-day ·
Yahoo Finance"), then share price, key statistics, revenue and net income
by year, who owns it, how it does business, and peers. A section with no
data stays and says what source would fill it, with a Send-evidence link.
- Share price: a line chart with one row of six equal range cells
(1M·3M·6M·YTD·1Y·5Y), the page's only client island. Every range is
computed on the server, along with its return, span and largest fall,
the 52-week range, a returns table and the 50/200-day averages
(prices/compute.ts).
- Key statistics: eight equal cells. Market value is computed only where
close × cover shares is the value; otherwise "Not computed" with the
reason. Each annual figure shows its fiscal year, growth and filing.
- Financials: chartkit's new ColumnChart (0.2.0) for five fiscal years
from XBRL, plus rows with growth and margin computed in code.
- Who owns it: holders from 13G/13D/proxy. The remainder is labelled
"Others, each below 5%" in the legend (chartkit's new ShareBars
otherLabel) and explained in its row. A company with no listing shows
the owners the relation graph states.
- How it does business: customers, suppliers, competitors (always), and
stakes, sites and partners from lib/graph, one row anatomy. An empty
group names the filings that would fill it, and points to the quoted
dependency rows where they exist.
- Peers: the same chain step (tier A) or the same theme (tier B), with
last close, 1Y return and a sparkline.
Tier B companies get prices, financials and holders: lib/market-data/company.ts
joins a slug to a listing. It tries the seed first, then the universe
ticker on a venue the price source serves. New venues (US composite,
London, Hong Kong, Korea, Taiwan, Toronto, SIX) are added to Yahoo's
suffixes. Ambiguous venue codes are not guessed. Sections stream in their
own Suspense boundaries, with reads deduplicated per request, so a slow
price source never delays the header. Ask charts link "Open <Company>" to
the page, and the holders bar in answers carries the remainder label.
Verified: pnpm run verify; pnpm run build; test/company-page.test.ts;
scripts/ux/company-layout.mjs at 320/390/768/1440 on NVIDIA, Oklo,
SpaceX, NAC Kazatomprom and a stub, against live Yahoo and SEC.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* docs(design): the header's quote lives in price-view.ts
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
---------
Co-authored-by: Claude <noreply@anthropic.com>
* feat(market-data): share prices, SEC fundamentals and filing-based holders, with Ask tools and charts
Prices: daily split-adjusted closes from Yahoo Finance's chart endpoint (query1,
then query2), stored in research_price_points by /api/cron/prices, read by
priceHistory(ticker, range) with a live fallback; returns, 52-week extremes,
drawdown and moving averages computed in code. Stooq (browser challenge),
Nasdaq (browser agent only) and Alpha Vantage (unadjusted free closes) were
tested and rejected; the reasons and the licence position are in
lib/market-data/prices/chain.ts.
Fundamentals: SEC XBRL company facts per CIK — revenue, margins, R&D, capex,
cash, assets, debt, shares — each point with form, accession and filing link;
a typed "unavailable" with the reason for companies the SEC holds nothing for.
Holders: the proxy's ownership table, structured Schedules 13G/13D filed since
(issuer checked, 0% amendments honoured) and recent Forms 4, with the rest as a
typed remainder that says what it is — never a bare "Other 87%". The company
page's ownership view and share bar carry the same remainder.
Ask: price_history, fundamentals and holders tools; a price question plans
price_history and the answer draws a line chart built in code (answer charts
routed like answer tables); four ask-evals rows.
Keyed by ticker in lib/market-data/identity.ts with a committed seed
(config/market-seed.ts) as the seam for the company universe.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
* fix(market-data): fundamentals lists newest first so a length cut keeps the latest years
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>
Asked live on 2026-10-24 which companies mine uranium in Kazakhstan and who
owns them, the Ask answered correctly from the USGS 2023 yearbook but pasted
the cell as one paragraph of sixteen ventures and one of sixteen places; the
graph split Kazatomprom in two; and no tool read the graph at all.
- Tables: producers_in builds an answer table in code from its rows
(operator | owners as printed | commodity | location | capacity | year),
one row per venture of a "Companies:" cell, every cell verbatim; a place
list or capacity printed once for many rows is a shared note, never
divided. registry.ts routes a result's `table` to the answer, not the
model; the model is told not to paste. Drawn under the prose
(AnswerTables): a table where wide, cards where narrow (container query),
eight rows then "Show all", long places folded.
- Entity aliases: config/entity-aliases.ts holds reviewed pairs only
(NAC Kazatomp JSC, UraniumOne Inc., Glencore), each with the rows that
justify it; lib/graph/alias-match.ts proposes by named rules and
`pnpm run research:alias-candidates` prints proposals with evidence.
research/usgs-relations.json regenerated.
- related_to and how_connected over lib/graph: rows with share, grade,
counted flag, source quote (the venture's part of a long cell, verbatim)
and reading kind; leads listed apart and never counted. Planned first for
who owns / shareholders / holds stakes / partners / how connected; the
ladder counts related_to owners as covering the owners link.
- Six no-wall evals (Inkai, Kazatomprom, Cameco, Sumitomo, Collahuasi,
Gazprom) with graded verbatim quotes; check:ask-layout draws the table at
320/390/1440.
Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE
Co-authored-by: Claude <noreply@anthropic.com>