← Back to Pull requests

[PCX-115] Enable Session Replay and heatmaps via Mintlify's Mixpanel integration #466

Open
jakewski opened this pull request with 7 lines diff across 1 files
View on GitHub
jakewski jakewski commented on Dec 01, 2026 14:49 UTC
Author

Why


Docs Session Replay was lost in the Mintlify migration. Mintlify now bundles mixpanel-browser 2.86 and passes integrations.mixpanel.options straight into mixpanel.init(), so we can turn replay on in the existing instance instead of running a second one (replaces #447).

What


  • docs.json: add options to the Mixpanel integration: 100% replay, heatmaps, page text unmasked (inputs stay masked by default).
  • Test plan


  • On the preview, confirm /record requests go to project 3 alongside the existing docs events

  • Confirm replays and heatmaps show up in P3

  • Check consent behavior from an EU location: replay follows whatever Mintlify's instance already does, with no separate TrustArc gate like #447 had
  • Deployment plan


  • Mintlify deploys on merge to main.

  • Rollback: revert the PR.
  • Diff: 7 lines (+6 / -1) across 1 files Reviewer: myronkaifung Review duration: 2529m
    All Vouch review confidence checks passed
    Residual risk 0.08 = Change Risk (0.15) × (1 − Review Confidence (0.48)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.15 · 7 lines diff across 1 files
    0.15
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.00 · 1 substantive comment(s)
    0.00
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    48%
    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
    Shallow Review Depth shallow_review_depth
    0.350
    Diff Size diff_size
    0.124
    Real PR Conversation Timeline
    1 comments
    "Review active on #466"
    general weight: 0.35
    Reviewers
    Assignees
    jakewski jakewski
    Labels
    risk: low confidence: 48.5% 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: 15.4% (LOW) · Higher = larger blast radius
    15.4%
    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: 48.5% · Lower = rushed or shallow review
    48.5%
    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: 8.0% · Safe to merge
    8.0%
    Repository