Browser mode (required): call browser__createSession with browser="sidecar". Do not open the other mode in parallel. There is no silent fallback between sidecar and userChrome.
On sidecar, use browser__getConsoleLogs to read the console token (GATE-CONSOLE-TOKEN:7741 or the page secret GATE-SECRET-7741).
Write /app/report.json as {"token":"<value containing 7741>","source":"console"} (source may be console when obtained via getConsoleLogs).