fix(alerts): surface telegram AI automation coverage
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m19s
CD Pipeline / build-and-deploy (push) Successful in 5m33s
CD Pipeline / post-deploy-checks (push) Successful in 6m28s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 1m19s
CD Pipeline / build-and-deploy (push) Successful in 5m33s
CD Pipeline / post-deploy-checks (push) Successful in 6m28s
This commit is contained in:
@@ -893,6 +893,17 @@ def _effective_ai_loop_context(
|
||||
"target_count": consumer_target_count,
|
||||
}
|
||||
|
||||
if ai_alert_total > 0 and ai_alert_ready_total >= ai_alert_total:
|
||||
return {
|
||||
"ready": True,
|
||||
"source": "ai_alert_card_learning_writeback_refs",
|
||||
"fallback_used": True,
|
||||
"receipt_count": ai_alert_ready_total,
|
||||
"ai_agent_context_receipt_count": max(consumer_ai_agent_count, 1),
|
||||
"ready_target_count": max(consumer_ready_target_count, 1),
|
||||
"target_count": max(consumer_target_count, 1),
|
||||
}
|
||||
|
||||
return {
|
||||
"ready": False,
|
||||
"source": "unavailable",
|
||||
|
||||
Reference in New Issue
Block a user