Skip to content

Isolate timed-out declaration batches and stop sweeping untracked sessions - #56

Merged
LikC1606 merged 1 commit into
mainfrom
fix/batch-deadline-and-late-session-tracking
Nov 28, 2026
Merged

LikC1606 merged 1 commit into
mainfrom
fix/batch-deadline-and-late-session-tracking

Conversation

@LikC1606

Copy link
Copy Markdown
Collaborator

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 threw DeclarationArtifactCheckError for the first declaration instead of retrying in isolation. In continuation seeding, tryBatch rethrew 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. tryBatch also falls back on DeclarationArtifactCheckError, so each candidate records its own result as before batching. Other errors still propagate. The deadline test is shared with checkpointVerification as verificationDeadlineExpired.

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 <= exitTicks continuity 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 in mathProofEnvironment.ts was the one detached spawn not tracked at spawn, and now is.

Testing

  • Four new regression tests (one in mathProcess.test.ts, three in singleContinuationSeed.test.ts). All four fail on the old source and pass with the fix.
  • Related test files pass: 24 files, 548 passed, 6 skipped (FUSE and Codex-sandbox opt-in cases). tsc --noEmit passes.
  • The opt-in real-image proof-environment tests were not run.

Running campaigns use frozen build manifests and pick this up only after a release.

🤖 Generated with Claude Code

…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>
@LikC1606
LikC1606 merged commit a01d326 into main Nov 28, 2026
4 checks passed
@LikC1606
LikC1606 deleted the fix/batch-deadline-and-late-session-tracking branch December 1, 2026 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant