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
1 change: 1 addition & 0 deletions changelog.d/ak-pfd-qualifying-year.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Used each applicant’s supplied qualifying-year residence and immigration history, birth year, and linked-parent eligibility to determine Alaska Permanent Fund Dividend and energy relief eligibility starting in 2026.
44 changes: 31 additions & 13 deletions docs/validation/alaska-pfd.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@
PolicyEngine automatically calculates `ak_permanent_fund_dividend` and
`ak_energy_relief` for each person who lives in Alaska, holds one of the
immigration statuses in the dividend statute, and takes up the dividend. These
amounts are calculated benefits, rather than imputed income or fixed default
inputs. PolicyEngine cannot resolve the statute's other tests from its inputs:
an application, residence on the application date and during all of the prior
calendar year, 72 consecutive hours of presence in the prior two years,
allowable absences, Selective Service compliance, or a felony sentence or
conviction-based incarceration during that year. `is_incarcerated` records no
amounts are calculated benefits. Beginning with the 2026 dividend, the model
also checks supplied qualifying-year residence and immigration status. Annual
inputs cannot establish residence throughout that year or on the application
date. The model also lacks inputs for filing an application, 72 consecutive
hours of presence in the prior two years, allowable absences, Selective Service
compliance, and a felony sentence or conviction-based incarceration during
that year. `is_incarcerated` records no
conviction and does not tie to that year, so it does not affect the dividend.
Supplying wages and other known income does not disable either calculation.

Expand Down Expand Up @@ -60,7 +61,15 @@ PolicyEngine leaves the other values of `immigration_status` out:
Alaska tests the status a person holds during the qualifying year and on the
application date (15 AAC 23.154(e)), and under 15 AAC 23.154(c) an alien's
qualifying year starts on January 1 after the person gains the status.
PolicyEngine has no status history, so it reads the status for the dividend year.
For dividends before 2026, PolicyEngine reads the dividend-year status.
Beginning in 2026, the qualifying year is the previous calendar year. Supply
that year's `state_code_str`, `state_code`, `state_name`, or `state_fips` for
each household and `immigration_status` or `immigration_status_str` for each
person. If a row omits a history input, its dividend-year check applies.
For example, supplying Washington residence in 2025 denies both 2026 payments
even if the applicant lives in Alaska in 2026. Annual immigration status cannot
establish the exact grant date. Use the take-up input when the grant date makes
the applicant ineligible.

`takes_up_ak_permanent_fund_dividend_if_eligible` covers the statute's other
tests and anyone who does not apply. It defaults to true, so a household
Expand All @@ -78,8 +87,17 @@ calendar years before the dividend year qualify. The Division [takes
applications](https://pfd.alaska.gov/application/applying-for-a-child) for a child
"born on or before December 31st of the qualifying year." A child born during the
qualifying year qualifies only under (c), and only through a parent eligible for
that dividend. `ak_permanent_fund_dividend_eligible` tests the child's own
status, not a parent's eligibility.
that dividend. Beginning in 2026, supply `birth_year` to apply the cutoff.
For a 2026 dividend, a birth year of 2026 denies both payments.

Supply `parent_1_id` or `parent_2_id` and matching `person_id` values to link a
child to parents in the household. If a child was born in the qualifying year
and has supplied parent links, either linked parent can satisfy the parent
eligibility check. For a minor adopted by an eligible linked parent in either
of the two years before the dividend year, supply `adopted_this_year` for the
year of adoption. The model uses the adoption and status inputs to apply the
immigration timing exception for foreign-born adoptees and still checks the
child's dividend-year status. [15 AAC 23.154(f), printed p. 56](https://pfd.alaska.gov/docs/permanentfunddividendlibraries/statutes-and-regulations/2023-statutes-and-regulations.pdf?sfvrsn=70043cac_1#page=62)

PolicyEngine cannot identify a child born during the dividend year from `age`,
because a child aged 0 may have a birth date in either calendar year. Populace
Expand All @@ -94,10 +112,10 @@ records as `source_year`. Of the people aged 0 in Populace's 2024 Alaska records
96% of them have birth dates in 2022 or 2023 and can qualify under (c). If every
survey fell in the dividend year instead, 71% to 87% could. The ranges run from
mid-February to mid-April interviews. `birth_year`, which subtracts `age` from
the year, would put all of them in the dividend year. So the model pays a
resident aged 0 unless the take-up input says otherwise. Set that input to false
for a child born during the dividend year, or for a child born during the
qualifying year who has no eligible parent.
the year, would put all of them in the dividend year. The model uses only a
birth year supplied as an input for the cutoff. If birth year or parent links
are unavailable, set take-up to false for a child who fails the corresponding
requirement.

### Recipients in microsimulation

Expand Down
7 changes: 6 additions & 1 deletion policyengine_us/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
from policyengine_core.parameters.operations.uprate_parameters import (
uprate_parameters,
)
from .tools.alaska_pfd_inputs import record_alaska_pfd_input_sources
from .tools.default_uprating import add_default_uprating
from .tools.marital_units import infer_missing_marital_units
from .tools.tob import TobCalculationMixin
Expand Down Expand Up @@ -163,7 +164,8 @@ class CountryTaxBenefitSystem(TaxBenefitSystem):
modelled_policies = COUNTRY_DIR / "programs.yaml"

def preprocess_situation(self, situation, default_period=None):
return infer_missing_marital_units(situation, default_period, self)
situation = infer_missing_marital_units(situation, default_period, self)
return record_alaska_pfd_input_sources(situation, default_period)

def __init__(
self,
Expand Down Expand Up @@ -560,6 +562,9 @@ def _backfill_state_code_from_str(simulation):
state_code_str = simulation.get_holder("state_code_str")
for known_period in state_code_str.get_known_periods():
array = state_code_str.get_array(known_period)
# A sparse string array can have other geography inputs on its omitted rows.
if (array == "").any():
continue
simulation.set_input("state_code", known_period, StateCode.encode(array))
state_code_str.delete_arrays(known_period)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,214 @@
output:
ak_permanent_fund_dividend_eligible: [true, false]
ak_permanent_fund_dividend: [2_072, 0]

- name: Case 8, an applicant who moved to Alaska after the qualifying year gets neither payment.
period: 2026
# Alaska PFD Division, Eligibility Requirements, first 2026 requirement.
# https://pfd.alaska.gov/eligibility/eligibility-requirements
# Washington in 2025 makes eligibility false. 0 x 1,000 = 0 and 0 x 200 = 0.
input:
people:
person1:
age: 40
immigration_status: CITIZEN
households:
household:
members: [person1]
state_code: {2025: WA, 2026: AK}
output:
ak_permanent_fund_dividend_eligible: false
ak_permanent_fund_dividend: 0
ak_energy_relief: 0

- name: Case 9, an applicant granted asylum after the qualifying year gets neither payment.
period: 2026
# Alaska PFD Division, Immigration, proof of asylum.
# https://pfd.alaska.gov/eligibility/immigration
# Fixed-term parole in 2025 falls outside the status list. 0 x 1,000 = 0 and 0 x 200 = 0.
input:
people:
person1:
age: 40
immigration_status: {2025: PAROLED_ONE_YEAR, 2026: ASYLEE}
households:
household:
members: [person1]
state_code: {2025: AK, 2026: AK}
output:
ak_permanent_fund_dividend_eligible: false
ak_permanent_fund_dividend: 0
ak_energy_relief: 0

- name: Case 10, a child born after the qualifying year gets neither payment.
period: 2026
# Alaska PFD Division, Applying for a Child, birth certificate.
# https://pfd.alaska.gov/application/applying-for-a-child
# Alaska DOR release 26-004 provides 1,000 in PFD and 200 in energy relief.
# https://dor.alaska.gov/department-of-revenue/news-detail/2026/09/28/department-of-revenue-announces-2026-permanent-fund-dividend-amount
# The qualifying parent receives 1,000 + 200. A 2026 birth is after 2025,
# so the child receives 0 + 0.
input:
people:
person1:
age: 35
person2:
age: 0
birth_year: 2026
households:
household:
members: [person1, person2]
state_code: AK
output:
ak_permanent_fund_dividend_eligible: [true, false]
ak_permanent_fund_dividend: [1_000, 0]
ak_energy_relief: [200, 0]

- name: Omitted history uses the dividend-year state for that household
period: 2026
# AS 43.23.005(a)(3). Washington fails the residency check. The omitted
# history falls back to Alaska. The payments are 0 + 0 and 1,000 + 200.
input:
people: {mover: {age: 40}, no_history: {age: 40}}
households:
moved: {members: [mover], state_code: {2025: WA, 2026: AK}}
omitted: {members: [no_history], state_code: AK}
output:
ak_permanent_fund_dividend_eligible: [false, true]
ak_permanent_fund_dividend: [0, 1_000]
ak_energy_relief: [0, 200]

- name: Different state fields preserve each household's supplied history
period: 2026
# AS 43.23.005(a)(3). Each Alaska history pays 1,000 + 200.
# Explicit California fails the check and pays 0 + 0.
input:
people:
enum_input: {age: 40}
string_input: {age: 40}
name_input: {age: 40}
fips_input: {age: 40}
california: {age: 40}
households:
enum_home: {members: [enum_input], state_code: {2025: AK, 2026: AK}}
string_home:
members: [string_input]
state_code: AK
state_code_str: {2025: AK}
name_home: {members: [name_input], state_name: {2025: AK, 2026: AK}}
fips_home: {members: [fips_input], state_fips: {2025: 2, 2026: 2}}
california_home: {members: [california], state_code: {2025: CA, 2026: AK}}
output:
ak_permanent_fund_dividend_eligible: [true, true, true, true, false]
ak_permanent_fund_dividend: [1_000, 1_000, 1_000, 1_000, 0]
ak_energy_relief: [200, 200, 200, 200, 0]

- name: Different status fields preserve each person's supplied history
period: 2026
# 15 AAC 23.154(c). Refugee status passes and pays 1,000 + 200.
# Fixed-term parole in 2025 fails and pays 0 + 0.
input:
people:
long_term: {immigration_status: {2025: REFUGEE, 2026: REFUGEE}}
new_asylee:
immigration_status: {2026: ASYLEE}
immigration_status_str: {2025: PAROLED_ONE_YEAR}
households:
household: {members: [long_term, new_asylee], state_code: AK}
output:
ak_permanent_fund_dividend_eligible: [true, false]
ak_permanent_fund_dividend: [1_000, 0]
ak_energy_relief: [200, 0]

- name: Foreign-born child adopted in 2025 by an eligible resident qualifies
period: 2026
# AS 43.23.005(c) and 15 AAC 23.154(f). The eligible parent and the children
# adopted in 2024 and 2025 each receive 1,000 + 200. A 2023 adoption falls
# outside the two-year window. Prior-year parole then reduces both payments to 0.
input:
people:
parent: {age: 35, person_id: 1, immigration_status: CITIZEN}
child:
age: 1
person_id: 2
parent_1_id: 1
birth_year: 2024
adopted_this_year: {2025: true}
immigration_status: {2025: PAROLED_ONE_YEAR, 2026: LEGAL_PERMANENT_RESIDENT}
adopted_2024:
age: 3
person_id: 3
parent_1_id: 1
adopted_this_year: {2024: true}
immigration_status: {2025: PAROLED_ONE_YEAR, 2026: LEGAL_PERMANENT_RESIDENT}
adopted_2023:
age: 4
person_id: 4
parent_1_id: 1
adopted_this_year: {2023: true}
immigration_status: {2025: PAROLED_ONE_YEAR, 2026: LEGAL_PERMANENT_RESIDENT}
households:
household: {members: [parent, child, adopted_2024, adopted_2023], state_code: AK}
output:
ak_permanent_fund_dividend_eligible: [true, true, true, false]
ak_permanent_fund_dividend: [1_000, 1_000, 1_000, 0]
ak_energy_relief: [200, 200, 200, 0]

- name: Child born in the qualifying year with no eligible parent
period: 2026
# AS 43.23.005(a)(3) and (c). The parent on fixed-term parole and the
# child who depends on that parent's eligibility both receive 0 + 0.
input:
people:
parent: {age: 35, person_id: 1, immigration_status: PAROLED_ONE_YEAR}
child:
age: 0
person_id: 2
parent_1_id: 1
birth_year: 2025
immigration_status: CITIZEN
households:
household: {members: [parent, child], state_code: AK}
output:
ak_permanent_fund_dividend_eligible: [false, false]
ak_permanent_fund_dividend: [0, 0]
ak_energy_relief: [0, 0]

- name: Eligible parent with children before, at, and after the birth cutoff
period: 2026
# AS 43.23.005(c) and the Division's Applying for a Child guidance.
# The 2024 child, linked 2025 child and age-only child each receive the
# same 1,000 + 200 as the parent. The 2026 child receives 0 + 0.
input:
people:
parent: {age: 35, person_id: 1}
earlier: {age: 1, birth_year: 2024}
boundary: {age: 0, birth_year: 2025, person_id: 2, parent_2_id: 1}
age_only: {age: 0}
later: {age: 0, birth_year: 2026}
households:
household:
members: [parent, earlier, boundary, age_only, later]
state_code_str: {2025: AK, 2026: AK}
state_code: {2026: AK}
output:
ak_permanent_fund_dividend_eligible: [true, true, true, true, false]
ak_permanent_fund_dividend: [1_000, 1_000, 1_000, 1_000, 0]
ak_energy_relief: [200, 200, 200, 200, 0]

- name: Sparse state strings and FIPS preserve qualifying-year histories
period: 2026
# AS 43.23.005(a)(3) and 15 AAC 23.154(c). The mover and the applicant
# with prior fixed-term parole get 0 + 0. The refugee in Alaska gets 1,000 + 200.
input:
people:
mover: {age: 40}
long_term: {immigration_status_str: {2025: REFUGEE, 2026: REFUGEE}}
new_asylee: {immigration_status_str: {2025: PAROLED_ONE_YEAR, 2026: ASYLEE}}
households:
string_home: {members: [mover], state_code_str: {2025: WA, 2026: AK}}
fips_home: {members: [long_term, new_asylee], state_fips: {2025: 2, 2026: 2}}
output:
ak_permanent_fund_dividend_eligible: [false, true, false]
ak_permanent_fund_dividend: [0, 1_000, 0]
ak_energy_relief: [0, 200, 0]
63 changes: 63 additions & 0 deletions policyengine_us/tools/alaska_pfd_inputs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
from policyengine_core.periods import period

from policyengine_us.tools.general import has_input_for_period


STATE_INPUTS = ("state_code_str", "state_code", "state_name", "state_fips")
STATUS_INPUTS = ("immigration_status", "immigration_status_str")

STATE_INPUT_SOURCE = "ak_pfd_state_input_source"
STATUS_INPUT_SOURCE = "ak_pfd_status_input_source"


def record_alaska_pfd_input_sources(situation, default_period):
"""Record which alias each row supplied before Core fills omitted rows."""
result = situation.copy()
for plural, aliases, source_variable in (
("households", STATE_INPUTS, STATE_INPUT_SOURCE),
("people", STATUS_INPUTS, STATUS_INPUT_SOURCE),
):
entities = situation.get(plural)
if not isinstance(entities, dict):
continue

updated = entities.copy()
for name, entity in entities.items():
if not isinstance(entity, dict):
continue
sources = {}
for source, alias in enumerate(aliases, start=1):
values = entity.get(alias)
if not isinstance(values, dict):
values = {default_period: values}
for year, value in values.items():
if value is None or year is None:
continue
try:
year = period(year)
except (TypeError, ValueError):
continue # Core validates the original input.
if year.unit == "year" and year.size == 1:
sources.setdefault(str(year), source)
if sources:
updated[name] = {**entity, source_variable: sources}
result[plural] = updated
return result


def supplied_alaska_pfd_inputs(population, year, aliases, source_variable):
"""Yield each supplied alias and the rows for which it takes precedence."""
simulation = population.simulation
if has_input_for_period(simulation, source_variable, year):
sources = population(source_variable, year)
for source, alias in enumerate(aliases, start=1):
rows = sources == source
if rows.any():
yield alias, rows
return

# A flat situation or a directly supplied array gives every row a value.
for alias in aliases:
if has_input_for_period(simulation, alias, year):
yield alias, True
return
Loading
Loading