Repository navigation
Add later editions of the US feed's sources (chronicle#449) - #451
Conversation
…ITC facts Three packages mirror their TY2022 twins on 23in55cmcsv.csv, with literal TY2023 labels: soi-historic-table-2-2023 (605 facts), soi-historic-table-2-state-broad-2023 (2,703) and soi-historic-table-2-state-eitc-2023 (510). The TY2023 file inserts two columns at DP, so every column from DP on moves two places right; each measure is remapped by its CSV variable and guards that header. The TY2023 state AGI package also gains the TY2022 package's taxable interest measures (N00300, A00300; 1,020 facts), which chronicle#291 left for when the TY2023 national table was packaged. Tests read the publisher CSV with the standard library: every fact is one cell, the declarations equal the TY2022 twins' up to year labels and column moves, and the published accounting identities hold on the facts (AGI bands and state totals add up, EITC child counts partition the total). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
openpyxl fills every position of a merged range with a MergedCell placeholder. The IRS's TY2023 23in54us.xlsx merges its footnote row A179:XFD179, so sheet.max_column became 16,384 and xlsx_used_range would have built about 70 million empty cells (a probe hit 17.9 GB). Placeholders of a merged range that runs to the worksheet edge (column XFD or the last row) no longer widen the bounds; the anchor cell and every other cell still do, and sheets without such a range keep openpyxl's bounds exactly. Scanned every committed workbook (212 files, 2,014 sheets): only 23in54us.xlsx changes, from 4264 x 16384 to 4264 x 143, which is the sheet's own <dimension> (A1:EM4264). A broader rule that ignored every merged placeholder would have moved 309 sheets and was rejected. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
soi-state-2023 (23in54us.xlsx, 4 facts) and
soi-ira-{traditional,roth}-contributions-2023 (23in05ira.xlsx and
23in06ira.xlsx from the June 2026 IRA study, 2 facts each) mirror their
TY2022 twins with literal TY2023 labels, so the ty2023 ids now carry
TY2023 data. They follow each workbook's moved layout: the state workbook's
geography label (A8 -> B3), column header (row 3 -> 4) and EITC block
(two rows down), and the IRA tables' Estimates sheet with All taxpayers
on row 7. The raw files were registered with fetch-artifact --upload-r2 and
hash-verified in ledger-raw and chronicle-raw.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…match Addresses the #296 judge review: the max_row edge branch had no test, and a spot-value check could have passed without checking anything. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…023 HT2 The TY2022 national and state broad packages bind qbi_claims/qbi_amount to N03270/A03270, which both IRS documentation guides define as the self-employment health insurance deduction. The TY2023 packages now read N04475/A04475 (columns CT/CU), the qualified business income deduction: US all returns 26,391,030 returns and $213,733,168,000 instead of 3,578,530 and $31,114,668,000. Tests now also check each measure against the variable the documentation names (not only against the variable its package names), and the mirror test states the QBI correction explicitly. Found by the #295 judge review. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…exactly Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nce per record set
Main has moved 459 commits since this branch's base, among them #291 (this branch's old base), #304, #345, #350, #376 and #448. Conflicts: - docs/pe-calibration-targets.md: main's package list, plus the three TY2023 Historic Table 2 packages after their TY2022 twins. - tests/test_chronicle_bundle.py: main's version. A later commit re-pins the counts for this branch's packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Main changed the TY2022 twins after this PR's judge reviews. The TY2023 packages now mirror them again: - #304: net_capital_gains_* take the Form 1040 line 7 label and concept in the national and state broad packages. - #345: the TY2022 twins read N04475/A04475, so the test's QBI shim goes. - #350: the state broad package adds its twin's eight measures (N00700, A00700, N18300, A18300, N19300, A19300, N19700, A19700). Their columns come before the DP insertion, so the letters are the same in 23in55cmcsv.csv, and 23incmdocguide defines them in the same words as 22incmdocguide. State broad: 2,703 -> 3,111 facts. - #376: the national all-returns row takes the register's label. The label register lists the values two packages now emit: the 51 geography values of the state EITC packages and state=all of the state broad packages, each with the one wording the packages use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Measured with the IRS SOI packages at bundle year 2023, against main: +5,246 TY2023 tax-unit facts (605 national, 3,111 state broad, 510 state EITC, 1,020 state taxable interest), three more packages, and 90 more semantic duplicate keys, all the national package's US rows against Publication 1304 Tables 1.4 (70), 1.1 (18) and 1.2 (2). No new geography, period or source-table key and no new warning. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch's base, #292 (artifact-year-restamp-guard), merged to main on 2026-09-28, and main has moved since. Conflicts: - chronicle/sources/cells.py: both sides add a function after source_cells_from_xlsx. Keep both: this branch's _xlsx_used_range_bounds and main's _source_cells_from_xlsx_read_only. - docs/pe-calibration-targets.md: main's package list, plus soi-state-2023 after soi-state-2022. - tests/test_chronicle_bundle.py: main's version. A later commit re-pins the counts for this branch's packages. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…te and IRA data Measured with the IRS SOI packages at bundle year 2023, against main: +8 TY2023 tax-unit facts at the US (the state-data file's four US totals and IRA Tables 5 and 6), three more packages, and no new geography, period or source-table key, duplicate key or warning. soi-state-2022 and soi-state-2023 both emit irs_soi.state_table_measure=all_returns and us.tax.earned_income_credit_qualifying_children=three_or_more_qualifying_children, so the label register lists them, each with the one wording both use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mment From the source-fidelity judge's nits on the update: - The state-total test now covers every state broad and state EITC measure. A measure the national package does not carry (the eight #350 measures and the four EITC child counts and amounts) is checked against the CSV's US row: amounts exactly, rounded counts within their rounding. - Publication 1304's tables share semantic keys with the national package but publish different values; the pin comment now says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the branch of #295 as updated for merge: Max Ghenis's three commits, main merged in, main's TY2022 changes carried to the TY2023 packages, the re-pinned bundle and the judge nits (chronicle#449). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…the US vintage branch Brings in the branch of #296 as updated for merge: Max Ghenis's three commits, main merged in, the re-pinned bundle and two register labels (chronicle#449). Conflicts with #295, which re-pinned the same lines: - tests/test_chronicle_bundle.py: both comments kept; each count is main's plus both changes (facts 2,342,812 + 5,246 + 8 = 2,348,066; irs_soi 80,027; US 2,958; tax_unit 81,332). Both branches had moved source_package_count from 517 to 520 on the same lines, which git merged without a conflict; the combined count is 523. - docs/pe-calibration-targets.md: #295's list plus soi-state-2023. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chronicle judge record: #295's update
|
| Judge | Range | Verdict | Items |
|---|---|---|---|
ledger-source-fidelity |
f55ae349..6444f5d3 |
PASS with notes | 0 must-fix, 0 should-fix, 2 nits |
ledger-boundary |
f55ae349..6444f5d3 |
PASS | 0 must-fix, 0 should-fix, 0 nits |
ledger-contract: n/a. The update changes no schema, identity construction or consumer-contract code.
What the judges checked:
- Fidelity: built the four TY2023 packages and compared each fact with its cell of
23in55cmcsv.csv, read with the standard library: 6,266 of 6,266 equal cell x scale (605 national, 3,111 state broad, 510 state EITC, 2,040 state AGI), one cell per fact. The 408 new facts are 8 columns x 51 states (AG, AH, CD, CE, CH, CI, CP, CQ). The eight new measures and the capital gain relabel match the TY2023 guide extract (variables, wording, form lines) and main's TY2022 twins. A bundle of the IRS SOI packages with and without the three new packages reproduces every pin: +5,246 facts, +90 semantic duplicate keys (all national US rows against Publication 1304 Tables 1.4, 1.1 and 1.2), US +605, CA +91, no new geography, period or source-table key and no new warning. No package outsideirs_soiuses any of the 63 concepts the new facts carry. - Boundary: each TY2023 package differs from its TY2022 twin only in year tokens, ids, period and the column letters after DP; every fact is one cell with assertion
observation, and builds at 2022, 2024 and 2026 give the same TY2023 facts. The register gains 52 labels and changes none; the consumer rows of the two TY2022 twins (3,621 rows at build years 2022 and 2023) and of four packages that use the same codes under other dimensions (934 rows) are the same with main's and this branch's register, and a deliberately altered register moves only label fields, never a key. The merge took main's bundle test unchanged, and the re-pin changes only numbers and adds comments. No test, comment, doc or changelog line adds consumer logic. Paths outsideledger-source-ingestor's allowed paths:changelog.d/449-soi-historic-table-2-ty2023.added.md,chronicle/dimension_values/canonical_labels.json(52 entries),chronicle/source_package.py,chronicle/targets/us_poverty.pyanddocs/pe-calibration-targets.md(the three aliases, as atf55ae349).
How the findings were answered (dcc6b03b):
- Fidelity nit: the pin comment said Publication 1304 publishes "the same totals". The keys match but the values differ in all 90 pairs; the comment now says so.
- Fidelity nit: no aggregate test covered the eight new state broad measures. The state-total test now checks every state broad and state EITC measure: a measure the national package does not carry (16 of them) against the CSV's US row.
dcc6b03b changes one test and one comment. The TY2023 test module passes on it (23 tests).
…nicle#449)
hhs-acf-liheap-fy2025-national-profile reads "Total Households Served by
State Programs" from the FY2025 National Profile (All States) PDF: 1 fact,
fiscal year 2025, vintage fiscal_year_2025. The number now sits on text
line 10, parser row 5 (line 12, row 3 in FY2024), and the row and its
guards move with it.
usda-snap-fy69-to-current-fy2025 reads FY25.xlsx in
snap-zip-fy69tocurrent-11.zip: 216 facts, fiscal year 2025, vintage
fiscal_year_2025. FY25.xlsx keeps FY24.xlsx's sheets, blocks, Total rows,
headers and footnote; only the title row names fiscal year 2025. Every
block the package reads holds all twelve months, October 2024 to
September 2025.
Each package copies its predecessor and changes only the package id,
label, record set ids and prefixes, period, vintage, artifact references
and extracted_at (and, for LIHEAP, the moved row). Both pin
artifact_year 2025, so a 2023 build reads them. The raw files came from
chronicle fetch-artifact without an upload; storage.r2 is a
content-addressed locator. The label register lists
usda_snap.summary_scope=national_total ("US Summary total"), which two
packages now emit. The coverage list and docs name the new packages next
to their predecessors.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_chronicle_449_hhs_ssa_usda.py reads the LIHEAP PDF with pypdf and FY25.xlsx with zipfile and openpyxl, finds each cell by its heading or by its geography block's name, and checks every fact against it, with the fact and cell counts, period, vintage, checksums and R2 locator. It checks that each package equals its predecessor apart from the edition fields and the moved PDF positions, that builds at 2023 and 2024 return the 2025 facts unchanged, and that each package passes agent acceptance. Add the changelog fragment. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nicle#449) Two new-vintage packages, each a copy of its 2025 twin with only the edition's ids, labels, period, artifact and moved positions changed: - cms-aca-oep-state-level-2026: the 2026 OEP State-Level Public Use File (2026-oep-state-level-public-use-file.zip, fetched 2026-11-26), 153 facts for 2026: Cnsmr, APTC_Cnsmr and APTC_Cnsmr_Avg_APTC for the 50 states and DC. The 2026 CSV inserts five agent and broker columns (AB_Cnsmr to AB_Auto_Renrl) at O and ends each line with an empty column, so APTC_Cnsmr moves from AJ to AO and APTC_Cnsmr_Avg_APTC from AK to AP; Cnsmr stays at H, and the header guards keep their names. The zip keeps its members in a folder, which archive_member and sheet_name now name. The 51 state rows are the 2025 rows in the same order; Illinois's platform is now SBE. - cms-medicare-trustees-report-2026-part-b-premium-income: Table III.C3 of the 2026 Medicare Trustees Report (fetched 2026-11-26), Part B premiums from enrollees, the actual amount for calendar year 2025. One fact, from PDF page 92, line 45 (document_numbers row 3440); the row header and the page, line, amount and context guards follow the new page. The manifests carry content-addressed storage.r2 locators; nothing was uploaded. The aliases, the us_poverty entries and the pe-calibration-targets entries sit next to the 2025 twins. The register script's BUILD_YEARS lists the OEP package at 2026, so the 2023 bundle skips it; the Trustees package pins its 2026 report and builds at 2023. The label register lists the three values the two Trustees packages now share (amount_basis=actual, medicare.part=part_b, medicare.financing_component=premiums_from_enrollees), each with the one wording both packages use. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_chronicle_449_cms.py reads the OEP CSV with the standard library and the Trustees PDF page with pypdf. It checks every fact against its cell, the fact counts, periods and vintages, the manifests, the moved OEP columns (only the five inserted agent and broker columns move them), and that each package file and its facts equal the 2025 twin's apart from the edition changes the module lists. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two packages from the Census Bureau's API responses, fetched 2026-11-26 with the 2023 package's query and an API key that source_url omits: - census-b01001-female-age-2024: 468 facts (the 50 states, DC and Puerto Rico, nine female age bands from 15 to 44) - census-b01001-female-age-2025: 468 facts Each copies census-b01001-female-age-2023 and changes only the package id, label, source table, raw directory and extracted_at; the record set ids, period and vintage are that package's year templates. The API's B01001 group gives the nine variables the same labels in 2023, 2024 and 2025, its groups list gives the universe "Total population" in all three years, and neither year's table-change list names B01001. The responses have the 2023 header and its 52 state rows in the same order, so no row moves. The label register lists age_15_to_17, age_18_to_19 and age_22_to_24, which the three packages now emit with one wording each, and the register script's BUILD_YEARS lists the two packages, which have no 2023 artifact. storage.r2 in the two manifests is a content-addressed locator; nothing was uploaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e#449) - census-pep-2025-national-age-sex reads nc-est2025-agesex-res.csv, fetched 2026-11-26 with chronicle fetch-artifact: the 2025 total and 18 five-year age groups, 19 facts. POPESTIMATE2025 is column I, where Vintage 2024's POPESTIMATE2024 is column H; the SEX and AGE rows are Vintage 2024's, in the same order. - census-pep-2025-state-age-sex reads sc-est2025-alldata6.csv through the manifest census-pep-2025-state-age-bands already uses (#417): each state's and DC's 18 five-year groups for 2025, 918 facts. POPESTIMATE2025 is column P; columns A to O and the selected rows are Vintage 2024's. Like the Vintage 2024 package since #417, it gives no state total. Each copies its Vintage 2024 package and changes only the ids, label, period, vintage, artifact and manifest references and extracted_at, the state geography_vintage (2025, as the age-bands package gives the same file), and the value column with its header, source column id and source concept. Both keep artifact_year, so both build at 2023. Neither gives a line and year another vintage gives (chronicle#397): the other packages are for 2024. The US poverty coverage list and docs/pe-calibration-targets.md list both packages next to their Vintage 2024 twins. storage.r2 in the national manifest is a content-addressed locator; nothing was uploaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
census-stc-individual-income-tax's manifest lists FY2025-Flat-File.txt, fetched 2026-11-26 with chronicle fetch-artifact, so the package builds item T40 for FY2025 at 2025: 46 facts (the US, 44 states and DC). The file has FY2024's header and item rows, T40 on line 21, and X in the same six state columns (AK, FL, NV, SD, TX, WY). The package file is unchanged; at 2023 it still builds FY2023. The manifest's vintage line now reads FY 2023-2025. storage.r2 for FY2025 is a content-addressed locator; nothing was uploaded. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
tests/test_chronicle_449_census.py checks every fact of the new packages, and of census-stc-individual-income-tax at 2025, against its publisher cell read with json or csv; the fact counts, periods and vintages; the manifests' hashes, sizes and R2 locators and that no source_url carries an API key; and that each new package equals its predecessor apart from the documented changes. The PEP packages are checked at 2025 and at 2023, the default bundle's year. tests/test_chronicle_source_package.py pins the new packages' counts beside their predecessors'. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nicle#449) bea-nipa-total-wages-salaries-2026-11-25 reads series A034RC for 2018, 2023 and 2024 from NipaDataA.txt as BEA served it on 2026-11-26 (Last-Modified 2026-11-25, the day of the GDP second estimate for the third quarter of 2026). It is bea-nipa-total-wages-salaries' YAML with a new package id, label, vintage (bea_nipa_annual_release_2026_11_25), extraction date and raw directory, and a release_2026_11_25 segment in its record set ids and record id prefixes. Concepts, units, scales, rows, guards, filters and constraints are unchanged, and no position moved: the selected rows are numbered in declaration order. The file keeps the header (%SeriesCode, Period, Value), one A034RC row per year and every year from 1929 to 2025. Against the 2026-04-30 file, A034RC differs for 2021 to 2025, the years BEA's 2026-09-30 annual update revised: 2023 moves from 11,732,410 to 11,735,097 and 2024 from 12,387,929 to 12,410,601 (millions of dollars). 2018 and every earlier year are unchanged. The manifest records the file as the predecessor's does, with its content-addressed R2 locator; nothing was uploaded. Both packages now emit bea_nipa.series_code A034RC (and the row id a034rc), worded "A034RC", so the label register lists them. The package is listed beside its predecessor in the NIPA family of the poverty source coverage and its doc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The test still looked for the note the manifest had before the upload. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The guide says every money amount is in thousands. Two checks show that A59664 is in dollars: divided by 1,000 it is 0.977 to 1.000 of Historic Table 2 TY2023's state value in all 51 states, and read in thousands the mean credit would be above the $7,430 maximum in all 2,566 rows with claims. The note now says so (a judge nit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The June S1M.b page prints no unit line, so the package's unit (billions of dollars) rests on the release PDF of 2026-06-11. A raw-only manifest now pins that PDF and the March B.101 page by sha256 in R2; chronicle verify-raw finds both. The package comment and the manifest note use one wording for the September coverage change and cite the publisher page. The changelog says which keys change (judge should-fix and nits). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two SSI Monthly Statistics packages share four age values, and the register showed them as "SSI federal payment recipients aged 18 to 64" and similar. CHOSEN_LABELS now show "All ages", "Age under 18", "Age 18 to 64" and "Age 65 or older". No key changes (judge nit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
No package reads the 2026-04-30 NIPA file or the 2026-04-09 SAINC.zip since the in-place update, so their manifests say registration_kind: raw_only. The BEA changelog says the in-place facts' aggregate, legacy and release keys change with the file (judge nits). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The spec id does not change, but the facts' record set spec hash does, because the spec carries the period type (judge nit). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
month:2025-12 is already a period key at bundle year 2023, so SSI December 2025 adds facts to it but no new key. The comments now credit the TY2023 district record sets to chronicle#448 and say that the district file also joins 12 keys Historic Table 2 and Publication 1304 already share (judge must-fix and nits). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chronicle judge record: part B (
|
| Judge | Scope | Verdict | Items |
|---|---|---|---|
ledger-source-fidelity |
#444's seven IRS SOI packages and the two TY2023 district commits | PASS with notes | 0 must-fix, 0 should-fix, 6 nits |
ledger-source-fidelity |
the in-place BEA, SNAP and Z.1 packages; CMS 2025; SSI December 2025; JCT; labels | PASS with notes | 0 must-fix, 1 should-fix (and 1 follow-up), 5 nits |
ledger-boundary |
the whole range | PASS with notes | 2 must-fix (test and pin errors, not boundary breaches), 2 should-fix, 7 nits |
ledger-contract: n/a. No schema, identity construction or consumer-contract code changes.
What the judges checked:
- Fidelity, IRS SOI: their own csv, openpyxl and zipfile readers found each cell by its own key. 73,815 facts, 0 mismatches: district 59,626, county 6,286, filing seasons 7,888, W-2 15 (TY2021 to TY2023). Planted errors and wrong-week reads were all flagged. The TY2023 guide's 147 variables equal the committed transcription. The guide names the 118th Congress, and the district counts per state equal the 118th Congress apportionment; TY2023 and TY2022 share no district GEOID and no fact key.
A59660equals the mixed sum in all 4,801 rows, and no replacement total exists. Two checks showA59664is in dollars. - Fidelity, editions: 14,931 comparisons, 0 mismatches (BEA 13,405 over every year each package builds, SNAP 1,080, CMS 408, SSI 24, JCT 11, Z.1 3). Leaf-level YAML diffs: each in-place package changes only edition fields, and the deleted dated BEA packages differed from the kept ones only in ids and label. Old files against new: values differ exactly where the publishers revised (NIPA 2021 to 2025, SAINC5N 2009 to 2025, 495 SNAP numbers). The CMS dataset's 2016 to 2023 rows equal the report package's values.
- Boundary: no reconciliation, aging, imputation, period alignment, activation or solver logic. Every new or changed measure reads one source column. Every fact keeps its publisher period at build years 2021 to 2026. The in-place model holds: no second edition stays beside a package. The 3,454 new semantic duplicate keys pair TY2023 district rows with other SOI publications (Historic Table 2, Publication 1304, the state data), not editions of one series, and Chronicle keeps every row. The register adds 3,680 values, drops 167 BEA values that only the two BEA editions shared, and changes no key.
How the findings were answered (commits after 46bc9b81):
- Boundary must-fix 1 (
period_countpinned at 620):month:2025-12is already a key at 2023, so SSI December 2025 adds facts to it, not a key. Back to 619 incabc7239. - Boundary must-fix 2 (the Z.1 manifest test still checked the note from before the R2 upload): fixed in
f9b2adc2. - Fidelity should-fix (the Z.1 unit rests on a release PDF that the repo does not register): a raw-only manifest now pins the PDF and the March B.101 page by sha256;
chronicle verify-rawfinds both in R2 (f0b24306). - Boundary should-fix 1 (the Z.1 fact's source series and observed measure keys change with the table name): the changelog and the PR's consumer note say so (
f0b24306). - Boundary should-fix 2 (
jct-tax-expenditures-2024's charitable deduction is a sum of three JCT rows): there before this range, which keeps it unchanged. Left for the maintainer, with the JCX-45-25 package. - Nits answered: the evidence that
A59664is in dollars (2e5e542d); "Age ..." labels for the four SSI age values (3a2a6ed9);registration_kind: raw_onlyon the earlier BEA files, and the keys that change in the BEA changelog (00721e9e); "record set spec id" in the JCT changelog (80ef225c); one wording, with the publisher's URL, for the Z.1 September change (f0b24306); Add US district facts: IRS district-file extensions and ACS 2024 district tables (#447) #448 as the source of the TY2023 record sets, and the 12 keys the district file joins, in the pin comments (cabc7239). - Left as follow-ups: the
A07225and EITC child-count labels (both district years); the W-2 "Number of taxpayers" entity and the US geography vintage (all W-2 years);usda-snap-fy2025-monthly-state-caseloads, which still reads the-6zip; the CMS 2025 alias inchronicle/targets/us_poverty.py, kept beside its predecessor's. - No change needed: the IRS truncates some county names (the package keeps the file's text); district names do not say the Congress (labels only; the geography ids and spec ids do).
hhs-acf-tanf-caseload-2024 keeps its id, record sets, rows, labels and measures and reads fy2024-15months-tanf-caseload.xlsx (sheets dated 2025-06-10), which ACF put on its page in place of the workbook dated 2025-01-30. The fiscal-year block moved to columns B:E and B:D with the states in column A, one row lower; the package guards the block's heading and note and does not read the calendar year 2024 block. ACF revised fiscal year 2024: 13 of the 58 facts change value (the seven national averages and the total families of six states). Record ids and semantic keys stay the same. The earlier workbook stays in R2 and is registered raw-only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…(chronicle#449) CBO reposted its February 2026 revenue projections workbook on 2026-02-26. The maintainer downloaded it in a browser (cbo.gov refuses automated requests). It is registered raw-only beside cbo-revenue-projections-income-by-source-2026-02, and a new test reads its sheet "3.Individual Income Tax Details" and checks each of the CSV's 84 values against its workbook cell. All are equal, so no fact changes; the repost corrected Tables 7a and 7b only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The edition after jct-tax-expenditures-2024: 13 fiscal year 2025 individual income tax revenue-loss estimates from Table 1 of JCX-45-25 (December 3, 2025), typed fiscal_year 2025. The ten lines the two editions share keep the predecessor's labels, filters and constraints. JCT prints the charitable deduction on three lines; the package reads each line as its own row and stores no sum. The maintainer downloaded the PDF in a browser (jct.gov blocks automated requests). It is registered raw-only, and a test reads its text and checks each value of the CSV extract against its Table 1 line. The package has no artifact for 2023, so the default bundle at 2023 skips it, like its predecessor. The register gains the labels of the ten values that the two packages now share. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
chronicle publish-raw uploaded the 15-month FY2024 TANF workbook, CBO's reposted revenue projections workbook, the JCX-45-25 PDF and its CSV extract on 2026-11-27. chronicle verify-raw found each one in R2 with the manifest's sha256 and size, and also the earlier TANF workbook that is now registered raw-only. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The maintainer downloaded the revenue projections workbook from the link on CBO's Budget and Economic Data page, and the browser saved it as 51138-2026-02-Revenue.xlsx. CRS Insight IN12690 links the same address. The package's manifest and its six concept evidence URLs said 51138-2026-02-Revenue-Projections.xlsx, a name CBO does not use for this file. Both now give https://www.cbo.gov/system/files/2026-02/51138-2026-02-Revenue.xlsx, and the raw-only record of the workbook gives it as the file's source URL. Values, record ids and semantic keys do not change. The facts' source URL and concept evidence URL change, and with them the aggregate, legacy and release keys. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- CBO: the manifests say that the CSV holds dollars and that each value is its workbook cell times 10^9, rounded to the cell's one decimal. They report what the workbook's Contents sheet says about the repost and no longer say that the repost changed Tables 7a and 7b "only", which nothing in the repository can show. - TANF: the changelog names every fact field that changes with the file (keys, the fact label, the spec hash, the source cell keys and the source fields) and the one value type that changes, and says "row labels". - JCT: the manifests note Table 1's footnote 1, the two labels that join a group heading and a line, and that the footnotes run on to printed page 44. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The CBO changelog also names the record set spec hash among the fields that change with the URL. The JCT raw-only manifest says where Table 1's footnotes end after it describes the table's two blocks. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Chronicle judge record: part C (
|
| Judge | Verdict | Items |
|---|---|---|
ledger-source-fidelity |
PASS with notes | 0 must-fix, 2 should-fix, 8 nits |
ledger-boundary |
PASS with notes | 0 must-fix, 2 should-fix, 6 nits, 1 matter from before this range |
ledger-boundary, follow-up on 5b5e7fef..7d8d3e2e |
PASS with notes (stands for cabc7239..7d8d3e2e) |
0 must-fix, 0 new should-fix, 2 new nits |
ledger-contract: n/a. No schema, identity construction or consumer-contract code changes.
What the judges checked:
- Fidelity, with its own openpyxl and pypdf readers:
- TANF: 58 of 58 facts equal the cell found by sheet, by the block headed "Fiscal Year 2024 (October - September)", by column header and by place name. None equals the calendar-year cell beside it. Each equals the mean of its October 2023 to September 2024 monthly counts. Built from the earlier workbook, the facts have the same record ids, spec ids, semantic keys and series keys; ACF revised 13 of the 58 values. The manifest's counts (31 of 220 family averages and 18 of 165 recipient averages differ) are right.
- CBO: 84 of 84 CSV values, and the 84 facts for 2023 to 2036, equal sheet "3.Individual Income Tax Details". The workbook's Contents sheet records the repost of 2026-02-26.
- JCT: it rendered the Table 1 pages and read them. The blocks are Corporations, then Individuals, then Total; text extraction reverses the two headings. 13 of 13 values, line labels and printed pages equal the PDF. Footnotes 3, 11, 12 and 14 are cited correctly. No fact is something JCT does not print, and no sum of the three charitable lines is stored.
- Controls: a planted value was flagged in each part. Reading the calendar-year block gave 58 mismatches, a one-column shift in the CBO sheet gave 84, and the Corporations block gave 26.
- Register: the ten added values, under two dimension ids, are the ones the two JCT packages share, with labels equal to both packages' declarations. No fact of the 2024 package changes.
- Boundary: no new or changed fact holds a value the publisher does not print. Every fact keeps its publisher period. TANF keeps its package id, record set ids, spec ids, record ids and semantic keys, and no package can read the earlier edition. The CBO facts are identical before and after the workbook is registered. The register only adds entries. The skipped-source pin is right, and no other bundle pin moves. The changelog numbers are right. No schema, identity code or other package is touched.
How the findings were answered (commits after 5b5e7fef):
- JCT typing (should-fix of both judges):
jct-tax-expenditures-2025types its estimatesobservation, asjct-tax-expenditures-2024does, whilejct-obbba-revenue-estimates-2025usessource_projection. Left for the maintainer. The assertion is part of the semantic key, so the two editions must change together. - Fidelity should-fix (the CBO manifests were not exact about units): they now say that the CSV holds dollars and that each value is its workbook cell times 10^9, rounded to the cell's one decimal (
7d8d3e2e). - Boundary should-fix (the TANF changelog left out fields that change): it now names the fact label, the spec hash, the source cell keys, the source fields and the one value type that changes, and says "row labels" (
7d8d3e2e). - CBO file name (a nit of both judges): the package named the workbook
51138-2026-02-Revenue-Projections.xlsx. The maintainer downloaded it from the link on CBO's Budget and Economic Data page, and the browser saved it as51138-2026-02-Revenue.xlsx; CRS Insight IN12690 links the same address. The package's source URL and concept evidence URL now give that address (feef51f9). Values, record ids and semantic keys do not change; the aggregate, legacy and release keys change with the URL. - Other nits answered in
7d8d3e2e: the CBO text no longer says the repost changed Tables 7a and 7b "only"; the JCT manifests note footnote 1 of Table 1, the two labels that join a group heading and a line, and that the footnotes run on to printed page 44. - No change needed: the earlier TANF workbook's FYCY2024 sheets do hold the date 2025-01-30 (cell C61), as the raw-only manifest says. The JCT source URL is the publication page, because the PDF link's attachment id was not recorded; the manifest says so.
- The follow-up review built the CBO facts before and after
feef51f9: the source URL, the concept evidence URL, the three keys named above and the record set spec hash change, and nothing else. It found that7d8d3e2echanges no fact and that its new text matches the files. Its two new nits (the CBO changelog did not name the spec hash; one JCT manifest sentence read badly) are answered in5ce21c7f. It notes that the repository cannot show the browser download (the maintainer's statement) or the CRS citation (a public report, read on 2026-11-27). - Left as follow-ups, all from before this range:
jct-tax-expenditures-2024'scharitable_deductionrow is the sum of three JCT lines (the split needs the JCX-48-24 PDF); the CBO package's guard labelled "CBO row label" checks Ledger's labels, not CBO's; the JCT manifests and CSV notes carry consumer guidance copied from the 2024 edition;ledger-source-ingestor's allowed paths do not listdb/data/**, the alias map, the register orchangelog.d/**.
…arial review - tests/test_chronicle_bundle.py pins the count of skipped sources in two places that read one list. 1f9aced moved only one to 41, so the pin test could not pass. Both are 41 now. - The SSI changelog said the four age values that the two SSI packages share keep their one wording. The register gives them the "Age ..." labels, so the four facts of ssa-ssi-monthly-statistics-2024-12 change their value label; the changelog says so. - tests/test_chronicle_soi_state_ira_2023.py skipped when the TY2023 Historic Table 2 file was missing. The file is on main since chronicle#291, so a missing file now fails the test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…onicle#449) The IRS guide to the congressional district data says that its state totals may not be comparable to the state totals SOI publishes elsewhere, and points to Historic Table 2 for complete state totals. By the maintainer's ruling, Historic Table 2 is the state parent of a district row wherever it has the quantity, and a total that no other package gives is not removed. soi-congressional-district-2022 and soi-congressional-district-2023: - A United States or state total gives no fact where another soi-* package built at the tax year has a fact with the same semantic key, or where a Historic Table 2 package of the same tax year reads the same IRS column at the same level. 4,599 TY2022 and 4,445 TY2023 facts go. - The other totals stay, with their source record ids, values and semantic keys, in the record sets ...all_returns_state_totals, ...all_returns_us_total and, for TY2023, ...agi_500k_plus_state_totals. - The one row of each single-district jurisdiction (eight in TY2022, seven in TY2023) is its district: value id <state>_00, GEOID <state FIPS>00, and 98 for the District of Columbia. Each package holds all 436 districts. - The district facts that existed before change only their record set spec hash. TY2022 builds 56,383 facts and TY2023 56,049. The register gains the seven at-large district values that the two packages share. The tests read the file's total rows from the CSV where the package no longer has the fact, and new tests check the rule in both directions. The pins of the default bundle test follow in the next commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- The changelog for the TY2023 district series said that ten of the 30 columns without a state twin are also Historic Table 2 columns. That was wrong: the ten columns with two concept ids are among the earlier columns. The sentence is gone. - The district totals changelog and the data-source doc say the rule as it is (same semantic key, or the same IRS column in Historic Table 2), name the new record set spec ids, and note the cells that give a state fact and a district fact, and why the TY2022 totals of the top AGI class go while the TY2023 ones stay. - docs/us-legacy-etl-cleanup.md and docs/concept-migrations.md no longer name the district file's state-total rows as a source of facts. - A test comment said no package gives Schedule A line 8a for the nation; Table 2.1 does, under another domain. - tests/data/irs_soi_doc_guides/incddocguide_state_totals.tsv holds, for both guides, the sentence on the file's State totals and its footnote 2, with a test. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The part-D judges found that 17 United States totals of each IRS SOI congressional district package stayed although Publication 1304 gives the same tax-form line for the tax year, under another domain or concept id. The maintainer ruled that they go (chronicle#449). - Table 2.1 (returns with itemized deductions): the returns and amounts of Schedule A lines 8a, 8b, 8c, 9 and 14 (ten totals). - Table 2.5: the EITC returns and amount for no, one and two qualifying children (six totals). - Table 1.4: the self-employed retirement plans deduction amount. soi-congressional-district-2022 now builds 56,366 facts and soi-congressional-district-2023 builds 56,032; each keeps 30 United States totals. No other fact changes. The comment above record_sets in each package states the rule in its three parts, and the tests declare the 17 pairs once (PUBLICATION_1304_LINES) and check each pair against the Publication 1304 package built at the tax year. Also: each JCT tax expenditure package gets a comment with the reason why its estimates are typed model_output + observation (the maintainer's ruling); the changelog and docs/data-sources/irs-soi-state.md give the rule and the new counts. The pins of the default bundle test follow in the next commit. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…a test - The changelog said three removed United States totals of each year have their only twin in a Publication 1304 package that builds one tax year at a time. It is fourteen: soi-table-2-1 and soi-table-1-4 also build one tax year at a time, so the ten Schedule A items and the self-employed retirement plans deduction amount are in the same position. The text now names all fourteen and says that the six EITC totals have a twin at each build year. - docs/us-legacy-etl-cleanup.md said no package selects the national N00700/A00700. Both district packages keep those two United States totals. - The Table 1.4 pair shared no measure id, concept id or constraint with the district measure, so the pairing test passed when the pair named Table 1.4's next line. A new test reads the district guide (A03300, Schedule 1 line 16) and the Table 1.4 workbook (the cell under "Payments to a Keogh plan" and "Amount" in the "All returns, total" row). - .gitattributes keeps two raw files of this branch out of diffs and of the whitespace check (the NIPA flat file has CRLF line ends). No package and no fact changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- A test comment and docs/data-sources/irs-soi-state.md said that Publication 1304 has no line for a kept United States total. It prints the line for eleven of them, in columns of Table 1.4 and Table 2.1 that no package reads. The texts now say that no Publication 1304 package gives the line, and the changelog names the eleven as a later step. - The pairs of rule 3 are a hand-declared list. A new test holds the eleven unread columns: each has its heading in the workbook of the tax year, no measure of soi-table-1-4 or soi-table-2-1 reads it, and the district file's United States total is a fact. It fails when a package starts to read one of them, with the step to take. - The changelog says "deduction amount" for the Table 1.4 pair, and the doc row on the national refund totals names the TY2023 package too. No package and no fact changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
From a full bundle build at year 2023 on the final packages (valid, 0 errors): 2,416,365 facts (7,210 fewer: 4,616 TY2022 and 4,462 TY2023 totals of the congressional district file go, 1,000 and 868 at-large district facts are new), 103,337 geography keys (15 at-large districts) and 2,355 semantic duplicate keys (9,373 before). No duplicate key has a district fact. The bundle keeps 95 IRS duplicate keys: 93 of the TY2023 Historic Table 2 US row against Publication 1304 and the state data, and the TY2022 return count and AGI that Historic Table 2's US row shares with the state data's US totals. The test now also pins the at-large districts of the District of Columbia (code 98, both years) and Montana (one district in TY2022, two in TY2023). Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
- Publication 1304 prints twelve, not eleven, of the kept United States lines in columns that no package reads: Table 1.2 column F is the returns with a standard deduction, beside the amount that soi-table-1-2 reads. The guard test now holds that column too, and the texts say twelve. - The committed Historic Table 2 files hold every column of the totals that stay (36 for each state, 30 for the United States); no package reads those columns there yet. The changelog and docs/data-sources/irs-soi-state.md say so. - The cell test took each measure's scale from the package. It now requires 1 for a count, 1,000 for an amount and 1 for A59664. - No test held a district's label in the register. Each district fact's value label must now be the district's name. - Comments in the bundle test described the district totals' duplicate keys in the present tense; docs/concept-migrations.md did too. The changelog gives the at-large GEOIDs in full. No package and no fact changes. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Chronicle judge record: part D (
|
| Judge | Verdict | Items |
|---|---|---|
ledger-source-fidelity |
PASS with notes | 0 must-fix, 1 should-fix, 4 nits |
ledger-boundary |
PASS with notes | 0 must-fix, 5 should-fix, 2 nits |
ledger-boundary, follow-up on a9e38386..cf30d2ac |
PASS with notes (stands for 5ce21c7f..cf30d2ac) |
0 must-fix, 2 should-fix, 5 nits |
ledger-contract: n/a. No schema, identity construction or consumer-contract code changes.
What the judges checked:
- Fidelity, with its own csv reader keyed by
STATE,CONG_DISTRICTandagi_stuband by the declared column header:- All 112,432 facts of the two packages at
a9e38386(56,383 for TY2022, 56,049 for TY2023) equal their cell. 0 mismatches. - Each package has 436 districts. The single-district jurisdictions in the file (TY2022: AK, DC, DE, MT, ND, SD, VT, WY; TY2023: the same without MT) have only a
CONG_DISTRICT0 row, as each guide says. No district fact reads a multi-district state's total row. - Against the packages at
5ce21c7f: every fact that went is a total; every fact that appeared is an at-large district fact; no kept fact changes its value, source record id or semantic key. - It built the 32 other
soi-*packages at 2022 and at 2023. Every removed total has a fact for the same quantity and tax year in another package; no kept total matches by semantic key or by Historic Table 2 column. - The TY2023 guide holds the statement that state totals within the congressional data may differ from the state totals SOI publishes elsewhere, and its footnote points to Historic Table 2.
- Controls on every 997th fact: a planted +1, the neighbouring column and the wrong AGI class were each flagged on all sampled facts; reading the state total row as a district was flagged on every sampled district fact.
- All 112,432 facts of the two packages at
- Boundary:
- The row choice is a static declaration of which publisher rows a package reads. No value is changed, combined, derived or chosen by size, and nothing filters across packages at bundle time.
- Its own analysis of all 12,912 old totals agrees with the range on every fact: none removed without a fact in another package, none kept with one (by semantic key or Historic Table 2 column).
- Periods and geography ids are right for every fact. No source record id, semantic key or aggregate key appears twice in either package, and none is shared with another
soi-*package. - Three mutations of the rule in a copy each failed a test, so the rule tests can fail.
- Every number in the two changelog entries and the doc equals its own builds, apart from the sentences listed below.
How the findings were answered:
- Should-fix of both judges (the boundary judge found all 17, the fidelity judge 16 of them): 17 United States totals per year stayed although Publication 1304 gives the same tax-form line under another domain or concept id (ten Schedule A items in Table 2.1; the EITC returns and amount for no, one and two qualifying children in Table 2.5; the self-employed retirement plans deduction amount in Table 1.4). The maintainer ruled that they go.
e9cc8b36removes them, names the 17 pairs in each package and extends the rule tests to the Publication 1304 pairs. 30 United States totals per year stay. The packages now build 56,366 facts (TY2022) and 56,032 (TY2023). - Boundary should-fix (three wrong sentences): corrected in
bc35afeb. A test comment said no package gives Schedule A line 8a for the nation; the changelog said "the totals that no other package gives stay" without the rule; and a changelog sentence said ten of the 30 columns of US district facts for Microcosm's local-area fit: SOI district AGI classes and more columns, ACS district tables, county SNAP #447 item 2.3 have a Historic Table 2 twin, which is wrong (the ten columns are among the earlier 62). - Boundary should-fix (
docs/us-legacy-etl-cleanup.mdnamed the district file's state-total rows as a source): corrected inbc35afeb, withdocs/concept-migrations.md. - Boundary should-fix (three United States totals of each year have their only twin in Publication 1304 Tables 1.2 and 1.4, which build one tax year at a time, so the TY2022 values are not in a bundle built for 2023): the maintainer ruled that they stay removed. The changelog says where the values are. (The number is fourteen with the totals of rule part 3: see the second adversarial review below.)
- Boundary should-fix (the bundle pins): set in
3697289cfrom a full bundle build on the final packages. - Nits answered in
bc35afeb: the changelog says that the kept state total and the district fact of a single-district jurisdiction read the same cell (288 cells in TY2022, 266 in TY2023); it names the record set spec ids; the guide's sentences on state totals are in a committed extract (tests/data/irs_soi_doc_guides/incddocguide_state_totals.tsv) with a test. - Left as follow-ups by the maintainer's ruling: the TY2022 state totals of the $500,000-or-more class go because
soi-historic-table-2-state-agi-2022has a row for that class that adds Historic Table 2's two top classes (the row is from before this PR); ten IRS columns have two concept ids, and the state EITC packages use another domain (IRS SOI measure_id net_capital_gains_* names two different measures (Form 1040 line 7 vs Table 1.4 Schedule D gain) #307).
The follow-up judge (a9e38386..cf30d2ac):
- It built both district packages before and after. Exactly the 17 United States totals per year go, no fact is new, and the only field that changes on a kept fact is the record set spec hash of the 30 kept United States totals.
- It read each of the 17 pairs in the raw files with its own csv and xlrd readers, 34 pairs over the two years: the same tax-form line, tax year, geography and set of returns on both sides, and each Publication 1304 fact equals its workbook cell. The district file's value is 0.83 to 0.99 of the Publication 1304 value in every pair.
- It paired every kept total (3,834 over the two years) against the 32 other
soi-*packages built at 2022 and 2023 by semantic key, by column or measure id, and by concept and unit: no missed pairing. - Boundary: the hand-declared list of pairs is a static declaration of publisher cells a package does not read. No value is changed, combined or chosen by size.
- Nine planted errors in copies: eight failed a test at
e9cc8b36; the ninth (the Table 1.4 pair pointed at the table's next line) fails the test added incf30d2ac. - Its should-fix items, answered in
eef02ca0: two sentences said that Publication 1304 has no line for a kept total, but it prints the line for eleven of the 30 kept United States totals in columns of Table 1.4 and Table 2.1 that no package reads. The texts now say that no package gives the line, and the changelog names those lines as a later step (a twelfth, in Table 1.2, was found later: see the third review below). Also, the hand-declared list could go stale, so a new test fails whensoi-table-1-4orsoi-table-2-1starts to read one of those columns.
A second adversarial review (an Opus agent, not a judge role) attacked the final state for merge readiness. It found no wrong value: every district fact equals its cell, all rulings are implemented in both years, and its own readers match the raw files of the Census, CMS, LIHEAP, SNAP and Historic Table 2 TY2023 packages. Its findings, answered in cf30d2ac: the changelog said that three removed United States totals of each year have their only twin in a Publication 1304 package that builds one tax year at a time, and the right number is fourteen (so a bundle built for 2023 has no TY2022 national value for them; the maintainer ruled that all fourteen stay removed); a doc row said no package gives the national state-tax-refund totals; and the Table 1.4 pair was not tied to its line by any test.
A third adversarial review (an Opus agent) attacked the local head eef02ca0 and the pins commit 3697289c. It found no wrong value. It ran CI's lint and test steps locally without the one long bundle test, 25 planted errors in a copy of the tree, a twin search over all 116 US-source packages at 2022 and 2023 (0 twins for the 3,834 kept totals), a before-and-after comparison of both district packages by source record id, and a check of the bundle pins against the build output. Its findings, answered in c605e62a:
- Publication 1304 prints twelve, not eleven, of the kept United States lines in columns no package reads: Table 1.2 also prints the returns with a standard deduction. The guard test now holds that column too, and the texts say twelve.
- The committed Historic Table 2 files hold every column of the totals that stay (36 for each state, 30 for the United States); no package reads those columns there. The changelog and the description now say so. A Historic Table 2 package that starts to read one is found by rule part 2, by its column.
- Two tests were weak, and both are stronger now: the cell test took each measure's scale from the package (it now requires 1 for a count, 1,000 for an amount and 1 for
A59664), and no test held a district's label in the register (each district fact's value label must now be the district's name). - Comments in the bundle test still described the district totals' duplicate keys in the present tense; corrected.
The commits after cf30d2ac (eef02ca0, 3697289c, c605e62a) change tests, comments, the changelog and docs only. No judge read them; the third adversarial review read the first two.
Summary
Later editions of the sources in the US feed, for the US part of #449. Every value is a publisher cell. This PR carries the work of #295, #296 and #444, which it supersedes. It adds a package for each new reference period, and it updates a package in place when the publisher issues a newer edition of the same period, so the bundle never holds two editions of one fact.
Status: draft until CI passes on the head.
1. IRS SOI Historic Table 2, tax year 2023 (from #295)
Max Ghenis's three commits of #295, then main merged in and main's TY2022 changes carried to the TY2023 packages, so each TY2023 package mirrors its TY2022 twin again:
net_capital_gains_*take the Form 1040 line 7 label and concept.N04475/A04475), so the test's workaround is gone.N00700,A00700,N18300,A18300,N19300,A19300,N19700,A19700);23incmdocguidedefines them in the same words as22incmdocguide, and their columns come before the DP insertion.soi-historic-table-2-2023(US, 11 AGI classes x 55 measures)soi-historic-table-2-state-broad-2023(51 states x 61 measures)soi-historic-table-2-state-eitc-2023(51 states x 10 measures)soi-historic-table-2-state-agi-2023: taxable interest (N00300,A00300)The test that sums the states now covers every state measure; the 16 the national package does not carry are checked against the CSV's US row.
2. IRS SOI state-data US totals and IRA Tables 5 and 6, tax year 2023 (from #296)
Max Ghenis's three commits of #296, then main merged in. The PR's own code, package, test and manifest changes against main are the same, line for line, as the ones its judges passed in September.
soi-state-202323in54us.xlsxsoi-ira-traditional-contributions-202323in05ira.xlsxsoi-ira-roth-contributions-202323in06ira.xlsx23in54us.xlsxmergesA179:XFD179). Of the committed workbooks and the R2-only workbooks the default bundle reads, no other has such a range.3. Other sources: later editions
Each package was changed only after its new file showed the same definition by #449's six criteria. The evidence is in the commit messages and the test modules
tests/test_chronicle_449_*.py, which check every fact against its cell, read independently.New reference periods (new packages). Each copies its predecessor and changes only ids, period, vintage, artifact and the positions the new file moved, so the two packages form one series.
census-b01001-female-age-2023census-b01001-female-age-2024,-2025census-pep-2024-national-age-sexcensus-pep-2025-national-age-sexcensus-pep-2024-state-age-sexcensus-pep-2025-state-age-sexcensus-stc-individual-income-taxcms-aca-oep-state-level,-2025cms-aca-oep-state-level-2026cms-aca-effectuated-enrollment-2022cms-aca-annual-effectuated-enrollment-2025cms-medicare-trustees-report-2025-part-b-premium-incomecms-medicare-trustees-report-2026-part-b-premium-incomehhs-acf-liheap-fy2024-national-profilehhs-acf-liheap-fy2025-national-profilehhs-acf-tanf-caseload-2024hhs-acf-tanf-caseload-2025usda-snap-fy69-to-currentusda-snap-fy69-to-current-fy2025-11zipssa-ssi-monthly-statistics-2024-12ssa-ssi-monthly-statistics-2025-12jct-tax-expenditures-2024jct-tax-expenditures-2025Newer editions of the same period (updated in place). The package keeps its id, record set ids and spec ids and reads the newer file. Its values change; its keys do not.
bea-nipa-total-wages-salaries,-personal-income-components,-personal-income-disposition,-pension-contributionsbea-regional-state-personal-income-components-2024usda-snap-fy69-to-current(FY2024)FY24.xlsxof the-11zip (sheets dated 11/13/2026)FY24.xlsxof the-6zipfederal-reserve-z1-household-net-worthhhs-acf-tanf-caseload-2024(FY2024)FL152090005, with the same footnote. The June page prints no unit line, so the unit (billions of dollars) comes from the release PDF, which is registered raw-only with the March B.101 page. From the release of 2026-09-11 the sector excludes domestic hedge funds from 2012:Q4 and net worth moves to line 42, so the package stays on the June edition.FY24.xlsxmembers have the same sheets, labels and cell positions; USDA changed 495 numbers.db/data/with a note that no package reads them. The SNAP-6zip stays becauseusda-snap-fy2025-monthly-state-caseloadsreads it. The earlier Z.1 page and the earlier TANF workbook leave their folders, stay in R2 and are registered raw-only.Checked, no value changes.
cbo-revenue-projections-income-by-source-2026-02reads a CSV extract that was made without the workbook. CBO reposted the workbook on 2026-02-26 to correct Tables 7a and 7b. The repost is now registered raw-only with its bytes, and a test reads its sheet "3.Individual Income Tax Details" and compares each of the CSV's 84 values (six rows, 2023 to 2036) with its cell. All are equal. One correction: the package named the workbook51138-2026-02-Revenue-Projections.xlsx, but CBO's page links51138-2026-02-Revenue.xlsx, so the source URL and the concept evidence URL now give that address.Corrections.
jct-tax-expenditures-2024: JCX-48-24's columns are fiscal years, so the package now types its values as fiscal year 2024, and its record ids sayfy2024instead ofcy2024(Ingest QBID anchors: Pub 1304 T1.4 by-AGI (TY2023), JCT Dec-2024 199A study, Pub 4801 8995 lines, JCX-45-25 #121 item 4). Values are unchanged.census-b01001-female-age-2023in those bands change their value label (for example from "Female 15 to 17 years" to "Age 15 to 17"); the package's own wording stays inpackage_dimension_value_labels. No key changes.all_ages,under_18,age_18_to_64,age_65_or_older) with the labels "All ages", "Age under 18", "Age 18 to 64" and "Age 65 or older". So the four facts ofssa-ssi-monthly-statistics-2024-12change their value label (for example from "SSI federal payment recipients all ages" to "All ages"). Each package's own wording stays inpackage_dimension_value_labels; no key or value changes.Other notes:
POPESTIMATE2025column; the OEP 2026 file inserts five agent and broker columns, so the two APTC columns move from AJ and AK to AO and AP; the Trustees table moves one page; the LIHEAP total moves two lines; the TANF states move from column C to A.jct-tax-expenditures-2025reads 13 lines of Table 1 of JCX-45-25, the fiscal year 2025 column of the Individuals block, in billions of dollars. The ten lines it shares with the 2024 package keep that package's labels, filters and constraints. JCT prints the charitable deduction on three lines (education, health, and other than education and health). The new package reads each line as its own row and stores no sum; the 2024 package'scharitable_deductionrow is the sum of the three and is not changed here. jct.gov blocks automated downloads, so the maintainer downloaded the PDF in a browser. The PDF is registered raw-only with its bytes, and a test checks each value of the CSV extract against the PDF's text.4. IRS filing-season snapshots, TY2023 county and district data, W-2 (from #444)
Max Ghenis's four commits of #444, then two commits on the district package:
soi-congressional-district-202323incd.csvsoi-county-202323incyallnoagi.csv25inweek21.xlsx,26inweek21.xlsx,25inweek30.xlsx,26inweek30.xlsxsoi-w2-statistics(TY2021 to TY2023)21in04w2all.xlsx,22in04w2all.xlsx,23in04w2all.xlsx5001800US…) and their own spec ids, so they form a new series that cannot mix with TY2022's 117th Congress districts.A59660equalsA59661 + A59662 + A59663 + A59664, butA59664is in dollars and the other three are in thousands. At the US row that total reads $15.3 trillion; Historic Table 2 TY2023 gives $65.0 billion. TY2022's total is correct. The package leavesA59660out until the IRS corrects the file and keeps the four child columns as published. A test keeps checking the file's sum, so a corrected file will be noticed.5. The district file's United States and state totals (TY2022 and TY2023)
Each district file has a United States row and one total row for each state. The IRS guide to the file says that these state totals may differ from the state totals SOI publishes elsewhere, and it points to Historic Table 2 for complete state tabulations. A package that gives a fact for every total puts two values for one quantity in the bundle, as the TY2022 package does on
main. The maintainer ruled that a total of the district file gives no fact where another package gives the same quantity for the tax year, and that a total no other package gives stays.A United States or state total of
soi-congressional-district-2022or-2023now gives no fact where:soi-*package built at the tax year has a fact with the same semantic key; or...all_returns_state_totals,...all_returns_us_totaland, for TY2023,...agi_500k_plus_state_totals). Their source record ids, semantic keys and values stay.<state>_00, GEOID5001700US<FIPS>00for TY2022 and5001800US<FIPS>00for TY2023; the District of Columbia's delegate district is...US1198). So each package holds all 436 districts. Where such a jurisdiction keeps a state total, the state fact and the district fact read the same cell (288 cells in TY2022, 266 in TY2023).soi-table-1-2,soi-table-1-4,soi-table-2-1): the standard deduction amount, the self-employed health insurance deduction amount and returns, the self-employed retirement plans deduction amount and the ten Schedule A items. So a bundle built for 2023 has no TY2022 national value for these 14; a build of those packages for 2022 has them. The six EITC totals have a twin at each build year. The maintainer ruled that all 14 stay removed.soi-historic-table-2-state-agi-2022has a row for that class. That row adds Historic Table 2's two top classes; it is from before this PR and is a follow-up. The TY2023 package has no such row, so the TY2023 totals of that class stay.soi-historic-table-2-2023and Publication 1304 TY2023 stay.Raw files
All new raw files are committed, uploaded to
ledger-rawand checked there withchronicle verify-raw: the 12 of section 3's first round, the SSI page and CSV, the Z.1 page, the SNAP-11zip under the FY2024 package's key, CMS's 2025 CSV, the 15-month TANF workbook, CBO's reposted workbook, and the JCX-45-25 PDF with its CSV extract. #444's nine files were already in R2, andverify-rawfinds each one.Not in this PR (waiting)
jct-tax-expenditures-2024'scharitable_deductionrow is the sum of three JCT lines;soi-historic-table-2-state-agi-2022's $500,000-or-more row adds two IRS classes; ten IRS columns have two concept ids and the state EITC packages use another domain (IRS SOI measure_id net_capital_gains_* names two different measures (Form 1040 line 7 vs Table 1.4 Schedule D gain) #307).Bundle (default, year 2023)
Measured at bundle year 2023 with the changed packages and every package that shares one of their concepts, against the same packages without the change:
soi-historic-table-2-2023against Publication 1304's TY2023 Tables 1.4, 1.1 and 1.2). Its return count, AGI and total income tax also join three keys that Publication 1304's tables already share; the first two are in Table 1.3 andsoi-state-2023too.jct-tax-expenditures-2025); four new source tables. The in-place updates and the CBO check add no fact and no duplicate key.soi-historic-table-2-2023's US row (the 90 of sections 1 and 2, and three keys that Publication 1304's tables already shared), and the TY2022 return count and AGI that Historic Table 2's US row shares withsoi-state-2022's US totals.Consumer note (Microcosm)
bea-nipa-*packages (listed as reviewed exclusions in Microcosm's US feed),bea-regional-state-personal-income-components-2024,usda-snap-fy69-to-current(65 FY2024 facts),hhs-acf-tanf-caseload-2024(13 FY2024 facts) andfederal-reserve-z1-household-net-worth. Their record ids and semantic keys stay; their aggregate, legacy and release keys change with the file. The Z.1 fact's source series and observed measure keys change too, because its source table is now S1M.b.bea-nipa-pension-contributionsnow also builds 2025, which BEA's newer file adds.cbo-revenue-projections-income-by-source-2026-02: values, record ids and semantic keys stay. Its source URL and concept evidence URL are corrected, so its aggregate, legacy and release keys and its record set spec hash change.jct-tax-expenditures-2024's 11 record ids becomejct.tax_expenditures.fy2024.<row>.revenue_loss, with periodfiscal_year:2024. Microcosm'sus/fiscal_target_references.jsonandus/chronicle_feed_scope.jsonname thecy2024ids.soi-congressional-district-2022and-2023(section 5): 4,616 and 4,462 total facts are gone, and 1,000 and 868 at-large district facts are new, with new geography ids. The kept totals keep their record ids and semantic keys; their record set id, record set spec id, aggregate key and source series key change. A consumer that scaled the districts of a state to the district file's own state row must take the state parent from the Historic Table 2 state packages where the district file's state total is gone; for the 36 measures whose state total stays, the parent is still the district file's state total, under its new record set id. Two things differ in Historic Table 2: the QBI measure ids (qbi_amountandqbi_claims, againstqualified_business_income_deduction_*in the district packages) and the concept ids of ten columns (IRS SOI measure_id net_capital_gains_* names two different measures (Form 1040 line 7 vs Table 1.4 Schedule D gain) #307). The Microcosm side is US targets: one declared nesting rule across national, state, district and county levels microcosm#1760.ssa-ssi-monthly-statistics-2024-12: its four facts change their age value label (section 3). No key or value changes.jct-tax-expenditures-2025has nocharitable_deductionrow: a consumer that wants the FY2025 charitable total adds its three charitable facts (49.2 + 9.1 + 5.9 billion dollars).Chronicle Governance
ledger-source-ingestor. Paths outside its allowed paths:chronicle/source_package.py(aliases),chronicle/targets/us_poverty.pyanddocs/pe-calibration-targets.md(package lists),docs/us-legacy-etl-cleanup.md,docs/data-sources/irs-soi-state.mdanddocs/concept-migrations.md(doc lines),chronicle/dimension_values/canonical_labels.json(labels only),scripts/build_dimension_value_register.pyandtests/test_dimension_value_register.py(BUILD_YEARS,CHOSEN_LABELS),scripts/build_irs_filing_season_packages.py(Add IRS filing-season snapshots and annual geographic and W-2 data #444's generator),tests/data/irs_soi_doc_guides/**(guide transcriptions),tests/test_issue_265_non_uk_labels.py(the JCT id in a fixture),.gitattributes(raw files kept byte for byte),db/data/**(raw files and manifests),changelog.d/**.tests/test_chronicle_449_*.pymodules, Add IRS filing-season snapshots and annual geographic and W-2 data #444's test files, the TY2023, state, IRA, district, source cell, register, source package, alias, coverage, governance and label tests;ruff checkon the CI paths; the register static check (0 problems);chronicle validate-packageandbuild-suitefor each new or changed package;chronicle verify-rawfor every new raw file. The fulltests/test_chronicle_bundle.pypassed locally and in CI oncabc7239(35 tests). CI's bundle job failed on5ce21c7f: part C moved only one of the two pins of the skipped sources (40 -> 41). Both are 41 now. The pins of the head come from a full bundle build on the final packages (valid, 0 errors; every assertion of the test passes on its output), and CI runs the file on the head.f55ae349and Add IRS SOI TY2023 state-data US totals and IRA Tables 5/6 #296's content: the September records on those PRs.f55ae349..6444f5d3):ledger-source-fidelityPASS with notes (two nits, answered indcc6b03b),ledger-boundaryPASS; record in this PR's first comment.ledger-contract: not applicable (no schema, identity or consumer-contract code changes).ledger-source-fidelityPASS with notes andledger-boundaryPASS with notes, with no must-fix; record and answers: Add later editions of the US feed's sources (chronicle#449) #451 (comment)ledger-source-fidelityPASS with notes,ledger-boundaryPASS; record and answers: Add later editions of the US feed's sources (chronicle#449) #451 (comment)79f42056..46bc9b81): twoledger-source-fidelityjudges (Add IRS filing-season snapshots and annual geographic and W-2 data #444's packages, 73,815 facts; the other changes, 14,931 cells; 0 mismatches) andledger-boundary, each PASS with notes. The boundary judge's two must-fix items were a test and a pin, fixed after it. Record and answers: Add later editions of the US feed's sources (chronicle#449) #451 (comment)cabc7239..5ce21c7f: TANF FY2024 in place, the CBO check, JCT 2025):ledger-source-fidelity(58 TANF facts, 84 CBO values, 13 JCT values; 0 mismatches) andledger-boundary, each PASS with notes and no must-fix. Its one open item is ruled: both JCT tax expenditure packages staymodel_output+observation(fiscal year 2025 had ended when JCT published JCX-45-25), and each has a comment with the reason. Record and answers: Add later editions of the US feed's sources (chronicle#449) #451 (comment)5ce21c7f..c605e62a: the district file's totals and at-large districts):ledger-source-fidelity(112,432 facts, 0 mismatches) andledger-boundary, each PASS with notes and no must-fix. The boundary judge found the 17 United States totals of rule part 3 (the fidelity judge, 16 of them); the maintainer ruled that they go. A follow-upledger-boundaryreview of the commits after that ruling (a9e38386..cf30d2ac; 34 pairs read in the raw files, 3,834 kept totals paired against every othersoi-*package) is PASS with notes. Two adversarial reviews of the final state found no wrong value; their findings (texts, weak tests, a guard for the hand-declared pairs) are answered in the commits aftere9cc8b36. Record and answers: Add later editions of the US feed's sources (chronicle#449) #451 (comment)Part of #449. Supersedes #295, #296 and #444.
🤖 Generated with Claude Code