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
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
import type { AgentId, DataSourceSpec, SourceDelivery } from "./types";

function rssSource(spec: {
  id: string;
  agentId: AgentId;
  delivery: SourceDelivery;
  name: string;
  url: string;
  allowlistStatus: DataSourceSpec["allowlistStatus"];
  tags: string[];
  rationale: string;
  notes?: string;
}): DataSourceSpec {
  return {
    id: spec.id,
    agentId: spec.agentId,
    delivery: spec.delivery,
    name: spec.name,
    kind: "rss",
    endpoint: {
      kind: "url",
      url: spec.url,
    },
    auth: "none",
    allowlistStatus: spec.allowlistStatus,
    tags: spec.tags,
    rationale: spec.rationale,
    notes: spec.notes,
  };
}

function scrapeSource(spec: {
  id: string;
  agentId: AgentId;
  delivery: SourceDelivery;
  name: string;
  url: string;
  auth?: DataSourceSpec["auth"];
  allowlistStatus: DataSourceSpec["allowlistStatus"];
  tags: string[];
  rationale: string;
  notes?: string;
}): DataSourceSpec {
  return {
    id: spec.id,
    agentId: spec.agentId,
    delivery: spec.delivery,
    name: spec.name,
    kind: "scrape",
    endpoint: {
      kind: "url",
      url: spec.url,
    },
    auth: spec.auth ?? "none",
    allowlistStatus: spec.allowlistStatus,
    tags: spec.tags,
    rationale: spec.rationale,
    notes: spec.notes,
  };
}

function worldMonitorSource(spec: {
  id: string;
  agentId: AgentId;
  delivery: SourceDelivery;
  name: string;
  rpc: string;
  selector?: string;
  kind?: Extract<DataSourceSpec["kind"], "api" | "structured">;
  auth?: DataSourceSpec["auth"];
  tags: string[];
  rationale: string;
  notes?: string;
}): DataSourceSpec {
  return {
    id: spec.id,
    agentId: spec.agentId,
    delivery: spec.delivery,
    name: spec.name,
    kind: spec.kind ?? "structured",
    endpoint: {
      kind: "worldmonitor",
      rpc: spec.rpc,
      ...(spec.selector ? { selector: spec.selector } : {}),
    },
    auth: spec.auth ?? "none",
    allowlistStatus: "external",
    tags: spec.tags,
    rationale: spec.rationale,
    notes: spec.notes,
  };
}

function telegramSource(spec: {
  id: string;
  agentId: AgentId;
  delivery: SourceDelivery;
  name: string;
  handle: string;
  tags: string[];
  rationale: string;
  notes?: string;
}): DataSourceSpec {
  return {
    id: spec.id,
    agentId: spec.agentId,
    delivery: spec.delivery,
    name: spec.name,
    kind: "telegram",
    endpoint: {
      kind: "telegram",
      handle: spec.handle,
    },
    auth: "session",
    allowlistStatus: "not_applicable",
    tags: spec.tags,
    rationale: spec.rationale,
    notes: spec.notes,
  };
}

function videoSource(spec: {
  id: string;
  agentId: AgentId;
  delivery: SourceDelivery;
  name: string;
  channel: string;
  tags: string[];
  rationale: string;
  notes?: string;
}): DataSourceSpec {
  return {
    id: spec.id,
    agentId: spec.agentId,
    delivery: spec.delivery,
    name: spec.name,
    kind: "video",
    endpoint: {
      kind: "video",
      channel: spec.channel,
    },
    auth: "none",
    allowlistStatus: "not_applicable",
    tags: spec.tags,
    rationale: spec.rationale,
    notes: spec.notes,
  };
}

function googleNewsSearchUrl(query: string): string {
  return `https://news.google.com/rss/search?q=${encodeURIComponent(query)}&hl=en-US&gl=US&ceid=US:en`;
}

const FALLBACK_QUERY_NOTE =
  "Uses a Google News site-query fallback because the direct publisher or government endpoint is blocked, dead, or non-RSS.";

const sources: DataSourceSpec[] = [
  rssSource({
    id: "us-reuters-us",
    agentId: "us",
    delivery: "training_core",
    name: "Reuters US",
    url: "https://news.google.com/rss/search?q=site:reuters.com+US&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["us", "wire", "domestic"],
    rationale: "Wire-grade US political and federal reporting for fast state reaction and domestic fallout.",
  }),
  rssSource({
    id: "us-politico",
    agentId: "us",
    delivery: "training_core",
    name: "Politico",
    url: "https://rss.politico.com/politics-news.xml",
    allowlistStatus: "allowed",
    tags: ["us", "politics", "coalitions"],
    rationale: "Captures executive maneuvering, Hill dynamics, and coalition signaling.",
  }),
  rssSource({
    id: "us-wsj",
    agentId: "us",
    delivery: "training_core",
    name: "Wall Street Journal",
    url: "https://feeds.content.dowjones.io/public/rss/RSSUSnews",
    allowlistStatus: "allowed",
    tags: ["us", "markets", "elite-policy"],
    rationale: "Business and policy-elite framing relevant to backlash, oil, and market stress.",
  }),
  rssSource({
    id: "us-white-house",
    agentId: "us",
    delivery: "training_core",
    name: "White House",
    url: "https://news.google.com/rss/search?q=site:whitehouse.gov&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["us", "official", "executive"],
    rationale: "Official executive posture and public messaging.",
  }),
  rssSource({
    id: "us-state-dept",
    agentId: "us",
    delivery: "training_core",
    name: "State Dept",
    url: "https://news.google.com/rss/search?q=site:state.gov+OR+%22State+Department%22&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["us", "official", "diplomacy"],
    rationale: "Diplomatic posture, sanctions posture, and alliance language.",
  }),
  rssSource({
    id: "us-usni-news",
    agentId: "us",
    delivery: "training_core",
    name: "USNI News",
    url: "https://news.usni.org/feed",
    allowlistStatus: "allowed",
    tags: ["us", "naval", "centcom"],
    rationale: "Naval deployments and fleet posture relevant to US deterrence and force signaling.",
  }),
  worldMonitorSource({
    id: "us-polymarket",
    agentId: "us",
    delivery: "training_core",
    name: "Polymarket Geopolitical Markets",
    rpc: "prediction/v1/list-prediction-markets",
    selector: "geopolitics",
    auth: "relay",
    tags: ["us", "prediction", "public-expectations"],
    rationale: "Crowd-implied escalation and political-risk signal.",
  }),
  videoSource({
    id: "us-fox-live",
    agentId: "us",
    delivery: "live_demo",
    name: "Fox News Live",
    channel: "@FoxNews",
    tags: ["us", "live", "media"],
    rationale: "Domestic reaction and media pulse during live sessions.",
  }),
  videoSource({
    id: "us-washington-webcam",
    agentId: "us",
    delivery: "live_demo",
    name: "Washington DC Webcam",
    channel: "@AxisCommunications",
    tags: ["us", "live", "webcam"],
    rationale: "Ambient visual context from the US capital during demos.",
  }),
  rssSource({
    id: "us-npr-news",
    agentId: "us",
    delivery: "training_core",
    name: "NPR News",
    url: "https://feeds.npr.org/1001/rss.xml",
    allowlistStatus: "allowed",
    tags: ["us", "public-media", "domestic"],
    rationale: "Broad US domestic pulse that captures public-facing political and social fallout.",
  }),
  rssSource({
    id: "us-pentagon",
    agentId: "us",
    delivery: "training_core",
    name: "Pentagon",
    url: "https://news.google.com/rss/search?q=site:defense.gov+OR+Pentagon&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["us", "official", "defense"],
    rationale: "Official defense posture, deployments, and deterrence messaging.",
  }),
  rssSource({
    id: "us-treasury",
    agentId: "us",
    delivery: "training_core",
    name: "Treasury",
    url: "https://news.google.com/rss/search?q=site:treasury.gov+OR+%22Treasury+Department%22&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["us", "official", "sanctions"],
    rationale: "Tracks sanctions posture, financial coercion, and macro-stability messaging.",
  }),
  rssSource({
    id: "us-federal-reserve",
    agentId: "us",
    delivery: "training_core",
    name: "Federal Reserve",
    url: "https://www.federalreserve.gov/feeds/press_all.xml",
    allowlistStatus: "allowed",
    tags: ["us", "official", "rates"],
    rationale: "Monetary-policy signaling and emergency liquidity posture.",
  }),
  rssSource({
    id: "us-sec",
    agentId: "us",
    delivery: "training_core",
    name: "SEC",
    url: "https://www.sec.gov/news/pressreleases.rss",
    allowlistStatus: "allowed",
    tags: ["us", "official", "markets"],
    rationale: "Market-integrity and disclosure signals during crisis-driven volatility.",
  }),
  rssSource({
    id: "us-defense-one",
    agentId: "us",
    delivery: "training_core",
    name: "Defense One",
    url: "https://www.defenseone.com/rss/all/",
    allowlistStatus: "allowed",
    tags: ["us", "defense", "analysis"],
    rationale: "Civil-military analysis and Pentagon ecosystem reporting.",
  }),
  rssSource({
    id: "us-defense-news",
    agentId: "us",
    delivery: "training_core",
    name: "Defense News",
    url: "https://www.defensenews.com/arc/outboundfeeds/rss/?outputType=xml",
    allowlistStatus: "allowed",
    tags: ["us", "defense", "industry"],
    rationale: "Operational and defense-industrial coverage tied to force readiness.",
  }),
  rssSource({
    id: "us-military-times",
    agentId: "us",
    delivery: "training_core",
    name: "Military Times",
    url: "https://www.militarytimes.com/arc/outboundfeeds/rss/?outputType=xml",
    allowlistStatus: "allowed",
    tags: ["us", "military", "personnel"],
    rationale: "Troop, veteran, and force-posture reporting relevant to domestic military sentiment.",
  }),
  videoSource({
    id: "us-abc-news-live",
    agentId: "us",
    delivery: "live_demo",
    name: "ABC News Live",
    channel: "@ABCNews",
    tags: ["us", "live", "media"],
    rationale: "Additional US broadcast-news reaction during live sessions.",
  }),
  videoSource({
    id: "us-cbs-news-live",
    agentId: "us",
    delivery: "live_demo",
    name: "CBS News Live",
    channel: "@CBSNews",
    tags: ["us", "live", "media"],
    rationale: "Mainstream TV framing and breaking-event cadence for demos.",
  }),
  videoSource({
    id: "us-nbc-news-live",
    agentId: "us",
    delivery: "live_demo",
    name: "NBC News Live",
    channel: "@NBCNews",
    tags: ["us", "live", "media"],
    rationale: "Broad domestic coverage lane for live domestic sentiment tracking.",
  }),

  worldMonitorSource({
    id: "israel-oref",
    agentId: "israel",
    delivery: "training_core",
    name: "OREF Rocket Alerts",
    rpc: "military/v1/list-oref-alerts",
    auth: "relay",
    tags: ["israel", "sirens", "air-defense"],
    rationale: "Highest-signal direct warning source for rockets, missiles, and drones.",
  }),
  rssSource({
    id: "israel-haaretz",
    agentId: "israel",
    delivery: "training_core",
    name: "Haaretz",
    url: "https://news.google.com/rss/search?q=site:haaretz.com+when:7d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["israel", "security", "local-reporting"],
    rationale: "Israeli political-security reporting with local context.",
  }),
  rssSource({
    id: "israel-pm-office",
    agentId: "israel",
    delivery: "training_core",
    name: "PM Office",
    url: googleNewsSearchUrl('site:gov.il/en "Prime Minister\'s Office" Israel'),
    allowlistStatus: "allowed",
    tags: ["israel", "official", "executive"],
    rationale: "Prime minister messaging, cabinet posture, and official crisis framing.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-idf-spokesman",
    agentId: "israel",
    delivery: "training_core",
    name: "IDF Spokesman",
    url: googleNewsSearchUrl('site:idf.il/en IDF spokesperson Israel'),
    allowlistStatus: "allowed",
    tags: ["israel", "official", "military"],
    rationale: "Official military announcements, strike claims, and force-posture messaging.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-mfa-israel",
    agentId: "israel",
    delivery: "training_core",
    name: "MFA Israel",
    url: googleNewsSearchUrl('site:mfa.gov.il Israel Ministry of Foreign Affairs'),
    allowlistStatus: "allowed",
    tags: ["israel", "official", "diplomacy"],
    rationale: "Diplomatic posture, international signaling, and formal foreign-ministry messaging.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-knesset",
    agentId: "israel",
    delivery: "training_core",
    name: "Knesset",
    url: googleNewsSearchUrl('site:main.knesset.gov.il/en Knesset Israel'),
    allowlistStatus: "allowed",
    tags: ["israel", "official", "legislature"],
    rationale: "Legislative moves, emergency authorities, and coalition-fracture signals.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-bank-of-israel",
    agentId: "israel",
    delivery: "training_core",
    name: "Bank of Israel",
    url: googleNewsSearchUrl('site:boi.org.il/en "Bank of Israel"'),
    allowlistStatus: "allowed",
    tags: ["israel", "official", "economy"],
    rationale: "Macro-financial stress, monetary posture, and economic-stability signaling.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  worldMonitorSource({
    id: "israel-opensky-flights",
    agentId: "israel",
    delivery: "training_core",
    name: "OpenSky Military Flights",
    rpc: "military/v1/list-military-flights",
    selector: "opensky",
    auth: "relay",
    tags: ["israel", "airspace", "opensky"],
    rationale: "Airspace and sortie activity tied to Israeli operational tempo.",
  }),
  worldMonitorSource({
    id: "israel-wingbits-enrichment",
    agentId: "israel",
    delivery: "training_core",
    name: "Wingbits Flight Enrichment",
    rpc: "military/v1/list-military-flights",
    selector: "wingbits",
    auth: "relay",
    tags: ["israel", "airspace", "wingbits"],
    rationale: "Adds operator and aircraft context for military-flight interpretation.",
  }),
  worldMonitorSource({
    id: "israel-tlv-notam",
    agentId: "israel",
    delivery: "training_core",
    name: "TLV NOTAM / Airport Closures",
    rpc: "aviation/v1/list-airport-delays",
    selector: "TLV",
    auth: "apiKey",
    tags: ["israel", "notam", "aviation"],
    rationale: "Captures Ben Gurion disruption, closure, and severe airspace changes.",
  }),
  scrapeSource({
    id: "israel-gpsjam-levant",
    agentId: "israel",
    delivery: "training_core",
    name: "GPSJam Levant View",
    url: "https://gpsjam.org",
    allowlistStatus: "external",
    tags: ["israel", "ew", "gps-jamming"],
    rationale: "Electronic-warfare and GNSS-spoofing conditions in the Levant.",
  }),
  videoSource({
    id: "israel-kan11-live",
    agentId: "israel",
    delivery: "live_demo",
    name: "Kan 11 Live",
    channel: "@KAN11NEWS",
    tags: ["israel", "live", "hebrew-tv"],
    rationale: "Hebrew live-news situational awareness.",
  }),
  videoSource({
    id: "israel-i24-live",
    agentId: "israel",
    delivery: "live_demo",
    name: "i24NEWS Live",
    channel: "@i24NEWS_HE",
    tags: ["israel", "live", "tv"],
    rationale: "Israeli TV framing and rapid local updates.",
  }),
  videoSource({
    id: "israel-jerusalem-webcam",
    agentId: "israel",
    delivery: "live_demo",
    name: "Jerusalem Webcam",
    channel: "@JerusalemLive",
    tags: ["israel", "live", "webcam"],
    rationale: "Civilian and symbolic city-center visual context.",
  }),
  videoSource({
    id: "israel-tel-aviv-webcam",
    agentId: "israel",
    delivery: "live_demo",
    name: "Tel Aviv Webcam",
    channel: "@IsraelLiveCam",
    tags: ["israel", "live", "webcam"],
    rationale: "Urban impact visibility during escalation demos.",
  }),
  telegramSource({
    id: "israel-defender-dome",
    agentId: "israel",
    delivery: "training_core",
    name: "The Defender Dome",
    handle: "DefenderDome",
    tags: ["israel", "telegram", "air-defense"],
    rationale: "Fast conflict monitoring stream centered on missile-defense and strike reporting.",
  }),
  telegramSource({
    id: "israel-yedioth-news",
    agentId: "israel",
    delivery: "training_core",
    name: "Yedioth News",
    handle: "yediotnews25",
    tags: ["israel", "telegram", "breaking"],
    rationale: "Israeli breaking-news lane with local reaction and casualty reporting.",
  }),
  rssSource({
    id: "israel-jerusalem-post",
    agentId: "israel",
    delivery: "training_core",
    name: "Jerusalem Post",
    url: "https://www.jpost.com/Rss/RssFeedsHeadlines.aspx",
    allowlistStatus: "allowed",
    tags: ["israel", "english", "breaking"],
    rationale: "Fast English-language Israeli headlines with domestic and diplomatic framing.",
  }),
  rssSource({
    id: "israel-times-of-israel",
    agentId: "israel",
    delivery: "training_core",
    name: "The Times of Israel",
    url: "https://www.timesofisrael.com/feed/",
    allowlistStatus: "allowed",
    tags: ["israel", "local-reporting", "politics"],
    rationale: "Fast Israel-specific political and security coverage with local context.",
  }),
  rssSource({
    id: "israel-ynet-english",
    agentId: "israel",
    delivery: "training_core",
    name: "Ynet English",
    url: googleNewsSearchUrl("site:ynetnews.com Israel"),
    allowlistStatus: "allowed",
    tags: ["israel", "english", "domestic"],
    rationale: "Broad Israeli domestic and security coverage in English.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-israel-hayom",
    agentId: "israel",
    delivery: "training_core",
    name: "Israel Hayom",
    url: "https://www.israelhayom.com/feed/",
    allowlistStatus: "allowed",
    tags: ["israel", "domestic", "politics"],
    rationale: "Mainstream Israeli political and security framing with high local salience.",
  }),
  rssSource({
    id: "israel-middle-east-eye",
    agentId: "israel",
    delivery: "training_core",
    name: "Middle East Eye",
    url: "https://www.middleeasteye.net/rss",
    allowlistStatus: "allowed",
    tags: ["israel", "regional", "media"],
    rationale: "Regional reaction and adversarial framing around Israeli actions.",
  }),
  rssSource({
    id: "israel-al-monitor",
    agentId: "israel",
    delivery: "training_core",
    name: "Al-Monitor",
    url: "https://www.al-monitor.com/rss",
    allowlistStatus: "allowed",
    tags: ["israel", "regional", "analysis"],
    rationale: "Cross-border political-security analysis with strong Middle East context.",
  }),
  rssSource({
    id: "israel-debka",
    agentId: "israel",
    delivery: "training_core",
    name: "Debka",
    url: googleNewsSearchUrl("site:debka.com Israel security"),
    allowlistStatus: "allowed",
    tags: ["israel", "security", "osint"],
    rationale: "Israel-focused security and intelligence reporting lane.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-memri",
    agentId: "israel",
    delivery: "training_core",
    name: "MEMRI",
    url: googleNewsSearchUrl("site:memri.org MEMRI Middle East"),
    allowlistStatus: "allowed",
    tags: ["israel", "mena-monitoring", "translation"],
    rationale: "Regional media and rhetoric monitoring relevant to Israeli decision-making.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-ict-terrorism",
    agentId: "israel",
    delivery: "training_core",
    name: "ICT Terrorism",
    url: "https://www.ict.org.il/rss",
    allowlistStatus: "allowed",
    tags: ["israel", "terrorism", "research"],
    rationale: "Counterterrorism analysis and incident context tied to Israeli security policy.",
  }),
  rssSource({
    id: "israel-calcalist",
    agentId: "israel",
    delivery: "training_core",
    name: "Calcalist",
    url: googleNewsSearchUrl("site:calcalistech.com Israel tech economy"),
    allowlistStatus: "allowed",
    tags: ["israel", "economy", "tech"],
    rationale: "Israeli tech-economy and business continuity signal under crisis pressure.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-globes",
    agentId: "israel",
    delivery: "training_core",
    name: "Globes",
    url: googleNewsSearchUrl('site:en.globes.co.il OR site:globes.co.il Israel business'),
    allowlistStatus: "allowed",
    tags: ["israel", "economy", "markets"],
    rationale: "Israeli business and market sentiment tied to wartime resilience.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  rssSource({
    id: "israel-un-middle-east",
    agentId: "israel",
    delivery: "training_core",
    name: "UN Middle East",
    url: "https://news.un.org/feed/subscribe/en/news/region/middle-east/feed/rss.xml",
    allowlistStatus: "allowed",
    tags: ["israel", "diplomacy", "un"],
    rationale: "UN regional diplomatic context, resolutions, and humanitarian framing.",
  }),
  rssSource({
    id: "israel-reuters-middle-east",
    agentId: "israel",
    delivery: "training_core",
    name: "Reuters Middle East",
    url: googleNewsSearchUrl('site:reuters.com "Middle East" Israel Iran Lebanon'),
    allowlistStatus: "allowed",
    tags: ["israel", "wire", "regional"],
    rationale: "Wire-grade regional headline stream around Israel, Iran, and the Levant.",
    notes: FALLBACK_QUERY_NOTE,
  }),
  worldMonitorSource({
    id: "israel-theater-posture",
    agentId: "israel",
    delivery: "training_core",
    name: "Levant Theater Posture",
    rpc: "military/v1/get-theater-posture",
    selector: "levant",
    kind: "api",
    tags: ["israel", "military", "posture"],
    rationale: "Regional force posture snapshot across Israel's immediate operating theater.",
  }),
  worldMonitorSource({
    id: "israel-military-bases",
    agentId: "israel",
    delivery: "training_core",
    name: "Israel Frontier Base Layer",
    rpc: "military/v1/list-military-bases",
    selector: "israel-frontier",
    kind: "api",
    tags: ["israel", "bases", "readiness"],
    rationale: "Static force-infrastructure layer for front-line readiness reasoning.",
  }),
  worldMonitorSource({
    id: "israel-eastern-med-warnings",
    agentId: "israel",
    delivery: "training_core",
    name: "Eastern Med Navigational Warnings",
    rpc: "maritime/v1/list-navigational-warnings",
    selector: "eastern-med",
    kind: "api",
    tags: ["israel", "maritime", "warnings"],
    rationale: "Detects maritime safety and exclusion-zone changes around the Eastern Mediterranean.",
  }),
  worldMonitorSource({
    id: "israel-northern-border-incidents",
    agentId: "israel",
    delivery: "training_core",
    name: "Northern Border Incident Tracker",
    rpc: "conflict/v1/list-acled-events",
    selector: "south-lebanon-galilee",
    tags: ["israel", "north-border", "conflict-events"],
    rationale: "Structured launch, infiltration, and strike-event lane for the Lebanon-Galilee border fight.",
  }),
  worldMonitorSource({
    id: "israel-northern-strike-heat",
    agentId: "israel",
    delivery: "training_core",
    name: "Northern Strike Heat",
    rpc: "wildfire/v1/list-fire-detections",
    selector: "north-israel-lebanon",
    tags: ["israel", "thermal", "strike-verification"],
    rationale: "Thermal proxy for launch areas, strike aftermath, and persistent fire activity on the northern front.",
  }),
  worldMonitorSource({
    id: "israel-syrian-transfer-watch",
    agentId: "israel",
    delivery: "training_core",
    name: "Syrian Transfer Corridor Watch",
    rpc: "conflict/v1/list-acled-events",
    selector: "syria-transfer-corridor",
    tags: ["israel", "syria", "weapons-transfer"],
    rationale: "Tracks corridor activity tied to Iranian reinforcement, air-defense movement, and precision-weapon transfer.",
  }),
  worldMonitorSource({
    id: "israel-northern-air-defense",
    agentId: "israel",
    delivery: "training_core",
    name: "Northern Air Defense Readiness",
    rpc: "military/v1/get-theater-posture",
    selector: "israel-air-defense",
    kind: "api",
    tags: ["israel", "air-defense", "readiness"],
    rationale: "Operational posture layer for interceptor coverage, warning quality, and defensive readiness in the north.",
  }),

  telegramSource({
    id: "iran-vahid-online",
    agentId: "iran",
    delivery: "training_core",
    name: "VahidOnline",
    handle: "VahidOnline",
    tags: ["iran", "telegram", "politics"],
    rationale: "High-signal Iran political and social monitoring from the curated Telegram set.",
  }),
  rssSource({
    id: "iran-bbc-persian",
    agentId: "iran",
    delivery: "training_core",
    name: "BBC Persian",
    url: "http://feeds.bbci.co.uk/persian/tv-and-radio-37434376/rss.xml",
    allowlistStatus: "allowed",
    tags: ["iran", "persian", "opposition"],
    rationale: "Persian-language reporting from a distinct narrative lane.",
  }),
  rssSource({
    id: "iran-iran-international",
    agentId: "iran",
    delivery: "training_core",
    name: "Iran International",
    url: "https://news.google.com/rss/search?q=site:iranintl.com+when:2d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["iran", "opposition", "crisis"],
    rationale: "High-signal exile-media coverage of Iranian crisis conditions.",
  }),
  rssSource({
    id: "iran-fars-news",
    agentId: "iran",
    delivery: "training_core",
    name: "Fars News",
    url: "https://news.google.com/rss/search?q=site:farsnews.ir+when:2d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["iran", "state", "security"],
    rationale: "State-adjacent narrative and official-security framing.",
  }),
  worldMonitorSource({
    id: "iran-liveuamap-events",
    agentId: "iran",
    delivery: "training_core",
    name: "LiveUAMap Iran Events",
    rpc: "conflict/v1/list-iran-events",
    auth: "relay",
    tags: ["iran", "map-events", "strikes"],
    rationale: "Geocoded attacks, strikes, and military incidents focused on Iran.",
  }),
  worldMonitorSource({
    id: "iran-nasa-firms",
    agentId: "iran",
    delivery: "training_core",
    name: "NASA FIRMS Strike Heat",
    rpc: "wildfire/v1/list-fire-detections",
    selector: "IR",
    kind: "api",
    tags: ["iran", "thermal", "damage"],
    rationale: "Satellite thermal proxy for strike damage and industrial disruption.",
  }),
  telegramSource({
    id: "iran-fotros-resistance",
    agentId: "iran",
    delivery: "training_core",
    name: "Fotros Resistance",
    handle: "FotrosResistancee",
    tags: ["iran", "telegram", "proxy-network"],
    rationale: "Proxy-aligned conflict signal from inside the resistance ecosystem.",
  }),
  videoSource({
    id: "iran-iranintl-live",
    agentId: "iran",
    delivery: "live_demo",
    name: "Iran International Live",
    channel: "@IranIntl",
    tags: ["iran", "live", "tv"],
    rationale: "Live narrative pulse for Iranian crisis coverage.",
  }),
  videoSource({
    id: "iran-tehran-webcam",
    agentId: "iran",
    delivery: "live_demo",
    name: "Tehran Webcam",
    channel: "@IranHDCams",
    tags: ["iran", "live", "webcam"],
    rationale: "Visual monitoring of Tehran during live sessions.",
  }),
  telegramSource({
    id: "iran-iranintl-telegram",
    agentId: "iran",
    delivery: "training_core",
    name: "Iran International Telegram",
    handle: "iranintltv",
    tags: ["iran", "telegram", "opposition"],
    rationale: "Low-latency opposition and exile-media alerts in Telegram form.",
  }),
  telegramSource({
    id: "iran-bno-news",
    agentId: "iran",
    delivery: "training_core",
    name: "BNO News",
    handle: "BNONews",
    tags: ["iran", "telegram", "breaking"],
    rationale: "Fast global breaking-news lane for strike and escalation confirmation.",
  }),
  rssSource({
    id: "iran-al-arabiya",
    agentId: "iran",
    delivery: "training_core",
    name: "Al Arabiya",
    url: "https://news.google.com/rss/search?q=site:english.alarabiya.net+when:2d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["iran", "regional", "arab-media"],
    rationale: "Arab regional framing of Iranian retaliation, strikes, and diplomacy.",
  }),
  rssSource({
    id: "iran-nuclear-energy-watch",
    agentId: "iran",
    delivery: "training_core",
    name: "Iran Nuclear Energy Watch",
    url: "https://news.google.com/rss/search?q=(Iran+IAEA+OR+Iran+uranium+OR+Iran+%22nuclear+energy%22)+when:3d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["iran", "nuclear", "iaea"],
    rationale: "Dedicated nuclear and safeguards signal relevant to escalation thresholds.",
  }),
  worldMonitorSource({
    id: "iran-internet-outages",
    agentId: "iran",
    delivery: "training_core",
    name: "Iran Internet Outages",
    rpc: "infrastructure/v1/list-internet-outages",
    selector: "IR",
    kind: "api",
    tags: ["iran", "infrastructure", "internet"],
    rationale: "Tracks censorship, disruption, and wartime communications degradation.",
  }),
  worldMonitorSource({
    id: "iran-unrest-events",
    agentId: "iran",
    delivery: "training_core",
    name: "Iran Unrest Events",
    rpc: "unrest/v1/list-unrest-events",
    selector: "IR",
    kind: "api",
    tags: ["iran", "unrest", "domestic"],
    rationale: "Crowd action, protests, and unrest pressure affecting regime stability.",
  }),
  worldMonitorSource({
    id: "iran-climate-anomalies",
    agentId: "iran",
    delivery: "training_core",
    name: "Iran Climate Anomalies",
    rpc: "climate/v1/list-climate-anomalies",
    selector: "IR",
    kind: "api",
    tags: ["iran", "climate", "stress"],
    rationale: "Environmental stressor layer that can compound logistics and domestic strain.",
  }),
  worldMonitorSource({
    id: "iran-stock-index",
    agentId: "iran",
    delivery: "training_core",
    name: "Iran Stock Index",
    rpc: "market/v1/get-country-stock-index",
    selector: "IR",
    kind: "api",
    tags: ["iran", "markets", "macro"],
    rationale: "Market-stress proxy for domestic confidence and sanctions shock.",
  }),
  videoSource({
    id: "iran-trt-world-live",
    agentId: "iran",
    delivery: "live_demo",
    name: "TRT World Live",
    channel: "@TRTWorld",
    tags: ["iran", "live", "regional-media"],
    rationale: "External live regional coverage of Iranian crisis developments.",
  }),
  videoSource({
    id: "iran-cgtn-arabic-live",
    agentId: "iran",
    delivery: "live_demo",
    name: "CGTN Arabic Live",
    channel: "@CGTNArabic",
    tags: ["iran", "live", "regional-media"],
    rationale: "Alternative non-Western broadcast lane for Iranian events.",
  }),
  videoSource({
    id: "iran-france24-live",
    agentId: "iran",
    delivery: "live_demo",
    name: "France 24 Live",
    channel: "@FRANCE24",
    tags: ["iran", "live", "global-media"],
    rationale: "European live-news framing for Iranian escalation and diplomatic fallout.",
  }),

  telegramSource({
    id: "hezbollah-abu-ali",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Abu Ali Express",
    handle: "abualiexpress",
    tags: ["hezbollah", "telegram", "proxy"],
    rationale: "Fast proxy-aligned updates focused on the Levant theater.",
  }),
  telegramSource({
    id: "hezbollah-abu-ali-en",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Abu Ali Express EN",
    handle: "englishabuali",
    tags: ["hezbollah", "telegram", "proxy", "english"],
    rationale: "English-readable mirror of the proxy operational narrative.",
  }),
  telegramSource({
    id: "hezbollah-lebanon-update",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Lebanon Update",
    handle: "LebUpdate",
    tags: ["hezbollah", "telegram", "lebanon"],
    rationale: "Lebanon-specific breaking updates for theater awareness.",
  }),
  telegramSource({
    id: "hezbollah-middle-east-spectator",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Middle East Spectator",
    handle: "Middle_East_Spectator",
    tags: ["hezbollah", "telegram", "osint"],
    rationale: "OSINT-style regional conflict monitoring aligned with proxy reasoning.",
  }),
  telegramSource({
    id: "hezbollah-the-cradle",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "The Cradle",
    handle: "thecradlemedia",
    tags: ["hezbollah", "telegram", "regional-politics"],
    rationale: "Resistance-axis narrative and regional political framing.",
  }),
  worldMonitorSource({
    id: "hezbollah-acled-lebanon-syria",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "ACLED Lebanon/Syria Conflict Events",
    rpc: "conflict/v1/list-acled-events",
    selector: "LB,SY",
    auth: "apiKey",
    tags: ["hezbollah", "acled", "theater-events"],
    rationale: "Event-level escalation tracking around Hezbollah's operating theater.",
  }),
  videoSource({
    id: "hezbollah-beirut-webcam",
    agentId: "hezbollah",
    delivery: "live_demo",
    name: "Beirut MTV Lebanon Webcam",
    channel: "@MTVLebanonNews",
    tags: ["hezbollah", "live", "webcam"],
    rationale: "Lebanese urban situational awareness during live sessions.",
  }),
  telegramSource({
    id: "hezbollah-middle-east-now",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Middle East Now Breaking",
    handle: "MiddleEastNow_Breaking",
    tags: ["hezbollah", "telegram", "breaking"],
    rationale: "Rapid regional conflict alerts with strong Levant focus.",
  }),
  telegramSource({
    id: "hezbollah-aurora-intel",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Aurora Intel",
    handle: "AuroraIntel",
    tags: ["hezbollah", "telegram", "conflict"],
    rationale: "Fast OSINT and military-incident feed useful for proxy-theater awareness.",
  }),
  telegramSource({
    id: "hezbollah-osintdefender",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "OSINTdefender",
    handle: "OSINTdefender",
    tags: ["hezbollah", "telegram", "osint"],
    rationale: "High-frequency conflict monitoring and strike verification stream.",
  }),
  telegramSource({
    id: "hezbollah-osintops-news",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "OSIntOps News",
    handle: "Osintlatestnews",
    tags: ["hezbollah", "telegram", "osint"],
    rationale: "Additional raw conflict reporting lane for cross-checking border activity.",
  }),
  telegramSource({
    id: "hezbollah-osint-live",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "OSINT Live",
    handle: "osintlive",
    tags: ["hezbollah", "telegram", "osint"],
    rationale: "Low-latency conflict snapshots across the wider resistance theater.",
  }),
  worldMonitorSource({
    id: "hezbollah-humanitarian-summary",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Lebanon Humanitarian Summary",
    rpc: "conflict/v1/get-humanitarian-summary",
    selector: "LBN",
    kind: "api",
    tags: ["hezbollah", "humanitarian", "lebanon"],
    rationale: "Civilian-pressure signal relevant to Hezbollah's operating environment inside Lebanon.",
  }),
  worldMonitorSource({
    id: "hezbollah-unrest-lebanon",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Lebanon Unrest Events",
    rpc: "unrest/v1/list-unrest-events",
    selector: "LB",
    kind: "api",
    tags: ["hezbollah", "unrest", "lebanon"],
    rationale: "Captures protests and domestic pressure that shape Hezbollah's political room.",
  }),
  worldMonitorSource({
    id: "hezbollah-internet-outages",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Lebanon Internet Outages",
    rpc: "infrastructure/v1/list-internet-outages",
    selector: "LB",
    kind: "api",
    tags: ["hezbollah", "infrastructure", "internet"],
    rationale: "Communications-disruption proxy for domestic stress and wartime degradation.",
  }),
  worldMonitorSource({
    id: "hezbollah-climate-anomalies",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Lebanon Climate Anomalies",
    rpc: "climate/v1/list-climate-anomalies",
    selector: "LB",
    kind: "api",
    tags: ["hezbollah", "climate", "stress"],
    rationale: "Environmental strain layer that can worsen humanitarian and logistics pressure.",
  }),
  worldMonitorSource({
    id: "hezbollah-lebanon-coast-warnings",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Lebanon Coast Navigational Warnings",
    rpc: "maritime/v1/list-navigational-warnings",
    selector: "lebanon-coast",
    kind: "api",
    tags: ["hezbollah", "maritime", "coast"],
    rationale: "Coastal maritime-warning layer relevant to Beirut and southern Lebanese littoral activity.",
  }),
  worldMonitorSource({
    id: "hezbollah-blue-line-incidents",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Blue Line Incident Tracker",
    rpc: "conflict/v1/list-acled-events",
    selector: "blue-line",
    tags: ["hezbollah", "blue-line", "conflict-events"],
    rationale: "Structured incident feed for launch, raid, and interdiction patterns along the Blue Line.",
  }),
  worldMonitorSource({
    id: "hezbollah-south-lebanon-strike-heat",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "South Lebanon Strike Heat",
    rpc: "wildfire/v1/list-fire-detections",
    selector: "south-lebanon",
    tags: ["hezbollah", "thermal", "strike-verification"],
    rationale: "Thermal strike-verification layer for launch areas, bombardment zones, and fire persistence in south Lebanon.",
  }),
  worldMonitorSource({
    id: "hezbollah-bekaa-transit-watch",
    agentId: "hezbollah",
    delivery: "training_core",
    name: "Bekaa Transit Corridor Watch",
    rpc: "conflict/v1/list-acled-events",
    selector: "bekaa-syria-corridor",
    tags: ["hezbollah", "bekaa", "logistics-corridor"],
    rationale: "Tracks corridor disruptions, interdiction, and sustainment movement between the Bekaa and Syria.",
  }),

  rssSource({
    id: "gulf-arabian-business",
    agentId: "gulf",
    delivery: "training_core",
    name: "Arabian Business",
    url: "https://news.google.com/rss/search?q=site:arabianbusiness.com+(Saudi+Arabia+OR+UAE+OR+GCC)+when:7d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["gulf", "business", "gcc"],
    rationale: "GCC business and investment coverage.",
  }),
  rssSource({
    id: "gulf-the-national-gcc",
    agentId: "gulf",
    delivery: "training_core",
    name: "The National (GCC Query Set)",
    url: "https://news.google.com/rss/search?q=site:thenationalnews.com+(Abu+Dhabi+OR+UAE+OR+Saudi)+when:7d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["gulf", "uae", "regional"],
    rationale: "UAE and GCC political-economic framing.",
  }),
  rssSource({
    id: "gulf-gulf-investments",
    agentId: "gulf",
    delivery: "training_core",
    name: "Gulf Investments",
    url: "https://news.google.com/rss/search?q=(%22Saudi+Arabia%22+OR+%22UAE%22+OR+%22Abu+Dhabi%22)+investment+infrastructure+when:7d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["gulf", "investments", "infrastructure"],
    rationale: "Saudi/UAE investment and infrastructure signal.",
  }),
  worldMonitorSource({
    id: "gulf-gulf-quotes",
    agentId: "gulf",
    delivery: "training_core",
    name: "Gulf Economies Panel",
    rpc: "market/v1/list-gulf-quotes",
    kind: "api",
    tags: ["gulf", "markets", "currencies"],
    rationale: "GCC indices, currencies, and oil-linked quotes in one bundle.",
  }),
  worldMonitorSource({
    id: "gulf-oil-energy",
    agentId: "gulf",
    delivery: "training_core",
    name: "Oil and Energy Analytics",
    rpc: "market/v1/list-commodity-quotes",
    selector: "oil-energy-analytics",
    kind: "api",
    tags: ["gulf", "oil", "energy"],
    rationale: "WTI, Brent, and related energy-market stress relevant to Gulf hedging.",
  }),
  worldMonitorSource({
    id: "gulf-chokepoint-status",
    agentId: "gulf",
    delivery: "training_core",
    name: "Maritime Chokepoint Disruption Panel",
    rpc: "supply-chain/v1/get-chokepoint-status",
    kind: "api",
    tags: ["gulf", "shipping", "hormuz"],
    rationale: "Strait of Hormuz and nearby chokepoint disruption risk from AIS-linked signals.",
  }),
  worldMonitorSource({
    id: "gulf-fdi-layer",
    agentId: "gulf",
    delivery: "training_core",
    name: "Gulf FDI Layer",
    rpc: "economic/v1/list-gulf-fdi",
    kind: "structured",
    tags: ["gulf", "fdi", "capital-flows"],
    rationale: "Regional leverage and overseas economic exposure.",
  }),
  videoSource({
    id: "gulf-sky-news-arabia-live",
    agentId: "gulf",
    delivery: "live_demo",
    name: "Sky News Arabia Live",
    channel: "@skynewsarabia",
    tags: ["gulf", "live", "tv"],
    rationale: "Arab-region live coverage from a Gulf-aligned lens.",
  }),
  videoSource({
    id: "gulf-mecca-webcam",
    agentId: "gulf",
    delivery: "live_demo",
    name: "Mecca Webcam",
    channel: "@MakkahLive",
    tags: ["gulf", "live", "webcam"],
    rationale: "Symbolic and social-stability context in the Saudi sphere.",
  }),
  rssSource({
    id: "gulf-arab-news",
    agentId: "gulf",
    delivery: "training_core",
    name: "Arab News",
    url: "https://news.google.com/rss/search?q=site:arabnews.com+when:7d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["gulf", "saudi", "regional"],
    rationale: "Saudi-facing regional political and economic coverage.",
  }),
  rssSource({
    id: "gulf-reuters-business",
    agentId: "gulf",
    delivery: "training_core",
    name: "Reuters Business",
    url: "https://news.google.com/rss/search?q=site:reuters.com+business+markets&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["gulf", "markets", "wire"],
    rationale: "Global business-market reporting that captures oil and shipping spillovers.",
  }),
  rssSource({
    id: "gulf-cnbc",
    agentId: "gulf",
    delivery: "training_core",
    name: "CNBC",
    url: "https://www.cnbc.com/id/100003114/device/rss/rss.html",
    allowlistStatus: "allowed",
    tags: ["gulf", "markets", "broadcast"],
    rationale: "Fast financial-media coverage of energy and market volatility.",
  }),
  rssSource({
    id: "gulf-yahoo-finance",
    agentId: "gulf",
    delivery: "training_core",
    name: "Yahoo Finance",
    url: "https://finance.yahoo.com/news/rssindex",
    allowlistStatus: "allowed",
    tags: ["gulf", "markets", "portfolio"],
    rationale: "Broad market and commodity feed for GCC hedging behavior.",
  }),
  worldMonitorSource({
    id: "gulf-shipping-rates",
    agentId: "gulf",
    delivery: "training_core",
    name: "Shipping Rates Monitor",
    rpc: "supply-chain/v1/get-shipping-rates",
    kind: "api",
    tags: ["gulf", "shipping", "rates"],
    rationale: "Freight-cost signal tied to Red Sea and Hormuz disruptions.",
  }),
  worldMonitorSource({
    id: "gulf-critical-minerals",
    agentId: "gulf",
    delivery: "training_core",
    name: "Critical Minerals Monitor",
    rpc: "supply-chain/v1/get-critical-minerals",
    kind: "api",
    tags: ["gulf", "minerals", "supply-chain"],
    rationale: "Strategic materials view relevant to industrial and sovereign hedging decisions.",
  }),
  worldMonitorSource({
    id: "gulf-trade-restrictions",
    agentId: "gulf",
    delivery: "training_core",
    name: "Trade Restrictions Monitor",
    rpc: "trade/v1/get-trade-restrictions",
    kind: "api",
    tags: ["gulf", "trade", "restrictions"],
    rationale: "Tracks active restrictions that can reshape Gulf commercial routing.",
  }),
  worldMonitorSource({
    id: "gulf-tariff-trends",
    agentId: "gulf",
    delivery: "training_core",
    name: "Tariff Trends Monitor",
    rpc: "trade/v1/get-tariff-trends",
    kind: "api",
    tags: ["gulf", "trade", "tariffs"],
    rationale: "Trade-policy trendline for longer-horizon Gulf coalition planning.",
  }),
  videoSource({
    id: "gulf-al-arabiya-live",
    agentId: "gulf",
    delivery: "live_demo",
    name: "Al Arabiya Live",
    channel: "@AlArabiya",
    tags: ["gulf", "live", "regional-media"],
    rationale: "Gulf-aligned live television coverage during regional escalation.",
  }),
  videoSource({
    id: "gulf-aljazeera-arabic-live",
    agentId: "gulf",
    delivery: "live_demo",
    name: "Al Jazeera Arabic Live",
    channel: "@AljazeeraChannel",
    tags: ["gulf", "live", "regional-media"],
    rationale: "Countervailing Arab broadcast lane for live narrative competition.",
  }),
  videoSource({
    id: "gulf-middle-east-webcam",
    agentId: "gulf",
    delivery: "live_demo",
    name: "Middle East Regional Webcam",
    channel: "@MiddleEastCams",
    tags: ["gulf", "live", "webcam"],
    rationale: "Regional multicam view for symbolic and urban stability checks in demos.",
  }),

  worldMonitorSource({
    id: "oversight-cii",
    agentId: "oversight",
    delivery: "training_core",
    name: "Country Instability Index (CII)",
    rpc: "intelligence/v1/get-risk-scores",
    selector: "cii",
    kind: "api",
    tags: ["oversight", "meta", "instability"],
    rationale: "Global instability baseline across countries and time.",
  }),
  worldMonitorSource({
    id: "oversight-hotspot-escalation",
    agentId: "oversight",
    delivery: "training_core",
    name: "Hotspot Escalation Score",
    rpc: "intelligence/v1/get-risk-scores",
    selector: "hotspot-escalation",
    kind: "api",
    tags: ["oversight", "meta", "hotspots"],
    rationale: "Detects areas where multiple signals are converging into escalation.",
  }),
  worldMonitorSource({
    id: "oversight-strategic-risk",
    agentId: "oversight",
    delivery: "training_core",
    name: "Strategic Risk Score",
    rpc: "intelligence/v1/get-risk-scores",
    selector: "strategic-risk",
    kind: "api",
    tags: ["oversight", "meta", "risk"],
    rationale: "High-level risk estimate for intervention timing.",
  }),
  worldMonitorSource({
    id: "oversight-cross-stream-correlation",
    agentId: "oversight",
    delivery: "training_core",
    name: "Cross-Stream Correlation Engine",
    rpc: "intelligence/v1/get-risk-scores",
    selector: "cross-stream-correlation",
    kind: "structured",
    tags: ["oversight", "meta", "correlation"],
    rationale: "Finds multi-signal patterns single actors may miss.",
  }),
  worldMonitorSource({
    id: "oversight-intelligence-gap-tracker",
    agentId: "oversight",
    delivery: "training_core",
    name: "Intelligence Gap Tracker",
    rpc: "intelligence/v1/get-risk-scores",
    selector: "data-freshness",
    kind: "structured",
    tags: ["oversight", "meta", "freshness"],
    rationale: "Flags stale or missing critical signals to prevent false confidence.",
  }),
  worldMonitorSource({
    id: "oversight-headline-memory-brief",
    agentId: "oversight",
    delivery: "training_core",
    name: "Headline Memory / World Brief / AI Deduction",
    rpc: "intelligence/v1/get-country-intel-brief",
    selector: "headline-memory-world-brief",
    kind: "structured",
    tags: ["oversight", "meta", "ai-brief"],
    rationale: "Synthesized cross-source reasoning layer for oversight explanations.",
  }),
  worldMonitorSource({
    id: "oversight-hapi-displacement",
    agentId: "oversight",
    delivery: "training_core",
    name: "HAPI Displacement Data",
    rpc: "displacement/v1/get-displacement-summary",
    kind: "api",
    tags: ["oversight", "humanitarian", "displacement"],
    rationale: "Civilian displacement and humanitarian stress signal.",
  }),
  worldMonitorSource({
    id: "oversight-worldpop-exposure",
    agentId: "oversight",
    delivery: "training_core",
    name: "WorldPop Population Exposure",
    rpc: "displacement/v1/get-population-exposure",
    kind: "api",
    tags: ["oversight", "humanitarian", "population"],
    rationale: "Estimates likely civilian exposure around conflict or disaster events.",
  }),
  worldMonitorSource({
    id: "oversight-security-advisories",
    agentId: "oversight",
    delivery: "training_core",
    name: "Security Advisories Aggregation",
    rpc: "intelligence/v1/get-risk-scores",
    selector: "security-advisories",
    kind: "structured",
    tags: ["oversight", "humanitarian", "advisories"],
    rationale: "Government and health-risk warning layer that acts as an external guardrail.",
  }),
  worldMonitorSource({
    id: "oversight-ucdp-events",
    agentId: "oversight",
    delivery: "training_core",
    name: "UCDP Conflict Events",
    rpc: "conflict/v1/list-ucdp-events",
    selector: "global",
    kind: "api",
    tags: ["oversight", "conflict", "events"],
    rationale: "Global conflict-event baseline for cross-theater escalation monitoring.",
  }),
  worldMonitorSource({
    id: "oversight-natural-events",
    agentId: "oversight",
    delivery: "training_core",
    name: "Natural Events Monitor",
    rpc: "natural/v1/list-natural-events",
    selector: "global",
    kind: "api",
    tags: ["oversight", "natural", "events"],
    rationale: "Cross-domain disaster layer that can interact with conflict systems.",
  }),
  worldMonitorSource({
    id: "oversight-earthquakes",
    agentId: "oversight",
    delivery: "training_core",
    name: "Earthquakes Feed",
    rpc: "seismology/v1/list-earthquakes",
    selector: "global",
    kind: "api",
    tags: ["oversight", "seismology", "events"],
    rationale: "Global earthquake monitoring for compounding humanitarian and infrastructure risk.",
  }),
  worldMonitorSource({
    id: "oversight-internet-outages",
    agentId: "oversight",
    delivery: "training_core",
    name: "Internet Outages Baseline",
    rpc: "infrastructure/v1/list-internet-outages",
    selector: "global",
    kind: "api",
    tags: ["oversight", "infrastructure", "internet"],
    rationale: "System-wide communications degradation layer for detecting hidden crises.",
  }),
  worldMonitorSource({
    id: "oversight-cable-health",
    agentId: "oversight",
    delivery: "training_core",
    name: "Cable Health Advisory Layer",
    rpc: "infrastructure/v1/get-cable-health",
    selector: "global",
    kind: "api",
    tags: ["oversight", "infrastructure", "cables"],
    rationale: "Undersea cable health and warning layer for systemic resilience monitoring.",
  }),
  worldMonitorSource({
    id: "oversight-climate-anomalies",
    agentId: "oversight",
    delivery: "training_core",
    name: "Climate Anomalies Monitor",
    rpc: "climate/v1/list-climate-anomalies",
    selector: "global",
    kind: "api",
    tags: ["oversight", "climate", "stress"],
    rationale: "Global climate anomalies that may amplify instability and humanitarian risk.",
  }),
  worldMonitorSource({
    id: "oversight-cyber-threats",
    agentId: "oversight",
    delivery: "training_core",
    name: "Cyber Threats Feed",
    rpc: "cyber/v1/list-cyber-threats",
    selector: "global",
    kind: "api",
    tags: ["oversight", "cyber", "threats"],
    rationale: "Cross-border cyber IOC layer for latent escalation and infrastructure risk.",
  }),
  worldMonitorSource({
    id: "oversight-feed-digest",
    agentId: "oversight",
    delivery: "training_core",
    name: "Feed Digest Aggregator",
    rpc: "news/v1/list-feed-digest",
    selector: "oversight-digest",
    kind: "structured",
    tags: ["oversight", "news", "digest"],
    rationale: "Deduplicated multi-feed digest for broad situational awareness.",
  }),
  worldMonitorSource({
    id: "oversight-gdelt-search",
    agentId: "oversight",
    delivery: "training_core",
    name: "GDELT Document Search",
    rpc: "intelligence/v1/search-gdelt-documents",
    selector: "global-escalation",
    kind: "structured",
    tags: ["oversight", "gdelt", "documents"],
    rationale: "Cross-source document search to detect emerging event clusters and narratives.",
  }),
  worldMonitorSource({
    id: "oversight-pizzint-status",
    agentId: "oversight",
    delivery: "training_core",
    name: "Pizzint Status",
    rpc: "intelligence/v1/get-pizzint-status",
    selector: "oversight-watch",
    kind: "structured",
    tags: ["oversight", "meta", "watch"],
    rationale: "Supplementary anomaly signal for unusual activity and open-source chatter shifts.",
  }),
  rssSource({
    id: "oversight-unhcr-feed",
    agentId: "oversight",
    delivery: "live_demo",
    name: "UNHCR Feed",
    url: "https://news.google.com/rss/search?q=site:unhcr.org+OR+UNHCR+refugees+when:3d&hl=en-US&gl=US&ceid=US:en",
    allowlistStatus: "allowed",
    tags: ["oversight", "live", "humanitarian"],
    rationale: "Live humanitarian trend visibility during monitored sessions.",
  }),
];

export const AGENT_SOURCE_REGISTRY: Record<AgentId, DataSourceSpec[]> = {
  us: sources.filter((source) => source.agentId === "us"),
  israel: sources.filter((source) => source.agentId === "israel"),
  iran: sources.filter((source) => source.agentId === "iran"),
  hezbollah: sources.filter((source) => source.agentId === "hezbollah"),
  gulf: sources.filter((source) => source.agentId === "gulf"),
  oversight: sources.filter((source) => source.agentId === "oversight"),
};

export function getSourcesForAgent(agentId: AgentId, delivery?: SourceDelivery): DataSourceSpec[] {
  const sourcesForAgent = AGENT_SOURCE_REGISTRY[agentId];
  if (!delivery) {
    return sourcesForAgent;
  }
  return sourcesForAgent.filter((source) => source.delivery === delivery);
}

export function getTrainingSourcesForAgent(agentId: AgentId): DataSourceSpec[] {
  return getSourcesForAgent(agentId, "training_core");
}

export function getLiveSourcesForAgent(agentId: AgentId): DataSourceSpec[] {
  return getSourcesForAgent(agentId, "live_demo");
}

export function getAllSources(): DataSourceSpec[] {
  return sources;
}