This commit addresses two critical issues:
1. Completion Bug (activities 30-37):
- Final steps were looping forever, preventing activity completion
- Fixed by removing next_section_and_step from completion transitions
- Kept off_topic transition looping to avoid validator terminal step errors
- Activities now complete properly when users give valid final answers
2. Activity37 Bucket Logic:
- Changed "close" bucket to retry same step instead of advancing
- Only "correct" bucket now advances to next step
- All other buckets (close, incomplete, wrong_language, etc.) retry
- This ensures students must get correct answers to progress
Technical Details:
- Final steps are not considered "terminal" if at least one transition
has next_section_and_step (validator requirement)
- Off-topic transitions loop back to allow another attempt
- Completion happens when get_next_step() returns None, None
Validation:
- All 8 activities pass activity_yaml_validator.py
- No errors or warnings
Affects: activity30-37 (all new merged activities)
Created 5 comprehensive educational activities that use only YAML features
(buckets, transitions, metadata operations, AI feedback) without Python scripts:
- activity30-logic-puzzles.yaml: Critical thinking through deductive reasoning,
contrapositives, syllogisms, and knights/knaves puzzles
- activity31-scientific-method.yaml: Learn scientific method through historical
case studies (Semmelweis, Newton) and experimental design principles
- activity32-world-geography.yaml: Choose-your-own-adventure journey exploring
continents, countries, capitals, and cultural facts
- activity33-environmental-science.yaml: Role-playing as environmental consultant
making sustainability decisions on transportation, energy, land use, waste, and food
- activity34-media-literacy.yaml: Develop critical media consumption skills,
evaluate sources, recognize bias, fact-check claims, and spot manipulation
All activities:
- Follow existing YAML schema and validate successfully
- Use Socratic buckets for educational feedback
- Include set_language support
- Track progress via metadata
- Provide AI-generated personalized feedback
- Are educational, engaging, and progressively challenging
- Include final reflection steps
Also added NEW_ACTIVITIES_PLAN.md documenting the planning process and
design rationale for each activity.