Archived
- Add AtomicFiles utility for atomic file operations (write-to-tmp-then-rename) - Add JobState enum (queued, running, succeeded, failed, canceled) - Create BarnDirectories for managing directory structure: - jobs/, locks/, logs/ top-level directories - Per-job: work/input/, work/output/, logs/ subdirectories - Lock files for scheduler and individual jobs - Implement StateFiles for reading/writing job metadata: - State, tag, timestamps (created_at, started_at, finished_at, heartbeat) - Exit codes (integer and symbolic), error messages - PID, retry count, retry history, stage - All timestamps in ISO-8601 format - Add FileLock for cross-process file locking using FileChannel.tryLock() - Handle OverlappingFileLockException for same-JVM lock attempts - Add comprehensive tests (92 new tests, 211 total) Closes #3 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>