[spec] Deepen MailSweep Domain Architecture and Eliminate Shallow Modules #62
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Lavisys/mailsweep#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
The MailSweep codebase contains shallow modules and domain leakage across seams. Specifically:
These architectural friction points increase cognitive load, create testing overhead, and leak domain logic across module seams.
Solution
Deepen the domain modules behind clear, cohesive seams:
User Stories
Implementation Decisions
Testing Decisions
A good test exercises domain behavior across module interfaces with realistic in-memory fixtures, avoiding mocks of internal implementation details.
Out of Scope
Further Notes
This refactoring aligns with ADR-0001, ADR-0005, ADR-0006, and ADR-0007.