Merge remote-tracking branch 'gitea/main' into codex/p0-006-ai-log-triage-20260709

This commit is contained in:
ogt
2026-07-09 23:29:53 +08:00
2 changed files with 26 additions and 7 deletions

View File

@@ -1519,6 +1519,9 @@ def test_consumer_receipts_close_taxonomy_decision_and_learning_gaps():
executor_log_count_rows=[
{"status": "success", "total": 2141, "recent": 12},
],
alert_operation_count_rows=[
{"event_type": "ALERT_RECEIVED", "total": 28333, "recent": 87},
],
log_controlled_writeback_consumer=_log_controlled_writeback_consumer_readback(),
)
@@ -1581,16 +1584,15 @@ def test_consumer_receipts_close_taxonomy_decision_and_learning_gaps():
alert_noise = readback["alert_noise_reduction"]
assert alert_noise["status"] == "completed"
assert alert_noise["missing_required_stage_ids"] == []
assert alert_noise["rollups"]["raw_alert_received_total"] == 0
assert alert_noise["rollups"]["raw_alert_received_total"] == 28333
assert alert_noise["rollups"]["raw_suppressed_alert_total"] == 0
assert alert_noise["rollups"]["controlled_alert_receipt_chain_fallback_total"] == 1
assert alert_noise["rollups"]["controlled_alert_receipt_chain_fallback_total"] == 0
assert alert_noise["rollups"]["controlled_alert_noise_fallback_total"] == 1
alert_quality = {
item["stage_id"]: item.get("record_quality")
for item in alert_noise["stages"]
}
assert alert_quality["alert_intake_receipts"] == (
"controlled_alert_receipt_chain_fallback"
)
assert alert_quality["alert_intake_receipts"] == "recorded"
assert alert_quality["duplicate_convergence"] == (
"controlled_alert_receipt_chain_fallback"
)