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
1 change: 1 addition & 0 deletions changelog.d/vt-fair-share.added.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Added the Vermont Fair Share high-income surcharge proposals as a contributed reform.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
description: Vermont applies the H.794 high-income surcharge under the Fair Share for Vermont proposals if this is true.
values:
0000-01-01: false
metadata:
unit: bool
period: year
label: Fair Share for Vermont surcharge options (H.794) in effect
reference:
- title: "Vermont H.794 (2026) as introduced, Sec. 2 (32 V.S.A. § 5822a) and Sec. 11(b) #page 2-3,14"
href: https://legislature.vermont.gov/Documents/2026/Docs/BILLS/H-0794/H-0794%20As%20Introduced.pdf#page=2
- title: "Vermont S.282 (2026) as introduced, Sec. 2 (32 V.S.A. § 5822a) and Sec. 11(b) #page 2,14"
href: https://legislature.vermont.gov/Documents/2026/Docs/BILLS/S-0282/S-0282%20As%20Introduced.pdf#page=2
- title: Fair Share for Vermont, Recovering Federal Tax Cuts for the Wealthiest Vermonters
href: https://fairsharevt.org/revenue-proposals-tax-cuts
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
description: Vermont sets these marginal surcharge rates on federal adjusted gross income under the Fair Share for Vermont proposals.
metadata:
type: marginal_rate
threshold_unit: currency-USD
rate_unit: /1
period: year
label: Fair Share for Vermont surcharge options (H.794) rates
documentation: >-
Defaults to the Fair Share for Vermont "Original Proposal + Clawback
Proposal" option, which is 32 V.S.A. § 5822a as drafted in H.794 and S.282:
2% of federal AGI over $250,000 plus an additional 6% over $500,000, an 8%
total marginal rate above $500,000. Original Proposal (3% over $500,000):
set rate[1] to 0 and rate[2] to 0.03. Federal Tax Cut Clawback Proposal (2%
over $250,000 and 5% over $500,000; in bill terms 2% plus an additional 3%):
keep rate[1] at 0.02 and set rate[2] to 0.05. Each rate is a total marginal
rate, so the rate above $500,000 replaces the rate above $250,000 instead of
adding to it. The Fair Share for Vermont page gives no base, filing-status
treatment or indexing for these two options; this reform assumes they use
the base, thresholds, filing-status treatment and indexing of H.794. The
Original Proposal taxes only AGI over $500,000, as Fair Share for Vermont
and the H.794 testimony describe it; its predecessor, H.828 (2024), was
drafted as 3% of all federal AGI once AGI reaches $500,000. H.794
§ 5822a(d) indexes "the minimum amount of federal adjusted gross income
necessary to incur a surcharge," singular wording carried over from the
single-threshold H.828; that amount is each tier's "equal to or greater
than" trigger. This reform indexes both thresholds, and with them the
"exceeding" base amounts, so each tier's trigger stays equal to its base
and no cliff arises. Both thresholds rise from 2027 with the uprating that
Vermont's income tax brackets use in PolicyEngine (gov.irs.uprating,
chained CPI-U); § 5822(b)(2) names CPI-U. The surcharge applies to the full
federal AGI of the return with no part-year or nonresident proration, as
with the baseline Vermont income tax in PolicyEngine.
reference:
- title: "Vermont H.794 (2026) as introduced, Sec. 2 (32 V.S.A. § 5822a) and Sec. 11(b) #page 2-3,14"
href: https://legislature.vermont.gov/Documents/2026/Docs/BILLS/H-0794/H-0794%20As%20Introduced.pdf#page=2
- title: "Vermont S.282 (2026) as introduced, Sec. 2 (32 V.S.A. § 5822a) and Sec. 11(b) #page 2,14"
href: https://legislature.vermont.gov/Documents/2026/Docs/BILLS/S-0282/S-0282%20As%20Introduced.pdf#page=2
- title: Rep. Kate Logan, H.794 testimony to House Ways and Means (February 13, 2026)
href: https://legislature.vermont.gov/Documents/2026/Workgroups/House%20Ways%20and%20Means/Bills/H.794/W~Kate%20Logan~H.794%20Testimony%20to%20House%20Ways%20and%20Means~2-13-2026.pdf#page=1
- title: Fair Share for Vermont, Recovering Federal Tax Cuts for the Wealthiest Vermonters
href: https://fairsharevt.org/revenue-proposals-tax-cuts
- title: 32 V.S.A. § 5822(b)(2), annual inflation adjustment of income tax brackets
href: https://legislature.vermont.gov/statutes/section/32/151/05822
brackets:
- threshold:
2026-01-01: 0
rate:
2026-01-01: 0
- threshold:
values:
2026-01-01: 250_000
metadata:
uprating:
parameter: gov.irs.uprating
rounding:
type: downwards
interval: 50
rate:
2025-01-01: 0
2026-01-01: 0.02
- threshold:
values:
2026-01-01: 500_000
metadata:
uprating:
parameter: gov.irs.uprating
rounding:
type: downwards
interval: 50
rate:
2025-01-01: 0
2026-01-01: 0.08
5 changes: 5 additions & 0 deletions policyengine_us/reforms/reforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,9 @@
from .states.vt.dependent_exemption.vt_dependent_exemption_reform import (
create_vt_dependent_exemption_reform_fn,
)
from .states.vt.fair_share.vt_fair_share_reform import (
create_vt_fair_share_reform,
)
from .states.mi.dependent_exemption.mi_dependent_exemption_reform import (
create_mi_dependent_exemption_reform_fn,
)
Expand Down Expand Up @@ -510,6 +513,7 @@ def create_structural_reforms_from_parameters(parameters, period):
ri_exemption = create_ri_exemption_reform_fn(parameters, period)
ok_dependent_exemption = create_ok_dependent_exemption_reform_fn(parameters, period)
vt_dependent_exemption = create_vt_dependent_exemption_reform_fn(parameters, period)
vt_fair_share = create_vt_fair_share_reform(parameters, period)
in_dependent_exemption = create_in_dependent_exemption_reform_fn(parameters, period)
mi_dependent_exemption = create_mi_dependent_exemption_reform_fn(parameters, period)
ne_dependent_exemption = create_ne_dependent_exemption_reform_fn(parameters, period)
Expand Down Expand Up @@ -677,6 +681,7 @@ def create_structural_reforms_from_parameters(parameters, period):
ri_exemption,
ok_dependent_exemption,
vt_dependent_exemption,
vt_fair_share,
in_dependent_exemption,
mi_dependent_exemption,
ne_dependent_exemption,
Expand Down
1 change: 1 addition & 0 deletions policyengine_us/reforms/states/vt/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
from .dependent_exemption import create_vt_dependent_exemption_reform_fn
from .fair_share import create_vt_fair_share_reform
5 changes: 5 additions & 0 deletions policyengine_us/reforms/states/vt/fair_share/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .vt_fair_share_reform import (
create_vt_fair_share,
create_vt_fair_share_reform,
vt_fair_share,
)
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
from policyengine_us.model_api import *
from policyengine_core.periods import period as period_


def create_vt_fair_share() -> Reform:
class vt_fair_share_surcharge(Variable):
value_type = float
entity = TaxUnit
label = "Vermont H.794 high-income surcharge"
unit = USD
definition_period = YEAR
defined_for = StateCode.VT
reference = (
# PDF pages 2-3, 14
"https://legislature.vermont.gov/Documents/2026/Docs/BILLS/H-0794/H-0794%20As%20Introduced.pdf#page=2",
# PDF pages 2, 14
"https://legislature.vermont.gov/Documents/2026/Docs/BILLS/S-0282/S-0282%20As%20Introduced.pdf#page=2",
"https://fairsharevt.org/revenue-proposals-tax-cuts",
)

def formula(tax_unit, period, parameters):
p = parameters(period).gov.contrib.states.vt.fair_share
# 32 V.S.A. § 5822a(a)-(c) as drafted: the base is the federal AGI
# of the return, with one threshold schedule for every filing status.
agi = max_(tax_unit("adjusted_gross_income", period), 0)
return where(p.in_effect, p.rate.calc(agi), 0)

# Mirrors policyengine_us/variables/gov/states/vt/tax/income/
# vt_income_tax_before_refundable_credits.py plus the surcharge; keep the
# two formulas in sync when the baseline changes.
class vt_income_tax_before_refundable_credits(Variable):
value_type = float
entity = TaxUnit
label = "Vermont income tax before refundable credits"
unit = USD
definition_period = YEAR
defined_for = StateCode.VT
reference = (
"https://legislature.vermont.gov/Documents/2026/Docs/BILLS/H-0794/H-0794%20As%20Introduced.pdf#page=2",
"https://legislature.vermont.gov/statutes/section/32/151/05822",
)

def formula(tax_unit, period, parameters):
itax_before_credits = tax_unit(
"vt_income_tax_before_non_refundable_credits", period
)
non_refundable_credits = tax_unit("vt_non_refundable_credits", period)
tax_after_non_refundable_credits = max_(
0, itax_before_credits - non_refundable_credits
)
# § 5822a(a)-(b): the surcharge is in addition to any tax assessed
# under chapter 151, so it is added after the non-refundable credits,
# which apply against the § 5822 tax, and outside the § 5822(a)(6)
# comparison with 3% of federal AGI.
surcharge = tax_unit("vt_fair_share_surcharge", period)
return tax_after_non_refundable_credits + surcharge

class reform(Reform):
def apply(self):
self.update_variable(vt_fair_share_surcharge)
self.update_variable(vt_income_tax_before_refundable_credits)

return reform


def create_vt_fair_share_reform(parameters, period, bypass: bool = False):
if bypass:
return create_vt_fair_share()

p = parameters.gov.contrib.states.vt.fair_share

reform_active = False
current_period = period_(period)

for _ in range(5):
if p(current_period).in_effect:
reform_active = True
break
current_period = current_period.offset(1, "year")

if reform_active:
return create_vt_fair_share()
else:
return None


vt_fair_share = create_vt_fair_share_reform(None, None, bypass=True)
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
"""Exercise the in_effect activation path of the Vermont H.794 surcharge reform.

The YAML tests apply the reform through the module-level ``bypass=True``
object (``vt_fair_share``), so they never run the non-bypass branch of
``create_vt_fair_share_reform`` or its registration in
``create_structural_reforms_from_parameters``. That is the path the app and
API take when a user sets ``gov.contrib.states.vt.fair_share.in_effect``. The
factory looks at the period and the next four years and returns a ``Reform``
subclass if the toggle is true in any of them, or ``None`` otherwise.

As in ``test_dependent_exemption_reform_activation.py``, only the
``gov.contrib.states`` subtree is cloned, and the copied root's ``parent``
back-reference is cleared so updates stay contained without mutating the
global parameter tree. No test builds a tax-benefit system or copies the whole
parameter tree: deep-copying ``system.parameters`` walks the full tree (~1 GB
peak), while the cloned subtree peaks at a few MB.
"""

from types import SimpleNamespace

import pytest

from policyengine_core.reforms import Reform
from policyengine_us.reforms import create_structural_reforms_from_parameters
from policyengine_us.reforms.states.vt.fair_share.vt_fair_share_reform import (
create_vt_fair_share_reform,
)
from policyengine_us.system import system

YEAR = 2026
PERIOD = f"{YEAR}-01-01"
# The factory checks the period and the next four years.
LOOKAHEAD_YEARS = 5
REFORM_VARIABLES = {
"vt_fair_share_surcharge",
"vt_income_tax_before_refundable_credits",
}


def _states_with_in_effect(**update):
# Clone ONLY gov.contrib.states and sever the copy from its parent, so the
# in_effect update below neither escapes into nor copies the global tree.
states_copy = system.parameters.gov.contrib.states.clone()
states_copy.parent = None
states_copy.vt.fair_share.in_effect.update(value=True, **update)
return states_copy


def _contrib_states_only(states):
# The factory reads only gov.contrib.states.vt.fair_share, so a thin
# namespace exposing the copied subtree is sufficient.
return SimpleNamespace(gov=SimpleNamespace(contrib=SimpleNamespace(states=states)))


class _ParameterView:
"""Delegate to a parameter node, with some of its children replaced."""

def __init__(self, node, **children):
self._node = node
self.__dict__.update(children)

def __getattr__(self, name):
return getattr(self._node, name)

def __call__(self, *args, **kwargs):
return self._node(*args, **kwargs)


def _global_tree_with_states(states):
# create_structural_reforms_from_parameters calls every contrib factory.
# They all read the global tree (not copied, not modified) except under
# gov.contrib.states, which comes from the cloned subtree.
root = system.parameters
return _ParameterView(
root,
gov=_ParameterView(
root.gov,
contrib=_ParameterView(root.gov.contrib, states=states),
),
)


class _RecordingSystem:
"""Stands in for the system a Reform edits; records updated variables."""

def __init__(self):
self.updated_variables = set()

def update_variable(self, variable):
self.updated_variables.add(variable.__name__)

def __getattr__(self, name):
# Any other edit by another active structural reform is not under test.
return lambda *args, **kwargs: None


def _variables_updated_by(reform):
recorder = _RecordingSystem()
reform.apply(recorder)
return recorder.updated_variables


def _assert_reform_subclass(result):
assert isinstance(result, type) and issubclass(result, Reform), (
f"expected a Reform subclass, got {result!r}"
)


def test__given_default_parameters__then_factory_returns_none():
# in_effect is false for every year by default; the factory only reads it.
assert create_vt_fair_share_reform(system.parameters, PERIOD) is None


@pytest.mark.parametrize("years_ahead", range(LOOKAHEAD_YEARS))
def test__given_in_effect_true_within_lookahead__then_factory_returns_reform(
years_ahead,
):
# in_effect is true only in one year: the period itself (0) or up to four
# years later.
states = _states_with_in_effect(period=f"year:{YEAR + years_ahead}:1")

result = create_vt_fair_share_reform(_contrib_states_only(states), PERIOD)

_assert_reform_subclass(result)
assert _variables_updated_by(result) == REFORM_VARIABLES


@pytest.mark.parametrize("years_ahead", [LOOKAHEAD_YEARS, LOOKAHEAD_YEARS + 5])
def test__given_in_effect_true_only_beyond_lookahead__then_factory_returns_none(
years_ahead,
):
# in_effect is false through the fifth year and true from then on.
states = _states_with_in_effect(start=f"{YEAR + years_ahead}-01-01")

result = create_vt_fair_share_reform(_contrib_states_only(states), PERIOD)

assert result is None


def test__given_in_effect_true__then_structural_reforms_include_vt_fair_share():
baseline = create_structural_reforms_from_parameters(system.parameters, PERIOD)
assert not REFORM_VARIABLES & _variables_updated_by(baseline)

states = _states_with_in_effect(period=f"year:{YEAR}:1")
combined = create_structural_reforms_from_parameters(
_global_tree_with_states(states), PERIOD
)

assert REFORM_VARIABLES <= _variables_updated_by(combined)
Loading
Loading