simplify code to same shell style as the guest crash extractor #36
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.35) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.35 · 167 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.307
Real PR Conversation Timeline
1 comments
"Review active on #36"
general
weight: 0.35
amp-rh
Summary
Simplify
collect-host-signals.shto the same shell style as the guest crash extractor :scrDir/scrName,umask 077, four-space case arms, portable[where equivalent, concise usage, nodie/warn/havehelpers.Drop
BASH_XTRACEFDsuppression so xtrace stays enabled for CI/post-mortem; keep the stdout JSON contract. Callers such aswatch-crash.shalready redirect stderr to the pipeline log.Resolve
host-signals.jsonvia${scrDir}/../../data/…(still overridable withBSOD_DET__HOST_SIGNALS__FILE). Usegrep -oPm1for KVM thread / trap-address extraction instead ofgrep | head.Preserve offline
--log-file/--domain-xml, CLI validation exit2, and assessment semantics.This incremental PR targets
feat/add-bsod-detector.Validation
bats test/test-host-signals.bats: 8/8 pass (split-lock detect/classify/extract, clean log, bugcheck link, JSON shape, no false enlightenment claim, missing log → exit 2).bash -non the rewritten script passes.No change to watch-crash / preflight call sites beyond the existing stderr redirect / JSON file capture path.
Limitations
No live node/
virsh/ journalctl run was performed; coverage remains offline fixtures.--dmesg/journalctl/virsh dumpxmlpaths are unchanged in logic but not re-exercised here.