Skip to content

Route sandbox provider requests through host authentication brokers - #626

Open
fazxes wants to merge 7 commits into
mainfrom
fazxes/host-managed-auth-broker
Open

Route sandbox provider requests through host authentication brokers#626
fazxes wants to merge 7 commits into
mainfrom
fazxes/host-managed-auth-broker

Conversation

@fazxes

@fazxes fazxes commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Route Gateway, Codex, and Grok requests through a configured host broker, including catalogs, permission review, credits, and usage lookup.
  • Keep provider credentials and refresh in the host while the sandbox uses a scoped broker reference.
  • Leave provider client-version discovery to the host for brokered requests.
  • Reject incomplete broker configuration before making a network request.
  • Preserve the actual HTTP status across inference, catalog, Vision, compaction, and permission failures.
  • Direct authentication, access, and service-unavailability recovery to the host application across CLI, TUI, and ACP.
  • Stop interrupted host-managed inference without replaying it or falling back to local credentials.
  • Cancel the matching upstream request on in-session cancellation, even when a proxy retains the disconnected request.
  • Report an unconfirmed upstream outcome when cancellation cannot be acknowledged within its bound.
  • Keep local authentication and transparent host routing unchanged without broker configuration.

@fazxes fazxes added the type: feature Adds a new user-facing capability label Sep 3, 2026
@fazxes
fazxes marked this pull request as ready for review September 3, 2026 21:59
@fazxes
fazxes marked this pull request as draft September 3, 2026 22:34
Keep observed HTTP status through recovery consumers and cancel each broker
request with its sandbox-scoped ID. Report unconfirmed upstream cancellation
and remove the unused broker path from the disabled search worker.
Remove URL and environment inference that duplicated the request-owned broker
state. Keep routing, retry limits, and correlation headers on the same fact.
@fazxes
fazxes marked this pull request as ready for review September 4, 2026 00:29
@fazxes
fazxes marked this pull request as draft September 4, 2026 00:30
Preserve validated provider instructions alongside host failure and
cancellation outcomes in image inspection and context compaction.
Keep brokered model discovery with the host while preserving local
provider-version refresh and scoped cancellation.
@fazxes
fazxes marked this pull request as ready for review September 4, 2026 01:18
@fazxes
fazxes marked this pull request as draft September 4, 2026 19:03
Keep host-managed failures out of context-overflow replay while retaining
local compaction recovery and provider cancellation guidance.
@fazxes
fazxes marked this pull request as ready for review September 4, 2026 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature Adds a new user-facing capability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant