@proofoftech/flowsafe 0.19.0 → 0.20.0

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 (172) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +15 -0
  3. package/deployment-identity-protocol.d.mts +45 -1
  4. package/deployment-identity-protocol.mjs +169 -5
  5. package/dist/agent-host/index.d.ts +1 -1
  6. package/dist/agent-host/index.d.ts.map +1 -1
  7. package/dist/agent-host/index.js.map +1 -1
  8. package/dist/agent-host/router.d.ts.map +1 -1
  9. package/dist/agent-host/router.js +6 -2
  10. package/dist/agent-host/router.js.map +1 -1
  11. package/dist/agent-host/thread-host.d.ts +11 -0
  12. package/dist/agent-host/thread-host.d.ts.map +1 -1
  13. package/dist/agent-host/thread-host.js +53 -1
  14. package/dist/agent-host/thread-host.js.map +1 -1
  15. package/dist/agent-host/thread-topology.d.ts +35 -1
  16. package/dist/agent-host/thread-topology.d.ts.map +1 -1
  17. package/dist/agent-host/thread-topology.js +103 -7
  18. package/dist/agent-host/thread-topology.js.map +1 -1
  19. package/dist/agent-runner/durable-agent-runner.d.ts +19 -4
  20. package/dist/agent-runner/durable-agent-runner.d.ts.map +1 -1
  21. package/dist/agent-runner/durable-agent-runner.js +58 -28
  22. package/dist/agent-runner/durable-agent-runner.js.map +1 -1
  23. package/dist/approval-api/d1-store.d.ts.map +1 -1
  24. package/dist/approval-api/d1-store.js +6 -3
  25. package/dist/approval-api/d1-store.js.map +1 -1
  26. package/dist/approval-api/principal-identity.d.ts +32 -0
  27. package/dist/approval-api/principal-identity.d.ts.map +1 -0
  28. package/dist/approval-api/principal-identity.js +69 -0
  29. package/dist/approval-api/principal-identity.js.map +1 -0
  30. package/dist/approval-api/principal.d.ts +9 -12
  31. package/dist/approval-api/principal.d.ts.map +1 -1
  32. package/dist/approval-api/principal.js +9 -45
  33. package/dist/approval-api/principal.js.map +1 -1
  34. package/dist/approval-api/router.d.ts.map +1 -1
  35. package/dist/approval-api/router.js +9 -1
  36. package/dist/approval-api/router.js.map +1 -1
  37. package/dist/approval-api/service.d.ts +19 -0
  38. package/dist/approval-api/service.d.ts.map +1 -1
  39. package/dist/approval-api/service.js +41 -10
  40. package/dist/approval-api/service.js.map +1 -1
  41. package/dist/approval-api/types.d.ts +12 -0
  42. package/dist/approval-api/types.d.ts.map +1 -1
  43. package/dist/approval-api/types.js +12 -0
  44. package/dist/approval-api/types.js.map +1 -1
  45. package/dist/background-tasks/host.d.ts +127 -14
  46. package/dist/background-tasks/host.d.ts.map +1 -1
  47. package/dist/background-tasks/host.js +579 -50
  48. package/dist/background-tasks/host.js.map +1 -1
  49. package/dist/background-tasks/index.d.ts +2 -2
  50. package/dist/background-tasks/index.d.ts.map +1 -1
  51. package/dist/background-tasks/index.js +11 -6
  52. package/dist/background-tasks/index.js.map +1 -1
  53. package/dist/background-tasks/routes.d.ts +19 -2
  54. package/dist/background-tasks/routes.d.ts.map +1 -1
  55. package/dist/background-tasks/routes.js +4 -4
  56. package/dist/background-tasks/routes.js.map +1 -1
  57. package/dist/deployment-identity-protocol.d.ts +2 -2
  58. package/dist/deployment-identity-protocol.d.ts.map +1 -1
  59. package/dist/deployment-identity-protocol.js +1 -1
  60. package/dist/deployment-identity-protocol.js.map +1 -1
  61. package/dist/do-runner/cause-chain.d.ts +53 -0
  62. package/dist/do-runner/cause-chain.d.ts.map +1 -0
  63. package/dist/do-runner/cause-chain.js +96 -0
  64. package/dist/do-runner/cause-chain.js.map +1 -0
  65. package/dist/do-runner/d1-storage.d.ts +109 -5
  66. package/dist/do-runner/d1-storage.d.ts.map +1 -1
  67. package/dist/do-runner/d1-storage.js +289 -44
  68. package/dist/do-runner/d1-storage.js.map +1 -1
  69. package/dist/do-runner/deployment-identity.d.ts +29 -5
  70. package/dist/do-runner/deployment-identity.d.ts.map +1 -1
  71. package/dist/do-runner/deployment-identity.js +23 -6
  72. package/dist/do-runner/deployment-identity.js.map +1 -1
  73. package/dist/do-runner/do-error-response.d.ts +4 -23
  74. package/dist/do-runner/do-error-response.d.ts.map +1 -1
  75. package/dist/do-runner/do-error-response.js +19 -24
  76. package/dist/do-runner/do-error-response.js.map +1 -1
  77. package/dist/do-runner/do-status-error.d.ts +37 -0
  78. package/dist/do-runner/do-status-error.d.ts.map +1 -0
  79. package/dist/do-runner/do-status-error.js +42 -0
  80. package/dist/do-runner/do-status-error.js.map +1 -0
  81. package/dist/do-runner/durable-object.d.ts +2 -1
  82. package/dist/do-runner/durable-object.d.ts.map +1 -1
  83. package/dist/do-runner/durable-object.js +205 -19
  84. package/dist/do-runner/durable-object.js.map +1 -1
  85. package/dist/do-runner/execution-fence.d.ts +335 -0
  86. package/dist/do-runner/execution-fence.d.ts.map +1 -0
  87. package/dist/do-runner/execution-fence.js +534 -0
  88. package/dist/do-runner/execution-fence.js.map +1 -0
  89. package/dist/do-runner/index.d.ts +10 -3
  90. package/dist/do-runner/index.d.ts.map +1 -1
  91. package/dist/do-runner/index.js +16 -3
  92. package/dist/do-runner/index.js.map +1 -1
  93. package/dist/do-runner/init.d.ts +82 -1
  94. package/dist/do-runner/init.d.ts.map +1 -1
  95. package/dist/do-runner/init.js +58 -3
  96. package/dist/do-runner/init.js.map +1 -1
  97. package/dist/do-runner/inventory.d.ts +294 -0
  98. package/dist/do-runner/inventory.d.ts.map +1 -0
  99. package/dist/do-runner/inventory.js +811 -0
  100. package/dist/do-runner/inventory.js.map +1 -0
  101. package/dist/do-runner/notification-predicate.d.ts +8 -0
  102. package/dist/do-runner/notification-predicate.d.ts.map +1 -0
  103. package/dist/do-runner/notification-predicate.js +9 -0
  104. package/dist/do-runner/notification-predicate.js.map +1 -0
  105. package/dist/do-runner/runtime.d.ts +83 -0
  106. package/dist/do-runner/runtime.d.ts.map +1 -1
  107. package/dist/do-runner/runtime.js +131 -4
  108. package/dist/do-runner/runtime.js.map +1 -1
  109. package/dist/do-runner/start-idempotency.d.ts +508 -0
  110. package/dist/do-runner/start-idempotency.d.ts.map +1 -0
  111. package/dist/do-runner/start-idempotency.js +886 -0
  112. package/dist/do-runner/start-idempotency.js.map +1 -0
  113. package/dist/goals/objective-routes.d.ts +14 -0
  114. package/dist/goals/objective-routes.d.ts.map +1 -1
  115. package/dist/goals/objective-routes.js +45 -24
  116. package/dist/goals/objective-routes.js.map +1 -1
  117. package/dist/host-kit/do-run-topology.d.ts +15 -0
  118. package/dist/host-kit/do-run-topology.d.ts.map +1 -1
  119. package/dist/host-kit/do-run-topology.js +22 -1
  120. package/dist/host-kit/do-run-topology.js.map +1 -1
  121. package/dist/host-kit/flowsafe-worker.d.ts +11 -0
  122. package/dist/host-kit/flowsafe-worker.d.ts.map +1 -1
  123. package/dist/host-kit/flowsafe-worker.js +343 -62
  124. package/dist/host-kit/flowsafe-worker.js.map +1 -1
  125. package/dist/host-kit/host-approval-service.d.ts +20 -0
  126. package/dist/host-kit/host-approval-service.d.ts.map +1 -1
  127. package/dist/host-kit/host-approval-service.js +6 -0
  128. package/dist/host-kit/host-approval-service.js.map +1 -1
  129. package/dist/host-kit/index.d.ts +2 -2
  130. package/dist/host-kit/index.d.ts.map +1 -1
  131. package/dist/host-kit/index.js +1 -1
  132. package/dist/host-kit/index.js.map +1 -1
  133. package/dist/host-kit/run-route-error.d.ts +18 -0
  134. package/dist/host-kit/run-route-error.d.ts.map +1 -1
  135. package/dist/host-kit/run-route-error.js +23 -0
  136. package/dist/host-kit/run-route-error.js.map +1 -1
  137. package/dist/host-kit/run-router.d.ts +58 -1
  138. package/dist/host-kit/run-router.d.ts.map +1 -1
  139. package/dist/host-kit/run-router.js +120 -11
  140. package/dist/host-kit/run-router.js.map +1 -1
  141. package/dist/host-kit/stream-router.d.ts.map +1 -1
  142. package/dist/host-kit/stream-router.js +18 -9
  143. package/dist/host-kit/stream-router.js.map +1 -1
  144. package/dist/schedules/router.d.ts +15 -0
  145. package/dist/schedules/router.d.ts.map +1 -1
  146. package/dist/schedules/router.js +47 -17
  147. package/dist/schedules/router.js.map +1 -1
  148. package/dist/schedules/tick.d.ts +13 -0
  149. package/dist/schedules/tick.d.ts.map +1 -1
  150. package/dist/schedules/tick.js +59 -39
  151. package/dist/schedules/tick.js.map +1 -1
  152. package/dist/signal-providers/host-do.d.ts +12 -1
  153. package/dist/signal-providers/host-do.d.ts.map +1 -1
  154. package/dist/signal-providers/host-do.js +28 -3
  155. package/dist/signal-providers/host-do.js.map +1 -1
  156. package/dist/signal-providers/webhook-route.d.ts +14 -0
  157. package/dist/signal-providers/webhook-route.d.ts.map +1 -1
  158. package/dist/signal-providers/webhook-route.js +28 -5
  159. package/dist/signal-providers/webhook-route.js.map +1 -1
  160. package/dist/signals/notification-dispatch.d.ts +13 -0
  161. package/dist/signals/notification-dispatch.d.ts.map +1 -1
  162. package/dist/signals/notification-dispatch.js +20 -1
  163. package/dist/signals/notification-dispatch.js.map +1 -1
  164. package/dist/signals/notifications-d1.d.ts +8 -0
  165. package/dist/signals/notifications-d1.d.ts.map +1 -1
  166. package/dist/signals/notifications-d1.js +15 -9
  167. package/dist/signals/notifications-d1.js.map +1 -1
  168. package/dist/signals/thread-do-routes.d.ts.map +1 -1
  169. package/dist/signals/thread-do-routes.js +86 -18
  170. package/dist/signals/thread-do-routes.js.map +1 -1
  171. package/package.json +1 -1
  172. package/scripts/seed-deployment-identity.mjs +22 -4
@@ -1,6 +1,7 @@
1
- import { BackgroundTaskManager, type BackgroundTaskManagerConfig, type ToolExecutor } from '@mastra/core/background-tasks';
1
+ import { type BackgroundTask, BackgroundTaskManager, type BackgroundTaskManagerConfig, type EnqueueResult, type TaskContext, type TaskFilter, type TaskListResult, type TaskPayload, type ToolExecutor } from '@mastra/core/background-tasks';
2
2
  import type { Mastra } from '@mastra/core/mastra';
3
- import type { HostPubSub } from '../do-runner/index.js';
3
+ import { type ExecutionFenceWiring, type HostPubSub } from '../do-runner/index.js';
4
+ export { EXECUTION_FENCE_SUSPEND_KEY } from '../do-runner/execution-fence.js';
4
5
  export interface BackgroundTaskHostOptions {
5
6
  /**
6
7
  * The DO's Mastra — must carry a storage adapter whose
@@ -41,30 +42,142 @@ export interface BackgroundTaskHostOptions {
41
42
  * the persistence/recovery-only behavior.
42
43
  */
43
44
  execution?: boolean;
45
+ /**
46
+ * The deployment execution fence, or `'none'` for a host with no database
47
+ * behind it. Task bodies are an execution family that runs BELOW
48
+ * RunnerRuntime, so the runtime's start/resume gate does not see them; this
49
+ * is where they are gated instead.
50
+ *
51
+ * The gate is at the DISPATCHER, read once per boot pass: behind a closed
52
+ * fence this instance never subscribes and never runs stale-task recovery,
53
+ * so nothing is claimed — queued rows stay pending and stranded rows stay
54
+ * stranded (#ensureDispatching explains why anything later than that is too
55
+ * late). The executor wrapper remains as a fail-closed backstop for the
56
+ * in-flight race, and parks rather than fails.
57
+ *
58
+ * REQUIRED: this is the ONLY gate task bodies pass, so an unfenced host runs
59
+ * them straight through a migration lock — and it looks wired, because every
60
+ * other surface of the same deployment reports the fence. See
61
+ * ExecutionFenceWiring.
62
+ *
63
+ * `draining` still dispatches and still accepts enqueues: that queue is the
64
+ * work a drain exists to finish, and refusing an enqueue would fail the very
65
+ * runs that are draining.
66
+ */
67
+ executionFence: ExecutionFenceWiring;
44
68
  }
