rig-lifecycle
Fungsinya
Skill ini membahas perintah untuk mengelola siklus hidup tim OpenRig, mulai dari membuat dan menghentikan hingga memulihkan setelah reboot. Skill ini untuk operator yang perlu tim agent-nya kembali dalam kondisi yang sudah diketahui baik.
Kapan dipakai
- βSaat Anda perlu menjalankan, menghentikan, memulihkan, atau menghapus rig.
- βSaat Anda membaca status rig setelah reboot dan tidak yakin mana yang bisa dipercaya.
- βSaat Anda merancang uji untuk skenario siklus hidup rig.
Link skill
https://github.com/mvschwarz/openrig/blob/main/packages/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βMesin saya baru reboot. Pulihkan rig saya dan beri tahu seat mana yang benar-benar sehat dan mana yang hanya tampak sehat.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill ini menjelaskan perintah siklus hidup dan hasil pemulihan, lalu memandu agent untuk memeriksa kondisi nyata, bukan sekadar mempercayai ringkasan.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum
Apa saja hasil pemulihan yang ada?
Skill ini menyebut hasil resumed, rebuilt, fresh, failed, dan attention required.
Bisakah saya mempercayai tampilan status setelah pemulihan?
Skill ini memperingatkan bahwa tampilan status bisa tampak lebih sehat daripada kondisi sebenarnya, sehingga kondisi nyata perlu diperiksa.
Bisakah pemulihan meninggalkan rig yang belum lengkap?
Ya, skill ini mencantumkan rig yang pulih sebagian sebagai kegagalan yang perlu diwaspadai.
Detail
Deskripsi asli dari pembuat
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
Popularitas
- Bintang GitHub
- 8.6k
- Peringkat
- #12411
- Lisensi
- Apache-2.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
agent-operated-software
8.6kMembantu agent Anda merancang, membangun, atau men-debug aplikasi yang sedang berjalan dengan backend live berisi agent AI, seperti bidang kontrol agent berbasis Markdown atau JSON.
agent-operated-workflows
8.6kMembantu agent Anda memutuskan apakah sebuah prosedur terbatas sebaiknya dijalankan oleh agent AI atau oleh kode biasa, dan cara melanjutkannya dari bukti yang sudah diverifikasi.
applying-a-permission-policy
8.6kMembantu agent Anda mengatur izin perintah yang dipakai agent pengodean AI selama pengaturan tim, agar perintah rutin berjalan dengan lebih sedikit permintaan persetujuan.
claude-compaction-restore
8.6kMembantu agent Claude Code membangun kembali gambaran kerjanya setelah konteksnya dipadatkan, memakai peta pemulihan yang disimpan, transkripnya, dan file yang disentuhnya.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.