ferro-orm 0.26.0__tar.gz → 0.27.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 (715) hide show
  1. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/workflows/ci.yml +55 -14
  2. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/workflows/release.yml +1 -0
  3. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/AGENTS.md +233 -30
  4. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/CHANGELOG.md +54 -0
  5. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/CONTRIBUTING.md +1 -1
  6. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/Cargo.lock +53 -45
  7. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/Cargo.toml +9 -1
  8. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/GLOSSARY.md +23 -3
  9. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/PKG-INFO +1 -1
  10. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-ddl-lowering/src/lib.rs +587 -61
  11. ferro_orm-0.27.0/crates/ferro-ddl-lowering/src/value_expr.rs +1811 -0
  12. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/emit.rs +177 -52
  13. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/columns.rs +1 -1
  14. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/downs.rs +1 -1
  15. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/mod.rs +12 -3
  16. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/rebuild.rs +17 -2
  17. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/stages.rs +16 -3
  18. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/staging.rs +1 -0
  19. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/lib.rs +57 -10
  20. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/plan.rs +1771 -137
  21. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/render.rs +155 -15
  22. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/revision.rs +40 -9
  23. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/revision_tests.rs +3 -0
  24. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/run_plan/step_class.rs +6 -0
  25. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/run_plan.rs +12 -12
  26. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/snapshot.rs +76 -7
  27. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/tests.rs +2483 -29
  28. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-schema-ir/src/lib.rs +152 -1
  29. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0015-table-check-body-drift.md +2 -0
  30. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0016-check-predicates-literals-only.md +2 -0
  31. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0023-schema-snapshots-outlive-ir-versions.md +2 -0
  32. ferro_orm-0.27.0/docs/adr/0058-a-generated-columns-value-comes-only-from-the-database.md +28 -0
  33. ferro_orm-0.27.0/docs/adr/0059-value-expressions-are-lambdas-over-a-closed-function-table-under-value-parity.md +20 -0
  34. ferro_orm-0.27.0/docs/adr/0060-postgres-prints-both-sides-of-a-sql-body-ferro-compares.md +21 -0
  35. ferro_orm-0.27.0/docs/examples/generated_columns.py +144 -0
  36. ferro_orm-0.27.0/docs/examples/generated_columns_annotated.py +146 -0
  37. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/fields.md +3 -1
  38. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/concepts/architecture.md +1 -1
  39. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/concepts/row-level-security.md +1 -1
  40. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/getting-started/installation.md +1 -0
  41. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/models-and-fields.md +213 -2
  42. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/mutations.md +18 -14
  43. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/relationships.md +23 -14
  44. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/adopting-migrations.md +6 -6
  45. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/alembic.md +4 -4
  46. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/auto-migrate.md +4 -4
  47. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/migrations.md +3 -3
  48. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/overview.md +9 -9
  49. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/renames-and-retirements.md +2 -2
  50. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/testing.md +1 -1
  51. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/howto/testing.md +1 -1
  52. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/reference/migrations.md +17 -8
  53. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/upgrading.md +3 -3
  54. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/alembic-add-column-enum-type-undefined.md +1 -1
  55. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/n-ary-check-chain-reads-as-drift.md +7 -0
  56. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/cross-emitter-ddl-parity.md +6 -6
  57. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/derived-type-and-naming-decision-table.md +1 -1
  58. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/docs-page-conventions.md +6 -2
  59. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/one-planner-and-live-facts.md +1 -1
  60. ferro_orm-0.27.0/docs/solutions/patterns/printed-pairs-drift.md +96 -0
  61. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/wire-scalar-canonicalization.md +1 -1
  62. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/pyproject.toml +1 -1
  63. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/backend.rs +49 -2
  64. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/codec_plan.rs +1 -0
  65. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/connection.rs +94 -3
  66. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ddl_exec.rs +32 -27
  67. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/errors.rs +299 -1
  68. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/__init__.py +2 -0
  69. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/_bind_payload.py +50 -11
  70. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/_core.pyi +71 -8
  71. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/_sql_log.py +21 -5
  72. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/base.py +38 -2
  73. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/checks.py +193 -22
  74. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/exceptions.py +11 -2
  75. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/fields.py +26 -1
  76. ferro_orm-0.27.0/src/ferro/fn.py +188 -0
  77. ferro_orm-0.27.0/src/ferro/generated.py +364 -0
  78. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/ir/compiler.py +26 -4
  79. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/metaclass.py +114 -18
  80. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/_drift.py +100 -4
  81. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/alembic.py +117 -9
  82. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/translate.py +1 -1
  83. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/models.py +45 -6
  84. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/pass_report.py +2 -2
  85. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/query/nodes.py +146 -18
  86. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/query/rendered.py +2 -5
  87. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/query/wire.py +28 -2
  88. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/introspect.rs +307 -12
  89. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/lib.rs +12 -0
  90. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/live_ir.rs +260 -51
  91. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/migrate.rs +81 -39
  92. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/migrations_ffi.rs +67 -1
  93. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/naming_ffi.rs +152 -4
  94. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/operations.rs +251 -60
  95. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/run.rs +5 -5
  96. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/schema.rs +10 -6
  97. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/state.rs +47 -4
  98. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_casebook.py +43 -2
  99. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_pass_harness.py +2 -2
  100. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_pg_sequence.py +1 -1
  101. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/conftest.py +23 -0
  102. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/README.md +17 -5
  103. ferro_orm-0.27.0/tests/fixtures/ir_vectors/schema_check_fn_v4.json +70 -0
  104. ferro_orm-0.27.0/tests/fixtures/ir_vectors/schema_generated_column_v4.json +76 -0
  105. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_bridge.py +142 -0
  106. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_enum_type_drop.py +1 -1
  107. ferro_orm-0.27.0/tests/test_alembic_generated_columns.py +218 -0
  108. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_render_execute.py +1 -1
  109. ferro_orm-0.27.0/tests/test_auto_migrate_generated_columns.py +787 -0
  110. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_bulk_update.py +2 -2
  111. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_check_predicate_dialect.py +18 -1
  112. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_column_specs.py +0 -12
  113. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_connect_guard.py +39 -10
  114. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_connection.py +12 -10
  115. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_cross_emitter_parity.py +245 -110
  116. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_db_type_cross_emitter_parity.py +1 -1
  117. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_db_type_validation.py +0 -8
  118. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_migrations.py +5 -5
  119. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_site.py +3 -17
  120. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_sql.py +17 -2
  121. ferro_orm-0.27.0/tests/test_generate_check_functions.py +723 -0
  122. ferro_orm-0.27.0/tests/test_generate_generated_columns.py +666 -0
  123. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_indexes.py +1 -1
  124. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_primary_key_refusal.py +1 -1
  125. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_renames.py +1 -1
  126. ferro_orm-0.27.0/tests/test_generated_column_drift.py +577 -0
  127. ferro_orm-0.27.0/tests/test_generated_columns.py +508 -0
  128. ferro_orm-0.27.0/tests/test_generated_refusals.py +494 -0
  129. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_ir_vectors_contract.py +60 -8
  130. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_label_addition.py +1 -1
  131. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_live_read.py +54 -1
  132. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_metaclass_internals.py +0 -5
  133. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_defaults.py +3 -3
  134. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_drift.py +42 -1
  135. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_plan.py +16 -2
  136. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_rerecord.py +4 -4
  137. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_squash.py +1 -1
  138. ferro_orm-0.27.0/tests/test_postgres_floor.py +122 -0
  139. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_query_exists.py +0 -19
  140. ferro_orm-0.27.0/tests/test_refused_model_leaves_nothing.py +140 -0
  141. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_retired_labels.py +0 -20
  142. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_row_security_alembic.py +2 -2
  143. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_row_security_create_pass.py +3 -3
  144. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_row_security_reconcile.py +2 -2
  145. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_save_column_order.py +4 -4
  146. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_secret_fields.py +3 -3
  147. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_session_settings_connection_delivery.py +1 -1
  148. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_snapshot_witness.py +2 -2
  149. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_statement_log.py +23 -0
  150. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_table_check_orphans.py +20 -3
  151. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_table_check_rebuild.py +60 -11
  152. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_table_check_reconcile.py +25 -8
  153. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_table_checks.py +3 -1
  154. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_update_recipe.py +1 -1
  155. ferro_orm-0.27.0/tests/test_value_parity.py +876 -0
  156. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/uv.lock +1 -2
  157. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/ISSUE_TEMPLATE/bug_report.md +0 -0
  158. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/ISSUE_TEMPLATE/feature_request.md +0 -0
  159. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/PERMISSIONS.md +0 -0
  160. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/PYPI_CHECKLIST.md +0 -0
  161. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/PYPI_SETUP.md +0 -0
  162. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/generated/wheels.generated.yml +0 -0
  163. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/pull_request_template.md +0 -0
  164. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/workflows/packaging-smoke.yml +0 -0
  165. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/workflows/publish-docs.yml +0 -0
  166. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.github/workflows/publish.yml +0 -0
  167. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.gitignore +0 -0
  168. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.pre-commit-config.yaml +0 -0
  169. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/.python-version +0 -0
  170. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/LICENSE +0 -0
  171. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/README.md +0 -0
  172. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/README.md +0 -0
  173. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/__init__.py +0 -0
  174. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/__main__.py +0 -0
  175. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/backends.py +0 -0
  176. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/baselines/postgres.json +0 -0
  177. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/baselines/sqlite.json +0 -0
  178. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/compare.py +0 -0
  179. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/harness.py +0 -0
  180. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/model.py +0 -0
  181. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/benchmarks/run.py +0 -0
  182. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/context7.json +0 -0
  183. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-ddl-lowering/Cargo.toml +0 -0
  184. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-ddl-lowering/src/policy_expr.rs +0 -0
  185. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/Cargo.toml +0 -0
  186. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/directory.rs +0 -0
  187. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/backfill.rs +0 -0
  188. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/compose.rs +0 -0
  189. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/enums.rs +0 -0
  190. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/generate/renames.rs +0 -0
  191. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-migrate/src/order.rs +0 -0
  192. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/crates/ferro-schema-ir/Cargo.toml +0 -0
  193. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0001-resolved-epoch-registration.md +0 -0
  194. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0002-unified-column-fact-derivation.md +0 -0
  195. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0003-path-blind-db-type-validation.md +0 -0
  196. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0004-jsonb-postgres-only-canonical.md +0 -0
  197. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0005-jsonb-default-on-postgres.md +0 -0
  198. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0006-relation-traversal-inner-joins.md +0 -0
  199. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0007-materialization-plan-complete-instances.md +0 -0
  200. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0007-reverse-relations-tested-not-traversed.md +0 -0
  201. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0008-populated-relations-include.md +0 -0
  202. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0008-predicate-negation-uniform-not.md +0 -0
  203. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0009-aggregate-projections-derived-grouping.md +0 -0
  204. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0010-create-pass-owns-only-missing-tables.md +0 -0
  205. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0011-label-addition-update-gated-append-only.md +0 -0
  206. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0012-table-checks-are-lambdas.md +0 -0
  207. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0013-table-check-reconciliation.md +0 -0
  208. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0014-table-checks-sqlite-create-only.md +0 -0
  209. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0017-omitted-nulls-means-last.md +0 -0
  210. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0018-position-paging.md +0 -0
  211. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0019-row-policy-drift-and-the-one-way-flags.md +0 -0
  212. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0020-enum-type-drop-on-downgrade.md +0 -0
  213. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0021-enum-type-reuse-on-upgrade.md +0 -0
  214. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0022-enum-type-creation-for-add-column.md +0 -0
  215. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0024-data-steps-are-atomic-or-chunked.md +0 -0
  216. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0025-historical-models-see-the-union-of-adjacent-snapshots.md +0 -0
  217. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0026-one-migration-renders-ddl-per-target-dialect.md +0 -0
  218. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0027-the-generator-diffs-the-ddl-bearing-projection-of-the-ir.md +0 -0
  219. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0028-python-sequences-a-run-rust-decides-and-executes.md +0 -0
  220. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0029-the-run-lock-dies-with-the-process.md +0 -0
  221. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0030-a-finished-step-is-re-recorded-an-unfinished-one-may-be-edited.md +0 -0
  222. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0031-a-baseline-is-verified-and-has-no-override.md +0 -0
  223. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0032-renames-are-declared-on-the-model-and-recorded-in-the-snapshot.md +0 -0
  224. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0033-irreversibility-is-declared-and-a-down-reaches-the-parent-snapshot.md +0 -0
  225. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0034-sqlite-changes-alter-cannot-express-are-table-rebuilds.md +0 -0
  226. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0035-a-data-step-declares-its-shape-and-an-unwritten-one-is-a-todo.md +0 -0
  227. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0036-config-names-databases-not-connections.md +0 -0
  228. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0037-step-numbers-are-shared-across-dialects-and-a-skipped-backfill-is-a-guard.md +0 -0
  229. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0038-connect-never-runs-migration-files-and-a-tracked-database-refuses-auto-migrate.md +0 -0
  230. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0039-config-is-ferro-toml-or-pyproject-and-is-read-through-ferrosettings.md +0 -0
  231. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0040-a-migration-is-applied-whole-and-staging-is-the-editing-cadence.md +0 -0
  232. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0041-the-alembic-bridge-translates-the-one-planner.md +0 -0
  233. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0042-not-null-on-postgres-is-staged-after-the-backfill.md +0 -0
  234. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0043-foreign-keys-and-checks-on-an-existing-postgres-table-are-staged.md +0 -0
  235. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0044-indexes-on-an-existing-postgres-table-are-built-concurrently-and-ddl-waits-for-locks-under-a-timeout.md +0 -0
  236. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0045-the-test-harness-carries-the-targets-the-application-api-refuses.md +0 -0
  237. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0046-a-sqlite-table-rebuild-sits-in-its-phase-step-and-a-table-is-copied-once-per-phase.md +0 -0
  238. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0047-the-reconciliation-pass-honours-rename-hints.md +0 -0
  239. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0048-a-run-is-a-rust-object-holding-the-lock-the-directory-and-the-plan.md +0 -0
  240. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0049-the-auto-migrate-pass-reports-what-it-executed.md +0 -0
  241. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0050-a-plans-two-sides-are-adapters-and-a-down-is-the-ups-artifacts-planned-back.md +0 -0
  242. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0051-every-door-plans-a-redefined-index-and-a-removed-foreign-key.md +0 -0
  243. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0052-plan-reports-are-typed-and-the-generator-refuses-what-no-op-answers.md +0 -0
  244. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0053-a-column-is-retired-one-release-before-it-is-dropped.md +0 -0
  245. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0054-a-steps-class-is-recorded-when-it-is-applied.md +0 -0
  246. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0055-the-change-summary-crosses-ffi-as-data.md +0 -0
  247. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0056-a-squash-is-planned-across-snapshots-and-a-database-that-ran-the-originals-adopts-it.md +0 -0
  248. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/adr/0057-sql-is-seen-through-the-statement-log-and-a-terminals-sql.md +0 -0
  249. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/agents/domain.md +0 -0
  250. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/agents/issue-tracker.md +0 -0
  251. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/agents/triage-labels.md +0 -0
  252. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/architecture-review-2026-07-08.html +0 -0
  253. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-04-29-named-connections-role-routing-requirements.md +0 -0
  254. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-05-08-typed-query-predicates-requirements.md +0 -0
  255. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-05-13-configurable-column-storage-types-requirements.md +0 -0
  256. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-05-14-autogenerate-support-for-db-type-requirements.md +0 -0
  257. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-05-25-annotated-strenum-cold-hydration-requirements.md +0 -0
  258. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-24-ir-p8-119-wire-automigrate-requirements.md +0 -0
  259. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-25-ir-p8-120-parity-gate-requirements.md +0 -0
  260. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-26-ir-p8.5-140-shared-lowering-requirements.md +0 -0
  261. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-26-ir-p8.5-143-db-type-drop-requirements.md +0 -0
  262. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-26-ir-p8.5-144-reconcile-indexes-requirements.md +0 -0
  263. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-28-ir-p8.5-141-single-schema-ir-producer-requirements.md +0 -0
  264. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-29-ir-p8.6-146-dialect-enum-unification-requirements.md +0 -0
  265. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-29-ir-p8.6-153-create-path-ir-requirements.md +0 -0
  266. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-30-ir-p8.6-155-deferred-annotations-requirements.md +0 -0
  267. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-06-30-ir-p8.6-158-check-renderer-requirements.md +0 -0
  268. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-07-01-ir-p8.6-154-datetime-tz-coarseness-requirements.md +0 -0
  269. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-07-01-ir-p8.6-162-typed-save-bind-requirements.md +0 -0
  270. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-07-01-ir-p8.6-165-blob-introspection-false-positive-requirements.md +0 -0
  271. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-07-02-ff-c1-codec-plan-design.md +0 -0
  272. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/brainstorms/2026-07-06-upgrade-guide-consolidation-requirements.md +0 -0
  273. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_ledger_seed.py +0 -0
  274. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_migrations_project.py +0 -0
  275. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/__init__.py +0 -0
  276. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/auto_migrate.py +0 -0
  277. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/concepts.py +0 -0
  278. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/connections.py +0 -0
  279. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/invoices.py +0 -0
  280. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/jwt_claims.py +0 -0
  281. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/label_addition.py +0 -0
  282. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/queries.py +0 -0
  283. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/raw_sql.py +0 -0
  284. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/reference.py +0 -0
  285. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/_preludes/upgrade.py +0 -0
  286. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/aggregations.py +0 -0
  287. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/aggregations_annotated.py +0 -0
  288. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/auto_migrate_errors.py +0 -0
  289. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/concepts.py +0 -0
  290. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/concepts_annotated.py +0 -0
  291. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/enum_labels.py +0 -0
  292. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/enum_labels_annotated.py +0 -0
  293. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/existence_tests.py +0 -0
  294. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/faq.py +0 -0
  295. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/faq_annotated.py +0 -0
  296. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/from_sqlalchemy.py +0 -0
  297. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/from_sqlalchemy_annotated.py +0 -0
  298. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migration_errors.py +0 -0
  299. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_adopting.py +0 -0
  300. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_backfill.py +0 -0
  301. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_backfill_annotated.py +0 -0
  302. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_quickstart.py +0 -0
  303. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_quickstart_annotated.py +0 -0
  304. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_rename.py +0 -0
  305. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_rename_annotated.py +0 -0
  306. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_retire.py +0 -0
  307. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_retire_annotated.py +0 -0
  308. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_retire_label.py +0 -0
  309. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_retire_label_annotated.py +0 -0
  310. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_squash.py +0 -0
  311. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_squash_annotated.py +0 -0
  312. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_testing.py +0 -0
  313. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/migrations_testing_annotated.py +0 -0
  314. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/models_and_fields.py +0 -0
  315. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/models_and_fields_annotated.py +0 -0
  316. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/multiple_databases.py +0 -0
  317. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/multiple_databases_annotated.py +0 -0
  318. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/mutations.py +0 -0
  319. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/mutations_annotated.py +0 -0
  320. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/pagination.py +0 -0
  321. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/pagination_annotated.py +0 -0
  322. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/partial_selects.py +0 -0
  323. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/populated_relations.py +0 -0
  324. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/predicates.py +0 -0
  325. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/predicates_annotated.py +0 -0
  326. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/quickstart.py +0 -0
  327. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/quickstart_annotated.py +0 -0
  328. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/raw_sql.py +0 -0
  329. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/raw_sql_annotated.py +0 -0
  330. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/readme_quickstart.py +0 -0
  331. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/readme_quickstart_annotated.py +0 -0
  332. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/relationships.py +0 -0
  333. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/relationships_annotated.py +0 -0
  334. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/row_level_security.py +0 -0
  335. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/row_level_security_annotated.py +0 -0
  336. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/soft_deletes.py +0 -0
  337. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/soft_deletes_annotated.py +0 -0
  338. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/table_checks.py +0 -0
  339. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/table_checks_annotated.py +0 -0
  340. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/testing_conftest.py +0 -0
  341. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/testing_conftest_postgres.py +0 -0
  342. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/testing_models.py +0 -0
  343. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/testing_models_annotated.py +0 -0
  344. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/timestamps.py +0 -0
  345. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/timestamps_annotated.py +0 -0
  346. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/transactions.py +0 -0
  347. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/transactions_annotated.py +0 -0
  348. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/traversal.py +0 -0
  349. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/upgrade_account.py +0 -0
  350. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/upgrade_account_annotated.py +0 -0
  351. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/upgrade_foreign_default.py +0 -0
  352. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/upgrade_keep.py +0 -0
  353. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/upgrade_keep_annotated.py +0 -0
  354. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/upgrade_primary_key.py +0 -0
  355. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/examples/upgrade_primary_key_annotated.py +0 -0
  356. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/includes/abbreviations.md +0 -0
  357. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/includes/field-types.md +0 -0
  358. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/connection.md +0 -0
  359. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/exceptions.md +0 -0
  360. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/migrations.md +0 -0
  361. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/model.md +0 -0
  362. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/queries.md +0 -0
  363. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/raw-sql.md +0 -0
  364. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/relationships.md +0 -0
  365. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/api/transactions.md +0 -0
  366. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/changelog.md +0 -0
  367. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/concepts/backends.md +0 -0
  368. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/concepts/identity-map.md +0 -0
  369. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/concepts/performance.md +0 -0
  370. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/concepts/query-typing.md +0 -0
  371. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/concepts/type-safety.md +0 -0
  372. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/contributing.md +0 -0
  373. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/faq.md +0 -0
  374. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/getting-started/quickstart.md +0 -0
  375. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/aggregations.md +0 -0
  376. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/connections.md +0 -0
  377. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/queries.md +0 -0
  378. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/raw-sql.md +0 -0
  379. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/row-level-security.md +0 -0
  380. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/data-steps.md +0 -0
  381. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/deploying.md +0 -0
  382. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/schema/squash.md +0 -0
  383. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/guide/transactions.md +0 -0
  384. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/howto/migrate-from-sqlalchemy.md +0 -0
  385. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/howto/multiple-databases.md +0 -0
  386. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/howto/pagination.md +0 -0
  387. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/howto/soft-deletes.md +0 -0
  388. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/howto/timestamps.md +0 -0
  389. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/index.md +0 -0
  390. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/reference/cli.md +0 -0
  391. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/reference/configuration.md +0 -0
  392. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/reference/row-level-security.md +0 -0
  393. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/roadmap.md +0 -0
  394. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/stylesheets/extra.css +0 -0
  395. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/pages/why-ferro.md +0 -0
  396. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-04-24-001-refactor-multi-db-backend-architecture-plan.md +0 -0
  397. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-04-29-001-typed-null-binds-plan.md +0 -0
  398. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-04-29-002-feat-named-connections-plan.md +0 -0
  399. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-05-07-001-refactor-generic-model-connection-plan.md +0 -0
  400. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-05-08-001-feat-typed-query-predicates-plan.md +0 -0
  401. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-05-13-001-feat-configurable-column-storage-types-plan.md +0 -0
  402. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-05-25-001-fix-annotated-strenum-cold-hydration-plan.md +0 -0
  403. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-19-001-ir-first-roadmap.md +0 -0
  404. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-24-001-feat-ir-p8-119-wire-automigrate-plan.md +0 -0
  405. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-25-001-feat-ir-p8-120-parity-gate-plan.md +0 -0
  406. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-26-001-feat-ir-p8.5-140-shared-lowering-plan.md +0 -0
  407. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-26-002-feat-ir-p8.5-143-db-type-drop-plan.md +0 -0
  408. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-26-003-feat-ir-p8.5-144-reconcile-indexes-plan.md +0 -0
  409. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-28-001-feat-ir-p8.5-141-single-schema-ir-producer-plan.md +0 -0
  410. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-29-001-refactor-ir-p8.6-153-create-path-unification-plan.md +0 -0
  411. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-29-002-refactor-ir-p8.6-146-dialect-enum-unification-plan.md +0 -0
  412. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-30-001-refactor-ir-p8.6-158-check-renderer-plan.md +0 -0
  413. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-06-30-002-fix-ir-p8.6-155-deferred-annotations-plan.md +0 -0
  414. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-01-001-feat-ir-p8.6-162-typed-save-bind-plan.md +0 -0
  415. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-01-002-fix-ir-p8.6-154-datetime-tz-coarseness-plan.md +0 -0
  416. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-01-003-fix-ir-p8.6-165-blob-introspection-plan.md +0 -0
  417. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-02-001-fable-fixes-roadmap.md +0 -0
  418. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-02-002-feat-ff-a-172-typed-exceptions-plan.md +0 -0
  419. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-02-003-ff-c-native-decode-design.md +0 -0
  420. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-02-004-ff-c-c2-catalog-cache-design.md +0 -0
  421. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-02-005-ff-d-identity-routing-design.md +0 -0
  422. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-02-006-ff-d-identity-routing-plan.md +0 -0
  423. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-03-007-ff-e-registry-identity-design.md +0 -0
  424. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-03-008-ff-e-registry-identity-plan.md +0 -0
  425. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-06-009-ff-f-query-builder-1.0-design.md +0 -0
  426. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-06-010-ff-f-query-builder-1.0-plan.md +0 -0
  427. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-06-011-ff-g-hardening-design.md +0 -0
  428. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-06-012-ff-g-hardening-plan.md +0 -0
  429. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-06-013-ff-g2-operations-dedup-design.md +0 -0
  430. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-06-014-ff-g2-operations-dedup-plan.md +0 -0
  431. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-06-015-docs-upgrade-guide-consolidation-plan.md +0 -0
  432. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/2026-07-18-016-existence-tests-design.md +0 -0
  433. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/ir-first-migration-guide.md +0 -0
  434. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/plans/ir-first-release-checklist.md +0 -0
  435. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/research/migration-cli-config-prior-art.md +0 -0
  436. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/research/migration-prior-art.md +0 -0
  437. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/research/sqlite-schema-change-recipes.md +0 -0
  438. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/research/sqlx-migrate-internals.md +0 -0
  439. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/rfc/ir-contracts-v1.md +0 -0
  440. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/README.md +0 -0
  441. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/architecture-patterns/ir-first-lowering-consolidation-audit.md +0 -0
  442. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/architecture-patterns/ir-first-merge-readiness-review.md +0 -0
  443. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/alembic-create-table-reissues-enum-type.md +0 -0
  444. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/docs-block-declaring-a-model.md +0 -0
  445. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/pg18-restrict-sqlstate-23001.md +0 -0
  446. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/postgres-contention-was-a-guard-race.md +0 -0
  447. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/pydantic-slots-missing-after-ferro-hydration.md +0 -0
  448. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/pytest-examples-prefix-settings-need-quotes.md +0 -0
  449. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/python-3.14-deferred-annotation-typeerror-swallow.md +0 -0
  450. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/query-ir-version-pin-sweep.md +0 -0
  451. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/sa-pk-column-nullable-divergence.md +0 -0
  452. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/sa-vs-rust-unique-constraint-shape.md +0 -0
  453. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/self-fk-evicts-component-from-create-order.md +0 -0
  454. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/sqlite-integer-decimal-hydrates-as-none.md +0 -0
  455. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/sqlite-null-hydrates-as-int-zero.md +0 -0
  456. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/test-module-cleanup-disarms-alembic-bridge.md +0 -0
  457. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/issues/typed-where-null-panics-is-null.md +0 -0
  458. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/configurable-column-storage-types.md +0 -0
  459. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/ddl-on-live-engine.md +0 -0
  460. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/docstring-conventions.md +0 -0
  461. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/foreign-key-index.md +0 -0
  462. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/historical-models-and-the-registry-swap.md +0 -0
  463. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/index-unique-redundancy.md +0 -0
  464. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/ir-invariants.md +0 -0
  465. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/json-family-factory-migrate-backfill.md +0 -0
  466. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/persistence-state.md +0 -0
  467. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/position-paging-after.md +0 -0
  468. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/shadow-fk-columns.md +0 -0
  469. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/sqlite-alembic-reconnect-hydration-tests.md +0 -0
  470. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/docs/solutions/patterns/typed-null-binds.md +0 -0
  471. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/justfile +0 -0
  472. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/scripts/demo_queries.py +0 -0
  473. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/scripts/demo_queries_pre_v012.py +0 -0
  474. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/codec.rs +0 -0
  475. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/_annotation_utils.py +0 -0
  476. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/_deprecations.py +0 -0
  477. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/_shadow_fk_types.py +0 -0
  478. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/cli/__init__.py +0 -0
  479. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/cli/exit_codes.py +0 -0
  480. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/cli/migrate.py +0 -0
  481. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/cli/output.py +0 -0
  482. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/columns.py +0 -0
  483. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/composite_indexes.py +0 -0
  484. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/composite_uniques.py +0 -0
  485. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/ir/__init__.py +0 -0
  486. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/__init__.py +0 -0
  487. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/_baseline.py +0 -0
  488. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/_chunk_loop.py +0 -0
  489. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/context.py +0 -0
  490. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/errors.py +0 -0
  491. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/generate.py +0 -0
  492. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/historical.py +0 -0
  493. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/layout.py +0 -0
  494. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/report.py +0 -0
  495. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/rerecord.py +0 -0
  496. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/runner.py +0 -0
  497. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/scaffold.py +0 -0
  498. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/steps.py +0 -0
  499. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/target.py +0 -0
  500. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/migrations/testing.py +0 -0
  501. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/py.typed +0 -0
  502. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/query/__init__.py +0 -0
  503. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/query/builder.py +0 -0
  504. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/query/rows.py +0 -0
  505. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/raw.py +0 -0
  506. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/registry.py +0 -0
  507. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/relations/__init__.py +0 -0
  508. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/relations/descriptors.py +0 -0
  509. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/rowsecurity.py +0 -0
  510. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/session.py +0 -0
  511. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/settings.py +0 -0
  512. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/ferro/state.py +0 -0
  513. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/hydration.rs +0 -0
  514. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/query.rs +0 -0
  515. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/schema_bind.rs +0 -0
  516. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/session_settings.rs +0 -0
  517. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/src/sql_log.rs +0 -0
  518. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/__init__.py +0 -0
  519. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_alembic_harness.py +0 -0
  520. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_docs_checks.py +0 -0
  521. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_docs_harness.py +0 -0
  522. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_docs_shared.py +0 -0
  523. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_docs_sql.py +0 -0
  524. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/_docs_twins.py +0 -0
  525. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/db_backends.py +0 -0
  526. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/codec_registry_core_v1.json +0 -0
  527. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_account_exists_v14.json +0 -0
  528. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_account_scoped_exists_v14.json +0 -0
  529. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_card_after_null_slot_v14.json +0 -0
  530. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_card_nulls_v14.json +0 -0
  531. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_owner_nested_exists_v14.json +0 -0
  532. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_owner_not_exists_v14.json +0 -0
  533. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_transaction_aggregate_v14.json +0 -0
  534. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_transaction_global_aggregate_v14.json +0 -0
  535. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_transaction_include_v14.json +0 -0
  536. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_transaction_left_join_v14.json +0 -0
  537. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_transaction_record_v14.json +0 -0
  538. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_transaction_traversal_v14.json +0 -0
  539. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_transaction_traversed_record_v14.json +0 -0
  540. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_add_columns_set_v14.json +0 -0
  541. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_add_literal_set_v14.json +0 -0
  542. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_after_v14.json +0 -0
  543. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_before_v14.json +0 -0
  544. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_compound_v14.json +0 -0
  545. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_literal_set_v14.json +0 -0
  546. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_m2m_exists_v14.json +0 -0
  547. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_merge_set_v14.json +0 -0
  548. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_mixed_set_v14.json +0 -0
  549. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_not_compound_v14.json +0 -0
  550. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_not_leaf_v14.json +0 -0
  551. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/query_user_now_set_v14.json +0 -0
  552. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/schema_invoice_baseline_v1.json +0 -0
  553. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/schema_phase1_fixture_models_v1.json +0 -0
  554. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/schema_raw_str_pk_autoincrement_v1.json +0 -0
  555. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/schema_rename_hints_v2.json +0 -0
  556. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/schema_retired_column_v2.json +0 -0
  557. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/fixtures/ir_vectors/schema_squash_witness_v3.json +0 -0
  558. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/bad_includes.py +0 -0
  559. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/bad_predicates.py +0 -0
  560. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/bad_projections.py +0 -0
  561. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/bad_updates.py +0 -0
  562. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/good_includes.py +0 -0
  563. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/good_migrations_api.py +0 -0
  564. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/good_predicates.py +0 -0
  565. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/good_projections.py +0 -0
  566. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/static_fixtures/good_updates.py +0 -0
  567. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_after_position.py +0 -0
  568. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_aggregation.py +0 -0
  569. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_autogenerate.py +0 -0
  570. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_db_type.py +0 -0
  571. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_nullability.py +0 -0
  572. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_translator.py +0 -0
  573. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_type_mapping.py +0 -0
  574. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_alembic_typing.py +0 -0
  575. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_annotation_utils.py +0 -0
  576. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_auto_migrate.py +0 -0
  577. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_before_position.py +0 -0
  578. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_bulk_create_chunking.py +0 -0
  579. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_bulk_install.py +0 -0
  580. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_catalog_cache.py +0 -0
  581. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_chunked_steps.py +0 -0
  582. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_cli_database_line.py +0 -0
  583. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_cli_help.py +0 -0
  584. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_cli_init.py +0 -0
  585. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_cli_output_new_check.py +0 -0
  586. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_cli_output_run_verbs.py +0 -0
  587. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_cli_output_status_drift.py +0 -0
  588. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_codec_plan.py +0 -0
  589. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_compiled_query.py +0 -0
  590. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_composite_index.py +0 -0
  591. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_composite_unique.py +0 -0
  592. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_connection_redaction.py +0 -0
  593. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_constraints.py +0 -0
  594. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_crud.py +0 -0
  595. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_data_steps.py +0 -0
  596. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_db_backends.py +0 -0
  597. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_db_type_integration.py +0 -0
  598. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_db_type_typing.py +0 -0
  599. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_ddl_lock_timeout.py +0 -0
  600. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_ddl_unprepared.py +0 -0
  601. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_deletion.py +0 -0
  602. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_deprecations.py +0 -0
  603. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_checks.py +0 -0
  604. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_cli_reference.py +0 -0
  605. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_examples.py +0 -0
  606. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_field_type_table.py +0 -0
  607. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_harness.py +0 -0
  608. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_lint.py +0 -0
  609. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_output.py +0 -0
  610. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_shared.py +0 -0
  611. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_testing_fixtures.py +0 -0
  612. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docs_twins.py +0 -0
  613. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_docstring_examples.py +0 -0
  614. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_documentation_features.py +0 -0
  615. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_enum_cold_hydration.py +0 -0
  616. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_exception_mapping.py +0 -0
  617. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_exceptions.py +0 -0
  618. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_field_wrapper.py +0 -0
  619. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_fk_target_pk.py +0 -0
  620. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_backfill.py +0 -0
  621. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_columns.py +0 -0
  622. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_enum_removal.py +0 -0
  623. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_enums.py +0 -0
  624. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_postgres_staging.py +0 -0
  625. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_retired.py +0 -0
  626. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_row_security.py +0 -0
  627. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generate_sqlite_rebuild.py +0 -0
  628. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_generation_counter_dirty_tracking.py +0 -0
  629. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_global_aggregates.py +0 -0
  630. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_grouped_aggregates.py +0 -0
  631. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_helpers.py +0 -0
  632. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_historical_models.py +0 -0
  633. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_hydration.py +0 -0
  634. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_hydration_equivalence.py +0 -0
  635. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_identity_memory.py +0 -0
  636. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_identity_refresh.py +0 -0
  637. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_identity_scoped_invalidation.py +0 -0
  638. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_identity_weakref.py +0 -0
  639. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_import_budget.py +0 -0
  640. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_include.py +0 -0
  641. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_isolated_imports.py +0 -0
  642. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_live_table_checks.py +0 -0
  643. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_metadata.py +0 -0
  644. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_baseline.py +0 -0
  645. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_check.py +0 -0
  646. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_down.py +0 -0
  647. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_inherit.py +0 -0
  648. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_new.py +0 -0
  649. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_replace.py +0 -0
  650. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_status.py +0 -0
  651. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrate_up.py +0 -0
  652. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrations_api.py +0 -0
  653. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_migrations_testing_harness.py +0 -0
  654. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_model_identity.py +0 -0
  655. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_models.py +0 -0
  656. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_mutation_pagination_guard.py +0 -0
  657. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_named_connections_integration.py +0 -0
  658. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_naming_single_source.py +0 -0
  659. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_negation.py +0 -0
  660. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_one_to_one.py +0 -0
  661. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_operation_seam_sync.py +0 -0
  662. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_order_by_nulls.py +0 -0
  663. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_order_by_nulls_wire.py +0 -0
  664. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_partial_selects.py +0 -0
  665. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_pass_report.py +0 -0
  666. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_position_paging_traversal.py +0 -0
  667. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_postgres_isolation.py +0 -0
  668. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_primary_key_facts.py +0 -0
  669. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_provisional_import.py +0 -0
  670. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_query_builder.py +0 -0
  671. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_query_column_validation.py +0 -0
  672. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_query_immutability.py +0 -0
  673. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_query_joins.py +0 -0
  674. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_query_typing.py +0 -0
  675. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_query_wire_vectors.py +0 -0
  676. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_raw_sql.py +0 -0
  677. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_refresh.py +0 -0
  678. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_registry_entrypoints.py +0 -0
  679. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_registry_owner.py +0 -0
  680. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_registry_swap.py +0 -0
  681. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_relation_specs.py +0 -0
  682. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_relationship_engine.py +0 -0
  683. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_relationship_resolution_errors.py +0 -0
  684. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_rendered_statement.py +0 -0
  685. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_retired_columns.py +0 -0
  686. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_rls_end_to_end.py +0 -0
  687. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_route_single_site.py +0 -0
  688. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_routing_errors.py +0 -0
  689. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_row_security_orphans.py +0 -0
  690. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_row_security_rebuild.py +0 -0
  691. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_run_lock.py +0 -0
  692. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_save_pk_edges.py +0 -0
  693. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_save_semantics.py +0 -0
  694. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_schema.py +0 -0
  695. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_schema_constraints.py +0 -0
  696. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_schema_db_type_metadata.py +0 -0
  697. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_schema_enum_annotations.py +0 -0
  698. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_session.py +0 -0
  699. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_session_set_config.py +0 -0
  700. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_session_settings.py +0 -0
  701. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_session_settings_operations.py +0 -0
  702. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_settings.py +0 -0
  703. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_shadow_fk_types.py +0 -0
  704. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_sqlite_alembic_reconnect_hydration.py +0 -0
  705. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_statement_log_run.py +0 -0
  706. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_static_contracts.py +0 -0
  707. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_step_class.py +0 -0
  708. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_string_search.py +0 -0
  709. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_structural_types.py +0 -0
  710. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_temporal_types.py +0 -0
  711. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_transactions.py +0 -0
  712. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_traversed_projection.py +0 -0
  713. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_typed_null_binds.py +0 -0
  714. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/tests/test_typed_save_bind.py +0 -0
  715. {ferro_orm-0.26.0 → ferro_orm-0.27.0}/zensical.toml +0 -0
@@ -14,6 +14,15 @@ concurrency:
14
14
  permissions:
15
15
  contents: read
16
16
 
17
+ env:
18
+ # Every job compiles Ferro's own crates from scratch (rust-cache keeps only
19
+ # dependencies): 2.5 to 4 minutes a job. sccache keys each rustc call by its
20
+ # inputs and stores the object in the Actions cache, so an unchanged crate is
21
+ # a download. Incremental compilation is off because sccache cannot cache it.
22
+ SCCACHE_GHA_ENABLED: "true"
23
+ RUSTC_WRAPPER: sccache
24
+ CARGO_INCREMENTAL: "0"
25
+
17
26
  jobs:
18
27
  lint-and-format:
19
28
  name: Lint & Format (Pre-commit / Prek)
@@ -37,10 +46,14 @@ jobs:
37
46
  with:
38
47
  components: rustfmt, clippy
39
48
 
49
+ - name: Cache compiled Rust crates
50
+ uses: mozilla-actions/sccache-action@v0.0.11
51
+
40
52
  - name: Cache Rust build
41
53
  uses: Swatinem/rust-cache@v2
42
54
  with:
43
55
  prefix-key: v1
56
+ save-if: ${{ github.ref == 'refs/heads/main' }}
44
57
  cache-on-failure: true
45
58
 
46
59
  - name: Cache pre-commit hook environments
@@ -60,7 +73,7 @@ jobs:
60
73
  uv run --no-sync --python 3.13 prek run --all-files
61
74
 
62
75
  docs:
63
- name: Docs build and docs tests
76
+ name: Docs build
64
77
  runs-on: ubuntu-latest
65
78
  steps:
66
79
  - name: Checkout repository
@@ -79,10 +92,15 @@ jobs:
79
92
  - name: Set up Rust
80
93
  uses: dtolnay/rust-toolchain@stable
81
94
 
95
+ - name: Cache compiled Rust crates
96
+ uses: mozilla-actions/sccache-action@v0.0.11
97
+
82
98
  - name: Cache Rust build
83
99
  uses: Swatinem/rust-cache@v2
84
100
  with:
85
101
  prefix-key: v1
102
+ shared-key: maturin-develop-py3.13
103
+ save-if: ${{ github.ref == 'refs/heads/main' }}
86
104
  cache-on-failure: true
87
105
 
88
106
  - name: Install documentation and test dependencies
@@ -101,11 +119,6 @@ jobs:
101
119
  run: |
102
120
  uv run --no-sync python -m tests._docs_checks docs/pages docs/examples src/ferro
103
121
 
104
- - name: Run the docs tests
105
- # Every docs test module is named test_doc*.py, which
106
- # tests/test_docs_site.py pins, so a new one runs here unlisted.
107
- run: |
108
- uv run --no-sync pytest --no-cov -p no:cacheprovider tests/test_doc*.py
109
122
 
