@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.
Files changed (268) hide show
  1. package/build-info.json +2 -2
  2. package/dist/audit/audit-hooks.d.ts +15 -6
  3. package/dist/audit/audit-hooks.d.ts.map +1 -1
  4. package/dist/audit/audit-hooks.js +56 -28
  5. package/dist/audit/audit-hooks.js.map +1 -1
  6. package/dist/ci/ci-escalation.js +1 -1
  7. package/dist/ci/ci-escalation.js.map +1 -1
  8. package/dist/ci/ci-sensor-loop.d.ts +24 -0
  9. package/dist/ci/ci-sensor-loop.d.ts.map +1 -1
  10. package/dist/ci/ci-sensor-loop.js +35 -9
  11. package/dist/ci/ci-sensor-loop.js.map +1 -1
  12. package/dist/cli/connect/config-write.d.ts +87 -0
  13. package/dist/cli/connect/config-write.d.ts.map +1 -0
  14. package/dist/cli/connect/config-write.js +255 -0
  15. package/dist/cli/connect/config-write.js.map +1 -0
  16. package/dist/cli/connect/registration.d.ts +76 -0
  17. package/dist/cli/connect/registration.d.ts.map +1 -0
  18. package/dist/cli/connect/registration.js +207 -0
  19. package/dist/cli/connect/registration.js.map +1 -0
  20. package/dist/cli/connect.d.ts +3 -141
  21. package/dist/cli/connect.d.ts.map +1 -1
  22. package/dist/cli/connect.js +9 -441
  23. package/dist/cli/connect.js.map +1 -1
  24. package/dist/completion/coverage-stabilized.d.ts +1 -1
  25. package/dist/completion/coverage-stabilized.d.ts.map +1 -1
  26. package/dist/completion/coverage-stabilized.js +1 -1
  27. package/dist/completion/coverage-stabilized.js.map +1 -1
  28. package/dist/completion/escalation-provenance.d.ts +2 -1
  29. package/dist/completion/escalation-provenance.d.ts.map +1 -1
  30. package/dist/completion/escalation-provenance.js +2 -1
  31. package/dist/completion/escalation-provenance.js.map +1 -1
  32. package/dist/completion/escalations.js +1 -1
  33. package/dist/completion/escalations.js.map +1 -1
  34. package/dist/completion/event-escalations.d.ts +1 -1
  35. package/dist/completion/event-escalations.d.ts.map +1 -1
  36. package/dist/completion/event-escalations.js +1 -1
  37. package/dist/completion/event-escalations.js.map +1 -1
  38. package/dist/completion/event.d.ts +1 -1
  39. package/dist/completion/event.d.ts.map +1 -1
  40. package/dist/completion/event.js +2 -2
  41. package/dist/completion/event.js.map +1 -1
  42. package/dist/completion/machine-remediable-demotion.d.ts +1 -1
  43. package/dist/completion/machine-remediable-demotion.d.ts.map +1 -1
  44. package/dist/completion/machine-remediable-demotion.js +2 -1
  45. package/dist/completion/machine-remediable-demotion.js.map +1 -1
  46. package/dist/completion/read-only-pristine.d.ts +1 -1
  47. package/dist/completion/read-only-pristine.d.ts.map +1 -1
  48. package/dist/completion/read-only-pristine.js +1 -1
  49. package/dist/completion/read-only-pristine.js.map +1 -1
  50. package/dist/completion/review-exit-escalations.d.ts +1 -1
  51. package/dist/completion/review-exit-escalations.d.ts.map +1 -1
  52. package/dist/completion/review-exit-phase.d.ts +5 -2
  53. package/dist/completion/review-exit-phase.d.ts.map +1 -1
  54. package/dist/completion/review-exit-phase.js +5 -2
  55. package/dist/completion/review-exit-phase.js.map +1 -1
  56. package/dist/completion/state-cascade.js +1 -1
  57. package/dist/completion/state-cascade.js.map +1 -1
  58. package/dist/completion/status-advance-phase.d.ts.map +1 -1
  59. package/dist/completion/status-advance-phase.js +2 -1
  60. package/dist/completion/status-advance-phase.js.map +1 -1
  61. package/dist/completion/team-lifecycle.d.ts.map +1 -1
  62. package/dist/completion/team-lifecycle.js +2 -1
  63. package/dist/completion/team-lifecycle.js.map +1 -1
  64. package/dist/delivery/delivery-advance-block.d.ts +1 -1
  65. package/dist/delivery/delivery-advance-block.d.ts.map +1 -1
  66. package/dist/delivery/delivery-advance-block.js +1 -1
  67. package/dist/delivery/delivery-advance-block.js.map +1 -1
  68. package/dist/delivery/delivery-lifecycle.js +1 -1
  69. package/dist/delivery/delivery-lifecycle.js.map +1 -1
  70. package/dist/delivery/delivery-merge-ops.js +1 -1
  71. package/dist/delivery/delivery-merge-ops.js.map +1 -1
  72. package/dist/delivery/delivery-reconciler-shadow.d.ts +1 -1
  73. package/dist/delivery/delivery-reconciler-shadow.d.ts.map +1 -1
  74. package/dist/delivery/delivery-reconciler-shadow.js +1 -1
  75. package/dist/delivery/delivery-reconciler-shadow.js.map +1 -1
  76. package/dist/delivery/operator-hold.d.ts +1 -1
  77. package/dist/delivery/operator-hold.d.ts.map +1 -1
  78. package/dist/delivery/paused-revival.d.ts.map +1 -1
  79. package/dist/delivery/paused-revival.js +2 -1
  80. package/dist/delivery/paused-revival.js.map +1 -1
  81. package/dist/directive/directive-dispatch.d.ts +1 -1
  82. package/dist/directive/directive-dispatch.d.ts.map +1 -1
  83. package/dist/directive/directive-dispatch.js +1 -1
  84. package/dist/directive/directive-dispatch.js.map +1 -1
  85. package/dist/directive/directive-executor.js +1 -1
  86. package/dist/directive/directive-executor.js.map +1 -1
  87. package/dist/drift/staleness-sensor.js +1 -1
  88. package/dist/drift/staleness-sensor.js.map +1 -1
  89. package/dist/focus/focus-engine.js +3 -2
  90. package/dist/focus/focus-engine.js.map +1 -1
  91. package/dist/focus/focus-lifecycle.d.ts.map +1 -1
  92. package/dist/focus/focus-lifecycle.js +2 -1
  93. package/dist/focus/focus-lifecycle.js.map +1 -1
  94. package/dist/focus/focus-respawn-guard.d.ts +1 -1
  95. package/dist/focus/focus-respawn-guard.d.ts.map +1 -1
  96. package/dist/focus/focus-respawn-guard.js +1 -1
  97. package/dist/focus/focus-respawn-guard.js.map +1 -1
  98. package/dist/focus/listener-auto-advance.d.ts +4 -45
  99. package/dist/focus/listener-auto-advance.d.ts.map +1 -1
  100. package/dist/focus/listener-auto-advance.js +5 -238
  101. package/dist/focus/listener-auto-advance.js.map +1 -1
  102. package/dist/focus/listener-spawn.d.ts +62 -0
  103. package/dist/focus/listener-spawn.d.ts.map +1 -0
  104. package/dist/focus/listener-spawn.js +418 -0
  105. package/dist/focus/listener-spawn.js.map +1 -0
  106. package/dist/focus/listener-state.d.ts +57 -0
  107. package/dist/focus/listener-state.d.ts.map +1 -0
  108. package/dist/focus/listener-state.js +63 -0
  109. package/dist/focus/listener-state.js.map +1 -0
  110. package/dist/focus/listener.d.ts +0 -58
  111. package/dist/focus/listener.d.ts.map +1 -1
  112. package/dist/focus/listener.js +25 -453
  113. package/dist/focus/listener.js.map +1 -1
  114. package/dist/focus/verify-open-issues.d.ts +62 -0
  115. package/dist/focus/verify-open-issues.d.ts.map +1 -0
  116. package/dist/focus/verify-open-issues.js +265 -0
  117. package/dist/focus/verify-open-issues.js.map +1 -0
  118. package/dist/focus-stage-lifecycle/index.d.ts +1 -1
  119. package/dist/focus-stage-lifecycle/index.d.ts.map +1 -1
  120. package/dist/focus-stage-lifecycle/index.js +1 -1
  121. package/dist/focus-stage-lifecycle/index.js.map +1 -1
  122. package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts +1 -1
  123. package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts.map +1 -1
  124. package/dist/focus-stage-lifecycle/wedge-watchdog.js +1 -1
  125. package/dist/focus-stage-lifecycle/wedge-watchdog.js.map +1 -1
  126. package/dist/git/index.d.ts +2 -0
  127. package/dist/git/index.d.ts.map +1 -1
  128. package/dist/git/index.js +2 -0
  129. package/dist/git/index.js.map +1 -1
  130. package/dist/git/merge-strategies.d.ts +80 -0
  131. package/dist/git/merge-strategies.d.ts.map +1 -0
  132. package/dist/git/merge-strategies.js +218 -0
  133. package/dist/git/merge-strategies.js.map +1 -0
  134. package/dist/git/merge-to-main.d.ts +76 -0
  135. package/dist/git/merge-to-main.d.ts.map +1 -0
  136. package/dist/git/merge-to-main.js +256 -0
  137. package/dist/git/merge-to-main.js.map +1 -0
  138. package/dist/git/merge.d.ts +27 -81
  139. package/dist/git/merge.d.ts.map +1 -1
  140. package/dist/git/merge.js +4 -448
  141. package/dist/git/merge.js.map +1 -1
  142. package/dist/git/state-detector.js +1 -1
  143. package/dist/git/state-detector.js.map +1 -1
  144. package/dist/loops/engine.js +1 -1
  145. package/dist/loops/engine.js.map +1 -1
  146. package/dist/merge/focus-merge.d.ts +1 -1
  147. package/dist/merge/focus-merge.d.ts.map +1 -1
  148. package/dist/merge/focus-merge.js +1 -1
  149. package/dist/merge/focus-merge.js.map +1 -1
  150. package/dist/merge/merge-back-loop.d.ts +1 -1
  151. package/dist/merge/merge-back-loop.d.ts.map +1 -1
  152. package/dist/merge/merge-back-loop.js +2 -2
  153. package/dist/merge/merge-back-loop.js.map +1 -1
  154. package/dist/merge/merge-detector.js +1 -1
  155. package/dist/merge/merge-detector.js.map +1 -1
  156. package/dist/nexus/return.js +1 -1
  157. package/dist/nexus/return.js.map +1 -1
  158. package/dist/prd/controller-shared.d.ts +223 -0
  159. package/dist/prd/controller-shared.d.ts.map +1 -0
  160. package/dist/prd/controller-shared.js +77 -0
  161. package/dist/prd/controller-shared.js.map +1 -0
  162. package/dist/prd/controller.d.ts +5 -256
  163. package/dist/prd/controller.d.ts.map +1 -1
  164. package/dist/prd/controller.js +9 -166
  165. package/dist/prd/controller.js.map +1 -1
  166. package/dist/prd/done-sweep.d.ts +55 -0
  167. package/dist/prd/done-sweep.d.ts.map +1 -0
  168. package/dist/prd/done-sweep.js +112 -0
  169. package/dist/prd/done-sweep.js.map +1 -0
  170. package/dist/prompt-sections/execution-sections.d.ts +1 -1
  171. package/dist/prompt-sections/execution-sections.d.ts.map +1 -1
  172. package/dist/prompt-sections/execution-sections.js +12 -2
  173. package/dist/prompt-sections/execution-sections.js.map +1 -1
  174. package/dist/prompt-sections/shared.d.ts +1 -1
  175. package/dist/prompt-sections/shared.d.ts.map +1 -1
  176. package/dist/queries/agent-resolvable-promotion.d.ts +1 -1
  177. package/dist/queries/agent-resolvable-promotion.d.ts.map +1 -1
  178. package/dist/queries/agent-resolvable-promotion.js +2 -1
  179. package/dist/queries/agent-resolvable-promotion.js.map +1 -1
  180. package/dist/queries/deliveries.d.ts +0 -195
  181. package/dist/queries/deliveries.d.ts.map +1 -1
  182. package/dist/queries/deliveries.js +1 -83
  183. package/dist/queries/deliveries.js.map +1 -1
  184. package/dist/queries/escalation-consumption.d.ts +120 -0
  185. package/dist/queries/escalation-consumption.d.ts.map +1 -0
  186. package/dist/queries/escalation-consumption.js +143 -0
  187. package/dist/queries/escalation-consumption.js.map +1 -0
  188. package/dist/queries/escalation-dispositions.d.ts +19 -0
  189. package/dist/queries/escalation-dispositions.d.ts.map +1 -0
  190. package/dist/queries/escalation-dispositions.js +18 -0
  191. package/dist/queries/escalation-dispositions.js.map +1 -0
  192. package/dist/queries/escalation-suppression.d.ts +1 -1
  193. package/dist/queries/escalation-suppression.d.ts.map +1 -1
  194. package/dist/queries/escalation-suppression.js +1 -1
  195. package/dist/queries/escalation-suppression.js.map +1 -1
  196. package/dist/queries/escalations.d.ts +343 -0
  197. package/dist/queries/escalations.d.ts.map +1 -0
  198. package/dist/queries/escalations.js +493 -0
  199. package/dist/queries/escalations.js.map +1 -0
  200. package/dist/queries/focus-discovery.d.ts +204 -0
  201. package/dist/queries/focus-discovery.d.ts.map +1 -0
  202. package/dist/queries/focus-discovery.js +92 -0
  203. package/dist/queries/focus-discovery.js.map +1 -0
  204. package/dist/queries/index.d.ts +4 -2
  205. package/dist/queries/index.d.ts.map +1 -1
  206. package/dist/queries/index.js +4 -2
  207. package/dist/queries/index.js.map +1 -1
  208. package/dist/queries/issues.d.ts +8 -436
  209. package/dist/queries/issues.d.ts.map +1 -1
  210. package/dist/queries/issues.js +7 -615
  211. package/dist/queries/issues.js.map +1 -1
  212. package/dist/resolvers/agent-escalations.d.ts +20 -0
  213. package/dist/resolvers/agent-escalations.d.ts.map +1 -1
  214. package/dist/resolvers/agent-escalations.js +40 -10
  215. package/dist/resolvers/agent-escalations.js.map +1 -1
  216. package/dist/resolvers/index.d.ts +2 -2
  217. package/dist/resolvers/index.d.ts.map +1 -1
  218. package/dist/resolvers/index.js +1 -1
  219. package/dist/resolvers/index.js.map +1 -1
  220. package/dist/resolvers/shared/git-diff.d.ts +99 -18
  221. package/dist/resolvers/shared/git-diff.d.ts.map +1 -1
  222. package/dist/resolvers/shared/git-diff.js +98 -27
  223. package/dist/resolvers/shared/git-diff.js.map +1 -1
  224. package/dist/shell/control-state.d.ts +1 -1
  225. package/dist/shell/control-state.d.ts.map +1 -1
  226. package/dist/shell/control-state.js +1 -1
  227. package/dist/shell/control-state.js.map +1 -1
  228. package/dist/shell/crash-recovery.d.ts +1 -1
  229. package/dist/shell/crash-recovery.d.ts.map +1 -1
  230. package/dist/shell/crash-recovery.js +2 -2
  231. package/dist/shell/crash-recovery.js.map +1 -1
  232. package/dist/shell/install-probe-tick.d.ts +1 -1
  233. package/dist/shell/install-probe-tick.d.ts.map +1 -1
  234. package/dist/shell/install-probe-tick.js +1 -1
  235. package/dist/shell/install-probe-tick.js.map +1 -1
  236. package/dist/shell/unified-shell.js +1 -1
  237. package/dist/shell/unified-shell.js.map +1 -1
  238. package/dist/spawn/model-routing.d.ts +1 -1
  239. package/dist/spawn/model-routing.d.ts.map +1 -1
  240. package/dist/spawn/model-routing.js +1 -1
  241. package/dist/spawn/model-routing.js.map +1 -1
  242. package/dist/spawn/prompt-assembly.d.ts +1 -1
  243. package/dist/spawn/prompt-assembly.d.ts.map +1 -1
  244. package/dist/spawn/prompt-assembly.js +1 -1
  245. package/dist/spawn/prompt-assembly.js.map +1 -1
  246. package/dist/spawn/spawn-decision.js +1 -1
  247. package/dist/spawn/spawn-decision.js.map +1 -1
  248. package/dist/spawn/worktree-session.d.ts +1 -1
  249. package/dist/spawn/worktree-session.d.ts.map +1 -1
  250. package/dist/spawn/worktree-session.js +1 -1
  251. package/dist/spawn/worktree-session.js.map +1 -1
  252. package/dist/templates/claude-md.d.ts +1 -1
  253. package/dist/templates/claude-md.d.ts.map +1 -1
  254. package/dist/templates/claude-md.js +12 -0
  255. package/dist/templates/claude-md.js.map +1 -1
  256. package/dist/verify/verification-default-on.d.ts +1 -1
  257. package/dist/verify/verification-default-on.d.ts.map +1 -1
  258. package/dist/verify/verification-deps.d.ts +1 -1
  259. package/dist/verify/verification-deps.d.ts.map +1 -1
  260. package/dist/verify/verification-engine.d.ts.map +1 -1
  261. package/dist/verify/verification-engine.js +20 -12
  262. package/dist/verify/verification-engine.js.map +1 -1
  263. package/dist/worktree/provision.js +1 -1
  264. package/dist/worktree/provision.js.map +1 -1
  265. package/dist/worktree/scratch-guard.d.ts.map +1 -1
  266. package/dist/worktree/scratch-guard.js +23 -2
  267. package/dist/worktree/scratch-guard.js.map +1 -1
  268. package/package.json +1 -1
