Repository navigation
Mark Maryland's capital gains surtax source conflict - #10719
Merged
Merged
Conversation
- 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>
Contributor
Author
|
US + core hub merge audit, us#10719 at
🤖 Generated with Claude Code |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What and why
Since #9898,
md_net_capital_gain.pycomputes 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 namesmd_net_capital_gain.pyas the implementation, withcites_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-gainssits on its own line abovereturn 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'sKNOWN_UNMARKEDline (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 at3f6e604b14, the list falls from 420 candidates to 419.source_conflicts/known-source-conflicts.yamlandpin.yaml:scripts/update_source_conflicts.pyvendors the register at rulespec-usb520e62b0466, the merge of Register Maryland's capital gains surtax source conflict TheAxiomFoundation/rulespec-us#2080. The move fromad03b325adds 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 at3f6e604b14, 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:md_net_capital_gain.pyas on main,test_registered_implementations_carry_their_markerand the ratchet fail. Deleting only the marker line fails the first of those.test_every_marker_names_a_registered_entry_that_lists_its_filefails.test_candidates_are_not_yet_registered.KNOWN_UNMARKEDline fails the ratchet.ruff format --checkandruff check(0.15.5, the locked version) pass on both changed Python files.Pull request run 42951272953 at
630cb71fffpassed all 36 jobs on GitHub's merge with main3f6e604b14.For policy changes: not applicable; this PR changes comments, the vendored register and its pin, the backlog and one
KNOWN_UNMARKEDline.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