Skip to content

ForecastAI 2026.01 — Mirabelle

Mirabelle is a supply-chain intelligence platform that combines statistical and deep-learning demand forecasting, multi-echelon inventory optimisation (MEIO), supply planning, score-based allocation, causal/asset-driven forecasting, automated alerts, and exception management — all within a multi-tenant, pipeline-based architecture.

This documentation is organised by domain. Each domain section covers its data structures, processes, complete parameter/settings references with examples, and illustrated UI walkthroughs.


What Mirabelle Does

Mirabelle ingests your business data and produces:

  • Demand forecasts — rolling horizon using 18 statistical, ML and neural models (AutoARIMA, AutoETS, MSTL, Croston, SeasonalHurdle, LightGBM, XGBoost, NHITS, NBEATS, PatchTST, DeepAR, TFT, Chronos, …), or external customer forecasts as master data (forecast_mode: external).
  • Best-method selection — composite weighted backtesting automatically picks the winning model per series.
  • Forecast netting — the planning signal is the forecast netted against firm demand orders, confirmed returns, and approved replenishments.
  • Indirect demand rollup — two-pass (gross + netted) network propagation so warehouses and plants see the demand they serve.
  • MEIO / inventory optimisation — safety stock, reorder points, EOQ exchange curves; empirical demand-over-LT Monte-Carlo sizing, collaborative zones (risk pooling), line fill rate (order-line semantics), forecast-basis sizing for new items, and the optional V4 network mode with one-hop lateral rescue and timed repair.
  • Supply planning — MRP-style (Rust) or LP (HiGHS) runs generating BUY / BUILD / REPAIR / TRANSFER / BALANCING / ZONE_BALANCING orders with multi-hop pegging, dated capacity constraints, and inventory projections — reconciled end-to-end with firm ERP orders.
  • Score-based allocation — deterministic, priority-based distribution of limited supply across competing demands, with optional BOM-aware consequence scoring.
  • Lead-time intelligence — per-lane lead-time statistics mined from the movement ledger, with deterministic bootstrap distributions and scenario overrides.
  • Two-step import — per-customer Stage (ETL) into the standard import.* contract, then a scenario-driven promote into core master data. A new customer never requires an import-side change.
  • Auto-approval — rules + planner-imitation model reviewing supply recommendations; approved transfers feed netting as committed flows.
  • Mobile planner — a phone app (/m/, installable on the home screen) that lists, a hundred at a time, the supply orders the approval step routed to a planner (searchable, sortable, filterable by site and item), lets them correct the quantity or order date in place, accept or cancel each with a swipe, and approve the cart for real — the same decisions, decision log and audit trail as the Supply Approval grid.
  • Archiving / historization — scenario-driven PIPE_ → HIST_ archiving with per-object retention.
  • Replay engine — iterative re-run of supply + allocation at historical planning dates for fill-rate and stock-evolution analysis.
  • Scenario review — frozen pipeline snapshots with KPI comparison, stability and explainability analysis.
  • Causal & maintenance forecasting — asset-usage-driven demand for MRO / aerospace, failure-rate waterfalls, maintenance scheduling.
  • Exceptions & alerts — ontology-based alert rules with triage workflow (open → reviewed → snoozed → actioned).
  • Mirabelle AI assistant — read-only questions about your planning data, with a self-hosted Ollama model or an explicitly configured OpenRouter model.
  • Multi-tenant SaaS — each customer gets their own PostgreSQL database; a master database holds tenant accounts and the shared JWT secret.

Documentation Map

The documentation is a functional guide: fifteen chapters, one per planning domain, each stating what the functionality is, how to run it, and a step-by-step walkthrough you can execute against a demo tenant.

Chapter What it covers
Master Data Locations (install-base vs regular, zones), supersession, audit & observability
ETL — Stage The per-customer extraction into the import.* staging contract, the integration library
Import — Core The standard promotion engine: staging → core, load modes, fitness guard, run review
Demand & Lead Time Two demand grains, data shaping, coverage & reassignment, lead-time analysis
Classification Characterization, ABC, segmentation, the resolved parameter map
Forecast The chain, methods, outliers, causal, maintenance, external forecast, rollup, netting
Inventory (MEIO, EOQ, K-curve) V3 optimizer, V4 network, zones, distributions, EOQ, K-curve, Wagner-Whitin
Supply MRP + LP engines, capacity, firm orders, the wash loop, allocation
Exceptions Exception types, scenarios, snoozes, the triage walkthrough
Alerts The metric ontology, alert rules, the feedback loop
Scenario Planning Pipelines & scenario reuse, workflows & ProcessRunner, replay, approvals, historization
Mirabelle AI How answers work, model setup, planner examples, and an early read-only MCP connection for other AI apps
Platform & Admin Master data grids, users & auth, tenant management, settings
Determinism & Data Quality The planning-date discipline, the golden-fixture harness, the guards
Mobile Planner The phone app: review the orders routed to you, correct them, accept or cancel with a swipe, and approve your cart
Reference Deep pages: onboarding contract · staging schema · screens & navigation · dashboard · time series viewer · forecast methods · features · backtesting · NPI · hierarchies · MEIO parameters · MEIO theory · safety stock · line fill rate · supply settings · LP solver · LP parameters · firm orders · routes · advanced supply · allocation · allocation algorithm · consequence scoring · alert rule catalog · replay guide · result approval gate · auto-approval engine · supersession manager · settings & parameters · Mirabelle AI guide · Mirabelle AI testing (LLM gateway + evaluation harness)
Operations Maintained as internal runbooks (installation, ports & services, process management, logging) — shared directly with deployment teams rather than published publicly

The Pipeline at a Glance

The core planning chain runs as pipeline steps (each independently runnable, orchestrated by workflows):

flowchart TD
    STAGE["Stage (per-customer ETL)\nimport.* staging schema"] --> PROMOTE["Import / Promote\nstandard scenario-driven"]
    PROMOTE --> MASTER["master.* tables\nitems · sites · routes · BOM\non_hand · demand_orders"]
    MASTER --> ETL["etl step\ndemand orders → weekly actuals"]
    ETL --> FC["forecast\noutliers → backtest → best method"]
    FC --> CAUSAL["causal / maintenance"]
    CAUSAL --> IND["indirect-demand\nnetwork rollup (gross)"]
    IND --> NET["netting\nfirm demand · returns · approved replenishments"]
    NET --> EOQ["eoq\norder-frequency curves"]
    EOQ --> MEIO["meio\nsafety stock · ROP · zones"]
    MEIO --> SUPPLY["supply\nMRP (Rust) or LP (HiGHS)"]
    SUPPLY --> ALLOC["allocation\nscore-based priority"]
    ALLOC --> EXC["exceptions"]
    EXC --> APPROVAL["approval\nauto-approval review"]
    APPROVAL --> ARCH["archiving\nPIPE_ → HIST_"]

But a pipeline is a definition, not a fixed chain of hard-coded settings: every step plugs in a scenario — classification, lead time, archiving, forecast (series/causal/maintenance blended by weight, additive or net), EOQ, inventory (MEIO), supply, exceptions, allocation, approval, import — and the scenario is what actually carries the parameters. The same scenario can be linked from several pipelines (one configuration, several contexts), and swapping a single link — a different supply scenario to compare MRP against LP, a different MEIO scenario to test a service-level target — produces a new plan without touching anything else in the chain. This is what makes the platform scenario-driven: pipelines compose scenarios, they don't own parameters.

The pipeline editor — one scenario slot per step, weighted forecast blending, segment-scoped overrides

See Pipelines & Scenarios for the full reuse model and a live worked example.

Two independent processes sit beside the pipeline: Stage (per-customer ETL into import.*) and Import (scenario-driven promote from staging into master.*). They are workflow members by default but never hidden inside the run-all chain.

Everything a step writes lands in ClickHouse PIPE_* tables bucketed by (pipeline_id, scenario_id, archive_date) — the Determinism & Quality chapter covers the bucketing and its guarantees.


  • Live application: https://app.mirabelle.es
  • Start reading with Master Data, or jump straight to any chapter above
  • Installation and operations runbooks are maintained internally and shared directly with deployment teams