Segment and cache Stage 12 US simulations
维护者通常 1 天内回复
评估
- 难度
- 5/5
- 预计耗时
- 一周以上
- 新手友好度
- 35/100
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Python
- 星标
- 1
- 派生
- 1
- 平均合并
- 1 天 8 小时
- 30 天内合并 PR
- 51
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
PolicyEngine/policyengine-sim-api 的其他 Issue
-
Update policyengine to 6.7.3可能已有人在做 @policyengine 今天认领。 未关闭
难度 2/5 半天 新手友好度 70/100
PolicyEngine/policyengine-sim-api#823 ·
维护者通常 1 天内回复
-
Integration tests fail due to missing UV virtual environment setup可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
PolicyEngine/policyengine-sim-api#314 ·
维护者通常 1 天内回复
-
enhancement
难度 4/5 3-5 天 新手友好度 22/100
PolicyEngine/policyengine-sim-api#814 ·
维护者通常 1 天内回复
-
Register weighted-microdata rules: weights aren't values可能已有人在做 @anth-volk 于 3 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 30/100
PolicyEngine/policyengine-sim-api#806 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 25/100
PolicyEngine/policyengine-sim-api#805 ·
维护者通常 1 天内回复
查看 PolicyEngine/policyengine-sim-api 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
NousResearch/hermes-agent#140958 ·
维护者通常 1 天内回复
-
bisect
难度 2/5 1-3 小时 新手友好度 72/100
dtcxzyw/llvm-bisect-service#548 ·
-
难度 2/5 1-3 小时 新手友好度 82/100
sallowayma-git/IELTS-practice#248 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 65/100
anthropics/claude-plugins-official#6763 · 10 条评论 · 10 个 reaction ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复