Open Source · Agentic AI · Capital Markets

Capital Markets
Reconciliation Platform

Multi-Agent AI Platform · 5 MCP Servers · 7 Agents · 434 Passing Tests · Production-Grade
GitHub: CapitalMarkets-Recon-Platform → 434 Tests · 193 Files Claude API · MCP · Multi-Agent
Overview

What Is This Platform?

A production-grade, cloud-native multi-agent AI platform for capital markets trade and position reconciliation — built to replace $500K–$2M/year legacy vendor licenses with an open, extensible, AI-native alternative.

The platform combines deterministic reconciliation rules, template-based decision tables, and LLM reasoning into a three-layer resolution engine. Five Model Context Protocol (MCP) servers expose data, file, cache, and computation capabilities to a set of seven specialised AI agents. The result is a fully automated reconciliation workflow that handles the full break lifecycle from detection through root-cause analysis to resolution narrative generation.

434
Passing Tests
5
MCP Servers
7
AI Agents
$2M
Vendor License
Replacement Value
Primary Value Driver: The platform's lead strategic positioning is vendor license replacement — not headcount reduction. Legacy reconciliation platforms (Intellimatch, TLM, Duco equivalents) typically cost $500K–$2M/year in license fees. This platform replaces that cost with an open-source, AI-native architecture that also adds LLM-powered break resolution and regulatory narrative generation that legacy platforms cannot provide.

Architecture

System Architecture

The platform follows a clean layered architecture: data sources at the bottom, MCP infrastructure in the middle, agent orchestration above, and the resolution engine at the top. The architecture is 12-Factor compliant and designed for cloud-native deployment.

Layer 1 — Orchestration & Workflow
Bootstrap Agent (ML pre-training), Reconciliation Orchestrator, Break Resolution Manager. Coordinates the full break lifecycle from ingestion to closure.
Bootstrap Agent Orchestrator Break Manager
Layer 2 — Resolution Engine (Three Layers)
Layer 1: Deterministic rules (exact match, tolerance matching, known-break patterns). Layer 2: Template and decision table matching (pre-trained ML classification). Layer 3: LLM reasoning for novel breaks requiring contextual analysis.
Deterministic Rules Decision Tables ML Classifier LLM Reasoning
Layer 3 — MCP Server Infrastructure
Five MCP servers expose tools and resources to the agent layer via the Model Context Protocol. Each server runs as an independent microservice with its own port and data domain.
SQLDB :8083 FILE :8084 CACHE/Redis :8085 Analytics MCP Reporting MCP
Layer 4 — Data & Persistence
Five supported database types (PostgreSQL, MySQL, SQLite, SQL Server, Oracle). Redis caching layer for break state management and session persistence. File-based data ingestion supporting industry-standard formats.
PostgreSQL MySQL SQLite SQL Server Oracle Redis Cache
Layer 5 — License & Deployment
14-day trial enforcement system with HMAC-signed license files. License generator tool. Cloud-native deployment configurations. 12-Factor compliant application design. GPU/CUDA support planned for future ML workloads.
HMAC License Enforcement 14-Day Trial Docker Cloud-Native

Agent Roster

Seven Specialised AI Agents

AgentPrimary ResponsibilityMCP Tools UsedOutput
Bootstrap AgentML model pre-training on historical break patterns before live deploymentSQLDB, FILE, AnalyticsTrained classification models
Ingestion AgentData validation, format normalisation, source reconciliation setupFILE, SQLDBNormalised position/trade data
Break Detection AgentIdentify and classify breaks across trade, position, and cash recordsSQLDB, AnalyticsBreak records with severity score
Resolution AgentThree-layer break resolution (deterministic → ML → LLM)All MCP serversResolution recommendation + confidence
Escalation AgentBreak escalation routing, SLA monitoring, priority queue managementCACHE, ReportingEscalation notifications + routing
Narrative AgentLLM-powered break explanation and regulatory commentary generationAnalytics, ReportingHuman-readable break narratives
Audit AgentFull audit trail, reconciliation sign-off, regulatory reportingSQLDB, FILE, ReportingSigned audit records + reports

Value Proposition

Why This Architecture Matters

Primary Value Driver
Vendor License Replacement
Legacy reconciliation platforms (Intellimatch, TLM, SmartStream equivalents) carry $500K–$2M/year in license fees. This platform replaces that spend with an open-source architecture while adding AI capabilities those legacy platforms cannot provide.
AI Capability Gap
LLM Break Reasoning
Legacy platforms apply deterministic rules only. This platform adds a third resolution layer — LLM reasoning for novel, contextual, or cross-system breaks that rule-based engines systematically fail on. Break resolution rate improves as the ML layer trains on institutional patterns.
Regulatory Value
Audit Trail & Narrative
Every break resolution is logged with full chain-of-thought reasoning. The Narrative Agent produces human-readable explanations that satisfy regulatory audit requirements. Compliance teams get documentation that supports regulatory examination without manual writeup.
Architecture Quality
Production-Grade Build
434 passing tests across 193 files. 12-Factor compliant. Five supported database types. HMAC-signed license enforcement. Cloud-native deployment configs. GPU/CUDA roadmap for ML acceleration. This is not a proof-of-concept — it is a deployable platform.
Portfolio Significance: This project demonstrates the full CCA exam domain coverage in practice: Agentic Architecture and Orchestration (7 agents, multi-step workflows), Claude Code Configuration (30 commits, 193 files), Prompt Engineering for reconciliation context, Tool Design and MCP Integration (5 MCP servers), and Context Management for long break resolution chains.

Technical Details

Implementation Notes

Three-Layer Resolution Engine

The resolution engine is the core intellectual contribution of the platform. Break resolution proceeds through three layers in sequence, with escalation between layers based on confidence scores:

# Simplified resolution flow result = deterministic_rules.resolve(break_record) # confidence > 0.95 → auto-resolve if result.confidence < 0.95: result = ml_classifier.classify(break_record) # confidence > 0.80 → auto-resolve with audit if result.confidence < 0.80: result = llm_agent.reason( break_record, tools=[sqldb_mcp, file_mcp, analytics_mcp] ) # human review required if LLM confidence < 0.70

MCP Server Design

Each MCP server is designed around a specific data domain and exposes tools following the Model Context Protocol specification:

MCP ServerPortTools ExposedPrimary Use
SQLDB Server:8083query, execute, schema, explainTrade & position data queries
FILE Server:8084read, write, list, diff, archiveReconciliation file I/O
CACHE/Redis:8085get, set, delete, scan, expireBreak state & session mgmt
Analytics MCP:8086aggregate, classify, cluster, scoreBreak pattern analysis
Reporting MCP:8087generate, export, sign, distributeAudit trail & regulatory reports
12-Factor Compliance: The platform follows Heroku's 12-Factor App methodology throughout: configuration via environment variables, stateless processes, port-bound services, log streaming to stdout, and disposable container design. This ensures seamless deployment to any cloud provider (AWS, Azure, GCP) or on-premise Kubernetes environment without code changes.

Roadmap

Planned Extensions

CAPITAL MARKETS RECONCILIATION PLATFORM
Multi-Agent · MCP-Native · AI-Powered · Production-Grade
30 commits · 193 files · 434 passing tests · 5 MCP servers · 7 agents · Cloud-native
View on GitHub → Risk Intelligence → ← Home