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

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions changelog.d/880-asec-group-quarters.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Carry ASEC's native HRHTYPE through source pooling and exclude group quarters
from ACS housing-household targets. Historical frames without that field
remain usable, with their ASEC group quarters still counted by the roster;
that fallback now warns and the calibration diagnostics record a
household-universe receipt. A frame that carries HRHTYPE refuses a missing code
on an ASEC household or on any household without TYPEHUGQ, and refuses a
household that carries both codes.
1 change: 1 addition & 0 deletions changelog.d/880-ctc-recertification.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Score filing-status CTC amounts and claims during US compatibility recertification, including releases that omit the superseded all-status CTC rows, and score the national SOI Table 4.3 itemized-deduction row, whose `all` income-percentile filter selects every return, as the release tool does. Rows the release tool narrows by EITC, which the scorer does not reproduce, stay unscored, and a drift that leaves any exact critical row unscored is refused.
6 changes: 6 additions & 0 deletions changelog.d/880-household-filing-targets.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Bind eight national ACS 2024 household-type cells and sixteen IRS SOI Table
1.3 filing-status cells by default in US fiscal builds. Compile observed
household indicators with explicit ACS group-quarters exclusions, allow solver
mass to fit the ACS household total, and re-pin Chronicle with 3,094 added
facts while preserving every prior fact. Replace the two older national
Historic Table 2 CTC aggregates with the new filing-status partition.
17 changes: 17 additions & 0 deletions docs/agent-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,23 @@ build in `releases/microcosm-us-2024-national/`, runs only
`microcosm-publish-release-build --preflight-only`, which checks the build
offline, and leaves publication to Max.

The US fiscal-refresh release binds national ACS household-type counts by
default, including the household total. Its dense, sparse and exact-k solve
arms use free mass: ACS group-quarters placeholders carry positive weights
but do not count as households. Fresh ASEC pools carry household `HRHTYPE`
and exclude its group-quarters codes 9/10 from these cells too. A frame that
carries the field refuses a missing code on the ASEC arm or on any household
without `TYPEHUGQ`, and refuses a household that carries both codes.
Historical frames without that field still use the roster and include those
ASEC records. That fallback warns, and the release's calibration diagnostics
record it at `build.target_compilation.household_universe`: households and
initial weight by `TYPEHUGQ`, `HRHTYPE` and roster fallback, and each
household-type target's fallback part. Only `_load_or_materialize_target_frame`
attaches that receipt; `_materialize_target_frame` doesn't, because the
scorers digest its compilation per household slice. The re-solve receipt must
still state that limitation. Keep these universes separate when changing
weight handling. See [the household-target guide](us-household-type-targets.md).

The US fiscal-refresh builder scores its written H5 in household batches.
Alongside its out-of-sample reports, it writes
`us_ssi_social_security_holdout.json`: the household-weighted share of SSI
Expand Down
81 changes: 75 additions & 6 deletions docs/us-chronicle-feed-repin.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,72 @@ ids (the 118th-Congress district, or the state row's value), not the derived
row's. No code reads the field, so no label, value or refusal changes; v4's
`geography.publisher_name` is copied the same way.

## The 2026-11-12 re-pin: household type and filing status (microcosm#880)

The pin moves from `41b2fb2b` to
`60266a3088319c909cf7fc89c9d00d3b055dc6e1` (Chronicle branch
`feed/us-41b2fb2-household-880`, tag `microcosm-us-feed-880-v1`). This
commit retains the previous feed's tree and adds only the five source
packages, publisher files and manifests from PolicyEngine/chronicle#430.
It does not include the Census Vintage 2025 package from microcosm#1531.
Whichever re-pin merges second must re-cut its feed on the other's commit.

The scope adds eight pairs, verified against the committed package YAML:

| Record sets | Period | Build year | Added rows |
|---|---|---:|---:|
| `census_acs.acs1_2024.b11001.{national,state}` | calendar year 2024 | 2024 | 954 |
| `census_acs.acs1_2024.b11003.{national,state}` | calendar year 2024 | 2024 | 2,120 |
| `irs_soi.ty2023.table_1_3.filing_status_{returns,agi,ctc_returns,ctc_amount}` | tax year 2023 | 2023 | 20 |

The ACS packages retain estimates and margins of error for the United
States and 52 state-level geographies (50 states, DC and Puerto Rico).
The scope has 714 pairs and 77 package runs over the same ten build years.
The row contract remains `chronicle.consumer_fact.v3`.

Rebuild with a clean checkout of the pinned commit:

```bash
uv run python tools/build_us_chronicle_feed.py \
--chronicle-root /tmp/chronicle-us-feed-880 \
--out /tmp/us-feed-880 --skip-artifact
```

The local rebuild used a sparse shared clone containing Chronicle's code,
the scoped packages and their publisher files. It left the source checkout
unchanged and removed the temporary clone after checking the feed.

Dropping exactly these eight pairs from the rebuilt feed reproduces all
40,642 prior rows byte for byte and in their original order, with digest
`1d45a89c28177a95371b4cc4068d3657c7bf12bd8edad7c82fe25bf453f9ea07`.
The delta is exactly 3,094 rows: 3,074 ACS estimates and margins of error
and Table 1.3's 20 cells. No pre-existing fact changes.
The committed comparison and source listing in
`experiments/us-feed-household-filing-status-880/` record every added key,
its source and period, and the unchanged values and publisher hash of the
three B4923C anchors. The ESI anchor test follows this receipt in the re-pin
chain and checks each source's reviewed namespaces.

The release compile binds eight national ACS estimates and 16 filing-status
cells by default. The parity manifest declares the two new families
`compiled` and records each new cell's disposition. It reviews state cells,
Puerto Rico, margins of error, redundant partition cells and child-age
splits as exclusions. Table 1.3's all-status return count and AGI repeat
bound Table 1.2 totals; its all-status credit count and amount follow from
the four bound statuses within publisher rounding. The CTC amount differs
by one published $1,000 unit. Table 1.2 carries no CTC cells. The existing
`census_acs.acs1_2023` exclusion remains
separate. See [household-type targets](us-household-type-targets.md).
With the packaged district crosswalk, target aging and Medicaid
substitutions, the registry grows from 33,250 to 33,272 targets. Route A's
`national_state` surface grows from 6,102 to 6,124. The 24 new cells replace
two existing national TY2022 Historic Table 2 CTC aggregates, a net increase
of 22. Those older count and amount cells constrain the same model vectors
as the sums of Table 1.3's four filing-status targets, but carry a different
vintage's totals. The compile reviews them as superseded rather than
binding inconsistent aggregates and partitions. Every retained target keeps
its name, value and metadata.

## The 2026-11-03 re-pin: Federal Student Aid loan portfolio tables (microcosm#1074)

microcosm#1357 binds Federal Student Aid's loan portfolio tables as
Expand Down Expand Up @@ -295,14 +361,17 @@ the first labelled US export.

| Field | Value |
|---|---|
| Chronicle commit | `41b2fb2b864a28c0eda03322b77a97ef147dfa3c` (`a9026cc` plus chronicle#347's `4448a7c96`; branch `feed/us-a9026cc-ed-fsa-1103`, tag `microcosm-us-feed-1074-v1`) |
| Feed file | `consumer_facts_us_41b2fb2.jsonl`, 40,642 rows, 171,661,396 bytes |
| `facts_sha256` | `1d45a89c28177a95371b4cc4068d3657c7bf12bd8edad7c82fe25bf453f9ea07` |
| Chronicle commit | `60266a3088319c909cf7fc89c9d00d3b055dc6e1` (`41b2fb2b` plus chronicle#430's five packages; branch `feed/us-41b2fb2-household-880`, tag `microcosm-us-feed-880-v1`) |
| Feed file | `consumer_facts_us_60266a3.jsonl`, 43,736 rows, 187,923,715 bytes |
| `facts_sha256` | `dce5c32e7f0f386260638547438b1d2fafd08a890d09f3099c22b7fca2a95e2d` |
| Consumer fact schema | `chronicle.consumer_fact.v3`, schema file sha256 `bdb51e2a…` (the same file at `a9026cc` and `41b2fb2b`) |
| Scope | 706 (record set, period) pairs; 72 package runs over build years 2020 to 2029 |
| Scope | 714 (record set, period) pairs; 77 package runs over build years 2020 to 2029 |
| Consumer artifact | none: refused at this commit, see below |

The previous pins were `a9026cc8f80307af0c4527fdb3779fab32ffad9f`
The previous pins were `41b2fb2b864a28c0eda03322b77a97ef147dfa3c`
(`consumer_facts_us_41b2fb2.jsonl`, 40,642 rows, 171,661,396 bytes,
`facts_sha256` `1d45a89c…`, 706 pairs, 72 runs; tag
`microcosm-us-feed-1074-v1`), `a9026cc8f80307af0c4527fdb3779fab32ffad9f`
(`consumer_facts_us_a9026cc.jsonl`, 40,181 rows, 169,056,411 bytes,
`facts_sha256` `4d89e4a4…`, 640 pairs, 66 runs; tag
`microcosm-us-feed-1343-v1`), `cf9ece2e7be11158c21fdc4dd38b44d92db552f6`
Expand All @@ -317,7 +386,7 @@ The previous pins were `a9026cc8f80307af0c4527fdb3779fab32ffad9f`
this document describes the 2026-09-18 rebuild unless it says otherwise.

The feed is too large for the repository. Its home on the build machine is
`~/PolicyEngine/_buildh-runtime/inputs/consumer_facts_us_41b2fb2.jsonl`,
`~/PolicyEngine/_buildh-runtime/inputs/consumer_facts_us_60266a3.jsonl`,
beside the previous pins; `tools/build_us_target_parity_manifest.py` reads it
there by default. A holder of the Chronicle commit regenerates it byte for
byte with the commands below.
Expand Down
21 changes: 17 additions & 4 deletions docs/us-compatibility-recertification.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ never recalibrates. What it adds is evidence about the newer engine:
- **a loader replay** under the tested country, Core and calculator wheels;
- **the engine's column changes**: what the newer engine ignores that the
built-with one read, and what it reads that no engine read before;
- **the drift**: the 18 exact critical rows, the scorable national SOI Table
1.4 dollar rows and the headline totals, scored on the same H5 under both
engines;
- **the drift**: every row of the 18 exact critical requirements, the
scorable national SOI Table 1.4 dollar rows and the headline totals, scored
on the same H5 under both engines;
- **a claim**, declared by a named person after reading the drift.

**The wrapper loader is not attested here.** policyengine.py imports its
Expand Down Expand Up @@ -157,7 +157,20 @@ from the H5, so both engines weigh the same rows identically. The rules:

- **Critical rows** use the release tool's SOI semantics: the signed
component (positive part, except the identity and loss sources), the
nonrefundable-CTC rule and the itemizer mask.
nonrefundable-CTC rule, the itemizer mask and the filing-status partition.
CTC status rows retain the `ctc_amount` and `ctc_claims` requirements without
needing an all-status row; joint returns include surviving spouses. A
ledger filter whose value selects every return (`all` in any case, or
empty) filters nothing, as in the release tool, so the national Table 4.3
itemized-deduction row, whose income percentile range is `all`, is scored.
A row the release tool narrows in a way the scorer does not reproduce stays
unscored, such as a row with any other ledger filter, or one the release
tool masks by EITC, which it does from the row's domain (returns with the
credit) or from a qualifying-child count that the row's record set or
measure implies. The drift refuses any unscored exact critical row, even
when its siblings score the same requirement. A drift certified before the
Table 4.3 row was scored, for a parent that carries the row, attests
definitions that leave it unscored, so it no longer recomputes.
- **Population aggregates are refused.** A batch engine that computed one of
the release tool's population-aggregate formulas refuses
(`POPULATION_AGGREGATE_VARIABLES`).
Expand Down
11 changes: 9 additions & 2 deletions docs/us-fact-to-target.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ which variable a fact binds, in what mode, over which universe, whether it
binds at all — is a consumer decision and lives here. This is the procedure
for the US pipeline, in the order that avoids the known failure modes.

The default US build also binds national ACS 2024 household composition and
IRS SOI Table 1.3 filing-status constraints. See [the household and filing-status
guide](us-household-type-targets.md) for the cells, exclusions, group-quarters
treatment and the existing SOI tax-unit universe.

## What may never become a target

Before minting anything, apply the rule (doctrine, Max 2026-08-02):
Expand Down Expand Up @@ -43,8 +48,10 @@ surface (`us_runtime/fiscal_targets.py::compile_us_fiscal_target_registry`);
artifact record count changes L0, not target membership. The pinned
`census_acs.acs1_2023` family remains a reviewed `survey_derived` exclusion
because all of its facts are state-grain, while the compiler admits ACS only at
congressional-district geography
(`tools/build_us_target_parity_manifest.py::_FAMILY_EXCLUSIONS`).
congressional-district geography for population-age cells
(`tools/build_us_target_parity_manifest.py::_FAMILY_EXCLUSIONS`). The separate
ACS 2024 household-type branch binds national B11001 and B11003 estimates;
see [the household-type target family](us-household-type-targets.md).

**Corollary: deviations from official poverty metrics are never inherently
problematic.** A model that corrects benefit underreporting should, all
Expand Down
Loading
Loading