Repository navigation
Description
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/mainNo 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
chore(tracker): track epic #2765 under Hardening
chore(tracker): track epic #2765 under Hardening
chore(tracker): track epic #2765 under Hardening
chore(tracker): track epic #2765 under Hardening
chore(tracker): track epic #2765 under Hardening
CONTRACT: fix(backends): run Pi on curated tools by default and refus…
schlessera commentedon Nov 11, 2026
Unblocked: #3686 is closed, so
scripts/sync-project.tsis removing theblockedlabel.CONTRACT: feat(backends,ui-sdk,ui-server): search on the turn's own P…
schlessera commentedon Nov 13, 2026
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.