@openrig/cli 0.5.10 → 0.5.12
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/LICENSE +190 -0
- package/daemon/assets/plugins/openrig-core/README.md +24 -5
- package/daemon/assets/plugins/openrig-core/skills/agent-operated-software/SKILL.md +7 -4
- package/daemon/assets/plugins/openrig-core/skills/agent-operated-workflows/SKILL.md +4 -2
- package/daemon/assets/plugins/openrig-core/skills/applying-a-permission-policy/SKILL.md +11 -14
- package/daemon/assets/plugins/openrig-core/skills/claude-compaction-restore/SKILL.md +51 -59
- package/daemon/assets/plugins/openrig-core/skills/forming-an-openrig-mental-model/SKILL.md +11 -10
- package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/SKILL.md +66 -66
- package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/scripts/trunk-diff.sh +1 -1
- package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/templates/LEARNED.md +7 -5
- package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/templates/PLAYBOOK.md +3 -4
- package/daemon/assets/plugins/openrig-core/skills/openrig-operating-model/templates/SPEC.md +7 -7
- package/daemon/assets/plugins/openrig-core/skills/openrig-user/SKILL.md +55 -64
- package/daemon/assets/plugins/openrig-core/skills/orienting-to-an-inherited-seat/CHANGELOG.md +14 -58
- package/daemon/assets/plugins/openrig-core/skills/queue-handoff/SKILL.md +8 -9
- package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/CHANGELOG.md +20 -46
- package/daemon/assets/plugins/openrig-core/skills/retiring-and-inheriting-a-seat/SKILL.md +62 -76
- package/daemon/assets/plugins/openrig-core/skills/seat-continuity-and-handover/SKILL.md +28 -22
- package/daemon/assets/plugins/openrig-core/skills/session-compaction-and-restore/SKILL.md +13 -15
- package/daemon/context-packs/onboarding-width/manifest.yaml +1 -3
- package/daemon/context-packs/onboarding-width/public-reference-material.md +19 -24
- package/daemon/context-packs/onboarding-width/public-what-you-can-do.md +143 -41
- package/daemon/context-packs/skills/agent-operated-software/SKILL.md +7 -4
- package/daemon/context-packs/skills/agent-operated-software/manifest.yaml +1 -1
- package/daemon/context-packs/skills/agent-operated-workflows/SKILL.md +4 -2
- package/daemon/context-packs/skills/agent-operated-workflows/manifest.yaml +1 -1
- package/daemon/context-packs/skills/applying-a-permission-policy/SKILL.md +11 -14
- package/daemon/context-packs/skills/applying-a-permission-policy/manifest.yaml +1 -1
- package/daemon/context-packs/skills/claude-compaction-restore/SKILL.md +51 -59
- package/daemon/context-packs/skills/claude-compaction-restore/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-starters/SKILL.md +21 -19
- package/daemon/context-packs/skills/core/agent-starters/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/agent-startup-and-context-ingestion/SKILL.md +11 -10
- 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/SKILL.md +84 -148
- package/daemon/context-packs/skills/core/cross-host-rig-commands/manifest.yaml +3 -3
- package/daemon/context-packs/skills/core/human-in-the-loop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/messaging-the-human/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/openrig-architect/SKILL.md +40 -47
- 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-upgrade/SKILL.md +16 -0
- 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/SKILL.md +12 -10
- 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/SKILL.md +15 -13
- package/daemon/context-packs/skills/core/topology-mutation-and-seat-management/manifest.yaml +1 -1
- package/daemon/context-packs/skills/core/watchdog/manifest.yaml +1 -1
- package/daemon/context-packs/skills/delegating-work/manifest.yaml +1 -1
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/SKILL.md +11 -10
- package/daemon/context-packs/skills/forming-an-openrig-mental-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/loading-addressable-markdown/manifest.yaml +1 -1
- package/daemon/context-packs/skills/mission-slice-sop/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/SKILL.md +66 -66
- package/daemon/context-packs/skills/openrig-operating-model/manifest.yaml +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/scripts/trunk-diff.sh +1 -1
- package/daemon/context-packs/skills/openrig-operating-model/templates/LEARNED.md +7 -5
- package/daemon/context-packs/skills/openrig-operating-model/templates/PLAYBOOK.md +3 -4
- package/daemon/context-packs/skills/openrig-operating-model/templates/SPEC.md +7 -7
- package/daemon/context-packs/skills/openrig-user/SKILL.md +55 -64
- package/daemon/context-packs/skills/openrig-user/manifest.yaml +1 -1
- package/daemon/context-packs/skills/orienting-to-an-inherited-seat/CHANGELOG.md +14 -58
- 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/SKILL.md +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/SKILL.md +2 -2
- package/daemon/context-packs/skills/pm/plan-review/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/SKILL.md +1 -1
- package/daemon/context-packs/skills/pm/requirements-writer/manifest.yaml +1 -1
- package/daemon/context-packs/skills/pm/ui-mockup/SKILL.md +3 -3
- 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/SKILL.md +41 -59
- 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/LOCAL-INSIGHTS.md +24 -53
- 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/find-polluter.sh +29 -15
- package/daemon/context-packs/skills/process/systematic-debugging/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/test-driven-development/SKILL.md +47 -40
- package/daemon/context-packs/skills/process/test-driven-development/manifest.yaml +1 -1
- package/daemon/context-packs/skills/process/verification-before-completion/SKILL.md +3 -3
- package/daemon/context-packs/skills/process/verification-before-completion/manifest.yaml +1 -1
- package/daemon/context-packs/skills/queue-handoff/SKILL.md +8 -9
- package/daemon/context-packs/skills/queue-handoff/manifest.yaml +1 -1
- package/daemon/context-packs/skills/refocusing/manifest.yaml +1 -1
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/CHANGELOG.md +20 -46
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/SKILL.md +62 -76
- package/daemon/context-packs/skills/retiring-and-inheriting-a-seat/manifest.yaml +1 -1
- package/daemon/context-packs/skills/seat-continuity-and-handover/SKILL.md +28 -22
- package/daemon/context-packs/skills/seat-continuity-and-handover/manifest.yaml +1 -1
- package/daemon/context-packs/skills/session-compaction-and-restore/SKILL.md +13 -15
- 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/build-your-world.md +12 -7
- package/daemon/context-packs/world-public/manifest.yaml +1 -1
- package/daemon/dist/adapters/codex-resume.d.ts +1 -0
- package/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-resume.js +2 -9
- package/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts +7 -3
- package/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/adapters/codex-runtime-adapter.js +26 -30
- package/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/daemon/dist/adapters/tmux.d.ts +22 -10
- package/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/daemon/dist/adapters/tmux.js +71 -36
- package/daemon/dist/adapters/tmux.js.map +1 -1
- package/daemon/dist/build-info.js +3 -3
- package/daemon/dist/daemon-shutdown.d.ts +27 -0
- package/daemon/dist/daemon-shutdown.d.ts.map +1 -0
- package/daemon/dist/daemon-shutdown.js +84 -0
- package/daemon/dist/daemon-shutdown.js.map +1 -0
- package/daemon/dist/domain/active-occupant.d.ts +2 -2
- package/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/daemon/dist/domain/active-occupant.js +5 -5
- package/daemon/dist/domain/active-occupant.js.map +1 -1
- package/daemon/dist/domain/codex-thread-id.d.ts +1 -0
- package/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/daemon/dist/domain/codex-thread-id.js +32 -23
- package/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/daemon/dist/domain/context-usage-store.d.ts +2 -0
- package/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/daemon/dist/domain/context-usage-store.js +7 -28
- package/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/daemon/dist/domain/crash-cart-conductor.js +1 -1
- package/daemon/dist/domain/crash-cart-conductor.js.map +1 -1
- package/daemon/dist/domain/crash-cart-discovery.d.ts +3 -1
- package/daemon/dist/domain/crash-cart-discovery.d.ts.map +1 -1
- package/daemon/dist/domain/crash-cart-discovery.js +15 -4
- package/daemon/dist/domain/crash-cart-discovery.js.map +1 -1
- package/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/daemon/dist/domain/execution-view.js +68 -5
- package/daemon/dist/domain/execution-view.js.map +1 -1
- package/daemon/dist/domain/fresh-occupant-relation.d.ts +8 -0
- package/daemon/dist/domain/fresh-occupant-relation.d.ts.map +1 -0
- package/daemon/dist/domain/fresh-occupant-relation.js +31 -0
- package/daemon/dist/domain/fresh-occupant-relation.js.map +1 -0
- package/daemon/dist/domain/gateway/channel-operations.d.ts +1 -1
- package/daemon/dist/domain/gateway/channel-operations.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/connections-projection.d.ts +90 -0
- package/daemon/dist/domain/gateway/connections-projection.d.ts.map +1 -0
- package/daemon/dist/domain/gateway/connections-projection.js +171 -0
- package/daemon/dist/domain/gateway/connections-projection.js.map +1 -0
- package/daemon/dist/domain/gateway/human-registry.d.ts +3 -1
- package/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/human-registry.js +3 -1
- package/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js +3 -2
- package/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/daemon/dist/domain/health-diagnosis.js +1 -1
- package/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/daemon/dist/domain/kernel-boot.d.ts +2 -0
- package/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/daemon/dist/domain/kernel-boot.js +1 -1
- package/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/daemon/dist/domain/lifecycle-obligations.d.ts +18 -0
- package/daemon/dist/domain/lifecycle-obligations.d.ts.map +1 -0
- package/daemon/dist/domain/lifecycle-obligations.js +35 -0
- package/daemon/dist/domain/lifecycle-obligations.js.map +1 -0
- package/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js +6 -1
- package/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/daemon/dist/domain/native-resume-probe.js +35 -23
- package/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/daemon/dist/domain/parked-query.d.ts +1 -0
- package/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/daemon/dist/domain/parked-query.js +2 -1
- package/daemon/dist/domain/parked-query.js.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts +2 -0
- package/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/daemon/dist/domain/policies/parked-owner-consumer.js +2 -2
- package/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts +1 -0
- package/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
- package/daemon/dist/domain/policies/workflow-keepalive.js +19 -9
- package/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts +9 -0
- package/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/daemon/dist/domain/project-lifecycle-compiler.js +121 -23
- package/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/daemon/dist/domain/proof/judgments.d.ts +138 -0
- package/daemon/dist/domain/proof/judgments.d.ts.map +1 -0
- package/daemon/dist/domain/proof/judgments.js +361 -0
- package/daemon/dist/domain/proof/judgments.js.map +1 -0
- package/daemon/dist/domain/proof/source-watch.d.ts +17 -0
- package/daemon/dist/domain/proof/source-watch.d.ts.map +1 -0
- package/daemon/dist/domain/proof/source-watch.js +60 -0
- package/daemon/dist/domain/proof/source-watch.js.map +1 -0
- package/daemon/dist/domain/queue-owner.d.ts +12 -0
- package/daemon/dist/domain/queue-owner.d.ts.map +1 -0
- package/daemon/dist/domain/queue-owner.js +28 -0
- package/daemon/dist/domain/queue-owner.js.map +1 -0
- package/daemon/dist/domain/queue-pickup.d.ts +3 -0
- package/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
- package/daemon/dist/domain/queue-pickup.js +14 -15
- package/daemon/dist/domain/queue-pickup.js.map +1 -1
- package/daemon/dist/domain/queue-recovery.d.ts +10 -0
- package/daemon/dist/domain/queue-recovery.d.ts.map +1 -0
- package/daemon/dist/domain/queue-recovery.js +27 -0
- package/daemon/dist/domain/queue-recovery.js.map +1 -0
- package/daemon/dist/domain/queue-repository.d.ts +13 -6
- package/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-repository.js +177 -63
- package/daemon/dist/domain/queue-repository.js.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -11
- package/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/queue-stuck-sweep.js +52 -52
- package/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/daemon/dist/domain/queue-wait-backoff.d.ts +29 -2
- package/daemon/dist/domain/queue-wait-backoff.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wait-backoff.js +73 -14
- package/daemon/dist/domain/queue-wait-backoff.js.map +1 -1
- package/daemon/dist/domain/queue-waiting.d.ts +61 -0
- package/daemon/dist/domain/queue-waiting.d.ts.map +1 -0
- package/daemon/dist/domain/queue-waiting.js +108 -0
- package/daemon/dist/domain/queue-waiting.js.map +1 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts +9 -0
- package/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-ladder.js +122 -62
- package/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.d.ts +2 -0
- package/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/daemon/dist/domain/queue-wake-repository.js +1 -0
- package/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
- package/daemon/dist/domain/rehydrate-eligibility.js +5 -3
- package/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/restore-orchestrator.js +1 -0
- package/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.d.ts +7 -4
- package/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/daemon/dist/domain/restore-plan-preview.js +12 -6
- package/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/daemon/dist/domain/review/compose.d.ts +9 -1
- package/daemon/dist/domain/review/compose.d.ts.map +1 -1
- package/daemon/dist/domain/review/compose.js +26 -7
- package/daemon/dist/domain/review/compose.js.map +1 -1
- package/daemon/dist/domain/review/gather.d.ts.map +1 -1
- package/daemon/dist/domain/review/gather.js +3 -0
- package/daemon/dist/domain/review/gather.js.map +1 -1
- package/daemon/dist/domain/review/types.d.ts +2 -0
- package/daemon/dist/domain/review/types.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/daemon/dist/domain/runtime-adapter.js +1 -0
- package/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/daemon/dist/domain/scope/scope-view-projection.d.ts +8 -0
- package/daemon/dist/domain/scope/scope-view-projection.d.ts.map +1 -1
- package/daemon/dist/domain/scope/scope-view-projection.js +6 -25
- package/daemon/dist/domain/scope/scope-view-projection.js.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.d.ts +21 -0
- package/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/daemon/dist/domain/seat-lifecycle-service.js +55 -2
- package/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/daemon/dist/domain/slices/slice-detail-projector.d.ts +2 -0
- package/daemon/dist/domain/slices/slice-detail-projector.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-detail-projector.js +11 -4
- package/daemon/dist/domain/slices/slice-detail-projector.js.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.d.ts +2 -0
- package/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/daemon/dist/domain/slices/slice-indexer.js +26 -0
- package/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/daemon/dist/domain/snapshot-capture.js +4 -2
- package/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.d.ts +11 -0
- package/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/daemon/dist/domain/startup-orchestrator.js +69 -20
- package/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/daemon/dist/domain/startup-proof.js +10 -9
- package/daemon/dist/domain/startup-proof.js.map +1 -1
- package/daemon/dist/domain/startup-resolver.d.ts +3 -1
- package/daemon/dist/domain/startup-resolver.d.ts.map +1 -1
- package/daemon/dist/domain/startup-resolver.js +18 -0
- package/daemon/dist/domain/startup-resolver.js.map +1 -1
- package/daemon/dist/domain/startup-validation.d.ts.map +1 -1
- package/daemon/dist/domain/startup-validation.js +12 -1
- package/daemon/dist/domain/startup-validation.js.map +1 -1
- package/daemon/dist/domain/types.d.ts +26 -1
- package/daemon/dist/domain/types.d.ts.map +1 -1
- package/daemon/dist/domain/types.js.map +1 -1
- package/daemon/dist/domain/user-settings/settings-browser.d.ts +33 -0
- package/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -0
- package/daemon/dist/domain/user-settings/settings-browser.js +261 -0
- package/daemon/dist/domain/user-settings/settings-browser.js.map +1 -0
- package/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/daemon/dist/domain/user-settings/settings-store.js +14 -0
- package/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/daemon/dist/domain/view-event-bridge.d.ts.map +1 -1
- package/daemon/dist/domain/view-event-bridge.js +2 -0
- package/daemon/dist/domain/view-event-bridge.js.map +1 -1
- package/daemon/dist/domain/view-projector.d.ts.map +1 -1
- package/daemon/dist/domain/view-projector.js +4 -0
- package/daemon/dist/domain/view-projector.js.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.d.ts +4 -0
- package/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-policy-engine.js +8 -1
- package/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/daemon/dist/domain/watchdog-scheduler.d.ts +3 -0
- package/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
- package/daemon/dist/domain/watchdog-scheduler.js +3 -0
- package/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
- package/daemon/dist/domain/workflow-boot-sweep.d.ts +1 -0
- package/daemon/dist/domain/workflow-boot-sweep.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-boot-sweep.js +3 -0
- package/daemon/dist/domain/workflow-boot-sweep.js.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.d.ts +4 -3
- package/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-exception-escalation.js +32 -50
- package/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/daemon/dist/domain/workflow-exception-readiness.d.ts +39 -0
- package/daemon/dist/domain/workflow-exception-readiness.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-exception-readiness.js +77 -0
- package/daemon/dist/domain/workflow-exception-readiness.js.map +1 -0
- package/daemon/dist/domain/workflow-exception-router.d.ts +7 -3
- package/daemon/dist/domain/workflow-exception-router.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-exception-router.js +13 -7
- package/daemon/dist/domain/workflow-exception-router.js.map +1 -1
- package/daemon/dist/domain/workflow-exception.d.ts +6 -0
- package/daemon/dist/domain/workflow-exception.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-exception.js +10 -3
- package/daemon/dist/domain/workflow-exception.js.map +1 -1
- package/daemon/dist/domain/workflow-guidance.d.ts +53 -0
- package/daemon/dist/domain/workflow-guidance.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-guidance.js +212 -0
- package/daemon/dist/domain/workflow-guidance.js.map +1 -0
- package/daemon/dist/domain/workflow-human-destination.d.ts +18 -0
- package/daemon/dist/domain/workflow-human-destination.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-human-destination.js +40 -0
- package/daemon/dist/domain/workflow-human-destination.js.map +1 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-instance-store.js +7 -0
- package/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/daemon/dist/domain/workflow-planning-context.d.ts +3 -0
- package/daemon/dist/domain/workflow-planning-context.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-planning-context.js +36 -0
- package/daemon/dist/domain/workflow-planning-context.js.map +1 -0
- package/daemon/dist/domain/workflow-projector.d.ts +15 -5
- package/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-projector.js +97 -78
- package/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/daemon/dist/domain/workflow-reconciliation.d.ts +55 -0
- package/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -0
- package/daemon/dist/domain/workflow-reconciliation.js +228 -0
- package/daemon/dist/domain/workflow-reconciliation.js.map +1 -0
- package/daemon/dist/domain/workflow-role-context.d.ts +4 -6
- package/daemon/dist/domain/workflow-role-context.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-role-context.js +7 -14
- package/daemon/dist/domain/workflow-role-context.js.map +1 -1
- package/daemon/dist/domain/workflow-runtime.d.ts +91 -5
- package/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-runtime.js +163 -39
- package/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
- package/daemon/dist/domain/workflow-validator.js +39 -24
- package/daemon/dist/domain/workflow-validator.js.map +1 -1
- package/daemon/dist/index.d.ts.map +1 -1
- package/daemon/dist/index.js +38 -96
- package/daemon/dist/index.js.map +1 -1
- package/daemon/dist/project-lifecycle-surface.d.ts +1 -1
- package/daemon/dist/project-lifecycle-surface.d.ts.map +1 -1
- package/daemon/dist/routes/activity.js +1 -1
- package/daemon/dist/routes/activity.js.map +1 -1
- package/daemon/dist/routes/config.d.ts +3 -1
- package/daemon/dist/routes/config.d.ts.map +1 -1
- package/daemon/dist/routes/config.js +11 -1
- package/daemon/dist/routes/config.js.map +1 -1
- package/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/daemon/dist/routes/gateway.js +10 -0
- package/daemon/dist/routes/gateway.js.map +1 -1
- package/daemon/dist/routes/missions.d.ts.map +1 -1
- package/daemon/dist/routes/missions.js +5 -2
- package/daemon/dist/routes/missions.js.map +1 -1
- package/daemon/dist/routes/proof.d.ts +3 -0
- package/daemon/dist/routes/proof.d.ts.map +1 -0
- package/daemon/dist/routes/proof.js +65 -0
- package/daemon/dist/routes/proof.js.map +1 -0
- package/daemon/dist/routes/queue.d.ts.map +1 -1
- package/daemon/dist/routes/queue.js +4 -3
- package/daemon/dist/routes/queue.js.map +1 -1
- package/daemon/dist/routes/require-sender-identity.d.ts +3 -1
- package/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/daemon/dist/routes/require-sender-identity.js +11 -5
- package/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/daemon/dist/routes/review.d.ts.map +1 -1
- package/daemon/dist/routes/review.js +3 -2
- package/daemon/dist/routes/review.js.map +1 -1
- package/daemon/dist/routes/rigs.d.ts.map +1 -1
- package/daemon/dist/routes/rigs.js +4 -3
- package/daemon/dist/routes/rigs.js.map +1 -1
- package/daemon/dist/routes/scopes.d.ts.map +1 -1
- package/daemon/dist/routes/scopes.js +15 -4
- package/daemon/dist/routes/scopes.js.map +1 -1
- package/daemon/dist/routes/seat.d.ts +4 -0
- package/daemon/dist/routes/seat.d.ts.map +1 -1
- package/daemon/dist/routes/seat.js +1 -1
- package/daemon/dist/routes/seat.js.map +1 -1
- package/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/daemon/dist/routes/sessions.js +95 -27
- package/daemon/dist/routes/sessions.js.map +1 -1
- package/daemon/dist/routes/slices.d.ts.map +1 -1
- package/daemon/dist/routes/slices.js +8 -2
- package/daemon/dist/routes/slices.js.map +1 -1
- package/daemon/dist/routes/startup.d.ts +7 -0
- package/daemon/dist/routes/startup.d.ts.map +1 -0
- package/daemon/dist/routes/startup.js +221 -0
- package/daemon/dist/routes/startup.js.map +1 -0
- package/daemon/dist/routes/up.d.ts.map +1 -1
- package/daemon/dist/routes/up.js +2 -1
- package/daemon/dist/routes/up.js.map +1 -1
- package/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/daemon/dist/routes/workflow.js +49 -3
- package/daemon/dist/routes/workflow.js.map +1 -1
- package/daemon/dist/server.d.ts +1 -0
- package/daemon/dist/server.d.ts.map +1 -1
- package/daemon/dist/server.js +7 -1
- package/daemon/dist/server.js.map +1 -1
- package/daemon/dist/startup.d.ts.map +1 -1
- package/daemon/dist/startup.js +21 -5
- package/daemon/dist/startup.js.map +1 -1
- package/daemon/docs/reference/agent-spec.md +7 -1
- package/daemon/docs/reference/getting-started.md +147 -30
- package/daemon/docs/reference/health-diagnosis.md +26 -0
- package/daemon/docs/reference/legacy-topology-migration.md +1 -2
- package/daemon/docs/reference/mission-install.md +10 -11
- package/daemon/docs/reference/planning-dial.md +12 -14
- package/daemon/docs/reference/project-release-profile.yaml +86 -0
- package/daemon/docs/reference/refocus-channel.md +1 -4
- package/daemon/docs/reference/release-boundary.md +38 -30
- package/daemon/docs/reference/rig-spec.md +49 -10
- package/daemon/docs/reference/sdlc-conventions.md +16 -5
- package/daemon/docs/reference/wave-sdlc.md +5 -16
- package/daemon/docs/reference/worktree-builds.md +3 -3
- package/daemon/policies/examples/my-cautious-dev.policy.md +1 -1
- package/daemon/specs/agents/conveyor/planner/guidance/role.md +5 -3
- package/daemon/specs/agents/conveyor/planner/startup/context.md +13 -4
- package/daemon/specs/agents/design/product-designer/agent.yaml +4 -3
- package/daemon/specs/agents/design/product-designer/guidance/role.md +12 -10
- package/daemon/specs/agents/product-management/pm/guidance/role.md +19 -17
- package/daemon/specs/agents/shared/skills/core/agent-starters/SKILL.md +21 -19
- package/daemon/specs/agents/shared/skills/core/agent-startup-and-context-ingestion/SKILL.md +11 -10
- package/daemon/specs/agents/shared/skills/core/cross-host-rig-commands/SKILL.md +84 -148
- package/daemon/specs/agents/shared/skills/core/openrig-architect/SKILL.md +40 -47
- package/daemon/specs/agents/shared/skills/core/openrig-upgrade/SKILL.md +16 -0
- package/daemon/specs/agents/shared/skills/core/session-source-fork/SKILL.md +12 -10
- package/daemon/specs/agents/shared/skills/core/topology-mutation-and-seat-management/SKILL.md +15 -13
- package/daemon/specs/agents/shared/skills/pm/exec-summary/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/pm/plan-review/SKILL.md +2 -2
- package/daemon/specs/agents/shared/skills/pm/requirements-writer/SKILL.md +1 -1
- package/daemon/specs/agents/shared/skills/pm/ui-mockup/SKILL.md +3 -3
- package/daemon/specs/agents/shared/skills/pods/orchestration-team/SKILL.md +41 -59
- package/daemon/specs/agents/shared/skills/process/agent-browser/LOCAL-INSIGHTS.md +24 -53
- package/daemon/specs/agents/shared/skills/process/systematic-debugging/find-polluter.sh +29 -15
- package/daemon/specs/agents/shared/skills/process/test-driven-development/SKILL.md +47 -40
- package/daemon/specs/agents/shared/skills/process/verification-before-completion/SKILL.md +3 -3
- package/daemon/specs/rigs/launch/first-project/CULTURE.md +39 -0
- package/daemon/specs/rigs/launch/first-project/rig.yaml +31 -0
- package/daemon/specs/rigs/launch/kernel/agents/advisor/lead/startup/context.md +1 -1
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/guidance/role.md +24 -10
- package/daemon/specs/rigs/launch/kernel/agents/operator/agent/startup/context.md +11 -12
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/guidance/role.md +19 -11
- package/daemon/specs/rigs/launch/kernel/agents/queue/worker/startup/context.md +3 -2
- package/daemon/specs/rigs/launch/kernel/culture/CULTURE.md +15 -8
- package/daemon/specs/rigs/launch/kernel/rig-claude-only.yaml +7 -0
- package/daemon/specs/rigs/launch/kernel/rig-codex-only.yaml +7 -0
- package/daemon/specs/rigs/launch/kernel/rig.yaml +9 -4
- package/daemon/specs/rigs/preview/product-team/topology/seats/dev1-qa/CRAFT.md +6 -4
- package/dist/bin-wrapper.d.ts +1 -0
- package/dist/bin-wrapper.d.ts.map +1 -1
- package/dist/bin-wrapper.js +13 -0
- package/dist/bin-wrapper.js.map +1 -1
- package/dist/build-info.js +3 -3
- package/dist/client.d.ts +6 -20
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +53 -32
- package/dist/client.js.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +1 -0
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/context.d.ts.map +1 -1
- package/dist/commands/context.js +15 -13
- package/dist/commands/context.js.map +1 -1
- package/dist/commands/crash-cart.d.ts.map +1 -1
- package/dist/commands/crash-cart.js +20 -6
- package/dist/commands/crash-cart.js.map +1 -1
- package/dist/commands/daemon.d.ts.map +1 -1
- package/dist/commands/daemon.js +31 -27
- package/dist/commands/daemon.js.map +1 -1
- package/dist/commands/destroy.js +1 -1
- package/dist/commands/destroy.js.map +1 -1
- package/dist/commands/health.d.ts.map +1 -1
- package/dist/commands/health.js +59 -7
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/launch.d.ts.map +1 -1
- package/dist/commands/launch.js +2 -2
- package/dist/commands/launch.js.map +1 -1
- package/dist/commands/proof.d.ts +2 -2
- package/dist/commands/proof.d.ts.map +1 -1
- package/dist/commands/proof.js +84 -4
- package/dist/commands/proof.js.map +1 -1
- package/dist/commands/queue.d.ts.map +1 -1
- package/dist/commands/queue.js +10 -6
- package/dist/commands/queue.js.map +1 -1
- package/dist/commands/send.d.ts.map +1 -1
- package/dist/commands/send.js +4 -8
- package/dist/commands/send.js.map +1 -1
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +10 -9
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/tui.d.ts +2 -0
- package/dist/commands/tui.d.ts.map +1 -1
- package/dist/commands/tui.js +26 -10
- package/dist/commands/tui.js.map +1 -1
- package/dist/commands/walk.d.ts.map +1 -1
- package/dist/commands/walk.js +24 -48
- package/dist/commands/walk.js.map +1 -1
- package/dist/commands/workflow-render.d.ts +69 -0
- package/dist/commands/workflow-render.d.ts.map +1 -1
- package/dist/commands/workflow-render.js +53 -1
- package/dist/commands/workflow-render.js.map +1 -1
- package/dist/commands/workflow.d.ts.map +1 -1
- package/dist/commands/workflow.js +110 -7
- package/dist/commands/workflow.js.map +1 -1
- package/dist/config-store.d.ts +2 -1
- package/dist/config-store.d.ts.map +1 -1
- package/dist/config-store.js +15 -0
- package/dist/config-store.js.map +1 -1
- package/dist/cross-host-executor.d.ts +1 -1
- package/dist/cross-host-executor.js +2 -2
- package/dist/cross-host-executor.js.map +1 -1
- package/dist/daemon-lifecycle.d.ts +8 -11
- package/dist/daemon-lifecycle.d.ts.map +1 -1
- package/dist/daemon-lifecycle.js +281 -146
- package/dist/daemon-lifecycle.js.map +1 -1
- package/dist/daemon-start-lock.d.ts +9 -0
- package/dist/daemon-start-lock.d.ts.map +1 -0
- package/dist/daemon-start-lock.js +47 -0
- package/dist/daemon-start-lock.js.map +1 -0
- package/dist/front-door.d.ts.map +1 -1
- package/dist/front-door.js +11 -1
- package/dist/front-door.js.map +1 -1
- package/dist/lib/file-transfer.js +1 -1
- package/dist/lib/file-transfer.js.map +1 -1
- package/dist/lib/walk-consumption.d.ts +6 -0
- package/dist/lib/walk-consumption.d.ts.map +1 -0
- package/dist/lib/walk-consumption.js +78 -0
- package/dist/lib/walk-consumption.js.map +1 -0
- package/dist/local-origin.d.ts +3 -0
- package/dist/local-origin.d.ts.map +1 -0
- package/dist/local-origin.js +37 -0
- package/dist/local-origin.js.map +1 -0
- package/dist/read-view.d.ts +17 -0
- package/dist/read-view.d.ts.map +1 -0
- package/dist/read-view.js +17 -0
- package/dist/read-view.js.map +1 -0
- package/dist/shared-tui.d.ts +12 -0
- package/dist/shared-tui.d.ts.map +1 -0
- package/dist/shared-tui.js +37 -0
- package/dist/shared-tui.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/adapters/codex-resume.d.ts +1 -0
- package/node_modules/@openrig/daemon/dist/adapters/codex-resume.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/codex-resume.js +2 -9
- package/node_modules/@openrig/daemon/dist/adapters/codex-resume.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/codex-runtime-adapter.d.ts +7 -3
- package/node_modules/@openrig/daemon/dist/adapters/codex-runtime-adapter.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/codex-runtime-adapter.js +26 -30
- package/node_modules/@openrig/daemon/dist/adapters/codex-runtime-adapter.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/tmux.d.ts +22 -10
- package/node_modules/@openrig/daemon/dist/adapters/tmux.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/adapters/tmux.js +71 -36
- package/node_modules/@openrig/daemon/dist/adapters/tmux.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/build-info.js +3 -3
- package/node_modules/@openrig/daemon/dist/daemon-shutdown.d.ts +27 -0
- package/node_modules/@openrig/daemon/dist/daemon-shutdown.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/daemon-shutdown.js +84 -0
- package/node_modules/@openrig/daemon/dist/daemon-shutdown.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.d.ts +2 -2
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.js +5 -5
- package/node_modules/@openrig/daemon/dist/domain/active-occupant.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.d.ts +1 -0
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.js +32 -23
- package/node_modules/@openrig/daemon/dist/domain/codex-thread-id.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.js +7 -28
- package/node_modules/@openrig/daemon/dist/domain/context-usage-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-conductor.js +1 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-conductor.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-discovery.d.ts +3 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-discovery.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-discovery.js +15 -4
- package/node_modules/@openrig/daemon/dist/domain/crash-cart-discovery.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/execution-view.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/execution-view.js +68 -5
- package/node_modules/@openrig/daemon/dist/domain/execution-view.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/fresh-occupant-relation.d.ts +8 -0
- package/node_modules/@openrig/daemon/dist/domain/fresh-occupant-relation.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/fresh-occupant-relation.js +31 -0
- package/node_modules/@openrig/daemon/dist/domain/fresh-occupant-relation.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/gateway/channel-operations.d.ts +1 -1
- package/node_modules/@openrig/daemon/dist/domain/gateway/channel-operations.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/gateway/connections-projection.d.ts +90 -0
- package/node_modules/@openrig/daemon/dist/domain/gateway/connections-projection.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/gateway/connections-projection.js +171 -0
- package/node_modules/@openrig/daemon/dist/domain/gateway/connections-projection.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.d.ts +3 -1
- package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.js +3 -1
- package/node_modules/@openrig/daemon/dist/domain/gateway/human-registry.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-subsystem.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-subsystem.js +3 -2
- package/node_modules/@openrig/daemon/dist/domain/gateway/slack/slack-subsystem.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/health-diagnosis.js +1 -1
- package/node_modules/@openrig/daemon/dist/domain/health-diagnosis.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/kernel-boot.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/kernel-boot.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/kernel-boot.js +1 -1
- package/node_modules/@openrig/daemon/dist/domain/kernel-boot.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-obligations.d.ts +18 -0
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-obligations.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-obligations.js +35 -0
- package/node_modules/@openrig/daemon/dist/domain/lifecycle-obligations.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.js +6 -1
- package/node_modules/@openrig/daemon/dist/domain/model-divergence/current-generation-record.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/native-resume-probe.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/native-resume-probe.js +35 -23
- package/node_modules/@openrig/daemon/dist/domain/native-resume-probe.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/parked-query.d.ts +1 -0
- package/node_modules/@openrig/daemon/dist/domain/parked-query.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/parked-query.js +2 -1
- package/node_modules/@openrig/daemon/dist/domain/parked-query.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.js +2 -2
- package/node_modules/@openrig/daemon/dist/domain/policies/parked-owner-consumer.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/policies/workflow-keepalive.d.ts +1 -0
- package/node_modules/@openrig/daemon/dist/domain/policies/workflow-keepalive.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/policies/workflow-keepalive.js +19 -9
- package/node_modules/@openrig/daemon/dist/domain/policies/workflow-keepalive.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.d.ts +9 -0
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.js +121 -23
- package/node_modules/@openrig/daemon/dist/domain/project-lifecycle-compiler.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/proof/judgments.d.ts +138 -0
- package/node_modules/@openrig/daemon/dist/domain/proof/judgments.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/proof/judgments.js +361 -0
- package/node_modules/@openrig/daemon/dist/domain/proof/judgments.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/proof/source-watch.d.ts +17 -0
- package/node_modules/@openrig/daemon/dist/domain/proof/source-watch.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/proof/source-watch.js +60 -0
- package/node_modules/@openrig/daemon/dist/domain/proof/source-watch.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-owner.d.ts +12 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-owner.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-owner.js +28 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-owner.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-pickup.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-pickup.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-pickup.js +14 -15
- package/node_modules/@openrig/daemon/dist/domain/queue-pickup.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-recovery.d.ts +10 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-recovery.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-recovery.js +27 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-recovery.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.d.ts +13 -6
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.js +177 -63
- package/node_modules/@openrig/daemon/dist/domain/queue-repository.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.d.ts +2 -11
- package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.js +52 -52
- package/node_modules/@openrig/daemon/dist/domain/queue-stuck-sweep.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-wait-backoff.d.ts +29 -2
- package/node_modules/@openrig/daemon/dist/domain/queue-wait-backoff.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-wait-backoff.js +73 -14
- package/node_modules/@openrig/daemon/dist/domain/queue-wait-backoff.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-waiting.d.ts +61 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-waiting.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-waiting.js +108 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-waiting.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.d.ts +9 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.js +122 -62
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-ladder.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.js +1 -0
- package/node_modules/@openrig/daemon/dist/domain/queue-wake-repository.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rehydrate-eligibility.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/rehydrate-eligibility.js +5 -3
- package/node_modules/@openrig/daemon/dist/domain/rehydrate-eligibility.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.js +1 -0
- package/node_modules/@openrig/daemon/dist/domain/restore-orchestrator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.d.ts +7 -4
- package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.js +12 -6
- package/node_modules/@openrig/daemon/dist/domain/restore-plan-preview.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/review/compose.d.ts +9 -1
- package/node_modules/@openrig/daemon/dist/domain/review/compose.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/review/compose.js +26 -7
- package/node_modules/@openrig/daemon/dist/domain/review/compose.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/review/gather.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/review/gather.js +3 -0
- package/node_modules/@openrig/daemon/dist/domain/review/gather.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/review/types.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/review/types.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/runtime-adapter.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/runtime-adapter.js +1 -0
- package/node_modules/@openrig/daemon/dist/domain/runtime-adapter.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/scope/scope-view-projection.d.ts +8 -0
- package/node_modules/@openrig/daemon/dist/domain/scope/scope-view-projection.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/scope/scope-view-projection.js +6 -25
- package/node_modules/@openrig/daemon/dist/domain/scope/scope-view-projection.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.d.ts +21 -0
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.js +55 -2
- package/node_modules/@openrig/daemon/dist/domain/seat-lifecycle-service.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-detail-projector.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-detail-projector.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-detail-projector.js +11 -4
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-detail-projector.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-indexer.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-indexer.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-indexer.js +26 -0
- package/node_modules/@openrig/daemon/dist/domain/slices/slice-indexer.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.js +4 -2
- package/node_modules/@openrig/daemon/dist/domain/snapshot-capture.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.d.ts +11 -0
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.js +69 -20
- package/node_modules/@openrig/daemon/dist/domain/startup-orchestrator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-proof.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-proof.js +10 -9
- package/node_modules/@openrig/daemon/dist/domain/startup-proof.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-resolver.d.ts +3 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-resolver.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-resolver.js +18 -0
- package/node_modules/@openrig/daemon/dist/domain/startup-resolver.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-validation.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-validation.js +12 -1
- package/node_modules/@openrig/daemon/dist/domain/startup-validation.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/types.d.ts +26 -1
- package/node_modules/@openrig/daemon/dist/domain/types.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/types.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-browser.d.ts +33 -0
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-browser.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-browser.js +261 -0
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-browser.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.d.ts +1 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.js +14 -0
- package/node_modules/@openrig/daemon/dist/domain/user-settings/settings-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/view-event-bridge.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/view-event-bridge.js +2 -0
- package/node_modules/@openrig/daemon/dist/domain/view-event-bridge.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/view-projector.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/view-projector.js +4 -0
- package/node_modules/@openrig/daemon/dist/domain/view-projector.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.d.ts +4 -0
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.js +8 -1
- package/node_modules/@openrig/daemon/dist/domain/watchdog-policy-engine.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/watchdog-scheduler.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/domain/watchdog-scheduler.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/watchdog-scheduler.js +3 -0
- package/node_modules/@openrig/daemon/dist/domain/watchdog-scheduler.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-boot-sweep.d.ts +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-boot-sweep.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-boot-sweep.js +3 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-boot-sweep.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-escalation.d.ts +4 -3
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-escalation.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-escalation.js +32 -50
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-escalation.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-readiness.d.ts +39 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-readiness.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-readiness.js +77 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-readiness.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-router.d.ts +7 -3
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-router.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-router.js +13 -7
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception-router.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception.d.ts +6 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception.js +10 -3
- package/node_modules/@openrig/daemon/dist/domain/workflow-exception.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-guidance.d.ts +53 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-guidance.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-guidance.js +212 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-guidance.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-human-destination.d.ts +18 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-human-destination.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-human-destination.js +40 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-human-destination.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.d.ts +2 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.js +7 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-instance-store.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-planning-context.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-planning-context.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-planning-context.js +36 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-planning-context.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.d.ts +15 -5
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.js +97 -78
- package/node_modules/@openrig/daemon/dist/domain/workflow-projector.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-reconciliation.d.ts +55 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-reconciliation.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-reconciliation.js +228 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-reconciliation.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/domain/workflow-role-context.d.ts +4 -6
- package/node_modules/@openrig/daemon/dist/domain/workflow-role-context.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-role-context.js +7 -14
- package/node_modules/@openrig/daemon/dist/domain/workflow-role-context.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.d.ts +91 -5
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.js +163 -39
- package/node_modules/@openrig/daemon/dist/domain/workflow-runtime.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-validator.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/domain/workflow-validator.js +39 -24
- package/node_modules/@openrig/daemon/dist/domain/workflow-validator.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/index.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/index.js +38 -96
- package/node_modules/@openrig/daemon/dist/index.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/project-lifecycle-surface.d.ts +1 -1
- package/node_modules/@openrig/daemon/dist/project-lifecycle-surface.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/activity.js +1 -1
- package/node_modules/@openrig/daemon/dist/routes/activity.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/config.d.ts +3 -1
- package/node_modules/@openrig/daemon/dist/routes/config.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/config.js +11 -1
- package/node_modules/@openrig/daemon/dist/routes/config.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/gateway.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/gateway.js +10 -0
- package/node_modules/@openrig/daemon/dist/routes/gateway.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/missions.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/missions.js +5 -2
- package/node_modules/@openrig/daemon/dist/routes/missions.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/proof.d.ts +3 -0
- package/node_modules/@openrig/daemon/dist/routes/proof.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/routes/proof.js +65 -0
- package/node_modules/@openrig/daemon/dist/routes/proof.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/routes/queue.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/queue.js +4 -3
- package/node_modules/@openrig/daemon/dist/routes/queue.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/require-sender-identity.d.ts +3 -1
- package/node_modules/@openrig/daemon/dist/routes/require-sender-identity.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/require-sender-identity.js +11 -5
- package/node_modules/@openrig/daemon/dist/routes/require-sender-identity.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/review.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/review.js +3 -2
- package/node_modules/@openrig/daemon/dist/routes/review.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/rigs.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/rigs.js +4 -3
- package/node_modules/@openrig/daemon/dist/routes/rigs.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/scopes.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/scopes.js +15 -4
- package/node_modules/@openrig/daemon/dist/routes/scopes.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/seat.d.ts +4 -0
- package/node_modules/@openrig/daemon/dist/routes/seat.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/seat.js +1 -1
- package/node_modules/@openrig/daemon/dist/routes/seat.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/sessions.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/sessions.js +95 -27
- package/node_modules/@openrig/daemon/dist/routes/sessions.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/slices.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/slices.js +8 -2
- package/node_modules/@openrig/daemon/dist/routes/slices.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/startup.d.ts +7 -0
- package/node_modules/@openrig/daemon/dist/routes/startup.d.ts.map +1 -0
- package/node_modules/@openrig/daemon/dist/routes/startup.js +221 -0
- package/node_modules/@openrig/daemon/dist/routes/startup.js.map +1 -0
- package/node_modules/@openrig/daemon/dist/routes/up.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/up.js +2 -1
- package/node_modules/@openrig/daemon/dist/routes/up.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/workflow.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/routes/workflow.js +49 -3
- package/node_modules/@openrig/daemon/dist/routes/workflow.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/server.d.ts +1 -0
- package/node_modules/@openrig/daemon/dist/server.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/server.js +7 -1
- package/node_modules/@openrig/daemon/dist/server.js.map +1 -1
- package/node_modules/@openrig/daemon/dist/startup.d.ts.map +1 -1
- package/node_modules/@openrig/daemon/dist/startup.js +21 -5
- package/node_modules/@openrig/daemon/dist/startup.js.map +1 -1
- package/node_modules/@openrig/daemon/package.json +5 -1
- package/package.json +3 -2
- package/tui/dist/commands/completion.d.ts +8 -0
- package/tui/dist/commands/completion.d.ts.map +1 -0
- package/tui/dist/commands/completion.js +37 -0
- package/tui/dist/commands/completion.js.map +1 -0
- package/tui/dist/commands/registry.d.ts +7 -1
- package/tui/dist/commands/registry.d.ts.map +1 -1
- package/tui/dist/commands/registry.js +51 -0
- package/tui/dist/commands/registry.js.map +1 -1
- package/tui/dist/config/config-model.d.ts +69 -0
- package/tui/dist/config/config-model.d.ts.map +1 -0
- package/tui/dist/config/config-model.js +215 -0
- package/tui/dist/config/config-model.js.map +1 -0
- package/tui/dist/connections/connections-model.d.ts +72 -0
- package/tui/dist/connections/connections-model.d.ts.map +1 -0
- package/tui/dist/connections/connections-model.js +64 -0
- package/tui/dist/connections/connections-model.js.map +1 -0
- package/tui/dist/crash-cart/from-emit.d.ts +5 -5
- package/tui/dist/crash-cart/from-emit.d.ts.map +1 -1
- package/tui/dist/crash-cart/from-emit.js +15 -9
- package/tui/dist/crash-cart/from-emit.js.map +1 -1
- package/tui/dist/crash-cart/keys.d.ts +1 -1
- package/tui/dist/crash-cart/keys.d.ts.map +1 -1
- package/tui/dist/crash-cart/keys.js +2 -0
- package/tui/dist/crash-cart/keys.js.map +1 -1
- package/tui/dist/crash-cart/start-daemon.d.ts +4 -0
- package/tui/dist/crash-cart/start-daemon.d.ts.map +1 -0
- package/tui/dist/crash-cart/start-daemon.js +12 -0
- package/tui/dist/crash-cart/start-daemon.js.map +1 -0
- package/tui/dist/daemon-client.d.ts +11 -0
- package/tui/dist/daemon-client.d.ts.map +1 -1
- package/tui/dist/daemon-client.js +38 -3
- package/tui/dist/daemon-client.js.map +1 -1
- package/tui/dist/detail.d.ts +3 -0
- package/tui/dist/detail.d.ts.map +1 -1
- package/tui/dist/detail.js +23 -0
- package/tui/dist/detail.js.map +1 -1
- package/tui/dist/execution/execution-model.d.ts +15 -1
- package/tui/dist/execution/execution-model.d.ts.map +1 -1
- package/tui/dist/execution/execution-model.js +90 -187
- package/tui/dist/execution/execution-model.js.map +1 -1
- package/tui/dist/execution/workflow-model.d.ts +6 -0
- package/tui/dist/execution/workflow-model.d.ts.map +1 -0
- package/tui/dist/execution/workflow-model.js +231 -0
- package/tui/dist/execution/workflow-model.js.map +1 -0
- package/tui/dist/grammar.d.ts.map +1 -1
- package/tui/dist/grammar.js +1 -2
- package/tui/dist/grammar.js.map +1 -1
- package/tui/dist/health/health-model.d.ts +1 -1
- package/tui/dist/health/health-model.d.ts.map +1 -1
- package/tui/dist/health/health-model.js +5 -4
- package/tui/dist/health/health-model.js.map +1 -1
- package/tui/dist/hydrate.d.ts.map +1 -1
- package/tui/dist/hydrate.js +85 -8
- package/tui/dist/hydrate.js.map +1 -1
- package/tui/dist/input.d.ts +2 -0
- package/tui/dist/input.d.ts.map +1 -1
- package/tui/dist/input.js +28 -6
- package/tui/dist/input.js.map +1 -1
- package/tui/dist/live.d.ts +2 -0
- package/tui/dist/live.d.ts.map +1 -1
- package/tui/dist/live.js +17 -1
- package/tui/dist/live.js.map +1 -1
- package/tui/dist/main.js +196 -18
- package/tui/dist/main.js.map +1 -1
- package/tui/dist/render.d.ts +9 -0
- package/tui/dist/render.d.ts.map +1 -1
- package/tui/dist/render.js +177 -80
- package/tui/dist/render.js.map +1 -1
- package/tui/dist/scopes/scopes-model.d.ts +44 -0
- package/tui/dist/scopes/scopes-model.d.ts.map +1 -1
- package/tui/dist/scopes/scopes-model.js +68 -6
- package/tui/dist/scopes/scopes-model.js.map +1 -1
- package/tui/dist/sections.d.ts.map +1 -1
- package/tui/dist/sections.js +2 -0
- package/tui/dist/sections.js.map +1 -1
- package/tui/dist/socket-server.d.ts +4 -0
- package/tui/dist/socket-server.d.ts.map +1 -1
- package/tui/dist/socket-server.js +4 -0
- package/tui/dist/socket-server.js.map +1 -1
- package/tui/dist/startup.d.ts +82 -0
- package/tui/dist/startup.d.ts.map +1 -0
- package/tui/dist/startup.js +273 -0
- package/tui/dist/startup.js.map +1 -0
- package/tui/dist/state.d.ts +3 -1
- package/tui/dist/state.d.ts.map +1 -1
- package/tui/dist/state.js +74 -10
- package/tui/dist/state.js.map +1 -1
- package/tui/dist/stylize.js +3 -3
- package/tui/dist/stylize.js.map +1 -1
- package/tui/dist/time.d.ts +9 -0
- package/tui/dist/time.d.ts.map +1 -0
- package/tui/dist/time.js +42 -0
- package/tui/dist/time.js.map +1 -0
- package/tui/dist/types.d.ts +51 -1
- package/tui/dist/types.d.ts.map +1 -1
- package/ui/dist/assets/{index-wyX378xb.js → index-BVW54ItO.js} +165 -165
- package/ui/dist/index.html +1 -1
|
@@ -56,25 +56,18 @@ export function roleResolutionContext(db, boundRig) {
|
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* fallback. Each exception item is a fresh decision at its own
|
|
64
|
-
* detection moment (not a replay concern).
|
|
59
|
+
* Resolve `role` on the bound rig, returning null for an evidenced no-match
|
|
60
|
+
* or an unbound/vanished rig. Evidence-read failures propagate: they cannot
|
|
61
|
+
* establish that no eligible agent exists and must not select a human.
|
|
62
|
+
* Each exception item uses a fresh snapshot at its detection moment.
|
|
65
63
|
*/
|
|
66
64
|
export function tryResolveRoleByCapability(ctx, role, harness) {
|
|
67
65
|
if (!ctx)
|
|
68
66
|
return null;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (!candidates)
|
|
72
|
-
return null;
|
|
73
|
-
return selectRoleSeat({ role, harness, candidates }).seat;
|
|
74
|
-
}
|
|
75
|
-
catch {
|
|
67
|
+
const candidates = ctx.candidatesForRig();
|
|
68
|
+
if (!candidates)
|
|
76
69
|
return null;
|
|
77
|
-
}
|
|
70
|
+
return selectRoleSeat({ role, harness, candidates }).seat;
|
|
78
71
|
}
|
|
79
72
|
/**
|
|
80
73
|
* The STRUCTURAL role-coverage probe (arch Q2 / guard B1): does ANY
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-role-context.js","sourceRoot":"","sources":["../../src/domain/workflow-role-context.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,uEAAuE;AACvE,qEAAqE;AACrE,EAAE;AACF,gEAAgE;AAChE,qEAAqE;AACrE,kEAAkE;AAClE,4DAA4D;AAC5D,wEAAwE;AACxE,sEAAsE;AACtE,+DAA+D;AAC/D,sEAAsE;AACtE,EAAE;AACF,oEAAoE;AACpE,sEAAsE;AACtE,mEAAmE;AACnE,qEAAqE;AACrE,0DAA0D;AAC1D,kEAAkE;AAClE,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,sEAAsE;AACtE,+BAA+B;AAG/B,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB,GACjB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,cAAc,EAA+B,MAAM,6BAA6B,CAAC;AAc1F;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CACnC,EAAqB,EACrB,QAAmC;IAEnC,IAAI,CAAC,QAAQ;QAAE,OAAO,SAAS,CAAC;IAChC,OAAO;QACL,QAAQ;QACR,gBAAgB,EAAE,GAAG,EAAE;YACrB,MAAM,GAAG,GAAG,EAAE;iBACX,OAAO,CAAC,gEAAgE,CAAC;iBACzE,GAAG,CAAC,QAAQ,CAA+B,CAAC;YAC/C,IAAI,CAAC,GAAG;gBAAE,OAAO,IAAI,CAAC;YACtB,MAAM,OAAO,GAAG,6BAA6B,CAAC,gBAAgB,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;YACpF,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;gBACzB,SAAS,EAAE,CAAC,CAAC,SAAS;gBACtB,IAAI,EAAE,CAAC,CAAC,IAAI;gBACZ,QAAQ,EAAE,CAAC,CAAC,QAAQ;gBACpB,cAAc,EAAE,CAAC,CAAC,cAAc;gBAChC,OAAO,EAAE,CAAC,CAAC,OAAO;gBAClB,gBAAgB,EAAE,CAAC,CAAC,gBAAgB,IAAI,CAAC;gBACzC,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC;gBACvC,cAAc,EAAE,CAAC,CAAC,oBAAoB;aACvC,CAAC,CAAC,CAAC;QACN,CAAC;KACF,CAAC;AACJ,CAAC;AAED
|
|
1
|
+
{"version":3,"file":"workflow-role-context.js","sourceRoot":"","sources":["../../src/domain/workflow-role-context.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,uEAAuE;AACvE,qEAAqE;AACrE,EAAE;AACF,gEAAgE;AAChE,qEAAqE;AACrE,kEAAkE;AAClE,4DAA4D;AAC5D,wEAAwE;AACxE,sEAAsE;AACtE,+DAA+D;AAC/D,sEAAsE;AACtE,EAAE;AACF,oEAAoE;AACpE,sEAAsE;AACtE,mEAAmE;AACnE,qEAAqE;AACrE,0DAA0D;AAC1D,kEAAkE;AAClE,EAAE;AACF,sEAAsE;AACtE,kEAAkE;AAClE,sEAAsE;AACtE,+BAA+B;AAG/B,OAAO,EACL,6BAA6B,EAC7B,wBAAwB,EACxB,gBAAgB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B,OAAO,cAAc,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC,CAAC,IAAI,CAAC;AAC5D,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAC7B,EAAqB,EACrB,QAAgB,EAChB,IAAY;IAEZ,MAAM,GAAG,GAAG,EAAE;SACX,OAAO,CACN;;wCAEkC,CACnC;SACA,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAkB,CAAC;IACxC,OAAO,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;AACnB,CAAC;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,eAAe,CAC7B,EAAqB,EACrB,OAAe,EACf,UAAkB;IAElB,MAAM,GAAG,GAAG,EAAE;SACX,OAAO,CAAC,gEAAgE,CAAC;SACzE,GAAG,CAAC,OAAO,CAA+B,CAAC;IAC9C,IAAI,CAAC,GAAG;QAAE,OAAO,KAAK,CAAC;IACvB,OAAO,gBAAgB,CAAC,EAAE,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,IAAI,CACtC,CAAC,CAAC,EAAE,EAAE,CAAC,wBAAwB,CAAC,CAAC,CAAC,KAAK,UAAU,CAClD,CAAC;AACJ,CAAC"}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { type GuidanceInput } from "./workflow-guidance.js";
|
|
2
|
+
import { type ExceptionReadiness } from "./workflow-exception-readiness.js";
|
|
3
|
+
import { inspectGraph, reviseGraph } from "./workflow-reconciliation.js";
|
|
4
|
+
import { type LifecycleObligation } from "./lifecycle-obligations.js";
|
|
1
5
|
import type Database from "better-sqlite3";
|
|
2
6
|
import type { EventBus } from "./event-bus.js";
|
|
3
7
|
import type { QueueRepository } from "./queue-repository.js";
|
|
4
8
|
import { WorkflowInstanceStore, WorkflowInstanceError } from "./workflow-instance-store.js";
|
|
5
9
|
import { type ExceptionRoute } from "./workflow-exception-router.js";
|
|
10
|
+
import type { WorkflowHumanDestination } from "./workflow-human-destination.js";
|
|
6
11
|
import type { WorkflowExceptionClass } from "./workflow-exception.js";
|
|
7
12
|
import { WorkflowProjector, WorkflowProjectorError, type ProjectStepInput, type ProjectStepResult } from "./workflow-projector.js";
|
|
8
13
|
import { WorkflowSpecCache, WorkflowSpecError } from "./workflow-spec-cache.js";
|
|
@@ -13,6 +18,7 @@ import { type WorkflowDeadlineVerdict } from "./workflow-deadline.js";
|
|
|
13
18
|
import type { WorkflowFailureOccurrence, WorkflowInstance, WorkflowSpecRow, WorkflowStepSpec, WorkflowStepTrailEntry } from "./workflow-types.js";
|
|
14
19
|
import { type LifecycleCompilation } from "./project-lifecycle-compiler.js";
|
|
15
20
|
export interface WorkflowRuntimeDeps {
|
|
21
|
+
guidanceLibrary?: GuidanceInput["library"];
|
|
16
22
|
db: Database.Database;
|
|
17
23
|
eventBus: EventBus;
|
|
18
24
|
queueRepo: QueueRepository;
|
|
@@ -29,11 +35,11 @@ export interface WorkflowRuntimeDeps {
|
|
|
29
35
|
* OPR.0.4.6.WF5 FR-2: the maturity-dial inputs (injected at startup —
|
|
30
36
|
* the projector never reads config itself). hostDefault is read LIVE
|
|
31
37
|
* per exception; absent = the orchestrator-first engine default with
|
|
32
|
-
*
|
|
38
|
+
* registered-human selection when no agent route resolves.
|
|
33
39
|
*/
|
|
34
40
|
exceptionDial?: {
|
|
35
41
|
hostDefault: () => "orchestrator" | "human_only" | null;
|
|
36
|
-
humanFallbackSeat:
|
|
42
|
+
humanFallbackSeat: WorkflowHumanDestination;
|
|
37
43
|
};
|
|
38
44
|
}
|
|
39
45
|
export interface InstantiateInput {
|
|
@@ -88,6 +94,7 @@ export declare class WorkflowRuntime {
|
|
|
88
94
|
readonly trailLog: WorkflowStepTrailLog;
|
|
89
95
|
readonly validator: WorkflowValidator;
|
|
90
96
|
readonly projector: WorkflowProjector;
|
|
97
|
+
private readonly guidanceLibrary?;
|
|
91
98
|
private readonly db;
|
|
92
99
|
private readonly eventBus;
|
|
93
100
|
private readonly queueRepo;
|
|
@@ -95,7 +102,72 @@ export declare class WorkflowRuntime {
|
|
|
95
102
|
private readonly watchdogJobsRepo;
|
|
96
103
|
private readonly exceptionDial?;
|
|
97
104
|
constructor(deps: WorkflowRuntimeDeps);
|
|
98
|
-
|
|
105
|
+
inspectGraph(instanceId: string): import("./workflow-reconciliation.js").GraphReconciliation;
|
|
106
|
+
recoverOperation(key: string): {
|
|
107
|
+
kind: string;
|
|
108
|
+
receipt: Record<string, unknown>;
|
|
109
|
+
instance: WorkflowInstance;
|
|
110
|
+
} | null;
|
|
111
|
+
reviseGraph(input: Parameters<typeof reviseGraph>[2]): {
|
|
112
|
+
replayed: boolean;
|
|
113
|
+
kind: string;
|
|
114
|
+
receipt: Record<string, unknown>;
|
|
115
|
+
instance: WorkflowInstance;
|
|
116
|
+
};
|
|
117
|
+
compileLifecycle(missionPath: string, operationKey?: string): LifecycleCompilation & {
|
|
118
|
+
exceptionReadiness?: ExceptionReadiness;
|
|
119
|
+
};
|
|
120
|
+
private readExceptionReadiness;
|
|
121
|
+
guidance(instanceId: string, options?: Pick<GuidanceInput, "packetId" | "component" | "full">): {
|
|
122
|
+
stories?: {
|
|
123
|
+
address: string;
|
|
124
|
+
text: string;
|
|
125
|
+
}[] | undefined;
|
|
126
|
+
components?: {
|
|
127
|
+
id: string;
|
|
128
|
+
owner?: string;
|
|
129
|
+
admission?: string;
|
|
130
|
+
}[] | undefined;
|
|
131
|
+
edges?: {
|
|
132
|
+
from: string;
|
|
133
|
+
to: string;
|
|
134
|
+
when?: string;
|
|
135
|
+
}[] | undefined;
|
|
136
|
+
teaching?: ({
|
|
137
|
+
id: string;
|
|
138
|
+
owner?: string;
|
|
139
|
+
admission?: string;
|
|
140
|
+
} & {
|
|
141
|
+
address: string;
|
|
142
|
+
text: string;
|
|
143
|
+
})[] | undefined;
|
|
144
|
+
state: string;
|
|
145
|
+
selectionSource: string | null;
|
|
146
|
+
catalogSource: string | null;
|
|
147
|
+
catalogPath: string | null;
|
|
148
|
+
catalogHash: string | null;
|
|
149
|
+
sources: {
|
|
150
|
+
kind: string;
|
|
151
|
+
path: string;
|
|
152
|
+
sha256: string;
|
|
153
|
+
binding: "matches-bound" | "differs-from-bound" | "not-bound";
|
|
154
|
+
}[];
|
|
155
|
+
position: string;
|
|
156
|
+
ownerSession: string | null;
|
|
157
|
+
unknowns: string[];
|
|
158
|
+
expansionCommand: string;
|
|
159
|
+
lines: string[];
|
|
160
|
+
};
|
|
161
|
+
exceptionReadiness(instanceId: string): ExceptionReadiness | null;
|
|
162
|
+
exceptionObligations(instanceId: string): {
|
|
163
|
+
qitemId: string;
|
|
164
|
+
ownerSession: string;
|
|
165
|
+
state: "failed" | "pending" | "denied" | "canceled" | "done" | "in-progress" | "blocked" | "handed-off";
|
|
166
|
+
evidenceRef: string | null;
|
|
167
|
+
tags: string[] | null;
|
|
168
|
+
handedOffFrom: string | null;
|
|
169
|
+
inspectCommand: string;
|
|
170
|
+
}[];
|
|
99
171
|
instantiateLifecycle(input: {
|
|
100
172
|
missionPath: string;
|
|
101
173
|
operationKey: string;
|
|
@@ -110,7 +182,7 @@ export declare class WorkflowRuntime {
|
|
|
110
182
|
* OPR.0.4.6.WF5 FR-2: resolve the maturity dial for a CACHED spec —
|
|
111
183
|
* the class-(b) detection paths (sweep/keepalive) call this through
|
|
112
184
|
* the startup-injected closure. null = spec not cached (the caller's
|
|
113
|
-
*
|
|
185
|
+
* registered-human selection applies). Uses the SAME preferred_targets[0]
|
|
114
186
|
* string-pick as step-owner resolution (arch Seam-A uniformity).
|
|
115
187
|
*/
|
|
116
188
|
resolveExceptionRouteFor(workflowName: string, workflowVersion: string, exceptionClass: WorkflowExceptionClass,
|
|
@@ -132,7 +204,9 @@ export declare class WorkflowRuntime {
|
|
|
132
204
|
* session with that exact name is currently `running` in this daemon's DB.
|
|
133
205
|
* Callers may still inject a custom check (tests, remote-aware futures). */
|
|
134
206
|
private seatLivenessCheck;
|
|
135
|
-
validate(specPath: string, seatLivenessCheck?: SeatLivenessCheckFn): ValidationResult
|
|
207
|
+
validate(specPath: string, seatLivenessCheck?: SeatLivenessCheckFn): ValidationResult & {
|
|
208
|
+
exceptionReadiness: ExceptionReadiness;
|
|
209
|
+
};
|
|
136
210
|
/**
|
|
137
211
|
* Create a workflow instance + first-step qitem. The entry qitem is
|
|
138
212
|
* created in the same transaction as the instance row; subscribers
|
|
@@ -140,6 +214,9 @@ export declare class WorkflowRuntime {
|
|
|
140
214
|
*/
|
|
141
215
|
instantiate(input: InstantiateInput): Promise<InstantiateResult>;
|
|
142
216
|
project(input: ProjectStepInput): Promise<ProjectStepResult>;
|
|
217
|
+
/** Recheck each recorded overdue packet, never a sibling's verdict. The
|
|
218
|
+
* decision and closure share a transaction; boot repairs a crash after project. */
|
|
219
|
+
reconcileStuckExceptions(instanceId?: string): number;
|
|
143
220
|
inspect(instanceId: string): {
|
|
144
221
|
instance: WorkflowInstance;
|
|
145
222
|
frontier: Array<{
|
|
@@ -152,12 +229,15 @@ export declare class WorkflowRuntime {
|
|
|
152
229
|
dependsOn: string[];
|
|
153
230
|
gate: WorkflowStepSpec["gate"] | null;
|
|
154
231
|
acceptance: WorkflowStepSpec["acceptance"] | null;
|
|
232
|
+
receiptRequired: boolean;
|
|
155
233
|
deadline: WorkflowDeadlineVerdict;
|
|
234
|
+
waiting: import("./queue-waiting.js").WaitingView | null;
|
|
156
235
|
}>;
|
|
157
236
|
failures: Array<WorkflowFailureOccurrence & {
|
|
158
237
|
targetedAction: "resume" | "none";
|
|
159
238
|
}>;
|
|
160
239
|
unknowns: string[];
|
|
240
|
+
boundaryObligations: LifecycleObligation[];
|
|
161
241
|
};
|
|
162
242
|
abort(input: {
|
|
163
243
|
instanceId: string;
|
|
@@ -219,6 +299,8 @@ export declare class WorkflowRuntime {
|
|
|
219
299
|
exceptionItemsClosed: number;
|
|
220
300
|
absorbedReplay?: boolean;
|
|
221
301
|
}>;
|
|
302
|
+
/** Called inside the redrive transaction; only this instance's failed packet is resolved. */
|
|
303
|
+
private closeFailureExceptions;
|
|
222
304
|
private resumeFailureOccurrence;
|
|
223
305
|
route(input: {
|
|
224
306
|
instanceId: string;
|
|
@@ -244,9 +326,12 @@ export declare class WorkflowRuntime {
|
|
|
244
326
|
continue(instanceId: string): {
|
|
245
327
|
instance: WorkflowInstanceWithDeadline;
|
|
246
328
|
trail: WorkflowStepTrailEntry[];
|
|
329
|
+
guidance: ReturnType<WorkflowRuntime["guidance"]>;
|
|
330
|
+
reconciliation: ReturnType<typeof inspectGraph>;
|
|
247
331
|
frontier: ReturnType<WorkflowRuntime["inspect"]>["frontier"];
|
|
248
332
|
failures: ReturnType<WorkflowRuntime["inspect"]>["failures"];
|
|
249
333
|
unknowns: string[];
|
|
334
|
+
boundaryObligations: LifecycleObligation[];
|
|
250
335
|
};
|
|
251
336
|
/**
|
|
252
337
|
* OPR.0.4.6.WF1 FR-2 COMPLETION FIXBACK (build-vs-ratified-AC debt,
|
|
@@ -278,6 +363,7 @@ export type WorkflowInstanceWithDeadline = WorkflowInstance & {
|
|
|
278
363
|
export type WorkflowInstanceWithInspection = WorkflowInstanceWithDeadline & {
|
|
279
364
|
frontierPackets: ReturnType<WorkflowRuntime["inspect"]>["frontier"];
|
|
280
365
|
failureOccurrences: ReturnType<WorkflowRuntime["inspect"]>["failures"];
|
|
366
|
+
boundaryObligations: LifecycleObligation[];
|
|
281
367
|
unknowns: string[];
|
|
282
368
|
};
|
|
283
369
|
export { WorkflowInstanceError, WorkflowProjectorError, WorkflowSpecError, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-runtime.d.ts","sourceRoot":"","sources":["../../src/domain/workflow-runtime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"workflow-runtime.d.ts","sourceRoot":"","sources":["../../src/domain/workflow-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAClF,OAAO,EAA2D,KAAK,kBAAkB,EAAE,MAAM,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S,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GACjE,8BAA8B,EAAE;CAapC;AAED,kFAAkF;AAClF,MAAM,MAAM,4BAA4B,GAAG,gBAAgB,GAAG;IAC5D,QAAQ,EAAE,uBAAuB,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,8BAA8B,GAAG,4BAA4B,GAAG;IAC1E,eAAe,EAAE,UAAU,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IACpE,kBAAkB,EAAE,UAAU,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC;IACvE,mBAAmB,EAAE,mBAAmB,EAAE,CAAC;IAC3C,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AA4CF,OAAO,EACL,qBAAqB,EACrB,sBAAsB,EACtB,iBAAiB,GAClB,CAAC"}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
// - validate(specPath)
|
|
6
|
-
// - instantiate(specPath, rootObjective, createdBySession)
|
|
7
|
-
// - project(...) (delegates to projector)
|
|
8
|
-
// - continue(instanceId) (idempotent advance; v1 = read-only inspector)
|
|
9
|
-
//
|
|
10
|
-
// Pattern mirrors Phase B's ProjectClassifier facade shape.
|
|
1
|
+
import { readWorkflowGuidance } from "./workflow-guidance.js";
|
|
2
|
+
import { exceptionConfigurationSource, inspectExceptionReadiness } from "./workflow-exception-readiness.js";
|
|
3
|
+
import { inspectGraph, recoverGraphOperation, reviseGraph } from "./workflow-reconciliation.js";
|
|
4
|
+
import { lifecycleObligations, requiredLifecycleSteps } from "./lifecycle-obligations.js";
|
|
11
5
|
import { WorkflowInstanceStore, WorkflowInstanceError, } from "./workflow-instance-store.js";
|
|
12
6
|
import { resolveExceptionRoute } from "./workflow-exception-router.js";
|
|
13
7
|
import { classifyGateTrip, workflowExceptionTags } from "./workflow-exception.js";
|
|
@@ -29,6 +23,7 @@ export class WorkflowRuntime {
|
|
|
29
23
|
trailLog;
|
|
30
24
|
validator;
|
|
31
25
|
projector;
|
|
26
|
+
guidanceLibrary;
|
|
32
27
|
db;
|
|
33
28
|
eventBus;
|
|
34
29
|
queueRepo;
|
|
@@ -36,6 +31,7 @@ export class WorkflowRuntime {
|
|
|
36
31
|
watchdogJobsRepo;
|
|
37
32
|
exceptionDial;
|
|
38
33
|
constructor(deps) {
|
|
34
|
+
this.guidanceLibrary = deps.guidanceLibrary;
|
|
39
35
|
this.db = deps.db;
|
|
40
36
|
this.eventBus = deps.eventBus;
|
|
41
37
|
this.queueRepo = deps.queueRepo;
|
|
@@ -46,12 +42,60 @@ export class WorkflowRuntime {
|
|
|
46
42
|
this.instanceStore = new WorkflowInstanceStore(this.db, this.now);
|
|
47
43
|
this.trailLog = new WorkflowStepTrailLog(this.db);
|
|
48
44
|
this.validator = new WorkflowValidator();
|
|
49
|
-
this.projector = new WorkflowProjector(this.db, this.eventBus, this.queueRepo, this.instanceStore, this.trailLog, this.specCache, this.now, this.watchdogJobsRepo, deps.exceptionDial);
|
|
45
|
+
this.projector = new WorkflowProjector(this.db, this.eventBus, this.queueRepo, this.instanceStore, this.trailLog, this.specCache, this.now, this.watchdogJobsRepo, deps.exceptionDial, deps.guidanceLibrary);
|
|
46
|
+
this.queueRepo.attachWorkflowGuidance(packetId => {
|
|
47
|
+
const packet = this.queueRepo.getById(packetId);
|
|
48
|
+
const instanceId = packet?.tags?.find(tag => tag.startsWith("instance:"))?.slice(9);
|
|
49
|
+
if (!instanceId)
|
|
50
|
+
return [];
|
|
51
|
+
const guidance = this.guidance(instanceId, { packetId });
|
|
52
|
+
return guidance.state === "unselected" ? [] : guidance.lines;
|
|
53
|
+
});
|
|
50
54
|
}
|
|
55
|
+
inspectGraph(instanceId) { return inspectGraph(this.db, instanceId); }
|
|
56
|
+
recoverOperation(key) { return recoverGraphOperation(this.db, key); }
|
|
57
|
+
reviseGraph(input) { return reviseGraph(this.db, this.eventBus, input); }
|
|
51
58
|
compileLifecycle(missionPath, operationKey) {
|
|
52
|
-
|
|
59
|
+
const compiled = compileProjectLifecycle({ missionPath, operationKey });
|
|
60
|
+
return { ...compiled, ...(compiled.workflowSpec ? { exceptionReadiness: this.readExceptionReadiness(compiled.workflowSpec, exceptionConfigurationSource(compiled.sources.find(s => s.kind === "mission").path, compiled.graphSource)) } : {}) };
|
|
61
|
+
}
|
|
62
|
+
readExceptionReadiness(spec, source, boundRig, instanceId) {
|
|
63
|
+
return inspectExceptionReadiness({ db: this.db, spec, source, boundRig, instanceId,
|
|
64
|
+
hostDefault: () => this.exceptionDial?.hostDefault() ?? null, humanFallbackSeat: this.exceptionDial?.humanFallbackSeat });
|
|
65
|
+
}
|
|
66
|
+
guidance(instanceId, options = {}) {
|
|
67
|
+
const instance = this.instanceStore.getByIdOrThrow(instanceId);
|
|
68
|
+
const spec = this.specCache.getByNameVersion(instance.workflowName, instance.workflowVersion)?.spec;
|
|
69
|
+
const packetId = options.packetId ?? (instance.currentFrontier.length === 1 ? instance.currentFrontier[0] : undefined);
|
|
70
|
+
if (packetId && !instance.currentFrontier.includes(packetId))
|
|
71
|
+
throw new WorkflowProjectorError("packet_not_on_frontier", "Guidance needs a current frontier packet; inspect workflow show first.");
|
|
72
|
+
const packet = packetId ? this.queueRepo.getById(packetId) : null;
|
|
73
|
+
const stepId = packetId ? this.instanceStore.getFrontierBinding(instanceId, packetId)?.stepId ?? (instance.currentFrontier.length === 1 ? instance.currentStepId : null) : null;
|
|
74
|
+
return readWorkflowGuidance({ instanceId, contextRefs: spec?.context_refs, binding: instance.lifecycleBinding,
|
|
75
|
+
stepId: stepId ?? undefined, ownerSession: packet?.destinationSession, library: this.guidanceLibrary, ...options, packetId });
|
|
76
|
+
}
|
|
77
|
+
exceptionReadiness(instanceId) {
|
|
78
|
+
const instance = this.instanceStore.getByIdOrThrow(instanceId);
|
|
79
|
+
const row = this.specCache.getByNameVersion(instance.workflowName, instance.workflowVersion);
|
|
80
|
+
if (!row)
|
|
81
|
+
return null;
|
|
82
|
+
return this.readExceptionReadiness(row.spec, exceptionConfigurationSource(row.sourcePath, instance.lifecycleBinding?.graphSource), instance.boundRig, instanceId);
|
|
83
|
+
}
|
|
84
|
+
exceptionObligations(instanceId) {
|
|
85
|
+
return this.db.prepare(`SELECT qitem_id FROM queue_items WHERE json_valid(tags)
|
|
86
|
+
AND EXISTS (SELECT 1 FROM json_each(tags) WHERE value = 'workflow-exception')
|
|
87
|
+
AND EXISTS (SELECT 1 FROM json_each(tags) WHERE value = ?) ORDER BY ts_created, qitem_id`)
|
|
88
|
+
.all(`instance:${instanceId}`).map(row => {
|
|
89
|
+
const q = this.queueRepo.getById(row.qitem_id);
|
|
90
|
+
return { qitemId: q.qitemId, ownerSession: q.destinationSession, state: q.state,
|
|
91
|
+
evidenceRef: q.evidenceRef, tags: q.tags, handedOffFrom: q.handedOffFrom,
|
|
92
|
+
inspectCommand: "rig queue show " + q.qitemId + " --full --json" };
|
|
93
|
+
});
|
|
53
94
|
}
|
|
54
95
|
async instantiateLifecycle(input) {
|
|
96
|
+
if (this.recoverOperation(input.operationKey)?.kind === "revision") {
|
|
97
|
+
throw new WorkflowProjectorError("lifecycle_operation_conflict", "This key already records a graph revision; inspect workflow operation before choosing a new creation key.");
|
|
98
|
+
}
|
|
55
99
|
const compilation = this.compileLifecycle(input.missionPath, input.operationKey);
|
|
56
100
|
if (!compilation.eligible || !compilation.workflowSpec) {
|
|
57
101
|
throw new WorkflowProjectorError("lifecycle_not_eligible", "compiled lifecycle is inspectable but not eligible for instantiation", { missionPath: input.missionPath, unknowns: compilation.unknowns });
|
|
@@ -70,6 +114,8 @@ export class WorkflowRuntime {
|
|
|
70
114
|
identity: compilation.identity,
|
|
71
115
|
sources: compilation.sources,
|
|
72
116
|
dependencies: compilation.dependencies,
|
|
117
|
+
graphSource: compilation.graphSource,
|
|
118
|
+
initialInputDigest: compilation.compiledInputDigest,
|
|
73
119
|
},
|
|
74
120
|
},
|
|
75
121
|
});
|
|
@@ -79,7 +125,7 @@ export class WorkflowRuntime {
|
|
|
79
125
|
* OPR.0.4.6.WF5 FR-2: resolve the maturity dial for a CACHED spec —
|
|
80
126
|
* the class-(b) detection paths (sweep/keepalive) call this through
|
|
81
127
|
* the startup-injected closure. null = spec not cached (the caller's
|
|
82
|
-
*
|
|
128
|
+
* registered-human selection applies). Uses the SAME preferred_targets[0]
|
|
83
129
|
* string-pick as step-owner resolution (arch Seam-A uniformity).
|
|
84
130
|
*/
|
|
85
131
|
resolveExceptionRouteFor(workflowName, workflowVersion, exceptionClass,
|
|
@@ -99,7 +145,7 @@ export class WorkflowRuntime {
|
|
|
99
145
|
hostDialDefault: this.exceptionDial?.hostDefault() ?? null,
|
|
100
146
|
resolveRoleTarget: (role) => spec.roles?.[role]?.preferred_targets?.[0] ??
|
|
101
147
|
tryResolveRoleByCapability(roleCtx, role),
|
|
102
|
-
humanFallbackSeat: this.exceptionDial?.humanFallbackSeat
|
|
148
|
+
humanFallbackSeat: this.exceptionDial?.humanFallbackSeat,
|
|
103
149
|
});
|
|
104
150
|
}
|
|
105
151
|
/**
|
|
@@ -139,7 +185,8 @@ export class WorkflowRuntime {
|
|
|
139
185
|
};
|
|
140
186
|
validate(specPath, seatLivenessCheck) {
|
|
141
187
|
const specRow = this.specCache.readThrough(specPath);
|
|
142
|
-
return this.validator.validate(specRow.spec, seatLivenessCheck ?? this.seatLivenessCheck, this.hostRegistryLookup)
|
|
188
|
+
return { ...this.validator.validate(specRow.spec, seatLivenessCheck ?? this.seatLivenessCheck, this.hostRegistryLookup),
|
|
189
|
+
exceptionReadiness: this.readExceptionReadiness(specRow.spec, exceptionConfigurationSource(specRow.sourcePath)) };
|
|
143
190
|
}
|
|
144
191
|
/**
|
|
145
192
|
* Create a workflow instance + first-step qitem. The entry qitem is
|
|
@@ -157,10 +204,10 @@ export class WorkflowRuntime {
|
|
|
157
204
|
}
|
|
158
205
|
const existing = this.instanceStore.getByLifecycleOperationKey(input.lifecycle.operationKey);
|
|
159
206
|
if (existing) {
|
|
160
|
-
if (existing.compiledInputDigest !== input.lifecycle.compiledInputDigest) {
|
|
207
|
+
if ((existing.lifecycleBinding?.initialInputDigest ?? existing.compiledInputDigest) !== input.lifecycle.compiledInputDigest) {
|
|
161
208
|
throw new WorkflowProjectorError("lifecycle_operation_conflict", `lifecycle operation key ${input.lifecycle.operationKey} already binds different compiled input bytes`, {
|
|
162
209
|
operationKey: input.lifecycle.operationKey,
|
|
163
|
-
expectedDigest: existing.compiledInputDigest,
|
|
210
|
+
expectedDigest: existing.lifecycleBinding?.initialInputDigest ?? existing.compiledInputDigest,
|
|
164
211
|
attemptedDigest: input.lifecycle.compiledInputDigest,
|
|
165
212
|
instanceId: existing.instanceId,
|
|
166
213
|
});
|
|
@@ -495,6 +542,8 @@ export class WorkflowRuntime {
|
|
|
495
542
|
sourceSession: input.createdBySession,
|
|
496
543
|
destinationSession: entryOwner,
|
|
497
544
|
body: workflowInstantiateBody({
|
|
545
|
+
binding: instance.lifecycleBinding,
|
|
546
|
+
library: this.guidanceLibrary,
|
|
498
547
|
spec: specRow.spec,
|
|
499
548
|
instanceId: instance.instanceId,
|
|
500
549
|
entryStep,
|
|
@@ -581,7 +630,64 @@ export class WorkflowRuntime {
|
|
|
581
630
|
};
|
|
582
631
|
}
|
|
583
632
|
async project(input) {
|
|
584
|
-
|
|
633
|
+
const result = await this.projector.project(input);
|
|
634
|
+
this.reconcileStuckExceptions(input.instanceId);
|
|
635
|
+
return result;
|
|
636
|
+
}
|
|
637
|
+
/** Recheck each recorded overdue packet, never a sibling's verdict. The
|
|
638
|
+
* decision and closure share a transaction; boot repairs a crash after project. */
|
|
639
|
+
reconcileStuckExceptions(instanceId) {
|
|
640
|
+
let closed = 0;
|
|
641
|
+
this.eventBus.withNotifyEnvelope((register) => {
|
|
642
|
+
const rows = this.db.prepare(`SELECT qitem_id, tags FROM queue_items
|
|
643
|
+
WHERE state IN ('pending','in-progress','blocked') AND json_valid(tags)
|
|
644
|
+
AND EXISTS (SELECT 1 FROM json_each(tags) WHERE value = 'workflow-exception')
|
|
645
|
+
AND EXISTS (SELECT 1 FROM json_each(tags) WHERE value = 'exception:stuck_overdue')
|
|
646
|
+
AND (? IS NULL OR EXISTS (SELECT 1 FROM json_each(tags) WHERE value = ?))`).all(instanceId ?? null, `instance:${instanceId}`);
|
|
647
|
+
for (const row of rows) {
|
|
648
|
+
const tags = JSON.parse(row.tags);
|
|
649
|
+
if (!Array.isArray(tags))
|
|
650
|
+
continue;
|
|
651
|
+
const one = (prefix) => {
|
|
652
|
+
const values = tags.filter((tag) => typeof tag === "string" && tag.startsWith(prefix));
|
|
653
|
+
return values.length === 1 ? values[0].slice(prefix.length) : undefined;
|
|
654
|
+
};
|
|
655
|
+
const id = one("instance:");
|
|
656
|
+
const packetId = one("occurrence:");
|
|
657
|
+
if (!id || !packetId)
|
|
658
|
+
continue;
|
|
659
|
+
const instance = this.instanceStore.getById(id);
|
|
660
|
+
const packet = this.queueRepo.getById(packetId);
|
|
661
|
+
// Unknown or conflicting provenance cannot certify recovery.
|
|
662
|
+
if (!instance || !packet || one("workflow:") !== instance.workflowName
|
|
663
|
+
|| !packet.tags?.includes(`instance:${id}`)
|
|
664
|
+
|| !packet.tags?.includes(`workflow:${instance.workflowName}`))
|
|
665
|
+
continue;
|
|
666
|
+
if (!["active", "waiting", "completed", "failed", "aborted"].includes(instance.status))
|
|
667
|
+
continue;
|
|
668
|
+
const live = instance.currentFrontier.includes(packetId)
|
|
669
|
+
&& (instance.status === "active" || instance.status === "waiting");
|
|
670
|
+
if (live) {
|
|
671
|
+
const anchor = packet.state === "in-progress"
|
|
672
|
+
? packet.closureRequiredAt ?? packet.claimedAt ?? packet.tsCreated : packet.tsCreated;
|
|
673
|
+
if (!Number.isFinite(Date.parse(anchor)))
|
|
674
|
+
continue;
|
|
675
|
+
const binding = this.instanceStore.getFrontierBinding(id, packetId);
|
|
676
|
+
const verdict = evaluateStepDeadline({ ...instance, currentFrontier: [packetId],
|
|
677
|
+
currentStepId: binding?.stepId ?? instance.currentStepId }, [packet], this.now());
|
|
678
|
+
if (verdict.state !== "healthy")
|
|
679
|
+
continue;
|
|
680
|
+
}
|
|
681
|
+
const updated = this.queueRepo.updateWithinTransaction({
|
|
682
|
+
qitemId: row.qitem_id, actorSession: instance.createdBySession,
|
|
683
|
+
state: "done", closureReason: "no-follow-on",
|
|
684
|
+
transitionNote: `workflow overdue occurrence resolved: instance ${id}, packet ${packetId}; ${live ? `packet is ${packet.state} and no longer overdue` : "packet is no longer an active frontier obligation"}`,
|
|
685
|
+
});
|
|
686
|
+
register(updated.persistedEvent);
|
|
687
|
+
closed += 1;
|
|
688
|
+
}
|
|
689
|
+
});
|
|
690
|
+
return closed;
|
|
585
691
|
}
|
|
586
692
|
inspect(instanceId) {
|
|
587
693
|
const instance = this.instanceStore.getByIdOrThrow(instanceId);
|
|
@@ -602,10 +708,12 @@ export class WorkflowRuntime {
|
|
|
602
708
|
ownerSession: packet?.destinationSession ?? null,
|
|
603
709
|
queueState: packet?.state ?? null,
|
|
604
710
|
blockedOn: packet?.blockedOn ?? null,
|
|
711
|
+
waiting: packet?.waiting ?? null,
|
|
605
712
|
targetedAction: stepId && packet ? "project" : "indeterminate",
|
|
606
713
|
dependsOn: step?.depends_on ?? [],
|
|
607
714
|
gate: step?.gate ?? null,
|
|
608
715
|
acceptance: step?.acceptance ?? null,
|
|
716
|
+
receiptRequired: stepId !== null && requiredLifecycleSteps(instance.lifecycleBinding).includes(stepId),
|
|
609
717
|
deadline: evaluateStepDeadline({ ...instance, currentFrontier: [packetId], currentStepId: stepId }, packet ? [packet] : [], this.now()),
|
|
610
718
|
};
|
|
611
719
|
});
|
|
@@ -616,7 +724,7 @@ export class WorkflowRuntime {
|
|
|
616
724
|
? "resume"
|
|
617
725
|
: "none",
|
|
618
726
|
}));
|
|
619
|
-
return { instance, frontier, failures, unknowns };
|
|
727
|
+
return { instance, frontier, failures, unknowns, boundaryObligations: lifecycleObligations(this.db, instanceId, instance.lifecycleBinding, spec?.steps ?? [], instance.currentFrontier) };
|
|
620
728
|
}
|
|
621
729
|
async abort(input) {
|
|
622
730
|
if (!input.reason.trim()) {
|
|
@@ -757,6 +865,8 @@ export class WorkflowRuntime {
|
|
|
757
865
|
sourceSession: input.actorSession,
|
|
758
866
|
destinationSession: owner,
|
|
759
867
|
body: withWorkflowContinuation({
|
|
868
|
+
binding: instance.lifecycleBinding,
|
|
869
|
+
library: this.guidanceLibrary,
|
|
760
870
|
body: `WORKFLOW RESUME (redrive)\n` +
|
|
761
871
|
`workflow: ${instance.workflowName} v${instance.workflowVersion}\n` +
|
|
762
872
|
`instance: ${instance.instanceId}\n` +
|
|
@@ -788,25 +898,9 @@ export class WorkflowRuntime {
|
|
|
788
898
|
// THIS episode close honestly with resume provenance. A later
|
|
789
899
|
// re-failure mints a NEW packet id = a NEW occurrence (never
|
|
790
900
|
// hidden behind this resolved past).
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
.prepare(`SELECT qitem_id FROM queue_items
|
|
795
|
-
WHERE state IN ('pending','in-progress','blocked')
|
|
796
|
-
AND tags LIKE ? AND tags LIKE ?`)
|
|
797
|
-
.all(`%"occurrence:${failedPacketId}"%`, `%"workflow-exception"%`);
|
|
798
|
-
for (const row of openItems) {
|
|
799
|
-
const closedItem = this.queueRepo.updateWithinTransaction({
|
|
800
|
-
qitemId: row.qitem_id,
|
|
801
|
-
actorSession: input.actorSession,
|
|
802
|
-
state: "done",
|
|
803
|
-
closureReason: "no-follow-on",
|
|
804
|
-
transitionNote: `workflow resume: occurrence resolved by ${input.actorSession} redriving step ${step.id}${input.decision ? ` — ${input.decision}` : ""}`,
|
|
805
|
-
});
|
|
806
|
-
register(closedItem.persistedEvent);
|
|
807
|
-
exceptionItemsClosed += 1;
|
|
808
|
-
}
|
|
809
|
-
}
|
|
901
|
+
const exceptionItemsClosed = failedPacketId
|
|
902
|
+
? this.closeFailureExceptions(instance.instanceId, failedPacketId, step.id, input, register)
|
|
903
|
+
: 0;
|
|
810
904
|
// Frontier rebind + status + THE LIVELOCK RAIL: hops_baseline =
|
|
811
905
|
// hopCount at resume (one fresh bounded window under the same
|
|
812
906
|
// max_hops), resume_count recorded, version guard held
|
|
@@ -875,6 +969,25 @@ export class WorkflowRuntime {
|
|
|
875
969
|
}
|
|
876
970
|
return result;
|
|
877
971
|
}
|
|
972
|
+
/** Called inside the redrive transaction; only this instance's failed packet is resolved. */
|
|
973
|
+
closeFailureExceptions(instanceId, failedPacketId, stepId, input, register) {
|
|
974
|
+
const openItems = this.db.prepare(`SELECT qitem_id FROM queue_items
|
|
975
|
+
WHERE state IN ('pending','in-progress','blocked')
|
|
976
|
+
AND EXISTS (SELECT 1 FROM json_each(tags) WHERE value = 'workflow-exception')
|
|
977
|
+
AND EXISTS (SELECT 1 FROM json_each(tags) WHERE value = ?)
|
|
978
|
+
AND EXISTS (SELECT 1 FROM json_each(tags) WHERE value = ?)`).all(`instance:${instanceId}`, `occurrence:${failedPacketId}`);
|
|
979
|
+
for (const row of openItems) {
|
|
980
|
+
const closed = this.queueRepo.updateWithinTransaction({
|
|
981
|
+
qitemId: row.qitem_id,
|
|
982
|
+
actorSession: input.actorSession,
|
|
983
|
+
state: "done",
|
|
984
|
+
closureReason: "no-follow-on",
|
|
985
|
+
transitionNote: `workflow resume: occurrence resolved by ${input.actorSession} redriving step ${stepId}${input.decision ? ` — ${input.decision}` : ""}`,
|
|
986
|
+
});
|
|
987
|
+
register(closed.persistedEvent);
|
|
988
|
+
}
|
|
989
|
+
return openItems.length;
|
|
990
|
+
}
|
|
878
991
|
async resumeFailureOccurrence(input) {
|
|
879
992
|
const all = this.instanceStore.listFailureOccurrences(input.instanceId);
|
|
880
993
|
const selected = input.occurrenceId
|
|
@@ -926,6 +1039,8 @@ export class WorkflowRuntime {
|
|
|
926
1039
|
sourceSession: input.actorSession,
|
|
927
1040
|
destinationSession: owner,
|
|
928
1041
|
body: withWorkflowContinuation({
|
|
1042
|
+
binding: instance.lifecycleBinding,
|
|
1043
|
+
library: this.guidanceLibrary,
|
|
929
1044
|
body: `WORKFLOW RESUME (packet redrive)\nworkflow: ${instance.workflowName} v${instance.workflowVersion}\ninstance: ${instance.instanceId}\noccurrence: ${occurrence.occurrenceId}\nstep: ${step.id}\n${input.decision ? `decision: ${input.decision}\n` : ""}`,
|
|
930
1045
|
instanceId: instance.instanceId,
|
|
931
1046
|
packetId: redrivePacketId,
|
|
@@ -949,6 +1064,7 @@ export class WorkflowRuntime {
|
|
|
949
1064
|
hopsBaseline: occurrence.hopCount,
|
|
950
1065
|
});
|
|
951
1066
|
this.instanceStore.resolveFailureOccurrence(instance.instanceId, occurrence.occurrenceId, created.qitemId, input.decision);
|
|
1067
|
+
const exceptionItemsClosed = this.closeFailureExceptions(instance.instanceId, occurrence.failedPacketId, step.id, input, register);
|
|
952
1068
|
const nextFrontier = [...instance.currentFrontier, created.qitemId];
|
|
953
1069
|
const bindings = this.instanceStore.listFrontierBindings(instance.instanceId);
|
|
954
1070
|
this.instanceStore.updateFrontier(instance.instanceId, nextFrontier, "active", {
|
|
@@ -966,7 +1082,7 @@ export class WorkflowRuntime {
|
|
|
966
1082
|
});
|
|
967
1083
|
register(this.eventBus.persistWithinTransaction({ type: "workflow.resumed", instanceId: instance.instanceId, workflowName: instance.workflowName, stepId: step.id, occurrenceId: occurrence.occurrenceId, resumedBy: input.actorSession, decision: input.decision ?? null, resumeCount: instance.resumeCount + 1 }));
|
|
968
1084
|
wake = { qitemId: created.qitemId, session: created.destinationSession, nudge: created.nudge };
|
|
969
|
-
output = { instanceId: instance.instanceId, stepId: step.id, newPacketId: created.qitemId, ownerSession: owner, resumeCount: instance.resumeCount + 1, exceptionItemsClosed
|
|
1085
|
+
output = { instanceId: instance.instanceId, stepId: step.id, newPacketId: created.qitemId, ownerSession: owner, resumeCount: instance.resumeCount + 1, exceptionItemsClosed };
|
|
970
1086
|
});
|
|
971
1087
|
const nudge = wake;
|
|
972
1088
|
if (nudge)
|
|
@@ -1049,6 +1165,8 @@ export class WorkflowRuntime {
|
|
|
1049
1165
|
sourceSession: input.actorSession,
|
|
1050
1166
|
destinationSession: input.toSession,
|
|
1051
1167
|
body: withWorkflowContinuation({
|
|
1168
|
+
binding: instance.lifecycleBinding,
|
|
1169
|
+
library: this.guidanceLibrary,
|
|
1052
1170
|
body: oldPacket.body,
|
|
1053
1171
|
instanceId: instance.instanceId,
|
|
1054
1172
|
packetId: routedPacketId,
|
|
@@ -1192,9 +1310,12 @@ export class WorkflowRuntime {
|
|
|
1192
1310
|
return {
|
|
1193
1311
|
instance: this.withDeadline(instance),
|
|
1194
1312
|
trail,
|
|
1313
|
+
guidance: this.guidance(instanceId),
|
|
1314
|
+
reconciliation: this.inspectGraph(instanceId),
|
|
1195
1315
|
frontier: inspected.frontier,
|
|
1196
1316
|
failures: inspected.failures,
|
|
1197
1317
|
unknowns: inspected.unknowns,
|
|
1318
|
+
boundaryObligations: inspected.boundaryObligations,
|
|
1198
1319
|
};
|
|
1199
1320
|
}
|
|
1200
1321
|
/**
|
|
@@ -1234,6 +1355,7 @@ export class WorkflowRuntime {
|
|
|
1234
1355
|
frontierPackets: inspected.frontier,
|
|
1235
1356
|
failureOccurrences: inspected.failures,
|
|
1236
1357
|
unknowns: inspected.unknowns,
|
|
1358
|
+
boundaryObligations: inspected.boundaryObligations,
|
|
1237
1359
|
};
|
|
1238
1360
|
});
|
|
1239
1361
|
}
|
|
@@ -1260,6 +1382,8 @@ function workflowInstantiateBody(input) {
|
|
|
1260
1382
|
return withWorkflowContinuation({
|
|
1261
1383
|
body: lines.join("\n"),
|
|
1262
1384
|
contextRefs: input.spec.context_refs,
|
|
1385
|
+
binding: input.binding,
|
|
1386
|
+
library: input.library,
|
|
1263
1387
|
instanceId: input.instanceId,
|
|
1264
1388
|
packetId: input.packetId,
|
|
1265
1389
|
ownerSession: input.ownerSession,
|