Repository navigation
Conversation
Add 2036 to the US time_period options and to the v2 catalog's METADATA_TIME_PERIODS, and update the canonical SPM contract doc's horizon. This must ship with the PolicyEngine bundle whose SPM forecast covers 2036; until then a 2036 request fails with SPM_YEAR_UNAVAILABLE. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #3928 +/- ##
===========================================
+ Coverage 45.25% 87.58% +42.33%
===========================================
Files 183 198 +15
Lines 11085 12223 +1138
Branches 1907 2161 +254
===========================================
+ Hits 5016 10706 +5690
+ Misses 5647 921 -4726
- Partials 422 596 +174 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
This was referenced Oct 14, 2026
Open
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #3927
Summary
policyengine_api/country.py: addsdict(name=2036, label="2036")to the UStime_periodoptions. The app's year picker, date ranges and budget-window starts all read this list. The UK is unchanged (2024–2030).policyengine_api/data/v2/catalog/extraction.py:METADATA_TIME_PERIODS["us"]becomesrange(2036, 2021, -1).docs/canonical-spm.md: the artifact horizon becomes 2022–2036.Draft until the bundle with a 2036 SPM forecast is ready.
SPM_YEAR_UNAVAILABLE.Budget windows already allow end years through 2099 (
BUDGET_WINDOW_MAX_END_YEAR). The worker reads its year boundary from the installed SPM provider. Neither needs a change here.The SPM tests that use 2036 as an unavailable year (
test_spm_settings.py,test_spm_year_worker_polling.py,test_budget_window_cache.py) run on mocked forecasts withyears=(2022, 2035). They don't depend on the installed artifact, so they're unchanged.Testing
ruff formatandruff checkare clean on the changed files.GET /us/metadatalists 2036."2036"in its SPM receipt.budget_window:2027:10completes.SPM_YEAR_UNAVAILABLE.🤖 Generated with Claude Code
https://claude.ai/code/session_01LqCGPgxDukji8Bhs57c5rH