continuo-python-runtime 0.12.0__tar.gz → 0.13.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 (257) hide show
  1. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/CHANGELOG.md +83 -0
  2. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/PKG-INFO +191 -119
  3. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/README.md +189 -117
  4. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_entrypoint.py +19 -11
  5. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_runtime.py +37 -35
  6. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_integration_postgres_entrypoint.py +19 -11
  7. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_integration_runtime_postgres.py +37 -35
  8. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_integration_runtime_trino.py +25 -23
  9. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_integration_trino_entrypoint.py +19 -11
  10. continuo_python_runtime-0.13.0/conftest.py +32 -0
  11. continuo_python_runtime-0.13.0/continuo_python_runtime/cli.py +242 -0
  12. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/content_check.py +4 -4
  13. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/contract/kinds.py +37 -29
  14. continuo_python_runtime-0.13.0/continuo_python_runtime/contract/loader.py +301 -0
  15. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/contract/model.py +12 -6
  16. continuo_python_runtime-0.13.0/continuo_python_runtime/contract/pack.py +299 -0
  17. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/contract/paths.py +1 -1
  18. continuo_python_runtime-0.13.0/continuo_python_runtime/contract/read_tables.py +85 -0
  19. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/harness.py +14 -5
  20. continuo_python_runtime-0.13.0/continuo_python_runtime/hashing.py +76 -0
  21. continuo_python_runtime-0.13.0/continuo_python_runtime/packages.py +56 -0
  22. continuo_python_runtime-0.13.0/docs/boundary-contract.md +722 -0
  23. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/image-requirements-duckdb.txt +1 -1
  24. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/image-requirements-postgres.txt +1 -1
  25. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/image-requirements-trino.txt +1 -1
  26. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/pyproject.toml +14 -13
  27. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/scripts/check_version_bumps.py +30 -7
  28. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/template/.github/workflows/release.yml +24 -15
  29. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/template/Dockerfile +1 -1
  30. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/template/README.md +35 -18
  31. continuo_python_runtime-0.13.0/template/contracts/example.odcs.yaml +60 -0
  32. continuo_python_runtime-0.13.0/template/contracts/example_csv.odcs.yaml +29 -0
  33. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/template/scripts/example.py +1 -1
  34. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/conftest.py +126 -33
  35. continuo_python_runtime-0.13.0/tests/contract/test_kinds.py +150 -0
  36. continuo_python_runtime-0.13.0/tests/contract/test_loader.py +458 -0
  37. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/contract/test_model.py +24 -13
  38. continuo_python_runtime-0.13.0/tests/contract/test_pack.py +639 -0
  39. continuo_python_runtime-0.13.0/tests/contract/test_read_tables.py +275 -0
  40. continuo_python_runtime-0.13.0/tests/contract/test_write_modes.py +145 -0
  41. continuo_python_runtime-0.13.0/tests/fixtures/demo/service-py/contracts/demo_orders_csv.odcs.yaml +21 -0
  42. continuo_python_runtime-0.13.0/tests/fixtures/demo/service-py/contracts/fx_eur_usd_rates.odcs.yaml +23 -0
  43. continuo_python_runtime-0.13.0/tests/fixtures/demo/service-py/contracts/py_daily_kpis.odcs.yaml +24 -0
  44. continuo_python_runtime-0.13.0/tests/fixtures/demo/service-py/old/demo_orders_csv.yml +18 -0
  45. continuo_python_runtime-0.13.0/tests/fixtures/demo/service-py/old/fx_eur_usd_rates.yml +18 -0
  46. continuo_python_runtime-0.13.0/tests/fixtures/demo/service-py/old/py_daily_kpis.yml +20 -0
  47. continuo_python_runtime-0.13.0/tests/fixtures/write_modes/append_node.odcs.yaml +20 -0
  48. continuo_python_runtime-0.13.0/tests/fixtures/write_modes/assets_node.odcs.yaml +25 -0
  49. continuo_python_runtime-0.13.0/tests/fixtures/write_modes/replace_node.odcs.yaml +23 -0
  50. continuo_python_runtime-0.13.0/tests/fixtures/write_modes/upsert_node.odcs.yaml +21 -0
  51. continuo_python_runtime-0.13.0/tests/odcs_builder.py +168 -0
  52. continuo_python_runtime-0.13.0/tests/smoke/node_smoke/contracts/smoke.odcs.yaml +20 -0
  53. continuo_python_runtime-0.13.0/tests/test_check_version_bumps_tags.py +210 -0
  54. continuo_python_runtime-0.13.0/tests/test_cli.py +463 -0
  55. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_closure.py +1 -1
  56. continuo_python_runtime-0.13.0/tests/test_contract_loader.py +105 -0
  57. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_contract_pin_consistency.py +12 -0
  58. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_csv_loader.py +15 -15
  59. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_harness.py +72 -53
  60. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_harness_content_check.py +52 -30
  61. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_harness_write_modes.py +57 -9
  62. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_hashing.py +83 -11
  63. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_kind_registries.py +1 -1
  64. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_no_legacy_names.py +2 -1
  65. continuo_python_runtime-0.13.0/tests/test_packages.py +117 -0
  66. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_projection_vectors.py +7 -7
  67. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_template.py +162 -17
  68. continuo_python_runtime-0.13.0/tests/test_write_contract_fixture.py +16 -0
  69. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/uv.lock +121 -5
  70. continuo_python_runtime-0.12.0/continuo_python_runtime/cli.py +0 -177
  71. continuo_python_runtime-0.12.0/continuo_python_runtime/contract/loader.py +0 -533
  72. continuo_python_runtime-0.12.0/continuo_python_runtime/contract/merge.py +0 -178
  73. continuo_python_runtime-0.12.0/continuo_python_runtime/contract/secret_ref.py +0 -31
  74. continuo_python_runtime-0.12.0/continuo_python_runtime/hashing.py +0 -93
  75. continuo_python_runtime-0.12.0/docs/boundary-contract.md +0 -483
  76. continuo_python_runtime-0.12.0/template/contracts/example.yml +0 -39
  77. continuo_python_runtime-0.12.0/template/contracts/example_csv.yml +0 -17
  78. continuo_python_runtime-0.12.0/tests/contract/test_kinds.py +0 -111
  79. continuo_python_runtime-0.12.0/tests/contract/test_loader.py +0 -948
  80. continuo_python_runtime-0.12.0/tests/contract/test_merge.py +0 -773
  81. continuo_python_runtime-0.12.0/tests/contract/test_wire_contract_write_modes.py +0 -57
  82. continuo_python_runtime-0.12.0/tests/fixtures/wire_contract_write_modes.yml +0 -68
  83. continuo_python_runtime-0.12.0/tests/smoke/node_smoke/contracts/smoke.yml +0 -13
  84. continuo_python_runtime-0.12.0/tests/test_check_version_bumps_tags.py +0 -49
  85. continuo_python_runtime-0.12.0/tests/test_cli.py +0 -335
  86. continuo_python_runtime-0.12.0/tests/test_contract_loader.py +0 -37
  87. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.claude/agents/ddd-architecture-auditor.md +0 -0
  88. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.dockerignore +0 -0
  89. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/CODEOWNERS +0 -0
  90. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/ISSUE_TEMPLATE/bug_report.yml +0 -0
  91. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
  92. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/ISSUE_TEMPLATE/feature_request.yml +0 -0
  93. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/PULL_REQUEST_TEMPLATE.md +0 -0
  94. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/dependabot.yml +0 -0
  95. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/ci.yml +0 -0
  96. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/dco.yml +0 -0
  97. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/image-build.yml +0 -0
  98. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/image-smoke.yml +0 -0
  99. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/images.yml +0 -0
  100. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/publish-pypi.yml +0 -0
  101. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/release.yml +0 -0
  102. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/security.yml +0 -0
  103. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.github/workflows/verify-packages.yml +0 -0
  104. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.gitignore +0 -0
  105. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.gitleaks.toml +0 -0
  106. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/.python-version +0 -0
  107. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/CLAUDE.md +0 -0
  108. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/CODE_OF_CONDUCT.md +0 -0
  109. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/CONTRIBUTING.md +0 -0
  110. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/DCO +0 -0
  111. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/Dockerfile.duckdb +0 -0
  112. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/Dockerfile.postgres +0 -0
  113. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/Dockerfile.trino +0 -0
  114. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/LICENSE +0 -0
  115. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/NOTICE +0 -0
  116. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/SECURITY.md +0 -0
  117. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/README.md +0 -0
  118. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/__init__.py +0 -0
  119. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/adapter.py +0 -0
  120. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/application/__init__.py +0 -0
  121. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/application/ports.py +0 -0
  122. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/application/warehouse.py +0 -0
  123. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/domain/__init__.py +0 -0
  124. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/domain/columns.py +0 -0
  125. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/domain/identifiers.py +0 -0
  126. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/domain/layout.py +0 -0
  127. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/__init__.py +0 -0
  128. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/ddl.py +0 -0
  129. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/extensions.py +0 -0
  130. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/passfile.py +0 -0
  131. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/session.py +0 -0
  132. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/continuo_duckdb_adapter/infrastructure/settings.py +0 -0
  133. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/pyproject.toml +0 -0
  134. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/__init__.py +0 -0
  135. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/conftest.py +0 -0
  136. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_adapter_duckdb_proxy.py +0 -0
  137. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_adapter_duckdb_runtime.py +0 -0
  138. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_adapter_duckdb_validation.py +0 -0
  139. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_adapter_duckdb_wiring.py +0 -0
  140. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_domain_duckdb_columns.py +0 -0
  141. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_domain_duckdb_identifiers.py +0 -0
  142. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_domain_duckdb_layout.py +0 -0
  143. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_infra_duckdb_session.py +0 -0
  144. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_infra_duckdb_settings_ddl.py +0 -0
  145. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_conformance.py +0 -0
  146. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_layout.py +0 -0
  147. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_nullability_probe.py +0 -0
  148. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_seed_preflight.py +0 -0
  149. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_stack.py +0 -0
  150. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/duckdb/tests/test_integration_duckdb_validation.py +0 -0
  151. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/README.md +0 -0
  152. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/continuo_postgres_adapter/__init__.py +0 -0
  153. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/continuo_postgres_adapter/adapter.py +0 -0
  154. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/pyproject.toml +0 -0
  155. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/__init__.py +0 -0
  156. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/conftest.py +0 -0
  157. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_adapter_postgres_connect.py +0 -0
  158. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_adapter_postgres_validation.py +0 -0
  159. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_adapter_runtime_postgres.py +0 -0
  160. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_integration_postgres_conformance.py +0 -0
  161. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_integration_postgres_dependents.py +0 -0
  162. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_integration_postgres_seed_preflight.py +0 -0
  163. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/postgres/tests/test_integration_postgres_validation.py +0 -0
  164. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/README.md +0 -0
  165. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/continuo_trino_adapter/__init__.py +0 -0
  166. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/continuo_trino_adapter/adapter.py +0 -0
  167. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/pyproject.toml +0 -0
  168. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/__init__.py +0 -0
  169. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_adapter_runtime_trino.py +0 -0
  170. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_adapter_trino_connect.py +0 -0
  171. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_adapter_trino_dependents.py +0 -0
  172. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_adapter_trino_validation.py +0 -0
  173. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_adapter_trino_writes.py +0 -0
  174. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_integration_trino_conformance.py +0 -0
  175. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_integration_trino_merge_probe.py +0 -0
  176. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_integration_trino_seed_preflight.py +0 -0
  177. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/adapters/trino/tests/test_integration_trino_validation.py +0 -0
  178. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/__init__.py +0 -0
  179. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/closure.py +0 -0
  180. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/conform.py +0 -0
  181. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/context.py +0 -0
  182. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/contract/__init__.py +0 -0
  183. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/csv_loader.py +0 -0
  184. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/csv_readers/__init__.py +0 -0
  185. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/csv_readers/https.py +0 -0
  186. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/csv_readers/s3.py +0 -0
  187. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/csv_source.py +0 -0
  188. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/errors.py +0 -0
  189. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/hash_inputs.py +0 -0
  190. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/lint.py +0 -0
  191. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/shape.py +0 -0
  192. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/types.py +0 -0
  193. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/validation/__init__.py +0 -0
  194. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/validation/preflight.py +0 -0
  195. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/validation/runner.py +0 -0
  196. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/continuo_python_runtime/validation/s3.py +0 -0
  197. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/LICENSE +0 -0
  198. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/NOTICE +0 -0
  199. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/README.md +0 -0
  200. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/__init__.py +0 -0
  201. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/config.py +0 -0
  202. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/keys.py +0 -0
  203. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/port.py +0 -0
  204. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/result.py +0 -0
  205. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/sql.py +0 -0
  206. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/testing/__init__.py +0 -0
  207. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/testing/conformance.py +0 -0
  208. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/continuo_engine_contract/types.py +0 -0
  209. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/pyproject.toml +0 -0
  210. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/__init__.py +0 -0
  211. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_config.py +0 -0
  212. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_conformance_suite.py +0 -0
  213. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_contract_keys.py +0 -0
  214. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_contract_packaging.py +0 -0
  215. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_contract_types.py +0 -0
  216. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_port.py +0 -0
  217. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_result.py +0 -0
  218. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_sql.py +0 -0
  219. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/contract/tests/test_startup_conformance.py +0 -0
  220. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/scripts/apply_rehearsal_version.py +0 -0
  221. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/scripts/bake_duckdb_extensions.py +0 -0
  222. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/scripts/install_image_pins.py +0 -0
  223. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/scripts/security-scan.sh +0 -0
  224. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/scripts/verify_installed_packages.py +0 -0
  225. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/template/Dockerfile.pip +0 -0
  226. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/template/requirements.lock +0 -0
  227. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/__init__.py +0 -0
  228. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/contract/__init__.py +0 -0
  229. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/smoke/duckdb-stack/docker-compose.yml +0 -0
  230. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/smoke/node_smoke/scripts/smoke.py +0 -0
  231. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/smoke/postgres-stack/docker-compose.yml +0 -0
  232. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/smoke/trino-stack/catalog/iceberg.properties +0 -0
  233. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/smoke/trino-stack/docker-compose.yml +0 -0
  234. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_adapter_naming.py +0 -0
  235. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_ci_test_coverage.py +0 -0
  236. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_conform.py +0 -0
  237. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_context.py +0 -0
  238. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_csv_readers_https.py +0 -0
  239. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_csv_readers_integration.py +0 -0
  240. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_csv_source.py +0 -0
  241. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_entrypoint_shims.py +0 -0
  242. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_errors.py +0 -0
  243. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_hashing_vectors.py +0 -0
  244. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_image_requirements_sync.py +0 -0
  245. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_image_smoke_validation.py +0 -0
  246. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_install_image_pins.py +0 -0
  247. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_lint.py +0 -0
  248. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_package.py +0 -0
  249. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_python_version_consistency.py +0 -0
  250. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_rehearsal_version.py +0 -0
  251. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_release_pipeline_structure.py +0 -0
  252. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_shape.py +0 -0
  253. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_types.py +0 -0
  254. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_validation_preflight.py +0 -0
  255. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_validation_runner.py +0 -0
  256. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_validation_s3.py +0 -0
  257. {continuo_python_runtime-0.12.0 → continuo_python_runtime-0.13.0}/tests/test_verify_installed_packages.py +0 -0
@@ -5,6 +5,89 @@ follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [0.13.0] - 2026-11-16
9
+
10
+ **TL;DR**
11
+
12
+ - The runtime reads ODCS contracts, through continuo-contracts 0.2.0: one
13
+ `<table>.odcs.yaml` file per node. The `nodes:` format is no longer read.
14
+ - `continuo-runtime pack` replaces `merge`. It writes `odcs-bundle.json`, and
15
+ the release kind is now `python-odcs`.
16
+ - `continuo-runtime packages` prints the packages of an image, and `pack`
17
+ records them in the bundle.
18
+ - `validate` refuses a read query that names a table without its schema.
19
+ - A node converted to ODCS with the same values keeps its `content_hash`.
20
+
21
+ **Upgrade**
22
+
23
+ 1. Rename each contract to `<table>.odcs.yaml` and write it in ODCS. The
24
+ conversion guide is "Converting a contract file" in
25
+ `docs/boundary-contract.md`.
26
+ 2. Build your image `FROM` the `v0.13.0` engine image. CI installs
27
+ `continuo-python-runtime==0.13.0` from the `FROM` line.
28
+ 3. In CI, build and push the image, then run
29
+ `continuo-runtime pack contracts/ --service <name> --repo-root . --image <pushed image> --out odcs-bundle.json`.
30
+ 4. Upload `odcs-bundle.json` to
31
+ `s3://<bucket>/<service>/<release_id>/odcs-bundle.json` and post the release
32
+ with kind `python-odcs`, which continuo accepts from the chart release that
33
+ carries continuo's PR-1a.
34
+
35
+ Versions: runtime 0.13.0 (pins continuo-contracts 0.2.0), engine contract 0.10.0, postgres adapter 0.4.0, trino adapter 0.5.0, duckdb adapter 0.3.0.
36
+
37
+ ### Breaking
38
+
39
+ - The runtime reads only ODCS contracts, through continuo-contracts 0.2.0:
40
+ one file per node, named `<table>.odcs.yaml`, or `<schema>.<table>.odcs.yaml`
41
+ for two nodes of one service that share a table name. The `nodes:` format is
42
+ no longer read, and any other `.yml` or `.yaml` file in the contracts folder
43
+ is refused, with a message that points to the conversion table in
44
+ `docs/boundary-contract.md`.
45
+ - `continuo-runtime merge` is gone. `continuo-runtime pack` replaces it and
46
+ writes `odcs-bundle.json` where `merge` wrote `contract.yaml`.
47
+ - The release kind for these services is `python-odcs` (it was `python`), and
48
+ the artifact a release carries is `odcs-bundle.json`.
49
+
50
+ ### Added
51
+
52
+ - `continuo-runtime pack <contracts> --service <name> --repo-root <dir> --out <file>`
53
+ writes `odcs-bundle.json`: each contract's text as written, the two hash
54
+ parts the repository's files give (`source_hash` and `shared_code_hash`),
55
+ the service, and the versions of the runtime and the library. It records the
56
+ package list of the image the service runs, read with `--image <ref>` or
57
+ taken from a file with `--image-packages` (give exactly one). It checks each
58
+ contract against `--service`, lints every node's script and its in-repo
59
+ import closure, and writes nothing unless every check passed.
60
+ - `continuo-runtime packages` prints every installed package of the
61
+ environment as one JSON object of normalised name to version. Run in the
62
+ service's image, it gives the list `pack` records.
63
+ - `validate` and the loader refuse a read query that names a table without its
64
+ schema. The one exception is a reference to a CTE that is in scope where the
65
+ name is used, so the body of `WITH orders AS (SELECT * FROM orders)` still has
66
+ to name the schema of the table it reads. The CTEs of a `WITH RECURSIVE` list
67
+ all see each other.
68
+ - A node of kind `python-model` is read as `python-node`, as the library reads
69
+ it.
70
+
71
+ ### Changed
72
+
73
+ - The runtime pins `continuo-contracts==0.2.0`, which adds `jsonschema` and
74
+ needs Python 3.14, as the runtime already does.
75
+ - A node's hashes come from the library's node, read from its ODCS contract. A
76
+ node converted to ODCS with the same values keeps its `content_hash`.
77
+ - The template ships `contracts/example.odcs.yaml` and
78
+ `contracts/example_csv.odcs.yaml`, and its release workflow runs `pack` and
79
+ submits the release with kind `python-odcs`.
80
+ - The template's `Dockerfile` and the engine examples in the README build on the
81
+ `v0.13.0` engine images, the first with `pack` and `packages`, so a repository
82
+ copied from the template runs the runtime its contracts and workflow need.
83
+ - The release check no longer asks for a version bump when only a package's
84
+ `tests/` folder changed, because the wheel does not ship it.
85
+ - `hash` only hashes: the lint of a node's import closure and the refusal of a
86
+ `sitecustomize.py` or `usercustomize.py` at the repository root run in
87
+ `pack`, and the lint also runs in `lint`.
88
+ - Two contract files whose tables differ only in the case of their names are
89
+ refused as one table.
90
+
8
91
  ## [0.12.0] - 2026-11-11
