phronomy 0.37.0 → 0.38.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 (211) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +87 -0
  3. data/README.md +24 -2
  4. data/SECURITY.md +1 -1
  5. data/docs/architecture/agent-approval-recovery.md +320 -0
  6. data/docs/architecture/agent-child-approval-recovery.md +387 -0
  7. data/docs/architecture/agent-child-execution-recovery.md +425 -0
  8. data/docs/architecture/agent-dispatch-recovery.md +308 -0
  9. data/docs/architecture/agent-terminal-persistence-evidence.md +360 -0
  10. data/docs/architecture/agent-terminal-recovery.md +298 -0
  11. data/docs/architecture/agent-terminal-submission-recovery.md +275 -0
  12. data/docs/architecture/agent-tool-child-lifetime.md +29 -0
  13. data/docs/architecture/agent-transition-ownership.md +24 -0
  14. data/docs/architecture/backend-groups.md +6 -0
  15. data/docs/architecture/detached-outcome-proof-projection.md +576 -0
  16. data/docs/architecture/execution-abstraction-review.md +5 -0
  17. data/docs/architecture/handoff-dispatch-recovery.md +205 -0
  18. data/docs/architecture/handoff-initial-terminal-application.md +321 -0
  19. data/docs/architecture/initial-preparation-recovery.md +308 -0
  20. data/docs/architecture/multi-agent-handoff.md +17 -0
  21. data/docs/architecture/native-outcome-preparation.md +715 -0
  22. data/docs/architecture/native-parent-dispatch-recovery.md +460 -0
  23. data/docs/architecture/native-parent-outcome-recovery.md +644 -0
  24. data/docs/architecture/parent-child-terminal-acknowledgement.md +297 -0
  25. data/docs/architecture/r8-unit12.md +6 -3
  26. data/docs/architecture/r8-unit4.md +11 -2
  27. data/docs/architecture/recovery-physical-attempt.md +88 -0
  28. data/docs/architecture/recovery-submission-custody.md +247 -0
  29. data/docs/architecture/retained-attempts.md +229 -0
  30. data/docs/architecture/retained-outcome-materialization.md +636 -0
  31. data/docs/architecture/retained-outcome-publication.md +506 -0
  32. data/docs/architecture/storage-execution-boundaries.md +1 -1
  33. data/docs/architecture/structured-output-and-scope.md +15 -0
  34. data/docs/architecture/synchronous-participant-application.md +397 -0
  35. data/docs/architecture/synchronous-participant-contract.md +195 -0
  36. data/docs/architecture/team-admission-rejection.md +91 -0
  37. data/docs/architecture/team-cancellation-delivery.md +245 -0
  38. data/docs/architecture/team-child-retirement.md +104 -0
  39. data/docs/architecture/tracing.md +26 -0
  40. data/docs/architecture/workflow-terminal-ownership-design.md +25 -9
  41. data/docs/architecture/workflow-terminal-reconciliation.md +221 -0
  42. data/docs/architecture.md +16 -9
  43. data/docs/decisions/025-process-local-agent-ownership-and-runtime-admission.md +8 -0
  44. data/docs/features.md +3 -3
  45. data/docs/mcp-client.md +138 -5
  46. data/docs/migrations/orchestrator-subagent-dispatch.md +89 -0
  47. data/docs/migrations/vector-async-clients.md +18 -3
  48. data/docs/persistence-backends.md +30 -4
  49. data/docs/runtime-and-concurrency.md +235 -11
  50. data/lib/phronomy/agent/admission.rb +37 -17
  51. data/lib/phronomy/agent/api/agent.rb +25 -0
  52. data/lib/phronomy/agent/approval_recovery.rb +30 -0
  53. data/lib/phronomy/agent/approval_recovery_api.rb +61 -0
  54. data/lib/phronomy/agent/approval_recovery_error.rb +39 -0
  55. data/lib/phronomy/agent/approval_recovery_result.rb +94 -0
  56. data/lib/phronomy/agent/async_event_api.rb +22 -5
  57. data/lib/phronomy/agent/base.rb +76 -48
  58. data/lib/phronomy/agent/context_preparation.rb +10 -8
  59. data/lib/phronomy/agent/dispatch_recovery.rb +29 -0
  60. data/lib/phronomy/agent/dispatch_recovery_api.rb +84 -0
  61. data/lib/phronomy/agent/dispatch_recovery_error.rb +36 -0
  62. data/lib/phronomy/agent/dispatch_recovery_result.rb +93 -0
  63. data/lib/phronomy/agent/execution/agent_invocation.rb +11 -3
  64. data/lib/phronomy/agent/execution/approval_continuation_plan.rb +131 -0
  65. data/lib/phronomy/agent/execution/approval_parent_evidence.rb +116 -0
  66. data/lib/phronomy/agent/execution/approval_persistence_evidence.rb +111 -0
  67. data/lib/phronomy/agent/execution/approval_recovery_operation.rb +496 -0
  68. data/lib/phronomy/agent/execution/approval_resume_commit.rb +174 -10
  69. data/lib/phronomy/agent/execution/dispatch_continuation_delivery.rb +96 -0
  70. data/lib/phronomy/agent/execution/dispatch_persistence_evidence.rb +147 -0
  71. data/lib/phronomy/agent/execution/dispatch_preparation.rb +63 -7
  72. data/lib/phronomy/agent/execution/dispatch_recovery_operation.rb +495 -0
  73. data/lib/phronomy/agent/execution/execution_coordinator.rb +724 -158
  74. data/lib/phronomy/agent/execution/execution_outcome_committer.rb +312 -39
  75. data/lib/phronomy/agent/execution/execution_registry.rb +508 -13
  76. data/lib/phronomy/agent/execution/initial_persistence_evidence.rb +269 -0
  77. data/lib/phronomy/agent/execution/initial_preparation.rb +132 -40
  78. data/lib/phronomy/agent/execution/initial_preparation_recovery_operation.rb +513 -0
  79. data/lib/phronomy/agent/execution/invocation_transitions.rb +3 -0
  80. data/lib/phronomy/agent/execution/outcome_planning.rb +108 -0
  81. data/lib/phronomy/agent/execution/outcome_preparation.rb +81 -0
  82. data/lib/phronomy/agent/execution/outcome_recovery_operation.rb +609 -0
  83. data/lib/phronomy/agent/execution/outcome_text_projection.rb +73 -0
  84. data/lib/phronomy/agent/execution/outcome_write_plan.rb +48 -0
  85. data/lib/phronomy/agent/execution/runtime_record_encoder.rb +7 -4
  86. data/lib/phronomy/agent/execution/terminal_persistence_evidence.rb +280 -0
  87. data/lib/phronomy/agent/execution/terminal_recovery_operation.rb +38 -0
  88. data/lib/phronomy/agent/execution_change.rb +138 -26
  89. data/lib/phronomy/agent/execution_environment.rb +29 -0
  90. data/lib/phronomy/agent/execution_rejected_error.rb +34 -0
  91. data/lib/phronomy/agent/initial_preparation_recovery.rb +32 -0
  92. data/lib/phronomy/agent/initial_preparation_recovery_api.rb +85 -0
  93. data/lib/phronomy/agent/initial_preparation_recovery_error.rb +41 -0
  94. data/lib/phronomy/agent/initial_preparation_recovery_result.rb +115 -0
  95. data/lib/phronomy/agent/lifecycle/hosted_approval_context.rb +86 -0
  96. data/lib/phronomy/agent/lifecycle/hosted_invocation.rb +42 -10
  97. data/lib/phronomy/agent/lifecycle/identity_write.rb +101 -0
  98. data/lib/phronomy/agent/lifecycle/lifetime_api.rb +28 -0
  99. data/lib/phronomy/agent/lifecycle/ownership_registry.rb +136 -70
  100. data/lib/phronomy/agent/lifecycle/scope.rb +3 -3
  101. data/lib/phronomy/agent/outcome_recovery.rb +47 -0
  102. data/lib/phronomy/agent/outcome_recovery_api.rb +114 -0
  103. data/lib/phronomy/agent/outcome_recovery_error.rb +36 -0
  104. data/lib/phronomy/agent/outcome_recovery_result.rb +92 -0
  105. data/lib/phronomy/agent/output_contract.rb +16 -6
  106. data/lib/phronomy/agent/persistence/identity_receipt_repository.rb +61 -0
  107. data/lib/phronomy/agent/persistence/records.rb +2 -0
  108. data/lib/phronomy/agent/persistence/storage_schema.rb +2 -0
  109. data/lib/phronomy/agent/recovery/invocation_restorer.rb +8 -5
  110. data/lib/phronomy/agent/recovery/recovery_coordinator/continuation.rb +6 -4
  111. data/lib/phronomy/agent/recovery/recovery_coordinator/installation.rb +21 -43
  112. data/lib/phronomy/agent/recovery/recovery_coordinator.rb +19 -6
  113. data/lib/phronomy/agent/runtime_binding/engine_environment.rb +12 -0
  114. data/lib/phronomy/agent/state_writer.rb +4 -3
  115. data/lib/phronomy/agent/store.rb +7 -1
  116. data/lib/phronomy/agent/terminal_recovery.rb +41 -0
  117. data/lib/phronomy/agent/terminal_recovery_api.rb +101 -0
  118. data/lib/phronomy/agent/terminal_recovery_error.rb +36 -0
  119. data/lib/phronomy/agent/terminal_recovery_result.rb +67 -0
  120. data/lib/phronomy/agent/tool_execution/tool_approval_request.rb +25 -1
  121. data/lib/phronomy/common/values/serializable.rb +37 -4
  122. data/lib/phronomy/engine/concurrency/offload_pool.rb +32 -4
  123. data/lib/phronomy/engine/concurrency/pool_registry.rb +6 -0
  124. data/lib/phronomy/engine/event_loop.rb +161 -11
  125. data/lib/phronomy/engine/execution_binding.rb +4 -2
  126. data/lib/phronomy/engine/execution_receiver_binding.rb +5 -0
  127. data/lib/phronomy/engine/runtime/shutdown_result.rb +21 -0
  128. data/lib/phronomy/engine/runtime/timer_queue.rb +7 -2
  129. data/lib/phronomy/engine/runtime.rb +119 -15
  130. data/lib/phronomy/execution/attempt_completion.rb +91 -0
  131. data/lib/phronomy/execution/concurrency/cancellation_token.rb +7 -2
  132. data/lib/phronomy/execution/concurrency/physical_completion_task.rb +7 -2
  133. data/lib/phronomy/execution/execution.rb +17 -2
  134. data/lib/phronomy/execution/execution_receiver.rb +27 -0
  135. data/lib/phronomy/execution/execution_retirement.rb +30 -0
  136. data/lib/phronomy/execution/invocation_controls.rb +2 -2
  137. data/lib/phronomy/execution/retained_attempts.rb +179 -0
  138. data/lib/phronomy/execution/stopped_terminal_custody.rb +99 -0
  139. data/lib/phronomy/llm_adapter/response.rb +7 -1
  140. data/lib/phronomy/multi_agent/admission_registry.rb +6 -0
  141. data/lib/phronomy/multi_agent/durable_subagent_coordinator.rb +175 -39
  142. data/lib/phronomy/multi_agent/handoff_dispatch_evidence.rb +176 -0
  143. data/lib/phronomy/multi_agent/handoff_finalization_error.rb +33 -0
  144. data/lib/phronomy/multi_agent/handoff_history_release.rb +80 -0
  145. data/lib/phronomy/multi_agent/handoff_participant.rb +31 -6
  146. data/lib/phronomy/multi_agent/handoff_runner.rb +195 -21
  147. data/lib/phronomy/multi_agent/handoff_terminal_finalization.rb +176 -0
  148. data/lib/phronomy/multi_agent/native_approval_evidence.rb +26 -0
  149. data/lib/phronomy/multi_agent/native_child_authority.rb +135 -0
  150. data/lib/phronomy/multi_agent/native_dispatch_evidence.rb +43 -0
  151. data/lib/phronomy/multi_agent/native_outcome_evidence.rb +46 -0
  152. data/lib/phronomy/multi_agent/native_persistence_plan.rb +93 -0
  153. data/lib/phronomy/multi_agent/orchestrator.rb +28 -52
  154. data/lib/phronomy/multi_agent/reserved_child_admission.rb +90 -1
  155. data/lib/phronomy/multi_agent/store.rb +5 -34
  156. data/lib/phronomy/multi_agent/subagent_history_release.rb +88 -0
  157. data/lib/phronomy/multi_agent/team_cancellation_delivery_error.rb +21 -0
  158. data/lib/phronomy/multi_agent/team_cancellation_request.rb +134 -0
  159. data/lib/phronomy/multi_agent/team_coordinator.rb +174 -27
  160. data/lib/phronomy/persistence_composition/stores.rb +10 -3
  161. data/lib/phronomy/runtime_composition/execution_defaults.rb +18 -0
  162. data/lib/phronomy/storage/backends/in_memory.rb +3 -1
  163. data/lib/phronomy/storage/resource.rb +10 -1
  164. data/lib/phronomy/tools/agent.rb +7 -1
  165. data/lib/phronomy/tools/mcp.rb +210 -91
  166. data/lib/phronomy/tools/mcp_http_close_response.rb +23 -0
  167. data/lib/phronomy/tools/mcp_transport_registry.rb +210 -0
  168. data/lib/phronomy/tools/vector_search.rb +28 -5
  169. data/lib/phronomy/tracing/automatic.rb +8 -1
  170. data/lib/phronomy/version.rb +1 -1
  171. data/lib/phronomy/workflow/execution/workflow.rb +34 -0
  172. data/lib/phronomy/workflow/execution/workflow_execution_environment.rb +1 -0
  173. data/lib/phronomy/workflow/execution/workflow_execution_registry.rb +106 -7
  174. data/lib/phronomy/workflow/execution/workflow_runner.rb +53 -108
  175. data/lib/phronomy/workflow/execution/workflow_terminal_operation.rb +489 -0
  176. data/lib/phronomy/workflow/execution/workflow_terminal_persistence.rb +81 -0
  177. data/lib/phronomy/workflow/execution/workflow_terminal_recovery.rb +38 -0
  178. data/lib/phronomy/workflow/execution/workflow_terminal_recovery_error.rb +34 -0
  179. data/lib/phronomy/workflow/execution/workflow_terminal_recovery_result.rb +56 -0
  180. data/lib/phronomy/workflow/runtime_binding/workflow_engine_environment.rb +10 -1
  181. data/lib/phronomy/workflow/runtime_binding/workflow_task_session.rb +3 -1
  182. data/lib/phronomy/workflow/runtime_binding/workflow_terminal_policy.rb +2 -1
  183. data/scripts/api_snapshot.rb +46 -1
  184. data/sig/_private/phronomy/multi_agent/team_cancellation_request.rbs +19 -0
  185. data/sig/phronomy/agent/approval_recovery.rbs +54 -0
  186. data/sig/phronomy/agent/dispatch_recovery.rbs +49 -0
  187. data/sig/phronomy/agent/execution_contract.rbs +4 -1
  188. data/sig/phronomy/agent/execution_environment.rbs +2 -0
  189. data/sig/phronomy/agent/initial_preparation_recovery.rbs +48 -0
  190. data/sig/phronomy/agent/outcome_recovery.rbs +51 -0
  191. data/sig/phronomy/agent/store.rbs +1 -0
  192. data/sig/phronomy/agent/terminal_persistence_evidence.rbs +111 -0
  193. data/sig/phronomy/agent/terminal_recovery.rbs +46 -0
  194. data/sig/phronomy/agent.rbs +36 -0
  195. data/sig/phronomy/engine/concurrency/timer_bindings.rbs +2 -0
  196. data/sig/phronomy/engine/execution_binding.rbs +2 -1
  197. data/sig/phronomy/engine/execution_receiver.rbs +4 -0
  198. data/sig/phronomy/engine/observability.rbs +22 -1
  199. data/sig/phronomy/execution/execution.rbs +16 -1
  200. data/sig/phronomy/execution/execution_receiver.rbs +12 -0
  201. data/sig/phronomy/execution/execution_retirement.rbs +18 -0
  202. data/sig/phronomy/execution/stopped_terminal_custody.rbs +19 -0
  203. data/sig/phronomy/handoff.rbs +1 -0
  204. data/sig/phronomy/multi_agent/handoff_finalization_error.rbs +18 -0
  205. data/sig/phronomy/multi_agent/store.rbs +1 -1
  206. data/sig/phronomy/multi_agent/team_cancellation_delivery_error.rbs +9 -0
  207. data/sig/phronomy/persistence_composition.rbs +2 -1
  208. data/sig/phronomy/storage/contracts.rbs +2 -1
  209. data/sig/phronomy/tools/mcp.rbs +27 -0
  210. data/sig/phronomy/workflow.rbs +42 -0
  211. metadata +104 -2
@@ -6,10 +6,14 @@ module Phronomy
6
6
  def __admit_execution: [V] (ExecutionReceiver receiver) { () -> V } -> V
7
7
  def __post_execution: (ExecutionReceiver receiver, untyped message, ?admission: bool, ?completion: TaskResult[untyped]?) -> bool
8
8
  def __route_execution_event: (ExecutionReceiver receiver) { () -> untyped } -> bool
9
+ def __stopped_workers_quiescent?: () -> bool
10
+ def __transfer_stopped_session: (ExecutionReceiver receiver, String session_id, untyped operation) { (bool retained) -> untyped } -> untyped
11
+ def __stopped_cleanup_verified?: () -> bool
9
12
  def __receiver_cleanup_complete?: () -> bool
10
13
  end
11
14
 
12
15
  class Runtime
16
+ def __stopped_workers_quiescent?: () -> bool
13
17
  def __event_loop_if_initialized: () -> EventLoop?
14
18
  end
15
19
  end
@@ -1,6 +1,26 @@
1
- # Internal lookup operations. None of these methods initializes a resource.
1
+ # Resource observation and shutdown management on the original Runtime.
2
2
  module Phronomy
3
3
  class Runtime
4
+ def __deferred_cleanup_finalized?: () -> bool
5
+ class ShutdownManagementResult
6
+ attr_reader original_shutdown: Runtime::ShutdownResult
7
+ attr_reader blockers: Array[Symbol]
8
+ attr_reader participant_states: Hash[untyped, Symbol]
9
+ attr_reader read_errors: Hash[untyped, StandardError]
10
+ attr_reader participant_error: StandardError?
11
+ def cleanup_complete?: () -> bool
12
+ end
13
+ class ShutdownResult
14
+ attr_reader runtime_outcome: Symbol
15
+ attr_reader cleanup_status: Symbol
16
+ attr_reader event_loop_status: Symbol
17
+ attr_reader task_registry_status: Symbol
18
+ attr_reader error: Exception?
19
+ def cleanup_complete?: () -> bool
20
+ def clean?: () -> bool
21
+ end
22
+ def shutdown: (?timeout: Numeric, ?cancel_grace: Numeric) -> ShutdownResult
23
+ def reconcile_shutdown: () -> ShutdownManagementResult
4
24
  def self.__default_if_initialized: () -> Runtime?
5
25
  def __offload_if_initialized: () -> Concurrency::OffloadPool?
6
26
  end
@@ -8,6 +28,7 @@ module Phronomy
8
28
  module Concurrency
9
29
  class PoolRegistry
10
30
  def default_pool_if_initialized: () -> OffloadPool?
31
+ def terminated?: () -> bool
11
32
  end
12
33
  end
13
34
  end
@@ -7,6 +7,12 @@ module Phronomy
7
7
  def submit: [V] (?timeout: Numeric?, ?cancellation_token: Concurrency::CancellationToken?, ?on_full: Symbol) { () -> V } -> TaskResult[V]
8
8
  end
9
9
 
10
+ # Optional mechanism extension; legacy pools need not implement it.
11
+ interface _ExecutionRejectionPool
12
+ def supports_submission_rejection?: () -> bool
13
+ def submit: [V] (?timeout: Numeric?, ?cancellation_token: Concurrency::CancellationToken?, ?on_full: Symbol, ?on_rejected: (^(Exception) -> void)?) { () -> V } -> TaskResult[V]
14
+ end
15
+
10
16
  interface _ExecutionRuntime
11
17
  def offload: () -> _ExecutionPool
12
18
  def pool: (Symbol name, size: Integer, queue_size: Integer) -> _ExecutionPool
@@ -16,9 +22,18 @@ module Phronomy
16
22
  def submit: [V] (?pool: _ExecutionPool?, ?runtime: _ExecutionRuntime?, ?pool_name: Symbol?, ?size: Integer, ?queue_size: Integer, ?timeout: Numeric?, ?cancellation_token: Concurrency::CancellationToken?, ?on_full: Symbol) { () -> V } -> TaskResult[V]
17
23
  def after: (Numeric seconds) { () -> void } -> ^() -> untyped
18
24
  end
25
+
26
+ # A declaration permits forwarding evidence; it does not certify admission.
27
+ interface _ExecutionRejectionBackend
28
+ def supports_submission_rejection?: () -> bool
29
+ def submit: [V] (?pool: _ExecutionPool?, ?runtime: _ExecutionRuntime?, ?pool_name: Symbol?, ?size: Integer, ?queue_size: Integer, ?timeout: Numeric?, ?cancellation_token: Concurrency::CancellationToken?, ?on_full: Symbol, ?on_rejected: (^(Exception) -> void)?) { () -> V } -> TaskResult[V]
30
+ def after: (Numeric seconds) { () -> void } -> ^() -> untyped
31
+ end
32
+
19
33
  class Execution
20
34
  def self.backend_provider=: (^() -> _ExecutionBackend provider) -> ^() -> _ExecutionBackend
21
- def self.submit: [V] (?pool: _ExecutionPool?, ?runtime: _ExecutionRuntime?, ?pool_name: Symbol?, ?size: Integer, ?queue_size: Integer, ?timeout: Numeric?, ?cancellation_token: Concurrency::CancellationToken?, ?on_full: Symbol) { () -> V } -> TaskResult[V]
35
+ def self.submit: [V] (?pool: _ExecutionPool?, ?runtime: _ExecutionRuntime?, ?pool_name: Symbol?, ?size: Integer, ?queue_size: Integer, ?timeout: Numeric?, ?cancellation_token: Concurrency::CancellationToken?, ?on_full: Symbol, ?on_rejected: (^(Exception) -> void)?) { () -> V } -> TaskResult[V]
36
+ def self.submit_with_rejection_evidence: [V] (untyped submitter, ?on_rejected: (^(Exception) -> void)?, **untyped options) { () -> V } -> TaskResult[V]
22
37
  def self.after: (Numeric seconds) { () -> void } -> ^() -> untyped
23
38
  attr_reader invocation_context: InvocationContext
24
39
 
@@ -1,13 +1,19 @@
1
1
  module Phronomy
2
2
  interface _ExecutionReceiver
3
+ def stopped_cleanup_ready_locked?: () -> bool
4
+ def stopped_terminal_owner_locked: (String session_id) -> untyped
5
+ def acknowledge_retained_retirement: (ExecutionRetirement retirement) -> untyped
3
6
  def idle?: () -> bool
4
7
  def deliver: (untyped message) -> untyped
5
8
  def shutdown: (error: Exception?) -> untyped
6
9
  def session_retired: (String session_id, reason: Symbol) -> untyped
10
+ def adopt_retirement: (ExecutionRetirement retirement) -> untyped
7
11
  end
8
12
 
9
13
  interface _ExecutionChannel
14
+ def transfer_stopped_session: (ExecutionReceiver receiver, String session_id, untyped operation) { (bool retained) -> untyped } -> untyped
10
15
  def bound_to?: (untyped owner) -> bool
16
+ def stopped_workers_quiescent?: () -> bool
11
17
  def current?: () -> bool
12
18
  def synchronize: [V] () { () -> V } -> V
13
19
  def admit: [V] (ExecutionReceiver receiver) { () -> V } -> V
@@ -22,14 +28,20 @@ module Phronomy
22
28
  def self.for: (untyped owner) -> instance
23
29
  def self.existing_for: (untyped owner) -> instance?
24
30
  def initialize: (channel: _ExecutionChannel) -> void
31
+ def stopped_workers_quiescent?: () -> bool
32
+ def stopped_cleanup_ready_locked?: () -> bool
33
+ def acknowledge_retained_retirement: (ExecutionRetirement retirement) -> untyped
34
+ def stopped_terminal_owner_locked: (String session_id) -> untyped
25
35
  def __bound_to?: (untyped owner) -> bool
26
36
  def idle?: () -> bool
27
37
  def deliver: (untyped message) -> untyped
28
38
  def shutdown: (error: Exception?) -> untyped
29
39
  def session_retired: (String fsm_session_id, reason: Symbol) -> untyped
40
+ def adopt_retirement: (ExecutionRetirement retirement) -> untyped
30
41
 
31
42
  private
32
43
 
44
+ def transfer_stopped_session: (String session_id, untyped operation) { (bool retained) -> untyped } -> untyped
33
45
  def synchronize: [V] () { () -> V } -> V
34
46
  def admit: [V] () { () -> V } -> V
35
47
  def post_message: (untyped message, ?admission: bool, ?completion: TaskResult[untyped]?) -> bool
@@ -0,0 +1,18 @@
1
+ module Phronomy
2
+ # Internal transport custody only; no domain outcome or release authority.
3
+ class ExecutionRetirement
4
+ UNSUPPORTED: Object
5
+
6
+ class Acceptance < Data
7
+ attr_reader retirement: ExecutionRetirement
8
+ def self.new: (retirement: ExecutionRetirement) -> Acceptance
9
+ end
10
+
11
+ attr_reader fsm_session_id: String
12
+ attr_reader reason: Symbol
13
+ attr_reader error: Exception?
14
+ def initialize: (fsm_session_id: String, reason: Symbol, ?error: Exception?) -> void
15
+ def acceptance: () -> Acceptance
16
+ def accepted_by?: (untyped value) -> bool
17
+ end
18
+ end
@@ -0,0 +1,19 @@
1
+ module Phronomy
2
+ # Bound to one exact recovery capability by its designated recipient.
3
+ class StoppedTerminalCustody
4
+ class Receipt < Data
5
+ attr_reader recovery_id: String
6
+ attr_reader outcome: :confirmed_post | :confirmed_pre
7
+ attr_reader revision: Integer?
8
+ attr_reader value: untyped
9
+ attr_reader error: Exception?
10
+ end
11
+
12
+ def reconcile: () -> Receipt
13
+ def retry_save: () -> Receipt
14
+
15
+ private
16
+
17
+ def initialize: (untyped source) -> void
18
+ end
19
+ end
@@ -42,6 +42,7 @@ module Phronomy
42
42
 
43
43
  def initialize: (main_agent: ::Phronomy::Agent::Base, ?handoffs: Array[::Phronomy::MultiAgent::Handoff], persistence: Store) -> void
44
44
  def invoke: (untyped input, ?config: Hash[Symbol, untyped]) -> Hash[Symbol, untyped]
45
+ def resume: (String execution_id, ?config: Hash[Symbol, untyped]) -> Hash[Symbol, untyped]
45
46
  def result: (String execution_id) -> Hash[Symbol, untyped]
46
47
  def cancel: (String execution_id) -> Hash[Symbol, untyped]
47
48
  end
@@ -0,0 +1,18 @@
1
+ module Phronomy
2
+ module MultiAgent
3
+ class HandoffFinalizationError < Phronomy::HandoffError
4
+ attr_reader main_agent_id: String
5
+ attr_reader execution_id: String
6
+ attr_reader target_execution_id: String
7
+ attr_reader execution_result: Hash[Symbol, untyped]
8
+ attr_reader execution_error: Exception?
9
+ attr_reader finalization_error: Exception
10
+ attr_reader read_error: Exception?
11
+ attr_reader disposition: :not_attempted | :not_committed | :unknown
12
+
13
+ def initialize: (main_agent_id: String, execution_id: String,
14
+ execution_result: Hash[Symbol, untyped], execution_error: Exception?, finalization_error: Exception,
15
+ ?disposition: :not_attempted | :not_committed | :unknown, ?read_error: Exception?) -> void
16
+ end
17
+ end
18
+ end
@@ -46,7 +46,7 @@ module Phronomy
46
46
  def handoff_leaf: (String execution_id, main_agent_id: String, ?scope: ::Phronomy::Persistence::Transaction?) -> Agent::ExecutionObservation
47
47
  def handoff_result: (String execution_id, main_agent_id: String) -> Agent::execution_result
48
48
  def forget_handoff: (String main_agent_id) -> bool
49
- def forget_subagents: (agent_id: String, execution_id: String) -> bool
49
+ def forget_subagents: (agent_id: String, execution_id: String, ?require_import: bool) -> bool
50
50
  def result: (String execution_id) -> Hash[Symbol, untyped]
51
51
  def runs: (String owner_id, ?after: String?, ?limit: Integer) -> Array[untyped]
52
52
  end
@@ -0,0 +1,9 @@
1
+ module Phronomy
2
+ module MultiAgent
3
+ class TeamCancellationDeliveryError < Phronomy::Error
4
+ attr_reader team_id: String
5
+ attr_reader team_execution_id: String
6
+ def initialize: (team_id: untyped, team_execution_id: untyped) -> void
7
+ end
8
+ end
9
+ end
@@ -14,8 +14,9 @@ module Phronomy
14
14
 
15
15
  def self.resources: () -> Array[Storage::Resource]
16
16
  def self.agent_resources: () -> Array[Storage::Resource]
17
+ def self.identity_receipt_resource: () -> Storage::Resource
17
18
  def self.agent: (?backend: _StorageBackend?) -> Agent::Store
18
19
  def self.build: (backend: _StorageBackend) -> Stores
19
- def self.in_memory: () -> Stores
20
+ def self.in_memory: (?identity_receipts: bool) -> Stores
20
21
  end
21
22
  end
@@ -50,7 +50,8 @@ module Phronomy
50
50
  attr_reader indexes: Hash[Symbol, Array[Symbol]]
51
51
  attr_reader unique: Array[Hash[Symbol, untyped]]
52
52
  attr_reader guard: Hash[Symbol, untyped]?
53
- def initialize: (id: String, kind: Symbol, ?attributes: Hash[Symbol, Symbol], ?immutable_attributes: Array[Symbol], ?indexes: Hash[Symbol, Array[Symbol]], ?unique: Array[Hash[Symbol, untyped]], ?guard: Hash[Symbol, untyped]?) -> void
53
+ def initialize: (id: String, kind: Symbol, ?attributes: Hash[Symbol, Symbol], ?immutable_attributes: Array[Symbol], ?indexes: Hash[Symbol, Array[Symbol]], ?unique: Array[Hash[Symbol, untyped]], ?guard: Hash[Symbol, untyped]?, ?guard_missing: bool) -> void
54
+ def guard_missing?: () -> bool
54
55
  def validate_attributes: (attributes, ?partial: bool) -> attributes
55
56
  def index_values: (Symbol, attributes) -> attributes
56
57
  end
@@ -0,0 +1,27 @@
1
+ module Phronomy
2
+ module Tools
3
+ class Mcp < Phronomy::Tool::Base
4
+ class CleanupHandle
5
+ attr_reader server_origin: String
6
+ def close: () -> void
7
+ def pending: () -> Array[{ generation: Integer, purpose: Symbol, state: Symbol,
8
+ server_origin: String, transport_id: Integer?, primary_error: Exception?, cleanup_error: Exception?, http_status: Integer? }]
9
+ def finish_queued: (Integer generation) -> bool
10
+ def offer_failed: (Integer generation, receiver: Object) -> CleanupTransfer
11
+ end
12
+ class CleanupTransfer
13
+ def accept!: (receiver: Object) -> { transport: untyped, generation: Integer, server_origin: String,
14
+ session_id: String?, primary_error: Exception?, cleanup_error: Exception, http_status: Integer? }
15
+ end
16
+ class CleanupError < Phronomy::ToolError
17
+ attr_reader cleanup_handle: CleanupHandle
18
+ attr_reader pending: Array[{ generation: Integer, purpose: Symbol, state: Symbol,
19
+ server_origin: String, transport_id: Integer?, primary_error: Exception?, cleanup_error: Exception?, http_status: Integer? }]
20
+ attr_reader primary_error: Exception?
21
+ end
22
+ def self.cleanup_handles: (?runtime: untyped) -> Array[CleanupHandle]
23
+ attr_reader cleanup_handle: CleanupHandle
24
+ def close: () -> void
25
+ end
26
+ end
27
+ end
@@ -2,6 +2,45 @@ module Phronomy
2
2
  class WorkflowTaskResumeError < Error
3
3
  def initialize: (?String message, ?code: String?) -> void
4
4
  end
5
+
6
+ class WorkflowTerminalRecovery
7
+ def new_stopped_recipient: () -> Phronomy::StoppedTerminalCustody
8
+ def workflow_instance_id: () -> String
9
+ def recovery_id: () -> String
10
+ end
11
+
12
+ class WorkflowTerminalRecoveryError < Error
13
+ attr_reader recovery: WorkflowTerminalRecovery
14
+ attr_reader workflow_instance_id: String
15
+ attr_reader recovery_id: String
16
+ attr_reader original_error: Exception?
17
+ def cause: () -> Exception?
18
+
19
+ private
20
+
21
+ def initialize: (recovery: WorkflowTerminalRecovery, error: Exception?, ?original_error: Exception?) -> void
22
+ end
23
+
24
+ class WorkflowTerminalRecoveryResult
25
+ attr_reader recovery: WorkflowTerminalRecovery
26
+ attr_reader workflow_instance_id: String
27
+ attr_reader recovery_id: String
28
+ attr_reader outcome: :confirmed_post | :confirmed_pre | :unresolved | :unavailable
29
+ attr_reader application_state: :pending | :applied
30
+ attr_reader ownership_state: :retained | :released | :transferred
31
+ attr_reader revision: Integer?
32
+ attr_reader context: untyped
33
+ attr_reader error: Exception?
34
+
35
+ private
36
+
37
+ def initialize: (recovery: WorkflowTerminalRecovery,
38
+ outcome: :confirmed_post | :confirmed_pre | :unresolved | :unavailable,
39
+ application_state: :pending | :applied,
40
+ ownership_state: :retained | :released | :transferred,
41
+ ?revision: Integer?, ?context: untyped, ?error: Exception?) -> void
42
+ end
43
+
5
44
  module WorkflowContext
6
45
  def phase: () -> Symbol
7
46
  def halted?: () -> bool
@@ -19,6 +58,9 @@ module Phronomy
19
58
  def resume: (state: untyped, ?input: untyped) -> untyped
20
59
  def send_event: (state: untyped, event: Symbol, ?input: untyped) -> untyped
21
60
  def send_saved_event: (workflow_instance_id: String, expected_revision: Integer, event: Symbol, ?input: untyped) -> untyped
61
+ def reconcile_terminal_async: (recovery: WorkflowTerminalRecovery) -> TaskResult[WorkflowTerminalRecoveryResult]
62
+ def reconcile_terminal: (recovery: WorkflowTerminalRecovery) -> WorkflowTerminalRecoveryResult
63
+ def pending_terminal_recovery: (workflow_instance_id: String) -> WorkflowTerminalRecovery?
22
64
  def signal: (workflow_instance_id: String, event: Symbol, ?payload: untyped) -> bool
23
65
 
24
66
  class Builder
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phronomy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.0
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raizo T.C.S
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-11-21 00:00:00.000000000 Z
11
+ date: 2026-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ruby_llm
@@ -203,16 +203,24 @@ files:
203
203
  - benchmark/run_all.rb
204
204
  - docs/application-recipes.md
205
205
  - docs/architecture.md
206
+ - docs/architecture/agent-approval-recovery.md
206
207
  - docs/architecture/agent-chat-and-state-ownership.md
208
+ - docs/architecture/agent-child-approval-recovery.md
209
+ - docs/architecture/agent-child-execution-recovery.md
207
210
  - docs/architecture/agent-configuration-and-tool-binding.md
208
211
  - docs/architecture/agent-context.md
212
+ - docs/architecture/agent-dispatch-recovery.md
209
213
  - docs/architecture/agent-iteration-budget.md
214
+ - docs/architecture/agent-terminal-persistence-evidence.md
215
+ - docs/architecture/agent-terminal-recovery.md
216
+ - docs/architecture/agent-terminal-submission-recovery.md
210
217
  - docs/architecture/agent-tool-child-lifetime.md
211
218
  - docs/architecture/agent-transition-ownership.md
212
219
  - docs/architecture/backend-groups.md
213
220
  - docs/architecture/before-llm-input.md
214
221
  - docs/architecture/context-management.md
215
222
  - docs/architecture/context-preparation-steps.md
223
+ - docs/architecture/detached-outcome-proof-projection.md
216
224
  - docs/architecture/dx05-agent-scope.md
217
225
  - docs/architecture/dx05-workflow-task-state.md
218
226
  - docs/architecture/entry-action-and-team-wording.md
@@ -222,10 +230,17 @@ files:
222
230
  - docs/architecture/execution-metadata-and-values.md
223
231
  - docs/architecture/generator-verifier-lifecycle-result.md
224
232
  - docs/architecture/generator-verifier-ownership.md
233
+ - docs/architecture/handoff-dispatch-recovery.md
234
+ - docs/architecture/handoff-initial-terminal-application.md
235
+ - docs/architecture/initial-preparation-recovery.md
225
236
  - docs/architecture/knowledge-and-rag.md
226
237
  - docs/architecture/llm-continuation-metadata.md
227
238
  - docs/architecture/lm-studio-output-failures.md
228
239
  - docs/architecture/multi-agent-handoff.md
240
+ - docs/architecture/native-outcome-preparation.md
241
+ - docs/architecture/native-parent-dispatch-recovery.md
242
+ - docs/architecture/native-parent-outcome-recovery.md
243
+ - docs/architecture/parent-child-terminal-acknowledgement.md
229
244
  - docs/architecture/persistence-refactoring-plan.md
230
245
  - docs/architecture/persistence.md
231
246
  - docs/architecture/r8-unit1.md
@@ -251,18 +266,29 @@ files:
251
266
  - docs/architecture/r8-unit7.md
252
267
  - docs/architecture/r8-unit8.md
253
268
  - docs/architecture/r8-unit9.md
269
+ - docs/architecture/recovery-physical-attempt.md
270
+ - docs/architecture/recovery-submission-custody.md
254
271
  - docs/architecture/refactoring-closure.md
255
272
  - docs/architecture/remaining-refactoring-plan.md
256
273
  - docs/architecture/removed/agent-context.md
274
+ - docs/architecture/retained-attempts.md
275
+ - docs/architecture/retained-outcome-materialization.md
276
+ - docs/architecture/retained-outcome-publication.md
257
277
  - docs/architecture/rubyllm-2-token-ownership.md
258
278
  - docs/architecture/security-boundaries.md
259
279
  - docs/architecture/storage-execution-boundaries.md
260
280
  - docs/architecture/structured-output-and-scope.md
281
+ - docs/architecture/synchronous-participant-application.md
282
+ - docs/architecture/synchronous-participant-contract.md
283
+ - docs/architecture/team-admission-rejection.md
284
+ - docs/architecture/team-cancellation-delivery.md
285
+ - docs/architecture/team-child-retirement.md
261
286
  - docs/architecture/tool-schema-recording-gap.md
262
287
  - docs/architecture/tracing.md
263
288
  - docs/architecture/transport-error-boundaries.md
264
289
  - docs/architecture/trust-acceptance-followup.md
265
290
  - docs/architecture/workflow-terminal-ownership-design.md
291
+ - docs/architecture/workflow-terminal-reconciliation.md
266
292
  - docs/archive/design/archived/04_api_design.md
267
293
  - docs/archive/design/archived/09_guardrails.md
268
294
  - docs/archive/design/archived/17_rails_integration.md
@@ -364,6 +390,7 @@ files:
364
390
  - docs/migrations/handoff-runner-multi-agent.md
365
391
  - docs/migrations/legacy-format-removal.md
366
392
  - docs/migrations/neutral-storage-spi.md
393
+ - docs/migrations/orchestrator-subagent-dispatch.md
367
394
  - docs/migrations/parallel-tool-chat-removal.md
368
395
  - docs/migrations/persistence-failure-contracts.md
369
396
  - docs/migrations/r8-unit10.md
@@ -408,6 +435,10 @@ files:
408
435
  - lib/phronomy/agent/agent_unloaded_error.rb
409
436
  - lib/phronomy/agent/api/agent.rb
410
437
  - lib/phronomy/agent/api/execution_rehydration_required_error.rb
438
+ - lib/phronomy/agent/approval_recovery.rb
439
+ - lib/phronomy/agent/approval_recovery_api.rb
440
+ - lib/phronomy/agent/approval_recovery_error.rb
441
+ - lib/phronomy/agent/approval_recovery_result.rb
411
442
  - lib/phronomy/agent/approval_wait.rb
412
443
  - lib/phronomy/agent/async_event_api.rb
413
444
  - lib/phronomy/agent/base.rb
@@ -417,10 +448,21 @@ files:
417
448
  - lib/phronomy/agent/context_importer.rb
418
449
  - lib/phronomy/agent/context_preparation.rb
419
450
  - lib/phronomy/agent/control_request.rb
451
+ - lib/phronomy/agent/dispatch_recovery.rb
452
+ - lib/phronomy/agent/dispatch_recovery_api.rb
453
+ - lib/phronomy/agent/dispatch_recovery_error.rb
454
+ - lib/phronomy/agent/dispatch_recovery_result.rb
420
455
  - lib/phronomy/agent/execution/agent_execution.rb
421
456
  - lib/phronomy/agent/execution/agent_invocation.rb
457
+ - lib/phronomy/agent/execution/approval_continuation_plan.rb
458
+ - lib/phronomy/agent/execution/approval_parent_evidence.rb
459
+ - lib/phronomy/agent/execution/approval_persistence_evidence.rb
460
+ - lib/phronomy/agent/execution/approval_recovery_operation.rb
422
461
  - lib/phronomy/agent/execution/approval_resume_commit.rb
462
+ - lib/phronomy/agent/execution/dispatch_continuation_delivery.rb
463
+ - lib/phronomy/agent/execution/dispatch_persistence_evidence.rb
423
464
  - lib/phronomy/agent/execution/dispatch_preparation.rb
465
+ - lib/phronomy/agent/execution/dispatch_recovery_operation.rb
424
466
  - lib/phronomy/agent/execution/exact_execution.rb
425
467
  - lib/phronomy/agent/execution/execution_cancellation.rb
426
468
  - lib/phronomy/agent/execution/execution_coordinator.rb
@@ -429,27 +471,43 @@ files:
429
471
  - lib/phronomy/agent/execution/execution_outcome_committer.rb
430
472
  - lib/phronomy/agent/execution/execution_registry.rb
431
473
  - lib/phronomy/agent/execution/execution_session_runner.rb
