Nowcast can't archive a new round: the hosted forecast_uk is pinned to boe-var data ending 2026Q1
Maintainer thường phản hồi trong vòng 9 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 34/100
Hướng nghiên cứu
Read nowcast.py and the workflow that invokes it, then trace how it calls hosted forecast_uk and archives rounds. Check whether a cheap capabilities or metadata request can detect the hosted model's data edge before the expensive forecast call; the issue also reports a redirect failure in mcp/client/streamable_http.py. Done means avoiding forecast calls when no newer round is available and checking the endpoint on the first due run after #195 merges.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Even once the data store is refreshed (#195 via #221), the nowcast job cannot archive a new round. The round comes from forecast_uk on the hosted MCP server, and that model does not read macro's data store. It reads boe-var-model's bundled data/boe_var_data.csv at the commit pinned in pyproject.toml:
boe_var @ git+https://github.com/PolicyEngine/boe-var-model@42cbcbb…- at 42cbcbb (and on boe-var-model main, last data commit cf5fdf7 on 2026-07-20, "Refresh data vintage to 2026Q1 (#2)"), the last row of
data/boe_var_data.csvis 2026Q1
So nowcast.py will stop with data edge 2026Q1 is already archived and nothing new has been released; no round written, as it did on 13 Aug (run 31670728758) and 19 Aug. The record has had no new round since 2026-07-29. The two archived boe-svar rounds, and the 07-28 unemployment satellite round, all have data edge 2026Q1.
There is also an unrelated crash: on 16 Sep (run 35058603658) the call itself failed with httpx.HTTPStatusError from mcp/client/streamable_http.py::_raise_for_unfollowed_redirect. That points to the Modal URL https://policyengine--policyengine-macro-mcp-serve.modal.run/mcp answering with a redirect. I have not re-tested it, to avoid starting a Modal container.
Upcoming releases a round could be archived ahead of
GDP 2026Q3 first estimate 12 Nov, unemployment 17 Nov, CPI 18 Nov (the next_release dates in #195's data).
Cost if nothing changes
Once #195 merges, --due 3 is true on 9–12 Nov and again on 14–18 Nov. On each of those days the job installs the MCP client and calls forecast_uk with 6000 draws, which takes about 5.5 minutes on a cold Modal container, only to be told "data edge 2026Q1 already archived". The same thing happened on 12–13 Aug and 17–19 Aug.
Options
- Refresh boe-var-model's data to 2026Q2 before 12 Nov: run
scripts/download_data.py, re-pin macro'sboe_var, and redeploy the MCP app. A round with a 2026Q2 edge that forecasts 2026Q3 is a scoreable claim for the 12/17/18 Nov releases only if it is archived before 07:00 on 12 Nov. That is a model-data change plus a deploy, so it needs you. A refresh after 12 Nov gives a 2026Q3 edge, which cannot be scored against these releases; its first scored period would be Q4 (February). - Skip the November window. The existing rounds already cover 2026Q3–2029Q2 and will be scored as the outturns land. Stop the wasted Modal calls by also gating
nowcast.pyon the hosted model's data edge: a cheapcapabilities/metadata call, or comparing against the last archived edge before callingforecast_uk. After that, make the boe-var data refresh a standing task right after each GDP first estimate, so the next round (edge 2026Q3, archived before the February releases) is in place. - Either way: after #195 merges, look at the first due run to check the endpoint no longer redirects (16 Sep crash).
Recommendation: option 2 now, without the gate the job will spend roughly 9 cold Modal calls in November for nothing. Choose option 1 only if you can refresh, re-pin and deploy calmly by 11 Nov.
- Ngôn ngữ chính
- HTML
- Star
- 3
- Fork
- 0
- Merge trung bình
- 8 ngày 15 giờ
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của PolicyEngine/macro
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
PolicyEngine/macro#225 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 9 ngày
-
question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
PolicyEngine/macro#214 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
bug documentation
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 76/100
PolicyEngine/macro#211 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 9 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 18/100
PolicyEngine/macro#230 ·
Maintainer thường phản hồi trong vòng 9 ngày
-
question
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 22/100
PolicyEngine/macro#227 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 9 ngày
Tất cả issue của PolicyEngine/macro
Issue tương tự
-
Runner API: GET /api/jobs/<id> returns branch: null; the branch only appears under input.branchĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
radiancelux/prgenie#204 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
WalletConnect/walletconnect-monorepo#7392 · 1 bình luận ·
-
Calendar sync: recurring events land a day late when the local start falls on a different UTC dateĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area: app type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
qutip/qutip#3088 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày