Repository navigation
Journal allocation intent and recover interrupted experiments - #4
Merged
Merged
Conversation
…p check Co-authored-by: Cursor <cursoragent@cursor.com>
gpu004
force-pushed
the
fix/issue-2-allocation-journal
branch
from
November 12, 2026 19:54
92a6f40 to
c842422
Compare
Owner
Author
|
Rebased onto main after #3 merged. Resolved conflicts so both Proof after rebase: verify doctor READY; drive-tests PASS; drive-report PASS. |
Co-authored-by: Cursor <cursoragent@cursor.com>
Owner
Author
|
Addressed Sol BLOCK on
Proof on |
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 #2.
A runner killed after remote create could leave a live box without an attempt row, allowing restart to allocate a replacement. Persist per-allocation intent with file and directory fsync before dispatch, then recover incomplete allocations under the experiment lock before reading results or building the schedule. Burst workers use separate state files.
Recovery verifies Modal allocation tags and E2B metadata before deleting exact allocations. Missing or ambiguous identity, provider errors, and unsupported recovery contracts block launches. The reconcile command records explicit operator evidence for terminal outcomes. Recovery receipts stay separate from measurements; an interrupted allocation consumes its scheduled key with one censored row, while staged or already-synced results retain their allocation identity and are not duplicated. Torn JSONL is preserved and blocks scheduling after cleanup recovery.
Validation:
No live cloud resources or credentials were used. Namespace, Tesser, unconfirmed persistent Modal creates without an ID, and inconclusive E2B lookups require manual reconciliation. launch_ms excludes journal fsync; returned-ID persistence contributes to cold wall time and is reported separately. ty check retains one pre-existing TemplateBuilder.copy type diagnostic, reproduced from the unchanged base source.