Skip to content
This repository was archived by the owner on Oct 8, 2026. It is now read-only.

Allow exact Jev endpoint overrides - #7

Merged
senamakel merged 2 commits into
mainfrom
jev-desktop-control
Sep 24, 2026
Merged

senamakel merged 2 commits into
mainfrom
jev-desktop-control

Conversation

@senamakel

@senamakel senamakel commented Sep 24, 2026 •

Copy link
Copy Markdown
Member

Summary

  • allow callers to select an exact compatible Jev endpoint
  • preserve provider-specific response validation and URL hardening
  • document OpenRouter Decisions routing

Public API / behavior

  • adds ClientConfig::with_endpoint_url and endpoint_url

Validation

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features

Summary by CodeRabbit

  • New Features

    • Added support for specifying an exact evaluation endpoint URL. When set, requests go directly to that URL instead of appending the provider’s default path.
    • Added an example showing how to use OpenRouter’s Decisions endpoint.
  • Documentation

    • Documented endpoint overrides and their compatibility with existing response validation and URL checks.

@tinysweeper

tinysweeper Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Tiny Sweeper review

Tiny Sweeper reviewed this change across 6 lane(s) and found 1 active actionable finding(s). Detailed lane evidence and any incomplete work are listed below.

State: Ready for maintainer review
Priority: none
Reviewed head: 250cf4c79a8e
Updated: 1790244155 (Unix time)

Review snapshot

Change surface Files Review signal Count
Production 2 Active findings 0
Tests 1 Noted findings 0
Documentation 2 Resolved findings 4
Configuration 0 Pending checks/questions 0

Completeness: Complete
Test assessment: No supported feature-to-test mapping was available; this does not mean tests are absent or passed.

What changed

The review could not produce a supported behavioral summary; inspect the cited changed surface and lane details below.

Features

None identified with supported citations.

Tests

No supported feature-to-test mapping was produced. Test execution is not inferred.

Findings

No active actionable findings.

Resolved this pass

  • Add tests for invalid endpoint URL validation
  • Add tests for invalid endpoint URL validation
  • medium — Add tests for invalid endpoint URL validation
  • Add tests for invalid endpoint URL validation

Before merge

None.

How this fits together

flowchart LR
  n0["...the_documented_endpoint_and_bearer_header<br/>changed"]:::changed
  n1["ClientConfig<br/>changed"]:::changed
  n2["evaluate"]:::impacted
  n3["request"]:::impacted
  n4["config"]:::impacted
  n5["server"]:::impacted
  n6["...ride_is_not_extended_with_a_provider_path"]:::impacted
  n7["...sponse_validation_report_failure_metadata"]:::impacted
  n0 -->|calls| n2
  n0 -->|tests| n2
  n0 -->|calls| n3
  n0 -->|tests| n3
  n0 -->|calls| n4
  n0 -->|tests| n4
  n0 -->|calls| n5
  n0 -->|tests| n5
  n4 -->|uses| n1
  n6 -->|calls| n2
  n6 -->|tests| n2
  n6 -->|calls| n3
  n6 -->|tests| n3
  n6 -->|calls| n5
  n6 -->|tests| n5
  n7 -->|calls| n2
  n7 -->|tests| n2
  n7 -->|calls| n3
  n7 -->|tests| n3
  n7 -->|calls| n4
  n7 -->|tests| n4
  n7 -->|calls| n5
  n7 -->|tests| n5
  classDef changed fill:#0d4429,stroke:#238636,color:#e6edf3
  classDef impacted fill:#161b22,stroke:#6e7681,color:#c9d1d9
  classDef flagged fill:#5a1e02,stroke:#d93f0b,color:#ffffff
  classDef blocking fill:#67060c,stroke:#f85149,color:#ffffff
Loading
Agent review details

critique

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: The change adds coverage for exact endpoint overrides and invalid endpoint URL validation. The previously reported missing invalid-endpoint tests is resolved, and this test-only change is safe to merge. _The code index is behind this pull request (indexed at `9d65d675de69`), so retrieved context may be out of date._ _Memory was unavailable (model: cortex: v1/recall: timed out after 10s), so this review ran without it._

security

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: The added endpoint override and validation coverage is sound, and the earlier invalid-endpoint testing gap is fixed. This change is safe to merge. _The code index is behind this pull request (indexed at `9d65d675de69`), so retrieved context may be out of date._ _Memory was unavailable (model: cortex: v1/recall: timed out after 10s), so this review ran without it._

tests

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: The change adds an optional `endpoint_url` to `ClientConfig`, allowing callers to override the provider's default System One path. URL hardening rules from `base_url` are reused via a shared `validate_url` function, and the new behaviour and invalid-input rejection are tested. The earlier finding about missing invalid-endpoint tests is resolved by the new validation loop. No new issues are introduced. (1 earlier finding(s) still open) _The code index is behind this pull request (indexed at `9d65d675de69`), so retrieved context may be out of date._ _Memory was unavailable (model: cortex: v1/recall: timed out after 10s), so this review ran without it._

