Skip to content
Merged
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
95 changes: 74 additions & 21 deletions docs/catalog-curation-backlog.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,79 @@
# Catalog curation backlog

These series lineages remain split because the catalog builder scopes
concept and alias inheritance to an exact geography and entity slice.
Curating an alias cannot move an observation across entity keys, and the
catalog must not lose observations merely to present one lineage.

On 2026-08-07, a disposable-copy experiment attempted each entity-drift
fold by deleting the unpinned row and adding its canonical concept to the
docket-pinned row. Regeneration restored both rows and produced a catalog
and UUID registry byte-identical to the originals: all seven pairs still
held one observation on each entity. They must remain split until the
upstream observation metadata is corrected.

| Concept | Docket-pinned entity and UUID | Other entity and UUID | Blocker |
| --- | --- | --- | --- |
| `bls.cpi.u.headline_mom` | `household/cpi_u_all_items`, `3e796803-a194-4c83-9dc9-27cc870ff08e` | `economy/aggregate`, `70ca2ecf-4323-4453-b42f-23350cb95f22` | May and June observations disagree on entity. |
| `bls.cpi.u.core_mom` | `household/cpi_u_less_food_energy`, `d85c3c7f-874b-4caa-bfad-1ec7a473c293` | `economy/aggregate`, `e5e402d5-1a65-4c5d-a67a-07e3cf03cbf8` | May and June observations disagree on entity. |
| `bls.cps.unemployment_rate` | `person/civilian_labor_force`, `8dbbd54f-4bfd-4735-ad0d-5b55b8bb4ec5` | `economy/aggregate`, `db2f3857-e0fa-48f8-9ab1-6c8989307fd2` | May and June observations disagree on entity. |
| `fed.g17.industrial_production.total_index_mom` | `economy/aggregate`, `dbfd5050-e5df-40af-8922-dc8927d6363a` | `institutional_sector/total_industrial_production`, `d5634fc4-dbe0-4203-a5b7-728708b85a14` | May and June observations disagree on entity. The same-dimension `us.frb` spelling is folded into the latter row separately. |
| `fed.g17.capacity_utilization.total_industry` | `economy/aggregate`, `9668ecdb-5f61-422d-a653-8e8956257ade` | `institutional_sector/total_industry_capacity`, `978252a9-c452-41eb-aece-323340e796fc` | May and June observations disagree on entity. |
| `census.housing_starts.saar` | `economy/aggregate`, `8c999902-84e2-4e90-b49c-325cd535062a` | `dwelling/housing_start`, `d0212a1e-b360-460a-80a8-1cf4ad5ce427` | May and June observations disagree on entity. The same-dimension `us.census` spelling is folded into the latter row separately. |
| `bls.import_price_index.all_imports_mom` | `economy/aggregate`, `1d271205-0e71-4a74-9d5f-47e77577e2b2` | `household/all_imports`, `e8e6e43e-2c46-4620-a070-91d2da004b1c` | May and June observations disagree on entity. |
## Entity-drift families: folded 2026-10-12

Seven series each held two observed lineages because their hand-recorded
May 2026 rows carry a bespoke entity while every resolver print carries
`economy/aggregate`, the default entity the Thesis resolver writes. The
catalog builder scopes concept and alias inheritance to one geography and
entity slice, so curating an alias could not join them: on 2026-08-07 a
disposable-copy experiment deleted the unpinned row and aliased its concept
on the docket-pinned row, and regeneration restored both rows byte for
byte. The same experiment was repeated on 2026-09-22 with the same result.

Max ruled on 2026-09-27 (d353) that the `economy/aggregate` lineage
survives for all seven. The builder gained curated entity folds
(`ledger/seeds/entity_folds.json`, described in the
`build_series_catalog.py` module docstring): before identities are grouped,
a fold reads the absorbed entity's current rows as carrying the survivor
entity, without changing the observation file. Regenerating with the seven
folds retired seven bindings and kept every survivor's UUID; the catalog
went from 228 to 221 series and the observed `observation_count` still sums
to the 233 current rows.

| Concept | Survivor (`economy/aggregate`) | Retired |
| --- | --- | --- |
| `bls.cpi.u.headline_mom` | `70ca2ecf-4323-4453-b42f-23350cb95f22` | `household/cpi_u_all_items`, `3e796803-a194-4c83-9dc9-27cc870ff08e` |
| `bls.cpi.u.core_mom` | `e5e402d5-1a65-4c5d-a67a-07e3cf03cbf8` | `household/cpi_u_less_food_energy`, `d85c3c7f-874b-4caa-bfad-1ec7a473c293` |
| `bls.cps.unemployment_rate` | `db2f3857-e0fa-48f8-9ab1-6c8989307fd2` | `person/civilian_labor_force`, `8dbbd54f-4bfd-4735-ad0d-5b55b8bb4ec5` |
| `fed.g17.industrial_production.total_index_mom` | `dbfd5050-e5df-40af-8922-dc8927d6363a` | `institutional_sector/total_industrial_production`, `d5634fc4-dbe0-4203-a5b7-728708b85a14` (its folded `us.frb` spelling joins too) |
| `fed.g17.capacity_utilization.total_industry` | `9668ecdb-5f61-422d-a653-8e8956257ade` | `institutional_sector/total_industry_capacity`, `978252a9-c452-41eb-aece-323340e796fc` |
| `census.housing_starts.saar` | `8c999902-84e2-4e90-b49c-325cd535062a` | `dwelling/housing_start`, `d0212a1e-b360-460a-80a8-1cf4ad5ce427` (its folded `us.census` spelling joins too) |
| `bls.import_price_index.all_imports_mom` | `1d271205-0e71-4a74-9d5f-47e77577e2b2` | `household/all_imports`, `e8e6e43e-2c46-4620-a070-91d2da004b1c` |

Three of these were docket-pinned to the retired lineage
(`bls.cps.unemployment_rate`, `bls.cpi.u.headline_mom`,
`bls.cpi.u.core_mom`); Thesis re-stamps those pins in the same rollout.

Two more concepts still hold sibling lineages and were not folded:
`bls.ces.total_nonfarm_payroll_change` (`person/nonfarm_payroll_employee`
from May beside `economy/aggregate` from June; the Thesis docket observes a
third concept, `bls.ces.nonfarm_payrolls.change`) and
`statcan.employment_insurance.regular_beneficiaries.canada` (two
hand-chosen person roles, April and May). Fold them with a seed entry and
a reviewed regeneration if a consumer ever needs one lineage.

Any edit to the seed is curation: adding, retargeting or undoing a fold
moves observations between lineages, so the builder refuses it without
`--allow-remint --remint-note`, even when no registry event is planned. The
comparison is with the committed catalog's `entity_folds_sha256`, which,
like every generated artifact, is trusted not to be hand-edited. Never
delete the seed file while the committed catalog declares that digest; the
builder refuses that too.

Each fold declares `absorbed_names`: the absorbed row's concept and
aliases, which the builder checks for equality against that row while it is
still committed. Folding matches only those spellings, so a spelling that
only the survivor holds never pulls a row of the absorbed entity across.

To undo a fold, mark its entry `"undone": true` and regenerate with the
ceremony; deleting the entry is refused while git HEAD still holds it, and
in a tree without git history it must not be done at all, because the entry
is the record the builder uses to hand names back. The absorbed identity
revives with its original UUID, rows it had absorbed by earlier
same-dimension merges (the `us.frb` and `us.census` spellings above) rejoin
it, and its `absorbed_names` move back off the survivor, curated aliases no
row spells included. Only an undone fold's absorbed identity can be
rejoined this way, so an ordinary append never revives a retired identity
through a name held in another slice. Marking all seven folds undone on the
committed artifacts reproduces the pre-fold catalog exactly, apart from the
seed and registry digests (seven `revived` lines, no other event).

One limitation is older than the folds: the builder refuses a correction
that supersedes a row written before assertion versioning (every row of the
immutable prefix, including the seven hand-recorded May 2026 rows), while
the append gate accepts it. PolicyEngine/chronicle#306 addresses that. A
correction that supersedes a versioned absorbed row regenerates cleanly.

## Initial claims cadence metadata

Expand Down
156 changes: 156 additions & 0 deletions ledger/seeds/entity_folds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
{
"schemaVersion": "chronicle_entity_folds_v1",
"comment": "Curated cross-entity folds for scripts/build_series_catalog.py. Each fold reads every current observation of the concept and geography that carries absorbed_entity, and is spelled by one of absorbed_names (the absorbed row's concept and aliases when the fold was made), as carrying survivor_entity when the catalog groups identities; the observation file is never changed. Undo a fold by adding \"undone\": true to its entry, never by deleting the entry or the file. The seven folds below are the entity-drift families in docs/catalog-curation-backlog.md, folded into their economy/aggregate lineages by Max's ruling d353 (2026-09-27).",
"folds": [
{
"concept": "bls.cpi.u.core_mom",
"geography": {
"level": "country",
"id": "0100000US",
"vintage": "current"
},
"absorbed_entity": {
"name": "household",
"role": "cpi_u_less_food_energy"
},
"survivor_entity": {
"name": "economy",
"role": "aggregate"
},
"absorbed_names": [
"bls.cpi.u.core_mom",
"bls.cpi.u.core_mom.may_2026"
],
"note": "Hand-recorded ledger line 15 carries household/cpi_u_less_food_energy; every resolver print of the series carries economy/aggregate, the default entity resolve_pending.generic_fact writes. One series, so the hand-recorded lineage joins the resolver lineage (d353)."
},
{
"concept": "bls.cpi.u.headline_mom",
"geography": {
"level": "country",
"id": "0100000US",
"vintage": "current"
},
"absorbed_entity": {
"name": "household",
"role": "cpi_u_all_items"
},
"survivor_entity": {
"name": "economy",
"role": "aggregate"
},
"absorbed_names": [
"bls.cpi.u.headline_mom",
"bls.cpi.u.headline_mom.may_2026"
],
"note": "Hand-recorded ledger line 14 carries household/cpi_u_all_items; every resolver print of the series carries economy/aggregate, the default entity resolve_pending.generic_fact writes. One series, so the hand-recorded lineage joins the resolver lineage (d353)."
},
{
"concept": "bls.cps.unemployment_rate",
"geography": {
"level": "country",
"id": "0100000US",
"vintage": "current"
},
"absorbed_entity": {
"name": "person",
"role": "civilian_labor_force"
},
"survivor_entity": {
"name": "economy",
"role": "aggregate"
},
"absorbed_names": [
"bls.cps.unemployment_rate"
],
"note": "Hand-recorded ledger line 2 carries person/civilian_labor_force; every resolver print of the series carries economy/aggregate, the default entity resolve_pending.generic_fact writes. One series, so the hand-recorded lineage joins the resolver lineage (d353)."
},
{
"concept": "bls.import_price_index.all_imports_mom",
"geography": {
"level": "country",
"id": "0100000US",
"vintage": "current"
},
"absorbed_entity": {
"name": "household",
"role": "all_imports"
},
"survivor_entity": {
"name": "economy",
"role": "aggregate"
},
"absorbed_names": [
"bls.import_price_index.all_imports_mom",
"bls.import_price_index.all_imports_mom.may_2026"
],
"note": "Hand-recorded its May 2026 print carries household/all_imports; every resolver print of the series carries economy/aggregate, the default entity resolve_pending.generic_fact writes. One series, so the hand-recorded lineage joins the resolver lineage (d353)."
},
{
"concept": "census.housing_starts.saar",
"geography": {
"level": "country",
"id": "0100000US",
"vintage": "current"
},
"absorbed_entity": {
"name": "dwelling",
"role": "housing_start"
},
"survivor_entity": {
"name": "economy",
"role": "aggregate"
},
"absorbed_names": [
"census.housing_starts.saar",
"census.housing_starts.saar.may_2026",
"us.census.housing_starts.total_saar",
"us.census.housing_starts.total_saar.2026_05"
],
"note": "Hand-recorded its May 2026 prints carries dwelling/housing_start; every resolver print of the series carries economy/aggregate, the default entity resolve_pending.generic_fact writes. One series, so the hand-recorded lineage joins the resolver lineage (d353)."
},
{
"concept": "fed.g17.capacity_utilization.total_industry",
"geography": {
"level": "country",
"id": "0100000US",
"vintage": "current"
},
"absorbed_entity": {
"name": "institutional_sector",
"role": "total_industry_capacity"
},
"survivor_entity": {
"name": "economy",
"role": "aggregate"
},
"absorbed_names": [
"fed.g17.capacity_utilization.total_industry",
"fed.g17.capacity_utilization.total_industry.may_2026"
],
"note": "Hand-recorded its May 2026 print carries institutional_sector/total_industry_capacity; every resolver print of the series carries economy/aggregate, the default entity resolve_pending.generic_fact writes. One series, so the hand-recorded lineage joins the resolver lineage (d353)."
},
{
"concept": "fed.g17.industrial_production.total_index_mom",
"geography": {
"level": "country",
"id": "0100000US",
"vintage": "current"
},
"absorbed_entity": {
"name": "institutional_sector",
"role": "total_industrial_production"
},
"survivor_entity": {
"name": "economy",
"role": "aggregate"
},
"absorbed_names": [
"fed.g17.industrial_production.total_index_mom",
"fed.g17.industrial_production.total_index_mom.may_2026",
"us.frb.industrial_production.total.mom_sa",
"us.frb.industrial_production.total.mom_sa.2026_05"
],
"note": "Hand-recorded its May 2026 prints carries institutional_sector/total_industrial_production; every resolver print of the series carries economy/aggregate, the default entity resolve_pending.generic_fact writes. One series, so the hand-recorded lineage joins the resolver lineage (d353)."
}
]
}
Loading
Loading