474
+ - lib/phronomy/agent/execution/initial_persistence_evidence.rb
432
475
  - lib/phronomy/agent/execution/initial_preparation.rb
476
+ - lib/phronomy/agent/execution/initial_preparation_recovery_operation.rb
433
477
  - lib/phronomy/agent/execution/invocation_actions.rb
434
478
  - lib/phronomy/agent/execution/invocation_transitions.rb
435
479
  - lib/phronomy/agent/execution/iteration_budget.rb
436
480
  - lib/phronomy/agent/execution/llm_operation_result.rb
481
+ - lib/phronomy/agent/execution/outcome_planning.rb
482
+ - lib/phronomy/agent/execution/outcome_preparation.rb
483
+ - lib/phronomy/agent/execution/outcome_recovery_operation.rb
484
+ - lib/phronomy/agent/execution/outcome_text_projection.rb
485
+ - lib/phronomy/agent/execution/outcome_write_plan.rb
437
486
  - lib/phronomy/agent/execution/runtime_record_encoder.rb
487
+ - lib/phronomy/agent/execution/terminal_persistence_evidence.rb
488
+ - lib/phronomy/agent/execution/terminal_recovery_operation.rb
438
489
  - lib/phronomy/agent/execution_change.rb
439
490
  - lib/phronomy/agent/execution_environment.rb
440
491
  - lib/phronomy/agent/execution_extension_state.rb
441
492
  - lib/phronomy/agent/execution_observation.rb
493
+ - lib/phronomy/agent/execution_rejected_error.rb
442
494
  - lib/phronomy/agent/filterable.rb
443
495
  - lib/phronomy/agent/handoff/transfer_context.rb
444
496
  - lib/phronomy/agent/handoff/transfer_projection.rb
445
497
  - lib/phronomy/agent/handoff_error.rb
498
+ - lib/phronomy/agent/initial_preparation_recovery.rb
499
+ - lib/phronomy/agent/initial_preparation_recovery_api.rb
500
+ - lib/phronomy/agent/initial_preparation_recovery_error.rb
501
+ - lib/phronomy/agent/initial_preparation_recovery_result.rb
446
502
  - lib/phronomy/agent/journal/journal_projection.rb
447
503
  - lib/phronomy/agent/journal/journal_record.rb
448
504
  - lib/phronomy/agent/journal/llm_call_record.rb
449
505
  - lib/phronomy/agent/knowledge_item.rb
450
506
  - lib/phronomy/agent/lifecycle/agent_root.rb
451
507
  - lib/phronomy/agent/lifecycle/default_persistence.rb
508
+ - lib/phronomy/agent/lifecycle/hosted_approval_context.rb
452
509
  - lib/phronomy/agent/lifecycle/hosted_invocation.rb
510
+ - lib/phronomy/agent/lifecycle/identity_write.rb
453
511
  - lib/phronomy/agent/lifecycle/lifetime_api.rb
454
512
  - lib/phronomy/agent/lifecycle/operation_lease.rb
455
513
  - lib/phronomy/agent/lifecycle/operation_result.rb
@@ -457,12 +515,17 @@ files:
457
515
  - lib/phronomy/agent/lifecycle/scope.rb
458
516
  - lib/phronomy/agent/lifecycle/scope_cleanup_error.rb
459
517
  - lib/phronomy/agent/lifecycle/unload_transition.rb
518
+ - lib/phronomy/agent/outcome_recovery.rb
519
+ - lib/phronomy/agent/outcome_recovery_api.rb
520
+ - lib/phronomy/agent/outcome_recovery_error.rb
521
+ - lib/phronomy/agent/outcome_recovery_result.rb
460
522
  - lib/phronomy/agent/output_contract.rb
461
523
  - lib/phronomy/agent/output_error.rb
462
524
  - lib/phronomy/agent/persistence/agent_repository.rb
463
525
  - lib/phronomy/agent/persistence/cancellation_repository.rb
464
526
  - lib/phronomy/agent/persistence/codec.rb
465
527
  - lib/phronomy/agent/persistence/execution_repository.rb
528
+ - lib/phronomy/agent/persistence/identity_receipt_repository.rb
466
529
  - lib/phronomy/agent/persistence/journal_repository.rb
467
530
  - lib/phronomy/agent/persistence/records.rb
468
531
  - lib/phronomy/agent/persistence/retention_repository.rb
@@ -487,6 +550,10 @@ files:
487
550
  - lib/phronomy/agent/state_writer.rb
488
551
  - lib/phronomy/agent/store.rb
489
552
  - lib/phronomy/agent/stream_callback_error.rb
553
+ - lib/phronomy/agent/terminal_recovery.rb
554
+ - lib/phronomy/agent/terminal_recovery_api.rb
555
+ - lib/phronomy/agent/terminal_recovery_error.rb
556
+ - lib/phronomy/agent/terminal_recovery_result.rb
490
557
  - lib/phronomy/agent/tool_execution/approval_evaluation_request.rb
491
558
  - lib/phronomy/agent/tool_execution/tool_approval_request.rb
492
559
  - lib/phronomy/agent/tool_execution/tool_binding.rb
@@ -549,6 +616,7 @@ files:
549
616
  - lib/phronomy/engine/runtime/timer_service.rb
550
617
  - lib/phronomy/engine/terminal_decision.rb
551
618
  - lib/phronomy/execution/async_operation.rb
619
+ - lib/phronomy/execution/attempt_completion.rb
552
620
  - lib/phronomy/execution/backpressure_error.rb
553
621
  - lib/phronomy/execution/blocking.rb
554
622
  - lib/phronomy/execution/cancellation_error.rb
@@ -565,6 +633,7 @@ files:
565
633
  - lib/phronomy/execution/execution.rb
566
634
  - lib/phronomy/execution/execution_cancellation_error.rb
567
635
  - lib/phronomy/execution/execution_receiver.rb
636
+ - lib/phronomy/execution/execution_retirement.rb
568
637
  - lib/phronomy/execution/execution_scope_state.rb
569
638
  - lib/phronomy/execution/execution_timeout_error.rb
570
639
  - lib/phronomy/execution/invalid_async_entry_action_error.rb
@@ -574,9 +643,11 @@ files:
574
643
  - lib/phronomy/execution/invocation_controls.rb
575
644
  - lib/phronomy/execution/pool_shutdown_error.rb
576
645
  - lib/phronomy/execution/recursion_limit_error.rb
646
+ - lib/phronomy/execution/retained_attempts.rb
577
647
  - lib/phronomy/execution/runnable.rb
578
648
  - lib/phronomy/execution/runtime_shutdown_error.rb
579
649
  - lib/phronomy/execution/runtime_shutdown_reentrancy_error.rb
650
+ - lib/phronomy/execution/stopped_terminal_custody.rb
580
651
  - lib/phronomy/execution/task_result.rb
581
652
  - lib/phronomy/execution/timeout_error.rb
582
653
  - lib/phronomy/execution/wait_policy.rb
@@ -620,10 +691,19 @@ files:
620
691
  - lib/phronomy/multi_agent/execution_environment.rb
621
692
  - lib/phronomy/multi_agent/handoff.rb
622
693
  - lib/phronomy/multi_agent/handoff_capability_factory.rb
694
+ - lib/phronomy/multi_agent/handoff_dispatch_evidence.rb
695
+ - lib/phronomy/multi_agent/handoff_finalization_error.rb
696
+ - lib/phronomy/multi_agent/handoff_history_release.rb
623
697
  - lib/phronomy/multi_agent/handoff_participant.rb
624
698
  - lib/phronomy/multi_agent/handoff_policy.rb
625
699
  - lib/phronomy/multi_agent/handoff_runner.rb
626
700
  - lib/phronomy/multi_agent/handoff_state.rb
701
+ - lib/phronomy/multi_agent/handoff_terminal_finalization.rb
702
+ - lib/phronomy/multi_agent/native_approval_evidence.rb
703
+ - lib/phronomy/multi_agent/native_child_authority.rb
704
+ - lib/phronomy/multi_agent/native_dispatch_evidence.rb
705
+ - lib/phronomy/multi_agent/native_outcome_evidence.rb
706
+ - lib/phronomy/multi_agent/native_persistence_plan.rb
627
707
  - lib/phronomy/multi_agent/orchestrator.rb
628
708
  - lib/phronomy/multi_agent/persistence/codec.rb
629
709
  - lib/phronomy/multi_agent/persistence/handoff_state_repository.rb
@@ -637,7 +717,10 @@ files:
637
717
  - lib/phronomy/multi_agent/shared_state/binding.rb
638
718
  - lib/phronomy/multi_agent/shared_state/member_lifecycle_error.rb
639
719
  - lib/phronomy/multi_agent/store.rb
720
+ - lib/phronomy/multi_agent/subagent_history_release.rb
640
721
  - lib/phronomy/multi_agent/team_busy_error.rb
722
+ - lib/phronomy/multi_agent/team_cancellation_delivery_error.rb
723
+ - lib/phronomy/multi_agent/team_cancellation_request.rb
641
724
  - lib/phronomy/multi_agent/team_coordinator.rb
642
725
  - lib/phronomy/multi_agent/team_execution.rb
643
726
  - lib/phronomy/multi_agent/team_not_found_error.rb
@@ -727,6 +810,8 @@ files:
727
810
  - lib/phronomy/tool/tool_executor.rb
728
811
  - lib/phronomy/tools/agent.rb
729
812
  - lib/phronomy/tools/mcp.rb
813
+ - lib/phronomy/tools/mcp_http_close_response.rb
814
+ - lib/phronomy/tools/mcp_transport_registry.rb
730
815
  - lib/phronomy/tools/vector_search.rb
731
816
  - lib/phronomy/tracing.rb
732
817
  - lib/phronomy/tracing/automatic.rb
@@ -756,6 +841,11 @@ files:
756
841
  - lib/phronomy/workflow/execution/workflow_task_execution.rb
757
842
  - lib/phronomy/workflow/execution/workflow_task_reception.rb
758
843
  - lib/phronomy/workflow/execution/workflow_task_resume_error.rb
844
+ - lib/phronomy/workflow/execution/workflow_terminal_operation.rb
845
+ - lib/phronomy/workflow/execution/workflow_terminal_persistence.rb
846
+ - lib/phronomy/workflow/execution/workflow_terminal_recovery.rb
847
+ - lib/phronomy/workflow/execution/workflow_terminal_recovery_error.rb
848
+ - lib/phronomy/workflow/execution/workflow_terminal_recovery_result.rb
759
849
  - lib/phronomy/workflow/persistence/codec.rb
760
850
  - lib/phronomy/workflow/persistence/state_repository.rb
761
851
  - lib/phronomy/workflow/persistence/storage_schema.rb
@@ -773,6 +863,7 @@ files:
773
863
  - sig/_private/phronomy/configuration/runtime_settings.rbs
774
864
  - sig/_private/phronomy/llm_adapter/async/async_client.rbs
775
865
  - sig/_private/phronomy/multi_agent/store.rbs
866
+ - sig/_private/phronomy/multi_agent/team_cancellation_request.rbs
776
867
  - sig/_private/phronomy/persistence/storage_boundary.rbs
777
868
  - sig/_private/phronomy/tool/settings.rbs
778
869
  - sig/_private/phronomy/tracing/settings.rbs
@@ -782,10 +873,16 @@ files:
782
873
  - sig/phronomy/agent/admission.rbs
783
874
  - sig/phronomy/agent/agent_not_found_error.rbs
784
875
  - sig/phronomy/agent/agent_unloaded_error.rbs
876
+ - sig/phronomy/agent/approval_recovery.rbs
877
+ - sig/phronomy/agent/dispatch_recovery.rbs
785
878
  - sig/phronomy/agent/execution_contract.rbs
786
879
  - sig/phronomy/agent/execution_environment.rbs
880
+ - sig/phronomy/agent/initial_preparation_recovery.rbs
881
+ - sig/phronomy/agent/outcome_recovery.rbs
787
882
  - sig/phronomy/agent/store.rbs
788
883
  - sig/phronomy/agent/stream_callback_error.rbs
884
+ - sig/phronomy/agent/terminal_persistence_evidence.rbs
885
+ - sig/phronomy/agent/terminal_recovery.rbs
789
886
  - sig/phronomy/common.rbs
790
887
  - sig/phronomy/content_store/contracts.rbs
791
888
  - sig/phronomy/context.rbs
@@ -806,9 +903,11 @@ files:
806
903
  - sig/phronomy/execution/errors.rbs
807
904
  - sig/phronomy/execution/execution.rbs
808
905
  - sig/phronomy/execution/execution_receiver.rbs
906
+ - sig/phronomy/execution/execution_retirement.rbs
809
907
  - sig/phronomy/execution/execution_scope_state.rbs
810
908
  - sig/phronomy/execution/invocation_context.rbs
811
909
  - sig/phronomy/execution/invocation_controls.rbs
910
+ - sig/phronomy/execution/stopped_terminal_custody.rbs
812
911
  - sig/phronomy/execution/task_result.rbs
813
912
  - sig/phronomy/extensions.rbs
814
913
  - sig/phronomy/filter/filter_block_error.rbs
@@ -822,9 +921,11 @@ files:
822
921
  - sig/phronomy/llm_adapter/values.rbs
823
922
  - sig/phronomy/llm_context_window.rbs
824
923
  - sig/phronomy/multi_agent.rbs
924
+ - sig/phronomy/multi_agent/handoff_finalization_error.rbs
825
925
  - sig/phronomy/multi_agent/reserved_child_admission.rbs
826
926
  - sig/phronomy/multi_agent/store.rbs
827
927
  - sig/phronomy/multi_agent/team_busy_error.rbs
928
+ - sig/phronomy/multi_agent/team_cancellation_delivery_error.rbs
828
929
  - sig/phronomy/multi_agent/team_not_found_error.rbs
829
930
  - sig/phronomy/persistence.rbs
830
931
  - sig/phronomy/persistence/errors.rbs
@@ -836,6 +937,7 @@ files:
836
937
  - sig/phronomy/storage/contracts.rbs
837
938
  - sig/phronomy/tool.rbs
838
939
  - sig/phronomy/tools/agent.rbs
940
+ - sig/phronomy/tools/mcp.rbs
839
941
  - sig/phronomy/tracing/observation.rbs
840
942
  - sig/phronomy/vector_store/async/async_client.rbs
841
943
  - sig/phronomy/vector_store/base.rbs