Resolution

All pages

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:

  1. 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.
  2. 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.
  3. The Record's guarantees. Append-only with transactional consistency between the log and the money projections, and replay that produces identical output years later.
  4. 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.
  5. Cost. Running cost and, more importantly, the cost of the owner's own time.
  6. Ecosystem fit. Libraries that already exist for market calendars, broker APIs, financial data, statistics and model providers.
  7. 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

LayerWhat it must provideCandidates
Core servicestyped, readable, well-supported, good client libraries for models, brokers and dataTypeScript on Node, Python, Go, or a split with a typed core and Python for research
Research and statisticsdataframes, statistics, bootstrap, factor models, notebooks for the LabPython is the near-default; anything else must justify losing the ecosystem
Record storetransactional, append-only friendly, strong constraints, mature backup and replicationPostgreSQL; alternatives must show equivalent consistency at the money boundary
Research storecolumnar, fast scans, point-in-time queries over large tablesDuckDB, Parquet on object storage, ClickHouse
Blob storecontent-addressed, immutable, object lock, second providerS3-compatible object storage
Queue and schedulerdurable, idempotent, exactly-once-at-the-effect, visible dead lettersdatabase-backed job tables; a broker only if a spike proves the need
Floorfast declarative rendering, keyboard-first, works on a phone, no second implementationa single web application, server-rendered or client-rendered, with the view DSL on top
Local modelsruns the T5 roster on the owner's hardwarea local inference runtime
Deploymentone composition, two profiles, reproducible buildscontainers 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.