Release community repair routing bundle
Browse filesDeterministic rules artifact for municipal repair ticket routing.
- README.md +22 -0
- release-manifest.json +45 -0
- router/rules.json +42 -0
- validation/acceptance-results.csv +8 -0
- validation/rule-review.csv +9 -0
README.md
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
tags:
|
| 4 |
+
- civic-operations
|
| 5 |
+
- deterministic-routing
|
| 6 |
+
---
|
| 7 |
+
|
| 8 |
+
# Community repair ticket router
|
| 9 |
+
|
| 10 |
+
Release: `repair-router-2026q3`
|
| 11 |
+
|
| 12 |
+
This rule bundle routes municipal repair tickets using an audited, first-match policy.
|
| 13 |
+
|
| 14 |
+
## Release facts
|
| 15 |
+
|
| 16 |
+
- Active queues: 5
|
| 17 |
+
- Source rules reviewed: 8
|
| 18 |
+
- Rules compiled: 4
|
| 19 |
+
- Acceptance cases: 7
|
| 20 |
+
- Default rule: `general`
|
| 21 |
+
|
| 22 |
+
The files under `validation/` document every source-rule decision and every acceptance-case result.
|
release-manifest.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"release_id": "repair-router-2026q3",
|
| 3 |
+
"reviewed_rules": 8,
|
| 4 |
+
"compiled_rules": 4,
|
| 5 |
+
"excluded_rules": 4,
|
| 6 |
+
"active_queues": 5,
|
| 7 |
+
"acceptance_cases": 7,
|
| 8 |
+
"default_rule": "general",
|
| 9 |
+
"queue_case_counts": [
|
| 10 |
+
{
|
| 11 |
+
"queue_id": "SAFETY_DESK",
|
| 12 |
+
"count": 1
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"queue_id": "ACCESS_TEAM",
|
| 16 |
+
"count": 1
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"queue_id": "HARBOR_CREW",
|
| 20 |
+
"count": 2
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"queue_id": "GENERAL_QUEUE",
|
| 24 |
+
"count": 3
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"exclusion_reasons": [
|
| 28 |
+
{
|
| 29 |
+
"reason": "rule_disabled",
|
| 30 |
+
"count": 1
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"reason": "unsupported_predicate",
|
| 34 |
+
"count": 1
|
| 35 |
+
},
|
| 36 |
+
{
|
| 37 |
+
"reason": "queue_not_found",
|
| 38 |
+
"count": 1
|
| 39 |
+
},
|
| 40 |
+
{
|
| 41 |
+
"reason": "queue_not_active",
|
| 42 |
+
"count": 1
|
| 43 |
+
}
|
| 44 |
+
]
|
| 45 |
+
}
|
router/rules.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"release_id": "repair-router-2026q3",
|
| 3 |
+
"evaluation_order": "priority_ascending_then_rule_id_utf8",
|
| 4 |
+
"rules": [
|
| 5 |
+
{
|
| 6 |
+
"rule_id": "electric",
|
| 7 |
+
"priority": 10,
|
| 8 |
+
"field": "category",
|
| 9 |
+
"operator": "equals",
|
| 10 |
+
"value": "electrical",
|
| 11 |
+
"queue_id": "SAFETY_DESK",
|
| 12 |
+
"queue_name": "Electrical Safety Desk"
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"rule_id": "access",
|
| 16 |
+
"priority": 20,
|
| 17 |
+
"field": "accessibility",
|
| 18 |
+
"operator": "equals",
|
| 19 |
+
"value": "yes",
|
| 20 |
+
"queue_id": "ACCESS_TEAM",
|
| 21 |
+
"queue_name": "Accessibility Response Team"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"rule_id": "harbor",
|
| 25 |
+
"priority": 40,
|
| 26 |
+
"field": "district",
|
| 27 |
+
"operator": "equals",
|
| 28 |
+
"value": "Harbor",
|
| 29 |
+
"queue_id": "HARBOR_CREW",
|
| 30 |
+
"queue_name": "Harbor District Crew"
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"rule_id": "general",
|
| 34 |
+
"priority": 90,
|
| 35 |
+
"field": "*",
|
| 36 |
+
"operator": "always",
|
| 37 |
+
"value": "",
|
| 38 |
+
"queue_id": "GENERAL_QUEUE",
|
| 39 |
+
"queue_name": "General Repair Queue"
|
| 40 |
+
}
|
| 41 |
+
]
|
| 42 |
+
}
|
validation/acceptance-results.csv
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
case_id,category,accessibility,age_days,district,matched_rule_id,queue_id,queue_name
|
| 2 |
+
T-101,electrical,no,2,North,electric,SAFETY_DESK,Electrical Safety Desk
|
| 3 |
+
T-102,plumbing,yes,1,West,access,ACCESS_TEAM,Accessibility Response Team
|
| 4 |
+
T-103,plumbing,no,21,Central,general,GENERAL_QUEUE,General Repair Queue
|
| 5 |
+
T-104,graffiti,no,3,Harbor,harbor,HARBOR_CREW,Harbor District Crew
|
| 6 |
+
T-105,structural,no,5,South,general,GENERAL_QUEUE,General Repair Queue
|
| 7 |
+
T-106,water,no,30,Harbor,harbor,HARBOR_CREW,Harbor District Crew
|
| 8 |
+
T-107,plumbing,no,2,North,general,GENERAL_QUEUE,General Repair Queue
|
validation/rule-review.csv
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
rule_id,priority,field,operator,value,queue_id,enabled,queue_name,queue_status,disposition,reason
|
| 2 |
+
electric,10,category,equals,electrical,SAFETY_DESK,true,Electrical Safety Desk,ACTIVE,COMPILED,eligible_rule
|
| 3 |
+
access,20,accessibility,equals,yes,ACCESS_TEAM,true,Accessibility Response Team,ACTIVE,COMPILED,eligible_rule
|
| 4 |
+
aged,30,age_days,gte,14,ESCALATIONS,true,Aged Case Escalations,PAUSED,EXCLUDED,queue_not_active
|
| 5 |
+
harbor,40,district,equals,Harbor,HARBOR_CREW,true,Harbor District Crew,ACTIVE,COMPILED,eligible_rule
|
| 6 |
+
badop,45,category,contains,water,GENERAL_QUEUE,true,General Repair Queue,ACTIVE,EXCLUDED,unsupported_predicate
|
| 7 |
+
disabled-plumbing,50,category,equals,plumbing,GENERAL_QUEUE,false,General Repair Queue,ACTIVE,EXCLUDED,rule_disabled
|
| 8 |
+
general,90,*,always,,GENERAL_QUEUE,true,General Repair Queue,ACTIVE,COMPILED,eligible_rule
|
| 9 |
+
unknown-structural,60,category,equals,structural,MISSING,true,,,EXCLUDED,queue_not_found
|