@telora/daemon 0.22.104 → 0.22.132
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 +4 -3
- package/dist/completion/commit-verdict-release.d.ts +49 -0
- package/dist/completion/commit-verdict-release.d.ts.map +1 -0
- package/dist/completion/commit-verdict-release.js +240 -0
- package/dist/completion/commit-verdict-release.js.map +1 -0
- package/dist/completion/completion-phase-registry.d.ts +10 -4
- package/dist/completion/completion-phase-registry.d.ts.map +1 -1
- package/dist/completion/completion-phase-registry.js +19 -7
- package/dist/completion/completion-phase-registry.js.map +1 -1
- package/dist/completion/detector.d.ts.map +1 -1
- package/dist/completion/detector.js +1 -0
- package/dist/completion/detector.js.map +1 -1
- package/dist/completion/event-entry-phases.d.ts +6 -3
- package/dist/completion/event-entry-phases.d.ts.map +1 -1
- package/dist/completion/event-entry-phases.js +135 -76
- package/dist/completion/event-entry-phases.js.map +1 -1
- package/dist/completion/event-phases.d.ts +24 -3
- package/dist/completion/event-phases.d.ts.map +1 -1
- package/dist/completion/event-phases.js +9 -9
- package/dist/completion/event-phases.js.map +1 -1
- package/dist/completion/event.d.ts +8 -0
- package/dist/completion/event.d.ts.map +1 -1
- package/dist/completion/event.js +47 -21
- package/dist/completion/event.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/merge-phase.d.ts +21 -9
- package/dist/completion/merge-phase.d.ts.map +1 -1
- package/dist/completion/merge-phase.js +35 -10
- package/dist/completion/merge-phase.js.map +1 -1
- package/dist/completion/review-auto-approval-record.d.ts +19 -0
- package/dist/completion/review-auto-approval-record.d.ts.map +1 -0
- package/dist/completion/review-auto-approval-record.js +102 -0
- package/dist/completion/review-auto-approval-record.js.map +1 -0
- package/dist/completion/review-cycle-cap.d.ts +62 -0
- package/dist/completion/review-cycle-cap.d.ts.map +1 -0
- package/dist/completion/review-cycle-cap.js +180 -0
- package/dist/completion/review-cycle-cap.js.map +1 -0
- package/dist/completion/review-exit-deps.d.ts +17 -2
- package/dist/completion/review-exit-deps.d.ts.map +1 -1
- package/dist/completion/review-exit-deps.js +19 -2
- package/dist/completion/review-exit-deps.js.map +1 -1
- package/dist/completion/review-exit-escalations.d.ts +45 -23
- package/dist/completion/review-exit-escalations.d.ts.map +1 -1
- package/dist/completion/review-exit-escalations.js +15 -74
- package/dist/completion/review-exit-escalations.js.map +1 -1
- package/dist/completion/review-exit-evidence.d.ts +9 -0
- package/dist/completion/review-exit-evidence.d.ts.map +1 -1
- package/dist/completion/review-exit-evidence.js +4 -1
- package/dist/completion/review-exit-evidence.js.map +1 -1
- package/dist/completion/review-exit-foreign-findings.d.ts +151 -0
- package/dist/completion/review-exit-foreign-findings.d.ts.map +1 -0
- package/dist/completion/review-exit-foreign-findings.js +474 -0
- package/dist/completion/review-exit-foreign-findings.js.map +1 -0
- package/dist/completion/review-exit-phase.d.ts.map +1 -1
- package/dist/completion/review-exit-phase.js +71 -64
- package/dist/completion/review-exit-phase.js.map +1 -1
- package/dist/completion/review-exit-progress.d.ts +20 -0
- package/dist/completion/review-exit-progress.d.ts.map +1 -1
- package/dist/completion/review-exit-progress.js +28 -19
- package/dist/completion/review-exit-progress.js.map +1 -1
- package/dist/completion/review-exit-rehoming.d.ts +5 -0
- package/dist/completion/review-exit-rehoming.d.ts.map +1 -1
- package/dist/completion/review-exit-rehoming.js.map +1 -1
- package/dist/completion/review-exit-verdict-gate.d.ts +202 -0
- package/dist/completion/review-exit-verdict-gate.d.ts.map +1 -0
- package/dist/completion/review-exit-verdict-gate.js +228 -0
- package/dist/completion/review-exit-verdict-gate.js.map +1 -0
- package/dist/completion/review-next-step.d.ts +62 -0
- package/dist/completion/review-next-step.d.ts.map +1 -0
- package/dist/completion/review-next-step.js +63 -0
- package/dist/completion/review-next-step.js.map +1 -0
- package/dist/completion/session-hold-sweep-deps.d.ts +17 -0
- package/dist/completion/session-hold-sweep-deps.d.ts.map +1 -0
- package/dist/completion/session-hold-sweep-deps.js +89 -0
- package/dist/completion/session-hold-sweep-deps.js.map +1 -0
- package/dist/completion/session-hold.d.ts +180 -0
- package/dist/completion/session-hold.d.ts.map +1 -0
- package/dist/completion/session-hold.js +238 -0
- package/dist/completion/session-hold.js.map +1 -0
- package/dist/completion/state-cascade.d.ts +19 -0
- package/dist/completion/state-cascade.d.ts.map +1 -1
- package/dist/completion/state-cascade.js +85 -31
- package/dist/completion/state-cascade.js.map +1 -1
- package/dist/completion/team-lifecycle.d.ts +35 -2
- package/dist/completion/team-lifecycle.d.ts.map +1 -1
- package/dist/completion/team-lifecycle.js +165 -94
- package/dist/completion/team-lifecycle.js.map +1 -1
- package/dist/completion/team-phase.d.ts +27 -15
- package/dist/completion/team-phase.d.ts.map +1 -1
- package/dist/completion/team-phase.js +34 -15
- package/dist/completion/team-phase.js.map +1 -1
- package/dist/delivery/commit-verdict-hold.d.ts +55 -0
- package/dist/delivery/commit-verdict-hold.d.ts.map +1 -0
- package/dist/delivery/commit-verdict-hold.js +118 -0
- package/dist/delivery/commit-verdict-hold.js.map +1 -0
- package/dist/directive/directive-dispatch.d.ts.map +1 -1
- package/dist/directive/directive-dispatch.js +10 -3
- package/dist/directive/directive-dispatch.js.map +1 -1
- package/dist/directive/directive-executor.d.ts.map +1 -1
- package/dist/directive/directive-executor.js +1 -0
- package/dist/directive/directive-executor.js.map +1 -1
- package/dist/directive/directive-queue.d.ts.map +1 -1
- package/dist/directive/directive-queue.js +6 -1
- package/dist/directive/directive-queue.js.map +1 -1
- package/dist/directive/phase-sync.d.ts +29 -2
- package/dist/directive/phase-sync.d.ts.map +1 -1
- package/dist/directive/phase-sync.js +30 -6
- package/dist/directive/phase-sync.js.map +1 -1
- package/dist/drift/artifact-ref-shape.d.ts +34 -0
- package/dist/drift/artifact-ref-shape.d.ts.map +1 -0
- package/dist/drift/artifact-ref-shape.js +94 -0
- package/dist/drift/artifact-ref-shape.js.map +1 -0
- package/dist/drift/drift-eval-loop.d.ts +7 -0
- package/dist/drift/drift-eval-loop.d.ts.map +1 -1
- package/dist/drift/drift-eval-loop.js +34 -5
- package/dist/drift/drift-eval-loop.js.map +1 -1
- package/dist/drift/drift-evaluator.d.ts.map +1 -1
- package/dist/drift/drift-evaluator.js +8 -3
- package/dist/drift/drift-evaluator.js.map +1 -1
- package/dist/focus/awaiting-slot.d.ts +34 -0
- package/dist/focus/awaiting-slot.d.ts.map +1 -0
- package/dist/focus/awaiting-slot.js +26 -0
- package/dist/focus/awaiting-slot.js.map +1 -0
- package/dist/focus/focus-lifecycle.js +2 -2
- 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 +3 -1
- package/dist/focus/focus-phase.js.map +1 -1
- package/dist/focus/focus-spawn-decision.d.ts +62 -0
- package/dist/focus/focus-spawn-decision.d.ts.map +1 -0
- package/dist/focus/focus-spawn-decision.js +41 -0
- package/dist/focus/focus-spawn-decision.js.map +1 -0
- package/dist/focus/focus-team-state.d.ts.map +1 -1
- package/dist/focus/focus-team-state.js +1 -13
- package/dist/focus/focus-team-state.js.map +1 -1
- package/dist/focus/listener-spawn.d.ts +16 -55
- package/dist/focus/listener-spawn.d.ts.map +1 -1
- package/dist/focus/listener-spawn.js +102 -64
- 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 +4 -1
- package/dist/focus/listener-state.js.map +1 -1
- package/dist/focus/listener.d.ts +41 -2
- package/dist/focus/listener.d.ts.map +1 -1
- package/dist/focus/listener.js +135 -83
- package/dist/focus/listener.js.map +1 -1
- package/dist/focus/pending-spawn-pass-deps.d.ts +69 -0
- package/dist/focus/pending-spawn-pass-deps.d.ts.map +1 -0
- package/dist/focus/pending-spawn-pass-deps.js +34 -0
- package/dist/focus/pending-spawn-pass-deps.js.map +1 -0
- package/dist/focus/pending-spawn-review-next-step.d.ts +83 -0
- package/dist/focus/pending-spawn-review-next-step.d.ts.map +1 -0
- package/dist/focus/pending-spawn-review-next-step.js +325 -0
- package/dist/focus/pending-spawn-review-next-step.js.map +1 -0
- package/dist/focus/review-cycle-cap-hold.d.ts +132 -0
- package/dist/focus/review-cycle-cap-hold.d.ts.map +1 -0
- package/dist/focus/review-cycle-cap-hold.js +178 -0
- package/dist/focus/review-cycle-cap-hold.js.map +1 -0
- package/dist/focus/team-actionable-work.js +2 -2
- package/dist/focus/verify-open-issues.d.ts +22 -0
- package/dist/focus/verify-open-issues.d.ts.map +1 -1
- package/dist/focus/verify-open-issues.js +118 -57
- package/dist/focus/verify-open-issues.js.map +1 -1
- package/dist/focus/verify-routing-passes.d.ts +32 -0
- package/dist/focus/verify-routing-passes.d.ts.map +1 -0
- package/dist/focus/verify-routing-passes.js +18 -0
- package/dist/focus/verify-routing-passes.js.map +1 -0
- package/dist/git/index.d.ts.map +1 -1
- package/dist/git/index.js +9 -5
- package/dist/git/index.js.map +1 -1
- package/dist/merge/focus-merge.d.ts +16 -2
- package/dist/merge/focus-merge.d.ts.map +1 -1
- package/dist/merge/focus-merge.js +53 -30
- package/dist/merge/focus-merge.js.map +1 -1
- package/dist/merge/merge-back-loop.d.ts +5 -0
- package/dist/merge/merge-back-loop.d.ts.map +1 -1
- package/dist/merge/merge-back-loop.js +17 -8
- package/dist/merge/merge-back-loop.js.map +1 -1
- package/dist/merge/merge-gate-coverage.d.ts +94 -0
- package/dist/merge/merge-gate-coverage.d.ts.map +1 -0
- package/dist/merge/merge-gate-coverage.js +217 -0
- package/dist/merge/merge-gate-coverage.js.map +1 -0
- package/dist/prompt/focus-prompt-builder.d.ts.map +1 -1
- package/dist/prompt/focus-prompt-builder.js +6 -0
- package/dist/prompt/focus-prompt-builder.js.map +1 -1
- package/dist/prompt/prompt-listing.d.ts.map +1 -1
- package/dist/prompt/prompt-listing.js +8 -0
- package/dist/prompt/prompt-listing.js.map +1 -1
- package/dist/prompt/team-prompt-base.d.ts.map +1 -1
- package/dist/prompt/team-prompt-base.js +5 -1
- package/dist/prompt/team-prompt-base.js.map +1 -1
- package/dist/prompt-sections/execution-sections.d.ts.map +1 -1
- package/dist/prompt-sections/execution-sections.js +14 -39
- package/dist/prompt-sections/execution-sections.js.map +1 -1
- package/dist/prompt-sections/gate-ownership.d.ts +36 -0
- package/dist/prompt-sections/gate-ownership.d.ts.map +1 -0
- package/dist/prompt-sections/gate-ownership.js +68 -0
- package/dist/prompt-sections/gate-ownership.js.map +1 -0
- package/dist/prompt-sections/gate-verdict-section.d.ts +58 -0
- package/dist/prompt-sections/gate-verdict-section.d.ts.map +1 -0
- package/dist/prompt-sections/gate-verdict-section.js +88 -0
- package/dist/prompt-sections/gate-verdict-section.js.map +1 -0
- package/dist/prompt-sections/persona-sections.d.ts +10 -0
- package/dist/prompt-sections/persona-sections.d.ts.map +1 -1
- package/dist/prompt-sections/persona-sections.js +35 -11
- package/dist/prompt-sections/persona-sections.js.map +1 -1
- package/dist/prompt-sections/shared.js +1 -1
- package/dist/prompt-sections/shared.js.map +1 -1
- package/dist/queries/agent-resolvable-promotion.d.ts +6 -3
- package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
- package/dist/queries/agent-resolvable-promotion.js +20 -9
- package/dist/queries/agent-resolvable-promotion.js.map +1 -1
- package/dist/queries/deliveries.d.ts +46 -4
- package/dist/queries/deliveries.d.ts.map +1 -1
- package/dist/queries/deliveries.js +69 -16
- package/dist/queries/deliveries.js.map +1 -1
- package/dist/queries/delivery-gate-state.d.ts +151 -1
- package/dist/queries/delivery-gate-state.d.ts.map +1 -1
- package/dist/queries/delivery-gate-state.js +95 -14
- package/dist/queries/delivery-gate-state.js.map +1 -1
- package/dist/queries/delivery-write-discipline.d.ts +65 -0
- package/dist/queries/delivery-write-discipline.d.ts.map +1 -0
- package/dist/queries/delivery-write-discipline.js +101 -0
- package/dist/queries/delivery-write-discipline.js.map +1 -0
- package/dist/queries/escalation-consumption.d.ts +11 -0
- package/dist/queries/escalation-consumption.d.ts.map +1 -1
- package/dist/queries/escalation-consumption.js +22 -0
- package/dist/queries/escalation-consumption.js.map +1 -1
- package/dist/queries/escalation-spool.d.ts +75 -0
- package/dist/queries/escalation-spool.d.ts.map +1 -0
- package/dist/queries/escalation-spool.js +232 -0
- package/dist/queries/escalation-spool.js.map +1 -0
- package/dist/queries/escalation-suppression.d.ts.map +1 -1
- package/dist/queries/escalation-suppression.js +2 -0
- package/dist/queries/escalation-suppression.js.map +1 -1
- package/dist/queries/escalations.js +1 -1
- package/dist/queries/filing-observation.d.ts.map +1 -1
- package/dist/queries/filing-observation.js +2 -0
- package/dist/queries/filing-observation.js.map +1 -1
- package/dist/queries/focus-discovery.d.ts +4 -4
- package/dist/queries/focus-discovery.d.ts.map +1 -1
- package/dist/queries/focus-discovery.js +1 -0
- package/dist/queries/focus-discovery.js.map +1 -1
- package/dist/queries/focus-review-approval.d.ts +84 -0
- package/dist/queries/focus-review-approval.d.ts.map +1 -0
- package/dist/queries/focus-review-approval.js +158 -0
- package/dist/queries/focus-review-approval.js.map +1 -0
- package/dist/queries/focuses.d.ts +6 -5
- package/dist/queries/focuses.d.ts.map +1 -1
- package/dist/queries/focuses.js +9 -5
- package/dist/queries/focuses.js.map +1 -1
- package/dist/queries/incident-correlation.d.ts +5 -4
- package/dist/queries/incident-correlation.d.ts.map +1 -1
- package/dist/queries/incident-correlation.js +11 -5
- package/dist/queries/incident-correlation.js.map +1 -1
- package/dist/queries/issues.d.ts.map +1 -1
- package/dist/queries/issues.js +2 -1
- package/dist/queries/issues.js.map +1 -1
- package/dist/queries/loop-refusal-observation.d.ts +64 -0
- package/dist/queries/loop-refusal-observation.d.ts.map +1 -0
- package/dist/queries/loop-refusal-observation.js +137 -0
- package/dist/queries/loop-refusal-observation.js.map +1 -0
- package/dist/queries/schemas.d.ts +9 -0
- package/dist/queries/schemas.d.ts.map +1 -1
- package/dist/queries/schemas.js +11 -3
- package/dist/queries/schemas.js.map +1 -1
- package/dist/queries/shared.js +1 -1
- package/dist/queries/verification.d.ts.map +1 -1
- package/dist/queries/verification.js +1 -15
- package/dist/queries/verification.js.map +1 -1
- package/dist/queries/wire-contract.generated.d.ts +3 -0
- package/dist/queries/wire-contract.generated.d.ts.map +1 -1
- package/dist/queries/wire-contract.generated.js +3 -0
- package/dist/queries/wire-contract.generated.js.map +1 -1
- package/dist/resolvers/assembly-engine.d.ts.map +1 -1
- package/dist/resolvers/assembly-engine.js +3 -1
- package/dist/resolvers/assembly-engine.js.map +1 -1
- package/dist/resolvers/git-diff-against-base.d.ts +5 -2
- package/dist/resolvers/git-diff-against-base.d.ts.map +1 -1
- package/dist/resolvers/git-diff-against-base.js +121 -39
- package/dist/resolvers/git-diff-against-base.js.map +1 -1
- package/dist/resolvers/shared/git-diff.d.ts +2 -0
- package/dist/resolvers/shared/git-diff.d.ts.map +1 -1
- package/dist/resolvers/shared/git-diff.js +5 -1
- package/dist/resolvers/shared/git-diff.js.map +1 -1
- package/dist/resolvers/shared/review-window-commits.d.ts +96 -0
- package/dist/resolvers/shared/review-window-commits.d.ts.map +1 -0
- package/dist/resolvers/shared/review-window-commits.js +262 -0
- package/dist/resolvers/shared/review-window-commits.js.map +1 -0
- package/dist/session/session-lineage.d.ts.map +1 -1
- package/dist/session/session-lineage.js +4 -1
- package/dist/session/session-lineage.js.map +1 -1
- package/dist/shell/fail-stop.d.ts +18 -0
- package/dist/shell/fail-stop.d.ts.map +1 -0
- package/dist/shell/fail-stop.js +53 -0
- package/dist/shell/fail-stop.js.map +1 -0
- package/dist/shell/graceful-shutdown.d.ts +48 -0
- package/dist/shell/graceful-shutdown.d.ts.map +1 -0
- package/dist/shell/graceful-shutdown.js +152 -0
- package/dist/shell/graceful-shutdown.js.map +1 -0
- package/dist/shell/heartbeat.d.ts.map +1 -1
- package/dist/shell/heartbeat.js +5 -4
- package/dist/shell/heartbeat.js.map +1 -1
- package/dist/shell/log.d.ts.map +1 -1
- package/dist/shell/log.js +4 -1
- package/dist/shell/log.js.map +1 -1
- package/dist/shell/stop-request.d.ts.map +1 -1
- package/dist/shell/stop-request.js +2 -1
- package/dist/shell/stop-request.js.map +1 -1
- package/dist/shell/unified-shell.d.ts.map +1 -1
- package/dist/shell/unified-shell.js +41 -114
- package/dist/shell/unified-shell.js.map +1 -1
- package/dist/spawn/lifecycle.d.ts +12 -0
- package/dist/spawn/lifecycle.d.ts.map +1 -1
- package/dist/spawn/lifecycle.js +25 -21
- package/dist/spawn/lifecycle.js.map +1 -1
- package/dist/spawn/prompt-assembly.d.ts +19 -1
- package/dist/spawn/prompt-assembly.d.ts.map +1 -1
- package/dist/spawn/prompt-assembly.js +70 -21
- package/dist/spawn/prompt-assembly.js.map +1 -1
- package/dist/spawn/review-hold-park.d.ts.map +1 -1
- package/dist/spawn/review-hold-park.js +18 -8
- 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 +4 -0
- package/dist/spawn/spawn-cooldown.js.map +1 -1
- package/dist/spawn/spawn-decision.d.ts.map +1 -1
- package/dist/spawn/spawn-decision.js +2 -1
- package/dist/spawn/spawn-decision.js.map +1 -1
- package/dist/spawn/worktree-session.d.ts +6 -0
- package/dist/spawn/worktree-session.d.ts.map +1 -1
- package/dist/spawn/worktree-session.js +15 -2
- package/dist/spawn/worktree-session.js.map +1 -1
- package/dist/testing/fixtures/index.d.ts +10 -1
- package/dist/testing/fixtures/index.d.ts.map +1 -1
- package/dist/testing/fixtures/index.js +59 -1
- package/dist/testing/fixtures/index.js.map +1 -1
- package/dist/testing/fixtures/pending-spawn-world.d.ts +34 -0
- package/dist/testing/fixtures/pending-spawn-world.d.ts.map +1 -0
- package/dist/testing/fixtures/pending-spawn-world.js +92 -0
- package/dist/testing/fixtures/pending-spawn-world.js.map +1 -0
- package/dist/types/index.js +1 -1
- package/dist/verify/commit-gate-configured.d.ts +86 -0
- package/dist/verify/commit-gate-configured.d.ts.map +1 -0
- package/dist/verify/commit-gate-configured.js +234 -0
- package/dist/verify/commit-gate-configured.js.map +1 -0
- package/dist/verify/commit-verdict-record.d.ts +98 -0
- package/dist/verify/commit-verdict-record.d.ts.map +1 -0
- package/dist/verify/commit-verdict-record.js +297 -0
- package/dist/verify/commit-verdict-record.js.map +1 -0
- package/dist/verify/explicit-gate-outcome.d.ts +161 -0
- package/dist/verify/explicit-gate-outcome.d.ts.map +1 -0
- package/dist/verify/explicit-gate-outcome.js +215 -0
- package/dist/verify/explicit-gate-outcome.js.map +1 -0
- package/dist/verify/explicit-rearm.d.ts +27 -0
- package/dist/verify/explicit-rearm.d.ts.map +1 -0
- package/dist/verify/explicit-rearm.js +161 -0
- package/dist/verify/explicit-rearm.js.map +1 -0
- package/dist/verify/explicit-run-ledger.d.ts +26 -0
- package/dist/verify/explicit-run-ledger.d.ts.map +1 -0
- package/dist/verify/explicit-run-ledger.js +93 -0
- package/dist/verify/explicit-run-ledger.js.map +1 -0
- package/dist/verify/failure-signature.d.ts.map +1 -1
- package/dist/verify/failure-signature.js +5 -1
- package/dist/verify/failure-signature.js.map +1 -1
- package/dist/verify/gate-run-registry.d.ts +105 -0
- package/dist/verify/gate-run-registry.d.ts.map +1 -0
- package/dist/verify/gate-run-registry.js +111 -0
- package/dist/verify/gate-run-registry.js.map +1 -0
- package/dist/verify/gate-verdict-source.d.ts +68 -0
- package/dist/verify/gate-verdict-source.d.ts.map +1 -0
- package/dist/verify/gate-verdict-source.js +143 -0
- package/dist/verify/gate-verdict-source.js.map +1 -0
- package/dist/verify/judged-commit-gate.d.ts +11 -0
- package/dist/verify/judged-commit-gate.d.ts.map +1 -0
- package/dist/verify/judged-commit-gate.js +48 -0
- package/dist/verify/judged-commit-gate.js.map +1 -0
- package/dist/verify/rework-judgment.d.ts +58 -0
- package/dist/verify/rework-judgment.d.ts.map +1 -0
- package/dist/verify/rework-judgment.js +54 -0
- package/dist/verify/rework-judgment.js.map +1 -0
- package/dist/verify/verification-attribution.d.ts +105 -0
- package/dist/verify/verification-attribution.d.ts.map +1 -0
- package/dist/verify/verification-attribution.js +322 -0
- package/dist/verify/verification-attribution.js.map +1 -0
- package/dist/verify/verification-baseline-run.d.ts +123 -0
- package/dist/verify/verification-baseline-run.d.ts.map +1 -0
- package/dist/verify/verification-baseline-run.js +386 -0
- package/dist/verify/verification-baseline-run.js.map +1 -0
- package/dist/verify/verification-baseline.d.ts +79 -33
- package/dist/verify/verification-baseline.d.ts.map +1 -1
- package/dist/verify/verification-baseline.js +99 -106
- package/dist/verify/verification-baseline.js.map +1 -1
- package/dist/verify/verification-checkout.d.ts +13 -0
- package/dist/verify/verification-checkout.d.ts.map +1 -1
- package/dist/verify/verification-checkout.js +39 -2
- package/dist/verify/verification-checkout.js.map +1 -1
- package/dist/verify/verification-commit-sharing.d.ts +84 -0
- package/dist/verify/verification-commit-sharing.d.ts.map +1 -0
- package/dist/verify/verification-commit-sharing.js +416 -0
- package/dist/verify/verification-commit-sharing.js.map +1 -0
- package/dist/verify/verification-config.d.ts.map +1 -1
- package/dist/verify/verification-config.js +12 -2
- package/dist/verify/verification-config.js.map +1 -1
- package/dist/verify/verification-default-on.d.ts +27 -11
- package/dist/verify/verification-default-on.d.ts.map +1 -1
- package/dist/verify/verification-default-on.js +159 -29
- 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 +49 -42
- package/dist/verify/verification-deps-default.js.map +1 -1
- package/dist/verify/verification-deps.d.ts +69 -4
- package/dist/verify/verification-deps.d.ts.map +1 -1
- package/dist/verify/verification-deterministic.d.ts +15 -2
- package/dist/verify/verification-deterministic.d.ts.map +1 -1
- package/dist/verify/verification-deterministic.js +12 -3
- package/dist/verify/verification-deterministic.js.map +1 -1
- package/dist/verify/verification-diagnostics.d.ts +16 -0
- package/dist/verify/verification-diagnostics.d.ts.map +1 -0
- package/dist/verify/verification-diagnostics.js +219 -0
- package/dist/verify/verification-diagnostics.js.map +1 -0
- package/dist/verify/verification-engine.d.ts +12 -8
- package/dist/verify/verification-engine.d.ts.map +1 -1
- package/dist/verify/verification-engine.js +110 -92
- 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 +14 -4
- package/dist/verify/verification-evidence-unavailable-feedback.js.map +1 -1
- package/dist/verify/verification-failure-parser.d.ts +37 -3
- package/dist/verify/verification-failure-parser.d.ts.map +1 -1
- package/dist/verify/verification-failure-parser.js +66 -3
- package/dist/verify/verification-failure-parser.js.map +1 -1
- package/dist/verify/verification-feedback.d.ts +21 -34
- package/dist/verify/verification-feedback.d.ts.map +1 -1
- package/dist/verify/verification-feedback.js +37 -88
- package/dist/verify/verification-feedback.js.map +1 -1
- package/dist/verify/verification-gate-stages.d.ts +110 -0
- package/dist/verify/verification-gate-stages.d.ts.map +1 -0
- package/dist/verify/verification-gate-stages.js +179 -0
- package/dist/verify/verification-gate-stages.js.map +1 -0
- package/dist/verify/verification-history-reset.d.ts +61 -0
- package/dist/verify/verification-history-reset.d.ts.map +1 -0
- package/dist/verify/verification-history-reset.js +90 -0
- package/dist/verify/verification-history-reset.js.map +1 -0
- package/dist/verify/verification-manifest.d.ts.map +1 -1
- package/dist/verify/verification-manifest.js +2 -1
- package/dist/verify/verification-manifest.js.map +1 -1
- package/dist/verify/verification-rework-messages.d.ts +19 -0
- package/dist/verify/verification-rework-messages.d.ts.map +1 -0
- package/dist/verify/verification-rework-messages.js +52 -0
- package/dist/verify/verification-rework-messages.js.map +1 -0
- package/dist/worktree/install-inputs.d.ts +89 -0
- package/dist/worktree/install-inputs.d.ts.map +1 -0
- package/dist/worktree/install-inputs.js +625 -0
- package/dist/worktree/install-inputs.js.map +1 -0
- package/dist/worktree/install-script-effects.d.ts +30 -0
- package/dist/worktree/install-script-effects.d.ts.map +1 -0
- package/dist/worktree/install-script-effects.js +524 -0
- package/dist/worktree/install-script-effects.js.map +1 -0
- package/dist/worktree/install-script-tokens.d.ts +57 -0
- package/dist/worktree/install-script-tokens.d.ts.map +1 -0
- package/dist/worktree/install-script-tokens.js +299 -0
- package/dist/worktree/install-script-tokens.js.map +1 -0
- package/dist/worktree/provision.d.ts +27 -4
- package/dist/worktree/provision.d.ts.map +1 -1
- package/dist/worktree/provision.js +46 -7
- package/dist/worktree/provision.js.map +1 -1
- package/dist/worktree/safety.d.ts +11 -0
- package/dist/worktree/safety.d.ts.map +1 -1
- package/dist/worktree/safety.js +20 -3
- package/dist/worktree/safety.js.map +1 -1
- package/dist/worktree/verify-interlock.d.ts.map +1 -1
- package/dist/worktree/verify-interlock.js +3 -1
- package/dist/worktree/verify-interlock.js.map +1 -1
- package/dist/worktree/worktree-package-provisioning.d.ts +75 -0
- package/dist/worktree/worktree-package-provisioning.d.ts.map +1 -0
- package/dist/worktree/worktree-package-provisioning.js +362 -0
- package/dist/worktree/worktree-package-provisioning.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Verify PASS: record the outcome and reset the delivery's verification history.
|
|
3
|
+
*
|
|
4
|
+
* The failure-signature run and the shortfall repeat count CONSECUTIVE
|
|
5
|
+
* rejections, and a pass breaks the streak. So a delivery that passes and is
|
|
6
|
+
* later routed back must start fresh, not extend a pre-pass run. The judged
|
|
7
|
+
* commit (VerificationHistory.judgedCommit) goes with them: a pass supersedes a
|
|
8
|
+
* re-work's judgment of an older commit.
|
|
9
|
+
*
|
|
10
|
+
* The one exception is a judged commit that names the very commit the pass
|
|
11
|
+
* judged. The pass's per-commit record is written BEFORE its outcome is recorded
|
|
12
|
+
* (verify/verification-commit-sharing.ts judgeDelivery writes the record, then
|
|
13
|
+
* the engine runs the pass path, then recordOutcome), and in between a review
|
|
14
|
+
* exit can read that recorded verdict and route the delivery verify ->
|
|
15
|
+
* verify_failed for review-filed work, stamping that commit
|
|
16
|
+
* (completion/review-exit-verdict-gate.ts reviewReworkGateState). A pass never
|
|
17
|
+
* supersedes a judgment of its own commit, so that stamp survives and the
|
|
18
|
+
* resumed coding team is still shown the verdict it was judged on.
|
|
19
|
+
*
|
|
20
|
+
* The explicit-method verdict (VerificationHistory.explicitOutcome) is not the
|
|
21
|
+
* reset's: only the explicit-outcome writers change it (verify/explicit-gate-
|
|
22
|
+
* outcome.ts), and a selection removes it before its run starts. The reset reads
|
|
23
|
+
* and writes in the delivery's serialized write turn, so the row's record is kept
|
|
24
|
+
* as the row holds it -- a verdict recorded before the reset's turn is never
|
|
25
|
+
* dropped by a reset that read the row earlier.
|
|
26
|
+
*
|
|
27
|
+
* Split out of verification-feedback.ts (daemon 800-line limit), which
|
|
28
|
+
* re-exports resetVerificationHistoryOnPass for existing importers.
|
|
29
|
+
*
|
|
30
|
+
* @module verification-history-reset
|
|
31
|
+
*/
|
|
32
|
+
import { type DeliveryGateRowIo } from '../queries/deliveries.js';
|
|
33
|
+
import { recordDeliveryVerificationOutcome, type VerificationOutcome } from '../queries/verification.js';
|
|
34
|
+
/** Injected row IO for the pass reset (the real row read and physical write by default). */
|
|
35
|
+
export type VerificationHistoryResetDeps = DeliveryGateRowIo;
|
|
36
|
+
/**
|
|
37
|
+
* Reset a delivery's verification history on a verify PASS (see the module
|
|
38
|
+
* header). `passedSha` is the commit the pass judged; a judged commit naming it
|
|
39
|
+
* is kept, and null keeps nothing.
|
|
40
|
+
*
|
|
41
|
+
* Writes only when there is history to drop, over the FRESH row at its OWN status
|
|
42
|
+
* in one serialized write turn (queries/deliveries.ts
|
|
43
|
+
* rewriteDeliveryGateStateAtOwnStatus), so the gate-only write never moves the
|
|
44
|
+
* delivery. A done or cancelled delivery is left alone. clearVerificationHistory
|
|
45
|
+
* keeps any hold or live verdict and returns a history-only gate to null; the
|
|
46
|
+
* explicit verdict is kept (module header). Best-effort: never throws. Returns
|
|
47
|
+
* whether a reset was written.
|
|
48
|
+
*/
|
|
49
|
+
export declare function resetVerificationHistoryOnPass(deliveryId: string, deps?: Partial<VerificationHistoryResetDeps>, passedSha?: string | null): Promise<boolean>;
|
|
50
|
+
/** Injected IO for recording an outcome; the reset IO rides along. */
|
|
51
|
+
export interface VerificationOutcomeRecordDeps extends VerificationHistoryResetDeps {
|
|
52
|
+
recordOutcome: typeof recordDeliveryVerificationOutcome;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Record a delivery's verification outcome (VerificationDeps.recordOutcome). A
|
|
56
|
+
* PASSED verify cleared the gate, so the verification history is reset, keeping
|
|
57
|
+
* a judged commit that names `judgedSha` -- the commit this pass judged, or
|
|
58
|
+
* null for a run that judged none. The reset is best-effort and never throws.
|
|
59
|
+
*/
|
|
60
|
+
export declare function recordOutcomeResettingVerificationHistory(deliveryId: string, outcome: VerificationOutcome, judgedSha?: string | null, deps?: Partial<VerificationOutcomeRecordDeps>): Promise<void>;
|
|
61
|
+
//# sourceMappingURL=verification-history-reset.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-history-reset.d.ts","sourceRoot":"","sources":["../../src/verify/verification-history-reset.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,EAEL,KAAK,iBAAiB,EAEvB,MAAM,0BAA0B,CAAC;AAOlC,OAAO,EAAE,iCAAiC,EAAE,KAAK,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAKzG,4FAA4F;AAC5F,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC;AAS7D;;;;;;;;;;;;GAYG;AACH,wBAAsB,8BAA8B,CAClD,UAAU,EAAE,MAAM,EAClB,IAAI,GAAE,OAAO,CAAC,4BAA4B,CAAM,EAChD,SAAS,GAAE,MAAM,GAAG,IAAW,GAC9B,OAAO,CAAC,OAAO,CAAC,CAclB;AAED,sEAAsE;AACtE,MAAM,WAAW,6BAA8B,SAAQ,4BAA4B;IACjF,aAAa,EAAE,OAAO,iCAAiC,CAAC;CACzD;AAED;;;;;GAKG;AACH,wBAAsB,yCAAyC,CAC7D,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,mBAAmB,EAC5B,SAAS,GAAE,MAAM,GAAG,IAAW,EAC/B,IAAI,GAAE,OAAO,CAAC,6BAA6B,CAAM,GAChD,OAAO,CAAC,IAAI,CAAC,CAGf"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
// PINNED-BY-BEGIN (generated by gen:pinned-by -- do not hand-edit; checked by lint:pinned-by)
|
|
2
|
+
// Pinned by: packages/daemon/src/integration/delivery-gate-write-interleaving.test.ts,
|
|
3
|
+
// packages/daemon/src/integration/review-rework-resume-verdict.test.ts,
|
|
4
|
+
// packages/daemon/src/verify/verification-feedback.test.ts
|
|
5
|
+
// PINNED-BY-END
|
|
6
|
+
/**
|
|
7
|
+
* Verify PASS: record the outcome and reset the delivery's verification history.
|
|
8
|
+
*
|
|
9
|
+
* The failure-signature run and the shortfall repeat count CONSECUTIVE
|
|
10
|
+
* rejections, and a pass breaks the streak. So a delivery that passes and is
|
|
11
|
+
* later routed back must start fresh, not extend a pre-pass run. The judged
|
|
12
|
+
* commit (VerificationHistory.judgedCommit) goes with them: a pass supersedes a
|
|
13
|
+
* re-work's judgment of an older commit.
|
|
14
|
+
*
|
|
15
|
+
* The one exception is a judged commit that names the very commit the pass
|
|
16
|
+
* judged. The pass's per-commit record is written BEFORE its outcome is recorded
|
|
17
|
+
* (verify/verification-commit-sharing.ts judgeDelivery writes the record, then
|
|
18
|
+
* the engine runs the pass path, then recordOutcome), and in between a review
|
|
19
|
+
* exit can read that recorded verdict and route the delivery verify ->
|
|
20
|
+
* verify_failed for review-filed work, stamping that commit
|
|
21
|
+
* (completion/review-exit-verdict-gate.ts reviewReworkGateState). A pass never
|
|
22
|
+
* supersedes a judgment of its own commit, so that stamp survives and the
|
|
23
|
+
* resumed coding team is still shown the verdict it was judged on.
|
|
24
|
+
*
|
|
25
|
+
* The explicit-method verdict (VerificationHistory.explicitOutcome) is not the
|
|
26
|
+
* reset's: only the explicit-outcome writers change it (verify/explicit-gate-
|
|
27
|
+
* outcome.ts), and a selection removes it before its run starts. The reset reads
|
|
28
|
+
* and writes in the delivery's serialized write turn, so the row's record is kept
|
|
29
|
+
* as the row holds it -- a verdict recorded before the reset's turn is never
|
|
30
|
+
* dropped by a reset that read the row earlier.
|
|
31
|
+
*
|
|
32
|
+
* Split out of verification-feedback.ts (daemon 800-line limit), which
|
|
33
|
+
* re-exports resetVerificationHistoryOnPass for existing importers.
|
|
34
|
+
*
|
|
35
|
+
* @module verification-history-reset
|
|
36
|
+
*/
|
|
37
|
+
import { rewriteDeliveryGateStateAtOwnStatus, } from '../queries/deliveries.js';
|
|
38
|
+
import { clearVerificationHistory, readVerificationHistory, stampJudgedCommit, } from '../queries/delivery-gate-state.js';
|
|
39
|
+
import { recordDeliveryVerificationOutcome } from '../queries/verification.js';
|
|
40
|
+
import { createLogger } from '../shell/log.js';
|
|
41
|
+
const log = createLogger({ module: 'verification' });
|
|
42
|
+
/** `cleared` with `kept` re-stamped as its judged commit; `cleared` itself when nothing is kept. Pure. */
|
|
43
|
+
function withJudgedCommit(cleared, kept) {
|
|
44
|
+
if (!kept)
|
|
45
|
+
return cleared;
|
|
46
|
+
const base = cleared ?? { blocking: [], warnings: [], evaluatedAt: kept.judgedAt };
|
|
47
|
+
return stampJudgedCommit(base, kept.sha, kept.judgedAt, kept.gateVerdict);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Reset a delivery's verification history on a verify PASS (see the module
|
|
51
|
+
* header). `passedSha` is the commit the pass judged; a judged commit naming it
|
|
52
|
+
* is kept, and null keeps nothing.
|
|
53
|
+
*
|
|
54
|
+
* Writes only when there is history to drop, over the FRESH row at its OWN status
|
|
55
|
+
* in one serialized write turn (queries/deliveries.ts
|
|
56
|
+
* rewriteDeliveryGateStateAtOwnStatus), so the gate-only write never moves the
|
|
57
|
+
* delivery. A done or cancelled delivery is left alone. clearVerificationHistory
|
|
58
|
+
* keeps any hold or live verdict and returns a history-only gate to null; the
|
|
59
|
+
* explicit verdict is kept (module header). Best-effort: never throws. Returns
|
|
60
|
+
* whether a reset was written.
|
|
61
|
+
*/
|
|
62
|
+
export async function resetVerificationHistoryOnPass(deliveryId, deps = {}, passedSha = null) {
|
|
63
|
+
try {
|
|
64
|
+
const written = await rewriteDeliveryGateStateAtOwnStatus(deliveryId, (row) => {
|
|
65
|
+
const history = readVerificationHistory(row.gateState);
|
|
66
|
+
const kept = passedSha !== null && history.judgedCommit?.sha === passedSha ? history.judgedCommit : null;
|
|
67
|
+
const judgedCommitDropped = history.judgedCommit !== undefined && kept === null;
|
|
68
|
+
if (!history.signatureRun && !history.shortfallRepeat && !history.failedAtSha && !judgedCommitDropped)
|
|
69
|
+
return undefined;
|
|
70
|
+
return withJudgedCommit(clearVerificationHistory(row.gateState), kept);
|
|
71
|
+
}, { io: deps });
|
|
72
|
+
return written === 'written';
|
|
73
|
+
}
|
|
74
|
+
catch (err) {
|
|
75
|
+
log.warn(`failed to reset verification history for delivery ${deliveryId}:`, err.message);
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Record a delivery's verification outcome (VerificationDeps.recordOutcome). A
|
|
81
|
+
* PASSED verify cleared the gate, so the verification history is reset, keeping
|
|
82
|
+
* a judged commit that names `judgedSha` -- the commit this pass judged, or
|
|
83
|
+
* null for a run that judged none. The reset is best-effort and never throws.
|
|
84
|
+
*/
|
|
85
|
+
export async function recordOutcomeResettingVerificationHistory(deliveryId, outcome, judgedSha = null, deps = {}) {
|
|
86
|
+
await (deps.recordOutcome ?? recordDeliveryVerificationOutcome)(deliveryId, outcome);
|
|
87
|
+
if (outcome === 'passed')
|
|
88
|
+
await resetVerificationHistoryOnPass(deliveryId, deps, judgedSha);
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=verification-history-reset.js.map
|
|
@@ -0,0 +1 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AAK,IAAI,IAAI,OAAO,CAAC,YAAY,EAAE,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC;YACzG,MAAM,mBAAmB,GAAG,OAAO,CAAC,YAAY,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,CAAC;YAChF,IAAI,CAAC,OAAO,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,eAAe,IAAI,CAAC,OAAO,CAAC,WAAW,IAAI,CAAC,mBAAmB;gBAAE,OAAO,SAAS,CAAC;YACxH,OAAO,gBAAgB,CAAC,wBAAwB,CAAC,GAAG,CAAC,SAAS,CAAC,EAAE,IAAI,CAAC,CAAC;QACzE,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;QACjB,OAAO,OAAO,KAAK,SAAS,CAAC;IAC/B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,GAAG,CAAC,IAAI,CAAC,qDAAqD,UAAU,GAAG,EAAG,GAAa,CAAC,OAAO,CAAC,CAAC;QACrG,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAOD;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,yCAAyC,CAC7D,UAAkB,EAClB,OAA4B,EAC5B,YAA2B,IAAI,EAC/B,OAA+C,EAAE;IAEjD,MAAM,CAAC,IAAI,CAAC,aAAa,IAAI,iCAAiC,CAAC,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IACrF,IAAI,OAAO,KAAK,QAAQ;QAAE,MAAM,8BAA8B,CAAC,UAAU,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;AAC9F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-manifest.d.ts","sourceRoot":"","sources":["../../src/verify/verification-manifest.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verification-manifest.d.ts","sourceRoot":"","sources":["../../src/verify/verification-manifest.ts"],"names":[],"mappings":"AAkEA;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,uBAAuB,CAAC;AAE7D;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC7B,sEAAsE;IACtE,OAAO,EAAE,MAAM,CAAC;IAChB,uEAAuE;IACvE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,6EAA6E;IAC7E,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qDAAqD;IACrD,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,6EAA6E;IAC7E,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CAChC;AAED,oDAAoD;AACpD,eAAO,MAAM,uBAAuB,EAAE,gBAGrC,CAAC;AAEF,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAAG,CACjC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,EAAE,CAAC,EAAE,gBAAgB,KAClB,cAAc,GAAG,SAAS,CAAC;AAEhC,0DAA0D;AAC1D,wBAAgB,yBAAyB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAElE;AA+BD;;;;;;;;;;GAUG;AACH,eAAO,MAAM,kBAAkB,EAAE,oBAgDhC,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
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/
|
|
2
|
+
// Pinned by: packages/daemon/src/verify/judged-commit-gate.test.ts,
|
|
3
|
+
// packages/daemon/src/verify/verification-manifest.test.ts,
|
|
3
4
|
// packages/daemon/src/verify/verification-run-config-source.test.ts,
|
|
4
5
|
// packages/daemon/src/verify/verification-tick-product-scoping.test.ts
|
|
5
6
|
// PINNED-BY-END
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verification-manifest.js","sourceRoot":"","sources":["../../src/verify/verification-manifest.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,
|
|
1
|
+
{"version":3,"file":"verification-manifest.js","sourceRoot":"","sources":["../../src/verify/verification-manifest.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,oEAAoE;AACpE,8DAA8D;AAC9D,uEAAuE;AACvE,yEAAyE;AACzE,gBAAgB;AAEhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsDG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG,oBAAoB,CAAC;AA+B7D,oDAAoD;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAAqB;IACvD,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC;CAChD,CAAC;AAQF,0DAA0D;AAC1D,MAAM,UAAU,yBAAyB,CAAC,QAAgB;IACxD,OAAO,OAAO,CAAC,QAAQ,EAAE,wBAAwB,CAAC,CAAC;AACrD,CAAC;AAED,mEAAmE;AACnE,SAAS,aAAa,CAAC,IAAY,EAAE,OAAe;IAClD,MAAM,IAAI,KAAK,CACb,qCAAqC,IAAI,KAAK,OAAO,IAAI;UACvD,oFAAoF;UACpF,8DAA8D,CACjE,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,SAAS,sBAAsB,CAC7B,GAA4B,EAC5B,GAAkC,EAClC,IAAY;IAEZ,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;IACvB,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,SAAS,CAAC;IAC1C,IAAI,OAAO,K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,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,OAAO,MAAM,EAAE,CAAC,CAAC;IAC3G,CAAC;IAED,MAAM,GAAG,GAAG,MAAiC,CAAC;IAC9C,MAAM,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC;IAC5B,IAAI,OAAO,OAAO,KAAK,QAAQ,EAAE,CAAC;QAChC,aAAa,CACX,IAAI,EACJ,OAAO,KAAK,SAAS;YACnB,CAAC,CAAC,iEAAiE;YACnE,CAAC,CAAC,mCAAmC,OAAO,OAAO,GAAG,CACzD,CAAC;IACJ,CAAC;IACD,IAAI,OAAO,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC1B,aAAa,CAAC,IAAI,EAAE,mEAAmE,CAAC,CAAC;IAC3F,CAAC;IAED,MAAM,SAAS,GAAG,sBAAsB,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;IACjE,MAAM,aAAa,GAAG,sBAAsB,CAAC,GAAG,EAAE,eAAe,EAAE,IAAI,CAAC,CAAC;IAEzE,OAAO;QACL,OAAO;QACP,GAAG,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,GAAG,CAAC,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC1D,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The messages a live coding team receives when a delivery is re-worked from
|
|
3
|
+
* verify on a deterministic failure or a shortfall.
|
|
4
|
+
*
|
|
5
|
+
* Moved out of verification-feedback.ts (at the daemon 800-line limit) when these
|
|
6
|
+
* messages began carrying the gate's recorded verdict for the judged commit. Both
|
|
7
|
+
* compose prompt-sections/gate-verdict-section.ts, the one rendering of that
|
|
8
|
+
* verdict, so this inject and the gate_state listing a respawned team reads
|
|
9
|
+
* (prompt/prompt-listing) say the same thing. The evidence-unavailable message
|
|
10
|
+
* lives with its own feedback path (verification-evidence-unavailable-feedback.ts).
|
|
11
|
+
*
|
|
12
|
+
* @module verification-rework-messages
|
|
13
|
+
*/
|
|
14
|
+
import type { ShortfallReconciliationDetail, VerificationFailureDetail } from '../queries/delivery-gate-state.js';
|
|
15
|
+
/** Build the failure message injected into a live team session. Pure -- exported for testing. */
|
|
16
|
+
export declare function buildFailureInjectMessage(deliveryName: string, detail: VerificationFailureDetail): string;
|
|
17
|
+
/** Build the message injected into a live team for a shortfall hold. Pure -- exported for testing. */
|
|
18
|
+
export declare function buildShortfallInjectMessage(deliveryName: string, detail: ShortfallReconciliationDetail): string;
|
|
19
|
+
//# sourceMappingURL=verification-rework-messages.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-rework-messages.d.ts","sourceRoot":"","sources":["../../src/verify/verification-rework-messages.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EACV,6BAA6B,EAC7B,yBAAyB,EAC1B,MAAM,mCAAmC,CAAC;AAQ3C,iGAAiG;AACjG,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,EAAE,MAAM,EAAE,yBAAyB,GAAG,MAAM,CAuBzG;AAED,sGAAsG;AACtG,wBAAgB,2BAA2B,CACzC,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,6BAA6B,GACpC,MAAM,CAqBR"}
|
|
@@ -0,0 +1,52 @@
|
|
|
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-feedback.test.ts
|
|
3
|
+
// PINNED-BY-END
|
|
4
|
+
import { buildGateVerdictLines, HELD_BY_SHORTFALL } from '../prompt-sections/gate-verdict-section.js';
|
|
5
|
+
/** The verdict block followed by a blank line, or nothing when there is no verdict. */
|
|
6
|
+
function verdictBlock(lines) {
|
|
7
|
+
return lines.length > 0 ? [...lines, ''] : [];
|
|
8
|
+
}
|
|
9
|
+
/** Build the failure message injected into a live team session. Pure -- exported for testing. */
|
|
10
|
+
export function buildFailureInjectMessage(deliveryName, detail) {
|
|
11
|
+
const lines = [
|
|
12
|
+
`VERIFICATION FAILED for delivery "${deliveryName}".`,
|
|
13
|
+
'',
|
|
14
|
+
...verdictBlock(buildGateVerdictLines(detail.gateVerdict)),
|
|
15
|
+
detail.exitCode != null ? `Exit code: ${detail.exitCode}` : 'Exit code: (unknown)',
|
|
16
|
+
detail.logPath ? `Full log: ${detail.logPath}` : 'Full log: (not captured)',
|
|
17
|
+
];
|
|
18
|
+
if (detail.failingTests.length > 0) {
|
|
19
|
+
lines.push('', `Failing tests (${detail.failingTests.length}):`);
|
|
20
|
+
for (const t of detail.failingTests.slice(0, 50))
|
|
21
|
+
lines.push(`- ${t}`);
|
|
22
|
+
if (detail.failingTests.length > 50) {
|
|
23
|
+
lines.push(`- ... and ${detail.failingTests.length - 50} more (see full log)`);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
else {
|
|
27
|
+
lines.push('', 'Failing tests could not be parsed from the run output -- read the full log.');
|
|
28
|
+
}
|
|
29
|
+
lines.push('', 'Fix the failing tests for the files you changed, then commit. The daemon re-verifies ' +
|
|
30
|
+
'at the coding -> verify edge -- do NOT run the whole-repo suite yourself.');
|
|
31
|
+
return lines.join('\n');
|
|
32
|
+
}
|
|
33
|
+
/** Build the message injected into a live team for a shortfall hold. Pure -- exported for testing. */
|
|
34
|
+
export function buildShortfallInjectMessage(deliveryName, detail) {
|
|
35
|
+
const lines = [
|
|
36
|
+
`VERIFY HELD for delivery "${deliveryName}": the achieved outcome falls short of the declared desired effect.`,
|
|
37
|
+
'',
|
|
38
|
+
'This is NOT a failing-test failure -- the deterministic check is not the blocker. The verify ' +
|
|
39
|
+
'reconciliation compared what your diff delivered against the declared intent for each targeted ' +
|
|
40
|
+
'node and found a gap. Close the gap in the diff, then commit.',
|
|
41
|
+
'',
|
|
42
|
+
...verdictBlock(buildGateVerdictLines(detail.gateVerdict, { heldBy: HELD_BY_SHORTFALL })),
|
|
43
|
+
`Declared-vs-achieved gap(s) (${detail.shortfalls.length}):`,
|
|
44
|
+
];
|
|
45
|
+
for (const s of detail.shortfalls) {
|
|
46
|
+
lines.push(`- node ${s.nodeId}`, ` declared: ${s.declared}`, ` achieved: ${s.achieved}`, ` shortfall: ${s.reason}`);
|
|
47
|
+
if (s.diffCitation)
|
|
48
|
+
lines.push(` diff citation: ${s.diffCitation}`);
|
|
49
|
+
}
|
|
50
|
+
return lines.join('\n');
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=verification-rework-messages.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verification-rework-messages.js","sourceRoot":"","sources":["../../src/verify/verification-rework-messages.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,sEAAsE;AACtE,gBAAgB;AAoBhB,OAAO,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,4CAA4C,CAAC;AAEtG,uFAAuF;AACvF,SAAS,YAAY,CAAC,KAAe;IACnC,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,yBAAyB,CAAC,YAAoB,EAAE,MAAiC;IAC/F,MAAM,KAAK,GAAa;QACtB,qCAAqC,YAAY,IAAI;QACrD,EAAE;QACF,GAAG,YAAY,CAAC,qBAAqB,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAC1D,MAAM,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,cAAc,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,sBAAsB;QAClF,MAAM,CAAC,OAAO,CAAC,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,KAAK,CAAC,IAAI,CACR,UAAU,CAAC,CAAC,MAAM,EAAE,EACpB,eAAe,CAAC,CAAC,QAAQ,EAAE,EAC3B,eAAe,CAAC,CAAC,QAAQ,EAAE,EAC3B,gBAAgB,CAAC,CAAC,MAAM,EAAE,CAC3B,CAAC;QACF,IAAI,CAAC,CAAC,YAAY;YAAE,KAAK,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC,YAAY,EAAE,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/** Git result slice the tree listing reads (structural over runGitSync). */
|
|
2
|
+
type GitRun = (args: string[], cwd: string) => {
|
|
3
|
+
success: boolean;
|
|
4
|
+
output: string;
|
|
5
|
+
error?: string;
|
|
6
|
+
};
|
|
7
|
+
/** The lockfiles that make a directory an install root (npm ci prefers the shrinkwrap). */
|
|
8
|
+
export declare const INSTALL_LOCKFILES: readonly ["npm-shrinkwrap.json", "package-lock.json"];
|
|
9
|
+
/**
|
|
10
|
+
* The package.json scripts an install runs, at any depth. npm documents the
|
|
11
|
+
* `npm ci` / `npm install` order in `npm help scripts` ("Life Cycle Operations":
|
|
12
|
+
* preinstall, install, postinstall, prepublish, preprepare, prepare, postprepare;
|
|
13
|
+
* "Life Cycle Scripts": `dependencies` runs after any operation that modifies
|
|
14
|
+
* node_modules), and npm 10's source runs exactly these:
|
|
15
|
+
* - the root, after the tree is reified (lib/commands/ci.js, install.js):
|
|
16
|
+
* preinstall, install, postinstall, prepublish, preprepare, prepare, postprepare;
|
|
17
|
+
* - the root, whenever node_modules changed -- which `npm ci` always does
|
|
18
|
+
* (@npmcli/arborist reify.js): predependencies, dependencies, postdependencies;
|
|
19
|
+
* - every workspace and in-repo `file:` link (@npmcli/arborist rebuild.js):
|
|
20
|
+
* preinstall, prepare, install, postinstall -- and `prepare` again for a
|
|
21
|
+
* directory dependency packed under install-links (pacote dir.js).
|
|
22
|
+
* The pack scripts (prepack, postpack) are not in it: pacote runs "*only*
|
|
23
|
+
* prepare" when it packs a directory dependency, and the CLI runs them for
|
|
24
|
+
* pack/publish; a git dependency runs them from its remote manifest, which the
|
|
25
|
+
* lockfile pins. Every other script is gate or tool source the checkout pins.
|
|
26
|
+
*/
|
|
27
|
+
export declare const INSTALL_LIFECYCLE_SCRIPTS: readonly ["preinstall", "install", "postinstall", "prepublish", "preprepare", "prepare", "postprepare", "predependencies", "dependencies", "postdependencies"];
|
|
28
|
+
/** The fingerprint format; a marker holding any other value (an older format) is never current. */
|
|
29
|
+
export declare const INSTALL_FINGERPRINT_FORMAT = "install-inputs/v2";
|
|
30
|
+
/** A tracked tree an install reads from: a worktree's working tree, or a commit. */
|
|
31
|
+
export interface InstallInputTree {
|
|
32
|
+
/** Whether `path` (repo-relative) is a tracked file. */
|
|
33
|
+
has: (path: string) => boolean;
|
|
34
|
+
/** Every tracked file under `dir` ('' = the whole repo), sorted. */
|
|
35
|
+
filesUnder: (dir: string) => string[];
|
|
36
|
+
/** A tracked file's bytes, or null when it is absent; throws when it cannot be read. */
|
|
37
|
+
read: (path: string) => Buffer | null;
|
|
38
|
+
}
|
|
39
|
+
/** An input the model could not follow, named by the manifest that declares it. */
|
|
40
|
+
export interface UnresolvableInstallInput {
|
|
41
|
+
manifest: string;
|
|
42
|
+
reason: string;
|
|
43
|
+
}
|
|
44
|
+
/** What one install root's install consumes (module doc). */
|
|
45
|
+
export interface InstallInputs {
|
|
46
|
+
/** Lockfiles, .npmrc, and each touched package's package.json and binding.gyp that are tracked. Sorted. */
|
|
47
|
+
manifests: string[];
|
|
48
|
+
/**
|
|
49
|
+
* Every tracked file the install's scripts and native builds read -- a manifest
|
|
50
|
+
* too, when a script names it or a native build reaches it (all of R's files
|
|
51
|
+
* when anything is unresolvable). Compared byte for byte. Sorted.
|
|
52
|
+
*/
|
|
53
|
+
consumed: string[];
|
|
54
|
+
/** Empty when every command and input was followed. */
|
|
55
|
+
unresolvable: UnresolvableInstallInput[];
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* A tree over a tracked path list and a byte reader. Paths under a node_modules
|
|
59
|
+
* segment are not install inputs and are dropped; `read` answers null for an
|
|
60
|
+
* untracked path without calling the reader.
|
|
61
|
+
*/
|
|
62
|
+
export declare function trackedInstallTree(paths: readonly string[], read: (path: string) => Buffer | null): InstallInputTree;
|
|
63
|
+
/**
|
|
64
|
+
* A worktree's tracked tree as its installs read it: git's tracked paths, their
|
|
65
|
+
* bytes from the working tree. Null when git cannot list the worktree.
|
|
66
|
+
*/
|
|
67
|
+
export declare function readWorktreeInstallTree(worktreePath: string, runGit?: GitRun): InstallInputTree | null;
|
|
68
|
+
/** Every install root of the tree: the directories holding a tracked lockfile ('' = the repo root). Sorted. */
|
|
69
|
+
export declare function listInstallRoots(tree: InstallInputTree): string[];
|
|
70
|
+
/**
|
|
71
|
+
* What an install at `root` consumes (module doc). Throws when a tracked input
|
|
72
|
+
* cannot be read (the caller reports the tree unreadable).
|
|
73
|
+
*/
|
|
74
|
+
export declare function readInstallInputs(tree: InstallInputTree, root: string): InstallInputs;
|
|
75
|
+
/**
|
|
76
|
+
* The provisioning fingerprint of an install at `root`: every manifest and
|
|
77
|
+
* consumed file, path and bytes, under {@link INSTALL_FINGERPRINT_FORMAT}. Equal
|
|
78
|
+
* fingerprints mean no input the install reads changed.
|
|
79
|
+
*/
|
|
80
|
+
export declare function installInputsFingerprint(tree: InstallInputTree, root: string): string;
|
|
81
|
+
/**
|
|
82
|
+
* Commands that read no tracked file an install's effect depends on, each with why.
|
|
83
|
+
* A command here is admitted with any arguments.
|
|
84
|
+
*/
|
|
85
|
+
export declare const READS_NOTHING: ReadonlyMap<string, string>;
|
|
86
|
+
/** Split a command into simple commands of words; null when it uses shell syntax the model does not follow. */
|
|
87
|
+
export declare function splitShellCommands(command: string): string[][] | null;
|
|
88
|
+
export {};
|
|
89
|
+
//# sourceMappingURL=install-inputs.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