> ## 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.

# 1.5 Solution Strategy

> The key strategic decisions behind Kcode Robot Suite and how they meet its quality goals.

## 1.5.1 Strategy summary

| Quality goal | Strategy | Where to read more |
| - | - | - |
| Extensibility | A stable plugin contract (`KcodePlugin`) and a single composition point, `config/plugins.ts`. | [Plugin contract](https://docs.khanhng.com/kcode-robot-suite/sdk-reference/plugin-contract.md) |
| Isolation | A domain-agnostic kernel that never imports plugins. Package boundaries enforce the direction of dependencies. | [Building block view](https://docs.khanhng.com/kcode-robot-suite/architecture/05-building-block-view.md) |
| Replaceability | Typed service interfaces with mock implementations behind them. | [Crosscutting concepts](https://docs.khanhng.com/kcode-robot-suite/architecture/08-crosscutting-concepts.md) |

## 1.5.2 Key decisions

| Decision | Summary |
| - | - |
| [AD-001](https://docs.khanhng.com/kcode-robot-suite/architecture/architecture-decisions/ad-001-microkernel-with-plugins.md) | Use a microkernel with plugins. |
| [AD-002](https://docs.khanhng.com/kcode-robot-suite/architecture/architecture-decisions/ad-002-mock-services-behind-interfaces.md) | Keep mock services behind service interfaces. |
| [AD-003](https://docs.khanhng.com/kcode-robot-suite/architecture/architecture-decisions/ad-003-pnpm-monorepo-and-contract-tests.md) | Use a pnpm monorepo and contract tests. |

## 1.5.3 Organization of the code

| Path | Responsibility |
| - | - |
| `apps/web` | Next.js host and composition root. |
| `packages/plugin-sdk` | Stable contracts a plugin consumes. |
| `packages/kernel` | Registry, lifecycle, permissions, events, and configuration. |
| `packages/design-system` | Shared visual primitives, patterns, and charts. |
| `packages/services` | Replaceable platform services such as demo authentication, logging, and notifications. |
| `packages/shared` | Small utilities such as `isNonEmptyString` and `immutableCopy`. |
| `plugins/*` | One self-contained demo per directory. |
| `config/plugins.ts` | The list of registered plugins. |


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