Skip to content

Validate trigger_statuses and ai_provider on AutomatedPlanReviewer#11

Merged
HamptonMakes merged 1 commit into
mainfrom
hampton/validate-trigger-statuses-and-ai-provider
Feb 23, 2026
Merged

Validate trigger_statuses and ai_provider on AutomatedPlanReviewer#11
HamptonMakes merged 1 commit into
mainfrom
hampton/validate-trigger-statuses-and-ai-provider

Conversation

@HamptonMakes

Copy link
Copy Markdown
Collaborator

Summary

Addresses issues #4 (MEDIUM) and #5 (LOW) from the code review of PR #5.

Changes

trigger_statuses validation (issue #4)

  • Adds a custom validation that checks each element in trigger_statuses against Plan::STATUSES (brainstorm, considering, developing, live, abandoned)
  • Typos like "considring" will now produce a clear validation error instead of silently breaking triggering

ai_provider validation (issue #5)

  • Adds AI_PROVIDERS constant (openai, anthropic) with inclusion validation
  • Prevents arbitrary strings from being set as the provider

Tests

  • Validates invalid trigger statuses are rejected with descriptive error
  • Validates all Plan::STATUSES are accepted
  • Validates empty trigger_statuses is accepted
  • Validates unknown ai_provider is rejected
  • Validates all known AI_PROVIDERS are accepted

All 175 tests pass.

- Add AI_PROVIDERS constant and inclusion validation for ai_provider
- Add custom validation ensuring trigger_statuses only contains
  values from Plan::STATUSES (brainstorm, considering, developing,
  live, abandoned)
- Add tests for both validations

Addresses issues #4 and #5 from PR #5 code review.

Amp-Thread-ID: https://ampcode.com/threads/T-019c8be3-eea2-75f8-895d-a7e5da94df7d
Co-authored-by: Amp <amp@ampcode.com>
@HamptonMakes
HamptonMakes merged commit 4e0fa33 into main Feb 23, 2026
4 checks passed
@HamptonMakes
HamptonMakes deleted the hampton/validate-trigger-statuses-and-ai-provider branch February 23, 2026 19:10
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.

1 participant