Skip to content

Mark Maryland's capital gains surtax source conflict - #10719

Merged
MaxGhenis merged 2 commits into
mainfrom
mark-md-capital-gains-surtax-conflict
Nov 11, 2026
Merged

MaxGhenis merged 2 commits into
mainfrom
mark-md-capital-gains-surtax-conflict

Conversation

@MaxGhenis

@MaxGhenis MaxGhenis commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Since #9898, md_net_capital_gain.py computes Maryland's capital gains surtax base as the net capital gain that 26 U.S.C. 1222(11) defines, the definition Tax-General 10-105(a)(3) adopts. A net short-term capital gain doesn't count, though the Form 502CG instructions count it through Form 502 line 1c. TheAxiomFoundation/rulespec-us#2080 registers that choice and names md_net_capital_gain.py as the implementation, with cites_entry: true. This PR marks the deciding line and clears the backlog entry. In the model, it changes only comment lines and leaves every formula, parameter and test expectation alone.

  • md_net_capital_gain.py: # Source conflict us-md:capital-gains-surtax-short-term-gains sits on its own line above return max_(0, min_(long_term, combined)). The prose above it now explains the choice without calling it a candidate.
  • test_source_conflicts.py: the file's KNOWN_UNMARKED line (count 1) goes, since the ratchet skips a file with a valid marker and a lower count must show here.
  • source_conflicts/candidates.yaml: the conflict leaves the backlog, since the guard rejects a candidate whose id the register holds. On a merge with main at 3f6e604b14, the list falls from 420 candidates to 419.
  • source_conflicts/known-source-conflicts.yaml and pin.yaml: scripts/update_source_conflicts.py vendors the register at rulespec-us b520e62b0466, the merge of Register Maryland's capital gains surtax source conflict TheAxiomFoundation/rulespec-us#2080. The move from ad03b325 adds only this entry and takes the register from 22 entries to 23.

Test plan

  • test_source_conflicts.py: 103 passed on this branch merged with main at 3f6e604b14, with the register the script vendored.

  • Four negative controls show each edit matters. I ran them against the register at rulespec-us 68edaa0e90, Add South Carolina Income Tax Before Credits #2080's last commit before its merges from main, whose register matches the vendored copy byte for byte. Each fails the guard on its own:

    1. With md_net_capital_gain.py as on main, test_registered_implementations_carry_their_marker and the ratchet fail. Deleting only the marker line fails the first of those.
    2. With the current pin, test_every_marker_names_a_registered_entry_that_lists_its_file fails.
    3. Keeping the candidate fails test_candidates_are_not_yet_registered.
    4. Keeping the KNOWN_UNMARKED line fails the ratchet.
  • ruff format --check and ruff check (0.15.5, the locked version) pass on both changed Python files.

  • Pull request run 42951272953 at 630cb71fff passed all 36 jobs on GitHub's merge with main 3f6e604b14.

  • For policy changes: not applicable; this PR changes comments, the vendored register and its pin, the backlog and one KNOWN_UNMARKED line.

  • Source-conflict register entry and marker: the entry comes from Register Maryland's capital gains surtax source conflict TheAxiomFoundation/rulespec-us#2080, and this PR adds the marker.

  • make format: the locked ruff passes on the changed files.

  • Changelog fragment in changelog.d/

axiom: n/a: comments, the vendored register and its pin, the candidates list and one guard allowance line; no policy change

🤖 Generated with Claude Code

MaxGhenis and others added 2 commits November 8, 2026 11:47
- md_net_capital_gain.py: the line that takes the 1222(11) amount now
  carries `# Source conflict us-md:capital-gains-surtax-short-term-gains`,
  and the prose above it no longer calls the conflict a candidate.
- test_source_conflicts.py: the file's KNOWN_UNMARKED line goes, since the
  ratchet skips a file with a valid marker.
- candidates.yaml: the conflict leaves the backlog once the register holds
  it.

The register pin moves to the merge of TheAxiomFoundation/rulespec-us#2080
in a later commit; until then the guard rejects the marker.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TheAxiomFoundation/rulespec-us#2080 merged as b520e62b0466 and adds
us-md:capital-gains-surtax-short-term-gains, the entry the marker in
md_net_capital_gain.py cites. scripts/update_source_conflicts.py wrote both
files. The register gains that one entry and changes no other.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@MaxGhenis
MaxGhenis marked this pull request as ready for review November 11, 2026 03:13
@MaxGhenis
MaxGhenis merged commit aa0d52f into main Nov 11, 2026
43 checks passed
@MaxGhenis
MaxGhenis deleted the mark-md-capital-gains-surtax-conflict branch November 11, 2026 04:58
@MaxGhenis

Copy link
Copy Markdown
Contributor Author

US + core hub merge audit, us#10719 at 630cb71ffff447f32baf175bfa2f424b15ad63ba (squash): Mark Maryland's capital gains surtax source conflict.

  • Reviews:
  • Gates checked live at merge:
    • gh pr checks exits 0;
    • the latest Pull request run at the head, 42951272953, passed and tested this head merged into main at 3f6e604b14;
    • MERGEABLE;
    • not a draft;
    • no reviewer's latest review requests changes;
    • the semantic-overlap guard: since 3f6e604b14, main has changed no area this PR touches;
    • the merge pins the head.
  • Impact: none. The PR changes comments, the vendored register, its pin and the candidates list. No formula, parameter or test expectation changes.
  • Axiom: TheAxiomFoundation/rulespec-us#2080 registered us-md:capital-gains-surtax-short-term-gains, and this PR vendors the register at its merge, b520e62b0466. The move from ad03b325 adds that entry alone.

🤖 Generated with Claude Code

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