TestAccountDiscoveryOffReadsNoSignIn (internal/provider) is the sibling
5421f4468 left: its sanity read failed on "{}{}" when the FIFO was
answered twice under load, and 909d76747 shipped past it as "fails on
main too (1 in ~20)". It now takes one or more "{}" and counts only
opens after the check, as the agent test does.
Both tests also had a second race in that fix: a write the watch began
while the check's read was still open (after its EOF, before close) is
noted after the read returns, past `checked`, and reported as a read of
a sign-in. Each test now waits until the notes stop for 20ms before
counting.
Ran: on origin/main's provider test, a 5ms delay before the read: 3/3
red; with the fix 5/5 green. Late close (1ms after EOF) plus 3ms before
the watch notes an open: without the wait 6/10 red (".codex/auth.json"),
with it 10/10 green. A stray read of a sign-in after the check is still
reported (only that file). -count=30 of each test; go test
./internal/agent ./internal/provider; go vet and GOOS=linux go vet;
gofmt -l clean.