No reviewers
Labels
No labels
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
finding
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
nagonag
nagonag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IUS/xr-invoiced!33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/pr24-findings"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Addresses the four open findings raised during review of PR #24.
Changes
5abb5f3— Gate IDLE per-UID logging behind--verbose. Without--verbose, the IDLE path now matches startup/initial: only matched messages are logged.doc/admin.mdupdated.9217811— Restorematched=key ondebug:scanlog lines. ThelogArgshelper renamed the key totagged=; the debug line now prependsmatched=for backward compat while also emittingtagged=.2224dd4— Replace brittle source-string regression tests with behavioral tests. The idle test runs a realrunMailboxgoroutine againstimapmemserver, triggers an IDLE wakeup by appending a message, and assertsscan=idlein the log.1581aee— TypeProcessOptions.SourceasScanSourcewithScanInitial/ScanStartup/ScanIdleconstants. Wire values unchanged; callers get compile-time safety.Test plan
go test ./...passesgo test -race ./...passes--verbose: IDLE wakeup only logs matched messages--verbose: IDLE wakeup logs every processed UID withscan=idledebug:scanlog lines containmatched=<bool>Introduce ScanSource string type with constants ScanInitial, ScanStartup, and ScanIdle, replacing the untyped string field in ProcessOptions. The wire-format values ("initial", "startup", "idle") are unchanged; internal helpers (logArgs, reportProcessed, reportIssue) and ActivityEvent.Source remain string and convert at the boundary with string(opts.Source). Update all call sites in main.go, scanner.go, and reporter_test.go. ius:ai:claude-sonnet-4-6f7aacf13d5a9a740e766