Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 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 | import type { ProfileCategory, ProfileInfo, TestStudentProfile } from './types' // ============================================================================= // Realistic Curriculum Skill Progressions // ============================================================================= /** Early Level 1 - just learning basics */ const EARLY_L1_SKILLS = ['basic.directAddition', 'basic.heavenBead'] /** Mid Level 1 - basics strong, learning five complements */ const MID_L1_SKILLS = [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', ] /** Late Level 1 Addition - all addition skills */ const LATE_L1_ADD_SKILLS = [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', 'fiveComplements.1=5-4', ] /** Complete Level 1 - includes subtraction basics */ const COMPLETE_L1_SKILLS = [ ...LATE_L1_ADD_SKILLS, 'basic.directSubtraction', 'basic.heavenBeadSubtraction', 'basic.simpleCombinationsSub', 'fiveComplementsSub.-4=-5+1', 'fiveComplementsSub.-3=-5+2', 'fiveComplementsSub.-2=-5+3', 'fiveComplementsSub.-1=-5+4', ] /** Level 2 skills (ten complements for addition) */ const L2_ADD_SKILLS = [ 'tenComplements.9=10-1', 'tenComplements.8=10-2', 'tenComplements.7=10-3', 'tenComplements.6=10-4', ] // ============================================================================= // All test student profiles // ============================================================================= export const TEST_PROFILES: TestStudentProfile[] = [ { name: '🔴 Multi-Skill Deficient', emoji: '😰', color: '#ef4444', category: 'bkt', description: 'Struggling with many skills - needs intervention', currentPhaseId: 'L1.add.+3.direct', practicingSkills: EARLY_L1_SKILLS, intentionNotes: `INTENTION: Multi-Skill Deficient This student is in early Level 1 and struggling with basic bead movements. Their BKT estimates show multiple weak skills in the foundational "basic" category. Curriculum position: Early L1 (L1.add.+3.direct) Practicing skills: basic.directAddition, basic.heavenBead This profile represents a student who: - Is struggling with the very basics of abacus operation - May need hands-on teacher guidance - Could benefit from slower progression and more scaffolding - Might have difficulty with fine motor skills or conceptual understanding Use this student to test how the UI handles intervention alerts for foundational skill deficits. TERM COUNT SCALING: Tests low comfort level with weak mastery data. Expected comfort ~0.2 → abacus 2-4 terms, visualization 2, linear 2-4. Tooltip should show low avg mastery and short problem lengths.`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'weak', problems: 15 }, { skillId: 'basic.heavenBead', targetClassification: 'weak', problems: 12 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 35, gameCount: 3, spreadDays: 14, }, ], successCriteria: { minWeak: 2 }, tuningAdjustments: [{ skillId: 'all', problemsAdd: 10 }], }, { name: '🟡 Single-Skill Blocker', emoji: '🤔', color: '#f59e0b', category: 'bkt', description: 'One weak skill blocking progress, others are fine', currentPhaseId: 'L1.add.+2.five', practicingSkills: MID_L1_SKILLS, intentionNotes: `INTENTION: Single-Skill Blocker This student is progressing well through Level 1 but has ONE specific five-complement skill that's blocking advancement. Most skills are strong, but fiveComplements.3=5-2 is weak. Curriculum position: Mid L1 (L1.add.+2.five) Practicing skills: basics + first two five complements The blocking skill is: fiveComplements.3=5-2 (adding 3 via +5-2) This profile represents a student who: - Understands the general concepts well - Has a specific gap that needs targeted practice - Should NOT be held back on other skills - May benefit from focused tutoring on the specific technique Use this student to test targeted intervention recommendations. TERM COUNT SCALING: Tests mixed mastery with one weak blocker. Expected comfort ~0.5 (high avgMastery dragged down by one weak skill). Good for verifying mid-range term counts (abacus 3-6).`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 20 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 18 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 15 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 16 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 18 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 65, gameCount: 5, spreadDays: 21, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 70, gameCount: 4, spreadDays: 21, }, ], }, { name: '🟢 Progressing Nicely', emoji: '😊', color: '#22c55e', category: 'bkt', description: 'Healthy progression - mostly strong with one skill in progress', currentPhaseId: 'L1.add.+3.five', practicingSkills: MID_L1_SKILLS, intentionNotes: `INTENTION: Progressing Nicely This student shows a healthy learning trajectory - most skills are mastered, with one newer skill still being learned (weak). Curriculum position: Mid L1 (L1.add.+3.five) Practicing skills: basics + first two five complements Expected outcome: • Most skills strong (mastered basics and early five-complements) • One weak skill (newest in curriculum, still learning) This is what a "healthy" student looks like - no intervention flags, steady progress. Use this student to verify: • Normal dashboard display without intervention alerts • Mixed skill states that don't trigger remediation • Typical student who is making good progress`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 25 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 22 }, { skillId: 'basic.simpleCombinations', targetClassification: 'developing', problems: 12 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'developing', problems: 10 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 8 }, ], successCriteria: { minDeveloping: 1 }, gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 75, gameCount: 8, spreadDays: 30, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 72, gameCount: 6, spreadDays: 30, }, ], }, { name: '⭐ Ready to Level Up', emoji: '🌟', color: '#8b5cf6', category: 'bkt', description: 'All skills strong - ready for next curriculum phase', currentPhaseId: 'L1.add.+1.five', practicingSkills: LATE_L1_ADD_SKILLS, intentionNotes: `INTENTION: Ready to Level Up This student has mastered ALL Level 1 addition skills and is ready to move to subtraction or Level 2. Curriculum position: End of L1 Addition (L1.add.+1.five - last addition phase) Practicing skills: All Level 1 addition skills All skills at strong mastery (85%+): • basic.directAddition, heavenBead, simpleCombinations • All four fiveComplements This student should be promoted to L1 subtraction or could start L2 addition with carrying. Use this student to test: - "Ready to advance" indicators - Promotion recommendations - Session planning when all skills are strong TERM COUNT SCALING: Tests high comfort with all-strong skills. Expected comfort ~0.85-0.95 → abacus 4-7, visualization 3-5, linear 4-7. Tooltip should show high avg mastery and longer problem lengths.`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 25 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 25 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 22 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 20 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'strong', problems: 20 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'strong', problems: 18 }, { skillId: 'fiveComplements.1=5-4', targetClassification: 'strong', problems: 18 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 88, gameCount: 12, spreadDays: 45, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 85, gameCount: 10, spreadDays: 45, }, { gameName: 'complement-race', displayName: 'Complement Race', icon: '🏁', category: 'speed', targetScore: 82, gameCount: 8, spreadDays: 45, }, ], }, { name: '🚀 Overdue for Promotion', emoji: '🏆', color: '#06b6d4', category: 'bkt', description: 'All skills mastered long ago - should have leveled up already', currentPhaseId: 'L2.add.+9.ten', practicingSkills: [...COMPLETE_L1_SKILLS, ...L2_ADD_SKILLS], intentionNotes: `INTENTION: Overdue for Promotion This student has MASSIVELY exceeded mastery requirements. They've mastered ALL of Level 1 (addition AND subtraction) plus several Level 2 skills! Curriculum position: Should be deep in L2 (L2.add.+9.ten) Practicing skills: Complete L1 + early L2 All skills at very high mastery (88-98%): • ALL basic skills (addition and subtraction) • ALL four fiveComplements (addition) • ALL four fiveComplementsSub (subtraction) • Four tenComplements (L2 addition with carrying) This is a "red flag" scenario - the system should have advanced this student long ago. Use this student to test: - Urgent promotion alerts - Detection of stale curriculum placement - Over-mastery warnings TERM COUNT SCALING: Tests maximum comfort level with 18 strong skills. Expected comfort ~0.95-1.0 → ceiling ranges: abacus 4-8, visualization 3-6, linear 4-8. Also tests large skillCountBonus (log(19)/20 ≈ 0.147).`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 35 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 35 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 30 }, { skillId: 'basic.directSubtraction', targetClassification: 'strong', problems: 30 }, { skillId: 'basic.heavenBeadSubtraction', targetClassification: 'strong', problems: 28 }, { skillId: 'basic.simpleCombinationsSub', targetClassification: 'strong', problems: 28 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 30 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'strong', problems: 30 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'strong', problems: 28 }, { skillId: 'fiveComplements.1=5-4', targetClassification: 'strong', problems: 28 }, { skillId: 'fiveComplementsSub.-4=-5+1', targetClassification: 'strong', problems: 25 }, { skillId: 'fiveComplementsSub.-3=-5+2', targetClassification: 'strong', problems: 25 }, { skillId: 'fiveComplementsSub.-2=-5+3', targetClassification: 'strong', problems: 22 }, { skillId: 'fiveComplementsSub.-1=-5+4', targetClassification: 'strong', problems: 22 }, { skillId: 'tenComplements.9=10-1', targetClassification: 'strong', problems: 20 }, { skillId: 'tenComplements.8=10-2', targetClassification: 'strong', problems: 20 }, { skillId: 'tenComplements.7=10-3', targetClassification: 'strong', problems: 18 }, { skillId: 'tenComplements.6=10-4', targetClassification: 'strong', problems: 18 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 95, gameCount: 25, spreadDays: 90, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 92, gameCount: 20, spreadDays: 90, }, { gameName: 'complement-race', displayName: 'Complement Race', icon: '🏁', category: 'speed', targetScore: 90, gameCount: 18, spreadDays: 90, }, { gameName: 'memory-quiz', displayName: 'Memory Quiz', icon: '🧠', category: 'memory', targetScore: 88, gameCount: 15, spreadDays: 90, }, ], }, // ============================================================================= // Session Mode Test Profiles // ============================================================================= { name: '🎯 Remediation Test', emoji: '🎯', color: '#dc2626', category: 'session', description: 'REMEDIATION MODE - Weak skills blocking promotion', currentPhaseId: 'L1.add.+3.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', ], expectedSessionMode: 'remediation', intentionNotes: `INTENTION: Remediation Mode This student is specifically configured to trigger REMEDIATION mode. Session Mode: REMEDIATION (with blocked promotion) What you should see: • SessionModeBanner shows "Skills need practice" with weak skills listed • Banner shows blocked promotion: "Ready for +3 (five-complement) once skills are strong" • StartPracticeModal shows remediation-focused CTA How it works: • Has 4 skills practicing: basic.directAddition, heavenBead, simpleCombinations, fiveComplements.4=5-1 • Two skills have low accuracy (< 50%) with enough problems to be confident • The next skill (fiveComplements.3=5-2) is available but blocked by weak skills Use this to test the remediation UI in dashboard and modal. TERM COUNT SCALING: Primary test for remediation mode multiplier (×0.6). Expected comfort ~0.2 (low avgMastery × 0.6 remediation multiplier). Problems should be noticeably shorter than maintenance students. Tooltip should show "Remediation (shorter)" session mode.`, tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', ], skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 20 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 18 }, { skillId: 'basic.simpleCombinations', targetClassification: 'weak', problems: 15 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'weak', problems: 18 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 40, gameCount: 3, spreadDays: 14, }, ], }, { name: '📚 Progression Tutorial Test', emoji: '📚', color: '#7c3aed', category: 'session', description: 'PROGRESSION MODE - Ready for new skill, tutorial required', currentPhaseId: 'L1.add.+3.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', ], ensureAllPracticingHaveHistory: true, expectedSessionMode: 'progression', intentionNotes: `INTENTION: Progression Mode (Tutorial Required) This student is specifically configured to trigger PROGRESSION mode with tutorial gate. Session Mode: PROGRESSION (tutorialRequired: true) What you should see: • SessionModeBanner shows "New Skill Available" with next skill name • Banner has "Start Tutorial" button (not "Start Practice") • StartPracticeModal shows tutorial CTA with skill description How it works: • Has 4 skills practicing, ALL are strong (>= 80% accuracy) • The next skill in curriculum (fiveComplements.3=5-2) is available • Tutorial for that skill has NOT been completed Use this to test the progression UI and tutorial gate flow.`, tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', ], skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 25 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 22 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 20 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 20 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 78, gameCount: 6, spreadDays: 21, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 75, gameCount: 5, spreadDays: 21, }, ], }, { name: '🚀 Progression Ready Test', emoji: '🚀', color: '#059669', category: 'session', description: 'PROGRESSION MODE - Tutorial done, ready to practice', currentPhaseId: 'L1.add.+3.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', ], ensureAllPracticingHaveHistory: true, expectedSessionMode: 'progression', intentionNotes: `INTENTION: Progression Mode (Tutorial Already Done) This student is specifically configured to trigger PROGRESSION mode with tutorial satisfied. Session Mode: PROGRESSION (tutorialRequired: false) What you should see: • SessionModeBanner shows "New Skill Available" with next skill name • Banner has "Start Practice" button (tutorial already done) • StartPracticeModal shows practice CTA (may show skip count if any) How it works: • Has 4 skills practicing, ALL are strong (>= 80% accuracy) • The next skill in curriculum (fiveComplements.3=5-2) is available • Tutorial for that skill HAS been completed (tutorialCompleted: true) Use this to test the progression UI when tutorial is already satisfied.`, tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', ], skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 25 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 22 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 20 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 20 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 80, gameCount: 7, spreadDays: 28, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 78, gameCount: 5, spreadDays: 28, }, ], }, { name: '🏆 Maintenance Test', emoji: '🏆', color: '#0891b2', category: 'session', description: 'MAINTENANCE MODE - All skills strong, mixed practice', currentPhaseId: 'L1.add.+4.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', 'fiveComplements.1=5-4', ], ensureAllPracticingHaveHistory: true, expectedSessionMode: 'maintenance', intentionNotes: `INTENTION: Maintenance Mode This student is specifically configured to trigger MAINTENANCE mode. Session Mode: MAINTENANCE What you should see: • SessionModeBanner shows "Mixed Practice" or similar • Banner indicates all skills are strong • StartPracticeModal shows general practice CTA How it works: • Has 7 skills practicing (all L1 addition), ALL are strong (>= 80%) • All practicing skills have enough history to be confident • There IS a next skill available but this student is at a natural "pause" point NOTE: True maintenance mode is rare in practice - usually there's always a next skill. This profile demonstrates the maintenance case. Use this to test the maintenance mode UI in dashboard and modal. TERM COUNT SCALING: Primary test for high comfort in maintenance mode (×1.0). Expected comfort ~0.9+ (all strong × 1.0 maintenance + skillCountBonus for 7 skills). Problems should be at the longer end: abacus 4-7, visualization 3-5, linear 4-7. Compare with 🎯 Remediation Test to see the full comfort range in action. Also test "Steps per problem" override: set to 4, verify no slot exceeds 4 terms.`, tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', 'fiveComplements.1=5-4', ], skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 30 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 28 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 25 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 25 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'strong', problems: 22 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'strong', problems: 22 }, { skillId: 'fiveComplements.1=5-4', targetClassification: 'strong', problems: 20 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 90, gameCount: 15, spreadDays: 60, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 88, gameCount: 12, spreadDays: 60, }, { gameName: 'complement-race', displayName: 'Complement Race', icon: '🏁', category: 'speed', targetScore: 85, gameCount: 10, spreadDays: 60, }, ], }, // ============================================================================= // Edge Case Test Profiles // ============================================================================= { name: '🆕 Brand New Student', emoji: '🌱', color: '#84cc16', category: 'edge', description: 'EDGE CASE - Zero practicing skills, empty state', currentPhaseId: 'L1.add.+1.direct', practicingSkills: [], intentionNotes: `INTENTION: Brand New Student (Edge Case) This student has NO skills practicing yet - they just created their account. What you should see: • Dashboard shows empty state or prompts to start placement test • SkillHealth may be undefined or have zero counts • Session mode determination may fall back to progression This tests the empty state handling in the dashboard. Use this to verify the dashboard handles zero practicing skills gracefully. TERM COUNT SCALING: Tests the no-BKT-data fallback path. Expected comfort = 0.3 (conservative default when no mastery data exists). Abacus should get ~3-5 terms. Tooltip should show "Avg mastery: N/A".`, skillHistory: [], }, { name: '🔢 Single Skill Only', emoji: '1️⃣', color: '#a855f7', category: 'edge', description: 'EDGE CASE - Only one skill practicing', currentPhaseId: 'L1.add.+1.direct', practicingSkills: ['basic.directAddition'], tutorialCompletedSkills: ['basic.directAddition'], intentionNotes: `INTENTION: Single Skill Only (Edge Case) This student is practicing exactly ONE skill. This is the minimum case. What you should see: • Dashboard shows counts with total: 1 • Skill badges show correctly with single count • Progress calculations work with minimal data Use this to verify the dashboard handles single-skill students correctly.`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'developing', problems: 12 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 55, gameCount: 2, spreadDays: 7, }, ], }, { name: '📊 High Volume Learner', emoji: '📈', color: '#3b82f6', category: 'edge', description: 'EDGE CASE - Many skills with lots of practice history', currentPhaseId: 'L1.sub.-3.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', 'fiveComplements.1=5-4', 'basic.directSubtraction', 'basic.heavenBeadSubtraction', ], ensureAllPracticingHaveHistory: true, tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', 'fiveComplements.1=5-4', 'basic.directSubtraction', 'basic.heavenBeadSubtraction', ], intentionNotes: `INTENTION: High Volume Learner This student has practiced MANY skills with extensive history - tests dashboard with lots of data. Curriculum position: Mid L1 Subtraction (L1.sub.-3.five) Practicing skills: All L1 addition + early subtraction (9 skills total) Use this to verify: • Dashboard handles many skills gracefully • Skill list scrolling/pagination works • Performance with larger skill counts • Progress calculations with extensive history TERM COUNT SCALING: Tests skillCountBonus with 9 practicing skills. skillCountBonus = min(0.15, log(10)/20) ≈ 0.115 — noticeably higher than students with fewer skills. Compare comfort level with 🔢 Single Skill Only.`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 40 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 35 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 30 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 28 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'strong', problems: 25 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'strong', problems: 25 }, { skillId: 'fiveComplements.1=5-4', targetClassification: 'strong', problems: 22 }, { skillId: 'basic.directSubtraction', targetClassification: 'developing', problems: 15 }, { skillId: 'basic.heavenBeadSubtraction', targetClassification: 'developing', problems: 12 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 82, gameCount: 30, spreadDays: 90, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 80, gameCount: 25, spreadDays: 90, }, { gameName: 'complement-race', displayName: 'Complement Race', icon: '🏁', category: 'speed', targetScore: 78, gameCount: 20, spreadDays: 90, }, { gameName: 'memory-quiz', displayName: 'Memory Quiz', icon: '🧠', category: 'memory', targetScore: 75, gameCount: 15, spreadDays: 90, }, ], }, { name: '⚖️ Multi-Weak Remediation', emoji: '⚖️', color: '#f97316', category: 'edge', description: 'EDGE CASE - Many weak skills needing remediation', currentPhaseId: 'L1.add.+2.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], intentionNotes: `INTENTION: Multi-Weak Remediation (Edge Case) Originally intended as "balanced mix" with 2 strong + 2 developing + 2 weak, but BKT's binary nature pushes skills to extremes. Actual output: • 2 Strong (basic.directAddition, basic.heavenBead) • 4 Weak (simpleCombinations, fiveComplements.4/3/2=5-...) REFRAMED PURPOSE - Tests important app features: • Remediation mode with MANY weak skills (4+) • Dashboard weak skills display with overflow • Session mode banner showing multiple skills to strengthen • Skill list with many red/weak indicators Use this to verify UI handles many weak skills gracefully. Complements 🔴 Multi-Skill Deficient (which has only 2 weak).`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 25 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 22 }, { skillId: 'basic.simpleCombinations', targetClassification: 'developing', problems: 15 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'developing', problems: 14 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 18 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'weak', problems: 16 }, ], successCriteria: { minWeak: 2 }, gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 42, gameCount: 5, spreadDays: 30, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 38, gameCount: 4, spreadDays: 30, }, ], }, { name: '🕰️ Stale Skills Test', emoji: '⏰', color: '#6b7280', category: 'edge', description: 'EDGE CASE - Skills at various staleness levels', currentPhaseId: 'L1.add.+2.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], intentionNotes: `INTENTION: Stale Skills Test This student has skills at various staleness levels to test the Stale Skills Section in the Skills tab. Session Mode: Will depend on BKT state after decay is applied. Staleness levels: • 2 skills practiced recently (1 day ago) - should NOT appear in stale section • 2 skills practiced 10 days ago - "Not practiced recently" • 1 skill practiced 20 days ago - "Getting rusty" • 1 skill practiced 45 days ago - "Very stale" Use this to test: • StaleSkillsSection component rendering • "Mark Current" refresh functionality • Different staleness warning messages • BKT decay effects on old skills`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 20, ageDays: 1 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 18, ageDays: 1 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 15, ageDays: 10, }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 16, ageDays: 10, }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'strong', problems: 18, ageDays: 20, }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'strong', problems: 16, ageDays: 45, }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 70, gameCount: 8, spreadDays: 60, }, ], }, { name: '💥 NaN Stress Test', emoji: '💥', color: '#dc2626', category: 'edge', description: 'EDGE CASE - Stress tests BKT NaN handling with extreme data', currentPhaseId: 'L1.add.+3.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], intentionNotes: `INTENTION: NaN Stress Test This student is specifically designed to stress test the BKT NaN handling code. ROOT CAUSE TESTED: The production NaN bug was caused by legacy data missing the 'hadHelp' field. The helpWeight() function had no default case, returning undefined, which caused 'undefined * rtWeight = NaN' to propagate. The profile includes: • LEGACY DATA: Skills missing 'hadHelp' (tests the actual root cause) • Skills with EXTREME accuracy values (0.01 and 0.99) • Very high problem counts (100+ per skill) • Mixed recent and very old practice dates • Boundary conditions that could trigger floating point edge cases The BKT calculation should handle all of these gracefully: • No NaN values in the output • Legacy data should be processed with weight 1.0 (neutral) • UI should display valid percentages for all skills If you see "⚠️ Data Error" or NaN values in the dashboard: 1. Check browser console for [BKT] warnings 2. Investigate the specific skill that failed 3. Check the problem history for that skill Use this profile to verify: • Legacy data without hadHelp is handled (weight defaults to 1.0) • BKT core calculations handle extreme pKnown values • Conjunctive BKT blame attribution works with edge cases • Evidence quality weights don't produce NaN • UI gracefully shows errors for any corrupted data`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 30, simulateLegacyData: true, }, { skillId: 'basic.heavenBead', targetClassification: 'developing', problems: 25, simulateLegacyData: true, }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 100 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'weak', problems: 100 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'developing', problems: 50 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'strong', problems: 40, ageDays: 90, simulateLegacyData: true, }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 60, gameCount: 6, spreadDays: 45, }, ], }, { name: '🧊 Forgotten Weaknesses', emoji: '🧊', color: '#3b82f6', category: 'edge', description: 'EDGE CASE - Weak skills that are also stale (urgent remediation needed)', currentPhaseId: 'L1.add.+2.five', practicingSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], tutorialCompletedSkills: [ 'basic.directAddition', 'basic.heavenBead', 'basic.simpleCombinations', 'fiveComplements.4=5-1', 'fiveComplements.3=5-2', 'fiveComplements.2=5-3', ], intentionNotes: `INTENTION: Forgotten Weaknesses This student has a realistic mix of weak and stale skills - NOT the same set. Session Mode: Should trigger REMEDIATION. Skill breakdown: • 1 skill STRONG + recent (healthy baseline) • 1 skill STRONG + stale 20 days (stale-only, should refresh easily) • 1 skill WEAK + recent (weak-only, actively struggling) • 1 skill WEAK + stale 14 days (overlap: weak AND stale) • 1 skill WEAK + stale 35 days (overlap: urgent forgotten weakness) • 1 skill DEVELOPING + stale 25 days (borderline, needs attention) This tests: • Different combinations of weak/stale indicators • UI distinguishing "stale but strong" from "stale AND weak" • Session planning prioritizing weak+stale over strong+stale • BKT decay effects on skills at different mastery levels Real-world scenario: Student has been practicing inconsistently. Some skills are rusty from neglect (stale), others they just can't get (weak), and some are both - the forgotten weaknesses that need urgent attention.`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 20, ageDays: 1 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 18, ageDays: 20 }, { skillId: 'basic.simpleCombinations', targetClassification: 'weak', problems: 15, ageDays: 2, }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'weak', problems: 14, ageDays: 14 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 18, ageDays: 35 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'developing', problems: 16, ageDays: 25, }, ], successCriteria: { minWeak: 3 }, gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 45, gameCount: 4, spreadDays: 45, }, ], }, // ============================================================================= // Chart Edge Case Profiles // ============================================================================= { name: '📉 Chart: 1 Session Only', emoji: '📉', color: '#64748b', category: 'edge', description: 'CHART EDGE - Only 1 session, chart shows legend only (no area chart)', currentPhaseId: 'L1.add.+2.five', practicingSkills: MID_L1_SKILLS, minSessions: 1, sessionSpreadDays: 1, tutorialCompletedSkills: MID_L1_SKILLS, intentionNotes: `INTENTION: Chart Edge Case - 1 Session Only This student has exactly ONE completed practice session. What you should see: • SkillProgressChart shows legend cards ONLY (no stacked area chart) • Legend cards show current skill distribution • Filter functionality still works • Motivational message prompts for more practice Use this to verify the chart gracefully handles the minimum history case.`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 8 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 6 }, { skillId: 'basic.simpleCombinations', targetClassification: 'developing', problems: 5 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'developing', problems: 4 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 3 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 50, gameCount: 1, spreadDays: 1, }, ], }, { name: '📊 Chart: 2 Sessions (Min)', emoji: '📊', color: '#0ea5e9', category: 'edge', description: 'CHART EDGE - Exactly 2 sessions, minimum to show stacked area chart', currentPhaseId: 'L1.add.+2.five', practicingSkills: MID_L1_SKILLS, minSessions: 2, sessionSpreadDays: 7, tutorialCompletedSkills: MID_L1_SKILLS, intentionNotes: `INTENTION: Chart Edge Case - 2 Sessions (Minimum for Chart) This student has exactly TWO completed practice sessions. What you should see: • SkillProgressChart shows stacked area chart with 2 data points • Chart shows progression from session 1 to session 2 • Legend cards show current skill distribution • Filter functionality works on both chart and skill lists Use this to verify the chart renders correctly at the minimum viable history.`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 12 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 10 }, { skillId: 'basic.simpleCombinations', targetClassification: 'developing', problems: 8 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'developing', problems: 6 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 5 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 55, gameCount: 2, spreadDays: 7, }, ], }, { name: '📈 Chart: 25 Sessions', emoji: '📈', color: '#10b981', category: 'edge', description: 'CHART EDGE - 25 sessions, tests the 20-session display limit', currentPhaseId: 'L1.add.+1.five', practicingSkills: LATE_L1_ADD_SKILLS, minSessions: 25, sessionSpreadDays: 60, ensureAllPracticingHaveHistory: true, tutorialCompletedSkills: LATE_L1_ADD_SKILLS, intentionNotes: `INTENTION: Chart Edge Case - 25 Sessions (Tests 20-Limit) This student has 25 completed practice sessions over 60 days. The chart only shows the LAST 20 sessions. What you should see: • SkillProgressChart shows stacked area chart with 20 data points (not 25) • Chart shows smooth progression over 2 months • Skills transition from weak → developing → strong over time • Legend cards accurately reflect current state • X-axis dates span ~40 days (the last 20 sessions) Use this to verify: • The 20-session limit is enforced correctly • Chart handles medium-length histories well • Date labels are readable and not overcrowded`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 50 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 45 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 40 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 35 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'strong', problems: 30 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'developing', problems: 25 }, { skillId: 'fiveComplements.1=5-4', targetClassification: 'developing', problems: 20 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 75, gameCount: 15, spreadDays: 60, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 72, gameCount: 10, spreadDays: 60, }, ], }, { name: '🏋️ Chart: 150 Sessions', emoji: '🏋️', color: '#8b5cf6', category: 'edge', description: 'CHART EDGE - 150 sessions, stress test for high-volume history', currentPhaseId: 'L2.add.+9.ten', practicingSkills: [...COMPLETE_L1_SKILLS, ...L2_ADD_SKILLS], minSessions: 150, sessionSpreadDays: 180, ensureAllPracticingHaveHistory: true, tutorialCompletedSkills: [...COMPLETE_L1_SKILLS, ...L2_ADD_SKILLS], intentionNotes: `INTENTION: Chart Edge Case - 150 Sessions (Stress Test) This student has 150 completed practice sessions over 6 months. This is a STRESS TEST for database queries and chart performance. What you should see: • SkillProgressChart shows stacked area chart with exactly 20 data points • Chart only shows most recent 20 sessions (not all 150) • Page loads without noticeable delay • All skills are mastered (strong) after this much practice • Motivational message reflects the extensive progress Use this to verify: • Database query performance with large history • Chart rendering doesn't slow down with lots of data • The 20-session limit keeps the UI responsive • Memory usage stays reasonable`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 150 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 140 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 130 }, { skillId: 'basic.directSubtraction', targetClassification: 'strong', problems: 120 }, { skillId: 'basic.heavenBeadSubtraction', targetClassification: 'strong', problems: 110 }, { skillId: 'basic.simpleCombinationsSub', targetClassification: 'strong', problems: 100 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 90 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'strong', problems: 85 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'strong', problems: 80 }, { skillId: 'fiveComplements.1=5-4', targetClassification: 'strong', problems: 75 }, { skillId: 'fiveComplementsSub.-4=-5+1', targetClassification: 'strong', problems: 70 }, { skillId: 'fiveComplementsSub.-3=-5+2', targetClassification: 'strong', problems: 65 }, { skillId: 'fiveComplementsSub.-2=-5+3', targetClassification: 'strong', problems: 60 }, { skillId: 'fiveComplementsSub.-1=-5+4', targetClassification: 'strong', problems: 55 }, { skillId: 'tenComplements.9=10-1', targetClassification: 'strong', problems: 50 }, { skillId: 'tenComplements.8=10-2', targetClassification: 'strong', problems: 45 }, { skillId: 'tenComplements.7=10-3', targetClassification: 'strong', problems: 40 }, { skillId: 'tenComplements.6=10-4', targetClassification: 'strong', problems: 35 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 88, gameCount: 75, spreadDays: 180, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 85, gameCount: 50, spreadDays: 180, }, { gameName: 'complement-race', displayName: 'Complement Race', icon: '🏁', category: 'speed', targetScore: 82, gameCount: 40, spreadDays: 180, }, { gameName: 'memory-quiz', displayName: 'Memory Quiz', icon: '🧠', category: 'memory', targetScore: 80, gameCount: 30, spreadDays: 180, }, ], }, { name: '🌈 Chart: Dramatic Progress', emoji: '🌈', color: '#f43f5e', category: 'edge', description: 'CHART EDGE - Shows dramatic improvement trajectory for motivational display', currentPhaseId: 'L1.add.+1.five', practicingSkills: LATE_L1_ADD_SKILLS, minSessions: 15, sessionSpreadDays: 45, ensureAllPracticingHaveHistory: true, tutorialCompletedSkills: LATE_L1_ADD_SKILLS, intentionNotes: `INTENTION: Chart Edge Case - Dramatic Progress This student shows a clear learning trajectory where skills go from mostly weak → developing → mostly strong over 15 sessions. What you should see: • SkillProgressChart shows beautiful upward progress • Early sessions: lots of red (weak) and blue (developing) • Middle sessions: transition happening • Recent sessions: mostly green (strong) • Motivational message celebrates the progress Use this to verify: • Chart visually shows the learning journey • Color transitions are smooth and readable • Motivational message correctly detects improvement`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 35 }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 32 }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 28 }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'strong', problems: 25 }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'developing', problems: 18 }, { skillId: 'fiveComplements.2=5-3', targetClassification: 'developing', problems: 15 }, { skillId: 'fiveComplements.1=5-4', targetClassification: 'weak', problems: 10 }, ], gameHistory: [ { gameName: 'matching', displayName: 'Matching Pairs', icon: '⚔️', category: 'memory', targetScore: 78, gameCount: 12, spreadDays: 45, }, { gameName: 'card-sorting', displayName: 'Card Sorting', icon: '🔢', category: 'puzzle', targetScore: 75, gameCount: 8, spreadDays: 45, }, ], }, // ============================================================================= // Progressive Assistance Test Profiles // ============================================================================= { name: '🐢 Slow Struggling Student', emoji: '🐢', color: '#b45309', category: 'edge', description: 'PROGRESSIVE ASSISTANCE - Slow responses, thresholds in mid-range (not clamped)', currentPhaseId: 'L1.add.+3.five', practicingSkills: MID_L1_SKILLS, ensureAllPracticingHaveHistory: true, tutorialCompletedSkills: MID_L1_SKILLS, intentionNotes: `INTENTION: Slow Struggling Student (Progressive Assistance Test) This student has SLOW response times (15-30s per problem) that produce progressive assistance thresholds in the mid-range, avoiding min/max clamps. Response time range: 15,000 - 30,000ms Expected statistics (with ~40+ problems): mean ≈ 22.5s, σ ≈ 4.3s Expected progressive thresholds: encouragement: clamp(22.5s, 8s, 45s) = 22.5s ← mid-range, not clamped helpOffer: clamp(26.8s, 15s, 90s) = 26.8s ← mid-range, not clamped autoPause: clamp(31.1s, 30s, 300s) = 31.1s ← just above minimum Skills are mixed (some weak, some developing) so the student will actually struggle and trigger the assistance system during practice. Use this to test: • Timer-driven escalation: idle → encouraging → offeringHelp → autoPaused • Thresholds computed from actual response time statistics • Debug panel showing statistical threshold calculation • The full assistance lifecycle with realistic pacing`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 20, responseTimeMsRange: { min: 15000, max: 30000 }, }, { skillId: 'basic.heavenBead', targetClassification: 'developing', problems: 18, responseTimeMsRange: { min: 15000, max: 30000 }, }, { skillId: 'basic.simpleCombinations', targetClassification: 'weak', problems: 15, responseTimeMsRange: { min: 15000, max: 30000 }, }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'weak', problems: 12, responseTimeMsRange: { min: 15000, max: 30000 }, }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 10, responseTimeMsRange: { min: 15000, max: 30000 }, }, ], }, { name: '🎲 High Variance Student', emoji: '🎲', color: '#7c3aed', category: 'edge', description: 'PROGRESSIVE ASSISTANCE - Wide response time spread, large gaps between thresholds', currentPhaseId: 'L1.add.+2.five', practicingSkills: MID_L1_SKILLS, ensureAllPracticingHaveHistory: true, tutorialCompletedSkills: MID_L1_SKILLS, intentionNotes: `INTENTION: High Variance Student (Progressive Assistance Test) This student has HIGHLY VARIABLE response times (5-45s per problem). Some problems are answered quickly, others take very long. This produces WIDE gaps between progressive assistance thresholds. Response time range: 5,000 - 45,000ms Expected statistics (with ~50+ problems): mean ≈ 25s, σ ≈ 11.5s Expected progressive thresholds: encouragement: clamp(25s, 8s, 45s) = 25s ← mid-range helpOffer: clamp(36.5s, 15s, 90s) = 36.5s ← mid-range, wide gap from encouragement autoPause: clamp(48s, 30s, 300s) = 48s ← well above minimum The wide σ means there's a BIG gap between encouragement (25s) and auto-pause (48s), giving the student plenty of time to get help. Skills are developing (mid-range accuracy) — typical of a student who sometimes "gets it" and sometimes doesn't. Use this to test: • Large gaps between threshold levels • Debug panel threshold progress bar with wide segments • Student has time to interact with help offer before auto-pause • Statistical calculation handles high variance correctly`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 22, responseTimeMsRange: { min: 5000, max: 45000 }, }, { skillId: 'basic.heavenBead', targetClassification: 'developing', problems: 20, responseTimeMsRange: { min: 5000, max: 45000 }, }, { skillId: 'basic.simpleCombinations', targetClassification: 'developing', problems: 18, responseTimeMsRange: { min: 5000, max: 45000 }, }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'developing', problems: 15, responseTimeMsRange: { min: 5000, max: 45000 }, }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 12, responseTimeMsRange: { min: 5000, max: 45000 }, }, ], }, { name: '⚡ Fast Responder', emoji: '⚡', color: '#eab308', category: 'edge', description: 'PROGRESSIVE ASSISTANCE - Very fast responses, all thresholds at minimum clamps', currentPhaseId: 'L1.add.+3.five', practicingSkills: MID_L1_SKILLS, ensureAllPracticingHaveHistory: true, tutorialCompletedSkills: MID_L1_SKILLS, intentionNotes: `INTENTION: Fast Responder (Progressive Assistance Test) This student has VERY FAST response times (1.5-4s per problem). All progressive assistance thresholds will hit their MINIMUM clamps. Response time range: 1,500 - 4,000ms Expected statistics (with ~50+ problems): mean ≈ 2.75s, σ ≈ 0.72s Expected progressive thresholds (all clamped to minimums): encouragement: clamp(2.75s, 8s, 45s) = 8s ← minimum clamp helpOffer: clamp(3.47s, 15s, 90s) = 15s ← minimum clamp autoPause: clamp(4.19s, 30s, 300s) = 30s ← minimum clamp This is the BASELINE case — tests that the min clamps work correctly and that the assistance system still functions with fast responders. Most real students answering basic addition will be in this range. Skills are mostly strong (fast student = proficient student), with one weak skill to provide a realistic struggle point. Use this to test: • Min clamp behavior (thresholds = 8s, 15s, 30s) • Escalation still works at minimum thresholds • Compare with 🐢 Slow Struggling to see full threshold range • Debug panel showing clamped vs. computed values`, skillHistory: [ { skillId: 'basic.directAddition', targetClassification: 'strong', problems: 25, responseTimeMsRange: { min: 1500, max: 4000 }, }, { skillId: 'basic.heavenBead', targetClassification: 'strong', problems: 22, responseTimeMsRange: { min: 1500, max: 4000 }, }, { skillId: 'basic.simpleCombinations', targetClassification: 'strong', problems: 20, responseTimeMsRange: { min: 1500, max: 4000 }, }, { skillId: 'fiveComplements.4=5-1', targetClassification: 'developing', problems: 15, responseTimeMsRange: { min: 1500, max: 4000 }, }, { skillId: 'fiveComplements.3=5-2', targetClassification: 'weak', problems: 10, responseTimeMsRange: { min: 1500, max: 4000 }, }, ], }, ] // ============================================================================= // Profile filtering and tag utilities // ============================================================================= /** * Automatically derive filter tags from profile properties */ export function deriveTags(profile: TestStudentProfile): string[] { const tags: string[] = [] // Category tag tags.push(profile.category) // Session mode tags if (profile.expectedSessionMode) { tags.push(profile.expectedSessionMode) } // Special property tags if (profile.skillHistory.some((s) => s.ageDays && s.ageDays > 7)) { tags.push('stale-skills') } if (profile.skillHistory.some((s) => s.simulateLegacyData)) { tags.push('legacy-data') } if (profile.name.toLowerCase().includes('chart')) { tags.push('chart-test') } if (profile.practicingSkills.length === 0) { tags.push('empty-state') } if (profile.intentionNotes.includes('TERM COUNT SCALING')) { tags.push('term-count-scaling') } if (profile.skillHistory.some((s) => s.responseTimeMsRange)) { tags.push('progressive-assistance') } return tags } /** * Filter profiles by category and/or names */ export function filterProfiles( profiles: TestStudentProfile[], options: { names?: string[]; categories?: ProfileCategory[] } ): TestStudentProfile[] { const { names = [], categories = [] } = options if (names.length === 0 && categories.length === 0) { return profiles } return profiles.filter((profile) => { const matchesName = names.length === 0 || names.some( (n) => profile.name.toLowerCase().includes(n.toLowerCase()) || n.toLowerCase().includes(profile.name.toLowerCase()) ) const matchesCategory = categories.length === 0 || categories.includes(profile.category) if (names.length > 0 && categories.length > 0) { return matchesName || matchesCategory } return matchesName && matchesCategory }) } /** * Get lightweight profile info for the UI (avoids shipping full profile data to client) */ export function getProfileInfoList(): ProfileInfo[] { return TEST_PROFILES.map((profile) => ({ name: profile.name, emoji: profile.emoji, description: profile.description, category: profile.category, intentionNotes: profile.intentionNotes, tags: deriveTags(profile), expectedSessionMode: profile.expectedSessionMode, practicingSkillCount: profile.practicingSkills.length, skillHistoryCount: profile.skillHistory.length, })) } |