Skip to content

spec: clarify Custom Inference data flow disclosure - #12003

Open
warp-for-oss[bot] wants to merge 1 commit into
masterfrom
oz-agent/spec-issue-11681
Open

warp-for-oss[bot] wants to merge 1 commit into
masterfrom
oz-agent/spec-issue-11681

Conversation

@warp-for-oss

@warp-for-oss warp-for-oss Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add a product spec for making Custom inference in-app copy explicit about local key storage versus in-flight routing through Warp's backend.
  • Add a tech spec grounded in the existing Settings UI, custom endpoint modal, API key storage, and agent request construction paths.
  • Scope the planned implementation to disclosure/link updates, not routing architecture changes.

Validation

  • Reviewed the issue body, maintainer comments, current Warp client code paths, and current public docs for Custom inference/BYOK routing.
  • Ran a whitespace check for the staged spec files.

Related issue: #11681

Co-Authored-By: Oz <[email protected]>
Co-Authored-By: Kevin Chevalier <[email protected]>
@warp-for-oss

warp-for-oss Bot commented Jun 1, 2026 •

Copy link
Copy Markdown
Contributor Author

@oz-for-oss[bot]

I'm starting a first review of this spec-only pull request.

You can view the conversation on Warp.

I completed the review and no human review was requested for this pull request.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@warp-for-oss warp-for-oss Bot left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Overview

This PR adds product and tech specs for clarifying Custom inference in-app copy around local key storage versus backend in-flight routing. The scope is generally aligned with the issue and grounded in the affected Settings UI, modal, secure-storage, and request-construction paths.

Concerns

  • The specs do not consistently carry the stated response-content transit disclosure into the Settings requirement and tech-spec recommended modal copy.

Security

  • Response content is sensitive user/model data. If the implementation follows the current recommended copy, users may still not learn from the in-app disclosure that custom endpoint responses also pass through Warp's backend.

Verdict

Found: 0 critical, 2 important, 0 suggestions

Request changes

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Comment thread specs/GH11681/product.md

- users can provide their own API keys and custom OpenAI-compatible endpoints for Warp Agent;
- API keys are stored only on the user's device at rest, using the OS secure storage mechanism;
- when the user sends an agent request with a BYOK or custom endpoint model, Warp sends the API key and prompt to Warp's backend in-flight so the server-side agent harness can call the selected provider or endpoint;

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

⚠️ [IMPORTANT] [SECURITY] This Settings requirement omits response content, even though the summary says responses transit Warp's backend. Include response content so the implementation does not disclose only half of the sensitive data flow.

Suggested change
- when the user sends an agent request with a BYOK or custom endpoint model, Warp sends the API key and prompt to Warp's backend in-flight so the server-side agent harness can call the selected provider or endpoint;
- when the user sends an agent request with a BYOK or custom endpoint model, the API key and prompt transit Warp's backend in-flight, and the provider or endpoint response returns through Warp's backend, so the server-side agent harness can complete the request;

Comment thread specs/GH11681/tech.md

Recommended copy direction:

"Requests to custom endpoints are routed through Warp's backend. Warp sends your endpoint URL, selected model, API key, and prompt to its backend in-flight so the server-side agent harness can call your endpoint. Warp does not store the API key on its servers. Use a publicly reachable HTTPS endpoint."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

⚠️ [IMPORTANT] [SECURITY] The recommended modal copy drops response content, so an implementation following it would not satisfy the product requirement that response content may transit Warp's backend. Add response content to the recommended copy.

Suggested change
"Requests to custom endpoints are routed through Warp's backend. Warp sends your endpoint URL, selected model, API key, and prompt to its backend in-flight so the server-side agent harness can call your endpoint. Warp does not store the API key on its servers. Use a publicly reachable HTTPS endpoint."
"Requests to custom endpoints are routed through Warp's backend. Your endpoint URL, selected model, API key, prompt, and response content transit Warp's backend in-flight so the server-side agent harness can call your endpoint and return the result. Warp does not store the API key on its servers. Use a publicly reachable HTTPS endpoint."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant