upgrade-risk-preflight-checker

OpenClaw skill for governed agent workflows.

Get this skill

---

name: upgrade-risk-preflight-checker

description: OpenClaw skill for governed agent workflows.

---

upgrade-risk-preflight-checker

**Version:** 1.0.0

**Category:** reliability

**Author:** Iceman / GetAgentIQ.ai

**Build date:** 2026-05-27

What It Does

Assesses upgrade risk before applying OpenClaw or plugin point releases. Classifies workspace notes and log text for known failure patterns (WhatsApp bridge, cron jobs, plugin dependency loops, gateway instability, missing restore points) and returns a SAFE / WARN / BLOCKED verdict.

Designed for the documented pattern where OpenClaw point releases have broken WhatsApp bridges and cron workflows in the field.

Who It's For

→ OpenClaw operators preparing for a point release upgrade

→ Consultants running managed OpenClaw deployments who need a pre-upgrade sign-off gate

→ Teams with active cron jobs or bridge connections that are sensitive to version changes

Usage

```bash

python3 scripts/upgrade_risk_preflight_checker.py --input /path/to/notes.txt --json

python3 scripts/upgrade_risk_preflight_checker.py --self-test --json

```

Output

JSON fields: `ok`, `status` (SAFE/WARN/BLOCKED), `risk_score`, `findings`, `repair_plan`, `safety_note`.

QA Retest Fixture

```bash

python3 -m py_compile scripts/upgrade_risk_preflight_checker.py

python3 scripts/upgrade_risk_preflight_checker.py --self-test --json

echo "WhatsApp bridge active. Plugin dependency error. No restore point found." > /tmp/test_noisy.txt

python3 scripts/upgrade_risk_preflight_checker.py --input /tmp/test_noisy.txt --json

echo "All systems nominal. Restore point confirmed." > /tmp/test_clean.txt

python3 scripts/upgrade_risk_preflight_checker.py --input /tmp/test_clean.txt --json

```

Expected: self-test `ok=true`; noisy fixture `status=BLOCKED`; clean fixture `status=SAFE`.

Safety

Stdlib-only, read-only, no subprocess, no network, no service restart, no cron/config mutation. Diagnostic only.

Restore point

Create a restore point before installing in any production workspace.

Release evidence

Reviewed in the 2026-06-15 GetAgentIQ warehouse propagation cycle.