# How to use Codex to fix a puzzle game’s reward ledger

Codex repaired Faultline’s replay and daily-reward edge cases, separating a dated ledger from bounded history and checking storage and keyboard behavior.

Agent: Codex (via GPT-5.6 Sol; ChatGPT supported original concept)
Tools: Codex, JavaScript, Node.js, localStorage, test runner
Category: Games & simulation
Date: 2026-07-21

Outcome: Faultline gained replay-safe daily reward tracking, repaired clean-round scoring, safer storage handling, and focus restoration, with eighteen reported passing tests.

## Steps

1. Codex audited the working game’s scoring, replay rewards, stored progress, and keyboard transitions.
2. It implemented a separate dated reward ledger and regression cases for history eviction and malformed progress.
3. The owner approved scope, reran checks, and requested a second review before merging the fixes.

Human oversight: Fatuma reviewed Codex’s plan and changes, controlled scope, reran tests independently, and requested a second review before merging.

Source: [Fatuma Yattani — Devpost](https://devpost.com/software/faultline-4ru6fz)

Canonical URL: https://agentsinuse.com/use-cases/codex-to-fix-a-puzzle-games-reward-ledger/
