@on-par/factory-core 0.9.11-next.9 → 0.9.12-next.1
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/blockers/declared-prerequisites.d.ts +3 -0
- package/dist/blockers/declared-prerequisites.d.ts.map +1 -0
- package/dist/blockers/declared-prerequisites.js +26 -0
- package/dist/blockers/declared-prerequisites.js.map +1 -0
- package/dist/blockers/index.d.ts +1 -0
- package/dist/blockers/index.d.ts.map +1 -1
- package/dist/blockers/index.js +1 -0
- package/dist/blockers/index.js.map +1 -1
- package/dist/checkers/base-health.d.ts +6 -0
- package/dist/checkers/base-health.d.ts.map +1 -1
- package/dist/checkers/base-health.js +89 -10
- package/dist/checkers/base-health.js.map +1 -1
- package/dist/checkers/baseline-cache.d.ts.map +1 -1
- package/dist/checkers/baseline-cache.js +5 -0
- package/dist/checkers/baseline-cache.js.map +1 -1
- package/dist/checkers/baseline.d.ts +2 -0
- package/dist/checkers/baseline.d.ts.map +1 -1
- package/dist/checkers/baseline.js +2 -2
- package/dist/checkers/baseline.js.map +1 -1
- package/dist/checkers/design-smells.d.ts.map +1 -1
- package/dist/checkers/design-smells.js +1 -0
- package/dist/checkers/design-smells.js.map +1 -1
- package/dist/checkers/evidence-allowlist.d.ts +5 -0
- package/dist/checkers/evidence-allowlist.d.ts.map +1 -0
- package/dist/checkers/evidence-allowlist.js +96 -0
- package/dist/checkers/evidence-allowlist.js.map +1 -0
- package/dist/checkers/evidence-plan-false-pass.d.ts +4 -0
- package/dist/checkers/evidence-plan-false-pass.d.ts.map +1 -0
- package/dist/checkers/evidence-plan-false-pass.js +141 -0
- package/dist/checkers/evidence-plan-false-pass.js.map +1 -0
- package/dist/checkers/evidence-plan.d.ts +27 -0
- package/dist/checkers/evidence-plan.d.ts.map +1 -0
- package/dist/checkers/evidence-plan.js +185 -0
- package/dist/checkers/evidence-plan.js.map +1 -0
- package/dist/checkers/index.d.ts +4 -0
- package/dist/checkers/index.d.ts.map +1 -1
- package/dist/checkers/index.js +2 -0
- package/dist/checkers/index.js.map +1 -1
- package/dist/checkers/side-effects.d.ts +11 -0
- package/dist/checkers/side-effects.d.ts.map +1 -0
- package/dist/checkers/side-effects.js +137 -0
- package/dist/checkers/side-effects.js.map +1 -0
- package/dist/config/base-health.d.ts +29 -0
- package/dist/config/base-health.d.ts.map +1 -0
- package/dist/config/base-health.js +34 -0
- package/dist/config/base-health.js.map +1 -0
- package/dist/config/example.d.ts.map +1 -1
- package/dist/config/example.js +24 -1
- package/dist/config/example.js.map +1 -1
- package/dist/config/index.d.ts +8 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +11 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/repo.d.ts +24 -2
- package/dist/config/repo.d.ts.map +1 -1
- package/dist/config/repo.js +11 -11
- package/dist/config/repo.js.map +1 -1
- package/dist/config/risk-section.d.ts +33 -0
- package/dist/config/risk-section.d.ts.map +1 -0
- package/dist/config/risk-section.js +46 -0
- package/dist/config/risk-section.js.map +1 -0
- package/dist/config/v2.d.ts +2 -0
- package/dist/config/v2.d.ts.map +1 -1
- package/dist/config/v2.js +5 -0
- package/dist/config/v2.js.map +1 -1
- package/dist/constitutions/index.d.ts.map +1 -1
- package/dist/constitutions/index.js +2 -0
- package/dist/constitutions/index.js.map +1 -1
- package/dist/daemon/checkout-validation.d.ts +1 -1
- package/dist/daemon/checkout-validation.d.ts.map +1 -1
- package/dist/daemon/checkout-validation.js +19 -6
- package/dist/daemon/checkout-validation.js.map +1 -1
- package/dist/daemon/execution-config.d.ts +22 -0
- package/dist/daemon/execution-config.d.ts.map +1 -1
- package/dist/daemon/factoryd-http.d.ts.map +1 -1
- package/dist/daemon/factoryd-http.js +8 -2
- package/dist/daemon/factoryd-http.js.map +1 -1
- package/dist/daemon/repos-attach.d.ts +7 -1
- package/dist/daemon/repos-attach.d.ts.map +1 -1
- package/dist/daemon/repos-attach.js +35 -10
- package/dist/daemon/repos-attach.js.map +1 -1
- package/dist/daemon/run-runtime.d.ts +22 -0
- package/dist/daemon/run-runtime.d.ts.map +1 -1
- package/dist/environment/index.d.ts +4 -0
- package/dist/environment/index.d.ts.map +1 -1
- package/dist/environment/index.js +6 -0
- package/dist/environment/index.js.map +1 -1
- package/dist/eval/judge.d.ts +2 -0
- package/dist/eval/judge.d.ts.map +1 -1
- package/dist/eval/judge.js +1 -0
- package/dist/eval/judge.js.map +1 -1
- package/dist/events/kinds.d.ts +8 -54
- package/dist/events/kinds.d.ts.map +1 -1
- package/dist/events/kinds.js +25 -24
- package/dist/events/kinds.js.map +1 -1
- package/dist/events/payloads.d.ts +41 -0
- package/dist/events/payloads.d.ts.map +1 -0
- package/dist/events/payloads.js +3 -0
- package/dist/events/payloads.js.map +1 -0
- package/dist/harness/check.d.ts +2 -0
- package/dist/harness/check.d.ts.map +1 -1
- package/dist/harness/check.js +55 -1
- package/dist/harness/check.js.map +1 -1
- package/dist/harness/codex-cli.d.ts +20 -4
- package/dist/harness/codex-cli.d.ts.map +1 -1
- package/dist/harness/codex-cli.js +204 -35
- package/dist/harness/codex-cli.js.map +1 -1
- package/dist/harness/codex-context-ceiling.d.ts +15 -0
- package/dist/harness/codex-context-ceiling.d.ts.map +1 -0
- package/dist/harness/codex-context-ceiling.js +27 -0
- package/dist/harness/codex-context-ceiling.js.map +1 -0
- package/dist/harness/codex-live-usage.d.ts +18 -0
- package/dist/harness/codex-live-usage.d.ts.map +1 -0
- package/dist/harness/codex-live-usage.js +87 -0
- package/dist/harness/codex-live-usage.js.map +1 -0
- package/dist/harness/codex-policy.d.ts +12 -0
- package/dist/harness/codex-policy.d.ts.map +1 -0
- package/dist/harness/codex-policy.js +38 -0
- package/dist/harness/codex-policy.js.map +1 -0
- package/dist/harness/index.d.ts +19 -1
- package/dist/harness/index.d.ts.map +1 -1
- package/dist/harness/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -3
- package/dist/index.js.map +1 -1
- package/dist/internal.d.ts +23 -20
- package/dist/internal.d.ts.map +1 -1
- package/dist/internal.js +17 -6
- package/dist/internal.js.map +1 -1
- package/dist/kpis/index.d.ts +1 -1
- package/dist/kpis/index.js +1 -1
- package/dist/kpis/steerability.d.ts +43 -0
- package/dist/kpis/steerability.d.ts.map +1 -0
- package/dist/kpis/steerability.js +129 -0
- package/dist/kpis/steerability.js.map +1 -0
- package/dist/land/sync.d.ts +22 -0
- package/dist/land/sync.d.ts.map +1 -0
- package/dist/land/sync.js +135 -0
- package/dist/land/sync.js.map +1 -0
- package/dist/logger/index.d.ts +6 -0
- package/dist/logger/index.d.ts.map +1 -1
- package/dist/logger/index.js +4 -0
- package/dist/logger/index.js.map +1 -1
- package/dist/models/cost.d.ts +23 -0
- package/dist/models/cost.d.ts.map +1 -0
- package/dist/models/cost.js +26 -0
- package/dist/models/cost.js.map +1 -0
- package/dist/models/index.d.ts +4 -2
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +5 -5
- package/dist/models/index.js.map +1 -1
- package/dist/phases/build-lint-rules.d.ts +1 -0
- package/dist/phases/build-lint-rules.d.ts.map +1 -1
- package/dist/phases/build-lint-rules.js +2 -0
- package/dist/phases/build-lint-rules.js.map +1 -1
- package/dist/phases/build-no-diff.d.ts +15 -0
- package/dist/phases/build-no-diff.d.ts.map +1 -0
- package/dist/phases/build-no-diff.js +52 -0
- package/dist/phases/build-no-diff.js.map +1 -0
- package/dist/phases/build-prompts.d.ts +32 -0
- package/dist/phases/build-prompts.d.ts.map +1 -0
- package/dist/phases/build-prompts.js +102 -0
- package/dist/phases/build-prompts.js.map +1 -0
- package/dist/phases/build.d.ts +19 -33
- package/dist/phases/build.d.ts.map +1 -1
- package/dist/phases/build.js +49 -106
- package/dist/phases/build.js.map +1 -1
- package/dist/phases/check-environment.d.ts +7 -0
- package/dist/phases/check-environment.d.ts.map +1 -0
- package/dist/phases/check-environment.js +35 -0
- package/dist/phases/check-environment.js.map +1 -0
- package/dist/phases/check-evidence.d.ts +6 -0
- package/dist/phases/check-evidence.d.ts.map +1 -0
- package/dist/phases/check-evidence.js +127 -0
- package/dist/phases/check-evidence.js.map +1 -0
- package/dist/phases/check-intent-to-add.d.ts +3 -0
- package/dist/phases/check-intent-to-add.d.ts.map +1 -0
- package/dist/phases/check-intent-to-add.js +50 -0
- package/dist/phases/check-intent-to-add.js.map +1 -0
- package/dist/phases/check.d.ts +19 -11
- package/dist/phases/check.d.ts.map +1 -1
- package/dist/phases/check.js +32 -42
- package/dist/phases/check.js.map +1 -1
- package/dist/phases/plan-spec-guards.d.ts +17 -0
- package/dist/phases/plan-spec-guards.d.ts.map +1 -0
- package/dist/phases/plan-spec-guards.js +51 -0
- package/dist/phases/plan-spec-guards.js.map +1 -0
- package/dist/phases/plan-spec-validity.d.ts +4 -0
- package/dist/phases/plan-spec-validity.d.ts.map +1 -0
- package/dist/phases/plan-spec-validity.js +81 -0
- package/dist/phases/plan-spec-validity.js.map +1 -0
- package/dist/phases/plan-steps.d.ts +3 -0
- package/dist/phases/plan-steps.d.ts.map +1 -0
- package/dist/phases/plan-steps.js +17 -0
- package/dist/phases/plan-steps.js.map +1 -0
- package/dist/phases/plan-test-helpers.d.ts +13 -0
- package/dist/phases/plan-test-helpers.d.ts.map +1 -1
- package/dist/phases/plan-test-helpers.js +37 -0
- package/dist/phases/plan-test-helpers.js.map +1 -1
- package/dist/phases/plan.d.ts +29 -1
- package/dist/phases/plan.d.ts.map +1 -1
- package/dist/phases/plan.js +114 -109
- package/dist/phases/plan.js.map +1 -1
- package/dist/phases/ship-git.d.ts +1 -2
- package/dist/phases/ship-git.d.ts.map +1 -1
- package/dist/phases/ship-git.js +7 -5
- package/dist/phases/ship-git.js.map +1 -1
- package/dist/phases/ship.d.ts +3 -2
- package/dist/phases/ship.d.ts.map +1 -1
- package/dist/phases/ship.js +31 -8
- package/dist/phases/ship.js.map +1 -1
- package/dist/phases/stack-approval.d.ts +37 -0
- package/dist/phases/stack-approval.d.ts.map +1 -0
- package/dist/phases/stack-approval.js +77 -0
- package/dist/phases/stack-approval.js.map +1 -0
- package/dist/phases/stack-order.d.ts +33 -0
- package/dist/phases/stack-order.d.ts.map +1 -0
- package/dist/phases/stack-order.js +79 -0
- package/dist/phases/stack-order.js.map +1 -0
- package/dist/queue/github-queue.d.ts +12 -7
- package/dist/queue/github-queue.d.ts.map +1 -1
- package/dist/queue/github-queue.js +18 -13
- package/dist/queue/github-queue.js.map +1 -1
- package/dist/queue/index.d.ts +1 -1
- package/dist/queue/index.d.ts.map +1 -1
- package/dist/queue/queue-order.d.ts +10 -5
- package/dist/queue/queue-order.d.ts.map +1 -1
- package/dist/queue/queue-order.js +30 -12
- package/dist/queue/queue-order.js.map +1 -1
- package/dist/queue/release-queued.d.ts +8 -0
- package/dist/queue/release-queued.d.ts.map +1 -0
- package/dist/queue/release-queued.js +43 -0
- package/dist/queue/release-queued.js.map +1 -0
- package/dist/readiness/decompose-prompt.d.ts +9 -0
- package/dist/readiness/decompose-prompt.d.ts.map +1 -0
- package/dist/readiness/decompose-prompt.js +68 -0
- package/dist/readiness/decompose-prompt.js.map +1 -0
- package/dist/readiness/decompose.d.ts +7 -8
- package/dist/readiness/decompose.d.ts.map +1 -1
- package/dist/readiness/decompose.js +26 -65
- package/dist/readiness/decompose.js.map +1 -1
- package/dist/readiness/size.d.ts +28 -10
- package/dist/readiness/size.d.ts.map +1 -1
- package/dist/readiness/size.js +82 -11
- package/dist/readiness/size.js.map +1 -1
- package/dist/readiness/slice-gate.d.ts +17 -0
- package/dist/readiness/slice-gate.d.ts.map +1 -1
- package/dist/readiness/slice-gate.js +67 -7
- package/dist/readiness/slice-gate.js.map +1 -1
- package/dist/readiness/slice-overlap.d.ts +21 -0
- package/dist/readiness/slice-overlap.d.ts.map +1 -0
- package/dist/readiness/slice-overlap.js +45 -0
- package/dist/readiness/slice-overlap.js.map +1 -0
- package/dist/readiness/slice-plan.d.ts +4 -2
- package/dist/readiness/slice-plan.d.ts.map +1 -1
- package/dist/readiness/slice-plan.js +20 -7
- package/dist/readiness/slice-plan.js.map +1 -1
- package/dist/reports/evidence-pack.d.ts.map +1 -1
- package/dist/reports/evidence-pack.js +24 -0
- package/dist/reports/evidence-pack.js.map +1 -1
- package/dist/reports/pr-body.d.ts +2 -0
- package/dist/reports/pr-body.d.ts.map +1 -1
- package/dist/reports/pr-body.js +1 -0
- package/dist/reports/pr-body.js.map +1 -1
- package/dist/review/classifier.d.ts +2 -0
- package/dist/review/classifier.d.ts.map +1 -1
- package/dist/review/classifier.js +5 -1
- package/dist/review/classifier.js.map +1 -1
- package/dist/review/floor.d.ts +1 -0
- package/dist/review/floor.d.ts.map +1 -1
- package/dist/review/floor.js +1 -1
- package/dist/review/floor.js.map +1 -1
- package/dist/review/risk-receipt.d.ts +38 -0
- package/dist/review/risk-receipt.d.ts.map +1 -0
- package/dist/review/risk-receipt.js +112 -0
- package/dist/review/risk-receipt.js.map +1 -0
- package/dist/review/risk.d.ts +35 -0
- package/dist/review/risk.d.ts.map +1 -0
- package/dist/review/risk.js +88 -0
- package/dist/review/risk.js.map +1 -0
- package/dist/router/budget-guard.d.ts +28 -0
- package/dist/router/budget-guard.d.ts.map +1 -0
- package/dist/router/budget-guard.js +40 -0
- package/dist/router/budget-guard.js.map +1 -0
- package/dist/router/cost-row.d.ts +15 -0
- package/dist/router/cost-row.d.ts.map +1 -0
- package/dist/router/cost-row.js +42 -0
- package/dist/router/cost-row.js.map +1 -0
- package/dist/router/index.d.ts +21 -18
- package/dist/router/index.d.ts.map +1 -1
- package/dist/router/index.js +32 -35
- package/dist/router/index.js.map +1 -1
- package/dist/router/missing-worktree.d.ts +10 -5
- package/dist/router/missing-worktree.d.ts.map +1 -1
- package/dist/router/missing-worktree.js +18 -6
- package/dist/router/missing-worktree.js.map +1 -1
- package/dist/run/adopt-pr.d.ts +31 -0
- package/dist/run/adopt-pr.d.ts.map +1 -0
- package/dist/run/adopt-pr.js +40 -0
- package/dist/run/adopt-pr.js.map +1 -0
- package/dist/run/attribution.d.ts +26 -0
- package/dist/run/attribution.d.ts.map +1 -0
- package/dist/run/attribution.js +64 -0
- package/dist/run/attribution.js.map +1 -0
- package/dist/run/budget.d.ts +36 -0
- package/dist/run/budget.d.ts.map +1 -0
- package/dist/run/budget.js +50 -0
- package/dist/run/budget.js.map +1 -0
- package/dist/run/ci-rework-loop.d.ts.map +1 -1
- package/dist/run/ci-rework-loop.js +5 -0
- package/dist/run/ci-rework-loop.js.map +1 -1
- package/dist/run/flaky-tests.d.ts +1 -1
- package/dist/run/flaky-tests.d.ts.map +1 -1
- package/dist/run/flaky-tests.js +3 -2
- package/dist/run/flaky-tests.js.map +1 -1
- package/dist/run/lane-file-guard.d.ts +6 -2
- package/dist/run/lane-file-guard.d.ts.map +1 -1
- package/dist/run/lane-file-guard.js +19 -4
- package/dist/run/lane-file-guard.js.map +1 -1
- package/dist/run/local-finish.d.ts +13 -0
- package/dist/run/local-finish.d.ts.map +1 -0
- package/dist/run/local-finish.js +42 -0
- package/dist/run/local-finish.js.map +1 -0
- package/dist/run/outcome.d.ts +34 -0
- package/dist/run/outcome.d.ts.map +1 -1
- package/dist/run/outcome.js.map +1 -1
- package/dist/run/previous-attempt.d.ts +5 -0
- package/dist/run/previous-attempt.d.ts.map +1 -0
- package/dist/run/previous-attempt.js +60 -0
- package/dist/run/previous-attempt.js.map +1 -0
- package/dist/run/run-issue.d.ts +26 -18
- package/dist/run/run-issue.d.ts.map +1 -1
- package/dist/run/run-issue.js +115 -77
- package/dist/run/run-issue.js.map +1 -1
- package/dist/run/run-phase-log.d.ts +23 -0
- package/dist/run/run-phase-log.d.ts.map +1 -0
- package/dist/run/run-phase-log.js +117 -0
- package/dist/run/run-phase-log.js.map +1 -0
- package/dist/run/run-state-record.d.ts +15 -0
- package/dist/run/run-state-record.d.ts.map +1 -0
- package/dist/run/run-state-record.js +43 -0
- package/dist/run/run-state-record.js.map +1 -0
- package/dist/run/slice-ship-record.d.ts +19 -0
- package/dist/run/slice-ship-record.d.ts.map +1 -0
- package/dist/run/slice-ship-record.js +33 -0
- package/dist/run/slice-ship-record.js.map +1 -0
- package/dist/run/stack-restack.d.ts +42 -0
- package/dist/run/stack-restack.d.ts.map +1 -0
- package/dist/run/stack-restack.js +193 -0
- package/dist/run/stack-restack.js.map +1 -0
- package/dist/run/stack-slice-entry.d.ts +3 -6
- package/dist/run/stack-slice-entry.d.ts.map +1 -1
- package/dist/run/stack-slice-entry.js +16 -23
- package/dist/run/stack-slice-entry.js.map +1 -1
- package/dist/run/state.d.ts +25 -1
- package/dist/run/state.d.ts.map +1 -1
- package/dist/run/state.js +45 -0
- package/dist/run/state.js.map +1 -1
- package/dist/run/steer.d.ts +36 -0
- package/dist/run/steer.d.ts.map +1 -0
- package/dist/run/steer.js +54 -0
- package/dist/run/steer.js.map +1 -0
- package/dist/sandbox/index.d.ts +2 -0
- package/dist/sandbox/index.d.ts.map +1 -1
- package/dist/sandbox/index.js +5 -1
- package/dist/sandbox/index.js.map +1 -1
- package/dist/sim/pipeline.js +1 -0
- package/dist/sim/pipeline.js.map +1 -1
- package/dist/steward/diagnose.d.ts.map +1 -1
- package/dist/steward/diagnose.js +4 -3
- package/dist/steward/diagnose.js.map +1 -1
- package/dist/types/index.d.ts +29 -20
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/types/index.js.map +1 -1
- package/dist/usage/index.d.ts.map +1 -1
- package/dist/usage/index.js +11 -1
- package/dist/usage/index.js.map +1 -1
- package/dist/utils/ci-watch-no-ci.d.ts +13 -0
- package/dist/utils/ci-watch-no-ci.d.ts.map +1 -0
- package/dist/utils/ci-watch-no-ci.js +57 -0
- package/dist/utils/ci-watch-no-ci.js.map +1 -0
- package/dist/utils/ci-watch-required.d.ts +22 -0
- package/dist/utils/ci-watch-required.d.ts.map +1 -0
- package/dist/utils/ci-watch-required.js +47 -0
- package/dist/utils/ci-watch-required.js.map +1 -0
- package/dist/utils/ci-watch.d.ts +19 -11
- package/dist/utils/ci-watch.d.ts.map +1 -1
- package/dist/utils/ci-watch.js +23 -62
- package/dist/utils/ci-watch.js.map +1 -1
- package/dist/utils/exec.d.ts +3 -0
- package/dist/utils/exec.d.ts.map +1 -1
- package/dist/utils/exec.js +14 -0
- package/dist/utils/exec.js.map +1 -1
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +8 -0
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/required-checks.d.ts +32 -1
- package/dist/utils/required-checks.d.ts.map +1 -1
- package/dist/utils/required-checks.js +89 -14
- package/dist/utils/required-checks.js.map +1 -1
- package/dist/utils/stop-marker.d.ts +15 -0
- package/dist/utils/stop-marker.d.ts.map +1 -0
- package/dist/utils/stop-marker.js +60 -0
- package/dist/utils/stop-marker.js.map +1 -0
- package/dist/utils/untrusted-input.d.ts +4 -0
- package/dist/utils/untrusted-input.d.ts.map +1 -1
- package/dist/utils/untrusted-input.js +9 -0
- package/dist/utils/untrusted-input.js.map +1 -1
- package/dist/utils/worktree-gc.d.ts +11 -0
- package/dist/utils/worktree-gc.d.ts.map +1 -1
- package/dist/utils/worktree-gc.js +31 -3
- package/dist/utils/worktree-gc.js.map +1 -1
- package/dist/utils/worktree-keeps.d.ts +20 -0
- package/dist/utils/worktree-keeps.d.ts.map +1 -0
- package/dist/utils/worktree-keeps.js +65 -0
- package/dist/utils/worktree-keeps.js.map +1 -0
- package/package.json +5 -5
- package/dist/phases/ship-stack.d.ts +0 -49
- package/dist/phases/ship-stack.d.ts.map +0 -1
- package/dist/phases/ship-stack.js +0 -110
- package/dist/phases/ship-stack.js.map +0 -1
- package/dist/phases/stack-check-failure.d.ts +0 -42
- package/dist/phases/stack-check-failure.d.ts.map +0 -1
- package/dist/phases/stack-check-failure.js +0 -47
- package/dist/phases/stack-check-failure.js.map +0 -1
- package/dist/phases/stack-fallback.d.ts +0 -33
- package/dist/phases/stack-fallback.d.ts.map +0 -1
- package/dist/phases/stack-fallback.js +0 -47
- package/dist/phases/stack-fallback.js.map +0 -1
package/dist/run/run-issue.d.ts
CHANGED
|
@@ -3,30 +3,35 @@ import type { ApprovalGate } from '../approvals/index.js';
|
|
|
3
3
|
import type { checkBaseHealth } from '../checkers/base-health.js';
|
|
4
4
|
import { buildPhase as buildPhaseDefault } from '../phases/build.js';
|
|
5
5
|
import { checkPhase as checkPhaseDefault } from '../phases/check.js';
|
|
6
|
+
import type { SizeBudget } from '../readiness/size.js';
|
|
6
7
|
import { planPhase as planPhaseDefault } from '../phases/plan.js';
|
|
7
8
|
import { shipPhase as shipPhaseDefault } from '../phases/ship.js';
|
|
9
|
+
import { type RunLogFn as LogFn } from './attribution.js';
|
|
8
10
|
import type { ReviewFloorPathChange, ReviewFloorRuleSet } from '../review/floor.js';
|
|
9
|
-
import { type
|
|
11
|
+
import { type PrShadowInput, type PrShadowVerdict } from '../review/classifier.js';
|
|
10
12
|
import type { ReworkHistory } from '../checkers/rework-history.js';
|
|
11
13
|
import type { AutoFailoverSettings, SizeGateMode } from '../config/index.js';
|
|
12
14
|
import { type EffectiveModelPins } from '../config/repo.js';
|
|
13
|
-
import type { EventKind, FlakyTestsPayload, StewardTriggeredPayload } from '../events/kinds.js';
|
|
14
15
|
import { type RunStewardPorts } from '../steward/run.js';
|
|
15
16
|
import type { ModelRouter } from '../router/index.js';
|
|
16
17
|
import { type ProviderBreaker } from '../router/breaker.js';
|
|
17
18
|
import type { SandboxPolicy } from '../sandbox/index.js';
|
|
18
19
|
import { type ConsumedSteering } from '../steering/index.js';
|
|
19
|
-
import type {
|
|
20
|
+
import type { CheckSummary, Constitution, FailurePhase } from '../types/index.js';
|
|
20
21
|
import type { WorkRequest, WorkRequestSourceKind } from '../work/index.js';
|
|
21
22
|
import { type LaneClaimStalenessProbe, type LaneFileGuard } from './lane-file-guard.js';
|
|
22
23
|
import { type BuildRoute, type RunOutcome } from './outcome.js';
|
|
23
24
|
import type { RunPolicy } from './policy.js';
|
|
24
25
|
import { type CheckResumeStore, type PlanReuseStore } from './resume-context.js';
|
|
25
26
|
import type { Environment, Workspace } from './ports.js';
|
|
27
|
+
import { type RunStateUpdate } from './state.js';
|
|
26
28
|
import { type CiReworkPorts } from './ci-rework-loop.js';
|
|
29
|
+
import type { IssueRunState } from '../types/index.js';
|
|
27
30
|
/** Everything one run needs decided, as a plain resolved value — the CLI adapter
|
|
28
31
|
* computes this today; no config/file/path resolution happens in here. */
|
|
29
32
|
export interface RunRequest {
|
|
33
|
+
/** Prior run's persisted record, read before this run's first write (#3373); null/absent = none. */
|
|
34
|
+
previousAttempt?: IssueRunState | null;
|
|
30
35
|
/** ADR-0161 stack mode: the 1-based slice to plan. Set by runIssue's stack loop; undefined = the gate's current slice. */
|
|
31
36
|
sliceIndex?: number;
|
|
32
37
|
issue: number;
|
|
@@ -51,10 +56,14 @@ export interface RunRequest {
|
|
|
51
56
|
};
|
|
52
57
|
/** Local-only run (#508): publishing disabled, SHIP is skipped. */
|
|
53
58
|
localOnly?: boolean;
|
|
59
|
+
/** --no-pr: stop after a clean CHECK with no GitHub writes; unlike localOnly, routing and prompts are unchanged. */
|
|
60
|
+
noPr?: boolean;
|
|
54
61
|
/** PR classifier gate (#1724). Present only when the setting is on; undefined = off (no git
|
|
55
62
|
* calls, no label, no event, no evidence-pack section). */
|
|
56
63
|
/** design.blockUnresolvedRegressions resolved (#1819); undefined = off. */
|
|
57
64
|
blockUnresolvedRegressions?: boolean;
|
|
65
|
+
/** check.hermeticGit resolved (#3272); undefined = on. */
|
|
66
|
+
hermeticGit?: boolean;
|
|
58
67
|
/** readiness.updateIssueBody resolved (#2385); undefined = on. */
|
|
59
68
|
readinessUpdateIssueBody?: boolean;
|
|
60
69
|
/** build.publishFromBuild resolved (#1867); undefined = off (commit-only BUILD on every route). */
|
|
@@ -63,6 +72,8 @@ export interface RunRequest {
|
|
|
63
72
|
sizeGateMode?: SizeGateMode;
|
|
64
73
|
/** sizeGate.maxSlices or --max-slices resolved (ADR-0156); undefined = DEFAULT_MAX_SLICES. */
|
|
65
74
|
maxSlices?: number;
|
|
75
|
+
/** sizeGate.tokenBudget / maxFiles resolved (#3350); undefined = defaults. */
|
|
76
|
+
sizeBudget?: SizeBudget;
|
|
66
77
|
/** steward.enabled resolved (#2086); undefined = off (no steward-triggered event). */
|
|
67
78
|
stewardEnabled?: boolean;
|
|
68
79
|
prClassifier?: {
|
|
@@ -88,6 +99,11 @@ export interface RunRequest {
|
|
|
88
99
|
};
|
|
89
100
|
/** Sandbox containment already resolved against this run's worktree/repoRoot. */
|
|
90
101
|
sandboxPolicy?: SandboxPolicy;
|
|
102
|
+
/** Resolved primary checkout paths for Codex workspace-write. */
|
|
103
|
+
codexWorkspacePaths?: {
|
|
104
|
+
primaryRepoRoot: string;
|
|
105
|
+
writableRoots: readonly string[];
|
|
106
|
+
};
|
|
91
107
|
/** Grace period before escalating to SIGKILL when tearing down tracked process groups. */
|
|
92
108
|
processGroupGraceMs: number;
|
|
93
109
|
/** Repo config pins the build route; forced after PLAN so the frozen spec stays authoritative. */
|
|
@@ -115,21 +131,9 @@ export interface RunRequest {
|
|
|
115
131
|
};
|
|
116
132
|
/** state/flaky-tests.json (#2303); undefined = no flake ledger or filing. */
|
|
117
133
|
flakyLedgerPath?: string;
|
|
134
|
+
/** state/worktree-keeps.json (#3316); undefined = a budget park records no keep. */
|
|
135
|
+
worktreeKeepsPath?: string;
|
|
118
136
|
}
|
|
119
|
-
type LogFn = (type: EventKind, msg: string, extra?: {
|
|
120
|
-
failoverReason?: FailoverReason;
|
|
121
|
-
model?: string;
|
|
122
|
-
tokens?: {
|
|
123
|
-
input: number;
|
|
124
|
-
output: number;
|
|
125
|
-
};
|
|
126
|
-
readiness?: ReadinessInfo;
|
|
127
|
-
prClassification?: PrClassificationRecord;
|
|
128
|
-
checkFailure?: CheckFailureInfo;
|
|
129
|
-
ciFailure?: CiFailureEvidence;
|
|
130
|
-
stewardTriggered?: StewardTriggeredPayload;
|
|
131
|
-
flakyTests?: FlakyTestsPayload;
|
|
132
|
-
}) => void;
|
|
133
137
|
interface RunReportInfo {
|
|
134
138
|
outcome: 'ready' | 'failed' | 'parked' | 'escalated';
|
|
135
139
|
route?: BuildRoute;
|
|
@@ -200,6 +204,10 @@ export interface RunPorts extends CiReworkPorts {
|
|
|
200
204
|
* at each of the four PLAN/BUILD/CHECK/SHIP transitions. A rejection here is logged
|
|
201
205
|
* and swallowed: this is an observability side channel, not a run invariant. */
|
|
202
206
|
recordPhase?: (phase: FailurePhase) => void | Promise<void>;
|
|
207
|
+
/** Persists the IssueRunState (#3194) — called at the four phase transitions and once
|
|
208
|
+
* with the terminal status. A rejection is logged as `run_state_failed` and swallowed:
|
|
209
|
+
* an observability side channel, not a run invariant. */
|
|
210
|
+
recordRunState?: (update: RunStateUpdate) => void | Promise<void>;
|
|
203
211
|
/** Heartbeat hook (#1326) forwarded to CHECK's CheckerContext — called around every
|
|
204
212
|
* checker so the persisted run-phase snapshot's `lastActivityAt` advances during a
|
|
205
213
|
* long CHECK stage, not just at the four phase transitions `recordPhase` covers. A
|
|
@@ -222,6 +230,6 @@ export interface RunPorts extends CiReworkPorts {
|
|
|
222
230
|
/** Reads the PR's path changes for the classifier (#1724). Defaults to the git-backed reader. */
|
|
223
231
|
readReviewFloorChanges?: (worktree: string, fallbackBaseRef?: string, parentBaseRef?: string) => Promise<ReviewFloorPathChange[]>;
|
|
224
232
|
}
|
|
225
|
-
export declare function runIssue(request: RunRequest, policy: RunPolicy,
|
|
233
|
+
export declare function runIssue(request: RunRequest, policy: RunPolicy, rawPorts: RunPorts): Promise<RunOutcome>;
|
|
226
234
|
export {};
|
|
227
235
|
//# sourceMappingURL=run-issue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-issue.d.ts","sourceRoot":"","sources":["../../src/run/run-issue.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,KAAK,EAAE,YAAY,EAAE,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E,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC;IAClF,SAAS,CAAC,EAAE,OAAO,gBAAgB,CAAC;IACpC,yGAAyG;IACzG,eAAe,CAAC,EAAE,OAAO,eAAe,CAAC;IACzC,uHAAuH;IACvH,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,gGAAgG;IAChG,WAAW,CAAC,EAAE,gBAAgB,CAAC;IAC/B,iGAAiG;IACjG,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;AAMD,wBAAsB,QAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAc9G"}
|
package/dist/run/run-issue.js
CHANGED
|
@@ -23,13 +23,16 @@ import { checkPhase as checkPhaseDefault, remainingShowstoppers, renderEnvironme
|
|
|
23
23
|
import { describeConstitutionSource } from '../constitutions/index.js';
|
|
24
24
|
import { lintFactoryConfig } from '../config/config-lint.js';
|
|
25
25
|
import { planPhase as planPhaseDefault } from '../phases/plan.js';
|
|
26
|
+
import { planConfigParkMessage } from '../phases/plan-spec-guards.js';
|
|
26
27
|
import { shipPhase as shipPhaseDefault } from '../phases/ship.js';
|
|
28
|
+
import { withRunAttribution } from './attribution.js';
|
|
27
29
|
import { publishParkComment } from './park-comment.js';
|
|
30
|
+
import { createRunPhaseLogger } from './run-phase-log.js';
|
|
28
31
|
import { gateOpencodeBuildOnBreaker, providerFallbackPreferrer } from './provider-breaker-gate.js';
|
|
29
32
|
import { fileFlakyTests } from './flaky-tests.js';
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
+
import { finishWithoutShip } from './local-finish.js';
|
|
34
|
+
import { enterStackSlice, stackWaitOutcome } from './stack-slice-entry.js';
|
|
35
|
+
import { recordShippedSlice } from './slice-ship-record.js';
|
|
33
36
|
import { CLASSIFIER_PROMPT_VERSION, classifierPolicyVersion, classifyPrShadow, toClassificationRecord, } from '../review/classifier.js';
|
|
34
37
|
import { resolveReviewRouting } from '../review/routing.js';
|
|
35
38
|
import { captureDiffBase } from '../checkers/design-smells.js';
|
|
@@ -43,21 +46,36 @@ import { describeSteering } from '../steering/index.js';
|
|
|
43
46
|
import { releaseLaneClaim, touchedFilesFrom, } from './lane-file-guard.js';
|
|
44
47
|
import { parkReasonFor, reworkRouteFor } from './outcome.js';
|
|
45
48
|
import { configParkMessage, formatPreservedBuildMessage, issueBodyHash, preservedFixTarget, } from './resume-context.js';
|
|
49
|
+
import { safeRecordRunState, terminalRunStateUpdate, thrownRunStateUpdate } from './run-state-record.js';
|
|
50
|
+
import { isDecomposeSignal } from './run-state-record.js';
|
|
51
|
+
import { runStatusForPhase } from './state.js';
|
|
46
52
|
import { shipWithCiRework } from './ci-rework-loop.js';
|
|
47
53
|
import { parkLogExtra } from './ship-park.js';
|
|
54
|
+
import { budgetGuardFor, enforceIssueBudget } from './budget.js';
|
|
55
|
+
import { renderPreviousAttempt } from './previous-attempt.js';
|
|
48
56
|
function errorMessage(err) {
|
|
49
57
|
return err instanceof Error ? err.message : String(err);
|
|
50
58
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
59
|
+
export async function runIssue(request, policy, rawPorts) {
|
|
60
|
+
const { ports, stamp } = withRunAttribution(rawPorts);
|
|
61
|
+
const log = ports.events();
|
|
62
|
+
const observed = {};
|
|
63
|
+
let outcome;
|
|
64
|
+
try {
|
|
65
|
+
outcome = await runIssueOnce(request, policy, ports, observed);
|
|
66
|
+
}
|
|
67
|
+
catch (err) {
|
|
68
|
+
const update = thrownRunStateUpdate(isDecomposeSignal(err), request.branch, observed.checkSummary);
|
|
69
|
+
await safeRecordRunState(ports.recordRunState, log, update);
|
|
70
|
+
throw err;
|
|
71
|
+
}
|
|
72
|
+
await safeRecordRunState(ports.recordRunState, log, terminalRunStateUpdate(outcome, observed.checkSummary));
|
|
73
|
+
return stamp(outcome);
|
|
58
74
|
}
|
|
59
|
-
async function runIssueOnce(initialRequest, policy, ports) {
|
|
75
|
+
async function runIssueOnce(initialRequest, policy, ports, observed) {
|
|
60
76
|
let request = initialRequest;
|
|
77
|
+
if (request.codexWorkspacePaths)
|
|
78
|
+
ports.router.setCodexWorkspacePaths?.(request.codexWorkspacePaths);
|
|
61
79
|
const planPhase = ports.planPhase ?? planPhaseDefault;
|
|
62
80
|
const slot = ports.hostBuildSlot ?? ((_phase, fn) => fn());
|
|
63
81
|
const buildPhase = (o) => slot('build', () => (ports.buildPhase ?? buildPhaseDefault)(o));
|
|
@@ -67,11 +85,20 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
67
85
|
// One id per run: BUILD, CHECK and rework share a per-run VBCSCompiler server (#1910).
|
|
68
86
|
// 12 hex chars keeps the compiler's Unix-socket pipe path short under macOS $TMPDIR.
|
|
69
87
|
const runId = randomUUID().replace(/-/g, '').slice(0, 12);
|
|
88
|
+
const previousAttemptNote = renderPreviousAttempt(request.previousAttempt);
|
|
89
|
+
const phaseLogger = createRunPhaseLogger({
|
|
90
|
+
logsDir: request.logsDir,
|
|
91
|
+
issue: request.issue,
|
|
92
|
+
runId,
|
|
93
|
+
log: (type, message) => log(type, message),
|
|
94
|
+
});
|
|
70
95
|
const tracker = new ProcessGroupTracker();
|
|
96
|
+
const budgetStop = budgetGuardFor(policy, ports, tracker, request.processGroupGraceMs, log);
|
|
71
97
|
let environment;
|
|
72
98
|
let released = false;
|
|
73
99
|
let route;
|
|
74
100
|
let reworkRounds;
|
|
101
|
+
let recordedModel;
|
|
75
102
|
let checkSummary;
|
|
76
103
|
let failurePhase = 'plan';
|
|
77
104
|
let runStartDiffBase;
|
|
@@ -84,6 +111,13 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
84
111
|
catch (err) {
|
|
85
112
|
log('phase_snapshot_failed', `phase snapshot write failed for '${phase}': ${errorMessage(err)}`);
|
|
86
113
|
}
|
|
114
|
+
await safeRecordRunState(ports.recordRunState, log, {
|
|
115
|
+
status: runStatusForPhase(phase),
|
|
116
|
+
branch: request.branch,
|
|
117
|
+
route,
|
|
118
|
+
model: recordedModel,
|
|
119
|
+
attempts: 1 + (reworkRounds ?? 0),
|
|
120
|
+
});
|
|
87
121
|
};
|
|
88
122
|
const release = async () => {
|
|
89
123
|
if (released)
|
|
@@ -132,18 +166,20 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
132
166
|
});
|
|
133
167
|
};
|
|
134
168
|
const terminalEscalated = async (message) => {
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
169
|
+
const terminalMessage = phaseLogger.parkMessage(message);
|
|
170
|
+
log('escalate', terminalMessage);
|
|
171
|
+
await writeReports('escalated', 'escalate', terminalMessage);
|
|
172
|
+
return { state: 'escalated', reason: terminalMessage, route, branch: request.branch, reworkRounds };
|
|
138
173
|
};
|
|
139
174
|
const terminalParked = async (reason, message, checkFailure, ciFailure) => {
|
|
175
|
+
const terminalMessage = phaseLogger.parkMessage(message);
|
|
140
176
|
// A blocked park never carries a failure signature, so the ADR-0139 lane breaker and the cross-run stuck check skip it (#2315).
|
|
141
177
|
const failure = reason === 'blocked' ? undefined : checkFailure;
|
|
142
|
-
log(reason,
|
|
178
|
+
log(reason, terminalMessage, parkLogExtra(failure, ciFailure));
|
|
143
179
|
if (reason === 'timeout') {
|
|
144
|
-
log('stuck', `run exceeded its phase timeout without progressing — ${
|
|
180
|
+
log('stuck', `run exceeded its phase timeout without progressing — ${terminalMessage}`);
|
|
145
181
|
}
|
|
146
|
-
if (!request.localOnly) {
|
|
182
|
+
if (!request.localOnly && !request.noPr) {
|
|
147
183
|
const posted = await publishParkComment({
|
|
148
184
|
octokit: ports.octokit,
|
|
149
185
|
repo: request.repo,
|
|
@@ -151,7 +187,7 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
151
187
|
input: {
|
|
152
188
|
issue: request.issue,
|
|
153
189
|
reason,
|
|
154
|
-
message,
|
|
190
|
+
message: terminalMessage,
|
|
155
191
|
runId,
|
|
156
192
|
branch: request.branch,
|
|
157
193
|
lane: request.lane,
|
|
@@ -186,17 +222,13 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
186
222
|
}
|
|
187
223
|
}
|
|
188
224
|
}
|
|
189
|
-
await writeReports(reportOutcomeFor(reason), reason,
|
|
225
|
+
await writeReports(reportOutcomeFor(reason), reason, terminalMessage);
|
|
190
226
|
return outcome;
|
|
191
227
|
};
|
|
192
228
|
const assertBudget = async (phase) => {
|
|
193
|
-
|
|
194
|
-
const
|
|
195
|
-
|
|
196
|
-
return undefined;
|
|
197
|
-
const message = `per-issue budget exceeded after ${phase}: $${spend.toFixed(2)} > $${cap.toFixed(2)}`;
|
|
198
|
-
log('budget_exceeded', message);
|
|
199
|
-
return terminalParked('fail', message);
|
|
229
|
+
// prettier-ignore
|
|
230
|
+
const message = enforceIssueBudget({ phase, spend: ports.getIssueSpend?.() ?? 0, cap: policy.budget.perIssueCapUsd, issue: request.issue, worktreePath: ports.workspace.path, keepsFile: request.worktreeKeepsPath, log, stop: budgetStop.stopped() });
|
|
231
|
+
return message === undefined ? undefined : terminalParked('fail', message);
|
|
200
232
|
};
|
|
201
233
|
const rememberProviderFailure = async ({ provider, reason, detail, }) => {
|
|
202
234
|
const reportedMs = parseResetCooldownMs(detail ?? '');
|
|
@@ -273,6 +305,7 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
273
305
|
baseSha: health.baseSha,
|
|
274
306
|
failingChecks: health.failingChecks,
|
|
275
307
|
...(health.awaitingCi ? { awaitingCi: true } : {}),
|
|
308
|
+
...(health.confirmedLocally ? { confirmedLocally: true } : {}),
|
|
276
309
|
};
|
|
277
310
|
}
|
|
278
311
|
}
|
|
@@ -298,6 +331,7 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
298
331
|
buildDiffBase = resumed.diffBase;
|
|
299
332
|
builtRoute = resumed.route;
|
|
300
333
|
builtModel = resumed.model;
|
|
334
|
+
recordedModel = resumed.model;
|
|
301
335
|
pinNote = undefined;
|
|
302
336
|
buildMinutes = resumed.buildMinutes;
|
|
303
337
|
}
|
|
@@ -344,12 +378,14 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
344
378
|
};
|
|
345
379
|
const plan = (await reusablePlan()) ??
|
|
346
380
|
(await planPhase({
|
|
381
|
+
previousAttempt: previousAttemptNote,
|
|
347
382
|
issue: request.issue,
|
|
348
383
|
repo: request.repo,
|
|
349
384
|
worktree: ports.workspace.path,
|
|
350
385
|
specPath: request.specPath,
|
|
351
386
|
constitution,
|
|
352
387
|
router: ports.router,
|
|
388
|
+
sandbox: request.sandboxPolicy,
|
|
353
389
|
octokit: ports.octokit,
|
|
354
390
|
log: ports.events('plan'),
|
|
355
391
|
timeoutSeconds: request.timeouts.plan,
|
|
@@ -367,16 +403,20 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
367
403
|
workSource: request.workSource,
|
|
368
404
|
enforceReadiness: true,
|
|
369
405
|
fastPath: request.efficiency.fastPath,
|
|
370
|
-
enforceSizeGate: (request.sizeGateMode ?? 'file') !== 'off',
|
|
406
|
+
enforceSizeGate: !request.noPr && (request.sizeGateMode ?? 'file') !== 'off',
|
|
371
407
|
sizeGateMode: request.sizeGateMode,
|
|
372
408
|
sliceIndex: request.sliceIndex,
|
|
373
409
|
maxSlices: request.maxSlices,
|
|
410
|
+
sizeBudget: request.sizeBudget,
|
|
374
411
|
blockUnresolvedRegressions: request.blockUnresolvedRegressions,
|
|
375
|
-
updateIssueBodyOnEnrich: request.readinessUpdateIssueBody,
|
|
412
|
+
updateIssueBodyOnEnrich: request.noPr ? false : request.readinessUpdateIssueBody,
|
|
376
413
|
preferredRoute: pinnedRoute,
|
|
414
|
+
onWorkerResult: phaseLogger.plan,
|
|
377
415
|
}));
|
|
378
416
|
route = plan.route;
|
|
379
417
|
if (!plan.ok) {
|
|
418
|
+
if (plan.stackWait)
|
|
419
|
+
return stackWaitOutcome(plan.stackWait, request.branch, route);
|
|
380
420
|
const decomposedChildren = plan.decomposed?.childIssues ?? [];
|
|
381
421
|
if (decomposedChildren.length > 0) {
|
|
382
422
|
await ports.onDecomposed?.(decomposedChildren);
|
|
@@ -386,6 +426,9 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
386
426
|
if (plan.sliced) {
|
|
387
427
|
return await terminalEscalated(`issue #${request.issue} sliced into ${plan.sliced.sliceCount} slice(s): ${plan.escalate ?? 'slice plan recorded'}`);
|
|
388
428
|
}
|
|
429
|
+
if (plan.parkReason === 'config') {
|
|
430
|
+
return await terminalParked('config', planConfigParkMessage(plan, request.issue));
|
|
431
|
+
}
|
|
389
432
|
return await terminalEscalated(`plan escalated: ${plan.escalate ?? 'unknown'}`);
|
|
390
433
|
}
|
|
391
434
|
const planBudget = await assertBudget('PLAN');
|
|
@@ -481,6 +524,8 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
481
524
|
}
|
|
482
525
|
}
|
|
483
526
|
const build = await buildPhase({
|
|
527
|
+
budgetGuard: budgetStop.guard,
|
|
528
|
+
previousAttempt: previousAttemptNote,
|
|
484
529
|
runId,
|
|
485
530
|
issue: request.issue,
|
|
486
531
|
repo: request.repo,
|
|
@@ -493,11 +538,12 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
493
538
|
log: ports.events('build'),
|
|
494
539
|
timeoutSeconds: request.timeouts.build,
|
|
495
540
|
skipCI: request.skipCI,
|
|
496
|
-
disablePublish: Boolean(request.localOnly),
|
|
541
|
+
disablePublish: Boolean(request.localOnly || request.noPr),
|
|
497
542
|
publishFromBuild: request.publishFromBuild,
|
|
498
543
|
modelOverride: buildModel,
|
|
499
544
|
pinnedModel: buildModel !== undefined && buildModel === request.modelPins.build,
|
|
500
545
|
routePinned: request.preferredRoute !== undefined,
|
|
546
|
+
onWorkerResult: phaseLogger.build,
|
|
501
547
|
codexFallbackModel: request.modelPins.buildFallback ?? ports.router.resolveAll('build_codex')[0],
|
|
502
548
|
onProviderFailure: rememberProviderFailure,
|
|
503
549
|
sandbox: request.sandboxPolicy,
|
|
@@ -510,15 +556,18 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
510
556
|
onPgid,
|
|
511
557
|
laneId: request.lane,
|
|
512
558
|
parentBaseRef: request.parentBaseRef,
|
|
559
|
+
openQuestions: plan.designArtifact?.openQuestions,
|
|
513
560
|
});
|
|
514
561
|
route = build.route;
|
|
515
|
-
if (!build.ok) {
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
562
|
+
if (!build.ok && build.reason !== 'budget_exceeded') {
|
|
563
|
+
const why = build.noDiffDetail ? `\n\n${build.noDiffDetail}` : '';
|
|
564
|
+
const parkText = build.reason === 'no_diff'
|
|
565
|
+
? 'build produced no diff against the base ref'
|
|
566
|
+
: build.reason === 'junk_only_diff'
|
|
567
|
+
? 'build changed only generated/cache files (e.g. __pycache__)'
|
|
568
|
+
: undefined;
|
|
569
|
+
if (parkText)
|
|
570
|
+
return await terminalParked('fail', `${parkText} — no implementation was produced${why}`);
|
|
522
571
|
return await terminalEscalated(`build escalated: ${build.escalate ?? 'unknown'}`);
|
|
523
572
|
}
|
|
524
573
|
const buildBudget = await assertBudget('BUILD');
|
|
@@ -535,13 +584,16 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
535
584
|
buildDiffBase = build.diffBase;
|
|
536
585
|
builtRoute = build.route;
|
|
537
586
|
builtModel = build.model;
|
|
587
|
+
recordedModel = build.model;
|
|
538
588
|
buildMinutes = Math.max(1, Math.round((Date.now() - planStartedMs) / 60_000));
|
|
539
589
|
}
|
|
540
590
|
// CHECK
|
|
541
591
|
await setPhase('check');
|
|
542
592
|
const priorFailureSignature = await ports.reworkHistory?.priorSignature(request.issue);
|
|
543
593
|
const checkOpts = {
|
|
594
|
+
budgetGuard: budgetStop.guard,
|
|
544
595
|
runId,
|
|
596
|
+
hermeticGit: request.hermeticGit,
|
|
545
597
|
issue: request.issue,
|
|
546
598
|
worktree: ports.workspace.path,
|
|
547
599
|
specPath: request.specPath,
|
|
@@ -559,6 +611,7 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
559
611
|
appPort,
|
|
560
612
|
appBaseUrl,
|
|
561
613
|
onPgid,
|
|
614
|
+
processGroupTracker: tracker,
|
|
562
615
|
priorFailureSignature,
|
|
563
616
|
diffBase: request.localOnly ? runStartDiffBase : buildDiffBase,
|
|
564
617
|
parentBaseRef: request.parentBaseRef,
|
|
@@ -566,10 +619,12 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
566
619
|
laneId: request.lane,
|
|
567
620
|
onActivity: ports.onActivity,
|
|
568
621
|
logsDir: request.logsDir,
|
|
622
|
+
onWorkerResult: phaseLogger.rework,
|
|
569
623
|
baselineCachePath: request.baselineCachePath,
|
|
570
624
|
};
|
|
571
625
|
const check = await checkPhase(checkOpts);
|
|
572
626
|
checkSummary = check.summary;
|
|
627
|
+
observed.checkSummary = check.summary;
|
|
573
628
|
reworkRounds = check.reworkRounds;
|
|
574
629
|
const flake = check.flakeRerun;
|
|
575
630
|
if (flake && flake.verdict !== 'not-run' && check.baseline) {
|
|
@@ -625,7 +680,7 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
625
680
|
configFile: request.repoConfigFile,
|
|
626
681
|
}), failure);
|
|
627
682
|
}
|
|
628
|
-
if (!request.localOnly) {
|
|
683
|
+
if (!request.localOnly && !request.noPr) {
|
|
629
684
|
const [owner, repoName] = request.repo.split('/');
|
|
630
685
|
try {
|
|
631
686
|
await ports.octokit.rest.issues.createComment({
|
|
@@ -639,7 +694,7 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
639
694
|
log('environment_warning', `could not post the environment-failure comment: ${errorMessage(err)}`);
|
|
640
695
|
}
|
|
641
696
|
}
|
|
642
|
-
let preserve = ports.checkResume !== undefined && !request.localOnly && !planSlice;
|
|
697
|
+
let preserve = ports.checkResume !== undefined && !request.localOnly && !request.noPr && !planSlice;
|
|
643
698
|
let fixTarget = '';
|
|
644
699
|
if (preserve && ports.checkResume) {
|
|
645
700
|
fixTarget = preservedFixTarget(env, constitution, request.repoConfigFile);
|
|
@@ -716,25 +771,14 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
716
771
|
// Clean check — clear stale cross-run history so a future, genuinely different
|
|
717
772
|
// failure is not mistaken for a repeat of one already resolved.
|
|
718
773
|
await ports.reworkHistory?.clear(request.issue);
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
await ports.writeBenchmarkArtifacts?.({
|
|
728
|
-
outcome: 'ready',
|
|
729
|
-
route,
|
|
730
|
-
branch: request.branch,
|
|
731
|
-
reworkRounds,
|
|
732
|
-
checkSummary,
|
|
733
|
-
reportPath,
|
|
734
|
-
diffBase: runStartDiffBase,
|
|
735
|
-
});
|
|
736
|
-
return { state: 'ready', route, branch: request.branch, reworkRounds };
|
|
737
|
-
}
|
|
774
|
+
const unshipped = await finishWithoutShip(request, ports, log, {
|
|
775
|
+
route,
|
|
776
|
+
reworkRounds,
|
|
777
|
+
checkSummary,
|
|
778
|
+
diffBase: runStartDiffBase,
|
|
779
|
+
});
|
|
780
|
+
if (unshipped)
|
|
781
|
+
return unshipped;
|
|
738
782
|
// PR classifier gate (#1724): escalate-only — a B/C floor (or any failure) adds the gate label.
|
|
739
783
|
let reviewRouting;
|
|
740
784
|
if (request.prClassifier) {
|
|
@@ -774,6 +818,7 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
774
818
|
rules: request.prClassifier.rules,
|
|
775
819
|
modelPin: request.prClassifier.modelPin,
|
|
776
820
|
router: ports.router,
|
|
821
|
+
sandbox: request.sandboxPolicy,
|
|
777
822
|
onLog: (msg) => log('router', msg),
|
|
778
823
|
};
|
|
779
824
|
let shadow;
|
|
@@ -808,26 +853,19 @@ async function runIssueOnce(initialRequest, policy, ports) {
|
|
|
808
853
|
if (parked)
|
|
809
854
|
return await terminalParked(parked.reason, parked.message, parked.checkFailure, parked.ciFailure);
|
|
810
855
|
if (planSlice) {
|
|
811
|
-
const
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
});
|
|
825
|
-
log('ship', `recorded slice ${index}/${count} as ${state} (PR #${ship.prNumber}, branch ${request.branch}) in the slice plan comment`);
|
|
826
|
-
}
|
|
827
|
-
catch (err) {
|
|
828
|
-
return await terminalParked('fail', `slice ${index}/${count} PR #${ship.prNumber} opened but recording it in the slice plan comment failed: ${errorMessage(err)}`);
|
|
829
|
-
}
|
|
830
|
-
}
|
|
856
|
+
const failure = await recordShippedSlice({
|
|
857
|
+
octokit: ports.octokit,
|
|
858
|
+
repo: request.repo,
|
|
859
|
+
issue: request.issue,
|
|
860
|
+
branch: request.branch,
|
|
861
|
+
plan: planSlice.plan,
|
|
862
|
+
index: planSlice.index,
|
|
863
|
+
ship,
|
|
864
|
+
stackMode: request.sizeGateMode === 'stack',
|
|
865
|
+
log,
|
|
866
|
+
});
|
|
867
|
+
if (failure !== undefined)
|
|
868
|
+
return await terminalParked('fail', failure);
|
|
831
869
|
}
|
|
832
870
|
if (request.skipCI) {
|
|
833
871
|
log('skip-ci', `skipping CI watch (FACTORY_SKIP_CI=1) — merging on local verify`);
|