@telora/daemon 0.21.83 → 0.21.134

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 (267) hide show
  1. package/build-info.json +10 -3
  2. package/dist/audit/audit-hooks.d.ts +106 -0
  3. package/dist/audit/audit-hooks.d.ts.map +1 -1
  4. package/dist/audit/audit-hooks.js +149 -17
  5. package/dist/audit/audit-hooks.js.map +1 -1
  6. package/dist/ci/ci-sensor-loop.d.ts +6 -0
  7. package/dist/ci/ci-sensor-loop.d.ts.map +1 -1
  8. package/dist/ci/ci-sensor-loop.js +50 -3
  9. package/dist/ci/ci-sensor-loop.js.map +1 -1
  10. package/dist/ci/ci-status.d.ts +63 -11
  11. package/dist/ci/ci-status.d.ts.map +1 -1
  12. package/dist/ci/ci-status.js +94 -27
  13. package/dist/ci/ci-status.js.map +1 -1
  14. package/dist/completion/coverage-drift-state.d.ts +29 -2
  15. package/dist/completion/coverage-drift-state.d.ts.map +1 -1
  16. package/dist/completion/coverage-drift-state.js +42 -2
  17. package/dist/completion/coverage-drift-state.js.map +1 -1
  18. package/dist/completion/coverage-stabilized.d.ts +58 -0
  19. package/dist/completion/coverage-stabilized.d.ts.map +1 -0
  20. package/dist/completion/coverage-stabilized.js +84 -0
  21. package/dist/completion/coverage-stabilized.js.map +1 -0
  22. package/dist/completion/delivery-advancement-guard.d.ts +21 -0
  23. package/dist/completion/delivery-advancement-guard.d.ts.map +1 -1
  24. package/dist/completion/delivery-advancement-guard.js +31 -3
  25. package/dist/completion/delivery-advancement-guard.js.map +1 -1
  26. package/dist/completion/event-escalations.d.ts +15 -0
  27. package/dist/completion/event-escalations.d.ts.map +1 -1
  28. package/dist/completion/event-escalations.js +42 -4
  29. package/dist/completion/event-escalations.js.map +1 -1
  30. package/dist/completion/event-phases.d.ts.map +1 -1
  31. package/dist/completion/event-phases.js +10 -5
  32. package/dist/completion/event-phases.js.map +1 -1
  33. package/dist/completion/machine-remediable-demotion.d.ts +74 -0
  34. package/dist/completion/machine-remediable-demotion.d.ts.map +1 -0
  35. package/dist/completion/machine-remediable-demotion.js +147 -0
  36. package/dist/completion/machine-remediable-demotion.js.map +1 -0
  37. package/dist/completion/review-exit-escalations.d.ts +36 -1
  38. package/dist/completion/review-exit-escalations.d.ts.map +1 -1
  39. package/dist/completion/review-exit-escalations.js +81 -0
  40. package/dist/completion/review-exit-escalations.js.map +1 -1
  41. package/dist/completion/review-exit-phase.d.ts +4 -2
  42. package/dist/completion/review-exit-phase.d.ts.map +1 -1
  43. package/dist/completion/review-exit-phase.js +49 -54
  44. package/dist/completion/review-exit-phase.js.map +1 -1
  45. package/dist/completion/settle-injection-sweep.d.ts +55 -0
  46. package/dist/completion/settle-injection-sweep.d.ts.map +1 -0
  47. package/dist/completion/settle-injection-sweep.js +88 -0
  48. package/dist/completion/settle-injection-sweep.js.map +1 -0
  49. package/dist/completion/state-cascade.d.ts.map +1 -1
  50. package/dist/completion/state-cascade.js +41 -0
  51. package/dist/completion/state-cascade.js.map +1 -1
  52. package/dist/completion/status-advance-phase.d.ts.map +1 -1
  53. package/dist/completion/status-advance-phase.js +28 -30
  54. package/dist/completion/status-advance-phase.js.map +1 -1
  55. package/dist/completion/team-lifecycle.d.ts +42 -0
  56. package/dist/completion/team-lifecycle.d.ts.map +1 -1
  57. package/dist/completion/team-lifecycle.js +79 -2
  58. package/dist/completion/team-lifecycle.js.map +1 -1
  59. package/dist/delivery/delivery-lifecycle.d.ts +19 -33
  60. package/dist/delivery/delivery-lifecycle.d.ts.map +1 -1
  61. package/dist/delivery/delivery-lifecycle.js +26 -160
  62. package/dist/delivery/delivery-lifecycle.js.map +1 -1
  63. package/dist/delivery/delivery-merge-ops.d.ts +46 -0
  64. package/dist/delivery/delivery-merge-ops.d.ts.map +1 -0
  65. package/dist/delivery/delivery-merge-ops.js +154 -0
  66. package/dist/delivery/delivery-merge-ops.js.map +1 -0
  67. package/dist/delivery/delivery-reconciler-apply.d.ts +108 -66
  68. package/dist/delivery/delivery-reconciler-apply.d.ts.map +1 -1
  69. package/dist/delivery/delivery-reconciler-apply.js +87 -61
  70. package/dist/delivery/delivery-reconciler-apply.js.map +1 -1
  71. package/dist/delivery/delivery-reconciler.d.ts +7 -2
  72. package/dist/delivery/delivery-reconciler.d.ts.map +1 -1
  73. package/dist/delivery/delivery-reconciler.js +34 -5
  74. package/dist/delivery/delivery-reconciler.js.map +1 -1
  75. package/dist/delivery/external-hold-surface.d.ts +32 -0
  76. package/dist/delivery/external-hold-surface.d.ts.map +1 -0
  77. package/dist/delivery/external-hold-surface.js +67 -0
  78. package/dist/delivery/external-hold-surface.js.map +1 -0
  79. package/dist/delivery/external-hold.d.ts +38 -0
  80. package/dist/delivery/external-hold.d.ts.map +1 -1
  81. package/dist/delivery/external-hold.js +69 -6
  82. package/dist/delivery/external-hold.js.map +1 -1
  83. package/dist/delivery/operator-hold.d.ts +1 -2
  84. package/dist/delivery/operator-hold.d.ts.map +1 -1
  85. package/dist/delivery/operator-hold.js +1 -2
  86. package/dist/delivery/operator-hold.js.map +1 -1
  87. package/dist/delivery/paused-revival.d.ts +140 -0
  88. package/dist/delivery/paused-revival.d.ts.map +1 -0
  89. package/dist/delivery/paused-revival.js +229 -0
  90. package/dist/delivery/paused-revival.js.map +1 -0
  91. package/dist/delivery/wait-reachability.d.ts +149 -0
  92. package/dist/delivery/wait-reachability.d.ts.map +1 -0
  93. package/dist/delivery/wait-reachability.js +193 -0
  94. package/dist/delivery/wait-reachability.js.map +1 -0
  95. package/dist/directive/close-loop-dispatcher.d.ts +16 -263
  96. package/dist/directive/close-loop-dispatcher.d.ts.map +1 -1
  97. package/dist/directive/close-loop-dispatcher.js +21 -259
  98. package/dist/directive/close-loop-dispatcher.js.map +1 -1
  99. package/dist/directive/directive-dispatch.d.ts +19 -0
  100. package/dist/directive/directive-dispatch.d.ts.map +1 -1
  101. package/dist/directive/directive-dispatch.js +18 -0
  102. package/dist/directive/directive-dispatch.js.map +1 -1
  103. package/dist/directive/directive-executor.d.ts +1 -3
  104. package/dist/directive/directive-executor.d.ts.map +1 -1
  105. package/dist/directive/directive-executor.js +23 -21
  106. package/dist/directive/directive-executor.js.map +1 -1
  107. package/dist/directive/phase-sync.d.ts +28 -15
  108. package/dist/directive/phase-sync.d.ts.map +1 -1
  109. package/dist/directive/phase-sync.js +28 -36
  110. package/dist/directive/phase-sync.js.map +1 -1
  111. package/dist/directive/resolver-dispatch.d.ts +19 -92
  112. package/dist/directive/resolver-dispatch.d.ts.map +1 -1
  113. package/dist/directive/resolver-dispatch.js +19 -65
  114. package/dist/directive/resolver-dispatch.js.map +1 -1
  115. package/dist/focus/focus-engine.d.ts.map +1 -1
  116. package/dist/focus/focus-engine.js +26 -0
  117. package/dist/focus/focus-engine.js.map +1 -1
  118. package/dist/focus/focus-executor.d.ts.map +1 -1
  119. package/dist/focus/focus-executor.js +290 -256
  120. package/dist/focus/focus-executor.js.map +1 -1
  121. package/dist/focus/focus-loop-registry.d.ts.map +1 -1
  122. package/dist/focus/focus-loop-registry.js +43 -1
  123. package/dist/focus/focus-loop-registry.js.map +1 -1
  124. package/dist/focus/focus-respawn-guard.d.ts.map +1 -1
  125. package/dist/focus/focus-respawn-guard.js +11 -2
  126. package/dist/focus/focus-respawn-guard.js.map +1 -1
  127. package/dist/focus/focus-team-state.d.ts +11 -0
  128. package/dist/focus/focus-team-state.d.ts.map +1 -1
  129. package/dist/focus/focus-team-state.js +17 -0
  130. package/dist/focus/focus-team-state.js.map +1 -1
  131. package/dist/focus/listener-auto-advance.d.ts +13 -1
  132. package/dist/focus/listener-auto-advance.d.ts.map +1 -1
  133. package/dist/focus/listener-auto-advance.js +112 -76
  134. package/dist/focus/listener-auto-advance.js.map +1 -1
  135. package/dist/focus/listener.d.ts.map +1 -1
  136. package/dist/focus/listener.js +141 -75
  137. package/dist/focus/listener.js.map +1 -1
  138. package/dist/focus/tick-deadline.d.ts +55 -0
  139. package/dist/focus/tick-deadline.d.ts.map +1 -0
  140. package/dist/focus/tick-deadline.js +91 -0
  141. package/dist/focus/tick-deadline.js.map +1 -0
  142. package/dist/focus-stage-lifecycle/index.d.ts +18 -25
  143. package/dist/focus-stage-lifecycle/index.d.ts.map +1 -1
  144. package/dist/focus-stage-lifecycle/index.js +26 -38
  145. package/dist/focus-stage-lifecycle/index.js.map +1 -1
  146. package/dist/focus-stage-lifecycle/wedge-cause-arbiter.d.ts +52 -0
  147. package/dist/focus-stage-lifecycle/wedge-cause-arbiter.d.ts.map +1 -0
  148. package/dist/focus-stage-lifecycle/wedge-cause-arbiter.js +94 -0
  149. package/dist/focus-stage-lifecycle/wedge-cause-arbiter.js.map +1 -0
  150. package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts +18 -1
  151. package/dist/focus-stage-lifecycle/wedge-watchdog.d.ts.map +1 -1
  152. package/dist/focus-stage-lifecycle/wedge-watchdog.js +57 -7
  153. package/dist/focus-stage-lifecycle/wedge-watchdog.js.map +1 -1
  154. package/dist/git/merge.d.ts.map +1 -1
  155. package/dist/git/merge.js +12 -3
  156. package/dist/git/merge.js.map +1 -1
  157. package/dist/guard/condition-evaluators.d.ts +9 -0
  158. package/dist/guard/condition-evaluators.d.ts.map +1 -1
  159. package/dist/guard/condition-evaluators.js +15 -0
  160. package/dist/guard/condition-evaluators.js.map +1 -1
  161. package/dist/guard/guard-evaluator.d.ts +17 -1
  162. package/dist/guard/guard-evaluator.d.ts.map +1 -1
  163. package/dist/guard/guard-evaluator.js +61 -2
  164. package/dist/guard/guard-evaluator.js.map +1 -1
  165. package/dist/guard/trigger-executor.d.ts +30 -18
  166. package/dist/guard/trigger-executor.d.ts.map +1 -1
  167. package/dist/guard/trigger-executor.js +55 -31
  168. package/dist/guard/trigger-executor.js.map +1 -1
  169. package/dist/prompt/team-prompt-base.d.ts +1 -1
  170. package/dist/prompt/team-prompt-base.d.ts.map +1 -1
  171. package/dist/prompt/team-prompt-base.js +1 -1
  172. package/dist/prompt/team-prompt-base.js.map +1 -1
  173. package/dist/prompt-sections/persona-sections.d.ts +0 -32
  174. package/dist/prompt-sections/persona-sections.d.ts.map +1 -1
  175. package/dist/prompt-sections/persona-sections.js +19 -88
  176. package/dist/prompt-sections/persona-sections.js.map +1 -1
  177. package/dist/queries/deliveries.d.ts +33 -0
  178. package/dist/queries/deliveries.d.ts.map +1 -1
  179. package/dist/queries/deliveries.js +7 -0
  180. package/dist/queries/deliveries.js.map +1 -1
  181. package/dist/queries/focuses.d.ts +46 -0
  182. package/dist/queries/focuses.d.ts.map +1 -1
  183. package/dist/queries/focuses.js +60 -0
  184. package/dist/queries/focuses.js.map +1 -1
  185. package/dist/queries/guards.d.ts +10 -0
  186. package/dist/queries/guards.d.ts.map +1 -1
  187. package/dist/queries/guards.js +14 -1
  188. package/dist/queries/guards.js.map +1 -1
  189. package/dist/queries/issues.d.ts +65 -1
  190. package/dist/queries/issues.d.ts.map +1 -1
  191. package/dist/queries/issues.js +135 -2
  192. package/dist/queries/issues.js.map +1 -1
  193. package/dist/queries/schemas.d.ts +53 -0
  194. package/dist/queries/schemas.d.ts.map +1 -1
  195. package/dist/queries/schemas.js +38 -0
  196. package/dist/queries/schemas.js.map +1 -1
  197. package/dist/queries/verification.d.ts +5 -6
  198. package/dist/queries/verification.d.ts.map +1 -1
  199. package/dist/queries/verification.js +5 -6
  200. package/dist/queries/verification.js.map +1 -1
  201. package/dist/resolvers/loop-persona.d.ts +1 -11
  202. package/dist/resolvers/loop-persona.d.ts.map +1 -1
  203. package/dist/resolvers/loop-persona.js +2 -16
  204. package/dist/resolvers/loop-persona.js.map +1 -1
  205. package/dist/shell/heartbeat.d.ts +7 -0
  206. package/dist/shell/heartbeat.d.ts.map +1 -1
  207. package/dist/shell/heartbeat.js +1 -1
  208. package/dist/shell/heartbeat.js.map +1 -1
  209. package/dist/shell/unified-shell-provisioning.d.ts +40 -0
  210. package/dist/shell/unified-shell-provisioning.d.ts.map +1 -1
  211. package/dist/shell/unified-shell-provisioning.js +72 -0
  212. package/dist/shell/unified-shell-provisioning.js.map +1 -1
  213. package/dist/shell/unified-shell.d.ts.map +1 -1
  214. package/dist/shell/unified-shell.js +18 -1
  215. package/dist/shell/unified-shell.js.map +1 -1
  216. package/dist/spawn/helpers.d.ts.map +1 -1
  217. package/dist/spawn/helpers.js +6 -1
  218. package/dist/spawn/helpers.js.map +1 -1
  219. package/dist/spawn/process-spawn.d.ts.map +1 -1
  220. package/dist/spawn/process-spawn.js +7 -0
  221. package/dist/spawn/process-spawn.js.map +1 -1
  222. package/dist/spawn/respawn-cycle-escalation.d.ts +41 -0
  223. package/dist/spawn/respawn-cycle-escalation.d.ts.map +1 -0
  224. package/dist/spawn/respawn-cycle-escalation.js +83 -0
  225. package/dist/spawn/respawn-cycle-escalation.js.map +1 -0
  226. package/dist/spawn/spawn-cooldown.d.ts +119 -2
  227. package/dist/spawn/spawn-cooldown.d.ts.map +1 -1
  228. package/dist/spawn/spawn-cooldown.js +120 -10
  229. package/dist/spawn/spawn-cooldown.js.map +1 -1
  230. package/dist/spawn/spawn-decision.d.ts.map +1 -1
  231. package/dist/spawn/spawn-decision.js +33 -1
  232. package/dist/spawn/spawn-decision.js.map +1 -1
  233. package/dist/testing/fixtures/index.d.ts +64 -0
  234. package/dist/testing/fixtures/index.d.ts.map +1 -0
  235. package/dist/testing/fixtures/index.js +220 -0
  236. package/dist/testing/fixtures/index.js.map +1 -0
  237. package/dist/update/build-info.d.ts +1 -0
  238. package/dist/update/build-info.d.ts.map +1 -1
  239. package/dist/update/build-info.js +1 -1
  240. package/dist/update/build-info.js.map +1 -1
  241. package/dist/verify/stall-detector-config.d.ts +8 -0
  242. package/dist/verify/stall-detector-config.d.ts.map +1 -1
  243. package/dist/verify/stall-detector-config.js +40 -0
  244. package/dist/verify/stall-detector-config.js.map +1 -1
  245. package/dist/verify/stall-detectors.d.ts +57 -14
  246. package/dist/verify/stall-detectors.d.ts.map +1 -1
  247. package/dist/verify/stall-detectors.js +72 -55
  248. package/dist/verify/stall-detectors.js.map +1 -1
  249. package/dist/verify/verification-feedback.d.ts +3 -4
  250. package/dist/verify/verification-feedback.d.ts.map +1 -1
  251. package/dist/verify/verification-feedback.js +3 -12
  252. package/dist/verify/verification-feedback.js.map +1 -1
  253. package/dist/workflow/gate-failure-policy.d.ts +48 -0
  254. package/dist/workflow/gate-failure-policy.d.ts.map +1 -0
  255. package/dist/workflow/gate-failure-policy.js +57 -0
  256. package/dist/workflow/gate-failure-policy.js.map +1 -0
  257. package/dist/workflow/pipeline-config.d.ts +2 -2
  258. package/dist/workflow/pipeline-config.js +2 -2
  259. package/package.json +3 -3
  260. package/dist/directive/close-loop-stage.d.ts +0 -50
  261. package/dist/directive/close-loop-stage.d.ts.map +0 -1
  262. package/dist/directive/close-loop-stage.js +0 -210
  263. package/dist/directive/close-loop-stage.js.map +0 -1
  264. package/dist/focus-stage-lifecycle/review-convergence.d.ts +0 -133
  265. package/dist/focus-stage-lifecycle/review-convergence.d.ts.map +0 -1
  266. package/dist/focus-stage-lifecycle/review-convergence.js +0 -237
  267. package/dist/focus-stage-lifecycle/review-convergence.js.map +0 -1
package/build-info.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
- "commitSha": "2222e1a8e",
3
- "builtAt": "2026-08-18T15:52:55.595Z",
2
+ "commitSha": "527da95f0",
3
+ "builtAt": "2026-08-20T02:32:32.919Z",
4
4
  "expectedMigrations": [
5
5
  "20250829113330_create_org_nodes_table.sql",
6
6
  "20250829113402_fix_function_security_search_path.sql",
@@ -753,6 +753,13 @@
753
753
  "20260816162200_retention_sweep_recording.sql",
754
754
  "20260816172138_fix_retention_sweep_ambiguous_column.sql",
755
755
  "20260816181820_retention_enforced_by_heartbeat_derived.sql",
756
- "20260817030910_server_now.sql"
756
+ "20260817030910_server_now.sql",
757
+ "20260818164401_add_review_handoff_count.sql",
758
+ "20260818164402_agent_escalations_kind_review_handoff_exhausted.sql",
759
+ "20260818164403_agent_escalations_kind_respawn_cycle_exhausted.sql",
760
+ "20260818201246_agent_escalations_kind_restore_promoted_add_propagation_stale.sql",
761
+ "20260819164725_iteration_count_exempt_instrument_fault.sql",
762
+ "20260819183306_add_durable_spawn_cooldown_columns.sql",
763
+ "20260819191559_add_durable_advancement_and_coverage_bounds.sql"
757
764
  ]
758
765
  }
@@ -13,6 +13,111 @@
13
13
  * `installExecutionWorktreeGuards` is the single entry point that applies the
14
14
  * right set for a worktree given its read-only flag.
15
15
  */
16
+ import type { GitResult } from '../git/index.js';
17
+ /**
18
+ * The git-runner seam. Defaults to the real `runGitSync`; tests inject a fake
19
+ * to drive the (otherwise hard-to-provoke) `extensions.worktreeConfig` /
20
+ * `--worktree` write-failure branches deterministically and to observe that no
21
+ * shared `core.hooksPath` write is ever attempted on any path.
22
+ */
23
+ type GitRunner = (args: string[], cwd: string) => GitResult;
24
+ /**
25
+ * Point THIS worktree's git hooks at its own `.telora-hooks/` dir, scoped so it
26
+ * cannot depend on -- or govern -- any OTHER worktree of the same repository.
27
+ *
28
+ * A plain `git config core.hooksPath ...` writes the SHARED `.git/config`
29
+ * (verified 2026-08-18 on git 2.47.3: a value set from a linked worktree reads
30
+ * back from the main checkout), so one focus's ephemeral worktree would govern
31
+ * hook execution for the whole repo -- and when that worktree is removed, git
32
+ * runs NO hooks anywhere and the attribution guard silently disappears. Instead
33
+ * we enable `extensions.worktreeConfig` (repo-global, idempotent) and write
34
+ * core.hooksPath with `git config --worktree`, so each worktree carries its own
35
+ * hooksPath and another worktree's create/reuse/removal cannot touch it.
36
+ *
37
+ * We NEVER write a shared `core.hooksPath` -- not even as a fallback. That write
38
+ * is the exact defect the migration/verification siblings exist to undo, and a
39
+ * fallback here would let the next provisioning cycle re-damage a repo the
40
+ * migration just repaired. So this fails CLOSED: if per-worktree scoping cannot
41
+ * be established (worktreeConfig will not enable, or the `--worktree` write
42
+ * fails), the repo's shared config is left untouched and this worktree simply
43
+ * runs WITHOUT the attribution guard.
44
+ *
45
+ * The enforcement self-check runs on EVERY path (there is no early return before
46
+ * it): on a failed path it finds the guard is not in effect and logs the loud
47
+ * "failing OPEN" WARN, which is how an unguarded worktree is reported.
48
+ */
49
+ export declare function configureWorktreeHooksPath(worktreePath: string, hooksDir: string, runGit?: GitRunner): void;
50
+ /**
51
+ * Migrate away a stale, daemon-written SHARED `core.hooksPath` that a pre-0.21.62
52
+ * daemon wrote pointing into a daemon worktree's `.telora-hooks` dir -- an
53
+ * ephemeral agent worktree under `.telora/worktrees/`, or the persistent merge
54
+ * worktree under `.telora/merge-worktree/`.
55
+ *
56
+ * `f629f3e63` (2026-08-18) switched new writes to per-worktree config
57
+ * (`git config --worktree`, see configureWorktreeHooksPath), fixing the CAUSE but
58
+ * leaving every already-damaged repo damaged: nothing unsets the stale shared
59
+ * value. That value is the single cause of both faces of the defect --
60
+ * - while the worktree it names still exists, the guard is wrongly enforced in
61
+ * the MAIN checkout (where it was never meant to apply); and
62
+ * - once that worktree is deleted, git resolves a dangling hooksPath and runs
63
+ * NO hooks anywhere, so the attribution guard silently disappears.
64
+ * Removing the stale shared value resolves both.
65
+ *
66
+ * Conservative about ownership. We read the SHARED value SPECIFICALLY via
67
+ * `git config --local --get core.hooksPath` (which reads `.git/config` and
68
+ * EXCLUDES the per-worktree `config.worktree` scope) -- NOT the plain
69
+ * `git config --get`, which layers worktree config on top and could report (and
70
+ * then delete) a live per-worktree value. We act only when that shared value
71
+ * carries the daemon's own hooks-dir SIGNATURE -- a `.telora-hooks` directory
72
+ * inside this repo's `.telora/` tree (under `.telora/worktrees/` for an ephemeral
73
+ * agent worktree, or `.telora/merge-worktree/` for the persistent merge worktree).
74
+ * Recognising by that signature, not by an agent-worktree path prefix, is what
75
+ * reaches the persistent merge worktree's value. A `core.hooksPath` pointing
76
+ * anywhere else (husky, lefthook, a hand-rolled setup, or a non-hooks path under
77
+ * `.telora/`) is left strictly alone; we err toward leaving it.
78
+ *
79
+ * The unset applies whether or not the pointed-at directory still exists: an
80
+ * alive-but-stale path is exactly the wrongful-enforcement face and must also be
81
+ * cleared. Per-worktree (`--worktree`) values the current code writes are never
82
+ * touched -- `--local` does not read or write that scope. Idempotent: a repo with
83
+ * no matching shared value is a no-op.
84
+ *
85
+ * Returns the removed value (for logging/tests) or null when nothing was cleared.
86
+ */
87
+ export declare function migrateStaleSharedHooksPath(repoPath: string): {
88
+ removed: string | null;
89
+ };
90
+ /** How a repo's EFFECTIVE core.hooksPath resolves, from the checkout it runs in. */
91
+ export type RepoHookEnforcementState = 'unset' | 'dangling' | 'enforced';
92
+ /**
93
+ * Classify the git-hook enforcement state a repo is actually IN, evaluated from
94
+ * the checkout `repoPath` names -- not the state just written at worktree
95
+ * provisioning (that is `verifyHookEnforcementInEffect`).
96
+ *
97
+ * This closes the blind spot that let a silent fail-open survive the fix written
98
+ * to prevent silent fail-open: `verifyHookEnforcementInEffect` only ever inspects
99
+ * a worktree the daemon just configured, so the one place enforcement is silently
100
+ * absent -- the main checkout that inherited a stale shared value -- is the one
101
+ * place it never looks.
102
+ *
103
+ * Reads the EFFECTIVE value with `git config --get core.hooksPath` (worktree
104
+ * config layered over shared -- what git will actually use in this directory), so
105
+ * it must be run in the directory whose state you want to judge (the main
106
+ * checkout, to see what the main checkout inherits).
107
+ *
108
+ * - unset -> no core.hooksPath configured. This is the CORRECT steady state
109
+ * for a main checkout after the stale-value migration; NOT a
110
+ * fault, no warning.
111
+ * - dangling -> configured but the directory does not exist. git runs NO hooks
112
+ * here: the attribution guard is failing OPEN. Logged as a loud
113
+ * WARN naming the repo, the resolved path, and the consequence.
114
+ * - enforced -> configured and the directory exists (live enforcement). Fine.
115
+ *
116
+ * Files NO escalation for any state: this is observable repo state the daemon
117
+ * resolves itself via migrateStaleSharedHooksPath (config gaps are state, not
118
+ * escalations).
119
+ */
120
+ export declare function checkRepoHookEnforcementState(repoPath: string): RepoHookEnforcementState;
16
121
  /**
17
122
  * Install a pre-commit hook in a worktree that blocks all commits.
18
123
  * Used for read-only audit sessions.
@@ -124,4 +229,5 @@ export declare function installDeliveryTrailerCommitMsgHook(worktreePath: string
124
229
  * read-only guarantee.
125
230
  */
