Problem: Complex state machine logic lacks comprehensive tests.
Required Changes:
- Create
agent/automata_test.go
- Test all phase transitions:
- ASK → RETURN
- ASK → REFINE → ASK
- ASK → RETRY → ASK
- ASK → ABORT
- Test edge cases:
- Max epochs reached
- Decoder error vs feedback
- Memory full
- LLM error handling
- Test multi-turn conversations
- Aim for >80% coverage of
Automata.Prompt()
Estimated Effort: 4 hours
Skills Required: Testing, state machine understanding