SkillsReviewed · mvschwarz

OpenRig Upgrade

OpenRig Upgrade is an agent skill for developers and operators maintaining OpenRig, but each upgrade requires host-specific decisions and verification after every change. It includes four Node.js helpers for inspecting installations, backing up SQLite, refreshing managed plugins and migrating the documented 0.5.9 state layout. Live-session continuity has not been assessed through execution.

Researched 16 Nov 2026

In short.

OpenRig Upgrade is an agent skill for developers and operators upgrading OpenRig, but it leaves sequencing, recovery decisions and live-session verification to the operator or agent. Its four Node.js helpers produce structured results for inspection, SQLite backup, plugin refresh and the documented 0.5.9 layout migration. The code includes preservation checks and recovery records, with material limits: successful probes do not establish daemon health, plugin writes lack protection against concurrent edits, and migration verification does not require fresh telemetry from every running seat. No code was executed; operational reliability and compatibility remain unassessed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied skill folder packages/daemon/specs/agents/shared/skills/core/openrig-upgrade at commit 0fd2ec2c8c13f50f662dc2f00bcc5963930e3989: SKILL.md and its four scripts. The repository-root LICENSE is included as the related notice outside that folder. Broader OpenRig implementation, sibling skills, referenced documentation and tests are excluded. No commands were executed, and live upgrades, session preservation, database restoration, concurrent filesystem behavior and runtime compatibility remain untested.

The overview

identity

The resource is the openrig-upgrade skill in mvschwarz/openrig. It consists of SKILL.md and four JavaScript modules under scripts/. An assistant loads the instructions and chooses bounded maintenance operations using the helpers.

