File size: 73,214 Bytes
b89c8aa
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
{
  "schema_version": "1.0",
  "archetypes": [
    {
      "archetype_id": "refund_missing_order_id",
      "display_name": "Refund Request β€” Missing Order ID",
      "difficulty": "easy",
      "visible_template": {
        "subject_pattern": "Refund request for {product_name}",
        "body_pattern": "Hi, I need a refund for my recent purchase of {product_name}. I was charged ${charge_amount} on {charge_date} but the product {refund_reason}. Please process this refund as soon as possible. Thanks, {customer_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hi, I need a refund for my recent purchase of {product_name}. I was charged ${charge_amount} on {charge_date} but the product {refund_reason}. Please process this refund as soon as possible. Thanks, {customer_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": []
      },
      "hidden_truth": {
        "customer_tier": "pro",
        "source_channel": "customer_email",
        "issue_family": "billing",
        "issue_subtype": "refund",
        "product_area": "billing_portal",
        "impact": "single_user",
        "urgency": "medium",
        "required_queue": "refund_team",
        "required_missing_fields": ["order_id"],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["req_order_id", "close_billing_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "refund_missing_order_id",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_billing_refund", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "check_order_id", "checkpoint": false},
          {"id": "request_info_order_id", "checkpoint": true},
          {"id": "receive_reply", "checkpoint": false},
          {"id": "route_refund_team", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_billing_refund", "guard": null},
          {"from": "classify_billing_refund", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "check_order_id", "guard": null},
          {"from": "check_order_id", "to": "request_info_order_id", "guard": "missing_order_id"},
          {"from": "request_info_order_id", "to": "receive_reply", "guard": null},
          {"from": "receive_reply", "to": "route_refund_team", "guard": "info_received"},
          {"from": "route_refund_team", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "order_id": ["ORD-20260315-001", "ORD-20260320-042", "ORD-20260325-017", "ORD-20260401-088", "ORD-20260310-005"],
        "product_name": ["Cloud Pro Plan", "Enterprise Suite", "API Access Bundle", "Data Storage Addon", "Analytics Dashboard"],
        "charge_amount": ["49.99", "99.00", "199.99", "29.95", "149.00"],
        "charge_date": ["2026-03-15", "2026-03-20", "2026-03-25", "2026-04-01", "2026-03-10"],
        "refund_reason": ["did not work as expected", "was never delivered", "was charged twice", "does not match the description", "has a known defect"],
        "customer_name": ["Alice Johnson", "Bob Martinez", "Carol Wang", "David Kim", "Eve Patel"],
        "customer_name_lower": ["alice.johnson", "bob.martinez", "carol.wang", "david.kim", "eve.patel"],
        "email_domain": ["example.com", "corpmail.net", "techfirm.io", "startup.co", "enterprise.org"]
      }
    },
    {
      "archetype_id": "failed_invoice_charge_dispute",
      "display_name": "Failed Invoice / Charge Dispute",
      "difficulty": "easy",
      "visible_template": {
        "subject_pattern": "Invoice #{invoice_number} β€” charge dispute",
        "body_pattern": "Hello Support, I noticed an incorrect charge on invoice #{invoice_number} for the billing period {billing_period}. The amount of ${disputed_amount} does not match our agreement. Our account is under {company_name}. Please review and correct this. Regards, {customer_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": ["invoice_{invoice_number}.pdf"],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hello Support, I noticed an incorrect charge on invoice #{invoice_number} for the billing period {billing_period}. The amount of ${disputed_amount} does not match our agreement. Our account is under {company_name}. Please review and correct this. Regards, {customer_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": [
          "Customer has active {plan_type} subscription. Invoice {invoice_number} attached."
        ]
      },
      "hidden_truth": {
        "customer_tier": "pro",
        "source_channel": "customer_email",
        "issue_family": "billing",
        "issue_subtype": "invoice_error",
        "product_area": "billing_portal",
        "impact": "single_user",
        "urgency": "low",
        "required_queue": "billing_team",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_billing_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "failed_invoice_charge_dispute",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_billing_invoice", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "route_billing_team", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_billing_invoice", "guard": null},
          {"from": "classify_billing_invoice", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "route_billing_team", "guard": null},
          {"from": "route_billing_team", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "invoice_number": ["INV-20260301", "INV-20260215", "INV-20260401", "INV-20260115", "INV-20260320"],
        "billing_period": ["March 2026", "February 2026", "Q1 2026", "January 2026", "April 2026"],
        "disputed_amount": ["250.00", "1200.00", "499.99", "75.00", "3500.00"],
        "company_name": ["Acme Corp", "TechStart Inc", "Globex Ltd", "Initech Solutions", "Umbrella Co"],
        "customer_name": ["Frank Lee", "Grace Chen", "Hiro Tanaka", "Irene Novak", "James Wright"],
        "customer_name_lower": ["frank.lee", "grace.chen", "hiro.tanaka", "irene.novak", "james.wright"],
        "email_domain": ["acmecorp.com", "techstart.io", "globex.co.uk", "initech.com", "umbrella.net"],
        "plan_type": ["Pro", "Business", "Enterprise", "Starter", "Growth"]
      }
    },
    {
      "archetype_id": "password_reset_account_lockout",
      "display_name": "Password Reset / Account Lockout",
      "difficulty": "medium",
      "visible_template": {
        "subject_pattern": "URGENT: Account locked β€” cannot access {service_name}",
        "body_pattern": "Hi, my account has been locked after {lockout_reason}. I need to regain access urgently as I have {business_justification}. Please help. β€” {customer_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hi, my account has been locked after {lockout_reason}. I need to regain access urgently as I have {business_justification}. Please help. β€” {customer_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": [
          "Account flagged as locked in auth system. Verification required before unlock."
        ]
      },
      "hidden_truth": {
        "customer_tier": "pro",
        "source_channel": "customer_email",
        "issue_family": "account",
        "issue_subtype": "account_lockout",
        "product_area": "auth_system",
        "impact": "single_user",
        "urgency": "high",
        "required_queue": "account_team",
        "required_missing_fields": ["registered_email", "last_four_payment"],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["req_account_verification", "close_account_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "password_reset_account_lockout",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_account_lockout", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "request_account_verification", "checkpoint": true},
          {"id": "receive_verification", "checkpoint": false},
          {"id": "route_account_team", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_account_lockout", "guard": null},
          {"from": "classify_account_lockout", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "request_account_verification", "guard": "missing_verification"},
          {"from": "request_account_verification", "to": "receive_verification", "guard": null},
          {"from": "receive_verification", "to": "route_account_team", "guard": "info_received"},
          {"from": "route_account_team", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "registered_email": ["karen.singh@example.com", "leo.fernandez@corpmail.net", "maya.thompson@techfirm.io", "nick.okafor@startup.co", "olivia.berg@enterprise.org"],
        "last_four_payment": ["4242", "1234", "5678", "9012", "3456"],
        "service_name": ["Dashboard", "Admin Portal", "API Console", "Analytics Hub", "Developer Studio"],
        "lockout_reason": ["multiple failed login attempts", "a password expiry", "a suspicious activity flag", "an MFA device reset", "a security policy change"],
        "business_justification": ["a client demo in 2 hours", "a production deploy pending", "quarterly reports due today", "a board meeting tomorrow", "an audit deadline this week"],
        "customer_name": ["Karen Singh", "Leo Fernandez", "Maya Thompson", "Nick Okafor", "Olivia Berg"],
        "customer_name_lower": ["karen.singh", "leo.fernandez", "maya.thompson", "nick.okafor", "olivia.berg"],
        "email_domain": ["example.com", "corpmail.net", "techfirm.io", "startup.co", "enterprise.org"]
      }
    },
    {
      "archetype_id": "sso_login_issue",
      "display_name": "SSO Login Issue",
      "difficulty": "medium",
      "visible_template": {
        "subject_pattern": "SSO login failing for {sso_provider} integration",
        "body_pattern": "We are unable to log in via SSO using {sso_provider}. Our tenant ID is {tenant_id}. The error message says \"{error_message}\". This started happening {onset_description}. Can you investigate? β€” {customer_name}, {company_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "We are unable to log in via SSO using {sso_provider}. Our tenant ID is {tenant_id}. The error message says \"{error_message}\". This started happening {onset_description}. Can you investigate? β€” {customer_name}, {company_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": [
          "Tenant {tenant_id} uses {sso_provider} SSO. Config last verified {config_date}."
        ]
      },
      "hidden_truth": {
        "customer_tier": "enterprise",
        "source_channel": "customer_email",
        "issue_family": "account",
        "issue_subtype": "sso_issue",
        "product_area": "auth_system",
        "impact": "team",
        "urgency": "medium",
        "required_queue": "account_team",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_account_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "sso_login_issue",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_account_sso", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "route_account_team", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_account_sso", "guard": null},
          {"from": "classify_account_sso", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "route_account_team", "guard": null},
          {"from": "route_account_team", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "sso_provider": ["Okta", "Azure AD", "Google Workspace", "OneLogin", "Auth0"],
        "tenant_id": ["tenant-abc123", "tenant-xyz789", "tenant-def456", "tenant-ghi012", "tenant-jkl345"],
        "error_message": ["SAML assertion invalid", "Identity provider unreachable", "Token expired during handshake", "Attribute mapping mismatch", "Certificate validation failed"],
        "onset_description": ["after our IdP certificate rotation yesterday", "this morning without any changes on our side", "after we upgraded to the new SSO connector", "intermittently over the past week", "right after our IT team updated firewall rules"],
        "customer_name": ["Pat Rivera", "Quinn Zhang", "Rosa Andersson", "Sam Dubois", "Tanya Kuznetsova"],
        "customer_name_lower": ["pat.rivera", "quinn.zhang", "rosa.andersson", "sam.dubois", "tanya.kuznetsova"],
        "email_domain": ["bigcorp.com", "fintech.io", "healthsys.org", "retailco.net", "edtech.edu"],
        "company_name": ["BigCorp", "FinTech Inc", "HealthSys", "RetailCo", "EdTech Academy"],
        "config_date": ["2026-02-15", "2026-01-30", "2026-03-01", "2025-12-20", "2026-03-10"]
      }
    },
    {
      "archetype_id": "api_key_failure",
      "display_name": "API Key / Endpoint Failure",
      "difficulty": "medium",
      "visible_template": {
        "subject_pattern": "API integration failing β€” need help",
        "body_pattern": "Our integration with your API has been failing since {onset_description}. We are on the {plan_type} plan. This is blocking {business_impact}. Can you help us debug this? β€” {customer_name}, {company_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Our integration with your API has been failing since {onset_description}. We are on the {plan_type} plan. This is blocking {business_impact}. Can you help us debug this? β€” {customer_name}, {company_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": [
          "Customer on {plan_type} plan. API key active. No recent outages reported."
        ]
      },
      "hidden_truth": {
        "customer_tier": "pro",
        "source_channel": "customer_email",
        "issue_family": "technical",
        "issue_subtype": "api_error",
        "product_area": "api_platform",
        "impact": "single_user",
        "urgency": "high",
        "required_queue": "tech_support_l1",
        "required_missing_fields": ["api_endpoint", "error_code", "request_id"],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["req_api_details", "close_technical_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "api_key_failure",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_technical_api", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "request_api_details", "checkpoint": true},
          {"id": "receive_api_details", "checkpoint": false},
          {"id": "route_tech_l1", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_technical_api", "guard": null},
          {"from": "classify_technical_api", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "request_api_details", "guard": "missing_api_details"},
          {"from": "request_api_details", "to": "receive_api_details", "guard": null},
          {"from": "receive_api_details", "to": "route_tech_l1", "guard": "info_received"},
          {"from": "route_tech_l1", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "api_endpoint": ["/v2/users", "/v2/billing", "/v1/analytics", "/v2/webhooks", "/v2/exports"],
        "error_code": ["401", "403", "429", "500", "503"],
        "request_id": ["req-a1b2c3", "req-d4e5f6", "req-g7h8i9", "req-j0k1l2", "req-m3n4o5"],
        "onset_description": ["after we rotated our API keys", "this morning without any changes", "intermittently over the last 3 days", "after upgrading to your new SDK version", "following our DNS migration"],
        "plan_type": ["Pro", "Business", "Growth", "Starter", "Enterprise"],
        "business_impact": ["our production pipeline", "customer-facing reports", "automated billing sync", "real-time dashboards", "nightly data exports"],
        "customer_name": ["Uma Patel", "Victor Reyes", "Wendy Liu", "Xavier Dumont", "Yuki Sato"],
        "customer_name_lower": ["uma.patel", "victor.reyes", "wendy.liu", "xavier.dumont", "yuki.sato"],
        "email_domain": ["saasapp.io", "devtools.com", "cloudops.net", "dataflow.co", "integrations.dev"],
        "company_name": ["SaasApp", "DevTools Inc", "CloudOps", "DataFlow", "Integrations Co"]
      }
    },
    {
      "archetype_id": "integration_outage",
      "display_name": "Integration Outage β€” Org-Wide",
      "difficulty": "hard",
      "visible_template": {
        "subject_pattern": "{integration_name} integration down β€” affecting entire org",
        "body_pattern": "Our {integration_name} integration has been completely down since {outage_start}. All {affected_user_count} users in our organization are affected. We're seeing error \"{error_message}\" across all endpoints. This is critical β€” we have {business_context}. Immediate escalation requested. β€” {customer_name}, {role_title}, {company_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": ["error_log_{integration_name_lower}.txt"],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Our {integration_name} integration has been completely down since {outage_start}. All {affected_user_count} users in our organization are affected.",
            "timestamp_offset_minutes": 0
          },
          {
            "role": "customer",
            "content_pattern": "We're seeing error \"{error_message}\" across all endpoints. This is critical β€” we have {business_context}. Immediate escalation requested. β€” {customer_name}, {role_title}, {company_name}",
            "timestamp_offset_minutes": 15
          },
          {
            "role": "internal_note",
            "content_pattern": "Monitoring confirms elevated error rates on {integration_name_lower} connector since {outage_start}. No deploy in the last 24h.",
            "timestamp_offset_minutes": 20
          }
        ],
        "internal_notes_pattern": [
          "Enterprise customer. {integration_name} connector last healthy {last_healthy}.",
          "Monitoring alert already fired for {integration_name_lower} β€” see incident #{incident_id}."
        ]
      },
      "hidden_truth": {
        "customer_tier": "enterprise",
        "source_channel": "customer_email",
        "issue_family": "technical",
        "issue_subtype": "integration_failure",
        "product_area": "integrations_platform",
        "impact": "org_wide",
        "urgency": "critical",
        "required_queue": "tech_support_l1",
        "required_missing_fields": [],
        "escalation_required": true,
        "escalation_target": "tech_support_l2",
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_technical_resolved"],
        "gold_terminal_status": "escalated",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "integration_outage",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "inspect_thread_history", "checkpoint": false},
          {"id": "classify_technical_integration", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "route_tech_l1", "checkpoint": true},
          {"id": "escalate_tech_l2", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "inspect_thread_history", "guard": null},
          {"from": "inspect_thread_history", "to": "classify_technical_integration", "guard": null},
          {"from": "classify_technical_integration", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "route_tech_l1", "guard": "classification_set"},
          {"from": "route_tech_l1", "to": "escalate_tech_l2", "guard": "escalation_required"}
        ],
        "entry_node": "new",
        "terminal_nodes": ["escalate_tech_l2"]
      },
      "variation_parameters": {
        "integration_name": ["Salesforce", "Slack", "Jira", "HubSpot", "Zendesk"],
        "integration_name_lower": ["salesforce", "slack", "jira", "hubspot", "zendesk"],
        "outage_start": ["2026-04-05T06:00:00Z", "2026-04-04T22:30:00Z", "2026-04-05T09:15:00Z", "2026-04-05T03:00:00Z", "2026-04-04T18:45:00Z"],
        "affected_user_count": ["150", "320", "85", "500", "210"],
        "error_message": ["Connection refused by remote host", "OAuth token refresh failed", "Rate limit exceeded β€” circuit breaker open", "TLS handshake timeout", "502 Bad Gateway from upstream"],
        "business_context": ["a product launch tomorrow", "quarterly close happening now", "an enterprise client demo in 1 hour", "regulatory reporting due today", "a critical data migration underway"],
        "customer_name": ["Zara Mitchell", "Aiden Brooks", "Bianca Rossi", "Carlos Mendes", "Diana Osei"],
        "customer_name_lower": ["zara.mitchell", "aiden.brooks", "bianca.rossi", "carlos.mendes", "diana.osei"],
        "email_domain": ["megacorp.com", "globaltech.io", "finserv.net", "retailgiant.com", "healthcloud.org"],
        "company_name": ["MegaCorp", "GlobalTech", "FinServ", "RetailGiant", "HealthCloud"],
        "role_title": ["VP Engineering", "CTO", "Director of IT", "Head of Platform", "Lead Architect"],
        "last_healthy": ["2026-04-04T23:59:00Z", "2026-04-04T17:00:00Z", "2026-04-05T05:45:00Z", "2026-04-04T12:00:00Z", "2026-04-04T20:30:00Z"],
        "incident_id": ["INC-4401", "INC-4402", "INC-4403", "INC-4404", "INC-4405"]
      }
    },
    {
      "archetype_id": "suspicious_login_security_review",
      "display_name": "Suspicious Login β€” Security Review",
      "difficulty": "hard",
      "visible_template": {
        "subject_pattern": "Suspicious login detected on one of our accounts",
        "body_pattern": "We detected an unusual login on one of our organization accounts. The login originated from an unfamiliar location and we are concerned about unauthorized access. This needs immediate investigation. β€” {customer_name}, {company_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "We detected an unusual login on one of our organization accounts. The login originated from an unfamiliar location and we are concerned about unauthorized access.",
            "timestamp_offset_minutes": 0
          },
          {
            "role": "customer",
            "content_pattern": "This needs immediate investigation. Multiple team members have reported being unable to access their sessions. β€” {customer_name}, {company_name}",
            "timestamp_offset_minutes": 10
          },
          {
            "role": "internal_note",
            "content_pattern": "Auth system flagged anomalous login pattern. Geo mismatch detected.",
            "timestamp_offset_minutes": 15
          }
        ],
        "internal_notes_pattern": [
          "Security alert triggered. Investigation pending.",
          "Customer is enterprise tier. Expedited response required."
        ]
      },
      "hidden_truth": {
        "customer_tier": "enterprise",
        "source_channel": "customer_email",
        "issue_family": "security",
        "issue_subtype": "suspicious_login",
        "product_area": "auth_system",
        "impact": "org_wide",
        "urgency": "high",
        "required_queue": "account_team",
        "required_missing_fields": ["ip_address", "incident_timestamp", "affected_account"],
        "escalation_required": true,
        "escalation_target": "security_team",
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["req_security_details", "close_security_resolved"],
        "gold_terminal_status": "escalated",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "suspicious_login_security_review",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "inspect_thread_history", "checkpoint": false},
          {"id": "classify_security_suspicious_login", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "request_security_details", "checkpoint": true},
          {"id": "receive_security_details", "checkpoint": false},
          {"id": "route_account_team", "checkpoint": true},
          {"id": "escalate_security_team", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "inspect_thread_history", "guard": null},
          {"from": "inspect_thread_history", "to": "classify_security_suspicious_login", "guard": null},
          {"from": "classify_security_suspicious_login", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "request_security_details", "guard": "missing_security_details"},
          {"from": "request_security_details", "to": "receive_security_details", "guard": null},
          {"from": "receive_security_details", "to": "route_account_team", "guard": "info_received"},
          {"from": "route_account_team", "to": "escalate_security_team", "guard": "escalation_required"}
        ],
        "entry_node": "new",
        "terminal_nodes": ["escalate_security_team"]
      },
      "variation_parameters": {
        "ip_address": ["203.0.113.42", "198.51.100.17", "192.0.2.88", "203.0.113.99", "198.51.100.200"],
        "incident_timestamp": ["2026-04-05T02:15:00Z", "2026-04-04T23:45:00Z", "2026-04-05T06:30:00Z", "2026-04-05T01:00:00Z", "2026-04-04T19:20:00Z"],
        "affected_account": ["admin@bigcorp.com", "security@fintech.io", "ops@healthsys.org", "root@retailco.net", "sysadmin@edtech.edu"],
        "customer_name": ["Fiona Grant", "George Akbar", "Hannah Lund", "Ivan Petrov", "Jia Li"],
        "customer_name_lower": ["fiona.grant", "george.akbar", "hannah.lund", "ivan.petrov", "jia.li"],
        "email_domain": ["bigcorp.com", "fintech.io", "healthsys.org", "retailco.net", "edtech.edu"],
        "company_name": ["BigCorp", "FinTech Inc", "HealthSys", "RetailCo", "EdTech Academy"]
      }
    },
    {
      "archetype_id": "shipment_tracking_problem",
      "display_name": "Shipment Tracking Problem",
      "difficulty": "medium",
      "visible_template": {
        "subject_pattern": "Tracking not updating for order {order_ref}",
        "body_pattern": "Hi, I ordered {product_description} and the tracking for my shipment has not updated since {last_update_date}. Can you check what is going on? Thanks, {customer_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hi, I ordered {product_description} and the tracking for my shipment has not updated since {last_update_date}. Can you check what is going on? Thanks, {customer_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": []
      },
      "hidden_truth": {
        "customer_tier": "free",
        "source_channel": "customer_email",
        "issue_family": "shipping",
        "issue_subtype": "tracking_problem",
        "product_area": "logistics",
        "impact": "single_user",
        "urgency": "low",
        "required_queue": "shipping_team",
        "required_missing_fields": ["tracking_number", "shipping_address"],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["req_shipping_details", "close_shipping_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "shipment_tracking_problem",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_shipping_tracking", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "request_shipping_details", "checkpoint": true},
          {"id": "receive_shipping_details", "checkpoint": false},
          {"id": "route_shipping_team", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_shipping_tracking", "guard": null},
          {"from": "classify_shipping_tracking", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "request_shipping_details", "guard": "missing_shipping_details"},
          {"from": "request_shipping_details", "to": "receive_shipping_details", "guard": null},
          {"from": "receive_shipping_details", "to": "route_shipping_team", "guard": "info_received"},
          {"from": "route_shipping_team", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "tracking_number": ["TRK-9981234", "TRK-7765432", "TRK-5549876", "TRK-3321098", "TRK-1107654"],
        "shipping_address": ["123 Main St, Austin TX 78701", "456 Oak Ave, Portland OR 97201", "789 Pine Rd, Denver CO 80201", "321 Elm Blvd, Seattle WA 98101", "654 Cedar Ln, Chicago IL 60601"],
        "order_ref": ["SHP-20260401-A", "SHP-20260328-B", "SHP-20260325-C", "SHP-20260330-D", "SHP-20260402-E"],
        "product_description": ["a wireless keyboard", "a monitor stand", "a USB-C hub", "a laptop sleeve", "a webcam"],
        "last_update_date": ["2026-03-30", "2026-03-28", "2026-04-01", "2026-03-25", "2026-04-02"],
        "customer_name": ["Kenji Mori", "Lara Schmidt", "Miguel Torres", "Nadia Volkov", "Oscar Bjork"],
        "customer_name_lower": ["kenji.mori", "lara.schmidt", "miguel.torres", "nadia.volkov", "oscar.bjork"],
        "email_domain": ["gmail.com", "outlook.com", "yahoo.com", "protonmail.com", "icloud.com"]
      }
    },
    {
      "archetype_id": "duplicate_complaint",
      "display_name": "Duplicate Complaint β€” Failed Charge",
      "difficulty": "medium",
      "visible_template": {
        "subject_pattern": "RE: Charge failed AGAIN β€” {product_name}",
        "body_pattern": "This is the second time I am writing about a failed charge for {product_name}. I already submitted ticket {original_ticket_id} about this same issue. The charge of ${charge_amount} on {charge_date} is still not resolved. β€” {customer_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "This is the second time I am writing about a failed charge for {product_name}. I already submitted ticket {original_ticket_id} about this same issue.",
            "timestamp_offset_minutes": 0
          },
          {
            "role": "customer",
            "content_pattern": "The charge of ${charge_amount} on {charge_date} is still not resolved. β€” {customer_name}",
            "timestamp_offset_minutes": 5
          }
        ],
        "internal_notes_pattern": [
          "Possible duplicate of {original_ticket_id}. Verify before merging."
        ]
      },
      "hidden_truth": {
        "customer_tier": "pro",
        "source_channel": "customer_email",
        "issue_family": "billing",
        "issue_subtype": "failed_charge",
        "product_area": "billing_portal",
        "impact": "single_user",
        "urgency": "medium",
        "required_queue": "billing_team",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": true,
        "duplicate_of": "{original_ticket_id}",
        "correct_template_ids": ["close_duplicate"],
        "gold_terminal_status": "merged",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "duplicate_complaint",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_billing_failed_charge", "checkpoint": true},
          {"id": "identify_duplicate", "checkpoint": true},
          {"id": "merge_duplicate", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_billing_failed_charge", "guard": null},
          {"from": "classify_billing_failed_charge", "to": "identify_duplicate", "guard": null},
          {"from": "identify_duplicate", "to": "merge_duplicate", "guard": "duplicate_confirmed"}
        ],
        "entry_node": "new",
        "terminal_nodes": ["merge_duplicate"]
      },
      "variation_parameters": {
        "original_ticket_id": ["T-20260401-001", "T-20260328-042", "T-20260325-017", "T-20260330-088", "T-20260402-005"],
        "product_name": ["Cloud Pro Plan", "Enterprise Suite", "API Access Bundle", "Data Storage Addon", "Analytics Dashboard"],
        "charge_amount": ["49.99", "99.00", "199.99", "29.95", "149.00"],
        "charge_date": ["2026-03-15", "2026-03-20", "2026-03-25", "2026-04-01", "2026-03-10"],
        "customer_name": ["Paula Diaz", "Raj Kapoor", "Sofia Engstrom", "Tariq Hassan", "Uma Okonkwo"],
        "customer_name_lower": ["paula.diaz", "raj.kapoor", "sofia.engstrom", "tariq.hassan", "uma.okonkwo"],
        "email_domain": ["example.com", "corpmail.net", "techfirm.io", "startup.co", "enterprise.org"]
      }
    },
    {
      "archetype_id": "spam_marketing_email",
      "display_name": "Spam / Marketing Email",
      "difficulty": "easy",
      "visible_template": {
        "subject_pattern": "{spam_subject}",
        "body_pattern": "{spam_body} β€” {sender_name}",
        "sender_pattern": "{sender_name_lower}@{spam_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "{spam_body} β€” {sender_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": []
      },
      "hidden_truth": {
        "customer_tier": "free",
        "source_channel": "customer_email",
        "issue_family": "billing",
        "issue_subtype": "failed_charge",
        "product_area": "unknown",
        "impact": "single_user",
        "urgency": "low",
        "required_queue": "spam_filter",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_spam"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": "spam_marketing"
      },
      "sop_graph": {
        "graph_id": "spam_marketing_email",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "identify_spam", "checkpoint": true},
          {"id": "close_non_actionable", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "identify_spam", "guard": null},
          {"from": "identify_spam", "to": "close_non_actionable", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_non_actionable"]
      },
      "variation_parameters": {
        "spam_subject": ["EXCLUSIVE OFFER β€” 90% OFF!", "You have been selected for a FREE trial!", "LIMITED TIME: Boost your revenue now!", "Congratulations! Claim your prize today!", "Act now β€” special partnership opportunity!"],
        "spam_body": ["Dear valued customer, we have an exclusive offer just for you. Click here to claim your discount on premium services. This offer expires in 24 hours", "Hi there! You have been pre-approved for our new marketing suite. Reply YES to get started with a free 30-day trial of our growth platform", "We noticed your business could use a boost. Our AI-powered marketing tool can triple your leads in just 7 days. Schedule a demo today", "Congratulations on being selected! We are offering a limited partnership to qualified businesses. Contact us immediately to secure your spot", "Dear sir/madam, we represent a consortium of investors interested in your platform. Please reply with your bank details to proceed with the partnership"],
        "sender_name": ["Marketing Team", "Special Offers", "Business Growth", "Partner Network", "Sales Division"],
        "sender_name_lower": ["marketing.team", "special.offers", "business.growth", "partner.network", "sales.division"],
        "spam_domain": ["promo-deals.xyz", "offer-hub.click", "growth-boost.biz", "partner-leads.info", "revenue-max.top"]
      }
    },
    {
      "archetype_id": "benign_expected_behavior",
      "display_name": "Benign Expected Behavior",
      "difficulty": "easy",
      "visible_template": {
        "subject_pattern": "Bug? {feature_name} is not working as I expected",
        "body_pattern": "Hi, I noticed that {feature_name} does {observed_behavior}. I expected it to {expected_behavior}. Is this a bug or am I missing something? β€” {customer_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hi, I noticed that {feature_name} does {observed_behavior}. I expected it to {expected_behavior}. Is this a bug or am I missing something? β€” {customer_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": [
          "Behavior described is expected per {doc_reference}. No action needed."
        ]
      },
      "hidden_truth": {
        "customer_tier": "free",
        "source_channel": "customer_email",
        "issue_family": "technical",
        "issue_subtype": "bug_report",
        "product_area": "product_features",
        "impact": "single_user",
        "urgency": "low",
        "required_queue": "spam_filter",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_benign_expected"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": "benign_expected"
      },
      "sop_graph": {
        "graph_id": "benign_expected_behavior",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "identify_expected_behavior", "checkpoint": true},
          {"id": "close_non_actionable", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "identify_expected_behavior", "guard": null},
          {"from": "identify_expected_behavior", "to": "close_non_actionable", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_non_actionable"]
      },
      "variation_parameters": {
        "feature_name": ["the export button", "date filtering", "the notification bell", "dashboard refresh", "the search bar"],
        "observed_behavior": ["exports only the current page of results", "resets to the current month after page refresh", "shows a badge even after I clicked it", "takes about 10 seconds to update", "only matches exact phrases"],
        "expected_behavior": ["export all results at once", "remember my selected date range", "clear the badge once clicked", "update instantly", "support fuzzy or partial matching"],
        "customer_name": ["Vivian Cole", "Wesley Tan", "Xena Park", "Yosef Abadi", "Zoe Franklin"],
        "customer_name_lower": ["vivian.cole", "wesley.tan", "xena.park", "yosef.abadi", "zoe.franklin"],
        "email_domain": ["gmail.com", "outlook.com", "yahoo.com", "protonmail.com", "icloud.com"],
        "doc_reference": ["KB-1042 Export Pagination", "KB-2015 Date Filter Behavior", "KB-3008 Notification Badge Logic", "KB-4001 Dashboard Refresh Interval", "KB-5023 Search Matching Rules"]
      }
    },
    {
      "archetype_id": "automation_false_positive",
      "display_name": "Automation False Positive",
      "difficulty": "easy",
      "visible_template": {
        "subject_pattern": "[ALERT] {alert_name} triggered for {monitored_service}",
        "body_pattern": "Automated alert: {alert_name} was triggered for {monitored_service} at {alert_timestamp}. Severity: {alert_severity}. Threshold: {threshold_description}.",
        "sender_pattern": "monitoring@{system_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "system",
            "content_pattern": "Automated alert: {alert_name} was triggered for {monitored_service} at {alert_timestamp}. Severity: {alert_severity}. Threshold: {threshold_description}.",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": [
          "Alert confirmed as false positive. Metric returned to normal within 2 minutes. No customer impact."
        ]
      },
      "hidden_truth": {
        "customer_tier": "internal",
        "source_channel": "monitoring_alert",
        "issue_family": "technical",
        "issue_subtype": "bug_report",
        "product_area": "monitoring",
        "impact": "single_user",
        "urgency": "low",
        "required_queue": "spam_filter",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_false_positive"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": "automation_false_positive"
      },
      "sop_graph": {
        "graph_id": "automation_false_positive",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "identify_false_positive", "checkpoint": true},
          {"id": "close_non_actionable", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "identify_false_positive", "guard": null},
          {"from": "identify_false_positive", "to": "close_non_actionable", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_non_actionable"]
      },
      "variation_parameters": {
        "alert_name": ["High CPU Usage", "Memory Pressure Warning", "Disk I/O Spike", "Network Latency Alert", "Error Rate Threshold"],
        "monitored_service": ["api-gateway-prod", "auth-service-prod", "billing-worker-prod", "search-indexer-prod", "notification-relay-prod"],
        "alert_timestamp": ["2026-04-05T03:12:00Z", "2026-04-05T07:45:00Z", "2026-04-04T22:30:00Z", "2026-04-05T11:00:00Z", "2026-04-05T01:15:00Z"],
        "alert_severity": ["warning", "critical", "warning", "info", "warning"],
        "threshold_description": ["CPU > 90% for 1 minute", "Memory > 85% for 5 minutes", "Disk IOPS > 10000 for 30 seconds", "P99 latency > 500ms for 2 minutes", "Error rate > 5% for 1 minute"],
        "system_domain": ["internal.platform.io", "ops.platform.io", "alerts.platform.io", "monitoring.platform.io", "infra.platform.io"]
      }
    },
    {
      "archetype_id": "data_error_generated_ticket",
      "display_name": "Data Error Generated Ticket",
      "difficulty": "easy",
      "visible_template": {
        "subject_pattern": "[AUTO] Data sync error β€” {sync_source} to {sync_target}",
        "body_pattern": "An automated data sync from {sync_source} to {sync_target} generated an error at {error_timestamp}. Error: {error_detail}. This ticket was auto-created by the sync pipeline.",
        "sender_pattern": "data-pipeline@{system_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "system",
            "content_pattern": "An automated data sync from {sync_source} to {sync_target} generated an error at {error_timestamp}. Error: {error_detail}. This ticket was auto-created by the sync pipeline.",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": [
          "Data pipeline auto-generated. Error was transient β€” next sync succeeded. No manual action needed."
        ]
      },
      "hidden_truth": {
        "customer_tier": "internal",
        "source_channel": "internal_report",
        "issue_family": "technical",
        "issue_subtype": "bug_report",
        "product_area": "data_pipeline",
        "impact": "single_user",
        "urgency": "low",
        "required_queue": "spam_filter",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_data_error"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": "data_error"
      },
      "sop_graph": {
        "graph_id": "data_error_generated_ticket",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "identify_data_error", "checkpoint": true},
          {"id": "close_non_actionable", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "identify_data_error", "guard": null},
          {"from": "identify_data_error", "to": "close_non_actionable", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_non_actionable"]
      },
      "variation_parameters": {
        "sync_source": ["CRM", "Billing DB", "User Directory", "Analytics Warehouse", "Inventory System"],
        "sync_target": ["Data Lake", "Reporting DB", "Search Index", "Audit Log", "Cache Layer"],
        "error_timestamp": ["2026-04-05T04:00:00Z", "2026-04-05T08:30:00Z", "2026-04-04T23:15:00Z", "2026-04-05T12:00:00Z", "2026-04-05T02:45:00Z"],
        "error_detail": ["Row count mismatch: expected 1000, got 998", "Timeout connecting to target β€” retried successfully", "Schema drift detected on column 'updated_at'", "Duplicate key violation on batch insert", "Stale checkpoint β€” resynced from last known good state"],
        "system_domain": ["internal.platform.io", "ops.platform.io", "data.platform.io", "sync.platform.io", "pipeline.platform.io"]
      }
    },
    {
      "archetype_id": "feature_request_misfiled_as_support",
      "display_name": "Feature Request Misfiled as Support",
      "difficulty": "easy",
      "visible_template": {
        "subject_pattern": "Request: {feature_description}",
        "body_pattern": "Hi team, I would really like to see {feature_description} added to {product_area_name}. Currently I have to {current_workaround} which is time-consuming. This would save our team a lot of effort. Thanks, {customer_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hi team, I would really like to see {feature_description} added to {product_area_name}. Currently I have to {current_workaround} which is time-consuming. This would save our team a lot of effort. Thanks, {customer_name}",
            "timestamp_offset_minutes": 0
          }
        ],
        "internal_notes_pattern": []
      },
      "hidden_truth": {
        "customer_tier": "pro",
        "source_channel": "customer_email",
        "issue_family": "technical",
        "issue_subtype": "bug_report",
        "product_area": "product_features",
        "impact": "single_user",
        "urgency": "low",
        "required_queue": "sales_or_feature_requests",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_feature_request"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "feature_request_misfiled_as_support",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "identify_feature_request", "checkpoint": true},
          {"id": "route_sales_feature", "checkpoint": true},
          {"id": "close_feature_request", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "identify_feature_request", "guard": null},
          {"from": "identify_feature_request", "to": "route_sales_feature", "guard": null},
          {"from": "route_sales_feature", "to": "close_feature_request", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_feature_request"]
      },
      "variation_parameters": {
        "feature_description": ["bulk export to CSV", "dark mode for the dashboard", "webhook retry configuration", "custom report scheduling", "API rate limit increase option"],
        "product_area_name": ["the Analytics Dashboard", "the Admin Portal", "the Integration Hub", "the Reporting Module", "the API Console"],
        "current_workaround": ["manually copy data row by row", "use a browser extension for dark mode", "resubmit failed webhooks manually", "run reports by hand every Monday", "contact support each time I hit the limit"],
        "customer_name": ["Amara Obi", "Ben Stein", "Carla Ruiz", "Derek Fong", "Elena Morozova"],
        "customer_name_lower": ["amara.obi", "ben.stein", "carla.ruiz", "derek.fong", "elena.morozova"],
        "email_domain": ["example.com", "corpmail.net", "techfirm.io", "startup.co", "enterprise.org"]
      }
    },
    {
      "archetype_id": "org_wide_outage_report",
      "display_name": "Org-Wide Outage Report",
      "difficulty": "hard",
      "visible_template": {
        "subject_pattern": "CRITICAL: {service_name} down for entire organization",
        "body_pattern": "Our entire organization of {affected_user_count} users cannot access {service_name}. This started at {outage_start} and is completely blocking {business_context}. We need immediate assistance. β€” {customer_name}, {role_title}, {company_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": ["error_screenshot_{service_name_lower}.png"],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Our entire organization of {affected_user_count} users cannot access {service_name}. This started at {outage_start}.",
            "timestamp_offset_minutes": 0
          },
          {
            "role": "customer",
            "content_pattern": "This is completely blocking {business_context}. We need immediate assistance. β€” {customer_name}, {role_title}, {company_name}",
            "timestamp_offset_minutes": 12
          },
          {
            "role": "internal_note",
            "content_pattern": "Enterprise SLA customer. No related incidents in the last 48h. Service health dashboard shows green.",
            "timestamp_offset_minutes": 18
          }
        ],
        "internal_notes_pattern": [
          "Enterprise customer with {affected_user_count} seats. SLA clock started at {outage_start}."
        ]
      },
      "hidden_truth": {
        "customer_tier": "enterprise",
        "source_channel": "customer_email",
        "issue_family": "technical",
        "issue_subtype": "integration_failure",
        "product_area": "platform_core",
        "impact": "org_wide",
        "urgency": "critical",
        "required_queue": "tech_support_l1",
        "required_missing_fields": [],
        "escalation_required": true,
        "escalation_target": "tech_support_l2",
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_technical_resolved"],
        "gold_terminal_status": "escalated",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "org_wide_outage_report",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "inspect_thread_history", "checkpoint": false},
          {"id": "classify_technical_integration", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "route_tech_l1", "checkpoint": true},
          {"id": "escalate_tech_l2", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "inspect_thread_history", "guard": null},
          {"from": "inspect_thread_history", "to": "classify_technical_integration", "guard": null},
          {"from": "classify_technical_integration", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "route_tech_l1", "guard": "classification_set"},
          {"from": "route_tech_l1", "to": "escalate_tech_l2", "guard": "escalation_required"}
        ],
        "entry_node": "new",
        "terminal_nodes": ["escalate_tech_l2"]
      },
      "variation_parameters": {
        "service_name": ["Analytics Platform", "Collaboration Hub", "Data Warehouse", "CRM Module", "Reporting Engine"],
        "service_name_lower": ["analytics-platform", "collaboration-hub", "data-warehouse", "crm-module", "reporting-engine"],
        "outage_start": ["2026-04-05T08:00:00Z", "2026-04-05T06:30:00Z", "2026-04-05T10:15:00Z", "2026-04-05T03:00:00Z", "2026-04-04T22:00:00Z"],
        "affected_user_count": ["200", "450", "120", "600", "350"],
        "business_context": ["quarterly earnings preparation", "a live product demo with investors", "regulatory compliance reporting", "year-end audit processing", "a customer migration that cannot be paused"],
        "customer_name": ["Felix Hartmann", "Gabriela Santos", "Henrik Nilsson", "Ingrid Bakker", "Juan Morales"],
        "customer_name_lower": ["felix.hartmann", "gabriela.santos", "henrik.nilsson", "ingrid.bakker", "juan.morales"],
        "email_domain": ["megacorp.com", "globaltech.io", "finserv.net", "retailgiant.com", "healthcloud.org"],
        "company_name": ["MegaCorp", "GlobalTech", "FinServ", "RetailGiant", "HealthCloud"],
        "role_title": ["VP Engineering", "CTO", "Director of IT", "Head of Platform", "Lead Architect"]
      }
    },
    {
      "archetype_id": "internal_escalation_from_sales",
      "display_name": "Internal Escalation from Sales",
      "difficulty": "medium",
      "visible_template": {
        "subject_pattern": "[INTERNAL] Billing issue for customer {company_name}",
        "body_pattern": "Sales team here. Our customer {company_name} (contact: {customer_contact}) reported a failed charge on their account. They were charged ${charge_amount} on {charge_date} but the payment did not go through. This is affecting the renewal process. Please investigate. β€” {sales_rep_name}, Sales",
        "sender_pattern": "{sales_rep_name_lower}@internal.platform.io",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "internal",
            "content_pattern": "Sales team here. Our customer {company_name} (contact: {customer_contact}) reported a failed charge on their account. They were charged ${charge_amount} on {charge_date} but the payment did not go through.",
            "timestamp_offset_minutes": 0
          },
          {
            "role": "internal",
            "content_pattern": "This is affecting the renewal process. Please investigate. β€” {sales_rep_name}, Sales",
            "timestamp_offset_minutes": 3
          }
        ],
        "internal_notes_pattern": [
          "Internal ticket from sales. Customer {company_name} has renewal pending."
        ]
      },
      "hidden_truth": {
        "customer_tier": "internal",
        "source_channel": "internal_report",
        "issue_family": "billing",
        "issue_subtype": "failed_charge",
        "product_area": "billing_portal",
        "impact": "single_user",
        "urgency": "medium",
        "required_queue": "billing_team",
        "required_missing_fields": ["order_id"],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["req_order_id", "close_billing_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "internal_escalation_from_sales",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_billing_failed_charge", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "request_order_id", "checkpoint": true},
          {"id": "receive_order_id", "checkpoint": false},
          {"id": "route_billing_team", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_billing_failed_charge", "guard": null},
          {"from": "classify_billing_failed_charge", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "request_order_id", "guard": "missing_order_id"},
          {"from": "request_order_id", "to": "receive_order_id", "guard": null},
          {"from": "receive_order_id", "to": "route_billing_team", "guard": "info_received"},
          {"from": "route_billing_team", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "order_id": ["ORD-20260401-101", "ORD-20260328-202", "ORD-20260325-303", "ORD-20260330-404", "ORD-20260402-505"],
        "company_name": ["Acme Corp", "TechStart Inc", "Globex Ltd", "Initech Solutions", "Umbrella Co"],
        "customer_contact": ["john@acmecorp.com", "sarah@techstart.io", "mike@globex.co.uk", "lisa@initech.com", "tom@umbrella.net"],
        "charge_amount": ["500.00", "1200.00", "2499.99", "750.00", "3500.00"],
        "charge_date": ["2026-03-28", "2026-04-01", "2026-03-25", "2026-04-02", "2026-03-30"],
        "sales_rep_name": ["Nathan Cross", "Olivia Park", "Peter Walsh", "Quinn Zhao", "Rachel Adams"],
        "sales_rep_name_lower": ["nathan.cross", "olivia.park", "peter.walsh", "quinn.zhao", "rachel.adams"]
      }
    },
    {
      "archetype_id": "entitlement_mismatch",
      "display_name": "Entitlement Mismatch β€” Invoice Error",
      "difficulty": "medium",
      "visible_template": {
        "subject_pattern": "Invoice discrepancy β€” charged for {feature_name} not in our plan",
        "body_pattern": "Hello, we received invoice #{invoice_number} for billing period {billing_period} which includes a charge of ${disputed_amount} for {feature_name}. However, our {plan_type} plan does not include this feature. We need this corrected. β€” {customer_name}, {company_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": ["invoice_{invoice_number}.pdf"],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hello, we received invoice #{invoice_number} for billing period {billing_period} which includes a charge of ${disputed_amount} for {feature_name}. However, our {plan_type} plan does not include this feature.",
            "timestamp_offset_minutes": 0
          },
          {
            "role": "customer",
            "content_pattern": "We need this corrected. β€” {customer_name}, {company_name}",
            "timestamp_offset_minutes": 5
          }
        ],
        "internal_notes_pattern": [
          "Enterprise customer {company_name}. Plan: {plan_type}. Invoice {invoice_number} under review."
        ]
      },
      "hidden_truth": {
        "customer_tier": "enterprise",
        "source_channel": "customer_email",
        "issue_family": "billing",
        "issue_subtype": "invoice_error",
        "product_area": "billing_portal",
        "impact": "single_user",
        "urgency": "medium",
        "required_queue": "billing_team",
        "required_missing_fields": [],
        "escalation_required": false,
        "escalation_target": null,
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["close_billing_resolved"],
        "gold_terminal_status": "closed",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "entitlement_mismatch",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "classify_billing_invoice", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "route_billing_team", "checkpoint": true},
          {"id": "close_resolved", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "classify_billing_invoice", "guard": null},
          {"from": "classify_billing_invoice", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "route_billing_team", "guard": null},
          {"from": "route_billing_team", "to": "close_resolved", "guard": null}
        ],
        "entry_node": "new",
        "terminal_nodes": ["close_resolved"]
      },
      "variation_parameters": {
        "invoice_number": ["INV-20260401-E01", "INV-20260315-E02", "INV-20260328-E03", "INV-20260301-E04", "INV-20260410-E05"],
        "billing_period": ["April 2026", "March 2026", "Q1 2026", "February 2026", "Q2 2026"],
        "disputed_amount": ["450.00", "1800.00", "675.00", "2200.00", "890.00"],
        "feature_name": ["Advanced Analytics", "Custom Integrations", "Priority Support", "SSO Module", "Data Export Pro"],
        "plan_type": ["Enterprise Standard", "Enterprise Growth", "Enterprise Basic", "Enterprise Plus", "Enterprise Starter"],
        "customer_name": ["Simone Berger", "Thomas Choi", "Ursula Mendez", "Viktor Lund", "Wanda Okafor"],
        "customer_name_lower": ["simone.berger", "thomas.choi", "ursula.mendez", "viktor.lund", "wanda.okafor"],
        "email_domain": ["megacorp.com", "globaltech.io", "finserv.net", "retailgiant.com", "healthcloud.org"],
        "company_name": ["MegaCorp", "GlobalTech", "FinServ", "RetailGiant", "HealthCloud"]
      }
    },
    {
      "archetype_id": "thread_conflicting_urgency",
      "display_name": "Thread with Conflicting Urgency Signals",
      "difficulty": "hard",
      "visible_template": {
        "subject_pattern": "API issue β€” {api_symptom}",
        "body_pattern": "Hi, we have been experiencing {api_symptom} on our API integration since {onset_description}. Initially it seemed intermittent but now it appears to be affecting all requests. β€” {customer_name}, {company_name}",
        "sender_pattern": "{customer_name_lower}@{email_domain}",
        "attachments": [],
        "thread_history_pattern": [
          {
            "role": "customer",
            "content_pattern": "Hi, we have been experiencing {api_symptom} on our API integration since {onset_description}. Initially it seemed intermittent.",
            "timestamp_offset_minutes": 0
          },
          {
            "role": "customer",
            "content_pattern": "Update: this is now affecting all {affected_user_count} users. Our {business_context} is blocked. We are losing ${revenue_impact} per hour.",
            "timestamp_offset_minutes": 30
          },
          {
            "role": "internal_note",
            "content_pattern": "Ticket initially looked low-priority but follow-up reveals revenue impact. Re-assess urgency.",
            "timestamp_offset_minutes": 35
          }
        ],
        "internal_notes_pattern": [
          "Thread shows escalating severity. Initial message understated impact. Re-assessment needed."
        ]
      },
      "hidden_truth": {
        "customer_tier": "enterprise",
        "source_channel": "customer_email",
        "issue_family": "technical",
        "issue_subtype": "api_error",
        "product_area": "api_platform",
        "impact": "revenue_affecting",
        "urgency": "critical",
        "required_queue": "tech_support_l1",
        "required_missing_fields": ["api_endpoint", "error_code", "request_id"],
        "escalation_required": true,
        "escalation_target": "tech_support_l2",
        "is_duplicate": false,
        "duplicate_of": null,
        "correct_template_ids": ["req_api_details", "close_technical_resolved"],
        "gold_terminal_status": "escalated",
        "non_actionable_subtype": null
      },
      "sop_graph": {
        "graph_id": "thread_conflicting_urgency",
        "nodes": [
          {"id": "new", "checkpoint": false},
          {"id": "open", "checkpoint": false},
          {"id": "inspect_thread_history", "checkpoint": false},
          {"id": "classify_technical_api", "checkpoint": true},
          {"id": "set_impact_urgency", "checkpoint": true},
          {"id": "request_api_details", "checkpoint": true},
          {"id": "receive_api_details", "checkpoint": false},
          {"id": "route_tech_l1", "checkpoint": true},
          {"id": "escalate_tech_l2", "checkpoint": true}
        ],
        "edges": [
          {"from": "new", "to": "open", "guard": null},
          {"from": "open", "to": "inspect_thread_history", "guard": null},
          {"from": "inspect_thread_history", "to": "classify_technical_api", "guard": null},
          {"from": "classify_technical_api", "to": "set_impact_urgency", "guard": null},
          {"from": "set_impact_urgency", "to": "request_api_details", "guard": "missing_api_details"},
          {"from": "request_api_details", "to": "receive_api_details", "guard": null},
          {"from": "receive_api_details", "to": "route_tech_l1", "guard": "info_received"},
          {"from": "route_tech_l1", "to": "escalate_tech_l2", "guard": "escalation_required"}
        ],
        "entry_node": "new",
        "terminal_nodes": ["escalate_tech_l2"]
      },
      "variation_parameters": {
        "api_endpoint": ["/v2/orders", "/v2/payments", "/v1/reports", "/v2/inventory", "/v2/subscriptions"],
        "error_code": ["500", "502", "503", "504", "429"],
        "request_id": ["req-p1q2r3", "req-s4t5u6", "req-v7w8x9", "req-y0z1a2", "req-b3c4d5"],
        "api_symptom": ["intermittent 500 errors", "timeout on all POST requests", "rate limiting despite low volume", "connection reset errors", "malformed response bodies"],
        "onset_description": ["yesterday afternoon", "this morning around 6 AM", "two days ago", "after last night's maintenance window", "gradually over the past week"],
        "affected_user_count": ["100", "250", "75", "400", "180"],
        "business_context": ["payment processing pipeline", "order fulfillment system", "real-time inventory sync", "subscription billing cycle", "partner API integration"],
        "revenue_impact": ["5,000", "12,000", "3,500", "25,000", "8,000"],
        "customer_name": ["Klaus Weber", "Lucia Ferreira", "Marco Bianchi", "Natasha Popov", "Omar Achraf"],
        "customer_name_lower": ["klaus.weber", "lucia.ferreira", "marco.bianchi", "natasha.popov", "omar.achraf"],
        "email_domain": ["megacorp.com", "globaltech.io", "finserv.net", "retailgiant.com", "healthcloud.org"],
        "company_name": ["MegaCorp", "GlobalTech", "FinServ", "RetailGiant", "HealthCloud"]
      }
    }
  ]
}