Skip to content

LLM response validation fallback #5

@Veri5ied

Description

@Veri5ied

When LLM output is invalid JSON or missing required fields, we currently throw and fail the request.
We should post a safe fallback comment explaining that the response was invalid, and increment a failure metric.

Acceptance criteria

  • If parse fails, post a comment with a friendly error message (no stack traces).
  • Metrics reflect a validation failure.
  • Normal flow unchanged when JSON is valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions