Warning · Test quality
If `on_invocation` passes `false` instead of `may_detach()`, it still creates `update.lock` and skips writing `update.json`, satisfying both assertions.
Impact
Due update checks could stop running for eligible console invocations without failing this test.
Recommended action
Add a Windows console-backed CLI case that starts without a cache and asserts that `update.json` records an attempt.