Heterogeneous temporal sampling fixes #5691
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.33) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.33 · 148 lines diff across 1 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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.299
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #5691"
general
weight: 0.35
alexbarghi-nv
Temporal sampling for heterogeneous graphs needs to support the idea that some types won't have edge times.
This PR changes the logic for times. Since a time is required for every edge in our data structure, we can use a sentinel value to indicate that no time is specified. We chose the value std::numeric_limits<edge_time_t>::lowest() as this sentinel value.
If an edge time is set to that value then the software will now treat that edge as if it passes any time filter. We also added logic for special cases:
1. If you're doing temporal sampling where the times need to be in order, each frontier vertex has a time that reflects the boundary for comparing the edge times. If an edge is selected then the next frontier gets the time of that edge. If the selected edge has no time (the time is lowest()) then the time for the vertex inserted in the next frontier is the time from the previous frontier (we don't update the time). This allows time ordering to be preserved
2. For last-n sampling, we need to treat edges that have a type with no time differently, doing uniform random selection among edges for that type, and last-n only for the edge types that have times.