Skip to content

Register CenTax's childcare cliff-edge workbook raw-only - #445

Merged
juaristi22 merged 2 commits into
mainfrom
uk-centax-childcare-workbook
Nov 24, 2026
Merged

juaristi22 merged 2 commits into
mainfrom
uk-centax-childcare-workbook

Conversation

@juaristi22

@juaristi22 juaristi22 commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

Registers CenTax's childcare cliff-edge workbook raw-only, for PolicyEngine/microcosm#1399.

PolicyEngine/microcosm#1399 calibrates parents of 3- and 4-year-olds to CenTax's HMRC tabulations in Advani,
Flew, Pepin-Hall and Summers (2026), Removing the £100,000 childcare cliff-edge. arunadvani.com now publishes
the report's data for the charts. Publisher numbers come from Chronicle, so the workbook is registered here, and
microcosm keeps only its own derivation: each share times the build's own parent count, with the band edges aged.

What it adds

  • db/data/centax/childcare_cliff_edge_2026/manifest.yaml: package centax-childcare-cliff-edge-2026, one
    workbook (AdvaniFlewPepinhallSummers2026_ChildcareThreshold_data.xlsx, 194,075 bytes, sha256 8c238557…).
    The bytes match the copy CenTax shared on 21 October. The package is raw only: no build here parses it.
  • centax is a new UK publisher, so the R2 key sits under raw/uk/centax/.
  • The bytes are held in R2 only and git-ignored. No licence is stated on the linking page, CenTax's report page
    or the workbook. Arun Advani (CenTax) has said PolicyEngine may use the published data. The manifest records
    the source page, that permission and the licence position. This follows the GSGB tables.
  • tests/test_source_centax_childcare_cliff_edge_2026.py pins the registration. With a local copy, it also pins
    the layout of the sheets microcosm reads: the headers and bins of Figures 3.1, 3.3, 3.6, 3.7 and 3.12, and
    Table A.1.
  • docs/data-sources/uk-centax-childcare-cliff-edge-2026.md and a section in docs/pe-uk-source-checklist.md.

Raw only, not facts

The figures are chart data with one consumer. That consumer reads them once, offline, when it rebuilds its
derived resource, and no build reads the feed for them. Parsing about 1,800 bins into facts would add concepts
and a feed re-pin for nothing a consumer needs. The other sheets are the authors' model outputs (bunching,
frictions, elasticities, costs), which no consumer binds. If a second consumer wants the bins as facts, a facts
package can follow.

In R2

chronicle publish-raw uploaded the workbook to the private ledger-raw bucket on 24 November 2026, at the key the
manifest declares, and chronicle verify-raw read it back: the same sha256 and 194,075 bytes. The manifest already
named that object, so the upload changed no file in this PR.

Tests: the new file plus test_chronicle_artifacts.py, test_source_uk_ros_high_value_sales.py,
test_chronicle_geography_names.py and test_issue_343_uk_high_value_housing.py, 97 passed, 3 skipped.

🤖 Generated with Claude Code

PolicyEngine/microcosm#1399 derives its CenTax parent cells from the data
for the charts of Advani, Flew, Pepin-Hall and Summers (2026), Removing the
£100,000 childcare cliff-edge, which arunadvani.com now publishes beside the
report. Microcosm keeps only its own derivation, so the publisher's bytes
belong here.

- centax-childcare-cliff-edge-2026: one workbook, 194,075 bytes, sha256
  8c238557..., the bytes of the copy CenTax shared on 21 October.
  Raw only: no build here parses it.
- No licence is stated on the linking page, CenTax's report page or the
  workbook. Arun Advani has said PolicyEngine may use the published data,
  so, as for the GSGB tables, the bytes are held in R2 only and
  git-ignored. The manifest records the source page, the permission and
  the licence position.
- centax joins the UK R2 publishers, so the key sits under raw/uk/centax/.
- The test pins the registration and, given a local copy, the layout of
  the sheets microcosm reads.

publish-raw has not run; the R2 location is declared only.

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

