[ENH] Mine issues and cross-repository references into SQLite #6
All Vouch review confidence checks passed
Residual risk 0.24 = Change Risk (0.39) × (1 − Review Confidence (0.40)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 257 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 34% · 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.332
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #6"
general
weight: 0.35
aashoday
Summary
Adds the data collection code for CrossTrace.
GitHubClient.graphql()sends GraphQL requests and caches the raw answers on disk.mine.pyreads the newest issues of a repository, 50 per request, together with their cross-reference events.db.pystores issues and cross-repository links in SQLite.scripts/mine.pymines all projects inprojects.toml. It reads the newest 1,000 issues of each project.scripts/count_links.pycounts the links between projects.Only links between different repositories are saved. Same-repository links are dropped.
Related issue
Fixes #4, #5 used for testing the cross reference
How I tested it
uv run pytestpasses (8 tests, including a mining test with a fake GraphQL answer)uv run ruff check .passesResult of
scripts/count_links.py:I checked one saved pair by hand on GitHub.
Notes for the reviewer
.env.examplenow says so. This cause is likely, but I did not find a statement from GitHub that confirms it.