TASK-002E: Tests and Corruption Handling Verification
AI Execution Profile
- Model class:
Balanced - Reasoning effort:
Medium
Scope
- test startup hydration with existing history
- test empty history startup behavior
- test append or upsert rules
- test newest-first ordering
- test corrupted file handling
Copy/Paste Prompt
text
Implement only TASK-002E: Tests and Corruption Handling Verification.
Read first:
- docs/specs/SLICE-002-persistent-run-history.md
- docs/tasks/slice-002/TASK-002E-tests-and-corruption-handling-verification.md
Goal:
- Add the minimum automated verification for persistent run history.
Scope:
- Test startup hydration with existing persisted history.
- Test missing-file startup behavior.
- Test append or upsert behavior by RunId.
- Test newest-first ordering.
- Test corrupted or unreadable history file handling.
Do not:
- Add broad UI automation unless absolutely necessary
- Expand into future analytics or filtering work