Skip to content

feat(efficacy): watch a run's progress, one bar per arm - #80

Merged
braboj merged 2 commits into
mainfrom
feat/progress
Oct 29, 2026
Merged

braboj merged 2 commits into
mainfrom
feat/progress

Conversation

@braboj

@braboj braboj commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

The harness's console stays empty while its output goes to the log. This adds a read-only watcher that draws one progress bar per arm from the run records, in a console of its own.

What it shows (the stopped round 5b root)

C:/efficacy/r5b-main  2026-10-29 13:37

none       [##............................]  1/15  $   4.78
inline     [##............................]  1/15  $  32.34  1 voided
hybrid     [..............................]  0/15  $   0.00  running hybrid-1, 45 min
reference  [..............................]  0/15  $   0.00
skills     [..............................]  0/15  $   0.00

all        [..............................]  2/75  $  37.12  3.0 h in, about 109 h left

Usage

py tests/efficacy/progress.py --root C:/efficacy/r5c-main          # redraws every 30 s
py tests/efficacy/progress.py --root C:/efficacy/r5c-main --once   # draws once

What changed where

File Change
tests/efficacy/progress.py New: the watcher and its self-test
AGENTS.md Its self-test in the command list
ch 5.1 Its row in the building blocks

It reads only run-*.json, so the trials and the registration are untouched.

Checks

  • progress self-test 9/9: a record caught mid-write, a change task in flight, a root without offsets
  • draws r4-thin, whose starts carry no offset, without crashing
  • pyflakes clean
  • drawn against the stopped round 5b root, as above

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX

braboj and others added 2 commits October 29, 2026 13:37
The harness writes its output to a log, so its console shows nothing during
a two-day run. progress.py reads the run records and redraws, every 30
seconds, a bar per arm with its voided tries, its cost and the trial
running, and a line for the whole run with the time left at its own pace.
It opens nothing but the run records, so it watches a live run without
touching a trial.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
…sk from its run

Review of #80: a root whose starts carry no UTC offset crashed the watcher
subtracting them from an aware time, so such a start reads as unknown and
the line keeps its counts without minutes or an estimate. A trial in flight
records no task of its own, so the run's task is the fallback, and a change
task in flight no longer shows as a running build. Both are planted in the
self-test.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xPB8YTAMW2Msp4aPTX
@braboj
braboj merged commit 5734700 into main Oct 29, 2026
2 checks passed
@braboj
braboj deleted the feat/progress branch October 29, 2026 11:56
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