The original folder is [https://github.com/mvschwarz/openrig/tree/main/packages/daemon/specs/agents/shared/skills/core/openrig-upgrade]. The supplied source is pinned to commit 0fd2ec2c8c13f50f662dc2f00bcc5963930e3989.

assessment

The skill is most useful when upgrading an existing OpenRig installation with active agent sessions and locally customized plugin files. It connects snapshots, database backups, staged runtime changes and post-change observations into an explicit maintenance procedure.

Its value depends on an operator or agent correctly interpreting the host. The helpers do not establish target-runtime compatibility, guarantee session survival or complete an upgrade automatically. The documented preservation policies also need the concurrency and verification qualifications described below.

users

The intended users are OpenRig administrators, developers maintaining agent infrastructure, and assistants acting with appropriate host authority. The guide assumes familiarity with processes, listeners, filesystem paths, SQLite and recovery procedures.

For beginners, the central distinction is that seats are agent sessions normally hosted in tmux, while the daemon and database provide their management services. Sessions may survive a daemon restart, but the guide requires checking them individually. A first-time user would need help identifying protected sessions, authoritative plugin versions and rollback paths.

capabilities

inspect-upgrade.mjs gathers the CLI version, daemon status, node inventory across all rigs and plugin inventory. It returns JSON containing command results and suggested follow-up probes when commands fail.

backup-sqlite.mjs creates a new SQLite backup and checks it with PRAGMA integrity_check. refresh-managed-plugin.mjs compares previous packaged, target packaged and live plugin trees, then optionally applies files classified as safe additions or refreshes.

migrate-telemetry-state-0.5.9.mjs separates planning, preparation, verification, library finalization and rollback. It prepares state directories and configuration, preserves legacy telemetry, and can copy the default legacy context library after verification. An explicitly configured custom library root stays in place.

Using it

requirements

The helpers require Node.js and access to the relevant OpenRig instance. Commands use rig by default, with OPENRIG_RIG_BIN available as an override. The migration helper requires --home or OPENRIG_HOME. The supplied material does not establish a minimum Node.js version or supported operating-system matrix.

Database backup requires either the sqlite3 CLI or usable node:sqlite support. OPENRIG_SQLITE_BIN can select the SQLite executable. Plugin refresh requires identifiable ancestor, target and live directories.

A complete continuity upgrade also needs access to protected tmux sessions, rig snapshots, the live database, a staged target runtime and recovery storage. Required disk space and maintenance duration are unknown.

mechanism

The guide uses a repeated inspect, decide, act and observe cycle. Each change has an expected effect, and subsequent action depends on checking the resulting processes, listeners, database, plugins and seats.

Plugin classification uses SHA-256 content hashes and permission modes. Files matching the previous package can be refreshed; new target files can be added. Local edits, permission changes, deletions, unsupported entry types and target removals receive preservation classifications.

Migration preparation saves recovery copies and a manifest, creates canonical state locations and pins the existing library during activation. Verification checks telemetry identities and timestamps, including newer paired context and provider samples after accepted legacy writes. Finalization rechecks recorded state before copying library entries and updating configuration.

setup

Acquire SKILL.md and all four scripts from the same source revision, keeping their relative directory structure and retaining the license. The pinned folder is [https://github.com/mvschwarz/openrig/tree/0fd2ec2c8c13f50f662dc2f00bcc5963930e3989/packages/daemon/specs/agents/shared/skills/core/openrig-upgrade]. No general skill-installation command is supplied.

Identify the intended OpenRig home, CLI executable, database and protected rigs before choosing mutations. Set SKILL_DIR to the directory containing SKILL.md when using the guide's command examples. Plugin refresh defaults to planning; the migration helper defaults to its inspection plan and provides --help without inspecting the instance.

example

For an installation with active sessions, an initial command would be node "$SKILL_DIR/scripts/inspect-upgrade.mjs". It invokes rig --version, rig daemon status, rig ps --nodes -A --json and rig plugin list --json. A nonzero exit from any probe makes ready false and includes a suggested next investigation.

A plugin example illustrates the preservation policy: when a regular live file differs from both packaged versions because its permissions were customized, the helper classifies it as preserve-local-modification. Applying --apply-safe excludes that file. These are descriptions of the code's branches; no commands or examples were executed.

Assessment & evidence

limitations

Inspection ready means all four commands exited successfully. The helper does not validate their responses against health criteria, establish database integrity or prove that every protected session is healthy.

Plugin refresh classifies an initial inventory and then copies eligible files without rechecking live content immediately before each write. A concurrent local edit after inventory could therefore be replaced. Individual atomic file replacements do not make the whole refresh transactional.

Migration verification inventories running Claude Code seats and requires at least one fresh paired telemetry sample overall, plus convergence for recorded legacy tails. Missing telemetry for another seat does not always produce an issue, so a successful receipt does not establish fresh telemetry for every running seat or coverage of other runtimes.

Migration operations can leave partial filesystem changes after failure, including when a result reports applied false. Rollback reverses recorded helper effects and refuses detected destination drift; it does not restore the daemon runtime, database or sessions.

The guide describes daemon-startup refreshes that may replace customized plugin or global skill files while preserving recovery copies. That runtime implementation is outside the supplied files. A later plugin-helper plan cannot prevent startup changes that already occurred, and preserved bytes do not establish that customized behavior remains active.

reasoning

Separating live sessions from their management services explains the skill's emphasis on continuity checks. Restarting management services may leave tmux sessions alive, while incorrect teardown or recovery actions can still disrupt work. Snapshots, database backups and session observations address different recovery needs.

Comparing plugin permissions as well as contents recognizes chmod changes as local customization. Retaining legacy migration sources also leaves recovery material available while newer telemetry is observed. These design choices support cautious maintenance, but their usefulness depends on completing the host-specific checks beyond the helpers' success fields.

alternatives

The guide exposes underlying rig commands and SQLite tooling that an operator could use manually. That approach requires separately implementing the helpers' classification, verification and recovery-record behavior.

SKILL.md names openrig-user and forming-an-openrig-mental-model as sibling skills, but their contents are not supplied and their suitability as replacements is unknown. No evidence supports a feature, reliability or performance comparison with an external upgrade tool.

evidence

The available source consists of SKILL.md, inspect-upgrade.mjs, backup-sqlite.mjs, refresh-managed-plugin.mjs, migrate-telemetry-state-0.5.9.mjs and the repository LICENSE. The immutable instruction file is available at [https://raw.githubusercontent.com/mvschwarz/openrig/0fd2ec2c8c13f50f662dc2f00bcc5963930e3989/packages/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md].

The findings describe the supplied instructions and implementation. No code was executed. There are no supplied runtime test results, completed upgrade logs, recovery demonstrations or benchmarks. Referenced daemon internals, reference documents and sibling skills are outside this evidence.

Access & freshness

costs

Apache License 2.0 provides royalty-free licensing under its conditions. The supplied files give no service prices, agent token budgets, infrastructure estimates, storage requirements or operator-time estimates.

Any model-provider charges for an assistant supervising the upgrade depend on the chosen assistant and provider. Those charges and the total operating cost are unknown.

rights

The repository LICENSE contains Apache License 2.0 and a 2026 copyright notice for Mike Schwarz. It permits copying, modification and redistribution, including commercial redistribution, subject to its conditions.

Redistribution requires a copy of the license, prominent notices on changed files and retention of applicable source notices. Applicable NOTICE attributions must also accompany distributed derivatives if such a file is included in the work. The license includes a conditional patent grant, does not grant general trademark rights and supplies the work without warranties.

freshness

The source snapshot is commit 0fd2ec2c8c13f50f662dc2f00bcc5963930e3989, captured on 2026-11-16 at 21:40:20.463 UTC. The main-branch folder address can change; the commit-specific address identifies the material described here.

The guide documents migration from a 0.5.8 home to the 0.5.9 layout. That establishes the migration's stated boundary, not the latest OpenRig release or compatibility with any particular installed runtime. Changes after the captured revision are unknown.

actions

Acquire the complete pinned skill folder with its license, confirm the required CLI and SQLite capabilities, and identify protected sessions across every rig. Establish verified database backups, session snapshots and the exact previous runtime before changing the daemon.

Review plugin plans using known ancestor and target packages, and prevent concurrent edits during refresh. Inspect actual filesystem state after failures because an unsuccessful operation can leave partial changes.

For the 0.5.9 migration, supplement the receipt with fresh paired telemetry for every relevant seat, checks of effective library configuration and representative session behavior. Exercise recovery in a suitable installation before relying on the procedure for live continuity.

Evidence for this report

LICENSEnotice · checked 2026-11-16