Repository navigation
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #11098 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 24 25 +1
=========================================
+ Hits 24 25 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
DTrim99
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-us
PR number: 11098
Reviewed head SHA: f1f16ff
Merge base SHA: d1e89b3
Mode: full
Scope: changed behavior and affected dependencies
Source manifest: /private/tmp/policyengine-command-runs/ea33c0bb2b64/pr-11098-review-sources.json
Review status: PARTIAL
Source Documents
- c16_ost.pdf — cached original.
- c16_unreg.pdf — cached original.
- c18_center.pdf — cached original.
- c18_family.pdf — cached original.
- c18_ost.pdf — cached original.
- c20_family.pdf — cached original.
- c20_unreg.pdf — cached original.
- rule478.pdf — cached original.
- register45.pdf — cached original.
Critical
None.
Should Address
A1 — Axiom line uses the external-contributor form on a maintainer PR (OPEN)
- Severity: SHOULD ADDRESS (repository standard; no output effect; matches this run's grading of the same issue on PRs 10222 and 10670).
- Location: PR body, line
axiom: needed. - Trigger: snapshot CLAUDE.md:151-155 ("Axiom Parity (required for policy changes)") requires
axiom: <legal id> encoded-correct | <rulespec PR> encoded | <rulespec issue> queued | n/a: <reason>. It reservesaxiom: neededfor "an external contributor [who] cannot complete the Axiom work". - Expected: a conforming line. The author MaxGhenis has author_association MEMBER (gh api, pulls/11098). The only matching rulespec-us issue is TheAxiomFoundation/rulespec-us#2232 (OPEN, labelled
pe-parity), and it covers only July 2024-July 2026 (PE-US #10815). The 2016-2022 schedules this PR adds are unqueued. - Observed:
axiom: needed. - Impact: no output effect. Parity tracking for four new rate schedules is missing.
- Fix: extend #2232 (module paths, corpus citations, companion cases from the chart values) or open a dispatch-ready
pe-parityissue, then writeaxiom: TheAxiomFoundation/rulespec-us#<n> queued. If maintainers judge the gated historical ceilings out of parity scope, usen/a: <reason>instead. - Source: snapshot CLAUDE.md and CONTRIBUTING.md#axiom-parity;
gh search issues --repo TheAxiomFoundation/rulespec-us "South Dakota child care".
A2 — Candidate us-sd:cca-hourly-special-needs-2018 is labelled follows: conflicting-source, against the legend (OPEN)
- Severity: SHOULD ADDRESS (register metadata that drives later model work; no current output effect).
- Location: source_conflicts/candidates.yaml, new entry,
pe_us.follows: conflicting-source. The legend is at candidates.yaml:7-9. - Trigger: the legend defines
conflicting-sourceas "against the statute; the 2026-10-19 rule calls for a model change". - Expected:
statuteorgap-fill.- From June to December 10, 2018, the code follows the schedule the controlling regulation designates. ARSD 67:47:01:10 delegates rate-setting to DSS and points to the website rates. The neighbouring SD entry us-sd:cca-hourly-private-pay-cap treats the ARSD rules as the "statute" and uses
follows: statute. - After the repeal, no regulation speaks, and the choice between two DSS documents is a gap-fill or agency tie-break under CONTRIBUTING.md "Source conflicts".
- From June to December 10, 2018, the code follows the schedule the controlling regulation designates. ARSD 67:47:01:10 delegates rate-setting to DSS and points to the website rates. The neighbouring SD entry us-sd:cca-hourly-private-pay-cap treats the ARSD rules as the "statute" and uses
- Observed:
conflicting-source. That label says the model departs from the governing law and should change, which contradicts the entry's ownstate: rulednote ("The posted schedule controls the nominal ceiling"). - Minor: the readings use the keys
published-schedule/plan-narrative. 479 of 496 candidates usestatute/other, and no other entry uses these keys. The test does not check keys. - Impact: when the entry moves to rulespec-us, it would flag a ruled, correct parameter as needing a model change.
- Source: candidates.yaml legend; ARSD 67:47:01:10 redline p.43 (rules.sd.gov/Uploads/478_AdoptedRules.pdf#page=43); CONTRIBUTING.md:97-104.
Suggestions
S1 — The PR does not say why it adds pre-2024 ceilings while payments stay off until July 2024 (OPEN)
- Severity: SUGGESTION (documentation; the behavior is internally consistent).
- Location: PR body "What and why"; hourly/available.yaml; sd_cca.py:32-33.
- Trigger: any period from June 2016 to June 2024.
- Observed: sd_cca returns 0 while
hourly.availableis false, which holds until 2024-07-01. Only direct calls of sd_cca_hourly_rate (formula_2016_06_01, gated by sd_cca_eligible_child) reach the new values.- So the statement "The model starts calculating hourly payments in July 2024" is accurate, and the historical schedules have no effect on benefits or microsimulation.
- The reason payments stay off is not stated. Copay, income, eligibility and age parameters start 2026-08-01 and project backward, and weeks_per_month starts 2024-07-01.
- Also, the now-repealed ARSD 67:47:01:10 capped reimbursement at 210 hours a month per child, with absence-hour rules, until December 10, 2018. sd_cca does not model that cap ("DSS imposes no general monthly cap").
- Expected: one sentence in the PR body or the available.yaml comment saying why the ceilings are added (for example, rate lookups or future backdating) and that payments stay at zero before July 2024 on purpose until those inputs are backdated. Noting the pre-December 2018 210-hour cap would help any later backdating.
- Source: snapshot parameter dates; rule478 p.43.
S2 — special_needs_maximum does not cite the charts that state $4.75 and $5.15 (OPEN)
- Severity: SUGGESTION.
- Location: parameters/gov/states/sd/dss/cca/rates/hourly/special_needs_maximum.yaml references.
- Observed: the $4.75 value (2016-06-01) rests on the 2016-18 plan at p.105, and the $5.15 value (2020-07-01) has no 2020 chart reference, presumably resting on the original 2022-24 plan at p.144. I could not open either plan.
- Expected: add the June 2016 and July 2020 rate charts. They state these ceilings directly; I verified them in the 2016 before-and-after-school chart and the 2020 family chart.
- Source: the archived 2016 before-and-after-school chart (20160701175956) and 2020 family chart (20200728230556).
S3 — PR body test plan still says the model tests have not run (OPEN)
- Location: PR body, "Test plan", third bullet ("The focused model tests are waiting on a local compute reservation.").
- Observed: CI at head f1f16ff shows 41 SUCCESS and 7 SKIPPED. The local run below passes all 220 SD CCA YAML cases (including the 10 new and 1 updated case) and all 251 source-conflict checks.
- Impact: none on the model. The statement is out of date, so a reader may think the cases are unverified. Update or drop the bullet.
Evidence Gaps
- 13 of the 22 cited documents could not be retrieved: the Wayback Machine returned 429 and the original dss.sd.gov paths return 404. Unverified as a result: the June 2016 family and center cells, the 2018 informal rate, the July 2020 center and before- and after-school cells, the whole July 2022 schedule (including its effective date and the $5.80 ceiling), the state-plan statements behind the June 2016 to June 16, 2018 inference, and the plan page numbers. None of these affects benefits, because
sd_ccapays nothing before July 2024, but they are value checks the next round should finish. - Whether informal, in-home and relative providers could get the special-needs ceiling before July 2024. The 2016 and 2020 informal charts list no special-needs rate, and the provider guides the parameter cites were not fetched. The YAML cases expecting 4.75, 5, 5.15 and 5.8 for approved informal care depend on it; there is no payment effect before July 2024.
Notes
- 726 cells across five retrieved charts match the parameters with no mismatches: the June 2016 before- and after-school chart, the June 2018 center, family and before- and after-school charts, and the July 2020 family chart. Together they cover all 66 counties. The informal rates match ($1.75 in 2016, $1.90 in 2020), as do the age bands and the 25% specialized infant and toddler increase. The first-of-month lookup behaves as the PR says: June 2018 uses the 2016 rates and July 2018 the new ones.
- The $5.00 2018 special-needs ceiling is right. All three retrieved June 2018 charts and state plan section 4.6.2(c) give $5.00, and section 4.3.2's $4.75 is the 2016 figure carried over. The candidate's three excerpts appear word for word in the originals.
- Every county resolves on every schedule date, for every provider type and age band. The unmatched-county fallback equals the lowest county rate in every case; no source prescribes it, and
programs.yamldiscloses it as a modeling default. No ordinary rate in any year exceeds that year's special-needs ceiling, so approving special needs never lowers a rate. A trial merge with main (238 commits ahead) is clean, and main touched none of the South Dakota child care files, county lists or source-conflict settings the PR relies on.
Validation Summary
Local tests at the reviewed head (review venv, policyengine-core 3.37.2; the snapshot's uv.lock pins 3.36.0; imports resolved to the snapshot): 220 South Dakota child care YAML cases and 251 source-conflict checks passed, 0 failed. A script compared 726 chart cells with the YAML. Sources: nine documents retrieved (five DSS rate charts, the ARSD 67:47:01:10 redline and Register page); 13 could not be retrieved (see gaps). CI: 41 passed and 7 skipped at f1f16ff.
Timing
setup seconds: 5.00s; scope seconds: 60.00s; parallel review seconds: 305.50s; policy role seconds: 305.50s; code role seconds: 212.30s; adjudication seconds: 60.00s; consolidation cleanup seconds: 63.40s; elapsed seconds: 614.00s
Review Severity
COMMENT. Open findings: 0 critical, 2 should address, 3 suggestions.
What and why
Add four South Dakota Department of Social Services (DSS) Child Care Assistance hourly reimbursement schedules, effective June 1, 2016, June 16, 2018, July 1, 2020, and July 1, 2022. The schedules cover all 66 counties and include registered family care, group family and center care, licensed before- and after-school care, and informal, in-home, and relative care.
The state plan archived in January 2017 identifies the June 2016 rates as current, and the next plan dates the update to June 16, 2018. We infer that the June 2016 rates continued until that update. PolicyEngine looks up the schedule in force on the first day of the month, so it uses the 2016 rates in June 2018 and the June 16 rates in July 2018. 2016–18 state plan · 2019–21 state plan
When the model cannot match a county, it uses the lowest published rate for the provider type and age band in the county-based schedules. When the caller records DSS special-needs approval, the model uses the standard hourly ceiling of $4.75, $5.00, $5.15, or $5.80, respectively. The model starts calculating hourly payments in July 2024. 2016–18 state plan · Original 2022–24 state plan · Updated 2022–24 state plan
The June 2018 charts for licensed and registered providers and section 4.6.2(c) of the 2019–21 state plan give a $5.00 special-needs ceiling, while section 4.3.2 gives $4.75. The rule in force when DSS issued the charts directed DSS to set the rates and identified its website as their publication source. PolicyEngine follows the published $5.00 ceiling. Source-conflict candidate
us-sd:cca-hourly-special-needs-2018records the choice. June 2018 chart · State plan, $5.00 · State plan, $4.75 · South Dakota rule textDSS rate charts
Test plan
axiom: needed