feat(cog-pose): --adapter CLI flag for per-room calibration

Completes the end-to-end product path: cog-pose-estimation run --config
<cfg> --adapter <room.safetensors> loads the shared base + a per-room LoRA
adapter for calibrated inference. Adds InferenceEngine::with_adapter()
(default weights + adapter) and logs when a calibration adapter is active.
6/6 tests pass.

Co-Authored-By: claude-flow <ruv@ruv.net>
This commit is contained in:
ruv
2026-05-31 02:28:16 -04:00
parent 3760db6c9a
commit 83299b4d04
2 changed files with 20 additions and 3 deletions
@@ -191,6 +191,12 @@ impl InferenceEngine {
Self::with_weights(default_weights_path().as_deref())
}
/// Engine from the default base weights plus an optional per-room calibration
/// adapter (ADR-150 §3.5). Used by `cog-pose-estimation run --adapter <path>`.
pub fn with_adapter(adapter_path: Option<&Path>) -> Result<Self, Box<dyn std::error::Error>> {
Self::with_weights_and_adapter(default_weights_path().as_deref(), adapter_path)
}
/// Create an engine with a specific weights path (used by `--config`
/// in `cog-pose-estimation run`). If `weights_path` is `None`, the
/// stub fallback is used.