Make the CLI summary data use a human readable format instead of raw bytes #2696
All Vouch review confidence checks passed
Residual risk 0.13 = Change Risk (0.32) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 135 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.294
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #2696"
general
weight: 0.35
scottchiefbaker
This PR changes the CLI output summary from bytes to a more human readable string format. This should address issue #2694.
Before:
After:
This PR adds a
humanSize()function toutil.c. I wasn't sure where best to put it, but that seemed like a good place. Then it modifies thesprintf()calls for outputting the summary after a file is compressed. It also modifies thesprintf()benchmark code.Things I checked before landing this code:
1. Code is space indented not tabs
2. Functions and variables are camelCase
3. Variable declarations are grouped with other variables
3. Code should be C89 compatible
4. Make test runs without errors on x86_64
5. Code compiles and outputs the correct format for summary, benchmark, and multiple files
I will probably need some help modifying this to work on ARM or other platforms.