Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions changelog.d/us-filing-season-comparison.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Compare IRS filing-season facts by processing week and adjusted gross income, and exclude partial-season returns from annual calibration apart from the previously reviewed TY2024 week-47 EITC series.

County controls now share each state's target across counties using the latest complete SOI block through the calibration year. District builds can select the 118th-to-119th Congress block-population crosswalk for the TY2023 district file.
16 changes: 8 additions & 8 deletions docs/evidence/spec-engine/us-f0-coverage.json
Original file line number Diff line number Diff line change
Expand Up @@ -1642,13 +1642,13 @@
"compiler_ir.node_slices"
],
"expected": {
"map_sha256": "d756dc67535c04788e605bedb4cd6721cf715e5f5ce4be73d9b27420a61b3d50",
"protocol_sha256": "2c57cbfb9dd0f132f9b5751eb8bc303f4b7e37430cd5e0b155aac0b0b8eaa42e"
"map_sha256": "31143c71c7bd1d0eb72837fd28d2796cbebf0c806fa929f728910c02fe3ebfe6",
"protocol_sha256": "0c412a27d341ad14fb9f80a48a64e1bbc0a593ccf1dd884d91d8b3ce69809079"
},
"failures": [],
"observed": {
"map_sha256": "d756dc67535c04788e605bedb4cd6721cf715e5f5ce4be73d9b27420a61b3d50",
"protocol_sha256": "2c57cbfb9dd0f132f9b5751eb8bc303f4b7e37430cd5e0b155aac0b0b8eaa42e"
"map_sha256": "31143c71c7bd1d0eb72837fd28d2796cbebf0c806fa929f728910c02fe3ebfe6",
"protocol_sha256": "0c412a27d341ad14fb9f80a48a64e1bbc0a593ccf1dd884d91d8b3ce69809079"
},
"status": "covered"
},
Expand All @@ -1663,7 +1663,7 @@
"compiler_ir.seed_stream_map"
],
"expected": {
"implementation_sha256": "2c57cbfb9dd0f132f9b5751eb8bc303f4b7e37430cd5e0b155aac0b0b8eaa42e",
"implementation_sha256": "0c412a27d341ad14fb9f80a48a64e1bbc0a593ccf1dd884d91d8b3ce69809079",
"protocol": "legacy-v1",
"streams": [
"build_model",
Expand All @@ -1684,7 +1684,7 @@
},
"failures": [],
"observed": {
"implementation_sha256": "2c57cbfb9dd0f132f9b5751eb8bc303f4b7e37430cd5e0b155aac0b0b8eaa42e",
"implementation_sha256": "0c412a27d341ad14fb9f80a48a64e1bbc0a593ccf1dd884d91d8b3ce69809079",
"protocol": "legacy-v1",
"streams": [
"build_model",
Expand Down Expand Up @@ -2585,7 +2585,7 @@
"country": "us",
"schema_id": "country_spec",
"schema_version": 1,
"spec_sha256": "0088d3f69666b09e28b94bbf8b1b2f07ebf0b8a32cec6d0a8358b568a7f35ac6"
"spec_sha256": "d6e9aec3119356e57492725c6412fe5ce511a277790a03ed705d91a54659f799"
}
},
"report_schema_version": 3,
Expand All @@ -2595,7 +2595,7 @@
"country": "us",
"schema_id": "country_spec",
"schema_version": 1,
"spec_sha256": "0088d3f69666b09e28b94bbf8b1b2f07ebf0b8a32cec6d0a8358b568a7f35ac6"
"spec_sha256": "d6e9aec3119356e57492725c6412fe5ce511a277790a03ed705d91a54659f799"
},
"status": "pass"
}
37 changes: 37 additions & 0 deletions docs/us-irs-filing-season.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Compare IRS filing seasons

The IRS workbook counts current-year individual returns as the IRS first processes them through a stated cutoff. Chronicle records the tax year, processing week, cutoff, measure, units and adjusted gross income band. Microcosm compares the same processing week across tax years. It calculates the itemization rate by dividing itemizing returns by all processed returns in the same income band and year.

## Reproduce the 2024–2025 comparison

Run these commands from Chronicle commit `25e9a69bfd3228a7f7b66cb12eb8965f57b5ff7f`. Each bundle reads the two official workbooks for its tax year. Inspect each bundle's validation report before combining the rows. [Chronicle source commit](https://github.com/PolicyEngine/chronicle/commit/25e9a69bfd3228a7f7b66cb12eb8965f57b5ff7f)

```sh
for year in 2024 2025; do
uv run chronicle build-bundle --year "$year" \
--source "soi-filing-season-week21-$year" \
--source "soi-filing-season-week30-$year" \
--out "filing-$year" --slim || exit 1
done
cat filing-2024/consumer_facts.jsonl filing-2025/consumer_facts.jsonl > filing.jsonl
shasum -a 256 filing-2024/consumer_facts.jsonl filing-2025/consumer_facts.jsonl filing.jsonl
```

The following SHA-256 digests identify this comparison's input. Each year contributes 3,944 observations.

| File | SHA-256 |
| --- | --- |
| 2024 fact rows | `9c1888f34a0882c61988a4b908f651157200f4100e88e0f8b8008c86938569c9` |
| 2025 fact rows | `a5bccb16eb65d708490dec7be3259336989e91ba279565d79bc024ae19a5acce` |
| Combined rows in tax-year order | `aec22991b0b4ff64a67b980f52f3c1ab77cfe3b8a16db0fd976176b01e165d8c` |

Run the report from Microcosm with the combined file's path.

```sh
uv run python tools/report_us_filing_season.py /path/to/filing.jsonl \
--first-year 2024 --last-year 2025 --week 30 --out filing-week30.json
```

For week 30, the IRS processed 12,684,510 itemizing returns through July 24, 2025, for tax year 2024 and 16,223,991 through July 30, 2026, for tax year 2025. The report records the source digest and both cutoff dates. A measure that appears in only one year's observations retains a missing comparison value. [IRS filing-season statistics](https://www.irs.gov/statistics/filing-season-statistics)

The annual fiscal compiler excludes processing-week observations from annual controls and records their source identifiers in the exclusion receipt. The four longstanding TY2024 week-47 earned income tax credit series keep their existing treatment.
66 changes: 66 additions & 0 deletions experiments/us-irs-2025-target-registry/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# US annual IRS target registry experiment

This experiment builds fiscal target registries for tax years 2024 and 2025. Microcosm selects source observations available for each target period and applies its standard aging factors. The experiment keeps the tax year on every IRS observation. Registry compilation does not fit household weights.

| Target year | Base targets | Candidate targets | Identical non-IRS controls | Candidate version |
| --- | ---: | ---: | ---: | --- |
| 2024 | 33,249 | 32,411 | 1,482 | `30de5188bba9` |
| 2025 | 33,219 | 32,381 | 1,484 | `d521a3ce9bab` |

The 2025 candidate has 976 fewer congressional-district-source controls, 102 more state-by-AGI controls and 36 more broad state controls. The legacy source mapped IRS columns N19300 and A19300 to a general interest deduction in all 488 geographies. The 2023 package identifies these columns as home mortgage interest paid to financial institutions. It also identifies interest paid to individuals, deductible points, and investment interest. Microcosm has no selected controls for those eight distinct counts and amounts. Both registries cover the same 436 district codes, 51 states/DC and US total.

The comparison uses the release crosswalk for the 2022 district source and the 118th-to-119th Congress crosswalk for the 2023 source. The county adapter separately yields 6,286 county controls for return counts and adjusted gross income. It uses 2023 IRS reporting areas, the 2024 Census PEP county roster and the candidate’s state totals. Kalawao and Maui share one published IRS cell.

## Inputs

Use the US consumer feed from Chronicle `41b2fb2b` and, for the optional county controls, the county feed from `3e9d3a0`. The [feed reconstruction guide](../../docs/us-chronicle-feed-repin.md) describes these files. The refresh uses four additional Chronicle consumer-contract JSONL files. [Source pins](sources.json) record their SHA-256 digests, IRS files, tax years, row counts and publisher URLs.

| Argument | What the file contains |
| --- | --- |
| `--annual` | Seven 2023 candidate packages in this order: US Historic Table 2, state AGI, state broad totals, state EITC, US totals from the state workbook, Roth IRA contributions and traditional IRA contributions. The integration reconciles [Chronicle PR 295](https://github.com/PolicyEngine/chronicle/pull/295) and [PR 296](https://github.com/PolicyEngine/chronicle/pull/296) to the current source contracts. It emits 6,274 rows. |
| `--geographic` | The 2023 bundle for `soi-county-2023`, `soi-congressional-district-2023` and `soi-w2-statistics`, in that order. It emits 36,113 rows. |
| `--w2-2021`, `--w2-2022` | The `soi-w2-statistics` source suite for each tax year. Each emits five rows. |

The [annual source reconstruction](annual-source/rebuild.py) reads published Git objects from a Chronicle clone. It stages the seven packages in a temporary directory, reconciles their schemas with the original feed's source contracts, applies Chronicle's parsers and verifies the resulting feed digest. From the Microcosm repository root, set `CHRONICLE` to a local clone of [PolicyEngine/chronicle](https://github.com/PolicyEngine/chronicle) and `INPUTS` to a directory for the rebuilt files. Fetch the immutable commits listed below. The Chronicle project supplies the Python dependencies.

```sh
git -C "$CHRONICLE" fetch origin \
c020783da1621b032467f36bf688d597cdd5604c \
f55ae34915e52601f25a039e7888b9d027f5b5c4 \
3185d8762eb6dcda8d588b729ecd5aa6d7f84ec1 \
25e9a69bfd3228a7f7b66cb12eb8965f57b5ff7f
uv run --project "$CHRONICLE" python \
experiments/us-irs-2025-target-registry/annual-source/rebuild.py \
--chronicle "$CHRONICLE" --out "$INPUTS/annual-candidate-feed.jsonl"
```

From the Chronicle source checkout at the [geographic and W-2 commit](https://github.com/PolicyEngine/chronicle/commit/25e9a69bfd3228a7f7b66cb12eb8965f57b5ff7f), run:

```sh
uv run chronicle build-bundle --year 2023 --slim \
--source soi-county-2023 --source soi-congressional-district-2023 \
--source soi-w2-statistics --out "$INPUTS/geo-w2-2023"
for year in 2021 2022; do
uv run chronicle build-suite soi-w2-statistics --year "$year" \
--out "$INPUTS/w2-suite-$year"
done
```

From the Microcosm repository root, set `BASE`, `COUNTIES` and `INPUTS` to the two pinned feeds and the supplement directory. Use a new output directory.

```sh
uv run python experiments/us-irs-2025-target-registry/compile.py \
--base "$BASE" --annual "$INPUTS/annual-candidate-feed.jsonl" \
--geographic "$INPUTS/geo-w2-2023/consumer_facts.jsonl" \
--w2-2021 "$INPUTS/w2-suite-2021/consumer_facts.jsonl" \
--w2-2022 "$INPUTS/w2-suite-2022/consumer_facts.jsonl" \
--county-universe "$COUNTIES" --year 2025 --out "$INPUTS/annual-registry-2025"
```

`registry.jsonl.gz` contains the native `TargetSpec.to_dict()` records. `receipt.json` contains the registry version, counts by record set, source digests, retired target mappings and support exclusions. With the county input, the run also writes `county-registry.jsonl.gz` and the state reconciliation blocks.

## Source selection

The candidate removes 26,893 rows whose 2023 labels point to 2020 W-2 or 2022 district, state and IRA files. It checks that the new source reproduces all 1,020 existing 2023 state-by-AGI observations. For every state and DC, the 2023 source publishes separate $500,000–$1 million and $1 million-and-over taxable-interest counts and amounts. The compiler must select both new groups before the experiment will retire the overlapping 2022 $500,000-and-over control.

Six 2023 observations cover interest amounts and counts for the under-$1 AGI group in Iowa, North Dakota and Vermont. Their predecessors carry reviewed support exclusions. The receipt records their values and reasons, and the experiment holds them out. Native selection maps one 2023 W-2 amount, Box 7 Social Security tips, to a target. It does not currently select the four IRA observations or the four other W-2 measures. The two previously admitted 2024 week-47 EITC controls remain in the base and candidate. The new 2024 and 2025 partial-season releases stay outside this annual comparison.
Loading
Loading