Skip to content

Resolve Chronicle operational rename conflicts - #455

Draft
MaxGhenis wants to merge 641 commits into
ops-rename-slice1from
codex/1727-chronicle-pr226-fix-operational-rename-slice-1-c
Draft

MaxGhenis wants to merge 641 commits into
ops-rename-slice1from
codex/1727-chronicle-pr226-fix-operational-rename-slice-1-c

Conversation

@MaxGhenis

Copy link
Copy Markdown
Contributor

This pull request was written by a Codex cloud task for Max. It builds on #226 and merges current main into its operational rename branch.
The merge keeps the Chronicle environment and database names, immutable R2 provenance, main's streaming and R2-only artifact handling, and the Supabase retirement.
It also updates slim-bundle cleanup for chronicle.db and gives the restamp fixture a content-addressed key.

Python 3.14 checks passed for workflow lint, 764 focused tests, 246 artifact-year restamp and source-package tests, 50 UK national tests, and 30 OpenTimestamps tests. The bundle workflow test command reported 34 passed and one skipped. The source-artifact database and wheel smoke steps passed.

The full data-backed CI run was unavailable locally. The publisher workbook prefetch requires downloading artifacts outside the checkout. The local bundle run skipped the corresponding integration test.

No session owns this pull request yet.

Opened by a Codex cloud task (queue file 1727-chronicle-pr226-fix-operational-rename-slice-1-c).

juaristi22 and others added 30 commits November 4, 2026 14:34
The field contracts and caveats of every item in
docs/data-sources/uk-land-value-inputs-408.md, a chronicle#408 section in the PE UK source
checklist (whose Welsh, Scottish and balance sheet rows now count the added rows), and the
changelog fragment. Item 6 waits on chronicle#409.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`chronicle publish-raw` uploaded the three Nomis APS218 responses and the
three ASHE Table 2 zips to ledger-raw and wrote each manifest's storage.r2
block. `chronicle verify-raw` read every object back: key, SHA-256 and size
match.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin each QES record set's own vintage and year guards
…in the register (#408)

CI's surface job failed one test on 493fe89: the register's static check
(tests/test_dimension_value_register.py) found 396 values that two or more
of this PR's packages emit but chronicle/dimension_values/canonical_labels.json
does not list. Checking the packages' consumer rows with
chronicle.dimension_labels.dimension_label_issues also found values with no
label, which build-bundle refuses ("Every package must label every dimension
and value it emits"):

- Tables 6a and 9a (QRC4): the six billing authority classes;
- the land value estimates: site_density_scenario,
  new_build_price_percentile, agricultural_land_grade,
  office_accommodation_type and retail_location_type;
- the Market Value Survey's chapters 1, 3 and 4: the tenure columns, house
  or flat, occupancy, length of residence (chapter 3), and home value and
  value bands (chapter 4);
- the two VOA crossed packages: Wales' band I, which the register now lists.

scripts/build_uk_408_packages.py now declares those labels from the printed
text:
- each class takes its subtotal row's wording;
- item 1's values take the sheets' headings, and the percentiles, which the
  sheet heads with bare numbers, are labelled "25th percentile" to "75th
  percentile", with "50th percentile (median)";
- a Market Value Survey value takes the row's wording where the package
  prints it as a row, otherwise the column header as printed, otherwise the
  title of the block that sets it.
A value the register labels another way is left to the register, which a
package may not contradict.

The register gains the 396 values by 735e617's method: only the 14 packages
that emit them were built, at 2023. 384 have one wording and take it. Twelve
are worded two ways and take a label in CHOSEN_LABELS:
- "Yes" and "No" for ehs_dependent_children and ehs_household_disability
  and their mhclg. groupby twins. That is the wording most packages use;
  chapter 1's sample-size rows print "Dependent Children - Yes" and the like.
- gbp_1m_to_2m and gbp_2m_or_more, under mvs_market_value_band and its twin.
  Chapter 1 words them "£1,000,000 to £2,000,000" and "£2,000,000 or more",
  chapter 4 "£1m-£2m" and "£2m or more". With one package each, the rule
  does not decide, so chapter 1's wording is proposed for the maintainer's
  review.
The register now holds 8,553 values in 183 dimensions, up from 8,157 in 160.
It still records dece5e9 as its build commit, since only these packages
were rebuilt.

Checked:
- The static check reports no problem.
- All 18 packages this PR adds or changes build with no label issue.
- Seven of the 14 build byte-identical consumer rows before and after, so
  the register relabels nothing there: VOA bands 2025 and 2026, the Welsh
  dwellings package and both collection packages, the 2025 balance sheet and
  the 2022 series.
- The two VOA crossed packages change only by band I's new label.
- No package gains or loses a fact.
- The council tax and Market Value Survey test files pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the review of #411. An APS confidence interval and an ASHE coefficient of
variation shared their estimate's concept, unit and aggregation, so a reader
selecting by concept and dimensions could get both and sum them. Following
the ACS margins of error, the APS intervals are now
ons.aps_people_in_employment_confidence_interval_half_width, and each ASHE CV
takes its estimate's concept with the suffix _coefficient_of_variation. The
statistic dimension stays. A new test asserts that concept, aggregation,
period, geography and every dimension but statistic select exactly one fact.

The doc's R2 paragraph is replaced now that the six artifacts are uploaded,
and the tests require the storage block and a valid consumer contract. The
doc and the package headers also say that a record set's detail rows hold
both SOC levels, so a reader selects one level and never sums across both.

Fact, period, geography and table counts don't change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… test

test_the_chosen_labels_are_the_registers_labels pins how many labels
scripts/build_dimension_value_register.py chooses. 03f9689 adds twelve for
the Market Value Survey 2024 packages: eight by the rule, four value bands
for the maintainer. That brings the count from 47 to 59, which is the
surface job's one failure at 03f9689 (1 failed, 5,770 passed). The test's
other check, that each chosen label is the register's label, holds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…heffield's codes (#408)

Two points from the review of 03f9689:

- Live Table 126 marks 2022 to 2025 '[p]' provisional. Those years'
  record sets now carry shared_filters publication_status: provisional, as
  welshgov-dwelling-stock-by-tenure-2025 does, so a consumer can filter on
  it. The register already labels the value "Provisional". '[r]' (2024)
  stays in the measure header and notes. The fact count is unchanged.
- docs/data-sources/uk-land-value-inputs-408.md gains a table of the codes
  each package carries for Barnsley and Sheffield, E08000016 and E08000019
  or E08000038 and E08000039, including main's council tax levels package.
  The doc says that a join on geography_id drops both authorities unless
  the consumer maps one pair to the other.

Checked: scripts/build_uk_408_packages.py regenerates the package, and
tests/test_source_uk_408_epc.py and tests/test_dimension_value_register.py
pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For chronicle#412 item 1: the English IoD 2019 and 2025 File 1, WIMD 2019
and 2025 ranks, SIMD 2020v2 ranks and data zone lookup, NIMDM 2017 SOA and
Small Area results, and the ONS LSOA 2011 to 2021 exact-fit lookup, with
bytes committed. The May 2026 NSPL, the last edition whose IMD column holds
the 2019-vintage indices of all four nations, is archived in R2 only
(storage.local: false; the nspl_* ignore rule already covers its zip).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For chronicle#412 item 2: MHCLG's nine 2024-25 table files, one
registration each (the band table is Table 8 in this release), the Welsh
2024-25 release, which is a PDF only, and the StatsWales export of band D
composition by billing authority, which carries the same figures unrounded.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
For chronicle#412 item 3: the ONS 2011 OAC clusters and names (v3), and the
ONS OA 2011 to 2021 exact-fit lookup (V3), whose 9.8 MB CSV is archived in
R2 only and git-ignored.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tests pin each registration and read the committed bytes for the counts
the data-source note quotes. The note also answers the issue's NSPL check
and records what is not published (an NI lookup to Data Zones 2021, a
sign-in-free 2021 OAC).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…407-56b525

UK occupation facts for chronicle#407: APS employment by SOC 2020 group (Nomis APS218) and ASHE Table 2 pay by two-digit SOC
…anch

Both add packages to the same shared files. Keep both checklist sections,
#407's first as main has it, and count the 60 chosen labels: the 47 from
2026-10-26, #407's soc2020_major_group=3 and #408's twelve. The register
merged cleanly and its static check passes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
build_bundle kept every source package's consumer rows in one list until
the end, grouped all of them by fact key, then wrote and counted them.
Held rows cost about 7.6 KB each, so main's 1.66M rows peaked at 15.4 GB
on CI's 16 GB runner, and chronicle#408's fifth more facts no longer fit.

Each package's rows are now appended to consumer_facts.jsonl.partial and
added to a running coverage count as they are read, then freed with the
package's suite report before the next package builds. The file takes its
final name at the end. _BundleCoverage keeps counts, distinct identities
and each fact key's first source table and legacy key, so duplicate
reports need no rows. build_bundle_coverage keeps its signature and
output, and the metadata pool is per package.

On a nine-package subset the four bundle outputs are byte-identical to
main's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
#414 writes and counts each package's rows as it reads them, so the
bundle no longer holds every row at once. The 16 GB CI runner could not
fit this branch's bundle without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This PR's CI bundle step peaked at 3,583,520 KiB (3.4 GiB) for the
default bundle's 1.74M facts, against 15,728,820 KiB (15.0 GiB) on
main's run at the base, 6475380. The UK suite built on one Mac went
from 12.8 to 4.0 GiB max RSS, with all four outputs byte-identical.

The changelog's earlier 15.4 GB divided GNU time's KiB by a million;
the figures here are GiB.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The bundle job now fits on the runner (3,578,392 KiB peak with #414's
streaming build) and failed only on the pinned counts. The new pins come
from that run's uploaded reports: 326,495 facts, 12 packages and source
tables, 275 geography keys and 46 period keys. Each change is attributed
per package from the packages' own facts reports, and the attributions
sum to the bundle's changes. Semantic duplicate keys (2,324) and warnings
are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review nit on #410: Chapter 4 of the Market Value Survey 2024 prints
"£2m or more" in AT4.1 and AT4.2 but "£2m plus" as the column header in
AT4.3 and AT4.4, and the package files both under gbp_2m_or_more. The
comment above the proposed labels now names every printed wording.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review round one on chronicle#413:
- Table 8 of the 2024-25 release (and IoD 2025's district column) carry
  Barnsley and Sheffield as E08000016 and E08000019, while the NSPL's
  district columns and the 2025-26 workbook carry E08000038 and E08000039;
  the doc says so and the test pins both sides.
- Each index ranks only its own nation, so the NSPL's IMD column holds four
  separate rankings; NIMDM deciles are a banding within Northern Ireland.
- The multi-rank table now gives counts over live postcodes too.
- The StatsWales export names authorities without W06 codes, and its Wales
  row is "Total Unitary Authorities"; the test pins its columns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…artial file

Review on #414:
- test_bundle_coverage_duplicates_keep_each_keys_first_row pins the whole
  duplicate report for a key on three rows. The first row alone carries one
  of the two source tables and one of the two legacy keys, and a semantic
  key's first row has no legacy key. Main's build_bundle_coverage
  (6475380) gives the same coverage for these rows.
- build_bundle removes consumer_facts.jsonl.partial if anything raises
  before the rename, so a failed build leaves no facts file, as before.
  test_build_bundle_removes_its_partial_facts_file_when_it_fails fails on
  511b857's build.
- The comment and docstring give CI's measured 15.0 GiB for 1.74M rows, as
  the changelog and the PR description do.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Review on #410, round 2, item 3: Chronicle keeps the codes each table
prints, and the consumer maps one vintage to the other. Microcosm's
local-authority crosswalk already lists E08000038 and E08000039 as aliases
of E08000016 and E08000019 (PolicyEngine/microcosm#931, item (e)), so the
doc section now says so instead of pointing at a Chronicle register change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Register UK area inputs for Microcosm's geography-first spine: IMD by small area with crosswalks, 2024-25 Band D, 2011 OAC
Write and count bundle rows per package instead of holding them all
UK land value inputs for chronicle#408: MHCLG land values, VOA's 2026 stock, EPC D3, council tax by authority, the Market Value Survey, land by sector and HMRC stamp tables
#410 merged into bundle-stream-consumer-rows after #414 had merged that
branch into main, so chronicle#408's packages never reached main. This
branch starts from that merge (41c5b37) and brings in main's #413
(chronicle#412's area inputs). The one conflict, .gitignore, keeps both
PRs' raw-only entries.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
UK land value inputs for chronicle#408, on main (re-lands #410)
census-pep-2025-state-age-bands reads SC-EST2025-ALLDATA6 (Census,
released June 2026; sha256 505fd45b...) and emits the July 1, 2024
resident population of each state and DC, in all and in fifteen age
groups that partition it: single years 0 to 5, 6 to 11, 12 to 17,
18 to 24, ten-year groups from 25 to 34 through 55 to 64, 65 to 74,
and 75 and over. Each group sums the both-sexes (SEX 0), all-origins
(ORIGIN 0) rows of the six race groups at its ages; guards check the
summary level, state FIPS, sex, origin, age sequence and race order of
every block. The package is year-independent like its V2024 sibling,
so the default 2023 bundle gains 816 census_pep facts and one source
table. build_package.py writes the YAML from the file.

age_0 to age_5 now have two emitters (this package and the Census
population projections), so the label register lists them with the
labels both packages use.

Raw R2 key recorded at its canonical content-addressed location; it
still needs chronicle publish-raw by a holder of R2 credentials.

Refs PolicyEngine/microcosm#1528.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The package adds 816 facts at calendar year 2024, all for people, 16 of
them in California. The period, entity and California assertions now
include them, so the period and entity counts sum to the bundle's
2,063,300 facts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Census's Vintages 2024 and 2025 both estimate each state's July 1, 2024
population, and they differ in all 51 (California: 39,431,263 and 39,364,774).
Of two vintages' numbers for a line and year Chronicle keeps the later
(chronicle#397), so the Vintage 2024 package drops its 51 state totals and
keeps its 918 age-group facts. A new test builds both packages and fails if a
state and age range has a number from each.

Microcosm's compile skips rows without age bounds (fiscal_targets.py,
_population_age_reference_from_fact), and its Vintage 2025 totals helper reads
one record set spec, so no target changes when it next re-pins.

The partition test keyed age bounds by value id alone, so only the last state
reached the tiling check. It now checks all 51; moving one bound in Alabama,
California or Wyoming fails it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Maria Juaristi and others added 30 commits November 27, 2026 01:54
…ronicle#449)

soi-congressional-district-2023 now reads what chronicle#448 added to the
TY2022 district package, from 23incd.csv:

- 45 more columns in the all-returns record set, at its 481 rows: the 15
  columns whose state twin Historic Table 2's state package reads, and the
  30 columns without a state twin. Each keeps the TY2022 measure id, label,
  concept, unit and scale, and reads the column of the same IRS variable.
  The TY2023 guide defines all 45 the same way; for N03150 it spells out
  "Individual Retirement Account (IRA) payments", now a listed wording.
  The wage measure's legal vintage and evidence page name TY2023.
- Returns and AGI (N1, A00100) in the nine AGI classes, one record set
  each, at the 51 state and 429 district rows, with the TY2022 class
  filters and AGI bounds. Classes 1 to 8 are those of Historic Table 2's
  TY2023 state package; class 9 is its 500k_to_1m and 1m_plus together.
  The class selections come after the 481 all-class selections, so the
  existing facts keep their cells.

+30,285 facts (60,107 in all). The package label, class labels and
extraction method follow the TY2022 package.

The TY2023 guide says "District boundaries are based on the 118th
Congress." (the TY2022 guide: the 117th). The package keeps #444's
118th-Congress scheme: 5001800US GEOIDs and the 118th_congress vintage, and
its own record_set_spec_ids (all_returns and the new agi_class), so its
facts are a new series and no district key is a 117th-Congress key.
tests/data/irs_soi_doc_guides/incddocguide_district_boundaries.tsv quotes
both guides, and a test checks each package's GEOIDs, vintage and
one-district states against them.

Checks on 23incd.csv: the nine classes add up exactly to the all-class row
in all 480 rows; stub 9's mean AGI is above $1,000,000 in 470 of them (the
guide's stubs 9 and 10 together, as in TY2022); every class has 70 or more
returns in every row; every measure nests from districts (44 states with
more than one) to states to the US row. The US row is 0.949 to 1.000 of
Historic Table 2's for 54 of 55 pairs.

The 55th is the EITC amount: in every row of 23incd.csv, A59660 is the sum
of A59661 to A59664, and A59664 is in dollars while the others are in
thousands. The US EITC amount reads as $15.3 trillion (Historic Table 2:
$65.0 billion). The package still reads the cell as published; a test pins
the sum, and the question goes to María.

Tests: the AGI-class tests now run for both years; new tests check the
118th-Congress scheme and the copied identities; #444's district test
selects the all-returns record set.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in #444 (IRS filing-season snapshots for
weeks 21 and 30 of the 2025 and 2026 seasons, TY2023 county and
congressional district data, W-2 statistics for TY2021 to TY2023). The
TY2023 district package uses the 118th Congress districts that its guide
names, as its own series, and gets the record sets that #448 gave TY2022.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chronicle publish-raw uploaded them on 2026-11-27 and chronicle verify-raw
found each object with its sha256 and size: the SSI December 2025 page
and CSV, the Z.1 page of 2026-06-11, the SNAP -11 zip under the FY2024
package's key, and CMS's 2025 annual effectuated enrollment CSV.
verify-raw also finds the nine raw files of #444.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
In every row of 23incd.csv, A59660 ("Earned income credit amount") is
A59661 + A59662 + A59663 + A59664, but A59664 (three or more children) is
in dollars and the other three are in thousands. US row: A59660 =
15,325,005,218, of which A59664 = 15,275,346,253 dollars and A59661 +
A59662 + A59663 = 49,658,965 thousands. Read in thousands, the total is
$15.3 trillion; Historic Table 2 TY2023 has $65.0 billion. In 22incd.csv
A59660 is right (the US row is 1.0004 times the parts with A59664 / 1000),
so the TY2022 package keeps it.

soi-congressional-district-2023 no longer reads A59660: the all-returns
record set drops eitc_amount at its 481 rows. No class record set read it.
The other measures keep their ordinals, so 41 is unused. No total is
computed; A59661 to A59664 stay as published (A59664 at value_scale 1).
A comment where the EITC measures are declared and the 2023 manifest's
notes say why, and that the package leaves A59660 out until the IRS
corrects the file. The docs and the changelog fragment say the same.

Tests: the Historic Table 2 subset check now expects eitc_amount to be
missing from the TY2023 district US row (54 pairs, all in range); the
geography test checks that no TY2023 measure reads A59660, keeps the four
child amounts, and still pins the IRS file's sum, so a corrected file
makes it fail.

Bundle at year 2023 with the 23 related IRS SOI packages and the 7 new
ones, against 85d03ea: facts, irs_soi, tax_unit and tax_year:2023 -481;
"Congressional District Data 2023" 60,107 -> 59,626; US -1; California
-1; 5001800US0601 -1; semantic duplicate keys -1 (the US row's key with
Historic Table 2 TY2023; the state rows shared no key with Historic Table
2's state EITC package, whose domain differs). No geography, table,
package, period, warning or aggregate-duplicate count moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
IRS's TY2023 district file adds its three-or-more-children EITC column,
which is in dollars, to three columns in thousands, so A59660 reads $15.3
trillion at the US row. The package leaves A59660 out until IRS corrects
the file and keeps the four child columns as published.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
BEA's in-place editions remove 445 duplicate facts and five packages.
SSI December 2025 adds 4 facts, one package, one table and the period key
month:2025-12. CMS's 2025 package has no 2023 artifact and is skipped.
#444 adds 73,805 tax-unit facts, seven packages,
three tables, 429 geography keys and 3,454 semantic duplicate keys shared
with other IRS publications. New totals: facts 2,423,575, packages 538,
skipped 40, tables 467, periods 620, duplicate keys 9,373.

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>
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>
…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>
Add later editions of the US feed's sources (chronicle#449)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants