@proofoftech/flowsafe 0.28.0 → 0.31.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 (123) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +6 -2
  3. package/deployment-identity-protocol.mjs +3 -4
  4. package/dist/agent-host/catalog.js +1 -1
  5. package/dist/agent-host/catalog.js.map +1 -1
  6. package/dist/agent-host/index.d.ts +4 -1
  7. package/dist/agent-host/index.d.ts.map +1 -1
  8. package/dist/agent-host/index.js +2 -1
  9. package/dist/agent-host/index.js.map +1 -1
  10. package/dist/agent-host/thread-host.d.ts +18 -0
  11. package/dist/agent-host/thread-host.d.ts.map +1 -1
  12. package/dist/agent-host/thread-host.js +407 -10
  13. package/dist/agent-host/thread-host.js.map +1 -1
  14. package/dist/agent-host/thread-topology.d.ts +83 -0
  15. package/dist/agent-host/thread-topology.d.ts.map +1 -1
  16. package/dist/agent-host/thread-topology.js +202 -1
  17. package/dist/agent-host/thread-topology.js.map +1 -1
  18. package/dist/agent-host/workflow-remote-step-route.d.ts +7 -0
  19. package/dist/agent-host/workflow-remote-step-route.d.ts.map +1 -0
  20. package/dist/agent-host/workflow-remote-step-route.js +148 -0
  21. package/dist/agent-host/workflow-remote-step-route.js.map +1 -0
  22. package/dist/agent-runner/agent-run-state.d.ts +1 -1
  23. package/dist/agent-runner/agent-run-state.d.ts.map +1 -1
  24. package/dist/agent-runner/agent-run-state.js +1 -0
  25. package/dist/agent-runner/agent-run-state.js.map +1 -1
  26. package/dist/agent-runner/durable-agent-runner.d.ts +1 -0
  27. package/dist/agent-runner/durable-agent-runner.d.ts.map +1 -1
  28. package/dist/agent-runner/durable-agent-runner.js +69 -32
  29. package/dist/agent-runner/durable-agent-runner.js.map +1 -1
  30. package/dist/do-runner/durable-object.d.ts +2 -0
  31. package/dist/do-runner/durable-object.d.ts.map +1 -1
  32. package/dist/do-runner/durable-object.js +252 -3
  33. package/dist/do-runner/durable-object.js.map +1 -1
  34. package/dist/do-runner/execution-admission.d.ts +31 -0
  35. package/dist/do-runner/execution-admission.d.ts.map +1 -1
  36. package/dist/do-runner/execution-admission.js +26 -2
  37. package/dist/do-runner/execution-admission.js.map +1 -1
  38. package/dist/do-runner/execution-fence.d.ts +11 -2
  39. package/dist/do-runner/execution-fence.d.ts.map +1 -1
  40. package/dist/do-runner/execution-fence.js +44 -1
  41. package/dist/do-runner/execution-fence.js.map +1 -1
  42. package/dist/do-runner/index.d.ts +2 -1
  43. package/dist/do-runner/index.d.ts.map +1 -1
  44. package/dist/do-runner/index.js +2 -1
  45. package/dist/do-runner/index.js.map +1 -1
  46. package/dist/do-runner/inventory.d.ts +1 -1
  47. package/dist/do-runner/inventory.d.ts.map +1 -1
  48. package/dist/do-runner/inventory.js +85 -1
  49. package/dist/do-runner/inventory.js.map +1 -1
  50. package/dist/do-runner/notification-predicate.d.ts +1 -0
  51. package/dist/do-runner/notification-predicate.d.ts.map +1 -1
  52. package/dist/do-runner/notification-predicate.js +1 -0
  53. package/dist/do-runner/notification-predicate.js.map +1 -1
  54. package/dist/do-runner/remote-step-journal.d.ts +143 -0
  55. package/dist/do-runner/remote-step-journal.d.ts.map +1 -0
  56. package/dist/do-runner/remote-step-journal.js +2090 -0
  57. package/dist/do-runner/remote-step-journal.js.map +1 -0
  58. package/dist/host-kit/do-response.d.ts +19 -1
  59. package/dist/host-kit/do-response.d.ts.map +1 -1
  60. package/dist/host-kit/do-response.js +71 -2
  61. package/dist/host-kit/do-response.js.map +1 -1
  62. package/dist/host-kit/do-run-topology.d.ts +8 -2
  63. package/dist/host-kit/do-run-topology.d.ts.map +1 -1
  64. package/dist/host-kit/do-run-topology.js +26 -1
  65. package/dist/host-kit/do-run-topology.js.map +1 -1
  66. package/dist/host-kit/flowsafe-worker.d.ts +38 -4
  67. package/dist/host-kit/flowsafe-worker.d.ts.map +1 -1
  68. package/dist/host-kit/flowsafe-worker.js +104 -15
  69. package/dist/host-kit/flowsafe-worker.js.map +1 -1
  70. package/dist/host-kit/index.d.ts +5 -5
  71. package/dist/host-kit/index.d.ts.map +1 -1
  72. package/dist/host-kit/index.js +3 -3
  73. package/dist/host-kit/index.js.map +1 -1
  74. package/dist/host-kit/maintenance-capability.js +3 -3
  75. package/dist/host-kit/maintenance-capability.js.map +1 -1
  76. package/dist/host-kit/state-egress.d.ts +34 -6
  77. package/dist/host-kit/state-egress.d.ts.map +1 -1
  78. package/dist/host-kit/state-egress.js +49 -8
  79. package/dist/host-kit/state-egress.js.map +1 -1
  80. package/dist/schedules/schedules-d1.d.ts +3 -3
  81. package/dist/schedules/schedules-d1.d.ts.map +1 -1
  82. package/dist/schedules/schedules-d1.js +61 -62
  83. package/dist/schedules/schedules-d1.js.map +1 -1
  84. package/dist/schedules/tick.d.ts +4 -0
  85. package/dist/schedules/tick.d.ts.map +1 -1
  86. package/dist/schedules/tick.js +28 -7
  87. package/dist/schedules/tick.js.map +1 -1
  88. package/dist/signal-providers/delivery.d.ts +2 -1
  89. package/dist/signal-providers/delivery.d.ts.map +1 -1
  90. package/dist/signal-providers/delivery.js +20 -4
  91. package/dist/signal-providers/delivery.js.map +1 -1
  92. package/dist/signal-providers/host-do.d.ts +2 -0
  93. package/dist/signal-providers/host-do.d.ts.map +1 -1
  94. package/dist/signal-providers/host-do.js +16 -5
  95. package/dist/signal-providers/host-do.js.map +1 -1
  96. package/dist/signal-providers/subscription-d1.d.ts +3 -2
  97. package/dist/signal-providers/subscription-d1.d.ts.map +1 -1
  98. package/dist/signal-providers/subscription-d1.js +25 -7
  99. package/dist/signal-providers/subscription-d1.js.map +1 -1
  100. package/dist/signal-providers/webhook-route.d.ts +2 -0
  101. package/dist/signal-providers/webhook-route.d.ts.map +1 -1
  102. package/dist/signal-providers/webhook-route.js +18 -18
  103. package/dist/signal-providers/webhook-route.js.map +1 -1
  104. package/dist/signals/index.d.ts +1 -0
  105. package/dist/signals/index.d.ts.map +1 -1
  106. package/dist/signals/index.js.map +1 -1
  107. package/dist/signals/notification-dispatch.d.ts +2 -64
  108. package/dist/signals/notification-dispatch.d.ts.map +1 -1
  109. package/dist/signals/notification-dispatch.js +20 -2
  110. package/dist/signals/notification-dispatch.js.map +1 -1
  111. package/dist/signals/notifications-d1.d.ts +100 -3
  112. package/dist/signals/notifications-d1.d.ts.map +1 -1
  113. package/dist/signals/notifications-d1.js +350 -16
  114. package/dist/signals/notifications-d1.js.map +1 -1
  115. package/dist/signals/storage.d.ts +1 -1
  116. package/dist/signals/storage.d.ts.map +1 -1
  117. package/dist/signals/storage.js +3 -3
  118. package/dist/signals/storage.js.map +1 -1
  119. package/dist/signals/thread-do-routes.d.ts +6 -3
  120. package/dist/signals/thread-do-routes.d.ts.map +1 -1
  121. package/dist/signals/thread-do-routes.js +30 -5
  122. package/dist/signals/thread-do-routes.js.map +1 -1
  123. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @proofoftech/flowsafe
2
2
 
3
+ ## 0.31.0
4
+
5
+ ### Minor Changes
6
+
7
+ - ecb31b8: Add trusted mutation-epoch inputs for schedule ticks and signal providers, and atomic admission for schedule claims, notification writes and subscriptions. Preserve original epochs across waits and deferred recovery. Typed epoch refusals defer provider delivery without spending notification delivery attempts; accepted receipts remain available for settlement and replay.
8
+
9
+ Custom notification stores can implement `MutationEpochNotificationsStorage` for authoritative enqueue admission. Legacy epoch-zero draining still permits notification data enqueue. A retained, atomically admitted remote notification operation can complete its matching receipt during proof-only or cutover. Required-epoch mode refuses immediate owner notification delivery and delayed dispatch until their execution admission can be established atomically. Owner ingestion refuses before creating an inbox record, including the generic Mastra path. Pending records remain retained. Upgrade and verify deployment writers before activation; this change does not establish a production cutover proof.
10
+
11
+ ## 0.30.0
12
+
13
+ This release also includes the remote-step APIs prepared for 0.29.0, which was not published to npm.
14
+
15
+ ### Minor Changes
16
+
17
+ - d1c04c0: Add opt-in workflow remote-result continuation through the owning Durable Object and authenticated private route. Bind the retained result to its stored principal, start, suspension and fence; refuse forged ordinary resumes and replay of uncertain claims. Return an already-applied receipt after completed continuation, including after terminal ownership cleanup.
18
+
19
+ ## 0.29.0
20
+
21
+ ### Minor Changes
22
+
23
+ - ee4003a: Add a D1-backed remote-step journal for agent and workflow suspensions, one-time host dispatch permits, retained results, and a host context derived from the stored invocation. Versioned private state egress carries internal dispatch metadata without changing the legacy route. A host-owned notification operation stores its effect and replay receipt in one D1 transaction with a configurable retained-receipt cap. General Mastra continuation remains fail-closed without generation-fenced snapshot writes; hosts must supply trusted dispatch transport and downstream effect receipts before enabling remote execution.
24
+
3
25
  ## 0.28.0
