{"record":{"id":"a897acdd605c4d3a","repo":"AprilNEA/OpenLogi","slug":"no-sanitized-channel-candidate-reproduced-the-captured","errorCode":null,"errorMessage":"no sanitized channel candidate reproduced the captured semantic observation and completed strict replay; no fixture was written","messagePattern":"no sanitized channel candidate reproduced the captured semantic observation and completed strict replay; no fixture was written","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/openlogi-cli/src/cmd/fixture/record_case/replay.rs","lineNumber":58,"sourceCode":"    let Ok(route) = derive_replay_route(&target.route, &candidate.audit) else {\n        return false;\n    };\n    let topology = replay_topology(target, &route, &candidate.cassette);\n    let Ok(backend) = ReplayBackend::new(topology, vec![candidate.cassette.clone()]) else {\n        return false;\n    };\n    let replayed = operation.observe(&backend, &route).await;\n    replayed.ensure_replayable().is_ok()\n        && replayed == *captured\n        && backend.require_complete().is_ok()\n}\n\nfn require_single_passing_candidate(\n    mut candidates: Vec<SanitizedCandidate>,\n) -> Result<SanitizedCandidate> {\n    match candidates.len() {\n        1 => Ok(candidates.remove(0)),\n        0 => bail!(\n            \"no sanitized channel candidate reproduced the captured semantic observation and \\\n             completed strict replay; no fixture was written\"\n        ),\n        count => bail!(\n            \"{count} sanitized channel candidates reproduced the capture; target channel \\\n             resolution is ambiguous, so no fixture was written\"\n        ),\n    }\n}\n\nfn replay_topology(\n    target: &TargetCandidate,\n    route: &DeviceRoute,\n    cassette: &HidCassette,\n) -> ReplayTopology {\n    let receiver_slots = match route {\n        DeviceRoute::Bolt { slot, .. } | DeviceRoute::Unifying { slot, .. } => {\n            vec![ReceiverSlot {","sourceCodeStart":40,"sourceCodeEnd":76,"githubUrl":"https://github.com/AprilNEA/OpenLogi/blob/e846e6f4b4405e33bd6a9aaf949a482ce34cb6d8/crates/openlogi-cli/src/cmd/fixture/record_case/replay.rs#L40-L76","documentation":"`require_single_passing_candidate` demands exactly one sanitized channel candidate that both reproduces the captured semantic observation and completes a strict replay. With zero such candidates the capture cannot be turned into a deterministic fixture, so nothing is written.","triggerScenarios":"Running `openlogi fixture record-case` when no channel candidate passes replay validation — every candidate failed semantic-observation matching or strict replay (device state differed, timing, unsupported channel).","commonSituations":"Device state changed between capture and replay attempts (DPI moved, profile switched); the target device doesn't support the recorded feature on any channel; a flaky wireless link causing replay mismatches.","solutions":["Re-run the record command ensuring the device stays in a stable state throughout capture and replay","Verify the device actually supports the recorded feature and channel; try a different --channel value","Use a wired/direct connection to eliminate radio-induced replay mismatches","Check that the semantic observation (LEDs, wheel mode, backlight) matches what the device actually reports"],"exampleFix":"// before\nopenlogi fixture record-case --channel long-hidpp   # no candidate passes\n// after: pick a supported channel and stable state\nopenlogi fixture record-case --channel short-hidpp   # device supports short HID++","handlingStrategy":"retry","validationCode":"// verify the device supports the feature and is in a stable state before recording\nlet supported = probe_feature(device, feature_id)?;\nif !supported { return Err(\"device does not support the recorded feature\"); }","typeGuard":null,"tryCatchPattern":"match err.to_string() {\n    s if s.contains(\"no sanitized channel candidate\") => {\n        eprintln!(\"no channel replayed cleanly; stabilize device state or use another channel\");\n    }\n    _ => propagate(err),\n}","preventionTips":["Keep device state constant during capture and replay","Prefer wired/direct links to reduce replay flakiness","Confirm channel support for the target device before recording"],"tags":["fixture","replay","validation","hidpp"],"backgroundTag":"empty-result-set","analyzedSha":"e846e6f4b4405e33bd6a9aaf949a482ce34cb6d8","analyzedAt":"2026-09-13T03:07:16.451Z","contentChangedAt":"2026-09-13T03:07:16.451Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}