mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2026-06-18 15:29:36 +00:00
- API routers, ACA modules, integrations (draft operators) - Docs, landing pages, scripts (launch readiness, scorecard) - Tests and CI workflow updates for Dealix Co-authored-by: Cursor <cursoragent@cursor.com>
26 lines
1016 B
Python
26 lines
1016 B
Python
"""Incident routing stub (no paging, no secrets)."""
|
||
|
||
from __future__ import annotations
|
||
|
||
from typing import Any
|
||
|
||
|
||
def build_incident_playbook() -> dict[str, Any]:
|
||
return {
|
||
"steps_ar": [
|
||
"تصنيف الخطورة (P0–P3) وفق وصف الحادث.",
|
||
"إيقاف أي إجراء live إن وُجد حتى التحقق.",
|
||
"توثيق الوقت، التأثير، والخطوات المتخذة (بدون أسرار أو PII خام).",
|
||
"إشعار العميل بلغة واضحة وخطة تعافي.",
|
||
"مراجعة لاحقة وتحديث السياسات/الاختبارات إن لزم.",
|
||
],
|
||
"contacts_placeholder_ar": "يُحدَّد في العقد: بريد دعم + قناة طوارئ للـ P0.",
|
||
}
|
||
|
||
|
||
def classify_incident(severity: str) -> dict[str, Any]:
|
||
s = (severity or "P3").upper()
|
||
if s not in {"P0", "P1", "P2", "P3"}:
|
||
s = "P3"
|
||
return {"severity": s, "escalate": s in {"P0", "P1"}}
|