effect-agent 0.1.0-beta.111 → 0.1.0-beta.113

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 (67) hide show
  1. package/dist/{DurableAgentRuntime-PyIgNYXF.mjs → DurableAgentRuntime-BIrgxwRl.mjs} +154 -21
  2. package/dist/DurableAgentRuntime-BIrgxwRl.mjs.map +1 -0
  3. package/dist/{EventSource-BUYLmL77.d.mts → EventSource-ARs56eBq.d.mts} +3 -3
  4. package/dist/{PreparedInputAdmission-J3YK6LAm.d.mts → PreparedInputAdmission-_WYg-D0f.d.mts} +4 -4
  5. package/dist/{Records-4qnRmniE.d.mts → Records-BtxMy8xD.d.mts} +94 -13
  6. package/dist/{Schedule-C2lH2kxY.d.mts → Schedule-DGPyXBzK.d.mts} +2 -2
  7. package/dist/{Subscription-pQUv0QD6.d.mts → Subscription-B9VszlF9.d.mts} +3 -3
  8. package/dist/{SubscriptionInput-DdJOiNMY.d.mts → SubscriptionInput-BJWZqCWP.d.mts} +3 -3
  9. package/dist/capabilities/Mcp.d.mts +1 -1
  10. package/dist/capabilities/Mcp.mjs +5 -6
  11. package/dist/capabilities/Mcp.mjs.map +1 -1
  12. package/dist/durable/ActivityStore.d.mts +1 -1
  13. package/dist/durable/Admin.d.mts +1 -1
  14. package/dist/durable/AgentRegistration.d.mts +1 -1
  15. package/dist/durable/Certification.d.mts +1 -1
  16. package/dist/durable/CommittedActivity.d.mts +1 -1
  17. package/dist/durable/Digest.d.mts +1 -1
  18. package/dist/durable/DurableAgentRuntime.d.mts +2 -2
  19. package/dist/durable/DurableAgentRuntime.mjs +2 -2
  20. package/dist/durable/EventSource.d.mts +1 -1
  21. package/dist/durable/GitHubWorkflowSource.d.mts +3 -3
  22. package/dist/durable/MessageDelivery.d.mts +3 -3
  23. package/dist/durable/MessageDeliveryStoreConformance.d.mts +39 -39
  24. package/dist/durable/PersistentHistory.d.mts +1 -1
  25. package/dist/durable/PreparedInputAdmission.d.mts +1 -1
  26. package/dist/durable/Records.d.mts +1 -1
  27. package/dist/durable/Recovery.d.mts +1 -1
  28. package/dist/durable/RunJournal.d.mts +1 -1
  29. package/dist/durable/Schedule.d.mts +1 -1
  30. package/dist/durable/ScheduleStoreConformance.d.mts +1 -1
  31. package/dist/durable/ScheduleTransition.d.mts +1 -1
  32. package/dist/durable/Scheduling.d.mts +2 -2
  33. package/dist/durable/SqlStorageV2Upgrade.d.mts +2 -2
  34. package/dist/durable/SqlSubscriptionStore.d.mts +2 -2
  35. package/dist/durable/SqlThreadNativeReads.d.mts +1 -1
  36. package/dist/durable/SubmissionLedger.d.mts +2 -2
  37. package/dist/durable/SubmissionLedger.mjs +19 -8
  38. package/dist/durable/SubmissionLedger.mjs.map +1 -1
  39. package/dist/durable/SubmissionLedgerConformance.d.mts +1 -1
  40. package/dist/durable/SubmissionLedgerConformance.mjs +2 -1
  41. package/dist/durable/SubmissionLedgerConformance.mjs.map +1 -1
  42. package/dist/durable/SubmissionStatus.d.mts +1 -1
  43. package/dist/durable/Subscription.d.mts +1 -1
  44. package/dist/durable/SubscriptionInput.d.mts +1 -1
  45. package/dist/durable/SubscriptionStoreConformance.d.mts +1 -1
  46. package/dist/durable/SubscriptionTools.d.mts +3 -3
  47. package/dist/durable/SubscriptionTransition.d.mts +1 -1
  48. package/dist/durable/Subscriptions.d.mts +5 -5
  49. package/dist/durable/ThreadContextHistory.d.mts +1 -1
  50. package/dist/durable/ThreadContextHistoryProjection.d.mts +1 -1
  51. package/dist/durable/ThreadInvariants.d.mts +1 -1
  52. package/dist/durable/ThreadProjection.d.mts +1 -1
  53. package/dist/durable/ThreadProjectionMaintenance.d.mts +1 -1
  54. package/dist/durable/ThreadStore.d.mts +2 -2
  55. package/dist/durable/ThreadStore.mjs +16 -2
  56. package/dist/durable/ThreadStore.mjs.map +1 -1
  57. package/dist/durable/ThreadStoreConformance.d.mts +1 -1
  58. package/dist/durable/WorkerHost.d.mts +1 -1
  59. package/dist/index.d.mts +6 -6
  60. package/dist/index.mjs +1 -1
  61. package/package.json +1 -1
  62. package/src/capabilities/Mcp.ts +6 -7
  63. package/src/durable/DurableAgentRuntime.ts +278 -49
  64. package/src/durable/SubmissionLedger.ts +22 -9
  65. package/src/durable/SubmissionLedgerConformance.ts +13 -1
  66. package/src/durable/ThreadStore.ts +16 -0
  67. package/dist/DurableAgentRuntime-PyIgNYXF.mjs.map +0 -1
@@ -3,7 +3,7 @@ import { a as Receipt } from "../Receipt-BAHyigAF.mjs";
3
3
  import { r as Update } from "../AgentUpdates-DMJ-_xow.mjs";
4
4
  import { r as Diagnostic } from "../FailureDiagnostic-CaAkzGHL.mjs";
5
5
  import { t as AgentPolicy } from "../AgentPolicy-BqDoSXO6.mjs";
6
- import { co as Settlement, h as DefinitionDigests, mi as DigestError } from "../Records-4qnRmniE.mjs";
6
+ import { bi as DigestError, h as DefinitionDigests, mo as Settlement } from "../Records-BtxMy8xD.mjs";
7
7
  import { MessageDeliveryError, MessageDeliveryFailure, MessageDeliveryStore } from "./MessageDelivery.mjs";
8
8
  import { Effect, Schema } from "effect";
9
9
  //#region src/durable/MessageDeliveryStoreConformance.d.ts
@@ -92,25 +92,6 @@ export declare const makeMessageDeliveryFixture: (messageId?: any, owner?: any,
92
92
  readonly reportKind?: "update" | undefined;
93
93
  } | undefined;
94
94
  readonly messageAdmission?: {
95
- readonly schemaVersion: 1;
96
- readonly message: {
97
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
98
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
99
- };
100
- readonly peerName: string;
101
- readonly sender: {
102
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
103
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
104
- };
105
- readonly returnAddress: {
106
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
107
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
108
- };
109
- readonly inReplyTo?: {
110
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
111
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
112
- } | undefined;
113
- } | {
114
95
  readonly _tag: "WorkerCompletion";
115
96
  readonly budgetExhausted: boolean;
116
97
  readonly schemaVersion: 1;
@@ -151,6 +132,25 @@ export declare const makeMessageDeliveryFixture: (messageId?: any, owner?: any,
151
132
  readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
152
133
  };
153
134
  readonly update: Update;
135
+ } | {
136
+ readonly schemaVersion: 1;
137
+ readonly message: {
138
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
139
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
140
+ };
141
+ readonly peerName: string;
142
+ readonly sender: {
143
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
144
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
145
+ };
146
+ readonly returnAddress: {
147
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
148
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
149
+ };
150
+ readonly inReplyTo?: {
151
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
152
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
153
+ } | undefined;
154
154
  } | undefined;
155
155
  };
156
156
  readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
@@ -264,25 +264,6 @@ export declare const makeWorkerUpdateDeliveryFixture: (id: string) => Effect.Eff
264
264
  readonly reportKind?: "update" | undefined;
265
265
  } | undefined;
266
266
  readonly messageAdmission?: {
267
- readonly schemaVersion: 1;
268
- readonly message: {
269
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
270
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
271
- };
272
- readonly peerName: string;
273
- readonly sender: {
274
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
275
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
276
- };
277
- readonly returnAddress: {
278
- readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
279
- readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
280
- };
281
- readonly inReplyTo?: {
282
- readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
283
- readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
284
- } | undefined;
285
- } | {
286
267
  readonly _tag: "WorkerCompletion";
287
268
  readonly budgetExhausted: boolean;
288
269
  readonly schemaVersion: 1;
@@ -323,6 +304,25 @@ export declare const makeWorkerUpdateDeliveryFixture: (id: string) => Effect.Eff
323
304
  readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
324
305
  };
325
306
  readonly update: Update;
307
+ } | {
308
+ readonly schemaVersion: 1;
309
+ readonly message: {
310
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
311
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
312
+ };
313
+ readonly peerName: string;
314
+ readonly sender: {
315
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
316
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
317
+ };
318
+ readonly returnAddress: {
319
+ readonly threadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
320
+ readonly agentId: string & import("effect/Brand").Brand<"@effect-agent/core/AgentId">;
321
+ };
322
+ readonly inReplyTo?: {
323
+ readonly ownerThreadId: string & import("effect/Brand").Brand<"@effect-agent/core/ThreadId">;
324
+ readonly messageId: string & import("effect/Brand").Brand<"@effect-agent/thread/IdempotencyKey">;
325
+ } | undefined;
326
326
  } | undefined;
327
327
  };
328
328
  readonly envelopeDigest: string & import("effect/Brand").Brand<"@effect-agent/thread/Digest">;
@@ -1,5 +1,5 @@
1
1
  import { t as ThreadHistory } from "../ThreadHistory-tS1KwxHR.mjs";
2
- import { mn as ThreadStore } from "../Records-4qnRmniE.mjs";
2
+ import { yn as ThreadStore } from "../Records-BtxMy8xD.mjs";
3
3
  import { Layer } from "effect";
4
4
  declare namespace PersistentHistory_d_exports {
5
5
  export { layer };
@@ -1,2 +1,2 @@
1
- import { r as admitPreparedInput, t as PreparedInputAdmission } from "../PreparedInputAdmission-J3YK6LAm.mjs";
1
+ import { r as admitPreparedInput, t as PreparedInputAdmission } from "../PreparedInputAdmission-_WYg-D0f.mjs";
2
2
  export { PreparedInputAdmission, admitPreparedInput };
@@ -1,2 +1,2 @@
1
- import { $ as ToolCallPrepared, A as ProducerId, B as RunStartedRecord, C as ModelCompleted, D as PeerMessagePrepared, E as ObservationOffset, F as ReplayContract, G as SubagentRequested, H as SettlementOutcome, I as RunCompleted, J as SubmissionSettledRecord, K as SubagentStarted, L as RunDurationExhausted, M as RecordId, O as PersistedJson, P as RepairAnnotated, Q as ToolApprovalRequested, R as RunFailed, S as MAX_PERSISTED_JSON_NODES, T as ModelResponseRecorded, U as SubagentJoined, V as SettlementFailureDiagnostic, W as SubagentLineageRecorded, X as ThreadCreated, Y as SubtreeBudgetReserved, Z as ToolApprovalDecided, _ as Digest, a as BatchId, at as ToolStepSettled, b as MAX_PERSISTED_JSON_COLLECTION_LENGTH, c as CanonicalRecord, ct as WorkerAdmission, d as CanonicalSequence, dt as WorkerOrigin, et as ToolCallResolution, f as CompactionCreated, ft as WorkerOriginRecorded, g as DeploymentId, h as DefinitionDigests, ht as WorkerReportingIntent, i as ApprovalDecision, it as ToolOperation, j as RecordEnvelope, k as ProducerEpoch, l as CanonicalRecordEnvelope, lt as WorkerInputCompleted, m as DefinitionDigestInput, mt as WorkerReportRefused, n as AbortedSubmissionSettled, nt as ToolCallSettled, o as CURRENT_CANONICAL_SCHEMA_VERSION, ot as ToolUnavailable, p as CompletedSubmissionSettled, pt as WorkerReportPrepared, q as SubmissionSettled, r as AgentUpdateEmitted, rt as ToolCallUnknown, s as CanonicalBatch, st as UserInputRecorded, t as AbortRequested, tt as ToolCallResolved, u as CanonicalRecordPayload, ut as WorkerInputRequested, v as FailedSubmissionSettled, w as ModelResponseInterrupted, x as MAX_PERSISTED_JSON_DEPTH, y as MAX_PERSISTED_JSON_BYTES, z as RunPolicyUsageReserved } from "../Records-4qnRmniE.mjs";
1
+ import { $ as ToolCallPrepared, A as ProducerId, B as RunStartedRecord, C as ModelCompleted, D as PeerMessagePrepared, E as ObservationOffset, F as ReplayContract, G as SubagentRequested, H as SettlementOutcome, I as RunCompleted, J as SubmissionSettledRecord, K as SubagentStarted, L as RunDurationExhausted, M as RecordId, O as PersistedJson, P as RepairAnnotated, Q as ToolApprovalRequested, R as RunFailed, S as MAX_PERSISTED_JSON_NODES, T as ModelResponseRecorded, U as SubagentJoined, V as SettlementFailureDiagnostic, W as SubagentLineageRecorded, X as ThreadCreated, Y as SubtreeBudgetReserved, Z as ToolApprovalDecided, _ as Digest, a as BatchId, at as ToolStepSettled, b as MAX_PERSISTED_JSON_COLLECTION_LENGTH, c as CanonicalRecord, ct as WorkerAdmission, d as CanonicalSequence, dt as WorkerOrigin, et as ToolCallResolution, f as CompactionCreated, ft as WorkerOriginRecorded, g as DeploymentId, h as DefinitionDigests, ht as WorkerReportingIntent, i as ApprovalDecision, it as ToolOperation, j as RecordEnvelope, k as ProducerEpoch, l as CanonicalRecordEnvelope, lt as WorkerInputCompleted, m as DefinitionDigestInput, mt as WorkerReportRefused, n as AbortedSubmissionSettled, nt as ToolCallSettled, o as CURRENT_CANONICAL_SCHEMA_VERSION, ot as ToolUnavailable, p as CompletedSubmissionSettled, pt as WorkerReportPrepared, q as SubmissionSettled, r as AgentUpdateEmitted, rt as ToolCallUnknown, s as CanonicalBatch, st as UserInputRecorded, t as AbortRequested, tt as ToolCallResolved, u as CanonicalRecordPayload, ut as WorkerInputRequested, v as FailedSubmissionSettled, w as ModelResponseInterrupted, x as MAX_PERSISTED_JSON_DEPTH, y as MAX_PERSISTED_JSON_BYTES, z as RunPolicyUsageReserved } from "../Records-BtxMy8xD.mjs";
2
2
  export { AbortRequested, AbortedSubmissionSettled, AgentUpdateEmitted, ApprovalDecision, BatchId, CURRENT_CANONICAL_SCHEMA_VERSION, CanonicalBatch, CanonicalRecord, CanonicalRecordEnvelope, CanonicalRecordPayload, CanonicalSequence, CompactionCreated, CompletedSubmissionSettled, DefinitionDigestInput, DefinitionDigests, DeploymentId, Digest, FailedSubmissionSettled, MAX_PERSISTED_JSON_BYTES, MAX_PERSISTED_JSON_COLLECTION_LENGTH, MAX_PERSISTED_JSON_DEPTH, MAX_PERSISTED_JSON_NODES, ModelCompleted, ModelResponseInterrupted, ModelResponseRecorded, ObservationOffset, PeerMessagePrepared, PersistedJson, ProducerEpoch, ProducerId, RecordEnvelope, RecordId, RepairAnnotated, ReplayContract, RunCompleted, RunDurationExhausted, RunFailed, RunPolicyUsageReserved, RunStartedRecord, SettlementFailureDiagnostic, SettlementOutcome, SubagentJoined, SubagentLineageRecorded, SubagentRequested, SubagentStarted, SubmissionSettled, SubmissionSettledRecord, SubtreeBudgetReserved, ThreadCreated, ToolApprovalDecided, ToolApprovalRequested, ToolCallPrepared, ToolCallResolution, ToolCallResolved, ToolCallSettled, ToolCallUnknown, ToolOperation, ToolStepSettled, ToolUnavailable, UserInputRecorded, WorkerAdmission, WorkerInputCompleted, WorkerInputRequested, WorkerOrigin, WorkerOriginRecorded, WorkerReportPrepared, WorkerReportRefused, WorkerReportingIntent };
@@ -1,2 +1,2 @@
1
- import { $i as ResumeSuspended, Ai as AwaitUnknownResolution, Bi as OpenToolCallEvidence, Ci as ApplyJoinAccounting, Di as AwaitChildSettlement, Ei as AwaitChildAdmissionResolution, Fi as EnsureWaitingForChild, Hi as PropagateChildAbort, Ii as FinalizeLedgerFromHistory, Ji as RepairJoinMarker, Ki as ReleaseOrphanChildReservation, Li as MarkUnknown, Mi as CompleteMaterialization, Ni as DeclaredPendingBatchEvidence, Oi as AwaitHostSettlement, Pi as DelegationAdmissionEvidence, Qi as ResumePendingToolBatch, Ri as NoAction, Si as ApplyInput, Ti as AwaitApprovalDecision, Ui as RecoveryDecision, Vi as PendingApprovalEvidence, Wi as RecoveryEvidence, Xi as RepairSubagentStartLink, Yi as RepairReadiness, Zi as ResumeFromTurnBoundary, ea as ResumeWaitingParent, ia as classifyRecovery, ji as CompleteChildAdmission, ki as AwaitParentEstablishment, na as SettleAborted, qi as RepairInputMarker, ra as SettleJoinedWithHost, ta as RevertJoining, wi as ApplyUnknownResolutions, xi as AppendReservedSettlement, zi as OpenDelegationCallEvidence } from "../Records-4qnRmniE.mjs";
1
+ import { $i as RepairInputMarker, Ai as ApplyUnknownResolutions, Bi as DelegationAdmissionEvidence, Di as AppendReservedSettlement, Fi as AwaitParentEstablishment, Gi as OpenDelegationCallEvidence, Hi as FinalizeLedgerFromHistory, Ii as AwaitUnknownResolution, Ji as PropagateChildAbort, Ki as OpenToolCallEvidence, Li as CompleteChildAdmission, Mi as AwaitChildAdmissionResolution, Ni as AwaitChildSettlement, Oi as ApplyInput, Pi as AwaitHostSettlement, Qi as ReleaseOrphanChildReservation, Ri as CompleteMaterialization, Ui as MarkUnknown, Vi as EnsureWaitingForChild, Wi as NoAction, Xi as RecoveryEvidence, Yi as RecoveryDecision, aa as ResumeSuspended, ca as SettleAborted, ea as RepairJoinMarker, ia as ResumePendingToolBatch, ji as AwaitApprovalDecision, ki as ApplyJoinAccounting, la as SettleJoinedWithHost, na as RepairSubagentStartLink, oa as ResumeWaitingParent, qi as PendingApprovalEvidence, ra as ResumeFromTurnBoundary, sa as RevertJoining, ta as RepairReadiness, ua as classifyRecovery, zi as DeclaredPendingBatchEvidence } from "../Records-BtxMy8xD.mjs";
2
2
  export { AppendReservedSettlement, ApplyInput, ApplyJoinAccounting, ApplyUnknownResolutions, AwaitApprovalDecision, AwaitChildAdmissionResolution, AwaitChildSettlement, AwaitHostSettlement, AwaitParentEstablishment, AwaitUnknownResolution, CompleteChildAdmission, CompleteMaterialization, DeclaredPendingBatchEvidence, DelegationAdmissionEvidence, EnsureWaitingForChild, FinalizeLedgerFromHistory, MarkUnknown, NoAction, OpenDelegationCallEvidence, OpenToolCallEvidence, PendingApprovalEvidence, PropagateChildAbort, RecoveryDecision, RecoveryEvidence, ReleaseOrphanChildReservation, RepairInputMarker, RepairJoinMarker, RepairReadiness, RepairSubagentStartLink, ResumeFromTurnBoundary, ResumePendingToolBatch, ResumeSuspended, ResumeWaitingParent, RevertJoining, SettleAborted, SettleJoinedWithHost, classifyRecovery };
@@ -1,2 +1,2 @@
1
- import { $n as runDurationRecordId, An as RunJournalError, Ar as workerInputRecordId, Bn as compactionRecordId, Cr as turnCanonicalBatch, Dr as turnResponseBatchId, Er as turnResponseBatch, Fn as agentUpdateRecordId, Gn as modelResponseRecordId, Hn as markUnknownBatchId, In as approvalDecisionBatchId, Jn as projectRunJournalStream, Kn as peerMessageRecordId, Ln as childIdempotencyKeyFor, Mn as RunJournalUsage, Mr as workerReportRecordId, Or as turnResultsBatch, Pn as TurnCommitInput, Qn as runDurationBatchId, Rn as childThreadIdFor, Sr as turnBatchId, Tr as turnPreparedBatchId, Un as modelResponseInterruptedBatchId, Vn as firstWorkerInputRecordId, Wn as modelResponseInterruptedRecordId, Xn as runCompletedRecordId, Yn as promptFromCanonicalRecords, Zn as runCompletionDigest, _r as toolCallSettledRecordId, ar as subagentLineageBatchId, br as toolStepSettledRecordId, cr as subagentRequestedRecordId, dr as toolApprovalDecisionRecordId, er as runIdForSubmission, fr as toolApprovalRequestRecordId, gr as toolCallResultBatchId, hr as toolCallResolvedRecordId, ir as subagentJoinedRecordId, jn as RunJournalProjection, jr as workerOriginRecordId, kn as JournalBoundary, kr as turnResultsBatchId, lr as subagentStartedBatchId, mr as toolCallResolutionBatchId, nr as runStartedRecordId, or as subagentLineageRecordId, pr as toolCallPreparedRecordId, qn as projectRunJournal, rr as subagentJoinBatchId, sr as subagentRequestedBatchId, tr as runStartedBatchId, ur as subagentStartedRecordId, vr as toolCallUnknownRecordId, wr as turnIdForRun, xr as turnApprovalsBatchId, yr as toolStepSettledBatchId, zn as compactionBatchId } from "../Records-4qnRmniE.mjs";
1
+ import { $n as projectRunJournal, Ar as turnIdForRun, Bn as TurnCommitInput, Cr as toolCallSettledRecordId, Dr as turnApprovalsBatchId, Er as toolStepSettledRecordId, Fn as JournalBoundary, Fr as turnResultsBatchId, Gn as compactionBatchId, Hn as approvalDecisionBatchId, In as RunJournalError, Ir as workerInputRecordId, Jn as markUnknownBatchId, Kn as compactionRecordId, Ln as RunJournalProjection, Lr as workerOriginRecordId, Mr as turnResponseBatch, Nr as turnResponseBatchId, Or as turnBatchId, Pr as turnResultsBatch, Qn as peerMessageRecordId, Rn as RunJournalUsage, Rr as workerReportRecordId, Sr as toolCallResultBatchId, Tr as toolStepSettledBatchId, Un as childIdempotencyKeyFor, Vn as agentUpdateRecordId, Wn as childThreadIdFor, Xn as modelResponseInterruptedRecordId, Yn as modelResponseInterruptedBatchId, Zn as modelResponseRecordId, _r as toolApprovalDecisionRecordId, ar as runDurationRecordId, br as toolCallResolutionBatchId, cr as runStartedRecordId, dr as subagentLineageBatchId, er as projectRunJournalStream, fr as subagentLineageRecordId, gr as subagentStartedRecordId, hr as subagentStartedBatchId, ir as runDurationBatchId, jr as turnPreparedBatchId, kr as turnCanonicalBatch, lr as subagentJoinBatchId, mr as subagentRequestedRecordId, nr as runCompletedRecordId, or as runIdForSubmission, pr as subagentRequestedBatchId, qn as firstWorkerInputRecordId, rr as runCompletionDigest, sr as runStartedBatchId, tr as promptFromCanonicalRecords, ur as subagentJoinedRecordId, vr as toolApprovalRequestRecordId, wr as toolCallUnknownRecordId, xr as toolCallResolvedRecordId, yr as toolCallPreparedRecordId } from "../Records-BtxMy8xD.mjs";
2
2
  export { JournalBoundary, RunJournalError, RunJournalProjection, RunJournalUsage, TurnCommitInput, agentUpdateRecordId, approvalDecisionBatchId, childIdempotencyKeyFor, childThreadIdFor, compactionBatchId, compactionRecordId, firstWorkerInputRecordId, markUnknownBatchId, modelResponseInterruptedBatchId, modelResponseInterruptedRecordId, modelResponseRecordId, peerMessageRecordId, projectRunJournal, projectRunJournalStream, promptFromCanonicalRecords, runCompletedRecordId, runCompletionDigest, runDurationBatchId, runDurationRecordId, runIdForSubmission, runStartedBatchId, runStartedRecordId, subagentJoinBatchId, subagentJoinedRecordId, subagentLineageBatchId, subagentLineageRecordId, subagentRequestedBatchId, subagentRequestedRecordId, subagentStartedBatchId, subagentStartedRecordId, toolApprovalDecisionRecordId, toolApprovalRequestRecordId, toolCallPreparedRecordId, toolCallResolutionBatchId, toolCallResolvedRecordId, toolCallResultBatchId, toolCallSettledRecordId, toolCallUnknownRecordId, toolStepSettledBatchId, toolStepSettledRecordId, turnApprovalsBatchId, turnBatchId, turnCanonicalBatch, turnIdForRun, turnPreparedBatchId, turnResponseBatch, turnResponseBatchId, turnResultsBatch, turnResultsBatchId, workerInputRecordId, workerOriginRecordId, workerReportRecordId };
@@ -1,2 +1,2 @@
1
- import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, E as ScheduleRetryReason, F as ScheduleTimingRequest, G as defaultSchedulingLimits, H as ScheduledInputRefused, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, O as ScheduleSkippedRange, P as ScheduleTiming, S as SchedulePending, T as ScheduleRetry, U as ScheduledInputRetryable, V as ScheduledInputFailure, W as SchedulingLimits, _ as ScheduleNotFound, a as ScheduleChange, b as SchedulePage, c as ScheduleDestination, d as ScheduleFailpointError, f as ScheduleId, g as ScheduleManagementOperation, h as ScheduleManagementAuthorization, i as ScheduleCapacityError, j as ScheduleStorageError, k as ScheduleSnapshot, l as ScheduleDueCursor, m as ScheduleKey, n as ScheduleAuthorizationError, o as ScheduleConfiguration, p as ScheduleInstant, r as ScheduleAuthorizer, s as ScheduleConflict, t as ScheduleAuthorizationDecision, u as ScheduleFailpoint, v as ScheduleOccurrenceAuthorization, w as ScheduleRefusal, x as SchedulePageRequest, y as ScheduleOwner, z as ScheduledEnvelope } from "../Schedule-C2lH2kxY.mjs";
1
+ import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, E as ScheduleRetryReason, F as ScheduleTimingRequest, G as defaultSchedulingLimits, H as ScheduledInputRefused, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, O as ScheduleSkippedRange, P as ScheduleTiming, S as SchedulePending, T as ScheduleRetry, U as ScheduledInputRetryable, V as ScheduledInputFailure, W as SchedulingLimits, _ as ScheduleNotFound, a as ScheduleChange, b as SchedulePage, c as ScheduleDestination, d as ScheduleFailpointError, f as ScheduleId, g as ScheduleManagementOperation, h as ScheduleManagementAuthorization, i as ScheduleCapacityError, j as ScheduleStorageError, k as ScheduleSnapshot, l as ScheduleDueCursor, m as ScheduleKey, n as ScheduleAuthorizationError, o as ScheduleConfiguration, p as ScheduleInstant, r as ScheduleAuthorizer, s as ScheduleConflict, t as ScheduleAuthorizationDecision, u as ScheduleFailpoint, v as ScheduleOccurrenceAuthorization, w as ScheduleRefusal, x as SchedulePageRequest, y as ScheduleOwner, z as ScheduledEnvelope } from "../Schedule-DGPyXBzK.mjs";
2
2
  export { ScheduleAuthorizationDecision, ScheduleAuthorizationError, ScheduleAuthorizer, ScheduleCapacityError, ScheduleChange, ScheduleConfiguration, ScheduleConflict, ScheduleDestination, ScheduleDueCursor, ScheduleFailpoint, ScheduleFailpointError, ScheduleId, ScheduleInstant, ScheduleKey, ScheduleManagementAuthorization, ScheduleManagementOperation, ScheduleNotFound, ScheduleOccurrenceAuthorization, ScheduleOwner, SchedulePage, SchedulePageRequest, SchedulePending, ScheduleRecord, ScheduleRefusal, ScheduleRetry, ScheduleRetryReason, ScheduleScope, ScheduleSkippedRange, ScheduleSnapshot, ScheduleSnapshotPage, ScheduleStorageError, ScheduleStore, ScheduleStoreFailure, ScheduleTiming, ScheduleTimingRequest, ScheduleValidationError, ScheduleWake, ScheduledEnvelope, ScheduledInputAdmission, ScheduledInputFailure, ScheduledInputRefused, ScheduledInputRetryable, SchedulingLimits, defaultSchedulingLimits };
