kevm-pyk: thread step_timeout through run_prover#2867
Open
Stevengre wants to merge 2 commits into
Open
Conversation
4774b8c to
6a3c8f5
Compare
ehildenb
reviewed
Jun 18, 2026
Adds a `step_timeout: int | None = None` parameter to `run_prover` and forwards it to the `APRProver` constructor, which enforces the per-step wall-clock budget (interrupt + halve `execute_depth` + retry). `step_timeout` is only honored on the sequential `advance_proof` path; `parallel_advance_proof` does not wrap steps with the timeout budget. So when `step_timeout` is set, `run_prover` runs sequentially regardless of `force_sequential`, warning if `max_frontier_parallel > 1` that frontier parallelism is being dropped. Default `None` keeps the prior behavior (no per-step timeout, parallel path unchanged).
6a3c8f5 to
4b7fef4
Compare
ehildenb
approved these changes
Jun 18, 2026
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.
Adds
step_timeouttorun_prover, forwarded toAPRProver(which enforces the per-step budget: interrupt + halveexecute_depth+ retry, see runtimeverification/k#4930).step_timeoutis only honored on the sequentialadvance_proofpath —parallel_advance_proofignores it. So whenstep_timeoutis set,run_proverruns sequentially regardless offorce_sequential, warning ifmax_frontier_parallel > 1. DefaultNoneis unchanged.Enables Kontrol's
--step-timeout. Making the parallel path honorstep_timeoutis a pyk follow-up.