Skip to content

Require policyengine-core 3.38.0 - #35

Merged
MaxGhenis merged 5 commits into
mainfrom
core-3-38
Dec 3, 2026
Merged

MaxGhenis merged 5 commits into
mainfrom
core-3-38

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Agent-written for Max, by Claude Code for Max Ghenis.

Fixes #34.

What changes

  • pyproject.toml requires policyengine-core 3.38.0 or later, and uv.lock pins 3.38.0, the latest release on PyPI, from 27 November 2026. The lock moves no other package.
  • test_core_version.py checks the Core behaviour that the model relies on.
    • When a simulation receives wages only for year:2025-04, period 2022's income tax stays $0, where 3.20.0 raised "got: 'year'".
    • A situation dict accepts wages for year:2025-04, reads back the $10,000 and gives $8,020 of tax for 2022, where 3.20.0 refused the key.
    • A branch made after its parent calculated income_tax reads its own $60,000 of wages and gives $10,220.50 of tax, and the parent keeps $7,658. On 3.20.0 the branch kept the parent's $50,000.
    • A nested branch reads its nearest ancestor's $60,000. A sibling reads the root's $50,000 when the root has wages and reads zero when only the other sibling has wages.
    • A simulation ignores wages from an unrelated branch. Core 3.20.0 read $60,000 from that branch and gave $10,220.50 of tax.
    • The test builds a simulation, sets a memory limit with age on the priority list, then supplies wages and age. Core stores the wages on disk, keeps age in memory and calculates $8,020 of tax. Core 3.20.0 kept the wages in memory.
    • When a situation supplies wages for 2022 and 2030, period 2027 carries over the 2022 wages and gives $7,658 of tax.
    • When a caller updates the first rate to 0 in place after a calculation, the change reaches a new simulation, which owes $6,020. On 3.20.0 it still owed $7,658.
    • A reform that sets the first rate to 0 for "2026-04-01.2027-03-31" gives $6,020 of tax for 2027 and $7,658 for 2028 on both Cores. The same reform gives $6,020 for both years on 3.38.0 when it uses "2027" as the key.
    • Core refuses NaN in an input to a float or int variable. Core also refuses an unknown In-Work Tax Credit earner status that it receives through set_input.
    • Core's write guard rejects a mid-month start in direct annual set_input and in a cold annual Jobseeker Support calculation that stores its result.
    • NZ rejects mid-month annual and monthly periods for non-eternal variables in a situation dict before Core buffers them, while eternal variables keep loading. One strict xfail tracks Core's cached calculation for a mid-month start.
  • Tests in four files fed NaN through an input to check how the formulas treat it. They now store NaN as a value Core calculated, through store_as_calculated in tests/calculated.py. Each stored NaN replaces a nonzero input or reads back as NaN, so a helper that stored nothing fails all 20 cases that call it, in seven test functions.
  • Four Jobseeker Support and NZ Super cases used annual periods starting on 31 March 2022, 2025 or 2026 to check the rates on those dates. The Jobseeker Support tests now read the clause 1(d) parameter on 1 April 2022, 31 March 2026 and 1 April 2026. Both files check the missing rate on 31 March 2022 directly through the parameter. The NZ Super tests already read each rate on 31 March and 1 April of each rate year.
  • The documentation of four amounts in Jobseeker Support and the Accommodation Supplement says that only a calculation can supply a NaN amount, since Core refuses NaN in a numeric input, and how the formula treats it.

Results that change for inputs Core 3.20.0 accepted

  • An earlier input carries over to a period before a later input. When a situation supplies wages for 2022 and 2030, 3.20.0 gave 2027 no wages and $0 of tax.
  • For a value it lacks, a branch reads the input from its nearest ancestor that holds one. When the root also held wages, 3.20.0 gave the nested branch the root's $50,000 and $7,658 of tax.
  • A simulation ignores inputs from unrelated branches. Core 3.20.0 read such an input when its own branch had none.
  • When a caller updates a parameter in place after a calculation, the change reaches a new simulation. 3.20.0 kept the value it had already read.
  • Reform.from_dict applies a value keyed by a bare year or date from that date onward (Core 3.29.2). With the bare year "2027", Core 3.20.0 gave 2028 the full $7,658. A range such as "2026-04-01.2027-03-31" limits a reform to one tax year on both Cores.
  • Core rejects an unknown In-Work Tax Credit earner status when it receives one through set_input. Core 3.20.0 gave that input the status AUTOMATIC. Both Cores reject an unknown status in a situation dict. Core 3.38.0 also rejects NaN in a float or int input, which 3.20.0 accepted. A Boolean input such as receiving_nz_super still reads NaN as true on both Cores.
  • In flat datasets, Core now maps group inputs on person rows to the correct groups when group ID order differs from row order. Core 3.20.0 attached family income to the wrong people in that case.
  • Group formulas now use period-suffixed role columns in flat datasets. With those columns, Core 3.20.0 gave zero family income and Core 3.38.0 uses the caregivers' earnings.
  • A cold annual Jobseeker Support calculation for year:2026-03-31 hits Core's write guard when it stores the result. Core 3.20.0 returned $26,000 with a rate reform for 31 March 2026 alone.

Mid-month annual and monthly periods

Core 3.38.0 uses the period's string form as part of its storage key. That form drops the day from an annual period that starts mid-month.

  • NZ rejects mid-month annual and monthly keys (such as year:2026-03-31, month:2026-03-31:12, and month:2026-03-31) for non-eternal variables in an entity-form situation before Core buffers them under day 1. Core 3.20.0 rejected the annual-length March keys (year:2026-03-31 and month:2026-03-31:12) after splitting the stored key default:year:2026-03 at every colon and trying to parse year as the full period, while Core 3.20.0 silently applied the one-month month:2026-03-31 key to 2026-03.
  • After Core caches a calculation for year:2026-03-01, a request for year:2026-03-31 returns the 1 March result, $18,788.64 in the probe above. Both Cores show this alias. policyengine-core#526 tracks the cache fix.

The strict xfail checks the cached calculation after a separate check verifies the 1 March result. The test passes once Core reports the specific period-validation error or returns $26,000 for 31 March while keeping the 1 March amount. Strict xfail then reports a failure so the mark can come off.

Checks

  • The full suite on Core 3.38.0 gives 1,816 passed and one expected failure. The Accommodation Supplement test emits the same infinite subtraction warning as main. Core's situation error emits a dpath.util deprecation warning in each new March case.
  • test_core_version.py gives 21 passed and one expected failure on 3.38.0. On 3.20.0 it gives 17 expected ordinary failures, four passes and one xfail. The range-keyed reform, the sibling without root wages, and both child_birth_date checks pass on both Cores.
  • All five mid-month situation cases fail when the mutation run removes the NZ hook. When the run also uses Core's drop-march or unrelated-error variant, the affected cases give ordinary failures. With either the refuse or preserve-exact variant, only the cached calculation gives a strict XPASS.
  • With Core's situation builder patched to drop the year:2025-04 wages, the situation-dict test fails. It reads the $50,000 carried over from 2022.
  • Main's tests make no branch apart from the new ones, so Core 3.24.0's change to the branch that a missing value falls back to reaches none of them. The reform tests in eight files pass on 3.38.0.
  • Ruff 0.16.7 finds the changed Python files formatted. CI uses the lock's Ruff 0.15.5.

Revisions

  • 009be08 is the first version.
  • fae567a answers the first review. The situation-dict test reads back the April wages, and the disk test checks where Core keeps the wages and age. New tests cover a nested and a sibling branch, carry-over past a later input, reform keys, an unknown earner status, a fresh mid-month calculation and the rates on 31 March and 1 April. Two strict xfail tests record the mid-month behaviour that policyengine-core#526 tracks. The changelog, the documentation and this description limit Core's NaN refusal to numeric inputs, give the results that change, describe the mid-month behaviour Core keeps, and count four files and 20 cases for the NaN helper.
  • 25d4f8f corrects fae567a. That revision had both xfail tests accept a refusal or a separate result. It also added tests for input from an unrelated branch and for an in-place rate update after a calculation. Its changelog states when 3.20.0 gave a nested branch the root's input, names direct annual set_input and a cold annual calculation as routes to the write guard, and says that 3.20.0 applied a bare date key for that day alone.
  • e0bf0608 adds NZ's situation validation, narrows the cached xfail and strengthens the sibling and memory-priority tests. The changelog and this description specify the affected period, branch and enum routes and document the flat-dataset changes.
  • 2da60de5f0072c33471d2d3f8efd7206ddfe04bb extends situation period validation to month-unit keys (including 12-month aliases like month:2026-03-31:12 and monthly keys like month:2026-03-31), skips eternal variables so child_birth_date keeps loading with dated keys, and fixes passive phrasing in the description and changelog.

axiom: no RuleSpec change (Core dependency and tests)

🤖 Generated with Claude Code

Core 3.20.0, which the lock pinned, broke calculations for other periods
when an input was stored for a year that starts in April, refused such a
year in a situation dict, kept a branch's results calculated from its
parent's input after the branch replaced that input, and recursed without
end on a value kept only on disk. Core 3.38.0 fixes all four, and
test_core_version.py checks each one.

Core 3.26.6 and later refuse an input that contains NaN, and 3.30.3 and
later refuse a year that starts mid-month. The tests that check how the
formulas treat NaN now store it as a calculated value, through
store_as_calculated, and the tests that gave a year starting on 31 March
are gone. Two tests check the refusals.

Fixes #34.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

Round 1 review of 009be08, run as a Codex cloud task: https://chatgpt.com/local/6b0ef18c-825c-83e9-921b-fd35ee7270c0. The page shows GPT-6.2 Sol at Extra High effort. Verdict: REQUEST_CHANGES, with five P1s, two P2s and one P3.

  • P1: a situation dict moves an input for a year that starts on 31 March to a year that starts on 1 March, and a calculation for such a year after one for 1 March returns the 1 March result, so the changelog's claim that Core refuses such a year holds only for set_input and a cold calculation.
  • P1: the situation-dict test for a year from April passes even if Core drops the April wages.
  • P1: Core 3.29.2 makes a Reform.from_dict value keyed by a bare year or date apply from then on, which changes later years for an existing bounded edit, and neither the changelog nor a test covers it.
  • P1: the description miscounts the NaN changes, which cover four files and 20 cases that call the helper.
  • P1: Core refuses NaN only for numeric inputs, so the blanket claim is false.
  • P2: the disk test fails on Core 3.20.0 at holder allocation, before it reaches the old recursion.
  • P2: the branch test leaves nested inheritance and isolation from an unrelated branch untested.
  • P3: two passages use passive wording.

The review found the lock moves only Core, all six new tests pass on 3.38.0 and fail on 3.20.0, and make test gives 1,796 passed with one warning. It ran on Linux and lists no check it could not run. It also lists results that change for inputs main admitted, which the description will now state. I'll answer each finding in a follow-up commit.

The situation-dict test reads back the April wages, and the disk test
checks that Core keeps the wages on disk and age in memory. New tests
cover a nested and a sibling branch, carry-over past a later input,
reform keys, an unknown earner status, a fresh mid-month calculation, and
the Jobseeker Support and NZ Super rates on 31 March and 1 April. Two
strict xfail tests record the mid-month behaviour that
policyengine-core#526 tracks. The changelog and the documentation limit
Core's NaN refusal to numeric inputs and give the results that change.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

Answer to the first review of 009be08. fae567a answers each finding, and the full suite passes on Core 3.38.0, 1,806 tests, with two expected failures. Each result below comes from a run on this Mac, with main at ba0a233 on Core 3.20.0 where it matters.

P1, mid-month years. I reproduced all three behaviours, and they differ in where they come from.

  • A situation dict with wages for year:2026-03-31 stores them under year:2026-03 on 3.38.0. On 3.20.0 the build raised, as it did for any key with a colon.
  • A fresh calculation for year:2026-03-31 raises on 3.38.0. On 3.20.0 it gave $26,000 of Jobseeker Support with a reform that applies on 31 March 2026 alone.
  • After a calculation for year:2026-03-01, a calculation for year:2026-03-31 returns the 1 March result, $18,788.64, on both Cores. That alias predates the upgrade.

Each comes from Core keying a stored value by the period's string form, which drops the day. policyengine-core#526 tracks the fix, and the model has no simulation or builder of its own where it could catch these. test_core_refuses_a_year_that_starts_mid_month now checks the fresh calculation as well as set_input. Two strict xfail tests, which cite #526, check for a refusal on the situation-dict and cached routes. They fail while Core behaves this way, and once Core changes, strict xfail fails the suite so the marks come off. The changelog and the description now say which routes refuse and which still accept, and that a calculation for such a year now raises where 3.20.0 gave a result. In place of the four removed cases, the Jobseeker Support tests read the clause 1(d) rate from the parameter on 1 April 2022, 31 March 2026 and 1 April 2026. Both files now check that no rate is in force on 31 March 2022. The NZ Super tests already read each rate on 31 March and 1 April.

