@telora/daemon 0.21.134 → 0.21.144
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 +2 -2
- package/dist/audit/audit-hooks.d.ts +15 -6
- package/dist/audit/audit-hooks.d.ts.map +1 -1
- package/dist/audit/audit-hooks.js +56 -28
- package/dist/audit/audit-hooks.js.map +1 -1
- package/dist/ci/ci-escalation.js +1 -1
- package/dist/ci/ci-escalation.js.map +1 -1
- package/dist/ci/ci-sensor-loop.d.ts +24 -0
- package/dist/ci/ci-sensor-loop.d.ts.map +1 -1
- package/dist/ci/ci-sensor-loop.js +35 -9
- package/dist/ci/ci-sensor-loop.js.map +1 -1
- package/dist/cli/connect/config-write.d.ts +87 -0
- package/dist/cli/connect/config-write.d.ts.map +1 -0
- package/dist/cli/connect/config-write.js +255 -0
- package/dist/cli/connect/config-write.js.map +1 -0
- package/dist/cli/connect/registration.d.ts +76 -0
- package/dist/cli/connect/registration.d.ts.map +1 -0
- package/dist/cli/connect/registration.js +207 -0
- package/dist/cli/connect/registration.js.map +1 -0
- package/dist/cli/connect.d.ts +3 -141
- package/dist/cli/connect.d.ts.map +1 -1
- package/dist/cli/connect.js +9 -441
- package/dist/cli/connect.js.map +1 -1
- package/dist/completion/coverage-stabilized.d.ts +1 -1
- package/dist/completion/coverage-stabilized.d.ts.map +1 -1
- package/dist/completion/coverage-stabilized.js +1 -1
- package/dist/completion/coverage-stabilized.js.map +1 -1
- package/dist/completion/escalation-provenance.d.ts +2 -1
- package/dist/completion/escalation-provenance.d.ts.map +1 -1
- package/dist/completion/escalation-provenance.js +2 -1
- package/dist/completion/escalation-provenance.js.map +1 -1
- package/dist/completion/escalations.js +1 -1
- package/dist/completion/escalations.js.map +1 -1
- package/dist/completion/event-escalations.d.ts +1 -1
- package/dist/completion/event-escalations.d.ts.map +1 -1
- package/dist/completion/event-escalations.js +1 -1
- package/dist/completion/event-escalations.js.map +1 -1
- package/dist/completion/event.d.ts +1 -1
- package/dist/completion/event.d.ts.map +1 -1
- package/dist/completion/event.js +2 -2
- package/dist/completion/event.js.map +1 -1
- package/dist/completion/machine-remediable-demotion.d.ts +1 -1
- package/dist/completion/machine-remediable-demotion.d.ts.map +1 -1
- package/dist/completion/machine-remediable-demotion.js +2 -1
- package/dist/completion/machine-remediable-demotion.js.map +1 -1
- package/dist/completion/read-only-pristine.d.ts +1 -1
- package/dist/completion/read-only-pristine.d.ts.map +1 -1
- package/dist/completion/read-only-pristine.js +1 -1
- package/dist/completion/read-only-pristine.js.map +1 -1
- package/dist/completion/review-exit-escalations.d.ts +1 -1
- package/dist/completion/review-exit-escalations.d.ts.map +1 -1
- package/dist/completion/review-exit-phase.d.ts +5 -2
- package/dist/completion/review-exit-phase.d.ts.map +1 -1
- package/dist/completion/review-exit-phase.js +5 -2
- package/dist/completion/review-exit-phase.js.map +1 -1
- package/dist/completion/state-cascade.js +1 -1
- package/dist/completion/state-cascade.js.map +1 -1
- package/dist/completion/status-advance-phase.d.ts.map +1 -1
- package/dist/completion/status-advance-phase.js +2 -1
- package/dist/completion/status-advance-phase.js.map +1 -1
- package/dist/completion/team-lifecycle.d.ts.map +1 -1
- package/dist/completion/team-lifecycle.js +2 -1
- package/dist/completion/team-lifecycle.js.map +1 -1
- package/dist/delivery/delivery-advance-block.d.ts +1 -1
- package/dist/delivery/delivery-advance-block.d.ts.map +1 -1
- package/dist/delivery/delivery-advance-block.js +1 -1
- package/dist/delivery/delivery-advance-block.js.map +1 -1
- package/dist/delivery/delivery-lifecycle.js +1 -1
- package/dist/delivery/delivery-lifecycle.js.map +1 -1
- package/dist/delivery/delivery-merge-ops.js +1 -1
- package/dist/delivery/delivery-merge-ops.js.map +1 -1
- package/dist/delivery/delivery-reconciler-shadow.d.ts +1 -1
- package/dist/delivery/delivery-reconciler-shadow.d.ts.map +1 -1
- package/dist/delivery/delivery-reconciler-shadow.js +1 -1
- package/dist/delivery/delivery-reconciler-shadow.js.map +1 -1
- package/dist/delivery/operator-hold.d.ts +1 -1
- package/dist/delivery/operator-hold.d.ts.map +1 -1
- package/dist/delivery/paused-revival.d.ts.map +1 -1
- package/dist/delivery/paused-revival.js +2 -1
- package/dist/delivery/paused-revival.js.map +1 -1
- package/dist/directive/directive-dispatch.d.ts +1 -1
- package/dist/directive/directive-dispatch.d.ts.map +1 -1
- package/dist/directive/directive-dispatch.js +1 -1
- package/dist/directive/directive-dispatch.js.map +1 -1
- package/dist/directive/directive-executor.js +1 -1
- package/dist/directive/directive-executor.js.map +1 -1
- package/dist/drift/staleness-sensor.js +1 -1
- package/dist/drift/staleness-sensor.js.map +1 -1
- package/dist/focus/focus-engine.js +3 -2
- package/dist/focus/focus-engine.js.map +1 -1
- package/dist/focus/focus-lifecycle.d.ts.map +1 -1
- package/dist/focus/focus-lifecycle.js +2 -1
- package/dist/focus/focus-lifecycle.js.map +1 -1
- package/dist/focus/focus-respawn-guard.d.ts +1 -1
- package/dist/focus/focus-respawn-guard.d.ts.map +1 -1
- package/dist/focus/focus-respawn-guard.js +1 -1
- package/dist/focus/focus-respawn-guard.js.map +1 -1
- package/dist/focus/listener-auto-advance.d.ts +4 -45
- package/dist/focus/listener-auto-advance.d.ts.map +1 -1
- package/dist/focus/listener-auto-advance.js +5 -238
- package/dist/focus/listener-auto-advance.js.map +1 -1
- package/dist/focus/listener-spawn.d.ts +62 -0
- package/dist/focus/listener-spawn.d.ts.map +1 -0
- package/dist/focus/listener-spawn.js +418 -0
- package/dist/focus/listener-spawn.js.map +1 -0
- package/dist/focus/listener-state.d.ts +57 -0
- package/dist/focus/listener-state.d.ts.map +1 -0
- package/dist/focus/listener-state.js +63 -0
- package/dist/focus/listener-state.js.map +1 -0
- package/dist/focus/listener.d.ts +0 -58
- package/dist/focus/listener.d.ts.map +1 -1
- package/dist/focus/listener.js +25 -453
- package/dist/focus/listener.js.map +1 -1
- package/dist/focus/verify-open-issues.d.ts +62 -0
- package/dist/focus/verify-open-issues.d.ts.map +1 -0
- package/dist/focus/verify-open-issues.js +265 -0
- package/dist/focus/verify-open-issues.js.map +1 -0
- package/dist/focus-stage-lifecycle/index.d.ts +1 -1
- package/dist/focus-stage-lifecycle/index.d.ts.map +1 -1
- package/dist/focus-stage-lifecycle/index.js +1 -1
- package/dist/focus-stage-lifecycle/index.js.map +1 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts +1 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts.map +1 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.js +1 -1
- package/dist/focus-stage-lifecycle/wedge-watchdog.js.map +1 -1
- package/dist/git/index.d.ts +2 -0
- package/dist/git/index.d.ts.map +1 -1
- package/dist/git/index.js +2 -0
- package/dist/git/index.js.map +1 -1
- package/dist/git/merge-strategies.d.ts +80 -0
- package/dist/git/merge-strategies.d.ts.map +1 -0
- package/dist/git/merge-strategies.js +218 -0
- package/dist/git/merge-strategies.js.map +1 -0
- package/dist/git/merge-to-main.d.ts +76 -0
- package/dist/git/merge-to-main.d.ts.map +1 -0
- package/dist/git/merge-to-main.js +256 -0
- package/dist/git/merge-to-main.js.map +1 -0
- package/dist/git/merge.d.ts +27 -81
- package/dist/git/merge.d.ts.map +1 -1
- package/dist/git/merge.js +4 -448
- package/dist/git/merge.js.map +1 -1
- package/dist/git/state-detector.js +1 -1
- package/dist/git/state-detector.js.map +1 -1
- package/dist/loops/engine.js +1 -1
- package/dist/loops/engine.js.map +1 -1
- package/dist/merge/focus-merge.d.ts +1 -1
- package/dist/merge/focus-merge.d.ts.map +1 -1
- package/dist/merge/focus-merge.js +1 -1
- package/dist/merge/focus-merge.js.map +1 -1
- package/dist/merge/merge-back-loop.d.ts +1 -1
- package/dist/merge/merge-back-loop.d.ts.map +1 -1
- package/dist/merge/merge-back-loop.js +2 -2
- package/dist/merge/merge-back-loop.js.map +1 -1
- package/dist/merge/merge-detector.js +1 -1
- package/dist/merge/merge-detector.js.map +1 -1
- package/dist/nexus/return.js +1 -1
- package/dist/nexus/return.js.map +1 -1
- package/dist/prd/controller-shared.d.ts +223 -0
- package/dist/prd/controller-shared.d.ts.map +1 -0
- package/dist/prd/controller-shared.js +77 -0
- package/dist/prd/controller-shared.js.map +1 -0
- package/dist/prd/controller.d.ts +5 -256
- package/dist/prd/controller.d.ts.map +1 -1
- package/dist/prd/controller.js +9 -166
- package/dist/prd/controller.js.map +1 -1
- package/dist/prd/done-sweep.d.ts +55 -0
- package/dist/prd/done-sweep.d.ts.map +1 -0
- package/dist/prd/done-sweep.js +112 -0
- package/dist/prd/done-sweep.js.map +1 -0
- package/dist/prompt-sections/execution-sections.d.ts +1 -1
- package/dist/prompt-sections/execution-sections.d.ts.map +1 -1
- package/dist/prompt-sections/execution-sections.js +12 -2
- package/dist/prompt-sections/execution-sections.js.map +1 -1
- package/dist/prompt-sections/shared.d.ts +1 -1
- package/dist/prompt-sections/shared.d.ts.map +1 -1
- package/dist/queries/agent-resolvable-promotion.d.ts +1 -1
- package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
- package/dist/queries/agent-resolvable-promotion.js +2 -1
- package/dist/queries/agent-resolvable-promotion.js.map +1 -1
- package/dist/queries/deliveries.d.ts +0 -195
- package/dist/queries/deliveries.d.ts.map +1 -1
- package/dist/queries/deliveries.js +1 -83
- package/dist/queries/deliveries.js.map +1 -1
- package/dist/queries/escalation-consumption.d.ts +120 -0
- package/dist/queries/escalation-consumption.d.ts.map +1 -0
- package/dist/queries/escalation-consumption.js +143 -0
- package/dist/queries/escalation-consumption.js.map +1 -0
- package/dist/queries/escalation-dispositions.d.ts +19 -0
- package/dist/queries/escalation-dispositions.d.ts.map +1 -0
- package/dist/queries/escalation-dispositions.js +18 -0
- package/dist/queries/escalation-dispositions.js.map +1 -0
- package/dist/queries/escalation-suppression.d.ts +1 -1
- package/dist/queries/escalation-suppression.d.ts.map +1 -1
- package/dist/queries/escalation-suppression.js +1 -1
- package/dist/queries/escalation-suppression.js.map +1 -1
- package/dist/queries/escalations.d.ts +343 -0
- package/dist/queries/escalations.d.ts.map +1 -0
- package/dist/queries/escalations.js +493 -0
- package/dist/queries/escalations.js.map +1 -0
- package/dist/queries/focus-discovery.d.ts +204 -0
- package/dist/queries/focus-discovery.d.ts.map +1 -0
- package/dist/queries/focus-discovery.js +92 -0
- package/dist/queries/focus-discovery.js.map +1 -0
- package/dist/queries/index.d.ts +4 -2
- package/dist/queries/index.d.ts.map +1 -1
- package/dist/queries/index.js +4 -2
- package/dist/queries/index.js.map +1 -1
- package/dist/queries/issues.d.ts +8 -436
- package/dist/queries/issues.d.ts.map +1 -1
- package/dist/queries/issues.js +7 -615
- package/dist/queries/issues.js.map +1 -1
- package/dist/resolvers/agent-escalations.d.ts +20 -0
- package/dist/resolvers/agent-escalations.d.ts.map +1 -1
- package/dist/resolvers/agent-escalations.js +40 -10
- package/dist/resolvers/agent-escalations.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/git-diff.d.ts +99 -18
- package/dist/resolvers/shared/git-diff.d.ts.map +1 -1
- package/dist/resolvers/shared/git-diff.js +98 -27
- package/dist/resolvers/shared/git-diff.js.map +1 -1
- package/dist/shell/control-state.d.ts +1 -1
- package/dist/shell/control-state.d.ts.map +1 -1
- package/dist/shell/control-state.js +1 -1
- package/dist/shell/control-state.js.map +1 -1
- package/dist/shell/crash-recovery.d.ts +1 -1
- package/dist/shell/crash-recovery.d.ts.map +1 -1
- package/dist/shell/crash-recovery.js +2 -2
- package/dist/shell/crash-recovery.js.map +1 -1
- package/dist/shell/install-probe-tick.d.ts +1 -1
- package/dist/shell/install-probe-tick.d.ts.map +1 -1
- package/dist/shell/install-probe-tick.js +1 -1
- package/dist/shell/install-probe-tick.js.map +1 -1
- package/dist/shell/unified-shell.js +1 -1
- package/dist/shell/unified-shell.js.map +1 -1
- package/dist/spawn/model-routing.d.ts +1 -1
- package/dist/spawn/model-routing.d.ts.map +1 -1
- package/dist/spawn/model-routing.js +1 -1
- package/dist/spawn/model-routing.js.map +1 -1
- package/dist/spawn/prompt-assembly.d.ts +1 -1
- package/dist/spawn/prompt-assembly.d.ts.map +1 -1
- package/dist/spawn/prompt-assembly.js +1 -1
- package/dist/spawn/prompt-assembly.js.map +1 -1
- package/dist/spawn/spawn-decision.js +1 -1
- package/dist/spawn/spawn-decision.js.map +1 -1
- package/dist/spawn/worktree-session.d.ts +1 -1
- package/dist/spawn/worktree-session.d.ts.map +1 -1
- package/dist/spawn/worktree-session.js +1 -1
- package/dist/spawn/worktree-session.js.map +1 -1
- package/dist/templates/claude-md.d.ts +1 -1
- package/dist/templates/claude-md.d.ts.map +1 -1
- package/dist/templates/claude-md.js +12 -0
- package/dist/templates/claude-md.js.map +1 -1
- package/dist/verify/verification-default-on.d.ts +1 -1
- package/dist/verify/verification-default-on.d.ts.map +1 -1
- package/dist/verify/verification-deps.d.ts +1 -1
- package/dist/verify/verification-deps.d.ts.map +1 -1
- package/dist/verify/verification-engine.d.ts.map +1 -1
- package/dist/verify/verification-engine.js +20 -12
- package/dist/verify/verification-engine.js.map +1 -1
- package/dist/worktree/provision.js +1 -1
- package/dist/worktree/provision.js.map +1 -1
- package/dist/worktree/scratch-guard.d.ts.map +1 -1
- package/dist/worktree/scratch-guard.js +23 -2
- package/dist/worktree/scratch-guard.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Escalation consumption reads: the machine-side reads that FEED the daemon's
|
|
3
|
+
* agent-resolvable ride-into-spawn, the org-wide promotion sweep, and the
|
|
4
|
+
* evidence-driven team_failure demotion (TEL-3).
|
|
5
|
+
*
|
|
6
|
+
* Split out of queries/escalations.ts (file-size limit) and re-exported from it
|
|
7
|
+
* (which is in turn re-exported from queries/issues.ts), so every existing
|
|
8
|
+
* importer keeps working. This module is a leaf: it imports the shared
|
|
9
|
+
* disposition literals + the open-status set but never imports back from
|
|
10
|
+
* escalations.ts, so no cycle is introduced.
|
|
11
|
+
*/
|
|
12
|
+
import { callApi } from './shared.js';
|
|
13
|
+
import { OPEN_ESCALATION_STATUSES } from './holds.js';
|
|
14
|
+
import { DISPOSITION_AGENT_RESOLVABLE, DISPOSITION_NEEDS_INTENT } from './escalation-dispositions.js';
|
|
15
|
+
/**
|
|
16
|
+
* Pure: keep only the OPEN, agent_resolvable rows and shape them into
|
|
17
|
+
* AgentResolvableItems. The status re-check is defense-in-depth so a
|
|
18
|
+
* resolved/dismissed row can never ride into a spawn even if the fetch returned
|
|
19
|
+
* one. Exported for direct unit testing (no callApi mocking needed).
|
|
20
|
+
*/
|
|
21
|
+
export function toAgentResolvableItems(rows) {
|
|
22
|
+
return rows
|
|
23
|
+
.filter((e) => (!e.status || OPEN_ESCALATION_STATUSES.has(e.status)) &&
|
|
24
|
+
e.disposition === DISPOSITION_AGENT_RESOLVABLE)
|
|
25
|
+
.map((e) => ({
|
|
26
|
+
id: e.id,
|
|
27
|
+
escalationKind: e.escalationKind ?? null,
|
|
28
|
+
description: e.description ?? '',
|
|
29
|
+
createdAt: e.createdAt ?? '',
|
|
30
|
+
}));
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* List the OPEN (pending/in_review) agent_resolvable escalations anchored to a
|
|
34
|
+
* focus -- the filings a machine (the next spawned team) can resolve without a
|
|
35
|
+
* human. This is how the daemon CONSUMES agent_resolvable filings: it hands them
|
|
36
|
+
* to the focus's next execution spawn (ride-into-next-spawn) so the agent
|
|
37
|
+
* addresses them as part of its work, and on a clean exit they auto-resolve.
|
|
38
|
+
* agent_resolvable rows are hidden from the operator inbox (the disposition
|
|
39
|
+
* routes to the machine, not the human); this is the machine-side counterpart read.
|
|
40
|
+
*
|
|
41
|
+
* escalation_list does not filter by disposition server-side, so we narrow
|
|
42
|
+
* server-side by focusId + open statuses (scoping the 500-row page to this focus)
|
|
43
|
+
* and filter disposition === agent_resolvable client-side. The status re-check is
|
|
44
|
+
* defense-in-depth so a resolved/dismissed row can never ride into a spawn.
|
|
45
|
+
*/
|
|
46
|
+
export async function listOpenAgentResolvableForFocus(focusId) {
|
|
47
|
+
const result = await callApi('escalation_list', {
|
|
48
|
+
fields: { statuses: ['pending', 'in_review'], focusId },
|
|
49
|
+
limit: 500,
|
|
50
|
+
});
|
|
51
|
+
return toAgentResolvableItems(result.escalations ?? []);
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Pure: keep only the OPEN, agent_resolvable rows and shape them into
|
|
55
|
+
* OrgAgentResolvableItems, carrying each row's org/focus/product anchor. Same
|
|
56
|
+
* open+disposition filter as toAgentResolvableItems; the difference is the
|
|
57
|
+
* anchor fields the org-wide promotion needs. Exported for direct unit testing.
|
|
58
|
+
*/
|
|
59
|
+
export function toOrgAgentResolvableItems(rows) {
|
|
60
|
+
return rows
|
|
61
|
+
.filter((e) => (!e.status || OPEN_ESCALATION_STATUSES.has(e.status)) &&
|
|
62
|
+
e.disposition === DISPOSITION_AGENT_RESOLVABLE)
|
|
63
|
+
.map((e) => ({
|
|
64
|
+
id: e.id,
|
|
65
|
+
escalationKind: e.escalationKind ?? null,
|
|
66
|
+
description: e.description ?? '',
|
|
67
|
+
createdAt: e.createdAt ?? '',
|
|
68
|
+
organizationId: e.organizationId ?? null,
|
|
69
|
+
focusId: e.focusId ?? null,
|
|
70
|
+
productId: e.productId ?? null,
|
|
71
|
+
}));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* List the OPEN (pending/in_review) agent_resolvable escalations across the
|
|
75
|
+
* ENTIRE org -- NOT scoped to a single focus. This is the read behind the
|
|
76
|
+
* org-wide promotion sweep: it catches filings anchored to a focus that never
|
|
77
|
+
* spawns a team (un-armed, or wedged by an open blocking escalation), which the
|
|
78
|
+
* focus-scoped ride-into-spawn read (listOpenAgentResolvableForFocus) never sees
|
|
79
|
+
* because no spawn ever queries that focus.
|
|
80
|
+
*
|
|
81
|
+
* escalation_list scopes to the daemon's org by auth and does not filter by
|
|
82
|
+
* disposition server-side, so we narrow to open statuses server-side (the 500-row
|
|
83
|
+
* page) and filter disposition === agent_resolvable client-side. Each row's
|
|
84
|
+
* first-class focus_id / product_id / organization_id columns are carried onto
|
|
85
|
+
* the item so the promotion can anchor its needs_operator refile to the right
|
|
86
|
+
* focus.
|
|
87
|
+
*/
|
|
88
|
+
export async function listOpenAgentResolvableForOrg(deps = {}) {
|
|
89
|
+
const call = deps.callApi ?? callApi;
|
|
90
|
+
const result = await call('escalation_list', {
|
|
91
|
+
fields: { statuses: ['pending', 'in_review'] },
|
|
92
|
+
limit: 500,
|
|
93
|
+
// detail:'full' is REQUIRED: transformEscalation only emits organizationId AND
|
|
94
|
+
// description in the full branch (the summary base carries neither). Without it
|
|
95
|
+
// the org anchor is dropped and sweepAgentResolvablePromotions skips every item
|
|
96
|
+
// -- the org-wide sweep scans N and promotes 0 forever. The dropped description
|
|
97
|
+
// would also refile an empty body on any promotion that did fire.
|
|
98
|
+
detail: 'full',
|
|
99
|
+
});
|
|
100
|
+
return toOrgAgentResolvableItems(result.escalations ?? []);
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Pure: keep only OPEN team_failure escalations disposed needs_intent, shaping
|
|
104
|
+
* them for the demotion sweep. team_failure kind (not daemon_gate_stuck) with
|
|
105
|
+
* needs_intent is exactly the class TEL-1 files ONLY when a human-decision cause
|
|
106
|
+
* matched -- so a row here whose recorded cause is NOT a human decision is a
|
|
107
|
+
* misrouted / pre-TEL-1 filing the machine can take back. Exported for testing.
|
|
108
|
+
*/
|
|
109
|
+
export function toDemotableTeamFailureItems(rows) {
|
|
110
|
+
return rows
|
|
111
|
+
.filter((e) => (!e.status || OPEN_ESCALATION_STATUSES.has(e.status)) &&
|
|
112
|
+
e.disposition === DISPOSITION_NEEDS_INTENT &&
|
|
113
|
+
e.escalationKind === 'team_failure')
|
|
114
|
+
.map((e) => {
|
|
115
|
+
const cause = e.metadata?.statedCause;
|
|
116
|
+
return {
|
|
117
|
+
id: e.id,
|
|
118
|
+
escalationKind: e.escalationKind ?? null,
|
|
119
|
+
description: e.description ?? '',
|
|
120
|
+
createdAt: e.createdAt ?? '',
|
|
121
|
+
organizationId: e.organizationId ?? null,
|
|
122
|
+
focusId: e.focusId ?? null,
|
|
123
|
+
productId: e.productId ?? null,
|
|
124
|
+
statedCause: typeof cause === 'string' ? cause : undefined,
|
|
125
|
+
};
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* List the org's OPEN needs_intent team_failure escalations -- the candidates the
|
|
130
|
+
* evidence-driven demotion (TEL-3) re-classifies. Same open-status server filter +
|
|
131
|
+
* detail:'full' (for metadata + description + org anchor) as
|
|
132
|
+
* listOpenAgentResolvableForOrg; disposition/kind are filtered client-side.
|
|
133
|
+
*/
|
|
134
|
+
export async function listOpenDemotableTeamFailureForOrg(deps = {}) {
|
|
135
|
+
const call = deps.callApi ?? callApi;
|
|
136
|
+
const result = await call('escalation_list', {
|
|
137
|
+
fields: { statuses: ['pending', 'in_review'] },
|
|
138
|
+
limit: 500,
|
|
139
|
+
detail: 'full',
|
|
140
|
+
});
|
|
141
|
+
return toDemotableTeamFailureItems(result.escalations ?? []);
|
|
142
|
+
}
|
|
143
|
+
//# sourceMappingURL=escalation-consumption.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escalation-consumption.js","sourceRoot":"","sources":["../../src/queries/escalation-consumption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,OAAO,EAAoB,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,wBAAwB,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,4BAA4B,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAoCtG;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,IAA6C;IAE7C,OAAO,IAAI;SACR,MAAM,CACL,CAAC,CAAC,EAAE,EAA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C,SAAS,EAAE,CAAC,CAAC,SAAS,IAAI,EAAE;YAC5B,cAAc,EAAE,CAAC,CAAC,cAAc,IAAI,IAAI;YACxC,OAAO,EAAE,CAAC,CAAC,OAAO,IAAI,IAAI;YAC1B,SAAS,EAAE,CAAC,CAAC,SAAS,IAAI,IAAI;YAC9B,WAAW,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;SAC3D,CAAC;IACJ,CAAC,CAAC,CAAC;AACP,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,kCAAkC,CACtD,OAAoB,EAAE;IAEtB,MAAM,IAAI,GAAG,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC;IACrC,MAAM,MAAM,GAAG,MAAM,IAAI,CAA4C,iBAAiB,EAAE;QACtF,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC,SAAS,EAAE,WAAW,CAAC,EAAE;QAC9C,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,MAAM;KACf,CAAC,CAAC;IACH,OAAO,2BAA2B,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;AAC/D,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daemon-local literals, TYPE-PINNED to the daemon-core disposition vocabulary.
|
|
3
|
+
*
|
|
4
|
+
* Shared by the escalation dedup guards (escalations.ts) and the consumption
|
|
5
|
+
* reads (escalation-consumption.ts) so the pinned mirror lives in exactly one
|
|
6
|
+
* place. This module must NOT take a runtime (value) import of
|
|
7
|
+
* `@telora/daemon-core` -- only the type import below. Under the node:test
|
|
8
|
+
* module-mock loader a bare `@telora/*` value specifier resolves relative to
|
|
9
|
+
* this file and dies with ERR_MODULE_NOT_FOUND, so the vocabulary is mirrored as
|
|
10
|
+
* local literals rather than imported values.
|
|
11
|
+
*
|
|
12
|
+
* The `Extract<...>` annotation keeps each honest: it stops compiling if the
|
|
13
|
+
* value is dropped or renamed in daemon-core, so these are pinned mirrors of the
|
|
14
|
+
* vocabulary rather than redeclarations that can silently drift.
|
|
15
|
+
*/
|
|
16
|
+
import type { EscalationDisposition } from '@telora/daemon-core';
|
|
17
|
+
export declare const DISPOSITION_AGENT_RESOLVABLE: Extract<EscalationDisposition, 'agent_resolvable'>;
|
|
18
|
+
export declare const DISPOSITION_NEEDS_INTENT: Extract<EscalationDisposition, 'needs_intent'>;
|
|
19
|
+
//# sourceMappingURL=escalation-dispositions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escalation-dispositions.d.ts","sourceRoot":"","sources":["../../src/queries/escalation-dispositions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAEjE,eAAO,MAAM,4BAA4B,EAAE,OAAO,CAAC,qBAAqB,EAAE,kBAAkB,CACxE,CAAC;AAErB,eAAO,MAAM,wBAAwB,EAAE,OAAO,CAAC,qBAAqB,EAAE,cAAc,CACpE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Daemon-local literals, TYPE-PINNED to the daemon-core disposition vocabulary.
|
|
3
|
+
*
|
|
4
|
+
* Shared by the escalation dedup guards (escalations.ts) and the consumption
|
|
5
|
+
* reads (escalation-consumption.ts) so the pinned mirror lives in exactly one
|
|
6
|
+
* place. This module must NOT take a runtime (value) import of
|
|
7
|
+
* `@telora/daemon-core` -- only the type import below. Under the node:test
|
|
8
|
+
* module-mock loader a bare `@telora/*` value specifier resolves relative to
|
|
9
|
+
* this file and dies with ERR_MODULE_NOT_FOUND, so the vocabulary is mirrored as
|
|
10
|
+
* local literals rather than imported values.
|
|
11
|
+
*
|
|
12
|
+
* The `Extract<...>` annotation keeps each honest: it stops compiling if the
|
|
13
|
+
* value is dropped or renamed in daemon-core, so these are pinned mirrors of the
|
|
14
|
+
* vocabulary rather than redeclarations that can silently drift.
|
|
15
|
+
*/
|
|
16
|
+
export const DISPOSITION_AGENT_RESOLVABLE = 'agent_resolvable';
|
|
17
|
+
export const DISPOSITION_NEEDS_INTENT = 'needs_intent';
|
|
18
|
+
//# sourceMappingURL=escalation-dispositions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escalation-dispositions.js","sourceRoot":"","sources":["../../src/queries/escalation-dispositions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAIH,MAAM,CAAC,MAAM,4BAA4B,GACvC,kBAAkB,CAAC;AAErB,MAAM,CAAC,MAAM,wBAAwB,GACnC,cAAc,CAAC"}
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
* change is required (the AC's sanctioned "the cause key can live in metadata plus
|
|
28
28
|
* a suppression check at file time" path).
|
|
29
29
|
*/
|
|
30
|
-
import { createEscalation, type CreateEscalationParams } from './
|
|
30
|
+
import { createEscalation, type CreateEscalationParams } from './escalations.js';
|
|
31
31
|
/** Minimal escalation row shape the cause-key suppression check reads. */
|
|
32
32
|
interface CauseKeyEscalationRow {
|
|
33
33
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escalation-suppression.d.ts","sourceRoot":"","sources":["../../src/queries/escalation-suppression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"escalation-suppression.d.ts","sourceRoot":"","sources":["../../src/queries/escalation-suppression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAE,gBAAgB,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAYjF,0EAA0E;AAC1E,UAAU,qBAAqB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC3C;AAED;;;;;GAKG;AACH,MAAM,WAAW,yBAAyB;IACxC,iFAAiF;IACjF,0BAA0B,CAAC,EAAE,CAAC,IAAI,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,qBAAqB,EAAE,CAAC,CAAC;IAC9F,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,OAAO,gBAAgB,CAAC;CAC5C;AAsBD;;;;;;;;GAQG;AACH,wBAAsB,qBAAqB,CACzC,QAAQ,EAAE,MAAM,EAChB,IAAI,GAAE;IAAE,OAAO,CAAC,EAAE,MAAM,CAAA;CAAO,EAC/B,IAAI,GAAE,yBAA8B,GACnC,OAAO,CAAC,OAAO,CAAC,CAOlB;AAED,oDAAoD;AACpD,MAAM,WAAW,8BAA+B,SAAQ,sBAAsB;IAC5E,2FAA2F;IAC3F,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,+CAA+C;AAC/C,MAAM,WAAW,8BAA8B;IAC7C,0DAA0D;IAC1D,KAAK,EAAE,OAAO,CAAC;IACf,mFAAmF;IACnF,UAAU,EAAE,OAAO,CAAC;IACpB,2FAA2F;IAC3F,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAsB,wBAAwB,CAC5C,MAAM,EAAE,8BAA8B,EACtC,IAAI,GAAE,yBAA8B,GACnC,OAAO,CAAC,8BAA8B,CAAC,CAmBzC"}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
* a suppression check at file time" path).
|
|
29
29
|
*/
|
|
30
30
|
import { callApi } from './shared.js';
|
|
31
|
-
import { createEscalation } from './
|
|
31
|
+
import { createEscalation } from './escalations.js';
|
|
32
32
|
import { createLogger } from '../shell/log.js';
|
|
33
33
|
const log = createLogger({ module: 'escalations' });
|
|
34
34
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"escalation-suppression.js","sourceRoot":"","sources":["../../src/queries/escalation-suppression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAA+B,MAAM,
|
|
1
|
+
{"version":3,"file":"escalation-suppression.js","sourceRoot":"","sources":["../../src/queries/escalation-suppression.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAA+B,MAAM,kBAAkB,CAAC;AACjF,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,GAAG,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;AAEpD;;;;GAIG;AACH,MAAM,oBAAoB,GAAsB,CAAC,SAAS,EAAE,WAAW,EAAE,WAAW,CAAC,CAAC;AAsBtF,KAAK,UAAU,iCAAiC,CAC9C,IAA0B;IAE1B,MAAM,MAAM,GAAG,MAAM,OAAO,CAA2C,iBAAiB,EAAE;QACxF,MAAM,EAAE;YACN,QAAQ,EAAE,oBAAoB;YAC9B,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;SACnD;QACD,KAAK,EAAE,GAAG;KACX,CAAC,CAAC;IACH,OAAO,MAAM,CAAC,WAAW,IAAI,EAAE,CAAC;AAClC,CAAC;AAED,2EAA2E;AAC3E,SAAS,WAAW,CAAC,GAA0B;IAC7C,MAAM,IAAI,GAAI,GAAG,CAAC,QAA2C,IAAI,IAAI,CAAC;IACtE,MAAM,GAAG,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EAAE,IAAI,EAAE,CAAC;IAChE,CAAC;IAED,MAAM,EAAE,YAAY,EAAE,GAAG,MAAM,iBAAiB,CAAC;QAC/C,GAAG,YAAY;QACf,QAAQ,EAAE,EAAE,GAAG,CAAC,YAAY,CAAC,QAAQ,IAAI,EAAE,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE;KACpE,CAAC,CAAC;IACH,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AAC1D,CAAC"}
|
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Escalation queries: creation, open-escalation dedup reads, and resolution.
|
|
3
|
+
*
|
|
4
|
+
* Split out of queries/issues.ts (file-size limit); the issue CRUD stays there
|
|
5
|
+
* and re-exports this module so existing importers of queries/issues.js keep
|
|
6
|
+
* working -- the same shape as the queries/holds.ts split.
|
|
7
|
+
*
|
|
8
|
+
* This module must NOT take a runtime (value) import of `@telora/daemon-core`
|
|
9
|
+
* (only the type import below). Under the node:test module-mock loader a bare
|
|
10
|
+
* `@telora/*` value specifier resolves RELATIVE TO THIS FILE
|
|
11
|
+
* (.../src/queries/@telora/daemon-core) and dies with ERR_MODULE_NOT_FOUND --
|
|
12
|
+
* so every test that registers a mock.module and transitively loads this file
|
|
13
|
+
* fails to even start. The disposition vocabulary is therefore mirrored as
|
|
14
|
+
* type-pinned local literals (DISPOSITION_AGENT_RESOLVABLE / _NEEDS_INTENT);
|
|
15
|
+
* the same quirk keeps src/shell/log.ts daemon-local.
|
|
16
|
+
*/
|
|
17
|
+
import { type CallApiDeps } from './shared.js';
|
|
18
|
+
import { resolveProvenance, type EscalationAnchor } from '../completion/escalation-provenance.js';
|
|
19
|
+
/**
|
|
20
|
+
* Parameters for creating an escalation request.
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateEscalationParams {
|
|
23
|
+
organizationId: string;
|
|
24
|
+
/** Session context (informational only -- not forwarded to the edge fn). Optional for daemon-side non-team callers. */
|
|
25
|
+
sessionId?: string;
|
|
26
|
+
issueId: string | null;
|
|
27
|
+
reasonType: string;
|
|
28
|
+
description: string;
|
|
29
|
+
whatWasTried?: string;
|
|
30
|
+
helpNeeded?: string;
|
|
31
|
+
/**
|
|
32
|
+
* Optional discriminator for the kind of escalation (e.g. 'stuck_focus_branch').
|
|
33
|
+
* Persisted on `agent_escalations.escalation_kind` when present.
|
|
34
|
+
*/
|
|
35
|
+
escalationKind?: string;
|
|
36
|
+
/**
|
|
37
|
+
* Optional structured metadata (e.g. { branch_name, focus_id }).
|
|
38
|
+
* Persisted on `agent_escalations.metadata` when present.
|
|
39
|
+
*/
|
|
40
|
+
metadata?: Record<string, unknown>;
|
|
41
|
+
/**
|
|
42
|
+
* Optional first-class provenance: where this escalation came from.
|
|
43
|
+
* Persisted on the agent_escalations product_id/focus_id/delivery_id
|
|
44
|
+
* columns. Prefer deriving these via resolveProvenance(anchor) so no
|
|
45
|
+
* site files an anonymous escalation when an anchor is available.
|
|
46
|
+
*/
|
|
47
|
+
productId?: string;
|
|
48
|
+
focusId?: string;
|
|
49
|
+
deliveryId?: string;
|
|
50
|
+
/**
|
|
51
|
+
* Optional disposition: the resolution routing axis (who/what can resolve
|
|
52
|
+
* this). Distinct from escalationKind (the diagnosis). One of
|
|
53
|
+
* EscalationDisposition. Persisted on agent_escalations.disposition.
|
|
54
|
+
*/
|
|
55
|
+
disposition?: string;
|
|
56
|
+
/**
|
|
57
|
+
* Optional cross-product TARGET provenance: the product this escalation is a
|
|
58
|
+
* blocker AGAINST (distinct from productId, which is the SOURCE product the
|
|
59
|
+
* escalation came from). Forwarded to the edge as fields.targetProductId. The
|
|
60
|
+
* edge escalation_create handler may or may not persist this on the
|
|
61
|
+
* agent_escalations.target_product_id column yet -- the escalation -> Nexus
|
|
62
|
+
* bridge does not depend on that, since the audit row also carries the target
|
|
63
|
+
* in metadata.target_product_id.
|
|
64
|
+
*/
|
|
65
|
+
targetProductId?: string;
|
|
66
|
+
/**
|
|
67
|
+
* Optional provenance anchor: whatever the creation site holds (a delivery,
|
|
68
|
+
* focus, issue, session id, or branch). When present, the shared path runs
|
|
69
|
+
* resolveProvenance(anchor) and stamps the derived product/focus/delivery
|
|
70
|
+
* columns -- so no site files an anonymous escalation when an anchor is
|
|
71
|
+
* available. Explicitly-passed productId/focusId/deliveryId on params WIN
|
|
72
|
+
* over the derived values (caller intent beats derivation).
|
|
73
|
+
*/
|
|
74
|
+
anchor?: EscalationAnchor;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Create an escalation request.
|
|
78
|
+
*
|
|
79
|
+
* When `anchor` is supplied, provenance is derived centrally via
|
|
80
|
+
* resolveProvenance and merged with any explicit productId/focusId/deliveryId
|
|
81
|
+
* on params (explicit wins). This is the single stamping point that closes
|
|
82
|
+
* Delivery C: every site routes through here and provenance is guaranteed
|
|
83
|
+
* whenever an anchor is available. resolveProvenance never throws, so a
|
|
84
|
+
* derivation miss degrades to the explicit fields (or none) rather than
|
|
85
|
+
* aborting the escalation.
|
|
86
|
+
*/
|
|
87
|
+
/**
|
|
88
|
+
* Injectable deps for createEscalation. Two-dep cascade: the shared path calls
|
|
89
|
+
* BOTH callApi (to write the row) AND resolveProvenance (to derive the anchor's
|
|
90
|
+
* product/focus/delivery columns). CallApiDeps only covers callApi, so this
|
|
91
|
+
* local interface adds the provenance seam. A test injects fakes THROUGH deps,
|
|
92
|
+
* registering ZERO mock.module (which would poison the daemon-core mock-loader);
|
|
93
|
+
* production callers pass nothing and get the real imports.
|
|
94
|
+
*/
|
|
95
|
+
export interface CreateEscalationDeps extends CallApiDeps {
|
|
96
|
+
resolveProvenance?: typeof resolveProvenance;
|
|
97
|
+
}
|
|
98
|
+
export declare function createEscalation(params: CreateEscalationParams, deps?: CreateEscalationDeps): Promise<{
|
|
99
|
+
escalationId: string | null;
|
|
100
|
+
}>;
|
|
101
|
+
/**
|
|
102
|
+
* Minimal shape of an escalation row returned by listPendingEscalations.
|
|
103
|
+
* Only includes the fields needed by the merge-back loop.
|
|
104
|
+
*/
|
|
105
|
+
export interface PendingEscalation {
|
|
106
|
+
id: string;
|
|
107
|
+
reasonType: string;
|
|
108
|
+
description: string;
|
|
109
|
+
whatWasTried: string | null;
|
|
110
|
+
helpNeeded: string | null;
|
|
111
|
+
escalationKind?: string | null;
|
|
112
|
+
metadata?: Record<string, unknown> | null;
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* List open (not-yet-resolved) escalations for the organization.
|
|
116
|
+
*
|
|
117
|
+
* Returns rows with status in `('pending', 'in_review')` -- both are
|
|
118
|
+
* "open" from a dedup perspective. An operator may move a stuck-branch
|
|
119
|
+
* escalation to `in_review` while triaging; the merge-back loop must
|
|
120
|
+
* still treat it as suppressing duplicates so it does not file a second
|
|
121
|
+
* `pending` row for the same branch.
|
|
122
|
+
*
|
|
123
|
+
* Used by the merge-back loop to detect when a branch already has an
|
|
124
|
+
* unresolved merge-conflict escalation, and to find existing stuck-branch
|
|
125
|
+
* escalations for dedup / auto-resolution.
|
|
126
|
+
*/
|
|
127
|
+
export declare function listPendingEscalations(deps?: CallApiDeps): Promise<PendingEscalation[]>;
|
|
128
|
+
/**
|
|
129
|
+
* Returns true when an open (status pending or in_review) team_failure
|
|
130
|
+
* escalation exists for the given focus.
|
|
131
|
+
*
|
|
132
|
+
* Used by the focus-executor spawn precondition to prevent respawning a
|
|
133
|
+
* team that has already given up on a focus. The escalation row is the
|
|
134
|
+
* signal "this focus is not currently workable"; until a human resolves
|
|
135
|
+
* it, the daemon should not spend cycles re-deriving the same conclusion.
|
|
136
|
+
*
|
|
137
|
+
* Dedup matches on the first-class `focus_id` column (stamped via the
|
|
138
|
+
* anchor since Delivery B of the Escalation Signal Richness focus). A
|
|
139
|
+
* metadata.focusId fallback covers any rows that predate the migration's
|
|
140
|
+
* backfill and landed in the deployment window before the daemon restarted.
|
|
141
|
+
*/
|
|
142
|
+
export declare function hasOpenTeamFailureEscalation(focusId: string, deps?: CallApiDeps, opts?: {
|
|
143
|
+
excludeAgentResolvable?: boolean;
|
|
144
|
+
}): Promise<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* Returns true when an open (status pending or in_review) escalation exists
|
|
147
|
+
* for the given delivery + kind discriminator.
|
|
148
|
+
*
|
|
149
|
+
* Now that the advance-block class is a first-class `escalation_kind`
|
|
150
|
+
* ('advance_blocked', added to the DB CHECK + ESCALATION_KINDS) and the
|
|
151
|
+
* delivery is a first-class `delivery_id` column, dedup matches on the
|
|
152
|
+
* COLUMNS in preference to the metadata bag. A metadata fallback is retained
|
|
153
|
+
* for back-compat with rows already open at deploy time (filed before this
|
|
154
|
+
* promotion, which carry the discriminator only in metadata.kind /
|
|
155
|
+
* metadata.deliveryId).
|
|
156
|
+
*
|
|
157
|
+
* Used by the delivery advance-block path so a delivery stuck across many
|
|
158
|
+
* polls files exactly one open escalation instead of one per tick.
|
|
159
|
+
*/
|
|
160
|
+
export declare function hasOpenEscalationForDelivery(deliveryId: string, escalationKind: string): Promise<boolean>;
|
|
161
|
+
/**
|
|
162
|
+
* escalation_kind discriminators for the two focus-merge worktree-dirty
|
|
163
|
+
* classes. Declared as daemon-local string constants (not imported from
|
|
164
|
+
* @telora/daemon-core's ESCALATION_KINDS) on purpose: the daemon consumes the
|
|
165
|
+
* registry-PUBLISHED daemon-core, so it cannot reference newly-added enum
|
|
166
|
+
* members until a build that depends on a daemon-core publish carrying them.
|
|
167
|
+
* They ARE now in daemon-core (ESCALATION_KINDS.MERGE_CONFLICT /
|
|
168
|
+
* .MERGE_REFUSED_DIRTY, shipped in 0.2.45) for other consumers (frontend, MCP),
|
|
169
|
+
* but the daemon keeps the local strings so this code does not depend on the
|
|
170
|
+
* publish ordering. The DB CHECK is the real constraint -- loosened by the
|
|
171
|
+
* agent_escalations_kind_merge_classes migration to admit these two values --
|
|
172
|
+
* and the daemon stamps them as plain strings.
|
|
173
|
+
* (advance_blocked already shipped in daemon-core as ESCALATION_KINDS.ADVANCE_BLOCKED.)
|
|
174
|
+
*/
|
|
175
|
+
export declare const MERGE_CONFLICT_ESCALATION_KIND = "merge_conflict";
|
|
176
|
+
export declare const MERGE_REFUSED_DIRTY_ESCALATION_KIND = "merge_refused_dirty";
|
|
177
|
+
/**
|
|
178
|
+
* The worktree-dirty escalation classes: a single physical fact (one focus
|
|
179
|
+
* worktree with uncommitted changes) can be observed by three independent
|
|
180
|
+
* daemon paths -- the delivery advance-block guard (advance_blocked), the
|
|
181
|
+
* focus-merge dirty-worktree refusal (merge_refused_dirty), and the
|
|
182
|
+
* focus-merge conflict path (merge_conflict). They are siblings: when one is
|
|
183
|
+
* already open for a focus, the others should suppress rather than pile on.
|
|
184
|
+
*/
|
|
185
|
+
export declare const WORKTREE_DIRTY_ESCALATION_KINDS: readonly string[];
|
|
186
|
+
/**
|
|
187
|
+
* Returns true when an open (status pending or in_review) worktree-dirty-class
|
|
188
|
+
* escalation exists for the given FOCUS.
|
|
189
|
+
*
|
|
190
|
+
* This generalizes hasOpenEscalationForDelivery from per-delivery to
|
|
191
|
+
* focus/worktree grain. A dirty worktree is a property of one focus worktree
|
|
192
|
+
* shared by all of the focus's deliveries, so deduping per delivery emits N
|
|
193
|
+
* rows for one physical fact. Keying on the focus collapses them to one.
|
|
194
|
+
*
|
|
195
|
+
* It also collapses ACROSS escalation classes: by default the sibling set is
|
|
196
|
+
* { advance_blocked, merge_conflict, merge_refused_dirty }, so an open
|
|
197
|
+
* advance-block escalation suppresses a merge-refuse one (and vice versa) --
|
|
198
|
+
* one dirty-worktree fact yields at most one open escalation regardless of how
|
|
199
|
+
* many code paths observe it. Pass `kinds` to narrow the sibling set.
|
|
200
|
+
*
|
|
201
|
+
* Dedup matches on the typed `focus_id` + `escalation_kind` COLUMNS in
|
|
202
|
+
* preference to the metadata bag, with a metadata fallback (metadata.focusId /
|
|
203
|
+
* metadata.kind) for rows already open at deploy time. Because it queries the
|
|
204
|
+
* DB rather than an in-memory Set, the dedup survives a daemon restart.
|
|
205
|
+
*
|
|
206
|
+
* The request narrows server-side by `focusId` + open `statuses` (both honored
|
|
207
|
+
* by the live escalation_list handler) so the 500-row page is scoped to this
|
|
208
|
+
* focus's open rows, not the org's newest 500 -- closing the gap where a busy
|
|
209
|
+
* org could push the matching sibling off the page. The status + focus + kind
|
|
210
|
+
* predicate is ALSO applied client-side (isOpenWorktreeDirtyMatch) as
|
|
211
|
+
* defense-in-depth.
|
|
212
|
+
*/
|
|
213
|
+
export declare function hasOpenWorktreeDirtyEscalation(focusId: string, kinds?: readonly string[], deps?: CallApiDeps): Promise<boolean>;
|
|
214
|
+
/** The escalation_kind filed by the planning-wedge watchdog. */
|
|
215
|
+
export declare const WEDGED_FOCUS_ESCALATION_KIND = "wedged_focus";
|
|
216
|
+
/**
|
|
217
|
+
* Returns true when an OPEN (status pending or in_review) wedged_focus
|
|
218
|
+
* escalation already exists for the given FOCUS.
|
|
219
|
+
*
|
|
220
|
+
* The planning-wedge watchdog re-evaluates every poll tick, so without a dedup
|
|
221
|
+
* it would file an identical wedged_focus row each tick the focus stays wedged
|
|
222
|
+
* (the 172-duplicate storm class). Keying on the focus + escalation_kind COLUMNS
|
|
223
|
+
* collapses the threshold-crossing escalation to at most one open row per focus.
|
|
224
|
+
*
|
|
225
|
+
* Mirrors hasOpenWorktreeDirtyEscalation: the request narrows server-side by
|
|
226
|
+
* focusId + open statuses (both honored by the live escalation_list handler) so
|
|
227
|
+
* a busy org cannot page the matching row off the 500-row window, and the
|
|
228
|
+
* status + focus + kind predicate is ALSO applied client-side as defense-in-depth.
|
|
229
|
+
* Because it queries the DB rather than an in-memory Set, the dedup SURVIVES A
|
|
230
|
+
* DAEMON RESTART -- a restart cannot re-storm a focus that is still wedged.
|
|
231
|
+
*/
|
|
232
|
+
export declare function hasOpenWedgedFocusEscalation(focusId: string): Promise<boolean>;
|
|
233
|
+
/**
|
|
234
|
+
* Returns true when an OPEN (status pending or in_review) escalation of the
|
|
235
|
+
* given `escalationKind` already exists for the given FOCUS. Generic per-focus
|
|
236
|
+
* dedup, mirroring hasOpenWedgedFocusEscalation but parameterized on the kind.
|
|
237
|
+
*
|
|
238
|
+
* Used by the targeted stall detectors (review_window_stalled) so a focus that
|
|
239
|
+
* stays stalled across many poll ticks files exactly one open escalation
|
|
240
|
+
* instead of one per tick. Queries the DB (not an in-memory Set), so the dedup
|
|
241
|
+
* survives a daemon restart. Narrows server-side by focusId + open statuses and
|
|
242
|
+
* re-applies the status/focus/kind predicate client-side as defense-in-depth.
|
|
243
|
+
*/
|
|
244
|
+
/**
|
|
245
|
+
* The escalation_kind the review-exit drift-streak breaker files when a focus
|
|
246
|
+
* branch keeps advancing DURING each review pass (review-exit-escalations.ts).
|
|
247
|
+
* Named here so the respawn guard and the filer agree on the exact string.
|
|
248
|
+
*/
|
|
249
|
+
export declare const REVIEW_COVERAGE_INCOMPLETE_ESCALATION_KIND = "review_coverage_incomplete";
|
|
250
|
+
/**
|
|
251
|
+
* Returns true when an open (status pending or in_review)
|
|
252
|
+
* review_coverage_incomplete escalation exists for the given focus.
|
|
253
|
+
*
|
|
254
|
+
* Used by the respawn guard so a focus whose drift-streak breaker has already
|
|
255
|
+
* fired parks its re-review spawns instead of burning a review cycle every
|
|
256
|
+
* spawn cooldown while the escalation sits open (the 2026-08-06 incident: the
|
|
257
|
+
* breaker fired 4 minutes in, but nothing stopped the loop for 4.5h). Mirrors
|
|
258
|
+
* hasOpenTeamFailureEscalation; delegates to the generic per-focus dedup query.
|
|
259
|
+
*/
|
|
260
|
+
export declare function hasOpenReviewCoverageIncompleteEscalation(focusId: string): Promise<boolean>;
|
|
261
|
+
export declare function hasOpenFocusEscalation(focusId: string, escalationKind: string): Promise<boolean>;
|
|
262
|
+
/**
|
|
263
|
+
* The close half for a per-FOCUS escalation kind: resolve every open (pending or
|
|
264
|
+
* in_review) escalation of `escalationKind` for the focus, once the daemon has
|
|
265
|
+
* observed its clearing condition. Mirrors resolveOpenWorktreeDirtyEscalations
|
|
266
|
+
* (the delivery-scoped precedent) for the focus-scoped blocking kinds that
|
|
267
|
+
* applyRespawnGuard reads as a spawn block (team_failure) -- so a machine-filed
|
|
268
|
+
* spawn block clears itself the moment its own condition (genuine progress)
|
|
269
|
+
* clears, and the armed focus resumes spawning with no human act.
|
|
270
|
+
*
|
|
271
|
+
* Best-effort: a resolve failure for one row is logged and skipped, never thrown,
|
|
272
|
+
* so the caller's primary work (advancing a delivery) is not blocked. Returns the
|
|
273
|
+
* count resolved.
|
|
274
|
+
*/
|
|
275
|
+
/**
|
|
276
|
+
* Read the OPEN (pending or in_review) escalations of `escalationKind` for a
|
|
277
|
+
* focus, returning each row's id + metadata. The read sibling of
|
|
278
|
+
* resolveOpenFocusEscalationsOfKind, for close-halves whose clearing condition
|
|
279
|
+
* is per-row (e.g. review_coverage_incomplete clears only when the focus branch
|
|
280
|
+
* has stabilized at the tip recorded in the row's metadata at filing).
|
|
281
|
+
*/
|
|
282
|
+
/**
|
|
283
|
+
* List the escalation_kind of every OPEN (pending/in_review) escalation naming a
|
|
284
|
+
* focus -- the raw evidence the wedge-cause arbiter (TEL-3) draws on. Any-kind
|
|
285
|
+
* (no server kind filter); the caller narrows to wedge causes. Column-first with
|
|
286
|
+
* the metadata.focusId fallback for pre-backfill rows.
|
|
287
|
+
*/
|
|
288
|
+
export declare function listOpenFocusEscalationKinds(focusId: string, deps?: CallApiDeps): Promise<string[]>;
|
|
289
|
+
export declare function listOpenFocusEscalationsOfKind(focusId: string, escalationKind: string, deps?: CallApiDeps): Promise<Array<{
|
|
290
|
+
id: string;
|
|
291
|
+
metadata: Record<string, unknown> | null;
|
|
292
|
+
}>>;
|
|
293
|
+
export declare function resolveOpenFocusEscalationsOfKind(focusId: string, escalationKind: string, resolutionNotes: string, deps?: CallApiDeps): Promise<number>;
|
|
294
|
+
/**
|
|
295
|
+
* Auto-resolve the open worktree-dirty escalations for a focus once their
|
|
296
|
+
* underlying condition has cleared (the worktree is observed clean again, or a
|
|
297
|
+
* merge conflict has been merged through). Lists the open rows for the focus
|
|
298
|
+
* narrowed to `kinds`, resolves each with a daemon-remediation note, and
|
|
299
|
+
* returns the count resolved.
|
|
300
|
+
*
|
|
301
|
+
* This is the close half of the disposition-aware model: an agent_resolvable
|
|
302
|
+
* condition that auto-remediates should also stop showing in the human inbox
|
|
303
|
+
* the moment it clears, instead of lingering as a resolved-in-fact but
|
|
304
|
+
* still-pending row. Best-effort: a resolve failure for one row is logged and
|
|
305
|
+
* skipped, never thrown, so the caller's primary work is not blocked.
|
|
306
|
+
*
|
|
307
|
+
* Callers MUST pass `kinds` narrowed to the conditions the clearing event
|
|
308
|
+
* actually resolves -- e.g. a clean worktree clears advance_blocked /
|
|
309
|
+
* merge_refused_dirty but NOT merge_conflict (a content conflict is not a dirty
|
|
310
|
+
* worktree), and a successful merge clears merge_conflict.
|
|
311
|
+
*/
|
|
312
|
+
export declare function resolveOpenWorktreeDirtyEscalations(focusId: string, kinds: readonly string[], resolutionNotes?: string, deps?: CallApiDeps): Promise<number>;
|
|
313
|
+
/**
|
|
314
|
+
* Returns true when an OPEN (status pending or in_review) PRD machine escalation
|
|
315
|
+
* of the given `discriminator` already exists for the given PRD.
|
|
316
|
+
*
|
|
317
|
+
* PRD machine escalations are filed via escalations.fileEscalation with a machine
|
|
318
|
+
* `kind` -- carried in metadata.machine_discriminator (NOT the escalation_kind
|
|
319
|
+
* CHECK enum) -- and the prd id folded from `details` into metadata.prdId. So
|
|
320
|
+
* dedup matches on those two metadata fields. Parameterizing the discriminator
|
|
321
|
+
* lets every cadence-reachable PRD escalation path share ONE idempotency guard:
|
|
322
|
+
* the steward divergence path ('prd_divergence_steward_escalation') AND the
|
|
323
|
+
* reflex no-surviving-path fallback ('prd_divergence_no_surviving_path'), both of
|
|
324
|
+
* which would otherwise flood identically (the 172-duplicate storm class).
|
|
325
|
+
*
|
|
326
|
+
* Because it queries the DB rather than a process-lifetime in-memory Set, the
|
|
327
|
+
* dedup SURVIVES A DAEMON RESTART: the escalation storm this prevents (identical
|
|
328
|
+
* pending rows filed every cadence tick) cannot recur after a restart, unlike the
|
|
329
|
+
* no-arm-role Set whose intentional restart-renotify semantics stay untouched.
|
|
330
|
+
*
|
|
331
|
+
* The request narrows server-side by metadata->>prdId (metadataPrdId, honored by
|
|
332
|
+
* the live escalation_list handler) so a busy org cannot page this PRD's row off
|
|
333
|
+
* the 500-row window. The metadata predicate is ALSO applied client-side as
|
|
334
|
+
* defense-in-depth AND so the dedup works before the edge-fn filter deploys
|
|
335
|
+
* (edge changes propagate via the separate INFRA pipeline) -- an unknown
|
|
336
|
+
* metadataPrdId field is simply ignored server-side until then.
|
|
337
|
+
*/
|
|
338
|
+
export declare function hasOpenPrdEscalation(prdId: string, discriminator: string): Promise<boolean>;
|
|
339
|
+
/**
|
|
340
|
+
* Mark an escalation as resolved with optional notes.
|
|
341
|
+
*/
|
|
342
|
+
export declare function markEscalationResolved(escalationId: string, resolutionNotes?: string, deps?: CallApiDeps): Promise<void>;
|
|
343
|
+
//# sourceMappingURL=escalations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escalations.d.ts","sourceRoot":"","sources":["../../src/queries/escalations.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAW,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,wCAAwC,CAAC;AAWlG;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,cAAc,EAAE,MAAM,CAAC;IACvB,uHAAuH;IACvH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;;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