> ## 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.3 Architecture Constraints

> Technical, organizational, and convention constraints for Kcode Robot Suite.

## 1.3.1 Technical constraints

| Constraint | Detail |
| - | - |
| Runtime | Node.js 22. |
| Package manager | pnpm 10.12.1, pinned by the `packageManager` field in `package.json`. |
| Language | Strict TypeScript with ES module syntax. React routes and components use `.tsx`; services, contracts, and utilities use `.ts`. |
| Web framework | Next.js 15 with React 19. |
| Monorepo layout | pnpm workspaces over `apps/*`, `packages/*`, and `plugins/*`. |
| Testing | Vitest. Contract tests use the `*.contract.test.ts` name. |

## 1.3.2 Dependency rules

| Layer | May depend on | Must not depend on |
| - | - | - |
| `apps/web` | Packages and plugins | None. It is the composition root. |
| `plugins/*` | SDK, design system, shared utilities, services | Kernel internals and other plugins |
| `packages/kernel` | SDK contracts and shared utilities | Concrete plugins and domain-specific terms |

Plugins reach the app only through `config/plugins.ts`. Mock implementations remain behind service interfaces.

## 1.3.3 Organizational and process constraints

| Constraint | Detail |
| - | - |
| Commit format | Conventional Commits. Release notes and version numbers are generated from commit messages. |
| Default branch | `master`. Pull requests target `master` and must pass the `verify` check. |
| Releases | Managed by release-please. See [Release notes](https://docs.khanhng.com/kcode-robot-suite/release-notes/release-notes-status.md). |
| Credentials | Provider-specific credentials stay out of source control. New integrations route through service interfaces. |


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