Run logs
A run writes its log to a file under the forge's data. Once the run is finished, an hourly sweep copies the log to the BlobStore as runs/<id>.log (infrequent class), then removes the local file when nobody has touched it for a day and the store holds the same number of bytes. The store is the bucket when S3_* is set, else <data>/run-archive.
Read one
- Page:
/<owner>/<name>/runs/<id>. - Terminal: open the repository, then the run; the "Run log" screen (
src/tui/screens/runlog.ts) reads it,rreads again. - REST:
GET /api/v1/repos/<owner>/<name>/runs/<id>/log. MCP: therun_logtool. Also the tail on a pull's page andGET …/check.txt.
Every one of these asks first whether the run is in this repository and the viewer may read its log; only then is an evicted log fetched back from the store, so a run id from another repository or a hidden log never reaches the store. A run still in progress is never archived or restored.
When the store is down
A log that fails to archive stays local and the next sweep tries again. The seven-day prune never removes the log of a finished run the store does not hold, and one sweep runs at a time.
Code: src/runs/archive.ts, src/actions/runs.ts (runLog), src/runs/prune.ts.