Improve Registry and Deduplicator separation of concerns #160
Reference in New Issue
Block a user
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
The Registry and Deduplicator have coupled responsibilities that violate separation of concerns:
Root Cause
The deduplicator calls registry.register_asset(stored_path, description) in markitect/assets/deduplicator.py:95, passing the deduplicated storage path instead of preserving the original path metadata.
Impact
Proposed Solution
Option A (Recommended): Registry tracks original metadata, Deduplicator handles storage
Option B: Registry accepts both original and storage paths explicitly
Benefits
Files Affected
Priority
Medium - Architecture improvement that enables future features