Skip to content

feat(gemini): add an opt-in review provider - #114

Merged
abruption merged 2 commits into
mainfrom
feat/113-gemini-provider
Nov 29, 2026
Merged

abruption merged 2 commits into
mainfrom
feat/113-gemini-provider

Conversation

@abruption

@abruption abruption commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

Issue

Closes #113

Problem and result

Add Gemini Developer API to local Rebut and the Worker. Operators can create explicit Hydrogen and Neon profiles with a dedicated key. The provider uses the existing review formats, citation checks, budget reservation, and request deduplication. Older remote clients can still read OpenAI and Anthropic profiles.

Use synchronous generation with a fixed API endpoint and no tools. The structured output request uses the schema subset verified in the PoC. Console and Worker credentials remain separate, and a failed or uncertain request does not trigger a new generation automatically.

Validation

  • Independent design and implementation reviews using Claude Opus 5.5 and Gemini 4 Neon. Incorporated findings on credential routing, compatibility, and budget settlement.
  • Typecheck, build, 334 tests, and package smoke passed locally. Fixtures cover provider pinning, profile compatibility, refusal, truncation, timeout, and cost accounting.
  • Mac mini packaged local CLI with Hydrogen standard output and an isolated Worker/D1 runtime with Neon v2 each completed one real synthetic review. Both returned a finding on the submitted Markdown's physical lines 6–8.
  • Each environment applied $0.05 request, daily, and monthly limits with a single concurrent request. Rebut recorded estimated usage of $0.006006 for Hydrogen and $0.016146 for Neon. Existing production routing was kept in place.

Follow-up after independent Rebut review

  • Reject zero-input generation telemetry, unmetered thought text, and malformed or contradictory blocking metadata. Uncertain replies retain the original reservation and concurrency slot.
  • Keep policy-disabled Gemini profiles readable and repairable with their original provider and revision. New reviews are blocked until the profile meets current policy, and older remote clients keep access to their existing profiles.
  • Settle verified terminal usage above the output cap or reservation as invalid_output with usage_over_cap. Record the verified estimated cost and free the concurrency slot. Replaying the same request ID returns status without a second model call.

The follow-up passed typecheck, build, 345 tests, and package smoke locally. Claude Opus 5.5 and Gemini 4 Neon reviewed the changes. Regression verification used synthetic responses and issued no new paid model calls.

@abruption
abruption marked this pull request as ready for review November 29, 2026 23:51
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 29, 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-29T23:52:50.933651Z 48b4974 Draft marked ready
🔒 Security Review ✅ Completed 2026-11-29T23:55:10.062100Z 48b4974 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 748d43d into main Nov 29, 2026
10 checks passed
@abruption
abruption deleted the feat/113-gemini-provider branch November 29, 2026 23:55
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.

Add opt-in Gemini Developer API support

1 participant