Configurable Transaction Date Filtering for Engines A/B/C (Validated, Documented, and Tested)#84
Merged
manuel-reyes-ml merged 17 commits intomainfrom Jan 9, 2026
Merged
Conversation
…and in config module. Update test_validators.py to implement date filter validation
…ng modules and new validators, normalizers import paths
…s as 'no month filter'
…when exported_date and txn_date exists
…ive DateFilterConfig
…dule testing cell and run pipeline to test date-filter new function
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: 70fc4b19ed
ℹ️ 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".
…ates remain inclusive even when time-of-day exists; month filtering uses the normalized dates too
…_apply_date_filter.py
… (after stripping empties)
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 config-driven transaction date filtering (range + month selections) so Engines A/B/C consistently process only in-scope records, with centralized validation and guardrail filtering.
Expected output / deliverable
Filters are configurable via
DateFilterConfig, applied in cleaning + engines, and documented with tests and notebook examples.📌 Scope
In scope
Out of scope
🧩 Implementation Plan (What changed)
Files changed / added
src/core/validators.py(date filter normalization).src/core/normalizers.py(date filter helper).src/cleaning/clean_matrix.py,src/cleaning/clean_relius.py(filter application).src/engines/match_planid.py,src/engines/age_taxcode_analysis.py,src/engines/roth_taxable_analysis.py(guardrail filtering).README.md,docs/matching_logic.md(usage docs).notebooks/...(date filter examples).tests/...(coverage for filtering and missing dates).High-level approach
DateFilterConfigand convert months/ranges to canonical values.🧠 Data + Logic Notes
Business rules implemented / updated
date_start,date_end, and/ormonths(intersection), with missing dates excluded when filters are active.Canonical schema impact
Data quality considerations
🧪 Validation (Local)
Smoke checks
python -c "import src"passesData quality checks
Validation (executed)
Results: All tests passed sucessfully.
Rule verification (recommended)
Export checks (if applicable)
✅ Acceptance Criteria
🧯 Risks / Edge Cases
📎 Reviewer Notes
What to focus on
Screenshots / sample outputs (optional)
pytest run output (local)
🔗 Linking