Resolution

All pages

0011 · The Terminal: a research instrument over the fund's own data, with a desk you can ask

Status: accepted, 2026-09-25. Built as /terminal (issue #2). The server side lives in src/terminal/ and is covered by test/terminal.test.ts. The page is web/views/terminal.js, with web/lib/termfn.js, web/lib/termcharts.js and web/terminal.css.

Context

The first Terminal was a dense dashboard. It showed a NAV chart, margins, a watchlist, the approvals queue, a feed and the wire. The owner asked for a real research terminal, the Bloomberg kind: keyboard first, a command line, functions with mnemonics, and panels linked to one security. It should also be usable on a phone, and it should work with the LLM seats.

Professional terminals are built for a different business. Their revenue grows with time on screen and with trades. This fund is scored on losses prevented and on whether research beats the index after costs (R-UI-051, R-UI-116). So the question is not how to copy Bloomberg. It is which of its functions survive when every figure must come from server code, carry a source and a timestamp, and never invite activity.

What the professional tools offer (surveyed September 2026; sources at the end):

ToolWhat it is good atWhat we take
Bloomberg TerminalA mnemonic command line (<ticker> <yellow key> <FN> <GO>). Security functions: DES, GP, HP, FA, EE, CN, RV. Market monitors: WEI, MOST. PORT and MARS for the book. BQL for queries. Launchpad for layouts. MSG and IB for chat. Alerts.The grammar SYMBOL FN, autocomplete, history and HELP. Linked panels. Saved layouts. The security set DES, GP, HP, RV and CN. PORT and RISK.
Refinitiv / LSEG WorkspaceApp-based workspace with linked apps sharing one context ("colour linking"), and Eikon-style quote monitors.One symbol context shared by every panel.
FactSetPortfolio analytics (PA), factor risk, screening, a strong query language.Factor exposures and stress from our own model, labelled as estimated.
KoyfinClean dashboards, watchlists, charting with events, AI summaries of filings.A calm density; a watchlist drawn from the book and the universe.
TradingViewThe best charting UX: range selector, crosshair, markers on bars, an AI chart copilot.A range selector and markers for the fund's own events on the price chart.
AlphaSense / SentieoAI search across documents, where each answer cites the passage it came from.ASK answers only with citations: Record event numbers and computed figures.
Capital IQDeep fundamentals, comps and screening.Nothing directly: we hold no fundamentals. We say so rather than pretend.

Decision

1. The functions are the honest subset. Every Bloomberg function maps to one of three things. It is something the fund has, something the server can compute from its own bars and Record, or something we refuse to fake.

FunctionHereSource of every figure
DES: descriptionIdentity from the instruments master: name, listing, currency, sector, country, reference beta and ADV. Plus the fund's standing with the name.Universe and instruments master, and the Record.
GP: price graphClose series over 1M, 3M, 6M or 1Y, with the benchmark indexed alongside. Markers show views, orders, fills, claims, scheduled events and wire items the owner sent to research.market.bars, and Record events with their seq.
HP: historical pricesThe same bars as a table: OHLC, volume, daily return.market.bars
Statistics (a subset of FA)1W, 1M, 3M and range returns. Range high and low. 20-day and 60-day annualised volatility. Beta and correlation with the benchmark. Max drawdown in the window. 20-day volume against ADV. Today's move in the name's own sigmas (the σ glyph).Server code in src/terminal/stats.ts, tested.
FA / EE: financials and estimatesNot built. We hold no fundamentals and no consensus.The empty state says what is missing.
CN: company newsWire items on the name, and claims on the name with each source's hit rate.Wire store and claims store.
RV: relative valueSector peers from the universe: range return, volatility, and an indexed line against the name.Server code, over bars.
WEI / MOST: monitorsThe universe monitor: last price, day move, σ move, 1M return, volatility, held weight, source and age.Server code (/api/terminal/monitor).
PORTHoldings, weights against caps, and attribution by name.firm.marks(), the kernel's limits, and measurement.
MARS / riskFactor exposures, the stress scenarios with the worst one against its cap, and the volatility target.measureSnapshot (factor model, stress).
What-if (PORT's scenario tab)A proposed line is sent to /api/check. The kernel returns the rule margins and the sizing waterfall.The kernel. The browser prices nothing.
BQL-style queryASK: a question in natural language. A planner reduces it to queries over the fund's data.Planner and facts in server code.
HIST (ours)The fund's history with the name: views and their bear cases, judge verdicts, proposals, fills, resolutions.The Record, each item with its seq.
LaunchpadFour saved layouts: Security, Book, Research, Compact.Kept in localStorage, per viewer, as a convenience only.
MSG / IB, alertsNot built (see below).none

2. ASK is a planner over data, and the model only writes prose. POST /api/terminal/ask runs in five steps.

  • (a) Plan. A deterministic parser maps the question to intents: holdings, risk, stress, why-SYM, stats-SYM, bear-SYM, claims, waiting, rules near cap, spend, evidence and compare. It extracts the symbols it recognises from the universe (ticker or name).
  • (b) Facts. Each intent produces facts {id, label, value, unit, display, source, at} and citations {seq, type, at, summary} from the Record. All of it comes from server code.
  • (c) Code text. Prose is written by code, with the facts inserted.
  • (d) Bull and bear. For a named symbol, the bull case is the fund's latest thesis on the name. The bear case is its bear twin's objection and the judge's reason. Each is quoted from the Record with its seq. We never generate an argument the seats did not make.
  • (e) Optional narration. Narration runs only on request and only when a model is configured. The estimated cost is shown first (R-UI-102). The model gets the facts as a quoted data payload and must answer in JSON using {f1}-style placeholders for every figure. validateNarration rejects any digit outside a placeholder, except digits inside a known ticker. It also rejects any unknown placeholder. On rejection the code text stands and the reason is shown. The call is recorded as a seat.call with its cost, like every seat call. The answer is labelled "Model prose, figures from code" or "Written by code".

"Send to pipeline" pre-fills the idea composer with the symbol, direction and question. It never sends without the owner's own click, and the idea then goes through cooling and the desk like any other.

3. The command line is :. The app already uses / and ⌘K for the palette, and g+letter for navigation. : is free, and vi users know it means "command". Grammar: SYM FN, FN SYM, FN, or ASK …. It has autocomplete over symbols, names and functions, and ↑/↓ history (localStorage, 50 entries).

4. One symbol, every panel. Choosing a symbol from the command line, the watchlist or the monitor updates the URL (/terminal?s=ASML.AS&fn=GP) and every security panel. Links can be shared, and Back works.

5. What is deliberately not built, because it rewards activity (R-UI-051) or pretends to data the fund does not have:

  • No real-time ticking, flashing cells, or up/down colour blinks. Movement on screen is a nudge to check prices. Figures refresh when the Record or the snapshot changes.
  • No "most active", top-movers or gainers/losers lists, and no heatmap of the day's moves. These are attention traps. The monitor sorts by symbol or held weight, and a sort by move is one click away, never the default.
  • No price alerts. An alert on price is an invitation to trade. The fund's only alerts are rule and data-health alerts (Ops).
  • No order ticket and no buy/sell buttons. The what-if goes to the kernel check, and an actual idea goes to intake.
  • No fundamentals (FA), estimates (EE), ownership, options, or credit. The fund holds no such data, so showing it would need a vendor feed or invention.
  • No chat with other people (MSG/IB). It is a one-person fund.
  • No model-written numbers, targets, or "fair value".
  • No sentiment scores for news. Headlines are untrusted data (R-UI-115).
  • No streaks, counts of trades as achievements, or "today's P&L" as a hero. The hero is the security in view, or the book's drawdown against its limit.
  • No intraday bars. The synthetic market is daily, and live data is delayed close. A one-minute chart would pretend to precision the fund does not have.
  • No amber-on-black skin (R-UI-116). Salience comes from typography. Colour is red for a breach, amber for tolerance, and one accent.

Alternatives

  • Model-first ASK, where the model reads the data and answers freely. Rejected. It would put numbers in model prose that nobody checks, and it costs tokens on every question. The scripted path must give a full answer on its own.
  • A general query language (BQL clone). Rejected for now. The owner is one person, a mnemonic grammar covers the fund's questions, and ASK covers the rest. A query language would be a second product to maintain.
  • Charts computed in the browser from raw bars. Rejected. Statistics are figures, and figures come from server code with tests. The browser only draws the series it is given.
  • Keep the old dashboard and add a command line. Rejected. The dashboard duplicated Today and Risk. The Terminal's job is the security-level view those screens lack.

Consequences

  • There is one new endpoint family, /api/terminal/*, registered with a single anchored line in server.ts and a dynamic import.
  • Statistics depend on bar history. A fresh fund on live data with a failed fetch shows synthetic bars labelled "fallback", and the stale flag, not silence.
  • An ASK narration costs one short model call (about 600 tokens in and 200 out) and is recorded. The estimate is shown before the call.
  • The layouts are per browser. That is acceptable because they are a convenience, not state.

Falsifier

The Terminal fails if either of these happens:

  • A figure appears on it without a source and a time.
  • An ASK narration ships a number that is not one of the computed facts.

The test terminal.test.ts › narration with a model number is rejected guards the second. A review of the owner's first month should also check whether the Terminal is opened more on high-volatility days than on calm ones. If it is, it has become a price-checking tool and needs pruning.

Validated by

The suite (the deterministic ASK, the statistics, and narration validation). CDP screenshots of /terminal in the demo and in a fresh fund, at 1400px night and 500px paper. The owner's first month.

Sources: CFI, Bloomberg functions, ISEG library guide, Bloomberg, Koyfin, Bloomberg alternatives, AlphaSense, alternatives, FindMyMoat, AlphaSense vs Koyfin.