Harden the ACS household type and SOI Table 1.3 packages (#430 review follow-up)
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
調査の方向性
Start with the three named areas: tests/test_chronicle_census_acs1_household_type.py, chronicle/sources/census_acs1_household_type.py, and packages/irs_soi/table_1_3/source_package.yaml; read the existing assertions and guards first. Then review the listed P3 nits and the related Table 1.2 and ACS5 references. Done means the specified mapping, column, and filing-status gaps are covered and the naming and aggregation issues are resolved.
索引モデルが issue の本文から書いたものです。
説明
Round 2 of the source-fidelity review of #430 (ledger-source-fidelity, at d9f83ee9) approved the PR: every one of its 3,094 new facts equals exactly one publisher cell. It also raised three P2 robustness gaps and three P3 nits. None of them changes a value today. Under the review rules they go in this one follow-up issue rather than block the merge.
P2: fragile today, worth fixing
- No test checks the ACS category mapping against Census's own labels.
tests/test_chronicle_census_acs1_household_type.pytakes its expected filters fromgenerator.cells(), the sameB11001_CELLSandB11003_CELLStables that wrote the packages. The reviewer swapped the own-children categories of B11003_004 and B11003_005 and regenerated the packages, and all 50 ACS tests still passed. The mapping is right today; the reviewer checked it against Census's B11001 and B11003 group pages. Fix: pin each variable's Census label text in the test, and derive the expected household type and own-children filters from that text. - The generator silently drops any estimate or margin column it doesn't list.
chronicle/sources/census_acs1_household_type.pychecks only that its declared variables are present in the response. A response with an extraB11001_010Ebuilds without error and leaves it out. The pinned responses hold exactly Census's 18 and 40 variables, so nothing is lost today. Fix: refuse unless the response's set of{table}_###Eand{table}_###Mcolumns equals the declared variables. - Table 1.3's filing-status guard doesn't tie the value cell to its status block. In
packages/irs_soi/table_1_3/source_package.yaml, each row's guard checks the status header in a column of its own, not the value column. Pointing the joint-return count at column F still validates, and the package then emits the married-filing-separately count (4,139,858) under the joint label. Only the TY2023 pinned values in the tests catch this today. The package is templated by{year}, so a future year's file would have no pins. Fix: check the status header in the same column as each value cell, or derive the value column from the header.
P3: nits
- The ACS margin-of-error facts declare
aggregation: sum, while their own notes say margins must not be added across categories or geographies. Today only labels and storage read this field, so nothing sums them. The convention comes from the ACS 5-year county generator. tests/test_chronicle_census_acs1_household_type.py:174asserts the request URL has nokeyparameter. Line 170 already requires the URL to equal an exact string with no key, so this assertion can never fail.- Some ids and comments call Table 1.3's credit "the child credit" or "CTC":
ctc_claims,ctc_amount,filing_status_ctc_*, the docstring oftests/test_chronicle_soi_table_1_3.pyand a comment intests/test_chronicle_bundle.py. The publisher's row is the nonrefundable child and other dependent credit. The concept ids already say so.
Outside #430 (the same patterns elsewhere)
packages/irs_soi/table_1_2/source_package.yamluses the same filing-status guard pattern as P2.3.chronicle/sources/census_acs5_county.pyalso declaresaggregation: sumfor margins of error.packages/irs_soi/historic_table_2/source_package.yamlfiles A07225 underirs_soi.child_tax_credit, while Table 1.3 usesirs_soi.nonrefundable_child_and_other_dependent_credit. If A07225 is the same Form 1040 line, a join on concept won't connect them. Nobody has confirmed that it is the same line.
- 主要言語
- Python
- スター
- 1
- フォーク
- 3
- 平均マージ
- 20時間 4分
- マージ済み PR(30日)
- 39
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PolicyEngine/chronicle のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
PolicyEngine/chronicle#447 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 42/100
PolicyEngine/chronicle#435 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
PolicyEngine/chronicle#420 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 50/100
PolicyEngine/chronicle#418 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
PolicyEngine/chronicle#398 ·
メンテナーはふだん 1 日以内に返信
PolicyEngine/chronicle の issue をすべて見る
似ている issue
-
claude-subscription-directsdk: tool calls with raw control characters in string values are droppedオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
NousResearch/hermes-official-plugins#538 ·
メンテナーはふだん 3 日以内に返信
-
bug(qdiffusion): EnergyModel.score_visible_logits computes biased visible/hidden on-ratios when solver returns variable solution counts per candidate対応中かも @houzhongyu が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
qboson/kaiwu-pytorch-plugin#2133 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
MakazhanAlpamys/Soup#3415 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 2 日以内に返信