← Back to Pull requests

feat: add a telemetry mode that writes only the artifacts manifest #554

Open
unknown opened this pull request with 144 lines diff across 1 files
View on GitHub
unknown unknown commented on Nov 10, 2026 08:31 UTC
Author

Stack


  • #553

  • #554 ← this PR

  • #555

  • #556
  • Part 2 of 4 of the OpenTelemetry export, replacing #485. Stacked on part 1.

    What


    A new mode: 'telemetry' for the WDIO service, Selenium and Nightwatch. It starts no backend and opens no window. It takes no per-action capture, screencast or trace zip. The test lifecycle still runs, and only the artifacts manifest is written at session end. Live and trace modes are unchanged.

    Why isn't this in core?


    The decision of which modes observe the page is one shared helper, observesPage in packages/shared/src/mode-traits.ts. The per-adapter changes only apply it where each framework starts and stops its own capture: hook registration, backend startup and the screencast. That is framework-specific glue, which the repo's conventions leave in the adapters.

    Verification


    pnpm build, pnpm test (4056 passed, 4 skipped), pnpm lint (0 errors) and pnpm docs:capabilities --check pass on this branch. In one full run, a backend test (trace-run.test.ts) failed with EADDRINUSE 127.0.0.1:3000 and passed when rerun alone.

    🤖 Generated with Claude Code

    Diff: 144 lines (+108 / -36) across 1 files Reviewer: plum117 Review duration: 20532m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.33) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.33 · 144 lines diff across 1 files
    0.33
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    46%
    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.344
    Diff Size diff_size
    0.298
    Real PR Conversation Timeline
    1 comments
    "Review active on #554"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 46.7% 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: 32.8% (LOW) · Higher = larger blast radius
    32.8%
    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: 46.7% · Lower = rushed or shallow review
    46.7%
    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: 17.5% · Safe to merge
    17.5%