Call the run tool with ${run_tool_mode} mode. Check that the code is correct for all queries. Fix any errors that occur.

If errors occur: first assume the bug is in the relevant query file (i.e. `query<QID>.cpp`) or `${query_impl_path}`. Do not inspect validator/compile/cache/tool internals unless the error explicitly indicates an interface mismatch. 