28 · Choosing the technology
This specification says what the fund does, not how it is built. It states the properties the stack
must have and the criteria a choice is judged on. The choices themselves live in decisions/, a log
of dated, numbered decision records beside this specification. Each record is taken by argument and
then tested by a spike (§29.1).
28.1 The criteria
In priority order, because trade-offs are real and an unordered list decides nothing:
- One person can hold it. The whole system must be comprehensible, debuggable and operable by one person at 2am. Fewer moving parts beats more capable parts.
- Correctness is checkable. Types, schemas, transactions and tests must catch the errors that cost money — an order placed twice, a position mis-stated, a look-ahead in a query.
- The Record's guarantees. Append-only with transactional consistency between the log and the money projections, and replay that produces identical output years later.
- Longevity. The fund's horizon is a decade. A technology with a long support history and a large maintenance base beats a faster one that will need replacing.
- Cost. Running cost and, more importantly, the cost of the owner's own time.
- Ecosystem fit. Libraries that already exist for market calendars, broker APIs, financial data, statistics and model providers.
- Performance. Last, because the fund's latency requirements are human-scale. Nothing here is high-frequency; the binding constraint is model latency, not language speed.
28.2 The layers and their candidates
| Layer | What it must provide | Candidates |
|---|---|---|
| Core services | typed, readable, well-supported, good client libraries for models, brokers and data | TypeScript on Node, Python, Go, or a split with a typed core and Python for research |
| Research and statistics | dataframes, statistics, bootstrap, factor models, notebooks for the Lab | Python is the near-default; anything else must justify losing the ecosystem |
| Record store | transactional, append-only friendly, strong constraints, mature backup and replication | PostgreSQL; alternatives must show equivalent consistency at the money boundary |
| Research store | columnar, fast scans, point-in-time queries over large tables | DuckDB, Parquet on object storage, ClickHouse |
| Blob store | content-addressed, immutable, object lock, second provider | S3-compatible object storage |
| Queue and scheduler | durable, idempotent, exactly-once-at-the-effect, visible dead letters | database-backed job tables; a broker only if a spike proves the need |
| Floor | fast declarative rendering, keyboard-first, works on a phone, no second implementation | a single web application, server-rendered or client-rendered, with the view DSL on top |
| Local models | runs the T5 roster on the owner's hardware | a local inference runtime |
| Deployment | one composition, two profiles, reproducible builds | containers on one machine |
R-TECH-001 (MUST) A record decides; a spike validates. Each layer's choice is written as a decision record in
decisions/. The record states:- the context;
- the choice;
- the alternatives, and why each was not chosen;
- the consequences;
- the falsifier, meaning the measurement that would overturn the choice;
- the spike that tests it.
A choice can be made on paper. It is proven only when its spike has run and its measurements are in the record. A record is never edited after it is accepted. A new record supersedes it, and the two link to each other.
28.3 What is unlikely to survive the criteria
Not prohibitions — statements of expected outcome, to be overturned only by a spike that shows otherwise:
- A microservice topology with per-service datastores, which multiplies the parts one person holds.
- An event-streaming platform as the primary store, which makes point-in-time queries and transactional money updates harder than they need to be at this scale.
- A managed workflow platform that becomes a second source of truth about what the fund did.
- A no-code or low-code layer anywhere near the kernel or the gateway.
- Any framework whose upgrade path would force a rewrite inside the fund's measurement horizon.
- A second UI implementation for the phone.
28.4 How a choice is changed
- R-TECH-002 (MUST) Replacing a chosen technology requires a superseding decision record with a written comparison against the original spike's measurements, a migration plan including the Record's replay guarantee, and an owner signature. It is treated as a contaminating event (§16.5).
- R-TECH-003 (MUST) The running system reports its stack: component versions, schema version, limits version, prompt versions and model versions, on the Floor, at all times.