Skip to content
In the news TRM Labs × Finray — audit-ready crypto transaction monitoring for banking
Finray

Where machine learning helps in Ordinis, and where a rule does better.

For my ETH CAS innovation project I tested each machine-learning component in Ordinis against the rule it was meant to improve on. Hybrid search passed all four gates and is now in production. For risk scores, control status and risk direction, the rule did better.

From the innovation project with which Oleksandr Potapenko completed the CAS ETH in Machine Learning in Finance and Insurance in November 2026. Project defended on 7 November 2026.

Oleksandr Potapenko in the Finray office

Status as of 22 November 2026:

In production
Hybrid search, which finds evidence and policy passages and explains each result.
In testing, not in production
The risk-score overlay, anomaly detection, the control and risk-direction classifiers, the optional Mistral classifiers and the 15-minute monitoring agent. They are on Finray's staging fork.
Rule-based
Risk scores, control status and risk direction.

Ordinis is Finray's governance, risk and compliance platform. In autumn 2026 I tested every machine-learning component in it against the rule it was meant to improve on, with the pass mark written down before measuring. Hybrid search over FINMA texts and platform rules ranked the right passage first for 34 of 58 test questions, against 18 for a keyword baseline (TF-IDF), and it passed all four admission gates in the research test. The other components did not beat their rules, so risk scores, control status and risk direction stay rule-based. Hybrid search went into production after the research. The work was my innovation project in the CAS ETH in Machine Learning in Finance and Insurance.

Why I tested the machine learning in our own platform.

The guiding idea was simple: a risk and compliance platform that uses machine learning should meet the same standards it helps its clients to meet. FINMA's Guidance 08/2024 on governance and risk management when using artificial intelligence describes what it found in supervision: governance, an inventory with risk classification, data quality, tests and ongoing monitoring, documentation, explainability and independent review. Banks and FinTechs that buy software for those duties, such as the Swiss banks and FinTechs Finray works with, should be able to see the same evidence for a vendor's own models.

My research question was where machine learning adds measurable value in a regulated GRC process whose data are small and whose every decision must be auditable, and how such models should be built and governed to be admissible. The bar was high from the start. Ordinis computes each risk's residual score deterministically from its inputs: likelihood and impact, control effectiveness, and adjustments for assets, incidents, vulnerabilities and staleness. The same inputs always give the same score. A model has to do better than that, or explain itself better, to earn a place beside it.

What Ordinis uses machine learning for.

Each machine-learning component sits on top of a rule that does the same job without a model. The rule is the baseline the model has to beat, and it keeps working when the model is switched off.

Where machine learning sits in Ordinis.

  1. Risk-score explainer

    Gradient-boosted trees with SHAP

    In testing

    Six-factor risk engine

    Sets every score

  2. Control-failure forecast

    Logistic model

    In testing

    Historical failure rate

  3. Anomaly flags

    Isolation Forest

    In testing

    Profile-deviation rule

  4. Risk direction

    Gradient-boosted trees

    In testing

    Last year's direction

  5. Text classifiers

    Local language model

    In testing

    Keyword lists

  6. Monitoring agent

    Scans every 15 minutes

    In testing

    Operational scan rules

  7. Hybrid search

    Meaning score plus word score

    In production

    Keyword ranking

    The fallback

Status as of 22 November 2026. "In testing" means built on Finray's staging fork and not in production. Each line joins an overlay to the rule it was measured against; the rule keeps working when the overlay is switched off.

In plain words, the components are an explainer for risk scores, a forecast of whether a control's next test will fail, flags for unusual risks and controls, a forecast of whether a risk category in the FINMA Risk Monitor is rising or falling, language-model classifiers for control texts and incidents, a monitoring agent that scans risks and controls every 15 minutes, and search over FINMA documents and platform rules. Hybrid search is in production. The others are on Finray's staging fork, where new tools are built and tested before review, and they do not run in production.

How each component was judged.

Every component faced the same four gates, taken from Ordinis' own admission rubric. It has to be better than its rule by a margin fixed in advance. It has to explain each output at the level FINMA expects and label it as model output. Its latency and cost per call have to be measured and bounded, with a circuit breaker. If the model fails, Ordinis has to fall back to the rule without losing a function.

