Skip to content

feat: add --step-timeout option for kontrol prove - #1160

Merged
automergerpr-permission-manager[bot] merged 1 commit into
masterfrom
jh/kontrol-step-timeout
Jun 24, 2026
Merged

feat: add --step-timeout option for kontrol prove#1160
automergerpr-permission-manager[bot] merged 1 commit into
masterfrom
jh/kontrol-step-timeout

Conversation

@Stevengre

Copy link
Copy Markdown
Contributor

Exposes pyk's per-step timeout through kontrol prove.

When --step-timeout S is set, each rewrite step gets a wall-clock budget of S whole seconds; on timeout the backend request is interrupted, the execution depth is halved, and the step is retried. Default None disables it (prior behavior unchanged).

The mechanism lives in pyk's APRProver (runtimeverification/k#4930) and is threaded through run_prover (runtimeverification/evm-semantics#2867, in kevm-pyk v1.0.921, already pinned on master). This PR only wires the CLI option → ProveOptionsrun_prover.

Note: step_timeout is only enforced on the sequential advance_proof path, so run_prover runs sequentially when it is set, warning if max_frontier_parallel > 1. Making the parallel path honor it is a pyk follow-up.

Testing

  • kontrol prove --help shows --step-timeout.
  • Verified end-to-end against the pinned deps: ProveOptions carries step_timeout, and both kevm_pyk.utils.run_prover and pyk APRProver accept it.

Exposes pyk's per-step timeout through `kontrol prove`. When
`--step-timeout S` is set, each rewrite step is given a wall-clock budget
of `S` whole seconds; on timeout the backend request is interrupted, the
execution depth is halved, and the step is retried (enforced by
`APRProver`, threaded via `run_prover`).

Default `None` disables the timeout, leaving prior behavior unchanged.
@Stevengre
Stevengre marked this pull request as ready for review June 22, 2026 08:07
@Stevengre Stevengre self-assigned this Jun 22, 2026
@Stevengre
Stevengre requested a review from anvacaru June 24, 2026 03:29
@automergerpr-permission-manager
automergerpr-permission-manager Bot merged commit 0fe0cc4 into master Jun 24, 2026
9 checks passed
@automergerpr-permission-manager
automergerpr-permission-manager Bot deleted the jh/kontrol-step-timeout branch June 24, 2026 18:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants