Repository navigation
Treat an isolated Lean resource-limit failure as declaration feedback - #62
Merged
Merged
Conversation
A declaration check that exhausts the fixed Lean sandbox memory or stack limit for one isolated declaration is a property of the checked source, the same as a Lean diagnostic. Since team collaboration moved to Codex native teams, the team paths only treated Lean diagnostics as correctable, so such a failure was raised as an infrastructure error. balance-7-recovery died this way: the Lead adopted a member delivery, the recheck in the Lead worktree hit the memory limit on one declaration, and flushAdoptions rethrew it, ending the run with runtime_error. correctableDeclarationCheck now accepts a resource-limit failure when the verification holds a single result (batched checks are retried in isolation, so this is the attributable case). Member deliveries, Lead adoptions, helper submissions and the Lead's own declaration requests use it, so the failure is returned to Lead as a rejected check. A shared multi-result failure is still a verifier failure. 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.
A declaration check that exhausts the fixed Lean sandbox memory or stack limit on one isolated declaration is now returned to Lead as correctable feedback, instead of ending the run as an infrastructure failure.
Cause, from the balance-7-recovery run:
INTERNAL PANIC: out of memoryonvisibleForward.flushAdoptionstreated it as non-correctable and rethrew it, so the run finishedruntime_error.Change:
correctableDeclarationCheckindeclarationArtifacts.tsaccepts Lean diagnostics, plus a resource-limit failure when the verification has a single result. Batched checks are retried in isolation, so a single result is the attributable case.agentTeam.ts) and the Lead's own declaration requests (skillProofLifecycle.ts) use it.math_verifier_unavailable.Tests:
skillResearchRuntime: newmemory-limitandshared-memory-limitcases.agentTeamSourceRecovery: a member nomination and a Lead adoption that hit the memory limit. Both return afailedevent to Lead and keep the team running.tsc --noEmitandbun run buildpass.Not done: no real-problem run. Running solvers were not changed.
🤖 Generated with Claude Code