Actions
User Story #591
openFeature #533: Authentication Hum Rahi
EPIC #587: Epic: E2.2 AI-Powered Server Processing
User Story 3 (BE/AI): Automatic Severity & Response Logic
Start date:
Due date:
% Done:
100%
Estimated time:
(Total: 0:00 h)
Reviewer:
Description
User Story 3 (BE/AI): Automatic Severity & Response Logic¶
Story: As a Police Dispatcher, I want the system to assign a severity level and recommended action, so that I can prioritize life-threatening situations first.
-
In-Scope:
- Rule-based logic combined with AI to assign levels (Critical/High/Medium/Low).
- Mapping categories to actions (e.g., "Accident" + "High Severity" → "Dispatch Ambulance").
- Out-of-Scope: Automatic dispatching of units (recommendation only).
-
Acceptance Criteria (AC):
- Reports with "Fire" or "Injury" detected must be flagged as "Critical" automatically.
- System must generate a text-based "Recommended Action" for the Police Panel.
-
Validation Rules:
- Severity levels restricted to predefined Enum:
[CRITICAL, HIGH, MEDIUM, LOW].
- Severity levels restricted to predefined Enum:
-
Error Messages:
- "Heuristic Error: Unable to determine response action."
- DoD: Logic verified by stakeholders (Police/Akram), code reviewed for edge cases.
Actions