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

Budget reform contract rows: carry the reform's receipt identity

Đã đóng
#629 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

Một pull request liên quan đã được merge.

  • #630 của @MaxGhenis — đã merge

Đá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
25/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
Lĩnh vực
backend

Hướng nghiên cứu

Start from the Budget reform contract's case rows and the existing reform_digest they carry, plus the ReformIdentity model from receipt schema v1 (#571). Pull request #630 is already open against this issue, so read it first and coordinate before editing. Done means each case row carries reform_identity for its route, or null with reform_identity_unavailable giving the reason, and reform_digest is kept.

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

Mô tả

Receipt schema v1 (#571) binds a reform as ReformIdentity: a representation plus the digest of its payload. The Budget reform contract's rows carry only the contract's own reform_digest, so a receipt or replay can't embed the reform a row ran without re-deriving it.

Each case row should also carry reform_identity, as ReformIdentity.model_dump(mode="json") named by the case id, for the representation its route consumes:

  • country.reform_dict → policyengine-uk.reform_dict/v1;
  • country.scenario_parameter_changes → scenario_reform_identity;
  • the wrapper routes → policyengine.reform_dict/v1.

Where v1 names no representation (Reform.from_dict), the case has a closure modifier, or receipts refuse a value, the row should carry null plus reform_identity_unavailable with the reason. Keep reform_digest. Agreed with W4 (qualification and receipts).

Ngôn ngữ chính
Python
Star
8
Fork
10
Merge trung bình
21 giờ 47 phút
Pull request đã merge (30 ngày)
48

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.py

Tất cả issue của PolicyEngine/policyengine.py

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.