← Back to Pull requests

Fail if no path provided, otherwise you get really weird results if in a large md directory #18

Closed
jayunit100 closed this pull request without merging on Mar 24, 2025 15:21 UTC
View on GitHub
jayunit100 jayunit100 commented on Mar 17, 2025 22:52 UTC
Author

Feel free to close this, im using this in my local branch though just to keep myself from messing things up!

This fixes #19

After this fix, you get:

jvyas@dusmxl4124kll:~/SOURCE/sammy-5150/3dx/25x/jays-way$ mdrip print
Error: path is required
 

Diff: 17 lines (+16 / -1) across 3 files Reviewer: jayunit100 Review duration: 9628m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.37) × (1 − Review Confidence (0.83)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.37 · 17 lines diff across 3 files
0.37
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.75 · 2 substantive comment(s)
0.75
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
83%
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.173
Self Review self_review
0.140
Real PR Conversation Timeline
3 items
jayunit100 jayunit100 commented on code on Mar 17, 2025 23:22 UTC
Code Review
internal/loader/fsloader.go:1
@@ -38,6 +38,7 @@ const (
 // LoadTrees loads several paths, wrapping them all in virtual folder.

i just realized this seems to have some secret default behaviour. I guess it's ok to keep that for the pros - but we should warn since we're disablin it at the cmd line level

monopole monopole commented on Mar 24, 2025 15:21 UTC
Contributor

oops, i saw the issue before i saw this PR.

I agree that it might be surprising, so i made the change to fix #19 and pushed a new release.

Fwiw, commands like find, dmesg, env can produce a bunch of output with no args.

I didn't edit fsloader because (IMO) mdrip test and the new mdrip list command should work without an argument.

Reviewers
Assignees
jayunit100 jayunit100
Labels
risk: low confidence: 83.5% 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: 37.2% (MEDIUM) · Higher = larger blast radius
37.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: 83.5% · Lower = rushed or shallow review
83.5%
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.1% · Safe to merge
6.1%
Repository