## Analyze decompiled game scripts to detect and patch softlocks

Find unwinnable dead-end states in legacy game scripts and generate guard patches.

Inspect the provided decompiled game scripts or bytecode dumps. Trace state variables, inventory checks, and transition triggers across rooms and scenes to identify paths that leave the game unwinnable. Draft conditional patch code that enforces prerequisite checks before irreversible transitions. Present the analysis and suggested patch files to the user for review. Do not commit changes to any repository without explicit approval.

Approvals:

- Committing generated patch changes to any repository requires explicit approval.

Source: BotBento use case https://botbento.com/usecases/analyze-decompiled-game-scripts-to-detect-and/ (CC BY 4.0).
