opencompletion.com/research
Claude bd779e06fa
Fix SPEC.yaml validation and refactor guarded_ai.py for v2.0 consistency
SPEC.yaml fixes:
- Comment out orphaned example code blocks that broke YAML parsing
- Convert progressive hints and dynamic question examples to comments
- Add placeholder keys to maintain valid YAML structure
- All examples now documented but non-executable (reference only)
- Validates with 0 errors

guarded_ai.py refactor (CLI simulator now uses v2.0 features):
- Import activity_utils.py for consistency with activity.py
- Use check_conditions() for advanced metadata conditions (gte, lt, contains, etc.)
- Use filter_content_blocks() for template rendering and conditional blocks
- Use render_template() for dynamic question text with {{variables}}
- Use resolve_conditional_navigation() for if/elif/else navigation
- Use select_weighted_random() for weighted random selection
- Use get_progressive_hint() for progressive hints system
- Create template contexts with built-in variables (current_attempt, etc.)

Benefits:
- Single source of truth for v2.0 logic (activity_utils.py)
- CLI simulator now tests all v2.0 features
- Maintainability: changes to features only need updates in one place
- Consistency: web app and CLI behave identically

All changes validated and tested.
2025-11-10 15:19:50 +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 Fix SPEC.yaml validation and refactor guarded_ai.py for v2.0 consistency 2025-11-10 15:19:50 +00:00
NEW_ACTIVITIES_PLAN.md Update NEW_ACTIVITIES_PLAN.md with completion status 2025-11-08 19:32:00 +00:00
SPEC.yaml Fix SPEC.yaml validation and refactor guarded_ai.py for v2.0 consistency 2025-11-10 15:19:50 +00:00