110
123
  test-rust:
111
124
  name: Rust tests
@@ -122,10 +135,14 @@ jobs:
122
135
  with:
123
136
  python-version: "3.13"
124
137
 
138
+ - name: Cache compiled Rust crates
139
+ uses: mozilla-actions/sccache-action@v0.0.11
140
+
125
141
  - name: Cache Rust build
126
142
  uses: Swatinem/rust-cache@v2
127
143
  with:
128
144
  prefix-key: v2
145
+ save-if: ${{ github.ref == 'refs/heads/main' }}
129
146
  cache-on-failure: true
130
147
 
131
148
  - name: Run Rust tests
@@ -159,10 +176,15 @@ jobs:
159
176
  - name: Set up Rust
160
177
  uses: dtolnay/rust-toolchain@stable
161
178
 
179
+ - name: Cache compiled Rust crates
180
+ uses: mozilla-actions/sccache-action@v0.0.11
181
+
162
182
  - name: Cache Rust build
163
183
  uses: Swatinem/rust-cache@v2
164
184
  with:
165
185
  prefix-key: v1
186
+ shared-key: maturin-develop-py3.13
187
+ save-if: ${{ github.ref == 'refs/heads/main' }}
166
188
  cache-on-failure: true
167
189
 
168
190
  - name: Install dependencies
@@ -183,7 +205,7 @@ jobs:
183
205
 
184
206
  - name: Run pytest
185
207
  run: |
186
- uv run pytest -v --cov=src --cov-report=xml --cov-report=term
208
+ uv run pytest -n logical --cov=src --cov-report=xml --cov-report=term
187
209
 
188
210
  test-python-main:
189
211
  name: Python tests (main / ${{ matrix.python-version }})
@@ -210,10 +232,15 @@ jobs:
210
232
  - name: Set up Rust
211
233
  uses: dtolnay/rust-toolchain@stable
212
234
 
235
+ - name: Cache compiled Rust crates
236
+ uses: mozilla-actions/sccache-action@v0.0.11
237
+
213
238
  - name: Cache Rust build
214
239
  uses: Swatinem/rust-cache@v2
215
240
  with:
216
241
  prefix-key: v1
242
+ shared-key: maturin-develop-py${{ matrix.python-version }}
243
+ save-if: ${{ github.ref == 'refs/heads/main' }}
217
244
  cache-on-failure: true
218
245
 
219
246
  - name: Install dependencies
@@ -230,23 +257,32 @@ jobs:
230
257
 
231
258
  - name: Run pytest
232
259
  run: |
233
- uv run pytest -v --cov=src --cov-report=xml --cov-report=term
260
+ uv run pytest -n logical --cov=src --cov-report=xml --cov-report=term
234
261
 
235
262
  - name: Upload coverage to Codecov
236
263
  if: matrix.python-version == '3.13'
237
- uses: codecov/codecov-action@v4
264
+ uses: codecov/codecov-action@v5
238
265
  with:
239
- file: ./coverage.xml
266
+ token: ${{ secrets.CODECOV_TOKEN }}
267
+ fail_ci_if_error: true
268
+ files: ./coverage.xml
240
269
  flags: python-${{ matrix.python-version }}
241
270
  name: python-${{ matrix.python-version }}
242
- continue-on-error: true
243
271
 
244
272
  test-python-backend-matrix:
245
- name: Python backend matrix (SQLite + Postgres)
273
+ name: Python backend matrix (Postgres ${{ matrix.postgres }}, shard ${{ matrix.shard }}/2)
274
+ # A slice PR into an integration branch skips the matrix; the open PR
275
+ # from that branch to main runs it on every merge into the branch.
276
+ if: github.event_name != 'pull_request' || github.base_ref == 'main'
246
277
  runs-on: ubuntu-latest
278
+ strategy:
279
+ fail-fast: false
280
+ matrix:
281
+ postgres: ['17', '18']
282
+ shard: [1, 2]
247
283
  services:
248
284
  postgres:
249
- image: postgres:17
285
+ image: postgres:${{ matrix.postgres }}
250
286
  env:
251
287
  POSTGRES_USER: ferro
252
288
  POSTGRES_PASSWORD: ferro
@@ -277,10 +313,15 @@ jobs:
277
313
  - name: Set up Rust
278
314
  uses: dtolnay/rust-toolchain@stable
279
315
 
316
+ - name: Cache compiled Rust crates
317
+ uses: mozilla-actions/sccache-action@v0.0.11
318
+
280
319
  - name: Cache Rust build
281
320
  uses: Swatinem/rust-cache@v2
282
321
  with:
283
322
  prefix-key: v1
323
+ shared-key: maturin-develop-py3.13
324
+ save-if: ${{ github.ref == 'refs/heads/main' }}
284
325
  cache-on-failure: true
285
326
 
286
327
  - name: Install dependencies
@@ -293,7 +334,7 @@ jobs:
293
334
 
294
335
  - name: Run backend matrix tests
295
336
  run: |
296
- uv run pytest -v -m "backend_matrix or postgres_only" --db-backends=sqlite,postgres
337
+ uv run pytest -n logical -m "backend_matrix or postgres_only" --db-backends=postgres --shard ${{ matrix.shard }}/2
297
338
 
298
339
  check-conventional-commits:
299
340
  name: Check Conventional Commits
@@ -72,6 +72,7 @@ jobs:
72
72
  ci-gate:
73
73
  name: CI Gate
74
74
  uses: ./.github/workflows/ci.yml
75
+ secrets: inherit
75
76
 
76
77
  packaging-smoke:
77
78
  name: Packaging Smoke Gate
@@ -14,7 +14,7 @@ covers the invariants that the architecture rests on.
14
14
  **Every DDL emission path in Ferro must produce byte-identical schema artifacts
15
15
  for the same model definition.**
16
16
 
17
- Take one edit, `bio: str | None = None` added to `Author`. Each door below
17
+ Take one edit, `bio: str | None = None` added to `Author`. Each emitter below
18
18
  runs the same statement for it, `ALTER TABLE "author" ADD COLUMN "bio"
19
19
  varchar`, because each asks the same planner and renders through the same
20
20
  functions. Today Ferro emits DDL through:
@@ -28,7 +28,7 @@ functions. Today Ferro emits DDL through:
28
28
  `PassReport` (`ferro.migrate()` / `ferro.create_tables()` return it, built
29
29
  from what the DDL executor ran, ADR-0049), pinned against the planner by
30
30
  pin **(g)**.
31
- - The **migrations door** (`src/ferro/migrations/` +
31
+ - The **generator** (`src/ferro/migrations/` +
32
32
  `crates/ferro-migrate/src/generate/`): `ferro migrate new`. It plans between
33
33
  two schema snapshots with the same planner and renders through the same
34
34
  `Plan::render`, once per dialect, into step files. It decides which step an
@@ -73,6 +73,8 @@ For a single model, every emitter must agree on:
73
73
  (Python) and `db_check_constraint_name` (Rust); table checks use
74
74
  `_ddl_table_check_constraint_name` (Python) and
75
75
  `table_check_constraint_name` (Rust).
76
+ A generated column's SQLite range guard is `_ferro_range_<col>`
77
+ (`sqlite_guard_name`), part of the column and never a `ck_*` check.
76
78
  9. **Default values** — server-side defaults must serialize identically.
77
79
  One exception (ADR-0034): on SQLite the reconciliation pass adds a
78
80
  required column with a literal default as `NOT NULL DEFAULT <literal>`
@@ -88,14 +90,20 @@ For a single model, every emitter must agree on:
88
90
  `ferro_migrate::OpVerdict`, decided once (ADR-0050): whether the dialect
89
91
  runs it natively, rebuilds the table, refuses it (naming the fix) or
90
92
  cannot reverse it, and whether it demands values from existing rows,
91
- drops data or can fail on them. Every door reads that one verdict and
92
- re-decides none of it. The reconciliation pass runs them directly; the
93
- migrations door writes them into step files; the bridge's one comparator
93
+ drops data or can fail on them, whether it is the drop or add of a
94
+ generated column the plan replaces (`replaces`), whether it carries a
95
+ policy or check around another change and puts it back as it was
96
+ (`carried`: `unchanged`, `changed` or `not_compared`; only `unchanged`
97
+ is no difference, on every emitter and in drift), and, on a type change
98
+ no emitter runs, what it leaves standing uncompared (`held`). Every
99
+ emitter reads that one
100
+ verdict and re-decides none of it. The reconciliation pass runs them directly; the
101
+ generator writes them into step files; the bridge's one comparator
94
102
  (`dispatch_for("schema")` in `src/ferro/migrations/alembic.py`) reads the
95
103
  live database through `_core._live_schema_ir` and asks the core for the
96
104
  whole revision in one call, `_core._plan_revision`
97
105
  (`ferro_migrate::plan_revision`): the upgrade planned live → models with
98
- destructive changes on, its `downgrade()` the one down every door uses,
106
+ destructive changes on, its `downgrade()` the one down every emitter uses,
99
107
  `ferro_migrate::plan_down`, run from the models back to the live
100
108
  database and scoped to the artifacts the upgrade touched (ADR-0050; a
101
109
  check or policy put back with the body the catalog printed through
@@ -106,11 +114,11 @@ For a single model, every emitter must agree on:
106
114
  `op.execute(sa.DDL(...))` of the pass's statement, byte for byte, where
107
115
  it does not. The per-family comparators, their slot registrations and
108
116
  the `_plan_check_*` FFI are gone (#533).
109
- The families, each one decision consumed by every door:
117
+ The families, each one decision consumed by every emitter:
110
118
  - **Enum labels** — `missing_enum_labels` / `extra_enum_labels` +
111
119
  `render_pg_enum_add_value` (ADR-0011: append-only, update-gated; an
112
120
  extra live label is a warning on a live database, and between two
113
- declared snapshots the migrations door's removal, #536). A label
121
+ declared snapshots the generator's removal, #536). A label
114
122
  rename hint is `render_pg_enum_rename_value` (`render_label_update`
115
123
  on SQLite, in a migration only; the pass warns there, ADR-0047); an
116
124
  enum class rename `render_pg_enum_rename_type`.
@@ -118,10 +126,14 @@ For a single model, every emitter must agree on:
118
126
  `render_check_addition`), rebuilds (`drifted_check_names` /
119
127
  `render_check_rebuild`) and leftovers (`extra_check_names` /
120
128
  `extra_check_names_warning` / `render_check_drop`) (ADR-0013..0015).
121
- One normalizer, `normalize_check_definition`, compares the canonical
122
- rendering with the catalog's; it folds only the casts Postgres adds for
123
- display (any cast on a literal, and a text-family cast on a column or
124
- `ARRAY[…]`), and every other cast is drift (#563).
129
+ On Postgres a body is compared as a **printed pair** (ADR-0060): the
130
+ declared rendering and the catalog's reprint pass through one
131
+ read-only `EXPLAIN (VERBOSE, FORMAT JSON)` per compared table
132
+ (`printed_pair_checks`, `PrintedPair`), and equal prints are no
133
+ drift. On SQLite, which stores the body as written, the normalizer
134
+ `normalize_check_definition` compares the canonical rendering with
135
+ the stored text. Row-policy drift keeps its own normalizer
136
+ (`normalize_row_policy_expr`).
125
137
  - **Row security** — the policy name, shorthand cast, rendered
126
138
  expression and `ENABLE` / `FORCE` / `CREATE POLICY` statements
127
139
  (`row_policy_name`, `is_ferro_row_policy_name`,
@@ -138,7 +150,7 @@ For a single model, every emitter must agree on:
138
150
  name, the cast and the command table over FFI
139
151
  (`_core._ddl_row_policy_name`, `_core._rls_shorthand_cast`,
140
152
  `_core._rls_command_matrix`). A foreign policy and an unverifiable raw
141
- body never become an op on any door (ADR-0019). Postgres-only; SQLite
153
+ body never become an op on any emitter (ADR-0019). Postgres-only; SQLite
142
154
  gets one warning per table and no DDL (ADR-0014).
143
155
  - **Enum types** — a type the change introduces is always the pass's
144
156
  guarded `CREATE TYPE` (`render_pg_enum_create_type`) ahead of every
@@ -147,8 +159,130 @@ For a single model, every emitter must agree on:
147
159
  (`ferro.migrations.render_item`). This supersedes in part the
148
160
  inline-vs-statement provenance of ADR-0020..0022 (ADR-0041).
149
161
  Postgres-only (SQLite enums store as text).
150
-
151
- Every artifact above reaches every door through the one planner,
162
+ - **Generated expressions** — take
163
+ `direction: int = Field(generated=lambda ledger: fn.sign(ledger.amount_minor))`.
164
+ Every emitter writes the column as
165
+ `GENERATED ALWAYS AS (CAST(sign(CAST("amount_minor" AS bigint)) AS bigint)) STORED`
166
+ on Postgres and `GENERATED ALWAYS AS (sign("amount_minor")) STORED
167
+ CONSTRAINT "_ferro_range_direction" CHECK (typeof("direction") IN
168
+ ('integer', 'null') AND "direction" BETWEEN -2147483648 AND
169
+ 2147483647)` on SQLite, never with a `DEFAULT`. The body is lowered
170
+ once (`render_value_expr` over the closed function table
171
+ `value_function`, which `_core._value_function_table` hands `ferro.fn`;
172
+ the clause is `render_generated_clause`) at the type
173
+ `type_value_expr` gives it, the type SQLite computes it at: on
174
+ Postgres an integer value computes at 64 bits and a float one as a
175
+ `double precision`, each operand or call Postgres would type
176
+ otherwise (a `smallint` or `integer` column, `sign`, `length`, a
177
+ date part, a literal) cast to that type. Its ops and their verdicts: added with the
178
+ column (`AddColumn`, native on Postgres, a rebuild on SQLite, no
179
+ backfill), a changed expression (`AlterGeneratedExpression`,
180
+ `render_set_generated_expression`, can fail on rows), generated to
181
+ plain (`DropGeneratedExpression`, `render_drop_generated_expression`,
182
+ values kept, `migrate_updates`) and an input rename (the rename
183
+ alone). Three changes drop the column and add it back, each op's
184
+ verdict naming why in `OpVerdict.replaces`: plain to generated
185
+ (`Replace::MadeGenerated`, destructive; without `migrate_destructive`
186
+ the pass reports `PlainColumnKept`), an input's type change
187
+ (`Replace::InputType`) and its own type change (`Replace::OwnType`),
188
+ both of which Postgres refuses to alter under an expression. A row
189
+ policy or table check that reads the column is carried around the
190
+ pair. A carried artifact is one taken down and put back around
191
+ another change, its ops marked `OpVerdict.carried` with whether it
192
+ comes back as it was: `unchanged` is no difference on any emitter, while
193
+ `changed` (`ck_transaction_nonzero check body differs`) and
194
+ `not_compared` (a live check over a column whose type changes, which
195
+ Postgres cannot print against the old type) are differences drift
196
+ reports. A type change no emitter runs (`emit::withheld_alter`: a
197
+ primary-key column, an enum type move, a refused scalar conversion)
198
+ carries nothing and replaces nothing. The column keeps its live type,
199
+ so every check, generated column and policy that reads it is held:
200
+ one set per table (`ferro_migrate::held_of`), read by every path. A
201
+ held artifact gets no printed pair and is never taken down, put
202
+ back, added, rebuilt or set, even when it also reads a column whose
203
+ change does run. A change that would take one down (a replaced
204
+ generated column it reads, or an alter Postgres refuses under its
205
+ expression or policy) is refused with
206
+ `Refusal::HeldByWithheldAlter`, naming the withheld change's fix.
207
+ The alter's verdict lists the set in `OpVerdict.held` with that fix:
208
+ `code: int` keyed under `code > 0`, redeclared `code: str` under
209
+ `fn.length(code) > 0`, runs no DDL and reports the primary-key
210
+ recipe, and drift prints `ticket.code has type int, snapshot says
211
+ varchar` then `ck_ticket_coded check not compared while its column's
212
+ type change is withheld; resolve the type change of "code" first:
213
+ …`. A row policy the plan
214
+ cannot carry (a raw body it may not rewrite, ADR-0019) refuses the
215
+ drop with `Refusal::PolicyReadsReplacedColumn`, naming the
216
+ `DROP POLICY` recipe. Drift is a printed pair on Postgres
217
+ (`printed_pair_column`; a live `VIRTUAL` column or a plain one where
218
+ the model declares generated differs) and Ferro's rendering against
219
+ the stored text, whitespace folded, on SQLite. The bridge writes an
220
+ added column as `sa.Computed(<expr>, persisted=True)` and the other
221
+ ops as `op.execute` of the pass's statement; `get_metadata()` gives a
222
+ SQLite column its guard as a column `CheckConstraint`
223
+ (`_core._render_sqlite_generated_guard`), so `create_all` builds the
224
+ pass's table.
225
+ The SQLite guard `_ferro_range_<col>` (`sqlite_generated_guard`)
226
+ is written inside the column definition and compared with it: never
227
+ a `ck_*` check and never in `__ferro_checks__`. Postgres raises where
228
+ a value does not fit; SQLite would store a `real` or `inf`. So the
229
+ guard holds a `smallint` or `integer` column to its Postgres range
230
+ and a `bigint` one to staying an integer, and every operation under
231
+ the column that can fail on a value is checked on SQLite the way
232
+ Postgres evaluates it (a `coalesce` fallback only when the earlier
233
+ arguments are null): an integer result must still be an integer, a
234
+ float one finite unless an operand already was infinite. Where an
235
+ integer meets a float in a call with a float signature
236
+ (`fn.greatest(a, 0.5)`) or in a check comparison with a value
237
+ expression on either side (`a + 0 != x`), Postgres computes at
238
+ `double precision`, so SQLite renders the integer
239
+ `CAST(<operand> AS real)` (`sqlite_computes_as_double`; an integer
240
+ literal within ±2**53 stays bare). A plain comparison
241
+ (`qty < price`) is outside value parity and renders as it always
242
+ has. Each `ValueFunction` carries the two facts the guard reads,
243
+ `overflows_on_integer` (`abs`) and `skips_after_non_null`
244
+ (`coalesce`), so a function added to the table joins with its
245
+ renderings, both facts and a case in `tests/test_value_parity.py`. A
246
+ `double precision` column gets no storage term, since
247
+ Postgres stores the `inf` an input carried. `total: int = a + b`
248
+ carries only the storage term; Postgres needs no guard, since it
249
+ computes at 64 bits and its column type holds the range.
250
+ - **Value parity** — a value expression (a generated column's body, or
251
+ either side of a check's comparison that calls `fn`) is admitted only
252
+ when SQLite and Postgres store the same value for it on every row,
253
+ and fail on the same rows, decided once when the model is defined
254
+ (ADR-0059). Two functions decide it, and every emitter reads them:
255
+ `ferro_ddl_lowering::type_value_expr` types each node (family and
256
+ nullability, from the columns, `literal_type` and the signatures in
257
+ `VALUE_FUNCTIONS`) and refuses what would store differently, read by
258
+ the class definition over FFI (`_core._value_expr_type`), the
259
+ Postgres renderer and the SQLite guard; `value_step_can_fail` names
260
+ the one operation that can fail on a value (an integer or float `+`,
261
+ `-` or `*`, a `/ -1`, an integer unary `-`, `abs` of an integer),
262
+ read by the SQLite guard, the check body, the refusal of such an
263
+ operation under an `OR` (`_core._value_expr_failing_step`) and the
264
+ error mapping that turns the overflow into a `DataError` naming the
265
+ column or check (`table_check_computes`). The refusals: the
266
+ expression's type family matches the column's; `least` / `greatest`
267
+ take numbers or dates and no nullable operand; `year` / `month` /
268
+ `day` take a `date`; `/` only by a non-zero literal; no float `*` or
269
+ `/` and no Decimal arithmetic; no integer literal past 64 bits; no
270
+ bounded text storage, which Postgres pads or trims and SQLite does
271
+ not; no
272
+ other generated column, retired column, relation or closed-over
273
+ variable. A check's SQLite body guards each comparison with a failing
274
+ operation (`render_check_predicate`): `lambda box: box.a * box.b > 0`
275
+ is
276
+ `CASE WHEN NOT (typeof(("a" * "b")) IN ('integer', 'null')) THEN
277
+ abs(-9223372036854775807 - 1) ELSE (("a" * "b") > 0) END`, whose
278
+ `abs` raises SQLite's own `integer overflow` where Postgres raises, so
279
+ `NOT` cannot invert it and a conjunct both databases skip computes
280
+ nothing; the Postgres body carries no terms. A function joins `fn`
281
+ only with its rendering per dialect and a row in
282
+ `tests/test_value_parity.py`, which runs it on both dialects; a
283
+ divergence is refused, never documented.
284
+
285
+ Every artifact above reaches every emitter through the one planner,
152
286
  `ferro_migrate::plan_from_ir` (`_core._plan_from_ir` over FFI): its
153
287
  per-family deciders are private to it and pinned through it, never as a
154
288
  second entry point; `_core._plan_enum_type_provenance` remains as a
@@ -157,9 +291,9 @@ For a single model, every emitter must agree on:
157
291
 
158
292
  ### The nine pins
159
293
 
160
- `tests/test_cross_emitter_parity.py` pins the migrations door, the bridge and
294
+ `tests/test_cross_emitter_parity.py` pins the generator, the bridge and
161
295
  the pass itself against the one planner over every casebook change
162
- (`tests/_casebook.py`, cases A–F, built from the generator tests' own models)
296
+ (`tests/_casebook.py`, cases A–G, built from the generator tests' own models)
163
297
  on both dialects:
164
298
 
165
299
  - **(a)** the statements of the generated DDL steps, headers stripped and the
@@ -177,9 +311,10 @@ on both dialects:
177
311
  pass's, through the one renderer;
178
312
  - **(e)** a database taken through the migration chain shows no drift, has
179
313
  the same live schema (facts included) as one `connect(auto_migrate=True)`
180
- built from the same models, and the same server default on every column
314
+ built from the same models, the same server default on every column
181
315
  (no backfill `DEFAULT` left behind, and a renamed table's serial sequence
182
- under the name a fresh table gives it), and Alembic autogenerate against
316
+ under the name a fresh table gives it) and the same expression on every
317
+ generated column (`generation_expressions`), and Alembic autogenerate against
183
318
  the auto-migrated one is empty (against the migrated one it refuses: a
184
319
  tracked database is `ferro migrate new`'s);
185
320
  - **(f)** the bridge's revision runs the pass's DDL for every planner op:
@@ -200,8 +335,9 @@ on both dialects:
200
335
  `0001` and `0002` and then inherited by `ferro migrate up` against the squashed
201
336
  directory (it runs no statement) has the same live schema as one that ran
202
337
  the squashed `0001` from empty, reading every fact pin (e) reads (columns,
203
- types, nullability, indexes, constraints, policies, and the server default
204
- of every column, `column_defaults`), the same `_ferro_migrations` rows bar
338
+ types, nullability, indexes, constraints, policies, the server default
339
+ of every column, `column_defaults`, and the expression of every generated
340
+ column, `generation_expressions`), the same `_ferro_migrations` rows bar
205
341
  origin, `ferro_version` and times, no drift on either, and
206
342
  `ferro migrate down --all` leaves both with no table of the models and no
207
343
  record.
@@ -220,7 +356,7 @@ xfail removes it.
220
356
 
221
357
  ### Why this invariant exists
222
358
 
223
- A user can adopt any migration strategy or switch between them. If two doors
359
+ A user can adopt any migration strategy or switch between them. If two strategies
224
360
  disagree on _any_ schema artifact, the second one sees phantom diffs: running
225
361
  `alembic revision --autogenerate` or `ferro migrate drift` against a database
226
362
  that `connect(auto_migrate=True)` bootstrapped proposes a drop + create of an
@@ -231,7 +367,7 @@ Phantom diffs are the canonical symptom that this invariant has been broken.
231
367
 
232
368
  ### How this invariant is enforced
233
369
 
234
- - One planner, one renderer: every door plans with
370
+ - One planner, one renderer: every emitter plans with
235
371
  `ferro_migrate::plan_from_ir` and renders with `Plan::render`; every
236
372
  decision lives in one `ferro_ddl_lowering` function, consumed over FFI by
237
373
  the Python side.
@@ -252,7 +388,7 @@ Phantom diffs are the canonical symptom that this invariant has been broken.
252
388
  `update` in both forms, `delete`, through `Relation` and `ProjectedQuery`
253
389
  too) on both dialects, with a secret column, `await query.<terminal>.sql()`
254
390
  equals the `ferro.sql` record the executed call writes in `sql`, `params`
255
- (the `REDACTED` sentinel included) and `dialect`. Both doors build the
391
+ (the `REDACTED` sentinel included) and `dialect`. Both paths build the
256
392
  statement through one `build_<terminal>` function in `src/operations.rs`,
257
393
  which the executing entry sends and its `render_<terminal>` twin returns.
258
394
 
@@ -265,8 +401,8 @@ If you add a new emitter (e.g. `ferro schema dump`):
265
401
  helpers — these are the source of truth. Never a second renderer.
266
402
  2. Add a pin to `tests/test_cross_emitter_parity.py` that compares your
267
403
  emitter's output with `_core._plan_from_ir(..., render=True)` for every
268
- casebook case on both dialects, the way pin (a) does for the migrations
269
- door; at least single-column index, composite index, single-column
404
+ casebook case on both dialects, the way pin (a) does for the
405
+ generator; at least single-column index, composite index, single-column
270
406
  unique, composite unique and foreign key with shadow column must be
271
407
  among them.
272
408
  3. Update this AGENTS.md entry with the new emitter in the bulleted list above.
@@ -278,7 +414,7 @@ If you add a new schema feature (e.g. partial indexes, exclusion constraints):
278
414
  1. Pick the canonical name format and document it in this file under the
279
415
  numbered list above.
280
416
  2. Decide it in one `ferro_ddl_lowering` function, plan it as a
281
- `MigrationOp` and render it in `Plan::render`, so every door gets it in the
417
+ `MigrationOp` and render it in `Plan::render`, so every emitter gets it in the
282
418
  same PR; give the bridge's `translate.py` its op (Alembic's own, or the
283
419
  pass's statement).
284
420
  3. Add a casebook case (`tests/_casebook.py`) so pins (a)–(i) cover it, and a
@@ -302,6 +438,11 @@ anything in `BaseModel.__slots__` that `__init__` assigns (notably
302
438
  well. Leaving a slot unset raises `AttributeError` on access (unlike a normal
303
439
  instance attribute defaulting to `None`).
304
440
 
441
+ The same holds for field values: a `SecretStr` / `SecretBytes` field hydrates
442
+ as that type, never as the plain `str` / `bytes` the column stores. A
443
+ hydrated instance that shows a secret's value where a constructed one shows
444
+ `**********` is an I-2 miss (#760; review I-38 in #786).
445
+
305
446
  If you find yourself wanting to call `__init__` from Rust to "make this easier",
306
447
  stop and read `.cursorrules` §3.B and the design notes under
307
448
  `docs/solutions/patterns/`.
@@ -373,7 +514,7 @@ What this means in practice:
373
514
  Shipping a half-working version of something that is *in* scope is not.
374
515
  - **Every refusal names its fix.** A refusal tells the reader what to do
375
516
  next: the command, the line or the recipe. This binds every refusal text
376
- the migration doors print: the primary-key recipe, the SQLite rebuild
517
+ the migration strategies print: the primary-key recipe, the SQLite rebuild
377
518
  refusals (an undeclared object, a type SQLite cannot check), the
378
519
  tracked-database refusal of `connect(auto_migrate=True)` and of Alembic
379
520
  autogenerate, and the edited-file refusals (`ferro migrate rerecord`,
@@ -528,7 +669,7 @@ communicated, not what gets built.
528
669
 
529
670
  ---
530
671
 
531
- ## I-13: Query and update literals match save() for datetime/date/time/UUID/Decimal
672
+ ## I-13: Query and update literals match save() for datetime/date/time/UUID/Decimal/secrets
532
673
 
533
674
  A developer pages a chat transcript with `after()` on a UTC datetime order
534
675
  key:
@@ -553,11 +694,18 @@ can skip the cursor row.
553
694
  Query and `update()` literals for `datetime`, `date`, `time`, UUID, and
554
695
  Decimal canonicalize through one function (`canonicalize_wire_scalar`) whose
555
696
  output for a given value is pinned against `save_bind_payload`. `save()`
556
- remains instance `model_dump` (field serializers stay on that door). A
697
+ remains instance `model_dump` (field serializers stay on that path). A
557
698
  second datetime/UUID/Decimal cascade — including `datetime.isoformat()` or a
558
699
  “mirrors save_bind_payload” comment — is an I-13 violation. Enums on the
559
700
  query wire are out of scope for this invariant.
560
701
 
702
+ A `SecretStr` / `SecretBytes` is unwrapped first, through `unwrap_secret`,
703
+ on every path: `save()` binds the real value, a query or `update()` literal
704
+ binds the same value, and the display mask `**********` never becomes a
705
+ bind, a schema default or a hydrated value (#760; review I-38 in #786). A
706
+ second unwrap, a JSON dump of a secret column or a `SecretBytes` column
707
+ typed as text is an I-13 violation.
708
+
561
709
  Pinned by helper-vs-save unit equality for those five types and by a SQLite
562
710
  `save` then `after((original_python_datetime, pk))` paging test.
563
711
  Architecture review: I-22 in #428. See PRD #430 and
@@ -631,6 +779,61 @@ markers, the session wrapper, the Annotated idiom for I-7 twins) are in
631
779
 
632
780
  ---
633
781
 
782
+ ## I-15: Statement presentation is one module
783
+
784
+ A developer turns the log on and saves a token:
785
+
786
+ ```python
787
+ logging.getLogger("ferro.sql").setLevel(logging.DEBUG)
788
+
789
+ await User(id=1, token=SecretStr("sk_live")).save()
790
+ # ferro.sql DEBUG INSERT INTO "user" (...) VALUES ($1, $2) params=(1, ***) 0.4ms
791
+
792
+ print(await User.where(lambda user: user.token == "sk_live").all.sql())
793
+ # SELECT ... WHERE "user"."token" = $1 params=(***,)
794
+ ```
795
+
796
+ Two surfaces, one statement, the same stars. A statement the user can see, a
797
+ `ferro.sql` record or a terminal's `RenderedSql`, is built from one
798
+ presentation: the `sql`, the `params` after one `masked_params` in
799
+ `ferro._sql_log`, and the `dialect`. The engine decides which positions are
800
+ secret, once, from the operation's secret-value set (ADR-0057); Python paints
801
+ the stars once.
802
+
803
+ The secret-value set a write or a raw statement hands the engine is one
804
+ collector, `deferred_secret_values`, computed on its first read and the same
805
+ on every read after it. The engine reads it only when the log is on, and may
806
+ read it once per statement the operation sends; a single-shot iterable here
807
+ leaves the second statement with an empty set and a secret in the log, with
808
+ no error (#774 F13).
809
+
810
+ A second `(params, mask)` to `REDACTED` zip, or a secret-value iterable a
811
+ second statement can exhaust, is an I-15 violation. A new surface (an instance
812
+ `save().sql()`, a docs capture, a structured handler) calls `masked_params`
813
+ and passes the collector. Review I-37 in #786.
814
+
815
+ ---
816
+
817
+ ## I-16: A write lists columns in model field declaration order
818
+
819
+ ```python
820
+ await customer.save(only={"updated_at", "name"})
821
+ # UPDATE "customer" SET "name" = ?, "updated_at" = ? WHERE "id" = ?
822
+ ```
823
+
824
+ `only=` and `exclude=` are sets, and a fetched instance's `__dict__` follows
825
+ the `SELECT`. Neither order reaches the statement: `save`, `bulk_create` and
826
+ `save(only=)` / `save(exclude=)` emit their INSERT and SET columns in
827
+ `model_fields` order, walked in `save_bind_payload`. A set is membership
828
+ only.
829
+
830
+ One call is one statement, in the log and in a docs `sql` block. A column
831
+ order that changes between processes or with the row's fetch is an I-16
832
+ violation, the mutation-side twin of the rendered-statement pin in I-1
833
+ (#776; review I-39 in #786).
834
+
835
+ ---
836
+
634
837
  ## Agent skills
635
838
 
636
839
  ### Issue tracker