Skip to content

Add job metadata tracking and improve diagnostics#38

Merged
johnnygreco merged 2 commits intomainfrom
improve-job-metadata-and-diagnostics
Mar 22, 2026
Merged

Add job metadata tracking and improve diagnostics#38
johnnygreco merged 2 commits intomainfrom
improve-job-metadata-and-diagnostics

Conversation

@johnnygreco
Copy link
Copy Markdown
Owner

Summary

  • Track package_spec and caller_version in job submission metadata and scripts (both local and remote), using a new current_version() helper
  • Log a structured preamble (started_at, package, caller_version, scratch_dir, working_dir) to job logs; switch to tee -a so the preamble is preserved
  • Support --ralph-version=current (resolves to the running CLI version) and treat "latest" as unversioned in remote execution
  • Raise ClaudeRunError with full diagnostics on invalid JSON output from claude instead of silently returning None

Test plan

  • All 323 existing tests pass
  • New tests for --ralph-version current, --ralph-version latest, package metadata logging, and invalid JSON error behavior

- Add current_version() helper and track package_spec/caller_version
  in job scripts and submission metadata (local and remote)
- Log structured preamble (started_at, package, version, dirs) to job
  logs; use tee -a to preserve preamble
- Support --ralph-version=current (resolves to running version) and
  treat "latest" as unversioned
- Raise ClaudeRunError on invalid JSON output instead of returning None
@johnnygreco johnnygreco merged commit c8beda6 into main Mar 22, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant