AI Worker Gateway

AI Worker Gateway pilot results

Measured results from the live AI benchmarks and the deterministic finance qualification, including what still has to be done before go-live.

Latest run: worker v6.2 with two inference slots

Worker v6.2 adds simulated SAP backend latency and runs two inference slots on the same eight-core Spot machine. All 48 decision tests passed, including a new OData update test, with no policy violations. With two slots the workload finished in 3 minutes 11 seconds, 15 transactions per minute: 49% more throughput than with one slot, and faster than v6.1 even though every SAP call now has a realistic delay.

Each inference request generates tokens more slowly when two share the CPU, about 7.6 instead of 9.5 tokens per second for plain-language requests, but two requests progress at the same time. Structured ERP jobs are not slowed down by the AI queue: their median end-to-end time was 4.9 seconds, almost all of it simulated SAP round trips, while the decision itself took under a millisecond. Two inference slots are now our provisional default for this machine type, subject to repeated measurements.

BenchmarkInference slotsSAP latencyPassedWorkload timeJobs per minute
v6.11None48 / 48231 s12.5
v6.21Simulated, fast48 / 48284 s10.1
v6.22Simulated, fast48 / 48191 s15.1

Workload time excludes cold start. Cold start in the dual-slot run: 82 s model download and 7 s initialisation, about 4 minutes 40 seconds in total with the workload, excluding machine provisioning. SAP calls went to a simulated system with a fast latency profile.

  • 48 of 48 decision tests passed in every run, with zero policy violations
  • +49% throughput and a 33% shorter workload with two inference slots
  • Structured ERP jobs: 4.9 s median end to end, decision under 1 ms
  • SAP simulation: 28 OData reads, an OData update with CSRF token, 2 SOAP postings confirmed, 9 unsupported cases held for review

15 per minute · two slots

Mixed ERP and AI jobs completed per minute on one eight-core Spot machine without GPU, about 900 per hour. 49% more than with a single inference slot.

~5 s · structured ERP job

Median end-to-end time per structured job, including simulated SAP round trips. The deterministic decision itself took under a millisecond and never waits for the AI.

~$0.10–0.15 per 1,000

Estimated Spot compute cost for the mixed workload: about $0.10 per 1,000 jobs for the workload itself and $0.15 including worker start, at $0.092 per hour.

Response time per execution path in a batch

In a batch run, AI requests wait for a free inference slot, so their end-to-end times are measured in minutes while the model time per request is seconds. A second slot cut the median for plain-language requests from 167 to 113 seconds. In v6.2, structured jobs no longer wait behind AI requests: their median dropped from 105 seconds in v6.1 to under 5 seconds.

Execution pathv6.1, one slotv6.2, one slotv6.2, two slots
Structured (ERP)105.2 s5.2 s4.9 s
Unstructured (AI)144.6 s166.7 s112.6 s
Hybrid (AI + ERP)104.4 s125.9 s116.2 s

Median time per job from submission to stored result, including time spent waiting behind other jobs in the batch of 48. This measures batch latency, not processing time per job; the v6.1 processing times reported further down exclude this waiting.

Previous run: worker v6.1 with one inference slot

This benchmark ran worker v6.1 end to end: real GPT-OSS-20B inference on a single eight-core Spot machine without GPU, with every job, its processing state and its result stored in a shared PostgreSQL database. It processed 48 business transactions along the three execution paths of the gateway and passed all 48, with no policy violations. The financial write-backs went to a simulated SAP system, and all 11 were confirmed.

Structured jobs, where the operation and documents are already known, never call the model: the median job took 0.58 seconds, mostly for durable storage. Plain-language and hybrid requests took about half a minute, because the single model slot handled the requests one after another. Pure inference took a median of 11 and 7 seconds; the rest was waiting for the slot. More inference slots or a GPU worker shorten exactly this wait.

Execution pathWhat it meansPassedMedian time per jobModel calls
StructuredOperation and documents known; the deterministic engine decides without AI24 / 240.58 s0
UnstructuredPlain-language request; the AI worker interprets it, the engine decides12 / 1235.8 s (11 s inference, 25 s waiting for the model)12
HybridStructured references plus free text; AI worker and engine together12 / 1231.6 s (7 s inference, 24 s waiting for the model)12

Median time per job from submission to stored result, excluding the initial worker start. Component medians are calculated independently and do not add up exactly. One model slot, no GPU. Write-backs went to a simulated SAP system.

  • 48 of 48 business transactions passed, with zero policy violations
  • 11 of 11 financial write-backs confirmed by the simulated SAP system
  • Whole workload in 3 minutes 51 seconds on one Spot machine, excluding cold start
  • Worker ready about 95 seconds after start: 88 s model download, 7 s model initialisation

~11 s · AI worker

Median model time per plain-language request in the v6.1 run, 7 s for hybrid requests. With one model slot, requests waited about 25 s more in the queue, which more slots or a GPU worker remove.

~0.6 s · deterministic engine

Median time per structured job from submission to stored result, with no model call at all. The whole workload of 48 jobs ran in 3 minutes 51 seconds.

$0.02–0.28 per 1,000

Estimated Spot compute cost by path: under $0.02 for structured jobs, about $0.18 for hybrid and $0.28 for plain-language requests. The mixed run cost about $0.17 per 1,000, worker start included.

Earlier benchmarks: worker v5 to v5.12

We test every model on realistic business scenarios before it touches production data. The pilot with AI worker v5 ran a 20-billion-parameter open-weight model on a standard eight-core cloud machine on Spot capacity, with no GPU and no external AI service. In its extended qualification run it processed 100 business scenarios in a single batch: accounting and finance, SAP sales processes, Odoo processes, membership billing, security and tenant isolation, multilingual requests and exception handling, including attacks such as malicious instructions hidden in invoice notes.

The language model understands the request and plans the work. A deterministic finance engine with exact decimal arithmetic performs the calculations, and an authorisation layer outside the model decides what is allowed. Worker v5 passed 98 of the 100 extended tests and all 20 tests of the standard benchmark, 118 of 120 across both runs. Every financial calculation and every security test passed, every result had a valid structure, and there were no invalid tool calls or authorisation violations.

The two remaining errors were about meaning, not arithmetic. In an SAP billing case the model calculated the quantities correctly but chose to wait instead of billing the 29 units already shipped. In a Catalan cash-flow request it read collected receipts as outgoing payments. Worker v5.1 therefore takes these decisions out of the model as well. A deterministic SAP decision engine covers 13 SD and FI processes, from delivery-related billing, availability checks and pricing to tax determination, foreign currency valuation, dunning and period-end closing. Semantic validation takes the financial figures from the trusted source system instead of from the model's reading of the request. The engine only proposes, holds or escalates; it never posts, clears or releases payments. In its first live run, worker v5.1.1 passed all 35 new SAP qualification scenarios, covering availability checks, pricing, returns, tax, foreign currency valuation, dunning and period-end closing. It correctly held or escalated all 28 cases that must not proceed, and every result came from the deterministic engine. Re-running the earlier suites, including the two scenarios that failed before, is the next step, because our target before go-live is 100% financial accuracy.

Since then the worker has grown into a full SAP integration reference (v5.2 to v6.1). Structured requests from SAP or other applications, where the operation and documents are already known, now go straight to the deterministic engine without starting the language model at all. Mock adapters built on published S/4HANA OData and SOAP interfaces cover bulk reads, approved mass changes and controlled FI journal posting, clearing, bank matching and reversal, with independent multi-level approval, amount limits, an emergency stop and a tamper-evident audit chain. A reproducible qualification of 1,000 generated finance cases, 800 decisions and 200 posting, clearing and reversal lifecycles, passed completely twice in a row, without a single LLM call. All of this runs against synthetic SAP data. Live SAP writes stay disabled until a customer quality system, a finance specialist review and independent acceptance tests are complete; the release check currently lists eleven such open production gates.

What counts as one business operation: one self-contained business task, completed end to end. The AI reads the request, calls the ERP or database tools it needs, has the finance engine calculate, and returns a checked, structured result. Examples are reconciling a bank transaction, calculating VAT for a credit note or forecasting cash flow. Worker start-up and the write-back by the replication worker are not counted in the time per business operation.

  • 98 of 100 extended business tests passed with worker v5 (98%)
  • 35 of 35 SAP SD and FI decision tests passed with worker v5.1.1, including all 28 cases that had to be held or escalated
  • 1,000 of 1,000 generated finance qualification cases passed by the deterministic engine, with no LLM call (v5.12)
  • 153 of 155 live AI benchmark tests passed, all results structurally valid, with no invalid tool calls or authorisation violations

~18 s · AI worker

Average time per business operation when the AI worker works through the whole task itself, with the finance engine only doing the arithmetic. Measured on 100 mixed business scenarios on a CPU-only machine.

~7.5 s · AI worker + deterministic engine

Average time per SAP decision when the AI worker only selects the operation and the deterministic decision engine determines the result (worker v5.1.1). Measured on 35 SAP scenarios; the whole job, including worker start, ran 6 minutes 43 seconds.

$0.29–0.50 per 1,000

Measured compute cost per 1,000 successful operations on Spot capacity, worker start included: about $0.29 with the deterministic engine and $0.50 with the AI worker alone. Storage and network are excluded.