Skip to content

fix(review): guide citations with the submitted evidence ranges #109

Done

Description

@abruption

Problem

A provider can return valid Structured Output and still cite an unsubmitted path or line. For example, a Markdown packet can contain src/example.ts:42 even though the only submitted file is packet.md. A single out-of-range finding causes Rebut to return invalid_output with ungrounded_finding in both output formats.

Scope

  • Give OpenAI and Anthropic the actual citation paths and line spans derived from the validator's evidence. Explain how to cite a Markdown packet and how to report missing evidence.
  • Keep the additional provider input bounded and include its size in the existing reservation calculation.
  • Keep grounding checks, bundle hashes, and both public output contracts. Document how callers can preserve original coordinates.

Acceptance criteria

  • Synthetic fixtures distinguish an embedded source coordinate from a submitted coordinate on both providers and output formats.
  • File excerpts, new-side diff spans, gaps, and the hint size limit are covered by tests. Existing invalid citations remain rejected.
  • Typecheck, build, tests, package smoke, and independent review pass before the Draft PR.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions