Include ranked suggestions in daily triage digest (STATE-WP-0061).

Expose State Hub ranked_suggestions from /state/summary in the
daily_triage_digest resolver so WSJF triage can prioritize gated needs.
This commit is contained in:
2026-07-06 10:52:52 +02:00
parent d7d7c966fa
commit 6e3e7e6176
2 changed files with 34 additions and 0 deletions

View File

@@ -486,6 +486,18 @@ def test_daily_triage_digest_is_curated_scalar_json(monkeypatch) -> None:
"/state/summary": {
"generated_at": "2026-05-19T05:20:00Z",
"totals": {"tasks": {"todo": 4, "wait": 1}},
"ranked_suggestions": [
{
"id": "sug-1",
"title": "Issue-core ingestion API key path",
"stage": "suggestion",
"domain_slug": "custodian",
"origin_ref": "issue-core-ingestion-api-key",
"relevance": 2,
"wsjf": 4.7,
"last_requested_at": "2026-05-19T04:00:00Z",
}
],
"topics": [
{
"slug": "custodian",
@@ -594,3 +606,4 @@ def test_daily_triage_digest_is_curated_scalar_json(monkeypatch) -> None:
assert digest["deterministic_scoring"]["future_mode"] == (
"code_score_high_gain_high_effort_candidates"
)
assert digest["ranked_suggestions"][0]["origin_ref"] == "issue-core-ingestion-api-key"