The margins were concrete: at least 10% lower error for a score, +0.05 for classification and ranking, and +0.10 for anomaly detection and language-model tasks. For risk direction and search, the 95% confidence interval of the improvement also had to stay above zero, with intervals drawn by resampling whole source documents. I worked in rounds. First every component faced the first gate; then the one that passed faced all four; then I chose which search method to prepare for admission. For that final test the thresholds were written into the result file before any measurement, and nothing was tuned afterwards.

The four gates, and which components passed them.

Research verdicts for each component on the four admission gates, with the decision taken
Component Better than the ruleExplainableAffordableSafe if it fails Decision
Risk-score explainer FailPartialPartialPartial Rule; the engine's factors explain the score
Control forecast and anomaly flags FailPartialPartialPartial Rule
Risk direction FailPartialPartialPartial Last year's direction
Search, round one PassPartialPartialPartial Tested further
Text classifiers and re-ranking FailFailPartialPartial Off; re-ranking disabled
Monitoring agent and proposals Not runPartialPartialPartial Planned: scan rules and a review queue
Hybrid search, final test PassPassPassPass Prepared for admission; now in production
  • Risk-score explainer

    Better than the rule
    Fail
    Explainable
    Partial
    Affordable
    Partial
    Safe if it fails
    Partial
    Decision
    Rule; the engine's factors explain the score
  • Control forecast and anomaly flags

    Better than the rule
    Fail
    Explainable
    Partial
    Affordable
    Partial
    Safe if it fails
    Partial
    Decision
    Rule
  • Risk direction

    Better than the rule
    Fail
    Explainable
    Partial
    Affordable
    Partial
    Safe if it fails
    Partial
    Decision
    Last year's direction
  • Search, round one

    Better than the rule
    Pass
    Explainable
    Partial
    Affordable
    Partial
    Safe if it fails
    Partial
    Decision
    Tested further
  • Text classifiers and re-ranking

    Better than the rule
    Fail
    Explainable
    Fail
    Affordable
    Partial
    Safe if it fails
    Partial
    Decision
    Off; re-ranking disabled
  • Monitoring agent and proposals

    Better than the rule
    Not run
    Explainable
    Partial
    Affordable
    Partial
    Safe if it fails
    Partial
    Decision
    Planned: scan rules and a review queue
  • Hybrid search, final test

    Better than the rule
    Pass
    Explainable
    Pass
    Affordable
    Pass
    Safe if it fails
    Pass
    Decision
    Prepared for admission; now in production
Better than the rule
Beats a named rule by a margin fixed before measuring: at least 10% lower error for a score, +0.05 for classification and ranking, +0.10 for anomalies and language-model tasks. For risk direction and search, the confidence interval must also stay above zero. Pass in 2 of 7 rows.
Explainable
Explains each output at the level FINMA expects, and labels it as model output. Pass in 1 of 7 rows.
Affordable
Latency and cost per call are measured and bounded, with a circuit breaker. Pass in 1 of 7 rows.
Safe if it fails
Falls back to the rule without losing a function. Pass in 1 of 7 rows.
Research verdicts from the notebooks of 2 November 2026. A component needs all four gates before production admission. Mitigation suggestions and an alternative embedding engine did not meet the first gate and were not scored on all four. "Planned" marks a decision that is not yet built.

Working with very little data.

The pilot behind this work is small: a pilot dataset at a regulated Swiss financial firm with fewer than one control test per control on average. I used no raw pilot records. A simulator calibrated to a few aggregate counts reuses Ordinis' own feature code and generated ten simulated tenants, each with 24 months of control history. For search I used public material and platform texts: 22 public documents, such as FINMA guidance and the FINMA Risk Monitor, and 242 platform texts, split into 3,096 passages. I wrote 72 questions myself, used 14 of them to tune and held 58 back for the test.

I treated the small sample as the problem itself. The models were checked with repeated cross-validation and learning curves, and I set regularised and monotone variants against the production configuration. The curves show what more data would buy. For the risk score, a plain ridge regression beat the production model at every simulated size; at the largest simulated size its error was 1.455 against 1.917. For control failures, even the largest simulated history did not let a logistic model beat the historical failure rate.

