@telora/daemon 0.22.131 → 0.22.136
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/build-info.json +6 -3
- package/dist/audit/audit-hooks.d.ts +6 -2
- package/dist/audit/audit-hooks.d.ts.map +1 -1
- package/dist/audit/audit-hooks.js +12 -5
- package/dist/audit/audit-hooks.js.map +1 -1
- package/dist/audit/audit-phase.js +1 -1
- package/dist/audit/audit-phase.js.map +1 -1
- package/dist/backends/index.d.ts.map +1 -1
- package/dist/backends/index.js +1 -0
- package/dist/backends/index.js.map +1 -1
- package/dist/completion/completion-phase-registry.d.ts +4 -0
- package/dist/completion/completion-phase-registry.d.ts.map +1 -1
- package/dist/completion/completion-phase-registry.js +63 -18
- package/dist/completion/completion-phase-registry.js.map +1 -1
- package/dist/completion/exit-classification.d.ts.map +1 -1
- package/dist/completion/exit-classification.js +1 -0
- package/dist/completion/exit-classification.js.map +1 -1
- package/dist/completion/review-approved-head-gate.d.ts +53 -0
- package/dist/completion/review-approved-head-gate.d.ts.map +1 -0
- package/dist/completion/review-approved-head-gate.js +124 -0
- package/dist/completion/review-approved-head-gate.js.map +1 -0
- package/dist/completion/review-census-record.d.ts +52 -0
- package/dist/completion/review-census-record.d.ts.map +1 -0
- package/dist/completion/review-census-record.js +145 -0
- package/dist/completion/review-census-record.js.map +1 -0
- package/dist/completion/review-exit-deps.d.ts +5 -1
- package/dist/completion/review-exit-deps.d.ts.map +1 -1
- package/dist/completion/review-exit-deps.js +7 -2
- package/dist/completion/review-exit-deps.js.map +1 -1
- package/dist/completion/review-exit-phase.d.ts.map +1 -1
- package/dist/completion/review-exit-phase.js +29 -16
- package/dist/completion/review-exit-phase.js.map +1 -1
- package/dist/completion/review-exit-progress.d.ts +8 -0
- package/dist/completion/review-exit-progress.d.ts.map +1 -1
- package/dist/completion/review-exit-progress.js +14 -0
- package/dist/completion/review-exit-progress.js.map +1 -1
- package/dist/completion/review-exit-shortfall-park.d.ts +14 -0
- package/dist/completion/review-exit-shortfall-park.d.ts.map +1 -0
- package/dist/completion/review-exit-shortfall-park.js +52 -0
- package/dist/completion/review-exit-shortfall-park.js.map +1 -0
- package/dist/completion/review-exit-shortfall.js +1 -1
- package/dist/completion/review-exit-shortfall.js.map +1 -1
- package/dist/completion/review-exit-verdict-gate.d.ts +58 -0
- package/dist/completion/review-exit-verdict-gate.d.ts.map +1 -1
- package/dist/completion/review-exit-verdict-gate.js +68 -8
- package/dist/completion/review-exit-verdict-gate.js.map +1 -1
- package/dist/completion/review-next-step.d.ts +15 -3
- package/dist/completion/review-next-step.d.ts.map +1 -1
- package/dist/completion/review-next-step.js +7 -2
- package/dist/completion/review-next-step.js.map +1 -1
- package/dist/completion/standing-approval-convergence.d.ts +68 -0
- package/dist/completion/standing-approval-convergence.d.ts.map +1 -0
- package/dist/completion/standing-approval-convergence.js +230 -0
- package/dist/completion/standing-approval-convergence.js.map +1 -0
- package/dist/completion/standing-approval-deps.d.ts +5 -0
- package/dist/completion/standing-approval-deps.d.ts.map +1 -0
- package/dist/completion/standing-approval-deps.js +37 -0
- package/dist/completion/standing-approval-deps.js.map +1 -0
- package/dist/completion/state-cascade.d.ts +11 -0
- package/dist/completion/state-cascade.d.ts.map +1 -1
- package/dist/completion/state-cascade.js +40 -1
- package/dist/completion/state-cascade.js.map +1 -1
- package/dist/completion/team-lifecycle.d.ts +14 -2
- package/dist/completion/team-lifecycle.d.ts.map +1 -1
- package/dist/completion/team-lifecycle.js +36 -36
- package/dist/completion/team-lifecycle.js.map +1 -1
- package/dist/completion/terminated-work-reconcile.d.ts +3 -1
- package/dist/completion/terminated-work-reconcile.d.ts.map +1 -1
- package/dist/completion/terminated-work-reconcile.js +24 -11
- package/dist/completion/terminated-work-reconcile.js.map +1 -1
- package/dist/delivery/delivery-advance-block.d.ts +6 -0
- package/dist/delivery/delivery-advance-block.d.ts.map +1 -1
- package/dist/delivery/delivery-advance-block.js +29 -3
- package/dist/delivery/delivery-advance-block.js.map +1 -1
- package/dist/delivery/delivery-reconciler.d.ts.map +1 -1
- package/dist/delivery/delivery-reconciler.js +4 -1
- package/dist/delivery/delivery-reconciler.js.map +1 -1
- package/dist/delivery/operator-hold.d.ts.map +1 -1
- package/dist/delivery/operator-hold.js +3 -1
- package/dist/delivery/operator-hold.js.map +1 -1
- package/dist/directive/directive-executor.d.ts.map +1 -1
- package/dist/directive/directive-executor.js +6 -0
- package/dist/directive/directive-executor.js.map +1 -1
- package/dist/directive/directive-queue.d.ts +8 -0
- package/dist/directive/directive-queue.d.ts.map +1 -1
- package/dist/directive/directive-queue.js +20 -0
- package/dist/directive/directive-queue.js.map +1 -1
- package/dist/directive/phase-sync.d.ts +5 -0
- package/dist/directive/phase-sync.d.ts.map +1 -1
- package/dist/directive/phase-sync.js +11 -1
- package/dist/directive/phase-sync.js.map +1 -1
- package/dist/directive/stranded-review-reroute.d.ts +37 -0
- package/dist/directive/stranded-review-reroute.d.ts.map +1 -0
- package/dist/directive/stranded-review-reroute.js +150 -0
- package/dist/directive/stranded-review-reroute.js.map +1 -0
- package/dist/focus/focus-engine.d.ts.map +1 -1
- package/dist/focus/focus-engine.js +15 -3
- package/dist/focus/focus-engine.js.map +1 -1
- package/dist/focus/focus-executor.d.ts.map +1 -1
- package/dist/focus/focus-executor.js +9 -65
- package/dist/focus/focus-executor.js.map +1 -1
- package/dist/focus/focus-lifecycle.d.ts +12 -0
- package/dist/focus/focus-lifecycle.d.ts.map +1 -1
- package/dist/focus/focus-lifecycle.js +66 -37
- package/dist/focus/focus-lifecycle.js.map +1 -1
- package/dist/focus/focus-phase.d.ts.map +1 -1
- package/dist/focus/focus-phase.js +6 -0
- package/dist/focus/focus-phase.js.map +1 -1
- package/dist/focus/focus-spawn-decision.d.ts.map +1 -1
- package/dist/focus/focus-spawn-decision.js +1 -0
- package/dist/focus/focus-spawn-decision.js.map +1 -1
- package/dist/focus/focus-team-state.d.ts +10 -0
- package/dist/focus/focus-team-state.d.ts.map +1 -1
- package/dist/focus/focus-team-state.js +19 -1
- package/dist/focus/focus-team-state.js.map +1 -1
- package/dist/focus/listener-auto-advance.d.ts.map +1 -1
- package/dist/focus/listener-auto-advance.js +1 -0
- package/dist/focus/listener-auto-advance.js.map +1 -1
- package/dist/focus/listener-spawn.d.ts +10 -0
- package/dist/focus/listener-spawn.d.ts.map +1 -1
- package/dist/focus/listener-spawn.js +46 -4
- package/dist/focus/listener-spawn.js.map +1 -1
- package/dist/focus/listener-state.d.ts.map +1 -1
- package/dist/focus/listener-state.js +11 -1
- package/dist/focus/listener-state.js.map +1 -1
- package/dist/focus/listener.d.ts +42 -0
- package/dist/focus/listener.d.ts.map +1 -1
- package/dist/focus/listener.js +62 -33
- package/dist/focus/listener.js.map +1 -1
- package/dist/focus/pending-review-approved-head.d.ts +41 -0
- package/dist/focus/pending-review-approved-head.d.ts.map +1 -0
- package/dist/focus/pending-review-approved-head.js +198 -0
- package/dist/focus/pending-review-approved-head.js.map +1 -0
- package/dist/focus/pending-spawn-pass-deps.d.ts +5 -0
- package/dist/focus/pending-spawn-pass-deps.d.ts.map +1 -1
- package/dist/focus/pending-spawn-pass-deps.js +2 -1
- package/dist/focus/pending-spawn-pass-deps.js.map +1 -1
- package/dist/focus/pending-spawn-review-next-step.d.ts.map +1 -1
- package/dist/focus/pending-spawn-review-next-step.js +26 -4
- package/dist/focus/pending-spawn-review-next-step.js.map +1 -1
- package/dist/focus/review-spawn-coverage.d.ts +87 -0
- package/dist/focus/review-spawn-coverage.d.ts.map +1 -0
- package/dist/focus/review-spawn-coverage.js +104 -0
- package/dist/focus/review-spawn-coverage.js.map +1 -0
- package/dist/focus/session-health.d.ts +5 -2
- package/dist/focus/session-health.d.ts.map +1 -1
- package/dist/focus/session-health.js +2 -1
- package/dist/focus/session-health.js.map +1 -1
- package/dist/focus/session-process-reap.d.ts +50 -0
- package/dist/focus/session-process-reap.d.ts.map +1 -0
- package/dist/focus/session-process-reap.js +77 -0
- package/dist/focus/session-process-reap.js.map +1 -0
- package/dist/focus/unchanged-reviewed-head.d.ts +40 -0
- package/dist/focus/unchanged-reviewed-head.d.ts.map +1 -0
- package/dist/focus/unchanged-reviewed-head.js +84 -0
- package/dist/focus/unchanged-reviewed-head.js.map +1 -0
- package/dist/focus/verify-open-issues.d.ts +4 -19
- package/dist/focus/verify-open-issues.d.ts.map +1 -1
- package/dist/focus/verify-open-issues.js +83 -41
- package/dist/focus/verify-open-issues.js.map +1 -1
- package/dist/git/focus-integration-sync.d.ts +61 -0
- package/dist/git/focus-integration-sync.d.ts.map +1 -0
- package/dist/git/focus-integration-sync.js +73 -0
- package/dist/git/focus-integration-sync.js.map +1 -0
- package/dist/git/focus-own-delta.d.ts +38 -0
- package/dist/git/focus-own-delta.d.ts.map +1 -0
- package/dist/git/focus-own-delta.js +193 -0
- package/dist/git/focus-own-delta.js.map +1 -0
- package/dist/git/index.d.ts +2 -0
- package/dist/git/index.d.ts.map +1 -1
- package/dist/git/index.js +4 -0
- package/dist/git/index.js.map +1 -1
- package/dist/git/merge.d.ts.map +1 -1
- package/dist/git/merge.js +11 -1
- package/dist/git/merge.js.map +1 -1
- package/dist/git/resolution-restore.d.ts +66 -0
- package/dist/git/resolution-restore.d.ts.map +1 -0
- package/dist/git/resolution-restore.js +331 -0
- package/dist/git/resolution-restore.js.map +1 -0
- package/dist/loops/engine.d.ts.map +1 -1
- package/dist/loops/engine.js.map +1 -1
- package/dist/merge/abandoned-merge-recovery.d.ts +72 -0
- package/dist/merge/abandoned-merge-recovery.d.ts.map +1 -0
- package/dist/merge/abandoned-merge-recovery.js +117 -0
- package/dist/merge/abandoned-merge-recovery.js.map +1 -0
- package/dist/merge/focus-merge.d.ts +19 -0
- package/dist/merge/focus-merge.d.ts.map +1 -1
- package/dist/merge/focus-merge.js +136 -99
- package/dist/merge/focus-merge.js.map +1 -1
- package/dist/merge/merge-back-activity.d.ts +11 -0
- package/dist/merge/merge-back-activity.d.ts.map +1 -0
- package/dist/merge/merge-back-activity.js +57 -0
- package/dist/merge/merge-back-activity.js.map +1 -0
- package/dist/merge/merge-back-conflict.d.ts +119 -0
- package/dist/merge/merge-back-conflict.d.ts.map +1 -0
- package/dist/merge/merge-back-conflict.js +178 -0
- package/dist/merge/merge-back-conflict.js.map +1 -0
- package/dist/merge/merge-back-followup.d.ts +109 -0
- package/dist/merge/merge-back-followup.d.ts.map +1 -0
- package/dist/merge/merge-back-followup.js +316 -0
- package/dist/merge/merge-back-followup.js.map +1 -0
- package/dist/merge/merge-back-loop.d.ts +2 -0
- package/dist/merge/merge-back-loop.d.ts.map +1 -1
- package/dist/merge/merge-back-loop.js +14 -15
- package/dist/merge/merge-back-loop.js.map +1 -1
- package/dist/merge/merge-conflict-escalation.d.ts +12 -0
- package/dist/merge/merge-conflict-escalation.d.ts.map +1 -1
- package/dist/merge/merge-conflict-escalation.js +37 -2
- package/dist/merge/merge-conflict-escalation.js.map +1 -1
- package/dist/merge/merge-gate-coverage.d.ts.map +1 -1
- package/dist/merge/merge-gate-coverage.js +1 -0
- package/dist/merge/merge-gate-coverage.js.map +1 -1
- package/dist/prompt/prompt-listing.d.ts +5 -0
- package/dist/prompt/prompt-listing.d.ts.map +1 -1
- package/dist/prompt/prompt-listing.js +35 -0
- package/dist/prompt/prompt-listing.js.map +1 -1
- package/dist/prompt-sections/routing-decider-sections.d.ts.map +1 -1
- package/dist/prompt-sections/routing-decider-sections.js +2 -0
- package/dist/prompt-sections/routing-decider-sections.js.map +1 -1
- package/dist/prompt-sections/shortfall-park-section.d.ts +43 -0
- package/dist/prompt-sections/shortfall-park-section.d.ts.map +1 -0
- package/dist/prompt-sections/shortfall-park-section.js +36 -0
- package/dist/prompt-sections/shortfall-park-section.js.map +1 -0
- package/dist/queries/agent-resolvable-promotion.d.ts +16 -2
- package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
- package/dist/queries/agent-resolvable-promotion.js +30 -3
- package/dist/queries/agent-resolvable-promotion.js.map +1 -1
- package/dist/queries/cause-key.d.ts +17 -22
- package/dist/queries/cause-key.d.ts.map +1 -1
- package/dist/queries/cause-key.js +50 -1
- package/dist/queries/cause-key.js.map +1 -1
- package/dist/queries/commit-attributions.d.ts +18 -0
- package/dist/queries/commit-attributions.d.ts.map +1 -0
- package/dist/queries/commit-attributions.js +39 -0
- package/dist/queries/commit-attributions.js.map +1 -0
- package/dist/queries/deliveries.d.ts.map +1 -1
- package/dist/queries/deliveries.js +3 -1
- package/dist/queries/deliveries.js.map +1 -1
- package/dist/queries/delivery-gate-state.d.ts +21 -5
- package/dist/queries/delivery-gate-state.d.ts.map +1 -1
- package/dist/queries/delivery-gate-state.js +35 -9
- package/dist/queries/delivery-gate-state.js.map +1 -1
- package/dist/queries/escalation-consumption.d.ts.map +1 -1
- package/dist/queries/escalation-consumption.js +2 -1
- package/dist/queries/escalation-consumption.js.map +1 -1
- package/dist/queries/escalation-field-bounds.d.ts +48 -0
- package/dist/queries/escalation-field-bounds.d.ts.map +1 -0
- package/dist/queries/escalation-field-bounds.js +83 -0
- package/dist/queries/escalation-field-bounds.js.map +1 -0
- package/dist/queries/escalation-refusal.d.ts +88 -0
- package/dist/queries/escalation-refusal.d.ts.map +1 -0
- package/dist/queries/escalation-refusal.js +217 -0
- package/dist/queries/escalation-refusal.js.map +1 -0
- package/dist/queries/escalation-suppression.d.ts +6 -0
- package/dist/queries/escalation-suppression.d.ts.map +1 -1
- package/dist/queries/escalation-suppression.js +4 -13
- package/dist/queries/escalation-suppression.js.map +1 -1
- package/dist/queries/escalations.d.ts +5 -13
- package/dist/queries/escalations.d.ts.map +1 -1
- package/dist/queries/escalations.js +25 -30
- package/dist/queries/escalations.js.map +1 -1
- package/dist/queries/filing-observation.d.ts.map +1 -1
- package/dist/queries/filing-observation.js +3 -1
- package/dist/queries/filing-observation.js.map +1 -1
- package/dist/queries/focus-review-approval.d.ts +2 -0
- package/dist/queries/focus-review-approval.d.ts.map +1 -1
- package/dist/queries/focus-review-approval.js +7 -2
- package/dist/queries/focus-review-approval.js.map +1 -1
- package/dist/queries/focuses.d.ts.map +1 -1
- package/dist/queries/focuses.js +2 -1
- package/dist/queries/focuses.js.map +1 -1
- package/dist/queries/incident-correlation.d.ts.map +1 -1
- package/dist/queries/incident-correlation.js +4 -1
- package/dist/queries/incident-correlation.js.map +1 -1
- package/dist/queries/misattributed-commits-record.d.ts +26 -0
- package/dist/queries/misattributed-commits-record.d.ts.map +1 -0
- package/dist/queries/misattributed-commits-record.js +5 -0
- package/dist/queries/misattributed-commits-record.js.map +1 -0
- package/dist/queries/reality-tree.d.ts.map +1 -1
- package/dist/queries/reality-tree.js +2 -1
- package/dist/queries/reality-tree.js.map +1 -1
- package/dist/queries/schemas.d.ts +3 -0
- package/dist/queries/schemas.d.ts.map +1 -1
- package/dist/queries/schemas.js +1 -0
- package/dist/queries/schemas.js.map +1 -1
- package/dist/queries/shared.js +1 -1
- package/dist/queries/shortfall-park-record.d.ts +48 -0
- package/dist/queries/shortfall-park-record.d.ts.map +1 -0
- package/dist/queries/shortfall-park-record.js +31 -0
- package/dist/queries/shortfall-park-record.js.map +1 -0
- package/dist/queries/shortfall-rulings.d.ts +71 -0
- package/dist/queries/shortfall-rulings.d.ts.map +1 -0
- package/dist/queries/shortfall-rulings.js +53 -0
- package/dist/queries/shortfall-rulings.js.map +1 -0
- package/dist/queries/verification.d.ts +20 -1
- package/dist/queries/verification.d.ts.map +1 -1
- package/dist/queries/verification.js +48 -8
- package/dist/queries/verification.js.map +1 -1
- package/dist/resolvers/index.d.ts +2 -2
- package/dist/resolvers/index.d.ts.map +1 -1
- package/dist/resolvers/index.js +1 -1
- package/dist/resolvers/index.js.map +1 -1
- package/dist/resolvers/shared/delivery-trailer.d.ts +99 -0
- package/dist/resolvers/shared/delivery-trailer.d.ts.map +1 -0
- package/dist/resolvers/shared/delivery-trailer.js +103 -0
- package/dist/resolvers/shared/delivery-trailer.js.map +1 -0
- package/dist/resolvers/shared/git-diff.d.ts +11 -84
- package/dist/resolvers/shared/git-diff.d.ts.map +1 -1
- package/dist/resolvers/shared/git-diff.js +17 -84
- package/dist/resolvers/shared/git-diff.js.map +1 -1
- package/dist/resolvers/shared/review-window-commits.d.ts.map +1 -1
- package/dist/resolvers/shared/review-window-commits.js +1 -0
- package/dist/resolvers/shared/review-window-commits.js.map +1 -1
- package/dist/session/session-lineage.d.ts.map +1 -1
- package/dist/session/session-lineage.js +1 -0
- package/dist/session/session-lineage.js.map +1 -1
- package/dist/shell/config.d.ts +2 -1
- package/dist/shell/config.d.ts.map +1 -1
- package/dist/shell/config.js +21 -4
- package/dist/shell/config.js.map +1 -1
- package/dist/shell/crash-recovery.d.ts +3 -7
- package/dist/shell/crash-recovery.d.ts.map +1 -1
- package/dist/shell/crash-recovery.js +28 -31
- package/dist/shell/crash-recovery.js.map +1 -1
- package/dist/shell/orphan-capture.d.ts +42 -0
- package/dist/shell/orphan-capture.d.ts.map +1 -0
- package/dist/shell/orphan-capture.js +53 -0
- package/dist/shell/orphan-capture.js.map +1 -0
- package/dist/shell/worker-pidfile.d.ts +22 -4
- package/dist/shell/worker-pidfile.d.ts.map +1 -1
- package/dist/shell/worker-pidfile.js +51 -13
- package/dist/shell/worker-pidfile.js.map +1 -1
- package/dist/spawn/helpers.d.ts +3 -0
- package/dist/spawn/helpers.d.ts.map +1 -1
- package/dist/spawn/helpers.js +28 -9
- package/dist/spawn/helpers.js.map +1 -1
- package/dist/spawn/lead-launch.d.ts +34 -0
- package/dist/spawn/lead-launch.d.ts.map +1 -0
- package/dist/spawn/lead-launch.js +34 -0
- package/dist/spawn/lead-launch.js.map +1 -0
- package/dist/spawn/lead-process-ownership.d.ts +91 -0
- package/dist/spawn/lead-process-ownership.d.ts.map +1 -0
- package/dist/spawn/lead-process-ownership.js +120 -0
- package/dist/spawn/lead-process-ownership.js.map +1 -0
- package/dist/spawn/lifecycle.d.ts +43 -3
- package/dist/spawn/lifecycle.d.ts.map +1 -1
- package/dist/spawn/lifecycle.js +75 -44
- package/dist/spawn/lifecycle.js.map +1 -1
- package/dist/spawn/liveness.d.ts.map +1 -1
- package/dist/spawn/liveness.js +5 -1
- package/dist/spawn/liveness.js.map +1 -1
- package/dist/spawn/one-shot-process-ownership.d.ts +48 -0
- package/dist/spawn/one-shot-process-ownership.d.ts.map +1 -0
- package/dist/spawn/one-shot-process-ownership.js +44 -0
- package/dist/spawn/one-shot-process-ownership.js.map +1 -0
- package/dist/spawn/process-group-kill.d.ts +79 -0
- package/dist/spawn/process-group-kill.d.ts.map +1 -0
- package/dist/spawn/process-group-kill.js +210 -0
- package/dist/spawn/process-group-kill.js.map +1 -0
- package/dist/spawn/process-spawn.d.ts +18 -1
- package/dist/spawn/process-spawn.d.ts.map +1 -1
- package/dist/spawn/process-spawn.js +51 -20
- package/dist/spawn/process-spawn.js.map +1 -1
- package/dist/spawn/resolution-budget.d.ts +38 -0
- package/dist/spawn/resolution-budget.d.ts.map +1 -0
- package/dist/spawn/resolution-budget.js +87 -0
- package/dist/spawn/resolution-budget.js.map +1 -0
- package/dist/spawn/review-hold-park.d.ts.map +1 -1
- package/dist/spawn/review-hold-park.js +37 -5
- package/dist/spawn/review-hold-park.js.map +1 -1
- package/dist/spawn/spawn-cooldown.d.ts.map +1 -1
- package/dist/spawn/spawn-cooldown.js +9 -0
- package/dist/spawn/spawn-cooldown.js.map +1 -1
- package/dist/spawn/untracked-lead-sweep.d.ts +29 -0
- package/dist/spawn/untracked-lead-sweep.d.ts.map +1 -0
- package/dist/spawn/untracked-lead-sweep.js +100 -0
- package/dist/spawn/untracked-lead-sweep.js.map +1 -0
- package/dist/spawn/worker-registry.d.ts.map +1 -1
- package/dist/spawn/worker-registry.js +4 -1
- package/dist/spawn/worker-registry.js.map +1 -1
- package/dist/spawn/worktree-session.d.ts.map +1 -1
- package/dist/spawn/worktree-session.js +8 -6
- package/dist/spawn/worktree-session.js.map +1 -1
- package/dist/testing/fixtures/exit-capture-verify.d.ts +41 -0
- package/dist/testing/fixtures/exit-capture-verify.d.ts.map +1 -0
- package/dist/testing/fixtures/exit-capture-verify.js +152 -0
- package/dist/testing/fixtures/exit-capture-verify.js.map +1 -0
- package/dist/testing/fixtures/index.js +1 -1
- package/dist/testing/fixtures/pending-spawn-world.d.ts +7 -0
- package/dist/testing/fixtures/pending-spawn-world.d.ts.map +1 -1
- package/dist/testing/fixtures/pending-spawn-world.js +21 -1
- package/dist/testing/fixtures/pending-spawn-world.js.map +1 -1
- package/dist/testing/fixtures/stubborn-lead-process.d.ts +22 -0
- package/dist/testing/fixtures/stubborn-lead-process.d.ts.map +1 -0
- package/dist/testing/fixtures/stubborn-lead-process.js +68 -0
- package/dist/testing/fixtures/stubborn-lead-process.js.map +1 -0
- package/dist/types/config.d.ts +13 -0
- package/dist/types/config.d.ts.map +1 -1
- package/dist/types/focus.d.ts +7 -0
- package/dist/types/focus.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/verify/commit-verdict-record.d.ts +13 -3
- package/dist/verify/commit-verdict-record.d.ts.map +1 -1
- package/dist/verify/commit-verdict-record.js +45 -25
- package/dist/verify/commit-verdict-record.js.map +1 -1
- package/dist/verify/credit-rearm.d.ts +18 -0
- package/dist/verify/credit-rearm.d.ts.map +1 -0
- package/dist/verify/credit-rearm.js +69 -0
- package/dist/verify/credit-rearm.js.map +1 -0
- package/dist/verify/delivery-commit-set.d.ts +10 -0
- package/dist/verify/delivery-commit-set.d.ts.map +1 -0
- package/dist/verify/delivery-commit-set.js +82 -0
- package/dist/verify/delivery-commit-set.js.map +1 -0
- package/dist/verify/explicit-rearm.d.ts.map +1 -1
- package/dist/verify/explicit-rearm.js +2 -0
- package/dist/verify/explicit-rearm.js.map +1 -1
- package/dist/verify/failure-signature.d.ts.map +1 -1
- package/dist/verify/failure-signature.js +1 -0
- package/dist/verify/failure-signature.js.map +1 -1
- package/dist/verify/gate-run-registry.d.ts.map +1 -1
- package/dist/verify/gate-run-registry.js +3 -0
- package/dist/verify/gate-run-registry.js.map +1 -1
- package/dist/verify/injection-stamp.d.ts +29 -0
- package/dist/verify/injection-stamp.d.ts.map +1 -0
- package/dist/verify/injection-stamp.js +139 -0
- package/dist/verify/injection-stamp.js.map +1 -0
- package/dist/verify/misattributed-commits-read.d.ts +31 -0
- package/dist/verify/misattributed-commits-read.d.ts.map +1 -0
- package/dist/verify/misattributed-commits-read.js +47 -0
- package/dist/verify/misattributed-commits-read.js.map +1 -0
- package/dist/verify/misattributed-commits.d.ts +52 -0
- package/dist/verify/misattributed-commits.d.ts.map +1 -0
- package/dist/verify/misattributed-commits.js +148 -0
- package/dist/verify/misattributed-commits.js.map +1 -0
- package/dist/verify/no-own-delta-verdict.d.ts +47 -0
- package/dist/verify/no-own-delta-verdict.d.ts.map +1 -0
- package/dist/verify/no-own-delta-verdict.js +74 -0
- package/dist/verify/no-own-delta-verdict.js.map +1 -0
- package/dist/verify/shortfall-park-escalation.d.ts +41 -0
- package/dist/verify/shortfall-park-escalation.d.ts.map +1 -0
- package/dist/verify/shortfall-park-escalation.js +177 -0
- package/dist/verify/shortfall-park-escalation.js.map +1 -0
- package/dist/verify/shortfall-park.d.ts +109 -0
- package/dist/verify/shortfall-park.d.ts.map +1 -0
- package/dist/verify/shortfall-park.js +208 -0
- package/dist/verify/shortfall-park.js.map +1 -0
- package/dist/verify/shortfall-repeat.d.ts +47 -16
- package/dist/verify/shortfall-repeat.d.ts.map +1 -1
- package/dist/verify/shortfall-repeat.js +77 -23
- package/dist/verify/shortfall-repeat.js.map +1 -1
- package/dist/verify/shortfall-rulings.d.ts +106 -0
- package/dist/verify/shortfall-rulings.d.ts.map +1 -0
- package/dist/verify/shortfall-rulings.js +118 -0
- package/dist/verify/shortfall-rulings.js.map +1 -0
- package/dist/verify/stall-detectors.d.ts.map +1 -1
- package/dist/verify/stall-detectors.js +10 -4
- package/dist/verify/stall-detectors.js.map +1 -1
- package/dist/verify/verification-attribution-base.d.ts +26 -0
- package/dist/verify/verification-attribution-base.d.ts.map +1 -0
- package/dist/verify/verification-attribution-base.js +127 -0
- package/dist/verify/verification-attribution-base.js.map +1 -0
- package/dist/verify/verification-attribution-deps.d.ts +32 -0
- package/dist/verify/verification-attribution-deps.d.ts.map +1 -0
- package/dist/verify/verification-attribution-deps.js +209 -0
- package/dist/verify/verification-attribution-deps.js.map +1 -0
- package/dist/verify/verification-baseline.d.ts +10 -0
- package/dist/verify/verification-baseline.d.ts.map +1 -1
- package/dist/verify/verification-baseline.js +35 -13
- package/dist/verify/verification-baseline.js.map +1 -1
- package/dist/verify/verification-commit-sharing.d.ts.map +1 -1
- package/dist/verify/verification-commit-sharing.js +30 -8
- package/dist/verify/verification-commit-sharing.js.map +1 -1
- package/dist/verify/verification-config.d.ts.map +1 -1
- package/dist/verify/verification-config.js +2 -0
- package/dist/verify/verification-config.js.map +1 -1
- package/dist/verify/verification-default-on.d.ts +3 -0
- package/dist/verify/verification-default-on.d.ts.map +1 -1
- package/dist/verify/verification-default-on.js +9 -1
- package/dist/verify/verification-default-on.js.map +1 -1
- package/dist/verify/verification-deps-default.d.ts.map +1 -1
- package/dist/verify/verification-deps-default.js +61 -120
- package/dist/verify/verification-deps-default.js.map +1 -1
- package/dist/verify/verification-deps.d.ts +26 -4
- package/dist/verify/verification-deps.d.ts.map +1 -1
- package/dist/verify/verification-deterministic.d.ts +15 -0
- package/dist/verify/verification-deterministic.d.ts.map +1 -1
- package/dist/verify/verification-deterministic.js +1 -12
- package/dist/verify/verification-deterministic.js.map +1 -1
- package/dist/verify/verification-engine.d.ts +9 -6
- package/dist/verify/verification-engine.d.ts.map +1 -1
- package/dist/verify/verification-engine.js +43 -62
- package/dist/verify/verification-engine.js.map +1 -1
- package/dist/verify/verification-evidence-unavailable-feedback.d.ts +2 -1
- package/dist/verify/verification-evidence-unavailable-feedback.d.ts.map +1 -1
- package/dist/verify/verification-evidence-unavailable-feedback.js +20 -1
- package/dist/verify/verification-evidence-unavailable-feedback.js.map +1 -1
- package/dist/verify/verification-failure-parser.d.ts +93 -3
- package/dist/verify/verification-failure-parser.d.ts.map +1 -1
- package/dist/verify/verification-failure-parser.js +172 -3
- package/dist/verify/verification-failure-parser.js.map +1 -1
- package/dist/verify/verification-feedback.d.ts +60 -43
- package/dist/verify/verification-feedback.d.ts.map +1 -1
- package/dist/verify/verification-feedback.js +115 -120
- package/dist/verify/verification-feedback.js.map +1 -1
- package/dist/verify/verification-history-reset.d.ts +2 -1
- package/dist/verify/verification-history-reset.d.ts.map +1 -1
- package/dist/verify/verification-history-reset.js +4 -2
- package/dist/verify/verification-history-reset.js.map +1 -1
- package/dist/verify/verification-rework-issue.d.ts +87 -0
- package/dist/verify/verification-rework-issue.d.ts.map +1 -0
- package/dist/verify/verification-rework-issue.js +212 -0
- package/dist/verify/verification-rework-issue.js.map +1 -0
- package/dist/verify/verification-rework-messages.d.ts.map +1 -1
- package/dist/verify/verification-rework-messages.js +10 -0
- package/dist/verify/verification-rework-messages.js.map +1 -1
- package/dist/verify/verify-gate-stall.d.ts +2 -0
- package/dist/verify/verify-gate-stall.d.ts.map +1 -1
- package/dist/verify/verify-gate-stall.js +35 -9
- package/dist/verify/verify-gate-stall.js.map +1 -1
- package/dist/verify/verify-restatement.d.ts.map +1 -1
- package/dist/verify/verify-restatement.js +9 -2
- package/dist/verify/verify-restatement.js.map +1 -1
- package/dist/worktree/capture-attribution-read.d.ts +47 -0
- package/dist/worktree/capture-attribution-read.d.ts.map +1 -0
- package/dist/worktree/capture-attribution-read.js +98 -0
- package/dist/worktree/capture-attribution-read.js.map +1 -0
- package/dist/worktree/capture-attribution.d.ts +26 -0
- package/dist/worktree/capture-attribution.d.ts.map +1 -0
- package/dist/worktree/capture-attribution.js +111 -0
- package/dist/worktree/capture-attribution.js.map +1 -0
- package/dist/worktree/index.d.ts.map +1 -1
- package/dist/worktree/index.js +2 -1
- package/dist/worktree/index.js.map +1 -1
- package/dist/worktree/provision.d.ts.map +1 -1
- package/dist/worktree/provision.js +23 -6
- package/dist/worktree/provision.js.map +1 -1
- package/dist/worktree/safety.d.ts +14 -4
- package/dist/worktree/safety.d.ts.map +1 -1
- package/dist/worktree/safety.js +37 -7
- package/dist/worktree/safety.js.map +1 -1
- package/dist/worktree/scratch-guard.d.ts +53 -2
- package/dist/worktree/scratch-guard.d.ts.map +1 -1
- package/dist/worktree/scratch-guard.js +115 -30
- package/dist/worktree/scratch-guard.js.map +1 -1
- package/dist/worktree/unmerged-capture-escalation.d.ts +52 -0
- package/dist/worktree/unmerged-capture-escalation.d.ts.map +1 -0
- package/dist/worktree/unmerged-capture-escalation.js +64 -0
- package/dist/worktree/unmerged-capture-escalation.js.map +1 -0
- package/package.json +2 -2
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
-
// Pinned by: packages/daemon/src/verify/verification-
|
|
2
|
+
// Pinned by: packages/daemon/src/verify/verification-baseline.test.ts,
|
|
3
|
+
// packages/daemon/src/verify/verification-failure-parser.test.ts
|
|
3
4
|
// PINNED-BY-END
|
|
5
|
+
/**
|
|
6
|
+
* The version of the id SET this module yields for a given log. Anything that
|
|
7
|
+
* stores parsed ids to set-diff against later (the baseline cache) records it and
|
|
8
|
+
* refuses an entry of another version: ids parsed by an older parser are not
|
|
9
|
+
* comparable -- a base the old parser read as naming no failing test would charge
|
|
10
|
+
* every red it shares with HEAD as new. BUMP IT on any change to which ids a log
|
|
11
|
+
* yields (a new format, a changed id shape).
|
|
12
|
+
*
|
|
13
|
+
* 1: vitest JSON + TAP.
|
|
14
|
+
* 2: + vitest's default reporter.
|
|
15
|
+
* 3: + default-reporter failures whose `Failed Tests` banner is not in the text
|
|
16
|
+
* (a tail cut past it): test-file ` FAIL ` headers, else the run section's
|
|
17
|
+
* ` ❯ <file> (... failed)` / `× <name>` lines.
|
|
18
|
+
*/
|
|
19
|
+
export const FAILURE_PARSER_VERSION = 3;
|
|
4
20
|
/**
|
|
5
21
|
* Extract the set of failing-test ids from a runner's output.
|
|
6
22
|
*
|
|
@@ -14,14 +30,17 @@ export function parseFailingTests(output, runner = 'auto') {
|
|
|
14
30
|
return parseVitestJson(output);
|
|
15
31
|
if (runner === 'tap')
|
|
16
32
|
return parseTap(output);
|
|
17
|
-
|
|
33
|
+
if (runner === 'vitest-default')
|
|
34
|
+
return parseVitestDefault(output);
|
|
35
|
+
// auto: a vitest JSON report is a single JSON object; try it first, then the
|
|
36
|
+
// line formats (TAP and the vitest default reporter) together.
|
|
18
37
|
const trimmed = output.trimStart();
|
|
19
38
|
if (trimmed.startsWith('{')) {
|
|
20
39
|
const fromJson = parseVitestJson(output);
|
|
21
40
|
if (fromJson.size > 0)
|
|
22
41
|
return fromJson;
|
|
23
42
|
}
|
|
24
|
-
return parseTap(output);
|
|
43
|
+
return new Set([...parseTap(output), ...parseVitestDefault(output)]);
|
|
25
44
|
}
|
|
26
45
|
/**
|
|
27
46
|
* Parse a vitest `--reporter=json` blob. The report may be embedded in other
|
|
@@ -76,4 +95,154 @@ export function parseTap(output) {
|
|
|
76
95
|
}
|
|
77
96
|
return ids;
|
|
78
97
|
}
|
|
98
|
+
// eslint-disable-next-line no-control-regex -- matching the ESC byte is the point
|
|
99
|
+
const ANSI_ESCAPE = /\x1b\[[0-9;?]*[A-Za-z]/g;
|
|
100
|
+
/** `⎯⎯⎯ Failed Tests 2 ⎯⎯⎯` / `⎯⎯⎯ Failed Suites 1 ⎯⎯⎯`: opens a failure block. */
|
|
101
|
+
const FAILURE_BLOCK_BANNER = /^⎯+\s*Failed (?:Tests|Suites) \d+\s*⎯+$/;
|
|
102
|
+
/** `Test Files 2 failed | 1 passed (3)`: the run summary, which closes the blocks. */
|
|
103
|
+
const RUN_SUMMARY = /^Test Files\s/;
|
|
104
|
+
/** ` FAIL <header>`: one failing test (or suite) inside a failure block. */
|
|
105
|
+
const FAIL_HEADER = /^FAIL\s+(.+)$/;
|
|
106
|
+
/**
|
|
107
|
+
* A load failure's header repeats its file: `tests/a.test.ts [ tests/a.test.ts ]`
|
|
108
|
+
* (under a workspace project: `|web| tests/a.test.ts [ tests/a.test.ts ]`).
|
|
109
|
+
*/
|
|
110
|
+
const SUITE_FILE_SUFFIX = /^(.+?)\s+\[\s*(.+?)\s*\]$/;
|
|
111
|
+
/**
|
|
112
|
+
* Parse vitest's default-reporter log. Only ` FAIL ` headers INSIDE a
|
|
113
|
+
* `Failed Tests N` / `Failed Suites N` block count -- the same token elsewhere
|
|
114
|
+
* (a test's own printed output, an assertion message) is not a failure header --
|
|
115
|
+
* and a block ends at the `Test Files` summary, so several vitest runs in one log
|
|
116
|
+
* each contribute their own. ANSI colour is stripped first, so a TTY-coloured log
|
|
117
|
+
* and a piped one yield the same ids. A suite-level failure (the file failed to
|
|
118
|
+
* load, no individual test ran) is keyed by the file alone.
|
|
119
|
+
*
|
|
120
|
+
* BANNERLESS text (no `Failed Tests N` / `Failed Suites N` banner anywhere): the
|
|
121
|
+
* 4000-char stream tails a failed run carries inline keep the END of vitest's
|
|
122
|
+
* stderr failure block, so several long failure stacks push the banner out and
|
|
123
|
+
* every header after it would be dropped -- a red run naming no failing test
|
|
124
|
+
* (Tinker Tailor, 2026-09-17: `Tests 4 failed` recorded as zero failures). There,
|
|
125
|
+
* a header counts only when it names a TEST FILE (` FAIL <x.test.ts> > ...`), so
|
|
126
|
+
* a test's own printed `FAIL` text still is not one; and when no such header
|
|
127
|
+
* survives either, the run section's ` ❯ <file> (N tests | K failed)` lines with
|
|
128
|
+
* their `× <name>` children name `<file> > <name>` (the suite path is not printed
|
|
129
|
+
* there, so a nested test's id is shorter than its header id -- a set-diff then
|
|
130
|
+
* charges it as new: fail-closed, never a pass).
|
|
131
|
+
*/
|
|
132
|
+
export function parseVitestDefault(output) {
|
|
133
|
+
const lines = output.replace(ANSI_ESCAPE, '').split('\n').map((l) => l.trim());
|
|
134
|
+
const ids = new Set();
|
|
135
|
+
let inFailureBlock = false;
|
|
136
|
+
let sawBanner = false;
|
|
137
|
+
for (const line of lines) {
|
|
138
|
+
if (FAILURE_BLOCK_BANNER.test(line)) {
|
|
139
|
+
inFailureBlock = sawBanner = true;
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
if (RUN_SUMMARY.test(line)) {
|
|
143
|
+
inFailureBlock = false;
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
if (!inFailureBlock)
|
|
147
|
+
continue;
|
|
148
|
+
const id = failHeaderId(line);
|
|
149
|
+
if (id !== null)
|
|
150
|
+
ids.add(id);
|
|
151
|
+
}
|
|
152
|
+
if (sawBanner)
|
|
153
|
+
return ids;
|
|
154
|
+
for (const line of lines) {
|
|
155
|
+
const id = failHeaderId(line);
|
|
156
|
+
if (id !== null && TEST_FILE_HEADER.test(id))
|
|
157
|
+
ids.add(id);
|
|
158
|
+
}
|
|
159
|
+
return ids.size > 0 ? ids : parseRunSectionFailures(lines);
|
|
160
|
+
}
|
|
161
|
+
/** The id a ` FAIL ` header line names, or null when the line is not one. */
|
|
162
|
+
function failHeaderId(line) {
|
|
163
|
+
const m = FAIL_HEADER.exec(line);
|
|
164
|
+
if (!m)
|
|
165
|
+
return null;
|
|
166
|
+
const header = (m[1] ?? '').trim();
|
|
167
|
+
const suite = SUITE_FILE_SUFFIX.exec(header);
|
|
168
|
+
const loadFailedFile = suite?.[1] && suite[2] && suite[1].endsWith(suite[2]) ? suite[1] : null;
|
|
169
|
+
return loadFailedFile ?? header;
|
|
170
|
+
}
|
|
171
|
+
/** A header id that begins with a test file path (optionally under a `|project|` label). */
|
|
172
|
+
const TEST_FILE_HEADER = /^(?:\|[^|]+\|\s+)?\S+\.(?:test|spec)\.[cm]?[jt]sx?(?:\s+>|$)/;
|
|
173
|
+
/** ` ❯ <file> (3 tests | 2 failed) 16ms`: a run-section file line that reports failures. */
|
|
174
|
+
const RUN_SECTION_FILE = /^❯\s+(\S+\.(?:test|spec)\.[cm]?[jt]sx?)\s+\([^)]*\b\d+ failed\b[^)]*\)/;
|
|
175
|
+
/** `× <name> 10ms`: a failing test under a run-section file line. */
|
|
176
|
+
const RUN_SECTION_FAILED_TEST = /^×\s+(.+?)(?:\s+\d+(?:\.\d+)?m?s)?$/;
|
|
177
|
+
/** `<file> > <name>` for each `×` test under a failing ` ❯ <file>` run-section line. */
|
|
178
|
+
function parseRunSectionFailures(lines) {
|
|
179
|
+
const ids = new Set();
|
|
180
|
+
let file = null;
|
|
181
|
+
for (const line of lines) {
|
|
182
|
+
const fileLine = RUN_SECTION_FILE.exec(line);
|
|
183
|
+
if (fileLine) {
|
|
184
|
+
file = fileLine[1] ?? null;
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
const failed = file === null ? null : RUN_SECTION_FAILED_TEST.exec(line);
|
|
188
|
+
if (failed?.[1]) {
|
|
189
|
+
ids.add(`${file} > ${failed[1].trim()}`);
|
|
190
|
+
continue;
|
|
191
|
+
}
|
|
192
|
+
if (!line.startsWith('✓') && !line.startsWith('↓'))
|
|
193
|
+
file = null;
|
|
194
|
+
}
|
|
195
|
+
return ids;
|
|
196
|
+
}
|
|
197
|
+
/** vitest's run summary: `Tests 4 failed | 10541 passed (10545)`. */
|
|
198
|
+
const VITEST_TESTS_SUMMARY = /^Tests\s+(\d+) failed\b/;
|
|
199
|
+
/** node:test's TAP summary: `# fail 3`. */
|
|
200
|
+
const TAP_FAIL_SUMMARY = /^#\s*fail\s+(\d+)\s*$/;
|
|
201
|
+
/**
|
|
202
|
+
* The failure count the runner's own summary lines report (vitest `Tests N failed`,
|
|
203
|
+
* node:test `# fail N`), summed over every run in the log; null when the log
|
|
204
|
+
* prints no such summary. Pure.
|
|
205
|
+
*/
|
|
206
|
+
export function reportedFailureCount(output) {
|
|
207
|
+
if (typeof output !== 'string' || output.length === 0)
|
|
208
|
+
return null;
|
|
209
|
+
let total = null;
|
|
210
|
+
for (const rawLine of output.replace(ANSI_ESCAPE, '').split('\n')) {
|
|
211
|
+
const line = rawLine.trim();
|
|
212
|
+
const m = VITEST_TESTS_SUMMARY.exec(line) ?? TAP_FAIL_SUMMARY.exec(line);
|
|
213
|
+
if (m)
|
|
214
|
+
total = (total ?? 0) + Number(m[1]);
|
|
215
|
+
}
|
|
216
|
+
return total;
|
|
217
|
+
}
|
|
218
|
+
/** The leading word of a script name that marks a test stage (`test:targeted`, `test`, `e2e:smoke`). */
|
|
219
|
+
const TEST_STAGE_HEAD = /^(test|tests|spec|specs|e2e|vitest|jest|mocha|playwright)$/i;
|
|
220
|
+
/**
|
|
221
|
+
* Whether a gate stage label (verify/verification-gate-stages.ts: scripts nested
|
|
222
|
+
* by ` > `, optionally `--prefix <dir>`) names a stage that runs tests: its
|
|
223
|
+
* innermost script's leading `:`-separated word is a test word (`test:targeted`,
|
|
224
|
+
* `test --prefix packages/daemon`), so `lint:test-quality` and `typecheck:all`
|
|
225
|
+
* are not. Pure.
|
|
226
|
+
*/
|
|
227
|
+
export function isTestStage(label) {
|
|
228
|
+
const innermost = label.split(' > ').at(-1)?.trim().split(/\s+/)[0] ?? '';
|
|
229
|
+
return TEST_STAGE_HEAD.test(innermost.split(':')[0] ?? '');
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Whether a FAILED run is a parse failure, and its record: it exited non-zero,
|
|
233
|
+
* yielded zero failing-test ids, and either the gate charged no stage (nothing
|
|
234
|
+
* named what failed), the charged stage runs tests (isTestStage -- a red test
|
|
235
|
+
* stage with no id read is unreadable, summary or not), or the runner's own
|
|
236
|
+
* summary reports failing tests the parser did not read. A red stage with no
|
|
237
|
+
* tests in it (lint, typecheck) is not one: its stage names the failure. Null
|
|
238
|
+
* otherwise. Pure.
|
|
239
|
+
*/
|
|
240
|
+
export function describeParseFailure(run) {
|
|
241
|
+
if (run.exitCode === 0 || run.failingTestCount > 0)
|
|
242
|
+
return null;
|
|
243
|
+
const reportedFailures = reportedFailureCount(run.logText);
|
|
244
|
+
if (run.failedStage !== undefined && !isTestStage(run.failedStage) && !(reportedFailures !== null && reportedFailures > 0))
|
|
245
|
+
return null;
|
|
246
|
+
return { exitCode: run.exitCode ?? null, logPath: run.logPath ?? null, reportedFailures };
|
|
247
|
+
}
|
|
79
248
|
//# sourceMappingURL=verification-failure-parser.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-failure-parser.js","sourceRoot":"","sources":["../../src/verify/verification-failure-parser.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"verification-failure-parser.js","sourceRoot":"","sources":["../../src/verify/verification-failure-parser.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,uEAAuE;AACvE,mEAAmE;AACnE,gBAAgB;AA2ChB;;;;;;;;;;;;;GAaG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC;AAExC;;;;;GAKG;AACH,MAAM,UAAU,iBAAiB,CAAC,MAAc,EAAE,SAAqB,MAAM;IAC3E,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,GAAG,EAAE,CAAC;IACxE,IAAI,MAAM,KAAK,aAAa;QAAE,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;IAC7D,IAAI,MAAM,KAAK,KAAK;QAAE,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;IAC9C,IAAI,MAAM,KAAK,gBAAgB;QAAE,OAAO,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAEnE,6EAA6E;IAC7E,+DAA+D;IAC/D,MAAM,OAAO,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC;IACnC,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;QAC5B,MAAM,QAAQ,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACzC,IAAI,QAAQ,CAAC,IAAI,GAAG,CAAC;YAAE,OAAO,QAAQ,CAAC;IACzC,CAAC;IACD,OAAO,IAAI,GAAG,CAAC,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,EAAE,GAAG,kBAAkB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACvE,CAAC;AAg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C,CAAC,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC1E,OAAO,eAAe,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;AAC7D,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAMpC;IACC,IAAI,GAAG,CAAC,QAAQ,KAAK,CAAC,IAAI,GAAG,CAAC,gBAAgB,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAChE,MAAM,gBAAgB,GAAG,oBAAoB,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAC3D,IAAI,GAAG,CAAC,WAAW,KAAK,SAAS,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,gBAAgB,KAAK,IAAI,IAAI,gBAAgB,GAAG,CAAC,CAAC;QAAE,OAAO,IAAI,CAAC;IACxI,OAAO,EAAE,QAAQ,EAAE,GAAG,CAAC,QAAQ,IAAI,IAAI,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,IAAI,IAAI,EAAE,gBAAgB,EAAE,CAAC;AAC5F,CAAC"}
|
|
@@ -29,13 +29,20 @@ import { type DeliveryGateState, type ShortfallReconciliationDetail, type Verifi
|
|
|
29
29
|
import { resolveReconciledWrite } from '../delivery/delivery-reconciler-apply.js';
|
|
30
30
|
import { getActiveTeams } from '../focus/focus-team-state.js';
|
|
31
31
|
import { type FileEscalationIdempotentParams, type FileEscalationIdempotentResult } from '../queries/escalation-suppression.js';
|
|
32
|
+
import { type ReworkIssueDeps } from './verification-rework-issue.js';
|
|
32
33
|
import { type FailureSignatureDeps } from './failure-signature.js';
|
|
33
|
-
import {
|
|
34
|
+
import type { ShortfallRepeat } from './shortfall-repeat.js';
|
|
35
|
+
import { type ShortfallPark } from './shortfall-park.js';
|
|
34
36
|
import type { PendingVerification } from '../queries/verification.js';
|
|
35
|
-
import type { GateVerdictSummary } from '../queries/delivery-gate-state.js';
|
|
37
|
+
import type { GateVerdictSummary, MisattributedCommitsRecord } from '../queries/delivery-gate-state.js';
|
|
38
|
+
import type { VerificationParseFailure } from './verification-failure-parser.js';
|
|
36
39
|
import type { TargetShortfall } from './verify-restatement.js';
|
|
37
40
|
import { type GateRunVerdictSource, type JudgedCommitTarget } from './gate-verdict-source.js';
|
|
38
41
|
import { type ReworkRunJudgment } from './rework-judgment.js';
|
|
42
|
+
/** The unattributed commits a shortfall hold names (verify/misattributed-commits.ts). */
|
|
43
|
+
type MisattributedOpt = {
|
|
44
|
+
misattributed?: MisattributedCommitsRecord;
|
|
45
|
+
};
|
|
39
46
|
/** gate_state guard name a deterministic verification failure reports under. */
|
|
40
47
|
export declare const DETERMINISTIC_VERIFICATION_GUARD = "deterministic_verification";
|
|
41
48
|
/**
|
|
@@ -60,6 +67,8 @@ export interface VerificationFailureResult extends GateRunVerdictSource {
|
|
|
60
67
|
newFailures?: string[];
|
|
61
68
|
/** Baseline-diff attribution: pre-existing base failures (recorded, non-blocking). */
|
|
62
69
|
preExisting?: string[];
|
|
70
|
+
/** Carried from a recorded verdict: the run's failures could not be parsed from its log. */
|
|
71
|
+
parseFailure?: VerificationParseFailure;
|
|
63
72
|
}
|
|
64
73
|
/** Build the gate_state for a failed deterministic run. Pure -- exported for testing. */
|
|
65
74
|
export declare function buildVerificationFailureGateState(detail: VerificationFailureDetail): DeliveryGateState;
|
|
@@ -101,7 +110,7 @@ export interface VerificationFeedbackDeps {
|
|
|
101
110
|
* not land never counts toward a repeat. Any prior shortfall repeat is carried
|
|
102
111
|
* too (carryVerificationHistory).
|
|
103
112
|
*/
|
|
104
|
-
export declare function deliverVerificationFailureFeedback(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId'>, result: VerificationFailureResult, organizationId: string, deps?: Partial<ShortfallRequeueDeps & FailureSignatureDeps>): Promise<{
|
|
113
|
+
export declare function deliverVerificationFailureFeedback(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId'>, result: VerificationFailureResult, organizationId: string, deps?: Partial<ShortfallRequeueDeps & FailureSignatureDeps & ReworkIssueDeps>): Promise<{
|
|
105
114
|
transitioned: boolean;
|
|
106
115
|
injected: boolean;
|
|
107
116
|
detail: VerificationFailureDetail;
|
|
@@ -176,7 +185,7 @@ export declare function readPriorGateStateBestEffort(d: Pick<ShortfallRequeueDep
|
|
|
176
185
|
* coding team is still live we also inject it immediately (best-effort fast
|
|
177
186
|
* path). Best-effort throughout -- a feedback failure must never crash the tick.
|
|
178
187
|
*/
|
|
179
|
-
export declare function requeueShortfallAsRework(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId'> & Partial<Pick<PendingVerification, 'productId'>>, shortfalls: readonly TargetShortfall[], organizationId: string, deps?: Partial<ShortfallRequeueDeps>, opts?: ReworkRunJudgment & {
|
|
188
|
+
export declare function requeueShortfallAsRework(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId'> & Partial<Pick<PendingVerification, 'productId'>>, shortfalls: readonly TargetShortfall[], organizationId: string, deps?: Partial<ShortfallRequeueDeps>, opts?: ReworkRunJudgment & MisattributedOpt & {
|
|
180
189
|
repeat?: ShortfallRepeat;
|
|
181
190
|
priorGateState?: DeliveryGateState | null;
|
|
182
191
|
}): Promise<{
|
|
@@ -188,67 +197,75 @@ export declare function requeueShortfallAsRework(v: Pick<PendingVerification, 'd
|
|
|
188
197
|
export declare const UNCLEARABLE_SHORTFALL_GUARD = "verify_shortfall_unclearable_claim";
|
|
189
198
|
/** Injected IO for the unclearable-shortfall escalation path. */
|
|
190
199
|
export interface UnclearableShortfallDeps extends VerificationFeedbackDeps {
|
|
191
|
-
/** File the
|
|
200
|
+
/** File the park's one escalation through the cause-keyed idempotent gate. */
|
|
192
201
|
fileEscalation: (params: FileEscalationIdempotentParams) => Promise<FileEscalationIdempotentResult>;
|
|
193
202
|
}
|
|
194
203
|
/** Build the terminal-hold gate_state for an unclearable-claim shortfall. Pure -- exported for testing. */
|
|
195
204
|
export declare function buildUnclearableShortfallGateState(detail: ShortfallReconciliationDetail): DeliveryGateState;
|
|
196
|
-
|
|
197
|
-
export declare function buildUnclearableShortfallEscalation(deliveryName: string, shortfalls: readonly TargetShortfall[], count: number): {
|
|
198
|
-
description: string;
|
|
199
|
-
whatWasTried: string;
|
|
200
|
-
helpNeeded: string;
|
|
201
|
-
};
|
|
205
|
+
export { buildShortfallParkEscalation, buildShortfallParkInjectMessage, fileShortfallParkEscalation, shortfallParkHumanAct, SHORTFALL_PARK_ESCALATION_KIND, SHORTFALL_RULING_ACTION, SHORTFALL_RULING_TOOL, } from './shortfall-park-escalation.js';
|
|
202
206
|
/**
|
|
203
|
-
*
|
|
207
|
+
* PARK a delivery on a repeating shortfall: hold it and STOP re-queuing.
|
|
204
208
|
*
|
|
205
|
-
* When the same shortfall has reproduced unchanged
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
* delivery back to verify_failed -- it leaves it HELD in verify
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
*
|
|
217
|
-
*
|
|
218
|
-
* hold, which names no correction at all and so files nothing. Idempotent (one open row per delivery, sharing the iteration-cap
|
|
219
|
-
* detector's cause key). Best-effort throughout -- a feedback failure must never
|
|
220
|
-
* crash the verification tick.
|
|
209
|
+
* When the same shortfall has reproduced unchanged up to the park limit, re-coding
|
|
210
|
+
* cannot change the verdict: re-queuing burns another full re-work cycle against
|
|
211
|
+
* an outcome the diff does not produce (the 2026-08-25 Tinker Tailor incident, 10
|
|
212
|
+
* wasted iterations; injection #13, 23). So this path deliberately does NOT
|
|
213
|
+
* transition the delivery back to verify_failed -- it leaves it HELD in verify
|
|
214
|
+
* under a blocking gate_state carrying the durable park record, and files the
|
|
215
|
+
* park's ONE escalation naming every repeated node and the act that ends the park
|
|
216
|
+
* (verify/shortfall-park-escalation.ts: a ruling on the nodes, or a tree
|
|
217
|
+
* correction -- proposed as a human act, surfaced by the routing decider on the
|
|
218
|
+
* delivery_parked basis). A live coding team is told the delivery is parked when
|
|
219
|
+
* the park is NEW (a re-hold of a standing park sends nothing). Idempotent across
|
|
220
|
+
* re-holds (the park's cause key). Best-effort throughout -- a feedback failure
|
|
221
|
+
* must never crash the verification tick.
|
|
221
222
|
*/
|
|
222
|
-
export declare function escalateUnclearableShortfall(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId' | 'productId'>, shortfalls: readonly TargetShortfall[], repeat: ShortfallRepeat, organizationId: string, deps?: Partial<UnclearableShortfallDeps>, opts?: ReworkRunJudgment & {
|
|
223
|
+
export declare function escalateUnclearableShortfall(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId' | 'productId'>, shortfalls: readonly TargetShortfall[], repeat: ShortfallRepeat, organizationId: string, deps?: Partial<UnclearableShortfallDeps>, opts?: ReworkRunJudgment & MisattributedOpt & {
|
|
223
224
|
priorGateState?: DeliveryGateState | null;
|
|
225
|
+
park?: ShortfallPark;
|
|
226
|
+
limit?: number;
|
|
224
227
|
}): Promise<{
|
|
225
228
|
gateWritten: boolean;
|
|
226
229
|
escalated: boolean;
|
|
230
|
+
injected: boolean;
|
|
227
231
|
detail: ShortfallReconciliationDetail;
|
|
228
232
|
}>;
|
|
229
233
|
/** Injected IO for shortfall routing; unions the re-work + escalation deps (the prior-state read comes with the re-work deps). */
|
|
230
234
|
export interface ShortfallRouteDeps extends ShortfallRequeueDeps, UnclearableShortfallDeps {
|
|
231
|
-
/** Override the
|
|
235
|
+
/** Override the park limit for tests; defaults to SHORTFALL_PARK_REPEAT_LIMIT. */
|
|
232
236
|
threshold?: number;
|
|
237
|
+
/**
|
|
238
|
+
* The identities of the delivery's own Telora-Delivery-trailered commits the
|
|
239
|
+
* shortfall judged (verify/delivery-commit-set.ts); null when unreadable. The
|
|
240
|
+
* default knows no repository and answers null (the signature-only count);
|
|
241
|
+
* verification-deps-default.ts wires the real read.
|
|
242
|
+
*/
|
|
243
|
+
resolveCommitSet: (judgedSha: string | null) => Promise<string[] | null> | string[] | null;
|
|
233
244
|
}
|
|
234
245
|
/**
|
|
235
|
-
* Route a verify shortfall by REPETITION.
|
|
246
|
+
* Route a verify shortfall by REPETITION on an unchanged commit set.
|
|
236
247
|
*
|
|
237
|
-
* Reads the
|
|
238
|
-
*
|
|
239
|
-
* - CHANGED
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
* -
|
|
244
|
-
*
|
|
248
|
+
* Reads the repeat state the previous judgement persisted and the commit set this
|
|
249
|
+
* one judged, classifies them (verify/shortfall-park.ts), and branches:
|
|
250
|
+
* - CHANGED shortfall, first-seen, a changed commit set, or below the limit: an
|
|
251
|
+
* execution gap the team can still move. Route to bounded re-work
|
|
252
|
+
* (requeueShortfallAsRework), persisting the repeat (with its commit set) so
|
|
253
|
+
* the next judgement compares against it.
|
|
254
|
+
* - The identical shortfall at the limit on an unchanged commit set: PARKED.
|
|
255
|
+
* Hold in verify (no verify_failed, no iteration), carry the durable park
|
|
256
|
+
* record, and file the park's one cause-keyed escalation naming the repeated
|
|
257
|
+
* nodes (escalateUnclearableShortfall) -- idempotent across re-holds.
|
|
245
258
|
*
|
|
246
|
-
* This is the sole shortfall entry point the verification engine calls
|
|
247
|
-
*
|
|
259
|
+
* This is the sole shortfall entry point the verification engine calls, with the
|
|
260
|
+
* shortfalls left after operator rulings and `opts.rulingsFingerprint` the
|
|
261
|
+
* fingerprint of the rulings it applied (null when unread). Best-effort.
|
|
248
262
|
*/
|
|
249
|
-
export declare function routeShortfallOutcome(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId' | 'productId'>, shortfalls: readonly TargetShortfall[], organizationId: string, deps?: Partial<ShortfallRouteDeps>, opts?: ReworkRunJudgment
|
|
250
|
-
|
|
263
|
+
export declare function routeShortfallOutcome(v: Pick<PendingVerification, 'deliveryId' | 'deliveryName' | 'focusId' | 'productId'>, shortfalls: readonly TargetShortfall[], organizationId: string, deps?: Partial<ShortfallRouteDeps>, opts?: ReworkRunJudgment & MisattributedOpt & {
|
|
264
|
+
rulingsFingerprint?: string | null;
|
|
265
|
+
}): Promise<{
|
|
266
|
+
routed: 'rework' | 'parked';
|
|
251
267
|
repeat: ShortfallRepeat;
|
|
268
|
+
park: ShortfallPark | null;
|
|
252
269
|
}>;
|
|
253
270
|
export { resetVerificationHistoryOnPass, type VerificationHistoryResetDeps, } from './verification-history-reset.js';
|
|
254
271
|
//# sourceMappingURL=verification-feedback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-feedback.d.ts","sourceRoot":"","sources":["../../src/verify/verification-feedback.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verification-feedback.d.ts","sourceRoot":"","sources":["../../src/verify/verification-feedback.ts"],"names":[],"mappings":"AAsBA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,EAEL,WAAW,EACZ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAGL,KAAK,iBAAiB,EACtB,KAAK,6BAA6B,EAClC,KAAK,yBAAyB,EAC/B,MAAM,0BAA0B,CAAC;AAKlC,OAAO,EAAE,sBAAsB,EAAE,MAAM,0CAA0C,CAAC;AAClF,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAEL,KAAK,8BAA8B,EACnC,KAAK,8BAA8B,EACpC,MAAM,sCAAsC,CAAC;AAE9C,OAAO,EAAuD,KAAK,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC3H,OAAO,EAGL,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAC;AAChC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,qBA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