# Key Components

> Key Components

Source: https://bifrost5.com/foundry/docs/key-components/

# Key Components

Information

Add mobile and terminal control, encrypted backup and secure previews around these components with Production-Grade.

[See editions](/foundry/docs/editions)

| Component | Role |
| --- | --- |
| **Operator Interface** (CLI + UI) | init-state, set-goal, enqueue, start, halt, resume, status, metrics. Also available via UI Dashboard. |
| **Scheduler** | Orchestrates the task DAG. Promotes tasks from waiting → ready when dependencies resolve. |
| **Worker Pool** | Pre-spawns 3 workers, monitors heartbeat. Each worker isolated via git worktree. |
| **Tool Dispatcher** | Build prompts, inject state, select provider (Cursor, Gemini, Claude, etc.) |
| **Persistence** | DragonflyDB read/write, state serialization |
| **Dual-Queue Adapter** | Ready queue (polled by workers) + Waiting queue (dependency tracking) |
| **Validator** | Deterministic checks + helper agent when confidence is low |
| **Safety Layer** | Command sanitization, destructive action blocking, path confinement |
| **AST Service** | Structural code analysis (classes, functions, exports, imports) |
| **Validation Cache** | Redis-based result caching with shared locking (exponential backoff) |
| **File Lock Manager** | Prevents file race conditions during parallel execution |
| **Worktree Manager** | Git worktree isolation per worker for conflict-free parallel tasks |
| **Interrogator** | Sequential Q&A when validation is uncertain |
| **Command Generator** | Helper agent: generates verification commands on validation gaps |
| **Analytics Service** | Performance tracking (helper durations, cache-hit rate, token usage) |
| **Audit Logger** | Append-only JSONL: state diffs, events, task lifecycle |
| **Logger** | Central logging, PM2-friendly stdout, metrics |
| **UI Dashboard** | React + Express app: projects, tasks, logs, settings, chat visualizer |
