Nexus explainer · companion to Research under controls
A model enters Nexus through one contract, the same for a model written here and a model written somewhere else. It declares what it forecasts, on what clock, over which markets and in what units. Nexus checks every batch against that declaration and refuses a mismatch by name, then sizes, limits and costs the forecast with machinery that already runs. The goal is plug-and-play. All 15 internal signals, 13 time-series and 2 panel, run through the contract. The routes for outside models are designed and held behind a gate, and this page says what is still missing.
State read from the contract's design record, the code and the work board on 18 October 2026. The contract was agreed on 2 October 2026.
An internal model runs inside Nexus. An outside model runs on the client's own systems, by a route that is designed and gated. Both declare the same fields and pass the same boundary. They differ in what Nexus gives them. An internal model is given prices, and only up to the time it forecasts. An outside model uses its own data. It would be told whether each batch was accepted or refused, and sending back its positions, fills, capital and margin is proposed. The contract carries no limits. Nexus applies sizing, limits and costs after the boundary.
Each way in has one type, and the simulator and the trader import the same one. Below the entry point the sizing, limits and costs already exist. Trading anything other than a trend book still needs its trader integration built.
A model is registered once, and the registration is enforced on every batch. A registered model is one sleeve's combined forecast over one universe (a sleeve is one sub-strategy: a set of markets and the rule that forecasts them). The signals inside it are building blocks: their forecasts are stored as components and are not registered separately.
model_id who it is
kind forecast | target
origin internal | external
owner
universe a catalogue reference, not a list
clock bar period and offset, UTC
horizon matched exactly on every batch
scale carver20 | sign | exp_return_bp
| zscore | native
forecast_scalar a prior, and how fast to leave it
staleness hold | decay | flatten | refuse
register_family the group of related trials it is judged against
status candidate → incubating
→ live → retired
{
"model_id": "your-model-daily",
"model_version": "<hash of the registration>",
"decision_at": "2026-10-16T21:00:00+00:00",
"horizon": "1d",
"scale": "zscore",
"code_sha": "<the commit that produced it>",
"forecasts": [
{"instrument": "GOLD", "value": 1.3, "confidence": 0.6},
{"instrument": "CRUDE", "value": -0.4, "confidence": null}
]
}
The sender states when it decided. It never states when the forecast became available: Nexus stamps that itself. A target batch carries the same identity, a unit (a fraction of capital, or a signed dollar position) and the markets it expected to cover.
A client can keep a proprietary model entirely outside Nexus. Nothing about how it works is sent, only what it decided. Nexus checks each batch against the model's declaration, applies that model's own caps, executes through its broker connection and reports back. The model's code, parameters and data never touch the platform.
| Direction | What | Status |
|---|---|---|
| Client sends | Forecasts: a value per market per bar, on a declared scale. Nexus sizes them with the same sizing, limits and costs as its own signals. | Designed · gated |
| Client sends | Target weights: each market's position as a fraction of capital. | Designed · gated |
| Client sends | Target exposure in money: a signed position in dollars per market, which Nexus converts to weights using the capital the model is allocated. | Designed · gated |
| Client sends | Target quantities: shares, contracts or lots per market, for a client who sizes positions itself. | Proposed |
| Nexus returns | Accepted or refused, for every batch, with any refusal naming the field. Refusals are kept as data. | Designed · gated |
| Nexus returns | Positions, fills, capital and margin for the model, in one broker-neutral shape whichever broker executed. The trader already has shared position and account records, used with IG today. The broker contract explains the existing interface and what adding IB still needs. Offering a return feed to a client, per model, is not designed yet. | Proposed |
The design puts every outside model under its own caps and its own kill switch, so one model's problem halts that model and nobody else, and an order that reduces risk is never blocked. Like the rest of this route, that is designed and not yet built.
A client may prefer Nexus to run the model. Then backtest and live run the same code on the same data, and the backtest becomes evidence rather than a claim. This option is proposed and not yet designed. This is how it would work.
The same contractthe third way in
The model implements the same two calls as the models written here: fit on a window of history, then forecast as of a time. Its output is an ordinary forecast batch, checked at the same boundary as any other.
Its own containerand its own limits
Each model runs in its own container, under its own account and its own memory and processor limits, as described in containers under systemd.
Data in, forecasts outand nothing else
The container has no network. Market data reaches it only through a local service that refuses any read after the time being forecast, so the model cannot look ahead. It never holds broker credentials or database access, so it cannot reach trading.
| Outside, by API | Hosted, open | Hosted, sealed | |
|---|---|---|---|
| Who can read the model | Nobody but the client | Nexus can | Only the client, by agreement |
| Can it look ahead? | Not in live trading: Nexus stamps when each forecast arrived. The client's own backtest cannot be checked. | No, by construction, and the code can be read to confirm it | No, by construction: it only ever sees data up to the time being forecast |
| Counted backtest on Nexus | No | Yes, in the strategy tester | Yes, as a black box |
| Who runs it | The client | Nexus | Nexus |
| Status | Designed · gated | Proposed | Proposed |
What "sealed" can promise. On an ordinary server, whoever runs the machine can read a running program's memory. Sealed on such a server means a compiled image or encrypted model weights, and an agreement that Nexus does not inspect them: protection against casual inspection, not against the operator. Sealing that holds even against the operator needs confidential-computing hardware. There, the model runs in an encrypted virtual machine, and the client releases the key only after the hardware proves what is running. That needs a host chosen for it.
Each rule exists because a backtest can flatter a model without one.
One scale below the boundaryforecasts capped at ±20
Where forecasts are pooled and combined, every forecast is converted to one scale, capped at ±20 with an average absolute value of 10, the convention of Robert Carver's pysystemtrade. A sign signal maps to ±10 by a fixed rule, so sleeves that are live today size exactly as before. A model feeding the target-position engine can instead declare its own native units, which pass through unchanged and are not pooled.
Normalise, scale, then capextremes cannot dominate
Expected-return forecasts are divided by a volatility basis Nexus supplies, and one without it is refused. The scale is estimated from the cross-sectional median, with zeros dropped, and the scaled forecast is capped last.
A scalar that cannot see aheadthe same rule in backtest and live
pysystemtrade estimates its scalar on an expanding window and copies the first estimate back to the start of history, a small look-ahead it accepts. Nexus does not accept it. The scalar starts from a declared prior and moves toward the data as observations accumulate on the model's own clock. Each stored forecast records its raw value, the scalar used and the scaled result.
Two clocks per forecastdecided, and available
Staleness is measured from when the model decided. Causality is measured from when the forecast became available, which Nexus stamps: the time of receipt for an outside model; the end of the last input bar, plus that data's publication lag and a compute allowance, for an internal backtest. A book at time t reads only forecasts available by t, and fills come after that, plus execution lag.
No restatementa forecast, once sent, stays
The same model, time and market with the same value is a no-op. With a different value it is refused.
Staleness declared, not discoveredrisk reduction always allowed
Each model declares what happens when its feed goes quiet: hold, decay, flatten or refuse. Acting on that declaration is still to be built, and it must never block an order that reduces risk.
Refused by nameand kept as data
Unknown fields, unknown scales, markets outside the universe and the wrong horizon are refused, naming the field, and every refusal is stored.
Every model countstrials, not just winners
Each model that is incubated or goes live will add to its family's trial count, so a second model is judged against the bar the first one raised. That counting is in review.
The programme moved the internal models first, so that the contract was proved on the live book before anyone outside depends on it.
The contract's types, shared by the simulator and the trader. All 15 internal signals moved onto it, with the live book's recorded results reproduced exactly. A model registry in which each version is a fixed row, readable through an API, and a book must name the exact version it uses. A forecast store, filled each night from the same engine run that produced the book, never by recomputing. A registered model can fill a panel book's forecast slot in the strategy tester.
Trend books reading a registered model's forecasts, which needs a change in the engine and is in review. Profit and loss attributed to each model, and trial counting by model family. The trader's own record of the forecasts it trades on, built and switched off. The no-restatement rule is already catching cases: some soft-commodity forecasts came out different on a later night, and a fix is in review.
Forecasts from outside, sent to an API, and target weights from outside, with per-model caps and a per-model kill that does not halt anyone else. Both are designed. The gate opens on three conditions: an old run replayed through the contract matches the original, trial counting across the whole programme is confirmed in deployed code, and a decision on where outside forecasts are stored.
A contract makes a model possible to connect. A quant still needs to be able to evaluate the platform in an afternoon, and that means a kit:
There is one more reason to want outside models. The due-diligence reviews cap at 4 because nobody but the builder has checked the work. A quant reviewing the harness their own model depends on would be the independent check the reviews cannot reach.
Sources: the model contract's design record and its agreed decisions of 2 October 2026, the internal-forecasters record, the model registry and forecast store in the simulator, and the work board, read on 18 October 2026. These are internal documents. Related pages: The strategy tester, Research under controls and the case study's model section.