@openrig/cli 0.7.12 → 0.7.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/daemon/assets/plugins/openrig/.claude-plugin/icon.png +0 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +2 -2
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +4 -2
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +2 -2
- package/daemon/assets/plugins/openrig/skills/working-with-an-openrig-team/SKILL.md +7 -0
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +2 -2
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +5 -3
- package/daemon/assets/plugins/openrig-core/README.md +6 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +125 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +24 -1
- package/daemon/assets/skills/rigs/SKILL.md +11 -4
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +87 -22
- package/daemon/context-packs/reference/getting-started.md +30 -13
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +18 -0
- package/daemon/context-packs/reference/tmux-servers.md +10 -1
- package/daemon/context-packs/reference/whats-new.md +302 -179
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/SKILL.md +5 -0
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/SKILL.md +7 -0
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +27 -4
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +11 -2
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +32 -9
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +49 -1
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +343 -28
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts +4 -4
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +37 -8
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +9 -1
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +36 -4
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +9 -0
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +23 -3
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/attention-surface.d.ts +8 -0
- package/daemon/dist/attention-surface.d.ts.map +1 -1
- package/daemon/dist/attention-surface.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/connection-contract-surface.d.ts +2 -0
- package/daemon/dist/connection-contract-surface.d.ts.map +1 -0
- package/daemon/dist/connection-contract-surface.js +4 -0
- package/daemon/dist/connection-contract-surface.js.map +1 -0
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +12 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/160_network_bindings.d.ts +7 -0
- package/daemon/dist/db/migrations/160_network_bindings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/160_network_bindings.js +26 -0
- package/daemon/dist/db/migrations/160_network_bindings.js.map +1 -0
- package/daemon/dist/db/migrations/161_network_receipts.d.ts +8 -0
- package/daemon/dist/db/migrations/161_network_receipts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/161_network_receipts.js +25 -0
- package/daemon/dist/db/migrations/161_network_receipts.js.map +1 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts +5 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.js +12 -0
- package/daemon/dist/db/migrations/162_session_address_read_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/163_network_installations.d.ts +7 -0
- package/daemon/dist/db/migrations/163_network_installations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/163_network_installations.js +23 -0
- package/daemon/dist/db/migrations/163_network_installations.js.map +1 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts +5 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js +9 -0
- package/daemon/dist/db/migrations/164_queue_items_reply_to_index.js.map +1 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts +4 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.js +17 -0
- package/daemon/dist/db/migrations/166_queue_list_read_indexes.js.map +1 -0
- package/daemon/dist/domain/agent-activity-store.d.ts +8 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +14 -0
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +5 -0
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +5 -0
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +12 -3
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/connection-contract.d.ts +111 -0
- package/daemon/dist/domain/connection-contract.d.ts.map +1 -0
- package/daemon/dist/domain/connection-contract.js +113 -0
- package/daemon/dist/domain/connection-contract.js.map +1 -0
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +8 -3
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +2 -1
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/execution-view.js +2 -2
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/hosts/pairing-ask.d.ts +8 -0
- package/daemon/dist/domain/hosts/pairing-ask.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/pairing-ask.js +20 -0
- package/daemon/dist/domain/hosts/pairing-ask.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.d.ts +30 -0
- package/daemon/dist/domain/input-read-diagnostic.d.ts.map +1 -0
- package/daemon/dist/domain/input-read-diagnostic.js +32 -0
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -0
- package/daemon/dist/domain/install-engine.d.ts +5 -0
- package/daemon/dist/domain/install-engine.d.ts.map +1 -1
- package/daemon/dist/domain/install-engine.js +28 -26
- package/daemon/dist/domain/install-engine.js.map +1 -1
- package/daemon/dist/domain/install-verifier.d.ts +5 -1
- package/daemon/dist/domain/install-verifier.d.ts.map +1 -1
- package/daemon/dist/domain/install-verifier.js +12 -1
- package/daemon/dist/domain/install-verifier.js.map +1 -1
- package/daemon/dist/domain/managed-block-records.d.ts +9 -3
- package/daemon/dist/domain/managed-block-records.d.ts.map +1 -1
- package/daemon/dist/domain/managed-block-records.js +43 -8
- package/daemon/dist/domain/managed-block-records.js.map +1 -1
- package/daemon/dist/domain/managed-blocks.d.ts +40 -3
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +151 -39
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +3 -2
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-model-picker.d.ts +8 -0
- package/daemon/dist/domain/native-model-picker.d.ts.map +1 -0
- package/daemon/dist/domain/native-model-picker.js +35 -0
- package/daemon/dist/domain/native-model-picker.js.map +1 -0
- package/daemon/dist/domain/native-process-lineage.d.ts +6 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +34 -29
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +6 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +124 -2
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +40 -0
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -0
- package/daemon/dist/domain/network/hub-client.js +102 -0
- package/daemon/dist/domain/network/hub-client.js.map +1 -0
- package/daemon/dist/domain/network/network-bindings.d.ts +104 -0
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-bindings.js +272 -0
- package/daemon/dist/domain/network/network-bindings.js.map +1 -0
- package/daemon/dist/domain/network/network-connector.d.ts +77 -0
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-connector.js +380 -0
- package/daemon/dist/domain/network/network-connector.js.map +1 -0
- package/daemon/dist/domain/network/network-installations.d.ts +97 -0
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-installations.js +371 -0
- package/daemon/dist/domain/network/network-installations.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +6 -5
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts +1 -1
- package/daemon/dist/domain/operation-correlation.d.ts.map +1 -1
- package/daemon/dist/domain/operation-correlation.js +1 -1
- package/daemon/dist/domain/operation-correlation.js.map +1 -1
- package/daemon/dist/domain/package-install-service.d.ts +1 -0
- package/daemon/dist/domain/package-install-service.d.ts.map +1 -1
- package/daemon/dist/domain/package-install-service.js +2 -1
- package/daemon/dist/domain/package-install-service.js.map +1 -1
- package/daemon/dist/domain/plugin-vendor-service.d.ts +9 -0
- package/daemon/dist/domain/plugin-vendor-service.d.ts.map +1 -1
- package/daemon/dist/domain/plugin-vendor-service.js +50 -8
- package/daemon/dist/domain/plugin-vendor-service.js.map +1 -1
- package/daemon/dist/domain/process-observation-pass.d.ts +20 -0
- package/daemon/dist/domain/process-observation-pass.d.ts.map +1 -0
- package/daemon/dist/domain/process-observation-pass.js +80 -0
- package/daemon/dist/domain/process-observation-pass.js.map +1 -0
- package/daemon/dist/domain/proof/judgments.d.ts +12 -13
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +14 -0
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts +1 -1
- package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +45 -22
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts +3 -3
- package/daemon/dist/domain/provider/claude-usage-reader.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-usage-reader.js +16 -5
- package/daemon/dist/domain/provider/claude-usage-reader.js.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.d.ts.map +1 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js +2 -1
- package/daemon/dist/domain/provider/codex-limit-banner.js.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.d.ts +6 -0
- package/daemon/dist/domain/provider/provider-signals.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-signals.js +9 -3
- package/daemon/dist/domain/provider/provider-signals.js.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.d.ts.map +1 -1
- package/daemon/dist/domain/provider/reactive-tap.js +6 -0
- package/daemon/dist/domain/provider/reactive-tap.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +10 -6
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +31 -18
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts +10 -1
- package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.js +25 -3
- package/daemon/dist/domain/queue-recovery.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +39 -3
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +132 -6
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +1 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +5 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +408 -68
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +45 -27
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +6 -0
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/receiver-context.d.ts +9 -0
- package/daemon/dist/domain/receiver-context.d.ts.map +1 -0
- package/daemon/dist/domain/receiver-context.js +25 -0
- package/daemon/dist/domain/receiver-context.js.map +1 -0
- package/daemon/dist/domain/reconciler.d.ts +15 -6
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +26 -26
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +9 -4
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +43 -27
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +6 -0
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +69 -5
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-preconditions.d.ts.map +1 -1
- package/daemon/dist/domain/restore-preconditions.js +2 -1
- package/daemon/dist/domain/restore-preconditions.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +1 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +12 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +24 -1
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +9 -2
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +9 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +2 -0
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +3 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +8 -5
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +9 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +75 -9
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +18 -2
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +13 -8
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +46 -26
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +7 -4
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +16 -5
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +4 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +44 -10
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +5 -2
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +60 -16
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.d.ts +0 -3
- package/daemon/dist/domain/slow-op-recorder.d.ts.map +1 -1
- package/daemon/dist/domain/slow-op-recorder.js +5 -34
- package/daemon/dist/domain/slow-op-recorder.js.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.js +22 -13
- package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +8 -3
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +5 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +11 -6
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/team-operations.d.ts +20 -0
- package/daemon/dist/domain/team-operations.d.ts.map +1 -0
- package/daemon/dist/domain/team-operations.js +23 -0
- package/daemon/dist/domain/team-operations.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +12 -2
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +52 -2
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts +42 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.js +118 -0
- package/daemon/dist/domain/terminal/herdr-live-workspace.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +3 -0
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-adapter.d.ts +3 -0
- package/daemon/dist/domain/terminal/rex-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-adapter.js +10 -1
- package/daemon/dist/domain/terminal/rex-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts +76 -0
- package/daemon/dist/domain/terminal/rex-agent-status.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rex-agent-status.js +168 -0
- package/daemon/dist/domain/terminal/rex-agent-status.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +12 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +3 -2
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/tmux-option-defaults.d.ts +4 -4
- package/daemon/dist/domain/tmux-option-defaults.d.ts.map +1 -1
- package/daemon/dist/domain/tmux-option-defaults.js +25 -12
- package/daemon/dist/domain/tmux-option-defaults.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +12 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts +8 -2
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +5 -2
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +15 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +108 -44
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +8 -3
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.js +4 -2
- package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +8 -0
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +34 -10
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-validator.js +16 -0
- package/daemon/dist/domain/workflow-validator.js.map +1 -1
- package/daemon/dist/herdr-live-workspace-surface.d.ts +2 -0
- package/daemon/dist/herdr-live-workspace-surface.d.ts.map +1 -0
- package/daemon/dist/herdr-live-workspace-surface.js +2 -0
- package/daemon/dist/herdr-live-workspace-surface.js.map +1 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +3 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +12 -0
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +5 -1
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +30 -46
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +13 -0
- package/daemon/dist/routes/network.d.ts.map +1 -0
- package/daemon/dist/routes/network.js +93 -0
- package/daemon/dist/routes/network.js.map +1 -0
- package/daemon/dist/routes/packages.js +3 -1
- package/daemon/dist/routes/packages.js.map +1 -1
- package/daemon/dist/routes/proof.d.ts.map +1 -1
- package/daemon/dist/routes/proof.js +6 -4
- package/daemon/dist/routes/proof.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +13 -0
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigspec.js +13 -4
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +24 -5
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts +1 -0
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +66 -16
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/spec-library.d.ts.map +1 -1
- package/daemon/dist/routes/spec-library.js +7 -3
- package/daemon/dist/routes/spec-library.js.map +1 -1
- package/daemon/dist/routes/terminal.js +1 -1
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/server.d.ts +3 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +7 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +35 -31
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/tmux-server-start-surface.d.ts +2 -0
- package/daemon/dist/tmux-server-start-surface.d.ts.map +1 -0
- package/daemon/dist/tmux-server-start-surface.js +2 -0
- package/daemon/dist/tmux-server-start-surface.js.map +1 -0
- package/daemon/dist/tmux-server-start.d.ts +13 -0
- package/daemon/dist/tmux-server-start.d.ts.map +1 -0
- package/daemon/dist/tmux-server-start.js +36 -0
- package/daemon/dist/tmux-server-start.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +52 -17
- package/daemon/docs/reference/agent-state-taxonomy.md +2 -1
- package/daemon/docs/reference/claude-status-line.md +25 -9
- package/daemon/docs/reference/daemon-http-clients.md +42 -0
- package/daemon/docs/reference/getting-started.md +30 -13
- package/daemon/docs/reference/herdr-app.md +3 -2
- package/daemon/docs/reference/hosted-members.md +60 -4
- package/daemon/docs/reference/keeping-a-watch.md +28 -0
- package/daemon/docs/reference/network-connector.md +185 -0
- package/daemon/docs/reference/operation-correlation.md +18 -2
- package/daemon/docs/reference/queue-erasure.md +7 -5
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/rig-spec.md +18 -0
- package/daemon/docs/reference/rosters.md +5 -0
- package/daemon/docs/reference/seat-delivery.md +16 -1
- package/daemon/docs/reference/terminal-sessions.md +12 -0
- package/daemon/docs/reference/tmux-servers.md +10 -1
- package/daemon/docs/reference/whats-new.md +302 -179
- package/daemon/specs/agents/shared/skills/core/watchdog/SKILL.md +5 -0
- package/daemon/specs/agents/shared/skills/core/working-with-an-openrig-team/SKILL.md +7 -0
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +66 -24
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +11 -3
- package/dist/build-info.js +3 -3
- package/dist/commands/broadcast.js +7 -3
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +8 -3
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +50 -10
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/daemon.d.ts +4 -2
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +28 -4
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/doctor.js +1 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +2 -1
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +5 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.d.ts +4 -10
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +9 -36
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/import.d.ts.map +1 -1
- package/dist/commands/import.js +96 -3
- package/dist/commands/import.js.map +1 -1
- package/dist/commands/network.d.ts +12 -0
- package/dist/commands/network.d.ts.map +1 -0
- package/dist/commands/network.js +150 -0
- package/dist/commands/network.js.map +1 -0
- package/dist/commands/package.d.ts.map +1 -1
- package/dist/commands/package.js +5 -0
- package/dist/commands/package.js.map +1 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +44 -0
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +68 -3
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +15 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/roster.js +38 -2
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +6 -5
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +4 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +6 -1
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +9 -7
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/watchdog.d.ts.map +1 -1
- package/dist/commands/watchdog.js +22 -2
- package/dist/commands/watchdog.js.map +1 -1
- package/dist/config-store.d.ts +14 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +34 -5
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +6 -1
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +11 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +61 -9
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-reachability.js +1 -1
- package/dist/daemon-reachability.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-program.d.ts.map +1 -1
- package/dist/lazy-program.js +1 -0
- package/dist/lazy-program.js.map +1 -1
- package/dist/lib/check-in.d.ts +7 -0
- package/dist/lib/check-in.d.ts.map +1 -0
- package/dist/lib/check-in.js +13 -0
- package/dist/lib/check-in.js.map +1 -0
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +25 -2
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +12 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +185 -57
- package/dist/mcp-server.js.map +1 -1
- package/dist/person-registration-offer.d.ts +10 -0
- package/dist/person-registration-offer.d.ts.map +1 -0
- package/dist/person-registration-offer.js +25 -0
- package/dist/person-registration-offer.js.map +1 -0
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +20 -102
- package/dist/terminal-window.js.map +1 -1
- package/dist/tmux-attachment.d.ts.map +1 -1
- package/dist/tmux-attachment.js +3 -1
- package/dist/tmux-attachment.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +10 -5
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/config/pairing.d.ts.map +1 -1
- package/tui/dist/config/pairing.js +8 -3
- package/tui/dist/config/pairing.js.map +1 -1
- package/tui/dist/connected-assistants.d.ts +20 -0
- package/tui/dist/connected-assistants.d.ts.map +1 -0
- package/tui/dist/connected-assistants.js +51 -0
- package/tui/dist/connected-assistants.js.map +1 -0
- package/tui/dist/daemon-client.d.ts +8 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +8 -0
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +19 -4
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.js +1 -1
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +48 -29
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/state.js +2 -2
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +4 -0
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/topology/glyphs.d.ts.map +1 -1
- package/tui/dist/topology/glyphs.js +4 -0
- package/tui/dist/topology/glyphs.js.map +1 -1
- package/tui/dist/topology/host-label.d.ts +2 -0
- package/tui/dist/topology/host-label.d.ts.map +1 -1
- package/tui/dist/topology/host-label.js +7 -1
- package/tui/dist/topology/host-label.js.map +1 -1
- package/tui/dist/types.d.ts +13 -1
- package/tui/dist/types.d.ts.map +1 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/** tmux 3.3a–3.6 inherits its creating client's limits. This runs in that child only:
|
|
2
|
+
* never lower an already higher soft limit, change the hard limit, or restart a server. */
|
|
3
|
+
export const TMUX_SERVER_LIMIT_WARNING = "[tmux] Could not raise the open-file limit for a new terminal server; continuing with the inherited limit.";
|
|
4
|
+
export const TMUX_SERVER_LIMIT_PREFIX = `
|
|
5
|
+
openrig_tmux_nofile() {
|
|
6
|
+
openrig_tmux_soft=$(ulimit -S -n) || return 1
|
|
7
|
+
case "$openrig_tmux_soft" in unlimited) return 0;; ''|*[!0-9]*) return 1;; esac
|
|
8
|
+
openrig_tmux_hard=$(ulimit -H -n) || return 1
|
|
9
|
+
openrig_tmux_target=8192
|
|
10
|
+
case "$openrig_tmux_hard" in
|
|
11
|
+
unlimited) ;;
|
|
12
|
+
''|*[!0-9]*) return 1;;
|
|
13
|
+
*) if [ "$openrig_tmux_hard" -lt "$openrig_tmux_target" ]; then openrig_tmux_target=$openrig_tmux_hard; fi;;
|
|
14
|
+
esac
|
|
15
|
+
[ "$openrig_tmux_soft" -ge "$openrig_tmux_target" ] || ulimit -S -n "$openrig_tmux_target"
|
|
16
|
+
}
|
|
17
|
+
openrig_tmux_nofile 2>/dev/null || printf '%s\\n' '${TMUX_SERVER_LIMIT_WARNING}' >&2
|
|
18
|
+
`;
|
|
19
|
+
/** Production callers use full command names. A matching data argument merely gets the same harmless child limit. */
|
|
20
|
+
export function mayStartTmuxServer(args) {
|
|
21
|
+
return args.some(arg => ["new-session", "start-server", "attach-session", "-D"].includes(arg));
|
|
22
|
+
}
|
|
23
|
+
export function tmuxServerStartCommand(file, args) {
|
|
24
|
+
if (process.platform === "win32" || !mayStartTmuxServer(args))
|
|
25
|
+
return { file, args };
|
|
26
|
+
return { file: "/bin/sh", args: ["-c", TMUX_SERVER_LIMIT_PREFIX + 'exec "$0" "$@"', file, ...args] };
|
|
27
|
+
}
|
|
28
|
+
let warned = false;
|
|
29
|
+
/** execFile captures stderr even on success; surface this advisory once per process. */
|
|
30
|
+
export function reportTmuxServerLimit(stderr) {
|
|
31
|
+
if (!warned && String(stderr ?? "").includes(TMUX_SERVER_LIMIT_WARNING)) {
|
|
32
|
+
warned = true;
|
|
33
|
+
console.warn(TMUX_SERVER_LIMIT_WARNING);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=tmux-server-start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tmux-server-start.js","sourceRoot":"","sources":["../src/tmux-server-start.ts"],"names":[],"mappings":"AAAA;2FAC2F;AAC3F,MAAM,CAAC,MAAM,yBAAyB,GAAG,4GAA4G,CAAC;AACtJ,MAAM,CAAC,MAAM,wBAAwB,GAAG;;;;;;;;;;;;;qDAaa,yBAAyB;CAC7E,CAAC;AAEF,qHAAqH;AACrH,MAAM,UAAU,kBAAkB,CAAC,IAAuB;IACxD,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,cAAc,EAAE,gBAAgB,EAAE,IAAI,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,IAAY,EAAE,IAAc;IACjE,IAAI,OAAO,CAAC,QAAQ,KAAK,OAAO,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrF,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,IAAI,EAAE,wBAAwB,GAAG,gBAAgB,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;AACvG,CAAC;AAED,IAAI,MAAM,GAAG,KAAK,CAAC;AACnB,wFAAwF;AACxF,MAAM,UAAU,qBAAqB,CAAC,MAAe;IACnD,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,yBAAyB,CAAC,EAAE,CAAC;QACxE,MAAM,GAAG,IAAI,CAAC;QACd,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;IAC1C,CAAC;AACH,CAAC"}
|
|
@@ -35,8 +35,17 @@ command. `rig ps --nodes` shows it under "Startup details (<seat>)", and
|
|
|
35
35
|
|
|
36
36
|
The attention codes that stop startup this way are `trust_gate`,
|
|
37
37
|
`hook_trust_gate`, `update_gate`, `login_required`, `mcp_gate`,
|
|
38
|
-
`bypass_consent_gate`, `
|
|
38
|
+
`bypass_consent_gate`, `claude_resume_selection_prompt`,
|
|
39
|
+
`claude_gated_grants_gate`, `codex_auth_refusal` and `codex_client_incompatible`.
|
|
39
40
|
They are recognized from each harness's English prompt text.
|
|
41
|
+
`claude_gated_grants_gate` is Claude Code's workspace trust check that warns "This folder
|
|
42
|
+
pre-approves N tool permissions" (from the folder's `.claude/settings.json`): OpenRig never
|
|
43
|
+
answers it, not even with `recovery.auto_drive_provider_prompts`, because its default choice
|
|
44
|
+
declines those permissions (or exits) and approving them is your call. With that setting on,
|
|
45
|
+
the plain workspace trust prompt is answered only when its options are exactly "No, exit" and
|
|
46
|
+
"Yes, I trust this folder": Claude Code 2.1.322 opens it on "No, exit", so OpenRig moves the
|
|
47
|
+
selection down once and presses Enter only after it reads the focus on "Yes". Any other option
|
|
48
|
+
set, a prompt drawn without a cursor or a focus that does not reach "Yes" gets no confirmation.
|
|
40
49
|
|
|
41
50
|
## Continue a Codex fork whose child ID arrived late
|
|
42
51
|
|
|
@@ -75,20 +84,20 @@ in the rig's `attentionCount` and the TUI's attention totals.
|
|
|
75
84
|
After a full restore of a Claude or Codex seat, answering the prompt is enough. When
|
|
76
85
|
the seat's activity next turns to running or idle, or when the whole restore completes
|
|
77
86
|
after the seat already reads running or idle, the daemon checks the live seat: its tmux
|
|
78
|
-
session is alive, and the pane
|
|
79
|
-
records. When the check passes, the restore outcome becomes `operator_recovered`, so
|
|
80
|
-
the restore no longer makes the seat need attention. When
|
|
81
|
-
stays and the seat still needs attention
|
|
82
|
-
|
|
83
|
-
the newer outcome.
|
|
87
|
+
session is alive, and the agent in its pane was started to resume the conversation the
|
|
88
|
+
seat records. When the check passes, the restore outcome becomes `operator_recovered`, so
|
|
89
|
+
the restore no longer makes the seat need attention. When the check fails, the restore
|
|
90
|
+
outcome stays and the seat still needs attention. The check uses launch evidence; it
|
|
91
|
+
does not prove which conversation is open now.
|
|
84
92
|
|
|
85
93
|
`rig seat clear-attention <seat>` runs the same check on demand. When it fails, the
|
|
86
|
-
command says which check failed, and `--reason` doesn't bypass it. If
|
|
87
|
-
the
|
|
88
|
-
`rig seat set-resume-token <seat> --token-stdin --reason <text>`, then run
|
|
89
|
-
`clear-attention` again
|
|
90
|
-
|
|
91
|
-
outcome instead
|
|
94
|
+
command says which check failed, and `--reason` doesn't bypass it. If the seat records
|
|
95
|
+
the wrong conversation and the agent in its pane was started with the right one, set it
|
|
96
|
+
with `rig seat set-resume-token <seat> --token-stdin --reason <text>`, then run
|
|
97
|
+
`clear-attention` again; a token the running agent wasn't started with fails the same
|
|
98
|
+
check. After a restore of only some seats, or a community harness's assisted startup,
|
|
99
|
+
`--reason "<what you saw>"` can acknowledge the outcome instead, once any startup text
|
|
100
|
+
left in the input box is submitted (not sent again) and the seat has responded.
|
|
92
101
|
|
|
93
102
|
## Two Categories of Startup
|
|
94
103
|
|
|
@@ -278,7 +287,10 @@ with an old Claude header or input frame above it and Claude already running. A
|
|
|
278
287
|
input frame also keeps the check pending. If the current screen or process cannot be read, or the process identity is unconfirmed, the handover keeps
|
|
279
288
|
waiting within the readiness window and fails if that window expires. Old screen text or the `claude` process label
|
|
280
289
|
alone cannot complete this check. A healthy agent can therefore remain unconfirmed while those observations are
|
|
281
|
-
unavailable; inspect its pane before deciding how to recover.
|
|
290
|
+
unavailable; inspect its pane before deciding how to recover. When the launch was already sent, the failure's
|
|
291
|
+
guidance names that pane and the result carries `replacementStarted` and `successorPane`: the previous agent was
|
|
292
|
+
already ended, the new one may be working there without being registered as the seat's occupant, and another
|
|
293
|
+
handover or `rig seat launch <seat> --fresh --stop --reason <why>` ends it if it goes ahead.
|
|
282
294
|
|
|
283
295
|
**Claude submission check.** For each startup message to a Claude seat, OpenRig makes a bounded check that the prompt
|
|
284
296
|
was submitted. When the capture can't tell, it records the submission as unverified and carries on. When it sees the
|
|
@@ -357,6 +369,15 @@ not the destination's file contents.)
|
|
|
357
369
|
- `rig seat launch <seat> --fresh --stop --reason <text>`, which starts a blank conversation; or
|
|
358
370
|
- `rig handover <seat> --source rebuild --reason <text>`, which carries durable context.
|
|
359
371
|
|
|
372
|
+
A rebuild lists the current recap, lineage lessons and restore packet as required
|
|
373
|
+
priming. Superseded recaps are optional history, newest first. The briefing shows
|
|
374
|
+
the newest `output.rebuild_recaps` paths (default 3) and their shared
|
|
375
|
+
`recap-superseded/` folder when that pointer covers the complete history. Other
|
|
376
|
+
layouts retain the full list. Set `rig config set output.rebuild_recaps 0` to
|
|
377
|
+
always list every path; `OPENRIG_OUTPUT_REBUILD_RECAPS` overrides the setting.
|
|
378
|
+
This changes only the briefing: the handover result still records every resolved
|
|
379
|
+
artifact, and no recap file is removed.
|
|
380
|
+
|
|
360
381
|
For Codex rebuilds, OpenRig also carries a complete supported native permission policy read from the live
|
|
361
382
|
predecessor's own conversation and process, without adding fresh-launch grants. A later recorded seat permission
|
|
362
383
|
or policy choice, or a differing declared successor profile, takes precedence. Missing, stale or unsupported observations keep the existing launch
|
|
@@ -402,6 +423,11 @@ Each startup file and action specifies when it applies:
|
|
|
402
423
|
- a launch replaces it, as launches always did, and names it (`guidance_block_refreshed_unrecorded`);
|
|
403
424
|
- an exact resume or a handover leaves it, and names it as possibly stale (`guidance_block_may_be_stale`).
|
|
404
425
|
|
|
426
|
+
**A file keeps one copy of each distinct block text, and nothing you wrote is removed.**
|
|
427
|
+
- **Touched markers:** a marker an editor or formatter rewrapped, with spaces or line breaks inside the comment, still reads as its block, and the next write puts it back in OpenRig's form.
|
|
428
|
+
- **Collected copies:** a copy that repeats an earlier one exactly is removed. Beside a copy you edited, OpenRig's own unedited copies are removed too, and every different edited copy stays (`guidance_block_copies_removed`).
|
|
429
|
+
- **A marker that lost its pair:** OpenRig can't tell where that block starts or ends, so it adds no copy beside it and names it (`guidance_block_markers_damaged`). Put back the missing marker or remove the partial block, and OpenRig's next write treats that block like any other. `rig package install` leaves such a file as it is, names it in its result (`notes`), and installs the rest. A marker without its pair beside a complete block is named too (`guidance_block_marker_unpaired`), and the block is written.
|
|
430
|
+
|
|
405
431
|
An exact resume doesn't type anything into the resumed conversation. So there, the restore result names the block (`guidanceNotes`), but the seat isn't told.
|
|
406
432
|
|
|
407
433
|
Use this to avoid re-sending context that a fresh conversation doesn't need twice. For example, a one-time project briefing might only apply on `fresh_start`, while identity grounding should apply on both, so a seat that comes back fresh gets it again.
|
|
@@ -607,14 +633,23 @@ daemon's `CODEX_HOME`, else `~/.codex`.
|
|
|
607
633
|
The guidance still goes to the repository `AGENTS.md`, as before, when:
|
|
608
634
|
|
|
609
635
|
- a layer OpenRig reads sets `developer_instructions`, or can't be read. A launch warning names the file;
|
|
610
|
-
- the launch
|
|
611
|
-
|
|
612
|
-
- the seat is restored, even when the restore starts a new conversation. A restore keeps the guidance file its launch
|
|
636
|
+
- the launch forks a conversation. Developer instructions on a fork haven't been tested;
|
|
637
|
+
- the seat is restored and the restore starts a new conversation. A restore keeps the guidance file its launch
|
|
613
638
|
recorded, which for Codex is the repository `AGENTS.md`;
|
|
614
639
|
- a handover successor starts (fresh, fork or rebuild). Its launch carries no guidance of its own, so the handover
|
|
615
640
|
first puts the seat's missing blocks back in the repository `AGENTS.md` from its saved startup context;
|
|
616
641
|
- Codex is older than 0.164.0, or its version is unknown.
|
|
617
642
|
|
|
643
|
+
A resume of the seat's own conversation, on a snapshot restore or `rig up --existing`, chooses as a fresh launch
|
|
644
|
+
does: on Codex 0.164.0 or later with none configured, the guidance blocks the repository `AGENTS.md` doesn't hold go
|
|
645
|
+
with the resume as `-c developer_instructions=…` instead of being put back in that file, and the guidance file its
|
|
646
|
+
launch recorded isn't changed. A file that already holds blocks keeps them: a block OpenRig wrote whose source has
|
|
647
|
+
changed is refreshed, and one edited by hand, or with no record of OpenRig writing it, is left as it is and named. A
|
|
648
|
+
block whose source is gone or can't be read isn't sent, and the restore reports it as missing. A seat in a rig without
|
|
649
|
+
pods starts its resumed conversation before its startup runs, so its missing blocks are still put back in the
|
|
650
|
+
repository `AGENTS.md`. Whether Codex keeps the earlier session's developer instructions as well isn't documented
|
|
651
|
+
by Codex; the text sent with the resume is the current one.
|
|
652
|
+
|
|
618
653
|
A seat's role still arrives as startup text, and the seat-skills line, after the person's yes, still goes to
|
|
619
654
|
`AGENTS.md`.
|
|
620
655
|
|
|
@@ -202,7 +202,8 @@ LIFECYCLE); see the
|
|
|
202
202
|
its startup context is still pending for `rig seat continue`.
|
|
203
203
|
- **Oriented:** `verified`, `missing`, `rejected`, `n-a`, from the startup proof.
|
|
204
204
|
- **Attention codes:** `trust_gate`, `hook_trust_gate`, `update_gate`, `login_required`,
|
|
205
|
-
`mcp_gate`, `bypass_consent_gate`, `
|
|
205
|
+
`mcp_gate`, `bypass_consent_gate`, `claude_resume_selection_prompt`,
|
|
206
|
+
`claude_gated_grants_gate`, `codex_auth_refusal`, `codex_client_incompatible`.
|
|
206
207
|
- **Restore outcome:** `resumed`, `fresh-primed`, `awaiting-decision`, `attention_required`,
|
|
207
208
|
`failed` (plus `rebuilt`, `operator_recovered` and the legacy `fresh`). A seat joined with
|
|
208
209
|
`rig attach` as an external CLI reads `left_attached`: restore leaves it as it is.
|
|
@@ -13,7 +13,9 @@ provider usage stop updating, and Claude resume-token capture at adoption or
|
|
|
13
13
|
handover loses its current session evidence. An earlier sidecar can remain and
|
|
14
14
|
contain an older session ID; without one, context and capture report
|
|
15
15
|
`missing_sidecar`, and provider usage reports `no_statusline_cache_yet` unless an
|
|
16
|
-
earlier cache remains.
|
|
16
|
+
earlier cache remains. A cache that exists but cannot be read reports
|
|
17
|
+
`claude_statusline_cache_unreadable`; a readable cache that carried no rate
|
|
18
|
+
limits reports `claude_statusline_cache_had_no_windows`.
|
|
17
19
|
|
|
18
20
|
## Feed both commands the same input
|
|
19
21
|
|
|
@@ -84,11 +86,23 @@ so its rate-limit hook is attributed to that seat too. This is appropriate when
|
|
|
84
86
|
the helper uses the same login, since the quota belongs to the account. A
|
|
85
87
|
helper on a different login is attributed the same way, so its rate limit can
|
|
86
88
|
hold pending handoffs to every seat in that seat's Claude pool for one retry
|
|
87
|
-
interval, even when the seat's own login still has room.
|
|
88
|
-
not
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
interval, even when the seat's own login still has room. A reset time the
|
|
90
|
+
helper's message states is not used: OpenRig keeps a stated reset only when the
|
|
91
|
+
hook's Claude `session_id` is the seat's own resume token, so a helper never
|
|
92
|
+
holds the pool past that one interval.
|
|
93
|
+
|
|
94
|
+
The event carries no usage percentage or account identity. When the seat's own
|
|
95
|
+
Claude states when the limit resets (for example `resets Nov 10, 4pm
|
|
96
|
+
(America/Sao_Paulo)`, `resets in 2h 30m`, or the older `usage limit
|
|
97
|
+
reached|<epoch>`), the hook relay reads that time on the seat's machine and
|
|
98
|
+
forwards only the resulting timestamp (`resetsAt`), never the message text. It
|
|
99
|
+
reads the reset only after the typed `rate_limit` failure; the text never
|
|
100
|
+
decides that a seat is limited. A reset it can't read completely (an unknown or
|
|
101
|
+
truncated time zone, an unsupported unit, a date that doesn't exist such as Feb
|
|
102
|
+
30) or that is in the past or more than eight days away gives no reset. The
|
|
103
|
+
daemon applies the same eight-day bound to any sender.
|
|
104
|
+
|
|
105
|
+
The event marks the Claude provider pool as limited and preserves a current
|
|
92
106
|
`agentActivity.reason` of `usage_limit` over a cached idle reading. It does not
|
|
93
107
|
count as a request for human input; a newer permission prompt still takes
|
|
94
108
|
precedence in the seat's activity display. Conflicting seat windows retain the
|
|
@@ -99,13 +113,15 @@ Pending work handled by the wake ladder uses the existing local Claude pool
|
|
|
99
113
|
declare different Claude config directories. If reset windows conflict within
|
|
100
114
|
a proposed shared pool, only the seats reporting exhaustion are held; another
|
|
101
115
|
seat's pending handoffs can still retry. An exhausted status line window with
|
|
102
|
-
a known reset supplies the timer
|
|
116
|
+
a known reset supplies the timer, and so does a reset the seat's own typed
|
|
117
|
+
failure stated (`provider-reset`). Otherwise a typed failure uses
|
|
103
118
|
`queue.wake_retry_interval_seconds` (default 300) from the event time, plus the
|
|
104
119
|
existing wake jitter, and records `config-fallback`. That is a retry time, not a
|
|
105
120
|
claim that the provider's quota will reset then. The timer releases the shared
|
|
106
121
|
blocker once and retains the existing durable wake delivery behavior.
|
|
107
122
|
|
|
108
123
|
Authentication, billing and overloaded errors are not classified as usage
|
|
109
|
-
limits. Claude limit banners are not scraped, and older
|
|
110
|
-
that do not emit this hook still depend on status line
|
|
124
|
+
limits. Claude limit banners are not scraped from the terminal, and older
|
|
125
|
+
runtimes or failures that do not emit this hook still depend on status line
|
|
126
|
+
data. Without either
|
|
111
127
|
source, provider usage remains unknown.
|
|
@@ -82,6 +82,13 @@ All of them are server-sent events (`text/event-stream`):
|
|
|
82
82
|
`?replay=all`, no `replay`, or any other value sends the whole log first. A `Last-Event-ID` header (what
|
|
83
83
|
`EventSource` sends when it reconnects) sends the events after that id instead, whatever `replay` says.
|
|
84
84
|
Live events that arrive during the replay follow it, without duplicates.
|
|
85
|
+
When a person clicks an answer on an ask with questions (in Steering, the Feed, Slack or an MCP client), the stream
|
|
86
|
+
carries `queue.answer_recorded`: `{ qitemId, actorSession, questionId, answered, questions, complete, summary }`.
|
|
87
|
+
`complete: false` means the set is still partial: the ask stays open, and its answers haven't gone back yet. The
|
|
88
|
+
event carries ids and counts, not the choice; read the ask for its `humanAnswers`. A click that changes nothing (the
|
|
89
|
+
same option again) has no event, and neither does a typed reply, which settles the ask through its own
|
|
90
|
+
`queue.updated`. The event is recorded after the answer: if it can't be recorded, the answer still stands, so a
|
|
91
|
+
client that re-reads the ask after a gap still sees it.
|
|
85
92
|
- **`GET /api/activity/events`**: live only, no replay or ids. Each message is named after its event type:
|
|
86
93
|
`seat.activity_changed`, `seat.rung_health`, `proof.judged` or `proof.sources_changed`. It tells a view to read
|
|
87
94
|
again; it carries no derived state.
|
|
@@ -151,6 +158,41 @@ An outbox entry's `deliveryState` reports the send attempt; only `delivered` con
|
|
|
151
158
|
an open FYI, or a closed ask is not that receipt. The rig-wide reads and their limits are described below; the existing
|
|
152
159
|
`outbox/list?senderSession=<session>` read remains available.
|
|
153
160
|
|
|
161
|
+
### What needs a person, and how their answers link back (`team-operations.v1`)
|
|
162
|
+
|
|
163
|
+
`GET /api/team-operations/capabilities` says which team-operations jobs this daemon supports, separately from its
|
|
164
|
+
build:
|
|
165
|
+
|
|
166
|
+
```json
|
|
167
|
+
{ "contract": "team-operations.v1",
|
|
168
|
+
"capabilities": { "needs-me.read": "supported", "needs-me.answer": "not-supported", "needs-me.follow": "not-supported" },
|
|
169
|
+
"build": { "semver": "…", "commit": "…" } }
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
A capability reads `supported`, `not-supported` or `unknown`, and a missing key means `unknown`. A daemon without the
|
|
173
|
+
route (HTTP 404) predates the contract: keep reading what it already returns. In a source run, `build` is
|
|
174
|
+
`{ semver: null, commit: null }`.
|
|
175
|
+
|
|
176
|
+
With `needs-me.read` supported:
|
|
177
|
+
|
|
178
|
+
- **What needs the person:** `GET /api/attention?view=<person-id>` (the same read as the Feed). Each queue item adds
|
|
179
|
+
`revision` and `about`. `revision` is the request's opaque decision revision: the same value as that row's
|
|
180
|
+
`decisionRevision`, and what an answer can name as `expectedRevision` so it applies only to the version the person
|
|
181
|
+
read. `about` lists the requests it concerns by id: a row parked on the person is itself the request, and an ask is
|
|
182
|
+
about the open rows blocked on it (at most 100; empty when none are recorded).
|
|
183
|
+
- **A snapshot watermark:** the response's `watermark` is the newest event `seq` read before the snapshot. Follow
|
|
184
|
+
`GET /api/events` from it with `Last-Event-ID: <watermark>`: every event after the snapshot is replayed, some possibly
|
|
185
|
+
already reflected in it. A click that records or changes an answer emits `queue.answer_recorded` even while the set
|
|
186
|
+
is partial. An identical repeated choice, or a later click after a pending ask's answer set is complete, records
|
|
187
|
+
nothing new and emits none. Events are best effort; re-read the snapshot or row after a stream gap.
|
|
188
|
+
- **The answers returned to a request:** `GET /api/queue/<qitemId>` adds `answers`, oldest first, each
|
|
189
|
+
`{ qitemId, by, at, text, episode, recordedIdentity }`. They are found by the answer row's link to the request, not
|
|
190
|
+
by its text, so don't parse the `In reply to:` line in an answer's body. `text` is the person's answer without that
|
|
191
|
+
footer. `episode` names the park an answer belongs to, or is null. `recordedIdentity` is the identity provenance
|
|
192
|
+
recorded when the answer row was created. An answer row's own read has `replyTo`, the request it answers. A partial
|
|
193
|
+
set of choices stays on the request's `humanAnswers` until the whole set is returned. A runner's permission request
|
|
194
|
+
or a host pairing request is answered in place, with no answer row.
|
|
195
|
+
|
|
154
196
|
## Route details
|
|
155
197
|
|
|
156
198
|
- **A rig's queue history:** `GET /api/queue/list?rig=<rig>&updatedSince=<ISO time>&sort=updated` returns the
|
|
@@ -180,20 +180,22 @@ user.
|
|
|
180
180
|
|
|
181
181
|
**Agents:** if you're setting OpenRig up for someone, load the `rigs` skill and follow it. It carries the install, the
|
|
182
182
|
OpenRig view and the handoff to the operator as one procedure. From 0.6.7, OpenRig installs it as `rigs` in
|
|
183
|
-
`~/.claude/skills` and `~/.agents/skills` when the daemon starts.
|
|
184
|
-
|
|
185
|
-
`rig --version` prints the version and a commit, for example `0.6.11 (379f0a0d)`; the tag is `v0.6.11`.
|
|
186
|
-
The skill is in the repository from v0.6.6; on an older install, use the v0.6.6 tag or upgrade first.
|
|
187
|
-
Choose the command for the agent doing the setup:
|
|
183
|
+
`~/.claude/skills` and `~/.agents/skills` when the daemon starts. For a new install, add it with the command for the
|
|
184
|
+
agent doing the setup. Both use this release's tag:
|
|
188
185
|
|
|
189
186
|
```sh
|
|
190
187
|
# Claude Code
|
|
191
|
-
npx skills add "https://github.com/mvschwarz/openrig/tree
|
|
188
|
+
npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs" --skill rigs --agent claude-code
|
|
192
189
|
|
|
193
190
|
# Codex
|
|
194
|
-
npx skills add "https://github.com/mvschwarz/openrig/tree
|
|
191
|
+
npx skills add "https://github.com/mvschwarz/openrig/tree/v0.7.14/skills/rigs" --skill rigs --agent codex
|
|
195
192
|
```
|
|
196
193
|
|
|
194
|
+
If OpenRig is already installed, use the release tag matching your installed `rig --version` instead: replace the tag
|
|
195
|
+
after `tree/` with it, including its `v` prefix. `rig --version` prints the version and a commit, for example
|
|
196
|
+
`0.6.11 (379f0a0d)`; the tag is `v0.6.11`. The skill is in the repository from v0.6.6; on an older install, use the
|
|
197
|
+
v0.6.6 tag or upgrade first.
|
|
198
|
+
|
|
197
199
|
These are the pinned, per-agent forms used on the [rigs pages](https://openrig.dev/rigs).
|
|
198
200
|
You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
|
|
199
201
|
|
|
@@ -201,11 +203,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
|
|
|
201
203
|
script will do and changes nothing:
|
|
202
204
|
|
|
203
205
|
```sh
|
|
204
|
-
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
206
|
+
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.14/scripts/install.sh | sh -s -- --dry-run
|
|
205
207
|
```
|
|
206
208
|
|
|
207
209
|
The same command without `--dry-run`,
|
|
208
|
-
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
210
|
+
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.14/scripts/install.sh | sh`, installs the
|
|
209
211
|
latest published `@openrig/cli` with `npm install -g`,
|
|
210
212
|
runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
|
|
211
213
|
Codex and may install a missing one, as described below. A failed step prints
|
|
@@ -342,9 +344,21 @@ startup reconcile leaves when every kernel terminal is gone, for example after a
|
|
|
342
344
|
reboot. It does not detect a reboot as such. It uses the same restore as
|
|
343
345
|
`rig up kernel --existing`, and `rig status` reports it as `Kernel: booting`
|
|
344
346
|
until the seats are ready. A kernel stopped with `rig down kernel`, including
|
|
345
|
-
one whose seats were already detached, stays down on later starts
|
|
346
|
-
with
|
|
347
|
-
`rig up kernel --existing
|
|
347
|
+
one whose seats were already detached, stays down on later starts; start it again
|
|
348
|
+
with `rig up kernel --existing`. A seat you stopped or unclaimed also stays down.
|
|
349
|
+
While the kernel's other seats are running, `rig up kernel --existing` refuses
|
|
350
|
+
(it restores only a kernel with no live session), so start one stopped seat with
|
|
351
|
+
`rig launch kernel <logical id>` (`--plan` first). It restores that seat from the
|
|
352
|
+
kernel snapshot that restore ranks first: the newest usable automatic one (taken
|
|
353
|
+
before `rig down`, on the periodic schedule, or at a runtime switch), even when a
|
|
354
|
+
manual one is newer, and otherwise the newest usable one. `--plan` names the
|
|
355
|
+
snapshot it picked and any newer usable one, and `--snapshot-id <id>` picks one
|
|
356
|
+
yourself. Under the default restore policy, which the kernel's seats keep, it
|
|
357
|
+
resumes the seat's saved conversation; a seat it can't resume is reported as
|
|
358
|
+
waiting for a decision, not as started.
|
|
359
|
+
`rig seat launch <seat> --fresh --reason "…"` instead starts a new conversation
|
|
360
|
+
with no continuity source: use it only when you want a fresh occupant, since the
|
|
361
|
+
seat's earlier conversation isn't carried.
|
|
348
362
|
When the tmux server is gone, an explicit `rig down` of any rig can start an
|
|
349
363
|
empty server and probe again. It records the stop and clears eligible bindings
|
|
350
364
|
only after confirming the sessions are absent. This can leave an empty tmux
|
|
@@ -866,6 +880,9 @@ What it costs:
|
|
|
866
880
|
## Stop your teams
|
|
867
881
|
|
|
868
882
|
`rig down <rig-name>` ends that rig's agent sessions and work in progress.
|
|
883
|
+
A terminal OpenRig didn't start, such as a seat joined with `rig attach --self`
|
|
884
|
+
from a tmux pane, is left running: `rig down` names it with the commands to stop it by hand, and
|
|
885
|
+
exits 2.
|
|
869
886
|
Read `rig ps --nodes --rig <rig-name>` first so you can see who will stop;
|
|
870
887
|
`rig down` also prints the rig's recorded agent sessions and their activity
|
|
871
888
|
before stopping them.
|
|
@@ -895,7 +912,7 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
|
|
|
895
912
|
| --- | --- |
|
|
896
913
|
| Tool missing or login fails | Use the specific setup/auth hint; recheck that executable in the launch shell. Do not send work to an unready seat. |
|
|
897
914
|
| "Startup attention" or "Startup details" names a prompt | Answer the login, trust or bypass prompt in that seat's terminal, then run the `rig seat continue <seat>` it shows. |
|
|
898
|
-
| A restored seat still counts as needing attention after its prompt was answered |
|
|
915
|
+
| A restored seat still counts as needing attention after its prompt was answered | After a full restore of a Claude or Codex seat, the daemon clears this by itself once the seat reads running or idle and passes its check. If it still counts, check its `restoreOutcome` in `rig ps --nodes --json` (the RESTORE column): when it is `attention_required`, run `rig seat clear-attention <seat>`, which says which check failed; answering the prompt again or running `rig seat continue` doesn't change it. For a partial restore, submit any startup text left in the input box without sending it again, and wait for the agent to respond before clearing attention. See [After a restored seat's prompt](agent-startup-guide.md#after-a-restored-seats-prompt). |
|
|
899
916
|
| "Readiness timeout after 30s — harness did not become interactive" | The harness took longer than the readiness window. Raise it for the next launch with `rig config set runtime.readiness_timeout_seconds <1-600>`, then relaunch that seat. |
|
|
900
917
|
| "Claude resume did not finish within Ns; Claude may still be starting, so the launch was kept" | A restored Claude seat was not interactive when the wait ended. Its pane and resume token are kept. Look at the pane; once Claude is up, run `rig seat clear-attention <seat>`. The wait is about `runtime.readiness_timeout_seconds` in total for each seat (default 30 s), counting the first 3.2 s, and the time adds up seat by seat in a restore. Raising the setting for slow fresh launches lengthens it. If `rig up` or `rig launch` times out at 120 s, that is not a rollback: check `rig ps` before running it again. |
|
|
901
918
|
| Daemon is healthy, kernel is still starting | Read `rig status` and `rig ps --nodes --rig kernel`; kernel readiness is separate. |
|
|
@@ -79,8 +79,9 @@ Other layouts and other herdr-app windows don't show Rig views. Each window (app
|
|
|
79
79
|
- Entering a view again (a click in the strip, or herdr-app restarting with it shown) returns the keyboard to the cell
|
|
80
80
|
you were last in there, else the first live cell.
|
|
81
81
|
- **Your tabs** gives the keyboard back to your own pane.
|
|
82
|
-
- OpenRig's own rewrites (another view
|
|
83
|
-
a view or in your tabs
|
|
82
|
+
- Apart from an open, OpenRig's own rewrites (another view closing, a cell ending) leave the keyboard where it is,
|
|
83
|
+
whether you are in a view or in your tabs, with one exception: when the cell you were last in ends while its view is
|
|
84
|
+
shown, the keyboard goes to that view's first live cell, if one is left.
|
|
84
85
|
- Once the view is shown, an interactive cell for a local seat attaches its tile to the seat with plain tmux, as a
|
|
85
86
|
writable tile does ([terminal sessions](terminal-sessions.md#replacing-a-seats-session)). Until then it only shows
|
|
86
87
|
the seat, and anything typed in it is dropped. A cell for a seat on another host is its ssh attachment from the
|
|
@@ -78,14 +78,17 @@ entry. The entry holds secret names, never values:
|
|
|
78
78
|
- It's a pointer, not the row's body: the member reads the row under its grant.
|
|
79
79
|
- A receiver should tolerate a repeated `qitem_id`. A ring accepted just before the daemon stops, before it's recorded,
|
|
80
80
|
is rung again on recovery, the same at-least-once window a terminal wake has.
|
|
81
|
-
- It waits up to 10 seconds and doesn't follow redirects.
|
|
81
|
+
- It waits up to 10 seconds and doesn't follow redirects. A ring with no answer by then may still have reached the
|
|
82
|
+
trigger, so it reads unknown, not failed, and durable recovery doesn't repeat that recorded wake (other recovery paths
|
|
83
|
+
can still ring it again). The member sees the work when it next checks its rows.
|
|
82
84
|
- **What the trigger should do:** start a run that lists the member's rows (`rig_queue_list` with `owned`) and claims its work.
|
|
83
85
|
|
|
84
86
|
## What the record says, and doesn't
|
|
85
87
|
|
|
86
88
|
These facts stay separate on the row:
|
|
87
89
|
- **Wake:** with a trigger, the row's wake result is `wake-accepted:webhook (<url_ref>) answered <status>` when the trigger took the
|
|
88
|
-
ring, or `failed:webhook …`. Accepted means the tool's trigger
|
|
90
|
+
ring, `indeterminate:webhook …` when it didn't answer in time, or `failed:webhook …`. Accepted means the tool's trigger
|
|
91
|
+
answered, not that the member read the row.
|
|
89
92
|
- With no trigger, the result is `unroutable`. The member finds work by reading its own inbox and picks a row up by claiming
|
|
90
93
|
it, so a row gets no finding of its own. Work it leaves unclaimed past the stuck sweep's unclaimed age
|
|
91
94
|
(`queue.stuck_sweep_unclaimed_age_minutes`, 60 by default) is listed in one standing notice per member. The notice goes to
|
|
@@ -106,9 +109,44 @@ OpenRig doesn't observe a hosted member between its calls, so it never reads idl
|
|
|
106
109
|
- **Presence:** each entry carries `presence`, which says what OpenRig last saw of the member. It isn't pickup, and `null` means unknown:
|
|
107
110
|
- `lastCallAt`: its last authenticated call to this host's `rig mcp serve --http`, recorded at most once a minute in
|
|
108
111
|
`<OPENRIG_HOME>/mcp-http-presence.json`, beside the token file;
|
|
109
|
-
- `lastWake`: its latest ring and the result, among its 50 most recent rows
|
|
112
|
+
- `lastWake`: its latest ring and the result, among its 50 most recent rows;
|
|
113
|
+
- `checkIn`: its check-in status, last check-in and stated cadence, as described in [Check-in status](#check-in-status)
|
|
114
|
+
(unknown, with the reason, when the daemon gives none).
|
|
110
115
|
- `rig roster show` and `find` show the last call; the last ring is in `rig_team`.
|
|
111
116
|
|
|
117
|
+
### Check-in status
|
|
118
|
+
|
|
119
|
+
A connected assistant (a roster member marked `hosted: true`) checks in each time it reads its own pending inbox (through the queue list, as the MCP list tool does
|
|
120
|
+
when it lists the member's own work). Other calls it makes don't count yet. Its status compares its last check-in with
|
|
121
|
+
what its roster entry states: a cadence (`check_in_minutes`), or that it checks in when a person asks it
|
|
122
|
+
(`check_in_on_request: true`):
|
|
123
|
+
|
|
124
|
+
| Status | Meaning |
|
|
125
|
+
|---|---|
|
|
126
|
+
| `checking-in` | its last check-in is no older than twice its stated cadence |
|
|
127
|
+
| `check-in-overdue` | its last check-in is older than that: its schedule may be off or waiting for an approval |
|
|
128
|
+
| `no-check-in-yet` | no check-in recorded for it on this daemon, whatever its entry states |
|
|
129
|
+
| `on-request` | its entry says it checks in when a person asks it |
|
|
130
|
+
| `disconnected` | reserved for a recorded revocation or removal of its connection. Nothing records one yet, so a revoked assistant reads overdue (or unknown, with no cadence) |
|
|
131
|
+
| `unknown` | its entry states neither, its statement can't be used, or its check-ins couldn't be read; the reason says which, and its last check-in is shown. OpenRig assumes no cadence, so this never reads idle or overdue |
|
|
132
|
+
|
|
133
|
+
Each place it's shown gives the evidence with it, for example `overdue: last check-in 2026-11-12T13:05:00Z, expected
|
|
134
|
+
every 60 min; its schedule may be off or waiting for an approval`.
|
|
135
|
+
|
|
136
|
+
A stated cadence is its person's statement: neither reading proves the assistant's own schedule ran, or that it picked
|
|
137
|
+
anything up. It's a status only. Work addressed to a member that isn't checking in still queues and is rung as before, a check-in
|
|
138
|
+
isn't pickup (pickup is its claim), and no check-in doesn't mean it's idle, failed or safe. `GET /api/queue/hosted-members`
|
|
139
|
+
gives this daemon's host id and each member on this host with its status, last check-in and stated cadence (with the
|
|
140
|
+
reason when it's unknown); `rig roster show` and `find` show it as `Check-in:`, for a team with or without terminal seats, and `rig ps` (with or
|
|
141
|
+
without `--nodes`, and when it has no rigs or nodes to show) lists every connected assistant after its table, one line
|
|
142
|
+
each. That's on this host, and in the node view of an HTTP host; an SSH host's `rig ps` prints its own. An HTTP host's
|
|
143
|
+
rig view and the multi-host fan-out leave the section out. When the list can't be read, for example from an older
|
|
144
|
+
daemon, it says check-in is unavailable instead. Its `--json` output is unchanged. The TUI's
|
|
145
|
+
instance and rig tables list them the same way after their seats, with times in the viewer's zone; when the list can't be read,
|
|
146
|
+
they say check-in is unavailable, as `rig ps` does.
|
|
147
|
+
When the member has unclaimed work, the standing notice described above states the same status in its `check-ins:`
|
|
148
|
+
line; when that notice is filed doesn't change.
|
|
149
|
+
|
|
112
150
|
## Revoke
|
|
113
151
|
|
|
114
152
|
`rig mcp token revoke grok` refuses its next request. The rows it worked, and their answers, stay.
|
|
@@ -139,10 +177,28 @@ and nothing else is offered:
|
|
|
139
177
|
`rig_queue_create` that leaves out `destination` goes to that receiver. The operator sets it; a caller can't. It must be
|
|
140
178
|
exactly one existing local node within that request's grant, or nothing is written. An explicit `destination` works as
|
|
141
179
|
before.
|
|
180
|
+
- **A seat by its name:** a `destination` with no `@` names a seat as its team shows it: its session's own name, then its
|
|
181
|
+
pod-member form, then that name's slug, in the connection's one rig or the configured receiver's. Only seats the grant
|
|
182
|
+
can address count, and the first of these that any of them matches decides, so another seat's slug never makes an exact
|
|
183
|
+
name ambiguous and a seat the grant can't address never shadows one it can. The item is stored under that
|
|
184
|
+
seat's actual session. A slug two seats match returns `destination_ambiguous` with the candidates, and a name that no
|
|
185
|
+
seat the grant can reach has returns `destination_not_found`. A name the grant can't address as written (its own seat,
|
|
186
|
+
or another assistant's without `team`/`list`) stays `out_of_scope`, whether or not that seat exists.
|
|
142
187
|
- **Two assistants together:** a grant with `team`/`list` sees its rigs' seats with `rig_team`, and may address and hear from
|
|
143
188
|
another connected assistant's seat. A grant without it never reaches a seat in the service's caller form
|
|
144
189
|
(`cus-<id>-<connection>@<rig>`), so an existing connection keeps the reach it had.
|
|
145
|
-
- **Messages are items:** a message is an item the receiver reads and closes,
|
|
190
|
+
- **Messages are items:** a message is an item the receiver reads and closes, with any reply in its `resolution`. The
|
|
191
|
+
sender reads that reply on the same item. Nothing wakes the sender or posts a new item for it. A separate new message is
|
|
192
|
+
new work.
|
|
193
|
+
- **A fair-use limit on new work:** the service can add `throttle: { new_work: true, retry_after_seconds: <n> }` to an
|
|
194
|
+
active answer.
|
|
195
|
+
- While it does, a `rig_queue_create` that would open a new item writes nothing. It returns `fair_use_retry_later` with
|
|
196
|
+
`retryAfterSeconds` (1 to 600) and the `qitemId` to retry with.
|
|
197
|
+
- A retry of a create that already landed is answered from the stored item, as before.
|
|
198
|
+
- Everything else is served: reading, claiming and closing existing items (a reply in `resolution` included), and
|
|
199
|
+
answering the team's questions. A separate new message or revision waits like any other new item.
|
|
200
|
+
- It's never a credential refusal, and a `throttle` that can't be read is ignored.
|
|
201
|
+
- The service is asked once per HTTP request (initialize and tool listing included), not once per tool call.
|
|
146
202
|
- **What the sender can tell, from the item it reads:**
|
|
147
203
|
- **Queued:** the item exists and is `pending` with no claim.
|
|
148
204
|
- **Picked up:** the receiver's claim (`in-progress`).
|
|
@@ -296,3 +296,31 @@ Unknown: not said yet.
|
|
|
296
296
|
delivery guarantee.
|
|
297
297
|
- **Transcript bytes as "usage".** `context-usage-threshold` measures an agent's transcript, not an account's
|
|
298
298
|
allowance. For an allowance, see "A usage warning" above.
|
|
299
|
+
|
|
300
|
+
## Recurring reminders for agents
|
|
301
|
+
|
|
302
|
+
An agent-to-agent reminder can repeat until stopped. This is separate from
|
|
303
|
+
[a person's one-shot watch](#setting-a-watch), which uses `rig queue block --wake-after`.
|
|
304
|
+
|
|
305
|
+
Save this as `periodic-reminder.yaml`, replacing the example session names with your own:
|
|
306
|
+
|
|
307
|
+
```yaml
|
|
308
|
+
policy: periodic-reminder
|
|
309
|
+
target:
|
|
310
|
+
session: worker@my-team
|
|
311
|
+
message: "Finish the current action, then check the pending work."
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
Register it with all five required flags:
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
rig watchdog register --spec periodic-reminder.yaml --policy periodic-reminder \
|
|
318
|
+
--target-session worker@my-team --interval-seconds 600 \
|
|
319
|
+
--registered-by coordinator@my-team
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
At registration, `--policy` selects the policy; the YAML `policy` field is not the
|
|
323
|
+
selector. YAML `target.session` takes precedence over `--target-session`, so keep them
|
|
324
|
+
aligned. If YAML omits the target, the CLI target is the fallback. Put a non-empty
|
|
325
|
+
`message` in YAML: `--message` is a shortcut only for `context-usage-threshold`.
|
|
326
|
+
The first reminder is due after the interval; this example repeats every 600 seconds.
|