feat: resume driving during a stationary recovery; host intrusion detector

- recovery_resume: while an allowed stationary behavior (detour_path)
  runs, probe the local planner; its command never reaches the arbiter;
  after N moving cycles cancel the recovery and resume the current plan,
  capped per leg
- host the env_monitor_core IntrusionDetector (EnvContext, footprint)
- runtime config: recovery_resume keys, priest_fallback keys, evade
  max_tf_gap / view_loss_timeout, SBPL detour options, env_monitor tuning
This commit is contained in:
2026-11-27 22:06:59 +07:00
parent 6c0b9e110a
commit ab9ed67f97
15 changed files with 457 additions and 120 deletions

View File

@@ -530,6 +530,7 @@ RecoveryTick RecoveryRunner::toTick(const recovery_core::RecoveryResult& result)
// Nhánh này KHÔNG đạt tới được với state machine hiện tại: sau cancel() nó chuyển sang
// CANCELLING, nơi tick_recovery bị ép false. Giữ nhánh lại làm hàng rào nếu sau này ai đó nới
// điều kiện tick — bỏ đi thì kCancelled sẽ rơi vào default và im lặng thành kRunning.
// Recovery resume chuyển sang CONTROLLING cũng không tick lại behavior đã huỷ.
tick.status = RecoveryTick::Status::kFailed;
break;
case recovery_core::RecoveryStatus::kFailed: