Skip to content

Give the whole-period proof test a July onset - #601

Draft
MaxGhenis wants to merge 2 commits into
masterfrom
trackb-proof-july-onset-20261106
Draft

MaxGhenis wants to merge 2 commits into
masterfrom
trackb-proof-july-onset-20261106

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

The whole-period test now has a July 1975 onset, so it fails again if _unknown_prior_joint_shortfall swaps the Act's half of the whole period for the regulation's 20 of the last 40 quarters. insured_status.py and the tier counts don't change. The PR adds a section on the change to docs/design/track_b_insured_status.md and logs the run as round_25_mutations in the mutation record.

Why the onset moves

Since round 23 of #562 (8522452), the proof drops an uncredited onset quarter tested as the start from its clock when a prior period can end in that quarter. A prior can end there only before an onset after the quarter's first month. With an August onset, the clock at 1975Q3 holds 41 quarters and 20 of the worker's 21 QCs sit in the last 40, so the proof's 40-quarter test keeps the row on either reading. With a July onset, the clock keeps 1975Q3 and holds 42 quarters: the 21 QCs meet half of them, and only 19 sit in the last 40.

Round 17 ran this flip as proof_keeps_last_40, and this test caught it. No round from 18 through 24 put that mutation in its list, so no run showed the loss. Round 26's list, in #603, will carry round 24's 135 mutations, this one, and every round 17 and 18 mutation that still applies.

Verification

All runs use invented records under the audit hook, with both data roots set to a nonexistent path and no restricted open.

  • The test passes on the merged source at 4ab9729.
  • With the cap in special_recent, the rule raises InvalidFamilyInput on the July record, and the test fails on assert 0 == 1 (round_25_mutations).
  • Black 26.5.1 with -l 79 and ruff pass on the test module, and the six modules that read the note or the mutation record pass at this head (250 tests).

Invariant

The rule raises InvalidFamilyInput only where every reading of the long period would (round 17). This test checks one case of that invariant for the proof.

TheAxiomFoundation/rulespec-us#2054 pins this test, with the round 17 tests that cover the _witness sites, to us:oasdi-insured-subsequent-special-long-period once this merges.

axiom: n/a: this changes one test's record and no rule.

🤖 Generated with Claude Code

Since round 23, _unknown_prior_joint_shortfall drops an uncredited onset
quarter from its clock when a prior can end in that quarter, which needs
an onset after the quarter's first month. With its August 1975 onset,
test_unknown_prior_history_keeps_its_row_on_the_whole_period lost 1975Q3
that way. Its clock then held 41 quarters with 20 QCs in the last 40, so
the test no longer told the Act's half of the whole period from the
regulation's 20 of the last 40. A July onset keeps 1975Q3 on the clock,
and the regulation's cap now fails the test.

The mutation report's round 25 list holds that run, so a later list can
carry proof_keeps_last_40 forward.

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

vercel Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
social-security-model Ready Ready Preview Nov 29, 2026 1:10pm UTC

Request Review

MaxGhenis added a commit that referenced this pull request Nov 29, 2026
Round 1's review of #601 found that the note named only round 23's list,
when no list from round 18 through 24 carried the mutation, and that the
1,997-case run had no replayable record. The note and round_25_note now
name rounds 18 to 24, drop the 1,997-case sentence, and say round 26's
list will carry every round 17 and 18 mutation that still applies. The
note also says the clock drops the onset quarter only when it is the
quarter tested as the start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Round 1's review of #601 found that the note named only round 23's list,
when no list from round 18 through 24 carried the mutation, and that the
1,997-case run had no replayable record. The note and round_25_note now
name rounds 18 to 24, drop the 1,997-case sentence, and say round 26's
list will carry every round 17 and 18 mutation that still applies. The
note's clock sentence now names the case the shared clause governs: an
uncredited onset quarter tested as the start, which the proof drops only
when a prior can end in that quarter. At later tested quarters the proof
drops an uncredited onset quarter whatever the onset month.

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

This branch was successfully deployed

1 active deployment
Preview — f398c418 Deployed Nov 29, 2026 by vercel[bot]
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.

1 participant