rig-lifecycle
它能做什么
这项技能涵盖管理 OpenRig 团队生命周期的命令,从创建、停止到重启后的恢复。适合需要让智能体团队回到已知良好状态的运维人员。
适用场景
- ✓当你需要启动、停止、恢复或删除一个 rig 的时候。
- ✓当你在重启后查看 rig 状态,却不确定该相信哪些信息的时候。
- ✓当你为 rig 生命周期场景设计测试的时候。
技能链接
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.md复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。
使用方法
最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 AI
“我的电脑重启了。请帮我恢复 rig,并告诉我哪些席位真正健康,哪些只是看起来健康。”
每周 5 个新技能,1 分钟读完。
工作原理
它讲解生命周期命令和恢复结果,并指导智能体检查真实状态,而不是只相信汇总视图。
技术内容(原始 SKILL.md)
作者在 GitHub 上的英文原文。
Rig Lifecycle
The family of operations that create, start, stop, resume, restore, snapshot, release, unclaim, and destroy OpenRig-managed topologies. Includes the user story after reboot: "bring my work back without turning a clean recovery into a cleanup project."
If lifecycle is brittle, every higher-level primitive inherits that brittleness. Queue, workflow, seat continuity, cross-host operation, and RSI all assume that rigs and seats can be restored into known states.
Use this when
- Operating
rig up / down / restore / resume / snapshot / release / unclaim / destroy - Reading
rig psafter a reboot or recovery and deciding what to trust - Designing proof for a lifecycle scenario (clean start / warm resume / host reboot / provider auth loss / partial boot / operator recovery)
- Reasoning about restore-outcome semantics (
resumed/rebuilt/fresh/failed/attention_required) - Auditing whether a lifecycle proof is in-process bedrock vs requires real reboot evidence
Don't use this when
- The operation is single-command and deterministic — use
openrig-userskill for CLI surface - The work is operator-level configuration or troubleshooting of OpenRig itself — run
rig context get help - The work is rig spec authoring — use
openrig-architect
Failure modes (4)
- Auto-restore creates a partially restored rig that must be cleaned up before real recovery. Partial restore looks like recovery but isn't; cleanup-before-recovery becomes the actual workload.
rig psor lifecycle projections report a healthier state than the runtime actually has. Projections are summaries; the runtime is truth. Don't trust projections silently.- Provider auth is unavailable after reboot and the system treats that as implementation work instead of a human/environment decision. Auth issues are environmental; route to human.
- Resume succeeds for one runtime/provider but fails for another scenario that was never tested. Per-runtime parity assumptions break silently; matrix proof catches them.
Restore-honesty rule (load-bearing)
Failed resume is FAILED loudly. No automatic fresh fallback. Fresh
launch is explicit follow-up only. This is enforced architecturally
at the daemon level (per architecture.md §7 rule 15).
The locked restore-outcome vocabulary:
| Outcome | Meaning |
|---|---|
resumed |
Native runtime resumed the same conversation |
rebuilt |
New process assembled from artifacts (session_source: mode: rebuild) |
fresh |
New process with no prior continuity |
failed |
Restore attempted and failed; no automatic fallback |
attention_required |
Recoverable blocker (provider auth refused, etc.); needs operator action |
n-a |
Not applicable (terminal nodes, etc.) |
Codex auth-refusal returns attention_required (recoverable); Claude
looksLikeClaudeLoginPrompt returns failed/login_required (terminal).
Cross-runtime alignment is an open follow-up question.
Proof standard
Lifecycle proof should include real reboot or VM-reboot evidence, not only daemon-unit evidence. The minimum useful matrix covers:
| Scenario | What it proves |
|---|---|
| Clean start | Boot from spec into known state |
| Warm resume | rig down → rig up <name> resumes seats |
| Host reboot / tmux socket absence | Recovery from lost tmux connection |
| Provider auth loss | Codex/Claude auth refusal handled honestly |
| Partial boot / partial failure | Some seats up, some failed; honest reporting |
| Intentional operator recovery | Operator-initiated restore from snapshot |
Tier 1: in-process bedrock (daemon-unit evidence). Tier 2: real reboot or disposable Tart VM. Tier 1 alone is not lifecycle proof; it's bedrock.
Default policy is part of the primitive
Treat default policy as part of the primitive, not an afterthought. Lifecycle defaults that are too optimistic for the reliability level actually proven create silent harm:
auto-restoredefaults that mask failure modes- Implicit fresh-fallback that hides resume failure
- Permissive verification that doesn't distinguish honest success from "appeared to work"
Total-Host Restore Product Rail v2
The rail sequences restore truth into four rungs:
fully_restoredis a Rung 3 execution rollup- "fully back" is reserved for Rung 4 only
Naming discipline matters. "Fully restored" and "fully back" are different claims; don't conflate.
See also
openrig-userskill — CL
常见问题
恢复结果有哪些?
这项技能列出了 resumed(已继续)、rebuilt(已重建)、fresh(全新)、failed(失败)和 attention required(需要关注)。
恢复之后可以相信状态视图吗?
这项技能提醒,状态视图看起来可能比实际情况更健康,因此应该核对真实状态。
恢复后会留下只部分恢复的 rig 吗?
会。这项技能把部分恢复的 rig 列为需要注意的故障情况。
详情
作者的原始描述
Use when reasoning about the rig lifecycle operations family (create / start / stop / resume / restore / snapshot / release / unclaim / destroy), reading or trusting `rig ps` / lifecycle projections after recovery, or designing proof for a lifecycle scenario. Covers the 4 failure modes (auto-restore creates partial rig; projections report healthier than reality; provider auth treated as impl work; resume succeeds for one runtime fails another) plus the restore-honesty rule (failed resume is FAILED loudly — no auto fresh fallback).
repo: mvschwarz/openrig
热度
- GitHub 星标
- 8.6k
- 排名
- #12411
- 许可证
- Apache-2.0
- 更新时间
- 2026/11/2
评论
- …
同一仓库的更多技能
agent-operated-software
8.6k帮你的智能体设计、构建或调试一个后端包含 AI 智能体的持续运行应用,例如基于 Markdown 或 JSON 的智能体控制层。
agent-operated-workflows
8.6k帮你的智能体判断一个有边界的流程应由 AI 智能体还是普通代码执行,并基于已验证的证据从中断处恢复。
applying-a-permission-policy
8.6k帮你的智能体在团队设置时配置 AI 编程智能体使用的命令权限,让常规命令减少审批提示。
claude-compaction-restore
8.6k帮助 Claude Code 智能体在上下文被压缩后,借助保存的恢复图、对话记录和它改动过的文件,重建工作认知。