Thanks, we checked and budget_summary_dict() re-aggregated the entire process history on every call, and that time lands in residual, exactly as you measured.
From the next flopscope release, you will be use flopscope.current_budget() instead.
import flopscope as flops
snap = flops.current_budget()
snap.flops_used, snap.flops_remaining, snap.flop_budget
It’s O(1), works inside predict() in the submission environment, and returns a snapshot you can read directly.