← Back to Pull requests

TRT-2886: Add read-only daily data integrity verification #3966

Closed
unknown closed this pull request without merging on Sep 01, 2026 14:02 UTC
View on GitHub
unknown unknown commented on Aug 28, 2026 17:03 UTC
Author

Summary

  • Add a read-only sippy verify command for daily Sippy data integrity checks.

  • Support the UTC day-before-yesterday default, repeatable check selectors, and optional release narrowing.

  • Reuse the loader release-attribution behavior, including pseudo-release handling.
  • Checks

  • Compare BigQuery and PostgreSQL job-run IDs over the same half-open UTC Prow-start interval.

  • Recompute and compare daily totals using the existing loader semantics.

  • Validate cumulative summary prefixes, including carry-forward behavior.

  • Emit deterministic structured summaries and per-discrepancy records; no repair or mutation path is included.
  • Validation

  • gofmt, git diff --check, and go vet ./...

  • go test ./pkg/... and make test

  • make lint and make verify

  • make e2e completed with documented credential-dependent skips

  • make integration could not execute its test bodies in the development environment because container readiness logs were unavailable.
  • Production validation evidence

    Verification was run against production data for 2026-08-26; bq-completeness, cumulative-summaries, and daily-totals all passed with zero discrepancies.

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    New Features
    Added the sippy verify command for read-only daily data integrity checks.
    Supports date, release, and selectable checks for BigQuery completeness, daily totals, and cumulative summaries.
    Reports discrepancies and operational errors with appropriate command status.
    Documentation
    Added usage guidance, available checks, credentials, output behavior, and read-only guarantees.
    Bug Fixes
    Improved release attribution consistency across configured, synthetic, annotated, and regex-matched jobs.

    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 238 lines (+178 / -60) across 2 files Reviewer: neisw Review duration: 5579m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 238 lines diff across 2 files
    0.37
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.328
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #3966"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.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: 37.2% (MEDIUM) · Higher = larger blast radius
    37.2%
    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: 60.5% · Lower = rushed or shallow review
    60.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: 14.7% · Safe to merge
    14.7%