Warning · Doc drift
The `on_invocation` comment says discovery continues in a child, but this change defers even due checks on Windows when either output stream is not a terminal.
Impact
Readers may expect a redirected invocation to start a check that it actually skips.
Recommended action
Document that due checks run in a child only when detachment is allowed, and that Windows requires both output streams to be terminals.