@openrig/cli 0.7.7 → 0.7.9
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 +6 -6
- package/daemon/assets/openshell/Dockerfile +15 -0
- package/daemon/assets/openshell/README.md +139 -0
- package/daemon/assets/openshell/agents/coordinator/agent.yaml +20 -0
- package/daemon/assets/openshell/agents/coordinator/role.md +1 -0
- package/daemon/assets/openshell/agents/worker/agent.yaml +20 -0
- package/daemon/assets/openshell/agents/worker/role.md +3 -0
- package/daemon/assets/openshell/claude-code-provider.yaml +55 -0
- package/daemon/assets/openshell/driver-v1.schema.json +81 -0
- package/daemon/assets/openshell/guest.py +319 -0
- package/daemon/assets/openshell/policy.yaml +33 -0
- package/daemon/assets/openshell/preset.yaml +13 -0
- package/daemon/assets/openshell/rig.yaml +20 -0
- 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/skills/seat-continuity-and-handover/SKILL.md +13 -4
- package/daemon/context-packs/help/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -1
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +110 -30
- package/daemon/context-packs/reference/getting-started.md +36 -9
- package/daemon/context-packs/reference/instance-layout.md +11 -0
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +130 -14
- package/daemon/context-packs/reference/whats-new.md +294 -132
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/SKILL.md +4 -3
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/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/SKILL.md +13 -4
- 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 +6 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +51 -74
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +19 -7
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +33 -7
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +204 -45
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts +13 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +31 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/omp-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/omp-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/omp-runtime-adapter.js +4 -0
- package/daemon/dist/adapters/omp-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/openshell-driver.d.ts +39 -0
- package/daemon/dist/adapters/openshell-driver.d.ts.map +1 -0
- package/daemon/dist/adapters/openshell-driver.js +145 -0
- package/daemon/dist/adapters/openshell-driver.js.map +1 -0
- package/daemon/dist/adapters/openshell-podman-observer.d.ts +30 -0
- package/daemon/dist/adapters/openshell-podman-observer.d.ts.map +1 -0
- package/daemon/dist/adapters/openshell-podman-observer.js +94 -0
- package/daemon/dist/adapters/openshell-podman-observer.js.map +1 -0
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts +1 -0
- package/daemon/dist/adapters/pi-openrouter-charge.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-openrouter-charge.js +17 -3
- package/daemon/dist/adapters/pi-openrouter-charge.js.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +39 -5
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +97 -19
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +22 -0
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +39 -8
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/preflight-exec.d.ts +2 -0
- package/daemon/dist/adapters/preflight-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/preflight-exec.js +3 -1
- package/daemon/dist/adapters/preflight-exec.js.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/stub-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/stub-runtime-adapter.js +7 -4
- package/daemon/dist/adapters/stub-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux-control.d.ts +12 -6
- package/daemon/dist/adapters/tmux-control.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-control.js +42 -21
- package/daemon/dist/adapters/tmux-control.js.map +1 -1
- package/daemon/dist/adapters/tmux-exec.d.ts +3 -0
- package/daemon/dist/adapters/tmux-exec.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-exec.js +35 -1
- package/daemon/dist/adapters/tmux-exec.js.map +1 -1
- package/daemon/dist/adapters/tmux-server.d.ts +6 -3
- package/daemon/dist/adapters/tmux-server.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux-server.js +13 -8
- package/daemon/dist/adapters/tmux-server.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +11 -2
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +66 -14
- 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 +16 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts +3 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.d.ts.map +1 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.js +5 -0
- package/daemon/dist/db/migrations/142_node_claude_mcp.js.map +1 -0
- package/daemon/dist/db/migrations/143_activity_grants.d.ts +8 -0
- package/daemon/dist/db/migrations/143_activity_grants.d.ts.map +1 -0
- package/daemon/dist/db/migrations/143_activity_grants.js +22 -0
- package/daemon/dist/db/migrations/143_activity_grants.js.map +1 -0
- package/daemon/dist/db/migrations/144_environment_bindings.d.ts +4 -0
- package/daemon/dist/db/migrations/144_environment_bindings.d.ts.map +1 -0
- package/daemon/dist/db/migrations/144_environment_bindings.js +31 -0
- package/daemon/dist/db/migrations/144_environment_bindings.js.map +1 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.d.ts +5 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.d.ts.map +1 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.js +7 -0
- package/daemon/dist/db/migrations/145_node_permissions_to.js.map +1 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts +6 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.d.ts.map +1 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.js +8 -0
- package/daemon/dist/db/migrations/146_node_startup_guidance_file.js.map +1 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.d.ts +9 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.js +19 -0
- package/daemon/dist/db/migrations/147_managed_block_writes.js.map +1 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts +8 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.js +12 -0
- package/daemon/dist/db/migrations/148_outbox_dispatched_index.js.map +1 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts +4 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.d.ts.map +1 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.js +14 -0
- package/daemon/dist/db/migrations/149_stream_intake_cursor.js.map +1 -0
- package/daemon/dist/domain/active-occupant.d.ts +2 -0
- package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/daemon/dist/domain/active-occupant.js +9 -1
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/activity-grants.d.ts +63 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -0
- package/daemon/dist/domain/activity-grants.js +106 -0
- package/daemon/dist/domain/activity-grants.js.map +1 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts +3 -0
- package/daemon/dist/domain/activity-taxonomy.d.ts.map +1 -1
- package/daemon/dist/domain/activity-taxonomy.js.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.d.ts.map +1 -1
- package/daemon/dist/domain/agent-images/agent-image-library-service.js +5 -2
- package/daemon/dist/domain/agent-images/agent-image-library-service.js.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js +3 -1
- package/daemon/dist/domain/bootstrap-orchestrator.js.map +1 -1
- package/daemon/dist/domain/bundle-archive.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-archive.js +40 -4
- package/daemon/dist/domain/bundle-archive.js.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-behaviour.js +7 -0
- package/daemon/dist/domain/bundle-behaviour.js.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.d.ts +1 -0
- package/daemon/dist/domain/bundle-content-routing.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-content-routing.js +3 -1
- package/daemon/dist/domain/bundle-content-routing.js.map +1 -1
- package/daemon/dist/domain/bundle-source-resolver.d.ts +2 -0
- package/daemon/dist/domain/bundle-source-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/bundle-source-resolver.js +4 -4
- package/daemon/dist/domain/bundle-source-resolver.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +12 -5
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +47 -18
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/claude-mcp.d.ts +10 -0
- package/daemon/dist/domain/claude-mcp.d.ts.map +1 -0
- package/daemon/dist/domain/claude-mcp.js +19 -0
- package/daemon/dist/domain/claude-mcp.js.map +1 -0
- package/daemon/dist/domain/claude-owned-settings.d.ts +19 -0
- package/daemon/dist/domain/claude-owned-settings.d.ts.map +1 -0
- package/daemon/dist/domain/claude-owned-settings.js +160 -0
- package/daemon/dist/domain/claude-owned-settings.js.map +1 -0
- package/daemon/dist/domain/claude-plugin-channels.d.ts +2 -0
- package/daemon/dist/domain/claude-plugin-channels.d.ts.map +1 -0
- package/daemon/dist/domain/claude-plugin-channels.js +12 -0
- package/daemon/dist/domain/claude-plugin-channels.js.map +1 -0
- package/daemon/dist/domain/claude-theme-menu.d.ts +5 -0
- package/daemon/dist/domain/claude-theme-menu.d.ts.map +1 -0
- package/daemon/dist/domain/claude-theme-menu.js +43 -0
- package/daemon/dist/domain/claude-theme-menu.js.map +1 -0
- package/daemon/dist/domain/codex-owned-plugin-trust.d.ts.map +1 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js +2 -1
- package/daemon/dist/domain/codex-owned-plugin-trust.js.map +1 -1
- package/daemon/dist/domain/codex-pane-patterns.d.ts +1 -0
- package/daemon/dist/domain/codex-pane-patterns.d.ts.map +1 -1
- package/daemon/dist/domain/codex-pane-patterns.js +2 -0
- package/daemon/dist/domain/codex-pane-patterns.js.map +1 -1
- package/daemon/dist/domain/community-harness-presets.d.ts +2 -1
- package/daemon/dist/domain/community-harness-presets.d.ts.map +1 -1
- package/daemon/dist/domain/community-harness-presets.js +3 -2
- package/daemon/dist/domain/community-harness-presets.js.map +1 -1
- package/daemon/dist/domain/composer-prompts.d.ts +2 -0
- package/daemon/dist/domain/composer-prompts.d.ts.map +1 -1
- package/daemon/dist/domain/composer-prompts.js +3 -2
- package/daemon/dist/domain/composer-prompts.js.map +1 -1
- package/daemon/dist/domain/context-monitor.d.ts +2 -2
- package/daemon/dist/domain/context-monitor.d.ts.map +1 -1
- package/daemon/dist/domain/context-monitor.js +8 -2
- package/daemon/dist/domain/context-monitor.js.map +1 -1
- package/daemon/dist/domain/desired-claude-activity-hooks.d.ts +25 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.d.ts.map +1 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.js +86 -0
- package/daemon/dist/domain/desired-claude-activity-hooks.js.map +1 -0
- package/daemon/dist/domain/draft-aware-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/draft-aware-delivery.js +14 -4
- package/daemon/dist/domain/draft-aware-delivery.js.map +1 -1
- package/daemon/dist/domain/environment-artifacts.d.ts +49 -0
- package/daemon/dist/domain/environment-artifacts.d.ts.map +1 -0
- package/daemon/dist/domain/environment-artifacts.js +158 -0
- package/daemon/dist/domain/environment-artifacts.js.map +1 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts +126 -0
- package/daemon/dist/domain/environment-lifecycle.d.ts.map +1 -0
- package/daemon/dist/domain/environment-lifecycle.js +474 -0
- package/daemon/dist/domain/environment-lifecycle.js.map +1 -0
- package/daemon/dist/domain/environment-platform.d.ts +121 -0
- package/daemon/dist/domain/environment-platform.d.ts.map +1 -0
- package/daemon/dist/domain/environment-platform.js +280 -0
- package/daemon/dist/domain/environment-platform.js.map +1 -0
- package/daemon/dist/domain/environment-startup.d.ts +43 -0
- package/daemon/dist/domain/environment-startup.d.ts.map +1 -0
- package/daemon/dist/domain/environment-startup.js +307 -0
- package/daemon/dist/domain/environment-startup.js.map +1 -0
- package/daemon/dist/domain/expected-conversation.d.ts +20 -0
- package/daemon/dist/domain/expected-conversation.d.ts.map +1 -0
- package/daemon/dist/domain/expected-conversation.js +101 -0
- package/daemon/dist/domain/expected-conversation.js.map +1 -0
- package/daemon/dist/domain/gateway/human-readiness.d.ts +2 -1
- package/daemon/dist/domain/gateway/human-readiness.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-readiness.js +6 -0
- package/daemon/dist/domain/gateway/human-readiness.js.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts +2 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +9 -7
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts +8 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/operator-delivery-engine.js +61 -4
- package/daemon/dist/domain/gateway/operator-delivery-engine.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +26 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +15 -0
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +59 -11
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +19 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +219 -9
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +15 -0
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +24 -5
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/recovery-budget.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/recovery-budget.js +1 -0
- package/daemon/dist/domain/gateway/slack/recovery-budget.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts +37 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.js +276 -0
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts +32 -0
- package/daemon/dist/domain/gateway/slack/slack-api.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-api.js +40 -2
- package/daemon/dist/domain/gateway/slack/slack-api.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +9 -4
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +2 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +35 -6
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts +22 -0
- package/daemon/dist/domain/hosts/hosts-registry-writer.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/hosts-registry-writer.js +116 -0
- package/daemon/dist/domain/hosts/hosts-registry-writer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +3 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.d.ts +3 -2
- package/daemon/dist/domain/kernel-boot-tracker.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot-tracker.js +2 -1
- package/daemon/dist/domain/kernel-boot-tracker.js.map +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts +11 -6
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +27 -5
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/kernel-hook-review.d.ts +18 -0
- package/daemon/dist/domain/kernel-hook-review.d.ts.map +1 -0
- package/daemon/dist/domain/kernel-hook-review.js +58 -0
- package/daemon/dist/domain/kernel-hook-review.js.map +1 -0
- package/daemon/dist/domain/managed-block-records.d.ts +54 -0
- package/daemon/dist/domain/managed-block-records.d.ts.map +1 -0
- package/daemon/dist/domain/managed-block-records.js +130 -0
- package/daemon/dist/domain/managed-block-records.js.map +1 -0
- package/daemon/dist/domain/managed-blocks.d.ts +14 -0
- package/daemon/dist/domain/managed-blocks.d.ts.map +1 -1
- package/daemon/dist/domain/managed-blocks.js +24 -4
- package/daemon/dist/domain/managed-blocks.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +29 -10
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +116 -29
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +10 -6
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/native-process-lineage.d.ts +5 -1
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +91 -6
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts +2 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +4 -2
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts +1 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +42 -10
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +3 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +6 -0
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +17 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +60 -3
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +10 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +60 -4
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -1
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts +9 -3
- package/daemon/dist/domain/provider/claude-seat-switch.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-seat-switch.js +100 -17
- package/daemon/dist/domain/provider/claude-seat-switch.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js +1 -1
- package/daemon/dist/domain/provider/provider-service-impl.js.map +1 -1
- package/daemon/dist/domain/provider/provider-service.d.ts +32 -2
- package/daemon/dist/domain/provider/provider-service.d.ts.map +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts +1 -1
- package/daemon/dist/domain/provider/provider-types.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts.map +1 -1
- package/daemon/dist/domain/queue-recovery.js +6 -2
- package/daemon/dist/domain/queue-recovery.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +64 -8
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +309 -76
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +59 -4
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transition-log.d.ts +2 -0
- package/daemon/dist/domain/queue-transition-log.d.ts.map +1 -1
- package/daemon/dist/domain/queue-transition-log.js +9 -0
- package/daemon/dist/domain/queue-transition-log.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +3 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +124 -25
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/restore-check-service.d.ts +2 -7
- package/daemon/dist/domain/restore-check-service.d.ts.map +1 -1
- package/daemon/dist/domain/restore-check-service.js.map +1 -1
- package/daemon/dist/domain/restore-guidance.d.ts +70 -7
- package/daemon/dist/domain/restore-guidance.d.ts.map +1 -1
- package/daemon/dist/domain/restore-guidance.js +181 -18
- package/daemon/dist/domain/restore-guidance.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +40 -3
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +276 -33
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +20 -6
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/rig-expansion-service.js +1 -1
- package/daemon/dist/domain/rig-expansion-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +14 -0
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +57 -1
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +18 -0
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +73 -17
- 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 +6 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +8 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +66 -3
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +7 -4
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +38 -11
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.d.ts +4 -0
- package/daemon/dist/domain/rigspec-preflight.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-preflight.js +35 -1
- package/daemon/dist/domain/rigspec-preflight.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +56 -6
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +150 -0
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -0
- package/daemon/dist/domain/runner-permissions.js +383 -0
- package/daemon/dist/domain/runner-permissions.js.map +1 -0
- package/daemon/dist/domain/runtime-adapter.d.ts +28 -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/runtime-switch-materials.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-switch-materials.js +3 -0
- package/daemon/dist/domain/runtime-switch-materials.js.map +1 -1
- package/daemon/dist/domain/runtime-verifier.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-verifier.js +9 -4
- package/daemon/dist/domain/runtime-verifier.js.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.d.ts +1 -1
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -0
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +7 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +47 -7
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +8 -1
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +22 -4
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +80 -11
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-effort.d.ts +6 -0
- package/daemon/dist/domain/seat-effort.d.ts.map +1 -1
- package/daemon/dist/domain/seat-effort.js +0 -2
- package/daemon/dist/domain/seat-effort.js.map +1 -1
- package/daemon/dist/domain/seat-handover-planner.js +1 -1
- package/daemon/dist/domain/seat-handover-planner.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts +25 -10
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +164 -31
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.d.ts +6 -0
- package/daemon/dist/domain/seat-launch-additions.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-additions.js +41 -11
- package/daemon/dist/domain/seat-launch-additions.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +24 -2
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +65 -2
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +6 -1
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +21 -3
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.d.ts +8 -6
- package/daemon/dist/domain/seat-skill-storage.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-storage.js +27 -7
- package/daemon/dist/domain/seat-skill-storage.js.map +1 -1
- package/daemon/dist/domain/seat-status-service.d.ts +5 -0
- package/daemon/dist/domain/seat-status-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-status-service.js +9 -0
- package/daemon/dist/domain/seat-status-service.js.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.d.ts +15 -5
- package/daemon/dist/domain/seat-structural-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-structural-activity-service.js +21 -7
- package/daemon/dist/domain/seat-structural-activity-service.js.map +1 -1
- package/daemon/dist/domain/self-attach-service.d.ts +8 -1
- package/daemon/dist/domain/self-attach-service.d.ts.map +1 -1
- package/daemon/dist/domain/self-attach-service.js +26 -0
- package/daemon/dist/domain/self-attach-service.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +17 -0
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +247 -31
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +15 -0
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts +2 -0
- package/daemon/dist/domain/spec-library-workflow-scanner.d.ts.map +1 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.js +5 -1
- package/daemon/dist/domain/spec-library-workflow-scanner.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +106 -8
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/stream-intake.d.ts +51 -0
- package/daemon/dist/domain/stream-intake.d.ts.map +1 -0
- package/daemon/dist/domain/stream-intake.js +438 -0
- package/daemon/dist/domain/stream-intake.js.map +1 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts +3 -0
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +2 -0
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +4 -3
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-follow-view.js +22 -4
- package/daemon/dist/domain/terminal/herdr-follow-view.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-viewer.js +8 -4
- package/daemon/dist/domain/terminal/herdr-viewer.js.map +1 -1
- package/daemon/dist/domain/terminal/login-shell.d.ts +10 -0
- package/daemon/dist/domain/terminal/login-shell.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/login-shell.js +37 -0
- package/daemon/dist/domain/terminal/login-shell.js.map +1 -0
- package/daemon/dist/domain/terminal/rex-layout.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/rex-layout.js +2 -1
- package/daemon/dist/domain/terminal/rex-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +12 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js +120 -18
- package/daemon/dist/domain/terminal/scope-task-terminal-view.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-following.js +1 -1
- package/daemon/dist/domain/terminal/terminal-following.js.map +1 -1
- package/daemon/dist/domain/terminal/terminal-provider.d.ts +2 -0
- package/daemon/dist/domain/terminal/terminal-provider.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.d.ts +3 -2
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +18 -27
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +15 -5
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +6 -3
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +15 -5
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/tmux-server-selection.d.ts +47 -0
- package/daemon/dist/domain/tmux-server-selection.d.ts.map +1 -0
- package/daemon/dist/domain/tmux-server-selection.js +220 -0
- package/daemon/dist/domain/tmux-server-selection.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +19 -10
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +54 -0
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.js +3 -1
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +23 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +11 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.js +134 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -0
- package/daemon/dist/domain/watchdog-delivery.d.ts +7 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +24 -8
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +21 -2
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +52 -23
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +3 -3
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +1 -1
- package/daemon/dist/domain/workflow-runtime.js +3 -3
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/working-liveness.d.ts +66 -0
- package/daemon/dist/domain/working-liveness.d.ts.map +1 -0
- package/daemon/dist/domain/working-liveness.js +94 -0
- package/daemon/dist/domain/working-liveness.js.map +1 -0
- package/daemon/dist/domain/workspace/frontmatter-validator.js +4 -2
- package/daemon/dist/domain/workspace/frontmatter-validator.js.map +1 -1
- package/daemon/dist/index.d.ts +4 -0
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +17 -0
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +9 -3
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/middleware/auth-bearer-token.js +2 -2
- package/daemon/dist/middleware/auth-bearer-token.js.map +1 -1
- package/daemon/dist/routes/activity.d.ts +6 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +317 -22
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +17 -5
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/bundles.js +3 -1
- package/daemon/dist/routes/bundles.js.map +1 -1
- package/daemon/dist/routes/compaction.js +4 -2
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/environments.d.ts +3 -0
- package/daemon/dist/routes/environments.d.ts.map +1 -0
- package/daemon/dist/routes/environments.js +104 -0
- package/daemon/dist/routes/environments.js.map +1 -0
- package/daemon/dist/routes/gateway.d.ts +6 -0
- package/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +39 -0
- package/daemon/dist/routes/gateway.js.map +1 -1
- package/daemon/dist/routes/hosts.d.ts.map +1 -1
- package/daemon/dist/routes/hosts.js +106 -8
- package/daemon/dist/routes/hosts.js.map +1 -1
- package/daemon/dist/routes/mission-control.d.ts.map +1 -1
- package/daemon/dist/routes/mission-control.js +6 -1
- package/daemon/dist/routes/mission-control.js.map +1 -1
- package/daemon/dist/routes/provider.d.ts.map +1 -1
- package/daemon/dist/routes/provider.js +53 -7
- package/daemon/dist/routes/provider.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +21 -2
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/restore-check.d.ts.map +1 -1
- package/daemon/dist/routes/restore-check.js +5 -19
- package/daemon/dist/routes/restore-check.js.map +1 -1
- package/daemon/dist/routes/rigs.js +3 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/rigspec.d.ts.map +1 -1
- package/daemon/dist/routes/rigspec.js +8 -3
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +30 -0
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +32 -5
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +66 -20
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/spec-library.d.ts.map +1 -1
- package/daemon/dist/routes/spec-library.js +60 -5
- package/daemon/dist/routes/spec-library.js.map +1 -1
- package/daemon/dist/routes/startup.js +2 -2
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +31 -5
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/server.d.ts +7 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +57 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +2 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +90 -37
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-spec.md +1 -1
- package/daemon/docs/reference/agent-startup-guide.md +119 -3
- package/daemon/docs/reference/agent-state-taxonomy.md +23 -2
- package/daemon/docs/reference/author-contracts.md +9 -9
- package/daemon/docs/reference/checked-seat-stop.md +12 -1
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +96 -0
- package/daemon/docs/reference/community-harness-examples/dsh/dsh.yaml +20 -0
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +626 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +5 -0
- package/daemon/docs/reference/community-harness-presets.md +25 -1
- package/daemon/docs/reference/daemon-http-clients.md +203 -0
- package/daemon/docs/reference/execution-platform-contract.md +1 -1
- package/daemon/docs/reference/gateway-participants.md +29 -17
- package/daemon/docs/reference/getting-started.md +36 -9
- package/daemon/docs/reference/harness-runner-contract.md +235 -26
- package/daemon/docs/reference/hosted-members.md +32 -0
- package/daemon/docs/reference/instance-layout.md +11 -0
- package/daemon/docs/reference/keeping-a-watch.md +22 -0
- package/daemon/docs/reference/pi-tool-selection-recovery.md +84 -0
- package/daemon/docs/reference/quickstart.md +9 -4
- package/daemon/docs/reference/rig-bundle.md +2 -2
- package/daemon/docs/reference/rig-spec.md +130 -14
- package/daemon/docs/reference/runner-conformance/README.md +77 -0
- package/daemon/docs/reference/runner-conformance/check-runner.mjs +818 -0
- package/daemon/docs/reference/runner-conformance/fake-acp-agent.mjs +150 -0
- package/daemon/docs/reference/sdlc-conventions.md +22 -3
- package/daemon/docs/reference/seat-delivery.md +31 -6
- package/daemon/docs/reference/slack-app-setup.md +55 -5
- package/daemon/docs/reference/terminal-sessions.md +100 -14
- package/daemon/docs/reference/tmux-servers.md +166 -0
- package/daemon/docs/reference/whats-new.md +294 -132
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +4 -3
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/scripts/backup-sqlite.mjs +90 -14
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +2 -1
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +1 -1
- package/dist/acp/connector.d.ts.map +1 -1
- package/dist/acp/connector.js +6 -1
- package/dist/acp/connector.js.map +1 -1
- package/dist/atomic-text-write.d.ts +2 -0
- package/dist/atomic-text-write.d.ts.map +1 -1
- package/dist/atomic-text-write.js +17 -0
- package/dist/atomic-text-write.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +3 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +28 -0
- package/dist/client.js.map +1 -1
- package/dist/commands/attach.d.ts +1 -0
- package/dist/commands/attach.d.ts.map +1 -1
- package/dist/commands/attach.js +8 -2
- package/dist/commands/attach.js.map +1 -1
- package/dist/commands/broadcast.js +2 -1
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/compact.d.ts.map +1 -1
- package/dist/commands/compact.js +7 -4
- package/dist/commands/compact.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +9 -3
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +1 -0
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -1
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/destroy.d.ts.map +1 -1
- package/dist/commands/destroy.js +2 -0
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/doctor.d.ts +8 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +126 -10
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +10 -0
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +10 -4
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/environment.d.ts +8 -0
- package/dist/commands/environment.d.ts.map +1 -0
- package/dist/commands/environment.js +197 -0
- package/dist/commands/environment.js.map +1 -0
- package/dist/commands/export.d.ts +2 -0
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +31 -7
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.js +15 -11
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/host.d.ts +13 -6
- package/dist/commands/host.d.ts.map +1 -1
- package/dist/commands/host.js +112 -15
- package/dist/commands/host.js.map +1 -1
- package/dist/commands/project-jev.js +1 -1
- package/dist/commands/project-jev.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +12 -5
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +2 -0
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +12 -3
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.d.ts +1 -0
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +50 -6
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +36 -2
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +85 -8
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +46 -16
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +18 -0
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/slack.d.ts.map +1 -1
- package/dist/commands/slack.js +5 -0
- package/dist/commands/slack.js.map +1 -1
- package/dist/commands/specs.d.ts +1 -1
- package/dist/commands/specs.d.ts.map +1 -1
- package/dist/commands/specs.js +44 -10
- package/dist/commands/specs.js.map +1 -1
- package/dist/commands/stream.d.ts.map +1 -1
- package/dist/commands/stream.js +6 -1
- package/dist/commands/stream.js.map +1 -1
- package/dist/commands/terminal.d.ts +2 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +31 -2
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/topology-default-agent.js +1 -1
- package/dist/commands/topology-default-agent.js.map +1 -1
- package/dist/commands/tui.d.ts +3 -2
- package/dist/commands/tui.d.ts.map +1 -1
- package/dist/commands/tui.js.map +1 -1
- package/dist/commands/walk.d.ts.map +1 -1
- package/dist/commands/walk.js +27 -10
- package/dist/commands/walk.js.map +1 -1
- package/dist/commands/workspace.d.ts.map +1 -1
- package/dist/commands/workspace.js +8 -1
- package/dist/commands/workspace.js.map +1 -1
- package/dist/config-store.d.ts +9 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +33 -2
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-target.d.ts.map +1 -1
- package/dist/cross-host-target.js +3 -1
- package/dist/cross-host-target.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +6 -0
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +66 -4
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-reachability.d.ts +2 -1
- package/dist/daemon-reachability.d.ts.map +1 -1
- package/dist/daemon-reachability.js +3 -2
- package/dist/daemon-reachability.js.map +1 -1
- package/dist/destroy-helpers.d.ts +3 -2
- package/dist/destroy-helpers.d.ts.map +1 -1
- package/dist/destroy-helpers.js +6 -3
- package/dist/destroy-helpers.js.map +1 -1
- package/dist/host-bindings.js +1 -1
- package/dist/host-bindings.js.map +1 -1
- package/dist/host-registry.d.ts +22 -0
- package/dist/host-registry.d.ts.map +1 -1
- package/dist/host-registry.js +121 -0
- package/dist/host-registry.js.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lazy-program.d.ts.map +1 -1
- package/dist/lazy-program.js +1 -0
- package/dist/lazy-program.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +37 -7
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +3 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +39 -53
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -0
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +89 -18
- package/dist/mcp-server.js.map +1 -1
- package/dist/openrig-compat.d.ts +1 -1
- package/dist/openrig-compat.d.ts.map +1 -1
- package/dist/openrig-compat.js +2 -2
- package/dist/openrig-compat.js.map +1 -1
- package/dist/seat-launch-additions-lines.d.ts +2 -0
- package/dist/seat-launch-additions-lines.d.ts.map +1 -1
- package/dist/seat-launch-additions-lines.js +1 -0
- package/dist/seat-launch-additions-lines.js.map +1 -1
- package/dist/shared-tui.d.ts +4 -2
- package/dist/shared-tui.d.ts.map +1 -1
- package/dist/shared-tui.js +4 -11
- package/dist/shared-tui.js.map +1 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +34 -29
- package/dist/terminal-window.js.map +1 -1
- package/dist/tmux-attachment.d.ts +17 -0
- package/dist/tmux-attachment.d.ts.map +1 -0
- package/dist/tmux-attachment.js +89 -0
- package/dist/tmux-attachment.js.map +1 -0
- package/package.json +2 -2
- package/tui/dist/attention/attention-model.d.ts +3 -2
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +7 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/daemon-client.d.ts +4 -4
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +6 -5
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +16 -5
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/pulse/pulse-model.d.ts +1 -1
- package/tui/dist/pulse/pulse-model.d.ts.map +1 -1
- package/tui/dist/pulse/pulse-model.js +6 -17
- package/tui/dist/pulse/pulse-model.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +8 -2
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +2 -1
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/theme.d.ts.map +1 -1
- package/tui/dist/theme.js +7 -2
- package/tui/dist/theme.js.map +1 -1
- package/tui/dist/time.d.ts +2 -0
- package/tui/dist/time.d.ts.map +1 -1
- package/tui/dist/time.js +5 -0
- package/tui/dist/time.js.map +1 -1
- package/tui/dist/types.d.ts +2 -3
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/index-BFOs3ejL.css +32 -0
- package/ui/dist/assets/{index-CMBgYrS7.js → index-CdkFwtld.js} +92 -92
- package/ui/dist/index.html +2 -2
- package/ui/dist/assets/index-DNU3XZr_.css +0 -32
|
@@ -1,19 +1,22 @@
|
|
|
1
|
-
# Harness and runner contract (DRAFT
|
|
1
|
+
# Harness and runner contract (DRAFT, published with 0.7.6)
|
|
2
2
|
|
|
3
3
|
> **Status.** This is a draft for contributors.
|
|
4
|
-
> - **
|
|
4
|
+
> - **Released in 0.7.6:** the `runner` field and OpenRig's side of declaration, identity and activity
|
|
5
5
|
> (sections 2-4).
|
|
6
|
-
> - **
|
|
7
|
-
>
|
|
6
|
+
> - **Released in 0.7.8:** seat activity grants (section 4), and OpenRig's side of the answered permission path
|
|
7
|
+
> (section 7).
|
|
8
|
+
> - **Runner-author behavior, not yet qualified:** the input, cancellation and permission recipe in sections 5-7, and
|
|
9
|
+
> the runner-side shutdown obligation in section 9. A dsh port implementing this recipe is not qualified.
|
|
8
10
|
> - **Existing interfaces with author obligations:** launch-result identity, exact resume, first input and model
|
|
9
11
|
> handoff. These interfaces do not establish that a particular runner implements them correctly.
|
|
10
12
|
> - **Unchanged:** plain community presets and the built-in runtimes (Claude Code, Codex, Pi, OMP, terminal).
|
|
11
13
|
>
|
|
12
|
-
> No harness has been run end to end under this contract yet
|
|
14
|
+
> No harness has been run end to end under this contract yet, and the native verdict is pending. The first candidate
|
|
15
|
+
> is dsh over ACP.
|
|
13
16
|
>
|
|
14
|
-
>
|
|
15
|
-
> [community presets reference](
|
|
16
|
-
>
|
|
17
|
+
> Release status and pinned references are in the [joined author guide](author-contracts.md). The
|
|
18
|
+
> [community presets reference](community-harness-presets.md) describes the implemented fields, including the runner
|
|
19
|
+
> preset's exception for approvals; this chapter also labels runner-author behavior that isn't qualified.
|
|
17
20
|
|
|
18
21
|
This chapter covers **which agent runs in a seat and how OpenRig talks to it**. *Where* that agent runs (a host, a
|
|
19
22
|
sandbox, another machine) is the [execution platform chapter](execution-platform-contract.md). The two are separate on purpose:
|
|
@@ -32,7 +35,7 @@ the same harness can run in many places, and one place can host many harnesses.
|
|
|
32
35
|
honestly.** A runner that guesses is worse than a quiet screen read as unknown.
|
|
33
36
|
|
|
34
37
|
**Vocabulary.** "Preset", "runner preset", `launch_result`, `resume`, `first_input` and `passes_model` are existing
|
|
35
|
-
terms
|
|
38
|
+
terms in 0.7.6. Broader names you may see in design discussion, such as *HarnessSpec*, are **proposals**, not file
|
|
36
39
|
formats or loaders that exist.
|
|
37
40
|
|
|
38
41
|
## 2. Declare it: what the preset says, fixed at launch
|
|
@@ -43,11 +46,11 @@ format: 1
|
|
|
43
46
|
name: dsh
|
|
44
47
|
command: dsh-seat # your runner; it starts the agent itself
|
|
45
48
|
maintainer: <you>
|
|
46
|
-
runner: true #
|
|
49
|
+
runner: true # since 0.7.6
|
|
47
50
|
launch_result: true # required with runner
|
|
48
51
|
resume: true # only after you've checked a real reopen and a refused missing one
|
|
49
52
|
limits:
|
|
50
|
-
- permission requests
|
|
53
|
+
- permission requests go to a person through OpenRig (section 7), and are permitted when no one can be asked
|
|
51
54
|
- a prompt whose whole text is /abort can't be sent
|
|
52
55
|
- fork unsupported
|
|
53
56
|
```
|
|
@@ -104,6 +107,8 @@ Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer
|
|
|
104
107
|
|---|---|---|
|
|
105
108
|
| You gave the agent the prompt for a submitted message | `UserPromptSubmit` / `accepted`, `turnId` = your prompt number | working |
|
|
106
109
|
| The agent is working (message chunks, tool calls) | `active` / `agent_message`; `PreToolUse` / `<tool kind>` | working |
|
|
110
|
+
| Optional working beat, from 0.7.9: the turn is still outstanding and the agent alive, with nothing new to report (a long tool or model call) | `active` / `liveness`, with `turnId`, `sequence` and `livenessSeconds` | working while beats keep coming |
|
|
111
|
+
| From 0.7.9: you delivered an answer or permit to a request OpenRig had shown as needing input, and the agent continues the same turn (section 7) | `active` / `permission_resolved`, with `turnId` and `askId` | working |
|
|
107
112
|
| You refused a permission request (section 7) | `Notification` / `permission_prompt` | needs input |
|
|
108
113
|
| 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
114
|
| Optional idle heartbeat | `Stop` / `idle_heartbeat`, with `livenessSeconds` | idle while beats keep coming |
|
|
@@ -114,6 +119,41 @@ Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer
|
|
|
114
119
|
idle `Stop`, the turn's end as well as each beat. OpenRig stops reading the seat idle after 2 × `livenessSeconds` without
|
|
115
120
|
a newer idle report. Without it, an idle report holds until your next post, even if your runner has died. Never send a
|
|
116
121
|
non-exit `Stop` or a beat while holding permission attention.
|
|
122
|
+
- **Working evidence lasts 15 seconds.** A working post (`UserPromptSubmit`, `active`, `PreToolUse`) decides the seat's
|
|
123
|
+
activity for 15 s. After that the seat reads from its other evidence: the screen can still show work, but it never
|
|
124
|
+
reads a runner seat idle, so with nothing else the seat reads unknown.
|
|
125
|
+
- **The working beat (from 0.7.9)** keeps a long, quiet turn reading working. It says only that this turn's prompt is
|
|
126
|
+
outstanding and the agent process you started is alive. It isn't progress.
|
|
127
|
+
- **When to beat:** only while a prompt is outstanding and the agent is alive, more often than every
|
|
128
|
+
`livenessSeconds` ÷ 2.
|
|
129
|
+
- **When to stop:** stop at once on the turn's `Stop`, on a permission request that needs a person, or on the agent's
|
|
130
|
+
exit, and post that boundary first.
|
|
131
|
+
- **`livenessSeconds`** is how long one beat counts as working. OpenRig clamps it to 5-60 s, and uses 30 s when a beat
|
|
132
|
+
has none. After that the beat stops counting, and the seat reads from its other evidence, as a working post's does.
|
|
133
|
+
- **A beat counts only when all of these hold:**
|
|
134
|
+
- it carries `generation`, equal to the seat's live occupant generation, and so did the `UserPromptSubmit` /
|
|
135
|
+
`accepted` post that opened its turn;
|
|
136
|
+
- its `turnId` is your latest `UserPromptSubmit` / `accepted` turn, and you haven't posted that turn's `Stop` or an
|
|
137
|
+
exit;
|
|
138
|
+
- it carries a `sequence`, greater than every earlier post's in the same generation that OpenRig counted, beats
|
|
139
|
+
included;
|
|
140
|
+
- the seat has no attention outstanding, such as a permission request waiting on a person.
|
|
141
|
+
|
|
142
|
+
So number every post with one `sequence` that rises across your whole runner process, beats included. OpenRig
|
|
143
|
+
orders your posts by `occurredAt`, then `sequence`. A post older than one OpenRig already counted changes nothing:
|
|
144
|
+
a late `Stop` for an earlier turn doesn't end the current one, and an older beat doesn't count. A post without a
|
|
145
|
+
valid `occurredAt` is dated when it arrives, by OpenRig's clock, so it can read older than it is when your clock
|
|
146
|
+
runs ahead. Give every post its `occurredAt`.
|
|
147
|
+
- **After you deliver an answer or permit** to a request OpenRig had shown as needing input (section 7; it created an
|
|
148
|
+
ask, and a permit at submit opens none), post `active` / `permission_resolved` with the turn's `turnId` and the
|
|
149
|
+
`askId`, before your next beat. That clears the seat's attention. So does any other working or idle post OpenRig
|
|
150
|
+
counts, and an operator's `rig seat clear-attention`. OpenRig doesn't match `permission_resolved` to its `askId`.
|
|
151
|
+
Beats are ignored until attention clears.
|
|
152
|
+
- **A beat that fails any of these is ignored.** The seat reads as it would without it. A beat never starts or extends
|
|
153
|
+
a turn, never clears attention, and never stands in for a `Stop`.
|
|
154
|
+
- **OpenRig keeps what it needs to judge beats in memory.** After a daemon restart, a beat already counted keeps its
|
|
155
|
+
lifetime, but new beats are ignored until your next accepted prompt, and the seat reads as it would without them.
|
|
156
|
+
- **A runner that sends no beats** behaves as before.
|
|
117
157
|
- **Exit:** post `Stop` / `<preset name>_exited` only when you observe the agent's process exit.
|
|
118
158
|
|
|
119
159
|
- **The screen still counts,** but only as evidence of work. On its own it never reads a runner seat idle.
|
|
@@ -122,11 +162,31 @@ Post each event to `POST <base>/api/activity/hooks` with `Authorization: Bearer
|
|
|
122
162
|
- **The generation attributes a post; it isn't authentication.**
|
|
123
163
|
- A post carrying an earlier occupant's generation never counts for the live seat.
|
|
124
164
|
- The hook token is one local token, so any process holding it can post for any seat.
|
|
165
|
+
- **A seat activity grant** is what a runner in another environment, such as a sandbox guest, receives instead of the
|
|
166
|
+
local token. It arrives in the same `OPENRIG_ACTIVITY_HOOK_TOKEN`, with an `OPENRIG_URL` the guest can reach, and it
|
|
167
|
+
speaks only for its own seat and launch generation:
|
|
168
|
+
- with a grant, the generation is authenticated, and you may leave out `nodeId` and `generation`;
|
|
169
|
+
- a post for another seat is refused with `403 activity_grant_wrong_seat`;
|
|
170
|
+
- a post claiming another generation, or from an occupant that has since been replaced, is refused with
|
|
171
|
+
`409 activity_grant_stale`;
|
|
172
|
+
- a post before the launch has registered its occupant is refused with `409 activity_grant_pending`;
|
|
173
|
+
- a post with a revoked grant is refused with `401 activity_grant_revoked`, including a post whose grant was revoked
|
|
174
|
+
while its body was arriving.
|
|
175
|
+
|
|
176
|
+
A refused post records nothing, so the seat's activity stays as it was, or unknown.
|
|
177
|
+
|
|
178
|
+
**The guest's boundary is its listener, not the grant.** A guest reaches OpenRig only through a guest-only listener that
|
|
179
|
+
serves this route and section 7's three permission-request routes, and accepts only a grant. It must never reach the
|
|
180
|
+
daemon's main port. The grant scopes activity posts and permission requests, and the main port's other routes don't
|
|
181
|
+
check it.
|
|
182
|
+
- The listener is off by default. Turn it on with `OPENRIG_GUEST_ACTIVITY_PORT`, which must differ from the daemon's
|
|
183
|
+
main port or the daemon refuses to start.
|
|
184
|
+
- It binds `OPENRIG_GUEST_ACTIVITY_HOST`, default `127.0.0.1`: set it to an address the guest can reach.
|
|
125
185
|
|
|
126
186
|
## 5. Input: one submitted message is one prompt
|
|
127
187
|
|
|
128
|
-
Sections 5-7 specify the
|
|
129
|
-
existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
188
|
+
Sections 5-7 specify the first dsh/ACP runner recipe; no runner has been qualified against it yet. They do not change
|
|
189
|
+
permission or input handling in existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
130
190
|
|
|
131
191
|
- **Set up the pane:** put your TTY in raw mode and turn on bracketed paste (`\e[?2004h`).
|
|
132
192
|
- **What arrives:** `rig send` and queue reminders paste the whole message, then press Enter. Everything up to that Enter
|
|
@@ -146,11 +206,15 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
|
146
206
|
|
|
147
207
|
- **On `/abort` or Ctrl-C:** send the agent's cancel (for ACP, the `session/cancel` notification, which has no reply),
|
|
148
208
|
and record when you sent it.
|
|
209
|
+
- A person cancels by typing `/abort` in the seat's pane. A `/abort` sent with `rig send` arrives inside a From/To
|
|
210
|
+
envelope, so it's an ordinary prompt.
|
|
149
211
|
- **Report "cancelled" only when the agent says so:** for ACP, when `session/prompt` returns `stopReason: "cancelled"`.
|
|
150
212
|
Then post `Stop` / `cancelled`.
|
|
151
213
|
- **Whether the provider stopped work or spend is unknown.** Don't claim it.
|
|
152
214
|
|
|
153
|
-
## 7. Permissions:
|
|
215
|
+
## 7. Permissions: a person answers, and the default is permit
|
|
216
|
+
|
|
217
|
+
### The first version: refuse every request (history; still what `--deny` does)
|
|
154
218
|
|
|
155
219
|
- **Refuse at once:** answer every permission request immediately with a refusal (for ACP,
|
|
156
220
|
`{"outcome": {"outcome": "cancelled"}}`).
|
|
@@ -160,19 +224,155 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
|
160
224
|
- **It clears** when your next prompt is accepted, or when an operator clears it
|
|
161
225
|
(`rig seat clear-attention <session> --reason "…"`).
|
|
162
226
|
- **Never leave a request pending.**
|
|
163
|
-
- **
|
|
164
|
-
-
|
|
165
|
-
- answers typed into the pane;
|
|
166
|
-
-
|
|
167
|
-
|
|
168
|
-
|
|
227
|
+
- **What it couldn't do:**
|
|
228
|
+
- answer from the seat's permission setting;
|
|
229
|
+
- take answers typed into the pane;
|
|
230
|
+
- route an approval to another seat.
|
|
231
|
+
|
|
232
|
+
So a job that needed an edit or a command approved couldn't finish. The answered path below, added in 0.7.8,
|
|
233
|
+
replaces this as the default.
|
|
169
234
|
- **Unknown requests from the agent:** answer with JSON-RPC `-32601` and carry on.
|
|
170
235
|
|
|
236
|
+
### The answered path (0.7.8)
|
|
237
|
+
|
|
238
|
+
**Only requests the agent actually makes reach anyone.** The harness's own permission mode decides that, and a harness
|
|
239
|
+
that runs without asking gains no approval step. Ordinary conversation and `rig send` are unchanged.
|
|
240
|
+
|
|
241
|
+
**What happens to a request, in the person's terms:**
|
|
242
|
+
|
|
243
|
+
| Situation | What happens |
|
|
244
|
+
|---|---|
|
|
245
|
+
| **There's a default person** (chosen with `rig gateway default`, or the only registered person), and no override | They get an ordinary ask in the Feed and on Slack. No setup is needed. |
|
|
246
|
+
| **The seat's operator chose someone** (`rig seat set-permissions-to <seat> --to <person> --reason "…"`) | That person gets the ask instead. |
|
|
247
|
+
| **No one can be asked** | **Permitted at once**, with the agent's own allow option. No ask is opened, and OpenRig records the permit (below). That covers: no registered person; several and none the default; the chosen person no longer registered; the people unreadable; or options a person can't be shown (bad ids, or not 2-4). The agent's `allow_once` is used, else its `allow_always`. If the agent offers only `allow_always`, the harness then remembers a permission nobody chose. |
|
|
248
|
+
| **The seat's operator opted in to refusal** (`rig seat set-permissions-to <seat> --deny --reason "…"`) | Refused at once and held as needs input, as in the first version. |
|
|
249
|
+
|
|
250
|
+
**What the ask shows:**
|
|
251
|
+
- the seat and the conversation;
|
|
252
|
+
- the tool call, as the agent described it;
|
|
253
|
+
- why this person was asked;
|
|
254
|
+
- every option the agent offered, each with its native meaning. `allow_always` means the agent's harness remembers
|
|
255
|
+
the choice and allows similar requests without asking. OpenRig doesn't record or revoke that.
|
|
256
|
+
|
|
257
|
+
**How a person answers, and what the agent gets:**
|
|
258
|
+
|
|
259
|
+
| The person… | The agent gets |
|
|
260
|
+
|---|---|
|
|
261
|
+
| clicks an option: the asked person, any other registered person, or the primary user in the TUI | that option |
|
|
262
|
+
| replies with just a yes ("yes", "ok", "allow", "go ahead" …) | the agent's allow (`allow_once`, else `allow_always`) |
|
|
263
|
+
| replies with just a no ("no", "deny", "reject", "stop" …), or denies it in the Feed | the agent's reject (`reject_once`, else `reject_always`), or, with no reject option, cancelled. A person's no is never a grant |
|
|
264
|
+
| routes or hands it to another person | the ask waits for that person, who gets the same options; their answer counts as if they'd been asked. The handoff itself never permits |
|
|
265
|
+
| routes or hands it to an agent seat | that seat gets no options. The request waits until that row is closed, by the seat or a person. Closed as done without a choice (including a drop), or as failed, is no answer, so it's permitted. Closed as denied (the Feed's deny, `--closure-reason denied`, or the state `denied`) is a no. A row set to the state `canceled` cancels the request, and a further handoff is followed; a person it reaches gets the same options. Or the request waits until the agent's turn ends |
|
|
266
|
+
| closes it without choosing: drop, approve, or other typed words | no answer, so the default applies: **permitted** with the agent's allow, and OpenRig records the permit (below) |
|
|
267
|
+
| doesn't answer | the request **stays pending and visible** (the seat reads needs input) until the agent's turn ends. It's never timed out into a grant. |
|
|
268
|
+
|
|
269
|
+
- **An answer reaches only the live request it was asked for,** once. A request from an earlier occupant reads
|
|
270
|
+
`stale`, and one withdrawn at the turn's end reads `withdrawn`. Neither can take a later answer.
|
|
271
|
+
- **Text typed into the runner's pane, an agent's own text, and `rig send` are never an answer.** While a request waits
|
|
272
|
+
on a person, the seat reads needs input, and sends are normally refused. A send that does get through reaches the
|
|
273
|
+
agent as a prompt.
|
|
274
|
+
- **From 0.7.9, each permit OpenRig decides by default is recorded,** once, as a stream item from the seat. That covers
|
|
275
|
+
no one to ask, and an ask closed without a choice (the row passed to an agent seat included). The record names:
|
|
276
|
+
- the tool call;
|
|
277
|
+
- why no person answered, including, for a closed ask, who closed which row and how;
|
|
278
|
+
- the option the agent got, with its kind. An `allow_always` option is marked as remembered by the agent's harness;
|
|
279
|
+
- the conversation and request, or the ask.
|
|
280
|
+
|
|
281
|
+
For an ask opened before 0.7.9, the record may omit the option kind and whether the harness remembers it.
|
|
282
|
+
|
|
283
|
+
Read the records with `rig stream list --tag runner-permission-permit`, or `--source <seat>`. A record wakes no one,
|
|
284
|
+
and one that can't be written doesn't change the permit.
|
|
285
|
+
|
|
286
|
+
**The runner's protocol:**
|
|
287
|
+
1. **Submit** the agent's live request to `POST <base>/api/activity/permission-requests`, with the same token or seat
|
|
288
|
+
grant as section 4:
|
|
289
|
+
|
|
290
|
+
```json
|
|
291
|
+
{"sessionName": "dev-builder@my-rig", "nodeId": "<node id>", "generation": "<OPENRIG_OCCUPANT_GENERATION>",
|
|
292
|
+
"nativeRef": "<the conversation>", "turnId": "7", "requestId": "<the agent's JSON-RPC id>",
|
|
293
|
+
"toolCall": {"title": "Edit src/app.ts", "kind": "edit"},
|
|
294
|
+
"options": [{"optionId": "allow", "name": "Allow", "kind": "allow_once"},
|
|
295
|
+
{"optionId": "reject", "name": "Reject", "kind": "reject_once"}],
|
|
296
|
+
"occurredAt": "2026-10-30T12:00:00Z"}
|
|
297
|
+
```
|
|
298
|
+
|
|
299
|
+
- **A person is asked:** the reply is `{"ok": true, "askId": "…", "created": true}`. OpenRig records the seat's
|
|
300
|
+
`permission_prompt`, so it reads needs input. Don't post it yourself.
|
|
301
|
+
- **No one can be asked:** the reply is `{"ok": true, "state": "permitted", "optionId": "…", "reason": "…"}`.
|
|
302
|
+
Deliver that option.
|
|
303
|
+
- **`requestId` and `turnId`** may be strings or numbers. Pass the agent's id unchanged: a number is read as its
|
|
304
|
+
decimal string, so `7` and `"7"` are the same request.
|
|
305
|
+
- **Resubmitting** the same generation, conversation and request id returns the same `askId`.
|
|
306
|
+
2. **Read** the answer with `GET <base>/api/activity/permission-requests/<askId>?waitSeconds=25` (25 at most), and read
|
|
307
|
+
again until the agent's turn ends.
|
|
308
|
+
- **The `state`** is `pending` (read again, don't cancel), `answered` or `permitted` (each with `optionId`),
|
|
309
|
+
`refused` (with `reason`: `said_no` when the person said no and the agent offered no reject option, or
|
|
310
|
+
`no_allow_offered` when it was closed without a choice and the agent offered no allow option), `withdrawn` or
|
|
311
|
+
`stale`.
|
|
312
|
+
- **From 0.7.9, `said`,** with `permitted` or `refused` (`no_allow_offered`), is the person's own words, when they
|
|
313
|
+
answered in words that were neither a choice nor a plain yes or no. It never changes the outcome.
|
|
314
|
+
- **A seat grant reads and withdraws only its own launch's requests.** Once its occupant is replaced, the grant is
|
|
315
|
+
refused (`409 activity_grant_stale`), even during a read's wait.
|
|
316
|
+
3. **Deliver** `{"outcome": {"outcome": "selected", "optionId": "<optionId>"}}` to the agent once, and only while that
|
|
317
|
+
request is still its live one. For `refused`, `withdrawn` or `stale`, answer `cancelled` and hold no attention: no
|
|
318
|
+
person is still waiting. A refusal of the read itself follows the refusals below. From 0.7.9, when the read carries
|
|
319
|
+
`said`, queue those words for the agent as an ordinary prompt: they reach it after the current turn, behind any prompt
|
|
320
|
+
already waiting. They're never the answer. A runner that drops them still keeps this contract.
|
|
321
|
+
4. **Withdraw** when the turn is cancelled or ends, or the agent exits:
|
|
322
|
+
`POST <base>/api/activity/permission-requests/<askId>/withdraw` with
|
|
323
|
+
`{"reason": "turn_cancelled" | "turn_ended" | "exited"}`.
|
|
324
|
+
- A later answer isn't sent.
|
|
325
|
+
- A relaunch makes the earlier occupant's open requests stale on its own.
|
|
326
|
+
|
|
327
|
+
**Refusals, at submit or while reading.** One rule covers both. Cancel only a request that certainly isn't the current
|
|
328
|
+
occupant's live one, and hold no attention. Anything that may still be a live request permits, as when OpenRig can't
|
|
329
|
+
answer. Only the seat's opt-in refuses and holds attention.
|
|
330
|
+
|
|
331
|
+
| Code | Status | Meaning | The runner |
|
|
332
|
+
|---|---|---|---|
|
|
333
|
+
| `denied_by_seat` | 409 | The seat's operator opted in to refusal (`--deny`). | refuses and holds attention |
|
|
334
|
+
| `options_unsupported` | 422 | No one can be asked, and the agent offered no allow option to permit. | refuses and holds attention |
|
|
335
|
+
| `stale_generation` | 409 | With the activity token: the post isn't from the seat's current occupant. | answers `cancelled` |
|
|
336
|
+
| `activity_grant_wrong_seat` | 403 | The grant speaks for another seat. | answers `cancelled` |
|
|
337
|
+
| `activity_grant_stale` | 409 | The grant's launch generation no longer occupies the seat. | answers `cancelled` |
|
|
338
|
+
| `activity_grant_revoked` | 401 | The grant was revoked while its launch generation still occupies the seat, or before it has registered, so this may still be the live request; a replaced occupant's grant reads `activity_grant_stale` instead, even once revoked. | permits |
|
|
339
|
+
| `activity_grant_pending` | 409 | The grant's launch hasn't registered its occupant yet. | permits |
|
|
340
|
+
| `duplicate_request` | 409 | This request id was already submitted in another turn; an agent may reuse an id. | permits |
|
|
341
|
+
|
|
342
|
+
**When the runner can't get an answer from OpenRig,** nobody can be asked, so it permits with the agent's own allow
|
|
343
|
+
option: `allow_once` when offered, else `allow_always`. Prefer `allow_once`, so the harness doesn't remember a
|
|
344
|
+
permission nobody chose. Such a permit is the runner's own, so OpenRig has no record of it: the runner prints it in
|
|
345
|
+
its pane. That covers:
|
|
346
|
+
- an OpenRig without this path, which answers 404;
|
|
347
|
+
- an OpenRig the runner can't reach, at submit or while reading (a runner may retry a read that got no answer a few
|
|
348
|
+
times first);
|
|
349
|
+
- a refusal the table marks "permits", and any status or code this section doesn't list.
|
|
350
|
+
|
|
351
|
+
**Limits of this path:**
|
|
352
|
+
- **The answer owner is a registered person.** Choosing a seat (another agent) to answer is a later change.
|
|
353
|
+
- **A colleague's answer is followed on this host.** If the ask is handed to another host, the request waits, shown as
|
|
354
|
+
needs input, until the agent's turn ends.
|
|
355
|
+
- **An override or `--deny` is set with the command above, never in a rig spec.** A spec field is a possible later
|
|
356
|
+
change.
|
|
357
|
+
- **A person's answer is recorded on the ask itself,** and a default permit as the stream item above. That item lasts as
|
|
358
|
+
long as stream retention keeps it. A permit the runner decides on its own is in its pane only.
|
|
359
|
+
|
|
171
360
|
## 8. Resume: exactly the same conversation, or say honestly that you couldn't
|
|
172
361
|
|
|
173
362
|
- 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`),
|
|
363
|
+
advertises: ACP's `session/load` (capability `loadSession`), ACP's `session/resume` (capability
|
|
364
|
+
`sessionCapabilities.resume`, which dsh `0.2.1-rc.2` uses), or your agent's own reopen method, named with its
|
|
175
365
|
capability and pinned version in your `limits`.
|
|
366
|
+
- **Telling "missing" from "won't reopen":** an agent may answer one error for both. dsh `0.2.1-rc.2` answers `-32602`
|
|
367
|
+
for a conversation it doesn't have and for one already active elsewhere. So don't read an error's code or text as
|
|
368
|
+
missing unless the agent defines it that way, as ACP's not-found `-32002` is.
|
|
369
|
+
- **Report missing only on the agent's own not-found,** and leave anything else unconfirmed.
|
|
370
|
+
- **When the agent advertises `sessionCapabilities.list`,** its `session/list` can show that a conversation exists:
|
|
371
|
+
one it lists but won't reopen is unconfirmed, even on a not-found. Follow `nextCursor` (an opaque string, possibly
|
|
372
|
+
empty), and treat a page you can't read as deciding nothing.
|
|
373
|
+
- **A list doesn't show that a conversation is gone,** unless your agent guarantees it lists every conversation. An
|
|
374
|
+
agent may leave out one that another running process holds unsaved; dsh `0.2.1-rc.2` can. So still try the reopen
|
|
375
|
+
for a conversation the list doesn't name.
|
|
176
376
|
|
|
177
377
|
| What happened | Write in the launch record | What OpenRig does |
|
|
178
378
|
|---|---|---|
|
|
@@ -203,7 +403,9 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
|
203
403
|
that `--verify` recognises it.
|
|
204
404
|
- **A turn ending isn't the work being done.** Task completion is whatever the work's own record says: a queue task
|
|
205
405
|
marked done, or an artifact written.
|
|
206
|
-
- **Your own tests** should run against a fake agent that covers each section above.
|
|
406
|
+
- **Your own tests** should run against a fake agent that covers each section above. The
|
|
407
|
+
[runner conformance check](runner-conformance/README.md) does that for you: point it at your runner, and it reports
|
|
408
|
+
which promises your runner keeps.
|
|
207
409
|
- **The useful real check** for a maintainer:
|
|
208
410
|
- a seat starts and reads ready only after the handshake;
|
|
209
411
|
- one multi-line message becomes one prompt;
|
|
@@ -223,7 +425,12 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
|
223
425
|
`subtype`. They're sent in order and never block the agent.
|
|
224
426
|
- [ ] One submitted message becomes exactly one prompt. Only a bare `/abort` block, or Ctrl-C outside a paste, is control.
|
|
225
427
|
- [ ] Cancel records "requested" when sent, and "cancelled" only on the agent's own stop reason.
|
|
226
|
-
- [ ] Every permission request
|
|
428
|
+
- [ ] Every permission request goes to OpenRig's answered path, and the runner delivers the option that comes back: the
|
|
429
|
+
person's, or OpenRig's permit. When OpenRig can't answer (404, unreachable, or a refusal section 7's table marks
|
|
430
|
+
"permits"), the runner permits with the agent's `allow_once`, else `allow_always`. A refusal that says the request
|
|
431
|
+
isn't the current occupant's, or a `refused` answer, means answer `cancelled` and hold nothing. Only
|
|
432
|
+
`denied_by_seat`, or no allow option to permit, means refuse at once, show it, and hold needs input until the next
|
|
433
|
+
accepted prompt.
|
|
227
434
|
- [ ] An agent exit posts `Stop` / `<preset name>_exited`, never a plain idle.
|
|
228
435
|
- [ ] A resume reopens the exact conversation. It reports `missing` only on the agent's word, and otherwise leaves it
|
|
229
436
|
unconfirmed.
|
|
@@ -232,11 +439,13 @@ existing built-in runtimes or require every possible runner protocol to use ACP.
|
|
|
232
439
|
|
|
233
440
|
## Open questions
|
|
234
441
|
|
|
235
|
-
1. **
|
|
236
|
-
|
|
442
|
+
1. **Answered:** which method and capability does dsh advertise for reopening a session, at a pinned version? dsh
|
|
443
|
+
`0.2.1-rc.2` advertises `sessionCapabilities` `{close, list, resume}`, without `loadSession`, and reopens with
|
|
444
|
+
`session/resume` (section 8). This was observed with a stand-in model, not a real one.
|
|
237
445
|
2. **For the dsh maintainer:** can dsh's ACP profile run with tools off? A first journey that needs no permission
|
|
238
446
|
answers is the simplest to check.
|
|
239
447
|
3. **For OpenRig:** should a later version route permission requests to a chosen seat, as `rig acp run` already does
|
|
240
|
-
with queue tasks,
|
|
448
|
+
with queue tasks? 0.7.8 routes them to the default person, or to a person chosen for the seat (section 7). A chosen
|
|
449
|
+
seat is still open.
|
|
241
450
|
4. **For OpenRig:** once a second ACP harness exists, should one shared ACP runner live in OpenRig rather than one per
|
|
242
451
|
harness?
|
|
@@ -107,6 +107,38 @@ OpenRig doesn't observe a hosted member between its calls, so it never reads idl
|
|
|
107
107
|
|
|
108
108
|
`rig mcp token revoke grok` refuses its next request. The rows it worked, and their answers, stay.
|
|
109
109
|
|
|
110
|
+
## Assistants connected through a grant service
|
|
111
|
+
|
|
112
|
+
With `rig mcp serve --http --grant-service <url>`, an outside service answers each connection's key with its grant
|
|
113
|
+
(`openrig.grant/v1`): the seat it acts as, its rigs, and the object/action pairs it may use. Each pair offers one tool,
|
|
114
|
+
and nothing else is offered:
|
|
115
|
+
|
|
116
|
+
| Pair | Tool |
|
|
117
|
+
|---|---|
|
|
118
|
+
| `queue`/`create`, `queue`/`show`, `queue`/`list` | `rig_queue_create`, `rig_queue_show`, `rig_queue_list` |
|
|
119
|
+
| `queue`/`claim`, `queue`/`update` | `rig_queue_claim`, `rig_queue_update` |
|
|
120
|
+
| `team`/`list` | `rig_team` |
|
|
121
|
+
| `artifact`/`read` | `rig_artifact_read` |
|
|
122
|
+
|
|
123
|
+
- **One seat per connected assistant:** the service gives each connection its own seat and keeps it across that
|
|
124
|
+
connection's reconnects. The seat must be one of the rig's nodes; a node created without a launch is enough. The caller
|
|
125
|
+
is exactly that seat.
|
|
126
|
+
- **What it reaches:**
|
|
127
|
+
- It hands work to its rigs' other seats, never to a person or another host's seat.
|
|
128
|
+
- It reads the items it sent and the items addressed to it from those seats, never the team's internal items.
|
|
129
|
+
- With `queue`/`claim` and `queue`/`update`, it claims and closes only items addressed to its own seat that it can read,
|
|
130
|
+
and waits (blocked) only on an item it names and can read. Its answers hide what reading the item hides.
|
|
131
|
+
- **Two assistants together:** a grant with `team`/`list` sees its rigs' seats with `rig_team`, and may address and hear from
|
|
132
|
+
another connected assistant's seat. A grant without it never reaches a seat in the service's caller form
|
|
133
|
+
(`cus-<id>-<connection>@<rig>`), so an existing connection keeps the reach it had.
|
|
134
|
+
- **Messages are items:** a message is an item the receiver reads and closes, and a reply is an item back to its sender.
|
|
135
|
+
- **What the sender can tell, from the item it reads:**
|
|
136
|
+
- **Queued:** the item exists and is `pending` with no claim.
|
|
137
|
+
- **Picked up:** the receiver's claim (`in-progress`).
|
|
138
|
+
- **Answered:** closed `done`, with the answer in `resolution`.
|
|
139
|
+
- Reading or listing an item records nothing, and nothing wakes an assistant, so an item stays queued until its receiver
|
|
140
|
+
claims it.
|
|
141
|
+
|
|
110
142
|
## Limits today
|
|
111
143
|
|
|
112
144
|
- **Webhook triggers only:** OpenRig rings a webhook. Email and other triggers aren't supported yet. A member without a trigger
|
|
@@ -110,6 +110,17 @@ limitation: use the live spec-library commands to determine where a spec is
|
|
|
110
110
|
served from, and do not infer convergence merely because the canonical
|
|
111
111
|
directory exists.
|
|
112
112
|
|
|
113
|
+
The spec library scans the built-in specs, `$OPENRIG_HOME/specs` and, when
|
|
114
|
+
present, that legacy library. At any depth below them it skips directories
|
|
115
|
+
named `.git`, `.worktrees`, `node_modules`, `dist`, `build`, `.turbo` and
|
|
116
|
+
`.next`, which usually hold build output or dependencies (`SKIP_DIRS` in
|
|
117
|
+
`packages/daemon/src/domain/spec-library-service.ts`). A spec inside one of
|
|
118
|
+
them, such as `specs/build/rig.yaml`, isn't listed, and nothing reports that it
|
|
119
|
+
was skipped. To list it, rename its directory and run `rig specs sync`.
|
|
120
|
+
`rig specs add <directory>` copies a directory under its own name, so adding a
|
|
121
|
+
directory named `build` doesn't help. `rig up <path-to-rig.yaml>` still launches
|
|
122
|
+
a spec by its path, without the library.
|
|
123
|
+
|
|
113
124
|
Config updates publish a complete replacement file atomically where directory
|
|
114
125
|
permissions and the filesystem allow it. On POSIX systems, replacement preserves
|
|
115
126
|
the existing owner, group, and read/write/execute permission bits. If creating or
|
|
@@ -107,6 +107,28 @@ rig queue create --destination <entityId>@external --human-intent update \
|
|
|
107
107
|
- **`posted` means the connector posted it, not that they read it.** Don't say they saw it.
|
|
108
108
|
- **If delivery fails or is indeterminate,** inspect that task before anything else. Never resend blindly.
|
|
109
109
|
|
|
110
|
+
## If the timer cannot reach its recipient
|
|
111
|
+
|
|
112
|
+
A `periodic-reminder` occurrence that definitely fails before input remains owed. The watchdog
|
|
113
|
+
retries through its existing loop, using `queue.wake_retry_interval_seconds` and
|
|
114
|
+
`queue.wake_retry_cap` (by default, three retries five minutes apart). A failed attempt does not
|
|
115
|
+
advance the reminder to its next regular cycle. A confirmed send advances the normal interval;
|
|
116
|
+
recovery does not replay every elapsed cycle.
|
|
117
|
+
|
|
118
|
+
`rig watchdog show <jobId> --json` includes the failed attempt, its retained outbox IDs, retry
|
|
119
|
+
time and next action. If input may have reached the recipient, that occurrence ends unconfirmed
|
|
120
|
+
and is not automatically sent again. Inspect the recipient and exact outbox record before any
|
|
121
|
+
manual replay. A recurring reminder keeps its next normal cycle under a new occurrence identity. A confirmed receipt survives a daemon restart, so
|
|
122
|
+
finishing its accounting does not type the same occurrence twice.
|
|
123
|
+
|
|
124
|
+
Exhausted retries end only the failed occurrence, with its cause and next action; a recurring
|
|
125
|
+
reminder keeps its next normal cycle. A permanent transport failure leaves a terminal job:
|
|
126
|
+
correct the destination and register a replacement reminder. A one-shot park timer records its
|
|
127
|
+
failed or unconfirmed wake on the parked row before it ends. A retryable failure is recorded
|
|
128
|
+
there while the timer stays armed. Deliberately held
|
|
129
|
+
input keeps its existing retained-message custody. Condition watches and parked-owner policy
|
|
130
|
+
behavior are unchanged. This does not replay failed occurrences recorded by older versions.
|
|
131
|
+
|
|
110
132
|
## "What are you watching for me?"
|
|
111
133
|
|
|
112
134
|
List **every active state**, not just set-aside ones. A watch being checked can be in progress, and a new one can be
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Pi tool-selection recovery
|
|
2
|
+
|
|
3
|
+
Use this when a live Pi conversation has fewer active tools than its operator
|
|
4
|
+
currently intends. This does not establish why the selection changed or that
|
|
5
|
+
stock Pi/OpenRig lost tools. The motivating report used a customized Pi 1.4.0
|
|
6
|
+
deployment; it is not a stock cross-platform reproduction.
|
|
7
|
+
|
|
8
|
+
## Diagnose before changing the selection
|
|
9
|
+
|
|
10
|
+
Confirm the exact seat, occupant and conversation, then use an idle boundary.
|
|
11
|
+
Preserve pending work and reconcile unknown writes before any replacement.
|
|
12
|
+
Keep four things separate:
|
|
13
|
+
|
|
14
|
+
- **Configured:** the effective merged `defaultTools` setting. Do not infer it
|
|
15
|
+
from one settings file; retain any unresolved patterns or modifiers as such.
|
|
16
|
+
- **Currently intended:** the tools the operator wants enabled now, including
|
|
17
|
+
deliberate exclusions. Configuration alone does not establish that intention.
|
|
18
|
+
- **Registered:** names the current Pi runtime knows about.
|
|
19
|
+
- **Active:** names returned by `getActiveTools`, which can differ from both.
|
|
20
|
+
|
|
21
|
+
A live RPC connection does not prove the tools are usable. Record observation
|
|
22
|
+
time and conversation binding; an unavailable query stays unknown. Reloading
|
|
23
|
+
unchanged settings can retain session-disabled tools by design, so a reload
|
|
24
|
+
that restores nothing is not itself evidence of accidental loss.
|
|
25
|
+
|
|
26
|
+
## Choose the interface the seat actually has
|
|
27
|
+
|
|
28
|
+
Pi 1.4.0 includes an opt-in selector at
|
|
29
|
+
`packages/coding-agent/examples/extensions/tools.ts` in the Pi repository. Its
|
|
30
|
+
`/tools` command remembers selection per branch and needs Pi's own TUI. Use it
|
|
31
|
+
where that extension and native TUI are available. **Do not send `/tools` to an
|
|
32
|
+
agent OpenRig drives over RPC**: that interface cannot operate the selector.
|
|
33
|
+
|
|
34
|
+
For RPC seats, an optional [community-maintained helper][helper] provides
|
|
35
|
+
read-only status and an explicit command that adds only named intended tools.
|
|
36
|
+
It is maintained outside OpenRig, is not bundled, and this link is not a support
|
|
37
|
+
claim. Loading it also registers the agent-callable `openrig_runtime_status` and
|
|
38
|
+
`openrig_slots` tools; the latter reads a snapshot of the bound rig's agents and
|
|
39
|
+
active queue items. It can add a prompt section when a guidance file is set.
|
|
40
|
+
Review its [shared implementation][runtime] and
|
|
41
|
+
[setup/capability limits][setup] before opting in through Pi's per-seat extension
|
|
42
|
+
configuration. Keep the two helper files together; do not install the separate
|
|
43
|
+
RepoStew application just to use the neutral bridge. Verify what the target
|
|
44
|
+
session actually loaded after the supported activation path.
|
|
45
|
+
|
|
46
|
+
With that helper already loaded, these are **Pi extension commands**, not new
|
|
47
|
+
`rig` commands:
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
/openrig-status
|
|
51
|
+
/openrig-restore-tools read
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
For an agent OpenRig drives over RPC, send each extension command with
|
|
55
|
+
`rig send <agent> --raw "<command>"` so it arrives without a messaging envelope;
|
|
56
|
+
the usual interactive-prompt guard still applies.
|
|
57
|
+
|
|
58
|
+
The second command means that `read` is intended now. It does not restore every
|
|
59
|
+
configured default. If `bash` was deliberately disabled, leave it disabled
|
|
60
|
+
unless the operator explicitly intends to add it too. With no names, this helper
|
|
61
|
+
refuses to change the selection.
|
|
62
|
+
|
|
63
|
+
## Verify the recovery
|
|
64
|
+
|
|
65
|
+
1. Establish the explicit current intended names. Reject unregistered or hidden
|
|
66
|
+
requested tools before changing anything; do not infer replacement names.
|
|
67
|
+
2. Preserve current active extras: `setActiveTools` **replaces** the selection,
|
|
68
|
+
so pass the union of current active names and only the requested names. It can
|
|
69
|
+
ignore names it cannot activate; sending the command is not proof of recovery.
|
|
70
|
+
3. Read `getActiveTools` back. Retain a before/after receipt with the intended
|
|
71
|
+
names and any missing names, then make a harmless actual call to a recovered
|
|
72
|
+
tool within the existing task authority. Listed-active is not proof of usable
|
|
73
|
+
permissions or working execution.
|
|
74
|
+
|
|
75
|
+
This changes tool selection, not permission policy, task authority or conversation
|
|
76
|
+
identity. It does not automatically persist a new branch selection; verify again
|
|
77
|
+
after branch navigation or reload. If the runtime cannot support or verify this
|
|
78
|
+
in place, report that capability gap and follow its supported replacement path
|
|
79
|
+
with retained work. Do not manufacture a fresh conversation or claim that another
|
|
80
|
+
harness has Pi's capabilities.
|
|
81
|
+
|
|
82
|
+
[helper]: https://github.com/dajiaohuang/repostew/blob/adf9f36c23e27cf40cf8dd2dae887972a0dc776b/skill/integrations/pi-openrig.js
|
|
83
|
+
[runtime]: https://github.com/dajiaohuang/repostew/blob/adf9f36c23e27cf40cf8dd2dae887972a0dc776b/skill/integrations/pi-runtime.js
|
|
84
|
+
[setup]: https://github.com/dajiaohuang/repostew/blob/adf9f36c23e27cf40cf8dd2dae887972a0dc776b/skill/references/harnesses/pi.md
|
|
@@ -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.9`. 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.
|
|
@@ -90,7 +90,8 @@ Use `codex` or `both` in place of `claude` to match the coding agents you use. A
|
|
|
90
90
|
- it adds an OpenRig block to `~/.tmux.conf` (mouse support and longer scrollback).
|
|
91
91
|
|
|
92
92
|
It doesn't start anything. It ends with a summary of what's done and what still needs you. A missing sign-in shows
|
|
93
|
-
there: run `claude auth login` or `codex login`, then carry on.
|
|
93
|
+
there: run `claude auth login` or `codex login`, then carry on. Setup also tries to record the selected providers
|
|
94
|
+
for a new kernel's first boot; its summary warns if it could not save the choice.
|
|
94
95
|
|
|
95
96
|
### 3. Start OpenRig
|
|
96
97
|
|
|
@@ -100,12 +101,16 @@ rig status
|
|
|
100
101
|
rig ps --nodes --rig kernel
|
|
101
102
|
```
|
|
102
103
|
|
|
103
|
-
|
|
104
|
+
On the kernel's first boot, the daemon uses the providers selected by `rig setup --providers` that are signed in.
|
|
105
|
+
If no provider choice was recorded, it considers every signed-in provider. An existing kernel keeps its seats;
|
|
106
|
+
changing the setup choice does not replace them. An `OPENRIG_PROVIDER_SELECTED` value in the daemon's environment
|
|
107
|
+
takes precedence over the saved choice.
|
|
104
108
|
|
|
105
109
|
**What starting OpenRig changes, for the coding agents you use** (paths are the usual defaults):
|
|
106
110
|
- **For Codex:** hooks and trust in `~/.codex/config.toml`, when OpenRig or a Codex agent starts.
|
|
107
111
|
- **For Claude Code:** workspace trust in `~/.claude.json`, and activity hooks in the project's
|
|
108
|
-
`.claude/settings.local.json`, plus a status line unless you already have your own.
|
|
112
|
+
`.claude/settings.local.json`, plus a status line unless you already have your own. `rig down` takes the hooks and
|
|
113
|
+
status line back out once no Claude seat uses that directory.
|
|
109
114
|
- **For both:** small discovery skills in `~/.claude/skills` and `~/.agents/skills`.
|
|
110
115
|
- **Kernel access:** by default the kernel gets broader permissions than a project team gets by default. On Codex
|
|
111
116
|
that's full access with no approval prompts. On Claude Code, its file tools, web fetches and operational commands,
|
|
@@ -91,10 +91,10 @@ my-rig.rigbundle.sha256 — "a1b2c3d4..." (64-char hex SHA-256)
|
|
|
91
91
|
The packer produces deterministic output:
|
|
92
92
|
- Files are sorted alphabetically
|
|
93
93
|
- A fixed mtime is used (`2026-01-01T00:00:00Z`)
|
|
94
|
-
- Portable mode
|
|
94
|
+
- Portable mode omits machine-specific owner metadata; file mode bits can be retained
|
|
95
95
|
- Maximum gzip compression (level 9)
|
|
96
96
|
|
|
97
|
-
Identical staged bytes (including manifest timestamps and provenance) produce the same archive hash. Use the package digest to compare packaged file content independently of manifest metadata.
|
|
97
|
+
Identical staged bytes and file modes (including identical manifest timestamps and provenance) produce the same archive hash. A mode change can change the archive hash even when the file contents are unchanged. Use the package digest to compare packaged file content independently of manifest metadata and file modes.
|
|
98
98
|
|
|
99
99
|
---
|
|
100
100
|
|