← Back to Pull requests

fix: Change hash algorithm to SHA1 in variants.md #2984

Merged
nodtem66 merged 1 files (4 lines) on Dec 02, 2026 09:22 UTC
View on GitHub
nodtem66 nodtem66 commented on Dec 02, 2026 08:57 UTC
Author

The hashing algorithm in docs/varients.md is not correct:

This JSON string is then hashed with the ----> MD5 <---- hash algorithm, and produces the hash. For certain packages (such as Python packages) special rules exists, and the py<Major.Minor> version is prepended to the hash, so that the final hash would look something like py38h123123.

https://rattler-build.prefix.dev/latest/variants/#package-hash-from-variant
https://github.com/prefix-dev/rattler-build/blob/52ec3988ee57213b039091f98d4d503148a9e417/crates/rattler_build_recipe/src/stage1/hash.rs#L159

This PR updates hashing algorithm from MD5 to SHA1 and adjusted example output.

Diff: 4 lines (+2 / -2) across 1 files Reviewer: wolfv Review duration: 25m
All Vouch review confidence checks passed
Residual risk 0.07 = Change Risk (0.13) × (1 − Review Confidence (0.47)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.13 · 4 lines diff across 1 files
0.13
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.096
Real PR Conversation Timeline
1 comments
"Review active on #2984"
general weight: 0.35
Reviewers
Assignees
nodtem66 nodtem66
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: 12.6% (LOW) · Higher = larger blast radius
12.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: 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: 6.7% · Safe to merge
6.7%