← Back to Pull requests

Add a license checker for .go files #65

Merged
codebot-robot merged 11 files (272 lines) on May 05, 2026 22:05 UTC
View on GitHub
codebot-robot codebot-robot commented on May 05, 2026 21:15 UTC
Author

This PR adds a GitHub check (via a Go test) that ensures all .go files have exactly the correct Apache 2.0 license header. It also updates all existing .go files to comply with this requirement.

Fixes #64

Diff: 272 lines (+171 / -101) across 11 files Reviewer: mtaufen Review duration: 49m
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.51) × (1 − Review Confidence (0.80)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.51 · 272 lines diff across 11 files
0.51
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.73 · 1 substantive comment(s)
0.73
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
80%
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.336
Real PR Conversation Timeline
3 items
mtaufen mtaufen commented on code on May 05, 2026 21:27 UTC
Code Review
test/license_test.go:1
@@ -0,0 +1,71 @@
+// Copyright 2026 Google LLC

instead of tool/, put this in a top-level test/ directory

mtaufen mtaufen approved these changes on May 05, 2026 21:35 UTC
Approved Reviewer

Approved these changes.

Reviewers
Assignees
codebot-robot codebot-robot
Labels
risk: low confidence: 80.4% 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: 51.2% (MEDIUM) · Higher = larger blast radius
51.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: 80.4% · Lower = rushed or shallow review
80.4%
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: 10% · Safe to merge
10%