feat(steering): Kernel Spine v0.1.1 als zentraler Initiative-Einstieg
Deploy Development / deploy (push) Successful in 48s
Test Suite / pytest-backend (push) Failing after 3m33s
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 48s
Test Suite / pytest-backend (push) Failing after 3m33s
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
evaluate_steering() vereinheitlicht Horizon, Next Work und Attention; Snapshot und Signal Engine delegieren dorthin; slot_map deklarativ fuer sequential_dependency und generic_operating. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
753f178b0c
commit
75a6a63665
20 files changed
+923
-51
No files matched your search
@@ -97,6 +97,7 @@ def register_stub_method(
|
||||
graph_profile: GraphMethodProfile = LIGHT,
|
||||
method_role: Literal["primary", "modifier"] = "primary",
|
||||
composes_with: frozenset[str] | None = None,
|
||||
slot_map: tuple[tuple[str, str], ...] | None = None,
|
||||
) -> None:
|
||||
if get_method(key):
|
||||
return
|
||||
@@ -115,6 +116,7 @@ def register_stub_method(
|
||||
graph_profile=graph_profile,
|
||||
method_role=method_role,
|
||||
composes_with=composes_with or frozenset(),
|
||||
slot_map=slot_map or (),
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -3,6 +3,10 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.graph.profiles import FULFILLMENT, LIGHT, STRICT
|
||||
from steering.lifecycle.slot_maps import (
|
||||
SEQUENTIAL_DEPENDENCY_SLOTS,
|
||||
slot_map_to_tuple,
|
||||
)
|
||||
from steering.methods.registrations._helpers import (
|
||||
ELEM_NEXT,
|
||||
SLICES_AGILE,
|
||||
@@ -37,6 +41,7 @@ def register() -> None:
|
||||
| frozenset({"critical_path", "gate_fulfillment"}),
|
||||
ui_features=frozenset({"criticalPathControl"}),
|
||||
graph_profile=STRICT,
|
||||
slot_map=slot_map_to_tuple(SEQUENTIAL_DEPENDENCY_SLOTS),
|
||||
)
|
||||
register_stub_method(
|
||||
key="recurring_control",
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.graph.profiles import LIGHT
|
||||
from steering.lifecycle.slot_maps import GENERIC_OPERATING_SLOTS, slot_map_to_tuple
|
||||
from steering.lifecycle.states import STANDARD_LIFECYCLE_STEPS
|
||||
from steering.methods.registrations._helpers import ELEM_NEXT, SLICES_GENERIC
|
||||
from steering.methods.registry import MethodDefinition, get_method, register_method
|
||||
|
||||
@@ -23,5 +24,6 @@ def register() -> None:
|
||||
compatible_archetype_keys="*",
|
||||
steering_elements=ELEM_NEXT,
|
||||
graph_profile=LIGHT,
|
||||
slot_map=slot_map_to_tuple(GENERIC_OPERATING_SLOTS),
|
||||
)
|
||||
)
|
||||
@@ -26,6 +26,7 @@ class MethodDefinition:
|
||||
graph_profile: GraphMethodProfile = LIGHT
|
||||
method_role: Literal["primary", "modifier"] = "primary"
|
||||
composes_with: frozenset[str] = frozenset()
|
||||
slot_map: tuple[tuple[str, str], ...] = ()
|
||||
|
||||
|
||||
def ui_features_as_dict(features: frozenset[str]) -> dict[str, bool]:
|
||||
@@ -70,6 +71,10 @@ def register_method(defn: MethodDefinition) -> None:
|
||||
raise ValueError(
|
||||
f"Modifier method {defn.key} must declare composes_with primary keys"
|
||||
)
|
||||
if defn.slot_map:
|
||||
from steering.lifecycle.slot_maps import slot_map_from_tuple
|
||||
|
||||
slot_map_from_tuple(defn.slot_map)
|
||||
_METHODS[defn.key] = defn
|
||||
|
||||
|
||||
@@ -133,6 +138,10 @@ def method_to_dict(
|
||||
"composes_with": sorted(method.composes_with),
|
||||
"data_slices": sorted(method.data_slices),
|
||||
}
|
||||
if method.slot_map:
|
||||
payload["slot_map"] = {
|
||||
step: status for step, status in method.slot_map
|
||||
}
|
||||
if include_compatibility:
|
||||
compat = method.compatible_archetype_keys
|
||||
payload["compatible_archetype_keys"] = (
|
||||
|
||||
Reference in new issue
Block a user