commits

  • Conclusion: Neutral
  • Scope reviewed: all assigned evidence
  • Lane summary: Nothing sensitive found in what this pull request commits.

description

  • Conclusion: Success
  • Scope reviewed: all assigned evidence
  • Lane summary: Adds endpoint override support with validation and tests. The prior finding about missing tests is now addressed; no new issues introduced. _The code index is behind this pull request (indexed at `9d65d675de69`), so retrieved context may be out of date._ _Memory was unavailable (model: cortex: v1/recall: timed out after 10s), so this review ran without it._

e2e

  • Conclusion: Neutral
  • Scope reviewed: all assigned evidence
  • Lane summary: No end-to-end harness in this repository: no e2e test files and no e2e workflow.
Evidence and run details
  • Models: ladder/vectors, gpt-5.6-luna, deepseek-v4-flash
  • Spend: $0.003745
  • Tokens: 148182 input · 7771 output · 9676 cached · 482 embedding
Head State Pass summary
9d65d675de69 ready for maintainer review 1 active finding(s), 0 resolved finding(s) (at 1790242640)
250cf4c79a8e ready for maintainer review 0 active finding(s), 4 resolved finding(s) (at 1790244155)

tinysweeper 0.1.0

@coderabbitai

coderabbitai Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

Warning

Review limit reached

  • Run on-demand review

This review includes 1 billable file and costs up to $0.25.

Or wait 36 minutes for your next included review.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 51d8b9de-dbda-494f-a565-e35624f4757c

📥 Commits

Reviewing files that changed from the base of the PR and between 9d65d67 and 250cf4c.

📒 Files selected for processing (1)
  • crates/tinyjevclient/src/client/test.rs

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Advanced

Run ID: 7f0957f0-00e2-45c3-ab2c-f27ee48a0fc2

📥 Commits

Reviewing files that changed from the base of the PR and between 84b3983 and 9d65d67.

📒 Files selected for processing (5)
  • README.md
  • crates/tinyjevclient/src/client/mod.rs
  • crates/tinyjevclient/src/client/test.rs
  • crates/tinyjevclient/src/client/types.rs
  • docs/specs/system-one-client.md

Included review availability: Your plan provides up to 1 included review per hour; 0 remain after this review.


📝 Walkthrough

Walkthrough

The client configuration now supports an optional exact endpoint URL. The client validates the URL and uses it directly for requests when present; otherwise, it retains the existing base-URL and provider-path behavior. The README, specification, and tests cover this option.

Changes

Endpoint URL Override

Layer / File(s) Summary
Endpoint configuration and validation
crates/tinyjevclient/src/client/types.rs, crates/tinyjevclient/src/client/mod.rs, crates/tinyjevclient/src/client/test.rs
ClientConfig stores, exposes, and includes the endpoint override in its debug output. Configuration validation applies the existing URL checks to the base URL and any configured endpoint URL.
Request routing and usage
crates/tinyjevclient/src/client/mod.rs, crates/tinyjevclient/src/client/test.rs, README.md, docs/specs/system-one-client.md
Requests use the configured endpoint without appending the provider path. Without an override, the client retains the existing URL construction. Tests and documentation cover the option.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to 9d65d

The exact endpoint option appears ready to merge after normal checks; no concrete merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 71.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 3 files. (2 skipped: … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: allowing callers to override the default Jev endpoint with an exact URL.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 71.43% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 14 functions across 3 files. (2 skipped: 2 unsupported.)

✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR

A rabbit sets the endpoint straight,
No extra path is added late.
The URL checks each route with care,
And docs show how to send it there.
The tests confirm the request’s way.

Comment @coderabbitai help to get the list of available commands.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-24T10:01:30.737302Z 250cf4c New commits
ℹ️ 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.

@tinysweeper tinysweeper Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tinysweeper found nothing blocking. Approving.

             $0.0031 · 170,468 in / 11,561 out · 9,435 cached (6%)  · ladder/vectors, gpt-5.6-luna, deepseek-v4-flash · 474 embedded
critique:    $0.0013 · 79,259 in  / 2,220 out  · 4,143 cached (5%)  · gpt-5.6-luna
security:    $0.0010 · 66,452 in  / 1,320 out  · 3,756 cached (6%)  · gpt-5.6-luna
tests:       $0.0003 · 14,176 in  / 2,633 out  · 1,536 cached (11%) · deepseek-v4-flash
description: $0.0002 · 5,804 in   / 1,500 out  · 0 cached (0%)      · deepseek-v4-flash

Comment thread crates/tinyjevclient/src/client/test.rs
@senamakel
senamakel merged commit 50c3e4f into main Sep 24, 2026
16 checks passed
@senamakel
senamakel deleted the jev-desktop-control branch September 27, 2026 07:28
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant