topology-mutation-and-seat-management
Agent skill frommvschwarz/openrig
Use when changing a rig while it is alive — `rig grow` / `rig expand` / `rig shrink` / `rig launch` / `rig remove` / `rig discover` / `rig bind` / `rig adopt` / `rig attach`. Covers the 4 failure modes (newly created seat lacks queue/startup/role; edges and permissions not updated; adopt/bind succeeds at tmux but not OpenRig identity; shrink/remove leaves stale topology references) and the rule that mutation must work while the rig is active, not just in clean fixtures.
How to install topology-mutation-and-seat-management
npx skills add mvschwarz/openrig# or add only this skill to Claude Code: copy the folder
skills/_canonical/core/topology-mutation-and-seat-management/
# into
~/.claude/skills/topology-mutation-and-seat-management/ (all projects)
.claude/skills/topology-mutation-and-seat-management/ (one project)
1# Topology Mutation and Seat Management23The ability to change a rig **while it is alive**: expand, shrink,4launch, remove, discover, bind, adopt, and attach seats or sessions.5Seat management includes the **stable identifiers, edges, roles, and6startup context** that make those mutations coherent.78**OpenRig should be easy to reach for.** A user should be able to add9capacity, retire capacity, adopt an existing session, or attach a10terminal **without rebuilding the whole topology.** If mutation is11rarely tested, users avoid it and the product collapses back into12static launch scripts.1314## Use this when1516- Adding seats to a running rig (`rig grow <rig-id> <member...>` for the simple case, a fragment with `rig expand` or `rig add` otherwise; see below)17- Removing capacity (`rig shrink` / `rig remove`)18- Launching/relaunching a node in a running rig (`rig launch`)19- Binding a discovered session into an existing logical node (`rig bind`)20- Adopting a topology + binding live sessions (`rig adopt`)21- Attaching a shell or agent into a rig node (`rig attach --self`)2223## Adding seats: `rig grow` first, a fragment when you need more2425`rig grow <rig-id> <member...>` adds one or more seats to a running rig without26writing YAML. Each seat gets the default agent spec and its `default` profile.27Check `rig grow --help` on your installed version; at the time of writing:2829- `--pod <pod>`: the target pod; inferred when the rig has one pod30…
Excerpt shown under the repository's Apache-2.0 license.
