You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TUI/CLI accepts INSULT as a contentFilter value, fails CFN deploy with ValidationException #1571
Should be 'INSULTS' (plural) to match the service's accepted enum. src/cli/tui/screens/policy/__tests__/synthesize-cedar.test.ts uses the same singular form so it doesn't catch the mismatch.
Fix
CONTENT_FILTER_FILTERS in types.ts → change 'INSULT' to 'INSULTS'.
Update the synthesize-cedar tests that reference INSULT (none currently do directly — the existing tests only use VIOLENCE/HATE, but worth adding one with INSULTS to lock the canonical name in).
Note (out of scope, separate issue worth filing)
There's no client-side validation on --form-filters at all — it accepts any string. agentcore add policy --form-filters NOTAREALCATEGORY succeeds and only fails at deploy time. Worth tightening once we have the right enum.
I don't think we need client side validation for everything (as it's an enum and can be updated) but for the options we offer in TUI, we should make sure those are correct
Activity
notgitika commentedon Jun 18, 2026
I don't think we need client side validation for everything (as it's an enum and can be updated) but for the options we offer in TUI, we should make sure those are correct
test(policy): trim redundant filter-validation tests
fix(policy): correct INSULTS content-filter enum and validate --form-…