Decsription update from Luke: We currently compute an out-of-circuit max of the log circuit sizes via get_max_log_circuit_size() in the PG recursive verifier. Aside from being incorrect, this results in needing to mock log circuit size in the dummy witness / VK construction context in certain unexpected cases, e.g. the hiding kernel. At the time of writing, it's not clear what the right solution is, but it seems likely that simply performing this max in-circuit is not sufficient.
Decsription update from Luke: We currently compute an out-of-circuit max of the log circuit sizes via
get_max_log_circuit_size()in the PG recursive verifier. Aside from being incorrect, this results in needing to mock log circuit size in the dummy witness / VK construction context in certain unexpected cases, e.g. the hiding kernel. At the time of writing, it's not clear what the right solution is, but it seems likely that simply performing this max in-circuit is not sufficient.