@@ -1,9 +1,13 @@
1
1
  /**
2
- * Issue and escalation queries.
2
+ * Issue CRUD queries.
3
+ *
4
+ * The escalation-query family (creation, open-escalation dedup reads,
5
+ * resolution) moved to queries/escalations.ts + queries/escalation-consumption.ts
6
+ * (file-size limit). Importers reference those modules directly -- this module
7
+ * deliberately does NOT re-export them, per the daemon's
8
+ * import-from-the-defining-module (no-facade) discipline.
3
9
  */
4
- import { type CallApiDeps } from './shared.js';
5
10
  import { DeliveryIssueSchema } from './schemas.js';
6
- import { resolveProvenance, type EscalationAnchor } from '../completion/escalation-provenance.js';
7
11
  import { z } from 'zod';
8
12
  type ApiIssue = z.infer<typeof DeliveryIssueSchema>;
9
13
  /**
@@ -19,441 +23,9 @@ export declare function getDeliverySessionCount(deliveryId: string): Promise<num
19
23
  * workflow doesn't allow a direct jump (e.g. To Do -> Done goes through In Progress).
20
24
  */
21
25
  export declare function updateIssueStatus(issueId: string, status: string): Promise<void>;
22
- /**
23
- * Parameters for creating an escalation request.
24
- */
25
- export interface CreateEscalationParams {
26
- organizationId: string;
27
- /** Session context (informational only -- not forwarded to the edge fn). Optional for daemon-side non-team callers. */
28
- sessionId?: string;
29
- issueId: string | null;
30
- reasonType: string;
31
- description: string;
32
- whatWasTried?: string;
33
- helpNeeded?: string;
34
- /**
35
- * Optional discriminator for the kind of escalation (e.g. 'stuck_focus_branch').
36
- * Persisted on `agent_escalations.escalation_kind` when present.
37
- */
38
- escalationKind?: string;
39
- /**
40
- * Optional structured metadata (e.g. { branch_name, focus_id }).
41
- * Persisted on `agent_escalations.metadata` when present.
42
- */
43
- metadata?: Record<string, unknown>;
44
- /**
45
- * Optional first-class provenance: where this escalation came from.
46
- * Persisted on the agent_escalations product_id/focus_id/delivery_id
47
- * columns. Prefer deriving these via resolveProvenance(anchor) so no
48
- * site files an anonymous escalation when an anchor is available.
49
- */
50
- productId?: string;
51
- focusId?: string;
52
- deliveryId?: string;
53
- /**
54
- * Optional disposition: the resolution routing axis (who/what can resolve
55
- * this). Distinct from escalationKind (the diagnosis). One of
56
- * EscalationDisposition. Persisted on agent_escalations.disposition.
57
- */
58
- disposition?: string;
59
- /**
60
- * Optional cross-product TARGET provenance: the product this escalation is a
61
- * blocker AGAINST (distinct from productId, which is the SOURCE product the
62
- * escalation came from). Forwarded to the edge as fields.targetProductId. The
63
- * edge escalation_create handler may or may not persist this on the
64
- * agent_escalations.target_product_id column yet -- the escalation -> Nexus
65
- * bridge does not depend on that, since the audit row also carries the target
66
- * in metadata.target_product_id.
67
- */
68
- targetProductId?: string;
69
- /**
70
- * Optional provenance anchor: whatever the creation site holds (a delivery,
71
- * focus, issue, session id, or branch). When present, the shared path runs
72
- * resolveProvenance(anchor) and stamps the derived product/focus/delivery
73
- * columns -- so no site files an anonymous escalation when an anchor is
74
- * available. Explicitly-passed productId/focusId/deliveryId on params WIN
75
- * over the derived values (caller intent beats derivation).
76
- */
77
- anchor?: EscalationAnchor;
78
- }
79
- /**
80
- * Create an escalation request.
81
- *
82
- * When `anchor` is supplied, provenance is derived centrally via
83
- * resolveProvenance and merged with any explicit productId/focusId/deliveryId
84
- * on params (explicit wins). This is the single stamping point that closes
85
- * Delivery C: every site routes through here and provenance is guaranteed
86
- * whenever an anchor is available. resolveProvenance never throws, so a
87
- * derivation miss degrades to the explicit fields (or none) rather than
88
- * aborting the escalation.
89
- */
90
- /**
91
- * Injectable deps for createEscalation. Two-dep cascade: the shared path calls
92
- * BOTH callApi (to write the row) AND resolveProvenance (to derive the anchor's
93
- * product/focus/delivery columns). CallApiDeps only covers callApi, so this
94
- * local interface adds the provenance seam. A test injects fakes THROUGH deps,
95
- * registering ZERO mock.module (which would poison the daemon-core mock-loader);
96
- * production callers pass nothing and get the real imports.
97
- */
98
- export interface CreateEscalationDeps extends CallApiDeps {
99
- resolveProvenance?: typeof resolveProvenance;
100
- }
101
- export declare function createEscalation(params: CreateEscalationParams, deps?: CreateEscalationDeps): Promise<{
102
- escalationId: string | null;
103
- }>;
104
- /**
105
- * Minimal shape of an escalation row returned by listPendingEscalations.
106
- * Only includes the fields needed by the merge-back loop.
107
- */
108
- export interface PendingEscalation {
109
- id: string;
110
- reasonType: string;
111
- description: string;
112
- whatWasTried: string | null;
113
- helpNeeded: string | null;
114
- escalationKind?: string | null;
115
- metadata?: Record<string, unknown> | null;
116
- }
117
- /**
118
- * List open (not-yet-resolved) escalations for the organization.
119
- *
120
- * Returns rows with status in `('pending', 'in_review')` -- both are
121
- * "open" from a dedup perspective. An operator may move a stuck-branch
122
- * escalation to `in_review` while triaging; the merge-back loop must
123
- * still treat it as suppressing duplicates so it does not file a second
124
- * `pending` row for the same branch.
125
- *
126
- * Used by the merge-back loop to detect when a branch already has an
127
- * unresolved merge-conflict escalation, and to find existing stuck-branch
128
- * escalations for dedup / auto-resolution.
129
- */
130
- export declare function listPendingEscalations(deps?: CallApiDeps): Promise<PendingEscalation[]>;
131
- /**
132
- * Returns true when an open (status pending or in_review) team_failure
133
- * escalation exists for the given focus.
134
- *
135
- * Used by the focus-executor spawn precondition to prevent respawning a
136
- * team that has already given up on a focus. The escalation row is the
137
- * signal "this focus is not currently workable"; until a human resolves
138
- * it, the daemon should not spend cycles re-deriving the same conclusion.
139
- *
140
- * Dedup matches on the first-class `focus_id` column (stamped via the
141
- * anchor since Delivery B of the Escalation Signal Richness focus). A
142
- * metadata.focusId fallback covers any rows that predate the migration's
143
- * backfill and landed in the deployment window before the daemon restarted.
144
- */
145
- export declare function hasOpenTeamFailureEscalation(focusId: string, deps?: CallApiDeps, opts?: {
146
- excludeAgentResolvable?: boolean;
147
- }): Promise<boolean>;
148
- /**
149
- * Returns true when an open (status pending or in_review) escalation exists
150
- * for the given delivery + kind discriminator.
151
- *
152
- * Now that the advance-block class is a first-class `escalation_kind`
153
- * ('advance_blocked', added to the DB CHECK + ESCALATION_KINDS) and the
154
- * delivery is a first-class `delivery_id` column, dedup matches on the
155
- * COLUMNS in preference to the metadata bag. A metadata fallback is retained
156
- * for back-compat with rows already open at deploy time (filed before this
157
- * promotion, which carry the discriminator only in metadata.kind /
158
- * metadata.deliveryId).
159
- *
160
- * Used by the delivery advance-block path so a delivery stuck across many
161
- * polls files exactly one open escalation instead of one per tick.
162
- */
163
- export declare function hasOpenEscalationForDelivery(deliveryId: string, escalationKind: string): Promise<boolean>;
164
- import { OPERATOR_HOLD_DISPOSITIONS, SELF_REPORT_STALL_HOLD_KINDS, REFUSED_OPERATOR_HOLD_KINDS, findOpenOperatorHoldForDelivery, hasOpenOperatorHoldForDelivery, type OperatorHoldEscalation } from './holds.js';
165
- export { OPERATOR_HOLD_DISPOSITIONS, SELF_REPORT_STALL_HOLD_KINDS, REFUSED_OPERATOR_HOLD_KINDS, findOpenOperatorHoldForDelivery, hasOpenOperatorHoldForDelivery, };
166
- export type { OperatorHoldEscalation };
167
- /**
168
- * escalation_kind discriminators for the two focus-merge worktree-dirty
169
- * classes. Declared as daemon-local string constants (not imported from
170
- * @telora/daemon-core's ESCALATION_KINDS) on purpose: the daemon consumes the
171
- * registry-PUBLISHED daemon-core, so it cannot reference newly-added enum
172
- * members until a build that depends on a daemon-core publish carrying them.
173
- * They ARE now in daemon-core (ESCALATION_KINDS.MERGE_CONFLICT /
174
- * .MERGE_REFUSED_DIRTY, shipped in 0.2.45) for other consumers (frontend, MCP),
175
- * but the daemon keeps the local strings so this code does not depend on the
176
- * publish ordering. The DB CHECK is the real constraint -- loosened by the
177
- * agent_escalations_kind_merge_classes migration to admit these two values --
178
- * and the daemon stamps them as plain strings.
179
- * (advance_blocked already shipped in daemon-core as ESCALATION_KINDS.ADVANCE_BLOCKED.)
180
- */
181
- export declare const MERGE_CONFLICT_ESCALATION_KIND = "merge_conflict";
182
- export declare const MERGE_REFUSED_DIRTY_ESCALATION_KIND = "merge_refused_dirty";
183
- /**
184
- * The worktree-dirty escalation classes: a single physical fact (one focus
185
- * worktree with uncommitted changes) can be observed by three independent
186
- * daemon paths -- the delivery advance-block guard (advance_blocked), the
187
- * focus-merge dirty-worktree refusal (merge_refused_dirty), and the
188
- * focus-merge conflict path (merge_conflict). They are siblings: when one is
189
- * already open for a focus, the others should suppress rather than pile on.
190
- */
191
- export declare const WORKTREE_DIRTY_ESCALATION_KINDS: readonly string[];
192
- /**
193
- * Returns true when an open (status pending or in_review) worktree-dirty-class
194
- * escalation exists for the given FOCUS.
195
- *
196
- * This generalizes hasOpenEscalationForDelivery from per-delivery to
197
- * focus/worktree grain. A dirty worktree is a property of one focus worktree
198
- * shared by all of the focus's deliveries, so deduping per delivery emits N
199
- * rows for one physical fact. Keying on the focus collapses them to one.
200
- *
201
- * It also collapses ACROSS escalation classes: by default the sibling set is
202
- * { advance_blocked, merge_conflict, merge_refused_dirty }, so an open
203
- * advance-block escalation suppresses a merge-refuse one (and vice versa) --
204
- * one dirty-worktree fact yields at most one open escalation regardless of how
205
- * many code paths observe it. Pass `kinds` to narrow the sibling set.
206
- *
207
- * Dedup matches on the typed `focus_id` + `escalation_kind` COLUMNS in
208
- * preference to the metadata bag, with a metadata fallback (metadata.focusId /
209
- * metadata.kind) for rows already open at deploy time. Because it queries the
210
- * DB rather than an in-memory Set, the dedup survives a daemon restart.
211
- *
212
- * The request narrows server-side by `focusId` + open `statuses` (both honored
213
- * by the live escalation_list handler) so the 500-row page is scoped to this
214
- * focus's open rows, not the org's newest 500 -- closing the gap where a busy
215
- * org could push the matching sibling off the page. The status + focus + kind
216
- * predicate is ALSO applied client-side (isOpenWorktreeDirtyMatch) as
217
- * defense-in-depth.
218
- */
219
- export declare function hasOpenWorktreeDirtyEscalation(focusId: string, kinds?: readonly string[], deps?: CallApiDeps): Promise<boolean>;
220
- /** The escalation_kind filed by the planning-wedge watchdog. */
221
- export declare const WEDGED_FOCUS_ESCALATION_KIND = "wedged_focus";
222
- /**
223
- * Returns true when an OPEN (status pending or in_review) wedged_focus
224
- * escalation already exists for the given FOCUS.
225
- *
226
- * The planning-wedge watchdog re-evaluates every poll tick, so without a dedup
227
- * it would file an identical wedged_focus row each tick the focus stays wedged
228
- * (the 172-duplicate storm class). Keying on the focus + escalation_kind COLUMNS
229
- * collapses the threshold-crossing escalation to at most one open row per focus.
230
- *
231
- * Mirrors hasOpenWorktreeDirtyEscalation: the request narrows server-side by
232
- * focusId + open statuses (both honored by the live escalation_list handler) so
233
- * a busy org cannot page the matching row off the 500-row window, and the
234
- * status + focus + kind predicate is ALSO applied client-side as defense-in-depth.
235
- * Because it queries the DB rather than an in-memory Set, the dedup SURVIVES A
236
- * DAEMON RESTART -- a restart cannot re-storm a focus that is still wedged.
237
- */
238
- export declare function hasOpenWedgedFocusEscalation(focusId: string): Promise<boolean>;
239
- /**
240
- * Returns true when an OPEN (status pending or in_review) escalation of the
241
- * given `escalationKind` already exists for the given FOCUS. Generic per-focus
242
- * dedup, mirroring hasOpenWedgedFocusEscalation but parameterized on the kind.
243
- *
244
- * Used by the targeted stall detectors (review_window_stalled) so a focus that
245
- * stays stalled across many poll ticks files exactly one open escalation
246
- * instead of one per tick. Queries the DB (not an in-memory Set), so the dedup
247
- * survives a daemon restart. Narrows server-side by focusId + open statuses and
248
- * re-applies the status/focus/kind predicate client-side as defense-in-depth.
249
- */
250
- /**
251
- * The escalation_kind the review-exit drift-streak breaker files when a focus
252
- * branch keeps advancing DURING each review pass (review-exit-escalations.ts).
253
- * Named here so the respawn guard and the filer agree on the exact string.
254
- */
255
- export declare const REVIEW_COVERAGE_INCOMPLETE_ESCALATION_KIND = "review_coverage_incomplete";
256
- /**
257
- * Returns true when an open (status pending or in_review)
258
- * review_coverage_incomplete escalation exists for the given focus.
259
- *
260
- * Used by the respawn guard so a focus whose drift-streak breaker has already
261
- * fired parks its re-review spawns instead of burning a review cycle every
262
- * spawn cooldown while the escalation sits open (the 2026-08-06 incident: the
263
- * breaker fired 4 minutes in, but nothing stopped the loop for 4.5h). Mirrors
264
- * hasOpenTeamFailureEscalation; delegates to the generic per-focus dedup query.
265
- */
266
- export declare function hasOpenReviewCoverageIncompleteEscalation(focusId: string): Promise<boolean>;
267
- export declare function hasOpenFocusEscalation(focusId: string, escalationKind: string): Promise<boolean>;
268
- /**
269
- * The close half for a per-FOCUS escalation kind: resolve every open (pending or
270
- * in_review) escalation of `escalationKind` for the focus, once the daemon has
271
- * observed its clearing condition. Mirrors resolveOpenWorktreeDirtyEscalations
272
- * (the delivery-scoped precedent) for the focus-scoped blocking kinds that
273
- * applyRespawnGuard reads as a spawn block (team_failure) -- so a machine-filed
274
- * spawn block clears itself the moment its own condition (genuine progress)
275
- * clears, and the armed focus resumes spawning with no human act.
276
- *
277
- * Best-effort: a resolve failure for one row is logged and skipped, never thrown,
278
- * so the caller's primary work (advancing a delivery) is not blocked. Returns the
279
- * count resolved.
280
- */
281
- /**
282
- * Read the OPEN (pending or in_review) escalations of `escalationKind` for a
283
- * focus, returning each row's id + metadata. The read sibling of
284
- * resolveOpenFocusEscalationsOfKind, for close-halves whose clearing condition
285
- * is per-row (e.g. review_coverage_incomplete clears only when the focus branch
286
- * has stabilized at the tip recorded in the row's metadata at filing).
287
- */
288
- /**
289
- * List the escalation_kind of every OPEN (pending/in_review) escalation naming a
290
- * focus -- the raw evidence the wedge-cause arbiter (TEL-3) draws on. Any-kind
291
- * (no server kind filter); the caller narrows to wedge causes. Column-first with
292
- * the metadata.focusId fallback for pre-backfill rows.
293
- */
294
- export declare function listOpenFocusEscalationKinds(focusId: string, deps?: CallApiDeps): Promise<string[]>;
295
- export declare function listOpenFocusEscalationsOfKind(focusId: string, escalationKind: string, deps?: CallApiDeps): Promise<Array<{
296
- id: string;
297
- metadata: Record<string, unknown> | null;
298
- }>>;
299
- export declare function resolveOpenFocusEscalationsOfKind(focusId: string, escalationKind: string, resolutionNotes: string, deps?: CallApiDeps): Promise<number>;
300
- /**
301
- * Auto-resolve the open worktree-dirty escalations for a focus once their
302
- * underlying condition has cleared (the worktree is observed clean again, or a
303
- * merge conflict has been merged through). Lists the open rows for the focus
304
- * narrowed to `kinds`, resolves each with a daemon-remediation note, and
305
- * returns the count resolved.
306
- *
307
- * This is the close half of the disposition-aware model: an agent_resolvable
308
- * condition that auto-remediates should also stop showing in the human inbox
309
- * the moment it clears, instead of lingering as a resolved-in-fact but
310
- * still-pending row. Best-effort: a resolve failure for one row is logged and
311
- * skipped, never thrown, so the caller's primary work is not blocked.
312
- *
313
- * Callers MUST pass `kinds` narrowed to the conditions the clearing event
314
- * actually resolves -- e.g. a clean worktree clears advance_blocked /
315
- * merge_refused_dirty but NOT merge_conflict (a content conflict is not a dirty
316
- * worktree), and a successful merge clears merge_conflict.
317
- */
318
- export declare function resolveOpenWorktreeDirtyEscalations(focusId: string, kinds: readonly string[], resolutionNotes?: string, deps?: CallApiDeps): Promise<number>;
319
- /** An open agent_resolvable filing the daemon hands to a focus's next spawn. */
320
- export interface AgentResolvableItem {
321
- id: string;
322
- escalationKind: string | null;
323
- description: string;
324
- createdAt: string;
325
- }
326
- /** Minimal escalation row shape the agent_resolvable filter reads. */
327
- export interface AgentResolvableEscalationRow {
328
- id: string;
329
- status?: string | null;
330
- disposition?: string | null;
331
- escalationKind?: string | null;
332
- description?: string | null;
333
- createdAt?: string | null;
334
- organizationId?: string | null;
335
- focusId?: string | null;
336
- productId?: string | null;
337
- }
338
- /**
339
- * An open agent_resolvable filing carrying its OWN anchor (org/focus/product).
340
- * The focus-scoped read (listOpenAgentResolvableForFocus) already knows the
341
- * focus it queried, so its items omit the anchor. The ORG-WIDE read does not --
342
- * it spans every focus, so each item must carry the anchor the promotion needs
343
- * to refile a needs_operator escalation against the right focus.
344
- */
345
- export interface OrgAgentResolvableItem extends AgentResolvableItem {
346
- organizationId: string | null;
347
- focusId: string | null;
348
- productId: string | null;
349
- }
350
- /**
351
- * Pure: keep only the OPEN, agent_resolvable rows and shape them into
352
- * AgentResolvableItems. The status re-check is defense-in-depth so a
353
- * resolved/dismissed row can never ride into a spawn even if the fetch returned
354
- * one. Exported for direct unit testing (no callApi mocking needed).
355
- */
356
- export declare function toAgentResolvableItems(rows: readonly AgentResolvableEscalationRow[]): AgentResolvableItem[];
357
- /**
358
- * List the OPEN (pending/in_review) agent_resolvable escalations anchored to a
359
- * focus -- the filings a machine (the next spawned team) can resolve without a
360
- * human. This is how the daemon CONSUMES agent_resolvable filings: it hands them
361
- * to the focus's next execution spawn (ride-into-next-spawn) so the agent
362
- * addresses them as part of its work, and on a clean exit they auto-resolve.
363
- * agent_resolvable rows are hidden from the operator inbox (the disposition
364
- * routes to the machine, not the human); this is the machine-side counterpart read.
365
- *
366
- * escalation_list does not filter by disposition server-side, so we narrow
367
- * server-side by focusId + open statuses (scoping the 500-row page to this focus)
368
- * and filter disposition === agent_resolvable client-side. The status re-check is
369
- * defense-in-depth so a resolved/dismissed row can never ride into a spawn.
370
- */
371
- export declare function listOpenAgentResolvableForFocus(focusId: string): Promise<AgentResolvableItem[]>;
372
- /**
373
- * Pure: keep only the OPEN, agent_resolvable rows and shape them into
374
- * OrgAgentResolvableItems, carrying each row's org/focus/product anchor. Same
375
- * open+disposition filter as toAgentResolvableItems; the difference is the
376
- * anchor fields the org-wide promotion needs. Exported for direct unit testing.
377
- */
378
- export declare function toOrgAgentResolvableItems(rows: readonly AgentResolvableEscalationRow[]): OrgAgentResolvableItem[];
379
- /**
380
- * List the OPEN (pending/in_review) agent_resolvable escalations across the
381
- * ENTIRE org -- NOT scoped to a single focus. This is the read behind the
382
- * org-wide promotion sweep: it catches filings anchored to a focus that never
383
- * spawns a team (un-armed, or wedged by an open blocking escalation), which the
384
- * focus-scoped ride-into-spawn read (listOpenAgentResolvableForFocus) never sees
385
- * because no spawn ever queries that focus.
386
- *
387
- * escalation_list scopes to the daemon's org by auth and does not filter by
388
- * disposition server-side, so we narrow to open statuses server-side (the 500-row
389
- * page) and filter disposition === agent_resolvable client-side. Each row's
390
- * first-class focus_id / product_id / organization_id columns are carried onto
391
- * the item so the promotion can anchor its needs_operator refile to the right
392
- * focus.
393
- */
394
- export declare function listOpenAgentResolvableForOrg(deps?: CallApiDeps): Promise<OrgAgentResolvableItem[]>;
395
- /** An open needs_intent team_failure the evidence-driven demotion (TEL-3) evaluates. */
396
- export interface DemotableTeamFailureItem {
397
- id: string;
398
- escalationKind: string | null;
399
- description: string;
400
- createdAt: string;
401
- organizationId: string | null;
402
- focusId: string | null;
403
- productId: string | null;
404
- /** The lead's recorded stated cause (metadata.statedCause), if any. */
405
- statedCause: string | undefined;
406
- }
407
- interface DemotableEscalationRow extends AgentResolvableEscalationRow {
408
- metadata?: Record<string, unknown> | null;
409
- }
410
- /**
411
- * Pure: keep only OPEN team_failure escalations disposed needs_intent, shaping
412
- * them for the demotion sweep. team_failure kind (not daemon_gate_stuck) with
413
- * needs_intent is exactly the class TEL-1 files ONLY when a human-decision cause
414
- * matched -- so a row here whose recorded cause is NOT a human decision is a
415
- * misrouted / pre-TEL-1 filing the machine can take back. Exported for testing.
416
- */
417
- export declare function toDemotableTeamFailureItems(rows: readonly DemotableEscalationRow[]): DemotableTeamFailureItem[];
418
- /**
419
- * List the org's OPEN needs_intent team_failure escalations -- the candidates the
420
- * evidence-driven demotion (TEL-3) re-classifies. Same open-status server filter +
421
- * detail:'full' (for metadata + description + org anchor) as
422
- * listOpenAgentResolvableForOrg; disposition/kind are filtered client-side.
423
- */
424
- export declare function listOpenDemotableTeamFailureForOrg(deps?: CallApiDeps): Promise<DemotableTeamFailureItem[]>;
425
- /**
426
- * Returns true when an OPEN (status pending or in_review) PRD machine escalation
427
- * of the given `discriminator` already exists for the given PRD.
428
- *
429
- * PRD machine escalations are filed via escalations.fileEscalation with a machine
430
- * `kind` -- carried in metadata.machine_discriminator (NOT the escalation_kind
431
- * CHECK enum) -- and the prd id folded from `details` into metadata.prdId. So
432
- * dedup matches on those two metadata fields. Parameterizing the discriminator
433
- * lets every cadence-reachable PRD escalation path share ONE idempotency guard:
434
- * the steward divergence path ('prd_divergence_steward_escalation') AND the
435
- * reflex no-surviving-path fallback ('prd_divergence_no_surviving_path'), both of
436
- * which would otherwise flood identically (the 172-duplicate storm class).
437
- *
438
- * Because it queries the DB rather than a process-lifetime in-memory Set, the
439
- * dedup SURVIVES A DAEMON RESTART: the escalation storm this prevents (identical
440
- * pending rows filed every cadence tick) cannot recur after a restart, unlike the
441
- * no-arm-role Set whose intentional restart-renotify semantics stay untouched.
442
- *
443
- * The request narrows server-side by metadata->>prdId (metadataPrdId, honored by
444
- * the live escalation_list handler) so a busy org cannot page this PRD's row off
445
- * the 500-row window. The metadata predicate is ALSO applied client-side as
446
- * defense-in-depth AND so the dedup works before the edge-fn filter deploys
447
- * (edge changes propagate via the separate INFRA pipeline) -- an unknown
448
- * metadataPrdId field is simply ignored server-side until then.
449
- */
450
- export declare function hasOpenPrdEscalation(prdId: string, discriminator: string): Promise<boolean>;
451
- /**
452
- * Mark an escalation as resolved with optional notes.
453
- */
454
- export declare function markEscalationResolved(escalationId: string, resolutionNotes?: string, deps?: CallApiDeps): Promise<void>;
455
26
  /**
456
27
  * Create an issue on a delivery (for create_issue trigger action).
457
28
  */
458
29
  export declare function createIssue(deliveryId: string, title: string, description: string | null, issueType: string, priority: string | null): Promise<string>;
30
+ export {};
459
31
  //# sourceMappingURL=issues.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/queries/issues.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAA6B,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1E,OAAO,EAIL,mBAAmB,EACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,KAAK,gBAAgB,EAAE,MAAM,wCA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