Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Segment and cache Stage 12 US simulations

Đang mở
#711 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@anth-volk đang làm issue này rồi.

Từ ngày 30/9/2026.

  • #712 của @anth-volk — đang mở

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
python

Hướng nghiên cứu

Start by locating the Stage 12 worker coordination path and the existing API v1 runner behavior that defines 20-part execution, then identify the dataset, baseline-cache, deployment-validation, and worker-manifest entry points. Verify the workflow with unit tests for segmentation, caching, coordination, validation, error preservation, and cancellation. Done means independent concurrent baseline and reform execution, 40 segment calls, validated cache artifacts, stable policy errors, consistent failure states, and deployment documentation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Problem

Stage 12 US reports currently execute each baseline and reform simulation as one calculation. They do not have the 20-part execution and precomputed baseline data used by the API v1 runner. The current coordination path also needs to preserve policy-validation details and stop observing the other simulation normally after either baseline or reform fails.

Scope

  • Implement deterministic 20-part US simulation execution within Stage 12 without importing or calling API v1 runner code.
  • Keep baseline and reform execution separate, producing 40 segment function calls for a complete report.
  • Precompute, version, store, validate, and load the Stage 12 dataset and baseline cache artifacts.
  • Include cache identity and validation results in the Stage 12 worker manifest.
  • Observe baseline and reform concurrently.
  • When either simulation fails, cancel the other simulation, preserve its failure details, and persist consistent report and simulation states.
  • Reject malformed policy effective periods with a stable error code and detailed message.
  • Document the deployment, cache, execution, and failure-handling behavior.
  • Add unit tests for segmentation, cache construction and loading, deployment validation, coordination, error preservation, and cancellation.

Acceptance criteria

  • A successful segmented US report produces two simulation calls and 40 segment calls.
  • Baseline and reform calculations run concurrently and remain separate through aggregation.
  • A failed simulation causes the report to fail and the other simulation to be cancelled or recorded as incomplete.
  • Validation errors retain their structured error code and useful summary at the simulation and report levels.
  • Worker deployment rejects missing, mismatched, or inaccessible cache artifacts.
  • The implementation remains independent of API v1 runner modules.
  • Unit tests and deployment documentation cover the complete workflow.
Ngôn ngữ chính
Python
Star
1
Fork
1
Merge trung bình
1 ngày 6 giờ
Pull request đã merge (30 ngày)
24

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của PolicyEngine/policyengine-sim-api

Tất cả issue của PolicyEngine/policyengine-sim-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.