[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DMB9E7R953VAFF5PAJ55PW":3,"skill-same:01M7DMB9E7R953VAFF5PAJ55PW":82},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":41,"commitSha":42,"skillDirectory":43,"forksCount":44,"repositoryHtmlUrl":45,"repositoryHomepageUrl":6,"ownerHtmlUrl":46,"ownerBlogUrl":47,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M7DMB9E7R953VAFF5PAJ55PW","openrig-upgrade",null,"Use when an agent is preparing or performing an OpenRig CLI\u002Fdaemon upgrade and must preserve live seats, verify each mutation, or reconcile managed plugin and skill files without overwriting local work.","mvschwarz\u002Fopenrig-world","mvschwarz","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F171890339?v=4","01M7DM95A4N5936P8G2FTSPMY7","Mike Schwarz","01M7DM95AX80NY8HZA7XXDYAZR",16,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: openrig-upgrade\ndescription: Use when an agent is preparing or performing an OpenRig CLI\u002Fdaemon upgrade and must preserve live seats, verify each mutation, or reconcile managed plugin and skill files without overwriting local work.\nmetadata:\n  cli_surfaces_referenced:\n    - capture\n    - daemon start\n    - daemon status\n    - daemon stop\n    - plugin list\n    - ps\n    - restore-check\n    - snapshot\n    - version\n  openrig:\n    stage: factory-approved\n    sibling_skills:\n      - openrig-user\n      - openrig-operator\n      - forming-an-openrig-mental-model\n---\n\n# Upgrade OpenRig\n\nAn upgrade is an observed agent workflow, not a transaction hidden behind one\ncommand. Hosts differ, process state drifts, local plugin files accumulate, and\nthe useful response to a failed step depends on what is still alive.\n\n**The agent owns the sequence. Stop after every mutation and observe the actual\neffect before choosing the next step.** There is deliberately no end-to-end\nupgrade subcommand.\n\n## Safety model\n\nKeep these planes separate:\n\n- Seats normally live in tmux and can survive a daemon restart.\n- The daemon, database, wrappers, and managed plugin projection are the control\n  plane being changed.\n- `rig down` tears down seats. It is not part of a continuity-preserving upgrade.\n\nBefore acting, name the rigs and seats whose continuity matters. On a production\nhost, use the host's normal operator ceremony. On a recovery-friendly build VM,\nthe orchestrator may adopt a tested runtime directly, but still observes each\nstep and stops on unexplained drift.\n\n## When recovery crosses an instance boundary\n\nBefore either lane changes runtime state, record one host-qualified executor and\nexplicitly select the queue store that owns the recovery ruling. State whether\nthe original owner continues, waits, or transfers; an open obligation in another\nstore is not exclusive custody of this ruling. If the original store is down,\nretain its owner's disposition in the surviving ruling and communicate it to\nthat owner before a competing executor acts.\n\nA refused claim means reconcile ownership with the ruling owner before any\nfurther runtime action; it does not authorize continuing under a separate older\nrow. A return names the full executor address and deliberately selected store.\nRead the resulting row there, including source, destination, body, and the\noriginal owner's disposition, before resuming. Receipt creation alone does not\nestablish that a waiting lane received or accepted the transfer.\n\n## The loop\n\nFor every step:\n\n1. **Inspect.** Derive current facts from the live host.\n2. **Decide.** Choose one bounded mutation and state its expected effect.\n3. **Act once.** Do not bundle the next mutation with it.\n4. **Observe.** Check the process, listener, database, plugin, and seat surfaces\n   that the step could have changed.\n5. **Continue, adapt, or stop.** A failed expectation is information for the\n   agent, not permission for a blind retry.\n\n## Bounded helpers\n\nLet `SKILL_DIR` be the directory containing this `SKILL.md`. These scripts emit\nJSON and do not decide the upgrade sequence.\n\n### Inspect current facts\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Finspect-upgrade.mjs\"\n```\n\nThis asks the installed `rig` for its version, daemon status, node inventory,\nand plugin inventory. A missing surface remains visible with a suggested next\nprobe. `ready: false` means the agent must resolve or consciously bound the gap;\nit does not mean the script should mutate anything.\n\n### Back up SQLite\n\nTake continuity snapshots first:\n\n```bash\nrig snapshot \u003Crig-id>\nnode \"$SKILL_DIR\u002Fscripts\u002Fbackup-sqlite.mjs\" \\\n  --source \"$OPENRIG_HOME\u002Fopenrig.sqlite\" \\\n  --destination \"\u002Fsafe\u002Fpath\u002Fopenrig-before-upgrade.sqlite\"\n```\n\nThe helper refuses to overwrite a destination, uses SQLite's backup operation,\nand verifies the backup with `PRAGMA integrity_check`. It does not stop the\ndaemon or restore a database.\n\n### Plan or apply safe managed-plugin refreshes\n\nPlugin trees may contain skills as well as hooks and metadata. Compare the last\npackaged ancestor, the target package, and the live installed tree:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Frefresh-managed-plugin.mjs\" \\\n  --ancestor \u002Fpath\u002Fto\u002Fprevious\u002Fpackage\u002Fplugin \\\n  --target \u002Fpath\u002Fto\u002Ftarget\u002Fpackage\u002Fplugin \\\n  --live \"$OPENRIG_HOME\u002Fplugins\u002F\u003Cplugin>\"\n```\n\nReview the sorted decisions. To apply only `refresh-safe` and `add-safe` files:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Frefresh-managed-plugin.mjs\" \\\n  --ancestor \u002Fpath\u002Fto\u002Fprevious\u002Fpackage\u002Fplugin \\\n  --target \u002Fpath\u002Fto\u002Ftarget\u002Fpackage\u002Fplugin \\\n  --live \"$OPENRIG_HOME\u002Fplugins\u002F\u003Cplugin>\" \\\n  --apply-safe\n```\n\nThe helper never deletes a live file and never overwrites a local modification.\nLocal deletions, live-only files, target removals, and ambiguous types are\nreported for the agent to resolve. Re-run the plan after any manual resolution.\n\n### Migrate a pre-0.5.9 instance layout\n\nVersion 0.5.9 puts context-usage telemetry in\n`$OPENRIG_HOME\u002Fstate\u002Fcontext-usage`, provider telemetry in\n`state\u002Fprovider-usage`, the addressable library under `context\u002F`, and the\ndefault System World at `context\u002Fsystem\u002Fsystem-world.yaml`. Existing 0.5.8\nhomes cross that boundary through an **Agent-Operated Migration**: the target\nruntime reads canonical-first with legacy-fallback while all new writes use the\ncanonical state roots. An explicitly configured custom context-library root\nstays stable throughout activation.\n\nThe helper supplies bounded, inspectable operations. The agent owns their\nsequence and the target-runtime activation between them. With an exact\nprotected preimage path, first inspect and then prepare canonical directories,\nthe default System World, and a config pin to the existing library. Preparation\ndoes not copy telemetry, rewrite live collector settings, or run lifecycle\nactions:\n\n`--help` prints the phase grammar without inventorying the instance. With no\nphase flag the helper intentionally runs the read-only plan; unknown options\nfail nonzero before plan or mutation.\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" --help\n\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\"\n\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --apply-state \\\n  --preimage \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\"\n```\n\nActivate the exact target runtime using the ordinary upgrade workflow. Then\nwait until every bounded post-apply legacy tail is followed by newer paired\nnew-root samples for that same seat. This proves temporal convergence\nwithout blanket process replacement; a later legacy write remains a hard stop.\nCapture the verification JSON; copied old sidecars are not evidence:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --verify \\\n  --preimage \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\" \\\n  > \u002Fsafe\u002Fpath\u002Flayout-0.5.9-verify.json\n```\n\nOnly a successful receipt authorizes the separately invoked non-destructive\nfinalizer. It copies an unconfigured legacy library into the canonical root\nwithout overwriting anything; a custom context-library root remains stable:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --apply-library \\\n  --preimage \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\" \\\n  --verification \u002Fsafe\u002Fpath\u002Flayout-0.5.9-verify.json\n```\n\nStop on every reported issue: malformed or foreign telemetry, a reserved-path\nconflict, a library collision, config drift, resumed legacy writes, byte drift,\nor a missing fresh dual sample all require the named repair before continuing.\nVerification binds the exact accepted tail bytes to their paired-newer samples;\nthe finalizer revalidates them immediately before switching config. The helper\nnever removes the legacy telemetry or library. Their later retirement is a\nseparate agent decision after stable runtime, writer, reader, and recovery proof.\nIt does not stop\u002Fstart the daemon, launch a seat, touch the database, or decide\nwhether the upgrade proceeds.\n\nTo recover, restore the prior runtime as the agent-led workflow requires, then\nreverse only helper-owned config, System World, empty-directory, and copied\nlibrary effects. Real state samples and both legacy recovery sources remain for\ninspection:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --rollback \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\"\n```\n\n## Agent-led continuity upgrade\n\nThis is a decision guide, not a command recipe. Adapt paths and checks to the\nhost in front of you.\n\n1. Inspect the current CLI, daemon, nodes, and plugins with the helper.\n2. Checkpoint active work and record the exact protected tmux\u002Fsession census.\n3. Run `rig snapshot \u003Crig-id>` for each protected rig.\n4. Create and verify the SQLite backup.\n5. Build or stage the target runtime separately. Prove its version and source\n   identity before touching the live daemon.\n6. Run `rig daemon stop`. Verify both the listener and the identified daemon\n   process are gone. If the command returns while either remains, stop: inspect\n   identity and use the host's authorized recovery procedure. Do not blindly\n   signal a PID.\n7. Start the target with `rig daemon start` or the host's known wrapper. Verify\n   daemon status, process path, listener, version, and database integrity.\n8. Run the plugin refresh helper in plan mode. Apply safe writes only after the\n   three roots and classifications make sense; resolve preserved paths one at a\n   time when required.\n9. Verify protected seats with `rig ps --nodes -A --json`, representative\n   `rig capture`, and `rig restore-check` where applicable. `-A` is required:\n   without it the node read is your CURRENT rig only, and a daemon upgrade\n   protects seats across every rig on the host — so the narrow form reports\n   success while seats outside your rig went unchecked.\n10. Align wrappers only after deriving how that host owns them. Use its existing\n    mechanism; this skill does not rewrite launchers.\n11. Record the observed result, remaining local preservation decisions, and the\n    exact rollback runtime and backup.\n\n## Stop and hand back when\n\n- a protected tmux session is missing before the upgrade;\n- database integrity or backup verification fails;\n- the running process or listener does not match the expected runtime;\n- daemon stop reports success but the identified process or listener remains;\n- the target cannot start against the existing database;\n- plugin roots cannot be tied to a known ancestor and target;\n- a required plugin path is classified as locally modified or deleted and the\n  correct ownership decision is unclear;\n- continuing would require `rig down`, destructive restore, credential changes,\n  or broader authority than the operator has.\n\nWhen stopping, report the last proven-good state, the first failed expectation,\nthe exact evidence, and the smallest decision needed from the owner. Preserve\nlive seats and the database unless recovery specifically requires otherwise.\n\n## Rollback is also agent-led\n\nPrefer starting the previous known runtime against the still-valid database.\nRestore the database backup only when a migration or corruption finding requires\nit; a degraded projection alone is not proof that the database should be\nreplaced. After rollback, repeat the same process, listener, database, plugin,\nand seat observations used during the forward path.\n","# Upgrade OpenRig\n\nAn upgrade is an observed agent workflow, not a transaction hidden behind one\ncommand. Hosts differ, process state drifts, local plugin files accumulate, and\nthe useful response to a failed step depends on what is still alive.\n\n**The agent owns the sequence. Stop after every mutation and observe the actual\neffect before choosing the next step.** There is deliberately no end-to-end\nupgrade subcommand.\n\n## Safety model\n\nKeep these planes separate:\n\n- Seats normally live in tmux and can survive a daemon restart.\n- The daemon, database, wrappers, and managed plugin projection are the control\n  plane being changed.\n- `rig down` tears down seats. It is not part of a continuity-preserving upgrade.\n\nBefore acting, name the rigs and seats whose continuity matters. On a production\nhost, use the host's normal operator ceremony. On a recovery-friendly build VM,\nthe orchestrator may adopt a tested runtime directly, but still observes each\nstep and stops on unexplained drift.\n\n## When recovery crosses an instance boundary\n\nBefore either lane changes runtime state, record one host-qualified executor and\nexplicitly select the queue store that owns the recovery ruling. State whether\nthe original owner continues, waits, or transfers; an open obligation in another\nstore is not exclusive custody of this ruling. If the original store is down,\nretain its owner's disposition in the surviving ruling and communicate it to\nthat owner before a competing executor acts.\n\nA refused claim means reconcile ownership with the ruling owner before any\nfurther runtime action; it does not authorize continuing under a separate older\nrow. A return names the full executor address and deliberately selected store.\nRead the resulting row there, including source, destination, body, and the\noriginal owner's disposition, before resuming. Receipt creation alone does not\nestablish that a waiting lane received or accepted the transfer.\n\n## The loop\n\nFor every step:\n\n1. **Inspect.** Derive current facts from the live host.\n2. **Decide.** Choose one bounded mutation and state its expected effect.\n3. **Act once.** Do not bundle the next mutation with it.\n4. **Observe.** Check the process, listener, database, plugin, and seat surfaces\n   that the step could have changed.\n5. **Continue, adapt, or stop.** A failed expectation is information for the\n   agent, not permission for a blind retry.\n\n## Bounded helpers\n\nLet `SKILL_DIR` be the directory containing this `SKILL.md`. These scripts emit\nJSON and do not decide the upgrade sequence.\n\n### Inspect current facts\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Finspect-upgrade.mjs\"\n```\n\nThis asks the installed `rig` for its version, daemon status, node inventory,\nand plugin inventory. A missing surface remains visible with a suggested next\nprobe. `ready: false` means the agent must resolve or consciously bound the gap;\nit does not mean the script should mutate anything.\n\n### Back up SQLite\n\nTake continuity snapshots first:\n\n```bash\nrig snapshot \u003Crig-id>\nnode \"$SKILL_DIR\u002Fscripts\u002Fbackup-sqlite.mjs\" \\\n  --source \"$OPENRIG_HOME\u002Fopenrig.sqlite\" \\\n  --destination \"\u002Fsafe\u002Fpath\u002Fopenrig-before-upgrade.sqlite\"\n```\n\nThe helper refuses to overwrite a destination, uses SQLite's backup operation,\nand verifies the backup with `PRAGMA integrity_check`. It does not stop the\ndaemon or restore a database.\n\n### Plan or apply safe managed-plugin refreshes\n\nPlugin trees may contain skills as well as hooks and metadata. Compare the last\npackaged ancestor, the target package, and the live installed tree:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Frefresh-managed-plugin.mjs\" \\\n  --ancestor \u002Fpath\u002Fto\u002Fprevious\u002Fpackage\u002Fplugin \\\n  --target \u002Fpath\u002Fto\u002Ftarget\u002Fpackage\u002Fplugin \\\n  --live \"$OPENRIG_HOME\u002Fplugins\u002F\u003Cplugin>\"\n```\n\nReview the sorted decisions. To apply only `refresh-safe` and `add-safe` files:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Frefresh-managed-plugin.mjs\" \\\n  --ancestor \u002Fpath\u002Fto\u002Fprevious\u002Fpackage\u002Fplugin \\\n  --target \u002Fpath\u002Fto\u002Ftarget\u002Fpackage\u002Fplugin \\\n  --live \"$OPENRIG_HOME\u002Fplugins\u002F\u003Cplugin>\" \\\n  --apply-safe\n```\n\nThe helper never deletes a live file and never overwrites a local modification.\nLocal deletions, live-only files, target removals, and ambiguous types are\nreported for the agent to resolve. Re-run the plan after any manual resolution.\n\n### Migrate a pre-0.5.9 instance layout\n\nVersion 0.5.9 puts context-usage telemetry in\n`$OPENRIG_HOME\u002Fstate\u002Fcontext-usage`, provider telemetry in\n`state\u002Fprovider-usage`, the addressable library under `context\u002F`, and the\ndefault System World at `context\u002Fsystem\u002Fsystem-world.yaml`. Existing 0.5.8\nhomes cross that boundary through an **Agent-Operated Migration**: the target\nruntime reads canonical-first with legacy-fallback while all new writes use the\ncanonical state roots. An explicitly configured custom context-library root\nstays stable throughout activation.\n\nThe helper supplies bounded, inspectable operations. The agent owns their\nsequence and the target-runtime activation between them. With an exact\nprotected preimage path, first inspect and then prepare canonical directories,\nthe default System World, and a config pin to the existing library. Preparation\ndoes not copy telemetry, rewrite live collector settings, or run lifecycle\nactions:\n\n`--help` prints the phase grammar without inventorying the instance. With no\nphase flag the helper intentionally runs the read-only plan; unknown options\nfail nonzero before plan or mutation.\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" --help\n\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\"\n\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --apply-state \\\n  --preimage \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\"\n```\n\nActivate the exact target runtime using the ordinary upgrade workflow. Then\nwait until every bounded post-apply legacy tail is followed by newer paired\nnew-root samples for that same seat. This proves temporal convergence\nwithout blanket process replacement; a later legacy write remains a hard stop.\nCapture the verification JSON; copied old sidecars are not evidence:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --verify \\\n  --preimage \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\" \\\n  > \u002Fsafe\u002Fpath\u002Flayout-0.5.9-verify.json\n```\n\nOnly a successful receipt authorizes the separately invoked non-destructive\nfinalizer. It copies an unconfigured legacy library into the canonical root\nwithout overwriting anything; a custom context-library root remains stable:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --apply-library \\\n  --preimage \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\" \\\n  --verification \u002Fsafe\u002Fpath\u002Flayout-0.5.9-verify.json\n```\n\nStop on every reported issue: malformed or foreign telemetry, a reserved-path\nconflict, a library collision, config drift, resumed legacy writes, byte drift,\nor a missing fresh dual sample all require the named repair before continuing.\nVerification binds the exact accepted tail bytes to their paired-newer samples;\nthe finalizer revalidates them immediately before switching config. The helper\nnever removes the legacy telemetry or library. Their later retirement is a\nseparate agent decision after stable runtime, writer, reader, and recovery proof.\nIt does not stop\u002Fstart the daemon, launch a seat, touch the database, or decide\nwhether the upgrade proceeds.\n\nTo recover, restore the prior runtime as the agent-led workflow requires, then\nreverse only helper-owned config, System World, empty-directory, and copied\nlibrary effects. Real state samples and both legacy recovery sources remain for\ninspection:\n\n```bash\nnode \"$SKILL_DIR\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs\" \\\n  --home \"$OPENRIG_HOME\" \\\n  --rollback \"$OPENRIG_HOME\u002Fbackups\u002Flayout-0.5.9-before\"\n```\n\n## Agent-led continuity upgrade\n\nThis is a decision guide, not a command recipe. Adapt paths and checks to the\nhost in front of you.\n\n1. Inspect the current CLI, daemon, nodes, and plugins with the helper.\n2. Checkpoint active work and record the exact protected tmux\u002Fsession census.\n3. Run `rig snapshot \u003Crig-id>` for each protected rig.\n4. Create and verify the SQLite backup.\n5. Build or stage the target runtime separately. Prove its version and source\n   identity before touching the live daemon.\n6. Run `rig daemon stop`. Verify both the listener and the identified daemon\n   process are gone. If the command returns while either remains, stop: inspect\n   identity and use the host's authorized recovery procedure. Do not blindly\n   signal a PID.\n7. Start the target with `rig daemon start` or the host's known wrapper. Verify\n   daemon status, process path, listener, version, and database integrity.\n8. Run the plugin refresh helper in plan mode. Apply safe writes only after the\n   three roots and classifications make sense; resolve preserved paths one at a\n   time when required.\n9. Verify protected seats with `rig ps --nodes -A --json`, representative\n   `rig capture`, and `rig restore-check` where applicable. `-A` is required:\n   without it the node read is your CURRENT rig only, and a daemon upgrade\n   protects seats across every rig on the host — so the narrow form reports\n   success while seats outside your rig went unchecked.\n10. Align wrappers only after deriving how that host owns them. Use its existing\n    mechanism; this skill does not rewrite launchers.\n11. Record the observed result, remaining local preservation decisions, and the\n    exact rollback runtime and backup.\n\n## Stop and hand back when\n\n- a protected tmux session is missing before the upgrade;\n- database integrity or backup verification fails;\n- the running process or listener does not match the expected runtime;\n- daemon stop reports success but the identified process or listener remains;\n- the target cannot start against the existing database;\n- plugin roots cannot be tied to a known ancestor and target;\n- a required plugin path is classified as locally modified or deleted and the\n  correct ownership decision is unclear;\n- continuing would require `rig down`, destructive restore, credential changes,\n  or broader authority than the operator has.\n\nWhen stopping, report the last proven-good state, the first failed expectation,\nthe exact evidence, and the smallest decision needed from the owner. Preserve\nlive seats and the database unless recovery specifically requires otherwise.\n\n## Rollback is also agent-led\n\nPrefer starting the previous known runtime against the still-valid database.\nRestore the database backup only when a migration or corruption finding requires\nit; a degraded projection alone is not proof that the database should be\nreplaced. After rollback, repeat the same process, listener, database, plugin,\nand seat observations used during the forward path.\n",{"name":5,"metadata":24,"description":7},{"openrig":25,"cli_surfaces_referenced":31},{"stage":26,"sibling_skills":27},"factory-approved",[28,29,30],"openrig-user","openrig-operator","forming-an-openrig-mental-model",[32,33,34,35,36,37,38,39,40],"capture","daemon start","daemon status","daemon stop","plugin list","ps","restore-check","snapshot","version","main","60438a272b68d091eddb01aad6e399af4996d536","agents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade",4,"https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world","https:\u002F\u002Fgithub.com\u002Fmvschwarz","https:\u002F\u002Fopenrig.dev","Building OpenRig. Running rogue AI civilizations. Debugging their coordination problems.","2026-11-12 13:31:38",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add mvschwarz\u002Fopenrig-world --skill openrig-upgrade",{"tool":56,"command":57},"bunx","bunx skills add mvschwarz\u002Fopenrig-world --skill openrig-upgrade",{"tool":59,"command":60},"pnpm","pnpm dlx skills add mvschwarz\u002Fopenrig-world --skill openrig-upgrade","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade\u002FSKILL.md",true,[64,70,74,78],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"scripts\u002Fbackup-sqlite.mjs","SCRIPT","脚本",2435,"https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade\u002Fscripts\u002Fbackup-sqlite.mjs",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"scripts\u002Finspect-upgrade.mjs",1582,"https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade\u002Fscripts\u002Finspect-upgrade.mjs",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fmigrate-telemetry-state-0.5.9.mjs",61540,"https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade\u002Fscripts\u002Fmigrate-telemetry-state-0.5.9.mjs",{"path":79,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":80,"sourceHtmlUrl":81},"scripts\u002Frefresh-managed-plugin.mjs",5463,"https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Fagents\u002Fshared\u002Fskills\u002Fcore\u002Fopenrig-upgrade\u002Fscripts\u002Frefresh-managed-plugin.mjs",[83,90,97,104,111,118],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7DMSEDCRREMBJF57RQB59HC","notes","Use when taking notes.","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Ftools\u002Ftest\u002Ffixtures\u002Finstall-verify\u002Fbundle\u002Fagents\u002Fteam\u002Fskills\u002Fnotes\u002FSKILL.md",[],[],{"skillNo":91,"name":92,"nameZh":6,"description":93,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":94,"categories":95,"keywords":96,"publishedAt":19},"01M7DMSBZP9WE8MC09JDXFCR2F","software-for-agents","Use when older OpenRig instructions name software-for-agents or describe agent-in-the-middle or studio software under the former skill name.","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Frigs\u002Fworkshop\u002Fagents\u002Fworkshop\u002Fskills\u002Fsoftware-for-agents\u002FSKILL.md",[],[],{"skillNo":98,"name":99,"nameZh":6,"description":100,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":19},"01M7DMS55VHEAGPXMHZJ7FX94R","session-compaction-and-restore","Use when reasoning about what survives compaction\u002Fcontext-loss\u002Frestart\u002Fseat-refresh, designing a high-fidelity restore packet, or distinguishing native runtime resume vs fork vs artifact-backed mental-model rebuild. Covers the 4 failure modes that prevent honest restore (compacted seat drops hot potato; restore packet preserves details but loses product intent; runtime resume mistaken for handover or fork; rebuilt seat starts with stale instructions).","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Frigs\u002Fworkshop\u002Fagents\u002Fworkshop\u002Fskills\u002Fsession-compaction-and-restore\u002FSKILL.md",[],[],{"skillNo":105,"name":106,"nameZh":6,"description":107,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":108,"categories":109,"keywords":110,"publishedAt":19},"01M7DMRYQK0JTV7MMVHFWZ0BW0","seat-continuity-and-handover","Use when replacing a seat's occupant (rebuild\u002Fhandover\u002Fswap), reasoning about stable-seat-identity vs fluid-occupant-identity, choosing an old-occupant disposition (retire\u002Fadvise\u002Fshadow), or recording provenance for an occupant change. Two independent outcomes (continuityOutcome + seatBindingOutcome) and the 5 failure modes that prevent silent dishonesty.","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Frigs\u002Fworkshop\u002Fagents\u002Fworkshop\u002Fskills\u002Fseat-continuity-and-handover\u002FSKILL.md",[],[],{"skillNo":112,"name":113,"nameZh":6,"description":114,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":115,"categories":116,"keywords":117,"publishedAt":19},"01M7DMRP6RRGCJZSH9CE3PC1MY","retiring-and-inheriting-a-seat","Use when you are a sitting agent near your context threshold (~85%) and a PLANNED seat transition is due — retire deliberately and hand your seat to a fresh successor primed from a packet, rather than let compaction degrade you. Covers the handover packet, the append-only lineage ledger (one row per tenure), physical-seat continuity, the do-not-over-inherit framing, the optional warm-handoff window, and wake-v0 (consulting a retired predecessor). NOT for unplanned compaction\u002Fcrash recovery (session-compaction-and-restore \u002F claude-compaction-restore) and NOT the seat-binding primitive mechanics (seat-continuity-and-handover).","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Frigs\u002Fworkshop\u002Fagents\u002Fworkshop\u002Fskills\u002Fretiring-and-inheriting-a-seat\u002FSKILL.md",[],[],{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":19},"01M7DMRJGN6Z8TZDR7JNHXH6KX","refocusing","Use when a long-running agent may have lost the product outcome, when context was compacted, when work has crossed a major boundary, or when a fresh path-based trace is needed before the next consequential action. Not for fresh-session orientation, waking an idle seat, or checkpoints.","https:\u002F\u002Fgithub.com\u002Fmvschwarz\u002Fopenrig-world\u002Fblob\u002Fmain\u002Frigs\u002Fworkshop\u002Fagents\u002Fworkshop\u002Fskills\u002Frefocusing\u002FSKILL.md",[],[]]