Skip to content

Learn the stagnation step from any reader's increases; make ETA total follow the run's own step - #2020

Merged
dmlguq456 merged 4 commits into
mainfrom
lab-stagnation-eta-1130
Nov 29, 2026
Merged

dmlguq456 merged 4 commits into
mainfrom
lab-stagnation-eta-1130

Conversation

@dmlguq456

@dmlguq456 dmlguq456 commented Nov 29, 2026 •

Copy link
Copy Markdown
Owner

What

Two fixes in utilities/resource_progress.py (the experiment observer's counter tracker and ETA), reported by a user whose run takes about 2 h 10 min per epoch for 50 epochs:

  1. A learned stagnation step also comes from increases another reader wrote. The learned step (longest_quiet_seconds) was written only by the tracker's own increase branch. When an older reader of the same record (a route sealed on an older version) wrote an increase first, this observer saw delta == 0 and never learned, so the two-hour default stood for the whole run: "no increase for 2h00m" arrived at every epoch of a healthy run. The tracker now remembers the last-increase time (and counter value) it has accounted for; when the record's last-increase time has moved past it, that width is a step.
  2. "ETA total" is the units left times the run's own time per unit. The rate was the change between two looks (within 600 s). For a coarse unit such as an epoch, the look that sees an increase is seconds to minutes after the previous look, so that gap was taken as one epoch's time (predicted total ≈ elapsed, growing with it: 3/50 → 7 h … 20/50 → 44 h for a ~108 h run), and a look that saw no increase had no ETA. The tracker now keeps the time per unit between the run's last two increases (any reader's), and every look uses (total - reached) × that time. Until two increases are known the old look-to-look rate is the fallback; with no increase yet the ETA stays unknown.

Order of commits: fix 1 (with its test), fix 2 (with its tests and one doc sentence in capabilities/autopilot-lab.md plus generated projections).

Tests

New tests in utilities/resource_progress.test.py fail on origin/main and pass here: an older writer's increases (stagnation at 1.5× the step, not at 2 h), ETA total at 3/13/20 of 50 epochs at three looks each (±10 %), a fine-step run (same value as before), a resumed run (counter starts at 30), and unknown until the interval is known. utilities/resource_progress.test.py and the other suites that call it pass; generate.py --check and check-adaptation-boundary.sh pass.

What changes for users

Before After
A run that takes more than 2 h per step on an already-running route gets "no increase for 2h00m" at every step, for days After this observer sees the next increase (any reader's), the stagnation threshold is 1.5× the step (about 3 h 15 min for 2 h 10 min epochs); no more false alarm
"ETA total" reads about the elapsed time and grows with it; no ETA at looks without a fresh increase "ETA total" ≈ the real total (±a few %) from the second increase on, at every look
eta-over-plan / eta-over-six-hours fire late (as elapsed-over-*) or not at all for coarse units They follow the corrected total, so they fire when the run really will exceed the plan or six hours, and not when it will not

🤖 Generated with Claude Code

dmlguq456 and others added 4 commits November 30, 2026 00:41
…her reader wrote

The learned step (longest_quiet_seconds) was written only by the increase branch of
the tracker. When an older reader of the same record (a route sealed on an older
version) wrote the increase first, this observer saw delta 0 and never learned, so a
run with steps over two hours kept getting the two-hour stagnation notice at every step.

Remember the last-increase time this observer has accounted for; when the record's
last-increase time has moved past it, the width is a step. Reproduced first: with an
older writer's increases the stagnation stood at two hours instead of 1.5x the step.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…the run's own step

The ETA used the change between two looks (within 600 s) as the rate. For a coarse unit
such as an epoch, the look that sees an increase is seconds to minutes after the last
look, so that gap was taken as the time of a whole epoch: the predicted total sat just
above the elapsed time and grew with it (3/50 -> 7 h, 20/50 -> 44 h for a ~108 h run),
and any look that did not see an increase had no ETA at all.

The tracker now keeps the time per unit between the run's last two increases (also an
increase another reader wrote), and the evaluator uses units left x that time at every
look. Until two increases are known the old look-to-look rate is the fallback, so a
run that rises in small steps keeps its value, a resumed run does not divide earlier
units by this elapsed time, and a run with no increase yet stays unknown.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@dmlguq456
dmlguq456 merged commit bb298f1 into main Nov 29, 2026
15 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