# Definition of Done (DoD) 1. **Architecture Compliance:** Feature follows CQRS flow. Logic is in Handlers. Result is wrapped in `Result` from FluentResult. 2. **Modularization:** Code is in `/src`, tests in `/tests`. Module-specific logic is isolated. 3. **UI/UX Integrity:** - "Vertical Flow Check" passed (Assistant is part of the document stream, not an absolute pop-up). - No "Layout Shift" during AI content streaming. - Safe-area-insets respected for iOS/Android notches. 4. **Code Quality:** C# 14 syntax used (Primary Constructors, etc.). Scoped CSS (.razor.css) implemented. 5. **D3.js Performance:** JS Modules correctly disposed using `IAsyncDisposable`. 6. **Persistence:** State survives manual page refresh (Local/Session Storage integration). 7. **Mapping:** All entity-to-DTO conversions must use Mapster.