@apralabs/apra-fleet 0.4.3 → 0.4.5
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 +114 -33
- package/dist/agents/backlog-groomer.md +80 -27
- package/dist/agents/ci-watcher.md +42 -22
- package/dist/agents/deployer.md +59 -24
- package/dist/agents/doer.md +111 -41
- package/dist/agents/harvester.md +60 -48
- package/dist/agents/integ-test-runner.md +45 -23
- package/dist/agents/kb-reconciler.md +34 -7
- package/dist/agents/plan-reviewer.md +54 -24
- package/dist/agents/planner.md +71 -43
- package/dist/agents/regression-test-runner.md +106 -78
- package/dist/agents/reviewer.md +170 -57
- package/dist/agents/schemas/backlog-groomer-output.json +1 -1
- package/dist/agents/schemas/deployer-output.json +5 -0
- package/dist/agents/schemas/doer-output.json +110 -2
- package/dist/agents/schemas/harvester-input.json +1 -5
- package/dist/agents/schemas/planner-output.json +1 -1
- package/dist/agents/schemas/regression-test-runner-output.json +41 -7
- package/dist/agents/schemas/reviewer-output.json +166 -5
- package/dist/cli/agent-transform.d.ts +7 -0
- package/dist/cli/agent-transform.js +46 -1
- package/dist/cli/auth.d.ts +1 -0
- package/dist/cli/auth.js +42 -8
- package/dist/cli/beads-install.d.ts +35 -0
- package/dist/cli/beads-install.js +125 -0
- package/dist/cli/beads-pin.d.ts +5 -0
- package/dist/cli/beads-pin.js +26 -0
- package/dist/cli/call.d.ts +27 -0
- package/dist/cli/call.js +177 -0
- package/dist/cli/claude-mod.d.ts +75 -0
- package/dist/cli/claude-mod.js +288 -0
- package/dist/cli/config.d.ts +24 -1
- package/dist/cli/config.js +69 -2
- package/dist/cli/dolt-install.d.ts +19 -3
- package/dist/cli/dolt-install.js +51 -16
- package/dist/cli/fleet-se-guard.d.ts +59 -0
- package/dist/cli/fleet-se-guard.js +231 -0
- package/dist/cli/install-guard.d.ts +63 -0
- package/dist/cli/install-guard.js +156 -4
- package/dist/cli/install.d.ts +89 -21
- package/dist/cli/install.js +778 -160
- package/dist/cli/kb-commit.d.ts +2 -1
- package/dist/cli/kb-commit.js +1 -1
- package/dist/cli/kb-import.d.ts +2 -1
- package/dist/cli/kb-import.js +1 -1
- package/dist/cli/kb-profile.d.ts +16 -0
- package/dist/cli/kb-profile.js +81 -0
- package/dist/cli/register-member.js +20 -3
- package/dist/cli/remove-member.d.ts +4 -0
- package/dist/cli/remove-member.js +63 -0
- package/dist/cli/secret.js +9 -0
- package/dist/cli/start.js +62 -4
- package/dist/cli/status.d.ts +3 -0
- package/dist/cli/status.js +45 -12
- package/dist/cli/stop.js +64 -9
- package/dist/cli/uninstall.js +112 -16
- package/dist/cli/update.d.ts +4 -0
- package/dist/cli/update.js +52 -5
- package/dist/cli/watch.js +1 -1
- package/dist/cli/workflow.js +3 -2
- package/dist/commands/kb-server.d.ts +10 -1
- package/dist/commands/kb-server.js +292 -11
- package/dist/hub-service/http-server.d.ts +5 -1
- package/dist/hub-service/http-server.js +55 -5
- package/dist/index.js +177 -9
- package/dist/os/child-env-bound.d.ts +77 -0
- package/dist/os/child-env-bound.js +171 -0
- package/dist/os/git-executable.d.ts +57 -0
- package/dist/os/git-executable.js +85 -0
- package/dist/os/go-concurrency.d.ts +44 -0
- package/dist/os/go-concurrency.js +53 -0
- package/dist/os/index.d.ts +1 -0
- package/dist/os/index.js +1 -0
- package/dist/os/linux.d.ts +9 -2
- package/dist/os/linux.js +50 -15
- package/dist/os/macos.d.ts +1 -1
- package/dist/os/macos.js +2 -11
- package/dist/os/os-commands.d.ts +42 -2
- package/dist/os/os-commands.js +2 -0
- package/dist/os/windows-executable.d.ts +53 -0
- package/dist/os/windows-executable.js +185 -0
- package/dist/os/windows-gitbash.d.ts +24 -14
- package/dist/os/windows-gitbash.js +56 -18
- package/dist/os/windows-wrapper.d.ts +0 -4
- package/dist/os/windows-wrapper.js +2 -1
- package/dist/os/windows.d.ts +7 -2
- package/dist/os/windows.js +109 -32
- package/dist/paths.d.ts +30 -0
- package/dist/paths.js +52 -0
- package/dist/providers/agy.d.ts +6 -2
- package/dist/providers/agy.js +245 -106
- package/dist/providers/claude-permission-denial.d.ts +7 -0
- package/dist/providers/claude-permission-denial.js +137 -0
- package/dist/providers/claude.d.ts +86 -38
- package/dist/providers/claude.js +426 -164
- package/dist/providers/codex.js +5 -1
- package/dist/providers/copilot.js +5 -1
- package/dist/providers/opencode.d.ts +10 -2
- package/dist/providers/opencode.js +114 -53
- package/dist/providers/provider.d.ts +171 -33
- package/dist/providers/provider.js +164 -3
- package/dist/services/agent-provisioner.d.ts +29 -0
- package/dist/services/agent-provisioner.js +107 -0
- package/dist/services/agent-shadow.d.ts +96 -0
- package/dist/services/agent-shadow.js +479 -0
- package/dist/services/agy-project.d.ts +9 -2
- package/dist/services/agy-project.js +22 -19
- package/dist/services/auth-socket.d.ts +43 -0
- package/dist/services/auth-socket.js +97 -26
- package/dist/services/auth-web.js +1 -1
- package/dist/services/budget-awareness.d.ts +11 -11
- package/dist/services/budget-awareness.js +15 -3
- package/dist/services/claude-local-scope-mcp.d.ts +19 -0
- package/dist/services/claude-local-scope-mcp.js +91 -0
- package/dist/services/cloud/aws.js +2 -1
- package/dist/services/cloud/lifecycle.js +19 -2
- package/dist/services/cloud/task-wrapper.d.ts +0 -9
- package/dist/services/cloud/task-wrapper.js +15 -6
- package/dist/services/credential-store.d.ts +33 -0
- package/dist/services/credential-store.js +79 -2
- package/dist/services/event-loop-watchdog.d.ts +32 -0
- package/dist/services/event-loop-watchdog.js +140 -0
- package/dist/services/http-transport.d.ts +78 -1
- package/dist/services/http-transport.js +347 -52
- package/dist/services/in-flight-agents.d.ts +2 -0
- package/dist/services/in-flight-agents.js +4 -0
- package/dist/services/kb-tool-profile.d.ts +36 -0
- package/dist/services/kb-tool-profile.js +88 -0
- package/dist/services/knowledge/bible-basis-filter.d.ts +53 -0
- package/dist/services/knowledge/bible-basis-filter.js +134 -0
- package/dist/services/knowledge/bible-blob-id.d.ts +44 -0
- package/dist/services/knowledge/bible-blob-id.js +122 -0
- package/dist/services/knowledge/bible-import.d.ts +173 -0
- package/dist/services/knowledge/bible-import.js +344 -0
- package/dist/services/knowledge/file-hash.d.ts +31 -0
- package/dist/services/knowledge/file-hash.js +155 -24
- package/dist/services/knowledge/http-provider.d.ts +305 -21
- package/dist/services/knowledge/http-provider.js +801 -119
- package/dist/services/knowledge/kb-config.d.ts +65 -1
- package/dist/services/knowledge/kb-config.js +143 -3
- package/dist/services/knowledge/kb-http-auth-state.d.ts +26 -0
- package/dist/services/knowledge/kb-http-auth-state.js +40 -0
- package/dist/services/knowledge/kb-maintainer-grant.d.ts +15 -0
- package/dist/services/knowledge/kb-maintainer-grant.js +34 -0
- package/dist/services/knowledge/kb-providers.d.ts +13 -2
- package/dist/services/knowledge/kb-providers.js +75 -37
- package/dist/services/knowledge/kb-removed-scope-keys.d.ts +28 -0
- package/dist/services/knowledge/kb-removed-scope-keys.js +59 -0
- package/dist/services/knowledge/kb-scopes.d.ts +14 -0
- package/dist/services/knowledge/kb-scopes.js +47 -0
- package/dist/services/knowledge/kb-self.d.ts +204 -0
- package/dist/services/knowledge/kb-self.js +358 -0
- package/dist/services/knowledge/member-bible-view.d.ts +21 -0
- package/dist/services/knowledge/member-bible-view.js +207 -0
- package/dist/services/knowledge/path-validation.d.ts +7 -0
- package/dist/services/knowledge/path-validation.js +11 -0
- package/dist/services/knowledge/pre-init.js +1 -0
- package/dist/services/knowledge/project-slug.js +5 -4
- package/dist/services/knowledge/repository-header.d.ts +77 -0
- package/dist/services/knowledge/repository-header.js +233 -0
- package/dist/services/knowledge/require-sqlite-project.d.ts +1 -1
- package/dist/services/knowledge/require-sqlite-project.js +1 -1
- package/dist/services/knowledge/sqlite-provider.d.ts +233 -11
- package/dist/services/knowledge/sqlite-provider.js +719 -45
- package/dist/services/knowledge/types.d.ts +59 -3
- package/dist/services/member-access-secret.d.ts +70 -0
- package/dist/services/member-access-secret.js +195 -0
- package/dist/services/member-busy.d.ts +12 -0
- package/dist/services/member-busy.js +20 -0
- package/dist/services/member-call-counts.d.ts +24 -0
- package/dist/services/member-call-counts.js +58 -0
- package/dist/services/member-config-io.d.ts +193 -0
- package/dist/services/member-config-io.js +446 -0
- package/dist/services/member-fleet-install.d.ts +710 -0
- package/dist/services/member-fleet-install.js +1896 -0
- package/dist/services/member-secret-env.d.ts +42 -0
- package/dist/services/member-secret-env.js +68 -0
- package/dist/services/member-tool-allowlist.d.ts +49 -0
- package/dist/services/member-tool-allowlist.js +115 -0
- package/dist/services/model-pricing.d.ts +19 -0
- package/dist/services/model-pricing.js +54 -8
- package/dist/services/port-holder.d.ts +86 -0
- package/dist/services/port-holder.js +352 -0
- package/dist/services/preflight-check.js +2 -0
- package/dist/services/registry.d.ts +13 -2
- package/dist/services/registry.js +27 -1
- package/dist/services/relay-strategy.d.ts +2 -0
- package/dist/services/relay-strategy.js +8 -0
- package/dist/services/server-lifecycle.d.ts +26 -0
- package/dist/services/server-lifecycle.js +85 -0
- package/dist/services/service-manager/index.d.ts +7 -1
- package/dist/services/service-manager/index.js +17 -4
- package/dist/services/service-manager/linux.d.ts +1 -1
- package/dist/services/service-manager/linux.js +15 -7
- package/dist/services/service-manager/macos.d.ts +11 -1
- package/dist/services/service-manager/macos.js +45 -7
- package/dist/services/service-manager/service-path.d.ts +24 -0
- package/dist/services/service-manager/service-path.js +55 -0
- package/dist/services/service-manager/types.d.ts +54 -3
- package/dist/services/service-manager/types.js +29 -0
- package/dist/services/service-manager/windows.d.ts +187 -3
- package/dist/services/service-manager/windows.js +684 -50
- package/dist/services/service-notice.d.ts +21 -0
- package/dist/services/service-notice.js +81 -0
- package/dist/services/service-start-guard.d.ts +20 -0
- package/dist/services/service-start-guard.js +86 -0
- package/dist/services/session-cost.d.ts +24 -0
- package/dist/services/session-cost.js +105 -0
- package/dist/services/session-mcp-config.d.ts +83 -0
- package/dist/services/session-mcp-config.js +211 -0
- package/dist/services/session-registry.d.ts +13 -0
- package/dist/services/session-registry.js +13 -0
- package/dist/services/session-roots.d.ts +67 -0
- package/dist/services/session-roots.js +126 -0
- package/dist/services/sftp.d.ts +34 -0
- package/dist/services/sftp.js +304 -76
- package/dist/services/shell-probe.d.ts +0 -24
- package/dist/services/shell-probe.js +28 -3
- package/dist/services/singleton.d.ts +68 -2
- package/dist/services/singleton.js +168 -11
- package/dist/services/sprint-coordination.js +9 -3
- package/dist/services/ssh.d.ts +27 -0
- package/dist/services/ssh.js +229 -38
- package/dist/services/stall/find-log-file.js +12 -5
- package/dist/services/stall/index.d.ts +1 -1
- package/dist/services/stall/read-log-tail.d.ts +23 -0
- package/dist/services/stall/read-log-tail.js +33 -2
- package/dist/services/stall/stall-detector.d.ts +25 -1
- package/dist/services/stall/stall-detector.js +85 -6
- package/dist/services/stall/stall-poller.d.ts +16 -0
- package/dist/services/stall/stall-poller.js +50 -6
- package/dist/services/statusline.d.ts +21 -0
- package/dist/services/statusline.js +97 -1
- package/dist/services/stopped-marker.d.ts +16 -0
- package/dist/services/stopped-marker.js +55 -0
- package/dist/services/strategy.d.ts +33 -1
- package/dist/services/strategy.js +86 -17
- package/dist/services/supervisor-service-cleanup.d.ts +52 -0
- package/dist/services/supervisor-service-cleanup.js +333 -0
- package/dist/services/tool-registry.d.ts +8 -1
- package/dist/services/tool-registry.js +251 -62
- package/dist/services/tool-scope.d.ts +91 -0
- package/dist/services/tool-scope.js +124 -0
- package/dist/services/vcs/azure-devops.js +10 -0
- package/dist/services/vcs/bitbucket.d.ts +22 -1
- package/dist/services/vcs/bitbucket.js +163 -17
- package/dist/services/vcs/types.d.ts +25 -2
- package/dist/services/watch/project-resolver.js +3 -1
- package/dist/skills/auto-sprint-args/SKILL.md +2 -2
- package/dist/skills/fleet-sprint-cli/SKILL.md +39 -15
- package/dist/skills/pm/SKILL.md +3 -3
- package/dist/skills/pm/cost.md +5 -1
- package/dist/skills/pm/index.md +11 -9
- package/dist/skills/pm/kb-reconcile.md +29 -14
- package/dist/skills/pm/kb-review.md +1 -0
- package/dist/skills/pm/sprint.md +7 -6
- package/dist/tools/check-status.d.ts +104 -5
- package/dist/tools/check-status.js +326 -57
- package/dist/tools/child-id-allocator.d.ts +2 -2
- package/dist/tools/child-id-allocator.js +1 -1
- package/dist/tools/code-index-heal.d.ts +8 -0
- package/dist/tools/code-index-heal.js +21 -0
- package/dist/tools/code-index-state.d.ts +45 -0
- package/dist/tools/code-index-state.js +115 -0
- package/dist/tools/code-intelligence-codebase-memory.js +6 -33
- package/dist/tools/code-intelligence-freshness.js +1 -1
- package/dist/tools/code-intelligence-gitnexus.d.ts +49 -0
- package/dist/tools/code-intelligence-gitnexus.js +488 -55
- package/dist/tools/code-intelligence-kb-enrich.js +7 -6
- package/dist/tools/code-intelligence-readiness.d.ts +156 -0
- package/dist/tools/code-intelligence-readiness.js +291 -0
- package/dist/tools/code-intelligence-reindex.d.ts +219 -0
- package/dist/tools/code-intelligence-reindex.js +602 -50
- package/dist/tools/code-intelligence-telemetry.d.ts +6 -1
- package/dist/tools/code-intelligence-telemetry.js +12 -3
- package/dist/tools/code-intelligence.d.ts +81 -31
- package/dist/tools/code-intelligence.js +156 -52
- package/dist/tools/compose-permissions.d.ts +57 -2
- package/dist/tools/compose-permissions.js +497 -44
- package/dist/tools/execute-command.d.ts +11 -0
- package/dist/tools/execute-command.js +92 -18
- package/dist/tools/execute-prompt.d.ts +59 -15
- package/dist/tools/execute-prompt.js +550 -135
- package/dist/tools/fleet-snapshot.d.ts +21 -0
- package/dist/tools/fleet-snapshot.js +78 -0
- package/dist/tools/kb-bible-commit.d.ts +79 -0
- package/dist/tools/kb-bible-commit.js +348 -0
- package/dist/tools/kb-capture.d.ts +15 -11
- package/dist/tools/kb-capture.js +42 -11
- package/dist/tools/kb-context.d.ts +27 -7
- package/dist/tools/kb-context.js +85 -14
- package/dist/tools/kb-demote.d.ts +27 -0
- package/dist/tools/kb-demote.js +37 -0
- package/dist/tools/kb-export.d.ts +128 -7
- package/dist/tools/kb-export.js +273 -67
- package/dist/tools/kb-feedback.d.ts +15 -9
- package/dist/tools/kb-feedback.js +27 -11
- package/dist/tools/kb-freshness-sweep.d.ts +11 -7
- package/dist/tools/kb-freshness-sweep.js +7 -7
- package/dist/tools/kb-harvest.d.ts +11 -7
- package/dist/tools/kb-harvest.js +35 -16
- package/dist/tools/kb-import.d.ts +42 -10
- package/dist/tools/kb-import.js +185 -160
- package/dist/tools/kb-invalidate.d.ts +26 -11
- package/dist/tools/kb-invalidate.js +118 -12
- package/dist/tools/kb-list.d.ts +14 -10
- package/dist/tools/kb-list.js +61 -13
- package/dist/tools/kb-promote.d.ts +11 -7
- package/dist/tools/kb-promote.js +16 -8
- package/dist/tools/kb-query.d.ts +24 -11
- package/dist/tools/kb-query.js +230 -23
- package/dist/tools/kb-reconcile-prefilter.d.ts +11 -7
- package/dist/tools/kb-reconcile-prefilter.js +10 -8
- package/dist/tools/kb-resolve-contradiction.d.ts +11 -7
- package/dist/tools/kb-resolve-contradiction.js +7 -7
- package/dist/tools/kb-session-prime.d.ts +14 -7
- package/dist/tools/kb-session-prime.js +127 -47
- package/dist/tools/kb-setup.d.ts +31 -4
- package/dist/tools/kb-setup.js +172 -20
- package/dist/tools/kb-stats.d.ts +11 -10
- package/dist/tools/kb-stats.js +22 -41
- package/dist/tools/list-members.js +6 -3
- package/dist/tools/member-detail.d.ts +3 -0
- package/dist/tools/member-detail.js +95 -20
- package/dist/tools/member-reservation.d.ts +2 -2
- package/dist/tools/provision-auth.d.ts +39 -1
- package/dist/tools/provision-auth.js +269 -47
- package/dist/tools/provision-vcs-auth.d.ts +30 -5
- package/dist/tools/provision-vcs-auth.js +53 -7
- package/dist/tools/receive-files.js +8 -3
- package/dist/tools/register-member.d.ts +34 -8
- package/dist/tools/register-member.js +76 -58
- package/dist/tools/remove-member.js +110 -32
- package/dist/tools/send-email.d.ts +2 -2
- package/dist/tools/send-files.js +9 -6
- package/dist/tools/send-message.d.ts +3 -0
- package/dist/tools/send-message.js +15 -2
- package/dist/tools/session-stats.d.ts +17 -0
- package/dist/tools/session-stats.js +27 -0
- package/dist/tools/shutdown-server.js +5 -0
- package/dist/tools/stop-prompt.js +3 -1
- package/dist/tools/update-agent-cli.d.ts +19 -0
- package/dist/tools/update-agent-cli.js +59 -2
- package/dist/tools/update-member.d.ts +13 -10
- package/dist/tools/update-member.js +138 -7
- package/dist/tools/vcs-credential-exec.d.ts +45 -3
- package/dist/tools/vcs-credential-exec.js +98 -13
- package/dist/types.d.ts +98 -1
- package/dist/utils/agent-helpers.js +2 -0
- package/dist/utils/auth-env.d.ts +15 -4
- package/dist/utils/auth-env.js +52 -23
- package/dist/utils/find-on-path.d.ts +37 -0
- package/dist/utils/find-on-path.js +85 -0
- package/dist/utils/log-helpers.d.ts +37 -0
- package/dist/utils/log-helpers.js +106 -20
- package/dist/utils/owner-only-fs.d.ts +56 -0
- package/dist/utils/owner-only-fs.js +98 -0
- package/dist/utils/process-utils.d.ts +28 -0
- package/dist/utils/process-utils.js +72 -0
- package/dist/utils/prompt-errors.js +4 -1
- package/dist/utils/redact-known-secrets.d.ts +17 -0
- package/dist/utils/redact-known-secrets.js +70 -0
- package/dist/utils/session-caller.d.ts +4 -2
- package/dist/utils/session-caller.js +3 -2
- package/dist/utils/shell-escape.d.ts +42 -3
- package/dist/utils/shell-escape.js +70 -4
- package/dist/utils/skill-matrix.js +1 -1
- package/dist/utils/ssh-error-messages.js +3 -0
- package/dist/utils/vcs-provider-detect.js +2 -2
- package/dist/utils/workspace-trust.d.ts +24 -1
- package/dist/utils/workspace-trust.js +21 -17
- package/dist/workflows/auto-sprint.js +468 -52
- package/package.json +15 -9
- package/packages/apra-fleet-client/package.json +2 -2
- package/packages/apra-fleet-client/src/client/api.mjs +722 -38
- package/packages/apra-fleet-client/src/client/auto-start.mjs +434 -0
- package/packages/apra-fleet-client/src/client/client.mjs +9 -0
- package/packages/apra-fleet-client/src/client/factory.mjs +23 -4
- package/packages/apra-fleet-client/src/client/reconnecting-transport.mjs +170 -0
- package/packages/apra-fleet-client/src/client/server-resolution.mjs +267 -30
- package/packages/apra-fleet-client/src/client/transport.mjs +43 -3
- package/packages/apra-fleet-se/apra-pm/agents/backlog-groomer.md +80 -27
- package/packages/apra-fleet-se/apra-pm/agents/ci-watcher.md +42 -22
- package/packages/apra-fleet-se/apra-pm/agents/deployer.md +59 -24
- package/packages/apra-fleet-se/apra-pm/agents/doer.md +111 -41
- package/packages/apra-fleet-se/apra-pm/agents/harvester.md +60 -48
- package/packages/apra-fleet-se/apra-pm/agents/integ-test-runner.md +45 -23
- package/packages/apra-fleet-se/apra-pm/agents/kb-reconciler.md +34 -7
- package/packages/apra-fleet-se/apra-pm/agents/plan-reviewer.md +54 -24
- package/packages/apra-fleet-se/apra-pm/agents/planner.md +71 -43
- package/packages/apra-fleet-se/apra-pm/agents/regression-test-runner.md +106 -78
- package/packages/apra-fleet-se/apra-pm/agents/reviewer.md +170 -57
- package/packages/apra-fleet-se/apra-pm/agents/schemas/backlog-groomer-output.json +1 -1
- package/packages/apra-fleet-se/apra-pm/agents/schemas/deployer-output.json +5 -0
- package/packages/apra-fleet-se/apra-pm/agents/schemas/doer-output.json +110 -2
- package/packages/apra-fleet-se/apra-pm/agents/schemas/harvester-input.json +1 -5
- package/packages/apra-fleet-se/apra-pm/agents/schemas/planner-output.json +1 -1
- package/packages/apra-fleet-se/apra-pm/agents/schemas/regression-test-runner-output.json +41 -7
- package/packages/apra-fleet-se/apra-pm/agents/schemas/reviewer-output.json +166 -5
- package/packages/apra-fleet-se/apra-pm/skills/pm/SKILL.md +3 -3
- package/packages/apra-fleet-se/apra-pm/skills/pm/cost.md +5 -1
- package/packages/apra-fleet-se/apra-pm/skills/pm/index.md +11 -9
- package/packages/apra-fleet-se/apra-pm/skills/pm/kb-reconcile.md +29 -14
- package/packages/apra-fleet-se/apra-pm/skills/pm/kb-review.md +1 -0
- package/packages/apra-fleet-se/apra-pm/skills/pm/sprint.md +7 -6
- package/packages/apra-fleet-se/bin/cli.mjs +282 -79
- package/packages/apra-fleet-se/bin/serve.mjs +186 -15
- package/packages/apra-fleet-se/fleet-sprint/abort.mjs +234 -46
- package/packages/apra-fleet-se/fleet-sprint/backlog-role.mjs +93 -0
- package/packages/apra-fleet-se/fleet-sprint/bd-sync-command.mjs +69 -0
- package/packages/apra-fleet-se/fleet-sprint/beads-children.mjs +229 -53
- package/packages/apra-fleet-se/fleet-sprint/beads-identity-check.mjs +576 -33
- package/packages/apra-fleet-se/fleet-sprint/beads-identity.mjs +9 -0
- package/packages/apra-fleet-se/fleet-sprint/beads-lock-probe.mjs +176 -0
- package/packages/apra-fleet-se/fleet-sprint/beads-memory-hygiene.mjs +201 -0
- package/packages/apra-fleet-se/fleet-sprint/beads-reachability.mjs +126 -0
- package/packages/apra-fleet-se/fleet-sprint/beads-scope.mjs +271 -7
- package/packages/apra-fleet-se/fleet-sprint/beads-transitions.mjs +154 -8
- package/packages/apra-fleet-se/fleet-sprint/ci-gate.mjs +353 -0
- package/packages/apra-fleet-se/fleet-sprint/conflict-ladder.mjs +12 -0
- package/packages/apra-fleet-se/fleet-sprint/contracts.mjs +142 -3
- package/packages/apra-fleet-se/fleet-sprint/coordination.mjs +48 -8
- package/packages/apra-fleet-se/fleet-sprint/decision-notify.mjs +338 -0
- package/packages/apra-fleet-se/fleet-sprint/decision-wait.mjs +731 -0
- package/packages/apra-fleet-se/fleet-sprint/decisions.mjs +372 -0
- package/packages/apra-fleet-se/fleet-sprint/dispatch-accounting.mjs +270 -0
- package/packages/apra-fleet-se/fleet-sprint/dispatch-failure.mjs +22 -2
- package/packages/apra-fleet-se/fleet-sprint/dispatch-role.mjs +244 -22
- package/packages/apra-fleet-se/fleet-sprint/docs/README.md +56 -15
- package/packages/apra-fleet-se/fleet-sprint/docs/dolt-sync-redesign.md +6 -1
- package/packages/apra-fleet-se/fleet-sprint/docs/fleet-sprint-diagram.md +3 -3
- package/packages/apra-fleet-se/fleet-sprint/dolt-settle.mjs +9 -3
- package/packages/apra-fleet-se/fleet-sprint/dolt-sync.mjs +651 -37
- package/packages/apra-fleet-se/fleet-sprint/errors.mjs +282 -15
- package/packages/apra-fleet-se/fleet-sprint/explicit-id-create-guard.mjs +4 -4
- package/packages/apra-fleet-se/fleet-sprint/git-sync.mjs +207 -10
- package/packages/apra-fleet-se/fleet-sprint/git-topology.mjs +169 -10
- package/packages/apra-fleet-se/fleet-sprint/guarded-modules.mjs +88 -5
- package/packages/apra-fleet-se/fleet-sprint/kb-hints.mjs +181 -0
- package/packages/apra-fleet-se/fleet-sprint/kb-injection.mjs +64 -0
- package/packages/apra-fleet-se/fleet-sprint/kb-maintainer.mjs +298 -0
- package/packages/apra-fleet-se/fleet-sprint/kb.mjs +1896 -305
- package/packages/apra-fleet-se/fleet-sprint/lower-quality.mjs +39 -0
- package/packages/apra-fleet-se/fleet-sprint/member-align.mjs +391 -0
- package/packages/apra-fleet-se/fleet-sprint/member-call.mjs +374 -0
- package/packages/apra-fleet-se/fleet-sprint/member-init-probe.mjs +644 -0
- package/packages/apra-fleet-se/fleet-sprint/member-provisioning.mjs +454 -1
- package/packages/apra-fleet-se/fleet-sprint/member-sync.mjs +250 -29
- package/packages/apra-fleet-se/fleet-sprint/orphan-reclaim.mjs +153 -0
- package/packages/apra-fleet-se/fleet-sprint/phases/deploy.mjs +129 -0
- package/packages/apra-fleet-se/fleet-sprint/phases/develop.mjs +302 -52
- package/packages/apra-fleet-se/fleet-sprint/phases/ensure-sprint-branch.mjs +1 -0
- package/packages/apra-fleet-se/fleet-sprint/phases/final-review.mjs +142 -21
- package/packages/apra-fleet-se/fleet-sprint/phases/harvest.mjs +118 -36
- package/packages/apra-fleet-se/fleet-sprint/phases/integ-test.mjs +6 -6
- package/packages/apra-fleet-se/fleet-sprint/phases/plan.mjs +27 -18
- package/packages/apra-fleet-se/fleet-sprint/phases/publish-pr.mjs +99 -52
- package/packages/apra-fleet-se/fleet-sprint/phases/re-review.mjs +58 -10
- package/packages/apra-fleet-se/fleet-sprint/phases/regression-test.mjs +16 -11
- package/packages/apra-fleet-se/fleet-sprint/phases/replan.mjs +36 -3
- package/packages/apra-fleet-se/fleet-sprint/phases/review.mjs +90 -15
- package/packages/apra-fleet-se/fleet-sprint/pr-body.mjs +272 -0
- package/packages/apra-fleet-se/fleet-sprint/prompts.mjs +113 -28
- package/packages/apra-fleet-se/fleet-sprint/role-policies.mjs +19 -1
- package/packages/apra-fleet-se/fleet-sprint/runner.js +1631 -213
- package/packages/apra-fleet-se/fleet-sprint/se-os-commands.mjs +26 -0
- package/packages/apra-fleet-se/fleet-sprint/se-posix.mjs +183 -0
- package/packages/apra-fleet-se/fleet-sprint/se-windows.mjs +138 -0
- package/packages/apra-fleet-se/fleet-sprint/set-aside.mjs +288 -0
- package/packages/apra-fleet-se/fleet-sprint/shell-command-guard.mjs +44 -1
- package/packages/apra-fleet-se/fleet-sprint/skills/fleet-sprint-cli/SKILL.md +39 -15
- package/packages/apra-fleet-se/fleet-sprint/skills/fleet-supervisor/SKILL.md +87 -32
- package/packages/apra-fleet-se/fleet-sprint/sprint-args.mjs +158 -2
- package/packages/apra-fleet-se/fleet-sprint/sprint-report.mjs +132 -11
- package/packages/apra-fleet-se/fleet-sprint/sprint-state.mjs +31 -0
- package/packages/apra-fleet-se/fleet-sprint/usage-limit-controller.mjs +7 -0
- package/packages/apra-fleet-se/fleet-sprint/vcs-auth.mjs +774 -35
- package/packages/apra-fleet-se/fleet-sprint/vcs-module.mjs +134 -7
- package/packages/apra-fleet-se/fleet-sprint/vcs-providers/azure-devops.mjs +99 -0
- package/packages/apra-fleet-se/fleet-sprint/vcs-providers/bitbucket.mjs +811 -17
- package/packages/apra-fleet-se/fleet-sprint/vcs-providers/github.mjs +223 -0
- package/packages/apra-fleet-se/fleet-sprint/vcs-providers/index.mjs +138 -1
- package/packages/apra-fleet-se/fleet-sprint/vcs-providers/shell-helpers.mjs +8 -4
- package/packages/apra-fleet-se/fleet-sprint/verify-block.mjs +152 -0
- package/packages/apra-fleet-se/fleet-sprint/viewer-extensions.mjs +460 -23
- package/packages/apra-fleet-se/fleet-sprint/worklists.mjs +59 -3
- package/packages/apra-fleet-se/package.json +2 -2
- package/packages/apra-fleet-se/src/supervisor/api.mjs +1059 -0
- package/packages/apra-fleet-se/src/supervisor/backlog-member.mjs +332 -0
- package/packages/apra-fleet-se/src/supervisor/backlog.mjs +982 -0
- package/packages/apra-fleet-se/src/supervisor/beads-identity.mjs +246 -0
- package/packages/apra-fleet-se/src/supervisor/beads-view.mjs +438 -0
- package/packages/apra-fleet-se/src/supervisor/child-port.mjs +36 -0
- package/packages/apra-fleet-se/src/supervisor/dashboard.mjs +1662 -0
- package/packages/apra-fleet-se/src/supervisor/dolt-mutex.mjs +370 -0
- package/packages/apra-fleet-se/src/supervisor/dolt-orphan-sweep.mjs +338 -0
- package/packages/apra-fleet-se/src/supervisor/fleet-members.mjs +292 -0
- package/packages/apra-fleet-se/src/supervisor/history-view.mjs +276 -0
- package/packages/apra-fleet-se/src/supervisor/history.mjs +335 -0
- package/packages/apra-fleet-se/src/supervisor/id-allocator.mjs +611 -0
- package/packages/apra-fleet-se/src/supervisor/launch-form.mjs +444 -0
- package/packages/apra-fleet-se/src/supervisor/ledger.mjs +629 -0
- package/packages/apra-fleet-se/src/supervisor/lib/exec-bd.mjs +303 -0
- package/packages/apra-fleet-se/src/supervisor/log-timestamp.mjs +51 -0
- package/packages/apra-fleet-se/src/supervisor/log-view.mjs +159 -0
- package/packages/apra-fleet-se/src/supervisor/proxy.mjs +499 -0
- package/packages/apra-fleet-se/src/supervisor/readopt.mjs +136 -0
- package/packages/apra-fleet-se/src/supervisor/reconcile.mjs +263 -0
- package/packages/apra-fleet-se/src/supervisor/rename-with-retry.mjs +87 -0
- package/packages/apra-fleet-se/src/supervisor/scope-overlap.mjs +327 -0
- package/packages/apra-fleet-se/src/supervisor/self-log.mjs +133 -0
- package/packages/apra-fleet-se/src/supervisor/server.mjs +542 -0
- package/packages/apra-fleet-se/src/supervisor/spawner.mjs +544 -0
- package/packages/apra-fleet-se/src/supervisor/sprint-identity.mjs +96 -0
- package/packages/apra-fleet-se/src/supervisor/watchdog.mjs +993 -0
- package/packages/apra-fleet-workflow/package.json +3 -2
- package/packages/apra-fleet-workflow/src/viewer/index.mjs +150 -14
- package/packages/apra-fleet-workflow/src/viewer/request-guard.mjs +222 -0
- package/packages/apra-fleet-workflow/src/viewer/run-summary.mjs +127 -0
- package/packages/apra-fleet-workflow/src/workflow/index.mjs +105 -7
- package/packages/apra-fleet-workflow/src/workflow/pricing.mjs +75 -25
- package/plugins/claude-code/fleet-status/.claude-plugin/plugin.json +7 -0
- package/plugins/claude-code/fleet-status/hooks/hooks.json +1 -0
- package/plugins/claude-code/fleet-status/hooks/register.tsx +906 -0
- package/plugins/claude-code/fleet-status/types/index.d.ts +88 -0
- package/skills/fleet/auth-bitbucket.md +47 -20
- package/skills/fleet/onboarding.md +1 -1
- package/skills/fleet/permissions.md +9 -0
- package/skills/fleet/profiles/tag-kb-reconciler.json +2 -6
- package/skills/fleet/skill-matrix.md +3 -3
- package/version.json +1 -1
- package/dist/cli/agent-transform.d.ts.map +0 -1
- package/dist/cli/agent-transform.js.map +0 -1
- package/dist/cli/auth.d.ts.map +0 -1
- package/dist/cli/auth.js.map +0 -1
- package/dist/cli/config.d.ts.map +0 -1
- package/dist/cli/config.js.map +0 -1
- package/dist/cli/dolt-install.d.ts.map +0 -1
- package/dist/cli/dolt-install.js.map +0 -1
- package/dist/cli/install-guard.d.ts.map +0 -1
- package/dist/cli/install-guard.js.map +0 -1
- package/dist/cli/install.d.ts.map +0 -1
- package/dist/cli/install.js.map +0 -1
- package/dist/cli/join.d.ts.map +0 -1
- package/dist/cli/join.js.map +0 -1
- package/dist/cli/kb-commit.d.ts.map +0 -1
- package/dist/cli/kb-commit.js.map +0 -1
- package/dist/cli/kb-directives.d.ts.map +0 -1
- package/dist/cli/kb-directives.js.map +0 -1
- package/dist/cli/kb-import.d.ts.map +0 -1
- package/dist/cli/kb-import.js.map +0 -1
- package/dist/cli/register-member.d.ts.map +0 -1
- package/dist/cli/register-member.js.map +0 -1
- package/dist/cli/restart.d.ts.map +0 -1
- package/dist/cli/restart.js.map +0 -1
- package/dist/cli/secret.d.ts.map +0 -1
- package/dist/cli/secret.js.map +0 -1
- package/dist/cli/spoke.d.ts.map +0 -1
- package/dist/cli/spoke.js.map +0 -1
- package/dist/cli/start.d.ts.map +0 -1
- package/dist/cli/start.js.map +0 -1
- package/dist/cli/status.d.ts.map +0 -1
- package/dist/cli/status.js.map +0 -1
- package/dist/cli/stop.d.ts.map +0 -1
- package/dist/cli/stop.js.map +0 -1
- package/dist/cli/uninstall.d.ts.map +0 -1
- package/dist/cli/uninstall.js.map +0 -1
- package/dist/cli/update.d.ts.map +0 -1
- package/dist/cli/update.js.map +0 -1
- package/dist/cli/watch.d.ts.map +0 -1
- package/dist/cli/watch.js.map +0 -1
- package/dist/cli/workflow-assets.d.ts.map +0 -1
- package/dist/cli/workflow-assets.js.map +0 -1
- package/dist/cli/workflow.d.ts.map +0 -1
- package/dist/cli/workflow.js.map +0 -1
- package/dist/commands/kb-server.d.ts.map +0 -1
- package/dist/commands/kb-server.js.map +0 -1
- package/dist/delivery-mode.d.ts.map +0 -1
- package/dist/delivery-mode.js.map +0 -1
- package/dist/hub-service/activity.d.ts.map +0 -1
- package/dist/hub-service/activity.js.map +0 -1
- package/dist/hub-service/audit-log.d.ts.map +0 -1
- package/dist/hub-service/audit-log.js.map +0 -1
- package/dist/hub-service/db/pool.d.ts.map +0 -1
- package/dist/hub-service/db/pool.js.map +0 -1
- package/dist/hub-service/enrollment.d.ts.map +0 -1
- package/dist/hub-service/enrollment.js.map +0 -1
- package/dist/hub-service/envelope-routes.d.ts.map +0 -1
- package/dist/hub-service/envelope-routes.js.map +0 -1
- package/dist/hub-service/handlers/installers.d.ts.map +0 -1
- package/dist/hub-service/handlers/installers.js.map +0 -1
- package/dist/hub-service/http-server.d.ts.map +0 -1
- package/dist/hub-service/http-server.js.map +0 -1
- package/dist/hub-service/hub-jwt.d.ts.map +0 -1
- package/dist/hub-service/hub-jwt.js.map +0 -1
- package/dist/hub-service/jwt-revocation.d.ts.map +0 -1
- package/dist/hub-service/jwt-revocation.js.map +0 -1
- package/dist/hub-service/machines.d.ts.map +0 -1
- package/dist/hub-service/machines.js.map +0 -1
- package/dist/hub-service/main.d.ts.map +0 -1
- package/dist/hub-service/main.js.map +0 -1
- package/dist/hub-service/member-tokens.d.ts.map +0 -1
- package/dist/hub-service/member-tokens.js.map +0 -1
- package/dist/hub-service/member-view.d.ts.map +0 -1
- package/dist/hub-service/member-view.js.map +0 -1
- package/dist/hub-service/members.d.ts.map +0 -1
- package/dist/hub-service/members.js.map +0 -1
- package/dist/hub-service/presence.d.ts.map +0 -1
- package/dist/hub-service/presence.js.map +0 -1
- package/dist/hub-service/project-view.d.ts.map +0 -1
- package/dist/hub-service/project-view.js.map +0 -1
- package/dist/hub-service/projects.d.ts.map +0 -1
- package/dist/hub-service/projects.js.map +0 -1
- package/dist/hub-service/relay-queue.d.ts.map +0 -1
- package/dist/hub-service/relay-queue.js.map +0 -1
- package/dist/hub-service/session-jwt.d.ts.map +0 -1
- package/dist/hub-service/session-jwt.js.map +0 -1
- package/dist/hub-service/usage.d.ts.map +0 -1
- package/dist/hub-service/usage.js.map +0 -1
- package/dist/hub-service/users.d.ts.map +0 -1
- package/dist/hub-service/users.js.map +0 -1
- package/dist/hub-service/workspaces.d.ts.map +0 -1
- package/dist/hub-service/workspaces.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/onboarding/text.d.ts.map +0 -1
- package/dist/onboarding/text.js.map +0 -1
- package/dist/os/git-bash-candidates.d.ts.map +0 -1
- package/dist/os/git-bash-candidates.js.map +0 -1
- package/dist/os/index.d.ts.map +0 -1
- package/dist/os/index.js.map +0 -1
- package/dist/os/linux.d.ts.map +0 -1
- package/dist/os/linux.js.map +0 -1
- package/dist/os/macos.d.ts.map +0 -1
- package/dist/os/macos.js.map +0 -1
- package/dist/os/os-commands.d.ts.map +0 -1
- package/dist/os/os-commands.js.map +0 -1
- package/dist/os/windows-gitbash.d.ts.map +0 -1
- package/dist/os/windows-gitbash.js.map +0 -1
- package/dist/os/windows-wrapper.d.ts.map +0 -1
- package/dist/os/windows-wrapper.js.map +0 -1
- package/dist/os/windows.d.ts.map +0 -1
- package/dist/os/windows.js.map +0 -1
- package/dist/paths.d.ts.map +0 -1
- package/dist/paths.js.map +0 -1
- package/dist/providers/agy.d.ts.map +0 -1
- package/dist/providers/agy.js.map +0 -1
- package/dist/providers/claude.d.ts.map +0 -1
- package/dist/providers/claude.js.map +0 -1
- package/dist/providers/codex.d.ts.map +0 -1
- package/dist/providers/codex.js.map +0 -1
- package/dist/providers/copilot.d.ts.map +0 -1
- package/dist/providers/copilot.js.map +0 -1
- package/dist/providers/email/headers.d.ts.map +0 -1
- package/dist/providers/email/headers.js.map +0 -1
- package/dist/providers/email/index.d.ts.map +0 -1
- package/dist/providers/email/index.js.map +0 -1
- package/dist/providers/email/provider.d.ts.map +0 -1
- package/dist/providers/email/provider.js.map +0 -1
- package/dist/providers/email/sendgrid.d.ts.map +0 -1
- package/dist/providers/email/sendgrid.js.map +0 -1
- package/dist/providers/email/smtp.d.ts.map +0 -1
- package/dist/providers/email/smtp.js.map +0 -1
- package/dist/providers/index.d.ts.map +0 -1
- package/dist/providers/index.js.map +0 -1
- package/dist/providers/none.d.ts.map +0 -1
- package/dist/providers/none.js.map +0 -1
- package/dist/providers/opencode.d.ts.map +0 -1
- package/dist/providers/opencode.js.map +0 -1
- package/dist/providers/provider.d.ts.map +0 -1
- package/dist/providers/provider.js.map +0 -1
- package/dist/services/agent-provisioner.d.ts.map +0 -1
- package/dist/services/agent-provisioner.js.map +0 -1
- package/dist/services/agy-project.d.ts.map +0 -1
- package/dist/services/agy-project.js.map +0 -1
- package/dist/services/auth-socket.d.ts.map +0 -1
- package/dist/services/auth-socket.js.map +0 -1
- package/dist/services/auth-web.d.ts.map +0 -1
- package/dist/services/auth-web.js.map +0 -1
- package/dist/services/budget-awareness.d.ts.map +0 -1
- package/dist/services/budget-awareness.js.map +0 -1
- package/dist/services/cloud/activity.d.ts.map +0 -1
- package/dist/services/cloud/activity.js.map +0 -1
- package/dist/services/cloud/aws.d.ts.map +0 -1
- package/dist/services/cloud/aws.js.map +0 -1
- package/dist/services/cloud/cost.d.ts.map +0 -1
- package/dist/services/cloud/cost.js.map +0 -1
- package/dist/services/cloud/idle-manager.d.ts.map +0 -1
- package/dist/services/cloud/idle-manager.js.map +0 -1
- package/dist/services/cloud/lifecycle.d.ts.map +0 -1
- package/dist/services/cloud/lifecycle.js.map +0 -1
- package/dist/services/cloud/task-wrapper.d.ts.map +0 -1
- package/dist/services/cloud/task-wrapper.js.map +0 -1
- package/dist/services/cloud/types.d.ts.map +0 -1
- package/dist/services/cloud/types.js.map +0 -1
- package/dist/services/cloud-sync.d.ts.map +0 -1
- package/dist/services/cloud-sync.js.map +0 -1
- package/dist/services/context-admission.d.ts.map +0 -1
- package/dist/services/context-admission.js.map +0 -1
- package/dist/services/credential-cleanup.d.ts.map +0 -1
- package/dist/services/credential-cleanup.js.map +0 -1
- package/dist/services/credential-store.d.ts.map +0 -1
- package/dist/services/credential-store.js.map +0 -1
- package/dist/services/event-bus.d.ts.map +0 -1
- package/dist/services/event-bus.js.map +0 -1
- package/dist/services/exit-drain.d.ts.map +0 -1
- package/dist/services/exit-drain.js.map +0 -1
- package/dist/services/file-chunker.d.ts.map +0 -1
- package/dist/services/file-chunker.js.map +0 -1
- package/dist/services/file-transfer-relay.d.ts.map +0 -1
- package/dist/services/file-transfer-relay.js.map +0 -1
- package/dist/services/file-transfer.d.ts.map +0 -1
- package/dist/services/file-transfer.js.map +0 -1
- package/dist/services/git-config.d.ts.map +0 -1
- package/dist/services/git-config.js.map +0 -1
- package/dist/services/github-app.d.ts.map +0 -1
- package/dist/services/github-app.js.map +0 -1
- package/dist/services/http-transport.d.ts.map +0 -1
- package/dist/services/http-transport.js.map +0 -1
- package/dist/services/hub-client.d.ts.map +0 -1
- package/dist/services/hub-client.js.map +0 -1
- package/dist/services/icons.d.ts.map +0 -1
- package/dist/services/icons.js.map +0 -1
- package/dist/services/jwt.d.ts.map +0 -1
- package/dist/services/jwt.js.map +0 -1
- package/dist/services/knowledge/audn.d.ts.map +0 -1
- package/dist/services/knowledge/audn.js.map +0 -1
- package/dist/services/knowledge/file-hash.d.ts.map +0 -1
- package/dist/services/knowledge/file-hash.js.map +0 -1
- package/dist/services/knowledge/http-provider.d.ts.map +0 -1
- package/dist/services/knowledge/http-provider.js.map +0 -1
- package/dist/services/knowledge/kb-config.d.ts.map +0 -1
- package/dist/services/knowledge/kb-config.js.map +0 -1
- package/dist/services/knowledge/kb-providers.d.ts.map +0 -1
- package/dist/services/knowledge/kb-providers.js.map +0 -1
- package/dist/services/knowledge/kb-scope-input.d.ts +0 -5
- package/dist/services/knowledge/kb-scope-input.d.ts.map +0 -1
- package/dist/services/knowledge/kb-scope-input.js +0 -11
- package/dist/services/knowledge/kb-scope-input.js.map +0 -1
- package/dist/services/knowledge/kb-service.d.ts.map +0 -1
- package/dist/services/knowledge/kb-service.js.map +0 -1
- package/dist/services/knowledge/path-validation.d.ts.map +0 -1
- package/dist/services/knowledge/path-validation.js.map +0 -1
- package/dist/services/knowledge/pre-init.d.ts.map +0 -1
- package/dist/services/knowledge/pre-init.js.map +0 -1
- package/dist/services/knowledge/project-slug.d.ts.map +0 -1
- package/dist/services/knowledge/project-slug.js.map +0 -1
- package/dist/services/knowledge/require-sqlite-project.d.ts.map +0 -1
- package/dist/services/knowledge/require-sqlite-project.js.map +0 -1
- package/dist/services/knowledge/sqlite-provider.d.ts.map +0 -1
- package/dist/services/knowledge/sqlite-provider.js.map +0 -1
- package/dist/services/knowledge/types.d.ts.map +0 -1
- package/dist/services/knowledge/types.js.map +0 -1
- package/dist/services/known-hosts.d.ts.map +0 -1
- package/dist/services/known-hosts.js.map +0 -1
- package/dist/services/known-sessions.d.ts.map +0 -1
- package/dist/services/known-sessions.js.map +0 -1
- package/dist/services/member-home.d.ts.map +0 -1
- package/dist/services/member-home.js.map +0 -1
- package/dist/services/member-remote-url.d.ts.map +0 -1
- package/dist/services/member-remote-url.js.map +0 -1
- package/dist/services/model-pricing.d.ts.map +0 -1
- package/dist/services/model-pricing.js.map +0 -1
- package/dist/services/onboarding.d.ts.map +0 -1
- package/dist/services/onboarding.js.map +0 -1
- package/dist/services/orphan-recovery.d.ts.map +0 -1
- package/dist/services/orphan-recovery.js.map +0 -1
- package/dist/services/pending-responses.d.ts.map +0 -1
- package/dist/services/pending-responses.js.map +0 -1
- package/dist/services/preflight-check.d.ts.map +0 -1
- package/dist/services/preflight-check.js.map +0 -1
- package/dist/services/registry.d.ts.map +0 -1
- package/dist/services/registry.js.map +0 -1
- package/dist/services/relay-context.d.ts.map +0 -1
- package/dist/services/relay-context.js.map +0 -1
- package/dist/services/relay-executor.d.ts.map +0 -1
- package/dist/services/relay-executor.js.map +0 -1
- package/dist/services/relay-request.d.ts.map +0 -1
- package/dist/services/relay-request.js.map +0 -1
- package/dist/services/relay-strategy.d.ts.map +0 -1
- package/dist/services/relay-strategy.js.map +0 -1
- package/dist/services/secret-token.d.ts.map +0 -1
- package/dist/services/secret-token.js.map +0 -1
- package/dist/services/service-manager/index.d.ts.map +0 -1
- package/dist/services/service-manager/index.js.map +0 -1
- package/dist/services/service-manager/linux.d.ts.map +0 -1
- package/dist/services/service-manager/linux.js.map +0 -1
- package/dist/services/service-manager/macos.d.ts.map +0 -1
- package/dist/services/service-manager/macos.js.map +0 -1
- package/dist/services/service-manager/types.d.ts.map +0 -1
- package/dist/services/service-manager/types.js.map +0 -1
- package/dist/services/service-manager/windows.d.ts.map +0 -1
- package/dist/services/service-manager/windows.js.map +0 -1
- package/dist/services/session-registry.d.ts.map +0 -1
- package/dist/services/session-registry.js.map +0 -1
- package/dist/services/sftp.d.ts.map +0 -1
- package/dist/services/sftp.js.map +0 -1
- package/dist/services/shell-probe.d.ts.map +0 -1
- package/dist/services/shell-probe.js.map +0 -1
- package/dist/services/singleton.d.ts.map +0 -1
- package/dist/services/singleton.js.map +0 -1
- package/dist/services/sprint-coordination.d.ts.map +0 -1
- package/dist/services/sprint-coordination.js.map +0 -1
- package/dist/services/ssh.d.ts.map +0 -1
- package/dist/services/ssh.js.map +0 -1
- package/dist/services/stall/find-log-file.d.ts.map +0 -1
- package/dist/services/stall/find-log-file.js.map +0 -1
- package/dist/services/stall/index.d.ts.map +0 -1
- package/dist/services/stall/index.js.map +0 -1
- package/dist/services/stall/log-path-resolver.d.ts.map +0 -1
- package/dist/services/stall/log-path-resolver.js.map +0 -1
- package/dist/services/stall/read-log-tail.d.ts.map +0 -1
- package/dist/services/stall/read-log-tail.js.map +0 -1
- package/dist/services/stall/stall-detector.d.ts.map +0 -1
- package/dist/services/stall/stall-detector.js.map +0 -1
- package/dist/services/stall/stall-poller.d.ts.map +0 -1
- package/dist/services/stall/stall-poller.js.map +0 -1
- package/dist/services/stall/time-utils.d.ts.map +0 -1
- package/dist/services/stall/time-utils.js.map +0 -1
- package/dist/services/statusline.d.ts.map +0 -1
- package/dist/services/statusline.js.map +0 -1
- package/dist/services/strategy.d.ts.map +0 -1
- package/dist/services/strategy.js.map +0 -1
- package/dist/services/substitution-engine.d.ts.map +0 -1
- package/dist/services/substitution-engine.js.map +0 -1
- package/dist/services/task-cleanup.d.ts.map +0 -1
- package/dist/services/task-cleanup.js.map +0 -1
- package/dist/services/token-issuer.d.ts.map +0 -1
- package/dist/services/token-issuer.js.map +0 -1
- package/dist/services/tool-registry.d.ts.map +0 -1
- package/dist/services/tool-registry.js.map +0 -1
- package/dist/services/update-check.d.ts.map +0 -1
- package/dist/services/update-check.js.map +0 -1
- package/dist/services/user-config.d.ts.map +0 -1
- package/dist/services/user-config.js.map +0 -1
- package/dist/services/vcs/azure-devops.d.ts.map +0 -1
- package/dist/services/vcs/azure-devops.js.map +0 -1
- package/dist/services/vcs/bitbucket.d.ts.map +0 -1
- package/dist/services/vcs/bitbucket.js.map +0 -1
- package/dist/services/vcs/constants.d.ts.map +0 -1
- package/dist/services/vcs/constants.js.map +0 -1
- package/dist/services/vcs/github.d.ts.map +0 -1
- package/dist/services/vcs/github.js.map +0 -1
- package/dist/services/vcs/types.d.ts.map +0 -1
- package/dist/services/vcs/types.js.map +0 -1
- package/dist/services/version-check.d.ts.map +0 -1
- package/dist/services/version-check.js.map +0 -1
- package/dist/services/watch/fleet-log.d.ts.map +0 -1
- package/dist/services/watch/fleet-log.js.map +0 -1
- package/dist/services/watch/project-resolver.d.ts.map +0 -1
- package/dist/services/watch/project-resolver.js.map +0 -1
- package/dist/services/watch/transcript-formatter.d.ts.map +0 -1
- package/dist/services/watch/transcript-formatter.js.map +0 -1
- package/dist/smoke-test.d.ts.map +0 -1
- package/dist/smoke-test.js.map +0 -1
- package/dist/tools/check-status.d.ts.map +0 -1
- package/dist/tools/check-status.js.map +0 -1
- package/dist/tools/child-id-allocator.d.ts.map +0 -1
- package/dist/tools/child-id-allocator.js.map +0 -1
- package/dist/tools/cloud-control.d.ts.map +0 -1
- package/dist/tools/cloud-control.js.map +0 -1
- package/dist/tools/code-intelligence-codebase-memory.d.ts.map +0 -1
- package/dist/tools/code-intelligence-codebase-memory.js.map +0 -1
- package/dist/tools/code-intelligence-freshness.d.ts.map +0 -1
- package/dist/tools/code-intelligence-freshness.js.map +0 -1
- package/dist/tools/code-intelligence-gitnexus.d.ts.map +0 -1
- package/dist/tools/code-intelligence-gitnexus.js.map +0 -1
- package/dist/tools/code-intelligence-kb-enrich.d.ts.map +0 -1
- package/dist/tools/code-intelligence-kb-enrich.js.map +0 -1
- package/dist/tools/code-intelligence-reindex.d.ts.map +0 -1
- package/dist/tools/code-intelligence-reindex.js.map +0 -1
- package/dist/tools/code-intelligence-telemetry.d.ts.map +0 -1
- package/dist/tools/code-intelligence-telemetry.js.map +0 -1
- package/dist/tools/code-intelligence-tests.d.ts.map +0 -1
- package/dist/tools/code-intelligence-tests.js.map +0 -1
- package/dist/tools/code-intelligence.d.ts.map +0 -1
- package/dist/tools/code-intelligence.js.map +0 -1
- package/dist/tools/compose-permissions.d.ts.map +0 -1
- package/dist/tools/compose-permissions.js.map +0 -1
- package/dist/tools/credential-store-delete.d.ts.map +0 -1
- package/dist/tools/credential-store-delete.js.map +0 -1
- package/dist/tools/credential-store-list.d.ts.map +0 -1
- package/dist/tools/credential-store-list.js.map +0 -1
- package/dist/tools/credential-store-set.d.ts.map +0 -1
- package/dist/tools/credential-store-set.js.map +0 -1
- package/dist/tools/credential-store-update.d.ts.map +0 -1
- package/dist/tools/credential-store-update.js.map +0 -1
- package/dist/tools/dolt-push-mutex.d.ts.map +0 -1
- package/dist/tools/dolt-push-mutex.js.map +0 -1
- package/dist/tools/execute-command.d.ts.map +0 -1
- package/dist/tools/execute-command.js.map +0 -1
- package/dist/tools/execute-prompt.d.ts.map +0 -1
- package/dist/tools/execute-prompt.js.map +0 -1
- package/dist/tools/get-member-model-pricing.d.ts.map +0 -1
- package/dist/tools/get-member-model-pricing.js.map +0 -1
- package/dist/tools/kb-capture.d.ts.map +0 -1
- package/dist/tools/kb-capture.js.map +0 -1
- package/dist/tools/kb-context.d.ts.map +0 -1
- package/dist/tools/kb-context.js.map +0 -1
- package/dist/tools/kb-export.d.ts.map +0 -1
- package/dist/tools/kb-export.js.map +0 -1
- package/dist/tools/kb-feedback.d.ts.map +0 -1
- package/dist/tools/kb-feedback.js.map +0 -1
- package/dist/tools/kb-freshness-sweep.d.ts.map +0 -1
- package/dist/tools/kb-freshness-sweep.js.map +0 -1
- package/dist/tools/kb-harvest.d.ts.map +0 -1
- package/dist/tools/kb-harvest.js.map +0 -1
- package/dist/tools/kb-import.d.ts.map +0 -1
- package/dist/tools/kb-import.js.map +0 -1
- package/dist/tools/kb-invalidate.d.ts.map +0 -1
- package/dist/tools/kb-invalidate.js.map +0 -1
- package/dist/tools/kb-list.d.ts.map +0 -1
- package/dist/tools/kb-list.js.map +0 -1
- package/dist/tools/kb-promote.d.ts.map +0 -1
- package/dist/tools/kb-promote.js.map +0 -1
- package/dist/tools/kb-query.d.ts.map +0 -1
- package/dist/tools/kb-query.js.map +0 -1
- package/dist/tools/kb-reconcile-prefilter.d.ts.map +0 -1
- package/dist/tools/kb-reconcile-prefilter.js.map +0 -1
- package/dist/tools/kb-resolve-contradiction.d.ts.map +0 -1
- package/dist/tools/kb-resolve-contradiction.js.map +0 -1
- package/dist/tools/kb-session-prime.d.ts.map +0 -1
- package/dist/tools/kb-session-prime.js.map +0 -1
- package/dist/tools/kb-setup.d.ts.map +0 -1
- package/dist/tools/kb-setup.js.map +0 -1
- package/dist/tools/kb-stats.d.ts.map +0 -1
- package/dist/tools/kb-stats.js.map +0 -1
- package/dist/tools/list-members.d.ts.map +0 -1
- package/dist/tools/list-members.js.map +0 -1
- package/dist/tools/member-detail.d.ts.map +0 -1
- package/dist/tools/member-detail.js.map +0 -1
- package/dist/tools/member-reservation.d.ts.map +0 -1
- package/dist/tools/member-reservation.js.map +0 -1
- package/dist/tools/monitor-task.d.ts.map +0 -1
- package/dist/tools/monitor-task.js.map +0 -1
- package/dist/tools/provision-auth.d.ts.map +0 -1
- package/dist/tools/provision-auth.js.map +0 -1
- package/dist/tools/provision-vcs-auth.d.ts.map +0 -1
- package/dist/tools/provision-vcs-auth.js.map +0 -1
- package/dist/tools/receive-files.d.ts.map +0 -1
- package/dist/tools/receive-files.js.map +0 -1
- package/dist/tools/register-member.d.ts.map +0 -1
- package/dist/tools/register-member.js.map +0 -1
- package/dist/tools/remove-member.d.ts.map +0 -1
- package/dist/tools/remove-member.js.map +0 -1
- package/dist/tools/report-status.d.ts.map +0 -1
- package/dist/tools/report-status.js.map +0 -1
- package/dist/tools/respond-to-message.d.ts.map +0 -1
- package/dist/tools/respond-to-message.js.map +0 -1
- package/dist/tools/revoke-vcs-auth.d.ts.map +0 -1
- package/dist/tools/revoke-vcs-auth.js.map +0 -1
- package/dist/tools/send-email.d.ts.map +0 -1
- package/dist/tools/send-email.js.map +0 -1
- package/dist/tools/send-files.d.ts.map +0 -1
- package/dist/tools/send-files.js.map +0 -1
- package/dist/tools/send-message.d.ts.map +0 -1
- package/dist/tools/send-message.js.map +0 -1
- package/dist/tools/setup-git-app.d.ts.map +0 -1
- package/dist/tools/setup-git-app.js.map +0 -1
- package/dist/tools/setup-ssh-key.d.ts.map +0 -1
- package/dist/tools/setup-ssh-key.js.map +0 -1
- package/dist/tools/shutdown-server.d.ts.map +0 -1
- package/dist/tools/shutdown-server.js.map +0 -1
- package/dist/tools/stop-prompt.d.ts.map +0 -1
- package/dist/tools/stop-prompt.js.map +0 -1
- package/dist/tools/update-agent-cli.d.ts.map +0 -1
- package/dist/tools/update-agent-cli.js.map +0 -1
- package/dist/tools/update-member.d.ts.map +0 -1
- package/dist/tools/update-member.js.map +0 -1
- package/dist/tools/vcs-credential-exec.d.ts.map +0 -1
- package/dist/tools/vcs-credential-exec.js.map +0 -1
- package/dist/tools/version.d.ts.map +0 -1
- package/dist/tools/version.js.map +0 -1
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js.map +0 -1
- package/dist/utils/agent-helpers.d.ts.map +0 -1
- package/dist/utils/agent-helpers.js.map +0 -1
- package/dist/utils/ansi.d.ts.map +0 -1
- package/dist/utils/ansi.js.map +0 -1
- package/dist/utils/auth-env.d.ts.map +0 -1
- package/dist/utils/auth-env.js.map +0 -1
- package/dist/utils/collect-secret.d.ts.map +0 -1
- package/dist/utils/collect-secret.js.map +0 -1
- package/dist/utils/credential-validation.d.ts.map +0 -1
- package/dist/utils/credential-validation.js.map +0 -1
- package/dist/utils/crypto.d.ts.map +0 -1
- package/dist/utils/crypto.js.map +0 -1
- package/dist/utils/deep-merge.d.ts.map +0 -1
- package/dist/utils/deep-merge.js.map +0 -1
- package/dist/utils/file-permissions.d.ts.map +0 -1
- package/dist/utils/file-permissions.js.map +0 -1
- package/dist/utils/gpu-parser.d.ts.map +0 -1
- package/dist/utils/gpu-parser.js.map +0 -1
- package/dist/utils/log-helpers.d.ts.map +0 -1
- package/dist/utils/log-helpers.js.map +0 -1
- package/dist/utils/oob-timeout.d.ts.map +0 -1
- package/dist/utils/oob-timeout.js.map +0 -1
- package/dist/utils/opencode-model-validation.d.ts.map +0 -1
- package/dist/utils/opencode-model-validation.js.map +0 -1
- package/dist/utils/pid-helpers.d.ts.map +0 -1
- package/dist/utils/pid-helpers.js.map +0 -1
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/process-utils.d.ts.map +0 -1
- package/dist/utils/process-utils.js.map +0 -1
- package/dist/utils/prompt-errors.d.ts.map +0 -1
- package/dist/utils/prompt-errors.js.map +0 -1
- package/dist/utils/resolve-member.d.ts.map +0 -1
- package/dist/utils/resolve-member.js.map +0 -1
- package/dist/utils/secure-input.d.ts.map +0 -1
- package/dist/utils/secure-input.js.map +0 -1
- package/dist/utils/session-caller.d.ts.map +0 -1
- package/dist/utils/session-caller.js.map +0 -1
- package/dist/utils/shell-escape.d.ts.map +0 -1
- package/dist/utils/shell-escape.js.map +0 -1
- package/dist/utils/skill-matrix.d.ts.map +0 -1
- package/dist/utils/skill-matrix.js.map +0 -1
- package/dist/utils/ssh-error-messages.d.ts.map +0 -1
- package/dist/utils/ssh-error-messages.js.map +0 -1
- package/dist/utils/vcs-provider-detect.d.ts.map +0 -1
- package/dist/utils/vcs-provider-detect.js.map +0 -1
- package/dist/utils/work-folder-validation.d.ts.map +0 -1
- package/dist/utils/work-folder-validation.js.map +0 -1
- package/dist/utils/workspace-trust.d.ts.map +0 -1
- package/dist/utils/workspace-trust.js.map +0 -1
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js.map +0 -1
|
@@ -79,7 +79,7 @@ export async function runPlanPhase({
|
|
|
79
79
|
validated,
|
|
80
80
|
targetIssues,
|
|
81
81
|
requirementsContent,
|
|
82
|
-
|
|
82
|
+
backlogMember,
|
|
83
83
|
getMemberForRole,
|
|
84
84
|
// Per-sprint resolved state (../sprint-state.mjs) and the git/beads sync
|
|
85
85
|
// bracket the post-plan cross-clone re-pull goes through.
|
|
@@ -131,7 +131,7 @@ export async function runPlanPhase({
|
|
|
131
131
|
// the phase degrades to the pre-existing prompt-only behaviour.
|
|
132
132
|
const parentNotesStalenessNotes = await collectParentNotesStalenessNotes({
|
|
133
133
|
command,
|
|
134
|
-
member:
|
|
134
|
+
member: backlogMember,
|
|
135
135
|
rootIds: targetIssues,
|
|
136
136
|
parseBdJson,
|
|
137
137
|
log,
|
|
@@ -193,7 +193,7 @@ export async function runPlanPhase({
|
|
|
193
193
|
// planner already mutated beads), any retry attempt, and a planner on
|
|
194
194
|
// a DISTINCT clone from the orchestrator (never freshened by the
|
|
195
195
|
// setup pull).
|
|
196
|
-
const
|
|
196
|
+
const plannerSharesBacklogClone = getMemberForRole('planner') === backlogMember;
|
|
197
197
|
await dispatchRole(dispatchCtx, 'planner', {
|
|
198
198
|
prompt: plannerPrompt,
|
|
199
199
|
resumePrompt: 'Continue your planning pass exactly where you left off in this same session -- do not restart or re-derive the DAG from scratch. Finish creating/updating the remaining beads and return your final summary now.',
|
|
@@ -203,14 +203,18 @@ export async function runPlanPhase({
|
|
|
203
203
|
// prior-round session by explicit session id so a re-plan keeps
|
|
204
204
|
// warm context. False on the first round of any cycle
|
|
205
205
|
// (roundSessions never resumes across cycles). The
|
|
206
|
-
// max_turns-exhaustion path
|
|
207
|
-
//
|
|
208
|
-
//
|
|
206
|
+
// max_turns-exhaustion path does not use this value: its
|
|
207
|
+
// secondary dispatch resumes the EXHAUSTED attempt's own session
|
|
208
|
+
// by the explicit id reported on its error (resume:
|
|
209
|
+
// "<exhausted session id>"), or starts a fresh session with the
|
|
210
|
+
// full prompt when no id was reported or the server answers
|
|
211
|
+
// session_not_found -- an in-dispatch continuation, orthogonal
|
|
212
|
+
// to cross-round resume.
|
|
209
213
|
resumeArg: roundSessions.resumeArgFor('planner', cycle),
|
|
210
214
|
onSessionId: (id, meta) => roundSessions.record('planner', cycle, id, meta),
|
|
211
215
|
attemptOptions: ({ attempt }) => ({
|
|
212
216
|
skipPreDispatchDoltPull:
|
|
213
|
-
attempt === 1 && cycle === 1 && planningRounds === 1 &&
|
|
217
|
+
attempt === 1 && cycle === 1 && planningRounds === 1 && plannerSharesBacklogClone,
|
|
214
218
|
}),
|
|
215
219
|
// Runs INSIDE the attempt's try, so a failure here is classified
|
|
216
220
|
// by the same ladder that classifies the dispatch itself.
|
|
@@ -225,11 +229,11 @@ export async function runPlanPhase({
|
|
|
225
229
|
// orchestrator cannot actually see reproduces exactly the "epic
|
|
226
230
|
// looks like a childless ready leaf" failure this fix closes.
|
|
227
231
|
afterAttempt: async () => {
|
|
228
|
-
if (
|
|
229
|
-
const postPlanSettleShell = await resolveSettleShell({ args, member:
|
|
230
|
-
await gitSync.syncBeadsBefore(
|
|
232
|
+
if (plannerSharesBacklogClone) return;
|
|
233
|
+
const postPlanSettleShell = await resolveSettleShell({ args, member: backlogMember, log, sprintState });
|
|
234
|
+
await gitSync.syncBeadsBefore(backlogMember, {
|
|
231
235
|
fatal: true,
|
|
232
|
-
settle: buildSettleCallback(
|
|
236
|
+
settle: buildSettleCallback(backlogMember, { command, log, shell: postPlanSettleShell }),
|
|
233
237
|
});
|
|
234
238
|
},
|
|
235
239
|
});
|
|
@@ -247,7 +251,7 @@ export async function runPlanPhase({
|
|
|
247
251
|
for (const parentId of targetIssues) {
|
|
248
252
|
try {
|
|
249
253
|
const label = `bd list --parent ${parentId} --json`;
|
|
250
|
-
const raw = await command(label, { member_name:
|
|
254
|
+
const raw = await command(label, { member_name: backlogMember, silent: true });
|
|
251
255
|
const children = parseBdJson(raw, label);
|
|
252
256
|
pendingRejectedNewTasks = reconcilePendingRejectedNewTasks(pendingRejectedNewTasks, children);
|
|
253
257
|
} catch (err) {
|
|
@@ -339,7 +343,12 @@ export async function runPlanPhase({
|
|
|
339
343
|
`Plan phase for cycle ${cycle} exhausted ${planningRounds} plan round(s) without a usable ` +
|
|
340
344
|
'plan-reviewer verdict -- the last round\'s verdict was synthesized from a dispatch failure, ' +
|
|
341
345
|
'not a genuine review. The plan was never actually reviewed; re-run the sprint once the ' +
|
|
342
|
-
'plan-reviewer dispatch channel recovers.'
|
|
346
|
+
'plan-reviewer dispatch channel recovers.' +
|
|
347
|
+
// The synthesized verdict's notes carry the underlying
|
|
348
|
+
// dispatch error (member + reason/transport text); name it
|
|
349
|
+
// here so the terminal failure says WHAT broke, not just
|
|
350
|
+
// that something did.
|
|
351
|
+
(lastVerdict.notes ? ` Last dispatch failure: ${lastVerdict.notes}` : ''),
|
|
343
352
|
{
|
|
344
353
|
notes: lastVerdict ? lastVerdict.notes : null,
|
|
345
354
|
cycle,
|
|
@@ -365,13 +374,13 @@ export async function runPlanPhase({
|
|
|
365
374
|
for (const id of contestedIds) {
|
|
366
375
|
await command(
|
|
367
376
|
`bd update ${id} --status=deferred`,
|
|
368
|
-
{ member_name:
|
|
377
|
+
{ member_name: backlogMember, silent: true, label: `Defer contested bead ${id} per plan-cap exhaustion` }
|
|
369
378
|
);
|
|
370
|
-
// Stage the deferral note member-side: the
|
|
379
|
+
// Stage the deferral note member-side: the backlog member
|
|
371
380
|
// can itself be remote, so a host-local body-file path would be
|
|
372
381
|
// unreachable to `bd note`.
|
|
373
382
|
const noteFile = await stageCommandBodyMemberSide({
|
|
374
|
-
command, member:
|
|
383
|
+
command, member: backlogMember,
|
|
375
384
|
content:
|
|
376
385
|
`[fleet-sprint plan-cap deferral] Deferred after ${planningRounds} plan round(s) of CHANGES_NEEDED ` +
|
|
377
386
|
`confined to this bead (cycle ${cycle}). Plan reviewer finding:\n${lastVerdict.notes}`,
|
|
@@ -379,10 +388,10 @@ export async function runPlanPhase({
|
|
|
379
388
|
});
|
|
380
389
|
await command(
|
|
381
390
|
`bd note ${id} --file "${noteFile}"`,
|
|
382
|
-
{ member_name:
|
|
391
|
+
{ member_name: backlogMember, silent: true, label: `Attach plan-cap deferral finding to ${id}` }
|
|
383
392
|
);
|
|
384
393
|
}
|
|
385
|
-
await gitSync.syncBeadsAfter(
|
|
394
|
+
await gitSync.syncBeadsAfter(backlogMember, { pushBeads: true });
|
|
386
395
|
planCapDeferredIds = contestedIds;
|
|
387
396
|
}
|
|
388
397
|
|
|
@@ -40,24 +40,23 @@
|
|
|
40
40
|
// WHICH MEMBER DOES WHAT, AND WHY IT MATTERS. The branch push and the
|
|
41
41
|
// `git remote get-url origin` read run on publishGitMember -- the role-resolved
|
|
42
42
|
// 'harvester' member, a real dispatch member with an actual git checkout --
|
|
43
|
-
// NEVER
|
|
43
|
+
// NEVER backlogMember, which may be a shared/unreservable, git-less member
|
|
44
44
|
// (docs/design-orchestrator-worktree-model-v2.md section 4.3/4.5).
|
|
45
45
|
// raiseVcsPrForMember() and the direct `bd close` calls stay on
|
|
46
|
-
//
|
|
46
|
+
// backlogMember: a credential-file read plus a REST call, and beads
|
|
47
47
|
// mutations, neither of which needs a git checkout (section 4.6).
|
|
48
48
|
//
|
|
49
|
-
// WHY ITS HELPERS ARE INJECTED RATHER THAN IMPORTED.
|
|
50
|
-
//
|
|
51
|
-
//
|
|
52
|
-
//
|
|
53
|
-
//
|
|
54
|
-
//
|
|
55
|
-
// imported directly.
|
|
49
|
+
// WHY ITS HELPERS ARE INJECTED RATHER THAN IMPORTED. command, gitSync,
|
|
50
|
+
// getMemberForRole and args are runSprintCycle-scoped, so there is nothing to
|
|
51
|
+
// import; vcsCapabilities, raiseVcsPrForMember, the ../pr-body.mjs builders,
|
|
52
|
+
// ApraFleet and CommandError live in real modules and are imported directly.
|
|
53
|
+
// (sanitizePrText used to be injected for the notes; the body no longer uses
|
|
54
|
+
// it -- see the PR body comment below.)
|
|
56
55
|
//
|
|
57
56
|
// GUARD COVERAGE: registered as 'phases/publish-pr.mjs' in
|
|
58
57
|
// ../guarded-modules.mjs. It took TWO member_name-bearing command() call sites
|
|
59
58
|
// out of runner.js -- the `git remote get-url origin` capability probe on
|
|
60
|
-
// publishGitMember and the per-target-issue `bd close` on
|
|
59
|
+
// publishGitMember and the per-target-issue `bd close` on backlogMember --
|
|
61
60
|
// plus the branch push and the beads D-push described above, and NO
|
|
62
61
|
// dispatchRole() site (it dispatches no agent; raiseVcsPrForMember is a REST
|
|
63
62
|
// call). That is exactly what dispatch-safety-guard, unbracketed-push-guard
|
|
@@ -70,6 +69,7 @@ import { CommandError } from '@apralabs/apra-fleet-workflow';
|
|
|
70
69
|
import { ApraFleet } from '@apralabs/apra-fleet-client';
|
|
71
70
|
import { capabilities as vcsCapabilities } from '../vcs-module.mjs';
|
|
72
71
|
import { raiseVcsPrForMember } from '../vcs-auth.mjs';
|
|
72
|
+
import { buildSprintPrBody, buildSprintPrTitle } from '../pr-body.mjs';
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
75
|
* Runs the Publish PR phase: push the sprint branch, then either raise a PR on
|
|
@@ -77,11 +77,13 @@ import { raiseVcsPrForMember } from '../vcs-auth.mjs';
|
|
|
77
77
|
* issue(s) directly when the verdict passed.
|
|
78
78
|
*
|
|
79
79
|
* @param {object} state Explicit phase state; see this file's header.
|
|
80
|
-
* @returns {Promise<{ pushed: boolean }>} Whether the sprint branch actually
|
|
80
|
+
* @returns {Promise<{ pushed: boolean, prSkipped?: { reason: string, message: string } }>} Whether the sprint branch actually
|
|
81
81
|
* reached the remote. runner.js folds this straight into runSprintCycle's
|
|
82
82
|
* return value -- it never overrides the sprint's own computed verdict.
|
|
83
83
|
*/
|
|
84
84
|
export async function runPublishPrPhase({
|
|
85
|
+
// Lower-quality banner (lower-quality.mjs), or null when every member was verified.
|
|
86
|
+
lowerQualityBanner = null,
|
|
85
87
|
// Presentation + command seams.
|
|
86
88
|
phase,
|
|
87
89
|
log,
|
|
@@ -90,7 +92,7 @@ export async function runPublishPrPhase({
|
|
|
90
92
|
args,
|
|
91
93
|
validated,
|
|
92
94
|
targetIssues,
|
|
93
|
-
|
|
95
|
+
backlogMember,
|
|
94
96
|
finalCycleLabel,
|
|
95
97
|
// The sync brackets this phase's branch push and beads D-push go through.
|
|
96
98
|
gitSync,
|
|
@@ -98,8 +100,14 @@ export async function runPublishPrPhase({
|
|
|
98
100
|
getMemberForRole,
|
|
99
101
|
// The verdict this phase publishes but must never change.
|
|
100
102
|
finalVerdictResult,
|
|
101
|
-
//
|
|
102
|
-
|
|
103
|
+
// Engine-computed cost block from ./harvest.mjs, rendered in the PR body.
|
|
104
|
+
costAnalysis = '',
|
|
105
|
+
// The run's set-aside records (../set-aside.mjs collectSetAsideEntries),
|
|
106
|
+
// rendered as the "Set aside this run" section; omitted when empty.
|
|
107
|
+
setAside = [],
|
|
108
|
+
// The run's wait records (../set-aside.mjs collectWaitEntries), rendered
|
|
109
|
+
// as one "Waited this run" line; omitted when empty.
|
|
110
|
+
waited = [],
|
|
103
111
|
}) {
|
|
104
112
|
phase(`Publish PR C${finalCycleLabel}`);
|
|
105
113
|
// The branch push is the LAST step of a sprint that has already done all of
|
|
@@ -122,10 +130,10 @@ export async function runPublishPrPhase({
|
|
|
122
130
|
// apra-fleet: this push and the origin-remote read just below it run on
|
|
123
131
|
// publishGitMember -- a real dispatch member with an actual git checkout
|
|
124
132
|
// (harvester, falling back to the fallback pool like every other role
|
|
125
|
-
// resolution in ../runner.js) -- NEVER
|
|
133
|
+
// resolution in ../runner.js) -- NEVER backlogMember, which may be a
|
|
126
134
|
// shared/unreservable, git-less member (docs/design-orchestrator-
|
|
127
135
|
// worktree-model-v2.md section 4.3/4.5). raiseVcsPrForMember() below
|
|
128
|
-
// stays on
|
|
136
|
+
// stays on backlogMember: it is a credential-file read + REST call,
|
|
129
137
|
// not git, and is explicitly designed to stay there (section 4.6).
|
|
130
138
|
const publishGitMember = getMemberForRole('harvester');
|
|
131
139
|
let pushed = false;
|
|
@@ -200,56 +208,78 @@ export async function runPublishPrPhase({
|
|
|
200
208
|
const publishPrCapabilities = vcsCapabilities(originUrl);
|
|
201
209
|
const hostedRemote = publishPrCapabilities.canOpenPullRequest;
|
|
202
210
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
211
|
+
// With no PR possible, target-issue closure cannot be gated on one --
|
|
212
|
+
// close the target issue(s) directly, but only when the sprint's own final
|
|
213
|
+
// verdict actually passed. A FAIL verdict must never be masked by closing
|
|
214
|
+
// the issue anyway; it still ends the sprint 'failed' via the return value
|
|
215
|
+
// below, same as the PR path. `why` names the no-PR cause in the log.
|
|
216
|
+
// Typed marker (field `prSkipped`) for a push that succeeded but whose PR
|
|
217
|
+
// was not raised because of a VCS auth failure (the credentialAbsent branch
|
|
218
|
+
// closes targets directly by design and stays unmarked); runner.js folds it
|
|
219
|
+
// into the run result (verdict untouched) and the final summary line.
|
|
220
|
+
let prSkipped = null;
|
|
221
|
+
const closeTargetsDirectly = async (why) => {
|
|
212
222
|
if (finalVerdictResult.verdict === 'PASS') {
|
|
213
223
|
for (const id of targetIssues) {
|
|
214
224
|
const closeRes = await command(`bd close ${id}`, {
|
|
215
|
-
member_name:
|
|
225
|
+
member_name: backlogMember,
|
|
216
226
|
silent: true,
|
|
217
227
|
failSoft: true,
|
|
218
|
-
label: `Close target issue '${id}' directly (
|
|
228
|
+
label: `Close target issue '${id}' directly (${why}, no PR gate)`,
|
|
219
229
|
});
|
|
220
230
|
if (closeRes.ok) {
|
|
221
|
-
log(`Publish PR: closed target issue '${id}' directly (
|
|
231
|
+
log(`Publish PR: closed target issue '${id}' directly (${why}, PASS verdict).`);
|
|
222
232
|
} else {
|
|
223
233
|
log(`Publish PR: failed to close target issue '${id}' directly (non-fatal, continuing): ${closeRes.error}`);
|
|
224
234
|
}
|
|
225
235
|
}
|
|
226
|
-
await gitSync.syncBeadsAfter(
|
|
236
|
+
await gitSync.syncBeadsAfter(backlogMember, { pushBeads: true });
|
|
227
237
|
} else {
|
|
228
238
|
log('Publish PR: final verdict is FAIL -- leaving target issue(s) open (not closing on a non-PASS verdict).');
|
|
229
239
|
}
|
|
240
|
+
};
|
|
241
|
+
|
|
242
|
+
if (!hostedRemote) {
|
|
243
|
+
log(`Publish PR: origin remote '${originUrl || '(unresolved)'}' cannot open a pull request (host: ${publishPrCapabilities.host || 'unknown'}) -- ` +
|
|
244
|
+
'skipping PR creation entirely (no dependency on any VCS provider\'s auth for this path).');
|
|
245
|
+
await closeTargetsDirectly('non-hosted remote');
|
|
230
246
|
} else {
|
|
231
|
-
// finalVerdictResult.notes is LLM-authored free text
|
|
232
|
-
// sanitizePrText() (
|
|
233
|
-
//
|
|
234
|
-
//
|
|
235
|
-
//
|
|
236
|
-
//
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
+
// finalVerdictResult.notes is LLM-authored free text. It used to go
|
|
248
|
+
// through sanitizePrText() (a single-line shell-argument sanitizer
|
|
249
|
+
// that maps every newline to a space), which is what flattened the
|
|
250
|
+
// reviewer's paragraphs and bullets into one line. The body never
|
|
251
|
+
// reaches a shell as raw text -- every provider builder JSON-encodes
|
|
252
|
+
// it and quotes the JSON per member shell -- so ../pr-body.mjs now
|
|
253
|
+
// applies markdown/transport hygiene instead (no raw HTML, no
|
|
254
|
+
// credential-placeholder spelling, balanced fences, ASCII, capped)
|
|
255
|
+
// while keeping the line structure.
|
|
256
|
+
const prTitle = buildSprintPrTitle({ verdict: finalVerdictLabel, branch: validated.branch });
|
|
257
|
+
const runId = validated.runId || (args && args.run_id) || '';
|
|
258
|
+
const now = new Date();
|
|
259
|
+
const buildBody = (previousBody = '') => buildSprintPrBody({
|
|
260
|
+
verdict: finalVerdictLabel,
|
|
261
|
+
goal: validated.goal,
|
|
262
|
+
branch: validated.branch,
|
|
263
|
+
baseBranch: validated.baseBranch,
|
|
264
|
+
runId,
|
|
265
|
+
now,
|
|
266
|
+
notes: finalVerdictResult.notes,
|
|
267
|
+
details: [
|
|
268
|
+
validated.skipRegression ? 'Regression pass: skipped by launch option -- not run this sprint.' : null,
|
|
269
|
+
lowerQualityBanner || null,
|
|
270
|
+
],
|
|
271
|
+
setAside,
|
|
272
|
+
waited,
|
|
273
|
+
costAnalysis,
|
|
274
|
+
previousBody,
|
|
275
|
+
});
|
|
276
|
+
const prBody = buildBody();
|
|
247
277
|
|
|
248
278
|
// Idempotent PR creation via VCSModule (apra-fleet-tfx.8: the reverted
|
|
249
279
|
// gh-based path is gone). A push+pr credential is minted just-in-time immediately
|
|
250
280
|
// before this one call (never at sprint setup, never for any other
|
|
251
281
|
// phase), VCSModule builds the orchestrator-side curl command, and
|
|
252
|
-
// `
|
|
282
|
+
// `backlogMember` dispatches it via execute_command -- no gh, no
|
|
253
283
|
// server-side fallback. A re-run of finalization against a branch
|
|
254
284
|
// that ALREADY has an open PR from a prior, otherwise-successful run
|
|
255
285
|
// can be told apart from a genuine failure: the REST create-PR call
|
|
@@ -275,12 +305,12 @@ export async function runPublishPrPhase({
|
|
|
275
305
|
// MCP dependency for callers that legitimately have none. A genuine
|
|
276
306
|
// PR-creation FAILURE (auth, network, a real API error) still
|
|
277
307
|
// throws below -- only the callTool-absent case is degraded.
|
|
278
|
-
log(`[Publish PR Skipped] no MCP callTool available to mint a push+pr credential for member '${
|
|
308
|
+
log(`[Publish PR Skipped] no MCP callTool available to mint a push+pr credential for member '${backlogMember}' -- branch '${validated.branch}' is pushed but the PR was not raised.`);
|
|
279
309
|
} else {
|
|
280
310
|
const prResult = await raiseVcsPrForMember({
|
|
281
311
|
fleetApi: fleetApiForPr,
|
|
282
312
|
command,
|
|
283
|
-
member:
|
|
313
|
+
member: backlogMember,
|
|
284
314
|
base: validated.baseBranch,
|
|
285
315
|
head: validated.branch,
|
|
286
316
|
title: prTitle,
|
|
@@ -290,14 +320,26 @@ export async function runPublishPrPhase({
|
|
|
290
320
|
// Already resolved above via publishGitMember (a real
|
|
291
321
|
// git-capable member) for the PR-capability gate -- skip
|
|
292
322
|
// re-deriving it a second time by shelling out to
|
|
293
|
-
//
|
|
323
|
+
// backlogMember, which may have no git checkout of its
|
|
294
324
|
// own to read a remote from (docs/design-orchestrator-
|
|
295
325
|
// worktree-model-v2.md section 4.6: this call stays workspace-
|
|
296
326
|
// independent by design, credential-file-read + REST only).
|
|
297
327
|
remoteUrlOverride: originUrl,
|
|
328
|
+
// A relaunch on a branch that already has a PR rewrites that
|
|
329
|
+
// PR's title and body for THIS run's verdict, carrying the
|
|
330
|
+
// earlier runs forward from the old body's history block.
|
|
331
|
+
updateExisting: ({ body: oldBody }) => ({ title: prTitle, body: buildBody(oldBody) }),
|
|
298
332
|
});
|
|
299
333
|
if (!prResult.ok) {
|
|
300
|
-
if (prResult.
|
|
334
|
+
if (prResult.credentialAbsent) {
|
|
335
|
+
// No PR credential is deployed at all for a provider whose
|
|
336
|
+
// credential is out-of-band only, so no PR is possible:
|
|
337
|
+
// keep the no-PR behaviour (close targets directly on
|
|
338
|
+
// PASS) instead of leaving them open with nothing to gate
|
|
339
|
+
// on. A deployed-but-failing credential is the branch below.
|
|
340
|
+
log(`[Publish PR Skipped] NO pull request was opened for branch '${validated.branch}' -> '${validated.baseBranch}' (branch is pushed): no PR credential is deployed -- closing target issue(s) directly on PASS as for a remote that cannot open a PR. Deploy a credential to get PRs: ${prResult.error}`);
|
|
341
|
+
await closeTargetsDirectly('no PR credential deployed');
|
|
342
|
+
} else if (prResult.authFailure) {
|
|
301
343
|
// apra-fleet-5co8.15: an auth failure raiseVcsPrForMember
|
|
302
344
|
// could not clear -- including one that never got past
|
|
303
345
|
// credential provisioning, e.g. a missing Azure DevOps PAT
|
|
@@ -307,6 +349,7 @@ export async function runPublishPrPhase({
|
|
|
307
349
|
// outcome (see ../abort.mjs). The branch is already pushed; only
|
|
308
350
|
// the PR itself is skipped.
|
|
309
351
|
log(`[Publish PR Skipped] could not raise a PR for branch '${validated.branch}' -> '${validated.baseBranch}' (branch is pushed) due to an unrecoverable VCS auth failure: ${prResult.error}`);
|
|
352
|
+
prSkipped = { reason: 'auth-failure', message: 'PR not opened: VCS auth failure' };
|
|
310
353
|
} else {
|
|
311
354
|
throw new CommandError(
|
|
312
355
|
`[Publish PR Failed] VCSModule create-pull-request failed for branch '${validated.branch}' -> '${validated.baseBranch}': ${prResult.error}`,
|
|
@@ -314,10 +357,14 @@ export async function runPublishPrPhase({
|
|
|
314
357
|
);
|
|
315
358
|
}
|
|
316
359
|
} else if (prResult.alreadyExists) {
|
|
317
|
-
|
|
360
|
+
if (prResult.updated) {
|
|
361
|
+
log(`Publish PR: a PR for branch '${validated.branch}' already exists -- updated its title and body to this run's verdict (${finalVerdictLabel})${prResult.prUrl ? `: ${prResult.prUrl}` : ''}.`);
|
|
362
|
+
} else {
|
|
363
|
+
log(`[Publish PR] WARNING: a PR for branch '${validated.branch}' already exists but could NOT be updated to this run's verdict (${finalVerdictLabel}) -- its title/body may still show an earlier run's verdict; update it by hand. Cause: ${prResult.updateError || '(unknown)'}`);
|
|
364
|
+
}
|
|
318
365
|
}
|
|
319
366
|
}
|
|
320
367
|
}
|
|
321
368
|
|
|
322
|
-
return { pushed: true };
|
|
369
|
+
return prSkipped ? { pushed: true, prSkipped } : { pushed: true };
|
|
323
370
|
}
|
|
@@ -70,10 +70,11 @@
|
|
|
70
70
|
// red instead of landing on an unguarded site.
|
|
71
71
|
// =============================================================================
|
|
72
72
|
|
|
73
|
-
import { applyGuardedReopens } from '../beads-transitions.mjs';
|
|
73
|
+
import { applyGuardedReopens, ensureRedBranchFixTask, isInGoalPriority } from '../beads-transitions.mjs';
|
|
74
74
|
import {
|
|
75
75
|
validateNewTask, appendRejectedFindingToParentNotes, persistNewTaskBestEffort,
|
|
76
76
|
} from '../abort.mjs';
|
|
77
|
+
import { applyReviewerDecision, reviewerReopenEntries } from '../decisions.mjs';
|
|
77
78
|
|
|
78
79
|
/**
|
|
79
80
|
* Runs the Re-Review phase: one fresh review of the CURRENT state, plus the
|
|
@@ -96,10 +97,13 @@ export async function runReReviewPhase({
|
|
|
96
97
|
cycle,
|
|
97
98
|
validated,
|
|
98
99
|
targetIssues,
|
|
99
|
-
|
|
100
|
+
backlogMember,
|
|
100
101
|
// The git/beads sync bracket this phase's post-mutation D-push goes
|
|
101
102
|
// through.
|
|
102
103
|
gitSync,
|
|
104
|
+
// Per-sprint resolved state (../sprint-state.mjs): a NEEDS-DECISION
|
|
105
|
+
// verdict records its pending decision and set-aside here.
|
|
106
|
+
sprintState,
|
|
103
107
|
// Mutated in place; never reassigned by this phase (see header).
|
|
104
108
|
rejectedNewTasks,
|
|
105
109
|
// Reassigned, so passed in and returned (see header).
|
|
@@ -111,6 +115,9 @@ export async function runReReviewPhase({
|
|
|
111
115
|
dispatchReview,
|
|
112
116
|
bdListScoped,
|
|
113
117
|
goalMax,
|
|
118
|
+
// Bead ids this sprint has dispatched or closed: a below-goal reopen of
|
|
119
|
+
// one of them is applied, not deferred (see isDeferredScopeReopen).
|
|
120
|
+
workedOnIds,
|
|
114
121
|
recordReopen,
|
|
115
122
|
childIdAllocator,
|
|
116
123
|
sprintMutexId,
|
|
@@ -142,6 +149,9 @@ export async function runReReviewPhase({
|
|
|
142
149
|
// verdict in; acceptanceCriteriaJson still carries the full scope
|
|
143
150
|
// for context.
|
|
144
151
|
const reReviewVerdict = await dispatchReview({ beadIds: targetIssues, acceptanceCriteriaJson: JSON.stringify(reReviewScope) });
|
|
152
|
+
// The re-review covers the whole sprint scope: a NEEDS-DECISION may name
|
|
153
|
+
// any bead in it.
|
|
154
|
+
const reReviewScopeIds = [...targetIssues, ...(Array.isArray(reReviewScope) ? reReviewScope.map((b) => b && b.id).filter(Boolean) : [])];
|
|
145
155
|
lastReviewVerdict = reReviewVerdict.verdict;
|
|
146
156
|
reviewedThisCycle = true;
|
|
147
157
|
|
|
@@ -158,10 +168,12 @@ export async function runReReviewPhase({
|
|
|
158
168
|
// DEFERRED bead named here is skipped with the identical
|
|
159
169
|
// "deferred scope, not reopened" outcome instead of being pulled
|
|
160
170
|
// back into a sprint that no longer targets it.
|
|
161
|
-
await applyGuardedReopens({
|
|
162
|
-
|
|
171
|
+
const reopenedIds = new Set(await applyGuardedReopens({
|
|
172
|
+
// reopenIds, plus a NEEDS-DECISION bead (../decisions.mjs).
|
|
173
|
+
entries: reviewerReopenEntries(reReviewVerdict, reReviewScopeIds),
|
|
163
174
|
bdListScoped, goalMax, goal: validated.goal, log, command,
|
|
164
|
-
member:
|
|
175
|
+
member: backlogMember,
|
|
176
|
+
workedOnIds,
|
|
165
177
|
logPrefix: 'Re-review reopenIds',
|
|
166
178
|
buildReopenCommand: ({ id }) => ({
|
|
167
179
|
cmd: `bd update ${id} --status=open`,
|
|
@@ -169,7 +181,16 @@ export async function runReReviewPhase({
|
|
|
169
181
|
}),
|
|
170
182
|
// Track per-bead reopen counts for reopen-thrash detection.
|
|
171
183
|
onReopened: ({ id }) => recordReopen(id),
|
|
184
|
+
}));
|
|
185
|
+
// A NEEDS-DECISION verdict: same handling as the per-round Review phase
|
|
186
|
+
// (../decisions.mjs); a closed bead was reopened just above through the
|
|
187
|
+
// same guarded reopen call (reviewerReopenEntries).
|
|
188
|
+
await applyReviewerDecision({
|
|
189
|
+
verdict: reReviewVerdict, scopeIds: reReviewScopeIds, reopenedIds,
|
|
190
|
+
sprintState, command, member: backlogMember, bdListScoped, cycle, round: null,
|
|
191
|
+
site: `Re-Review C${cycle}`, log,
|
|
172
192
|
});
|
|
193
|
+
let inGoalNewTaskCount = 0;
|
|
173
194
|
for (const newTask of reReviewVerdict.newTasks) {
|
|
174
195
|
const validation = validateNewTask(newTask);
|
|
175
196
|
if (!validation.ok) {
|
|
@@ -187,7 +208,7 @@ export async function runReReviewPhase({
|
|
|
187
208
|
// degrades to the run log).
|
|
188
209
|
try {
|
|
189
210
|
await appendRejectedFindingToParentNotes({
|
|
190
|
-
command, member:
|
|
211
|
+
command, member: backlogMember, parentId: targetIssues[0],
|
|
191
212
|
newTask, reason: validation.reason, cycle, log,
|
|
192
213
|
});
|
|
193
214
|
} catch (noteErr) {
|
|
@@ -205,12 +226,12 @@ export async function runReReviewPhase({
|
|
|
205
226
|
// site above -- concurrent sprints must never mint the same child
|
|
206
227
|
// id under a shared parent.
|
|
207
228
|
const persisted = await persistNewTaskBestEffort({
|
|
208
|
-
command, member:
|
|
229
|
+
command, member: backlogMember, parentId: targetIssues[0],
|
|
209
230
|
newTask, cycle, log, stage: 're-review',
|
|
210
231
|
createFn: async () => {
|
|
211
|
-
const floor = await computeChildFloor({ command, member:
|
|
232
|
+
const floor = await computeChildFloor({ command, member: backlogMember, parentId: targetIssues[0], log });
|
|
212
233
|
await createChildBeadWithAllocatedId({
|
|
213
|
-
command, allocator: childIdAllocator, member:
|
|
234
|
+
command, allocator: childIdAllocator, member: backlogMember,
|
|
214
235
|
title, description, priority, parentId: targetIssues[0],
|
|
215
236
|
sprintId: sprintMutexId, floor, log,
|
|
216
237
|
label: `Create follow-up task from re-review newTasks: ${title}`,
|
|
@@ -221,12 +242,39 @@ export async function runReReviewPhase({
|
|
|
221
242
|
// Develop/Review newTasks site above.
|
|
222
243
|
if (persisted) {
|
|
223
244
|
pendingRejectedNewTasks = clearResubmittedNewTask(pendingRejectedNewTasks, { title, description });
|
|
245
|
+
if (isInGoalPriority(priority, goalMax)) inGoalNewTaskCount += 1;
|
|
224
246
|
}
|
|
225
247
|
}
|
|
226
248
|
|
|
249
|
+
// Same red-branch rule as the per-round Review phase: a verdict reporting
|
|
250
|
+
// failing build/tests with no surviving reopen or in-goal newTask still
|
|
251
|
+
// leaves one in-goal fix task for the next cycle to dispatch.
|
|
252
|
+
await ensureRedBranchFixTask({
|
|
253
|
+
verdict: reReviewVerdict,
|
|
254
|
+
reopenedCount: reopenedIds.size,
|
|
255
|
+
inGoalNewTaskCount,
|
|
256
|
+
skippedReopenIds: (reReviewVerdict.reopenIds || []).filter((id) => typeof id === 'string' && !reopenedIds.has(id)),
|
|
257
|
+
goal: validated.goal,
|
|
258
|
+
site: `Re-Review C${cycle}`,
|
|
259
|
+
bdListScoped, log,
|
|
260
|
+
createTask: (task) => persistNewTaskBestEffort({
|
|
261
|
+
command, member: backlogMember, parentId: targetIssues[0],
|
|
262
|
+
newTask: task, cycle, log, stage: 're-review-red-branch',
|
|
263
|
+
createFn: async () => {
|
|
264
|
+
const floor = await computeChildFloor({ command, member: backlogMember, parentId: targetIssues[0], log });
|
|
265
|
+
return createChildBeadWithAllocatedId({
|
|
266
|
+
command, allocator: childIdAllocator, member: backlogMember,
|
|
267
|
+
title: task.title, description: task.description, priority: task.priority,
|
|
268
|
+
parentId: targetIssues[0], sprintId: sprintMutexId, floor, log,
|
|
269
|
+
label: `Create red-branch fix task: ${task.title}`,
|
|
270
|
+
});
|
|
271
|
+
},
|
|
272
|
+
}),
|
|
273
|
+
});
|
|
274
|
+
|
|
227
275
|
// D-push the orchestrator's applied re-review reopens/newTask
|
|
228
276
|
// creates, same as the Develop/Review transition site above.
|
|
229
|
-
await gitSync.syncBeadsAfter(
|
|
277
|
+
await gitSync.syncBeadsAfter(backlogMember, { pushBeads: true });
|
|
230
278
|
|
|
231
279
|
return { lastReviewVerdict, reviewedThisCycle, pendingRejectedNewTasks };
|
|
232
280
|
}
|
|
@@ -70,6 +70,7 @@
|
|
|
70
70
|
// =============================================================================
|
|
71
71
|
|
|
72
72
|
import { dispatchRole, TURN_BASES } from '../dispatch-role.mjs';
|
|
73
|
+
import { formatRegressionParts, formatRegressionHeadline, regressionVerdictOf } from '../sprint-report.mjs';
|
|
73
74
|
|
|
74
75
|
/**
|
|
75
76
|
* Runs the once-per-sprint Regression Test phase. Informational: its result
|
|
@@ -100,14 +101,14 @@ export async function runRegressionTestPhase({
|
|
|
100
101
|
phase(`Regression Test C${finalCycleLabel}`);
|
|
101
102
|
await ensureUnattendedAuto(getMemberForRole('regression-test-runner'));
|
|
102
103
|
await ensureDeployPermissions(getMemberForRole('regression-test-runner'));
|
|
103
|
-
//
|
|
104
|
-
//
|
|
105
|
-
//
|
|
106
|
-
// and the wider hard ceiling.
|
|
104
|
+
// What the pass consists of is the target playbook's to define; the
|
|
105
|
+
// engine assumes no structure. A target's pass can poll a long-running
|
|
106
|
+
// suite for most of an hour (~one turn per liveness poll) -- hence the
|
|
107
|
+
// large turn budget and the wider hard ceiling.
|
|
107
108
|
const regressionPrompt =
|
|
108
|
-
`Run the full regression pass
|
|
109
|
-
`
|
|
110
|
-
`
|
|
109
|
+
`Run the full regression pass exactly as regression-test-playbook.md at the repo root ` +
|
|
110
|
+
`defines it -- every part it lists, in its order -- and if the playbook defines a Teardown, ` +
|
|
111
|
+
`ALWAYS run it before returning, pass or fail. ` +
|
|
111
112
|
`File every failure you find as a STANDALONE bead: run bd create WITHOUT any --parent flag ` +
|
|
112
113
|
`and do NOT bd dep add it to any sprint bead, titled "[regression][carry-over] <description>". ` +
|
|
113
114
|
`Search bd for "[carry-over]" first and update an existing bead rather than filing a duplicate. ` +
|
|
@@ -155,18 +156,22 @@ export async function runRegressionTestPhase({
|
|
|
155
156
|
// dispatch's scope/filing rules -- a bare "continue" would lose the
|
|
156
157
|
// parent-less filing rule, which is the whole point of this phase.
|
|
157
158
|
resumePrompt:
|
|
158
|
-
'Continue the regression pass exactly where you left off in this same session -- do not restart the playbook or rebuild
|
|
159
|
+
'Continue the regression pass exactly where you left off in this same session -- do not restart the playbook or rebuild any environment it already brought up. Finish the remaining work, run the playbook\'s Teardown if it defines one, and return your final report now. ' +
|
|
159
160
|
'Your original instructions, restated so a resumed dispatch never loses them: ' + regressionPrompt,
|
|
160
161
|
roleLabel: 'Regression Test Runner',
|
|
161
162
|
resumeLabel: `Regression Test (resume, max_turns=${TURN_BASES.REGRESSION_TEST_MAX_TURNS * 2})`,
|
|
162
163
|
});
|
|
163
164
|
regressionResult = regressionOutcome.value;
|
|
164
165
|
// No duplicate log() dump -- see dispatchReview() for why. Only an
|
|
165
|
-
// explicit passed:true is treated as a green regression pass.
|
|
166
|
-
|
|
166
|
+
// explicit passed:true is treated as a green regression pass. A verdict
|
|
167
|
+
// copied from a verdict file outranks it, so INCONCLUSIVE never reads as
|
|
168
|
+
// a failure.
|
|
169
|
+
if (regressionVerdictOf(regressionResult)) {
|
|
170
|
+
log(`${formatRegressionHeadline(regressionResult)} (carry-over beads: ${(regressionResult.bugsFiled || []).join(', ') || 'none'}): ${regressionResult.summary}`);
|
|
171
|
+
} else if (regressionResult.passed !== true) {
|
|
167
172
|
log(`Regression pass reported FAILURES (carry-over beads: ${(regressionResult.bugsFiled || []).join(', ') || 'none'}): ${regressionResult.summary}`);
|
|
168
173
|
} else {
|
|
169
|
-
log(`Regression pass PASSED
|
|
174
|
+
log(`Regression pass PASSED${formatRegressionParts(regressionResult)}.`);
|
|
170
175
|
}
|
|
171
176
|
await updateDashboard();
|
|
172
177
|
|