← Systems
Case Study · System 007

Procurement
Heat Map Engine.

An automated procurement decision support system that transforms fragmented SAP data into explainable inventory recommendations through deterministic business rules, PowerShell orchestration, Excel calculation logic, and Power BI visualization.

V1–V4 shipped into production. V5, Procurement Mission Control, is a separate public research prototype that wraps the same deterministic backbone in bounded agent review, mandatory challenge, and human approval — on synthetic data only.

V5 Artifacts · Procurement Mission Control

Experimental research prototype. Synthetic data, deterministic calculations in the browser, no live SAP connection, no autonomous purchasing.

Two distinct documents: the Procurement Heat Map Engine Technical Report covers the shipped production system (V1–V4). The Mission Control Technical Report covers the experimental agentic prototype (V5).

Contents
  1. 01Problem
  2. 02System Architecture
  3. 03Technical Implementation
  4. 04Business Rules
  5. 05Dashboard Layer
  6. 06Results
  7. 07Lessons Learned
  8. 08Future Vision
  9. 09Rules → Agentic Review
  10. 10Agent Roles & Architecture
  11. 11Prototype Walkthrough
  12. 12Evaluation & Limits
01 · Problem

The planner's morning was never about spreadsheets. It was about decisions.

Every Friday began the same way.

Buyers exported multiple SAP reports, ME2N, MB52, and ZMINVENTORY, before manually copying and pasting the information into a large Excel workbook.

The workbook had evolved over years of operational changes. It contained twenty-four worksheets, many of which no longer contributed to the final output. Logic had accumulated organically, creating duplicated calculations, hidden dependencies, and significant manual effort.

After refreshing formulas, manually updating quarterly demand inputs, supplier forecasts, and consumption data, buyers reviewed thousands of SKUs to determine whether inventory should be expedited, postponed, replenished, or ignored.

Although the organization possessed extensive operational data, there was no engineered process capable of transforming that information into consistent, explainable purchasing decisions.

The bottleneck was never information. It was attention.
FIG.001The Planner's MorningDSL
  1. 01SAP ReportsSource
  2. 02ExportManual
  3. 03CopyManual
  4. 04PasteManual
  5. 05Refresh WorkbookManual
  6. 06Manual ReviewManual
  7. 07Interpret RulesManual
  8. 08DecisionSource
Time
≈ 4 hrs
Manual?
Yes
Decision?
Implicit
Error Risk
High
02 · System Architecture

A four layer architecture designed for clarity, maintainability, and trust.

The Procurement Heat Map Engine separates responsibilities into four independent layers. Each layer performs one function exceptionally well, allowing the system to remain modular, transparent, and easily maintained by future engineers.

Data ingestion begins with scheduled SAP exports and quarterly planning inputs. PowerShell orchestrates extraction, validation, cleansing, logging, and transformation. The calculation layer applies deterministic business rules built directly into a structured Excel engine. Outputs are then published to Power BI dashboards and automated buyer reports.

This separation allows every recommendation to be traced back to its original business rule while preserving full auditability.

FIG.002Four-Layer ArchitectureDSL
  1. 01
    SAP REPORTS
    ME2N · MB52 · ZMINVENTORY · master data
  2. 02
    EXTRACTION LAYER
    PowerShell scheduled pulls · validation · logging
  3. 03
    BUSINESS RULE ENGINE
    Excel calculation · deterministic logic · audit trail
  4. 04
    STRUCTURED DATA
    Versioned outputs · reproducible runs
  5. 05
    POWER BI DASHBOARD
    Executive KPIs · buyer exception queue
  6. 06
    BUYERS
    Ranked recommendations · drill-through · override
03 · Technical Implementation

PowerShell provides orchestration. Excel preserves domain expertise. Power BI delivers decisions.

The architecture deliberately avoids unnecessary technical complexity.

PowerShell performs scheduled execution, SAP extraction, file management, validation, logging, and process orchestration. Excel remains the calculation engine because it already contains years of trusted procurement knowledge and deterministic business rules. Rather than replacing Excel, the system restructures and validates it as production infrastructure.

Power BI serves as the visualization layer, providing executives and buyers with role-specific dashboards, exception queues, and daily recommendations. Every technology choice prioritizes maintainability, transparency, and organizational adoption over novelty.

FIG.003Pipeline & Nightly ExecutionDSL
Orchestration
PowerShell
  • · Scheduled execution
  • · SAP extraction
  • · Validation & logging
  • · File management
Calculation
Excel
  • · Deterministic rules
  • · Domain expertise
  • · Auditable formulas
  • · Version controlled
