Refactored Repowatch Controller #208
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.46) × (1 − Review Confidence (0.91)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.46 · 838 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 5 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
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.400
Real PR Conversation Timeline
6 items
minor nit: this logic is in countSandboxes and createOrUpdateReviewSandboxes. Might make sense to have a method like:
isPRExplicit(prNumber int, explicitPRs []*github.PullRequest) bool
Do we still need a test for SortPRs? I don't see such a test in the refactored code
Good catch. I've reintroduced the TestSortPRs, and refactored the sortPRs function into the helpers file. Please have a look and let me know what you think.
Good Call. I've refactored the common isPRExplicit function out and added unit tests for it. Please let me know what you think.
@seans3 - Please rebase to get the e2e tests
aaron-prindle
seans3
Refactored long reconcile function loops in the
repowatch_controllerto make it more readabile, testable, and maintainable.Moved some refactored functions into new file
repowatch_helpers.goAdded unit tests to
repowatch_helpers_test.go(coverage:67.0%).TODO(Sean): Complete the refactor of the
issueSandboxreconcile loop.