[ System Architect & Lead Developer ] · 2026 · Active Engine
ForgeOS
Autonomous SDLC orchestration engine simulating a governed engineering organization.
- TypeScript
- PostgreSQL 17
- pgvector
- Docker
- Model Context Protocol (MCP)
- Vitest
Engineering Architecture & Teardown
ForgeOS is an adaptive, event-driven multi-worker orchestration system that simulates a professional engineering organization rather than generating naive code snippets. It bridges the gap between individual AI code suggestions and end-to-end production engineering delivery.
The system decomposes incoming project visions into tickets, manages cross-ticket dependencies via a directed acyclic graph (DAG), allocates specialized workers from dynamic pools, and enforces strict governance gates.
System Architecture
flowchart TD
subgraph Client["Developer Interface"]
CLI["Claude Code / Copilot Agent"]
VSCode["VS Code (MCP Client)"]
end
subgraph Core["ForgeOS MCP Server (Node 22 / Express)"]
StreamableHTTP["Streamable HTTP Transport (:3011)"]
Dispatcher["Dispatch & Scheduling Loop"]
TicketLifecycle["14-Stage Ticket State Machine"]
MemoryVerify["Memory Bank Engine"]
end
subgraph Storage["Persistence & Isolation"]
PG["PostgreSQL 17 (Row-Level Security)"]
Vector["pgvector (Code Graph & Embeddings)"]
GitIsolation["Distributed Scoped Git (CLAIM / WORK)"]
end
CLI --> StreamableHTTP
VSCode --> StreamableHTTP
StreamableHTTP --> Dispatcher
Dispatcher --> TicketLifecycle
Dispatcher --> MemoryVerify
TicketLifecycle --> PG
MemoryVerify --> Vector
Dispatcher --> GitIsolation
Engineering War Story: Conflict-Free Concurrency Under Multi-Worker Fleets
The Problem: In multi-worker concurrent agent runs, workers attempting to claim tickets frequently caused race conditions, double-claiming, and uncommitted git workspace collisions.
The Fix: Engineered atomic ticket claiming via PostgreSQL row-level locks (SELECT FOR UPDATE SKIP LOCKED) coupled with a distributed two-commit protocol (CLAIM commits the reservation state; WORK commits the isolated scoped diff). This guaranteed that no two agents could modify overlapping dependency trees simultaneously.
Architectural Decisions
- Architected a two-layer concurrent model separating strategic discovery from execution with zero global phase barriers.
- Enforced distributed two-commit execution (CLAIM + WORK) with scoped git to ensure conflict-free parallel worker fleets.
- Designed PostgreSQL 17 schema with Row-Level Security, pgvector semantic search, and stored procedures for atomic ticket transitions.
- Exposed 19 lifecycle tools over Streamable HTTP transport conforming to Model Context Protocol (MCP) for zero-infra Claude Code & Copilot operation.
Build & Incident Log
- Established core PostgreSQL database schema and initial ticket state machine migrations.
- Introduced pgvector code graph indexing and memory engine for codebase semantic search.
- Implemented prompt compiler queue and stage-based triggers for worker dispatch.
- Shipped Claude Code marketplace plugin bridge and automated CI container test suites.