feat: add vmstat builtin for host memory/CPU/IO pressure investigation #557
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.35) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 166 lines diff across 2 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.306
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #557"
general
weight: 0.35
Hitsuji-M
Summary
vmstatbuiltin for host memory/CPU/IO pressure investigation, mirroring the existingdf/ssarchitecture./proc/{stat,meminfo,vmstat,loadavg,uptime}directly (sandbox-exempt, same pattern asss/ip route/df).sysctl(3)(hw.memsize,vm.swapusage,vm.loadavg) using the existing darwin toolset, not Machhost_statistics64; unavailable columns render as0/-rather than being fabricated.vmstat DELAY [COUNT]sampling, and-s/--statsfull counter summary, plus-a,-w,-S k|K|m|M,-h/--help.analysis/symbols_builtins.goandanalysis/symbols_internal.goallowlists,SHELL_FEATURES.md,README.md, andAGENTS.mdsecurity design decisions.Test plan
make fmt/gofmt -l .cleango test ./analysis/... ./builtins/... ./tests/.../procfixtures (builtins/tests/vmstat/vmstat_linux_test.go, run via Dockergolang:1.25)tests/scenarios/cmd/vmstat/(allskip_assert_against_bash: true— vmstat isn't indebian:bookworm-slimand output is host-state-dependent)-a,-w,-s,--help