Skip to content

pass: Probe a pool whose only reading is from a reset window - #3

Merged
jmarrero merged 1 commit into
mainfrom
bot/usage-probe-after-reset
Nov 24, 2026
Merged

jmarrero merged 1 commit into
mainfrom
bot/usage-probe-after-reset

Conversation

@jmarrero-bot

Copy link
Copy Markdown

Fixes jmarrero-forge/tracker#107. After a paced weekly window resets with nothing in flight, the pool stayed no-reading and held until the broker restarted, because unasked() only probed a broker that had served no requests. Now a reading that was current, but of a window that has since reset, marks the entry with window_reset_at, and unasked() takes the same single probe run as after a restart, whatever the request count. These still hold with no probe, as before:

  • a used-up shorter window;
  • a stale reading (over 30h) or one from the future;
  • a run in flight on the provider;
  • grant mode.

tracker's .github/pass.json has usage.probe: true, so this takes effect once the tracker's pin moves past it (after jmarrero-forge/tracker#110). It doesn't cover a pool idle past its reading's 30 hours; that is jmarrero-forge/tracker#112.

Testing, on 16-core RHEL 10 devspaces:

  • just check (fmt, clippy -D warnings, the full test suite): passed.
  • Other checks: just smoke, just replay, test_review.py, specs/check.sh and lint also passed.
  • Static build: passes the baseline x86-64 check.
  • New cases: they extend pace_from_recorded_answers (a probe column, run with and without broker counts), grant_holds, and replay_scenarios (reset with requests counted, reset with a run in flight, reset with a used-up 5h window). With the window_reset_at check removed from unasked(), they fail.
  • Separate review: it re-ran just check on its own devspace.
  • just test-forgejo: fails identically on main (a24176b) under podman ("Forgejo dispatch budget exhausted").

Decision diff against a24176b: no change in 45 line(s), base and head both dispatched 1/1, writes 3/3, held 5, requests 57. The recorded pass doesn't exercise this: fixtures/pass/config.json has no usage.url, so it paces by the published snapshot.

Generated-by: https://github.com/jmarrero-bot#llms

The broker learns a pool's windows only from the responses to requests
it proxies. Once the paced week reset, pace() dropped the last reading as
no-reading, and unasked() probed only a broker that had served nothing
since it started. So a pool that was idle across its reset stayed held
until someone restarted the broker: jmarrero-forge/tracker#107, where
claude's week reset at 22:00 a Saturday and nothing ran again.

A current reading of a window that has since reset now marks its entry
with window_reset_at, and unasked() probes that like a cold broker,
whatever the request count, including a broker that gives none. It takes
the same single run and lease slot as a restart probe, and a run in
flight on the provider still suppresses it. A shorter window used up
keeps the pool held without a probe, since such a window holds until a
fresh reading in the current code; so does a stale or future reading. A
grant replaces these entries, so its pacing is unchanged.

Generated-by: AI
@jmarrero
jmarrero merged commit 113f892 into main Nov 24, 2026
39 of 41 checks passed
jmarrero-bot added a commit to jmarrero-forge/tracker that referenced this pull request Nov 24, 2026
Fixes merged in our fork (jmarrero-forge/agent-board#1, the pass
signing with its own generatedBy; jmarrero-forge/agent-board#2,
baseline x86-64 static builds, without which 52adc0d dies with SIGILL
on the bot host; jmarrero-forge/agent-board#3, the usage probe after a
window reset, #107) can't reach the hosted pass while the installer
fetches and verifies cgwalters-forge/agent-board's CI: a fork commit
could never be pinned. Install from the fork instead, so the
attestation now has to come from jmarrero-forge/agent-board's ci.yml on
main, and pin the fork's main at 113f892 (#108).

The fork's main also carries the 19 cgwalters-forge commits after
52adc0d; pass --check-config still accepts pass.json.

The installer fixture is now the fork's CI artifact for a24176b rather
than an upstream release, so the real-signer probes take the artifact
path. The fork has no release yet, and CI artifacts expire after 90
days: before 2027-02-22 the pin has to move (bump-agent-board, #111)
or the fork has to release that commit.

Generated-by: AI
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-human Waiting on the operator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

pass: A pool idle across its weekly reset stays held with no reading

2 participants