Skip to content

Re-pinning Chronicle past chronicle#350 adds state charitable targets #1245

Open

Description

@MaxGhenis

PolicyEngine/chronicle#350 adds eight IRS Historic Table 2 measures to every state row of soi-historic-table-2-state-broad-2022, for TY2022: 408 facts.

Columns Line Measure ids
N00700/A00700 Schedule 1 line 1 taxable_state_local_income_tax_refunds_*
N18300/A18300 Schedule A line 7 taxes_paid_deduction_*
N19300/A19300 line 8a mortgage_interest_paid_*
N19700/A19700 line 14 charitable_*

It also moves the congressional-district charitable_* concept to Table 2.1's irs_soi.contributions_deduction. measure_id is unchanged.

What happens on the next re-pin, as read at microcosm 7253402fb:

  • Feed. tools/build_us_chronicle_feed.py selects record sets and periods, not measures. All 408 facts therefore enter the rebuilt feed. us/chronicle_feed.json rows and facts_sha256 move, and so does target_parity_feed_families.json: HT2 6,674 → 7,082 if nothing else changes.
  • charitable_amount / charitable_returns. These map to charitable_deduction (itemizers only) in us_runtime/fiscal_targets.py:151,234. They become state targets with role soi_fiscal_distribution, which enters state, full and state_cd and survives national_state. In state_cd, tools/us_acs_local_cd_surface.py replaces the charitable sibling bridges (itemized_deductions_amount, return_count) with these HT2 state parents. District blocks are then rebased to them, subject to the 1.25× band.
  • docs/us-acs-local-soi-target-surface.md. It lists charitable_* as HT2 gaps, so that section and the surface goldens need updating.
  • The other six ids. mortgage_interest_paid_* (unmapped on purpose, fiscal_targets.py:176), taxes_paid_deduction_* and taxable_state_local_income_tax_refunds_* map to nothing. They bind no target.

This is a target-surface change. Review it in the re-pin PR rather than taking it in silently. Analysis: ~/PolicyEngine/_reviews/chronicle-ht2-state-schedule-a/microcosm-impact.md.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions