fix: coord review remediations (path traversal, JSON parse, race condition) #81
Reference in New Issue
Block a user
Delete Branch "fix/coord-review-remediations"
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?
Addresses code review findings from P2-005 coord migration.
Changes
Test plan
Closes #80
Addresses code review findings from P2-005: - Validate projectPath against allowed workspace roots (path traversal) - Guard JSON.parse with try/catch in loadMission, readActiveSession, readSessionLock - Add delay after stale lock removal to reduce race window - Add @Inject(CoordService) per project guideline (no emitDecoratorMetadata) - Eliminate double loadMission in getTaskStatus via shared buildStatusSummary - Fix fragile prompt-inclusion check to test original command for {prompt} - Add mkdir to writeAtomic for consistency with other atomic helpers Closes #80 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>