← Back to Pull requests

Document Data Rules and Drop bot traffic #471

Open
claude[bot] opened this pull request with 135 lines diff across 10 files
View on GitHub
claude[bot] claude[bot] commented on Dec 03, 2026 08:45 UTC
Author

<!-- claude-slack-attribution -->
_Requested by Kurby Chua · Slack thread_

Before: Data Standards and Event Approval docs pointed to their old locations in Lexicon, there was no page for Data Rules, and the docs didn't cover Bot management or the Drop bot traffic setting. Event Approval listed a 3,000 hidden-event limit, Data Standards described "Rich media uploads" and promised automated actions "soon," and $mp_automation_provider wasn't documented.

After: A new Data Rules page explains the three rulesets (Data standards, Event approval, Bot management) and fully documents Drop bot traffic: it drops events with Actor Type bot, keeps agent, applies to new data only, can't be recovered, is separate from Drop Filters, and is Owners-only. Data Standards and Event Approval point to the Data Rules cards and cover the new options (naming formats including custom regex, Require image, the health banner, and auto-approve for events that meet data standards). Related pages link to Drop bot traffic, and $mp_automation_provider is in the default properties table.

How: per product review, added docs/data-governance/data-rules.mdx (plus nav in docs.json and a card on docs/data-governance.mdx), and updated data-standards.mdx, event-approval.mdx, data-clean-up.mdx (Drop Filters note), lexicon.mdx (one-line pointer in Blocking Data), tracking-best-practices/bot-traffic.mdx, guides/.../measure-agent-users.mdx, and data-structure/property-reference/default-properties.mdx. The local docs CI checks (frontmatter, links, redirects, code samples) pass, and all changed pages compile as MDX.

Please confirm

  • The Event Approval hidden-event limit is 10,000 (the previous docs said 3,000).

  • The $mp_automation_provider description ("the provider behind the detected automation, such as the organization that operates the bot or agent") and its display name, Automation Provider.

  • Only project Owners (not Admins) can turn on Drop bot traffic.

  • Plan availability for Bot management. The new page's plan note covers only Data Standards and Event Approval and makes no claim about Bot management.
  • 🤖 Generated with Claude Code

    Diff: 135 lines (+124 / -11) across 10 files Reviewer: greptile-apps[bot] Review duration: 13m
    All Vouch review confidence checks passed
    Residual risk 0.11 = Change Risk (0.51) × (1 − Review Confidence (0.77)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.51 · 135 lines diff across 10 files
    0.51
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.56 · 2 substantive comment(s)
    0.56
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 50%
    77%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.294
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    2 comments
    docs/data-governance/data-rules.mdx
    "<a href=""><img alt="P2" src="https://greptile-static-assets.s3.amazonaws.com/badges/p2.svg?v=9" align="top"></a> **Server-side setup misses a prerequisite** The new bot-drop instructions don't explain that server-side tracking must forward the visitor's user agent. Without it, Mixpanel classifies the server's HTTP library instead, so teams may enable this setting and still ingest bot traffic. Add a short warning to forward `$mp_raw_user_agent` or `$mp_user_agent`, with a direct link to the server-side instructions."
    clarifying weight: 0.45
    docs/data-governance/data-rules.mdx
    "Added a Note in the Bot management section (cc374fb): server-side tracking needs to forward the end user's user agent as `$mp_raw_user_agent` or `$mp_user_agent`, otherwise classification uses the server's HTTP library and Drop bot traffic may not detect or drop bot events. It links to Tracking Browser, Device, and OS in the server-side best practices. --- _Generated by [Claude Code](https://claude.ai/code)_"
    clarifying weight: 0.45
    Assignees
    claude[bot] claude[bot]
    Labels
    risk: low confidence: 77.3% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 50.6% (MEDIUM) · Higher = larger blast radius
    50.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 77.3% · Lower = rushed or shallow review
    77.3%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 11.5% · Safe to merge
    11.5%
    Repository