AP2.0: Archetyp-Katalog, Method-Stubs und sichtbare Steuerung in Kontrolle.
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Failing after 2m2s
Test Suite / k6 /api/health Baseline (push) Has been skipped
Test Suite / playwright-smoke (push) Has been skipped
Test Suite / lint-backend (push) Successful in 3s
Test Suite / compose-smoke (push) Has been skipped

PO-Dokumente (ADP v0.2, MVP v0.3) und Minimal Complete Slice: Registry-Methoden, Initiative/Project-Spiegel, Default-Methode bei Anlage, Lagebild mit Archetyp und Guidance.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
LarsandCursor committed 2026-07-10 10:44:38 +02:00
1 parent 21d948634e
commit 3bd983297b
30 files changed
+2093 -52

No files matched your search

@@ -0,0 +1,117 @@
# AP2.0 — Steering, Archetypen & Ausprägungen (Minimal Complete Slice)
## Implementierungsauftrag v0.1
**Status:** umgesetzt (2026-07-10)
**Stand:** 2026-07-10
**PO-Basis:** `ADP_Archetype_and_Method_Catalog_v0.2.md` §11, `Kairo_MVP_Definition_v0.3.md`
**Vorgänger:** AP1.10 (EFS), AP1.1 (Method Registry), AP1.9 (Kontrolle-Shell)
**Zielversion:** `0.18.0-ap2.0` · Schema `019`
---
## 1. Ziel
Erster **Minimal Complete Steering Slice**: Archetyp-Katalog und Methoden-Module sind registriert; neues Vorhaben startet mit **passender Default-Methode**; **Kontrolle** zeigt Methode, Archetyp, Lifecycle, Next Actions **mit Begründung** — nicht nur Zähler.
**Leitfrage-Test (MVP §5):** Nutzer kann für ein Kairo-Product-Vorhaben in ≤2 Minuten beantworten: *Was ist als Nächstes dran — und warum?*
---
## 2. Vier Schichten — was dieser Slice liefert
| Schicht | AP2.0 | Nicht in AP2.0 |
|---------|-------|----------------|
| **0 Framework** | unverändert nutzen | Waiting Runtime, Workflow |
| **1 Methode** | **2.0a** — alle Keys registriert; 2 Strategien (program/continuous) | Volle Builder, KI |
| **2 Archetyp** | **2.0b** — Initiative + Project Spiegel, Default-Methode | Tenant-Designer |
| **3 Ausprägung** | **2.0b** — 3 Code-Seeds (Kumite, Buch, Kairo) | `method_profiles`-DB, UI |
| **4 Integration** | — | MCP, Gitea, KI |
---
## 3. Arbeitspakete
### AP2.0a — Method Registry erweitern
**DoD:**
- [ ] Registriert: `program_delivery`, `continuous_product`, `maturity_progression`, `sequential_dependency`, `recurring_control`, `queue_pull`, `agile_iteration`, `dispute_procedure`, `chapter_based_progression`
- [ ] Legacy `product_milestone_driven` bleibt (Alias-Kompatibilität)
- [ ] Next-Action-Strategien: `program_delivery` (Gate-Horizont), `continuous_product` (Ist zuerst, dann Plan)
- [ ] Stubs nutzen `default`-Strategy bis AP2.0d
- [ ] `GET /api/steering/methods` listet alle Methoden
- [ ] pytest: Methoden registriert, unbekannte Keys abgewiesen
**Nicht-Scope:** Structure Builder, Hook-Handler mit MCP, Method Profiles DB.
---
### AP2.0b — Archetyp- & Project-Spiegel
**DoD:**
- [ ] `entity_archetypes` Seeds: alle Initiative-Archetypen aus ADP §3.1 + Project-Spiegel §4.1
- [ ] Jeder Initiative-Archetyp: `default_method_key` (Code-Registry, API-Response)
- [ ] Migration **019**: `projects.archetype_key` NULL → Default = Mirror der Initiative bei INSERT
- [ ] `create_initiative` → SteeringContext mit **Archetyp-Default-Methode** (nicht blind `generic_operating`)
- [ ] `create_project` → `archetype_key` = Mirror der Initiative
- [ ] 3 Referenz-**Ausprägungen** (Code-Seeds): `maturity.karate_kumite`, `content.book_writing`, `product.kairo_dev`
- [ ] EFS: mindestens Felder für `initiative.product`, `initiative.content_project`, `initiative.maturity_journey`
- [ ] pytest: Product → `continuous_product`; Project erbt Archetyp
**Nicht-Scope:** Graph-Designer, Score-Logik (→ AP2.0g), `method_profiles`-Tabelle.
---
### AP2.0c — Kontrolle / Lagebild
**DoD:**
- [ ] `steering-snapshot` enthält: `archetype_key`, `archetype_label`, optional `method_profile_key`, `steering_guidance` (1 Satz)
- [ ] Next Actions enthalten `reason_code` / `recommended_action` sichtbar in UI
- [ ] `SteeringSnapshotPanel`: Archetyp-Zeile, Guidance, Attention aus Signals
- [ ] Kein neues Omnibus-CRUD; nutzt bestehende Kontrolle-Route (`ControlStatusPage`)
- [ ] pytest: Snapshot-Felder für Product-Initiative
**Nicht-Scope:** Burndown, Kanban, Sprint-UI (→ AP2.0f), Gate-Graph (→ AP1.13).
---
## 4. Referenz-Abnahme (manuell nach Deploy)
1. Vorhaben **Kairo** anlegen: Archetyp `initiative.product` → Methode `continuous_product`
2. Kontrolle: Lifecycle, Methode, Archetyp, ≥1 Next Action mit Begründung
3. Project anlegen → `archetype_key` = `project.product`
4. Optional: Archetyp `initiative.content_project` + Feldprofil sichtbar
---
## 5. Explizit nicht in AP2.0
- Kanban-Board, Velocity, Burndown
- `work_cycle` / Sprint (`actions.work_cycle_id`) — AP2.0f
- A3 Score / freiwillige Übernahme — AP2.0g
- Gate-Graph-Designer — AP1.13
- MCP / Gitea / KI-Anbindung — eingefroren
- `method_profiles` PostgreSQL-Tabelle
- Archetyp-Designer Admin-UI
---
## 6. Reihenfolge & Abhängigkeiten
```text
AP2.0a → AP2.0b → AP2.0c (ein Release-Strang 0.18.0-ap2.0)
Danach: AP2.0d (Strategien pro Archetyp), AP2.0f (Sprint), AP2.0g (Score)
```
**Guardrail:** Kein AP1.12/Plan-Politur-Commit ohne Bezug zu §3 AP2.0c DoD.
---
## 7. Referenzen
- `docs/architecture/ADP_Archetype_and_Method_Catalog_v0.2.md`
- `docs/product/Kairo_MVP_Definition_v0.3.md`
- `docs/architecture/Kairo_Method_Design_Principles_v0.1.md`
- `docs/sprints/Sprint1_AP1_1_Method_Registry_Assignment_v0.1.md`