69
+ /**
70
+ * How many fence-parked tasks ONE BOOT re-drives.
71
+ *
72
+ * Sized as a boot-path budget rather than a queue-drain rate: each resume is a
73
+ * publish onto the topic the manager just subscribed to, and the boot this
74
+ * blocks is what every request on the deployment is waiting behind. The
75
+ * remainder is not dropped — it stays `suspended`, marked, and inspectable
76
+ * through the read routes — and the ALARM lane below is what drains it, so a
77
+ * deployment reopening with a large parked queue starts moving on its first
78
+ * request without that request paying for the whole queue.
79
+ *
80
+ * Exported for the test that pins the boot/alarm budget boundary, and kept off
81
+ * `./index.js` — the only export map entry this directory has — so it stays
82
+ * package-internal rather than becoming a number a consumer can depend on.
83
+ */
84
+ export declare const MAX_FENCE_RESUMES_PER_PASS = 25;
85
+ /**
86
+ * The hard bound on how many LIST queries one sweep invocation may issue.
87
+ *
88
+ * The sweep pages, and paging is what keeps an old parked cohort reachable
89
+ * once newer tool-suspends sit ahead of it in the scan order. Bounding the
90
+ * scans rather than only the resumes is what keeps a pathological mix — many
91
+ * thousands of tool-suspended rows and one stale parked cohort behind them —
92
+ * from turning a single wake into an unbounded read loop.
93
+ *
94
+ * A wake that hits this bound WITHOUT resuming anything has proved only that
95
+ * the first `MAX_FENCE_RESUME_SCANS * FENCE_RESUME_SCAN_PAGE` rows carry no
96
+ * marker, so it records where it stopped (`#sweepScanFloor`) and the next wake
97
+ * continues from there. Restarting every wake at page 0 instead would re-read
98
+ * the same prefix forever, and a cohort parked behind that many newer
99
+ * tool-suspends would never be reached at all.
100
+ *
101
+ * Exported alongside FENCE_RESUME_SCAN_PAGE for the same narrow reason
102
+ * MAX_FENCE_RESUMES_PER_PASS is: the test that proves a cohort past one wake's
103
+ * scan bound is still reached has to build a set that large, and a size
104
+ * hard-coded there would drift from these. Both stay off `./index.js` — they
105
+ * are tuning, not contract.
106
+ */
107
+ export declare const MAX_FENCE_RESUME_SCANS = 20;
108
+ /**
109
+ * How many `suspended` rows one pass READS to find that many.
110
+ *
111
+ * Larger than the resume budget on purpose. The fence marker lives in the
112
+ * suspend PAYLOAD, which no filter can express, so the pass has to read rows
113
+ * and sort them itself — and a page sized exactly to the resume budget would
114
+ * let a handful of tool-suspended tasks (awaiting a webhook, say) crowd the
115
+ * parked ones out of every pass and stall recovery indefinitely. Reading wider
116
+ * than it acts costs one query and buys headroom for that mix, while still
117
+ * bounding what a boot pulls out of D1.
118
+ */
119
+ export declare const FENCE_RESUME_SCAN_PAGE = 100;
120
+ /** @see hostManagers — tests only, and never re-exported. */
121
+ export declare function backgroundTaskManagerForTests(host: BackgroundTaskHost): BackgroundTaskManager;
45
122
  /**
46
123
  * A BackgroundTaskManager bound to a hosting DO's Mastra + pubsub, with the
47
124
  * boot/alarm lifecycle that makes DO eviction survivable. The hosting DO owns
48
125
  * alarm arming (it needs `ctx.storage.setAlarm`); this class owns the manager
49
- * wiring, the recovery-firing `boot()`, and the alarm `cleanup()` duty. The raw
50
- * manager is reachable as `.manager` for the read-only routes to wrap — never
51
- * expose it directly over HTTP.
126
+ * wiring, the recovery-firing `boot()`, and the alarm `cleanup()` duty.
127
+ *
128
+ * The manager itself is PRIVATE. It carries `enqueue`, `registerTaskContext`,
129
+ * `registerStaticExecutor`, `resume`, and `restart` — every one of which puts a
130
+ * task body on this deployment WITHOUT passing the fence, because the gate that
131
+ * stops a locked deployment executing is the `#gated` wrapper this host puts
132
+ * around an executor on the way in. A caller holding the manager could enqueue
133
+ * an unwrapped executor and defeat both. What this class forwards instead is
134
+ * the fence-gated `enqueue` and the three READS the host route adapter serves.
52
135
  */
53
136
  export declare class BackgroundTaskHost {
54
137
  #private;
55
- readonly manager: BackgroundTaskManager;
56
138
  constructor(options: BackgroundTaskHostOptions);
57
139
  /**
58
- * Durable-Object boot wiring. Fail fast if the backgroundTasks storage domain is
59
- * missing, re-register the static executors, start execution-mode workflow
60
- * workers, THEN call `init(pubsub)` — whose internal `recoverStaleTasks()`
61
- * re-drives any task the evicted instance left mid-flight. Executors and the
62
- * workflow subscriber both go in BEFORE recovery publishes work. A failed
63
- * startup unwinds attempted components in reverse order. Memoized per
64
- * instance: `init` is itself idempotent (initPromise), and `boot()` from both
65
- * `fetch()` and `alarm()` must not double-register.
140
+ * Durable-Object boot wiring, in two phases with different lifetimes.
141
+ *
142
+ * REGISTRATION (memoized for the life of the instance): validate the storage
143
+ * domains and re-register the static executors. Nothing here subscribes,
144
+ * claims, or recovers, so it is safe in every fence state — and it must be,
145
+ * because every host boots before routing and the read routes hang off this
146
+ * memo.
147
+ *
148
+ * DISPATCHING (fence-gated, re-attempted on every boot until it is admitted):
149
+ * `startWorkers()` plus `manager.init(pubsub)`. Those two are what make this
150
+ * instance CLAIM work — see #ensureDispatching for why they cannot run behind
151
+ * a closed fence. A refused attempt is deliberately not memoized, so the next
152
+ * `boot()` from a request or an alarm starts dispatching once the fence
153
+ * reopens, with no operator action.
154
+ *
155
+ * A registration that FAILED is memoized only when it can only fail again:
156
+ * the same non-memoized-refusal reasoning #ensureDispatching applies to the
157
+ * fence. A transient storage fault on the first request into a fresh isolate
158
+ * would otherwise be the permanent answer for the life of that isolate — the
159
+ * read routes hang off this memo, so the host would keep 500ing a queue it
160
+ * can now reach, until an eviction nobody can schedule.
66
161
  */
67
162
  boot(): Promise<void>;
163
+ /**
164
+ * Enqueue a background task through the fence.
165
+ *
166
+ * A drain deliberately still ACCEPTS enqueues: the caller is an agent's tool
167
+ * call inside a run the drain is trying to finish, and refusing would fail
168
+ * exactly the runs that are draining. Locked and proof-only refuse, because
169
+ * a row written then is work the migration would have to carry.
170
+ *
171
+ * The per-task executor is wrapped with the same gate as the static ones, so
172
+ * a task enqueued while open cannot execute its body after a transition.
173
+ */
174
+ enqueue(payload: TaskPayload, context?: TaskContext): Promise<EnqueueResult>;
175
+ /** One task by id, or null. */
176
+ getTask(taskId: string): Promise<BackgroundTask | null>;
177
+ /** Tasks matching a filter. The route adapter re-checks scope per row. */
178
+ listTasks(filter?: TaskFilter): Promise<TaskListResult>;
179
+ /** Lifecycle-event stream, for the route adapter's SSE response. */
180
+ stream(options?: Parameters<BackgroundTaskManager['stream']>[0]): ReadableStream<Record<string, unknown>>;
68
181
  /**
69
182
  * DO-alarm duty: ensure the DO is booted (a FRESH post-eviction instance
70
183
  * recovers HERE, since the alarm is what woke it — see the recovery seam
@@ -1 +1 @@
1
- {"version":3,"file":"host.d.ts","sourceRoot":"","sources":["../../src/background-tasks/host.ts"],"names":[],"mappings":"AAsCA,OAAO,EACL,qBAAqB,EACrB,KAAK,2BAA2B,EAChC,KAAK,YAAY,EAClB,MAAM,+BAA+B,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAaxD,MAAM,WAAW,yBAAyB;IACxC;;;;OAIG;IACH,MAAM,EAAE,MA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