jayrun 0.3.0__tar.gz → 0.3.2__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 (252) hide show
  1. {jayrun-0.3.0 → jayrun-0.3.2}/CHANGELOG.md +78 -0
  2. jayrun-0.3.2/PKG-INFO +164 -0
  3. jayrun-0.3.2/README.md +131 -0
  4. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/__init__.py +1 -1
  5. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/authority.py +3 -1
  6. jayrun-0.3.2/jayrun/core/graph/declaration_report.py +193 -0
  7. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/graph_definition.py +24 -1
  8. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/reporting.py +47 -6
  9. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/_history.py +2 -1
  10. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/api.py +3 -0
  11. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/coordinator/runtime_loop.py +52 -5
  12. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/runtime.py +24 -17
  13. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/registry/runtime_registry.py +45 -32
  14. jayrun-0.3.2/jayrun/engine/scheduler/_windows_memory.py +61 -0
  15. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/scheduler/memory.py +7 -0
  16. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/settings/__init__.py +2 -0
  17. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/settings/engine.py +16 -0
  18. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/_database.py +2 -1
  19. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/settings.py +2 -0
  20. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_legacy.py +6 -1
  21. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/definition.py +12 -7
  22. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/registry.py +2 -0
  23. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/contract.py +19 -5
  24. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/viewer.css +3 -0
  25. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/viewer.js +32 -2
  26. jayrun-0.3.2/jayrun.egg-info/PKG-INFO +164 -0
  27. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun.egg-info/SOURCES.txt +2 -0
  28. {jayrun-0.3.0 → jayrun-0.3.2}/pyproject.toml +1 -1
  29. jayrun-0.3.0/PKG-INFO +0 -171
  30. jayrun-0.3.0/README.md +0 -138
  31. jayrun-0.3.0/jayrun.egg-info/PKG-INFO +0 -171
  32. {jayrun-0.3.0 → jayrun-0.3.2}/LICENSE +0 -0
  33. {jayrun-0.3.0 → jayrun-0.3.2}/MANIFEST.in +0 -0
  34. {jayrun-0.3.0 → jayrun-0.3.2}/NOTICE +0 -0
  35. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/context.py +0 -0
  36. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/artifact/base.py +0 -0
  37. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/artifact/context.py +0 -0
  38. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/artifact/field.py +0 -0
  39. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/artifact/properties.py +0 -0
  40. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/base/error.py +0 -0
  41. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/config/context.py +0 -0
  42. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/config/field.py +0 -0
  43. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/config/values.py +0 -0
  44. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/context/base.py +0 -0
  45. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/context/runtime_data.py +0 -0
  46. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/declaration/field.py +0 -0
  47. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/_identity.py +0 -0
  48. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/_specifier_compat.py +0 -0
  49. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/artifact_flow.py +0 -0
  50. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/compiled_graph.py +0 -0
  51. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/definition/__init__.py +0 -0
  52. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/definition/artifact.py +0 -0
  53. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/definition/data.py +0 -0
  54. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/definition/field.py +0 -0
  55. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/definition/requirement.py +0 -0
  56. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/definition/serializer.py +0 -0
  57. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/graph_component.py +0 -0
  58. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/graph_layout.py +0 -0
  59. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/graph_registry.py +0 -0
  60. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/graph_specification.py +0 -0
  61. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/graph_state.py +0 -0
  62. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/inspection/artifact.py +0 -0
  63. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/inspection/field.py +0 -0
  64. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/inspection/graph.py +0 -0
  65. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/inspection/registry.py +0 -0
  66. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/inspection/requirement.py +0 -0
  67. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/inspection/resource.py +0 -0
  68. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/inspection/serializer.py +0 -0
  69. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/operator_reference.py +0 -0
  70. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/registry/__init__.py +0 -0
  71. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/registry/artifact.py +0 -0
  72. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/registry/config.py +0 -0
  73. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/registry/data.py +0 -0
  74. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/registry/field.py +0 -0
  75. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/registry/resource.py +0 -0
  76. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/graph/requirements.py +0 -0
  77. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/operator/base.py +0 -0
  78. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/resource/base.py +0 -0
  79. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/resource/context.py +0 -0
  80. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/resource/field.py +0 -0
  81. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/serializer/__init__.py +0 -0
  82. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/serializer/base.py +0 -0
  83. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/validation/__init__.py +0 -0
  84. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/validation/artifact.py +0 -0
  85. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/validation/graph.py +0 -0
  86. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/validation/plotting.py +0 -0
  87. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/core/validation/validation.py +0 -0
  88. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/__init__.py +0 -0
  89. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_client.py +0 -0
  90. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_evidence.py +0 -0
  91. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_graph.py +0 -0
  92. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_history.py +0 -0
  93. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_location.py +0 -0
  94. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_observation.py +0 -0
  95. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_page.py +0 -0
  96. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_service.py +0 -0
  97. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_style.py +0 -0
  98. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/dashboard/_workspace.py +0 -0
  99. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/_capture_values.py +0 -0
  100. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/_timing.py +0 -0
  101. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/artifact/__init__.py +0 -0
  102. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/artifact/actor.py +0 -0
  103. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/artifact/result.py +0 -0
  104. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/artifact/state.py +0 -0
  105. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/artifact/store.py +0 -0
  106. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/base/runtime_module.py +0 -0
  107. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/context_manager.py +0 -0
  108. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/context_outcome.py +0 -0
  109. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/execution_context.py +0 -0
  110. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/execution_proxy.py +0 -0
  111. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/execution_session.py +0 -0
  112. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/execution_state.py +0 -0
  113. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/execution_step.py +0 -0
  114. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/execution_tracker.py +0 -0
  115. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/resource_key.py +0 -0
  116. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context/step_reference.py +0 -0
  117. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/context_run.py +0 -0
  118. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/coordinator/__init__.py +0 -0
  119. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/coordinator/batch_size_estimator.py +0 -0
  120. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/coordinator/coordinator.py +0 -0
  121. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/coordinator/message_queue.py +0 -0
  122. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/coordinator/state.py +0 -0
  123. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/coordinator/timeout_estimator.py +0 -0
  124. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/engine_state.py +0 -0
  125. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/execution/async_executor.py +0 -0
  126. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/execution/execution_mode.py +0 -0
  127. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/execution/executor_manager.py +0 -0
  128. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/execution/thread_executor.py +0 -0
  129. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/gateway/engine_gateway.py +0 -0
  130. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/history_budget.py +0 -0
  131. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/base.py +0 -0
  132. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/context.py +0 -0
  133. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/context_record.py +0 -0
  134. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/execution.py +0 -0
  135. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/placement.py +0 -0
  136. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/services/accesses.py +0 -0
  137. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/services/context.py +0 -0
  138. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/services/control.py +0 -0
  139. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/interfaces/services/storage.py +0 -0
  140. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/limits.py +0 -0
  141. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/__init__.py +0 -0
  142. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/capability.py +0 -0
  143. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/__init__.py +0 -0
  144. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/abort_context.py +0 -0
  145. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/apply_snapshot.py +0 -0
  146. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/pause_context.py +0 -0
  147. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/reconcile_contexts.py +0 -0
  148. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/record_context.py +0 -0
  149. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/resume_context.py +0 -0
  150. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/retrieve_session.py +0 -0
  151. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/shutdown_runtime.py +0 -0
  152. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/start_context.py +0 -0
  153. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/stop_context.py +0 -0
  154. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/commands/transfer_context.py +0 -0
  155. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/events/__init__.py +0 -0
  156. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/events/context_admitted.py +0 -0
  157. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/events/context_registered.py +0 -0
  158. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/events/context_terminated.py +0 -0
  159. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/events/runtime_idle.py +0 -0
  160. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/origin.py +0 -0
  161. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/runtime_message.py +0 -0
  162. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/messages/runtime_messenger.py +0 -0
  163. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/observation.py +0 -0
  164. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/pressure.py +0 -0
  165. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/progress.py +0 -0
  166. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/progress_history.py +0 -0
  167. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/__init__.py +0 -0
  168. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/artifact/__init__.py +0 -0
  169. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/artifact/artifact_state.py +0 -0
  170. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/artifact/debug_recorder.py +0 -0
  171. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/artifact/production_recorder.py +0 -0
  172. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/artifact/record.py +0 -0
  173. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/artifact/recorder.py +0 -0
  174. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/artifact/state.py +0 -0
  175. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/context/__init__.py +0 -0
  176. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/context/debug_recorder.py +0 -0
  177. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/context/production_recorder.py +0 -0
  178. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/context/recorder.py +0 -0
  179. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/context/report.py +0 -0
  180. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/context/state.py +0 -0
  181. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/execution/__init__.py +0 -0
  182. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/execution/debug_recorder.py +0 -0
  183. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/execution/production_recorder.py +0 -0
  184. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/execution/recorder.py +0 -0
  185. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/execution/records.py +0 -0
  186. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/recorders/execution/state.py +0 -0
  187. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/registry/__init__.py +0 -0
  188. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/registry/context_id_generator.py +0 -0
  189. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/registry/context_instance.py +0 -0
  190. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/registry/context_state.py +0 -0
  191. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/registry/context_status.py +0 -0
  192. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/__init__.py +0 -0
  193. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/cached_resource.py +0 -0
  194. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/device_allocator.py +0 -0
  195. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/placement.py +0 -0
  196. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/placement_controller.py +0 -0
  197. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/placement_request.py +0 -0
  198. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/resource_manager.py +0 -0
  199. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/resource/resource_state.py +0 -0
  200. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/runtime.py +0 -0
  201. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/scheduler/context.py +0 -0
  202. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/settings/_instrumentation.py +0 -0
  203. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/settings/combined_context.py +0 -0
  204. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/settings/context.py +0 -0
  205. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/snapshot.py +0 -0
  206. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/submission.py +0 -0
  207. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/supervisor.py +0 -0
  208. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/engine/terminal_history.py +0 -0
  209. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/inspection.py +0 -0
  210. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/__init__.py +0 -0
  211. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/_sqlite.py +0 -0
  212. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/backend.py +0 -0
  213. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/errors.py +0 -0
  214. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/legacy.py +0 -0
  215. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/policy.py +0 -0
  216. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/records.py +0 -0
  217. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/persistence/values.py +0 -0
  218. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/placement.py +0 -0
  219. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/properties.py +0 -0
  220. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/py.typed +0 -0
  221. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/registry.py +0 -0
  222. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/reporting/__init__.py +0 -0
  223. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/reporting/_completed.py +0 -0
  224. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/reporting/_history.py +0 -0
  225. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/serialization.py +0 -0
  226. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/validation.py +0 -0
  227. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/__init__.py +0 -0
  228. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_copy.js +0 -0
  229. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_facade.py +0 -0
  230. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_help/__init__.py +0 -0
  231. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_help/content.js +0 -0
  232. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_help/controller.js +0 -0
  233. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_help/style.css +0 -0
  234. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_run.js +0 -0
  235. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_segments.py +0 -0
  236. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_theme.css +0 -0
  237. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_workspace.css +0 -0
  238. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_workspace.js +0 -0
  239. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/_workspace.py +0 -0
  240. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/__init__.py +0 -0
  241. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/_legacy_history.py +0 -0
  242. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/_requirements.py +0 -0
  243. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/completed.py +0 -0
  244. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/history.py +0 -0
  245. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/adapters/live.py +0 -0
  246. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/colors.py +0 -0
  247. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/layout.py +0 -0
  248. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun/visualization/renderer.py +0 -0
  249. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun.egg-info/dependency_links.txt +0 -0
  250. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun.egg-info/requires.txt +0 -0
  251. {jayrun-0.3.0 → jayrun-0.3.2}/jayrun.egg-info/top_level.txt +0 -0
  252. {jayrun-0.3.0 → jayrun-0.3.2}/setup.cfg +0 -0
@@ -4,6 +4,80 @@ All notable changes to Jayrun are documented in this file.
4
4
 
5
5
  Release notes describe new capabilities, compatibility changes and fixes.
6
6
 
7
+ ## [0.3.2] - 2026-11-22
8
+
9
+ ### Fixed
10
+
11
+ - On Windows, context admission and `Engine.pressure` now read available
12
+ physical memory and the process's current working set through Win32. This
13
+ fixes an `AttributeError` during pressure sampling and allows the scheduler
14
+ to enforce a configured CPU memory limit and resume queued work after recovery.
15
+ - On Windows, `Database()` now uses `LOCALAPPDATA` when set, including in
16
+ processes without a home directory. It consults the user profile only
17
+ when it needs the fallback path.
18
+
19
+ ## [0.3.1] - 2026-11-17
20
+
21
+ ### Added
22
+
23
+ - `EngineSettings.controller_policy` with `ControllerPolicy.HOST_ONLY` (default)
24
+ and `ControllerPolicy.DELEGATED`, available from `jayrun.settings`.
25
+ - With `DELEGATED`, live Controllers can submit child Controller and Supervisor
26
+ workflows. Child Controllers may submit further workflows with authority.
27
+ - Controllers can submit newly constructed, confirmed `GraphDefinition` objects
28
+ directly without a graph registry, as well as registered graph identities.
29
+
30
+ - Optional graph `name` and `description`, preserved without changing structural
31
+ graph identity.
32
+ - Structured declaration reports through `graph.report.to_dict()` and
33
+ `graph.report.to_json()`, using schema `jayrun.declaration/1`. Reports preserve
34
+ authored intent, component references, bindings and construction limitations.
35
+ - A separate **Export declaration report** action in confirmed graph viewers,
36
+ including registry and captured dashboard views. The download preserves the
37
+ report JSON exactly, including integers outside JavaScript's safe range.
38
+
39
+ ### Changed
40
+
41
+ - `self.runtime.submit(graph, artifacts, configs, settings=..., authority=...)`
42
+ now matches `Engine.submit()` arguments and validation rules. A configured
43
+ registry still requires submitted graph objects to be registered.
44
+ - Controller guides and API references explain delegated submission, child
45
+ lifetimes, explicit history grants, routing and capacity requirements.
46
+ - Engine history settings include the selected `controller_policy`.
47
+
48
+ ### Fixed
49
+
50
+ - Owned Engine startup now bounds loop initialization and cross-thread readiness
51
+ acknowledgement to five seconds, with bounded failure cleanup. External event
52
+ loop ownership is unchanged; this is not a deadline for the entire start call.
53
+ - Graph viewers display authored graph names/descriptions and support long
54
+ descriptions within their aggregate export bounds.
55
+ - Legacy viewer detail strings now use safe inspection metadata, avoiding raw
56
+ representations that could bypass sensitive-default redaction.
57
+
58
+ ### Compatibility
59
+
60
+ - Replace keyword `runtime.submit(graph_key=...)` with `runtime.submit(graph=...)`.
61
+ Existing positional registered-identity calls continue to work.
62
+ - Under `HOST_ONLY`, any non-None runtime `authority` raises `PermissionError`;
63
+ previously the unsupported keyword raised `TypeError`. Host authority grants
64
+ remain available under either policy.
65
+ - Ordinary contexts and Supervisors still cannot submit workflows. Supervisor
66
+ graph scope is unchanged. Children belong to the Engine and can outlive their
67
+ parent; parent-issued handles and borrowed history readers keep their existing
68
+ authority lifetimes.
69
+ - Waiting parents retain execution slots. Configure sufficient `max_tasks` and
70
+ `max_workers` for nested workflows. Delegation does not add automatic child
71
+ cancellation, deadlock prevention or a process sandbox.
72
+
73
+ - Text reports and existing viewer/execution exports remain available. Declaration
74
+ JSON requires a confirmed graph and does not include operator implementations,
75
+ submitted values or execution evidence. Missing construction information and
76
+ redacted defaults are explicit; no automatic reconstruction or importer is added.
77
+ - Existing aggregate viewer and dashboard capture limits still apply. Regenerate
78
+ old HTML exports to include declaration reports; history-only snapshots without
79
+ a captured report cannot supply one.
80
+
7
81
  ## [0.3.0] - 2026-09-28
8
82
 
9
83
  ### Added
@@ -107,3 +181,7 @@ for supported imports, complete examples and operational limits.
107
181
  [0.1.0]: https://github.com/jayrun-project/jayrun/releases/tag/v0.1.0
108
182
 
109
183
  [0.3.0]: https://github.com/jayrun-project/jayrun/compare/v0.2.0...v0.3.0
184
+
185
+ [0.3.1]: https://github.com/jayrun-project/jayrun/compare/v0.3.0...v0.3.1
186
+
187
+ [0.3.2]: https://github.com/jayrun-project/jayrun/compare/v0.3.1...v0.3.2
jayrun-0.3.2/PKG-INFO ADDED
@@ -0,0 +1,164 @@
1
+ Metadata-Version: 2.4
2
+ Name: jayrun
3
+ Version: 0.3.2
4
+ Summary: Artifact-centric execution for iterative graphs, shared resources, and placement-aware workloads
5
+ Author: Masoud Yavari
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/jayrun-project/jayrun
8
+ Project-URL: Documentation, https://jayrun.readthedocs.io/
9
+ Project-URL: Repository, https://github.com/jayrun-project/jayrun
10
+ Project-URL: Issues, https://github.com/jayrun-project/jayrun/issues
11
+ Keywords: artifacts,dag,execution,orchestration,resources,scheduling,workflow
12
+ Classifier: Development Status :: 3 - Alpha
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Intended Audience :: Science/Research
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
23
+ Classifier: Typing :: Typed
24
+ Requires-Python: >=3.11
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ License-File: NOTICE
28
+ Requires-Dist: packaging>=25
29
+ Provides-Extra: yaml
30
+ Requires-Dist: PyYAML>=6.0; extra == "yaml"
31
+ Provides-Extra: plotting
32
+ Dynamic: license-file
33
+
34
+ # Jayrun
35
+
36
+ **Build, run, and inspect Python computation graphs with reusable resources and a live dashboard.**
37
+
38
+ Jayrun is a Python execution framework for pipelines, iterative experiments and application services. Define each step with a synchronous or asynchronous Python method. Jayrun passes artifact values between the steps and manages execution and resource lifetimes.
39
+
40
+ **Latest release:** [0.3.2](https://pypi.org/project/jayrun/0.3.2/) · [Release notes](CHANGELOG.md#032---2026-11-22)
41
+
42
+ [![PyPI version](https://img.shields.io/pypi/v/jayrun.svg)](https://pypi.org/project/jayrun/)
43
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/)
44
+ [![CI](https://github.com/jayrun-project/jayrun/actions/workflows/ci.yml/badge.svg)](https://github.com/jayrun-project/jayrun/actions/workflows/ci.yml)
45
+ [![Documentation](https://github.com/jayrun-project/jayrun/actions/workflows/docs.yml/badge.svg)](https://github.com/jayrun-project/jayrun/actions/workflows/docs.yml)
46
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/jayrun-project/jayrun/blob/main/LICENSE)
47
+
48
+ [Documentation](https://jayrun.readthedocs.io/en/latest/) · [Quick start](#quick-start) · [Explore the dashboard](https://jayrun.readthedocs.io/en/latest/guides/visualization/dashboard.html) · [Tutorials](#tutorials) · [API reference](https://jayrun.readthedocs.io/en/latest/reference/imports.html)
49
+
50
+ [![Jayrun dashboard listing running and paused contexts with graph versions, progress and iteration counts](https://raw.githubusercontent.com/jayrun-project/jayrun/main/docs/_static/screenshots/dashboard.png)](https://jayrun.readthedocs.io/en/latest/guides/visualization/dashboard.html)
51
+
52
+ *Follow running and paused work in the dashboard. Click to explore the offline preview and learn how to start your own.*
53
+
54
+ ## What Jayrun does
55
+
56
+ - **Reuse expensive resources.** Share models, calibration data and clients across compatible runs, with managed acquisition and teardown.
57
+ - **Release intermediate data automatically.** Let Jayrun release consumed artifact values when execution no longer needs them. Retention policies and application references determine what stays alive.
58
+ - **Inspect and control execution.** Visualize graphs before running them, follow live work in the dashboard, and inspect captured results, timings and records afterward.
59
+
60
+ Declare a graph once, then submit it with different inputs and configuration. Graphs can include branches, conditional routes and iteration. They can also act as observers or controllers for other work—the dashboard itself is built as a graph.
61
+
62
+ See [the overview](https://jayrun.readthedocs.io/en/latest/start/overview.html) for applications and [data and lifetimes](https://jayrun.readthedocs.io/en/latest/start/data-and-lifetimes.html) for how artifacts, configuration and resources fit together. The example below introduces these ideas with a single calculation.
63
+
64
+ ## Quick start
65
+
66
+ Install Jayrun with Python 3.11 or later:
67
+
68
+ ```bash
69
+ python -m pip install jayrun
70
+ ```
71
+
72
+ The only required third-party runtime dependency is `packaging`. Install `jayrun[yaml]` if you need YAML configuration support; workload libraries such as PyTorch are application dependencies.
73
+
74
+ Save this program as `first_graph.py` and run `python first_graph.py`. It declares a multiplication, confirms the graph, supplies input and configuration, and prints `21`:
75
+
76
+ ```python
77
+ from jayrun import (
78
+ Artifact, ArtifactContext, ArtifactField, ArtifactFlow, BaseOperator,
79
+ ConfigContext, ConfigField, Engine, GraphDefinition,
80
+ )
81
+ from jayrun.context import ContextState
82
+
83
+
84
+ class Scale(BaseOperator):
85
+ def __init__(self, *, source, outputs):
86
+ super().__init__()
87
+ self.source = ArtifactField()
88
+ self.factor = ConfigField(value_type=int)
89
+ self.outputs = (ArtifactField(),)
90
+
91
+ def execute(self):
92
+ result = self.source.value * self.factor.value
93
+ self.context.record("scaled", result)
94
+ return result
95
+
96
+
97
+ source = Artifact(name="source")
98
+ result = Artifact(name="result")
99
+ scale = Scale(source=source, outputs=(result,))
100
+ flow = ArtifactFlow(scale, artifact=source)
101
+ graph = GraphDefinition(flow, entry_flows=flow)
102
+ graph.confirm()
103
+
104
+ with Engine() as engine:
105
+ run = engine.submit(
106
+ graph,
107
+ ArtifactContext({source: 7}),
108
+ ConfigContext({scale.factor: 3}),
109
+ )
110
+ run.wait(timeout=10)
111
+ if run.state is not ContextState.FINISHED:
112
+ raise RuntimeError(str(run.report.data.failure))
113
+ print(run.artifact(result).value) # 21
114
+ ```
115
+
116
+ `ArtifactContext` supplies the input value, and `ConfigContext` supplies the multiplication factor. The constructor declares fields; Jayrun automatically binds the `source` argument to `self.source` by name and the `outputs` tuple to `self.outputs` by position.
117
+
118
+ Each submission returns its own `ContextRun`. `run.wait()` waits for finalization, which can include failure, so the example checks the outcome before reading the result. Execution settings separately control policies such as retries and iteration limits.
119
+
120
+ The same confirmed graph can serve another submission. The [complete walkthrough](https://jayrun.readthedocs.io/en/latest/start/first-graph.html) explains each step, reads the recorded value and visualizes the finished run.
121
+
122
+ ## Inspect your graphs and runs
123
+
124
+ Once you have a graph, save its structure with `graph.plot.save("graph.html")`. After execution, save the completed run with `run.plot.save("run.html")` to explore captured outcomes, timings, records and reports. Both create interactive HTML viewers that open in a browser.
125
+
126
+ [![Split-and-join graph with an explicit Splitter, two processing branches and a Join operator](https://raw.githubusercontent.com/jayrun-project/jayrun/main/docs/_static/screenshots/split-and-join.png)](https://jayrun.readthedocs.io/en/latest/guides/visualization/graphs.html)
127
+
128
+ *A split-and-join graph with two processing branches. Click to explore the interactive declaration.*
129
+
130
+ For live work, use the [dashboard](https://jayrun.readthedocs.io/en/latest/guides/visualization/dashboard.html) shown above. You can also build your own monitoring or coordination graph using `self.runtime`; see the [Controller example](https://jayrun.readthedocs.io/en/latest/guides/runtime/controller.html). The [visualization and reporting guide](https://jayrun.readthedocs.io/en/latest/guides/evidence/plots.html) covers declarations, registries, completed runs and the dashboard.
131
+
132
+ To keep diagnostic history beyond an Engine session, pass `Database("execution.sqlite")` from `jayrun.persistence` to `Engine(database=...)`. The Engine owns the database lifecycle. After computation finishes, call `engine.database.flush()` to check that pending history was stored successfully. The [Persistence and Database guide](https://jayrun.readthedocs.io/en/latest/guides/evidence/persistence.html) shows how to write history and read it after the Engine closes. Stored history is separate from application checkpoints and arbitrary artifact storage.
133
+
134
+ ## Tutorials
135
+
136
+ Ready for a larger workflow? Each tutorial includes a walkthrough, Python source and a notebook, with a small offline CPU path:
137
+
138
+ | Tutorial | What it demonstrates | Run it |
139
+ | --- | --- | --- |
140
+ | [Build and validate](https://jayrun.readthedocs.io/en/latest/tutorials/build-and-validate-graph.html) | Properties, diagnostics and corrected execution | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/build_graph.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/01_build_graph.ipynb) |
141
+ | [Image service](https://jayrun.readthedocs.io/en/latest/tutorials/denoise-images-with-fastapi.html) | Async service, shared client and routing | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/denoise_images.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/02_denoise_images.ipynb) |
142
+ | [Shared model inference](https://jayrun.readthedocs.io/en/latest/tutorials/mnist-inference-and-training.html#share-a-read-only-model-for-inference) | Read-only model reuse and placement | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/mnist_inference.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/03_mnist_inference.ipynb) |
143
+ | [Supervised training](https://jayrun.readthedocs.io/en/latest/tutorials/mnist-inference-and-training.html#supervise-replace-and-promote) | Iteration, mutable state and scoped supervision | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/mnist_training.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/04_mnist_training.ipynb) |
144
+ | [Document service](https://jayrun.readthedocs.io/en/latest/tutorials/document-ingestion.html) | Long-running jobs and transactional publication | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/document_ingestion.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/05_document_ingestion.ipynb) |
145
+ | [Adapter checkpointing](https://jayrun.readthedocs.io/en/latest/tutorials/checkpointed-adapter-finetuning.html) | Model/optimizer/RNG checkpoints | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/adapter_finetuning.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/06_adapter_finetuning.ipynb) |
146
+ | [Scientific campaign](https://jayrun.readthedocs.io/en/latest/tutorials/adaptive-scientific-calibration.html) | Adaptive control and reproducibility | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/heat_calibration.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/07_heat_calibration.ipynb) |
147
+
148
+ The tutorial sources and notebooks live in the [GitHub tutorials directory](https://github.com/jayrun-project/jayrun/tree/main/tutorials); they are not included in `pip install jayrun`. Start with the [tutorial setup guide](https://jayrun.readthedocs.io/en/latest/tutorials/index.html) to get the repository, install lesson dependencies and choose a CPU or optional GPU/model workload. For a specific task, follow the guides on [graph construction](https://jayrun.readthedocs.io/en/latest/guides/workflow/index.html), [resources](https://jayrun.readthedocs.io/en/latest/guides/graphs/resources.html), [component interfaces](https://jayrun.readthedocs.io/en/latest/guides/components/index.html) or [application integration](https://jayrun.readthedocs.io/en/latest/guides/integration/index.html).
149
+
150
+ ## Community
151
+
152
+ Have a question or a workflow to share? Join [GitHub Discussions](https://github.com/jayrun-project/jayrun/discussions). Report bugs and request features through [GitHub Issues](https://github.com/jayrun-project/jayrun/issues); for bugs, include a small reproducible example and your Python and Jayrun versions.
153
+
154
+ You can also help by reporting confusing examples, suggesting documentation improvements or sharing how you use Jayrun. The [documentation sources](https://github.com/jayrun-project/jayrun/blob/main/docs/index.md) are included in this repository.
155
+
156
+ ## Scope and project status
157
+
158
+ Jayrun manages graph execution and ownership. Applications supply network transport, authentication, external side effects and checkpoint contents. Placement accounts for declared capacity rather than allocating devices, and cleanup releases framework references rather than guaranteeing an immediate drop in process memory. See [supported behavior and limitations](https://jayrun.readthedocs.io/en/latest/reference/limits.html).
159
+
160
+ Jayrun provides a tested foundation for graph execution, with ongoing improvements to reliability, usability and documentation. Use imports from `jayrun` and its [documented public modules](https://jayrun.readthedocs.io/en/latest/reference/imports.html); `jayrun.core` and `jayrun.engine` are implementation details.
161
+
162
+ ## License
163
+
164
+ [Apache License 2.0](https://github.com/jayrun-project/jayrun/blob/main/LICENSE). Copyright 2026 Masoud Yavari.
jayrun-0.3.2/README.md ADDED
@@ -0,0 +1,131 @@
1
+ # Jayrun
2
+
3
+ **Build, run, and inspect Python computation graphs with reusable resources and a live dashboard.**
4
+
5
+ Jayrun is a Python execution framework for pipelines, iterative experiments and application services. Define each step with a synchronous or asynchronous Python method. Jayrun passes artifact values between the steps and manages execution and resource lifetimes.
6
+
7
+ **Latest release:** [0.3.2](https://pypi.org/project/jayrun/0.3.2/) · [Release notes](CHANGELOG.md#032---2026-11-22)
8
+
9
+ [![PyPI version](https://img.shields.io/pypi/v/jayrun.svg)](https://pypi.org/project/jayrun/)
10
+ [![Python](https://img.shields.io/badge/python-3.11%2B-blue.svg)](https://www.python.org/)
11
+ [![CI](https://github.com/jayrun-project/jayrun/actions/workflows/ci.yml/badge.svg)](https://github.com/jayrun-project/jayrun/actions/workflows/ci.yml)
12
+ [![Documentation](https://github.com/jayrun-project/jayrun/actions/workflows/docs.yml/badge.svg)](https://github.com/jayrun-project/jayrun/actions/workflows/docs.yml)
13
+ [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](https://github.com/jayrun-project/jayrun/blob/main/LICENSE)
14
+
15
+ [Documentation](https://jayrun.readthedocs.io/en/latest/) · [Quick start](#quick-start) · [Explore the dashboard](https://jayrun.readthedocs.io/en/latest/guides/visualization/dashboard.html) · [Tutorials](#tutorials) · [API reference](https://jayrun.readthedocs.io/en/latest/reference/imports.html)
16
+
17
+ [![Jayrun dashboard listing running and paused contexts with graph versions, progress and iteration counts](https://raw.githubusercontent.com/jayrun-project/jayrun/main/docs/_static/screenshots/dashboard.png)](https://jayrun.readthedocs.io/en/latest/guides/visualization/dashboard.html)
18
+
19
+ *Follow running and paused work in the dashboard. Click to explore the offline preview and learn how to start your own.*
20
+
21
+ ## What Jayrun does
22
+
23
+ - **Reuse expensive resources.** Share models, calibration data and clients across compatible runs, with managed acquisition and teardown.
24
+ - **Release intermediate data automatically.** Let Jayrun release consumed artifact values when execution no longer needs them. Retention policies and application references determine what stays alive.
25
+ - **Inspect and control execution.** Visualize graphs before running them, follow live work in the dashboard, and inspect captured results, timings and records afterward.
26
+
27
+ Declare a graph once, then submit it with different inputs and configuration. Graphs can include branches, conditional routes and iteration. They can also act as observers or controllers for other work—the dashboard itself is built as a graph.
28
+
29
+ See [the overview](https://jayrun.readthedocs.io/en/latest/start/overview.html) for applications and [data and lifetimes](https://jayrun.readthedocs.io/en/latest/start/data-and-lifetimes.html) for how artifacts, configuration and resources fit together. The example below introduces these ideas with a single calculation.
30
+
31
+ ## Quick start
32
+
33
+ Install Jayrun with Python 3.11 or later:
34
+
35
+ ```bash
36
+ python -m pip install jayrun
37
+ ```
38
+
39
+ The only required third-party runtime dependency is `packaging`. Install `jayrun[yaml]` if you need YAML configuration support; workload libraries such as PyTorch are application dependencies.
40
+
41
+ Save this program as `first_graph.py` and run `python first_graph.py`. It declares a multiplication, confirms the graph, supplies input and configuration, and prints `21`:
42
+
43
+ ```python
44
+ from jayrun import (
45
+ Artifact, ArtifactContext, ArtifactField, ArtifactFlow, BaseOperator,
46
+ ConfigContext, ConfigField, Engine, GraphDefinition,
47
+ )
48
+ from jayrun.context import ContextState
49
+
50
+
51
+ class Scale(BaseOperator):
52
+ def __init__(self, *, source, outputs):
53
+ super().__init__()
54
+ self.source = ArtifactField()
55
+ self.factor = ConfigField(value_type=int)
56
+ self.outputs = (ArtifactField(),)
57
+
58
+ def execute(self):
59
+ result = self.source.value * self.factor.value
60
+ self.context.record("scaled", result)
61
+ return result
62
+
63
+
64
+ source = Artifact(name="source")
65
+ result = Artifact(name="result")
66
+ scale = Scale(source=source, outputs=(result,))
67
+ flow = ArtifactFlow(scale, artifact=source)
68
+ graph = GraphDefinition(flow, entry_flows=flow)
69
+ graph.confirm()
70
+
71
+ with Engine() as engine:
72
+ run = engine.submit(
73
+ graph,
74
+ ArtifactContext({source: 7}),
75
+ ConfigContext({scale.factor: 3}),
76
+ )
77
+ run.wait(timeout=10)
78
+ if run.state is not ContextState.FINISHED:
79
+ raise RuntimeError(str(run.report.data.failure))
80
+ print(run.artifact(result).value) # 21
81
+ ```
82
+
83
+ `ArtifactContext` supplies the input value, and `ConfigContext` supplies the multiplication factor. The constructor declares fields; Jayrun automatically binds the `source` argument to `self.source` by name and the `outputs` tuple to `self.outputs` by position.
84
+
85
+ Each submission returns its own `ContextRun`. `run.wait()` waits for finalization, which can include failure, so the example checks the outcome before reading the result. Execution settings separately control policies such as retries and iteration limits.
86
+
87
+ The same confirmed graph can serve another submission. The [complete walkthrough](https://jayrun.readthedocs.io/en/latest/start/first-graph.html) explains each step, reads the recorded value and visualizes the finished run.
88
+
89
+ ## Inspect your graphs and runs
90
+
91
+ Once you have a graph, save its structure with `graph.plot.save("graph.html")`. After execution, save the completed run with `run.plot.save("run.html")` to explore captured outcomes, timings, records and reports. Both create interactive HTML viewers that open in a browser.
92
+
93
+ [![Split-and-join graph with an explicit Splitter, two processing branches and a Join operator](https://raw.githubusercontent.com/jayrun-project/jayrun/main/docs/_static/screenshots/split-and-join.png)](https://jayrun.readthedocs.io/en/latest/guides/visualization/graphs.html)
94
+
95
+ *A split-and-join graph with two processing branches. Click to explore the interactive declaration.*
96
+
97
+ For live work, use the [dashboard](https://jayrun.readthedocs.io/en/latest/guides/visualization/dashboard.html) shown above. You can also build your own monitoring or coordination graph using `self.runtime`; see the [Controller example](https://jayrun.readthedocs.io/en/latest/guides/runtime/controller.html). The [visualization and reporting guide](https://jayrun.readthedocs.io/en/latest/guides/evidence/plots.html) covers declarations, registries, completed runs and the dashboard.
98
+
99
+ To keep diagnostic history beyond an Engine session, pass `Database("execution.sqlite")` from `jayrun.persistence` to `Engine(database=...)`. The Engine owns the database lifecycle. After computation finishes, call `engine.database.flush()` to check that pending history was stored successfully. The [Persistence and Database guide](https://jayrun.readthedocs.io/en/latest/guides/evidence/persistence.html) shows how to write history and read it after the Engine closes. Stored history is separate from application checkpoints and arbitrary artifact storage.
100
+
101
+ ## Tutorials
102
+
103
+ Ready for a larger workflow? Each tutorial includes a walkthrough, Python source and a notebook, with a small offline CPU path:
104
+
105
+ | Tutorial | What it demonstrates | Run it |
106
+ | --- | --- | --- |
107
+ | [Build and validate](https://jayrun.readthedocs.io/en/latest/tutorials/build-and-validate-graph.html) | Properties, diagnostics and corrected execution | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/build_graph.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/01_build_graph.ipynb) |
108
+ | [Image service](https://jayrun.readthedocs.io/en/latest/tutorials/denoise-images-with-fastapi.html) | Async service, shared client and routing | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/denoise_images.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/02_denoise_images.ipynb) |
109
+ | [Shared model inference](https://jayrun.readthedocs.io/en/latest/tutorials/mnist-inference-and-training.html#share-a-read-only-model-for-inference) | Read-only model reuse and placement | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/mnist_inference.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/03_mnist_inference.ipynb) |
110
+ | [Supervised training](https://jayrun.readthedocs.io/en/latest/tutorials/mnist-inference-and-training.html#supervise-replace-and-promote) | Iteration, mutable state and scoped supervision | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/mnist_training.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/04_mnist_training.ipynb) |
111
+ | [Document service](https://jayrun.readthedocs.io/en/latest/tutorials/document-ingestion.html) | Long-running jobs and transactional publication | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/document_ingestion.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/05_document_ingestion.ipynb) |
112
+ | [Adapter checkpointing](https://jayrun.readthedocs.io/en/latest/tutorials/checkpointed-adapter-finetuning.html) | Model/optimizer/RNG checkpoints | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/adapter_finetuning.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/06_adapter_finetuning.ipynb) |
113
+ | [Scientific campaign](https://jayrun.readthedocs.io/en/latest/tutorials/adaptive-scientific-calibration.html) | Adaptive control and reproducibility | [Python](https://github.com/jayrun-project/jayrun/blob/main/tutorials/heat_calibration.py) · [Notebook](https://github.com/jayrun-project/jayrun/blob/main/tutorials/07_heat_calibration.ipynb) |
114
+
115
+ The tutorial sources and notebooks live in the [GitHub tutorials directory](https://github.com/jayrun-project/jayrun/tree/main/tutorials); they are not included in `pip install jayrun`. Start with the [tutorial setup guide](https://jayrun.readthedocs.io/en/latest/tutorials/index.html) to get the repository, install lesson dependencies and choose a CPU or optional GPU/model workload. For a specific task, follow the guides on [graph construction](https://jayrun.readthedocs.io/en/latest/guides/workflow/index.html), [resources](https://jayrun.readthedocs.io/en/latest/guides/graphs/resources.html), [component interfaces](https://jayrun.readthedocs.io/en/latest/guides/components/index.html) or [application integration](https://jayrun.readthedocs.io/en/latest/guides/integration/index.html).
116
+
117
+ ## Community
118
+
119
+ Have a question or a workflow to share? Join [GitHub Discussions](https://github.com/jayrun-project/jayrun/discussions). Report bugs and request features through [GitHub Issues](https://github.com/jayrun-project/jayrun/issues); for bugs, include a small reproducible example and your Python and Jayrun versions.
120
+
121
+ You can also help by reporting confusing examples, suggesting documentation improvements or sharing how you use Jayrun. The [documentation sources](https://github.com/jayrun-project/jayrun/blob/main/docs/index.md) are included in this repository.
122
+
123
+ ## Scope and project status
124
+
125
+ Jayrun manages graph execution and ownership. Applications supply network transport, authentication, external side effects and checkpoint contents. Placement accounts for declared capacity rather than allocating devices, and cleanup releases framework references rather than guaranteeing an immediate drop in process memory. See [supported behavior and limitations](https://jayrun.readthedocs.io/en/latest/reference/limits.html).
126
+
127
+ Jayrun provides a tested foundation for graph execution, with ongoing improvements to reliability, usability and documentation. Use imports from `jayrun` and its [documented public modules](https://jayrun.readthedocs.io/en/latest/reference/imports.html); `jayrun.core` and `jayrun.engine` are implementation details.
128
+
129
+ ## License
130
+
131
+ [Apache License 2.0](https://github.com/jayrun-project/jayrun/blob/main/LICENSE). Copyright 2026 Masoud Yavari.
@@ -24,7 +24,7 @@ if TYPE_CHECKING:
24
24
  from .engine.engine_state import EngineState, RuntimeActivity
25
25
  from .registry import GraphRegistry
26
26
 
27
- __version__ = "0.3.0"
27
+ __version__ = "0.3.2"
28
28
 
29
29
  __all__ = (
30
30
  "__version__", "Artifact", "ArtifactContext", "ArtifactField", "ArtifactFlow",
@@ -27,8 +27,10 @@ class Supervisor:
27
27
  class Controller:
28
28
  """Grant engine-wide observation and control to a submitted context.
29
29
 
30
- A controller may also submit registered graph identities through
30
+ A controller may also submit confirmed graphs or registered identities through
31
31
  ``self.runtime.submit(...)`` and asynchronously request engine shutdown.
32
+ EngineSettings.controller_policy must be DELEGATED to submit children with
33
+ Supervisor or Controller authority; HOST_ONLY is the default.
32
34
  Controller contexts execute locally through supervision capacity and cannot
33
35
  be transferred. An optional ``history`` reader explicitly grants its existing
34
36
  session scope. The runtime lends an attenuated view for this controller
@@ -0,0 +1,193 @@
1
+ """Detached declaration evidence; never reconstructs or executes user components."""
2
+ from __future__ import annotations
3
+
4
+ import inspect
5
+ import json
6
+ import math
7
+ import re
8
+ from typing import TYPE_CHECKING
9
+
10
+ from ..artifact.field import ArtifactField
11
+ from ..config.field import ConfigField
12
+ from ..declaration.field import DeclarativeField
13
+ from ..operator.base import BaseOperator
14
+ from ..resource.base import BaseResource
15
+ from .artifact_flow import ArtifactFlow
16
+
17
+ if TYPE_CHECKING:
18
+ from .graph_definition import GraphDefinition
19
+
20
+ SCHEMA = "jayrun.declaration/1"
21
+ MAX_BYTES = 32 * 1024 * 1024
22
+ _SENSITIVE = re.compile(r"password|secret|credential|authorization|access.?token|api.?key|private.?key", re.I)
23
+
24
+
25
+ def _type_name(cls: type) -> str:
26
+ return f"{cls.__module__}.{cls.__qualname__}"
27
+
28
+
29
+ def _metadata(item: object) -> dict[str, object]:
30
+ return {"name": item.name, "description": item.description}
31
+
32
+
33
+ def declaration_report(graph: GraphDefinition) -> dict[str, object]:
34
+ """Export confirmed declarations; unsupported state is explicitly disclosed."""
35
+ if not graph.confirmed:
36
+ raise RuntimeError("confirm the graph before exporting its declaration report")
37
+ limitations: list[dict[str, str]] = []
38
+
39
+ def missing(path: str, reason: str) -> None:
40
+ limitations.append({"path": path, "reason": reason})
41
+
42
+ def value(item: object, path: str, depth: int = 0) -> object:
43
+ if depth > 64:
44
+ raise ValueError("declaration value nesting exceeds 64 levels")
45
+ kind = type(item)
46
+ if item is None or kind in (str, bool, int):
47
+ return item
48
+ if kind is float and math.isfinite(item):
49
+ return item
50
+ if kind is tuple:
51
+ return {"tuple": [value(v, f"{path}/{i}", depth + 1) for i, v in enumerate(item)]}
52
+ if kind is type:
53
+ return {"python_type": _type_name(item)}
54
+ missing(path, "unsupported value; supply its construction contract externally")
55
+ return {"unavailable_type": _type_name(kind)}
56
+
57
+ artifacts = {artifact: f"a{i}" for i, artifact in enumerate(graph.artifacts)}
58
+ operators: dict[BaseOperator, str] = {}
59
+ flows: dict[ArtifactFlow, str] = {}
60
+
61
+ def discover(flow: ArtifactFlow) -> None:
62
+ if flow in flows:
63
+ return
64
+ flows[flow] = f"f{len(flows)}"
65
+ for child in flow.components:
66
+ if isinstance(child, ArtifactFlow):
67
+ discover(child)
68
+ elif child not in operators:
69
+ operators[child] = f"o{len(operators)}"
70
+
71
+ for flow in graph.flows:
72
+ discover(flow)
73
+ resources: dict[object, str] = {}
74
+ for operator in operators:
75
+ for field in operator.resource_fields:
76
+ bound = graph._resource_context.instances.get(field)
77
+ if bound is not None and bound not in resources:
78
+ resources[bound] = f"r{len(resources)}"
79
+ serializers: dict[object, str] = {}
80
+ for artifact in artifacts:
81
+ bound = graph._serializer_bindings.get(artifact)
82
+ if bound is not None and bound not in serializers:
83
+ serializers[bound] = f"s{len(serializers)}"
84
+
85
+ owners = {**operators, **resources}
86
+ components: dict[type, str] = {}
87
+ component_data: dict[str, object] = {}
88
+
89
+ def declaration(instance: object, local_id: str, allowed: set[str]) -> dict[str, object]:
90
+ cls = type(instance)
91
+ if cls not in components:
92
+ cid = f"t{len(components)}"
93
+ components[cls] = cid
94
+ version_owner = next((base for base in cls.__mro__ if "__version__" in vars(base)), None)
95
+ component_data[cid] = {
96
+ "type": _type_name(cls),
97
+ "version": value(getattr(cls, "__version__", None), f"components/{cid}/version"),
98
+ "version_declared_by": None if version_owner is None else _type_name(version_owner),
99
+ "requirements": value(getattr(cls, "requirements", ()), f"components/{cid}/requirements"),
100
+ }
101
+ try:
102
+ parameters = inspect.signature(cls.__init__).parameters
103
+ except (TypeError, ValueError):
104
+ missing(local_id, "constructor signature unavailable")
105
+ parameters = {}
106
+ for name, parameter in parameters.items():
107
+ if name not in allowed and parameter.kind not in (parameter.VAR_KEYWORD, parameter.VAR_POSITIONAL):
108
+ missing(f"{local_id}/constructor/{name}", "constructor argument not retained by declaration API")
109
+ ignored = {"_name", "_description"}
110
+ if isinstance(instance, BaseOperator):
111
+ ignored.update(("_operator_initialized", "outputs"))
112
+ elif isinstance(instance, BaseResource):
113
+ ignored.add("_resource_initialized")
114
+ for name, state in vars(instance).items():
115
+ if name not in ignored and not isinstance(state, DeclarativeField):
116
+ missing(f"{local_id}/state/{name}", "extra instance state is outside the declaration contract")
117
+ return {"component": components[cls], **_metadata(instance)}
118
+
119
+ config_data = {}
120
+ config_ids = {}
121
+ registry = graph._specification.configs
122
+ for field, definition in zip(registry.sources, registry.definitions, strict=True):
123
+ key = f"c{definition.config_id}"
124
+ config_ids[field] = key
125
+ path = f"configs/{key}/default"
126
+ if field.default is not None and _SENSITIVE.search(field.attribute_name or ""):
127
+ default = {"redacted": True}
128
+ missing(path, "sensitive default; supply externally")
129
+ else:
130
+ default = value(field.default, path)
131
+ config_data[key] = {"config_id": definition.config_id, "owner": owners[field.owner],
132
+ "field": field.attribute_name, **_metadata(field), "required": field.required,
133
+ "value_type": _type_name(field.value_type), "default": default}
134
+
135
+ def artifact_field(field: ArtifactField, path: str) -> dict[str, object]:
136
+ properties = []
137
+ for i, prop in enumerate(field.properties):
138
+ location = f"{path}/properties/{i}"
139
+ if "_value" in vars(prop):
140
+ declared = value(vars(prop)["_value"], location)
141
+ else:
142
+ missing(location, "property has no retained declaration value")
143
+ declared = {"unavailable_type": _type_name(type(prop))}
144
+ properties.append({"type": _type_name(type(prop)), "value": declared})
145
+ return {**_metadata(field), "required": field.required,
146
+ "bound": field.is_bound, "artifact": artifacts.get(field.artifact),
147
+ "properties": properties}
148
+
149
+ operator_data = {}
150
+ for operator, key in operators.items():
151
+ item = declaration(operator, key, {"self", "name", "description", "outputs",
152
+ *(f.attribute_name for f in operator.declared_artifact_fields)})
153
+ item["execution"] = "async" if inspect.iscoroutinefunction(type(operator).execute) else "sync"
154
+ item["inputs"] = {field.attribute_name: artifact_field(field, f"operators/{key}/inputs/{field.attribute_name}")
155
+ for field in operator.declared_artifact_fields}
156
+ item["outputs"] = [artifact_field(field, f"operators/{key}/outputs/{i}") for i, field in enumerate(operator.outputs)]
157
+ item["resources"] = {
158
+ field.attribute_name: {**_metadata(field), "required": field.required,
159
+ "parallel_safe": field.parallel_safe,
160
+ "binding": resources.get(graph._resource_context.instances.get(field))}
161
+ for field in operator.resource_fields}
162
+ operator_data[key] = item
163
+ resource_data = {key: declaration(resource, key, {"self", "name", "description"})
164
+ for resource, key in resources.items()}
165
+ serializer_data = {key: declaration(serializer, key, {"self", "name", "description"})
166
+ for serializer, key in serializers.items()}
167
+ artifact_data = {}
168
+ for artifact, key in artifacts.items():
169
+ definition = graph._artifacts[artifact]
170
+ artifact_data[key] = {**_metadata(artifact), "artifact_id": definition.artifact_id,
171
+ "role": definition.role.value, "exit": definition.is_exit,
172
+ "serializer": serializers.get(graph._serializer_bindings.get(artifact))}
173
+ result = {
174
+ "schema": SCHEMA,
175
+ "graph": {"graph_id": graph.graph_id, "version": graph.version, **_metadata(graph)},
176
+ "components": component_data,
177
+ "artifacts": artifact_data,
178
+ "operators": operator_data,
179
+ "resources": resource_data,
180
+ "serializers": serializer_data,
181
+ "configs": config_data,
182
+ "flows": {key: {**_metadata(flow), "artifact": artifacts.get(flow.artifact),
183
+ "components": [flows[c] if isinstance(c, ArtifactFlow) else operators[c] for c in flow.components]}
184
+ for flow, key in flows.items()},
185
+ "root_flows": [flows[f] for f in graph.flows],
186
+ "entry_flows": [flows[f] for f in graph._entry_flows],
187
+ "timing_configs": None if graph._timing_config_fields is None else [config_ids[f] for f in graph._timing_config_fields],
188
+ "limitations": limitations,
189
+ "scope": "Declared structure and authored intent; component code, closure/class state, selected run values and execution outcomes are external. Null metadata means not supplied. An empty limitations list does not prove behavioral completeness.",
190
+ }
191
+ if len(json.dumps(result, ensure_ascii=False, allow_nan=False).encode("utf-8")) > MAX_BYTES:
192
+ raise ValueError("declaration report exceeds 32 MiB; nothing exported")
193
+ return result