@openrig/cli 0.7.5 → 0.7.7
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-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +11 -0
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +5 -0
- 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 +30 -3
- package/daemon/context-packs/reference/getting-started.md +37 -3
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +142 -3
- package/daemon/context-packs/reference/whats-new.md +162 -164
- 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/SKILL.md +0 -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/SKILL.md +0 -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/SKILL.md +2 -2
- 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/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 +1 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +41 -10
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +20 -4
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +5 -2
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +2 -0
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +37 -14
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.js +3 -1
- package/daemon/dist/adapters/pi-runner-protocol.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +6 -5
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +15 -11
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +4 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/141_node_account_home.d.ts +3 -0
- package/daemon/dist/db/migrations/141_node_account_home.d.ts.map +1 -0
- package/daemon/dist/db/migrations/141_node_account_home.js +6 -0
- package/daemon/dist/db/migrations/141_node_account_home.js.map +1 -0
- package/daemon/dist/db/migrations/141_session_agent_runner.d.ts +3 -0
- package/daemon/dist/db/migrations/141_session_agent_runner.d.ts.map +1 -0
- package/daemon/dist/db/migrations/141_session_agent_runner.js +11 -0
- package/daemon/dist/db/migrations/141_session_agent_runner.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +7 -2
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js +10 -2
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +6 -3
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +18 -10
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/claim-service.js +1 -1
- package/daemon/dist/domain/claim-service.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +3 -2
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-credential-precedence.d.ts +8 -0
- package/daemon/dist/domain/claude-credential-precedence.d.ts.map +1 -1
- package/daemon/dist/domain/claude-credential-precedence.js +49 -4
- package/daemon/dist/domain/claude-credential-precedence.js.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.d.ts +24 -3
- package/daemon/dist/domain/claude-managed-launch.d.ts.map +1 -1
- package/daemon/dist/domain/claude-managed-launch.js +92 -29
- package/daemon/dist/domain/claude-managed-launch.js.map +1 -1
- package/daemon/dist/domain/claude-seat-token.d.ts +14 -2
- package/daemon/dist/domain/claude-seat-token.d.ts.map +1 -1
- package/daemon/dist/domain/claude-seat-token.js +54 -7
- package/daemon/dist/domain/claude-seat-token.js.map +1 -1
- package/daemon/dist/domain/codex-rebuild-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/codex-rebuild-permissions.js +6 -4
- package/daemon/dist/domain/codex-rebuild-permissions.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +5 -0
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +9 -2
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.d.ts +7 -0
- package/daemon/dist/domain/gateway/slack/config.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/config.js +5 -0
- package/daemon/dist/domain/gateway/slack/config.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +11 -3
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +8 -15
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +5 -1
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +7 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +3 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +12 -5
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +19 -5
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/markdown-address.d.ts.map +1 -1
- package/daemon/dist/domain/markdown-address.js +14 -1
- package/daemon/dist/domain/markdown-address.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-model-reader.js.map +1 -1
- package/daemon/dist/domain/native-process-arguments.d.ts +7 -0
- package/daemon/dist/domain/native-process-arguments.d.ts.map +1 -0
- package/daemon/dist/domain/native-process-arguments.js +188 -0
- package/daemon/dist/domain/native-process-arguments.js.map +1 -0
- package/daemon/dist/domain/native-process-lineage.d.ts +8 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +104 -30
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +3 -3
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +38 -28
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +6 -4
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/pane-cutover.d.ts +1 -1
- package/daemon/dist/domain/pane-cutover.d.ts.map +1 -1
- package/daemon/dist/domain/pane-cutover.js +3 -3
- package/daemon/dist/domain/pane-cutover.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/process-table.d.ts +2 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +3 -0
- package/daemon/dist/domain/process-table.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 +14 -1
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.js +19 -9
- package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js +3 -0
- package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service.d.ts +6 -0
- package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts +3 -2
- package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +2 -2
- package/daemon/dist/domain/ps-projection.js +6 -6
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +13 -2
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +84 -21
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -2
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +20 -11
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +14 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +53 -0
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +18 -7
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reply-to-choice.d.ts +3 -0
- package/daemon/dist/domain/reply-to-choice.d.ts.map +1 -1
- package/daemon/dist/domain/reply-to-choice.js +12 -0
- package/daemon/dist/domain/reply-to-choice.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +7 -2
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +69 -22
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.js +20 -35
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +3 -1
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +25 -5
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rigspec-codec.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-codec.js +4 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +4 -0
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +4 -1
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +29 -1
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts +11 -0
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +8 -1
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +92 -35
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +2 -2
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +13 -1
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +4 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +21 -8
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +19 -11
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +66 -13
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home.d.ts +7 -3
- package/daemon/dist/domain/seat-runtime-home.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-home.js +32 -3
- package/daemon/dist/domain/seat-runtime-home.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts +13 -0
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +48 -6
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +4 -2
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +5 -3
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +7 -2
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +19 -2
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +2 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +15 -1
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +12 -2
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts +3 -1
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +7 -2
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +2 -2
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.js +35 -18
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +6 -5
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-transport.d.ts +3 -2
- package/daemon/dist/domain/terminal/herdr-transport.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-transport.js +10 -6
- package/daemon/dist/domain/terminal/herdr-transport.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts +16 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.js +52 -26
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +28 -0
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +268 -0
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -0
- package/daemon/dist/domain/terminal/task-terminal-view.d.ts +10 -1
- package/daemon/dist/domain/terminal/task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/task-terminal-view.js +6 -1
- package/daemon/dist/domain/terminal/task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-following.js +3 -3
- package/daemon/dist/domain/terminal/terminal-following.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +9 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +43 -9
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +35 -2
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +5 -0
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +1 -1
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +75 -7
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/compaction.js +4 -0
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/provider.d.ts +1 -0
- package/daemon/dist/routes/provider.d.ts.map +1 -1
- package/daemon/dist/routes/provider.js +49 -10
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/rigs.js +3 -97
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts +4 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +8 -2
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.js +4 -3
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +1 -0
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +5 -3
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +26 -9
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-state-taxonomy.md +21 -1
- package/daemon/docs/reference/author-contracts.md +74 -0
- package/daemon/docs/reference/community-harness-examples/cursor/cursor.yaml +1 -0
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/hermes/hermes.yaml +1 -0
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +15 -0
- package/daemon/docs/reference/community-harness-presets.md +78 -3
- package/daemon/docs/reference/execution-platform-contract.md +138 -0
- package/daemon/docs/reference/getting-started.md +37 -3
- package/daemon/docs/reference/harness-runner-contract.md +242 -0
- package/daemon/docs/reference/quickstart.md +1 -1
- package/daemon/docs/reference/rig-spec.md +142 -3
- package/daemon/docs/reference/slack-app-setup.md +8 -0
- package/daemon/docs/reference/terminal-sessions.md +106 -5
- package/daemon/docs/reference/whats-new.md +162 -164
- package/daemon/specs/agents/shared/skills/core/openrig-architect/SKILL.md +0 -1
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +0 -1
- package/daemon/specs/agents/shared/skills/core/rig-lifecycle/SKILL.md +2 -2
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +11 -2
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +2 -1
- package/dist/build-info.js +3 -3
- package/dist/client.js +3 -3
- package/dist/client.js.map +1 -1
- package/dist/commands/chatroom.d.ts +7 -0
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +21 -4
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/crash-cart.d.ts +6 -0
- package/dist/commands/crash-cart.d.ts.map +1 -1
- package/dist/commands/crash-cart.js +10 -5
- package/dist/commands/crash-cart.js.map +1 -1
- package/dist/commands/edge.d.ts.map +1 -1
- package/dist/commands/edge.js +8 -4
- package/dist/commands/edge.js.map +1 -1
- package/dist/commands/host.d.ts +8 -0
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +57 -6
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/provider.d.ts +1 -0
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +146 -7
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +40 -11
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/seat.d.ts +1 -0
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +61 -9
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.js +2 -2
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +2 -0
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/startup-proof.d.ts.map +1 -1
- package/dist/commands/startup-proof.js +4 -1
- package/dist/commands/startup-proof.js.map +1 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +3 -1
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/terminal.js +2 -2
- package/dist/commands/terminal.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +29 -4
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/account-home-switch.d.ts +6 -0
- package/dist/lib/account-home-switch.d.ts.map +1 -0
- package/dist/lib/account-home-switch.js +8 -0
- package/dist/lib/account-home-switch.js.map +1 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +13 -4
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/openrig-compat.d.ts +9 -1
- package/dist/openrig-compat.d.ts.map +1 -1
- package/dist/openrig-compat.js +19 -3
- package/dist/openrig-compat.js.map +1 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +1 -3
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/attention/attention-model.js +9 -7
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/config/config-model.d.ts.map +1 -1
- package/tui/dist/config/config-model.js +2 -2
- package/tui/dist/config/config-model.js.map +1 -1
- package/tui/dist/health/health-model.d.ts.map +1 -1
- package/tui/dist/health/health-model.js +2 -2
- package/tui/dist/health/health-model.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +11 -9
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/stylize.js +1 -1
- package/tui/dist/stylize.js.map +1 -1
- package/ui/dist/assets/{index-ozBodLrS.js → index-CMBgYrS7.js} +81 -81
- package/ui/dist/index.html +1 -1
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
# Harness and runner contract (DRAFT for 0.7.6)
|
|
2
|
+
|
|
3
|
+
> **Status.** This is a draft for contributors.
|
|
4
|
+
> - **In the 0.7.6 candidate, not yet released:** the `runner` field and OpenRig's side of declaration, identity and activity
|
|
5
|
+
> (sections 2-4).
|
|
6
|
+
> - **Proposed runner-author behavior:** the input, cancellation and permission recipe in sections 5-7, and the
|
|
7
|
+
> runner-side shutdown obligation in section 9. A dsh port implementing this recipe is not qualified.
|
|
8
|
+
> - **Existing interfaces with author obligations:** launch-result identity, exact resume, first input and model
|
|
9
|
+
> handoff. These interfaces do not establish that a particular runner implements them correctly.
|
|
10
|
+
> - **Unchanged:** plain community presets and the built-in runtimes (Claude Code, Codex, Pi, OMP, terminal).
|
|
11
|
+
>
|
|
12
|
+
> No harness has been run end to end under this contract yet. The first candidate is dsh over ACP.
|
|
13
|
+
>
|
|
14
|
+
> Candidate scope and pinned references are in the [joined author guide](author-contracts.md). The
|
|
15
|
+
> [community presets reference](https://github.com/mvschwarz/openrig/blob/b6bd4633fbd94634a2b4bdef2574a6880f97be63/docs/reference/community-harness-presets.md)
|
|
16
|
+
> describes the implemented fields at that base; this chapter also labels proposed author behavior.
|
|
17
|
+
|
|
18
|
+
This chapter covers **which agent runs in a seat and how OpenRig talks to it**. *Where* that agent runs (a host, a
|
|
19
|
+
sandbox, another machine) is the [execution platform chapter](execution-platform-contract.md). The two are separate on purpose:
|
|
20
|
+
the same harness can run in many places, and one place can host many harnesses.
|
|
21
|
+
|
|
22
|
+
## 1. Plain preset or runner preset?
|
|
23
|
+
|
|
24
|
+
| | Plain community preset | Runner preset (`runner: true`) |
|
|
25
|
+
|---|---|---|
|
|
26
|
+
| **What runs in the pane** | The harness's own terminal app | A small program you maintain, *the runner*, which hosts the agent (for example an ACP agent over stdio) |
|
|
27
|
+
| **How OpenRig reads activity** | From the screen: a changing screen reads working; a quiet one reads **unknown**, never idle | From the runner's reports: working, idle, needs input |
|
|
28
|
+
| **How input arrives** | Typed into the app's prompt | Typed into the runner, which turns each submitted message into one agent prompt |
|
|
29
|
+
| **Choose it when** | The harness has a usable terminal UI (Cursor, Hermes, OpenClaw examples) | The harness speaks a protocol rather than a screen (ACP, JSON-RPC, stream-JSON), or you can report turn boundaries reliably |
|
|
30
|
+
|
|
31
|
+
**If your harness works well as a terminal app, a plain preset is enough. Use a runner only when you can report state
|
|
32
|
+
honestly.** A runner that guesses is worse than a quiet screen read as unknown.
|
|
33
|
+
|
|
34
|
+
**Vocabulary.** "Preset", "runner preset", `launch_result`, `resume`, `first_input` and `passes_model` are existing
|
|
35
|
+
terms at the candidate base. Broader names you may see in design discussion, such as *HarnessSpec*, are **proposals**, not file
|
|
36
|
+
formats or loaders that exist.
|
|
37
|
+
|
|
38
|
+
## 2. Declare it: what the preset says, fixed at launch
|
|
39
|
+
|
|
40
|
+
```yaml
|
|
41
|
+
# $OPENRIG_HOME/community-harnesses/dsh.yaml
|
|
42
|
+
format: 1
|
|
43
|
+
name: dsh
|
|
44
|
+
command: dsh-seat # your runner; it starts the agent itself
|
|
45
|
+
maintainer: <you>
|
|
46
|
+
runner: true # in the 0.7.6 candidate
|
|
47
|
+
launch_result: true # required with runner
|
|
48
|
+
resume: true # only after you've checked a real reopen and a refused missing one
|
|
49
|
+
limits:
|
|
50
|
+
- permission requests are refused (first version)
|
|
51
|
+
- a prompt whose whole text is /abort can't be sent
|
|
52
|
+
- fork unsupported
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
- **`runner: true` requires `launch_result: true`,** and can't be combined with `names_conversation`.
|
|
56
|
+
- **The declaration is fixed at launch.** Each launch, a restore's included, records what the preset declares at that
|
|
57
|
+
moment. Editing the preset changes the next launch, not a running seat.
|
|
58
|
+
- **A preset without `runner` behaves exactly as today,** and so does a session recorded before the field existed.
|
|
59
|
+
- **The other fields keep their existing meanings:**
|
|
60
|
+
- `first_input: true` passes the seat's first startup turn in a file named by `OPENRIG_FIRST_INPUT`;
|
|
61
|
+
- `passes_model: true` passes the seat's declared model as `OPENRIG_MODEL`.
|
|
62
|
+
|
|
63
|
+
## 3. Identity: report the conversation once, in the launch record
|
|
64
|
+
|
|
65
|
+
- **When:** after the agent has opened or reopened its conversation (for ACP: after `session/new`, `session/load` or
|
|
66
|
+
`session/resume`).
|
|
67
|
+
- **How:** write the attempt's launch record to the path in `OPENRIG_LAUNCH_RESULT`, with the attempt from
|
|
68
|
+
`OPENRIG_LAUNCH_ATTEMPT`. The record is either the conversation:
|
|
69
|
+
|
|
70
|
+
```json
|
|
71
|
+
{"format": 1, "attempt": "<OPENRIG_LAUNCH_ATTEMPT>", "harness": "dsh", "nativeRef": "<conversation id>", "producer": "dsh-seat 0.3.0; dsh 0.2.1-rc.2; ACP 1"}
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
or the agent's own word that it doesn't exist:
|
|
75
|
+
|
|
76
|
+
```json
|
|
77
|
+
{"format": 1, "attempt": "<OPENRIG_LAUNCH_ATTEMPT>", "harness": "dsh", "error": "missing", "producer": "dsh-seat 0.3.0"}
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
- **`producer` is free text** for your versions. There are no structured version or capability fields.
|
|
81
|
+
- **The launch record is the only identity channel.** Don't report identity on the activity endpoint.
|
|
82
|
+
- **No record means attention.** For a runner preset:
|
|
83
|
+
- **a new launch** with no usable record within OpenRig's wait leaves the seat needing attention, not ready. So does a
|
|
84
|
+
new launch where OpenRig can't create the record's folder: the runner still starts, without `OPENRIG_LAUNCH_RESULT`;
|
|
85
|
+
- **on a resume,** a folder OpenRig can't create means nothing starts, because the launcher can't be told what to
|
|
86
|
+
reopen. When the folder exists but no usable record arrives, the resume command has already been sent, and the
|
|
87
|
+
resume reads unconfirmed (section 8).
|
|
88
|
+
- **OpenRig shows this identity as launcher-reported.** It doesn't observe the conversation itself.
|
|
89
|
+
|
|
90
|
+
## 4. Activity: report turn boundaries
|
|
91
|
+
|
|
92
|
+
Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer <token>`.
|
|
93
|
+
- **Finding the base and token:** take them from `OPENRIG_URL` (or `OPENRIG_PORT`, with `OPENRIG_HOST` defaulting to
|
|
94
|
+
`127.0.0.1`) and `OPENRIG_ACTIVITY_HOOK_TOKEN`, or else from `$OPENRIG_HOME/activity-endpoint.json`.
|
|
95
|
+
- **Posting:** post one at a time, in order, with a short timeout. Never make the agent wait on a post.
|
|
96
|
+
|
|
97
|
+
```json
|
|
98
|
+
{"sessionName": "dev-builder@my-rig", "nodeId": "<node id>", "runtime": "dsh",
|
|
99
|
+
"generation": "<OPENRIG_OCCUPANT_GENERATION>", "sequence": 42, "occurredAt": "2026-10-29T12:00:00Z",
|
|
100
|
+
"hookEvent": "UserPromptSubmit", "subtype": "accepted", "turnId": "7"}
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
| When | `hookEvent` / `subtype` | The seat reads |
|
|
104
|
+
|---|---|---|
|
|
105
|
+
| You gave the agent the prompt for a submitted message | `UserPromptSubmit` / `accepted`, `turnId` = your prompt number | working |
|
|
106
|
+
| The agent is working (message chunks, tool calls) | `active` / `agent_message`; `PreToolUse` / `<tool kind>` | working |
|
|
107
|
+
| You refused a permission request (section 7) | `Notification` / `permission_prompt` | needs input |
|
|
108
|
+
| The turn ended | `Stop` / its stop reason (`end_turn`, `cancelled`, `max_tokens`, `refusal`) | idle. While you hold attention (section 7), don't post it: OpenRig reads any non-exit `Stop` as idle and clears needs input |
|
|
109
|
+
| Optional idle heartbeat | `Stop` / `idle_heartbeat`, with `livenessSeconds` | idle while beats keep coming |
|
|
110
|
+
| The agent process ended | `Stop` / `<preset name>_exited` | unknown, **never idle** |
|
|
111
|
+
| Your runner or the agent hit an error | `Notification` / `runtime_error` | recorded, but not used as activity: the prior activity evidence keeps its usual lifetime. It doesn't itself request or clear attention |
|
|
112
|
+
|
|
113
|
+
- **Liveness:** state `livenessSeconds` (a whole number of seconds from 1 to 3600; any other value is ignored) on every
|
|
114
|
+
idle `Stop`, the turn's end as well as each beat. OpenRig stops reading the seat idle after 2 × `livenessSeconds` without
|
|
115
|
+
a newer idle report. Without it, an idle report holds until your next post, even if your runner has died. Never send a
|
|
116
|
+
non-exit `Stop` or a beat while holding permission attention.
|
|
117
|
+
- **Exit:** post `Stop` / `<preset name>_exited` only when you observe the agent's process exit.
|
|
118
|
+
|
|
119
|
+
- **The screen still counts,** but only as evidence of work. On its own it never reads a runner seat idle.
|
|
120
|
+
- **"Accepted" means your runner submitted its Nth prompt.** It isn't the agent's own acknowledgement, and it isn't
|
|
121
|
+
tied to a particular `rig send`.
|
|
122
|
+
- **The generation attributes a post; it isn't authentication.**
|
|
123
|
+
- A post carrying an earlier occupant's generation never counts for the live seat.
|
|
124
|
+
- The hook token is one local token, so any process holding it can post for any seat.
|
|
125
|
+
|
|
126
|
+
## 5. Input: one submitted message is one prompt
|
|
127
|
+
|
|
128
|
+
Sections 5-7 specify the proposed first dsh/ACP runner recipe. They do not change permission or input handling in
|
|
129
|
+
existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
130
|
+
|
|
131
|
+
- **Set up the pane:** put your TTY in raw mode and turn on bracketed paste (`\e[?2004h`).
|
|
132
|
+
- **What arrives:** `rig send` and queue reminders paste the whole message, then press Enter. Everything up to that Enter
|
|
133
|
+
is **one block**, newlines included. Send it to the agent as **one** prompt (for ACP, one `session/prompt`).
|
|
134
|
+
- **Never split a block,** and never act on lines inside it.
|
|
135
|
+
- **Control input:** the only control is a block that is exactly `/abort`, or Ctrl-C typed outside a paste.
|
|
136
|
+
- Ordinary sends and reminders arrive inside a From/To envelope, so they never equal `/abort`, whatever lines they
|
|
137
|
+
contain.
|
|
138
|
+
- **A message that arrives mid-turn** waits for the next turn. Report it as queued, never as steering the current turn.
|
|
139
|
+
- **Limits to keep and to list under `limits`:**
|
|
140
|
+
- a prompt whose whole text is `/abort` can't be sent as a prompt;
|
|
141
|
+
- a Ctrl-C byte inside a paste also aborts;
|
|
142
|
+
- without a TTY, input is read line by line;
|
|
143
|
+
- this isn't a binary-safe channel.
|
|
144
|
+
|
|
145
|
+
## 6. Cancel: requested isn't the same as done
|
|
146
|
+
|
|
147
|
+
- **On `/abort` or Ctrl-C:** send the agent's cancel (for ACP, the `session/cancel` notification, which has no reply),
|
|
148
|
+
and record when you sent it.
|
|
149
|
+
- **Report "cancelled" only when the agent says so:** for ACP, when `session/prompt` returns `stopReason: "cancelled"`.
|
|
150
|
+
Then post `Stop` / `cancelled`.
|
|
151
|
+
- **Whether the provider stopped work or spend is unknown.** Don't claim it.
|
|
152
|
+
|
|
153
|
+
## 7. Permissions: refuse every request (first version)
|
|
154
|
+
|
|
155
|
+
- **Refuse at once:** answer every permission request immediately with a refusal (for ACP,
|
|
156
|
+
`{"outcome": {"outcome": "cancelled"}}`).
|
|
157
|
+
- **Make it visible:** show what was asked in the pane, and post `Notification` / `permission_prompt`.
|
|
158
|
+
- **Hold that attention** as your last post through the end of the turn, so the seat reads needs input. Don't post the
|
|
159
|
+
turn's `Stop` or idle beats while holding it.
|
|
160
|
+
- **It clears** when your next prompt is accepted, or when an operator clears it
|
|
161
|
+
(`rig seat clear-attention <session> --reason "…"`).
|
|
162
|
+
- **Never leave a request pending.**
|
|
163
|
+
- **Not in the first version:**
|
|
164
|
+
- answering from the seat's permission setting;
|
|
165
|
+
- answers typed into the pane;
|
|
166
|
+
- routing an approval to another seat.
|
|
167
|
+
- So a job that needs an edit or a command approved can't finish under this version. Agents that can run without
|
|
168
|
+
asking are the best first case.
|
|
169
|
+
- **Unknown requests from the agent:** answer with JSON-RPC `-32601` and carry on.
|
|
170
|
+
|
|
171
|
+
## 8. Resume: exactly the same conversation, or say honestly that you couldn't
|
|
172
|
+
|
|
173
|
+
- On a resume, OpenRig passes the conversation to reopen in `OPENRIG_RESUME_REF`. Use the method your agent
|
|
174
|
+
advertises: ACP's `session/load` (capability `loadSession`), or your agent's own reopen method, named with its
|
|
175
|
+
capability and pinned version in your `limits`.
|
|
176
|
+
|
|
177
|
+
| What happened | Write in the launch record | What OpenRig does |
|
|
178
|
+
|---|---|---|
|
|
179
|
+
| The same conversation reopened | the same `nativeRef` | resumed |
|
|
180
|
+
| The agent says it doesn't exist | `error: "missing"` | reports it missing; nothing new starts |
|
|
181
|
+
| Anything else: a timeout, an error, or the working folder no longer matches the conversation's | no record, or an error other than `missing` | **unconfirmed**: the seat keeps its conversation and needs attention |
|
|
182
|
+
| A different conversation opened | the other id | a mismatch; OpenRig doesn't switch to it |
|
|
183
|
+
| OpenRig couldn't create the record's folder | (nothing to write) | nothing starts |
|
|
184
|
+
|
|
185
|
+
- **Never start a new conversation on a resume.**
|
|
186
|
+
- A conversation saved under another harness's runtime is never handed to your launcher.
|
|
187
|
+
|
|
188
|
+
## 9. Context, model and shutdown: whose job is what
|
|
189
|
+
|
|
190
|
+
| Responsibility | OpenRig does | Your preset or runner does |
|
|
191
|
+
|---|---|---|
|
|
192
|
+
| **First startup turn** | Writes it to a private file and passes `OPENRIG_FIRST_INPUT` (with `first_input: true`) | Gives those exact bytes to the agent through its own first-prompt route |
|
|
193
|
+
| **Guidance, skills, startup files** | Doesn't place them for community harnesses; a launch warns that they weren't delivered | Puts whatever the agent needs where *your* harness reads it, or says in `limits` that it isn't supported |
|
|
194
|
+
| **Model** | Passes the seat's declared model as `OPENRIG_MODEL` (with `passes_model: true`); never substitutes one | Maps it to the harness's own setting. OpenRig shows the effective model as unknown |
|
|
195
|
+
| **Placing the agent somewhere else** (a sandbox, another machine) | See the [execution platform chapter](execution-platform-contract.md) | Keeps the runner independent of where it runs |
|
|
196
|
+
| **Shutdown** | `rig seat stop` and `rig down` end the seat's tmux session at once: no graceful stop handshake reaches the runner, its pane just closes. OpenRig ends nothing outside that session, and does no external provider cleanup | **(Proposed)** When the runner's pane closes (a hangup) or it's asked to stop, it attempts where possible to cancel any running turn and end the agent process it started, and lists in `limits` anything that may keep running. Cleanup of external compute needs the platform owner to reconcile it |
|
|
197
|
+
|
|
198
|
+
## 10. What counts as evidence
|
|
199
|
+
|
|
200
|
+
- **Keep three things separate:**
|
|
201
|
+
- **`rig send --verify`** checks the pane before and after a send. It's pane evidence, not proof the agent received
|
|
202
|
+
or finished anything. Mirror each accepted prompt in your pane (for example `you ▸ …`); OpenRig doesn't yet promise
|
|
203
|
+
that `--verify` recognises it.
|
|
204
|
+
- **A turn ending isn't the work being done.** Task completion is whatever the work's own record says: a queue task
|
|
205
|
+
marked done, or an artifact written.
|
|
206
|
+
- **Your own tests** should run against a fake agent that covers each section above.
|
|
207
|
+
- **The useful real check** for a maintainer:
|
|
208
|
+
- a seat starts and reads ready only after the handshake;
|
|
209
|
+
- one multi-line message becomes one prompt;
|
|
210
|
+
- the seat reads working, then idle;
|
|
211
|
+
- a refused permission reads needs input;
|
|
212
|
+
- `/abort` ends a turn as cancelled;
|
|
213
|
+
- a resume reopens the same conversation, and a missing one is refused, never replaced.
|
|
214
|
+
|
|
215
|
+
That's the same promotion test the presets reference describes, applied to these declarations. Passing it is
|
|
216
|
+
compatibility evidence for the versions you name, not certification.
|
|
217
|
+
|
|
218
|
+
## Contributor checklist
|
|
219
|
+
|
|
220
|
+
- [ ] The preset sets `runner: true` and `launch_result: true`, and not `names_conversation`.
|
|
221
|
+
- [ ] After the agent opens or reopens its conversation, the runner writes the launch record, with versions in `producer`.
|
|
222
|
+
- [ ] Activity posts carry `sessionName`, `nodeId`, `runtime`, `generation`, `sequence`, `occurredAt`, `hookEvent` and
|
|
223
|
+
`subtype`. They're sent in order and never block the agent.
|
|
224
|
+
- [ ] One submitted message becomes exactly one prompt. Only a bare `/abort` block, or Ctrl-C outside a paste, is control.
|
|
225
|
+
- [ ] Cancel records "requested" when sent, and "cancelled" only on the agent's own stop reason.
|
|
226
|
+
- [ ] Every permission request is refused at once, shown, and held as needs input until the next accepted prompt.
|
|
227
|
+
- [ ] An agent exit posts `Stop` / `<preset name>_exited`, never a plain idle.
|
|
228
|
+
- [ ] A resume reopens the exact conversation. It reports `missing` only on the agent's word, and otherwise leaves it
|
|
229
|
+
unconfirmed.
|
|
230
|
+
- [ ] Unknown agent requests get `-32601`.
|
|
231
|
+
- [ ] `limits` names the input limits, the permission limit, what keeps running after a stop, and anything not supported.
|
|
232
|
+
|
|
233
|
+
## Open questions
|
|
234
|
+
|
|
235
|
+
1. **For the dsh maintainer:** which method and capability does dsh advertise for reopening a session, at a pinned
|
|
236
|
+
version: `session/load` with `loadSession`, or `session/resume`?
|
|
237
|
+
2. **For the dsh maintainer:** can dsh's ACP profile run with tools off? A first journey that needs no permission
|
|
238
|
+
answers is the simplest to check.
|
|
239
|
+
3. **For OpenRig:** should a later version route permission requests to a chosen seat, as `rig acp run` already does
|
|
240
|
+
with queue tasks, instead of refusing them?
|
|
241
|
+
4. **For OpenRig:** once a second ACP harness exists, should one shared ACP runner live in OpenRig rather than one per
|
|
242
|
+
harness?
|
|
@@ -17,7 +17,7 @@ npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/ri
|
|
|
17
17
|
npx skills add https://github.com/mvschwarz/openrig/tree/<release-tag>/skills/rigs --skill rigs --agent codex
|
|
18
18
|
```
|
|
19
19
|
|
|
20
|
-
For a new install, use the latest release's tag, for example `v0.7.
|
|
20
|
+
For a new install, use the latest release's tag, for example `v0.7.7`. If OpenRig is already installed, use the tag
|
|
21
21
|
that matches `rig --version`, or upgrade first. If the command fails with `npx: command not found`, Node.js isn't
|
|
22
22
|
installed or isn't on your PATH yet (see [What you need](#what-you-need)). Then type `/rigs` in Claude Code, or `$rigs` in Codex, and say what
|
|
23
23
|
you want built.
|
|
@@ -511,9 +511,9 @@ pods:
|
|
|
511
511
|
**Where the declared names reach, by runtime.** Declared values are handed to the seat's terminal as tmux environment, so most seats take them as given:
|
|
512
512
|
|
|
513
513
|
- Plain Claude Code (no permission mode selected), Codex and terminal seats take a spec `HOME`, `PATH` or `CLAUDE_CONFIG_DIR` as given.
|
|
514
|
-
- The cleared environment (`env -i`) belongs only to a managed Claude launch, which is the one used when a permission mode is selected for the seat (for example `permission_policy: builtin:auto`). It forwards the declared names through the cleared environment, except `PATH`, `HOME` and `CLAUDE_CONFIG_DIR`, which OpenRig sets for that launch itself, and `CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN`, for which it sets its own renderer setting. A spec value for any of those four is not forwarded as such; an absolute `CLAUDE_CONFIG_DIR` becomes the config dir OpenRig sets (see "A seat's own account" below). A seat that selected the shipped `openrig-core` plugin also has `CLAUDE_CODE_PLUGIN_DIRS` (the vendored plugin, added after a list the seat declares itself) among its declared names, so it is forwarded like the others and the plugin's hooks load in a seat with a permission mode as in one without; a seat that didn't select the plugin has no such name added. Beyond the declared names, the launch also forwards, by name and only when the seat's terminal has them set, the terminal and locale variables (`TERM`, `COLORTERM`, `TERM_PROGRAM`, `TERM_PROGRAM_VERSION`, `LANG` and the `LC_*` names) and the person's editor and display session: `EDITOR`, `VISUAL`, `DISPLAY`, `XAUTHORITY` and `WAYLAND_DISPLAY`. They let Claude's external-editor action open the person's editor and let image paste reach the clipboard, without a value in a spec. `WAYLAND_DISPLAY` is passed as an absolute path: an absolute value is kept, and a relative one is joined to the terminal's `XDG_RUNTIME_DIR`; if the terminal has no `XDG_RUNTIME_DIR` for it, the name is left out. The runtime directory and its `disabled:` bus address (see "The runtime directory, on Linux" above) are forwarded together, and the runtime directory is also forwarded beside a declared `DBUS_SESSION_BUS_ADDRESS`. A terminal's own `XDG_RUNTIME_DIR` or `DBUS_SESSION_BUS_ADDRESS`, from a shell startup file or tmux's `update-environment`, is not, because D-Bus clients look for the session bus at `$XDG_RUNTIME_DIR/bus` when no address is set; declare it in `env:` to forward it. `XDG_SESSION_TYPE
|
|
514
|
+
- The cleared environment (`env -i`) belongs only to a managed Claude launch, which is the one used when a permission mode is selected for the seat (for example `permission_policy: builtin:auto`). It forwards the declared names through the cleared environment, except `PATH`, `HOME` and `CLAUDE_CONFIG_DIR`, which OpenRig sets for that launch itself, and `CLAUDE_CODE_DISABLE_ALTERNATE_SCREEN`, for which it sets its own renderer setting. A spec value for any of those four is not forwarded as such; an absolute `CLAUDE_CONFIG_DIR` becomes the config dir OpenRig sets (see "A seat's own account" below). A seat that selected the shipped `openrig-core` plugin also has `CLAUDE_CODE_PLUGIN_DIRS` (the vendored plugin, added after a list the seat declares itself) among its declared names, so it is forwarded like the others and the plugin's hooks load in a seat with a permission mode as in one without; a seat that didn't select the plugin has no such name added. Beyond the declared names, the launch also forwards, by name and only when the seat's terminal has them set, the terminal and locale variables (`TERM`, `COLORTERM`, `TERM_PROGRAM`, `TERM_PROGRAM_VERSION`, `LANG` and the `LC_*` names) and the person's editor and display session: `EDITOR`, `VISUAL`, `DISPLAY`, `XAUTHORITY` and `WAYLAND_DISPLAY`. They let Claude's external-editor action open the person's editor and let image paste reach the clipboard, without a value in a spec. `WAYLAND_DISPLAY` is passed as an absolute path: an absolute value is kept, and a relative one is joined to the terminal's `XDG_RUNTIME_DIR`; if the terminal has no `XDG_RUNTIME_DIR` for it, the name is left out. The runtime directory and its `disabled:` bus address (see "The runtime directory, on Linux" above) are forwarded together, and the runtime directory is also forwarded beside a declared `DBUS_SESSION_BUS_ADDRESS`. A terminal's own `XDG_RUNTIME_DIR` or `DBUS_SESSION_BUS_ADDRESS`, from a shell startup file or tmux's `update-environment`, is not, because D-Bus clients look for the session bus at `$XDG_RUNTIME_DIR/bus` when no address is set; declare it in `env:` to forward it. `XDG_SESSION_TYPE` and `XDG_CURRENT_DESKTOP` are not forwarded. The SSH agent socket (`SSH_AUTH_SOCK`) is forwarded when OpenRig itself was started with one, so git over SSH works in the seat; a socket only the seat's terminal has stays out. To check, run `ssh-add -l` inside the seat. If it can't reach an SSH agent, start the OpenRig daemon from a terminal where `ssh-add -l` works. A running seat picks the names up at its next managed Claude launch, not before: `rig seat launch <seat> --fresh --stop --reason "<why>"` for that seat alone (a new conversation), or a restore of the whole rig (`rig down <rig>`, then `rig up <rig> --existing`, which resumes each conversation but restarts every seat in the rig), or a handover. A seat that is up keeps the environment it started with.
|
|
515
515
|
- Codex seats run OpenRig's own Codex executable whatever a spec `PATH` says. They use the seat's own `CODEX_HOME` when its `env:` declares an absolute one, else the daemon's when the daemon has one.
|
|
516
|
-
- On Pi and OMP seats the values reach the terminal. The agent process gets only what the runner passes on, so a spec or one-off value reaches it only for the names the runner always passes: `PATH`, `HOME`, `USER`, `LOGNAME`, `TERM`, `LANG`, `LC_ALL`, `SHELL` and `TMPDIR`. Pi's agent process receives the runner's `HOME`, so a spec or one-off `HOME` value that reaches the runner is passed to Pi; OMP's agent process gets its seat state directory (`$OPENRIG_HOME/state/omp/<seat>`, see Oh My Pi below) as `HOME`, so a `HOME` value does not reach it. The selected provider's variables are passed separately, as described under each runtime.
|
|
516
|
+
- On Pi and OMP seats the values reach the terminal. The agent process gets only what the runner passes on, so a spec or one-off value reaches it only for the names the runner always passes: `PATH`, `HOME`, `USER`, `LOGNAME`, `SSH_AUTH_SOCK`, `TERM`, `LANG`, `LC_ALL`, `SHELL` and `TMPDIR`. Pi's agent process receives the runner's `HOME`, so a spec or one-off `HOME` value that reaches the runner is passed to Pi; OMP's agent process gets its seat state directory (`$OPENRIG_HOME/state/omp/<seat>`, see Oh My Pi below) as `HOME`, so a `HOME` value does not reach it. The selected provider's variables are passed separately, as described under each runtime.
|
|
517
517
|
|
|
518
518
|
**A seat's own account.** Claude Code keeps its login in its config dir and Codex in its home, so a seat whose `env:`
|
|
519
519
|
declares an absolute `CLAUDE_CONFIG_DIR` (Claude Code) or `CODEX_HOME` (Codex) runs on whatever login that directory
|
|
@@ -526,6 +526,105 @@ only the stored `env:`. Seats may share a home. Live usage refresh (`rig provide
|
|
|
526
526
|
daemon's own logins; reading each seat's home would need a native reader per home. OpenRig doesn't copy logins or conversation history between homes, so a conversation saved under a seat's earlier home
|
|
527
527
|
doesn't resume after the seat moves to another one. The `openrig-user` skill has the setup steps.
|
|
528
528
|
|
|
529
|
+
**A seat's own subscription token.** A Claude member can start on a prepared subscription token from its first launch,
|
|
530
|
+
with no conversation to switch first. Name the token file beside its config dir:
|
|
531
|
+
|
|
532
|
+
```yaml
|
|
533
|
+
- id: dev
|
|
534
|
+
runtime: claude-code
|
|
535
|
+
env:
|
|
536
|
+
CLAUDE_CONFIG_DIR: /abs/claude-dev
|
|
537
|
+
claude_token: { label: dev-sub, file: /abs/tokens/dev.token }
|
|
538
|
+
```
|
|
539
|
+
|
|
540
|
+
The label and the absolute path are stored on the seat when the rig is created, as `rig provider switch --seat <seat>
|
|
541
|
+
--to-account <label> --token-file <path>` stores them. Its launches run the same token step, which reads the file as
|
|
542
|
+
Claude starts; a launch path that can't run it (a pane shell other than a POSIX one, for example) starts without it and
|
|
543
|
+
warns. The file's contents never pass through OpenRig: validation doesn't read it, and they don't reach the spec, the
|
|
544
|
+
seat's record or the launch command. A missing, empty or unreadable file doesn't refuse the spec; the seat starts on its
|
|
545
|
+
config dir's stored login (or a token the daemon gives every seat) and says so. A launch also warns when a setting Claude
|
|
546
|
+
Code ranks above the token would be used instead: an `apiKeyHelper`, or an outranking `env` entry in the user, project
|
|
547
|
+
or local settings. Managed settings aren't inspected. `rig export` writes the seat's current reference, except for a seat
|
|
548
|
+
with an account home or an API-key selection (select those again after import), so a later switch shows there, and `rig provider switch --stored-login` removes it. Only
|
|
549
|
+
`claude-code` members and legacy flat nodes accept it, and there's no rig-level default.
|
|
550
|
+
|
|
551
|
+
**Switching to an isolated account home.** A running Codex or Claude Code seat can change its native account home
|
|
552
|
+
while staying in its rig:
|
|
553
|
+
|
|
554
|
+
```sh
|
|
555
|
+
rig provider switch --seat dev-impl@my-rig --to-account api-account \
|
|
556
|
+
--account-home /home/me/accounts/codex-api --model gpt-5.5 --reason "Use the API budget" --dry-run
|
|
557
|
+
rig seat set-runtime dev-impl@my-rig --runtime claude-code \
|
|
558
|
+
--account-home /home/me/accounts/claude-api --model claude-sonnet-4-6 --reason "Codex limit"
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
The directory must already exist and contain the runtime's login or API settings. You choose the account and budget;
|
|
562
|
+
OpenRig does not choose or create credentials. `--account-home` sets `CODEX_HOME` for Codex or `CLAUDE_CONFIG_DIR` for
|
|
563
|
+
Claude Code before the successor starts.
|
|
564
|
+
|
|
565
|
+
This switch starts a fresh conversation with a handover, even when the runtime stays the same. The existing
|
|
566
|
+
subscription-login switch preserves the conversation. Once the successor confirms, OpenRig commits its home, runtime,
|
|
567
|
+
model, profile and permission selection together. The seat keeps its address, edges, queue rows and claims. If OpenRig
|
|
568
|
+
refuses the switch before cutover, the predecessor's configuration stays unchanged.
|
|
569
|
+
|
|
570
|
+
For a Claude plan authenticated with `setup-token`, supply the token file with the home:
|
|
571
|
+
|
|
572
|
+
```sh
|
|
573
|
+
rig provider switch --seat dev-impl@my-rig --to-account claude-plan \
|
|
574
|
+
--account-home /home/me/accounts/claude-plan --token-file /home/me/credentials/claude-plan-token \
|
|
575
|
+
--reason "The plan reset"
|
|
576
|
+
# Across runtimes, use set-runtime with --account-home, --token-file and --account-label.
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
To return to the seat's configured login:
|
|
580
|
+
|
|
581
|
+
```sh
|
|
582
|
+
rig provider switch --seat dev-impl@my-rig --clear-account-home --reason "The plan reset" --dry-run
|
|
583
|
+
rig provider switch --seat dev-impl@my-rig --clear-account-home --reason "The plan reset"
|
|
584
|
+
# Across runtimes: rig seat set-runtime dev-impl@my-rig --runtime claude-code --clear-account-home --reason "Return to configured login"
|
|
585
|
+
```
|
|
586
|
+
|
|
587
|
+
Clearing the selection also starts a successor with a fresh conversation and a handover. OpenRig removes the saved
|
|
588
|
+
account-home override and its token reference only after the successor confirms. The successor starts with the member's
|
|
589
|
+
or rig's configured home, falling back to the daemon's selection and then the native default, as an ordinary launch does.
|
|
590
|
+
If there was no account-home override, OpenRig preserves any unrelated legacy per-seat token. Clear uses the current
|
|
591
|
+
configuration; it does not remember a prior login or restore old credentials. Use clear on its own, without
|
|
592
|
+
`--to-account`, `--stored-login`, `--account-home` or a new token reference.
|
|
593
|
+
|
|
594
|
+
**Anthropic profile limitation.** An active or default profile in Anthropic's configuration directory can override a
|
|
595
|
+
stored Claude login. `CLAUDE_CONFIG_DIR` does not isolate that directory, and OpenRig does not change `ANTHROPIC_CONFIG_DIR`
|
|
596
|
+
or rewrite global profiles. Check or deselect the profile before using a stored-login account home, and verify the
|
|
597
|
+
running account privately.
|
|
598
|
+
|
|
599
|
+
An isolated Claude launch removes `ANTHROPIC_PROFILE`, `ANTHROPIC_FEDERATION_RULE_ID` and `ANTHROPIC_ORGANIZATION_ID`
|
|
600
|
+
from its inherited environment. It also refuses profile selectors in the selected home's or project's settings `env`
|
|
601
|
+
blocks. An explicit subscription token takes precedence over these selectors, including in the legacy
|
|
602
|
+
subscription-token switch.
|
|
603
|
+
|
|
604
|
+
OpenRig receives only the token's label and file path. The launch reads the token; if the required file is unusable, no agent
|
|
605
|
+
starts. Selecting an API home without `--token-file` clears an older seat token reference when the selection commits.
|
|
606
|
+
The home's API helper can stay in its user settings. For a selected plan token, OpenRig refuses a home whose API helper
|
|
607
|
+
or credential environment would take precedence over that token. Both modes refuse project credential overrides.
|
|
608
|
+
OpenRig leaves those settings unchanged.
|
|
609
|
+
|
|
610
|
+
The selected home persists across managed launches and restores. These launches exclude inherited Claude/OpenAI
|
|
611
|
+
credentials and routing variables so credentials from the daemon or shell cannot override the selected home. OpenRig
|
|
612
|
+
refuses to launch if it cannot read the saved selection or the shell cannot enforce isolation. Launches without a home
|
|
613
|
+
selection and existing subscription-login switches keep their behavior. A Claude seat using account-home mode must
|
|
614
|
+
use that mode for later account changes too.
|
|
615
|
+
|
|
616
|
+
User-managed provider settings can still affect authentication. After a real tool turn, check which account and billing
|
|
617
|
+
identity the runtime used. Do not print tokens or the process environment. The configured home alone cannot verify the
|
|
618
|
+
running account.
|
|
619
|
+
|
|
620
|
+
Before downgrading to a version without account-home switching, stop the managed seats. Select their accounts using
|
|
621
|
+
that version's supported setup before resuming. Older versions ignore the saved selection and may launch with inherited
|
|
622
|
+
or default credentials. Rolling back the binary alone does not preserve the selected billing account.
|
|
623
|
+
|
|
624
|
+
OpenRig leaves the imported team file unchanged. Exporting and reimporting a team does not preserve account-home
|
|
625
|
+
isolation, so configure it explicitly for each new rig. If a switch is interrupted, inspect it with `rig seat status`
|
|
626
|
+
and follow the printed recovery command. Wait until the outcome is known before starting another switch.
|
|
627
|
+
|
|
529
628
|
**Do not put secrets in `env:` or `--env`.** The values are not secret, and nothing here encrypts or hides them (see #306):
|
|
530
629
|
|
|
531
630
|
- Spec values are stored in OpenRig's database and in rig snapshots, and `rig export` and bundles copy them, so a secret put there by mistake travels with the rig.
|
|
@@ -534,6 +633,45 @@ doesn't resume after the seat moves to another one. The `openrig-user` skill has
|
|
|
534
633
|
|
|
535
634
|
Use `env:` for settings only. Credentials belong in the provider's own login or a secret store the seat reads at run time.
|
|
536
635
|
|
|
636
|
+
### Switching credentials while keeping the conversation
|
|
637
|
+
|
|
638
|
+
`rig provider switch` resumes a running seat in its existing home and pane. For Claude Code,
|
|
639
|
+
select an API-key file, a subscription-token file, or the home's stored login:
|
|
640
|
+
|
|
641
|
+
```sh
|
|
642
|
+
rig provider precheck --seat dev-a@my-rig --to-account api-budget --api-key-file /secure/claude-api-key
|
|
643
|
+
rig provider switch --seat dev-a@my-rig --to-account api-budget --api-key-file /secure/claude-api-key
|
|
644
|
+
rig provider switch --seat dev-a@my-rig --to-account plan --token-file /secure/claude-plan-token
|
|
645
|
+
rig provider switch --seat dev-a@my-rig --stored-login
|
|
646
|
+
```
|
|
647
|
+
|
|
648
|
+
The API-key file must be private (0600 or 0400), nonempty, and at most 8192 bytes, containing
|
|
649
|
+
one key with optional surrounding whitespace. Only the reference is stored. The child reads the
|
|
650
|
+
key at launch; key bytes never enter command arguments, snapshots or switch reports. Classic
|
|
651
|
+
launches require a supported POSIX pane shell. Missing/invalid API-key files prevent launch.
|
|
652
|
+
Settings that could override the key cause a refusal; OpenRig does not edit those settings.
|
|
653
|
+
Native managed settings and a signed-in Claude gateway cannot be ruled out; Claude may require API-key approval before its
|
|
654
|
+
first turn. Check `/status` after a real tool turn to confirm the authentication method.
|
|
655
|
+
|
|
656
|
+
For Codex, a saved native API-key login is selected with the existing `--to-account <name>`
|
|
657
|
+
path, exactly like a saved subscription login. Prepare it using native `codex login --with-api-key`
|
|
658
|
+
with the key on stdin, then `rig auth save --codex-home <home> <name>`; never put a key in argv.
|
|
659
|
+
Use the seat's existing home. Preparing a login replaces that home's active credentials, so do it
|
|
660
|
+
before running seats there, or prepare/import a native auth profile separately. Switches preserve
|
|
661
|
+
an outgoing credential copy and report peers sharing the home. A native keyring or administrator
|
|
662
|
+
policy can override `auth.json`; the report remains unverified until native account verification.
|
|
663
|
+
|
|
664
|
+
Select or clear an account home in a separate operation: `--api-key-file` cannot be combined with
|
|
665
|
+
`--account-home` or `--clear-account-home`. A credential switch inside an already selected home
|
|
666
|
+
keeps that home.
|
|
667
|
+
|
|
668
|
+
Both paths retain the conversation and launch settings, interrupt in-flight work, and report
|
|
669
|
+
uncertain restarts without retrying. They do not move account homes or start a fresh conversation.
|
|
670
|
+
The caller chooses subscription-first order and configures/enforces the API budget; this command
|
|
671
|
+
neither selects accounts automatically nor imposes a spending limit. Downgrade only after switching
|
|
672
|
+
API-key Claude seats back to subscription credentials: older OpenRig versions cannot read the new
|
|
673
|
+
credential kind correctly.
|
|
674
|
+
|
|
537
675
|
### Choosing the Claude instruction file
|
|
538
676
|
|
|
539
677
|
OpenRig writes its instructions for Claude Code members into managed blocks in
|
|
@@ -597,6 +735,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
|
|
|
597
735
|
| `profile` | string | yes | — | Profile name from the referenced AgentSpec. Use `default` for the default profile. Exception: `none` for terminal nodes. |
|
|
598
736
|
| `codex_config_profile` | string | no | — | Codex-only native profile passed as `-p <name>`; letters, numbers, `_`, `.`, `-`. Separate from the AgentSpec `profile`. With the normal launch mode, this replaces OpenRig's explicit workspace-write sandbox flag. A full-bypass policy instead emits danger-full-access and omits this profile argument. |
|
|
599
737
|
| `codex_permissions` | mapping | no | — | Codex-only sandbox and approval envelope, emitted as explicit flags on every managed launch and resume; see [per-member Codex permissions](#per-member-codex-permissions). |
|
|
738
|
+
| `claude_token` | mapping | no | — | Claude-only `{ label, file }`: the seat's own subscription token file, by absolute path, used from its first launch; see "A seat's own subscription token" under [launch environment](#launch-environment). |
|
|
600
739
|
| `runtime` | string | yes | — | Agent runtime. Current supported values: `claude-code`, `codex`, `pi`, `omp`, `terminal`, `stub`. `stub` is a deterministic test harness, not an agent: a Node runner in the seat's tmux pane goes through the normal launch, skill projection, startup-file and readiness path, follows `<cwd>/.openrig/stub/script.json` when present, and calls no model. See "What a stub can and cannot prove" in `docs/as-built/test-layers.md`. |
|
|
601
740
|
| `cwd` | string | yes | — | Working directory for the agent. A relative path resolves against the rig root (the directory containing the rig spec). If that path exists as written, it is used. Otherwise a leading `~` or `~/` expands to the home directory (`~user` does not) and `$VAR` / `${VAR}` expand from the daemon host's environment; a relative result still resolves against the rig root. A reference to an unset variable stays as written, so the cwd is that literal path and works only if it exists. Use `"."` for the rig root itself. Can be overridden at launch time with `rig up --cwd`. A cwd inside the OpenRig installation fails preflight unless `--cwd` is given. Editing this declaration does not update an existing seat; use [`rig seat set-cwd`](agent-startup-guide.md#change-an-existing-seats-working-directory) to save its future launch directory. |
|
|
602
741
|
| `label` | string | no | — | Human-readable member name. Shown in UI when present. |
|
|
@@ -653,7 +792,7 @@ own defaults/settings apply. Other runtimes ignore this field.
|
|
|
653
792
|
- **State:** Each seat uses `$OPENRIG_HOME/state/pi/<session>/agent` as its Pi agent directory, with `sessions/` beside it, instead of your default `~/.pi/agent`. The runner sets `PI_CODING_AGENT_DIR` to that directory. `<session>` is the seat's session name, unchanged; for a pod member it is `{podId}-{memberId}@{rigName}`. `$OPENRIG_HOME` defaults to `~/.openrig`. OpenRig creates these directories at launch and does not copy anything from `~/.pi/agent`.
|
|
654
793
|
- **Thinking level:** A Pi seat's effort (the choice saved with `rig seat set-effort`, else the spec's `effort`) is sent to Pi as `--thinking <level>` on every managed launch and resume: fresh launch, successor and restore. Pi accepts `off`, `minimal`, `low`, `medium`, `high`, `xhigh` and `max`; OpenRig passes the value as written and does not translate it, so Codex's `none` is not mapped to `off`. Only a value of the shape `set-effort` accepts (a letter, then up to 31 letters, digits, `-` or `_`) is sent; any other spec value, such as one with a space or one that starts with `--`, is left out, and `rig seat effort` says so. An unfamiliar level gets an advisory (a warning from `set-effort`), never a refusal, and Pi itself ignores an unknown level with a warning and keeps the level it would use without the flag: a model suffix, the resumed session's level, or its default. With no effort resolved, no flag is sent. The effort wins over a model suffix, and the model string is never changed. `rig seat effort` reports the level sent at launch and, on Pi 0.99.0 or later, the `thinkingLevel` Pi records on this launch's latest successful assistant turn (error and aborted turns are skipped); that is the session's level after Pi's own cap, not proof the provider applied it, and it is shown apart from the level sent when they differ. On older Pi it is NOT VERIFIED. Without an effort, you can still set the level as a model suffix, for example `model: openrouter/x-ai/grok-4:high`. Pi first looks for a model whose id is the whole pin, and uses it when there is one, suffix included. Only when there is none does Pi read the suffix as the level and record the model without it. Any other suffix, such as OpenRouter's `:free`, stays part of the model id. The model-divergence check reads the pin literally when the seat's `models.json` defines a model with that exact id; otherwise it accepts the model with or without the suffix. If the seat's `models.json` can't be read, a pin with a suffix stays unchecked, with the usual warning, when the recorded model matches the whole pin or the pin without its suffix. A record that matches neither is reported.
|
|
655
794
|
- **Custom models:** Pi reads `models.json` from its agent directory, so a seat reads `$OPENRIG_HOME/state/pi/<session>/agent/models.json`, not `~/.pi/agent/models.json`. Custom provider and model definitions for a seat go in that file. A seat that uses only providers Pi already includes does not need one. OpenRig does not create or write `models.json`.
|
|
656
|
-
- **Credentials:** The Pi process receives only `PATH`, `HOME`, `USER`, `LOGNAME`, `TERM`, `LANG`, `LC_ALL`, `SHELL`, `TMPDIR`, a fixed set of OpenRig seat and instance variables, `PI_CODING_AGENT_DIR`, `PI_CODING_AGENT_SESSION_DIR`, and at most one provider key. That key is `OPENROUTER_API_KEY`, `ZAI_API_KEY`, `KIMI_API_KEY` or `MINIMAX_API_KEY`, passed only when it is set in the seat's environment and the seat's `model` is written as `openrouter/<id>`, `zai/<id>`, `kimi-coding/<id>` or `minimax/<id>`. Naming that variable in `recovery.provider_auth_env_allowlist` (empty by default) makes the daemon add it, when set in the daemon's environment, to the seat's launch environment. No other variable reaches Pi, including other providers' keys and a custom provider's own key variable.
|
|
795
|
+
- **Credentials:** The Pi process receives only `PATH`, `HOME`, `USER`, `LOGNAME`, `SSH_AUTH_SOCK`, `TERM`, `LANG`, `LC_ALL`, `SHELL`, `TMPDIR`, a fixed set of OpenRig seat and instance variables, `PI_CODING_AGENT_DIR`, `PI_CODING_AGENT_SESSION_DIR`, and at most one provider key. That key is `OPENROUTER_API_KEY`, `ZAI_API_KEY`, `KIMI_API_KEY` or `MINIMAX_API_KEY`, passed only when it is set in the seat's environment and the seat's `model` is written as `openrouter/<id>`, `zai/<id>`, `kimi-coding/<id>` or `minimax/<id>`. Naming that variable in `recovery.provider_auth_env_allowlist` (empty by default) makes the daemon add it, when set in the daemon's environment, to the seat's launch environment. No other variable reaches Pi, including other providers' keys and a custom provider's own key variable.
|
|
657
796
|
|
|
658
797
|
- **Extension dialogs:** The RPC runner shows extension `select`, `confirm`, `input` and `editor` requests in the pane and cancels them because the managed pane cannot answer them. The seat needs attention through the end of the turn, until a new agent run starts. Review the cancelled request and send an instruction the extension can complete without a dialog. Extension `notify` text is shown without raising attention or sending a response.
|
|
659
798
|
|
|
@@ -109,6 +109,14 @@ reaction on any other message, including a person's reply in the thread, is igno
|
|
|
109
109
|
`reaction_added` event: add both under **OAuth & Permissions** and **Event Subscriptions**, then
|
|
110
110
|
reinstall the app to the workspace.
|
|
111
111
|
|
|
112
|
+
To have reactions ignored instead, run `rig slack setup --reactions off`. The agent that asked
|
|
113
|
+
never hears of a reaction, including one still waiting to be retried, and a person answers an ask by
|
|
114
|
+
typing a reply in its thread. Slack still sends the event and the manifest keeps it, so switching
|
|
115
|
+
back with `--reactions route` needs no change to the app. Like any saved change, the setting reaches
|
|
116
|
+
a running connector when it next rewires, which a daemon restart does (`rig daemon stop`, then
|
|
117
|
+
`rig daemon start`). See [One channel per rig or seat](#one-channel-per-rig-or-seat-optional) for
|
|
118
|
+
why disabling and re-enabling the connector isn't the same.
|
|
119
|
+
|
|
112
120
|
The manifest also turns on **Interactivity**, so the human can answer a decision's structured
|
|
113
121
|
questions by clicking a button (`rig queue create --human-questions-file`). In Socket Mode the
|
|
114
122
|
clicks arrive over the same socket, so no request URL is needed. An app created from an older
|
|
@@ -30,10 +30,25 @@ With neither a provider nor a session, the daemon's open and preview APIs try
|
|
|
30
30
|
a live Herdr first, then a live cmux. An explicit session always selects Herdr
|
|
31
31
|
and skips that fallback, including when the daemon's default Herdr endpoint is down.
|
|
32
32
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
Session paths use the daemon's `XDG_CONFIG_HOME` when set, or `HOME/.config`
|
|
34
|
+
when unset. Relative paths (including an empty value) resolve from the daemon's
|
|
35
|
+
startup directory, matching Herdr's configuration selection. Named sessions live under
|
|
36
|
+
`herdr/sessions/<name>/herdr.sock`; `default` uses `herdr/herdr.sock` directly.
|
|
37
|
+
These settings are captured when the daemon starts.
|
|
38
|
+
|
|
39
|
+
If the requested name equals the daemon's `HERDR_SESSION`, it keeps that
|
|
40
|
+
session's explicit `HERDR_SOCKET_PATH`. A different requested name uses the
|
|
41
|
+
configuration-tree path, without reusing the override or inferring a session
|
|
42
|
+
from an arbitrary socket path. With an explicit socket but no configured
|
|
43
|
+
session name, omit `--session` to keep that exact endpoint. A missing selected
|
|
44
|
+
socket never falls back to another session. Viewer and follow operations carry
|
|
45
|
+
that exact socket to the CLI through `HERDR_SOCKET_PATH`, without an explicit
|
|
46
|
+
CLI `--session` that would override it. They check that the CLI reports the
|
|
47
|
+
selected socket before changing its panes. Daemon-side CLI calls retain the
|
|
48
|
+
startup environment; desktop follow uses the socket confirmed by the daemon.
|
|
49
|
+
|
|
50
|
+
The selection belongs to the request. Saved views still describe membership
|
|
51
|
+
and layout, so pass `--session` again when reopening the view in that session.
|
|
37
52
|
|
|
38
53
|
The existing view rules apply: saved views, rig and pod views, read-only mission
|
|
39
54
|
and slice views, pagination, absent seats and partial results all use the same
|
|
@@ -169,7 +184,7 @@ GET /api/terminal/preview?view=qitem:<id>&provider=herdr
|
|
|
169
184
|
POST /api/terminal/open {"view":"qitem:<id>","provider":"herdr","expectedPlan":"<preview planId>"}
|
|
170
185
|
```
|
|
171
186
|
|
|
172
|
-
Preview and open include `task: {qitemId, name, complete, issues, members}`. Each member
|
|
187
|
+
Preview and open include `task: {kind:"qitem", id, qitemId, name, complete, issues, members}`. Each member
|
|
173
188
|
names its structured `{hostId, nodeId}` key (null when unresolved), seat,
|
|
174
189
|
contributing `obligations`, `availability` and `viewerStatus`. Stopped, missing,
|
|
175
190
|
external and unresolved remote owners remain visible. Remote queues are not
|
|
@@ -291,3 +306,89 @@ when other clients establish the agent window's dimensions. It is **not resize
|
|
|
291
306
|
isolation**: opening a tile can change the agent's terminal size when it is the
|
|
292
307
|
only sizing client. Observers of a Herdr terminal do not themselves resize it;
|
|
293
308
|
a controlling browser can. No cross-version resize guarantee is implied.
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
## Following a slice's current work
|
|
312
|
+
|
|
313
|
+
Use `rig terminal open slice:<name-or-id> --follow --provider herdr` to keep
|
|
314
|
+
one workspace following the current destination owners of that slice's active
|
|
315
|
+
queue rows. `pending`, `in-progress` and `blocked` rows count. A member can own
|
|
316
|
+
several rows; `task.members[].obligations` preserves every row and state.
|
|
317
|
+
|
|
318
|
+
A slice resolves within the daemon's configured slice index, by exact directory
|
|
319
|
+
name or unique frontmatter `id`. Tags must name it exactly: `rig queue create
|
|
320
|
+
--slice <name-or-id> ...` associates a row. Handoff inherits those tags unless
|
|
321
|
+
replaced; merely linking an untagged child does not associate it. A mission-only
|
|
322
|
+
tag does not put a row in every slice. No project is inferred from a tag or the
|
|
323
|
+
caller's working directory. A bare name or ID claimed by multiple slices is
|
|
324
|
+
`scope_ambiguous`; no first-match scope is selected. Selecting a unique key can
|
|
325
|
+
still follow a slice whose other alias is reused: a row carrying that colliding
|
|
326
|
+
alias must have exactly one `mission:` tag naming exactly one indexed claimant.
|
|
327
|
+
Rows placed in another mission are excluded. Missing, contradictory or otherwise
|
|
328
|
+
unplaceable mission/alias tags make the snapshot incomplete, retaining previous
|
|
329
|
+
viewers. A unique alias on its own retains exact matching. Flat legacy slices
|
|
330
|
+
without an indexed parent mission cannot disambiguate a colliding alias.
|
|
331
|
+
|
|
332
|
+
Slice keys are case-sensitive and can include Unicode, plus signs and internal
|
|
333
|
+
spaces. They cannot be empty or contain slash, backslash, control characters,
|
|
334
|
+
or leading/trailing whitespace. Pass the literal selector in JSON or a quoted
|
|
335
|
+
CLI argument; encode it once as a GET query value. Do not double-decode it.
|
|
336
|
+
|
|
337
|
+
Slice previews and open results use `task: {kind:"slice", id, name, complete,
|
|
338
|
+
issues, members}`. `id` is the unique frontmatter id, or the directory name when
|
|
339
|
+
no id is present. There is no synthetic `qitemId`. Preserve the preview's `view`
|
|
340
|
+
for the ensure request. All successful previews, including qitem previews,
|
|
341
|
+
include `capabilities: {ensureViewer:boolean}`. True means that the resolved
|
|
342
|
+
view/provider implements ensure; the existing member, completeness, owner and
|
|
343
|
+
`expectedPlan` checks still apply. A missing capability/task on an older daemon
|
|
344
|
+
is unsupported scoped membership, not an empty team.
|
|
345
|
+
|
|
346
|
+
New slice workspaces default to four automatic tiles; `--max-tiles` overrides
|
|
347
|
+
that. Qitem views retain their eight-tile default. The full membership and
|
|
348
|
+
obligation list remains available when tiles exceed capacity. Pins, drafts,
|
|
349
|
+
unknown input and focus retention still protect departed viewers. Closing a
|
|
350
|
+
viewer never stops its agent. Opening a tile can change the agent's dimensions.
|
|
351
|
+
|
|
352
|
+
A known empty slice remains enabled in the same workspace; later associated
|
|
353
|
+
work can join it. An incomplete queue read (`task.complete:false` plus `issues`)
|
|
354
|
+
retains previous viewers. A missing scope is `scope_not_found`, duplicate scope
|
|
355
|
+
identity is `scope_ambiguous`, unreadable/capped index data is `scope_unavailable`,
|
|
356
|
+
and an unavailable resolver is `scope_unsupported`. None is authoritative empty.
|
|
357
|
+
Ensure of an incomplete snapshot returns `viewer_unconfirmed`; changed plans
|
|
358
|
+
return `preview_changed` before provisioning. Mission following is a separate
|
|
359
|
+
increment; the existing mission display projection is not authoritative follow
|
|
360
|
+
or ensure capability.
|
|
361
|
+
|
|
362
|
+
Ordinary ownership changes follow queue/session/node events. Node and directory
|
|
363
|
+
changes under the primary configured index use the existing filesystem watcher,
|
|
364
|
+
with a coalesced scope invalidation event. There is no repeating membership
|
|
365
|
+
poll. Structural edits under additional legacy roots, or a filesystem where
|
|
366
|
+
watching is unavailable, require `rig`'s existing slice refresh endpoint
|
|
367
|
+
`POST /api/slices/refresh` or reopening the view. Missing or unreadable sources
|
|
368
|
+
keep prior viewers; they never certify that the work disappeared.
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
Scope identity reads are bounded to 4,096 directory entries, 16 KiB per selected
|
|
372
|
+
node-header read, and 8 MiB of source bytes per index generation. The byte budget
|
|
373
|
+
counts the bounded read, including text after short frontmatter. An index that
|
|
374
|
+
exceeds these limits is too large for this read; use a smaller configured index
|
|
375
|
+
or a qitem view. This is separate from unreadable or malformed sources.
|
|
376
|
+
Queue membership reads are bounded to 50,000 active rows plus one lookahead,
|
|
377
|
+
16 KiB of encoded tags per row and 8 MiB of aggregate encoded tags. They remain
|
|
378
|
+
fresh on each render. Identities are reused within a scope-source generation
|
|
379
|
+
only while the primary-root watcher is live and existing additional roots are
|
|
380
|
+
covered by that root. A source event or explicit refresh invalidates them;
|
|
381
|
+
errors discard the cache. Unavailable watching or an existing unwatched legacy
|
|
382
|
+
root uses fresh bounded identity reads instead. Missing legacy roots are checked
|
|
383
|
+
on each call so an appearing root cannot reuse an older cached identity set.
|
|
384
|
+
|
|
385
|
+
Error bodies remain authoritative. `scope_unsupported` is HTTP 400,
|
|
386
|
+
`scope_not_found` is 404, and `scope_ambiguous`/`scope_unavailable` are 409.
|
|
387
|
+
An incomplete queue snapshot is a successful preview with `task.complete:false`;
|
|
388
|
+
ensure returns `viewer_unconfirmed` without a provider effect. Unsupported
|
|
389
|
+
ensure view kinds now return `view_required` (400), where they previously returned
|
|
390
|
+
200 with an error body. Unsupported follow view kinds
|
|
391
|
+
retain `follow_view_required` in a 200 `ok:false` body, as before. A changed
|
|
392
|
+
preview remains `preview_changed` (409). During automatic refresh a missing or
|
|
393
|
+
ambiguous slice retains the existing tiles and names the source problem in the
|
|
394
|
+
explanation strip; refresh or reopen it under the current unambiguous key.
|