@openrig/cli 0.7.22 → 0.7.23
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 +7 -7
- package/daemon/assets/onboarding/01-world-and-purpose.md +2 -1
- package/daemon/assets/onboarding/02-self-and-competent-action.md +6 -0
- package/daemon/assets/plugins/openrig/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/.cursor-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.claude-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/.codex-plugin/plugin.json +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +13 -0
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/precompact-hook.mjs +4 -0
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +31 -5
- package/daemon/assets/plugins/openrig-core/skills/messaging-the-human/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/assets/skills/rigs/SKILL.md +14 -5
- 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 +15 -6
- package/daemon/context-packs/reference/acp-agents.md +2 -1
- package/daemon/context-packs/reference/getting-started.md +119 -12
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +193 -3
- package/daemon/context-packs/reference/tmux-servers.md +27 -2
- package/daemon/context-packs/reference/whats-new.md +92 -12
- 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/claude-compaction-restore/scripts/precompact-hook.mjs +4 -0
- package/daemon/context-packs/skills/claude-compaction-restore/scripts/restore-from-jsonl.mjs +31 -5
- 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/SKILL.md +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +3 -3
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/working-with-an-openrig-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/backlog-capture/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/context-builder/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/exec-summary/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/office-hours/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/development-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/orchestration-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/oversight-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pods/review-team/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/agent-browser/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/context-engineering/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/dogfood/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/frontend-design/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/scripts/trace-to-root.py +32 -6
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/software-for-agents/manifest.yaml +1 -1
- package/daemon/context-packs/world-example/manifest.yaml +1 -1
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts +14 -1
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +86 -17
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +8 -4
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/community-harness-runtime-adapter.js +19 -4
- package/daemon/dist/adapters/community-harness-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/seat-slice.d.ts +19 -0
- package/daemon/dist/adapters/seat-slice.d.ts.map +1 -0
- package/daemon/dist/adapters/seat-slice.js +29 -0
- package/daemon/dist/adapters/seat-slice.js.map +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts +1 -0
- package/daemon/dist/adapters/shell-quote.d.ts.map +1 -1
- package/daemon/dist/adapters/shell-quote.js +6 -0
- package/daemon/dist/adapters/shell-quote.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +32 -8
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +253 -59
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/daemon-shutdown.d.ts +5 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -1
- package/daemon/dist/daemon-shutdown.js +10 -2
- package/daemon/dist/daemon-shutdown.js.map +1 -1
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +24 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrate.d.ts +15 -1
- package/daemon/dist/db/migrate.d.ts.map +1 -1
- package/daemon/dist/db/migrate.js +41 -6
- package/daemon/dist/db/migrate.js.map +1 -1
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts +10 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.d.ts.map +1 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js +20 -0
- package/daemon/dist/db/migrations/179_remote_control_observations.js.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts +5 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.d.ts.map +1 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js +7 -0
- package/daemon/dist/db/migrations/180_session_stop_attempt.js.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts +8 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.d.ts.map +1 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js +26 -0
- package/daemon/dist/db/migrations/181_node_keep_alive.js.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts +7 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.d.ts.map +1 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js +11 -0
- package/daemon/dist/db/migrations/182_queue_items_blocked_on_index.js.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts +8 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.d.ts.map +1 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js +13 -0
- package/daemon/dist/db/migrations/183_queue_items_scan_indexes.js.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts +11 -0
- package/daemon/dist/db/migrations/184_network_requests.d.ts.map +1 -0
- package/daemon/dist/db/migrations/184_network_requests.js +32 -0
- package/daemon/dist/db/migrations/184_network_requests.js.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts +9 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.d.ts.map +1 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js +19 -0
- package/daemon/dist/db/migrations/185_seat_cold_starts.js.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts +3 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js +5 -0
- package/daemon/dist/db/migrations/186_queue_relayed_answers.js.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts +5 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.d.ts.map +1 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js +7 -0
- package/daemon/dist/db/migrations/189_rig_seat_slice.js.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts +3 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.d.ts.map +1 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js +20 -0
- package/daemon/dist/db/migrations/190_queue_transfer_staging.js.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts +3 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.d.ts.map +1 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js +27 -0
- package/daemon/dist/db/migrations/191_network_binding_providers.js.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts +4 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.d.ts.map +1 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.js +6 -0
- package/daemon/dist/db/migrations/194_workflow_run_title.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-activity-store.d.ts +17 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +101 -45
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/agent-manifest.d.ts.map +1 -1
- package/daemon/dist/domain/agent-manifest.js +6 -0
- package/daemon/dist/domain/agent-manifest.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +30 -2
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +53 -12
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +12 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +130 -2
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.d.ts.map +1 -1
- package/daemon/dist/domain/continuity-policy-materializer.js +11 -3
- package/daemon/dist/domain/continuity-policy-materializer.js.map +1 -1
- package/daemon/dist/domain/core-app-job.d.ts +4 -4
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -1
- package/daemon/dist/domain/core-app-job.js +4 -59
- package/daemon/dist/domain/core-app-job.js.map +1 -1
- package/daemon/dist/domain/current-work.d.ts +12 -0
- package/daemon/dist/domain/current-work.d.ts.map +1 -1
- package/daemon/dist/domain/current-work.js +4 -0
- package/daemon/dist/domain/current-work.js.map +1 -1
- package/daemon/dist/domain/escalation-owner.d.ts +3 -0
- package/daemon/dist/domain/escalation-owner.d.ts.map +1 -1
- package/daemon/dist/domain/escalation-owner.js +9 -3
- package/daemon/dist/domain/escalation-owner.js.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.d.ts +3 -0
- package/daemon/dist/domain/execution-candidate-reader.d.ts.map +1 -1
- package/daemon/dist/domain/execution-candidate-reader.js +8 -2
- package/daemon/dist/domain/execution-candidate-reader.js.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.d.ts +2 -0
- package/daemon/dist/domain/existing-rig-restore.d.ts.map +1 -1
- package/daemon/dist/domain/existing-rig-restore.js +11 -1
- package/daemon/dist/domain/existing-rig-restore.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/inbound.js +49 -8
- package/daemon/dist/domain/gateway/slack/inbound.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +1 -4
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +17 -5
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts +7 -1
- package/daemon/dist/domain/gateway/slack/queue-access.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/queue-access.js +1 -0
- package/daemon/dist/domain/gateway/slack/queue-access.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +15 -2
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +0 -17
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +10 -40
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.d.ts +5 -2
- package/daemon/dist/domain/harness-not-started-notice.d.ts.map +1 -1
- package/daemon/dist/domain/harness-not-started-notice.js +46 -15
- package/daemon/dist/domain/harness-not-started-notice.js.map +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts +1 -1
- package/daemon/dist/domain/hosts/read-through.d.ts.map +1 -1
- package/daemon/dist/domain/hosts/read-through.js +3 -2
- package/daemon/dist/domain/hosts/read-through.js.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.d.ts +3 -3
- package/daemon/dist/domain/hot-potato-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/hot-potato-enforcer.js +2 -2
- package/daemon/dist/domain/hot-potato-enforcer.js.map +1 -1
- package/daemon/dist/domain/human-questions.d.ts +1 -1
- package/daemon/dist/domain/human-questions.d.ts.map +1 -1
- package/daemon/dist/domain/human-questions.js +2 -0
- package/daemon/dist/domain/human-questions.js.map +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js +1 -1
- package/daemon/dist/domain/input-read-diagnostic.js.map +1 -1
- package/daemon/dist/domain/keep-alive-supervisor.d.ts +178 -0
- package/daemon/dist/domain/keep-alive-supervisor.d.ts.map +1 -0
- package/daemon/dist/domain/keep-alive-supervisor.js +523 -0
- package/daemon/dist/domain/keep-alive-supervisor.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts +6 -0
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js +38 -9
- package/daemon/dist/domain/mission-control/mission-control-fleet-cli-capability.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js +29 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/mutation-trace.d.ts +28 -0
- package/daemon/dist/domain/mutation-trace.d.ts.map +1 -0
- package/daemon/dist/domain/mutation-trace.js +38 -0
- package/daemon/dist/domain/mutation-trace.js.map +1 -0
- package/daemon/dist/domain/native-resume-probe.d.ts +13 -3
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +54 -17
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/network/hub-client.d.ts +30 -1
- package/daemon/dist/domain/network/hub-client.d.ts.map +1 -1
- package/daemon/dist/domain/network/hub-client.js +62 -9
- package/daemon/dist/domain/network/hub-client.js.map +1 -1
- package/daemon/dist/domain/network/network-bindings.d.ts +52 -2
- package/daemon/dist/domain/network/network-bindings.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-bindings.js +217 -23
- package/daemon/dist/domain/network/network-bindings.js.map +1 -1
- package/daemon/dist/domain/network/network-connector.d.ts +9 -1
- package/daemon/dist/domain/network/network-connector.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-connector.js +95 -7
- package/daemon/dist/domain/network/network-connector.js.map +1 -1
- package/daemon/dist/domain/network/network-installations.d.ts.map +1 -1
- package/daemon/dist/domain/network/network-installations.js +22 -7
- package/daemon/dist/domain/network/network-installations.js.map +1 -1
- package/daemon/dist/domain/network/network-provider-removal.d.ts +9 -0
- package/daemon/dist/domain/network/network-provider-removal.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-provider-removal.js +75 -0
- package/daemon/dist/domain/network/network-provider-removal.js.map +1 -0
- package/daemon/dist/domain/network/network-requests.d.ts +59 -0
- package/daemon/dist/domain/network/network-requests.d.ts.map +1 -0
- package/daemon/dist/domain/network/network-requests.js +476 -0
- package/daemon/dist/domain/network/network-requests.js.map +1 -0
- package/daemon/dist/domain/node-inventory.d.ts +26 -0
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +87 -7
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts +1 -1
- package/daemon/dist/domain/occupant-invalidator.d.ts.map +1 -1
- package/daemon/dist/domain/occupant-invalidator.js +1 -1
- package/daemon/dist/domain/occupant-invalidator.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +11 -0
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +20 -0
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts +6 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +14 -4
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.d.ts +13 -0
- package/daemon/dist/domain/policies/seat-pool.d.ts.map +1 -1
- package/daemon/dist/domain/policies/seat-pool.js +18 -3
- package/daemon/dist/domain/policies/seat-pool.js.map +1 -1
- package/daemon/dist/domain/profile-resolver.d.ts +7 -1
- package/daemon/dist/domain/profile-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/profile-resolver.js +7 -0
- package/daemon/dist/domain/profile-resolver.js.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/progress/progress-indexer.js +11 -0
- package/daemon/dist/domain/progress/progress-indexer.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +4 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +3 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -1
- package/daemon/dist/domain/proof/judgments.js +13 -3
- package/daemon/dist/domain/proof/judgments.js.map +1 -1
- package/daemon/dist/domain/proof/source-watch.js +4 -4
- package/daemon/dist/domain/proof/source-watch.js.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.d.ts +6 -0
- package/daemon/dist/domain/provider/claude-interruption.d.ts.map +1 -1
- package/daemon/dist/domain/provider/claude-interruption.js +18 -0
- package/daemon/dist/domain/provider/claude-interruption.js.map +1 -1
- package/daemon/dist/domain/ps-projection.d.ts +8 -1
- package/daemon/dist/domain/ps-projection.d.ts.map +1 -1
- package/daemon/dist/domain/ps-projection.js +11 -3
- package/daemon/dist/domain/ps-projection.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts +3 -0
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +2 -2
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-owner.d.ts +5 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -1
- package/daemon/dist/domain/queue-owner.js +16 -8
- package/daemon/dist/domain/queue-owner.js.map +1 -1
- package/daemon/dist/domain/queue-recorded-graph.d.ts +32 -0
- package/daemon/dist/domain/queue-recorded-graph.d.ts.map +1 -0
- package/daemon/dist/domain/queue-recorded-graph.js +84 -0
- package/daemon/dist/domain/queue-recorded-graph.js.map +1 -0
- package/daemon/dist/domain/queue-repository.d.ts +74 -4
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +398 -25
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-retention.d.ts +1 -1
- package/daemon/dist/domain/queue-retention.d.ts.map +1 -1
- package/daemon/dist/domain/queue-retention.js +4 -0
- package/daemon/dist/domain/queue-retention.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +43 -9
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-transfer-export.d.ts +75 -0
- package/daemon/dist/domain/queue-transfer-export.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-export.js +156 -0
- package/daemon/dist/domain/queue-transfer-export.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts +15 -0
- package/daemon/dist/domain/queue-transfer-format.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-format.js +32 -0
- package/daemon/dist/domain/queue-transfer-format.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts +40 -0
- package/daemon/dist/domain/queue-transfer-parse.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-parse.js +131 -0
- package/daemon/dist/domain/queue-transfer-parse.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts +22 -0
- package/daemon/dist/domain/queue-transfer-review.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-review.js +81 -0
- package/daemon/dist/domain/queue-transfer-review.js.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts +79 -0
- package/daemon/dist/domain/queue-transfer-staging.d.ts.map +1 -0
- package/daemon/dist/domain/queue-transfer-staging.js +67 -0
- package/daemon/dist/domain/queue-transfer-staging.js.map +1 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts +4 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +161 -20
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +27 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +184 -16
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/refusal-trace.d.ts +15 -0
- package/daemon/dist/domain/refusal-trace.d.ts.map +1 -0
- package/daemon/dist/domain/refusal-trace.js +23 -0
- package/daemon/dist/domain/refusal-trace.js.map +1 -0
- package/daemon/dist/domain/relayed-answers.d.ts +80 -0
- package/daemon/dist/domain/relayed-answers.d.ts.map +1 -0
- package/daemon/dist/domain/relayed-answers.js +8 -0
- package/daemon/dist/domain/relayed-answers.js.map +1 -0
- package/daemon/dist/domain/remote-control-observations.d.ts +50 -0
- package/daemon/dist/domain/remote-control-observations.d.ts.map +1 -0
- package/daemon/dist/domain/remote-control-observations.js +72 -0
- package/daemon/dist/domain/remote-control-observations.js.map +1 -0
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +8 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +67 -6
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +345 -51
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/rig-lifecycle-service.js +4 -1
- package/daemon/dist/domain/rig-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts +21 -3
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +67 -2
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +22 -7
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +108 -24
- 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 +12 -0
- package/daemon/dist/domain/rigspec-codec.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.d.ts +14 -0
- package/daemon/dist/domain/rigspec-exporter.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +56 -14
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +32 -3
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +121 -23
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rigspec-schema.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-schema.js +30 -4
- package/daemon/dist/domain/rigspec-schema.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +1 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +5 -4
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/seat-activity-service.d.ts +4 -0
- package/daemon/dist/domain/seat-activity-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-activity-service.js +24 -5
- package/daemon/dist/domain/seat-activity-service.js.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.d.ts +7 -0
- package/daemon/dist/domain/seat-attention-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-attention-reconciler.js +149 -65
- package/daemon/dist/domain/seat-attention-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-cold-start.d.ts +150 -0
- package/daemon/dist/domain/seat-cold-start.d.ts.map +1 -0
- package/daemon/dist/domain/seat-cold-start.js +371 -0
- package/daemon/dist/domain/seat-cold-start.js.map +1 -0
- package/daemon/dist/domain/seat-delivery-guard.d.ts +11 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +34 -6
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +13 -0
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +63 -23
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-identity-store.d.ts +5 -3
- package/daemon/dist/domain/seat-identity-store.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-store.js +7 -3
- package/daemon/dist/domain/seat-identity-store.js.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.d.ts +2 -0
- package/daemon/dist/domain/seat-launch-environment.d.ts.map +1 -1
- package/daemon/dist/domain/seat-launch-environment.js +9 -1
- package/daemon/dist/domain/seat-launch-environment.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +17 -0
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +176 -22
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-pool-executor.d.ts +116 -0
- package/daemon/dist/domain/seat-pool-executor.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-executor.js +565 -0
- package/daemon/dist/domain/seat-pool-executor.js.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts +93 -0
- package/daemon/dist/domain/seat-pool-registration.d.ts.map +1 -0
- package/daemon/dist/domain/seat-pool-registration.js +149 -0
- package/daemon/dist/domain/seat-pool-registration.js.map +1 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts +42 -0
- package/daemon/dist/domain/seat-pool-slots.d.ts.map +1 -1
- package/daemon/dist/domain/seat-pool-slots.js +51 -0
- package/daemon/dist/domain/seat-pool-slots.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts +15 -0
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +54 -2
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.d.ts +8 -0
- package/daemon/dist/domain/seat-runtime-home-record.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js +1 -1
- package/daemon/dist/domain/seat-runtime-home-record.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +22 -3
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +38 -6
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +18 -2
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +65 -38
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +55 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +259 -50
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +75 -23
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts +6 -0
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +11 -0
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.d.ts +2 -0
- package/daemon/dist/domain/startup-submission-evidence.d.ts.map +1 -1
- package/daemon/dist/domain/startup-submission-evidence.js +31 -3
- package/daemon/dist/domain/startup-submission-evidence.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +2 -0
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/scope-task-terminal-view.d.ts +2 -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 +80 -38
- package/daemon/dist/domain/terminal/scope-task-terminal-view.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 -0
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +30 -26
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.d.ts +22 -0
- package/daemon/dist/domain/terminal/tile-attach.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/tile-attach.js +71 -0
- package/daemon/dist/domain/terminal/tile-attach.js.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.d.ts +2 -0
- package/daemon/dist/domain/terminal/view-composer.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/view-composer.js +4 -2
- package/daemon/dist/domain/terminal/view-composer.js.map +1 -1
- package/daemon/dist/domain/topology-trace.d.ts +40 -0
- package/daemon/dist/domain/topology-trace.d.ts.map +1 -0
- package/daemon/dist/domain/topology-trace.js +106 -0
- package/daemon/dist/domain/topology-trace.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +12 -1
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +104 -8
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js +3 -2
- 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 +2 -0
- 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 +13 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +5 -3
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +6 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +8 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +6 -2
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +11 -2
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.d.ts +3 -1
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +58 -10
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-run-title.d.ts +4 -0
- package/daemon/dist/domain/workflow-run-title.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-run-title.js +5 -0
- package/daemon/dist/domain/workflow-run-title.js.map +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts +1 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +3 -1
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.d.ts +2 -2
- package/daemon/dist/domain/workflow-spec-cache.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-spec-cache.js +20 -1
- package/daemon/dist/domain/workflow-spec-cache.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +15 -0
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js +4 -0
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/domain/workspace/project-read.d.ts +10 -0
- package/daemon/dist/domain/workspace/project-read.d.ts.map +1 -1
- package/daemon/dist/domain/workspace/project-read.js +34 -2
- package/daemon/dist/domain/workspace/project-read.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +7 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/queue-transfer-export-surface.d.ts +33 -0
- package/daemon/dist/queue-transfer-export-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-export-surface.js +13 -0
- package/daemon/dist/queue-transfer-export-surface.js.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts +86 -0
- package/daemon/dist/queue-transfer-staging-surface.d.ts.map +1 -0
- package/daemon/dist/queue-transfer-staging-surface.js +91 -0
- package/daemon/dist/queue-transfer-staging-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +46 -0
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/compaction.d.ts.map +1 -1
- package/daemon/dist/routes/compaction.js +7 -2
- package/daemon/dist/routes/compaction.js.map +1 -1
- package/daemon/dist/routes/context-packs.d.ts.map +1 -1
- package/daemon/dist/routes/context-packs.js +23 -1
- package/daemon/dist/routes/context-packs.js.map +1 -1
- package/daemon/dist/routes/events.js +7 -4
- package/daemon/dist/routes/events.js.map +1 -1
- package/daemon/dist/routes/network.d.ts +2 -0
- package/daemon/dist/routes/network.d.ts.map +1 -1
- package/daemon/dist/routes/network.js +62 -1
- package/daemon/dist/routes/network.js.map +1 -1
- package/daemon/dist/routes/ps.js +12 -1
- package/daemon/dist/routes/ps.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +155 -52
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +6 -3
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/rigs.js +2 -0
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +12 -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 +14 -0
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +16 -7
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts.map +1 -1
- package/daemon/dist/routes/startup.js +49 -4
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal-ws.js +28 -2
- package/daemon/dist/routes/terminal-ws.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +3 -2
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transport.d.ts.map +1 -1
- package/daemon/dist/routes/transport.js +14 -2
- package/daemon/dist/routes/transport.js.map +1 -1
- package/daemon/dist/routes/up.js +2 -0
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +9 -3
- package/daemon/dist/routes/workflow.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 +8 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts +3 -0
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +133 -7
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts +10 -0
- package/daemon/dist/terminal/TerminalSessionBroker.d.ts.map +1 -1
- package/daemon/dist/terminal/TerminalSessionBroker.js +63 -4
- package/daemon/dist/terminal/TerminalSessionBroker.js.map +1 -1
- package/daemon/dist/topology-trace-surface.d.ts +2 -0
- package/daemon/dist/topology-trace-surface.d.ts.map +1 -0
- package/daemon/dist/topology-trace-surface.js +2 -0
- package/daemon/dist/topology-trace-surface.js.map +1 -0
- package/daemon/docs/reference/acp-agents.md +2 -1
- package/daemon/docs/reference/agent-spec.md +3 -1
- package/daemon/docs/reference/agent-startup-guide.md +3 -1
- package/daemon/docs/reference/agent-state-taxonomy.md +35 -1
- package/daemon/docs/reference/checked-seat-stop.md +11 -1
- package/daemon/docs/reference/claude-status-line.md +7 -0
- package/daemon/docs/reference/daemon-http-clients.md +120 -18
- package/daemon/docs/reference/gateway-participants.md +6 -0
- package/daemon/docs/reference/getting-started.md +119 -12
- package/daemon/docs/reference/hosted-members.md +114 -0
- package/daemon/docs/reference/inventory-request-diagnostics.md +22 -0
- package/daemon/docs/reference/network-connector.md +112 -4
- package/daemon/docs/reference/project-workspace.md +11 -2
- package/daemon/docs/reference/queue-erasure.md +1 -1
- package/daemon/docs/reference/queue-transfer-export.md +38 -0
- package/daemon/docs/reference/queue-transfer-staging.md +39 -0
- package/daemon/docs/reference/quickstart.md +4 -4
- package/daemon/docs/reference/refocus-channel.md +5 -2
- package/daemon/docs/reference/rig-spec.md +193 -3
- package/daemon/docs/reference/rosters.md +18 -3
- package/daemon/docs/reference/sdlc-conventions.md +1 -1
- package/daemon/docs/reference/seat-delivery.md +21 -4
- package/daemon/docs/reference/seat-pools.md +116 -0
- package/daemon/docs/reference/terminal-sessions.md +57 -11
- package/daemon/docs/reference/tmux-servers.md +27 -2
- package/daemon/docs/reference/whats-new.md +92 -12
- package/daemon/specs/agents/shared/skills/core/messaging-the-human/SKILL.md +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +2 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/commands/broadcast.d.ts.map +1 -1
- package/dist/commands/broadcast.js +87 -8
- package/dist/commands/broadcast.js.map +1 -1
- package/dist/commands/chatroom.d.ts +3 -0
- package/dist/commands/chatroom.d.ts.map +1 -1
- package/dist/commands/chatroom.js +7 -1
- package/dist/commands/chatroom.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +2 -1
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +18 -15
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +22 -13
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/export.d.ts.map +1 -1
- package/dist/commands/export.js +5 -1
- package/dist/commands/export.js.map +1 -1
- package/dist/commands/gateway.d.ts +4 -0
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +37 -0
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/network.d.ts.map +1 -1
- package/dist/commands/network.js +54 -1
- package/dist/commands/network.js.map +1 -1
- package/dist/commands/parked.d.ts.map +1 -1
- package/dist/commands/parked.js +12 -6
- package/dist/commands/parked.js.map +1 -1
- package/dist/commands/provider.d.ts.map +1 -1
- package/dist/commands/provider.js +3 -2
- package/dist/commands/provider.js.map +1 -1
- package/dist/commands/ps.d.ts +12 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +43 -10
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue-export.d.ts +3 -0
- package/dist/commands/queue-export.d.ts.map +1 -0
- package/dist/commands/queue-export.js +67 -0
- package/dist/commands/queue-export.js.map +1 -0
- package/dist/commands/queue-import.d.ts +4 -0
- package/dist/commands/queue-import.d.ts.map +1 -0
- package/dist/commands/queue-import.js +47 -0
- package/dist/commands/queue-import.js.map +1 -0
- package/dist/commands/queue.d.ts +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +50 -1
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.js +1 -1
- package/dist/commands/roster.js.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +30 -18
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +20 -2
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +15 -3
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/start.d.ts +14 -0
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +54 -5
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +4 -0
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +2 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +14 -1
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts +3 -0
- package/dist/cross-host-executor.d.ts.map +1 -1
- package/dist/cross-host-executor.js +5 -0
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-auto-start.d.ts.map +1 -1
- package/dist/daemon-auto-start.js +1 -0
- package/dist/daemon-auto-start.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +6 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +90 -30
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +38 -3
- package/dist/daemon-start-lock.d.ts.map +1 -1
- package/dist/daemon-start-lock.js +201 -48
- package/dist/daemon-start-lock.js.map +1 -1
- package/dist/lib/scope/progress-edit.d.ts.map +1 -1
- package/dist/lib/scope/progress-edit.js +10 -0
- package/dist/lib/scope/progress-edit.js.map +1 -1
- package/dist/lib/topology-trace.d.ts +3 -34
- package/dist/lib/topology-trace.d.ts.map +1 -1
- package/dist/lib/topology-trace.js +3 -97
- package/dist/lib/topology-trace.js.map +1 -1
- package/dist/local-db.d.ts +2 -0
- package/dist/local-db.d.ts.map +1 -1
- package/dist/local-db.js +14 -11
- package/dist/local-db.js.map +1 -1
- package/dist/mcp-caller-resolver.d.ts +36 -0
- package/dist/mcp-caller-resolver.d.ts.map +1 -0
- package/dist/mcp-caller-resolver.js +82 -0
- package/dist/mcp-caller-resolver.js.map +1 -0
- package/dist/mcp-http.d.ts +43 -2
- package/dist/mcp-http.d.ts.map +1 -1
- package/dist/mcp-http.js +223 -46
- package/dist/mcp-http.js.map +1 -1
- package/dist/mcp-server.d.ts +23 -0
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +108 -39
- package/dist/mcp-server.js.map +1 -1
- package/dist/mcp-surface.d.ts +3 -2
- package/dist/mcp-surface.d.ts.map +1 -1
- package/dist/node-support.d.ts.map +1 -1
- package/dist/node-support.js +10 -0
- package/dist/node-support.js.map +1 -1
- package/dist/remote-host-ops.d.ts +3 -0
- package/dist/remote-host-ops.d.ts.map +1 -1
- package/dist/remote-host-ops.js +15 -1
- package/dist/remote-host-ops.js.map +1 -1
- package/package.json +3 -3
- package/scripts/check-abi.mjs +15 -0
- package/tui/dist/attention/attention-model.d.ts.map +1 -1
- package/tui/dist/attention/attention-model.js +8 -4
- package/tui/dist/attention/attention-model.js.map +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts +20 -0
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -1
- package/tui/dist/crash-cart/start-daemon.js +56 -0
- package/tui/dist/crash-cart/start-daemon.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +4 -2
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/main.js +24 -8
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/render.d.ts +2 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +41 -9
- package/tui/dist/render.js.map +1 -1
|
@@ -73,3 +73,25 @@ The new format contains no payloads, auth or raw identity headers, URL parameter
|
|
|
73
73
|
SQL text, bind values, native identifiers or raw exception messages. Legacy
|
|
74
74
|
slow-operation records keep their existing format: their `outcome: ok` indicates
|
|
75
75
|
completion of the observed operation and is not an HTTP-success assertion.
|
|
76
|
+
|
|
77
|
+
## Trace of state-changing requests (opt-in)
|
|
78
|
+
|
|
79
|
+
Start the daemon with `OPENRIG_MUTATION_TRACE=1` in its environment to record a line
|
|
80
|
+
for `POST`, `PUT`, `PATCH` and `DELETE` requests on its main port. The line is offered
|
|
81
|
+
once the request's handling has finished and its response is prepared: a request still
|
|
82
|
+
being handled has no line yet, and a daemon stopped before then writes none. The
|
|
83
|
+
variable is read once at startup; any other value, or none, leaves the trace off. There
|
|
84
|
+
is no `rig config` key for it. The optional guest activity port isn't traced.
|
|
85
|
+
|
|
86
|
+
Records use `schema: openrig.mutation-trace/v1` in the same `logs/slow-operations.jsonl`
|
|
87
|
+
under the OpenRig home. Each carries `at`, `method`, `path` (without the query string),
|
|
88
|
+
the response `status`, `sender` and the writer `coverage` counters described above.
|
|
89
|
+
Unlike the request-phase format, `sender` records a header value: the
|
|
90
|
+
`X-OpenRig-Session` the caller sent, or null.
|
|
91
|
+
|
|
92
|
+
`status` is the status the daemon prepared for the response, not proof the client
|
|
93
|
+
received it. A record is a request and that status, not a committed change, and
|
|
94
|
+
`sender` is what the request carried, not a verified identity. The trace uses the same writer and
|
|
95
|
+
limits as the diagnostics above: nothing is written on the request path, a record that
|
|
96
|
+
doesn't fit is dropped and counted while the request goes on, and a failure to record
|
|
97
|
+
never changes the response.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Network connector: a local seat as a hub participant
|
|
2
2
|
|
|
3
|
-
Source of truth: `packages/daemon/src/domain/network/` (`network-bindings.ts`, `network-connector.ts`, `hub-client.ts`),
|
|
3
|
+
Source of truth: `packages/daemon/src/domain/network/` (`network-bindings.ts`, `network-connector.ts`, `network-requests.ts`, `hub-client.ts`),
|
|
4
4
|
`packages/daemon/src/routes/network.ts`, `packages/cli/src/commands/network.ts`.
|
|
5
5
|
|
|
6
6
|
A hub is another OpenRig queue that its participants reach over MCP, such as a daemon served by `rig mcp serve --http`
|
|
@@ -21,8 +21,8 @@ rig network connect <seat> --as <name>
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
- `enroll` trades the code, with this daemon's host id, for an installation key. The key is stored like a participant's
|
|
24
|
-
token, under `<OpenRig home>/network-secrets/<installation>/key.json`, and is never returned or shown. A
|
|
25
|
-
|
|
24
|
+
token, under `<OpenRig home>/network-secrets/<installation>/key.json`, and is never returned or shown. A refused
|
|
25
|
+
code says why; get a new one from the account page. If the account doesn't answer,
|
|
26
26
|
whether it took the code is unknown: try again with the same code, and get a new one if that's refused.
|
|
27
27
|
- Enrolling trusts the site with where your connected seats' work goes: for each name, the account answers the front
|
|
28
28
|
and rig the binding reaches.
|
|
@@ -55,7 +55,8 @@ again with a new code from the account page:
|
|
|
55
55
|
rig network enroll <code> --site <site URL> --replace
|
|
56
56
|
```
|
|
57
57
|
|
|
58
|
-
Without `--replace`, a second enroll at the same site is refused and the code isn't spent
|
|
58
|
+
Without `--replace`, a second enroll at the same site is refused and the code isn't spent: the daemon is already
|
|
59
|
+
connected, so carry on with `rig network connect`. With it, the replace first
|
|
59
60
|
waits for any other change to this enrollment to finish, within the same 30 seconds; one that runs out of time while
|
|
60
61
|
waiting says so and doesn't send the code. The account makes a new installation, with a new key, for the new code. Here,
|
|
61
62
|
that key takes the old one's place and the bindings made through the old installation end, in one step:
|
|
@@ -129,6 +130,73 @@ rig queue update <local item> --state done --closure-reason no-follow-on --resol
|
|
|
129
130
|
- The derived id makes the queue item unique, not the work's outside effects. Anything your agent did outside OpenRig
|
|
130
131
|
before a crash is neither undone nor deduplicated.
|
|
131
132
|
|
|
133
|
+
## Send a request from a bound seat
|
|
134
|
+
|
|
135
|
+
A connected seat can also ask the hub's other participants for work, and read their answers here. The daemon reaches
|
|
136
|
+
the hub as the seat's participant, so the agent never holds the participant's token.
|
|
137
|
+
|
|
138
|
+
```bash
|
|
139
|
+
rig network peers <binding-or-seat> [--json]
|
|
140
|
+
rig network request <binding-or-seat> <peer> --id <request-id> --body-file <path> [--summary "<text>"] [--json]
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
`peers` lists the seats and members the hub lets the participant address, as the hub's `rig_team` answers for the
|
|
144
|
+
participant's rig. `request` sends one request to a peer, named as `peers` lists it:
|
|
145
|
+
|
|
146
|
+
- **`--id` is your own id for this request,** unique to it. It becomes the local item's id. To retry a request whose
|
|
147
|
+
outcome you don't know, send it again with the same id: the hub item is looked up by its id first, and created under
|
|
148
|
+
that id only if the hub answers that it has none. If the hub can't answer, the outcome stays unknown and a later try
|
|
149
|
+
asks again. The same id with a different request is refused
|
|
150
|
+
(`request_id_reused`), and so is an id that already names another local item.
|
|
151
|
+
- **The request is recorded here first,** as a local queue item from the seat to OpenRig, parked on the hub item
|
|
152
|
+
(`external:network-request/<hub item>`). It's addressed to OpenRig rather than the seat, so the seat owes nothing on it
|
|
153
|
+
and isn't reminded about it while it waits. Find it with `rig queue list --mine`.
|
|
154
|
+
- **Then it's created on the hub** under an id derived from the seat's node, the hub, the participant and your request
|
|
155
|
+
id, so one request is always one hub item. A create that goes again reads the request from the local item; the
|
|
156
|
+
connector keeps only a hash of it. So a request whose local item was erased, closed or canceled here isn't sent. The
|
|
157
|
+
local item and the binding are read right before each create, so a close, erasure or disconnect while the hub is
|
|
158
|
+
being reached still stops it.
|
|
159
|
+
- **The local item's text shows the hub URL with its query hidden,** as `rig network status` does, since a query string
|
|
160
|
+
can carry a credential.
|
|
161
|
+
- **What `request` returns:** the local item, the hub item and a state.
|
|
162
|
+
- `sent`: the hub confirmed the item.
|
|
163
|
+
- `unknown`: the create timed out or its answer was lost. The connector looks for the hub item by its id on its next
|
|
164
|
+
pass, and creates it there under the same id if it's missing.
|
|
165
|
+
- `refused`: the hub refused it with a reason, such as `destination_not_found`. The local item closes failed with the
|
|
166
|
+
hub's words, and `request` exits 1.
|
|
167
|
+
- **Two cases that read `unknown`, not `refused`:**
|
|
168
|
+
- A create the hub answers with `qitem_id_reuse`. Another create of the same request, such as a retry and a pass at
|
|
169
|
+
once, may have landed first and been moved on there, so the hub item is read back by its id. If it can't be read,
|
|
170
|
+
the outcome stays unknown.
|
|
171
|
+
- A retry of a request whose earlier create wasn't confirmed, when the hub refuses the binding's credential. The
|
|
172
|
+
earlier create may still be on the hub, so the local item stays open with a note saying so, for a new binding for
|
|
173
|
+
the same seat, hub and participant to read. A new request whose credential is refused is `refused`.
|
|
174
|
+
|
|
175
|
+
**Reading the answer:** on each pass, the connector reads every open request's hub item. A grant for sending only (team
|
|
176
|
+
list, queue create and show, without the queue's list) is enough: the connector takes inbound work only when the hub offers
|
|
177
|
+
the queue's list, and reads the answers either way. If the hub stops answering while requests are read, the pass reads
|
|
178
|
+
unavailable and backs off, and the requests stay open for the next one. When the hub item closes, the local item closes
|
|
179
|
+
the same way:
|
|
180
|
+
- done with the hub's resolution and its closure reason. A reason that needs a closure target here (`escalation`) reads
|
|
181
|
+
`no-follow-on`, with the hub's reason in the note;
|
|
182
|
+
- canceled or denied as itself;
|
|
183
|
+
- failed as failed.
|
|
184
|
+
|
|
185
|
+
A close with no resolution reads "Closed without a stated result." The close's note names who answered and the hub item:
|
|
186
|
+
"Answered by <peer> via network hub <hub URL> (hub item <id>)". Read it with:
|
|
187
|
+
|
|
188
|
+
```bash
|
|
189
|
+
rig queue show <request-id>
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
**A hub item handed on there** (handed off, or closed by a handoff-and-complete): it isn't an answer. The connector
|
|
193
|
+
follows the successor the hub names while the participant can read it.
|
|
194
|
+
One it can't read leaves the local item open, with a note saying the answer isn't visible here. That outcome is unknown,
|
|
195
|
+
never done.
|
|
196
|
+
|
|
197
|
+
**A revoked binding:** each open request sent through it gets a note that its answer can't be read here, and stays
|
|
198
|
+
open. A new binding for the same seat, hub and participant takes it over and keeps reading its hub item.
|
|
199
|
+
|
|
132
200
|
## Status
|
|
133
201
|
|
|
134
202
|
```bash
|
|
@@ -146,6 +214,11 @@ a replaced installation. `--json` adds the connector's view: each binding's next
|
|
|
146
214
|
- **The hub can't be reached, or a pass runs past its deadline:** the binding stays active, the error is recorded, and
|
|
147
215
|
retries back off, doubling to 5 minutes by default, or to the poll interval when that is longer, with up to 20%
|
|
148
216
|
jitter either way. A failure on this machine is recorded as local, not as the hub's.
|
|
217
|
+
- **A new connection is still being set up:** a network answers a new participant's first requests with 503
|
|
218
|
+
`grant_authority_unavailable` until it has set them up. On a binding that has never had contact, status reads "The
|
|
219
|
+
network is still finishing setup for this agent. Try again in a moment.", and for its first minute the connector asks
|
|
220
|
+
again every 5 seconds (or every poll interval, when that's shorter) instead of backing off. After that, the same
|
|
221
|
+
answer backs off as above. Once a binding has had contact, the answer reads as the hub's own error.
|
|
149
222
|
- **The hub refuses the credential** (HTTP 401): the binding is marked revoked and its credential removed. No new work
|
|
150
223
|
comes in; local items and results stay.
|
|
151
224
|
|
|
@@ -163,6 +236,35 @@ If the credential can't be removed, the binding still ends, and the error names
|
|
|
163
236
|
`rig network disconnect <binding id>` to run again. The daemon also removes credentials whose binding isn't active
|
|
164
237
|
each time it starts.
|
|
165
238
|
|
|
239
|
+
## Provider-managed bindings
|
|
240
|
+
|
|
241
|
+
An integration can pass `provider: { id, installation, participant, remoteInstallation? }` to
|
|
242
|
+
`POST /api/network/bindings`, alongside the existing seat, hub URL and token. Provider references are
|
|
243
|
+
opaque metadata. A separate `removal: { revision, token }` capability authorizes leaving that binding;
|
|
244
|
+
it is stored separately from its work credential and is never returned by a read. Direct bindings
|
|
245
|
+
remain provider-free. Existing enrolled bindings expose their recorded installation and participant as
|
|
246
|
+
provider metadata without reconnecting or moving their files.
|
|
247
|
+
|
|
248
|
+
To refresh a credential for the same binding, call `POST /api/network/bindings/<id>/credential` with
|
|
249
|
+
`{ expectedRevision, provider, token, removal? }`. Use the current `credentialRevision` and exact provider
|
|
250
|
+
object from GET (omit `provider` for a direct binding). A managed rotation needs a new removal revision
|
|
251
|
+
and capability too. This preserves binding, node, hub and work/receipt IDs; changing identity requires a
|
|
252
|
+
separate binding. Immutable private files are staged before the DB selects their revision. An interrupted
|
|
253
|
+
attempt can leave unused files for the credential sweep, without replacing the selected revision.
|
|
254
|
+
|
|
255
|
+
Disconnect commits local inactive state and provider removal intent together, then removes the work
|
|
256
|
+
credential. A cleanup failure leaves that state readable as `credentialCleanup: "pending"` and is retried by the connector. A separate pass in the
|
|
257
|
+
existing connector handles ended bindings with removal capabilities, using persisted retry times and
|
|
258
|
+
bounded requests. A lost reply stays `pending`; only a matching provider/revision receipt confirms removal. Its safe fields remain readable as `providerRemovalReceipt`.
|
|
259
|
+
`superseded` is terminal and does not claim removal. A provider refusal is `unconfirmed`, with its code,
|
|
260
|
+
and stops automatic retries. `rig network status` displays these states separately from local disconnect.
|
|
261
|
+
|
|
262
|
+
An integration can report its own completed reconciliation with `PATCH /api/network/bindings/<id>` and
|
|
263
|
+
`{ provider, removalRevision, providerRemoval: "confirmed" | "unconfirmed" | "superseded", reason? }`.
|
|
264
|
+
The original provider and removal revision must match the ended binding. Lifecycle writes use the same
|
|
265
|
+
configured daemon bearer as existing network writes. Existing account callbacks remain in place; this
|
|
266
|
+
interface does not perform a live provider migration or replace their cleanup journey.
|
|
267
|
+
|
|
166
268
|
## Limits
|
|
167
269
|
|
|
168
270
|
- The connector polls, so new work normally waits up to one interval before it reaches the seat, and longer when the
|
|
@@ -173,6 +275,12 @@ each time it starts.
|
|
|
173
275
|
An atomic close-if-open needs the hub to offer a conditional close.
|
|
174
276
|
- After a disconnect or a revocation, work already taken keeps running here, but its pickup and result no longer reach
|
|
175
277
|
the hub item, which stays at its last reported stage.
|
|
278
|
+
- **Requests a seat sends:**
|
|
279
|
+
- Closing or canceling the local item here leaves the hub item as it is: the request isn't withdrawn there.
|
|
280
|
+
- A disconnected binding leaves its open requests unread, with no note on them, until a new binding for the same
|
|
281
|
+
seat, hub and participant takes them over.
|
|
282
|
+
- `rig network status` doesn't list open requests yet. Use `rig queue list --mine`.
|
|
283
|
+
- Nothing wakes the seat when an answer arrives. Read the local item.
|
|
176
284
|
- If the daemon stops between storing a new installation key and recording the enrollment, that key's folder under
|
|
177
285
|
`network-secrets/` stays with no enrollment, and nothing removes it. It's private to you and unused, so remove it by
|
|
178
286
|
hand.
|
|
@@ -323,8 +323,17 @@ rig workflow instantiate ./spec.workflow.md \
|
|
|
323
323
|
`exception:`, `occurrence:` and `recovery-for:` prefixes, a `project:`,
|
|
324
324
|
`mission:` or `slice:` tag that contradicts its flag, or a second value of
|
|
325
325
|
the same key.
|
|
326
|
-
- `rig workflow instantiate-lifecycle`
|
|
327
|
-
|
|
326
|
+
- `rig workflow instantiate-lifecycle` derives scope from the lifecycle identity
|
|
327
|
+
it compiles. Pass the mission path and the required operation key, root
|
|
328
|
+
objective and creator as shown below.
|
|
329
|
+
|
|
330
|
+
```bash
|
|
331
|
+
rig workflow instantiate-lifecycle ./mission.yaml \
|
|
332
|
+
--operation-key capture-lifecycle-1 \
|
|
333
|
+
--root-objective "Build the capture flow" --created-by orch@my-rig
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
A compiled step's packets
|
|
328
337
|
carry the `slice:<directory>` of the slice that step was compiled from, even
|
|
329
338
|
when another slice's directory has the same name as its `metadata.id`. A step
|
|
330
339
|
an authored graph names carries `slice:<directory>` when it names an active
|
|
@@ -13,7 +13,7 @@ A queue row is erased in one of two ways:
|
|
|
13
13
|
|
|
14
14
|
| A scrub clears | A scrub keeps |
|
|
15
15
|
|---|---|
|
|
16
|
-
| body, summary, resolution, tags, blocker text, chain of record, evidence reference, human detail, questions and answers, delegated decision, the input-box reading | id, source and destination, state, priority, tier, times, closure reason, handoff links |
|
|
16
|
+
| body, summary, resolution, tags, blocker text, chain of record, evidence reference, human detail, questions and answers (including the relayed-answer journal), delegated decision, the input-box reading | id, source and destination, state, priority, tier, times, closure reason, handoff links |
|
|
17
17
|
| a closure's target when it's a reason or note, in the row, both transition tables and events. That's every target under a reason other than the two at right, and any target under those two that isn't a session address or a queue id | a closure's target that names a successor: under `handed_off_to` or `superseded`, shaped as a session address (`member@rig`, optionally `@host`) or a queue id (`qitem-…`) |
|
|
18
18
|
| transition notes and recorded principals, live and archived | each transition's state, actor and time |
|
|
19
19
|
| events' `summary`, `reason` and `error` (the event keeps its type and ids, marked `contentErased`) | |
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Queue transfer export (proposed)
|
|
2
|
+
|
|
3
|
+
This is the source-side archive for [#3094](https://github.com/mvschwarz/openrig/issues/3094). It takes a point-in-time copy of selected queue work. It does not move that work: claims and dispatch continue as before, and reports recorded later do not appear in an earlier archive. Export neither reserves a destination nor requires transfer authorization.
|
|
4
|
+
|
|
5
|
+
## Select work on the source
|
|
6
|
+
|
|
7
|
+
The following command and flags are proposed. Run on the source host, with access to its local database. Name exactly one scope:
|
|
8
|
+
|
|
9
|
+
| Scope | Selects |
|
|
10
|
+
|---|---|
|
|
11
|
+
| `--whole-host` | The entire local queue and all erased ID and rig receipts; this flag takes no host argument. |
|
|
12
|
+
| `--rig <name...>` | Rows whose source or destination names one of these local rigs, including addresses qualified with the source's own host ID. Pass unqualified rig names. Named rig erasure receipts are included. |
|
|
13
|
+
| `--mission <id...>` | Rows with any exact `mission:<id>` tag. |
|
|
14
|
+
| `--slice <id...>` | Rows with any exact `slice:<id>` tag. |
|
|
15
|
+
| `--qitems <id...>` | Exactly these rows or their erased-ID receipts. If only some requested IDs match, the export refuses rather than returning a partial selection. |
|
|
16
|
+
|
|
17
|
+
Scopes include closed work. A scope that matches neither rows nor receipts warns on standard error and produces a valid empty archive. References to other work are left as written; they do not pull more rows into the selection. Mission and slice exports include erasure receipts for selected IDs and local rigs named by selected endpoints. A deleted ID with no remaining row has no tags to match: use `--qitems` to select it by ID or `--whole-host` to include all receipts.
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
rig queue export --rig workshop --preview
|
|
21
|
+
rig queue export --rig workshop --out workshop.queue.json
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
`--preview` prints the full unfrozen archive to standard output and reports `not_ready_for_activation` on standard error. `--out` writes a new private file without overwriting an existing one, then prints the selection and history counts on standard error. A later run reads a new snapshot. This is not the destination dry run, and it does not validate destination routes or conflicts.
|
|
25
|
+
|
|
26
|
+
The command opens the source database read-only. Set `OPENRIG_HOME` (and `OPENRIG_DB` if the daemon uses an override) to the same location the source uses. It refuses with `origin_identity_missing` when the store has no reconciled self-host identity. If the archive would exceed the limit (16 MiB by default, configurable with `--max-bytes <n>`), it refuses with `archive_too_large` and names the limit in bytes. Raising the limit can increase memory use. It never truncates a file to fit.
|
|
27
|
+
|
|
28
|
+
## What the archive contains
|
|
29
|
+
|
|
30
|
+
`openrig.queue-transfer/v2` holds the selected rows, including bodies, answers, lineage, return routes, claims and delivery facts. It includes both live and archived transition history, transition wake evidence and mission-control audit history, with source IDs, actors, provenance and notification facts. It preserves addresses verbatim. Wake and notification history is not an instruction to send anything. A scrubbed row keeps its marker without its scrubbed content. The archive does not contain pending delivery intents, inbox entries, native sessions, transcripts, workspace files, evidence bytes, rig specs or fleet state.
|
|
31
|
+
|
|
32
|
+
The origin identity is `(hostId, mintedAt)`. There is no `origin.generation`: the numeric host counter shown in the v3 archive and receipt examples is not a source identity field. Activation ordering and the receipt format belong to later work.
|
|
33
|
+
|
|
34
|
+
`origin.openrigVersion` is the version bundled with the exporting CLI; it can differ from the running daemon's version. `origin.schemaMigration` records the source database's schema migration.
|
|
35
|
+
|
|
36
|
+
The file uses compact UTF-8 JSON with keys in UTF-16 code-unit order. Rows are sorted by queue ID and transitions by timestamp then original transition ID. `digest.value` is lowercase SHA-256 hex over that canonical JSON with the top-level `digest` removed; `digest.coverage` names the format. Re-serializing the same archive reproduces its digest. A new export has a new ID and timestamp and need not have the same digest. The hash checks content; it is not authorization or a signature.
|
|
37
|
+
|
|
38
|
+
Treat the archive and preview output like the database: neither is encrypted, and a file can retain content scrubbed from the source later. Keep it only as long as needed, and use your own secure channel to move it. Staging, activation, fencing and reconciliation are not part of this command.
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Queue transfer staging (proposed)
|
|
2
|
+
|
|
3
|
+
An [exported queue archive](queue-transfer-export.md) can be checked and stored on a destination without moving any work. This is the inactive import in [#3094](https://github.com/mvschwarz/openrig/issues/3094). It does not stop or relinquish work at the source, and nothing in the archive can run at the destination, even after a daemon restart.
|
|
4
|
+
|
|
5
|
+
## Review, then stage
|
|
6
|
+
|
|
7
|
+
Run the proposed commands on the destination with the daemon's `OPENRIG_HOME`. They use `db.path` (including environment overrides) when configured, then the last launch's `--db` path if recorded, then the home default. The database must already have migration 190; the commands don't start a daemon or migrate its database.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
rig queue import workshop.queue.json --dry-run
|
|
11
|
+
rig queue import workshop.queue.json
|
|
12
|
+
rig queue staging list
|
|
13
|
+
rig queue staging discard <importId>
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
Both import forms check the format, digest, shown selection and destination conflicts. The dry run opens the existing database read-only and prints a JSON review to stdout. Redirect it to keep it. Import without `--dry-run` keeps the original envelope and its manifest in one database transaction. The manifest names the digest, origin, shown selection, row count and status. It does not make live queue items, transitions, delivery intents, ownership records or fences.
|
|
17
|
+
|
|
18
|
+
No authorization is needed. A valid review reports `not_ready_for_activation` and `destination_unbound`; this is not a failure. The archive itself never names a destination or embeds authorization. The review lists open, terminal and erased rows separately and shows which pending or in-progress items could be runnable under the current, unchanged local addresses. That is a preview, not a readiness guarantee or a request to dispatch. Blocked items stay out of that list.
|
|
19
|
+
|
|
20
|
+
## Read the report
|
|
21
|
+
|
|
22
|
+
| Finding | Meaning |
|
|
23
|
+
|---|---|
|
|
24
|
+
| `format_unsupported`, `digest_mismatch`, `origin_identity_missing`, `selection_not_shown` | Wrong format major, different content, missing origin identity, or no matching shown selection. |
|
|
25
|
+
| `archive_invalid`, `archive_too_large` | Invalid envelope, or a file beyond the configured limit. The default is 16 MiB; proposed `--max-bytes <n>` changes it. Raising the limit increases memory use. |
|
|
26
|
+
| `qitem_id_collision`, `workspace_has_unrelated_conflict` | An ID belongs to destination work already, or a mission-control action ID collides. Nothing is replaced. |
|
|
27
|
+
| `qitem_erased_at_destination` | The destination already recorded an erasure for this ID. |
|
|
28
|
+
| `unresolved_rig`, `unresolved_seat` | A named rig or seat could not be shown locally without mapping. The report leaves the address as written. |
|
|
29
|
+
| `missing_evidence` | The path was checked under a local shared root but did not name an existing regular file. |
|
|
30
|
+
| `evidence_not_checked` | The reference could not be checked, for example because it is a link, is relative, or is outside local shared roots. |
|
|
31
|
+
| `dangling_reference` | A referenced item is not in the archive or known locally. |
|
|
32
|
+
|
|
33
|
+
Refusals exit nonzero and do not keep an envelope. Warnings do not prevent staging. Evidence checks use the resolved `files.allowlist` configuration; nothing is fetched or copied. Review does not compare to the current source, discover later reports, validate a receipt or check a proposed seat mapping. Those require the later transfer steps.
|
|
34
|
+
|
|
35
|
+
## Keep only what you need
|
|
36
|
+
|
|
37
|
+
An identical content key (origin host ID, origin minted-at value and digest) returns the original manifest. `staging list` prints manifests, not archive bodies. Discard removes the stored envelope and marks the manifest `discarded`; importing identical content again returns that manifest without restoring the envelope. Discard writes no fence and does not remove the original file or older backups. It is not a secure erase of SQLite pages or journal files.
|
|
38
|
+
|
|
39
|
+
Treat the archive, database and report as sensitive. The format is not encrypted, and an older archive can contain content erased at the source later. Keep the copies only as long as needed. Activation and reconciliation are not available through these commands.
|
|
@@ -12,14 +12,14 @@ In your project folder, add OpenRig's `rigs` skill to the agent you use:
|
|
|
12
12
|
|
|
13
13
|
```sh
|
|
14
14
|
# Claude Code
|
|
15
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
15
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.23/skills/rigs --skill rigs --agent claude-code
|
|
16
16
|
# Codex
|
|
17
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
17
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.23/skills/rigs --skill rigs --agent codex
|
|
18
18
|
# OMP (Oh My Pi): the pi target installs to .agents/skills, which OMP reads
|
|
19
|
-
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.
|
|
19
|
+
npx skills add https://github.com/mvschwarz/openrig/tree/v0.7.23/skills/rigs --skill rigs --agent pi
|
|
20
20
|
```
|
|
21
21
|
|
|
22
|
-
**OMP:** this pin installs the shared skill only. The `v0.7.
|
|
22
|
+
**OMP:** this pin installs the shared skill only. The `v0.7.23` skill includes OMP attachment guidance (`rig attach --self … --runtime omp`),
|
|
23
23
|
but complete setup from OMP has not been verified. OMP isn't a kernel provider; Claude Code or Codex must still be
|
|
24
24
|
signed in.
|
|
25
25
|
|
|
@@ -152,8 +152,11 @@ With the switch on:
|
|
|
152
152
|
the agent can correct a stale tag. Anything less certain lists every
|
|
153
153
|
candidate's one-line intent and asks the agent to name its mission (or to say
|
|
154
154
|
it has no current work), giving the `--work-start` route that then shows
|
|
155
|
-
that mission's intent as text.
|
|
156
|
-
|
|
155
|
+
that mission's intent as text. With nothing in progress and a project
|
|
156
|
+
selected for the seat, the missions it lists and that route are the
|
|
157
|
+
project's, under its own missions root, and the route names the project root
|
|
158
|
+
as `--work-root` so it runs on its own; otherwise they are workspace.root's.
|
|
159
|
+
The project-level chain appears only as labelled orientation.
|
|
157
160
|
- A tag that does not resolve on this host is named, never replaced. A
|
|
158
161
|
retargeted handoff or a remote ancestor gives no assumed mission. A mission
|
|
159
162
|
named only in body text is not evidence.
|
|
@@ -178,9 +178,11 @@ edges:
|
|
|
178
178
|
| `summary` | string | no | — | Human-readable description. Shown in the spec library, review surfaces and `rig specs preview` (in `rig specs show` only with `--json`). |
|
|
179
179
|
| `culture_file` | string | no | — | Relative path to a rig-wide culture/constitution file. Must be a safe relative path (no `..`, no absolute). |
|
|
180
180
|
| `non_interruptive` | boolean | no | — | Pod-aware rig launch-warning default. With full-bypass Claude/Codex seats, true accepts or hides supported harness warnings using launch flags. Explicit CLI choices override this field; this field overrides the machine default. It does not grant permissions, change native settings files, or bypass login. |
|
|
181
|
+
| `seat_slice` | string | no | — | Linux/systemd hosts only, opt-in. `rig` starts every seat the rig launches, with or without `process_limits`, in a systemd user scope beneath the rig's own slice, `openrigseats-<rig>.slice` under `openrigseats.slice`, so a weight you set on that slice in your user manager covers the whole rig. `rig` is the only value; omit the key to keep today's launch paths. OpenRig sets no CPU weight. See "Seat grouping by rig" below. |
|
|
181
182
|
| `permission_policy` | string | no | — | Permission policy attached to the rig. Either a built-in (`builtin:locked`, `builtin:standard`, `builtin:open`, `builtin:yolo`, `builtin:auto`) or a safe relative path to a custom policy file (resolved from this spec's directory; no `..`, no absolute, no empty segments, each segment `[A-Za-z0-9][A-Za-z0-9._-]*`), or `none`, a recorded choice of the floor. Absent uses the default floor with the scoped team launch allowances described below. A bare built-in name such as `yolo` is refused ("use 'builtin:yolo'"), and so is an explicit `null`. A custom file that is missing, unreadable or invalid isn't a validation error: it resolves to the floor, and preflight warns. A member may set its own `permission_policy` (not on a terminal member), which takes precedence over the rig-level one; there is no pod level. See "Attaching a permission policy" below. |
|
|
182
183
|
| `env` | map | no | — | Launch environment for every seat in the rig: `NAME: value` pairs. A member's own `env` overrides it name by name. Names match `^[A-Z_][A-Z0-9_]*$`, names starting `OPENRIG_` are reserved, and values must be non-empty strings (quote numbers and booleans). Values are not secret. See "Launch environment" below. |
|
|
183
184
|
| `managed_blocks` | map | no | `CLAUDE.md` | File that receives OpenRig's managed instruction blocks for Claude Code members. Only the `claude-code` key is accepted, with `CLAUDE.md` or `CLAUDE.local.md`. Codex, Pi and OMP members use `AGENTS.md`, except that a fresh Pi seat normally uses its own agent folder's `AGENTS.md` and a fresh Codex 0.164.0+ seat normally gets launch developer instructions; a link, a conflicting or unreadable Codex config layer, or a resume keeps the repository file. See [Codex guidance at launch](agent-startup-guide.md#codex-guidance-at-launch) and [Runtime Differences](agent-startup-guide.md#runtime-differences). See "Choosing the Claude instruction file" below. |
|
|
185
|
+
| `default_onboarding_pack` | boolean | no | Inherit `onboarding.default_pack.enabled` | `true` includes the two built-in onboarding pages for this rig and `false` omits them. The identity and context-entry guidance still applies. OpenRig records the choice with the rig, and restores keep the saved guidance selection. |
|
|
184
186
|
| `workspace` | object | no | — | The rig's workspace: `workspace_root` (required), `repos[]` of `{name, path, kind}` with `kind` one of `user`, `project`, `knowledge`, `lab` or `delivery` and unique names, an optional `default_repo` naming one of them, and an optional `knowledge_root`. Relative repo paths resolve against `workspace_root`. |
|
|
185
187
|
| `docs` | Doc[] | no | — | Documentation files that should travel with the rig. Included in rig bundles. Each entry has a `path` field (safe relative path). The engine does not consume these — they are for humans and agents setting up the environment before launch. |
|
|
186
188
|
| `startup` | StartupBlock | no | — | Rig-level startup files and actions. Applied to all members via the startup layering model. |
|
|
@@ -915,6 +917,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
|
|
|
915
917
|
| `summary` | string | no | — | Pod description. |
|
|
916
918
|
| `continuity_policy` | ContinuityPolicy | no | — | Pod-level continuity/restore policy, validated and stored with the pod (see "Continuity Policy"). |
|
|
917
919
|
| `startup` | StartupBlock | no | — | Pod-level startup files and actions. Applied to all members in this pod via the startup layering model. |
|
|
920
|
+
| `cold_start` | boolean | no | `false` | Pod-level default for member `cold_start` (queue-driven cold start). A member's own value, including an explicit `false`, wins. See [Queue-driven cold start](#queue-driven-cold-start). |
|
|
918
921
|
| `members` | Member[] | yes | — | The pod's members. It must be an array; validation doesn't refuse an empty one. |
|
|
919
922
|
| `edges` | PodLocalEdge[] | no | `[]` | Edges between members within this pod. Must use unqualified member IDs (not `pod.member`). |
|
|
920
923
|
|
|
@@ -957,12 +960,63 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
|
|
|
957
960
|
| `plugin_channels` | list | no | — | Claude members only. Plugin channels this agent registers for, as `plugin:<name>@<marketplace>` entries, passed as one `--channels` on every launch; see [Claude plugin channels](#claude-plugin-channels-runtime-claude-code). |
|
|
958
961
|
| `role` | string | no | — | The seat's role, letters, digits, `_`, `.` and `-`. Not valid on terminal members. |
|
|
959
962
|
| `restore_policy` | string | no | the AgentSpec's | Restore behavior. One of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`. The default comes from the AgentSpec's `defaults.lifecycle` (else `resume_if_possible`) as narrowed by its profile; a member value may only narrow it further, in that order. |
|
|
963
|
+
| `cold_start` | boolean | no | `false` | Opt in to queue-driven cold start for this seat: when queued work targets the seat, its rig is running, and the seat's runner is not live, the daemon launches just this seat through the existing single-seat launch path (resuming its conversation when a resume token exists). Never fires for a seat stopped intentionally (a human `rig seat stop`, `rig down`, a removal), a seat removed from the spec, or a rig with no other live seat. A resource-reclaiming daemon stop (the idle reaper's `daemon:seat-reaper`/`idle_reap`) is revivable. A member's explicit value wins over the pod's `cold_start`. See [Queue-driven cold start](#queue-driven-cold-start). |
|
|
964
|
+
| `keep_alive` | boolean | no | the AgentSpec's, else `false` | When `true`, the daemon relaunches the seat if it falls while the daemon is running, and leaves it down if it was stopped on purpose. Overrides the AgentSpec's `lifecycle.keep_alive` in either direction. See [Keep a seat running](#keep-a-seat-running-keep_alive). |
|
|
960
965
|
| `compaction_strategy` | string | no | — | `default-compaction`, `managed-compaction`, `handover` or `apprentice-handover`; `harness_native` and `pod_continuity` are accepted as deprecated aliases, and `custom_prompt` is refused. `managed-compaction` and `apprentice-handover` create their jobs only for `claude-code` seats; see [Codex compaction and sizing](agent-startup-guide.md#codex-compaction-and-sizing). |
|
|
961
966
|
| `mechanic` | string | no | — | A canonical `seat@rig` session address, for `apprentice-handover`. |
|
|
962
967
|
| `session_source` | object | no | — | Start the seat from an existing session: `fork` with `native_id`, `rebuild` with `artifact_set`, or `agent_image` with `image_name`. A Claude Code `fork` needs Claude Code 2.0.73 or later. Not valid on terminal members. Rebuild `artifact_set` paths are read as given, relative to the daemon's working directory, so an absolute path is the reliable form. |
|
|
963
968
|
| `starter_ref` | object | no | — | `{ name }` of an agent starter (`^[a-zA-Z0-9][a-zA-Z0-9_-]*$`) whose files lead the seat's startup. Not valid on terminal members or with a fork. |
|
|
964
969
|
| `startup` | StartupBlock | no | — | Member-level startup files and actions. Applied only to this member. |
|
|
965
970
|
|
|
971
|
+
|
|
972
|
+
### Queue-driven cold start
|
|
973
|
+
|
|
974
|
+
A seat with `cold_start: true` (member, or pod-level default) does not keep a
|
|
975
|
+
runner alive for nothing: when queued work targets the seat and the queue cannot
|
|
976
|
+
deliver — the seat has no live runner — the daemon launches just that seat through
|
|
977
|
+
the existing single-seat launch path, resuming its saved conversation when a resume
|
|
978
|
+
token exists and never silently replacing a live conversation with a fresh one.
|
|
979
|
+
|
|
980
|
+
The daemon cold-starts a seat only when all of these hold:
|
|
981
|
+
|
|
982
|
+
- the seat opted in and is still in the rig's current spec (a removed seat never starts);
|
|
983
|
+
- the seat's rig is running — some other seat of the rig is live (a down rig keeps
|
|
984
|
+
whole-rig restore as the operator's choice);
|
|
985
|
+
- the seat's latest stop was **not** an intentional stop. Eligibility is keyed on who
|
|
986
|
+
stopped the seat, not merely that it is stopped:
|
|
987
|
+
- a human `rig seat stop`, `rig down`, or a seat removal records a deliberate end
|
|
988
|
+
state, and cold start never revives it;
|
|
989
|
+
- the only revivable stop is a resource-reclaiming daemon stop — the idle reaper (a
|
|
990
|
+
separate feature) stops a seat as operator `daemon:seat-reaper` with reason
|
|
991
|
+
`idle_reap` precisely so new work can wake it again;
|
|
992
|
+
- a seat that was never stopped intentionally (a crash, a lost session) is dormant;
|
|
993
|
+
- a rolled-back launch (`superseded` row, a failed start) is refused like an intentional
|
|
994
|
+
stop — a failed start is never auto-revived;
|
|
995
|
+
- the seat's tmux session is gone (a probe that throws is not evidence of absence — the
|
|
996
|
+
seat is left alone, fail-closed).
|
|
997
|
+
|
|
998
|
+
Stop attribution is tied to the exact session id, not its reusable tmux name. An old
|
|
999
|
+
reaper stop cannot authorize reviving a later generation stopped by a person or `rig down`.
|
|
1000
|
+
A rig whose **only seat is dormant never cold-starts**: the running-rig gate requires
|
|
1001
|
+
a live peer. Start that seat explicitly with `rig launch`; this flag does not start down rigs.
|
|
1002
|
+
|
|
1003
|
+
The launch is the ordinary single-seat door (`rig launch`), so it takes the
|
|
1004
|
+
delivery-guard lifecycle lease, rechecks stop intent, opt-in and seat identity under that
|
|
1005
|
+
lease, and applies the normal restore decision: a
|
|
1006
|
+
`resume_if_possible` seat with a usable token resumes its conversation, and a seat
|
|
1007
|
+
whose conversation cannot be resumed parks as `awaiting-decision` with no session
|
|
1008
|
+
started rather than being silently replaced by a fresh one.
|
|
1009
|
+
A cold start also parks as `awaiting-decision` when the snapshot's occupant is no longer
|
|
1010
|
+
the seat's current session: a stale snapshot never silently replaces a newer conversation.
|
|
1011
|
+
|
|
1012
|
+
Simultaneous arrivals are coalesced into one launch, attempts are at least a minute
|
|
1013
|
+
apart, and a seat that fails to start three times in a row stops cold-starting
|
|
1014
|
+
until liveness is observed or a launch succeeds — the cap never expires by time. Refusal
|
|
1015
|
+
evaluations coalesce per seat within each queue drain pass, with a one-second TTL;
|
|
1016
|
+
the next pass checks liveness again. Once the seat is running, the queue's existing
|
|
1017
|
+
unroutable-wake retry delivers the waiting rows; no new scheduler is involved.
|
|
1018
|
+
Idle stopping and reaping are a separate feature and not part of this opt-in.
|
|
1019
|
+
|
|
966
1020
|
### Claude MCP loading (`runtime: claude-code`)
|
|
967
1021
|
|
|
968
1022
|
Set `claude_mcp: none` on an individual member to launch it without MCP servers:
|
|
@@ -1105,7 +1159,7 @@ members:
|
|
|
1105
1159
|
- **Scope and literal argv:** Local `pi`, `codex`, `claude-code` and supported community-harness members support `launch_wrapper`; legacy flat nodes support it only on `pi`, `codex` and `claude-code`. Other runtimes, including the maintained `openshell-claude` environment path, reject it, including `[]`. Community preset capability and execution requirements are defined in the [runner contract](harness-runner-contract.md#2-declare-it-what-the-preset-says-fixed-at-launch). Each fork uses its target member's own selection. Arguments are literal strings without NUL, CR or LF; spaces, quotes, metacharacters and empty non-executable arguments are preserved.
|
|
1106
1160
|
- **Executable resolution:** `launch_wrapper[0]` must be an absolute path or bare command name. Preflight and launch resolve it using the daemon's launch `PATH` and working directory, before adding the seat's `rig` bin directory. Relative paths containing `/`, aliases and functions are unsupported for the wrapper itself.
|
|
1107
1161
|
- **Native child and `exec` contract:** The wrapper prefixes the resolved Codex entry, prefixes the resolved Pi child executable inside the host runner, or prefixes the real Claude executable and native arguments. Managed Claude applies it after rebuilding the environment; pinned continuations retain their executable. The wrapper must `exec` its child in place, preserving working directory, environment, signals, exit status and TTY stdio (Claude/Codex) or RPC pipes (Pi). Supervising wrappers are unsupported.
|
|
1108
|
-
- **Classic Claude lookup:** Wrapped classic launch supports bash, zsh, sh and dash and requires `command -v claude` to resolve to an executable file;
|
|
1162
|
+
- **Classic Claude lookup:** Wrapped classic launch supports bash, zsh, sh and dash and requires `command -v claude` to resolve to an executable file. OpenRig doesn't look past an alias or function named `claude`, which may carry your settings: the pane prints `OpenRig: claude is a shell function here, and a launch_wrapper needs claude to be an executable file; no agent started.` (or `shell alias`), and the seat's ready check reports that reason with the remedy. Any other lookup failure prints `launch_wrapper unavailable; no agent started.` To keep custom flags or environment, put them in a `#!` script named `claude` on `PATH`; the wrapper runs that script ([#1477](https://github.com/mvschwarz/openrig/issues/1477)).
|
|
1109
1163
|
- **Fail-closed (never unwraps):** The selected wrapper applies across fresh launch, relaunch, rebuild, resume, fork, restore, handover and supported runtime switches. Invalid stored metadata, non-POSIX panes, unavailable wrapper support, missing session identity or an unusable wrapper refuses launch. Failures after dispatch remain visible in the pane or Pi runner's markers; OpenRig never runs unwrapped, including Pi's long-command (`launch_path_too_long`) host-runner retry.
|
|
1110
1164
|
- **Persistence and clear:** On new seats, absent or `launch_wrapper: []` stores no wrapper. Applying an authored spec to an existing seat retains the stored selection when absent, clears it with `launch_wrapper: []`, and replaces it with a non-empty array. Recreation/import uses the incoming spec; older snapshots preserve the current selection. First-start retry refuses wrapper changes. Runtime switches carry it to supported successors; validation occurs at execution. There is no live edit verb: change the spec and use the supported create/recreate/apply flow. Export and node inventory include the configured value.
|
|
1111
1165
|
- **Boundary:** An argv prefix is not proof of sandbox isolation, tooling availability, memory wiring or governance enforcement. Verify the wrapper and runtime independently.
|
|
@@ -1133,7 +1187,7 @@ members:
|
|
|
1133
1187
|
before. `tasks_max` and `memory_max` are the only supported keys; any other key, such as a CPU limit, is refused by
|
|
1134
1188
|
name rather than accepted and ignored.
|
|
1135
1189
|
- **The boundary:** The seat's pane command starts in a transient `systemd-run --user --scope` of its own, in
|
|
1136
|
-
`openrigseats.slice
|
|
1190
|
+
`openrigseats.slice` (beneath its rig's slice there when the rig sets `seat_slice: rig`), with `TasksMax=N` and/or `MemoryMax=<bytes>` as its only limits (one scope for both). The
|
|
1137
1191
|
seat's processes leave the terminal server's scope:
|
|
1138
1192
|
a limit an operator put on that scope no longer covers this seat. The other seats, the daemon and the terminal server
|
|
1139
1193
|
stay where they were, outside this seat's limit. Processes the seat itself starts through `systemd-run --user` land
|
|
@@ -1244,6 +1298,141 @@ members:
|
|
|
1244
1298
|
`rig export` prints) with how to fix or clear it, and the `X-OpenRig-Export-Warnings` header on YAML and JSON (which
|
|
1245
1299
|
`rig spec show --json` prints as a warning).
|
|
1246
1300
|
|
|
1301
|
+
### Keep a seat running (`keep_alive`)
|
|
1302
|
+
|
|
1303
|
+
Set `keep_alive: true` on a member when that seat should come back by itself if it falls:
|
|
1304
|
+
|
|
1305
|
+
```yaml
|
|
1306
|
+
members:
|
|
1307
|
+
- id: worker
|
|
1308
|
+
agent_ref: local:agents/worker
|
|
1309
|
+
profile: default
|
|
1310
|
+
runtime: claude-code
|
|
1311
|
+
cwd: .
|
|
1312
|
+
keep_alive: true
|
|
1313
|
+
```
|
|
1314
|
+
|
|
1315
|
+
It's off by default. Without it, nothing relaunches a fallen seat, as before: you bring it back with `rig launch`,
|
|
1316
|
+
`rig up --existing` or `rig start`.
|
|
1317
|
+
|
|
1318
|
+
- **Where it's declared:** on the member, or in an AgentSpec's `defaults.lifecycle.keep_alive` or a profile's
|
|
1319
|
+
`lifecycle.keep_alive` ([AgentSpec](agent-spec.md#lifecycle-defaults)). The most specific declaration wins: the
|
|
1320
|
+
member, then the profile, then the agent's defaults, and absent everywhere is off. A member can turn off what its
|
|
1321
|
+
agent turns on. It's a flat key on the member, beside `restore_policy`, not a `lifecycle` block. Terminal members can
|
|
1322
|
+
declare it too. The resolved value is stored with the seat when it's created and again when the spec launches it;
|
|
1323
|
+
`rig export` writes `keep_alive: true` for a seat that has it, `keep_alive: false` for a member that turned off what
|
|
1324
|
+
its agent turns on (in the spec last applied to the seat, a re-applied one included), and nothing for a seat that
|
|
1325
|
+
declares nothing. A first-start retry keeps the seat's stored value.
|
|
1326
|
+
- **A fall versus a stop on purpose.** A fall is a seat whose session is gone without a stop request: its process
|
|
1327
|
+
exited, crashed or was killed from outside, or the host or the daemon went down unplanned. `rig seat stop` and
|
|
1328
|
+
`rig down` are stops on purpose and the seat stays down. Each records its stop request before the first step that
|
|
1329
|
+
stops anything (see [Checked seat stop](checked-seat-stop.md)), so a seat a `rig down` selected but hadn't reached
|
|
1330
|
+
yet, or a stop the daemon died in the middle of, also stays down. A keep_alive seat that has already fallen, or whose
|
|
1331
|
+
relaunch attempt failed, is covered too: `rig down` records the request on it, and `rig seat stop` records the stop
|
|
1332
|
+
instead of refusing a seat with nothing left to kill, and says the seat is now held down (unless an older session of
|
|
1333
|
+
the seat is still live, which it refuses as before, pointing at `rig seat clean`). An unplanned daemon or host loss never erases a stop
|
|
1334
|
+
recorded before it. A clean `rig daemon stop` isn't a stop of the seats: it changes no seat's desired state, leaves
|
|
1335
|
+
running sessions running and starts no recovery. To leave a keep_alive seat down, stop it with `rig seat stop` or
|
|
1336
|
+
`rig down`, not with a daemon stop.
|
|
1337
|
+
- **How it comes back.** The daemon checks its keep_alive seats every 30 seconds while it runs. It first reconciles the
|
|
1338
|
+
seat against tmux and acts only when the session is proven gone (tmux reports it absent, or no tmux server is running):
|
|
1339
|
+
an unreachable socket or another unreadable probe, or a process still running, is not a fall, and a session that ended cleanly (`exited` without a stop request) is left as it is.
|
|
1340
|
+
A retry of a failed relaunch needs the same proof, whatever status that launch left. Anything the check can't settle
|
|
1341
|
+
on any of the seat's sessions (a probe that proves nothing, a session tmux still shows, a recorded process still
|
|
1342
|
+
running, or one it can't check because the process table can't be read) leaves the seat as it is until a later check
|
|
1343
|
+
can. Only the sessions that decide the fall count: the seat's latest session, its other sessions under the same tmux
|
|
1344
|
+
name and the incident's own; a session you claimed and released is its owner's and never holds the seat back. A tmux
|
|
1345
|
+
socket removed by a reboot's `/tmp` cleanup is not left undecided when the process recorded for the seat's latest
|
|
1346
|
+
session, observed since that session began, is no longer running: as `rig down` does, the daemon starts an empty tmux
|
|
1347
|
+
server and probes again, so a seat that is really gone is proven gone. Without that proof (no such record, or one for
|
|
1348
|
+
another session) the seat waits. It relaunches through the
|
|
1349
|
+
same one-seat launch as `rig launch <rig> <seat>`, under the seat's `restore_policy`: it resumes the conversation when
|
|
1350
|
+
it can and never asks for a fresh start of its own (only a declared `restore_policy` starts one fresh), so a seat
|
|
1351
|
+
whose conversation can't be resumed waits for a person instead of silently starting blank. A live session that
|
|
1352
|
+
survived is never launched a second time. Right before it starts, under the seat's lifecycle lease, the launch checks
|
|
1353
|
+
again: a `rig seat stop` or `rig down` that got there first wins, and nothing is launched. A seat lost while the
|
|
1354
|
+
daemon was down is recovered on the daemon's first checks after it starts, once its startup reconcile has run; a rig
|
|
1355
|
+
being restored is left to its restore. Once a daemon shutdown begins, a relaunch still waiting for the seat's lease,
|
|
1356
|
+
or still preparing its launch, starts nothing, and its attempt isn't counted.
|
|
1357
|
+
- **Not covered:** a seat attached from outside, joined as an external CLI or through a tmux session OpenRig claimed
|
|
1358
|
+
rather than started (`rig attach`), is its owner's, and the daemon never relaunches it. Seats of an archived rig
|
|
1359
|
+
aren't watched.
|
|
1360
|
+
- **Attempts, durably counted.** Each fall opens an incident with 2 attempts, the first as soon as the fall is proven
|
|
1361
|
+
and the second at least 30 seconds after the first (each later wait would double). Each attempt is counted, with its
|
|
1362
|
+
`seat.keep_alive.attempted` event, before its launch starts, so a daemon restart in the middle of a launch still
|
|
1363
|
+
counts it; neither a daemon restart nor a launch that merely returned gives the attempts back. Any session a
|
|
1364
|
+
relaunch leaves behind belongs to its incident, whatever the launch's outcome; a session a launch created just
|
|
1365
|
+
before the daemon stopped, with its outcome not yet written, is taken as that launch's when the daemon is back. The
|
|
1366
|
+
incident ends, and the next fall starts a new one, when a check has seen the relaunched seat run for 10 minutes,
|
|
1367
|
+
when your stop of the seat is confirmed (a stop still pending keeps it, so a stop that turns out to have had no
|
|
1368
|
+
effect leaves the budget as it was), or when you start it yourself, at any point of the incident. Daemon start's
|
|
1369
|
+
automatic restore of a kernel isn't a start of yours: the session it brings back belongs to the incident, which goes
|
|
1370
|
+
on with the attempts it has left (or, exhausted, keeps waiting for you), and the 10 minutes count again from when a
|
|
1371
|
+
check sees that session running. An exhausted incident whose restored session a check has seen run for 10 minutes
|
|
1372
|
+
ends too, so the next fall is recovered again. Only what a check saw counts:
|
|
1373
|
+
a relaunched seat that falls while the daemon is down, before a check saw it run for 10 minutes, stays in its
|
|
1374
|
+
incident. The attempts, the wait and the 10 minutes are fixed in this version; there is no setting for them yet.
|
|
1375
|
+
- **When the attempts run out,** or a launch ends in a way a retry can't change (`awaiting-decision`,
|
|
1376
|
+
`attention_required`, `left_attached`, a refusal such as a changed selection or no usable snapshot, a failed launch
|
|
1377
|
+
that left its new session running without the agent, or an older session of the seat still running behind the
|
|
1378
|
+
latest one that fell), the daemon stops trying. It emits `seat.keep_alive.exhausted` once, with the last status and error, and the seat reads
|
|
1379
|
+
`attention_required` in `rig ps --nodes` while it isn't running. Look at why with
|
|
1380
|
+
`rig ps --nodes --rig <rig> --json --full` (`keepAliveIncident`) and the seat's terminal, then start it yourself with
|
|
1381
|
+
`rig launch <rig> <seat>` (`--plan` first). A start you make opens a fresh budget for the next fall.
|
|
1382
|
+
- **What you can see:** node inventory (`rig ps --nodes --json --full`) shows `keepAlive: true` on a seat that declares
|
|
1383
|
+
it and, while it has an incident and no stop request, `keepAliveIncident` with `attempts`, `exhausted`, `lastError`
|
|
1384
|
+
and `lastAttemptAt`. A stop, pending or confirmed, clears the incident's `attention_required` at once. A
|
|
1385
|
+
stop that was asked for and isn't confirmed yet shows `stopRequested: true`. Each field is absent where it doesn't
|
|
1386
|
+
apply, so a seat without keep_alive or a pending stop reads as before. The events are `seat.keep_alive.attempted`,
|
|
1387
|
+
`seat.keep_alive.recovered` (with the launch status) and `seat.keep_alive.exhausted` (with the last status and error);
|
|
1388
|
+
each carries the rig, the seat's node and logical id, the incident id and the attempts spent.
|
|
1389
|
+
|
|
1390
|
+
### Seat grouping by rig (`seat_slice`, Linux/systemd)
|
|
1391
|
+
|
|
1392
|
+
Set `seat_slice: rig` at the top of a rig spec to start every seat that rig launches in a scope beneath a slice of the
|
|
1393
|
+
rig's own, so the systemd user manager can share the machine between rigs rather than between seats:
|
|
1394
|
+
|
|
1395
|
+
```yaml
|
|
1396
|
+
version: "0.2"
|
|
1397
|
+
name: alpha
|
|
1398
|
+
seat_slice: rig
|
|
1399
|
+
pods: [...]
|
|
1400
|
+
```
|
|
1401
|
+
|
|
1402
|
+
- **The slice names:** a grouped seat's scope goes in `openrigseats-<rig>.slice`. A dash in a slice name is nesting to
|
|
1403
|
+
systemd, so that slice sits directly beneath `openrigseats.slice`, the slice the scopes of seats with
|
|
1404
|
+
`process_limits` already use. The rig's name is escaped as `systemd-escape` escapes a string (systemd.unit(5),
|
|
1405
|
+
"String escaping"): every byte other than an ASCII letter, digit, `:`, `_` or `.` becomes `\xNN`, and so does a
|
|
1406
|
+
leading `.`. Unlike `systemd-escape`, a `/` is escaped too (`\x2f`), so a rig name never adds a level. Rig `alpha`
|
|
1407
|
+
uses `openrigseats-alpha.slice`; rig `lab-b` uses `openrigseats-lab\x2db.slice` (`systemd-escape lab-b` prints the
|
|
1408
|
+
escaped part). Its cgroup is `<user manager>/openrigseats.slice/openrigseats-<escaped rig>.slice/`.
|
|
1409
|
+
- **Every seat, with or without limits:** a seat with `process_limits` gets its scope, with the same limits, checked the
|
|
1410
|
+
same way, beneath the rig's slice instead of directly in `openrigseats.slice`. A seat without limits, which otherwise
|
|
1411
|
+
starts in the terminal server's process tree, gets a scope with no limit beneath the rig's slice. Fresh launches,
|
|
1412
|
+
restores, relaunches, respawns and a restart in place's respawn all start the seat there. A grouped seat without limits
|
|
1413
|
+
also leaves the terminal server's scope, so any limit on that scope no longer covers it.
|
|
1414
|
+
- **Weights are yours:** OpenRig sets no CPU weight, quota or other property on any slice; it only names the slice
|
|
1415
|
+
when it starts a scope. Give the rigs their shares in your systemd user manager, at run time or in a drop-in, for
|
|
1416
|
+
example `systemctl --user set-property openrigseats-alpha.slice CPUWeight=200`, or
|
|
1417
|
+
`~/.config/systemd/user/openrigseats-alpha.slice.d/weight.conf` with `[Slice]` and `CPUWeight=200`. A weight takes
|
|
1418
|
+
effect only where the cpu controller is delegated to the user manager (see
|
|
1419
|
+
`cat /sys/fs/cgroup/user.slice/user-$(id -u).slice/user@$(id -u).service/cgroup.controllers`).
|
|
1420
|
+
- **When it takes effect:** the rig stores the setting when it is created from its spec, as it does its other top-level
|
|
1421
|
+
keys, and each seat launch reads it. A seat starts beneath the rig's slice at its next launch. OpenRig never moves or
|
|
1422
|
+
restarts a running seat for it. A rig created from a spec without the key keeps its seats ungrouped; to group them,
|
|
1423
|
+
add the key and create the rig from the spec again (`rig up <spec>` replaces a stopped rig of that name with a new
|
|
1424
|
+
one).
|
|
1425
|
+
- **Where grouping can't be applied:** the seat starts on today's path (the ungrouped scope in `openrigseats.slice` for a
|
|
1426
|
+
seat with `process_limits`, with every limit checked and applied as without grouping; the terminal server's process
|
|
1427
|
+
tree for a seat without), and the launch returns the warning `seat_slice requested, grouping not applied: <reason>`.
|
|
1428
|
+
Grouping never refuses a launch. That covers a host without systemd or cgroup v2, a user manager that won't start
|
|
1429
|
+
the scope (a masked slice, for example), a rig name whose slice name would exceed 255 characters, and a grouped scope
|
|
1430
|
+
that fails after its check passed. The seat starts again on the ungrouped path only when its command is confirmed not
|
|
1431
|
+
to have started; an unconfirmed start warns and stands, without another start. The next launch tries the rig's slice again.
|
|
1432
|
+
- **Status:** `rig seat status` reports `process_limits` as before; the scope it names sits beneath the rig's slice when
|
|
1433
|
+
the seat is grouped. To see a seat's placement, read its pane process's cgroup (`cat /proc/<pid>/cgroup`) or
|
|
1434
|
+
`systemctl --user status openrigseats-<rig>.slice`.
|
|
1435
|
+
|
|
1247
1436
|
### Status line throttle (`runtime: claude-code`)
|
|
1248
1437
|
|
|
1249
1438
|
Claude Code runs a seat's status line on each update of its conversation, and each run starts Node for OpenRig's
|
|
@@ -1754,7 +1943,8 @@ spec can pass `rig spec validate` and then fail at preflight or import. Run
|
|
|
1754
1943
|
7. Terminal nodes require the exact triple: `runtime: terminal`, `agent_ref: builtin:terminal`, `profile: none`.
|
|
1755
1944
|
8. `agent_ref` must start with `local:` (relative) or `path:` (absolute), except `builtin:terminal`.
|
|
1756
1945
|
9. `local:` refs must be relative paths. `path:` refs must be absolute paths.
|
|
1757
|
-
10. `restore_policy` must be one of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`.
|
|
1946
|
+
10. `restore_policy` must be one of: `resume_if_possible`, `relaunch_fresh`, `checkpoint_only`. `keep_alive`, when
|
|
1947
|
+
present, must be `true` or `false`.
|
|
1758
1948
|
11. Pod-local edges use unqualified member IDs. Cross-pod edges use `pod.member` format.
|
|
1759
1949
|
12. Cross-pod edges must reference different pods.
|
|
1760
1950
|
13. Edge kinds must be one of: `delegates_to`, `spawned_by`, `can_observe`, `collaborates_with`, `escalates_to`.
|