From 1.8's release, we get some nice execution information at long last.
QUARTO_EXECUTE_INFO environment variable contains a file path pointing to a JSON file with execution metadata
https://quarto.org/docs/advanced/quarto-execute-info.html#accessing-execution-information
Still need a bit more information to be surfaced.