Inspiration
Many enterprises still depend on legacy systems that have been powering critical business operations for decades. These systems are reliable, deeply integrated, and expensive to replace. However, introducing modern AI capabilities into them often requires extensive redevelopment and introduces significant security, compliance, and operational challenges.
This inspired a simple question: What if we could bring legacy systems back to life with AI without rebuilding them?
RelayForge was created to bridge this gap, enabling organizations to introduce governed agentic intelligence into their existing infrastructure while preserving business continuity, security, and trust.
What it does
RelayForge is a governed AI integration platform designed around four fundamental principles: Integrate. Validate. Execute. Prove.
It provides a structured approach to connecting existing enterprise systems with modern AI capabilities through:
- Legacy Integration: Standardized connector interfaces for databases, files, REST APIs, and MCP tools.
- Intelligent Context Engine: Authorized context retrieval, source provenance, privacy filtering, and configurable token budgets.
- Agentic Reasoning: Structured AI proposals through a controlled, configurable model gateway.
- Shadow Execution: Read-only validation of proposed workflows against existing business processes before enabling external actions.
- Governance: Versioned contracts, deterministic policies, scoped permissions, and evidence-based activation requirements.
- Evaluation: Independent verification of business outcomes rather than relying solely on AI-generated responses.
- Mission Control: Workflow visualization, execution monitoring, context inspection, evaluation reports, and audit evidence.
- Durable Execution: Persistent workflow state and recovery mechanisms designed to handle interruptions safely.
Our demonstration uses a synthetic financial reconciliation workflow to showcase how an existing legacy system can be integrated, evaluated, and modernized without modifying its core business logic.
The platform's verified Shadow workflow performs no external writes. Governed write capabilities and live model integrations remain subject to their respective acceptance and security gates.
How we built it
We designed RelayForge using a hexagonal architecture that separates domain logic, application services, infrastructure, model providers, and external integrations.
Kiro played a central role in our specification-driven development process. We used its specifications, steering files, hooks, and engineering workflows to translate the product vision into structured requirements, architectural decisions, implementation tasks, and measurable acceptance criteria.
Our technology stack includes:
- Frontend: React, TypeScript, Tailwind CSS, Vite, and React Flow.
- Backend: Python, FastAPI, SQLAlchemy, and Alembic.
- Agentic AI: Pi-based reasoning gateway and configurable Gemini integration.
- Orchestration: Temporal for durable workflow execution.
- Data and Context: PostgreSQL, versioned artifacts, and structured context retrieval.
- Privacy and Security: Microsoft Presidio, deterministic policy enforcement, Row-Level Security, Dex, and OpenID Connect.
- Integration: SQL, REST, file-based connectors, and Model Context Protocol.
- Infrastructure: Docker Compose, Caddy, and configurable deployment profiles.
- Testing and Observability: Playwright, OpenTelemetry, and GitHub Actions.
We incorporated the Elephant Goldfish engineering review methodology to challenge architectural assumptions, identify implementation gaps, and improve engineering quality through independent review.
The entire system was designed to support configurable deployment environments, allowing smaller demonstration workloads and larger enterprise deployments to share the same architectural foundation.
Challenges we ran into
The biggest challenge was not simply integrating an AI model with an existing system. It was ensuring that AI operates within clearly defined enterprise boundaries.
Some of our key challenges included:
- Preventing unauthorized actions and cross-tenant data exposure.
- Protecting sensitive information before it reaches model providers.
- Separating probabilistic AI reasoning from deterministic business execution.
- Binding human approvals to exact action payloads and configuration revisions.
- Maintaining consistent workflow state during interruptions and recovery.
- Preventing duplicate logical effects during retries.
- Independently verifying business outcomes rather than assuming agreement with legacy results means correctness.
- Supporting reproducible deployments across AMD64 and ARM64 architectures.
- Balancing infrastructure resource constraints with functionality and security.
- Maintaining comprehensive engineering evidence without weakening release gates.
These challenges pushed us to treat governance, evaluation, privacy, and recovery as fundamental architectural components rather than optional features.
Accomplishments that we're proud of
- Creating an extensible enterprise AI integration platform rather than a single-purpose AI application.
- Building a structured agent harness with configurable context, execution budgets, and policy boundaries.
- Demonstrating an operator-initiated Shadow reconciliation workflow using real application components and synthetic business data.
- Persisting business results, source provenance, evaluation records, and audit evidence.
- Successfully validating native ARM64 deployment, authenticated desktop and mobile workflows, and persistence across application restarts.
- Establishing automated integration, security, tenant-isolation, reliability, and recovery tests.
- Creating a comprehensive specification-driven engineering foundation using Kiro.
- Preserving explicit security and release gates, even when working under hackathon deadlines.
Most importantly, we established a foundation where AI recommendations can be evaluated against independently verified business outcomes rather than being blindly trusted.
What we learned
Building trustworthy enterprise AI requires significantly more than selecting a powerful language model.
We learned that effective agentic systems depend on carefully designed context management, deterministic authorization, durable orchestration, independent evaluation, privacy controls, and transparent failure handling.
We also learned how specification-driven development with Kiro can help manage complex engineering requirements, maintain architectural consistency, and reduce implementation ambiguity.
Our most important realization was that AI should assist enterprise decisions, while deterministic controls establish whether an action is authorized and whether its outcome is correct.
Intelligence without governance is automation. Intelligence with governance, verification, and accountability is enterprise-ready AI.
What's next for RelayForge - Governed AI for Legacy Systems
Our long-term vision is to make governed AI adoption accessible to enterprises without requiring them to abandon their existing infrastructure.
Future development will focus on:
- Expanding validated connectors across enterprise platforms and legacy technologies.
- Supporting additional configurable AI model providers.
- Completing governed execution acceptance and evidence-based activation.
- Improving reusable workflow templates and visual integration capabilities.
- Enhancing context retrieval, evaluation, and resource efficiency.
- Supporting lightweight demonstration deployments alongside scalable enterprise configurations.
- Expanding independent security validation and operational readiness.
RelayForge aims to become the bridge between the systems enterprises already trust and the intelligent capabilities they need for the future.
Don't rebuild the past. Forge its future.
Built With
- actions
- ai
- alembic
- connect
- crew
- css
- fastapi
- flow
- gemini
- github
- mcp
- microsoft
- opentelemetry
- pi
- postgresql
- presidio
- python
- react
- sqlalchemy
- tailwind
- temporal
- typescript
- vite