1.2 KiB
1.2 KiB
BAT-012 Design
Architecture summary
- Introduce
jarca_ledger_mcp/application/imports_service.pyas the single application-layer home for import preview/import/rollback orchestration. - Introduce
jarca_ledger_mcp/infrastructure/parsers/as the parser seam so application code no longer imports top-level parser implementations directly. - Keep current top-level parser modules for compatibility if needed, but route application/shared usage through the infrastructure seam.
- Preserve
application/import_transfer_services.pyas the advanced workflow home; import-facing public functions become delegations intoimports_service.py.
Changed areas
- application import orchestration
- infrastructure parser seam
- service export surface / compatibility proxy
- import regression verification docs
Key decisions
- Parser relocation is seam-first, not algorithm rewrite.
- Import account auto-linking/classification stays in the application layer, not in parser modules.
- Public API/tool names remain unchanged.
Verification focus
- Import preview/import/rollback regression
- Evidence field preservation
- No breakage in MCP discovery and public exports