Skip to content

Report a date range where an exit already reached refused - #603

Draft
MaxGhenis wants to merge 4 commits into
trackb-proof-july-onset-20261106from
trackb-frozen-exit-range-20261106
Draft

MaxGhenis wants to merge 4 commits into
trackb-proof-july-onset-20261106from
trackb-frozen-exit-range-20261106

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

This PR stays a draft until its independent review agrees, and it retargets to master once #601 merges.

Coverage can end before the query while a record gives the priors and leaves the current period's ending unknown. When the date last insured could then run past the query, the rule refused DISABILITY and ALL queries with ongoing_disability_period_dli_horizon_unsupported before it decided the status. It now reports the status with a range for the date, and the code drops that reason. A reviewer flagged the refusal as a low finding on #562: #562 (comment).

A later ending can take a QC of the exit year off the clock (404.146(d)), so the date can fall through the first quarter after that year. The rule now checks each ending through that quarter. Later endings only set aside uncredited quarters, so no date falls from there on, and the last ending's date tops the range.

Invariants

test_every_declared_ending_fits_the_range draws records across ages, sexes, priors, blindness and continuity observations. For each record, it declares each ending through the first quarter after the exit year and a sample of later ones through retirement age, reruns the rule, and checks four properties:

  • A declared ending leaves the period's start and the disability status unchanged and gives one date.
  • Every ending's date falls within the reported range.
  • From the first quarter after the exit year on, a later ending never gives an earlier date.
  • When no ending refuses, the range runs from the lowest ending's date to the highest.

Example tests pin the edges. With no exit by the query, the date stays at the query's quarter and right-censored, and a death date caps both the range and the list.

Verification

We ran the old and new code on 600 invented records, 391 of them with an exit already reached. Outside the old code's 43 horizon refusals, the two agree on every output, including every other refusal and invalid input. The new code computes 39 of those 43 and refuses the other 4 by name: two with disability_boundary_assignments_unsupported, one with ongoing_disability_period_end_decides_status and one with subsequent_special_long_period_unsupported.

round_26_mutations in docs/design/track_b_insured_status_mutations.json takes round 24's 135 mutations and round 25's one and adds nine for this range. Each of the 145 ran against this PR's insured_status.py and failed a named test, and the audit hook counted no restricted open and no subprocess. Two of the nine drop the exit from the list _period_outcomes reads or from the high list, and they passed every earlier test. test_an_ending_after_the_query_alone_can_refuse_the_low and test_an_unknown_exit_year_can_split_the_cap_after_the_query now fail under them. Round 23's flagged-prior property caught flagged_refuses_every_placement on 3 of 40 seeds, so that test now pins a record that catches it every time. The list gives five node ids with spaces in full, and its commands need bash.

axiom: TheAxiomFoundation/rulespec-us#2055 queued. This changes how the reference code reports an unknown ending and leaves every reading of the law as it was.

🤖 Generated with Claude Code

Where coverage had ended by the query, the priors were known and the
current period's ending stayed unknown, DISABILITY and ALL refused with
ongoing_disability_period_dli_horizon_unsupported, even with the status
settled. They now report the status and a range for the date, and that
reason no longer exists.

A later ending can take a QC of the exit year off the clock (404.146(d)),
so the date can fall through the first quarter after that year. The list
of endings now runs through that quarter. Later endings only set aside
uncredited quarters, so no date falls from there on, and the last ending's
date tops the range.

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 11, 2026 3:27pm UTC

Request Review

Two new tests fail under list_ignores_the_exit_in_period_outcomes and
list_ignores_the_exit_high, which passed every earlier test. Round 23's
flagged-prior test now pins a record that catches
flagged_refuses_every_placement on every run.

round_26_mutations takes round 24's 135 mutations and round 25's one and
adds nine for the frozen-exit range. Each ran against 29cd40a's
insured_status.py and failed its named test, with no restricted open and
no subprocess. The list gives five node ids with spaces in full and quotes
every target. The unit tier count rises by the two new tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MaxGhenis and others added 2 commits November 11, 2026 10:25
tests/README-tiers.md repeats tests/tier_counts.json, which the last commit
raised to 26,677 unit tests.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each recorded command writes python where the runs used the repository's
.venv interpreter, so round_26_replay now says so.

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

This branch was successfully deployed

1 active deployment
Preview — 979fd09e Deployed Nov 11, 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