docs: Archetyp-Vollspecs und Methodenkern vorlaeufig freigeben.
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Failing after 3m23s
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
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Failing after 3m23s
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
Decision-Lock, Spec-D-Methoden und C1-Massstab-Vollspecs als Zielbild; Steering-Registry/Compat und Horizon-Tests an die Normierung anbinden. Implementierungsausreichendheit bleibt bewusst offen. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
005b371ac0
commit
753f178b0c
48 files changed
+5113
-531
No files matched your search
@@ -22,7 +22,7 @@ _GUIDANCE: dict[str, str] = {
|
||||
"Aktuelle Stufe und heutige Übung steuern deinen nächsten Schritt."
|
||||
),
|
||||
"initiative.linear_project": (
|
||||
"Nächster Schritt am kritischen Pfad — Abhängigkeiten im Plan-Graph."
|
||||
"Kritischer Pfad und Abhängigkeiten steuern Next — nicht die Gesamtliste."
|
||||
),
|
||||
"initiative.product": (
|
||||
"Eingang triagieren, dann committete Actions — optional Sprint-Zeitbox (B3)."
|
||||
@@ -34,7 +34,7 @@ _GUIDANCE: dict[str, str] = {
|
||||
|
||||
_PROFILE_HINTS: dict[str, list[str]] = {
|
||||
"initiative.maturity_journey": ["maturity.karate_kumite"],
|
||||
"initiative.linear_project": [],
|
||||
"initiative.linear_project": ["project.agile_iteration"],
|
||||
"initiative.product": ["product.kairo_dev"],
|
||||
"initiative.program": [],
|
||||
}
|
||||
@@ -75,6 +75,7 @@ def get_starter_preview(
|
||||
{"kind": "milestone", "title": "G4 — Abschluss", "status": "planned"},
|
||||
{"kind": "project", "title": "Hauptpfad"},
|
||||
{"kind": "project", "title": "Begleitung"},
|
||||
{"kind": "action", "title": "Erster Schritt — Planung konkretisieren"},
|
||||
]
|
||||
elif archetype_key == "initiative.product":
|
||||
items = [
|
||||
@@ -128,6 +129,7 @@ def apply_starter_kit(
|
||||
"projects": [],
|
||||
"recurring": [],
|
||||
"backlog_items": [],
|
||||
"actions": [],
|
||||
}
|
||||
|
||||
if archetype_key == "initiative.maturity_journey":
|
||||
@@ -282,9 +284,28 @@ def _apply_a2(
|
||||
user_id=user_id,
|
||||
)
|
||||
|
||||
from services.actions import create_action, list_actions_for_initiative
|
||||
|
||||
projects = list_projects_for_initiative(tenant_id=tenant_id, initiative_id=initiative_id)
|
||||
hauptpfad = _find_by_title(projects, "Hauptpfad")
|
||||
actions = list_actions_for_initiative(tenant_id=tenant_id, initiative_id=initiative_id)
|
||||
if not _find_by_title(actions, "Erster Schritt — Planung konkretisieren"):
|
||||
create_action(
|
||||
tenant_id=tenant_id,
|
||||
initiative_id=initiative_id,
|
||||
title="Erster Schritt — Planung konkretisieren",
|
||||
description="Starter-Arbeitspaket am ersten Gate",
|
||||
status="open",
|
||||
roadmap_item_id=gate_ids[0],
|
||||
project_id=hauptpfad["id"] if hauptpfad else None,
|
||||
sort_order=0,
|
||||
user_id=user_id,
|
||||
)
|
||||
|
||||
return {
|
||||
"roadmap_items": gate_ids,
|
||||
"projects": ["Hauptpfad", "Begleitung"],
|
||||
"actions": ["Erster Schritt — Planung konkretisieren"],
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -18,6 +18,7 @@ from steering.graph.profiles import LIGHT, graph_profile_as_dict
|
||||
from steering.methods.registry import (
|
||||
get_method,
|
||||
list_compatible_methods,
|
||||
list_composable_modifiers,
|
||||
method_to_dict,
|
||||
ui_features_as_dict,
|
||||
)
|
||||
@@ -166,4 +167,32 @@ def get_operating_context(
|
||||
om_capabilities=om_capabilities,
|
||||
active_method_key=method_key,
|
||||
),
|
||||
"composable_modifiers": [
|
||||
method_to_dict(m, include_compatibility=False)
|
||||
for m in list_composable_modifiers(method_key)
|
||||
],
|
||||
"active_composition_modifier": (
|
||||
"agile_iteration"
|
||||
if _resolve_active_agile_composition(
|
||||
tenant_id=tenant_id,
|
||||
initiative_id=initiative_id,
|
||||
primary_method_key=method_key,
|
||||
)
|
||||
else None
|
||||
),
|
||||
}
|
||||
|
||||
|
||||
def _resolve_active_agile_composition(
|
||||
*,
|
||||
tenant_id: str,
|
||||
initiative_id: str,
|
||||
primary_method_key: str,
|
||||
) -> bool:
|
||||
from services.work_cycle import get_active_work_cycle
|
||||
from steering.methods.registry import get_method
|
||||
|
||||
agile = get_method("agile_iteration")
|
||||
if not agile or primary_method_key not in agile.composes_with:
|
||||
return False
|
||||
return get_active_work_cycle(tenant_id=tenant_id, initiative_id=initiative_id) is not None
|
||||
Reference in new issue
Block a user