Search docs...⌘/
Search docs...⌘/
DocsADRsArchitectural Decision Records
Architectural Decision Records
Key design choices, runtime splits, and software structures adopted in LeadForge OS.
This directory contains the Architectural Decision Records (ADRs) for LeadForge OS. They document the key design choices, runtime splits, and software structures adopted in the project.
ADR Index
- ADR-001: AI Runtime Responsibilities
Restricts@leadforge/aito low-level runtime concerns (providers, yaml templates, zod validations, prompts cache). - ADR-002: Agent SDK Boundaries
Defines decoupled interactions between agent scripts and the core Electron orchestrator. - ADR-003: Worker Plugins as Tools
Wraps job scheduler worker plugins as LLM tools to enable agent-guided executions. - ADR-004: Memory Model
Adopts a workspace-isolated local CRM storing summaries and vectors on a per-tenant basis. - ADR-005: Framework Adapter Strategy
Applies framework-agnostic interfaces to isolate Electron and Hono APIs. - ADR-006: Safety Model
Guarantees credentials safety using safeStorage and sanitizing output logs from webhook triggers. - ADR-007: Dependency Rules
Sets up dependency cruiser gates preventing cycle loops and coupling between packages. - ADR-008: LLM Infrastructure Separation
Separates prompt building from active model client instances. - ADR-009: Scheduler Gateway
Orchestrates concurrent crawler pings and CPU utilization via the main process. - ADR-010: Distributed Data Model
Establishes offline-first mutations using isolated local-only SQLite schemas. - ADR-011: Sync Architecture
Coordinates SQLite sync queues to Hono MongoDB sync targets over HTTP. - ADR-012: Provider Capability Model
Audits active model capabilities dynamically at startup. - ADR-013: Tool Catalog
Declares a single registry for scraping and emailing tools to prevent model errors.