skills/ARCHIVE-chaos-quarantine/model-fallback-monitor/SKILL.md
Monitor the model fallback chain: MiniMax (primary), DeepSeek (hot-swap), Kimi, Ollama qwen2.5:7b (local). Track latency, billing failures (402), cold-start failures, and auto-pause dead models. USE WHEN: "model health", "check fallback chain", "DeepSeek balance", "model latency", "billing alert".
npx skillsauth add ariffazil/openclaw-workspace model-fallback-monitorInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Tracks Arif's model federation health. Prevents the DeepSeek 402 scenario from going unnoticed.
Primary: minimax/MiniMax-M2.7 (hot)
Fallback 1: deepseek/deepseek-chat
Fallback 2: kimi/kimi-for-coding
Fallback 3: ollama/qwen2.5:7b (cold/local)
# Check DeepSeek balance (will 402 if empty)
curl -s -X POST https://api.deepseek.com/v1/models \
-H "Authorization: Bearer $DEEPSEEK_KEY" \
--max-time 10 | jq '.error.code' 2>/dev/null
# Quick MiniMax ping (adjust endpoint as needed)
curl -s -o /dev/null -w "%{http_code}" --max-time 10 \
https://api.minimax.chat/v1/models 2>/dev/null
# Check Ollama is responsive
curl -s --max-time 5 localhost:11434/api/tags | jq '.models[].name'
# Time each model in chain
for model in "mini-mini" "deepseek" "kimi" "ollama"; do
start=$(date +%s%N)
# lightweight ping for each
echo "$model: $(($(date +%s%N) - $start))ns"
done
| Model | Failure Mode | Detection | |---|---|---| | deepseek-v4-pro | 402 Insufficient Balance | HTTP 402 | | deepseek-chat | Rate limit | HTTP 429 | | kimi | Unknown model key | Config mismatch | | ollama/qwen2.5:7b | Cold start slow | > 30s response |
MODEL FALLBACK MONITOR — $(date -u)
────────────────────────────────────
MiniMax: ✅ OK (latency: Xms)
DeepSeek: ⚠️ LOW BALANCE (estimated $Y remaining)
Kimi: ✅ OK / ❌ UNCONFIGURED
Ollama: ✅ OK (qwen2.5:7b loaded)
────────────────────────────────────
Active model: minimax/MiniMax-M2.7
Fallback chain: healthy / degraded / critical
# Run every 30 min
*/30 * * * * /root/.openclaw/workspace/skills/model-fallback-monitor/check.sh >> /var/log/model-monitor.log 2>&1
development
Federation-wide gold (XAUUSD) trading capability. Python stack, OANDA broker, backtesting, macro signals, RSI strategy. Every organ has a role.
development
Capital claim state management — tracks claim lifecycle across WEALTH organ.
development
Archived constitutional warga placeholder retained only for audit provenance. Do not use for active work; use the live arifOS governance and constitutional skills instead.
testing
Warga (citizen) agent skills for AAA federation members. See subdirectories for specialized warga skills.