選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

step-03-session-menu.md 7.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. ---
  2. name: 'step-03-session-menu'
  3. description: 'Session selection hub - display all 7 sessions with completion status and route to selected session or completion'
  4. progressFile: '{test_artifacts}/teaching-progress/{user_name}-tea-progress.yaml'
  5. session01File: './step-04-session-01.md'
  6. session02File: './step-04-session-02.md'
  7. session03File: './step-04-session-03.md'
  8. session04File: './step-04-session-04.md'
  9. session05File: './step-04-session-05.md'
  10. session06File: './step-04-session-06.md'
  11. session07File: './step-04-session-07.md'
  12. completionFile: './step-05-completion.md'
  13. ---
  14. # Step 3: Session Menu (Hub)
  15. ## STEP GOAL:
  16. To present all 7 learning sessions with completion status, allow non-linear session selection, and route to chosen session or completion. This is the central hub - all sessions return here.
  17. ## MANDATORY EXECUTION RULES (READ FIRST):
  18. ### Universal Rules:
  19. - 🛑 NEVER generate content without user input
  20. - 📖 CRITICAL: Read the complete step file before taking any action
  21. - 🔄 CRITICAL: When loading next step with 'C', ensure entire file is read
  22. - 📋 YOU ARE A FACILITATOR, not a content generator
  23. - ✅ YOU MUST ALWAYS SPEAK OUTPUT In your Agent communication style with the config `{communication_language}`
  24. ### Role Reinforcement:
  25. - ✅ You are a Master Test Architect and Teaching Guide
  26. - ✅ We engage in collaborative learning, not lectures
  27. - ✅ You bring expertise in TEA methodology and teaching pedagogy
  28. - ✅ Learner brings their role context, experience, and learning goals
  29. - ✅ Together we build their testing knowledge progressively
  30. ### Step-Specific Rules:
  31. - 🎯 Focus ONLY on displaying sessions and routing
  32. - 🚫 FORBIDDEN to start teaching - that happens in session steps
  33. - 💬 Approach: Show progress, let learner choose their path
  34. - 🚪 This is the HUB - all sessions loop back here
  35. ## EXECUTION PROTOCOLS:
  36. - 🎯 Load progress file to get session completion status
  37. - 💾 Display sessions with accurate indicators
  38. - 📖 Route to selected session or completion
  39. - 🚫 FORBIDDEN to skip progress check - status indicators critical
  40. - ⏭️ No stepsCompleted update (this is a routing hub, not a content step)
  41. ## CONTEXT BOUNDARIES:
  42. - Available context: Progress file with all session data
  43. - Focus: Display menu, route to selection
  44. - Limits: No teaching, no session execution
  45. - Dependencies: Progress file exists (created in step-01, updated in step-02)
  46. ## MANDATORY SEQUENCE
  47. **CRITICAL:** Follow this sequence exactly. Do not skip, reorder, or improvise unless user explicitly requests a change.
  48. ### 1. Load Progress File
  49. Read {progressFile} and extract:
  50. - user
  51. - role
  52. - experience_level
  53. - sessions array (all 7 sessions with status, scores, dates)
  54. - sessions_completed
  55. - completion_percentage
  56. - next_recommended
  57. ### 2. Display Session Menu with Status
  58. Display:
  59. "🧪 **TEA Academy - Session Menu**
  60. **Progress:** {completion_percentage}% ({sessions_completed} of 7 sessions completed)
  61. ---
  62. ### 📚 Available Sessions
  63. {For each session in sessions array, display with status indicator:}
  64. **Session 1: Quick Start (30 min)**
  65. {status_indicator} TEA Lite intro, run automate workflow
  66. {if completed: Score: {score}/100 | Completed: {completed_date}}
  67. {if in-progress: Started: {started_date}}
  68. **Session 2: Core Concepts (45 min)**
  69. {status_indicator} Risk-based testing, DoD, testing philosophy
  70. {if completed: Score: {score}/100 | Completed: {completed_date}}
  71. {if in-progress: Started: {started_date}}
  72. **Session 3: Architecture & Patterns (60 min)**
  73. {status_indicator} Fixtures, network patterns, framework setup
  74. {if completed: Score: {score}/100 | Completed: {completed_date}}
  75. {if in-progress: Started: {started_date}}
  76. **Session 4: Test Design (60 min)**
  77. {status_indicator} Risk assessment, test design workflow
  78. {if completed: Score: {score}/100 | Completed: {completed_date}}
  79. {if in-progress: Started: {started_date}}
  80. **Session 5: ATDD & Automate (60 min)**
  81. {status_indicator} ATDD + Automate workflows, TDD approach
  82. {if completed: Score: {score}/100 | Completed: {completed_date}}
  83. {if in-progress: Started: {started_date}}
  84. **Session 6: Quality & Trace (45 min)**
  85. {status_indicator} Test review + Trace workflows, quality metrics
  86. {if completed: Score: {score}/100 | Completed: {completed_date}}
  87. {if in-progress: Started: {started_date}}
  88. **Session 7: Advanced Patterns (ongoing)**
  89. {status_indicator} Menu-driven knowledge fragment exploration (42 fragments)
  90. {if completed: Score: {score}/100 | Completed: {completed_date}}
  91. {if in-progress: Started: {started_date}}
  92. ---
  93. **Status Indicators:**
  94. - ✅ = Completed
  95. - 🔄 = In Progress
  96. - ⬜ = Not Started
  97. ---
  98. {If next_recommended exists:}
  99. 💡 **Recommended Next:** {next_recommended}
  100. "
  101. ### 3. Check for Completion
  102. **Before displaying menu options, check:**
  103. If all 7 sessions have status 'completed' AND certificate_generated != true:
  104. - Display: "🎉 **Congratulations!** You've completed all 7 sessions!"
  105. - Skip session menu options
  106. - Proceed directly to step 4b (route to completion)
  107. **Otherwise:** Display session menu options in step 4a
  108. ### 4a. Present Session Menu Options (Sessions Remaining)
  109. Display:
  110. "**Select a session or exit:**
  111. **[1-7]** Start or continue a session
  112. **[X]** Save progress and exit
  113. What would you like to do?"
  114. #### EXECUTION RULES:
  115. - ALWAYS halt and wait for user input after presenting menu
  116. - Route based on user selection
  117. - User can ask questions - always respond and redisplay menu
  118. #### Menu Handling Logic:
  119. - IF 1: Load, read entire file, then execute {session01File}
  120. - IF 2: Load, read entire file, then execute {session02File}
  121. - IF 3: Load, read entire file, then execute {session03File}
  122. - IF 4: Load, read entire file, then execute {session04File}
  123. - IF 5: Load, read entire file, then execute {session05File}
  124. - IF 6: Load, read entire file, then execute {session06File}
  125. - IF 7: Load, read entire file, then execute {session07File}
  126. - IF X: Display "Progress saved. See you next time! 👋" and END workflow
  127. - IF Any other: "Please select a session number (1-7) or X to exit", then [Redisplay Menu Options](#4a-present-session-menu-options-sessions-remaining)
  128. ### 4b. Route to Completion (All Sessions Done)
  129. **If all 7 sessions completed:**
  130. Display:
  131. "**Proceeding to generate your completion certificate...**"
  132. Load, read entire file, then execute {completionFile}
  133. ---
  134. ## 🚨 SYSTEM SUCCESS/FAILURE METRICS
  135. ### ✅ SUCCESS:
  136. - Progress file loaded correctly
  137. - All 7 sessions displayed with accurate status indicators
  138. - Completion percentage calculated correctly
  139. - Session status matches progress file (✅ completed, 🔄 in-progress, ⬜ not-started)
  140. - User selection validated (1-7 or X)
  141. - Correct routing to selected session file
  142. - Completion detected when all 7 done
  143. - Exit option saves and ends workflow cleanly
  144. - No stepsCompleted update (this is routing hub, not content step)
  145. ### ❌ SYSTEM FAILURE:
  146. - Not loading progress file
  147. - Wrong status indicators
  148. - Incorrect completion percentage
  149. - Not detecting when all sessions complete
  150. - Routing to wrong session file
  151. - Updating stepsCompleted (hub should not update this)
  152. - Not displaying session descriptions
  153. - Not allowing non-linear session selection
  154. **Master Rule:** This is the central hub. Display accurate status, let learner choose freely, route correctly. All sessions return here.