Skip to content

fix(review): guide citations with submitted evidence ranges - #110

Merged
abruption merged 1 commit into
mainfrom
fix/109-review-citation-ranges
Nov 26, 2026
Merged

abruption merged 1 commit into
mainfrom
fix/109-review-citation-ranges

Conversation

@abruption

Copy link
Copy Markdown
Owner

Issue

Closes #109

Problem and result

A review can match the response schema while citing a source path or line printed inside a submitted Markdown packet. Both review formats now tell OpenAI and Anthropic which paths and physical lines can be cited. Rebut derives the ranges from the same code that validates citations and includes them when the hint fits within 8 KiB. Provider input and the cost reservation use the same serialized body.

The public bundle and response schemas, input hashes, and citation checks keep their existing contracts. The four installation guides explain how to preserve original coordinates when assembling a bundle.

Validation

  • Synthetic responses for both providers and output formats reject embedded coordinates and accept a valid physical citation.
  • Tests cover overlapping file and diff spans, out-of-order hunks, gaps, a truncated hunk, and the hint size limit.
  • Typecheck, build, 323 tests, and package smoke passed locally. No paid Rebut requests were made.
  • Claude Opus 5.5 and Gemini 4 Neon reviewed the code. Gemini 4 Hydrogen reviewed the four documentation changes.

@abruption
abruption marked this pull request as ready for review November 26, 2026 08:37
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-26T08:38:15.450156Z 106f4d7 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-26T08:39:54.963206Z 106f4d7 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@abruption
abruption merged commit 31e9c17 into main Nov 26, 2026
13 of 15 checks passed
@abruption
abruption deleted the fix/109-review-citation-ranges branch November 26, 2026 08:43
This was referenced Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant