Provenance slips: model_summary says boe_var is 'not-installed'; obr_shock records model_id 'obr-emulator' and the wrong source_url
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ó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- python
- Lĩnh vực
- backend-api-design
Hướng nghiên cứu
Bắt đầu với integration/src/policyengine_macro/core.py:4174 và so sánh giá trị distribution của nó với các mục forecast_uk và latest_shocks ở dòng 1432 và 1498. Thêm kiểm thử hồi quy cho nguồn gốc của svar_summary() khi có thể import boe_var, đồng thời kiểm tra xem có nên thay đổi đường dẫn nguồn được báo cáo như issue đề xuất hay không. Hoàn tất khi phiên bản package được báo cáo chính xác và kiểm thử chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What
model_summary (MCP) and pe-macro summary (CLI) report package_version: "not-installed" for the BoE SVAR, even though boe_var is installed and every other SVAR tool records 0.1.0.
Evidence
integration/src/policyengine_macro/core.py:4174 (main 153cf41, same on the redesign branch) asks for the distribution "boe-var-model". The installed distribution is boe-var (uv pip install "policyengine-macro[models] @ git+…#subdirectory=integration" → + boe-var==0.1.0). forecast_uk / latest_shocks use distribution="boe_var" (core.py:1432, :1498) and get 0.1.0.
Hosted, 6 Nov 2026:
model_summary() ->
"source": "/Users/janansadeqian/boe-var-model/results",
"provenance": {"package": "boe-var-model", "package_version": "not-installed", "model_version": "not-installed", "source_revision": "42cbcbb…", ...}
forecast_uk(horizons=4) ->
"provenance": {"package": "boe_var", "package_version": "0.1.0", ...}
Same locally from a fresh venv: core.svar_summary()["provenance"]["package_version"] == "not-installed".
Second, smaller point: the hosted source field is the container path /Users/janansadeqian/boe-var-model/results. That is by design (integration/modal_app.py:19-28 bakes repos at the same absolute paths), but to a user it reads as a developer's home directory. Consider reporting the path relative to the package, or omitting it in favour of source_url + source_revision.
Fix
Change distribution="boe-var-model" to "boe_var" at core.py:4174, plus a test that svar_summary()["provenance"]["package_version"] != "not-installed" when boe_var is importable.
Found in the r5 end-to-end test of the "Use the models" page.
🤖 Generated with Claude Code
- 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
-
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
-
Nowcast can't archive a new round: the hosted forecast_uk is pinned to boe-var data ending 2026Q1Đang mởdata question
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 34/100
PolicyEngine/macro#224 · 3 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