@thanh01.pmt/curriculum-kit 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -3021,6 +3021,336 @@ This lab focuses on the practical implementation of core technical concepts, bri
3021
3021
  {{CHECKLIST_ITEMS}}
3022
3022
  `.trim();
3023
3023
 
3024
+ // src/templates/handoutTemplate.ts
3025
+ var HANDOUT_TEMPLATE = `
3026
+ ---
3027
+ id: "{{ID}}"
3028
+ title: "{{TITLE}}"
3029
+ type: "HANDOUT"
3030
+ created_by: "Curriculum OS Builder"
3031
+ phase: "{{PHASE}}"
3032
+ deliverable: "P3-T6"
3033
+ version: "{{VERSION}}"
3034
+ date: "{{DATE}}"
3035
+ ---
3036
+
3037
+ # STUDENT HANDOUT: {{TITLE}}
3038
+ **Quick-Reference Cheat Sheet & Concept Summary**
3039
+
3040
+ > **For Students:** This document summarizes the core concepts and the most important syntax following the **5-Second Rule** (instant look-up). Use it as a quick reference during your lab tasks or projects.
3041
+
3042
+ ## \u{1F4D6} 1. Core Concepts
3043
+ {{CORE_CONCEPTS_SUMMARY}}
3044
+
3045
+ ## \u26A1 2. Common Syntax & Configurations
3046
+ | Syntax / Config | Meaning & Function | Example / Snippet |
3047
+ | :--- | :--- | :--- |
3048
+ {{SYNTAX_TABLE_ROWS}}
3049
+
3050
+ ## \u{1F680} 3. General Problem-Solving Procedure
3051
+ *Three general thinking steps when tackling problems in this domain:*
3052
+ 1. **Step 1 (Input/Trigger):** {{STEP1_TRIGGER}}
3053
+ 2. **Step 2 (Logic/Transform):** {{STEP2_LOGIC}}
3054
+ 3. **Step 3 (Output/Verify):** {{STEP3_OUTPUT}}
3055
+
3056
+ ---
3057
+
3058
+ ### \u{1F4A1} Pro-tip
3059
+ {{PRO_TIPS}}
3060
+ `.trim();
3061
+
3062
+ // src/templates/slideTemplate.ts
3063
+ var SLIDE_TEMPLATE = `
3064
+ ---
3065
+ marp: true
3066
+ theme: {{THEME}}
3067
+ paginate: true
3068
+ header: "{{HEADER_TITLE}}"
3069
+ footer: "LearnWell Platform | {{LESSON_ID}}"
3070
+ ---
3071
+
3072
+ # \u{1F680} {{TITLE}}
3073
+ ### {{SUBTITLE}}
3074
+
3075
+ **Audience:** {{AUDIENCE}}
3076
+ **Tech Stack:** {{TECH_STACK}}
3077
+ **Estimated Time:** {{DURATION_MINS}} mins
3078
+
3079
+ <!--
3080
+ Presenter Notes:
3081
+ {{TITLE_PRESENTER_NOTES}}
3082
+ -->
3083
+
3084
+ ---
3085
+
3086
+ ## \u{1F5FA}\uFE0F Agenda & Milestone Journey Map
3087
+
3088
+ | Time | Stage | Focus Activity |
3089
+ |:---:|---|---|
3090
+ {{AGENDA_ROWS}}
3091
+
3092
+ <!--
3093
+ Presenter Notes:
3094
+ {{AGENDA_PRESENTER_NOTES}}
3095
+ -->
3096
+
3097
+ ---
3098
+
3099
+ ## \u26A1 Warm-Up & Prior Knowledge Recall
3100
+
3101
+ {{WARMUP_CONTENT}}
3102
+
3103
+ <!--
3104
+ Presenter Notes:
3105
+ {{WARMUP_PRESENTER_NOTES}}
3106
+ -->
3107
+
3108
+ ---
3109
+
3110
+ ## \u{1F3AF} Hook Scenario: The Real-World Engineering Challenge
3111
+
3112
+ > \u26A0\uFE0F **The Problem / System Failure:**
3113
+ > {{HOOK_SCENARIO}}
3114
+
3115
+ - **Key Constraint:** {{HOOK_CONSTRAINT}}
3116
+ - **Mission Question:** {{HOOK_QUESTION}}
3117
+
3118
+ <!--
3119
+ Presenter Notes:
3120
+ {{HOOK_PRESENTER_NOTES}}
3121
+ -->
3122
+
3123
+ ---
3124
+
3125
+ <!-- [CONCEPT_MICRO_CYCLES_START] -->
3126
+ {{CONCEPT_MICRO_CYCLES_SECTION}}
3127
+ <!-- [CONCEPT_MICRO_CYCLES_END] -->
3128
+
3129
+ ---
3130
+
3131
+ ## \u{1F6E0}\uFE0F Integrated Hands-On Lab: Capstone Challenge
3132
+
3133
+ ### \u{1F3AF} Mission Goal:
3134
+ {{ADVANCED_LAB_GOAL}}
3135
+
3136
+ ### 3-Tier Progressive Differentiation:
3137
+ - \u{1F949} **Bronze Tier:** {{BRONZE_TASK}}
3138
+ - \u{1F948} **Silver Tier:** {{SILVER_TASK}}
3139
+ - \u{1F947} **Gold Tier:** {{GOLD_TASK}}
3140
+
3141
+ <!--
3142
+ Presenter Notes:
3143
+ {{ADVANCED_LAB_PRESENTER_NOTES}}
3144
+ -->
3145
+
3146
+ ---
3147
+
3148
+ ## \u{1F6A6} Formative Checkpoint: Traffic Light Assessment
3149
+
3150
+ - \u{1F7E2} **Ready to Accelerate:** Solved Bronze + Silver, ready for Gold tier!
3151
+ - \u{1F7E1} **Need Quick Help:** Stuck on syntax or compilation error $\rightarrow$ Call assistant / check troubleshooting matrix.
3152
+ - \u{1F534} **Blocked:** Concept unclear $\rightarrow$ Step back to Micro-Practice 1.
3153
+
3154
+ <!--
3155
+ Presenter Notes:
3156
+ {{CHECKPOINT_PRESENTER_NOTES}}
3157
+ -->
3158
+
3159
+ ---
3160
+
3161
+ ## \u{1F39F}\uFE0F Exit Ticket & Metacognitive Reflection
3162
+
3163
+ 1. **Scenario Question 1:** {{EXIT_Q1}}
3164
+ 2. **Scenario Question 2:** {{EXIT_Q2}}
3165
+ 3. **Metacognitive Reflection:** {{EXIT_REFLECTION}}
3166
+
3167
+ <!--
3168
+ Presenter Notes:
3169
+ {{EXIT_PRESENTER_NOTES}}
3170
+ -->
3171
+
3172
+ ---
3173
+
3174
+ ## \u{1F3C1} Summary & Key Takeaways
3175
+
3176
+ - \u2705 **Rule 1:** {{TAKEAWAY_1}}
3177
+ - \u2705 **Rule 2:** {{TAKEAWAY_2}}
3178
+ - \u2705 **Rule 3:** {{TAKEAWAY_3}}
3179
+
3180
+ \u{1F449} **Next Milestone Preview:** {{NEXT_MILESTONE_PREVIEW}}
3181
+ `.trim();
3182
+
3183
+ // src/templates/worksheetTemplate.ts
3184
+ var WORKSHEET_TEMPLATE = `
3185
+ ---
3186
+ id: "{{ID}}"
3187
+ title: "{{TITLE}}"
3188
+ type: "WKS"
3189
+ created_by: "Curriculum OS Builder"
3190
+ phase: "{{PHASE}}"
3191
+ deliverable: "P3-T7"
3192
+ version: "{{VERSION}}"
3193
+ date: "{{DATE}}"
3194
+ ---
3195
+
3196
+ # WORKSHEET: {{TITLE}}
3197
+
3198
+ **Student Name:** _______________________
3199
+ **Class / Cohort:** _______________________
3200
+ **Date:** _______________________
3201
+
3202
+ > **For Students:** This document guides you step-by-step through practical tasks. Read carefully, fill in the blanks, and check off [x] once completed. If you encounter errors, refer back to your **HANDOUT**.
3203
+
3204
+ ## Part 1: Knowledge Check
3205
+ {{PART1_KNOWLEDGE_CHECK}}
3206
+
3207
+ ## Part 2: Guided Practice (Step-by-Step)
3208
+ **Task Objective:** {{PART2_OBJECTIVE}}
3209
+
3210
+ {{PART2_STEPS}}
3211
+
3212
+ ## Part 3: Reflection / Computational Thinking
3213
+ - What is the most critical lesson learned from today's practice?
3214
+ ____________________________________________________________________
3215
+ - If you wanted to scale this system for 10,000 active users, where do you predict the primary bottleneck will be?
3216
+ ____________________________________________________________________
3217
+ `.trim();
3218
+
3219
+ // src/templates/projectInstructionTemplate.ts
3220
+ var PROJECT_INSTRUCTION_TEMPLATE = `
3221
+ ---
3222
+ id: "{{ID}}"
3223
+ title: "{{TITLE}}"
3224
+ type: "INSTRUCTION"
3225
+ language: "{{LANGUAGE}}"
3226
+ difficulty: "{{DIFFICULTY}}"
3227
+ estimated_minutes: {{ESTIMATED_MINUTES}}
3228
+ tech_stack: {{TECH_STACK}}
3229
+ ---
3230
+
3231
+ # \u{1F6E0}\uFE0F {{TITLE}}
3232
+
3233
+ > \u23F1\uFE0F **Estimated Duration:** ~{{ESTIMATED_MINUTES}} mins
3234
+ > \u{1F3AF} **Difficulty:** {{DIFFICULTY_UPPER}}
3235
+ > \u{1F9F0} **Tech Stack:** {{TECH_STACK_STR}}
3236
+
3237
+ ---
3238
+
3239
+ ## \u{1F4CB} Prerequisites & Tools
3240
+ * **Prerequisites:** {{PREREQUISITES}}
3241
+ * **Materials & Tools:** {{MATERIALS_AND_TOOLS}}
3242
+
3243
+ ---
3244
+
3245
+ {{SECTIONS_CONTENT}}
3246
+
3247
+ ---
3248
+
3249
+ ## \u{1F3C1} Verification Checklist
3250
+ {{VERIFICATION_CHECKLIST}}
3251
+ `.trim();
3252
+
3253
+ // src/templates/rubricTemplate.ts
3254
+ var RUBRIC_TEMPLATE = `
3255
+ ---
3256
+ id: "{{ID}}"
3257
+ title: "{{TITLE}}"
3258
+ type: "RUBRIC"
3259
+ created_by: "Curriculum OS Builder"
3260
+ phase: "{{PHASE}}"
3261
+ deliverable: "P3-T5"
3262
+ version: "{{VERSION}}"
3263
+ date: "{{DATE}}"
3264
+ template_contract: "artifact-template-v1"
3265
+ template_required_sections:
3266
+ - "Assessment Overview"
3267
+ - "Assessment Rubric"
3268
+ ---
3269
+
3270
+ # ASSESSMENT: {{TITLE}}
3271
+
3272
+ _Milestone: {{MILESTONE_ID}} | Lesson: {{LESSON_ID}}_
3273
+
3274
+ ## [REQUIRED] Assessment Overview
3275
+ - **Type:** {{ASSESSMENT_TYPE}}
3276
+ - **Format:** {{ASSESSMENT_FORMAT}}
3277
+ - **Learning Objectives Measured:** {{LEARNING_OBJECTIVES_MEASURED}}
3278
+ - **Target Language:** {{TARGET_AUDIENCE_NOTE}}
3279
+
3280
+ ---
3281
+
3282
+ ## [REQUIRED] Assessment Rubric
3283
+ _Note for @assessor: Describe SPECIFIC behaviors. Avoid vague words like "good" or "understand."_
3284
+
3285
+ | Criteria | Weight | Excellent (4) | Proficient (3) | Developing (2) | Beginning (1) |
3286
+ |---|:---:|---|---|---|---|
3287
+ {{RUBRIC_TABLE_ROWS}}
3288
+
3289
+ ---
3290
+
3291
+ ## [OPTIONAL] Exit Ticket
3292
+ _Used at the end of class for a quick pulse check (Max 3 questions)._
3293
+ {{EXIT_TICKET_QUESTIONS}}
3294
+
3295
+ ---
3296
+
3297
+ ## [OPTIONAL] Student Self-Assessment Checklist
3298
+ _Simple language for students to reflect after completing a project._
3299
+ {{SELF_ASSESSMENT_CHECKLIST}}
3300
+ `.trim();
3301
+
3302
+ // src/templates/guideTemplate.ts
3303
+ var TEACHER_GUIDE_TEMPLATE = `
3304
+ ---
3305
+ id: "{{ID}}"
3306
+ title: "{{TITLE}}"
3307
+ type: "GUIDE"
3308
+ created_by: "Curriculum OS Builder"
3309
+ phase: "{{PHASE}}"
3310
+ deliverable: "P3-T5"
3311
+ version: "{{VERSION}}"
3312
+ date: "{{DATE}}"
3313
+ ---
3314
+
3315
+ # TEACHER GUIDE: {{TITLE}}
3316
+ _For Teacher Use Only | Milestone: {{MILESTONE_ID}} | Lesson: {{LESSON_ID}}_
3317
+
3318
+ ## 1. Objectives & Preparation
3319
+ - **Pedagogical Goal:** {{PEDAGOGICAL_GOAL}}
3320
+ - **Common Student Blindspots:** {{COMMON_BLINDSPOTS}}
3321
+ - **Technical Checklist:**
3322
+ {{TECHNICAL_CHECKLIST}}
3323
+
3324
+ ## 2. Teaching Script & Progression
3325
+
3326
+ ### Hook / Engage (5-10 minutes)
3327
+ - **The Delivery:** {{HOOK_DELIVERY}}
3328
+ - **Key Point:** {{HOOK_KEY_POINT}}
3329
+
3330
+ ### Explore / Core Concepts (15-20 minutes)
3331
+ - **Explanation Strategy:** {{EXPLANATION_STRATEGY}}
3332
+ - **Quick Check Questions:**
3333
+ {{QUICK_CHECK_QUESTIONS}}
3334
+ - **Time Management:** {{TIME_MANAGEMENT_TIPS}}
3335
+
3336
+ ### Elaborate / Hands-on Activity (30-45 minutes)
3337
+ - **Classroom Management:** {{CLASSROOM_MANAGEMENT}}
3338
+ - **Facilitation:** {{FACILITATION_TIPS}}
3339
+ - **Pro-tips:** {{PRO_TIPS}}
3340
+
3341
+ ### Evaluate / Wrap-up (5-10 minutes)
3342
+ - **Exit Ticket Strategy:** {{EXIT_TICKET_STRATEGY}}
3343
+ - **Minimum Requirement:** {{MINIMUM_REQUIREMENT}}
3344
+
3345
+ ## 3. Troubleshooting & FAQs
3346
+ {{TROUBLESHOOTING_FAQS}}
3347
+
3348
+ ## 4. Assessment & Differentiation Tips
3349
+ - **Proficient:** {{PROFICIENT_THRESHOLD}}
3350
+ - **Advanced:** {{ADVANCED_EXTENSIONS}}
3351
+ - **Enrichment Question:** {{ENRICHMENT_QUESTIONS}}
3352
+ `.trim();
3353
+
3024
3354
  // src/templates/selfLabTemplate.ts
3025
3355
  var SELF_LAB_TEMPLATE = `
3026
3356
  ---
@@ -3223,6 +3553,1351 @@ passing_score_pct: {{PASSING_SCORE_PCT}}
3223
3553
  </details>
3224
3554
  `.trim();
3225
3555
 
3556
+ // src/templates/extTemplate.ts
3557
+ var EXT_TEMPLATE = `---
3558
+ id: "{{ID}}"
3559
+ title: "{{TITLE}}"
3560
+ type: "EXT"
3561
+ created_by: "Curriculum OS Builder"
3562
+ phase: "{{PHASE}}"
3563
+ deliverable: "P3-T8"
3564
+ version: "{{VERSION}}"
3565
+ date: "{{DATE}}"
3566
+ template_contract: "artifact-template-v1"
3567
+ template_required_sections:
3568
+ - "Target Mastery & Acceleration"
3569
+ - "Challenge 1"
3570
+ - "Challenge 2"
3571
+ - "Verification Criteria"
3572
+ ---
3573
+ <!-- INJECT_BODY -->
3574
+
3575
+ # EXTENSION CHALLENGES: {{TITLE}}
3576
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Lesson: {{LESSON_ID}}_
3577
+
3578
+ ## [REQUIRED] Target Mastery & Acceleration
3579
+ > *Designed for advanced learners who have successfully completed the core lesson requirements ahead of schedule.*
3580
+
3581
+ ---
3582
+
3583
+ ## [REQUIRED] Challenge 1: {{CHALLENGE_1_TITLE}} (Difficulty: \u2B50\u2B50\u2B50)
3584
+ - **Problem Statement:** {{CHALLENGE_1_DESCRIPTION}}
3585
+ - **Architectural Clues & Hints:**
3586
+ {{CHALLENGE_1_HINTS}}
3587
+ - **Expected Outcome & Deliverable:** {{CHALLENGE_1_OUTCOME}}
3588
+
3589
+ ---
3590
+
3591
+ ## [REQUIRED] Challenge 2: {{CHALLENGE_2_TITLE}} (Difficulty: \u2B50\u2B50\u2B50\u2B50)
3592
+ - **Problem Statement:** {{CHALLENGE_2_DESCRIPTION}}
3593
+ - **Architectural Clues & Hints:**
3594
+ {{CHALLENGE_2_HINTS}}
3595
+ - **Expected Outcome & Deliverable:** {{CHALLENGE_2_OUTCOME}}
3596
+
3597
+ ---
3598
+
3599
+ ## [REQUIRED] Verification Criteria
3600
+ - [ ] Code passes all extended unit tests.
3601
+ - [ ] No regression introduced into core components.
3602
+ - [ ] Demonstrates high-order optimization or architectural separation.
3603
+ `;
3604
+
3605
+ // src/templates/glossaryTemplate.ts
3606
+ var GLOSSARY_TEMPLATE = `---
3607
+ id: "{{ID}}"
3608
+ title: "{{TITLE}}"
3609
+ type: "GLOSSARY"
3610
+ created_by: "Curriculum OS Builder"
3611
+ phase: "{{PHASE}}"
3612
+ deliverable: "P3-T9"
3613
+ version: "{{VERSION}}"
3614
+ date: "{{DATE}}"
3615
+ template_contract: "artifact-template-v1"
3616
+ template_required_sections:
3617
+ - "Core Technical Terminology"
3618
+ - "Conceptual Analogies & Non-examples"
3619
+ - "Cross-Technology Crosswalk"
3620
+ ---
3621
+ <!-- INJECT_BODY -->
3622
+
3623
+ # TECHNICAL GLOSSARY & VOCABULARY: {{TITLE}}
3624
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Reference Standard: CS2023_
3625
+
3626
+ ## [REQUIRED] Core Technical Terminology
3627
+
3628
+ | Term / Keyword | Formal Engineering Definition | Code Usage Context | Common Misconception |
3629
+ | :--- | :--- | :--- | :--- |
3630
+ {{GLOSSARY_TABLE_ROWS}}
3631
+
3632
+ ---
3633
+
3634
+ ## [REQUIRED] Conceptual Analogies & Non-examples
3635
+
3636
+ {{ANALOGY_SECTIONS}}
3637
+
3638
+ ---
3639
+
3640
+ ## [REQUIRED] Cross-Technology Crosswalk (Neutral vs. Specific)
3641
+
3642
+ | Universal Concept (Marr Level 1/2) | Target Language Syntax (Level 3) | Alternative Language Equivalent |
3643
+ | :--- | :--- | :--- |
3644
+ {{CROSSWALK_ROWS}}
3645
+ `;
3646
+ var BOM_TEMPLATE = `---
3647
+ id: "{{ID}}"
3648
+ title: "{{TITLE}}"
3649
+ type: "BOM"
3650
+ created_by: "Curriculum OS Builder"
3651
+ phase: "{{PHASE}}"
3652
+ deliverable: "P3-T6"
3653
+ version: "{{VERSION}}"
3654
+ date: "{{DATE}}"
3655
+ template_contract: "artifact-template-v1"
3656
+ template_required_sections:
3657
+ - "Hardware & Sensor Specification"
3658
+ - "Software & Environment Invariants"
3659
+ - "Procurement & Safety Requirements"
3660
+ ---
3661
+ <!-- INJECT_BODY -->
3662
+
3663
+ # BILL OF MATERIALS & LAB PREREQUISITES: {{TITLE}}
3664
+ _Unit: {{UNIT_ID}} | Target Class Size: {{CLASS_SIZE}} Students_
3665
+
3666
+ ## [REQUIRED] Hardware & Sensor Specification
3667
+
3668
+ | Item Code | Component Name | Required Qty per Student/Group | Min Spec / Pinout | Alternative Substitute |
3669
+ | :--- | :--- | :--- | :--- | :--- |
3670
+ {{HARDWARE_BOM_ROWS}}
3671
+
3672
+ ---
3673
+
3674
+ ## [REQUIRED] Software & Environment Invariants
3675
+
3676
+ | Tool / Runtime | Required Version | Licensing / Cost | Fallback Offline Mode |
3677
+ | :--- | :--- | :--- | :--- |
3678
+ {{SOFTWARE_BOM_ROWS}}
3679
+
3680
+ ---
3681
+
3682
+ ## [REQUIRED] Procurement & Safety Requirements
3683
+ - \u26A0\uFE0F **Voltage & Current Constraints:** {{POWER_CONSTRAINTS}}
3684
+ - \u{1F512} **API Quota & Rate Limits:** {{API_LIMITS}}
3685
+ `;
3686
+
3687
+ // src/templates/exitTicketTemplate.ts
3688
+ var EXIT_TICKET_TEMPLATE = `---
3689
+ id: "{{ID}}"
3690
+ title: "{{TITLE}}"
3691
+ type: "EXIT_TICKET"
3692
+ created_by: "Curriculum OS Builder"
3693
+ phase: "{{PHASE}}"
3694
+ deliverable: "P3-T10"
3695
+ version: "{{VERSION}}"
3696
+ date: "{{DATE}}"
3697
+ template_contract: "artifact-template-v1"
3698
+ template_required_sections:
3699
+ - "Target Learning Objectives"
3700
+ - "Recall & Conceptual Anchor"
3701
+ - "Application & Bug Hunt"
3702
+ - "Metacognitive Reflection & Confidence Check"
3703
+ - "Scoring & Teacher Intervention Trigger"
3704
+ ---
3705
+ <!-- INJECT_BODY -->
3706
+
3707
+ # FORMATIVE EXIT TICKET: {{TITLE}}
3708
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Lesson: {{LESSON_ID}} | Estimated Time: 5-7 mins_
3709
+
3710
+ ## [REQUIRED] Target Learning Objectives
3711
+ - **Target LO 1 (ULO):** {{TARGET_LO_1}}
3712
+ - **Target LO 2 (CIO/SIO):** {{TARGET_LO_2}}
3713
+
3714
+ ---
3715
+
3716
+ ## [REQUIRED] Part 1: Recall & Conceptual Anchor (Prompt 1)
3717
+ > *Objective: Test core mental model without allowing rote syntax memorization.*
3718
+
3719
+ **Question 1:**
3720
+ {{CONCEPTUAL_QUESTION}}
3721
+
3722
+ - **Student Answer Area:**
3723
+ \`\`\`text
3724
+ [Write 1-2 concise sentences explaining the difference in runtime mechanism]
3725
+ \`\`\`
3726
+
3727
+ ---
3728
+
3729
+ ## [REQUIRED] Part 2: Application & Bug Hunt (Prompt 2)
3730
+ > *Objective: Test code diagnosis and precise correction in \u2264 3 lines of modification.*
3731
+
3732
+ **Code Snippet:**
3733
+ \`\`\`{{CODE_LANGUAGE}}
3734
+ {{BUGGY_CODE_SNIPPET}}
3735
+ \`\`\`
3736
+
3737
+ **Task:**
3738
+ 1. **Identify the Compiler/Runtime Error:** {{BUG_SYMPTOM_HINT}}
3739
+ 2. **Corrected Line:**
3740
+ \`\`\`{{CODE_LANGUAGE}}
3741
+ {{CORRECTED_CODE_SLOT}}
3742
+ \`\`\`
3743
+
3744
+ ---
3745
+
3746
+ ## [REQUIRED] Part 3: Metacognitive Reflection & Confidence Check (Prompt 3)
3747
+ > *Objective: Empower student self-regulation and provide immediate diagnostic signals.*
3748
+
3749
+ **Traffic Light Self-Assessment:**
3750
+ - [ ] \u{1F7E2} **Green (Mastered):** "I can build and explain this concept to a peer without any hints."
3751
+ - [ ] \u{1F7E1} **Yellow (Needs Practice):** "I understand the concept but got stuck on syntax or error messages."
3752
+ - [ ] \u{1F534} **Red (Blocked):** "I need help understanding why this architecture is used."
3753
+
3754
+ **One Lingering Question (Exit Ticket Note):**
3755
+ \`\`\`text
3756
+ [What is one question you still have before leaving today's lab?]
3757
+ \`\`\`
3758
+
3759
+ ---
3760
+
3761
+ ## [REQUIRED] Scoring & Teacher Intervention Trigger
3762
+ - **Proficiency Threshold:** Green/Yellow check + Correct Answer to Part 2 Bug Hunt.
3763
+ - **Intervention Protocol:** {{INTERVENTION_PROTOCOL}}
3764
+ `;
3765
+
3766
+ // src/templates/tieredPracticeTemplate.ts
3767
+ var TIERED_PRACTICE_TEMPLATE = `---
3768
+ id: "{{ID}}"
3769
+ title: "{{TITLE}}"
3770
+ type: "TIERED_PRACTICE"
3771
+ created_by: "Curriculum OS Builder"
3772
+ phase: "{{PHASE}}"
3773
+ deliverable: "P3-T11"
3774
+ version: "{{VERSION}}"
3775
+ date: "{{DATE}}"
3776
+ template_contract: "artifact-template-v1"
3777
+ template_required_sections:
3778
+ - "Computational Objective & Tier Matrix"
3779
+ - "Bronze Tier (Foundational Scaffolding)"
3780
+ - "Silver Tier (Independent Application)"
3781
+ - "Gold Tier (Enrichment & Optimization)"
3782
+ - "Automated Test Verification Matrix"
3783
+ - "Answer Key & Mentor Hints"
3784
+ ---
3785
+ <!-- INJECT_BODY -->
3786
+
3787
+ # 3-TIER DIFFERENTIATED PRACTICE LAB: {{TITLE}}
3788
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Lesson: {{LESSON_ID}} | Mode: Adaptive Lab_
3789
+
3790
+ ## [REQUIRED] Computational Objective & Tier Matrix
3791
+
3792
+ | Tier Level | Cognitive Target (Bloom) | Scaffolding Ratio | Success Criteria |
3793
+ | :--- | :--- | :--- | :--- |
3794
+ | \u{1F949} **Bronze** | Remember / Understand | **70% Starter Code / 30% Fill-in** | Complete basic syntax & pass Baseline Unit Test. |
3795
+ | \u{1F948} **Silver** | Apply / Analyze | **30% Starter Code / 70% Implementation** | Implement business logic, edge-case handling & multi-component binding. |
3796
+ | \u{1F947} **Gold** | Evaluate / Create | **0% Code / Open Architecture** | Optimize performance, refactor with concurrency/state isolation & self-author tests. |
3797
+
3798
+ ---
3799
+
3800
+ ## [REQUIRED] \u{1F949} Bronze Tier: Foundational Scaffolding (Baseline for All)
3801
+ - **Target Audience:** All learners (mandatory milestone).
3802
+ - **Guiding Prompt:** {{BRONZE_PROMPT}}
3803
+
3804
+ ### Starter Code & Fill-in Slots:
3805
+ \`\`\`{{CODE_LANGUAGE}}
3806
+ {{BRONZE_STARTER_CODE}}
3807
+ \`\`\`
3808
+
3809
+ - **Verification Check:** Run test \`testBronzeBaseline()\` \u2014 Expect status \`PASS\`.
3810
+
3811
+ ---
3812
+
3813
+ ## [REQUIRED] \u{1F948} Silver Tier: Independent Application (Target Mastery)
3814
+ - **Target Audience:** Learners who completed Bronze without mentor intervention.
3815
+ - **Guiding Prompt:** {{SILVER_PROMPT}}
3816
+
3817
+ ### Specification & Requirements:
3818
+ {{SILVER_SPECIFICATIONS}}
3819
+
3820
+ ### Implementation Target:
3821
+ \`\`\`{{CODE_LANGUAGE}}
3822
+ {{SILVER_IMPLEMENTATION_SLOT}}
3823
+ \`\`\`
3824
+
3825
+ - **Verification Check:** Run test \`testSilverLogicAndValidation()\` \u2014 Expect status \`PASS\`.
3826
+
3827
+ ---
3828
+
3829
+ ## [REQUIRED] \u{1F947} Gold Tier: Enrichment & Optimization (Open Extension)
3830
+ - **Target Audience:** Advanced learners finished ahead of schedule.
3831
+ - **Architectural Challenge:** {{GOLD_CHALLENGE}}
3832
+
3833
+ ### Constraints & Invariants:
3834
+ {{GOLD_CONSTRAINTS}}
3835
+
3836
+ ---
3837
+
3838
+ ## [REQUIRED] Automated Test Verification Matrix & Mentor Hints
3839
+ \`\`\`{{CODE_LANGUAGE}}
3840
+ {{TEST_HARNESS_CODE}}
3841
+ \`\`\`
3842
+
3843
+ ### Mentor Debugging Cheatsheet:
3844
+ {{MENTOR_DEBUG_CHEATSHEET}}
3845
+ `;
3846
+ var CHOICE_BOARD_TEMPLATE = `---
3847
+ id: "{{ID}}"
3848
+ title: "{{TITLE}}"
3849
+ type: "CHOICE_BOARD"
3850
+ created_by: "Curriculum OS Builder"
3851
+ phase: "{{PHASE}}"
3852
+ deliverable: "P3-T12"
3853
+ version: "{{VERSION}}"
3854
+ date: "{{DATE}}"
3855
+ template_contract: "artifact-template-v1"
3856
+ template_required_sections:
3857
+ - "Learning Goals & Rule of Choice"
3858
+ - "The 9-Square Activity Matrix"
3859
+ - "Activity Detailed Blueprints"
3860
+ - "Universal Assessment Rubric"
3861
+ ---
3862
+ <!-- INJECT_BODY -->
3863
+
3864
+ # 9-SQUARE CHOICE BOARD: {{TITLE}}
3865
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Target Competency: {{CORE_COMPETENCY}}_
3866
+
3867
+ ## [REQUIRED] Learning Goals & Rule of Choice
3868
+ - **Core Concept Anchor:** {{CORE_CONCEPT_ANCHOR}}
3869
+ - **Rule of Choice (Tic-Tac-Toe / Point Model):**
3870
+ - *Option A (Tic-Tac-Toe):* Complete 3 activities in a row (Horizontal, Vertical, or Diagonal).
3871
+ - *Option B (Point Balance):* Reach $\\ge 100\\text{ pts}$ (Choose $\\ge 1$ Technical Lab + $\\ge 1$ Explanatory/Visual + $\\ge 1$ Creative Challenge).
3872
+
3873
+ ---
3874
+
3875
+ ## [REQUIRED] The 9-Square Activity Matrix
3876
+
3877
+ | Column 1: Analytical & Code | Column 2: Visual & Architecture | Column 3: Creative & Applied |
3878
+ | :--- | :--- | :--- |
3879
+ | **Square 1: {{SQ1_TITLE}} ({{SQ1_PTS}} pts)**<br>{{SQ1_DESC}} | **Square 2: {{SQ2_TITLE}} ({{SQ2_PTS}} pts)**<br>{{SQ2_DESC}} | **Square 3: {{SQ3_TITLE}} ({{SQ3_PTS}} pts)**<br>{{SQ3_DESC}} |
3880
+ | **Square 4: {{SQ4_TITLE}} ({{SQ4_PTS}} pts)**<br>{{SQ4_DESC}} | **\u2B50 Square 5: {{SQ5_TITLE}} ({{SQ5_PTS}} pts)**<br>{{SQ5_DESC}} | **Square 6: {{SQ6_TITLE}} ({{SQ6_PTS}} pts)**<br>{{SQ6_DESC}} |
3881
+ | **Square 7: {{SQ7_TITLE}} ({{SQ7_PTS}} pts)**<br>{{SQ7_DESC}} | **Square 8: {{SQ8_TITLE}} ({{SQ8_PTS}} pts)**<br>{{SQ8_DESC}} | **Square 9: {{SQ9_TITLE}} ({{SQ9_PTS}} pts)**<br>{{SQ9_DESC}} |
3882
+
3883
+ ---
3884
+
3885
+ ## [REQUIRED] Activity Detailed Blueprints
3886
+
3887
+ ### Detail: Square 1 \u2014 {{SQ1_TITLE}}
3888
+ {{SQ1_BLUEPRINT}}
3889
+
3890
+ ### Detail: Square 2 \u2014 {{SQ2_TITLE}}
3891
+ {{SQ2_BLUEPRINT}}
3892
+
3893
+ ### Detail: \u2B50 Square 5 \u2014 {{SQ5_TITLE}} (Mandatory Center Option)
3894
+ {{SQ5_BLUEPRINT}}
3895
+
3896
+ ---
3897
+
3898
+ ## [REQUIRED] Universal Assessment Rubric
3899
+ | Criteria | Exemplary (4) | Proficient (3) | Developing (2) | Beginning (1) |
3900
+ | :--- | :--- | :--- | :--- | :--- |
3901
+ | **Technical Accuracy** | 100% executable, idiomatic syntax, zero race conditions. | Compiles and runs; minor non-critical styling issue. | Runs with partial errors or missing edge cases. | Does not compile or contains critical syntax bugs. |
3902
+ | **Conceptual Clarity** | Explains architectural trade-offs using rigorous engineering terms. | Explains the "how" accurately with basic rationale. | Description is vague or confuses terminology. | Cannot explain how code works. |
3903
+ | **Creativity & Autonomy** | Goes beyond specifications with thoughtful UX or performance optimizations. | Fulfills all specified criteria independently. | Needs significant scaffolding hints to complete. | Incomplete submission. |
3904
+ `;
3905
+
3906
+ // src/templates/scienceLabTemplate.ts
3907
+ var SCIENCE_LAB_TEMPLATE = `---
3908
+ id: "{{ID}}"
3909
+ title: "{{TITLE}}"
3910
+ type: "SCIENCE_LAB"
3911
+ created_by: "Curriculum OS Builder"
3912
+ phase: "{{PHASE}}"
3913
+ deliverable: "P3-T13"
3914
+ version: "{{VERSION}}"
3915
+ date: "{{DATE}}"
3916
+ template_contract: "artifact-template-v1"
3917
+ template_required_sections:
3918
+ - "Guiding Inquiry & Driving Question"
3919
+ - "Hypothesis & Experimental Design"
3920
+ - "Data Collection & Code Lab Protocol"
3921
+ - "CER Scientific Conclusion (Claim, Evidence, Reasoning)"
3922
+ - "Peer Review & Verification Protocol"
3923
+ ---
3924
+ <!-- INJECT_BODY -->
3925
+
3926
+ # STEM / CODE INVESTIGATION LAB (CER): {{TITLE}}
3927
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Domain: {{DOMAIN_NAME}}_
3928
+
3929
+ ## [REQUIRED] Guiding Inquiry & Driving Question
3930
+ - **Real-World Driving Question:** {{DRIVING_QUESTION}}
3931
+ - **Engineering Phenomenon:** {{ENGINEERING_PHENOMENON}}
3932
+
3933
+ ---
3934
+
3935
+ ## [REQUIRED] Hypothesis & Experimental Design
3936
+ - **Student Hypothesis Template:**
3937
+ > *"If we [Action / Variable Manipulation], then [Predicted Outcome] because [Scientific / Engineering Rationale]."*
3938
+
3939
+ ### Controlled Variables:
3940
+ - **Independent Variable (Manipulated):** {{INDEPENDENT_VARIABLE}}
3941
+ - **Dependent Variable (Measured):** {{DEPENDENT_VARIABLE}}
3942
+ - **Control Variables (Constant):** {{CONTROL_VARIABLES}}
3943
+
3944
+ ---
3945
+
3946
+ ## [REQUIRED] Data Collection & Code Lab Protocol
3947
+
3948
+ ### Lab Setup & Instrumentation Code:
3949
+ \`\`\`{{CODE_LANGUAGE}}
3950
+ {{BENCHMARK_PROBE_CODE}}
3951
+ \`\`\`
3952
+
3953
+ ### Data Collection Table:
3954
+ | Trial | Variable State | Memory (MB) | Latency (ms) | Error / Anomaly Count |
3955
+ | :---: | :--- | :---: | :---: | :---: |
3956
+ {{DATA_COLLECTION_ROWS}}
3957
+
3958
+ ---
3959
+
3960
+ ## [REQUIRED] CER Scientific Conclusion (Claim, Evidence, Reasoning)
3961
+
3962
+ ### 1. \u{1F4CC} Claim (Kh\u1EB3ng \u0111\u1ECBnh):
3963
+ - *Direct answer to the driving question in 1 concise sentence:*
3964
+ \`\`\`text
3965
+ [State clear conclusion based on data]
3966
+ \`\`\`
3967
+
3968
+ ### 2. \u{1F4CA} Evidence (B\u1EB1ng ch\u1EE9ng s\u1ED1 li\u1EC7u):
3969
+ - *Specific quantitative data points cited directly from the Data Collection Table:*
3970
+ \`\`\`text
3971
+ [Cite concrete numerical metrics and trials]
3972
+ \`\`\`
3973
+
3974
+ ### 3. \u{1F9E0} Reasoning (L\u1EADp lu\u1EADn khoa h\u1ECDc):
3975
+ - *Connect the evidence back to the underlying technical principle:*
3976
+ \`\`\`text
3977
+ [Explain why the runtime/hardware behaved this way]
3978
+ \`\`\`
3979
+
3980
+ ---
3981
+
3982
+ ## [REQUIRED] Peer Review & Verification Protocol
3983
+ - **Reproducibility Test:** Exchange code probes with another group to verify if results match within $\\pm 10\\%$ tolerance.
3984
+ `;
3985
+ var TASK_CARDS_TEMPLATE = `---
3986
+ id: "{{ID}}"
3987
+ title: "{{TITLE}}"
3988
+ type: "TASK_CARDS"
3989
+ created_by: "Curriculum OS Builder"
3990
+ phase: "{{PHASE}}"
3991
+ deliverable: "P3-T14"
3992
+ version: "{{VERSION}}"
3993
+ date: "{{DATE}}"
3994
+ template_contract: "artifact-template-v1"
3995
+ template_required_sections:
3996
+ - "Deck Overview & Print Instructions"
3997
+ - "Task Cards 1 to 4 (Foundational Concepts)"
3998
+ - "Task Cards 5 to 8 (Code Diagnosis & Debugging)"
3999
+ - "Task Cards 9 to 12 (Application & Synthesis)"
4000
+ - "Teacher Answer Key & Scoring Matrix"
4001
+ ---
4002
+ <!-- INJECT_BODY -->
4003
+
4004
+ # PRINTABLE TASK CARDS PACK: {{TITLE}}
4005
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Total Cards: {{CARD_COUNT}} Cards_
4006
+
4007
+ ## [REQUIRED] Deck Overview & Print Instructions
4008
+ - **Card Format:** 4 cards per page (A4 layout with cutting guidelines and QR code link).
4009
+ - **Target Skills:** Conceptual Understanding, Code Tracing, Bug Hunting, Architectural Reasoning.
4010
+ - **Scoring System:** Bronze Cards (1 pt), Silver Cards (2 pts), Gold Cards (3 pts).
4011
+
4012
+ ---
4013
+
4014
+ ## [REQUIRED] Set A: Foundational Concepts (Cards 1\u20134)
4015
+ {{TASK_CARDS_SET_A}}
4016
+
4017
+ ---
4018
+
4019
+ ## [REQUIRED] Set B: Code Diagnosis & Debugging (Cards 5\u20138)
4020
+ {{TASK_CARDS_SET_B}}
4021
+
4022
+ ---
4023
+
4024
+ ## [REQUIRED] Set C: Application & Synthesis (Cards 9\u201312)
4025
+ {{TASK_CARDS_SET_C}}
4026
+
4027
+ ---
4028
+
4029
+ ## [REQUIRED] Teacher Answer Key & Scoring Matrix
4030
+ | Card ID | Correct Answer / Solution Blueprint | Max Points |
4031
+ | :---: | :--- | :---: |
4032
+ {{TASK_CARDS_ANSWER_ROWS}}
4033
+ `;
4034
+
4035
+ // src/templates/stationRotationTemplate.ts
4036
+ var STATION_ROTATION_TEMPLATE = `---
4037
+ id: "{{ID}}"
4038
+ title: "{{TITLE}}"
4039
+ type: "STATION_ROTATION"
4040
+ created_by: "Curriculum OS Builder"
4041
+ phase: "{{PHASE}}"
4042
+ deliverable: "P3-T15"
4043
+ version: "{{VERSION}}"
4044
+ date: "{{DATE}}"
4045
+ template_contract: "artifact-template-v1"
4046
+ template_required_sections:
4047
+ - "Station Architecture & Timer Overview"
4048
+ - "Station 1: Teacher-Led Small Group (Deep Dive)"
4049
+ - "Station 2: Collaborative Hands-On Lab (Peer Pair)"
4050
+ - "Station 3: Independent Digital Practice (Async Code)"
4051
+ - "Station 4: Offline Modeling & Architecture (Whiteboard)"
4052
+ - "Station Recording Sheet & Rotation Bell Protocol"
4053
+ ---
4054
+ <!-- INJECT_BODY -->
4055
+
4056
+ # STATION ROTATION LESSON PACK: {{TITLE}}
4057
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Format: 4 Stations x 15 Mins_
4058
+
4059
+ ## [REQUIRED] Station Architecture & Timer Overview
4060
+ - **Classroom Layout:** 4 designated physical zones with clear signage and materials.
4061
+ - **Rotation Time:** 15 minutes per station + 2 minutes clean transition buffer.
4062
+ - **Audience Grouping:** Heterogeneous groups of 4-6 students rotating simultaneously.
4063
+
4064
+ ---
4065
+
4066
+ ## [REQUIRED] Station 1: Teacher-Led Small Group (Guided Inquiry)
4067
+ - **Goal:** Direct coaching, conceptual check, and resolving misconceptions in real-time.
4068
+ - **Teacher Script & Inquiry Questions:**
4069
+ {{STATION_1_GUIDANCE}}
4070
+
4071
+ ---
4072
+
4073
+ ## [REQUIRED] Station 2: Collaborative Hands-On Lab (Pair Programming)
4074
+ - **Goal:** Students work in pairs (Driver / Navigator) to solve a 2-stage challenge.
4075
+ - **Task Materials:** {{STATION_2_MATERIALS}}
4076
+ - **Success Milestone:** {{STATION_2_MILESTONE}}
4077
+
4078
+ ---
4079
+
4080
+ ## [REQUIRED] Station 3: Independent Digital Practice (Self-Paced Code Lab)
4081
+ - **Goal:** Autonomy and individual mastery verification.
4082
+ - **Student Instructions:**
4083
+ {{STATION_3_INSTRUCTIONS}}
4084
+
4085
+ ---
4086
+
4087
+ ## [REQUIRED] Station 4: Offline Modeling & Architecture (No Screens)
4088
+ - **Goal:** Cognitive unloading and physical spatial reasoning.
4089
+ - **Materials:** Whiteboard markers, physical Task Cards deck, and laminated architecture templates.
4090
+ - **Task:** {{STATION_4_TASK}}
4091
+
4092
+ ---
4093
+
4094
+ ## [REQUIRED] Station Recording Sheet (Student Passport)
4095
+ | Station | Task Completed | Signature / Verification Stamp | 1 Key Insight Learned |
4096
+ | :---: | :--- | :--- | :--- |
4097
+ | **1 (Teacher)** | Debugging Probe Discussion | [Teacher Stamp] | |
4098
+ | **2 (Pair Lab)** | Stage 1 & 2 Test Suite | [Peer Signature] | |
4099
+ | **3 (Digital)** | Micro-Challenges Token | [Auto Token] | |
4100
+ | **4 (Offline)** | Flowchart Diagram Approved | [Mentor Stamp] | |
4101
+ `;
4102
+ var BELL_RINGER_TEMPLATE = `---
4103
+ id: "{{ID}}"
4104
+ title: "{{TITLE}}"
4105
+ type: "BELL_RINGER"
4106
+ created_by: "Curriculum OS Builder"
4107
+ phase: "{{PHASE}}"
4108
+ deliverable: "P3-T16"
4109
+ version: "{{VERSION}}"
4110
+ date: "{{DATE}}"
4111
+ template_contract: "artifact-template-v1"
4112
+ template_required_sections:
4113
+ - "Weekly Objective & Schedule"
4114
+ - "Monday: Mental Model Recall"
4115
+ - "Tuesday: Code Spot-Check"
4116
+ - "Wednesday: Bug Hunt & Fix"
4117
+ - "Thursday: Architecture Tracing"
4118
+ - "Friday: Creative Synthesis & Bridge"
4119
+ - "Answer Key & Scoring Guide"
4120
+ ---
4121
+ <!-- INJECT_BODY -->
4122
+
4123
+ # WEEKLY BELL RINGERS (5-DAY WARM-UP PACK): {{TITLE}}
4124
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Time: 3-5 Mins per Session_
4125
+
4126
+ ## [REQUIRED] Weekly Objective & Schedule
4127
+ - **Weekly Core Theme:** {{WEEKLY_THEME}}
4128
+ - **Routine Protocol:** Display prompt on projector immediately as students enter.
4129
+
4130
+ ---
4131
+
4132
+ ## [REQUIRED] Day 1 (Monday): Mental Model Recall & Analogy
4133
+ {{DAY_1_PROMPT}}
4134
+
4135
+ ---
4136
+
4137
+ ## [REQUIRED] Day 2 (Tuesday): Rapid Code Tracing
4138
+ {{DAY_2_PROMPT}}
4139
+
4140
+ ---
4141
+
4142
+ ## [REQUIRED] Day 3 (Wednesday): Quick Bug Hunt (Spot the Defect)
4143
+ {{DAY_3_PROMPT}}
4144
+
4145
+ ---
4146
+
4147
+ ## [REQUIRED] Day 4 (Thursday): Visual Diagram Tracing
4148
+ {{DAY_4_PROMPT}}
4149
+
4150
+ ---
4151
+
4152
+ ## [REQUIRED] Day 5 (Friday): Creative Synthesis & Bridge Forward
4153
+ {{DAY_5_PROMPT}}
4154
+
4155
+ ---
4156
+
4157
+ ## [REQUIRED] Teacher Answer Key & Scoring Guide
4158
+ {{TEACHER_ANSWER_KEY}}
4159
+ `;
4160
+ var REVIEW_GAME_TEMPLATE = `---
4161
+ id: "{{ID}}"
4162
+ title: "{{TITLE}}"
4163
+ type: "REVIEW_GAME"
4164
+ created_by: "Curriculum OS Builder"
4165
+ phase: "{{PHASE}}"
4166
+ deliverable: "P3-T17"
4167
+ version: "{{VERSION}}"
4168
+ date: "{{DATE}}"
4169
+ template_contract: "artifact-template-v1"
4170
+ template_required_sections:
4171
+ - "Game Rules & Setup Guide"
4172
+ - "Round 1: Speed Round (100-200 Pts)"
4173
+ - "Round 2: Code Duel & Debugging (300-400 Pts)"
4174
+ - "Round 3: Final Boss Architecture Challenge (500 Pts)"
4175
+ - "Kahoot / Quizizz CSV Export Format"
4176
+ ---
4177
+ <!-- INJECT_BODY -->
4178
+
4179
+ # INTERACTIVE REVIEW GAME (QUIZ SHOW PACK): {{TITLE}}
4180
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Format: Live Classroom Quiz Show_
4181
+
4182
+ ## [REQUIRED] Game Rules & Setup Guide
4183
+ - **Format:** 3 Rounds of progressive difficulty with team buzzers.
4184
+ - **Team Size:** 3-5 students per squad.
4185
+
4186
+ ---
4187
+
4188
+ ## [REQUIRED] Round 1: Rapid-Fire Speed Round (100\u2013200 Points)
4189
+ {{ROUND_1_QUESTIONS}}
4190
+
4191
+ ---
4192
+
4193
+ ## [REQUIRED] Round 2: Code Duel & Debugging (300\u2013400 Points)
4194
+ {{ROUND_2_CHALLENGES}}
4195
+
4196
+ ---
4197
+
4198
+ ## [REQUIRED] Round 3: Final Boss Architecture Challenge (500 Points)
4199
+ {{ROUND_3_BOSS_CHALLENGE}}
4200
+
4201
+ ---
4202
+
4203
+ ## [REQUIRED] Kahoot / Quizizz CSV Export Format
4204
+ \`\`\`csv
4205
+ {{KAHOOT_CSV_CONTENT}}
4206
+ \`\`\`
4207
+ `;
4208
+ var GRAPHIC_ORGANIZER_TEMPLATE = `---
4209
+ id: "{{ID}}"
4210
+ title: "{{TITLE}}"
4211
+ type: "GRAPHIC_ORGANIZER"
4212
+ created_by: "Curriculum OS Builder"
4213
+ phase: "{{PHASE}}"
4214
+ deliverable: "P3-T18"
4215
+ version: "{{VERSION}}"
4216
+ date: "{{DATE}}"
4217
+ template_contract: "artifact-template-v1"
4218
+ template_required_sections:
4219
+ - "Visual Paradigm Overview"
4220
+ - "Organizer 1: Architectural Data Flow (Mermaid Flowchart)"
4221
+ - "Organizer 2: Comparative Analysis (Mermaid / Markdown Venn)"
4222
+ - "Organizer 3: State Machine & Lifecycle (Mermaid StateDiagram)"
4223
+ - "Student Fill-in Worksheet Format"
4224
+ ---
4225
+ <!-- INJECT_BODY -->
4226
+
4227
+ # VISUAL GRAPHIC ORGANIZERS: {{TITLE}}
4228
+ _Unit: {{UNIT_ID}} | Module: {{MODULE_ID}} | Format: Mermaid Diagrams + Printable Handouts_
4229
+
4230
+ ## [REQUIRED] Visual Paradigm Overview
4231
+ - **Cognitive Purpose:** Unload mental processing burden through spatial diagramming.
4232
+
4233
+ ---
4234
+
4235
+ ## [REQUIRED] Organizer 1: Architectural Data Flow (Mermaid Flowchart)
4236
+ \`\`\`mermaid
4237
+ {{MERMAID_FLOWCHART}}
4238
+ \`\`\`
4239
+
4240
+ ---
4241
+
4242
+ ## [REQUIRED] Organizer 2: Comparative Analysis (Venn Diagram / Matrix)
4243
+ \`\`\`mermaid
4244
+ {{MERMAID_VENN_OR_MATRIX}}
4245
+ \`\`\`
4246
+
4247
+ ---
4248
+
4249
+ ## [REQUIRED] Organizer 3: State Machine & Lifecycle (State Diagram)
4250
+ \`\`\`mermaid
4251
+ {{MERMAID_STATE_DIAGRAM}}
4252
+ \`\`\`
4253
+
4254
+ ---
4255
+
4256
+ ## [REQUIRED] Student Fill-in Worksheet Format (Offline Handout)
4257
+ {{OFFLINE_WORKSHEET_FORMAT}}
4258
+ `;
4259
+
4260
+ // src/templates/slidePresets.ts
4261
+ var SLIDE_LAYOUT_PRESETS = [
4262
+ {
4263
+ id: "title-hero",
4264
+ name: "Title & Speaker Cover",
4265
+ category: "cover",
4266
+ description: "High-impact opening slide with large title, subtitle, and speaker credentials.",
4267
+ layout: {
4268
+ boxes: [
4269
+ {
4270
+ id: "title",
4271
+ target: "h1",
4272
+ pos: [100, 180, 1080, 140],
4273
+ fontSize: "3rem",
4274
+ textAlign: "center"
4275
+ },
4276
+ {
4277
+ id: "subtitle",
4278
+ target: "h3",
4279
+ pos: [100, 350, 1080, 70],
4280
+ fontSize: "1.5rem",
4281
+ textAlign: "center"
4282
+ },
4283
+ {
4284
+ id: "speaker-meta",
4285
+ target: "p",
4286
+ pos: [100, 460, 1080, 80],
4287
+ fontSize: "1.1rem",
4288
+ textAlign: "center"
4289
+ }
4290
+ ]
4291
+ },
4292
+ markdownSnippet: `<!-- layout:
4293
+ boxes:
4294
+ - id: title
4295
+ target: h1
4296
+ pos: [100, 180, 1080, 140]
4297
+ fontSize: 3rem
4298
+ textAlign: center
4299
+ - id: subtitle
4300
+ target: h3
4301
+ pos: [100, 350, 1080, 70]
4302
+ fontSize: 1.5rem
4303
+ textAlign: center
4304
+ - id: speaker-meta
4305
+ target: p
4306
+ pos: [100, 460, 1080, 80]
4307
+ fontSize: 1.1rem
4308
+ textAlign: center
4309
+ -->
4310
+
4311
+ # \u{1F680} Engineering Scalable Cloud Systems
4312
+ ### Principles, Bottlenecks, and Real-World Architecture Patterns
4313
+
4314
+ **Presenter:** Senior Systems Architect | **Duration:** 45 mins | **Level:** Intermediate
4315
+
4316
+ <!--
4317
+ Presenter Notes:
4318
+ - Welcome the audience and outline today's primary engineering goals.
4319
+ - Spark curiosity with an opening hook about scaling under high concurrency.
4320
+ -->`
4321
+ },
4322
+ {
4323
+ id: "two-column-split",
4324
+ name: "Two-Column Comparison",
4325
+ category: "split",
4326
+ description: "Balanced side-by-side comparison for legacy vs modern patterns or pros vs cons.",
4327
+ layout: {
4328
+ boxes: [
4329
+ {
4330
+ id: "heading",
4331
+ target: "h2",
4332
+ pos: [80, 50, 1120, 70],
4333
+ fontSize: "2rem"
4334
+ },
4335
+ {
4336
+ id: "col-left",
4337
+ target: ".columns-2 > div:first-child",
4338
+ pos: [80, 150, 530, 510]
4339
+ },
4340
+ {
4341
+ id: "col-right",
4342
+ target: ".columns-2 > div:last-child",
4343
+ pos: [670, 150, 530, 510]
4344
+ }
4345
+ ]
4346
+ },
4347
+ markdownSnippet: `<!-- layout:
4348
+ boxes:
4349
+ - id: heading
4350
+ target: h2
4351
+ pos: [80, 50, 1120, 70]
4352
+ fontSize: 2rem
4353
+ - id: col-left
4354
+ target: '.columns-2 > div:first-child'
4355
+ pos: [80, 150, 530, 510]
4356
+ - id: col-right
4357
+ target: '.columns-2 > div:last-child'
4358
+ pos: [670, 150, 530, 510]
4359
+ -->
4360
+
4361
+ ## \u2696\uFE0F Monolithic Polling vs Event-Driven Architecture
4362
+
4363
+ <div class="columns-2">
4364
+ <div>
4365
+
4366
+ ### \u{1F534} Legacy Polling
4367
+ - Heavy database CPU overhead on idle cycles
4368
+ - High network latency between updates
4369
+ - Prone to cascading timeouts during spikes
4370
+
4371
+ </div>
4372
+ <div>
4373
+
4374
+ ### \u{1F7E2} Event-Driven Streams
4375
+ - Real-time event propagation via webhooks
4376
+ - Zero idle compute waste with serverless consumers
4377
+ - Automatic backpressure and queue isolation
4378
+
4379
+ </div>
4380
+ </div>
4381
+
4382
+ <!--
4383
+ Presenter Notes:
4384
+ - Emphasize the core failure mode of periodic polling under sudden load spikes.
4385
+ - Ask the room if anyone has experienced database lockups caused by polling loops.
4386
+ -->`
4387
+ },
4388
+ {
4389
+ id: "code-explainer",
4390
+ name: "Code Walkthrough & Analysis",
4391
+ category: "code",
4392
+ description: "Syntax-highlighted code block on the left with step-by-step key annotations on the right.",
4393
+ layout: {
4394
+ boxes: [
4395
+ {
4396
+ id: "heading",
4397
+ target: "h2",
4398
+ pos: [80, 45, 1120, 65],
4399
+ fontSize: "1.9rem"
4400
+ },
4401
+ {
4402
+ id: "code-box",
4403
+ target: ".columns-2 > div:first-child",
4404
+ pos: [80, 135, 630, 535]
4405
+ },
4406
+ {
4407
+ id: "notes-box",
4408
+ target: ".columns-2 > div:last-child",
4409
+ pos: [740, 135, 460, 535]
4410
+ }
4411
+ ]
4412
+ },
4413
+ markdownSnippet: `<!-- layout:
4414
+ boxes:
4415
+ - id: heading
4416
+ target: h2
4417
+ pos: [80, 45, 1120, 65]
4418
+ fontSize: 1.9rem
4419
+ - id: code-box
4420
+ target: '.columns-2 > div:first-child'
4421
+ pos: [80, 135, 630, 535]
4422
+ - id: notes-box
4423
+ target: '.columns-2 > div:last-child'
4424
+ pos: [740, 135, 460, 535]
4425
+ -->
4426
+
4427
+ ## \u{1F4BB} Robust Async Transaction Pipeline
4428
+
4429
+ <div class="columns-2">
4430
+ <div>
4431
+
4432
+ \`\`\`ts
4433
+ // Process payment with idempotency guarantee
4434
+ export async function processPayment(order: Order) {
4435
+ const isValid = await validateOrder(order);
4436
+ if (!isValid) throw new Error("ValidationFailed");
4437
+
4438
+ const receipt = await chargeCard(order);
4439
+ return sendConfirmation(receipt);
4440
+ }
4441
+ \`\`\`
4442
+
4443
+ </div>
4444
+ <div>
4445
+
4446
+ ### \u{1F50D} Key Engineering Invariants:
4447
+ 1. **Early Guard Clause:** Validates payload immediately at line 3 before triggering external calls.
4448
+ 2. **Deterministic Sequence:** Enforces strict order of operations using native \`await\`.
4449
+ 3. **Audit Trail:** Returns immutable payment receipt upon successful execution.
4450
+
4451
+ </div>
4452
+ </div>
4453
+
4454
+ <!--
4455
+ Presenter Notes:
4456
+ - Walk through lines 1 to 7 sequentially.
4457
+ - Cold-call check: "What happens if line 6 throws a network timeout?"
4458
+ - Cognitive scaffolding: Highlight the importance of idempotency keys in payment APIs.
4459
+ -->`
4460
+ },
4461
+ {
4462
+ id: "metrics-3-card",
4463
+ name: "3-Metric Key Results Grid",
4464
+ category: "metrics",
4465
+ description: "Three high-visibility KPI stat cards for benchmarks, impact, and success criteria.",
4466
+ layout: {
4467
+ boxes: [
4468
+ {
4469
+ id: "heading",
4470
+ target: "h2",
4471
+ pos: [80, 50, 1120, 70],
4472
+ fontSize: "2rem",
4473
+ textAlign: "center"
4474
+ },
4475
+ {
4476
+ id: "metric-1",
4477
+ target: ".columns-3 > div:nth-child(1)",
4478
+ pos: [80, 165, 340, 485]
4479
+ },
4480
+ {
4481
+ id: "metric-2",
4482
+ target: ".columns-3 > div:nth-child(2)",
4483
+ pos: [470, 165, 340, 485]
4484
+ },
4485
+ {
4486
+ id: "metric-3",
4487
+ target: ".columns-3 > div:nth-child(3)",
4488
+ pos: [860, 165, 340, 485]
4489
+ }
4490
+ ]
4491
+ },
4492
+ markdownSnippet: `<!-- layout:
4493
+ boxes:
4494
+ - id: heading
4495
+ target: h2
4496
+ pos: [80, 50, 1120, 70]
4497
+ fontSize: 2rem
4498
+ textAlign: center
4499
+ - id: metric-1
4500
+ target: '.columns-3 > div:nth-child(1)'
4501
+ pos: [80, 165, 340, 485]
4502
+ - id: metric-2
4503
+ target: '.columns-3 > div:nth-child(2)'
4504
+ pos: [470, 165, 340, 485]
4505
+ - id: metric-3
4506
+ target: '.columns-3 > div:nth-child(3)'
4507
+ pos: [860, 165, 340, 485]
4508
+ -->
4509
+
4510
+ ## \u{1F4CA} Performance & Reliability Benchmarks
4511
+
4512
+ <div class="columns-3">
4513
+ <div>
4514
+
4515
+ # \u26A1 99.99%
4516
+ ### SLA Availability
4517
+ High-availability multi-region cluster with automated failover routing.
4518
+
4519
+ </div>
4520
+ <div>
4521
+
4522
+ # \u{1F680} 15ms
4523
+ ### P99 Latency
4524
+ Sub-20ms roundtrip response time via distributed edge caching.
4525
+
4526
+ </div>
4527
+ <div>
4528
+
4529
+ # \u{1F6E1}\uFE0F Zero
4530
+ ### Unhandled Breaches
4531
+ Full SOC2 Type II compliance and end-to-end payload encryption.
4532
+
4533
+ </div>
4534
+ </div>
4535
+
4536
+ <!--
4537
+ Presenter Notes:
4538
+ - Highlight the 15ms P99 latency target as the primary technical milestone.
4539
+ - Connect these metrics directly to the architecture decisions discussed next.
4540
+ -->`
4541
+ },
4542
+ {
4543
+ id: "process-flow",
4544
+ name: "Architecture & Process Flow",
4545
+ category: "diagram",
4546
+ description: "Multi-stage workflow with responsive Mermaid diagram and phase summaries.",
4547
+ layout: {
4548
+ boxes: [
4549
+ {
4550
+ id: "heading",
4551
+ target: "h2",
4552
+ pos: [80, 45, 1120, 65],
4553
+ fontSize: "1.9rem"
4554
+ },
4555
+ {
4556
+ id: "diagram-box",
4557
+ target: "pre.mermaid, .mermaid",
4558
+ pos: [80, 130, 1120, 310]
4559
+ },
4560
+ {
4561
+ id: "summary-box",
4562
+ target: "ul, p",
4563
+ pos: [80, 465, 1120, 205]
4564
+ }
4565
+ ]
4566
+ },
4567
+ markdownSnippet: `<!-- layout:
4568
+ boxes:
4569
+ - id: heading
4570
+ target: h2
4571
+ pos: [80, 45, 1120, 65]
4572
+ fontSize: 1.9rem
4573
+ - id: diagram-box
4574
+ target: 'pre.mermaid, .mermaid'
4575
+ pos: [80, 130, 1120, 310]
4576
+ - id: summary-box
4577
+ target: 'ul, p'
4578
+ pos: [80, 465, 1120, 205]
4579
+ -->
4580
+
4581
+ ## \u{1F504} End-to-End Data Ingestion Pipeline
4582
+
4583
+ \`\`\`mermaid
4584
+ graph LR
4585
+ A[1. Client Ingress] --> B[2. API Gateway]
4586
+ B --> C[3. Auth Verifier]
4587
+ C --> D[4. Distributed DB]
4588
+ style A fill:#0284c7,stroke:#38bdf8,stroke-width:2px,color:#fff
4589
+ style B fill:#1e293b,stroke:#64748b,stroke-width:2px,color:#fff
4590
+ style C fill:#059669,stroke:#34d399,stroke-width:2px,color:#fff
4591
+ style D fill:#7c3aed,stroke:#a78bfa,stroke-width:2px,color:#fff
4592
+ \`\`\`
4593
+
4594
+ - **Ingress & Gateway:** Rate-limits traffic and applies reverse-proxy load balancing.
4595
+ - **Verification & Storage:** Decodes cryptographic JWT tokens before transactional write commit.
4596
+
4597
+ <!--
4598
+ Presenter Notes:
4599
+ - Trace each hop across the diagram from left to right.
4600
+ - Ask: "Where should rate limiting be applied to prevent DDoS attacks?"
4601
+ -->`
4602
+ },
4603
+ {
4604
+ id: "quote-highlight",
4605
+ name: "Core Principle & Quote Highlight",
4606
+ category: "quote",
4607
+ description: "Prominent quote callout for fundamental engineering rules or memorable mantras.",
4608
+ layout: {
4609
+ boxes: [
4610
+ {
4611
+ id: "heading",
4612
+ target: "h2",
4613
+ pos: [100, 100, 1080, 80],
4614
+ fontSize: "2.2rem",
4615
+ textAlign: "center"
4616
+ },
4617
+ {
4618
+ id: "quote-box",
4619
+ target: "blockquote",
4620
+ pos: [140, 230, 1e3, 360],
4621
+ fontSize: "1.4rem"
4622
+ }
4623
+ ]
4624
+ },
4625
+ markdownSnippet: `<!-- layout:
4626
+ boxes:
4627
+ - id: heading
4628
+ target: h2
4629
+ pos: [100, 100, 1080, 80]
4630
+ fontSize: 2.2rem
4631
+ textAlign: center
4632
+ - id: quote-box
4633
+ target: blockquote
4634
+ pos: [140, 230, 1000, 360]
4635
+ fontSize: 1.4rem
4636
+ -->
4637
+
4638
+ ## \u{1F4A1} Foundational Architecture Principle
4639
+
4640
+ > "Simplicity is prerequisite for reliability. A well-engineered distributed system is one where a new engineer can understand the request flow within their first hour."
4641
+ >
4642
+ > \u2014 **Edsger W. Dijkstra**
4643
+
4644
+ <!--
4645
+ Presenter Notes:
4646
+ - Pause for 5 seconds of silence to let the quote sink in.
4647
+ - Ask: "How do our current architectural choices reflect this principle?"
4648
+ -->`
4649
+ },
4650
+ {
4651
+ id: "quiz-checkpoint",
4652
+ name: "Interactive Formative Checkpoint",
4653
+ category: "assessment",
4654
+ description: "Interactive multiple-choice diagnostic checkpoint with A/B/C/D voting options.",
4655
+ layout: {
4656
+ boxes: [
4657
+ {
4658
+ id: "heading",
4659
+ target: "h2",
4660
+ pos: [80, 45, 1120, 65],
4661
+ fontSize: "1.9rem"
4662
+ },
4663
+ {
4664
+ id: "question-callout",
4665
+ target: "blockquote",
4666
+ pos: [80, 130, 1120, 110],
4667
+ fontSize: "1.2rem"
4668
+ },
4669
+ {
4670
+ id: "options-list",
4671
+ target: "ul",
4672
+ pos: [80, 260, 1120, 390],
4673
+ fontSize: "1.15rem"
4674
+ }
4675
+ ]
4676
+ },
4677
+ markdownSnippet: `<!-- layout:
4678
+ boxes:
4679
+ - id: heading
4680
+ target: h2
4681
+ pos: [80, 45, 1120, 65]
4682
+ fontSize: 1.9rem
4683
+ - id: question-callout
4684
+ target: blockquote
4685
+ pos: [80, 130, 1120, 110]
4686
+ fontSize: 1.2rem
4687
+ - id: options-list
4688
+ target: ul
4689
+ pos: [80, 260, 1120, 390]
4690
+ fontSize: 1.15rem
4691
+ -->
4692
+
4693
+ ## \u{1F3AF} Formative Checkpoint: Verify Your Understanding
4694
+
4695
+ > **Question:** In an event-driven architecture, which pattern guarantees that messages are never permanently lost if a downstream consumer crashes?
4696
+
4697
+ - **A.** Direct synchronous HTTP request with short 2-second timeout
4698
+ - **B.** Persistent Message Broker with Dead-Letter Queue (DLQ) & retry policy
4699
+ - **C.** In-memory client RAM cache without persistence
4700
+ - **D.** Discarding failed packets and prompting the user to re-submit
4701
+
4702
+ <!--
4703
+ Presenter Notes:
4704
+ - Give students 30 seconds to vote on option A, B, C, or D.
4705
+ - Correct answer: B.
4706
+ - Explain why options A and C introduce catastrophic data loss in production.
4707
+ -->`
4708
+ },
4709
+ {
4710
+ id: "tiered-practice-3cards",
4711
+ name: "Tiered Differentiation (Bronze / Silver / Gold)",
4712
+ category: "content",
4713
+ description: "Three progressive competency tiers allowing self-paced learning acceleration.",
4714
+ layout: {
4715
+ boxes: [
4716
+ {
4717
+ id: "heading",
4718
+ target: "h2",
4719
+ pos: [80, 45, 1120, 65],
4720
+ fontSize: "1.9rem"
4721
+ },
4722
+ {
4723
+ id: "tier-bronze",
4724
+ target: ".columns-3 > div:nth-child(1)",
4725
+ pos: [80, 140, 350, 520]
4726
+ },
4727
+ {
4728
+ id: "tier-silver",
4729
+ target: ".columns-3 > div:nth-child(2)",
4730
+ pos: [465, 140, 350, 520]
4731
+ },
4732
+ {
4733
+ id: "tier-gold",
4734
+ target: ".columns-3 > div:nth-child(3)",
4735
+ pos: [850, 140, 350, 520]
4736
+ }
4737
+ ]
4738
+ },
4739
+ markdownSnippet: `<!-- layout:
4740
+ boxes:
4741
+ - id: heading
4742
+ target: h2
4743
+ pos: [80, 45, 1120, 65]
4744
+ fontSize: 1.9rem
4745
+ - id: tier-bronze
4746
+ target: '.columns-3 > div:nth-child(1)'
4747
+ pos: [80, 140, 350, 520]
4748
+ - id: tier-silver
4749
+ target: '.columns-3 > div:nth-child(2)'
4750
+ pos: [465, 140, 350, 520]
4751
+ - id: tier-gold
4752
+ target: '.columns-3 > div:nth-child(3)'
4753
+ pos: [850, 140, 350, 520]
4754
+ -->
4755
+
4756
+ ## \u{1F6E0}\uFE0F Hands-On Challenge: 3-Tier Differentiation
4757
+
4758
+ <div class="columns-3">
4759
+ <div>
4760
+
4761
+ ### \u{1F949} Bronze Tier
4762
+ - Implement baseline function
4763
+ - Pass 3 baseline unit tests
4764
+ - *Goal: Foundational mastery*
4765
+
4766
+ </div>
4767
+ <div>
4768
+
4769
+ ### \u{1F948} Silver Tier
4770
+ - Add boundary error handling
4771
+ - Enforce O(N) memory complexity
4772
+ - *Goal: Production-ready code*
4773
+
4774
+ </div>
4775
+ <div>
4776
+
4777
+ ### \u{1F947} Gold Tier
4778
+ - Design distributed retry queue
4779
+ - Add 95% automated test coverage
4780
+ - *Goal: Architectural leadership*
4781
+
4782
+ </div>
4783
+ </div>
4784
+
4785
+ <!--
4786
+ Presenter Notes:
4787
+ - All learners begin at Bronze to establish baseline competency.
4788
+ - Accelerate self-directed learners to Silver and Gold as they complete each tier.
4789
+ -->`
4790
+ },
4791
+ {
4792
+ id: "agenda-timeline",
4793
+ name: "Session Agenda & Milestones",
4794
+ category: "content",
4795
+ description: "Structured time-budgeted agenda mapping stages to measurable deliverables.",
4796
+ layout: {
4797
+ boxes: [
4798
+ {
4799
+ id: "heading",
4800
+ target: "h2",
4801
+ pos: [80, 45, 1120, 65],
4802
+ fontSize: "1.9rem"
4803
+ },
4804
+ {
4805
+ id: "table-box",
4806
+ target: "table",
4807
+ pos: [80, 140, 1120, 520]
4808
+ }
4809
+ ]
4810
+ },
4811
+ markdownSnippet: `<!-- layout:
4812
+ boxes:
4813
+ - id: heading
4814
+ target: h2
4815
+ pos: [80, 45, 1120, 65]
4816
+ fontSize: 1.9rem
4817
+ - id: table-box
4818
+ target: table
4819
+ pos: [80, 140, 1120, 520]
4820
+ -->
4821
+
4822
+ ## \u{1F5FA}\uFE0F Milestone Roadmap & Time Budget
4823
+
4824
+ | Allocated Time | Session Stage | Core Learning Focus | Deliverable Milestone |
4825
+ |:---:|---|---|---|
4826
+ | **05 mins** | Warm-Up | Real-World Scenario & Context | Identify system bottleneck |
4827
+ | **15 mins** | Concept Discovery | Core Architectural Patterns | Deconstruct message queue models |
4828
+ | **20 mins** | Hands-On Lab | Tiered Code Implementation | Complete Bronze + Silver tasks |
4829
+ | **05 mins** | Wrap-Up | Formative Checkpoint & Debrief | Consolidate key principles |
4830
+
4831
+ <!--
4832
+ Presenter Notes:
4833
+ - Walk through the time budget so students understand expectations and pacing.
4834
+ -->`
4835
+ },
4836
+ {
4837
+ id: "takeaways-summary",
4838
+ name: "Key Takeaways & Wrap-up",
4839
+ category: "content",
4840
+ description: "Three memorable synthesis takeaways with actionable next steps.",
4841
+ layout: {
4842
+ boxes: [
4843
+ {
4844
+ id: "heading",
4845
+ target: "h2",
4846
+ pos: [80, 50, 1120, 70],
4847
+ fontSize: "2rem"
4848
+ },
4849
+ {
4850
+ id: "list-box",
4851
+ target: "ol",
4852
+ pos: [80, 150, 1120, 340],
4853
+ fontSize: "1.25rem"
4854
+ },
4855
+ {
4856
+ id: "callout-next",
4857
+ target: "blockquote",
4858
+ pos: [80, 520, 1120, 140],
4859
+ fontSize: "1.1rem"
4860
+ }
4861
+ ]
4862
+ },
4863
+ markdownSnippet: `<!-- layout:
4864
+ boxes:
4865
+ - id: heading
4866
+ target: h2
4867
+ pos: [80, 50, 1120, 70]
4868
+ fontSize: 2rem
4869
+ - id: list-box
4870
+ target: ol
4871
+ pos: [80, 150, 1120, 340]
4872
+ fontSize: 1.25rem
4873
+ - id: callout-next
4874
+ target: blockquote
4875
+ pos: [80, 520, 1120, 140]
4876
+ fontSize: 1.1rem
4877
+ -->
4878
+
4879
+ ## \u{1F3C1} Key Takeaways & Action Items
4880
+
4881
+ 1. **Decouple Before Scaling:** Separate producer rate from consumer processing capacity.
4882
+ 2. **Design for Failure:** Always configure retries, backoff intervals, and dead-letter queues.
4883
+ 3. **Measure End-to-End:** Track P99 latency and error rates across all distributed boundaries.
4884
+
4885
+ > \u{1F4DD} **Next Action Item:** Complete the Silver Tier refactoring challenge before our next peer-review session.
4886
+
4887
+ <!--
4888
+ Presenter Notes:
4889
+ - Deliver a crisp 2-minute wrap-up reinforcing the 3 core takeaways.
4890
+ - Acknowledge strong peer collaboration during the hands-on lab.
4891
+ -->`
4892
+ }
4893
+ ];
4894
+ function getSlideLayoutPresetById(id) {
4895
+ return SLIDE_LAYOUT_PRESETS.find((p) => p.id === id);
4896
+ }
4897
+ function getSlideLayoutPresetsByCategory(category) {
4898
+ return SLIDE_LAYOUT_PRESETS.filter((p) => p.category === category);
4899
+ }
4900
+
3226
4901
  // src/ai/prompts/lessonMasterPrompt.ts
