Why We Built PolarisLink: The Nervous System Behind Autonomous Quantitative Research

How broken data shims and uncoordinated research pushed us to build our own protocol

By Cayden Richards · October 2026

The usual picture of quantitative research is one person, one notebook and a CSV file, with the finished model handed to an execution desk at the end. That picture stops working once several researchers and automated agents are working on the same problems at the same time, around the clock. We found this out the hard way.

This note explains why we built PolarisLink, the REST and event-stream protocol that now connects the research and execution systems at Forticia and Qlumina. It covers the problems that led to it, the main design decisions, and why we released the protocol and client libraries as open source under Apache 2.0.

1. Where Distributed Research Broke Down

The name PolarisLink sounds like a satellite product. It actually came out of a frustrating night when our research setup kept getting in its own way.

By late summer 2026, Forticia was running research across several time zones. The idea was to pair human portfolio managers with specialized autonomous agents that worked through the night: testing execution logic in our Blitz engine, modeling futures basis curves and looking after infrastructure. The research itself ranged from intraday volatility surfaces to yield curve steepeners.

On paper, the workflow was straightforward. In practice, it was a mess.

The problem was not a lack of ideas or compute. It was that nothing tied the pieces together. People and processes were each working on their own island:

  • Lost session state: Cloud instances and remote sessions would quietly drop authorization headers or rotate session keys every two hours. A long backtest sweep across fifty parameter combinations would hit a 401 partway through, discard its state and hang until someone noticed hours later.
  • Duplicate work on separate branches: A researcher would spend most of a day on an SPXW options volatility model on their own branch while an automated process on the cluster was evaluating the same surface models. Nobody knew until the merge conflicts appeared, and by then we had paid for the same compute twice.
  • Inconsistent local data: Each node fetched historical bars with its own script. One had unadjusted daily bars from an old vendor. Another had minute bars with inconsistent timestamps. A third had dividend-adjusted bars that leaked future cash flows into the features. A strategy that looked strong on one machine would fall apart on another, because no two nodes were looking at the same data.
  • Polling: To stay in sync, background processes polled REST endpoints every few seconds to see whether a run had finished or an issue had been filed. That hammered the server's disk, got us rate-limited by upstream data providers and spent compute on reading empty status responses.

What I took from this is that strategies come and go, but the plumbing is what you keep. Shell scripts, scattered local folders and loose REST conventions were not going to scale. We needed one system that handled market data, research state, issue tracking and execution telemetry together.

That system became PolarisLink.

2. Retail Feeds and the "Zero Bad Data" Rule

The first rule we wrote down was what we call the Zero Bad Data rule.

Free and low-cost data libraries and scraped aggregators are convenient, and many early projects start with them. For research that is going to trade real money, they have problems that are easy to miss:

  • Back-adjusted prices: Aggregators rewrite historical prices whenever a split or dividend occurs. A model that is supposed to be standing in 2021 but reads prices adjusted for a 2024 corporate action is seeing information from the future. Features that depend on price levels or on adjusted series can pick this up, and the backtest looks better than live trading will.
  • No real order book: Budget feeds often report a synthetic midpoint in place of actual exchange quotes. They do not carry market-by-order depth, iceberg refills or queue position, so a model built on them cannot see adverse selection.
  • Survivorship bias: Securities that went bankrupt or were merged away are often missing from the historical universe. A backtest on the survivors is flattering.

We enforce the rule in the client libraries. Both the Python SDK and the C++20 header check where data is coming from, and if an ingestion routine tries to pass in an unverified aggregator or scraping endpoint, the client raises an error and stops.

All research nodes read from one place instead: the PolarisLink market data vault, a central store of point-in-time, normalized data that currently holds a little over 73 GB. It contains 25 years of continuous daily and minute bars across more than 50 liquid futures, Cboe OPRA 8D options surfaces, point-in-time Federal Reserve macroeconomic series (FRED) and CFTC Disaggregated Commitments of Traders (COT) archives.

Every bar served by the protocol carries its provenance, a UTC timestamp and point-in-time state. If a dataset has no verified exchange depth, the protocol returns null. It does not make up quotes.

3. Filling Data Gaps and Fixing Bugs Automatically

A common way for a research job to die is a missing contract. Someone wants short-dated SPXW strikes at 5-point granularity, or an off-the-run 5-Year Treasury basis spread, and that particular chain or roll partition is not in the cache. In most pipelines the job simply crashes.

We handle this with the PolarisLink JIT (Just-In-Time) Harvester.

When a client asks for an asset the vault does not have, the server does not return a 404. It returns HTTP 202 Accepted with a standard Retry-After header, which tells the client the asset has been queued for harvesting.

In the background, the gateway fetches the data from the upstream source, parses it, checks it against tick-size and price-collar rules, writes it to compressed Apache Parquet partitions in the vault and catalogs it. When the client retries after the stated interval, the data is there. Researchers do not write one-off scrapers or manage provider rate limits, and the vault grows as people ask for things.

AutoHeal

We applied the same idea to bugs. In a setup that runs around the clock, schema mismatches and edge-case exceptions are going to happen. The manual route (spot the log line, open a ticket, cut a branch, write a patch, deploy) can take days.

PolarisLink has issue tracking built into the API. When an execution daemon or research process hits a schema discrepancy or a build failure, it files a structured issue with the stack trace, steps to reproduce and a severity.

Our AutoHeal process picks up the event, creates an isolated Git worktree, writes a unit test that reproduces the problem, implements a fix, runs the full test suite and pushes the commit if the tests pass. Research jobs keep running while this happens.

4. Frontier Leases and the Event Stream

