opencompletion.com/research
Claude 2b19fc5b9d
Implement OpenCompletion Activity YAML v2.0 features for immersive activities
Add comprehensive v2.0 features to enhance activity creation:

Features Implemented:
- Template variables: {{metadata.key}}, {{current_attempt}}, etc.
- Conditional content blocks: show_if conditions for dynamic content
- Advanced metadata conditions: gte, lt, contains, regex, exists operators
- Conditional navigation: if/elif/else branching based on metadata
- Progressive hints system: Auto-display hints based on attempt number
- Weighted random selection: Probabilistic outcomes with custom weights
- Dynamic question text: Questions with template variables
- Built-in attempt counters: Access to current_attempt, max_attempts, attempts_remaining

Files Modified:
- activity.py: Integrated all v2.0 features into activity execution
- activity_utils.py: New utility module for templates and conditions
- activity_yaml_validator.py: Updated validator for v2.0 schema
- CLAUDE.md: Added session persistence and Twitch Plays model docs
- research/SPEC.yaml: Comprehensive v2.0 feature documentation

Added:
- research/activity-test-v2-features.yaml: Test activity demonstrating all features

All changes validated and tested. Zero errors in validator.
2025-11-10 15:13:02 +00:00
..
activity-biblical-time-machine.yaml Expand Biblical time machine to global spiritual time machine 2025-11-10 13:33:50 +00:00
activity-dinosaur-time-machine.yaml Add comprehensive dinosaur time machine educational activity 2025-11-09 18:00:03 +00:00
activity-nuclear-power-plant-ai.yaml Add random bucket support and comprehensive YAML specification 2025-11-10 08:57:14 -05:00
activity-submarine-simulation.yaml Add random bucket support and comprehensive YAML specification 2025-11-10 08:57:14 -05:00
activity-test-v2-features.yaml Implement OpenCompletion Activity YAML v2.0 features for immersive activities 2025-11-10 15:13:02 +00:00
activity-unwaste-factory.yaml Add random bucket support and comprehensive YAML specification 2025-11-10 08:57:14 -05:00
activity.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity0.yaml prompt engineering 2024-08-10 10:22:54 -04:00
activity2.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity3.yaml Fix YAML validator and activity file validation errors 2025-08-10 19:38:50 -04:00
activity4.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity5.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity6.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity7.yaml migrate all activities, there should always be a step without a question 2024-08-01 18:03:00 -04:00
activity8.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity9.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity10.yaml content_blocks and questions support markdown values. 2024-07-27 15:49:19 -04:00
activity11.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity12.yaml algo for guarding AI on rails. 2024-07-27 08:57:44 -04:00
activity13-choose-adventure.yaml allow player to go back if they change their minds, less "rails". 2024-07-28 15:07:34 -04:00
activity14-choose-adventure.yaml Fix activity15 coin usage and duplicate messages 2025-08-11 18:35:46 -04:00
activity15-choose-adventure.yaml Fix activity15 coin usage and duplicate messages 2025-08-11 18:35:46 -04:00
activity16.yaml metadata_add and metadata_remove to allow for items to be consumed. 2024-08-04 08:33:55 -04:00
activity17-choose-adventure.yaml Fix YAML validator and activity file validation errors 2025-08-10 19:38:50 -04:00
activity19-rock-paper-scissors.yaml modified: research/activity19-rock-paper-scissors.yaml 2024-08-10 19:23:14 -04:00
activity20-n-plus-1.yaml n+1 in yaml to accumulate integers. 2024-08-10 14:39:37 -04:00
activity21.yaml black and also set_language isn't "correct" anymore. 2024-08-10 17:00:52 -04:00
activity22-odds-or-evens.yaml conditionally run processing_script 2024-08-24 14:31:46 -04:00
activity23-math.yaml modified: app.py 2024-08-11 13:39:30 -04:00
activity24-math-plot.yaml Fix code quality issues from PR review 2025-08-10 16:01:58 -04:00
activity26-magic-8-ball.yaml modified: research/activity26-magic-8-ball.yaml 2024-08-24 09:21:51 -04:00
activity27-tic-tac-toe.yaml Fix code quality issues from PR review 2025-08-10 16:01:58 -04:00
activity28-killer-squares.yaml Fix YAML validator and activity file validation errors 2025-08-10 19:38:50 -04:00
activity29-battleship.yaml Simplify battleship prompts to let AI imagine destruction details 2025-08-11 17:16:06 -04:00
activity29-testship.yaml Simplify battleship prompts to let AI imagine destruction details 2025-08-11 17:16:06 -04:00
activity30-logic-puzzles.yaml Fix activity completion and progression issues in activities 30-37 2025-11-08 22:59:06 +00:00
activity31-scientific-method.yaml Fix activity completion and progression issues in activities 30-37 2025-11-08 22:59:06 +00:00
activity32-world-geography.yaml Fix activity completion and progression issues in activities 30-37 2025-11-08 22:59:06 +00:00
activity33-environmental-science.yaml Fix activity completion and progression issues in activities 30-37 2025-11-08 22:59:06 +00:00
activity34-media-literacy.yaml Fix activity completion and progression issues in activities 30-37 2025-11-08 22:59:06 +00:00
activity35-american-history.yaml Fix activity completion and progression issues in activities 30-37 2025-11-08 22:59:06 +00:00
activity36-biblical-history.yaml Fix activity completion and progression issues in activities 30-37 2025-11-08 22:59:06 +00:00
activity37-programming-languages.yaml Fix pedagogical issue: Don't show code examples before asking students to write code 2025-11-09 15:09:50 +00:00
activity38-fashion-today.yaml Add two fashion activities: modern style and historical journey 2025-11-09 14:50:04 +00:00
activity38-solar-system-explorer.yaml Add back-to-planet navigation from moons to host planet 2025-11-09 17:59:03 +00:00
activity39-fashion-history.yaml Add two fashion activities: modern style and historical journey 2025-11-09 14:50:04 +00:00
activity40-fashion-empire-backrooms.yaml Add random bucket support and comprehensive YAML specification 2025-11-10 08:57:14 -05:00
activity40-statistics-101.yaml Add statistics and game theory 101 activities plus pedagogical fixes 2025-11-09 15:25:04 +00:00
activity41-game-theory-101.yaml Add statistics and game theory 101 activities plus pedagogical fixes 2025-11-09 15:25:04 +00:00
activity42-game-theory-201.yaml Add complete statistics and game theory curriculum (6 activities) 2025-11-09 15:27:38 +00:00
activity43-game-theory-301.yaml Add complete statistics and game theory curriculum (6 activities) 2025-11-09 15:27:38 +00:00
activity44-game-theory-401.yaml Add complete statistics and game theory curriculum (6 activities) 2025-11-09 15:27:38 +00:00
activity45-game-theory-501.yaml Add complete statistics and game theory curriculum (6 activities) 2025-11-09 15:27:38 +00:00
activity46-game-theory-python.yaml Add game theory programming courses for Python and C 2025-11-09 15:36:12 +00:00
activity47-game-theory-c.yaml Add game theory programming courses for Python and C 2025-11-09 15:36:12 +00:00
activity48-monty-hall-simulation.yaml Add 4 advanced programming activities with algorithm education 2025-11-09 16:07:15 +00:00
activity49-multi-armed-bandit.yaml Add 4 advanced programming activities with algorithm education 2025-11-09 16:07:15 +00:00
activity50-genetic-algorithms.yaml Add 4 advanced programming activities with algorithm education 2025-11-09 16:07:15 +00:00
activity51-connect-four.yaml Add 4 advanced programming activities with algorithm education 2025-11-09 16:07:15 +00:00
guarded_ai.py Add random bucket support and comprehensive YAML specification 2025-11-10 08:57:14 -05:00
NEW_ACTIVITIES_PLAN.md Update NEW_ACTIVITIES_PLAN.md with completion status 2025-11-08 19:32:00 +00:00
SPEC.yaml Implement OpenCompletion Activity YAML v2.0 features for immersive activities 2025-11-10 15:13:02 +00:00