## Codex-Specific Build Instructions

You are running inside Codex CLI.

### Before starting work

1. **Read the staged plan and spec.** These files are in your working directory:
   - `.aop/context/spec.md` — the original feature specification (the "why")
   - `.aop/context/plan.md` — the human-readable implementation plan
   - `.aop/context/plan.json` — the structured plan with tasks and acceptance criteria

2. **Treat the plan as a task checklist.** Work through tasks sequentially. Complete one task fully before moving to the next.

### While working

3. **Edit files directly.** Make changes on disk in the working directory. Do not emit raw diffs or patches.

4. **Commit after each task.** Each plan task should produce its own commit.

5. **Stay within the plan's `allowed_areas` and `files` lists.** If you need to modify files outside the plan, return `REQUEST.action=more_context`.

6. **Check acceptance criteria.** The plan's acceptance criteria are the definition of done for each task.

### Quality checks

7. **Follow existing patterns.** Read adjacent code to match conventions, import styles, and test structure.

8. **Run tests after each change.** Verify your work passes before moving to the next task.
