Repository navigation
Closed
Labels
documentationImprovements or additions to documentationhelp wantedExtra attention is neededseverity: mediumEdge-case bugs, degraded behavior, meaningful maintenance cost
Description
Summary
docs/ARCHITECTURE.md (and the matching lists in DEVELOPER_GUIDE.md) predate several engine changes: chunked job hand-off (#184), -auto-rate (#220), -retry-inconclusive (#217), NS/MX/TXT lookups (#194), and the once-per-run wordlist preparation (#182).
Where
docs/ARCHITECTURE.md:15, 87, 93, 118, 138, 154-164, 172, 209-215, 250, 317docs/DEVELOPER_GUIDE.md:151, 368, 377and the project tree- Code:
internal/scan/runner.go:495, 691-693, 746-767, 773-786, 934-951, 1041-1043,internal/scan/dispatcher.go:189,internal/scan/autorate.go:51-60,internal/dns/resolver.go:275, 298, 371-391, 490, 506,internal/dns/takeover.go:142-147,main_session.go:377, 584
Details
- Job hand-off (
:156, :210-215, :250): the doc describes one job per channel send, with each worker signalling completion per job. The code sends chunks over buffered channels:jobs := make(chan []job, handoffPerWorker*workers) completed := make(chan []completion, handoffPerWorker*workers)
maxChunk = 8, and workers report per chunk. A resume can therefore repeat up to one chunk per worker. - Notices / guard (
:154, :160):NoticeRateis missing from the list. With AutoRate on, the reliability guard is skipped until six back-offs or the 5 q/s floor.-auto-rateis not mentioned anywhere in the doc. - Retry pass (
:164, data-flow step 11): the secondretryPendingpass afterwg.Wait()andStats.Inconclusiveare not described. - Record types (
:138,:317): NS, MX and TXT are looked up too.HintsTakeoveraccepts CNAME or NS (dangling-ns). SARIF needs CNAME or NS, not only CNAME. - Wordlist (
:15, :118, :87; DEVELOPER_GUIDE:151): the CLI no longer "callsBuildper target". It runswordlist.Prepareonce, thenPrepared.For(target)per target.Prepare/For/ReadLinesFromare missing from the function lists. - File lists (
:47-94, DEVELOPER_GUIDE tree): addmain_dryrun.go,internal/scan/autorate.go,internal/dns/scope.go,internal/output/log.go,internal/cliargs/, andPermutationsin the pkg exports. - Names:
dns.FingerprintWildcard/dns.CheckWildcard/dns.ResolveTypesare methods onLookup. CSV columns at:172leave outtakeover_candidateandchange. DEVELOPER_GUIDE:368shows-type A,AAAA,CNAMEonly.
Impact
Contributors reading the architecture doc get a wrong model of the dispatcher and rate control, the areas most likely to be touched next.
Acceptance criteria
- ARCHITECTURE describes chunked hand-off, AutoRate, the retry pass and all six record types
- Every file and function named in both docs exists under that name
Getting started
- Relevant files:
docs/ARCHITECTURE.md,docs/DEVELOPER_GUIDE.md,internal/scan/ - Related: docs/ARCHITECTURE.md describes the v0.7 engine: missing exit code 4, old wildcard algorithm, no newer subsystems #177, DEVELOPER_GUIDE and CONTRIBUTING: stale project tree and inconsistent test command #178
Filed by repo-audit/docs-audit at 1fcd5bc. Severity: medium. Effort: M. audit-key: documentation|docs/ARCHITECTURE.md|engine-drift-v0.10
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationhelp wantedExtra attention is neededseverity: mediumEdge-case bugs, degraded behavior, meaningful maintenance cost
Activity
TMHSDigital commentedon Nov 12, 2026
Fixed in 45bfade. ARCHITECTURE.md now covers:
maxChunk8,handoffPerWorker4) and per-chunk completion reports-auto-ratecontroller andNoticeRate-retry-inconclusivepassdangling-ns, with SARIF needing CNAME or NSPrepare/ForThe file lists in ARCHITECTURE and DEVELOPER_GUIDE are updated, and
Lookupmethods are named as methods.Verified against
internal/scan/runner.go,dispatcher.go,autorate.go,internal/dns/resolver.go,internal/wordlist/reader.goandinternal/output/writer.go. Every path named in the file lists exists.