@openrig/cli 0.7.18 → 0.7.19
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 -6
- package/daemon/assets/claude-hook-bridge.cjs +146 -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/README.md +1 -1
- package/daemon/assets/plugins/openrig-core/hooks/claude.json +14 -14
- package/daemon/assets/plugins/openrig-core/hooks/scripts/activity-relay.cjs +43 -22
- package/daemon/assets/plugins/openrig-core/hooks/scripts/refocus.cjs +1 -0
- package/daemon/assets/plugins/openrig-core/skills/mission-slice-sop/SKILL.md +1 -1
- package/daemon/assets/plugins/openrig-core/skills/refocusing/scripts/trace-to-root.py +70 -2
- package/daemon/assets/skills/rigs/SKILL.md +40 -19
- 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 +16 -7
- package/daemon/context-packs/reference/getting-started.md +9 -4
- package/daemon/context-packs/reference/manifest.yaml +1 -1
- package/daemon/context-packs/reference/rig-spec.md +56 -26
- package/daemon/context-packs/reference/whats-new.md +82 -11
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-cmux/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-herdr/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-skills/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-software-factory/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-upgrade/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-bundles-and-shareable-artifacts/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/rig-lifecycle/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/session-source-fork/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/specification-system/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/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/SKILL.md +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 +70 -2
- 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 +9 -0
- package/daemon/dist/adapters/claude-code-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-code-adapter.js +41 -4
- package/daemon/dist/adapters/claude-code-adapter.js.map +1 -1
- package/daemon/dist/adapters/claude-resume.d.ts +2 -0
- package/daemon/dist/adapters/claude-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/claude-resume.js +3 -1
- package/daemon/dist/adapters/claude-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +5 -0
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +45 -10
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/kernel-authority.d.ts +7 -0
- package/daemon/dist/adapters/kernel-authority.d.ts.map +1 -1
- package/daemon/dist/adapters/kernel-authority.js +24 -1
- package/daemon/dist/adapters/kernel-authority.js.map +1 -1
- package/daemon/dist/adapters/pi-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-resume.js +5 -7
- package/daemon/dist/adapters/pi-resume.js.map +1 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts +5 -1
- package/daemon/dist/adapters/pi-runner-protocol.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.d.ts +34 -0
- package/daemon/dist/adapters/pi-runner.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runner.js +359 -26
- package/daemon/dist/adapters/pi-runner.js.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts +7 -1
- package/daemon/dist/adapters/pi-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/pi-runtime-adapter.js +29 -19
- package/daemon/dist/adapters/pi-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +54 -34
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +183 -57
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/db/all-migrations.d.ts.map +1 -1
- package/daemon/dist/db/all-migrations.js +6 -0
- package/daemon/dist/db/all-migrations.js.map +1 -1
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts +5 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.d.ts.map +1 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js +25 -0
- package/daemon/dist/db/migrations/171_seat_hook_bridge.js.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts +6 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.d.ts.map +1 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js +8 -0
- package/daemon/dist/db/migrations/174_session_launched_cwd.js.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts +3 -0
- package/daemon/dist/db/migrations/175_core_app_access.d.ts.map +1 -0
- package/daemon/dist/db/migrations/175_core_app_access.js +26 -0
- package/daemon/dist/db/migrations/175_core_app_access.js.map +1 -0
- package/daemon/dist/domain/activity-grants.d.ts.map +1 -1
- package/daemon/dist/domain/activity-grants.js +6 -4
- package/daemon/dist/domain/activity-grants.js.map +1 -1
- package/daemon/dist/domain/agent-activity-store.d.ts +23 -0
- package/daemon/dist/domain/agent-activity-store.d.ts.map +1 -1
- package/daemon/dist/domain/agent-activity-store.js +62 -5
- package/daemon/dist/domain/agent-activity-store.js.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.d.ts +4 -2
- package/daemon/dist/domain/claude-activity-hooks.d.ts.map +1 -1
- package/daemon/dist/domain/claude-activity-hooks.js +5 -3
- package/daemon/dist/domain/claude-activity-hooks.js.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts +64 -3
- package/daemon/dist/domain/claude-compaction-enforcer.d.ts.map +1 -1
- package/daemon/dist/domain/claude-compaction-enforcer.js +203 -6
- package/daemon/dist/domain/claude-compaction-enforcer.js.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts +3 -1
- package/daemon/dist/domain/compaction-restore-notice.d.ts.map +1 -1
- package/daemon/dist/domain/compaction-restore-notice.js +22 -3
- package/daemon/dist/domain/compaction-restore-notice.js.map +1 -1
- package/daemon/dist/domain/configured-account.d.ts +3 -0
- package/daemon/dist/domain/configured-account.d.ts.map +1 -0
- package/daemon/dist/domain/configured-account.js +10 -0
- package/daemon/dist/domain/configured-account.js.map +1 -0
- package/daemon/dist/domain/core-app-access.d.ts +51 -0
- package/daemon/dist/domain/core-app-access.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-access.js +107 -0
- package/daemon/dist/domain/core-app-access.js.map +1 -0
- package/daemon/dist/domain/core-app-job.d.ts +411 -0
- package/daemon/dist/domain/core-app-job.d.ts.map +1 -0
- package/daemon/dist/domain/core-app-job.js +537 -0
- package/daemon/dist/domain/core-app-job.js.map +1 -0
- package/daemon/dist/domain/current-park-arm.d.ts +4 -0
- package/daemon/dist/domain/current-park-arm.d.ts.map +1 -0
- package/daemon/dist/domain/current-park-arm.js +14 -0
- package/daemon/dist/domain/current-park-arm.js.map +1 -0
- package/daemon/dist/domain/cwd-resolution.d.ts +12 -0
- package/daemon/dist/domain/cwd-resolution.d.ts.map +1 -1
- package/daemon/dist/domain/cwd-resolution.js +21 -1
- package/daemon/dist/domain/cwd-resolution.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +9 -3
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/gateway/participants.d.ts +2 -0
- package/daemon/dist/domain/gateway/participants.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/participants.js +5 -1
- package/daemon/dist/domain/gateway/participants.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/message.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/message.js +37 -17
- package/daemon/dist/domain/gateway/slack/message.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js +1 -1
- package/daemon/dist/domain/gateway/slack/settled-asks.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts +1 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-delivery.js +2 -0
- package/daemon/dist/domain/gateway/slack/slack-delivery.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts +4 -0
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +26 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/hook-bridge.d.ts +345 -0
- package/daemon/dist/domain/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/domain/hook-bridge.js +547 -0
- package/daemon/dist/domain/hook-bridge.js.map +1 -0
- package/daemon/dist/domain/hosted-wake.d.ts +9 -0
- package/daemon/dist/domain/hosted-wake.d.ts.map +1 -1
- package/daemon/dist/domain/hosted-wake.js +45 -6
- package/daemon/dist/domain/hosted-wake.js.map +1 -1
- package/daemon/dist/domain/human-ask-attention.d.ts +10 -0
- package/daemon/dist/domain/human-ask-attention.d.ts.map +1 -0
- package/daemon/dist/domain/human-ask-attention.js +22 -0
- package/daemon/dist/domain/human-ask-attention.js.map +1 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts +4 -0
- package/daemon/dist/domain/mission-control/mission-control-action-log.d.ts.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js +8 -1
- package/daemon/dist/domain/mission-control/mission-control-action-log.js.map +1 -1
- package/daemon/dist/domain/mission-control/mission-control-write-contract.d.ts +10 -0
- 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 +64 -12
- package/daemon/dist/domain/mission-control/mission-control-write-contract.js.map +1 -1
- package/daemon/dist/domain/native-continuation-notice.d.ts +16 -0
- package/daemon/dist/domain/native-continuation-notice.d.ts.map +1 -0
- package/daemon/dist/domain/native-continuation-notice.js +79 -0
- package/daemon/dist/domain/native-continuation-notice.js.map +1 -0
- package/daemon/dist/domain/native-process-lineage.d.ts +16 -0
- package/daemon/dist/domain/native-process-lineage.d.ts.map +1 -1
- package/daemon/dist/domain/native-process-lineage.js +48 -3
- package/daemon/dist/domain/native-process-lineage.js.map +1 -1
- package/daemon/dist/domain/node-inventory.d.ts.map +1 -1
- package/daemon/dist/domain/node-inventory.js +27 -6
- package/daemon/dist/domain/node-inventory.js.map +1 -1
- package/daemon/dist/domain/node-launcher.d.ts +6 -0
- package/daemon/dist/domain/node-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/node-launcher.js +16 -2
- package/daemon/dist/domain/node-launcher.js.map +1 -1
- package/daemon/dist/domain/outbox-handler.d.ts +21 -3
- package/daemon/dist/domain/outbox-handler.d.ts.map +1 -1
- package/daemon/dist/domain/outbox-handler.js +88 -8
- package/daemon/dist/domain/outbox-handler.js.map +1 -1
- package/daemon/dist/domain/park-wake-text.d.ts +18 -0
- package/daemon/dist/domain/park-wake-text.d.ts.map +1 -1
- package/daemon/dist/domain/park-wake-text.js +44 -0
- package/daemon/dist/domain/park-wake-text.js.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts +3 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.d.ts.map +1 -1
- package/daemon/dist/domain/policies/idle-gate-qitem.js +15 -0
- package/daemon/dist/domain/policies/idle-gate-qitem.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +6 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +28 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/process-limits.d.ts +21 -11
- package/daemon/dist/domain/process-limits.d.ts.map +1 -1
- package/daemon/dist/domain/process-limits.js +74 -20
- package/daemon/dist/domain/process-limits.js.map +1 -1
- package/daemon/dist/domain/process-table.d.ts +15 -0
- package/daemon/dist/domain/process-table.d.ts.map +1 -1
- package/daemon/dist/domain/process-table.js +39 -0
- package/daemon/dist/domain/process-table.js.map +1 -1
- package/daemon/dist/domain/queue-erasure.d.ts.map +1 -1
- package/daemon/dist/domain/queue-erasure.js +3 -0
- package/daemon/dist/domain/queue-erasure.js.map +1 -1
- package/daemon/dist/domain/queue-repository.d.ts +60 -7
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +178 -36
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -0
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +29 -0
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -1
- package/daemon/dist/domain/queue-waiting.js +28 -3
- package/daemon/dist/domain/queue-waiting.js.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.d.ts +12 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +115 -14
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +8 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +48 -8
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/reconciler.d.ts +18 -2
- package/daemon/dist/domain/reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/reconciler.js +40 -0
- package/daemon/dist/domain/reconciler.js.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.d.ts.map +1 -1
- package/daemon/dist/domain/restore-attempt-receipt.js +3 -2
- package/daemon/dist/domain/restore-attempt-receipt.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts +5 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +73 -8
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-topology.d.ts +7 -1
- package/daemon/dist/domain/restore-topology.d.ts.map +1 -1
- package/daemon/dist/domain/restore-topology.js +21 -0
- package/daemon/dist/domain/restore-topology.js.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.d.ts +2 -3
- package/daemon/dist/domain/resume-metadata-refresher.d.ts.map +1 -1
- package/daemon/dist/domain/resume-metadata-refresher.js +6 -25
- package/daemon/dist/domain/resume-metadata-refresher.js.map +1 -1
- package/daemon/dist/domain/rig-repository.d.ts.map +1 -1
- package/daemon/dist/domain/rig-repository.js +7 -6
- package/daemon/dist/domain/rig-repository.js.map +1 -1
- package/daemon/dist/domain/rig-teardown.d.ts +16 -3
- package/daemon/dist/domain/rig-teardown.d.ts.map +1 -1
- package/daemon/dist/domain/rig-teardown.js +73 -9
- package/daemon/dist/domain/rig-teardown.js.map +1 -1
- package/daemon/dist/domain/rigspec-exporter.js +2 -2
- package/daemon/dist/domain/rigspec-exporter.js.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.d.ts +5 -0
- package/daemon/dist/domain/rigspec-instantiator.d.ts.map +1 -1
- package/daemon/dist/domain/rigspec-instantiator.js +17 -7
- package/daemon/dist/domain/rigspec-instantiator.js.map +1 -1
- package/daemon/dist/domain/rosters.d.ts +11 -0
- package/daemon/dist/domain/rosters.d.ts.map +1 -1
- package/daemon/dist/domain/rosters.js +21 -2
- package/daemon/dist/domain/rosters.js.map +1 -1
- package/daemon/dist/domain/runner-channel.d.ts +35 -3
- package/daemon/dist/domain/runner-channel.d.ts.map +1 -1
- package/daemon/dist/domain/runner-channel.js +177 -8
- package/daemon/dist/domain/runner-channel.js.map +1 -1
- package/daemon/dist/domain/runner-permissions.d.ts +26 -3
- package/daemon/dist/domain/runner-permissions.d.ts.map +1 -1
- package/daemon/dist/domain/runner-permissions.js +160 -39
- package/daemon/dist/domain/runner-permissions.js.map +1 -1
- package/daemon/dist/domain/scope/mission-parent.d.ts +19 -0
- package/daemon/dist/domain/scope/mission-parent.d.ts.map +1 -0
- package/daemon/dist/domain/scope/mission-parent.js +134 -0
- package/daemon/dist/domain/scope/mission-parent.js.map +1 -0
- package/daemon/dist/domain/scope/scope-audit.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-audit.js +8 -0
- package/daemon/dist/domain/scope/scope-audit.js.map +1 -1
- package/daemon/dist/domain/scope/types.d.ts +3 -1
- package/daemon/dist/domain/scope/types.d.ts.map +1 -1
- package/daemon/dist/domain/scope/types.js +5 -1
- package/daemon/dist/domain/scope/types.js.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.d.ts +14 -2
- package/daemon/dist/domain/seat-delivery-guard.d.ts.map +1 -1
- package/daemon/dist/domain/seat-delivery-guard.js +53 -14
- package/daemon/dist/domain/seat-delivery-guard.js.map +1 -1
- package/daemon/dist/domain/seat-handover-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-handover-service.js +9 -4
- package/daemon/dist/domain/seat-handover-service.js.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.d.ts +4 -3
- package/daemon/dist/domain/seat-identity-reconciler.d.ts.map +1 -1
- package/daemon/dist/domain/seat-identity-reconciler.js +40 -5
- package/daemon/dist/domain/seat-identity-reconciler.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +14 -6
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +104 -22
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.d.ts.map +1 -1
- package/daemon/dist/domain/seat-restart-in-place.js +4 -1
- package/daemon/dist/domain/seat-restart-in-place.js.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-runtime-switch-service.js +2 -0
- package/daemon/dist/domain/seat-runtime-switch-service.js.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts +1 -1
- package/daemon/dist/domain/seat-skill-apply.d.ts.map +1 -1
- package/daemon/dist/domain/seat-skill-apply.js +3 -2
- package/daemon/dist/domain/seat-skill-apply.js.map +1 -1
- package/daemon/dist/domain/session-registry.d.ts +5 -1
- package/daemon/dist/domain/session-registry.d.ts.map +1 -1
- package/daemon/dist/domain/session-registry.js +12 -1
- package/daemon/dist/domain/session-registry.js.map +1 -1
- package/daemon/dist/domain/session-transport.d.ts +40 -1
- package/daemon/dist/domain/session-transport.d.ts.map +1 -1
- package/daemon/dist/domain/session-transport.js +211 -10
- package/daemon/dist/domain/session-transport.js.map +1 -1
- package/daemon/dist/domain/shared-history-selection.d.ts.map +1 -1
- package/daemon/dist/domain/shared-history-selection.js +9 -5
- package/daemon/dist/domain/shared-history-selection.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +4 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +1 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +6 -4
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.d.ts.map +1 -1
- package/daemon/dist/domain/successor-session-launcher.js +10 -4
- package/daemon/dist/domain/successor-session-launcher.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts +35 -1
- package/daemon/dist/domain/terminal/herdr-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-adapter.js +231 -33
- package/daemon/dist/domain/terminal/herdr-adapter.js.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js +2 -1
- package/daemon/dist/domain/terminal/herdr-sessions.js.map +1 -1
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts +59 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js +210 -0
- package/daemon/dist/domain/terminal/rig-viewer-records.js.map +1 -0
- 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 +99 -4
- package/daemon/dist/domain/terminal/terminal-service.d.ts.map +1 -1
- package/daemon/dist/domain/terminal/terminal-service.js +556 -36
- package/daemon/dist/domain/terminal/terminal-service.js.map +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js +1 -1
- package/daemon/dist/domain/terminal/tile-layout.js.map +1 -1
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts +25 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.d.ts.map +1 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js +70 -0
- package/daemon/dist/domain/terminal/tmux-viewer-guard.js.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts +2 -0
- package/daemon/dist/domain/transcript-grep-worker.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep-worker.js +108 -0
- package/daemon/dist/domain/transcript-grep-worker.js.map +1 -0
- package/daemon/dist/domain/transcript-grep.d.ts +26 -0
- package/daemon/dist/domain/transcript-grep.d.ts.map +1 -0
- package/daemon/dist/domain/transcript-grep.js +90 -0
- package/daemon/dist/domain/transcript-grep.js.map +1 -0
- package/daemon/dist/domain/transcript-store.d.ts +8 -2
- package/daemon/dist/domain/transcript-store.d.ts.map +1 -1
- package/daemon/dist/domain/transcript-store.js +10 -60
- package/daemon/dist/domain/transcript-store.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +69 -2
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts +4 -0
- package/daemon/dist/domain/watchdog-delivery-receipts.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery-receipts.js +35 -2
- package/daemon/dist/domain/watchdog-delivery-receipts.js.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.d.ts +44 -0
- package/daemon/dist/domain/watchdog-delivery.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-delivery.js +60 -2
- package/daemon/dist/domain/watchdog-delivery.js.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.d.ts +12 -0
- package/daemon/dist/domain/watchdog-history-log.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-history-log.js +19 -1
- package/daemon/dist/domain/watchdog-history-log.js.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts +32 -0
- package/daemon/dist/domain/watchdog-jobs-repository.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-jobs-repository.js +78 -0
- package/daemon/dist/domain/watchdog-jobs-repository.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +17 -3
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +19 -5
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +1 -1
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +12 -0
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +64 -7
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.d.ts +2 -2
- package/daemon/dist/domain/workflow-step-trail-log.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-step-trail-log.js.map +1 -1
- package/daemon/dist/domain/workflow-types.d.ts +3 -1
- package/daemon/dist/domain/workflow-types.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-types.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +5 -1
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/lib/pane-envelope.d.ts +3 -0
- package/daemon/dist/lib/pane-envelope.d.ts.map +1 -1
- package/daemon/dist/lib/pane-envelope.js +3 -1
- package/daemon/dist/lib/pane-envelope.js.map +1 -1
- package/daemon/dist/mission-parent-surface.d.ts +2 -0
- package/daemon/dist/mission-parent-surface.d.ts.map +1 -0
- package/daemon/dist/mission-parent-surface.js +2 -0
- package/daemon/dist/mission-parent-surface.js.map +1 -0
- package/daemon/dist/routes/activity.d.ts +18 -1
- package/daemon/dist/routes/activity.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +47 -9
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/attention.d.ts.map +1 -1
- package/daemon/dist/routes/attention.js +194 -177
- package/daemon/dist/routes/attention.js.map +1 -1
- package/daemon/dist/routes/core-app.d.ts +10 -0
- package/daemon/dist/routes/core-app.d.ts.map +1 -0
- package/daemon/dist/routes/core-app.js +175 -0
- package/daemon/dist/routes/core-app.js.map +1 -0
- package/daemon/dist/routes/hook-bridge.d.ts +3 -0
- package/daemon/dist/routes/hook-bridge.d.ts.map +1 -0
- package/daemon/dist/routes/hook-bridge.js +158 -0
- package/daemon/dist/routes/hook-bridge.js.map +1 -0
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +14 -2
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/queue.d.ts +1 -1
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +8 -5
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/rigspec.js +1 -1
- package/daemon/dist/routes/rigspec.js.map +1 -1
- package/daemon/dist/routes/scope-audit.d.ts.map +1 -1
- package/daemon/dist/routes/scope-audit.js +7 -1
- package/daemon/dist/routes/scope-audit.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +30 -4
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +21 -2
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.js +2 -1
- package/daemon/dist/routes/startup.js.map +1 -1
- package/daemon/dist/routes/terminal.d.ts.map +1 -1
- package/daemon/dist/routes/terminal.js +47 -6
- package/daemon/dist/routes/terminal.js.map +1 -1
- package/daemon/dist/routes/transcripts.d.ts.map +1 -1
- package/daemon/dist/routes/transcripts.js +16 -1
- package/daemon/dist/routes/transcripts.js.map +1 -1
- package/daemon/dist/routes/watchdog.d.ts.map +1 -1
- package/daemon/dist/routes/watchdog.js +3 -2
- package/daemon/dist/routes/watchdog.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +5 -0
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +2 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +11 -0
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +90 -33
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/dist/terminal-viewer-guard-surface.d.ts +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.d.ts.map +1 -0
- package/daemon/dist/terminal-viewer-guard-surface.js +2 -0
- package/daemon/dist/terminal-viewer-guard-surface.js.map +1 -0
- package/daemon/docs/reference/agent-startup-guide.md +4 -1
- package/daemon/docs/reference/claude-status-line.md +3 -2
- package/daemon/docs/reference/community-harness-examples/cursor/openrig-cursor-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/dsh/README.md +1 -1
- package/daemon/docs/reference/community-harness-examples/dsh/openrig-dsh-runner.mjs +186 -30
- package/daemon/docs/reference/community-harness-examples/hermes/openrig-hermes-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openclaw/openrig-openclaw-launch +6 -0
- package/daemon/docs/reference/community-harness-examples/openshell/README.md +2 -0
- package/daemon/docs/reference/community-harness-examples/pi-tui/openrig-pi-tui-launch +6 -0
- package/daemon/docs/reference/community-harness-presets.md +6 -5
- package/daemon/docs/reference/core-app.md +212 -0
- package/daemon/docs/reference/daemon-http-clients.md +6 -0
- package/daemon/docs/reference/getting-started.md +9 -4
- package/daemon/docs/reference/harness-runner-contract.md +50 -4
- package/daemon/docs/reference/hosted-members.md +21 -1
- package/daemon/docs/reference/quickstart.md +4 -3
- package/daemon/docs/reference/rig-spec.md +56 -26
- package/daemon/docs/reference/rosters.md +8 -0
- package/daemon/docs/reference/sdlc-conventions.md +42 -5
- package/daemon/docs/reference/seat-delivery.md +87 -6
- package/daemon/docs/reference/terminal-sessions.md +99 -1
- package/daemon/docs/reference/whats-new.md +82 -11
- package/daemon/specs/rigs/launch/factory/guidance/lead-first-move.md +4 -3
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +13 -3
- package/daemon/specs/rigs/launch/starter/guidance/lead-first-move.md +4 -3
- package/dist/ask-wake.d.ts.map +1 -1
- package/dist/ask-wake.js +8 -1
- package/dist/ask-wake.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/commands/archive.js +1 -1
- package/dist/commands/archive.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +7 -0
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/down.d.ts.map +1 -1
- package/dist/commands/down.js +5 -0
- package/dist/commands/down.js.map +1 -1
- package/dist/commands/ps.d.ts +2 -1
- package/dist/commands/ps.d.ts.map +1 -1
- package/dist/commands/ps.js +9 -4
- package/dist/commands/ps.js.map +1 -1
- package/dist/commands/queue.js +4 -4
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/roster.d.ts +5 -0
- package/dist/commands/roster.d.ts.map +1 -1
- package/dist/commands/scope.d.ts.map +1 -1
- package/dist/commands/scope.js +346 -9
- package/dist/commands/scope.js.map +1 -1
- package/dist/commands/seat.d.ts.map +1 -1
- package/dist/commands/seat.js +90 -8
- package/dist/commands/seat.js.map +1 -1
- package/dist/commands/send.d.ts +2 -0
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +3 -1
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/terminal.d.ts +56 -0
- package/dist/commands/terminal.d.ts.map +1 -1
- package/dist/commands/terminal.js +194 -4
- package/dist/commands/terminal.js.map +1 -1
- package/dist/commands/transcript.js +1 -1
- package/dist/commands/transcript.js.map +1 -1
- package/dist/commands/unarchive.js +1 -1
- package/dist/commands/unarchive.js.map +1 -1
- package/dist/commands/workflow-follow.d.ts +3 -1
- package/dist/commands/workflow-follow.d.ts.map +1 -1
- package/dist/commands/workflow-follow.js +25 -6
- package/dist/commands/workflow-follow.js.map +1 -1
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +5 -1
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +14 -4
- package/dist/commands/workflow.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +11 -0
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/lib/scope/mission-composition.d.ts +1 -0
- package/dist/lib/scope/mission-composition.d.ts.map +1 -1
- package/dist/lib/scope/mission-composition.js +14 -0
- package/dist/lib/scope/mission-composition.js.map +1 -1
- package/dist/lib/scope/scope-audit.d.ts.map +1 -1
- package/dist/lib/scope/scope-audit.js +8 -0
- package/dist/lib/scope/scope-audit.js.map +1 -1
- package/dist/lib/scope/scope-fs.d.ts +10 -0
- package/dist/lib/scope/scope-fs.d.ts.map +1 -1
- package/dist/lib/scope/scope-fs.js +60 -0
- package/dist/lib/scope/scope-fs.js.map +1 -1
- package/dist/lib/scope/types.d.ts +3 -1
- package/dist/lib/scope/types.d.ts.map +1 -1
- package/dist/lib/scope/types.js +5 -1
- package/dist/lib/scope/types.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +18 -8
- package/dist/mcp-server.js.map +1 -1
- package/dist/restore-packet/packet-writer.d.ts.map +1 -1
- package/dist/restore-packet/packet-writer.js +8 -5
- package/dist/restore-packet/packet-writer.js.map +1 -1
- package/dist/terminal-window.d.ts +2 -1
- package/dist/terminal-window.d.ts.map +1 -1
- package/dist/terminal-window.js +567 -41
- package/dist/terminal-window.js.map +1 -1
- package/package.json +1 -1
- package/tui/dist/daemon-client.d.ts +4 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +22 -5
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +6 -3
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/navigator.d.ts +1 -1
- package/tui/dist/navigator.d.ts.map +1 -1
- package/tui/dist/navigator.js +4 -2
- package/tui/dist/navigator.js.map +1 -1
- package/tui/dist/pulse/render-pulse.d.ts.map +1 -1
- package/tui/dist/pulse/render-pulse.js +7 -14
- package/tui/dist/pulse/render-pulse.js.map +1 -1
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +29 -21
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/stylize.d.ts.map +1 -1
- package/tui/dist/stylize.js +3 -3
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/terminals/terminal-model.d.ts +1 -0
- package/tui/dist/terminals/terminal-model.d.ts.map +1 -1
- package/tui/dist/terminals/terminal-model.js +4 -2
- package/tui/dist/terminals/terminal-model.js.map +1 -1
- package/tui/dist/types.d.ts +1 -0
- package/tui/dist/types.d.ts.map +1 -1
- package/tui/dist/visual-layout.d.ts +3 -0
- package/tui/dist/visual-layout.d.ts.map +1 -1
- package/tui/dist/visual-layout.js +17 -0
- package/tui/dist/visual-layout.js.map +1 -1
- package/ui/dist/assets/{index-1O1f3A7K.js → index-B-sMy02c.js} +107 -107
- package/ui/dist/assets/{index-BX8TUZ0E.css → index-DiN7RwWg.css} +1 -1
- package/ui/dist/index.html +2 -2
|
@@ -937,7 +937,7 @@ directory's `CLAUDE.md`, including blocks written by other rigs.
|
|
|
937
937
|
| `advisor` | string | no | — | Claude-only Advisor model for this seat. Overrides the AgentSpec profile/default; blank or non-string values are ignored with an advisory. |
|
|
938
938
|
| `claude_mcp` | `none` | no | normal loading | Claude members only. Disable MCP server loading for this agent on every launch and resume. Omit the field to keep Claude's normal configuration; see [Claude MCP loading](#claude-mcp-loading-runtime-claude-code). |
|
|
939
939
|
| `launch_wrapper` | string[] | no | — | Local `pi`, `codex`, `claude-code` and community-harness members; runner presets must declare wrapper support. Literal argument prefix applied to the native executable and its arguments on fresh launch, relaunch, rebuild, resume, fork, restore and handover; `[]` explicitly clears a stored wrapper when re-applying an authored spec, while omitting the key leaves an existing seat's stored choice unchanged. See [Launch wrapper](#launch-wrapper-runtime-pi-and-codex). |
|
|
940
|
-
| `process_limits` | map | no | — | Linux/systemd hosts only, opt-in for this seat. `{ tasks_max: N }` (an integer from 1 to 4194304)
|
|
940
|
+
| `process_limits` | map | no | — | Linux/systemd hosts only, opt-in for this seat, each key on its own. `{ tasks_max: N }` (an integer from 1 to 4194304) and `{ memory_max: <size> }` (an integer number of bytes, or `<n>K`, `M`, `G` or `T`, base 1024; a whole number of MiB up to 2^53 − 2^20 bytes) put the seat's own processes in a systemd user scope of their own with `TasksMax=N` and `MemoryMax=<bytes>`; both keys together share that one scope. The other seats, the daemon and the terminal server stay outside it. Applies to the seat's new launches; a fresh launch the host can't cap is not started, and a recovery goes ahead with a warning. Any other key (a CPU limit) is refused. `{}` clears the stored limits when re-applying an authored spec, a mapping replaces them whole, and omitting the key leaves them unchanged. Valid on terminal members too. See [Process limits](#process-limits-linuxsystemd). |
|
|
941
941
|
| `permission_policy` | string | no | — | Member-level permission policy; overrides the rig's. Not valid on terminal members. |
|
|
942
942
|
| `env` | map | no | — | Launch environment for this seat, laid over the rig's `env`. Same rules as the rig-level field. Valid on terminal members too. See "Launch environment" below. |
|
|
943
943
|
| `agent_file` | string | no | — | Claude members only. A Claude agent definition (a `.md` file with `name` in its frontmatter) for this seat. It's copied into the seat's own storage and launched as `--agent openrig:<name>`. A path beside the spec: no `..`, not absolute. |
|
|
@@ -1102,7 +1102,8 @@ members:
|
|
|
1102
1102
|
### Process limits (Linux/systemd)
|
|
1103
1103
|
|
|
1104
1104
|
Set `process_limits` on a member to cap how many tasks (processes and threads) that seat's own processes may hold at
|
|
1105
|
-
once, so a seat that forks without end hits its own limit
|
|
1105
|
+
once, how much memory they may be charged, or both, so a seat that forks or allocates without end hits its own limit
|
|
1106
|
+
instead of the host's:
|
|
1106
1107
|
|
|
1107
1108
|
```yaml
|
|
1108
1109
|
members:
|
|
@@ -1113,13 +1114,16 @@ members:
|
|
|
1113
1114
|
cwd: .
|
|
1114
1115
|
process_limits:
|
|
1115
1116
|
tasks_max: 512
|
|
1117
|
+
memory_max: 4G
|
|
1116
1118
|
```
|
|
1117
1119
|
|
|
1118
|
-
- **Opt-in, per seat, no default:** Only a member with `process_limits.tasks_max`
|
|
1119
|
-
|
|
1120
|
-
|
|
1120
|
+
- **Opt-in, per seat and per key, no default:** Only a member with `process_limits.tasks_max` or
|
|
1121
|
+
`process_limits.memory_max` gets a limit, and only the keys it sets. Without the map, a seat launches exactly as
|
|
1122
|
+
before. `tasks_max` and `memory_max` are the only supported keys; any other key, such as a CPU limit, is refused by
|
|
1123
|
+
name rather than accepted and ignored.
|
|
1121
1124
|
- **The boundary:** The seat's pane command starts in a transient `systemd-run --user --scope` of its own, in
|
|
1122
|
-
`openrigseats.slice`, with `TasksMax=N` as its only
|
|
1125
|
+
`openrigseats.slice`, with `TasksMax=N` and/or `MemoryMax=<bytes>` as its only limits (one scope for both). The
|
|
1126
|
+
seat's processes leave the terminal server's scope:
|
|
1123
1127
|
a limit an operator put on that scope no longer covers this seat. The other seats, the daemon and the terminal server
|
|
1124
1128
|
stay where they were, outside this seat's limit. Processes the seat itself starts through `systemd-run --user` land
|
|
1125
1129
|
in units of their own and are not counted against it. The limit guards the host against a seat's runaway forks; it
|
|
@@ -1128,6 +1132,13 @@ members:
|
|
|
1128
1132
|
seat's scope and its limit. The limit is also cooperative: a process in the seat that reaches the user manager can
|
|
1129
1133
|
raise its own scope's `TasksMax` with `systemctl --user set-property`. The short-lived terminal OpenRig opens to
|
|
1130
1134
|
check that a Claude conversation can be resumed runs without the seat's identity, outside any seat scope.
|
|
1135
|
+
- **What `memory_max` counts:** the memory charged to the seat's scope (`memory.max`): its processes' RAM and the page
|
|
1136
|
+
cache their file reads and writes bring in. Swap is not limited (no `MemorySwapMax=` is set): on a host with swap, a
|
|
1137
|
+
seat at its limit is reclaimed and may swap, which shows as a limit hit, not as an OOM kill. When reclaim can't keep
|
|
1138
|
+
it under the limit, the kernel's OOM killer kills a process in the seat's scope. With `OOMPolicy=continue` (systemd
|
|
1139
|
+
253 or later, set when the host takes it) the rest of the scope goes on; on an older systemd, that first OOM kill
|
|
1140
|
+
stops the seat's whole scope, so the whole seat ends. Pages a process was charged before it entered the scope stay
|
|
1141
|
+
charged where they were. The panes the terminal server forks (above) are outside this limit too.
|
|
1131
1142
|
- **A fresh launch that can't get the limit is not started:** A fresh launch (first launch by `rig up`, `rig seat launch
|
|
1132
1143
|
--fresh`, and a relaunch without a snapshot; a first start through the restore path, such as a never-occupied seat's
|
|
1133
1144
|
start or auto-rehydrate, is a recovery, below) says it couldn't apply the limit instead of starting the seat without
|
|
@@ -1135,23 +1146,29 @@ members:
|
|
|
1135
1146
|
- `process_limits_unsupported` for a positive inability of the host: not Linux, `systemd-run` or `systemctl` not on
|
|
1136
1147
|
the daemon's `PATH`, a systemd too old for seat scopes (it needs 236 or later), no user manager running for the
|
|
1137
1148
|
user (no socket to reach it), or a throwaway scope with no cgroup v2 path, no `pids.max`, or a `pids.max` that is
|
|
1138
|
-
not the value (the pids controller is not delegated)
|
|
1149
|
+
not the value (the pids controller is not delegated), no `memory.max`, or a `memory.max` that is not the value (the
|
|
1150
|
+
memory controller is not delegated), or a `MemoryMax=` systemd refused. The seat has one scope, so a host that
|
|
1151
|
+
supports only one of the requested keys refuses the whole seat; `processLimits.limit` (`tasks_max` or
|
|
1152
|
+
`memory_max`) names the one it can't give when it is known;
|
|
1139
1153
|
- `process_limits_setup` when this setup can't use a scope, with the way out: no `XDG_RUNTIME_DIR` and no
|
|
1140
1154
|
`/run/user/<uid>` (start the daemon with `XDG_RUNTIME_DIR` set, or as a systemd user service), coreutils' `timeout`
|
|
1141
1155
|
not on the daemon's `PATH`, `terminal.inherit_tmux_environment` on (a seat with a limit needs the scoped launch
|
|
1142
1156
|
environment: set it to false), a daemon that gives seats no launch environment, or a seat placed in an environment
|
|
1143
1157
|
guest (its agent runs in the guest, and a scope on this host would hold only the local viewer);
|
|
1144
|
-
- `process_limits_unverified` (retryable) when it isn't known either way: the user manager
|
|
1145
|
-
refused the connection (starting or restarting), the probe read nothing
|
|
1146
|
-
|
|
1158
|
+
- `process_limits_unverified` (retryable, save where said below) when it isn't known either way: the user manager
|
|
1159
|
+
timed out or its socket refused the connection (starting or restarting), the probe read nothing (no `pids.max` or
|
|
1160
|
+
`memory.max` it asked for) or output it could not understand, the probe command ended with SIGKILL (exit 137)
|
|
1161
|
+
under the requested `MemoryMax=` (the process and the cause aren't confirmed: the OOM killer at that limit, the
|
|
1162
|
+
host's OOM killer, systemd-oomd or a manual kill look the same; a larger value may help; `processLimits.limit` is
|
|
1163
|
+
`memory_max`), an error not recognized, a launch setting that couldn't be read, a failed check from the last minute (reported with its age), or a scope start the launch
|
|
1147
1164
|
didn't see in time (its new session is removed, by the identity tmux printed when it made it, and the seat is never
|
|
1148
1165
|
started again without the limit; when it can't be removed, the refusal says the session may still be running and
|
|
1149
1166
|
how to stop it, without a retry, and its `processLimits` carries `possiblyRunning: true` and `retryable` false). What
|
|
1150
1167
|
was seen of the command is said apart from what became of its terminal: only a start that failed before the command
|
|
1151
1168
|
(the pane died with its start marker still pending) reads "not started" and retryable. When the command started in
|
|
1152
1169
|
the scope but its process wasn't seen there in time, when the time ran out with the pane still alive (its wrapper
|
|
1153
|
-
can still start the command after the last look), or when its pane or its start marker couldn't be read, the
|
|
1154
|
-
command started (or may have), what became of its terminal, and suggests no retry:
|
|
1170
|
+
can still start the command after the last look), or when its pane or its start marker couldn't be read, the
|
|
1171
|
+
refusal says the command started (or may have), what became of its terminal, and suggests no retry:
|
|
1155
1172
|
`processLimits.commandStarted` is `true` or `"unknown"`, and `retryable` is false. A capped launch whose `new-session`
|
|
1156
1173
|
printed no pane and whose session can't be read back is refused the same possibly-running way (a session positively
|
|
1157
1174
|
absent stays `session_not_created`). The first launch after that minute checks again, so a setup fixed meanwhile is
|
|
@@ -1159,7 +1176,7 @@ members:
|
|
|
1159
1176
|
- `process_limits_invalid` when the seat's stored value can't be read: only this seat is affected, and the value is
|
|
1160
1177
|
kept until a re-applied spec replaces or clears it.
|
|
1161
1178
|
Over HTTP, `process_limits_unverified` answers 409 and the other three 422, with `retryable` and `processLimits` (the
|
|
1162
|
-
kind, the reason and the
|
|
1179
|
+
kind, the reason, the requested values and, when known, the `limit`). A daemon that is not itself a systemd user service is no reason: the probe
|
|
1163
1180
|
decides. To launch an existing seat as before, re-apply its spec with `process_limits: {}`: with the key just
|
|
1164
1181
|
removed, the stored limit stays (see "Persistence and clear").
|
|
1165
1182
|
- **A recovery goes ahead without it, and says so:** A handover, a runtime switch and a restart in place choose their
|
|
@@ -1172,32 +1189,45 @@ members:
|
|
|
1172
1189
|
seat and then fails for its limit. A scope failure late in the path (after the check) starts the seat again without
|
|
1173
1190
|
the limit only when the seat's command is seen not to have started in the scope; when that can't be told (the start
|
|
1174
1191
|
wasn't seen in time, or the command started in the scope and ended), nothing is run a second time, and the warning
|
|
1175
|
-
reads `state: "unknown"
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1192
|
+
reads `state: "unknown"`, with `commandStarted` (`true` or `"unknown"`) as in the fresh refusal; its `retryable` only
|
|
1193
|
+
says the limit check may pass at the next fresh launch, since nothing is refused or run again. A restart in place
|
|
1194
|
+
keeps the process tree it has (and a limit already applied to it); when that process's limit can't be read back, its
|
|
1195
|
+
warning reads `unknown`. A bare agent pane's respawn carries no seat environment: it keeps the limit, in a new scope,
|
|
1196
|
+
only when the running process reads back as `applied` and a new scope can be made; otherwise it comes back without
|
|
1197
|
+
the limit, with the warning.
|
|
1179
1198
|
- **When it applies:** Each launch reads the stored value and starts the seat's new pane in a new scope. A seat that is
|
|
1180
1199
|
already running is never moved or stopped: a changed value applies at that seat's next launch. A daemon restart
|
|
1181
1200
|
relaunches nothing, so running seats keep the scope they started in.
|
|
1182
1201
|
- **Status:** `rig seat status <seat>` reads the limit back from the seat's running process, never from the spec
|
|
1183
1202
|
alone. It reads the seat's own pane or, when no pane is recorded for the seat, its session's active pane, and says
|
|
1184
|
-
which (`readFrom`). The states: `applied` (its process is in a seat scope whose `pids.max`
|
|
1185
|
-
not applied" (known not under it: not running, launched before the key or by
|
|
1186
|
-
`pids.max`, or placed in an environment guest, whose pane holds only a local viewer, with the reason), `unsupported`
|
|
1203
|
+
which (`readFrom`). The states: `applied` (its process is in a seat scope whose `pids.max` and `memory.max` are the
|
|
1204
|
+
values, each one requested), "requested, not applied" (known not under it: not running, launched before the key or by
|
|
1205
|
+
a recovery without it, another `pids.max` or `memory.max`, the reason naming which, or placed in an environment guest, whose pane holds only a local viewer, with the reason), `unsupported`
|
|
1187
1206
|
(not under it, and the host positively can't make the scope), `unknown` (the readback failed), "stored value invalid"
|
|
1188
1207
|
(the stored request can't be read; only this seat is affected, and the value is kept). A seat with no limit stored
|
|
1189
1208
|
shows nothing and is not read at all, so a seat whose limit was cleared while it ran stays in its launch's scope,
|
|
1190
|
-
unreported, until its next fresh launch starts it without one.
|
|
1209
|
+
unreported, until its next fresh launch starts it without one. With `tasks_max`, it also shows `pids.current` and how many times a fork hit the limit (`pids.events` `max`). With `memory_max`, apart from those, it shows `memory.current`, how many times the seat's usage was about to go over the limit (`memory.events` `max`), and how many processes in its scope an OOM killer killed (`memory.events` `oom_kill`: any OOM killer, so a kill there is not proof that this limit ended the seat). Never
|
|
1191
1210
|
stop a seat's scope by hand: that kills every process in it; use `rig seat stop`. Stopping a seat ends its session,
|
|
1192
1211
|
not its scope: a process the seat left running detached stays in that old scope, under its limit, until it exits,
|
|
1193
1212
|
and the status, which reads only the running seat's pane, doesn't show it.
|
|
1194
1213
|
- **Values:** `tasks_max` takes any count from 1 (systemd's own minimum) to 4194304 (the kernel's `PID_MAX_LIMIT`). No
|
|
1195
1214
|
floor is imposed for every runtime: how many tasks a harness needs is the operator's choice, and a fork past the
|
|
1196
|
-
limit fails visibly as a limit hit.
|
|
1215
|
+
limit fails visibly as a limit hit. `memory_max` takes an integer number of bytes or a string `<n>K`, `<n>M`, `<n>G`
|
|
1216
|
+
or `<n>T` (base 1024, as systemd reads it; `512M` and `536870912` are the same value), and it must be a whole number
|
|
1217
|
+
of MiB: the kernel keeps `memory.max` in pages and reads back the page multiple below, so only a MiB multiple reads
|
|
1218
|
+
back exactly as asked on every page size. There is no floor in the spec: the throwaway `/bin/sh` that proves the
|
|
1219
|
+
limit inside a scope with it decides the low end. When the probe ends with SIGKILL at launch, the refusal is
|
|
1220
|
+
`process_limits_unverified` with `limit: memory_max`, saying what was seen and that a larger value may help
|
|
1221
|
+
(`process_limits_unverified`, above). Its top is 2^53 − 2^20 bytes (9007199253692416), the largest MiB multiple the daemon
|
|
1222
|
+
keeps exactly. As for `tasks_max`, no floor is imposed for every runtime, and the OOM kills show in the status. A
|
|
1223
|
+
percentage, `infinity`, 0, a negative or fractional value, a lowercase or unknown suffix, an empty string, a number
|
|
1224
|
+
of bytes written as a string, a value that isn't a whole number of MiB or one above that top is refused by name.
|
|
1197
1225
|
- **Persistence and clear:** On new seats, absent or `process_limits: {}` stores no limit. Applying an authored spec to
|
|
1198
|
-
an existing seat retains the stored
|
|
1199
|
-
|
|
1200
|
-
|
|
1226
|
+
an existing seat retains the stored limits when the key is absent, clears both with `process_limits: {}`, and
|
|
1227
|
+
replaces them whole otherwise (`{ tasks_max: 8 }` over a stored `{ tasks_max: 8, memory_max: 4G }` clears the memory
|
|
1228
|
+
limit); the new value is stored before that launch. First-start retry refuses a changed limit, and keeps a stored
|
|
1229
|
+
value it can't read as it is (that launch reports `process_limits_invalid`). Export includes the configured value,
|
|
1230
|
+
with `memory_max` in bytes. A
|
|
1201
1231
|
seat whose stored value can't be read is exported without `process_limits`, and the rest of the rig exports as usual.
|
|
1202
1232
|
The stored value stays as it is, and the export names the seat: a `# Not carried:` line at the top of the YAML (which
|
|
1203
1233
|
`rig export` prints) with how to fix or clear it, and the `X-OpenRig-Export-Warnings` header on YAML and JSON (which
|
|
@@ -1226,7 +1256,7 @@ members:
|
|
|
1226
1256
|
- **Credentials:** Provision each seat separately, or put the provider's key variable in `recovery.provider_auth_env_allowlist` (for example `ANTHROPIC_API_KEY` or `MISTRAL_API_KEY`). The allowlist accepts the key variable of every provider in OpenRig's OMP provider map, from `anthropic` through `litellm`. A seat receives a key only when its `model` is written as `provider/id`, such as `anthropic/claude-sonnet-4-5`. Short names such as `opus` pass no key. A provider whose key is scoped to one endpoint also accepts that endpoint's variable: `anthropic`, `openai` and `litellm` each take their `<PROVIDER>_BASE_URL` — `ANTHROPIC_BASE_URL`, `OPENAI_BASE_URL`, `LITELLM_BASE_URL`. The allowlist admits each variable on its own, so an endpoint named without its key is admitted too, which suits a keyless local proxy. The launch gate admits these endpoint names for OMP seats; the match against the seat's declared `provider/id` happens at the OMP child, which forwards a matching endpoint already in the runner's environment just as it forwards a key. OMP also reads the launch directory's `.env`, so use a trusted working directory.
|
|
1227
1257
|
- **Approval posture:** The default floor is `--approval-mode always-ask`. Because the runner is headless, OMP approval requests are cancelled and the seat stays in needing-attention after the turn ends, until the next agent run starts. A `full_bypass` permission policy selects `--approval-mode yolo`.
|
|
1228
1258
|
- **Model errors:** Errors are printed in the pane. A completed assistant failure with a numeric `errorStatus` of 408, 429, 500, 502, 503, 504, or 529 returns to idle at terminal `agent_end`, allowing an ordinary retry. Until that terminal boundary it stays in needing-attention. Intermediate `agent_end(isTerminal:false)` events do not release attention. A statusless failed retry summary retains that classification only when its attempt matches an announced retry and its final error exactly matches the latest typed transient assistant failure in that attempt. New assistant/turn boundaries invalidate the previous failure; unmatched summaries remain runtime errors. Rejected prompts, auth/configuration failures, exhausted retries without a typed transient status, and untyped errors (including text such as `529 overloaded`) retain attention until the next agent run starts. The runner does not classify diagnostic text. A transient failure does not clear a denied approval or another unresolved runtime failure in the same turn.
|
|
1229
|
-
- **Restore:** OMP creates its session file after the first persisted turn. A new seat with no persisted turn has no resume token, so a restore leaves it awaiting a decision. Start it fresh with `rig seat launch <seat> --fresh --reason "<why>"`, the command `rig start` and `rig up --existing` print for that seat. After that file exists, OpenRig restores that exact session file. If a full rig restore leaves an OMP seat in `attention_required` or `failed`, `rig seat clear-attention` cannot yet reconcile it to `operator_recovered`, even with `--reason`, because restore reconciliation only verifies Claude Code and Codex processes ([#41](https://github.com/mvschwarz/openrig/issues/41)). Relaunch that seat with `rig seat launch <seat> --fresh --reason "<why>"`, or restore it manually. `rig seat launch --fresh` refuses a managed seat whose pane is still running unless you add `--stop`, which ends what is running there; add it only when you mean to replace that session.
|
|
1259
|
+
- **Restore:** OMP creates its session file after the first persisted turn. A new seat with no persisted turn has no resume token, so a restore leaves it awaiting a decision. Start it fresh with `rig seat launch <seat> --fresh --reason "<why>"`, the command `rig start` and `rig up --existing` print for that seat. After that file exists, OpenRig restores that exact session file. If a full rig restore leaves an OMP seat in `attention_required` or `failed`, `rig seat clear-attention` cannot yet reconcile it to `operator_recovered`, even with `--reason`, because restore reconciliation only verifies Claude Code and Codex processes ([#41](https://github.com/mvschwarz/openrig/issues/41)). Relaunch that seat with `rig seat launch <seat> --fresh --reason "<why>"`, or restore it manually. `rig seat launch --fresh` refuses a managed seat whose pane is still running unless you add `--stop`, which ends what is running there; add it only when you mean to replace that session. A pane that holds only a shell after a failed start (the harness never started, or returned to the shell, and the pane is an idle shell now) is replaced without `--stop`.
|
|
1230
1260
|
|
|
1231
1261
|
### Terminal Nodes
|
|
1232
1262
|
|
|
@@ -118,6 +118,14 @@ says whether it takes requests isn't known, and the write goes ahead. A `takes_r
|
|
|
118
118
|
or a note that breaks the label rule or comes without `takes_requests: false`, doesn't stop the roster loading:
|
|
119
119
|
`takes_requests_problem` says why, and an unusable note leaves the flag in place.
|
|
120
120
|
|
|
121
|
+
A member can also carry `app`, which client the participant uses (such as `chatgpt`, `claude`, `claude-code`, `codex`,
|
|
122
|
+
`hermes`, `openrig` or `studio`), and `kind`, what kind of participant it is (`persistent` or `shared`), as the service
|
|
123
|
+
that issued its access recorded them. Each is a short lowercase token: a letter, then up to 31 lowercase letters, digits
|
|
124
|
+
or hyphens. OpenRig passes the value through as recorded and doesn't keep its own list: the issuing service owns the
|
|
125
|
+
values. `rig_team` shows them as `participant: { app, kind }` on that member's entry, apart from a seat's own `kind`
|
|
126
|
+
(its node kind). Absent or empty is unknown; neither is inferred from a name or label. A value that isn't a token is
|
|
127
|
+
dropped on its own, `participant_problem` (`participantProblem` in `rig_team`) says why, and the roster still loads.
|
|
128
|
+
|
|
121
129
|
The roster at `rosters/network-<rig>.json` names that rig's team. Without that file, the roster whose `id` is the
|
|
122
130
|
rig's name does (the `<rig>.json` the starter and factory leads write; the first by file name if several do). For an
|
|
123
131
|
external caller, `rig_team` reports its `name` as `rig.displayName`, beside the rig's own name. The name follows the
|
|
@@ -150,19 +150,23 @@ older than 90 days as `provisional`.
|
|
|
150
150
|
|
|
151
151
|
A slice's frontmatter may also carry `status:`. `GET /api/slices` reports the
|
|
152
152
|
bucket each word falls in as the slice's `status`, and its
|
|
153
|
-
`?filter=all|active|done|blocked` filters on that bucket:
|
|
153
|
+
`?filter=all|active|done|closed|blocked` filters on that bucket:
|
|
154
154
|
|
|
155
155
|
| `status:` word | Bucket |
|
|
156
156
|
| --- | --- |
|
|
157
157
|
| `active`, `in-flight`, `ratified` | `active` |
|
|
158
158
|
| `draft`, `draft-pending-orch-ratification`, `placeholder` | `draft` |
|
|
159
159
|
| `done`, `shipped`, `promoted`, `closed` | `done` |
|
|
160
|
+
| `closed-wontfix`, `closed-deferred`, `closed-superseded`, `closed-stale` | `closed` |
|
|
160
161
|
| `blocked`, `parked-with-evidence` | `blocked` |
|
|
161
162
|
|
|
162
163
|
Words are matched ignoring case. Any other word is matched by what it contains:
|
|
163
164
|
`done`, `ship` or `close` makes it `done`; `block` or `park`, `blocked`; `draft`
|
|
164
165
|
or `pending`, `draft`. A word that matches none of these counts as `active`, so a
|
|
165
|
-
slice marked `complete` counts as `active
|
|
166
|
+
slice marked `complete` counts as `active`, and so does one marked a bare `wontfix`,
|
|
167
|
+
`deferred`, `superseded` or `stale`: only the `closed-<reason>` words that
|
|
168
|
+
`rig scope slice close` writes read as `closed` (a slice moved to `closed/` with one
|
|
169
|
+
of them used to read `done`). A slice with no `status:` counts as
|
|
166
170
|
`draft`.
|
|
167
171
|
|
|
168
172
|
`rig view show execution` shows the slice's own `status:` word (from its
|
|
@@ -202,10 +206,24 @@ judgment and publication are distinct. This optional component does not select
|
|
|
202
206
|
Part B or add a mandatory review gate.
|
|
203
207
|
|
|
204
208
|
A judgment binds the slice's path, the item's text and the policy. Moving or
|
|
205
|
-
renaming a slice (`rig scope slice move`,
|
|
209
|
+
renaming a slice (`rig scope slice move`, default moving `rig scope slice close`,
|
|
210
|
+
or by hand) reopens its judged items:
|
|
206
211
|
`rig proof show` reports each as `unknown`, and each needs a new judgment on its
|
|
207
|
-
current revision. `rig scope
|
|
208
|
-
|
|
212
|
+
current revision. Opt-in `rig scope slice close <slice> --in-place --reason delivered`
|
|
213
|
+
(or `--in-place --reason <wontfix|deferred|superseded|stale>` for non-delivery
|
|
214
|
+
exits) updates status in place under `<mission>/slices/<slice>` (and writes the same
|
|
215
|
+
status to a `status:` that the slice indexer reads in `PROGRESS.md` frontmatter).
|
|
216
|
+
It then reads the status back the way the slice indexer does; if the indexer does
|
|
217
|
+
not read the new status (for example a duplicate, nested or commented `status:`
|
|
218
|
+
line), it restores the files it changed and refuses with one message naming the
|
|
219
|
+
file. If a restore itself fails, the message keeps the mismatch, lists every failed
|
|
220
|
+
restore, and says the slice's files and `mission.yaml` may be partly changed, so
|
|
221
|
+
inspect them before closing again. It does not move the folder, so recorded judgments stay applicable while the item
|
|
222
|
+
text, policy and cited evidence bytes are unchanged (judgments citing files
|
|
223
|
+
updated by closure, such as `SPEC.md`, reconciled `PROGRESS.md` or `mission.yaml`,
|
|
224
|
+
reopen to `unknown`), and parent mission status is never automatically marked
|
|
225
|
+
delivered. `rig scope slice close` and `rig scope audit` do not evaluate proof
|
|
226
|
+
readiness, so check `rig proof show` for current applicability.
|
|
209
227
|
|
|
210
228
|
The project readiness that `rig proof show --project` reports counts only
|
|
211
229
|
missions whose `mission.yaml` carries `metadata.status: active` or
|
|
@@ -229,6 +247,25 @@ mini-requirements show "Not compliant · mini-requirements not authored";
|
|
|
229
247
|
nothing is invented) —
|
|
230
248
|
but it does not carry its weight in review.
|
|
231
249
|
|
|
250
|
+
### A2.1. Missions that break down another scope
|
|
251
|
+
|
|
252
|
+
A mission can link to the mission or slice whose work it breaks down. Use
|
|
253
|
+
`rig scope mission create <name> --parent <dot-id>` when creating it, or
|
|
254
|
+
`rig scope mission parent <mission> <dot-id>` to set the link later. Use
|
|
255
|
+
`rig scope mission parent <mission> --clear` to remove it. The target must
|
|
256
|
+
resolve uniquely within the project's missions root. Cycles and unresolved
|
|
257
|
+
ancestors are warnings and are reported by scope audit. A mission without an
|
|
258
|
+
authored ID can still have a parent; reverse views show its ID as unknown. When
|
|
259
|
+
creating a mission with a duplicate ID and a parent, the command warns with the
|
|
260
|
+
existing path because references to that ID are ambiguous.
|
|
261
|
+
The link is `metadata.parent` in `mission.yaml`, or `parent` in the node
|
|
262
|
+
frontmatter for a legacy mission without a manifest. It does not change
|
|
263
|
+
folder layout, slice membership, or the meaning of `depends-on`.
|
|
264
|
+
|
|
265
|
+
Mission and slice show surfaces expose the link in both directions; scope
|
|
266
|
+
audit reports dangling links and active children of completed slices. The
|
|
267
|
+
refocus trace follows the logical parent to show the outcome's intent.
|
|
268
|
+
|
|
232
269
|
## A3. Honesty rails (public surfaces + cited hashes)
|
|
233
270
|
|
|
234
271
|
### Public-repo surfaces read as product engineering
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# Per-seat terminal delivery
|
|
2
2
|
|
|
3
|
-
The typing guard has
|
|
3
|
+
The typing guard has seven modes. `off` and `hold` are the two ends. Draft-aware adds an
|
|
4
4
|
opt-in check for unfinished input without a second control or daemon-owned retry
|
|
5
|
-
scheduler. Between off and hold,
|
|
6
|
-
type: `openrig-urgent`, `urgent-only` and `
|
|
5
|
+
scheduler. Between off and hold, four interruption levels choose which automatic messages may
|
|
6
|
+
type: `openrig-urgent`, `urgent-only`, `sends-only` and `queue-only`. Sibling seats keep their own mode.
|
|
7
7
|
|
|
8
8
|
| Mode | Terminal input | When input is unavailable |
|
|
9
9
|
|---|---|---|
|
|
@@ -12,9 +12,33 @@ type: `openrig-urgent`, `urgent-only` and `sends-only`. Sibling seats keep their
|
|
|
12
12
|
| `openrig-urgent` | OpenRig's own messages (watchdogs, scheduled wakes, notices) and anything marked urgent type, never over a draft | Other agents' messages are held, the sender is told, and held messages stay readable |
|
|
13
13
|
| `urgent-only` | Only messages marked urgent type (`rig send --urgent`, `urgent: true` on `POST /api/transport/send`, or a queue item at priority urgent or critical), never over a draft | Everything else is held, the sender is told, and held messages stay readable |
|
|
14
14
|
| `sends-only` | Deliberate sends from people and agents type, as with `off`; a terminal member's typing isn't protected, because its shell input can't be read | OpenRig's own notices are held. A terminal member defaults to this level |
|
|
15
|
+
| `queue-only` | For a seat a person types in. Deliberate sends from people and agents type, urgent or not, never over a draft; OpenRig's own notices never type, urgent ones included | A watchdog reminder reaches the seat's queue instead (below); other notices from OpenRig are held with their urgency, and held messages stay readable |
|
|
15
16
|
| `hold` | No automatic terminal input, even at an empty prompt | Retain for inspection outside the pane |
|
|
16
17
|
|
|
17
|
-
Lifecycle work is refused at `openrig-urgent` and `urgent-only`, as at `hold`.
|
|
18
|
+
Lifecycle work is refused at `openrig-urgent` and `urgent-only`, as at `hold`. At `queue-only` it goes ahead: the
|
|
19
|
+
level only changes how OpenRig's notices reach the seat, so managed compaction and its restore still run there, and the
|
|
20
|
+
seat still compacts when its context runs out. Each write they make is checked as at `draft-aware`, so it never types
|
|
21
|
+
over a person's draft or an input it can't read (it waits for a later attempt), but an active seat isn't refused the
|
|
22
|
+
way `draft-aware` refuses lifecycle work. Binding reconciliation stays refused, as at every level but `off`.
|
|
23
|
+
|
|
24
|
+
At `queue-only` a watchdog reminder never types. One about the seat's parked rows (a park timer, a wait, a
|
|
25
|
+
`--wake-watchdog` attachment) is noted on each row of the seat whose current park that job wakes, with the reminder's
|
|
26
|
+
own text unless it is the park's default wake (`park wake noted on this row: …`). The note is written before the
|
|
27
|
+
delivery is recorded; a row that left its park meanwhile isn't noted, and the reminder stays due. A row of another
|
|
28
|
+
seat attached to the same job gets its usual park record, naming what the reminder became. Any other reminder becomes
|
|
29
|
+
one cold row in the seat's queue, from `watchdog@system`, tagged `watchdog`, `queue-only` and `watchdog-job:<job>`,
|
|
30
|
+
created with no nudge; its id comes from the reminder's occurrence. A later occurrence of the same job, or a retry,
|
|
31
|
+
while that row is still open (pending, or claimed and not yet closed), is recorded on it rather than making a second
|
|
32
|
+
row; once it's closed the occurrence gets a new row with a derived id (`<id>-2`, `<id>-3`, …), never the closed one. A
|
|
33
|
+
cold row wakes nobody: a person, or the seat's next ordinary turn, picks it up, and its waiting view says so, with no
|
|
34
|
+
timed sweep promised. The stuck sweep doesn't report it as
|
|
35
|
+
unclaimed, nor a wait whose notice was noted or queued as unconsumed. The parked-owner reminder isn't typed either
|
|
36
|
+
(the seat's open rows already are the reminder): it's skipped, recorded once on the row as `parked-owner wake held: …;
|
|
37
|
+
code queue_only_seat`, and stays out of the job's history until the seat's open rows or occupant change. An idle seat
|
|
38
|
+
isn't woken for a pending gate row either. The job's history records these with the outcome `sent` and the status
|
|
39
|
+
`queued_as_row`, `noted_on_parked_row` or `noted_on_queued_row`, never `ok`: in the queue, not typed. Wakes of rows
|
|
40
|
+
that agents and people create and send are deliberate sends: they type, never over a draft. Wakes of rows OpenRig
|
|
41
|
+
creates are OpenRig's own and are held. An older daemon reads `queue-only` as `hold`, lifecycle work included.
|
|
18
42
|
|
|
19
43
|
A terminal member (`runtime: terminal`) defaults to `sends-only`, which holds OpenRig's own notices. Set one
|
|
20
44
|
to `off` and those notices, such as park reminders and other watchdog messages, type into whatever the pane
|
|
@@ -206,7 +230,7 @@ rig seat held-messages dev-impl@my-rig --id <outbox-id> --json
|
|
|
206
230
|
rig seat retire-held-message dev-impl@my-rig <outbox-id> --reason "read outside the pane"
|
|
207
231
|
~~~
|
|
208
232
|
|
|
209
|
-
Use exactly one of `--mode off|draft-aware|openrig-urgent|urgent-only|sends-only|hold` or the compatible
|
|
233
|
+
Use exactly one of `--mode off|draft-aware|openrig-urgent|urgent-only|sends-only|queue-only|hold` or the compatible
|
|
210
234
|
`--enabled true|false`: true selects hold, false selects off. There are no
|
|
211
235
|
retry settings or deadlines. Activation waits for an already-started seat operation
|
|
212
236
|
to finish. The API may return HTTP 202 with `pending: true`; wait for
|
|
@@ -281,6 +305,63 @@ watchdog's reminders (one per job), and an unattributed sender.
|
|
|
281
305
|
A backlog held before this change clears at that sender's next held message to the
|
|
282
306
|
seat, or at once with `rig seat retire-held-message`.
|
|
283
307
|
|
|
308
|
+
### Claude hook bridge (opt-in)
|
|
309
|
+
|
|
310
|
+
A Claude seat can opt in to receiving messages through its own launch-owned hooks instead of typed input. OpenRig then
|
|
311
|
+
doesn't type into the seat's input box or touch a dialog to deliver.
|
|
312
|
+
|
|
313
|
+
```bash
|
|
314
|
+
rig seat set-hook-bridge dev-impl@my-rig --enabled true --reason "wake at turn boundaries"
|
|
315
|
+
rig seat hook-bridge dev-impl@my-rig
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
**Who can opt in.** Anyone who can run the command, with a reason. From a terminal with no seat identity, the change is recorded as unattributed, as the typing guard records it.
|
|
319
|
+
|
|
320
|
+
**When it takes effect.** At the seat's next launch or restore, if its Claude Code is 2.1.287 or later (the first version whose changelog shows the `asyncRewake` hooks; 2.1.306's and 2.1.322's own schemas carry them). An older Claude, or one whose version can't be read, launches unchanged with typed delivery, and `rig seat hook-bridge` says why. The launch adds three hooks to its `--settings`:
|
|
321
|
+
- SessionStart and Stop run one waiter for the seat, as `asyncRewake` command hooks. Exiting 2 wakes Claude with the
|
|
322
|
+
waiter's output. The hook timeout is 7200 s.
|
|
323
|
+
- UserPromptSubmit runs a quick marker that tells OpenRig a turn started.
|
|
324
|
+
|
|
325
|
+
The bridge is used only for an occupant launched with it, once its waiter has armed. Until then delivery is typed as before.
|
|
326
|
+
|
|
327
|
+
**Delivery at a turn boundary.**
|
|
328
|
+
- A message to an opted-in seat is queued as an outbox row (result `outcome: "bridged"`). The waiter armed at the last
|
|
329
|
+
turn boundary takes the queued messages, oldest first, and writes them into the seat's context.
|
|
330
|
+
- A seat mid-turn, including one at a permission prompt, gets its messages when that turn ends, or after 15 minutes, whichever comes first: a turn that ends without a Stop (an interrupt, an API error), or one running when the daemon restarted, can't hold messages longer than that, even while a waiter polls. That includes a turn the bridge's own wake started: Claude Code reports the woken input as a prompt, and the bridge counts that prompt as part of the same turn.
|
|
331
|
+
- Only a plain message is bridged. A send that carries a check or action at the moment of writing (managed compaction's `/compact` and its stages, a parked-owner reminder's checks, staged or exact text, an idle or draft rule), one bound to an original conversation (an expected identity), a slash command, and every watchdog reminder are typed as before, where those checks run. A watchdog reminder stays typed until its receipts can represent a queued message.
|
|
332
|
+
- Each poll checks again that the seat is still opted in, that a message was queued for that same occupant, and that the typing guard wouldn't hold it now. A message the bridge can't deliver to this occupant (the seat opted out, or the guard holds it now) is typed at once, with the admission it was queued with, and the guard then decides (a hold retains it). One queued for an occupant who has gone isn't typed (below).
|
|
333
|
+
- A message queued for an occupant who has since gone isn't typed into the seat's new occupant: it ends `failed`, with `guard_delivery.state` `not-delivered` and the reason, a `transport.hook_bridge_fallback` event says so, and `rig seat hook-bridge` lists it with its reason. Its sender isn't told; a fresh send reaches the current occupant.
|
|
334
|
+
- A send whose id is already settled (delivered, failed, held) isn't queued again or reported queued: it goes on as it would without the bridge.
|
|
335
|
+
- What the model receives is each message exactly as OpenRig addressed it (its `From:` line names the sender), after
|
|
336
|
+
one line saying they're ordinary messages that the delivery adds no authority to.
|
|
337
|
+
|
|
338
|
+
**Handed over is not read or acted on.**
|
|
339
|
+
- The waiter's acknowledgement marks the row `delivered`, with `guard_delivery.state` `handed-to-hook`. It wrote the message to its hook's output and is exiting 2. Claude Code reports nothing back, so that Claude read it isn't observed.
|
|
340
|
+
- A queue wake records `bridged:queued`, then how it ended at the bridge: `bridged:handed-to-hook`, the typed fallback's own result (so a refusal at a prompt is retried when the prompt clears, as for a typed wake), `failed:hook_bridge_not_delivered`, or `indeterminate:hook_bridge_claimed_unacked`.
|
|
341
|
+
- The row's claim and result stay with what the agent actually does.
|
|
342
|
+
- A batch whose answer was lost is handed to the same waiter, for the same seat and occupant, again at its next poll, unless the typing guard holds it by then: then it's left `indeterminate` (`claimed-unacked`), never handed out or requeued.
|
|
343
|
+
- The waiter acknowledges a batch only once it has written all of it to the hook's output; a write that fails isn't acknowledged, and the batch becomes uncertain as below.
|
|
344
|
+
- A batch whose waiter stopped without acknowledging it (its arm replaced, or not polled for 20 s) becomes `indeterminate`, with `guard_delivery.state` `claimed-unacked`. The bridge never resends it: it may or may not have reached the seat. `rig seat hook-bridge` lists those rows, and a `transport.hook_bridge_uncertain` event names each. A queue wake's own recovery may still send it again, saying delivery may repeat: the queue's rule for an uncertain wake.
|
|
345
|
+
|
|
346
|
+
**When the bridge isn't available** (never armed, expired, or its waiter gone):
|
|
347
|
+
- Messages are typed instead, as before, and the sender's result says the bridge wasn't available.
|
|
348
|
+
- A waiter is live while it has polled within 20 s and its seat is idle or within 15 minutes of its turn's start; with no waiter polling, while the seat is in a turn the bridge waits on, for at most 15 minutes.
|
|
349
|
+
- A new message goes behind messages already queued for the seat, even after the seat opts out, so they're typed in order. A send cancelled while it waits for the seat's lease isn't queued.
|
|
350
|
+
- Messages already queued are typed in order, by one sweep at a time (every 5 s) once they've waited 20 s without a live waiter. The sweep takes back each message under the seat's delivery lease, just before typing it; one the bridge took first isn't typed, and nothing behind it overtakes it. A waiter's poll takes the same lease, so it can't take the next message while an earlier one is being typed.
|
|
351
|
+
- A daemon restart leaves messages that were only queued for the bridge queued; they aren't marked indeterminate. A batch a waiter had taken before the restart is named uncertain by the bridge after it, as above.
|
|
352
|
+
- A waiter exits by itself shortly before its hook timeout and reports that it expired. The next turn re-arms it.
|
|
353
|
+
|
|
354
|
+
**What still decides first.** The typing guard: hold and the interruption levels hold or refuse as for typed delivery. A rig's delivery drain holds the bridge's automatic deliveries (queue wakes) as it holds typed ones: while the seat's rig is drained, no waiter takes them and no fallback types them, at any point up to the moment of typing, and they're delivered in their order once the drain ends. A direct send and an explicit queue notification pass a drain, and pass any held wakes, as on the typed path. A queue wake whose row no longer wants it (claimed, closed or moved on) isn't handed over: it ends `failed` (`not-delivered`), as the typed path refuses it. If the drain can't be read, delivery goes ahead and the daemon log says so.
|
|
355
|
+
The bridge only replaces how an admitted message reaches the seat. Watchdog reminders and queue wakes take the same path.
|
|
356
|
+
|
|
357
|
+
**Cost.** Each wake is one model turn on the seat's own login. A burst of messages to an idle seat can cost several.
|
|
358
|
+
`rig seat hook-bridge` shows the wakes since the daemon started.
|
|
359
|
+
|
|
360
|
+
**Scope.**
|
|
361
|
+
- Claude Code seats managed by OpenRig. Codex isn't covered.
|
|
362
|
+
- Measured on Claude Code 2.1.319 to 2.1.323. Its `rewakeMessage` and `rewakeSummary` fields are internal and unused.
|
|
363
|
+
- A guest-only listener doesn't serve the bridge.
|
|
364
|
+
|
|
284
365
|
## Input evidence and outcomes
|
|
285
366
|
|
|
286
367
|
The cursor-aware reader lives in `session-transport.ts` and shares the composer
|
|
@@ -384,7 +465,7 @@ current transport result; an unknown write is not proof that nothing arrived.
|
|
|
384
465
|
The transport still protects approval/question prompts and recipient identity. Under the default
|
|
385
466
|
`transport.draft_delivery` (`deliver`), an ordinary send or work notice that meets a person's draft at a Claude Code or
|
|
386
467
|
Codex prompt is pasted into it and the combined input is submitted, unless the seat's typing guard holds input
|
|
387
|
-
(`draft-aware`, `openrig-urgent`, `urgent-only` or `hold`). With `refuse`, a draft refuses the send. Scheduler timing,
|
|
468
|
+
(`draft-aware`, `openrig-urgent`, `urgent-only`, `queue-only` or `hold`). With `refuse`, a draft refuses the send. Scheduler timing,
|
|
388
469
|
current parked-row eligibility and stop checks still apply. This changes message retries, not the idempotence of
|
|
389
470
|
structured continuity actions such as creating a cutover baton.
|
|
390
471
|
|
|
@@ -212,7 +212,9 @@ before retrying. `rig terminal status` gives Rex about a second to answer.
|
|
|
212
212
|
## HTTP API
|
|
213
213
|
|
|
214
214
|
- `POST /api/terminal/open`: `{ view, provider?: "herdr", session?: string, expectedPlan?: string }`.
|
|
215
|
-
- `
|
|
215
|
+
- `POST /api/terminal/open-all` (bearer auth): `{ provider?: "herdr", session?: string, viewportColumns?: number, reuseLive?: boolean }`.
|
|
216
|
+
- `POST /api/terminal/close-all` (bearer auth): `{ provider?: "herdr" | "tmux", session?: string }`. Maps a corrupt ownership ledger (`corrupt_ledger`) to HTTP 500 without overwriting ledger files.
|
|
217
|
+
- `GET /api/terminal/preview?view=<view>&provider=herdr&session=<name>` (optional `&bulk=1` for `rig:<id>` bulk partitioning).
|
|
216
218
|
- `GET /api/terminal/status?provider=herdr&session=<name>`.
|
|
217
219
|
- The alias `POST /api/rigs/:rigId/terminal/open` accepts the same session and
|
|
218
220
|
preview binding, with the rig determining the view.
|
|
@@ -224,6 +226,102 @@ session keeps the normal HTTP 200 provider result with `ok: false`, its selected
|
|
|
224
226
|
The `kernel_seats_unavailable` result also keeps the selected session, so the CLI
|
|
225
227
|
reports that known failure instead of replacing it with an unconfirmed-session error.
|
|
226
228
|
|
|
229
|
+
## Bulk rig viewers (--all)
|
|
230
|
+
|
|
231
|
+
`rig terminal open --all` opens one viewer per non-empty local rig in sorted
|
|
232
|
+
rig-name order (`rig:kernel` once as a rig view; never `openrig kernel` or
|
|
233
|
+
`saved:kernel`). Supported providers are `herdr` (which uses `reuseLive` on `--all`
|
|
234
|
+
to reuse an intact live workspace without rewriting an existing ownership record),
|
|
235
|
+
desktop `--window` with Herdr installed (opening one Herdr window once Herdr is
|
|
236
|
+
preflighted, then applying per-rig workspaces), or `--provider tmux --window`
|
|
237
|
+
(opening one tagged `openrig-view-<id>` tmux session per non-empty rig with an
|
|
238
|
+
`@openrig_rig_viewer` nonce). `herdr-app`, `cmux`, and `rex` return
|
|
239
|
+
`unsupported_provider`; plain `tmux` without `--window` returns
|
|
240
|
+
`tmux_requires_window`. Seats on remote hosts (`host != null`) are reported under
|
|
241
|
+
`skipped` when `TerminalService` receives hosted rows (the current single-host
|
|
242
|
+
daemon inventory projection in `toLiveSeatRow` does not populate `host`), and
|
|
243
|
+
stopped/unbound/external seats become `absent`.
|
|
244
|
+
|
|
245
|
+
Repeated bulk opens through the tmux fallback create another viewer session per
|
|
246
|
+
non-empty rig. That path does not confirm or reuse an earlier viewer's current plan.
|
|
247
|
+
|
|
248
|
+
Bulk open uses each rig's ID. Names are display text. The views response keeps
|
|
249
|
+
its existing name list and adds `rigIdentities` for clients that need stable IDs.
|
|
250
|
+
The bulk tmux window client requires that identity list. Individual named views
|
|
251
|
+
remain supported; an exact ID takes precedence in lookup.
|
|
252
|
+
|
|
253
|
+
Herdr rig workspaces show the human rig name. Their tab plan markers and live
|
|
254
|
+
reuse keys use the canonical rig ID. Name and ID aliases for the same current
|
|
255
|
+
rig resolve to that identity before composition. Two rigs with the same name
|
|
256
|
+
retain separate reuse identities, even when their attachments match. Kernel and
|
|
257
|
+
saved named views keep their existing label and reuse rules. Legacy workspaces
|
|
258
|
+
with name-based tab markers are not renamed or closed. They may not match a new
|
|
259
|
+
ID-based reuse request.
|
|
260
|
+
|
|
261
|
+
For Herdr, a new rig viewer with complete workspace, tab, tab-label and pane
|
|
262
|
+
identity has an ownership entry per endpoint under `private/terminal-rig-viewers`.
|
|
263
|
+
Reused or incomplete Herdr workspaces get no new entry. Both single and bulk rig
|
|
264
|
+
opens report incomplete ownership or a failed record write.
|
|
265
|
+
During close, a viewer's failed journal removal returns a failed viewer result.
|
|
266
|
+
Earlier results remain and later viewers and endpoints continue. An endpoint
|
|
267
|
+
failure after iteration preserves gathered results and reports unresolved
|
|
268
|
+
viewers. A failed removal does not establish that the journal entry is gone.
|
|
269
|
+
Corrupt-ledger preflight still refuses before viewer iteration.
|
|
270
|
+
|
|
271
|
+
For tmux, the proof lives in session options. `@openrig_rig_viewer_proof` contains
|
|
272
|
+
the original session ID/name, window/pane IDs, view, endpoint and nonce in a
|
|
273
|
+
versioned base64url JSON value. `@openrig_rig_viewer` publishes the nonce last.
|
|
274
|
+
Close requires both values. A failed option write leaves the viewer open with
|
|
275
|
+
an ownership warning. It does not grant close authority from a partial proof.
|
|
276
|
+
There is no separate tmux ledger or registration/retirement HTTP route. Old tmux
|
|
277
|
+
ledger entries remain on disk but grant no close authority. Old or unqualified
|
|
278
|
+
viewers need manual inspection. No external closing-phase record is needed:
|
|
279
|
+
the proof disappears with the session, and a failed close can inspect the same
|
|
280
|
+
remaining session options again.
|
|
281
|
+
|
|
282
|
+
Saved (including `saved:rig:...`), pod, seat and task viewers get no tmux ownership
|
|
283
|
+
options. Pre-existing viewers without complete options are left untouched.
|
|
284
|
+
If a bulk CLI `tmux
|
|
285
|
+
--window` launch fails after creating a rig viewer, OpenRig verifies matching
|
|
286
|
+
nonce, window/pane inventory, and zero attached clients before killing the
|
|
287
|
+
session (`cleanup: "closed"`, or `"already_gone"` if the viewer
|
|
288
|
+
session had already disappeared); modified, attached, permission-denied, or
|
|
289
|
+
unconfirmed viewers are retained with their session options preserved and reported as
|
|
290
|
+
`cleanup: "unknown"`.
|
|
291
|
+
|
|
292
|
+
`rig terminal close --all [--provider herdr|tmux] [--session <name>]` reads the
|
|
293
|
+
Herdr ownership ledger and the selected tmux server's session options. It refreshes live inventory before
|
|
294
|
+
inspecting each target. Existing Herdr viewers are kept. Herdr has no qualified
|
|
295
|
+
compare-and-close operation, so bulk close never sends `workspace.close`, including
|
|
296
|
+
for a record left in the `closing` phase. An intact viewer returns
|
|
297
|
+
`conditional_close_unavailable` and a manual inspection/close command bound to its
|
|
298
|
+
recorded socket and workspace. Run that command only after inspecting the workspace.
|
|
299
|
+
If the exact endpoint or workspace cannot be qualified, the result asks for manual
|
|
300
|
+
inspection instead of supplying an ambiguous command. Records remain until confirmed
|
|
301
|
+
absence. This does not change the separate single-view `herdr-app` close path.
|
|
302
|
+
|
|
303
|
+
Unmodified tmux `rig:` viewers are closed (`closed`) while their underlying agent
|
|
304
|
+
sessions continue running. A server-side `if-shell -F` compares session identity,
|
|
305
|
+
nonce, complete proof option and original window/pane inventory before it selects the close action. Failed
|
|
306
|
+
desktop-launch cleanup also requires zero attached clients in that same condition.
|
|
307
|
+
Viewer IDs must have tmux's numeric `$`, `@` and `%` forms. Session names and nonces
|
|
308
|
+
must contain only ASCII letters, digits, underscore, period, colon or hyphen for
|
|
309
|
+
this command path. Other stored values are retained with `ownership_unconfirmed`
|
|
310
|
+
(or `cleanup: "unknown"`) instead of being interpolated into tmux syntax. No UUID
|
|
311
|
+
shape is required for a nonce. Viewers
|
|
312
|
+
with foreign, modified, or mismatched tabs/labels/panes/nonce (including reused
|
|
313
|
+
short Herdr IDs after restart) are kept whole (`kept`: `not_separable` or
|
|
314
|
+
`ownership_unconfirmed` for Herdr, `ownership_unconfirmed` for tmux). Records
|
|
315
|
+
belonging to a different Herdr endpoint, or tmux proof that names a different
|
|
316
|
+
endpoint, return `outcome: "kept"` with `code: "different_endpoint"`. Other tmux
|
|
317
|
+
servers are not searched. Missing Herdr targets clear their stale records.
|
|
318
|
+
Tmux targets that disappear during a close check report `already_gone`; a later
|
|
319
|
+
call has no option record to enumerate for an absent session. A missing socket
|
|
320
|
+
is an absent server. Permission errors remain unsafe. Unreachable providers or
|
|
321
|
+
unconfirmed close results report `provider_unreachable` or `close_pending`. A
|
|
322
|
+
corrupt ledger file under `private/terminal-rig-viewers` fails closed
|
|
323
|
+
(`corrupt_ledger`, HTTP 500) without overwriting the file.
|
|
324
|
+
|
|
227
325
|
## Task terminal views
|
|
228
326
|
|
|
229
327
|
`rig terminal open qitem:<id> --provider herdr --json` opens a derived, read-only
|