File size: 121,217 Bytes
360df42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
1871
1872
1873
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099
2100
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147
2148
2149
2150
2151
2152
2153
2154
2155
2156
2157
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188
2189
2190
2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227
2228
2229
2230
2231
2232
2233
2234
2235
2236
2237
2238
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257
2258
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
2289
2290
2291
2292
2293
2294
2295
2296
2297
2298
2299
2300
2301
2302
2303
2304
2305
2306
2307
2308
2309
2310
2311
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336
2337
2338
2339
2340
2341
2342
2343
2344
2345
2346
2347
2348
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394
2395
2396
2397
2398
2399
2400
2401
2402
2403
2404
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423
2424
2425
2426
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
- id: markdown_editor-external-T01
  name: Set a welcome sentence
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_text
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Project note”, replace the content with: Welcome to ComponentBench! The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Project note”, replace the content with: Welcome to ComponentBench! The task will finish automatically when done.'
  setup_description: |
    Layout: isolated_card centered in the viewport.
    Component: a single Markdown editor labeled “Project note”.
    Configuration:
      - Standard toolbar (Bold, Italic, Link, Quote, Code, List, Preview toggle, Clear).
      - Live typing updates the editor value immediately (no Save/Apply button in this task).
      - A small rendered preview area is visible below the editor (read-only) but is not required.
    Initial state: the editor is empty and focused only when clicked.
    Distractors: none (only a title and the editor card).
    Feedback: character counter updates as you type; no toasts.
  scene_context: &id001
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: easy
    tier: L0
    axes_ratings:
      precision_requirement: 2
      target_acquisition: 1
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 1
    justification: Single editor, no overlays, and the target text is short and fully visible as plain text.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: Welcome to ComponentBench!
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Leaving the editor blank or partially filled.
  - Extra characters (including extra punctuation) beyond the target sentence.
  - Correct text entered into a non-target element (there are no other editors in this task).
  expected_interaction_path: Click into the editor  type the sentence (or paste it)  stop when the content matches.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T02
  name: Write a simple release note
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_formatted
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Release note”, enter a heading and a sentence so the content becomes exactly:

    # Release notes

    Version 1.0 ships today.

    The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Release note”, enter a heading and a sentence so the content becomes exactly:

    # Release notes

    Version 1.0 ships today.

    The task will finish automatically when done.'
  setup_description: |
    Layout: isolated_card anchored near the top-left of the viewport (not centered).
    Component: one Markdown editor labeled “Release note”.
    Configuration:
      - Standard toolbar is present but not required (typing markdown is sufficient).
      - Editor height is medium; no internal scrolling is needed for this short content.
      - Preview is shown below the editor and updates as you type.
    Initial state: editor contains a placeholder hint (“Write a release note…”), but the value is empty.
    Distractors: none.
    Feedback: preview updates immediately; no Save/Apply.
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: top_left
    scale: default
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: easy
    tier: L0
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 1
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 1
    justification: You only need to type a short, visible markdown snippet; the main challenge is including the newline between heading and paragraph.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        # Release notes
        Version 1.0 ships today.
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - 'Missing the leading # in the heading.'
  - Putting everything on one line (no line break).
  - Extra blank lines or extra text beyond the two lines.
  expected_interaction_path: Click editor  type the two-line markdown  verify preview shows a heading and a paragraph.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T03
  name: Create a shopping list
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_formatted
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Groceries”, enter this markdown exactly:

    ## Shopping list

    - Apples

    - Bread

    - Milk

    The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Groceries”, enter this markdown exactly:

    ## Shopping list

    - Apples

    - Bread

    - Milk

    The task will finish automatically when done.'
  setup_description: |
    Layout: isolated_card centered.
    Component: one Markdown editor labeled “Groceries”.
    Configuration:
      - Scale is set to small (smaller toolbar icons and tighter padding inside the card).
      - Standard toolbar is visible above the textarea.
      - Preview is shown below the editor.
    Initial state: editor is empty.
    Distractors: none.
    Feedback: live preview; no Save/Apply.
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: small
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: easy
    tier: L1
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 2
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 1
    justification: Small scale reduces target sizes slightly, but the content is short and follows a common markdown pattern.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        ## Shopping list
        - Apples
        - Bread
        - Milk
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - 'Using a different heading level (e.g., one # instead of ##).'
  - Using numbered list formatting instead of bullets.
  - Typos in any item names.
  expected_interaction_path: Click editor  type heading  type three bullet lines  confirm preview shows a list.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T04
  name: Clear a prefilled draft
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: clear_reset
  secondary_template: null
  browsergym_goal: Clear the Markdown editor labeled “Draft” so it becomes completely empty. The task will finish automatically when done.
  ui_copy: Clear the Markdown editor labeled “Draft” so it becomes completely empty. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Component: one Markdown editor labeled “Draft”.
    Configuration:
      - Standard toolbar includes a clearly labeled “Clear” control (trash icon + text).
      - Clearing immediately sets the editor value to empty (no confirmation dialog).
      - Preview panel remains visible below (and becomes blank when cleared).
    Initial state: editor starts with a short draft:
      - “This is a temporary draft.”
      - “Delete it before publishing.”
    Distractors: none.
    Feedback: the preview clears immediately; no toast.
  scene_context: *id001
  difficulty:
    difficulty_bucket: easy
    tier: L0
    axes_ratings:
      precision_requirement: 2
      target_acquisition: 2
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 2
      semantic_observability: 5
      disambiguation_load: 1
    justification: The only required action is to use the editor’s clear/reset affordance; the target state is an empty value that’s easy to observe.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: ''
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
      empty_after_full_strip: true
  negative_cases:
  - Leaving any text behind (including only one of the original lines).
  - Leaving only whitespace characters (spaces/newlines) in the editor.
  - Clearing a non-existent other editor (there is only one).
  expected_interaction_path: Click the editor toolbar “Clear”  confirm the textarea is empty and preview shows nothing.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T05
  name: Switch to edit mode in dark theme
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: toggle_state
  secondary_template: null
  browsergym_goal: Switch the Markdown editor labeled “Policy” to Edit mode (so you can type in it). The task will finish automatically when done.
  ui_copy: Switch the Markdown editor labeled “Policy” to Edit mode (so you can type in it). The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Theme: dark mode (dark background, light text).
    Component: one Markdown editor labeled “Policy”.
    Configuration:
      - The editor supports three view modes: Edit, Live (split), and Preview.
      - A mode toggle group is shown in the editor header/toolbar with accessible labels (“Edit”, “Live”, “Preview”).
    Initial state: the editor opens in Preview mode (textarea is read-only/disabled; preview is shown).
    Content: a short markdown paragraph is already present.
    Distractors: none.
    Feedback: switching modes changes whether the textarea is editable and whether the split preview is shown.
  scene_context:
    theme: dark
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: easy
    tier: L1
    axes_ratings:
      precision_requirement: 1
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 1
    justification: The task is only to change a mode toggle; dark theme slightly reduces contrast and icon salience but the target label is explicit.
  success_trigger:
    human_readable:
    - Markdown editor view mode equals 'edit' (e.g., edit / live-split / preview).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state:
        mode: edit
      tolerance: null
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: component_mode
  negative_cases:
  - Leaving the editor in Preview mode.
  - Switching to Live mode instead of Edit mode.
  - Toggling fullscreen or other toolbar controls without changing the mode.
  expected_interaction_path: Find the mode toggle  click “Edit”  verify the textarea becomes editable.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T06
  name: Show preview-only mode
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: toggle_state
  secondary_template: null
  browsergym_goal: Switch the Markdown editor labeled “Meeting minutes” to Preview mode (preview-only). The task will finish automatically when done.
  ui_copy: Switch the Markdown editor labeled “Meeting minutes” to Preview mode (preview-only). The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Component: one Markdown editor labeled “Meeting minutes”.
    Configuration:
      - Mode toggle group (Edit / Live / Preview) is shown in the editor header.
      - In Live mode, the editor is split: textarea on the left and preview on the right.
      - In Preview mode, only the rendered preview is shown and typing is disabled.
    Initial state: the editor starts in Live (split) mode with a short markdown note already entered.
    Distractors: none.
    Feedback: switching to Preview collapses the textarea and leaves only the rendered preview visible.
  scene_context: *id001
  difficulty:
    difficulty_bucket: easy
    tier: L0
    axes_ratings:
      precision_requirement: 1
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 1
    justification: It’s a single explicit mode switch with immediate visual feedback and no competing instances.
  success_trigger:
    human_readable:
    - Markdown editor view mode equals 'preview' (e.g., edit / live-split / preview).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state:
        mode: preview
      tolerance: null
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: component_mode
  negative_cases:
  - Leaving the editor in Live mode (split view).
  - Switching to Edit mode instead of Preview mode.
  - Scrolling or typing without changing the mode.
  expected_interaction_path: Use the mode toggle  click “Preview”  confirm the textarea disappears and preview remains.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T07
  name: Fill a description inside a form
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_text
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Description”, enter: Short description: batteries included. The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Description”, enter: Short description: batteries included. The task will finish automatically when done.'
  setup_description: |
    Layout: form_section centered — a realistic “Create item” form with multiple fields.
    Fields shown (distractors):
      - Text input: “Title”
      - Dropdown: “Category”
      - Toggle: “Featured”
    Target component: one Markdown editor labeled “Description”.
    Configuration:
      - Standard toolbar is visible.
      - No Save/Apply; the form has a separate “Submit” button, but it is NOT required for this task.
    Initial state: Description editor contains a placeholder but is empty.
    Feedback: preview updates live; inline helper text shows “Markdown supported”.
  scene_context:
    theme: light
    spacing: comfortable
    layout: form_section
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: low
  difficulty:
    difficulty_bucket: easy
    tier: L0
    axes_ratings:
      precision_requirement: 2
      target_acquisition: 2
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 2
    justification: There is some form clutter, but only one markdown editor and the target text is simple.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: 'Short description: batteries included.'
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Typing the text into the Title field or any other non-editor control.
  - Adding extra lines or extra punctuation beyond the target sentence.
  - Leaving the Description editor unchanged.
  expected_interaction_path: Locate the Description editor in the form  click into it  type the sentence.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T08
  name: Match a simple reference preview
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: match_reference
  secondary_template: null
  browsergym_goal: Make the rendered preview of the Markdown editor labeled “Answer” match the Reference preview card. The task will finish automatically when done.
  ui_copy: Make the rendered preview of the Markdown editor labeled “Answer” match the Reference preview card. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered, split into two columns.
    Left column: a single Markdown editor labeled “Answer”.
    Right column: a read-only “Reference preview” card that renders the target markdown visually (no source text is shown).
    Configuration:
      - Editor is in Live (split) mode so you can see your own preview while editing.
      - Toolbar is present but optional; you can type markdown directly.
    Initial state: the editor starts empty.
    Distractors: none besides the reference preview card.
    Feedback: your preview updates immediately; the reference preview is static.

    Reference preview content (for implementers/checker): it renders the phrase “Hello, world!” with the word “world” in bold.
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: default
    instances: 1
    guidance: visual
    clutter: none
  difficulty:
    difficulty_bucket: easy
    tier: L1
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 1
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 3
      disambiguation_load: 1
    justification: The goal is visually specified, but the target formatting is simple and can be achieved by typing a short markdown string.
  success_trigger:
    human_readable:
    - Rendered preview for the target editor instance is semantically equivalent to the reference panel 'ref-hello-bold' (ignoring trivial whitespace differences).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: matches_reference
      target_state:
        reference_id: ref-hello-bold
        reference_surface: rendered_preview_panel
        match_basis: rendered_markdown_equivalence
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
        render_equivalence: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Preview looks similar but differs (e.g., missing bold or different punctuation).
  - Matching only part of the reference (partial text).
  - Editing some other field (there is only one editor).
  expected_interaction_path: Observe the reference preview  type markdown in the editor until your preview visually matches it.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T09
  name: Write a one-line blockquote in compact mode
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_formatted
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Reminder”, enter a single-line blockquote that reads: Note: Bring ID. The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Reminder”, enter a single-line blockquote that reads: Note: Bring ID. The task will finish automatically when done.'
  setup_description: |
    Layout: isolated_card centered.
    Spacing: compact (tighter padding and smaller line-height).
    Component: one Markdown editor labeled “Reminder”.
    Configuration:
      - Standard toolbar present but not required.
      - Live preview is shown below.
    Initial state: editor is empty.
    Distractors: none.
    Feedback: preview updates immediately.
  scene_context:
    theme: light
    spacing: compact
    layout: isolated_card
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: easy
    tier: L0
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 2
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 1
    justification: Compact spacing slightly increases targeting difficulty, but it’s still a single, short markdown line with immediate feedback.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: '> Note: Bring ID.'
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Missing the leading > blockquote marker.
  - Adding extra lines or extra text beyond the required quote.
  - Typing the sentence without blockquote formatting.
  expected_interaction_path: 'Click into editor → type `> Note: Bring ID.` → verify preview shows a blockquote.'
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T10
  name: Open the markdown cheatsheet popover
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: open_overlay
  secondary_template: null
  browsergym_goal: Open the “Markdown cheatsheet” help popover for the Markdown editor labeled “Notes”. Leave it open. The task will finish automatically when done.
  ui_copy: Open the “Markdown cheatsheet” help popover for the Markdown editor labeled “Notes”. Leave it open. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card anchored near the top-right of the viewport.
    Component: one Markdown editor labeled “Notes”.
    Configuration:
      - A “Help” icon/button (question mark) is part of the editor header.
      - Clicking Help opens a popover overlay titled “Markdown cheatsheet” with example syntax.
      - The popover stays open until dismissed (click outside or press Escape).
    Initial state: cheatsheet popover is closed; editor contains a short note but it does not matter.
    Distractors: none.
    Feedback: opening the popover adds an overlay layer above the editor.
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: top_right
    scale: default
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: easy
    tier: L1
    axes_ratings:
      precision_requirement: 1
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 2
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 1
    justification: The task is an overlay-open action with explicit labeling; the main challenge is locating a small header control.
  success_trigger:
    human_readable:
    - The editor's overlay 'markdown_cheatsheet' is open.
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state:
        overlay: markdown_cheatsheet
        open: true
      tolerance: null
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: component_overlay_state
  negative_cases:
  - Opening a different overlay (e.g., fullscreen) but not the cheatsheet.
  - Closing the cheatsheet after opening it.
  - Scrolling or editing text without opening the cheatsheet.
  expected_interaction_path: Locate the Help (?) control in the editor header  click it  verify the cheatsheet popover is visible.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T11
  name: Bold a single word
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: editor_operation
  secondary_template: null
  browsergym_goal: In the Markdown editor labeled “Instruction line”, make only the word “instructions” bold, keeping the rest of the sentence the same. The task will finish automatically when done.
  ui_copy: In the Markdown editor labeled “Instruction line”, make only the word “instructions” bold, keeping the rest of the sentence the same. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Component: one Markdown editor labeled “Instruction line”.
    Configuration:
      - Standard toolbar includes Bold and Italic buttons.
      - Editor is in Edit mode (no split preview), but a small preview panel is visible below.
    Initial state: the editor is prefilled with plain text (no markdown):
      - “Please read the instructions carefully.”
    Distractors: none.
    Feedback: preview updates to show bold formatting once applied.
  scene_context: *id001
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 1
    justification: Requires selecting or precisely editing a substring and producing correct markdown bold syntax; otherwise the scene is simple.
  success_trigger:
    human_readable:
    - Editor markdown value, after normalization, matches one of the acceptable target strings.
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: set_membership
      target_state:
      - Please read the **instructions** carefully.
      - Please read the __instructions__ carefully.
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Bolding the wrong word (e.g., “read” or “carefully”).
  - Making the entire sentence bold instead of only the target word.
  - Leaving the sentence unchanged.
  expected_interaction_path: Select the word ‘instructions’  click Bold (or type ** around it)  verify preview shows only that word bold.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T12
  name: Turn three lines into a bullet list (two instances)
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: editor_operation
  secondary_template: null
  browsergym_goal: In the Markdown editor labeled “Long answer”, convert the three lines (Alpha, Beta, Gamma) into an unordered bullet list, keeping the same words and order. The task will finish automatically when done.
  ui_copy: In the Markdown editor labeled “Long answer”, convert the three lines (Alpha, Beta, Gamma) into an unordered bullet list, keeping the same words and order. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered with two stacked editors.
    Components (instances): two Markdown editors of the same type:
      - “Short answer” (top)
      - “Long answer” (bottom)  ← TARGET
    Configuration:
      - Both editors have identical toolbars (List buttons, Bold/Italic, Preview toggle).
      - Each editor shows a small preview below itself.
    Initial state:
      - Short answer contains: “Alpha / Beta / Gamma” (single line, with slashes).
      - Long answer contains three plain lines:
          Alpha
          Beta
          Gamma
    Distractors: none besides the second editor instance.
    Feedback: using the Unordered List toolbar control or manual markdown will update the preview.
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: default
    instances: 2
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 3
    justification: Two visually similar editor instances require disambiguation, and formatting multiple lines as a list demands correct markdown structure.
  success_trigger:
    human_readable:
    - Editor markdown value, after normalization, matches one of the acceptable target strings.
    - No extra confirmation is required (live value is checked).
    - 'Predicate is evaluated only for the labeled instance: ''Long answer''.'
    canonical_predicate:
      predicate_type: set_membership
      target_state:
      - |-
        - Alpha
        - Beta
        - Gamma
      - |-
        * Alpha
        * Beta
        * Gamma
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: true
      target_instance_label_or_id: Long answer
      terminal_condition: true
      value_source: editor_value
      non_target_instances_must_remain:
        Short answer: Alpha / Beta / Gamma
  negative_cases:
  - Applying the bullet list formatting to the “Short answer” editor instead of “Long answer”.
  - Changing both editors (only the “Long answer” editor should change).
  - Creating a numbered list instead of bullets.
  - Leaving the content as three plain lines.
  expected_interaction_path: Click into the Long answer editor  select the three lines  click Unordered List (or add `- ` to each line)  verify preview shows bullets.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T13
  name: Insert a markdown link in a dashboard card
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_formatted
  secondary_template: null
  browsergym_goal: 'In the Markdown editor under “Announcement”, enter the sentence with a markdown link so the content becomes: Read the documentation for details. (The word “documentation” must be a link to https://example.com/docs.) The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor under “Announcement”, enter the sentence with a markdown link so the content becomes: Read the documentation for details. (The word “documentation” must be a link to https://example.com/docs.) The task will finish automatically when done.'
  setup_description: |
    Layout: dashboard — a two-column page with multiple cards (clutter medium).
    Non-target cards (distractors):
      - “Traffic” chart placeholder
      - “Recent activity” list
      - “Status” KPI tiles
    Target component: one Markdown editor in a card titled “Announcement”.
    Configuration:
      - Standard toolbar visible; live preview below the editor.
      - Editor is large enough that all text is visible without scrolling.
    Initial state: editor contains a short placeholder line (“Write an announcement…”), but the value is empty.
    Feedback: preview renders links as clickable styled text; no Save button.
  scene_context:
    theme: light
    spacing: comfortable
    layout: dashboard
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: medium
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 2
    justification: Requires correct bracket/parenthesis syntax for a markdown link while navigating moderate dashboard clutter.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: Read the [documentation](https://example.com/docs) for details.
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Using the correct URL but not making “documentation” a link.
  - Putting the URL somewhere else (not attached to the word).
  - Typos in the URL or link text.
  - Editing a non-target widget instead of the Announcement editor.
  expected_interaction_path: Locate the Announcement card  click editor  type the sentence with `[documentation](https://example.com/docs)`  verify preview shows linked word.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T14
  name: Edit a bio in a modal and save
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: confirm_cancel
  secondary_template: null
  browsergym_goal: 'Click “Edit bio”, then in the “Bio (Markdown)” editor set the content to exactly two lines:

    Hi! I''m Sam.

    I like markdown.

    Finally, click “Save changes”. The task will finish automatically when done.'
  ui_copy: 'Click “Edit bio”, then in the “Bio (Markdown)” editor set the content to exactly two lines:

    Hi! I''m Sam.

    I like markdown.

    Finally, click “Save changes”. The task will finish automatically when done.'
  setup_description: |
    Layout: modal_flow — a profile page with a modal editor.
    Background (clutter low): a “Profile” card shows the current bio as rendered markdown and an “Edit bio” button.
    Target component: the Markdown editor inside the “Edit bio” modal dialog.
    Modal behavior:
      - Clicking “Edit bio” opens a centered modal.
      - Modal contains a single Markdown editor labeled “Bio (Markdown)”.
      - Footer buttons: “Cancel” and “Save changes”.
      - Changes are NOT committed to the profile card until “Save changes” is clicked.
    Editor configuration inside modal:
      - Standard toolbar; preview shown below the textarea.
      - No internal scrolling needed for short bios.
    Initial state:
      - Current committed bio (shown on profile card): “(empty)”.
      - Modal editor starts empty when opened.
    Feedback:
      - On Save, modal closes and the profile card bio updates immediately.
      - No toast; the updated bio text is visibly rendered in the background card after closing.
  scene_context:
    theme: light
    spacing: comfortable
    layout: modal_flow
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: low
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 3
      feedback_dynamics: 3
      semantic_observability: 4
      disambiguation_load: 2
    justification: A modal overlay adds layering and requires an explicit Save to commit; the markdown itself is short and easy to verify.
  success_trigger:
    human_readable:
    - The committed (saved) bio markdown value equals the target after normalization (newline + trailing whitespace).
    - The “Save changes” control has been clicked to commit the modal draft.
    - The modal dialog is closed at terminal state.
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        Hi! I'm Sam.
        I like markdown.
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: true
      confirm_control: Save changes
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: committed_value
      overlay_state_required:
        bio_modal_open: false
  negative_cases:
  - Typing the correct content but clicking “Cancel” or closing the modal without saving.
  - Leaving the modal open after editing (must save and close).
  - Saving content that differs from the target (missing line break or extra text).
  - Entering the text into a non-modal field on the background page.
  expected_interaction_path: Click Edit bio  type/paste the two lines in the modal editor  click Save changes  confirm modal closes and the profile card shows the new bio.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T15
  name: Reset the editor to a default template
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: clear_reset
  secondary_template: null
  browsergym_goal: Click “Reset to template” for the Markdown editor labeled “Weekly update” so it restores the default weekly-update template. The task will finish automatically when done.
  ui_copy: Click “Reset to template” for the Markdown editor labeled “Weekly update” so it restores the default weekly-update template. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Component: one Markdown editor labeled “Weekly update”.
    Configuration:
      - Standard toolbar + an extra footer control labeled “Reset to template”.
      - Clicking “Reset to template” replaces the entire editor value with a predefined template.
      - Preview updates live.
    Initial state: editor contains a modified note (not matching the template), e.g. “Random thoughts…”.
    Distractors: none.
    Feedback: reset immediately changes the textarea value and preview; no confirmation dialog.
    Template content (for implementers/checker):
      # Weekly update
      - Wins:
      - Risks:
      - Next:
  scene_context: *id001
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 2
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 2
      semantic_observability: 5
      disambiguation_load: 1
    justification: Requires locating the correct reset affordance and verifying a multi-line template; otherwise there are no overlays or distractors.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        # Weekly update
        - Wins:
        - Risks:
        - Next:
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Clearing the editor instead of restoring the template.
  - Restoring only part of the template or leaving extra lines.
  - Manually editing the text but not matching the exact template structure.
  expected_interaction_path: Locate the footer control “Reset to template”  click it  verify the template appears in the editor.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T16
  name: Scroll to a TODO line and fix it
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: scroll_find
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Sprint notes”, scroll within the editor until you find the checklist line “TODO: add screenshots”. Change only “TODO” to “DONE”, leaving the rest unchanged. The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Sprint notes”, scroll within the editor until you find the checklist line “TODO: add screenshots”. Change only “TODO” to “DONE”, leaving the rest unchanged. The task will finish automatically when done.'
  setup_description: |2
        Layout: isolated_card anchored near the bottom-left of the viewport.
        Component: one Markdown editor labeled “Sprint notes”.
        Configuration:
          - The editor has a fixed height (about 10 visible lines); the textarea scrolls internally.
          - Standard toolbar is visible; live preview is shown below but is not required.
        Initial state: the editor is prefilled with a multi-section markdown document (see below).
        Prefilled content (for implementers/checker):
        # Sprint 5 Notes

    This document is intentionally long enough to require scrolling inside the editor.

    ## Summary
    - Completed the API wiring
    - Fixed flaky tests
    - Reviewed analytics events

    ## Details
    The team focused on stability work and documentation.

    ## Action items
    1. Follow up with design
    2. Update onboarding checklist
    3. Prepare demo script

    ## Checklist
    - [ ] TODO: add screenshots
    - [ ] Confirm links
    - [ ] Run spellcheck
        Distractors: none.
        Feedback: changes appear immediately in the textarea; no Save/Apply.
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: bottom_left
    scale: default
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 2
      density_choice_interference: 1
      depth_layering: 2
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 1
    justification: Requires internal scrolling to reach an off-screen line and a precise local edit without altering surrounding markdown.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        # Sprint 5 Notes

        This document is intentionally long enough to require scrolling inside the editor.

        ## Summary
        - Completed the API wiring
        - Fixed flaky tests
        - Reviewed analytics events

        ## Details
        The team focused on stability work and documentation.

        ## Action items
        1. Follow up with design
        2. Update onboarding checklist
        3. Prepare demo script

        ## Checklist
        - [ ] DONE: add screenshots
        - [ ] Confirm links
        - [ ] Run spellcheck
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Editing a different TODO (there is only one target line).
  - Changing the checkbox markers (e.g., switching [ ] to [x]) when not requested.
  - Adding/removing lines or changing other sections beyond the TODO→DONE replacement.
  - Not scrolling and editing only the visible top section.
  expected_interaction_path: Click into editor  scroll inside textarea to Checklist section  edit the TODO line to DONE  stop.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T17
  name: Preview mode on the correct instance
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: toggle_state
  secondary_template: null
  browsergym_goal: Switch only the Markdown editor labeled “Internal note” to Preview mode (preview-only). Do not change the mode of “Public note”. The task will finish automatically when done.
  ui_copy: Switch only the Markdown editor labeled “Internal note” to Preview mode (preview-only). Do not change the mode of “Public note”. The task will finish automatically when done.
  setup_description: |
    Layout: settings_panel — a settings page with a left-side navigation list and right-side panel.
    Clutter (low): a few toggles and dropdowns above the editors (not required).
    Components (instances): two Markdown editors in the right panel:
      - “Public note” (shown first)
      - “Internal note” (shown second)  ← TARGET
    Configuration:
      - Each editor has an identical mode toggle group (Edit / Live / Preview).
      - Both start in Edit mode.
      - Preview panels are hidden unless Live/Preview modes are enabled.
    Initial state:
      - Public note contains: “Visible to all users.”
      - Internal note contains: “Visible to staff only.”
    Feedback: switching modes immediately changes whether the textarea is editable for that instance.
  scene_context:
    theme: light
    spacing: comfortable
    layout: settings_panel
    placement: center
    scale: default
    instances: 2
    guidance: text
    clutter: low
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 1
      target_acquisition: 3
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 4
    justification: Multiple similar editor instances inside a cluttered settings panel create disambiguation load; the action itself is a simple mode toggle.
  success_trigger:
    human_readable:
    - For the target instance “Internal note”, the editor mode equals 'preview'.
    - The non-target instance “Public note” remains in its initial mode ('edit').
    canonical_predicate:
      predicate_type: equals
      target_state:
        mode: preview
      tolerance: null
      require_confirm: false
      confirm_control: null
      require_correct_instance: true
      target_instance_label_or_id: Internal note
      terminal_condition: true
      value_source: component_mode
      non_target_instances_must_remain:
        Public note:
          mode: edit
  negative_cases:
  - Switching “Public note” to Preview mode instead of “Internal note”.
  - Switching both editors (only Internal note should change).
  - Leaving Internal note in Edit or Live mode.
  expected_interaction_path: Locate Internal note editor  click its “Preview” toggle  ensure Public note toggle stays on Edit.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T18
  name: Match a callout reference in dark theme
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: match_reference
  secondary_template: null
  browsergym_goal: In the Markdown editor labeled “Callout”, make your rendered preview match the Reference preview card (a blockquote with a bold label). The task will finish automatically when done.
  ui_copy: In the Markdown editor labeled “Callout”, make your rendered preview match the Reference preview card (a blockquote with a bold label). The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered, dark theme.
    Component: one Markdown editor labeled “Callout”.
    Guidance:
      - A “Reference preview” card sits to the right of the editor and shows the target formatting visually.
      - Above the editor, helper text says: “Make your callout match the reference (blockquote with a bold label).”
    Configuration:
      - Editor starts in Live (split) mode so you can see your own preview while editing.
      - Toolbar present.
    Initial state: editor is empty.
    Distractors: none.
    Reference preview content (for implementers/checker): it renders a single blockquote line with bold “Note:” followed by “Doors close at 7pm.”
  scene_context:
    theme: dark
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: default
    instances: 1
    guidance: mixed
    clutter: none
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 3
      target_acquisition: 2
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 3
      disambiguation_load: 1
    justification: The target is visually specified and requires correct markdown nesting (blockquote + bold), but the snippet is short and easy to inspect.
  success_trigger:
    human_readable:
    - Rendered preview for the target editor instance is semantically equivalent to the reference panel 'ref-note-callout' (ignoring trivial whitespace differences).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: matches_reference
      target_state:
        reference_id: ref-note-callout
        reference_surface: rendered_preview_panel
        match_basis: rendered_markdown_equivalence
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
        render_equivalence: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Using bold without a blockquote, or a blockquote without the bold label.
  - Matching the words but not the formatting of the reference.
  - Adding extra lines beyond the single callout line.
  expected_interaction_path: Look at the reference callout  type markdown like a blockquote with bold label  adjust until preview matches.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
    Flexible matching (T18): also accepts structural match (blockquote + bold Note: + "Doors close at 7pm") in addition to exact string match.
- id: markdown_editor-external-T19
  name: Write an agenda in a small compact editor
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_formatted
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Agenda”, enter this markdown exactly:

    # Agenda

    1. Intro

    2. Demo

    3. Q&A

    The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Agenda”, enter this markdown exactly:

    # Agenda

    1. Intro

    2. Demo

    3. Q&A

    The task will finish automatically when done.'
  setup_description: |
    Layout: isolated_card centered.
    Spacing: compact; Scale: small (small toolbar icons and denser text).
    Component: one Markdown editor labeled “Agenda”.
    Configuration:
      - Standard toolbar present.
      - Preview is shown below; no Save/Apply.
    Initial state: editor is empty.
    Distractors: none.
    Feedback: live preview renders the ordered list.
  scene_context:
    theme: light
    spacing: compact
    layout: isolated_card
    placement: center
    scale: small
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 2
      density_choice_interference: 1
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 1
    justification: Ordered-list formatting and punctuation must be exact, and compact+small styling increases the chance of targeting/typing mistakes.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        # Agenda
        1. Intro
        2. Demo
        3. Q&A
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Using bullets instead of numbered list items.
  - Numbering that skips or duplicates items.
  - Missing the heading line or using a different heading level.
  - Typos (especially the ampersand in “Q&A”).
  expected_interaction_path: Click editor  type the heading and three numbered lines  verify preview shows a numbered list.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T20
  name: Edit a small markdown editor inside a table cell
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_text
  secondary_template: null
  browsergym_goal: 'In the table row “Release 1.0”, set the Markdown editor labeled “Notes (Release 1.0)” to: Ships on Friday. The task will finish automatically when done.'
  ui_copy: 'In the table row “Release 1.0”, set the Markdown editor labeled “Notes (Release 1.0)” to: Ships on Friday. The task will finish automatically when done.'
  setup_description: |
    Layout: table_cell — a releases table is shown with several rows and columns (clutter medium).
    Target location: in the “Notes” column for the row labeled “Release 1.0”, there is an inline Markdown editor (small scale) labeled “Notes (Release 1.0)”.
    Configuration:
      - The inline editor is always visible inside the cell (no popover), but it is small and requires precise clicking to focus.
      - Toolbar is minimized to a single row of icons; preview is hidden (edit-only) to conserve space.
      - No Save/Apply; live value is checked.
    Initial state: the Notes editor contains “(none)”.
    Distractors:
      - Other rows have similar “Notes” cells (read-only text, not editors).
      - The table has sortable headers and pagination controls (not required).
    Feedback: when focused, a caret appears and the textarea border highlights.
  scene_context:
    theme: light
    spacing: comfortable
    layout: table_cell
    placement: center
    scale: small
    instances: 1
    guidance: text
    clutter: medium
  difficulty:
    difficulty_bucket: mid
    tier: L1
    axes_ratings:
      precision_requirement: 2
      target_acquisition: 3
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 4
      disambiguation_load: 3
    justification: Small inline editor inside a table cell increases targeting difficulty and introduces similar nearby distractors, though the text content is simple.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: Ships on Friday.
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Editing the wrong row’s notes (any row other than “Release 1.0”).
  - Leaving the old text “(none)” in place.
  - Entering extra text or newlines beyond the target sentence.
  expected_interaction_path: Locate Release 1.0 row  click into its Notes editor  select existing text  type the sentence.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T21
  name: Create a 2×2 markdown table
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: editor_operation
  secondary_template: null
  browsergym_goal: In the Markdown editor labeled “Inventory table”, create a markdown table with columns Item and Qty and rows Apples=3 and Oranges=2. Make your preview match the reference table. The task will finish automatically when done.
  ui_copy: In the Markdown editor labeled “Inventory table”, create a markdown table with columns Item and Qty and rows Apples=3 and Oranges=2. Make your preview match the reference table. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Component: one Markdown editor labeled “Inventory table”.
    Guidance (mixed):
      - Text instructions describe the required table content.
      - A small “Reference preview” panel shows what the rendered table should look like (but the source markdown is not shown).
    Configuration:
      - Toolbar includes an “Insert table” control that inserts a 2×2 table skeleton in markdown.
      - Editor is in Live (split) mode so the preview updates alongside the textarea.
    Initial state: editor is empty.
    Distractors: none besides the reference panel.
    Feedback: preview renders a table when markdown pipes and header separator are correct.
    Reference preview content (for implementers/checker): a 2-column table with headers “Item” and “Qty”, and rows (Apples, 3) and (Oranges, 2).
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: default
    instances: 1
    guidance: mixed
    clutter: none
  difficulty:
    difficulty_bucket: hard
    tier: L2
    axes_ratings:
      precision_requirement: 5
      target_acquisition: 3
      density_choice_interference: 2
      depth_layering: 2
      feedback_dynamics: 2
      semantic_observability: 3
      disambiguation_load: 1
    justification: Tables require precise markdown structure (pipes + header separator) and typically involve small toolbar targets; even minor formatting errors break the rendered result.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        | Item | Qty |
        | --- | --- |
        | Apples | 3 |
        | Oranges | 2 |
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - A table that renders but has different headers or values.
  - Missing the header separator row (the `---` line).
  - Using commas or tabs instead of pipes so it does not form a markdown table.
  - Adding extra rows or columns.
  expected_interaction_path: Click Insert table (or type the table)  fill headers and cells  adjust until preview shows the correct 2×2 table.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
    Flexible matching (T21): uses semantic table parser — accepts any valid markdown table with headers Item/Qty and rows Apples/3, Oranges/2 regardless of pipe spacing or dash count.
- id: markdown_editor-external-T22
  name: Linkify a phrase to the support URL
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: editor_operation
  secondary_template: null
  browsergym_goal: In the Markdown editor labeled “Support message”, turn the words “support portal” into a markdown link to https://example.com/support, keeping the rest of the sentence the same. The task will finish automatically when done.
  ui_copy: In the Markdown editor labeled “Support message”, turn the words “support portal” into a markdown link to https://example.com/support, keeping the rest of the sentence the same. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Component: one Markdown editor labeled “Support message”.
    Configuration:
      - Toolbar includes a “Link” control. Clicking it opens a small in-editor popover dialog with two fields:
          • Link text
          • URL
        and an “Insert link” button.
      - Editor is in Edit mode with a preview panel below.
    Initial state: editor contains plain text:
      “For help, visit the support portal.”
      The phrase “support portal” is NOT a link initially.
    Distractors: none.
    Feedback:
      - After inserting, preview renders “support portal” as a hyperlink.
      - If the popover is open, it sits above the editor and must be dismissed/used.
  scene_context: *id001
  difficulty:
    difficulty_bucket: hard
    tier: L2
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 4
      density_choice_interference: 2
      depth_layering: 3
      feedback_dynamics: 2
      semantic_observability: 4
      disambiguation_load: 1
    justification: Requires precise text selection or correct link syntax, often via a nested link popover with small targets and multiple fields.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: For help, visit the [support portal](https://example.com/support).
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Adding the URL but not linking the exact words “support portal”.
  - Linking the wrong words (e.g., linking “help”).
  - Using the correct link but changing other parts of the sentence.
  - Leaving the sentence unlinked.
  expected_interaction_path: Select ‘support portal’  click Link  fill URL (or type markdown)  ensure preview shows only that phrase as a link.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T23
  name: Discard edits with Cancel in a modal (dark theme)
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: confirm_cancel
  secondary_template: null
  browsergym_goal: 'Click “Edit announcement”. In the modal editor, append a new line that says: This line should NOT be saved. Then click “Cancel” to discard changes. The task will finish automatically when done.'
  ui_copy: 'Click “Edit announcement”. In the modal editor, append a new line that says: This line should NOT be saved. Then click “Cancel” to discard changes. The task will finish automatically when done.'
  setup_description: |2
        Layout: modal_flow on a dark-themed page.
        Background: an “Announcement” card renders the currently committed markdown and has an “Edit announcement” button.
        Target component: Markdown editor inside the “Edit announcement” modal.
        Modal behavior:
          - Opened via “Edit announcement”.
          - Footer buttons: “Cancel” and “Save”.
          - Only clicking “Save” commits changes; “Cancel” discards draft edits.
        Editor configuration:
          - Standard toolbar; preview below.
        Initial state:
          - Committed announcement markdown (shown on background card):
            # Announcement
    Public launch next week.
          - When the modal opens, the editor is prefilled with the same committed content.
        Feedback:
          - On Cancel, modal closes and the background card remains unchanged.
          - A subtle inline message appears briefly: “Changes discarded.”
  scene_context:
    theme: dark
    spacing: comfortable
    layout: modal_flow
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: low
  difficulty:
    difficulty_bucket: hard
    tier: L2
    axes_ratings:
      precision_requirement: 2
      target_acquisition: 3
      density_choice_interference: 2
      depth_layering: 4
      feedback_dynamics: 4
      semantic_observability: 4
      disambiguation_load: 2
    justification: A dark-themed modal introduces layering and explicit cancel/commit dynamics; success depends on correctly discarding edits rather than saving them.
  success_trigger:
    human_readable:
    - The committed announcement markdown remains exactly the original value after normalization.
    - The “Cancel” control has been used to close the modal and discard the draft.
    - 'Precondition: the draft content was changed at least once while the modal was open (to avoid trivial cancel-without-edit).'
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        # Announcement
        Public launch next week.
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: true
      confirm_control: Cancel
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: committed_value
      overlay_state_required:
        announcement_modal_open: false
      preconditions:
        draft_changed_at_least_once: true
  negative_cases:
  - Clicking “Save” (even with the correct draft) instead of “Cancel”.
  - Closing the modal with Escape/click-away if it results in saving or in an ambiguous state.
  - Leaving the modal open at the end.
  - Committed announcement changes (meaning the draft was incorrectly saved).
  expected_interaction_path: Open modal  add the new line in the editor  click Cancel  verify modal closes and background announcement stays the same.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T24
  name: Scroll to Metadata and set a release date
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: scroll_find
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Product copy”, scroll within the editor to the “Metadata” section and change “Release date: TBD” to “Release date: 2026-06-15”. Do not change anything else. The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Product copy”, scroll within the editor to the “Metadata” section and change “Release date: TBD” to “Release date: 2026-06-15”. Do not change anything else. The task will finish automatically when done.'
  setup_description: |2
        Layout: isolated_card centered.
        Spacing: compact (denser typography).
        Component: one Markdown editor labeled “Product copy”.
        Configuration:
          - Fixed-height editor with internal scrolling; only ~8–10 lines are visible at once.
          - Toolbar present; preview hidden (edit-only) to emphasize source editing.
        Initial state: editor is prefilled with a multi-section document (see below). The “Release date” field is off-screen initially and requires scrolling within the editor.
        Prefilled content (for implementers/checker):
        # Product Page Copy

    ## Overview
    This draft describes the key features and limitations of the product.

    ## Highlights
    - Fast setup
    - Works offline
    - Includes export tools

    ## Details
    The copy below is for internal review. Please do not publish until approved.

    ### Limitations
    - No mobile support yet
    - Limited theme customization

    ## Metadata
    Owner: Marketing
    Release date: TBD
    Channel: Web
        Distractors: none.
        Feedback: caret position and scroll bar inside textarea indicate progress.
  scene_context:
    theme: light
    spacing: compact
    layout: isolated_card
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: hard
    tier: L2
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 3
      density_choice_interference: 1
      depth_layering: 3
      feedback_dynamics: 2
      semantic_observability: 5
      disambiguation_load: 1
    justification: Internal scrolling plus a precise, localized edit in a dense editor increases the risk of altering surrounding text or missing the correct field.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        # Product Page Copy

        ## Overview
        This draft describes the key features and limitations of the product.

        ## Highlights
        - Fast setup
        - Works offline
        - Includes export tools

        ## Details
        The copy below is for internal review. Please do not publish until approved.

        ### Limitations
        - No mobile support yet
        - Limited theme customization

        ## Metadata
        Owner: Marketing
        Release date: 2026-06-15
        Channel: Web
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Editing the wrong field (e.g., Owner or Channel) instead of Release date.
  - Changing the date but adding extra spaces or removing the colon/label.
  - Modifying other sections such as Highlights or Limitations.
  - Not scrolling and leaving Release date as TBD.
  expected_interaction_path: Click editor  scroll to Metadata section  edit the Release date line  stop when it matches exactly.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T25
  name: Edit the correct editor among three instances
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_formatted
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Details”, replace the content with:

    ## Details

    The release includes:

    - API is stable

    - UI polish pending

    Do not edit the “Summary” or “Internal notes” editors. The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Details”, replace the content with:

    ## Details

    The release includes:

    - API is stable

    - UI polish pending

    Do not edit the “Summary” or “Internal notes” editors. The task will finish automatically when done.'
  setup_description: |
    Layout: dashboard with several cards (clutter medium).
    Target area: a “Release blurb” card contains THREE Markdown editor instances stacked vertically:
      - “Summary”
      - “Details”        ← TARGET
      - “Internal notes”
    Configuration:
      - All three editors share the same small toolbar and look nearly identical.
      - Each editor has its own preview under it.
      - No Save/Apply; live value is checked.
    Initial state:
      - Summary contains: “Short summary goes here.”
      - Details contains: “(empty)”
      - Internal notes contains: “For staff only.”
    Distractors:
      - Other dashboard cards (charts, lists) are present but irrelevant.
    Feedback: the Details preview should show a subheading and a bullet list once filled.
  scene_context:
    theme: light
    spacing: comfortable
    layout: dashboard
    placement: center
    scale: default
    instances: 3
    guidance: text
    clutter: medium
  difficulty:
    difficulty_bucket: hard
    tier: L2
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 3
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 5
      disambiguation_load: 5
    justification: Three similar editor instances in a dashboard card create high disambiguation load, and the target markdown is multi-line with list structure.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - 'Predicate is evaluated only for the labeled instance: ''Details''.'
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        ## Details
        The release includes:
        - API is stable
        - UI polish pending
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: true
      target_instance_label_or_id: Details
      terminal_condition: true
      value_source: editor_value
      non_target_instances_must_remain:
        Summary: Short summary goes here.
        Internal notes: For staff only.
  negative_cases:
  - Editing the wrong instance (Summary or Internal notes) instead of Details.
  - Editing more than one editor instance.
  - Correct content but missing line breaks or list markers.
  - Adding extra text beyond the requested four lines.
  expected_interaction_path: Locate the Release blurb card  click into the Details editor  paste/type the markdown  verify only Details changed.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
    Flexible matching (T25): also accepts structural match (## Details heading + "The release includes:" + bullet "API is stable" + bullet "UI polish pending") in addition to exact string match. Summary/Internal notes checked with trailing-period tolerance.
- id: markdown_editor-external-T26
  name: Match a complex visual reference
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: match_reference
  secondary_template: null
  browsergym_goal: Make the rendered preview of the Markdown editor labeled “Snippet” match the Reference preview panel. The task will finish automatically when done.
  ui_copy: Make the rendered preview of the Markdown editor labeled “Snippet” match the Reference preview panel. The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card anchored near the bottom-right of the viewport.
    Component: one Markdown editor labeled “Snippet”.
    Guidance: a large “Reference preview” panel shows the target rendered markdown (no source text shown).
    Configuration:
      - Editor is in Live (split) mode so your preview is visible while editing.
      - Toolbar present (Bold/Italic/Code/List/Quote/Task list).
    Initial state: editor is empty.
    Distractors: none besides the reference preview.
    Reference preview content (for implementers/checker): a multi-line snippet containing:
      - A level-2 heading “Setup”
      - A task list with two items, where the first is checked and the second is unchecked
      - A blockquote line that includes inline code around the word `config`
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: bottom_right
    scale: default
    instances: 1
    guidance: visual
    clutter: none
  difficulty:
    difficulty_bucket: hard
    tier: L3
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 2
      density_choice_interference: 3
      depth_layering: 2
      feedback_dynamics: 2
      semantic_observability: 3
      disambiguation_load: 1
    justification: Purely visual specification plus mixed markdown constructs (heading, task list, blockquote, inline code) raises precision and verification difficulty.
  success_trigger:
    human_readable:
    - Rendered preview for the target editor instance is semantically equivalent to the reference panel 'ref-complex-snippet' (ignoring trivial whitespace differences).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: matches_reference
      target_state:
        reference_id: ref-complex-snippet
        reference_surface: rendered_preview_panel
        match_basis: rendered_markdown_equivalence
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
        render_equivalence: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Matching the text content but not the formatting (e.g., missing checked checkbox).
  - Creating the right elements but in the wrong order.
  - Only partially matching the reference (e.g., heading and list but no blockquote).
  - Adding extra lines beyond what is shown in the reference.
  expected_interaction_path: Inspect reference preview carefully  compose markdown with the same structure  iterate until your preview visually matches.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
    Flexible matching (T26): also accepts structural match (heading "Setup" + checked task "Install dependencies" + unchecked task "Run tests" + blockquote with inline code `config`) in addition to exact string match.
- id: markdown_editor-external-T27
  name: Enable live split preview in a small editor
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: toggle_state
  secondary_template: null
  browsergym_goal: Switch the Markdown editor labeled “Live preview toggle” to Live mode (split view with editor and preview visible). The task will finish automatically when done.
  ui_copy: Switch the Markdown editor labeled “Live preview toggle” to Live mode (split view with editor and preview visible). The task will finish automatically when done.
  setup_description: |
    Layout: isolated_card centered.
    Scale: small (compact header + smaller mode toggle targets).
    Component: one Markdown editor labeled “Live preview toggle”.
    Configuration:
      - Mode toggle group exists with three options (Edit / Live / Preview). In this task the toggle is rendered as icons, but each icon has an accessible label/tooltip.
      - Live mode displays split view: textarea left, preview right.
    Initial state: editor is in Edit mode (textarea only; preview panel is hidden).
    Content: a short markdown sentence is present so preview changes are obvious once enabled.
    Distractors: none.
    Feedback: switching to Live mode should show a visible vertical split with preview on the right.
  scene_context:
    theme: light
    spacing: comfortable
    layout: isolated_card
    placement: center
    scale: small
    instances: 1
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: hard
    tier: L2
    axes_ratings:
      precision_requirement: 1
      target_acquisition: 4
      density_choice_interference: 2
      depth_layering: 1
      feedback_dynamics: 1
      semantic_observability: 3
      disambiguation_load: 1
    justification: Small icon-only toggles increase acquisition difficulty, and success depends on a specific mode state that is not purely text-based.
  success_trigger:
    human_readable:
    - Editor mode equals 'live' (split view).
    - The preview pane for this editor instance is visible at terminal state.
    canonical_predicate:
      predicate_type: equals
      target_state:
        mode: live
      tolerance: null
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: component_mode
      additional_state_required:
        preview_panel_visible: true
  negative_cases:
  - Switching to Preview mode instead of Live mode.
  - Leaving the editor in Edit mode (preview still hidden).
  - Entering text without changing the mode.
  expected_interaction_path: Locate the mode icons  hover/inspect labels if needed  click the Live toggle  verify split preview appears.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T28
  name: Reset content in a drawer with confirmation
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: clear_reset
  secondary_template: null
  browsergym_goal: Click “Edit README” to open the drawer. Then reset the Markdown editor content back to the default README template by using “Reset” and confirming “Confirm reset”. The task will finish automatically when done.
  ui_copy: Click “Edit README” to open the drawer. Then reset the Markdown editor content back to the default README template by using “Reset” and confirming “Confirm reset”. The task will finish automatically when done.
  setup_description: |
    Layout: drawer_flow — the page has a right-side drawer that contains the editor.
    Background (clutter low): a simple “Repository” page with a README preview and a button “Edit README”.
    Target component: the Markdown editor inside the “Edit README” drawer.
    Drawer behavior:
      - Click “Edit README” to open a drawer sliding in from the right.
      - The drawer header contains actions: “Close”, and “Reset”.
    Reset behavior (layering):
      - Clicking “Reset” opens an inline confirmation popover inside the drawer (“Reset content to default?”).
      - Confirmation buttons: “Confirm reset” and “Cancel”.
      - Only after confirming does the editor content change.
    Editor configuration:
      - Standard toolbar; preview hidden (edit-only).
    Initial state:
      - When opened, the editor contains a modified README with multiple lines (not equal to the default).
      - Default template (for implementers/checker):
        # README
        Describe your project here.
    Feedback:
      - After confirming reset, the editor content becomes the default template immediately.
      - A small inline status text shows “Reset complete”.
  scene_context:
    theme: light
    spacing: comfortable
    layout: drawer_flow
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: low
  difficulty:
    difficulty_bucket: hard
    tier: L3
    axes_ratings:
      precision_requirement: 4
      target_acquisition: 3
      density_choice_interference: 2
      depth_layering: 5
      feedback_dynamics: 4
      semantic_observability: 4
      disambiguation_load: 2
    justification: Requires navigating a drawer overlay and a nested confirmation popover; success depends on a reset action that only applies after explicit confirmation.
  success_trigger:
    human_readable:
    - Editor markdown value equals the default README template after normalization.
    - The reset confirmation control “Confirm reset” has been activated (reset must be confirmed, not just clicked).
    - Drawer remains open and the confirmation popover is closed at terminal state.
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        # README
        Describe your project here.
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: true
      confirm_control: Confirm reset
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
      overlay_state_required:
        drawer_open: true
        reset_confirm_open: false
  negative_cases:
  - Clicking “Reset” but not confirming “Confirm reset”.
  - Choosing “Cancel” in the confirmation popover.
  - Closing the drawer without resetting.
  - Ending with content that is close to the template but not an exact match.
  expected_interaction_path: Click Edit README  in drawer click Reset  click Confirm reset  verify editor shows the default template.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T29
  name: Fix a nested agenda list in a cluttered form
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: enter_formatted
  secondary_template: null
  browsergym_goal: "In the Markdown editor labeled “Agenda (Markdown)”, reformat the content into:\n## Agenda\n1. Intro\n2. Demo\n   - Q&A\nKeep the same words, but fix the markdown formatting. The task will finish automatically when done."
  ui_copy: "In the Markdown editor labeled “Agenda (Markdown)”, reformat the content into:\n## Agenda\n1. Intro\n2. Demo\n   - Q&A\nKeep the same words, but fix the markdown formatting. The task will finish automatically when done."
  setup_description: |
    Layout: form_section with high clutter — a realistic event-creation form.
    Distractor UI (not required):
      - Event name input
      - Date picker input
      - Location input
      - Right-side “Formatting tips” panel
      - Bottom sticky action bar with “Save draft” and “Publish” buttons (NOT required)
    Target component: one Markdown editor labeled “Agenda (Markdown)”.
    Configuration:
      - Standard toolbar present; preview shown below the editor.
      - No Save/Apply for the editor; live value is checked.
    Initial state: the editor is prefilled with an incorrectly formatted outline:
      Agenda
      Intro
      Demo
        Q&A
    Required final formatting (for implementers/checker): a level-2 heading “Agenda”, followed by an ordered list where item 2 (“Demo”) has a nested bullet “Q&A”.
    Feedback: preview should show a heading, a numbered list, and an indented bullet under item 2.
  scene_context:
    theme: light
    spacing: comfortable
    layout: form_section
    placement: center
    scale: default
    instances: 1
    guidance: text
    clutter: high
  difficulty:
    difficulty_bucket: hard
    tier: L2
    axes_ratings:
      precision_requirement: 5
      target_acquisition: 3
      density_choice_interference: 2
      depth_layering: 2
      feedback_dynamics: 2
      semantic_observability: 5
      disambiguation_load: 3
    justification: High form clutter increases the chance of editing the wrong field, and the target requires precise indentation and list syntax for a nested list.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - Only one editor instance is present (no instance disambiguation).
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        ## Agenda
        1. Intro
        2. Demo
           - Q&A
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: false
      target_instance_label_or_id: null
      terminal_condition: true
      value_source: editor_value
  negative_cases:
  - Leaving the first line as plain text instead of a level-2 heading.
  - Creating a flat list (no nested bullet under item 2).
  - Putting the nested bullet under the wrong numbered item.
  - Editing a different form field instead of the markdown editor.
  expected_interaction_path: Focus the Agenda editor  rewrite lines with correct markdown (heading + numbered list + indentation)  verify preview structure.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
- id: markdown_editor-external-T30
  name: Format a public quote (two instances, compact dark)
  canonical_type: markdown_editor
  implementation_source: external
  implementation_variant: uiw/react-md-editor
  implementation_component: 'External: @uiw/react-md-editor (textarea-based markdown editor with toolbar + preview)'
  task_template: editor_operation
  secondary_template: null
  browsergym_goal: 'In the Markdown editor labeled “Public quote”, format the quote as a blockquote with an italic attribution so the content becomes:

    > The only way out is through.

    >

    > *— Robert Frost*

    Do not change the “Internal note” editor. The task will finish automatically when done.'
  ui_copy: 'In the Markdown editor labeled “Public quote”, format the quote as a blockquote with an italic attribution so the content becomes:

    > The only way out is through.

    >

    > *— Robert Frost*

    Do not change the “Internal note” editor. The task will finish automatically when done.'
  setup_description: |
    Layout: isolated_card centered.
    Theme: dark; Spacing: compact.
    Components (instances): two Markdown editors stacked:
      - “Public quote”   ← TARGET
      - “Internal note”
    Configuration:
      - Toolbars include Quote and Italic controls (small icons in compact spacing).
      - Editors are in Live (split) mode so preview is visible while formatting.
    Initial state:
      - Public quote contains two plain lines (not a blockquote):
          The only way out is through.
          — Robert Frost
      - Internal note contains: “Do not share before approval.”
    Goal intent: format the Public quote as a proper blockquote and italicize the attribution line, without modifying the Internal note.
    Feedback: preview should show a quoted block with an italicized attribution.
  scene_context:
    theme: dark
    spacing: compact
    layout: isolated_card
    placement: center
    scale: default
    instances: 2
    guidance: text
    clutter: none
  difficulty:
    difficulty_bucket: hard
    tier: L3
    axes_ratings:
      precision_requirement: 5
      target_acquisition: 4
      density_choice_interference: 3
      depth_layering: 2
      feedback_dynamics: 2
      semantic_observability: 4
      disambiguation_load: 5
    justification: Compact dark UI makes toolbar targets harder to acquire, and the task requires multiple markdown constructs (blockquote + italic + correct blank line) with strict disambiguation between two instances.
  success_trigger:
    human_readable:
    - Editor markdown value equals the target after normalization (newline + trailing whitespace).
    - No extra confirmation is required (live value is checked).
    - 'Predicate is evaluated only for the labeled instance: ''Public quote''.'
    canonical_predicate:
      predicate_type: equals
      target_state: |-
        > The only way out is through.
        >
        > *— Robert Frost*
      tolerance:
        normalize_newlines: true
        trim_trailing_whitespace: true
        trim_outer_blank_lines: true
      require_confirm: false
      confirm_control: null
      require_correct_instance: true
      target_instance_label_or_id: Public quote
      terminal_condition: true
      value_source: editor_value
      non_target_instances_must_remain:
        Internal note: Do not share before approval.
  negative_cases:
  - Formatting the Internal note editor instead of Public quote.
  - Changing both editors.
  - Missing the blank quoted line between the quote and the attribution.
  - Attribution not italicized or not inside the blockquote.
  expected_interaction_path: Focus Public quote editor  apply blockquote formatting  italicize attribution line  ensure Internal note unchanged.
  notes: |
    Fallback source note: AntD/MUI/Mantine do not ship a core markdown editor component in this benchmark’s mapping, so this task uses an external implementation.
    Instrumentation: wrap each editor instance in a container with data-testid like 'md-editor-<label>' and expose:
      - the live textarea value (editor_value) for equality checks,
      - an optional committed_value when Save/Cancel flows are used,
      - the current mode (edit/live/preview) and overlay state (help/link/table dialogs) for non-content predicates.
    Normalization in checker: convert CRLF->LF, trim trailing whitespace per line, and trim leading/trailing blank lines before comparing markdown strings.
    Flexible matching (T30): also accepts structural match (blockquote containing "The only way out is through" + italic attribution with "Robert Frost") in addition to exact string match. Internal note checked with trailing-period tolerance.