2026-07-04 19:03:57 +02:00
# Jinkendo Kairo
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Operativer Program Director der Jinkendo-Produktfamilie.
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Kairo steuert Vorhaben, Programme, Projekte, Meilensteine, Maßnahmen, Backlogs, Reviews, Nachweise und die Zusammenarbeit von Menschen, Arbeitsgruppen und KI-Agenten.
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
## Leitfrage
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
> Welcher nächste Schritt bringt ein Vorhaben aktuell am wirkungsvollsten voran?
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
## Startzustand
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Dieses Repository startet mit einem reinen Spezifikations- und Sprint-0-Handover-Paket.
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Noch nicht enthalten:
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
- produktiver Anwendungscode
- endgültiger Technologie-Stack
- vollständige Jinkendo-Foundation
- Mitai- oder Shinkan-Code
- Billing / SSO / zentrale Produktfamilien-Konvergenz
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
## Verbindliche Dokumente für Sprint 0
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
1. `docs/product/Jinkendo_Kairo_Product_Spec_v0.2.md`
2. `docs/architecture/Jinkendo_Foundation_Minimum_Viable_Foundation_v0.2.md`
3. `docs/architecture/Kairo_Sprint0_Principle_Gate_v0.1.md`
4. `docs/sprints/Jinkendo_Kairo_04_Sprint0_Foundation_v0.3.md`
5. `docs/sprints/Sprint0_Vibe_Coder_Handover_v0.1.md`
6. `docs/sprints/Sprint0_AP0_1_Project_Setup_Assignment_v0.1.md`
7. `CLAUDE.md`
8. `.cursor/rules/kairo-architecture.mdc`
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
## Arbeitsmodus
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Kairo wird iterativ entwickelt.
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Sprint 0 baut nur das Fundament:
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
- Tenant
- User
- Actor
- TenantContext
- Auth-Gates
- Capability/Rights Registry
- minimale Feature Registry
- minimale Prompt Registry
- Platzhaltermodell
- Audit
- Migration/Deploy-Grundlage
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Vorhaben, Projekte, Meilensteine und Maßnahmen kommen erst nach Sprint 0.
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
## Designprinzipien-Referenzen
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Die extrahierten Designprinzipien aus Mitai und Shinkan liegen im Repository unter:
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
```text
docs/reference/design-principles/
```
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Diese Dokumente sind Referenzen, kein direkter Sprint-Scope.
2026-07-04 18:15:24 +02:00
2026-07-04 19:03:57 +02:00
Verbindlich ist nur, was über das Kairo Sprint-0 Principle Gate oder eine Architecture Decision übernommen wurde.
2026-07-04 19:08:55 +02:00
2026-07-04 19:43:57 +02:00
## Deployment & CI
2026-07-04 19:40:44 +02:00
2026-07-04 19:43:57 +02:00
Zwei getrennte Gitea-Workflows (wie Shinkan):
2026-07-04 19:40:44 +02:00
2026-07-04 19:43:57 +02:00
| Workflow | Branch |
|----------|--------|
| **Deploy Development** | `develop` |
| **Deploy Production** | `main` |
| **Test Suite** | nach Deploy + bei Push/PR `develop` |
2026-07-04 19:40:44 +02:00
Details: [docs/DEPLOYMENT.md ](docs/DEPLOYMENT.md )
2026-07-04 19:15:43 +02:00
## Local Development
2026-07-04 19:08:55 +02:00
2026-07-04 19:15:43 +02:00
Voraussetzungen: Docker + Docker Compose.
2026-07-04 19:08:55 +02:00
2026-07-04 19:15:43 +02:00
```bash
git clone http://192.168.2.144:3000/Lars/Kairo-Jinkendo.git
cd Kairo-Jinkendo
git checkout develop
# Dev-Stack (PostgreSQL + Backend + Frontend)
docker compose -f docker-compose.dev-env.yml up --build
# Health prüfen
curl http://localhost:8097/api/health
curl http://localhost:3097/api/health
# Tests im Backend-Container
docker compose -f docker-compose.dev-env.yml exec backend pip install -r requirements-dev.txt
docker compose -f docker-compose.dev-env.yml exec backend python -m pytest tests -ra -vv
```
UI: http://localhost:3097 · API: http://localhost:8097
2026-07-04 20:09:54 +02:00
Interaktive API-Doku (Dev): http://localhost:8097/api/docs
### Auth (AP0.2)
2026-07-04 22:25:11 +02:00
**Ersteinrichtung Dev** (automatisch per Seed nach jedem Backend-Start):
2026-07-04 20:28:07 +02:00
2026-07-04 22:25:11 +02:00
| Feld | Wert |
|------|------|
| E-Mail | `lars@stommer.com` |
| Passwort | `12345678` |
Alternativ: UI-Registrierung (nur wenn DB leer und Dev-Seed deaktiviert) oder Bootstrap per `.env` :
2026-07-04 20:09:54 +02:00
```env
KAIRO_BOOTSTRAP_ADMIN_EMAIL=admin@kairo.local
KAIRO_BOOTSTRAP_ADMIN_PASSWORD=…
KAIRO_BOOTSTRAP_TENANT_SLUG=default
```
2026-07-04 20:28:07 +02:00
Migrationen & idempotente Data-Seeds: [docs/MIGRATIONS.md ](docs/MIGRATIONS.md )
2026-07-04 20:09:54 +02:00
| Endpoint | Methode | Auth | Beschreibung |
|----------|---------|------|--------------|
2026-07-04 20:19:02 +02:00
| `/api/auth/setup-status` | GET | — | Ob Erstregistrierung offen ist |
| `/api/auth/register` | POST | — | Erster User → Portal-Admin + Tenant (nur wenn noch kein User) |
2026-07-04 20:09:54 +02:00
| `/api/auth/login` | POST | — | E-Mail + Passwort → Session-Token |
| `/api/auth/logout` | POST | `X-Auth-Token` | Session löschen |
| `/api/me` | GET | `X-Auth-Token` | Aktueller User + Tenant-Liste |
| `/api/me/context` | GET | `X-Auth-Token` | TenantContext (Tenant + Human Actor) |
| `/api/me/tenant` | POST | `X-Auth-Token` | Aktiven Tenant wechseln (nur Memberships) |
```bash
# Login
curl -s -X POST http://localhost:8097/api/auth/login \
-H "Content-Type: application/json" \
-d '{"email":"admin@kairo.local","password":"…"}'
# Geschützter Endpoint
curl -s http://localhost:8097/api/me -H "X-Auth-Token: TOKEN"
```
Regeln: `user_id` kommt aus der Session, nicht aus Client-Headern. Portalrolle (`portal_role`) und Tenantrolle (`tenant_role`) sind getrennt.
2026-07-04 19:08:55 +02:00
## AP0.1 – Stand Projektgrundlage
| Bereich | Status |
|---------|--------|
| Git + Gitea (`develop` / `main` ) | erledigt |
| Docker Compose (Prod + Dev) | erledigt |
2026-07-04 19:15:43 +02:00
| Backend (FastAPI, Migrationen, `/api/health` ) | erledigt |
| Frontend minimal (React + nginx Proxy) | erledigt |
2026-07-04 20:09:54 +02:00
| pytest (Health + Migrationen + Auth/Tenant/Actor) | erledigt (AP0.2) |
2026-07-04 19:15:43 +02:00
| Gitea Actions (Deploy + Test) | erledigt |