Skip to content

Claude triage enums unvalidated #14

Description

@royalpinto007

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions