Repository navigation
Description
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
- Claude records every tool, MCP and subagent calls included, through
PreToolUse/PostToolUsehooks (packages/ui-backend-claude/src/permission-hooks.ts:317-318,695-699). Each Pi path must reach the same guarantee. - Web search already has its rulings and design: architecture C, host-owned executor behind a constrained bridge (Epic: ordinary Pi web tools execute on the host with isolated, resumable results #1863, Epic: the four core Pi web tools run in a trusted host executor behind a constrained bridge #2765;
docs/plans/host-owned-web-search.md). - Binding:
ROADMAP.md"What binds future work",docs/decisions/session-safety-reviews.md,docs/decisions/provider-history.md,docs/decisions/governed-writable-workers.md. - Readiness ruling (maintainer, 2026-11-08, on backends: detect unqualified Pi extension configuration before turn admission #3658): curated tools by default; installed extensions reported inactive; an explicit opt-in marks Pi not ready instead of refusing boot.
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
- backends: detect unqualified Pi extension configuration before turn admission #3658 — detect unqualified extension configuration before turn admission (curated default).
- 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).
- backends: specify a recorded, host-controlled MCP path for managed Pi workers #3667 — specify the MCP path; implementation tasks follow its ruling.
- 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
chore(tracker): track epic #3669 under Hardening
chore(tracker): track epic #3669 under Hardening
chore(tracker): track epic #3669 under Hardening
chore(tracker): track epic #3669 under Hardening
CONTRACT: fix(backends): run Pi on curated tools by default and refus…
schlessera commentedon Nov 8, 2026
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.
schlessera commentedon Nov 10, 2026
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.schlessera commentedon Nov 16, 2026
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.