Docker Path Standardization (#102)
Comprehensive refactor: created shared paths.ts utility and migrated all 7 services to use it for consistent .veritas-kanban path resolution.
What Changed
- New:
server/src/utils/paths.ts— single source of truth for all path resolution - Refactored: task-service, activity-service, chat-service, audit-service, metrics/helpers, backlog-repository (7 files)
- Resolution priority:
DATA_DIR/VERITAS_DATA_DIRenv var → project root auto-discovery → fallback - Safety: Filesystem root guard prevents silent
/resolution (the original EACCES bug) - Backwards compatible: Existing
DATA_DIRconfigurations continue to work unchanged
Quality Gate
- ✅ Cross-model reviewed: 10/10/10/10 (GPT-5.1 authored, Claude Sonnet 4.5 reviewed)
- ✅ Build passes
- ✅ All affected tests pass (17/17 audit tests)
- ✅ Docker build verified
Upgrade
No breaking changes. Existing Docker configurations and DATA_DIR settings continue to work. The shared paths.ts utility provides a more robust foundation for path resolution across all services.
Full Changelog: v2.1.2...v2.1.3