Skip to content

Epic: managed Pi workers regain extension capabilities through recorded, host-controlled paths #3669

Open
1 of 4 issues completed

Description

@schlessera

Outcome

Managed Pi workers regain the capabilities that installed extensions used to provide (web search and fetch, MCP tools, subagent delegation) through host-controlled execution paths whose every call is admitted against the turn's permissions and whose every result is recorded by the input-safety collector before a model receives it. Until each path exists, a known-unsupported extension configuration is reported before admission instead of failing a turn and latching the recorder.

Why now

The session-safety collector (#3600, PR #3621) made managed Pi refuse every loaded extension: extensions can inject messages or alter provider requests outside the tool-result hooks the collector observes (function unqualifiedResources, packages/ui-backend-pi/src/native-session-runtime.ts:143-145; packages/ui-backend-pi/README.md:328-338). With discovery on by default, an installed extension tripped the recorder failure on the first turn until #3658 made curated tools the default (packages/ui-server/src/governance/safety-collector.ts:17-26,34). Disabling extensions restores chat but removes web, MCP and subagent capability. Simply removing the refusal would leave recording gaps.

Shared context

Constraints and non-goals

  • No in-worker exemption, allowlist or trusted path for any extension; no weakening of input-safety collection or auto-clearing of recorder failures.
  • No credentials in workers; no repository-controlled code in a credentialed host context.
  • No generic provider seam or public plugin/transport seam.
  • Tests are keyless and offline with fictional Odysseus inputs.

Breakdown

  1. backends: detect unqualified Pi extension configuration before turn admission #3658 — detect unqualified extension configuration before turn admission (curated default).
  2. Epic: ordinary Pi web tools execute on the host with isolated, resumable results #1863 — web tools on a host-owned executor (Epic: the four core Pi web tools run in a trusted host executor behind a constrained bridge #2765 is delivered; backends: restore same-session web results across executor restart and chat resume within bounded retention #2766 result restoration precedes backends: give forks an owned snapshot of retained web results with independent lifecycle #2767 fork snapshots).
  3. backends: specify a recorded, host-controlled MCP path for managed Pi workers #3667 — specify the MCP path; implementation tasks follow its ruling.
  4. backends: specify recorded, host-controlled subagent delegation for managed Pi workers #3668 — specify subagent delegation; implementation tasks follow its ruling.

Definition of done

Every child closed; a managed Pi turn can use web, MCP and subagent capability with each call admitted and each result recorded, covered by keyless tests including cancellation, reload and resume; the Pi README's extension section describes the supported paths instead of a blanket refusal.

Triage 2026-11-08 at main 1619741f291f525d17cde4970a5ada40644117c1: Verified the four native children, extension-refusal anchor and recorded curated-default ruling. Existing web epic #1863 is correctly nested. The MCP/subagent spikes retain their own design deliverables; no extension exemption, epic readiness or runtime qualification is inferred.

2026-11-10 triage at main 3aadc8df5: repaired the Pi README extension-section citation and marked the discovery-default failure as historical (#3658). Breakdown and readiness unchanged.

2026-11-16 triage: Folded #2765’s completion into the existing web capability branch. MCP and subagent spikes remain independent; no managed-worker extension exemption or restored/forked-result completion is inferred.

2026-11-17 triage at main 9e7429a914a8aaf5967f074fa9e09984968fc9dc: Refreshed verified active source navigation; historical receipts retain their source identities. No new runtime qualification or readiness is claimed.

Activity

  1. added
    type: feat
    area: backends
    priority: p2
    epic
    security
    on Nov 8, 2026
  2. added
    area: ui-server
    area: ui-sdk
    area: mcp
    on Nov 8, 2026
  3. schlessera commented on Nov 8, 2026

    @schlessera
    OwnerAuthor

    Epic state, 2026-11-08: done: #3658. Pi now uses curated tools by default, and unsupported configuration is refused before admission without latching the recorder (PR #3673). Open, in order: #2765 (now an epic split into #3685, then #3686, then #3687 and #3688 in parallel), then #2766 and #2767 under #1863. #3667 (MCP) and #3668 (subagents) are independent spikes. Related harness gap: #3672.

  4. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10 triage at main 3aadc8df5: repaired the Pi README citation. It is now the "Extensions (MCP, subagents)" refusal paragraph, README.md:328-338. Marked the "discovery on by default" failure in Why now as historical, since #3658 delivered the curated default. The breakdown is unchanged since the 2026-11-08 state note.

  5. schlessera commented on Nov 16, 2026

    @schlessera
    OwnerAuthor

    Epic state — 2026-11-16. #3658 and the #2765 executor foundation are delivered. The three direct open outputs remain #1863 (next #2766, then #2767), #3667 MCP-path specification and #3668 delegation specification. Each result still requires admission and safety recording; the parent remains outside agent-ready.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: backendsarea: mcparea: ui-sdkarea: ui-serverepicpriority: p2securitytype: feat

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions