opencompletion.com/research
Russell Ballestrini fca7addaa5 Fix battleship AI hallucination bug with skip_condition system
Add skip_condition logic to feedback prompts to prevent AI from generating
false ship destruction messages when no ships were actually destroyed.

Changes:
- Add skip_condition parameter support in provide_feedback_prompts()
- Support all_null, all_false, and all_true condition types
- Apply skip_condition to battleship Ship Status and Game Over prompts
- Add comprehensive unit tests covering all skip condition scenarios
- Test real battleship scenario that was causing hallucinations

This prevents the AI from creating false positive ship destruction messages
when metadata indicates no ships were actually sunk (all null values).
2025-08-11 17:04:17 -04: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 metadata_add and metadata_remove to allow for items to be consumed. 2024-08-04 08:33:55 -04:00
activity15-choose-adventure.yaml metadata_add and metadata_remove to allow for items to be consumed. 2024-08-04 08:33:55 -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
activity25-20-questions.yaml modified: app.py 2024-08-20 17:38:48 -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 Fix battleship AI hallucination bug with skip_condition system 2025-08-11 17:04:17 -04:00
activity29-testship.yaml Fix battleship AI hallucination bug with skip_condition system 2025-08-11 17:04:17 -04:00
guarded_ai.py modified: activity_yaml_validator.py 2025-08-11 12:39:42 -04:00