You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
-diff counts never-verified names as still resolving after an interrupt #151
When a -diff run is interrupted while the previous names are being re-verified, names that were never checked are reported as "still resolving". The outcomes map is missing those names, and the zero value of dns.Outcome is OutcomeFound.
Where
main_diff.go:152-162 (emitRemoved switches on outcomes[name])
internal/scan/verify.go:76-89 (feed loop breaks on ctx.Done() without recording undispatched names)
A missing key yields OutcomeFound, so every unverified name is counted as still resolving and unverified stays 0.
Impact
Ctrl+C during "Checking N previous names" produces a summary that claims the remaining names resolve, which is the opposite of what is known. Monitoring consumers of the diff block get a wrong "removed" count.
Steps to reproduce
Run with -diff big-previous.jsonl where many names have disappeared.
Interrupt during the verification phase.
Observe still_resolving covers names that were never queried.
Suggested fix
Have Verify record OutcomeCanceled for every name it did not dispatch, or have emitRemoved use v, ok := outcomes[name] and count missing names as unverified. Add a test that cancels mid-verify.
Acceptance criteria
Interrupted verification counts undispatched names as unverified
Test in internal/scan/verify_test.go or main_diff_test.go
Fixed in 1e14409 on main: Verify records OutcomeCanceled for undispatched names and emitRemoved counts missing entries as unverified. Verified with: new TestVerifyCancelledMidwayReportsEveryName (-count=5), diff tests.
Activity
TMHSDigital commentedon Nov 9, 2026
Fixed in 1e14409 on main: Verify records OutcomeCanceled for undispatched names and emitRemoved counts missing entries as unverified. Verified with: new TestVerifyCancelledMidwayReportsEveryName (-count=5), diff tests.