Clarify birth-fact review, numeric parsing and changelog handling
Chưa có ai nhận issue này.
Đá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
- 28/100
Hướng nghiên cứu
Start with the referenced InputContract.__post_init__ and _number code in cliffs2017/native_currency.py, then review the README, changelog.d/counterfactual-currency.added.md, and pyproject.toml. The issue groups several independent contract, parsing, changelog, and packet compiler follow-ups; read the linked reviews and commits to understand their existing decisions. Done means resolving the listed suggestions while keeping synthetic regressions and preserving the stated scope and cost limits.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
PR #2's accepted independent review at 254141b returned COMPLETE/APPROVE with no P0–P2 findings and three P3 suggestions. This issue collects those suggestions. It does not change the proposed comparison's scope or qualify a native-year adapter, dataset or population result.
S1: align birth-fact declarations and review
InputContract.__post_init__, lines 277–304 groups fixed ages by entity. A recognized birth fact needs a reviewed disposition alongside fixed age on that same entity. A birth fact on another entity can remain without a scope or reason, while dropping it fails unless that entity also declares fixed age. These checks do not enforce the broader requirement in README line 47 across entities or when no age field appears.
Either extend the check to every recognized birth fact, with a clear rule for age on another entity, or document the narrower contract consistently. Add synthetic regressions for the chosen behavior. The review found no demonstrated population-output defect: this helper has no population adapter, and the stored-input inventories it examined contained no birth field.
S2: specify numeric conversion and preserve guard messages
_number, lines 76–110 converts a float through Decimal(str(value)). The resulting fraction represents that shortest decimal text rather than the float's exact binary value. Decimal also accepts monetary text with surrounding whitespace, underscores or non-ASCII digits. In lines 97–110, the ValueError handler catches ContractError as well, so some specific representation and non-finite errors surface as Invalid numeric value; their causes remain available.
Document the intended float and text rules, or narrow parsing deliberately, and preserve specific guard messages. Retain the existing representation bounds and malformed-input rejection. These suggestions concern precision claims and diagnostics; the accepted review found no wrong conversion for the declared decimal interpretation.
S3: choose a changelog convention for this repository
changelog.d/counterfactual-currency.added.md, line 1 is the only fragment. At this head, pyproject.toml has no towncrier configuration, and the repository has no changelog compiler or CI workflow. Decide whether to remove the unused fragment or configure changelog handling deliberately. A new changelog system need not accompany the pure-test CI job.
The existing 117 isolated synthetic tests passed on the recorded source. They establish neither a native-law population run nor managed model/data compatibility. Resolve these suggestions without changing archived outputs or treating their hybrid sensitivities as actual 2017 incidence.
Runner follow-ups from PR #2
The full second review at 3c6bf74 returned COMPLETE/APPROVE with no P0–P2 findings and two additional P3 suggestions:
- S4: update the README's local test command to invoke the guarded runner. Its direct pytest command omits the runner's version checks, model-import block and plugin isolation.
- S5: reject
PYTEST_ADDOPTSandPYTEST_PLUGINSoverrides so callers cannot quietly deselect tests while retaining the import-block marker.
PR #7, at 094e0f2, contains both fixes. They remain unmerged. Keep the original review's three suggestions above open under their existing definitions.
Packet compiler follow-ups from PR #5
The first full review at 58eb3e6c raised these two P3 suggestions alongside the P2 hypothetical-index test gap. Commit e2f6f78 adds the P2 regression. The second full review, completed through its guidance and artifact follow-up, resolved that finding and returned COMPLETE/APPROVE with no open P0–P2 findings. Both suggestions below remain open.
- S4: replace unexplained internal hold and constructor terms in the packet contract with the actual runtime prerequisites.
- S5: consider focused synthetic coverage for the once-per-block converter call, calendar and background receipts, and a scoped cross-entity birth declaration. The first review's bounded probe found those behaviors correct; it identified no wrong output.
These follow-ups supply no model/data or population qualification. Preserve the isolated test framework and the existing cost limits.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 0
- Merge trung bình
- 1 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 2
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/us-cliffs-2017
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
Tất cả issue của PolicyEngine/us-cliffs-2017
Issue tương tự
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
NousResearch/hermes-official-plugins#538 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidateCó thể đã có người làm @houzhongyu đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
MakazhanAlpamys/Soup#3415 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 2 ngày