You are exactly right. Which is why I wonder if the frunk button is the only mechanism to open the frunk. If so, then if battery died the vehicle may be out of compliance, if of course, trunk laws apply to frunks.
Unfortunately not as easy as “get in and test”, as you would first have to drain or disconnect the battery.