All checks were successful
Deploy Development / deploy (push) Successful in 46s
Test Suite / pytest-backend (push) Successful in 4m13s
Test Suite / lint-backend (push) Successful in 3s
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
Methodenuebergreifende Provider auf Kernel v0.3; verbindliche Coding Rules fuer Agenten in ADP und .cursor/rules. Co-authored-by: Cursor <cursoragent@cursor.com>
28 lines
948 B
Python
28 lines
948 B
Python
"""Execution graph read model — critical_path / gate_fulfillment."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import Any
|
|
|
|
from steering.eval_context import SteeringEvalContext
|
|
from steering.graph.execution_engine import compute_execution_graph_state
|
|
|
|
|
|
def compute_execution_graph_read_model(ctx: SteeringEvalContext) -> dict[str, Any]:
|
|
from services.execution_plan import list_dependencies_for_initiative
|
|
from steering.strategies.next_action.execution_ready import (
|
|
gate_horizon_scope_for_method,
|
|
)
|
|
|
|
gate_scope = gate_horizon_scope_for_method(
|
|
ctx.binding.primary_method_key, ctx.tenant_ctx, ctx.initiative_id
|
|
)
|
|
dependencies = list_dependencies_for_initiative(
|
|
tenant_id=ctx.tenant_ctx.tenant_id, initiative_id=ctx.initiative_id
|
|
)
|
|
return compute_execution_graph_state(
|
|
actions=ctx.actions,
|
|
dependencies=dependencies,
|
|
scope_roadmap_item_id=gate_scope,
|
|
)
|