AP2.4: Steuerungselement-Registry und Methoden-Vertrag.
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Failing after 3m17s
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 46s
Test Suite / pytest-backend (push) Failing after 3m17s
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
MethodDefinition traegt steering_elements/ui_features/graph_profile; operating-context und FE-Registry ohne Archetyp-Ifs. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
ac475ab92c
commit
d3bf3c36e0
25 files changed
+837
-118
No files matched your search
@@ -1,9 +1,15 @@
|
||||
"""Shared registration helper for AP2.0 method stubs — AP2.3e data_slices."""
|
||||
"""Shared registration helper for AP2.0 method stubs — AP2.3e / AP2.4."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Literal
|
||||
|
||||
from steering.graph.profiles import (
|
||||
FULFILLMENT,
|
||||
GraphMethodProfile,
|
||||
LIGHT,
|
||||
STRICT,
|
||||
)
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.methods.registry import MethodDefinition, get_method, register_method
|
||||
|
||||
@@ -74,6 +80,8 @@ SLICES_GENERIC = SLICES_OM_STANDARD
|
||||
|
||||
SLICES_AGILE = SLICES_PRODUCT
|
||||
|
||||
ELEM_NEXT = frozenset({"next_action_primary"})
|
||||
|
||||
|
||||
def register_stub_method(
|
||||
*,
|
||||
@@ -84,6 +92,11 @@ def register_stub_method(
|
||||
lifecycle_steps: tuple[str, ...] | None = None,
|
||||
data_slices: frozenset[str] | None = None,
|
||||
compatible_archetype_keys: frozenset[str] | Literal["*"] = "*",
|
||||
steering_elements: frozenset[str] | None = None,
|
||||
ui_features: frozenset[str] | None = None,
|
||||
graph_profile: GraphMethodProfile = LIGHT,
|
||||
method_role: Literal["primary", "modifier"] = "primary",
|
||||
composes_with: frozenset[str] | None = None,
|
||||
) -> None:
|
||||
if get_method(key):
|
||||
return
|
||||
@@ -97,6 +110,11 @@ def register_stub_method(
|
||||
next_action_strategy_key=next_action_strategy_key,
|
||||
data_slices=data_slices or SLICES_GENERIC,
|
||||
compatible_archetype_keys=compatible_archetype_keys,
|
||||
steering_elements=steering_elements or ELEM_NEXT,
|
||||
ui_features=ui_features or frozenset(),
|
||||
graph_profile=graph_profile,
|
||||
method_role=method_role,
|
||||
composes_with=composes_with or frozenset(),
|
||||
)
|
||||
)
|
||||
|
||||
@@ -109,6 +127,9 @@ def register_product_like_method(
|
||||
next_action_strategy_key: str,
|
||||
data_slices: frozenset[str] | None = None,
|
||||
compatible_archetype_keys: frozenset[str] | Literal["*"] | None = None,
|
||||
steering_elements: frozenset[str] | None = None,
|
||||
ui_features: frozenset[str] | None = None,
|
||||
graph_profile: GraphMethodProfile = STRICT,
|
||||
) -> None:
|
||||
register_stub_method(
|
||||
key=key,
|
||||
@@ -120,4 +141,8 @@ def register_product_like_method(
|
||||
compatible_archetype_keys=compatible_archetype_keys
|
||||
if compatible_archetype_keys is not None
|
||||
else frozenset({"initiative.product"}),
|
||||
steering_elements=steering_elements
|
||||
or (ELEM_NEXT | frozenset({"gate_fulfillment", "work_cycle_scope"})),
|
||||
ui_features=ui_features or frozenset(),
|
||||
graph_profile=graph_profile,
|
||||
)
|
||||
@@ -1,13 +1,15 @@
|
||||
"""AP2.0a — remaining method stubs."""
|
||||
"""AP2.0a — remaining method stubs — AP2.4 steering elements."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.graph.profiles import FULFILLMENT, LIGHT, STRICT
|
||||
from steering.methods.registrations._helpers import (
|
||||
ELEM_NEXT,
|
||||
SLICES_AGILE,
|
||||
SLICES_MATURITY,
|
||||
SLICES_OM_STANDARD,
|
||||
SLICES_QUEUE,
|
||||
SLICES_RECURRING,
|
||||
SLICES_AGILE,
|
||||
SLICES_OM_STANDARD,
|
||||
register_stub_method,
|
||||
)
|
||||
|
||||
@@ -20,6 +22,9 @@ def register() -> None:
|
||||
next_action_strategy_key="maturity_progression",
|
||||
data_slices=SLICES_MATURITY,
|
||||
compatible_archetype_keys=frozenset({"initiative.maturity_journey"}),
|
||||
steering_elements=ELEM_NEXT
|
||||
| frozenset({"maturity_stage", "recurring_rhythm"}),
|
||||
graph_profile=FULFILLMENT,
|
||||
)
|
||||
register_stub_method(
|
||||
key="sequential_dependency",
|
||||
@@ -28,6 +33,10 @@ def register() -> None:
|
||||
next_action_strategy_key="sequential_dependency",
|
||||
data_slices=SLICES_OM_STANDARD,
|
||||
compatible_archetype_keys="*",
|
||||
steering_elements=ELEM_NEXT
|
||||
| frozenset({"critical_path", "gate_fulfillment"}),
|
||||
ui_features=frozenset({"criticalPathControl"}),
|
||||
graph_profile=STRICT,
|
||||
)
|
||||
register_stub_method(
|
||||
key="recurring_control",
|
||||
@@ -36,6 +45,8 @@ def register() -> None:
|
||||
next_action_strategy_key="recurring_control",
|
||||
data_slices=SLICES_RECURRING,
|
||||
compatible_archetype_keys=frozenset({"initiative.recurring_program"}),
|
||||
steering_elements=ELEM_NEXT | frozenset({"recurring_rhythm"}),
|
||||
graph_profile=FULFILLMENT,
|
||||
)
|
||||
register_stub_method(
|
||||
key="queue_pull",
|
||||
@@ -44,6 +55,8 @@ def register() -> None:
|
||||
next_action_strategy_key="queue_pull",
|
||||
data_slices=SLICES_QUEUE,
|
||||
compatible_archetype_keys="*",
|
||||
steering_elements=ELEM_NEXT | frozenset({"queue_inbox"}),
|
||||
graph_profile=LIGHT,
|
||||
)
|
||||
register_stub_method(
|
||||
key="agile_iteration",
|
||||
@@ -52,6 +65,11 @@ def register() -> None:
|
||||
next_action_strategy_key="agile_iteration",
|
||||
data_slices=SLICES_AGILE,
|
||||
compatible_archetype_keys="*",
|
||||
steering_elements=ELEM_NEXT | frozenset({"work_cycle_scope"}),
|
||||
ui_features=frozenset({"steeringSnapshotOnWorkSprint"}),
|
||||
graph_profile=STRICT,
|
||||
method_role="modifier",
|
||||
composes_with=frozenset({"continuous_product", "program_delivery"}),
|
||||
)
|
||||
register_stub_method(
|
||||
key="dispute_procedure",
|
||||
@@ -69,6 +87,8 @@ def register() -> None:
|
||||
}
|
||||
),
|
||||
compatible_archetype_keys=frozenset({"initiative.dispute_case"}),
|
||||
steering_elements=ELEM_NEXT | frozenset({"dispute_timeline"}),
|
||||
graph_profile=LIGHT,
|
||||
)
|
||||
register_stub_method(
|
||||
key="chapter_based_progression",
|
||||
@@ -87,4 +107,7 @@ def register() -> None:
|
||||
}
|
||||
),
|
||||
compatible_archetype_keys=frozenset({"initiative.content_project"}),
|
||||
steering_elements=ELEM_NEXT
|
||||
| frozenset({"chapter_progression", "gate_fulfillment"}),
|
||||
graph_profile=FULFILLMENT,
|
||||
)
|
||||
@@ -1,8 +1,12 @@
|
||||
"""Built-in method: continuous_product — AP2.0a."""
|
||||
"""Built-in method: continuous_product — AP2.0a / AP2.4."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.methods.registrations._helpers import register_product_like_method
|
||||
from steering.graph.profiles import FULFILLMENT
|
||||
from steering.methods.registrations._helpers import (
|
||||
ELEM_NEXT,
|
||||
register_product_like_method,
|
||||
)
|
||||
|
||||
|
||||
def register() -> None:
|
||||
@@ -11,4 +15,10 @@ def register() -> None:
|
||||
label="Produkt (kontinuierlich)",
|
||||
description="Kontinuierlicher Betrieb — Ist zuerst, Plan als Orientierung",
|
||||
next_action_strategy_key="continuous_product",
|
||||
graph_profile=FULFILLMENT,
|
||||
ui_features=frozenset(
|
||||
{"continuousProductWorkMode", "steeringSnapshotOnWorkSprint"}
|
||||
),
|
||||
steering_elements=ELEM_NEXT
|
||||
| frozenset({"gate_fulfillment", "work_cycle_scope"}),
|
||||
)
|
||||
@@ -1,10 +1,11 @@
|
||||
"""Built-in method: generic_operating."""
|
||||
"""Built-in method: generic_operating — AP2.4."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.graph.profiles import LIGHT
|
||||
from steering.methods.registrations._helpers import ELEM_NEXT, SLICES_GENERIC
|
||||
from steering.methods.registry import MethodDefinition, get_method, register_method
|
||||
from steering.methods.registrations._helpers import SLICES_GENERIC
|
||||
|
||||
|
||||
def register() -> None:
|
||||
@@ -20,5 +21,7 @@ def register() -> None:
|
||||
next_action_strategy_key="default",
|
||||
data_slices=SLICES_GENERIC,
|
||||
compatible_archetype_keys="*",
|
||||
steering_elements=ELEM_NEXT,
|
||||
graph_profile=LIGHT,
|
||||
)
|
||||
)
|
||||
@@ -1,10 +1,10 @@
|
||||
"""Built-in method: product_milestone_driven — AP1.1."""
|
||||
"""Built-in method: product_milestone_driven — AP1.1 / AP2.4."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.graph.profiles import STRICT
|
||||
from steering.methods.registrations._helpers import ELEM_NEXT, SLICES_PRODUCT
|
||||
from steering.methods.registry import MethodDefinition, get_method, register_method
|
||||
from steering.methods.registrations._helpers import SLICES_PRODUCT
|
||||
|
||||
_PRODUCT_STEPS = (
|
||||
"intake",
|
||||
@@ -42,5 +42,8 @@ def register() -> None:
|
||||
"initiative.program",
|
||||
}
|
||||
),
|
||||
steering_elements=ELEM_NEXT
|
||||
| frozenset({"gate_fulfillment", "work_cycle_scope"}),
|
||||
graph_profile=STRICT,
|
||||
)
|
||||
)
|
||||
@@ -1,8 +1,9 @@
|
||||
"""Built-in method: program_delivery — AP2.0a."""
|
||||
"""Built-in method: program_delivery — AP2.0a / AP2.4."""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.methods.registrations._helpers import (
|
||||
ELEM_NEXT,
|
||||
SLICES_PROGRAM,
|
||||
register_product_like_method,
|
||||
)
|
||||
@@ -16,4 +17,6 @@ def register() -> None:
|
||||
next_action_strategy_key="program_delivery",
|
||||
data_slices=SLICES_PROGRAM,
|
||||
compatible_archetype_keys=frozenset({"initiative.program"}),
|
||||
steering_elements=ELEM_NEXT
|
||||
| frozenset({"gate_fulfillment", "work_cycle_scope"}),
|
||||
)
|
||||
Reference in new issue
Block a user