Skip to content

backends: support subscription and current-model search through host-owned Pi auth #3688

Closed

Description

@schlessera

Out of scope

Browser-cookie/profile/keyring acquisition and credential commands (#1989), noninteractive model workflows (#1987), live-login qualification itself (named, not performed), any change to restricted autonomous inference.

Context

Part of #2765. Subscription/current-model search is a required ruling of #1863 (2026-10-15): an API-key-only or standalone-MCP substitute does not meet it. See docs/plans/host-owned-web-search.md, "Feature and authentication matrix" (OpenAI/Kimi login and current-model rows) and "Full-extension authority map" (model, modelRegistry). Pi's host credential check is hasStoredCredential (packages/ui-backend-pi/src/auth.ts:125). The stored-login refresh placement is in docs/decisions/governed-writable-workers.md, "Approved host OAuth refresh placement (2026-10-16)".

Blocked by #3686

Scope

Specify and implement the supported Pi login/provider/current-model paths for the trusted executor: host-owned credential resolution and refresh, model selection bound to the admitted session profile, and cancellation. API keys and environment credentials under existing trusted host policy remain supported.

Acceptance criteria

  • Subscription/current-model search runs through real host-owned Pi auth and model integration in an offline trusted-context test with a fictional stored login and loopback provider.
  • The executor's model always matches the admitted session profile, and a mismatch or a missing/expired credential refuses honestly.
  • Credential refresh stays on the host and its bytes never reach the worker, proven with sentinels.
  • The PR names any separately authorized live-login qualification still needed before claiming support.

Verification

bun run test packages/ui-backend-pi packages/ui-server
bun run check:pr --base origin/main

No real login, provider key or paid inference.

Contract impact

Additive if a new setting or catalog field is introduced: CONTRACT: handling and a minor changeset.

Activity

  1. added
    type: feat
    area: backends
    priority: p2
    agent-ready
    blocked
    security
    on Nov 8, 2026
  2. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #3686 is closed, so scripts/sync-project.ts is removing the blocked label.

  3. removed
    blocked
    on Nov 11, 2026
  4. self-assigned this
    on Nov 13, 2026
  5. added this to the 0.45.0 milestone on Nov 13, 2026
  6. schlessera commented on Nov 13, 2026

    @schlessera
    OwnerAuthor

    Landed in #3992 (squash d64f893). Main's run on the squash, 43434246899, passed every job. A Pi turn whose inference runs on the host relay lends its admitted model to web search. Subscription (ChatGPT/Codex login) and current-model search run through the host relay: the host resolves and refreshes the credential, the executor holds a placeholder, and a request for any other model is refused before it is sent. Still needed before claiming support: a separately authorized live-login qualification of both paths. The proof so far is offline, with a fictional stored login.

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

Metadata

Metadata

Assignees

Labels

agent-readyarea: backendspriority: p2securitytype: feat

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions