context-coherence 0.1.0__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 (316) hide show
  1. context_coherence-0.1.0/.github/workflows/ci.yml +86 -0
  2. context_coherence-0.1.0/.github/workflows/claude-agents.yml +26 -0
  3. context_coherence-0.1.0/.github/workflows/google-adk.yml +26 -0
  4. context_coherence-0.1.0/.github/workflows/langgraph.yml +30 -0
  5. context_coherence-0.1.0/.github/workflows/openai-agents.yml +26 -0
  6. context_coherence-0.1.0/.github/workflows/python-sdk.yml +41 -0
  7. context_coherence-0.1.0/.github/workflows/release-artifacts.yml +32 -0
  8. context_coherence-0.1.0/.github/workflows/release-candidate.yml +209 -0
  9. context_coherence-0.1.0/.github/workflows/release.yml +195 -0
  10. context_coherence-0.1.0/.github/workflows/rust-core.yml +19 -0
  11. context_coherence-0.1.0/.gitignore +46 -0
  12. context_coherence-0.1.0/ARCHITECTURE.md +351 -0
  13. context_coherence-0.1.0/CHANGELOG.md +17 -0
  14. context_coherence-0.1.0/CONTRIBUTING.md +46 -0
  15. context_coherence-0.1.0/Cargo.lock +499 -0
  16. context_coherence-0.1.0/Cargo.toml +28 -0
  17. context_coherence-0.1.0/LICENSE +202 -0
  18. context_coherence-0.1.0/LICENSES/Rust-1.95.0-Apache-2.0.txt +73 -0
  19. context_coherence-0.1.0/LICENSES/Rust-1.95.0-BSD-2-Clause.txt +9 -0
  20. context_coherence-0.1.0/LICENSES/Rust-1.95.0-CC-BY-SA-4.0.txt +427 -0
  21. context_coherence-0.1.0/LICENSES/Rust-1.95.0-COPYRIGHT-library.html +8266 -0
  22. context_coherence-0.1.0/LICENSES/Rust-1.95.0-GCC-exception-3.1.txt +30 -0
  23. context_coherence-0.1.0/LICENSES/Rust-1.95.0-GPL-2.0-only.txt +133 -0
  24. context_coherence-0.1.0/LICENSES/Rust-1.95.0-GPL-3.0-or-later.txt +202 -0
  25. context_coherence-0.1.0/LICENSES/Rust-1.95.0-ISC.txt +7 -0
  26. context_coherence-0.1.0/LICENSES/Rust-1.95.0-LLVM-exception.txt +15 -0
  27. context_coherence-0.1.0/LICENSES/Rust-1.95.0-MIT.txt +9 -0
  28. context_coherence-0.1.0/LICENSES/Rust-1.95.0-NCSA.txt +29 -0
  29. context_coherence-0.1.0/LICENSES/Rust-1.95.0-OFL-1.1.txt +43 -0
  30. context_coherence-0.1.0/LICENSES/Rust-1.95.0-Unicode-3.0.txt +39 -0
  31. context_coherence-0.1.0/LICENSES/allocator-api2-0.2.22-LICENSE-APACHE.txt +176 -0
  32. context_coherence-0.1.0/LICENSES/allocator-api2-0.2.22-LICENSE-MIT.txt +23 -0
  33. context_coherence-0.1.0/LICENSES/bitflags-2.13.2-LICENSE-APACHE.txt +201 -0
  34. context_coherence-0.1.0/LICENSES/bitflags-2.13.2-LICENSE-MIT.txt +25 -0
  35. context_coherence-0.1.0/LICENSES/block-buffer-0.10.4-LICENSE-APACHE.txt +201 -0
  36. context_coherence-0.1.0/LICENSES/block-buffer-0.10.4-LICENSE-MIT.txt +25 -0
  37. context_coherence-0.1.0/LICENSES/boxcar-0.2.14-LICENSE.txt +19 -0
  38. context_coherence-0.1.0/LICENSES/cc-1.12.0-LICENSE-APACHE.txt +201 -0
  39. context_coherence-0.1.0/LICENSES/cc-1.12.0-LICENSE-MIT.txt +25 -0
  40. context_coherence-0.1.0/LICENSES/cfg-if-1.0.5-LICENSE-APACHE.txt +201 -0
  41. context_coherence-0.1.0/LICENSES/cfg-if-1.0.5-LICENSE-MIT.txt +25 -0
  42. context_coherence-0.1.0/LICENSES/cpufeatures-0.2.17-LICENSE-APACHE.txt +201 -0
  43. context_coherence-0.1.0/LICENSES/cpufeatures-0.2.17-LICENSE-MIT.txt +25 -0
  44. context_coherence-0.1.0/LICENSES/crossbeam-deque-0.8.8-LICENSE-APACHE.txt +201 -0
  45. context_coherence-0.1.0/LICENSES/crossbeam-deque-0.8.8-LICENSE-MIT.txt +27 -0
  46. context_coherence-0.1.0/LICENSES/crossbeam-epoch-0.9.21-LICENSE-APACHE.txt +201 -0
  47. context_coherence-0.1.0/LICENSES/crossbeam-epoch-0.9.21-LICENSE-MIT.txt +27 -0
  48. context_coherence-0.1.0/LICENSES/crossbeam-queue-0.3.14-LICENSE-APACHE.txt +201 -0
  49. context_coherence-0.1.0/LICENSES/crossbeam-queue-0.3.14-LICENSE-MIT.txt +27 -0
  50. context_coherence-0.1.0/LICENSES/crossbeam-utils-0.8.23-LICENSE-APACHE.txt +201 -0
  51. context_coherence-0.1.0/LICENSES/crossbeam-utils-0.8.23-LICENSE-MIT.txt +27 -0
  52. context_coherence-0.1.0/LICENSES/crypto-common-0.1.7-LICENSE-APACHE.txt +201 -0
  53. context_coherence-0.1.0/LICENSES/crypto-common-0.1.7-LICENSE-MIT.txt +25 -0
  54. context_coherence-0.1.0/LICENSES/digest-0.10.7-LICENSE-APACHE.txt +201 -0
  55. context_coherence-0.1.0/LICENSES/digest-0.10.7-LICENSE-MIT.txt +25 -0
  56. context_coherence-0.1.0/LICENSES/either-1.19.0-LICENSE-APACHE.txt +201 -0
  57. context_coherence-0.1.0/LICENSES/either-1.19.0-LICENSE-MIT.txt +25 -0
  58. context_coherence-0.1.0/LICENSES/equivalent-1.0.3-LICENSE-APACHE.txt +201 -0
  59. context_coherence-0.1.0/LICENSES/equivalent-1.0.3-LICENSE-MIT.txt +25 -0
  60. context_coherence-0.1.0/LICENSES/fallible-iterator-0.3.0-LICENSE-APACHE.txt +202 -0
  61. context_coherence-0.1.0/LICENSES/fallible-iterator-0.3.0-LICENSE-MIT.txt +19 -0
  62. context_coherence-0.1.0/LICENSES/fallible-streaming-iterator-0.1.9-LICENSE-APACHE.txt +202 -0
  63. context_coherence-0.1.0/LICENSES/fallible-streaming-iterator-0.1.9-LICENSE-MIT.txt +19 -0
  64. context_coherence-0.1.0/LICENSES/find-msvc-tools-0.1.16-LICENSE-APACHE.txt +201 -0
  65. context_coherence-0.1.0/LICENSES/find-msvc-tools-0.1.16-LICENSE-MIT.txt +25 -0
  66. context_coherence-0.1.0/LICENSES/foldhash-0.2.0-LICENSE.txt +19 -0
  67. context_coherence-0.1.0/LICENSES/generic-array-0.14.7-LICENSE.txt +21 -0
  68. context_coherence-0.1.0/LICENSES/hashbrown-0.17.2-LICENSE-APACHE.txt +201 -0
  69. context_coherence-0.1.0/LICENSES/hashbrown-0.17.2-LICENSE-MIT.txt +25 -0
  70. context_coherence-0.1.0/LICENSES/hashlink-0.12.2-LICENSE-APACHE.txt +201 -0
  71. context_coherence-0.1.0/LICENSES/hashlink-0.12.2-LICENSE-MIT.txt +26 -0
  72. context_coherence-0.1.0/LICENSES/heck-0.5.0-LICENSE-APACHE.txt +201 -0
  73. context_coherence-0.1.0/LICENSES/heck-0.5.0-LICENSE-MIT.txt +25 -0
  74. context_coherence-0.1.0/LICENSES/indexmap-2.14.2-LICENSE-APACHE.txt +201 -0
  75. context_coherence-0.1.0/LICENSES/indexmap-2.14.2-LICENSE-MIT.txt +25 -0
  76. context_coherence-0.1.0/LICENSES/intrusive-collections-0.10.3-LICENSE-APACHE.txt +201 -0
  77. context_coherence-0.1.0/LICENSES/intrusive-collections-0.10.3-LICENSE-MIT.txt +25 -0
  78. context_coherence-0.1.0/LICENSES/inventory-0.3.25-LICENSE-APACHE.txt +176 -0
  79. context_coherence-0.1.0/LICENSES/inventory-0.3.25-LICENSE-MIT.txt +23 -0
  80. context_coherence-0.1.0/LICENSES/libc-0.2.191-LICENSE-APACHE.txt +176 -0
  81. context_coherence-0.1.0/LICENSES/libc-0.2.191-LICENSE-MIT.txt +25 -0
  82. context_coherence-0.1.0/LICENSES/libsqlite3-sys-0.40.0-LICENSE.txt +19 -0
  83. context_coherence-0.1.0/LICENSES/lock_api-0.4.14-LICENSE-APACHE.txt +201 -0
  84. context_coherence-0.1.0/LICENSES/lock_api-0.4.14-LICENSE-MIT.txt +25 -0
  85. context_coherence-0.1.0/LICENSES/once_cell-1.21.4-LICENSE-APACHE.txt +201 -0
  86. context_coherence-0.1.0/LICENSES/once_cell-1.21.4-LICENSE-MIT.txt +23 -0
  87. context_coherence-0.1.0/LICENSES/parking_lot-0.12.5-LICENSE-APACHE.txt +201 -0
  88. context_coherence-0.1.0/LICENSES/parking_lot-0.12.5-LICENSE-MIT.txt +25 -0
  89. context_coherence-0.1.0/LICENSES/parking_lot_core-0.9.12-LICENSE-APACHE.txt +201 -0
  90. context_coherence-0.1.0/LICENSES/parking_lot_core-0.9.12-LICENSE-MIT.txt +25 -0
  91. context_coherence-0.1.0/LICENSES/pin-project-lite-0.2.19-LICENSE-APACHE.txt +177 -0
  92. context_coherence-0.1.0/LICENSES/pin-project-lite-0.2.19-LICENSE-MIT.txt +23 -0
  93. context_coherence-0.1.0/LICENSES/pkg-config-0.3.34-LICENSE-APACHE.txt +201 -0
  94. context_coherence-0.1.0/LICENSES/pkg-config-0.3.34-LICENSE-MIT.txt +25 -0
  95. context_coherence-0.1.0/LICENSES/portable-atomic-1.15.0-LICENSE-APACHE.txt +177 -0
  96. context_coherence-0.1.0/LICENSES/portable-atomic-1.15.0-LICENSE-MIT.txt +23 -0
  97. context_coherence-0.1.0/LICENSES/proc-macro2-1.0.107-LICENSE-APACHE.txt +176 -0
  98. context_coherence-0.1.0/LICENSES/proc-macro2-1.0.107-LICENSE-MIT.txt +23 -0
  99. context_coherence-0.1.0/LICENSES/pyo3-0.29.0-LICENSE-APACHE.txt +178 -0
  100. context_coherence-0.1.0/LICENSES/pyo3-0.29.0-LICENSE-MIT.txt +25 -0
  101. context_coherence-0.1.0/LICENSES/pyo3-build-config-0.29.0-LICENSE-APACHE.txt +178 -0
  102. context_coherence-0.1.0/LICENSES/pyo3-build-config-0.29.0-LICENSE-MIT.txt +25 -0
  103. context_coherence-0.1.0/LICENSES/pyo3-ffi-0.29.0-LICENSE-APACHE.txt +178 -0
  104. context_coherence-0.1.0/LICENSES/pyo3-ffi-0.29.0-LICENSE-MIT.txt +25 -0
  105. context_coherence-0.1.0/LICENSES/pyo3-macros-0.29.0-LICENSE-APACHE.txt +178 -0
  106. context_coherence-0.1.0/LICENSES/pyo3-macros-0.29.0-LICENSE-MIT.txt +25 -0
  107. context_coherence-0.1.0/LICENSES/pyo3-macros-backend-0.29.0-LICENSE-APACHE.txt +178 -0
  108. context_coherence-0.1.0/LICENSES/pyo3-macros-backend-0.29.0-LICENSE-MIT.txt +25 -0
  109. context_coherence-0.1.0/LICENSES/quote-1.0.47-LICENSE-APACHE.txt +176 -0
  110. context_coherence-0.1.0/LICENSES/quote-1.0.47-LICENSE-MIT.txt +23 -0
  111. context_coherence-0.1.0/LICENSES/rayon-1.12.0-LICENSE-APACHE.txt +201 -0
  112. context_coherence-0.1.0/LICENSES/rayon-1.12.0-LICENSE-MIT.txt +25 -0
  113. context_coherence-0.1.0/LICENSES/rayon-core-1.13.0-LICENSE-APACHE.txt +201 -0
  114. context_coherence-0.1.0/LICENSES/rayon-core-1.13.0-LICENSE-MIT.txt +25 -0
  115. context_coherence-0.1.0/LICENSES/redox_syscall-0.5.18-LICENSE.txt +22 -0
  116. context_coherence-0.1.0/LICENSES/rusqlite-0.43.0-LICENSE.txt +19 -0
  117. context_coherence-0.1.0/LICENSES/rustc-hash-2.1.3-LICENSE-APACHE.txt +176 -0
  118. context_coherence-0.1.0/LICENSES/rustc-hash-2.1.3-LICENSE-MIT.txt +23 -0
  119. context_coherence-0.1.0/LICENSES/rustversion-1.0.23-LICENSE-APACHE.txt +176 -0
  120. context_coherence-0.1.0/LICENSES/rustversion-1.0.23-LICENSE-MIT.txt +23 -0
  121. context_coherence-0.1.0/LICENSES/salsa-0.28.5-LICENSE-APACHE.txt +201 -0
  122. context_coherence-0.1.0/LICENSES/salsa-0.28.5-LICENSE-MIT.txt +23 -0
  123. context_coherence-0.1.0/LICENSES/salsa-macro-rules-0.28.5-LICENSE-APACHE.txt +201 -0
  124. context_coherence-0.1.0/LICENSES/salsa-macro-rules-0.28.5-LICENSE-MIT.txt +23 -0
  125. context_coherence-0.1.0/LICENSES/salsa-macros-0.28.5-LICENSE-APACHE.txt +201 -0
  126. context_coherence-0.1.0/LICENSES/salsa-macros-0.28.5-LICENSE-MIT.txt +23 -0
  127. context_coherence-0.1.0/LICENSES/scopeguard-1.2.0-LICENSE-APACHE.txt +201 -0
  128. context_coherence-0.1.0/LICENSES/scopeguard-1.2.0-LICENSE-MIT.txt +25 -0
  129. context_coherence-0.1.0/LICENSES/sha2-0.10.9-LICENSE-APACHE.txt +201 -0
  130. context_coherence-0.1.0/LICENSES/sha2-0.10.9-LICENSE-MIT.txt +27 -0
  131. context_coherence-0.1.0/LICENSES/shlex-2.0.1-LICENSE-APACHE.txt +13 -0
  132. context_coherence-0.1.0/LICENSES/shlex-2.0.1-LICENSE-MIT.txt +21 -0
  133. context_coherence-0.1.0/LICENSES/smallvec-1.16.6-LICENSE-APACHE.txt +201 -0
  134. context_coherence-0.1.0/LICENSES/smallvec-1.16.6-LICENSE-MIT.txt +25 -0
  135. context_coherence-0.1.0/LICENSES/syn-2.0.119-LICENSE-APACHE.txt +176 -0
  136. context_coherence-0.1.0/LICENSES/syn-2.0.119-LICENSE-MIT.txt +23 -0
  137. context_coherence-0.1.0/LICENSES/syn-3.0.10-LICENSE-APACHE.txt +176 -0
  138. context_coherence-0.1.0/LICENSES/syn-3.0.10-LICENSE-MIT.txt +23 -0
  139. context_coherence-0.1.0/LICENSES/target-lexicon-0.13.6-LICENSE.txt +220 -0
  140. context_coherence-0.1.0/LICENSES/thin-vec-0.2.21-LICENSE-APACHE.txt +176 -0
  141. context_coherence-0.1.0/LICENSES/thin-vec-0.2.21-LICENSE-MIT.txt +23 -0
  142. context_coherence-0.1.0/LICENSES/tracing-0.1.44-LICENSE.txt +25 -0
  143. context_coherence-0.1.0/LICENSES/tracing-core-0.1.36-LICENSE.txt +25 -0
  144. context_coherence-0.1.0/LICENSES/typeid-1.0.3-LICENSE-APACHE.txt +176 -0
  145. context_coherence-0.1.0/LICENSES/typeid-1.0.3-LICENSE-MIT.txt +23 -0
  146. context_coherence-0.1.0/LICENSES/typenum-1.20.1-LICENSE-APACHE.txt +201 -0
  147. context_coherence-0.1.0/LICENSES/typenum-1.20.1-LICENSE-MIT.txt +21 -0
  148. context_coherence-0.1.0/LICENSES/typenum-1.20.1-LICENSE.txt +1 -0
  149. context_coherence-0.1.0/LICENSES/unicode-ident-1.0.27-LICENSE-APACHE.txt +176 -0
  150. context_coherence-0.1.0/LICENSES/unicode-ident-1.0.27-LICENSE-MIT.txt +23 -0
  151. context_coherence-0.1.0/LICENSES/unicode-ident-1.0.27-LICENSE-UNICODE.txt +39 -0
  152. context_coherence-0.1.0/LICENSES/vcpkg-0.2.15-LICENSE-APACHE.txt +202 -0
  153. context_coherence-0.1.0/LICENSES/vcpkg-0.2.15-LICENSE-MIT.txt +26 -0
  154. context_coherence-0.1.0/LICENSES/version_check-0.9.5-LICENSE-APACHE.txt +201 -0
  155. context_coherence-0.1.0/LICENSES/version_check-0.9.5-LICENSE-MIT.txt +19 -0
  156. context_coherence-0.1.0/LICENSES/windows-link-0.2.1-license-apache-2.0.txt +201 -0
  157. context_coherence-0.1.0/LICENSES/windows-link-0.2.1-license-mit.txt +21 -0
  158. context_coherence-0.1.0/NOTICE +6 -0
  159. context_coherence-0.1.0/PKG-INFO +318 -0
  160. context_coherence-0.1.0/README.md +218 -0
  161. context_coherence-0.1.0/SECURITY.md +21 -0
  162. context_coherence-0.1.0/THIRD_PARTY_NOTICES.md +77 -0
  163. context_coherence-0.1.0/agent_frameworks_tests/README.md +28 -0
  164. context_coherence-0.1.0/agent_frameworks_tests/__init__.py +0 -0
  165. context_coherence-0.1.0/agent_frameworks_tests/claude_agents/__init__.py +0 -0
  166. context_coherence-0.1.0/agent_frameworks_tests/claude_agents/probe_tools.py +17 -0
  167. context_coherence-0.1.0/agent_frameworks_tests/claude_agents/provider_fixture.py +53 -0
  168. context_coherence-0.1.0/agent_frameworks_tests/claude_agents/test_claude_agents.py +171 -0
  169. context_coherence-0.1.0/agent_frameworks_tests/claude_agents/test_claude_lifecycle.py +12 -0
  170. context_coherence-0.1.0/agent_frameworks_tests/claude_agents/test_claude_runtime.py +105 -0
  171. context_coherence-0.1.0/agent_frameworks_tests/google_adk/__init__.py +0 -0
  172. context_coherence-0.1.0/agent_frameworks_tests/google_adk/test_adk_lifecycle.py +28 -0
  173. context_coherence-0.1.0/agent_frameworks_tests/google_adk/test_google_adk.py +251 -0
  174. context_coherence-0.1.0/agent_frameworks_tests/langgraph_tests/__init__.py +0 -0
  175. context_coherence-0.1.0/agent_frameworks_tests/langgraph_tests/test_integration.py +345 -0
  176. context_coherence-0.1.0/agent_frameworks_tests/langgraph_tests/test_langgraph_lifecycle.py +18 -0
  177. context_coherence-0.1.0/agent_frameworks_tests/openai_agents/__init__.py +0 -0
  178. context_coherence-0.1.0/agent_frameworks_tests/openai_agents/test_agents_lifecycle.py +15 -0
  179. context_coherence-0.1.0/agent_frameworks_tests/openai_agents/test_openai_agents.py +215 -0
  180. context_coherence-0.1.0/assets/banking-example.png +0 -0
  181. context_coherence-0.1.0/assets/provider-host-execution.png +0 -0
  182. context_coherence-0.1.0/assets/provider-host.png +0 -0
  183. context_coherence-0.1.0/assets/repo-structure.png +0 -0
  184. context_coherence-0.1.0/bindings/python/Cargo.lock +618 -0
  185. context_coherence-0.1.0/bindings/python/Cargo.toml +28 -0
  186. context_coherence-0.1.0/bindings/python/src/lib.rs +1106 -0
  187. context_coherence-0.1.0/bindings/python/src/provider_bridge.rs +221 -0
  188. context_coherence-0.1.0/bindings/python/src/provider_catalog.rs +83 -0
  189. context_coherence-0.1.0/crates/provider-host/Cargo.lock +375 -0
  190. context_coherence-0.1.0/crates/provider-host/Cargo.toml +13 -0
  191. context_coherence-0.1.0/crates/provider-host/src/lib.rs +488 -0
  192. context_coherence-0.1.0/crates/provider-host/tests/contracts.rs +254 -0
  193. context_coherence-0.1.0/crates/provider-spi/Cargo.lock +7 -0
  194. context_coherence-0.1.0/crates/provider-spi/Cargo.toml +8 -0
  195. context_coherence-0.1.0/crates/provider-spi/src/lib.rs +89 -0
  196. context_coherence-0.1.0/deny.toml +25 -0
  197. context_coherence-0.1.0/docs/README.md +27 -0
  198. context_coherence-0.1.0/docs/api-reference.md +698 -0
  199. context_coherence-0.1.0/docs/atomic-evidence-admission.md +111 -0
  200. context_coherence-0.1.0/docs/capabilities.md +53 -0
  201. context_coherence-0.1.0/docs/claude-agents-integration.md +104 -0
  202. context_coherence-0.1.0/docs/concepts.md +93 -0
  203. context_coherence-0.1.0/docs/discover.md +49 -0
  204. context_coherence-0.1.0/docs/distribution.md +102 -0
  205. context_coherence-0.1.0/docs/durable-authorities.md +165 -0
  206. context_coherence-0.1.0/docs/examples.md +103 -0
  207. context_coherence-0.1.0/docs/google-adk-integration.md +82 -0
  208. context_coherence-0.1.0/docs/installation.md +132 -0
  209. context_coherence-0.1.0/docs/known-limitations.md +15 -0
  210. context_coherence-0.1.0/docs/langgraph-integration.md +99 -0
  211. context_coherence-0.1.0/docs/lifecycle-management.md +144 -0
  212. context_coherence-0.1.0/docs/llm-experiment.md +68 -0
  213. context_coherence-0.1.0/docs/openai-agents-integration.md +62 -0
  214. context_coherence-0.1.0/docs/operations.md +70 -0
  215. context_coherence-0.1.0/docs/package-description.md +131 -0
  216. context_coherence-0.1.0/docs/performance.md +37 -0
  217. context_coherence-0.1.0/docs/planning-and-identities.md +60 -0
  218. context_coherence-0.1.0/docs/provider-development.md +119 -0
  219. context_coherence-0.1.0/docs/public-api.md +68 -0
  220. context_coherence-0.1.0/docs/python-sdk.md +98 -0
  221. context_coherence-0.1.0/docs/quickstart.md +79 -0
  222. context_coherence-0.1.0/docs/reference.md +30 -0
  223. context_coherence-0.1.0/docs/release-notes.md +23 -0
  224. context_coherence-0.1.0/docs/repository-structure.md +148 -0
  225. context_coherence-0.1.0/docs/rust-api.md +167 -0
  226. context_coherence-0.1.0/examples/claude_agents_lending.py +122 -0
  227. context_coherence-0.1.0/examples/durable_restart.py +31 -0
  228. context_coherence-0.1.0/examples/durable_restart.rs +61 -0
  229. context_coherence-0.1.0/examples/google_adk_lending.py +206 -0
  230. context_coherence-0.1.0/examples/langgraph_lending.py +212 -0
  231. context_coherence-0.1.0/examples/lending.py +67 -0
  232. context_coherence-0.1.0/examples/lifecycle_workload.py +112 -0
  233. context_coherence-0.1.0/examples/llm_lending.py +400 -0
  234. context_coherence-0.1.0/examples/openai_agents_lending.py +222 -0
  235. context_coherence-0.1.0/examples/provider_substitution.py +39 -0
  236. context_coherence-0.1.0/examples/python_sdk_parity.rs +145 -0
  237. context_coherence-0.1.0/examples/quickstart.py +101 -0
  238. context_coherence-0.1.0/examples/selective_plan.rs +209 -0
  239. context_coherence-0.1.0/examples/wasmtime_selective.py +101 -0
  240. context_coherence-0.1.0/llm_tests/test_llm_lending.py +159 -0
  241. context_coherence-0.1.0/provider_tests/test_spi.py +117 -0
  242. context_coherence-0.1.0/providers/bounded-expression/Cargo.lock +14 -0
  243. context_coherence-0.1.0/providers/bounded-expression/Cargo.toml +10 -0
  244. context_coherence-0.1.0/providers/bounded-expression/src/lib.rs +233 -0
  245. context_coherence-0.1.0/providers/wasmtime/Cargo.lock +137 -0
  246. context_coherence-0.1.0/providers/wasmtime/Cargo.toml +11 -0
  247. context_coherence-0.1.0/providers/wasmtime/src/lib.rs +143 -0
  248. context_coherence-0.1.0/providers/wasmtime/src/runner.py +52 -0
  249. context_coherence-0.1.0/pyproject.toml +68 -0
  250. context_coherence-0.1.0/python/co2/__init__.py +42 -0
  251. context_coherence-0.1.0/python/co2/_api.py +344 -0
  252. context_coherence-0.1.0/python/co2/_models.py +408 -0
  253. context_coherence-0.1.0/python/co2/_native.pyi +110 -0
  254. context_coherence-0.1.0/python/co2/integrations/__init__.py +1 -0
  255. context_coherence-0.1.0/python/co2/integrations/_claude_worker.py +88 -0
  256. context_coherence-0.1.0/python/co2/integrations/bounded_expression.py +11 -0
  257. context_coherence-0.1.0/python/co2/integrations/claude_agents.py +272 -0
  258. context_coherence-0.1.0/python/co2/integrations/google_adk.py +348 -0
  259. context_coherence-0.1.0/python/co2/integrations/langgraph.py +234 -0
  260. context_coherence-0.1.0/python/co2/integrations/openai_agents.py +197 -0
  261. context_coherence-0.1.0/python/co2/integrations/wasmtime.py +126 -0
  262. context_coherence-0.1.0/python/co2/py.typed +0 -0
  263. context_coherence-0.1.0/python/co2/runtime.py +89 -0
  264. context_coherence-0.1.0/python_tests/test_action_planning.py +64 -0
  265. context_coherence-0.1.0/python_tests/test_durable.py +219 -0
  266. context_coherence-0.1.0/python_tests/test_hardening.py +56 -0
  267. context_coherence-0.1.0/python_tests/test_lifecycle.py +88 -0
  268. context_coherence-0.1.0/python_tests/test_parity.py +63 -0
  269. context_coherence-0.1.0/python_tests/test_sdk.py +240 -0
  270. context_coherence-0.1.0/release-manifest.txt +316 -0
  271. context_coherence-0.1.0/requirements/audit.in +4 -0
  272. context_coherence-0.1.0/requirements/audit.txt +928 -0
  273. context_coherence-0.1.0/requirements/build.in +1 -0
  274. context_coherence-0.1.0/requirements/build.txt +18 -0
  275. context_coherence-0.1.0/requirements/test.in +2 -0
  276. context_coherence-0.1.0/requirements/test.txt +205 -0
  277. context_coherence-0.1.0/src/domain.rs +399 -0
  278. context_coherence-0.1.0/src/engine.rs +209 -0
  279. context_coherence-0.1.0/src/graph.rs +251 -0
  280. context_coherence-0.1.0/src/lib.rs +74 -0
  281. context_coherence-0.1.0/src/lifecycle.rs +717 -0
  282. context_coherence-0.1.0/src/persistence/authority_tests.rs +821 -0
  283. context_coherence-0.1.0/src/persistence/codec.rs +399 -0
  284. context_coherence-0.1.0/src/persistence/driver.rs +197 -0
  285. context_coherence-0.1.0/src/persistence/mod.rs +50 -0
  286. context_coherence-0.1.0/src/persistence/model.rs +682 -0
  287. context_coherence-0.1.0/src/persistence/ownership.rs +556 -0
  288. context_coherence-0.1.0/src/persistence/performance.rs +187 -0
  289. context_coherence-0.1.0/src/persistence/prepared.rs +97 -0
  290. context_coherence-0.1.0/src/persistence/recovery.rs +449 -0
  291. context_coherence-0.1.0/src/persistence/recovery_tests.rs +819 -0
  292. context_coherence-0.1.0/src/persistence/sqlite.rs +424 -0
  293. context_coherence-0.1.0/src/persistence/tests.rs +779 -0
  294. context_coherence-0.1.0/src/provider_admission.rs +1230 -0
  295. context_coherence-0.1.0/src/store.rs +1770 -0
  296. context_coherence-0.1.0/tests/action_planning.rs +216 -0
  297. context_coherence-0.1.0/tests/core.rs +377 -0
  298. context_coherence-0.1.0/tests/execution_semantics.rs +509 -0
  299. context_coherence-0.1.0/tests/hardening.rs +281 -0
  300. context_coherence-0.1.0/tests/identity_batch.rs +57 -0
  301. context_coherence-0.1.0/tests/lifecycle.rs +506 -0
  302. context_coherence-0.1.0/tests/strategies.rs +845 -0
  303. context_coherence-0.1.0/tools/audit_dependencies.py +249 -0
  304. context_coherence-0.1.0/tools/build_release.py +119 -0
  305. context_coherence-0.1.0/tools/check_release.py +203 -0
  306. context_coherence-0.1.0/tools/ci_changes.py +141 -0
  307. context_coherence-0.1.0/tools/prepare_source.py +43 -0
  308. context_coherence-0.1.0/tools/release_candidate.py +428 -0
  309. context_coherence-0.1.0/tools/test_audit_dependencies.py +121 -0
  310. context_coherence-0.1.0/tools/test_ci_changes.py +202 -0
  311. context_coherence-0.1.0/tools/test_distribution_contract.py +109 -0
  312. context_coherence-0.1.0/tools/test_release.py +82 -0
  313. context_coherence-0.1.0/tools/test_release_candidate.py +335 -0
  314. context_coherence-0.1.0/tools/verify_installation.py +82 -0
  315. context_coherence-0.1.0/uv.lock +1978 -0
  316. context_coherence-0.1.0/wasmtime_tests/test_admission.py +318 -0
@@ -0,0 +1,86 @@
1
+ name: CI
2
+ on:
3
+ push:
4
+ pull_request:
5
+ workflow_dispatch:
6
+ workflow_call:
7
+ inputs:
8
+ full:
9
+ type: boolean
10
+ default: false
11
+ permissions:
12
+ contents: read
13
+ # The caller workflow separates release qualification from cancellable routine CI.
14
+ concurrency:
15
+ group: ci-${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.number || github.ref }}
16
+ cancel-in-progress: ${{ !inputs.full && github.workflow == 'CI' && (github.event_name == 'push' || github.event_name == 'pull_request') }}
17
+ jobs:
18
+ changes:
19
+ runs-on: ubuntu-24.04
20
+ outputs:
21
+ core: ${{ steps.paths.outputs.core }}
22
+ sdk: ${{ steps.paths.outputs.sdk }}
23
+ langgraph: ${{ steps.paths.outputs.langgraph }}
24
+ openai_agents: ${{ steps.paths.outputs.openai_agents }}
25
+ google_adk: ${{ steps.paths.outputs.google_adk }}
26
+ claude_agents: ${{ steps.paths.outputs.claude_agents }}
27
+ artifacts: ${{ steps.paths.outputs.artifacts }}
28
+ full: ${{ steps.paths.outputs.full }}
29
+ sha: ${{ steps.paths.outputs.sha }}
30
+ steps:
31
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
32
+ with:
33
+ persist-credentials: false
34
+ fetch-depth: 0
35
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
36
+ with:
37
+ python-version: '3.14'
38
+ - run: python -m unittest tools.test_ci_changes -v
39
+ - id: paths
40
+ env:
41
+ CI_FULL: ${{ inputs.full || false }}
42
+ run: python tools/ci_changes.py
43
+ core:
44
+ needs: changes
45
+ if: needs.changes.outputs.core == 'true'
46
+ uses: ./.github/workflows/rust-core.yml
47
+ sdk:
48
+ needs: changes
49
+ if: needs.changes.outputs.sdk == 'true'
50
+ uses: ./.github/workflows/python-sdk.yml
51
+ langgraph:
52
+ needs: changes
53
+ if: needs.changes.outputs.langgraph == 'true'
54
+ uses: ./.github/workflows/langgraph.yml
55
+ openai_agents:
56
+ needs: changes
57
+ if: needs.changes.outputs.openai_agents == 'true'
58
+ uses: ./.github/workflows/openai-agents.yml
59
+ google_adk:
60
+ needs: changes
61
+ if: needs.changes.outputs.google_adk == 'true'
62
+ uses: ./.github/workflows/google-adk.yml
63
+ claude_agents:
64
+ needs: changes
65
+ if: needs.changes.outputs.claude_agents == 'true'
66
+ uses: ./.github/workflows/claude-agents.yml
67
+ artifacts:
68
+ needs: changes
69
+ if: needs.changes.outputs.artifacts == 'true'
70
+ uses: ./.github/workflows/release-artifacts.yml
71
+ check:
72
+ name: CI
73
+ if: always()
74
+ needs: [changes, core, sdk, langgraph, openai_agents, google_adk, claude_agents, artifacts]
75
+ runs-on: ubuntu-24.04
76
+ steps:
77
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
78
+ with:
79
+ persist-credentials: false
80
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
81
+ with:
82
+ python-version: '3.14'
83
+ - name: Require every selected suite for this exact source commit
84
+ env:
85
+ CI_NEEDS: ${{ toJSON(needs) }}
86
+ run: python tools/ci_changes.py --check-needs
@@ -0,0 +1,26 @@
1
+ name: Claude Agent SDK integration
2
+ permissions:
3
+ contents: read
4
+ on: [workflow_call, workflow_dispatch]
5
+ jobs:
6
+ claude_agents:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ python: ['3.11', '3.14']
11
+ steps:
12
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
13
+ with:
14
+ persist-credentials: false
15
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
16
+ with:
17
+ python-version: ${{ matrix.python }}
18
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
19
+ with:
20
+ toolchain: '1.95.0'
21
+ - run: python -m venv .venv
22
+ - run: .venv/bin/python -m pip install maturin==1.10.2
23
+ - run: |
24
+ . .venv/bin/activate
25
+ maturin develop --locked --extras claude-agents
26
+ python -m unittest discover -s agent_frameworks_tests/claude_agents -v
@@ -0,0 +1,26 @@
1
+ name: Google ADK integration
2
+ permissions:
3
+ contents: read
4
+ on: [workflow_call, workflow_dispatch]
5
+ jobs:
6
+ google_adk:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ python: ['3.11', '3.14']
11
+ steps:
12
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
13
+ with:
14
+ persist-credentials: false
15
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
16
+ with:
17
+ python-version: ${{ matrix.python }}
18
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
19
+ with:
20
+ toolchain: '1.95.0'
21
+ - run: python -m venv .venv
22
+ - run: .venv/bin/python -m pip install maturin==1.10.2
23
+ - run: |
24
+ . .venv/bin/activate
25
+ maturin develop --locked --extras google-adk
26
+ python -m unittest discover -s agent_frameworks_tests/google_adk -v
@@ -0,0 +1,30 @@
1
+ name: LangGraph integration
2
+ permissions:
3
+ contents: read
4
+ on: [workflow_call, workflow_dispatch]
5
+ jobs:
6
+ integration:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ python: ['3.11', '3.14']
11
+ steps:
12
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
13
+ with:
14
+ persist-credentials: false
15
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
16
+ with:
17
+ python-version: ${{ matrix.python }}
18
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
19
+ with:
20
+ toolchain: '1.95.0'
21
+ - run: python -m venv .venv
22
+ - run: .venv/bin/python -m pip install maturin==1.10.2 mypy==1.19.1
23
+ - run: |
24
+ . .venv/bin/activate
25
+ maturin develop --locked --extras langgraph
26
+ python -m unittest discover -s agent_frameworks_tests/langgraph_tests -v
27
+ python examples/langgraph_lending.py
28
+ python -m pip install --require-hashes -r requirements/test.txt
29
+ python -m pytest llm_tests -q
30
+ python -m mypy --strict python/co2/__init__.py python/co2/_api.py python/co2/_models.py python/co2/runtime.py python/co2/integrations/langgraph.py python_tests examples/lending.py examples/langgraph_lending.py agent_frameworks_tests/langgraph_tests
@@ -0,0 +1,26 @@
1
+ name: OpenAI Agents SDK integration
2
+ permissions:
3
+ contents: read
4
+ on: [workflow_call, workflow_dispatch]
5
+ jobs:
6
+ openai_agents:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ python: ['3.11', '3.14']
11
+ steps:
12
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
13
+ with:
14
+ persist-credentials: false
15
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
16
+ with:
17
+ python-version: ${{ matrix.python }}
18
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
19
+ with:
20
+ toolchain: '1.95.0'
21
+ - run: python -m venv .venv
22
+ - run: .venv/bin/python -m pip install maturin==1.10.2
23
+ - run: |
24
+ . .venv/bin/activate
25
+ maturin develop --locked --extras openai-agents
26
+ python -m unittest discover -s agent_frameworks_tests/openai_agents -v
@@ -0,0 +1,41 @@
1
+ name: Python SDK
2
+ permissions:
3
+ contents: read
4
+ on: [workflow_call, workflow_dispatch]
5
+ jobs:
6
+ sdk:
7
+ runs-on: ubuntu-latest
8
+ strategy:
9
+ matrix:
10
+ python: ['3.11', '3.12', '3.13', '3.14']
11
+ steps:
12
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
13
+ with:
14
+ persist-credentials: false
15
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
16
+ with:
17
+ python-version: ${{ matrix.python }}
18
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
19
+ with:
20
+ toolchain: '1.95.0'
21
+ components: rustfmt, clippy
22
+ - run: python -m pip install maturin==1.10.2 mypy==1.19.1
23
+ - run: cargo fmt --check
24
+ - run: cargo fmt --manifest-path bindings/python/Cargo.toml --check
25
+ - run: cargo clippy --manifest-path bindings/python/Cargo.toml --locked --all-targets -- -D warnings
26
+ - run: cargo test --locked
27
+ - run: cargo test --locked --features provider-admission
28
+ - run: cargo test --locked --manifest-path crates/provider-host/Cargo.toml
29
+ - run: cargo test --locked --manifest-path providers/bounded-expression/Cargo.toml
30
+ - run: cargo build --locked --example python_sdk_parity
31
+ - run: maturin build --locked --interpreter python --out wheels
32
+ - run: python -m pip install wheels/*.whl
33
+ - run: python -m pip check
34
+ - run: python -c "import co2, co2.integrations, importlib.util; assert importlib.util.find_spec('langgraph') is None; assert importlib.util.find_spec('wasmtime') is None; from co2.runtime import available_provider_implementations; assert available_provider_implementations() == ()"
35
+ - run: python -m unittest discover -s python_tests -v
36
+ env:
37
+ CO2_PARITY_BIN: ${{ github.workspace }}/target/debug/examples/python_sdk_parity
38
+ - run: python examples/lending.py
39
+ # Optional adapter types used by durable SDK fixtures; base-install checks run above.
40
+ - run: python -m pip install langgraph==1.2.24
41
+ - run: python -m mypy --strict python/co2/__init__.py python/co2/_api.py python/co2/_models.py python/co2/integrations/wasmtime.py python/co2/runtime.py python/co2/integrations/bounded_expression.py python_tests examples/lending.py
@@ -0,0 +1,32 @@
1
+ name: Release artifact checks
2
+ permissions:
3
+ contents: read
4
+ on: [workflow_call, workflow_dispatch]
5
+ jobs:
6
+ source-and-wheel:
7
+ runs-on: ubuntu-latest
8
+ steps:
9
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
10
+ with:
11
+ persist-credentials: false
12
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
13
+ with:
14
+ python-version: '3.14'
15
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
16
+ with:
17
+ toolchain: '1.95.0'
18
+ - run: python -m pip install --require-hashes -r requirements/build.txt
19
+ - run: python -m unittest tools.test_release tools.test_distribution_contract tools.test_audit_dependencies tools.test_release_candidate tools.test_ci_changes -v
20
+ - run: python tools/check_release.py --stage "$RUNNER_TEMP/co2-release"
21
+ - name: Build reviewed sources
22
+ working-directory: ${{ runner.temp }}/co2-release
23
+ run: |
24
+ maturin sdist --out "$RUNNER_TEMP/co2-artifacts"
25
+ python tools/build_release.py --interpreter python --out "$RUNNER_TEMP/co2-artifacts"
26
+ python tools/check_release.py --artifact "$RUNNER_TEMP"/co2-artifacts/*.tar.gz --artifact "$RUNNER_TEMP"/co2-artifacts/*.whl
27
+ - name: Validate installed base wheel
28
+ run: |
29
+ python -m pip install "$RUNNER_TEMP"/co2-artifacts/*.whl
30
+ python -m pip check
31
+ python -c "import co2; from co2.runtime import available_provider_implementations; assert not co2.persistence_available(); assert available_provider_implementations() == ()"
32
+ python "$RUNNER_TEMP/co2-release/examples/quickstart.py"
@@ -0,0 +1,209 @@
1
+ name: Review release candidates
2
+ on:
3
+ workflow_dispatch:
4
+ permissions:
5
+ contents: read
6
+ actions: read
7
+ concurrency:
8
+ group: release-candidate-${{ github.ref }}
9
+ cancel-in-progress: false
10
+ jobs:
11
+ source:
12
+ # Qualification requires an administrator-owned manual dispatch. No upload occurs.
13
+ environment: release-candidate-review
14
+ runs-on: ubuntu-24.04
15
+ steps:
16
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
17
+ with:
18
+ persist-credentials: false
19
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
20
+ with:
21
+ python-version: '3.14'
22
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
23
+ with:
24
+ toolchain: '1.95.0'
25
+ - name: Verify administrator-authorised qualification dispatch
26
+ env:
27
+ GH_TOKEN: ${{ github.token }}
28
+ run: python tools/release_candidate.py check-dispatch --commit "$GITHUB_SHA" --version "$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
29
+ - run: python -m pip install --require-hashes -r requirements/build.txt
30
+ - run: python -m unittest tools.test_release tools.test_distribution_contract tools.test_audit_dependencies tools.test_release_candidate tools.test_ci_changes -v
31
+ - run: python tools/prepare_source.py --out "$RUNNER_TEMP/source-candidate"
32
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
33
+ with:
34
+ name: reviewed-source
35
+ path: |
36
+ ${{ runner.temp }}/source-candidate/*.tar.gz
37
+ ${{ runner.temp }}/source-candidate/*.json
38
+ full-ci:
39
+ needs: source
40
+ uses: ./.github/workflows/ci.yml
41
+ with:
42
+ full: true
43
+ memory:
44
+ name: memory-${{ matrix.os }}-${{ matrix.python }}
45
+ needs: source
46
+ strategy:
47
+ fail-fast: false
48
+ matrix:
49
+ os: [ubuntu-24.04, ubuntu-24.04-arm, macos-26]
50
+ python: ['3.11', '3.12', '3.13', '3.14']
51
+ runs-on: ${{ matrix.os }}
52
+ steps:
53
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
54
+ with:
55
+ persist-credentials: false
56
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
57
+ with:
58
+ python-version: ${{ matrix.python }}
59
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
60
+ with:
61
+ toolchain: '1.95.0'
62
+ components: rustfmt, clippy
63
+ - run: python -m pip install --require-hashes -r requirements/build.txt
64
+ - run: cargo test --locked
65
+ - run: cargo clippy --locked --all-targets -- -D warnings
66
+ - run: cargo build --locked --release --example python_sdk_parity
67
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
68
+ with:
69
+ name: reviewed-source
70
+ path: ${{ runner.temp }}/inputs
71
+ digest-mismatch: error
72
+ - name: Validate and extract canonical source
73
+ id: source
74
+ run: python tools/release_candidate.py extract-source --inputs "$RUNNER_TEMP/inputs" --out "$RUNNER_TEMP/source" --commit "$GITHUB_SHA" --version "$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
75
+ - name: Rebuild audited source distribution
76
+ run: |
77
+ source="${{ steps.source.outputs.source }}"
78
+ python "$source/tools/build_release.py" --variant base --out "$RUNNER_TEMP/wheels"
79
+ python "$source/tools/check_release.py" --artifact "$RUNNER_TEMP"/wheels/*.whl
80
+ if [ "${{ runner.os }}" = Linux ]; then
81
+ python -m pip install --require-hashes -r requirements/audit.txt
82
+ wheel=$(find "$RUNNER_TEMP/wheels" -name '*.whl')
83
+ python -m auditwheel show "$wheel" > "${wheel%.whl}.auditwheel.txt"
84
+ fi
85
+ python -m venv "$RUNNER_TEMP/installed"
86
+ "$RUNNER_TEMP/installed/bin/python" -m pip install "$RUNNER_TEMP"/wheels/*.whl
87
+ cd "$RUNNER_TEMP"
88
+ wheel=$(find "$RUNNER_TEMP/wheels" -name '*.whl')
89
+ "$RUNNER_TEMP/installed/bin/python" "$source/tools/verify_installation.py" --wheel "$wheel"
90
+ PYTHONPATH="$source" CO2_PARITY_BIN="$GITHUB_WORKSPACE/target/release/examples/python_sdk_parity" "$RUNNER_TEMP/installed/bin/python" -m unittest discover -s "$source/python_tests" -v
91
+ "$RUNNER_TEMP/installed/bin/python" "$source/examples/quickstart.py"
92
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
93
+ with:
94
+ name: memory-${{ matrix.os }}-${{ matrix.python }}
95
+ path: ${{ runner.temp }}/wheels/*
96
+ # Private feature regression coverage uses qualified hosted macOS/APFS.
97
+ # The public base matrix has no dependency on dedicated Linux durable storage.
98
+ native:
99
+ name: native-${{ matrix.label }}
100
+ needs: source
101
+ strategy:
102
+ fail-fast: false
103
+ matrix:
104
+ include:
105
+ - os: macos-26
106
+ label: macos-arm64-apfs
107
+ runs-on: ${{ matrix.os }}
108
+ steps:
109
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
110
+ with:
111
+ persist-credentials: false
112
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
113
+ with:
114
+ python-version: '3.14'
115
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
116
+ with:
117
+ toolchain: '1.95.0'
118
+ components: rustfmt, clippy
119
+ - run: python -m pip install --require-hashes -r requirements/build.txt
120
+ - run: cargo test --locked --features persistence-sqlite
121
+ - run: cargo clippy --locked --all-targets --features persistence-sqlite -- -D warnings
122
+ - run: cargo test --locked --manifest-path crates/provider-host/Cargo.toml
123
+ - run: cargo test --locked --manifest-path crates/provider-spi/Cargo.toml
124
+ - run: cargo test --locked --manifest-path providers/bounded-expression/Cargo.toml
125
+ - run: cargo build --locked --release --features persistence-sqlite --examples
126
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
127
+ with:
128
+ name: reviewed-source
129
+ path: ${{ runner.temp }}/inputs
130
+ digest-mismatch: error
131
+ - name: Validate and extract canonical source
132
+ id: source
133
+ run: python tools/release_candidate.py extract-source --inputs "$RUNNER_TEMP/inputs" --out "$RUNNER_TEMP/source" --commit "$GITHUB_SHA" --version "$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
134
+ - name: Build and clean-install every native variant
135
+ run: |
136
+ source="${{ steps.source.outputs.source }}"
137
+ for variant in persistence expression wasmtime reference persistence-expression persistence-wasmtime persistence-reference; do
138
+ python "$source/tools/build_release.py" --variant "$variant" --out "$RUNNER_TEMP/wheels/$variant" --target-dir "$RUNNER_TEMP/native-target"
139
+ python "$source/tools/check_release.py" --artifact "$RUNNER_TEMP/wheels/$variant/"*.whl
140
+ python -m venv "$RUNNER_TEMP/install-$variant"
141
+ "$RUNNER_TEMP/install-$variant/bin/python" -m pip install "$RUNNER_TEMP/wheels/$variant/"*.whl
142
+ case "$variant" in *wasmtime*|*reference*) "$RUNNER_TEMP/install-$variant/bin/python" -m pip install wasmtime==51.0.0 ;; esac
143
+ cd "$RUNNER_TEMP"
144
+ wheel=$(find "$RUNNER_TEMP/wheels/$variant" -name '*.whl')
145
+ "$RUNNER_TEMP/install-$variant/bin/python" "$source/tools/verify_installation.py" --variant "$variant" --wheel "$wheel"
146
+ cd "$GITHUB_WORKSPACE"
147
+ done
148
+ - name: Run installed SDK and real bounded provider tests
149
+ run: |
150
+ python -m pip install --require-hashes -r requirements/test.txt
151
+ python -m pip install "$RUNNER_TEMP/wheels/persistence-reference/"*.whl wasmtime==51.0.0 langgraph==1.2.24
152
+ CO2_PARITY_BIN="$PWD/target/release/examples/python_sdk_parity" CO2_DURABLE_PARITY_BIN="$PWD/target/release/examples/durable_restart" python -m pytest python_tests provider_tests wasmtime_tests -q --basetemp "$(mktemp -d)"
153
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
154
+ with:
155
+ name: native-${{ matrix.label }}
156
+ path: ${{ runner.temp }}/wheels/**/*
157
+ audits:
158
+ needs: source
159
+ runs-on: ubuntu-24.04
160
+ steps:
161
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
162
+ with:
163
+ persist-credentials: false
164
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
165
+ with:
166
+ python-version: '3.14'
167
+ - uses: dtolnay/rust-toolchain@df2a88e9fe4098bad09cb42c3dec7187f15861fc
168
+ with:
169
+ toolchain: '1.95.0'
170
+ - run: python -m pip install --require-hashes -r requirements/audit.txt
171
+ - run: cargo install --locked cargo-deny --version 0.22.2
172
+ - name: Check Rust advisory, licence, source and dependency policies
173
+ run: |
174
+ tool_manifest=$(find "${CARGO_HOME:-$HOME/.cargo}/registry/src" -path '*/cargo-deny-0.22.2/Cargo.toml' -type f -print -quit)
175
+ test -n "$tool_manifest"
176
+ python tools/audit_dependencies.py --out "$RUNNER_TEMP/audits" --tool-manifest "$tool_manifest"
177
+ - run: python -m pip_audit -r requirements/build.txt -r requirements/test.txt -r requirements/audit.txt --require-hashes --format json --output "$RUNNER_TEMP/audits/tooling-advisories.json"
178
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
179
+ with:
180
+ name: dependency-audits
181
+ path: ${{ runner.temp }}/audits/*
182
+ assemble:
183
+ needs: [source, memory, native, audits, full-ci]
184
+ runs-on: ubuntu-24.04
185
+ steps:
186
+ - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
187
+ with:
188
+ persist-credentials: false
189
+ - uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0
190
+ with:
191
+ python-version: '3.14'
192
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
193
+ with:
194
+ name: reviewed-source
195
+ path: ${{ runner.temp }}/reviewed/source
196
+ digest-mismatch: error
197
+ - uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
198
+ with:
199
+ pattern: memory-*
200
+ path: ${{ runner.temp }}/reviewed/memory
201
+ digest-mismatch: error
202
+ - name: Seal complete public base matrix after all qualification jobs
203
+ run: python tools/release_candidate.py assemble --inputs "$RUNNER_TEMP/reviewed" --out "$RUNNER_TEMP/release-candidate" --commit "$GITHUB_SHA" --version "$(python -c 'import tomllib; print(tomllib.load(open("pyproject.toml", "rb"))["project"]["version"])')"
204
+ - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9
205
+ with:
206
+ name: release-candidate-${{ github.run_id }}-${{ github.run_attempt }}
207
+ path: ${{ runner.temp }}/release-candidate/
208
+ if-no-files-found: error
209
+ retention-days: 7