-
Notifications
You must be signed in to change notification settings - Fork 386
Closed
Labels
state:agent-readyApproved for agent implementationApproved for agent implementationstate:pr-openedPR has been opened for this issuePR has been opened for this issue
Description
Problem
and can currently accept endpoint configuration even when the target endpoint is unreachable or misconfigured. That makes it easy to save a broken route and only discover the problem later when requests fail.
Proposed solution
Run endpoint validation synchronously on the server as part of / .
By default:
- the server validates the configured inference endpoint before saving the change
- if validation fails, the update is rejected
- the error message clearly explains what failed and suggests next steps
Add an explicit escape hatch:
- bypasses validation so users can configure an endpoint before it is live
Initial scope
- validation happens inline with the request/response path (no async background workflow yet)
- validation logic runs on the server
- failed validation blocks persistence unless is set
- CLI exposes for the relevant inference set/update commands
Error handling expectations
Validation failures should return actionable errors, for example:
- what endpoint was checked
- what kind of failure occurred (connection refused, timeout, TLS error, bad response, unsupported protocol, auth issue, etc.)
- recommended next steps such as checking that the service is running, confirming the URL/protocol, verifying credentials, or retrying with if the endpoint is not up yet
Acceptance criteria
- validates by default and rejects invalid endpoints
- validates by default and rejects invalid endpoints
- skips validation for both commands
- validation is performed server-side
- validation errors are clear, specific, and include suggested next steps
- tests cover both validated and bypassed flows
Notes
The safer default is to verify eagerly, while still allowing intentional preconfiguration for endpoints that are expected to come up later.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
state:agent-readyApproved for agent implementationApproved for agent implementationstate:pr-openedPR has been opened for this issuePR has been opened for this issue