Skip to content

Add CRFB TOB scenario contract#338

Draft
MaxGhenis wants to merge 1 commit intomainfrom
codex/crfb-tob-scenario-runner
Draft

Add CRFB TOB scenario contract#338
MaxGhenis wants to merge 1 commit intomainfrom
codex/crfb-tob-scenario-runner

Conversation

@MaxGhenis
Copy link
Copy Markdown
Contributor

@MaxGhenis MaxGhenis commented May 3, 2026

Summary

  • add a named CRFB Post-OBBBA long-run TOB scenario contract
  • expose constants for the target source, scenario id, target hash, and trustees-2025 core threshold law mode
  • add metadata validation helpers that reject raw current-law substitution and hash mismatches

Validation

  • ruff check src/policyengine/scenarios tests/test_crfb_scenario_contract.py
  • ruff format --check src/policyengine/scenarios tests/test_crfb_scenario_contract.py
  • PYTHONPATH=src /Users/maxghenis/PolicyEngine/policyengine.py/.venv/bin/python -m pytest tests/test_crfb_scenario_contract.py

Notes

  • This package carries only the portable scenario contract. It does not try to load policyengine-us-data or imply the long-term model/artifacts are installed.
  • The first pytest attempt with PYTHONPATH=. failed because this repo uses a src layout; rerun with PYTHONPATH=src passed.

@MaxGhenis MaxGhenis force-pushed the codex/crfb-tob-scenario-runner branch from 9382913 to eb751fd Compare May 3, 2026 11:09
@MaxGhenis MaxGhenis force-pushed the codex/crfb-tob-scenario-runner branch from eb751fd to faa126e Compare May 3, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant