> ## Documentation Index
> Fetch the complete documentation index at: https://docs.khanhng.com/llms.txt
> Use this file to discover all available pages before exploring further.

# AD-002 Mock services behind interfaces

> Decision record: why demos use mock services behind typed interfaces.

| Field | Value |
| - | - |
| Status | Accepted |
| Scope | `plugins/*/src/services`, `packages/services` |

## Context

The demos must run without robot hardware, telemetry feeds, or AI providers, yet they should be able to use real providers later.

## Decision

Define each data dependency as a TypeScript interface, such as `OperationsService` or `MeetingService`. Ship mock implementations that simulate latency and in-memory state. Keep mocks behind the interface so a real provider can replace them without changing plugin UI contracts.

## Consequences

| Type | Effect |
| - | - |
| Benefit | Demos run anywhere with `pnpm dev`. |
| Benefit | A real provider needs only a new implementation of an existing interface. |
| Cost | Demo data is not real. State resets on reload. |
| Cost | Provider credentials must stay out of source control and enter through service interfaces. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.