2026-07-04 19:08:55 +02:00
---
2026-07-05 18:06:26 +02:00
description: Kairo Architektur-Leitplanken und Dokumentenpriorität
2026-07-04 19:08:55 +02:00
globs: backend/**,frontend/**,docs/**,.gitea/**
alwaysApply: true
---
2026-07-04 19:03:57 +02:00
2026-07-04 19:08:55 +02:00
# Kairo Architecture Rules
2026-07-05 18:06:26 +02:00
Du arbeitest an **Jinkendo Kairo**. Kairo ist mandantenfähig und Actor-first.
2026-07-04 19:08:55 +02:00
2026-07-05 18:06:26 +02:00
## Führende Product-Dokumente (ab 2026-07-05)
2026-07-05 08:17:51 +02:00
2026-07-05 18:06:26 +02:00
1. `docs/product/Kairo_Vision_and_Product_Direction_v0.2.md`
2. `docs/product/Kairo_Canonical_Operating_Model_v0.2.md`
3. `docs/product/Kairo_Implementation_Truth_Table_v0.1.md`
2026-07-05 08:17:51 +02:00
2026-07-05 18:06:26 +02:00
## Product Vision
2026-07-05 08:17:51 +02:00
2026-07-05 18:06:26 +02:00
Kairo ist Program Director — nicht To-do-Tool, nicht CRUD-Omnibus.
2026-07-05 08:17:51 +02:00
2026-07-05 18:06:26 +02:00
- **Plan:** Roadmap / RoadmapItem (Gates, Meilensteine, Reifegrade)
- **Ist:** committete Actions (Arbeitspakete), später Tasks
- **IA:** Workspace (Ausführung), Initiative-Unterseiten (Steuerung, Ausführung, Plan, Eingang, Journey)
- **Bearbeitung:** Modal oder Objekt-Detail — nicht Inline-CRUD auf Übersichtsseiten
2026-07-04 19:08:55 +02:00
2026-07-05 18:06:26 +02:00
Do not reduce Kairo to Initiative → Action.
Do not expand InitiativeDetail as all-in-one CRUD wall.
Do not continue prompt/AI/workflow/MCP before Plan/Ist and Gates are modeled.
2026-07-04 19:03:57 +02:00
2026-07-05 18:06:26 +02:00
## Dokumentenpriorität bei Konflikten
2026-07-04 19:03:57 +02:00
2026-07-05 18:06:26 +02:00
1. Vision & Product Direction v0.2
2. Canonical Operating Model v0.2
3. Implementation Truth Table
4. System Target State, ADPs (Scope Lock)
5. Tenant Invariants, Principle Gate
6. Product Spec v0.2 (Referenz)
7. Sprint History (Completion Reports — nicht als Zielbild)
2026-07-04 19:08:55 +02:00
2026-07-05 18:06:26 +02:00
## Reference design principles
2026-07-04 19:08:55 +02:00
2026-07-05 18:06:26 +02:00
Referenzmaterial unter `docs/reference/design-principles/`. Nicht automatisch Scope.
2026-07-04 19:08:55 +02:00
## Harte Guardrails
2026-07-04 19:03:57 +02:00
2026-07-04 19:08:55 +02:00
- Kein Single-User ohne Tenant
- User ≠ Actor; Agenten sind Actors
- Auth, Capability, Feature, Governance trennen
- Keine hardcodierten Rechte, Prompts oder Fachkonfiguration
- Nummerierte SQL-Migrationen; kein ad-hoc DDL in Routern
- Keine Mitai-/Shinkan-Domänenlogik kopieren
2026-07-05 18:06:26 +02:00
- Keine parallele Steuerungslogik außerhalb `backend/steering/`
- Keine neuen OM-Tabellen ohne ADP (Scope Lock bis RoadmapItem-ADP)
2026-07-25 11:48:13 +02:00
- **Archetyp-/Methoden-Plugin (AP2.3/AP2.4):** siehe `.cursor/rules/kairo-plugin-architecture.mdc` — keine Archetyp-Ifs in Pages, keine neuen Features in `methodUiDefaults.js`
2026-07-04 19:03:57 +02:00
2026-07-04 19:08:55 +02:00
## Abweichungen
2026-07-04 19:03:57 +02:00
2026-07-05 18:06:26 +02:00
Architecture Decision Proposal nach `docs/architecture/ARCHITECTURE_DECISION_PROPOSAL_TEMPLATE.md`.