DecisionInput provenance-integrity DDL (decision-spine 2c)

FeatureInitializerService
Shipped
June 27, 2026 at 1:40 AM UTC
Author
Kamo
Commit
c9ad9e3

decision_input auto-creates via ddl-auto; SchemaCleanupRunner adds the invariants Hibernate can't emit: - decision_input_one_source_chk: num_nonnulls(11 FK cols) = 1 (exactly one immutable source pinned per row). - decision_input_kind_column_chk: the non-null column matches the input_kind discriminator (type-coherence in a WORM legal ledger; pure-SQL, survives the enum-whitelist sweep). - decision_input_decision_idx (ai_decision_uid, date_created) + the hard FK decision_input_decision_fk -> ai_decision(uid) (mirrors steward_feedback). - NO HMDA-firewall DDL: code-verified the doc's CHECK is impossible (VerifiedFact has no factClass column; demographics in a separate table; CRDB CHECK can't subquery; no triggers). The firewall is structural + app-layer, deferred.

All changes

Like what you see shipping?

Every one of these updates lands in your workspace automatically. Start free and watch it grow week after week.

Start Free ForeverView Pricing