Skip to content
Lovelace

Platform Architecture

Lovelace isn't a single monolithic application—it's a platform of interconnected products designed to work together. Understanding this architecture helps you use the platform effectively.

The Core Insight#

Most platforms give you either tightly coupled components (fast but inflexible) or loosely coupled services (flexible but complex). Lovelace takes a middle path: products are independent but share common foundations.

This means you can use just the CLI for local development, or run the full stack in production. Components work together when you need them to, but don't force coupling when you don't.

Product Relationships#

Lovelace Accounts Service is the authentication foundation. Every product trusts it for identity, so you authenticate once and access everything. It handles users, accounts, organizations, OAuth flows, API keys, and session management.

Ada CLI is the developer's tool for code-first workflows. It authenticates through device authorization flow, stores credentials locally, and can create agents, manage deployments, and interact with all platform services.

Data Flow#

User identity flows from Accounts Service to all products. You authenticate with Accounts (typically using a passkey), receive tokens, and use those tokens to access other services.

Integrations are connected through OAuth flows managed by Accounts. Once connected, integration tokens are available to agents across products.

Organizational Hierarchy#

The platform has a clear hierarchy:

Organizations are top-level containers representing companies or teams.

Accounts belong to organizations and contain users and resources.

Workspaces within accounts organize related projects and agents.

Projects within workspaces contain specific work items.

Agents run within the context of a project and workspace.

This hierarchy provides natural isolation and access control. An agent in one workspace can't access another workspace's data unless explicitly granted permission.

Deployment Models#

Local-only - Use CLI exclusively, run agents on your machine. Full control, works offline, but you handle all operational concerns.

Security Boundaries#

Products communicate over authenticated HTTPS. Service-to-service authentication uses client credentials. User authentication uses OAuth tokens.

Each product validates tokens independently—there's no "super admin" that bypasses checks. This defense-in-depth approach means compromise of one component doesn't automatically compromise everything.

Integration tokens are scoped to specific capabilities. An agent with GitHub read access can't suddenly start deleting repositories.

The Bigger Picture#

This architecture enables several important properties:

Security - Clear boundaries with explicit authentication between components.

Scalability - Each product scales independently based on its load.

Evolution - Products can evolve without breaking others, thanks to versioned APIs and clear interfaces.

The result is a platform that feels cohesive when you use it, but maintains the flexibility and reliability of well-designed distributed systems.