cmd/flow: validate nodes-count before generation #292
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.38) × (1 − Review Confidence (0.90)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.38 · 80 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.96 · 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.263
Real PR Conversation Timeline
4 items
Approved
Thanks!
@immanuwell can you please fix or add an ignore tag to the golangci issue please
Error: /home/runner/work/fake/fake/cmd/internal/cmd/flow/flow_test.go:29:22: string `10.0.0.0/8` has 4 occurrences, make it a constant (goconst)
opts.sourceCIDR = "10.0.0.0/8"
^
1 issues:
* goconst: 1
Changes Requested
goconst
kaworu
immanuwell
fake flowblows up on--nodes-count 0with a panic.This validates
--nodes-countbefore generation, and adds a test. Small fix, but it saves a kinda dumb crash.Repro:
1.
cd cmd2.
go run . flow --nodes-count 0Before:
panic: invalid argument to IntNAfter:
--nodes-count must be at least 1