# IF:CARGO: LLM-Based Semantic Compilation for Al-Native Rule Programming Games

arXiv: https://arxiv.org/abs/2608.12195 · HTML: https://mlsanity.com/paper/2608.12195/

## Key facts

- Cited by 2 papers in the map (data through 24 Nov 2026).
- Submitted 12 Aug 2026.

## Built on by (most cited first, 2 of 2)

- [AI for Games in the Foundation Model Era](https://mlsanity.com/paper/2609.16679/) (2026)
- [State World Models: Execute the Rules, Generate the Pixels](https://mlsanity.com/paper/2610.26811/) (2026)

## Abstract (arXiv)

This case study presents IF: CARGO, an experimental puzzle game that uses a large language model as a semantic compiler rather than an autonomous game-playing agent. Players author IF/THEN rules in natural language, which the model translates into a constrained command schema for deterministic validation and execution by the game engine. This architecture creates a playable loop of expression, execution, observation, and revision, framing AI interaction as semantic debugging. A mixed-methods playtest with 24 participants across eight levels examined player attempts, thinking time, perceived controllability, adjustability, and interpretations of the AI's role. Results suggest that players generally understood the model as a translation intermediary and could revise their strategies through feedback, while periodic commands, multi-robot coordination, and rule-priority mechanics created greater cognitive and diagnostic demands. The study proposes a practical pattern for AI-native gameplay: constrain natural-language input, preserve player authorship, and ensure deterministic execution.