P1, the April situation-dict test. It now reads back $10,000 of employment_income for year:2025-04 before it checks 2022's tax. With Core's situation builder patched to drop that input, the old test passes and the new one fails, reading the $50,000 carried over from 2022.

P1, reform keys. I reproduced it. With the first rate set to 0 under the key "2027", tax on $50,000 is $6,020 for both 2027 and 2028 on 3.38.0, where 3.20.0 gave $7,658 for 2028. Under "2026-04-01.2027-03-31", the 2026-27 tax year, both Cores give $6,020 and $7,658. Two tests check both keys, and the bare-year test fails on 3.20.0. The changelog gives the range form for a reform meant for one tax year.

P1, the NaN counts. You are right. The NaN changes cover four files, and with a helper that stores nothing, 20 cases fail in seven test functions: 2 in ACC, 3 in the Accommodation Supplement, 1 in Jobseeker Support and 14 in Working for Families. My "eleven" counted one line per parametrized test. The description now says four files and 20 cases.

P1, NaN in a Boolean input. Confirmed on both Cores: receiving_nz_super set to NaN reads as true. The changelog, calculated.py, the test comments, the four amount docstrings and the description now say that Core refuses NaN in a float or int input. The description also says that a Boolean input still reads NaN as true.

P2, the disk test. It now asserts that the wages sit on disk and not in memory, and that age stays in memory, before it checks the tax. Its comment no longer cites the old recursion. On 3.20.0 it fails at the first of those checks, since the late memory limit leaves the wages in memory.

P2, nested and sibling branches. A new test gives the root $50,000 and a branch $60,000. A branch of that branch reads $60,000 and owes $10,220.50, and a sibling of the first branch reads the root's $50,000 and owes $7,658. On 3.20.0 the nested branch read the root's $50,000. In my probes a branch never read a sibling's input on either Core, so the description claims no change there.

P3, wording. The helper's docstring and the disk bullet now use direct wording.

Results that change. Of the other changes the review listed, I reproduced the carry-over (2027 tax from $0 to $7,658 with wages for 2022 and 2030), the nested branch, the bare-year reform key and the unknown earner status. The changelog and the description give each, and a test checks each. In my probes the sibling branch and the in-place parameter update behaved the same on both Cores, and I did not build the flat-file dataset case, so the description leaves those three out.

Round 2 follows.

Each xfail test now passes if Core either refuses a year that starts
mid-month or keeps it apart from the first of its month, so the marks
come off under policyengine-core#526's fix. The cached test sets the
31 March rate on a fresh system, since a Reform.from_dict system drops
the model's input carry-over. New tests cover an input stored under
another branch's name and a rate updated in place after a calculation.
The changelog states when Core 3.20.0 gave a nested branch the root's
input, names set_input and a fresh calculation as the routes that refuse
a year that starts mid-month, and says that 3.20.0 applied a bare date
key for that day alone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

25d4f8f corrects fae567a in three places, and round 2 reviews it.

  • Each xfail test now passes if Core either refuses a year that starts mid-month or keeps it apart from the first of its month, so the marks come off under either form of the policyengine-core#526 fix. With Core patched to refuse such a year in the situation builder and at the start of a calculation, both tests pass and strict xfail fails them. On 3.38.0 each fails at its last check.
  • The cached test sets the 31 March rate on a fresh system, since a system built through Reform.from_dict drops the model's input carry-over on both Cores.
  • My reply above said that an in-place parameter update behaved the same on both Cores. A later probe showed otherwise: on 3.20.0 a new simulation kept the rate it had already read. A new test covers it, and another covers an input stored under another branch's name, which 3.20.0 read when the simulation's own branch had none. The changelog and the description state both changes.

The suite passes on Core 3.38.0, 1,808 tests, with the two expected failures.

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

Round 2 review of 25d4f8f, run on this Mac as Subfleet lane job 20261202-230834-nzhub-rev-pe-nz-35-r2-lane: GPT-6.2 Sol at ultra effort. Verdict: REQUEST_CHANGES, with four new P1s, three P2s and one P3, and the first round's mid-month P1 still open for situation dicts.

It closes four of the five round-1 P1s (the April situation test, reform keys, the NaN counts and the NaN scope), the disk P2 and the P3.

  • P1, open from round 1: on 3.38.0, a situation dict's wages for year:2026-03-31 land under 1 March and can overwrite wages supplied for year:2026-03-01. Main refused that situation, so the upgrade turns an error into a silent wrong result.
  • P1: my earlier reply said the model has no hook where it could catch this. Core's builder calls TaxBenefitSystem.preprocess_situation before it buffers inputs, so NewZealandTaxBenefitSystem can refuse a year that starts mid-month there. A probe with that override refused both March fixtures and kept the April and 2022 inputs.
  • P1: the two xfail tests pass on false fixes. A Core that drops the March wage, or one that raises an unrelated error, turns them into strict XPASS.
  • P1: the description, the changelog and two test comments overstate which period keys 3.20.0 refused. A 15 January key loaded on both Cores.
  • P1: the description leaves out that a branch reads its nearest ancestor's input, and that an unknown earner status became AUTOMATIC only through set_input.
  • P2: the description and changelog leave out two flat-dataset changes: group inputs on person rows swap when ID order differs from row order, and period-suffixed role columns now work.
  • P2: the sibling test needs a case with no root wages, and the age check needs an input supplied after the memory limit.
  • P3: new comments use a contrast and passive clauses.

The reviewer ran test_core_version.py with 13 passed and 2 xfailed on 3.38.0 and 13 failed on 3.20.0, and the full suite with 1,808 passed and 2 xfailed on 3.38.0. I'll fix the P1s and P2s in this PR, and scoped rounds will review the commits that answer the P1s. A second round-2 review, a Codex cloud task sent on 1 December, has not returned yet; I'll answer anything new it raises in the same fix.

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Claude Code for Max Ghenis.

e0bf060 answers the second review of 25d4f8f. The full suite on Core 3.38.0 gives 1,811 passed and one expected failure. The Accommodation Supplement test emits the same infinite subtraction warning as main. Core's situation error emits a dpath.util deprecation warning in each new March case.

P1, the March situation. I reproduced the silent remap on Core 3.38.0. With $15,000 for 1 March and $50,000 for 31 March, 1 March came back as $50,000. NZ now raises a situation error that names the entity, instance, variable and original period. The new test tries 31 March alone and alongside 1 March. Both cases fail when I remove the NZ override. The April control reads $10,000 for April and $50,000 in wages and $8,020 in tax for 2022.

P1, the builder hook. My earlier reply missed Core's builder hook. Core calls the country system's preprocess_situation before it buffers entity inputs. NZ uses it to check the original period, and the test exercises the normal Simulation(situation=...) entry point. The cache can return a result before any NZ formula runs, so policyengine-core#526 still tracks that route.

P1, the xfails. The situation test now requires the NZ error as an ordinary test. A separate check verifies $18,788.64 for 1 March. The sole strict xfail covers the return of that cached value for 31 March. The test passes if Core reports its specific period-validation error or returns exactly $26,000 for 31 March and still returns the first amount for 1 March. I removed the NZ override to reach the builder variants. drop-march fails both situation cases, and unrelated-error fails both situation cases and both calculation tests. Each fails normally. The refuse and preserve-exact variants each produce one strict XPASS, for the cached test. The earlier preserve variant still fails the direct input check because it loses the 31 March input.

P1, the period claims. The description and changelog name direct annual set_input and the cold annual Jobseeker Support calculation as the routes that hit Core's write guard. Core 3.20.0 split the stored March key default:year:2026-03 at every colon and tried to parse year as the full period. The January probe's explicit year key serializes to 2026, which accounts for the different result. NZ checks explicit annual starts, and day-unit keys still go through Core. The two rate comments now explain the direct parameter checks at the date boundaries.

P1, the branch and enum claims. The description and changelog say that a branch reads its nearest ancestor's input and ignores inputs from unrelated branches. The nested branch reads $60,000 on 3.38.0 and $50,000 on 3.20.0. The unrelated branch probe gives zero on 3.38.0 and $60,000 on 3.20.0. An unknown In-Work Tax Credit earner status became AUTOMATIC through set_input on 3.20.0. Both Cores reject that string in a situation dict.

P2, the flat datasets. Both documents now record the two changes. In the synthetic fixtures, Core 3.20.0 swapped the family income inputs on the person rows when family ID order differed from row order. Core 3.38.0 read each value against the right family. With period-suffixed role columns, the family income formula gave zero on 3.20.0 and used the caregivers' earnings on 3.38.0.

P2, the sibling test. The root now has a separate case with no wages. The unaffected sibling reads zero, and sibling-leak fails that case by returning the other sibling's $60,000.

P2, the age test. The test sets the memory limit before it supplies age or creates the age holder. It checks that Core keeps age in memory, stores wages on disk and calculates $8,020 of tax. age-priority-ignored puts age on disk and fails the memory assertion.

