feat(engine): onshore/offshore tax model (v0.6.0)#5
Merged
Conversation
Add per-wrapper tax computation with residence x domicile x wrapper matrix (ADR-037 / CONTRACT-020). Implements tax-lot accounting (FIFO/HIFO), RMD enforcement for US-Traditional wrappers, dividend withholding treaty table, UK non-dom remittance basis, and per-wrapper rules for Taxable, US-Traditional, US-Roth, UK-SIPP, UK-ISA, UK-Onshore/Offshore-Bond, Offshore-Trust, and Cayman-Exempt-Company. All new fields are optional with defaults; v0.5 scenarios produce identical output. Co-Authored-By: claude-flow <ruv@ruv.net>
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.
Summary
TaxLotTrackerclass for FIFO/HIFO cost-basis lot accounting and CGT computationcomputeWrapperTaxfor 11 wrapper types: Taxable, US-Traditional-401k/IRA, US-Roth-401k/IRA, UK-SIPP, UK-ISA, UK-Onshore/Offshore-Bond, Offshore-Trust, Cayman-Exempt-CompanycomputeRMDwith IRS Uniform Lifetime Table (ages 72-120)WITHHOLDING_TREATY_TABLEfor dividend withholding with override supportrunAdvancedProjectionwithtax_breakdownandrmd_amounton TimelineRowScenariowithtax_residence,tax_domicile,remittance_basis_charge,cgt_method,withholding_overrides,fatca_reporting,crs_reportingFinancialItemwithwrapperandcost_basisTest plan
🤖 Generated with claude-flow