@emiliosp/pi-maestro 0.7.4 → 0.9.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/ADR.md +89 -0
- package/CHANGELOG.md +6 -0
- package/README.md +3 -2
- package/ROADMAP.md +115 -21
- package/agents/builder.md +2 -4
- package/docs/glossary.md +2 -1
- package/docs/workflow.md +25 -9
- package/node_modules/pi-subagents/CHANGELOG.md +140 -0
- package/node_modules/pi-subagents/README.md +1 -1
- package/node_modules/pi-subagents/agents/evidence-auditor.md +1 -0
- package/node_modules/pi-subagents/agents/oracle.md +9 -19
- package/node_modules/pi-subagents/agents/researcher.md +0 -3
- package/node_modules/pi-subagents/agents/reviewer.md +18 -61
- package/node_modules/pi-subagents/agents/scout.md +1 -4
- package/node_modules/pi-subagents/agents/worker.md +8 -25
- package/node_modules/pi-subagents/docs/agents.md +71 -4
- package/node_modules/pi-subagents/docs/configuration.md +75 -10
- package/node_modules/pi-subagents/docs/extension-api.md +40 -11
- package/node_modules/pi-subagents/docs/missions.md +24 -17
- package/node_modules/pi-subagents/docs/models.md +1 -1
- package/node_modules/pi-subagents/docs/observability.md +12 -5
- package/node_modules/pi-subagents/docs/tool-reference.md +103 -85
- package/node_modules/pi-subagents/docs/watchdog.md +8 -6
- package/node_modules/pi-subagents/docs/workflows.md +17 -8
- package/node_modules/pi-subagents/index.d.ts.map +1 -1
- package/node_modules/pi-subagents/index.js +5 -0
- package/node_modules/pi-subagents/index.js.map +1 -1
- package/node_modules/pi-subagents/package.json +2 -1
- package/node_modules/pi-subagents/prompts/council.md +1 -1
- package/node_modules/pi-subagents/skills/pi-subagents/SKILL.md +2 -2
- package/node_modules/pi-subagents/skills/pi-subagents/references/constraints-and-recipes.md +1 -1
- package/node_modules/pi-subagents/skills/pi-subagents/references/execution-controls.md +16 -16
- package/node_modules/pi-subagents/skills/pi-subagents/references/management-authoring-rpc.md +16 -12
- package/node_modules/pi-subagents/skills/pi-subagents/references/multi-lane-orchestration.md +1 -1
- package/node_modules/pi-subagents/skills/pi-subagents/references/prompting-and-roles.md +3 -3
- package/node_modules/pi-subagents/src/agents/advertised-agent-prompt.d.ts +5 -1
- package/node_modules/pi-subagents/src/agents/advertised-agent-prompt.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/agents/advertised-agent-prompt.js +8 -2
- package/node_modules/pi-subagents/src/agents/advertised-agent-prompt.js.map +1 -1
- package/node_modules/pi-subagents/src/agents/agent-management.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/agents/agent-management.js +5 -0
- package/node_modules/pi-subagents/src/agents/agent-management.js.map +1 -1
- package/node_modules/pi-subagents/src/agents/agent-scope.d.ts +1 -0
- package/node_modules/pi-subagents/src/agents/agent-scope.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/agents/agent-scope.js +3 -0
- package/node_modules/pi-subagents/src/agents/agent-scope.js.map +1 -1
- package/node_modules/pi-subagents/src/agents/agent-serializer.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/agents/agent-serializer.js +3 -0
- package/node_modules/pi-subagents/src/agents/agent-serializer.js.map +1 -1
- package/node_modules/pi-subagents/src/agents/agents.d.ts +14 -2
- package/node_modules/pi-subagents/src/agents/agents.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/agents/agents.js +94 -36
- package/node_modules/pi-subagents/src/agents/agents.js.map +1 -1
- package/node_modules/pi-subagents/src/api/external-runs.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/api/external-runs.js +5 -4
- package/node_modules/pi-subagents/src/api/external-runs.js.map +1 -1
- package/node_modules/pi-subagents/src/api/preflight.d.ts +2 -0
- package/node_modules/pi-subagents/src/api/preflight.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/api/preflight.js +7 -3
- package/node_modules/pi-subagents/src/api/preflight.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/active-runs-prompt.d.ts +8 -0
- package/node_modules/pi-subagents/src/extension/active-runs-prompt.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/extension/active-runs-prompt.js +30 -0
- package/node_modules/pi-subagents/src/extension/active-runs-prompt.js.map +1 -0
- package/node_modules/pi-subagents/src/extension/config.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/config.js +29 -2
- package/node_modules/pi-subagents/src/extension/config.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/control-notices.d.ts +0 -2
- package/node_modules/pi-subagents/src/extension/control-notices.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/control-notices.js +1 -7
- package/node_modules/pi-subagents/src/extension/control-notices.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/declaration-pinning.d.ts +19 -0
- package/node_modules/pi-subagents/src/extension/declaration-pinning.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/extension/declaration-pinning.js +154 -0
- package/node_modules/pi-subagents/src/extension/declaration-pinning.js.map +1 -0
- package/node_modules/pi-subagents/src/extension/doctor.d.ts +3 -1
- package/node_modules/pi-subagents/src/extension/doctor.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/doctor.js +3 -9
- package/node_modules/pi-subagents/src/extension/doctor.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/fanout-child.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/fanout-child.js +6 -8
- package/node_modules/pi-subagents/src/extension/fanout-child.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/index.d.ts +1 -2
- package/node_modules/pi-subagents/src/extension/index.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/index.js +121 -127
- package/node_modules/pi-subagents/src/extension/index.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/rpc.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/rpc.js +12 -6
- package/node_modules/pi-subagents/src/extension/rpc.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/schemas.d.ts +137 -1
- package/node_modules/pi-subagents/src/extension/schemas.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/schemas.js +22 -22
- package/node_modules/pi-subagents/src/extension/schemas.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/subagent-guide.d.ts +1 -0
- package/node_modules/pi-subagents/src/extension/subagent-guide.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/subagent-guide.js +80 -6
- package/node_modules/pi-subagents/src/extension/subagent-guide.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/subagent-options.d.ts +8 -0
- package/node_modules/pi-subagents/src/extension/subagent-options.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/extension/subagent-options.js +52 -0
- package/node_modules/pi-subagents/src/extension/subagent-options.js.map +1 -0
- package/node_modules/pi-subagents/src/extension/tool-activation.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/tool-activation.js +7 -4
- package/node_modules/pi-subagents/src/extension/tool-activation.js.map +1 -1
- package/node_modules/pi-subagents/src/extension/tool-description.d.ts +4 -7
- package/node_modules/pi-subagents/src/extension/tool-description.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/extension/tool-description.js +45 -59
- package/node_modules/pi-subagents/src/extension/tool-description.js.map +1 -1
- package/node_modules/pi-subagents/src/inspectors/actions.d.ts +2 -0
- package/node_modules/pi-subagents/src/inspectors/actions.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/inspectors/actions.js +41 -13
- package/node_modules/pi-subagents/src/inspectors/actions.js.map +1 -1
- package/node_modules/pi-subagents/src/inspectors/plugins.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/inspectors/plugins.js +3 -2
- package/node_modules/pi-subagents/src/inspectors/plugins.js.map +1 -1
- package/node_modules/pi-subagents/src/inspectors/tmux/actions.d.ts +26 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/actions.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/actions.js +182 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/actions.js.map +1 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/client.d.ts +28 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/client.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/client.js +65 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/client.js.map +1 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/plugin.d.ts +8 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/plugin.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/plugin.js +15 -0
- package/node_modules/pi-subagents/src/inspectors/tmux/plugin.js.map +1 -0
- package/node_modules/pi-subagents/src/integrations/herdr-status.d.ts +0 -1
- package/node_modules/pi-subagents/src/integrations/herdr-status.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/integrations/herdr-status.js +18 -52
- package/node_modules/pi-subagents/src/integrations/herdr-status.js.map +1 -1
- package/node_modules/pi-subagents/src/integrations/program-status.d.ts +31 -0
- package/node_modules/pi-subagents/src/integrations/program-status.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/integrations/program-status.js +189 -0
- package/node_modules/pi-subagents/src/integrations/program-status.js.map +1 -0
- package/node_modules/pi-subagents/src/intercom/native-supervisor-channel.d.ts +17 -1
- package/node_modules/pi-subagents/src/intercom/native-supervisor-channel.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/intercom/native-supervisor-channel.js +102 -9
- package/node_modules/pi-subagents/src/intercom/native-supervisor-channel.js.map +1 -1
- package/node_modules/pi-subagents/src/intercom/result-intercom.js +1 -1
- package/node_modules/pi-subagents/src/intercom/result-intercom.js.map +1 -1
- package/node_modules/pi-subagents/src/intercom/supervisor-ui.d.ts +2 -12
- package/node_modules/pi-subagents/src/intercom/supervisor-ui.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/intercom/supervisor-ui.js +2 -154
- package/node_modules/pi-subagents/src/intercom/supervisor-ui.js.map +1 -1
- package/node_modules/pi-subagents/src/missions/store.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/missions/store.js +27 -5
- package/node_modules/pi-subagents/src/missions/store.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/active-async-capacity.d.ts +2 -1
- package/node_modules/pi-subagents/src/runs/background/active-async-capacity.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/active-async-capacity.js +10 -6
- package/node_modules/pi-subagents/src/runs/background/active-async-capacity.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/async-execution.d.ts +9 -1
- package/node_modules/pi-subagents/src/runs/background/async-execution.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/async-execution.js +253 -144
- package/node_modules/pi-subagents/src/runs/background/async-execution.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/async-job-tracker.d.ts +4 -1
- package/node_modules/pi-subagents/src/runs/background/async-job-tracker.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/async-job-tracker.js +3 -2
- package/node_modules/pi-subagents/src/runs/background/async-job-tracker.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/async-resume.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/async-resume.js +9 -3
- package/node_modules/pi-subagents/src/runs/background/async-resume.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/await-async-run.d.ts +8 -4
- package/node_modules/pi-subagents/src/runs/background/await-async-run.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/await-async-run.js +14 -8
- package/node_modules/pi-subagents/src/runs/background/await-async-run.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/binary-bootstrap.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/binary-bootstrap.js +2 -1
- package/node_modules/pi-subagents/src/runs/background/binary-bootstrap.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/chain-root-attachment.d.ts +2 -0
- package/node_modules/pi-subagents/src/runs/background/chain-root-attachment.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/chain-root-attachment.js +9 -6
- package/node_modules/pi-subagents/src/runs/background/chain-root-attachment.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/control-channel.d.ts +1 -0
- package/node_modules/pi-subagents/src/runs/background/control-channel.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/control-channel.js +27 -3
- package/node_modules/pi-subagents/src/runs/background/control-channel.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/fleet-view.js +5 -5
- package/node_modules/pi-subagents/src/runs/background/fleet-view.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/notify.d.ts +12 -2
- package/node_modules/pi-subagents/src/runs/background/notify.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/notify.js +152 -13
- package/node_modules/pi-subagents/src/runs/background/notify.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/result-files.d.ts +29 -0
- package/node_modules/pi-subagents/src/runs/background/result-files.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/result-files.js +104 -6
- package/node_modules/pi-subagents/src/runs/background/result-files.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/result-watcher.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/result-watcher.js +60 -64
- package/node_modules/pi-subagents/src/runs/background/result-watcher.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/resume-guidance.js +2 -2
- package/node_modules/pi-subagents/src/runs/background/resume-guidance.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/run-child-session.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/run-child-session.js +9 -15
- package/node_modules/pi-subagents/src/runs/background/run-child-session.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/run-id-resolver.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/run-id-resolver.js +9 -6
- package/node_modules/pi-subagents/src/runs/background/run-id-resolver.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/run-status.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/run-status.js +19 -15
- package/node_modules/pi-subagents/src/runs/background/run-status.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/runner-aliases.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/runner-aliases.js +11 -8
- package/node_modules/pi-subagents/src/runs/background/runner-aliases.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/runner-child-launch.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/runner-child-launch.js +1 -0
- package/node_modules/pi-subagents/src/runs/background/runner-child-launch.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/runner-http-dispatcher.d.ts +3 -0
- package/node_modules/pi-subagents/src/runs/background/runner-http-dispatcher.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/runner-http-dispatcher.js +2 -0
- package/node_modules/pi-subagents/src/runs/background/runner-http-dispatcher.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/scheduled-runs.d.ts +9 -0
- package/node_modules/pi-subagents/src/runs/background/scheduled-runs.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/scheduled-runs.js +124 -36
- package/node_modules/pi-subagents/src/runs/background/scheduled-runs.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-runner-bootstrap.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-runner-bootstrap.js +5 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-runner-bootstrap.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-runner.d.ts +3 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-runner.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-runner.js +211 -283
- package/node_modules/pi-subagents/src/runs/background/subagent-runner.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-wait.d.ts +2 -0
- package/node_modules/pi-subagents/src/runs/background/subagent-wait.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/subagent-wait.js +34 -20
- package/node_modules/pi-subagents/src/runs/background/subagent-wait.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/terminal-run-index.d.ts +1 -0
- package/node_modules/pi-subagents/src/runs/background/terminal-run-index.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/terminal-run-index.js +47 -1
- package/node_modules/pi-subagents/src/runs/background/terminal-run-index.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/wait-tool.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/wait-tool.js +36 -23
- package/node_modules/pi-subagents/src/runs/background/wait-tool.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/workflow-terminal-proof.d.ts +1 -1
- package/node_modules/pi-subagents/src/runs/background/workflow-terminal-proof.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/background/workflow-terminal-proof.js +12 -3
- package/node_modules/pi-subagents/src/runs/background/workflow-terminal-proof.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/foreground/async-stop-action.d.ts +7 -1
- package/node_modules/pi-subagents/src/runs/foreground/async-stop-action.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/foreground/async-stop-action.js +55 -32
- package/node_modules/pi-subagents/src/runs/foreground/async-stop-action.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/foreground/execution.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/foreground/execution.js +101 -79
- package/node_modules/pi-subagents/src/runs/foreground/execution.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/foreground/subagent-executor.d.ts +5 -1
- package/node_modules/pi-subagents/src/runs/foreground/subagent-executor.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/foreground/subagent-executor.js +184 -84
- package/node_modules/pi-subagents/src/runs/foreground/subagent-executor.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/child-hooks.js +6 -5
- package/node_modules/pi-subagents/src/runs/shared/child-hooks.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/child-launch.d.ts +2 -0
- package/node_modules/pi-subagents/src/runs/shared/child-launch.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/child-launch.js +1 -0
- package/node_modules/pi-subagents/src/runs/shared/child-launch.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/child-session.d.ts +4 -0
- package/node_modules/pi-subagents/src/runs/shared/child-session.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/child-session.js +28 -23
- package/node_modules/pi-subagents/src/runs/shared/child-session.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/child-tool-plan.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/child-tool-plan.js +11 -10
- package/node_modules/pi-subagents/src/runs/shared/child-tool-plan.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/dynamic-fanout.js +1 -1
- package/node_modules/pi-subagents/src/runs/shared/dynamic-fanout.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/effective-system-prompt.d.ts +4 -4
- package/node_modules/pi-subagents/src/runs/shared/effective-system-prompt.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/effective-system-prompt.js +5 -4
- package/node_modules/pi-subagents/src/runs/shared/effective-system-prompt.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/external-cli-runner.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/external-cli-runner.js +3 -2
- package/node_modules/pi-subagents/src/runs/shared/external-cli-runner.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/herdr-placed-run.d.ts +1 -0
- package/node_modules/pi-subagents/src/runs/shared/herdr-placed-run.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/herdr-placed-run.js +10 -6
- package/node_modules/pi-subagents/src/runs/shared/herdr-placed-run.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/model-resolution-diagnostic.d.ts +17 -5
- package/node_modules/pi-subagents/src/runs/shared/model-resolution-diagnostic.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/model-resolution-diagnostic.js +37 -10
- package/node_modules/pi-subagents/src/runs/shared/model-resolution-diagnostic.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/model-resolution.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/model-resolution.js +29 -1
- package/node_modules/pi-subagents/src/runs/shared/model-resolution.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/nested-events.d.ts +2 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-events.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/nested-events.js +4 -0
- package/node_modules/pi-subagents/src/runs/shared/nested-events.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/orca-progress-tabs.js +1 -1
- package/node_modules/pi-subagents/src/runs/shared/orca-progress-tabs.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/parallel-handoff.js +2 -2
- package/node_modules/pi-subagents/src/runs/shared/parallel-handoff.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/parallel-utils.d.ts +2 -0
- package/node_modules/pi-subagents/src/runs/shared/parallel-utils.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/parallel-utils.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/partial-output.d.ts +7 -0
- package/node_modules/pi-subagents/src/runs/shared/partial-output.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/partial-output.js +7 -0
- package/node_modules/pi-subagents/src/runs/shared/partial-output.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/runner-launcher.d.ts +12 -0
- package/node_modules/pi-subagents/src/runs/shared/runner-launcher.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/runs/shared/runner-launcher.js +25 -0
- package/node_modules/pi-subagents/src/runs/shared/runner-launcher.js.map +1 -0
- package/node_modules/pi-subagents/src/runs/shared/single-output.d.ts +31 -1
- package/node_modules/pi-subagents/src/runs/shared/single-output.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/single-output.js +100 -21
- package/node_modules/pi-subagents/src/runs/shared/single-output.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/structured-output.d.ts +2 -0
- package/node_modules/pi-subagents/src/runs/shared/structured-output.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/structured-output.js +26 -8
- package/node_modules/pi-subagents/src/runs/shared/structured-output.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/subagent-control.js +3 -3
- package/node_modules/pi-subagents/src/runs/shared/subagent-control.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts +37 -2
- package/node_modules/pi-subagents/src/runs/shared/subagent-prompt-runtime.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/subagent-prompt-runtime.js +130 -22
- package/node_modules/pi-subagents/src/runs/shared/subagent-prompt-runtime.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/tool-budget.js +1 -1
- package/node_modules/pi-subagents/src/runs/shared/tool-budget.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/workflow-async-child-guidance.js +1 -1
- package/node_modules/pi-subagents/src/runs/shared/workflow-async-child-guidance.js.map +1 -1
- package/node_modules/pi-subagents/src/runs/shared/worktree-cleanup-plan.js +1 -1
- package/node_modules/pi-subagents/src/runs/shared/worktree-cleanup-plan.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/atomic-json.d.ts +4 -3
- package/node_modules/pi-subagents/src/shared/atomic-json.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/shared/atomic-json.js +3 -1
- package/node_modules/pi-subagents/src/shared/atomic-json.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/child-transcript.js +1 -1
- package/node_modules/pi-subagents/src/shared/child-transcript.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/edit-distance.d.ts +5 -0
- package/node_modules/pi-subagents/src/shared/edit-distance.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/shared/edit-distance.js +33 -0
- package/node_modules/pi-subagents/src/shared/edit-distance.js.map +1 -0
- package/node_modules/pi-subagents/src/shared/extension-context.d.ts +5 -0
- package/node_modules/pi-subagents/src/shared/extension-context.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/shared/extension-context.js +7 -0
- package/node_modules/pi-subagents/src/shared/extension-context.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/formatters.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/shared/formatters.js +1 -6
- package/node_modules/pi-subagents/src/shared/formatters.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/model-info.d.ts +8 -0
- package/node_modules/pi-subagents/src/shared/model-info.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/shared/model-info.js +22 -0
- package/node_modules/pi-subagents/src/shared/model-info.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/package-version.d.ts +3 -0
- package/node_modules/pi-subagents/src/shared/package-version.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/shared/package-version.js +15 -0
- package/node_modules/pi-subagents/src/shared/package-version.js.map +1 -0
- package/node_modules/pi-subagents/src/shared/parent-wake.d.ts +24 -0
- package/node_modules/pi-subagents/src/shared/parent-wake.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/shared/parent-wake.js +71 -0
- package/node_modules/pi-subagents/src/shared/parent-wake.js.map +1 -0
- package/node_modules/pi-subagents/src/shared/pruned-fork.d.ts +1 -1
- package/node_modules/pi-subagents/src/shared/pruned-fork.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/shared/pruned-fork.js +6 -0
- package/node_modules/pi-subagents/src/shared/pruned-fork.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/runtime-module-path.d.ts +11 -0
- package/node_modules/pi-subagents/src/shared/runtime-module-path.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/shared/runtime-module-path.js +17 -0
- package/node_modules/pi-subagents/src/shared/runtime-module-path.js.map +1 -0
- package/node_modules/pi-subagents/src/shared/types.d.ts +33 -10
- package/node_modules/pi-subagents/src/shared/types.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/shared/types.js +7 -4
- package/node_modules/pi-subagents/src/shared/types.js.map +1 -1
- package/node_modules/pi-subagents/src/shared/utils.d.ts +2 -0
- package/node_modules/pi-subagents/src/shared/utils.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/shared/utils.js +10 -7
- package/node_modules/pi-subagents/src/shared/utils.js.map +1 -1
- package/node_modules/pi-subagents/src/slash/slash-commands.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/slash/slash-commands.js +21 -10
- package/node_modules/pi-subagents/src/slash/slash-commands.js.map +1 -1
- package/node_modules/pi-subagents/src/slash/subagents-admin.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/slash/subagents-admin.js +3 -1
- package/node_modules/pi-subagents/src/slash/subagents-admin.js.map +1 -1
- package/node_modules/pi-subagents/src/tui/fleet-status.d.ts +5 -0
- package/node_modules/pi-subagents/src/tui/fleet-status.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/tui/fleet-status.js +24 -3
- package/node_modules/pi-subagents/src/tui/fleet-status.js.map +1 -1
- package/node_modules/pi-subagents/src/tui/fleet-transcript.d.ts +2 -0
- package/node_modules/pi-subagents/src/tui/fleet-transcript.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/tui/fleet-transcript.js +7 -2
- package/node_modules/pi-subagents/src/tui/fleet-transcript.js.map +1 -1
- package/node_modules/pi-subagents/src/tui/fleet.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/tui/fleet.js +11 -6
- package/node_modules/pi-subagents/src/tui/fleet.js.map +1 -1
- package/node_modules/pi-subagents/src/tui/render.d.ts +2 -2
- package/node_modules/pi-subagents/src/tui/render.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/tui/render.js +19 -17
- package/node_modules/pi-subagents/src/tui/render.js.map +1 -1
- package/node_modules/pi-subagents/src/tui/subagent-messages.d.ts +23 -0
- package/node_modules/pi-subagents/src/tui/subagent-messages.d.ts.map +1 -0
- package/node_modules/pi-subagents/src/tui/subagent-messages.js +270 -0
- package/node_modules/pi-subagents/src/tui/subagent-messages.js.map +1 -0
- package/node_modules/pi-subagents/src/watchdog/change-signature.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/watchdog/change-signature.js +1 -3
- package/node_modules/pi-subagents/src/watchdog/change-signature.js.map +1 -1
- package/node_modules/pi-subagents/src/watchdog/register-main.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/watchdog/register-main.js +1 -19
- package/node_modules/pi-subagents/src/watchdog/register-main.js.map +1 -1
- package/node_modules/pi-subagents/src/watchdog/render.d.ts +2 -10
- package/node_modules/pi-subagents/src/watchdog/render.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/watchdog/render.js +1 -19
- package/node_modules/pi-subagents/src/watchdog/render.js.map +1 -1
- package/node_modules/pi-subagents/src/watchdog/tool-actions.js +2 -2
- package/node_modules/pi-subagents/src/watchdog/tool-actions.js.map +1 -1
- package/node_modules/pi-subagents/src/workflows/scripted-workflow.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/workflows/scripted-workflow.js +33 -10
- package/node_modules/pi-subagents/src/workflows/scripted-workflow.js.map +1 -1
- package/node_modules/pi-subagents/src/workflows/workflow-resources.d.ts.map +1 -1
- package/node_modules/pi-subagents/src/workflows/workflow-resources.js +12 -0
- package/node_modules/pi-subagents/src/workflows/workflow-resources.js.map +1 -1
- package/package.json +3 -3
- package/src/artifacts/builder-handoff/assertBuilderHandoff.ts +0 -14
- package/src/artifacts/builder-handoff/schema.ts +0 -26
- package/src/maestro/instructions/getMaestroInstructions.ts +4 -2
- package/src/maestro/status/formatMaestroStatus.ts +0 -3
- package/src/tools/child/record-builder-handoff.ts +2 -10
- package/src/tools/main/resolve-escalations.ts +1 -1
- package/src/tools/main/resolve-findings.ts +1 -1
- package/src/tools/main/run-builder.ts +9 -49
- package/src/workflow/builder/completeBuilderPass.ts +4 -13
- package/src/workflow/builder/utils/getWorkflowEventByBuilderHandoff.ts +24 -0
- package/src/workflow/state/schema.ts +0 -3
- package/src/workflow/transitions.ts +0 -4
- package/src/workflow/verifier/completeVerifierPass.ts +3 -9
- package/src/workflow/{findings → verifier}/resolveFindings.ts +4 -12
- package/src/workflow/verifier/utils/getWorkflowEventByVerifierHandoff.ts +40 -0
- package/DESIGN_DECISIONS.md +0 -21
- package/node_modules/pi-subagents/src/runs/shared/run-history.d.ts +0 -67
- package/node_modules/pi-subagents/src/runs/shared/run-history.d.ts.map +0 -1
- package/node_modules/pi-subagents/src/runs/shared/run-history.js +0 -270
- package/node_modules/pi-subagents/src/runs/shared/run-history.js.map +0 -1
- /package/src/workflow/{escalation → builder}/resolveEscalations.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-resources.d.ts","sourceRoot":"","sources":["../../../src/workflows/workflow-resources.ts"],"names":[],"mappings":"AAEA,OAAO,EAEN,KAAK,6BAA6B,EAClC,KAAK,sBAAsB,EAC3B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAIrE,eAAO,MAAM,cAAc,QAAY,CAAC;AACxC,eAAO,MAAM,eAAe,KAAK,CAAC;AAClC,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,cAAc,IAAI,CAAC;AAGhC,MAAM,WAAW,wBAAwB;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,sBAAsB,CAAC;IAC/B,UAAU,EAAE,0BAA0B,CAAC;CACvC;AAED,MAAM,MAAM,0BAA0B,GACnC;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,QAAQ,EAAE,wBAAwB,CAAA;CAAE,GAChD;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhC,MAAM,WAAW,0BAA0B;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,6FAA6F;IAC7F,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,KAAK;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,YAAY,CAAC,EAAE,SA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AS,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,OAAO,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,0BAA0B,CAO/H"}
|
|
@@ -149,6 +149,17 @@ function resolveRunCi(args) {
|
|
|
149
149
|
hostCommands: [{ key: "ci", command }],
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
+
function resolveParallel(args) {
|
|
153
|
+
const unsupported = Object.keys(args).filter((key) => key !== "tasks");
|
|
154
|
+
if (unsupported.length > 0)
|
|
155
|
+
return { error: `workflow 'parallel' args contain unsupported fields: ${unsupported.join(", ")}. Pass args.tasks: [{ agent, task }, ...].` };
|
|
156
|
+
try {
|
|
157
|
+
return { script: buildStructuredWorkflowScript("tasks", args.tasks, undefined) };
|
|
158
|
+
}
|
|
159
|
+
catch (error) {
|
|
160
|
+
return { error: `workflow 'parallel' args.${error instanceof Error ? error.message : String(error)}` };
|
|
161
|
+
}
|
|
162
|
+
}
|
|
152
163
|
function resolveReview(args) {
|
|
153
164
|
const unsupported = Object.keys(args).filter((key) => key !== "task");
|
|
154
165
|
if (unsupported.length > 0)
|
|
@@ -163,6 +174,7 @@ function resolveReview(args) {
|
|
|
163
174
|
const WORKFLOW_RESOURCES = [
|
|
164
175
|
{ name: "review", version: 1, resolve: resolveReview },
|
|
165
176
|
{ name: "run-ci", version: 1, resolve: resolveRunCi },
|
|
177
|
+
{ name: "parallel", version: 1, resolve: resolveParallel },
|
|
166
178
|
];
|
|
167
179
|
function findWorkflowResource(name) {
|
|
168
180
|
return WORKFLOW_RESOURCES.find((resource) => resource.name === name);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow-resources.js","sourceRoot":"","sources":["../../../src/workflows/workflow-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EACN,4BAA4B,GAG5B,MAAM,oCAAoC,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AC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;AAC7G,CAAC;AAED,SAAS,qBAAqB,CAAC,IAAY,EAAE,OAAe,EAAE,MAAc,EAAE,YAAuD;IACpI,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC;IAChC,MAAM,MAAM,GAAG,4BAA4B,CAAC;QAC3C,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,OAAO;QACxB,UAAU;QACV,YAAY,EAAE,gBAAgB,CAAC,MAAM,CAAC;QACtC,SAAS,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACjC,CAAC,CAAC;IACH,MAAM,UAAU,GAA+B,MAAM,CAAC,MAAM,CAAC;QAC5D,IAAI,EAAE,UAAU;QAChB,IAAI;QACJ,OAAO;QACP,UAAU,EAAE,OAAO;QACnB,SAAS,EAAE,UAAU;QACrB,EAAE,EAAE,UAAU;KACd,CAAC,CAAC;IACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AACvC,CAAC"}
|
|
1
|
+
{"version":3,"file":"workflow-resources.js","sourceRoot":"","sources":["../../../src/workflows/workflow-resources.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EACN,4BAA4B,GAG5B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,6BAA6B,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAEhG,MAAM,qBAAqB,GAAG,oCAAoC,CAAC;AACnE,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,GAAG,IAAI,CAAC;AACxC,MAAM,CAAC,MAAM,eAAe,GAAG,EAAE,CAAC;AAClC,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AACjC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC;AAChC,MAAM,gBAAgB,GAAG,EAAE,G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Q,CAAC;IAC1C,IAAI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,KAAK,QAAQ,IAAI,GAAG,KAAK,cAAc,CAAC,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,kDAAkD,CAAC,CAAC;IACzM,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,qBAAqB,CAAC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC;AAC7G,CAAC;AAED,SAAS,qBAAqB,CAAC,IAAY,EAAE,OAAe,EAAE,MAAc,EAAE,YAAuD;IACpI,MAAM,UAAU,GAAG,UAAU,EAAE,CAAC;IAChC,MAAM,MAAM,GAAG,4BAA4B,CAAC;QAC3C,YAAY,EAAE,IAAI;QAClB,eAAe,EAAE,OAAO;QACxB,UAAU;QACV,YAAY,EAAE,gBAAgB,CAAC,MAAM,CAAC;QACtC,SAAS,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE;KACjC,CAAC,CAAC;IACH,MAAM,UAAU,GAA+B,MAAM,CAAC,MAAM,CAAC;QAC5D,IAAI,EAAE,UAAU;QAChB,IAAI;QACJ,OAAO;QACP,UAAU,EAAE,OAAO;QACnB,SAAS,EAAE,UAAU;QACrB,EAAE,EAAE,UAAU;KACd,CAAC,CAAC;IACH,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AACvC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emiliosp/pi-maestro",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "A spec-driven multiagent development workflow for Pi.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"TECH_STACK.md",
|
|
38
38
|
"ROADMAP.md",
|
|
39
39
|
"CHANGELOG.md",
|
|
40
|
-
"
|
|
40
|
+
"ADR.md",
|
|
41
41
|
"README.md",
|
|
42
42
|
"LICENSE"
|
|
43
43
|
],
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"lint:fix": "biome check --write . && npm run lint:anti-slop"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"pi-subagents": "0.
|
|
67
|
+
"pi-subagents": "0.78.0"
|
|
68
68
|
},
|
|
69
69
|
"bundleDependencies": [
|
|
70
70
|
"pi-subagents"
|
|
@@ -26,11 +26,6 @@ const hasOnlyPassedProbes = (
|
|
|
26
26
|
(criterion) => criterion.probeStatus === PROBE_STATUSES.PASSED,
|
|
27
27
|
);
|
|
28
28
|
|
|
29
|
-
const hasValidFailedChecks = (
|
|
30
|
-
acceptanceCriteria: BuilderAcceptanceCriterion[],
|
|
31
|
-
): boolean =>
|
|
32
|
-
acceptanceCriteria.length === 0 || !hasOnlyPassedProbes(acceptanceCriteria);
|
|
33
|
-
|
|
34
29
|
function assertBuilderHandoffSchema(
|
|
35
30
|
input: unknown,
|
|
36
31
|
): asserts input is BuilderHandoff {
|
|
@@ -71,15 +66,6 @@ export function assertBuilderHandoff(
|
|
|
71
66
|
throw new Error('Done builder handoff requires every probe to pass.');
|
|
72
67
|
}
|
|
73
68
|
|
|
74
|
-
if (
|
|
75
|
-
handoff.status === BUILDER_HANDOFF_STATUSES.FAILED &&
|
|
76
|
-
!hasValidFailedChecks(handoff.acceptanceCriteria)
|
|
77
|
-
) {
|
|
78
|
-
throw new Error(
|
|
79
|
-
'Failed builder handoff cannot mark every acceptance check as completed.',
|
|
80
|
-
);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
69
|
if (handoff.status === BUILDER_HANDOFF_STATUSES.ESCALATION) {
|
|
84
70
|
for (const [index, escalation] of handoff.escalations.entries()) {
|
|
85
71
|
if (escalation.id !== `E${index + 1}`) {
|
|
@@ -11,7 +11,6 @@ export const BUILDER_HANDOFF_VERSION = '1.0.0';
|
|
|
11
11
|
|
|
12
12
|
export const BUILDER_HANDOFF_STATUSES = {
|
|
13
13
|
DONE: 'done',
|
|
14
|
-
FAILED: 'failed',
|
|
15
14
|
ESCALATION: 'escalation',
|
|
16
15
|
} as const;
|
|
17
16
|
|
|
@@ -41,11 +40,6 @@ export type BuilderAcceptanceCriterion = Static<
|
|
|
41
40
|
typeof BuilderAcceptanceCriterionSchema
|
|
42
41
|
>;
|
|
43
42
|
|
|
44
|
-
export const BuilderHandoffFailureSchema = Type.Object(
|
|
45
|
-
{ reason: Type.String({ minLength: 1 }) },
|
|
46
|
-
{ additionalProperties: false },
|
|
47
|
-
);
|
|
48
|
-
|
|
49
43
|
const BuilderHandoffContentFields = {
|
|
50
44
|
summary: Type.String({ minLength: 1 }),
|
|
51
45
|
acceptanceCriteria: Type.Array(BuilderAcceptanceCriterionSchema),
|
|
@@ -134,19 +128,9 @@ export const BuilderEscalationHandoffSchema = Type.Object(
|
|
|
134
128
|
{ additionalProperties: false },
|
|
135
129
|
);
|
|
136
130
|
|
|
137
|
-
export const BuilderFailedHandoffSchema = Type.Object(
|
|
138
|
-
{
|
|
139
|
-
...BuilderHandoffFields,
|
|
140
|
-
status: Type.Literal(BUILDER_HANDOFF_STATUSES.FAILED),
|
|
141
|
-
failure: BuilderHandoffFailureSchema,
|
|
142
|
-
},
|
|
143
|
-
{ additionalProperties: false },
|
|
144
|
-
);
|
|
145
|
-
|
|
146
131
|
export const BuilderHandoffSchema = Type.Union([
|
|
147
132
|
BuilderDoneHandoffSchema,
|
|
148
133
|
BuilderEscalationHandoffSchema,
|
|
149
|
-
BuilderFailedHandoffSchema,
|
|
150
134
|
]);
|
|
151
135
|
|
|
152
136
|
export type BuilderHandoff = Static<typeof BuilderHandoffSchema>;
|
|
@@ -169,19 +153,9 @@ export const BuilderEscalationHandoffSubmissionSchema = Type.Object(
|
|
|
169
153
|
{ additionalProperties: false },
|
|
170
154
|
);
|
|
171
155
|
|
|
172
|
-
export const BuilderFailedHandoffSubmissionSchema = Type.Object(
|
|
173
|
-
{
|
|
174
|
-
status: Type.Literal(BUILDER_HANDOFF_STATUSES.FAILED),
|
|
175
|
-
...BuilderHandoffContentFields,
|
|
176
|
-
failure: BuilderHandoffFailureSchema,
|
|
177
|
-
},
|
|
178
|
-
{ additionalProperties: false },
|
|
179
|
-
);
|
|
180
|
-
|
|
181
156
|
export const BuilderHandoffSubmissionSchema = Type.Union([
|
|
182
157
|
BuilderDoneHandoffSubmissionSchema,
|
|
183
158
|
BuilderEscalationHandoffSubmissionSchema,
|
|
184
|
-
BuilderFailedHandoffSubmissionSchema,
|
|
185
159
|
]);
|
|
186
160
|
|
|
187
161
|
export type BuilderHandoffSubmissionInput = Static<
|
|
@@ -83,8 +83,8 @@ Read the returned artifact and follow its outcome:
|
|
|
83
83
|
|
|
84
84
|
1. done: The phase is ready-for-verifier. Call maestro_run_verifier with the active specId.
|
|
85
85
|
2. escalation: The phase is escalation-decision. Present all questions from the active builder handoff, with evidence, options, consequences, and next steps.
|
|
86
|
-
3. failed: The phase is builder-failed. Report the failure and stop. There is no builder retry or spec revision from this phase.
|
|
87
86
|
|
|
87
|
+
Reportable technical problems that prevent builder completion use the existing escalation process. The owner decides how work continues.
|
|
88
88
|
A significant discovery needs an escalation when the owner must choose between meaningful alternatives, even without a technical blocker.
|
|
89
89
|
Do not invent an escalation for routine implementation details. Read significant discoveries without owner decisions from the builder handoff notes.
|
|
90
90
|
|
|
@@ -142,9 +142,11 @@ If a tool fails, inspect its error, workflow.json, and artifacts before taking a
|
|
|
142
142
|
If the tool wrote no artifacts or transition, correct recoverable errors within your permissions before retrying.
|
|
143
143
|
If it partially updated artifacts or workflow state, report that state and stop. Do not retry a partially completed transition.
|
|
144
144
|
Do not repeat an unchanged failing call, edit protocol files, or fabricate evidence to bypass an error.
|
|
145
|
+
Launch errors, delegation failures, timeouts, interruptions, cancellations, and missing or invalid handoffs stop the workflow. Do not create synthetic escalations or recovery transitions.
|
|
145
146
|
If a run ends without a valid saved result, report the error and stop. Do not repair product files or force a transition.
|
|
147
|
+
If a run saves no completed transition, its saved running phase remains unchanged.
|
|
146
148
|
Disabling Maestro, restarting Pi, or using /resume clears live state. Do not reconstruct or resume an incomplete workflow.
|
|
147
|
-
The owner handles
|
|
149
|
+
The owner handles execution errors, protocol errors, and interrupted workflows manually.
|
|
148
150
|
|
|
149
151
|
At candidate-ready, the workflow is complete. No final tool call is required.
|
|
150
152
|
You own the final summary. Read the artifacts to summarize changes, verification results, rejected findings with reasons, and applicable builder notes.
|
|
@@ -15,7 +15,6 @@ export const WORKFLOW_PHASE_LABELS = {
|
|
|
15
15
|
[WORKFLOW_PHASES.READY_FOR_BUILDER]: 'Ready for builder',
|
|
16
16
|
[WORKFLOW_PHASES.BUILDER_RUNNING]: 'Builder running',
|
|
17
17
|
[WORKFLOW_PHASES.ESCALATION_DECISION]: 'Owner decision needed: escalation',
|
|
18
|
-
[WORKFLOW_PHASES.BUILDER_FAILED]: 'Builder failed',
|
|
19
18
|
[WORKFLOW_PHASES.READY_FOR_VERIFIER]: 'Ready for verifier',
|
|
20
19
|
[WORKFLOW_PHASES.VERIFIER_RUNNING]: 'Verifier running',
|
|
21
20
|
[WORKFLOW_PHASES.FINDINGS_DECISION]: 'Owner decision needed: findings',
|
|
@@ -27,7 +26,6 @@ export const WORKFLOW_PHASE_ICONS = {
|
|
|
27
26
|
[WORKFLOW_PHASES.READY_FOR_BUILDER]: '🚧',
|
|
28
27
|
[WORKFLOW_PHASES.BUILDER_RUNNING]: '🛠️',
|
|
29
28
|
[WORKFLOW_PHASES.ESCALATION_DECISION]: '✋',
|
|
30
|
-
[WORKFLOW_PHASES.BUILDER_FAILED]: '❌',
|
|
31
29
|
[WORKFLOW_PHASES.READY_FOR_VERIFIER]: '📋',
|
|
32
30
|
[WORKFLOW_PHASES.VERIFIER_RUNNING]: '🔍',
|
|
33
31
|
[WORKFLOW_PHASES.FINDINGS_DECISION]: '💬',
|
|
@@ -39,7 +37,6 @@ export const WORKFLOW_PHASE_COLORS = {
|
|
|
39
37
|
[WORKFLOW_PHASES.READY_FOR_BUILDER]: 'accent',
|
|
40
38
|
[WORKFLOW_PHASES.BUILDER_RUNNING]: 'accent',
|
|
41
39
|
[WORKFLOW_PHASES.ESCALATION_DECISION]: 'warning',
|
|
42
|
-
[WORKFLOW_PHASES.BUILDER_FAILED]: 'error',
|
|
43
40
|
[WORKFLOW_PHASES.READY_FOR_VERIFIER]: 'accent',
|
|
44
41
|
[WORKFLOW_PHASES.VERIFIER_RUNNING]: 'accent',
|
|
45
42
|
[WORKFLOW_PHASES.FINDINGS_DECISION]: 'warning',
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Objective: Register the builder handoff tool for the current project.
|
|
3
|
-
* Used: When the builder reports a done
|
|
3
|
+
* Used: When the builder reports a done or escalation result.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';
|
|
@@ -8,7 +8,6 @@ import { Type } from 'typebox';
|
|
|
8
8
|
import {
|
|
9
9
|
BuilderDoneHandoffSubmissionSchema,
|
|
10
10
|
BuilderEscalationHandoffSubmissionSchema,
|
|
11
|
-
BuilderFailedHandoffSubmissionSchema,
|
|
12
11
|
} from '#artifacts/builder-handoff/schema.ts';
|
|
13
12
|
import { SPEC_ID_PATTERN } from '#ids/isValidSpecId.ts';
|
|
14
13
|
import { resolveWorkflowContext } from '#tools/child/utils/resolveWorkflowContext.ts';
|
|
@@ -18,7 +17,7 @@ export const BUILDER_HANDOFF_TOOL = {
|
|
|
18
17
|
NAME: 'maestro_record_builder_handoff',
|
|
19
18
|
LABEL: 'Record Builder Handoff',
|
|
20
19
|
DESCRIPTION:
|
|
21
|
-
'Record the builder pass as done
|
|
20
|
+
'Record the builder pass as done or escalation. Report technical problems that prevent completion as escalations for owner decisions. Put significant discoveries that do not require an owner decision in notes. After success, stop. The tool saves a numbered builder handoff and the workflow phase.',
|
|
22
21
|
} as const;
|
|
23
22
|
|
|
24
23
|
const BuilderHandoffToolParameters = Type.Union([
|
|
@@ -36,13 +35,6 @@ const BuilderHandoffToolParameters = Type.Union([
|
|
|
36
35
|
},
|
|
37
36
|
{ additionalProperties: false },
|
|
38
37
|
),
|
|
39
|
-
Type.Object(
|
|
40
|
-
{
|
|
41
|
-
specId: Type.String({ pattern: SPEC_ID_PATTERN.source }),
|
|
42
|
-
...BuilderFailedHandoffSubmissionSchema.properties,
|
|
43
|
-
},
|
|
44
|
-
{ additionalProperties: false },
|
|
45
|
-
),
|
|
46
38
|
]);
|
|
47
39
|
|
|
48
40
|
export const registerRecordBuilderHandoffTool = (pi: ExtensionAPI): void => {
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
} from '#artifacts/builder-handoff/schema.ts';
|
|
12
12
|
import { SPEC_ID_PATTERN } from '#ids/isValidSpecId.ts';
|
|
13
13
|
import { resolveToolRunContext } from '#tools/utils/resolveToolRunContext.ts';
|
|
14
|
-
import { resolveEscalations } from '#workflow/
|
|
14
|
+
import { resolveEscalations } from '#workflow/builder/resolveEscalations.ts';
|
|
15
15
|
|
|
16
16
|
export const RESOLVE_ESCALATIONS_TOOL = {
|
|
17
17
|
NAME: 'maestro_resolve_escalations',
|
|
@@ -9,8 +9,8 @@ import { Type } from 'typebox';
|
|
|
9
9
|
import { FINDING_DECISIONS } from '#artifacts/verifier-handoff/schema.ts';
|
|
10
10
|
import { SPEC_ID_PATTERN } from '#ids/isValidSpecId.ts';
|
|
11
11
|
import { resolveToolRunContext } from '#tools/utils/resolveToolRunContext.ts';
|
|
12
|
-
import { resolveFindings } from '#workflow/findings/resolveFindings.ts';
|
|
13
12
|
import { WORKFLOW_PHASES } from '#workflow/state/schema.ts';
|
|
13
|
+
import { resolveFindings } from '#workflow/verifier/resolveFindings.ts';
|
|
14
14
|
|
|
15
15
|
export const RESOLVE_FINDINGS_TOOL = {
|
|
16
16
|
NAME: 'maestro_resolve_findings',
|
|
@@ -30,7 +30,7 @@ export const RUN_BUILDER_TOOL = {
|
|
|
30
30
|
NAME: 'maestro_run_builder',
|
|
31
31
|
LABEL: 'Run Builder',
|
|
32
32
|
DESCRIPTION:
|
|
33
|
-
'Run the builder in the project directory for an owner-approved spec. The builder runs in the foreground and
|
|
33
|
+
'Run the builder in the project directory for an owner-approved spec. The builder runs in the foreground and returns done or escalation. Owner decisions or renewed spec approval permit another pass after an escalation.',
|
|
34
34
|
} as const;
|
|
35
35
|
|
|
36
36
|
const RunBuilderToolParameters = Type.Object(
|
|
@@ -49,12 +49,6 @@ type BuilderRunResult =
|
|
|
49
49
|
phase: typeof WORKFLOW_PHASES.READY_FOR_VERIFIER;
|
|
50
50
|
handoff: BuilderHandoff;
|
|
51
51
|
}
|
|
52
|
-
| {
|
|
53
|
-
outcome: typeof BUILDER_HANDOFF_STATUSES.FAILED;
|
|
54
|
-
specId: string;
|
|
55
|
-
phase: typeof WORKFLOW_PHASES.BUILDER_FAILED;
|
|
56
|
-
handoff: BuilderHandoff;
|
|
57
|
-
}
|
|
58
52
|
| {
|
|
59
53
|
outcome: typeof BUILDER_HANDOFF_STATUSES.ESCALATION;
|
|
60
54
|
specId: string;
|
|
@@ -88,48 +82,25 @@ const readBuilderResult = async ({
|
|
|
88
82
|
}
|
|
89
83
|
};
|
|
90
84
|
|
|
91
|
-
|
|
92
|
-
paths: MaestroPaths;
|
|
93
|
-
specId: string;
|
|
94
|
-
phase:
|
|
95
|
-
| typeof WORKFLOW_PHASES.READY_FOR_VERIFIER
|
|
96
|
-
| typeof WORKFLOW_PHASES.BUILDER_FAILED;
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
const readTerminalBuilderResult = async ({
|
|
85
|
+
const readDoneBuilderResult = async ({
|
|
100
86
|
paths,
|
|
101
87
|
specId,
|
|
102
|
-
|
|
103
|
-
}: ReadTerminalBuilderResultInput): Promise<BuilderRunResult> => {
|
|
88
|
+
}: ReadBuilderResultInput): Promise<BuilderRunResult> => {
|
|
104
89
|
const handoff = await readBuilderHandoff({
|
|
105
90
|
path: await paths.getActiveBuilderHandoffPath(specId),
|
|
106
91
|
specId,
|
|
107
92
|
});
|
|
108
93
|
|
|
109
|
-
|
|
110
|
-
phase === WORKFLOW_PHASES.READY_FOR_VERIFIER
|
|
111
|
-
? BUILDER_HANDOFF_STATUSES.DONE
|
|
112
|
-
: BUILDER_HANDOFF_STATUSES.FAILED;
|
|
113
|
-
|
|
114
|
-
if (handoff.status !== expectedStatus) {
|
|
94
|
+
if (handoff.status !== BUILDER_HANDOFF_STATUSES.DONE) {
|
|
115
95
|
throw new Error(
|
|
116
|
-
`Builder handoff status does not match workflow phase "${
|
|
96
|
+
`Builder handoff status does not match workflow phase "${WORKFLOW_PHASES.READY_FOR_VERIFIER}".`,
|
|
117
97
|
);
|
|
118
98
|
}
|
|
119
99
|
|
|
120
|
-
if (phase === WORKFLOW_PHASES.READY_FOR_VERIFIER) {
|
|
121
|
-
return {
|
|
122
|
-
outcome: BUILDER_HANDOFF_STATUSES.DONE,
|
|
123
|
-
specId,
|
|
124
|
-
phase,
|
|
125
|
-
handoff,
|
|
126
|
-
};
|
|
127
|
-
}
|
|
128
|
-
|
|
129
100
|
return {
|
|
130
|
-
outcome: BUILDER_HANDOFF_STATUSES.
|
|
101
|
+
outcome: BUILDER_HANDOFF_STATUSES.DONE,
|
|
131
102
|
specId,
|
|
132
|
-
phase,
|
|
103
|
+
phase: WORKFLOW_PHASES.READY_FOR_VERIFIER,
|
|
133
104
|
handoff,
|
|
134
105
|
};
|
|
135
106
|
};
|
|
@@ -145,15 +116,8 @@ const buildRunResult = async ({
|
|
|
145
116
|
specId,
|
|
146
117
|
state,
|
|
147
118
|
}: BuildRunResultInput): Promise<BuilderRunResult> => {
|
|
148
|
-
if (
|
|
149
|
-
|
|
150
|
-
state.phase === WORKFLOW_PHASES.BUILDER_FAILED
|
|
151
|
-
) {
|
|
152
|
-
return await readTerminalBuilderResult({
|
|
153
|
-
paths,
|
|
154
|
-
specId,
|
|
155
|
-
phase: state.phase,
|
|
156
|
-
});
|
|
119
|
+
if (state.phase === WORKFLOW_PHASES.READY_FOR_VERIFIER) {
|
|
120
|
+
return await readDoneBuilderResult({ paths, specId });
|
|
157
121
|
}
|
|
158
122
|
|
|
159
123
|
if (state.phase === WORKFLOW_PHASES.ESCALATION_DECISION) {
|
|
@@ -192,10 +156,6 @@ const formatBuilderResult = (result: BuilderRunResult): string => {
|
|
|
192
156
|
return `Builder completed spec ${result.specId}. The workflow is ready-for-verifier.`;
|
|
193
157
|
}
|
|
194
158
|
|
|
195
|
-
if (result.outcome === BUILDER_HANDOFF_STATUSES.FAILED) {
|
|
196
|
-
return `Builder failed for spec ${result.specId}. The workflow is builder-failed and cannot be retried.`;
|
|
197
|
-
}
|
|
198
|
-
|
|
199
159
|
return `Builder submitted escalation questions for spec ${result.specId}. The workflow is waiting for an owner decision.`;
|
|
200
160
|
};
|
|
201
161
|
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Objective: Complete a builder pass with a validated terminal handoff.
|
|
3
|
-
* Used: When the builder reports done
|
|
3
|
+
* Used: When the builder reports done or escalation through the child tool.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
import { mkdir } from 'node:fs/promises';
|
|
7
7
|
import { Value } from 'typebox/value';
|
|
8
8
|
import { assertBuilderHandoff } from '#artifacts/builder-handoff/assertBuilderHandoff.ts';
|
|
9
9
|
import {
|
|
10
|
-
BUILDER_HANDOFF_STATUSES,
|
|
11
10
|
BUILDER_HANDOFF_VERSION,
|
|
12
11
|
type BuilderHandoff,
|
|
13
12
|
type BuilderHandoffSubmissionInput,
|
|
@@ -15,12 +14,9 @@ import {
|
|
|
15
14
|
} from '#artifacts/builder-handoff/schema.ts';
|
|
16
15
|
import { writeBuilderHandoff } from '#artifacts/builder-handoff/writeBuilderHandoff.ts';
|
|
17
16
|
import type { MaestroPaths } from '#MaestroPaths.ts';
|
|
17
|
+
import { getWorkflowEventByBuilderHandoff } from '#workflow/builder/utils/getWorkflowEventByBuilderHandoff.ts';
|
|
18
18
|
import { readWorkflowState } from '#workflow/state/readWorkflowState.ts';
|
|
19
|
-
import {
|
|
20
|
-
WORKFLOW_EVENTS,
|
|
21
|
-
WORKFLOW_PHASES,
|
|
22
|
-
type WorkflowState,
|
|
23
|
-
} from '#workflow/state/schema.ts';
|
|
19
|
+
import { WORKFLOW_PHASES, type WorkflowState } from '#workflow/state/schema.ts';
|
|
24
20
|
import { writeWorkflowState } from '#workflow/state/writeWorkflowState.ts';
|
|
25
21
|
import { transitionWorkflow } from '#workflow/transitions.ts';
|
|
26
22
|
|
|
@@ -82,12 +78,7 @@ export const completeBuilderPass = async ({
|
|
|
82
78
|
|
|
83
79
|
const nextState = transitionWorkflow({
|
|
84
80
|
state: currentState,
|
|
85
|
-
event:
|
|
86
|
-
draftHandoff.status === BUILDER_HANDOFF_STATUSES.DONE
|
|
87
|
-
? WORKFLOW_EVENTS.BUILDER_DONE
|
|
88
|
-
: draftHandoff.status === BUILDER_HANDOFF_STATUSES.ESCALATION
|
|
89
|
-
? WORKFLOW_EVENTS.OPEN_ESCALATION
|
|
90
|
-
: WORKFLOW_EVENTS.BUILDER_FAILED,
|
|
81
|
+
event: getWorkflowEventByBuilderHandoff(handoff),
|
|
91
82
|
});
|
|
92
83
|
|
|
93
84
|
await mkdir(paths.getBuilderHandoffsPath(specId), { recursive: true });
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Objective: Select the workflow event from a builder handoff.
|
|
3
|
+
* Used: When a builder completes a pass with done or escalation.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
BUILDER_HANDOFF_STATUSES,
|
|
8
|
+
type BuilderHandoff,
|
|
9
|
+
} from '#artifacts/builder-handoff/schema.ts';
|
|
10
|
+
import { WORKFLOW_EVENTS, type WorkflowEvent } from '#workflow/state/schema.ts';
|
|
11
|
+
|
|
12
|
+
export const getWorkflowEventByBuilderHandoff = ({
|
|
13
|
+
status,
|
|
14
|
+
}: BuilderHandoff): WorkflowEvent => {
|
|
15
|
+
if (status === BUILDER_HANDOFF_STATUSES.DONE) {
|
|
16
|
+
return WORKFLOW_EVENTS.BUILDER_DONE;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (status === BUILDER_HANDOFF_STATUSES.ESCALATION) {
|
|
20
|
+
return WORKFLOW_EVENTS.OPEN_ESCALATION;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
throw new Error(`Unexpected builder handoff status: "${status}".`);
|
|
24
|
+
};
|
|
@@ -14,7 +14,6 @@ export const WORKFLOW_PHASES = {
|
|
|
14
14
|
READY_FOR_BUILDER: 'ready-for-builder',
|
|
15
15
|
BUILDER_RUNNING: 'builder-running',
|
|
16
16
|
ESCALATION_DECISION: 'escalation-decision',
|
|
17
|
-
BUILDER_FAILED: 'builder-failed',
|
|
18
17
|
READY_FOR_VERIFIER: 'ready-for-verifier',
|
|
19
18
|
VERIFIER_RUNNING: 'verifier-running',
|
|
20
19
|
FINDINGS_DECISION: 'findings-decision',
|
|
@@ -26,7 +25,6 @@ export const WORKFLOW_EVENTS = {
|
|
|
26
25
|
RUN_BUILDER: 'run-builder',
|
|
27
26
|
OPEN_ESCALATION: 'open-escalation',
|
|
28
27
|
RESOLVE_ESCALATION: 'resolve-escalation',
|
|
29
|
-
BUILDER_FAILED: 'builder-failed',
|
|
30
28
|
BUILDER_DONE: 'builder-done',
|
|
31
29
|
RUN_VERIFIER: 'run-verifier',
|
|
32
30
|
VERIFIER_FOUND_FINDINGS: 'verifier-found-findings',
|
|
@@ -40,7 +38,6 @@ export const WorkflowPhaseSchema = Type.Union([
|
|
|
40
38
|
Type.Literal(WORKFLOW_PHASES.READY_FOR_BUILDER),
|
|
41
39
|
Type.Literal(WORKFLOW_PHASES.BUILDER_RUNNING),
|
|
42
40
|
Type.Literal(WORKFLOW_PHASES.ESCALATION_DECISION),
|
|
43
|
-
Type.Literal(WORKFLOW_PHASES.BUILDER_FAILED),
|
|
44
41
|
Type.Literal(WORKFLOW_PHASES.READY_FOR_VERIFIER),
|
|
45
42
|
Type.Literal(WORKFLOW_PHASES.VERIFIER_RUNNING),
|
|
46
43
|
Type.Literal(WORKFLOW_PHASES.FINDINGS_DECISION),
|
|
@@ -38,10 +38,6 @@ export const WORKFLOW_TRANSITIONS: Record<WorkflowEvent, WorkflowTransition> = {
|
|
|
38
38
|
from: [WORKFLOW_PHASES.ESCALATION_DECISION],
|
|
39
39
|
to: WORKFLOW_PHASES.READY_FOR_BUILDER,
|
|
40
40
|
},
|
|
41
|
-
[WORKFLOW_EVENTS.BUILDER_FAILED]: {
|
|
42
|
-
from: [WORKFLOW_PHASES.BUILDER_RUNNING],
|
|
43
|
-
to: WORKFLOW_PHASES.BUILDER_FAILED,
|
|
44
|
-
},
|
|
45
41
|
[WORKFLOW_EVENTS.BUILDER_DONE]: {
|
|
46
42
|
from: [WORKFLOW_PHASES.BUILDER_RUNNING],
|
|
47
43
|
to: WORKFLOW_PHASES.READY_FOR_VERIFIER,
|
|
@@ -9,13 +9,10 @@ import type { VerifierHandoff } from '#artifacts/verifier-handoff/schema.ts';
|
|
|
9
9
|
import { writeVerifierHandoff } from '#artifacts/verifier-handoff/writeVerifierHandoff.ts';
|
|
10
10
|
import type { MaestroPaths } from '#MaestroPaths.ts';
|
|
11
11
|
import { readWorkflowState } from '#workflow/state/readWorkflowState.ts';
|
|
12
|
-
import {
|
|
13
|
-
WORKFLOW_EVENTS,
|
|
14
|
-
WORKFLOW_PHASES,
|
|
15
|
-
type WorkflowState,
|
|
16
|
-
} from '#workflow/state/schema.ts';
|
|
12
|
+
import { WORKFLOW_PHASES, type WorkflowState } from '#workflow/state/schema.ts';
|
|
17
13
|
import { writeWorkflowState } from '#workflow/state/writeWorkflowState.ts';
|
|
18
14
|
import { transitionWorkflow } from '#workflow/transitions.ts';
|
|
15
|
+
import { getWorkflowEventByVerifierHandoff } from '#workflow/verifier/utils/getWorkflowEventByVerifierHandoff.ts';
|
|
19
16
|
|
|
20
17
|
export type CompletedVerifierPass = {
|
|
21
18
|
handoff: VerifierHandoff;
|
|
@@ -61,10 +58,7 @@ export const completeVerifierPass = async ({
|
|
|
61
58
|
|
|
62
59
|
const nextState = transitionWorkflow({
|
|
63
60
|
state: currentState,
|
|
64
|
-
event:
|
|
65
|
-
handoff.findings.length > 0
|
|
66
|
-
? WORKFLOW_EVENTS.VERIFIER_FOUND_FINDINGS
|
|
67
|
-
: WORKFLOW_EVENTS.VERIFIER_APPROVED,
|
|
61
|
+
event: getWorkflowEventByVerifierHandoff(handoff),
|
|
68
62
|
});
|
|
69
63
|
|
|
70
64
|
await mkdir(paths.getVerifierHandoffsPath(specId), { recursive: true });
|
|
@@ -13,13 +13,10 @@ import { FINDING_DECISIONS } from '#artifacts/verifier-handoff/schema.ts';
|
|
|
13
13
|
import type { MaestroPaths } from '#MaestroPaths.ts';
|
|
14
14
|
import { writeJson } from '#utils/write-json.ts';
|
|
15
15
|
import { readWorkflowState } from '#workflow/state/readWorkflowState.ts';
|
|
16
|
-
import {
|
|
17
|
-
WORKFLOW_EVENTS,
|
|
18
|
-
WORKFLOW_PHASES,
|
|
19
|
-
type WorkflowState,
|
|
20
|
-
} from '#workflow/state/schema.ts';
|
|
16
|
+
import { WORKFLOW_PHASES, type WorkflowState } from '#workflow/state/schema.ts';
|
|
21
17
|
import { writeWorkflowState } from '#workflow/state/writeWorkflowState.ts';
|
|
22
18
|
import { transitionWorkflow } from '#workflow/transitions.ts';
|
|
19
|
+
import { getWorkflowEventByVerifierHandoff } from '#workflow/verifier/utils/getWorkflowEventByVerifierHandoff.ts';
|
|
23
20
|
|
|
24
21
|
type FindingDecisionRejected = {
|
|
25
22
|
findingId: string;
|
|
@@ -159,18 +156,13 @@ const buildFindingWorkflow = ({
|
|
|
159
156
|
return { ...finding, decision: { decision: FINDING_DECISIONS.FIX_CODE } };
|
|
160
157
|
});
|
|
161
158
|
|
|
162
|
-
const
|
|
163
|
-
(decision) => decision.decision === FINDING_DECISIONS.FIX_CODE,
|
|
164
|
-
);
|
|
159
|
+
const nextHandoff = { ...handoff, findings };
|
|
165
160
|
|
|
166
161
|
const nextState = transitionWorkflow({
|
|
167
162
|
state,
|
|
168
|
-
event:
|
|
169
|
-
? WORKFLOW_EVENTS.REQUEST_FIXES
|
|
170
|
-
: WORKFLOW_EVENTS.REJECT_FINDINGS,
|
|
163
|
+
event: getWorkflowEventByVerifierHandoff(nextHandoff),
|
|
171
164
|
});
|
|
172
165
|
|
|
173
|
-
const nextHandoff = { ...handoff, findings };
|
|
174
166
|
assertVerifierHandoff({
|
|
175
167
|
handoff: nextHandoff,
|
|
176
168
|
specId: state.specId,
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Objective: Select the workflow event from a verifier handoff.
|
|
3
|
+
* Used: When a verifier completes a pass or the owner resolves its findings.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
FINDING_DECISIONS,
|
|
8
|
+
type VerifierHandoff,
|
|
9
|
+
} from '#artifacts/verifier-handoff/schema.ts';
|
|
10
|
+
import { WORKFLOW_EVENTS, type WorkflowEvent } from '#workflow/state/schema.ts';
|
|
11
|
+
|
|
12
|
+
export const getWorkflowEventByVerifierHandoff = (
|
|
13
|
+
handoff: VerifierHandoff,
|
|
14
|
+
): WorkflowEvent => {
|
|
15
|
+
if (handoff.findings.length === 0) {
|
|
16
|
+
return WORKFLOW_EVENTS.VERIFIER_APPROVED;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
if (handoff.findings.every(({ decision }) => decision === null)) {
|
|
20
|
+
return WORKFLOW_EVENTS.VERIFIER_FOUND_FINDINGS;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
if (
|
|
24
|
+
handoff.findings.some(
|
|
25
|
+
({ decision }) => decision?.decision === FINDING_DECISIONS.FIX_CODE,
|
|
26
|
+
)
|
|
27
|
+
) {
|
|
28
|
+
return WORKFLOW_EVENTS.REQUEST_FIXES;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
if (
|
|
32
|
+
handoff.findings.every(
|
|
33
|
+
({ decision }) => decision?.decision === FINDING_DECISIONS.REJECT,
|
|
34
|
+
)
|
|
35
|
+
) {
|
|
36
|
+
return WORKFLOW_EVENTS.REJECT_FINDINGS;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
throw new Error('Unexpected verifier finding decisions.');
|
|
40
|
+
};
|