canopy-tanf Data Model

For a contributor or maintainer reading the TANF schema: the tables below are the schema in effect after the migrations listed at the end, applied in order — tanf_household_snapshots no longer exists. Only the constraints named CHECK, UNIQUE or EXCLUDE are enforced by the database; the other value sets quoted (status, payment_type, …) are the service’s or the canopy-overpayments crate’s own vocabulary. Endpoint detail is on the canopy-tanf API page; the shared event_outbox / event_inbox pair is described once on the data-models index. Source: migrations/.

Tables

Table Purpose

tanf_applications

One row per application received from canopy-eligibility: the orchestrator’s application_id, household_id, applicant_person_id, a coarse status (pending → in_progress → determined / error), received_at / determined_at.

tanf_income

Income records feeding the determination, self-reported or verified: source ∈ {self_report, fti, ssa_solq, employer}, verification_status (starts unverified). FK tanf_application_id → tanf_applications.

fti_tax_data

Federal Tax Information (IRS Pub 1075 / IRC §6103(l)(7)); every read is wrapped in FTI audit logging. Only items (l)(7) discloses to a TANF agency (#2236): tax_year (the period the information covers), wages_salaries_tips ((l)(7)(A) wages) and self_employment_income ((l)(7)(A) net earnings from self-employment). filing_status and adjusted_gross_income, which no (l)(7) clause discloses, were dropped by 20270204000000_fti_tax_data_l7_items.sql. FK tanf_application_id → tanf_applications.

ssa_match_results

SSA SOLQ/BINDEX matches under the TANF CMA: match_type ∈ {solq, bindex}, ssn_verified, benefits_status ∈ {title_ii, ssi, both, none}, monthly_benefit_amount, match_date. FK tanf_application_id → tanf_applications.

tanf_time_limits

One clock per person (tanf_time_limits_person_uq UNIQUE (person_id), #1330) for the 42 USC 608(a)(7) limit: opening_months (the months on record before the ledger of counted months began; named months_used before #3518; a clock's count is this plus its tanf_counted_months rows, computed on read), federal_limit_months (a per-row snapshot with no schema default — the value flows from jurisdiction.toml at insert, #441), exempt / exemption_reason. The clock holds no State limit (state_limit_months was dropped by #3520). The job that counts months creates the clock of a person it first counts.

tanf_counted_months

The ledger of counted months (ADR-055): person_id, counter (federal, or a code of the pack's [[tanf.counters]]; plain text with no list in SQL), month (its first day), determination_id → tanf_determinations, recorded_at. Primary key (person_id, counter, month), so a month is counted once. Insert-only.

tanf_count_exclusions

Months a worker recorded as not counting for a person: person_id, counter, first_month and last_month (first days, inclusive), reason (a code of the pack's [[tanf.count_exclusions]] when recorded, with no list in SQL), recorded_by, recorded_at. Insert-only.

tanf_accrual_months

One row: counted_through, the last month the counting job has finished. The migration sets it to the month before it runs.

scheduler_runs

The daily-window fence the counting job runs under (canopy_db::window_fence), keyed on the legal timezone's day.

tanf_work_requirements

Per-person work-requirement state: exempt + exemption_reason ∈ {age, disability, caring_for_infant, domestic_violence}, status ∈ {pending, compliant, non_compliant, sanctioned}, sanction_level (PAMMS 1351 tier 0–3), sanction_imposed_at / sanction_expires_at / sanction_reason (#416). FK tanf_application_id → tanf_applications (nullable on this table).

tanf_work_activities

Weekly activity log behind the ACF-199 work-participation rate: activity_type (the pack’s [[tanf.work_activities]] codes, checked by the service), hours_per_week, effective window. CHECK tanf_work_activities_hours_per_week_range (hours_per_week > 0 AND hours_per_week ⇐ 168) and CHECK tanf_work_activities_span_order (end_date IS NULL OR end_date >= effective_date), both validated (#2193). FK work_requirement_id → tanf_work_requirements.

tanf_work_standard_bases

The dated work-standard basis (#2193): the custody facts behind a person’s 45 CFR 261.34(c) week — person_id, effective_date, single_custodial_parent, custodial_child_ids UUID[] (canopy-persons ids), recorded_by (the bearer’s subject), created_at. CHECK tanf_work_standard_bases_custodial_children (NOT single_custodial_parent OR cardinality(custodial_child_ids) > 0). Insert-only: a correction is a new row, and the basis in force on a date is the one with the greatest effective_date on or before it, ties to the latest created_at. No FK (a person may have a basis before any work-requirement row).

tanf_determinations

One signed determination per application evaluation: tanf_application_id (FK → tanf_applications), household_id, status (CHECK tanf_determinations_status_verdict: approved / denied / sanctioned / withheld, #628), benefit_amount + benefit_unit (default monthly_usd), federally_funded (the grant decision's answer, which the job that counts months reads; NULL on a denial and on a determination made before #3518), effective_date / expiration_date / renewal_date, basis, denial_reason, denial_reason_code (the JDM o-denial-code output; nullable on approval), program_service_version, determined_at, the ADR-002 detached-JWS signature, snapshot_hash TEXT NOT NULL (the ADR-028 input-snapshot hash bound into the signature), operation_id (the canopy-eligibility operation the envelope signs; NULL for a direct caller’s determination, #3116) and signed_payload (the exact bytes the signature covers, from which a replayed operation is answered). CHECK tanf_determinations_operation_signed_ck: a row naming an operation carries its signed_payload. Rows written before #3116 carry neither.

tanf_determination_au_members (#3048)

The determination’s assistance unit as the pack's decisions composed it, one row per member the determine request named: PK (determination_id, person_id), FK determination_id → tanf_determinations; counted_toward (TEXT[]: the pack's counters the member's months count toward, as the unit decision answered; empty before #3519); relationship; status (CHECK tanf_determination_au_members_status_check: included / excluded / penalized / deemed); reason, present exactly for an excluded or penalized member (CHECK tanf_determination_au_members_reason_check); deemer_type, present exactly for a deemed one (CHECK tanf_determination_au_members_deemer_type_check); head_of_household, true for the request’s applicant. Composition only: no name, no date of birth. Written in the determination’s transaction (store::create_determination_au).

tanf_determination_au_parents (#3048)

The parent–child relations among a determination’s unit members, every kind: PK (determination_id, parent_person_id, child_person_id), kind (CHECK tanf_determination_au_parents_kind_check: natural / adoptive / step). Each end is a FK (determination_id, person_id) → tanf_determination_au_members, so a relation to a person outside the request has no row.

determination_snapshots

The immutable ADR-028 input snapshot, one per determination (each income, asset and expense leaf carries the fact's provenance when the caller sent one, #884): determination_id (PK, FK → tanf_determinations), snapshot JSONB, corpus_hash, as_of DATE, signing_kid, created_at. Trigger determination_snapshots_append_only rejects UPDATE / DELETE / TRUNCATE unless canopy.snapshot_maintenance = 'on'. PII leaves are ADR-036 SealedValue envelopes hashed over ciphertext. Because TANF is FTI-bearing, the same transaction appends an fti_audit_log chain row for the snapshot’s creation (resource_type = 'determination_snapshot', resource_id = the determination id — determine.rs), so no snapshot exists without its chain row. Detail: ADR-028.

redaction_keys

Per-determination DEK store for crypto-shred (ADR-036): dek_id (PK), wrapped_dek BYTEA, kek_version SMALLINT, subject_kind / subject_id (determination_snapshot / the determination id), created_at (the determination’s decision instant, bound by the store; no default since #2475), shredded_at (NULL = live; the redaction’s instant when set). Trigger canopy_redaction_keys_one_way_guard permits INSERT and exactly two live-row UPDATEs — the tombstone (wrapped_dek + shredded_at) and the KEK rewrap (wrapped_dek replaced + kek_version strictly increased, 20261224000000, #2113); uq_redaction_keys_live_subject keeps one live DEK per subject.

tanf_lump_sum_periods

Lump-sum ineligibility windows (PAMMS 1650): ineligibility_months = net_amount / fpl_100_pct rounded up; shortening_events JSONB carries the catastrophic-event exceptions.

tanf_supplemental_payments

Payments made beside the grant (#3508; named tanf_grg_payments before it): payment_type, a code of the pack's [[tanf.supplemental_payments]] when recorded, with no list in SQL; payee_person_id, on_behalf_of_person_id, amount, effective_date, unit_size.

tanf_personal_responsibilities

Personal Responsibility tracking (PAMMS 1345–1370): requirement_type ∈ {immunization, school_attendance, prenatal_care, tfsp_signature, minor_living_arrangement}, status ∈ {pending, compliant, non_compliant, good_cause, exempt}. FK tanf_application_id → tanf_applications.

tanf_discrepancies

Verification discrepancies (discrepancy_type discriminator), modelled on canopy-snap’s ievs_discrepancies without the generated variance column; resolution_status (starts pending). Write target of the worker-portal resolve_discrepancy_tanf action.

fti_audit_log

The Pub 1075 §4 access log, kept apart from the application audit log: accessed_by, accessed_at, purpose_code, data_elements_accessed TEXT[], originating_system, action (default read), resource_type, resource_id, request_id, ip_address, success, created_at, plus the ADR-014 chain columns previous_hash / event_hash (pre-chain rows have NULLs; verification skips to the genesis row). Trigger fti_audit_log_append_only rejects UPDATE / DELETE / TRUNCATE unless canopy.audit_maintenance is set.

fti_audit_log_archive

LIKE fti_audit_log INCLUDING ALL plus the same chain columns; the Pub 1075 AU-11 7-year retention archive. The ADR-014 chain continues across the boundary; fti_audit_log_archive_append_only guards it the same way.

overpayment_claims

The canonical claim table shared by the three program services that stamp it (canopy-snap, canopy-tanf, canopy-medicaid) (crates/canopy-overpayments/migrations/canonical*.sql): person_id, household_id, determination_id (unconstrained), claim_amount_cents, claim_basis, error_type, discovered_at (a legal date: on a claim the service opens itself — from a subscriber or a recompute — the opening decision instant as a date in the pack’s [jurisdiction].timezone, #2241), the mandatory actor pair discovered_by (the filing human’s OIDC subject, TEXT) / discovered_by_service (a system caller’s client id, or canopy-tanf for its own CB-assessment claims) with overpayment_claims_discovered_by_one_actor (exactly one set; #1008), status (default open), closed_at; provenance appeal_id, adverse_action_id, assessment_id, source_event_id (partial UNIQUEs on the last two); the void path voided_at, void_reason CHECK (void_reason IN ('veto','action_canceled','reallocation')). Vocabularies (ClaimBasis, ClaimStatus) are the crate’s. Since #3567 the row also carries period_first_month / period_last_month (#3567: the benefit months the claim covers, each a first of the month; overpayment_claims_period_whole_months holds the pair to both-or-neither, whole months, in order); this service files its claims with none.

repayment_plans

Repayment schedules per claim: FK overpayment_claim_id → overpayment_claims; monthly_amount_cents, starts_on / ends_on, status (PlanStatus).

recoupment_ledger

Append-only recoupment events: FK overpayment_claim_id → overpayment_claims, optional FK repayment_plan_id → repayment_plans; method (RecoupmentMethod), amount_cents. Outstanding = claim_amount_cents + SUM(claim_adjustments.delta_cents) - SUM(amount_cents), recomputed in Rust.

claim_adjustments

Append-only principal corrections: FK overpayment_claim_id → overpayment_claims; signed delta_cents, reason (AdjustmentReason), requires_ops_review. claim_amount_cents is never rewritten.

determination_verdicts (#2322)

canopy-eligibility’s verdict on each of this service’s determinations, one row per determination_id (PK), written by the verdict consumer (src/verdict_subscriber.rs) in the inbox transaction that releases or drops the determination’s held outbox rows (ADR-002 Amendment 7). verdict is recorded or disowned (CHECK determination_verdicts_verdict_check); a recorded verdict replaces a disowned one and nothing replaces a recorded one. received_at is the consumer’s read of the decision clock for the delivery, bound by the consumer (no default). No foreign key: the consumer records the verdict canopy-eligibility sent whether or not a determination row holds the id.

event_outbox / event_inbox

The shared MQ pair; columns, indexes, parking and retention are on the data-models index.

chain-v2 substrate (withdrawn and dormant, ADR-014 Amendment 6)

Installed by 20260910000000_chain_v2_substrate.sql (#1246) — the fti-family copy: canopy-tanf is a chain SOURCE; the anchor store and verification state live only in canopy_security (canopy-security Data Model). Dormant: chain-v2 is withdrawn (ADR-041; ADR-014 Amendment 12), the #1279 cutover with it, and #1304 retires the substrate.

Table Purpose

chain_instances / chain_topology / chain_epochs / chain_sources / chain_heads

The shared registry substrate (identical DDL to the canopy-security copy): instance history, active pointer, fenced epochs (chain_epochs_one_open_v2 — one installing / active epoch per instance), the source registry chain_append_rows_fti validates its baked canopy-tanf literal against, and pre-created heads. FKs: chain_epochs, chain_topology, chain_sources → chain_instances; chain_topology, chain_heads → chain_epochs.

fti_audit_log_v2 / fti_audit_log_archive_v2

The FTI family’s strict-from-row-one event store. fti_audit_log_v2 → chain_heads by (chain_instance_id, chain_family, chain_epoch, shard_id). Hashed business columns are derived from the payload — including the row id; request_id / ip_address / success ride the pinned unhashed ingress. fti_audit_log_archive_v2_id_uq (20261010000000) makes the archive id unique.

Views: chain_status_v, fti_hashed_preimage_v, fti_hashed_preimage_archive_v (the preimage views expose id since 20261010000000; SELECT granted to canopy_chain_verify). Functions: chain_head_lock, chain_append_rows_fti (SECURITY DEFINER — the only append path for the canopy_tanf_app runtime role), chain_epoch_activate, chain_archive_prefix_fti, chain_purge_prefix_fti. Every object is owned by the NOLOGIN role canopy_chain_owner_tanf. Contract: ADR-014 Amendment 6.

Relationships

Diagram

Cross-service identifiers (ADR-001 boundary)

Every REFERENCES in the database is drawn above; nothing crosses to another service. Application-level only: household_id / person_id / applicant_person_id / payee_person_id / on_behalf_of_person_id → canopy-persons; application_id on tanf_applications → canopy-applications; overpayment_claims.determination_id → usually this service’s tanf_determinations, unconstrained for back-rebill flows; redaction_keys.subject_id → tanf_determinations.id by convention.

Retention

canopy-tanf holds FTI (IRC §6103(l)(7); IRS Publication 1075) in fti_tax_data. FTI audit access is logged to fti_audit_log per Pub 1075 §4; minimum 7-year retention applies to the audit log per Pub 1075 AU-11 (ADR-004 Amendment 2; rows aged out of fti_audit_log migrate to fti_audit_log_archive with the ADR-014 hash chain extending across the boundary). SSA SOLQ/BINDEX data in ssa_match_results is retained per the TANF Computer Matching Agreement terms. TANF case records overall follow the HHS uniform-administrative-requirements retention floor — 3 years from submission of the final financial report (2 CFR 200.334, adopted for HHS awards by 2 CFR 300.1; 45 CFR part 75 was removed effective 2025-10-01, 89 FR 80055), TANF having no dedicated retention CFR analogous to SNAP’s 7 CFR 272.1(f) — and the Georgia state series: Georgia Archives, DHS retention schedule (agency 144), series 1973-0476 "Public Assistance Authorization Files", 3 years or until resolution of audit, whichever is longer — https://www.georgiaarchives.org/records/agencyprint/144 (checked 2026-09-18). The longest applicable floor governs: the state series matches the federal 3-year length and additionally runs until audit resolution, so the later-ending of the two windows governs the case records, and the 7-year AU-11 floor governs fti_audit_log. Archive moves and FTI-expiry purges are operator-driven (ADR-016 forward-only — no destructive migrations).

Indexes

  • idx_tanf_applications_application, idx_tanf_applications_household

  • idx_tanf_income_application

  • idx_fti_tax_data_application, idx_fti_tax_data_person

  • idx_ssa_match_results_application

  • tanf_time_limits_person_uq — the UNIQUE constraint’s index (the redundant idx_tanf_time_limits_person was dropped in 20261208000007)

  • idx_tanf_work_requirements_person; idx_tanf_work_req_sanctioned — (sanction_level, sanction_expires_at) WHERE sanction_level >= 1, the supervisor sanctions roll-up (#1233)

  • idx_tanf_work_activities_work_req — (work_requirement_id) (#1337)

  • idx_tanf_work_standard_bases_person_effective — (person_id, effective_date DESC, created_at DESC), the in-force order (#2193)

  • idx_tanf_determinations_application; idx_tanf_determinations_determined_at_id — (determined_at DESC, id DESC), the keyset list (#1195); idx_tanf_determinations_household_det_id — (household_id, determined_at DESC, id DESC) (#1244); tanf_determinations_operation_uq — unique (operation_id) WHERE operation_id IS NOT NULL, one determination per claimed operation (#3116)

  • idx_determination_snapshots_as_of — (as_of)

  • idx_redaction_keys_subject — (subject_kind, subject_id); uq_redaction_keys_live_subject — unique (subject_kind, subject_id) WHERE shredded_at IS NULL

  • idx_tanf_lump_sum_person; idx_tanf_supplemental_payments_payee, idx_tanf_supplemental_payments_on_behalf_of; idx_tanf_pr_application, idx_tanf_pr_person

  • idx_tanf_discrepancies_household; idx_tanf_discrepancies_status — (resolution_status) WHERE resolution_status = 'pending'

  • idx_fti_audit_accessed_at, idx_fti_audit_accessed_by, idx_fti_audit_purpose_code; idx_fti_audit_created_at — the ADR-014 §9 in-lock predecessor lookup and verify walk (#1197); idx_fti_audit_event_hash, idx_fti_audit_archive_event_hash

  • overpayment_claims_status; overpayment_claims_keyset — (created_at DESC, id DESC); overpayment_claims_assessment_once — unique (assessment_id) WHERE assessment_id IS NOT NULL; overpayment_claims_source_event_once — unique (source_event_id) WHERE source_event_id IS NOT NULL; overpayment_claims_by_appeal — (appeal_id) WHERE appeal_id IS NOT NULL

  • repayment_plans_by_claim, recoupment_ledger_by_claim, claim_adjustments_by_claim

  • chain-v2: chain_epochs_one_open_v2 — unique (chain_instance_id) WHERE state IN ('installing','active'); fti_audit_log_v2_shard_seq_idx — (chain_instance_id, chain_epoch, shard_id, chain_seq); fti_audit_log_v2_accessed_at_idx; fti_audit_log_archive_v2_id_uq

  • event_outbox_*, event_inbox_unprocessed_idx, idx_event_inbox_parked — the generated partial indexes, described on the data-models index

Migration files

  • 20260325000000_create_tanf_tables.sql — tanf_applications, tanf_income, fti_tax_data, ssa_match_results, tanf_time_limits, tanf_work_requirements, tanf_work_activities, tanf_determinations, and tanf_household_snapshots (since dropped)

  • 20260325000001_create_fti_audit_log.sql — fti_audit_log + fti_audit_log_archive

  • 20260407000000_add_lump_sum_grg_personal_resp.sql — tanf_lump_sum_periods, tanf_grg_payments, tanf_personal_responsibilities

  • 20260422000000_add_denial_reason_code.sql — tanf_determinations.denial_reason_code

  • 20260425000000_add_fti_audit_hash_chain.sql — previous_hash / event_hash on the audit log and archive (ADR-014)

  • 20260508000000_create_event_outbox.sql — generated (index page)

  • 20260510000000_drop_federal_time_limit_default.sql — drops the DEFAULT 60 on tanf_time_limits.federal_limit_months (#441)

  • 20260510000001_create_overpayments.sql — overpayment_claims, repayment_plans, recoupment_ledger

  • 20260511000000_add_sanction_lifecycle.sql — sanction_imposed_at / sanction_expires_at / sanction_reason (#416)

  • 20260512000000_create_tanf_discrepancies.sql — tanf_discrepancies

  • 20260516000000_create_event_inbox.sql — generated (index page)

  • 20260518004851_event_outbox_lease_columns.sql — generated (index page)

  • 20260603120000_fti_audit_append_only_guard.sql — the statement-level append-only guard on the audit log and archive (#624)

  • 20260623000000_create_determination_snapshots.sql — tanf_determinations.snapshot_hash, determination_snapshots, its append-only trigger (#685, ADR-028)

  • 20260624140000_create_redaction_keys.sql — redaction_keys and its one-way guard triggers (ADR-036)

  • 20260630000000_drop_tanf_household_snapshots.sql — drops tanf_household_snapshots (#883)

  • 20260713000000_event_outbox_hold.sql — generated (index page)

  • 20260720000000_event_inbox_parking.sql — generated (index page)

  • 20260727000000_claim_provenance_adjustments.sql — claim provenance columns, the void path, claim_adjustments (#1104; canonical copy in crates/canopy-overpayments/migrations/)

  • 20260803000000_event_outbox_v7_pk_default.sql — generated (index page)

  • 20260807000000_overpayments_v7_pk_defaults.sql — drops the id defaults on the four overpayment tables (#1173)

  • 20260810000000_snapshot_hash_not_null.sql — sets snapshot_hash NOT NULL (#911)

  • 20260811000000_fti_audit_created_at_idx.sql — idx_fti_audit_created_at (#1197)

  • 20260815000000_event_outbox_claim_order_idx.sql — generated (index page)

  • 20260816000000_sanctions_rollup_idx.sql — idx_tanf_work_req_sanctioned (#1233)

  • 20260817000000_tanf_determinations_list_keyset_idx.sql — idx_tanf_determinations_determined_at_id (#1195)

  • 20260902000000_overpayment_claims_keyset_idx.sql — overpayment_claims_keyset (#1222)

  • 20260904000000_event_outbox_parking.sql — generated (index page)

  • 20260910000000_chain_v2_substrate.sql — the dormant chain-v2 fti substrate: roles, seven tables, three views, five functions (#1246)

  • 20261010000000_fti_preimage_id.sql — the preimage views gain id; fti_audit_log_archive_v2_id_uq; SELECT grant to canopy_chain_verify (#1205, #1206)

  • 20261130000000_tanf_determinations_household_idx.sql — idx_tanf_determinations_household_det_id (#1244)

  • 20261208000001_redaction_keys_live_subject_uq.sql — tombstones superseded live DEKs, then uq_redaction_keys_live_subject (#1458)

  • 20261208000005_work_activities_work_req_idx.sql — idx_tanf_work_activities_work_req (#1337)

  • 20261208000006_tanf_time_limits_person_uq.sql — tanf_time_limits_person_uq (#1330)

  • 20261208000007_drop_redundant_time_limits_person_idx.sql — drops idx_tanf_time_limits_person (#1330)

  • 20261224000000_redaction_keys_rewrap_guard.sql — canopy_redaction_keys_one_way_guard() admits the KEK rewrap (wrapped_dek replaced + kek_version strictly increased on a live row) beside the shred (#2113)

  • 20261225000000_tanf_work_activities_checks.sql — the validated tanf_work_activities_hours_per_week_range and tanf_work_activities_span_order CHECKs (#2193)

  • 20261225000001_tanf_work_standard_bases.sql — tanf_work_standard_bases, its CHECK and idx_tanf_work_standard_bases_person_effective (#2193)

  • 20270111000001_determination_status_check.sql — deletes any determination outside approved / denied / sanctioned with its snapshot, inside the canopy.snapshot_maintenance window, then adds tanf_determinations_status_verdict (#628)

  • 20270113000001_overpayment_discovered_by_actor.sql — the canonical stamp (crates/canopy-overpayments/migrations/canonical_discovered_by_actor.sql): overpayment_claims.discovered_by becomes TEXT + discovered_by_service; a guard aborts naming cargo xtask dev restart on any existing claim (none states a provable actor of a known class: NULL, nil, or a body-supplied subject); then overpayment_claims_discovered_by_one_actor (= 1, VALID) (#1008)

  • 20270117000000_redaction_keys_created_at_no_default.sql — drops the redaction_keys.created_at default: the shared canopy-db store binds created_at (the determination’s decision instant) and shredded_at (the redaction’s) from its caller, so an insert that names no created_at now fails instead of taking the database clock (#2475)

  • 20270118000000_overpayment_stamps_no_default.sql — the canonical stamp (crates/canopy-overpayments/migrations/canonical_stamps_no_default.sql): drops the now() defaults of overpayment_claims.created_at / updated_at, repayment_plans.created_at / updated_at, recoupment_ledger.occurred_at and claim_adjustments.created_at — the shared store binds every stamp from the writing request’s decision clock, so an insert that names no stamp now fails instead of taking the database clock (#2576)

  • 20270411000000_overpayment_claim_period.sql — the canonical stamp (crates/canopy-overpayments/migrations/canonical_claim_period.sql): overpayment_claims.period_first_month / period_last_month, nullable, with overpayment_claims_period_whole_months (#3567)

  • 20270204000000_fti_tax_data_l7_items.sql — #2236: fti_tax_data drops filing_status and adjusted_gross_income, which no IRC 6103(l)(7) clause discloses to a TANF agency

  • 20270209000000_decision_stamps_no_default.sql — drops the defaults of every stamp the service’s production INSERTs bind themselves: tanf_applications.received_at / created_at / updated_at, tanf_income.created_at, tanf_work_requirements.created_at / updated_at, tanf_work_activities.created_at, tanf_determinations.determined_at / created_at, determination_snapshots.created_at and tanf_work_standard_bases.created_at. An insert that names no stamp now fails instead of taking the database clock, and cargo xtask migrations-lint refuses a new clock default (#2589)

  • 20270215000000_determination_verdicts.sql — the determination_verdicts table and its verdict CHECK (#2322)

  • 20270218000000_tanf_determination_au_members.sql — tanf_determination_au_members and tanf_determination_au_parents, their CHECKs and keys (#3048)

  • 20270220000000_tanf_determinations_operation.sql — tanf_determinations.operation_id and signed_payload, tanf_determinations_operation_signed_ck and tanf_determinations_operation_uq (#3116)

  • 20270324000000_determination_status_withheld.sql — ADR-052: replaces tanf_determinations_status_verdict so the list also admits withheld; no row is rewritten.

  • 20270325000000_supplemental_payments.sql — renames tanf_grg_payments to tanf_supplemental_payments, its columns grandparent_person_id, grandchild_person_id and au_size to payee_person_id, on_behalf_of_person_id and unit_size, and its two indexes (#3508); no row is rewritten.

  • 20260905000000_create_scheduler_runs.sql — scheduler_runs, a byte-identical copy of crates/canopy-db/scheduler-migrations/ (#3518)

  • 20270326000000_counted_months.sql — renames tanf_time_limits.months_used to opening_months and drops last_counted_month; creates tanf_counted_months, tanf_count_exclusions (with idx_tanf_count_exclusions_person) and tanf_accrual_months; adds tanf_determinations.federally_funded (#3518)

  • 20270327000000_au_member_counted_toward.sql — tanf_determination_au_members.counted_toward (#3519)

  • 20270328000000_drop_state_limit_months.sql — drops tanf_time_limits.state_limit_months (#3520)

The eight generated files are byte-identical copies of crates/canopy-mq/outbox-migrations/ (the data-models index). All migrations are forward-only per ADR-016.

Edit this page · default