Commit dfb0be4
kevm-pyk: thread step_timeout through run_prover (#2867)
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).
Co-authored-by: Everett Hildenbrandt <everett.hildenbrandt@gmail.com>1 parent 30983ea commit dfb0be4
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| 138 | + | |
137 | 139 | | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
141 | 143 | | |
142 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
143 | 155 | | |
144 | 156 | | |
145 | 157 | | |
| |||
0 commit comments