Skip to content

Pre-approve J5 tools on Pi threads #266

Closed as not planned
Closed as not planned

Description

@bryantderosier

Where it breaks. T3's injected Pi extension (piT3McpExtensionSource.ts) asks before every tool except read, grep, find, and ls unless the thread is full-access. In approval-required, auto, and auto-accept-edits, propose_crew shows a Pi confirm before the roster gate. Pi receives only the runtime mode, so a saved persona under approval policy never still gets prompted for every J5 call. Code-derived (#233).

What should change. The J5-owned j5PiPreapprovalEnv (apps/server/src/j5/a2a/mcp/piToolApproval.ts) passes j5PreapprovedTools(policy) to Pi in the launch environment, computed on the server so persona policies are told apart from plain approval-required. The extension's hook skips the confirm for those names, and only for names carrying the mcp__t3-code__ prefix, so the variable can never pre-approve bash or edits. One spread in PiAdapterV2.ts and one set in the extension source, both recorded in FORK.md.

Tests to ship. The extension's tool_call hook in the existing VM harness: skipped exactly for the shared set per mode, still asked for other tools, and an injected non-t3-code name ignored. Plus env parity over the policy matrix.

Done when. A Pi Captain's propose_crew reaches the roster gate without a Pi confirm in every runtime mode, and docs/user/personas.md drops Pi from the harnesses that still prompt before the roster gate.

Part of #233.

Activity

  1. added this to the Crews milestone on Sep 24, 2026
  2. added
    size:S
    on Sep 24, 2026
  3. Jacksondr5 commented on Sep 26, 2026

    @Jacksondr5
    Owner

    Closing as not planned per Jackson's ruling on #233 (2026-09-26). J5 pre-approves its tools only on Codex and Claude. Other harnesses may show their own MCP prompt once before the roster card, and making them skip it is upstream adapter work. The general fix is tracked for upstream give-back in #276.

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

Metadata

Metadata

Labels

size:S

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions