@on-par/factory-core 0.9.38-next.3 → 0.9.38-next.30
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/dist/checkers/affected-tests.d.ts +0 -5
- package/dist/checkers/affected-tests.d.ts.map +1 -1
- package/dist/checkers/affected-tests.js +0 -6
- package/dist/checkers/affected-tests.js.map +1 -1
- package/dist/checkers/app-smoke.d.ts +0 -1
- package/dist/checkers/app-smoke.d.ts.map +1 -1
- package/dist/checkers/app-smoke.js +0 -1
- package/dist/checkers/app-smoke.js.map +1 -1
- package/dist/checkers/base-health.d.ts +0 -7
- package/dist/checkers/base-health.d.ts.map +1 -1
- package/dist/checkers/base-health.js +0 -7
- package/dist/checkers/base-health.js.map +1 -1
- package/dist/checkers/baseline-cache.d.ts +0 -8
- package/dist/checkers/baseline-cache.d.ts.map +1 -1
- package/dist/checkers/baseline-cache.js +0 -17
- package/dist/checkers/baseline-cache.js.map +1 -1
- package/dist/checkers/baseline.d.ts +0 -20
- package/dist/checkers/baseline.d.ts.map +1 -1
- package/dist/checkers/baseline.js +20 -28
- package/dist/checkers/baseline.js.map +1 -1
- package/dist/checkers/check-outcome.d.ts +0 -1
- package/dist/checkers/check-outcome.d.ts.map +1 -1
- package/dist/checkers/check-outcome.js +2 -3
- package/dist/checkers/check-outcome.js.map +1 -1
- package/dist/checkers/command-log.d.ts +0 -4
- package/dist/checkers/command-log.d.ts.map +1 -1
- package/dist/checkers/command-log.js +18 -18
- package/dist/checkers/command-log.js.map +1 -1
- package/dist/checkers/command-output.d.ts +0 -22
- package/dist/checkers/command-output.d.ts.map +1 -1
- package/dist/checkers/command-output.js +26 -43
- package/dist/checkers/command-output.js.map +1 -1
- package/dist/checkers/constitution-preflight.d.ts +0 -1
- package/dist/checkers/constitution-preflight.d.ts.map +1 -1
- package/dist/checkers/constitution-preflight.js +0 -4
- package/dist/checkers/constitution-preflight.js.map +1 -1
- package/dist/checkers/dependency-install.d.ts +0 -1
- package/dist/checkers/dependency-install.d.ts.map +1 -1
- package/dist/checkers/dependency-install.js +0 -4
- package/dist/checkers/dependency-install.js.map +1 -1
- package/dist/checkers/design-floor.d.ts +0 -4
- package/dist/checkers/design-floor.d.ts.map +1 -1
- package/dist/checkers/design-floor.js +0 -5
- package/dist/checkers/design-floor.js.map +1 -1
- package/dist/checkers/design-smells.d.ts +0 -21
- package/dist/checkers/design-smells.d.ts.map +1 -1
- package/dist/checkers/design-smells.js +6 -35
- package/dist/checkers/design-smells.js.map +1 -1
- package/dist/checkers/detect-checks.d.ts +0 -9
- package/dist/checkers/detect-checks.d.ts.map +1 -1
- package/dist/checkers/detect-checks.js +0 -17
- package/dist/checkers/detect-checks.js.map +1 -1
- package/dist/checkers/evidence-allowlist.d.ts.map +1 -1
- package/dist/checkers/evidence-allowlist.js +0 -1
- package/dist/checkers/evidence-allowlist.js.map +1 -1
- package/dist/checkers/evidence-plan.d.ts +0 -1
- package/dist/checkers/evidence-plan.d.ts.map +1 -1
- package/dist/checkers/evidence-plan.js +0 -1
- package/dist/checkers/evidence-plan.js.map +1 -1
- package/dist/checkers/evidence-selector.d.ts +0 -1
- package/dist/checkers/evidence-selector.d.ts.map +1 -1
- package/dist/checkers/evidence-selector.js +0 -1
- package/dist/checkers/evidence-selector.js.map +1 -1
- package/dist/checkers/evidence-workspace.d.ts +0 -6
- package/dist/checkers/evidence-workspace.d.ts.map +1 -1
- package/dist/checkers/evidence-workspace.js +0 -4
- package/dist/checkers/evidence-workspace.js.map +1 -1
- package/dist/checkers/flaky-ledger.d.ts +0 -7
- package/dist/checkers/flaky-ledger.d.ts.map +1 -1
- package/dist/checkers/flaky-ledger.js +0 -10
- package/dist/checkers/flaky-ledger.js.map +1 -1
- package/dist/checkers/flaky-rerun.d.ts +0 -5
- package/dist/checkers/flaky-rerun.d.ts.map +1 -1
- package/dist/checkers/flaky-rerun.js +0 -2
- package/dist/checkers/flaky-rerun.js.map +1 -1
- package/dist/checkers/inconclusive.d.ts +0 -8
- package/dist/checkers/inconclusive.d.ts.map +1 -1
- package/dist/checkers/inconclusive.js +5 -12
- package/dist/checkers/inconclusive.js.map +1 -1
- package/dist/checkers/index.d.ts +0 -38
- package/dist/checkers/index.d.ts.map +1 -1
- package/dist/checkers/index.js +26 -48
- package/dist/checkers/index.js.map +1 -1
- package/dist/checkers/internal-exports.d.ts.map +1 -1
- package/dist/checkers/internal-exports.js +0 -4
- package/dist/checkers/internal-exports.js.map +1 -1
- package/dist/checkers/lint-scope.d.ts +1 -11
- package/dist/checkers/lint-scope.d.ts.map +1 -1
- package/dist/checkers/lint-scope.js +4 -16
- package/dist/checkers/lint-scope.js.map +1 -1
- package/dist/checkers/probe.d.ts +0 -22
- package/dist/checkers/probe.d.ts.map +1 -1
- package/dist/checkers/probe.js +1 -18
- package/dist/checkers/probe.js.map +1 -1
- package/dist/checkers/resolve-commands.d.ts +0 -13
- package/dist/checkers/resolve-commands.d.ts.map +1 -1
- package/dist/checkers/resolve-commands.js +1 -10
- package/dist/checkers/resolve-commands.js.map +1 -1
- package/dist/checkers/rework-history.d.ts +0 -4
- package/dist/checkers/rework-history.d.ts.map +1 -1
- package/dist/checkers/rework-history.js +0 -24
- package/dist/checkers/rework-history.js.map +1 -1
- package/dist/checkers/run-command.d.ts +0 -5
- package/dist/checkers/run-command.d.ts.map +1 -1
- package/dist/checkers/run-command.js +0 -5
- package/dist/checkers/run-command.js.map +1 -1
- package/dist/checkers/side-effects.d.ts +0 -1
- package/dist/checkers/side-effects.d.ts.map +1 -1
- package/dist/checkers/side-effects.js.map +1 -1
- package/dist/checkers/triage.d.ts +0 -2
- package/dist/checkers/triage.d.ts.map +1 -1
- package/dist/checkers/triage.js +0 -3
- package/dist/checkers/triage.js.map +1 -1
- package/dist/checkers/visual-proof-attach.d.ts +0 -8
- package/dist/checkers/visual-proof-attach.d.ts.map +1 -1
- package/dist/checkers/visual-proof-attach.js +46 -26
- package/dist/checkers/visual-proof-attach.js.map +1 -1
- package/dist/checkers/visual-proof-manifest.d.ts +52 -0
- package/dist/checkers/visual-proof-manifest.d.ts.map +1 -0
- package/dist/checkers/visual-proof-manifest.js +216 -0
- package/dist/checkers/visual-proof-manifest.js.map +1 -0
- package/dist/checkers/visual-proof-png.d.ts +2 -0
- package/dist/checkers/visual-proof-png.d.ts.map +1 -0
- package/dist/checkers/visual-proof-png.js +56 -0
- package/dist/checkers/visual-proof-png.js.map +1 -0
- package/dist/checkers/visual-proof.d.ts +12 -37
- package/dist/checkers/visual-proof.d.ts.map +1 -1
- package/dist/checkers/visual-proof.js +96 -161
- package/dist/checkers/visual-proof.js.map +1 -1
- package/dist/config/example-nodes.d.ts +4 -0
- package/dist/config/example-nodes.d.ts.map +1 -0
- package/dist/config/example-nodes.js +13 -0
- package/dist/config/example-nodes.js.map +1 -0
- package/dist/config/example.d.ts +16 -0
- package/dist/config/example.d.ts.map +1 -1
- package/dist/config/example.js +5 -7
- package/dist/config/example.js.map +1 -1
- package/dist/config/github-section.d.ts +26 -0
- package/dist/config/github-section.d.ts.map +1 -0
- package/dist/config/github-section.js +24 -0
- package/dist/config/github-section.js.map +1 -0
- package/dist/config/index.d.ts +14 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +145 -116
- package/dist/config/index.js.map +1 -1
- package/dist/config/optional-sections.d.ts +17 -0
- package/dist/config/optional-sections.d.ts.map +1 -1
- package/dist/config/preview-section.js +1 -1
- package/dist/config/preview-section.js.map +1 -1
- package/dist/config/repo.d.ts +18 -1
- package/dist/config/repo.d.ts.map +1 -1
- package/dist/config/repo.js +4 -4
- package/dist/config/repo.js.map +1 -1
- package/dist/config/runtime-config-keys.d.ts.map +1 -1
- package/dist/config/runtime-config-keys.js +1 -0
- package/dist/config/runtime-config-keys.js.map +1 -1
- package/dist/config/visual-proof-section.d.ts +47 -0
- package/dist/config/visual-proof-section.d.ts.map +1 -1
- package/dist/config/visual-proof-section.js +43 -2
- package/dist/config/visual-proof-section.js.map +1 -1
- package/dist/daemon/execution-config.d.ts +17 -0
- package/dist/daemon/execution-config.d.ts.map +1 -1
- package/dist/daemon/run-runtime.d.ts +17 -0
- package/dist/daemon/run-runtime.d.ts.map +1 -1
- package/dist/events/config-traits.d.ts +1 -1
- package/dist/events/config-traits.d.ts.map +1 -1
- package/dist/events/config-traits.js +2 -0
- package/dist/events/config-traits.js.map +1 -1
- package/dist/filing/sanitize.js +1 -1
- package/dist/filing/sanitize.js.map +1 -1
- package/dist/github-scope/app-token.d.ts +13 -0
- package/dist/github-scope/app-token.d.ts.map +1 -0
- package/dist/github-scope/app-token.js +58 -0
- package/dist/github-scope/app-token.js.map +1 -0
- package/dist/github-scope/broker.d.ts +59 -0
- package/dist/github-scope/broker.d.ts.map +1 -0
- package/dist/github-scope/broker.js +145 -0
- package/dist/github-scope/broker.js.map +1 -0
- package/dist/github-scope/errors.d.ts +8 -0
- package/dist/github-scope/errors.d.ts.map +1 -0
- package/dist/github-scope/errors.js +17 -0
- package/dist/github-scope/errors.js.map +1 -0
- package/dist/github-scope/guard.d.ts +9 -0
- package/dist/github-scope/guard.d.ts.map +1 -0
- package/dist/github-scope/guard.js +97 -0
- package/dist/github-scope/guard.js.map +1 -0
- package/dist/github-scope/matrix.d.ts +15 -0
- package/dist/github-scope/matrix.d.ts.map +1 -0
- package/dist/github-scope/matrix.js +43 -0
- package/dist/github-scope/matrix.js.map +1 -0
- package/dist/github-scope/types.d.ts +16 -0
- package/dist/github-scope/types.d.ts.map +1 -0
- package/dist/github-scope/types.js +2 -0
- package/dist/github-scope/types.js.map +1 -0
- package/dist/harness/catalog.d.ts +0 -21
- package/dist/harness/catalog.d.ts.map +1 -1
- package/dist/harness/catalog.js +0 -15
- package/dist/harness/catalog.js.map +1 -1
- package/dist/harness/check.d.ts +0 -3
- package/dist/harness/check.d.ts.map +1 -1
- package/dist/harness/check.js +0 -9
- package/dist/harness/check.js.map +1 -1
- package/dist/harness/classify.d.ts +0 -2
- package/dist/harness/classify.d.ts.map +1 -1
- package/dist/harness/classify.js +0 -19
- package/dist/harness/classify.js.map +1 -1
- package/dist/harness/claude-cli.d.ts +0 -12
- package/dist/harness/claude-cli.d.ts.map +1 -1
- package/dist/harness/claude-cli.js +0 -14
- package/dist/harness/claude-cli.js.map +1 -1
- package/dist/harness/claude-error.d.ts +0 -5
- package/dist/harness/claude-error.d.ts.map +1 -1
- package/dist/harness/claude-error.js +1 -11
- package/dist/harness/claude-error.js.map +1 -1
- package/dist/harness/codex-cli.d.ts +0 -28
- package/dist/harness/codex-cli.d.ts.map +1 -1
- package/dist/harness/codex-cli.js +0 -31
- package/dist/harness/codex-cli.js.map +1 -1
- package/dist/harness/codex-context-ceiling.d.ts +0 -3
- package/dist/harness/codex-context-ceiling.d.ts.map +1 -1
- package/dist/harness/codex-context-ceiling.js +0 -3
- package/dist/harness/codex-context-ceiling.js.map +1 -1
- package/dist/harness/codex-error.d.ts +0 -5
- package/dist/harness/codex-error.d.ts.map +1 -1
- package/dist/harness/codex-error.js +1 -13
- package/dist/harness/codex-error.js.map +1 -1
- package/dist/harness/codex-live-usage.d.ts +0 -2
- package/dist/harness/codex-live-usage.d.ts.map +1 -1
- package/dist/harness/codex-live-usage.js +0 -2
- package/dist/harness/codex-live-usage.js.map +1 -1
- package/dist/harness/codex-policy.d.ts +0 -4
- package/dist/harness/codex-policy.d.ts.map +1 -1
- package/dist/harness/codex-policy.js +0 -5
- package/dist/harness/codex-policy.js.map +1 -1
- package/dist/harness/command.d.ts +0 -20
- package/dist/harness/command.d.ts.map +1 -1
- package/dist/harness/command.js +0 -23
- package/dist/harness/command.js.map +1 -1
- package/dist/harness/contract.d.ts +0 -8
- package/dist/harness/contract.d.ts.map +1 -1
- package/dist/harness/contract.js +0 -3
- package/dist/harness/contract.js.map +1 -1
- package/dist/harness/index.d.ts +0 -59
- package/dist/harness/index.d.ts.map +1 -1
- package/dist/harness/index.js +0 -11
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/injection-fixtures.d.ts +0 -10
- package/dist/harness/injection-fixtures.d.ts.map +1 -1
- package/dist/harness/injection-fixtures.js +0 -7
- package/dist/harness/injection-fixtures.js.map +1 -1
- package/dist/harness/ollama-agentic.d.ts +0 -9
- package/dist/harness/ollama-agentic.d.ts.map +1 -1
- package/dist/harness/ollama-agentic.js +0 -16
- package/dist/harness/ollama-agentic.js.map +1 -1
- package/dist/harness/ollama-http.d.ts +0 -5
- package/dist/harness/ollama-http.d.ts.map +1 -1
- package/dist/harness/ollama-http.js +0 -4
- package/dist/harness/ollama-http.js.map +1 -1
- package/dist/harness/opencode-attempt.d.ts +0 -5
- package/dist/harness/opencode-attempt.d.ts.map +1 -1
- package/dist/harness/opencode-attempt.js +0 -6
- package/dist/harness/opencode-attempt.js.map +1 -1
- package/dist/harness/opencode-error.d.ts +0 -4
- package/dist/harness/opencode-error.d.ts.map +1 -1
- package/dist/harness/opencode-error.js +0 -7
- package/dist/harness/opencode-error.js.map +1 -1
- package/dist/harness/opencode-version.d.ts +0 -5
- package/dist/harness/opencode-version.d.ts.map +1 -1
- package/dist/harness/opencode-version.js +0 -6
- package/dist/harness/opencode-version.js.map +1 -1
- package/dist/harness/opencode.d.ts +0 -33
- package/dist/harness/opencode.d.ts.map +1 -1
- package/dist/harness/opencode.js +0 -51
- package/dist/harness/opencode.js.map +1 -1
- package/dist/harness/pi.d.ts +0 -12
- package/dist/harness/pi.d.ts.map +1 -1
- package/dist/harness/pi.js +0 -18
- package/dist/harness/pi.js.map +1 -1
- package/dist/harness/provider-failure.d.ts +0 -9
- package/dist/harness/provider-failure.d.ts.map +1 -1
- package/dist/harness/provider-failure.js +0 -10
- package/dist/harness/provider-failure.js.map +1 -1
- package/dist/harness/stall-watch.d.ts +0 -10
- package/dist/harness/stall-watch.d.ts.map +1 -1
- package/dist/harness/stall-watch.js +0 -10
- package/dist/harness/stall-watch.js.map +1 -1
- package/dist/harness/stub.d.ts +0 -1
- package/dist/harness/stub.d.ts.map +1 -1
- package/dist/harness/stub.js.map +1 -1
- package/dist/harness/temp-dir.d.ts +0 -3
- package/dist/harness/temp-dir.d.ts.map +1 -1
- package/dist/harness/temp-dir.js +0 -1
- package/dist/harness/temp-dir.js.map +1 -1
- package/dist/hosted/github-authority.d.ts +3 -0
- package/dist/hosted/github-authority.d.ts.map +1 -1
- package/dist/hosted/github-authority.js +3 -0
- package/dist/hosted/github-authority.js.map +1 -1
- package/dist/internal.d.ts +10 -7
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +7 -4
- package/dist/internal.js.map +1 -1
- package/dist/phases/build-lint-rules.d.ts +0 -4
- package/dist/phases/build-lint-rules.d.ts.map +1 -1
- package/dist/phases/build-lint-rules.js +0 -8
- package/dist/phases/build-lint-rules.js.map +1 -1
- package/dist/phases/build-no-diff.d.ts.map +1 -1
- package/dist/phases/build-no-diff.js +0 -2
- package/dist/phases/build-no-diff.js.map +1 -1
- package/dist/phases/build-opencode-failover.d.ts +0 -12
- package/dist/phases/build-opencode-failover.d.ts.map +1 -1
- package/dist/phases/build-opencode-failover.js +0 -13
- package/dist/phases/build-opencode-failover.js.map +1 -1
- package/dist/phases/build-prompts.d.ts +0 -4
- package/dist/phases/build-prompts.d.ts.map +1 -1
- package/dist/phases/build-prompts.js +0 -5
- package/dist/phases/build-prompts.js.map +1 -1
- package/dist/phases/build.d.ts +0 -31
- package/dist/phases/build.d.ts.map +1 -1
- package/dist/phases/build.js +0 -18
- package/dist/phases/build.js.map +1 -1
- package/dist/phases/check-affected.d.ts +0 -4
- package/dist/phases/check-affected.d.ts.map +1 -1
- package/dist/phases/check-affected.js +0 -5
- package/dist/phases/check-affected.js.map +1 -1
- package/dist/phases/check-baseline.d.ts +0 -2
- package/dist/phases/check-baseline.d.ts.map +1 -1
- package/dist/phases/check-baseline.js +0 -3
- package/dist/phases/check-baseline.js.map +1 -1
- package/dist/phases/check-environment.d.ts +0 -3
- package/dist/phases/check-environment.d.ts.map +1 -1
- package/dist/phases/check-environment.js +0 -3
- package/dist/phases/check-environment.js.map +1 -1
- package/dist/phases/check-evidence.d.ts +0 -1
- package/dist/phases/check-evidence.d.ts.map +1 -1
- package/dist/phases/check-evidence.js +0 -1
- package/dist/phases/check-evidence.js.map +1 -1
- package/dist/phases/check-infra-triage.d.ts +0 -6
- package/dist/phases/check-infra-triage.d.ts.map +1 -1
- package/dist/phases/check-infra-triage.js +0 -6
- package/dist/phases/check-infra-triage.js.map +1 -1
- package/dist/phases/check-showstoppers.d.ts +0 -3
- package/dist/phases/check-showstoppers.d.ts.map +1 -1
- package/dist/phases/check-showstoppers.js +0 -5
- package/dist/phases/check-showstoppers.js.map +1 -1
- package/dist/phases/check-signature.d.ts +0 -1
- package/dist/phases/check-signature.d.ts.map +1 -1
- package/dist/phases/check-signature.js +0 -3
- package/dist/phases/check-signature.js.map +1 -1
- package/dist/phases/check.d.ts +0 -55
- package/dist/phases/check.d.ts.map +1 -1
- package/dist/phases/check.js +0 -34
- package/dist/phases/check.js.map +1 -1
- package/dist/phases/environment-release.d.ts +0 -1
- package/dist/phases/environment-release.d.ts.map +1 -1
- package/dist/phases/environment-release.js +0 -1
- package/dist/phases/environment-release.js.map +1 -1
- package/dist/phases/plan-design-retry.d.ts +0 -4
- package/dist/phases/plan-design-retry.d.ts.map +1 -1
- package/dist/phases/plan-design-retry.js +0 -5
- package/dist/phases/plan-design-retry.js.map +1 -1
- package/dist/phases/plan-escalation.d.ts +0 -1
- package/dist/phases/plan-escalation.d.ts.map +1 -1
- package/dist/phases/plan-escalation.js +0 -2
- package/dist/phases/plan-escalation.js.map +1 -1
- package/dist/phases/plan-result.d.ts +0 -6
- package/dist/phases/plan-result.d.ts.map +1 -1
- package/dist/phases/plan-route.d.ts +0 -3
- package/dist/phases/plan-route.d.ts.map +1 -1
- package/dist/phases/plan-route.js +0 -5
- package/dist/phases/plan-route.js.map +1 -1
- package/dist/phases/plan-routes.d.ts +0 -14
- package/dist/phases/plan-routes.d.ts.map +1 -1
- package/dist/phases/plan-routes.js +0 -15
- package/dist/phases/plan-routes.js.map +1 -1
- package/dist/phases/plan-spec-guards.d.ts +0 -4
- package/dist/phases/plan-spec-guards.d.ts.map +1 -1
- package/dist/phases/plan-spec-guards.js +0 -4
- package/dist/phases/plan-spec-guards.js.map +1 -1
- package/dist/phases/plan-spec-validity.d.ts +0 -1
- package/dist/phases/plan-spec-validity.d.ts.map +1 -1
- package/dist/phases/plan-spec-validity.js +0 -4
- package/dist/phases/plan-spec-validity.js.map +1 -1
- package/dist/phases/plan-steps.d.ts.map +1 -1
- package/dist/phases/plan-steps.js +0 -2
- package/dist/phases/plan-steps.js.map +1 -1
- package/dist/phases/plan.d.ts +0 -23
- package/dist/phases/plan.d.ts.map +1 -1
- package/dist/phases/plan.js +3 -21
- package/dist/phases/plan.js.map +1 -1
- package/dist/phases/route-capabilities.d.ts +0 -3
- package/dist/phases/route-capabilities.d.ts.map +1 -1
- package/dist/phases/route-capabilities.js +0 -2
- package/dist/phases/route-capabilities.js.map +1 -1
- package/dist/phases/ship-approval.d.ts.map +1 -1
- package/dist/phases/ship-approval.js +0 -4
- package/dist/phases/ship-approval.js.map +1 -1
- package/dist/phases/ship-branch-push.d.ts.map +1 -1
- package/dist/phases/ship-branch-push.js +0 -10
- package/dist/phases/ship-branch-push.js.map +1 -1
- package/dist/phases/ship-diff-stat.d.ts +0 -2
- package/dist/phases/ship-diff-stat.d.ts.map +1 -1
- package/dist/phases/ship-diff-stat.js +0 -3
- package/dist/phases/ship-diff-stat.js.map +1 -1
- package/dist/phases/ship-evidence-comment.d.ts +0 -1
- package/dist/phases/ship-evidence-comment.d.ts.map +1 -1
- package/dist/phases/ship-evidence-comment.js +0 -1
- package/dist/phases/ship-evidence-comment.js.map +1 -1
- package/dist/phases/ship-existing-pr.d.ts.map +1 -1
- package/dist/phases/ship-existing-pr.js +0 -2
- package/dist/phases/ship-existing-pr.js.map +1 -1
- package/dist/phases/ship-finish.d.ts.map +1 -1
- package/dist/phases/ship-finish.js +3 -4
- package/dist/phases/ship-finish.js.map +1 -1
- package/dist/phases/ship-git-detail.d.ts +0 -9
- package/dist/phases/ship-git-detail.d.ts.map +1 -1
- package/dist/phases/ship-git-detail.js +2 -13
- package/dist/phases/ship-git-detail.js.map +1 -1
- package/dist/phases/ship-git-remote.d.ts +0 -8
- package/dist/phases/ship-git-remote.d.ts.map +1 -1
- package/dist/phases/ship-git-remote.js +0 -10
- package/dist/phases/ship-git-remote.js.map +1 -1
- package/dist/phases/ship-git.d.ts +0 -1
- package/dist/phases/ship-git.d.ts.map +1 -1
- package/dist/phases/ship-git.js +0 -2
- package/dist/phases/ship-git.js.map +1 -1
- package/dist/phases/ship-leftover.d.ts +0 -6
- package/dist/phases/ship-leftover.d.ts.map +1 -1
- package/dist/phases/ship-leftover.js +0 -6
- package/dist/phases/ship-leftover.js.map +1 -1
- package/dist/phases/ship-main-sync.d.ts +0 -5
- package/dist/phases/ship-main-sync.d.ts.map +1 -1
- package/dist/phases/ship-main-sync.js +0 -11
- package/dist/phases/ship-main-sync.js.map +1 -1
- package/dist/phases/ship-open-pr.d.ts.map +1 -1
- package/dist/phases/ship-open-pr.js +0 -5
- package/dist/phases/ship-open-pr.js.map +1 -1
- package/dist/phases/ship-options.d.ts +0 -22
- package/dist/phases/ship-options.d.ts.map +1 -1
- package/dist/phases/ship-options.js +0 -2
- package/dist/phases/ship-options.js.map +1 -1
- package/dist/phases/ship-pr-lookup.d.ts +0 -2
- package/dist/phases/ship-pr-lookup.d.ts.map +1 -1
- package/dist/phases/ship-pr-lookup.js +0 -2
- package/dist/phases/ship-pr-lookup.js.map +1 -1
- package/dist/phases/ship-ready.d.ts +0 -1
- package/dist/phases/ship-ready.d.ts.map +1 -1
- package/dist/phases/ship-ready.js +2 -3
- package/dist/phases/ship-ready.js.map +1 -1
- package/dist/phases/ship-reentry.d.ts.map +1 -1
- package/dist/phases/ship-reentry.js +0 -1
- package/dist/phases/ship-reentry.js.map +1 -1
- package/dist/phases/ship-spec.d.ts +0 -2
- package/dist/phases/ship-spec.d.ts.map +1 -1
- package/dist/phases/ship-spec.js +0 -3
- package/dist/phases/ship-spec.js.map +1 -1
- package/dist/phases/ship-types.d.ts +0 -12
- package/dist/phases/ship-types.d.ts.map +1 -1
- package/dist/phases/ship-visual-proof.d.ts +0 -1
- package/dist/phases/ship-visual-proof.d.ts.map +1 -1
- package/dist/phases/ship-visual-proof.js +0 -3
- package/dist/phases/ship-visual-proof.js.map +1 -1
- package/dist/phases/ship-walkthrough.d.ts +0 -3
- package/dist/phases/ship-walkthrough.d.ts.map +1 -1
- package/dist/phases/ship-walkthrough.js +23 -23
- package/dist/phases/ship-walkthrough.js.map +1 -1
- package/dist/phases/ship.d.ts.map +1 -1
- package/dist/phases/ship.js +0 -3
- package/dist/phases/ship.js.map +1 -1
- package/dist/phases/stack-approval.d.ts +0 -9
- package/dist/phases/stack-approval.d.ts.map +1 -1
- package/dist/phases/stack-approval.js +0 -4
- package/dist/phases/stack-approval.js.map +1 -1
- package/dist/phases/stack-order.d.ts +0 -8
- package/dist/phases/stack-order.d.ts.map +1 -1
- package/dist/phases/stack-order.js +0 -6
- package/dist/phases/stack-order.js.map +1 -1
- package/dist/phases/stack-review-change.d.ts +0 -7
- package/dist/phases/stack-review-change.d.ts.map +1 -1
- package/dist/phases/stack-review-change.js +0 -4
- package/dist/phases/stack-review-change.js.map +1 -1
- package/dist/public-api-keys.d.ts +1 -0
- package/dist/public-api-keys.d.ts.map +1 -1
- package/dist/public-api-keys.js +1 -0
- package/dist/public-api-keys.js.map +1 -1
- package/dist/queue/internal-exports.d.ts +4 -6
- package/dist/queue/internal-exports.d.ts.map +1 -1
- package/dist/queue/internal-exports.js +4 -4
- package/dist/queue/internal-exports.js.map +1 -1
- package/dist/run/adopt-pr.d.ts +0 -5
- package/dist/run/adopt-pr.d.ts.map +1 -1
- package/dist/run/adopt-pr.js +0 -5
- package/dist/run/adopt-pr.js.map +1 -1
- package/dist/run/attribution.d.ts.map +1 -1
- package/dist/run/attribution.js +0 -1
- package/dist/run/attribution.js.map +1 -1
- package/dist/run/budget.d.ts +0 -6
- package/dist/run/budget.d.ts.map +1 -1
- package/dist/run/budget.js +0 -5
- package/dist/run/budget.js.map +1 -1
- package/dist/run/check-verdict.d.ts.map +1 -1
- package/dist/run/check-verdict.js +0 -1
- package/dist/run/check-verdict.js.map +1 -1
- package/dist/run/ci-failure-note.d.ts +0 -4
- package/dist/run/ci-failure-note.d.ts.map +1 -1
- package/dist/run/ci-failure-note.js +0 -6
- package/dist/run/ci-failure-note.js.map +1 -1
- package/dist/run/ci-rework-loop.d.ts +0 -29
- package/dist/run/ci-rework-loop.d.ts.map +1 -1
- package/dist/run/ci-rework-loop.js +37 -40
- package/dist/run/ci-rework-loop.js.map +1 -1
- package/dist/run/ci-rework.d.ts +0 -16
- package/dist/run/ci-rework.d.ts.map +1 -1
- package/dist/run/ci-rework.js +0 -15
- package/dist/run/ci-rework.js.map +1 -1
- package/dist/run/ci-suppression-guard.d.ts +0 -11
- package/dist/run/ci-suppression-guard.d.ts.map +1 -1
- package/dist/run/ci-suppression-guard.js +1 -17
- package/dist/run/ci-suppression-guard.js.map +1 -1
- package/dist/run/design-checkpoint.d.ts +0 -7
- package/dist/run/design-checkpoint.d.ts.map +1 -1
- package/dist/run/design-checkpoint.js +0 -8
- package/dist/run/design-checkpoint.js.map +1 -1
- package/dist/run/feedback-github.d.ts.map +1 -1
- package/dist/run/feedback-github.js.map +1 -1
- package/dist/run/feedback-round-hooks.d.ts +0 -6
- package/dist/run/feedback-round-hooks.d.ts.map +1 -1
- package/dist/run/feedback-round-hooks.js +0 -7
- package/dist/run/feedback-round-hooks.js.map +1 -1
- package/dist/run/feedback-round.d.ts +0 -8
- package/dist/run/feedback-round.d.ts.map +1 -1
- package/dist/run/feedback-round.js +1 -10
- package/dist/run/feedback-round.js.map +1 -1
- package/dist/run/flaky-tests.d.ts +0 -3
- package/dist/run/flaky-tests.d.ts.map +1 -1
- package/dist/run/flaky-tests.js +0 -3
- package/dist/run/flaky-tests.js.map +1 -1
- package/dist/run/lane-file-guard.d.ts +0 -35
- package/dist/run/lane-file-guard.d.ts.map +1 -1
- package/dist/run/lane-file-guard.js +0 -40
- package/dist/run/lane-file-guard.js.map +1 -1
- package/dist/run/lane-install.d.ts +0 -3
- package/dist/run/lane-install.d.ts.map +1 -1
- package/dist/run/lane-install.js +0 -2
- package/dist/run/lane-install.js.map +1 -1
- package/dist/run/linear-run.d.ts +0 -5
- package/dist/run/linear-run.d.ts.map +1 -1
- package/dist/run/linear-run.js +0 -2
- package/dist/run/linear-run.js.map +1 -1
- package/dist/run/local-finish.d.ts +0 -2
- package/dist/run/local-finish.d.ts.map +1 -1
- package/dist/run/local-finish.js +0 -4
- package/dist/run/local-finish.js.map +1 -1
- package/dist/run/max-lines-override.d.ts +0 -4
- package/dist/run/max-lines-override.d.ts.map +1 -1
- package/dist/run/max-lines-override.js +2 -5
- package/dist/run/max-lines-override.js.map +1 -1
- package/dist/run/outcome.d.ts +0 -36
- package/dist/run/outcome.d.ts.map +1 -1
- package/dist/run/outcome.js +0 -11
- package/dist/run/outcome.js.map +1 -1
- package/dist/run/park-comment.d.ts +0 -14
- package/dist/run/park-comment.d.ts.map +1 -1
- package/dist/run/park-comment.js +0 -15
- package/dist/run/park-comment.js.map +1 -1
- package/dist/run/park-pr.d.ts +0 -2
- package/dist/run/park-pr.d.ts.map +1 -1
- package/dist/run/park-pr.js +0 -3
- package/dist/run/park-pr.js.map +1 -1
- package/dist/run/park-steward.d.ts +0 -2
- package/dist/run/park-steward.d.ts.map +1 -1
- package/dist/run/park-steward.js +0 -3
- package/dist/run/park-steward.js.map +1 -1
- package/dist/run/phase-snapshot.d.ts +0 -25
- package/dist/run/phase-snapshot.d.ts.map +1 -1
- package/dist/run/phase-snapshot.js +0 -28
- package/dist/run/phase-snapshot.js.map +1 -1
- package/dist/run/plan-reuse-load.d.ts +0 -1
- package/dist/run/plan-reuse-load.d.ts.map +1 -1
- package/dist/run/plan-reuse-load.js +0 -2
- package/dist/run/plan-reuse-load.js.map +1 -1
- package/dist/run/policy.d.ts +0 -14
- package/dist/run/policy.d.ts.map +1 -1
- package/dist/run/ports.d.ts +0 -29
- package/dist/run/ports.d.ts.map +1 -1
- package/dist/run/ports.js +0 -19
- package/dist/run/ports.js.map +1 -1
- package/dist/run/pr-frozen-spec.d.ts +0 -5
- package/dist/run/pr-frozen-spec.d.ts.map +1 -1
- package/dist/run/pr-frozen-spec.js +0 -4
- package/dist/run/pr-frozen-spec.js.map +1 -1
- package/dist/run/pr-lookup.d.ts +0 -9
- package/dist/run/pr-lookup.d.ts.map +1 -1
- package/dist/run/pr-lookup.js +0 -7
- package/dist/run/pr-lookup.js.map +1 -1
- package/dist/run/pr-run-state.d.ts +0 -14
- package/dist/run/pr-run-state.d.ts.map +1 -1
- package/dist/run/pr-run-state.js +0 -19
- package/dist/run/pr-run-state.js.map +1 -1
- package/dist/run/prerequisite-restack.d.ts +0 -8
- package/dist/run/prerequisite-restack.d.ts.map +1 -1
- package/dist/run/prerequisite-restack.js +0 -3
- package/dist/run/prerequisite-restack.js.map +1 -1
- package/dist/run/previous-attempt.d.ts +0 -1
- package/dist/run/previous-attempt.d.ts.map +1 -1
- package/dist/run/previous-attempt.js +0 -3
- package/dist/run/previous-attempt.js.map +1 -1
- package/dist/run/provider-breaker-gate.d.ts +0 -22
- package/dist/run/provider-breaker-gate.d.ts.map +1 -1
- package/dist/run/provider-breaker-gate.js +0 -21
- package/dist/run/provider-breaker-gate.js.map +1 -1
- package/dist/run/provider-failure-recorder.d.ts +0 -5
- package/dist/run/provider-failure-recorder.d.ts.map +1 -1
- package/dist/run/provider-failure-recorder.js +5 -6
- package/dist/run/provider-failure-recorder.js.map +1 -1
- package/dist/run/provider-order-stages.d.ts +0 -10
- package/dist/run/provider-order-stages.d.ts.map +1 -1
- package/dist/run/provider-order-stages.js +0 -14
- package/dist/run/provider-order-stages.js.map +1 -1
- package/dist/run/provider-probe.d.ts +0 -8
- package/dist/run/provider-probe.d.ts.map +1 -1
- package/dist/run/provider-probe.js +0 -8
- package/dist/run/provider-probe.js.map +1 -1
- package/dist/run/resume-context.d.ts +0 -21
- package/dist/run/resume-context.d.ts.map +1 -1
- package/dist/run/resume-context.js +0 -13
- package/dist/run/resume-context.js.map +1 -1
- package/dist/run/review-rework-cap.d.ts +0 -1
- package/dist/run/review-rework-cap.d.ts.map +1 -1
- package/dist/run/review-rework-cap.js +0 -2
- package/dist/run/review-rework-cap.js.map +1 -1
- package/dist/run/review-rework.d.ts +0 -12
- package/dist/run/review-rework.d.ts.map +1 -1
- package/dist/run/review-rework.js +0 -8
- package/dist/run/review-rework.js.map +1 -1
- package/dist/run/route-sync.d.ts +0 -4
- package/dist/run/route-sync.d.ts.map +1 -1
- package/dist/run/route-sync.js +0 -5
- package/dist/run/route-sync.js.map +1 -1
- package/dist/run/run-issue.d.ts +0 -76
- package/dist/run/run-issue.d.ts.map +1 -1
- package/dist/run/run-issue.js +21 -62
- package/dist/run/run-issue.js.map +1 -1
- package/dist/run/run-phase-log.d.ts.map +1 -1
- package/dist/run/run-phase-log.js +0 -1
- package/dist/run/run-phase-log.js.map +1 -1
- package/dist/run/run-report-info.d.ts.map +1 -1
- package/dist/run/run-report-info.js +0 -1
- package/dist/run/run-report-info.js.map +1 -1
- package/dist/run/run-state-record.d.ts +0 -4
- package/dist/run/run-state-record.d.ts.map +1 -1
- package/dist/run/run-state-record.js +0 -5
- package/dist/run/run-state-record.js.map +1 -1
- package/dist/run/shadow-fallback.d.ts +0 -1
- package/dist/run/shadow-fallback.d.ts.map +1 -1
- package/dist/run/shadow-fallback.js +0 -1
- package/dist/run/shadow-fallback.js.map +1 -1
- package/dist/run/ship-park.d.ts +0 -2
- package/dist/run/ship-park.d.ts.map +1 -1
- package/dist/run/ship-park.js +0 -3
- package/dist/run/ship-park.js.map +1 -1
- package/dist/run/slice-ship-record.d.ts +0 -7
- package/dist/run/slice-ship-record.d.ts.map +1 -1
- package/dist/run/slice-ship-record.js +0 -9
- package/dist/run/slice-ship-record.js.map +1 -1
- package/dist/run/stack-engine.d.ts +0 -8
- package/dist/run/stack-engine.d.ts.map +1 -1
- package/dist/run/stack-engine.js +0 -4
- package/dist/run/stack-engine.js.map +1 -1
- package/dist/run/stack-rebase.d.ts +0 -4
- package/dist/run/stack-rebase.d.ts.map +1 -1
- package/dist/run/stack-rebase.js +9 -10
- package/dist/run/stack-rebase.js.map +1 -1
- package/dist/run/stack-restack.d.ts +0 -8
- package/dist/run/stack-restack.d.ts.map +1 -1
- package/dist/run/stack-restack.js +15 -14
- package/dist/run/stack-restack.js.map +1 -1
- package/dist/run/stack-slice-branch.d.ts +0 -1
- package/dist/run/stack-slice-branch.d.ts.map +1 -1
- package/dist/run/stack-slice-branch.js +0 -2
- package/dist/run/stack-slice-branch.js.map +1 -1
- package/dist/run/stack-slice-entry.d.ts +0 -2
- package/dist/run/stack-slice-entry.d.ts.map +1 -1
- package/dist/run/stack-slice-entry.js +0 -3
- package/dist/run/stack-slice-entry.js.map +1 -1
- package/dist/run/stage-blocked.d.ts +0 -31
- package/dist/run/stage-blocked.d.ts.map +1 -1
- package/dist/run/stage-blocked.js +4 -26
- package/dist/run/stage-blocked.js.map +1 -1
- package/dist/run/state.d.ts +0 -26
- package/dist/run/state.d.ts.map +1 -1
- package/dist/run/state.js +1 -33
- package/dist/run/state.js.map +1 -1
- package/dist/run/steer.d.ts +0 -16
- package/dist/run/steer.d.ts.map +1 -1
- package/dist/run/steer.js +0 -13
- package/dist/run/steer.js.map +1 -1
- package/dist/run/terminal-events.d.ts +0 -1
- package/dist/run/terminal-events.d.ts.map +1 -1
- package/dist/run/terminal-events.js +0 -2
- package/dist/run/terminal-events.js.map +1 -1
- package/dist/run/trust-tier-log.d.ts +0 -1
- package/dist/run/trust-tier-log.d.ts.map +1 -1
- package/dist/run/trust-tier-log.js +0 -1
- package/dist/run/trust-tier-log.js.map +1 -1
- package/dist/utils/awaiting-ci.d.ts +0 -5
- package/dist/utils/awaiting-ci.d.ts.map +1 -1
- package/dist/utils/awaiting-ci.js +0 -5
- package/dist/utils/awaiting-ci.js.map +1 -1
- package/dist/utils/branch-slug.d.ts +0 -1
- package/dist/utils/branch-slug.d.ts.map +1 -1
- package/dist/utils/branch-slug.js +4 -8
- package/dist/utils/branch-slug.js.map +1 -1
- package/dist/utils/ci-deadline.d.ts +1 -2
- package/dist/utils/ci-deadline.d.ts.map +1 -1
- package/dist/utils/ci-deadline.js +1 -2
- package/dist/utils/ci-deadline.js.map +1 -1
- package/dist/utils/ci-evidence.d.ts +0 -11
- package/dist/utils/ci-evidence.d.ts.map +1 -1
- package/dist/utils/ci-evidence.js +0 -12
- package/dist/utils/ci-evidence.js.map +1 -1
- package/dist/utils/ci-watch-no-ci.d.ts +0 -4
- package/dist/utils/ci-watch-no-ci.d.ts.map +1 -1
- package/dist/utils/ci-watch-no-ci.js +0 -4
- package/dist/utils/ci-watch-no-ci.js.map +1 -1
- package/dist/utils/ci-watch-required.d.ts +0 -3
- package/dist/utils/ci-watch-required.d.ts.map +1 -1
- package/dist/utils/ci-watch-required.js +1 -6
- package/dist/utils/ci-watch-required.js.map +1 -1
- package/dist/utils/ci-watch.d.ts +0 -75
- package/dist/utils/ci-watch.d.ts.map +1 -1
- package/dist/utils/ci-watch.js +7 -54
- package/dist/utils/ci-watch.js.map +1 -1
- package/dist/utils/claude-config.d.ts +0 -30
- package/dist/utils/claude-config.d.ts.map +1 -1
- package/dist/utils/claude-config.js +20 -49
- package/dist/utils/claude-config.js.map +1 -1
- package/dist/utils/codex-config.d.ts +0 -20
- package/dist/utils/codex-config.d.ts.map +1 -1
- package/dist/utils/codex-config.js +0 -12
- package/dist/utils/codex-config.js.map +1 -1
- package/dist/utils/command-runner.d.ts +0 -20
- package/dist/utils/command-runner.d.ts.map +1 -1
- package/dist/utils/command-runner.js +1 -15
- package/dist/utils/command-runner.js.map +1 -1
- package/dist/utils/cost-log.d.ts.map +1 -1
- package/dist/utils/cost-log.js +0 -1
- package/dist/utils/cost-log.js.map +1 -1
- package/dist/utils/coverage-ratchet.d.ts.map +1 -1
- package/dist/utils/coverage-ratchet.js +0 -1
- package/dist/utils/coverage-ratchet.js.map +1 -1
- package/dist/utils/escalation.d.ts +0 -6
- package/dist/utils/escalation.d.ts.map +1 -1
- package/dist/utils/escalation.js +0 -7
- package/dist/utils/escalation.js.map +1 -1
- package/dist/utils/exec.d.ts +0 -24
- package/dist/utils/exec.d.ts.map +1 -1
- package/dist/utils/exec.js +1 -32
- package/dist/utils/exec.js.map +1 -1
- package/dist/utils/format.d.ts +0 -1
- package/dist/utils/format.d.ts.map +1 -1
- package/dist/utils/format.js +0 -7
- package/dist/utils/format.js.map +1 -1
- package/dist/utils/git-exec.d.ts +0 -20
- package/dist/utils/git-exec.d.ts.map +1 -1
- package/dist/utils/git-exec.js +0 -20
- package/dist/utils/git-exec.js.map +1 -1
- package/dist/utils/github-credentials.d.ts +0 -16
- package/dist/utils/github-credentials.d.ts.map +1 -1
- package/dist/utils/github-credentials.js +5 -35
- package/dist/utils/github-credentials.js.map +1 -1
- package/dist/utils/github-identity.d.ts +0 -5
- package/dist/utils/github-identity.d.ts.map +1 -1
- package/dist/utils/github-identity.js +0 -19
- package/dist/utils/github-identity.js.map +1 -1
- package/dist/utils/green-prs.d.ts +0 -10
- package/dist/utils/green-prs.d.ts.map +1 -1
- package/dist/utils/green-prs.js +2 -5
- package/dist/utils/green-prs.js.map +1 -1
- package/dist/utils/in-place.d.ts +0 -3
- package/dist/utils/in-place.d.ts.map +1 -1
- package/dist/utils/in-place.js +0 -6
- package/dist/utils/in-place.js.map +1 -1
- package/dist/utils/index.d.ts +0 -29
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +4 -40
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/json.d.ts +0 -7
- package/dist/utils/json.d.ts.map +1 -1
- package/dist/utils/json.js +12 -12
- package/dist/utils/json.js.map +1 -1
- package/dist/utils/lane-branch-aside.d.ts +0 -5
- package/dist/utils/lane-branch-aside.d.ts.map +1 -1
- package/dist/utils/lane-branch-aside.js +0 -6
- package/dist/utils/lane-branch-aside.js.map +1 -1
- package/dist/utils/lane-removal.d.ts +0 -3
- package/dist/utils/lane-removal.d.ts.map +1 -1
- package/dist/utils/lane-removal.js +0 -5
- package/dist/utils/lane-removal.js.map +1 -1
- package/dist/utils/local-auth-record.d.ts +0 -10
- package/dist/utils/local-auth-record.d.ts.map +1 -1
- package/dist/utils/local-auth-record.js +4 -25
- package/dist/utils/local-auth-record.js.map +1 -1
- package/dist/utils/lock.d.ts +0 -12
- package/dist/utils/lock.d.ts.map +1 -1
- package/dist/utils/lock.js +9 -30
- package/dist/utils/lock.js.map +1 -1
- package/dist/utils/median.d.ts +0 -2
- package/dist/utils/median.d.ts.map +1 -1
- package/dist/utils/median.js +0 -3
- package/dist/utils/median.js.map +1 -1
- package/dist/utils/microvm.d.ts +0 -29
- package/dist/utils/microvm.d.ts.map +1 -1
- package/dist/utils/microvm.js +1 -41
- package/dist/utils/microvm.js.map +1 -1
- package/dist/utils/open-factory-drafts.d.ts +0 -6
- package/dist/utils/open-factory-drafts.d.ts.map +1 -1
- package/dist/utils/open-factory-drafts.js +0 -6
- package/dist/utils/open-factory-drafts.js.map +1 -1
- package/dist/utils/opencode-config.d.ts +0 -5
- package/dist/utils/opencode-config.d.ts.map +1 -1
- package/dist/utils/opencode-config.js +0 -7
- package/dist/utils/opencode-config.js.map +1 -1
- package/dist/utils/provider-plan.d.ts +0 -11
- package/dist/utils/provider-plan.d.ts.map +1 -1
- package/dist/utils/provider-plan.js +0 -13
- package/dist/utils/provider-plan.js.map +1 -1
- package/dist/utils/required-checks.d.ts +0 -23
- package/dist/utils/required-checks.d.ts.map +1 -1
- package/dist/utils/required-checks.js +0 -20
- package/dist/utils/required-checks.js.map +1 -1
- package/dist/utils/run-lock.d.ts +0 -34
- package/dist/utils/run-lock.d.ts.map +1 -1
- package/dist/utils/run-lock.js +10 -50
- package/dist/utils/run-lock.js.map +1 -1
- package/dist/utils/stop-marker.d.ts +0 -2
- package/dist/utils/stop-marker.d.ts.map +1 -1
- package/dist/utils/stop-marker.js +0 -2
- package/dist/utils/stop-marker.js.map +1 -1
- package/dist/utils/subscription-login.d.ts +0 -7
- package/dist/utils/subscription-login.d.ts.map +1 -1
- package/dist/utils/subscription-login.js +0 -9
- package/dist/utils/subscription-login.js.map +1 -1
- package/dist/utils/supervised-exec.d.ts.map +1 -1
- package/dist/utils/supervised-exec.js +0 -3
- package/dist/utils/supervised-exec.js.map +1 -1
- package/dist/utils/untrusted-input.d.ts +0 -11
- package/dist/utils/untrusted-input.d.ts.map +1 -1
- package/dist/utils/untrusted-input.js +0 -12
- package/dist/utils/untrusted-input.js.map +1 -1
- package/dist/utils/worktree-gc.d.ts.map +1 -1
- package/dist/utils/worktree-gc.js +0 -1
- package/dist/utils/worktree-gc.js.map +1 -1
- package/dist/utils/worktree-keeps.d.ts.map +1 -1
- package/dist/utils/worktree-keeps.js +0 -1
- package/dist/utils/worktree-keeps.js.map +1 -1
- package/dist/utils/worktree-location.d.ts +0 -6
- package/dist/utils/worktree-location.d.ts.map +1 -1
- package/dist/utils/worktree-location.js +9 -14
- package/dist/utils/worktree-location.js.map +1 -1
- package/dist/utils/worktree-name.d.ts.map +1 -1
- package/dist/utils/worktree-name.js +0 -1
- package/dist/utils/worktree-name.js.map +1 -1
- package/dist/work/internal-exports.d.ts +1 -2
- package/dist/work/internal-exports.d.ts.map +1 -1
- package/dist/work/internal-exports.js +1 -2
- package/dist/work/internal-exports.js.map +1 -1
- package/dist/work/ticket-writeback.d.ts +0 -3
- package/dist/work/ticket-writeback.d.ts.map +1 -1
- package/dist/work/ticket-writeback.js +0 -23
- package/dist/work/ticket-writeback.js.map +1 -1
- package/dist/worktree/internal-exports.d.ts +2 -2
- package/dist/worktree/internal-exports.d.ts.map +1 -1
- package/dist/worktree/internal-exports.js +2 -2
- package/dist/worktree/internal-exports.js.map +1 -1
- package/dist/worktree/state-backup-prune.d.ts +26 -0
- package/dist/worktree/state-backup-prune.d.ts.map +1 -0
- package/dist/worktree/state-backup-prune.js +106 -0
- package/dist/worktree/state-backup-prune.js.map +1 -0
- package/package.json +5 -5
package/dist/run/run-issue.d.ts
CHANGED
|
@@ -37,19 +37,14 @@ import type { RequiredChecksVerdict } from '../utils/required-checks.js';
|
|
|
37
37
|
import type { RunReportInfo } from './run-report-info.js';
|
|
38
38
|
import { type ProviderProbe } from './provider-probe.js';
|
|
39
39
|
import type { PrerequisiteStackTarget } from '../queue/prerequisite-stack.js';
|
|
40
|
-
/** Everything one run needs decided, as a plain resolved value — the CLI adapter
|
|
41
|
-
* computes this today; no config/file/path resolution happens in here. */
|
|
42
40
|
export interface RunRequest extends ReworkRequestFields {
|
|
43
|
-
/** Prior run's persisted record, read before this run's first write (#3373); null/absent = none. */
|
|
44
41
|
previousAttempt?: IssueRunState | null;
|
|
45
|
-
/** ADR-0161 stack mode: the 1-based slice to plan. Set by runIssue's stack loop; undefined = the gate's current slice. */
|
|
46
42
|
sliceIndex?: number;
|
|
47
43
|
issue: number;
|
|
48
44
|
repo: string;
|
|
49
45
|
branch: string;
|
|
50
46
|
specPath: string;
|
|
51
47
|
work: WorkRequest;
|
|
52
|
-
/** Input source for PLAN to resolve; defaults inside planPhase to this run's GitHub issue. */
|
|
53
48
|
workSource?: {
|
|
54
49
|
kind: WorkRequestSourceKind;
|
|
55
50
|
params: unknown;
|
|
@@ -57,39 +52,24 @@ export interface RunRequest extends ReworkRequestFields {
|
|
|
57
52
|
product?: string;
|
|
58
53
|
startedAt: string;
|
|
59
54
|
lane?: string;
|
|
60
|
-
/** Issues still queued behind this one on its lane, for the park payload (#3511); absent = none. */
|
|
61
55
|
blockedBehind?: number[];
|
|
62
56
|
options: {
|
|
63
57
|
interactive: boolean;
|
|
64
58
|
autoRework: boolean;
|
|
65
|
-
/** Pause after PLAN for a human decision. */
|
|
66
59
|
approvePlan: boolean;
|
|
67
60
|
sandboxDisabled: boolean;
|
|
68
61
|
};
|
|
69
|
-
/** Local-only run (#508): publishing disabled, SHIP is skipped. */
|
|
70
62
|
localOnly?: boolean;
|
|
71
|
-
/** --no-pr: stop after a clean CHECK with no GitHub writes; unlike localOnly, routing and prompts are unchanged. */
|
|
72
63
|
noPr?: boolean;
|
|
73
|
-
/** PR classifier gate (#1724). Present only when the setting is on; undefined = off (no git
|
|
74
|
-
* calls, no label, no event, no evidence-pack section). */
|
|
75
|
-
/** design.blockUnresolvedRegressions resolved (#1819); undefined = off. */
|
|
76
64
|
blockUnresolvedRegressions?: boolean;
|
|
77
|
-
/** check.hermeticGit resolved (#3272); undefined = on. */
|
|
78
65
|
hermeticGit?: boolean;
|
|
79
|
-
/** readiness.updateIssueBody resolved (#2385); undefined = on. */
|
|
80
66
|
readinessUpdateIssueBody?: boolean;
|
|
81
|
-
/** build.publishFromBuild resolved (#1867); undefined = off (commit-only BUILD on every route). */
|
|
82
67
|
publishFromBuild?: boolean;
|
|
83
|
-
/** sizeGate.mode resolved (ADR-0147, #2048, #3837); undefined = both size gates on, no stack slicing. */
|
|
84
68
|
sizeGateMode?: SizeGateMode;
|
|
85
69
|
parkOverBudget?: boolean;
|
|
86
|
-
/** sizeGate.maxSlices or --max-slices resolved (ADR-0156); undefined = DEFAULT_MAX_SLICES. */
|
|
87
70
|
maxSlices?: number;
|
|
88
|
-
/** sizeGate.tokenBudget / maxFiles resolved (#3350); undefined = defaults. */
|
|
89
71
|
sizeBudget?: SizeBudget;
|
|
90
|
-
/** steward.enabled resolved (#2086); undefined = off (no steward-triggered event). */
|
|
91
72
|
stewardEnabled?: boolean;
|
|
92
|
-
/** Review floor rules for CHECK's design critic class-A skip (#3374); set regardless of the classifier gate. */
|
|
93
73
|
reviewFloorRules?: ReviewFloorRuleSet;
|
|
94
74
|
prClassifier?: {
|
|
95
75
|
rules: ReviewFloorRuleSet;
|
|
@@ -107,30 +87,21 @@ export interface RunRequest extends ReworkRequestFields {
|
|
|
107
87
|
modelPins: EffectiveModelPins;
|
|
108
88
|
codexDisabled: boolean;
|
|
109
89
|
skipCI: boolean;
|
|
110
|
-
/** SHIP's CI watch deadline in ms (#3569); unset = 10 min. */
|
|
111
90
|
ciDeadlineMs?: number;
|
|
112
91
|
failover: AutoFailoverSettings;
|
|
113
92
|
efficiency: {
|
|
114
93
|
maxReworkRounds: number;
|
|
115
94
|
fastPath: boolean;
|
|
116
95
|
};
|
|
117
|
-
/** Sandbox containment already resolved against this run's worktree/repoRoot. */
|
|
118
96
|
sandboxPolicy?: SandboxPolicy;
|
|
119
|
-
/** Resolved primary checkout paths for Codex workspace-write. */
|
|
120
97
|
codexWorkspacePaths?: {
|
|
121
98
|
primaryRepoRoot: string;
|
|
122
99
|
writableRoots: readonly string[];
|
|
123
100
|
};
|
|
124
|
-
/** Grace period before escalating to SIGKILL when tearing down tracked process groups. */
|
|
125
101
|
processGroupGraceMs: number;
|
|
126
|
-
/** models.providerOrder from the repo file, refused providers filtered (#3338); undefined = off (today's behavior). */
|
|
127
102
|
providerOrder?: ProviderOrder;
|
|
128
|
-
/** Repo config pins the build route; forced after PLAN so the frozen spec stays authoritative. */
|
|
129
103
|
preferredRoute?: BuildRoute;
|
|
130
|
-
/** Resume at CHECK on a kept worktree (#2564): PLAN and BUILD are skipped. */
|
|
131
|
-
/** Parent ref of a stacked slice branch (#2716); CHECK and the review floor diff against it. Absent = origin/main. */
|
|
132
104
|
parentBaseRef?: string;
|
|
133
|
-
/** The open prerequisite PR this issue is stacked on (#3916); its stack line and marker go into the PR body. */
|
|
134
105
|
prerequisiteStack?: PrerequisiteStackTarget;
|
|
135
106
|
resumeFrom?: {
|
|
136
107
|
phase: 'check';
|
|
@@ -139,106 +110,59 @@ export interface RunRequest extends ReworkRequestFields {
|
|
|
139
110
|
model: string;
|
|
140
111
|
buildMinutes: number;
|
|
141
112
|
};
|
|
142
|
-
/** Resolved factory-state paths shipPhase reads/writes directly (unchanged from today —
|
|
143
|
-
* shipPhase's own surface already takes plain path strings, not a path-resolution port). */
|
|
144
113
|
eventsFile?: string;
|
|
145
114
|
logsDir?: string;
|
|
146
|
-
/** state/baseline-cache.json (#1926), forwarded to checkPhase. */
|
|
147
115
|
baselineCachePath?: string;
|
|
148
|
-
/** check.baselineCacheTtlHours (#3540); undefined = 24. */
|
|
149
116
|
baselineCacheTtlHours?: number;
|
|
150
|
-
/** The repo config file (`.factory/config.yaml|yml|json`) to scan in the pre-PLAN template-token preflight (#2586); undefined = constitution only. */
|
|
151
117
|
repoConfigFile?: {
|
|
152
118
|
absPath: string;
|
|
153
119
|
relPath: string;
|
|
154
120
|
};
|
|
155
|
-
/** state/flaky-tests.json (#2303); undefined = no flake ledger or filing. */
|
|
156
121
|
flakyLedgerPath?: string;
|
|
157
|
-
/** state/worktree-keeps.json (#3316); undefined = a budget park records no keep. */
|
|
158
122
|
worktreeKeepsPath?: string;
|
|
159
123
|
}
|
|
160
|
-
/** The injected seams runIssue needs. Effectful, path-bound concerns (Octokit, worktree
|
|
161
|
-
* layout, approvals/steering directories, report/artifact destinations) are the caller's
|
|
162
|
-
* responsibility to wire — runIssue only calls the closures it is handed. */
|
|
163
124
|
export interface RunPorts extends CiReworkPorts, LinearRunPorts {
|
|
164
|
-
/** Run-state slice-plan store for briefs (#3813); absent = the issue's slice-plan comment. */
|
|
165
125
|
slicePlanStore?: SlicePlanStore;
|
|
166
|
-
/** ADR-0161 stack mode: creates a slice branch in the worktree. Defaults to createStackSliceBranch. */
|
|
167
126
|
createSliceBranch?: (opts: {
|
|
168
127
|
worktree: string;
|
|
169
128
|
branch: string;
|
|
170
129
|
startPoint: string;
|
|
171
130
|
}) => Promise<void>;
|
|
172
|
-
/** Stuck-run steward seams (#2124). Used only when request.stewardEnabled is true and detectStuck fires
|
|
173
|
-
* on the park; absent → only the steward-triggered event is logged (#2086). */
|
|
174
131
|
steward?: RunStewardPorts;
|
|
175
132
|
router: ModelRouter;
|
|
176
|
-
/** git seam for the stage-start worktree snapshot (#3338); default defaultExecFn. */
|
|
177
133
|
gitExec?: ExecFn;
|
|
178
|
-
/** Shadow classifier model call (#1725). Defaults to classifyPrShadow. */
|
|
179
134
|
classifyPr?: (input: PrShadowInput) => Promise<PrShadowVerdict>;
|
|
180
135
|
octokit: Octokit;
|
|
181
|
-
/** The working tree the phases run in (`.path` is the phase cwd). */
|
|
182
136
|
workspace: Workspace;
|
|
183
|
-
/** `mkLog` factory: `events(phase)` returns the log function phases/runIssue emit through. */
|
|
184
137
|
events: (phase?: string) => LogFn;
|
|
185
|
-
/** Acquires the lane's leased port + process-group tracking. A rejection here degrades
|
|
186
|
-
* the run (appPort left undefined) rather than parking it (Invariant 4). */
|
|
187
138
|
acquireEnvironment?: () => Promise<Environment>;
|
|
188
|
-
/** Resolves the stable lane base URL for the (possibly undefined) leased port. Injected
|
|
189
|
-
* because the underlying proxy-state probe needs CLI-owned factory state paths. */
|
|
190
139
|
resolveBaseUrl?: (appPort: number | undefined) => {
|
|
191
140
|
baseUrl?: string;
|
|
192
141
|
note: string;
|
|
193
142
|
};
|
|
194
|
-
/** Current accumulated spend for this issue (the router's cost sink is wired by the
|
|
195
|
-
* caller before it hands `router` to runIssue); absent means no budget cap in effect. */
|
|
196
143
|
getIssueSpend?: () => number;
|
|
197
144
|
breaker: ProviderBreaker;
|
|
198
145
|
probeProvider?: ProviderProbe;
|
|
199
|
-
/** Resolves the constitution. Called exactly once, before BUILD (Invariant 1). */
|
|
200
146
|
resolveConstitution: () => Constitution | null;
|
|
201
147
|
createApprovalGate?: () => ApprovalGate;
|
|
202
148
|
drainSteering?: () => ConsumedSteering;
|
|
203
149
|
reworkHistory?: ReworkHistory;
|
|
204
|
-
/** Same-file lane guard (#1515): defers (re-queues) a run whose PLAN-reported touched files collide
|
|
205
|
-
* with another in-flight run's claim in the same repo. Optional and a no-op when
|
|
206
|
-
* undefined, so existing callers/tests that don't wire it see no behavior change.
|
|
207
|
-
* `laneClaimStaleness` (#3063) lets it reap provably finished holders; undefined = never reap. */
|
|
208
150
|
laneFileGuard?: LaneFileGuard;
|
|
209
151
|
laneClaimStaleness?: LaneClaimStalenessProbe;
|
|
210
152
|
writeLocalRunReport?: (info: RunReportInfo) => Promise<string | undefined>;
|
|
211
153
|
writeBenchmarkArtifacts?: (info: RunReportInfo) => Promise<void>;
|
|
212
|
-
/** Records the truthful current phase for downstream connectors (#1325) — called once
|
|
213
|
-
* at each of the four PLAN/BUILD/CHECK/SHIP transitions. A rejection here is logged
|
|
214
|
-
* and swallowed: this is an observability side channel, not a run invariant. */
|
|
215
154
|
recordPhase?: (phase: FailurePhase) => void | Promise<void>;
|
|
216
|
-
/** Persists the IssueRunState (#3194) — called at the four phase transitions and once
|
|
217
|
-
* with the terminal status. A rejection is logged as `run_state_failed` and swallowed:
|
|
218
|
-
* an observability side channel, not a run invariant. */
|
|
219
155
|
recordRunState?: (update: RunStateUpdate) => void | Promise<void>;
|
|
220
|
-
/** Heartbeat hook (#1326) forwarded to CHECK's CheckerContext — called around every
|
|
221
|
-
* checker so the persisted run-phase snapshot's `lastActivityAt` advances during a
|
|
222
|
-
* long CHECK stage, not just at the four phase transitions `recordPhase` covers. A
|
|
223
|
-
* rejection is logged and swallowed the same way (observability, not an invariant). */
|
|
224
156
|
onActivity?: () => void | Promise<void>;
|
|
225
|
-
/** Phase implementations. Default to the real PLAN/BUILD/CHECK/SHIP phases; overridable
|
|
226
|
-
* so callers (notably the CLI's test double, per ADR-0004) can stub the phases and drive
|
|
227
|
-
* the real runIssue sequencing/breaker/budget/constitution logic instead of reimplementing it. */
|
|
228
157
|
planPhase?: typeof planPhaseDefault;
|
|
229
158
|
buildPhase?: typeof buildPhaseDefault;
|
|
230
|
-
/** Frozen JS dependency install in the lane worktree before BUILD (#3370). Defaults to installLaneDependencies; never throws. */
|
|
231
159
|
installLaneDependencies?: typeof installLaneDependenciesDefault;
|
|
232
160
|
checkPhase?: typeof checkPhaseDefault;
|
|
233
161
|
hostBuildSlot?: <T>(phase: 'build' | 'check', fn: () => Promise<T>) => Promise<T>;
|
|
234
162
|
shipPhase?: typeof shipPhaseDefault;
|
|
235
|
-
/** GitHub CI verdict for a base SHA (#3540), forwarded to CHECK's baseline cache cross-check. Absent = no cross-check. */
|
|
236
163
|
requiredChecksVerdict?: (sha: string) => Promise<RequiredChecksVerdict>;
|
|
237
|
-
/** Frozen-plan reuse after an environment release (#2340). Absent = always plan (existing callers/tests unchanged). */
|
|
238
164
|
planReuse?: PlanReuseStore;
|
|
239
|
-
/** Check-resume record (#2564). Absent = no preservation (existing callers/tests unchanged). */
|
|
240
165
|
checkResume?: CheckResumeStore;
|
|
241
|
-
/** Reads the PR's path changes for the classifier (#1724). Defaults to the git-backed reader. */
|
|
242
166
|
readReviewFloorChanges?: (worktree: string, fallbackBaseRef?: string, parentBaseRef?: string) => Promise<ReviewFloorPathChange[]>;
|
|
243
167
|
}
|
|
244
168
|
export declare function runIssue(request: RunRequest, policy: RunPolicy, rawPorts: RunPorts): Promise<RunOutcome>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-issue.d.ts","sourceRoot":"","sources":["../../src/run/run-issue.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-issue.d.ts","sourceRoot":"","sources":["../../src/run/run-issue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE1D,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACrE,OAAO,EAAE,uBAAuB,IAAI,8BAA8B,EAAE,MAAM,mBAAmB,CAAC;AAC9F,OAAO,EAAE,UAAU,IAAI,iBAAiB,EAAyB,MAAM,oBAAoB,CAAC;AAC5F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQvD,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAmB,MAAM,mBAAmB,CAAC;AAEnF,OAAO,EAAE,SAAS,IAAI,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAKlE,OAAO,EAAsB,KAAK,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AAO,gBAAgB,CAAC;IACpC,UAAU,CAAC,EAAE,OAAO,iBAAiB,CAAC;IACtC,uBAAuB,CAAC,EAAE,OAAO,8BAA8B,CAAC;IAChE,UAAU,CAAC,EAAE,OAAO,iBAAiB,CAAC;IACtC,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAClF,SAAS,CAAC,EAAE,OAAO,gBAAgB,CAAC;IACpC,qBAAqB,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,qBAAqB,CAAC,CAAC;IACxE,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,sBAAsB,CAAC,EAAE,CACvB,QAAQ,EAAE,MAAM,EAChB,eAAe,CAAC,EAAE,MAAM,EACxB,aAAa,CAAC,EAAE,MAAM,KACnB,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;CACvC;AAED,wBAAsB,QAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAe9G"}
|
package/dist/run/run-issue.js
CHANGED
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
// packages/core/src/run/run-issue.ts — the per-issue run lifecycle, lifted out of the
|
|
2
|
-
// CLI's shipIssue (#675). runIssue(request, policy, ports) sequences PLAN → BUILD →
|
|
3
|
-
// CHECK → SHIP and enforces five invariants at this seam:
|
|
4
|
-
// 1. the constitution is resolved exactly once, before BUILD, and reused by every phase.
|
|
5
|
-
// 2. the per-issue budget is asserted after PLAN, BUILD, and CHECK (parks 'fail' on breach).
|
|
6
|
-
// 3. the acquired Environment is released exactly once on every exit path.
|
|
7
|
-
// 4. a failed environment lease degrades (appPort undefined) rather than parking the run.
|
|
8
|
-
// 5. exactly one terminal event sequence is emitted per run, matching the returned RunOutcome
|
|
9
|
-
// (including the non-park `released` exit for an environment-caused CHECK failure, #1928; a config cause parks, #2583;
|
|
10
|
-
// phase-scoped loggers cannot emit a terminal kind: withSingleTerminalEvent demotes them, #3435).
|
|
11
|
-
// PLAN may be skipped by the planReuse port after an environment release (#2340).
|
|
12
|
-
// CHECK may be resumed on a kept worktree via request.resumeFrom after an environment release (#2564).
|
|
13
|
-
// Every park posts or edits one issue-level park comment behind a hidden marker; a GitHub failure only logs a warning (#2314).
|
|
14
|
-
// A config preflight (#2586) rejects unfilled template tokens before base health and PLAN; any preflight failure parks with the `config` cause (#2587).
|
|
15
|
-
//
|
|
16
|
-
// Path-bound CLI concerns (Octokit, worktree/environment provisioning, the events sink,
|
|
17
|
-
// approval/steering, and reporting hooks) are injected as ports so this file stays free of
|
|
18
|
-
// CLI filesystem layout (ADR-0004). The CLI's shipIssue is a thin adapter that constructs
|
|
19
|
-
// these ports and re-raises a parked/escalated outcome as LaneParkError.
|
|
20
1
|
import { randomUUID } from 'node:crypto';
|
|
21
2
|
import { laneEnv } from '../environment/index.js';
|
|
22
3
|
import { buildPhase as buildPhaseDefault } from '../phases/build.js';
|
|
@@ -74,6 +55,7 @@ import { providerProbe } from './provider-probe.js';
|
|
|
74
55
|
import { errorMessage } from '../checkers/preview-wait.js';
|
|
75
56
|
import { renderPreviousAttempt } from './previous-attempt.js';
|
|
76
57
|
import { withoutHumanOnlyLabels } from './max-lines-override.js';
|
|
58
|
+
const SOCKET_PATH_SAFE_RUN_ID_LENGTH = 12;
|
|
77
59
|
export async function runIssue(request, policy, rawPorts) {
|
|
78
60
|
const { ports: attributed, stamp } = withRunAttribution(rawPorts);
|
|
79
61
|
const ports = withSingleTerminalEvent(attributed);
|
|
@@ -103,9 +85,7 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
103
85
|
const shipPhase = ports.shipPhase ?? shipPhaseDefault;
|
|
104
86
|
const log = ports.events();
|
|
105
87
|
const linear = linearRunWriteback(request.work, ports, log);
|
|
106
|
-
|
|
107
|
-
// 12 hex chars keeps the compiler's Unix-socket pipe path short under macOS $TMPDIR.
|
|
108
|
-
const runId = randomUUID().replace(/-/g, '').slice(0, 12);
|
|
88
|
+
const runId = randomUUID().replace(/-/g, '').slice(0, SOCKET_PATH_SAFE_RUN_ID_LENGTH);
|
|
109
89
|
let previousAttemptNote = renderPreviousAttempt(request.previousAttempt);
|
|
110
90
|
const phaseLogger = createRunPhaseLogger({
|
|
111
91
|
logsDir: request.logsDir,
|
|
@@ -164,9 +144,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
164
144
|
}
|
|
165
145
|
}
|
|
166
146
|
};
|
|
167
|
-
// Every escalated/parked exit reports the same way a thrown park did before the lift:
|
|
168
|
-
// one terminal event (plus a 'stuck' companion for timeouts) and, when hooks are wired,
|
|
169
|
-
// a local run report + benchmark artifacts (Invariant 5).
|
|
170
147
|
const reportOutcomeFor = (reason) => reason === 'escalate' ? 'escalated' : 'failed';
|
|
171
148
|
const writeReports = async (reportOutcome, reason, message) => {
|
|
172
149
|
const reportPath = await ports.writeLocalRunReport?.({
|
|
@@ -198,7 +175,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
198
175
|
let shippedGreen = false;
|
|
199
176
|
const terminalParked = async (reason, message, checkFailure, ciFailure, down, designSmell) => {
|
|
200
177
|
const terminalMessage = phaseLogger.parkMessage(message);
|
|
201
|
-
// A blocked park never carries a failure signature, so the ADR-0139 lane breaker and the cross-run stuck check skip it (#2315).
|
|
202
178
|
const failure = reason === 'blocked' ? undefined : checkFailure;
|
|
203
179
|
log(reason, terminalMessage, {
|
|
204
180
|
...parkLogExtra(failure, ciFailure),
|
|
@@ -210,8 +186,15 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
210
186
|
}
|
|
211
187
|
let settled;
|
|
212
188
|
if (!request.localOnly && !request.noPr) {
|
|
213
|
-
|
|
214
|
-
|
|
189
|
+
const parkInput = {
|
|
190
|
+
reason,
|
|
191
|
+
message: terminalMessage,
|
|
192
|
+
runId,
|
|
193
|
+
branch: request.branch,
|
|
194
|
+
lane: request.lane,
|
|
195
|
+
blockers: [],
|
|
196
|
+
...(designSmell ? { designSmell } : {}),
|
|
197
|
+
};
|
|
215
198
|
if (linear)
|
|
216
199
|
await linear.park(parkInput);
|
|
217
200
|
else if (request.work.kind !== LOCAL_BRIEF_SOURCE) {
|
|
@@ -254,8 +237,16 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
254
237
|
};
|
|
255
238
|
const parkAllProvidersDown = (down) => terminalParked('all_providers_down', allProvidersDownMessage(down, workKey), undefined, undefined, down);
|
|
256
239
|
const assertBudget = async (phase) => {
|
|
257
|
-
|
|
258
|
-
|
|
240
|
+
const message = enforceIssueBudget({
|
|
241
|
+
phase,
|
|
242
|
+
spend: ports.getIssueSpend?.() ?? 0,
|
|
243
|
+
cap: policy.budget.perIssueCapUsd,
|
|
244
|
+
key: workKey,
|
|
245
|
+
worktreePath: ports.workspace.path,
|
|
246
|
+
keepsFile: request.worktreeKeepsPath,
|
|
247
|
+
log,
|
|
248
|
+
stop: budgetStop.stopped(),
|
|
249
|
+
});
|
|
259
250
|
return message === undefined ? undefined : terminalParked('fail', message);
|
|
260
251
|
};
|
|
261
252
|
const rememberProviderFailureFor = providerFailureRecorder({
|
|
@@ -285,18 +276,11 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
285
276
|
const { baseUrl: appBaseUrl, note: proxyNote } = ports.resolveBaseUrl?.(appPort) ?? { note: '' };
|
|
286
277
|
if (proxyNote)
|
|
287
278
|
log(appBaseUrl ? 'environment_proxy' : 'environment_proxy_unavailable', proxyNote);
|
|
288
|
-
// Record which .NET lane variables BUILD/CHECK/rework children get (#1911).
|
|
289
279
|
const dotnet = dotnetEnvReport(ports.workspace.path, process.env, runId);
|
|
290
280
|
if (dotnet)
|
|
291
281
|
log('environment_dotnet', describeDotnetEnv(dotnet));
|
|
292
|
-
// Resolve standards ONCE against the fresh worktree (Invariant 1). Resolving again
|
|
293
|
-
// later would let the build worker author the standards it is graded by.
|
|
294
282
|
const constitution = ports.resolveConstitution();
|
|
295
283
|
log('constitution', describeConstitutionSource(constitution, request.product));
|
|
296
|
-
// Pre-PLAN config preflight (#2585/#2586), shared with `factory doctor` via lintFactoryConfig (#2612).
|
|
297
|
-
// An unknown `checkers:` entry would only fail closed in CHECK, after PLAN and BUILD spent model calls;
|
|
298
|
-
// unfilled scaffold tokens would ship a placeholder. Read-only, no subprocess, runs for localOnly too.
|
|
299
|
-
// Any failing verdict parks with the `config` cause (#2587); checker findings come first in the message.
|
|
300
284
|
const lint = lintFactoryConfig({ constitution, configFile: request.repoConfigFile });
|
|
301
285
|
if (lint.verdict !== 'ok') {
|
|
302
286
|
return await terminalParked('config', [
|
|
@@ -305,7 +289,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
305
289
|
`then run factory unpark ${workKey}`,
|
|
306
290
|
].join('\n'));
|
|
307
291
|
}
|
|
308
|
-
// Unknown nested config keys are stripped by the runtime schema; warn once per key, never block (#3568, ADR-0160).
|
|
309
292
|
if (request.repoConfigFile) {
|
|
310
293
|
for (const m of unknownConfigKeyMessages(request.repoConfigFile))
|
|
311
294
|
log('config_unknown_key', m);
|
|
@@ -314,11 +297,7 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
314
297
|
for (const m of sizeGateModeWarningMessages(request.repoConfigFile))
|
|
315
298
|
log('config_invalid_value', m);
|
|
316
299
|
}
|
|
317
|
-
// Run-start HEAD (#1210): captured exactly once, before PLAN, for local-only
|
|
318
|
-
// workspace runs — there is no remote to diff against, and every rework round
|
|
319
|
-
// inside CHECK must diff against this same base rather than a moving target.
|
|
320
300
|
runStartDiffBase = request.localOnly ? await captureDiffBase(ports.workspace.path) : undefined;
|
|
321
|
-
// PLAN
|
|
322
301
|
const planStartedMs = Date.now();
|
|
323
302
|
let planRoute;
|
|
324
303
|
let planSlice;
|
|
@@ -347,10 +326,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
347
326
|
}
|
|
348
327
|
else {
|
|
349
328
|
await setPhase('plan');
|
|
350
|
-
// A pinned build model determines the route (#1367): an explicit repo `route` still wins, but
|
|
351
|
-
// without one the pin's harness decides, so PLAN cannot send an Anthropic-pinned build to Codex.
|
|
352
|
-
// decideBuildRoute holds the guards (local-only forces codex in PLAN and a pin must not undo it;
|
|
353
|
-
// a codex pin cannot force codex while codex is disabled) so status and the watchdog agree.
|
|
354
329
|
const decision = decideBuildRoute(ports.router.registryRef, {
|
|
355
330
|
repoRoute: request.preferredRoute,
|
|
356
331
|
buildPin: request.modelPins.build,
|
|
@@ -421,12 +396,9 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
421
396
|
const planBudget = await assertBudget('PLAN');
|
|
422
397
|
if (planBudget)
|
|
423
398
|
return planBudget;
|
|
424
|
-
// Opt-in design checkpoint (#3621): a factory:needs-design issue parks after PLAN with the plan kept for reuse.
|
|
425
399
|
const designReceipt = await designCheckpointPark(request, ports, plan.route, log);
|
|
426
400
|
if (designReceipt)
|
|
427
401
|
return await terminalParked('held', designReceipt);
|
|
428
|
-
// Same-file lane guard (#1515): before this run claims BUILD, make sure no other
|
|
429
|
-
// in-flight run in this repo already owns a file PLAN just said this run will touch.
|
|
430
402
|
if (ports.laneFileGuard && plan.designArtifact) {
|
|
431
403
|
const touchedFiles = touchedFilesFrom(plan.designArtifact);
|
|
432
404
|
const staleOpts = ports.laneClaimStaleness && { isStale: ports.laneClaimStaleness, log: ports.events('plan') };
|
|
@@ -453,7 +425,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
453
425
|
enteredSlice = entered.slice;
|
|
454
426
|
request = entered.request;
|
|
455
427
|
}
|
|
456
|
-
// BUILD
|
|
457
428
|
await setPhase('build');
|
|
458
429
|
await (ports.installLaneDependencies ?? installLaneDependenciesDefault)({
|
|
459
430
|
worktree: ports.workspace.path,
|
|
@@ -472,13 +443,11 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
472
443
|
ports.events('build')('steering_applied', describeSteering(buildSteering));
|
|
473
444
|
}
|
|
474
445
|
}
|
|
475
|
-
// PLAN honors pinnedRoute; re-apply it so a plan port that ignores it cannot route elsewhere.
|
|
476
446
|
const begun = await beginBuildRoute(request, ports, routeCaps, pinnedRoute ?? plan.route);
|
|
477
447
|
const { buildCaps, syncSpecRoute } = begun;
|
|
478
448
|
let buildRoute = begun.route;
|
|
479
449
|
let buildModel = request.modelPins.build;
|
|
480
450
|
let buildSwapReason;
|
|
481
|
-
// providerOrder drives BUILD's provider pick and reruns (#3338) unless the repo pins the route (ADR-0092).
|
|
482
451
|
const orderedBuild = request.providerOrder !== undefined && request.preferredRoute === undefined;
|
|
483
452
|
if (orderedBuild && request.providerOrder) {
|
|
484
453
|
const first = await pickOrderedProvider(gateDeps, request.providerOrder, 'build', new Set());
|
|
@@ -561,7 +530,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
561
530
|
const buildBudget = await assertBudget('BUILD');
|
|
562
531
|
if (buildBudget)
|
|
563
532
|
return buildBudget;
|
|
564
|
-
// #2511: say so when a permitted failover built with something other than the user's pin.
|
|
565
533
|
const pinnedBuild = request.modelPins.build;
|
|
566
534
|
pinNote =
|
|
567
535
|
pinnedBuild !== undefined && build.model !== pinnedBuild
|
|
@@ -575,7 +543,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
575
543
|
recordedModel = build.model;
|
|
576
544
|
buildMinutes = Math.max(1, Math.round((Date.now() - planStartedMs) / 60_000));
|
|
577
545
|
}
|
|
578
|
-
// CHECK
|
|
579
546
|
await setPhase('check');
|
|
580
547
|
const priorFailureSignature = await ports.reworkHistory?.priorSignature(request.issue);
|
|
581
548
|
const checkOpts = {
|
|
@@ -640,7 +607,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
640
607
|
if (failed.environment) {
|
|
641
608
|
const env = failed.environment;
|
|
642
609
|
if (env.cause === 'config') {
|
|
643
|
-
// A config failure fails the same way on every requeue (#2583): park with file, line and fix.
|
|
644
610
|
await clearCheckResume();
|
|
645
611
|
const failure = failed.failureSignature !== undefined
|
|
646
612
|
? { failureSignature: failed.failureSignature, failingChecks: env.failingChecks }
|
|
@@ -742,8 +708,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
742
708
|
if (!check.passed)
|
|
743
709
|
return await finishFailedCheck(check);
|
|
744
710
|
await clearCheckResume();
|
|
745
|
-
// Clean check — clear stale cross-run history so a future, genuinely different
|
|
746
|
-
// failure is not mistaken for a repeat of one already resolved.
|
|
747
711
|
await ports.reworkHistory?.clear(request.issue);
|
|
748
712
|
const unshipped = await finishWithoutShip(request, ports, log, {
|
|
749
713
|
route,
|
|
@@ -753,7 +717,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
753
717
|
});
|
|
754
718
|
if (unshipped)
|
|
755
719
|
return unshipped;
|
|
756
|
-
// PR classifier gate (#1724): escalate-only — a B/C floor (or any failure) adds the gate label.
|
|
757
720
|
let reviewRouting;
|
|
758
721
|
if (request.prClassifier) {
|
|
759
722
|
reviewRouting = await resolveReviewRouting({
|
|
@@ -779,8 +742,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
779
742
|
log('merge-gated', `${reviewRouting.reason} — applied ${label}; auto-merge held for a human${reviewRouting.error ? ` (${reviewRouting.error})` : ''}`);
|
|
780
743
|
}
|
|
781
744
|
logTrustTier(reviewRouting, 'receipt', log);
|
|
782
|
-
// Shadow model verdict (#1725, ADR-0121): recorded only. It runs after the gate is fully
|
|
783
|
-
// decided, so it cannot change the label or merge routing.
|
|
784
745
|
const shadowInput = {
|
|
785
746
|
worktree: ports.workspace.path,
|
|
786
747
|
fallbackBaseRef: buildDiffBase,
|
|
@@ -805,7 +766,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
805
766
|
reviewRouting = { ...reviewRouting, shadow };
|
|
806
767
|
log('pr-classified', `shadow — no effect: model ${shadow.modelClass ?? 'null'}${shadow.reason ? ` (${shadow.reason})` : ''}, floor ${shadow.floorClass ?? 'error'}, final ${shadow.finalClass ?? 'error'}`, { model: shadow.model ?? undefined, prClassification: toClassificationRecord(shadow) });
|
|
807
768
|
}
|
|
808
|
-
// SHIP
|
|
809
769
|
await setPhase('ship');
|
|
810
770
|
shipStarted = true;
|
|
811
771
|
const shipped = await shipWithCiRework({
|
|
@@ -879,7 +839,6 @@ async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
|
879
839
|
return capped.released;
|
|
880
840
|
if (capped?.down)
|
|
881
841
|
return await parkAllProvidersDown(capped.down);
|
|
882
|
-
// prettier-ignore
|
|
883
842
|
return await terminalParked(parkReasonFor(err), errorMessage(err), undefined, undefined, undefined, designSmellFindingFor(err));
|
|
884
843
|
}
|
|
885
844
|
finally {
|