Skip to content

Attempt pipeline has no input validation, API-only length check #9

Description

@royalpinto007

Problem

The library pipeline has no input validation: " " passes and is persisted as a scored attempt, and oversized input bypasses library callers. Only the API route checks length.

Where

lib/arena.ts (runAttempt goes straight to filter/agent/persist) vs app/api/attempt/route.ts (length check).

Acceptance

Add a failing test first calling runAttempt({input: " "}) and oversized input, expecting rejection before filter/agent/persist. 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