Skip to content

Suite validation accepts empty prompts and bogus message roles #27

Description

@royalpinto007

Problem

A suite with "prompt": "", "messages": [], or {role: "bogus"} passes validation and fails confusingly downstream.

Where

src/suite.ts (validateSuite): only checks typeof input.prompt === "string" and Array.isArray(input.messages).

Acceptance

Add a failing test first asserting validateSuite rejects empty-string prompts, empty messages arrays, and unknown message roles. 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