Visualization
Power BI
  • · Executive KPIs
  • · Ranked exceptions
  • · Drill-through
  • · Daily digests
Execution timeline
Extract
Validate
Calculate
Publish
Notify
orchestrator.ps1 · scheduled nightlyPS
# Procurement Heat Map Engine — nightly orchestrator
$run = [DateTime]::UtcNow.ToString("yyyyMMdd_HHmm")
$log = "\\fileshare\heatmap\logs\$run.log"

Write-Log "Pull SAP extracts"      | Invoke-SapExtract -Reports ME2N,MB52,ZMINVENTORY
Write-Log "Validate & cleanse"     | Test-ExtractIntegrity -StopOnError
Write-Log "Run calculation engine" | Invoke-ExcelEngine -Workbook "engine.xlsm"
Write-Log "Apply business rules"   | Invoke-RuleEngine   -Rules "rules.json"
Write-Log "Publish Power BI"       | Publish-PowerBIDataset -Workspace "Procurement"
Write-Log "Notify planners"        | Send-DailyDigest -Top 25
04 · Business Rules

Every recommendation is explainable because every recommendation follows documented logic.

Recommendations are generated through deterministic business rules rather than opaque statistical models.

Inventory health is evaluated using reorder point status, safety stock utilization, lead time, supplier reliability, inventory under inspection, demand stability, and lifecycle classification. The engine converts operational conditions into recommended actions.

PULL IN

Accelerate inbound supply. Coverage is below reorder point and lead-time risk is rising.

CREATE PO

No active order covers projected demand within the lead-time horizon.

PUSH OUT

Inbound supply will arrive before it is required. Defer to free working capital.

MONITOR

Within healthy thresholds. No action required, but watch demand variance.

RESEARCH

Signals conflict. Requires planner judgment before the engine commits.

OBSOLETE

Lifecycle terminated. Flag for write-down or transfer.

Because every recommendation originates from explicit business logic, planners understand exactly why each action is proposed.

FIG.004Decision Tree — From Conditions to ActionDSL
Q1
Below ROP?
Coverage falls under reorder threshold
Q2
Inspection Inventory?
Stock pending QC release
Q3
Lead Time?
Replenishment horizon vs. demand
Q4
Supplier Risk?
Reliability score & recent misses
Q5
Demand Stable?
Variance across rolling window
Recommended Action
05 · Dashboard Layer

One screen. One ranked list. One decision at a time.

The dashboard presents inventory exceptions rather than overwhelming users with every material.

Executive users receive strategic KPIs, inventory trends, supplier exposure, and purchasing performance. Buyers receive ranked recommendations, interactive heat maps, and drill-through capability into every business rule supporting each recommendation.

This design dramatically reduces cognitive load while improving decision speed and consistency.

FIG.005Procurement Mission Control — Executive Exception PortfolioDSL
Procurement Mission Control
Executive exception portfolio
V5 · Synthetic Data
Decisions Due
10
Stockout Exposure
$1.42M
Cash at Risk
$3.06M
Critical Exceptions
4
Action: AllSite: All sitesCriticality: Critical + High
SV-2048
Sterile Process Valve
Cambridge
PULL IN
92
$618K
Open ↗
MP-6604
Sanitary Pump Assembly
Austin
RESEARCH
78
$412K
Open ↗
TS-0441
Legacy Temperature Sensor
Austin
OBSOLETE
64
$188K
Open ↗
PF-1180
Barrier Packaging Film
Raleigh
PUSH OUT
51
$96K
Open ↗

Rendered depiction of the V5 synthetic-data research prototype. Currency values are illustrative; no client data is shown. Links and CTAs elsewhere on this page launch the real public app.

APortfolio KPIs

Decisions due, stockout exposure, cash at risk, critical exceptions

BException Queue

SKUs ranked by deterministic priority, not alphabetical order

CFilters

Action, site, and criticality narrow the queue to one reviewer's scope

DRisk & Exposure

Deterministic scoring — same inputs always produce the same numbers

EClick to Review

Opening a row hands the case to the agent investigation panel

06 · Results

Engineering the process changed how procurement thinks.

The deployment transformed procurement from a manually coordinated weekly exercise into a standardized decision support system. Measured improvements include over 80 percent reduction in manual processing, a twenty-four worksheet architecture simplified into a structured pipeline, daily automated execution, standardized business rules across buyers, improved auditability, higher data quality, reduced cognitive load, faster identification of inventory risks, and improved consistency across purchasing decisions.

