Problem
parsed.category ?? "other" accepts any string: category: "banana" flows into decide and is persisted to the DB.
Where
lib/agent.ts (triage parse, no enum check).
Acceptance
Add a failing test first parsing {category: "banana", urgency: "x"}, expecting fallback to "other"/"normal". Then fix.
Problem
parsed.category ?? "other"accepts any string:category: "banana"flows intodecideand is persisted to the DB.Where
lib/agent.ts(triage parse, no enum check).Acceptance
Add a failing test first parsing
{category: "banana", urgency: "x"}, expecting fallback to"other"/"normal". Then fix.