fix(sdr): correct FRU locator decoding and expose device types #64
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 281 lines diff across 3 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.338
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #64"
general
weight: 0.35
nuclearcat
FRU inventory discovery in
ipmicfgexposed an inaccessibleFruDeviceenum: callers can readFruRecordKey::fru_devicebut cannot name its type or match its variants. Inspecting the decoder also found three parsing bugs in SDR Type 11h records.This fixes FRU locator decoding according to IPMI 2.0, Section 43.8, Table 43-7:
0x83was decoded as physical I2C address0x41.0xB0becomes channel0x0B.ParseError::NotEnoughData.Five integration tests exercise the public API through
Record::parse, including logical IDs and physical addresses on both sides of bit 7, decoded fields, every truncated fixed-field length, and a valid empty device ID string. Four tests failed against the old parser and pass with these changes.The PR contains one amended fix commit on upstream
e7e5d0f, with no merge commits. The parser comment describes the flag being extracted; the explanation of the previous incorrect behavior is in the commit message.Validation:
cargo test --locked --workspace --all-features— 45 tests passed.cargo test --locked --offline -p ipmi-rs-core --no-default-featuresand thetime/logfeature combinations — passed.cargo clippy --locked --offline --workspace --all-features -- -D warnings— passed.cargo clippy --locked --offline -p ipmi-rs-core --all-targets --all-features -- -D warnings— passed.cargo fmt --all -- --check— passed.An additional workspace-wide Clippy run with
--all-targetsreports existing warnings in unchangedipmi-rsexamples andipmi-rs/src/rmcp/checksum.rs.