Repository navigation
Try the tactic battery on submitted sorry helpers - #82
Merged
Merged
Conversation
Since #52 the host tactic battery had no caller. The native team now runs it on each declared theorem whose body still contains `sorry` or `admit`, against the exact submitted type, before the ordinary Lean check of a helper submission or of the first check of a proof delivery. A closure is written and committed in the stopped writer's worktree and the member is told; the ordinary check still decides acceptance. A failed or unavailable attempt leaves the submission unchanged. All declarations of one submission share a single 120 s bound. `grind` is appended last to the battery and to the vacuity probe when the project's lean-toolchain is v4.24 or newer. The M2 version gains `submitted-helper-tactic-battery-v1` and `battery-grind-v1`, so the pinned method digests are refreshed. The standalone sorry-helper rejection test now uses a `False` helper, since the battery closes `True`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
Since #52 the host tactic battery (
closeTaskByTactics) had no caller. This wires it back into the native team flow, and addsgrind.AgentResearchTeam.closeSubmittedSorriesruns the battery on each declared theorem whose body still containssorryoradmit, against the exact submitted type. It skipsdefinitions, files outside the problem, and original problem declarations.exclusiveCheck:flushHelperSubmissions, beforelandVerifiedHelpers;finishDelivery, only before the first check (whenpending.commitis unset).min(proofTimeoutMs, 120 s).task_tactic_batterywithdeclaration,status,applied,vacuousand cache fields. The web already labels this event.grindis appended last to the battery and to the vacuity probe whenlean-toolchainis v4.24 or newer. This was checked against real Lean 4.24–4.36; on 4.8 it is an unknown tactic.submitted-helper-tactic-battery-v1/battery-grind-v1, and the pinned method digests inwebModuleIdentity.test.tsare refreshed.Tests
agentTeamNativeLifecycle:sorryhelper is closed and delivered, in both helper and proof delivery modes;grindtoolchain gating and closure tests intacticBattery.agentTeamSourceRecovery"returns a standalone helper containing sorry" now uses aFalsehelper, because the battery closesTrue.agentTeam*,tacticBattery*,definitionTasks,webModuleTelemetry,incrementalHelpers*,solver,webModuleIdentity) pass;tsc --noEmitpasses;bun scripts/build.tspasses.Not done
Not deployed, and running solvers are untouched. There is no measured effect on any problem yet.
Known edge: if the process crashes after a battery commit and before delivery, the completion recovery path, which requires HEAD to equal
task.sourceCommit, will not re-nominate that delivery. The member's next submission does.🤖 Generated with Claude Code