Speak to our team+44 20 3769 7682+1 325 244 5212
WORK · DOWNSTREAM ERP · OIL & GAS

Downstream operations, running on a single brain.

Downstream oil & gas runs on ERPs designed for the 1990s — bolted-together modules, zero AI, and compliance as an afterthought. We built a cleaner alternative: seven tight modules sharing one typed domain model, with a regional AI layer that ingests regulation changes and maps them to config automatically.

Client
Logicbric (in-house product)
Industry
Oil & Gas · Downstream
Year
2026
Type
Enterprise Platform
Domain modules
7
Regional reg packs
12
Event-sourced domain
100%
SAP integration points
14
Legacy spaghetti
0
001 · The situation

The incumbent ERP was a tax on every operation.

Downstream operators are paying for ERPs that were architected before AWS existed. Every new regulation means a 6-month consulting engagement to change a config. Every new region means a parallel instance. The operators we spoke to wanted an ERP that treated regulatory change as data, not as a project.

01

Regulatory drift.

Each region updates compliance rules quarterly. Operators were 9–18 months behind on config updates. Every delta cost a 6-month consulting engagement.

02

Module silos.

Procurement, finance, and operations each had their own idea of what a shipment was. Reconciliation was an 8-person team with a weekly standup.

03

No audit story.

Regulators wanted event-level audit trails. The incumbent had logs in 11 different formats. Audit response averaged 3–6 weeks.

002 · The shift

Regulation is data, not a project.

The existing ERP was a filing cabinet with permissions. It treated a regulatory update as a consulting brief. We treat it as an event — read it, extract the delta, review it with a human, ship it.

How incumbent ERPs handle change
01
Regulator publishes
PDF, unstructured
02
Consulting engagement
6 months, billed weekly
03
Config delta debated
Per-module disagreement
04
Per-region rollout
Manual, parallel instances
05
Audit in 11 formats
Response: 3–6 weeks
Result: 9–18 months of regulatory debt, an 8-person reconciliation team, 3–6 week audit responses, and 14–20 months to stand up a new region.
How Downstream ERP works
01
Regulator publishes
Ingested within 24h
02
AI extracts delta
Typed diff, per-module
03
Compliance signs off
Reviewed, approved, logged
04
Event-sourced rollout
All tenants in order
05
Regulator-ready report
Same-day, one format
Result: 2–5 day update lag, 1-FTE reconciliation with sampling, same-day audit responses, 6–10 weeks to stand up a new region — the consulting line item goes away.
Inside the product

Sales to finance, one system.

The pipeline, quotations, finance and logistics views from the ERP. Shown with a fictional client.

Sales pipeline01 / 06
Sales pipeline
003 · System architecture

Seven modules. One typed domain.

The word “shipment” means the same thing in procurement, operations, and finance — because it's the same record. The AI layer doesn't bridge modules. It sits above them, listens to the regulator, and proposes changes the domain can enact.

01

Module UIs

Four primary operator surfaces plus three supporting modules. Every UI is a projection of the same typed domain — there is no separate “finance view of a shipment.”

Procurement
Purchase · Contracts
Sales
Orders · Pricing
Operations
Terminals · Logistics
Finance
GL · Reporting
02

Regulatory AI Layer

The brain. Regulation Reader parses new publications; Config Mapper proposes a typed delta; Risk Engine runs scenarios; Demand Forecast closes the loop per-terminal. Everything the AI layer does is reversible.

Regulation Reader
LLM + verifier
Config Mapper
Reg → system config
Risk Engine
Scenario-driven
Demand Forecast
Per-terminal
03

Domain Modules

Seven event-sourced services share one typed domain. Compliance owns the rulebook. Projects tracks capex. Reporting renders to whatever format the regulator prefers — from one audit lake.

Contract Service
Lifecycle
Order Service
Event-sourced
Terminal Service
Tanks · Flows
GL Service
Real-time
04

Data & Integrations

Per-tenant Postgres, a Kafka event spine, Apache Iceberg audit lake, and a SAP bridge for phased migrations. The bridge lets operators run alongside the incumbent instance during the transition.

Postgres
Per-tenant
Event Bus
Kafka
SAP Bridge
Legacy adapter
Data Lake
Iceberg + Trino
004 · Anatomy of an update

A regulation, from PDF to live config.

The moment a regulator publishes a delta, this pipeline runs. A real update, a real typed diff, a real rollout — each column a step, each step an event on the audit lake.

01
REGULATOR · PUBLICATION
ADNOC Circular · 2026-04 · §3.2

Effective 1 May 2026: Fuel terminals shall report daily vapor-recovery readings to the regulator portal. Readings exceeding 0.12 lb/gal trigger a 24-hour notification requirement and a mandatory 7-day corrective-action window.

Published as a PDF. Unstructured. Typical incumbent response: a 4-month consulting brief.
02
AI DELTA · TYPED DIFF
config("terminal.vapor_recovery", {
+  reporting: {
+    frequency: "daily",
+    portal:    "adnoc.gov",
+    since:     "2026-05-01",
+  },
+  thresholds: {
+    max_lb_per_gal: 0.12,
+    on_exceed: [
+      notify({ within_hours: 24 }),
+      corrective({ window_days: 7 }),
+    ],
+  },
   effective: "2026-05-01",
});
// cite: ADNOC Circular 2026-04 §3.2
// impacts: 3 modules · 4 terminals
Typed diff. Version-controlled. Dry-run in the sandbox tenant before any production change.
03
ROLLOUT · SIGNED OFF
ReviewerHead of Compliance
Reviewed in42 minutes
Impact modulesTerminal · Ops · GL
Live in2 days
Tenants14 / 14 rolled
Auditau_d9f13c
From publication to every tenant, inside 48 hours. Full audit record available to the regulator at a click.
005 · End-to-end flow

From a regulatory change to a live system update.

Six steps. No consultants in the path. The compliance officer is the gatekeeper — the AI is the transcriber and the domain is the executor.

  1. 01

    Regulation Ingest

    WITHIN 24H

    Regulator publishes. AI reads, extracts, and proposes a typed delta to the sandbox tenant.

  2. 02

    Impact Analysis

    PER-MODULE

    Config mapper identifies every module affected. Dry-run across the sandbox tenant before a human sees it.

  3. 03

    Compliance Review

    SIGN-OFF

    Human compliance officer reviews the delta in a typed diff UI. Approves, rejects, or requests change.

  4. 04

    Config Rollout

    EVENT-SOURCED

    Versioned config is shipped as an event. Every tenant picks it up in deterministic order.

  5. 05

    Audit Record

    IMMUTABLE

    The whole change — reg text, AI extraction, human sign-off, tenant rollout — is committed to the audit lake.

  6. 06

    Regulator Report

    ONE-CLICK

    Evidence of conformance generated on-demand in the regulator's preferred format, directly from the lake.

006 · Capabilities

Six capabilities. Enterprise-grade without the enterprise ritual.

Seven modules built on one substrate, an AI layer that watches the regulator, an audit lake that answers on demand, and a migration bridge that means you don't have to rip out SAP to start.

01

Regulation-Aware AI

Regulators update. The system updates with them.

Reads regulator publications as they go live, proposes typed config deltas per-module, and waits for human sign-off. No consulting brief required.

Claude 3.5Typed deltasPer-module impact
02

Event-Sourced Domain

Rebuild any day. Audit any moment.

Every state change is an event. Any past state is replayable for forensics, audit, or the regulator's favorite question: “show me what you had in production on March 3rd.”

Kafka WALReplay enginePer-tenant
03

Typed Contracts

One shipment. One truth.

Shared domain types across all 7 modules. A “shipment” means the same thing in procurement, ops, and finance — because it's the same record, not a projection.

Kotlin DSLGraphQL FederationStrict schema
04

Risk Scenario Engine

Monday-morning what-ifs.

Simulate across terminals, contracts, and pricing before committing. “What if margins drop 6%?” answered in minutes, not in a Tuesday consulting call.

Parameterized simsParallel runsPer-scenario audit
05

Regulator-Ready Reporting

Audit response: same day.

Evidence of conformance generated on demand in the regulator's preferred format — straight from the audit lake, no report-team middleman.

Iceberg + TrinoFormat adaptersSigned outputs
06

SAP Bridge

Migrate without a boil-the-ocean project.

Dual-write adapter for phased migrations — run Downstream ERP alongside an existing SAP instance during transition. Modules move one at a time.

Dual-writeCDCCutover per-module
007 · Outcomes

Two pilot operators. Two years in production.

Measured across two mid-sized downstream operators running in production on Downstream ERP. The cross-module breaks metric is the one that keeps their CFO sleeping.

Regulator response time
−98%
weeks → hours
Reconciliation FTE
−87%
8 → 1, plus audit sampling
Regulatory debt
0
months behind
TCO vs incumbent
−54%
5-year projection
Cross-module breaks
0
since domain unification
008 · The stack

What we built it with.

Kotlin for the domain — strong types across a seven-module surface matter more than language fashion. GraphQL Federation for cross-module queries. Iceberg for the audit lake. Trino for ad-hoc regulator queries.

01

Models

  • Claude 3.5 Sonnet
  • GPT-4o
  • Embeddings
02

Frontend

  • Next.js 16
  • React 19
  • Blueprint UI
03

Backend

  • Kotlin
  • Spring
  • GraphQL Federation
04

Data

  • Postgres
  • Kafka
  • Apache Iceberg
  • Trino
05

Infra

  • Azure
  • AKS
  • Terraform
  • Datadog
009 · OUTCOME
We used to tell regulators we'd need three weeks to respond. Last audit, we answered every query in the same meeting. The audit lake is a superpower.
— Head of Compliance, regional downstream operator (pilot)

Downstream ERP turned regulation from a cost center into a capability. Compliance is code. Audits are queries. New regions are config. Everything downstream operators have wanted for a decade — delivered without a rip-and-replace project.

Build with us

Want a case study with your name on it?
Let's start the conversation.

Tell us what you're trying to build. We'll be honest about what's hard, what's worth it, and whether we're the right partner for the job.

30-minute call·Written audit within 5 days·No slide deck