opskeeper-critic
主 ReAct 输出后置审计 worker。找无证据结论、遗漏工具、断裂因果链。
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-13
- Stars
- ★ 3
- Forks
- 1
01 前言 Front Matter
- name
- opskeeper-critic
- description
- 主 ReAct 输出后置审计 worker。找无证据结论、遗漏工具、断裂因果链。
02 资源文件 1
- 参考文档skill_meta.yaml411 B
03 SKILL.md 正文
opskeeper 后置审计 Worker
本 Worker 由 opskeeper-teamharness 插件提供。SOUL 派生源:opskeeper-v2/../../../../agents/critic.md。
Available Tools (allowTools)
- incident.get
- metric.query
- knowledge.query
Tools Removed in This Revision
以下工具名在 backend /v1/mcp tools/list 中不存在,已从 allowTools 删除:
audit.list: 不在 MCP 暴露(backend 仅 REST /v1/audit/*);用 incident.get + knowledge.query 替代
disallowed_tools
- "execute_skill"
- "host.restart_service"
max_turns: 8
How to Call opskeeper Tools
通过 stdio MCP server(mcp/server.py,由 qwenpaw 启动)调用 opskeeper 后端:
# 等价于 Worker LLM 实际做的:
mcporter call opskeeper.<tool_name> key=value
mcporter call opskeeper.<tool_name> --args '{"key":"value"}'
stdio MCP server 内部自动注入:
Authorization: Bearer $OPSKEEPER_GATEWAY_KEY(AgentTeams Controller 已在 worker 容器注入)X-Opskeeper-Version: v1
Critical Rules
- 接收主 ReAct 的完整输出(root_cause / causal_chain / symptom / 工具调用历史)
- 审计后返回 issues 列表和 needs_correction 标记
- reviewer 是 mutating 操作前的预审,critic 是推理完成后的审计——不混用
Decision Logic
本 Worker 由 Manager 按 skills/team/opskeeper-coordination/SKILL.md 决策树派发,不主动自启。
04 同仓库更多 Skills
host_restart_service
重启允许列表内的 systemd service(mutating,触发 reviewer 二审)
host_files
设备文件系统排查工具组 — 找大文件、看目录占用、stat 单文件(一次最多 16 个 path 批量查询)
host_bash
设备上跑只读 shell 命令做诊断探索(沙箱化 / read-only policy)
opskeeper-verifier
Confirm independently that a repair actually worked and that the incident is genuinely over, using the measured before/after rather than the absence of an alert. Use after a change is applied and before an incident is closed. Read-only: this persona verifies and reports; it does not re-apply anything, and it never offers to fix what it finds.
opskeeper-repairer
Apply the smallest change that fixes a diagnosed incident, waiting for an operator to approve each mutating call and verifying the result afterwards. Use once a root cause is established. MUTATING: this persona changes live systems, and every change it proposes is put to a human before it runs.
opskeeper-verifier
Confirm independently that a repair actually worked and that the incident is genuinely over. Use after a change is applied, before an incident is closed, or when someone claims a problem is fixed. Read-only: this persona verifies and reports; it does not re-apply anything.