126
231
  export declare function installExecutionWorktreeGuards(worktreePath: string, readOnly: boolean): void;
232
+ export {};
127
233
  //# sourceMappingURL=audit-hooks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"audit-hooks.d.ts","sourceRoot":"","sources":["../../src/audit/audit-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AA4EH;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAmCpE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CA0BnE;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CA8BpE;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAIrE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,mCAAmC,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAuE9E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,8BAA8B,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAK5F"}
1
+ {"version":3,"file":"audit-hooks.d.ts","sourceRoot":"","sources":["../../src/audit/audit-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAKH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAWjD;;;;;GAKG;AACH,KAAK,SAAS,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,KAAK,SAAS,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,wBAAgB,0BAA0B,CACxC,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,MAAM,GAAE,SAAsB,GAC7B,IAAI,CAsBN;AA2BD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CA8CxF;AAED,oFAAoF;AACpF,MAAM,MAAM,wBAAwB,GAAG,OAAO,GAAG,UAAU,GAAG,UAAU,CAAC;AAEzE;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,6BAA6B,CAAC,QAAQ,EAAE,MAAM,GAAG,wBAAwB,CAiBxF;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAmCpE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CA0BnE;AAED;;;;;;;GAOG;AACH,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CA8BpE;AAED;;;;;GAKG;AACH,wBAAgB,0BAA0B,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAIrE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,mCAAmC,CAAC,YAAY,EAAE,MAAM,GAAG,IAAI,CAuE9E;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,8BAA8B,CAAC,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,GAAG,IAAI,CAK5F"}
@@ -14,7 +14,7 @@
14
14
  * right set for a worktree given its read-only flag.
15
15
  */
16
16
  import { existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
17
- import { join } from 'node:path';
17
+ import { basename, isAbsolute, join, resolve } from 'node:path';
18
18
  import { runGitSync } from '../git/index.js';
19
19
  import { buildClaudeSettings, mergeClaudeSettings } from '../templates/claude-settings.js';
20
20
  import { ensureCodexConfigIgnoredInWorktree } from '../worktree/provision.js';
@@ -35,27 +35,37 @@ const CODEX_READ_ONLY_BLOCK_END = '# END TELORA CODEX READ-ONLY';
35
35
  * core.hooksPath with `git config --worktree`, so each worktree carries its own
36
36
  * hooksPath and another worktree's create/reuse/removal cannot touch it.
37
37
  *
38
- * After writing, verifies the scoping is actually in effect and logs a loud WARN
39
- * if it is not -- a guard must never fail OPEN in silence.
38
+ * We NEVER write a shared `core.hooksPath` -- not even as a fallback. That write
39
+ * is the exact defect the migration/verification siblings exist to undo, and a
40
+ * fallback here would let the next provisioning cycle re-damage a repo the
41
+ * migration just repaired. So this fails CLOSED: if per-worktree scoping cannot
42
+ * be established (worktreeConfig will not enable, or the `--worktree` write
43
+ * fails), the repo's shared config is left untouched and this worktree simply
44
+ * runs WITHOUT the attribution guard.
45
+ *
46
+ * The enforcement self-check runs on EVERY path (there is no early return before
47
+ * it): on a failed path it finds the guard is not in effect and logs the loud
48
+ * "failing OPEN" WARN, which is how an unguarded worktree is reported.
40
49
  */
41
- function configureWorktreeHooksPath(worktreePath, hooksDir) {
50
+ export function configureWorktreeHooksPath(worktreePath, hooksDir, runGit = runGitSync) {
42
51
  // extensions.worktreeConfig must be enabled before `git config --worktree`
43
52
  // will accept a write; enabling it is repo-global and idempotent.
44
- const enable = runGitSync(['config', 'extensions.worktreeConfig', 'true'], worktreePath);
53
+ const enable = runGit(['config', 'extensions.worktreeConfig', 'true'], worktreePath);
45
54
  if (!enable.success) {
46
55
  log.warn(`[audit-hooks] Could not enable extensions.worktreeConfig for ${worktreePath}: ` +
47
- `${enable.error}. Falling back to shared core.hooksPath (repo-global) -- ` +
48
- `hook enforcement may leak across worktrees.`);
49
- runGitSync(['config', 'core.hooksPath', hooksDir], worktreePath);
50
- return;
56
+ `${enable.error}. NOT writing a shared core.hooksPath (that would leak across ` +
57
+ `worktrees and undo the stale-value migration); this worktree will run WITHOUT ` +
58
+ `the attribution guard. Shared config left untouched.`);
51
59
  }
52
- const set = runGitSync(['config', '--worktree', 'core.hooksPath', hooksDir], worktreePath);
53
- if (!set.success) {
54
- log.warn(`[audit-hooks] Could not set per-worktree core.hooksPath for ${worktreePath}: ` +
55
- `${set.error}. Falling back to shared core.hooksPath.`);
56
- runGitSync(['config', 'core.hooksPath', hooksDir], worktreePath);
60
+ else {
61
+ const set = runGit(['config', '--worktree', 'core.hooksPath', hooksDir], worktreePath);
62
+ if (!set.success) {
63
+ log.warn(`[audit-hooks] Could not set per-worktree core.hooksPath for ${worktreePath}: ` +
64
+ `${set.error}. NOT falling back to a shared core.hooksPath; this worktree will ` +
65
+ `run WITHOUT the attribution guard. Shared config left untouched.`);
66
+ }
57
67
  }
58
- verifyHookEnforcementInEffect(worktreePath, hooksDir);
68
+ verifyHookEnforcementInEffect(worktreePath, hooksDir, runGit);
59
69
  }
60
70
  /**
61
71
  * Confirm the commit-msg guard is actually in force for a worktree: its resolved
@@ -63,8 +73,8 @@ function configureWorktreeHooksPath(worktreePath, hooksDir) {
63
73
  * exists there. When enforcement is EXPECTED but not in effect, log a loud WARN
64
74
  * -- the guard must not fail open unnoticed.
65
75
  */
66
- function verifyHookEnforcementInEffect(worktreePath, hooksDir) {
67
- const resolved = runGitSync(['config', '--get', 'core.hooksPath'], worktreePath);
76
+ function verifyHookEnforcementInEffect(worktreePath, hooksDir, runGit = runGitSync) {
77
+ const resolved = runGit(['config', '--get', 'core.hooksPath'], worktreePath);
68
78
  const resolvedPath = resolved.success ? resolved.output.trim() : '';
69
79
  const hookFile = join(hooksDir, 'commit-msg');
70
80
  const hookPresent = existsSync(hookFile);
@@ -75,6 +85,128 @@ function verifyHookEnforcementInEffect(worktreePath, hooksDir) {
75
85
  `commits in this worktree are not being checked.`);
76
86
  }
77
87
  }
88
+ /**
89
+ * Migrate away a stale, daemon-written SHARED `core.hooksPath` that a pre-0.21.62
90
+ * daemon wrote pointing into a daemon worktree's `.telora-hooks` dir -- an
91
+ * ephemeral agent worktree under `.telora/worktrees/`, or the persistent merge
92
+ * worktree under `.telora/merge-worktree/`.
93
+ *
94
+ * `f629f3e63` (2026-08-18) switched new writes to per-worktree config
95
+ * (`git config --worktree`, see configureWorktreeHooksPath), fixing the CAUSE but
96
+ * leaving every already-damaged repo damaged: nothing unsets the stale shared
97
+ * value. That value is the single cause of both faces of the defect --
98
+ * - while the worktree it names still exists, the guard is wrongly enforced in
99
+ * the MAIN checkout (where it was never meant to apply); and
100
+ * - once that worktree is deleted, git resolves a dangling hooksPath and runs
101
+ * NO hooks anywhere, so the attribution guard silently disappears.
102
+ * Removing the stale shared value resolves both.
103
+ *
104
+ * Conservative about ownership. We read the SHARED value SPECIFICALLY via
105
+ * `git config --local --get core.hooksPath` (which reads `.git/config` and
106
+ * EXCLUDES the per-worktree `config.worktree` scope) -- NOT the plain
107
+ * `git config --get`, which layers worktree config on top and could report (and
108
+ * then delete) a live per-worktree value. We act only when that shared value
109
+ * carries the daemon's own hooks-dir SIGNATURE -- a `.telora-hooks` directory
110
+ * inside this repo's `.telora/` tree (under `.telora/worktrees/` for an ephemeral
111
+ * agent worktree, or `.telora/merge-worktree/` for the persistent merge worktree).
112
+ * Recognising by that signature, not by an agent-worktree path prefix, is what
113
+ * reaches the persistent merge worktree's value. A `core.hooksPath` pointing
114
+ * anywhere else (husky, lefthook, a hand-rolled setup, or a non-hooks path under
115
+ * `.telora/`) is left strictly alone; we err toward leaving it.
116
+ *
117
+ * The unset applies whether or not the pointed-at directory still exists: an
118
+ * alive-but-stale path is exactly the wrongful-enforcement face and must also be
119
+ * cleared. Per-worktree (`--worktree`) values the current code writes are never
120
+ * touched -- `--local` does not read or write that scope. Idempotent: a repo with
121
+ * no matching shared value is a no-op.
122
+ *
123
+ * Returns the removed value (for logging/tests) or null when nothing was cleared.
124
+ */
125
+ export function migrateStaleSharedHooksPath(repoPath) {
126
+ // Read the SHARED value only. `--local` targets `.git/config` and never the
127
+ // per-worktree `config.worktree`, so a live `--worktree` value cannot be seen
128
+ // (or clobbered) here.
129
+ const read = runGitSync(['config', '--local', '--get', 'core.hooksPath'], repoPath);
130
+ if (!read.success) {
131
+ // Not set in the shared scope (git exits non-zero) -- nothing to migrate.
132
+ return { removed: null };
133
+ }
134
+ const value = read.output.trim();
135
+ if (!value)
136
+ return { removed: null };
137
+ // Resolve the value to an absolute path (git may have stored a relative one)
138
+ // and require it to carry the daemon's own hooks-dir SIGNATURE: a `.telora-hooks`
139
+ // directory inside THIS repo's `.telora/` tree. That recognises a daemon write
140
+ // wherever the worktree lives -- an ephemeral agent worktree
141
+ // (`.telora/worktrees/<name>/.telora-hooks`) OR the persistent merge worktree
142
+ // (`.telora/merge-worktree/.telora-hooks`), which the daemon configures the same
143
+ // way. Matching the `.telora-hooks` signature rather than the `.telora/worktrees/`
144
+ // path PREFIX is what reaches the merge-worktree value; because that worktree
145
+ // persists, its stale shared value would otherwise never resolve itself.
146
+ // Anything else is foreign (husky, lefthook, a hand-rolled setup, or a non-hooks
147
+ // path under `.telora/`); leave it alone.
148
+ const resolvedValue = isAbsolute(value) ? resolve(value) : resolve(repoPath, value);
149
+ const teloraRoot = resolve(repoPath, '.telora');
150
+ const underTelora = resolvedValue === teloraRoot || resolvedValue.startsWith(teloraRoot + '/');
151
+ const isDaemonHooksDir = underTelora && basename(resolvedValue) === '.telora-hooks';
152
+ if (!isDaemonHooksDir) {
153
+ return { removed: null };
154
+ }
155
+ const unset = runGitSync(['config', '--local', '--unset', 'core.hooksPath'], repoPath);
156
+ if (!unset.success) {
157
+ log.warn(`[audit-hooks] Failed to unset stale shared core.hooksPath='${value}' in ${repoPath}: ` +
158
+ `${unset.error}. The stale value remains and the guard may still misfire in the main checkout.`);
159
+ return { removed: null };
160
+ }
161
+ log.info(`[audit-hooks] Unset stale shared core.hooksPath='${value}' in ${repoPath}: it pointed inside ` +
162
+ `.telora/worktrees/ (a pre-0.21.62 daemon write). The main checkout no longer inherits a ` +
163
+ `dangling/leaked hooks path.`);
164
+ return { removed: value };
165
+ }
166
+ /**
167
+ * Classify the git-hook enforcement state a repo is actually IN, evaluated from
168
+ * the checkout `repoPath` names -- not the state just written at worktree
169
+ * provisioning (that is `verifyHookEnforcementInEffect`).
170
+ *
171
+ * This closes the blind spot that let a silent fail-open survive the fix written
172
+ * to prevent silent fail-open: `verifyHookEnforcementInEffect` only ever inspects
173
+ * a worktree the daemon just configured, so the one place enforcement is silently
174
+ * absent -- the main checkout that inherited a stale shared value -- is the one
175
+ * place it never looks.
176
+ *
177
+ * Reads the EFFECTIVE value with `git config --get core.hooksPath` (worktree
178
+ * config layered over shared -- what git will actually use in this directory), so
179
+ * it must be run in the directory whose state you want to judge (the main
180
+ * checkout, to see what the main checkout inherits).
181
+ *
182
+ * - unset -> no core.hooksPath configured. This is the CORRECT steady state
183
+ * for a main checkout after the stale-value migration; NOT a
184
+ * fault, no warning.
185
+ * - dangling -> configured but the directory does not exist. git runs NO hooks
186
+ * here: the attribution guard is failing OPEN. Logged as a loud
187
+ * WARN naming the repo, the resolved path, and the consequence.
188
+ * - enforced -> configured and the directory exists (live enforcement). Fine.
189
+ *
190
+ * Files NO escalation for any state: this is observable repo state the daemon
191
+ * resolves itself via migrateStaleSharedHooksPath (config gaps are state, not
192
+ * escalations).
193
+ */
194
+ export function checkRepoHookEnforcementState(repoPath) {
195
+ const resolved = runGitSync(['config', '--get', 'core.hooksPath'], repoPath);
196
+ const resolvedPath = resolved.success ? resolved.output.trim() : '';
197
+ if (!resolvedPath) {
198
+ return 'unset';
199
+ }
200
+ const absPath = isAbsolute(resolvedPath) ? resolvedPath : resolve(repoPath, resolvedPath);
201
+ if (!existsSync(absPath)) {
202
+ log.warn(`[audit-hooks] Hook enforcement is failing OPEN in ${repoPath}: resolved ` +
203
+ `core.hooksPath='${resolvedPath}' points at a directory that does not exist, so git runs ` +
204
+ `NO hooks here and the attribution guard is not running. ` +
205
+ `(The stale-shared-value migration clears this when the value points inside .telora/worktrees/.)`);
206
+ return 'dangling';
207
+ }
208
+ return 'enforced';
209
+ }
78
210
  /**
79
211
  * Install a pre-commit hook in a worktree that blocks all commits.
80
212
  * Used for read-only audit sessions.
@@ -1 +1 @@
1
- {"version":3,"file":"audit-hooks.js","sourceRoot":"","sources":["../../src/audit/audit-hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAC;AAC9E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,MAAM,GAAG,GAAG,YAAY,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,CAAC;AAGpD,MAAM,2BAA2B,GAAG,gCAAgC,CAAC;AACrE,MAAM,yBAAyB,GAAG,8BAA8B,CAAC;AAEjE;;;;;;;;;;;;;;;GAeG;AACH,SAAS,0BAA0B,CAAC,YAAoB,EAAE,QAAgB;IACxE,2EAA2E;IAC3E,kEAAkE;IAClE,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,QAAQ,EAAE,2BAA2B,EAAE,MAAM,CAAC,EAAE,YAAY,CAAC,CAAC;IACzF,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;QACpB,GAAG,CAAC,IAAI,CACN,gEAAgE,YAAY,IAAI;YAC9E,GAAG,MAAM,CAAC,KAAK,2DAA2D;YAC1E,6CAA6C,CAChD,CAAC;QACF,UAAU,CAAC,CAAC,QAAQ,EAAE,gBAAgB,EAAE,QAAQ,CAAC,EAAE,YAAY,CAAC,CAAC;QACjE,OAAO;IACT,CAAC;IACD,MAAM,GAAG,GAAG,UAAU,CAAC,C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;QACpE,wGAAwG;QACxG,EAAE;QACF,2FAA2F;QAC3F,EAAE;QACF,uCAAuC;QACvC,eAAe;QACf,uEAAuE;QACvE,gEAAgE;QAChE,uEAAuE;QACvE,eAAe;QACf,wEAAwE;QACxE,eAAe;QACf,kDAAkD;QAClD,eAAe;QACf,yEAAyE;QACzE,+CAA+C;QAC/C,eAAe;QACf,gGAAgG;QAChG,eAAe;QACf,sDAAsD;QACtD,eAAe;QACf,+FAA+F;QAC/F,eAAe;QACf,uEAAuE;QACvE,eAAe;QACf,UAAU;QACV,IAAI;QACJ,EAAE;QACF,QAAQ;QACR,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;IAC9C,aAAa,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;IAErD,4EAA4E;IAC5E,4EAA4E;IAC5E,6EAA6E;IAC7E,mCAAmC;IACnC,0BAA0B,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;AACrD,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,8BAA8B,CAAC,YAAoB,EAAE,QAAiB;IACpF,mCAAmC,CAAC,YAAY,CAAC,CAAC;IAClD,IAAI,QAAQ,EAAE,CAAC;QACb,0BAA0B,CAAC,YAAY,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC"}
@@ -42,6 +42,10 @@
42
42
  */
43
43
  import type { DaemonConfig } from '../types/index.js';
44
44
  import { type CiStatusReader } from './ci-status.js';
45
+ /** Health-event code for a red integration run that has no team to route to. */
46
+ export declare const MERGE_HELD_NO_RECEIVER_CODE = "merge.held_no_receiver";
47
+ /** Test-only: clear the held-gate dedup state. */
48
+ export declare function __resetCiSensorHealthStateForTests(): void;
45
49
  /** escalation_kind for a red CI run on integration. */
46
50
  export declare const CI_RUN_RED_ESCALATION_KIND = "ci_run_red";
47
51
  /** Minimal open-escalation row shape the sensor's dedup / resolve reads. */
@@ -134,6 +138,8 @@ export interface CiSensorTickCounts {
134
138
  productsChecked: number;
135
139
  escalationsFiled: number;
136
140
  escalationsResolved: number;
141
+ /** Red integration runs surfaced as a held-merge-gate health event this tick. */
142
+ heldGatesSurfaced: number;
137
143
  }
138
144
  /**
139
145
  * One CI-result sensor tick over every configured product. Per product: resolve
@@ -1 +1 @@
1
- {"version":3,"file":"ci-sensor-loop.d.ts","sourceRoot":"","sources":["../../src/ci/ci-sensor-loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAuD,KAAK,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAa1G,uDAAuD;AACvD,eAAO,MAAM,0BAA0B,eAAe,CAAC;AAEvD,4EAA4E;AAC5E,UAAU,eAAe;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAAC;CAC3C;AAaD;;;;;;;;;;;;GAYG;AACH;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,IAAI,EAAE,SAAS,eAAe,EAAE,EAChC,MAAM,EAAE;IAAE,SAAS,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GACzD,OAAO,CAcT;AAmED;;;;;;;;;;;GAWG;AACH;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACtC,WAAW,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE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MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACzG,mBAAmB,EAAE,CAAC,MAAM,EAAE;QAAE,cAAc,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5I,uBAAuB,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACjE;AAWD,MAAM,WAAW,kBAAkB;IACjC,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,iFAAiF;IACjF,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CACnC,MAAM,EAAE,YAAY,EACpB,IAAI,GAAE,YAA0B,GAC/B,OAAO,CAAC,kBAAkB,CAAC,CAmE7B"}
@@ -48,9 +48,22 @@ import { getDeliveryContext, getActiveFocuses } from '../queries/deliveries.js';
48
48
  import { readDeliveryTrailer, resolveRecordedMergeRange, listRangeCommits } from '../resolvers/shared/git-diff.js';
49
49
  import { callApi } from '../queries/shared.js';
50
50
  import { ciRunRedCauseKey } from '../queries/cause-key.js';
51
- import { ESCALATION_REASONS, ESCALATION_DISPOSITIONS } from '@telora/daemon-core';
51
+ import { ESCALATION_REASONS, ESCALATION_DISPOSITIONS, healthEvents } from '@telora/daemon-core';
52
52
  import { createLogger } from '../shell/log.js';
53
53
  const log = createLogger({ module: 'ci-sensor' });
54
+ /** Health-event code for a red integration run that has no team to route to. */
55
+ export const MERGE_HELD_NO_RECEIVER_CODE = 'merge.held_no_receiver';
56
+ /**
57
+ * Keys (`${productId}:${sha}`) already surfaced as a held-merge-gate health
58
+ * event, so the sensor emits once per red episode instead of every tick. Cleared
59
+ * per product when integration goes green (the gate is no longer held), so a
60
+ * later red re-surfaces. Module-level so it persists across ticks; reset in tests.
61
+ */
62
+ const surfacedHeldGates = new Set();
63
+ /** Test-only: clear the held-gate dedup state. */
64
+ export function __resetCiSensorHealthStateForTests() {
65
+ surfacedHeldGates.clear();
66
+ }
54
67
  /** escalation_kind for a red CI run on integration. */
55
68
  export const CI_RUN_RED_ESCALATION_KIND = 'ci_run_red';
56
69
  const OPEN_STATUSES = new Set(['pending', 'in_review']);
@@ -224,7 +237,7 @@ const defaultDeps = {
224
237
  * failure on one product never aborts the others.
225
238
  */
226
239
  export async function runCiSensorTick(config, deps = defaultDeps) {
227
- const counts = { productsChecked: 0, escalationsFiled: 0, escalationsResolved: 0 };
240
+ const counts = { productsChecked: 0, escalationsFiled: 0, escalationsResolved: 0, heldGatesSurfaced: 0 };
228
241
  for (const product of config.products) {
229
242
  const pc = configForProduct(config, product);
230
243
  try {
@@ -244,7 +257,27 @@ export async function runCiSensorTick(config, deps = defaultDeps) {
244
257
  // unanchored agent_resolvable would be invisible forever (never
245
258
  // ridden, never promoted); a direct needs_operator is exactly the
246
259
  // inbox line this focus removes.
247
- log.warn(`CI red on ${pc.integrationBranch} @ ${sha.slice(0, 12)} but no armed focus to route the fix to; holding (merge gate still fail-closed), will retry.`);
260
+ //
261
+ // But the held gate must not be SILENT (TEL-6): surface it as durable
262
+ // operator-visible STATE (a health event, not an escalation -- there is
263
+ // no human-only act to file, and the hold clears itself when a focus is
264
+ // armed or the run goes green). Emitted once per red episode; cleared
265
+ // when integration goes green below. This gives the held merge gate a
266
+ // receiver even with no focus to anchor an escalation to.
267
+ const heldKey = `${pc.productId}:${sha}`;
268
+ if (!surfacedHeldGates.has(heldKey)) {
269
+ surfacedHeldGates.add(heldKey);
270
+ counts.heldGatesSurfaced++;
271
+ healthEvents.emit({
272
+ severity: 'error',
273
+ source: `ci:${pc.productId}`,
274
+ code: MERGE_HELD_NO_RECEIVER_CODE,
275
+ message: `Integration '${pc.integrationBranch}' is RED at ${sha.slice(0, 12)} and the ` +
276
+ 'merge gate is holding main out, but no armed focus owns the fix -- there is no ' +
277
+ 'team to route it to. Arm a focus on this product (or push a green fix) to clear the hold.',
278
+ });
279
+ }
280
+ log.warn(`CI red on ${pc.integrationBranch} @ ${sha.slice(0, 12)} but no armed focus to route the fix to; holding (merge gate still fail-closed, surfaced as ${MERGE_HELD_NO_RECEIVER_CODE}), will retry.`);
248
281
  continue;
249
282
  }
250
283
  await deps.fileCiRedEscalation({ organizationId: pc.organizationId, productId: pc.productId, focusId, sha, branch: pc.integrationBranch });
@@ -255,6 +288,20 @@ export async function runCiSensorTick(config, deps = defaultDeps) {
255
288
  counts.escalationsResolved += await deps.resolveCiRedEscalations(pc.productId);
256
289
  log.info(`integration green for product ${pc.productId} -- resolved open ci_run_red escalation(s).`);
257
290
  }
291
+ // Integration green (any action -- 'resolve' OR 'none'): the held merge
292
+ // gate is no longer held, so clear any held-gate health state for this
293
+ // product and pair its resolution (TEL-6). A future red re-surfaces cleanly.
294
+ if (status === 'green') {
295
+ let clearedAny = false;
296
+ for (const key of surfacedHeldGates) {
297
+ if (key.startsWith(`${pc.productId}:`)) {
298
+ surfacedHeldGates.delete(key);
299
+ clearedAny = true;
300
+ }
301
+ }
302
+ if (clearedAny)
303
+ healthEvents.resolveByCode(MERGE_HELD_NO_RECEIVER_CODE);
304
+ }
258
305
  }
259
306
  catch (err) {
260
307
  log.warn(`tick failed for product ${product.id}: ${err.message}`);
@@ -1 +1 @@
1
- {"version":3,"file":"ci-sensor-loop.js","sourceRoot":"","sources":["../../src/ci/ci-sensor-loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,oBAAoB,EAAE,6BAA6B,EAAuB,MAAM,gBAAgB,CAAC;AA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