@vahid-ahmadi vahid-ahmadi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, María. This looks good to merge after the upload. I found nothing blocking. There are two small documentation points about the workbook itself, plus an ordering note.

What I checked at 1681b85

  • I downloaded the file from source_url. Its sha256 is 8c238557…969354b and it is 194,075 bytes, both matching the manifest. The server's last-modified date is 10 Nov 2026, as provenance_notes says.
  • The workbook has 45 sheets. The headers and bin labels of Figures 3.1, 3.3, 3.6, 3.7 and 3.12, and the Table A.1 header, are as the test pins them.
  • The new test file gives 3 passed and 1 skipped without a local copy. With the workbook placed in the package directory, it and test_chronicle_artifacts.py give 60 passed, and git status stays clean, so the ignore rule works.
  • The manifest follows the GSGB pattern: no licence, storage.local: false, and the R2 key and dataset naming follow the same convention. centax added to R2_COUNTRY_PUBLISHERS["uk"] gives the key that build_r2_key produces.
  • microcosm#1399 (at 428ff94) refuses any manifest with a different package id or kind, or a different sha256, so the two PRs line up.

1. Figure 3.12's "Men & Women" column repeats "Men". In all 60 rows, the "Share of Parents with Non-Working Partner (Men & Women)" value equals the "(Men)" value. microcosm#1399 already notes this (diagnose_uk_centax_parents.py), but the Chronicle data-source page is where field notes live. A line under the table would help the next reader, for example: "Figure 3.12's Men & Women column repeats the Men column in every bin; use Men and Women separately."

2. Figure 3.7 is pooled for every column, not only Scotland. Its note covers parents in England and Scotland eligible "between the 2019 and 2022 tax year". So the English columns are about four years of counts too: at the £1,000 bin, the three English groups sum to 82,820, against 19,753 for Figure 3.1's first two £500 bins (about 4.2×). The table row reads "The same by region group … and Scotland, pooled over 2018-19 to 2021-22". That could be read as England for one year and Scotland pooled. Suggested wording: "Parents in England (London, North and Midlands, South excluding London) and Scotland, all pooled over 2018-19 to 2021-22, so levels are about four years of counts; use the shares." microcosm uses Figure 3.7 for shares, so this changes no number.

Ordering note: as the description says, publish-raw hasn't run yet. Until it does, the R2 key points at nothing, and the only route to the bytes is a personal site. It would be worth uploading before (or right at) merge, so microcosm#1399's rebuild doesn't depend on arunadvani.com staying up.

CI is green: bundle, surface and checks.

Review drafted with AI assistance and checked against the code at 1681b850de8b735f525c7a67f5c20046a4ff326a.

Vahid's review of #445. Figure 3.7's note pools all
four columns, England's three region groups as well as Scotland, over
2018-19 to 2021-22, so the table row no longer reads as England for one
year; its levels are about four years of counts, and the page says to use
its shares. Figure 3.12's "Men & Women" column repeats its "Men" column in
every bin, which the page now says too.

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

Copy link
Copy Markdown
Collaborator Author

@vahid-ahmadi thanks. Both points are in at 80db2efb, on the data-source page only:

  1. Figure 3.12: the page now says its "Men & Women" column repeats "Men" in all 60 bins, and to use the Men and
    Women columns separately.
  2. Figure 3.7: the table row now says all four columns are pooled over 2018-19 to 2021-22, and the notes say its
    levels are about four years of counts (4.2 times Figure 3.1 at the first £1,000), so use its shares. As you
    say, Calibrate Microcosm UK to CenTax's parent income tabulations microcosm#1399 reads only its shares, so no number moves there.

On the ordering: chronicle publish-raw ran on 24 November, and chronicle verify-raw read the object back from
the private ledger-raw bucket with the same sha256 and 194,075 bytes. The manifest already named that key, so
the upload changed no file here, and microcosm's rebuild no longer depends on arunadvani.com. The description now
says so.

@juaristi22
juaristi22 marked this pull request as ready for review November 24, 2026 12:42
@juaristi22
juaristi22 merged commit 86d72fd into main Nov 24, 2026
3 checks passed
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.

2 participants