Kairo-Jinkendo/backend/data_layer/attention.py
Lars 95feba6204
All checks were successful
Deploy Development / deploy (push) Successful in 44s
Test Suite / pytest-backend (push) Successful in 1m19s
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 18s
Test Suite / playwright-smoke (push) Successful in 11s
AP1.0: Steering Foundation — Lifecycle, Context, Signal Engine
Persistierter Standard Lifecycle pro Initiative, backend/steering/ Skeleton, Attention-Refactor und Hook-Dispatch als Basis für Method Registry.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-05 17:09:20 +02:00

26 lines
653 B
Python

"""Attention and NextAction — thin Data Layer wrapper (AP1.0)."""
from __future__ import annotations
from steering.signals.engine import evaluate
from tenant_context import TenantContext
def get_attention_items(ctx: TenantContext):
return evaluate(ctx, kind="attention")
def get_next_action_candidates(ctx: TenantContext, *, limit: int = 10):
return evaluate(ctx, kind="next_action", limit=limit)
def get_next_action_candidates_for_initiative(
ctx: TenantContext, *, initiative_id: str, limit: int = 5
):
return evaluate(
ctx,
kind="next_action",
limit=limit,
initiative_id=initiative_id,
)