Skip to primary content
Internal Engineering Case Study Audit

Mainframe COBOL Reconciliation Agent Swarm

Reviewed by Umar Abbas • CTO & Principal AI Architect

This internal engineering audit details the state machine graph architecture, IBM CICS middleware integration, and post-mortem state recovery fix for a banking mainframe reconciliation agent swarm. Engineered with LangGraph and Model Context Protocol servers, the system achieved 99.94% deterministic state recovery across 1.4 million synthetic bank transactions.

Build ClassificationInternal Build (SoftBrix)
State Recovery99.94% Deterministic
Transaction Volume1.4M Evaluated
Middleware LatencySub-45ms CICS
1. Executive Summary & Build Context

System Context & Operational Goals

Note: This case study documents an internal reference build engineered by SoftBrix / Esaholic. Commercial banking core ledgers run on legacy IBM CICS COBOL mainframes, requiring manual batch reconciliation that delays end-of-day settlement cycles.

2. Problem & Baseline

The Legacy Mainframe Interface Gap

Connecting modern AI agents to EBCDIC-encoded COBOL mainframe data streams causes high error rates without strict schema validation and state machine checkpointers.

Baseline Metrics Before AI Build
  • Reconciliation Batch Window: 8 hours nightly.
  • Unmatched Exception Rate: 4.8% requiring manual research.
3. Architectural Solution

LangGraph Multi-Agent Swarm with MCP CICS Bridge

Mainframe Swarm Pipeline
1. CICS EBCDICBuffer Translation
2. MCP ServerJSON-RPC 2.0 Schema
3. LangGraphPostgresSaver State
4. HITL ApprovalHuman Sign-off Gate
4. Technical Post-Mortem

What Went Wrong and How We Fixed It

What Went Wrong: Recursion Limit Crashes

During initial synthetic testing across complex multi-account transfers, sub-agents entered infinite critique loops, triggering LangGraph’s default 25-step recursion limit and crashing the state thread.

How We Fixed It: Counter Nodes & Escalation Gates

We injected state iteration counters into graph metadata, forcing automatic escalation to a Human-in-the-Loop (HITL) interrupt node after 3 failed reconciliation cycles. Thread recovery reached 99.94%.

5. Verified Results

Quantified Benchmarks

MetricBaseline (Legacy)Internal AI SystemImprovement Factor
Reconciliation Batch Latency8.0 hours12.4 minutes38.7x Speed Increase
Deterministic State RecoveryManual rollback99.94% (PostgresSaver)Automated Fault Tolerance
CICS Middleware Latency120ms (REST wrapper)42ms (MCP CICS)2.8x Latency Reduction
Technology Components

Stack & Service Architecture

Engineering Verification

Audit Verification Sign-Off

Audited By: Umar Abbas (CTO & Principal AI Architect, SoftBrix / Esaholic)

Evaluation Dataset: 1.4M synthetic banking transaction records

Status: Verified Reference Implementation

Buyer FAQ

Frequently Asked Questions

Is this banking case study based on a live bank or an internal build?

This case study documents an internal reference build engineered by SoftBrix / Esaholic to prove mainframe COBOL integration with modern agent state machines.

How did the system execute transactions safely on legacy mainframe systems?

The agent framework uses Model Context Protocol (MCP) servers enforcing parameter schema validation, coupled with LangGraph Human-in-the-Loop interrupt nodes before wire transfers.

What caused the initial recursion limit crash during multi-agent loops?

Cyclic routing between sub-agents caused default LangGraph recursion limits (25 steps) to trigger, resolved by implementing explicit state counters and early-exit fallback nodes.