Engine D: Gate IRA rollover audit to G/H tax codes with updated notebooks, visuals, and docs#92
Merged
manuel-reyes-ml merged 6 commits intomainfrom Jan 16, 2026
Conversation
…rom engine D correction files in reports/figures/ira_rollover/ reports/outputs/ira_rollover/
…correction file and data visualization (included in .gitignored)
Owner
Author
|
@codex, review! |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 6f55e784b4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
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".
…ine D filter keeps the expected rows and the review-reason assertions can find their transaction_ids
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?
Engine D was analyzing IRA check distributions regardless of tax code, which incorrectly sent non‑G/H rows into
match_needs_review. This change gates Engine D to only rows with rollover tax codes (G/H) intax_code_1ortax_code_2.Expected output / deliverable
Engine D only evaluates G/H rollover rows; notebooks, visualizations, and docs align with the filtered dataset.
📌 Scope
In scope
Out of scope
🧩 Implementation Plan (What changed)
Files changed / added
src/engines/ira_rollover_analysis.pysrc/visualization/ira_rollover_visualization.pynotebooks/09_ira_rollover_analysis.ipynbnotebooks/10_ira_rollover_visualization.ipynbdocs/matching_logic.mdREADME.md.gitignorereports/figures/ira_rollover/.gitkeepreports/outputs/ira_rollover/.gitkeepHigh-level approach
tax_code_1/tax_code_2and filter Engine D to rows with G/H in either field.🧠 Data + Logic Notes
Business rules implemented / updated
tax_code_1ortax_code_2∈ {G, H} after normalization.Canonical schema impact
Data quality considerations
🧪 Validation (Local)
Smoke checks
python -c "from src.engines.ira_rollover_analysis import run_ira_rollover_analysis; print('ok')"Data quality checks
Validation (executed)
python -c "from src.engines.ira_rollover_analysis import run_ira_rollover_analysis; print('ok')"Results:
okRule verification (recommended)
✅ Acceptance Criteria
tax_code_1ortax_code_2is G or H.match_needs_reviewin Engine D results.🧯 Risks / Edge Cases
tax_code_2with blanktax_code_1.📎 Reviewer Notes
What to focus on
Screenshots / sample outputs (optional)
pytest run output (local)
🔗 Linking