Repository navigation
#3116: 0.2.0 AD2: the local driver waits out usage limits and resumes on the same model - #3285
Open
jparker2006 wants to merge 4 commits into
Open
jparker2006 wants to merge 4 commits into
jparker2006 wants to merge 4 commits into
Conversation
Member
Author
|
First successful push: c97d1ad at 2026-11-24T20:29:06Z |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #3116
Summary
When a local-driver turn exits non-zero after hitting a usage limit or provider overload, the turn supervisor waits out the window and resumes once with the normal wake prompt on the same harness and model, while
wakeandstart's first-turn check report the limit and reset time under D3.Idea only from Cloudroom's
retry-policy.ts(Apache-2.0) and Gas City'sworkladder(MIT); written fresh in Python with no code copied.Evidence
49c427f2): Running the 5 new proof tests inadapters/local/test_driver.pyon the base driver failed all 5 cases (test_usage_limit_waits_and_resumes_once_on_same_model,test_wake_during_limit_wait_refuses_with_reset_time_and_stop_ends_wait,test_overload_without_reset_time_backs_off_60_120_then_stops,test_limit_beyond_six_hours_does_not_wait_and_first_turn_reports_limit,test_row_limit_pattern_and_reset_time_formats): no automatic wait/resume occurred andwake/startreturned no usage-limit refusal with reset time.After (
2cb2822d):python3 -I adapters/local/test_driver.pypasses all 29 tests (24 existing + 5 new proof cases, including the driver kit forclaudeandcodexand the macOS simulation).Merge danger
Door: two-way
Blast radius: local
A bug in limit detection or supervisor wait handling affects only the local driver's non-zero turn exit path; normal exit-0 turns,
schema.json, andkernel/driver.v1.mdare unchanged.Facts
builder/3116-usage-limit-resume. Head:2cb2822daf70ebd08c6d8fba2f80a5c1b74905f8. Tree:9a248afb642b0edfc325ac1dfa53ee613e03feafadapters/local/driver,adapters/local/test_driver.py,adapters/local/fixtures/fake-harness,adapters/local/README.md(shared: one bullet),adapters/local/harness-row.md(shared: one row),changes/3116.md(all inside owned paths)python3 -I adapters/local/test_driver.py(29 tests OK, including driver kit onclaudeandcodex);python3 -I adapters/local/test_harnesses.py --rows adapters/local/fixtures/rows(all 28 planted rows matched expected outcomes); full suites run in CI49c427f206ff3fba09acd9b28c6cb1bae0055335reset + 15s + jitter) and single auto-resume on the same harness and model, editing builder status note 1 without duplication: fixture test (test_usage_limit_waits_and_resumes_once_on_same_model)wakeduring wait refuses under D3 with reset time and passesschema.json, andstopends the waiting supervisor: fixture test (test_wake_during_limit_wait_refuses_with_reset_time_and_stop_ends_wait)test_overload_without_reset_time_backs_off_60_120_then_stops)wake/startfirst-turn check report the limit and reset time while normal failures stay unchanged: fixture test (test_limit_beyond_six_hours_does_not_wait_and_first_turn_reports_limit)limitpattern validation/detection and reset-time formats (ISO-8601, epoch, relative, clock time): fixture test (test_row_limit_pattern_and_reset_time_formats)adapters/local/driverso AD6 merges cleanly)2cb2822daf70ebd08c6d8fba2f80a5c1b74905f8(updated once green)