3227
4902
  function buildLessonMasterPrompt(input) {
3228
4903
  const { milestone, language, topic, targetAudience, contextContinuity, standardsContext } = input;
@@ -15296,6 +16971,7 @@ function renderMediaPlaceholder(entry) {
15296
16971
  return `> \u{1F5BC}\uFE0F [\u1EA2nh \u0111ang ch\u1EDD: ${entry.name} \u2014 s\u1EBD \u0111\u01B0\u1EE3c t\u1EA1o sau khi duy\u1EC7t media]`;
15297
16972
  }
15298
16973
 
16974
+ exports.ACT_TEMPLATE = ACT_TEMPLATE;
15299
16975
  exports.ARTIFACT_EXECUTION_ORDER = ARTIFACT_EXECUTION_ORDER;
15300
16976
  exports.AcademicAuditor = AcademicAuditor;
15301
16977
  exports.ActiveLearningWorkflowSchema = ActiveLearningWorkflowSchema;
@@ -15305,7 +16981,9 @@ exports.ActivityStepSchema = ActivityStepSchema;
15305
16981
  exports.ArtifactContractRowSchema = ArtifactContractRowSchema;
15306
16982
  exports.AssessmentMapRowSchema = AssessmentMapRowSchema;
15307
16983
  exports.AssessmentObjectiveSchema = AssessmentObjectiveSchema;
16984
+ exports.BELL_RINGER_TEMPLATE = BELL_RINGER_TEMPLATE;
15308
16985
  exports.BLOOM_ACTION_VERBS = BLOOM_ACTION_VERBS;
16986
+ exports.BOM_TEMPLATE = BOM_TEMPLATE;
15309
16987
  exports.BUNDLED_STANDARDS_PACK_IDS = BUNDLED_STANDARDS_PACK_IDS;
15310
16988
  exports.BellRingerDaySchema = BellRingerDaySchema;
15311
16989
  exports.BellRingerSchema = BellRingerSchema;
@@ -15314,6 +16992,8 @@ exports.BloomLevelSchema = BloomLevelSchema;
15314
16992
  exports.BloomTaxonomyEvaluator = BloomTaxonomyEvaluator;
15315
16993
  exports.BronzeTierSchema = BronzeTierSchema;
15316
16994
  exports.CERConclusionSchema = CERConclusionSchema;
16995
+ exports.CHOICE_BOARD_TEMPLATE = CHOICE_BOARD_TEMPLATE;
16996
+ exports.CODE_LAB_TEMPLATE = CODE_LAB_TEMPLATE;
15317
16997
  exports.CURRICULUM_SLASH_COMMANDS = CURRICULUM_SLASH_COMMANDS;
15318
16998
  exports.CardTierEnum = CardTierEnum;
15319
16999
  exports.ChoiceBoardRubricRowSchema = ChoiceBoardRubricRowSchema;
@@ -15344,7 +17024,9 @@ exports.DeterministicStructuralLinter = DeterministicStructuralLinter;
15344
17024
  exports.DiagnosticQuestionSchema = DiagnosticQuestionSchema;
15345
17025
  exports.DiagnosticQuizSchema = DiagnosticQuizSchema;
15346
17026
  exports.EDPPhaseEnum = EDPPhaseEnum;
17027
+ exports.EXIT_TICKET_TEMPLATE = EXIT_TICKET_TEMPLATE;
15347
17028
  exports.EXPOSITION_REL = EXPOSITION_REL;
17029
+ exports.EXT_TEMPLATE = EXT_TEMPLATE;
15348
17030
  exports.EntryLevelSchema = EntryLevelSchema;
15349
17031
  exports.ExitTicketBugHuntSchema = ExitTicketBugHuntSchema;
15350
17032
  exports.ExitTicketMetacognitionSchema = ExitTicketMetacognitionSchema;
@@ -15363,6 +17045,8 @@ exports.FrameworkMappingSchema = FrameworkMappingSchema;
15363
17045
  exports.FrameworkPackManifestSchema = FrameworkPackManifestSchema;
15364
17046
  exports.FrameworkPackSchema = FrameworkPackSchema;
15365
17047
  exports.FrameworkStatementSchema = FrameworkStatementSchema;
17048
+ exports.GLOSSARY_TEMPLATE = GLOSSARY_TEMPLATE;
17049
+ exports.GRAPHIC_ORGANIZER_TEMPLATE = GRAPHIC_ORGANIZER_TEMPLATE;
15366
17050
  exports.GlossaryQuickRefRowSchema = GlossaryQuickRefRowSchema;
15367
17051
  exports.GlossarySchema = GlossarySchema;
15368
17052
  exports.GlossaryTermSchema = GlossaryTermSchema;
@@ -15370,11 +17054,13 @@ exports.GoldTierSchema = GoldTierSchema;
15370
17054
  exports.GradeBandSchema = GradeBandSchema;
15371
17055
  exports.GraphicOrganizerItemSchema = GraphicOrganizerItemSchema;
15372
17056
  exports.GraphicOrganizerSchema = GraphicOrganizerSchema;
17057
+ exports.HANDOUT_TEMPLATE = HANDOUT_TEMPLATE;
15373
17058
  exports.HandoutSchema = HandoutSchema;
15374
17059
  exports.HandoutSectionSchema = HandoutSectionSchema;
15375
17060
  exports.InstructionSectionSchema = InstructionSectionSchema;
15376
17061
  exports.InstructionStepSchema = InstructionStepSchema;
15377
17062
  exports.JudgeCriterionSchema = JudgeCriterionSchema;
17063
+ exports.LESSON_PLAN_TEMPLATE = LESSON_PLAN_TEMPLATE;
15378
17064
  exports.LLMJudgeEngine = LLMJudgeEngine;
15379
17065
  exports.LabTierTaskSchema = LabTierTaskSchema;
15380
17066
  exports.LearningObjectiveInputSchema = LearningObjectiveInputSchema;
@@ -15397,6 +17083,7 @@ exports.ModelPolicyResolver = ModelPolicyResolver;
15397
17083
  exports.NVIDIA_MODELS = NVIDIA_MODELS;
15398
17084
  exports.NodeKindSchema = NodeKindSchema;
15399
17085
  exports.OrganizerTypeEnum = OrganizerTypeEnum;
17086
+ exports.PROJECT_INSTRUCTION_TEMPLATE = PROJECT_INSTRUCTION_TEMPLATE;
15400
17087
  exports.PhaseInputSchema = PhaseInputSchema;
15401
17088
  exports.PlanConstraintsSchema = PlanConstraintsSchema;
15402
17089
  exports.PlannerInputSchema = PlannerInputSchema;
@@ -15409,8 +17096,11 @@ exports.ProgressiveHintsSchema = ProgressiveHintsSchema;
15409
17096
  exports.ProjectGraphSchema = ProjectGraphSchema;
15410
17097
  exports.ProjectInstructionSchema = ProjectInstructionSchema;
15411
17098
  exports.ProjectProfileSchema = ProjectProfileSchema;
17099
+ exports.QUIZ_TEMPLATE = QUIZ_TEMPLATE;
15412
17100
  exports.QualityAuditVerdictSchema = QualityAuditVerdictSchema;
15413
17101
  exports.QuizOptionSchema = QuizOptionSchema;
17102
+ exports.REVIEW_GAME_TEMPLATE = REVIEW_GAME_TEMPLATE;
17103
+ exports.RUBRIC_TEMPLATE = RUBRIC_TEMPLATE;
15414
17104
  exports.RecordProvenanceSchema = RecordProvenanceSchema;
15415
17105
  exports.ResourceMapRowSchema = ResourceMapRowSchema;
15416
17106
  exports.ReviewGameExportRowSchema = ReviewGameExportRowSchema;
@@ -15420,7 +17110,12 @@ exports.RoadmapInputSchema = RoadmapInputSchema;
15420
17110
  exports.RotationStationSchema = RotationStationSchema;
15421
17111
  exports.RubricCriteriaSchema = RubricCriteriaSchema;
15422
17112
  exports.RubricSchema = RubricSchema;
17113
+ exports.SCIENCE_LAB_TEMPLATE = SCIENCE_LAB_TEMPLATE;
17114
+ exports.SELF_LAB_TEMPLATE = SELF_LAB_TEMPLATE;
17115
+ exports.SLIDE_LAYOUT_PRESETS = SLIDE_LAYOUT_PRESETS;
17116
+ exports.SLIDE_TEMPLATE = SLIDE_TEMPLATE;
15423
17117
  exports.STANDARD_SOT_FILES = STANDARD_SOT_FILES;
17118
+ exports.STATION_ROTATION_TEMPLATE = STATION_ROTATION_TEMPLATE;
15424
17119
  exports.ScaffoldDecisionEntrySchema = ScaffoldDecisionEntrySchema;
15425
17120
  exports.ScaffoldDecisionSchema = ScaffoldDecisionSchema;
15426
17121
  exports.ScienceLabSchema = ScienceLabSchema;
@@ -15437,6 +17132,9 @@ exports.StationRecordRowSchema = StationRecordRowSchema;
15437
17132
  exports.StationRotationSchema = StationRotationSchema;
15438
17133
  exports.StationTypeEnum = StationTypeEnum;
15439
17134
  exports.SupabaseCurriculumAdapter = SupabaseCurriculumAdapter;
17135
+ exports.TASK_CARDS_TEMPLATE = TASK_CARDS_TEMPLATE;
17136
+ exports.TEACHER_GUIDE_TEMPLATE = TEACHER_GUIDE_TEMPLATE;
17137
+ exports.TIERED_PRACTICE_TEMPLATE = TIERED_PRACTICE_TEMPLATE;
15440
17138
  exports.TaskCardSchema = TaskCardSchema;
15441
17139
  exports.TaskCardsSchema = TaskCardsSchema;
15442
17140
  exports.TeacherGuideSchema = TeacherGuideSchema;
@@ -15449,6 +17147,7 @@ exports.TroubleshootingEntrySchema = TroubleshootingEntrySchema;
15449
17147
  exports.TroubleshootingRowSchema = TroubleshootingRowSchema;
15450
17148
  exports.UnitPlanSchema = UnitPlanSchema;
15451
17149
  exports.UserJourneySchema = UserJourneySchema;
17150
+ exports.WORKSHEET_TEMPLATE = WORKSHEET_TEMPLATE;
15452
17151
  exports.WorksheetItemSchema = WorksheetItemSchema;
15453
17152
  exports.WorksheetItemTypeEnum = WorksheetItemTypeEnum;
15454
17153
  exports.WorksheetPartSchema = WorksheetPartSchema;
@@ -15544,6 +17243,8 @@ exports.getDesignatedFallbackConfig = getDesignatedFallbackConfig;
15544
17243
  exports.getLessonMetadata = getLessonMetadata;
15545
17244
  exports.getProjectArtifactScope = getProjectArtifactScope;
15546
17245
  exports.getProjectStatusReport = getProjectStatusReport;
17246
+ exports.getSlideLayoutPresetById = getSlideLayoutPresetById;
17247
+ exports.getSlideLayoutPresetsByCategory = getSlideLayoutPresetsByCategory;
15547
17248
  exports.getSmartResumeContext = getSmartResumeContext;
15548
17249
  exports.glossaryTermsForSession = glossaryTermsForSession;
15549
17250
  exports.illustratorTools = illustratorTools;