P3, wording. The nested branch, memory setup, Jobseeker reform and reform-key examples now use direct subjects.

The earlier checks still exercise the April wage, the reform keys, the NaN rules and the disk read. drop-april reads the $50,000 carried over from 2022. The NaN helper no-op fails 20 cases, and date-rates fails all five exact-day cases.

test_core_version.py gives 16 passed and one expected failure on 3.38.0. On 3.20.0 it gives 14 expected ordinary failures, two passes and one xfail. The range-keyed reform and the sibling without root wages pass on both Cores.

(Harvested and pushed after the round-2 Subfleet lane review 20261202-230834-nzhub-rev-pe-nz-35-r2-lane; Codex cloud task 1506 has not yet returned a result in codex-cloud-queue/results/. Scoped round 3 is queued on the P1 findings.)

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Agent-written for Max, by Antigravity for Max Ghenis.

2da60de5f0072c33471d2d3f8efd7206ddfe04bb answers the scoped round-3 review (20261203-075606-nzhub-rev-pe-nz-35-r3) of e0bf0608. The full suite on Core 3.38.0 gives 1,816 passed, 1 xfailed, and 6 warnings (the existing Accommodation Supplement subtraction warning plus 5 dpath.util deprecation warnings from the new situation checks).

  • P1, month-unit and 12-month mid-month aliases: NewZealandTaxBenefitSystem.preprocess_situation in policyengine_nz/system.py now checks period.unit in (periods.YEAR, periods.MONTH) and period.start.day != 1, rejecting month:2026-03-31:12 (alone and alongside year:2026-03-01) and month:2026-03-31 (tested via a Reform monthly variable) with their original keys in SituationParsingError, while accepting the aligned month:2026-03-01:12 control. Removing the override fails all 5 mid-month situation cases (5 failed, 1 passed, 15 deselected, 1 xfailed).
  • P2, eternal variables: preprocess_situation now skips variables with variable.definition_period == periods.ETERNITY. test_eternal_situation_inputs_keep_loading verifies child_birth_date loads under both "ETERNITY" and "year:2026-03-31".
  • P3, passive wording: Rewrote the passive carry-over and in-place rate-update phrases in active voice in the PR description and changelog.d/policyengine-core-3-38.changed.md.

test_core_version.py gives 21 passed and 1 xfailed on Core 3.38.0, and 17 expected ordinary failures, 4 passes, and 1 xfailed on Core 3.20.0. Scoped round 4 is queued on the month-unit period fix.

@MaxGhenis

Copy link
Copy Markdown
Contributor Author

Scoped round-4 independent review (gpt-6.2-sol, commit 2da60de5): APPROVE — the open round-3 P1 on MONTH-unit mid-month keys, round-3 P2 on eternal variables, and round-3 P3 voice items are all closed (0 open P0/P1/P2 findings).

Verification on 2da60de5

  • Full Core 3.38.0 suite: 1,816 passed, 1 xfailed, 6 warnings (policyengine-core#526 cached xfail only).
  • test_core_version.py on Core 3.38.0: 21 passed, 1 xfailed, 5 warnings (17 failed, 4 passed, 1 xfailed on Core 3.20.0).
  • Hook-removal mutation on Core 3.38.0: 5 failed, 1 passed, 15 deselected, 1 xfailed (when the mutation removes preprocess_situation, all five mid-month situation cases fail).
  • Synthetic probes on Core 3.38.0: 56 passed (24 rejection cases across year:2026-03-31, month:2026-03-31:12, and month:2026-03-31 + 32 read-back controls including child_birth_date under ETERNITY and year:2026-03-31); 10 passed history probes on both Core 3.38.0 (tree-r3) and Core 3.20.0 (2da60de5).
  • P3 prose updates applied to the PR description (Mid-month annual and monthly periods section distinguishes Core 3.20.0's 'year' error on annual-length March keys from silent 2026-03 overwrite on one-month month:2026-03-31; changelog.d/policyengine-core-3-38.changed.md retains the concise summary of the stored-key error).

Ready to merge.

@MaxGhenis
MaxGhenis marked this pull request as ready for review December 3, 2026 13:26
@MaxGhenis
MaxGhenis merged commit e2ed759 into main Dec 3, 2026
11 checks passed
@MaxGhenis
MaxGhenis deleted the core-3-38 branch December 3, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade policyengine-core past two 3.20.0 defects

1 participant