Mirrored from https://github.com/davoodmehraban89/Aram.git
Synced Dec 3, 14:30 UTC
feat(mapping): add Gate 2B Mapping Workflow Foundation
Implements mapping domain model foundation as required by Gate 2B: - Adds MappingStatus enum (DRAFT, PROPOSED, ACTIVE, RETIRED). - Adds status field to MappingRule with Alembic migration. - Enforces strict lifecycle transitions in SQLAlchemy invariants. - Implements `create_mapping_rule` service validating fiscal year, account existance, target note existance, and rejecting duplicate mapping identifiers. - Adds comprehensive tests for valid and invalid states. - Resolves Github Actions CI collection failure by replacing un-stringified forward references (`FiscalYear`, `NoteRow`, `StatementLine`) in `models.py` relationship type hints with stringified forward references (`"FiscalYear"`, `"NoteRow"`, `"StatementLine"`). - Updates project memory and control documents. Co-authored-by: davoodmehraban89 <57283229+davoodmehraban89@users.noreply.github.com>
No changes.