Some checks failed
CI / Unit & Component Tests (pull_request) Failing after 2m34s
CI / OCR Service Tests (pull_request) Successful in 34s
CI / Unit & Component Tests (push) Failing after 2m35s
CI / OCR Service Tests (push) Successful in 33s
CI / Backend Unit Tests (push) Failing after 2m50s
CI / Backend Unit Tests (pull_request) Failing after 2m46s
- Extract logAfterCommit() from AnnotationService and TranscriptionService into AuditService, eliminating duplicate boilerplate (Markus) - Remove UserService from DocumentService; add actorId param to storeDocument(), attachFile(), updateDocument() instead — resolves SecurityContextHolder coupling concern (Markus) - Update DocumentController to inject UserService and resolve actorId from Authentication, passing it through to service methods - Add logAfterCommit() tests to AuditServiceTest with MockedStatic - Update all test verify() calls to use logAfterCommit() (not log()) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>