rig-lifecycle
Skill này làm gì
Skill này bao quát các lệnh quản lý vòng đời của một đội OpenRig, từ tạo và dừng đến khôi phục sau khi khởi động lại. Skill dành cho người vận hành cần đưa đội agent của họ về trạng thái tốt đã biết.
Khi nào nên dùng
- ✓Khi bạn cần khởi động, dừng, khôi phục hoặc xóa một rig.
- ✓Khi bạn đọc trạng thái rig sau khi khởi động lại và không chắc nên tin gì.
- ✓Khi bạn thiết kế một bài kiểm thử cho kịch bản vòng đời của rig.
Liên kết skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Máy tôi vừa khởi động lại. Khôi phục các rig của tôi và cho biết seat nào thực sự khỏe mạnh, seat nào chỉ trông có vẻ khỏe.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill giải thích các lệnh vòng đời và kết quả khôi phục, rồi hướng dẫn agent kiểm tra trạng thái thật thay vì tin vào bản tóm tắt.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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
Câu hỏi thường gặp
Có những kết quả khôi phục nào?
Skill nêu các kết quả như resumed, rebuilt, fresh, failed và attention required.
Tôi có tin được chế độ xem trạng thái sau khi khôi phục không?
Skill cảnh báo chế độ xem trạng thái có thể trông khỏe hơn thực tế, nên cần kiểm tra trạng thái thật.
Khôi phục có thể để lại rig dở dang không?
Có. Skill liệt kê rig khôi phục một phần là một lỗi cần để ý.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 8.6k
- Vị trí xếp hạng
- #12411
- Giấy phép
- Apache-2.0
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
agent-operated-software
8.6kGiúp agent của bạn thiết kế, xây dựng hoặc gỡ lỗi một ứng dụng đang chạy có backend là agent AI, như một lớp điều khiển agent bằng Markdown hoặc JSON.
agent-operated-workflows
8.6kGiúp agent của bạn quyết định một quy trình có ranh giới nên do agent AI hay code thông thường điều khiển, và cách tiếp tục từ bằng chứng đã xác minh.
applying-a-permission-policy
8.6kGiúp agent của bạn thiết lập quyền lệnh mà agent lập trình AI dùng khi cài đặt đội, để các lệnh thông thường chạy với ít lần xác nhận hơn.
claude-compaction-restore
8.6kGiúp agent Claude Code dựng lại bức tranh làm việc sau khi ngữ cảnh bị nén, bằng một bản đồ khôi phục đã lưu, transcript và các file nó đã chạm vào.
Skill tương tự
openclaw-update
394kGiúp agent của bạn cập nhật OpenClaw Gateway đang có, chọn cách cập nhật phù hợp với cách cài đặt và giữ phiên làm việc của bạn hoạt động.
diagnose-gateway
394kGiúp agent của bạn tìm hiểu vì sao OpenClaw Gateway bị lỗi bằng cách kiểm tra cài đặt, kênh và cổng mà không thay đổi gì.
crabbox-apps
394kGiúp agent của bạn mở và chạy một app trên máy đám mây tạm thời, rồi hiển thị giao diện của nó trong thanh bên của chat.