Skip to content

Add --download-sources flag to prover-cli - #3

Merged
shellygr merged 1 commit into
mainfrom
shelly/download-sources-flag
Jul 21, 2026
Merged

shellygr merged 1 commit into
mainfrom
shelly/download-sources-flag

Conversation

@shellygr

Copy link
Copy Markdown
Contributor

What

New prover-cli --download-sources [DEST_DIR] per-job action exposing ProverOutputAPI.fetch_job_sources(): downloads a job's source files into DEST_DIR/inputs/.certora_sources/ (DEST_DIR defaults to the current directory), preserving the original tree. Files are fetched individually in parallel via the source-files API — no full-tarball download. A completed fetch leaves the .source_fetch_complete marker, so reruns are no-ops.

Remote jobs only (the source-files API is not available for --local-path); documented in the CLI docs' local-mode limitations.

Output

  • text: ✅ Downloaded N source files to <dir>
  • --format json / -o: {"job_id": ..., "sources_dir": ..., "files_count": N}

Testing

Validated live against a recent job: fresh download (5 files, tree preserved), rerun skip via marker, and JSON output. --help renders the new flag; docs (cli.rst) and changelog updated.

🤖 Generated with Claude Code

Exposes ProverOutputAPI.fetch_job_sources() on the command line:
downloads a job's source files into DEST_DIR/inputs/.certora_sources/
via the source-files API (parallel per-file fetch, no tarball download).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@shellygr
shellygr requested a review from jar-ben July 20, 2026 17:55
@shellygr
shellygr merged commit bb0ee76 into main Jul 21, 2026
3 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.

2 participants