The greatest improvement, however, was organizational confidence. Every recommendation became transparent, repeatable, and explainable.
FIG.006Legacy Process vs. Heat Map EngineDSL
Legacy Process
  • CadenceWeekly, manual
  • Tabs24 worksheets
  • LogicTribal, undocumented
  • AuditabilityEmail threads
  • Decision time≈ 4 hrs / planner
Heat Map Engine
  • CadenceDaily, automated
  • TabsStructured pipeline
  • LogicDocumented rules
  • AuditabilityFull drill-through
  • Decision time≈ 15 min / planner
80%+
Manual Reduction
24
Legacy Tabs Structured
Daily
Automated Execution
100%
Standardized Logic
07 · Lessons Learned

What building a production decision system taught me.

01

Build trust before sophistication.

Simple deterministic systems earn adoption faster than complex intelligent systems.

02

Technology should support human judgment, not replace it.

The objective is better decisions, not more automation.

03

Explainability is a feature.

Users trust systems they understand.

04

Good architecture preserves knowledge.

Engineering should outlive individual employees.

FIG.007Four Engineering PrinciplesDSL
Compass

Build trust before sophistication.

Blueprint

Support human judgment, don't replace it.

Notebook

Explainability is a feature.

Bridge

Architecture preserves knowledge.

08 · Future Vision

The future is not autonomous procurement. It is augmented decision making.

The next generation of the Procurement Heat Map Engine expands deterministic decision rules with explainable artificial intelligence.

Future capabilities include predictive inventory risk, supplier disruption forecasting, learning from planner overrides, natural language explanations of recommendations, scenario simulation, and digital twins of inventory networks.

Artificial intelligence should enhance transparency rather than replace it. Human expertise remains the final decision-maker.

The objective is leverage, not autonomy.
FIG.008Roadmap — From Automation to Decision IntelligenceDSL
  1. Today
  2. Automation
  3. Decision Support
  4. Predictive Analytics
  5. Learning System
  6. Explainable AI
  7. Decision Intelligence
09 · Lab Notebook

From rules engine to agentic decision review.

What follows is a working notebook rather than a product narrative. It records five versions of the same problem — converting fragmented procurement data into defensible purchasing decisions — and marks precisely where shipped production functionality ends and experimental work begins.

V1
Legacy workbook
Shipped (superseded)

ME2N, MB52, and ZMINVENTORY exported by hand; quarterly demand, supplier forecast, and consumption inputs pasted into a 24-worksheet Excel workbook accumulated over years. Logic duplicated, dependencies hidden, interpretation entirely manual.

V2
Automated orchestration
Shipped production

PowerShell performs scheduled SAP extraction, schema and integrity validation, cleansing, structured run logging, workbook execution, dataset publishing, and a daily planner notification. Human copy-paste removed from the critical path.

V3
Deterministic heat map
Shipped production

Trusted Excel domain logic restructured into explicit, documented rules: Pull In, Create PO, Push Out, Monitor, Research, Obsolete. Each recommendation traces to the rule and the inputs that fired it.

V4
Decision surface
Shipped production

Power BI executive monitoring over inventory, supplier exposure, and purchasing performance, plus a ranked buyer exception queue with drill-through from any recommendation to its governing rule.

V5
Procurement Mission Control
Experimental · public research prototype

A standalone synthetic-data application that surrounds the deterministic backbone with six bounded agents, a mandatory challenge step, counterfactual simulation, a full event trace, human approve / override / request-evidence controls, and a downloadable JSON decision memo. It makes no empirical performance claim.

V1 through V4 are what procurement uses. V5 is what I am testing next, and it is labeled that way everywhere it appears.
V5 Artifacts · Procurement Mission Control

Experimental research prototype. Synthetic data, deterministic calculations in the browser, no live SAP connection, no autonomous purchasing.

Two distinct documents: the Procurement Heat Map Engine Technical Report covers the shipped production system (V1–V4). The Mission Control Technical Report covers the experimental agentic prototype (V5).

10 · Agents & Architecture

Six bounded agents around a deterministic backbone.

No agent computes the recommendation. The deterministic rules engine does. Agents read the same typed inputs, produce scoped findings, argue with each other under a mandatory challenge step, and hand a reconciled package to a human. Each agent has a narrow remit so that a wrong finding is attributable rather than diffuse.

Demand Sentinel

Consumption trend, demand volatility, forecast bias, stockout horizon.

Supplier Scout

Lead-time behavior, on-time delivery, open PO exposure, supplier concentration.

Inventory Strategist

Reorder point, safety stock adequacy, inspection, excess, and obsolete stock.

Finance Guardian

Working capital impact, expedite premium, carrying cost of the proposed action.

Risk Challenger

Missing evidence, strongest counterargument, failure modes, confidence limits.

Decision Orchestrator

Reconciles rule output, agent evidence, and disagreement into a human review package.

FIG 009 · Hybrid decision architecture
  1. 01SAP extracts + quarterly planning inputs
  2. 02Deterministic rules engine — trusted backbone, typed calculations
  3. 03Specialized agent review — six bounded remits over shared evidence
  4. 04Mandatory challenge + counterfactual simulation
  5. 05Human approve / override / request more evidence
  6. 06Audit trace — inputs, rules fired, findings, disagreement, disposition

The public prototype runs typed deterministic calculations locally in the browser. It has no live SAP connection, issues no external AI calls, and cannot place a purchase order.

11 · Prototype Walkthrough

What the standalone application actually does.

  • Executive portfolioTwelve synthetic SKUs ranked by urgency, filterable by action, site, criticality, and supplier; selecting a row loads it for review.
  • Editable operational inputsOn-hand, open PO, weekly demand, volatility, lead time, supplier OTD, unit cost, safety stock, inspection stock, lifecycle, and criticality all drive the math.
  • Six-stage review, ~18 secondsIntake and validation, parallel signal scan, challenge and debate, scenario simulation, synthesis, human review.
  • Visible reasoningShared evidence, deterministic rules firing, a consensus/disagreement meter, and explicit unknowns and data warnings.
  • Calibrated confidence bandA band rather than a point score, with the reasons and assumptions that produced it.
  • Counterfactual labAdjust demand, lead time, OTD, and cost to see before/after recommendation, coverage, risk, and cash effects.
  • Full trace + memoEvery stage event is inspectable, and the decision exports as a JSON memo carrying its synthetic-data disclaimer.
Live · external application

Mission Control runs outside this site as an independent public prototype. Nothing here simulates it; the buttons open the real application, its source, and its report.

12 · Evaluation & Limits

What would have to be true for this to be worth deploying.

The prototype is currently unevaluated. The following is the plan that would make its claims falsifiable, stated before any results exist.

Questions and metrics

Time-to-decisionMedian minutes from exception surfaced to disposition, agentic review vs. rules-only queue.
Decision consistencyAgreement rate across buyers presented with identical inputs.
Evidence coverageShare of decisions where every fired rule has supporting evidence surfaced.
Confidence calibrationRealized outcome frequency within each stated confidence band.
Override qualityRate at which overrides outperform the system recommendation on realized outcome.
Stockout avoidanceCritical stockout events per thousand SKU-weeks.
Excess inventoryValue of stock exceeding lifecycle-adjusted coverage targets.
Expedite costPremium freight spend attributable to late Pull In decisions.
Working capitalInventory cash position against coverage and service constraints.
Trust and comprehensionStructured buyer assessment of whether they can explain a recommendation unaided.

Ablations

Rules-only baseline

Deterministic engine with no agent layer. The control condition; agentic review must beat it or it is overhead.

No Risk Challenger

Isolates whether mandatory challenge changes dispositions or only adds latency.

No Finance Guardian

Tests whether cash framing shifts Pull In / Push Out balance.

Hidden vs. visible trace

Tests whether transparency improves override quality or merely increases confidence.

Limitations and governance

  • The public prototype runs entirely on synthetic data. No supplier, price, or consumption figure in it is real.
  • No empirical performance claim is made for V5. The shipped results reported earlier on this page belong to V1–V4 only.
  • The current public prototype makes no external AI calls; all reasoning is typed deterministic logic executed in the browser.
  • No autonomous purchase order placement. The system proposes; a human disposes.
  • Human authority is structural, not advisory — approve, override, and request-evidence are the only terminal states.
  • Production deployment would require role-based access control and segregation of duties between recommendation and approval.
  • Any ERP write-back would be gated, reversible, and logged, never issued directly by an agent.
  • Language-model agents introduce prompt- and data-injection exposure; untrusted supplier text must be treated as data, never instruction.
  • Supplier pricing and performance data is commercially sensitive and would require tenancy isolation and retention limits.
  • Rules, models, and source extracts must be versioned so any historical decision can be reconstructed exactly.
  • Audit logging must be durable and external to the application.
  • Overrides are signals for rule review, not ground truth. They must never silently retrain a model.
Engineering Philosophy

Information becomes value only when it becomes a decision.

01
Data
SAP
02
Information
PowerShell
03
Knowledge
Business Rules
04
Decision
Power BI
05
Action
Buyer
06
Business Value
Supply Chain

A procurement system should not automate spreadsheets. It should engineer better decisions.

Technical Report

The complete systems engineering case study, including data flow specifications, rule definitions, validation harness, and deployment notes, is available as a downloadable PDF.