AP2.3e: Method Plugin Contract mit data_slices und Archetyp-Kompatibilitaetspruefung.
Deploy Development / deploy (push) Successful in 49s
Test Suite / pytest-backend (push) Failing after 3m12s
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 2s
Test Suite / compose-smoke (push) Has been skipped
Deploy Development / deploy (push) Successful in 49s
Test Suite / pytest-backend (push) Failing after 3m12s
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 2s
Test Suite / compose-smoke (push) Has been skipped
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
11e36e674e
commit
38fed379ae
8 files changed
+187
-4
No files matched your search
@@ -1,7 +1,9 @@
|
||||
"""Shared registration helper for AP2.0 method stubs."""
|
||||
"""Shared registration helper for AP2.0 method stubs — AP2.3e data_slices."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Literal
|
||||
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.methods.registry import MethodDefinition, get_method, register_method
|
||||
|
||||
@@ -31,6 +33,47 @@ _LIGHT_STEPS = (
|
||||
"closure",
|
||||
)
|
||||
|
||||
SLICES_OM_STANDARD = frozenset(
|
||||
{
|
||||
"backlog",
|
||||
"actions",
|
||||
"roadmap",
|
||||
"projects",
|
||||
"blockers",
|
||||
"evidence",
|
||||
"decisions",
|
||||
"reviews",
|
||||
"steering_methods",
|
||||
}
|
||||
)
|
||||
|
||||
SLICES_PRODUCT = SLICES_OM_STANDARD | frozenset({"work_cycles"})
|
||||
|
||||
SLICES_QUEUE = frozenset({"backlog", "actions", "blockers", "steering_methods"})
|
||||
|
||||
SLICES_MATURITY = frozenset(
|
||||
{
|
||||
"actions",
|
||||
"roadmap",
|
||||
"blockers",
|
||||
"evidence",
|
||||
"decisions",
|
||||
"reviews",
|
||||
"recurring",
|
||||
"steering_methods",
|
||||
}
|
||||
)
|
||||
|
||||
SLICES_RECURRING = frozenset(
|
||||
{"actions", "roadmap", "recurring", "blockers", "steering_methods"}
|
||||
)
|
||||
|
||||
SLICES_PROGRAM = SLICES_OM_STANDARD | frozenset({"work_cycles"})
|
||||
|
||||
SLICES_GENERIC = SLICES_OM_STANDARD
|
||||
|
||||
SLICES_AGILE = SLICES_PRODUCT
|
||||
|
||||
|
||||
def register_stub_method(
|
||||
*,
|
||||
@@ -39,6 +82,8 @@ def register_stub_method(
|
||||
description: str,
|
||||
next_action_strategy_key: str = "default",
|
||||
lifecycle_steps: tuple[str, ...] | None = None,
|
||||
data_slices: frozenset[str] | None = None,
|
||||
compatible_archetype_keys: frozenset[str] | Literal["*"] = "*",
|
||||
) -> None:
|
||||
if get_method(key):
|
||||
return
|
||||
@@ -50,6 +95,8 @@ def register_stub_method(
|
||||
description=description,
|
||||
default_lifecycle_steps=lifecycle_steps or STANDARD_LIFECYCLE_STEPS,
|
||||
next_action_strategy_key=next_action_strategy_key,
|
||||
data_slices=data_slices or SLICES_GENERIC,
|
||||
compatible_archetype_keys=compatible_archetype_keys,
|
||||
)
|
||||
)
|
||||
|
||||
@@ -60,6 +107,8 @@ def register_product_like_method(
|
||||
label: str,
|
||||
description: str,
|
||||
next_action_strategy_key: str,
|
||||
data_slices: frozenset[str] | None = None,
|
||||
compatible_archetype_keys: frozenset[str] | Literal["*"] | None = None,
|
||||
) -> None:
|
||||
register_stub_method(
|
||||
key=key,
|
||||
@@ -67,4 +116,8 @@ def register_product_like_method(
|
||||
description=description,
|
||||
next_action_strategy_key=next_action_strategy_key,
|
||||
lifecycle_steps=_PRODUCT_LIKE_STEPS,
|
||||
data_slices=data_slices or SLICES_PRODUCT,
|
||||
compatible_archetype_keys=compatible_archetype_keys
|
||||
if compatible_archetype_keys is not None
|
||||
else frozenset({"initiative.product"}),
|
||||
)
|
||||
@@ -2,7 +2,14 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.methods.registrations._helpers import register_stub_method
|
||||
from steering.methods.registrations._helpers import (
|
||||
SLICES_MATURITY,
|
||||
SLICES_QUEUE,
|
||||
SLICES_RECURRING,
|
||||
SLICES_AGILE,
|
||||
SLICES_OM_STANDARD,
|
||||
register_stub_method,
|
||||
)
|
||||
|
||||
|
||||
def register() -> None:
|
||||
@@ -11,40 +18,52 @@ def register() -> None:
|
||||
label="Reifegrad-Entwicklung",
|
||||
description="Stufen, Routinen, historische Entwicklung",
|
||||
next_action_strategy_key="maturity_progression",
|
||||
data_slices=SLICES_MATURITY,
|
||||
compatible_archetype_keys=frozenset({"initiative.maturity_journey"}),
|
||||
)
|
||||
register_stub_method(
|
||||
key="sequential_dependency",
|
||||
label="Sequenzielle Abhängigkeit",
|
||||
description="Graph-Pfade, kritischer Pfad (read model)",
|
||||
next_action_strategy_key="sequential_dependency",
|
||||
data_slices=SLICES_OM_STANDARD,
|
||||
compatible_archetype_keys="*",
|
||||
)
|
||||
register_stub_method(
|
||||
key="recurring_control",
|
||||
label="Rhythmus-Steuerung",
|
||||
description="Dauerprogramm, fällig/überfällig, Abweichungen",
|
||||
next_action_strategy_key="recurring_control",
|
||||
data_slices=SLICES_RECURRING,
|
||||
compatible_archetype_keys=frozenset({"initiative.recurring_program"}),
|
||||
)
|
||||
register_stub_method(
|
||||
key="queue_pull",
|
||||
label="Inbox / Queue",
|
||||
description="Pull oder Empfehlung aus Queue",
|
||||
next_action_strategy_key="queue_pull",
|
||||
data_slices=SLICES_QUEUE,
|
||||
compatible_archetype_keys="*",
|
||||
)
|
||||
register_stub_method(
|
||||
key="agile_iteration",
|
||||
label="Iterations-Zeitbox",
|
||||
description="Sprint/work_cycle Profil auf Product/Programm",
|
||||
next_action_strategy_key="agile_iteration",
|
||||
data_slices=SLICES_AGILE,
|
||||
compatible_archetype_keys="*",
|
||||
)
|
||||
register_stub_method(
|
||||
key="dispute_procedure",
|
||||
label="Verfahren / Konflikt",
|
||||
description="Reaktive Steuerung, Fristen, Entscheidungen",
|
||||
next_action_strategy_key="default",
|
||||
compatible_archetype_keys=frozenset({"initiative.dispute_case"}),
|
||||
)
|
||||
register_stub_method(
|
||||
key="chapter_based_progression",
|
||||
label="Kapitel-Entwicklung",
|
||||
description="Inhaltliche Progression, Reviews",
|
||||
next_action_strategy_key="default",
|
||||
compatible_archetype_keys=frozenset({"initiative.content_project"}),
|
||||
)
|
||||
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.methods.registry import MethodDefinition, get_method, register_method
|
||||
from steering.methods.registrations._helpers import SLICES_GENERIC
|
||||
|
||||
|
||||
def register() -> None:
|
||||
@@ -17,5 +18,7 @@ def register() -> None:
|
||||
description="Standard-Lifecycle ohne methodenspezifische Spezialisierung",
|
||||
default_lifecycle_steps=STANDARD_LIFECYCLE_STEPS,
|
||||
next_action_strategy_key="default",
|
||||
data_slices=SLICES_GENERIC,
|
||||
compatible_archetype_keys="*",
|
||||
)
|
||||
)
|
||||
@@ -4,6 +4,7 @@ from __future__ import annotations
|
||||
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.methods.registry import MethodDefinition, get_method, register_method
|
||||
from steering.methods.registrations._helpers import SLICES_PRODUCT
|
||||
|
||||
_PRODUCT_STEPS = (
|
||||
"intake",
|
||||
@@ -32,5 +33,7 @@ def register() -> None:
|
||||
description="Meilenstein-orientierte Steuerung für Produkt- und Projektentwicklung",
|
||||
default_lifecycle_steps=_PRODUCT_STEPS,
|
||||
next_action_strategy_key="product_milestone_driven",
|
||||
data_slices=SLICES_PRODUCT,
|
||||
compatible_archetype_keys=frozenset({"initiative.product"}),
|
||||
)
|
||||
)
|
||||
@@ -2,7 +2,10 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.methods.registrations._helpers import register_product_like_method
|
||||
from steering.methods.registrations._helpers import (
|
||||
SLICES_PROGRAM,
|
||||
register_product_like_method,
|
||||
)
|
||||
|
||||
|
||||
def register() -> None:
|
||||
@@ -11,4 +14,6 @@ def register() -> None:
|
||||
label="Programm (begrenzt)",
|
||||
description="Meilenstein- und gate-orientierte Steuerung mit Abschluss",
|
||||
next_action_strategy_key="program_delivery",
|
||||
data_slices=SLICES_PROGRAM,
|
||||
compatible_archetype_keys=frozenset({"initiative.program"}),
|
||||
)
|
||||
Reference in new issue
Block a user