Add Engine D IRA rollover tax-form audit with Matrix normalization, KPIs, tests, and docs#90
Merged
manuel-reyes-ml merged 11 commits intomainfrom Jan 14, 2026
Merged
Conversation
…column never appears
…explicitly, strips only '.0+', avoids dropping IDs that end in '0'
Owner
Author
|
@codex, review! |
|
Codex Review: Didn't find any major issues. 👍 ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
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.
✅ PR Summary
🎯 Objective
What problem does this PR solve?
Add Engine D to detect IRA rollover check distributions where Tax Form = 1099‑R should be treated as No Tax, producing correction-ready outputs.
Expected output / deliverable
Engine D analysis module, visualization helpers, notebooks, tests, and updated docs/README for the IRA rollover workflow.
📌 Scope
In scope
Out of scope
🧩 Implementation Plan (What changed)
Files changed / added
src/config.pysrc/cleaning/clean_matrix.pysrc/engines/ira_rollover_analysis.pysrc/visualization/ira_rollover_visualization.pytests/ira_rollover/test_ira_rollover_analysis.pytests/validators/test_clean_matrix_validations.pytests/visualization/test_ira_rollover_visualization.pynotebooks/09_ira_rollover_analysis.ipynbnotebooks/10_ira_rollover_visualization.ipynbREADME.mddocs/business_context.mddocs/data_dictionary.mddocs/matching_logic.mdHigh-level approach
🧠 Data + Logic Notes
Business rules implemented / updated
match_no_actionmatch_needs_correctionwithnew_tax_code = "0"Canonical schema impact
federal_taxing_method,tax_form(Matrix canonical fields)participant_name,transaction_idData quality considerations
🧪 Validation (Local)
Smoke checks
python -c "from src.engines.ira_rollover_analysis import run_ira_rollover_analysis"passesData quality checks
Validation (executed)
python -c "from src.engines.ira_rollover_analysis import run_ira_rollover_analysis" python -m pytest tests/ira_rollover/ tests/visualization/ tests/validators/Results: All passed successfully
Rule verification (recommended)
Export checks (if applicable)
✅ Acceptance Criteria
new_tax_code = "0"; No Tax rows are no‑action.🧯 Risks / Edge Cases
📎 Reviewer Notes
What to focus on
action,new_tax_code)Screenshots / sample outputs (optional)
pytest run output (local)
🔗 Linking