Repository navigation
Put is_claimant_or_partner's rules in its documentation field - #2960
Conversation
The rules lived only in the class docstring, which core does not read, so the variable's metadata had no documentation text. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
juaristi22
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-uk
PR number: 2960
Reviewed head SHA: 5ed3df2
Merge base SHA: 5987eb3
Mode: full
Scope: Changed narrative variable metadata exposure and its focused regression; unchanged policy formulas and unrelated docstrings excluded.
Source manifest: /private/tmp/policyengine-command-runs/32baa0e3c673/pr-2960-sweep20261125-1330-review-sources.json
Review status: PARTIAL
Source Documents
No source documents registered; see scope and validation.
Critical
None.
Should Address
None.
Suggestions
None.
Evidence Gaps
- NAMED_REPRODUCER_EXECUTION — Observe actual PASS of policyengine_uk/tests/test_claimant_or_partner_documentation.py::test_claimant_or_partner_documentation_reaches_variable_metadata at head5ed3df2cc8ffa8c55dba591480cc53995f7e6fef with compatible/frozenCore3.34.9. Known local Core3.33.12/3.34.1 are below minimum; current hostedshards pending and bounded logs/artifact batch unavailable. Static FixevidencePASS is not executedtest proof.
- Role checks incomplete: /tmp/policyengine-command-runs/32baa0e3c673/pr-2960-sweep20261125-1330-review-code.md; see recovered report.
Notes
- The PR is a draft: comment review only; no approval or merge.
- Normalized narrative and remaining module/formula AST are unchanged. No new policy claim needs external corroboration; the retained legal narrative is not freshly recertified.
- No compliant existing local core environment was available, and no dependencies were installed. Static Fix evidence PASS is separate from actual regression-test execution.
- The shared start is retained, including the observed long interval during skill loading; its cause is unverified. The13:43 role and13:47 finalization targets were missed; no time is subtracted.
- The snapshot was removed normally after both actual DONE notifications. Publication and end-to-end monitor timing are recorded separately.
Validation Summary
Static AST/text preservation and trusted-base Fix evidence checker PASS at exact head5ed3df2. Named metadata regression NOT RUN locally and execution not yet qualified from hostedCI. Core3.33.12/3.34.1 below minimum/lock3.34.9. Exact-head run45621647263 attempt1 still in progress in captured evidence; Fix evidence, changelog and lint SUCCESS. Two independent role contexts with verified full skill loads; zero external policy sources/renders/model runs. See completed role reports/evidence receipts.
Timing
elapsed seconds: 1183.80s; setup seconds: 198.43s; scope seconds: 650.05s; parallel review seconds: 873.34s; policy role seconds: 649.90s; code role seconds: 873.34s; adjudication seconds: 0.00s; consolidation cleanup seconds: 76.41s
Review Severity
COMMENT. Open findings: 0 critical, 0 should address, 0 suggestions.
juaristi22
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-uk
PR number: 2960
Reviewed head SHA: 5ed3df2
Merge base SHA: 5987eb3
Mode: incremental from 5ed3df2
Scope: CI-only completion of NAMED_REPRODUCER_EXECUTION; unchanged original code/policy/metadata and static completion evidence reused.
Source manifest: /private/tmp/policyengine-command-runs/32baa0e3c673/pr-2960-sweep20261125-1443-review-sources.json
Review status: COMPLETE
Source Documents
No source documents registered; see scope and validation.
Critical
None.
Should Address
None.
Suggestions
None.
Evidence Gaps
No material gaps reported.
Notes
- NAMED_REPRODUCER_EXECUTION is RESOLVED: actual named test PASS in the owning job and digest-verified outcome artifact. The historical PARTIAL report remains preserved.
- The original independent policy and code review is reused at the unchanged exact head and body; no repeated model execution, code review, source acquisition, or snapshot. No new policy claim or numerical behavior was introduced.
- The PR remains a draft. The GitHub event is COMMENT only; no approval or merge.
- Actual PASS: owning job139231186383 logline3337 at2026-11-25T14:03:42.5134180Z; artifact15032176584/outcomes-1.jsonl:1339. ZIPsha256b31d6abf965456f0361965d54e5dd2a5906c15f81af357a2bfe7685148839a96 equals API digest. FrozenCore3.34.9/Python3.13/synthetic2168754239df677d41baa31b13832e2772061552/exact5ed3head+5987base parents qualified.
- No local model/tests, installs, private data, branch edits, or new snapshots. The previous snapshot was already removed normally.
Validation Summary
The exact metadata regression test passed in run45621647263 attempt1; owning log and JSONL independently record PASS, with artifact digest and frozen environment verified. Sixteen prior CI evidence members revalidated; unchanged normalized text/formula AST and static Fix evidence conclusions reused. Current exact-head Lint and Test/Result pass. Optional Aggregate impact readiness is separately refreshed before publication; draft precludes approval. Full execution closure: /tmp/policyengine-command-runs/32baa0e3c673/pr-2960-sweep20261125-1443-execution-closure.json
Timing
elapsed seconds: 410.59s; setup seconds: 0.00s; scope seconds: 0.00s; parallel review seconds: 144.65s; policy role seconds: 0.00s; code role seconds: 144.65s; adjudication seconds: 0.00s; consolidation cleanup seconds: 123.06s
Review Severity
COMMENT. Open findings: 0 critical, 0 should address, 0 suggestions.
Aggregate impact on certified data: passBase Checks: 0 broken by this change, 1 failing on both sides, 0 fixed. Moves flagged for review: 0 (thresholds in Notes
Moves flagged for reviewNone. Spending by benefit and service
Caseloads
Household net income by decileNo household's net income changes in any year. No change in any year: receipts by tax head; government balance, each component counted once; model totals; household income totals; population; poverty rates; people in poverty; inequality; mean household net income in each side's own deciles; standard reform costings (change in gov_balance); standard reforms: change in each reform's target. Checks failing on both base and head (1)
Counted-once checkThe check raised each of 92 components by £1 per unit in 2026-27 and read every head of its totals household by household: its own head must rise by exactly £1, no other tax head may move, no other benefit may rise, and the model's own total must move by what its heads moved. A response that is not finite breaks every rule. The check measures a head that breaks a rule twice more: once holding every other head at its baseline value, and once holding every other head at its value after the first £1 while the component rises again. The head fails where either measurement still shows the response. The check cannot hold a head at a value that is not finite. In each unit where another head is not finite after the first £1, it holds that head at its baseline value, and the second measurement judges no household the unit belongs to. There a head fails wherever it first broke a rule, or wherever the check could not confirm whether its response contains the component. 0 failed and the check skipped 0.
Provenance
Dataset: Receipts by tax head: head levels
Spending by benefit and service: head levels
Caseloads: head levels
Government balance, each component counted once: head levels
Model totals: head levels
Household income totals: head levels
Population: head levels
Poverty rates: head levels
People in poverty: head levels
Inequality: head levels
Mean household net income in each side's own deciles: head levels
Standard reform costings (change in gov_balance): head levels
Standard reforms: change in each reform's target: head levels
|
juaristi22
left a comment
There was a problem hiding this comment.
Program review
Base repository: PolicyEngine/policyengine-uk
PR number: 2960
Reviewed head SHA: 5ed3df2
Merge base SHA: 5987eb3
Mode: incremental from 5ed3df2
Scope: Readiness-only follow-up after explicit user review-and-merge request; unchanged exact-head independent policy/code review and verified actual test PASS reused.
Source manifest: /private/tmp/policyengine-command-runs/32baa0e3c673/pr-2960-user20261125-1623-review-sources.json
Review status: COMPLETE
Source Documents
No source documents registered; see scope and validation.
Critical
None.
Should Address
None.
Suggestions
None.
Evidence Gaps
No material gaps reported.
Notes
- No findings or material evidence gaps remain. Existing text is preserved and formulas/values are unchanged, as verified in the original independent review.
- NAMED_REPRODUCER_EXECUTION remains RESOLVED: the named metadata regression passed in the owning CI job with frozen Core3.34.9 and digest-verified artifact.
- The user explicitly requested review and merge. The draft was marked ready; refreshed exact head, base, description, human feedback and required checks are unchanged and pass.
- No repeated full code/policy review, model execution, source acquisition or snapshot was needed. Original reports, independent roles and evidence remain preserved.
- Normal repository merge queue is required and will be used; this approval does not bypass checks or merge-queue rules.
Validation Summary
Revalidated canonical COMPLETE review and47 hashed audit inputs, original independent code/policy evidence, actual named-test PASS, and post-readiness metadata. All23 current check runs succeed, including required Lint and Test / Result and Aggregate impact. No new substantive feedback or code/source changes. Freshness guarded again immediately before approval.
Timing
elapsed seconds: 217.94s; setup seconds: 0.00s; scope seconds: 0.00s; parallel review seconds: 0.00s; policy role seconds: 0.00s; code role seconds: 0.00s; adjudication seconds: 0.00s; consolidation cleanup seconds: 217.94s
Review Severity
APPROVE. Open findings: 0 critical, 0 should address, 0 suggestions.
Summary
is_claimant_or_partnerdocumented its rules only in the class docstring. Core reads thedocumentationattribute, not__doc__, so the variable's metadata came back with no documentation text. A downstream user hit this while replacing the deprecatedbenunit_count_adultsandis_adult, which point people tois_claimant_or_partner.This moves the existing text, unchanged, into
documentation. No formula or value changes.Reproducer: policyengine_uk/tests/test_claimant_or_partner_documentation.py::test_claimant_or_partner_documentation_reaches_variable_metadata
The test fails on main (empty documentation) and passes here.
Note
About 25 other variable files have a class-level docstring and no
documentationfield, so their metadata may be blank in the same way. They are out of scope here; I can follow up if useful.🤖 Generated with Claude Code