Skip to content

The Fed replaced scfp2022s.zip on 2026-10-09, so the pinned SCF 2022 summary extract no longer downloads #1368

Open

Description

@DTrim99

The scf_wealth stage pins the SCF 2022 summary extract by digest (packages/microcosm-build/src/microcosm/build/us/spec/sources.yaml, locator: https://www.federalreserve.gov/econres/files/scfp2022s.zip, sha256: 3bb4d890ae2463ff6039ec7692e375f544dd98a55a37ca2cb2340354b9cc9d80). The Federal Reserve replaced that file when it published the 2025 SCF.

What changed (checked 2026-10-23):

  • The file the Fed now serves has sha256 d4e139c69f6acf72c47512c7a204ae9a38d263781a9f0f51cdaecdf101d2d657, Last-Modified: Fri, 09 Oct 2026 14:00:28 GMT, and 3,715,841 bytes. The pinned original is no longer served at that URL.
  • The new file restates the summary extract's dollar values in 2025 dollars; the Fed's tables convert 2022 values with CPI-U-RS 4789/4376 = 1.0944. Dividing the new file's dollar columns by that factor reproduces an analysis built on the original file exactly (checked in a separate analysis repo).
  • The full public file scf2022s.zip is unchanged (Last-Modified: Wed, 18 Oct 2023).

Impact: any build that fetches the summary extract fresh from the Fed fails its sha256 check in scf_wealth. Builds that read a cached copy of the original bytes still work. This affects every US build, not only one feature.

Options:

  1. Mirror the original bytes from a cache that still holds them (any local or volume copy matching 3bb4d890…) to a stable location, and point the locator there. Nothing else changes.
  2. Pin the new file, and convert its dollar columns back to 2022 dollars with the factor above. That needs a test that reproduces the original columns, and a review of which columns are dollars.
  3. Move scf_wealth to the 2025 SCF, which is a larger change (see the scope question on Carry SCF education debt into the US build and allocate federal student loan balances to borrowers #1073).

Option 1 is the smallest if a copy of the original survives.

Activity

  1. DTrim99 commented on Oct 23, 2026

    @DTrim99
    CollaboratorAuthor

    A copy of the original survives: ~/.cache/scf/scfp2022s.zip on David's machine (downloaded 2026-10-05, 2,869,639 bytes) has sha256 3bb4d890ae2463ff6039ec7692e375f544dd98a55a37ca2cb2340354b9cc9d80, matching the pin. So option 1 works: upload it to the inputs mirror or volume Microcosm uses, and point the locator there. Tell me where to put it.

  2. MaxGhenis commented on Nov 18, 2026

    @MaxGhenis
    Contributor

    The Fed still serves the replacement (checked 2026-11-18): scfp2022s.zip hashes d4e139c6… at 3,715,841 bytes. Its member rscfp2022.dta holds 34,487,960 bytes with sha256 6ff73d5206ed9344a955ba66f8edee2d9f74297188f03e823346413cfacfc4e0, against the member pin 6b8dd2d9….

    fetch_scf_2022_summary_extract returns a cached rscfp2022.dta whose digest equals the member pin without a network call, and checks the zip pin only on a fresh download. So a machine that holds the old member in its cache directory builds, and one that fetches stops at the zip check: a Modal stage, a cloud build or a fresh machine. The release tool also takes a local path through --scf-summary-extract.

    One build machine holds the old member (24,904,185 bytes, matching the member pin) and no copy of the original zip. So option 1 needs the zip from the surviving copy on another machine, or a mirror of the member alone with a locator that skips the zip check.

    The hand-off on #1635 lists this as a stop for the gate dry run and the release on a machine without the cached member.

  3. MaxGhenis commented on Nov 18, 2026

    @MaxGhenis
    Contributor

    @DTrim99, sorry for the slow reply, and thanks for finding the copy. Let's do option 1 and put the zip in the public Hugging Face dataset policyengine/microcosm-us-sources, where we already pin our CPS ASEC files by commit.

    Upload scfp2022s.zip unchanged, in one commit that adds only the zip and the README changes it needs. Add a README entry with the Fed URL, the date the Fed replaced the file (2026-10-09), and the zip's sha256 and byte count. Update the README's front matter and intro too, where we describe every file as processed CPS ASEC under CC BY 4.0.

    Under "Licence and source terms", add that the Fed places information on its site in the public domain unless it says otherwise, and asks users to cite the Fed. Cite the 2022 SCF there by the DOI on its page, 10.17016/8799. Then post the commit's full hash here. If you can't write to the policyengine org on Hugging Face, say so here and I'll find someone who can.

    Please open the PR too if you have time, or I'll open it once the upload lands. Point SCF_2022_SUMMARY_EXTRACT_URL, the loader docstring and the source_stages.json locator at https://huggingface.co/datasets/policyengine/microcosm-us-sources/resolve/<commit>/scfp2022s.zip, and keep both sha256 pins. Then run the four commands in repin_us_spec_engine_contracts.py to regenerate sources.yaml and re-pin the spec digests that cover scf_wealth.py and source_stages.json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions