Skip to content

Architecture Diagram

The framework deploys a fully serverless architecture on AWS:

GitHub (Webhooks)
|
v
API Gateway + WAF (signature verification)
|
v
Receiver Lambda (idempotency check, S3 archive)
|
v
EventBridge Custom Bus
|
+---> Comment Handler Lambda (command router)
+---> PR Handler Lambda
+---> Push Handler Lambda
+---> Check Run Handler Lambda
+---> Deployment Handler Lambda
+---> Discussion Handler Lambda
+---> Security Event Handler Lambda
+---> Alert Handler Lambda (DLQ processor)
|
v
Step Functions (Express workflow for CI checks)
|
v
GitHub API (Check Runs, Comments, Status)
ComponentAWS ServicePurpose
Webhook EndpointAPI Gateway + WAFReceive and validate GitHub webhooks
Event RouterEventBridgeFan-out events to appropriate handlers
Command ProcessorLambdaParse and execute bot commands
CI OrchestrationStep Functions (Express)Run CI check workflows
Token StorageDynamoDB + KMSStore encrypted OAuth/installation tokens
Payload ArchiveS3 (90-day lifecycle)Retain webhook payloads for debugging
MonitoringCloudWatchDashboard, custom metrics, alarms
Dead LetterSQS DLQCapture failed events for redrive

The full draw.io architecture diagram is available in the repository at docs/ai3-mvp-architecture.drawio.

You can open it with draw.io or the VS Code draw.io extension.