Model Failover Doctor
Analysis
This tool is aimed at a real OpenClaw repair task, but its automatic repair mode can rewrite model-routing files and default invalid routes to a hard-coded provider, so it deserves review before use.
Findings (4)
Artifact-based informational review of SKILL.md, metadata, install specs, static scan signals, and capability signals. ClawScan does not execute the skill or run runtime probes.
Checks for instructions or behavior that redirect the agent, misuse tools, execute unexpected code, cascade across systems, exploit user trust, or continue outside the intended task.
lb = 'custom-llmapi-lovbrowser-com' ... if new_val is None: new_val = f'{lb}/{model_path}' ... pools[pool_name][field] = new_valThe P-1 auto-fix rewrites pools.json entries and can fall back to a specific hard-coded provider rather than only selecting from the discovered valid provider set.
修复范围明确,只触碰与 failover 相关的三个文件:message-injector/index.ts, .lib/pools.json, .lib/session_model_state.json
The documented repair scope spans runtime extension code, model pools, and session model state, so a bad repair can affect multiple sessions or the gateway rather than only the current request.
Source: unknown; Homepage: none; No install spec — this is an instruction-only skill.
The package does not provide external provenance or an install specification, while the included script is intended to modify local OpenClaw configuration.
Checks for exposed credentials, poisoned memory or context, unclear communication boundaries, or sensitive data that could leave the user's control.
const globalDeadModels = new Map<string, number>(); ... const DEAD_MODEL_TTL = 2 * 60 * 60 * 1000; // 2h ... globalDeadModels.set(state.model, Date.now());
The tool does not auto-fix MI-2, but it recommends adding cross-session dead-model memory that would let one session's model failure influence later routing decisions.
