diff --git a/scripts/ops-sentinel.sh b/scripts/ops-sentinel.sh index a1e0f98..7c8c121 100755 --- a/scripts/ops-sentinel.sh +++ b/scripts/ops-sentinel.sh @@ -98,6 +98,19 @@ else add_next "Run: openclaw security audit --json" fi +if "$OPENCLAW_BIN" update status >"$ARTIFACT_DIR/openclaw-update-status.txt" 2>"$ARTIFACT_DIR/openclaw-update-status.err"; then + if grep -Eqi 'update available|outdated|new version|available:' "$ARTIFACT_DIR/openclaw-update-status.txt"; then + add_watch "P2 OpenClaw update available" + mark_p2 + add_next "Review release notes, then run safe update workflow" + else + add_watch "P4 OpenClaw update status checked" + fi +else + add_watch "P3 OpenClaw update status check failed" + add_next "Run: openclaw update status" +fi + # 2) Backup freshness from minio backup log if [[ -f "$BACKUP_LOG" ]]; then last_key="$(grep 'Backup complete:' "$BACKUP_LOG" | tail -n1 | sed -E 's#.*workspace-backups/([0-9]{8}T[0-9]{6}Z).*#\1#' || true)"