architecture
February 8, 2026Forge Architecture — Mermaid Diagrams
Forge Architecture — Mermaid Diagrams
Agentic SDLC Orchestrator: Plan → Implement → Review → Test → Deploy
1. High-Level System Overview
Rendering diagram...
2. Pipeline State Machine
Rendering diagram...
3. Agent Core Loop (BaseAgent)
Rendering diagram...
4. Agent Specializations
Rendering diagram...
5. Data Flow — Full Pipeline Run
Rendering diagram...
6. Event Bus Architecture
Rendering diagram...
Event Taxonomy
Rendering diagram...
7. Safety & Circuit Breaker System
Rendering diagram...
8. Memory & Learning System
Rendering diagram...
Automation Ladder
Rendering diagram...
9. Database Schema (ERD)
Rendering diagram...
10. Tool Registry & Execution
Rendering diagram...
11. LLM Abstraction Layer
Rendering diagram...
12. Module Dependency Graph
Rendering diagram...
13. Bounce-Back Loop Detail
Rendering diagram...
14. Configuration Structure
Rendering diagram...
Summary
| Layer | Module | Lines | Responsibility |
|---|---|---|---|
| Types | types/index.ts | ~775 | All interfaces, enums, type definitions |
| Core | core/bus.ts, config.ts, errors.ts | ~300 | Event bus, config loading, error taxonomy |
| Agents | agents/base.ts + 5 specialists | ~1500 | Agent loop + domain-specific logic |
| Orchestrator | pipeline.ts, context.ts, checkpoint.ts | ~1100 | Pipeline state machine, shared context |
| Safety | breakers.ts, gates.ts, budget.ts | ~900 | Circuit breakers, human gates, cost tracking |
| Tools | registry.ts + 7 tool modules | ~1500 | Tool registration, validation, sandboxed execution |
| Memory | store.ts + 4 memory modules | ~600 | Episodic/semantic/procedural memory + consolidation |
| Storage | db/schema.ts | ~204 | 8 SQLite tables via Drizzle ORM |
| Total | ~6900 |