Catalogue / openrig-user
openrig-user
Apache-2.0SignedUse when a specific `rig` command, subcommand, or flag is already known and you need its exact syntax, JSON shape, defaults, or error meaning. NOT for natural capability discovery, open-ended how-do-I questions, or choosing which OpenRig move applies.--- name: openrig-user description: >- Use when a specific `rig` command, subcommand, or flag is already known and you need its exact syntax, JSON shape, defaults, or error meaning. NOT for natural capability discovery, open-ended how-do-I questions, or choosing which OpenRig move applies. ---
OpenRig User
This is an as-built guide to the shipped rig CLI. Use current code and rig ... --help as ground truth if anything here ever conflicts with older planning docs.
Use the OpenRig builder guidance when changing OpenRig behavior, doctrine, or release posture.
Coordination trust boundary
Coordinate as openly as the trust boundary you actually control allows. Within a set of machines you own that already trust each other — they can reach each other's daemon URLs and the daemon itself requires no authentication — direct rig send, rig capture, and rig queue should just work. Don't invent bearer placeholders, allowlists, trust handshakes, or guest-reach restrictions the environment doesn't require.
Do not add or defend a restriction without naming the protected asset, the actual adversary, the blocked attack path, and the concrete consequence. Missing capability is not protection — repair the route, registration, runtime posture, or product defect directly. Arbitrary boundaries create constraint-induced circumvention: under goal pressure, agents build shadow transports, alternate credentials, and weaker proof instead of the direct authorized path. Keep only explicitly stated external or irreversible boundaries — public push / PR / publish, and destruction of canonical data.
Coordination primitives — when to use which
Three coordination surfaces, used together for forward-momentum work. Internalize this on first read — it shapes every turn you take in a rig.
rig send <seat> "<text>" — intra-pod direct messaging / nudges
Use when you need to ask a quick question or give a teammate context that does not carry handoff semantics. NOT for durable work. NOT for state that must survive across turns. The message lands in the target's pane; there is no durable queue record. The CLI prints Sent to ... (and Verified: yes/no with --verify); read the receipt and move on.
Example:
rig send dev-reviewer@example-project "The import report is ready; the durable handoff names its evidence." --verify
rig queue create --destination <Y> --tags <...> --body-file <path> — durable work item
Use for any substantive work that must not fall through chat — slice handoffs, guard verdicts, QA results, full-tip reviews, multi-item batches. Survives agent restarts. Tracked in the daemon SQLite schema. Surfaces in Project / queue views
- in the destination seat's inbox. Tag with mission / slice / gate / checkpoint
so future-you (and any peer) can find it. Give the row a --summary (its subject, wherever the row is listed) and the project:, mission: and slice: tags when it is project work.
Body discipline: substantive bodies go through `--body-file <path>` (or - for stdin) — the purpose-built, corruption-safe surface (it kills the backtick-shell-corruption class for multi-line bodies). Do NOT inline a backtick-heavy or multi-line body via --body: rig queue create body parsing breaks on unescaped backticks and rejects flag-like tokens.
Example:
rig queue create \ --destination dev-reviewer@example-project \ --summary "Review the import report: it changes how rows are deduplicated" \ --tags "project:example-project,mission:data-import,slice:import-report" \ --body-file /tmp/import-report-handoff.md
rig queue handoff <qitem-id> --to <next> ... — hot-potato handoff
Use when you have completed your turn on a qitem and the work moves to the next owner. This is forward momentum. The ball passes to the destination seat; chain-of-record (the prior qitem id) is preserved so the verdict trail is intact; tags carry the selected work context forward. Gate tags describe checks actually selected for that work; they do not require a fixed sequence of roles.
Example:
rig queue handoff <qitem-id> \ --to dev-reviewer@example-project \ --summary "Review the import report: it changes how rows are deduplicated" \ --tags "project:example-project,mission:data-import,slice:import-report" \ --body-file /tmp/import-report-handoff.md
After a queue write — use the response; read back only when it doesn't show what you need
A queue write (create, claim, update, handoff, handoff-and-complete) answers with the row it wrote; a handoff answers with the closed row and its successor. When that answer shows what you need to establish, use it.
queue update is stricter: before it reports success, the CLI reads the row back from the canonical queue and checks every requested row field using daemon semantics (including normalized deadlines and appended closing resolutions). When --note is present, it first records the transition cursor and then requires a newer canonical transition, recorded under the actor the write was sent as, that carries those note bytes as written or with only what the daemon adds for that request (the reopen prefix, the summary suffix, a revised deadline's receipt). Another writer's note, or a note that only starts the same way, doesn't count. If that cursor can't be read, the write is still sent, and the note can't be shown to be new: the command says so and exits non-zero. A failed post-write check exits non-zero and says the write may have committed. Reconcile with rig queue show <id> --full --json before retrying. Preserve that exit status in wrappers, and use set -o pipefail when piping its output so a downstream formatter cannot turn failure into success.
create also prints Queue create request ID: <id> (not proof of persistence) on stderr *before* it sends the write, so an interrupted create can be reconciled. That ID names a request, not a row. The row is the qitemId on stdout when the command exits 0. A non-zero exit means no row was confirmed, even when stdout carries a qitemId: an indeterminate answer repeats the request ID so you can reconcile by it. Don't merge stderr into stdout and keep the first qitem-… you find there; a refused create prints its request ID first, too.
A timed-out write can still land late. To retry a create or rig stream emit safely, repeat it unchanged with the same --id (create's request ID, or the emit's own), since the daemon keeps one row or item per ID; an emit sent without --id has no ID to reuse, so look for it with rig stream list --source <seat> before emitting again.
Read back (rig queue show <id> --full --json, or rig queue transitions <id>) when the answer doesn't show what you need, for example:
- the outcome was INDETERMINATE (a transport failure, or a 502
remote_queue_write_failedthat may have reached the
other host), or the write warned qitem_body_not_saved (an existing row came back). Reconcile by the original ID before any retry. A 502 whose failureClass is unknown-host, unsupported-transport or registry isn't indeterminate: the daemon refused before contacting any host and wrote nothing (create says "No row was created"). unsupported-transport means that host entry is SSH-declared. Use the http entry for the same machine from rig host list; if there isn't one, add it with that machine's daemon URL (rig host add --id <id> --transport http --url <daemon-url>), asking whoever runs that host for the URL;
- the output was compact or truncated and the field you need isn't in it (the compact receipt shows
bodyBytes, not
the body, and its footer names what it left out);
- you need a transition note, a closure or blocker detail, or a successor that the output you saw omits;
- you need evidence from downstream of the write: the recipient's wake (
create --verifywaits for it), or its
pickup or claim (a later read);
- your team's custody rule asks for a separate read-back.
Don't read back only to see again a field the response already showed you.
§1b doctrine — turn ends by passing the ball
A turn ends by passing the ball, never by going idle holding the slice waiting on a confirmation the selected process does not include. Follow the current mission-slice-sop: proportional owner checks are the default; independent review runs when selected, at the authored work boundary. Role names do not add per-commit guard, QA, or orchestration gates. Do the authorized work, run its selected checks, and return the outcome through durable custody.
Valid pauses are only:
- A genuine blocker — file a blocked-state qitem against the blocking peer or
surface explicitly to orch.
- A scope-or-architecture question that requires owner input and changes the
plan — surface to orch with the specific decision needed.
Implementing already-authorized work is neither of these. Proceed without phantom-gating on an imagined "next prompt" or "operator confirmation" that the process does not require.
Anti-patterns
- Using
rig sendfor durable work → userig queue createinstead. Sends do
not survive restarts and do not show up in queue/project views.
- Idle-holding a slice for an imagined "next prompt" or "operator confirmation"
that the process does not require → pass the ball via rig queue handoff and proceed to the next slice or stand by for the inbound verdict. See the §1b doctrine above.
- Inlining a multi-line / backtick-heavy body into
rig queue create --body
→ use --body-file /tmp/<descriptive-name>.txt (or - for stdin), the corruption-safe surface. The body parser does not tolerate raw backticks or flag-like tokens inline.
Runtime-Gated Coordination Primitives
OpenRig v0.3.1 is published publicly as @openrig/cli@0.3.1 and GitHub Release v0.3.1. It includes the bundled PL-004 Coordination Primitive System: Phase A rig stream / rig queue, Phase B rig project / rig view, Phase C rig watchdog, and Phase D rig workflow / workflow-keepalive.
These are shipped product surfaces in v0.3.x, but they require a compatible v0.3.x daemon and matching SQLite schema at runtime — the installed package version is not automatically the version of the daemon serving you. If a coordination command behaves unexpectedly, confirm the running daemon with rig whoami --json and daemon status before assuming a product bug.
Default posture:
- Treat daemon
rig queue,rig stream,rig project,rig view,rig watchdog, and
rig workflow as the product coordination surfaces when the active daemon is v0.2.0 or newer.
- Use daemon-backed
rig queuefor durable routing.update / show / list
complement create / handoff for inspection and state changes; records in an unrelated store are not evidence that this daemon owns the work.
- If a daemon-backed coordination command fails, debug the command/runtime/schema edge directly;
do not assume the right workaround is to drop back to a config-layer primitive.
- Do not perform daemon stop/start, production DB copy/mutation, release, publish, or other
consequence-boundary actions unless the operator/workstream has granted that specific gate.
First-user workspace setup
When booting into a rig on a host where the workspace is unset, gap-ridden, or points at a stale layout, address that before substantive project work. The shipped surface is small + bounded — reach for the canonical commands rather than improvising.
Detect workspace state at boot
Agent-actionable when the daemon is reachable.
rig workspace validate --json rig workspace validate <path> --kind <user|project|knowledge|lab|delivery> --json
rig workspace validate walks the workspace root and emits a structured frontmatter-gap report against the v0 contract. Exit code is non-zero when gaps exist (operators chain into hygiene fix loops). Default root is the
Preview shortened. The full SKILL.md is in the pack.
| File | Size | SHA-256 |
|---|---|---|
| SKILL.md | 109.1 kB | 9576ac21a0a5 |
| SKILVAULT_SOURCE.json | 1.2 kB | 1b285cd7afac |
| THIRD_PARTY_NOTICES.md | 10.8 kB | ec282bdb19fa |
Published verbatim from the pinned commit. Nothing is rewritten.
| Version | Pinned commit | Signed | |
|---|---|---|---|
| 0.1.0 Current | e1683a37f5a1 | 23 Nov 2026 |
Locking a skill to one version needs Pro.