@@ -1,4 +1,4 @@
1
- import { M as ScheduleStore, N as ScheduleStoreFailure } from "../Schedule-C2lH2kxY.mjs";
1
+ import { M as ScheduleStore, N as ScheduleStoreFailure } from "../Schedule-DGPyXBzK.mjs";
2
2
  import { Effect, Schema } from "effect";
3
3
  //#region src/durable/ScheduleStoreConformance.d.ts
4
4
  declare const ScheduleStoreConformanceViolation_base: Schema.Class<ScheduleStoreConformanceViolation, Schema.TaggedStruct<"ScheduleStoreConformanceViolation", {
@@ -1,4 +1,4 @@
1
- import { C as ScheduleRecord, a as ScheduleChange, m as ScheduleKey, s as ScheduleConflict, y as ScheduleOwner } from "../Schedule-C2lH2kxY.mjs";
1
+ import { C as ScheduleRecord, a as ScheduleChange, m as ScheduleKey, s as ScheduleConflict, y as ScheduleOwner } from "../Schedule-DGPyXBzK.mjs";
2
2
  import { Result } from "effect";
3
3
  declare namespace ScheduleTransition_d_exports {
4
4
  export { applyScheduleChange, compareScheduleKeys, compareScheduleNames, scheduleDeadline, scheduleKeyOf, scheduleKeyString, scheduleOwnerKey, scheduleUsesCapacity };
@@ -1,6 +1,6 @@
1
1
  import { r as Principal } from "../Receipt-BAHyigAF.mjs";
2
- import { At as DurableSubmitAgent, h as DefinitionDigests, ua as AdmissionFence } from "../Records-4qnRmniE.mjs";
3
- import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, F as ScheduleTimingRequest, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, W as SchedulingLimits, c as ScheduleDestination, f as ScheduleId, j as ScheduleStorageError, k as ScheduleSnapshot, m as ScheduleKey, n as ScheduleAuthorizationError, r as ScheduleAuthorizer, y as ScheduleOwner } from "../Schedule-C2lH2kxY.mjs";
2
+ import { At as DurableSubmitAgent, ga as AdmissionFence, h as DefinitionDigests } from "../Records-BtxMy8xD.mjs";
3
+ import { A as ScheduleSnapshotPage, B as ScheduledInputAdmission, C as ScheduleRecord, D as ScheduleScope, F as ScheduleTimingRequest, I as ScheduleValidationError, L as ScheduleWake, M as ScheduleStore, N as ScheduleStoreFailure, W as SchedulingLimits, c as ScheduleDestination, f as ScheduleId, j as ScheduleStorageError, k as ScheduleSnapshot, m as ScheduleKey, n as ScheduleAuthorizationError, r as ScheduleAuthorizer, y as ScheduleOwner } from "../Schedule-DGPyXBzK.mjs";
4
4
  import { Context, Crypto, Effect, Layer, Schema } from "effect";
5
5
  declare namespace Scheduling_d_exports {
6
6
  export { ScheduleCreateOptions, ScheduleDriver, ScheduleListOptions, ScheduleManagementFailure, ScheduleProcessFailure, ScheduleUpdateOptions, ScheduleWakeNoop, Scheduling };
@@ -1,5 +1,5 @@
1
- import { d as ScheduleFailpointError } from "../Schedule-C2lH2kxY.mjs";
2
- import { g as SubscriptionFailpointError } from "../Subscription-pQUv0QD6.mjs";
1
+ import { d as ScheduleFailpointError } from "../Schedule-DGPyXBzK.mjs";
2
+ import { g as SubscriptionFailpointError } from "../Subscription-B9VszlF9.mjs";
3
3
  import { Effect, Schema } from "effect";
4
4
  import * as SqlClient from "effect/unstable/sql/SqlClient";
5
5
  //#region src/durable/SqlStorageV2Upgrade.d.ts
@@ -1,5 +1,5 @@
1
- import { _ as Digest } from "../Records-4qnRmniE.mjs";
2
- import { C as SubscriptionScanCursors, O as SubscriptionStoreFailure, S as SubscriptionRetentionPolicy, _ as SubscriptionKey, b as SubscriptionRecord, d as SubscriptionDelivery, f as SubscriptionDeliveryKey, g as SubscriptionFailpointError, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, t as AcceptedEvent, v as SubscriptionLimits } from "../Subscription-pQUv0QD6.mjs";
1
+ import { _ as Digest } from "../Records-BtxMy8xD.mjs";
2
+ import { C as SubscriptionScanCursors, O as SubscriptionStoreFailure, S as SubscriptionRetentionPolicy, _ as SubscriptionKey, b as SubscriptionRecord, d as SubscriptionDelivery, f as SubscriptionDeliveryKey, g as SubscriptionFailpointError, l as SubscriptionChange, m as SubscriptionError, n as DeliveryChange, o as SourcePartition, t as AcceptedEvent, v as SubscriptionLimits } from "../Subscription-B9VszlF9.mjs";
3
3
  import { Context, Effect } from "effect";
4
4
  import * as SqlClientService from "effect/unstable/sql/SqlClient";
5
5
  //#region src/durable/SqlSubscriptionStore.d.ts
@@ -1,4 +1,4 @@
1
- import { hn as ThreadStoreError, j as RecordEnvelope, l as CanonicalRecordEnvelope, rn as ThreadNotMaterialized, sn as ThreadPeerCountRequest } from "../Records-4qnRmniE.mjs";
1
+ import { cn as ThreadNotMaterialized, fn as ThreadPeerCountRequest, j as RecordEnvelope, l as CanonicalRecordEnvelope, xn as ThreadStoreError } from "../Records-BtxMy8xD.mjs";
2
2
  import { Effect, Schema } from "effect";
3
3
  import * as SqlClient from "effect/unstable/sql/SqlClient";
4
4
  declare namespace SqlThreadNativeReads_d_exports {
@@ -1,3 +1,3 @@
1
1
  import { i as QueueSequence, n as JoinedToHost, r as Principal, t as IdempotencyKey } from "../Receipt-BAHyigAF.mjs";
2
- import { $a as ReleaseOwnershipRequest, Aa as ChildSettledNotification, Ao as WaitingChild, Ba as LedgerError, Ca as BeginChildBudgetReleaseRequest, Co as SuspensionOutcome, Da as ChildReservationConflict, Do as UnknownResolutionCommand, Ea as ChildBudgetReservationSnapshot, Eo as UnknownResolution, Fa as DEFAULT_OWNERSHIP_LEASE_DURATION, Fo as submissionInputBatchId, Ga as OwnershipLost, Ha as MarkJoinedRequest, Ia as InputAppliedMarker, Io as submissionInputRecordId, Ja as OwnershipToken, Ka as OwnershipRenewal, La as JoinSnapshot, Lo as submissionSettlementBatchId, Ma as Claim, Mo as settlementFailureFromRecord, Na as ClaimJoiningRequest, No as submissionAbortBatchId, Oa as ChildReservationId, Oo as UnknownResolutionConflict, Pa as ClaimRequest, Po as submissionAbortRecordId, Qa as ReleaseChildBudgetRequest, Ra as JoiningClaim, Ro as submissionSettlementId, Sa as AttachChildToReservationRequest, So as SuspendRequest, Ta as ChildBudgetReservationRequest, To as SuspensionSnapshot, Ua as MarkReadyRequest, Va as MarkInputAppliedRequest, Wa as MarkUnknownRequest, Xa as RecoverySnapshot, Ya as ParentLinkage, Za as RecoverySnapshotRequest, _a as AdmissionResult, _o as SubmissionLookup, aa as AbortCommand, ao as ResolutionNeverHappened, ba as ApprovalDecisionIntent, bo as SubmissionSnapshot, ca as AdmissionAdmitted, co as Settlement, da as AdmissionGroup, do as SettlementReservation, eo as RenewOwnershipRequest, fa as AdmissionIndeterminate, fo as SettlementReservationSnapshot, ga as AdmissionResolution, ha as AdmissionRequest, ho as SubmissionLedgerFailure, io as ResolutionCompletedWithResult, ja as ChildSettledOutcome, jo as WaitingForChildSuspension, ka as ChildReservationStatus, ko as UnknownResolutionIntent, la as AdmissionConflict, lo as SettlementConflict, ma as AdmissionPolicyError, mo as SubmissionLedger, no as ReservedSettlement, oa as AbortIntent, oo as ResolutionSafeToRetry, pa as AdmissionNotAdmitted, po as SubmissionAdmissionFence, qa as OwnershipSnapshot, ro as ResolutionAbortSubmission, sa as AbortIntentRequest, so as RevertJoiningRequest, to as ReservedChildBudget, ua as AdmissionFence, uo as SettlementFinalization, va as ApprovalConflict, vo as SubmissionLookupById, wa as ChildAttachmentSnapshot, wo as SuspensionReason, xa as ApprovalPendingSuspension, xo as SubmissionState, ya as ApprovalDecisionCommand, yo as SubmissionLookupByKey, za as LedgerCapabilities, zo as submissionSettlementRecordId } from "../Records-4qnRmniE.mjs";
3
- export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimJoiningRequest, ClaimRequest, DEFAULT_OWNERSHIP_LEASE_DURATION, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipRenewal, OwnershipSnapshot, OwnershipToken, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ReservedChildBudget, ReservedSettlement, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SettlementReservation, SettlementReservationSnapshot, SubmissionAdmissionFence, SubmissionLedger, SubmissionLedgerFailure, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionSnapshot, SubmissionState, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WaitingChild, WaitingForChildSuspension, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId };
2
+ import { $a as OwnershipSnapshot, Aa as ChildAttachmentSnapshot, Ao as SuspensionOutcome, Ba as ClaimRequest, Bo as submissionAbortBatchId, Ca as AdmissionResult, Co as SubmissionLookup, Da as ApprovalPendingSuspension, Do as SubmissionState, Ea as ApprovalDecisionIntent, Eo as SubmissionSnapshot, Fa as ChildReservationStatus, Fo as UnknownResolutionConflict, Ga as LedgerCapabilities, Go as submissionSettlementId, Ha as InputAppliedMarker, Ho as submissionInputBatchId, Ia as ChildSettledNotification, Io as UnknownResolutionIntent, Ja as MarkJoinedRequest, Ka as LedgerError, Ko as submissionSettlementRecordId, La as ChildSettledOutcome, Lo as WaitingChild, Ma as ChildBudgetReservationSnapshot, Mo as SuspensionSnapshot, Na as ChildReservationConflict, No as UnknownResolution, Oa as AttachChildToReservationRequest, Oo as SubmissionWorkItem, Pa as ChildReservationId, Po as UnknownResolutionCommand, Qa as OwnershipRenewal, Ra as Claim, Ro as WaitingForChildSuspension, Sa as AdmissionResolution, Ta as ApprovalDecisionCommand, To as SubmissionLookupByKey, Ua as JoinSnapshot, Uo as submissionInputRecordId, Va as DEFAULT_OWNERSHIP_LEASE_DURATION, Vo as submissionAbortRecordId, Wa as JoiningClaim, Wo as submissionSettlementBatchId, Xa as MarkUnknownRequest, Ya as MarkReadyRequest, Za as OwnershipLost, _a as AdmissionGroup, _o as SettlementReservation, ao as ReleaseOwnershipRequest, ba as AdmissionPolicyError, bo as SubmissionLedger, co as ReservedSettlement, da as AbortCommand, do as ResolutionNeverHappened, eo as OwnershipToken, fa as AbortIntent, fo as ResolutionSafeToRetry, ga as AdmissionFence, go as SettlementFinalization, ha as AdmissionConflict, ho as SettlementConflict, io as ReleaseChildBudgetRequest, ja as ChildBudgetReservationRequest, jo as SuspensionReason, ka as BeginChildBudgetReleaseRequest, ko as SuspendRequest, lo as ResolutionAbortSubmission, ma as AdmissionAdmitted, mo as Settlement, no as RecoverySnapshot, oo as RenewOwnershipRequest, pa as AbortIntentRequest, po as RevertJoiningRequest, qa as MarkInputAppliedRequest, ro as RecoverySnapshotRequest, so as ReservedChildBudget, to as ParentLinkage, uo as ResolutionCompletedWithResult, va as AdmissionIndeterminate, vo as SettlementReservationSnapshot, wa as ApprovalConflict, wo as SubmissionLookupById, xa as AdmissionRequest, xo as SubmissionLedgerFailure, ya as AdmissionNotAdmitted, yo as SubmissionAdmissionFence, za as ClaimJoiningRequest, zo as settlementFailureFromRecord } from "../Records-BtxMy8xD.mjs";
3
+ export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimJoiningRequest, ClaimRequest, DEFAULT_OWNERSHIP_LEASE_DURATION, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipRenewal, OwnershipSnapshot, OwnershipToken, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ReservedChildBudget, ReservedSettlement, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SettlementReservation, SettlementReservationSnapshot, SubmissionAdmissionFence, SubmissionLedger, SubmissionLedgerFailure, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionSnapshot, SubmissionState, SubmissionWorkItem, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WaitingChild, WaitingForChildSuspension, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId };
@@ -81,6 +81,7 @@ var SubmissionLedger_exports = /* @__PURE__ */ __exportAll({
81
81
  SubmissionLookupByKey: () => SubmissionLookupByKey,
82
82
  SubmissionSnapshot: () => SubmissionSnapshot,
83
83
  SubmissionState: () => SubmissionState,
84
+ SubmissionWorkItem: () => SubmissionWorkItem,
84
85
  SuspendRequest: () => SuspendRequest,
85
86
  SuspensionOutcome: () => SuspensionOutcome,
86
87
  SuspensionReason: () => SuspensionReason,
@@ -228,20 +229,28 @@ var SubmissionLookupByKey = class extends Schema.TaggedClass("@effect-agent/thre
228
229
  }) {};
229
230
  /** Lookup by Submission identity or by the scoped client idempotency key. */
230
231
  const SubmissionLookup = Schema.Union([SubmissionLookupById, SubmissionLookupByKey]);
231
- /** The full durable ledger view of one Submission. */
232
- var SubmissionSnapshot = class extends Schema.Class("@effect-agent/thread/SubmissionSnapshot")({
232
+ /**
233
+ * Control-only worklist entry. Discovery validates identities, ordering and state without
234
+ * decoding retained execution payloads. Hydrate only the selected Thread through `lookup`
235
+ * or `loadRecoverySnapshot`, inside its recovery failure boundary.
236
+ */
237
+ var SubmissionWorkItem = class extends Schema.Class("@effect-agent/thread/SubmissionWorkItem")({
233
238
  submissionId: SubmissionId,
234
239
  threadId: ThreadId,
235
240
  queueSequence: QueueSequence,
236
241
  principal: Principal,
237
242
  idempotencyKey: IdempotencyKey,
243
+ deploymentId: DeploymentId,
244
+ receiptId: ReceiptId,
245
+ state: SubmissionState
246
+ }) {};
247
+ /** The full durable ledger view of one Submission. */
248
+ var SubmissionSnapshot = class extends Schema.Class("@effect-agent/thread/SubmissionSnapshot")({
249
+ ...SubmissionWorkItem.fields,
238
250
  agentId: AgentId,
239
251
  agentDigests: DefinitionDigests,
240
- deploymentId: DeploymentId,
241
252
  inputPayload: PersistedJson,
242
253
  inputDigest: Digest,
243
- receiptId: ReceiptId,
244
- state: SubmissionState,
245
254
  settledOutcome: Schema.optionalKey(SettlementOutcome),
246
255
  createdAt: Schema.DateTimeUtcFromString,
247
256
  readyAt: Schema.optionalKey(Schema.DateTimeUtcFromString),
@@ -869,8 +878,10 @@ var LedgerError = class extends Schema.TaggedError()("LedgerError", {
869
878
  * divergent re-resolution fails with `UnknownResolutionConflict`. Transitions
870
879
  * `unknown → input-applied` once no open call remains, waking the lane. Fails with
871
880
  * `SettlementConflict` once settled.
872
- * - `scanNonterminal` — streams every Submission whose state is not `settled`, ordered by
873
- * (threadId, queueSequence); recovery's admission-independent worklist (DUR-014).
881
+ * - `scanNonterminal` — streams control-only entries for every Submission whose state is not
882
+ * `settled`, ordered by (threadId, queueSequence); recovery's admission-independent worklist
883
+ * (DUR-014). It must not decode execution payloads. SQL or control-identity corruption fails
884
+ * the scan; selected-Thread payload hydration belongs inside the caller's isolation boundary.
874
885
  * - `loadRecoverySnapshot` — strongly consistent full snapshot for the pure recovery classifier.
875
886
  *
876
887
  * No operation claims exactly-once external side effects; the ledger records decisions
@@ -913,6 +924,6 @@ const SubmissionAdmissionFence = Context.Reference("@effect-agent/thread/Submiss
913
924
  code: "unsupported-policy"
914
925
  }) }) });
915
926
  //#endregion
916
- export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimJoiningRequest, ClaimRequest, DEFAULT_OWNERSHIP_LEASE_DURATION, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipRenewal, OwnershipSnapshot, OwnershipToken, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ReservedChildBudget, ReservedSettlement, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SettlementReservation, SettlementReservationSnapshot, SubmissionAdmissionFence, SubmissionLedger, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionSnapshot, SubmissionState, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WaitingChild, WaitingForChildSuspension, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId, SubmissionLedger_exports as t };
927
+ export { AbortCommand, AbortIntent, AbortIntentRequest, AdmissionAdmitted, AdmissionConflict, AdmissionFence, AdmissionGroup, AdmissionIndeterminate, AdmissionNotAdmitted, AdmissionPolicyError, AdmissionRequest, AdmissionResolution, AdmissionResult, ApprovalConflict, ApprovalDecisionCommand, ApprovalDecisionIntent, ApprovalPendingSuspension, AttachChildToReservationRequest, BeginChildBudgetReleaseRequest, ChildAttachmentSnapshot, ChildBudgetReservationRequest, ChildBudgetReservationSnapshot, ChildReservationConflict, ChildReservationId, ChildReservationStatus, ChildSettledNotification, ChildSettledOutcome, Claim, ClaimJoiningRequest, ClaimRequest, DEFAULT_OWNERSHIP_LEASE_DURATION, IdempotencyKey, InputAppliedMarker, JoinSnapshot, JoinedToHost, JoiningClaim, LedgerCapabilities, LedgerError, MarkInputAppliedRequest, MarkJoinedRequest, MarkReadyRequest, MarkUnknownRequest, OwnershipLost, OwnershipRenewal, OwnershipSnapshot, OwnershipToken, ParentLinkage, Principal, QueueSequence, RecoverySnapshot, RecoverySnapshotRequest, ReleaseChildBudgetRequest, ReleaseOwnershipRequest, RenewOwnershipRequest, ReservedChildBudget, ReservedSettlement, ResolutionAbortSubmission, ResolutionCompletedWithResult, ResolutionNeverHappened, ResolutionSafeToRetry, RevertJoiningRequest, Settlement, SettlementConflict, SettlementFinalization, SettlementReservation, SettlementReservationSnapshot, SubmissionAdmissionFence, SubmissionLedger, SubmissionLookup, SubmissionLookupById, SubmissionLookupByKey, SubmissionSnapshot, SubmissionState, SubmissionWorkItem, SuspendRequest, SuspensionOutcome, SuspensionReason, SuspensionSnapshot, UnknownResolution, UnknownResolutionCommand, UnknownResolutionConflict, UnknownResolutionIntent, WaitingChild, WaitingForChildSuspension, settlementFailureFromRecord, submissionAbortBatchId, submissionAbortRecordId, submissionInputBatchId, submissionInputRecordId, submissionSettlementBatchId, submissionSettlementId, submissionSettlementRecordId, SubmissionLedger_exports as t };
917
928
 
918
929
  //# sourceMappingURL=SubmissionLedger.mjs.map