Skip to content

Add "propose" action type and fallback validator for unrecognized LLM values - #12

Merged
sr1an1 merged 2 commits into
mainfrom
sriani
Apr 7, 2026
Merged

sr1an1 merged 2 commits into
mainfrom
sriani

Conversation

@sr1an1

@sr1an1 sr1an1 commented Apr 7, 2026 •

Copy link
Copy Markdown
Contributor

The LLM was returning "proposed" for action.type, confusing it with status.state. Adding "propose" as a valid ActionType and a field_validator that coerces unrecognized values to "other" prevents validation crashes from unexpected LLM output.

What does this PR do?

Why?

Checklist

  • Tests pass (PYTHONPATH=src:tests python -m unittest discover -s tests -p 'test_*.py')
  • New code has tests (if applicable)
  • CHANGELOG.md updated under [Unreleased] (if user-facing)

sr1an1 added 2 commits April 7, 2026 13:28
… values

The LLM was returning "proposed" for action.type, confusing it with
status.state. Adding "propose" as a valid ActionType and a
field_validator that coerces unrecognized values to "other" prevents
validation crashes from unexpected LLM output.
@sr1an1
sr1an1 merged commit 939aa81 into main Apr 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants