deepstrike 0.2.84__tar.gz → 0.2.85__tar.gz

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 (281) hide show
  1. {deepstrike-0.2.84 → deepstrike-0.2.85}/Cargo.lock +7 -7
  2. {deepstrike-0.2.84 → deepstrike-0.2.85}/Cargo.toml +3 -3
  3. {deepstrike-0.2.84 → deepstrike-0.2.85}/PKG-INFO +6 -8
  4. {deepstrike-0.2.84 → deepstrike-0.2.85}/README.md +5 -7
  5. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/checkpoint.rs +5 -0
  6. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/projection.rs +8 -0
  7. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/tests.rs +72 -0
  8. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/dynamic_workflow.py +40 -2
  9. {deepstrike-0.2.84 → deepstrike-0.2.85}/pyproject.toml +1 -1
  10. {deepstrike-0.2.84 → deepstrike-0.2.85}/LICENSE +0 -0
  11. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/Cargo.toml +0 -0
  12. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/LICENSE +0 -0
  13. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/benches/kernel_baseline.rs +0 -0
  14. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/benches/wait_index_baseline.rs +0 -0
  15. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/benchmark/mod.rs +0 -0
  16. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/archive.rs +0 -0
  17. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/authority.rs +0 -0
  18. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/cache_ledger.rs +0 -0
  19. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/compression.rs +0 -0
  20. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/config.rs +0 -0
  21. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/fault.rs +0 -0
  22. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/graph.rs +0 -0
  23. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/item.rs +0 -0
  24. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/cache.rs +0 -0
  25. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/capabilities.rs +0 -0
  26. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/handles.rs +0 -0
  27. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/items.rs +0 -0
  28. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/knowledge.rs +0 -0
  29. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/mod.rs +0 -0
  30. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/pressure.rs +0 -0
  31. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/report.rs +0 -0
  32. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/manager/tests.rs +0 -0
  33. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/measurement.rs +0 -0
  34. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/mod.rs +0 -0
  35. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/notes.rs +0 -0
  36. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/partitions.rs +0 -0
  37. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/pressure.rs +0 -0
  38. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/renderer.rs +0 -0
  39. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/renewal.rs +0 -0
  40. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/skill_catalog.rs +0 -0
  41. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/task_state.rs +0 -0
  42. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/text.rs +0 -0
  43. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/token_engine.rs +0 -0
  44. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/units.rs +0 -0
  45. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/context/voice.rs +0 -0
  46. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/constraint.rs +0 -0
  47. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/mod.rs +0 -0
  48. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/permission.rs +0 -0
  49. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/pipeline.rs +0 -0
  50. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/quota.rs +0 -0
  51. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/rate_limit.rs +0 -0
  52. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/repeat_fuse.rs +0 -0
  53. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/governance/veto.rs +0 -0
  54. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/harness/eval.rs +0 -0
  55. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/harness/mod.rs +0 -0
  56. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/lexical.rs +0 -0
  57. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/lib.rs +0 -0
  58. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/memory/curator.rs +0 -0
  59. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/memory/durable.rs +0 -0
  60. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/memory/mod.rs +0 -0
  61. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/mm/handle.rs +0 -0
  62. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/mm/memory.rs +0 -0
  63. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/mm/memory_candidate.rs +0 -0
  64. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/mm/mod.rs +0 -0
  65. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/mm/value.rs +0 -0
  66. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/orchestration/mod.rs +0 -0
  67. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/orchestration/task_graph.rs +0 -0
  68. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/orchestration/workflow/mod.rs +0 -0
  69. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/orchestration/workflow/run.rs +0 -0
  70. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/proc/mod.rs +0 -0
  71. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/projection_pairs.rs +0 -0
  72. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/event_log.rs +0 -0
  73. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/observation.rs +0 -0
  74. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/binding.rs +0 -0
  75. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/command.rs +0 -0
  76. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/config.rs +0 -0
  77. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/crash_point.rs +0 -0
  78. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/continuation.rs +0 -0
  79. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/effects.rs +0 -0
  80. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/events.rs +0 -0
  81. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/planning.rs +0 -0
  82. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/provider.rs +0 -0
  83. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver/syscall.rs +0 -0
  84. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/driver.rs +0 -0
  85. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/effect.rs +0 -0
  86. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/envelope.rs +0 -0
  87. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/event.rs +0 -0
  88. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/fault.rs +0 -0
  89. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/memory_authority.rs +0 -0
  90. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/projection.rs +0 -0
  91. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/record.rs +0 -0
  92. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/restore.rs +0 -0
  93. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/root.rs +0 -0
  94. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/scalar.rs +0 -0
  95. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/syscall.rs +0 -0
  96. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/terminal.rs +0 -0
  97. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/tests.rs +0 -0
  98. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire/transaction.rs +0 -0
  99. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel/wire.rs +0 -0
  100. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/kernel.rs +0 -0
  101. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/mod.rs +0 -0
  102. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/repair.rs +0 -0
  103. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/replay.rs +0 -0
  104. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/session.rs +0 -0
  105. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/session_registry_tests.rs +0 -0
  106. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/runtime/session_wire.rs +0 -0
  107. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/budget_grant.rs +0 -0
  108. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/cross_operation.rs +0 -0
  109. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/entropy.rs +0 -0
  110. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/mailbox.rs +0 -0
  111. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/milestone.rs +0 -0
  112. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/mod.rs +0 -0
  113. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/policy.rs +0 -0
  114. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/rollback.rs +0 -0
  115. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/runnable.rs +0 -0
  116. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/cancellation.rs +0 -0
  117. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/capability.rs +0 -0
  118. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/eviction.rs +0 -0
  119. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/gate.rs +0 -0
  120. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/milestone_exec.rs +0 -0
  121. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/mod.rs +0 -0
  122. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/process.rs +0 -0
  123. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/signal.rs +0 -0
  124. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/tests.rs +0 -0
  125. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/state_machine/workflow.rs +0 -0
  126. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/tcb.rs +0 -0
  127. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/scheduler/wait_index.rs +0 -0
  128. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/signals/attention.rs +0 -0
  129. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/signals/mod.rs +0 -0
  130. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/signals/queue.rs +0 -0
  131. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/signals/router.rs +0 -0
  132. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/syscall/mod.rs +0 -0
  133. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/agent.rs +0 -0
  134. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/capability.rs +0 -0
  135. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/contract.rs +0 -0
  136. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/durable_content.rs +0 -0
  137. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/error.rs +0 -0
  138. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/message.rs +0 -0
  139. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/milestone.rs +0 -0
  140. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/mod.rs +0 -0
  141. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/policy.rs +0 -0
  142. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/result.rs +0 -0
  143. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/signal.rs +0 -0
  144. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/skill.rs +0 -0
  145. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-core/src/types/task.rs +0 -0
  146. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-py/Cargo.toml +0 -0
  147. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-py/LICENSE +0 -0
  148. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-py/src/lib.rs +0 -0
  149. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-tokenizer/Cargo.toml +0 -0
  150. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-tokenizer/LICENSE +0 -0
  151. {deepstrike-0.2.84 → deepstrike-0.2.85}/crates/deepstrike-tokenizer/src/lib.rs +0 -0
  152. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/__init__.py +0 -0
  153. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/agent.py +0 -0
  154. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/collaboration/__init__.py +0 -0
  155. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/collaboration/contract.py +0 -0
  156. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/collaboration/handoff.py +0 -0
  157. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/collaboration/harness.py +0 -0
  158. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/collaboration/modes.py +0 -0
  159. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/collaboration/pool.py +0 -0
  160. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/governance.py +0 -0
  161. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/harness/__init__.py +0 -0
  162. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/harness/harness.py +0 -0
  163. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/harness/judge.py +0 -0
  164. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/kernel/__init__.py +0 -0
  165. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/kernel/canonical.py +0 -0
  166. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/knowledge/__init__.py +0 -0
  167. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/knowledge/source.py +0 -0
  168. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/__init__.py +0 -0
  169. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/agent.py +0 -0
  170. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/attestation.py +0 -0
  171. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/authority.py +0 -0
  172. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/candidate_sink.py +0 -0
  173. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/durable.py +0 -0
  174. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/durable_candidate_sink.py +0 -0
  175. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/durable_lifecycle_store.py +0 -0
  176. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/in_memory_store.py +0 -0
  177. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/lifecycle.py +0 -0
  178. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/protocols.py +0 -0
  179. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/ranking.py +0 -0
  180. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/recall_projection.py +0 -0
  181. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/retention.py +0 -0
  182. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/runtime_policy.py +0 -0
  183. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/working.py +0 -0
  184. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/memory/writer.py +0 -0
  185. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/__init__.py +0 -0
  186. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/anthropic.py +0 -0
  187. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/anthropic_adapter.py +0 -0
  188. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/anthropic_compaction.py +0 -0
  189. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/anthropic_compatible.py +0 -0
  190. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/base.py +0 -0
  191. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/capability_router.py +0 -0
  192. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/credentials.py +0 -0
  193. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/embedding.py +0 -0
  194. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/factories.py +0 -0
  195. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/fallback.py +0 -0
  196. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/gemini.py +0 -0
  197. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/gemini_adapter.py +0 -0
  198. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/model_catalog.py +0 -0
  199. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/model_registry.py +0 -0
  200. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/ollama.py +0 -0
  201. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/ollama_adapter.py +0 -0
  202. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/openai.py +0 -0
  203. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/openai_chat_adapter.py +0 -0
  204. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/openai_responses.py +0 -0
  205. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/prepared_request.py +0 -0
  206. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/protocol_adapter.py +0 -0
  207. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/protocols.py +0 -0
  208. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/provider_error.py +0 -0
  209. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/qwen.py +0 -0
  210. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/replay.py +0 -0
  211. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/replay_validator.py +0 -0
  212. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/request_plan.py +0 -0
  213. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/runtime_registry.py +0 -0
  214. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/stop_reason.py +0 -0
  215. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/stream.py +0 -0
  216. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/text_tool_calls.py +0 -0
  217. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/usage.py +0 -0
  218. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/providers/vendor_profiles.py +0 -0
  219. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/__init__.py +0 -0
  220. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/_session_event_registry.py +0 -0
  221. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/agent_declaration.py +0 -0
  222. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/archive.py +0 -0
  223. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/canonical_kernel_step.py +0 -0
  224. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/context_policy.py +0 -0
  225. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/credential_vault.py +0 -0
  226. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/durable_content.py +0 -0
  227. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/eval.py +0 -0
  228. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/eval_dataset.py +0 -0
  229. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/event_stream.py +0 -0
  230. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/execution_evidence.py +0 -0
  231. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/execution_plane.py +0 -0
  232. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/facade.py +0 -0
  233. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/filtered_plane.py +0 -0
  234. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/kernel_event_log.py +0 -0
  235. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/kernel_journal.py +0 -0
  236. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/kernel_step.py +0 -0
  237. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/loop_driver.py +0 -0
  238. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/mcp_proxy_plane.py +0 -0
  239. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/os_profile.py +0 -0
  240. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/os_snapshot.py +0 -0
  241. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/output_schema.py +0 -0
  242. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/payload_store.py +0 -0
  243. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/process_sandbox_plane.py +0 -0
  244. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/provider_replay.py +0 -0
  245. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/reaction_checkpoint.py +0 -0
  246. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/reactive_session.py +0 -0
  247. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/reliability.py +0 -0
  248. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/remote_vpc_plane.py +0 -0
  249. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/replay_fixture.py +0 -0
  250. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/replay_provider.py +0 -0
  251. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/replay_sanitize.py +0 -0
  252. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/run_group.py +0 -0
  253. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/runner.py +0 -0
  254. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/session_log.py +0 -0
  255. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/session_repair.py +0 -0
  256. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/sub_agent_orchestrator.py +0 -0
  257. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/tool_arguments.py +0 -0
  258. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/turn_policy.py +0 -0
  259. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/workflow_replay.py +0 -0
  260. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/workflow_store.py +0 -0
  261. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/runtime/worktree_plane.py +0 -0
  262. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/safety/__init__.py +0 -0
  263. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/safety/permissions.py +0 -0
  264. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/signals/__init__.py +0 -0
  265. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/signals/gateway.py +0 -0
  266. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/signals/scheduled.py +0 -0
  267. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/signals/types.py +0 -0
  268. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/skills/__init__.py +0 -0
  269. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/skills/loader.py +0 -0
  270. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/skills/registry.py +0 -0
  271. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/skills/watcher.py +0 -0
  272. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/tools/__init__.py +0 -0
  273. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/tools/builtin/__init__.py +0 -0
  274. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/tools/builtin/read_file.py +0 -0
  275. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/tools/errors.py +0 -0
  276. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/tools/execution.py +0 -0
  277. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/tools/registry.py +0 -0
  278. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/types/__init__.py +0 -0
  279. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/types/agent.py +0 -0
  280. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/types/content.py +0 -0
  281. {deepstrike-0.2.84 → deepstrike-0.2.85}/deepstrike/types/content_policy.py +0 -0
@@ -293,7 +293,7 @@ dependencies = [
293
293
 
294
294
  [[package]]
295
295
  name = "deepstrike-core"
296
- version = "0.2.84"
296
+ version = "0.2.85"
297
297
  dependencies = [
298
298
  "compact_str",
299
299
  "deepstrike-tokenizer",
@@ -307,7 +307,7 @@ dependencies = [
307
307
 
308
308
  [[package]]
309
309
  name = "deepstrike-lab"
310
- version = "0.2.84"
310
+ version = "0.2.85"
311
311
  dependencies = [
312
312
  "serde",
313
313
  "serde_json",
@@ -315,7 +315,7 @@ dependencies = [
315
315
 
316
316
  [[package]]
317
317
  name = "deepstrike-node"
318
- version = "0.2.84"
318
+ version = "0.2.85"
319
319
  dependencies = [
320
320
  "compact_str",
321
321
  "deepstrike-core",
@@ -327,7 +327,7 @@ dependencies = [
327
327
 
328
328
  [[package]]
329
329
  name = "deepstrike-py"
330
- version = "0.2.84"
330
+ version = "0.2.85"
331
331
  dependencies = [
332
332
  "compact_str",
333
333
  "deepstrike-core",
@@ -338,7 +338,7 @@ dependencies = [
338
338
 
339
339
  [[package]]
340
340
  name = "deepstrike-sdk"
341
- version = "0.2.84"
341
+ version = "0.2.85"
342
342
  dependencies = [
343
343
  "async-stream",
344
344
  "async-trait",
@@ -376,7 +376,7 @@ dependencies = [
376
376
 
377
377
  [[package]]
378
378
  name = "deepstrike-tokenizer"
379
- version = "0.2.84"
379
+ version = "0.2.85"
380
380
  dependencies = [
381
381
  "pretty_assertions",
382
382
  "tiktoken-rs",
@@ -384,7 +384,7 @@ dependencies = [
384
384
 
385
385
  [[package]]
386
386
  name = "deepstrike-wasm"
387
- version = "0.2.84"
387
+ version = "0.2.85"
388
388
  dependencies = [
389
389
  "compact_str",
390
390
  "deepstrike-core",
@@ -3,13 +3,13 @@ resolver = "2"
3
3
  members = ["crates/deepstrike-core", "crates/deepstrike-tokenizer", "crates/deepstrike-py"]
4
4
 
5
5
  [workspace.package]
6
- version = "0.2.84"
6
+ version = "0.2.85"
7
7
  edition = "2024"
8
8
  repository = "https://github.com/kongusen/deepstrike"
9
9
 
10
10
  [workspace.dependencies]
11
- deepstrike-core = { path = "crates/deepstrike-core", version = "0.2.84" }
12
- deepstrike-tokenizer = { path = "crates/deepstrike-tokenizer", version = "0.2.84" }
11
+ deepstrike-core = { path = "crates/deepstrike-core", version = "0.2.85" }
12
+ deepstrike-tokenizer = { path = "crates/deepstrike-tokenizer", version = "0.2.85" }
13
13
  notify = "6"
14
14
  serde = { version = "1", features = ["derive"] }
15
15
  serde_json = "1"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: deepstrike
3
- Version: 0.2.84
3
+ Version: 0.2.85
4
4
  Requires-Dist: httpx>=0.27
5
5
  Requires-Dist: pyyaml>=6.0
6
6
  Requires-Dist: anyio>=4.0
@@ -13,15 +13,13 @@ License-File: LICENSE
13
13
  Requires-Python: >=3.10
14
14
  Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
15
15
 
16
- <p align="center">
17
- <a href="https://github.com/kongusen/deepstrike">
18
- <img src="https://raw.githubusercontent.com/kongusen/deepstrike/main/docs/public/banner.png" alt="DeepStrike" width="420" />
19
- </a>
20
- </p>
21
-
22
16
  # DeepStrike Python SDK
23
17
 
24
- Build Python Agents with providers, typed tools, memory, Skills, delegation, workflows, and durable sessions. The SDK keeps the Agent's long-running work explicit through stream events, SessionLog evidence, tool policies, and host-provided integrations.
18
+ Build a Python assistant that can recall a project preference in a later session. With a memory store and candidate sink, your application reviews what gets saved and the model can open the full record when needed.
19
+
20
+ [Install](#install) · [Run a tool](#quick-start) · [Add memory](#memory) · [All SDKs and examples](https://github.com/kongusen/deepstrike#run-your-first-agent)
21
+
22
+ ![A preference is proposed, approved and recalled by the next session](https://raw.githubusercontent.com/kongusen/deepstrike/main/docs/public/readme/memory-cycle.gif)
25
23
 
26
24
  ## Install
27
25
 
@@ -1,12 +1,10 @@
1
- <p align="center">
2
- <a href="https://github.com/kongusen/deepstrike">
3
- <img src="https://raw.githubusercontent.com/kongusen/deepstrike/main/docs/public/banner.png" alt="DeepStrike" width="420" />
4
- </a>
5
- </p>
6
-
7
1
  # DeepStrike Python SDK
8
2
 
9
- Build Python Agents with providers, typed tools, memory, Skills, delegation, workflows, and durable sessions. The SDK keeps the Agent's long-running work explicit through stream events, SessionLog evidence, tool policies, and host-provided integrations.
3
+ Build a Python assistant that can recall a project preference in a later session. With a memory store and candidate sink, your application reviews what gets saved and the model can open the full record when needed.
4
+
5
+ [Install](#install) · [Run a tool](#quick-start) · [Add memory](#memory) · [All SDKs and examples](https://github.com/kongusen/deepstrike#run-your-first-agent)
6
+
7
+ ![A preference is proposed, approved and recalled by the next session](https://raw.githubusercontent.com/kongusen/deepstrike/main/docs/public/readme/memory-cycle.gif)
10
8
 
11
9
  ## Install
12
10
 
@@ -539,6 +539,11 @@ pub struct WorkflowGraphState {
539
539
  /// private reverse edges, ready heap and agent lookup from this projection during restore.
540
540
  #[serde(default)]
541
541
  pub nodes: Vec<WorkflowNodeState>,
542
+ /// A host-driven dynamic root that is still waiting for further appends or the host's close.
543
+ /// Not derivable from `root_kind`, which is `Workflow` for static and dynamic roots alike: a
544
+ /// restore that dropped it would let the next settled batch terminate the root on its own.
545
+ #[serde(default, skip_serializing_if = "std::ops::Not::not")]
546
+ pub dynamic_open: bool,
542
547
  }
543
548
 
544
549
  /// One workflow node as source state rather than a snapshot of `TaskGraph` internals.
@@ -95,6 +95,7 @@ impl CanonicalOperationDriver {
95
95
  );
96
96
  WorkflowGraphState {
97
97
  workflow_id: workflow_id.clone(),
98
+ dynamic_open: engine.is_dynamic_workflow_open(),
98
99
  nodes: runtime_nodes
99
100
  .into_iter()
100
101
  .zip(self.workflow_nodes.iter())
@@ -569,6 +570,13 @@ impl CanonicalOperationDriver {
569
570
  let mut engine = build_engine(genesis_config);
570
571
  install_live_policies(&mut engine, &live_config);
571
572
  engine.set_root_workflow(state.transition.root_kind == Some(RootKind::Workflow));
573
+ engine.set_dynamic_workflow_open(
574
+ state
575
+ .scheduler
576
+ .workflow
577
+ .as_ref()
578
+ .is_some_and(|workflow| workflow.dynamic_open),
579
+ );
572
580
  driver.policy = Some(LivePolicyState::restore(
573
581
  state.syscall.policy_revision.unwrap_or(WireU64::ZERO),
574
582
  live_config.clone(),
@@ -12565,3 +12565,75 @@ fn kernel_text_tokens_count_signals_once_and_kernel_answers() {
12565
12565
  let restored = Runtime::restore_with(Some(&checkpoint), &[]);
12566
12566
  assert_eq!(tokens(&restored), expected, "the count survives a restore");
12567
12567
  }
12568
+
12569
+ #[test]
12570
+ fn a_dynamic_workflow_restored_from_a_checkpoint_stays_open_for_its_host() {
12571
+ let mut runtime = Runtime::new();
12572
+ runtime.submit(&configure());
12573
+ runtime.submit(&dynamic_workflow_start("dynamic-start", 1_700_000_001_000));
12574
+ // A checkpoint before the first append covers the empty root, too.
12575
+ let empty = runtime.checkpoint().decode().unwrap();
12576
+ let mut runtime = runtime.restore(&empty);
12577
+ let append = |id: &str, at: u64, node: &str| {
12578
+ control(
12579
+ id,
12580
+ at,
12581
+ HostCommand::AppendWorkflowNodes(AppendWorkflowNodesCommand {
12582
+ nodes: vec![wire_node(node, "dynamic work", &[])],
12583
+ plan: None,
12584
+ }),
12585
+ )
12586
+ };
12587
+ let first = runtime.submit(&append("append-one", 1_700_000_002_000, "node-one"));
12588
+ runtime.submit(&spawned(
12589
+ "ack-one",
12590
+ 1_700_000_003_000,
12591
+ &effect_id(first.step_seq),
12592
+ &["wf-node0"],
12593
+ ));
12594
+ runtime.submit(&child_done(
12595
+ "done-one",
12596
+ 1_700_000_004_000,
12597
+ "wf-node0",
12598
+ "first result",
12599
+ ));
12600
+ assert!(runtime.tx.terminal().is_none());
12601
+
12602
+ let checkpoint = runtime.checkpoint().decode().unwrap();
12603
+ let mut restored = runtime.restore(&checkpoint);
12604
+ assert!(
12605
+ restored.tx.terminal().is_none(),
12606
+ "a restore does not close the root"
12607
+ );
12608
+
12609
+ let second = restored.submit(&append("append-two", 1_700_000_005_000, "node-two"));
12610
+ assert_eq!(
12611
+ sole_effect(&second).tag(),
12612
+ EffectKindTag::SpawnTasks,
12613
+ "the restored root still accepts the host's next batch"
12614
+ );
12615
+ restored.submit(&spawned(
12616
+ "ack-two",
12617
+ 1_700_000_006_000,
12618
+ &effect_id(second.step_seq),
12619
+ &["wf-node1"],
12620
+ ));
12621
+ let done = restored.submit(&child_done(
12622
+ "done-two",
12623
+ 1_700_000_007_000,
12624
+ "wf-node1",
12625
+ "second result",
12626
+ ));
12627
+ assert!(done.published_effects().is_empty());
12628
+ assert!(
12629
+ restored.tx.terminal().is_none(),
12630
+ "a settled batch after restore still waits for the host's close"
12631
+ );
12632
+
12633
+ let closed = restored.submit(&control(
12634
+ "close",
12635
+ 1_700_000_008_000,
12636
+ HostCommand::CompleteDynamicWorkflow(CompleteDynamicWorkflowCommand {}),
12637
+ ));
12638
+ assert!(closed.step.disposition.is_terminal());
12639
+ }
@@ -1,6 +1,7 @@
1
1
  """Plan task 6.3 · dynamic workflows: a host program decides, step by step, which agents to run.
2
2
 
3
- The program is ordinary async Python. Each ``agent`` (or ``parallel_agents`` batch) becomes one
3
+ The program is ordinary async Python. Each ``parallel_agents`` batch, and every set of ``agent``
4
+ calls made in the same turn of the event loop (the workers of a ``parallel``), becomes one
4
5
  submission the kernel admits onto the operation's dynamic workflow root — the kernel still owns the
5
6
  DAG, its budgets and every spawn — and the program awaits the typed result before deciding what
6
7
  comes next. The vocabulary matches the Node SDK's ``runDynamicWorkflow``; replay of a saved run and
@@ -161,9 +162,46 @@ class DynamicWorkflowContext:
161
162
  self._next_node = 0
162
163
  self._sequence = 0
163
164
  self._slots = asyncio.Semaphore(limits.max_concurrent_agents)
165
+ self._pending: list[tuple[DynamicWorkflowAgentRequest, asyncio.Future[DynamicWorkflowAgentResult | None]]] = []
166
+ self._flush: asyncio.Task[None] | None = None
164
167
 
165
168
  async def agent(self, prompt: str, options: DynamicWorkflowAgentOptions | None = None) -> DynamicWorkflowAgentResult | None:
166
- return (await self._run_batch([agent_task(prompt, options)]))[0]
169
+ future: asyncio.Future[DynamicWorkflowAgentResult | None] = asyncio.get_running_loop().create_future()
170
+ self._pending.append((agent_task(prompt, options), future))
171
+ if self._flush is None:
172
+ # Its first step runs after the tasks already scheduled, so every worker of a ``parallel``
173
+ # reaches its call first.
174
+ self._flush = asyncio.ensure_future(self._flush_agents())
175
+ return await future
176
+
177
+ async def _flush_agents(self) -> None:
178
+ """Submit the pending ``agent`` calls in batches of at most ``max_concurrent_agents``.
179
+
180
+ The host admits one submission at a time, so separate submissions would run one after another.
181
+ Each call settles on its own: calls past ``max_agents_per_run`` fail alone, the rest still run.
182
+ """
183
+ calls, self._pending, self._flush = self._pending, [], None
184
+ size = self._limits.max_concurrent_agents
185
+ for start in range(0, len(calls), size):
186
+ chunk = calls[start:start + size]
187
+ room = max(0, self._limits.max_agents_per_run - self.progress.agents_started)
188
+ for _, future in chunk[room:]:
189
+ if not future.done():
190
+ future.set_exception(DynamicWorkflowLimitError(
191
+ f"dynamic workflow exceeded max_agents_per_run ({self._limits.max_agents_per_run})"))
192
+ admitted = chunk[:room]
193
+ if not admitted:
194
+ continue
195
+ try:
196
+ results = await self._run_batch([request for request, _ in admitted])
197
+ except Exception as error: # noqa: BLE001 - delivered to each waiting call
198
+ for _, future in admitted:
199
+ if not future.done():
200
+ future.set_exception(error)
201
+ continue
202
+ for (_, future), result in zip(admitted, results):
203
+ if not future.done():
204
+ future.set_result(result)
167
205
 
168
206
  async def parallel_agents(self, requests: list[DynamicWorkflowAgentRequest]) -> list[DynamicWorkflowAgentResult | None]:
169
207
  if len(requests) > self._limits.max_batch_size:
@@ -4,7 +4,7 @@ build-backend = "maturin"
4
4
 
5
5
  [project]
6
6
  name = "deepstrike"
7
- version = "0.2.84"
7
+ version = "0.2.85"
8
8
  requires-python = ">=3.10"
9
9
  readme = "README.md"
10
10
  license = {file = "LICENSE"}
File without changes