9
92
 
10
93
  **TL;DR**
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: continuo-python-runtime
3
- Version: 0.12.0
3
+ Version: 0.13.0
4
4
  Summary: Runtime harness, contract tooling, and CI lint for Continuo python nodes.
5
5
  Author: Simone Carolini
6
6
  Maintainer: Simone Carolini
@@ -12,7 +12,7 @@ Classifier: Intended Audience :: Developers
12
12
  Classifier: Programming Language :: Python :: 3.14
13
13
  Requires-Python: >=3.14
14
14
  Requires-Dist: boto3==1.43.114
15
- Requires-Dist: continuo-contracts==0.1.0
15
+ Requires-Dist: continuo-contracts==0.2.0
16
16
  Requires-Dist: continuo-engine-contract==0.10.0
17
17
  Requires-Dist: pyarrow==26.0.0
18
18
  Requires-Dist: pyyaml==6.0.3
@@ -27,18 +27,19 @@ Description-Content-Type: text/markdown
27
27
 
28
28
  Runtime harness, contract tooling, and CI lint for Continuo python nodes.
29
29
  This repo is what domain data teams (marketing, finance, …) template from to
30
- ship a python node into Continuo: write a contract + a `run(ctx)` script,
31
- push to `main`, and CI does the rest — lint, validate, merge, build, publish,
32
- and register the release with Continuo.
30
+ ship a python node into Continuo: write an ODCS contract and a `run(ctx)`
31
+ script, push to `main`, and CI does the rest — lint, validate, build and push
32
+ the image, pack the contracts, upload the bundle and register the release with
33
+ Continuo.
33
34
 
34
35
  ## What this repo is
35
36
 
36
37
  Five artifacts come out of this repository:
37
38
 
38
39
  - **The `continuo-python-runtime` PyPI package** — the `continuo-runtime` CLI
39
- (`validate` / `merge` / `hash` / `lint` / `run` / `validation-op`) and the
40
- harness library (`conform()`, `RunContext`, the error taxonomy) that domain
41
- repos install.
40
+ (`validate` / `pack` / `hash` / `packages` / `lint` / `run` /
41
+ `validation-op`) and the harness library (`conform()`, `RunContext`, the
42
+ error taxonomy) that domain repos install.
42
43
  - **The `continuo-engine-contract` PyPI package** — the `WarehouseAdapter`
43
44
  port, the contract schema, the shared SQL/type/config guards, and the
44
45
  sentinel result-block format. Adapter authors outside this repo pin it.
@@ -70,9 +71,8 @@ amd64 + arm64 digests one multi-arch tag. See `CONTRIBUTING.md` (Releasing).
70
71
  ### What this repo owns
71
72
 
72
73
  This repository owns the entire python-node surface: the engine contract, the three
73
- engine adapters, the validation runner, and the node harness. The former
74
- `continuo-validation` repository was merged in — there is no longer a separate
75
- validation-side port, adapter class, entry-point group, or image. One
74
+ engine adapters, the validation runner, and the node harness. There is no
75
+ separate validation-side port, adapter class, entry-point group or image: one
76
76
  `WarehouseAdapter` per engine serves both the data plane (`fetch` /
77
77
  `ensure_table` / `load`, plus the opt-in `table_columns` / `append` / `upsert`
78
78
  capabilities) and validation (`ensure_schema` / `drop_schema` /
@@ -128,7 +128,7 @@ the Go parser has not been taught is a production outage, not a refactor.
128
128
  service name (one service name per domain repo).
129
129
  3. Configure repository variables in GitHub (Settings → Secrets and
130
130
  variables → Actions): `REGISTRY` (your Docker registry), `BUCKET` (your
131
- S3 bucket for contract artifacts), `RELEASE_ENDPOINT` (the base
131
+ S3 bucket for the contract bundle), `RELEASE_ENDPOINT` (the base
132
132
  URL of your continuo install, `scheme://host[:port]` with no path, the origin of continuo's
133
133
  `auth.publicUrl`). The
134
134
  workflow calls `<RELEASE_ENDPOINT>/api/v1/releases` with its GitHub Actions
@@ -141,128 +141,199 @@ the Go parser has not been taught is a production outage, not a refactor.
141
141
  `packages: write`) — no registry secret is needed for that. If you point
142
142
  `REGISTRY` at a different or private registry, add your own `docker
143
143
  login` step to `release.yml`.
144
- 5. Write a contract file under `contracts/` (see
145
- `template/contracts/example.yml`) and a script under `scripts/` that
146
- implements `run(ctx)` (see `template/scripts/example.py`). A node that
147
- only needs to land a csv file needs no script at all — see
148
- `template/contracts/example_csv.yml` and "Node kinds" below.
144
+ 5. Write one ODCS contract per node under `contracts/`, named
145
+ `<table>.odcs.yaml` (see `template/contracts/example.odcs.yaml` and
146
+ "Contract files" below), and a script under `scripts/` that implements
147
+ `run(ctx)` (see `template/scripts/example.py`). A node that only needs to
148
+ land a csv file needs no script at all — see
149
+ `template/contracts/example_csv.odcs.yaml` and "Node kinds" below.
149
150
  6. Push to `main`. The `release.yml` workflow lints the scripts, validates
150
- and merges the contracts, builds and pushes the image, uploads the merged
151
- contract to S3, and POSTs the release.
152
-
153
- ### Upgrading an existing domain repo
154
-
155
- `validate` / `merge` / `hash` now hand every declared read to a real SQL
156
- parser (sqlglot, via `continuo_engine_contract.sql.ensure_single_read`)
157
- instead of scanning it for a leading `SELECT`/`WITH`. Two things follow for a
158
- repo written before this, on its next release: SQL a driver would accept but
159
- a parser will not — most commonly a driver-specific bind placeholder like
160
- psycopg2's `%(name)s`, which `ctx.read(name)` could never have used anyway —
161
- now fails validation, and engine-specific syntax (postgres `~`, `@>`, …)
162
- needs `--dialect <engine>`, which a repo should be passing regardless since
163
- Continuo bind-checks every read in the install's own warehouse dialect. Run
164
- the pre-flight check once before your next release; it reports every affected
165
- read at once:
151
+ the contracts, builds and pushes the image, packs the contracts into
152
+ `odcs-bundle.json`, uploads it to S3, and POSTs the release with
153
+ `"kind": "python-odcs"`.
154
+
155
+ ## Contract files
156
+
157
+ Each node has one contract: an ODCS v3.2.0 data contract in `contracts/`,
158
+ named after its table, `<table>.odcs.yaml`, or `<schema>.<table>.odcs.yaml`
159
+ when two nodes of one service share a table name. The `continuo-contracts`
160
+ library reads each file strictly (YAML 1.2 core, with no aliases, no duplicate
161
+ keys and one document per file) and checks it. `validate`, `pack`, `hash` and
162
+ the harness load the folder the same way; the harness skips the read-query
163
+ checks.
164
+
165
+ ```yaml
166
+ apiVersion: v3.2.0
167
+ kind: DataContract
168
+ id: analytics.example # <schema>.<table>, in lower case
169
+ name: example # the table
170
+ version: "0" # continuo numbers published versions itself; this value is ignored
171
+ description:
172
+ purpose: Replace with your node
173
+ team:
174
+ name: your-team # the team that owns the node
175
+ customProperties:
176
+ - {vendor: continuo, property: schedule, value: daily}
177
+ - {vendor: continuo, property: criticality, value: SECONDARY}
178
+ - {vendor: continuo, property: script, value: scripts/example.py}
179
+ - vendor: continuo
180
+ property: readQueries
181
+ value:
182
+ orders: select order_id, customer_id, amount from analytics.upstream_orders
183
+ customers: select customer_id, name from analytics.upstream_customers
184
+ schema:
185
+ - name: example
186
+ physicalType: table
187
+ properties:
188
+ - {name: order_id, physicalType: INTEGER, required: true}
189
+ - {name: customer_name, physicalType: "VARCHAR(64)"}
190
+ - {name: amount, physicalType: "NUMERIC(10,2)", required: true}
191
+ ```
192
+
193
+ - `id` is `<schema>.<table>` in lower case; `name` and the schema object's
194
+ `name` are the table.
195
+ - `team.name` is the node's owner and `description.purpose` its description.
196
+ - continuo's own settings are `customProperties` items with
197
+ `vendor: continuo`. Every node sets `schedule` and `criticality`
198
+ (`REGULATORY`, `CORE` or `SECONDARY`); the node's kind decides the rest
199
+ (see "Node kinds" below). An optional `service` names the node's service,
200
+ and `pack` refuses a contract whose `service` is not its `--service`.
201
+ - The contract has exactly one schema object, `physicalType: table`. Its
202
+ `properties` are the table's columns, in order: each has a `name`, a
203
+ `physicalType` (`BIGINT`, `INTEGER` or `INT`, `DOUBLE PRECISION`,
204
+ `NUMERIC(p,s)` or `DECIMAL(p,s)`, `VARCHAR(n)`, `CHAR(n)`, `TEXT`,
205
+ `TIMESTAMP`, `DATE` or `BOOLEAN`) and, for a column that never holds NULL,
206
+ `required: true`.
207
+
208
+ `validate` refuses any other file in `contracts/` whose name ends in `.yml` or
209
+ `.yaml`, in any case, two files that declare the same table, and a folder with
210
+ no contract. `docs/boundary-contract.md` lists every field a contract may
211
+ carry, and how a contract in another format converts to ODCS.
212
+
213
+ ### Read queries
214
+
215
+ `validate`, `pack` and `hash` hand every read query to a real SQL parser
216
+ (sqlglot, through `continuo_engine_contract.sql.ensure_single_read`). Each
217
+ query must be one `SELECT` (or `WITH`) statement, and every table it reads
218
+ must name its schema: `analytics.orders`, never `orders`. The one name that
219
+ goes without a schema is a reference to a CTE that is in scope where the name
220
+ is used, so in `WITH orders AS (SELECT * FROM orders) SELECT * FROM orders` the
221
+ `orders` inside the CTE is a table and must name its schema. continuo refuses,
222
+ when it resolves a release, a read query that names a table without its schema,
223
+ so CI refuses at least what the release refuses.
224
+
225
+ SQL a driver accepts but a parser refuses fails these checks, most often a
226
+ driver's bind placeholder such as psycopg2's `%(name)s`, which `ctx.read(name)`
227
+ could never fill. Engine-specific syntax (postgres `~`, `@>`, …) needs
228
+ `--dialect <engine>`, which a repo should pass anyway, since Continuo parses
229
+ and bind-checks every read in the install's own warehouse dialect:
166
230
 
167
231
  ```bash
168
232
  continuo-runtime validate contracts/ --dialect postgres # or trino, duckdb
169
233
  ```
170
234
 
171
- The runtime image does not re-run this gate, so a read that passes here is
172
- not re-judged under a different grammar in production. See
173
- `docs/boundary-contract.md` §13.1.
235
+ The harness does not run these read checks again when a node starts, so a
236
+ read that passes here is not judged again under a different grammar in
237
+ production. See `docs/boundary-contract.md` §13.1.
174
238
 
175
239
  ## Node kinds
176
240
 
177
- A contract node's `kind:` field selects how the node produces its rows.
178
- Every rule below (`extra_columns`, `output_columns`, "Conform rules") applies
179
- to both kinds identically — `kind` only changes how the pre-conform table is
241
+ The `kind` property (a `customProperties` item, not the contract's root
242
+ `kind: DataContract`) selects how the node produces its rows.
243
+ Every rule below (`extraColumns`, the columns, "Conform rules") applies to
244
+ every kind identically — `kind` only changes how the pre-conform table is
180
245
  produced, never how it is checked or written.
181
246
 
182
- - **`python-node`** (the default; the field may be omitted) — a script node.
183
- It requires `script:` and a `reads:` map of one or more named SQL queries,
184
- as described in "The script API" below.
185
- - **`python-csv`** — a contract-only node: it has no script and its `reads:`
186
- map must be exactly `{csv: <uri>}`, where the uri is `s3://bucket/key` or
187
- an `https://` url (`http://` is rejected at validate time, not run time).
247
+ - **`python-node`** (the default; the property may be left out) — a script
248
+ node. It needs `script` and `readQueries`, a mapping of one or more named
249
+ SQL queries, as described in "The script API" below.
250
+ - **`python-csv`** — a contract-only node: it has no script and reads no
251
+ table. Its `csvSource` is the file's address, `s3://bucket/key` or an
252
+ `https://` url (`http://` is refused by `validate`, not at run time).
188
253
  The harness fetches the file, parses it with RFC 4180 defaults, and feeds
189
- the result straight into `conform()` — declared `output_columns` types
190
- decide the warehouse schema, not whatever pyarrow infers from the csv.
191
- Because there is no script, `script:` is a forbidden key for this kind;
192
- `continuo-runtime validate`/`merge`/`lint` reject one that sets it. The
193
- csv's header row must contain every declared output column (checked again,
194
- independently, at release time before promotion); columns present in the
195
- header but not declared are governed by the same `extra_columns` policy as
196
- a script node's output — `raise` (default) fails the run, `warn` drops
197
- them and logs a warning. See `template/contracts/example_csv.yml`.
254
+ the result straight into `conform()` — the declared column types decide
255
+ the warehouse schema, not whatever pyarrow infers from the csv. Because
256
+ there is no script, `script`, `readQueries`, `secretRef` and `assets` are
257
+ refused on this kind. The csv's header row must contain every declared
258
+ column (checked again, independently, at release time before promotion);
259
+ columns present in the header but not declared are governed by the same
260
+ `extraColumns` policy as a script node's output — `raise` (default) fails
261
+ the run, `warn` drops them and logs a warning. See
262
+ `template/contracts/example_csv.odcs.yaml`.
198
263
  - **`python-api`** — a script node that fetches its own data (typically over
199
- HTTP) and declares no `reads:`. `ctx.read` has nothing to return. It may name
200
- one Kubernetes Secret with `secret_ref: continuo-api-<name>`; continuo
201
- attaches that Secret to the node's pod, so each of its keys is an env var the
202
- script reads with `os.environ[...]`. The contract never holds a secret value
203
- or env var name; the Secret itself is created in the cluster by the operator.
264
+ HTTP) and declares no `readQueries`. `ctx.read` has nothing to return. It
265
+ may name one Kubernetes Secret with `secretRef: continuo-api-<name>`;
266
+ continuo attaches that Secret to the node's pod, so each of its keys is an
267
+ env var the script reads with `os.environ[...]`. The contract never holds a
268
+ secret value or env var name; the Secret itself is created in the cluster
269
+ by the operator.
204
270
 
205
271
  ### Files a script reads (`assets`)
206
272
 
207
273
  A `python-node` or `python-api` script that reads a file from the repository
208
- (a model, a lookup table, a JSON config) lists it under `assets:`, one path
209
- relative to the repository root per entry, written with forward slashes and
210
- without a `..` segment:
274
+ (a model, a lookup table, a JSON config) lists it in the `assets` property,
275
+ one path relative to the repository root per entry, written with forward
276
+ slashes and with no empty, `.` or `..` part:
211
277
 
212
278
  ```yaml
213
- - schema: analytics
214
- table: scored_orders
215
- kind: python-node
216
- script: scripts/scored_orders.py
217
- assets: [data/rates.json, models/scorer.bin]
279
+ customProperties:
280
+ - {vendor: continuo, property: script, value: scripts/scored_orders.py}
281
+ - vendor: continuo
282
+ property: assets
283
+ value: [data/rates.json, models/scorer.bin]
218
284
  ```
219
285
 
220
- `merge` reads each listed file and folds its bytes into `shared_code_hash`
286
+ `pack` reads each listed file and folds its bytes into `shared_code_hash`
221
287
  under its path, so editing one changes the node's `content_hash` and starts a
222
- validation. A path that is also an import of the script is one unit. `merge`
223
- fails with a `ContractError` for a path that is missing, is not a file or
224
- resolves outside the repository, and a path listed twice is refused. The image
225
- must `COPY` the files, because `assets` only tells the hash about them. A
226
- `python-csv` node has no script, so `assets` is refused on it.
288
+ validation. A path that is also an import of the script is one unit. `pack`
289
+ and `hash` fail with a `ContractError` for a path that is missing, is not a
290
+ file or resolves outside the repository, and `validate` refuses a path listed
291
+ twice. The image must `COPY` the files, because `assets` only tells the hash
292
+ about them. A `python-csv` node has no script, so `assets` is refused on it.
227
293
 
228
294
  ### Task timeout
229
295
 
230
- Any node may set `timeout_minutes:` — an integer from 1 to 10,080 (one week) —
296
+ Any node may set `timeoutMinutes` — an integer from 1 to 10,080 (one week) —
231
297
  to declare how long its task may run before continuo gives up on it. A value
232
- outside that range, or one that is not an integer, fails
233
- `continuo-runtime validate`/`merge`/`lint`. Like `owner`, `schedule`,
234
- `criticality` and `description`, it is outside the code projection that
235
- `config_hash` hashes, so changing it never changes the node's `content_hash`.
298
+ outside that range, or one that is not an integer, fails `validate`, `pack`
299
+ and `hash`. Like the owner (`team.name`), `schedule`, `criticality` and the
300
+ description, it is outside the code projection that `config_hash` hashes, so
301
+ changing it never changes the node's `content_hash`.
236
302
 
237
303
  ## Write modes
238
304
 
239
- `mode_type:` chooses how the harness writes a node's table on each run:
305
+ The `modeType` property chooses how the harness writes a node's table on each
306
+ run:
240
307
 
241
- | `mode_type` | Each run | Rows from earlier runs |
308
+ | `modeType` | Each run | Rows from earlier runs |
242
309
  | --- | --- | --- |
243
310
  | `replace` (default) | empties the table, inserts this run's rows | gone |
244
311
  | `append` | inserts this run's rows | kept |
245
312
  | `upsert` | inserts rows with a new key, overwrites rows whose key exists | kept unless overwritten; never deleted |
246
313
 
247
314
  ```yaml
248
- - schema: fx
249
- table: fx_rates
250
- kind: python-api
251
- mode_type: upsert
252
- primary_key: [rate_date, base, quote]
253
- output_columns:
254
- - {name: rate_date, type: DATE, nullable: false}
255
- - {name: base, type: VARCHAR(3), nullable: false}
256
- - {name: quote, type: VARCHAR(3), nullable: false}
257
- - {name: rate, type: DECIMAL(12,6)}
315
+ customProperties:
316
+ - {vendor: continuo, property: kind, value: python-api}
317
+ - {vendor: continuo, property: modeType, value: upsert}
318
+ schema:
319
+ - name: fx_rates
320
+ physicalType: table
321
+ properties:
322
+ - {name: rate_date, physicalType: DATE, required: true, primaryKey: true, primaryKeyPosition: 1}
323
+ - {name: base, physicalType: "VARCHAR(3)", required: true, primaryKey: true, primaryKeyPosition: 2}
324
+ - {name: quote, physicalType: "VARCHAR(3)", required: true, primaryKey: true, primaryKeyPosition: 3}
325
+ - {name: rate, physicalType: "DECIMAL(12,6)"}
258
326
  ```
259
327
 
260
328
  - `python-csv` nodes only `replace`.
261
- - `primary_key` is required for `upsert` and rejected otherwise: a non-empty
262
- list of output columns declared `nullable: false` (a NULL key never
263
- matches), each spelled exactly as in `output_columns`, names unique
264
- case-insensitively. A Postgres `replace` table that
265
- wants uniqueness uses `config.indexes` with `unique: true`.
329
+ - An `upsert` node needs a key: `primaryKey: true` on each key column. Each
330
+ key column is `required: true` (a NULL key never matches) and is not
331
+ `DOUBLE PRECISION`; a key of several columns numbers its columns with
332
+ `primaryKeyPosition`, from 1. The key's names are unique
333
+ case-insensitively. On a `replace` or `append` node a key only describes
334
+ the table: the harness writes no key and the hash leaves it out. A
335
+ Postgres `replace` table that wants uniqueness uses `indexes` with
336
+ `unique: true` in its `config` property.
266
337
  - Every write is atomic: all of the run's rows or none. An `append` or
267
338
  `upsert` run with zero rows writes nothing (a `replace` run with zero rows
268
339
  still empties the table).
@@ -271,7 +342,7 @@ outside that range, or one that is not an integer, fails
271
342
  - An `upsert` run whose own rows repeat a key fails with `ConformError` and
272
343
  writes nothing.
273
344
  - Before an `append` or `upsert` the harness compares the live table with
274
- `output_columns` — names case-insensitively, nullability exactly; order and
345
+ the contract's columns — names case-insensitively, nullability exactly; order and
275
346
  types are not compared — and fails with `LoadError` naming every missing
276
347
  column, unexpected column and nullability mismatch. Changing an `append` or
277
348
  `upsert` table (columns, types, nullability, key or mode) needs a new table
@@ -300,9 +371,9 @@ def run(ctx):
300
371
  ```
301
372
 
302
373
  - `ctx` is a `RunContext` (`continuo_python_runtime.context.RunContext`).
303
- Its only method is `ctx.read(name)`, where `name` is one of the read
304
- names declared under the node's `reads:` map in the contract — reading
305
- anything else raises `ReadError`. Each declared read is fetched once and
374
+ Its only method is `ctx.read(name)`, where `name` is one of the query
375
+ names of the contract's `readQueries` — reading anything else raises
376
+ `ReadError`. Each declared read is fetched once and
306
377
  memoized; `ctx.read(name)` returns a `pyarrow.Table`.
307
378
  - `run(ctx)` can return anything Arrow-convertible: a `pyarrow.Table`
308
379
  as-is, a pandas `DataFrame` (converted via
@@ -334,7 +405,7 @@ def run(ctx):
334
405
  change to `sys.path` (`append`, `insert`, assignment, `del`, and
335
406
  `site.addsitedir`), a `sitecustomize` or `usercustomize` module (and a file
336
407
  of that name), `compile()` and `types.FunctionType`, and `pickle.load`,
337
- `pickle.loads` and `pickle.Unpickler`. `merge` applies the same rules to
408
+ `pickle.loads` and `pickle.Unpickler`. `pack` applies the same rules to
338
409
  every file in a node's import closure, and refuses a `sitecustomize.py` or
339
410
  `usercustomize.py` at the repository root, which Python imports before the
340
411
  harness starts. A file a script reads, such as a model or a lookup table,
@@ -362,17 +433,17 @@ def run(ctx):
362
433
 
363
434
  ## Conform rules
364
435
 
365
- `conform()` (`continuo_python_runtime/conform.py`) enforces the node's
366
- declared `output_columns` on the table `run()` returned, in this order:
436
+ `conform()` (`continuo_python_runtime/conform.py`) enforces the columns the
437
+ node's contract declares on the table `run()` returned, in this order:
367
438
 
368
439
  | Check | Behavior |
369
440
  | --- | --- |
370
441
  | Duplicate columns | Any duplicate column name in the returned table always raises `ConformError`. |
371
- | Extra columns | Governed by the node's `extra_columns` policy: `raise` (default) fails the run; `warn` drops the undeclared column(s) and logs a warning. |
442
+ | Extra columns | Governed by the contract's `extraColumns` policy: `raise` (default) fails the run; `warn` drops the undeclared column(s) and logs a warning. |
372
443
  | Missing columns | Any declared column absent from the returned table always raises `ConformError`. |
373
444
  | Column order | The table is reselected into the declared column order. |
374
445
  | Strict cast | Each column is cast to its declared Arrow type with `safe=True`. Casts pyarrow's `safe=True` would silently accept but that are not value-lossless are rejected before the cast even runs: floating → decimal (rounds to scale), non-boolean → boolean (coerces truthiness), timestamp → date (drops time-of-day). Any other cast failure also raises `ConformError`. |
375
- | Not-null | A column declared `nullable: false` that contains any null raises `ConformError`. |
446
+ | Not-null | A column declared `required: true` that contains any null raises `ConformError`. |
376
447
  | VARCHAR/CHAR length | A column declared `VARCHAR(n)`/`CHAR(n)` whose longest value exceeds `n` raises `ConformError`. |
377
448
 
378
449
  ## Error taxonomy
@@ -387,12 +458,12 @@ the result block out of the log before storing it.
387
458
 
388
459
  | Class | Meaning | Typical fix target |
389
460
  | --- | --- | --- |
390
- | `ContractError` | Contract missing or invalid, node not found for `NODE_ID`, or the declared script is missing/unreachable. | The contract yaml or the `script:` path. |
461
+ | `ContractError` | Contract missing or invalid, node not found for `NODE_ID`, or the declared script is missing/unreachable. | The contract file or its `script` path. |
391
462
  | `ImageContractMismatch` (a `ContractError`) | The image does not hold the contract, script, imports or assets the release hashed: the `content_hash` in `CONTENT_HASH` differs from the one the image's files give, or a file the release hashed is missing from the image. The block also carries `"reason":"image_contract_mismatch"`. | Rebuild the image from the released commit, with CI and the image on the same runtime. |
392
- | `ReadError` | `ctx.read()` was called with an undeclared name, or a declared read failed at the warehouse. | The `reads:` map, or the upstream query/warehouse access. |
463
+ | `ReadError` | `ctx.read()` was called with an undeclared name, or a declared read failed at the warehouse. | The contract's `readQueries`, or the upstream query/warehouse access. |
393
464
  | `ScriptError` | `run()` raised, has no callable `run`, or returned a value that isn't Arrow-convertible. | The node script. |
394
- | `ConformError` | Structural mismatch (extra/missing/duplicate columns), a strict-cast failure, a not-null violation, a VARCHAR/CHAR overflow, or an `upsert` run whose rows repeat a primary key. | The script's output shape, or the `output_columns` declaration. |
395
- | `LoadError` | Adapter construction failed, the installed engine does not support the node's `mode_type`, the live table's shape differs from `output_columns` (append/upsert), or the DDL/INSERT failed at the warehouse during the write. | Warehouse connectivity/permissions, the engine image, or the target table. |
465
+ | `ConformError` | Structural mismatch (extra/missing/duplicate columns), a strict-cast failure, a not-null violation, a VARCHAR/CHAR overflow, or an `upsert` run whose rows repeat a primary key. | The script's output shape, or the contract's columns. |
466
+ | `LoadError` | Adapter construction failed, the installed engine does not support the node's `modeType`, the live table's shape differs from the contract's columns (append/upsert), or the DDL/INSERT failed at the warehouse during the write. | Warehouse connectivity/permissions, the engine image, or the target table. |
396
467
 
397
468
  ## Engine selection
398
469
 
@@ -400,11 +471,11 @@ A domain repo picks its warehouse engine by which base image it builds
400
471
  `FROM`:
401
472
 
402
473
  ```dockerfile
403
- FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.12.0
474
+ FROM ghcr.io/carolsimone/continuo-python-runtime-postgres:v0.13.0
404
475
  # or
405
- FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.12.0
476
+ FROM ghcr.io/carolsimone/continuo-python-runtime-trino:v0.13.0
406
477
  # or
407
- FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.12.0
478
+ FROM ghcr.io/carolsimone/continuo-python-runtime-duckdb:v0.13.0
408
479
  ```
409
480
 
410
481
  The engine is part of the image **name**; the tag is the bare version, so
@@ -421,9 +492,11 @@ single image serves every node in the service and the release-time
421
492
  validation Job for it. The executor injects the warehouse connection as
422
493
  environment variables (engine-native, e.g.
423
494
  `POSTGRES_HOST`/`POSTGRES_DB`/`POSTGRES_USER`) plus the node-selection
424
- environment (`NODE_ID`, `TABLE_NAME`, `TARGET_SCHEMA`, and optionally
425
- `CONTRACT_DIR`/`APP_ROOT`) that `continuo-runtime run` reads to dispatch the
426
- right node's script.
495
+ environment (`NODE_ID`, `TABLE_NAME`, `TARGET_SCHEMA`) that
496
+ `continuo-runtime run` reads to pick the node. `CONTRACT_DIR`, the folder of
497
+ the image's `*.odcs.yaml` contracts (`/app/contracts` by default), and
498
+ `APP_ROOT`, the repository root a node's `script` path is resolved against,
499
+ are optional.
427
500
 
428
501
  ### Build your own container
429
502
 
@@ -521,8 +594,7 @@ unexpected error is exit 2.
521
594
 
522
595
  ## Further reading
523
596
 
524
- - `docs/superpowers/specs/2026-07-31-python-runtime-design.md` — this
525
- repo's design.
526
- - `docs/boundary-contract.md` — the parent design's boundary contract (§13):
527
- the five surfaces (S3 artifact, `content_hash`, the release call, the
528
- runtime image, and the domain repo's CI/CD) that this repo implements.
597
+ - `docs/boundary-contract.md` — the boundary between continuo and a domain
598
+ repo (§13): the five surfaces (the contract bundle, the hashes `pack`
599
+ computes, the release call, the runtime image, and the domain repo's CI)
600
+ that this repo implements, and every field a contract may carry.