Small data, honest curves.

Risk score: error as the simulated tenant grows

Mean absolute error, lower is better

Simulated size, from the smallest to the largest step; steps evenly spaced, not to scale

At the pilot's size: Production model (gradient-boosted trees) 2.421 · Ridge regression 2.036 · Monotone trees 3.024

Risk score: error as the simulated tenant grows, mean absolute error, lower is better
Simulated sizeProduction model (gradient-boosted trees)Ridge regressionMonotone trees
the smallest simulated size3.8923.7353.400
step 2 of 63.8492.5405.227
step 3 of 63.1131.9653.818
the pilot's size2.4212.0363.024
step 5 of 62.1141.6672.963
the largest simulated size1.9171.4552.593

Control failures: quality as history grows

Macro-F1, higher is better

Simulated size, from the smallest to the largest step; steps evenly spaced, not to scale

Simulated tenants, of 10, where the model beat the failure rate, from the smallest step to the largest: 2, 3, 2, 1, 1, 0, 0 (2 at the pilot's size).

At the pilot's size: Logistic model 0.552 · Historical failure rate 0.597 · Last test's outcome 0.561

Control failures: quality as history grows, macro-f1, higher is better
Simulated sizeLogistic modelHistorical failure rateLast test's outcome
the smallest simulated size0.4980.5260.486
step 2 of 70.5190.5550.517
the pilot's size0.5520.5970.561
step 4 of 70.5810.6160.581
step 5 of 70.5730.6170.589
step 6 of 70.6020.6440.591
the largest simulated size0.6440.6630.592
Ten simulated tenants with 24 months of history, calibrated to aggregate counts from the pilot; no client records. The steps are shown in order only, evenly spaced and without sizes. The risk-score curve at pilot size (2.421) comes from the learning-curve run and differs from the repeated cross-validation figure in the text (2.245), which is a separate experiment.

Round one: only search beat its rule.

The pattern was consistent. The risk-score explainer had a mean absolute error of 2.245 points, against 1.367 for a rule that uses the inherent score alone. The control-failure forecast came out slightly worse than the historical failure rate, with a macro-F1 lift of −0.011 where +0.05 was required. Of the five risks that Isolation Forest ranked as most unusual, 18% on average were injected anomalies, against 78% for a robust rule. The local language-model classifiers scored 0.21 and 0.56, where keyword lists scored 1.00 and 0.98. Risk direction improved by +0.023, but its interval runs from −0.098 to +0.161 and includes zero, so there is no measurable gain.

Two caveats pull in opposite directions. The test fixtures for control texts and incidents share their vocabulary with the keyword lists, which puts that rule at its ceiling. In the monitoring-agent test, the simple operational rules were built from the same definitions as the injected issues, so their recall of 0.924 is an upper bound.

Each model against its rule.

Each machine-learning component compared with its rule: metric, model value, rule value, required margin, result and what happens now
Component Model against rule Result What happens now
Risk-score explainer Compared with: Inherent-score rule Mean absolute error, lower is better Model 2.245 · Rule 1.367
Needed: 10% lower than the rule
Not better Rule kept; the engine's factors explain the score
Control-failure forecast Compared with: Historical failure rate Macro-F1 lift over the rule, ± seed SD Model −0.011 ± 0.027 · Rule at 0
Needed: +0.05
Not better Rule kept
Anomaly flags Compared with: Profile-deviation rule Precision in the top five Model 0.18 · Rule 0.78
Needed: +0.10
Not better Robust rule kept
Risk direction Compared with: Last year's direction Macro-F1 lift over the rule, 95% interval Model +0.023 [−0.098, +0.161] · Rule at 0
Needed: +0.05, interval above 0
No measurable gain Last year's direction
Control-text classifier Compared with: Keyword lists Macro-F1 Model 0.211 · Rule 1.000
Needed: +0.10
Worse Off
Incident classifier Compared with: Keyword lists Macro-F1 Model 0.565 · Rule 0.980
Needed: +0.10
Worse Off
Link re-ranking Compared with: Cosine ranking Precision in the top three Model 0.900, with a 95th-percentile latency of 15.5 s · Rule 0.733
Needed: +0.05 within a 5 s deadline
Better, too slow Disabled; cosine ranking stays
Alternative embedding engine Compared with: BM25 word search nDCG@10 on its own passages Model 0.553 · Rule 0.628
Needed: +0.05
Not better Not taken forward
Mitigation suggestions Compared with: Most common measures in the category Right measure in the top five Model 0.062 · Rule 0.075
Needed: +0.05
Not better Planned: show reasons and a tie-break
Monitoring agent Compared with: Simple operational rules Share of injected issues found Agent's rules 0.102 · Operational rules 0.924, an upper bound
Needed: not set; only the agent's rules were replayed, its model step was not run
Not run Planned: operational scan rules and a review queue
Hybrid search Compared with: The keyword baseline (TF-IDF) nDCG@10, 58 held-out questions Model 0.750, +0.210 [+0.115, +0.325] · Rule 0.540
Needed: +0.05, interval above 0
Better; all four gates passed In production
Simulated tenant, public FINMA documents and Ordinis test fixtures; no client records. Each strip has its own scale, shown at its ends. The keyword fixtures share their vocabulary with the keyword lists, which puts that rule at its ceiling. The operational rules in the agent test were built from the same definitions as the injected issues, so their figure is an upper bound.

Why the rule won for scores and control status.

The risk engine is a formula, and it reproduces its own score exactly, with an error of 0.000. A model trained to copy it can only add error. Its explanations did not help either. SHAP values for the copy depend on the reference they are measured against: against the engine's neutral reference their rank correlation with the engine's own factor breakdown was −0.014, and against the training data it was 0.710. An explanation that changes with that choice cannot stand in for the formula, so the engine's factors stay the explanation a reviewer and an auditor see.

The control model had a different problem. Its label was computed by a rule from the model's own inputs. On the simulated tenant it reported 0.923 accuracy, yet it put 0.0% of its weight on the two inputs that define the label and 94.3% on history proxies such as completion rate and failure count. It had learned shortcuts. Once I replaced the label with an independent target, whether the next test of a control fails, there was too little history for any model to beat the failure rate.

Risk direction hit the same limit from another side. The public FINMA series has 53 annual observations and one falling case, and no test year contains a falling case. For all three the decision is the same: the rules stay, they show their reasons, and reviewer decisions are collected as labels for a later model.

From research result to production.

The report of 2 November 2026 prepared hybrid search, with TF-IDF as its fallback, for admission review as the upgrade for evidence search. It named the steps between the research result and production: integration into the server search engine and validation on that engine's own passages, an AI label in the interface, outage checks in the running application, and approval by a person other than the developer, the four-eyes principle applied to a model. As of 22 November 2026, hybrid search is in production. The measurements in this article come from the research test, which ran one question at a time; they are not production monitoring.

The research left two checks open. A second person should label part of the questions independently, and a new set of questions should confirm the choice of method, because I picked hybrid search by its score on the same 58 questions that the final test measured again. The 80:20 weight itself was tuned on the 14 tuning questions only.

How a model gets into Ordinis.

The project produced a decision rule for Finray's own development: deterministic first, with machine learning as an explainable overlay only where all four gates pass. It fits how Finray builds software with AI agents, where a failing test comes before the code that makes it pass and a person approves the exact version before it is merged. For a model, the named rule and the margin fixed in advance are that test.

New models are built on the staging fork. A model that passes its gates gets a model card with its intended use, data, metrics with uncertainty, baseline, explanation method, limits and decision, and reviewed work moves to the release-candidate fork. The research proposed four more steps, each signed by a different person: independent validation, approval by a risk owner other than the proposer, monitoring of drift, overrides and cost, and retirement. A breach switches the overlay off until it is validated again.

The path of one model through Ordinis.

  1. Built on the staging fork

    New models are built and tested away from production.

  2. Rule and margin fixed first

    Each model gets a named rule to beat and the margin it must clear.

  3. Four gates, run in a notebook

    Better than the rule, explainable, affordable and safe if it fails.

    The risk-score explainer, control forecast, anomaly flags, risk direction and text classifiers stopped here. Their rules stayed.

  4. Model card

    Intended use, data, metrics with uncertainty, limits and the decision.

    Hybrid search passed all four gates and got its card.

  5. Review and promotion

    Reviewed work moves to the release-candidate fork.

  6. Independent validation

    A reviewer other than the developer checks the gates again.

    Proposed

  7. Approval by the risk owner

    Someone other than the proposer approves the use.

    Proposed

  8. Monitored

    Drift, overrides and cost are watched. A breach switches the overlay off.

    Proposed

  9. Retired

    The overlay is withdrawn and its rule carries on.

    Proposed

The first five steps are how the research ran on the staging fork. The four steps marked proposed are the lifecycle the research proposed for the release-candidate fork, with a different person signing each one. Hybrid search is in production as of 22 November 2026; the gate results come from the research test.

Two safeguards sit around every model. A change that a model suggests is recorded as a proposal, and the live score stays untouched until a reviewer decides, which is human-in-the-loop approval in practice. A policy rule enforces segregation of duties: the proposer, or the actor that triggered the proposal, cannot decide it. I read that rule in the code; it was not yet run as a test in the research. Governance checks on the staging fork are still open; no other component reaches production until they are closed. Hybrid search, for its part, has a time budget with keyword ranking behind it.

When something fails, a rule or a person takes over.

A search request

  1. Question

    A reviewer asks for evidence or a policy passage.

  2. Meaning score and word score

    The embedding model has a 100 ms budget; the word score needs no model.

    Tested in research

    If the meaning step is late, fails or returns broken numbers

    Keyword ranking

    TF-IDF answers instead, and the reason is recorded.

    Tested in research

  3. Fused top ten

    80% meaning, 20% words; each result keeps its source and page.

    Tested in research

  4. Labelled result

    Shown as AI-suggested, to verify against the source.

    Tested in research

Normal load
Over 1,000 queries: median 9.8 ms, 95th percentile 15.2 ms, slowest 56.8 ms, against a ceiling of 200 ms.
Model delayed
100 of 100 queries delayed by 300 ms were answered from the word score; the slowest took 107.6 ms.
Model failed
With the model raising an error, and again with broken vectors, 72 of 72 questions were answered, at the quality of the keyword baseline, TF-IDF (nDCG@10 0.540).
Open at the time of the research
An outage test in the running application, and many users at once.

A score change

  1. Model suggestion

    From an agent cycle or an engine recalculation.

    These models are in testing

  2. Proposal recorded

    The live score stays untouched.

    Read in the code

  3. Segregation of duties

    The proposer and the triggering actor cannot decide.

    Read in the code; not yet tested in the research

  4. Reviewer decides

    Accept, reject or defer.

    Run in the simulation

  5. Engine applies it

    The formula recomputes the score and an audit row is written.

Why review stays
In the simulation, proposed scores were further from the formula than the current scores: mean absolute error 2.365 against 0.958.
Open on the staging fork
Governance checks on the staging fork are still open; no other component reaches production until they are closed.
Search figures: research test of hybrid search, one question at a time on a CPU. Review figures: simulated tenant. "Read in the code" means the author read the rule in the source; it was not yet run as a policy test in the research.

How the work maps to FINMA Guidance 08/2024.

FINMA's guidance on AI groups its findings from supervision into seven areas. The table shows, in my assessment, where the Ordinis research stood against each area on 2 November 2026 and what comes next. It is the author's assessment, not legal advice and not a view of FINMA. How the same guidance applies to software that acts on payments is covered in the control layer for agentic payments.

FINMA Guidance 08/2024 areas, where the Ordinis research stood on 2 November 2026, and the next step, in the author's assessment
FINMA 08/2024 sectionWhere the research stood (author's assessment)Next step
2.1 GovernanceAn accountable owner and an independent sign-off are still to be named for each model.A lifecycle bound to each model version, with named roles.
2.2 Inventory and risk classificationAn inventory of models exists; dependencies are partly listed.Every overlay and dependency listed, with a risk tier based on how the model is used.
2.3 Data qualitySparse histories, questions labelled by the author, and two leakage findings.As-of data lineage and outcomes labelled independently.
2.4 Tests and ongoing monitoringGate tests exist; drift, override and cost monitoring are still to be added.Outcome and override monitoring, deduplication and telemetry.
2.5 DocumentationModel cards exist; their evidence is not yet bound to the serving version.Versioned model cards.
2.6 ExplainabilityThe engine's exact factors are available; SHAP values differ from them; search splits each score.The engine's factors as the reference explanation; source and score split for search.
2.7 Independent reviewValidation by someone other than the developer is still to be built into the path.Independent validation before a model is switched on.

Limits of this study.

  • The simulation is calibrated to aggregate counts only, so it can miss patterns that individual records would show.
  • I wrote and labelled the test questions myself, in English only.
  • Latency was measured one question at a time, without many users at once.
  • The public FINMA series has a single falling risk, so a falling direction cannot be validated.
  • The search test measures how well passages are found. A check of generated answers with a local language model looked promising (0.80 correctness and 0.90 faithfulness on 10 questions), but the same model wrote and judged the answers, so I treat it as exploratory.

Finray's security and due-diligence material is collected in the trust centre.

Frequently asked questions.

Does Ordinis use machine learning to set risk scores?
No. Risk scores come from a deterministic six-factor engine, so any score can be recomputed from its factors. In the research, a model trained to copy the engine only added error, and the engine's own factors remain the explanation. A change that a model suggests waits in a review queue for a person's decision.
Is hybrid search live in Ordinis?
Yes. As of 22 November 2026 hybrid search is in production. It finds evidence and policy passages and explains each result. The figures in this article come from the research test of 2 November 2026, which ran one question at a time, and they are not production monitoring.
Was client data used in the research?
No raw client records were used. The research used a simulator calibrated to a few aggregate counts from a small pilot dataset, ten simulated tenants with 24 months of history, public FINMA documents and test questions written by the author.
Why publish the components that failed?
A failed test shows where a rule is the better tool, which is worth knowing before anyone builds a model. FINMA's Guidance 08/2024 also expects institutions that use AI to test, document and independently review their models, and negative results belong in that record.
What happens if the search model fails?
In the research test, hybrid search fell back to keyword ranking and recorded the reason. With the model raising an error, and again with broken vectors, all 72 questions were answered each time, at the quality of the keyword baseline (TF-IDF).
What does nDCG@10 measure?
It measures how well the first ten results are ordered, on a scale from 0 to 1. A ranking gets the most credit when the right passage is at the top.

About this project.

Programme
CAS ETH in Machine Learning in Finance and Insurance, innovation project 2026.
Project (short title)
Ordinis: Explainable and Governed Machine Learning for Risk and Compliance Management.
Dates
Outline 15 September 2026; report submitted 2 November 2026; project defended 7 November 2026.
Result
The project was graded 5.75 out of 6. Oleksandr Potapenko completed the CAS ETH in Machine Learning in Finance and Insurance in November 2026.
Evidence
Nine executed notebooks with the same nine sections each, and seven model cards. The cards are research records; their owner and approval fields are still open.
Data
No raw client records: a simulator calibrated to aggregate counts, public FINMA documents, platform texts and questions written by the author.

is the founder and CEO of Finray. He started building Ordinis in early 2026.

Sources

All articles · Ordinis

Certificate of Registration NQA · UKAS Management Systems
ISO/IEC 27001:2022 Certificate of Registration issued by NQA to Finray Technologies Ltd, certificate number 215646, valid 21 October 2025 to 21 October 2028
Search
Type to search across Finray, products, company, and journal.

    Press Esc to close · ↵ to open the highlighted result.

    Book a briefing Step 1 of 3

    What you need

    Which platforms are in scope.

    For example a licence application, an audit or a ledger build-out.

    What happens after you book

    • A team member will respond within one business day with availability windows.
    • Corebanq runs as Cloud SaaS, Private SaaS or an Enterprise Licence.
    • After the briefing, the full Corebanq and XZiel API references are issued with test-environment access.
    • Due-diligence documents, such as a summary of the April 2026 independent penetration test, are available under NDA.