pulseed 0.5.3 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -9
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts +18 -0
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -0
- package/dist/adapters/datasources/artifact-metric-datasource.js +592 -0
- package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -0
- package/dist/adapters/types/mcp.d.ts +6 -6
- package/dist/base/state/state-manager-goal-state.d.ts +40 -0
- package/dist/base/state/state-manager-goal-state.d.ts.map +1 -0
- package/dist/base/state/state-manager-goal-state.js +235 -0
- package/dist/base/state/state-manager-goal-state.js.map +1 -0
- package/dist/base/state/state-manager.d.ts +0 -5
- package/dist/base/state/state-manager.d.ts.map +1 -1
- package/dist/base/state/state-manager.js +27 -273
- package/dist/base/state/state-manager.js.map +1 -1
- package/dist/base/types/goal-activation.d.ts +37 -0
- package/dist/base/types/goal-activation.d.ts.map +1 -0
- package/dist/base/types/goal-activation.js +13 -0
- package/dist/base/types/goal-activation.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-history.d.ts +129 -0
- package/dist/interface/chat/chat-history.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.js +135 -0
- package/dist/interface/chat/chat-history.js.map +1 -1
- package/dist/interface/chat/chat-runner-command-helpers.d.ts +50 -0
- package/dist/interface/chat/chat-runner-command-helpers.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-command-helpers.js +189 -0
- package/dist/interface/chat/chat-runner-command-helpers.js.map +1 -0
- package/dist/interface/chat/chat-runner-commands.d.ts +82 -0
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-commands.js +906 -0
- package/dist/interface/chat/chat-runner-commands.js.map +1 -0
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +60 -0
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-event-bridge.js +377 -0
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -0
- package/dist/interface/chat/chat-runner-routes.d.ts +67 -0
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-routes.js +610 -0
- package/dist/interface/chat/chat-runner-routes.js.map +1 -0
- package/dist/interface/chat/chat-runner-runtime.d.ts +37 -0
- package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-runtime.js +236 -0
- package/dist/interface/chat/chat-runner-runtime.js.map +1 -0
- package/dist/interface/chat/chat-runner-state.d.ts +20 -0
- package/dist/interface/chat/chat-runner-state.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-state.js +157 -0
- package/dist/interface/chat/chat-runner-state.js.map +1 -0
- package/dist/interface/chat/chat-runner-support.d.ts +39 -0
- package/dist/interface/chat/chat-runner-support.d.ts.map +1 -0
- package/dist/interface/chat/chat-runner-support.js +170 -0
- package/dist/interface/chat/chat-runner-support.js.map +1 -0
- package/dist/interface/chat/chat-runner.d.ts +10 -153
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +330 -2643
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/chat-session-store.d.ts +32 -0
- package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
- package/dist/interface/chat/chat-session-store.js +100 -10
- package/dist/interface/chat/chat-session-store.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +15 -6
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/chat/event-subscriber.d.ts.map +1 -1
- package/dist/interface/chat/event-subscriber.js +61 -0
- package/dist/interface/chat/event-subscriber.js.map +1 -1
- package/dist/interface/chat/failure-recovery.d.ts +43 -1
- package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
- package/dist/interface/chat/failure-recovery.js +259 -89
- package/dist/interface/chat/failure-recovery.js.map +1 -1
- package/dist/interface/chat/ingress-router.d.ts +2 -26
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +14 -88
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/tend-command.d.ts.map +1 -1
- package/dist/interface/chat/tend-command.js +3 -0
- package/dist/interface/chat/tend-command.js.map +1 -1
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +19 -3
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.d.ts +33 -0
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -0
- package/dist/interface/cli/commands/daemon-shared.js +152 -0
- package/dist/interface/cli/commands/daemon-shared.js.map +1 -0
- package/dist/interface/cli/commands/daemon.d.ts +2 -2
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +62 -127
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/goal-read.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-read.js +10 -3
- package/dist/interface/cli/commands/goal-read.js.map +1 -1
- package/dist/interface/cli/commands/notify.d.ts.map +1 -1
- package/dist/interface/cli/commands/notify.js +7 -1
- package/dist/interface/cli/commands/notify.js.map +1 -1
- package/dist/interface/cli/commands/run.d.ts.map +1 -1
- package/dist/interface/cli/commands/run.js +29 -0
- package/dist/interface/cli/commands/run.js.map +1 -1
- package/dist/interface/cli/commands/runtime.d.ts +1 -1
- package/dist/interface/cli/commands/runtime.d.ts.map +1 -1
- package/dist/interface/cli/commands/runtime.js +407 -2
- package/dist/interface/cli/commands/runtime.js.map +1 -1
- package/dist/interface/cli/commands/schedule/history.d.ts.map +1 -1
- package/dist/interface/cli/commands/schedule/history.js +5 -1
- package/dist/interface/cli/commands/schedule/history.js.map +1 -1
- package/dist/interface/cli/commands/schedule.js +34 -4
- package/dist/interface/cli/commands/schedule.js.map +1 -1
- package/dist/interface/cli/data-source-bootstrap.d.ts.map +1 -1
- package/dist/interface/cli/data-source-bootstrap.js +25 -12
- package/dist/interface/cli/data-source-bootstrap.js.map +1 -1
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +14 -0
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/interface/cli/utils/loop-runner.js +2 -1
- package/dist/interface/cli/utils/loop-runner.js.map +1 -1
- package/dist/interface/cli/utils.d.ts.map +1 -1
- package/dist/interface/cli/utils.js +8 -1
- package/dist/interface/cli/utils.js.map +1 -1
- package/dist/interface/tui/app.d.ts +4 -1
- package/dist/interface/tui/app.d.ts.map +1 -1
- package/dist/interface/tui/app.js +282 -11
- package/dist/interface/tui/app.js.map +1 -1
- package/dist/interface/tui/chat/suggestions.d.ts.map +1 -1
- package/dist/interface/tui/chat/suggestions.js +118 -4
- package/dist/interface/tui/chat/suggestions.js.map +1 -1
- package/dist/interface/tui/chat-surface.d.ts +2 -0
- package/dist/interface/tui/chat-surface.d.ts.map +1 -1
- package/dist/interface/tui/chat-surface.js +3 -0
- package/dist/interface/tui/chat-surface.js.map +1 -1
- package/dist/interface/tui/dashboard.d.ts +37 -1
- package/dist/interface/tui/dashboard.d.ts.map +1 -1
- package/dist/interface/tui/dashboard.js +264 -1
- package/dist/interface/tui/dashboard.js.map +1 -1
- package/dist/interface/tui/entry-approval.d.ts +8 -0
- package/dist/interface/tui/entry-approval.d.ts.map +1 -0
- package/dist/interface/tui/entry-approval.js +59 -0
- package/dist/interface/tui/entry-approval.js.map +1 -0
- package/dist/interface/tui/entry-daemon.d.ts +12 -0
- package/dist/interface/tui/entry-daemon.d.ts.map +1 -0
- package/dist/interface/tui/entry-daemon.js +74 -0
- package/dist/interface/tui/entry-daemon.js.map +1 -0
- package/dist/interface/tui/entry-deps.d.ts +24 -0
- package/dist/interface/tui/entry-deps.d.ts.map +1 -0
- package/dist/interface/tui/entry-deps.js +427 -0
- package/dist/interface/tui/entry-deps.js.map +1 -0
- package/dist/interface/tui/entry.d.ts +2 -4
- package/dist/interface/tui/entry.d.ts.map +1 -1
- package/dist/interface/tui/entry.js +11 -556
- package/dist/interface/tui/entry.js.map +1 -1
- package/dist/interface/tui/fullscreen-chat-render.d.ts +127 -0
- package/dist/interface/tui/fullscreen-chat-render.d.ts.map +1 -0
- package/dist/interface/tui/fullscreen-chat-render.js +667 -0
- package/dist/interface/tui/fullscreen-chat-render.js.map +1 -0
- package/dist/interface/tui/fullscreen-chat.d.ts +2 -111
- package/dist/interface/tui/fullscreen-chat.d.ts.map +1 -1
- package/dist/interface/tui/fullscreen-chat.js +4 -663
- package/dist/interface/tui/fullscreen-chat.js.map +1 -1
- package/dist/interface/tui/help-overlay.d.ts.map +1 -1
- package/dist/interface/tui/help-overlay.js +1 -1
- package/dist/interface/tui/help-overlay.js.map +1 -1
- package/dist/interface/tui/intent-recognizer.d.ts +8 -3
- package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
- package/dist/interface/tui/intent-recognizer.js +74 -68
- package/dist/interface/tui/intent-recognizer.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +49 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-router.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-router.js +2 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-router.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +31 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +36 -2
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +2 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts +19 -0
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.js +165 -14
- package/dist/orchestrator/execution/agent-loop/core-loop-control-tools.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.js +10 -1
- package/dist/orchestrator/execution/agent-loop/core-phase-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.js +4 -0
- package/dist/orchestrator/execution/agent-loop/kaggle-training-benchmark.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +8 -8
- package/dist/orchestrator/execution/reflection-generator.d.ts +1 -0
- package/dist/orchestrator/execution/reflection-generator.d.ts.map +1 -1
- package/dist/orchestrator/execution/reflection-generator.js +10 -1
- package/dist/orchestrator/execution/reflection-generator.js.map +1 -1
- package/dist/orchestrator/execution/task/task-context-enricher.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-context-enricher.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-context-enricher.js +9 -4
- package/dist/orchestrator/execution/task/task-context-enricher.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.d.ts +5 -0
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.js +6 -0
- package/dist/orchestrator/execution/task/task-execution-helpers-internal.js.map +1 -0
- package/dist/orchestrator/execution/task/task-generation.d.ts +3 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +25 -5
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +77 -0
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +188 -0
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -0
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +17 -8
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +144 -187
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +2 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.js +4 -2
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-internal.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-verifier-internal.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-verifier-internal.js +2 -0
- package/dist/orchestrator/execution/task/task-verifier-internal.js.map +1 -0
- package/dist/orchestrator/execution/types/pipeline.d.ts +6 -6
- package/dist/orchestrator/goal/goal-negotiator.d.ts.map +1 -1
- package/dist/orchestrator/goal/goal-negotiator.js +23 -3
- package/dist/orchestrator/goal/goal-negotiator.js.map +1 -1
- package/dist/orchestrator/goal/types/goal.d.ts +282 -0
- package/dist/orchestrator/goal/types/goal.d.ts.map +1 -1
- package/dist/orchestrator/goal/types/goal.js +20 -0
- package/dist/orchestrator/goal/types/goal.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/contracts.d.ts +47 -3
- package/dist/orchestrator/loop/core-loop/contracts.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/contracts.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/decision-engine.js +4 -0
- package/dist/orchestrator/loop/core-loop/decision-engine.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts +48 -0
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js +377 -0
- package/dist/orchestrator/loop/core-loop/dream-review-checkpoint.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js +1 -1
- package/dist/orchestrator/loop/core-loop/evidence-ledger.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts +7 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js +43 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-knowledge.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts +14 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js +41 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel-wait.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts +4 -2
- package/dist/orchestrator/loop/core-loop/iteration-kernel.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js +507 -87
- package/dist/orchestrator/loop/core-loop/iteration-kernel.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-policy.js +40 -5
- package/dist/orchestrator/loop/core-loop/phase-policy.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts +2 -0
- package/dist/orchestrator/loop/core-loop/phase-runtime.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-runtime.js +43 -2
- package/dist/orchestrator/loop/core-loop/phase-runtime.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts +969 -2
- package/dist/orchestrator/loop/core-loop/phase-specs.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/phase-specs.js +198 -0
- package/dist/orchestrator/loop/core-loop/phase-specs.js.map +1 -1
- package/dist/orchestrator/loop/core-loop/public-research.d.ts +32 -0
- package/dist/orchestrator/loop/core-loop/public-research.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/public-research.js +112 -0
- package/dist/orchestrator/loop/core-loop/public-research.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts +9 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js +433 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-stall.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts +11 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.d.ts.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js +176 -0
- package/dist/orchestrator/loop/core-loop/task-cycle-wait.js.map +1 -0
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts +7 -15
- package/dist/orchestrator/loop/core-loop/task-cycle.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop/task-cycle.js +17 -444
- package/dist/orchestrator/loop/core-loop/task-cycle.js.map +1 -1
- package/dist/orchestrator/loop/core-loop.d.ts +18 -5
- package/dist/orchestrator/loop/core-loop.d.ts.map +1 -1
- package/dist/orchestrator/loop/core-loop.js +287 -17
- package/dist/orchestrator/loop/core-loop.js.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.js +4 -0
- package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
- package/dist/orchestrator/loop/loop-result-types.d.ts +20 -1
- package/dist/orchestrator/loop/loop-result-types.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-result-types.js.map +1 -1
- package/dist/orchestrator/loop/post-loop-hooks.d.ts +1 -0
- package/dist/orchestrator/loop/post-loop-hooks.d.ts.map +1 -1
- package/dist/orchestrator/loop/post-loop-hooks.js +34 -1
- package/dist/orchestrator/loop/post-loop-hooks.js.map +1 -1
- package/dist/orchestrator/loop/run-policy.d.ts +10 -0
- package/dist/orchestrator/loop/run-policy.d.ts.map +1 -0
- package/dist/orchestrator/loop/run-policy.js +30 -0
- package/dist/orchestrator/loop/run-policy.js.map +1 -0
- package/dist/orchestrator/strategy/divergent-exploration.d.ts +37 -0
- package/dist/orchestrator/strategy/divergent-exploration.d.ts.map +1 -0
- package/dist/orchestrator/strategy/divergent-exploration.js +324 -0
- package/dist/orchestrator/strategy/divergent-exploration.js.map +1 -0
- package/dist/orchestrator/strategy/portfolio-manager.d.ts +3 -2
- package/dist/orchestrator/strategy/portfolio-manager.d.ts.map +1 -1
- package/dist/orchestrator/strategy/portfolio-manager.js +16 -11
- package/dist/orchestrator/strategy/portfolio-manager.js.map +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.d.ts.map +1 -1
- package/dist/orchestrator/strategy/portfolio-rebalance.js +31 -9
- package/dist/orchestrator/strategy/portfolio-rebalance.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-helpers.d.ts +108 -0
- package/dist/orchestrator/strategy/strategy-helpers.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-helpers.js +34 -2
- package/dist/orchestrator/strategy/strategy-helpers.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts +31 -2
- package/dist/orchestrator/strategy/strategy-manager-base.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager-base.js +93 -12
- package/dist/orchestrator/strategy/strategy-manager-base.js.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager.d.ts +1 -11
- package/dist/orchestrator/strategy/strategy-manager.d.ts.map +1 -1
- package/dist/orchestrator/strategy/strategy-manager.js +78 -19
- package/dist/orchestrator/strategy/strategy-manager.js.map +1 -1
- package/dist/orchestrator/strategy/types/cross-portfolio.d.ts +2 -2
- package/dist/orchestrator/strategy/types/strategy.d.ts +364 -0
- package/dist/orchestrator/strategy/types/strategy.d.ts.map +1 -1
- package/dist/orchestrator/strategy/types/strategy.js +43 -0
- package/dist/orchestrator/strategy/types/strategy.js.map +1 -1
- package/dist/platform/dream/dream-activation.d.ts +1 -1
- package/dist/platform/dream/dream-consolidator/fs-metrics.d.ts +18 -0
- package/dist/platform/dream/dream-consolidator/fs-metrics.d.ts.map +1 -0
- package/dist/platform/dream/dream-consolidator/fs-metrics.js +130 -0
- package/dist/platform/dream/dream-consolidator/fs-metrics.js.map +1 -0
- package/dist/platform/dream/dream-consolidator.d.ts +4 -14
- package/dist/platform/dream/dream-consolidator.d.ts.map +1 -1
- package/dist/platform/dream/dream-consolidator.js +46 -166
- package/dist/platform/dream/dream-consolidator.js.map +1 -1
- package/dist/platform/dream/dream-event-workflows.d.ts +6 -6
- package/dist/platform/dream/dream-soil-sync.d.ts +1 -0
- package/dist/platform/dream/dream-soil-sync.d.ts.map +1 -1
- package/dist/platform/dream/dream-soil-sync.js +8 -1
- package/dist/platform/dream/dream-soil-sync.js.map +1 -1
- package/dist/platform/dream/dream-types.d.ts +94 -89
- package/dist/platform/dream/dream-types.d.ts.map +1 -1
- package/dist/platform/dream/dream-types.js +1 -0
- package/dist/platform/dream/dream-types.js.map +1 -1
- package/dist/platform/dream/playbook-memory.d.ts +4 -4
- package/dist/platform/drive/metric-history.d.ts +61 -0
- package/dist/platform/drive/metric-history.d.ts.map +1 -0
- package/dist/platform/drive/metric-history.js +206 -0
- package/dist/platform/drive/metric-history.js.map +1 -0
- package/dist/platform/drive/progress-predictor.d.ts +7 -0
- package/dist/platform/drive/progress-predictor.d.ts.map +1 -1
- package/dist/platform/drive/progress-predictor.js +23 -0
- package/dist/platform/drive/progress-predictor.js.map +1 -1
- package/dist/platform/drive/stall-detector/analysis.d.ts +5 -0
- package/dist/platform/drive/stall-detector/analysis.d.ts.map +1 -0
- package/dist/platform/drive/stall-detector/analysis.js +55 -0
- package/dist/platform/drive/stall-detector/analysis.js.map +1 -0
- package/dist/platform/drive/stall-detector/repetitive.d.ts +3 -0
- package/dist/platform/drive/stall-detector/repetitive.d.ts.map +1 -0
- package/dist/platform/drive/stall-detector/repetitive.js +72 -0
- package/dist/platform/drive/stall-detector/repetitive.js.map +1 -0
- package/dist/platform/drive/stall-detector/thresholds.d.ts +10 -0
- package/dist/platform/drive/stall-detector/thresholds.d.ts.map +1 -0
- package/dist/platform/drive/stall-detector/thresholds.js +61 -0
- package/dist/platform/drive/stall-detector/thresholds.js.map +1 -0
- package/dist/platform/drive/stall-detector.d.ts +5 -21
- package/dist/platform/drive/stall-detector.d.ts.map +1 -1
- package/dist/platform/drive/stall-detector.js +47 -201
- package/dist/platform/drive/stall-detector.js.map +1 -1
- package/dist/platform/drive/types/satisficing.d.ts +2 -2
- package/dist/platform/drive/types/stall.d.ts +4 -0
- package/dist/platform/drive/types/stall.d.ts.map +1 -1
- package/dist/platform/drive/types/stall.js +1 -0
- package/dist/platform/drive/types/stall.js.map +1 -1
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts +55 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js +232 -0
- package/dist/platform/knowledge/knowledge-manager-agent-memory.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-internals.d.ts +10 -0
- package/dist/platform/knowledge/knowledge-manager-internals.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-internals.js +43 -0
- package/dist/platform/knowledge/knowledge-manager-internals.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-store.d.ts +13 -0
- package/dist/platform/knowledge/knowledge-manager-store.d.ts.map +1 -0
- package/dist/platform/knowledge/knowledge-manager-store.js +67 -0
- package/dist/platform/knowledge/knowledge-manager-store.js.map +1 -0
- package/dist/platform/knowledge/knowledge-manager.d.ts +6 -2
- package/dist/platform/knowledge/knowledge-manager.d.ts.map +1 -1
- package/dist/platform/knowledge/knowledge-manager.js +43 -344
- package/dist/platform/knowledge/knowledge-manager.js.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.d.ts +4 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.d.ts.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.js +106 -0
- package/dist/platform/knowledge/memory/memory-lifecycle-storage.js.map +1 -0
- package/dist/platform/knowledge/memory/memory-lifecycle.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-lifecycle.js +6 -112
- package/dist/platform/knowledge/memory/memory-lifecycle.js.map +1 -1
- package/dist/platform/knowledge/types/learning.d.ts +2 -2
- package/dist/platform/observation/capability-detector/prompts.d.ts +18 -0
- package/dist/platform/observation/capability-detector/prompts.d.ts.map +1 -0
- package/dist/platform/observation/capability-detector/prompts.js +80 -0
- package/dist/platform/observation/capability-detector/prompts.js.map +1 -0
- package/dist/platform/observation/capability-detector/recommendations.d.ts +5 -0
- package/dist/platform/observation/capability-detector/recommendations.d.ts.map +1 -0
- package/dist/platform/observation/capability-detector/recommendations.js +76 -0
- package/dist/platform/observation/capability-detector/recommendations.js.map +1 -0
- package/dist/platform/observation/capability-detector/types.d.ts +112 -0
- package/dist/platform/observation/capability-detector/types.d.ts.map +1 -0
- package/dist/platform/observation/capability-detector/types.js +75 -0
- package/dist/platform/observation/capability-detector/types.js.map +1 -0
- package/dist/platform/observation/capability-detector.d.ts +4 -9
- package/dist/platform/observation/capability-detector.d.ts.map +1 -1
- package/dist/platform/observation/capability-detector.js +12 -212
- package/dist/platform/observation/capability-detector.js.map +1 -1
- package/dist/platform/observation/context-provider/collector.d.ts +13 -0
- package/dist/platform/observation/context-provider/collector.d.ts.map +1 -0
- package/dist/platform/observation/context-provider/collector.js +259 -0
- package/dist/platform/observation/context-provider/collector.js.map +1 -0
- package/dist/platform/observation/context-provider/search-terms.d.ts +2 -0
- package/dist/platform/observation/context-provider/search-terms.d.ts.map +1 -0
- package/dist/platform/observation/context-provider/search-terms.js +24 -0
- package/dist/platform/observation/context-provider/search-terms.js.map +1 -0
- package/dist/platform/observation/context-provider/shared.d.ts +17 -0
- package/dist/platform/observation/context-provider/shared.d.ts.map +1 -0
- package/dist/platform/observation/context-provider/shared.js +87 -0
- package/dist/platform/observation/context-provider/shared.js.map +1 -0
- package/dist/platform/observation/context-provider.d.ts +3 -28
- package/dist/platform/observation/context-provider.d.ts.map +1 -1
- package/dist/platform/observation/context-provider.js +7 -395
- package/dist/platform/observation/context-provider.js.map +1 -1
- package/dist/platform/observation/data-source-adapter.d.ts +1 -0
- package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
- package/dist/platform/observation/data-source-adapter.js.map +1 -1
- package/dist/platform/observation/observation-datasource.d.ts.map +1 -1
- package/dist/platform/observation/observation-datasource.js +2 -0
- package/dist/platform/observation/observation-datasource.js.map +1 -1
- package/dist/platform/observation/types/data-source.d.ts +153 -9
- package/dist/platform/observation/types/data-source.d.ts.map +1 -1
- package/dist/platform/observation/types/data-source.js +13 -1
- package/dist/platform/observation/types/data-source.js.map +1 -1
- package/dist/platform/soil/compiled-memory-projections.d.ts +2 -0
- package/dist/platform/soil/compiled-memory-projections.d.ts.map +1 -1
- package/dist/platform/soil/compiled-memory-projections.js +59 -0
- package/dist/platform/soil/compiled-memory-projections.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +67 -67
- package/dist/platform/soil/importer.d.ts +6 -6
- package/dist/platform/soil/retriever.d.ts +25 -0
- package/dist/platform/soil/retriever.d.ts.map +1 -1
- package/dist/platform/soil/retriever.js +94 -5
- package/dist/platform/soil/retriever.js.map +1 -1
- package/dist/platform/soil/sqlite-repository-helpers.d.ts +80 -0
- package/dist/platform/soil/sqlite-repository-helpers.d.ts.map +1 -0
- package/dist/platform/soil/sqlite-repository-helpers.js +143 -0
- package/dist/platform/soil/sqlite-repository-helpers.js.map +1 -0
- package/dist/platform/soil/sqlite-repository-search.d.ts +8 -0
- package/dist/platform/soil/sqlite-repository-search.d.ts.map +1 -0
- package/dist/platform/soil/sqlite-repository-search.js +367 -0
- package/dist/platform/soil/sqlite-repository-search.js.map +1 -0
- package/dist/platform/soil/sqlite-repository-storage.d.ts +8 -0
- package/dist/platform/soil/sqlite-repository-storage.d.ts.map +1 -0
- package/dist/platform/soil/sqlite-repository-storage.js +278 -0
- package/dist/platform/soil/sqlite-repository-storage.js.map +1 -0
- package/dist/platform/soil/sqlite-repository.d.ts +1 -4
- package/dist/platform/soil/sqlite-repository.d.ts.map +1 -1
- package/dist/platform/soil/sqlite-repository.js +26 -820
- package/dist/platform/soil/sqlite-repository.js.map +1 -1
- package/dist/platform/soil/types.d.ts +8 -8
- package/dist/platform/time/deadline-finalization.d.ts +57 -0
- package/dist/platform/time/deadline-finalization.d.ts.map +1 -0
- package/dist/platform/time/deadline-finalization.js +136 -0
- package/dist/platform/time/deadline-finalization.js.map +1 -0
- package/dist/platform/time/execution-mode.d.ts +29 -0
- package/dist/platform/time/execution-mode.d.ts.map +1 -0
- package/dist/platform/time/execution-mode.js +84 -0
- package/dist/platform/time/execution-mode.js.map +1 -0
- package/dist/platform/traits/types/curiosity.d.ts +9 -9
- package/dist/platform/traits/types/guardrail.d.ts +6 -6
- package/dist/reporting/report-formatters.d.ts.map +1 -1
- package/dist/reporting/report-formatters.js +67 -2
- package/dist/reporting/report-formatters.js.map +1 -1
- package/dist/reporting/reporting-engine.d.ts.map +1 -1
- package/dist/reporting/reporting-engine.js +3 -1
- package/dist/reporting/reporting-engine.js.map +1 -1
- package/dist/reporting/reporting-types.d.ts +4 -0
- package/dist/reporting/reporting-types.d.ts.map +1 -1
- package/dist/reporting/types/report.d.ts +59 -0
- package/dist/reporting/types/report.d.ts.map +1 -1
- package/dist/reporting/types/report.js +9 -0
- package/dist/reporting/types/report.js.map +1 -1
- package/dist/runtime/command-dispatcher.d.ts +2 -0
- package/dist/runtime/command-dispatcher.d.ts.map +1 -1
- package/dist/runtime/command-dispatcher.js +16 -0
- package/dist/runtime/command-dispatcher.js.map +1 -1
- package/dist/runtime/confirmation-decision.d.ts +94 -0
- package/dist/runtime/confirmation-decision.d.ts.map +1 -0
- package/dist/runtime/confirmation-decision.js +109 -0
- package/dist/runtime/confirmation-decision.js.map +1 -0
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js +31 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
- package/dist/runtime/control/runtime-control-intent.d.ts +9 -1
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-intent.js +82 -16
- package/dist/runtime/control/runtime-control-intent.js.map +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts +35 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +285 -5
- package/dist/runtime/control/runtime-control-service.js.map +1 -1
- package/dist/runtime/daemon/client.d.ts +12 -0
- package/dist/runtime/daemon/client.d.ts.map +1 -1
- package/dist/runtime/daemon/client.js +9 -0
- package/dist/runtime/daemon/client.js.map +1 -1
- package/dist/runtime/daemon/index.d.ts +1 -1
- package/dist/runtime/daemon/index.d.ts.map +1 -1
- package/dist/runtime/daemon/index.js +1 -1
- package/dist/runtime/daemon/index.js.map +1 -1
- package/dist/runtime/daemon/maintenance.d.ts +2 -10
- package/dist/runtime/daemon/maintenance.d.ts.map +1 -1
- package/dist/runtime/daemon/maintenance.js +14 -45
- package/dist/runtime/daemon/maintenance.js.map +1 -1
- package/dist/runtime/daemon/runner-bootstrap.d.ts +25 -0
- package/dist/runtime/daemon/runner-bootstrap.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-bootstrap.js +77 -0
- package/dist/runtime/daemon/runner-bootstrap.js.map +1 -0
- package/dist/runtime/daemon/runner-commands.d.ts +13 -9
- package/dist/runtime/daemon/runner-commands.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-commands.js +272 -21
- package/dist/runtime/daemon/runner-commands.js.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.js +62 -6
- package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
- package/dist/runtime/daemon/runner-resident-curiosity.d.ts +12 -0
- package/dist/runtime/daemon/runner-resident-curiosity.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-curiosity.js +155 -0
- package/dist/runtime/daemon/runner-resident-curiosity.js.map +1 -0
- package/dist/runtime/daemon/runner-resident-dream.d.ts +20 -0
- package/dist/runtime/daemon/runner-resident-dream.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-dream.js +148 -0
- package/dist/runtime/daemon/runner-resident-dream.js.map +1 -0
- package/dist/runtime/daemon/runner-resident-proactive.d.ts +4 -0
- package/dist/runtime/daemon/runner-resident-proactive.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-proactive.js +113 -0
- package/dist/runtime/daemon/runner-resident-proactive.js.map +1 -0
- package/dist/runtime/daemon/runner-resident-shared.d.ts +40 -0
- package/dist/runtime/daemon/runner-resident-shared.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-resident-shared.js +101 -0
- package/dist/runtime/daemon/runner-resident-shared.js.map +1 -0
- package/dist/runtime/daemon/runner-resident.d.ts +4 -68
- package/dist/runtime/daemon/runner-resident.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-resident.js +4 -506
- package/dist/runtime/daemon/runner-resident.js.map +1 -1
- package/dist/runtime/daemon/runner-runtime.d.ts +12 -0
- package/dist/runtime/daemon/runner-runtime.d.ts.map +1 -0
- package/dist/runtime/daemon/runner-runtime.js +43 -0
- package/dist/runtime/daemon/runner-runtime.js.map +1 -0
- package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-startup.js +15 -6
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts +14 -23
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +40 -110
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +9 -0
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +248 -1
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts +5 -2
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.js +55 -35
- package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
- package/dist/runtime/dream-sidecar-review.d.ts +92 -0
- package/dist/runtime/dream-sidecar-review.d.ts.map +1 -0
- package/dist/runtime/dream-sidecar-review.js +495 -0
- package/dist/runtime/dream-sidecar-review.js.map +1 -0
- package/dist/runtime/event/dispatcher.d.ts +0 -2
- package/dist/runtime/event/dispatcher.d.ts.map +1 -1
- package/dist/runtime/event/dispatcher.js +0 -4
- package/dist/runtime/event/dispatcher.js.map +1 -1
- package/dist/runtime/event/server-command-handler.d.ts +2 -4
- package/dist/runtime/event/server-command-handler.d.ts.map +1 -1
- package/dist/runtime/event/server-command-handler.js +36 -6
- package/dist/runtime/event/server-command-handler.js.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts +15 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.js +66 -2
- package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
- package/dist/runtime/event/server-types.d.ts +7 -0
- package/dist/runtime/event/server-types.d.ts.map +1 -1
- package/dist/runtime/event/server.d.ts +5 -0
- package/dist/runtime/event/server.d.ts.map +1 -1
- package/dist/runtime/event/server.js +43 -11
- package/dist/runtime/event/server.js.map +1 -1
- package/dist/runtime/evidence-answer.d.ts +41 -0
- package/dist/runtime/evidence-answer.d.ts.map +1 -0
- package/dist/runtime/evidence-answer.js +366 -0
- package/dist/runtime/evidence-answer.js.map +1 -0
- package/dist/runtime/executor/goal-worker.d.ts +6 -2
- package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
- package/dist/runtime/executor/goal-worker.js +7 -2
- package/dist/runtime/executor/goal-worker.js.map +1 -1
- package/dist/runtime/executor/loop-supervisor.d.ts +7 -0
- package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
- package/dist/runtime/executor/loop-supervisor.js +72 -17
- package/dist/runtime/executor/loop-supervisor.js.map +1 -1
- package/dist/runtime/guardrails/backpressure-controller.d.ts +32 -0
- package/dist/runtime/guardrails/backpressure-controller.d.ts.map +1 -0
- package/dist/runtime/guardrails/backpressure-controller.js +88 -0
- package/dist/runtime/guardrails/backpressure-controller.js.map +1 -0
- package/dist/runtime/guardrails/circuit-breaker.d.ts +32 -0
- package/dist/runtime/guardrails/circuit-breaker.d.ts.map +1 -0
- package/dist/runtime/guardrails/circuit-breaker.js +88 -0
- package/dist/runtime/guardrails/circuit-breaker.js.map +1 -0
- package/dist/runtime/guardrails/guardrail-store.d.ts +23 -0
- package/dist/runtime/guardrails/guardrail-store.d.ts.map +1 -0
- package/dist/runtime/guardrails/guardrail-store.js +95 -0
- package/dist/runtime/guardrails/guardrail-store.js.map +1 -0
- package/dist/runtime/guardrails/index.d.ts +4 -0
- package/dist/runtime/guardrails/index.d.ts.map +1 -0
- package/dist/runtime/guardrails/index.js +4 -0
- package/dist/runtime/guardrails/index.js.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-store.d.ts +43 -0
- package/dist/runtime/interactive-automation/browser-session-store.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-store.js +104 -0
- package/dist/runtime/interactive-automation/browser-session-store.js.map +1 -0
- package/dist/runtime/interactive-automation/failure-classifier.d.ts +12 -0
- package/dist/runtime/interactive-automation/failure-classifier.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/failure-classifier.js +50 -0
- package/dist/runtime/interactive-automation/failure-classifier.js.map +1 -0
- package/dist/runtime/interactive-automation/index.d.ts +2 -0
- package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/index.js +2 -0
- package/dist/runtime/interactive-automation/index.js.map +1 -1
- package/dist/runtime/interactive-automation/providers/manus-browser.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/providers/manus-browser.js +17 -1
- package/dist/runtime/interactive-automation/providers/manus-browser.js.map +1 -1
- package/dist/runtime/interactive-automation/types.d.ts +4 -0
- package/dist/runtime/interactive-automation/types.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/types.js.map +1 -1
- package/dist/runtime/notification-routing.d.ts +45 -2
- package/dist/runtime/notification-routing.d.ts.map +1 -1
- package/dist/runtime/notification-routing.js +196 -79
- package/dist/runtime/notification-routing.js.map +1 -1
- package/dist/runtime/run-spec/confirmation.d.ts +34 -0
- package/dist/runtime/run-spec/confirmation.d.ts.map +1 -0
- package/dist/runtime/run-spec/confirmation.js +176 -0
- package/dist/runtime/run-spec/confirmation.js.map +1 -0
- package/dist/runtime/run-spec/derive.d.ts +284 -0
- package/dist/runtime/run-spec/derive.d.ts.map +1 -0
- package/dist/runtime/run-spec/derive.js +379 -0
- package/dist/runtime/run-spec/derive.js.map +1 -0
- package/dist/runtime/run-spec/index.d.ts +5 -0
- package/dist/runtime/run-spec/index.d.ts.map +1 -0
- package/dist/runtime/run-spec/index.js +5 -0
- package/dist/runtime/run-spec/index.js.map +1 -0
- package/dist/runtime/run-spec/store.d.ts +11 -0
- package/dist/runtime/run-spec/store.d.ts.map +1 -0
- package/dist/runtime/run-spec/store.js +36 -0
- package/dist/runtime/run-spec/store.js.map +1 -0
- package/dist/runtime/run-spec/types.d.ts +495 -0
- package/dist/runtime/run-spec/types.d.ts.map +1 -0
- package/dist/runtime/run-spec/types.js +87 -0
- package/dist/runtime/run-spec/types.js.map +1 -0
- package/dist/runtime/schedule/engine-cron-reflection.d.ts +31 -0
- package/dist/runtime/schedule/engine-cron-reflection.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-cron-reflection.js +229 -0
- package/dist/runtime/schedule/engine-cron-reflection.js.map +1 -0
- package/dist/runtime/schedule/engine-execution.d.ts +48 -0
- package/dist/runtime/schedule/engine-execution.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-execution.js +424 -0
- package/dist/runtime/schedule/engine-execution.js.map +1 -0
- package/dist/runtime/schedule/engine-heartbeat.d.ts +5 -0
- package/dist/runtime/schedule/engine-heartbeat.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-heartbeat.js +104 -0
- package/dist/runtime/schedule/engine-heartbeat.js.map +1 -0
- package/dist/runtime/schedule/engine-layers.d.ts +4 -1
- package/dist/runtime/schedule/engine-layers.d.ts.map +1 -1
- package/dist/runtime/schedule/engine-layers.js +15 -229
- package/dist/runtime/schedule/engine-layers.js.map +1 -1
- package/dist/runtime/schedule/engine-mutations.d.ts +37 -0
- package/dist/runtime/schedule/engine-mutations.d.ts.map +1 -0
- package/dist/runtime/schedule/engine-mutations.js +263 -0
- package/dist/runtime/schedule/engine-mutations.js.map +1 -0
- package/dist/runtime/schedule/engine.d.ts +13 -39
- package/dist/runtime/schedule/engine.d.ts.map +1 -1
- package/dist/runtime/schedule/engine.js +65 -810
- package/dist/runtime/schedule/engine.js.map +1 -1
- package/dist/runtime/schedule/history.d.ts +20 -4
- package/dist/runtime/schedule/history.d.ts.map +1 -1
- package/dist/runtime/schedule/history.js +8 -0
- package/dist/runtime/schedule/history.js.map +1 -1
- package/dist/runtime/schedule/index.d.ts +1 -0
- package/dist/runtime/schedule/index.d.ts.map +1 -1
- package/dist/runtime/schedule/index.js +1 -0
- package/dist/runtime/schedule/index.js.map +1 -1
- package/dist/runtime/schedule/legacy-cron-migration.d.ts +9 -0
- package/dist/runtime/schedule/legacy-cron-migration.d.ts.map +1 -0
- package/dist/runtime/schedule/legacy-cron-migration.js +89 -0
- package/dist/runtime/schedule/legacy-cron-migration.js.map +1 -0
- package/dist/runtime/schedule/wait-projection.d.ts +6 -0
- package/dist/runtime/schedule/wait-projection.d.ts.map +1 -0
- package/dist/runtime/schedule/wait-projection.js +102 -0
- package/dist/runtime/schedule/wait-projection.js.map +1 -0
- package/dist/runtime/session-registry/registry-helpers.d.ts +34 -0
- package/dist/runtime/session-registry/registry-helpers.d.ts.map +1 -0
- package/dist/runtime/session-registry/registry-helpers.js +241 -0
- package/dist/runtime/session-registry/registry-helpers.js.map +1 -0
- package/dist/runtime/session-registry/registry.d.ts.map +1 -1
- package/dist/runtime/session-registry/registry.js +16 -243
- package/dist/runtime/session-registry/registry.js.map +1 -1
- package/dist/runtime/session-registry/types.d.ts +138 -130
- package/dist/runtime/session-registry/types.d.ts.map +1 -1
- package/dist/runtime/session-registry/types.js +2 -0
- package/dist/runtime/session-registry/types.js.map +1 -1
- package/dist/runtime/store/artifact-retention.d.ts +44 -0
- package/dist/runtime/store/artifact-retention.d.ts.map +1 -0
- package/dist/runtime/store/artifact-retention.js +263 -0
- package/dist/runtime/store/artifact-retention.js.map +1 -0
- package/dist/runtime/store/background-run-store.d.ts +1 -0
- package/dist/runtime/store/background-run-store.d.ts.map +1 -1
- package/dist/runtime/store/background-run-store.js +1 -0
- package/dist/runtime/store/background-run-store.js.map +1 -1
- package/dist/runtime/store/budget-store.d.ts +442 -0
- package/dist/runtime/store/budget-store.d.ts.map +1 -0
- package/dist/runtime/store/budget-store.js +318 -0
- package/dist/runtime/store/budget-store.js.map +1 -0
- package/dist/runtime/store/dream-checkpoints.d.ts +9 -0
- package/dist/runtime/store/dream-checkpoints.d.ts.map +1 -0
- package/dist/runtime/store/dream-checkpoints.js +16 -0
- package/dist/runtime/store/dream-checkpoints.js.map +1 -0
- package/dist/runtime/store/evaluator-results.d.ts +97 -0
- package/dist/runtime/store/evaluator-results.d.ts.map +1 -0
- package/dist/runtime/store/evaluator-results.js +355 -0
- package/dist/runtime/store/evaluator-results.js.map +1 -0
- package/dist/runtime/store/evidence-ledger.d.ts +5298 -0
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -0
- package/dist/runtime/store/evidence-ledger.js +1452 -0
- package/dist/runtime/store/evidence-ledger.js.map +1 -0
- package/dist/runtime/store/experiment-queue-store.d.ts +1164 -0
- package/dist/runtime/store/experiment-queue-store.d.ts.map +1 -0
- package/dist/runtime/store/experiment-queue-store.js +341 -0
- package/dist/runtime/store/experiment-queue-store.js.map +1 -0
- package/dist/runtime/store/health-store.d.ts.map +1 -1
- package/dist/runtime/store/health-store.js +6 -0
- package/dist/runtime/store/health-store.js.map +1 -1
- package/dist/runtime/store/index.d.ts +25 -2
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +13 -1
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/metric-history.d.ts +10 -0
- package/dist/runtime/store/metric-history.d.ts.map +1 -0
- package/dist/runtime/store/metric-history.js +56 -0
- package/dist/runtime/store/metric-history.js.map +1 -0
- package/dist/runtime/store/operator-handoff-store.d.ts +179 -0
- package/dist/runtime/store/operator-handoff-store.d.ts.map +1 -0
- package/dist/runtime/store/operator-handoff-store.js +120 -0
- package/dist/runtime/store/operator-handoff-store.js.map +1 -0
- package/dist/runtime/store/postmortem-report.d.ts +485 -0
- package/dist/runtime/store/postmortem-report.d.ts.map +1 -0
- package/dist/runtime/store/postmortem-report.js +561 -0
- package/dist/runtime/store/postmortem-report.js.map +1 -0
- package/dist/runtime/store/reproducibility-manifest.d.ts +565 -0
- package/dist/runtime/store/reproducibility-manifest.d.ts.map +1 -0
- package/dist/runtime/store/reproducibility-manifest.js +392 -0
- package/dist/runtime/store/reproducibility-manifest.js.map +1 -0
- package/dist/runtime/store/research-evidence.d.ts +8 -0
- package/dist/runtime/store/research-evidence.d.ts.map +1 -0
- package/dist/runtime/store/research-evidence.js +15 -0
- package/dist/runtime/store/research-evidence.js.map +1 -0
- package/dist/runtime/store/runtime-operation-schemas.d.ts +80 -34
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +16 -1
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
- package/dist/runtime/store/runtime-paths.d.ts +25 -0
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +73 -0
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +1934 -15
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +201 -0
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/runtime/store/safe-pause-store.d.ts +28 -0
- package/dist/runtime/store/safe-pause-store.d.ts.map +1 -0
- package/dist/runtime/store/safe-pause-store.js +103 -0
- package/dist/runtime/store/safe-pause-store.js.map +1 -0
- package/dist/runtime/types/daemon.d.ts +234 -14
- package/dist/runtime/types/daemon.d.ts.map +1 -1
- package/dist/runtime/types/daemon.js +29 -2
- package/dist/runtime/types/daemon.js.map +1 -1
- package/dist/runtime/types/envelope.d.ts +10 -10
- package/dist/runtime/types/hook.d.ts +9 -9
- package/dist/runtime/types/notification.d.ts +6 -6
- package/dist/runtime/types/plugin.d.ts +2 -2
- package/dist/runtime/types/schedule.d.ts +162 -54
- package/dist/runtime/types/schedule.d.ts.map +1 -1
- package/dist/runtime/types/schedule.js +15 -1
- package/dist/runtime/types/schedule.js.map +1 -1
- package/dist/runtime/types/trigger.d.ts +2 -2
- package/dist/tools/automation/InteractiveAutomationTools.d.ts +10 -0
- package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
- package/dist/tools/automation/InteractiveAutomationTools.js +139 -8
- package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
- package/dist/tools/builtin/exports.d.ts +2 -1
- package/dist/tools/builtin/exports.d.ts.map +1 -1
- package/dist/tools/builtin/exports.js +2 -1
- package/dist/tools/builtin/exports.js.map +1 -1
- package/dist/tools/builtin/factory.d.ts +7 -0
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +26 -3
- package/dist/tools/builtin/factory.js.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.d.ts +1 -0
- package/dist/tools/fs/FileValidationTool/protected-path-policy.d.ts.map +1 -1
- package/dist/tools/fs/FileValidationTool/protected-path-policy.js +17 -4
- package/dist/tools/fs/FileValidationTool/protected-path-policy.js.map +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.js +1 -1
- package/dist/tools/fs/ListDirTool/ListDirTool.js.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.d.ts +792 -8
- package/dist/tools/kaggle/KaggleExperimentTools.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.js +284 -19
- package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.d.ts +18 -12
- package/dist/tools/kaggle/KaggleSubmissionTools.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.js +23 -4
- package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.d.ts +28 -9
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.d.ts.map +1 -1
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +182 -4
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
- package/dist/tools/kaggle/index.d.ts +1 -1
- package/dist/tools/kaggle/index.d.ts.map +1 -1
- package/dist/tools/kaggle/index.js +1 -1
- package/dist/tools/kaggle/index.js.map +1 -1
- package/dist/tools/kaggle/metrics.d.ts +845 -4
- package/dist/tools/kaggle/metrics.d.ts.map +1 -1
- package/dist/tools/kaggle/metrics.js +410 -1
- package/dist/tools/kaggle/metrics.js.map +1 -1
- package/dist/tools/kaggle/paths.d.ts.map +1 -1
- package/dist/tools/kaggle/paths.js +6 -0
- package/dist/tools/kaggle/paths.js.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts +6 -0
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.d.ts.map +1 -1
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js +9 -2
- package/dist/tools/mutation/ConfigureNotificationRoutingTool/ConfigureNotificationRoutingTool.js.map +1 -1
- package/dist/tools/mutation/TaskCreateTool/TaskCreateTool.d.ts +4 -4
- package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js +23 -2
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.js.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts.map +1 -1
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js +24 -2
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.js.map +1 -1
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +2 -2
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.d.ts.map +1 -1
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js +43 -9
- package/dist/tools/query/SoilQueryTool/SoilQueryTool.js.map +1 -1
- package/dist/tools/query/code-search-root.d.ts +8 -0
- package/dist/tools/query/code-search-root.d.ts.map +1 -0
- package/dist/tools/query/code-search-root.js +41 -0
- package/dist/tools/query/code-search-root.js.map +1 -0
- package/dist/tools/query/runtime-dream-review-tool.d.ts +34 -0
- package/dist/tools/query/runtime-dream-review-tool.d.ts.map +1 -0
- package/dist/tools/query/runtime-dream-review-tool.js +62 -0
- package/dist/tools/query/runtime-dream-review-tool.js.map +1 -0
- package/dist/tools/query/runtime-session-tools.d.ts +560 -0
- package/dist/tools/query/runtime-session-tools.d.ts.map +1 -0
- package/dist/tools/query/runtime-session-tools.js +1017 -0
- package/dist/tools/query/runtime-session-tools.js.map +1 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +821 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.js +905 -0
- package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -0
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts +62 -32
- package/dist/tools/schedule/CreateScheduleTool/CreateScheduleTool.d.ts.map +1 -1
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts +78 -44
- package/dist/tools/schedule/UpdateScheduleTool/UpdateScheduleTool.d.ts.map +1 -1
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts +1 -0
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.d.ts.map +1 -1
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js +11 -0
- package/dist/tools/system/ProcessSessionTool/ProcessSessionTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +2 -1
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +4 -4
- package/dist/tools/types.d.ts +2 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js.map +1 -1
- package/package.json +2 -1
- package/dist/base/types/cron.d.ts +0 -2
- package/dist/base/types/cron.d.ts.map +0 -1
- package/dist/base/types/cron.js +0 -3
- package/dist/base/types/cron.js.map +0 -1
- package/dist/runtime/cron-scheduler.d.ts +0 -13
- package/dist/runtime/cron-scheduler.d.ts.map +0 -1
- package/dist/runtime/cron-scheduler.js +0 -90
- package/dist/runtime/cron-scheduler.js.map +0 -1
- package/dist/runtime/types/cron.d.ts +0 -59
- package/dist/runtime/types/cron.d.ts.map +0 -1
- package/dist/runtime/types/cron.js +0 -13
- package/dist/runtime/types/cron.js.map +0 -1
|
@@ -0,0 +1,561 @@
|
|
|
1
|
+
import * as fsp from "node:fs/promises";
|
|
2
|
+
import * as path from "node:path";
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
import { createRuntimeStorePaths, ensureRuntimeStorePaths, encodeRuntimePathSegment, } from "./runtime-paths.js";
|
|
5
|
+
import { RuntimeEvidenceLedger, } from "./evidence-ledger.js";
|
|
6
|
+
import { extractMetricObservationsFromEvidence } from "./metric-history.js";
|
|
7
|
+
import { RuntimeReproducibilityManifestSchema, } from "./reproducibility-manifest.js";
|
|
8
|
+
import { RuntimeOperatorHandoffStore } from "./operator-handoff-store.js";
|
|
9
|
+
import { RuntimeExperimentQueueStore } from "./experiment-queue-store.js";
|
|
10
|
+
import { RuntimeBudgetStore } from "./budget-store.js";
|
|
11
|
+
export const RuntimePostmortemScopeSchema = z.object({
|
|
12
|
+
goal_id: z.string().min(1).optional(),
|
|
13
|
+
run_id: z.string().min(1).optional(),
|
|
14
|
+
}).strict().refine((scope) => Boolean(scope.goal_id || scope.run_id), {
|
|
15
|
+
message: "goal_id or run_id is required",
|
|
16
|
+
});
|
|
17
|
+
export const RuntimePostmortemEvidenceRefSchema = z.object({
|
|
18
|
+
kind: z.string().min(1),
|
|
19
|
+
ref: z.string().min(1),
|
|
20
|
+
observed_at: z.string().datetime().optional(),
|
|
21
|
+
summary: z.string().min(1).optional(),
|
|
22
|
+
}).strict();
|
|
23
|
+
export const RuntimePostmortemReportSchema = z.object({
|
|
24
|
+
schema_version: z.literal("runtime-postmortem-v1"),
|
|
25
|
+
postmortem_id: z.string().min(1),
|
|
26
|
+
generated_at: z.string().datetime(),
|
|
27
|
+
scope: RuntimePostmortemScopeSchema,
|
|
28
|
+
final_status: z.string().min(1),
|
|
29
|
+
trigger: z.enum(["completion", "pause", "finalization", "operator_request"]),
|
|
30
|
+
artifact_paths: z.object({
|
|
31
|
+
json_path: z.string().min(1),
|
|
32
|
+
markdown_path: z.string().min(1),
|
|
33
|
+
state_relative_json_path: z.string().min(1),
|
|
34
|
+
state_relative_markdown_path: z.string().min(1),
|
|
35
|
+
}).strict(),
|
|
36
|
+
timeline: z.array(z.object({
|
|
37
|
+
occurred_at: z.string().datetime(),
|
|
38
|
+
kind: z.string().min(1),
|
|
39
|
+
summary: z.string().min(1),
|
|
40
|
+
evidence_refs: z.array(RuntimePostmortemEvidenceRefSchema).default([]),
|
|
41
|
+
}).strict()).default([]),
|
|
42
|
+
metric_timeline: z.array(z.object({
|
|
43
|
+
metric_key: z.string().min(1),
|
|
44
|
+
direction: z.enum(["maximize", "minimize"]),
|
|
45
|
+
trend: z.string().min(1),
|
|
46
|
+
latest_value: z.number(),
|
|
47
|
+
best_value: z.number(),
|
|
48
|
+
observation_count: z.number().int().nonnegative(),
|
|
49
|
+
source_refs: z.array(RuntimePostmortemEvidenceRefSchema).default([]),
|
|
50
|
+
summary: z.string().min(1),
|
|
51
|
+
}).strict()).default([]),
|
|
52
|
+
candidate_decisions: z.object({
|
|
53
|
+
lineages: z.array(z.unknown()).default([]),
|
|
54
|
+
selection_summary: z.unknown(),
|
|
55
|
+
recommended_portfolio: z.array(z.unknown()).default([]),
|
|
56
|
+
near_misses: z.array(z.unknown()).default([]),
|
|
57
|
+
failed_lineages: z.array(z.unknown()).default([]),
|
|
58
|
+
}).strict(),
|
|
59
|
+
final_outputs: z.array(z.object({
|
|
60
|
+
label: z.string().min(1),
|
|
61
|
+
path: z.string().min(1).optional(),
|
|
62
|
+
state_relative_path: z.string().min(1).optional(),
|
|
63
|
+
url: z.string().url().optional(),
|
|
64
|
+
kind: z.string().min(1).optional(),
|
|
65
|
+
retention_class: z.string().min(1).optional(),
|
|
66
|
+
evidence_entry_ids: z.array(z.string().min(1)).default([]),
|
|
67
|
+
manifest_id: z.string().min(1).optional(),
|
|
68
|
+
sha256: z.string().min(1).optional(),
|
|
69
|
+
observed_at: z.string().datetime().optional(),
|
|
70
|
+
}).strict()).default([]),
|
|
71
|
+
evaluator_gaps: z.array(z.unknown()).default([]),
|
|
72
|
+
handoffs: z.array(z.unknown()).default([]),
|
|
73
|
+
manifests: z.array(z.unknown()).default([]),
|
|
74
|
+
budgets: z.array(z.unknown()).default([]),
|
|
75
|
+
experiment_queues: z.array(z.unknown()).default([]),
|
|
76
|
+
follow_up_actions: z.array(z.object({
|
|
77
|
+
title: z.string().min(1),
|
|
78
|
+
rationale: z.string().min(1),
|
|
79
|
+
evidence_refs: z.array(RuntimePostmortemEvidenceRefSchema).default([]),
|
|
80
|
+
approval_required: z.boolean().default(false),
|
|
81
|
+
auto_create: z.literal(false).default(false),
|
|
82
|
+
}).strict()).default([]),
|
|
83
|
+
evidence_refs: z.array(RuntimePostmortemEvidenceRefSchema).default([]),
|
|
84
|
+
warnings: z.array(z.string().min(1)).default([]),
|
|
85
|
+
}).strict();
|
|
86
|
+
export class RuntimePostmortemReportStore {
|
|
87
|
+
paths;
|
|
88
|
+
constructor(runtimeRootOrPaths) {
|
|
89
|
+
this.paths = typeof runtimeRootOrPaths === "string"
|
|
90
|
+
? createRuntimeStorePaths(runtimeRootOrPaths)
|
|
91
|
+
: runtimeRootOrPaths ?? createRuntimeStorePaths();
|
|
92
|
+
}
|
|
93
|
+
async generate(input) {
|
|
94
|
+
const scope = RuntimePostmortemScopeSchema.parse({
|
|
95
|
+
...(input.goalId ? { goal_id: input.goalId } : {}),
|
|
96
|
+
...(input.runId ? { run_id: input.runId } : {}),
|
|
97
|
+
});
|
|
98
|
+
await ensureRuntimeStorePaths(this.paths);
|
|
99
|
+
const postmortemId = postmortemIdFor(scope);
|
|
100
|
+
const generatedAt = new Date().toISOString();
|
|
101
|
+
const ledger = new RuntimeEvidenceLedger(this.paths);
|
|
102
|
+
const { entries, summary } = await this.readEvidence(scope, ledger);
|
|
103
|
+
const scopeContext = buildScopeContext(scope, entries);
|
|
104
|
+
const manifests = await this.readManifests(scopeContext);
|
|
105
|
+
const handoffs = await this.readHandoffs(scopeContext);
|
|
106
|
+
const budgets = await this.readBudgets(scopeContext);
|
|
107
|
+
const experimentQueues = await this.readExperimentQueues(scopeContext);
|
|
108
|
+
const reportPaths = this.reportPaths(postmortemId);
|
|
109
|
+
const report = RuntimePostmortemReportSchema.parse({
|
|
110
|
+
schema_version: "runtime-postmortem-v1",
|
|
111
|
+
postmortem_id: postmortemId,
|
|
112
|
+
generated_at: generatedAt,
|
|
113
|
+
scope,
|
|
114
|
+
final_status: input.finalStatus ?? inferFinalStatus(scope, summary, handoffs),
|
|
115
|
+
trigger: input.trigger ?? inferTrigger(input.finalStatus, handoffs),
|
|
116
|
+
artifact_paths: reportPaths,
|
|
117
|
+
timeline: buildTimeline(entries),
|
|
118
|
+
metric_timeline: buildMetricTimeline(entries, summary),
|
|
119
|
+
candidate_decisions: {
|
|
120
|
+
lineages: summary.candidate_lineages,
|
|
121
|
+
selection_summary: summary.candidate_selection_summary,
|
|
122
|
+
recommended_portfolio: summary.recommended_candidate_portfolio,
|
|
123
|
+
near_misses: summary.near_miss_candidates,
|
|
124
|
+
failed_lineages: summary.failed_lineages,
|
|
125
|
+
},
|
|
126
|
+
final_outputs: buildFinalOutputs(summary, manifests, entries),
|
|
127
|
+
evaluator_gaps: summary.evaluator_summary.gap ? [summary.evaluator_summary.gap] : [],
|
|
128
|
+
handoffs: handoffs.map(summarizeHandoff),
|
|
129
|
+
manifests: manifests.map(summarizeManifest),
|
|
130
|
+
budgets: budgets.map((budget) => ({
|
|
131
|
+
budget_id: budget.budget_id,
|
|
132
|
+
scope: budget.scope,
|
|
133
|
+
title: budget.title,
|
|
134
|
+
updated_at: budget.updated_at,
|
|
135
|
+
status: new RuntimeBudgetStore(this.paths).status(budget),
|
|
136
|
+
})),
|
|
137
|
+
experiment_queues: experimentQueues.map(summarizeExperimentQueue),
|
|
138
|
+
follow_up_actions: buildFollowUpActions(summary, handoffs),
|
|
139
|
+
evidence_refs: collectEvidenceRefs(entries, manifests, handoffs),
|
|
140
|
+
warnings: summary.warnings.map((warning) => `${warning.file}:${warning.line} ${warning.message}`),
|
|
141
|
+
});
|
|
142
|
+
await this.writeReport(report);
|
|
143
|
+
await this.appendEvidenceEntry(ledger, report);
|
|
144
|
+
return report;
|
|
145
|
+
}
|
|
146
|
+
async load(postmortemId) {
|
|
147
|
+
try {
|
|
148
|
+
const raw = await fsp.readFile(this.paths.postmortemJsonPath(postmortemId), "utf8");
|
|
149
|
+
return RuntimePostmortemReportSchema.parse(JSON.parse(raw));
|
|
150
|
+
}
|
|
151
|
+
catch (err) {
|
|
152
|
+
if (err.code === "ENOENT")
|
|
153
|
+
return null;
|
|
154
|
+
throw err;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
async latestFor(input) {
|
|
158
|
+
const scope = RuntimePostmortemScopeSchema.parse({
|
|
159
|
+
...(input.goalId ? { goal_id: input.goalId } : {}),
|
|
160
|
+
...(input.runId ? { run_id: input.runId } : {}),
|
|
161
|
+
});
|
|
162
|
+
return this.load(postmortemIdFor(scope));
|
|
163
|
+
}
|
|
164
|
+
markdownFor(report) {
|
|
165
|
+
return renderPostmortemMarkdown(report);
|
|
166
|
+
}
|
|
167
|
+
async readEvidence(scope, ledger) {
|
|
168
|
+
if (scope.run_id) {
|
|
169
|
+
const [read, summary] = await Promise.all([
|
|
170
|
+
ledger.readByRun(scope.run_id),
|
|
171
|
+
ledger.summarizeRun(scope.run_id),
|
|
172
|
+
]);
|
|
173
|
+
return { entries: read.entries, summary };
|
|
174
|
+
}
|
|
175
|
+
const [read, summary] = await Promise.all([
|
|
176
|
+
ledger.readByGoal(scope.goal_id),
|
|
177
|
+
ledger.summarizeGoal(scope.goal_id),
|
|
178
|
+
]);
|
|
179
|
+
return { entries: read.entries, summary };
|
|
180
|
+
}
|
|
181
|
+
async readManifests(scope) {
|
|
182
|
+
let fileNames;
|
|
183
|
+
try {
|
|
184
|
+
fileNames = await fsp.readdir(this.paths.reproducibilityManifestsDir);
|
|
185
|
+
}
|
|
186
|
+
catch (err) {
|
|
187
|
+
if (err.code === "ENOENT")
|
|
188
|
+
return [];
|
|
189
|
+
throw err;
|
|
190
|
+
}
|
|
191
|
+
const manifests = [];
|
|
192
|
+
for (const fileName of fileNames) {
|
|
193
|
+
if (!fileName.endsWith(".json"))
|
|
194
|
+
continue;
|
|
195
|
+
try {
|
|
196
|
+
const parsed = RuntimeReproducibilityManifestSchema.parse(JSON.parse(await fsp.readFile(path.join(this.paths.reproducibilityManifestsDir, fileName), "utf8")));
|
|
197
|
+
if (scopeMatches(scope, parsed.scope))
|
|
198
|
+
manifests.push(parsed);
|
|
199
|
+
}
|
|
200
|
+
catch {
|
|
201
|
+
continue;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
return manifests.sort((a, b) => b.updated_at.localeCompare(a.updated_at));
|
|
205
|
+
}
|
|
206
|
+
async readHandoffs(scope) {
|
|
207
|
+
const store = new RuntimeOperatorHandoffStore(this.paths);
|
|
208
|
+
const handoffs = await store.list();
|
|
209
|
+
return handoffs.filter((handoff) => scopeMatches(scope, { goal_id: handoff.goal_id, run_id: handoff.run_id }));
|
|
210
|
+
}
|
|
211
|
+
async readBudgets(scope) {
|
|
212
|
+
const store = new RuntimeBudgetStore(this.paths);
|
|
213
|
+
const budgets = await store.list();
|
|
214
|
+
return budgets.filter((budget) => scopeMatches(scope, budget.scope));
|
|
215
|
+
}
|
|
216
|
+
async readExperimentQueues(scope) {
|
|
217
|
+
const store = new RuntimeExperimentQueueStore(this.paths);
|
|
218
|
+
const queues = await store.list();
|
|
219
|
+
return queues.filter((queue) => scopeMatches(scope, { goal_id: queue.goal_id, run_id: queue.run_id }));
|
|
220
|
+
}
|
|
221
|
+
reportPaths(postmortemId) {
|
|
222
|
+
const dirName = encodeRuntimePathSegment(postmortemId);
|
|
223
|
+
return {
|
|
224
|
+
json_path: this.paths.postmortemJsonPath(postmortemId),
|
|
225
|
+
markdown_path: this.paths.postmortemMarkdownPath(postmortemId),
|
|
226
|
+
state_relative_json_path: path.join("postmortems", dirName, "postmortem.json"),
|
|
227
|
+
state_relative_markdown_path: path.join("postmortems", dirName, "postmortem.md"),
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
async writeReport(report) {
|
|
231
|
+
await fsp.mkdir(this.paths.postmortemDir(report.postmortem_id), { recursive: true });
|
|
232
|
+
await Promise.all([
|
|
233
|
+
fsp.writeFile(report.artifact_paths.json_path, `${JSON.stringify(report, null, 2)}\n`, "utf8"),
|
|
234
|
+
fsp.writeFile(report.artifact_paths.markdown_path, renderPostmortemMarkdown(report), "utf8"),
|
|
235
|
+
]);
|
|
236
|
+
}
|
|
237
|
+
async appendEvidenceEntry(ledger, report) {
|
|
238
|
+
const evidenceId = `${report.postmortem_id}:artifact`;
|
|
239
|
+
const read = report.scope.run_id
|
|
240
|
+
? await ledger.readByRun(report.scope.run_id)
|
|
241
|
+
: await ledger.readByGoal(report.scope.goal_id);
|
|
242
|
+
if (read.entries.some((entry) => entry.id === evidenceId))
|
|
243
|
+
return;
|
|
244
|
+
await ledger.append({
|
|
245
|
+
id: evidenceId,
|
|
246
|
+
occurred_at: report.generated_at,
|
|
247
|
+
kind: "artifact",
|
|
248
|
+
scope: {
|
|
249
|
+
...(report.scope.goal_id ? { goal_id: report.scope.goal_id } : {}),
|
|
250
|
+
...(report.scope.run_id ? { run_id: report.scope.run_id } : {}),
|
|
251
|
+
},
|
|
252
|
+
artifacts: [
|
|
253
|
+
{
|
|
254
|
+
label: "postmortem.md",
|
|
255
|
+
path: report.artifact_paths.markdown_path,
|
|
256
|
+
state_relative_path: report.artifact_paths.state_relative_markdown_path,
|
|
257
|
+
kind: "report",
|
|
258
|
+
retention_class: "evidence_report",
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
label: "postmortem.json",
|
|
262
|
+
path: report.artifact_paths.json_path,
|
|
263
|
+
state_relative_path: report.artifact_paths.state_relative_json_path,
|
|
264
|
+
kind: "metrics",
|
|
265
|
+
retention_class: "evidence_report",
|
|
266
|
+
},
|
|
267
|
+
],
|
|
268
|
+
raw_refs: [{ kind: "runtime_postmortem", id: report.postmortem_id }],
|
|
269
|
+
summary: `Postmortem generated for ${report.scope.run_id ?? report.scope.goal_id}.`,
|
|
270
|
+
outcome: "continued",
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
function postmortemIdFor(scope) {
|
|
275
|
+
return scope.run_id ? `postmortem:run:${scope.run_id}` : `postmortem:goal:${scope.goal_id}`;
|
|
276
|
+
}
|
|
277
|
+
function buildScopeContext(scope, entries) {
|
|
278
|
+
const linkedGoalIds = new Set();
|
|
279
|
+
if (scope.goal_id)
|
|
280
|
+
linkedGoalIds.add(scope.goal_id);
|
|
281
|
+
for (const entry of entries) {
|
|
282
|
+
if (entry.scope.goal_id)
|
|
283
|
+
linkedGoalIds.add(entry.scope.goal_id);
|
|
284
|
+
}
|
|
285
|
+
return {
|
|
286
|
+
...scope,
|
|
287
|
+
linked_goal_ids: [...linkedGoalIds],
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function scopeMatches(requested, candidate) {
|
|
291
|
+
if (requested.run_id) {
|
|
292
|
+
if (candidate.run_id)
|
|
293
|
+
return candidate.run_id === requested.run_id;
|
|
294
|
+
return Boolean(candidate.goal_id && requested.linked_goal_ids.includes(candidate.goal_id));
|
|
295
|
+
}
|
|
296
|
+
if (candidate.goal_id && requested.linked_goal_ids.includes(candidate.goal_id))
|
|
297
|
+
return true;
|
|
298
|
+
return !requested.run_id && candidate.goal_id === requested.goal_id;
|
|
299
|
+
}
|
|
300
|
+
function buildTimeline(entries) {
|
|
301
|
+
return entries
|
|
302
|
+
.slice()
|
|
303
|
+
.sort((a, b) => a.occurred_at.localeCompare(b.occurred_at))
|
|
304
|
+
.map((entry) => ({
|
|
305
|
+
occurred_at: entry.occurred_at,
|
|
306
|
+
kind: entry.kind,
|
|
307
|
+
summary: entry.summary ?? entry.result?.summary ?? entry.decision_reason ?? entry.id,
|
|
308
|
+
evidence_refs: refsForEntry(entry),
|
|
309
|
+
}));
|
|
310
|
+
}
|
|
311
|
+
function buildMetricTimeline(entries, summary) {
|
|
312
|
+
const observations = extractMetricObservationsFromEvidence(entries);
|
|
313
|
+
return summary.metric_trends.map((trend) => ({
|
|
314
|
+
metric_key: trend.metric_key,
|
|
315
|
+
direction: trend.direction,
|
|
316
|
+
trend: trend.trend,
|
|
317
|
+
latest_value: trend.latest_value,
|
|
318
|
+
best_value: trend.best_value,
|
|
319
|
+
observation_count: trend.observation_count,
|
|
320
|
+
source_refs: observations
|
|
321
|
+
.filter((observation) => observation.metric_key === trend.metric_key && observation.direction === trend.direction)
|
|
322
|
+
.map((observation) => ({
|
|
323
|
+
kind: observation.source.kind,
|
|
324
|
+
ref: observation.source.entry_id,
|
|
325
|
+
observed_at: observation.observed_at,
|
|
326
|
+
...(observation.source.summary ? { summary: observation.source.summary } : {}),
|
|
327
|
+
})),
|
|
328
|
+
summary: trend.summary,
|
|
329
|
+
}));
|
|
330
|
+
}
|
|
331
|
+
function buildFinalOutputs(summary, manifests, entries) {
|
|
332
|
+
const outputs = new Map();
|
|
333
|
+
for (const action of summary.artifact_retention.cleanup_plan.actions) {
|
|
334
|
+
if (!action.protected && action.retention_class !== "final_deliverable")
|
|
335
|
+
continue;
|
|
336
|
+
const key = action.path ?? action.state_relative_path ?? action.url ?? action.key;
|
|
337
|
+
outputs.set(key, {
|
|
338
|
+
label: action.label,
|
|
339
|
+
...(action.path ? { path: action.path } : {}),
|
|
340
|
+
...(action.state_relative_path ? { state_relative_path: action.state_relative_path } : {}),
|
|
341
|
+
...(action.url ? { url: action.url } : {}),
|
|
342
|
+
kind: action.kind,
|
|
343
|
+
retention_class: action.retention_class,
|
|
344
|
+
evidence_entry_ids: action.evidence_entry_ids,
|
|
345
|
+
});
|
|
346
|
+
}
|
|
347
|
+
for (const manifest of manifests) {
|
|
348
|
+
for (const artifact of manifest.artifacts) {
|
|
349
|
+
const key = artifact.path ?? artifact.state_relative_path ?? artifact.label;
|
|
350
|
+
const existing = outputs.get(key);
|
|
351
|
+
outputs.set(key, {
|
|
352
|
+
label: artifact.label,
|
|
353
|
+
...(artifact.path ? { path: artifact.path } : {}),
|
|
354
|
+
...(artifact.state_relative_path ? { state_relative_path: artifact.state_relative_path } : {}),
|
|
355
|
+
kind: artifact.kind,
|
|
356
|
+
evidence_entry_ids: existing?.evidence_entry_ids ?? evidenceIdsForArtifact(entries, artifact),
|
|
357
|
+
manifest_id: manifest.manifest_id,
|
|
358
|
+
...(artifact.sha256 ? { sha256: artifact.sha256 } : {}),
|
|
359
|
+
...(existing?.observed_at ? { observed_at: existing.observed_at } : {}),
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
return [...outputs.values()];
|
|
364
|
+
}
|
|
365
|
+
function buildFollowUpActions(summary, handoffs) {
|
|
366
|
+
const actions = [];
|
|
367
|
+
for (const nearMiss of summary.near_miss_candidates) {
|
|
368
|
+
if (!nearMiss.follow_up)
|
|
369
|
+
continue;
|
|
370
|
+
actions.push({
|
|
371
|
+
title: nearMiss.follow_up.title,
|
|
372
|
+
rationale: nearMiss.follow_up.rationale,
|
|
373
|
+
evidence_refs: nearMiss.evidence_refs.map((ref) => ({ kind: "evidence", ref })),
|
|
374
|
+
approval_required: false,
|
|
375
|
+
auto_create: false,
|
|
376
|
+
});
|
|
377
|
+
}
|
|
378
|
+
for (const failed of summary.failed_lineages.slice(0, 3)) {
|
|
379
|
+
actions.push({
|
|
380
|
+
title: `Revisit failed lineage: ${failed.fingerprint}`,
|
|
381
|
+
rationale: failed.failure_reason ?? failed.representative_summary,
|
|
382
|
+
evidence_refs: failed.evidence_entry_ids.map((ref) => ({ kind: "evidence", ref })),
|
|
383
|
+
approval_required: false,
|
|
384
|
+
auto_create: false,
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
for (const handoff of handoffs.filter((item) => item.status === "open").slice(0, 5)) {
|
|
388
|
+
actions.push({
|
|
389
|
+
title: handoff.next_action.label,
|
|
390
|
+
rationale: handoff.recommended_action,
|
|
391
|
+
evidence_refs: handoff.evidence_refs.map((ref) => ({
|
|
392
|
+
kind: ref.kind,
|
|
393
|
+
ref: ref.ref,
|
|
394
|
+
...(ref.observed_at ? { observed_at: ref.observed_at } : {}),
|
|
395
|
+
})),
|
|
396
|
+
approval_required: handoff.next_action.approval_required,
|
|
397
|
+
auto_create: false,
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
if (summary.evaluator_summary.gap && summary.evaluator_summary.gap.kind !== "none") {
|
|
401
|
+
actions.push({
|
|
402
|
+
title: `Resolve evaluator gap: ${summary.evaluator_summary.gap.kind}`,
|
|
403
|
+
rationale: summary.evaluator_summary.gap.summary,
|
|
404
|
+
evidence_refs: [],
|
|
405
|
+
approval_required: summary.evaluator_summary.approval_required_actions.length > 0,
|
|
406
|
+
auto_create: false,
|
|
407
|
+
});
|
|
408
|
+
}
|
|
409
|
+
return actions;
|
|
410
|
+
}
|
|
411
|
+
function collectEvidenceRefs(entries, manifests, handoffs) {
|
|
412
|
+
const refs = new Map();
|
|
413
|
+
for (const entry of entries) {
|
|
414
|
+
refs.set(`evidence:${entry.id}`, {
|
|
415
|
+
kind: "runtime_evidence",
|
|
416
|
+
ref: entry.id,
|
|
417
|
+
observed_at: entry.occurred_at,
|
|
418
|
+
...(entry.summary ? { summary: entry.summary } : {}),
|
|
419
|
+
});
|
|
420
|
+
for (const artifact of entry.artifacts) {
|
|
421
|
+
const ref = artifact.state_relative_path ?? artifact.path ?? artifact.url;
|
|
422
|
+
if (ref)
|
|
423
|
+
refs.set(`artifact:${ref}`, { kind: "artifact", ref, observed_at: entry.occurred_at, summary: artifact.label });
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
for (const manifest of manifests) {
|
|
427
|
+
refs.set(`manifest:${manifest.manifest_id}`, {
|
|
428
|
+
kind: "reproducibility_manifest",
|
|
429
|
+
ref: manifest.manifest_id,
|
|
430
|
+
observed_at: manifest.updated_at,
|
|
431
|
+
summary: manifest.finalization_preflight.status,
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
for (const handoff of handoffs) {
|
|
435
|
+
refs.set(`handoff:${handoff.handoff_id}`, {
|
|
436
|
+
kind: "operator_handoff",
|
|
437
|
+
ref: handoff.handoff_id,
|
|
438
|
+
observed_at: handoff.created_at,
|
|
439
|
+
summary: handoff.title,
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
return [...refs.values()].sort((a, b) => (a.observed_at ?? "").localeCompare(b.observed_at ?? ""));
|
|
443
|
+
}
|
|
444
|
+
function refsForEntry(entry) {
|
|
445
|
+
return [
|
|
446
|
+
{
|
|
447
|
+
kind: "runtime_evidence",
|
|
448
|
+
ref: entry.id,
|
|
449
|
+
observed_at: entry.occurred_at,
|
|
450
|
+
...(entry.summary ? { summary: entry.summary } : {}),
|
|
451
|
+
},
|
|
452
|
+
...entry.raw_refs.map((ref) => ({
|
|
453
|
+
kind: ref.kind,
|
|
454
|
+
ref: ref.state_relative_path ?? ref.path ?? ref.url ?? ref.id ?? entry.id,
|
|
455
|
+
observed_at: entry.occurred_at,
|
|
456
|
+
})),
|
|
457
|
+
];
|
|
458
|
+
}
|
|
459
|
+
function evidenceIdsForArtifact(entries, artifact) {
|
|
460
|
+
return entries
|
|
461
|
+
.filter((entry) => entry.artifacts.some((candidate) => candidate.label === artifact.label
|
|
462
|
+
|| (artifact.path && candidate.path === artifact.path)
|
|
463
|
+
|| (artifact.state_relative_path && candidate.state_relative_path === artifact.state_relative_path)))
|
|
464
|
+
.map((entry) => entry.id);
|
|
465
|
+
}
|
|
466
|
+
function summarizeManifest(manifest) {
|
|
467
|
+
return {
|
|
468
|
+
manifest_id: manifest.manifest_id,
|
|
469
|
+
updated_at: manifest.updated_at,
|
|
470
|
+
scope: manifest.scope,
|
|
471
|
+
selected_candidate: manifest.selected_candidate?.candidate_id ?? null,
|
|
472
|
+
selected_deliverable: manifest.selected_deliverable?.label ?? null,
|
|
473
|
+
finalization_preflight: manifest.finalization_preflight,
|
|
474
|
+
artifact_count: manifest.artifacts.length,
|
|
475
|
+
evaluator_record_count: manifest.evaluator_records.length,
|
|
476
|
+
};
|
|
477
|
+
}
|
|
478
|
+
function summarizeHandoff(handoff) {
|
|
479
|
+
return {
|
|
480
|
+
handoff_id: handoff.handoff_id,
|
|
481
|
+
status: handoff.status,
|
|
482
|
+
triggers: handoff.triggers,
|
|
483
|
+
title: handoff.title,
|
|
484
|
+
created_at: handoff.created_at,
|
|
485
|
+
resolved_at: handoff.resolved_at ?? null,
|
|
486
|
+
recommended_action: handoff.recommended_action,
|
|
487
|
+
required_approvals: handoff.required_approvals,
|
|
488
|
+
evidence_refs: handoff.evidence_refs,
|
|
489
|
+
};
|
|
490
|
+
}
|
|
491
|
+
function summarizeExperimentQueue(queue) {
|
|
492
|
+
const revision = queue.revisions.find((candidate) => candidate.version === queue.current_version) ?? queue.revisions.at(-1);
|
|
493
|
+
return {
|
|
494
|
+
queue_id: queue.queue_id,
|
|
495
|
+
goal_id: queue.goal_id ?? null,
|
|
496
|
+
run_id: queue.run_id ?? null,
|
|
497
|
+
title: queue.title ?? null,
|
|
498
|
+
current_version: queue.current_version,
|
|
499
|
+
phase: revision.phase,
|
|
500
|
+
status: revision.status,
|
|
501
|
+
updated_at: queue.updated_at,
|
|
502
|
+
items: {
|
|
503
|
+
total: revision.items.length,
|
|
504
|
+
succeeded: revision.items.filter((item) => item.status === "succeeded").length,
|
|
505
|
+
failed: revision.items.filter((item) => item.status === "failed").length,
|
|
506
|
+
pending: revision.items.filter((item) => item.status === "pending").length,
|
|
507
|
+
running: revision.items.filter((item) => item.status === "running").length,
|
|
508
|
+
},
|
|
509
|
+
};
|
|
510
|
+
}
|
|
511
|
+
function inferFinalStatus(scope, summary, handoffs) {
|
|
512
|
+
const recentStatus = summary.recent_entries.find((entry) => entry.result?.status)?.result?.status;
|
|
513
|
+
if (recentStatus)
|
|
514
|
+
return recentStatus;
|
|
515
|
+
if (handoffs.some((handoff) => handoff.triggers.includes("finalization")))
|
|
516
|
+
return "finalization";
|
|
517
|
+
return scope.run_id ? "completed_or_paused" : "completed";
|
|
518
|
+
}
|
|
519
|
+
function inferTrigger(finalStatus, handoffs) {
|
|
520
|
+
if (finalStatus === "finalization" || handoffs.some((handoff) => handoff.triggers.includes("finalization")))
|
|
521
|
+
return "finalization";
|
|
522
|
+
if (finalStatus === "stopped" || finalStatus === "paused")
|
|
523
|
+
return "pause";
|
|
524
|
+
return finalStatus === "completed" ? "completion" : "operator_request";
|
|
525
|
+
}
|
|
526
|
+
function renderPostmortemMarkdown(report) {
|
|
527
|
+
const lines = [
|
|
528
|
+
`# Runtime Postmortem: ${report.scope.run_id ?? report.scope.goal_id}`,
|
|
529
|
+
"",
|
|
530
|
+
`- Generated: ${report.generated_at}`,
|
|
531
|
+
`- Final status: ${report.final_status}`,
|
|
532
|
+
`- Trigger: ${report.trigger}`,
|
|
533
|
+
"",
|
|
534
|
+
"## Metric Timeline",
|
|
535
|
+
...sectionLines(report.metric_timeline, (metric) => `- ${metric.metric_key}: ${metric.trend}, latest=${metric.latest_value}, best=${metric.best_value}, observations=${metric.observation_count}`),
|
|
536
|
+
"",
|
|
537
|
+
"## Candidate Decisions",
|
|
538
|
+
`- Candidate lineages: ${report.candidate_decisions.lineages.length}`,
|
|
539
|
+
`- Recommended portfolio items: ${report.candidate_decisions.recommended_portfolio.length}`,
|
|
540
|
+
`- Near misses: ${report.candidate_decisions.near_misses.length}`,
|
|
541
|
+
`- Failed lineages: ${report.candidate_decisions.failed_lineages.length}`,
|
|
542
|
+
"",
|
|
543
|
+
"## Final Outputs",
|
|
544
|
+
...sectionLines(report.final_outputs, (artifact) => `- ${artifact.label}: ${artifact.state_relative_path ?? artifact.path ?? artifact.url ?? "no path"}${artifact.manifest_id ? ` (manifest ${artifact.manifest_id})` : ""}`),
|
|
545
|
+
"",
|
|
546
|
+
"## Operator Handoffs",
|
|
547
|
+
...sectionLines(report.handoffs, (handoff) => `- ${handoff.handoff_id ?? "-"}: ${handoff.status ?? "-"} ${handoff.title ?? ""}`.trim()),
|
|
548
|
+
"",
|
|
549
|
+
"## Follow-up Actions",
|
|
550
|
+
...sectionLines(report.follow_up_actions, (action) => `- ${action.title}: ${action.rationale} (auto_create=${action.auto_create}, approval_required=${action.approval_required})`),
|
|
551
|
+
"",
|
|
552
|
+
"## Evidence",
|
|
553
|
+
...sectionLines(report.evidence_refs.slice(0, 40), (ref) => `- ${ref.kind}: ${ref.ref}${ref.observed_at ? ` @ ${ref.observed_at}` : ""}${ref.summary ? ` - ${ref.summary}` : ""}`),
|
|
554
|
+
"",
|
|
555
|
+
];
|
|
556
|
+
return `${lines.join("\n")}\n`;
|
|
557
|
+
}
|
|
558
|
+
function sectionLines(items, format) {
|
|
559
|
+
return items.length > 0 ? items.map(format) : ["- (none)"];
|
|
560
|
+
}
|
|
561
|
+
//# sourceMappingURL=postmortem-report.js.map
|
|
@@ -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