4
26
 
5
27
  ### Minor Changes
package/README.md CHANGED
@@ -361,7 +361,7 @@ Fleet control planes can import the same fail-closed sentinel implementation fro
361
361
 
362
362
  ### Fence and drain a deployment
363
363
 
364
- One Flowsafe deployment is one tenant, so the execution fence controls the complete deployment. `open` admits all work. `draining` refuses new run mints and future-work authoring while existing runs and deliveries finish. It still accepts new background-task enqueues and dispatches queued tasks because both are drainable work. Background-task enqueue, dispatch, and stale-task re-drive are refused in `migration-locked` and `proof-only`. Signal wakes that would mint a run persist instead. `migration-locked` refuses execution, and `proof-only` admits only the nominated start and its bound run. The fence never preempts compute already in flight.
364
+ One Flowsafe deployment is one tenant, so the execution fence controls that deployment. Fence state and the [producer epoch contract](https://github.com/ProofOfTechOrg/anchorage/blob/main/docs/deployment-reference.md#fence-unattended-producers) constrain admission independently. `draining` refuses new run mints and future-work authoring while permitting existing-run continuation and receipt settlement. It still accepts new background-task enqueues and dispatches queued tasks because both are drainable work. Background-task enqueue, dispatch, and stale-task re-drive are refused in `migration-locked` and `proof-only`. Signal wakes that would mint a run persist instead. `migration-locked` refuses execution, and `proof-only` admits only the nominated start and its bound run. The fence never preempts compute already in flight.
365
365
 
366
366
  Provisioning requires `--initial-fence-state open` or `--initial-fence-state migration-locked`; it never chooses a default. An absent pre-0.20 table or empty five-column legacy table reads as optional `open`. Initialization adds epoch/revision metadata without reopening existing state. A missing row once any metadata column exists is unreadable and is never silently refilled. For locked-at-birth provisioning, read `GET /admin/execution-fence` afterward and fail unless it reports `migration-locked`.
367
367
 
@@ -377,6 +377,10 @@ With a configured fence, Runtime requires the actual D1 domain's positive initia
377
377
 
378
378
  Use `GET /admin/inventory` while the fence remains `draining`. A drain is proven only after every work category is empty across two complete sweeps at least 60 seconds apart. A pending agent-inbox notification scheduled for later, or carrying no due timestamp, is work and keeps the proof open. Readings are point-in-time observations rather than snapshots and can move in either direction while draining admits work. Empty results cannot over-count, and keyset pagination never skips a row that existed before the sweep began. If you need a hard guarantee, re-sweep once after transitioning to `migration-locked`: an empty post-lock sweep is conclusive; a non-empty one means work is still outstanding, either because it entered after the proof or because the lock parked it before it finished. Return to `draining` and repeat the proof. An inventory read taken under `migration-locked` measures what the fence parked rather than what the deployment would otherwise be doing. Schedules and signal subscriptions are standing configuration and need not empty. Persisted idle signals are deliberately unenumerable and carry into the replacement deployment.
379
379
 
380
+ ### Continue verified remote results
381
+
382
+ Trusted hosts can [continue a retained workflow result](https://github.com/ProofOfTechOrg/anchorage/blob/main/docs/do-runner-design.md#continue-a-retained-workflow-result) through the owning RunDO. The opt-in private route admits the verified result once and preserves uncertain claims across restarts. It does not enable automatic engine replay.
383
+
380
384
  ### Runtime ids are opaque
381
385
 
382
386
  The host mints opaque, path-safe run and thread ids. `RunnerRuntime.start()` requires a host-owned run id and has no generation fallback. A run id is single-use: never start one again, even after retention removed its run. The id scopes the snapshot, Durable Object, approval lookup, stream address, and artifact path, but it carries no customer identity.
@@ -506,7 +510,7 @@ A policy failure is opaque: direct delivery returns 503, schedule state is left
506
510
 
507
511
  Configure the same positive safe-integer `maxDeliveryAttempts` on `createNotificationDispatchTick()` and `createThreadSignalRoutes()`. Both default to `DEFAULT_MAX_NOTIFICATION_DELIVERY_ATTEMPTS`. A recorded failure at the bound discards the notification with `deliveryReason: "delivery-attempts-exhausted"`, retaining its count and last error. An already-exhausted row is never sent; its discard is conditional on the observed record remaining current. Below the bound, existing retry delays apply.
508
512
 
509
- Dispatch requires `NotificationDeliveryStorage`; `D1NotificationsStorage` implements it. A custom store's `updateNotificationDeliveryIfUnchanged()` must compare the captured observation and apply the failure patch atomically against its other writers. Ordinary Core storage still serves notification ingestion. See the [delivery and receipt guide](https://github.com/ProofOfTechOrg/anchorage/blob/main/docs/durable-agents.md#bound-notification-delivery) for custom-store migration, lost responses and receipt retention.
513
+ Dispatch requires `NotificationDeliveryStorage`; `D1NotificationsStorage` implements it. A custom store's `updateNotificationDeliveryIfUnchanged()` must compare the captured observation and apply the failure patch atomically against its other writers. Ordinary Core storage serves notification ingestion in epoch-zero compatibility mode. Before activating required epochs, review the [producer admission and notification limitations](https://github.com/ProofOfTechOrg/anchorage/blob/main/docs/deployment-reference.md#fence-unattended-producers). See the [delivery and receipt guide](https://github.com/ProofOfTechOrg/anchorage/blob/main/docs/durable-agents.md#bound-notification-delivery) for custom-store migration, lost responses and receipt retention.
510
514
 
511
515
  Summary items arise only from rows written by Mastra's delivery policy, which means an unbranded agent's owner notifications. Summary source counts and a configured source delivery policy read own properties: the declared `@mastra/core` peer guards both lookups, so a source named after an `Object.prototype` member is counted under its own key and resolves the configured priority or default action. A core outside the declared peer range that predates [mastra-ai/mastra#23693](https://github.com/mastra-ai/mastra/issues/23693) and [mastra-ai/mastra#23694](https://github.com/mastra-ai/mastra/issues/23694) miscounts such a source and selects the inherited policy entry instead.
512
516
 
@@ -35,8 +35,8 @@ export const DEPLOYMENT_SENTINEL_COLUMNS = Object.freeze([
35
35
  // The vocabulary and the DDL live HERE rather than beside the store that reads
36
36
  // them (src/do-runner/execution-fence.ts, which imports them from this module)
37
37
  // for one reason: this file is the only place both sides can share. It ships at
38
- // the package root and is loaded by the provisioning CLI, by fleet-control's
39
- // backends, and by the runtime — none of which can import the package's
38
+ // the package root and is loaded by the provisioning CLI, a trusted
39
+ // provisioning control plane, and the runtime — none of which can import the package's
40
40
  // TypeScript sources. And the two MUST be one string: the store's own
41
41
  // `CREATE TABLE IF NOT EXISTS` silently accepts a differently-shaped table this
42
42
  // protocol created, so a drifted copy would not fail, it would quietly drop the
@@ -324,8 +324,7 @@ function seedExecutionFenceRow(state, seededAt) {
324
324
  // fence an operator closed.
325
325
  //
326
326
  // `updated_at` is an INTEGER column bound as TEXT because D1's REST query
327
- // API takes every parameter as a string (fleet-control's
328
- // d1RestParameters rejects anything else). SQLite's INTEGER affinity
327
+ // API takes every parameter as a string. SQLite's INTEGER affinity
329
328
  // converts a well-formed integer literal on write, so the column still
330
329
  // holds a number.
331
330
  bindings: [EXECUTION_FENCE_ROW_ID, state, String(seededAt)],
@@ -111,7 +111,7 @@ function automationCheckFor(automationById, known) {
111
111
  // human approves it — a decided approval and a stranded run. The narrowing
112
112
  // that matters is still enforced: a kind removed from the declaration
113
113
  // entirely can no longer resume.
114
- if (entryPath === 'approval.resume') {
114
+ if (entryPath === 'approval.resume' || entryPath === 'remote-step.resume') {
115
115
  return rules.some((rule) => rule.kind === principal.kind);
116
116
  }
117
117
  return rules.some((rule) => rule.kind === principal.kind && rule.entryPaths.includes(entryPath));
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.js","sourceRoot":"","sources":["../../src/agent-host/catalog.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAGtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EACL,kCAAkC,EAClC,sBAAsB,GACvB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAEL,yBAAyB,EAEzB,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAQL,sBAAsB,GAEvB,MAAM,YAAY,CAAC;AAEpB,SAAS,IAAI,CAAC,OAAe;IAC3B,MAAM,IAAI,KAAK,CAAC,kBAAkB,OAAO,EAAE,CAAC,CAAC;AAC/C,CAAC;AAED,SAAS,eAAe,CACt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AAC;IACD,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,kBAAkB,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;IACxE,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,MAAM,EAAE,OAAO,CAAC,MAAM;QACtB,OAAO,EAAE,MAAM;QACf,GAAG,EAAE,CAAC,OAAe,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC;QAC3C,YAAY,EAAE,OAAO,CAAC,YAAY;QAClC,iBAAiB,EAAE,OAAO,CAAC,iBAAiB;KAC7C,CAAC,CAAC;AACL,CAAC"}
@@ -1,10 +1,13 @@
1
1
  export { assertNoReservedExecutionContext, findReservedExecutionContextKey, isReservedExecutionContextKey, RESERVED_EXECUTION_CONTEXT_KEYS, ReservedExecutionContextError, stripReservedExecutionContext, } from '../do-runner/index.js';
2
+ export type { RecordedRemoteStepResult, RemoteStepInvocation, RemoteStepNotificationOperation, RemoteStepPermit, WorkflowRemoteStepAddress, WorkflowRemoteStepContinuationReader, WorkflowRemoteStepInvocation, WorkflowRemoteStepResumeData, WorkflowRemoteStepResumeResult, } from '../do-runner/remote-step-journal.js';
2
3
  export { type AgentApprovalResumer, type AgentApprovalResumerOptions, createAgentApprovalResumer, } from './approval-resumer.js';
3
4
  export { createAgentCatalog, createAgentModuleCatalog, validateAgentMeta, validateAgentModule, } from './catalog.js';
4
5
  export { type AgentRouter, type AgentRouterOptions, createAgentRouter, } from './router.js';
5
6
  export { type AgentThreadInstanceScope, type AgentThreadStateStorage, type AutomatedEntryAuthorizer, type AutomatedEntryRequest, type BlockingAgentRun, type BoundThreadAgent, createThreadAgentHost, type PrincipalPermissionResolution, type PrincipalPermissionResolver, type ThreadAgentHost, type ThreadAgentHostOptions, type ThreadAgentStartInput, } from './thread-host.js';
6
- export { AGENT_HOST_ROUTE_PREFIX, type AgentThreadBoundTopology, type AgentThreadDispatchTopology, type AgentThreadObserveInput, type AgentThreadRunRef, type AgentThreadStartInput, type AgentThreadTopology, type AgentThreadTopologyOptions, createAgentThreadTopology, } from './thread-topology.js';
7
+ export { AGENT_HOST_ROUTE_PREFIX, type AgentThreadBoundTopology, type AgentThreadDispatchTopology, type AgentThreadObserveInput, type AgentThreadRunRef, type AgentThreadStartInput, type AgentThreadTopology, type AgentThreadTopologyOptions, createAgentThreadTopology, createRemoteStepNotificationRecoveryTick, type RemoteStepContinuationReader, type RemoteStepDispatchReader, type RemoteStepDispatchTicket, type WorkflowRemoteStepDispatchReader, type WorkflowRemoteStepDispatchTicket, } from './thread-topology.js';
7
8
  export { AGENT_AUDIT_CONTEXT_KEY, createTrustedAgentRequestContext, deriveTrustedAgentContext, sanitizeStoredAgentContext, } from './trusted-context.js';
8
9
  export type { AgentAutomationRule, AgentCatalog, AgentEntryPath, AgentMeta, AgentModule, AgentModuleCatalog, AgentRunEnvelope, AutomationCheck, Permission, TrustedAgentExecution, } from './types.js';
9
10
  export { isPermissionIdentifier } from './types.js';
11
+ export type { WorkflowDispatchPort } from './workflow-remote-step-route.js';
12
+ export { createWorkflowRemoteStepPreRoute, WORKFLOW_REMOTE_STEP_ROUTE, } from './workflow-remote-step-route.js';
10
13
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/agent-host/index.ts"],"names":[],"mappings":"AAIA,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAm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E,sBAAsB,EAAE,MAAM,YAAY,CAAC;AACpD,YAAY,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAC5E,OAAO,EACL,gCAAgC,EAChC,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC"}
@@ -6,7 +6,8 @@ export { createAgentApprovalResumer, } from './approval-resumer.js';
6
6
  export { createAgentCatalog, createAgentModuleCatalog, validateAgentMeta, validateAgentModule, } from './catalog.js';
7
7
  export { createAgentRouter, } from './router.js';
8
8
  export { createThreadAgentHost, } from './thread-host.js';
9
- export { AGENT_HOST_ROUTE_PREFIX, createAgentThreadTopology, } from './thread-topology.js';
9
+ export { AGENT_HOST_ROUTE_PREFIX, createAgentThreadTopology, createRemoteStepNotificationRecoveryTick, } from './thread-topology.js';
10
10
  export { AGENT_AUDIT_CONTEXT_KEY, createTrustedAgentRequestContext, deriveTrustedAgentContext, sanitizeStoredAgentContext, } from './trusted-context.js';
11
11
  export { isPermissionIdentifier } from './types.js';
12
+ export { createWorkflowRemoteStepPreRoute, WORKFLOW_REMOTE_STEP_ROUTE, } from './workflow-remote-step-route.js';
12
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-host/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,0EAA0E;AAC1E,qEAAqE;AAErE,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAGL,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAGL,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAOL,qBAAqB,GAMtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EAQvB,yBAAyB,GAC1B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAa9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/agent-host/index.ts"],"names":[],"mappings":"AAAA,sCAAsC;AACtC,0EAA0E;AAC1E,qEAAqE;AAErE,OAAO,EACL,gCAAgC,EAChC,+BAA+B,EAC/B,6BAA6B,EAC7B,+BAA+B,EAC/B,6BAA6B,EAC7B,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAY/B,OAAO,EAGL,0BAA0B,GAC3B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kBAAkB,EAClB,wBAAwB,EACxB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,cAAc,CAAC;AACtB,OAAO,EAGL,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EAOL,qBAAqB,GAMtB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,uBAAuB,EAQvB,yBAAyB,EACzB,wCAAwC,GAMzC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,sBAAsB,CAAC;AAa9B,OAAO,EAAE,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,EACL,gCAAgC,EAChC,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC"}
@@ -3,8 +3,10 @@ import { type AgentEntryPath, type FlowsafeDurableAgent, type FlowsafeDurableAge
3
3
  import { type ApprovalAuditSink, type ApprovalService, type ExecutionPrincipal, type RecoverableResourceOwnershipStore } from '../approval-api/index.js';
4
4
  import { type AutomatedExecutionPrincipal } from '../approval-api/principal.js';
5
5
  import { type RequestContextProvider, type RunSummary, type ScheduleSourceStore, type ThreadScope } from '../do-runner/index.js';
6
+ import { type RemoteStepJournal } from '../do-runner/remote-step-journal.js';
6
7
  import { type RunStatus } from '../do-runner/run-terminal-state.js';
7
8
  import { type StartReservationReading } from '../do-runner/start-reservation-contract.js';
9
+ import { type RemoteStepContinuationReader } from './thread-topology.js';
8
10
  import type { AgentModule, AgentRunEnvelope, PrincipalPermissionResolver } from './types.js';
9
11
  export interface AgentThreadStateStorage {
10
12
  get<T = unknown>(key: string): Promise<T | undefined>;
@@ -12,6 +14,8 @@ export interface AgentThreadStateStorage {
12
14
  delete(key: string): Promise<boolean>;
13
15
  list<T = unknown>(options: {
14
16
  prefix: string;
17
+ startAfter?: string;
18
+ limit?: number;
15
19
  }): Promise<Map<string, T>>;
16
20
  getAlarm(): Promise<number | null>;
17
21
  setAlarm(scheduledTime: number | Date): Promise<void>;
@@ -39,6 +43,19 @@ export interface AutomatedEntryRequest {
39
43
  export type AutomatedEntryAuthorizer = (request: AutomatedEntryRequest) => boolean | Promise<boolean>;
40
44
  export type { PrincipalPermissionResolution, PrincipalPermissionResolver, } from './types.js';
41
45
  export interface ThreadAgentHostOptions {
46
+ remoteSteps?: RemoteStepContinuationReader;
47
+ remoteStepNotification?: {
48
+ journal: RemoteStepJournal;
49
+ agentId: string;
50
+ operationId: string;
51
+ source: string;
52
+ kind: string;
53
+ summary: string;
54
+ payload?: unknown;
55
+ receiptLimit?: number;
56
+ ensureScheduledRecovery: () => Promise<void>;
57
+ };
58
+ resourceIdFromKey?: (threadId: string) => string;
42
59
  /** Narrows automated entry beyond what each agent's metadata declares. */
43
60
  authorizeAutomatedEntry?: AutomatedEntryAuthorizer;
44
61
  /**
@@ -148,6 +165,7 @@ export interface ThreadAgentHost {
148
165
  runId: string;
149
166
  }): Promise<RunSummary | undefined>;
150
167
  recoverOwnership(scope: AgentThreadInstanceScope): Promise<void>;
168
+ recoverNotificationOperation(scope: ThreadScope, invocationId: string): Promise<'receipt-recorded' | 'unresolved'>;
151
169
  route(request: Request, scope: ThreadScope): Promise<Response | null>;
152
170
  }
153
171
  export declare function createThreadAgentHost(options: ThreadAgentHostOptions): ThreadAgentHost;
@@ -1 +1 @@
1
- {"version":3,"file":"thread-host.d.ts","sourceRoot":"","sources":["../../src/agent-host/thread-host.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAWjE,OAAO,EAGL,KAAK,cAAc,EAQnB,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAIjC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,iBAAiB,EAEtB,KAAK,eAAe,EAEpB,KAAK,kBAAkB,EAIvB,KAAK,iCAAiC,EAIvC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,KAAK,2BAA2B,EAIjC,MAAM,8BAA8B,CAAC;AAYtC,OAAO,EAGL,KAAK,sBAAsB,EAG3B,KAAK,UAAU,EAIf,KAAK,mBAAmB,EAExB,KAAK,WAAW,EACjB,MAAM,uBAAuB,CAAC;AAY/B,OAAO,EAEL,KAAK,SAAS,EACf,MAAM,oCAAoC,CAAC;AAK5C,OAAO,EAEL,KAAK,uBAAuB,EAE7B,MAAM,4CAA4C,CAAC;AAgBpD,OAAO,KAAK,EACV,WAAW,EAEX,gBAAgB,EAEhB,2BAA2B,EAE5B,MAAM,YAAY,CAAC;AAEpB,MAAM,WAAW,uBAAuB;IACtC,GAAG,CAAC,CAAC,GAAG,OAAO,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,GAAG,SAAS,CAAC,CAAC;IACtD,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IACtC,IAAI,CAAC,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE;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