When several research processes run side by side, the risk I worry about most is uncoordinated parameter search. Machine learning people call it p-hacking, and in finance it goes by backtest overfitting.

Suppose several tracks all notice something in crude oil or interest rate futures. Each has an incentive to tune lookbacks and volatility stops on the same contract. Run enough permutations across enough disconnected tracks and a strategy with an impressive Sharpe ratio will turn up by chance.

Frontier Leases

PolarisLink addresses this with frontier leases. Each hypothesis is registered in the cluster catalog as a research frontier.

Before a node can run an evaluation, it has to claim an exclusive lease on that frontier through the protocol. The check is atomic and resolves in under 15 ms. If another node already holds the lease, the request is rejected with an HTTP conflict status.

Once a process holds a lease, it has to evaluate the idea under our decision gates:

  • Stage 1 (in-sample, 2020 onward): The model is evaluated only on post-2020 data. If it does not reach a positive annualized Sharpe or an acceptable win rate, the lease is given up and the idea is recorded as falsified.
  • Held-out history (2001–2019): The 2001–2019 partition is not accessible during parameter selection. A model is given access to it only after it has passed in-sample discovery, a 1,000-pass placebo bootstrap and an audit of its intraday execution stops.

Every falsification is recorded, so later runs do not repeat the same dead end. Over time that record becomes one of the more useful things we have.

Server-Sent Events in Place of Polling

To get rid of polling, we added a persistent Server-Sent Events (SSE) stream.

We chose SSE over WebSockets because it runs over ordinary HTTP and needs no separate framing or keep-alive logic, which made it less trouble for us behind proxies and firewalls. A client opens one streaming connection and blocks on it. While it waits, it uses essentially no CPU.

When an issue is filed, an order is filled or a lease is released, the server pushes a structured JSON event down the stream and the waiting process wakes up.

5. Two Clients: A Python SDK and a C++20 Header

We use two languages because they are good at different things. Python is where we do vectorized analysis, exploration and model prototyping. C++ is where we do execution, where latency has to be predictable and pre-trade risk checks have to run inline.

Putting Python in the execution loop would bring garbage-collection pauses and unpredictable tail latency (I cover this in The Anatomy of Blitz). Writing every exploratory data slice in C++ would slow research to a crawl.

So PolarisLink has two clients that speak the same wire protocol:

1. The Python SDK (polarislink.py)

The Python client has no third-party dependencies. It uses only the standard library, and converts results to Pandas DataFrames if Pandas happens to be installed:

  • Credential handling: Tokens can be passed in through a pipe or the environment, so API keys do not show up in process listings.
  • Streaming downloads: Large historical partitions are written to disk in chunks and never held in memory whole.
  • Point-in-time macro series: Economic releases are served with their original publication dates.

2. The Single-Header C++20 Client (polarislink.hpp)

For Blitz and our simulation engine, we wrote a single-header library that drops into a C++ project:

  • Two transports: It uses in-process libcurl when available, and otherwise falls back to POSIX pipes with mode-0600 file permissions on restricted nodes.
  • No heap allocation on critical paths: Structures and payloads are pre-allocated or mapped to fixed-width buffers, so telemetry logging does not contend for the memory allocator.
  • Run telemetry: Backtest performance metrics, maximum drawdown and trade counts are serialized and sent to the cluster directly.

Table 1: PolarisLink Endpoints

Endpoint Method Format Purpose
/api/polarislink/quant/bars GET Parquet / JSON stream Point-in-time continuous OHLCV bars for exchange futures.
/api/polarislink/quant/options/* GET Binary surface / JSON OPRA 8D options volatility surfaces and strike chains.
/api/polarislink/swarm/leases/* POST Atomic memory lock Exclusive leases on research frontiers.
/api/polarislink/stream GET (SSE) Server-Sent Events Event stream; clients block until an event arrives.
/api/polarislink/issues POST / PATCH Structured issue schema Automated bug reports and AutoHeal dispatch.
/api/polarislink/runs POST Fixed-width metrics Backtest telemetry from the Blitz C++20 client.

6. Why We Open-Sourced PolarisLink Under Apache 2.0

Once PolarisLink was stable internally, we released the specification and client libraries as open source under the Apache 2.0 license (GitHub: Forticia/polarislink).

Trading firms tend to keep everything private by default, and for strategies that makes sense. For a wire protocol I do not think it does. Our reasons were practical:

  1. The edge is not in the schema: Whatever advantage a systematic firm has comes from its models, its risk discipline and its execution. The shape of a data request is not part of that, and publishing it gives nothing away.
  2. It keeps the code clean: Separating the protocol from our trading engine forces a proper boundary between them. When the client headers and the spec are public, we cannot lean on internal shims or undocumented shortcuts.
  3. It might be useful to someone else: Most tooling for autonomous agents is built around conversation or document work. PolarisLink is a typed protocol for coordinating numerical research across several processes, where exact data and reproducible state matter. If another team has the problems we had, they can start from it.

7. Conclusion

I do not think autonomous research is a matter of feeding price charts into a language model. Most of the work turned out to be ordinary engineering:

  • Zero Bad Data: Refuse scraped and contaminated data at the client boundary.
  • No polling: Block on an event stream until something actually happens.
  • Leases: Make each research frontier exclusive, and record every falsification.
  • Two clients, one protocol: Python for research and C++20 for execution, speaking the same wire format.

PolarisLink started as a fix for the friction in our own research cluster. Today it connects the systems at Forticia and Qlumina and coordinates research runs across liquid futures and options markets every day.

The protocol specification and client libraries are available at github.com/Forticia/polarislink and at forticia.uk/polarislink.

← Back to Writing