Pi audit workers lack PostHog MCP tools although parent loads MCP; live audit checks are skipped
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
調査の方向性
Start in src/agent/runner/harness/pi/subagent.ts, where the child session sets SUBAGENT_TOOLS and customTools, and where the child resource loader sets noExtensions. Check how the parent run wires the PostHog MCP adapter, since workers never receive it. The issue leaves open whether checks move to the parent or get a read-only MCP interface for workers, so settle that design first. Done means a delegated check returns query evidence or a precise capability error, covered by an integration test.
索引モデルが issue の本文から書いたものです。
説明
Environment and reproduction
- Observed on 2026-10-15: published
@posthog/[email protected], downloaded audit skills 1.57.0, macOS, Pi harness. - Run
npx @posthog/[email protected] audit events --no-telemetryoraudit identify --no-telemetryin a project with an existing PostHog integration. - Complete browser OAuth authentication.
Actual behavior
The parent run logs that the PostHog MCP adapter loaded and received instructions, but the skills delegate live-data checks to workers which report MCP unavailable. Events usage, pageview volume, environment pollution, person-profile traffic shape, and duplicate identify/groupidentify measurements were skipped. Both final reports completed with these unmeasured checks presented as suggestions.
Sanitized log excerpts (timestamps, local paths, and project identifiers omitted):
[pi-mcp] adapter loaded; posthog MCP at https://mcp.posthog.com/mcp
[pi-mcp] instructions 412 chars
PostHog MCP unavailable — could not measure event usage in tenant
PostHog MCP unavailable — could not measure duplicate $identify events
Both runs also emitted a final remark that subagents could not access PostHog MCP or update the audit ledger.
Installed implementation evidence
The published bundle maps dist/subagent-*.js to src/agent/runner/harness/pi/subagent.ts. Its child session is constructed with:
const SUBAGENT_TOOLS = ['read', 'grep', 'find', 'ls']
// ...
tools: SUBAGENT_TOOLS,
customTools: [ctx.bashTool]
The child resource loader sets noExtensions: true and supplies only the security extension factory. The source comment explicitly says children have no custom tools beyond the separately supplied restricted Bash. This is consistent with the workers lacking the MCP/ledger capabilities required by the audit instructions.
The log establishes MCP adapter initialization in the parent, not a successful tenant query: we did not separately prove the parent could execute a live analytics query. The actionable mismatch is that the worker toolset cannot perform the delegated MCP checks at all, independently of any additional tenant permissions problem.
Expected behavior / suggested fix
- Run MCP-dependent read-only checks in the parent agent, or explicitly supply a narrowly scoped read-only MCP interface to audit workers. Preserve the worker security boundary; do not broadly inherit write tools.
- Probe project/query access once before delegating live checks, and distinguish missing worker capability from authentication failure, insufficient scope, wrong project, or unavailable server.
- Keep ledger updates in the parent if workers intentionally cannot use those tools.
- Report unmeasured checks as skipped/incomplete rather than implying a measured optimization opportunity.
- Add an integration test where the parent has MCP and a delegated audit check must return actual query evidence or a precise capability error.
Related capability-parity discussion: https://github.com/PostHog/wizard/issues/1034. This report specifically concerns audit skills delegating MCP and ledger operations to workers without those tools.
Private repository source, credentials, and full logs are intentionally omitted. This is evidence from the installed 2.83.0 package, not an assertion that current main is unchanged.
- 主要言語
- TypeScript
- スター
- 208
- フォーク
- 58
- 平均マージ
- 2日 7時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PostHog/wizard のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 2 日以内に返信
-
wizard --version prints unknown when run through npx対応中かも @bryanlundberg が 3 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
PostHog/wizard#1460 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信
-
Self-driving setup: checkbox labels and Confirm button overlap wrapped description text再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
PostHog/wizard#986 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
似ている issue
-
bug Needs Triage
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
scottbenton/Iron-Link#541 ·
メンテナーはふだん 1 日以内に返信
-
hosts settings: the SSH address field and the separate User field are two ways to name one SSH userオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
prime-radiant-inc/evener#8161 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nicobailon/pi-subagents#3420 ·
メンテナーはふだん 1 日以内に返信
-
Edit content TabList: selected tab's icon/label are hidden by its own selection indicator - a11yオープン01 type: bug 99 tag: UX Accessibility
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 2 日以内に返信