Skip to content
Protocolzone Protocolzone

Engineering

Every model earns its signal

· Protocolzone

AnkEDGE is the options trading platform we build and operate. It runs 62 models, scores every one of them on every session, and promotes a model to produce a live signal once the evidence supports it. It trades Indian index options on a paper account today, which is exactly where a promotion ladder should prove itself.

We have written before about the agent graph itself. This piece is about the layer underneath it: how a model earns the right to be listened to at all.

Forty-six seconds through the platform, from the data guards to the gate.

The question worth being able to answer

There is a question we think every automated decision system should be able to answer on demand, and it goes further than whether the model is good.

Can you show what your system decided, including the decisions that never became an order, and why?

Most systems log the actions they took. Those were always going to be auditable. The reasoning behind everything else is where the value sits, both for making the system sharper and for showing a risk committee how it works.

AnkEDGE writes all of it down. That was a deliberate build, it took real engineering, and it is now the most useful asset in the platform.

It starts with the data floor

A model is only as good as the data underneath it, so the first thing we built was the data floor and the quality guards on it.

Data coverage in AnkEDGE: twenty-seven tables in Apache Pinot with their history and status, a count of missing days at zero, and the rows the guards screened in the last twenty-four hours broken down by session calendar, exchange time and source.

Twenty-seven tables in Apache Pinot. Cash market end of day back to January 2011. Adjusted series back to May 2008. A news corpus back to February 2013. Option chain snapshots, greeks, minute open interest, implied volatility history, participant positioning, corporate actions, filings, index weights, shareholding, fundamentals, block and bulk deals, and a global daily series.

Two numbers on that screen matter more than the table count.

Missing days: 0. Completeness is enforced rather than hoped for. A training job only runs on a window it knows is whole.

Rows screened by the guards in 24 hours: 1,088,207. Every row entering the platform is checked against the session calendar, the exchange timestamp and the source. Settlement figures are kept apart from live tables so a settled price stays distinct from a traded one.

That is a quality layer running over a million checks in a day, quietly, before any model sees anything.

The prediction ledger

With a trustworthy floor you can measure models properly.

Every model in AnkEDGE is registered with a version. A signal exists only when a registered model version has written its expectation to the prediction ledger in advance, with a version stamp on it. That gives every prediction a clean before and after, which is what makes honest scoring possible.

Models are scored on calibration rather than on profit, because calibration converges faster and tells you more. The register carries, per model, its direction hit rate over a rolling window, a Brier score against the coin flip baseline, coverage of the bands the model itself stated, and a calibration error.

The instrumentation is granular enough to tell a model that its confidence intervals are wider than its accuracy warrants, which is precisely the feedback a forecaster needs to sharpen its next version. That goes straight back into the research loop.

Sixty-two models carry that scoring continuously. Fifty-nine are in shadow: predictions logged and scored every session, building the evidence that a promotion is decided on.

The register is the governance surface for all of it. It records where each model stands, what it last learned from, and when its status last changed. Models that have been superseded are retired there too, each with the owner’s reasoning written alongside it and every ledger row kept, because an append-only record of what a model predicted stays useful long after the model itself is set aside.

Promotion is earned in the ledger rather than argued for in a meeting, and the research pipeline can run as wide as we like while the order path stays exactly as it is.

A wide pipeline is the point. Sixty-two models under continuous measurement is a research programme with real throughput. Every one of them is generating scored evidence every session, which is what makes the next promotion possible.

Strategies that know their own conditions

Ten reader agents run in parallel each cycle, each owning one reading of the market: options flow, price action, volatility, breadth and sector, global intel, news shock, factors, term structure, event risk and cross asset. Their output condenses into one regime read.

That regime read routes strategy selection, and this is one of the more elegant parts of the system. Twelve strategy agents are wired in, and each declares the market conditions it is designed for. On a session where the regime came back as a downward trend, the VWAP reversion agent recognised the regime and stood aside in its own words, recorded in the node where it happened:

no candidate: regime trend_down: VWAP fades only in a range / choppy regime

That is strategy selection derived from market conditions, running every cycle, with its reasoning kept. The strategy applied its own criteria, which is how a well specified strategy should behave.

One gate, by design

What survives goes to an aggregator, then a sizer, and then to the gate.

The risk pre-check is deterministic server side code. It sits between everything that reasons and the single component that can write an order, so every order in the system passes through one well tested place. It is ordinary code, so its behaviour is fixed, reviewable and testable like any other critical path.

Four oversight agents run alongside the main graph and can pause a strategy, set it to probation, or adjust its size. They act through that same gate, which keeps the whole architecture to a single, auditable order path.

Account loss limits, lot caps and the live trading switch sit outside the agent layer entirely, as owner decisions enforced in the order management service. Separation of duties, built into the architecture rather than into a policy document.

Reaching past one market

AnkEDGE already models beyond index options.

The global surface carries overnight index closes, volatility, the US ten year yield and the trade weighted dollar, with regional news sentiment across the United States, Europe, Japan, China, wider Asia, Australia and the Middle East, fused into an overnight bias score and a gap estimate.

The commodities surface carries continuous front month MCX futures: crude oil, natural gas, gold, silver and copper, with contract units, session calendars and a push feed in place. Two MCX strategies are written and are working through the same promotion ladder as everything else.

That is the useful detail for anyone evaluating this architecture. Adding an asset class means adding data adapters and strategy definitions. The ledger, the scoring, the regime router and the gate carry over, because they were never specific to options in the first place.

Why this matters outside one market

A day ahead curve in the European coupled market went from 24 products to 96 on 1 October 2025, when the 15 minute market time unit went live across the bidding zones. Four times the products in the same window. That arithmetic makes automation the practical path.

Automation also arrived alongside the expectation of evidencing it. Article 5a of REMIT II has, since May 2024, required firms trading algorithmically to notify their national regulator and ACER, and to hold effective systems and risk controls. Whether any of that applies to a particular firm is a question for that firm’s counsel. We are engineers and we leave the scope question where it belongs.

The architectural observation is this. Article 5a asks about systems and controls rather than about trades. In our experience the record that makes systems and controls visible looks like a prediction ledger, a model register with calibration scoring, a regime router that records why a strategy selected itself in or out, and a deterministic gate that every order passes through.

That is the same record whether the instrument is an index option, a front month commodity contract, or a quarter hour power product in a European bidding zone. The asset class changes the data adapters. The shape holds.

What this demonstrates

AnkEDGE trades Indian index options, and the architecture is what travels.

What it demonstrates is how we build. We build platforms and then we run them, and this is one we chose to build and operate ourselves, which meant designing the governance to a standard we would be happy to hand to a client. The result is a system where what did it decide, and why is a screen you can open, filter and export.

That capability is usually the most valuable thing we add to a client estate. The models are normally fine and the pipeline is normally fine. The opportunity sits in the seam between the part that reasons and the part that acts, and in making every control that fires leave a record worth having.

Closing that seam well is ordinary engineering done carefully. It is also the part we enjoy most.

Related reading: Running a model in production, not just training one, Models that backtest well and lose accuracy in production

  • agentic-ai
  • ankedge
  • model-governance
  • data-engineering
  • quant-trading
  • prediction-ledger

Written by

Protocolzone

Engineering team

Platform and data engineering team behind Ashva, AnkEDGE and AmshPOS.

Got a version of this problem?

We would rather talk through a real architecture than send a deck.