Repository navigation
Isolate timed-out declaration batches and stop sweeping untracked sessions - #56
Merged
Merged
Conversation
…sions Since #54 a batch of same-file declarations shares one verification deadline. When the batch timed out, every attribution was blocked and the check rejected the first declaration instead of retrying in isolation. In continuation seeding, tryBatch rethrew that error and aborted the seed. A batch that only hit its deadline, or that reached a verification checkpoint, now falls back to per-declaration checks with their own deadlines. tryBatch also falls back on other batch check failures, so each candidate records its own result as before batching. Since #55, a child first tracked after it had exited got the current uptime as its exit tick. A later session that reused its pid as sid could then pass the continuity check and be SIGKILLed. Only an exit observed while tracked now bounds the session, and the detached proof-environment helper is tracked at spawn. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
This fixes two regressions found while reviewing #54 and #55.
Timed-out declaration batches (#54). A batch of same-file declarations (up to 64 for team handoffs, 32 for continuation) shares one verification deadline, where before #54 each declaration had its own. When the batch timed out, every attribution was
blocked, so the check threwDeclarationArtifactCheckErrorfor the first declaration instead of retrying in isolation. In continuation seeding,tryBatchrethrew that error and aborted the whole seed. A batch that only hit its deadline, or that reached a verification checkpoint (VerificationCheckpointError), now falls back to per-declaration checks with their own deadlines.tryBatchalso falls back onDeclarationArtifactCheckError, so each candidate records its own result as before batching. Other errors still propagate. The deadline test is shared withcheckpointVerificationasverificationDeadlineExpired.Late session tracking (#55). A child first tracked after it had exited got the current uptime as its exit tick. Any later session that reused its pid as sid, and started before that moment, then passed the
start <= exitTickscontinuity check and could be SIGKILLed. Only an exit observed while tracked now bounds the session; untracked exited children are not swept. The detached proof-environment helper inmathProofEnvironment.tswas the one detached spawn not tracked at spawn, and now is.Testing
mathProcess.test.ts, three insingleContinuationSeed.test.ts). All four fail on the old source and pass with the fix.tsc --noEmitpasses.Running campaigns use frozen build manifests and pick this up only after a release.
🤖 Generated with Claude Code