@openrig/cli 0.7.4 → 0.7.6
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/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +5 -1
- 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 +49 -8
- package/daemon/context-packs/reference/getting-started.md +47 -3
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +147 -4
- package/daemon/context-packs/reference/whats-new.md +104 -117
- 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/SKILL.md +11 -0
- 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/SKILL.md +5 -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 +3 -3
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +76 -28
- 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 +16 -12
- 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 +6 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts +4 -0
- package/daemon/dist/db/migrations/126_escalation_target_refs.d.ts.map +1 -0
- package/daemon/dist/db/migrations/126_escalation_target_refs.js +30 -0
- package/daemon/dist/db/migrations/126_escalation_target_refs.js.map +1 -0
- 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-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/composer-prompts.d.ts +13 -0
- package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
- package/daemon/dist/domain/composer-prompts.js +32 -0
- package/daemon/dist/domain/composer-prompts.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +13 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -0
- package/daemon/dist/domain/escalation-owner.js +92 -0
- package/daemon/dist/domain/escalation-owner.js.map +1 -0
- package/daemon/dist/domain/escalation-target-ref.d.ts +3 -0
- package/daemon/dist/domain/escalation-target-ref.d.ts.map +1 -0
- package/daemon/dist/domain/escalation-target-ref.js +6 -0
- package/daemon/dist/domain/escalation-target-ref.js.map +1 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts +2 -0
- package/daemon/dist/domain/gateway/destination-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/destination-resolver.js +10 -1
- package/daemon/dist/domain/gateway/destination-resolver.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/graph-projection.d.ts.map +1 -1
- package/daemon/dist/domain/graph-projection.js +2 -1
- package/daemon/dist/domain/graph-projection.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/mission-control/notification-adapter-ntfy.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js +2 -0
- package/daemon/dist/domain/mission-control/notification-adapter-ntfy.js.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-webhook.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/notification-adapter-webhook.js +2 -0
- package/daemon/dist/domain/mission-control/notification-adapter-webhook.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 +87 -29
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +3 -0
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +7 -0
- package/daemon/dist/domain/native-resume-probe.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 +40 -29
- 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/periodic-snapshot-scheduler.d.ts +3 -0
- package/daemon/dist/domain/periodic-snapshot-scheduler.d.ts.map +1 -1
- package/daemon/dist/domain/periodic-snapshot-scheduler.js +15 -11
- package/daemon/dist/domain/periodic-snapshot-scheduler.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 +4 -3
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +10 -7
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +16 -2
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +102 -24
- 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 +151 -27
- 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-waiting.d.ts +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +5 -4
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +186 -48
- 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-edge-ops.d.ts +1 -1
- package/daemon/dist/domain/rig-edge-ops.d.ts.map +1 -1
- package/daemon/dist/domain/rig-edge-ops.js +8 -6
- package/daemon/dist/domain/rig-edge-ops.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 +37 -9
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +2 -2
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +9 -5
- package/daemon/dist/domain/rig-teardown.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 +7 -3
- 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 +12 -8
- 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 +37 -2
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +2 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +6 -0
- package/daemon/dist/domain/rosters.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/scope/scope-audit.d.ts +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +4 -0
- package/daemon/dist/domain/scope/scope-audit.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-delivery-guard.d.ts +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +11 -2
- package/daemon/dist/domain/seat-delivery-guard.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 +10 -2
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +24 -2
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +39 -18
- 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 +13 -5
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +55 -79
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts +28 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.js +355 -0
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -0
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +34 -9
- 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 +84 -0
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/herdr-viewer.js +311 -0
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -0
- 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 +12 -2
- 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-follow-policy.d.ts +65 -0
- package/daemon/dist/domain/terminal/terminal-follow-policy.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/terminal-follow-policy.js +93 -0
- package/daemon/dist/domain/terminal/terminal-follow-policy.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-following.d.ts +39 -0
- package/daemon/dist/domain/terminal/terminal-following.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/terminal-following.js +135 -0
- package/daemon/dist/domain/terminal/terminal-following.js.map +1 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +10 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +29 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +143 -35
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +1 -1
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +37 -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/index.d.ts.map +1 -1
- package/daemon/dist/index.js +1 -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 +58 -7
- package/daemon/dist/routes/activity.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/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +2 -2
- package/daemon/dist/routes/scope-audit.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 +3 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +61 -3
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +3 -0
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/server.js +1 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +35 -11
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +9 -0
- 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-examples/pi-tui/openrig-pi-tui-launch +100 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/pi-tui.yaml +15 -0
- package/daemon/docs/reference/community-harness-presets.md +155 -3
- package/daemon/docs/reference/edge-types.md +40 -11
- package/daemon/docs/reference/execution-platform-contract.md +138 -0
- package/daemon/docs/reference/getting-started.md +47 -3
- package/daemon/docs/reference/harness-runner-contract.md +242 -0
- package/daemon/docs/reference/hosted-members.md +5 -1
- package/daemon/docs/reference/publishing-a-rig-bundle.md +5 -0
- package/daemon/docs/reference/quickstart.md +1 -1
- package/daemon/docs/reference/rig-spec.md +147 -4
- package/daemon/docs/reference/sdlc-conventions.md +6 -0
- package/daemon/docs/reference/seat-delivery.md +6 -0
- package/daemon/docs/reference/slack-app-setup.md +8 -0
- package/daemon/docs/reference/terminal-sessions.md +215 -7
- package/daemon/docs/reference/whats-new.md +104 -117
- 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-bundles-and-shareable-artifacts/SKILL.md +11 -0
- 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/attach.d.ts.map +1 -1
- package/dist/commands/attach.js +9 -9
- package/dist/commands/attach.js.map +1 -1
- package/dist/commands/capture.d.ts.map +1 -1
- package/dist/commands/capture.js +12 -4
- package/dist/commands/capture.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 +10 -5
- 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 +74 -8
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/mcp.d.ts.map +1 -1
- package/dist/commands/mcp.js +4 -1
- package/dist/commands/mcp.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/scope.js +3 -3
- package/dist/commands/scope.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.d.ts.map +1 -1
- package/dist/commands/send.js +18 -23
- 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/start.d.ts.map +1 -1
- package/dist/commands/start.js +7 -0
- package/dist/commands/start.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.d.ts +32 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +31 -9
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/transcript.js +1 -1
- package/dist/commands/transcript.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-audit.d.ts +1 -0
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +4 -0
- package/dist/lib/scope/scope-audit.js.map +1 -1
- 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/mcp-server.d.ts +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +4 -3
- package/dist/mcp-server.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 +3 -3
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +31 -5
- 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/daemon-client.d.ts +1 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +1 -1
- package/tui/dist/daemon-client.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/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +3 -0
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +8 -5
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +17 -14
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +2 -1
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/stylize.js +1 -1
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/open-window.js +2 -2
- package/tui/dist/terminals/open-window.js.map +1 -1
- package/tui/dist/topology/host-label.d.ts +7 -0
- package/tui/dist/topology/host-label.d.ts.map +1 -0
- package/tui/dist/topology/host-label.js +34 -0
- package/tui/dist/topology/host-label.js.map +1 -0
- package/tui/dist/types.d.ts +3 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/{index-DV0UNxFw.js → index-CMBgYrS7.js} +166 -166
- package/ui/dist/index.html +1 -1
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
# Execution and platform integration contract — draft
|
|
2
|
+
|
|
3
|
+
This chapter describes the placement and resource responsibilities of an integration author. The harness/runner chapter owns native protocol, model input, activity, attention, permission exchange and turn cancellation. This chapter owns where that harness runs, which files and credentials it can reach, how native state survives an environment change, and how results and resources return to their owners.
|
|
4
|
+
|
|
5
|
+
**Status:** a design contract for authors, with an existing-compatible composition and one measured private implementation. The measured baseline used OpenRig 0.7.4, OpenShell 0.1.6 and Claude Code 2.1.310. Inclusion of this draft in 0.7.6 documentation does not implement a generic environment driver, a `DeploySpec` loader or a cross-host native-resume guarantee. Proposed operations below are not commands or accepted configuration keys. Capability support must be stated for the actual integration and version.
|
|
6
|
+
|
|
7
|
+
## Keep the identities and responsibilities separate
|
|
8
|
+
|
|
9
|
+
RigSpec composes members, their AgentSpecs/profiles, runtimes, working directories and relationships. AgentSpec supplies reusable role, startup and context declarations. A built-in runtime or registered community preset supplies a launch path. An environment integration supplies placement and provider-specific resource handling around that path. Existing declarations do not automatically provision a remote filesystem, credentials or compute.
|
|
10
|
+
|
|
11
|
+
| Identity or handle | Meaning and responsibility |
|
|
12
|
+
|---|---|
|
|
13
|
+
| Stable seat and work identity | The member's canonical address/node and owned work records. OpenRig retains this identity across executions; an environment IP or display name does not replace it. |
|
|
14
|
+
| Native session identity | The harness's conversation token/UUID, qualified by harness and resume-reference type. The harness owns its format and resume semantics. |
|
|
15
|
+
| Environment binding | The integration's durable record linking placement, immutable provider resource IDs, native-state location, projection and ownership. It is separate from the native session token. |
|
|
16
|
+
| Execution generation | A particular launch/process instance, with observable process/start identity when available. A new process can resume an old conversation. |
|
|
17
|
+
| Viewer/client | A terminal attachment or connection to an execution. Closing it need not stop either the native process or compute. |
|
|
18
|
+
|
|
19
|
+
An application service bundled with a rig is a separate responsibility. An artifact browser or database in `RigSpec.services` serves the team's application; its presence does not place an agent inside that service. Bundling service definitions also does not bundle image bytes, native binaries, authenticated homes or live runtime state.
|
|
20
|
+
|
|
21
|
+
## A minimal composition using existing surfaces
|
|
22
|
+
|
|
23
|
+
The following is a **fragment of one pod** (`pods[].members`), using existing RigSpec fields, not a complete standalone RigSpec:
|
|
24
|
+
|
|
25
|
+
```yaml
|
|
26
|
+
pods:
|
|
27
|
+
- id: dev
|
|
28
|
+
label: Development
|
|
29
|
+
members:
|
|
30
|
+
- id: coordinator
|
|
31
|
+
agent_ref: local:agents/coordinator
|
|
32
|
+
profile: default
|
|
33
|
+
runtime: claude-code
|
|
34
|
+
- id: worker
|
|
35
|
+
agent_ref: local:agents/worker
|
|
36
|
+
profile: default
|
|
37
|
+
runtime: example-contained-claude
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
The worker runtime names an author-installed community preset. This preset shape uses existing fields exercised on the 0.7.4 baseline:
|
|
41
|
+
|
|
42
|
+
```yaml
|
|
43
|
+
format: 1
|
|
44
|
+
name: example-contained-claude
|
|
45
|
+
maintainer: Integration author
|
|
46
|
+
command: ./scripts/launch-contained-worker
|
|
47
|
+
launch_result: true
|
|
48
|
+
resume: true
|
|
49
|
+
startup_assisted: true
|
|
50
|
+
limits:
|
|
51
|
+
- Requires an explicitly prepared environment binding and guest projection.
|
|
52
|
+
- Native resume is qualified only for the documented retained-state recipe.
|
|
53
|
+
- Viewer closure does not implement turn cancellation or resource deletion.
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
This is an integration skeleton, not an installed or qualified preset. The author must supply the executable, resolve its path against the actual launch working directory, register the preset in the existing OpenRig home, and prepare the member's host working directory. The launcher implements the preset's declared launch-result and typed-resume behavior; the runner chapter defines those mechanics. `startup_assisted` requires a startup-submission check; it does not hold back submission or establish successful context delivery or ingestion. A member's model setting is not automatically honored by a custom launcher: its resolved native model/effort must be explicit in that launcher's supported configuration. With `passes_model: true`, Core passes the declared model through `OPENRIG_MODEL`; the launcher must map and apply it. The effective model remains unknown to Core.
|
|
57
|
+
|
|
58
|
+
For a contained worker, the launcher may resolve a private binding, create or attach to the selected resource, project explicit inputs, then connect to the native process inside it. In the measured recipe, OpenRig ran on the host, the plain coordinator used the built-in native runtime, and the worker used a private community launcher. The wrapper performed projection, provider-reference delivery, resume validation and artifact export explicitly. Those effects were not supplied by the preset declarations themselves. The integration must not assume host guidance/skills, hook paths or environment variables automatically reach a community runtime's guest.
|
|
59
|
+
|
|
60
|
+
A downstream author can implement this composition today around a qualified provider API and native harness. It remains an author-maintained integration until maintained platform support is separately implemented and documented. Validate against the target OpenRig schema and effective launch configuration; a parsed field or successful process start alone does not establish its effect.
|
|
61
|
+
|
|
62
|
+
## Placement and launch receipts
|
|
63
|
+
|
|
64
|
+
Before mutation, resolve the selected host/provider, workspace, image/native versions, reachability, credential references, resource request and ownership. Record existing resources and the selected resource scope. Host headroom includes supervisors, gateway and other team members; a workload memory request is not proof of their combined cap. Report requested, admitted and observed resources separately. Do not infer enforced CPU/memory or isolation policy from accepted flags.
|
|
65
|
+
|
|
66
|
+
Persist a launch intent before a create operation. Use an attempt/retry identity where the provider supports it; otherwise reconcile the original operation before another create. A public binding receipt carries only nonsecret values. If the harness's native resume reference works like a bearer credential (anyone holding it can reopen the conversation), keep it in secret-held receipt data, never in the public receipt. A useful public receipt identifies:
|
|
67
|
+
|
|
68
|
+
- canonical seat, harness version and native resume-reference type;
|
|
69
|
+
- provider/host/workspace, immutable environment ID and execution generation;
|
|
70
|
+
- image/policy versions, requested resources and observed readiness;
|
|
71
|
+
- inner working directory, private native-state location and projection manifest;
|
|
72
|
+
- a public-safe native reference (never a bearer-like resume token), creator or attached-consumer disposition, and exact owned resource handles;
|
|
73
|
+
- lifecycle operations supported, completion observations, pending effects and errors.
|
|
74
|
+
|
|
75
|
+
A resource name or IP can be reused. Reconcile immutable ID, workspace and any available generation/fingerprint before acting. A lost response is **unconfirmed**, not success or absence. Record provider failures without exposing credentials. Readiness should identify what is ready: provider reachable, filesystem projected, native process started, team identity authenticated, or task completed.
|
|
76
|
+
|
|
77
|
+
## Project files and credential references deliberately
|
|
78
|
+
|
|
79
|
+
Stage only declared inputs: role/startup material, selected skills, current work context, schemas and required native settings. Preserve unmanaged files and report conflicts. Review every path-bearing setting for its destination: host-only hook scripts, interpreters, status collectors and loopback URLs may not exist or be reachable in the guest. Missing activity or permission transport must remain unsupported rather than being inferred from the base harness name.
|
|
80
|
+
|
|
81
|
+
Distinguish three observations: host staging, destination delivery and native ingestion. A destination manifest can record relative path, byte count and hash; a useful task using the current context revision/nonce can show consumption. Neither observation substitutes for the other. Current working input may change between tasks while an earlier artifact stays immutable.
|
|
82
|
+
|
|
83
|
+
Retained native history is a different data class from ordinary project context. Preserve its exact bytes through the harness's supported resume path; do not edit records or synthesize a conversation. Preserve a complete checkpoint prefix with byte length/hash if the harness may append after the checkpoint. Record which native-state files are required and which remain unavailable. Never substitute a fresh conversation seeded with a report while calling it native resume.
|
|
84
|
+
|
|
85
|
+
Keep secret values out of RigSpec, preset YAML, bindings, argv and public receipts. The provider/credential owner supplies scoped references or native-supported credential helpers and controls revocation. A successful login, provider registration or model-list request is not evidence of usable inference credit or an authorized spend envelope. Do not infer subscription portability from a provider name or copy an authenticated owner home into a guest.
|
|
86
|
+
|
|
87
|
+
Authenticate guest coordination through the actual granted member route. A shared source IP is not a seat identity. Record the grant-bound principal and scope separately from resource placement; distinct principals do not imply per-seat row ACLs or isolation between co-located secrets.
|
|
88
|
+
|
|
89
|
+
## Own only the effects assigned to the integration
|
|
90
|
+
|
|
91
|
+
Record **created** versus **attached** for each launch receipt. The creator may stop/delete the exact resource it created under the selected policy. An attached consumer normally closes only its own client and any separately identified process it owns; it must preserve the external environment, native session, workspace and shared services. Attachment must not silently transfer provider custody. An explicit owner-authorized transfer is a separate recorded action.
|
|
92
|
+
|
|
93
|
+
Describe these effects independently:
|
|
94
|
+
|
|
95
|
+
| Operation | Required distinction |
|
|
96
|
+
|---|---|
|
|
97
|
+
| Cancel a turn | Ask the runner to stop current work and observe its result. Unsupported cancellation must not be replaced silently by killing compute. |
|
|
98
|
+
| Close a viewer | Release that client/connection; report whether native execution continues or is unknown. |
|
|
99
|
+
| Stop native execution | End the identified native process and observe its exit. This is separate from task success. |
|
|
100
|
+
| Stop compute | Release the documented provider allocation; identify retained storage and actual provider/process state. |
|
|
101
|
+
| Delete an owned environment | Remove the exact creator-owned resource and reconcile final absence, including provider-managed dependents. |
|
|
102
|
+
|
|
103
|
+
Use graceful shutdown first where supported, then only explicitly owned, identified handles for stronger termination. Never equate pane disappearance with process or resource release. Persistent/non-persistent lifetime describes when execution should stop; durability describes recovery. An explicit non-persistent completion condition must name its invocation/work scope. An unrelated queue closure or an empty queue is not permission to terminate a member, and no new lifecycle YAML syntax is specified here.
|
|
104
|
+
|
|
105
|
+
## Resume exactly, or return an honest disposition
|
|
106
|
+
|
|
107
|
+
A resume request identifies the seat, harness-qualified native reference, prior binding, expected environment boundary and retained state. Validate those before launching the native harness. Reject mismatched reference types, missing/changed history, wrong immutable resources, unavailable required files and duplicate active executions. Never use “latest” as a replacement for an exact requested conversation or silently start fresh on failure.
|
|
108
|
+
|
|
109
|
+
Separate the outcomes: same native conversation resumed; new conversation rebuilt from artifacts; fresh launch; unsupported; refused; or unconfirmed. Environment continuity has its own outcome: same retained environment, recreated compute with copied state, different host, or unknown. A matching UUID alone does not show that native history was consumed.
|
|
110
|
+
|
|
111
|
+
If a provider stops exposing file transfer after canonical-process exit, capture artifacts/history and publish any retained resume descriptor **while transfer is still available**. Verify destination bytes before shutdown. After completion, use host/provider observations instead of assuming guest exec still works. For recreated compute, explicitly transfer the retained checkpoint and required artifact into the successor environment and validate them before publishing its resume descriptor. A new environment ID is expected and must be recorded as a successor, not disguised as the old environment.
|
|
112
|
+
|
|
113
|
+
The measured private recipe demonstrated this latter boundary: the original sandbox was deleted; copied native history and task bytes were restored into new containers on the same physical host; the native harness launched with `--resume` and the retained UUID. Its first new reply recalled a private conversation-only marker before tools, with no marker in the new input and no native-history tool read. It then verified artifact 1, used changed task context, produced artifact 2 and returned it for independent coordinator verification. This establishes one bounded native-return/work result. It does **not** establish new-host migration, RAM restoration, same-container stop/start, cgroup enforcement, general portability or shipped platform support.
|
|
114
|
+
|
|
115
|
+
## Export results before teardown
|
|
116
|
+
|
|
117
|
+
A guest path/hash note means bytes exist in a guest; it is not delivery to the consumer. Identify the actor holding the provider transfer handle. In the measured recipe that actor was the host wrapper, not the guest worker.
|
|
118
|
+
|
|
119
|
+
The worker publishes its report once and records the task/path/hash on its existing child. The wrapper validates the binding, task, allowed path, file type, size and expected hash; transfers to a fresh host staging path; checks the returned bytes/schema/context; and publishes without overwriting an existing result. It records an actual consumer-accessible destination, hash, byte count and actor through the authenticated work route. The worker closes its child after the matching export receipt; the coordinator independently reads/verifies those bytes before closing its parent. An ambiguous transfer is reconciled by existing bytes/hash, not a new report or duplicate task.
|
|
120
|
+
|
|
121
|
+
Complete exports before resource deletion. If output cannot be returned, preserve the exact resource/owner and failure state. Cleanup then reconciles the exact owned workload, supervisor, volumes and provider records to the intended stopped/absent state. Keep reused engines, caches, authenticated environments and attached resources. Revoke scoped credentials/grants through their owners and record remaining state. “Delete requested” and “absence verified” are different receipts.
|
|
122
|
+
|
|
123
|
+
## Proposed generic platform seam — not implemented
|
|
124
|
+
|
|
125
|
+
The existing composition need not acquire another YAML format to describe these responsibilities. If a maintained platform seam is selected, the following **design pseudocode** names the smallest useful operations; it is not a loader or API available in this release:
|
|
126
|
+
|
|
127
|
+
```text
|
|
128
|
+
prepare(placement, ownership, resourceRequest, credentialRefs) -> bindingReceipt
|
|
129
|
+
project(binding, explicitFiles, nativeCheckpoint?) -> deliveryReceipt
|
|
130
|
+
launch(binding, harnessLaunch, exactResumeRequest?) -> executionReceipt
|
|
131
|
+
observe(binding, execution) -> observedState | unsupported | unconfirmed
|
|
132
|
+
export(binding, artifactRequest) -> publicationReceipt
|
|
133
|
+
shutdown(binding, execution, selectedEffect) -> effectReceipt
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
The provider implementation interprets its image/network/compute configuration. The runner interprets native protocol and control. Core would retain typed provenance and route the selected effects; it must not reinterpret arbitrary provider keys, leak secrets or collapse ownership into a stop boolean. Each mutating operation needs an attempt identity and reconciliation route; partial receipts remain useful after failure. Capability reporting must expose unsupported projection, cancellation, resume or cleanup rather than letting method names imply support.
|
|
137
|
+
|
|
138
|
+
The most useful author evidence follows the real work path: exact resolved placement and native launch; delivered current context; authenticated work ownership; returned artifact bytes; exact resume boundary and consumed retained state; and final resource disposition. A parser pass, launcher success, viewer reconnect or same display name leaves the corresponding effect unconfirmed. These distinctions let an author implement and diagnose an integration; they do not create a new release gate or require another runtime campaign.
|
|
@@ -191,11 +191,11 @@ You can also read [`skills/rigs/SKILL.md`](../../skills/rigs/SKILL.md) directly.
|
|
|
191
191
|
script will do and changes nothing:
|
|
192
192
|
|
|
193
193
|
```sh
|
|
194
|
-
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
194
|
+
curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.6/scripts/install.sh | sh -s -- --dry-run
|
|
195
195
|
```
|
|
196
196
|
|
|
197
197
|
The same command without `--dry-run`,
|
|
198
|
-
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.
|
|
198
|
+
`curl -fsSL https://raw.githubusercontent.com/mvschwarz/openrig/v0.7.6/scripts/install.sh | sh`, installs the
|
|
199
199
|
latest published `@openrig/cli` with `npm install -g`,
|
|
200
200
|
runs the Node.js and SQLite check, then `rig setup --dry-run` and `rig setup`. `rig setup` checks both Claude Code and
|
|
201
201
|
Codex and may install a missing one, as described below. A failed step prints
|
|
@@ -331,6 +331,16 @@ every seat while those seats still run the sessions it started, reports that
|
|
|
331
331
|
restore's outcome instead of starting another. Explicitly repeating the saved
|
|
332
332
|
`--non-interruptive` or `--no-non-interruptive` choice also joins that restore.
|
|
333
333
|
|
|
334
|
+
`rig start --last` restores a rig unless every seat it launched was stopped on
|
|
335
|
+
purpose with `rig down` or `rig seat stop`. A rig whose stop was never recorded
|
|
336
|
+
counts as last running: one taken down with `rig down` before OpenRig 0.6.12, or
|
|
337
|
+
one whose seats exited or were lost without `rig down`. So does a rig with no snapshot
|
|
338
|
+
whose saved state can be restored. To keep such a rig down, run `rig down <rig>`
|
|
339
|
+
once, by rig id when names are shared; it records the stop, and `--last` then
|
|
340
|
+
leaves the rig down. `--last` never selects the kernel. Under `--no-kernel`
|
|
341
|
+
(`OPENRIG_NO_KERNEL=1`) the daemon skips the kernel's automatic restore too;
|
|
342
|
+
bring it back with `rig up kernel --existing`.
|
|
343
|
+
|
|
334
344
|
An explicit `rig up kernel --existing --fresh <seat...>` waits for startup's
|
|
335
345
|
restore to finish, then replaces only the named seats that still hold the exact
|
|
336
346
|
sessions startup launched. Other seats keep running. An operator's conversation
|
|
@@ -838,13 +848,47 @@ the lifecycle API without booting a new kernel, then stop the remaining rigs.
|
|
|
838
848
|
| "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. |
|
|
839
849
|
| Daemon is healthy, kernel is still starting | Read `rig status` and `rig ps --nodes --rig kernel`; kernel readiness is separate. |
|
|
840
850
|
| Kernel seats fail within a second of the first start, and tmux reports "server exited unexpectedly" | Check that your tmux can capture a pane, then start the failed seats again; see the tmux check below this table. |
|
|
841
|
-
| Shared terminal is absent |
|
|
851
|
+
| Shared terminal is absent | Check the kernel's `operator.human` terminal separately from its agents; recover only that seat as described below. Standalone `rig tui` remains available while resolving it. |
|
|
842
852
|
| Viewing terminal was closed | Open the conversations again with `rig terminal open saved:kernel --window`; `rig tui --shared` is only the dashboard fallback if that window cannot open. Do not relaunch the team. |
|
|
843
853
|
| Daemon restarted but tmux survived | Re-read `rig status` and the existing queue; a daemon restart is not a fresh project. |
|
|
844
854
|
| Host reboot lost tmux sessions | Starting the daemon restores the kernel by itself when that start finds all of its seats lost; a kernel that was already down before the reboot stays down, and `rig start` names `rig up kernel --existing`. Check `rig status`, and if it reports the restore failed, run `rig up kernel --existing`. For other rigs, open `rig`, start the daemon if needed (press **S** if it opens on the work views), and select the existing rig and seats. Resume is the default; a fresh conversation needs a separate decision. |
|
|
845
855
|
| Launch reports no usable snapshot | Inspect the existing rig and retained project files, then follow the same-seat recovery below. |
|
|
846
856
|
| Work is waiting on a prompt or decision | Read the row, transition and named prompt; preserve the obligation until the missing decision arrives. |
|
|
847
857
|
|
|
858
|
+
**When the shared kernel dashboard is missing.** The dashboard runs in the
|
|
859
|
+
kernel's `operator.human` terminal seat. Restoring the operator, advisor and
|
|
860
|
+
queue worker does not also restore an unselected terminal. Read
|
|
861
|
+
`rig ps --nodes --rig kernel --json` and use the terminal's registered
|
|
862
|
+
`canonicalSessionName` for the `operator.human` row. Replace `<dashboard-session>`
|
|
863
|
+
in the commands below with that name. Check the actual pane with
|
|
864
|
+
`rig capture "<dashboard-session>"`: a persisted running row alone does not prove
|
|
865
|
+
that its tmux session is alive.
|
|
866
|
+
A daemon or transport error is not proof that the terminal is absent.
|
|
867
|
+
|
|
868
|
+
- If only the viewing window closed and the TUI is still running, reopen it
|
|
869
|
+
with `rig terminal open saved:kernel --window`.
|
|
870
|
+
- If the TUI exited but its terminal shell remains, run `rig tui` once in that
|
|
871
|
+
existing pane. A fresh seat is unnecessary.
|
|
872
|
+
- If the terminal session itself is absent, start only that existing seat:
|
|
873
|
+
|
|
874
|
+
```sh
|
|
875
|
+
rig seat launch "<dashboard-session>" --fresh --reason "recover missing shared kernel dashboard"
|
|
876
|
+
```
|
|
877
|
+
|
|
878
|
+
The terminal has no agent conversation to resume. Its fresh-start action
|
|
879
|
+
runs `rig tui` after the shell is ready; sibling agent sessions stay
|
|
880
|
+
unchanged. This command intentionally omits `--stop`, so it refuses to
|
|
881
|
+
replace a live occupant. Check the result before repeating it, then run
|
|
882
|
+
`rig capture "<dashboard-session>"` to confirm the TUI and
|
|
883
|
+
`rig ps --nodes --rig kernel --full` to check the seats. Once the dashboard
|
|
884
|
+
is running, open its view with `rig terminal open saved:kernel --window`.
|
|
885
|
+
|
|
886
|
+
Opening `saved:kernel` places a view of existing sessions; it cannot create a
|
|
887
|
+
missing terminal. Whole-kernel recovery is for the all-seats-lost case in the
|
|
888
|
+
table, and `rig up kernel --existing` refuses a kernel with live sessions.
|
|
889
|
+
A retained `excluded_from_subset` reason may come from an earlier subset
|
|
890
|
+
restore; inspect its event before attributing it to the latest reboot.
|
|
891
|
+
|
|
848
892
|
**When the kernel's seats all fail at the first start.** A report on Oracle Linux 10
|
|
849
893
|
([#980](https://github.com/mvschwarz/openrig/issues/980)) traced this to the distribution's packaged tmux, whose
|
|
850
894
|
`tmux -V` prints `next-3.4`: its server exited on every `capture-pane -p`, also outside OpenRig. `rig setup` (its tmux
|
|
@@ -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?
|
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
A hosted member is a tool that lives outside a terminal, such as an assistant, a chat bot or a cloud routine, and works as a member of a rig. You
|
|
4
4
|
address work to it like any seat. It reaches the team through OpenRig's MCP server under a grant you issue and can revoke. It never gets a pane.
|
|
5
5
|
|
|
6
|
+
Assistants that run on your machine can reach OpenRig's MCP server locally. Many assistants live in a vendor's cloud, and those can only reach a server on the internet.
|
|
7
|
+
|
|
8
|
+
> **Experimental and unsupported. Off by default.** Nothing in OpenRig listens on the internet unless you set it up yourself. You serve `rig mcp serve --http`, put it behind your own TLS tunnel or proxy, and issue a token. Doing that is like opening a port in your firewall. Anyone with the URL and a valid token can act as that member within its grant. Treat the token like a password, give the member the narrowest grant, and revoke it when you're done (`rig mcp token revoke <name>`). We don't support, and take no responsibility for, an OpenRig reachable from the internet, just as with running OpenRig itself on the open internet. Use at your own risk.
|
|
9
|
+
|
|
6
10
|
## Set one up
|
|
7
11
|
|
|
8
12
|
1. **Pick its address** on an existing rig: `<member>@<rig>`, for example `grok@research`. No node is added; the queue takes rows for it.
|
|
@@ -52,7 +56,7 @@ member, so it checks its rows again.
|
|
|
52
56
|
|
|
53
57
|
The server tells the member this in its MCP instructions. The text is versioned, so you can check which version a tool received:
|
|
54
58
|
|
|
55
|
-
> Member workflow (member-workflow/
|
|
59
|
+
> Member workflow (member-workflow/v2). Your inbox is the items addressed to your seat: rig_queue_list with owned set. It's yours, not the team's queue. A wake, a ring or a message only points at it: list your inbox, then act. For each item: claim it (rig_queue_claim), do it, then close it done with closure reason no-follow-on and the answer in resolution (rig_queue_update), or hand it on (rig_queue_handoff). Listing or reading an item doesn't take it. Say what you can reach from your grant, not from the tool list: a listed tool isn't access. rig_artifact_read's answer for an item names the shared roots you may read, and none means no shared files. If the person connected you, that's basically authorized: claim the items in your inbox and do them without asking whether you may. When an item needs a person's approval before you can finish it, don't close it and don't take the action: keep the item and ask. If it came from a person (an address ending in @external that isn't a shared channel; the item's 'Shared channel:' line names one), set it blocked with blockedOn that person and, as its summary, the question with a short form of what you'll do: the person sees the summary and the item, not your note, which keeps the record. Link a longer draft as an https evidenceRef. Their answer returns the item to you in progress. Otherwise ask as a new item, to the seat it came from or, for a shared channel's item, to your rig's lead (rig_team shows it), with your question and draft. Then set yours blocked with blockedOn that new qitemId: when that item closes, yours returns to pending, to claim again. Nothing promises to wake you, so check your inbox again. Then finish the same item; don't open a new one.
|
|
56
60
|
|
|
57
61
|
## Ring it when work lands
|
|
58
62
|
|
|
@@ -120,6 +120,11 @@ or **"Not tested by OpenRig"**, which means exactly that. You're welcome to run
|
|
|
120
120
|
|
|
121
121
|
## 6. Submit it to openrig.dev/rigs
|
|
122
122
|
|
|
123
|
+
Before you submit, run `rig bundle check` on the folder at the commit you'll submit. openrig-registry's registry check
|
|
124
|
+
runs the same check, with the latest published OpenRig, on the folder at your `ref`, and any finding fails it. A team
|
|
125
|
+
made with `rig export` has no README of its own: add one and declare it in `rig.yaml` as `docs: [{ path: README.md }]`
|
|
126
|
+
(see [section 1](#1-lay-out-the-folder)).
|
|
127
|
+
|
|
123
128
|
Open a pull request to [mvschwarz/openrig-registry](https://github.com/mvschwarz/openrig-registry) that adds one file,
|
|
124
129
|
`registry/submissions/<your-team>.yaml`, with three fields: `repository` (your GitHub repository URL), `folder` (the
|
|
125
130
|
folder holding `rig.yaml`, or `.` for the repository root) and `ref` (a branch, tag or commit). No pull requests? Open
|
|
@@ -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.6`. 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.
|