Daniel Samson and Claude Opus 4.5
647e602fe9
feat(state): implement filesystem state management system ( #3 )
...
- 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 >
2026-01-21 13:04:01 +00:00
Daniel Samson and Claude Opus 4.5
79f89be47c
feat(config): implement configuration system with TOML parser ( #2 )
...
- Add LogLevel enum with case-insensitive parsing
- Add OperatingSystem enum with platform detection
- Create config records: Config, ServiceConfig, JobsConfig, CleanupConfig, StorageConfig
- Add ConfigDefaults for platform-specific paths (Unix/Windows)
- Implement TomlParser supporting sections, strings, integers, floats, booleans, arrays
- Create ConfigLoader with:
- File loading from search paths (system/user config)
- Environment variable overrides (BARN_SECTION_KEY pattern)
- Validation of all config values
- Defaults for missing values
- Add comprehensive tests (93 new tests, 119 total)
Closes #2
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-21 12:59:15 +00:00
Daniel Samson and Claude Opus 4.5
05937b1f7e
feat(cli): set up project structure and main entry point ( #1 )
...
- Create Main.java with picocli integration and testable run() method
- Create BarnCommand as root command with all subcommands registered
- Add placeholder subcommands: run, status, describe, kill, clean, service, config
- Update package structure from org.media.samson to com.samsonmedia.barn
- Configure checkstyle to allow underscores in test method names
- Add comprehensive tests for all CLI commands (26 tests, 80%+ coverage)
Closes #1
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2026-01-21 12:53:54 +00:00