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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Impute humanitarian and temporary-protection immigration statuses (REFUGEE, ASYLEE, PAROLED_ONE_YEAR per program origin, TPS per country) in the US immigration stage, drawn to cited DHS/OHSS/CBP/CRS stocks, so the enacted H.R.1 §71109/§71301/§71302 and SNAP §10108 eligibility channels stop computing $0; gate each category against its target and add four release-blocking reform-coverage probes.
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
)
from .schemas import load_schema_registry

EXPECTED_AUTHORED_FIELD_COUNT = 32_351
EXPECTED_RESOLVED_BINDING_FIELD_COUNT = 9_769
EXPECTED_CONFIGURATION_FIELD_COUNT = 42_120
EXPECTED_AUTHORED_FIELD_COUNT = 32_403
EXPECTED_RESOLVED_BINDING_FIELD_COUNT = 10_016
EXPECTED_CONFIGURATION_FIELD_COUNT = 42_419


class FieldUsageError(AssertionError):
Expand Down Expand Up @@ -457,12 +457,12 @@ def _path_inventory(rows: Sequence[tuple[str, object]]) -> tuple[int, str]:
"6a781915fd491d2c4b16d2b7d482f69cf362c904130093c59f9629f7a319269b",
),
"resolved_seed_protocol": (
823,
"c05ebb88538195798e9365f325381c14d92b74007f846f1fef50a08268e6d27d",
1_031,
"1a8f3e74018287f184cf171cc4e6571490ba1de419cf0121a611fa93a9b7fa17",
),
"resolved_seed_site_bindings": (
277,
"368fc19a8f07c4abf38ebcf2fbc4414d33c403c0f1f9881c2d2e3f5d6160feb6",
316,
"199ec98045871070860164b522892327ab840b48c0c6a53972ebc0ff0d7d091f",
),
"resolved_vintage_authorities": (
63,
Expand All @@ -489,8 +489,8 @@ def _path_inventory(rows: Sequence[tuple[str, object]]) -> tuple[int, str]:
"d6782c5de5bbed1bdc6bf653c4a6d4aadcad4ccc72d35e1092e130fcb04680a3",
),
"source_stages": (
1_702,
"be3e24b53955b9dabccfc7e779212b1e97daf0c0992be3c183e391bf695ed4ee",
1_715,
"78227f34c3f4ef946c06693dec9177dd906069f98016854bfd4d39c4cd4c51fa",
),
"spine_assembly_household_mass_shares": (
2,
Expand All @@ -517,8 +517,8 @@ def _path_inventory(rows: Sequence[tuple[str, object]]) -> tuple[int, str]:
"29c6c1b3243e178783e7ab139993ba3a9b42d62edd4e9e4e1f3b28688daf2c6d",
),
"spine_seed_site_bindings": (
277,
"dfa7ae701f62f7b1f06954798d29cfba3fc53a0be21e1751646d1f5bafd6071f",
316,
"bb848f38e068858ac23e964a4ffbbf5542253da50515c72fe7753d8c56912486",
),
"spine_support_roles": (
29,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1594,9 +1594,270 @@
"source",
"target"
]
},
"humanitarian_status_stocks": {
"type": "object",
"additionalProperties": false,
"properties": {
"asylee": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"deportation_withheld": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"paroled_one_year": {
"type": "object",
"additionalProperties": false,
"properties": {
"afghanistan": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"nicaragua": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"ukraine": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"venezuela": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
}
},
"required": [
"afghanistan",
"nicaragua",
"ukraine",
"venezuela"
]
},
"refugee": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"tps": {
"type": "object",
"additionalProperties": false,
"properties": {
"el_salvador": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"honduras": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"nepal": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"nicaragua": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"other_designated": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
},
"venezuela": {
"type": "object",
"additionalProperties": false,
"properties": {
"source": {
"type": "string",
"x-spec-surface": "operational"
},
"target": {
"type": "number"
}
},
"required": [
"source",
"target"
]
}
},
"required": [
"el_salvador",
"honduras",
"nepal",
"nicaragua",
"other_designated",
"venezuela"
]
}
},
"required": [
"asylee",
"deportation_withheld",
"paroled_one_year",
"refugee",
"tps"
]
}
},
"required": [
"humanitarian_status_stocks",
"kind",
"seed_from_build_config",
"time_period_from_build_config",
Expand Down
25 changes: 25 additions & 0 deletions packages/microcosm-build/src/microcosm/build/spec_engine/seeds.py
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,31 @@ def _stable_site(
),
candidate_universe="all_person_rows_before_abawd_eligibility_mask",
),
*(
_stable_site(
f"immigration_humanitarian_{label.replace(':', '_')}_assignment",
salt=f"immigration:{label}",
key_grammar=("source_year:source_person_id_if_present", "else_person_id"),
candidate_universe=(
"all_person_rows_then_category_origin_window_pool_mask"
),
)
for label in (
"paroled_one_year:afghanistan",
"paroled_one_year:ukraine",
"paroled_one_year:nicaragua",
"paroled_one_year:venezuela",
"refugee",
"asylee",
"deportation_withheld",
"tps:venezuela",
"tps:el_salvador",
"tps:honduras",
"tps:nicaragua",
"tps:nepal",
"tps:other_designated",
)
),
_stable_site(
"immigration_ead_workers_assignment",
salt="immigration:ead_workers",
Expand Down
Loading
Loading