feat(sre): add 24h automation SLO scorecard

This commit is contained in:
Your Name
2026-07-19 01:47:35 +08:00
parent fa51ab9022
commit 8cd01cb278
5 changed files with 744 additions and 10 deletions

View File

@@ -799,16 +799,29 @@
"title": "24h replay、MTTA/MTTR、誤判、復發與成本 scorecard",
"owner_lane": "AutomationSLO",
"risk": "low",
"status": "planned",
"status": "source_implemented_runtime_pending",
"dependencies": [
"AIA-SRE-015"
],
"source_refs": [],
"source_refs": [
"apps/api/src/services/automation_slo_scorecard.py",
"apps/api/src/services/ai_automation_runtime_contract.py",
"apps/api/src/api/v1/agents.py"
],
"executor": "offline replay worker",
"verifier": "production aggregate versus same-run receipts",
"rollback": "read-only scorecard",
"exit_condition": "all lanes publish MTTA, MTTR, false positive, recurrence, human intervention, verifier and rollback metrics",
"next_action": "replay the latest 24h alert/runs corpus after phase 1 deploy"
"confirmed_truth": [
"read-only scorecard executes three project-scoped aggregate queries for incident lifecycle, AwoooP runs and provider budget receipts",
"global and per-lane projections publish MTTA, MTTR, false-positive, recurrence, human-intervention, verifier-pass, rollback, freshness and asset-coverage metrics",
"run projection separates total, non-shadow, controlled-with-steps, completed and failed runs while provider projection preserves call, token and cost totals",
"missing samples, classifications, verifier evidence or freshness denominators remain partial/no-runtime-sample and cannot report runtime closure"
],
"runtime_gaps": [
"the exact source revision is not deployed and no production 24h aggregate has been compared with same-run receipts or recipient-visible scorecard readback"
],
"next_action": "deploy one exact source revision through the authorized release lane, read /api/v1/agents/sre-automation-slo-scorecard-24h after a complete 24h window, compare aggregate counts with same-run receipts and keep any missing denominator partial"
},
{
"id": "AIA-SRE-017",
@@ -897,10 +910,10 @@
"P1": 2
},
"by_status": {
"source_implemented_runtime_pending": 15,
"planned": 3
"source_implemented_runtime_pending": 16,
"planned": 2
},
"source_implemented_items": 15,
"source_implemented_items": 16,
"runtime_closed_items": 0,
"program_completion_percent": 0,
"asset_coverage_status": "partial",