Pi audit workers lack PostHog MCP tools although parent loads MCP; live audit checks are skipped
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- ai-infra-agents, analytics
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 208
- Fork
- 58
- Merge trung bình
- 2 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PostHog/wizard
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 2 ngày
-
wizard --version prints unknown when run through npxCó thể đã có người làm @bryanlundberg đã nhận 3 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
PostHog/wizard#1460 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Self-driving setup: checkbox labels and Confirm button overlap wrapped description textCó thể làm lại được Pull request cho issue này đã bị đóng mà không được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PostHog/wizard#986 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của PostHog/wizard
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
prio:low scope:world
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
OliverRomhagen/vrigstad-joyride#849 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
genfeedai/genfeed.ai#11916 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
erkamyaman/rust-anything#1153 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
The Phase 5 report says 0.3.0 waits for the live checkCó thể đã có người làm @fzn0x đã nhận hôm nay. Đang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày