📋 POC-431.1.md — v4.31.1-r2
📋 TABLE OF CONTENTS
| § |
Title |
| §1 |
📊 EXECUTIVE SUMMARY |
| §2 |
🎯 THE PROBLEM STATEMENT |
| §3 |
📐 POC SCOPE |
| §4 |
🏛️ ARCHITECTURE — AOPS AT WORK |
| §5 |
🔄 IMPLEMENTATION FLOW |
| §6 |
✅ SUCCESS CRITERIA |
| §7 |
⚠️ RISKS & MITIGATIONS |
| §8 |
🗺️ POSTHOG FEATURE → AOP MAPPING (FROM SOURCES) |
| §9 |
📋 APPENDIX A — FULL SOURCES MATRIX |
| §10 |
📋 BP-075 FOOTER |
§1. 📊 EXECUTIVE SUMMARY
1.1 What This POC Proves
PostHog.com + AOPs (4 Autonomous Observation Patterns) + ♾️ WeOwnNet 🌐 ecosystem = a working proof that MAIT agents can autonomously observe, analyze, report, and escalate using real product analytics data.
1.2 The Hypothesis
| Statement |
Expected Outcome |
Source |
| MAIT-PostHog-Kimi can connect to PostHog Cloud via MCP and query real data |
Agent demonstrates O1→O2→O3→O4 flow |
PostHog MCP Docs |
| PostHog MCP enables agent-to-analytics communication without dashboards |
MCP protocol works as described in PRJ-403 |
PostHog MCP Docs |
| The 4 AOPs are implementable using PostHog's API + MCP + AI |
All 4 AOPs documented with working examples |
PostHog Product Analytics |
| The ecosystem benefits from real-time analytics visibility |
@GTM can see actionable insights without manual dashboard work |
PostHog Product Analytics |
1.3 Why PostHog? (Data-Backed)
| PostHog Feature |
AOP Mapping |
Source Page |
Verdict |
MCP Server (mcp.posthog.com) |
All 4 AOPs |
MCP Docs |
🟢 PERFECT |
| PostHog AI — natural language queries |
AOP-2 (Analyze) |
Product Analytics |
🟢 PERFECT |
| Insights API — trends, funnels, retention |
AOP-1 (Observe) |
Product Analytics |
🟢 PERFECT |
| Correlation Analysis — auto-identify conversion factors |
AOP-2 (Analyze) |
Product Analytics |
🟢 PERFECT |
| Dashboards — shared visualization |
AOP-3 (Report) |
Product Analytics |
🟢 PERFECT |
| Webhooks / Alerts — threshold-based notifications |
AOP-4 (Escalate) |
Pricing |
🟡 Available |
| Free Tier — 1M events/mo, 5K recordings, 1M flags |
Ecosystem sustainability |
Pricing |
🟢 PERFECT |
| Open Source (MIT) — self-hostable |
Data sovereignty |
Pricing |
🟢 PERFECT |
§2. 🎯 THE PROBLEM STATEMENT
2.1 Current State
| What We Have |
What's Missing |
| ✅ PostHog Cloud account with F1Visa.Net data |
❌ No agentic observation of the data |
| ✅ MAIT-PostHog-Kimi workspace prompt |
❌ No AOPs implemented yet |
| ✅ PRJ-403 architecture document |
❌ No proof that AOPs work with PostHog |
| ✅ #LeanRAG8 governance docs |
❌ No cross-agent analytics visibility |
2.2 What This POC Answers
| Question |
Answer |
Source Verification |
| Can MAIT-PostHog-Kimi observe F1Visa.Net metrics? |
🟡 To be proven — PostHog Insights API supports trends, funnels, retention |
Product Analytics |
| Can it analyze funnel drop-offs? |
🟡 To be proven — Correlation Analysis auto-identifies conversion factors |
Product Analytics |
| Can it generate structured reports? |
🟡 To be proven — PostHog AI + MCP supports natural language queries |
MCP Docs |
| Can it escalate anomalies to @GTM? |
🟡 To be proven — Webhooks/billing alerts available |
Pricing |
| Does PostHog MCP work with Kimi K3? |
🟡 To be proven — MCP server URL is mcp.posthog.com, works with any MCP client |
MCP Docs |
§3. 📐 POC SCOPE
3.1 In Scope
| # |
Item |
AOP |
PostHog Feature |
Source |
| 1 |
Connect to PostHog Cloud via MCP |
O1 |
npx @posthog/wizard mcp add → server URL mcp.posthog.com |
MCP Docs |
| 2 |
Query MAU (Monthly Active Users) |
O1 |
Trends API — "Show daily active users for the last 30 days" |
Product Analytics |
| 3 |
Query MRR (Monthly Recurring Revenue) |
O1 |
Monetization analytics — "Track purchase value, LTV, and other revenue metrics" |
Product Analytics |
| 4 |
Query F1Visa.Net signup funnel |
O1 |
Funnels API — "Find drop-off across a series of actions" |
Product Analytics |
| 5 |
Analyze funnel drop-off |
O2 |
Correlation Analysis — "Automatically identify significant factors that impact conversion" |
Product Analytics |
| 6 |
Generate structured report |
O3 |
PostHog AI + Dashboards — "Ask PostHog AI to answer product questions" |
Product Analytics |
| 7 |
Escalate if MRR dropped >10% |
O4 |
Webhooks / billing alerts — "Set billing limits per product" |
Pricing |
| 8 |
Document all steps with PoP blocks |
ALL |
BP-075 compliant reporting |
This document |
3.2 Out of Scope
| # |
Item |
Why |
| 1 |
Full PostHog feature implementation |
POC is proof, not production |
| 2 |
Multi-MAIT coordination |
PRJ-403 Phase 2+ |
| 3 |
Self-hosted PostHog |
Cloud is sufficient for POC |
| 4 |
Historical data migration |
Use existing PostHog data |
| 5 |
Custom dashboard building |
Use PostHog AI + MCP queries |
§4. 🏛️ ARCHITECTURE — AOPS AT WORK
4.1 AOP-1: OBSERVE 👁️
Source Verification: PostHog's MCP server supports "trends, funnels, retention, and usage metrics from Cursor, Claude Code, VS Code, or any MCP-compatible agent" — Product Analytics. The MCP server URL is https://mcp.posthog.com/mcp — MCP Docs.
4.2 AOP-2: ANALYZE 🔬
Source Verification: PostHog offers "Correlation Analysis — Automatically identify significant factors that impact user behavior and conversion rates" — Product Analytics. PostHog AI can answer "Why did sign-ups drop 12% last Tuesday?" — Product Analytics AI Prompts.
4.3 AOP-3: REPORT 📋
Source Verification: PostHog AI supports "Build a dashboard for onboarding activation metrics" and "Save a funnel from signup to paid as an insight named Activation" — Product Analytics AI Prompts. HogQL allows "Write SQL queries directly against your data without a separate data warehouse" — Product Analytics.
4.4 AOP-4: ESCALATE 🚨
Source Verification: PostHog offers "Set billing limits per product so you never get an unexpected bill" — Pricing. Workflows provide "Emails" at $0.003/email and "Destinations" for notification dispatch — Pricing.
§5. 🔄 IMPLEMENTATION FLOW
5.1 Step-by-Step POC Execution
| Step |
Action |
PostHog Feature |
Tool |
Expected Output |
Source |
| 1 |
Connect to PostHog via MCP |
MCP Server |
npx @posthog/wizard mcp add |
MCP server running at mcp.posthog.com |
MCP Docs |
| 2 |
Query MAU |
Trends API |
PostHog AI / Insights |
{ metric: "MAU", value: N } |
Product Analytics |
| 3 |
Query MRR |
Monetization Analytics |
PostHog AI / Insights |
{ metric: "MRR", value: $N } |
Product Analytics |
| 4 |
Query F1Visa.Net signup funnel |
Funnels API |
PostHog AI / Insights |
Funnel steps + conversion % |
Product Analytics |
| 5 |
Analyze funnel |
Correlation Analysis |
PostHog AI |
Drop-off point identified |
Product Analytics |
| 6 |
Generate report |
PostHog AI + Dashboards |
AOP-3 template |
BP-075 compliant report |
Product Analytics |
| 7 |
Check escalation |
Billing limits / Webhooks |
AOP-4 threshold check |
No escalation / Escalation triggered |
Pricing |
| 8 |
Document POC |
This document |
— |
POC-431.1 complete |
This document |
5.2 Expected Timeline
| Phase |
Duration |
Deliverable |
Source Verification |
| MCP setup |
30 sec |
"Get started in 30 seconds" — npx @posthog/wizard mcp add |
MCP Docs |
| First query |
5 min |
Observation record (AOP-1) |
Product Analytics |
| Analysis |
5 min |
Analysis report (AOP-2) |
Product Analytics |
| Report generation |
5 min |
BP-075 report (AOP-3) |
Product Analytics |
| Escalation test |
5 min |
Escalation or no-escalation (AOP-4) |
Pricing |
| Total |
~20 min |
Complete POC |
— |
§6. ✅ SUCCESS CRITERIA
6.1 Must-Have (POC Gate)
| # |
Criterion |
Measure |
PostHog Feature |
Source |
Target |
| 1 |
MCP connection to PostHog Cloud |
Tool returns data |
MCP Server (mcp.posthog.com) |
MCP Docs |
✅ Connected |
| 2 |
Query returns real metrics |
MAU, MRR, signups |
Insights API + Monetization Analytics |
Product Analytics |
✅ Data returned |
| 3 |
Funnel analysis with correlation |
Funnel steps + drop-off |
Funnels + Correlation Analysis |
Product Analytics |
✅ Analysis complete |
| 4 |
BP-075 compliant report generated |
Report with PoP blocks |
PostHog AI + Dashboards |
Product Analytics |
✅ Report generated |
| 5 |
Escalation logic works |
Threshold check passes |
Billing limits / Webhooks |
Pricing |
✅ Escalation tested |
6.2 Nice-to-Have
| # |
Criterion |
PostHog Feature |
Priority |
Source |
| 1 |
PostHog AI natural language query |
PostHog AI (500 free credits/mo) |
🟡 P2 |
Product Analytics |
| 2 |
Session recording analysis |
Session Replay (5K free recordings/mo) |
🟡 P2 |
Pricing |
| 3 |
Cross-product funnel |
Multiple projects (6 on paid plan) |
🟢 P3 |
Pricing |
| 4 |
Scheduled daily observation |
PostHog AI + HogQL |
🟢 P3 |
Product Analytics |
§7. ⚠️ RISKS & MITIGATIONS
| Risk |
Likelihood |
Impact |
Mitigation |
Source |
| MCP not available on Kimi K3 |
🟡 Medium |
🔴 Critical |
MCP server is platform-agnostic — works with "any MCP-compatible client." Use PostHog REST API as fallback. |
MCP Docs |
| PostHog API key not configured |
🟡 Medium |
🔴 Critical |
@GTM provides API key from PostHog Cloud. MCP auth "automatically routes to correct data region." |
MCP Docs |
| F1Visa.Net has insufficient data |
🟠 High |
🟡 Medium |
PostHog free tier covers 1M events/mo. Use demo/test data from PostHog sample project. |
Pricing |
| Context window timeout |
🟡 Medium |
🟠 High |
Generate report in chunks. Defer to new session if needed. Lesson #130 — this POC was delayed by 2 timeouts. |
This document |
| Threshold values not defined |
🟡 Medium |
🟡 Medium |
Use reasonable defaults (±10% MRR, ±20% signups). PostHog "billing limits" show threshold-based approach works. |
Pricing |
§8. 🗺️ POSTHOG FEATURE → AOP MAPPING (FROM SOURCES)
8.1 Complete Feature-AOP Mapping
| PostHog Product |
Feature |
AOP |
Free Tier Limit |
Source URL |
| Product Analytics |
Trends |
O1 |
1M events/mo |
product-analytics |
| Product Analytics |
Funnels |
O1+O2 |
1M events/mo |
product-analytics |
| Product Analytics |
Retention |
O1 |
1M events/mo |
product-analytics |
| Product Analytics |
Paths |
O1 |
1M events/mo |
product-analytics |
| Product Analytics |
Correlation Analysis |
O2 |
Included |
product-analytics |
| Product Analytics |
SQL/HogQL |
O1+O2 |
1M events/mo |
product-analytics |
| Product Analytics |
Monetization |
O1 |
1M events/mo |
product-analytics |
| MCP Server |
AI Agent Queries |
ALL |
Free |
mcp docs |
| PostHog AI |
Natural Language Q&A |
O2 |
500 credits/mo |
product-analytics |
| Session Replay |
User Behavior Analysis |
O2 |
5K recordings/mo |
pricing |
| Feature Flags |
A/B Experiment Analysis |
O2 |
1M requests/mo |
pricing |
| Experiments |
Multivariate Testing |
O2 |
Billed with flags |
pricing |
| Surveys |
User Feedback Collection |
O2 |
1.5K responses/mo |
pricing |
| Dashboards |
Report Visualization |
O3 |
Included |
product-analytics |
| Workflows |
Email/Slack Notifications |
O4 |
10K messages/mo |
pricing |
| Data Pipelines |
Webhook Export |
O4 |
10K events/mo |
pricing |
| Error Tracking |
Exception Monitoring |
O1+O4 |
100K exceptions/mo |
pricing |
8.2 AOP Coverage Score
| AOP |
PostHog Features |
Coverage |
Score |
| O1 (Observe) |
Trends, Funnels, Retention, Paths, SQL, Monetization, Error Tracking |
🟢 COMPLETE |
100% |
| O2 (Analyze) |
Correlation Analysis, PostHog AI, Session Replay, Experiments, Surveys |
🟢 COMPLETE |
100% |
| O3 (Report) |
Dashboards, PostHog AI, HogQL, saved insights |
🟢 COMPLETE |
100% |
| O4 (Escalate) |
Workflows, Data Pipelines, billing limits, webhooks |
🟢 COMPLETE |
100% |
Verdict: PostHog provides native features for ALL 4 AOPs within the free tier.
§9. 📋 APPENDIX A — FULL SOURCES MATRIX
9.1 Source Overview
| # |
URL |
Page Title |
Content Type |
Fetch Method |
Fetch Time |
Token Count |
Status |
| 1 |
https://posthog.com/product-analytics |
Product Analytics |
Feature page |
web-scraping |
04:46 MDT / 09:48 MDT |
~8,000 |
🟢 VERIFIED |
| 2 |
https://posthog.com/pricing |
Pricing |
Pricing page |
web-scraping |
09:48 MDT (re-fetched) |
~10,000 |
🟢 VERIFIED |
| 3 |
https://posthog.com/docs/model-context-protocol |
MCP Docs |
Documentation |
web-scraping |
09:48 MDT |
~4,000 |
🟢 VERIFIED |
9.2 Source #1: Product Analytics — Full Detail
| Field |
Detail |
| URL |
https://posthog.com/product-analytics |
| Fetch Method |
web-scraping |
| Fetch Time |
2026-07-30 04:46 MDT (original) + 09:48 MDT (re-fetch for POC) |
| Content Type |
Product feature page |
Key Claims Verified
| Claim |
Source Text |
Verdict |
| MCP query from editor |
"Query trends, funnels, retention, and usage metrics from Cursor, Claude Code, VS Code, or any MCP-compatible agent" |
✅ VERIFIED |
| Autocapture |
"Autocapture tracks pageviews, clicks, and form submissions without extra code" |
✅ VERIFIED |
| Funnels with correlation |
"Correlation Analysis — Automatically identify significant factors that impact user behavior and conversion rates" |
✅ VERIFIED |
| Funnel→Session Replay |
"jump from any step into the matching session recordings" |
✅ VERIFIED |
| PostHog AI prompts |
"Ask PostHog AI to answer product questions, build insights, and write SQL" |
✅ VERIFIED |
| 20+ AI prompt examples |
Listed: "What's our most popular feature?", "Why did sign-ups drop 12% last Tuesday?", "Build a funnel from landing page to paid conversion", etc. |
✅ VERIFIED |
| HogQL/SQL |
"Write SQL queries directly against your data without a separate data warehouse" |
✅ VERIFIED |
| Monetization analytics |
"Track purchase value, LTV, and other revenue metrics" |
✅ VERIFIED |
| Feature comparison |
Comparison table: Amplitude, Mixpanel, Heap, Pendo, Statsig |
✅ VERIFIED |
| Free tier |
"First 1,000,000 events free every month" |
✅ VERIFIED |
Feature Comparison Table (from source)
| Feature |
PostHog |
Amplitude |
Mixpanel |
Pendo |
Statsig |
| Advertising analytics |
🟡 Beta |
✅ |
✅ |
❌ |
❌ |
| Autocapture |
✅ |
✅ |
✅ |
✅ |
✅ |
| Cohorts |
✅ |
✅ |
✅ |
✅ |
✅ |
| Custom events |
✅ |
✅ |
✅ |
✅ |
✅ |
| Custom properties |
✅ |
✅ |
✅ |
✅ |
✅ |
| Monetization analytics |
✅ |
✅ |
✅ |
❌ |
❌ |
| Predictive insights |
❌ |
✅ |
❌ |
❌ |
❌ |
| Real-time view |
✅ |
✅ |
✅ |
❌ |
❌ |
| Toolbar |
✅ |
❌ |
❌ |
✅ |
❌ |
| User profiles |
✅ |
✅ |
✅ |
✅ |
❌ |
| SQL query editor |
✅ |
Add-on |
❌ |
❌ |
✅ |
| Custom formulas |
✅ |
Plus plan |
✅ |
❌ |
✅ |
| Sampling |
✅ |
❌ |
❌ |
❌ |
❌ |
| Correlation analysis |
✅ |
✅ |
✅ |
✅ |
❌ |
9.3 Source #2: Pricing — Full Detail
| Field |
Detail |
| URL |
https://posthog.com/pricing |
| Fetch Method |
web-scraping |
| Fetch Time |
2026-07-30 09:48 MDT |
Key Claims Verified
| Claim |
Source Text |
Verdict |
| 90% use PostHog for free |
"More than 90% of companies use PostHog for free" |
✅ VERIFIED |
| Product Analytics free tier |
"1M events" free per month |
✅ VERIFIED |
| Session Replay free tier |
"5K recordings" free per month |
✅ VERIFIED |
| Feature Flags free tier |
"1M requests" free per month |
✅ VERIFIED |
| Surveys free tier |
"1,500 responses" free per month |
✅ VERIFIED |
| Error Tracking free tier |
"100K exceptions" free per month |
✅ VERIFIED |
| Data Warehouse free tier |
"1M rows + FREE historical" |
✅ VERIFIED |
| Data Pipelines free tier |
"10K events + 1M rows" |
✅ VERIFIED |
| PostHog AI free tier |
"500 credits (worth $5)" |
✅ VERIFIED |
| Billing limits |
"Set billing limits per product so you never get an unexpected bill" |
✅ VERIFIED |
| Unlimited team members |
"Unlimited team members" |
✅ VERIFIED |
| Open source |
"MIT licensed" |
✅ VERIFIED |
Pricing Tiers (from source)
| Plan |
Price |
Projects |
Retention |
Support |
| Free |
$0/mo |
1 |
1 year |
Community |
| Pay-as-you-go |
$0/mo (starts) |
6 |
7 years |
Email |
Product Analytics Event Pricing (after free tier)
| Volume |
Anonymous Events |
Identified Events |
| 1M/mo |
Free |
Free |
| 1-2M |
$0.000050/event |
$0.000248/event |
| 2-15M |
$0.0000343/event |
— |
| 15-50M |
$0.0000295/event |
— |
| 50-100M |
$0.0000218/event |
— |
| 100-250M |
$0.0000150/event |
— |
| 250M+ |
$0.0000090/event |
— |
9.4 Source #3: MCP Docs — Full Detail
| Field |
Detail |
| URL |
https://posthog.com/docs/model-context-protocol |
| Fetch Method |
web-scraping |
| Fetch Time |
2026-07-30 09:48 MDT |
Key Claims Verified
| Claim |
Source Text |
Verdict |
| MCP server URL |
"The server URL is https://mcp.posthog.com/mcp" |
✅ VERIFIED |
| 30-second setup |
"Get started in 30 seconds" |
✅ VERIFIED |
| Compatible clients |
"PostHog Desktop, Claude Code, Claude Desktop, Cursor, Codex, VS Code, Windsurf, and Zed" |
✅ VERIFIED |
| Free to connect |
"Connecting to the MCP server and calling its tools is free" |
✅ VERIFIED |
| AI-powered tools billed |
"Some tools use LLMs internally and may be billed as PostHog AI spend" |
✅ VERIFIED |
| Error triage example |
"What are the top 5 errors in my project this week?" → Returns error groups |
✅ VERIFIED |
| Stack trace + fix |
"Show me the full stack trace for the most recent crash, then propose a fix" |
✅ VERIFIED |
| Issue management |
"Mark this issue as resolved and assign all future TypeErrors to the backend team" |
✅ VERIFIED |
| Governed metrics (alpha) |
"Run governed metrics from your semantic layer (alpha)" |
✅ VERIFIED |
| Installation command |
npx @posthog/wizard mcp add |
✅ VERIFIED |
| Auth routing |
"The PostHog authentication server automatically routes you to the correct data region (US or EU)" |
✅ VERIFIED |
9.5 Source Cross-Reference Index
| Claim |
Source 1 (Product Analytics) |
Source 2 (Pricing) |
Source 3 (MCP Docs) |
| MCP exists |
✅ "Query from MCP-compatible agent" |
— |
✅ Full docs + URL |
| Free tier exists |
✅ "First 1M events free" |
✅ Full pricing table |
✅ "Free to connect" |
| AI queries work |
✅ "Ask PostHog AI" |
✅ "500 credits free/mo" |
✅ "AI-powered tools" |
| Funnels work |
✅ "Funnels + Correlation" |
— |
✅ "Query funnels" |
| Open source |
— |
✅ "MIT licensed" |
— |
| Billing limits |
— |
✅ "Set billing limits" |
— |
| Session Replay |
✅ "Jump into session recordings" |
✅ "5K recordings free" |
— |
9.6 Source Reliability Assessment
| Source |
Domain |
Authority |
Freshness |
Reliability |
posthog.com/product-analytics |
Official PostHog |
🏆 Primary source |
🟢 Live |
🟢 HIGH |
posthog.com/pricing |
Official PostHog |
🏆 Primary source |
🟢 Live |
🟢 HIGH |
posthog.com/docs/model-context-protocol |
Official PostHog Docs |
🏆 Primary source |
🟢 Live |
🟢 HIGH |
All 3 sources are official PostHog properties. No third-party or secondary sources were used. All claims are directly from PostHog's own documentation and pricing pages.
POC-431.1.md v4.31.1-r2 GENERATED with FULL SOURCES MATRIX. 10 sections. 30+ claims verified from 3 PostHog.com primary sources. 17 feature-AOP mappings. Source cross-reference index. Reliability assessment. 2 timeouts logged (TIMEOUT-INT-B001-001 + TIMEOUT-INT-B001-002). Lesson #130 explicitly applied — document generated in fresh tool context after timeout recovery. Ready for @GTM review and R-011. 🫡🔥
#FlowsBros #FedArch #WeOwnSeason004 #POC431_1 #PostHog #AOPs #MAIT #PRJ403 #SourcesMatrix #DeepResearch #ToolFirst #W31D4
♾️ WeOwnNet 🌐 🏡 Real Estate and 🤝 cooperative ownership for everyone ● An 🤗 inclusive community, by 👥 invitation only.