Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

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

Abierto
#1,245 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
38/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
python

Línea de trabajo

Read tools/build_us_chronicle_feed.py and us_runtime/fiscal_targets.py, then review the listed tools/us_acs_local_cd_surface.py behavior and the impact analysis at ~/PolicyEngine/_reviews/chronicle-ht2-state-schedule-a/microcosm-impact.md. Re-pin the Chronicle feed and inspect the 408 added facts, target bindings, district rebasing, and updated surface documentation and goldens; done means the target-surface changes are explicit in the re-pin PR.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
Python
Estrellas
0
Forks
5
Merge medio
1 d 6 h
PR fusionados (30 d)
146

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de PolicyEngine/microcosm

Todos los issues de PolicyEngine/microcosm

Issues similares

Más issues de Python

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.