AP1.16d + AP1.9c: Planning Debt in Attention und Cockpit-Signale.
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 2m18s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 12s
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 2m18s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 12s
Attention-Regeln planning_debt/execution_waiting; Portfolio-Kacheln zeigen Steuerungssignale. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
8546c7021b
commit
b9bfa9e5bd
13 files changed
+352
-12
No files matched your search
@@ -3,6 +3,8 @@
|
||||
from steering.graph.execution_engine import (
|
||||
compute_execution_graph_state,
|
||||
compute_planning_debt,
|
||||
execution_waiting_to_attention_items,
|
||||
planning_debt_to_attention_items,
|
||||
)
|
||||
|
||||
|
||||
@@ -114,3 +116,45 @@ def test_scope_filters_to_gate():
|
||||
scope_roadmap_item_id="g1",
|
||||
)
|
||||
assert set(state["items"].keys()) == {"a"}
|
||||
|
||||
|
||||
def test_planning_debt_attention_items():
|
||||
items = planning_debt_to_attention_items(
|
||||
initiative_id="init-1",
|
||||
debts=[
|
||||
{
|
||||
"roadmap_item_id": "gate-1",
|
||||
"title": "G5 Plan",
|
||||
"message": "Aktiver Zielzustand ohne Durchführungsplan",
|
||||
}
|
||||
],
|
||||
)
|
||||
assert len(items) == 1
|
||||
assert items[0]["kind"] == "planning_debt"
|
||||
assert items[0]["initiative_id"] == "init-1"
|
||||
assert items[0]["milestone_id"] == "gate-1"
|
||||
|
||||
|
||||
def test_execution_waiting_attention_items():
|
||||
actions = [
|
||||
_action("a", "open", sort_order=0),
|
||||
_action("b", "open", sort_order=1),
|
||||
]
|
||||
state = compute_execution_graph_state(
|
||||
actions=actions,
|
||||
dependencies=[
|
||||
{
|
||||
"predecessor_action_id": "a",
|
||||
"successor_action_id": "b",
|
||||
"dependency_kind": "requires",
|
||||
}
|
||||
],
|
||||
)
|
||||
items = execution_waiting_to_attention_items(
|
||||
initiative_id="init-1",
|
||||
actions=actions,
|
||||
graph_state=state,
|
||||
)
|
||||
assert len(items) == 1
|
||||
assert items[0]["kind"] == "execution_waiting"
|
||||
assert items[0]["action_id"] == "b"
|
||||
Reference in new issue
Block a user