Skip to content

feat(efficacy): a run waits out a block by default, and a trial starts on a token that outlasts it - #149

Merged
braboj merged 2 commits into
mainfrom
feat/token-refresh
Nov 8, 2026
Merged

braboj merged 2 commits into
mainfrom
feat/token-refresh

Conversation

@braboj

@braboj braboj commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Round 5e's run stopped for three hours over an OAuth refresh lost to another client of the account (#146). Two changes to the harness close that.

Where What
harness.py run options waiting out a block is the default; --stop-on-block asks for the old stop; --resume-after-block is still taken
harness.py probing the first probe comes before any wait, so a block that has already cleared costs only the probe
harness.py before each trial where the account's token expires within the trial's ceiling, one cheap call first, so the CLI renews it before the trial rather than during
self-test 162 of 162; six new checks
docs/requirements.md, docs/coverage.md FR-04-09, FR-04-10
docs/architecture/08 the loss rules name the default and the token rule

Before, on 2026-11-07:

lazyskills-3  blocked: OAuth session expired and could not be refreshed
  --resume-after-block was not given
  stopping the run                         (three hours lost)

After: the probe runs at once on the token the other client refreshed, and the trial re-runs in its place.

Closes #146

🤖 Generated with Claude Code

https://claude.ai/code/session_01DpT5xQQ4hBtuBqvpuv9xGj

braboj and others added 2 commits November 8, 2026 12:36
…s on a token that outlasts it

A blocked trial is probed at once and then on the interval, and re-run
when the generator answers; --stop-on-block asks for the old stop. Before
a trial whose ceiling outlasts the account's token, one cheap call lets
the CLI renew it, so the trial has nothing to refresh mid-run and cannot
lose a refresh to another client of the account.

Closes #146

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xQQ4hBtuBqvpuv9xGj
A dry run calls no model, so it asks for no fresh token either. The dry-run
check plants a token that expires within the ceiling and reads the stand-in
CLI's arguments: none asks for a reply.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01DpT5xQQ4hBtuBqvpuv9xGj
@braboj

braboj commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 1

# Severity Finding Outcome
1 P1 A dry run with a token expiring within the ceiling would have asked the generator for a fresh one, a real model call under a flag that promises none Fixed: a dry run asks for no token. Check "a dry run asks the generator for no token, so it calls no model" plants such a token and reads the stand-in CLI's arguments; it fails without the guard

@braboj

braboj commented Nov 8, 2026

Copy link
Copy Markdown
Contributor Author

Codex round 2

No new findings. The loop ends here.

Every finding, in order

Round Severity Finding Outcome
1 P1 A dry run with a token expiring within the ceiling would have made a real model call to refresh it Fixed, with a check that fails without the guard

@braboj
braboj merged commit 9629612 into main Nov 8, 2026
2 checks passed
@braboj
braboj deleted the feat/token-refresh branch November 8, 2026 11:02
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.

A run survives a token refresh lost to another client

1 participant