Repository navigation
Block experiment restarts until saved cleanup warnings are resolved - #3
Merged
Merged
Conversation
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.
A saved cleanup failure currently becomes an ordinary completed key on restart, allowing the next allocation while the earlier allocation is still unresolved. Startup now scans all saved attempts under the experiment lock before building completed keys or selecting scheduled work. Both
failedandcreation_unconfirmedblock the experiment until an exact-attempt resolution receipt exists.resolve-cleanuprecords an explicit manual attestation with the full saved-row hash, provider/name/known box ID, operator, UTC timestamp, allocation scope, terminal outcome, and evidence. It uses the same lock and publishes a separate, fsynced receipt atomically. Failed persistence leaves the warning unresolved. Original measurement rows stay unchanged, healthy recorded attempts remain skipped, and uncertain recovery never triggers provider lookups or deletion from list differences. Burst runs save already-submitted workers before stopping ahead of the next provider group.Closes #1.
Validation:
uv run --locked python -m unittest discover -v: all 33 tests pass, including 11 new restart/recovery regressions using child runners and persistent local fake allocations. No real cloud credentials or resources used.uv run --locked python test_properties.py: all property tests pass.uv run --locked ruff check scenarios.py test_cleanup.py, formatting checks for changed Python files, andgit diff --check: pass.RecordedFailureBlocksLaunchand the terminal-evidence invariant pass across 349 distinct states, bounded to two allocations and two restarts. Disabling the startup guard reproduces the expected invariant violation.Existing checker failures remain outside this change: full Ruff reports the same 15 unused re-export imports in
benchpress.pyas the base commit;ty checkreports one diagnostic at unchangedproviders.py:395for E2BTemplateBuilder.copy.Resolution evidence is manually verified by the operator; the command does not independently establish provider state. Allocations interrupted before saving an attempt remain the scope of #2.