Skip to content

docs/ARCHITECTURE.md describes the v0.7 engine: missing exit code 4, old wildcard algorithm, no newer subsystems #177

Closed

Description

@TMHSDigital

Summary

docs/ARCHITECTURE.md describes the v0.7-era engine. It is missing exit code 4, describes the old two-probe wildcard algorithm, lists only UDP/TCP transports, and says nothing about roughly half of today's subsystems (CT, permute, resume, DoT/DoH, pool, SARIF, lab mode, scope, verdict, config precedence, pkg/subenum).

Where

  • docs/ARCHITECTURE.md:186-196 (exit codes) vs main.go:67-75
  • docs/ARCHITECTURE.md:70-81 (wildcard, transports) vs internal/dns/resolver.go:440-475, internal/dns/transport.go, internal/dns/pool.go
  • docs/ARCHITECTURE.md:24-46 (package table) vs git ls-files
  • Undocumented: internal/ct, internal/permute, internal/labzone, internal/dnsserver, internal/report, internal/output/sarif.go, internal/scan/{scope,settings,verdict,verify}.go, main_config.go:95-97 (config/env precedence), pkg/subenum

Details

  • §4.5 lists exit codes 0, 1, 2, 3, 130, 143; add 4 (-diff: names were added or removed)
  • §2.3 says dns.CheckWildcard resolves two random labels and keeps the union; the code probes adaptively until the fingerprint is stable for max(8, 4×size) consecutive probes (Wildcards that answer from a rotating IP pool (CDN/load-balanced) bypass the fingerprint filter #48), learns from the pool, and has an inconclusive outcome
  • §2.3 says the resolver honours a network argument of udp or tcp; add DoT/DoH transports and the -r pool (bench, canary, second opinion)
  • Refresh the package-structure table from git ls-files
  • Add sections or a pointer table for: run-quality verdict, scope/exclude, resume state, permutation pass, CT seeding, lab mode (labzone + dnsserver), SARIF, config/env precedence, pkg/subenum

Impact

This is the "how it works" doc linked from the site nav; contributors are pointed at the wrong design.

Acceptance criteria

  • Every package under internal/ and pkg/ appears in the table
  • Exit-code and wildcard sections match the code

Getting started

  • Relevant files: docs/ARCHITECTURE.md
  • How to run tests: go test . (docs link checks live in main_docs_test.go)

Related: #79


Filed by repo-audit/full-audit at 3139c44. Severity: medium. Effort: M. audit-key: documentation|docs/ARCHITECTURE.md|Package Structure / 2.3 / 4.5

Activity

  1. added
    documentation
    help wanted
    area: docs
    severity: medium
    on Nov 9, 2026
  2. TMHSDigital commented on Nov 9, 2026

    @TMHSDigital
    OwnerAuthor

    Fixed in 7c9c587: exit code 4, the adaptive wildcard fingerprint (checked against fingerprintProbes/fingerprintMaxProbes in internal/dns/resolver.go), DoT/DoH and the -r pool, a package table covering every internal/ and pkg/ package, and a pointer section for the newer subsystems. Verified with go test . (doc checks).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: docsdocumentationhelp wantedseverity: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions