feat: enable recursion#742
Conversation
|
/ai-review |
Codex Code ReviewFound 2 issues:
|
- Introduces smoke test with verification of empty program - Implements `get_random_custom_v03` to avoid panics when accessing hashmaps
b628a1d to
619e262
Compare
|
/bench |
Summary
bench_vs/lambda/:empty(no_std halt, inner program under test) andrecursion(std verifier guest that deserializes a postcard-encoded(VmProof, elf, ProofOptions)and callsverify_with_options).compile-recursion-elfs/clean-recursion-elfstargets;test-prover-alldepends oncompile-recursion-elfs.MAX_PRIVATE_INPUT_SIZEfrom 6.7 MB → 64 MiB to fit a realVmProofas private input.ProofOptionsfrom the prover crate so the verifier guest can name it without a directstarkdep.prover/src/tests/recursion_smoke_test.rswith ignored tests at two tiers: execute-only (in-VM verify, skips outer STARK prove) and full-prove (outer proof + host verify).HashMapaccess in the guestHow to test
Build the guest ELFs first:
Run the cheapest regression guard (host-only encode/decode + verify, seconds):
Execute-only tier (in-VM verify, no outer prove, tens of GB RAM):
Full pipeline (outer STARK prove + verify, ~125 GB RAM):
Or via make (builds ELFs + runs all ignored prover tests):