1.8 KiB
1.8 KiB
BAT-011 Planning
Scope
- Implement REQ-015: transactional write path(account / transaction / budget / category rule-category mutation)를 더 좁은 write-oriented application module로 분리한다.
- Preserve top-level service facade, MCP adapter, Streamlit gateway, dashboard call signatures and response envelope contracts.
- Leave import/advanced workflow split for follow-up REQ/BAT under dcy-011.
Dependencies
- dcy-011 confirmed Discovery and Approved REQ-015.
- BAT-010 application/adapters baseline.
- Existing pytest regression and contract-sensitive tests.
Work plan
- Create write-oriented application modules for accounts / transactions / budgets / category rules.
- Move concrete mutation implementations into those modules and keep existing broad modules as compatibility delegation layers where needed.
- Update
application/__init__.pyandservice.pyimport surface to re-export the new modules without changing public API. - Run focused syntax + regression validation, then full pytest if focused checks remain green.
- Update batch implementation/verification evidence and promote REQ/BAT state if ACs are satisfied.
Design Gate
- Result: standard batch 유지.
- Reason: package boundary 변경, compatibility delegation, category/account/transaction write contract preservation, regression evidence 정리가 함께 필요하므로 planning/design/verification depth가 필요하다.
Risks and mitigations
- Hidden import coupling after write extraction: mitigate by preserving re-export layers and running full pytest.
- Envelope drift on mutation responses: mitigate by preserving existing function signatures and contract-sensitive tests.
- Category rule/category mutation helpers may still share read-side helpers: mitigate by extracting only write-focused logic first and leaving broad read/report paths untouched in this batch.